refactor(examples): fold plan mode into ACP demo

This commit is contained in:
Tianyi Cui
2026-07-21 00:40:15 +08:00
parent 0022979e4c
commit c3f4332b8d
96 changed files with 990 additions and 364 deletions
@@ -0,0 +1,24 @@
{
"steps": [
{
"op": "initialize"
},
{
"op": "newSession"
},
{
"op": "setMode",
"modeId": "plan"
},
{
"op": "prompt",
"text": "Read the file notes.txt (use the relative path notes.txt exactly, never an absolute path), then present a short plan titled '# Fix the greeting typo' via exit_plan_mode, exactly once. If the review does not approve, summarize the reviewer's feedback in plain text and end your reply - do not present the plan again."
}
],
"elicitationAnswers": [
{
"action": "accept",
"custom": "Also add a verification step that re-reads the file after the fix."
}
]
}