@celljs/ta 4.7.0 → 4.9.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 +42 -3
- package/README.md +41 -2
- package/bin/ta.mjs +1 -1
- package/dist/cli.mjs +611 -22
- package/dist/gateway.mjs +2812 -0
- package/dist/pi/CHANGELOG.md +51 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +68 -0
- package/dist/pi/packages/ta-agents/README.md +68 -0
- package/dist/pi/packages/ta-agents/extension/index.mjs +1756 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts +52 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +218 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +153 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +45 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +45 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +135 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +50 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +143 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +18 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +86 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +71 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js +220 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts +41 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +172 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +22 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +88 -0
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +115 -0
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +343 -0
- package/dist/pi/packages/ta-agents/lib/extension.d.ts +26 -0
- package/dist/pi/packages/ta-agents/lib/extension.js +247 -0
- package/dist/pi/packages/ta-agents/lib/json-rpc.d.ts +41 -0
- package/dist/pi/packages/ta-agents/lib/json-rpc.js +145 -0
- package/dist/pi/packages/ta-agents/lib/message-stream.d.ts +31 -0
- package/dist/pi/packages/ta-agents/lib/message-stream.js +134 -0
- package/dist/pi/packages/ta-agents/lib/pi-types.d.ts +20 -0
- package/dist/pi/packages/ta-agents/lib/pi-types.js +3 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +36 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +43 -0
- package/dist/pi/packages/ta-agents/package.json +61 -0
- package/dist/pi/packages/ta-bots/README.en.md +46 -0
- package/dist/pi/packages/ta-bots/README.md +46 -0
- package/dist/pi/packages/ta-bots/extension/index.mjs +629 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +2313 -0
- package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +96 -0
- package/dist/pi/packages/ta-bots/lib/bot-service.js +391 -0
- package/dist/pi/packages/ta-bots/lib/bot-store.d.ts +42 -0
- package/dist/pi/packages/ta-bots/lib/bot-store.js +97 -0
- package/dist/pi/packages/ta-bots/lib/bots-protocol.d.ts +131 -0
- package/dist/pi/packages/ta-bots/lib/bots-protocol.js +46 -0
- package/dist/pi/packages/ta-bots/lib/bots-view.d.ts +7 -0
- package/dist/pi/packages/ta-bots/lib/bots-view.js +84 -0
- package/dist/pi/packages/ta-bots/lib/channel-protocol.d.ts +58 -0
- package/dist/pi/packages/ta-bots/lib/channel-protocol.js +37 -0
- package/dist/pi/packages/ta-bots/lib/composer.d.ts +21 -0
- package/dist/pi/packages/ta-bots/lib/composer.js +104 -0
- package/dist/pi/packages/ta-bots/lib/connect-dialog.d.ts +18 -0
- package/dist/pi/packages/ta-bots/lib/connect-dialog.js +198 -0
- package/dist/pi/packages/ta-bots/lib/extension.d.ts +34 -0
- package/dist/pi/packages/ta-bots/lib/extension.js +207 -0
- package/dist/pi/packages/ta-bots/lib/host.d.ts +8 -0
- package/dist/pi/packages/ta-bots/lib/host.js +15 -0
- package/dist/pi/packages/ta-bots/lib/i18n.d.ts +87 -0
- package/dist/pi/packages/ta-bots/lib/i18n.js +175 -0
- package/dist/pi/packages/ta-bots/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-bots/lib/index.js +40 -0
- package/dist/pi/packages/ta-bots/lib/login-book.d.ts +17 -0
- package/dist/pi/packages/ta-bots/lib/login-book.js +55 -0
- package/dist/pi/packages/ta-bots/lib/media-crypto.d.ts +19 -0
- package/dist/pi/packages/ta-bots/lib/media-crypto.js +70 -0
- package/dist/pi/packages/ta-bots/lib/message.d.ts +13 -0
- package/dist/pi/packages/ta-bots/lib/message.js +74 -0
- package/dist/pi/packages/ta-bots/lib/page.d.ts +54 -0
- package/dist/pi/packages/ta-bots/lib/page.js +131 -0
- package/dist/pi/packages/ta-bots/lib/pictures.d.ts +3 -0
- package/dist/pi/packages/ta-bots/lib/pictures.js +21 -0
- package/dist/pi/packages/ta-bots/lib/qr-image.d.ts +16 -0
- package/dist/pi/packages/ta-bots/lib/qr-image.js +70 -0
- package/dist/pi/packages/ta-bots/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-bots/lib/react.js +8 -0
- package/dist/pi/packages/ta-bots/lib/server-texts.d.ts +12 -0
- package/dist/pi/packages/ta-bots/lib/server-texts.js +45 -0
- package/dist/pi/packages/ta-bots/lib/session-bridge.d.ts +43 -0
- package/dist/pi/packages/ta-bots/lib/session-bridge.js +118 -0
- package/dist/pi/packages/ta-bots/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-bots/lib/style.js +114 -0
- package/dist/pi/packages/ta-bots/lib/test-fakes.d.ts +37 -0
- package/dist/pi/packages/ta-bots/lib/test-fakes.js +94 -0
- package/dist/pi/packages/ta-bots/lib/text-util.d.ts +16 -0
- package/dist/pi/packages/ta-bots/lib/text-util.js +158 -0
- package/dist/pi/packages/ta-bots/lib/web-socket-client.d.ts +38 -0
- package/dist/pi/packages/ta-bots/lib/web-socket-client.js +213 -0
- package/dist/pi/packages/ta-bots/lib/wecom-channel.d.ts +38 -0
- package/dist/pi/packages/ta-bots/lib/wecom-channel.js +222 -0
- package/dist/pi/packages/ta-bots/lib/wecom-login.d.ts +34 -0
- package/dist/pi/packages/ta-bots/lib/wecom-login.js +84 -0
- package/dist/pi/packages/ta-bots/lib/wecom-socket.d.ts +74 -0
- package/dist/pi/packages/ta-bots/lib/wecom-socket.js +214 -0
- package/dist/pi/packages/ta-bots/lib/weixin-api.d.ts +112 -0
- package/dist/pi/packages/ta-bots/lib/weixin-api.js +171 -0
- package/dist/pi/packages/ta-bots/lib/weixin-channel.d.ts +49 -0
- package/dist/pi/packages/ta-bots/lib/weixin-channel.js +258 -0
- package/dist/pi/packages/ta-bots/lib/weixin-login.d.ts +31 -0
- package/dist/pi/packages/ta-bots/lib/weixin-login.js +110 -0
- package/dist/pi/packages/ta-bots/package.json +55 -0
- package/dist/pi/packages/ta-bots/web/index.js +1241 -0
- package/dist/pi/packages/ta-changes/README.en.md +21 -0
- package/dist/pi/packages/ta-changes/README.md +21 -0
- package/dist/pi/packages/ta-changes/extension/index.mjs +296 -0
- package/dist/pi/packages/ta-changes/host/index.mjs +309 -0
- package/dist/pi/packages/ta-changes/lib/blob-store.d.ts +16 -0
- package/dist/pi/packages/ta-changes/lib/blob-store.js +69 -0
- package/dist/pi/packages/ta-changes/lib/card.d.ts +12 -0
- package/dist/pi/packages/ta-changes/lib/card.js +149 -0
- package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts +76 -0
- package/dist/pi/packages/ta-changes/lib/changes-protocol.js +20 -0
- package/dist/pi/packages/ta-changes/lib/changes-service.d.ts +20 -0
- package/dist/pi/packages/ta-changes/lib/changes-service.js +70 -0
- package/dist/pi/packages/ta-changes/lib/changes-util.d.ts +21 -0
- package/dist/pi/packages/ta-changes/lib/changes-util.js +44 -0
- package/dist/pi/packages/ta-changes/lib/diff-tab.d.ts +4 -0
- package/dist/pi/packages/ta-changes/lib/diff-tab.js +45 -0
- package/dist/pi/packages/ta-changes/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-changes/lib/extension.js +106 -0
- package/dist/pi/packages/ta-changes/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-changes/lib/host.js +16 -0
- package/dist/pi/packages/ta-changes/lib/i18n.d.ts +30 -0
- package/dist/pi/packages/ta-changes/lib/i18n.js +61 -0
- package/dist/pi/packages/ta-changes/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-changes/lib/index.js +28 -0
- package/dist/pi/packages/ta-changes/lib/line-diff.d.ts +11 -0
- package/dist/pi/packages/ta-changes/lib/line-diff.js +69 -0
- package/dist/pi/packages/ta-changes/lib/page.d.ts +29 -0
- package/dist/pi/packages/ta-changes/lib/page.js +106 -0
- package/dist/pi/packages/ta-changes/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-changes/lib/react.js +8 -0
- package/dist/pi/packages/ta-changes/lib/recorder.d.ts +25 -0
- package/dist/pi/packages/ta-changes/lib/recorder.js +117 -0
- package/dist/pi/packages/ta-changes/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-changes/lib/style.js +46 -0
- package/dist/pi/packages/ta-changes/package.json +55 -0
- package/dist/pi/packages/ta-changes/web/index.js +463 -0
- package/dist/pi/packages/ta-channels/README.en.md +3 -2
- package/dist/pi/packages/ta-channels/README.md +3 -2
- package/dist/pi/packages/ta-channels/extension/index.mjs +109 -8
- package/dist/pi/packages/ta-channels/host/index.mjs +281 -5
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.js +19 -6
- package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/channel-menu.js +15 -12
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +10 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +10 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +29 -2
- package/dist/pi/packages/ta-channels/lib/channels.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/channels.js +1 -0
- package/dist/pi/packages/ta-channels/lib/create.js +2 -2
- package/dist/pi/packages/ta-channels/lib/extension.d.ts +5 -0
- package/dist/pi/packages/ta-channels/lib/extension.js +25 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +40 -9
- package/dist/pi/packages/ta-channels/lib/i18n.js +81 -19
- package/dist/pi/packages/ta-channels/lib/index.d.ts +3 -2
- package/dist/pi/packages/ta-channels/lib/index.js +14 -2
- package/dist/pi/packages/ta-channels/lib/members.js +10 -5
- package/dist/pi/packages/ta-channels/lib/more-menu.d.ts +5 -1
- package/dist/pi/packages/ta-channels/lib/more-menu.js +55 -9
- package/dist/pi/packages/ta-channels/lib/room.d.ts +11 -2
- package/dist/pi/packages/ta-channels/lib/room.js +47 -6
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +5 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.js +189 -31
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +136 -73
- package/dist/pi/packages/ta-channels/lib/tasks.d.ts +48 -0
- package/dist/pi/packages/ta-channels/lib/tasks.js +226 -0
- package/dist/pi/packages/ta-channels/lib/team-ask.d.ts +21 -0
- package/dist/pi/packages/ta-channels/lib/team-ask.js +73 -0
- package/dist/pi/packages/ta-channels/lib/team-tools.d.ts +6 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.js +5 -4
- package/dist/pi/packages/ta-channels/lib/team.d.ts +5 -1
- package/dist/pi/packages/ta-channels/lib/team.js +10 -4
- package/dist/pi/packages/ta-channels/lib/views.d.ts +18 -3
- package/dist/pi/packages/ta-channels/lib/views.js +45 -9
- package/dist/pi/packages/ta-channels/package.json +11 -2
- package/dist/pi/packages/ta-channels/web/index.js +996 -205
- package/dist/pi/packages/ta-computer-use/extension/index.mjs +4 -2
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.d.ts +2 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js +9 -3
- package/dist/pi/packages/ta-computer-use/package.json +11 -2
- package/dist/pi/packages/ta-cron/README.en.md +48 -0
- package/dist/pi/packages/ta-cron/README.md +48 -0
- package/dist/pi/packages/ta-cron/extension/index.mjs +856 -0
- package/dist/pi/packages/ta-cron/host/index.mjs +884 -0
- package/dist/pi/packages/ta-cron/lib/commands.d.ts +61 -0
- package/dist/pi/packages/ta-cron/lib/commands.js +250 -0
- package/dist/pi/packages/ta-cron/lib/cron-expression.d.ts +39 -0
- package/dist/pi/packages/ta-cron/lib/cron-expression.js +146 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +160 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js +38 -0
- package/dist/pi/packages/ta-cron/lib/editor.d.ts +17 -0
- package/dist/pi/packages/ta-cron/lib/editor.js +143 -0
- package/dist/pi/packages/ta-cron/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-cron/lib/extension.js +142 -0
- package/dist/pi/packages/ta-cron/lib/form-util.d.ts +39 -0
- package/dist/pi/packages/ta-cron/lib/form-util.js +121 -0
- package/dist/pi/packages/ta-cron/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-cron/lib/host.js +14 -0
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +88 -0
- package/dist/pi/packages/ta-cron/lib/i18n.js +173 -0
- package/dist/pi/packages/ta-cron/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-cron/lib/index.js +48 -0
- package/dist/pi/packages/ta-cron/lib/next-card.d.ts +9 -0
- package/dist/pi/packages/ta-cron/lib/next-card.js +35 -0
- package/dist/pi/packages/ta-cron/lib/notifier.d.ts +6 -0
- package/dist/pi/packages/ta-cron/lib/notifier.js +50 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +42 -0
- package/dist/pi/packages/ta-cron/lib/page.js +116 -0
- package/dist/pi/packages/ta-cron/lib/pictures.d.ts +6 -0
- package/dist/pi/packages/ta-cron/lib/pictures.js +46 -0
- package/dist/pi/packages/ta-cron/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-cron/lib/react.js +8 -0
- package/dist/pi/packages/ta-cron/lib/reply.d.ts +6 -0
- package/dist/pi/packages/ta-cron/lib/reply.js +53 -0
- package/dist/pi/packages/ta-cron/lib/schedule-util.d.ts +25 -0
- package/dist/pi/packages/ta-cron/lib/schedule-util.js +223 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.d.ts +78 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.js +329 -0
- package/dist/pi/packages/ta-cron/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-cron/lib/server-texts.js +24 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-cron/lib/style.js +123 -0
- package/dist/pi/packages/ta-cron/lib/task-store.d.ts +25 -0
- package/dist/pi/packages/ta-cron/lib/task-store.js +60 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +18 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +167 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +10 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +204 -0
- package/dist/pi/packages/ta-cron/lib/tool.d.ts +85 -0
- package/dist/pi/packages/ta-cron/lib/tool.js +127 -0
- package/dist/pi/packages/ta-cron/package.json +55 -0
- package/dist/pi/packages/ta-cron/web/index.js +1953 -0
- package/dist/pi/packages/ta-extensions/README.en.md +4 -1
- package/dist/pi/packages/ta-extensions/README.md +4 -1
- package/dist/pi/packages/ta-extensions/host/index.mjs +64 -61
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts +2 -0
- package/dist/pi/packages/ta-extensions/lib/actions.js +9 -1
- package/dist/pi/packages/ta-extensions/lib/host.d.ts +0 -8
- package/dist/pi/packages/ta-extensions/lib/host.js +7 -49
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +8 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.js +20 -4
- package/dist/pi/packages/ta-extensions/lib/index.js +2 -0
- package/dist/pi/packages/ta-extensions/lib/market-detail.js +14 -2
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.js +18 -18
- package/dist/pi/packages/ta-extensions/lib/page.js +22 -11
- package/dist/pi/packages/ta-extensions/lib/pictures.d.ts +3 -1
- package/dist/pi/packages/ta-extensions/lib/pictures.js +28 -32
- package/dist/pi/packages/ta-extensions/lib/search.d.ts +10 -0
- package/dist/pi/packages/ta-extensions/lib/search.js +139 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +15 -34
- package/dist/pi/packages/ta-extensions/package.json +12 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +12 -7
- package/dist/pi/packages/ta-extensions/web/index.js +488 -120
- package/dist/pi/packages/ta-launcher/README.en.md +15 -0
- package/dist/pi/packages/ta-launcher/README.md +15 -0
- package/dist/pi/packages/ta-launcher/lib/actions.d.ts +31 -0
- package/dist/pi/packages/ta-launcher/lib/actions.js +134 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +38 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +77 -0
- package/dist/pi/packages/ta-launcher/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-launcher/lib/index.js +48 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-util.d.ts +19 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-util.js +47 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.d.ts +20 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +99 -0
- package/dist/pi/packages/ta-launcher/lib/mine-store.d.ts +22 -0
- package/dist/pi/packages/ta-launcher/lib/mine-store.js +60 -0
- package/dist/pi/packages/ta-launcher/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-launcher/lib/react.js +8 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-launcher/lib/style.js +48 -0
- package/dist/pi/packages/ta-launcher/package.json +49 -0
- package/dist/pi/packages/ta-launcher/web/index.js +553 -0
- package/dist/pi/packages/ta-workspace/README.md +6 -6
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +6 -6
- package/dist/pi/packages/ta-workspace/lib/browser-agent.d.ts +36 -0
- package/dist/pi/packages/ta-workspace/lib/browser-agent.js +396 -0
- package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts +48 -0
- package/dist/pi/packages/ta-workspace/lib/browser-common.js +180 -0
- package/dist/pi/packages/ta-workspace/lib/browser-import.d.ts +5 -0
- package/dist/pi/packages/ta-workspace/lib/browser-import.js +97 -0
- package/dist/pi/packages/ta-workspace/lib/browser-webview.d.ts +7 -0
- package/dist/pi/packages/ta-workspace/lib/browser-webview.js +202 -0
- package/dist/pi/packages/ta-workspace/lib/browser.d.ts +1 -7
- package/dist/pi/packages/ta-workspace/lib/browser.js +14 -154
- package/dist/pi/packages/ta-workspace/lib/common.d.ts +8 -5
- package/dist/pi/packages/ta-workspace/lib/common.js +53 -14
- package/dist/pi/packages/ta-workspace/lib/explorer-excluded.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/explorer-excluded.js +39 -0
- package/dist/pi/packages/ta-workspace/lib/explorer-transfer.d.ts +31 -0
- package/dist/pi/packages/ta-workspace/lib/explorer-transfer.js +156 -0
- package/dist/pi/packages/ta-workspace/lib/explorer.js +121 -18
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +47 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.js +106 -12
- package/dist/pi/packages/ta-workspace/lib/index.js +7 -1
- package/dist/pi/packages/ta-workspace/lib/open-files.js +1 -1
- package/dist/pi/packages/ta-workspace/lib/preview.js +6 -2
- package/dist/pi/packages/ta-workspace/lib/scm.js +4 -4
- package/dist/pi/packages/ta-workspace/lib/search.js +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +130 -56
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +25 -3
- package/dist/pi/packages/ta-workspace/lib/terminal.js +327 -119
- package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.d.ts +52 -0
- package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.js +207 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.d.ts +25 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.js +55 -0
- package/dist/pi/packages/ta-workspace/lib/util/upload.d.ts +34 -0
- package/dist/pi/packages/ta-workspace/lib/util/upload.js +109 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts +19 -2
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js +50 -3
- package/dist/pi/packages/ta-workspace/lib/util/zip.d.ts +20 -0
- package/dist/pi/packages/ta-workspace/lib/util/zip.js +128 -0
- package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts +12 -1
- package/dist/pi/packages/ta-workspace/lib/workspace-client.js +101 -0
- package/dist/pi/packages/ta-workspace/package.json +11 -2
- package/dist/pi/packages/ta-workspace/web/index.js +2695 -799
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-D1ZeYB9c.js → abnfDiagram-S7VZAUFO-C1tb6dM5.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-RV_x_iFj.js → architecture-WOLXFQ4H-DN1Va8BF.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-BGOmzcpZ.js → architectureDiagram-YGSQEFNW-BmK2SYtQ.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BkoflIym.js → blockDiagram-APKKGZFW-DvLrLzTm.js} +1 -1
- package/dist/public/assets/{browser-Cl9_lr0X.js → browser-DAv3ly6M.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CfrQTIEs.js → c4Diagram-KJ2TOQU5-CrQlWwrG.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-C-VxnXsG.js → chunk-6MUBBAK2-CHKMsuY_.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-aqbxPiaN.js → chunk-AXFCVDMN-CWJ7Np6s.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-DDgvFLBP.js → chunk-BG4553SI-3v5XbQGM.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CItpjfW5.js → chunk-DQASFODM-2CC-yiCz.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-BATYGV1I.js → chunk-HFQBQIA3-D2hzQPAy.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BVAqVjgq.js → chunk-KQLB2F66-SifAZs2r.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-Bk0_a-eE.js → chunk-KS47KZWR-BP0C0VCC.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-DsFG_U8r.js → chunk-LEVMRMFU-B1f5vw5b.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-BgeE81Y7.js → chunk-M57EVK23-B2MCJt7Y.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-2Rp6C2LJ.js → chunk-OY52VR5R-cDpZJMk4.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-BhcIp-Bl.js → chunk-QB3YPZ4I-BE0we2xc.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-i9n2AYPG.js → chunk-R3KSYZAL-D9wOfqqH.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DOSqSu65.js → chunk-STOXU5M4-BIaVsc0K.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BDA8bjy3.js → chunk-TU62E6Q5-BZc0OZEM.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Cs-r9l_d.js → chunk-X4PVCEUW-Bngfwwzm.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-DEcanQFC.js → chunk-XXDRQBXY-C5FQ6XHK.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BS8XxKRR.js → classDiagram-v2-L25IHNXF-_om54nmt.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC--RPleOJ8.js → cose-bilkent-JH36ORCC-Dwpeee_6.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-CW_93VVD.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-DZHM2oEU.js → cynefinDiagram-L36ESFBY-DP5_y9Dq.js} +1 -1
- package/dist/public/assets/{d3-selection-D2iIEb1P.js → d3-selection-DFiMlEmn.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-h_G5ukMB.js → dagre-SPEB5RXH-DYwsk6gk.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-BnThWj9P.js → diagram-3B7GL73J-Dq_nT3AZ.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-DHCMo8sZ.js → diagram-DNEMPZML-ChURW6y9.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-DxJZnIKT.js → diagram-L3MUGCDN-CgVp4Rto.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Cn0SGxqL.js → diagram-LA4NIPWU-vrqLMDby.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BafBOkBk.js → diagram-MHCOC4E2-lvfOr5ij.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-D7UnEMcU.js → diagram-XPFHEONP-oQ18TeVp.js} +1 -1
- package/dist/public/assets/{dist-CN9JBoER.js → dist-BOxxmveI.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-Us1rkKwp.js → ebnfDiagram-UZSYDL2S-C7_tlZCS.js} +1 -1
- package/dist/public/assets/{editor.api-S_CuXudU.js → editor.api-CoZ8MEuz.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-Czvqrn49.js → elk-XV6XMXQE-Dkt5-ikg.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-C0g3K15f.js → erDiagram-EYBAPDEH-27kh3zlx.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-DIcU7mQ5.js → eventmodeling-K75KTNOO-CxVEejjN.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BRowRdve.js +1 -0
- package/dist/public/assets/{freemarker2-CkAEBjHO.js → freemarker2-D6CwPIXh.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-CIkKvihz.js → ganttDiagram-23REXITY-C-amlwpX.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BGmojXlx.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-BxM3589j.js → gitGraphDiagram-STJD7YCW-DKhzI0Xz.js} +1 -1
- package/dist/public/assets/{handlebars-CPBNiVZ2.js → handlebars-mxNr68Gm.js} +1 -1
- package/dist/public/assets/{html-CJBVALoy.js → html-Bze6s9R9.js} +1 -1
- package/dist/public/assets/{index-CBMmE3BQ.js → index-BhQUc9PU.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-CRRVgGj2.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-BIcStK_t.js → infoDiagram-KBXO4MBG-WHuWjEDO.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-CpV2hKA6.js → ishikawaDiagram-M35NCXHK-DFHUwD0J.js} +1 -1
- package/dist/public/assets/{javascript-dv6GQsa3.js → javascript-4NMPu7y1.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-B_vnmdId.js → journeyDiagram-OPLOXDXO-C7gV6zEr.js} +1 -1
- package/dist/public/assets/{jsonMode-DG_orhvz.js → jsonMode-B1JEHPMp.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-q5uWw99H.js → kanban-definition-BZKZHSQY-DlRu_d2Q.js} +1 -1
- package/dist/public/assets/{liquid-CD-LM2Kh.js → liquid-B7sIf4NX.js} +1 -1
- package/dist/public/assets/{mdx-C9mfI8up.js → mdx-CAN0qez6.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-DNe1duhT.js → mermaid-parser.core-BGmotBhf.js} +3 -3
- package/dist/public/assets/{mermaid.core-B1AcqJgl.js → mermaid.core-Cl6SS3cM.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-CwYG3Fl3.js → mindmap-definition-I2QAS2VK-DiQ8Feqr.js} +1 -1
- package/dist/public/assets/module-1nDbf1AK.js +1761 -0
- package/dist/public/assets/module-BkKfSTDV.js +1 -0
- package/dist/public/assets/{monaco-C0ktZo3r.js → monaco-CwCjTWAO.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-DUlqTCWQ.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-DxtA4QDS.js → pegDiagram-FD4XPPHP-XhCpv6BX.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-2RgP4ScO.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CfcIi0Vn.js → pieDiagram-J4AKIIQI-DUVzuXUd.js} +1 -1
- package/dist/public/assets/{python-DCA1j2QE.js → python-DsoF66Sp.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-BxkJdurF.js → quadrantDiagram-XTYBLID2-Ddobf0z0.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-Dap8k-yH.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-Ds10NBze.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7--H3g5ywg.js → railroad-abnf-LNEFI6M7-DkrNo-Gf.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-C2LAUFu6.js → railroad-ebnf-DWYD2UWJ-DaB7gY8P.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-Kq_ZXQMl.js → railroad-peg-JR7BVNR7-D_QG87QV.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-i4xIvHJV.js → railroadDiagram-MRQ6NCDL-x-nUoBjv.js} +1 -1
- package/dist/public/assets/{razor-CEeNaFx5.js → razor-DSrcJyQe.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CYNXjuJm.js → requirementDiagram-Y7LWUY3S-kNNcbsty.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-CRQiHcW6.js → sankeyDiagram-WGJFYUXA-ClC12Odk.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BSDVFsi2.js → sequenceDiagram-5NDRBG5M-DDQITP2g.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-uyUAaysl.js → stateDiagram-v2-FJ4FJNEA-N1t_36oh.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DdEjQumY.js → swimlanes-UMQ2AFYF-DSt9fFYE.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BHAN4SQO.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DZl-TXXh.js → timeline-definition-SEUHKTQE-CfymOw_s.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-f1hLUBjI.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-_NPRpuUC.js +1 -0
- package/dist/public/assets/{typescript-DrF8YGbQ.js → typescript-J7rF-zX8.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-DkG3gLrp.js → usecaseDiagram-AFA6YXN4-CK_mRc2_.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-B_lj8x7-.js → vennDiagram-NNMJR3RB-DW8xR6IJ.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-CLBqtefx.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-B1VFrC5a.js → wardleyDiagram-S7YFUSEH-Css55Zq5.js} +1 -1
- package/dist/public/assets/{xml-DfL-Brke.js → xml-CJeviG_a.js} +1 -1
- package/dist/public/assets/xterm-BrP-ENHg.css +1 -0
- package/dist/public/assets/xterm-wtHqjrNn.js +85 -0
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-CM2CpXu9.js → xychartDiagram-GGNKY7IX-BnhK9cFS.js} +1 -1
- package/dist/public/assets/{yaml-CpmxRjjF.js → yaml-Gw3uo6rF.js} +1 -1
- package/dist/public/index.html +35 -6
- package/dist/public/launch.svg +49 -0
- package/dist/serve/index.mjs +8862 -5822
- package/package.json +24 -18
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/agent-menu.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channel-menu.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels-model.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/create.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/create.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/extension.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/extension.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/faces.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/faces.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/host.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/host.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/i18n.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/index.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/index.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/members.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/members.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/more-menu.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/more-menu.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/react.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/react.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/room.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/room.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/style.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/style.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/team.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/team.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/views.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/views.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/extension.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/extension.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/pi-types.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/pi-types.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/actions.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/archive.d.ts +0 -30
- package/dist/pi/packages/ta-extensions/lib/archive.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/archive.js +0 -213
- package/dist/pi/packages/ta-extensions/lib/archive.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/context.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/context.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/extensions-util.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/host.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/host.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/i18n.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/import-dialog.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/index.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/index.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-detail.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-detail.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-parts.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-parts.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-store.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-store.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-util.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-view.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-view.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/page.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/page.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/pictures.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/pictures.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/react.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/react.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/signal.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/signal.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/style.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/style.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/common.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/common.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/editors.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/editors.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/explorer.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/explorer.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/file-icon.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/host.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/host.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/i18n.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/index.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/index.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/open-files.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/open-files.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/preview.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/react.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/react.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/scm.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/scm.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/search.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/search.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/style.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/style.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/terminal.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts +0 -72
- package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/ansi.js +0 -434
- package/dist/pi/packages/ta-workspace/lib/util/ansi.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/file-icon.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/git.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/git.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts +0 -14
- package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/keys.js +0 -52
- package/dist/pi/packages/ta-workspace/lib/util/keys.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/preview.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/search.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/search.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/seti-font.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/seti.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/workspace-client.js.map +0 -1
- package/dist/pi/packages/ta-workspace/scripts/seti.ts +0 -173
- package/dist/public/assets/cynefin-EF2NZ3EQ-CXQC7Jwi.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-D5Z_jzJ0.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CvdLb7m6.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-BLs8wjUC.js +0 -1
- package/dist/public/assets/module-BLLqRvli.js +0 -1099
- package/dist/public/assets/module-BZPCnGxA.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-jwWITUaQ.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-CeTVZZgy.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-BGI8J8LU.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-CFkpx3Pr.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BJsun6CT.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-CL1mG6td.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-Bk3Z1uEC.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-1E8i3qpD.js +0 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronWords = void 0;
|
|
4
|
+
const EN = {
|
|
5
|
+
title: 'Scheduled',
|
|
6
|
+
cardTitle: 'Next up',
|
|
7
|
+
cardEmpty: 'Nothing scheduled',
|
|
8
|
+
newTask: 'New task',
|
|
9
|
+
editTask: 'Edit task',
|
|
10
|
+
count: '{count} tasks',
|
|
11
|
+
runningCount: '{count} running',
|
|
12
|
+
emptyTitle: 'Let Ta work on a schedule',
|
|
13
|
+
emptyHint: 'Each run is a new conversation; you get the summary.',
|
|
14
|
+
example1: 'Sum up yesterday’s commits',
|
|
15
|
+
example2: 'Check that CI passes',
|
|
16
|
+
example3: 'Write the daily report',
|
|
17
|
+
next: 'in {time}',
|
|
18
|
+
nextAt: 'Next {time}',
|
|
19
|
+
running: 'Running…',
|
|
20
|
+
paused: 'Paused',
|
|
21
|
+
done: 'Done',
|
|
22
|
+
runNow: 'Run now',
|
|
23
|
+
edit: 'Edit',
|
|
24
|
+
delete: 'Delete',
|
|
25
|
+
confirmDelete: 'Delete {name}?',
|
|
26
|
+
confirmDeleteMessage: 'Its runs go too; their conversations stay.',
|
|
27
|
+
enable: 'On',
|
|
28
|
+
prompt: 'What should Ta do?',
|
|
29
|
+
promptPlaceholder: 'For example: check whether CI on main passes; if not, find out why',
|
|
30
|
+
name: 'Name',
|
|
31
|
+
namePlaceholder: 'Optional',
|
|
32
|
+
when: 'When',
|
|
33
|
+
repeat: 'Repeat',
|
|
34
|
+
once: 'Once',
|
|
35
|
+
every: 'Every',
|
|
36
|
+
daily: 'Daily',
|
|
37
|
+
weekdays: 'Weekdays',
|
|
38
|
+
weekly: 'Weekly',
|
|
39
|
+
custom: 'Cron',
|
|
40
|
+
minutes: 'minutes',
|
|
41
|
+
hours: 'hours',
|
|
42
|
+
days: 'days',
|
|
43
|
+
directory: 'Directory',
|
|
44
|
+
notify: 'Tell me',
|
|
45
|
+
notifyDefault: 'Default',
|
|
46
|
+
notifyAlways: 'Every run',
|
|
47
|
+
notifyError: 'When it fails',
|
|
48
|
+
notifyNever: 'Never',
|
|
49
|
+
model: 'Model',
|
|
50
|
+
thinking: 'Thinking',
|
|
51
|
+
more: 'More',
|
|
52
|
+
cancel: 'Cancel',
|
|
53
|
+
save: 'Save',
|
|
54
|
+
create: 'Create',
|
|
55
|
+
preview: 'Next run {time}',
|
|
56
|
+
noNext: 'No next run',
|
|
57
|
+
runs: 'Runs',
|
|
58
|
+
noRuns: 'No runs yet',
|
|
59
|
+
byHand: 'by hand',
|
|
60
|
+
openChat: 'Open conversation',
|
|
61
|
+
noChat: 'This run has no conversation.',
|
|
62
|
+
success: 'Done',
|
|
63
|
+
error: 'Failed',
|
|
64
|
+
missed: 'Missed',
|
|
65
|
+
interrupted: 'The Ta service stopped during the run.',
|
|
66
|
+
timeout: 'The run took too long and was stopped.',
|
|
67
|
+
missedText: 'The Ta service was not running at its time.',
|
|
68
|
+
started: 'Started {name}',
|
|
69
|
+
finished: '{name} is done',
|
|
70
|
+
failed: '{name} failed',
|
|
71
|
+
created: 'Scheduled',
|
|
72
|
+
updated: 'Updated',
|
|
73
|
+
enabled: 'Turned on',
|
|
74
|
+
disabled: 'Turned off',
|
|
75
|
+
removed: 'Removed {names}',
|
|
76
|
+
removedNone: 'Nothing removed',
|
|
77
|
+
noTasks: 'No scheduled tasks yet. Try /loop 30m <prompt>.',
|
|
78
|
+
show: 'Show',
|
|
79
|
+
failedAction: 'Could not do it: {message}',
|
|
80
|
+
help: 'Scheduled tasks',
|
|
81
|
+
serviceNeeded: 'Scheduled tasks run in the Ta service.',
|
|
82
|
+
};
|
|
83
|
+
const ZH = {
|
|
84
|
+
title: '定时任务',
|
|
85
|
+
cardTitle: '接下来',
|
|
86
|
+
cardEmpty: '没有排着的任务',
|
|
87
|
+
newTask: '新建任务',
|
|
88
|
+
editTask: '编辑任务',
|
|
89
|
+
count: '{count} 个任务',
|
|
90
|
+
runningCount: '{count} 个运行中',
|
|
91
|
+
emptyTitle: '让 Ta 按时干活',
|
|
92
|
+
emptyHint: '每次运行都是一个新对话,结束后给你看总结。',
|
|
93
|
+
example1: '汇总昨天的提交',
|
|
94
|
+
example2: '检查 CI 是否通过',
|
|
95
|
+
example3: '写今天的日报',
|
|
96
|
+
next: '{time}后',
|
|
97
|
+
nextAt: '下次 {time}',
|
|
98
|
+
running: '运行中…',
|
|
99
|
+
paused: '已暂停',
|
|
100
|
+
done: '已完成',
|
|
101
|
+
runNow: '立即运行',
|
|
102
|
+
edit: '编辑',
|
|
103
|
+
delete: '删除',
|
|
104
|
+
confirmDelete: '删除“{name}”?',
|
|
105
|
+
confirmDeleteMessage: '它的运行记录一起删除;对话保留。',
|
|
106
|
+
enable: '启用',
|
|
107
|
+
prompt: '要 Ta 做什么?',
|
|
108
|
+
promptPlaceholder: '例如:检查 main 分支的 CI 是否通过,没通过就查明原因',
|
|
109
|
+
name: '名字',
|
|
110
|
+
namePlaceholder: '可不填',
|
|
111
|
+
when: '时间',
|
|
112
|
+
repeat: '重复',
|
|
113
|
+
once: '一次',
|
|
114
|
+
every: '每隔',
|
|
115
|
+
daily: '每天',
|
|
116
|
+
weekdays: '工作日',
|
|
117
|
+
weekly: '每周',
|
|
118
|
+
custom: 'Cron',
|
|
119
|
+
minutes: '分钟',
|
|
120
|
+
hours: '小时',
|
|
121
|
+
days: '天',
|
|
122
|
+
directory: '目录',
|
|
123
|
+
notify: '通知我',
|
|
124
|
+
notifyDefault: '默认',
|
|
125
|
+
notifyAlways: '每次运行',
|
|
126
|
+
notifyError: '失败时',
|
|
127
|
+
notifyNever: '不通知',
|
|
128
|
+
model: '模型',
|
|
129
|
+
thinking: '思考级别',
|
|
130
|
+
more: '更多',
|
|
131
|
+
cancel: '取消',
|
|
132
|
+
save: '保存',
|
|
133
|
+
create: '创建',
|
|
134
|
+
preview: '下次运行 {time}',
|
|
135
|
+
noNext: '没有下次运行',
|
|
136
|
+
runs: '运行记录',
|
|
137
|
+
noRuns: '还没有运行过',
|
|
138
|
+
byHand: '手动',
|
|
139
|
+
openChat: '打开对话',
|
|
140
|
+
noChat: '这次运行没有对话。',
|
|
141
|
+
success: '完成',
|
|
142
|
+
error: '失败',
|
|
143
|
+
missed: '错过',
|
|
144
|
+
interrupted: 'Ta 服务在运行中途停止了。',
|
|
145
|
+
timeout: '运行时间太长,已停止。',
|
|
146
|
+
missedText: '到点时 Ta 服务没有运行。',
|
|
147
|
+
started: '已开始运行“{name}”',
|
|
148
|
+
finished: '“{name}”已完成',
|
|
149
|
+
failed: '“{name}”运行失败',
|
|
150
|
+
created: '已创建定时任务',
|
|
151
|
+
updated: '已更新',
|
|
152
|
+
enabled: '已启用',
|
|
153
|
+
disabled: '已暂停',
|
|
154
|
+
removed: '已删除 {names}',
|
|
155
|
+
removedNone: '没有删除任何任务',
|
|
156
|
+
noTasks: '还没有定时任务。试试 /loop 30m <要做的事>。',
|
|
157
|
+
show: '查看',
|
|
158
|
+
failedAction: '操作失败:{message}',
|
|
159
|
+
help: '定时任务',
|
|
160
|
+
serviceNeeded: '定时任务在 Ta 服务里运行。',
|
|
161
|
+
};
|
|
162
|
+
var CronWords;
|
|
163
|
+
(function (CronWords) {
|
|
164
|
+
function of(language) {
|
|
165
|
+
return language === 'zh-CN' ? ZH : EN;
|
|
166
|
+
}
|
|
167
|
+
CronWords.of = of;
|
|
168
|
+
function format(text, values) {
|
|
169
|
+
return text.replace(/\{(\w+)\}/g, (whole, key) => (key in values ? String(values[key]) : whole));
|
|
170
|
+
}
|
|
171
|
+
CronWords.format = format;
|
|
172
|
+
})(CronWords || (exports.CronWords = CronWords = {}));
|
|
173
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/**
|
|
3
|
+
* The page of the scheduled tasks in the navigation, the answers of the commands in conversations, and
|
|
4
|
+
* a notice when a run ends. The tasks run in the Ta service (host.ts), and the commands and Ta's tool are
|
|
5
|
+
* in the pi extension (extension.ts): this only shows them and changes them.
|
|
6
|
+
*/
|
|
7
|
+
export default function activate(pi: WebExtensionAPI): () => void;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const cron_protocol_1 = require("./cron-protocol");
|
|
5
|
+
const next_card_1 = require("./next-card");
|
|
6
|
+
const notifier_1 = require("./notifier");
|
|
7
|
+
const page_1 = require("./page");
|
|
8
|
+
// biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
|
|
9
|
+
const react_1 = require("./react");
|
|
10
|
+
const reply_1 = require("./reply");
|
|
11
|
+
const style_1 = require("./style");
|
|
12
|
+
const tasks_view_1 = require("./tasks-view");
|
|
13
|
+
/**
|
|
14
|
+
* The page of the scheduled tasks in the navigation, the answers of the commands in conversations, and
|
|
15
|
+
* a notice when a run ends. The tasks run in the Ta service (host.ts), and the commands and Ta's tool are
|
|
16
|
+
* in the pi extension (extension.ts): this only shows them and changes them.
|
|
17
|
+
*/
|
|
18
|
+
function activate(pi) {
|
|
19
|
+
(0, react_1.bind)(pi.React);
|
|
20
|
+
(0, page_1.bindPage)(pi);
|
|
21
|
+
const removeStyle = (0, style_1.injectStyle)();
|
|
22
|
+
const client = new page_1.CronClient(pi);
|
|
23
|
+
client.start();
|
|
24
|
+
pi.registerView('tasks', {
|
|
25
|
+
title: () => (0, page_1.t)('title'),
|
|
26
|
+
icon: (0, page_1.icon)('AlarmClock'),
|
|
27
|
+
head: () => react_1.React.createElement(tasks_view_1.TasksHead, { client: client }),
|
|
28
|
+
render: () => react_1.React.createElement(tasks_view_1.TasksPage, { client: client }),
|
|
29
|
+
order: 70,
|
|
30
|
+
// Not opened every day: under Discover until the user pins it.
|
|
31
|
+
discover: true,
|
|
32
|
+
});
|
|
33
|
+
pi.registerView('next', {
|
|
34
|
+
title: () => (0, page_1.t)('cardTitle'),
|
|
35
|
+
icon: (0, page_1.icon)('AlarmClock'),
|
|
36
|
+
location: 'board',
|
|
37
|
+
order: 20,
|
|
38
|
+
render: () => react_1.React.createElement(next_card_1.NextCard, { client: client }),
|
|
39
|
+
});
|
|
40
|
+
pi.registerMessageRenderer(cron_protocol_1.REPLY_TYPE, reply_1.ReplyMessage);
|
|
41
|
+
const stopWatching = (0, notifier_1.watchRuns)();
|
|
42
|
+
return () => {
|
|
43
|
+
stopWatching();
|
|
44
|
+
client.dispose();
|
|
45
|
+
removeStyle();
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Task } from './cron-protocol';
|
|
2
|
+
import { type CronClient } from './page';
|
|
3
|
+
/** The tasks to run next, those running first: what the card of the board lists. Pure, for the tests. */
|
|
4
|
+
export declare function nextTasks(tasks: readonly Task[], shown?: number): Task[];
|
|
5
|
+
/** The card of the board (ta-launcher.md): the next runs, how soon; a tap opens the page of the tasks. */
|
|
6
|
+
export declare function NextCard({ client }: {
|
|
7
|
+
client: CronClient;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=next-card.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nextTasks = nextTasks;
|
|
4
|
+
exports.NextCard = NextCard;
|
|
5
|
+
const page_1 = require("./page");
|
|
6
|
+
const react_1 = require("./react");
|
|
7
|
+
const SHOWN = 3;
|
|
8
|
+
/** The tasks to run next, those running first: what the card of the board lists. Pure, for the tests. */
|
|
9
|
+
function nextTasks(tasks, shown = SHOWN) {
|
|
10
|
+
const at = (task) => (task.lastStatus === 'running' ? 0 : task.nextRunAt ? new Date(task.nextRunAt).getTime() : Number.POSITIVE_INFINITY);
|
|
11
|
+
return tasks
|
|
12
|
+
.filter(task => task.lastStatus === 'running' || (task.enabled && task.nextRunAt))
|
|
13
|
+
.sort((a, b) => at(a) - at(b))
|
|
14
|
+
.slice(0, shown);
|
|
15
|
+
}
|
|
16
|
+
/** The card of the board (ta-launcher.md): the next runs, how soon; a tap opens the page of the tasks. */
|
|
17
|
+
function NextCard({ client }) {
|
|
18
|
+
const { tasks, loaded } = react_1.React.useSyncExternalStore(listener => client.subscribe(listener), () => client.state);
|
|
19
|
+
const [now, setNow] = react_1.React.useState(Date.now());
|
|
20
|
+
react_1.React.useEffect(() => {
|
|
21
|
+
const timer = setInterval(() => setNow(Date.now()), 30000);
|
|
22
|
+
return () => clearInterval(timer);
|
|
23
|
+
}, []);
|
|
24
|
+
if (!loaded) {
|
|
25
|
+
return react_1.React.createElement(page_1.pi.ui.Skeleton, { rows: 2 });
|
|
26
|
+
}
|
|
27
|
+
const next = nextTasks(tasks);
|
|
28
|
+
if (next.length === 0) {
|
|
29
|
+
return react_1.React.createElement(page_1.pi.ui.Empty, { title: (0, page_1.t)('cardEmpty'), compact: true });
|
|
30
|
+
}
|
|
31
|
+
return (react_1.React.createElement("div", { className: "tcr-card" }, next.map(task => { var _a; return (react_1.React.createElement("button", { key: task.id, type: "button", className: "tcr-card-row", onClick: () => page_1.pi.ui.showView(page_1.PAGE) },
|
|
32
|
+
react_1.React.createElement("span", { className: "tcr-card-name" }, task.name),
|
|
33
|
+
react_1.React.createElement("span", { className: "tcr-card-when" }, task.lastStatus === 'running' ? (0, page_1.t)('running') : (0, page_1.t)('next', { time: (0, page_1.until)(new Date((_a = task.nextRunAt) !== null && _a !== void 0 ? _a : now).getTime(), now) })))); })));
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=next-card.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tells the user when a run ends, as its task's notify level says: a notice of the page, and a notice of
|
|
3
|
+
* the system while the page is hidden (once the user allowed them). Each page tells of each run once.
|
|
4
|
+
*/
|
|
5
|
+
export declare function watchRuns(): () => void;
|
|
6
|
+
//# sourceMappingURL=notifier.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.watchRuns = watchRuns;
|
|
4
|
+
const cron_protocol_1 = require("./cron-protocol");
|
|
5
|
+
const page_1 = require("./page");
|
|
6
|
+
/** A run that ended longer ago than this is old news: a page that opens later does not tell of it. */
|
|
7
|
+
const FRESH_MS = 2 * 60000;
|
|
8
|
+
/**
|
|
9
|
+
* Tells the user when a run ends, as its task's notify level says: a notice of the page, and a notice of
|
|
10
|
+
* the system while the page is hidden (once the user allowed them). Each page tells of each run once.
|
|
11
|
+
*/
|
|
12
|
+
function watchRuns() {
|
|
13
|
+
const told = new Set();
|
|
14
|
+
let ready = false;
|
|
15
|
+
const tell = async () => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const finished = (await page_1.pi.storage.get(cron_protocol_1.Keys.LATEST).catch(() => undefined));
|
|
18
|
+
const run = finished === null || finished === void 0 ? void 0 : finished.run;
|
|
19
|
+
if (!run || told.has(run.id)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
told.add(run.id);
|
|
23
|
+
const ended = run.endedAt ? new Date(run.endedAt).getTime() : 0;
|
|
24
|
+
if (!ready || !finished.notify || Date.now() - ended > FRESH_MS) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const failed = run.status !== 'success';
|
|
28
|
+
const title = (0, page_1.t)(failed ? 'failed' : 'finished', { name: finished.taskName });
|
|
29
|
+
page_1.pi.ui.notify(title, failed ? 'error' : 'info');
|
|
30
|
+
if (typeof document !== 'undefined' && document.hidden && typeof Notification !== 'undefined' && Notification.permission === 'granted') {
|
|
31
|
+
const body = ((_b = (_a = run.error) !== null && _a !== void 0 ? _a : run.summary) !== null && _b !== void 0 ? _b : '').split('\n')[0].slice(0, 160);
|
|
32
|
+
const notice = new Notification(title, { body, tag: run.id });
|
|
33
|
+
notice.onclick = () => {
|
|
34
|
+
window.focus();
|
|
35
|
+
page_1.pi.ui.showView(page_1.PAGE);
|
|
36
|
+
notice.close();
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
// The first read is what ended before the page opened, and lets the page hear the key change.
|
|
41
|
+
void tell().finally(() => {
|
|
42
|
+
ready = true;
|
|
43
|
+
});
|
|
44
|
+
return page_1.pi.storage.onChange(keys => {
|
|
45
|
+
if (keys.includes(cron_protocol_1.Keys.LATEST)) {
|
|
46
|
+
void tell();
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=notifier.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { WebExtensionAPI, WebIcon } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import { type Run, type Task } from './cron-protocol';
|
|
3
|
+
import { type Words } from './i18n';
|
|
4
|
+
/** The API of the page, bound once by `activate`. */
|
|
5
|
+
export declare let pi: WebExtensionAPI;
|
|
6
|
+
export declare const PAGE = "@celljs/ta-cron/tasks";
|
|
7
|
+
export declare function bindPage(api: WebExtensionAPI): void;
|
|
8
|
+
export declare function t(key: keyof Words, values?: Record<string, string | number>): string;
|
|
9
|
+
/** An icon of the page, or an empty one when the page is older than the icon. */
|
|
10
|
+
export declare function icon(name: string): WebIcon;
|
|
11
|
+
export declare function message(error: unknown): string;
|
|
12
|
+
/** `2 hours`, `5 分钟`: how long until a time, roughly. */
|
|
13
|
+
export declare function until(time: number, now?: number): string;
|
|
14
|
+
export declare function basename(path: string): string;
|
|
15
|
+
interface State {
|
|
16
|
+
tasks: Task[];
|
|
17
|
+
loaded: boolean;
|
|
18
|
+
/** By task id, its runs once asked for. */
|
|
19
|
+
runs: Record<string, Run[]>;
|
|
20
|
+
/** Counts the asks for a new task from the head of the page, which opens the editor of the page. */
|
|
21
|
+
asks: number;
|
|
22
|
+
}
|
|
23
|
+
/** The tasks of the scheduler, read again when the data of the package changes. */
|
|
24
|
+
export declare class CronClient {
|
|
25
|
+
protected readonly api: WebExtensionAPI;
|
|
26
|
+
state: State;
|
|
27
|
+
protected readonly listeners: Set<() => void>;
|
|
28
|
+
protected stop?: () => void;
|
|
29
|
+
constructor(api: WebExtensionAPI);
|
|
30
|
+
start(): void;
|
|
31
|
+
dispose(): void;
|
|
32
|
+
subscribe(listener: () => void): () => void;
|
|
33
|
+
askNew(): void;
|
|
34
|
+
load(): Promise<void>;
|
|
35
|
+
loadRuns(taskId: string): Promise<void>;
|
|
36
|
+
call<T>(method: string, ...params: unknown[]): Promise<T>;
|
|
37
|
+
protected set(change: Partial<State>): void;
|
|
38
|
+
}
|
|
39
|
+
/** Shows the conversation of a run, opened on the server when it is not open. */
|
|
40
|
+
export declare function openRun(run: Run): Promise<void>;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=page.d.ts.map
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronClient = exports.PAGE = exports.pi = void 0;
|
|
4
|
+
exports.bindPage = bindPage;
|
|
5
|
+
exports.t = t;
|
|
6
|
+
exports.icon = icon;
|
|
7
|
+
exports.message = message;
|
|
8
|
+
exports.until = until;
|
|
9
|
+
exports.basename = basename;
|
|
10
|
+
exports.openRun = openRun;
|
|
11
|
+
const cron_protocol_1 = require("./cron-protocol");
|
|
12
|
+
const i18n_1 = require("./i18n");
|
|
13
|
+
exports.PAGE = `${cron_protocol_1.NAME}/tasks`;
|
|
14
|
+
function bindPage(api) {
|
|
15
|
+
exports.pi = api;
|
|
16
|
+
}
|
|
17
|
+
function t(key, values = {}) {
|
|
18
|
+
return i18n_1.CronWords.format(i18n_1.CronWords.of(exports.pi.ui.language)[key], values);
|
|
19
|
+
}
|
|
20
|
+
/** An icon of the page, or an empty one when the page is older than the icon. */
|
|
21
|
+
function icon(name) {
|
|
22
|
+
var _a;
|
|
23
|
+
return (_a = exports.pi.ui.icons[name]) !== null && _a !== void 0 ? _a : exports.pi.ui.icons.Square;
|
|
24
|
+
}
|
|
25
|
+
function message(error) {
|
|
26
|
+
return error instanceof Error ? error.message : String(error);
|
|
27
|
+
}
|
|
28
|
+
/** `2 hours`, `5 分钟`: how long until a time, roughly. */
|
|
29
|
+
function until(time, now = Date.now()) {
|
|
30
|
+
const minutes = Math.max(1, Math.round((time - now) / 60000));
|
|
31
|
+
const zh = exports.pi.ui.language === 'zh-CN';
|
|
32
|
+
const [amount, unit] = minutes < 60 ? [minutes, 'minute'] : minutes < 48 * 60 ? [Math.round(minutes / 60), 'hour'] : [Math.round(minutes / 1440), 'day'];
|
|
33
|
+
if (zh) {
|
|
34
|
+
return `${amount} ${{ minute: '分钟', hour: '小时', day: '天' }[unit]}`;
|
|
35
|
+
}
|
|
36
|
+
return `${amount} ${unit}${amount === 1 ? '' : 's'}`;
|
|
37
|
+
}
|
|
38
|
+
function basename(path) {
|
|
39
|
+
return (path
|
|
40
|
+
.replace(/[\\/]+$/, '')
|
|
41
|
+
.split(/[\\/]/)
|
|
42
|
+
.pop() || path);
|
|
43
|
+
}
|
|
44
|
+
/** The tasks of the scheduler, read again when the data of the package changes. */
|
|
45
|
+
class CronClient {
|
|
46
|
+
constructor(api) {
|
|
47
|
+
this.api = api;
|
|
48
|
+
this.state = { tasks: [], loaded: false, runs: {}, asks: 0 };
|
|
49
|
+
this.listeners = new Set();
|
|
50
|
+
}
|
|
51
|
+
start() {
|
|
52
|
+
this.stop = this.api.storage.onChange(keys => {
|
|
53
|
+
if (keys.includes(cron_protocol_1.Keys.TASKS)) {
|
|
54
|
+
void this.load();
|
|
55
|
+
}
|
|
56
|
+
for (const key of keys) {
|
|
57
|
+
const id = key.startsWith('runs/') ? key.slice(5) : undefined;
|
|
58
|
+
if (id && this.state.runs[id]) {
|
|
59
|
+
void this.loadRuns(id);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
void this.load();
|
|
64
|
+
}
|
|
65
|
+
dispose() {
|
|
66
|
+
var _a;
|
|
67
|
+
(_a = this.stop) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
68
|
+
this.listeners.clear();
|
|
69
|
+
}
|
|
70
|
+
subscribe(listener) {
|
|
71
|
+
this.listeners.add(listener);
|
|
72
|
+
return () => this.listeners.delete(listener);
|
|
73
|
+
}
|
|
74
|
+
askNew() {
|
|
75
|
+
this.set({ asks: this.state.asks + 1 });
|
|
76
|
+
}
|
|
77
|
+
async load() {
|
|
78
|
+
// Read through the storage too, so that its changes are heard.
|
|
79
|
+
await this.api.storage.get(cron_protocol_1.Keys.TASKS).catch(() => undefined);
|
|
80
|
+
const tasks = await this.api.callHost('list');
|
|
81
|
+
this.set({ tasks, loaded: true });
|
|
82
|
+
}
|
|
83
|
+
async loadRuns(taskId) {
|
|
84
|
+
await this.api.storage.get(cron_protocol_1.Keys.runs(taskId)).catch(() => undefined);
|
|
85
|
+
const runs = await this.api.callHost('runs', taskId);
|
|
86
|
+
this.set({ runs: { ...this.state.runs, [taskId]: runs } });
|
|
87
|
+
}
|
|
88
|
+
call(method, ...params) {
|
|
89
|
+
return this.api.callHost(method, ...params);
|
|
90
|
+
}
|
|
91
|
+
set(change) {
|
|
92
|
+
this.state = { ...this.state, ...change };
|
|
93
|
+
for (const listener of this.listeners) {
|
|
94
|
+
listener();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.CronClient = CronClient;
|
|
99
|
+
/** Shows the conversation of a run, opened on the server when it is not open. */
|
|
100
|
+
async function openRun(run) {
|
|
101
|
+
var _a;
|
|
102
|
+
if (!run.sessionFile) {
|
|
103
|
+
exports.pi.ui.notify(t('noChat'), 'warning');
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
try {
|
|
107
|
+
const open = (await exports.pi.server.listSessions()).find(session => session.sessionFile === run.sessionFile);
|
|
108
|
+
const sessionId = (_a = open === null || open === void 0 ? void 0 : open.sessionId) !== null && _a !== void 0 ? _a : (await exports.pi.server.openSession({ cwd: run.cwd, sessionFile: run.sessionFile, group: cron_protocol_1.NAME })).sessionId;
|
|
109
|
+
await exports.pi.switchSession(sessionId);
|
|
110
|
+
exports.pi.ui.showView('');
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
exports.pi.ui.notify(t('failedAction', { message: message(error) }), 'error');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=page.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** What a task of the examples does, drawn: the commits of a day, checks run again, a report written. */
|
|
2
|
+
export type ExamplePicture = 'commits' | 'checks' | 'report';
|
|
3
|
+
export declare function ExampleArt({ picture }: {
|
|
4
|
+
picture: ExamplePicture;
|
|
5
|
+
}): React.ReactElement;
|
|
6
|
+
//# sourceMappingURL=pictures.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExampleArt = ExampleArt;
|
|
4
|
+
const page_1 = require("./page");
|
|
5
|
+
const react_1 = require("./react");
|
|
6
|
+
const Line = ({ x, y, w }) => react_1.React.createElement("rect", { className: "ta-pic-line", x: x, y: y, width: w, height: "5", rx: "2.5" });
|
|
7
|
+
/** In the corner: that it comes round again, a clock. */
|
|
8
|
+
function Clock() {
|
|
9
|
+
return (react_1.React.createElement(react_1.React.Fragment, null,
|
|
10
|
+
react_1.React.createElement("circle", { className: "ta-pic-accent", cx: "140", cy: "20", r: "11" }),
|
|
11
|
+
react_1.React.createElement("path", { className: "ta-pic-stroke ta-pic-fine", d: "M140 14v6l4 2.5" })));
|
|
12
|
+
}
|
|
13
|
+
function Commits() {
|
|
14
|
+
return (react_1.React.createElement(react_1.React.Fragment, null,
|
|
15
|
+
react_1.React.createElement("path", { className: "ta-pic-stroke ta-pic-thin", d: "M22 18v64" }),
|
|
16
|
+
[24, 46, 68].map((y, index) => (react_1.React.createElement(react_1.React.Fragment, { key: y },
|
|
17
|
+
react_1.React.createElement("circle", { className: index === 0 ? 'ta-pic-mark' : 'ta-pic-dot', cx: "22", cy: y, r: "5" }),
|
|
18
|
+
react_1.React.createElement("rect", { className: index === 0 ? 'ta-pic-accent' : 'ta-pic-pane', x: "36", y: y - 8, width: index === 0 ? 80 : 70, height: "16", rx: "5" }),
|
|
19
|
+
react_1.React.createElement("rect", { className: index === 0 ? 'ta-pic-mark ta-pic-soft' : 'ta-pic-line', x: "44", y: y - 2.5, width: index === 0 ? 46 : 38, height: "5", rx: "2.5" })))),
|
|
20
|
+
react_1.React.createElement(Clock, null)));
|
|
21
|
+
}
|
|
22
|
+
function Checks() {
|
|
23
|
+
return (react_1.React.createElement(react_1.React.Fragment, null,
|
|
24
|
+
[20, 42, 64].map(y => (react_1.React.createElement(react_1.React.Fragment, { key: y },
|
|
25
|
+
react_1.React.createElement("circle", { className: "ta-pic-mark", cx: "24", cy: y + 6, r: "6" }),
|
|
26
|
+
react_1.React.createElement("path", { className: "ta-pic-tick", d: `M21 ${y + 6}l2.2 2.2 4-4.4` }),
|
|
27
|
+
react_1.React.createElement(Line, { x: 38, y: y + 3.5, w: y === 42 ? 52 : 68 })))),
|
|
28
|
+
react_1.React.createElement("circle", { className: "ta-pic-accent", cx: "128", cy: "56", r: "18" }),
|
|
29
|
+
react_1.React.createElement("path", { className: "ta-pic-stroke ta-pic-fine", d: "M137 50.5a10 10 0 1 0 1 8.5M137.5 44.5v6.5h-6.5" }),
|
|
30
|
+
react_1.React.createElement(Clock, null)));
|
|
31
|
+
}
|
|
32
|
+
function Report() {
|
|
33
|
+
return (react_1.React.createElement(react_1.React.Fragment, null,
|
|
34
|
+
react_1.React.createElement("rect", { className: "ta-pic-accent", x: "30", y: "12", width: "84", height: "74", rx: "6" }),
|
|
35
|
+
react_1.React.createElement("rect", { className: "ta-pic-mark", x: "40", y: "22", width: "40", height: "6", rx: "3" }),
|
|
36
|
+
[36, 46, 56, 66].map((y, index) => (react_1.React.createElement("rect", { key: y, className: "ta-pic-mark ta-pic-soft", x: "40", y: y, width: [62, 54, 64, 36][index], height: "5", rx: "2.5" }))),
|
|
37
|
+
react_1.React.createElement(Clock, null)));
|
|
38
|
+
}
|
|
39
|
+
const SHAPES = { commits: Commits, checks: Checks, report: Report };
|
|
40
|
+
function ExampleArt({ picture }) {
|
|
41
|
+
const Picture = page_1.pi.ui.Picture;
|
|
42
|
+
const Shapes = SHAPES[picture];
|
|
43
|
+
return (react_1.React.createElement(Picture, null,
|
|
44
|
+
react_1.React.createElement(Shapes, null)));
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=pictures.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as ReactModule from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The React of the page, which a web extension cannot import: `activate` binds it before anything
|
|
4
|
+
* renders. The JSX of this package compiles to `React.createElement` (tsconfig.json).
|
|
5
|
+
*/
|
|
6
|
+
export declare let React: typeof ReactModule;
|
|
7
|
+
export declare function bind(react: typeof ReactModule): void;
|
|
8
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WebCustomMessage } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** What `/loop`, `/remind` and `/schedule` answered, in the language of the page. */
|
|
3
|
+
export declare function ReplyMessage({ message }: {
|
|
4
|
+
message: WebCustomMessage;
|
|
5
|
+
}): import("react").JSX.Element | null;
|
|
6
|
+
//# sourceMappingURL=reply.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReplyMessage = ReplyMessage;
|
|
4
|
+
const commands_1 = require("./commands");
|
|
5
|
+
const page_1 = require("./page");
|
|
6
|
+
// biome-ignore lint/style/useImportType: the JSX below compiles to React.createElement (jsxFactory)
|
|
7
|
+
const react_1 = require("./react");
|
|
8
|
+
const schedule_util_1 = require("./schedule-util");
|
|
9
|
+
function TaskLine({ task }) {
|
|
10
|
+
const now = new Date();
|
|
11
|
+
return (react_1.React.createElement("div", { className: "tcr-reply-task" },
|
|
12
|
+
react_1.React.createElement("span", { className: "tcr-task-name" }, task.name),
|
|
13
|
+
react_1.React.createElement("span", { className: "tcr-chip" }, schedule_util_1.ScheduleUtil.describe(task.schedule, page_1.pi.ui.language, now)),
|
|
14
|
+
react_1.React.createElement("span", { className: "tcr-muted", title: task.cwd }, (0, page_1.basename)(task.cwd)),
|
|
15
|
+
task.enabled && task.nextRunAt && react_1.React.createElement("span", { className: "tcr-muted" }, (0, page_1.t)('nextAt', { time: schedule_util_1.ScheduleUtil.clock(new Date(task.nextRunAt), now) }))));
|
|
16
|
+
}
|
|
17
|
+
function Card({ title, children }) {
|
|
18
|
+
const Alarm = (0, page_1.icon)('AlarmClock');
|
|
19
|
+
return (react_1.React.createElement("div", { className: "tcr-reply" },
|
|
20
|
+
react_1.React.createElement("div", { className: "tcr-reply-head" },
|
|
21
|
+
react_1.React.createElement(Alarm, { size: 14 }),
|
|
22
|
+
react_1.React.createElement("span", null, title),
|
|
23
|
+
react_1.React.createElement("button", { type: "button", className: "tcr-link", onClick: () => page_1.pi.ui.showView(page_1.PAGE) }, (0, page_1.t)('show'))),
|
|
24
|
+
children));
|
|
25
|
+
}
|
|
26
|
+
/** What `/loop`, `/remind` and `/schedule` answered, in the language of the page. */
|
|
27
|
+
function ReplyMessage({ message }) {
|
|
28
|
+
const reply = message.details;
|
|
29
|
+
if (!(reply === null || reply === void 0 ? void 0 : reply.kind)) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
switch (reply.kind) {
|
|
33
|
+
case 'task':
|
|
34
|
+
return (react_1.React.createElement(Card, { title: (0, page_1.t)(reply.event) },
|
|
35
|
+
react_1.React.createElement(TaskLine, { task: reply.task })));
|
|
36
|
+
case 'removed':
|
|
37
|
+
return react_1.React.createElement(Card, { title: reply.tasks.length ? (0, page_1.t)('removed', { names: reply.tasks.map(task => task.name).join(', ') }) : (0, page_1.t)('removedNone') });
|
|
38
|
+
case 'started':
|
|
39
|
+
return react_1.React.createElement(Card, { title: (0, page_1.t)('started', { name: reply.task.name }) });
|
|
40
|
+
case 'list':
|
|
41
|
+
return (react_1.React.createElement(Card, { title: reply.tasks.length ? (0, page_1.t)('count', { count: reply.tasks.length }) : (0, page_1.t)('noTasks') }, reply.tasks.map(task => (react_1.React.createElement(TaskLine, { key: task.id, task: task })))));
|
|
42
|
+
case 'show':
|
|
43
|
+
return (react_1.React.createElement(Card, { title: reply.task.name },
|
|
44
|
+
react_1.React.createElement(TaskLine, { task: reply.task }),
|
|
45
|
+
react_1.React.createElement("div", { className: "tcr-prompt-text" }, reply.task.prompt)));
|
|
46
|
+
case 'help':
|
|
47
|
+
return (react_1.React.createElement(Card, { title: (0, page_1.t)('help') },
|
|
48
|
+
react_1.React.createElement("pre", { className: "tcr-help" }, commands_1.HELP)));
|
|
49
|
+
case 'error':
|
|
50
|
+
return react_1.React.createElement("div", { className: "tcr-reply tcr-reply-error" }, reply.message);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=reply.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type NotifyLevel, type Schedule, type Task } from './cron-protocol';
|
|
2
|
+
export declare const THINKING_LEVELS: readonly string[];
|
|
3
|
+
export declare const NOTIFY_LEVELS: readonly NotifyLevel[];
|
|
4
|
+
/** Durations as people write them: `30m`, `1h30m`, `2d`. */
|
|
5
|
+
export declare namespace Duration {
|
|
6
|
+
/** Milliseconds; undefined when the text is not a duration. */
|
|
7
|
+
function parse(text: string): number | undefined;
|
|
8
|
+
/** `1h30m`. */
|
|
9
|
+
function format(ms: number): string;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace ScheduleUtil {
|
|
12
|
+
/** A rule as a tool or a page sends it, checked; a time of `once` becomes ISO. Throws with what is wrong. */
|
|
13
|
+
function check(value: unknown): Schedule;
|
|
14
|
+
/** The next time after `now`; undefined when there is none (a time that passed, a rule that never matches). */
|
|
15
|
+
function next(schedule: Schedule, now: Date): Date | undefined;
|
|
16
|
+
function repeats(schedule: Schedule): boolean;
|
|
17
|
+
/** What the task's notify level is, with its default. */
|
|
18
|
+
function notifyLevel(task: Pick<Task, 'notify' | 'schedule'>): NotifyLevel;
|
|
19
|
+
function shouldNotify(level: NotifyLevel, failed: boolean): boolean;
|
|
20
|
+
/** `11/12 09:00` in local time; the year too when it is not this one. */
|
|
21
|
+
function clock(time: Date, now?: Date): string;
|
|
22
|
+
/** The rule in words: `Daily at 09:00`, `每 30 分钟`. */
|
|
23
|
+
function describe(schedule: Schedule, language: string, now?: Date): string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=schedule-util.d.ts.map
|