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
View File
@@ -20,4 +20,18 @@ void main() {
expect(message.timestamp.isUtc, isFalse);
expect(message.timestamp, expected);
});
test('history message parses suggested actions', () {
final raw = <String, dynamic>{
'id': 'm2',
'seq': 2,
'role': 'assistant',
'content': 'done',
'suggestedActions': const ['查看日程', '创建会议'],
'timestamp': '2026-03-29T16:06:27.870001+00:00',
};
final message = HistoryMessage.fromJson(raw);
expect(message.suggestedActions, ['查看日程', '创建会议']);
});
}