feat(panel): add opt-in cross-client session migration for CLI, Desktop App, and Legacy IDE

This commit is contained in:
fish
2026-11-21 23:19:15 +09:00
parent 3eb9e0e2a5
commit 0769a88796
17 changed files with 4681 additions and 5 deletions
+35
View File
@@ -659,6 +659,41 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.oth.exportDone': 'Preferences JSON exported',
'settings.oth.importDone': 'Restored {count} preference settings',
'settings.oth.importInvalid': 'Import failed: invalid JSON or no recognized settings',
'settings.oth.migTitle': 'Cross-Client Session Migration',
'settings.oth.migDesc': 'Migrate selected sessions on demand with automatic source and summary backups',
'settings.oth.migRefreshBtn': 'Refresh',
'settings.oth.migSourceLabel': 'Source Client',
'settings.oth.migTargetLabel': 'Target Client',
'settings.oth.migModeLabel': 'Migration Mode',
'settings.oth.migModeMove': 'Full Move (Recommended)',
'settings.oth.migModeClone': 'Clone Copy',
'settings.oth.migModeMoveHint': 'Preserves original ID and full historical steps/details; archives source backup before moving',
'settings.oth.migModeCloneHint': 'Keeps source intact with a fresh UUID; only counts new steps generated after cloning',
'settings.oth.migProjectLabel': 'Target Project',
'settings.oth.migProjectOutside': 'Standalone (No Project)',
'settings.oth.migClientDesktop': 'Desktop App / Modern IDE',
'settings.oth.migClientCli': 'Antigravity CLI',
'settings.oth.migClientIdeLegacy': 'Legacy IDE (.db)',
'settings.oth.migSearchPlaceholder': 'Filter sessions by title or workspace…',
'settings.oth.migSelectAll': 'Select all',
'settings.oth.migClearSel': 'Clear',
'settings.oth.migSelectedCount': '{selected} / {total} selected',
'settings.oth.migRunningTag': 'Running',
'settings.oth.migStepsUnit': '{count} steps',
'settings.oth.migEmpty': 'No migratable sessions in this source client',
'settings.oth.migNoMatch': 'No matching sessions',
'settings.oth.migActionBtn': 'Migrate Selected ({count})',
'settings.oth.migRunningBtn': 'Migrating…',
'settings.oth.migDoneDesktop': 'Migrated {count} session(s) to "{project}". Press Ctrl+R in Desktop App to refresh the sidebar',
'settings.oth.migDoneCli': 'Migrated {count} session(s) to CLI. Use the command below to resume',
'settings.oth.migPartialWarn': ' ({failed} skipped or failed)',
'settings.oth.migReloadBtn': 'Reload Window',
'settings.oth.migCopyCmd': 'Copy',
'settings.oth.migCopied': 'Copied',
'settings.oth.migErrLocked': 'Source database is locked by its open client. Close that terminal/window first, or switch to Clone Copy',
'settings.oth.migErrExists': 'A session with the same ID already exists in target (switch to Clone Copy if you want a duplicate)',
'settings.oth.migErrRunning': 'Session is currently running; wait until idle before migrating',
'settings.oth.migFailed': 'Migration failed: {reason}',
// Structured Live Activity Actions
'live.act.run_command': 'Run Command',
+35
View File
@@ -659,6 +659,41 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'settings.oth.exportDone': '配置 JSON 已导出',
'settings.oth.importDone': '已恢复 {count} 项偏好设置',
'settings.oth.importInvalid': '导入失败:JSON 无效或未包含可识别的偏好项',
'settings.oth.migTitle': '跨端会话迁移',
'settings.oth.migDesc': '按需把选定会话迁往另一端,迁移前自动备份摘要库和源库',
'settings.oth.migRefreshBtn': '刷新列表',
'settings.oth.migSourceLabel': '来源端',
'settings.oth.migTargetLabel': '目标端',
'settings.oth.migModeLabel': '迁移方式',
'settings.oth.migModeMove': '完整迁移(推荐)',
'settings.oth.migModeClone': '克隆副本',
'settings.oth.migModeMoveHint': '保留原 ID 和全部历史步序明细,备份后移出源端(零重复计费)',
'settings.oth.migModeCloneHint': '保留源会话并生成新 ID,新副本仅统计迁入后的新步骤',
'settings.oth.migProjectLabel': '绑定目标项目',
'settings.oth.migProjectOutside': '独立会话(无所属项目)',
'settings.oth.migClientDesktop': '桌面端 App / 新版 IDE',
'settings.oth.migClientCli': 'Antigravity CLI',
'settings.oth.migClientIdeLegacy': '旧版 IDE (.db)',
'settings.oth.migSearchPlaceholder': '按标题或工作区筛选会话…',
'settings.oth.migSelectAll': '全选',
'settings.oth.migClearSel': '清空',
'settings.oth.migSelectedCount': '已选 {selected} / {total}',
'settings.oth.migRunningTag': '运行中',
'settings.oth.migStepsUnit': '{count} 步',
'settings.oth.migEmpty': '当前来源端暂无可迁移会话',
'settings.oth.migNoMatch': '没有匹配的会话',
'settings.oth.migActionBtn': '迁移选定会话 ({count})',
'settings.oth.migRunningBtn': '迁移中…',
'settings.oth.migDoneDesktop': '已成功迁移 {count} 条会话到「{project}」,在桌面端按 Ctrl+R 即可在左侧看到',
'settings.oth.migDoneCli': '已成功迁移 {count} 条会话到 CLI,可使用下方命令恢复对话',
'settings.oth.migPartialWarn': '(另有 {failed} 条跳过或失败)',
'settings.oth.migReloadBtn': '刷新窗口',
'settings.oth.migCopyCmd': '复制命令',
'settings.oth.migCopied': '已复制',
'settings.oth.migErrLocked': '源会话文件正被原端占用,请先关闭对应终端/窗口后重试,或切换为「克隆副本」',
'settings.oth.migErrExists': '目标端已存在同 ID 会话,无需重复移动(可切换为「克隆副本」)',
'settings.oth.migErrRunning': '该会话正在运行中,请待空闲后再迁移',
'settings.oth.migFailed': '迁移失败:{reason}',
// Structured Live Activity Actions
'live.act.run_command': '执行命令',