@celljs/ta 4.10.0 → 4.12.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 +3 -1
- package/README.md +3 -1
- package/dist/cli.mjs +1675 -51
- package/dist/gateway.mjs +167 -5
- package/dist/pi/CHANGELOG.md +27 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +359 -155
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +30 -10
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +5 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +2 -2
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +4 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +9 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +25 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +71 -1
- package/dist/pi/packages/ta-agents/lib/agent-session.js +177 -17
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +23 -2
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +4 -3
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +7 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +26 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +7 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +12 -0
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +31 -299
- package/dist/pi/packages/ta-bots/host/index.mjs +143 -1
- package/dist/pi/packages/ta-bots/lib/bots-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-bots/lib/bots-protocol.js +3 -1
- package/dist/pi/packages/ta-bots/lib/bots-view.js +24 -12
- package/dist/pi/packages/ta-bots/lib/composer.js +1 -0
- package/dist/pi/packages/ta-bots/lib/extension.js +10 -17
- package/dist/pi/packages/ta-bots/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-bots/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-bots/lib/index.js +2 -0
- package/dist/pi/packages/ta-bots/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-bots/lib/style.js +1 -0
- package/dist/pi/packages/ta-bots/lib/text-util.js +8 -1
- package/dist/pi/packages/ta-bots/lib/tool-line.d.ts +8 -0
- package/dist/pi/packages/ta-bots/lib/tool-line.js +19 -0
- package/dist/pi/packages/ta-bots/package.json +1 -1
- package/dist/pi/packages/ta-bots/web/index.js +47 -16
- package/dist/pi/packages/ta-changes/extension/index.mjs +23 -13
- package/dist/pi/packages/ta-changes/lib/card.js +18 -4
- package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts +0 -4
- package/dist/pi/packages/ta-changes/lib/changes-protocol.js +1 -5
- package/dist/pi/packages/ta-changes/lib/extension.js +5 -13
- package/dist/pi/packages/ta-changes/package.json +1 -1
- package/dist/pi/packages/ta-changes/web/index.js +16 -3
- package/dist/pi/packages/ta-channels/README.en.md +4 -3
- package/dist/pi/packages/ta-channels/README.md +4 -3
- package/dist/pi/packages/ta-channels/extension/index.mjs +350 -28
- package/dist/pi/packages/ta-channels/host/index.mjs +588 -43
- package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/agent-cards.js +58 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +2 -2
- package/dist/pi/packages/ta-channels/lib/agent-menu.js +20 -6
- package/dist/pi/packages/ta-channels/lib/card.d.ts +27 -0
- package/dist/pi/packages/ta-channels/lib/card.js +178 -0
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +65 -13
- package/dist/pi/packages/ta-channels/lib/channels-model.js +15 -6
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +31 -2
- package/dist/pi/packages/ta-channels/lib/channels-util.js +100 -6
- package/dist/pi/packages/ta-channels/lib/channels.d.ts +28 -18
- package/dist/pi/packages/ta-channels/lib/channels.js +65 -65
- package/dist/pi/packages/ta-channels/lib/create.js +3 -1
- package/dist/pi/packages/ta-channels/lib/extension.d.ts +8 -0
- package/dist/pi/packages/ta-channels/lib/extension.js +104 -18
- package/dist/pi/packages/ta-channels/lib/faces.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/faces.js +6 -0
- package/dist/pi/packages/ta-channels/lib/handoff-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/handoff-view.js +113 -0
- package/dist/pi/packages/ta-channels/lib/handoff.d.ts +67 -0
- package/dist/pi/packages/ta-channels/lib/handoff.js +114 -0
- package/dist/pi/packages/ta-channels/lib/host.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/host.js +1 -1
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +45 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +90 -0
- package/dist/pi/packages/ta-channels/lib/index.js +10 -1
- package/dist/pi/packages/ta-channels/lib/member-tools.d.ts +23 -0
- package/dist/pi/packages/ta-channels/lib/member-tools.js +56 -0
- package/dist/pi/packages/ta-channels/lib/members.js +6 -2
- package/dist/pi/packages/ta-channels/lib/notice.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/notice.js +101 -0
- package/dist/pi/packages/ta-channels/lib/room.js +13 -2
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +1 -6
- package/dist/pi/packages/ta-channels/lib/sidebar.js +160 -79
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +72 -4
- package/dist/pi/packages/ta-channels/lib/team.d.ts +58 -10
- package/dist/pi/packages/ta-channels/lib/team.js +159 -38
- package/dist/pi/packages/ta-channels/lib/tool-lines.d.ts +22 -0
- package/dist/pi/packages/ta-channels/lib/tool-lines.js +113 -0
- package/dist/pi/packages/ta-channels/lib/views.d.ts +33 -16
- package/dist/pi/packages/ta-channels/lib/views.js +79 -31
- package/dist/pi/packages/ta-channels/package.json +2 -1
- package/dist/pi/packages/ta-channels/web/index.js +1551 -308
- package/dist/pi/packages/ta-computer-use/package.json +6 -1
- package/dist/pi/packages/ta-cron/README.en.md +4 -2
- package/dist/pi/packages/ta-cron/README.md +4 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +416 -44
- package/dist/pi/packages/ta-cron/host/index.mjs +24 -3
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +48 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.js +133 -0
- package/dist/pi/packages/ta-cron/lib/commands.d.ts +2 -1
- package/dist/pi/packages/ta-cron/lib/commands.js +10 -4
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/composer.js +58 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +10 -3
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js +6 -3
- package/dist/pi/packages/ta-cron/lib/editor.js +5 -3
- package/dist/pi/packages/ta-cron/lib/extension.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/extension.js +33 -13
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +18 -0
- package/dist/pi/packages/ta-cron/lib/i18n.js +36 -0
- package/dist/pi/packages/ta-cron/lib/index.js +4 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -1
- package/dist/pi/packages/ta-cron/lib/page.js +12 -0
- package/dist/pi/packages/ta-cron/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/react.js +8 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.js +3 -2
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +11 -13
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +20 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +6 -2
- package/dist/pi/packages/ta-cron/lib/tool-line.d.ts +9 -0
- package/dist/pi/packages/ta-cron/lib/tool-line.js +40 -0
- package/dist/pi/packages/ta-cron/lib/tool.d.ts +5 -1
- package/dist/pi/packages/ta-cron/lib/tool.js +6 -3
- package/dist/pi/packages/ta-cron/package.json +12 -1
- package/dist/pi/packages/ta-cron/web/index.js +661 -254
- package/dist/pi/packages/ta-extensions/README.en.md +1 -1
- package/dist/pi/packages/ta-extensions/README.md +1 -1
- package/dist/pi/packages/ta-extensions/host/index.mjs +3 -2
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts +4 -0
- package/dist/pi/packages/ta-extensions/lib/actions.js +13 -4
- package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts +5 -0
- package/dist/pi/packages/ta-extensions/lib/extensions-util.js +10 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.js +8 -2
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.js +4 -5
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts +2 -2
- package/dist/pi/packages/ta-extensions/lib/market-util.js +2 -2
- package/dist/pi/packages/ta-extensions/lib/page.js +12 -7
- package/dist/pi/packages/ta-extensions/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-extensions/lib/react.js +8 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +3 -2
- package/dist/pi/packages/ta-extensions/package.json +6 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +20 -8
- package/dist/pi/packages/ta-extensions/web/index.js +191 -22
- package/dist/pi/packages/ta-games/README.en.md +47 -0
- package/dist/pi/packages/ta-games/README.md +47 -0
- package/dist/pi/packages/ta-games/host/index.mjs +65 -0
- package/dist/pi/packages/ta-games/lib/games-view.d.ts +16 -0
- package/dist/pi/packages/ta-games/lib/games-view.js +77 -0
- package/dist/pi/packages/ta-games/lib/host.d.ts +36 -0
- package/dist/pi/packages/ta-games/lib/host.js +83 -0
- package/dist/pi/packages/ta-games/lib/i18n.d.ts +35 -0
- package/dist/pi/packages/ta-games/lib/i18n.js +71 -0
- package/dist/pi/packages/ta-games/lib/ideas.d.ts +6 -0
- package/dist/pi/packages/ta-games/lib/ideas.js +62 -0
- package/dist/pi/packages/ta-games/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-games/lib/index.js +24 -0
- package/dist/pi/packages/ta-games/lib/make-game.d.ts +23 -0
- package/dist/pi/packages/ta-games/lib/make-game.js +67 -0
- package/dist/pi/packages/ta-games/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-games/lib/react.js +16 -0
- package/dist/pi/packages/ta-games/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-games/lib/style.js +33 -0
- package/dist/pi/packages/ta-games/package.json +60 -0
- package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +127 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/package.json +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/web.js +389 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/package.json +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/web.js +423 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/LICENSE.md +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/actions-and-utilities/SKILL.md +343 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/animations/SKILL.md +481 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/audio-and-sound/SKILL.md +453 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/references/REFERENCE.md +128 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/curves-and-paths/SKILL.md +359 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/data-manager/SKILL.md +406 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/events-system/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/filters-and-postfx/SKILL.md +449 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/SKILL.md +478 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/references/REFERENCE.md +76 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-setup-and-config/SKILL.md +485 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/geometry-and-math/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/graphics-and-shapes/SKILL.md +473 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/groups-and-containers/SKILL.md +418 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/SKILL.md +500 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/references/REFERENCE.md +372 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/SKILL.md +474 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/references/REFERENCE.md +148 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/SKILL.md +499 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/references/REFERENCE.md +17 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-arcade/SKILL.md +468 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-matter/SKILL.md +499 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/render-textures/SKILL.md +441 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scale-and-responsive/SKILL.md +371 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/SKILL.md +450 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/references/REFERENCE.md +78 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/SKILL.md +417 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/references/REFERENCE.md +160 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/text-and-bitmaptext/SKILL.md +460 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/tilemaps/SKILL.md +440 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/time-and-timers/SKILL.md +496 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/tweens/SKILL.md +414 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v3-to-v4-migration/SKILL.md +430 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/SKILL.md +384 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/references/REFERENCE.md +69 -0
- package/dist/pi/packages/ta-games/web/index.js +431 -0
- package/dist/pi/packages/ta-glance/README.en.md +11 -0
- package/dist/pi/packages/ta-glance/README.md +11 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +67 -0
- package/dist/pi/packages/ta-glance/lib/card.d.ts +8 -0
- package/dist/pi/packages/ta-glance/lib/card.js +269 -0
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +24 -0
- package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +9 -0
- package/dist/pi/packages/ta-glance/lib/glance-json.js +85 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +34 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +98 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +8 -0
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +7 -0
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +206 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.js +12 -0
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +22 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +41 -0
- package/dist/pi/packages/ta-glance/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-glance/lib/index.js +22 -0
- package/dist/pi/packages/ta-glance/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-glance/lib/react.js +8 -0
- package/dist/pi/packages/ta-glance/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-glance/lib/style.js +241 -0
- package/dist/pi/packages/ta-glance/package.json +53 -0
- package/dist/pi/packages/ta-glance/web/index.js +1013 -0
- package/dist/pi/packages/ta-launcher/lib/actions.d.ts +4 -4
- package/dist/pi/packages/ta-launcher/lib/actions.js +7 -3
- package/dist/pi/packages/ta-launcher/lib/launcher-util.d.ts +7 -7
- package/dist/pi/packages/ta-launcher/lib/launcher-util.js +11 -8
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +13 -7
- package/dist/pi/packages/ta-launcher/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-launcher/lib/react.js +8 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +6 -4
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +34 -17
- package/dist/pi/packages/ta-manual/README.en.md +10 -0
- package/dist/pi/packages/ta-manual/README.md +10 -0
- package/dist/pi/packages/ta-manual/lib/i18n.d.ts +15 -0
- package/dist/pi/packages/ta-manual/lib/i18n.js +31 -0
- package/dist/pi/packages/ta-manual/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-manual/lib/index.js +24 -0
- package/dist/pi/packages/ta-manual/lib/manual-util.d.ts +18 -0
- package/dist/pi/packages/ta-manual/lib/manual-util.js +40 -0
- package/dist/pi/packages/ta-manual/lib/manual-view.d.ts +9 -0
- package/dist/pi/packages/ta-manual/lib/manual-view.js +81 -0
- package/dist/pi/packages/ta-manual/lib/pictures-a.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-a.js +263 -0
- package/dist/pi/packages/ta-manual/lib/pictures-b.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +216 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +53 -0
- package/dist/pi/packages/ta-manual/lib/pictures.d.ts +9 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +17 -0
- package/dist/pi/packages/ta-manual/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-manual/lib/react.js +8 -0
- package/dist/pi/packages/ta-manual/lib/scene.d.ts +68 -0
- package/dist/pi/packages/ta-manual/lib/scene.js +115 -0
- package/dist/pi/packages/ta-manual/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-manual/lib/style.js +47 -0
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +43 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +388 -0
- package/dist/pi/packages/ta-manual/package.json +54 -0
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +130 -0
- package/dist/pi/packages/ta-manual/web/index.js +2408 -0
- package/dist/pi/packages/ta-notify/README.en.md +29 -0
- package/dist/pi/packages/ta-notify/README.md +29 -0
- package/dist/pi/packages/ta-notify/extension/index.mjs +259 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +163 -0
- package/dist/pi/packages/ta-notify/lib/ask-card.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/ask-card.js +40 -0
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-notify/lib/extension.js +102 -0
- package/dist/pi/packages/ta-notify/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-notify/lib/host.js +9 -0
- package/dist/pi/packages/ta-notify/lib/i18n.d.ts +31 -0
- package/dist/pi/packages/ta-notify/lib/i18n.js +63 -0
- package/dist/pi/packages/ta-notify/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/index.js +29 -0
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +74 -0
- package/dist/pi/packages/ta-notify/lib/notify-protocol.js +23 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +21 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.js +75 -0
- package/dist/pi/packages/ta-notify/lib/notify-util.d.ts +39 -0
- package/dist/pi/packages/ta-notify/lib/notify-util.js +119 -0
- package/dist/pi/packages/ta-notify/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/react.js +8 -0
- package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/server-texts.js +22 -0
- package/dist/pi/packages/ta-notify/lib/settings.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/settings.js +85 -0
- package/dist/pi/packages/ta-notify/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-notify/lib/style.js +29 -0
- package/dist/pi/packages/ta-notify/lib/tool-line.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/tool-line.js +20 -0
- package/dist/pi/packages/ta-notify/lib/tool.d.ts +37 -0
- package/dist/pi/packages/ta-notify/lib/tool.js +46 -0
- package/dist/pi/packages/ta-notify/lib/watcher.d.ts +15 -0
- package/dist/pi/packages/ta-notify/lib/watcher.js +81 -0
- package/dist/pi/packages/ta-notify/package.json +55 -0
- package/dist/pi/packages/ta-notify/web/index.js +436 -0
- package/dist/pi/packages/ta-recall/README.en.md +19 -0
- package/dist/pi/packages/ta-recall/README.md +19 -0
- package/dist/pi/packages/ta-recall/extension/index.mjs +615 -0
- package/dist/pi/packages/ta-recall/host/index.mjs +820 -0
- package/dist/pi/packages/ta-recall/lib/brief-card.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/brief-card.js +67 -0
- package/dist/pi/packages/ta-recall/lib/brief-home.d.ts +49 -0
- package/dist/pi/packages/ta-recall/lib/brief-home.js +143 -0
- package/dist/pi/packages/ta-recall/lib/brief-seen.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/brief-seen.js +26 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +64 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +179 -0
- package/dist/pi/packages/ta-recall/lib/chat-icons.d.ts +8 -0
- package/dist/pi/packages/ta-recall/lib/chat-icons.js +56 -0
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/composer.js +38 -0
- package/dist/pi/packages/ta-recall/lib/conversation-index.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/conversation-index.js +72 -0
- package/dist/pi/packages/ta-recall/lib/conversation-util.d.ts +16 -0
- package/dist/pi/packages/ta-recall/lib/conversation-util.js +109 -0
- package/dist/pi/packages/ta-recall/lib/conversations.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/conversations.js +52 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-recall/lib/extension.js +132 -0
- package/dist/pi/packages/ta-recall/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/host.js +11 -0
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +41 -0
- package/dist/pi/packages/ta-recall/lib/i18n.js +83 -0
- package/dist/pi/packages/ta-recall/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/index.js +45 -0
- package/dist/pi/packages/ta-recall/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/react.js +16 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +186 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +60 -0
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +42 -0
- package/dist/pi/packages/ta-recall/lib/recall-service.js +241 -0
- package/dist/pi/packages/ta-recall/lib/search-source.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/search-source.js +49 -0
- package/dist/pi/packages/ta-recall/lib/search-util.d.ts +30 -0
- package/dist/pi/packages/ta-recall/lib/search-util.js +167 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/settings.js +77 -0
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/skill-card.js +51 -0
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +19 -0
- package/dist/pi/packages/ta-recall/lib/skill-util.js +110 -0
- package/dist/pi/packages/ta-recall/lib/stored.d.ts +5 -0
- package/dist/pi/packages/ta-recall/lib/stored.js +28 -0
- package/dist/pi/packages/ta-recall/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/style.js +48 -0
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/tool-line.js +23 -0
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +63 -0
- package/dist/pi/packages/ta-recall/lib/tool.js +71 -0
- package/dist/pi/packages/ta-recall/package.json +55 -0
- package/dist/pi/packages/ta-recall/web/index.js +1042 -0
- package/dist/pi/packages/ta-rooms/README.en.md +29 -0
- package/dist/pi/packages/ta-rooms/README.md +29 -0
- package/dist/pi/packages/ta-rooms/extension/index.mjs +362 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +966 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.d.ts +25 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.d.ts +39 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +235 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +114 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.js +645 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +85 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +172 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +165 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +73 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +99 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.js +180 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +45 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +145 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.d.ts +34 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +223 -0
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +176 -0
- package/dist/pi/packages/ta-rooms/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-rooms/lib/host.js +18 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.js +211 -0
- package/dist/pi/packages/ta-rooms/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-rooms/lib/index.js +106 -0
- package/dist/pi/packages/ta-rooms/lib/members-view.d.ts +3 -0
- package/dist/pi/packages/ta-rooms/lib/members-view.js +94 -0
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +154 -0
- package/dist/pi/packages/ta-rooms/lib/page.js +400 -0
- package/dist/pi/packages/ta-rooms/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/react.js +8 -0
- package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +15 -0
- package/dist/pi/packages/ta-rooms/lib/room-view.js +168 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-home.d.ts +32 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-home.js +141 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +14 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +217 -0
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-rooms/lib/style.js +205 -0
- package/dist/pi/packages/ta-rooms/package.json +56 -0
- package/dist/pi/packages/ta-rooms/web/index.js +3165 -0
- package/dist/pi/packages/ta-share/README.en.md +27 -0
- package/dist/pi/packages/ta-share/README.md +27 -0
- package/dist/pi/packages/ta-share/extension/index.mjs +184 -0
- package/dist/pi/packages/ta-share/host/index.mjs +364 -0
- package/dist/pi/packages/ta-share/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-share/lib/extension.js +115 -0
- package/dist/pi/packages/ta-share/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-share/lib/host.js +9 -0
- package/dist/pi/packages/ta-share/lib/i18n.d.ts +106 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +213 -0
- package/dist/pi/packages/ta-share/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-share/lib/index.js +77 -0
- package/dist/pi/packages/ta-share/lib/page.d.ts +48 -0
- package/dist/pi/packages/ta-share/lib/page.js +105 -0
- package/dist/pi/packages/ta-share/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-share/lib/react.js +8 -0
- package/dist/pi/packages/ta-share/lib/server-texts.d.ts +14 -0
- package/dist/pi/packages/ta-share/lib/server-texts.js +52 -0
- package/dist/pi/packages/ta-share/lib/share-dialog.d.ts +18 -0
- package/dist/pi/packages/ta-share/lib/share-dialog.js +233 -0
- package/dist/pi/packages/ta-share/lib/share-protocol.d.ts +86 -0
- package/dist/pi/packages/ta-share/lib/share-protocol.js +30 -0
- package/dist/pi/packages/ta-share/lib/share-service.d.ts +50 -0
- package/dist/pi/packages/ta-share/lib/share-service.js +130 -0
- package/dist/pi/packages/ta-share/lib/shared-view.d.ts +18 -0
- package/dist/pi/packages/ta-share/lib/shared-view.js +225 -0
- package/dist/pi/packages/ta-share/lib/shares-page.d.ts +3 -0
- package/dist/pi/packages/ta-share/lib/shares-page.js +78 -0
- package/dist/pi/packages/ta-share/lib/snapshot.d.ts +30 -0
- package/dist/pi/packages/ta-share/lib/snapshot.js +195 -0
- package/dist/pi/packages/ta-share/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-share/lib/style.js +117 -0
- package/dist/pi/packages/ta-share/package.json +56 -0
- package/dist/pi/packages/ta-share/web/index.js +1224 -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 +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.js +29 -30
- package/dist/pi/packages/ta-workspace/lib/browser-tool-line.d.ts +15 -0
- package/dist/pi/packages/ta-workspace/lib/browser-tool-line.js +70 -0
- package/dist/pi/packages/ta-workspace/lib/editors.js +29 -2
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +13 -2
- package/dist/pi/packages/ta-workspace/lib/i18n.js +29 -7
- package/dist/pi/packages/ta-workspace/lib/index.js +2 -0
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts +10 -1
- package/dist/pi/packages/ta-workspace/lib/preview.js +136 -11
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +56 -40
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.d.ts +15 -4
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.js +31 -9
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +3 -2
- package/dist/pi/packages/ta-workspace/lib/terminal.js +51 -21
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +27 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.js +74 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.d.ts +5 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.js +14 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +823 -341
- package/dist/public/assets/OrbitControls-DVf70a7w.js +1 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-BmIko5tV.js → abnfDiagram-S7VZAUFO-BnqtcbpZ.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-XgsdQ7ul.js → architecture-WOLXFQ4H-BzPq1Ioe.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW--sVhMS03.js → architectureDiagram-YGSQEFNW-BsquO3a7.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-8f9b-9k2.js → blockDiagram-APKKGZFW-BQNYOEP4.js} +1 -1
- package/dist/public/assets/{browser-DOHZ0JCf.js → browser-DS711n7Y.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CwYQ0Jfy.js → c4Diagram-KJ2TOQU5-D6e79Ycq.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-7Y9ezehi.js → chunk-6MUBBAK2-B-sgaPoU.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-CZIH4pWz.js → chunk-AXFCVDMN-D8pJKIg2.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-DsNATY2m.js → chunk-BG4553SI-86TL-vCz.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CoXkfYE-.js → chunk-DQASFODM-CfUVuGjc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C5OLqki8.js → chunk-HFQBQIA3-Drm0FEYk.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DMHuYGEF.js → chunk-KQLB2F66-BVFRADlC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BKeOttO1.js → chunk-KS47KZWR-DfyALEmP.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-D6zCwkk7.js → chunk-LEVMRMFU-DtJVzk2c.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-B5-QqcZg.js → chunk-M57EVK23-DTy27PHQ.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-DQrq3n0T.js → chunk-OY52VR5R-nSgn7jZg.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-j6ZT7EDR.js → chunk-QB3YPZ4I-CkSxO_X6.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-D5MXUO36.js → chunk-R3KSYZAL-Ck6iAjAL.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DaBkw4dD.js → chunk-STOXU5M4-DQPHdSTh.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-vXcRfGci.js → chunk-TU62E6Q5-Bc2AbV2Y.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-CIh6H4Y2.js → chunk-X4PVCEUW-Cgpm0IXm.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-C_Vwv1FM.js → chunk-XXDRQBXY-CGE4eLpg.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-DccDWEJn.js → classDiagram-v2-L25IHNXF-4eQuDPEo.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BX47lumZ.js → cose-bilkent-JH36ORCC-tDLCWq07.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dd40W2Jh.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BE6WOGxW.js → cynefinDiagram-L36ESFBY-ByqcZ8x9.js} +1 -1
- package/dist/public/assets/{d3-selection-ZcE6yRN5.js → d3-selection-Bgn1374-.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CE6SOOcN.js → dagre-SPEB5RXH-mCgr71mV.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-xC8VtiYL.js → diagram-3B7GL73J-DpYSwpQ0.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-4dmcBbjL.js → diagram-DNEMPZML-DMozUQzi.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-D14Yn3sQ.js → diagram-L3MUGCDN-Bk5Uf8PD.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-GxSXIhsK.js → diagram-LA4NIPWU-DFt5cPVK.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Cm7Prlpc.js → diagram-MHCOC4E2-BkZZcKqK.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-mkUnnKFu.js → diagram-XPFHEONP-HEY6kyyN.js} +1 -1
- package/dist/public/assets/{dist-acJS-BlA.js → dist-Bj2CrKn7.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-m77ua3UQ.js → ebnfDiagram-UZSYDL2S-D4JvYyVb.js} +1 -1
- package/dist/public/assets/{editor.api-CljTm-EQ.js → editor.api-BpJFzYbl.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-DsQY1hw9.js → elk-XV6XMXQE-CT6qLJkF.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-CV8gJM0P.js → erDiagram-EYBAPDEH-BGng1goR.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-C1pymbUr.js → eventmodeling-K75KTNOO-Tt8O-Q1Z.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-uFzenfA3.js +1 -0
- package/dist/public/assets/{freemarker2-DYJXaMHN.js → freemarker2-Dd5ksoRn.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-CppxOWRh.js → ganttDiagram-23REXITY-Jl8VO_g2.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D28I_jUc.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CrQrZhcP.js → gitGraphDiagram-STJD7YCW-Be4qXALb.js} +1 -1
- package/dist/public/assets/{handlebars-DZCnH9e2.js → handlebars-4xabgUi4.js} +1 -1
- package/dist/public/assets/{html-DuzouNES.js → html-Dk3kt2w_.js} +1 -1
- package/dist/public/assets/{index-B7OYKvCE.js → index-Bx0c7eoh.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-5vIGEIq7.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-6pby19tQ.js → infoDiagram-KBXO4MBG-Coc0tdwb.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Duf8c8rQ.js → ishikawaDiagram-M35NCXHK-CE_1VQCg.js} +1 -1
- package/dist/public/assets/{javascript-2d_L6cVd.js → javascript-DKLGqy6v.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-Dvv-xzNo.js → journeyDiagram-OPLOXDXO-CrolRZ_7.js} +1 -1
- package/dist/public/assets/{jsonMode-CFadYXyI.js → jsonMode-Chcs19_y.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-Dsk6F-TT.js → kanban-definition-BZKZHSQY-CjJj47De.js} +1 -1
- package/dist/public/assets/{liquid-Din4CF34.js → liquid-jff3p-Ji.js} +1 -1
- package/dist/public/assets/{mdx-DivDuCWI.js → mdx-DW4uRDfJ.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BfCv4CYZ.js → mermaid-parser.core-XhQj6FvH.js} +3 -3
- package/dist/public/assets/{mermaid.core-DC20ZwJj.js → mermaid.core-OD4Atimg.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DRZRrJU_.js → mindmap-definition-I2QAS2VK-DpGelVY7.js} +1 -1
- package/dist/public/assets/module-CrD0OHQp.js +1 -0
- package/dist/public/assets/module-DEBMgdtf.js +2273 -0
- package/dist/public/assets/{monaco-D1d6MOPe.js → monaco-BTVZP-tU.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-CBxQ5Mzy.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-DcGr3Tbk.js → pegDiagram-FD4XPPHP-CqcBmPfB.js} +1 -1
- package/dist/public/assets/phaser.esm-BxCDEWDb.js +3202 -0
- package/dist/public/assets/pie-XZMESJXO-DT5V3581.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-GF7pu6ch.js → pieDiagram-J4AKIIQI-CRir3beB.js} +1 -1
- package/dist/public/assets/{python-BQbTTTT5.js → python-BwW_0207.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-D-bcu7Ey.js → quadrantDiagram-XTYBLID2-DIY6gdcf.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-BAOovYEa.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-RZ2Rnwzh.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-BiBHsI-K.js → railroad-abnf-LNEFI6M7-XWNOzunl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-zKjrfkHs.js → railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DKuVn0GT.js → railroad-peg-JR7BVNR7-BVB_IaIG.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Cyn-16mJ.js → railroadDiagram-MRQ6NCDL-CudwT6q2.js} +1 -1
- package/dist/public/assets/{razor-DiLk54O0.js → razor-DrjCyQqB.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CwU2EBkW.js → requirementDiagram-Y7LWUY3S-CvRMeRqj.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-ajf00HyW.js → sankeyDiagram-WGJFYUXA-adxYCJKr.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-DiX_OIAw.js → sequenceDiagram-5NDRBG5M-lCRsoLUp.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js → stateDiagram-v2-FJ4FJNEA-DNst1BLg.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BGQKSlj7.js → swimlanes-UMQ2AFYF-S_omrdvA.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-By5lnz4u.js +8 -0
- package/dist/public/assets/three.module-CeVBJVoU.js +4225 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DhQoApff.js → timeline-definition-SEUHKTQE-_pMGrTE-.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-Cyb9N8KY.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-BkMo57pG.js +1 -0
- package/dist/public/assets/{typescript-COQ1g-up.js → typescript-0-z_OYCU.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-CmLFzjie.js → usecaseDiagram-AFA6YXN4-B2oJKi5Q.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-DOa6JR5K.js → vennDiagram-NNMJR3RB-inPs2Kkr.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-CSt-uQ-Y.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BV7EEShp.js → wardleyDiagram-S7YFUSEH-DNhNHM7b.js} +1 -1
- package/dist/public/assets/{xml-BbvtjuaG.js → xml-BXPxQzKF.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DtMpPbsq.js → xychartDiagram-GGNKY7IX-DJc93dNT.js} +1 -1
- package/dist/public/assets/{yaml-Bw8NFga9.js → yaml-CGmD9Rya.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +6664 -2480
- package/package.json +32 -25
- package/dist/public/assets/cynefin-EF2NZ3EQ-MaI-3dMQ.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-shBnAQFk.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BtQWboBz.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-CDSLjba_.js +0 -1
- package/dist/public/assets/module-BAQaY56j.js +0 -1
- package/dist/public/assets/module-DxRGg3ED.js +0 -1947
- package/dist/public/assets/packet-JDAUHWVQ-dYb4P9eU.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-CIompBnc.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DiJl7BtK.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-B5cRBukM.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DxXlavVT.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BOP6mkZC.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-BJxuPMz3.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-jqlowjVL.js +0 -1
|
@@ -3,10 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AcpAgent = void 0;
|
|
4
4
|
const node_child_process_1 = require("node:child_process");
|
|
5
5
|
const acp_protocol_1 = require("./acp-protocol");
|
|
6
|
+
const agent_catalog_1 = require("./agent-catalog");
|
|
6
7
|
const agent_session_1 = require("./agent-session");
|
|
7
8
|
const json_rpc_1 = require("./json-rpc");
|
|
8
9
|
const texts_1 = require("./texts");
|
|
9
10
|
const STDERR_CHARS = 2000;
|
|
11
|
+
/**
|
|
12
|
+
* How an agent runs on macOS and Linux: under a shell that `exec`s it, after starting a watcher that ends
|
|
13
|
+
* it (SIGTERM) when this process is gone, however that went (a signal, a crash, SIGKILL), when `exit`
|
|
14
|
+
* is not emitted. Some agents do not stop when their standard input closes, and would stay with
|
|
15
|
+
* their memory, adopted by the system. The watcher waits for the end of fd 3, a pipe whose
|
|
16
|
+
* other end only this process holds; `$$` is the shell's pid, the agent's once it `exec`ed.
|
|
17
|
+
*/
|
|
18
|
+
const LIFELINE = '(read _ <&3; kill $$) </dev/null >/dev/null 2>&1 & exec "$@" 3<&-';
|
|
19
|
+
/** The exit code of `exec` when the shell does not find the command. */
|
|
20
|
+
const NOT_FOUND = 127;
|
|
10
21
|
/** Variables of the process of Ta (or pi) that are not the agent's business. */
|
|
11
22
|
function agentEnv(extra) {
|
|
12
23
|
const env = {};
|
|
@@ -108,7 +119,7 @@ class AcpAgent {
|
|
|
108
119
|
reference(on) {
|
|
109
120
|
var _a, _b;
|
|
110
121
|
const child = this.child;
|
|
111
|
-
for (const handle of [child, child === null || child === void 0 ? void 0 : child.stdin, child === null || child === void 0 ? void 0 : child.stdout, child === null || child === void 0 ? void 0 : child.stderr]) {
|
|
122
|
+
for (const handle of [child, child === null || child === void 0 ? void 0 : child.stdin, child === null || child === void 0 ? void 0 : child.stdout, child === null || child === void 0 ? void 0 : child.stderr, child === null || child === void 0 ? void 0 : child.stdio[3]]) {
|
|
112
123
|
if (on) {
|
|
113
124
|
(_a = handle === null || handle === void 0 ? void 0 : handle.ref) === null || _a === void 0 ? void 0 : _a.call(handle);
|
|
114
125
|
}
|
|
@@ -140,13 +151,17 @@ class AcpAgent {
|
|
|
140
151
|
var _a, _b;
|
|
141
152
|
this.stop();
|
|
142
153
|
this.stderr = '';
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
154
|
+
const posix = process.platform !== 'win32';
|
|
155
|
+
const { command, args, cwd } = this.program;
|
|
156
|
+
const env = agentEnv(this.program.env);
|
|
157
|
+
const notFound = () => new Error((0, texts_1.text)('notFound', this.name, command));
|
|
158
|
+
// The shell would say so only after the agent's output closed, which says less.
|
|
159
|
+
if (posix && !command.includes('/') && !agent_catalog_1.Programs.find(command, env.PATH)) {
|
|
160
|
+
throw notFound();
|
|
161
|
+
}
|
|
162
|
+
const child = posix
|
|
163
|
+
? (0, node_child_process_1.spawn)('/bin/sh', ['-c', LIFELINE, 'sh', command, ...args], { cwd, env, stdio: ['pipe', 'pipe', 'pipe', 'pipe'] })
|
|
164
|
+
: (0, node_child_process_1.spawn)(command, args, { cwd, env, stdio: ['pipe', 'pipe', 'pipe'], shell: true, windowsHide: true });
|
|
150
165
|
this.child = child;
|
|
151
166
|
const { stdin, stdout } = child;
|
|
152
167
|
if (!stdin || !stdout) {
|
|
@@ -156,8 +171,13 @@ class AcpAgent {
|
|
|
156
171
|
this.connection = connection;
|
|
157
172
|
(_a = child.stderr) === null || _a === void 0 ? void 0 : _a.setEncoding('utf8');
|
|
158
173
|
(_b = child.stderr) === null || _b === void 0 ? void 0 : _b.on('data', (chunk) => (this.stderr = (this.stderr + chunk).slice(-STDERR_CHARS)));
|
|
159
|
-
child.on('error', (error) => connection.close(error.code === 'ENOENT' ?
|
|
160
|
-
child.on('exit', code =>
|
|
174
|
+
child.on('error', (error) => connection.close(error.code === 'ENOENT' ? notFound() : error));
|
|
175
|
+
child.on('exit', code => {
|
|
176
|
+
var _a;
|
|
177
|
+
// The watcher ends with its pipe.
|
|
178
|
+
(_a = child.stdio[3]) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
179
|
+
connection.close(posix && code === NOT_FOUND ? notFound() : new Error((0, texts_1.text)('exited', this.name, String(code !== null && code !== void 0 ? code : 'signal'), this.lastError())));
|
|
180
|
+
});
|
|
161
181
|
connection.onNotification = (method, params) => this.notified(method, params);
|
|
162
182
|
connection.onRequest = (method, params) => this.requested(method, params);
|
|
163
183
|
connection.onClose = error => {
|
|
@@ -143,6 +143,11 @@ export declare namespace Acp {
|
|
|
143
143
|
outcome: 'cancelled';
|
|
144
144
|
};
|
|
145
145
|
type StopReason = 'end_turn' | 'max_tokens' | 'max_turn_requests' | 'refusal' | 'cancelled';
|
|
146
|
+
/** The answer to `session/prompt`; an agent may say why it failed in `_meta` (`<agent>/errorMessage`). */
|
|
147
|
+
interface PromptResponse {
|
|
148
|
+
stopReason: StopReason;
|
|
149
|
+
_meta?: Record<string, unknown>;
|
|
150
|
+
}
|
|
146
151
|
/** The text of a block; other blocks are named, not shown. */
|
|
147
152
|
function text(block: ContentBlock | undefined): string;
|
|
148
153
|
/** The values of a select option, its groups flattened. */
|
|
@@ -35,8 +35,8 @@ export declare namespace AgentCatalog {
|
|
|
35
35
|
function agents(settings: Record<string, AgentSetting> | undefined, find?: (program: string) => string | undefined): AgentConfig[];
|
|
36
36
|
}
|
|
37
37
|
export declare namespace Programs {
|
|
38
|
-
/** The name of `program` if it is on
|
|
39
|
-
function find(program: string): string | undefined;
|
|
38
|
+
/** The name of `program` if it is on `path`; only `stat`s, nothing runs. */
|
|
39
|
+
function find(program: string, path?: string | undefined): string | undefined;
|
|
40
40
|
}
|
|
41
41
|
/** The models each agent listed last, so that pi offers them before the agent runs again. */
|
|
42
42
|
export declare class ModelCache {
|
|
@@ -77,11 +77,11 @@ var AgentCatalog;
|
|
|
77
77
|
})(AgentCatalog || (exports.AgentCatalog = AgentCatalog = {}));
|
|
78
78
|
var Programs;
|
|
79
79
|
(function (Programs) {
|
|
80
|
-
/** The name of `program` if it is on
|
|
81
|
-
function find(program) {
|
|
82
|
-
var _a
|
|
80
|
+
/** The name of `program` if it is on `path`; only `stat`s, nothing runs. */
|
|
81
|
+
function find(program, path = process.env.PATH) {
|
|
82
|
+
var _a;
|
|
83
83
|
const extensions = process.platform === 'win32' ? ((_a = process.env.PATHEXT) !== null && _a !== void 0 ? _a : '.EXE;.CMD;.BAT').split(';') : [''];
|
|
84
|
-
for (const dir of (
|
|
84
|
+
for (const dir of (path !== null && path !== void 0 ? path : '').split(node_path_1.delimiter)) {
|
|
85
85
|
for (const extension of extensions) {
|
|
86
86
|
if (dir && isFile((0, node_path_1.join)(dir, program + extension))) {
|
|
87
87
|
return program;
|
|
@@ -6,6 +6,8 @@ export declare const ACTIVITY_TEXT = "[The agent continued on its own]";
|
|
|
6
6
|
export declare namespace AgentPrompt {
|
|
7
7
|
/** The user messages at the end of the transcript, after the last answer or tool result. */
|
|
8
8
|
function pending(messages: readonly Message[]): Message[];
|
|
9
|
+
/** What pi's retry of a turn that failed with `error` says to the agent, which keeps its own history. */
|
|
10
|
+
function resume(error: string): string;
|
|
9
11
|
/** The messages as a prompt; images when the agent takes them. */
|
|
10
12
|
function blocks(messages: readonly Message[], images: boolean): Acp.ContentBlock[];
|
|
11
13
|
/**
|
|
@@ -13,6 +15,13 @@ export declare namespace AgentPrompt {
|
|
|
13
15
|
* and the user may have talked with another model first. Text only, the latest part.
|
|
14
16
|
*/
|
|
15
17
|
function transcript(messages: readonly Message[], pendingCount: number): string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The notes Ta's packages add to pi's system prompt (its system messages), each in a tag of its own
|
|
20
|
+
* (`<ta-glance>…</ta-glance>`): an agent keeps its own system prompt and gets none of pi's, but these say how Ta
|
|
21
|
+
* shows a reply, what was asked before. A tag only counts at the start of a line and its end at the end of one: the
|
|
22
|
+
* instructions of a project (AGENTS.md) may name `<ta-glance>` in a sentence, which is not a note.
|
|
23
|
+
*/
|
|
24
|
+
function notes(messages: readonly Message[]): string[];
|
|
16
25
|
function text(message: Message): string;
|
|
17
26
|
}
|
|
18
27
|
//# sourceMappingURL=agent-prompt.d.ts.map
|
|
@@ -25,6 +25,11 @@ var AgentPrompt;
|
|
|
25
25
|
return result;
|
|
26
26
|
}
|
|
27
27
|
AgentPrompt.pending = pending;
|
|
28
|
+
/** What pi's retry of a turn that failed with `error` says to the agent, which keeps its own history. */
|
|
29
|
+
function resume(error) {
|
|
30
|
+
return `Your last turn stopped with an error before it finished: ${error}\nContinue where you left off.`;
|
|
31
|
+
}
|
|
32
|
+
AgentPrompt.resume = resume;
|
|
28
33
|
/** The messages as a prompt; images when the agent takes them. */
|
|
29
34
|
function blocks(messages, images) {
|
|
30
35
|
const result = [];
|
|
@@ -72,6 +77,26 @@ var AgentPrompt;
|
|
|
72
77
|
return `<earlier_conversation>\nThe user talked with another assistant before you joined; this is what was said:\n\n${kept}\n</earlier_conversation>`;
|
|
73
78
|
}
|
|
74
79
|
AgentPrompt.transcript = transcript;
|
|
80
|
+
/**
|
|
81
|
+
* The notes Ta's packages add to pi's system prompt (its system messages), each in a tag of its own
|
|
82
|
+
* (`<ta-glance>…</ta-glance>`): an agent keeps its own system prompt and gets none of pi's, but these say how Ta
|
|
83
|
+
* shows a reply, what was asked before. A tag only counts at the start of a line and its end at the end of one: the
|
|
84
|
+
* instructions of a project (AGENTS.md) may name `<ta-glance>` in a sentence, which is not a note.
|
|
85
|
+
*/
|
|
86
|
+
function notes(messages) {
|
|
87
|
+
const system = messages
|
|
88
|
+
.filter(message => message.role === 'system')
|
|
89
|
+
.map(message => [text(message), ...sections(message)].join('\n'))
|
|
90
|
+
.join('\n');
|
|
91
|
+
return [...system.matchAll(/^<(ta-[\w-]+)>[\s\S]*?<\/\1>$/gm)].map(match => match[0]);
|
|
92
|
+
}
|
|
93
|
+
AgentPrompt.notes = notes;
|
|
94
|
+
/** The sections of a system message of pi, each `<name>…</name>`; a later one holds those that changed, `null` for one gone. */
|
|
95
|
+
function sections(message) {
|
|
96
|
+
var _a;
|
|
97
|
+
const parts = (_a = message.sections) !== null && _a !== void 0 ? _a : {};
|
|
98
|
+
return Object.values(parts).filter((part) => typeof part === 'string');
|
|
99
|
+
}
|
|
75
100
|
function text(message) {
|
|
76
101
|
if (message.role === 'user' || message.role === 'system') {
|
|
77
102
|
return typeof message.content === 'string' ? message.content : message.content.map(part => (part.type === 'text' ? part.text : '')).join('');
|
|
@@ -9,11 +9,18 @@ export interface AgentSessionCallbacks {
|
|
|
9
9
|
permission(request: Acp.PermissionRequest): Promise<Acp.PermissionOutcome>;
|
|
10
10
|
/** The agent named the session. */
|
|
11
11
|
title?(title: string): void;
|
|
12
|
+
/** The agent retries a request of its model that failed (`retrying`), or is past it (`undefined`). */
|
|
13
|
+
retry?(retry: AgentRetry | undefined): void;
|
|
12
14
|
/** The agent started a turn on its own, for example to report a background task that finished. */
|
|
13
15
|
activity(session: AgentSession): void;
|
|
14
16
|
/** A call of the agent is about to change a file, or changed it (see WriteListener). */
|
|
15
17
|
write?: WriteListener;
|
|
16
18
|
}
|
|
19
|
+
/** What an agent says of a request of its model it retries: why (`network`), and which attempt, when it says. */
|
|
20
|
+
export interface AgentRetry {
|
|
21
|
+
reason?: string;
|
|
22
|
+
attempt?: number;
|
|
23
|
+
}
|
|
17
24
|
/**
|
|
18
25
|
* A session of an ACP agent: its settings, and its turn. A prompt starts a turn; what the user says
|
|
19
26
|
* while it runs is sent once it ended, since ACP has no way to steer a running turn.
|
|
@@ -21,12 +28,24 @@ export interface AgentSessionCallbacks {
|
|
|
21
28
|
export declare class AgentSession {
|
|
22
29
|
protected readonly host: AgentSessionHost;
|
|
23
30
|
readonly id: string;
|
|
31
|
+
/**
|
|
32
|
+
* How long a turn waits for the answer to its prompt once the agent went idle without finishing a response
|
|
33
|
+
* (`model_done`) or with calls still open: a request that failed, which the agent reports in its answer, or
|
|
34
|
+
* goes on with after all (a call of a tool it does not have).
|
|
35
|
+
*/
|
|
36
|
+
static unfinishedIdleMs: number;
|
|
37
|
+
/** How long a turn the agent started on its own lasts after its last update, when the agent does not say it ended. */
|
|
38
|
+
static quietMs: number;
|
|
24
39
|
/** The turn being streamed: until the provider took its end, even after the agent answered. */
|
|
25
40
|
turn?: AgentTurn;
|
|
26
41
|
options: Acp.ConfigOption[];
|
|
27
42
|
models?: Acp.SessionModels;
|
|
28
43
|
title?: string;
|
|
29
44
|
callbacks: AgentSessionCallbacks;
|
|
45
|
+
/** The notes of Ta's packages the agent was given (AgentPrompt.notes), each once, until it compacts its context. */
|
|
46
|
+
readonly told: Set<string>;
|
|
47
|
+
/** How much of its context the agent last said it used, to see it compact. */
|
|
48
|
+
protected context?: number;
|
|
30
49
|
protected readonly queued: Acp.ContentBlock[][];
|
|
31
50
|
protected quietTimer?: ReturnType<typeof setTimeout>;
|
|
32
51
|
protected abandoned?: AgentTurn;
|
|
@@ -34,6 +53,18 @@ export declare class AgentSession {
|
|
|
34
53
|
protected answer?: Promise<unknown>;
|
|
35
54
|
/** The agent said it works on the turn (a phase other than idle), so its next idle ends it. */
|
|
36
55
|
protected working: boolean;
|
|
56
|
+
/** The phase the agent said last in this turn: idle right after `model_done` is the end of the turn. */
|
|
57
|
+
protected phaseOf?: string;
|
|
58
|
+
protected idleTimer?: ReturnType<typeof setTimeout>;
|
|
59
|
+
/** The agent retries a request: what it said of it. */
|
|
60
|
+
protected retrying?: AgentRetry;
|
|
61
|
+
/**
|
|
62
|
+
* The last turn failed (the error the agent gave): what pi sends next with nothing new from the user is a
|
|
63
|
+
* retry of it (pi's auto-retry), and goes to the agent as a word to go on.
|
|
64
|
+
*/
|
|
65
|
+
failure?: string;
|
|
66
|
+
/** When the last message of the user sent to the agent was written: sent once, not again with a retry. */
|
|
67
|
+
delivered: number;
|
|
37
68
|
/** The ids of the requests the agent named in its updates (`_meta` `…requestId`), and those before the current prompt. */
|
|
38
69
|
protected readonly requests: Set<string>;
|
|
39
70
|
protected earlier: Set<string>;
|
|
@@ -58,12 +89,51 @@ export declare class AgentSession {
|
|
|
58
89
|
cancel(): void;
|
|
59
90
|
/** Sets a select option to `value` unless it already is, or the agent does not offer it. */
|
|
60
91
|
select(category: string, value: string | undefined, signal?: AbortSignal): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* What the agent's phase says of `turn`, or of the next turn it starts on its own. Some agents (CodeBuddy Code)
|
|
94
|
+
* answer the prompt seconds after they are done, once they named the session, and say nothing of when a turn of
|
|
95
|
+
* their own ends: going idle after a response it finished ends the turn. Idle in the middle of a request, or with
|
|
96
|
+
* calls still open, is a request that failed: the turn waits for the answer, which says why, or for the agent to
|
|
97
|
+
* go on (it recovers on its own, from a call of a tool it does not have, say), a while at most. Each new request
|
|
98
|
+
* of its model ends the calls before, which it may have dropped without a word.
|
|
99
|
+
*/
|
|
100
|
+
protected phase(turn: AgentTurn | undefined, phase: string, meta: Record<string, unknown> | undefined): void;
|
|
101
|
+
protected stopWaiting(): void;
|
|
102
|
+
/** The agent answered the prompt of `turn`: what waited for the answer of the turn of now stops. */
|
|
103
|
+
protected answered(turn: AgentTurn): void;
|
|
104
|
+
protected retried(retry: AgentRetry | undefined): void;
|
|
61
105
|
protected startUnsolicited(quiet: boolean): void;
|
|
62
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* Ends a turn the agent started without saying when it ends, once it is quiet: not while it says it works or a
|
|
108
|
+
* call of it runs, which would cut the turn in pieces and fail the calls.
|
|
109
|
+
*/
|
|
63
110
|
protected quiet(turn: AgentTurn): void;
|
|
64
111
|
/** The ids of requests in `_meta`, under keys of the agent's own (`<agent>/requestId`, `<agent>/messageRequestId`). */
|
|
112
|
+
/**
|
|
113
|
+
* An agent compacts its context by itself, and what it was told goes with what it summed up: once its context
|
|
114
|
+
* shrank to less than half, the notes go again with the next prompt. A subagent's request (`…parentToolCallId`) is not its context.
|
|
115
|
+
*/
|
|
116
|
+
protected measure(update: {
|
|
117
|
+
used?: number;
|
|
118
|
+
_meta?: Record<string, unknown>;
|
|
119
|
+
}): void;
|
|
120
|
+
/** How much context a usage update says the agent used: `used`, else the tokens of its request in `_meta`. */
|
|
121
|
+
static contextUsed(update: {
|
|
122
|
+
used?: number;
|
|
123
|
+
_meta?: Record<string, unknown>;
|
|
124
|
+
}): number | undefined;
|
|
125
|
+
/** Whether an update is of the session's own agent, not of a subagent (`…parentToolCallId`) or a teammate (`…memberEvent`). */
|
|
126
|
+
static own(meta: Record<string, unknown> | undefined): boolean;
|
|
65
127
|
static requestIds(meta: Record<string, unknown> | undefined): string[];
|
|
66
128
|
/** What the agent says it is doing, if it says (CodeBuddy Code: `_meta['codebuddy.ai/agentPhase'].phase`). */
|
|
129
|
+
/** What an agent's `retrying` phase says of the retry (`…agentPhase` `retry`: `{ reason, attempt }`). */
|
|
130
|
+
static retryOf(meta: Record<string, unknown> | undefined): AgentRetry;
|
|
131
|
+
/**
|
|
132
|
+
* The error an agent gives with its answer to a prompt, under a key of its own (`<agent>/errorMessage`):
|
|
133
|
+
* a text, or the JSON of an error, read for its message.
|
|
134
|
+
*/
|
|
135
|
+
static errorOf(meta: Record<string, unknown> | undefined): string | undefined;
|
|
136
|
+
static messageOf(text: string): string;
|
|
67
137
|
static phase(meta: Record<string, unknown> | undefined): string | undefined;
|
|
68
138
|
/** Allows once: pi does not ask before tool calls, and neither does Ta for the agents it runs. */
|
|
69
139
|
static allow(request: Acp.PermissionRequest): Acp.PermissionOutcome;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgentSession = void 0;
|
|
4
4
|
const acp_protocol_1 = require("./acp-protocol");
|
|
5
5
|
const agent_turn_1 = require("./agent-turn");
|
|
6
|
-
/**
|
|
7
|
-
const
|
|
6
|
+
/** The phases in which the agent asks its model again, once the calls before are over. */
|
|
7
|
+
const STEP_PHASES = new Set(['preparing', 'model_requesting']);
|
|
8
8
|
/** How long a prompt waits for the agent to end a turn that was cancelled. */
|
|
9
9
|
const ABANDON_WAIT_MS = 5000;
|
|
10
10
|
/** How long a prompt waits for the agent to answer the one before, which it may still finish after saying it is idle. */
|
|
@@ -19,9 +19,13 @@ class AgentSession {
|
|
|
19
19
|
this.id = id;
|
|
20
20
|
this.options = [];
|
|
21
21
|
this.callbacks = { permission: async (request) => AgentSession.allow(request), activity: () => undefined };
|
|
22
|
+
/** The notes of Ta's packages the agent was given (AgentPrompt.notes), each once, until it compacts its context. */
|
|
23
|
+
this.told = new Set();
|
|
22
24
|
this.queued = [];
|
|
23
25
|
/** The agent said it works on the turn (a phase other than idle), so its next idle ends it. */
|
|
24
26
|
this.working = false;
|
|
27
|
+
/** When the last message of the user sent to the agent was written: sent once, not again with a retry. */
|
|
28
|
+
this.delivered = 0;
|
|
25
29
|
/** The ids of the requests the agent named in its updates (`_meta` `…requestId`), and those before the current prompt. */
|
|
26
30
|
this.requests = new Set();
|
|
27
31
|
this.earlier = new Set();
|
|
@@ -54,24 +58,18 @@ class AgentSession {
|
|
|
54
58
|
(_b = (_a = this.callbacks).title) === null || _b === void 0 ? void 0 : _b.call(_a, this.title);
|
|
55
59
|
}
|
|
56
60
|
const phase = AgentSession.phase(meta);
|
|
57
|
-
// A phase of a request before this prompt (the end of a compaction, say) is not this turn's.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// Some agents (CodeBuddy Code) answer the prompt seconds after they are done, once they named
|
|
61
|
-
// the session: their phase says when the turn ended.
|
|
62
|
-
if (phase !== 'idle') {
|
|
63
|
-
this.working = true;
|
|
64
|
-
}
|
|
65
|
-
else if (this.working) {
|
|
66
|
-
this.working = false;
|
|
67
|
-
this.turn.end('end_turn');
|
|
68
|
-
}
|
|
61
|
+
// 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.
|
|
62
|
+
if (phase && !ids.some(id => this.earlier.has(id)) && AgentSession.own(meta)) {
|
|
63
|
+
this.phase(this.turn, phase, meta);
|
|
69
64
|
}
|
|
70
65
|
if (meta && Object.keys(meta).some(key => /unsolicitedTurn$/.test(key)) && !this.turn) {
|
|
71
66
|
this.startUnsolicited(false);
|
|
72
67
|
}
|
|
73
68
|
return;
|
|
74
69
|
}
|
|
70
|
+
case 'usage_update':
|
|
71
|
+
this.measure(update);
|
|
72
|
+
break;
|
|
75
73
|
case 'session_end':
|
|
76
74
|
if ((_c = this.turn) === null || _c === void 0 ? void 0 : _c.unsolicited) {
|
|
77
75
|
this.turn.end('end_turn');
|
|
@@ -105,8 +103,24 @@ class AgentSession {
|
|
|
105
103
|
const turn = new agent_turn_1.AgentTurn(false, (_c = /^\/[\w:.-]+/.exec(first)) === null || _c === void 0 ? void 0 : _c[0], (path, before) => { var _a, _b; return (_b = (_a = this.callbacks).write) === null || _b === void 0 ? void 0 : _b.call(_a, path, before); });
|
|
106
104
|
this.turn = turn;
|
|
107
105
|
this.working = false;
|
|
106
|
+
this.phaseOf = undefined;
|
|
107
|
+
this.failure = undefined;
|
|
108
|
+
this.stopWaiting();
|
|
108
109
|
this.earlier = new Set(this.requests);
|
|
109
|
-
const answer = this.host.request('session/prompt', { sessionId: this.id, prompt }).then(response => {
|
|
110
|
+
const answer = this.host.request('session/prompt', { sessionId: this.id, prompt }).then(response => {
|
|
111
|
+
var _a;
|
|
112
|
+
this.answered(turn);
|
|
113
|
+
const error = (response === null || response === void 0 ? void 0 : response.stopReason) === 'cancelled' ? undefined : AgentSession.errorOf(response === null || response === void 0 ? void 0 : response._meta);
|
|
114
|
+
if (error) {
|
|
115
|
+
turn.fail(error);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
turn.end((_a = response === null || response === void 0 ? void 0 : response.stopReason) !== null && _a !== void 0 ? _a : 'end_turn');
|
|
119
|
+
}
|
|
120
|
+
}, (error) => {
|
|
121
|
+
this.answered(turn);
|
|
122
|
+
turn.fail(error.message, error.code);
|
|
123
|
+
});
|
|
110
124
|
this.answer = answer;
|
|
111
125
|
return turn;
|
|
112
126
|
}
|
|
@@ -148,6 +162,7 @@ class AgentSession {
|
|
|
148
162
|
this.turn = undefined;
|
|
149
163
|
clearTimeout(this.quietTimer);
|
|
150
164
|
this.quietTimer = undefined;
|
|
165
|
+
this.stopWaiting();
|
|
151
166
|
}
|
|
152
167
|
}
|
|
153
168
|
cancel() {
|
|
@@ -178,6 +193,60 @@ class AgentSession {
|
|
|
178
193
|
}
|
|
179
194
|
}
|
|
180
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* What the agent's phase says of `turn`, or of the next turn it starts on its own. Some agents (CodeBuddy Code)
|
|
198
|
+
* answer the prompt seconds after they are done, once they named the session, and say nothing of when a turn of
|
|
199
|
+
* their own ends: going idle after a response it finished ends the turn. Idle in the middle of a request, or with
|
|
200
|
+
* calls still open, is a request that failed: the turn waits for the answer, which says why, or for the agent to
|
|
201
|
+
* go on (it recovers on its own, from a call of a tool it does not have, say), a while at most. Each new request
|
|
202
|
+
* of its model ends the calls before, which it may have dropped without a word.
|
|
203
|
+
*/
|
|
204
|
+
phase(turn, phase, meta) {
|
|
205
|
+
var _a, _b;
|
|
206
|
+
if (phase !== 'idle') {
|
|
207
|
+
this.working = true;
|
|
208
|
+
this.stopWaiting();
|
|
209
|
+
this.retried(phase === 'retrying' ? AgentSession.retryOf(meta) : undefined);
|
|
210
|
+
if (STEP_PHASES.has(phase)) {
|
|
211
|
+
turn === null || turn === void 0 ? void 0 : turn.step();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
else if (this.working) {
|
|
215
|
+
this.working = false;
|
|
216
|
+
this.retried(undefined);
|
|
217
|
+
this.stopWaiting();
|
|
218
|
+
if (this.phaseOf === 'model_done' && !(turn === null || turn === void 0 ? void 0 : turn.open())) {
|
|
219
|
+
turn === null || turn === void 0 ? void 0 : turn.end('end_turn');
|
|
220
|
+
}
|
|
221
|
+
else if (turn) {
|
|
222
|
+
this.idleTimer = setTimeout(() => {
|
|
223
|
+
this.idleTimer = undefined;
|
|
224
|
+
turn.end('end_turn');
|
|
225
|
+
}, AgentSession.unfinishedIdleMs);
|
|
226
|
+
(_b = (_a = this.idleTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
this.phaseOf = phase;
|
|
230
|
+
}
|
|
231
|
+
stopWaiting() {
|
|
232
|
+
clearTimeout(this.idleTimer);
|
|
233
|
+
this.idleTimer = undefined;
|
|
234
|
+
}
|
|
235
|
+
/** The agent answered the prompt of `turn`: what waited for the answer of the turn of now stops. */
|
|
236
|
+
answered(turn) {
|
|
237
|
+
if (this.turn === turn) {
|
|
238
|
+
this.stopWaiting();
|
|
239
|
+
this.retried(undefined);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
retried(retry) {
|
|
243
|
+
var _a, _b, _c, _d;
|
|
244
|
+
if ((retry === null || retry === void 0 ? void 0 : retry.reason) === ((_a = this.retrying) === null || _a === void 0 ? void 0 : _a.reason) && (retry === null || retry === void 0 ? void 0 : retry.attempt) === ((_b = this.retrying) === null || _b === void 0 ? void 0 : _b.attempt) && !retry === !this.retrying) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
this.retrying = retry;
|
|
248
|
+
(_d = (_c = this.callbacks).retry) === null || _d === void 0 ? void 0 : _d.call(_c, retry);
|
|
249
|
+
}
|
|
181
250
|
startUnsolicited(quiet) {
|
|
182
251
|
const turn = new agent_turn_1.AgentTurn(true, undefined, (path, before) => { var _a, _b; return (_b = (_a = this.callbacks).write) === null || _b === void 0 ? void 0 : _b.call(_a, path, before); });
|
|
183
252
|
this.turn = turn;
|
|
@@ -186,20 +255,103 @@ class AgentSession {
|
|
|
186
255
|
}
|
|
187
256
|
this.callbacks.activity(this);
|
|
188
257
|
}
|
|
189
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Ends a turn the agent started without saying when it ends, once it is quiet: not while it says it works or a
|
|
260
|
+
* call of it runs, which would cut the turn in pieces and fail the calls.
|
|
261
|
+
*/
|
|
190
262
|
quiet(turn) {
|
|
191
263
|
var _a, _b;
|
|
192
264
|
clearTimeout(this.quietTimer);
|
|
193
|
-
this.quietTimer = setTimeout(() =>
|
|
265
|
+
this.quietTimer = setTimeout(() => {
|
|
266
|
+
if (turn.ended) {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
if (this.working || this.idleTimer || turn.open()) {
|
|
270
|
+
this.quiet(turn);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
turn.end('end_turn');
|
|
274
|
+
}
|
|
275
|
+
}, AgentSession.quietMs);
|
|
194
276
|
(_b = (_a = this.quietTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
195
277
|
}
|
|
196
278
|
/** The ids of requests in `_meta`, under keys of the agent's own (`<agent>/requestId`, `<agent>/messageRequestId`). */
|
|
279
|
+
/**
|
|
280
|
+
* An agent compacts its context by itself, and what it was told goes with what it summed up: once its context
|
|
281
|
+
* shrank to less than half, the notes go again with the next prompt. A subagent's request (`…parentToolCallId`) is not its context.
|
|
282
|
+
*/
|
|
283
|
+
measure(update) {
|
|
284
|
+
var _a;
|
|
285
|
+
const used = AgentSession.contextUsed(update);
|
|
286
|
+
if (used === undefined || Object.keys((_a = update._meta) !== null && _a !== void 0 ? _a : {}).some(key => /parentToolCallId$/.test(key))) {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
if (this.context !== undefined && used < this.context / 2) {
|
|
290
|
+
this.told.clear();
|
|
291
|
+
}
|
|
292
|
+
this.context = used;
|
|
293
|
+
}
|
|
294
|
+
/** How much context a usage update says the agent used: `used`, else the tokens of its request in `_meta`. */
|
|
295
|
+
static contextUsed(update) {
|
|
296
|
+
var _a;
|
|
297
|
+
if (typeof update.used === 'number' && update.used > 0) {
|
|
298
|
+
return update.used;
|
|
299
|
+
}
|
|
300
|
+
const tokens = (_a = update._meta) === null || _a === void 0 ? void 0 : _a.usage;
|
|
301
|
+
const count = (value) => (typeof value === 'number' && Number.isFinite(value) ? value : 0);
|
|
302
|
+
const total = count(tokens === null || tokens === void 0 ? void 0 : tokens.prompt_tokens) || count(tokens === null || tokens === void 0 ? void 0 : tokens.input_tokens) + count(tokens === null || tokens === void 0 ? void 0 : tokens.cache_read_input_tokens) + count(tokens === null || tokens === void 0 ? void 0 : tokens.cache_creation_input_tokens);
|
|
303
|
+
return total > 0 ? total : undefined;
|
|
304
|
+
}
|
|
305
|
+
/** Whether an update is of the session's own agent, not of a subagent (`…parentToolCallId`) or a teammate (`…memberEvent`). */
|
|
306
|
+
static own(meta) {
|
|
307
|
+
return !Object.keys(meta !== null && meta !== void 0 ? meta : {}).some(key => /(parentToolCallId|memberEvent)$/.test(key));
|
|
308
|
+
}
|
|
197
309
|
static requestIds(meta) {
|
|
198
310
|
return Object.entries(meta !== null && meta !== void 0 ? meta : {})
|
|
199
311
|
.filter(([key, value]) => /requestId$/i.test(key) && typeof value === 'string' && value)
|
|
200
312
|
.map(([, value]) => value);
|
|
201
313
|
}
|
|
202
314
|
/** What the agent says it is doing, if it says (CodeBuddy Code: `_meta['codebuddy.ai/agentPhase'].phase`). */
|
|
315
|
+
/** What an agent's `retrying` phase says of the retry (`…agentPhase` `retry`: `{ reason, attempt }`). */
|
|
316
|
+
static retryOf(meta) {
|
|
317
|
+
for (const [key, value] of Object.entries(meta !== null && meta !== void 0 ? meta : {})) {
|
|
318
|
+
const retry = value === null || value === void 0 ? void 0 : value.retry;
|
|
319
|
+
if (/agentPhase$/.test(key) && retry && typeof retry === 'object') {
|
|
320
|
+
return {
|
|
321
|
+
...(typeof retry.reason === 'string' ? { reason: retry.reason } : {}),
|
|
322
|
+
...(typeof retry.attempt === 'number' ? { attempt: retry.attempt } : {}),
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return {};
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* The error an agent gives with its answer to a prompt, under a key of its own (`<agent>/errorMessage`):
|
|
330
|
+
* a text, or the JSON of an error, read for its message.
|
|
331
|
+
*/
|
|
332
|
+
static errorOf(meta) {
|
|
333
|
+
for (const [key, value] of Object.entries(meta !== null && meta !== void 0 ? meta : {})) {
|
|
334
|
+
if (/errorMessage$/.test(key) && typeof value === 'string' && value.trim()) {
|
|
335
|
+
return AgentSession.messageOf(value.trim());
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return undefined;
|
|
339
|
+
}
|
|
340
|
+
static messageOf(text) {
|
|
341
|
+
var _a;
|
|
342
|
+
var _b;
|
|
343
|
+
if (!text.startsWith('{')) {
|
|
344
|
+
return text;
|
|
345
|
+
}
|
|
346
|
+
try {
|
|
347
|
+
const value = JSON.parse(text);
|
|
348
|
+
const message = (_b = value.message) !== null && _b !== void 0 ? _b : (typeof value.error === 'string' ? value.error : (_a = value.error) === null || _a === void 0 ? void 0 : _a.message);
|
|
349
|
+
return typeof message === 'string' && message.trim() ? message.trim() : text;
|
|
350
|
+
}
|
|
351
|
+
catch (_c) {
|
|
352
|
+
return text;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
203
355
|
static phase(meta) {
|
|
204
356
|
for (const [key, value] of Object.entries(meta !== null && meta !== void 0 ? meta : {})) {
|
|
205
357
|
const phase = value === null || value === void 0 ? void 0 : value.phase;
|
|
@@ -217,4 +369,12 @@ class AgentSession {
|
|
|
217
369
|
}
|
|
218
370
|
}
|
|
219
371
|
exports.AgentSession = AgentSession;
|
|
372
|
+
/**
|
|
373
|
+
* How long a turn waits for the answer to its prompt once the agent went idle without finishing a response
|
|
374
|
+
* (`model_done`) or with calls still open: a request that failed, which the agent reports in its answer, or
|
|
375
|
+
* goes on with after all (a call of a tool it does not have).
|
|
376
|
+
*/
|
|
377
|
+
AgentSession.unfinishedIdleMs = 20000;
|
|
378
|
+
/** How long a turn the agent started on its own lasts after its last update, when the agent does not say it ended. */
|
|
379
|
+
AgentSession.quietMs = 3000;
|
|
220
380
|
//# sourceMappingURL=agent-session.js.map
|
|
@@ -44,7 +44,11 @@ class AgentStreamer {
|
|
|
44
44
|
async run(config, model, context, options, builder) {
|
|
45
45
|
const signal = options === null || options === void 0 ? void 0 : options.signal;
|
|
46
46
|
const { session, fresh, images, dirs } = await this.host.open(config, signal);
|
|
47
|
-
|
|
47
|
+
let pending = agent_prompt_1.AgentPrompt.pending(context.messages);
|
|
48
|
+
if (session.failure !== undefined) {
|
|
49
|
+
// pi retries the turn that failed without its error: what the user said then went already.
|
|
50
|
+
pending = pending.filter(message => !(message.timestamp <= session.delivered));
|
|
51
|
+
}
|
|
48
52
|
let turn = session.turn;
|
|
49
53
|
if (turn) {
|
|
50
54
|
// What the user said while the agent works goes once it ended.
|
|
@@ -54,14 +58,26 @@ class AgentStreamer {
|
|
|
54
58
|
}
|
|
55
59
|
else {
|
|
56
60
|
let prompt = pending.length ? agent_prompt_1.AgentPrompt.blocks(pending, images) : session.takeQueued();
|
|
61
|
+
if (!(prompt === null || prompt === void 0 ? void 0 : prompt.length) && session.failure !== undefined) {
|
|
62
|
+
// pi's retry of a turn that failed: the agent keeps its history, and goes on from where it stopped.
|
|
63
|
+
prompt = [{ type: 'text', text: agent_prompt_1.AgentPrompt.resume(session.failure) }];
|
|
64
|
+
}
|
|
57
65
|
if (!(prompt === null || prompt === void 0 ? void 0 : prompt.length)) {
|
|
58
66
|
builder.done('stop');
|
|
59
67
|
return;
|
|
60
68
|
}
|
|
69
|
+
session.delivered = Math.max(session.delivered, ...pending.map(message => { var _a; return (_a = message.timestamp) !== null && _a !== void 0 ? _a : 0; }));
|
|
61
70
|
const earlier = fresh ? agent_prompt_1.AgentPrompt.transcript(context.messages, pending.length) : undefined;
|
|
62
71
|
if (earlier) {
|
|
63
72
|
prompt = [{ type: 'text', text: earlier }, ...prompt];
|
|
64
73
|
}
|
|
74
|
+
const notes = agent_prompt_1.AgentPrompt.notes(context.messages).filter(note => !session.told.has(note));
|
|
75
|
+
if (notes.length) {
|
|
76
|
+
for (const note of notes) {
|
|
77
|
+
session.told.add(note);
|
|
78
|
+
}
|
|
79
|
+
prompt = [{ type: 'text', text: notes.join('\n\n') }, ...prompt];
|
|
80
|
+
}
|
|
65
81
|
await session.idle();
|
|
66
82
|
await this.configure(session, model, options, signal);
|
|
67
83
|
turn = session.prompt(prompt);
|
|
@@ -92,6 +108,10 @@ class AgentStreamer {
|
|
|
92
108
|
if (item.reason === 'cancelled' && (signal === null || signal === void 0 ? void 0 : signal.aborted)) {
|
|
93
109
|
builder.error('aborted', 'Aborted');
|
|
94
110
|
}
|
|
111
|
+
else if (item.reason === 'refusal') {
|
|
112
|
+
session.failure = (0, texts_1.text)('refused', config.name);
|
|
113
|
+
builder.error('error', session.failure);
|
|
114
|
+
}
|
|
95
115
|
else {
|
|
96
116
|
if (turn.command && !turn.produced) {
|
|
97
117
|
// A command of the agent that only acts in its own interface (a panel, a reset) says nothing.
|
|
@@ -103,7 +123,8 @@ class AgentStreamer {
|
|
|
103
123
|
}
|
|
104
124
|
case 'error':
|
|
105
125
|
session.finished(turn);
|
|
106
|
-
|
|
126
|
+
session.failure = AgentStreamer.describe(config, item);
|
|
127
|
+
builder.error('error', session.failure);
|
|
107
128
|
return;
|
|
108
129
|
}
|
|
109
130
|
}
|
|
@@ -41,8 +41,9 @@ var AgentTool;
|
|
|
41
41
|
target = (_f = str(input.url)) !== null && _f !== void 0 ? _f : str(input.query);
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
44
|
-
// A call that says what it is for (a script of CodeBuddy Code's code mode, a command) is shown by that
|
|
45
|
-
|
|
44
|
+
// A call that says what it is for (a script of CodeBuddy Code's code mode, a command) is shown by that;
|
|
45
|
+
// else by what it is on (the image ViewImage looks at, the skill, the item of a todo list).
|
|
46
|
+
target !== null && target !== void 0 ? target : (target = ['description', 'subject', 'skill', 'image_path', 'file_path', 'path', 'url', 'query'].map(key => str(input[key])).find(Boolean));
|
|
46
47
|
return { title, kind: run.kind, target: relative(target !== null && target !== void 0 ? target : title, cwd), ...(run.name ? { tool: run.name } : {}) };
|
|
47
48
|
}
|
|
48
49
|
AgentTool.args = args;
|
|
@@ -77,7 +78,7 @@ var AgentTool;
|
|
|
77
78
|
calls.delete(toolCallId);
|
|
78
79
|
const details = { agent: call.agent, kind: run === null || run === void 0 ? void 0 : run.kind, title: run === null || run === void 0 ? void 0 : run.title, status: run === null || run === void 0 ? void 0 : run.status, locations: run === null || run === void 0 ? void 0 : run.locations };
|
|
79
80
|
if (!(run === null || run === void 0 ? void 0 : run.done)) {
|
|
80
|
-
return { content: [{ type: 'text', text: (0, texts_1.text)('unfinished', call.agent) }], details, isError: true };
|
|
81
|
+
return { content: [{ type: 'text', text: (0, texts_1.text)((run === null || run === void 0 ? void 0 : run.left) ? 'dropped' : 'unfinished', call.agent) }], details, isError: true };
|
|
81
82
|
}
|
|
82
83
|
return { content: [{ type: 'text', text: run.output || '(no output)' }], details, isError: run.status === 'failed' };
|
|
83
84
|
},
|