@celljs/ta 4.16.0 → 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 +2224 -203
- package/dist/gateway.mjs +2011 -528
- package/dist/pi/CHANGELOG.md +12 -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 +278 -105
- package/dist/pi/packages/ta-agents/host/index.mjs +662 -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.js +2 -1
- 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 +688 -148
- 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 +2035 -1534
- 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 +739 -234
- 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/extension/index.mjs +27 -8
- package/dist/pi/packages/ta-glance/lib/card.js +67 -27
- 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.js +3 -3
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +9 -2
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +33 -5
- 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/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 +17 -3
- package/dist/pi/packages/ta-glance/package.json +2 -1
- package/dist/pi/packages/ta-glance/web/index.js +180 -30
- 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 +702 -191
- package/dist/pi/packages/ta-moments/host/index.mjs +1361 -837
- 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 +648 -144
- 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 +1464 -765
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-FSEuUCgT.js → abnfDiagram-S7VZAUFO-w8qXXVn-.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-Do_DyWCg.js → architecture-WOLXFQ4H-B-FHaYwY.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-D-N2qDs4.js → architectureDiagram-YGSQEFNW-DTnoGaaX.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-Ds6DzHNZ.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-KlrZxPbE.js → browser-DXexCqIh.js} +2 -2
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-D5ZdqxrP.js → c4Diagram-KJ2TOQU5-CJJqDqyQ.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CWOwhB3b.js → chunk-6MUBBAK2-DbvUMdNm.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Dr6p2RGg.js → chunk-AXFCVDMN-D4hlZGtj.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-DUCV_pmW.js → chunk-BG4553SI-VNa9Q9On.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-Yxd3jIXM.js → chunk-DQASFODM-BtlEbc_V.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C24I15MF.js → chunk-HFQBQIA3-CAYSo4CJ.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-Dxk-aejD.js → chunk-KQLB2F66-CyKdg6hW.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-DPyr7gb8.js → chunk-KS47KZWR-BMogCB2r.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-D_mEFJGR.js → chunk-LEVMRMFU-Y9wr-8qB.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DfMFxQib.js → chunk-M57EVK23-DL3IAQKR.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-O9W83Laa.js → chunk-OY52VR5R-CJBFHdg6.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-IdikGcw1.js → chunk-QB3YPZ4I-CyuWKZZv.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-DLpaFCvz.js → chunk-R3KSYZAL-DxvGhfpm.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-Lx-CZ4Ql.js → chunk-STOXU5M4-Cpdl6bfz.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-DCnr5NsA.js → chunk-TU62E6Q5-CIxOg6QF.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Ct7aUJFY.js → chunk-X4PVCEUW-DCFSCRBh.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-CQhxfoYw.js → chunk-XXDRQBXY-B2R8Cxf7.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-DPSu5qYq.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-CFimsFsN.js → cose-bilkent-JH36ORCC-CXSLFyCH.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-BIcbDns7.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-CiAWhkVp.js → cynefinDiagram-L36ESFBY-DTv0Kn1r.js} +1 -1
- package/dist/public/assets/{d3-selection-C8RIDfkO.js → d3-selection-g4Hl3_NH.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-l1nRD1Fx.js → dagre-SPEB5RXH-BujVqk5R.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-ipqtnhoX.js → diagram-3B7GL73J-Ds-VnLzP.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-VpIcHRUP.js → diagram-DNEMPZML-BBoIIK-a.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-8VdVmcS6.js → diagram-L3MUGCDN-Glgd5N_n.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Bej-aiF0.js → diagram-LA4NIPWU-B4EODdUU.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-D8gW4bVQ.js → diagram-MHCOC4E2-pzDDXO2J.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-BMevAJ1M.js → diagram-XPFHEONP-l--gwSuK.js} +1 -1
- package/dist/public/assets/{dist-DBKJcjvW.js → dist-C0u3lAFR.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-C3HDTOzn.js → ebnfDiagram-UZSYDL2S-BVfPeaVX.js} +1 -1
- package/dist/public/assets/{editor.api-BMWdjwhK.js → editor.api-BMcewI3C.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-XOOPrVin.js → elk-XV6XMXQE-BFJtUnG9.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-Cr-vwx1l.js → erDiagram-EYBAPDEH-BWxMtfIc.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-DbPhpfxn.js → eventmodeling-K75KTNOO-YwYgBgCX.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Dah4--NW.js +1 -0
- package/dist/public/assets/{freemarker2-6h_1-8qB.js → freemarker2-B8HquI7K.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-C7kNPXx3.js → ganttDiagram-23REXITY-CBqv7wbi.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BwDfrSZS.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CVnEJEZr.js → gitGraphDiagram-STJD7YCW-BLSf23f_.js} +1 -1
- package/dist/public/assets/{handlebars-F4lp3oLr.js → handlebars-P1qmNq4N.js} +1 -1
- package/dist/public/assets/{html-Dj6f8B_g.js → html-Ceswbytr.js} +1 -1
- package/dist/public/assets/{index-DnNrrk68.js → index-10isUUN4.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-Ch8aMV1p.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-DcttQWdp.js → infoDiagram-KBXO4MBG-LvOtgUlm.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BSUYTZf6.js → ishikawaDiagram-M35NCXHK-CwUZOvcm.js} +1 -1
- package/dist/public/assets/{javascript-b_BkOE5Y.js → javascript-B3FXC8qR.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-BCfd5-6n.js → journeyDiagram-OPLOXDXO-5j1KtwTt.js} +1 -1
- package/dist/public/assets/{jsonMode-Cq5QJbVZ.js → jsonMode-CrCyxNQI.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-B3nenaw_.js → kanban-definition-BZKZHSQY-BKAB5id1.js} +1 -1
- package/dist/public/assets/{liquid-CGuZI_Aa.js → liquid-CXZRIgp2.js} +1 -1
- package/dist/public/assets/{mdx-Dt9yTqnf.js → mdx-Dm3uNczM.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CquzROwT.js → mermaid-parser.core-C755A-rX.js} +3 -3
- package/dist/public/assets/{mermaid.core-Bx-e_Scq.js → mermaid.core-CQrYmFAR.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DyeewbnH.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-nvIdDTWu.js → monaco-BS7JBNW4.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-LqMrrc60.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-B884_KoR.js → pegDiagram-FD4XPPHP-BzbBCWht.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-BWzABXQU.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-I40wRwyy.js → pieDiagram-J4AKIIQI-Bf_LDukL.js} +1 -1
- package/dist/public/assets/{python-Djw4wvG9.js → python-jgOUhB-F.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-DyNOImfk.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-3G0zWzgf.js → railroad-abnf-LNEFI6M7-DQGYaRbc.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-B5XRDRWS.js → railroad-ebnf-DWYD2UWJ-D6Ljza0U.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-rcIioIyH.js → railroad-peg-JR7BVNR7-Du9hL1Gf.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-CDM2ahQM.js → railroadDiagram-MRQ6NCDL-CS_JnlGN.js} +1 -1
- package/dist/public/assets/{razor-CStezNUn.js → razor-BWj90God.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-hbb6WtfM.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-DLV3Aoae.js → sankeyDiagram-WGJFYUXA-aK7jRBVK.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BWxOV5U9.js → sequenceDiagram-5NDRBG5M-BxcIyc38.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-C-TaUPaQ.js → stateDiagram-v2-FJ4FJNEA-Ctletlj4.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-CJY0BFmc.js → swimlanes-UMQ2AFYF-DaD55xd2.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CytCT4x3.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-CUfQb8Gv.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-B7kmi8MF.js → typescript-RgyfxmPQ.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BKTVAp-G.js → usecaseDiagram-AFA6YXN4-CAVEBKQS.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-CN1RxNTS.js → vennDiagram-NNMJR3RB-DHyJxlHv.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-DSfdKACG.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-JJ6qcpu1.js → wardleyDiagram-S7YFUSEH-C-FCHxR7.js} +1 -1
- package/dist/public/assets/{xml-DVamlHEU.js → xml-DiA1T3iN.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-BNakYgUZ.js → xychartDiagram-GGNKY7IX-BlnHU6Gz.js} +1 -1
- package/dist/public/assets/{yaml-BihGeFrM.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 +10558 -7361
- package/package.json +45 -39
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dcc0sCHf.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-CDXqnHAQ.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-KPsoB6Z1.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-CtM6s0SQ.js +0 -1
- package/dist/public/assets/module-C-ofp7U4.js +0 -1
- package/dist/public/assets/module-DDH-aU6z.js +0 -1
- 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-dnDlIzeV.js +0 -2616
- package/dist/public/assets/module-qoBVcE5h.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-XKjiwdar.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-MuCMavHL.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Cq12GHJS.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-CfeMswZU.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DdFDl6aK.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BQ4uUy4s.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-BFTTkjF9.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-BbyzsA8S.js +0 -1
|
@@ -2,39 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SyncService = void 0;
|
|
4
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
5
|
const relays_file_1 = require("@celljs/ta-relay/lib/node/relays-file");
|
|
8
6
|
const server_texts_1 = require("./server-texts");
|
|
9
|
-
const sync_engine_1 = require("./sync-engine");
|
|
10
7
|
const sync_folder_1 = require("./sync-folder");
|
|
11
|
-
const sync_identity_1 = require("./sync-identity");
|
|
12
|
-
const sync_merge_1 = require("./sync-merge");
|
|
13
8
|
const sync_protocol_1 = require("./sync-protocol");
|
|
9
|
+
const sync_service_space_1 = require("./sync-service-space");
|
|
14
10
|
/**
|
|
15
11
|
* The sync of this computer (docs/design/ta-sync.md): the room of the user's devices, made, joined or left on the
|
|
16
12
|
* user's word from the page; a round soon after this computer or another changed something, and now and then anyway.
|
|
17
13
|
* One round at a time; what asks for one meanwhile gets one after.
|
|
18
14
|
*/
|
|
19
|
-
class SyncService {
|
|
20
|
-
constructor(options) {
|
|
21
|
-
var _a;
|
|
22
|
-
this.options = options;
|
|
23
|
-
this.again = false;
|
|
24
|
-
this.stopped = false;
|
|
25
|
-
this.signature = '';
|
|
26
|
-
this.lastFull = 0;
|
|
27
|
-
this.shown = '';
|
|
28
|
-
this.stops = [];
|
|
29
|
-
this.spaceSignature = '';
|
|
30
|
-
this.resourcesNow = { ...sync_protocol_1.DEFAULT_RESOURCES };
|
|
31
|
-
this.device = (_a = options.device) !== null && _a !== void 0 ? _a : SyncService.deviceName();
|
|
32
|
-
this.baseFile = (0, node_path_1.join)(options.agentDir, 'sync', 'base.json');
|
|
33
|
-
this.folderFile = (0, node_path_1.join)(options.agentDir, 'sync', 'folder.json');
|
|
34
|
-
}
|
|
35
|
-
static deviceName() {
|
|
36
|
-
return (0, node_os_1.hostname)().replace(/\.local$/, '') || (0, node_os_1.platform)();
|
|
37
|
-
}
|
|
15
|
+
class SyncService extends sync_service_space_1.SyncServiceSpace {
|
|
38
16
|
start() {
|
|
39
17
|
var _a;
|
|
40
18
|
this.stops.push(this.options.rooms.onEvent(event => this.heard(event)));
|
|
@@ -286,394 +264,6 @@ class SyncService {
|
|
|
286
264
|
await this.run();
|
|
287
265
|
return this.status();
|
|
288
266
|
}
|
|
289
|
-
heard(event) {
|
|
290
|
-
if (event.type === 'rooms' || event.type === 'request') {
|
|
291
|
-
void this.publish();
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
if (event.type === 'state' &&
|
|
295
|
-
(event.key.startsWith(sync_protocol_1.SyncStateKeys.ITEM) || event.key.startsWith(sync_protocol_1.SyncStateKeys.BLOB) || event.key.startsWith(sync_identity_1.SyncIdentityKeys.PREFIX))) {
|
|
296
|
-
void this.room().then(room => {
|
|
297
|
-
var _a;
|
|
298
|
-
const self = (_a = room === null || room === void 0 ? void 0 : room.members.find(member => member.self)) === null || _a === void 0 ? void 0 : _a.member;
|
|
299
|
-
if ((room === null || room === void 0 ? void 0 : room.id) === event.room && event.by !== self) {
|
|
300
|
-
this.schedule();
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
schedule(delay) {
|
|
306
|
-
var _a;
|
|
307
|
-
if (delay === void 0) { delay = (_a = this.options.delayMs) !== null && _a !== void 0 ? _a : 1500; }
|
|
308
|
-
if (this.stopped) {
|
|
309
|
-
return;
|
|
310
|
-
}
|
|
311
|
-
clearTimeout(this.timer);
|
|
312
|
-
this.timer = setTimeout(() => void this.run(), delay);
|
|
313
|
-
}
|
|
314
|
-
run() {
|
|
315
|
-
if (this.running) {
|
|
316
|
-
this.again = true;
|
|
317
|
-
return this.running;
|
|
318
|
-
}
|
|
319
|
-
this.running = this.round()
|
|
320
|
-
.catch(error => {
|
|
321
|
-
this.report = { at: Date.now(), sent: 0, received: 0, skipped: [], error: error instanceof Error ? error.message : String(error) };
|
|
322
|
-
})
|
|
323
|
-
.finally(async () => {
|
|
324
|
-
this.running = undefined;
|
|
325
|
-
await this.options.storage.set(sync_protocol_1.SyncKeys.REPORT, this.report).catch(() => undefined);
|
|
326
|
-
await this.publish();
|
|
327
|
-
if (this.again && !this.stopped) {
|
|
328
|
-
this.again = false;
|
|
329
|
-
this.schedule(0);
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
void this.publish();
|
|
333
|
-
return this.running;
|
|
334
|
-
}
|
|
335
|
-
async round() {
|
|
336
|
-
var _a;
|
|
337
|
-
var _b, _c;
|
|
338
|
-
const folder = await this.folderRecord();
|
|
339
|
-
const room = folder ? undefined : await this.room();
|
|
340
|
-
if (!folder && (room === null || room === void 0 ? void 0 : room.status) !== 'member') {
|
|
341
|
-
return;
|
|
342
|
-
}
|
|
343
|
-
let target;
|
|
344
|
-
if (folder) {
|
|
345
|
-
const opened = await this.openSpace(folder);
|
|
346
|
-
const problem = (_b = opened.problem) !== null && _b !== void 0 ? _b : (await this.problemOf(opened.space, folder));
|
|
347
|
-
if (problem || !opened.space) {
|
|
348
|
-
throw new Error(problem);
|
|
349
|
-
}
|
|
350
|
-
target = { id: `folder:${folder.id}`, room: opened.space, self: folder.device };
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
const joined = room;
|
|
354
|
-
target = { id: joined.id, room: this.roomOf(joined.id), self: (_a = joined.members.find(member => member.self)) === null || _a === void 0 ? void 0 : _a.member };
|
|
355
|
-
}
|
|
356
|
-
const now = await this.resources();
|
|
357
|
-
const resources = new Set(sync_protocol_1.SYNC_RESOURCES.filter(resource => now[resource]));
|
|
358
|
-
const loaded = await this.loadBase();
|
|
359
|
-
// Another room or folder (sync turned off and on, or joined again): every item meets it as for the first time.
|
|
360
|
-
const base = loaded.room === target.id ? loaded : { room: target.id, items: {} };
|
|
361
|
-
this.options.place.begin();
|
|
362
|
-
const engine = new sync_engine_1.SyncEngine(target.room, this.options.place, this.device);
|
|
363
|
-
const report = await engine.round(base, resources);
|
|
364
|
-
const identity = this.options.identity;
|
|
365
|
-
if (identity && resources.has('identity')) {
|
|
366
|
-
// The room of the sync is each computer's own: never shared, never taken.
|
|
367
|
-
(_c = base.identity) !== null && _c !== void 0 ? _c : (base.identity = { rooms: [], friends: [] });
|
|
368
|
-
const shared = await new sync_identity_1.SyncIdentity(target.room, identity, record => record.kind === sync_protocol_1.SYNC_KIND).round(base.identity);
|
|
369
|
-
report.sent += shared.sent;
|
|
370
|
-
report.received += shared.received;
|
|
371
|
-
}
|
|
372
|
-
await this.saveBase(base);
|
|
373
|
-
if (target.self) {
|
|
374
|
-
const entry = { name: this.device, platform: (0, node_os_1.platform)(), at: report.at };
|
|
375
|
-
await target.room.setState(sync_protocol_1.SyncStateKeys.device(target.self), entry).catch(() => undefined);
|
|
376
|
-
}
|
|
377
|
-
if (folder && this.space) {
|
|
378
|
-
this.spaceSignature = await this.space.space.signature().catch(() => this.spaceSignature);
|
|
379
|
-
}
|
|
380
|
-
this.signature = await this.options.place.signature(resources);
|
|
381
|
-
this.lastFull = Date.now();
|
|
382
|
-
// A round that changed nothing does not push out the one before, which says when something last moved.
|
|
383
|
-
if (report.sent || report.received || report.skipped.length || !this.report) {
|
|
384
|
-
this.report = report;
|
|
385
|
-
}
|
|
386
|
-
else {
|
|
387
|
-
this.report = { ...this.report, at: report.at, error: undefined };
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
/** Between rounds: a sync when the files of this computer changed, and every while anyway. */
|
|
391
|
-
async lookAround() {
|
|
392
|
-
var _a;
|
|
393
|
-
if (this.running || this.stopped) {
|
|
394
|
-
return;
|
|
395
|
-
}
|
|
396
|
-
const resources = new Set(sync_protocol_1.SYNC_RESOURCES.filter(resource => this.resourcesNow[resource]));
|
|
397
|
-
const signature = await this.options.place.signature(resources).catch(() => this.signature);
|
|
398
|
-
// In a folder nothing tells of the other computers' writes but the files: a change there is a round too.
|
|
399
|
-
const space = this.space ? await this.space.space.signature().catch(() => this.spaceSignature) : this.spaceSignature;
|
|
400
|
-
const every = (_a = this.options.everyMs) !== null && _a !== void 0 ? _a : 10 * 60000;
|
|
401
|
-
if (signature !== this.signature || space !== this.spaceSignature || Date.now() - this.lastFull > every) {
|
|
402
|
-
this.schedule(0);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
/** Where turning sync on would go: the service relays.json gives `sync`. */
|
|
406
|
-
async target() {
|
|
407
|
-
var _a;
|
|
408
|
-
var _b, _c;
|
|
409
|
-
const service = await ((_a = this.options.relays) === null || _a === void 0 ? void 0 : _a.serviceFor('sync').catch(() => undefined));
|
|
410
|
-
const name = (service === null || service === void 0 ? void 0 : service.builtin) ? undefined : service === null || service === void 0 ? void 0 : service.name;
|
|
411
|
-
if ((service === null || service === void 0 ? void 0 : service.type) === 'folder') {
|
|
412
|
-
return { type: 'folder', path: service.path, id: service.id, ...(name ? { name } : {}) };
|
|
413
|
-
}
|
|
414
|
-
if (service && service.type !== 'ta-relay') {
|
|
415
|
-
return { type: 'store', id: service.id, store: service.type, where: (_b = service.where) !== null && _b !== void 0 ? _b : service.type, ...(name ? { name } : {}) };
|
|
416
|
-
}
|
|
417
|
-
return {
|
|
418
|
-
type: 'ta-relay',
|
|
419
|
-
name: (service === null || service === void 0 ? void 0 : service.builtin) || !service ? server_texts_1.SyncServerTexts.official() : name,
|
|
420
|
-
host: SyncService.host((_c = service === null || service === void 0 ? void 0 : service.url) !== null && _c !== void 0 ? _c : 'https://relay.cellbang.com'),
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
/** What the user calls the relay of a room: its name in relays.json, the official one so, else its host. */
|
|
424
|
-
async relayName(url) {
|
|
425
|
-
var _a, _b;
|
|
426
|
-
var _c, _d;
|
|
427
|
-
const relays = (_c = (await ((_b = (_a = this.options.relays) === null || _a === void 0 ? void 0 : _a.list) === null || _b === void 0 ? void 0 : _b.call(_a).catch(() => undefined)))) !== null && _c !== void 0 ? _c : [];
|
|
428
|
-
const named = relays.find(relay => relay.url === url);
|
|
429
|
-
return (named === null || named === void 0 ? void 0 : named.builtin) ? server_texts_1.SyncServerTexts.official() : ((_d = named === null || named === void 0 ? void 0 : named.name) !== null && _d !== void 0 ? _d : SyncService.host(url));
|
|
430
|
-
}
|
|
431
|
-
static host(url) {
|
|
432
|
-
try {
|
|
433
|
-
return new URL(url).host;
|
|
434
|
-
}
|
|
435
|
-
catch (_a) {
|
|
436
|
-
return url;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
static lastPart(path) {
|
|
440
|
-
var _a;
|
|
441
|
-
return (_a = path.split('/').filter(Boolean).pop()) !== null && _a !== void 0 ? _a : path;
|
|
442
|
-
}
|
|
443
|
-
/** Joins the sync in a folder of a link of another computer: the folder added to relays.json when this computer lacks it. */
|
|
444
|
-
async joinFolder(link) {
|
|
445
|
-
var _a;
|
|
446
|
-
const given = sync_folder_1.FolderSyncUtil.parse(link);
|
|
447
|
-
const relays = this.options.relays;
|
|
448
|
-
const target = await this.target();
|
|
449
|
-
// The same folder as the other computer's, or the one this computer chose for sync: a drive may sit elsewhere here.
|
|
450
|
-
const path = target.type === 'folder' && target.path ? target.path : given.path;
|
|
451
|
-
const record = { id: given.id, key: given.key, path, device: sync_folder_1.FolderSyncUtil.randomId(), at: Date.now() };
|
|
452
|
-
const space = new sync_folder_1.FolderSpace(relays_file_1.RelayServiceUtil.expand(path), record);
|
|
453
|
-
const problem = (_a = relays_file_1.RelayServiceUtil.checkFolder(path)) !== null && _a !== void 0 ? _a : (await this.problemOf(space, record));
|
|
454
|
-
if (problem) {
|
|
455
|
-
throw new Error(problem);
|
|
456
|
-
}
|
|
457
|
-
if (relays && target.type !== 'folder') {
|
|
458
|
-
await relays.choose('sync', await relays.addFolder(path));
|
|
459
|
-
}
|
|
460
|
-
await this.saveFolder(record);
|
|
461
|
-
await this.publish();
|
|
462
|
-
this.schedule(0);
|
|
463
|
-
return this.status();
|
|
464
|
-
}
|
|
465
|
-
/** Joins the sync in a store of a link of another computer: the store added to relays.json (or the same one of before), sync there. */
|
|
466
|
-
async joinStore(link) {
|
|
467
|
-
var _a;
|
|
468
|
-
const given = sync_folder_1.FolderSyncUtil.parseStore(link);
|
|
469
|
-
const relays = this.options.relays;
|
|
470
|
-
if (!relays) {
|
|
471
|
-
throw new Error(server_texts_1.SyncServerTexts.storeUnavailable(given.type));
|
|
472
|
-
}
|
|
473
|
-
const service = await relays.addStore(given.type, given.options, given.service || undefined).catch(error => {
|
|
474
|
-
throw new Error(/no type/i.test(String(error === null || error === void 0 ? void 0 : error.message)) ? server_texts_1.SyncServerTexts.storeUnavailable(given.type) : error instanceof Error ? error.message : String(error));
|
|
475
|
-
});
|
|
476
|
-
const record = {
|
|
477
|
-
id: given.id,
|
|
478
|
-
key: given.key,
|
|
479
|
-
path: '',
|
|
480
|
-
service,
|
|
481
|
-
type: given.type,
|
|
482
|
-
device: sync_folder_1.FolderSyncUtil.randomId(),
|
|
483
|
-
at: Date.now(),
|
|
484
|
-
};
|
|
485
|
-
const opened = await this.openSpace(record);
|
|
486
|
-
const problem = (_a = opened.problem) !== null && _a !== void 0 ? _a : (await this.problemOf(opened.space, record));
|
|
487
|
-
if (problem) {
|
|
488
|
-
throw new Error(problem);
|
|
489
|
-
}
|
|
490
|
-
await relays.choose('sync', service);
|
|
491
|
-
await this.saveFolder(record);
|
|
492
|
-
await this.publish();
|
|
493
|
-
this.schedule(0);
|
|
494
|
-
return this.status();
|
|
495
|
-
}
|
|
496
|
-
async folderRecord() {
|
|
497
|
-
try {
|
|
498
|
-
const record = JSON.parse(await (0, promises_1.readFile)(this.folderFile, 'utf8'));
|
|
499
|
-
return record &&
|
|
500
|
-
typeof record.id === 'string' &&
|
|
501
|
-
typeof record.key === 'string' &&
|
|
502
|
-
typeof record.path === 'string' &&
|
|
503
|
-
typeof record.device === 'string'
|
|
504
|
-
? record
|
|
505
|
-
: undefined;
|
|
506
|
-
}
|
|
507
|
-
catch (_a) {
|
|
508
|
-
return undefined;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
/** Kept where the user alone reads it: it holds the key of the sync. */
|
|
512
|
-
async saveFolder(record) {
|
|
513
|
-
await (0, promises_1.mkdir)((0, node_path_1.join)(this.options.agentDir, 'sync'), { recursive: true });
|
|
514
|
-
await (0, promises_1.writeFile)(`${this.folderFile}.tmp`, JSON.stringify(record), { mode: 0o600 });
|
|
515
|
-
await (0, promises_1.rename)(`${this.folderFile}.tmp`, this.folderFile);
|
|
516
|
-
}
|
|
517
|
-
/** The space of the folder or the store, watched while sync is on there; why it cannot be opened, else (a package off). */
|
|
518
|
-
async openSpace(record) {
|
|
519
|
-
var _a, _b;
|
|
520
|
-
var _c;
|
|
521
|
-
const where = record.service ? `store:${record.service}` : `folder:${record.path}`;
|
|
522
|
-
if (((_a = this.space) === null || _a === void 0 ? void 0 : _a.record.id) === record.id && this.space.where === where) {
|
|
523
|
-
return { space: this.space.space };
|
|
524
|
-
}
|
|
525
|
-
let space;
|
|
526
|
-
if (record.service) {
|
|
527
|
-
try {
|
|
528
|
-
const relays = this.options.relays;
|
|
529
|
-
if (!relays) {
|
|
530
|
-
throw new Error('No relays.json.');
|
|
531
|
-
}
|
|
532
|
-
space = new sync_folder_1.StoreSpace(await relays.openStore(record.service), record);
|
|
533
|
-
}
|
|
534
|
-
catch (_d) {
|
|
535
|
-
return { problem: server_texts_1.SyncServerTexts.storeUnavailable((_c = record.type) !== null && _c !== void 0 ? _c : '') };
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
else {
|
|
539
|
-
space = new sync_folder_1.FolderSpace(relays_file_1.RelayServiceUtil.expand(record.path), record);
|
|
540
|
-
}
|
|
541
|
-
(_b = this.space) === null || _b === void 0 ? void 0 : _b.stop();
|
|
542
|
-
let timer;
|
|
543
|
-
const stop = space.watch(() => {
|
|
544
|
-
// A drive writes a file in several steps: once it settled.
|
|
545
|
-
clearTimeout(timer);
|
|
546
|
-
timer = setTimeout(() => this.schedule(), 2000);
|
|
547
|
-
});
|
|
548
|
-
this.space = {
|
|
549
|
-
record,
|
|
550
|
-
where,
|
|
551
|
-
space,
|
|
552
|
-
stop: () => {
|
|
553
|
-
clearTimeout(timer);
|
|
554
|
-
stop();
|
|
555
|
-
},
|
|
556
|
-
};
|
|
557
|
-
return { space };
|
|
558
|
-
}
|
|
559
|
-
/** Why the folder or the store cannot be synced now, in words for the user; undefined when it can. */
|
|
560
|
-
async problemOf(space, record) {
|
|
561
|
-
const folder = record.service ? undefined : relays_file_1.RelayServiceUtil.checkFolder(record.path);
|
|
562
|
-
if (folder) {
|
|
563
|
-
return folder;
|
|
564
|
-
}
|
|
565
|
-
let check;
|
|
566
|
-
try {
|
|
567
|
-
check = await space.check();
|
|
568
|
-
}
|
|
569
|
-
catch (error) {
|
|
570
|
-
return server_texts_1.SyncServerTexts.storeFailed(error instanceof Error ? error.message : String(error));
|
|
571
|
-
}
|
|
572
|
-
return check === 'missing'
|
|
573
|
-
? record.service
|
|
574
|
-
? server_texts_1.SyncServerTexts.storeMissing()
|
|
575
|
-
: server_texts_1.SyncServerTexts.folderMissing(relays_file_1.RelayServiceUtil.expand(record.path))
|
|
576
|
-
: check === 'key'
|
|
577
|
-
? server_texts_1.SyncServerTexts.folderKey()
|
|
578
|
-
: check === 'newer'
|
|
579
|
-
? server_texts_1.SyncServerTexts.folderNewer()
|
|
580
|
-
: undefined;
|
|
581
|
-
}
|
|
582
|
-
async folderDevices(space) {
|
|
583
|
-
var _a;
|
|
584
|
-
const self = (_a = this.space) === null || _a === void 0 ? void 0 : _a.record.device;
|
|
585
|
-
const devices = await space.devices();
|
|
586
|
-
const shown = devices.map(device => ({
|
|
587
|
-
member: device.device,
|
|
588
|
-
name: device.device === self ? this.device : device.name,
|
|
589
|
-
platform: device.platform,
|
|
590
|
-
// A folder has no presence: a computer is shown by when it last synced.
|
|
591
|
-
online: device.device === self,
|
|
592
|
-
self: device.device === self,
|
|
593
|
-
owner: false,
|
|
594
|
-
at: device.at,
|
|
595
|
-
}));
|
|
596
|
-
if (self && !shown.some(device => device.self)) {
|
|
597
|
-
shown.push({ member: self, name: this.device, platform: (0, node_os_1.platform)(), online: true, self: true, owner: false });
|
|
598
|
-
}
|
|
599
|
-
return shown.sort((a, b) => { var _a, _b; return Number(b.self) - Number(a.self) || ((_a = b.at) !== null && _a !== void 0 ? _a : 0) - ((_b = a.at) !== null && _b !== void 0 ? _b : 0); });
|
|
600
|
-
}
|
|
601
|
-
roomOf(id) {
|
|
602
|
-
const rooms = this.options.rooms;
|
|
603
|
-
return {
|
|
604
|
-
getState: prefix => rooms.getState(id, prefix),
|
|
605
|
-
setState: (key, value, version) => rooms.setState(id, key, value, version),
|
|
606
|
-
};
|
|
607
|
-
}
|
|
608
|
-
/** The room of the user's devices: the one this computer is in, else the latest asked or ended, for the page to say. */
|
|
609
|
-
async room() {
|
|
610
|
-
const joining = await this.options.storage.get(sync_protocol_1.SyncKeys.JOINING).catch(() => undefined);
|
|
611
|
-
const rooms = (await this.options.rooms.listRooms().catch(() => [])).filter(room => room.kind === sync_protocol_1.SYNC_KIND || (room.id === joining && room.kind === ''));
|
|
612
|
-
const latest = (room) => { var _a; return (_a = room.joinedAt) !== null && _a !== void 0 ? _a : room.createdAt; };
|
|
613
|
-
rooms.sort((a, b) => Number(b.status === 'member') - Number(a.status === 'member') || latest(b) - latest(a));
|
|
614
|
-
return rooms[0];
|
|
615
|
-
}
|
|
616
|
-
async devices(room) {
|
|
617
|
-
const state = await this.options.rooms.getState(room.id, sync_protocol_1.SyncStateKeys.DEVICE).catch(() => ({}));
|
|
618
|
-
return room.members
|
|
619
|
-
.filter(member => !member.guest)
|
|
620
|
-
.map(member => {
|
|
621
|
-
var _a;
|
|
622
|
-
var _b;
|
|
623
|
-
const entry = (_a = state[sync_protocol_1.SyncStateKeys.device(member.member)]) === null || _a === void 0 ? void 0 : _a.value;
|
|
624
|
-
return {
|
|
625
|
-
member: member.member,
|
|
626
|
-
name: member.self ? this.device : ((_b = entry === null || entry === void 0 ? void 0 : entry.name) !== null && _b !== void 0 ? _b : member.name),
|
|
627
|
-
platform: member.self ? (0, node_os_1.platform)() : entry === null || entry === void 0 ? void 0 : entry.platform,
|
|
628
|
-
online: member.online || member.self,
|
|
629
|
-
self: member.self,
|
|
630
|
-
owner: member.owner,
|
|
631
|
-
...((entry === null || entry === void 0 ? void 0 : entry.at) ? { at: entry.at } : {}),
|
|
632
|
-
};
|
|
633
|
-
})
|
|
634
|
-
.sort((a, b) => Number(b.self) - Number(a.self) || Number(b.owner) - Number(a.owner) || a.name.localeCompare(b.name));
|
|
635
|
-
}
|
|
636
|
-
async resources() {
|
|
637
|
-
const saved = await this.options.storage.get(sync_protocol_1.SyncKeys.RESOURCES).catch(() => undefined);
|
|
638
|
-
const resources = { ...sync_protocol_1.DEFAULT_RESOURCES };
|
|
639
|
-
if (sync_merge_1.SyncMerge.isObject(saved)) {
|
|
640
|
-
for (const resource of sync_protocol_1.SYNC_RESOURCES) {
|
|
641
|
-
if (typeof saved[resource] === 'boolean') {
|
|
642
|
-
resources[resource] = saved[resource];
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
this.resourcesNow = resources;
|
|
647
|
-
return resources;
|
|
648
|
-
}
|
|
649
|
-
/** The status for the pages, in the data of the package: they hear it change, and read it when they open. */
|
|
650
|
-
async publish() {
|
|
651
|
-
const status = await this.status().catch(() => undefined);
|
|
652
|
-
const text = status ? sync_merge_1.SyncMerge.canonical(status) : '';
|
|
653
|
-
if (status && text !== this.shown) {
|
|
654
|
-
// Let in just now (or the room made): the first round.
|
|
655
|
-
if (status.state === 'on' && this.state !== 'on') {
|
|
656
|
-
this.schedule(0);
|
|
657
|
-
}
|
|
658
|
-
this.state = status.state;
|
|
659
|
-
this.shown = text;
|
|
660
|
-
await this.options.storage.set(sync_protocol_1.SyncKeys.STATUS, status).catch(() => undefined);
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
async loadBase() {
|
|
664
|
-
try {
|
|
665
|
-
const data = JSON.parse(await (0, promises_1.readFile)(this.baseFile, 'utf8'));
|
|
666
|
-
return sync_merge_1.SyncMerge.isObject(data) && typeof data.room === 'string' && sync_merge_1.SyncMerge.isObject(data.items) ? data : { room: '', items: {} };
|
|
667
|
-
}
|
|
668
|
-
catch (_a) {
|
|
669
|
-
return { room: '', items: {} };
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
async saveBase(base) {
|
|
673
|
-
await (0, promises_1.mkdir)((0, node_path_1.join)(this.options.agentDir, 'sync'), { recursive: true });
|
|
674
|
-
await (0, promises_1.writeFile)(`${this.baseFile}.tmp`, JSON.stringify(base));
|
|
675
|
-
await (0, promises_1.rename)(`${this.baseFile}.tmp`, this.baseFile);
|
|
676
|
-
}
|
|
677
267
|
}
|
|
678
268
|
exports.SyncService = SyncService;
|
|
679
269
|
//# sourceMappingURL=sync-service.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-sync",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.0",
|
|
4
4
|
"description": "A pi package for Ta: the user's settings, instructions, skills, extensions and the data extensions declare, the same on each of their computers, through a room of the relay sealed end to end, without an account",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -426,6 +426,16 @@ var en2 = {
|
|
|
426
426
|
waitingCompare: "Compare it with the code on the old computer, then allow it there.",
|
|
427
427
|
compareHint: "Allow only if the new computer shows the same code.",
|
|
428
428
|
doneFrom: "Moved from {name}",
|
|
429
|
+
missingTitle: "Folders not on this computer",
|
|
430
|
+
missingLead: "{n} conversations work in folders this computer does not have. Point each to where it is here and they carry on there.",
|
|
431
|
+
missingCount: "{n} conversations",
|
|
432
|
+
missingFound: "Likely {path}",
|
|
433
|
+
missingNone: "Not found here",
|
|
434
|
+
missingUse: "Use this",
|
|
435
|
+
missingPick: "Choose…",
|
|
436
|
+
missingUseAll: "Use all found",
|
|
437
|
+
missingMoved: "{n} conversations now work in {dir}",
|
|
438
|
+
missingBusy: "{n} running now: move them once they end",
|
|
429
439
|
factConversations: "conversations",
|
|
430
440
|
factItems: "settings and the like",
|
|
431
441
|
factData: "extensions' data",
|
|
@@ -515,6 +525,16 @@ var zh2 = {
|
|
|
515
525
|
waitingCompare: "核对旧电脑上显示的数字,一致后在旧电脑上点同意。",
|
|
516
526
|
compareHint: "新电脑上显示的数字一致时再同意。",
|
|
517
527
|
doneFrom: "已从 {name} 迁入",
|
|
528
|
+
missingTitle: "这台电脑上找不到的目录",
|
|
529
|
+
missingLead: "有 {n} 个对话的目录在这台电脑上不存在。给每个目录指到这里的位置,对话就在那里接着做。",
|
|
530
|
+
missingCount: "{n} 个对话",
|
|
531
|
+
missingFound: "可能在 {path}",
|
|
532
|
+
missingNone: "这里没找到",
|
|
533
|
+
missingUse: "就用这里",
|
|
534
|
+
missingPick: "选位置…",
|
|
535
|
+
missingUseAll: "全部按找到的改",
|
|
536
|
+
missingMoved: "{n} 个对话已改到 {dir}",
|
|
537
|
+
missingBusy: "{n} 个正在运行,结束后再改",
|
|
518
538
|
factConversations: "个对话",
|
|
519
539
|
factItems: "项设置等",
|
|
520
540
|
factData: "个扩展的数据",
|
|
@@ -604,6 +624,16 @@ var zhTw2 = {
|
|
|
604
624
|
waitingCompare: "核對舊電腦上顯示的數字,一致後在舊電腦上點同意。",
|
|
605
625
|
compareHint: "新電腦上顯示的數字一致時再同意。",
|
|
606
626
|
doneFrom: "已從 {name} 遷入",
|
|
627
|
+
missingTitle: "這台電腦上找不到的目錄",
|
|
628
|
+
missingLead: "有 {n} 個對話的目錄在這台電腦上不存在。把每個目錄指到這裡的位置,對話就在那裡接著做。",
|
|
629
|
+
missingCount: "{n} 個對話",
|
|
630
|
+
missingFound: "可能在 {path}",
|
|
631
|
+
missingNone: "這裡沒找到",
|
|
632
|
+
missingUse: "就用這裡",
|
|
633
|
+
missingPick: "選位置…",
|
|
634
|
+
missingUseAll: "全部按找到的改",
|
|
635
|
+
missingMoved: "{n} 個對話已改到 {dir}",
|
|
636
|
+
missingBusy: "{n} 個正在執行,結束後再改",
|
|
607
637
|
factConversations: "個對話",
|
|
608
638
|
factItems: "項設定等",
|
|
609
639
|
factData: "個擴充功能的資料",
|
|
@@ -693,6 +723,16 @@ var ja2 = {
|
|
|
693
723
|
waitingCompare: "古いコンピューターに表示される番号を確認し、一致したら古いコンピューターで同意をクリックします。",
|
|
694
724
|
compareHint: "新しいコンピューターに表示される番号が一致したら同意します。",
|
|
695
725
|
doneFrom: "{name}から移動しました",
|
|
726
|
+
missingTitle: "このコンピューターにないフォルダー",
|
|
727
|
+
missingLead: "{n} 件の会話のフォルダーがこのコンピューターにありません。それぞれをここでの場所に指定すると、そこで続けられます。",
|
|
728
|
+
missingCount: "{n} 件の会話",
|
|
729
|
+
missingFound: "{path} かもしれません",
|
|
730
|
+
missingNone: "ここには見つかりません",
|
|
731
|
+
missingUse: "ここを使う",
|
|
732
|
+
missingPick: "場所を選ぶ…",
|
|
733
|
+
missingUseAll: "見つかった場所をすべて使う",
|
|
734
|
+
missingMoved: "{n} 件の会話を {dir} に移しました",
|
|
735
|
+
missingBusy: "{n} 件は実行中です。終わってから移してください",
|
|
696
736
|
factConversations: "件の会話",
|
|
697
737
|
factItems: "個の設定など",
|
|
698
738
|
factData: "個の拡張機能のデータ",
|
|
@@ -1308,7 +1348,10 @@ function InView({ pi, store, into }) {
|
|
|
1308
1348
|
className: "tsy-line"
|
|
1309
1349
|
}, words.replacedLead, " ", /* @__PURE__ */ React.createElement("span", {
|
|
1310
1350
|
className: "tsy-path"
|
|
1311
|
-
}, report.replaced)), /* @__PURE__ */ React.createElement(
|
|
1351
|
+
}, report.replaced)), report.missing?.length ? /* @__PURE__ */ React.createElement(MissingFolders, {
|
|
1352
|
+
pi,
|
|
1353
|
+
initial: report.missing
|
|
1354
|
+
}) : null, /* @__PURE__ */ React.createElement("div", {
|
|
1312
1355
|
className: "tsy-actions tsy-end"
|
|
1313
1356
|
}, report.extensions ? /* @__PURE__ */ React.createElement(Action, {
|
|
1314
1357
|
pi,
|
|
@@ -1325,6 +1368,85 @@ function InView({ pi, store, into }) {
|
|
|
1325
1368
|
run: () => store.call("migrateCloseIn")
|
|
1326
1369
|
})));
|
|
1327
1370
|
}
|
|
1371
|
+
function MissingFolders({ pi, initial }) {
|
|
1372
|
+
const words = useWords(pi);
|
|
1373
|
+
const [missing, setMissing] = React.useState(initial);
|
|
1374
|
+
const [picking, setPicking] = React.useState();
|
|
1375
|
+
React.useEffect(() => {
|
|
1376
|
+
if (!initial) {
|
|
1377
|
+
pi.callHost("migrateMissing").then(setMissing, () => setMissing([]));
|
|
1378
|
+
}
|
|
1379
|
+
}, [pi, initial]);
|
|
1380
|
+
if (!missing?.length) {
|
|
1381
|
+
return null;
|
|
1382
|
+
}
|
|
1383
|
+
const relocate = async (each, to) => {
|
|
1384
|
+
const result = await pi.callHost("migrateRelocate", each.dir, to);
|
|
1385
|
+
if (result.conversations) {
|
|
1386
|
+
pi.ui.notify(MoveWordsUtil.format(words.missingMoved, { n: result.conversations, dir: to }));
|
|
1387
|
+
}
|
|
1388
|
+
if (result.busy) {
|
|
1389
|
+
pi.ui.notify(MoveWordsUtil.format(words.missingBusy, { n: result.busy }), "warning");
|
|
1390
|
+
} else {
|
|
1391
|
+
setMissing((list) => list?.filter((other) => other.dir !== each.dir));
|
|
1392
|
+
}
|
|
1393
|
+
};
|
|
1394
|
+
const found = missing.filter((each) => each.suggestion);
|
|
1395
|
+
const total = missing.reduce((sum, each) => sum + each.conversations, 0);
|
|
1396
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
1397
|
+
className: "tsy-missing"
|
|
1398
|
+
}, /* @__PURE__ */ React.createElement("p", {
|
|
1399
|
+
className: "tsy-big"
|
|
1400
|
+
}, words.missingTitle), /* @__PURE__ */ React.createElement("p", {
|
|
1401
|
+
className: "tsy-line"
|
|
1402
|
+
}, MoveWordsUtil.format(words.missingLead, { n: total })), missing.map((each) => /* @__PURE__ */ React.createElement("div", {
|
|
1403
|
+
key: each.dir,
|
|
1404
|
+
className: "tsy-missing-row"
|
|
1405
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
1406
|
+
className: "tsy-missing-text"
|
|
1407
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
1408
|
+
className: "tsy-missing-name",
|
|
1409
|
+
title: each.dir
|
|
1410
|
+
}, each.dir.split(/[\\/]+/).filter(Boolean).pop() ?? each.dir, /* @__PURE__ */ React.createElement("span", {
|
|
1411
|
+
className: "tsy-missing-count"
|
|
1412
|
+
}, MoveWordsUtil.format(words.missingCount, { n: each.conversations }))), /* @__PURE__ */ React.createElement("span", {
|
|
1413
|
+
className: "tsy-path"
|
|
1414
|
+
}, each.dir), /* @__PURE__ */ React.createElement("span", {
|
|
1415
|
+
className: `tsy-line${each.suggestion ? "" : " tsy-warn"}`
|
|
1416
|
+
}, each.suggestion ? MoveWordsUtil.format(words.missingFound, { path: each.suggestion }) : words.missingNone)), /* @__PURE__ */ React.createElement("div", {
|
|
1417
|
+
className: "tsy-actions"
|
|
1418
|
+
}, /* @__PURE__ */ React.createElement("button", {
|
|
1419
|
+
type: "button",
|
|
1420
|
+
className: "ta-button ta-small",
|
|
1421
|
+
onClick: () => setPicking(each)
|
|
1422
|
+
}, words.missingPick), each.suggestion && /* @__PURE__ */ React.createElement(Action, {
|
|
1423
|
+
pi,
|
|
1424
|
+
primary: true,
|
|
1425
|
+
label: words.missingUse,
|
|
1426
|
+
run: () => relocate(each, each.suggestion)
|
|
1427
|
+
})))), found.length > 1 && /* @__PURE__ */ React.createElement("div", {
|
|
1428
|
+
className: "tsy-actions tsy-end"
|
|
1429
|
+
}, /* @__PURE__ */ React.createElement(Action, {
|
|
1430
|
+
pi,
|
|
1431
|
+
label: words.missingUseAll,
|
|
1432
|
+
run: async () => {
|
|
1433
|
+
for (const each of found) {
|
|
1434
|
+
await relocate(each, each.suggestion);
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
})), picking && /* @__PURE__ */ React.createElement(pi.ui.FolderPicker, {
|
|
1438
|
+
initial: picking.suggestion,
|
|
1439
|
+
onPick: async (path) => {
|
|
1440
|
+
try {
|
|
1441
|
+
await relocate(picking, path);
|
|
1442
|
+
setPicking(undefined);
|
|
1443
|
+
} catch (error) {
|
|
1444
|
+
pi.ui.notify(MoveWordsUtil.format(words.failed, { message: message(error) }), "error");
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
onClose: () => setPicking(undefined)
|
|
1448
|
+
}));
|
|
1449
|
+
}
|
|
1328
1450
|
function ReceiveView({ pi, store, status }) {
|
|
1329
1451
|
const words = useWords(pi);
|
|
1330
1452
|
const [link, setLink] = React.useState("");
|
|
@@ -1552,7 +1674,9 @@ function MovePanel({ pi, store }) {
|
|
|
1552
1674
|
pi,
|
|
1553
1675
|
store,
|
|
1554
1676
|
chosen
|
|
1555
|
-
}))
|
|
1677
|
+
})), /* @__PURE__ */ React.createElement(MissingFolders, {
|
|
1678
|
+
pi
|
|
1679
|
+
}));
|
|
1556
1680
|
}
|
|
1557
1681
|
function MoveAskDialog({ pi, store, close }) {
|
|
1558
1682
|
const words = useWords(pi);
|
|
@@ -2210,6 +2334,13 @@ var STYLE = `
|
|
|
2210
2334
|
.tsy-dot.tsy-on { background: var(--ta-green); }
|
|
2211
2335
|
.tsy-line { margin: 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); overflow-wrap: anywhere; }
|
|
2212
2336
|
.tsy-line.tsy-warn { color: var(--ta-yellow); }
|
|
2337
|
+
.tsy-missing { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ta-border); }
|
|
2338
|
+
.tsy-missing-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ta-raised); }
|
|
2339
|
+
.tsy-missing-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
|
|
2340
|
+
.tsy-missing-name { display: flex; align-items: baseline; gap: 8px; color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; }
|
|
2341
|
+
.tsy-missing-count { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; font-variant-numeric: tabular-nums; }
|
|
2342
|
+
.tsy-missing-row .tsy-actions { flex: none; }
|
|
2343
|
+
@media (max-width: 520px) { .tsy-missing-row { flex-direction: column; align-items: stretch; } .tsy-missing-row .tsy-actions { justify-content: flex-end; } }
|
|
2213
2344
|
.tsy-link { padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }
|
|
2214
2345
|
.tsy-link:hover { background: var(--ta-hover); }
|
|
2215
2346
|
.tsy-link.tsy-danger { color: var(--ta-red); }
|
|
@@ -2223,7 +2354,7 @@ var STYLE = `
|
|
|
2223
2354
|
.tsy-field { width: 100%; box-sizing: border-box; height: 36px; padding: 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }
|
|
2224
2355
|
[data-touch] .tsy-field { font-size: max(16px, calc(13px * var(--ta-font-scale))); }
|
|
2225
2356
|
.tsy-error { margin: 0; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }
|
|
2226
|
-
.tsy-page { padding: 24px 20px 40px; max-width:
|
|
2357
|
+
.tsy-page { padding: 24px 20px 40px; max-width: var(--ta-page-width); margin: 0 auto; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
|
|
2227
2358
|
.tsy-page h2 { margin: 0; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }
|
|
2228
2359
|
.tsy-what { display: flex; flex-direction: column; border: 1px solid var(--ta-border-muted); border-radius: 12px; }
|
|
2229
2360
|
.tsy-what-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
|
|
@@ -2295,6 +2426,7 @@ function settings(pi, store) {
|
|
|
2295
2426
|
return {
|
|
2296
2427
|
title: () => words().title,
|
|
2297
2428
|
icon: pi.ui.icons.RefreshCw,
|
|
2429
|
+
group: "devices",
|
|
2298
2430
|
rows: [
|
|
2299
2431
|
{
|
|
2300
2432
|
key: "devices",
|
|
@@ -2347,6 +2479,7 @@ function activate(pi) {
|
|
|
2347
2479
|
pi.registerSettings({
|
|
2348
2480
|
title: () => MoveWordsUtil.of(pi.ui.language).title,
|
|
2349
2481
|
icon: pi.ui.icons.FolderInput,
|
|
2482
|
+
group: "devices",
|
|
2350
2483
|
rows: [
|
|
2351
2484
|
{
|
|
2352
2485
|
key: "move",
|
|
@@ -2363,7 +2496,7 @@ function activate(pi) {
|
|
|
2363
2496
|
pi.registerView("move", {
|
|
2364
2497
|
title: () => MoveWordsUtil.of(pi.ui.language).title,
|
|
2365
2498
|
icon: pi.ui.icons.FolderInput,
|
|
2366
|
-
|
|
2499
|
+
navigation: false,
|
|
2367
2500
|
render: () => /* @__PURE__ */ React.createElement("div", {
|
|
2368
2501
|
className: "tsy-page"
|
|
2369
2502
|
}, /* @__PURE__ */ React.createElement(MovePanel, {
|
|
@@ -2392,7 +2525,7 @@ function activate(pi) {
|
|
|
2392
2525
|
pi.registerView("devices", {
|
|
2393
2526
|
title: () => SyncWords.of(pi.ui.language).title,
|
|
2394
2527
|
icon: pi.ui.icons.RefreshCw,
|
|
2395
|
-
|
|
2528
|
+
navigation: false,
|
|
2396
2529
|
render: () => /* @__PURE__ */ React.createElement(SyncPage, {
|
|
2397
2530
|
pi,
|
|
2398
2531
|
store
|