@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,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const changes_protocol_1 = require("./changes-protocol");
|
|
5
|
+
const changes_util_1 = require("./changes-util");
|
|
6
|
+
const recorder_1 = require("./recorder");
|
|
7
|
+
/** Under ta serve the host answers at once; `ta` alone has nobody to answer, and nothing shows the changes. */
|
|
8
|
+
const HOST_WAIT_MS = 1000;
|
|
9
|
+
/** The tools that write files, with the file in `path`. */
|
|
10
|
+
const WRITING_TOOLS = new Set(['edit', 'write']);
|
|
11
|
+
/**
|
|
12
|
+
* The pi extension: before edit or write change a file the first time in a reply, or another coding
|
|
13
|
+
* agent says its tools will (TA_FILE_WRITE_EVENT), it keeps what is there; when the reply ends, a message lists what changed (CHANGES_TYPE), which the web extension
|
|
14
|
+
* shows above the message box. Ta does not read that message. It takes a reply's changes back when the page asks, through the host.
|
|
15
|
+
*/
|
|
16
|
+
function activate(pi) {
|
|
17
|
+
let reached;
|
|
18
|
+
let recorder;
|
|
19
|
+
let detach;
|
|
20
|
+
/** Set with the recorder: the event of another agent's writes is answered at once, without waiting for the host. */
|
|
21
|
+
let reachedFiles;
|
|
22
|
+
const reach = () => (reached !== null && reached !== void 0 ? reached : (reached = new Promise(resolve => {
|
|
23
|
+
const timer = setTimeout(() => resolve(undefined), HOST_WAIT_MS);
|
|
24
|
+
pi.events.emit(changes_protocol_1.TA_HOST_EVENT, {
|
|
25
|
+
name: changes_protocol_1.NAME,
|
|
26
|
+
resolve: (answer) => {
|
|
27
|
+
clearTimeout(timer);
|
|
28
|
+
resolve(answer.service && answer.files ? { service: answer.service, files: answer.files } : undefined);
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
})));
|
|
32
|
+
pi.on('session_start', async (_event, ctx) => {
|
|
33
|
+
const found = await reach();
|
|
34
|
+
if (!found) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
recorder = new recorder_1.ChangeRecorder(found.files, found.service);
|
|
38
|
+
reachedFiles = found.files;
|
|
39
|
+
detach === null || detach === void 0 ? void 0 : detach();
|
|
40
|
+
detach = found.service.attach(ctx.sessionManager.getSessionId(), {
|
|
41
|
+
revert: (id, force) => takeBack(ctx, found, id, force),
|
|
42
|
+
latest: () => changeSets(ctx.sessionManager.getBranch()).at(-1),
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
pi.on('session_shutdown', () => {
|
|
46
|
+
detach === null || detach === void 0 ? void 0 : detach();
|
|
47
|
+
detach = undefined;
|
|
48
|
+
});
|
|
49
|
+
pi.on('tool_call', async (event) => {
|
|
50
|
+
var _a;
|
|
51
|
+
const path = (_a = event.input) === null || _a === void 0 ? void 0 : _a.path;
|
|
52
|
+
if (recorder && WRITING_TOOLS.has(event.toolName) && typeof path === 'string' && path) {
|
|
53
|
+
const found = await reach();
|
|
54
|
+
if (found) {
|
|
55
|
+
await recorder.before(found.files.resolve(path));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
// Another coding agent writes with its own tools (ta-agents): it says so, before the write if it can.
|
|
60
|
+
pi.events.on(changes_protocol_1.TA_FILE_WRITE_EVENT, data => {
|
|
61
|
+
const file = data;
|
|
62
|
+
if (recorder && reachedFiles && typeof (file === null || file === void 0 ? void 0 : file.path) === 'string' && file.path) {
|
|
63
|
+
const before = typeof file.before === 'string' || file.before === null ? file.before : undefined;
|
|
64
|
+
void recorder.before(reachedFiles.resolve(file.path), before);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
pi.on('agent_settled', async () => {
|
|
68
|
+
const found = recorder && (await reach());
|
|
69
|
+
const set = found && (await (recorder === null || recorder === void 0 ? void 0 : recorder.finish(found.files.resolve('.'))));
|
|
70
|
+
if (set) {
|
|
71
|
+
pi.sendMessage({ customType: changes_protocol_1.CHANGES_TYPE, content: changes_util_1.ChangesUtil.summary(set), display: false, details: set });
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
// The list is for the user: Ta knows what it changed from its own calls.
|
|
75
|
+
pi.on('context', (event) => {
|
|
76
|
+
const messages = event.messages.filter(message => !(message.role === 'custom' && message.customType === changes_protocol_1.CHANGES_TYPE));
|
|
77
|
+
return messages.length === event.messages.length ? undefined : { messages };
|
|
78
|
+
});
|
|
79
|
+
async function takeBack(ctx, found, id, force) {
|
|
80
|
+
if (!ctx.isIdle()) {
|
|
81
|
+
return { reverted: [], conflicts: [], skipped: [], refused: 'busy' };
|
|
82
|
+
}
|
|
83
|
+
const set = find(ctx, id);
|
|
84
|
+
if (!set) {
|
|
85
|
+
return { reverted: [], conflicts: [], skipped: [], refused: 'missing' };
|
|
86
|
+
}
|
|
87
|
+
const result = await (0, recorder_1.revert)(set, found.files, found.service, force);
|
|
88
|
+
if (result.reverted.length) {
|
|
89
|
+
const details = { id, files: result.reverted };
|
|
90
|
+
pi.sendMessage({ customType: changes_protocol_1.REVERT_TYPE, content: changes_util_1.ChangesUtil.revertNote(result.reverted, set.root), display: true, details });
|
|
91
|
+
}
|
|
92
|
+
return result;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function find(ctx, id) {
|
|
96
|
+
return changeSets(ctx.sessionManager.getEntries()).find(set => set.id === id);
|
|
97
|
+
}
|
|
98
|
+
function changeSets(entries) {
|
|
99
|
+
return entries.flatMap(entry => {
|
|
100
|
+
const details = entry.details;
|
|
101
|
+
return entry.type === 'custom_message' && entry.customType === changes_protocol_1.CHANGES_TYPE && typeof (details === null || details === void 0 ? void 0 : details.id) === 'string' && Array.isArray(details.files)
|
|
102
|
+
? [details]
|
|
103
|
+
: [];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=extension.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`): it keeps the contents of the files replies changed, under
|
|
4
|
+
* `<agentDir>/changes/`, and takes the changes of a reply back for the page through the session's pi extension.
|
|
5
|
+
*/
|
|
6
|
+
export default function activate(host: TaExtensionHost): TaPackageService;
|
|
7
|
+
//# sourceMappingURL=host.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
5
|
+
const blob_store_1 = require("./blob-store");
|
|
6
|
+
const changes_service_1 = require("./changes-service");
|
|
7
|
+
/**
|
|
8
|
+
* The server side of the package (`pi.host`): it keeps the contents of the files replies changed, under
|
|
9
|
+
* `<agentDir>/changes/`, and takes the changes of a reply back for the page through the session's pi extension.
|
|
10
|
+
*/
|
|
11
|
+
function activate(host) {
|
|
12
|
+
const blobs = new blob_store_1.BlobStore((0, node_path_1.join)(host.agentDir, 'changes'));
|
|
13
|
+
void blobs.prune().catch(() => undefined);
|
|
14
|
+
return new changes_service_1.DefaultChangesService(host, blobs);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=host.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const EN: {
|
|
2
|
+
filesChanged: string;
|
|
3
|
+
fileChanged: string;
|
|
4
|
+
undo: string;
|
|
5
|
+
undoing: string;
|
|
6
|
+
created: string;
|
|
7
|
+
conflictTitle: string;
|
|
8
|
+
conflictMessage: string;
|
|
9
|
+
overwrite: string;
|
|
10
|
+
skipped: string;
|
|
11
|
+
nothing: string;
|
|
12
|
+
busy: string;
|
|
13
|
+
closed: string;
|
|
14
|
+
missing: string;
|
|
15
|
+
failed: string;
|
|
16
|
+
revertNote: string;
|
|
17
|
+
revertNoteOne: string;
|
|
18
|
+
diffTitle: string;
|
|
19
|
+
binary: string;
|
|
20
|
+
large: string;
|
|
21
|
+
gone: string;
|
|
22
|
+
loading: string;
|
|
23
|
+
};
|
|
24
|
+
type Words = typeof EN;
|
|
25
|
+
export declare namespace ChangesWords {
|
|
26
|
+
function of(language: string): Words;
|
|
27
|
+
function format(text: string, values: Record<string, string | number>): string;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChangesWords = void 0;
|
|
4
|
+
const EN = {
|
|
5
|
+
filesChanged: '{count} files changed',
|
|
6
|
+
fileChanged: '1 file changed',
|
|
7
|
+
undo: 'Undo the changes of this reply',
|
|
8
|
+
undoing: 'Taking back…',
|
|
9
|
+
created: 'new',
|
|
10
|
+
conflictTitle: 'Files changed again since',
|
|
11
|
+
conflictMessage: '{files} changed after this reply. Undoing writes them back as they were before it, and the later changes are lost.',
|
|
12
|
+
overwrite: 'Undo anyway',
|
|
13
|
+
skipped: 'Not taken back, as their contents were not kept: {files}',
|
|
14
|
+
nothing: 'These files are already as they were before this reply.',
|
|
15
|
+
busy: 'Ta is still working in this conversation; undo once it stops.',
|
|
16
|
+
closed: 'This conversation is not open in the Ta service; open it again and retry.',
|
|
17
|
+
missing: 'This reply is not in the conversation any more.',
|
|
18
|
+
failed: 'Could not undo: {message}',
|
|
19
|
+
revertNote: 'Took back the changes to {count} files',
|
|
20
|
+
revertNoteOne: 'Took back the changes to 1 file',
|
|
21
|
+
diffTitle: '{name} (changes)',
|
|
22
|
+
binary: 'A binary file: no diff to show.',
|
|
23
|
+
large: 'The file is too large: its contents before and after were not kept.',
|
|
24
|
+
gone: 'The kept contents were cleaned up: no diff to show.',
|
|
25
|
+
loading: 'Loading…',
|
|
26
|
+
};
|
|
27
|
+
const ZH = {
|
|
28
|
+
filesChanged: '{count} 个文件已更改',
|
|
29
|
+
fileChanged: '1 个文件已更改',
|
|
30
|
+
undo: '撤销本轮改动',
|
|
31
|
+
undoing: '正在撤销…',
|
|
32
|
+
created: '新建',
|
|
33
|
+
conflictTitle: '有文件在这之后又改过',
|
|
34
|
+
conflictMessage: '{files} 在这一轮之后又被修改过。撤销会把它们恢复成这一轮之前的样子,之后的修改会丢失。',
|
|
35
|
+
overwrite: '仍然撤销',
|
|
36
|
+
skipped: '这些文件没有保存内容,未能撤销:{files}',
|
|
37
|
+
nothing: '这些文件已经是这一轮之前的样子了。',
|
|
38
|
+
busy: 'Ta 还在这个对话里工作,等它停下再撤销。',
|
|
39
|
+
closed: 'Ta 服务里没有打开这个对话,重新打开后再试。',
|
|
40
|
+
missing: '这一轮已经不在对话里了。',
|
|
41
|
+
failed: '撤销失败:{message}',
|
|
42
|
+
revertNote: '已撤销 {count} 个文件的改动',
|
|
43
|
+
revertNoteOne: '已撤销 1 个文件的改动',
|
|
44
|
+
diffTitle: '{name}(本轮改动)',
|
|
45
|
+
binary: '二进制文件,不显示差异。',
|
|
46
|
+
large: '文件太大,没有保存改动前后的内容。',
|
|
47
|
+
gone: '保存的内容已被清理,无法显示差异。',
|
|
48
|
+
loading: '加载中…',
|
|
49
|
+
};
|
|
50
|
+
var ChangesWords;
|
|
51
|
+
(function (ChangesWords) {
|
|
52
|
+
function of(language) {
|
|
53
|
+
return language === 'zh-CN' ? ZH : EN;
|
|
54
|
+
}
|
|
55
|
+
ChangesWords.of = of;
|
|
56
|
+
function format(text, values) {
|
|
57
|
+
return text.replace(/\{(\w+)\}/g, (whole, key) => (key in values ? String(values[key]) : whole));
|
|
58
|
+
}
|
|
59
|
+
ChangesWords.format = format;
|
|
60
|
+
})(ChangesWords || (exports.ChangesWords = ChangesWords = {}));
|
|
61
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/**
|
|
3
|
+
* Above the message box, the files the last reply that changed any changed: how many, the lines added and removed, the diff of each in the
|
|
4
|
+
* workbench, and a button that takes them back. The pi extension (extension.ts) records them and the
|
|
5
|
+
* host (host.ts) keeps their contents; this only shows them.
|
|
6
|
+
*/
|
|
7
|
+
export default function activate(pi: WebExtensionAPI): () => void;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const card_1 = require("./card");
|
|
5
|
+
const changes_protocol_1 = require("./changes-protocol");
|
|
6
|
+
const page_1 = require("./page");
|
|
7
|
+
const react_1 = require("./react");
|
|
8
|
+
const style_1 = require("./style");
|
|
9
|
+
/**
|
|
10
|
+
* Above the message box, the files the last reply that changed any changed: how many, the lines added and removed, the diff of each in the
|
|
11
|
+
* workbench, and a button that takes them back. The pi extension (extension.ts) records them and the
|
|
12
|
+
* host (host.ts) keeps their contents; this only shows them.
|
|
13
|
+
*/
|
|
14
|
+
function activate(pi) {
|
|
15
|
+
(0, react_1.bind)(pi.React);
|
|
16
|
+
(0, page_1.bindPage)(pi);
|
|
17
|
+
const removeStyle = (0, style_1.injectStyle)();
|
|
18
|
+
const stopWatching = page_1.Reverted.watch();
|
|
19
|
+
page_1.Latest.watch();
|
|
20
|
+
pi.ui.setWidget('changes', card_1.ChangesBar);
|
|
21
|
+
pi.registerMessageRenderer(changes_protocol_1.REVERT_TYPE, card_1.RevertNote);
|
|
22
|
+
return () => {
|
|
23
|
+
stopWatching();
|
|
24
|
+
pi.ui.setWidget('changes', undefined);
|
|
25
|
+
removeStyle();
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Lines added and removed between two texts, as `git diff --stat` counts them. */
|
|
2
|
+
export declare namespace LineDiff {
|
|
3
|
+
/** Beyond this many edits the texts count as replaced: the counts then say every line in between changed. */
|
|
4
|
+
const MAX_EDITS = 4000;
|
|
5
|
+
function lines(text: string): string[];
|
|
6
|
+
function count(before: string, after: string): {
|
|
7
|
+
added: number;
|
|
8
|
+
removed: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=line-diff.d.ts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LineDiff = void 0;
|
|
4
|
+
/** Lines added and removed between two texts, as `git diff --stat` counts them. */
|
|
5
|
+
var LineDiff;
|
|
6
|
+
(function (LineDiff) {
|
|
7
|
+
/** Beyond this many edits the texts count as replaced: the counts then say every line in between changed. */
|
|
8
|
+
LineDiff.MAX_EDITS = 4000;
|
|
9
|
+
function lines(text) {
|
|
10
|
+
if (!text) {
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
const lines = text.split('\n');
|
|
14
|
+
if (lines[lines.length - 1] === '') {
|
|
15
|
+
lines.pop();
|
|
16
|
+
}
|
|
17
|
+
return lines;
|
|
18
|
+
}
|
|
19
|
+
LineDiff.lines = lines;
|
|
20
|
+
function count(before, after) {
|
|
21
|
+
const a = lines(before);
|
|
22
|
+
const b = lines(after);
|
|
23
|
+
// The lines both start and end with are no edits: only those in between go to Myers' algorithm.
|
|
24
|
+
let start = 0;
|
|
25
|
+
while (start < a.length && start < b.length && a[start] === b[start]) {
|
|
26
|
+
start++;
|
|
27
|
+
}
|
|
28
|
+
let endA = a.length;
|
|
29
|
+
let endB = b.length;
|
|
30
|
+
while (endA > start && endB > start && a[endA - 1] === b[endB - 1]) {
|
|
31
|
+
endA--;
|
|
32
|
+
endB--;
|
|
33
|
+
}
|
|
34
|
+
const n = endA - start;
|
|
35
|
+
const m = endB - start;
|
|
36
|
+
if (!n || !m) {
|
|
37
|
+
return { added: m, removed: n };
|
|
38
|
+
}
|
|
39
|
+
const edits = distance(a.slice(start, endA), b.slice(start, endB), Math.min(n + m, LineDiff.MAX_EDITS));
|
|
40
|
+
if (edits === undefined) {
|
|
41
|
+
return { added: m, removed: n };
|
|
42
|
+
}
|
|
43
|
+
// Each edit adds or removes a line, and the added minus the removed are m - n.
|
|
44
|
+
return { added: (edits + m - n) / 2, removed: (edits - m + n) / 2 };
|
|
45
|
+
}
|
|
46
|
+
LineDiff.count = count;
|
|
47
|
+
/** The fewest lines to add and remove to make `a` into `b` (Myers, 1986); undefined when more than `max`. */
|
|
48
|
+
function distance(a, b, max) {
|
|
49
|
+
const offset = max + 1;
|
|
50
|
+
const furthest = new Int32Array(2 * max + 3);
|
|
51
|
+
for (let edits = 0; edits <= max; edits++) {
|
|
52
|
+
for (let diagonal = -edits; diagonal <= edits; diagonal += 2) {
|
|
53
|
+
const down = diagonal === -edits || (diagonal !== edits && furthest[offset + diagonal - 1] < furthest[offset + diagonal + 1]);
|
|
54
|
+
let x = down ? furthest[offset + diagonal + 1] : furthest[offset + diagonal - 1] + 1;
|
|
55
|
+
let y = x - diagonal;
|
|
56
|
+
while (x < a.length && y < b.length && a[x] === b[y]) {
|
|
57
|
+
x++;
|
|
58
|
+
y++;
|
|
59
|
+
}
|
|
60
|
+
furthest[offset + diagonal] = x;
|
|
61
|
+
if (x >= a.length && y >= b.length) {
|
|
62
|
+
return edits;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
})(LineDiff || (exports.LineDiff = LineDiff = {}));
|
|
69
|
+
//# sourceMappingURL=line-diff.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { WebExtensionAPI, WebIcon } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import { type ChangeSet } from './changes-protocol';
|
|
3
|
+
import { ChangesWords } from './i18n';
|
|
4
|
+
/** The API ta gave the web extension when it started. */
|
|
5
|
+
export declare let pi: WebExtensionAPI;
|
|
6
|
+
export declare function bindPage(api: WebExtensionAPI): void;
|
|
7
|
+
/** The words of the page's language, with `{name}` filled in. */
|
|
8
|
+
export declare function t(key: keyof ReturnType<typeof ChangesWords.of>, values?: Record<string, string | number>): string;
|
|
9
|
+
/** An icon of the page by its lucide name; a blank one when the page does not have it. */
|
|
10
|
+
export declare function icon(name: string): WebIcon;
|
|
11
|
+
export declare function message(error: unknown): string;
|
|
12
|
+
/** The change sets taken back, from the package's data on the server: the same in every browser. */
|
|
13
|
+
export declare namespace Reverted {
|
|
14
|
+
/** Starts listening; stops when the extension unloads. */
|
|
15
|
+
function watch(): () => void;
|
|
16
|
+
/** A React hook: whether the change set was taken back. */
|
|
17
|
+
function use(id: string): boolean;
|
|
18
|
+
/** Taken back by this page: shown at once, before the server's data says so. */
|
|
19
|
+
function add(id: string): void;
|
|
20
|
+
}
|
|
21
|
+
/** The change sets Ta sends in the conversation shown, and when the conversation was replaced (a fork, a jump in its tree). */
|
|
22
|
+
export declare namespace Latest {
|
|
23
|
+
type Listener = (set: ChangeSet | 'replaced') => void;
|
|
24
|
+
/** Starts listening; stops when the extension unloads (pi.on). */
|
|
25
|
+
export function watch(): void;
|
|
26
|
+
export function subscribe(listener: Listener): () => void;
|
|
27
|
+
export {};
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=page.d.ts.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Latest = exports.Reverted = exports.pi = void 0;
|
|
4
|
+
exports.bindPage = bindPage;
|
|
5
|
+
exports.t = t;
|
|
6
|
+
exports.icon = icon;
|
|
7
|
+
exports.message = message;
|
|
8
|
+
const changes_protocol_1 = require("./changes-protocol");
|
|
9
|
+
const i18n_1 = require("./i18n");
|
|
10
|
+
const react_1 = require("./react");
|
|
11
|
+
function bindPage(api) {
|
|
12
|
+
exports.pi = api;
|
|
13
|
+
}
|
|
14
|
+
/** The words of the page's language, with `{name}` filled in. */
|
|
15
|
+
function t(key, values = {}) {
|
|
16
|
+
return i18n_1.ChangesWords.format(i18n_1.ChangesWords.of(exports.pi.ui.language)[key], values);
|
|
17
|
+
}
|
|
18
|
+
/** An icon of the page by its lucide name; a blank one when the page does not have it. */
|
|
19
|
+
function icon(name) {
|
|
20
|
+
var _a;
|
|
21
|
+
return (_a = exports.pi.ui.icons[name]) !== null && _a !== void 0 ? _a : (() => null);
|
|
22
|
+
}
|
|
23
|
+
function message(error) {
|
|
24
|
+
return error instanceof Error ? error.message : String(error);
|
|
25
|
+
}
|
|
26
|
+
/** The change sets taken back, from the package's data on the server: the same in every browser. */
|
|
27
|
+
var Reverted;
|
|
28
|
+
(function (Reverted) {
|
|
29
|
+
let ids = new Set();
|
|
30
|
+
let loading = false;
|
|
31
|
+
const listeners = new Set();
|
|
32
|
+
function load() {
|
|
33
|
+
return exports.pi.storage.get(changes_protocol_1.REVERTED_KEY).then(value => {
|
|
34
|
+
ids = new Set(Array.isArray(value) ? value : []);
|
|
35
|
+
for (const listener of listeners) {
|
|
36
|
+
listener();
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/** Starts listening; stops when the extension unloads. */
|
|
41
|
+
function watch() {
|
|
42
|
+
return exports.pi.storage.onChange(keys => {
|
|
43
|
+
if (keys.includes(changes_protocol_1.REVERTED_KEY)) {
|
|
44
|
+
void load();
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
Reverted.watch = watch;
|
|
49
|
+
/** A React hook: whether the change set was taken back. */
|
|
50
|
+
function use(id) {
|
|
51
|
+
const [, setVersion] = react_1.React.useState(0);
|
|
52
|
+
react_1.React.useEffect(() => {
|
|
53
|
+
const listener = () => setVersion(version => version + 1);
|
|
54
|
+
listeners.add(listener);
|
|
55
|
+
if (!loading) {
|
|
56
|
+
loading = true;
|
|
57
|
+
load().catch(() => {
|
|
58
|
+
loading = false;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return () => {
|
|
62
|
+
listeners.delete(listener);
|
|
63
|
+
};
|
|
64
|
+
}, []);
|
|
65
|
+
return ids.has(id);
|
|
66
|
+
}
|
|
67
|
+
Reverted.use = use;
|
|
68
|
+
/** Taken back by this page: shown at once, before the server's data says so. */
|
|
69
|
+
function add(id) {
|
|
70
|
+
ids = new Set([...ids, id]);
|
|
71
|
+
for (const listener of listeners) {
|
|
72
|
+
listener();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
Reverted.add = add;
|
|
76
|
+
})(Reverted || (exports.Reverted = Reverted = {}));
|
|
77
|
+
/** The change sets Ta sends in the conversation shown, and when the conversation was replaced (a fork, a jump in its tree). */
|
|
78
|
+
var Latest;
|
|
79
|
+
(function (Latest) {
|
|
80
|
+
const listeners = new Set();
|
|
81
|
+
function tell(value) {
|
|
82
|
+
for (const listener of listeners) {
|
|
83
|
+
listener(value);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/** Starts listening; stops when the extension unloads (pi.on). */
|
|
87
|
+
function watch() {
|
|
88
|
+
exports.pi.on('message_end', event => {
|
|
89
|
+
var _a;
|
|
90
|
+
const message = event.message;
|
|
91
|
+
if (message.role === 'custom' && message.customType === changes_protocol_1.CHANGES_TYPE && ((_a = message.details) === null || _a === void 0 ? void 0 : _a.files)) {
|
|
92
|
+
tell(message.details);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
exports.pi.on('session_replaced', () => tell('replaced'));
|
|
96
|
+
}
|
|
97
|
+
Latest.watch = watch;
|
|
98
|
+
function subscribe(listener) {
|
|
99
|
+
listeners.add(listener);
|
|
100
|
+
return () => {
|
|
101
|
+
listeners.delete(listener);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
Latest.subscribe = subscribe;
|
|
105
|
+
})(Latest || (exports.Latest = Latest = {}));
|
|
106
|
+
//# sourceMappingURL=page.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as ReactModule from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The React of the page, which a web extension cannot import: `activate` binds it before anything
|
|
4
|
+
* renders. The JSX of this package compiles to `React.createElement` (tsconfig.json).
|
|
5
|
+
*/
|
|
6
|
+
export declare let React: typeof ReactModule;
|
|
7
|
+
export declare function bind(react: typeof ReactModule): void;
|
|
8
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TaSessionFiles } from '@celljs/ta-protocol';
|
|
2
|
+
import { type ChangedFile, type ChangeSet, type ChangesService, type RevertResult } from './changes-protocol';
|
|
3
|
+
/** The SHA-256 of bytes, in hex: the name of what the host keeps. */
|
|
4
|
+
export declare function hash(data: Uint8Array): string;
|
|
5
|
+
/**
|
|
6
|
+
* The files a reply changes: before a tool writes a file the first time in the reply, what is there;
|
|
7
|
+
* when the reply ends, what changed, its contents before and after kept by the host.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChangeRecorder {
|
|
10
|
+
protected readonly files: Pick<TaSessionFiles, 'read'>;
|
|
11
|
+
protected readonly service: Pick<ChangesService, 'store'>;
|
|
12
|
+
protected befores: Map<string, Promise<Uint8Array<ArrayBufferLike> | undefined>>;
|
|
13
|
+
constructor(files: Pick<TaSessionFiles, 'read'>, service: Pick<ChangesService, 'store'>);
|
|
14
|
+
/**
|
|
15
|
+
* Before a tool writes `path` (resolved): its contents, the first time in this reply. `known`: what it
|
|
16
|
+
* held, when whoever writes said (a diff of another agent; null: no file), instead of reading it.
|
|
17
|
+
*/
|
|
18
|
+
before(path: string, known?: string | null): Promise<void>;
|
|
19
|
+
/** The reply ended: what it changed, if anything; the next one starts afresh. */
|
|
20
|
+
finish(root: string): Promise<ChangeSet | undefined>;
|
|
21
|
+
protected compare(path: string, before: Uint8Array | undefined, after: Uint8Array | undefined): Promise<ChangedFile | undefined>;
|
|
22
|
+
}
|
|
23
|
+
/** Takes the changes of a reply back: each file as it was before it, unless it changed again since. */
|
|
24
|
+
export declare function revert(set: ChangeSet, files: TaSessionFiles, service: Pick<ChangesService, 'load'>, force: boolean): Promise<RevertResult>;
|
|
25
|
+
//# sourceMappingURL=recorder.d.ts.map
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChangeRecorder = void 0;
|
|
4
|
+
exports.hash = hash;
|
|
5
|
+
exports.revert = revert;
|
|
6
|
+
const node_crypto_1 = require("node:crypto");
|
|
7
|
+
const changes_protocol_1 = require("./changes-protocol");
|
|
8
|
+
const changes_util_1 = require("./changes-util");
|
|
9
|
+
const line_diff_1 = require("./line-diff");
|
|
10
|
+
/** The SHA-256 of bytes, in hex: the name of what the host keeps. */
|
|
11
|
+
function hash(data) {
|
|
12
|
+
return (0, node_crypto_1.createHash)('sha256').update(data).digest('hex');
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The files a reply changes: before a tool writes a file the first time in the reply, what is there;
|
|
16
|
+
* when the reply ends, what changed, its contents before and after kept by the host.
|
|
17
|
+
*/
|
|
18
|
+
class ChangeRecorder {
|
|
19
|
+
constructor(files, service) {
|
|
20
|
+
this.files = files;
|
|
21
|
+
this.service = service;
|
|
22
|
+
this.befores = new Map();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Before a tool writes `path` (resolved): its contents, the first time in this reply. `known`: what it
|
|
26
|
+
* held, when whoever writes said (a diff of another agent; null: no file), instead of reading it.
|
|
27
|
+
*/
|
|
28
|
+
async before(path, known) {
|
|
29
|
+
var _a;
|
|
30
|
+
if (!this.befores.has(path)) {
|
|
31
|
+
this.befores.set(path, known === undefined ? this.files.read(path) : Promise.resolve(known === null ? undefined : new TextEncoder().encode(known)));
|
|
32
|
+
}
|
|
33
|
+
await ((_a = this.befores.get(path)) === null || _a === void 0 ? void 0 : _a.catch(() => undefined));
|
|
34
|
+
}
|
|
35
|
+
/** The reply ended: what it changed, if anything; the next one starts afresh. */
|
|
36
|
+
async finish(root) {
|
|
37
|
+
const befores = this.befores;
|
|
38
|
+
this.befores = new Map();
|
|
39
|
+
const files = [];
|
|
40
|
+
for (const [path, read] of befores) {
|
|
41
|
+
try {
|
|
42
|
+
const file = await this.compare(path, await read, await this.files.read(path));
|
|
43
|
+
if (file) {
|
|
44
|
+
files.push(file);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
catch (_a) {
|
|
48
|
+
// A file that cannot be read is left out: nothing about it would be right.
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return files.length ? { id: (0, node_crypto_1.randomUUID)(), root, files } : undefined;
|
|
52
|
+
}
|
|
53
|
+
async compare(path, before, after) {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
if (before === after || (before && after && Buffer.compare(before, after) === 0)) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
const binary = !changes_util_1.ChangesUtil.isText(before) || !changes_util_1.ChangesUtil.isText(after);
|
|
59
|
+
const decoder = new TextDecoder();
|
|
60
|
+
const counts = binary ? { added: 0, removed: 0 } : line_diff_1.LineDiff.count(before ? decoder.decode(before) : '', after ? decoder.decode(after) : '');
|
|
61
|
+
const file = { path, ...counts };
|
|
62
|
+
if (binary) {
|
|
63
|
+
file.binary = true;
|
|
64
|
+
}
|
|
65
|
+
if (((_a = before === null || before === void 0 ? void 0 : before.length) !== null && _a !== void 0 ? _a : 0) > changes_protocol_1.MAX_KEPT_BYTES || ((_b = after === null || after === void 0 ? void 0 : after.length) !== null && _b !== void 0 ? _b : 0) > changes_protocol_1.MAX_KEPT_BYTES) {
|
|
66
|
+
file.large = true;
|
|
67
|
+
return file;
|
|
68
|
+
}
|
|
69
|
+
if (before) {
|
|
70
|
+
file.before = await this.service.store(before);
|
|
71
|
+
}
|
|
72
|
+
if (after) {
|
|
73
|
+
file.after = await this.service.store(after);
|
|
74
|
+
}
|
|
75
|
+
return file;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.ChangeRecorder = ChangeRecorder;
|
|
79
|
+
/** Takes the changes of a reply back: each file as it was before it, unless it changed again since. */
|
|
80
|
+
async function revert(set, files, service, force) {
|
|
81
|
+
const result = { reverted: [], conflicts: [], skipped: [] };
|
|
82
|
+
const pending = [];
|
|
83
|
+
for (const file of set.files) {
|
|
84
|
+
if (file.large) {
|
|
85
|
+
result.skipped.push(file.path);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
const current = await files.read(file.path);
|
|
89
|
+
const now = current && hash(current);
|
|
90
|
+
if (now === file.before) {
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
if (now !== file.after) {
|
|
94
|
+
result.conflicts.push(file.path);
|
|
95
|
+
}
|
|
96
|
+
pending.push(file);
|
|
97
|
+
}
|
|
98
|
+
if (result.conflicts.length && !force) {
|
|
99
|
+
return result;
|
|
100
|
+
}
|
|
101
|
+
for (const file of pending) {
|
|
102
|
+
if (file.before === undefined) {
|
|
103
|
+
await files.remove(file.path);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
const data = await service.load(file.before);
|
|
107
|
+
if (!data) {
|
|
108
|
+
result.skipped.push(file.path);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
await files.write(file.path, data);
|
|
112
|
+
}
|
|
113
|
+
result.reverted.push(file.path);
|
|
114
|
+
}
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=recorder.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
2
|
+
export declare const STYLE = "\n.tcg { position: relative; display: flex; justify-content: center; }\n.tcg-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--ta-border-muted); border-radius: 999px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, border-color 120ms, transform 120ms var(--ta-ease); }\n.tcg-pill:hover { background: var(--ta-hover); border-color: var(--ta-border); }\n.tcg-pill:active { transform: scale(.98); }\n.tcg-pill[aria-expanded='true'] { border-color: var(--ta-border); }\n.tcg-stat { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; font-size: calc(12.5px * var(--ta-font-scale)); }\n.tcg-add { color: var(--ta-green); }\n.tcg-del { color: var(--ta-red); }\n.tcg-card { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 20; width: min(100%, 560px); transform: translateX(-50%); border: 1px solid var(--ta-border-muted); border-radius: 14px; background: var(--ta-card); box-shadow: var(--ta-shadow-pop); overflow: hidden; animation: tcg-in 160ms var(--ta-ease); }\n@keyframes tcg-in { from { opacity: 0; transform: translate(-50%, 4px); } }\n.tcg-files { max-height: 280px; overflow: auto; padding: 4px 0; }\n.tcg-file { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 8px 16px; border: 0; background: none; color: inherit; font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.tcg-file:hover { background: var(--ta-hover); }\n.tcg-file:disabled { cursor: default; }\n.tcg-file:disabled:hover { background: none; }\n.tcg-name { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tcg-dir { flex: 1; min-width: 0; overflow: hidden; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.tcg-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.tcg-file .tcg-stat { flex: none; margin-left: auto; }\n.tcg-foot { border-top: 1px solid var(--ta-border-muted); padding: 4px; }\n.tcg-undo { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.tcg-undo:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tcg-undo:disabled { color: var(--ta-muted); cursor: default; background: none; }\n.tcg-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tcg-diff { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.tcg-diff-head { display: flex; align-items: center; gap: 10px; flex: none; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--ta-border-muted); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tcg-diff-path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tcg-diff-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n/* A finger (the page's data-touch): the pill takes touches over a finger's height */\n:root[data-touch] .tcg-pill { position: relative; }\n:root[data-touch] .tcg-pill::after { content: ''; position: absolute; inset: -6px 0; }\n";
|
|
3
|
+
export declare function injectStyle(): () => void;
|
|
4
|
+
//# sourceMappingURL=style.d.ts.map
|