@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
|
@@ -865,8 +865,464 @@ class MarketStore {
|
|
|
865
865
|
|
|
866
866
|
// ../ta-protocol/esm/common/access-protocol.js
|
|
867
867
|
var TaAccessServer = Symbol("TaAccessServer");
|
|
868
|
+
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
869
|
+
var TA_WEBHOOK_MAX_BYTES = 256 * 1024;
|
|
870
|
+
var TA_HOST_EVENT = "ta:host";
|
|
871
|
+
var TaHostUtil;
|
|
872
|
+
(function(TaHostUtil2) {
|
|
873
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
874
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
875
|
+
return new Promise((resolve) => {
|
|
876
|
+
let heard = false;
|
|
877
|
+
let answered = false;
|
|
878
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
879
|
+
const request = {
|
|
880
|
+
name,
|
|
881
|
+
heard: () => {
|
|
882
|
+
heard = true;
|
|
883
|
+
},
|
|
884
|
+
resolve: (answer) => {
|
|
885
|
+
answered = true;
|
|
886
|
+
clearTimeout(timer);
|
|
887
|
+
resolve(answer);
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
events.emit(TA_HOST_EVENT, request);
|
|
891
|
+
if (!heard && !answered) {
|
|
892
|
+
clearTimeout(timer);
|
|
893
|
+
resolve(undefined);
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
TaHostUtil2.reach = reach;
|
|
898
|
+
function marked(systemPrompt, mark) {
|
|
899
|
+
return role(systemPrompt).includes(mark);
|
|
900
|
+
}
|
|
901
|
+
TaHostUtil2.marked = marked;
|
|
902
|
+
function role(systemPrompt) {
|
|
903
|
+
if (!systemPrompt) {
|
|
904
|
+
return "";
|
|
905
|
+
}
|
|
906
|
+
const open = `<addendum>
|
|
907
|
+
`;
|
|
908
|
+
const start = systemPrompt.indexOf(open);
|
|
909
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
910
|
+
`);
|
|
911
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
912
|
+
return "";
|
|
913
|
+
}
|
|
914
|
+
const end = systemPrompt.indexOf(`
|
|
915
|
+
</addendum>`, start);
|
|
916
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
917
|
+
}
|
|
918
|
+
TaHostUtil2.role = role;
|
|
919
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
920
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
921
|
+
var TaAskUtil;
|
|
922
|
+
(function(TaAskUtil2) {
|
|
923
|
+
const LENGTH = 120;
|
|
924
|
+
function entry(question) {
|
|
925
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
926
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
927
|
+
}
|
|
928
|
+
TaAskUtil2.entry = entry;
|
|
929
|
+
function asking(entries) {
|
|
930
|
+
var _a;
|
|
931
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
932
|
+
const entry2 = entries[i];
|
|
933
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
934
|
+
return;
|
|
935
|
+
}
|
|
936
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
937
|
+
return read(entry2);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
return;
|
|
941
|
+
}
|
|
942
|
+
TaAskUtil2.asking = asking;
|
|
943
|
+
function next(asked, entry2) {
|
|
944
|
+
var _a;
|
|
945
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
946
|
+
return;
|
|
947
|
+
}
|
|
948
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
949
|
+
}
|
|
950
|
+
TaAskUtil2.next = next;
|
|
951
|
+
function read(found) {
|
|
952
|
+
var _a;
|
|
953
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
954
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
958
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
959
|
+
}
|
|
960
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
961
|
+
|
|
962
|
+
// ../ta-protocol/esm/common/delegate-protocol.js
|
|
963
|
+
var TaDelegateUtil;
|
|
964
|
+
(function(TaDelegateUtil2) {
|
|
965
|
+
TaDelegateUtil2.LEVELS = ["less", "balanced", "more"];
|
|
966
|
+
TaDelegateUtil2.DEFAULT = "balanced";
|
|
967
|
+
TaDelegateUtil2.WORK_TOOLS = ["read", "bash", "powershell", "edit", "write", "grep", "find", "ls"];
|
|
968
|
+
TaDelegateUtil2.CHANGE_TOOLS = ["edit", "write"];
|
|
969
|
+
const LIMITS = {
|
|
970
|
+
less: { noChanges: false },
|
|
971
|
+
balanced: { noChanges: true, steps: 6 },
|
|
972
|
+
more: { noChanges: true, steps: 2 }
|
|
973
|
+
};
|
|
974
|
+
function parse(value) {
|
|
975
|
+
return TaDelegateUtil2.LEVELS.includes(value) ? value : TaDelegateUtil2.DEFAULT;
|
|
976
|
+
}
|
|
977
|
+
TaDelegateUtil2.parse = parse;
|
|
978
|
+
function mark(level) {
|
|
979
|
+
return `(delegate=${level})`;
|
|
980
|
+
}
|
|
981
|
+
TaDelegateUtil2.mark = mark;
|
|
982
|
+
function levelOf(systemPrompt) {
|
|
983
|
+
const role = TaHostUtil.role(systemPrompt);
|
|
984
|
+
return TaDelegateUtil2.LEVELS.find((level) => role.includes(mark(level)));
|
|
985
|
+
}
|
|
986
|
+
TaDelegateUtil2.levelOf = levelOf;
|
|
987
|
+
function limits(level) {
|
|
988
|
+
return LIMITS[level];
|
|
989
|
+
}
|
|
990
|
+
TaDelegateUtil2.limits = limits;
|
|
991
|
+
function refusal(level, tool, steps) {
|
|
992
|
+
if (!TaDelegateUtil2.WORK_TOOLS.includes(tool)) {
|
|
993
|
+
return;
|
|
994
|
+
}
|
|
995
|
+
const limit = LIMITS[level];
|
|
996
|
+
if (limit.noChanges && TaDelegateUtil2.CHANGE_TOOLS.includes(tool)) {
|
|
997
|
+
return "You do not change files yourself: hand this to a task with start_task, with instructions complete enough to do it. The user set how much you hand out in the settings of the double.";
|
|
998
|
+
}
|
|
999
|
+
if (limit.steps !== undefined && steps >= limit.steps) {
|
|
1000
|
+
return "You have looked enough for this: hand the work to a task with start_task now, with what you found in its instructions, and tell the user what you started.";
|
|
1001
|
+
}
|
|
1002
|
+
return;
|
|
1003
|
+
}
|
|
1004
|
+
TaDelegateUtil2.refusal = refusal;
|
|
1005
|
+
})(TaDelegateUtil || (TaDelegateUtil = {}));
|
|
1006
|
+
|
|
1007
|
+
// ../ta-protocol/esm/common/app-protocol.js
|
|
1008
|
+
var FONT_SIZES = ["small", "standard", "large", "xlarge"];
|
|
1009
|
+
var words = (en, zh, tw, ja) => ({ "en-US": en, "zh-CN": zh, "zh-TW": tw, "ja-JP": ja });
|
|
1010
|
+
var SYSTEM = words("as the system", "跟随系统", "跟隨系統", "システムに合わせる");
|
|
1011
|
+
var FONT_SHOWN = {
|
|
1012
|
+
small: words("small", "小", "小", "小"),
|
|
1013
|
+
standard: words("standard", "标准", "標準", "標準"),
|
|
1014
|
+
large: words("large", "大", "大", "大"),
|
|
1015
|
+
xlarge: words("extra large", "特大", "特大", "特大")
|
|
1016
|
+
};
|
|
1017
|
+
var TA_WEB_SETTINGS = [
|
|
1018
|
+
{
|
|
1019
|
+
key: "theme",
|
|
1020
|
+
type: "enum",
|
|
1021
|
+
values: ["system", "light", "dark"],
|
|
1022
|
+
default: "system",
|
|
1023
|
+
what: "Light or dark look; system follows the device.",
|
|
1024
|
+
title: words("Theme", "外观", "外觀", "外観"),
|
|
1025
|
+
shown: { system: SYSTEM, light: words("light", "浅色", "淺色", "ライト"), dark: words("dark", "深色", "深色", "ダーク") }
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
key: "language",
|
|
1029
|
+
type: "enum",
|
|
1030
|
+
values: ["system", ...TaLanguageUtil.ALL],
|
|
1031
|
+
default: "system",
|
|
1032
|
+
what: "The language of Ta's pages and of what Ta says; system follows the device.",
|
|
1033
|
+
title: words("Language", "语言", "語言", "言語"),
|
|
1034
|
+
shown: {
|
|
1035
|
+
system: SYSTEM,
|
|
1036
|
+
...Object.fromEntries(TaLanguageUtil.ALL.map((language) => [
|
|
1037
|
+
language,
|
|
1038
|
+
words(TaLanguageUtil.NAMES[language], TaLanguageUtil.NAMES[language], TaLanguageUtil.NAMES[language], TaLanguageUtil.NAMES[language])
|
|
1039
|
+
]))
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
key: "fontSize",
|
|
1044
|
+
type: "enum",
|
|
1045
|
+
values: FONT_SIZES,
|
|
1046
|
+
default: "standard",
|
|
1047
|
+
what: "The size of the text of the whole page.",
|
|
1048
|
+
title: words("Text size", "字体大小", "字型大小", "文字サイズ"),
|
|
1049
|
+
shown: FONT_SHOWN
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
key: "chatFontSize",
|
|
1053
|
+
type: "enum",
|
|
1054
|
+
values: FONT_SIZES,
|
|
1055
|
+
default: "standard",
|
|
1056
|
+
what: "The size of the text of conversations, on top of fontSize.",
|
|
1057
|
+
title: words("Text size of conversations", "对话字体大小", "對話字型大小", "会話の文字サイズ"),
|
|
1058
|
+
shown: FONT_SHOWN
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
key: "speak",
|
|
1062
|
+
type: "boolean",
|
|
1063
|
+
default: false,
|
|
1064
|
+
what: "Read every reply aloud.",
|
|
1065
|
+
title: words("Read replies aloud", "朗读回复", "朗讀回覆", "返信を読み上げ")
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
key: "speakTalk",
|
|
1069
|
+
type: "boolean",
|
|
1070
|
+
default: false,
|
|
1071
|
+
what: "Read the reply aloud when the user spoke to the double by voice.",
|
|
1072
|
+
title: words("Read aloud what was asked by voice", "语音提问时朗读回复", "語音提問時朗讀回覆", "音声で聞いたら読み上げ")
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
key: "callCaptions",
|
|
1076
|
+
type: "boolean",
|
|
1077
|
+
default: false,
|
|
1078
|
+
what: "Show captions in a call: what the user says and what Ta reads.",
|
|
1079
|
+
title: words("Call captions", "通话字幕", "通話字幕", "通話の字幕")
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
key: "voice",
|
|
1083
|
+
type: "string",
|
|
1084
|
+
default: "",
|
|
1085
|
+
what: "The voice replies are read with (a voiceURI of the device's voices); empty for the most natural one.",
|
|
1086
|
+
title: words("Voice", "朗读声音", "朗讀聲音", "読み上げの声")
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
key: "confirmTasks",
|
|
1090
|
+
type: "boolean",
|
|
1091
|
+
default: false,
|
|
1092
|
+
what: "The double asks before it hands out work.",
|
|
1093
|
+
title: words("Ask before handing out work", "派任务前先问我", "派任務前先問我", "作業を割り当てる前に確認")
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
key: "maxTasks",
|
|
1097
|
+
type: "number",
|
|
1098
|
+
values: [0, 2, 4, 8],
|
|
1099
|
+
default: 0,
|
|
1100
|
+
what: "How many of the double's tasks run at once; 0 for as many as it starts.",
|
|
1101
|
+
title: words("Tasks at once", "同时运行的任务", "同時執行的任務", "同時に実行するタスク")
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
key: "delegate",
|
|
1105
|
+
type: "enum",
|
|
1106
|
+
values: TaDelegateUtil.LEVELS,
|
|
1107
|
+
default: TaDelegateUtil.DEFAULT,
|
|
1108
|
+
what: "How much of the work the double hands out to tasks rather than doing it itself.",
|
|
1109
|
+
title: words("Hand out work", "派活多少", "派活多少", "作業の割り当て"),
|
|
1110
|
+
shown: { less: words("less", "少", "少", "少なめ"), balanced: words("balanced", "适中", "適中", "ふつう"), more: words("more", "多", "多", "多め") }
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
key: "assistantModel",
|
|
1114
|
+
type: "model",
|
|
1115
|
+
default: "",
|
|
1116
|
+
what: "The model of the double, <provider>/<model id>; empty for the default model.",
|
|
1117
|
+
title: words("Model of the double", "分身的模型", "分身的模型", "分身のモデル")
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
key: "taskModel",
|
|
1121
|
+
type: "model",
|
|
1122
|
+
default: "",
|
|
1123
|
+
what: "The model of the tasks the double starts; empty for the default model.",
|
|
1124
|
+
title: words("Model of tasks", "任务的模型", "任務的模型", "タスクのモデル")
|
|
1125
|
+
},
|
|
1126
|
+
{ key: "reduceMotion", type: "boolean", default: false, what: "Fewer animations.", title: words("Reduce motion", "减少动画", "減少動畫", "動きを減らす") },
|
|
1127
|
+
{
|
|
1128
|
+
key: "keepAliveMinutes",
|
|
1129
|
+
type: "number",
|
|
1130
|
+
values: [1, 5, 15, 30],
|
|
1131
|
+
default: 5,
|
|
1132
|
+
what: "How long an extension started on open keeps running once left, in minutes.",
|
|
1133
|
+
title: words("Keep extensions running", "扩展离开后保留", "擴充功能離開後保留", "拡張機能を保持")
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
key: "chatFoldDays",
|
|
1137
|
+
type: "number",
|
|
1138
|
+
values: [3, 7, 30, 0],
|
|
1139
|
+
default: 7,
|
|
1140
|
+
what: "Conversations not updated for these days fold at the end of the list; 0 for none.",
|
|
1141
|
+
title: words("Fold old conversations", "折叠旧对话", "摺疊舊對話", "古い会話を折りたたむ")
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
key: "chatArchiveDays",
|
|
1145
|
+
type: "number",
|
|
1146
|
+
values: [30, 90, 365, 0],
|
|
1147
|
+
default: 30,
|
|
1148
|
+
what: "Conversations not updated for these days are archived (out of the list, found by search); 0 for none.",
|
|
1149
|
+
title: words("Archive old conversations", "归档旧对话", "歸檔舊對話", "古い会話をアーカイブ")
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
key: "recentShots",
|
|
1153
|
+
type: "boolean",
|
|
1154
|
+
default: true,
|
|
1155
|
+
what: "The screenshot just taken is offered above the message box, once.",
|
|
1156
|
+
title: words("Offer recent screenshots", "提示刚截的图", "提示剛截的圖", "撮ったばかりのスクリーンショットを提案")
|
|
1157
|
+
}
|
|
1158
|
+
];
|
|
1159
|
+
var TaAppUtil;
|
|
1160
|
+
(function(TaAppUtil2) {
|
|
1161
|
+
function check(spec, value) {
|
|
1162
|
+
var _a, _b;
|
|
1163
|
+
switch (spec.type) {
|
|
1164
|
+
case "boolean":
|
|
1165
|
+
return typeof value === "boolean" ? undefined : "true or false";
|
|
1166
|
+
case "string":
|
|
1167
|
+
return typeof value === "string" ? undefined : "a string";
|
|
1168
|
+
case "model":
|
|
1169
|
+
return value === "" || typeof value === "string" && /^[^/\s]+\/\S+$/.test(value) ? undefined : "<provider>/<model id>, or empty";
|
|
1170
|
+
default:
|
|
1171
|
+
return ((_a = spec.values) === null || _a === undefined ? undefined : _a.includes(value)) ? undefined : `one of ${(_b = spec.values) === null || _b === undefined ? undefined : _b.map((one) => JSON.stringify(one)).join(", ")}`;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
TaAppUtil2.check = check;
|
|
1175
|
+
function shown(value, language, spec) {
|
|
1176
|
+
var _a;
|
|
1177
|
+
const named = (_a = spec === null || spec === undefined ? undefined : spec.shown) === null || _a === undefined ? undefined : _a[String(value)];
|
|
1178
|
+
if (named) {
|
|
1179
|
+
return TaLanguageUtil.pick(language, named);
|
|
1180
|
+
}
|
|
1181
|
+
if (typeof value === "boolean") {
|
|
1182
|
+
return TaLanguageUtil.pick(language, value ? words("on", "开", "開", "オン") : words("off", "关", "關", "オフ"));
|
|
1183
|
+
}
|
|
1184
|
+
if (value === "" || value === undefined || value === null) {
|
|
1185
|
+
return TaLanguageUtil.pick(language, words("default", "默认", "預設", "デフォルト"));
|
|
1186
|
+
}
|
|
1187
|
+
return String(value);
|
|
1188
|
+
}
|
|
1189
|
+
TaAppUtil2.shown = shown;
|
|
1190
|
+
})(TaAppUtil || (TaAppUtil = {}));
|
|
868
1191
|
// ../ta-protocol/esm/common/auth-protocol.js
|
|
869
1192
|
var TaAuthServer = Symbol("TaAuthServer");
|
|
1193
|
+
// ../ta-protocol/esm/common/deployment-protocol.js
|
|
1194
|
+
var TA_WELL_KNOWN_PATH = "/.well-known/ta";
|
|
1195
|
+
|
|
1196
|
+
class TaDeploymentError extends Error {
|
|
1197
|
+
}
|
|
1198
|
+
var TaDeploymentUtil;
|
|
1199
|
+
(function(TaDeploymentUtil2) {
|
|
1200
|
+
TaDeploymentUtil2.DISTRIBUTION_FILE = "distribution.json";
|
|
1201
|
+
function url(value) {
|
|
1202
|
+
if (typeof value !== "string" || !value.trim()) {
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
try {
|
|
1206
|
+
const parsed = new URL(value.trim());
|
|
1207
|
+
if (!/^https?:$/.test(parsed.protocol) || parsed.search || parsed.hash || parsed.username || parsed.password) {
|
|
1208
|
+
return;
|
|
1209
|
+
}
|
|
1210
|
+
return `${parsed.origin}${parsed.pathname}`.replace(/\/+$/, "");
|
|
1211
|
+
} catch (_a) {
|
|
1212
|
+
return;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
TaDeploymentUtil2.url = url;
|
|
1216
|
+
function name(value) {
|
|
1217
|
+
return typeof value === "string" && value.trim() ? value.trim().slice(0, 80) : undefined;
|
|
1218
|
+
}
|
|
1219
|
+
function describe(env, own, version) {
|
|
1220
|
+
var _a, _b;
|
|
1221
|
+
const gateway = (_a = url(own.gateway)) !== null && _a !== undefined ? _a : url(env.TA_GATEWAY_URL);
|
|
1222
|
+
const relay = (_b = url(own.relay)) !== null && _b !== undefined ? _b : url(env.TA_RELAY_URL);
|
|
1223
|
+
const called = name(env.TA_DEPLOYMENT_NAME);
|
|
1224
|
+
return { v: 1, ...called ? { name: called } : {}, ...gateway ? { gateway } : {}, ...relay ? { relay } : {}, ...version ? { version } : {} };
|
|
1225
|
+
}
|
|
1226
|
+
TaDeploymentUtil2.describe = describe;
|
|
1227
|
+
TaDeploymentUtil2.HEADERS = {
|
|
1228
|
+
"content-type": "application/json",
|
|
1229
|
+
"access-control-allow-origin": "*",
|
|
1230
|
+
"cache-control": "no-store"
|
|
1231
|
+
};
|
|
1232
|
+
function parse(value) {
|
|
1233
|
+
const given = value;
|
|
1234
|
+
if (!given || typeof given !== "object" || given.v !== 1) {
|
|
1235
|
+
return;
|
|
1236
|
+
}
|
|
1237
|
+
const deployment = describe({ TA_DEPLOYMENT_NAME: given.name, TA_GATEWAY_URL: given.gateway, TA_RELAY_URL: given.relay }, {});
|
|
1238
|
+
const version = name(given.version);
|
|
1239
|
+
return version ? { ...deployment, version } : deployment;
|
|
1240
|
+
}
|
|
1241
|
+
TaDeploymentUtil2.parse = parse;
|
|
1242
|
+
async function discover(address, timeoutMs = 6000) {
|
|
1243
|
+
const base = url(address);
|
|
1244
|
+
if (!base) {
|
|
1245
|
+
throw new TaDeploymentError(`${address} is not an address of http or https.`);
|
|
1246
|
+
}
|
|
1247
|
+
const controller = new AbortController;
|
|
1248
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
1249
|
+
try {
|
|
1250
|
+
const response = await fetch(`${base}${TA_WELL_KNOWN_PATH}`, { signal: controller.signal, redirect: "follow" });
|
|
1251
|
+
if (!response.ok) {
|
|
1252
|
+
throw new TaDeploymentError(`${base} is not a deployment of Ta (${response.status}).`);
|
|
1253
|
+
}
|
|
1254
|
+
const deployment = parse(await response.json().catch(() => {
|
|
1255
|
+
return;
|
|
1256
|
+
}));
|
|
1257
|
+
if (!deployment || !deployment.gateway && !deployment.relay) {
|
|
1258
|
+
throw new TaDeploymentError(`${base} is not a deployment of Ta.`);
|
|
1259
|
+
}
|
|
1260
|
+
return deployment;
|
|
1261
|
+
} catch (error) {
|
|
1262
|
+
if ((error === null || error === undefined ? undefined : error.name) === "AbortError") {
|
|
1263
|
+
throw new TaDeploymentError(`${base} did not answer in time.`);
|
|
1264
|
+
}
|
|
1265
|
+
throw error;
|
|
1266
|
+
} finally {
|
|
1267
|
+
clearTimeout(timer);
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
TaDeploymentUtil2.discover = discover;
|
|
1271
|
+
function distribution(value) {
|
|
1272
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
1273
|
+
throw new TaDeploymentError(`${TaDeploymentUtil2.DISTRIBUTION_FILE} holds a JSON object.`);
|
|
1274
|
+
}
|
|
1275
|
+
const given = value;
|
|
1276
|
+
const result = {};
|
|
1277
|
+
if (given.name !== undefined) {
|
|
1278
|
+
result.name = name(given.name);
|
|
1279
|
+
}
|
|
1280
|
+
for (const key of ["relay", "gateway"]) {
|
|
1281
|
+
if (given[key] !== undefined) {
|
|
1282
|
+
const address = url(given[key]);
|
|
1283
|
+
if (!address) {
|
|
1284
|
+
throw new TaDeploymentError(`"${key}" of ${TaDeploymentUtil2.DISTRIBUTION_FILE} is not an address of http or https.`);
|
|
1285
|
+
}
|
|
1286
|
+
result[key] = address;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
if (given.updates !== undefined) {
|
|
1290
|
+
const updates = given.updates;
|
|
1291
|
+
const base = url(updates === null || updates === undefined ? undefined : updates.base);
|
|
1292
|
+
if (!base && (updates === null || updates === undefined ? undefined : updates.base) !== undefined) {
|
|
1293
|
+
throw new TaDeploymentError(`"updates.base" of ${TaDeploymentUtil2.DISTRIBUTION_FILE} is not an address of http or https.`);
|
|
1294
|
+
}
|
|
1295
|
+
const key = typeof (updates === null || updates === undefined ? undefined : updates.key) === "string" && updates.key.includes("PUBLIC KEY") ? updates.key : undefined;
|
|
1296
|
+
if ((updates === null || updates === undefined ? undefined : updates.key) !== undefined && !key) {
|
|
1297
|
+
throw new TaDeploymentError(`"updates.key" of ${TaDeploymentUtil2.DISTRIBUTION_FILE} is a public key in PEM.`);
|
|
1298
|
+
}
|
|
1299
|
+
result.updates = { ...base ? { base } : {}, ...key ? { key } : {} };
|
|
1300
|
+
}
|
|
1301
|
+
return result;
|
|
1302
|
+
}
|
|
1303
|
+
TaDeploymentUtil2.distribution = distribution;
|
|
1304
|
+
function apply(distribution2, env) {
|
|
1305
|
+
const defaults = { TA_DEPLOYMENT_NAME: distribution2.name, TA_RELAY_URL: distribution2.relay, TA_GATEWAY_URL: distribution2.gateway };
|
|
1306
|
+
for (const [key, value] of Object.entries(defaults)) {
|
|
1307
|
+
if (value && !env[key]) {
|
|
1308
|
+
env[key] = value;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
TaDeploymentUtil2.apply = apply;
|
|
1313
|
+
})(TaDeploymentUtil || (TaDeploymentUtil = {}));
|
|
1314
|
+
// ../ta-protocol/esm/common/error-protocol.js
|
|
1315
|
+
var TaErrorUtil;
|
|
1316
|
+
(function(TaErrorUtil2) {
|
|
1317
|
+
function code(error) {
|
|
1318
|
+
var _a;
|
|
1319
|
+
var _b;
|
|
1320
|
+
const failure = error;
|
|
1321
|
+
const code2 = (_b = failure === null || failure === undefined ? undefined : failure.code) !== null && _b !== undefined ? _b : (_a = failure === null || failure === undefined ? undefined : failure.data) === null || _a === undefined ? undefined : _a.code;
|
|
1322
|
+
return typeof code2 === "string" ? code2 : undefined;
|
|
1323
|
+
}
|
|
1324
|
+
TaErrorUtil2.code = code;
|
|
1325
|
+
})(TaErrorUtil || (TaErrorUtil = {}));
|
|
870
1326
|
// ../ta-protocol/esm/common/gateway-protocol.js
|
|
871
1327
|
var TaGatewayServer = Symbol("TaGatewayServer");
|
|
872
1328
|
// ../ta-protocol/esm/common/location.js
|
|
@@ -930,19 +1386,19 @@ var TaLocation;
|
|
|
930
1386
|
TaLocation2.isHost = isHost;
|
|
931
1387
|
const FLAGS = /^-[46AaCfGgKkMNnqsTtVvXxYy]+$/;
|
|
932
1388
|
function readHost(input) {
|
|
933
|
-
const
|
|
934
|
-
if (
|
|
935
|
-
|
|
1389
|
+
const words2 = input.trim().split(/\s+/).filter(Boolean);
|
|
1390
|
+
if (words2[0] === "ssh") {
|
|
1391
|
+
words2.shift();
|
|
936
1392
|
}
|
|
937
1393
|
let destination;
|
|
938
1394
|
let port;
|
|
939
1395
|
let user;
|
|
940
1396
|
const options = [];
|
|
941
|
-
for (let i = 0;i <
|
|
942
|
-
const word =
|
|
1397
|
+
for (let i = 0;i < words2.length; i++) {
|
|
1398
|
+
const word = words2[i];
|
|
943
1399
|
const glued = /^-([pl])(.+)$/.exec(word);
|
|
944
1400
|
if (word === "-p" || word === "-l" || glued) {
|
|
945
|
-
const value = glued ? glued[2] :
|
|
1401
|
+
const value = glued ? glued[2] : words2[++i];
|
|
946
1402
|
if (value === undefined) {
|
|
947
1403
|
return { error: "invalid" };
|
|
948
1404
|
}
|
|
@@ -952,7 +1408,7 @@ var TaLocation;
|
|
|
952
1408
|
user = value;
|
|
953
1409
|
}
|
|
954
1410
|
} else if (word === "-o" || word.startsWith("-o")) {
|
|
955
|
-
const value = word === "-o" ?
|
|
1411
|
+
const value = word === "-o" ? words2[++i] : word.slice(2);
|
|
956
1412
|
const option = /^(port|user)\s*=?\s*(.+)$/i.exec(value !== null && value !== undefined ? value : "");
|
|
957
1413
|
if (!option) {
|
|
958
1414
|
options.push(`-o ${value !== null && value !== undefined ? value : ""}`.trim());
|
|
@@ -962,7 +1418,7 @@ var TaLocation;
|
|
|
962
1418
|
user = option[2];
|
|
963
1419
|
}
|
|
964
1420
|
} else if (FLAGS.test(word)) {} else if (word.startsWith("-")) {
|
|
965
|
-
options.push(/^-[bBcDeEFiIJLmOQRSwW]$/.test(word) &&
|
|
1421
|
+
options.push(/^-[bBcDeEFiIJLmOQRSwW]$/.test(word) && words2[i + 1] !== undefined ? `${word} ${words2[++i]}` : word);
|
|
966
1422
|
} else if (destination === undefined) {
|
|
967
1423
|
destination = word;
|
|
968
1424
|
} else {
|
|
@@ -1068,44 +1524,7 @@ var TaLocation;
|
|
|
1068
1524
|
return squeezed.length > 1 ? squeezed.replace(/\/$/, "") : squeezed;
|
|
1069
1525
|
}
|
|
1070
1526
|
})(TaLocation || (TaLocation = {}));
|
|
1071
|
-
// ../ta-protocol/esm/common/
|
|
1072
|
-
var TaPackageServer = Symbol("TaPackageServer");
|
|
1073
|
-
var TaPackageTextUtil;
|
|
1074
|
-
(function(TaPackageTextUtil2) {
|
|
1075
|
-
function pick(text, language) {
|
|
1076
|
-
var _a, _b, _c, _d, _e;
|
|
1077
|
-
if (text === undefined || typeof text === "string") {
|
|
1078
|
-
return text;
|
|
1079
|
-
}
|
|
1080
|
-
const base = language.split("-")[0];
|
|
1081
|
-
const kin = Object.keys(text).find((key) => key.split("-")[0] === base);
|
|
1082
|
-
return (_e = (_d = (_c = (_b = (_a = text[language]) !== null && _a !== undefined ? _a : text[base]) !== null && _b !== undefined ? _b : kin === undefined ? undefined : text[kin]) !== null && _c !== undefined ? _c : text.en) !== null && _d !== undefined ? _d : text["en-US"]) !== null && _e !== undefined ? _e : Object.values(text)[0];
|
|
1083
|
-
}
|
|
1084
|
-
TaPackageTextUtil2.pick = pick;
|
|
1085
|
-
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
1086
|
-
// ../ta-protocol/esm/common/ta-protocol.js
|
|
1087
|
-
var TaServer = Symbol("TaServer");
|
|
1088
|
-
var TaClient = Symbol("TaClient");
|
|
1089
|
-
var TaErrorUtil;
|
|
1090
|
-
(function(TaErrorUtil2) {
|
|
1091
|
-
function code(error) {
|
|
1092
|
-
var _a;
|
|
1093
|
-
var _b;
|
|
1094
|
-
const failure = error;
|
|
1095
|
-
const code2 = (_b = failure === null || failure === undefined ? undefined : failure.code) !== null && _b !== undefined ? _b : (_a = failure === null || failure === undefined ? undefined : failure.data) === null || _a === undefined ? undefined : _a.code;
|
|
1096
|
-
return typeof code2 === "string" ? code2 : undefined;
|
|
1097
|
-
}
|
|
1098
|
-
TaErrorUtil2.code = code;
|
|
1099
|
-
})(TaErrorUtil || (TaErrorUtil = {}));
|
|
1100
|
-
var TaSlashCommandUtil;
|
|
1101
|
-
(function(TaSlashCommandUtil2) {
|
|
1102
|
-
function description(command, language) {
|
|
1103
|
-
var _a, _b;
|
|
1104
|
-
const { descriptions } = command;
|
|
1105
|
-
return (_b = (_a = descriptions === null || descriptions === undefined ? undefined : descriptions[language]) !== null && _a !== undefined ? _a : descriptions === null || descriptions === undefined ? undefined : descriptions[language.split("-")[0]]) !== null && _b !== undefined ? _b : command.description;
|
|
1106
|
-
}
|
|
1107
|
-
TaSlashCommandUtil2.description = description;
|
|
1108
|
-
})(TaSlashCommandUtil || (TaSlashCommandUtil = {}));
|
|
1527
|
+
// ../ta-protocol/esm/common/message-protocol.js
|
|
1109
1528
|
var TaMessageContext;
|
|
1110
1529
|
(function(TaMessageContext2) {
|
|
1111
1530
|
const BLOCK = /^<context>\n?[\s\S]*?\n?<\/context>\n?/;
|
|
@@ -1268,7 +1687,168 @@ var TaSkillUse;
|
|
|
1268
1687
|
}
|
|
1269
1688
|
TaSkillUse2.command = command;
|
|
1270
1689
|
})(TaSkillUse || (TaSkillUse = {}));
|
|
1271
|
-
|
|
1690
|
+
var TaTaskNote;
|
|
1691
|
+
(function(TaTaskNote2) {
|
|
1692
|
+
const NOTE = /^<task_(update|adopted|renamed) ((?:[^>"\n]|"[^"]*")*)>\n?([\s\S]*?)\n?<\/task_\1>$/;
|
|
1693
|
+
const ATTRIBUTE = /(\w+)="([^"]*)"/g;
|
|
1694
|
+
function write(note) {
|
|
1695
|
+
const attributes = [`id="${quote(note.id)}"`];
|
|
1696
|
+
if (note.was !== undefined) {
|
|
1697
|
+
attributes.push(`was="${quote(note.was)}"`);
|
|
1698
|
+
}
|
|
1699
|
+
attributes.push(`title="${quote(note.title)}"`);
|
|
1700
|
+
if (note.status !== undefined) {
|
|
1701
|
+
attributes.push(`status="${quote(note.status)}"`);
|
|
1702
|
+
}
|
|
1703
|
+
return `<task_${note.kind} ${attributes.join(" ")}>
|
|
1704
|
+
${note.body}
|
|
1705
|
+
</task_${note.kind}>`;
|
|
1706
|
+
}
|
|
1707
|
+
TaTaskNote2.write = write;
|
|
1708
|
+
function parse(text) {
|
|
1709
|
+
const match = NOTE.exec(text.trim());
|
|
1710
|
+
if (!match) {
|
|
1711
|
+
return;
|
|
1712
|
+
}
|
|
1713
|
+
const attributes = {};
|
|
1714
|
+
for (const [, name, value] of match[2].matchAll(ATTRIBUTE)) {
|
|
1715
|
+
attributes[name] = unquote(value);
|
|
1716
|
+
}
|
|
1717
|
+
if (!attributes.id || attributes.title === undefined) {
|
|
1718
|
+
return;
|
|
1719
|
+
}
|
|
1720
|
+
const { id, title, status, was } = attributes;
|
|
1721
|
+
return { kind: match[1], id, title, ...status ? { status } : {}, ...was ? { was } : {}, body: match[3] };
|
|
1722
|
+
}
|
|
1723
|
+
TaTaskNote2.parse = parse;
|
|
1724
|
+
function quote(text) {
|
|
1725
|
+
return text.replace(/&/g, "&").replace(/"/g, """).replace(/\n/g, " ");
|
|
1726
|
+
}
|
|
1727
|
+
function unquote(text) {
|
|
1728
|
+
return text.replace(/"/g, '"').replace(/&/g, "&");
|
|
1729
|
+
}
|
|
1730
|
+
})(TaTaskNote || (TaTaskNote = {}));
|
|
1731
|
+
// ../ta-protocol/esm/common/package-protocol.js
|
|
1732
|
+
var TaPackageServer = Symbol("TaPackageServer");
|
|
1733
|
+
var TaPackageTextUtil;
|
|
1734
|
+
(function(TaPackageTextUtil2) {
|
|
1735
|
+
function pick(text, language) {
|
|
1736
|
+
var _a, _b, _c, _d, _e;
|
|
1737
|
+
if (text === undefined || typeof text === "string") {
|
|
1738
|
+
return text;
|
|
1739
|
+
}
|
|
1740
|
+
const base = language.split("-")[0];
|
|
1741
|
+
const kin = Object.keys(text).find((key) => key.split("-")[0] === base);
|
|
1742
|
+
return (_e = (_d = (_c = (_b = (_a = text[language]) !== null && _a !== undefined ? _a : text[base]) !== null && _b !== undefined ? _b : kin === undefined ? undefined : text[kin]) !== null && _c !== undefined ? _c : text.en) !== null && _d !== undefined ? _d : text["en-US"]) !== null && _e !== undefined ? _e : Object.values(text)[0];
|
|
1743
|
+
}
|
|
1744
|
+
TaPackageTextUtil2.pick = pick;
|
|
1745
|
+
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
1746
|
+
// ../ta-protocol/esm/common/page-protocol.js
|
|
1747
|
+
var TaPageServer = Symbol("TaPageServer");
|
|
1748
|
+
// ../ta-protocol/esm/common/path-map.js
|
|
1749
|
+
var TaPathMap;
|
|
1750
|
+
(function(TaPathMap2) {
|
|
1751
|
+
function isWindows(path2) {
|
|
1752
|
+
return /^[a-zA-Z]:([\\/]|$)/.test(path2) || /^\\\\[^\\]/.test(path2);
|
|
1753
|
+
}
|
|
1754
|
+
TaPathMap2.isWindows = isWindows;
|
|
1755
|
+
function rest(path2, base) {
|
|
1756
|
+
const windows = isWindows(base);
|
|
1757
|
+
if (windows ? !isWindows(path2) : !base.startsWith("/") || !path2.startsWith("/")) {
|
|
1758
|
+
return;
|
|
1759
|
+
}
|
|
1760
|
+
const within = parts(base, windows);
|
|
1761
|
+
const all = parts(path2, windows);
|
|
1762
|
+
if (!within.length || all.length < within.length) {
|
|
1763
|
+
return;
|
|
1764
|
+
}
|
|
1765
|
+
const same = (a, b) => windows ? a.toLowerCase() === b.toLowerCase() : a === b;
|
|
1766
|
+
return within.every((part, i) => same(part, all[i])) ? all.slice(within.length) : undefined;
|
|
1767
|
+
}
|
|
1768
|
+
TaPathMap2.rest = rest;
|
|
1769
|
+
function under(path2, base) {
|
|
1770
|
+
return rest(path2, base) !== undefined;
|
|
1771
|
+
}
|
|
1772
|
+
TaPathMap2.under = under;
|
|
1773
|
+
function join(base, parts2) {
|
|
1774
|
+
if (!parts2.length) {
|
|
1775
|
+
return base;
|
|
1776
|
+
}
|
|
1777
|
+
const sep = isWindows(base) ? "\\" : "/";
|
|
1778
|
+
return `${base.replace(/[\\/]+$/, "")}${sep}${parts2.join(sep)}`;
|
|
1779
|
+
}
|
|
1780
|
+
TaPathMap2.join = join;
|
|
1781
|
+
function basename(path2) {
|
|
1782
|
+
var _a;
|
|
1783
|
+
return (_a = path2.split(/[\\/]+/).filter(Boolean).pop()) !== null && _a !== undefined ? _a : "";
|
|
1784
|
+
}
|
|
1785
|
+
TaPathMap2.basename = basename;
|
|
1786
|
+
function path(value, pairs) {
|
|
1787
|
+
for (const [from, to] of deepest(pairs)) {
|
|
1788
|
+
const found = rest(value, from);
|
|
1789
|
+
if (found) {
|
|
1790
|
+
return join(to, found);
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
return value;
|
|
1794
|
+
}
|
|
1795
|
+
TaPathMap2.path = path;
|
|
1796
|
+
function text(value, pairs) {
|
|
1797
|
+
const order = deepest(pairs);
|
|
1798
|
+
if (!order.length) {
|
|
1799
|
+
return value;
|
|
1800
|
+
}
|
|
1801
|
+
const end = String.raw`\s"'<>|*?:;,`;
|
|
1802
|
+
const pattern = new RegExp(String.raw`(^|[^\w.~-])(?:${order.map(([from]) => `(${source(from)})`).join("|")})((?:[\\/][^\\/${end}]*)*)(?=$|[\\/${end})\]}])`, "g");
|
|
1803
|
+
return value.replace(pattern, (...match) => {
|
|
1804
|
+
var _a;
|
|
1805
|
+
const before = match[1];
|
|
1806
|
+
const found = order.findIndex((_, i) => match[i + 2] !== undefined);
|
|
1807
|
+
const tail = (_a = match[order.length + 2]) !== null && _a !== undefined ? _a : "";
|
|
1808
|
+
return `${before}${join(order[found][1], tail.split(/[\\/]+/).filter(Boolean))}`;
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1811
|
+
TaPathMap2.text = text;
|
|
1812
|
+
function json(value, pairs) {
|
|
1813
|
+
const order = deepest(pairs);
|
|
1814
|
+
if (!order.length) {
|
|
1815
|
+
return value;
|
|
1816
|
+
}
|
|
1817
|
+
const one = (each) => {
|
|
1818
|
+
const whole = path(each, order);
|
|
1819
|
+
return whole !== each ? whole : text(each, order);
|
|
1820
|
+
};
|
|
1821
|
+
const walk = (each) => {
|
|
1822
|
+
if (typeof each === "string") {
|
|
1823
|
+
return one(each);
|
|
1824
|
+
}
|
|
1825
|
+
if (Array.isArray(each)) {
|
|
1826
|
+
return each.map(walk);
|
|
1827
|
+
}
|
|
1828
|
+
if (each && typeof each === "object") {
|
|
1829
|
+
return Object.fromEntries(Object.entries(each).map(([key, inner]) => [one(key), walk(inner)]));
|
|
1830
|
+
}
|
|
1831
|
+
return each;
|
|
1832
|
+
};
|
|
1833
|
+
return walk(value);
|
|
1834
|
+
}
|
|
1835
|
+
TaPathMap2.json = json;
|
|
1836
|
+
function parts(path2, windows) {
|
|
1837
|
+
return path2.split(windows ? /[\\/]+/ : /\/+/).filter(Boolean);
|
|
1838
|
+
}
|
|
1839
|
+
function deepest(pairs) {
|
|
1840
|
+
return pairs.filter(([from, to]) => from && to && from !== to && parts(from, isWindows(from)).length > 0).sort(([a], [b]) => parts(b, isWindows(b)).length - parts(a, isWindows(a)).length);
|
|
1841
|
+
}
|
|
1842
|
+
function source(base) {
|
|
1843
|
+
const windows = isWindows(base);
|
|
1844
|
+
const quote = (part) => [...part].map((char) => windows && char.toLowerCase() !== char.toUpperCase() ? `[${char.toLowerCase()}${char.toUpperCase()}]` : char.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("");
|
|
1845
|
+
const each = parts(base, windows).map(quote);
|
|
1846
|
+
if (!windows) {
|
|
1847
|
+
return `/${each.join("/+")}`;
|
|
1848
|
+
}
|
|
1849
|
+
return `${base.startsWith("\\\\") ? String.raw`\\\\` : ""}${each.join(String.raw`[\\/]+`)}`;
|
|
1850
|
+
}
|
|
1851
|
+
})(TaPathMap || (TaPathMap = {}));
|
|
1272
1852
|
// ../ta-protocol/esm/common/presence-protocol.js
|
|
1273
1853
|
var TaPresenceServer = Symbol("TaPresenceServer");
|
|
1274
1854
|
var TaMessageAuthor;
|
|
@@ -1346,98 +1926,18 @@ var TaRoomWatchUtil;
|
|
|
1346
1926
|
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
1347
1927
|
// ../ta-protocol/esm/common/settings-protocol.js
|
|
1348
1928
|
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
1349
|
-
// ../ta-protocol/esm/common/ta-
|
|
1350
|
-
var
|
|
1351
|
-
var
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
function
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
1359
|
-
const request = {
|
|
1360
|
-
name,
|
|
1361
|
-
heard: () => {
|
|
1362
|
-
heard = true;
|
|
1363
|
-
},
|
|
1364
|
-
resolve: (answer) => {
|
|
1365
|
-
answered = true;
|
|
1366
|
-
clearTimeout(timer);
|
|
1367
|
-
resolve(answer);
|
|
1368
|
-
}
|
|
1369
|
-
};
|
|
1370
|
-
events.emit(TA_HOST_EVENT, request);
|
|
1371
|
-
if (!heard && !answered) {
|
|
1372
|
-
clearTimeout(timer);
|
|
1373
|
-
resolve(undefined);
|
|
1374
|
-
}
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
TaHostUtil2.reach = reach;
|
|
1378
|
-
function marked(systemPrompt, mark) {
|
|
1379
|
-
return role(systemPrompt).includes(mark);
|
|
1380
|
-
}
|
|
1381
|
-
TaHostUtil2.marked = marked;
|
|
1382
|
-
function role(systemPrompt) {
|
|
1383
|
-
if (!systemPrompt) {
|
|
1384
|
-
return "";
|
|
1385
|
-
}
|
|
1386
|
-
const open = `<addendum>
|
|
1387
|
-
`;
|
|
1388
|
-
const start = systemPrompt.indexOf(open);
|
|
1389
|
-
const context = systemPrompt.indexOf(`<project_context>
|
|
1390
|
-
`);
|
|
1391
|
-
if (start < 0 || context >= 0 && context < start) {
|
|
1392
|
-
return "";
|
|
1393
|
-
}
|
|
1394
|
-
const end = systemPrompt.indexOf(`
|
|
1395
|
-
</addendum>`, start);
|
|
1396
|
-
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
1397
|
-
}
|
|
1398
|
-
TaHostUtil2.role = role;
|
|
1399
|
-
})(TaHostUtil || (TaHostUtil = {}));
|
|
1400
|
-
var TA_ASK_ENTRY = "ta-ask";
|
|
1401
|
-
var TaAskUtil;
|
|
1402
|
-
(function(TaAskUtil2) {
|
|
1403
|
-
const LENGTH = 120;
|
|
1404
|
-
function entry(question) {
|
|
1405
|
-
const line = question.replace(/\s+/g, " ").trim();
|
|
1406
|
-
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
1407
|
-
}
|
|
1408
|
-
TaAskUtil2.entry = entry;
|
|
1409
|
-
function asking(entries) {
|
|
1410
|
-
var _a;
|
|
1411
|
-
for (let i = entries.length - 1;i >= 0; i--) {
|
|
1412
|
-
const entry2 = entries[i];
|
|
1413
|
-
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
1414
|
-
return;
|
|
1415
|
-
}
|
|
1416
|
-
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
1417
|
-
return read(entry2);
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
return;
|
|
1421
|
-
}
|
|
1422
|
-
TaAskUtil2.asking = asking;
|
|
1423
|
-
function next(asked, entry2) {
|
|
1424
|
-
var _a;
|
|
1425
|
-
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
1426
|
-
return;
|
|
1427
|
-
}
|
|
1428
|
-
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
1429
|
-
}
|
|
1430
|
-
TaAskUtil2.next = next;
|
|
1431
|
-
function read(found) {
|
|
1432
|
-
var _a;
|
|
1433
|
-
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
1434
|
-
if (typeof question !== "string" || !question.trim()) {
|
|
1435
|
-
return;
|
|
1436
|
-
}
|
|
1437
|
-
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
1438
|
-
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
1929
|
+
// ../ta-protocol/esm/common/ta-protocol.js
|
|
1930
|
+
var TaServer = Symbol("TaServer");
|
|
1931
|
+
var TaClient = Symbol("TaClient");
|
|
1932
|
+
var TaSlashCommandUtil;
|
|
1933
|
+
(function(TaSlashCommandUtil2) {
|
|
1934
|
+
function description(command, language) {
|
|
1935
|
+
var _a, _b;
|
|
1936
|
+
const { descriptions } = command;
|
|
1937
|
+
return (_b = (_a = descriptions === null || descriptions === undefined ? undefined : descriptions[language]) !== null && _a !== undefined ? _a : descriptions === null || descriptions === undefined ? undefined : descriptions[language.split("-")[0]]) !== null && _b !== undefined ? _b : command.description;
|
|
1439
1938
|
}
|
|
1440
|
-
|
|
1939
|
+
TaSlashCommandUtil2.description = description;
|
|
1940
|
+
})(TaSlashCommandUtil || (TaSlashCommandUtil = {}));
|
|
1441
1941
|
// ../ta-protocol/esm/common/team-protocol.js
|
|
1442
1942
|
var TA_UNDECLARED = "extensions.install";
|
|
1443
1943
|
var TaPermissionUtil;
|
|
@@ -1529,6 +2029,8 @@ var TaActionUtil;
|
|
|
1529
2029
|
})(TaActionUtil || (TaActionUtil = {}));
|
|
1530
2030
|
// ../ta-protocol/esm/common/usage-protocol.js
|
|
1531
2031
|
var TaUsageServer = Symbol("TaUsageServer");
|
|
2032
|
+
// ../ta-protocol/esm/common/voice-protocol.js
|
|
2033
|
+
var TaVoiceServer = Symbol("TaVoiceServer");
|
|
1532
2034
|
// ../ta-protocol/esm/common/workspace-protocol.js
|
|
1533
2035
|
var TaWorkspaceServer = Symbol("TaWorkspaceServer");
|
|
1534
2036
|
var TaTerminalServer = Symbol("TaTerminalServer");
|
|
@@ -1562,7 +2064,7 @@ function useBusy(ui) {
|
|
|
1562
2064
|
|
|
1563
2065
|
// web-src/import-dialog.tsx
|
|
1564
2066
|
function ImportDialog({ pi, actions, onClose }) {
|
|
1565
|
-
const
|
|
2067
|
+
const words2 = actions.words;
|
|
1566
2068
|
const { Dialog, icons } = pi.ui;
|
|
1567
2069
|
const Upload = icons.Upload ?? icons.Download;
|
|
1568
2070
|
const input = React.useRef(null);
|
|
@@ -1581,12 +2083,12 @@ function ImportDialog({ pi, actions, onClose }) {
|
|
|
1581
2083
|
};
|
|
1582
2084
|
const take = (file) => file && void run(() => actions.importFile(file));
|
|
1583
2085
|
return /* @__PURE__ */ React.createElement(Dialog, {
|
|
1584
|
-
title:
|
|
2086
|
+
title: words2.importTitle,
|
|
1585
2087
|
onClose
|
|
1586
2088
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
1587
2089
|
className: "tax-dialog"
|
|
1588
2090
|
}, /* @__PURE__ */ React.createElement("section", {
|
|
1589
|
-
"aria-label":
|
|
2091
|
+
"aria-label": words2.importTitle,
|
|
1590
2092
|
className: `tax-drop${over ? " tax-over" : ""}`,
|
|
1591
2093
|
onDragOver: (event) => {
|
|
1592
2094
|
event.preventDefault();
|
|
@@ -1600,11 +2102,11 @@ function ImportDialog({ pi, actions, onClose }) {
|
|
|
1600
2102
|
}
|
|
1601
2103
|
}, Upload && /* @__PURE__ */ React.createElement(Upload, {
|
|
1602
2104
|
size: 22
|
|
1603
|
-
}), /* @__PURE__ */ React.createElement("div", null, busy ?
|
|
2105
|
+
}), /* @__PURE__ */ React.createElement("div", null, busy ? words2.working : /* @__PURE__ */ React.createElement(React.Fragment, null, words2.dropHere, " ", /* @__PURE__ */ React.createElement("button", {
|
|
1604
2106
|
type: "button",
|
|
1605
2107
|
className: "tax-link",
|
|
1606
2108
|
onClick: () => input.current?.click()
|
|
1607
|
-
},
|
|
2109
|
+
}, words2.chooseFile))), /* @__PURE__ */ React.createElement("input", {
|
|
1608
2110
|
ref: input,
|
|
1609
2111
|
type: "file",
|
|
1610
2112
|
accept: ".tgz,.gz,application/gzip",
|
|
@@ -1615,7 +2117,7 @@ function ImportDialog({ pi, actions, onClose }) {
|
|
|
1615
2117
|
}
|
|
1616
2118
|
})), /* @__PURE__ */ React.createElement("div", {
|
|
1617
2119
|
className: "tax-or"
|
|
1618
|
-
},
|
|
2120
|
+
}, words2.orSource), /* @__PURE__ */ React.createElement("form", {
|
|
1619
2121
|
className: "tax-source",
|
|
1620
2122
|
onSubmit: (event) => {
|
|
1621
2123
|
event.preventDefault();
|
|
@@ -1623,16 +2125,16 @@ function ImportDialog({ pi, actions, onClose }) {
|
|
|
1623
2125
|
}
|
|
1624
2126
|
}, /* @__PURE__ */ React.createElement("input", {
|
|
1625
2127
|
value: source,
|
|
1626
|
-
placeholder:
|
|
2128
|
+
placeholder: words2.sourcePlaceholder,
|
|
1627
2129
|
spellCheck: false,
|
|
1628
2130
|
onChange: (event) => setSource(event.target.value)
|
|
1629
2131
|
}), /* @__PURE__ */ React.createElement("button", {
|
|
1630
2132
|
type: "submit",
|
|
1631
2133
|
className: "tax-button",
|
|
1632
2134
|
disabled: busy || !source.trim()
|
|
1633
|
-
}, busy ?
|
|
2135
|
+
}, busy ? words2.working : words2.install)), /* @__PURE__ */ React.createElement("div", {
|
|
1634
2136
|
className: "tax-note"
|
|
1635
|
-
},
|
|
2137
|
+
}, words2.trust)));
|
|
1636
2138
|
}
|
|
1637
2139
|
|
|
1638
2140
|
// web-src/market-util.ts
|
|
@@ -1713,8 +2215,8 @@ var MarketUtil;
|
|
|
1713
2215
|
}
|
|
1714
2216
|
MarketUtil.shortName = shortName;
|
|
1715
2217
|
function monogram(name) {
|
|
1716
|
-
const
|
|
1717
|
-
const letters = (
|
|
2218
|
+
const words2 = shortName(name).split(/[-_.\s]+/).filter(Boolean);
|
|
2219
|
+
const letters = (words2.length > 1 ? words2[0][0] + words2[1][0] : (words2[0] ?? name).slice(0, 2)).toUpperCase();
|
|
1718
2220
|
let hash = 0;
|
|
1719
2221
|
for (let i = 0;i < name.length; i++) {
|
|
1720
2222
|
hash = hash * 31 + name.charCodeAt(i) | 0;
|
|
@@ -1820,7 +2322,7 @@ function PackageName({ name }) {
|
|
|
1820
2322
|
}
|
|
1821
2323
|
function InstallButton({ context, name, large }) {
|
|
1822
2324
|
const { pi, actions } = context;
|
|
1823
|
-
const
|
|
2325
|
+
const words2 = actions.words;
|
|
1824
2326
|
const status = useMarketStatus(context, name);
|
|
1825
2327
|
const size = large ? " tax-install-large" : "";
|
|
1826
2328
|
if (status.kind === "installing") {
|
|
@@ -1832,7 +2334,7 @@ function InstallButton({ context, name, large }) {
|
|
|
1832
2334
|
className: "tax-spin"
|
|
1833
2335
|
}, /* @__PURE__ */ React.createElement(Loader, {
|
|
1834
2336
|
size: large ? 15 : 13
|
|
1835
|
-
})),
|
|
2337
|
+
})), words2.installing);
|
|
1836
2338
|
}
|
|
1837
2339
|
if (status.kind !== "none") {
|
|
1838
2340
|
const Check = icon(pi, "Check");
|
|
@@ -1840,7 +2342,7 @@ function InstallButton({ context, name, large }) {
|
|
|
1840
2342
|
className: `tax-install tax-install-done${size}`
|
|
1841
2343
|
}, status.kind === "installed" && /* @__PURE__ */ React.createElement(Check, {
|
|
1842
2344
|
size: large ? 15 : 13
|
|
1843
|
-
}), status.kind === "installed" ?
|
|
2345
|
+
}), status.kind === "installed" ? words2.installedTag : words2.builtinTag);
|
|
1844
2346
|
}
|
|
1845
2347
|
return /* @__PURE__ */ React.createElement("button", {
|
|
1846
2348
|
type: "button",
|
|
@@ -1849,17 +2351,19 @@ function InstallButton({ context, name, large }) {
|
|
|
1849
2351
|
event.stopPropagation();
|
|
1850
2352
|
actions.installFromMarket(name);
|
|
1851
2353
|
}
|
|
1852
|
-
},
|
|
2354
|
+
}, words2.install);
|
|
1853
2355
|
}
|
|
1854
2356
|
|
|
1855
2357
|
// web-src/market-detail.tsx
|
|
2358
|
+
var noBack = (_open, _close) => false;
|
|
1856
2359
|
function MarketDetailView({ context, name, onBack }) {
|
|
1857
2360
|
const { pi, market, actions } = context;
|
|
1858
|
-
const
|
|
2361
|
+
const words2 = actions.words;
|
|
1859
2362
|
const [detail, setDetail] = React.useState();
|
|
1860
2363
|
const [error, setError] = React.useState();
|
|
1861
2364
|
const [attempt, setAttempt] = React.useState(0);
|
|
1862
2365
|
const [opening, setOpening] = React.useState(false);
|
|
2366
|
+
(pi.ui.useBackLayer ?? noBack)(true, onBack);
|
|
1863
2367
|
React.useEffect(() => {
|
|
1864
2368
|
let live = true;
|
|
1865
2369
|
setError(undefined);
|
|
@@ -1890,18 +2394,18 @@ function MarketDetailView({ context, name, onBack }) {
|
|
|
1890
2394
|
const facts = [
|
|
1891
2395
|
summary?.publisher,
|
|
1892
2396
|
summary?.version && `v${summary.version}`,
|
|
1893
|
-
summary?.downloads ? ExtensionWords.fill(
|
|
2397
|
+
summary?.downloads ? ExtensionWords.fill(words2.perMonth, { count: MarketUtil.compact(summary.downloads) }) : undefined,
|
|
1894
2398
|
detail?.license,
|
|
1895
2399
|
ago
|
|
1896
2400
|
].filter((fact) => !!fact);
|
|
1897
2401
|
const links = [
|
|
1898
2402
|
{ key: "npm", label: "npm", href: summary?.links.npm ?? `https://www.npmjs.com/package/${name}` },
|
|
1899
|
-
{ key: "source", label:
|
|
1900
|
-
{ key: "home", label:
|
|
2403
|
+
{ key: "source", label: words2.source, href: summary?.links.repository },
|
|
2404
|
+
{ key: "home", label: words2.homepage, href: summary?.links.homepage !== summary?.links.repository ? summary?.links.homepage : undefined }
|
|
1901
2405
|
].filter((link) => !!link.href && /^https?:\/\//.test(link.href));
|
|
1902
2406
|
const kinds = detail?.resources.length ? detail.resources : summary?.kinds ?? [];
|
|
1903
2407
|
const hasWeb = kinds.includes("web");
|
|
1904
|
-
const tags = ((detail?.resources.length) ? detail.resources : summary?.kinds ?? []).map((type) => type === "web" ?
|
|
2408
|
+
const tags = ((detail?.resources.length) ? detail.resources : summary?.kinds ?? []).map((type) => type === "web" ? words2.kinds.web : words2.marketKinds[type]);
|
|
1905
2409
|
return /* @__PURE__ */ React.createElement("article", {
|
|
1906
2410
|
className: "tax-detail",
|
|
1907
2411
|
"aria-label": name
|
|
@@ -1911,7 +2415,7 @@ function MarketDetailView({ context, name, onBack }) {
|
|
|
1911
2415
|
onClick: onBack
|
|
1912
2416
|
}, /* @__PURE__ */ React.createElement(ArrowLeft, {
|
|
1913
2417
|
size: 15
|
|
1914
|
-
}), " ",
|
|
2418
|
+
}), " ", words2.back), /* @__PURE__ */ React.createElement("header", {
|
|
1915
2419
|
className: "tax-detail-head"
|
|
1916
2420
|
}, /* @__PURE__ */ React.createElement(PackageFace, {
|
|
1917
2421
|
name,
|
|
@@ -1939,25 +2443,25 @@ function MarketDetailView({ context, name, onBack }) {
|
|
|
1939
2443
|
}), status.kind === "none" && hasWeb && /* @__PURE__ */ React.createElement("button", {
|
|
1940
2444
|
type: "button",
|
|
1941
2445
|
className: "tax-button tax-button-quiet",
|
|
1942
|
-
title:
|
|
2446
|
+
title: words2.openNowHint,
|
|
1943
2447
|
disabled: opening,
|
|
1944
2448
|
onClick: () => {
|
|
1945
2449
|
setOpening(true);
|
|
1946
2450
|
actions.openFromMarket(name).finally(() => setOpening(false));
|
|
1947
2451
|
}
|
|
1948
|
-
}, opening ?
|
|
2452
|
+
}, opening ? words2.openingNow : words2.openNow), status.kind === "installed" && /* @__PURE__ */ React.createElement("button", {
|
|
1949
2453
|
type: "button",
|
|
1950
2454
|
className: "tax-button tax-button-quiet",
|
|
1951
2455
|
onClick: () => void actions.remove(status.pkg)
|
|
1952
2456
|
}, /* @__PURE__ */ React.createElement(Trash, {
|
|
1953
2457
|
size: 14
|
|
1954
|
-
}), " ",
|
|
2458
|
+
}), " ", words2.remove), /* @__PURE__ */ React.createElement("button", {
|
|
1955
2459
|
type: "button",
|
|
1956
2460
|
className: "tax-button tax-button-quiet",
|
|
1957
2461
|
onClick: () => pi.ui.shareExtension({ title: name, source: `npm:${name}` })
|
|
1958
2462
|
}, /* @__PURE__ */ React.createElement(QrCode, {
|
|
1959
2463
|
size: 14
|
|
1960
|
-
}), " ",
|
|
2464
|
+
}), " ", words2.share), links.map((link) => /* @__PURE__ */ React.createElement("a", {
|
|
1961
2465
|
key: link.key,
|
|
1962
2466
|
className: "tax-button tax-button-quiet",
|
|
1963
2467
|
href: link.href,
|
|
@@ -1979,21 +2483,21 @@ function MarketDetailView({ context, name, onBack }) {
|
|
|
1979
2483
|
loading: "lazy"
|
|
1980
2484
|
}) : null, /* @__PURE__ */ React.createElement("section", {
|
|
1981
2485
|
className: "tax-readme",
|
|
1982
|
-
"aria-label":
|
|
2486
|
+
"aria-label": words2.readmeTitle
|
|
1983
2487
|
}, error ? /* @__PURE__ */ React.createElement("div", {
|
|
1984
2488
|
className: "tax-empty tax-market-error"
|
|
1985
2489
|
}, /* @__PURE__ */ React.createElement("span", null, error), /* @__PURE__ */ React.createElement("button", {
|
|
1986
2490
|
type: "button",
|
|
1987
2491
|
className: "tax-button",
|
|
1988
2492
|
onClick: () => setAttempt(attempt + 1)
|
|
1989
|
-
},
|
|
2493
|
+
}, words2.retry)) : !detail ? /* @__PURE__ */ React.createElement("div", {
|
|
1990
2494
|
className: "tax-readme-loading",
|
|
1991
2495
|
"aria-busy": "true"
|
|
1992
2496
|
}, /* @__PURE__ */ React.createElement("span", null), /* @__PURE__ */ React.createElement("span", null), /* @__PURE__ */ React.createElement("span", null)) : detail.readme ? /* @__PURE__ */ React.createElement(Markdown, {
|
|
1993
2497
|
text: detail.readme
|
|
1994
2498
|
}) : /* @__PURE__ */ React.createElement("div", {
|
|
1995
2499
|
className: "tax-note"
|
|
1996
|
-
},
|
|
2500
|
+
}, words2.noReadme)));
|
|
1997
2501
|
}
|
|
1998
2502
|
|
|
1999
2503
|
// web-src/market-view.tsx
|
|
@@ -2032,7 +2536,7 @@ function MarketView({ context }) {
|
|
|
2032
2536
|
}
|
|
2033
2537
|
function MarketList({ context, onOpen }) {
|
|
2034
2538
|
const { pi, market, actions } = context;
|
|
2035
|
-
const
|
|
2539
|
+
const words2 = actions.words;
|
|
2036
2540
|
const state = React.useSyncExternalStore((listener) => market.subscribe(listener), () => market.state);
|
|
2037
2541
|
const [text, setText] = React.useState(state.query);
|
|
2038
2542
|
const input = React.useRef(null);
|
|
@@ -2063,8 +2567,8 @@ function MarketList({ context, onOpen }) {
|
|
|
2063
2567
|
ref: input,
|
|
2064
2568
|
type: "search",
|
|
2065
2569
|
value: text,
|
|
2066
|
-
placeholder:
|
|
2067
|
-
"aria-label":
|
|
2570
|
+
placeholder: words2.marketSearch,
|
|
2571
|
+
"aria-label": words2.marketSearch,
|
|
2068
2572
|
spellCheck: false,
|
|
2069
2573
|
onChange: (event) => setText(event.target.value),
|
|
2070
2574
|
onKeyDown: (event) => {
|
|
@@ -2076,8 +2580,8 @@ function MarketList({ context, onOpen }) {
|
|
|
2076
2580
|
}), text && /* @__PURE__ */ React.createElement("button", {
|
|
2077
2581
|
type: "button",
|
|
2078
2582
|
className: "tax-search-clear",
|
|
2079
|
-
"aria-label":
|
|
2080
|
-
title:
|
|
2583
|
+
"aria-label": words2.marketClear,
|
|
2584
|
+
title: words2.marketClear,
|
|
2081
2585
|
onClick: () => {
|
|
2082
2586
|
pick("");
|
|
2083
2587
|
input.current?.focus();
|
|
@@ -2086,7 +2590,7 @@ function MarketList({ context, onOpen }) {
|
|
|
2086
2590
|
size: 14
|
|
2087
2591
|
}))), /* @__PURE__ */ React.createElement("div", {
|
|
2088
2592
|
className: "tax-topics"
|
|
2089
|
-
},
|
|
2593
|
+
}, words2.topics.map((topic) => /* @__PURE__ */ React.createElement("button", {
|
|
2090
2594
|
key: topic.query,
|
|
2091
2595
|
type: "button",
|
|
2092
2596
|
className: `tax-topic${query === topic.query ? " tax-active" : ""}`,
|
|
@@ -2094,17 +2598,17 @@ function MarketList({ context, onOpen }) {
|
|
|
2094
2598
|
onClick: () => pick(query === topic.query ? "" : topic.query)
|
|
2095
2599
|
}, topic.label))), /* @__PURE__ */ React.createElement("div", {
|
|
2096
2600
|
className: "tax-section-head"
|
|
2097
|
-
}, /* @__PURE__ */ React.createElement("h2", null, query ?
|
|
2601
|
+
}, /* @__PURE__ */ React.createElement("h2", null, query ? words2.marketResults : words2.marketPopular, loading && packages && /* @__PURE__ */ React.createElement("span", {
|
|
2098
2602
|
className: "tax-spin tax-head-spin"
|
|
2099
2603
|
}, React.createElement(icon(pi, "LoaderCircle"), { size: 13 }))), count !== undefined && !error && /* @__PURE__ */ React.createElement("span", {
|
|
2100
2604
|
className: "tax-count-note"
|
|
2101
|
-
}, ExtensionWords.fill(
|
|
2605
|
+
}, ExtensionWords.fill(words2.marketCount, { count: count.toLocaleString(pi.ui.language) }))), error ? /* @__PURE__ */ React.createElement("div", {
|
|
2102
2606
|
className: "tax-empty tax-market-error"
|
|
2103
|
-
}, /* @__PURE__ */ React.createElement("strong", null,
|
|
2607
|
+
}, /* @__PURE__ */ React.createElement("strong", null, words2.marketError), /* @__PURE__ */ React.createElement("span", null, error), /* @__PURE__ */ React.createElement("button", {
|
|
2104
2608
|
type: "button",
|
|
2105
2609
|
className: "tax-button",
|
|
2106
2610
|
onClick: () => void market.search(text)
|
|
2107
|
-
},
|
|
2611
|
+
}, words2.retry)) : first ? /* @__PURE__ */ React.createElement("div", {
|
|
2108
2612
|
className: "tax-grid",
|
|
2109
2613
|
"aria-busy": "true"
|
|
2110
2614
|
}, Array.from({ length: 6 }, (_, index) => /* @__PURE__ */ React.createElement("div", {
|
|
@@ -2112,7 +2616,7 @@ function MarketList({ context, onOpen }) {
|
|
|
2112
2616
|
className: "tax-card tax-skeleton"
|
|
2113
2617
|
}))) : packages?.length === 0 ? /* @__PURE__ */ React.createElement("div", {
|
|
2114
2618
|
className: "tax-empty"
|
|
2115
|
-
}, ExtensionWords.fill(
|
|
2619
|
+
}, ExtensionWords.fill(words2.marketEmpty, { query })) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
2116
2620
|
className: "tax-grid"
|
|
2117
2621
|
}, packages?.map((pkg) => /* @__PURE__ */ React.createElement(MarketCard, {
|
|
2118
2622
|
key: pkg.name,
|
|
@@ -2123,11 +2627,11 @@ function MarketList({ context, onOpen }) {
|
|
|
2123
2627
|
context
|
|
2124
2628
|
})), /* @__PURE__ */ React.createElement("div", {
|
|
2125
2629
|
className: "tax-note tax-market-note"
|
|
2126
|
-
},
|
|
2630
|
+
}, words2.marketNote));
|
|
2127
2631
|
}
|
|
2128
2632
|
function MoreSentinel({ context }) {
|
|
2129
2633
|
const { market, actions } = context;
|
|
2130
|
-
const
|
|
2634
|
+
const words2 = actions.words;
|
|
2131
2635
|
const state = React.useSyncExternalStore((listener) => market.subscribe(listener), () => market.state);
|
|
2132
2636
|
const ref = React.useRef(null);
|
|
2133
2637
|
const more = !!state.packages && state.next !== undefined;
|
|
@@ -2146,11 +2650,11 @@ function MoreSentinel({ context }) {
|
|
|
2146
2650
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2147
2651
|
ref,
|
|
2148
2652
|
className: "tax-more"
|
|
2149
|
-
}, more ?
|
|
2653
|
+
}, more ? words2.loadingMore : words2.allShown);
|
|
2150
2654
|
}
|
|
2151
2655
|
function MarketCard({ context, pkg, onOpen }) {
|
|
2152
2656
|
const { pi, actions } = context;
|
|
2153
|
-
const
|
|
2657
|
+
const words2 = actions.words;
|
|
2154
2658
|
const Down = icon(pi, "ArrowDown");
|
|
2155
2659
|
const ago = MarketUtil.ago(pkg.date, pi.ui.language);
|
|
2156
2660
|
return /* @__PURE__ */ React.createElement("div", {
|
|
@@ -2181,11 +2685,11 @@ function MarketCard({ context, pkg, onOpen }) {
|
|
|
2181
2685
|
className: "tax-card-meta"
|
|
2182
2686
|
}, pkg.publisher && /* @__PURE__ */ React.createElement("span", {
|
|
2183
2687
|
className: "tax-ellipsis"
|
|
2184
|
-
}, ExtensionWords.fill(
|
|
2688
|
+
}, ExtensionWords.fill(words2.by, { name: pkg.publisher })), pkg.downloads !== undefined && pkg.downloads > 0 && /* @__PURE__ */ React.createElement("span", {
|
|
2185
2689
|
className: "tax-downloads"
|
|
2186
2690
|
}, /* @__PURE__ */ React.createElement(Down, {
|
|
2187
2691
|
size: 11
|
|
2188
|
-
}), ExtensionWords.fill(
|
|
2692
|
+
}), ExtensionWords.fill(words2.perMonth, { count: MarketUtil.compact(pkg.downloads) })))), /* @__PURE__ */ React.createElement(InstallButton, {
|
|
2189
2693
|
context,
|
|
2190
2694
|
name: pkg.name
|
|
2191
2695
|
})), /* @__PURE__ */ React.createElement("p", {
|
|
@@ -2195,7 +2699,7 @@ function MarketCard({ context, pkg, onOpen }) {
|
|
|
2195
2699
|
}, pkg.kinds.map((kind) => /* @__PURE__ */ React.createElement("span", {
|
|
2196
2700
|
key: kind,
|
|
2197
2701
|
className: "tax-tag"
|
|
2198
|
-
},
|
|
2702
|
+
}, words2.marketKinds[kind])), ago && /* @__PURE__ */ React.createElement("span", {
|
|
2199
2703
|
className: "tax-card-time"
|
|
2200
2704
|
}, ago)));
|
|
2201
2705
|
}
|
|
@@ -2385,7 +2889,7 @@ function KindPicture({ pi, kind }) {
|
|
|
2385
2889
|
// web-src/page.tsx
|
|
2386
2890
|
function ExtensionsPage({ context }) {
|
|
2387
2891
|
const { pi, store, actions, importing } = context;
|
|
2388
|
-
const
|
|
2892
|
+
const words2 = actions.words;
|
|
2389
2893
|
const tab = context.tab.use();
|
|
2390
2894
|
const dialog = importing.use();
|
|
2391
2895
|
const [dragging, setDragging] = React.useState(false);
|
|
@@ -2393,12 +2897,12 @@ function ExtensionsPage({ context }) {
|
|
|
2393
2897
|
store.load();
|
|
2394
2898
|
}, [store]);
|
|
2395
2899
|
const tabs = [
|
|
2396
|
-
{ key: "mine", label:
|
|
2397
|
-
{ key: "market", label:
|
|
2900
|
+
{ key: "mine", label: words2.tabMine, icon: "Puzzle" },
|
|
2901
|
+
{ key: "market", label: words2.tabMarket, icon: "Store" }
|
|
2398
2902
|
];
|
|
2399
2903
|
const files = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
2400
2904
|
return /* @__PURE__ */ React.createElement("section", {
|
|
2401
|
-
"aria-label":
|
|
2905
|
+
"aria-label": words2.title,
|
|
2402
2906
|
className: "tax-page",
|
|
2403
2907
|
onDragOver: (event) => {
|
|
2404
2908
|
if (files(event) && !dialog) {
|
|
@@ -2426,7 +2930,7 @@ function ExtensionsPage({ context }) {
|
|
|
2426
2930
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2427
2931
|
className: "tax-tabs",
|
|
2428
2932
|
role: "tablist",
|
|
2429
|
-
"aria-label":
|
|
2933
|
+
"aria-label": words2.title
|
|
2430
2934
|
}, tabs.map((item) => {
|
|
2431
2935
|
const TabIcon = icon(pi, item.icon, "PackageOpen");
|
|
2432
2936
|
return /* @__PURE__ */ React.createElement("button", {
|
|
@@ -2448,7 +2952,7 @@ function ExtensionsPage({ context }) {
|
|
|
2448
2952
|
context
|
|
2449
2953
|
})), dragging && /* @__PURE__ */ React.createElement("div", {
|
|
2450
2954
|
className: "tax-drop-overlay"
|
|
2451
|
-
},
|
|
2955
|
+
}, words2.dropToImport), dialog && /* @__PURE__ */ React.createElement(ImportDialog, {
|
|
2452
2956
|
pi,
|
|
2453
2957
|
actions,
|
|
2454
2958
|
onClose: () => importing.set(false)
|
|
@@ -2456,7 +2960,7 @@ function ExtensionsPage({ context }) {
|
|
|
2456
2960
|
}
|
|
2457
2961
|
function MineView({ context }) {
|
|
2458
2962
|
const { pi, store, actions, importing } = context;
|
|
2459
|
-
const
|
|
2963
|
+
const words2 = actions.words;
|
|
2460
2964
|
const { packages, removing } = React.useSyncExternalStore((listener) => store.subscribe(listener), () => store.state);
|
|
2461
2965
|
const [starting, setStarting] = React.useState(false);
|
|
2462
2966
|
const groups = ExtensionsUtil.group(packages ?? []);
|
|
@@ -2478,16 +2982,17 @@ function MineView({ context }) {
|
|
|
2478
2982
|
className: "tax-hero"
|
|
2479
2983
|
}, /* @__PURE__ */ React.createElement("h1", null, /* @__PURE__ */ React.createElement(Sparkles, {
|
|
2480
2984
|
size: 20
|
|
2481
|
-
}), " ",
|
|
2482
|
-
placeholder:
|
|
2985
|
+
}), " ", words2.heroTitle), /* @__PURE__ */ React.createElement("p", null, words2.heroText), /* @__PURE__ */ React.createElement(Composer, {
|
|
2986
|
+
placeholder: words2.placeholder,
|
|
2483
2987
|
onSend: make,
|
|
2484
|
-
commands: true
|
|
2988
|
+
commands: true,
|
|
2989
|
+
draft: "make"
|
|
2485
2990
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
2486
2991
|
className: "tax-kinds"
|
|
2487
2992
|
}, /* @__PURE__ */ React.createElement(PictureCards, {
|
|
2488
2993
|
columns: 4,
|
|
2489
2994
|
compactColumns: 2,
|
|
2490
|
-
cards:
|
|
2995
|
+
cards: words2.examples.map((example) => ({
|
|
2491
2996
|
key: example.kind,
|
|
2492
2997
|
picture: /* @__PURE__ */ React.createElement(KindPicture, {
|
|
2493
2998
|
pi,
|
|
@@ -2502,7 +3007,7 @@ function MineView({ context }) {
|
|
|
2502
3007
|
className: "tax-section"
|
|
2503
3008
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2504
3009
|
className: "tax-section-head"
|
|
2505
|
-
}, /* @__PURE__ */ React.createElement("h2", null,
|
|
3010
|
+
}, /* @__PURE__ */ React.createElement("h2", null, words2.mine, groups.mine.length > 0 && /* @__PURE__ */ React.createElement("span", {
|
|
2506
3011
|
className: "tax-count"
|
|
2507
3012
|
}, groups.mine.length)), /* @__PURE__ */ React.createElement("button", {
|
|
2508
3013
|
type: "button",
|
|
@@ -2510,19 +3015,19 @@ function MineView({ context }) {
|
|
|
2510
3015
|
onClick: () => importing.set(true)
|
|
2511
3016
|
}, /* @__PURE__ */ React.createElement(Upload, {
|
|
2512
3017
|
size: 14
|
|
2513
|
-
}), " ",
|
|
3018
|
+
}), " ", words2.import)), packages === undefined ? /* @__PURE__ */ React.createElement("div", {
|
|
2514
3019
|
className: "tax-empty"
|
|
2515
|
-
},
|
|
3020
|
+
}, words2.loading) : groups.mine.length === 0 ? /* @__PURE__ */ React.createElement(Empty, {
|
|
2516
3021
|
compact: true,
|
|
2517
|
-
title:
|
|
2518
|
-
hint:
|
|
3022
|
+
title: words2.mineEmpty,
|
|
3023
|
+
hint: words2.mineEmptyHint
|
|
2519
3024
|
}, /* @__PURE__ */ React.createElement("button", {
|
|
2520
3025
|
type: "button",
|
|
2521
3026
|
className: "tax-button",
|
|
2522
3027
|
onClick: () => context.tab.set("market")
|
|
2523
3028
|
}, /* @__PURE__ */ React.createElement(Store, {
|
|
2524
3029
|
size: 14
|
|
2525
|
-
}), " ",
|
|
3030
|
+
}), " ", words2.browseMarket)) : /* @__PURE__ */ React.createElement("div", {
|
|
2526
3031
|
className: "tax-list"
|
|
2527
3032
|
}, groups.mine.map((pkg) => /* @__PURE__ */ React.createElement(PackageRow, {
|
|
2528
3033
|
key: pkg.id,
|
|
@@ -2534,7 +3039,7 @@ function MineView({ context }) {
|
|
|
2534
3039
|
className: "tax-section"
|
|
2535
3040
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2536
3041
|
className: "tax-section-head"
|
|
2537
|
-
}, /* @__PURE__ */ React.createElement("h2", null,
|
|
3042
|
+
}, /* @__PURE__ */ React.createElement("h2", null, words2.installed, /* @__PURE__ */ React.createElement("span", {
|
|
2538
3043
|
className: "tax-count"
|
|
2539
3044
|
}, groups.installed.length))), /* @__PURE__ */ React.createElement("div", {
|
|
2540
3045
|
className: "tax-list"
|
|
@@ -2548,13 +3053,13 @@ function MineView({ context }) {
|
|
|
2548
3053
|
className: "tax-section"
|
|
2549
3054
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2550
3055
|
className: "tax-section-head"
|
|
2551
|
-
}, /* @__PURE__ */ React.createElement("h2", null,
|
|
3056
|
+
}, /* @__PURE__ */ React.createElement("h2", null, words2.shareTitle)), /* @__PURE__ */ React.createElement(ShareSteps, {
|
|
2552
3057
|
pi,
|
|
2553
3058
|
actions
|
|
2554
3059
|
})));
|
|
2555
3060
|
}
|
|
2556
3061
|
function ShareSteps({ pi, actions }) {
|
|
2557
|
-
const
|
|
3062
|
+
const words2 = actions.words;
|
|
2558
3063
|
const steps = [icon(pi, "Download"), icon(pi, "FileArchive", "File"), icon(pi, "Upload")];
|
|
2559
3064
|
const Arrow = icon(pi, "ArrowRight");
|
|
2560
3065
|
return /* @__PURE__ */ React.createElement("div", {
|
|
@@ -2562,7 +3067,7 @@ function ShareSteps({ pi, actions }) {
|
|
|
2562
3067
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2563
3068
|
className: "tax-steps"
|
|
2564
3069
|
}, steps.map((Step, index) => /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
2565
|
-
key:
|
|
3070
|
+
key: words2.shareSteps[index]
|
|
2566
3071
|
}, index > 0 && /* @__PURE__ */ React.createElement("span", {
|
|
2567
3072
|
className: "tax-step-arrow"
|
|
2568
3073
|
}, /* @__PURE__ */ React.createElement(Arrow, {
|
|
@@ -2573,12 +3078,12 @@ function ShareSteps({ pi, actions }) {
|
|
|
2573
3078
|
className: "tax-step-icon"
|
|
2574
3079
|
}, /* @__PURE__ */ React.createElement(Step, {
|
|
2575
3080
|
size: 20
|
|
2576
|
-
})), /* @__PURE__ */ React.createElement("span", null,
|
|
3081
|
+
})), /* @__PURE__ */ React.createElement("span", null, words2.shareSteps[index]))))), /* @__PURE__ */ React.createElement("div", {
|
|
2577
3082
|
className: "tax-note"
|
|
2578
|
-
},
|
|
3083
|
+
}, words2.shareMore));
|
|
2579
3084
|
}
|
|
2580
3085
|
function PackageRow({ pi, actions, pkg, removing }) {
|
|
2581
|
-
const
|
|
3086
|
+
const words2 = actions.words;
|
|
2582
3087
|
const [switching, run] = useBusy(pi.ui);
|
|
2583
3088
|
const { touch, handheld } = pi.ui.useDevice();
|
|
2584
3089
|
const [menu, openMenu] = pi.ui.useContextMenu();
|
|
@@ -2587,17 +3092,17 @@ function PackageRow({ pi, actions, pkg, removing }) {
|
|
|
2587
3092
|
const More = icon(pi, "Ellipsis");
|
|
2588
3093
|
const title = TaPackageTextUtil.pick(pkg.title, pi.ui.language) ?? pkg.name;
|
|
2589
3094
|
const summary = TaPackageTextUtil.pick(pkg.summary, pi.ui.language) ?? pkg.description;
|
|
2590
|
-
const tags = [...pkg.resources.map((type) =>
|
|
3095
|
+
const tags = [...pkg.resources.map((type) => words2.kinds[type]), ...pkg.scope === "project" ? [words2.project] : []];
|
|
2591
3096
|
const share = () => pi.ui.shareExtension({ title, source: mine ? undefined : pkg.source, packageId: pkg.id });
|
|
2592
|
-
const remove = { key: "remove", label:
|
|
3097
|
+
const remove = { key: "remove", label: words2.remove, icon: "Trash2", danger: true, run: () => actions.remove(pkg) };
|
|
2593
3098
|
const buttons = mine ? [
|
|
2594
|
-
{ key: "change", label:
|
|
2595
|
-
{ key: "export", label:
|
|
2596
|
-
{ key: "share", label:
|
|
3099
|
+
{ key: "change", label: words2.change, icon: "Pencil", run: () => actions.change(pkg) },
|
|
3100
|
+
{ key: "export", label: words2.export, icon: "Download", run: () => actions.exportPackage(pkg) },
|
|
3101
|
+
{ key: "share", label: words2.share, icon: "QrCode", run: async () => share() },
|
|
2597
3102
|
remove
|
|
2598
3103
|
] : [
|
|
2599
|
-
{ key: "copy", label:
|
|
2600
|
-
{ key: "share", label:
|
|
3104
|
+
{ key: "copy", label: words2.copySource, icon: "Copy", run: () => actions.copySource(pkg) },
|
|
3105
|
+
{ key: "share", label: words2.share, icon: "QrCode", run: async () => share() },
|
|
2601
3106
|
remove
|
|
2602
3107
|
];
|
|
2603
3108
|
const item = (button) => ({
|
|
@@ -2616,7 +3121,7 @@ function PackageRow({ pi, actions, pkg, removing }) {
|
|
|
2616
3121
|
const SwipeRow = pi.ui.SwipeRow;
|
|
2617
3122
|
return /* @__PURE__ */ React.createElement(SwipeRow, {
|
|
2618
3123
|
className: "tax-item",
|
|
2619
|
-
actions: [{ key: "remove", label:
|
|
3124
|
+
actions: [{ key: "remove", label: words2.remove, danger: true, run: () => void remove.run() }]
|
|
2620
3125
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2621
3126
|
className: `tax-row${pkg.enabled ? "" : " tax-off"}${removing ? " ta-pending" : ""}`,
|
|
2622
3127
|
"aria-busy": removing || undefined,
|
|
@@ -2640,8 +3145,8 @@ function PackageRow({ pi, actions, pkg, removing }) {
|
|
|
2640
3145
|
}, description))), touch ? /* @__PURE__ */ React.createElement("button", {
|
|
2641
3146
|
type: "button",
|
|
2642
3147
|
className: "tax-action tax-more",
|
|
2643
|
-
title:
|
|
2644
|
-
"aria-label":
|
|
3148
|
+
title: words2.more,
|
|
3149
|
+
"aria-label": words2.more,
|
|
2645
3150
|
"aria-haspopup": "menu",
|
|
2646
3151
|
onClick: (event) => openMenu(event, items)
|
|
2647
3152
|
}, /* @__PURE__ */ React.createElement(More, {
|
|
@@ -2664,7 +3169,7 @@ function PackageRow({ pi, actions, pkg, removing }) {
|
|
|
2664
3169
|
type: "checkbox",
|
|
2665
3170
|
role: "switch",
|
|
2666
3171
|
className: `ta-switch tax-switch${switching || removing ? " ta-busy" : ""}`,
|
|
2667
|
-
"aria-label": ExtensionWords.fill(
|
|
3172
|
+
"aria-label": ExtensionWords.fill(words2.turnOn, { name: title }),
|
|
2668
3173
|
"aria-checked": pkg.enabled,
|
|
2669
3174
|
"aria-busy": switching || undefined,
|
|
2670
3175
|
checked: pkg.enabled,
|
|
@@ -2683,7 +3188,7 @@ function matches(query, ...texts) {
|
|
|
2683
3188
|
}
|
|
2684
3189
|
function registerSearches(context) {
|
|
2685
3190
|
const { pi, store, market, actions } = context;
|
|
2686
|
-
const
|
|
3191
|
+
const words2 = () => ExtensionWords.of(pi.ui.language);
|
|
2687
3192
|
const subscribe = (listener) => store.subscribe(listener);
|
|
2688
3193
|
const packages = () => store.state.packages ?? store.load().then(() => store.state.packages ?? []);
|
|
2689
3194
|
const showMarket = (name) => {
|
|
@@ -2703,7 +3208,7 @@ function registerSearches(context) {
|
|
|
2703
3208
|
return {
|
|
2704
3209
|
key: pkg.id,
|
|
2705
3210
|
title,
|
|
2706
|
-
detail: TaPackageTextUtil.pick(pkg.summary, pi.ui.language) ?? pkg.description ?? (pkg.origin === "package" ? pkg.source :
|
|
3211
|
+
detail: TaPackageTextUtil.pick(pkg.summary, pi.ui.language) ?? pkg.description ?? (pkg.origin === "package" ? pkg.source : words2().madeHere),
|
|
2707
3212
|
icon: icon(pi, pkg.icon ?? "Puzzle", "Puzzle"),
|
|
2708
3213
|
tint: pkg.name,
|
|
2709
3214
|
open: () => void openPackage(pkg),
|
|
@@ -2711,7 +3216,7 @@ function registerSearches(context) {
|
|
|
2711
3216
|
[
|
|
2712
3217
|
{
|
|
2713
3218
|
key: "share",
|
|
2714
|
-
label:
|
|
3219
|
+
label: words2().share,
|
|
2715
3220
|
icon: icon(pi, "QrCode", "Share2"),
|
|
2716
3221
|
run: () => pi.ui.shareExtension({ title, source: pkg.origin === "package" ? pkg.source : undefined, packageId: pkg.id })
|
|
2717
3222
|
}
|
|
@@ -2732,12 +3237,12 @@ function registerSearches(context) {
|
|
|
2732
3237
|
return Array.isArray(list) ? page(list) : list.then(page);
|
|
2733
3238
|
}
|
|
2734
3239
|
});
|
|
2735
|
-
pi.registerSearch(local("installed", () =>
|
|
2736
|
-
pi.registerSearch(local("builtin", () =>
|
|
3240
|
+
pi.registerSearch(local("installed", () => words2().installedTitle, 10, (pkg) => pkg.origin !== "builtin"));
|
|
3241
|
+
pi.registerSearch(local("builtin", () => words2().builtinTitle, 20, (pkg) => pkg.origin === "builtin"));
|
|
2737
3242
|
const next = new Map;
|
|
2738
3243
|
pi.registerSearch({
|
|
2739
3244
|
key: "market",
|
|
2740
|
-
title: () =>
|
|
3245
|
+
title: () => words2().tabMarket,
|
|
2741
3246
|
order: 30,
|
|
2742
3247
|
remote: true,
|
|
2743
3248
|
subscribe,
|
|
@@ -2754,7 +3259,7 @@ function registerSearches(context) {
|
|
|
2754
3259
|
next.set(trimmed, result.next);
|
|
2755
3260
|
}
|
|
2756
3261
|
const installed = new Set((store.state.packages ?? []).map((pkg) => pkg.name));
|
|
2757
|
-
const say =
|
|
3262
|
+
const say = words2();
|
|
2758
3263
|
return {
|
|
2759
3264
|
more: result.next !== undefined,
|
|
2760
3265
|
items: result.packages.map((pkg) => ({
|
|
@@ -2804,15 +3309,15 @@ function ModelSetting({ pi }) {
|
|
|
2804
3309
|
});
|
|
2805
3310
|
}
|
|
2806
3311
|
function makeSettings(pi) {
|
|
2807
|
-
const
|
|
3312
|
+
const words2 = () => ExtensionWords.of(pi.ui.language);
|
|
2808
3313
|
return {
|
|
2809
|
-
title: () =>
|
|
3314
|
+
title: () => words2().settingsTitle,
|
|
2810
3315
|
icon: icon(pi, "Sparkles", "Puzzle"),
|
|
2811
3316
|
rows: [
|
|
2812
3317
|
{
|
|
2813
3318
|
key: "model",
|
|
2814
|
-
label: () =>
|
|
2815
|
-
description: () =>
|
|
3319
|
+
label: () => words2().modelLabel,
|
|
3320
|
+
description: () => words2().modelHint,
|
|
2816
3321
|
stacked: true,
|
|
2817
3322
|
render: () => /* @__PURE__ */ React.createElement(ModelSetting, {
|
|
2818
3323
|
pi
|
|
@@ -2946,7 +3451,7 @@ button.tax-install-large:hover { background: var(--ta-green); filter: brightness
|
|
|
2946
3451
|
// web-src/style.ts
|
|
2947
3452
|
var STYLE = `
|
|
2948
3453
|
.tax-page { --tax-accent: var(--ta-green); position: relative; height: 100%; overflow: auto; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }
|
|
2949
|
-
.tax-body { display: flex; flex-direction: column; gap: 32px; max-width:
|
|
3454
|
+
.tax-body { display: flex; flex-direction: column; gap: 32px; max-width: var(--ta-page-wide); margin: 0 auto; padding: 28px 24px 56px; box-sizing: border-box; }
|
|
2950
3455
|
.tax-hero { display: flex; flex-direction: column; gap: 10px; }
|
|
2951
3456
|
.tax-hero h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; letter-spacing: -0.01em; }
|
|
2952
3457
|
.tax-hero h1 svg { color: var(--tax-accent); }
|
|
@@ -3044,11 +3549,11 @@ function activate(pi) {
|
|
|
3044
3549
|
context
|
|
3045
3550
|
}),
|
|
3046
3551
|
menu: () => {
|
|
3047
|
-
const
|
|
3552
|
+
const words2 = ExtensionWords.of(pi.ui.language);
|
|
3048
3553
|
return [
|
|
3049
3554
|
[
|
|
3050
|
-
{ key: "market", label:
|
|
3051
|
-
{ key: "import", label:
|
|
3555
|
+
{ key: "market", label: words2.tabMarket, icon: icons.Store ?? icons.PackageOpen, run: () => context.tab.set("market") },
|
|
3556
|
+
{ key: "import", label: words2.import, icon: icons.Upload, run: () => context.importing.set(true) }
|
|
3052
3557
|
]
|
|
3053
3558
|
];
|
|
3054
3559
|
},
|