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:
@@ -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, ['查看日程', '创建会议']);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user