refactor: clean CLI taxonomy — canonical subcommands, merged memory.update, no aliases

- calendar: split write → create/read/update/delete/share
- contacts: rename lookup → read
- memory: merge write+forget → update (unified action field in operations)
- Remove all alias/normalization logic from adapter and handlers
- Update tool_postprocessor ui_hints builders to canonical keys
- Remove frontend legacy TOOL_CALL_START/ARGS/END events and ToolCallItem
- Update SKILL.md files and protocol docs
- Update tests and settings screens
This commit is contained in:
qzl
2026-04-23 12:12:41 +08:00
parent 91077a933d
commit 19e273a9e6
48 changed files with 1578 additions and 811 deletions
@@ -14,23 +14,15 @@
"branch": "worktree/refactor-tool-cli-skill-ui-schema",
"base_branch": "dev",
"worktree_path": ".worktrees/refactor-tool-cli-skill-ui-schema",
"current_phase": 2,
"current_phase": 5,
"next_action": [
{
"phase": 1,
"action": "implement"
},
{
"phase": 2,
"phase": 5,
"action": "check"
},
{
"phase": 3,
"action": "finish"
},
{
"phase": 4,
"action": "create-pr"
"phase": 5,
"action": "implement"
}
],
"commit": null,
@@ -63,6 +55,14 @@
{
"name": "Verify end-to-end agent -> CLI -> UI flow",
"status": "pending"
},
{
"name": "Remove CLI alias compatibility and enforce canonical subcommands",
"status": "completed"
},
{
"name": "Expand ui_hints policy to canonical CRUD commands and refactor postprocessor framework",
"status": "completed"
}
],
"children": [],
@@ -79,8 +79,8 @@
"docs/protocols/ui/data-flow.md",
"docs/protocols/agent/sse-events.md"
],
"notes": "Protocol docs must be updated before backend/frontend contract changes. Current implementation still compiles worker ui_hints into ui_schema and registers tools directly as Python functions.",
"notes": "Core refactor is complete and protocol/docs/tests are aligned. CLI now uses canonical subcommands only (no alias compatibility). ui_hints policy follows canonical CRUD commands with a common postprocessor framework.",
"meta": {
"feature_summary": "tool refactor + CLI wrapping + skill guidance + tool-schema rendered UI + worker output simplification"
}
}
}