feat(agent): redesign project_cli with module/method/input protocol
- Replace command/subcommand/args with module/method/input envelope - Calendar handler uses discriminated union (mode) for read operations - Strict Pydantic models with extra='forbid' for all calendar methods - Worker max_iters=7, router prompt simplified (removed project_cli_defaults) - Skill index cards + per-action files for progressive disclosure - Frontend/AG-UI aligned to module/method dispatch - Protocol docs updated to module/method/input contract WIP: action cards need envelope fix, 2 tests need update, memory handler needs Pydantic models.
This commit is contained in:
@@ -176,6 +176,8 @@ run 过滤语义:
|
||||
|
||||
`/history` 会返回 tool 消息用于 UI 重建。tool 消息的 `ui_schema` 来自 `metadata.tool_agent_output.ui_hints` 的编译结果。
|
||||
|
||||
补充说明:tool 消息若来自 `project_cli`,其 `metadata.tool_agent_output.tool_call_args` 内部形状以当前 CLI 协议为准。当前 canonical 结构为 `module/method/input`,调用方不得再假设存在 `skill/action/input` 或旧 `command/subcommand/args`。
|
||||
|
||||
`messages[].content` 在当前协议中始终是字符串:
|
||||
|
||||
- assistant: answer 文本
|
||||
|
||||
Reference in New Issue
Block a user