feat: add support for Claude CLI tool and enhance memory features

- Added new CLI tool "Claude" with command handling in cli-executor.ts.
- Implemented session discovery for Claude in native-session-discovery.ts.
- Enhanced memory view with active memory controls, including sync functionality and configuration options.
- Introduced zoom and fit view controls for memory graph visualization.
- Updated i18n.js for new memory-related translations.
- Improved error handling and migration for CLI history store.
This commit is contained in:
catlog22
2025-12-13 22:44:42 +08:00
parent 52935d4b8e
commit d3a522f3e8
15 changed files with 2087 additions and 237 deletions

View File

@@ -569,6 +569,9 @@ const i18n = {
'memory.memoryGraph': 'Memory Graph',
'memory.nodes': 'nodes',
'memory.resetView': 'Reset View',
'memory.zoomIn': 'Zoom In',
'memory.zoomOut': 'Zoom Out',
'memory.fitView': 'Fit to View',
'memory.file': 'File',
'memory.module': 'Module',
'memory.component': 'Component',
@@ -580,6 +583,7 @@ const i18n = {
'memory.noRecentActivity': 'No recent activity',
'memory.reads': 'Reads',
'memory.edits': 'Edits',
'memory.mentions': 'Mentions',
'memory.prompts': 'Prompts',
'memory.nodeDetails': 'Node Details',
'memory.heat': 'Heat',
@@ -590,6 +594,25 @@ const i18n = {
'memory.justNow': 'Just now',
'memory.minutesAgo': 'minutes ago',
'memory.hoursAgo': 'hours ago',
'memory.title': 'Memory',
'memory.activeMemory': 'Active Memory',
'memory.active': 'Active',
'memory.inactive': 'Inactive',
'memory.syncNow': 'Sync Now',
'memory.syncComplete': 'Sync complete',
'memory.syncError': 'Sync failed',
'memory.filesAnalyzed': 'files analyzed',
'memory.activeMemoryEnabled': 'Active Memory enabled',
'memory.activeMemoryDisabled': 'Active Memory disabled',
'memory.activeMemoryError': 'Failed to toggle Active Memory',
'memory.interval': 'Interval',
'memory.intervalManual': 'Manual',
'memory.minutes': 'min',
'memory.cliTool': 'CLI',
'memory.lastSync': 'Last sync',
'memory.autoSyncActive': 'Auto-sync',
'memory.configUpdated': 'Configuration updated',
'memory.configError': 'Failed to update configuration',
// Common
'common.cancel': 'Cancel',
@@ -1170,6 +1193,9 @@ const i18n = {
'memory.memoryGraph': '记忆图谱',
'memory.nodes': '节点',
'memory.resetView': '重置视图',
'memory.zoomIn': '放大',
'memory.zoomOut': '缩小',
'memory.fitView': '自适应',
'memory.file': '文件',
'memory.module': '模块',
'memory.component': '组件',
@@ -1181,6 +1207,7 @@ const i18n = {
'memory.noRecentActivity': '无最近活动',
'memory.reads': '读取',
'memory.edits': '编辑',
'memory.mentions': '提及',
'memory.prompts': '提示',
'memory.nodeDetails': '节点详情',
'memory.heat': '热度',
@@ -1191,6 +1218,25 @@ const i18n = {
'memory.justNow': '刚刚',
'memory.minutesAgo': '分钟前',
'memory.hoursAgo': '小时前',
'memory.title': '记忆',
'memory.activeMemory': '活动记忆',
'memory.active': '已启用',
'memory.inactive': '未启用',
'memory.syncNow': '立即同步',
'memory.syncComplete': '同步完成',
'memory.syncError': '同步失败',
'memory.filesAnalyzed': '个文件已分析',
'memory.activeMemoryEnabled': '活动记忆已启用',
'memory.activeMemoryDisabled': '活动记忆已禁用',
'memory.activeMemoryError': '切换活动记忆失败',
'memory.interval': '间隔',
'memory.intervalManual': '手动',
'memory.minutes': '分钟',
'memory.cliTool': 'CLI',
'memory.lastSync': '上次同步',
'memory.autoSyncActive': '自动同步',
'memory.configUpdated': '配置已更新',
'memory.configError': '配置更新失败',
// Common
'common.cancel': '取消',