Inside italic/bold code segments every bare word is a variable — including call arguments and method-call receivers — so text literals must be quoted and receivers no longer need backticks. A bare dotted callee `a.b` resolves as a method call when `a` is a local variable, otherwise as a library path (Python-style unified namespace), in both the tree-walk and bytecode backends. Migrate ~70 tests plus ext/web, ext/quantum, ext/ai and the example projects to the new idiom; update SKILL.md and the design docs; fix the web/quantum example data model (db/index.mq.md). Unit and gold suites pass; only the 3 network-live tests fail offline. Co-authored-by: Cursor <cursoragent@cursor.com>
897 B
897 B
title: agent plan confirm (offline) description: Create workbook skeleton with confirm=True; no LLM spawn loop. import llm:ext/ai/llm.mq.md import agent:ext/ai/agent.mq.md import json:lib/json.mq.md import fs:lib/fs.mq.md
main
llm.load_env path=.env
model = > llm.llm
tools = > json.parse text=[]
助手 = > agent.agent model=model tools=tools standing="offline plan confirm"
out = > 助手.plan goal="say hi" confirm=True workbook_dir=".marqdo/agent-runs" writeback=False
st = > json.get value=out key="status"
print text=
st
path = > json.get value=out key="workbook"
ex = > fs.exists path=path
ex
print text=workbook-ok
print text=workbook-missing
src = > fs.read_text path=path
parts = > split value=src sep="agent.agent"
n = > len value=parts
n> 1
print text=skeleton-ok
print text=skeleton-bad