Files
marqdo/tests/ext/agent-inspect-fixture.mq.md
T
cflmyandCursor bd5555afaa Unify bare-identifier semantics in *…* / **…** (Python namespace)
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>
2026-08-18 11:20:46 +08:00

945 B


title: agent inspect_workbook (offline) description: Parse named writeback slots from a fixture workbook path. import agent:ext/ai/agent.mq.md import json:lib/json.mq.md import fs:lib/fs.mq.md

main

paths = > json.parse text={"f":".marqdo/agent-runs/inspect-fixture.mq.md"} fixture = > json.get value=paths key="f" body = > json.parse text={"t":"# main\n\n> print text=hi\n\n\n"} t = > json.get value=body key="t"

fs.write_text path=fixture text=t

obs = > agent.inspect_workbook path=fixture exit_code=0 code = > json.get value=obs key="exit_code"

print text=code

ok = > json.get value=obs key="last_ok" has = > split value=ok sep="done" n = > len value=has

  1. n > 1

print text=ok-slot

print text=ok-missing

err = > json.get value=obs key="last_error"

print text=err