@celljs/ta 4.15.2 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -0
- package/README.md +1 -0
- package/dist/cli.mjs +2227 -203
- package/dist/gateway.mjs +2391 -291
- package/dist/pi/CHANGELOG.md +19 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-3d/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-3d/package.json +2 -1
- package/dist/pi/packages/ta-agents/README.en.md +14 -2
- package/dist/pi/packages/ta-agents/README.md +14 -2
- package/dist/pi/packages/ta-agents/extension/index.mjs +286 -111
- package/dist/pi/packages/ta-agents/host/index.mjs +662 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +36 -2
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +76 -6
- package/dist/pi/packages/ta-agents/lib/agent-installer.d.ts +55 -0
- package/dist/pi/packages/ta-agents/lib/agent-installer.js +140 -0
- package/dist/pi/packages/ta-agents/lib/agent-installs.d.ts +25 -0
- package/dist/pi/packages/ta-agents/lib/agent-installs.js +64 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +6 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +9 -0
- package/dist/pi/packages/ta-agents/lib/agent-refresh.d.ts +11 -0
- package/dist/pi/packages/ta-agents/lib/agent-refresh.js +37 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +0 -2
- package/dist/pi/packages/ta-agents/lib/agent-session.js +3 -6
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +7 -2
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +8 -4
- package/dist/pi/packages/ta-agents/lib/agents-protocol.d.ts +26 -0
- package/dist/pi/packages/ta-agents/lib/agents-protocol.js +11 -0
- package/dist/pi/packages/ta-agents/lib/agents-settings.d.ts +10 -0
- package/dist/pi/packages/ta-agents/lib/agents-settings.js +165 -0
- package/dist/pi/packages/ta-agents/lib/extension.d.ts +3 -1
- package/dist/pi/packages/ta-agents/lib/extension.js +17 -4
- package/dist/pi/packages/ta-agents/lib/host.d.ts +35 -0
- package/dist/pi/packages/ta-agents/lib/host.js +96 -0
- package/dist/pi/packages/ta-agents/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-agents/lib/react.js +8 -0
- package/dist/pi/packages/ta-agents/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/style.js +30 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +18 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +18 -0
- package/dist/pi/packages/ta-agents/lib/web-words.d.ts +30 -0
- package/dist/pi/packages/ta-agents/lib/web-words.js +98 -0
- package/dist/pi/packages/ta-agents/lib/web.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/web.js +14 -0
- package/dist/pi/packages/ta-agents/package.json +21 -5
- package/dist/pi/packages/ta-agents/web/index.js +385 -0
- package/dist/pi/packages/ta-app-use/README.en.md +28 -0
- package/dist/pi/packages/ta-app-use/README.md +28 -0
- package/dist/pi/packages/ta-app-use/extension/index.mjs +534 -0
- package/dist/pi/packages/ta-app-use/host/index.mjs +136 -0
- package/dist/pi/packages/ta-app-use/lib/app-host.d.ts +32 -0
- package/dist/pi/packages/ta-app-use/lib/app-host.js +79 -0
- package/dist/pi/packages/ta-app-use/lib/app-protocol.d.ts +23 -0
- package/dist/pi/packages/ta-app-use/lib/app-protocol.js +9 -0
- package/dist/pi/packages/ta-app-use/lib/app-util.d.ts +18 -0
- package/dist/pi/packages/ta-app-use/lib/app-util.js +71 -0
- package/dist/pi/packages/ta-app-use/lib/extension.d.ts +80 -0
- package/dist/pi/packages/ta-app-use/lib/extension.js +125 -0
- package/dist/pi/packages/ta-app-use/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-app-use/lib/host.js +16 -0
- package/dist/pi/packages/ta-app-use/lib/i18n.d.ts +38 -0
- package/dist/pi/packages/ta-app-use/lib/i18n.js +130 -0
- package/dist/pi/packages/ta-app-use/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-app-use/lib/index.js +93 -0
- package/dist/pi/packages/ta-app-use/lib/screen-cursor.d.ts +33 -0
- package/dist/pi/packages/ta-app-use/lib/screen-cursor.js +134 -0
- package/dist/pi/packages/ta-app-use/lib/screen-dom.d.ts +19 -0
- package/dist/pi/packages/ta-app-use/lib/screen-dom.js +184 -0
- package/dist/pi/packages/ta-app-use/lib/screen-driver.d.ts +46 -0
- package/dist/pi/packages/ta-app-use/lib/screen-driver.js +174 -0
- package/dist/pi/packages/ta-app-use/lib/screen-protocol.d.ts +67 -0
- package/dist/pi/packages/ta-app-use/lib/screen-protocol.js +8 -0
- package/dist/pi/packages/ta-app-use/lib/screen-text.d.ts +13 -0
- package/dist/pi/packages/ta-app-use/lib/screen-text.js +69 -0
- package/dist/pi/packages/ta-app-use/lib/screen-window.d.ts +68 -0
- package/dist/pi/packages/ta-app-use/lib/screen-window.js +376 -0
- package/dist/pi/packages/ta-app-use/lib/tool-line.d.ts +11 -0
- package/dist/pi/packages/ta-app-use/lib/tool-line.js +69 -0
- package/dist/pi/packages/ta-app-use/package.json +63 -0
- package/dist/pi/packages/ta-app-use/web/index.js +1520 -0
- package/dist/pi/packages/ta-bots/README.en.md +1 -0
- package/dist/pi/packages/ta-bots/README.md +1 -0
- package/dist/pi/packages/ta-bots/extension/index.mjs +25 -22
- package/dist/pi/packages/ta-bots/host/index.mjs +726 -151
- package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +9 -1
- package/dist/pi/packages/ta-bots/lib/bot-service.js +49 -8
- package/dist/pi/packages/ta-bots/lib/channel-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-bots/lib/extension.d.ts +2 -2
- package/dist/pi/packages/ta-bots/lib/extension.js +28 -24
- package/dist/pi/packages/ta-bots/lib/index.js +4 -0
- package/dist/pi/packages/ta-bots/lib/page.d.ts +7 -1
- package/dist/pi/packages/ta-bots/lib/page.js +17 -0
- package/dist/pi/packages/ta-bots/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-bots/lib/style.js +1 -1
- package/dist/pi/packages/ta-bots/lib/wecom-channel.js +1 -1
- package/dist/pi/packages/ta-bots/lib/weixin-api.d.ts +1 -0
- package/dist/pi/packages/ta-bots/lib/weixin-channel.js +2 -1
- package/dist/pi/packages/ta-bots/package.json +1 -1
- package/dist/pi/packages/ta-bots/web/index.js +13 -2
- package/dist/pi/packages/ta-call/README.en.md +9 -0
- package/dist/pi/packages/ta-call/README.md +9 -0
- package/dist/pi/packages/ta-call/extension/index.mjs +474 -0
- package/dist/pi/packages/ta-call/host/index.mjs +899 -0
- package/dist/pi/packages/ta-call/lib/call-host.d.ts +127 -0
- package/dist/pi/packages/ta-call/lib/call-host.js +377 -0
- package/dist/pi/packages/ta-call/lib/call-protocol.d.ts +33 -0
- package/dist/pi/packages/ta-call/lib/call-protocol.js +10 -0
- package/dist/pi/packages/ta-call/lib/call-util.d.ts +50 -0
- package/dist/pi/packages/ta-call/lib/call-util.js +250 -0
- package/dist/pi/packages/ta-call/lib/extension.d.ts +20 -0
- package/dist/pi/packages/ta-call/lib/extension.js +114 -0
- package/dist/pi/packages/ta-call/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-call/lib/host.js +20 -0
- package/dist/pi/packages/ta-call/lib/i18n.d.ts +16 -0
- package/dist/pi/packages/ta-call/lib/i18n.js +38 -0
- package/dist/pi/packages/ta-call/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-call/lib/index.js +60 -0
- package/dist/pi/packages/ta-call/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-call/lib/react.js +8 -0
- package/dist/pi/packages/ta-call/package.json +64 -0
- package/dist/pi/packages/ta-call/web/index.js +552 -0
- package/dist/pi/packages/ta-changes/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-changes/lib/card.js +4 -1
- package/dist/pi/packages/ta-changes/package.json +1 -1
- package/dist/pi/packages/ta-changes/web/index.js +2 -0
- package/dist/pi/packages/ta-channels/extension/index.mjs +155 -194
- package/dist/pi/packages/ta-channels/host/index.mjs +2039 -1503
- package/dist/pi/packages/ta-channels/lib/agent-menu.js +2 -1
- package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/channel-menu.js +2 -2
- package/dist/pi/packages/ta-channels/lib/channels-text.d.ts +38 -0
- package/dist/pi/packages/ta-channels/lib/channels-text.js +173 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +0 -48
- package/dist/pi/packages/ta-channels/lib/channels-util.js +1 -223
- package/dist/pi/packages/ta-channels/lib/create.js +5 -1
- package/dist/pi/packages/ta-channels/lib/i18n-ja.d.ts +3 -0
- package/dist/pi/packages/ta-channels/lib/i18n-ja.js +182 -0
- package/dist/pi/packages/ta-channels/lib/i18n-zh-tw.d.ts +3 -0
- package/dist/pi/packages/ta-channels/lib/i18n-zh-tw.js +182 -0
- package/dist/pi/packages/ta-channels/lib/i18n-zh.d.ts +3 -0
- package/dist/pi/packages/ta-channels/lib/i18n-zh.js +182 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +4 -535
- package/dist/pi/packages/ta-channels/lib/index.js +2 -1
- package/dist/pi/packages/ta-channels/lib/notice-util.d.ts +15 -0
- package/dist/pi/packages/ta-channels/lib/notice-util.js +61 -0
- package/dist/pi/packages/ta-channels/lib/notice.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/notice.js +5 -4
- package/dist/pi/packages/ta-channels/lib/room.js +4 -3
- package/dist/pi/packages/ta-channels/lib/sidebar-head.d.ts +6 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-head.js +67 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-hooks.d.ts +51 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-hooks.js +230 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-rows.d.ts +71 -0
- package/dist/pi/packages/ta-channels/lib/sidebar-rows.js +105 -0
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/sidebar.js +35 -396
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +0 -1
- package/dist/pi/packages/ta-channels/lib/tasks.js +2 -1
- package/dist/pi/packages/ta-channels/lib/team-store.d.ts +78 -0
- package/dist/pi/packages/ta-channels/lib/team-store.js +261 -0
- package/dist/pi/packages/ta-channels/lib/team-tools.js +3 -2
- package/dist/pi/packages/ta-channels/lib/team.d.ts +3 -76
- package/dist/pi/packages/ta-channels/lib/team.js +5 -254
- package/dist/pi/packages/ta-channels/package.json +1 -1
- package/dist/pi/packages/ta-channels/web/index.js +889 -809
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +19 -3
- package/dist/pi/packages/ta-cron/README.md +19 -3
- package/dist/pi/packages/ta-cron/extension/index.mjs +396 -111
- package/dist/pi/packages/ta-cron/host/index.mjs +633 -49
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +5 -3
- package/dist/pi/packages/ta-cron/lib/chat-task.js +15 -10
- package/dist/pi/packages/ta-cron/lib/commands.d.ts +7 -4
- package/dist/pi/packages/ta-cron/lib/commands.js +26 -47
- package/dist/pi/packages/ta-cron/lib/cron-expression.d.ts +8 -0
- package/dist/pi/packages/ta-cron/lib/cron-expression.js +43 -1
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +54 -7
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js +16 -2
- package/dist/pi/packages/ta-cron/lib/editor.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/editor.js +106 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +1 -1
- package/dist/pi/packages/ta-cron/lib/form-util.d.ts +16 -6
- package/dist/pi/packages/ta-cron/lib/form-util.js +40 -28
- package/dist/pi/packages/ta-cron/lib/host.js +17 -1
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +39 -5
- package/dist/pi/packages/ta-cron/lib/i18n.js +160 -24
- package/dist/pi/packages/ta-cron/lib/index.js +4 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +3 -2
- package/dist/pi/packages/ta-cron/lib/page.js +13 -2
- package/dist/pi/packages/ta-cron/lib/schedule-util.d.ts +4 -0
- package/dist/pi/packages/ta-cron/lib/schedule-util.js +52 -4
- package/dist/pi/packages/ta-cron/lib/scheduler.d.ts +56 -6
- package/dist/pi/packages/ta-cron/lib/scheduler.js +209 -27
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +50 -21
- package/dist/pi/packages/ta-cron/lib/task-list.d.ts +23 -0
- package/dist/pi/packages/ta-cron/lib/task-list.js +70 -0
- package/dist/pi/packages/ta-cron/lib/task-row.d.ts +19 -0
- package/dist/pi/packages/ta-cron/lib/task-row.js +246 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +10 -6
- package/dist/pi/packages/ta-cron/lib/task-util.js +53 -19
- package/dist/pi/packages/ta-cron/lib/task-watchers.d.ts +30 -0
- package/dist/pi/packages/ta-cron/lib/task-watchers.js +90 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +3 -2
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +48 -193
- package/dist/pi/packages/ta-cron/lib/tool-line.js +4 -0
- package/dist/pi/packages/ta-cron/lib/tool.d.ts +7 -0
- package/dist/pi/packages/ta-cron/lib/tool.js +18 -8
- package/dist/pi/packages/ta-cron/lib/when.d.ts +39 -0
- package/dist/pi/packages/ta-cron/lib/when.js +231 -0
- package/dist/pi/packages/ta-cron/package.json +2 -1
- package/dist/pi/packages/ta-cron/web/index.js +1091 -340
- package/dist/pi/packages/ta-extensions/lib/market-detail.js +9 -5
- package/dist/pi/packages/ta-extensions/lib/page.js +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +1 -1
- package/dist/pi/packages/ta-extensions/package.json +1 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +9 -7
- package/dist/pi/packages/ta-extensions/web/index.js +777 -237
- package/dist/pi/packages/ta-feedback/README.en.md +10 -0
- package/dist/pi/packages/ta-feedback/README.md +10 -0
- package/dist/pi/packages/ta-feedback/extension/index.mjs +451 -0
- package/dist/pi/packages/ta-feedback/host/index.mjs +1187 -0
- package/dist/pi/packages/ta-feedback/lib/extension.d.ts +31 -0
- package/dist/pi/packages/ta-feedback/lib/extension.js +160 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-git.d.ts +25 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-git.js +44 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-host.d.ts +133 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-host.js +668 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-protocol.d.ts +127 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-protocol.js +41 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-util.d.ts +79 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-util.js +252 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-view.d.ts +11 -0
- package/dist/pi/packages/ta-feedback/lib/feedback-view.js +244 -0
- package/dist/pi/packages/ta-feedback/lib/host.d.ts +8 -0
- package/dist/pi/packages/ta-feedback/lib/host.js +19 -0
- package/dist/pi/packages/ta-feedback/lib/i18n.d.ts +69 -0
- package/dist/pi/packages/ta-feedback/lib/i18n.js +250 -0
- package/dist/pi/packages/ta-feedback/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-feedback/lib/index.js +88 -0
- package/dist/pi/packages/ta-feedback/lib/page.d.ts +35 -0
- package/dist/pi/packages/ta-feedback/lib/page.js +135 -0
- package/dist/pi/packages/ta-feedback/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-feedback/lib/react.js +8 -0
- package/dist/pi/packages/ta-feedback/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-feedback/lib/style.js +71 -0
- package/dist/pi/packages/ta-feedback/package.json +65 -0
- package/dist/pi/packages/ta-feedback/web/index.js +939 -0
- package/dist/pi/packages/ta-games/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-games/lib/style.js +1 -1
- package/dist/pi/packages/ta-games/package.json +1 -1
- package/dist/pi/packages/ta-games/web/index.js +1 -1
- package/dist/pi/packages/ta-glance/README.en.md +2 -0
- package/dist/pi/packages/ta-glance/README.md +2 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +135 -27
- package/dist/pi/packages/ta-glance/lib/card.js +155 -35
- package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-json.js +8 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +9 -6
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +43 -4
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +39 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +125 -23
- package/dist/pi/packages/ta-glance/lib/glance-speech.d.ts +13 -0
- package/dist/pi/packages/ta-glance/lib/glance-speech.js +45 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.d.ts +13 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.js +28 -0
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +20 -0
- package/dist/pi/packages/ta-glance/lib/index.js +11 -1
- package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/style.js +82 -5
- package/dist/pi/packages/ta-glance/package.json +2 -1
- package/dist/pi/packages/ta-glance/web/index.js +508 -62
- package/dist/pi/packages/ta-initiative/extension/index.mjs +3 -2
- package/dist/pi/packages/ta-initiative/host/index.mjs +1 -1
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/index.js +1 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/settings.js +2 -1
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
- package/dist/pi/packages/ta-initiative/package.json +1 -1
- package/dist/pi/packages/ta-initiative/web/index.js +5 -3
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-manual/lib/manual-util.d.ts +1 -1
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +15 -0
- package/dist/pi/packages/ta-manual/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-manual/lib/style.js +1 -1
- package/dist/pi/packages/ta-manual/lib/topics-a.d.ts +3 -0
- package/dist/pi/packages/ta-manual/lib/topics-a.js +295 -0
- package/dist/pi/packages/ta-manual/lib/topics-model.d.ts +46 -0
- package/dist/pi/packages/ta-manual/lib/topics-model.js +21 -0
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +1 -44
- package/dist/pi/packages/ta-manual/lib/topics.js +28 -318
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +12 -10
- package/dist/pi/packages/ta-manual/web/index.js +97 -24
- package/dist/pi/packages/ta-moments/extension/index.mjs +740 -194
- package/dist/pi/packages/ta-moments/host/index.mjs +1393 -834
- package/dist/pi/packages/ta-moments/lib/index.js +3 -1
- package/dist/pi/packages/ta-moments/lib/moments-host-base.d.ts +96 -0
- package/dist/pi/packages/ta-moments/lib/moments-host-base.js +276 -0
- package/dist/pi/packages/ta-moments/lib/moments-host-pictures.d.ts +22 -0
- package/dist/pi/packages/ta-moments/lib/moments-host-pictures.js +167 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +4 -84
- package/dist/pi/packages/ta-moments/lib/moments-host.js +13 -426
- package/dist/pi/packages/ta-moments/lib/page.js +3 -3
- package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-moments/lib/style.js +1 -1
- package/dist/pi/packages/ta-moments/lib/talk-host-base.d.ts +71 -0
- package/dist/pi/packages/ta-moments/lib/talk-host-base.js +171 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +3 -62
- package/dist/pi/packages/ta-moments/lib/talk-host.js +14 -169
- package/dist/pi/packages/ta-moments/package.json +1 -1
- package/dist/pi/packages/ta-moments/web/index.js +686 -147
- package/dist/pi/packages/ta-nearby/extension/index.mjs +9 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1073 -1018
- package/dist/pi/packages/ta-nearby/lib/index.js +8 -5
- package/dist/pi/packages/ta-nearby/lib/nearby-home.d.ts +13 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-home.js +91 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet-view.d.ts +12 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet-view.js +113 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-page.d.ts +6 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-page.js +157 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service-base.d.ts +161 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service-base.js +343 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service-meet.d.ts +41 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service-meet.js +297 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +6 -167
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +38 -638
- package/dist/pi/packages/ta-nearby/lib/nearby-show-view.d.ts +6 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-show-view.js +88 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +6 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +25 -3
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +27 -20
- package/dist/pi/packages/ta-nearby/lib/page.js +15 -417
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +1 -1
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +9 -1
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
- package/dist/pi/packages/ta-nearby/package.json +1 -1
- package/dist/pi/packages/ta-nearby/web/index.js +370 -362
- package/dist/pi/packages/ta-notify/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-notify/lib/settings.js +1 -0
- package/dist/pi/packages/ta-notify/package.json +1 -1
- package/dist/pi/packages/ta-notify/web/index.js +1 -0
- package/dist/pi/packages/ta-plot/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-plot/package.json +2 -1
- package/dist/pi/packages/ta-recall/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-recall/host/index.mjs +1 -0
- package/dist/pi/packages/ta-recall/lib/settings.js +1 -0
- package/dist/pi/packages/ta-recall/package.json +1 -1
- package/dist/pi/packages/ta-recall/web/index.js +2 -0
- package/dist/pi/packages/ta-rooms/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +497 -492
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +6 -6
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +10 -10
- package/dist/pi/packages/ta-rooms/lib/double-host.js +6 -5
- package/dist/pi/packages/ta-rooms/lib/double-tasks-base.d.ts +55 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks-base.js +279 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +3 -45
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +14 -282
- package/dist/pi/packages/ta-rooms/lib/double-user.js +2 -2
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +2 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.js +8 -4
- package/dist/pi/packages/ta-rooms/lib/index.js +18 -2
- package/dist/pi/packages/ta-rooms/lib/members-view.js +37 -3
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +36 -1
- package/dist/pi/packages/ta-rooms/lib/page.js +76 -1
- package/dist/pi/packages/ta-rooms/lib/room-view.js +22 -17
- package/dist/pi/packages/ta-rooms/lib/rooms-home.js +1 -0
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +32 -6
- package/dist/pi/packages/ta-rooms/package.json +1 -1
- package/dist/pi/packages/ta-rooms/web/index.js +223 -38
- package/dist/pi/packages/ta-secrets/README.en.md +22 -0
- package/dist/pi/packages/ta-secrets/README.md +22 -0
- package/dist/pi/packages/ta-secrets/extension/index.mjs +462 -0
- package/dist/pi/packages/ta-secrets/host/index.mjs +1341 -0
- package/dist/pi/packages/ta-secrets/lib/command-prelude.d.ts +36 -0
- package/dist/pi/packages/ta-secrets/lib/command-prelude.js +66 -0
- package/dist/pi/packages/ta-secrets/lib/extension.d.ts +28 -0
- package/dist/pi/packages/ta-secrets/lib/extension.js +156 -0
- package/dist/pi/packages/ta-secrets/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-secrets/lib/host.js +15 -0
- package/dist/pi/packages/ta-secrets/lib/i18n.d.ts +47 -0
- package/dist/pi/packages/ta-secrets/lib/i18n.js +166 -0
- package/dist/pi/packages/ta-secrets/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-secrets/lib/index.js +28 -0
- package/dist/pi/packages/ta-secrets/lib/personal-info.d.ts +26 -0
- package/dist/pi/packages/ta-secrets/lib/personal-info.js +108 -0
- package/dist/pi/packages/ta-secrets/lib/proxy-certs.d.ts +40 -0
- package/dist/pi/packages/ta-secrets/lib/proxy-certs.js +200 -0
- package/dist/pi/packages/ta-secrets/lib/proxy-scenario.d.ts +6 -0
- package/dist/pi/packages/ta-secrets/lib/proxy-scenario.js +91 -0
- package/dist/pi/packages/ta-secrets/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-secrets/lib/react.js +8 -0
- package/dist/pi/packages/ta-secrets/lib/scrubber.d.ts +20 -0
- package/dist/pi/packages/ta-secrets/lib/scrubber.js +70 -0
- package/dist/pi/packages/ta-secrets/lib/secrets-protocol.d.ts +106 -0
- package/dist/pi/packages/ta-secrets/lib/secrets-protocol.js +134 -0
- package/dist/pi/packages/ta-secrets/lib/server-texts.d.ts +14 -0
- package/dist/pi/packages/ta-secrets/lib/server-texts.js +62 -0
- package/dist/pi/packages/ta-secrets/lib/settings.d.ts +4 -0
- package/dist/pi/packages/ta-secrets/lib/settings.js +179 -0
- package/dist/pi/packages/ta-secrets/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-secrets/lib/style.js +32 -0
- package/dist/pi/packages/ta-secrets/lib/vault-fixture.d.ts +8 -0
- package/dist/pi/packages/ta-secrets/lib/vault-fixture.js +22 -0
- package/dist/pi/packages/ta-secrets/lib/vault-proxy.d.ts +94 -0
- package/dist/pi/packages/ta-secrets/lib/vault-proxy.js +357 -0
- package/dist/pi/packages/ta-secrets/lib/vault-service.d.ts +111 -0
- package/dist/pi/packages/ta-secrets/lib/vault-service.js +429 -0
- package/dist/pi/packages/ta-secrets/lib/vault-store.d.ts +48 -0
- package/dist/pi/packages/ta-secrets/lib/vault-store.js +107 -0
- package/dist/pi/packages/ta-secrets/package.json +67 -0
- package/dist/pi/packages/ta-secrets/web/index.js +579 -0
- package/dist/pi/packages/ta-share/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-share/host/index.mjs +172 -21
- package/dist/pi/packages/ta-share/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-share/lib/index.js +1 -1
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -0
- package/dist/pi/packages/ta-share/lib/share-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-share/lib/share-service.d.ts +11 -1
- package/dist/pi/packages/ta-share/lib/share-service.js +62 -4
- package/dist/pi/packages/ta-share/lib/snapshot.d.ts +8 -2
- package/dist/pi/packages/ta-share/lib/snapshot.js +93 -7
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +1 -1
- package/dist/pi/packages/ta-share/package.json +1 -1
- package/dist/pi/packages/ta-share/web/index.js +7 -2
- package/dist/pi/packages/ta-sync/host/index.mjs +1154 -755
- package/dist/pi/packages/ta-sync/lib/host.js +3 -0
- package/dist/pi/packages/ta-sync/lib/index.js +6 -2
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +8 -6
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +24 -28
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +40 -0
- package/dist/pi/packages/ta-sync/lib/migrate-paths.d.ts +24 -0
- package/dist/pi/packages/ta-sync/lib/migrate-paths.js +230 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +18 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +11 -1
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +28 -1
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +9 -1
- package/dist/pi/packages/ta-sync/lib/move-panel.js +69 -5
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +1 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +9 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-sync/lib/style.js +8 -1
- package/dist/pi/packages/ta-sync/lib/sync-service-base.d.ts +78 -0
- package/dist/pi/packages/ta-sync/lib/sync-service-base.js +224 -0
- package/dist/pi/packages/ta-sync/lib/sync-service-space.d.ts +36 -0
- package/dist/pi/packages/ta-sync/lib/sync-service-space.js +210 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +3 -99
- package/dist/pi/packages/ta-sync/lib/sync-service.js +2 -412
- package/dist/pi/packages/ta-sync/package.json +1 -1
- package/dist/pi/packages/ta-sync/web/index.js +138 -5
- package/dist/pi/packages/ta-sync-cloud/package.json +1 -1
- package/dist/pi/packages/ta-team/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-team/host/index.mjs +1 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +0 -2
- package/dist/pi/packages/ta-team/lib/dialogs.js +0 -227
- package/dist/pi/packages/ta-team/lib/i18n-ja.d.ts +3 -0
- package/dist/pi/packages/ta-team/lib/i18n-ja.js +211 -0
- package/dist/pi/packages/ta-team/lib/i18n-zh-tw.d.ts +3 -0
- package/dist/pi/packages/ta-team/lib/i18n-zh-tw.js +211 -0
- package/dist/pi/packages/ta-team/lib/i18n-zh.d.ts +3 -0
- package/dist/pi/packages/ta-team/lib/i18n-zh.js +211 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +1 -2
- package/dist/pi/packages/ta-team/lib/i18n.js +6 -624
- package/dist/pi/packages/ta-team/lib/index.js +3 -1
- package/dist/pi/packages/ta-team/lib/join-dialog.d.ts +3 -0
- package/dist/pi/packages/ta-team/lib/join-dialog.js +234 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +2 -1
- package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-team/lib/style.js +1 -1
- package/dist/pi/packages/ta-team/package.json +1 -1
- package/dist/pi/packages/ta-team/web/index.js +2095 -2086
- package/dist/pi/packages/ta-usage/README.en.md +6 -0
- package/dist/pi/packages/ta-usage/README.md +6 -0
- package/dist/pi/packages/ta-usage/host/index.mjs +220 -0
- package/dist/pi/packages/ta-usage/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-usage/lib/host.js +9 -0
- package/dist/pi/packages/ta-usage/lib/i18n.d.ts +30 -0
- package/dist/pi/packages/ta-usage/lib/i18n.js +98 -0
- package/dist/pi/packages/ta-usage/lib/index.d.ts +4 -0
- package/dist/pi/packages/ta-usage/lib/index.js +20 -0
- package/dist/pi/packages/ta-usage/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-usage/lib/react.js +8 -0
- package/dist/pi/packages/ta-usage/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-usage/lib/style.js +53 -0
- package/dist/pi/packages/ta-usage/lib/usage-host.d.ts +25 -0
- package/dist/pi/packages/ta-usage/lib/usage-host.js +70 -0
- package/dist/pi/packages/ta-usage/lib/usage-protocol.d.ts +55 -0
- package/dist/pi/packages/ta-usage/lib/usage-protocol.js +7 -0
- package/dist/pi/packages/ta-usage/lib/usage-util.d.ts +18 -0
- package/dist/pi/packages/ta-usage/lib/usage-util.js +159 -0
- package/dist/pi/packages/ta-usage/lib/usage-view.d.ts +9 -0
- package/dist/pi/packages/ta-usage/lib/usage-view.js +91 -0
- package/dist/pi/packages/ta-usage/package.json +61 -0
- package/dist/pi/packages/ta-usage/web/index.js +471 -0
- package/dist/pi/packages/ta-voice/README.en.md +8 -0
- package/dist/pi/packages/ta-voice/README.md +8 -0
- package/dist/pi/packages/ta-voice/host/index.mjs +662 -0
- package/dist/pi/packages/ta-voice/lib/doubao-frames.d.ts +44 -0
- package/dist/pi/packages/ta-voice/lib/doubao-frames.js +116 -0
- package/dist/pi/packages/ta-voice/lib/doubao-realtime.d.ts +35 -0
- package/dist/pi/packages/ta-voice/lib/doubao-realtime.js +172 -0
- package/dist/pi/packages/ta-voice/lib/host.d.ts +20 -0
- package/dist/pi/packages/ta-voice/lib/host.js +120 -0
- package/dist/pi/packages/ta-voice/lib/openai-realtime.d.ts +73 -0
- package/dist/pi/packages/ta-voice/lib/openai-realtime.js +257 -0
- package/dist/pi/packages/ta-voice/lib/realtime-socket.d.ts +23 -0
- package/dist/pi/packages/ta-voice/lib/realtime-socket.js +80 -0
- package/dist/pi/packages/ta-voice/package.json +67 -0
- package/dist/pi/packages/ta-workspace/README.md +1 -1
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts +4 -0
- package/dist/pi/packages/ta-workspace/lib/browser-common.js +1 -0
- package/dist/pi/packages/ta-workspace/lib/browser-pick.d.ts +49 -0
- package/dist/pi/packages/ta-workspace/lib/browser-pick.js +166 -0
- package/dist/pi/packages/ta-workspace/lib/browser-webview.js +16 -1
- package/dist/pi/packages/ta-workspace/lib/i18n-en.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-en.js +215 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-ja.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-ja.js +215 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-zh-tw.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/i18n-zh-tw.js +215 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +7 -3
- package/dist/pi/packages/ta-workspace/lib/i18n.js +11 -621
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +1504 -770
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-Dd51Bqbx.js → abnfDiagram-S7VZAUFO-w8qXXVn-.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BbG3_x7_.js → architecture-WOLXFQ4H-B-FHaYwY.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DbJO4t8I.js → architectureDiagram-YGSQEFNW-DTnoGaaX.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BwtrHF1f.js → blockDiagram-APKKGZFW-CyeBzv-v.js} +1 -1
- package/dist/public/assets/{browser-D2BcOPKG.js → browser-Cb38iiEE.js} +1 -1
- package/dist/public/assets/{browser-CTbeNBsA.js → browser-DXexCqIh.js} +2 -2
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CfBe5A0H.js → c4Diagram-KJ2TOQU5-CJJqDqyQ.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-C7R0mhrg.js → chunk-6MUBBAK2-DbvUMdNm.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-VQgQruZT.js → chunk-AXFCVDMN-D4hlZGtj.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-CkUi_vD5.js → chunk-BG4553SI-VNa9Q9On.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BAQq7ktk.js → chunk-DQASFODM-BtlEbc_V.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-B1oF8lB7.js → chunk-HFQBQIA3-CAYSo4CJ.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DE5amcgT.js → chunk-KQLB2F66-CyKdg6hW.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-ev9S_csp.js → chunk-KS47KZWR-BMogCB2r.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-ziqnRvTG.js → chunk-LEVMRMFU-Y9wr-8qB.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DaqPdEKA.js → chunk-M57EVK23-DL3IAQKR.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-DFOG8j6z.js → chunk-OY52VR5R-CJBFHdg6.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-eg35JLLN.js → chunk-QB3YPZ4I-CyuWKZZv.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-J73nie-R.js → chunk-R3KSYZAL-DxvGhfpm.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-B8EvDZvB.js → chunk-STOXU5M4-Cpdl6bfz.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-DyCM007V.js → chunk-TU62E6Q5-CIxOg6QF.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BBGeCNmA.js → chunk-X4PVCEUW-DCFSCRBh.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-CAtJ2Wph.js → chunk-XXDRQBXY-B2R8Cxf7.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-DhQM6yHy.js → classDiagram-v2-L25IHNXF-B7W9HSbj.js} +1 -1
- package/dist/public/assets/{client-C8gi9Fk2.js → client-D75LfyFa.js} +1 -1
- package/dist/public/assets/{common-DrZR0tgm.js → common-CjqTomRQ.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-AqIcHabu.js → cose-bilkent-JH36ORCC-CXSLFyCH.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-BIcbDns7.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-7SyXzhRd.js → cynefinDiagram-L36ESFBY-DTv0Kn1r.js} +1 -1
- package/dist/public/assets/{d3-selection-DsahLieG.js → d3-selection-g4Hl3_NH.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-DalaGtMS.js → dagre-SPEB5RXH-BujVqk5R.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-BcY-qB9G.js → diagram-3B7GL73J-Ds-VnLzP.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-NV7fbe0h.js → diagram-DNEMPZML-BBoIIK-a.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-BPx4GHoj.js → diagram-L3MUGCDN-Glgd5N_n.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-BeUxqmw1.js → diagram-LA4NIPWU-B4EODdUU.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Dlg1S5na.js → diagram-MHCOC4E2-pzDDXO2J.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-DQhRoMkK.js → diagram-XPFHEONP-l--gwSuK.js} +1 -1
- package/dist/public/assets/{dist-CQU8zJh_.js → dist-C0u3lAFR.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-gVEs3Um2.js → ebnfDiagram-UZSYDL2S-BVfPeaVX.js} +1 -1
- package/dist/public/assets/{editor.api-SQ1snuat.js → editor.api-BMcewI3C.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CHtlrPwu.js → elk-XV6XMXQE-BFJtUnG9.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-B0xok726.js → erDiagram-EYBAPDEH-BWxMtfIc.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-CFwphA0e.js → eventmodeling-K75KTNOO-YwYgBgCX.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Dah4--NW.js +1 -0
- package/dist/public/assets/{freemarker2-DJKO-X2B.js → freemarker2-B8HquI7K.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-B5wVGN1A.js → ganttDiagram-23REXITY-CBqv7wbi.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BwDfrSZS.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-DEjNU1R_.js → gitGraphDiagram-STJD7YCW-BLSf23f_.js} +1 -1
- package/dist/public/assets/{handlebars-ChVN7JPd.js → handlebars-P1qmNq4N.js} +1 -1
- package/dist/public/assets/{html-CQ0znKSa.js → html-Ceswbytr.js} +1 -1
- package/dist/public/assets/{index-CLlacdXR.js → index-10isUUN4.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-Ch8aMV1p.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CJtrS72M.js → infoDiagram-KBXO4MBG-LvOtgUlm.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-qYI1QBsK.js → ishikawaDiagram-M35NCXHK-CwUZOvcm.js} +1 -1
- package/dist/public/assets/{javascript-B-DHbkyI.js → javascript-B3FXC8qR.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-BOQ2y2ZZ.js → journeyDiagram-OPLOXDXO-5j1KtwTt.js} +1 -1
- package/dist/public/assets/{jsonMode-XuGC5N_z.js → jsonMode-CrCyxNQI.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BJ64tKdP.js → kanban-definition-BZKZHSQY-BKAB5id1.js} +1 -1
- package/dist/public/assets/{liquid-B0Ujylzc.js → liquid-CXZRIgp2.js} +1 -1
- package/dist/public/assets/{mdx-B19-V510.js → mdx-Dm3uNczM.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-Scb01iBq.js → mermaid-parser.core-C755A-rX.js} +3 -3
- package/dist/public/assets/{mermaid.core-BMuvs7us.js → mermaid.core-CQrYmFAR.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-BYfOS3XN.js → mindmap-definition-I2QAS2VK-DNJQKYbK.js} +1 -1
- package/dist/public/assets/module-9otB6_kX.js +1 -0
- package/dist/public/assets/{module-Cm_mLwAQ.js → module-C3jC5acf.js} +1 -1
- package/dist/public/assets/module-C_MyFORb.js +1 -0
- package/dist/public/assets/module-Cjpl4gva.js +1 -0
- package/dist/public/assets/{module-DUYj4E8T.js → module-D8yH9xCl.js} +1 -1
- package/dist/public/assets/module-DlHjBjOg.js +1 -0
- package/dist/public/assets/module-QsLiJaR6.js +1 -0
- package/dist/public/assets/module-aaW5Ri2L.js +2771 -0
- package/dist/public/assets/module-gSy9fKBo.js +1 -0
- package/dist/public/assets/{monaco-Bbe2os7m.js → monaco-BS7JBNW4.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-LqMrrc60.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-D-Vlq9Gm.js → pegDiagram-FD4XPPHP-BzbBCWht.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-BWzABXQU.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-_-94-aMD.js → pieDiagram-J4AKIIQI-Bf_LDukL.js} +1 -1
- package/dist/public/assets/{python-CWnMIOYq.js → python-jgOUhB-F.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-BhFUbUYz.js → quadrantDiagram-XTYBLID2-CdMHWnKX.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-CR4kNiUj.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-BAkWtkGC.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-yUa9GGCQ.js → railroad-abnf-LNEFI6M7-DQGYaRbc.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-xY4YiL8M.js → railroad-ebnf-DWYD2UWJ-D6Ljza0U.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-BYFYCUAQ.js → railroad-peg-JR7BVNR7-Du9hL1Gf.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-C9FVhj0k.js → railroadDiagram-MRQ6NCDL-CS_JnlGN.js} +1 -1
- package/dist/public/assets/{razor-bDtpN6EJ.js → razor-BWj90God.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-DLmAg-6C.js → requirementDiagram-Y7LWUY3S-Cq8rRz2y.js} +1 -1
- package/dist/public/assets/{resolver-0zC31mg5.js → resolver-BPuspqws.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-Bl5IpDk4.js → sankeyDiagram-WGJFYUXA-aK7jRBVK.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-Z-N0OiT_.js → sequenceDiagram-5NDRBG5M-BxcIyc38.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-ctKQz8Mo.js → stateDiagram-v2-FJ4FJNEA-Ctletlj4.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-CWLKnALg.js → swimlanes-UMQ2AFYF-DaD55xd2.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CytCT4x3.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DP8Ph_d6.js → timeline-definition-SEUHKTQE-Ce19CDiJ.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-DvzNkX4G.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-BuUeBmMd.js +1 -0
- package/dist/public/assets/{typescript-CGpNlLbn.js → typescript-RgyfxmPQ.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-DvFjNj3J.js → usecaseDiagram-AFA6YXN4-CAVEBKQS.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-3m2F2H-I.js → vennDiagram-NNMJR3RB-DHyJxlHv.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-DSfdKACG.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-CsMntu16.js → wardleyDiagram-S7YFUSEH-C-FCHxR7.js} +1 -1
- package/dist/public/assets/{xml-ByiLoakX.js → xml-DiA1T3iN.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-C80rxvM0.js → xychartDiagram-GGNKY7IX-BlnHU6Gz.js} +1 -1
- package/dist/public/assets/{yaml-Cz2Af5Rj.js → yaml-dnCcfJBR.js} +1 -1
- package/dist/public/ext/index.json +1 -0
- package/dist/public/ext/ta-3d.js +660 -0
- package/dist/public/ext/ta-glance.js +1611 -0
- package/dist/public/ext/ta-plot.js +1320 -0
- package/dist/public/index.html +2 -2
- package/dist/serve/index.mjs +17829 -14233
- package/package.json +45 -39
- package/dist/public/assets/cynefin-EF2NZ3EQ-yFytgtiy.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Cwye_DsX.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BYzb--zb.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-na0qX3JP.js +0 -1
- package/dist/public/assets/module-B3SKdB70.js +0 -1
- package/dist/public/assets/module-DDH-aU6z.js +0 -1
- package/dist/public/assets/module-DOrYVZ7B.js +0 -2615
- package/dist/public/assets/module-DRofmFJn.js +0 -1
- package/dist/public/assets/module-MaD4hvv4.js +0 -1
- package/dist/public/assets/module-ZDJutm0b.js +0 -1
- package/dist/public/assets/module-qoBVcE5h.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-jhCd70vR.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-DV0NJFsI.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Co-Hlf34.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DKMPEjDD.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CU76xJSu.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-JMMnu_MW.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CPlAD3X1.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-Dhc8wpLp.js +0 -1
|
@@ -18,6 +18,33 @@ export interface AgentConfig {
|
|
|
18
18
|
}
|
|
19
19
|
/** An agent of `agents` in pi's settings.json; `false` turns a built-in one off. */
|
|
20
20
|
export type AgentSetting = false | Partial<AgentConfig>;
|
|
21
|
+
/** What Ta installs for an agent with npm, in a directory of its own (AgentInstaller), and how the agent starts from there. */
|
|
22
|
+
export interface AgentInstall {
|
|
23
|
+
/** npm's specs, the program of the agent first. */
|
|
24
|
+
packages: string[];
|
|
25
|
+
/** The program that speaks ACP, of `node_modules/.bin`, and its arguments. */
|
|
26
|
+
bin: string;
|
|
27
|
+
args: string[];
|
|
28
|
+
/** Variables that name a program installed with it (`CLAUDE_CODE_EXECUTABLE`: `claude`), set to its path. */
|
|
29
|
+
programs?: Record<string, string>;
|
|
30
|
+
/** What signs the user in, in a terminal: a program installed with it, then its arguments. */
|
|
31
|
+
login: string[];
|
|
32
|
+
}
|
|
33
|
+
/** A built-in agent, as the settings of Ta list it. */
|
|
34
|
+
export interface AgentPreset {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
/** Programs of the user's own install, on `PATH`. */
|
|
38
|
+
programs: string[];
|
|
39
|
+
install: AgentInstall;
|
|
40
|
+
}
|
|
41
|
+
/** The programs Ta installed (AgentInstalls), for agents not installed by the user. */
|
|
42
|
+
export interface LocalAgents {
|
|
43
|
+
/** The path of a program Ta installed; undefined when it did not. */
|
|
44
|
+
bin(name: string): string | undefined;
|
|
45
|
+
/** `PATH` with the Node.js Ta downloaded first, when it did, for the programs it runs. */
|
|
46
|
+
path(): string | undefined;
|
|
47
|
+
}
|
|
21
48
|
/** A model of an agent, as it listed it last. */
|
|
22
49
|
export interface AgentModel {
|
|
23
50
|
id: string;
|
|
@@ -31,10 +58,17 @@ export interface AgentModels {
|
|
|
31
58
|
export declare namespace AgentCatalog {
|
|
32
59
|
/** The model that leaves the choice to the agent: what the user set up in it. */
|
|
33
60
|
const DEFAULT_MODEL = "default";
|
|
34
|
-
/** The built-in agents
|
|
35
|
-
function
|
|
61
|
+
/** The built-in agents, which Ta can install. */
|
|
62
|
+
function presets(): AgentPreset[];
|
|
63
|
+
/**
|
|
64
|
+
* The built-in agents that are installed and not turned off, then those of the settings. One of the user's own
|
|
65
|
+
* install (on `PATH`) comes before one Ta installed (`local`).
|
|
66
|
+
*/
|
|
67
|
+
function agents(settings: Record<string, AgentSetting> | undefined, find?: (program: string) => string | undefined, local?: LocalAgents): AgentConfig[];
|
|
36
68
|
}
|
|
37
69
|
export declare namespace Programs {
|
|
70
|
+
/** A command line for a shell of this system, each word quoted when it needs to be. */
|
|
71
|
+
function commandLine(words: string[], platform?: NodeJS.Platform): string;
|
|
38
72
|
/** The name of `program` if it is on `path`; only `stat`s, nothing runs. */
|
|
39
73
|
function find(program: string, path?: string | undefined): string | undefined;
|
|
40
74
|
}
|
|
@@ -4,6 +4,8 @@ exports.ModelCache = exports.Programs = exports.AgentCatalog = void 0;
|
|
|
4
4
|
const node_fs_1 = require("node:fs");
|
|
5
5
|
const node_os_1 = require("node:os");
|
|
6
6
|
const node_path_1 = require("node:path");
|
|
7
|
+
const CLAUDE_ADAPTER = '@agentclientprotocol/claude-agent-acp@0.106.0';
|
|
8
|
+
const CODEX_ADAPTER = '@agentclientprotocol/codex-acp@2.6.0';
|
|
7
9
|
/**
|
|
8
10
|
* The agents that come with the package. CodeBuddy Code speaks ACP itself; Claude Code and Codex
|
|
9
11
|
* through the adapters of the ACP project, which use the login of the user's own CLI; npx fetches them
|
|
@@ -25,23 +27,48 @@ const PRESETS = [
|
|
|
25
27
|
// It answers only the session it opened or loaded last: a prompt of another one waits forever, or
|
|
26
28
|
// ends at once with nothing while that one works.
|
|
27
29
|
processPerSession: true,
|
|
30
|
+
install: { packages: ['@tencent-ai/codebuddy-code'], bin: 'cbc', args: ['--acp'], login: ['cbc'] },
|
|
28
31
|
},
|
|
29
32
|
{
|
|
30
33
|
id: 'claude-code',
|
|
31
34
|
name: 'Claude Code',
|
|
32
35
|
command: 'npx',
|
|
33
|
-
args: ['-y',
|
|
36
|
+
args: ['-y', CLAUDE_ADAPTER],
|
|
34
37
|
programs: ['claude'],
|
|
35
38
|
login: 'claude',
|
|
39
|
+
// The adapter runs the Claude Code installed beside it, which signs in.
|
|
40
|
+
install: {
|
|
41
|
+
packages: ['@anthropic-ai/claude-code', CLAUDE_ADAPTER],
|
|
42
|
+
bin: 'claude-agent-acp',
|
|
43
|
+
args: [],
|
|
44
|
+
programs: { CLAUDE_CODE_EXECUTABLE: 'claude' },
|
|
45
|
+
login: ['claude'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'codex',
|
|
50
|
+
name: 'Codex',
|
|
51
|
+
command: 'npx',
|
|
52
|
+
args: ['-y', CODEX_ADAPTER],
|
|
53
|
+
programs: ['codex'],
|
|
54
|
+
login: 'codex login',
|
|
55
|
+
install: { packages: ['@openai/codex', CODEX_ADAPTER], bin: 'codex-acp', args: [], programs: { CODEX_PATH: 'codex' }, login: ['codex', 'login'] },
|
|
36
56
|
},
|
|
37
|
-
{ id: 'codex', name: 'Codex', command: 'npx', args: ['-y', '@agentclientprotocol/codex-acp@2.6.0'], programs: ['codex'], login: 'codex login' },
|
|
38
57
|
];
|
|
39
58
|
var AgentCatalog;
|
|
40
59
|
(function (AgentCatalog) {
|
|
41
60
|
/** The model that leaves the choice to the agent: what the user set up in it. */
|
|
42
61
|
AgentCatalog.DEFAULT_MODEL = 'default';
|
|
43
|
-
/** The built-in agents
|
|
44
|
-
function
|
|
62
|
+
/** The built-in agents, which Ta can install. */
|
|
63
|
+
function presets() {
|
|
64
|
+
return PRESETS.map(({ id, name, programs, install }) => ({ id, name, programs, install }));
|
|
65
|
+
}
|
|
66
|
+
AgentCatalog.presets = presets;
|
|
67
|
+
/**
|
|
68
|
+
* The built-in agents that are installed and not turned off, then those of the settings. One of the user's own
|
|
69
|
+
* install (on `PATH`) comes before one Ta installed (`local`).
|
|
70
|
+
*/
|
|
71
|
+
function agents(settings, find = Programs.find, local) {
|
|
45
72
|
const configured = settings && typeof settings === 'object' ? settings : {};
|
|
46
73
|
const result = [];
|
|
47
74
|
for (const preset of PRESETS) {
|
|
@@ -50,11 +77,13 @@ var AgentCatalog;
|
|
|
50
77
|
continue;
|
|
51
78
|
}
|
|
52
79
|
const found = preset.programs.find(program => find(program));
|
|
80
|
+
const installed = found ? undefined : localConfig(preset, local);
|
|
53
81
|
// Named in the settings, it is wanted: its program may be another one (`env`, `command`).
|
|
54
|
-
if (!found && !setting) {
|
|
82
|
+
if (!found && !installed && !setting) {
|
|
55
83
|
continue;
|
|
56
84
|
}
|
|
57
|
-
const { programs, ...
|
|
85
|
+
const { programs, install, ...plain } = preset;
|
|
86
|
+
const config = installed !== null && installed !== void 0 ? installed : plain;
|
|
58
87
|
const command = programs.includes(config.command) && found ? found : config.command;
|
|
59
88
|
const own = setting || {};
|
|
60
89
|
result.push({
|
|
@@ -74,9 +103,50 @@ var AgentCatalog;
|
|
|
74
103
|
return result;
|
|
75
104
|
}
|
|
76
105
|
AgentCatalog.agents = agents;
|
|
106
|
+
/** How a preset starts from what Ta installed; undefined when Ta did not install it. */
|
|
107
|
+
function localConfig(preset, local) {
|
|
108
|
+
var _a;
|
|
109
|
+
const { programs, install, command: _npx, ...config } = preset;
|
|
110
|
+
const command = local === null || local === void 0 ? void 0 : local.bin(install.bin);
|
|
111
|
+
if (!local || !command) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
const env = { ...config.env };
|
|
115
|
+
for (const [name, program] of Object.entries((_a = install.programs) !== null && _a !== void 0 ? _a : {})) {
|
|
116
|
+
const path = local.bin(program);
|
|
117
|
+
if (path) {
|
|
118
|
+
env[name] = path;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const path = local.path();
|
|
122
|
+
if (path) {
|
|
123
|
+
env.PATH = path;
|
|
124
|
+
}
|
|
125
|
+
const [login, ...loginArgs] = install.login;
|
|
126
|
+
const loginPath = local.bin(login);
|
|
127
|
+
return {
|
|
128
|
+
...config,
|
|
129
|
+
command,
|
|
130
|
+
args: install.args,
|
|
131
|
+
env,
|
|
132
|
+
login: loginPath ? Programs.commandLine([loginPath, ...loginArgs]) : config.login,
|
|
133
|
+
};
|
|
134
|
+
}
|
|
77
135
|
})(AgentCatalog || (exports.AgentCatalog = AgentCatalog = {}));
|
|
78
136
|
var Programs;
|
|
79
137
|
(function (Programs) {
|
|
138
|
+
/** A command line for a shell of this system, each word quoted when it needs to be. */
|
|
139
|
+
function commandLine(words, platform = process.platform) {
|
|
140
|
+
return words
|
|
141
|
+
.map(word => {
|
|
142
|
+
if (/^[\w@%+=:,./\\-]+$/.test(word)) {
|
|
143
|
+
return word;
|
|
144
|
+
}
|
|
145
|
+
return platform === 'win32' ? `"${word}"` : `'${word.replace(/'/g, `'\\''`)}'`;
|
|
146
|
+
})
|
|
147
|
+
.join(' ');
|
|
148
|
+
}
|
|
149
|
+
Programs.commandLine = commandLine;
|
|
80
150
|
/** The name of `program` if it is on `path`; only `stat`s, nothing runs. */
|
|
81
151
|
function find(program, path = process.env.PATH) {
|
|
82
152
|
var _a;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type AgentInstall } from './agent-catalog';
|
|
2
|
+
import type { AgentInstalls } from './agent-installs';
|
|
3
|
+
/** The Node.js the agents need: what Ta itself runs on (pi needs 22), Claude Code's adapter too. */
|
|
4
|
+
export declare const NODE_MAJOR = 22;
|
|
5
|
+
export interface RunResult {
|
|
6
|
+
code: number | null;
|
|
7
|
+
stdout: string;
|
|
8
|
+
stderr: string;
|
|
9
|
+
}
|
|
10
|
+
export type Runner = (command: string, args: string[], options: {
|
|
11
|
+
cwd?: string;
|
|
12
|
+
env: NodeJS.ProcessEnv;
|
|
13
|
+
timeoutMs: number;
|
|
14
|
+
}) => Promise<RunResult>;
|
|
15
|
+
/**
|
|
16
|
+
* Where the npm of an install comes from: the computer's (with a Node.js new enough), the Node.js Ta downloaded
|
|
17
|
+
* before, one Ta downloads first, or none (a system nodejs.org has no build for: the user installs Node.js).
|
|
18
|
+
*/
|
|
19
|
+
export type NodeSource = 'system' | 'ta' | 'download' | 'none';
|
|
20
|
+
export interface InstallerOptions {
|
|
21
|
+
run?: Runner;
|
|
22
|
+
find?: (program: string, path?: string) => string | undefined;
|
|
23
|
+
/** Puts Node.js into `dir`, as its tarball lays it out (`bin/node`, `bin/npm`). */
|
|
24
|
+
downloadNode?: (dir: string, build: string) => Promise<void>;
|
|
25
|
+
platform?: NodeJS.Platform;
|
|
26
|
+
arch?: string;
|
|
27
|
+
env?: NodeJS.ProcessEnv;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Installs the built-in agents for the user with npm, into Ta's own directory (AgentInstalls): with the npm of
|
|
31
|
+
* the computer when its Node.js is new enough, else with a Node.js Ta downloads once from nodejs.org, checked
|
|
32
|
+
* against its sums, and keeps beside them for them alone.
|
|
33
|
+
*/
|
|
34
|
+
export declare class AgentInstaller {
|
|
35
|
+
protected readonly installs: AgentInstalls;
|
|
36
|
+
protected readonly run: Runner;
|
|
37
|
+
protected readonly find: (program: string, path?: string) => string | undefined;
|
|
38
|
+
protected readonly downloadNode: (dir: string, build: string) => Promise<void>;
|
|
39
|
+
protected readonly platform: NodeJS.Platform;
|
|
40
|
+
protected readonly arch: string;
|
|
41
|
+
protected readonly env: NodeJS.ProcessEnv;
|
|
42
|
+
constructor(installs: AgentInstalls, options?: InstallerOptions);
|
|
43
|
+
source(): Promise<NodeSource>;
|
|
44
|
+
install(install: AgentInstall): Promise<void>;
|
|
45
|
+
/** Whether the computer has npm, and a Node.js of at least {@link NODE_MAJOR}. */
|
|
46
|
+
protected systemNode(): Promise<boolean>;
|
|
47
|
+
/** The build of Node.js of this computer, as nodejs.org names them; undefined for one it has none of here. */
|
|
48
|
+
protected build(): string | undefined;
|
|
49
|
+
/** The last lines of what npm said, which say what went wrong. */
|
|
50
|
+
static tail(output: string, lines?: number): string;
|
|
51
|
+
/** Node.js of nodejs.org, its sum checked, unpacked into `dir`; the tarball kept no longer. */
|
|
52
|
+
static download(dir: string, build: string, run: Runner, env: NodeJS.ProcessEnv): Promise<void>;
|
|
53
|
+
static spawnRun: Runner;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=agent-installer.d.ts.map
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentInstaller = exports.NODE_MAJOR = void 0;
|
|
4
|
+
const node_child_process_1 = require("node:child_process");
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const node_dist_1 = require("@celljs/ta-exec/lib/node/ssh/node-dist");
|
|
8
|
+
const agent_catalog_1 = require("./agent-catalog");
|
|
9
|
+
const texts_1 = require("./texts");
|
|
10
|
+
/** The Node.js the agents need: what Ta itself runs on (pi needs 22), Claude Code's adapter too. */
|
|
11
|
+
exports.NODE_MAJOR = 22;
|
|
12
|
+
const INSTALL_MS = 15 * 60000;
|
|
13
|
+
const CHECK_MS = 10000;
|
|
14
|
+
/**
|
|
15
|
+
* Installs the built-in agents for the user with npm, into Ta's own directory (AgentInstalls): with the npm of
|
|
16
|
+
* the computer when its Node.js is new enough, else with a Node.js Ta downloads once from nodejs.org, checked
|
|
17
|
+
* against its sums, and keeps beside them for them alone.
|
|
18
|
+
*/
|
|
19
|
+
class AgentInstaller {
|
|
20
|
+
constructor(installs, options = {}) {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f;
|
|
22
|
+
this.installs = installs;
|
|
23
|
+
this.run = (_a = options.run) !== null && _a !== void 0 ? _a : AgentInstaller.spawnRun;
|
|
24
|
+
this.find = (_b = options.find) !== null && _b !== void 0 ? _b : agent_catalog_1.Programs.find;
|
|
25
|
+
this.downloadNode = (_c = options.downloadNode) !== null && _c !== void 0 ? _c : ((dir, build) => AgentInstaller.download(dir, build, this.run, this.env));
|
|
26
|
+
this.platform = (_d = options.platform) !== null && _d !== void 0 ? _d : process.platform;
|
|
27
|
+
this.arch = (_e = options.arch) !== null && _e !== void 0 ? _e : process.arch;
|
|
28
|
+
this.env = (_f = options.env) !== null && _f !== void 0 ? _f : process.env;
|
|
29
|
+
}
|
|
30
|
+
async source() {
|
|
31
|
+
if (this.installs.nodeBin()) {
|
|
32
|
+
return 'ta';
|
|
33
|
+
}
|
|
34
|
+
if (await this.systemNode()) {
|
|
35
|
+
return 'system';
|
|
36
|
+
}
|
|
37
|
+
return this.build() ? 'download' : 'none';
|
|
38
|
+
}
|
|
39
|
+
async install(install) {
|
|
40
|
+
const source = await this.source();
|
|
41
|
+
if (source === 'none') {
|
|
42
|
+
throw new Error((0, texts_1.text)('needNode', String(exports.NODE_MAJOR)));
|
|
43
|
+
}
|
|
44
|
+
if (source === 'download') {
|
|
45
|
+
await this.downloadNode(this.installs.nodeDir, this.build());
|
|
46
|
+
}
|
|
47
|
+
const own = this.installs.nodeBin();
|
|
48
|
+
const npm = source === 'system' || !own ? 'npm' : (0, node_path_1.join)(own, 'npm');
|
|
49
|
+
const env = { ...this.env, ...(own && source !== 'system' ? { PATH: this.installs.path(this.env) } : {}) };
|
|
50
|
+
const dir = this.installs.dir;
|
|
51
|
+
(0, node_fs_1.mkdirSync)(dir, { recursive: true });
|
|
52
|
+
const manifest = (0, node_path_1.join)(dir, 'package.json');
|
|
53
|
+
if (!(0, node_fs_1.existsSync)(manifest)) {
|
|
54
|
+
(0, node_fs_1.writeFileSync)(manifest, `${JSON.stringify({ name: 'ta-coding-agents', private: true }, undefined, 2)}\n`);
|
|
55
|
+
}
|
|
56
|
+
const result = await this.run(npm, ['install', '--prefix', dir, '--no-audit', '--no-fund', '--loglevel=error', ...install.packages], {
|
|
57
|
+
cwd: dir,
|
|
58
|
+
env,
|
|
59
|
+
timeoutMs: INSTALL_MS,
|
|
60
|
+
});
|
|
61
|
+
if (result.code !== 0) {
|
|
62
|
+
throw new Error((0, texts_1.text)('installFailed', AgentInstaller.tail(result.stderr || result.stdout) || String(result.code)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/** Whether the computer has npm, and a Node.js of at least {@link NODE_MAJOR}. */
|
|
66
|
+
async systemNode() {
|
|
67
|
+
var _a;
|
|
68
|
+
var _b;
|
|
69
|
+
if (!this.find('npm', this.env.PATH) || !this.find('node', this.env.PATH)) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
const result = await this.run('node', ['--version'], { env: this.env, timeoutMs: CHECK_MS }).catch(() => undefined);
|
|
73
|
+
const major = Number((_a = /^v(\d+)\./.exec((_b = result === null || result === void 0 ? void 0 : result.stdout.trim()) !== null && _b !== void 0 ? _b : '')) === null || _a === void 0 ? void 0 : _a[1]);
|
|
74
|
+
return major >= exports.NODE_MAJOR;
|
|
75
|
+
}
|
|
76
|
+
/** The build of Node.js of this computer, as nodejs.org names them; undefined for one it has none of here. */
|
|
77
|
+
build() {
|
|
78
|
+
const os = { darwin: 'darwin', linux: 'linux' };
|
|
79
|
+
const arch = { x64: 'x64', arm64: 'arm64' };
|
|
80
|
+
return os[this.platform] && arch[this.arch] ? `${os[this.platform]}-${arch[this.arch]}` : undefined;
|
|
81
|
+
}
|
|
82
|
+
/** The last lines of what npm said, which say what went wrong. */
|
|
83
|
+
static tail(output, lines = 6) {
|
|
84
|
+
return output
|
|
85
|
+
.split(/\r?\n/)
|
|
86
|
+
.map(line => line.trimEnd())
|
|
87
|
+
.filter(Boolean)
|
|
88
|
+
.slice(-lines)
|
|
89
|
+
.join('\n');
|
|
90
|
+
}
|
|
91
|
+
/** Node.js of nodejs.org, its sum checked, unpacked into `dir`; the tarball kept no longer. */
|
|
92
|
+
static async download(dir, build, run, env) {
|
|
93
|
+
const tarball = await node_dist_1.NodeDist.download(build, `${dir}.download`);
|
|
94
|
+
const partial = `${dir}.part`;
|
|
95
|
+
(0, node_fs_1.rmSync)(partial, { recursive: true, force: true });
|
|
96
|
+
(0, node_fs_1.mkdirSync)(partial, { recursive: true });
|
|
97
|
+
try {
|
|
98
|
+
const result = await run('tar', ['-xzf', tarball.file, '-C', partial, '--strip-components=1'], { env, timeoutMs: INSTALL_MS });
|
|
99
|
+
if (result.code !== 0) {
|
|
100
|
+
throw new Error((0, texts_1.text)('installFailed', AgentInstaller.tail(result.stderr) || String(result.code)));
|
|
101
|
+
}
|
|
102
|
+
(0, node_fs_1.rmSync)(dir, { recursive: true, force: true });
|
|
103
|
+
(0, node_fs_1.renameSync)(partial, dir);
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
(0, node_fs_1.rmSync)(partial, { recursive: true, force: true });
|
|
107
|
+
(0, node_fs_1.rmSync)(`${dir}.download`, { recursive: true, force: true });
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.AgentInstaller = AgentInstaller;
|
|
112
|
+
AgentInstaller.spawnRun = (command, args, options) => new Promise((resolve, reject) => {
|
|
113
|
+
var _a, _b;
|
|
114
|
+
const child = (0, node_child_process_1.spawn)(command, args, {
|
|
115
|
+
cwd: options.cwd,
|
|
116
|
+
env: options.env,
|
|
117
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
118
|
+
// npm is npm.cmd on Windows, which only a shell runs.
|
|
119
|
+
shell: process.platform === 'win32',
|
|
120
|
+
windowsHide: true,
|
|
121
|
+
});
|
|
122
|
+
let stdout = '';
|
|
123
|
+
let stderr = '';
|
|
124
|
+
(_a = child.stdout) === null || _a === void 0 ? void 0 : _a.setEncoding('utf8').on('data', (data) => {
|
|
125
|
+
stdout = (stdout + data).slice(-65536);
|
|
126
|
+
});
|
|
127
|
+
(_b = child.stderr) === null || _b === void 0 ? void 0 : _b.setEncoding('utf8').on('data', (data) => {
|
|
128
|
+
stderr = (stderr + data).slice(-65536);
|
|
129
|
+
});
|
|
130
|
+
const timer = setTimeout(() => child.kill(), options.timeoutMs);
|
|
131
|
+
child.on('error', error => {
|
|
132
|
+
clearTimeout(timer);
|
|
133
|
+
reject(error);
|
|
134
|
+
});
|
|
135
|
+
child.on('close', code => {
|
|
136
|
+
clearTimeout(timer);
|
|
137
|
+
resolve({ code, stdout, stderr });
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
//# sourceMappingURL=agent-installer.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { LocalAgents } from './agent-catalog';
|
|
2
|
+
/**
|
|
3
|
+
* The directory where Ta installs coding agents for the user (`<agent dir>/coding-agents`): an npm prefix of its
|
|
4
|
+
* own, so that nothing goes into the user's global npm and nothing needs root; and the Node.js Ta downloaded there
|
|
5
|
+
* for them when the computer has none new enough.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AgentInstalls implements LocalAgents {
|
|
8
|
+
readonly dir: string;
|
|
9
|
+
protected readonly platform: NodeJS.Platform;
|
|
10
|
+
static readonly DIR = "coding-agents";
|
|
11
|
+
constructor(dir: string, platform?: NodeJS.Platform);
|
|
12
|
+
static of(agentDir: string): AgentInstalls;
|
|
13
|
+
get binDir(): string;
|
|
14
|
+
/** Node.js as Ta downloaded it: `bin/node`, `bin/npm`. */
|
|
15
|
+
get nodeDir(): string;
|
|
16
|
+
bin(name: string): string | undefined;
|
|
17
|
+
/** The `bin` of the Node.js Ta downloaded; undefined when it did not. */
|
|
18
|
+
nodeBin(): string | undefined;
|
|
19
|
+
path(env?: NodeJS.ProcessEnv): string | undefined;
|
|
20
|
+
/** The version of a package Ta installed (`@openai/codex`, a spec with its version too); undefined when it did not. */
|
|
21
|
+
version(spec: string): string | undefined;
|
|
22
|
+
/** `@scope/name` of `@scope/name@1.2.3`. */
|
|
23
|
+
static packageName(spec: string): string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=agent-installs.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentInstalls = void 0;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
/**
|
|
7
|
+
* The directory where Ta installs coding agents for the user (`<agent dir>/coding-agents`): an npm prefix of its
|
|
8
|
+
* own, so that nothing goes into the user's global npm and nothing needs root; and the Node.js Ta downloaded there
|
|
9
|
+
* for them when the computer has none new enough.
|
|
10
|
+
*/
|
|
11
|
+
class AgentInstalls {
|
|
12
|
+
constructor(dir, platform = process.platform) {
|
|
13
|
+
this.dir = dir;
|
|
14
|
+
this.platform = platform;
|
|
15
|
+
}
|
|
16
|
+
static of(agentDir) {
|
|
17
|
+
return new AgentInstalls((0, node_path_1.join)(agentDir, AgentInstalls.DIR));
|
|
18
|
+
}
|
|
19
|
+
get binDir() {
|
|
20
|
+
return (0, node_path_1.join)(this.dir, 'node_modules', '.bin');
|
|
21
|
+
}
|
|
22
|
+
/** Node.js as Ta downloaded it: `bin/node`, `bin/npm`. */
|
|
23
|
+
get nodeDir() {
|
|
24
|
+
return (0, node_path_1.join)(this.dir, 'node');
|
|
25
|
+
}
|
|
26
|
+
bin(name) {
|
|
27
|
+
const file = (0, node_path_1.join)(this.binDir, this.platform === 'win32' ? `${name}.cmd` : name);
|
|
28
|
+
return isFile(file) ? file : undefined;
|
|
29
|
+
}
|
|
30
|
+
/** The `bin` of the Node.js Ta downloaded; undefined when it did not. */
|
|
31
|
+
nodeBin() {
|
|
32
|
+
const bin = (0, node_path_1.join)(this.nodeDir, 'bin');
|
|
33
|
+
return isFile((0, node_path_1.join)(bin, 'node')) ? bin : undefined;
|
|
34
|
+
}
|
|
35
|
+
path(env = process.env) {
|
|
36
|
+
const bin = this.nodeBin();
|
|
37
|
+
return bin ? [bin, env.PATH].filter(Boolean).join(node_path_1.delimiter) : undefined;
|
|
38
|
+
}
|
|
39
|
+
/** The version of a package Ta installed (`@openai/codex`, a spec with its version too); undefined when it did not. */
|
|
40
|
+
version(spec) {
|
|
41
|
+
try {
|
|
42
|
+
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(this.dir, 'node_modules', AgentInstalls.packageName(spec), 'package.json'), 'utf8')).version;
|
|
43
|
+
}
|
|
44
|
+
catch (_a) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/** `@scope/name` of `@scope/name@1.2.3`. */
|
|
49
|
+
static packageName(spec) {
|
|
50
|
+
const at = spec.indexOf('@', 1);
|
|
51
|
+
return at > 0 ? spec.slice(0, at) : spec;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.AgentInstalls = AgentInstalls;
|
|
55
|
+
AgentInstalls.DIR = 'coding-agents';
|
|
56
|
+
function isFile(path) {
|
|
57
|
+
try {
|
|
58
|
+
return (0, node_fs_1.statSync)(path).isFile();
|
|
59
|
+
}
|
|
60
|
+
catch (_a) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=agent-installs.js.map
|
|
@@ -17,6 +17,12 @@ export declare namespace AgentPrompt {
|
|
|
17
17
|
* and the user may have talked with another model first. Text only, the latest part.
|
|
18
18
|
*/
|
|
19
19
|
function transcript(messages: readonly Message[], pendingCount: number): string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Whether a title the agent gave is the start of what Ta put before the user's words (the notes, the conversation
|
|
22
|
+
* before, the context of a message), not of what they said: an agent may name a session after the first line of
|
|
23
|
+
* its first prompt, as `<skills> The following skills provide…`.
|
|
24
|
+
*/
|
|
25
|
+
function noteTitle(title: string): boolean;
|
|
20
26
|
/**
|
|
21
27
|
* The notes of pi's system prompt (its system messages) an agent is given: an agent keeps its own system prompt
|
|
22
28
|
* and gets none of pi's, but the notes Ta's packages add, each in a tag of its own (`<ta-glance>…</ta-glance>`),
|
|
@@ -82,6 +82,15 @@ var AgentPrompt;
|
|
|
82
82
|
return `<earlier_conversation>\nThe user talked with another assistant before you joined; this is what was said:\n\n${kept}\n</earlier_conversation>`;
|
|
83
83
|
}
|
|
84
84
|
AgentPrompt.transcript = transcript;
|
|
85
|
+
/**
|
|
86
|
+
* Whether a title the agent gave is the start of what Ta put before the user's words (the notes, the conversation
|
|
87
|
+
* before, the context of a message), not of what they said: an agent may name a session after the first line of
|
|
88
|
+
* its first prompt, as `<skills> The following skills provide…`.
|
|
89
|
+
*/
|
|
90
|
+
function noteTitle(title) {
|
|
91
|
+
return /^<(?:ta-[\w-]+|skills|earlier_conversation|context)>/.test(title.trim());
|
|
92
|
+
}
|
|
93
|
+
AgentPrompt.noteTitle = noteTitle;
|
|
85
94
|
/**
|
|
86
95
|
* The notes of pi's system prompt (its system messages) an agent is given: an agent keeps its own system prompt
|
|
87
96
|
* and gets none of pi's, but the notes Ta's packages add, each in a tag of its own (`<ta-glance>…</ta-glance>`),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What offers the agents again, of each pi extension of the package in this process (of each session, and of the
|
|
3
|
+
* models Ta lists without one): the host calls them once it installed an agent, so that it is a model at once. The
|
|
4
|
+
* host and the extension are bundles of their own; they meet on `globalThis`.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace AgentRefresh {
|
|
7
|
+
/** Adds `refresh`; the function returned takes it out. */
|
|
8
|
+
function add(refresh: () => void): () => void;
|
|
9
|
+
function run(): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=agent-refresh.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentRefresh = void 0;
|
|
4
|
+
const REFRESH = Symbol.for('ta-agents.refresh');
|
|
5
|
+
/**
|
|
6
|
+
* What offers the agents again, of each pi extension of the package in this process (of each session, and of the
|
|
7
|
+
* models Ta lists without one): the host calls them once it installed an agent, so that it is a model at once. The
|
|
8
|
+
* host and the extension are bundles of their own; they meet on `globalThis`.
|
|
9
|
+
*/
|
|
10
|
+
var AgentRefresh;
|
|
11
|
+
(function (AgentRefresh) {
|
|
12
|
+
function all() {
|
|
13
|
+
var _a;
|
|
14
|
+
const global = globalThis;
|
|
15
|
+
const set = (_a = global[REFRESH]) !== null && _a !== void 0 ? _a : new Set();
|
|
16
|
+
global[REFRESH] = set;
|
|
17
|
+
return set;
|
|
18
|
+
}
|
|
19
|
+
/** Adds `refresh`; the function returned takes it out. */
|
|
20
|
+
function add(refresh) {
|
|
21
|
+
all().add(refresh);
|
|
22
|
+
return () => all().delete(refresh);
|
|
23
|
+
}
|
|
24
|
+
AgentRefresh.add = add;
|
|
25
|
+
function run() {
|
|
26
|
+
for (const refresh of all()) {
|
|
27
|
+
try {
|
|
28
|
+
refresh();
|
|
29
|
+
}
|
|
30
|
+
catch (_a) {
|
|
31
|
+
// An extension of a session that closed meanwhile: the next session offers them.
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
AgentRefresh.run = run;
|
|
36
|
+
})(AgentRefresh || (exports.AgentRefresh = AgentRefresh = {}));
|
|
37
|
+
//# sourceMappingURL=agent-refresh.js.map
|
|
@@ -136,8 +136,6 @@ export declare class AgentSession {
|
|
|
136
136
|
}): number | undefined;
|
|
137
137
|
/** Whether an update is the agent's own bookkeeping, not for the user: the summary of a compaction (`<agent>/isCompactInternal`). */
|
|
138
138
|
static internal(meta: Record<string, unknown> | undefined): boolean;
|
|
139
|
-
/** Whether an update is of the session's own agent, not of a subagent (`…parentToolCallId`) or a teammate (`…memberEvent`). */
|
|
140
|
-
static own(meta: Record<string, unknown> | undefined): boolean;
|
|
141
139
|
static requestIds(meta: Record<string, unknown> | undefined): string[];
|
|
142
140
|
/** What the agent says it is doing, if it says (CodeBuddy Code: `_meta['codebuddy.ai/agentPhase'].phase`). */
|
|
143
141
|
/** What an agent's `retrying` phase says of the retry (`…agentPhase` `retry`: `{ reason, attempt }`). */
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AgentSession = void 0;
|
|
4
4
|
const acp_protocol_1 = require("./acp-protocol");
|
|
5
|
+
const agent_prompt_1 = require("./agent-prompt");
|
|
5
6
|
const agent_turn_1 = require("./agent-turn");
|
|
6
7
|
/** The phases in which the agent asks its model again, once the calls before are over. */
|
|
7
8
|
const STEP_PHASES = new Set(['preparing', 'model_requesting']);
|
|
@@ -61,13 +62,13 @@ class AgentSession {
|
|
|
61
62
|
return;
|
|
62
63
|
case 'session_info_update': {
|
|
63
64
|
const title = update.title;
|
|
64
|
-
if (typeof title === 'string' && title.trim() && title.trim() !== this.title) {
|
|
65
|
+
if (typeof title === 'string' && title.trim() && title.trim() !== this.title && !agent_prompt_1.AgentPrompt.noteTitle(title)) {
|
|
65
66
|
this.title = title.trim();
|
|
66
67
|
(_b = (_a = this.callbacks).title) === null || _b === void 0 ? void 0 : _b.call(_a, this.title);
|
|
67
68
|
}
|
|
68
69
|
const phase = AgentSession.phase(meta);
|
|
69
70
|
// A phase of a request before this prompt (the end of a compaction, say) is not this turn's, nor one of a subagent or a teammate.
|
|
70
|
-
if (phase && !ids.some(id => this.earlier.has(id)) &&
|
|
71
|
+
if (phase && !ids.some(id => this.earlier.has(id)) && acp_protocol_1.Acp.own(meta)) {
|
|
71
72
|
this.phase(this.turn, phase, meta);
|
|
72
73
|
}
|
|
73
74
|
if (meta && Object.keys(meta).some(key => /unsolicitedTurn$/.test(key)) && !this.turn) {
|
|
@@ -339,10 +340,6 @@ class AgentSession {
|
|
|
339
340
|
static internal(meta) {
|
|
340
341
|
return Object.entries(meta !== null && meta !== void 0 ? meta : {}).some(([key, value]) => /isCompactInternal$/.test(key) && value === true);
|
|
341
342
|
}
|
|
342
|
-
/** Whether an update is of the session's own agent, not of a subagent (`…parentToolCallId`) or a teammate (`…memberEvent`). */
|
|
343
|
-
static own(meta) {
|
|
344
|
-
return !Object.keys(meta !== null && meta !== void 0 ? meta : {}).some(key => /(parentToolCallId|memberEvent)$/.test(key));
|
|
345
|
-
}
|
|
346
343
|
static requestIds(meta) {
|
|
347
344
|
return Object.entries(meta !== null && meta !== void 0 ? meta : {})
|
|
348
345
|
.filter(([key, value]) => /requestId$/i.test(key) && typeof value === 'string' && value)
|
|
@@ -31,6 +31,8 @@ export interface ToolRun {
|
|
|
31
31
|
done: boolean;
|
|
32
32
|
/** The agent went on to its next step without saying the call ended: it dropped it (a call of a tool it does not have, say). */
|
|
33
33
|
left: boolean;
|
|
34
|
+
/** A call of a subagent or a teammate of the agent, which goes on while the agent itself takes its next steps. */
|
|
35
|
+
others: boolean;
|
|
34
36
|
/** Its arguments are all there: the agent said so, or announced the call with them before running it. */
|
|
35
37
|
complete: boolean;
|
|
36
38
|
/** What its terminal printed, as some agents report it (Codex: `_meta.terminal_output_delta`). */
|
|
@@ -94,9 +96,12 @@ export declare class AgentTurn {
|
|
|
94
96
|
settle(id: string, quietMs: number, signal?: AbortSignal): Promise<void>;
|
|
95
97
|
/** The call once it ended, the agent went on without it, or the turn ended. */
|
|
96
98
|
waitTool(id: string, signal?: AbortSignal): Promise<ToolRun | undefined>;
|
|
97
|
-
/** Calls the agent started that neither ended nor were dropped, nor stepped past. */
|
|
99
|
+
/** Calls the agent itself started that neither ended nor were dropped, nor stepped past. */
|
|
98
100
|
open(): boolean;
|
|
99
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* The agent asks its model again: its calls before are over, said so or not, once their end had time to come.
|
|
103
|
+
* Those of its subagents and teammates are not: they work on meanwhile.
|
|
104
|
+
*/
|
|
100
105
|
step(): void;
|
|
101
106
|
/** The calls stepped past that did not end are dropped. */
|
|
102
107
|
protected leave(): void;
|
|
@@ -116,20 +116,23 @@ class AgentTurn {
|
|
|
116
116
|
await this.changed(signal);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
/** Calls the agent started that neither ended nor were dropped, nor stepped past. */
|
|
119
|
+
/** Calls the agent itself started that neither ended nor were dropped, nor stepped past. */
|
|
120
120
|
open() {
|
|
121
121
|
for (const run of this.tools.values()) {
|
|
122
|
-
if (!run.done && !run.left && !this.stepped.has(run.id)) {
|
|
122
|
+
if (!run.done && !run.left && !run.others && !this.stepped.has(run.id)) {
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
return false;
|
|
127
127
|
}
|
|
128
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* The agent asks its model again: its calls before are over, said so or not, once their end had time to come.
|
|
130
|
+
* Those of its subagents and teammates are not: they work on meanwhile.
|
|
131
|
+
*/
|
|
129
132
|
step() {
|
|
130
133
|
var _a, _b;
|
|
131
134
|
for (const run of this.tools.values()) {
|
|
132
|
-
if (!run.done && !run.left) {
|
|
135
|
+
if (!run.done && !run.left && !run.others) {
|
|
133
136
|
this.stepped.add(run.id);
|
|
134
137
|
}
|
|
135
138
|
}
|
|
@@ -184,6 +187,7 @@ class AgentTurn {
|
|
|
184
187
|
output: '',
|
|
185
188
|
done: false,
|
|
186
189
|
left: false,
|
|
190
|
+
others: !acp_protocol_1.Acp.own(update._meta),
|
|
187
191
|
complete: false,
|
|
188
192
|
terminal: '',
|
|
189
193
|
updatedAt: Date.now(),
|