@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,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JsonRpcConnection = exports.JsonRpcError = void 0;
|
|
4
|
+
/** An error answer of the other side, with its JSON-RPC code. */
|
|
5
|
+
class JsonRpcError extends Error {
|
|
6
|
+
constructor(code, message, data) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.code = code;
|
|
9
|
+
this.data = data;
|
|
10
|
+
this.name = 'JsonRpcError';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.JsonRpcError = JsonRpcError;
|
|
14
|
+
/**
|
|
15
|
+
* JSON-RPC 2.0 over newline-delimited JSON, as ACP agents speak it on their standard input and output.
|
|
16
|
+
* Both sides send requests: the agent asks the client, for example, for a permission. Lines that are not
|
|
17
|
+
* JSON (a program that logs on its standard output) are skipped.
|
|
18
|
+
*/
|
|
19
|
+
class JsonRpcConnection {
|
|
20
|
+
constructor(output, input) {
|
|
21
|
+
this.output = output;
|
|
22
|
+
/** Answers the requests of the other side; unknown methods get `-32601`. */
|
|
23
|
+
this.onRequest = async (method) => {
|
|
24
|
+
throw new JsonRpcError(-32601, `Method not found: ${method}`);
|
|
25
|
+
};
|
|
26
|
+
this.onNotification = () => undefined;
|
|
27
|
+
this.onClose = () => undefined;
|
|
28
|
+
this.nextId = 0;
|
|
29
|
+
this.pending = new Map();
|
|
30
|
+
this.buffer = '';
|
|
31
|
+
input.setEncoding('utf8');
|
|
32
|
+
input.on('data', (chunk) => this.receive(chunk));
|
|
33
|
+
input.on('end', () => this.close(new Error('The agent closed its output')));
|
|
34
|
+
output.on('error', error => this.close(error));
|
|
35
|
+
}
|
|
36
|
+
/** Requests sent and not answered yet. */
|
|
37
|
+
get pendingCount() {
|
|
38
|
+
return this.pending.size;
|
|
39
|
+
}
|
|
40
|
+
get isClosed() {
|
|
41
|
+
return this.closed !== undefined;
|
|
42
|
+
}
|
|
43
|
+
request(method, params, signal) {
|
|
44
|
+
if (this.closed) {
|
|
45
|
+
return Promise.reject(this.closed);
|
|
46
|
+
}
|
|
47
|
+
const id = ++this.nextId;
|
|
48
|
+
return new Promise((resolve, reject) => {
|
|
49
|
+
const abort = () => {
|
|
50
|
+
this.pending.delete(id);
|
|
51
|
+
reject((signal === null || signal === void 0 ? void 0 : signal.reason) instanceof Error ? signal.reason : new Error('Aborted'));
|
|
52
|
+
};
|
|
53
|
+
if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
|
|
54
|
+
abort();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
signal === null || signal === void 0 ? void 0 : signal.addEventListener('abort', abort, { once: true });
|
|
58
|
+
this.pending.set(id, {
|
|
59
|
+
resolve: value => {
|
|
60
|
+
signal === null || signal === void 0 ? void 0 : signal.removeEventListener('abort', abort);
|
|
61
|
+
resolve(value);
|
|
62
|
+
},
|
|
63
|
+
reject: error => {
|
|
64
|
+
signal === null || signal === void 0 ? void 0 : signal.removeEventListener('abort', abort);
|
|
65
|
+
reject(error);
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
this.send({ jsonrpc: '2.0', id, method, params });
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
notify(method, params) {
|
|
72
|
+
if (!this.closed) {
|
|
73
|
+
this.send({ jsonrpc: '2.0', method, params });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/** Fails what is pending; later calls fail with `error`. */
|
|
77
|
+
close(error) {
|
|
78
|
+
if (this.closed) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
this.closed = error;
|
|
82
|
+
for (const pending of this.pending.values()) {
|
|
83
|
+
pending.reject(error);
|
|
84
|
+
}
|
|
85
|
+
this.pending.clear();
|
|
86
|
+
this.onClose(error);
|
|
87
|
+
}
|
|
88
|
+
send(message) {
|
|
89
|
+
this.output.write(`${JSON.stringify(message)}\n`);
|
|
90
|
+
}
|
|
91
|
+
receive(chunk) {
|
|
92
|
+
this.buffer += chunk;
|
|
93
|
+
let end = this.buffer.indexOf('\n');
|
|
94
|
+
while (end >= 0) {
|
|
95
|
+
const line = this.buffer.slice(0, end).trim();
|
|
96
|
+
this.buffer = this.buffer.slice(end + 1);
|
|
97
|
+
if (line) {
|
|
98
|
+
this.dispatch(line);
|
|
99
|
+
}
|
|
100
|
+
end = this.buffer.indexOf('\n');
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
dispatch(line) {
|
|
104
|
+
let message;
|
|
105
|
+
try {
|
|
106
|
+
message = JSON.parse(line);
|
|
107
|
+
}
|
|
108
|
+
catch (_a) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (!message || typeof message !== 'object') {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (message.method === undefined) {
|
|
115
|
+
const pending = typeof message.id === 'number' ? this.pending.get(message.id) : undefined;
|
|
116
|
+
if (pending) {
|
|
117
|
+
this.pending.delete(message.id);
|
|
118
|
+
if (message.error) {
|
|
119
|
+
pending.reject(new JsonRpcError(message.error.code, message.error.message, message.error.data));
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
pending.resolve(message.result);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else if (message.id === undefined || message.id === null) {
|
|
127
|
+
this.onNotification(message.method, message.params);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
void this.answer(message.id, message.method, message.params);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
async answer(id, method, params) {
|
|
134
|
+
try {
|
|
135
|
+
const result = await this.onRequest(method, params);
|
|
136
|
+
this.send({ jsonrpc: '2.0', id, result: result !== null && result !== void 0 ? result : null });
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
const code = error instanceof JsonRpcError ? error.code : -32603;
|
|
140
|
+
this.send({ jsonrpc: '2.0', id, error: { code, message: error instanceof Error ? error.message : String(error) } });
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.JsonRpcConnection = JsonRpcConnection;
|
|
145
|
+
//# sourceMappingURL=json-rpc.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AssistantMessage, AssistantMessageEvent, Model, ToolCall, Usage } from './pi-types';
|
|
2
|
+
/** pi's event stream of an assistant message, without importing pi: what its agent loop reads of it. */
|
|
3
|
+
export declare class MessageStream implements AsyncIterable<AssistantMessageEvent> {
|
|
4
|
+
protected readonly queue: AssistantMessageEvent[];
|
|
5
|
+
protected waiting?: () => void;
|
|
6
|
+
protected done: boolean;
|
|
7
|
+
protected resolveResult: (message: AssistantMessage) => void;
|
|
8
|
+
protected readonly final: Promise<import("@earendil-works/pi-ai", { with: { "resolution-mode": "import" } }).AssistantMessage>;
|
|
9
|
+
push(event: AssistantMessageEvent): void;
|
|
10
|
+
result(): Promise<AssistantMessage>;
|
|
11
|
+
[Symbol.asyncIterator](): AsyncIterator<AssistantMessageEvent>;
|
|
12
|
+
}
|
|
13
|
+
export declare function emptyUsage(): Usage;
|
|
14
|
+
/** Builds one assistant message on a stream: balanced block events, then exactly one `done` or `error`. */
|
|
15
|
+
export declare class MessageBuilder {
|
|
16
|
+
protected readonly stream: MessageStream;
|
|
17
|
+
readonly message: AssistantMessage;
|
|
18
|
+
protected open?: {
|
|
19
|
+
type: 'text' | 'thinking';
|
|
20
|
+
index: number;
|
|
21
|
+
};
|
|
22
|
+
protected ended: boolean;
|
|
23
|
+
protected readonly started: number;
|
|
24
|
+
constructor(stream: MessageStream, model: Model);
|
|
25
|
+
append(type: 'text' | 'thinking', delta: string): void;
|
|
26
|
+
toolCall(call: ToolCall): void;
|
|
27
|
+
done(reason: 'stop' | 'length' | 'toolUse', usage?: Usage): void;
|
|
28
|
+
error(reason: 'error' | 'aborted', message: string): void;
|
|
29
|
+
protected close(): void;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=message-stream.d.ts.map
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageBuilder = exports.MessageStream = void 0;
|
|
4
|
+
exports.emptyUsage = emptyUsage;
|
|
5
|
+
/** pi's event stream of an assistant message, without importing pi: what its agent loop reads of it. */
|
|
6
|
+
class MessageStream {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.queue = [];
|
|
9
|
+
this.done = false;
|
|
10
|
+
this.final = new Promise(resolve => (this.resolveResult = resolve));
|
|
11
|
+
}
|
|
12
|
+
push(event) {
|
|
13
|
+
var _a;
|
|
14
|
+
if (this.done) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (event.type === 'done' || event.type === 'error') {
|
|
18
|
+
this.done = true;
|
|
19
|
+
this.resolveResult(event.type === 'done' ? event.message : event.error);
|
|
20
|
+
}
|
|
21
|
+
this.queue.push(event);
|
|
22
|
+
(_a = this.waiting) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
23
|
+
}
|
|
24
|
+
result() {
|
|
25
|
+
return this.final;
|
|
26
|
+
}
|
|
27
|
+
async *[Symbol.asyncIterator]() {
|
|
28
|
+
for (;;) {
|
|
29
|
+
const event = this.queue.shift();
|
|
30
|
+
if (event) {
|
|
31
|
+
yield event;
|
|
32
|
+
if (event.type === 'done' || event.type === 'error') {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
await new Promise(resolve => (this.waiting = resolve));
|
|
38
|
+
this.waiting = undefined;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MessageStream = MessageStream;
|
|
44
|
+
function emptyUsage() {
|
|
45
|
+
return { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, totalTokens: 0, cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 } };
|
|
46
|
+
}
|
|
47
|
+
/** Builds one assistant message on a stream: balanced block events, then exactly one `done` or `error`. */
|
|
48
|
+
class MessageBuilder {
|
|
49
|
+
constructor(stream, model) {
|
|
50
|
+
this.stream = stream;
|
|
51
|
+
this.ended = false;
|
|
52
|
+
this.started = Date.now();
|
|
53
|
+
this.message = {
|
|
54
|
+
role: 'assistant',
|
|
55
|
+
content: [],
|
|
56
|
+
api: model.api,
|
|
57
|
+
provider: model.provider,
|
|
58
|
+
model: model.id,
|
|
59
|
+
usage: emptyUsage(),
|
|
60
|
+
stopReason: 'stop',
|
|
61
|
+
timestamp: this.started,
|
|
62
|
+
};
|
|
63
|
+
this.stream.push({ type: 'start', partial: this.message });
|
|
64
|
+
}
|
|
65
|
+
append(type, delta) {
|
|
66
|
+
var _a;
|
|
67
|
+
if (!delta) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (((_a = this.open) === null || _a === void 0 ? void 0 : _a.type) !== type) {
|
|
71
|
+
this.close();
|
|
72
|
+
const index = this.message.content.length;
|
|
73
|
+
this.message.content.push(type === 'text' ? { type: 'text', text: '' } : { type: 'thinking', thinking: '' });
|
|
74
|
+
this.open = { type, index };
|
|
75
|
+
this.stream.push({ type: type === 'text' ? 'text_start' : 'thinking_start', contentIndex: index, partial: this.message });
|
|
76
|
+
}
|
|
77
|
+
const index = this.open.index;
|
|
78
|
+
const block = this.message.content[index];
|
|
79
|
+
if (block.type === 'text') {
|
|
80
|
+
block.text += delta;
|
|
81
|
+
this.stream.push({ type: 'text_delta', contentIndex: index, delta, partial: this.message });
|
|
82
|
+
}
|
|
83
|
+
else if (block.type === 'thinking') {
|
|
84
|
+
block.thinking += delta;
|
|
85
|
+
this.stream.push({ type: 'thinking_delta', contentIndex: index, delta, partial: this.message });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
toolCall(call) {
|
|
89
|
+
this.close();
|
|
90
|
+
const index = this.message.content.length;
|
|
91
|
+
this.message.content.push(call);
|
|
92
|
+
this.stream.push({ type: 'toolcall_start', contentIndex: index, partial: this.message });
|
|
93
|
+
this.stream.push({ type: 'toolcall_delta', contentIndex: index, delta: JSON.stringify(call.arguments), partial: this.message });
|
|
94
|
+
this.stream.push({ type: 'toolcall_end', contentIndex: index, toolCall: call, partial: this.message });
|
|
95
|
+
}
|
|
96
|
+
done(reason, usage) {
|
|
97
|
+
if (this.ended) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
this.close();
|
|
101
|
+
this.ended = true;
|
|
102
|
+
this.message.stopReason = reason;
|
|
103
|
+
this.message.usage = usage !== null && usage !== void 0 ? usage : this.message.usage;
|
|
104
|
+
this.message.durationMs = Date.now() - this.started;
|
|
105
|
+
this.stream.push({ type: 'done', reason, message: this.message });
|
|
106
|
+
}
|
|
107
|
+
error(reason, message) {
|
|
108
|
+
if (this.ended) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
this.close();
|
|
112
|
+
this.ended = true;
|
|
113
|
+
this.message.stopReason = reason;
|
|
114
|
+
this.message.errorMessage = message;
|
|
115
|
+
this.message.durationMs = Date.now() - this.started;
|
|
116
|
+
this.stream.push({ type: 'error', reason, error: this.message });
|
|
117
|
+
}
|
|
118
|
+
close() {
|
|
119
|
+
if (!this.open) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const { type, index } = this.open;
|
|
123
|
+
const block = this.message.content[index];
|
|
124
|
+
this.open = undefined;
|
|
125
|
+
if (type === 'text' && block.type === 'text') {
|
|
126
|
+
this.stream.push({ type: 'text_end', contentIndex: index, content: block.text, partial: this.message });
|
|
127
|
+
}
|
|
128
|
+
else if (block.type === 'thinking') {
|
|
129
|
+
this.stream.push({ type: 'thinking_end', contentIndex: index, content: block.thinking, partial: this.message });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
exports.MessageBuilder = MessageBuilder;
|
|
134
|
+
//# sourceMappingURL=message-stream.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** pi's types, which are ES modules, for this package's CommonJS build; only types, so the bundle imports nothing of pi. */
|
|
2
|
+
export type ExtensionAPI = import('@earendil-works/pi-coding-agent', { with: { 'resolution-mode': 'import' } }).ExtensionAPI;
|
|
3
|
+
export type ExtensionContext = import('@earendil-works/pi-coding-agent', { with: { 'resolution-mode': 'import' } }).ExtensionContext;
|
|
4
|
+
export type ProviderModelConfig = import('@earendil-works/pi-coding-agent', { with: { 'resolution-mode': 'import' } }).ProviderModelConfig;
|
|
5
|
+
export type ToolDefinition = import('@earendil-works/pi-coding-agent', { with: { 'resolution-mode': 'import' } }).ToolDefinition;
|
|
6
|
+
export type AgentToolResult = import('@earendil-works/pi-coding-agent', { with: { 'resolution-mode': 'import' } }).AgentToolResult<unknown>;
|
|
7
|
+
export type AssistantMessage = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).AssistantMessage;
|
|
8
|
+
export type AssistantMessageEvent = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).AssistantMessageEvent;
|
|
9
|
+
export type AssistantMessageEventStream = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).AssistantMessageEventStream;
|
|
10
|
+
export type Message = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).Message;
|
|
11
|
+
export type ImageContent = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).ImageContent;
|
|
12
|
+
export type TextContent = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).TextContent;
|
|
13
|
+
export type ToolCall = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).ToolCall;
|
|
14
|
+
export type Usage = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).Usage;
|
|
15
|
+
export type StopReason = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).StopReason;
|
|
16
|
+
export type ThinkingLevel = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).ThinkingLevel;
|
|
17
|
+
export type SimpleStreamOptions = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).SimpleStreamOptions;
|
|
18
|
+
export type TranscriptContext = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).TranscriptContext;
|
|
19
|
+
export type Model = import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).Model<import('@earendil-works/pi-ai', { with: { 'resolution-mode': 'import' } }).Api>;
|
|
20
|
+
//# sourceMappingURL=pi-types.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** What the package says to the user, in English and Chinese. */
|
|
2
|
+
declare const TEXTS: {
|
|
3
|
+
readonly remote: {
|
|
4
|
+
readonly en: (agent: string) => string;
|
|
5
|
+
readonly zh: (agent: string) => string;
|
|
6
|
+
};
|
|
7
|
+
readonly signIn: {
|
|
8
|
+
readonly en: (agent: string, command: string) => string;
|
|
9
|
+
readonly zh: (agent: string, command: string) => string;
|
|
10
|
+
};
|
|
11
|
+
readonly notFound: {
|
|
12
|
+
readonly en: (agent: string, command: string) => string;
|
|
13
|
+
readonly zh: (agent: string, command: string) => string;
|
|
14
|
+
};
|
|
15
|
+
readonly exited: {
|
|
16
|
+
readonly en: (agent: string, code: string, last: string) => string;
|
|
17
|
+
readonly zh: (agent: string, code: string, last: string) => string;
|
|
18
|
+
};
|
|
19
|
+
readonly commandDone: {
|
|
20
|
+
readonly en: (agent: string, command: string) => string;
|
|
21
|
+
readonly zh: (agent: string, command: string) => string;
|
|
22
|
+
};
|
|
23
|
+
readonly unfinished: {
|
|
24
|
+
readonly en: (agent: string) => string;
|
|
25
|
+
readonly zh: (agent: string) => string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type Texts = typeof TEXTS;
|
|
29
|
+
/**
|
|
30
|
+
* The language of the messages: the one of Ta's pages (`TA_LANGUAGE`, which they give ta serve), else the
|
|
31
|
+
* computer's (`LC_ALL`, `LC_MESSAGES`, `LANG`, else the locale of Node), as a terminal's.
|
|
32
|
+
*/
|
|
33
|
+
export declare function language(env?: NodeJS.ProcessEnv): 'en' | 'zh';
|
|
34
|
+
export declare function text<K extends keyof Texts>(key: K, ...args: Parameters<Texts[K]['en']>): string;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=texts.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.language = language;
|
|
4
|
+
exports.text = text;
|
|
5
|
+
/** What the package says to the user, in English and Chinese. */
|
|
6
|
+
const TEXTS = {
|
|
7
|
+
remote: {
|
|
8
|
+
en: (agent) => `${agent} works in directories of this computer; it cannot work in a remote directory yet.`,
|
|
9
|
+
zh: (agent) => `${agent} 只能在这台电脑上的目录里工作,暂不支持远程目录。`,
|
|
10
|
+
},
|
|
11
|
+
signIn: {
|
|
12
|
+
en: (agent, command) => `${agent} is not signed in. Run \`${command}\` in a terminal to sign in, then try again.`,
|
|
13
|
+
zh: (agent, command) => `${agent} 还没有登录。请在终端里运行 \`${command}\` 登录后再试。`,
|
|
14
|
+
},
|
|
15
|
+
notFound: {
|
|
16
|
+
en: (agent, command) => `${agent}: \`${command}\` was not found. Install it, or set its command in \`agents\` of settings.json.`,
|
|
17
|
+
zh: (agent, command) => `${agent}:找不到命令 \`${command}\`。请先安装,或在 settings.json 的 \`agents\` 里指定它的命令。`,
|
|
18
|
+
},
|
|
19
|
+
exited: {
|
|
20
|
+
en: (agent, code, last) => `${agent} exited (${code})${last ? `: ${last}` : ''}`,
|
|
21
|
+
zh: (agent, code, last) => `${agent} 已退出(${code})${last ? `:${last}` : ''}`,
|
|
22
|
+
},
|
|
23
|
+
commandDone: {
|
|
24
|
+
en: (agent, command) => `${agent} ran \`${command}\` and said nothing back; it may only show in ${agent}'s own interface.`,
|
|
25
|
+
zh: (agent, command) => `${agent} 已执行 \`${command}\`,没有返回内容(这个命令可能只在 ${agent} 自己的界面里有显示)。`,
|
|
26
|
+
},
|
|
27
|
+
unfinished: {
|
|
28
|
+
en: (agent) => `${agent} ended its turn before this call finished.`,
|
|
29
|
+
zh: (agent) => `${agent} 在这次调用完成前结束了这一轮。`,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The language of the messages: the one of Ta's pages (`TA_LANGUAGE`, which they give ta serve), else the
|
|
34
|
+
* computer's (`LC_ALL`, `LC_MESSAGES`, `LANG`, else the locale of Node), as a terminal's.
|
|
35
|
+
*/
|
|
36
|
+
function language(env = process.env) {
|
|
37
|
+
const locale = env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || Intl.DateTimeFormat().resolvedOptions().locale;
|
|
38
|
+
return /^zh/i.test(locale) ? 'zh' : 'en';
|
|
39
|
+
}
|
|
40
|
+
function text(key, ...args) {
|
|
41
|
+
return TEXTS[key][language()](...args);
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=texts.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@celljs/ta-agents",
|
|
3
|
+
"version": "4.9.0",
|
|
4
|
+
"description": "A pi package for Ta: other coding agents (CodeBuddy Code, Claude Code, Codex and any agent that speaks ACP) as models to pick, each running a conversation on its own harness",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi-package"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/cellbang/cell",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/cellbang/cell/issues"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/cellbang/cell.git"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"files": [
|
|
18
|
+
"esm",
|
|
19
|
+
"extension",
|
|
20
|
+
"!**/*.map"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc -b && bun build src/extension.ts --format esm --target node --outfile extension/index.mjs",
|
|
24
|
+
"clean": "rm -rf lib extension *.tsbuildinfo",
|
|
25
|
+
"test": "bun test ./lib",
|
|
26
|
+
"watch": "tsc -b -w --preserveWatchOutput"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@earendil-works/pi-ai": "^1.5.0",
|
|
30
|
+
"@earendil-works/pi-coding-agent": "^1.5.0"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"pi": {
|
|
36
|
+
"title": {
|
|
37
|
+
"en": "Other coding agents",
|
|
38
|
+
"zh-CN": "其他编程 Agent"
|
|
39
|
+
},
|
|
40
|
+
"summary": {
|
|
41
|
+
"en": "Pick Claude Code, Codex, CodeBuddy Code or another ACP agent as the model of a conversation.",
|
|
42
|
+
"zh-CN": "把 Claude Code、Codex、CodeBuddy Code 等 Agent 当作模型,在对话里选用。"
|
|
43
|
+
},
|
|
44
|
+
"icon": "SquareTerminal",
|
|
45
|
+
"extensions": [
|
|
46
|
+
"./extension/index.mjs"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"exports": {
|
|
50
|
+
"./package.json": "./package.json",
|
|
51
|
+
"./lib/*.js": {
|
|
52
|
+
"import": "./esm/*.js",
|
|
53
|
+
"default": "./lib/*.js"
|
|
54
|
+
},
|
|
55
|
+
"./lib/*": {
|
|
56
|
+
"import": "./esm/*.js",
|
|
57
|
+
"default": "./lib/*.js"
|
|
58
|
+
},
|
|
59
|
+
"./*": "./*"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Cell - Ta Bots
|
|
2
|
+
|
|
3
|
+
A pi package that comes with Ta (on by default; turn it off in Settings → Extensions of the web client): bots. Connect a ClawBot of WeChat or an intelligent robot of WeCom to the double, an agent or a conversation, and have Ta work by messaging it from your phone; the answers go back to WeChat. Pictures, voice and files go both ways.
|
|
4
|
+
|
|
5
|
+
## Using it
|
|
6
|
+
|
|
7
|
+
- **Connecting**: in the message box of any conversation (the double, an agent, a plain conversation), click + on its left and pick Bots:
|
|
8
|
+
- Your bots are listed under Your bots, ticked when they are connected here. Clicking one that is not connects it here (from where it was connected, if anywhere: the page says "X moved here from Y"); clicking a ticked one disconnects it.
|
|
9
|
+
- Under Connect a bot, WeChat… shows a QR code: scan it with WeChat on your phone and confirm there (type the number the phone shows when WeChat asks), and the bot is connected, here (when Ta is open on the phone itself, the code is on the screen that would scan it: Save the code puts it in the photos or shares it to WeChat, or hold it and save the image, then Open WeChat and pick it under Album at the top right of Scan). WeCom… shows a QR code too: scan it with WeCom on your phone and create an intelligent robot in one tap as it asks (it needs the right to create robots), and the robot is connected here (on the phone, save the code and pick it from the album of Scan in WeCom). For a robot made in the admin console already, Enter a Bot ID and Secret instead (WeCom admin console → intelligent robot → API mode → long connection); Ta connects it once to check them before keeping it.
|
|
10
|
+
- **Telling them apart**: above the message box, a chip for each bot connected here (green for WeChat, blue for WeCom, its name and whether it is online, × disconnects). A message a bot brings shows on the side of the user, under a line that names the bot (and who wrote, in a group), its bubble edged in the bot's color; once the answer went back, a quiet line "Sent to X" follows it, red with the reason when it did not go.
|
|
11
|
+
- **The Bots page** (under Discover by default): every bot, its state, where it is connected, when it last heard; connect it to the double, disconnect, rename, scan again (when WeChat signed it out) or remove it.
|
|
12
|
+
|
|
13
|
+
Rules:
|
|
14
|
+
|
|
15
|
+
- **A bot is connected to one place at most** (the double, an agent, or a conversation); one place can have several bots, of either kind.
|
|
16
|
+
- **One bot per WeChat account**: scanning with the same WeChat again renews its bot (its name and where it is connected stay) rather than adding one. Different accounts each have their own. Robots of WeCom are told apart by Bot ID; the same Bot ID again updates its bot.
|
|
17
|
+
- A bot connected nowhere answers a message with how to connect it in Ta.
|
|
18
|
+
|
|
19
|
+
## What goes through
|
|
20
|
+
|
|
21
|
+
| | WeChat (ClawBot) | WeCom intelligent robot |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| Text | In; answers as plain text (WeChat shows no Markdown), in pieces when long | In; answers in Markdown, a thinking placeholder streamed into the answer, sent as a message instead after six minutes |
|
|
24
|
+
| Quotes | The quoted message comes to Ta as a `>` line | Same |
|
|
25
|
+
| Pictures | In (decrypted, saved in the conversation's directory and shown to the model); out | In (text and pictures mixed too); out, as a file above 10 MB |
|
|
26
|
+
| Voice | In: WeChat's transcript goes to Ta, the silk file is saved | In: WeCom's transcript |
|
|
27
|
+
| Files, videos | In (up to 100 MB) and out | In and out (files up to 20 MB, videos 10 MB) |
|
|
28
|
+
| Typing | "typing" shows while Ta answers | The streamed placeholder |
|
|
29
|
+
|
|
30
|
+
Files that come are saved under `.ta/inbox/` of the conversation's directory (with a `.gitignore` that ignores all of it), and the message says where, so Ta can read them. To send a file or a picture back, Ta calls the tool `bot_send_file` (there only while a bot is connected to the conversation): it goes to the chat of the message being answered, or, with none, to the last chat of the conversation's bots.
|
|
31
|
+
|
|
32
|
+
## How it runs
|
|
33
|
+
|
|
34
|
+
- Three parts; Ta's core only gained general extension points:
|
|
35
|
+
- **Server side** (`pi.host`, `web-src/host.ts`): `BotService`. When the Ta service starts it connects every bot and keeps it connected, with no page open: WeChat by iLink's long poll (`getupdates`, from where it stopped), WeCom by the long connection `wss://openws.work.weixin.qq.com` (a ping every 30 seconds, reconnecting after 1, 2, 4… up to 30 seconds; stopped and marked failed when the robot connects from elsewhere). A message goes to `SessionBridge`: the session of the place its bot is connected to (the double's session file is the one its page keeps in the data `TA_DOUBLE_FILE`), opened from its file when it is not open, and handed to its pi extension once that is there. Sessions it opened close once idle and unwatched; their files stay.
|
|
36
|
+
- **pi extension** (`pi.extensions`, `web-src/extension.ts`), in every session: it saves the files of a message, passes it to pi as a custom message (`ta-bots`, which the model reads) that starts a reply (queued while Ta works), sends the last answer of that run (or why there is none) to the chats that asked, and leaves a `ta-bots-sent` message in the conversation (which the model never reads). A run a bot started is told in its system prompt that the person is on a phone, reading plain text or Markdown.
|
|
37
|
+
- **Web extension** (`pi.web`, `web-src/index.tsx`): Bots in the + menu of the message box, the chips above it, the dialogs to scan or fill in, the two kinds of messages, and the Bots page.
|
|
38
|
+
- **Credentials**: tokens and secrets live only in `bots/secrets.json` of the agent directory (mode 0600), never in the data pages read; the data of the package (`extension-data/@celljs/ta-bots.json`) holds the list of bots, where each is connected and how it is. Where WeChat's updates stand and the context token of each chat are in `bots/<bot>.json`.
|
|
39
|
+
- **A session opened again keeps its role**: ta-host writes the `appendSystemPrompt` and the group a session was opened with into its file and uses them when it is opened again from the file alone, so an agent woken by a message of a bot answers in its own role. The double's client tools (handing out tasks) are there only while a page of the double is open; without one the double answers but cannot start tasks.
|
|
40
|
+
|
|
41
|
+
## Limits
|
|
42
|
+
|
|
43
|
+
- Bots are online only while the Ta service runs (`ta serve`; Ta Desktop starts it); `ta` alone in a terminal has none.
|
|
44
|
+
- A ClawBot of WeChat chats only with the account that scanned it; anyone in a group can talk to a robot of WeCom.
|
|
45
|
+
- Voice is not transcoded (the silk file is saved as it is, the transcript is used); answers are never voice.
|
|
46
|
+
- After `/new` in a conversation, its bots stay with its old session file: connect them in the new one. The double's Restart does not matter (a bot of the double follows the double).
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Cell - Ta Bots
|
|
2
|
+
|
|
3
|
+
Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展 关闭):机器人。把微信的 ClawBot 或企业微信的智能机器人连到分身、某个智能体或某个对话上,在手机上发消息就能让 Ta 干活,回复发回微信;图片、语音、文件都能收发。
|
|
4
|
+
|
|
5
|
+
## 怎么用
|
|
6
|
+
|
|
7
|
+
- **连接**:在任何对话(分身、智能体、普通对话)的输入框点左侧 +,选"机器人":
|
|
8
|
+
- 已有的机器人列在"我的机器人"下,连在这里的打勾;点一下没连在这里的,就把它连到这里(原来连在别处的会从那里断开,页面提示"已把 X 从「Y」移到这里");点打勾的就断开。
|
|
9
|
+
- "连接机器人"下选"微信…"弹出二维码,用手机微信扫码、在手机上确认(微信要求时输入手机上显示的数字)即连上,并直接连到这个对话(在手机上打开 Ta 时,二维码就在要扫它的这台手机上:点"保存二维码"存进相册或分享给微信,也可以长按二维码存储图像,再点"打开微信",在"扫一扫"右上角的"相册"里选它);选"企业微信…"也弹出二维码,用手机企业微信扫码,按提示一键创建智能机器人(需要创建机器人的权限),它就连到这个对话(在手机上同样可以保存二维码,再到企业微信"扫一扫"里从相册选它);已经在管理后台建好的机器人,点"改为填写 Bot ID 和 Secret"(企业微信管理后台 → 智能机器人 → API 模式 → 长连接),Ta 先连一次确认无误再保存。
|
|
10
|
+
- **看得出来**:输入框上方为每个连在这里的机器人显示一枚胶囊(绿色是微信、蓝色是企业微信,后面是名字和在线状态,× 断开)。机器人带来的消息显示在用户一侧,上方一行写着来自哪个机器人(群聊时还有发送人),气泡带对应颜色的细边;回复发回后,下方有一行淡色的"已发回 X",失败时是红色并写明原因。
|
|
11
|
+
- **机器人页**(默认收在"发现"里):列出所有机器人、状态、连在哪里、最近消息时间;可以连到分身、断开、重命名、重新扫码(微信登录过期时)和移除。
|
|
12
|
+
|
|
13
|
+
规则:
|
|
14
|
+
|
|
15
|
+
- **一个机器人只连在一个地方**(分身、一个智能体,或一个对话);一个地方可以同时连多个、不同种类的机器人。
|
|
16
|
+
- **一个微信号对应一个机器人**:用同一个微信再次扫码,会更新原来的机器人(名字和连接位置保留),而不是多出一个。不同微信号可以各连一个。企业微信按 Bot ID 区分,重复填写同一个 Bot ID 会更新它。
|
|
17
|
+
- 没连到任何地方的机器人收到消息时,会回复一句如何在 Ta 里连接它。
|
|
18
|
+
|
|
19
|
+
## 收发什么
|
|
20
|
+
|
|
21
|
+
| | 微信(ClawBot) | 企业微信智能机器人 |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| 文字 | 收;回复转成纯文本(微信不显示 Markdown),过长分段发 | 收;回复是 Markdown,先显示"思考中"再流式替换成答案,超过 6 分钟改为主动发送 |
|
|
24
|
+
| 引用回复 | 被引用的内容以 `>` 引用行交给 Ta | 同左 |
|
|
25
|
+
| 图片 | 收(解密后存进对话目录,并直接给模型看);发 | 收(含图文混排);发,超过 10 MB 按文件发 |
|
|
26
|
+
| 语音 | 收:微信转写的文字交给 Ta,原始 silk 文件存下 | 收:企业微信转写的文字 |
|
|
27
|
+
| 文件、视频 | 收(最大 100 MB)、发 | 收、发(文件最大 20 MB,视频 10 MB) |
|
|
28
|
+
| 正在输入 | 回复期间显示"对方正在输入" | 流式占位 |
|
|
29
|
+
|
|
30
|
+
收到的文件保存在对话目录的 `.ta/inbox/`(里面放了一个忽略全部内容的 `.gitignore`),消息里写明路径,Ta 可以直接读。要把文件、图片发回去,Ta 调用工具 `bot_send_file`(只在有机器人连在这个对话时出现),发给正在回复的那条消息所在的聊天;没有正在回复的消息时,发给这个对话的机器人最近一次聊天。
|
|
31
|
+
|
|
32
|
+
## 怎么运行
|
|
33
|
+
|
|
34
|
+
- 由三部分组成,Ta 的核心只多了通用的扩展点:
|
|
35
|
+
- **服务端**(`pi.host`,`web-src/host.ts`):`BotService`。Ta 服务启动时把每个机器人连上并保持连接(没有页面开着也一样):微信用 iLink 的长轮询(`getupdates`,从上次停下的位置继续),企业微信用 `wss://openws.work.weixin.qq.com` 长连接(30 秒心跳,断线按 1、2、4… 至 30 秒重连;同一机器人在别处登录时停下并标为出错)。收到消息后交给 `SessionBridge`:找到连接位置的会话(分身的会话文件由分身页面记在包数据 `TA_DOUBLE_FILE` 里),没打开就按会话文件打开,等它的 pi 扩展就绪后交给它;它打开的会话在空闲且没人看时关闭,文件保留。
|
|
36
|
+
- **pi 扩展**(`pi.extensions`,`web-src/extension.ts`):每个会话一份。保存消息附带的文件,以自定义消息(`ta-bots`,模型能读到)交给 pi 并触发一轮回复(忙时排队);这一轮的最后回答(出错或停止时写明原因)发回发起的聊天,再在对话里留一条 `ta-bots-sent` 消息(模型读不到)。机器人发起的一轮会在系统提示里说明对方在手机上、读的是纯文本或 Markdown。
|
|
37
|
+
- **Web 扩展**(`pi.web`,`web-src/index.tsx`):输入框 + 菜单里的"机器人"、输入框上方的胶囊、扫码与填写的弹窗、两种消息的渲染、机器人页。
|
|
38
|
+
- **凭据**:机器人的 token 与 Secret 只存在 agent 目录的 `bots/secrets.json`(权限 0600),不进页面能读的包数据;包数据(`extension-data/@celljs/ta-bots.json`)只有机器人列表、连接位置和状态。微信的同步位置和每个聊天的 context token 存在 `bots/<机器人>.json`。
|
|
39
|
+
- **重新打开的会话保留角色**:ta-host 把打开会话时的 `appendSystemPrompt` 和分组写进会话文件,只按会话文件重新打开时沿用,所以智能体被机器人消息唤起时仍是它自己的角色。分身的客户端工具(派任务)只有开着分身页面时才有;页面没开时分身照常回答,但不能派任务。
|
|
40
|
+
|
|
41
|
+
## 限制
|
|
42
|
+
|
|
43
|
+
- 只在 Ta 服务(`ta serve`,Ta 桌面版会自动启动它)运行时在线;单独运行 `ta`(终端)时没有机器人。
|
|
44
|
+
- 微信 ClawBot 只能和扫码的那个微信号私聊;企业微信机器人的群聊里所有人都能和它说话。
|
|
45
|
+
- 不做语音转码(silk 原样保存,用转写的文字);回复不发语音。
|
|
46
|
+
- 对话用 `/new` 换成新会话后,机器人仍连在原来的会话文件上,需要在新会话里重新连接。分身用"重新开始"不受影响(机器人连的是分身本身)。
|