@celljs/ta 4.15.2 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -0
- package/README.md +1 -0
- package/dist/cli.mjs +2227 -203
- package/dist/gateway.mjs +2391 -291
- package/dist/pi/CHANGELOG.md +19 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-3d/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-3d/package.json +2 -1
- package/dist/pi/packages/ta-agents/README.en.md +14 -2
- package/dist/pi/packages/ta-agents/README.md +14 -2
- package/dist/pi/packages/ta-agents/extension/index.mjs +286 -111
- package/dist/pi/packages/ta-agents/host/index.mjs +662 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +36 -2
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +76 -6
- package/dist/pi/packages/ta-agents/lib/agent-installer.d.ts +55 -0
- package/dist/pi/packages/ta-agents/lib/agent-installer.js +140 -0
- package/dist/pi/packages/ta-agents/lib/agent-installs.d.ts +25 -0
- package/dist/pi/packages/ta-agents/lib/agent-installs.js +64 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +6 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +9 -0
- package/dist/pi/packages/ta-agents/lib/agent-refresh.d.ts +11 -0
- package/dist/pi/packages/ta-agents/lib/agent-refresh.js +37 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +0 -2
- package/dist/pi/packages/ta-agents/lib/agent-session.js +3 -6
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +7 -2
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +8 -4
- package/dist/pi/packages/ta-agents/lib/agents-protocol.d.ts +26 -0
- package/dist/pi/packages/ta-agents/lib/agents-protocol.js +11 -0
- package/dist/pi/packages/ta-agents/lib/agents-settings.d.ts +10 -0
- package/dist/pi/packages/ta-agents/lib/agents-settings.js +165 -0
- package/dist/pi/packages/ta-agents/lib/extension.d.ts +3 -1
- package/dist/pi/packages/ta-agents/lib/extension.js +17 -4
- package/dist/pi/packages/ta-agents/lib/host.d.ts +35 -0
- package/dist/pi/packages/ta-agents/lib/host.js +96 -0
- package/dist/pi/packages/ta-agents/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-agents/lib/react.js +8 -0
- package/dist/pi/packages/ta-agents/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/style.js +30 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +18 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +18 -0
- package/dist/pi/packages/ta-agents/lib/web-words.d.ts +30 -0
- package/dist/pi/packages/ta-agents/lib/web-words.js +98 -0
- package/dist/pi/packages/ta-agents/lib/web.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/web.js +14 -0
- package/dist/pi/packages/ta-agents/package.json +21 -5
- package/dist/pi/packages/ta-agents/web/index.js +385 -0
- package/dist/pi/packages/ta-app-use/README.en.md +28 -0
- package/dist/pi/packages/ta-app-use/README.md +28 -0
- package/dist/pi/packages/ta-app-use/extension/index.mjs +534 -0
- package/dist/pi/packages/ta-app-use/host/index.mjs +136 -0
- package/dist/pi/packages/ta-app-use/lib/app-host.d.ts +32 -0
- package/dist/pi/packages/ta-app-use/lib/app-host.js +79 -0
- package/dist/pi/packages/ta-app-use/lib/app-protocol.d.ts +23 -0
- package/dist/pi/packages/ta-app-use/lib/app-protocol.js +9 -0
- package/dist/pi/packages/ta-app-use/lib/app-util.d.ts +18 -0
- package/dist/pi/packages/ta-app-use/lib/app-util.js +71 -0
- package/dist/pi/packages/ta-app-use/lib/extension.d.ts +80 -0
- package/dist/pi/packages/ta-app-use/lib/extension.js +125 -0
- package/dist/pi/packages/ta-app-use/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-app-use/lib/host.js +16 -0
- package/dist/pi/packages/ta-app-use/lib/i18n.d.ts +38 -0
- package/dist/pi/packages/ta-app-use/lib/i18n.js +130 -0
- package/dist/pi/packages/ta-app-use/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-app-use/lib/index.js +93 -0
- package/dist/pi/packages/ta-app-use/lib/screen-cursor.d.ts +33 -0
- package/dist/pi/packages/ta-app-use/lib/screen-cursor.js +134 -0
- package/dist/pi/packages/ta-app-use/lib/screen-dom.d.ts +19 -0
- package/dist/pi/packages/ta-app-use/lib/screen-dom.js +184 -0
- package/dist/pi/packages/ta-app-use/lib/screen-driver.d.ts +46 -0
- package/dist/pi/packages/ta-app-use/lib/screen-driver.js +174 -0
- package/dist/pi/packages/ta-app-use/lib/screen-protocol.d.ts +67 -0
- package/dist/pi/packages/ta-app-use/lib/screen-protocol.js +8 -0
- package/dist/pi/packages/ta-app-use/lib/screen-text.d.ts +13 -0
- package/dist/pi/packages/ta-app-use/lib/screen-text.js +69 -0
- package/dist/pi/packages/ta-app-use/lib/screen-window.d.ts +68 -0
- package/dist/pi/packages/ta-app-use/lib/screen-window.js +376 -0
- package/dist/pi/packages/ta-app-use/lib/tool-line.d.ts +11 -0
- package/dist/pi/packages/ta-app-use/lib/tool-line.js +69 -0
- package/dist/pi/packages/ta-app-use/package.json +63 -0
- package/dist/pi/packages/ta-app-use/web/index.js +1520 -0
- package/dist/pi/packages/ta-bots/README.en.md +1 -0
- package/dist/pi/packages/ta-bots/README.md +1 -0
- package/dist/pi/packages/ta-bots/extension/index.mjs +25 -22
- package/dist/pi/packages/ta-bots/host/index.mjs +726 -151
- package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +9 -1
- package/dist/pi/packages/ta-bots/lib/bot-service.js +49 -8
- package/dist/pi/packages/ta-bots/lib/channel-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-bots/lib/extension.d.ts +2 -2
- package/dist/pi/packages/ta-bots/lib/extension.js +28 -24
- package/dist/pi/packages/ta-bots/lib/index.js +4 -0
- package/dist/pi/packages/ta-bots/lib/page.d.ts +7 -1
- package/dist/pi/packages/ta-bots/lib/page.js +17 -0
- package/dist/pi/packages/ta-bots/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-bots/lib/style.js +1 -1
- package/dist/pi/packages/ta-bots/lib/wecom-channel.js +1 -1
- package/dist/pi/packages/ta-bots/lib/weixin-api.d.ts +1 -0
- package/dist/pi/packages/ta-bots/lib/weixin-channel.js +2 -1
- package/dist/pi/packages/ta-bots/package.json +1 -1
- package/dist/pi/packages/ta-bots/web/index.js +13 -2
- package/dist/pi/packages/ta-call/README.en.md +9 -0
- package/dist/pi/packages/ta-call/README.md +9 -0
- package/dist/pi/packages/ta-call/extension/index.mjs +474 -0
- package/dist/pi/packages/ta-call/host/index.mjs +899 -0
- package/dist/pi/packages/ta-call/lib/call-host.d.ts +127 -0
- package/dist/pi/packages/ta-call/lib/call-host.js +377 -0
- package/dist/pi/packages/ta-call/lib/call-protocol.d.ts +33 -0
- package/dist/pi/packages/ta-call/lib/call-protocol.js +10 -0
- package/dist/pi/packages/ta-call/lib/call-util.d.ts +50 -0
- package/dist/pi/packages/ta-call/lib/call-util.js +250 -0
- package/dist/pi/packages/ta-call/lib/extension.d.ts +20 -0
- package/dist/pi/packages/ta-call/lib/extension.js +114 -0
- package/dist/pi/packages/ta-call/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-call/lib/host.js +20 -0
- package/dist/pi/packages/ta-call/lib/i18n.d.ts +16 -0
- package/dist/pi/packages/ta-call/lib/i18n.js +38 -0
- package/dist/pi/packages/ta-call/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-call/lib/index.js +60 -0
- package/dist/pi/packages/ta-call/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-call/lib/react.js +8 -0
- package/dist/pi/packages/ta-call/package.json +64 -0
- package/dist/pi/packages/ta-call/web/index.js +552 -0
- package/dist/pi/packages/ta-changes/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-changes/lib/card.js +4 -1
- package/dist/pi/packages/ta-changes/package.json +1 -1
- package/dist/pi/packages/ta-changes/web/index.js +2 -0
- package/dist/pi/packages/ta-channels/extension/index.mjs +155 -194
- package/dist/pi/packages/ta-channels/host/index.mjs +2039 -1503
- package/dist/pi/packages/ta-channels/lib/agent-menu.js +2 -1
- package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/channel-menu.js +2 -2
- package/dist/pi/packages/ta-channels/lib/channels-text.d.ts +38 -0
- package/dist/pi/packages/ta-channels/lib/channels-text.js +173 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +0 -48
- package/dist/pi/packages/ta-channels/lib/channels-util.js +1 -223
- package/dist/pi/packages/ta-channels/lib/create.js +5 -1
- package/dist/pi/packages/ta-channels/lib/i18n-ja.d.ts +3 -0
- package/dist/pi/packages/ta-channels/lib/i18n-ja.js +182 -0
- package/dist/pi/packages/ta-channels/lib/i18n-zh-tw.d.ts +3 -0
- package/dist/pi/packages/ta-channels/lib/i18n-zh-tw.js +182 -0
- package/dist/pi/packages/ta-channels/lib/i18n-zh.d.ts +3 -0
- package/dist/pi/packages/ta-channels/lib/i18n-zh.js +182 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +4 -535
- package/dist/pi/packages/ta-channels/lib/index.js +2 -1
- package/dist/pi/packages/ta-channels/lib/notice-util.d.ts +15 -0
- package/dist/pi/packages/ta-channels/lib/notice-util.js +61 -0
- package/dist/pi/packages/ta-channels/lib/notice.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/notice.js +5 -4
- package/dist/pi/packages/ta-channels/lib/room.js +4 -3
- package/dist/pi/packages/ta-channels/lib/sidebar-head.d.ts +6 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-head.js +67 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-hooks.d.ts +51 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-hooks.js +230 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-rows.d.ts +71 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-rows.js +105 -0
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/sidebar.js +35 -396
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +0 -1
- package/dist/pi/packages/ta-channels/lib/tasks.js +2 -1
- package/dist/pi/packages/ta-channels/lib/team-store.d.ts +78 -0
- package/dist/pi/packages/ta-channels/lib/team-store.js +261 -0
- package/dist/pi/packages/ta-channels/lib/team-tools.js +3 -2
- package/dist/pi/packages/ta-channels/lib/team.d.ts +3 -76
- package/dist/pi/packages/ta-channels/lib/team.js +5 -254
- package/dist/pi/packages/ta-channels/package.json +1 -1
- package/dist/pi/packages/ta-channels/web/index.js +889 -809
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +19 -3
- package/dist/pi/packages/ta-cron/README.md +19 -3
- package/dist/pi/packages/ta-cron/extension/index.mjs +396 -111
- package/dist/pi/packages/ta-cron/host/index.mjs +633 -49
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +5 -3
- package/dist/pi/packages/ta-cron/lib/chat-task.js +15 -10
- package/dist/pi/packages/ta-cron/lib/commands.d.ts +7 -4
- package/dist/pi/packages/ta-cron/lib/commands.js +26 -47
- package/dist/pi/packages/ta-cron/lib/cron-expression.d.ts +8 -0
- package/dist/pi/packages/ta-cron/lib/cron-expression.js +43 -1
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +54 -7
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js +16 -2
- package/dist/pi/packages/ta-cron/lib/editor.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/editor.js +106 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +1 -1
- package/dist/pi/packages/ta-cron/lib/form-util.d.ts +16 -6
- package/dist/pi/packages/ta-cron/lib/form-util.js +40 -28
- package/dist/pi/packages/ta-cron/lib/host.js +17 -1
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +39 -5
- package/dist/pi/packages/ta-cron/lib/i18n.js +160 -24
- package/dist/pi/packages/ta-cron/lib/index.js +4 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +3 -2
- package/dist/pi/packages/ta-cron/lib/page.js +13 -2
- package/dist/pi/packages/ta-cron/lib/schedule-util.d.ts +4 -0
- package/dist/pi/packages/ta-cron/lib/schedule-util.js +52 -4
- package/dist/pi/packages/ta-cron/lib/scheduler.d.ts +56 -6
- package/dist/pi/packages/ta-cron/lib/scheduler.js +209 -27
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +50 -21
- package/dist/pi/packages/ta-cron/lib/task-list.d.ts +23 -0
- package/dist/pi/packages/ta-cron/lib/task-list.js +70 -0
- package/dist/pi/packages/ta-cron/lib/task-row.d.ts +19 -0
- package/dist/pi/packages/ta-cron/lib/task-row.js +246 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +10 -6
- package/dist/pi/packages/ta-cron/lib/task-util.js +53 -19
- package/dist/pi/packages/ta-cron/lib/task-watchers.d.ts +30 -0
- package/dist/pi/packages/ta-cron/lib/task-watchers.js +90 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +3 -2
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +48 -193
- package/dist/pi/packages/ta-cron/lib/tool-line.js +4 -0
- package/dist/pi/packages/ta-cron/lib/tool.d.ts +7 -0
- package/dist/pi/packages/ta-cron/lib/tool.js +18 -8
- package/dist/pi/packages/ta-cron/lib/when.d.ts +39 -0
- package/dist/pi/packages/ta-cron/lib/when.js +231 -0
- package/dist/pi/packages/ta-cron/package.json +2 -1
- package/dist/pi/packages/ta-cron/web/index.js +1091 -340
- package/dist/pi/packages/ta-extensions/lib/market-detail.js +9 -5
- package/dist/pi/packages/ta-extensions/lib/page.js +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +1 -1
- package/dist/pi/packages/ta-extensions/package.json +1 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +9 -7
- package/dist/pi/packages/ta-extensions/web/index.js +777 -237
- package/dist/pi/packages/ta-feedback/README.en.md +10 -0
- package/dist/pi/packages/ta-feedback/README.md +10 -0
- package/dist/pi/packages/ta-feedback/extension/index.mjs +451 -0
- package/dist/pi/packages/ta-feedback/host/index.mjs +1187 -0
- package/dist/pi/packages/ta-feedback/lib/extension.d.ts +31 -0
- package/dist/pi/packages/ta-feedback/lib/extension.js +160 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-git.d.ts +25 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-git.js +44 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-host.d.ts +133 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-host.js +668 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-protocol.d.ts +127 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-protocol.js +41 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-util.d.ts +79 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-util.js +252 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-view.d.ts +11 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-view.js +244 -0
- package/dist/pi/packages/ta-feedback/lib/host.d.ts +8 -0
- package/dist/pi/packages/ta-feedback/lib/host.js +19 -0
- package/dist/pi/packages/ta-feedback/lib/i18n.d.ts +69 -0
- package/dist/pi/packages/ta-feedback/lib/i18n.js +250 -0
- package/dist/pi/packages/ta-feedback/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-feedback/lib/index.js +88 -0
- package/dist/pi/packages/ta-feedback/lib/page.d.ts +35 -0
- package/dist/pi/packages/ta-feedback/lib/page.js +135 -0
- package/dist/pi/packages/ta-feedback/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-feedback/lib/react.js +8 -0
- package/dist/pi/packages/ta-feedback/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-feedback/lib/style.js +71 -0
- package/dist/pi/packages/ta-feedback/package.json +65 -0
- package/dist/pi/packages/ta-feedback/web/index.js +939 -0
- package/dist/pi/packages/ta-games/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-games/lib/style.js +1 -1
- package/dist/pi/packages/ta-games/package.json +1 -1
- package/dist/pi/packages/ta-games/web/index.js +1 -1
- package/dist/pi/packages/ta-glance/README.en.md +2 -0
- package/dist/pi/packages/ta-glance/README.md +2 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +135 -27
- package/dist/pi/packages/ta-glance/lib/card.js +155 -35
- package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-json.js +8 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +9 -6
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +43 -4
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +39 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +125 -23
- package/dist/pi/packages/ta-glance/lib/glance-speech.d.ts +13 -0
- package/dist/pi/packages/ta-glance/lib/glance-speech.js +45 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.d.ts +13 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.js +28 -0
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +20 -0
- package/dist/pi/packages/ta-glance/lib/index.js +11 -1
- package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/style.js +82 -5
- package/dist/pi/packages/ta-glance/package.json +2 -1
- package/dist/pi/packages/ta-glance/web/index.js +508 -62
- package/dist/pi/packages/ta-initiative/extension/index.mjs +3 -2
- package/dist/pi/packages/ta-initiative/host/index.mjs +1 -1
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/index.js +1 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/settings.js +2 -1
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
- package/dist/pi/packages/ta-initiative/package.json +1 -1
- package/dist/pi/packages/ta-initiative/web/index.js +5 -3
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-manual/lib/manual-util.d.ts +1 -1
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +15 -0
- package/dist/pi/packages/ta-manual/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-manual/lib/style.js +1 -1
- package/dist/pi/packages/ta-manual/lib/topics-a.d.ts +3 -0
- package/dist/pi/packages/ta-manual/lib/topics-a.js +295 -0
- package/dist/pi/packages/ta-manual/lib/topics-model.d.ts +46 -0
- package/dist/pi/packages/ta-manual/lib/topics-model.js +21 -0
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +1 -44
- package/dist/pi/packages/ta-manual/lib/topics.js +28 -318
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +12 -10
- package/dist/pi/packages/ta-manual/web/index.js +97 -24
- package/dist/pi/packages/ta-moments/extension/index.mjs +740 -194
- package/dist/pi/packages/ta-moments/host/index.mjs +1393 -834
- package/dist/pi/packages/ta-moments/lib/index.js +3 -1
- package/dist/pi/packages/ta-moments/lib/moments-host-base.d.ts +96 -0
- package/dist/pi/packages/ta-moments/lib/moments-host-base.js +276 -0
- package/dist/pi/packages/ta-moments/lib/moments-host-pictures.d.ts +22 -0
- package/dist/pi/packages/ta-moments/lib/moments-host-pictures.js +167 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +4 -84
- package/dist/pi/packages/ta-moments/lib/moments-host.js +13 -426
- package/dist/pi/packages/ta-moments/lib/page.js +3 -3
- package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-moments/lib/style.js +1 -1
- package/dist/pi/packages/ta-moments/lib/talk-host-base.d.ts +71 -0
- package/dist/pi/packages/ta-moments/lib/talk-host-base.js +171 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +3 -62
- package/dist/pi/packages/ta-moments/lib/talk-host.js +14 -169
- package/dist/pi/packages/ta-moments/package.json +1 -1
- package/dist/pi/packages/ta-moments/web/index.js +686 -147
- package/dist/pi/packages/ta-nearby/extension/index.mjs +9 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1073 -1018
- package/dist/pi/packages/ta-nearby/lib/index.js +8 -5
- package/dist/pi/packages/ta-nearby/lib/nearby-home.d.ts +13 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-home.js +91 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet-view.d.ts +12 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet-view.js +113 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-page.d.ts +6 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-page.js +157 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service-base.d.ts +161 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service-base.js +343 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service-meet.d.ts +41 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service-meet.js +297 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +6 -167
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +38 -638
- package/dist/pi/packages/ta-nearby/lib/nearby-show-view.d.ts +6 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-show-view.js +88 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +6 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +25 -3
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +27 -20
- package/dist/pi/packages/ta-nearby/lib/page.js +15 -417
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +1 -1
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +9 -1
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
- package/dist/pi/packages/ta-nearby/package.json +1 -1
- package/dist/pi/packages/ta-nearby/web/index.js +370 -362
- package/dist/pi/packages/ta-notify/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-notify/lib/settings.js +1 -0
- package/dist/pi/packages/ta-notify/package.json +1 -1
- package/dist/pi/packages/ta-notify/web/index.js +1 -0
- package/dist/pi/packages/ta-plot/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-plot/package.json +2 -1
- package/dist/pi/packages/ta-recall/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-recall/host/index.mjs +1 -0
- package/dist/pi/packages/ta-recall/lib/settings.js +1 -0
- package/dist/pi/packages/ta-recall/package.json +1 -1
- package/dist/pi/packages/ta-recall/web/index.js +2 -0
- package/dist/pi/packages/ta-rooms/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +497 -492
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +6 -6
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +10 -10
- package/dist/pi/packages/ta-rooms/lib/double-host.js +6 -5
- package/dist/pi/packages/ta-rooms/lib/double-tasks-base.d.ts +55 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks-base.js +279 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +3 -45
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +14 -282
- package/dist/pi/packages/ta-rooms/lib/double-user.js +2 -2
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +2 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.js +8 -4
- package/dist/pi/packages/ta-rooms/lib/index.js +18 -2
- package/dist/pi/packages/ta-rooms/lib/members-view.js +37 -3
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +36 -1
- package/dist/pi/packages/ta-rooms/lib/page.js +76 -1
- package/dist/pi/packages/ta-rooms/lib/room-view.js +22 -17
- package/dist/pi/packages/ta-rooms/lib/rooms-home.js +1 -0
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +32 -6
- package/dist/pi/packages/ta-rooms/package.json +1 -1
- package/dist/pi/packages/ta-rooms/web/index.js +223 -38
- package/dist/pi/packages/ta-secrets/README.en.md +22 -0
- package/dist/pi/packages/ta-secrets/README.md +22 -0
- package/dist/pi/packages/ta-secrets/extension/index.mjs +462 -0
- package/dist/pi/packages/ta-secrets/host/index.mjs +1341 -0
- package/dist/pi/packages/ta-secrets/lib/command-prelude.d.ts +36 -0
- package/dist/pi/packages/ta-secrets/lib/command-prelude.js +66 -0
- package/dist/pi/packages/ta-secrets/lib/extension.d.ts +28 -0
- package/dist/pi/packages/ta-secrets/lib/extension.js +156 -0
- package/dist/pi/packages/ta-secrets/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-secrets/lib/host.js +15 -0
- package/dist/pi/packages/ta-secrets/lib/i18n.d.ts +47 -0
- package/dist/pi/packages/ta-secrets/lib/i18n.js +166 -0
- package/dist/pi/packages/ta-secrets/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-secrets/lib/index.js +28 -0
- package/dist/pi/packages/ta-secrets/lib/personal-info.d.ts +26 -0
- package/dist/pi/packages/ta-secrets/lib/personal-info.js +108 -0
- package/dist/pi/packages/ta-secrets/lib/proxy-certs.d.ts +40 -0
- package/dist/pi/packages/ta-secrets/lib/proxy-certs.js +200 -0
- package/dist/pi/packages/ta-secrets/lib/proxy-scenario.d.ts +6 -0
- package/dist/pi/packages/ta-secrets/lib/proxy-scenario.js +91 -0
- package/dist/pi/packages/ta-secrets/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-secrets/lib/react.js +8 -0
- package/dist/pi/packages/ta-secrets/lib/scrubber.d.ts +20 -0
- package/dist/pi/packages/ta-secrets/lib/scrubber.js +70 -0
- package/dist/pi/packages/ta-secrets/lib/secrets-protocol.d.ts +106 -0
- package/dist/pi/packages/ta-secrets/lib/secrets-protocol.js +134 -0
- package/dist/pi/packages/ta-secrets/lib/server-texts.d.ts +14 -0
- package/dist/pi/packages/ta-secrets/lib/server-texts.js +62 -0
- package/dist/pi/packages/ta-secrets/lib/settings.d.ts +4 -0
- package/dist/pi/packages/ta-secrets/lib/settings.js +179 -0
- package/dist/pi/packages/ta-secrets/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-secrets/lib/style.js +32 -0
- package/dist/pi/packages/ta-secrets/lib/vault-fixture.d.ts +8 -0
- package/dist/pi/packages/ta-secrets/lib/vault-fixture.js +22 -0
- package/dist/pi/packages/ta-secrets/lib/vault-proxy.d.ts +94 -0
- package/dist/pi/packages/ta-secrets/lib/vault-proxy.js +357 -0
- package/dist/pi/packages/ta-secrets/lib/vault-service.d.ts +111 -0
- package/dist/pi/packages/ta-secrets/lib/vault-service.js +429 -0
- package/dist/pi/packages/ta-secrets/lib/vault-store.d.ts +48 -0
- package/dist/pi/packages/ta-secrets/lib/vault-store.js +107 -0
- package/dist/pi/packages/ta-secrets/package.json +67 -0
- package/dist/pi/packages/ta-secrets/web/index.js +579 -0
- package/dist/pi/packages/ta-share/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-share/host/index.mjs +172 -21
- package/dist/pi/packages/ta-share/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-share/lib/index.js +1 -1
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -0
- package/dist/pi/packages/ta-share/lib/share-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-share/lib/share-service.d.ts +11 -1
- package/dist/pi/packages/ta-share/lib/share-service.js +62 -4
- package/dist/pi/packages/ta-share/lib/snapshot.d.ts +8 -2
- package/dist/pi/packages/ta-share/lib/snapshot.js +93 -7
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +1 -1
- package/dist/pi/packages/ta-share/package.json +1 -1
- package/dist/pi/packages/ta-share/web/index.js +7 -2
- package/dist/pi/packages/ta-sync/host/index.mjs +1154 -755
- package/dist/pi/packages/ta-sync/lib/host.js +3 -0
- package/dist/pi/packages/ta-sync/lib/index.js +6 -2
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +8 -6
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +24 -28
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +40 -0
- package/dist/pi/packages/ta-sync/lib/migrate-paths.d.ts +24 -0
- package/dist/pi/packages/ta-sync/lib/migrate-paths.js +230 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +18 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +11 -1
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +28 -1
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +9 -1
- package/dist/pi/packages/ta-sync/lib/move-panel.js +69 -5
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +1 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +9 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-sync/lib/style.js +8 -1
- package/dist/pi/packages/ta-sync/lib/sync-service-base.d.ts +78 -0
- package/dist/pi/packages/ta-sync/lib/sync-service-base.js +224 -0
- package/dist/pi/packages/ta-sync/lib/sync-service-space.d.ts +36 -0
- package/dist/pi/packages/ta-sync/lib/sync-service-space.js +210 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +3 -99
- package/dist/pi/packages/ta-sync/lib/sync-service.js +2 -412
- package/dist/pi/packages/ta-sync/package.json +1 -1
- package/dist/pi/packages/ta-sync/web/index.js +138 -5
- package/dist/pi/packages/ta-sync-cloud/package.json +1 -1
- package/dist/pi/packages/ta-team/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-team/host/index.mjs +1 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +0 -2
- package/dist/pi/packages/ta-team/lib/dialogs.js +0 -227
- package/dist/pi/packages/ta-team/lib/i18n-ja.d.ts +3 -0
- package/dist/pi/packages/ta-team/lib/i18n-ja.js +211 -0
- package/dist/pi/packages/ta-team/lib/i18n-zh-tw.d.ts +3 -0
- package/dist/pi/packages/ta-team/lib/i18n-zh-tw.js +211 -0
- package/dist/pi/packages/ta-team/lib/i18n-zh.d.ts +3 -0
- package/dist/pi/packages/ta-team/lib/i18n-zh.js +211 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +1 -2
- package/dist/pi/packages/ta-team/lib/i18n.js +6 -624
- package/dist/pi/packages/ta-team/lib/index.js +3 -1
- package/dist/pi/packages/ta-team/lib/join-dialog.d.ts +3 -0
- package/dist/pi/packages/ta-team/lib/join-dialog.js +234 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +2 -1
- package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-team/lib/style.js +1 -1
- package/dist/pi/packages/ta-team/package.json +1 -1
- package/dist/pi/packages/ta-team/web/index.js +2095 -2086
- package/dist/pi/packages/ta-usage/README.en.md +6 -0
- package/dist/pi/packages/ta-usage/README.md +6 -0
- package/dist/pi/packages/ta-usage/host/index.mjs +220 -0
- package/dist/pi/packages/ta-usage/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-usage/lib/host.js +9 -0
- package/dist/pi/packages/ta-usage/lib/i18n.d.ts +30 -0
- package/dist/pi/packages/ta-usage/lib/i18n.js +98 -0
- package/dist/pi/packages/ta-usage/lib/index.d.ts +4 -0
- package/dist/pi/packages/ta-usage/lib/index.js +20 -0
- package/dist/pi/packages/ta-usage/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-usage/lib/react.js +8 -0
- package/dist/pi/packages/ta-usage/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-usage/lib/style.js +53 -0
- package/dist/pi/packages/ta-usage/lib/usage-host.d.ts +25 -0
- package/dist/pi/packages/ta-usage/lib/usage-host.js +70 -0
- package/dist/pi/packages/ta-usage/lib/usage-protocol.d.ts +55 -0
- package/dist/pi/packages/ta-usage/lib/usage-protocol.js +7 -0
- package/dist/pi/packages/ta-usage/lib/usage-util.d.ts +18 -0
- package/dist/pi/packages/ta-usage/lib/usage-util.js +159 -0
- package/dist/pi/packages/ta-usage/lib/usage-view.d.ts +9 -0
- package/dist/pi/packages/ta-usage/lib/usage-view.js +91 -0
- package/dist/pi/packages/ta-usage/package.json +61 -0
- package/dist/pi/packages/ta-usage/web/index.js +471 -0
- package/dist/pi/packages/ta-voice/README.en.md +8 -0
- package/dist/pi/packages/ta-voice/README.md +8 -0
- package/dist/pi/packages/ta-voice/host/index.mjs +662 -0
- package/dist/pi/packages/ta-voice/lib/doubao-frames.d.ts +44 -0
- package/dist/pi/packages/ta-voice/lib/doubao-frames.js +116 -0
- package/dist/pi/packages/ta-voice/lib/doubao-realtime.d.ts +35 -0
- package/dist/pi/packages/ta-voice/lib/doubao-realtime.js +172 -0
- package/dist/pi/packages/ta-voice/lib/host.d.ts +20 -0
- package/dist/pi/packages/ta-voice/lib/host.js +120 -0
- package/dist/pi/packages/ta-voice/lib/openai-realtime.d.ts +73 -0
- package/dist/pi/packages/ta-voice/lib/openai-realtime.js +257 -0
- package/dist/pi/packages/ta-voice/lib/realtime-socket.d.ts +23 -0
- package/dist/pi/packages/ta-voice/lib/realtime-socket.js +80 -0
- package/dist/pi/packages/ta-voice/package.json +67 -0
- package/dist/pi/packages/ta-workspace/README.md +1 -1
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts +4 -0
- package/dist/pi/packages/ta-workspace/lib/browser-common.js +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-pick.d.ts +49 -0
- package/dist/pi/packages/ta-workspace/lib/browser-pick.js +166 -0
- package/dist/pi/packages/ta-workspace/lib/browser-webview.js +16 -1
- package/dist/pi/packages/ta-workspace/lib/i18n-en.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-en.js +215 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-ja.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-ja.js +215 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-zh-tw.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-zh-tw.js +215 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +7 -3
- package/dist/pi/packages/ta-workspace/lib/i18n.js +11 -621
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +1504 -770
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-Dd51Bqbx.js → abnfDiagram-S7VZAUFO-w8qXXVn-.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BbG3_x7_.js → architecture-WOLXFQ4H-B-FHaYwY.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DbJO4t8I.js → architectureDiagram-YGSQEFNW-DTnoGaaX.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BwtrHF1f.js → blockDiagram-APKKGZFW-CyeBzv-v.js} +1 -1
- package/dist/public/assets/{browser-D2BcOPKG.js → browser-Cb38iiEE.js} +1 -1
- package/dist/public/assets/{browser-CTbeNBsA.js → browser-DXexCqIh.js} +2 -2
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CfBe5A0H.js → c4Diagram-KJ2TOQU5-CJJqDqyQ.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-C7R0mhrg.js → chunk-6MUBBAK2-DbvUMdNm.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-VQgQruZT.js → chunk-AXFCVDMN-D4hlZGtj.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-CkUi_vD5.js → chunk-BG4553SI-VNa9Q9On.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BAQq7ktk.js → chunk-DQASFODM-BtlEbc_V.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-B1oF8lB7.js → chunk-HFQBQIA3-CAYSo4CJ.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DE5amcgT.js → chunk-KQLB2F66-CyKdg6hW.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-ev9S_csp.js → chunk-KS47KZWR-BMogCB2r.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-ziqnRvTG.js → chunk-LEVMRMFU-Y9wr-8qB.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DaqPdEKA.js → chunk-M57EVK23-DL3IAQKR.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-DFOG8j6z.js → chunk-OY52VR5R-CJBFHdg6.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-eg35JLLN.js → chunk-QB3YPZ4I-CyuWKZZv.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-J73nie-R.js → chunk-R3KSYZAL-DxvGhfpm.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-B8EvDZvB.js → chunk-STOXU5M4-Cpdl6bfz.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-DyCM007V.js → chunk-TU62E6Q5-CIxOg6QF.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BBGeCNmA.js → chunk-X4PVCEUW-DCFSCRBh.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-CAtJ2Wph.js → chunk-XXDRQBXY-B2R8Cxf7.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-DhQM6yHy.js → classDiagram-v2-L25IHNXF-B7W9HSbj.js} +1 -1
- package/dist/public/assets/{client-C8gi9Fk2.js → client-D75LfyFa.js} +1 -1
- package/dist/public/assets/{common-DrZR0tgm.js → common-CjqTomRQ.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-AqIcHabu.js → cose-bilkent-JH36ORCC-CXSLFyCH.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-BIcbDns7.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-7SyXzhRd.js → cynefinDiagram-L36ESFBY-DTv0Kn1r.js} +1 -1
- package/dist/public/assets/{d3-selection-DsahLieG.js → d3-selection-g4Hl3_NH.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-DalaGtMS.js → dagre-SPEB5RXH-BujVqk5R.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-BcY-qB9G.js → diagram-3B7GL73J-Ds-VnLzP.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-NV7fbe0h.js → diagram-DNEMPZML-BBoIIK-a.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-BPx4GHoj.js → diagram-L3MUGCDN-Glgd5N_n.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-BeUxqmw1.js → diagram-LA4NIPWU-B4EODdUU.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Dlg1S5na.js → diagram-MHCOC4E2-pzDDXO2J.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-DQhRoMkK.js → diagram-XPFHEONP-l--gwSuK.js} +1 -1
- package/dist/public/assets/{dist-CQU8zJh_.js → dist-C0u3lAFR.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-gVEs3Um2.js → ebnfDiagram-UZSYDL2S-BVfPeaVX.js} +1 -1
- package/dist/public/assets/{editor.api-SQ1snuat.js → editor.api-BMcewI3C.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CHtlrPwu.js → elk-XV6XMXQE-BFJtUnG9.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-B0xok726.js → erDiagram-EYBAPDEH-BWxMtfIc.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-CFwphA0e.js → eventmodeling-K75KTNOO-YwYgBgCX.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Dah4--NW.js +1 -0
- package/dist/public/assets/{freemarker2-DJKO-X2B.js → freemarker2-B8HquI7K.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-B5wVGN1A.js → ganttDiagram-23REXITY-CBqv7wbi.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BwDfrSZS.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-DEjNU1R_.js → gitGraphDiagram-STJD7YCW-BLSf23f_.js} +1 -1
- package/dist/public/assets/{handlebars-ChVN7JPd.js → handlebars-P1qmNq4N.js} +1 -1
- package/dist/public/assets/{html-CQ0znKSa.js → html-Ceswbytr.js} +1 -1
- package/dist/public/assets/{index-CLlacdXR.js → index-10isUUN4.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-Ch8aMV1p.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CJtrS72M.js → infoDiagram-KBXO4MBG-LvOtgUlm.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-qYI1QBsK.js → ishikawaDiagram-M35NCXHK-CwUZOvcm.js} +1 -1
- package/dist/public/assets/{javascript-B-DHbkyI.js → javascript-B3FXC8qR.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-BOQ2y2ZZ.js → journeyDiagram-OPLOXDXO-5j1KtwTt.js} +1 -1
- package/dist/public/assets/{jsonMode-XuGC5N_z.js → jsonMode-CrCyxNQI.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BJ64tKdP.js → kanban-definition-BZKZHSQY-BKAB5id1.js} +1 -1
- package/dist/public/assets/{liquid-B0Ujylzc.js → liquid-CXZRIgp2.js} +1 -1
- package/dist/public/assets/{mdx-B19-V510.js → mdx-Dm3uNczM.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-Scb01iBq.js → mermaid-parser.core-C755A-rX.js} +3 -3
- package/dist/public/assets/{mermaid.core-BMuvs7us.js → mermaid.core-CQrYmFAR.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-BYfOS3XN.js → mindmap-definition-I2QAS2VK-DNJQKYbK.js} +1 -1
- package/dist/public/assets/module-9otB6_kX.js +1 -0
- package/dist/public/assets/{module-Cm_mLwAQ.js → module-C3jC5acf.js} +1 -1
- package/dist/public/assets/module-C_MyFORb.js +1 -0
- package/dist/public/assets/module-Cjpl4gva.js +1 -0
- package/dist/public/assets/{module-DUYj4E8T.js → module-D8yH9xCl.js} +1 -1
- package/dist/public/assets/module-DlHjBjOg.js +1 -0
- package/dist/public/assets/module-QsLiJaR6.js +1 -0
- package/dist/public/assets/module-aaW5Ri2L.js +2771 -0
- package/dist/public/assets/module-gSy9fKBo.js +1 -0
- package/dist/public/assets/{monaco-Bbe2os7m.js → monaco-BS7JBNW4.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-LqMrrc60.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-D-Vlq9Gm.js → pegDiagram-FD4XPPHP-BzbBCWht.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-BWzABXQU.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-_-94-aMD.js → pieDiagram-J4AKIIQI-Bf_LDukL.js} +1 -1
- package/dist/public/assets/{python-CWnMIOYq.js → python-jgOUhB-F.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-BhFUbUYz.js → quadrantDiagram-XTYBLID2-CdMHWnKX.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-CR4kNiUj.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-BAkWtkGC.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-yUa9GGCQ.js → railroad-abnf-LNEFI6M7-DQGYaRbc.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-xY4YiL8M.js → railroad-ebnf-DWYD2UWJ-D6Ljza0U.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-BYFYCUAQ.js → railroad-peg-JR7BVNR7-Du9hL1Gf.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-C9FVhj0k.js → railroadDiagram-MRQ6NCDL-CS_JnlGN.js} +1 -1
- package/dist/public/assets/{razor-bDtpN6EJ.js → razor-BWj90God.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-DLmAg-6C.js → requirementDiagram-Y7LWUY3S-Cq8rRz2y.js} +1 -1
- package/dist/public/assets/{resolver-0zC31mg5.js → resolver-BPuspqws.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-Bl5IpDk4.js → sankeyDiagram-WGJFYUXA-aK7jRBVK.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-Z-N0OiT_.js → sequenceDiagram-5NDRBG5M-BxcIyc38.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-ctKQz8Mo.js → stateDiagram-v2-FJ4FJNEA-Ctletlj4.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-CWLKnALg.js → swimlanes-UMQ2AFYF-DaD55xd2.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CytCT4x3.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DP8Ph_d6.js → timeline-definition-SEUHKTQE-Ce19CDiJ.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-DvzNkX4G.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-BuUeBmMd.js +1 -0
- package/dist/public/assets/{typescript-CGpNlLbn.js → typescript-RgyfxmPQ.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-DvFjNj3J.js → usecaseDiagram-AFA6YXN4-CAVEBKQS.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-3m2F2H-I.js → vennDiagram-NNMJR3RB-DHyJxlHv.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-DSfdKACG.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-CsMntu16.js → wardleyDiagram-S7YFUSEH-C-FCHxR7.js} +1 -1
- package/dist/public/assets/{xml-ByiLoakX.js → xml-DiA1T3iN.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-C80rxvM0.js → xychartDiagram-GGNKY7IX-BlnHU6Gz.js} +1 -1
- package/dist/public/assets/{yaml-Cz2Af5Rj.js → yaml-dnCcfJBR.js} +1 -1
- package/dist/public/ext/index.json +1 -0
- package/dist/public/ext/ta-3d.js +660 -0
- package/dist/public/ext/ta-glance.js +1611 -0
- package/dist/public/ext/ta-plot.js +1320 -0
- package/dist/public/index.html +2 -2
- package/dist/serve/index.mjs +17829 -14233
- package/package.json +45 -39
- package/dist/public/assets/cynefin-EF2NZ3EQ-yFytgtiy.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Cwye_DsX.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BYzb--zb.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-na0qX3JP.js +0 -1
- package/dist/public/assets/module-B3SKdB70.js +0 -1
- package/dist/public/assets/module-DDH-aU6z.js +0 -1
- package/dist/public/assets/module-DOrYVZ7B.js +0 -2615
- package/dist/public/assets/module-DRofmFJn.js +0 -1
- package/dist/public/assets/module-MaD4hvv4.js +0 -1
- package/dist/public/assets/module-ZDJutm0b.js +0 -1
- package/dist/public/assets/module-qoBVcE5h.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-jhCd70vR.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-DV0NJFsI.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Co-Hlf34.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DKMPEjDD.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CU76xJSu.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-JMMnu_MW.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CPlAD3X1.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-Dhc8wpLp.js +0 -1
|
@@ -48,6 +48,7 @@ function activate(host) {
|
|
|
48
48
|
// A place of its own: what a move keeps aside goes to a folder of its own.
|
|
49
49
|
place: new sync_items_1.AgentDirPlace(host.agentDir, side),
|
|
50
50
|
side,
|
|
51
|
+
...(typeof host.relocateDirectory === 'function' ? { relocate: (from, to) => host.relocateDirectory(from, to) } : {}),
|
|
51
52
|
publish: status => void host.setExtensionData(sync_protocol_1.SYNC_PACKAGE, migrate_protocol_1.MIGRATE_STATUS_KEY, status).catch(() => undefined),
|
|
52
53
|
});
|
|
53
54
|
void host.setExtensionData(sync_protocol_1.SYNC_PACKAGE, migrate_protocol_1.MIGRATE_STATUS_KEY, null).catch(() => undefined);
|
|
@@ -84,6 +85,8 @@ function activate(host) {
|
|
|
84
85
|
migrateExport: (categories, password, dir) => migrate.exportFile(categories, typeof password === 'string' ? password : undefined, typeof dir === 'string' && dir ? dir : undefined),
|
|
85
86
|
migrateImport: (path, password) => migrate.importFile(String(path !== null && path !== void 0 ? path : ''), typeof password === 'string' ? password : undefined),
|
|
86
87
|
migrateBackups: () => migrate.listBackups(),
|
|
88
|
+
migrateMissing: () => migrate.missing(),
|
|
89
|
+
migrateRelocate: (from, to) => migrate.relocate(String(from !== null && from !== void 0 ? from : ''), String(to !== null && to !== void 0 ? to : '')),
|
|
87
90
|
dispose: () => {
|
|
88
91
|
stopData();
|
|
89
92
|
service.dispose();
|
|
@@ -16,6 +16,7 @@ function settings(pi, store) {
|
|
|
16
16
|
return {
|
|
17
17
|
title: () => words().title,
|
|
18
18
|
icon: pi.ui.icons.RefreshCw,
|
|
19
|
+
group: 'devices',
|
|
19
20
|
rows: [
|
|
20
21
|
{
|
|
21
22
|
key: 'devices',
|
|
@@ -64,6 +65,7 @@ function activate(pi) {
|
|
|
64
65
|
pi.registerSettings({
|
|
65
66
|
title: () => migrate_i18n_1.MoveWordsUtil.of(pi.ui.language).title,
|
|
66
67
|
icon: pi.ui.icons.FolderInput,
|
|
68
|
+
group: 'devices',
|
|
67
69
|
rows: [
|
|
68
70
|
{
|
|
69
71
|
key: 'move',
|
|
@@ -77,7 +79,8 @@ function activate(pi) {
|
|
|
77
79
|
pi.registerView('move', {
|
|
78
80
|
title: () => migrate_i18n_1.MoveWordsUtil.of(pi.ui.language).title,
|
|
79
81
|
icon: pi.ui.icons.FolderInput,
|
|
80
|
-
|
|
82
|
+
// Its settings are where the user finds it; this page is for a link to it.
|
|
83
|
+
navigation: false,
|
|
81
84
|
render: () => (react_1.React.createElement("div", { className: "tsy-page" },
|
|
82
85
|
react_1.React.createElement(move_panel_1.MovePanel, { pi: pi, store: moves }))),
|
|
83
86
|
});
|
|
@@ -101,7 +104,8 @@ function activate(pi) {
|
|
|
101
104
|
pi.registerView('devices', {
|
|
102
105
|
title: () => i18n_1.SyncWords.of(pi.ui.language).title,
|
|
103
106
|
icon: pi.ui.icons.RefreshCw,
|
|
104
|
-
|
|
107
|
+
// Its settings are where the user finds it; this page is the one a room of its kind opens.
|
|
108
|
+
navigation: false,
|
|
105
109
|
render: () => react_1.React.createElement(panel_1.SyncPage, { pi: pi, store: store }),
|
|
106
110
|
});
|
|
107
111
|
return () => {
|
|
@@ -23,13 +23,14 @@ interface SourceEntry {
|
|
|
23
23
|
export declare namespace MigrateUtil {
|
|
24
24
|
/** pi's directory of the sessions of a directory (SessionManager's getDefaultSessionDirPath). */
|
|
25
25
|
function sessionDir(cwd: string): string;
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* A path of the computer moved from, as it is here: in the agent directory, else in the home directory; a path of
|
|
28
|
+
* Windows on another system too (TaPathMap: any separator, any case, the rest with the separator here).
|
|
29
|
+
*/
|
|
27
30
|
function remapPath(path: string, from: MigrateManifest['from'], to: {
|
|
28
31
|
home: string;
|
|
29
32
|
agentDir: string;
|
|
30
33
|
}): string;
|
|
31
|
-
/** Every path of the old computer in a text (JSON of the data of a package) as it is here. */
|
|
32
|
-
function remapText(text: string, pairs: readonly [string, string][]): string;
|
|
33
34
|
}
|
|
34
35
|
/** What this computer moves out: its entries in an order that the other computer can apply as they come. */
|
|
35
36
|
export declare class MigrateSource {
|
|
@@ -70,7 +71,8 @@ export declare class MigrateTarget {
|
|
|
70
71
|
constructor(agentDir: string, place: AgentDirPlace, side: SyncHostSide, manifest: MigrateManifest);
|
|
71
72
|
static check(head: EntryHead): void;
|
|
72
73
|
apply(head: EntryHead, bytes: Uint8Array): Promise<void>;
|
|
73
|
-
|
|
74
|
+
/** What came, and the directories of the conversations not on this computer, for the user to find a place for. */
|
|
75
|
+
finish(): Promise<MigrateReport>;
|
|
74
76
|
protected conversation(path: string, bytes: Uint8Array): Promise<void>;
|
|
75
77
|
protected file(head: EntryHead, bytes: Uint8Array): Promise<void>;
|
|
76
78
|
protected json(path: string, bytes: Uint8Array): Promise<void>;
|
|
@@ -78,8 +80,8 @@ export declare class MigrateTarget {
|
|
|
78
80
|
/** Who the user is in rooms, from the other computer: this Ta takes it on, its own kept for the rooms it is in. */
|
|
79
81
|
protected identity(bytes: Uint8Array): Promise<void>;
|
|
80
82
|
protected data(name: string, bytes: Uint8Array): Promise<void>;
|
|
81
|
-
/** The paths of the other computer in a
|
|
82
|
-
protected remap(
|
|
83
|
+
/** The paths of the other computer in a value of JSON as they are here: its conversations, the deepest first, then its agent and home directories. */
|
|
84
|
+
protected remap<T>(value: T): T;
|
|
83
85
|
/** The session files of this computer, by their names, which are unique (a time and an id). */
|
|
84
86
|
protected knownSessions(): Promise<Map<string, string>>;
|
|
85
87
|
protected write(file: string, bytes: Uint8Array, mode?: number): Promise<void>;
|
|
@@ -4,7 +4,9 @@ exports.MigrateTarget = exports.MigrateSource = exports.MigrateUtil = void 0;
|
|
|
4
4
|
const promises_1 = require("node:fs/promises");
|
|
5
5
|
const node_os_1 = require("node:os");
|
|
6
6
|
const node_path_1 = require("node:path");
|
|
7
|
+
const path_map_1 = require("@celljs/ta-protocol/lib/common/path-map");
|
|
7
8
|
const migrate_frames_1 = require("./migrate-frames");
|
|
9
|
+
const migrate_paths_1 = require("./migrate-paths");
|
|
8
10
|
const sync_codec_1 = require("./sync-codec");
|
|
9
11
|
const sync_items_1 = require("./sync-items");
|
|
10
12
|
const sync_merge_1 = require("./sync-merge");
|
|
@@ -60,28 +62,17 @@ var MigrateUtil;
|
|
|
60
62
|
return `--${cwd.replace(/^[/\\]/, '').replace(/[/\\:]/g, '-')}--`;
|
|
61
63
|
}
|
|
62
64
|
MigrateUtil.sessionDir = sessionDir;
|
|
63
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* A path of the computer moved from, as it is here: in the agent directory, else in the home directory; a path of
|
|
67
|
+
* Windows on another system too (TaPathMap: any separator, any case, the rest with the separator here).
|
|
68
|
+
*/
|
|
64
69
|
function remapPath(path, from, to) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return to.home + path.slice(from.home.length);
|
|
70
|
-
}
|
|
71
|
-
return path;
|
|
70
|
+
return path_map_1.TaPathMap.path(path, [
|
|
71
|
+
[from.agentDir, to.agentDir],
|
|
72
|
+
[from.home, to.home],
|
|
73
|
+
]);
|
|
72
74
|
}
|
|
73
75
|
MigrateUtil.remapPath = remapPath;
|
|
74
|
-
/** Every path of the old computer in a text (JSON of the data of a package) as it is here. */
|
|
75
|
-
function remapText(text, pairs) {
|
|
76
|
-
let out = text;
|
|
77
|
-
for (const [before, after] of pairs) {
|
|
78
|
-
if (before && before !== after) {
|
|
79
|
-
out = out.split(before).join(after);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return out;
|
|
83
|
-
}
|
|
84
|
-
MigrateUtil.remapText = remapText;
|
|
85
76
|
})(MigrateUtil || (exports.MigrateUtil = MigrateUtil = {}));
|
|
86
77
|
/** What this computer moves out: its entries in an order that the other computer can apply as they come. */
|
|
87
78
|
class MigrateSource {
|
|
@@ -103,9 +94,11 @@ class MigrateSource {
|
|
|
103
94
|
count.bytes += (_b = head.size) !== null && _b !== void 0 ? _b : 0;
|
|
104
95
|
bytes += (_c = head.size) !== null && _c !== void 0 ? _c : 0;
|
|
105
96
|
}
|
|
97
|
+
const projects = categories.includes('conversations') ? await migrate_paths_1.MigratePaths.projects(this.agentDir) : [];
|
|
106
98
|
return {
|
|
107
99
|
v: 1,
|
|
108
100
|
from: { name: this.name, platform: (0, node_os_1.platform)(), home: (0, node_os_1.homedir)(), agentDir: this.agentDir },
|
|
101
|
+
...(projects.length ? { projects } : {}),
|
|
109
102
|
categories: [...categories],
|
|
110
103
|
counts,
|
|
111
104
|
bytes,
|
|
@@ -262,9 +255,13 @@ class MigrateTarget {
|
|
|
262
255
|
this.report.skipped.push({ id, reason: error instanceof Error ? error.message : String(error) });
|
|
263
256
|
}
|
|
264
257
|
}
|
|
265
|
-
|
|
258
|
+
/** What came, and the directories of the conversations not on this computer, for the user to find a place for. */
|
|
259
|
+
async finish() {
|
|
266
260
|
const replaced = this.place.usedFolder;
|
|
267
|
-
|
|
261
|
+
const missing = this.manifest.categories.includes('conversations')
|
|
262
|
+
? await migrate_paths_1.MigratePaths.missing(this.agentDir, this.manifest.projects, path => MigrateUtil.remapPath(path, this.manifest.from, this.to)).catch(() => [])
|
|
263
|
+
: [];
|
|
264
|
+
return { ...this.report, ...(replaced ? { replaced } : {}), ...(missing.length ? { missing } : {}) };
|
|
268
265
|
}
|
|
269
266
|
async conversation(path, bytes) {
|
|
270
267
|
const name = (0, node_path_1.basename)(path);
|
|
@@ -321,7 +318,8 @@ class MigrateTarget {
|
|
|
321
318
|
}
|
|
322
319
|
const target = (0, node_path_1.join)(this.agentDir, path);
|
|
323
320
|
const before = await (0, promises_1.readFile)(target).catch(() => undefined);
|
|
324
|
-
const
|
|
321
|
+
const read = JSON.parse(new TextDecoder().decode(bytes));
|
|
322
|
+
const remote = path === 'ta.json' ? this.remap(read) : read;
|
|
325
323
|
const local = before ? JSON.parse(before.toString('utf8')) : {};
|
|
326
324
|
const merged = sync_merge_1.SyncMerge.value(undefined, local, remote);
|
|
327
325
|
if (sync_merge_1.SyncMerge.same(merged, local)) {
|
|
@@ -386,7 +384,7 @@ class MigrateTarget {
|
|
|
386
384
|
if (name === OWN) {
|
|
387
385
|
return;
|
|
388
386
|
}
|
|
389
|
-
const data = JSON.parse(
|
|
387
|
+
const data = this.remap(JSON.parse(new TextDecoder().decode(bytes)));
|
|
390
388
|
if (!sync_merge_1.SyncMerge.isObject(data)) {
|
|
391
389
|
throw new Error('Not the data of a package.');
|
|
392
390
|
}
|
|
@@ -410,11 +408,9 @@ class MigrateTarget {
|
|
|
410
408
|
this.report.data++;
|
|
411
409
|
}
|
|
412
410
|
}
|
|
413
|
-
/** The paths of the other computer in a
|
|
414
|
-
remap(
|
|
415
|
-
|
|
416
|
-
pairs.push([this.manifest.from.agentDir, this.to.agentDir], [`${this.manifest.from.home}/`, `${this.to.home}/`]);
|
|
417
|
-
return MigrateUtil.remapText(text, pairs);
|
|
411
|
+
/** The paths of the other computer in a value of JSON as they are here: its conversations, the deepest first, then its agent and home directories. */
|
|
412
|
+
remap(value) {
|
|
413
|
+
return path_map_1.TaPathMap.json(value, [...this.sessions, [this.manifest.from.agentDir, this.to.agentDir], [this.manifest.from.home, this.to.home]]);
|
|
418
414
|
}
|
|
419
415
|
/** The session files of this computer, by their names, which are unique (a time and an id). */
|
|
420
416
|
async knownSessions() {
|
|
@@ -20,6 +20,16 @@ declare const en: {
|
|
|
20
20
|
waitingCompare: string;
|
|
21
21
|
compareHint: string;
|
|
22
22
|
doneFrom: string;
|
|
23
|
+
missingTitle: string;
|
|
24
|
+
missingLead: string;
|
|
25
|
+
missingCount: string;
|
|
26
|
+
missingFound: string;
|
|
27
|
+
missingNone: string;
|
|
28
|
+
missingUse: string;
|
|
29
|
+
missingPick: string;
|
|
30
|
+
missingUseAll: string;
|
|
31
|
+
missingMoved: string;
|
|
32
|
+
missingBusy: string;
|
|
23
33
|
factConversations: string;
|
|
24
34
|
factItems: string;
|
|
25
35
|
factData: string;
|
|
@@ -22,6 +22,16 @@ const en = {
|
|
|
22
22
|
waitingCompare: 'Compare it with the code on the old computer, then allow it there.',
|
|
23
23
|
compareHint: 'Allow only if the new computer shows the same code.',
|
|
24
24
|
doneFrom: 'Moved from {name}',
|
|
25
|
+
missingTitle: 'Folders not on this computer',
|
|
26
|
+
missingLead: '{n} conversations work in folders this computer does not have. Point each to where it is here and they carry on there.',
|
|
27
|
+
missingCount: '{n} conversations',
|
|
28
|
+
missingFound: 'Likely {path}',
|
|
29
|
+
missingNone: 'Not found here',
|
|
30
|
+
missingUse: 'Use this',
|
|
31
|
+
missingPick: 'Choose…',
|
|
32
|
+
missingUseAll: 'Use all found',
|
|
33
|
+
missingMoved: '{n} conversations now work in {dir}',
|
|
34
|
+
missingBusy: '{n} running now: move them once they end',
|
|
25
35
|
factConversations: 'conversations',
|
|
26
36
|
factItems: 'settings and the like',
|
|
27
37
|
factData: "extensions' data",
|
|
@@ -111,6 +121,16 @@ const zh = {
|
|
|
111
121
|
waitingCompare: '核对旧电脑上显示的数字,一致后在旧电脑上点同意。',
|
|
112
122
|
compareHint: '新电脑上显示的数字一致时再同意。',
|
|
113
123
|
doneFrom: '已从 {name} 迁入',
|
|
124
|
+
missingTitle: '这台电脑上找不到的目录',
|
|
125
|
+
missingLead: '有 {n} 个对话的目录在这台电脑上不存在。给每个目录指到这里的位置,对话就在那里接着做。',
|
|
126
|
+
missingCount: '{n} 个对话',
|
|
127
|
+
missingFound: '可能在 {path}',
|
|
128
|
+
missingNone: '这里没找到',
|
|
129
|
+
missingUse: '就用这里',
|
|
130
|
+
missingPick: '选位置…',
|
|
131
|
+
missingUseAll: '全部按找到的改',
|
|
132
|
+
missingMoved: '{n} 个对话已改到 {dir}',
|
|
133
|
+
missingBusy: '{n} 个正在运行,结束后再改',
|
|
114
134
|
factConversations: '个对话',
|
|
115
135
|
factItems: '项设置等',
|
|
116
136
|
factData: '个扩展的数据',
|
|
@@ -200,6 +220,16 @@ const zhTw = {
|
|
|
200
220
|
waitingCompare: '核對舊電腦上顯示的數字,一致後在舊電腦上點同意。',
|
|
201
221
|
compareHint: '新電腦上顯示的數字一致時再同意。',
|
|
202
222
|
doneFrom: '已從 {name} 遷入',
|
|
223
|
+
missingTitle: '這台電腦上找不到的目錄',
|
|
224
|
+
missingLead: '有 {n} 個對話的目錄在這台電腦上不存在。把每個目錄指到這裡的位置,對話就在那裡接著做。',
|
|
225
|
+
missingCount: '{n} 個對話',
|
|
226
|
+
missingFound: '可能在 {path}',
|
|
227
|
+
missingNone: '這裡沒找到',
|
|
228
|
+
missingUse: '就用這裡',
|
|
229
|
+
missingPick: '選位置…',
|
|
230
|
+
missingUseAll: '全部按找到的改',
|
|
231
|
+
missingMoved: '{n} 個對話已改到 {dir}',
|
|
232
|
+
missingBusy: '{n} 個正在執行,結束後再改',
|
|
203
233
|
factConversations: '個對話',
|
|
204
234
|
factItems: '項設定等',
|
|
205
235
|
factData: '個擴充功能的資料',
|
|
@@ -289,6 +319,16 @@ const ja = {
|
|
|
289
319
|
waitingCompare: '古いコンピューターに表示される番号を確認し、一致したら古いコンピューターで同意をクリックします。',
|
|
290
320
|
compareHint: '新しいコンピューターに表示される番号が一致したら同意します。',
|
|
291
321
|
doneFrom: '{name}から移動しました',
|
|
322
|
+
missingTitle: 'このコンピューターにないフォルダー',
|
|
323
|
+
missingLead: '{n} 件の会話のフォルダーがこのコンピューターにありません。それぞれをここでの場所に指定すると、そこで続けられます。',
|
|
324
|
+
missingCount: '{n} 件の会話',
|
|
325
|
+
missingFound: '{path} かもしれません',
|
|
326
|
+
missingNone: 'ここには見つかりません',
|
|
327
|
+
missingUse: 'ここを使う',
|
|
328
|
+
missingPick: '場所を選ぶ…',
|
|
329
|
+
missingUseAll: '見つかった場所をすべて使う',
|
|
330
|
+
missingMoved: '{n} 件の会話を {dir} に移しました',
|
|
331
|
+
missingBusy: '{n} 件は実行中です。終わってから移してください',
|
|
292
332
|
factConversations: '件の会話',
|
|
293
333
|
factItems: '個の設定など',
|
|
294
334
|
factData: '個の拡張機能のデータ',
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MigrateMissing, MigrateProject } from './migrate-protocol';
|
|
2
|
+
/**
|
|
3
|
+
* The directories of conversations after a move (docs/design/ta-sync.md 8.4): which are not on this computer, and
|
|
4
|
+
* where each likely is now, by a project of the same git remote or of the same name in the home directory.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace MigratePaths {
|
|
7
|
+
/** The directories of the conversations of this computer, with the conversations of each. */
|
|
8
|
+
function directories(agentDir: string): Promise<Map<string, number>>;
|
|
9
|
+
/** The git remotes of the directories of the conversations, for the other computer to find each again. */
|
|
10
|
+
function projects(agentDir: string): Promise<MigrateProject[]>;
|
|
11
|
+
/**
|
|
12
|
+
* The directories of conversations not on this computer, one under another as one; each with where it likely is
|
|
13
|
+
* now. \`projects\`: the remotes the other computer gave, by its paths (MigrateManifest.projects), and \`map\` turns
|
|
14
|
+
* them into the paths here as the move did.
|
|
15
|
+
*/
|
|
16
|
+
function missing(agentDir: string, projects?: readonly MigrateProject[], map?: (path: string) => string, home?: string): Promise<MigrateMissing[]>;
|
|
17
|
+
/** The same place under the home directory here: `C:\Users\ann\code\app` or `/Users/ann/code/app` as `~/code/app`. */
|
|
18
|
+
function homeGuess(dir: string, home: string): Promise<string | undefined>;
|
|
19
|
+
function normalizeRemote(url: string): string;
|
|
20
|
+
/** The url of the remote origin (else the first) of the git repository a directory is in. */
|
|
21
|
+
function gitRemote(cwd: string): Promise<string | undefined>;
|
|
22
|
+
function remoteOf(config: string): string | undefined;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=migrate-paths.d.ts.map
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MigratePaths = void 0;
|
|
4
|
+
const promises_1 = require("node:fs/promises");
|
|
5
|
+
const node_os_1 = require("node:os");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const path_map_1 = require("@celljs/ta-protocol/lib/common/path-map");
|
|
8
|
+
/** The first line of a session file of pi is its header; it is read without the rest. */
|
|
9
|
+
const HEADER_BYTES = 64 * 1024;
|
|
10
|
+
/** How deep, and how many folders, the home directory is looked through for where a project is now. */
|
|
11
|
+
const DEPTH = 4;
|
|
12
|
+
const MAX_FOLDERS = 20000;
|
|
13
|
+
/** Folders no project is in, or too large to look through. */
|
|
14
|
+
const SKIPPED = new Set([
|
|
15
|
+
'node_modules',
|
|
16
|
+
'Library',
|
|
17
|
+
'AppData',
|
|
18
|
+
'Applications',
|
|
19
|
+
'Pictures',
|
|
20
|
+
'Music',
|
|
21
|
+
'Movies',
|
|
22
|
+
'Videos',
|
|
23
|
+
'snap',
|
|
24
|
+
'go',
|
|
25
|
+
'target',
|
|
26
|
+
'dist',
|
|
27
|
+
'build',
|
|
28
|
+
]);
|
|
29
|
+
const MAX_PROJECTS = 500;
|
|
30
|
+
/**
|
|
31
|
+
* The directories of conversations after a move (docs/design/ta-sync.md 8.4): which are not on this computer, and
|
|
32
|
+
* where each likely is now, by a project of the same git remote or of the same name in the home directory.
|
|
33
|
+
*/
|
|
34
|
+
var MigratePaths;
|
|
35
|
+
(function (MigratePaths) {
|
|
36
|
+
/** The directories of the conversations of this computer, with the conversations of each. */
|
|
37
|
+
async function directories(agentDir) {
|
|
38
|
+
var _a;
|
|
39
|
+
const counts = new Map();
|
|
40
|
+
const root = (0, node_path_1.join)(agentDir, 'sessions');
|
|
41
|
+
for (const dir of await (0, promises_1.readdir)(root, { withFileTypes: true }).catch(() => [])) {
|
|
42
|
+
if (!dir.isDirectory()) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
for (const name of await (0, promises_1.readdir)((0, node_path_1.join)(root, dir.name)).catch(() => [])) {
|
|
46
|
+
const cwd = name.endsWith('.jsonl') ? await headerCwd((0, node_path_1.join)(root, dir.name, name)) : undefined;
|
|
47
|
+
if (cwd) {
|
|
48
|
+
counts.set(cwd, ((_a = counts.get(cwd)) !== null && _a !== void 0 ? _a : 0) + 1);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return counts;
|
|
53
|
+
}
|
|
54
|
+
MigratePaths.directories = directories;
|
|
55
|
+
/** The git remotes of the directories of the conversations, for the other computer to find each again. */
|
|
56
|
+
async function projects(agentDir) {
|
|
57
|
+
const found = [];
|
|
58
|
+
for (const cwd of (await directories(agentDir)).keys()) {
|
|
59
|
+
const remote = await gitRemote(cwd);
|
|
60
|
+
if (remote) {
|
|
61
|
+
found.push({ cwd, remote });
|
|
62
|
+
}
|
|
63
|
+
if (found.length >= MAX_PROJECTS) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return found;
|
|
68
|
+
}
|
|
69
|
+
MigratePaths.projects = projects;
|
|
70
|
+
/**
|
|
71
|
+
* The directories of conversations not on this computer, one under another as one; each with where it likely is
|
|
72
|
+
* now. \`projects\`: the remotes the other computer gave, by its paths (MigrateManifest.projects), and \`map\` turns
|
|
73
|
+
* them into the paths here as the move did.
|
|
74
|
+
*/
|
|
75
|
+
async function missing(agentDir, projects = [], map = path => path, home = (0, node_os_1.homedir)()) {
|
|
76
|
+
const gone = [];
|
|
77
|
+
for (const [cwd, conversations] of await directories(agentDir)) {
|
|
78
|
+
if (!(await isDirectory(cwd))) {
|
|
79
|
+
gone.push({ dir: cwd, conversations });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// The shortest first: one under another goes with it.
|
|
83
|
+
gone.sort((a, b) => a.dir.length - b.dir.length);
|
|
84
|
+
const groups = [];
|
|
85
|
+
for (const each of gone) {
|
|
86
|
+
const parent = groups.find(group => path_map_1.TaPathMap.under(each.dir, group.dir));
|
|
87
|
+
if (parent) {
|
|
88
|
+
parent.conversations += each.conversations;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
groups.push({ ...each });
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (!groups.length) {
|
|
95
|
+
return [];
|
|
96
|
+
}
|
|
97
|
+
const remotes = new Map(projects.map(project => [map(project.cwd), normalizeRemote(project.remote)]));
|
|
98
|
+
let found;
|
|
99
|
+
for (const group of groups) {
|
|
100
|
+
const near = await homeGuess(group.dir, home);
|
|
101
|
+
if (near) {
|
|
102
|
+
group.suggestion = near;
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
found !== null && found !== void 0 ? found : (found = await look(home, remotes.size > 0));
|
|
106
|
+
const remote = remotes.get(group.dir);
|
|
107
|
+
const byRemote = remote ? found.byRemote.get(remote) : undefined;
|
|
108
|
+
const byName = found.byName.get(path_map_1.TaPathMap.basename(group.dir).toLowerCase());
|
|
109
|
+
const suggestion = (byRemote === null || byRemote === void 0 ? void 0 : byRemote.length) === 1 ? byRemote[0] : (byName === null || byName === void 0 ? void 0 : byName.length) === 1 ? byName[0] : undefined;
|
|
110
|
+
if (suggestion) {
|
|
111
|
+
group.suggestion = suggestion;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return groups.sort((a, b) => b.conversations - a.conversations);
|
|
115
|
+
}
|
|
116
|
+
MigratePaths.missing = missing;
|
|
117
|
+
/** The same place under the home directory here: `C:\Users\ann\code\app` or `/Users/ann/code/app` as `~/code/app`. */
|
|
118
|
+
async function homeGuess(dir, home) {
|
|
119
|
+
const match = /^(?:[a-zA-Z]:[\\/]+(?:Users|Documents and Settings)[\\/]+[^\\/]+|\/(?:Users|home)\/[^/]+)(?=$|[\\/])/i.exec(dir);
|
|
120
|
+
if (!match) {
|
|
121
|
+
return undefined;
|
|
122
|
+
}
|
|
123
|
+
const guess = path_map_1.TaPathMap.path(dir, [[match[0], home]]);
|
|
124
|
+
return guess !== dir && (await isDirectory(guess)) ? guess : undefined;
|
|
125
|
+
}
|
|
126
|
+
MigratePaths.homeGuess = homeGuess;
|
|
127
|
+
function normalizeRemote(url) {
|
|
128
|
+
return url
|
|
129
|
+
.trim()
|
|
130
|
+
.replace(/\.git$/, '')
|
|
131
|
+
.replace(/^[a-z+]+:\/\/(?:[^@/]+@)?/i, '')
|
|
132
|
+
.replace(/^[^@/]+@([^:/]+):/, '$1/')
|
|
133
|
+
.toLowerCase();
|
|
134
|
+
}
|
|
135
|
+
MigratePaths.normalizeRemote = normalizeRemote;
|
|
136
|
+
/** The url of the remote origin (else the first) of the git repository a directory is in. */
|
|
137
|
+
async function gitRemote(cwd) {
|
|
138
|
+
let dir = cwd;
|
|
139
|
+
for (let i = 0; i < 20; i++) {
|
|
140
|
+
const config = await (0, promises_1.readFile)((0, node_path_1.join)(dir, '.git', 'config'), 'utf8').catch(() => undefined);
|
|
141
|
+
if (config !== undefined) {
|
|
142
|
+
return remoteOf(config);
|
|
143
|
+
}
|
|
144
|
+
const parent = (0, node_path_1.dirname)(dir);
|
|
145
|
+
if (parent === dir) {
|
|
146
|
+
return undefined;
|
|
147
|
+
}
|
|
148
|
+
dir = parent;
|
|
149
|
+
}
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
152
|
+
MigratePaths.gitRemote = gitRemote;
|
|
153
|
+
function remoteOf(config) {
|
|
154
|
+
var _a;
|
|
155
|
+
var _b;
|
|
156
|
+
const urls = [];
|
|
157
|
+
let section = '';
|
|
158
|
+
for (const line of config.split(/\r?\n/)) {
|
|
159
|
+
const head = /^\s*\[\s*remote\s+"([^"]+)"\s*\]/.exec(line);
|
|
160
|
+
if (head) {
|
|
161
|
+
section = head[1];
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
if (/^\s*\[/.test(line)) {
|
|
165
|
+
section = '';
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
const url = /^\s*url\s*=\s*(.+?)\s*$/.exec(line);
|
|
169
|
+
if (section && url) {
|
|
170
|
+
urls.push([section, url[1]]);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return (_a = ((_b = urls.find(([name]) => name === 'origin')) !== null && _b !== void 0 ? _b : urls[0])) === null || _a === void 0 ? void 0 : _a[1];
|
|
174
|
+
}
|
|
175
|
+
MigratePaths.remoteOf = remoteOf;
|
|
176
|
+
/** The folders of the home directory by their names, and the git repositories by their remotes. */
|
|
177
|
+
async function look(home, remotes) {
|
|
178
|
+
const found = { byName: new Map(), byRemote: new Map() };
|
|
179
|
+
let folders = 0;
|
|
180
|
+
const add = (map, key, path) => { var _a; return map.set(key, [...((_a = map.get(key)) !== null && _a !== void 0 ? _a : []), path]); };
|
|
181
|
+
const visit = async (dir, depth) => {
|
|
182
|
+
const entries = await (0, promises_1.readdir)(dir, { withFileTypes: true }).catch(() => []);
|
|
183
|
+
if (remotes && entries.some(entry => entry.name === '.git')) {
|
|
184
|
+
const config = await (0, promises_1.readFile)((0, node_path_1.join)(dir, '.git', 'config'), 'utf8').catch(() => undefined);
|
|
185
|
+
const remote = config && remoteOf(config);
|
|
186
|
+
if (remote) {
|
|
187
|
+
add(found.byRemote, normalizeRemote(remote), dir);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
for (const entry of entries) {
|
|
191
|
+
if (!entry.isDirectory() || entry.name.startsWith('.') || SKIPPED.has(entry.name) || ++folders > MAX_FOLDERS) {
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
const path = (0, node_path_1.join)(dir, entry.name);
|
|
195
|
+
add(found.byName, entry.name.toLowerCase(), path);
|
|
196
|
+
if (depth < DEPTH) {
|
|
197
|
+
await visit(path, depth + 1);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
await visit(home, 1);
|
|
202
|
+
return found;
|
|
203
|
+
}
|
|
204
|
+
})(MigratePaths || (exports.MigratePaths = MigratePaths = {}));
|
|
205
|
+
async function isDirectory(path) {
|
|
206
|
+
var _a;
|
|
207
|
+
var _b;
|
|
208
|
+
return (_b = (_a = (await (0, promises_1.stat)(path).catch(() => undefined))) === null || _a === void 0 ? void 0 : _a.isDirectory()) !== null && _b !== void 0 ? _b : false;
|
|
209
|
+
}
|
|
210
|
+
async function headerCwd(file) {
|
|
211
|
+
const handle = await (0, promises_1.open)(file, 'r').catch(() => undefined);
|
|
212
|
+
if (!handle) {
|
|
213
|
+
return undefined;
|
|
214
|
+
}
|
|
215
|
+
try {
|
|
216
|
+
const buffer = Buffer.alloc(HEADER_BYTES);
|
|
217
|
+
const { bytesRead } = await handle.read(buffer, 0, HEADER_BYTES, 0);
|
|
218
|
+
const text = buffer.subarray(0, bytesRead).toString('utf8');
|
|
219
|
+
const end = text.indexOf('\n');
|
|
220
|
+
const header = JSON.parse(end < 0 ? text : text.slice(0, end));
|
|
221
|
+
return header.type === 'session' && typeof header.cwd === 'string' ? header.cwd : undefined;
|
|
222
|
+
}
|
|
223
|
+
catch (_a) {
|
|
224
|
+
return undefined;
|
|
225
|
+
}
|
|
226
|
+
finally {
|
|
227
|
+
await handle.close();
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
//# sourceMappingURL=migrate-paths.js.map
|
|
@@ -27,12 +27,28 @@ export interface MigrateManifest {
|
|
|
27
27
|
home: string;
|
|
28
28
|
agentDir: string;
|
|
29
29
|
};
|
|
30
|
+
/** The git remotes of the directories of the conversations, for the other computer to find them again. */
|
|
31
|
+
projects?: MigrateProject[];
|
|
30
32
|
categories: MigrateCategory[];
|
|
31
33
|
counts: Partial<Record<MigrateCategory, MigrateCount>>;
|
|
32
34
|
/** All the files, before compression. */
|
|
33
35
|
bytes: number;
|
|
34
36
|
createdAt: number;
|
|
35
37
|
}
|
|
38
|
+
/** A directory of conversations on the computer moved from, and the git remote of its project. */
|
|
39
|
+
export interface MigrateProject {
|
|
40
|
+
cwd: string;
|
|
41
|
+
remote: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A directory of conversations not on this computer (docs/design/ta-sync.md 8.4): its conversations, those of the
|
|
45
|
+
* directories under it too, and where it likely is now.
|
|
46
|
+
*/
|
|
47
|
+
export interface MigrateMissing {
|
|
48
|
+
dir: string;
|
|
49
|
+
conversations: number;
|
|
50
|
+
suggestion?: string;
|
|
51
|
+
}
|
|
36
52
|
export interface MigrateProgress {
|
|
37
53
|
done: number;
|
|
38
54
|
total: number;
|
|
@@ -56,6 +72,8 @@ export interface MigrateReport {
|
|
|
56
72
|
}[];
|
|
57
73
|
/** Where what was replaced here is kept, when something was. */
|
|
58
74
|
replaced?: string;
|
|
75
|
+
/** Directories of the conversations that are not on this computer, to find a place for. */
|
|
76
|
+
missing?: MigrateMissing[];
|
|
59
77
|
/** The identity in rooms came: whether this Ta took it on (another than its own), and the rooms and friends it got. */
|
|
60
78
|
identity?: {
|
|
61
79
|
switched: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type Socket as UdpSocket } from 'node:dgram';
|
|
2
2
|
import { type Server, type Socket } from 'node:net';
|
|
3
|
+
import type { TaRelocateResult } from '@celljs/ta-protocol';
|
|
3
4
|
import { MigrateSource } from './migrate-archive';
|
|
4
5
|
import { type Frame } from './migrate-frames';
|
|
5
6
|
import { type MoveChannel } from './migrate-net';
|
|
6
|
-
import { type MigrateBackup, type MigrateCategory, type MigrateCount, type MigrateIn, type MigrateManifest, type MigrateNearby, type MigrateOut, type MigrateStatus } from './migrate-protocol';
|
|
7
|
+
import { type MigrateBackup, type MigrateCategory, type MigrateCount, type MigrateIn, type MigrateManifest, type MigrateMissing, type MigrateNearby, type MigrateOut, type MigrateStatus } from './migrate-protocol';
|
|
7
8
|
import type { AgentDirPlace, SyncHostSide } from './sync-items';
|
|
8
9
|
export interface MigrateServiceOptions {
|
|
9
10
|
agentDir: string;
|
|
@@ -15,6 +16,8 @@ export interface MigrateServiceOptions {
|
|
|
15
16
|
name?: string;
|
|
16
17
|
/** Where backups are written and looked for; default the Downloads, Desktop and home directories. */
|
|
17
18
|
backupDirs?: string[];
|
|
19
|
+
/** TaServer.relocateDirectory; none in a Ta of before. */
|
|
20
|
+
relocate?(from: string, to: string): Promise<TaRelocateResult>;
|
|
18
21
|
/** Default MOVE_DISCOVERY_PORT. */
|
|
19
22
|
discoveryPort?: number;
|
|
20
23
|
}
|
|
@@ -61,6 +64,13 @@ export declare class MigrateService {
|
|
|
61
64
|
exportFile(categories: MigrateCategory[], password?: string, dir?: string): MigrateStatus;
|
|
62
65
|
/** Reads a backup file into this computer. */
|
|
63
66
|
importFile(path: string, password?: string): MigrateStatus;
|
|
67
|
+
/**
|
|
68
|
+
* The directories of the conversations that are not on this computer, with where each likely is: after a move, or
|
|
69
|
+
* any time (a move of before, a project moved by hand).
|
|
70
|
+
*/
|
|
71
|
+
missing(): Promise<MigrateMissing[]>;
|
|
72
|
+
/** A directory of conversations made another (TaServer.relocateDirectory); the report of a move no longer lists it. */
|
|
73
|
+
relocate(from: string, to: string): Promise<TaRelocateResult>;
|
|
64
74
|
/** Backups in the places they are written to, the latest first. */
|
|
65
75
|
listBackups(): Promise<MigrateBackup[]>;
|
|
66
76
|
dispose(): void;
|
|
@@ -11,6 +11,7 @@ const node_path_1 = require("node:path");
|
|
|
11
11
|
const migrate_archive_1 = require("./migrate-archive");
|
|
12
12
|
const migrate_frames_1 = require("./migrate-frames");
|
|
13
13
|
const migrate_net_1 = require("./migrate-net");
|
|
14
|
+
const migrate_paths_1 = require("./migrate-paths");
|
|
14
15
|
const migrate_protocol_1 = require("./migrate-protocol");
|
|
15
16
|
const server_texts_1 = require("./server-texts");
|
|
16
17
|
const CONNECT_MS = 4000;
|
|
@@ -150,6 +151,32 @@ class MigrateService {
|
|
|
150
151
|
void this.importing(path, password || undefined);
|
|
151
152
|
return this.status();
|
|
152
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* The directories of the conversations that are not on this computer, with where each likely is: after a move, or
|
|
156
|
+
* any time (a move of before, a project moved by hand).
|
|
157
|
+
*/
|
|
158
|
+
async missing() {
|
|
159
|
+
var _a;
|
|
160
|
+
const report = (_a = this.in) === null || _a === void 0 ? void 0 : _a.report;
|
|
161
|
+
if (report === null || report === void 0 ? void 0 : report.missing) {
|
|
162
|
+
return report.missing;
|
|
163
|
+
}
|
|
164
|
+
return migrate_paths_1.MigratePaths.missing(this.options.agentDir);
|
|
165
|
+
}
|
|
166
|
+
/** A directory of conversations made another (TaServer.relocateDirectory); the report of a move no longer lists it. */
|
|
167
|
+
async relocate(from, to) {
|
|
168
|
+
var _a;
|
|
169
|
+
if (!this.options.relocate) {
|
|
170
|
+
throw new Error(server_texts_1.MigrateServerTexts.updateThis());
|
|
171
|
+
}
|
|
172
|
+
const result = await this.options.relocate(from, to);
|
|
173
|
+
const report = (_a = this.in) === null || _a === void 0 ? void 0 : _a.report;
|
|
174
|
+
if (report === null || report === void 0 ? void 0 : report.missing) {
|
|
175
|
+
report.missing = report.missing.filter(each => each.dir !== from);
|
|
176
|
+
this.publish(true);
|
|
177
|
+
}
|
|
178
|
+
return result;
|
|
179
|
+
}
|
|
153
180
|
/** Backups in the places they are written to, the latest first. */
|
|
154
181
|
async listBackups() {
|
|
155
182
|
const found = [];
|
|
@@ -336,7 +363,7 @@ class MigrateService {
|
|
|
336
363
|
}
|
|
337
364
|
await target.apply(head, bytes);
|
|
338
365
|
}
|
|
339
|
-
into.report = target.finish();
|
|
366
|
+
into.report = await target.finish();
|
|
340
367
|
into.state = 'done';
|
|
341
368
|
}
|
|
342
369
|
async exporting(categories, password, dir) {
|