Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
1.3 KiB
1.3 KiB
title, description, import
| title | description | import | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| dump_step_context (Wave B1 offline) | Assert dump_step_context exposes call_site + prompt without LLM. |
|
probe_tool
"probe-ok"
main
p = > plugin.native_path name="agent"
p
plugin.load path=
p
print text=no-agent-plugin sys.exit code=1
sys.env_set name="OPENAI_API_KEY" value="offline-dump-dummy" model = > llm.llm
工具表 =
| 工具 |
|---|
| probe_tool |
助手 = > agent.agent model=model tools=工具表 standing="dump probe"
dump = > agent.dump_step_context agent=助手 task="dump-probe-task"
site = > json.get value=dump key="call_site"
path = > json.get value=site key="path"
chars = > json.get value=dump key="prompt_chars"
prompt = > json.get value=dump key="prompt"
pathchars> 100 parts = > split value=promptsep="--- call site ---" n = > len value=parts1.n> 1print text=dump-context-ok 2. * print text=dump-prompt-missing-site sys.exit code=1
-
> print text=dump-chars-too-small
> sys.exit code=1
print text=dump-site-path-missing sys.exit code=1