@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,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Limits = exports.Keys = exports.RUN_MARK = exports.REPLY_TYPE = exports.TA_HOST_EVENT = exports.NAME = void 0;
|
|
4
|
+
/** The name of the package: of its data, its host and the group of the conversations of its runs. */
|
|
5
|
+
exports.NAME = '@celljs/ta-cron';
|
|
6
|
+
/** TA_HOST_EVENT of @celljs/ta-protocol, which the bundle of the pi extension does not import. */
|
|
7
|
+
exports.TA_HOST_EVENT = 'ta:host';
|
|
8
|
+
/** The custom message by which the commands answer: shown in the conversation, never read by the model. */
|
|
9
|
+
exports.REPLY_TYPE = 'ta-cron';
|
|
10
|
+
/**
|
|
11
|
+
* The start of what a run adds to the system prompt: the pi extension finds it there and keeps its tool
|
|
12
|
+
* and commands out of the run, so that a scheduled run never schedules more work.
|
|
13
|
+
*/
|
|
14
|
+
exports.RUN_MARK = '<ta-cron-run>';
|
|
15
|
+
var Keys;
|
|
16
|
+
(function (Keys) {
|
|
17
|
+
Keys.TASKS = 'tasks';
|
|
18
|
+
Keys.LATEST = 'latest';
|
|
19
|
+
function runs(taskId) {
|
|
20
|
+
return `runs/${taskId}`;
|
|
21
|
+
}
|
|
22
|
+
Keys.runs = runs;
|
|
23
|
+
})(Keys || (exports.Keys = Keys = {}));
|
|
24
|
+
var Limits;
|
|
25
|
+
(function (Limits) {
|
|
26
|
+
/** The runs kept per task, newest first. */
|
|
27
|
+
Limits.RUNS_KEPT = 20;
|
|
28
|
+
Limits.SUMMARY_MAX = 4000;
|
|
29
|
+
/** The shortest interval. */
|
|
30
|
+
Limits.MIN_INTERVAL_MS = 60000;
|
|
31
|
+
/** A run that takes longer is stopped and fails. */
|
|
32
|
+
Limits.RUN_TIMEOUT_MS = 30 * 60000;
|
|
33
|
+
/** A task that runs once and whose time passed by more than this while the Ta service was not running is missed, not run. */
|
|
34
|
+
Limits.GRACE_MS = 5 * 60000;
|
|
35
|
+
/** Runs at the same time; the others wait for one to end. */
|
|
36
|
+
Limits.PARALLEL_RUNS = 3;
|
|
37
|
+
})(Limits || (exports.Limits = Limits = {}));
|
|
38
|
+
//# sourceMappingURL=cron-protocol.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Task } from './cron-protocol';
|
|
2
|
+
import { type RepeatKind } from './form-util';
|
|
3
|
+
import { type CronClient } from './page';
|
|
4
|
+
/** A task being made (`task` none) or changed, in a dialog over the page. */
|
|
5
|
+
export interface Editing {
|
|
6
|
+
task?: Task;
|
|
7
|
+
/** What a new one starts with, as an example fills it. */
|
|
8
|
+
prompt?: string;
|
|
9
|
+
repeat?: RepeatKind;
|
|
10
|
+
}
|
|
11
|
+
/** The dialog of a task: what Ta does, when, where, and when it tells the user. */
|
|
12
|
+
export declare function TaskEditor({ client, editing, onClose }: {
|
|
13
|
+
client: CronClient;
|
|
14
|
+
editing: Editing;
|
|
15
|
+
onClose(): void;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskEditor = TaskEditor;
|
|
4
|
+
const form_util_1 = require("./form-util");
|
|
5
|
+
const page_1 = require("./page");
|
|
6
|
+
const react_1 = require("./react");
|
|
7
|
+
const schedule_util_1 = require("./schedule-util");
|
|
8
|
+
const REPEATS = ['every', 'daily', 'weekdays', 'weekly', 'custom'];
|
|
9
|
+
const UNITS = [
|
|
10
|
+
['m', 'minutes'],
|
|
11
|
+
['h', 'hours'],
|
|
12
|
+
['d', 'days'],
|
|
13
|
+
];
|
|
14
|
+
const NOTIFY = [
|
|
15
|
+
['', 'notifyDefault'],
|
|
16
|
+
['always', 'notifyAlways'],
|
|
17
|
+
['error', 'notifyError'],
|
|
18
|
+
['never', 'notifyNever'],
|
|
19
|
+
];
|
|
20
|
+
function weekdayNames() {
|
|
21
|
+
const format = new Intl.DateTimeFormat(page_1.pi.ui.language === 'zh-CN' ? 'zh-CN' : 'en', { weekday: 'short' });
|
|
22
|
+
// 2023-01-01 was a Sunday.
|
|
23
|
+
return Array.from({ length: 7 }, (_, day) => format.format(new Date(2023, 0, 1 + day)));
|
|
24
|
+
}
|
|
25
|
+
function Segments({ value, options, onChange }) {
|
|
26
|
+
return (react_1.React.createElement("div", { className: "tcr-segments" }, options.map(([key, label]) => (react_1.React.createElement("button", { key: key, type: "button", "aria-pressed": value === key, className: "tcr-segment", onClick: () => onChange(key) }, label)))));
|
|
27
|
+
}
|
|
28
|
+
/** The model and the thinking level of the runs; the default is that of the settings. */
|
|
29
|
+
function ModelFields({ form, set, cwd }) {
|
|
30
|
+
return (react_1.React.createElement("div", { className: "tcr-grid" },
|
|
31
|
+
react_1.React.createElement("div", { className: "tcr-field" },
|
|
32
|
+
react_1.React.createElement("span", { className: "tcr-label" }, (0, page_1.t)('model')),
|
|
33
|
+
react_1.React.createElement(page_1.pi.ui.ModelPicker, { cwd: cwd, value: form.model, label: (0, page_1.t)('model'), onChange: model => set({ model }) })),
|
|
34
|
+
react_1.React.createElement("label", { className: "tcr-field" },
|
|
35
|
+
react_1.React.createElement("span", { className: "tcr-label" }, (0, page_1.t)('thinking')),
|
|
36
|
+
react_1.React.createElement("select", { className: "tcr-input", name: "thinking", value: form.thinking, onChange: event => set({ thinking: event.target.value }) },
|
|
37
|
+
react_1.React.createElement("option", { value: "" }, (0, page_1.t)('notifyDefault')),
|
|
38
|
+
schedule_util_1.THINKING_LEVELS.map(level => (react_1.React.createElement("option", { key: level, value: level }, level)))))));
|
|
39
|
+
}
|
|
40
|
+
/** The controls of when a task runs, with the next time it would. */
|
|
41
|
+
function When({ form, set }) {
|
|
42
|
+
const preview = form_util_1.FormUtil.preview(form, new Date());
|
|
43
|
+
const days = weekdayNames();
|
|
44
|
+
let rule = null;
|
|
45
|
+
if (form.mode === 'once') {
|
|
46
|
+
rule = react_1.React.createElement("input", { className: "tcr-input", type: "datetime-local", value: form.at, onChange: event => set({ at: event.target.value }) });
|
|
47
|
+
}
|
|
48
|
+
else if (form.repeat === 'every') {
|
|
49
|
+
rule = (react_1.React.createElement("div", { className: "tcr-row" },
|
|
50
|
+
react_1.React.createElement("input", { className: "tcr-input tcr-amount", type: "number", min: 1, value: form.amount, onChange: event => set({ amount: Number(event.target.value) }) }),
|
|
51
|
+
react_1.React.createElement("select", { className: "tcr-input", value: form.unit, onChange: event => set({ unit: event.target.value }) }, UNITS.map(([unit, word]) => (react_1.React.createElement("option", { key: unit, value: unit }, (0, page_1.t)(word)))))));
|
|
52
|
+
}
|
|
53
|
+
else if (form.repeat === 'custom') {
|
|
54
|
+
rule = react_1.React.createElement("input", { className: "tcr-input tcr-mono", value: form.cron, placeholder: "0 9 * * 1-5", onChange: event => set({ cron: event.target.value }) });
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
rule = (react_1.React.createElement("div", { className: "tcr-row" },
|
|
58
|
+
form.repeat === 'weekly' && (react_1.React.createElement("select", { className: "tcr-input", value: form.weekday, onChange: event => set({ weekday: Number(event.target.value) }) }, days.map((day, index) => (react_1.React.createElement("option", { key: day, value: index }, day))))),
|
|
59
|
+
react_1.React.createElement("input", { className: "tcr-input", type: "time", value: form.time, onChange: event => set({ time: event.target.value }) })));
|
|
60
|
+
}
|
|
61
|
+
return (react_1.React.createElement("div", { className: "tcr-field" },
|
|
62
|
+
react_1.React.createElement("div", { className: "tcr-label" }, (0, page_1.t)('when')),
|
|
63
|
+
react_1.React.createElement(Segments, { value: form.mode, options: [
|
|
64
|
+
['repeat', (0, page_1.t)('repeat')],
|
|
65
|
+
['once', (0, page_1.t)('once')],
|
|
66
|
+
], onChange: mode => set({ mode }) }),
|
|
67
|
+
form.mode === 'repeat' && react_1.React.createElement(Segments, { value: form.repeat, options: REPEATS.map(kind => [kind, (0, page_1.t)(kind)]), onChange: repeat => set({ repeat }) }),
|
|
68
|
+
rule,
|
|
69
|
+
react_1.React.createElement("div", { className: `tcr-preview${preview.error === undefined ? '' : ' tcr-bad'}` }, preview.next ? (0, page_1.t)('preview', { time: schedule_util_1.ScheduleUtil.clock(preview.next) }) : preview.error || (0, page_1.t)('noNext'))));
|
|
70
|
+
}
|
|
71
|
+
/** The dialog of a task: what Ta does, when, where, and when it tells the user. */
|
|
72
|
+
function TaskEditor({ client, editing, onClose }) {
|
|
73
|
+
const Dialog = page_1.pi.ui.Dialog;
|
|
74
|
+
const FolderPicker = page_1.pi.ui.FolderPicker;
|
|
75
|
+
const cwd = page_1.pi.ui.useCwd();
|
|
76
|
+
const [form, setForm] = react_1.React.useState(() => {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
const now = new Date();
|
|
79
|
+
if (editing.task) {
|
|
80
|
+
return form_util_1.FormUtil.fromTask(editing.task, now);
|
|
81
|
+
}
|
|
82
|
+
const empty = form_util_1.FormUtil.empty(cwd, now);
|
|
83
|
+
return { ...empty, prompt: (_a = editing.prompt) !== null && _a !== void 0 ? _a : '', repeat: (_b = editing.repeat) !== null && _b !== void 0 ? _b : empty.repeat };
|
|
84
|
+
});
|
|
85
|
+
const [picking, setPicking] = react_1.React.useState(false);
|
|
86
|
+
const [more, setMore] = react_1.React.useState(!!(form.name && editing.task) || !!form.notify);
|
|
87
|
+
const [saving, setSaving] = react_1.React.useState(false);
|
|
88
|
+
const set = (change) => setForm(current => ({ ...current, ...change }));
|
|
89
|
+
const valid = form.prompt.trim().length > 0 && !!form_util_1.FormUtil.preview(form, new Date()).next;
|
|
90
|
+
const save = async () => {
|
|
91
|
+
if (!valid || saving) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
setSaving(true);
|
|
95
|
+
try {
|
|
96
|
+
const input = form_util_1.FormUtil.input(form);
|
|
97
|
+
if (editing.task) {
|
|
98
|
+
await client.call('update', editing.task.id, { ...input, name: form.name, model: form.model, thinking: form.thinking, notify: form.notify });
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
await client.call('add', input);
|
|
102
|
+
// Asked once, on a click: the page tells of runs that end while it is hidden.
|
|
103
|
+
if (typeof Notification !== 'undefined' && Notification.permission === 'default') {
|
|
104
|
+
void Notification.requestPermission().catch(() => undefined);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
onClose();
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
page_1.pi.ui.notify((0, page_1.t)('failedAction', { message: (0, page_1.message)(error) }), 'error');
|
|
111
|
+
}
|
|
112
|
+
finally {
|
|
113
|
+
setSaving(false);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
return (react_1.React.createElement(Dialog, { title: editing.task ? (0, page_1.t)('editTask') : (0, page_1.t)('newTask'), onClose: onClose },
|
|
117
|
+
react_1.React.createElement("div", { className: "tcr-form" },
|
|
118
|
+
react_1.React.createElement("label", { className: "tcr-field" },
|
|
119
|
+
react_1.React.createElement("span", { className: "tcr-label" }, (0, page_1.t)('prompt')),
|
|
120
|
+
react_1.React.createElement("textarea", { className: "tcr-input tcr-prompt", rows: 4, value: form.prompt, placeholder: (0, page_1.t)('promptPlaceholder'), autoFocus: true, onChange: event => set({ prompt: event.target.value }), onKeyDown: event => (event.metaKey || event.ctrlKey) && event.key === 'Enter' && void save() })),
|
|
121
|
+
react_1.React.createElement(When, { form: form, set: set }),
|
|
122
|
+
react_1.React.createElement("div", { className: "tcr-field" },
|
|
123
|
+
react_1.React.createElement("span", { className: "tcr-label" }, (0, page_1.t)('directory')),
|
|
124
|
+
react_1.React.createElement("button", { type: "button", className: "tcr-input tcr-folder", title: form.cwd, onClick: () => setPicking(true) },
|
|
125
|
+
(0, page_1.basename)(form.cwd || cwd),
|
|
126
|
+
react_1.React.createElement("span", { className: "tcr-folder-path" }, form.cwd || cwd))),
|
|
127
|
+
react_1.React.createElement(ModelFields, { form: form, set: set, cwd: form.cwd || cwd }),
|
|
128
|
+
more ? (react_1.React.createElement("div", { className: "tcr-grid" },
|
|
129
|
+
react_1.React.createElement("label", { className: "tcr-field" },
|
|
130
|
+
react_1.React.createElement("span", { className: "tcr-label" }, (0, page_1.t)('name')),
|
|
131
|
+
react_1.React.createElement("input", { className: "tcr-input", value: form.name, placeholder: (0, page_1.t)('namePlaceholder'), onChange: event => set({ name: event.target.value }) })),
|
|
132
|
+
react_1.React.createElement("label", { className: "tcr-field" },
|
|
133
|
+
react_1.React.createElement("span", { className: "tcr-label" }, (0, page_1.t)('notify')),
|
|
134
|
+
react_1.React.createElement("select", { className: "tcr-input", value: form.notify, onChange: event => set({ notify: event.target.value }) }, NOTIFY.map(([level, word]) => (react_1.React.createElement("option", { key: level, value: level }, (0, page_1.t)(word)))))))) : (react_1.React.createElement("button", { type: "button", className: "tcr-link", onClick: () => setMore(true) }, (0, page_1.t)('more'))),
|
|
135
|
+
react_1.React.createElement("div", { className: "tcr-actions" },
|
|
136
|
+
react_1.React.createElement("button", { type: "button", className: "tcr-button", onClick: onClose }, (0, page_1.t)('cancel')),
|
|
137
|
+
react_1.React.createElement("button", { type: "button", className: "tcr-button tcr-primary", disabled: !valid || saving, onClick: () => void save() }, editing.task ? (0, page_1.t)('save') : (0, page_1.t)('create')))),
|
|
138
|
+
picking && (react_1.React.createElement(FolderPicker, { initial: form.cwd || cwd, onPick: path => {
|
|
139
|
+
set({ cwd: path });
|
|
140
|
+
setPicking(false);
|
|
141
|
+
}, onClose: () => setPicking(false) }))));
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=editor.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const NO_SERVER = "Scheduled tasks need the Ta service, which runs them: start it with `ta serve` (or open Ta Desktop) and talk to Ta in its page.";
|
|
2
|
+
export declare const NO_SCHEDULER = "The scheduler did not start in the Ta service; its log says why.";
|
|
3
|
+
export declare const NOT_IN_RUN = "This is a scheduled run: it does not schedule more work. Say in your summary what should be scheduled.";
|
|
4
|
+
interface Pi {
|
|
5
|
+
events: {
|
|
6
|
+
emit(event: string, data: unknown): void;
|
|
7
|
+
};
|
|
8
|
+
on(event: string, handler: (event: never, ctx: never) => unknown): unknown;
|
|
9
|
+
registerTool(tool: never): unknown;
|
|
10
|
+
registerCommand(name: string, options: never): void;
|
|
11
|
+
getActiveTools(): string[];
|
|
12
|
+
setActiveTools(names: string[]): void;
|
|
13
|
+
sendMessage(message: {
|
|
14
|
+
customType: string;
|
|
15
|
+
content: string;
|
|
16
|
+
display: boolean;
|
|
17
|
+
details: unknown;
|
|
18
|
+
}): void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The pi extension: `/loop`, `/remind` and `/schedule`, and the tool `schedule_task`, for every
|
|
22
|
+
* conversation but those of runs. They work with the scheduler of the Ta service (host.ts); without it
|
|
23
|
+
* they say so. Their answers are messages the page shows and the model never reads.
|
|
24
|
+
*/
|
|
25
|
+
export default function activate(pi: Pi): void;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NOT_IN_RUN = exports.NO_SCHEDULER = exports.NO_SERVER = void 0;
|
|
4
|
+
exports.default = activate;
|
|
5
|
+
const commands_1 = require("./commands");
|
|
6
|
+
const cron_protocol_1 = require("./cron-protocol");
|
|
7
|
+
const server_texts_1 = require("./server-texts");
|
|
8
|
+
const tool_1 = require("./tool");
|
|
9
|
+
/** Under the Ta service the host answers at once; `ta` alone has nobody to answer. */
|
|
10
|
+
const HOST_WAIT_MS = 1000;
|
|
11
|
+
exports.NO_SERVER = 'Scheduled tasks need the Ta service, which runs them: start it with `ta serve` (or open Ta Desktop) and talk to Ta in its page.';
|
|
12
|
+
exports.NO_SCHEDULER = 'The scheduler did not start in the Ta service; its log says why.';
|
|
13
|
+
exports.NOT_IN_RUN = 'This is a scheduled run: it does not schedule more work. Say in your summary what should be scheduled.';
|
|
14
|
+
/**
|
|
15
|
+
* The pi extension: `/loop`, `/remind` and `/schedule`, and the tool `schedule_task`, for every
|
|
16
|
+
* conversation but those of runs. They work with the scheduler of the Ta service (host.ts); without it
|
|
17
|
+
* they say so. Their answers are messages the page shows and the model never reads.
|
|
18
|
+
*/
|
|
19
|
+
function activate(pi) {
|
|
20
|
+
let reached;
|
|
21
|
+
const reach = () => (reached !== null && reached !== void 0 ? reached : (reached = new Promise(resolve => {
|
|
22
|
+
const timer = setTimeout(() => resolve({ answered: false }), HOST_WAIT_MS);
|
|
23
|
+
pi.events.emit(cron_protocol_1.TA_HOST_EVENT, {
|
|
24
|
+
name: cron_protocol_1.NAME,
|
|
25
|
+
resolve: (answer) => {
|
|
26
|
+
clearTimeout(timer);
|
|
27
|
+
resolve({ answered: true, host: answer.host, scheduler: answer.service });
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
})));
|
|
31
|
+
const isRun = (ctx) => ctx.getSystemPrompt().includes(cron_protocol_1.RUN_MARK);
|
|
32
|
+
const scheduler = async (ctx) => {
|
|
33
|
+
if (isRun(ctx)) {
|
|
34
|
+
throw new Error(exports.NOT_IN_RUN);
|
|
35
|
+
}
|
|
36
|
+
const found = await reach();
|
|
37
|
+
if (!found.scheduler || !found.host) {
|
|
38
|
+
throw new Error(found.answered ? exports.NO_SCHEDULER : exports.NO_SERVER);
|
|
39
|
+
}
|
|
40
|
+
const host = found.host;
|
|
41
|
+
// Where this conversation works, as the clients name it (a path or an ssh:// location).
|
|
42
|
+
const cwd = async () => { var _a; return (_a = (await host.listSessions()).find(info => info.piSessionId === ctx.sessionManager.getSessionId())) === null || _a === void 0 ? void 0 : _a.cwd; };
|
|
43
|
+
return { scheduler: found.scheduler, cwd };
|
|
44
|
+
};
|
|
45
|
+
pi.on('session_start', () => {
|
|
46
|
+
void reach();
|
|
47
|
+
});
|
|
48
|
+
pi.on('before_agent_start', (_event, ctx) => {
|
|
49
|
+
if (isRun(ctx)) {
|
|
50
|
+
pi.setActiveTools(pi.getActiveTools().filter(name => name !== tool_1.CronTool.NAME));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
// The answers of the commands are for the user.
|
|
54
|
+
pi.on('context', (event) => {
|
|
55
|
+
const messages = event.messages.filter(message => !(message.role === 'custom' && message.customType === cron_protocol_1.REPLY_TYPE));
|
|
56
|
+
return messages.length === event.messages.length ? undefined : { messages };
|
|
57
|
+
});
|
|
58
|
+
pi.registerTool({
|
|
59
|
+
...tool_1.CronTool.DEFINITION,
|
|
60
|
+
execute: async (_id, params, _signal, _update, ctx) => {
|
|
61
|
+
const found = await scheduler(ctx);
|
|
62
|
+
const text = await tool_1.CronTool.run(found.scheduler, params !== null && params !== void 0 ? params : {}, {
|
|
63
|
+
cwd: found.cwd,
|
|
64
|
+
confirm: (title, message) => (ctx.hasUI ? ctx.ui.confirm(title, message) : Promise.resolve(false)),
|
|
65
|
+
});
|
|
66
|
+
return { content: [{ type: 'text', text }], details: undefined };
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
const reply = (answer) => pi.sendMessage({ customType: cron_protocol_1.REPLY_TYPE, content: commands_1.CronText.reply(answer), display: true, details: answer });
|
|
70
|
+
const command = (name, description, handle, completions) => pi.registerCommand(name, {
|
|
71
|
+
description,
|
|
72
|
+
getArgumentCompletions: completions,
|
|
73
|
+
handler: async (args, ctx) => {
|
|
74
|
+
try {
|
|
75
|
+
reply(await handle(args, await scheduler(ctx), ctx));
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
reply({ kind: 'error', message: error instanceof Error ? error.message : String(error) });
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
const create = async (input, found) => {
|
|
83
|
+
var _a;
|
|
84
|
+
const cwd = (_a = input.cwd) !== null && _a !== void 0 ? _a : (await found.cwd());
|
|
85
|
+
return { kind: 'task', event: 'created', task: await found.scheduler.add({ ...input, ...(cwd ? { cwd } : {}) }) };
|
|
86
|
+
};
|
|
87
|
+
command('loop', 'Run a prompt on a schedule: /loop 30m <prompt>, /loop @daily <prompt>, /loop "0 9 * * 1-5" <prompt>', (args, found) => create(commands_1.CommandParser.repeating(args), found), prefix => commands_1.CommandParser.loopCompletions(prefix));
|
|
88
|
+
command('remind', 'Run a prompt once: /remind in 45m <prompt>, /remind at 15:30 <prompt>', (args, found) => create(commands_1.CommandParser.reminder(args, new Date()), found));
|
|
89
|
+
let known = [];
|
|
90
|
+
command('schedule', 'Scheduled tasks: list, show, run, enable, disable, set, remove, clear, help', async (args, found, ctx) => {
|
|
91
|
+
const { action, rest } = commands_1.CommandParser.action(args);
|
|
92
|
+
const { scheduler } = found;
|
|
93
|
+
switch (action) {
|
|
94
|
+
case 'add':
|
|
95
|
+
return create(commands_1.CommandParser.repeating(rest), found);
|
|
96
|
+
case 'list':
|
|
97
|
+
known = await scheduler.list();
|
|
98
|
+
return { kind: 'list', tasks: known };
|
|
99
|
+
case 'show':
|
|
100
|
+
case 'runs': {
|
|
101
|
+
const task = await scheduler.get(rest);
|
|
102
|
+
return { kind: 'show', task, runs: await scheduler.runs(task.id, 10) };
|
|
103
|
+
}
|
|
104
|
+
case 'run': {
|
|
105
|
+
const task = await scheduler.get(rest);
|
|
106
|
+
return { kind: 'started', task, run: await scheduler.run(task.id) };
|
|
107
|
+
}
|
|
108
|
+
case 'enable':
|
|
109
|
+
case 'disable':
|
|
110
|
+
return { kind: 'task', event: `${action}d`, task: await scheduler.setEnabled(rest, action === 'enable') };
|
|
111
|
+
case 'set': {
|
|
112
|
+
const { ref, patch } = commands_1.CommandParser.patch(rest);
|
|
113
|
+
return { kind: 'task', event: 'updated', task: await scheduler.update(ref, patch) };
|
|
114
|
+
}
|
|
115
|
+
case 'remove': {
|
|
116
|
+
const task = await scheduler.get(rest);
|
|
117
|
+
if (ctx.hasUI && !(await ctx.ui.confirm(...server_texts_1.CronServerTexts.removeTask(task.name)))) {
|
|
118
|
+
return { kind: 'removed', tasks: [] };
|
|
119
|
+
}
|
|
120
|
+
return { kind: 'removed', tasks: [await scheduler.remove(task.id)] };
|
|
121
|
+
}
|
|
122
|
+
case 'clear': {
|
|
123
|
+
const cwd = await found.cwd();
|
|
124
|
+
const tasks = (await scheduler.list()).filter(task => task.cwd === cwd);
|
|
125
|
+
if (tasks.length === 0 || (ctx.hasUI && !(await ctx.ui.confirm(...server_texts_1.CronServerTexts.removeTasks(tasks.length))))) {
|
|
126
|
+
return { kind: 'removed', tasks: [] };
|
|
127
|
+
}
|
|
128
|
+
return { kind: 'removed', tasks: await scheduler.clear(cwd) };
|
|
129
|
+
}
|
|
130
|
+
case 'help':
|
|
131
|
+
return { kind: 'help' };
|
|
132
|
+
}
|
|
133
|
+
}, prefix => {
|
|
134
|
+
void reach().then(async (found) => {
|
|
135
|
+
var _a;
|
|
136
|
+
var _b;
|
|
137
|
+
known = (_b = (await ((_a = found.scheduler) === null || _a === void 0 ? void 0 : _a.list()))) !== null && _b !== void 0 ? _b : known;
|
|
138
|
+
});
|
|
139
|
+
return commands_1.CommandParser.completions(prefix, known);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=extension.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { NotifyLevel, Schedule, Task, TaskInput } from './cron-protocol';
|
|
2
|
+
export type RepeatKind = 'every' | 'daily' | 'weekdays' | 'weekly' | 'custom';
|
|
3
|
+
export type Unit = 'm' | 'h' | 'd';
|
|
4
|
+
/** What the dialog of a task holds, as the user fills it in. */
|
|
5
|
+
export interface TaskForm {
|
|
6
|
+
prompt: string;
|
|
7
|
+
name: string;
|
|
8
|
+
mode: 'repeat' | 'once';
|
|
9
|
+
repeat: RepeatKind;
|
|
10
|
+
amount: number;
|
|
11
|
+
unit: Unit;
|
|
12
|
+
/** `09:00`. */
|
|
13
|
+
time: string;
|
|
14
|
+
/** 0 is Sunday. */
|
|
15
|
+
weekday: number;
|
|
16
|
+
cron: string;
|
|
17
|
+
/** As an input of type datetime-local holds it: `2026-11-12T09:00`, local time. */
|
|
18
|
+
at: string;
|
|
19
|
+
cwd: string;
|
|
20
|
+
notify: NotifyLevel | '';
|
|
21
|
+
model: string;
|
|
22
|
+
thinking: string;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace FormUtil {
|
|
25
|
+
function localTime(date: Date): string;
|
|
26
|
+
function empty(cwd: string, now: Date): TaskForm;
|
|
27
|
+
/** The form of a task, its rule in the controls that say it. */
|
|
28
|
+
function fromTask(task: Task, now: Date): TaskForm;
|
|
29
|
+
/** The rule the form says; throws with what is wrong. */
|
|
30
|
+
function schedule(form: TaskForm): Schedule;
|
|
31
|
+
/** The next run of the form, or the reason there is none. */
|
|
32
|
+
function preview(form: TaskForm, now: Date): {
|
|
33
|
+
next?: Date;
|
|
34
|
+
error?: string;
|
|
35
|
+
};
|
|
36
|
+
/** What the scheduler takes to make or change the task. */
|
|
37
|
+
function input(form: TaskForm): TaskInput;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=form-util.d.ts.map
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormUtil = void 0;
|
|
4
|
+
const cron_expression_1 = require("./cron-expression");
|
|
5
|
+
const schedule_util_1 = require("./schedule-util");
|
|
6
|
+
function pad(value) {
|
|
7
|
+
return String(value).padStart(2, '0');
|
|
8
|
+
}
|
|
9
|
+
var FormUtil;
|
|
10
|
+
(function (FormUtil) {
|
|
11
|
+
function localTime(date) {
|
|
12
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
|
13
|
+
}
|
|
14
|
+
FormUtil.localTime = localTime;
|
|
15
|
+
function empty(cwd, now) {
|
|
16
|
+
const soon = new Date(now.getTime() + 60 * 60000);
|
|
17
|
+
soon.setMinutes(0, 0, 0);
|
|
18
|
+
return {
|
|
19
|
+
prompt: '',
|
|
20
|
+
name: '',
|
|
21
|
+
mode: 'repeat',
|
|
22
|
+
repeat: 'daily',
|
|
23
|
+
amount: 30,
|
|
24
|
+
unit: 'm',
|
|
25
|
+
time: '09:00',
|
|
26
|
+
weekday: 1,
|
|
27
|
+
cron: '0 9 * * *',
|
|
28
|
+
at: localTime(soon),
|
|
29
|
+
cwd,
|
|
30
|
+
notify: '',
|
|
31
|
+
model: '',
|
|
32
|
+
thinking: '',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
FormUtil.empty = empty;
|
|
36
|
+
/** The form of a task, its rule in the controls that say it. */
|
|
37
|
+
function fromTask(task, now) {
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
const form = {
|
|
40
|
+
...empty(task.cwd, now),
|
|
41
|
+
prompt: task.prompt,
|
|
42
|
+
name: task.name,
|
|
43
|
+
cwd: task.cwd,
|
|
44
|
+
notify: (_a = task.notify) !== null && _a !== void 0 ? _a : '',
|
|
45
|
+
model: (_b = task.model) !== null && _b !== void 0 ? _b : '',
|
|
46
|
+
thinking: (_c = task.thinking) !== null && _c !== void 0 ? _c : '',
|
|
47
|
+
};
|
|
48
|
+
return { ...form, ...ruleOf(task.schedule) };
|
|
49
|
+
}
|
|
50
|
+
FormUtil.fromTask = fromTask;
|
|
51
|
+
function ruleOf(schedule) {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
if (schedule.kind === 'once') {
|
|
54
|
+
return { mode: 'once', at: localTime(new Date(schedule.at)) };
|
|
55
|
+
}
|
|
56
|
+
if (schedule.kind === 'interval') {
|
|
57
|
+
const ms = (_a = schedule_util_1.Duration.parse(schedule.every)) !== null && _a !== void 0 ? _a : 30 * 60000;
|
|
58
|
+
const [amount, unit] = ms % 86400000 === 0 ? [ms / 86400000, 'd'] : ms % 3600000 === 0 ? [ms / 3600000, 'h'] : [Math.round(ms / 60000), 'm'];
|
|
59
|
+
return { mode: 'repeat', repeat: 'every', amount, unit };
|
|
60
|
+
}
|
|
61
|
+
const [minute, hour, day, month, weekday] = ((_b = cron_expression_1.NICKNAMES[schedule.expression.toLowerCase()]) !== null && _b !== void 0 ? _b : schedule.expression).split(' ');
|
|
62
|
+
const simple = /^\d+$/.test(minute) && /^\d+$/.test(hour) && day === '*' && month === '*';
|
|
63
|
+
const time = `${pad(Number(hour))}:${pad(Number(minute))}`;
|
|
64
|
+
if (simple && weekday === '*') {
|
|
65
|
+
return { mode: 'repeat', repeat: 'daily', time, cron: schedule.expression };
|
|
66
|
+
}
|
|
67
|
+
if (simple && weekday === '1-5') {
|
|
68
|
+
return { mode: 'repeat', repeat: 'weekdays', time, cron: schedule.expression };
|
|
69
|
+
}
|
|
70
|
+
if (simple && /^[0-7]$/.test(weekday)) {
|
|
71
|
+
return { mode: 'repeat', repeat: 'weekly', time, weekday: Number(weekday) % 7, cron: schedule.expression };
|
|
72
|
+
}
|
|
73
|
+
return { mode: 'repeat', repeat: 'custom', cron: schedule.expression };
|
|
74
|
+
}
|
|
75
|
+
/** The rule the form says; throws with what is wrong. */
|
|
76
|
+
function schedule(form) {
|
|
77
|
+
if (form.mode === 'once') {
|
|
78
|
+
return schedule_util_1.ScheduleUtil.check({ kind: 'once', at: form.at });
|
|
79
|
+
}
|
|
80
|
+
const time = /^(\d{1,2}):(\d{2})$/.exec(form.time);
|
|
81
|
+
const [hour, minute] = time ? [Number(time[1]), Number(time[2])] : [9, 0];
|
|
82
|
+
switch (form.repeat) {
|
|
83
|
+
case 'every':
|
|
84
|
+
return schedule_util_1.ScheduleUtil.check({ kind: 'interval', every: `${Math.max(1, Math.floor(form.amount || 0))}${form.unit}` });
|
|
85
|
+
case 'daily':
|
|
86
|
+
return schedule_util_1.ScheduleUtil.check({ kind: 'cron', expression: `${minute} ${hour} * * *` });
|
|
87
|
+
case 'weekdays':
|
|
88
|
+
return schedule_util_1.ScheduleUtil.check({ kind: 'cron', expression: `${minute} ${hour} * * 1-5` });
|
|
89
|
+
case 'weekly':
|
|
90
|
+
return schedule_util_1.ScheduleUtil.check({ kind: 'cron', expression: `${minute} ${hour} * * ${form.weekday}` });
|
|
91
|
+
case 'custom':
|
|
92
|
+
return schedule_util_1.ScheduleUtil.check({ kind: 'cron', expression: form.cron });
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
FormUtil.schedule = schedule;
|
|
96
|
+
/** The next run of the form, or the reason there is none. */
|
|
97
|
+
function preview(form, now) {
|
|
98
|
+
try {
|
|
99
|
+
const next = schedule_util_1.ScheduleUtil.next(schedule(form), now);
|
|
100
|
+
return next ? { next } : { error: '' };
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
return { error: error instanceof Error ? error.message : String(error) };
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
FormUtil.preview = preview;
|
|
107
|
+
/** What the scheduler takes to make or change the task. */
|
|
108
|
+
function input(form) {
|
|
109
|
+
return {
|
|
110
|
+
prompt: form.prompt,
|
|
111
|
+
name: form.name.trim() || undefined,
|
|
112
|
+
schedule: schedule(form),
|
|
113
|
+
cwd: form.cwd || undefined,
|
|
114
|
+
model: form.model || undefined,
|
|
115
|
+
thinking: form.thinking || undefined,
|
|
116
|
+
notify: form.notify || undefined,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
FormUtil.input = input;
|
|
120
|
+
})(FormUtil || (exports.FormUtil = FormUtil = {}));
|
|
121
|
+
//# sourceMappingURL=form-util.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TaExtensionHost, TaPackageService } from '@celljs/ta-protocol';
|
|
2
|
+
/**
|
|
3
|
+
* The server side of the package (`pi.host`): the Ta service runs it once, and it runs the tasks while the
|
|
4
|
+
* service runs, with no page open. Its pi extension and its web extension reach the same scheduler.
|
|
5
|
+
*/
|
|
6
|
+
export default function activate(host: TaExtensionHost): Promise<TaPackageService>;
|
|
7
|
+
//# sourceMappingURL=host.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const scheduler_1 = require("./scheduler");
|
|
5
|
+
/**
|
|
6
|
+
* The server side of the package (`pi.host`): the Ta service runs it once, and it runs the tasks while the
|
|
7
|
+
* service runs, with no page open. Its pi extension and its web extension reach the same scheduler.
|
|
8
|
+
*/
|
|
9
|
+
async function activate(host) {
|
|
10
|
+
const scheduler = new scheduler_1.CronScheduler(host);
|
|
11
|
+
await scheduler.start();
|
|
12
|
+
return scheduler;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=host.js.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare const EN: {
|
|
2
|
+
title: string;
|
|
3
|
+
cardTitle: string;
|
|
4
|
+
cardEmpty: string;
|
|
5
|
+
newTask: string;
|
|
6
|
+
editTask: string;
|
|
7
|
+
count: string;
|
|
8
|
+
runningCount: string;
|
|
9
|
+
emptyTitle: string;
|
|
10
|
+
emptyHint: string;
|
|
11
|
+
example1: string;
|
|
12
|
+
example2: string;
|
|
13
|
+
example3: string;
|
|
14
|
+
next: string;
|
|
15
|
+
nextAt: string;
|
|
16
|
+
running: string;
|
|
17
|
+
paused: string;
|
|
18
|
+
done: string;
|
|
19
|
+
runNow: string;
|
|
20
|
+
edit: string;
|
|
21
|
+
delete: string;
|
|
22
|
+
confirmDelete: string;
|
|
23
|
+
confirmDeleteMessage: string;
|
|
24
|
+
enable: string;
|
|
25
|
+
prompt: string;
|
|
26
|
+
promptPlaceholder: string;
|
|
27
|
+
name: string;
|
|
28
|
+
namePlaceholder: string;
|
|
29
|
+
when: string;
|
|
30
|
+
repeat: string;
|
|
31
|
+
once: string;
|
|
32
|
+
every: string;
|
|
33
|
+
daily: string;
|
|
34
|
+
weekdays: string;
|
|
35
|
+
weekly: string;
|
|
36
|
+
custom: string;
|
|
37
|
+
minutes: string;
|
|
38
|
+
hours: string;
|
|
39
|
+
days: string;
|
|
40
|
+
directory: string;
|
|
41
|
+
notify: string;
|
|
42
|
+
notifyDefault: string;
|
|
43
|
+
notifyAlways: string;
|
|
44
|
+
notifyError: string;
|
|
45
|
+
notifyNever: string;
|
|
46
|
+
model: string;
|
|
47
|
+
thinking: string;
|
|
48
|
+
more: string;
|
|
49
|
+
cancel: string;
|
|
50
|
+
save: string;
|
|
51
|
+
create: string;
|
|
52
|
+
preview: string;
|
|
53
|
+
noNext: string;
|
|
54
|
+
runs: string;
|
|
55
|
+
noRuns: string;
|
|
56
|
+
byHand: string;
|
|
57
|
+
openChat: string;
|
|
58
|
+
noChat: string;
|
|
59
|
+
success: string;
|
|
60
|
+
error: string;
|
|
61
|
+
missed: string;
|
|
62
|
+
interrupted: string;
|
|
63
|
+
timeout: string;
|
|
64
|
+
missedText: string;
|
|
65
|
+
started: string;
|
|
66
|
+
finished: string;
|
|
67
|
+
failed: string;
|
|
68
|
+
created: string;
|
|
69
|
+
updated: string;
|
|
70
|
+
enabled: string;
|
|
71
|
+
disabled: string;
|
|
72
|
+
removed: string;
|
|
73
|
+
removedNone: string;
|
|
74
|
+
noTasks: string;
|
|
75
|
+
show: string;
|
|
76
|
+
failedAction: string;
|
|
77
|
+
help: string;
|
|
78
|
+
serviceNeeded: string;
|
|
79
|
+
};
|
|
80
|
+
export type Words = {
|
|
81
|
+
readonly [K in keyof typeof EN]: string;
|
|
82
|
+
};
|
|
83
|
+
export declare namespace CronWords {
|
|
84
|
+
function of(language: string): Words;
|
|
85
|
+
function format(text: string, values: Record<string, string | number>): string;
|
|
86
|
+
}
|
|
87
|
+
export {};
|
|
88
|
+
//# sourceMappingURL=i18n.d.ts.map
|