@celljs/ta 4.11.0 → 4.13.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 +2 -2
- package/README.md +2 -2
- package/dist/cli.mjs +1006 -164
- package/dist/gateway.mjs +161 -2
- package/dist/pi/CHANGELOG.md +15 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +1 -1
- package/dist/pi/packages/ta-agents/README.md +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +266 -25
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +7 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +8 -3
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +12 -4
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +72 -2
- package/dist/pi/packages/ta-agents/lib/agent-session.js +183 -18
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +16 -2
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +45 -4
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +17 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +51 -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 +51 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +157 -0
- package/dist/pi/packages/ta-bots/package.json +7 -2
- package/dist/pi/packages/ta-changes/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-changes/package.json +8 -2
- package/dist/pi/packages/ta-channels/README.en.md +3 -1
- package/dist/pi/packages/ta-channels/README.md +3 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +55 -2
- package/dist/pi/packages/ta-channels/host/index.mjs +268 -8
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +8 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/room.js +31 -5
- package/dist/pi/packages/ta-channels/lib/sidebar.js +31 -13
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +10 -13
- package/dist/pi/packages/ta-channels/lib/team-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/team-view.js +45 -0
- package/dist/pi/packages/ta-channels/lib/team.d.ts +20 -4
- package/dist/pi/packages/ta-channels/lib/team.js +87 -6
- package/dist/pi/packages/ta-channels/lib/views.d.ts +12 -0
- package/dist/pi/packages/ta-channels/lib/views.js +19 -0
- package/dist/pi/packages/ta-channels/package.json +26 -2
- package/dist/pi/packages/ta-channels/web/index.js +191 -36
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +2 -2
- package/dist/pi/packages/ta-cron/README.md +2 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +91 -257
- package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
- package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +11 -7
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
- package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
- package/dist/pi/packages/ta-cron/lib/index.js +0 -2
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/page.js +24 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +8 -0
- package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
- package/dist/pi/packages/ta-cron/package.json +10 -2
- package/dist/pi/packages/ta-cron/web/index.js +607 -784
- package/dist/pi/packages/ta-extensions/README.en.md +1 -2
- package/dist/pi/packages/ta-extensions/README.md +1 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
- package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
- package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
- package/dist/pi/packages/ta-extensions/package.json +10 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +16 -11
- package/dist/pi/packages/ta-extensions/web/index.js +176 -97
- package/dist/pi/packages/ta-games/package.json +8 -2
- package/dist/pi/packages/ta-glance/README.en.md +1 -0
- package/dist/pi/packages/ta-glance/README.md +1 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +425 -3
- package/dist/pi/packages/ta-glance/lib/card.js +42 -15
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +10 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.js +97 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +3 -3
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +3 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +7 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +45 -9
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +9 -0
- package/dist/pi/packages/ta-glance/lib/index.js +4 -1
- package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/style.js +187 -102
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-glance/web/index.js +272 -124
- package/dist/pi/packages/ta-initiative/README.en.md +66 -0
- package/dist/pi/packages/ta-initiative/README.md +66 -0
- package/dist/pi/packages/ta-initiative/extension/index.mjs +720 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
- package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +238 -0
- package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
- package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
- package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
- package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
- package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
- package/dist/pi/packages/ta-initiative/package.json +63 -0
- package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
- package/dist/pi/packages/ta-launcher/README.en.md +2 -1
- package/dist/pi/packages/ta-launcher/README.md +2 -1
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +58 -1
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +160 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +2 -1
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +5 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +155 -9
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +54 -8
- package/dist/pi/packages/ta-manual/web/index.js +750 -10
- package/dist/pi/packages/ta-moments/README.en.md +29 -0
- package/dist/pi/packages/ta-moments/README.md +29 -0
- package/dist/pi/packages/ta-moments/extension/index.mjs +1766 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2394 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
- package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/context.js +35 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
- package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
- package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
- package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
- package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
- package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/host.js +11 -0
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
- package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
- package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-moments/lib/index.js +50 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
- package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
- package/dist/pi/packages/ta-moments/lib/page.js +307 -0
- package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
- package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
- package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
- package/dist/pi/packages/ta-moments/lib/store.js +108 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/style.js +155 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
- package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
- package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
- package/dist/pi/packages/ta-moments/package.json +61 -0
- package/dist/pi/packages/ta-moments/web/index.js +1987 -0
- package/dist/pi/packages/ta-nearby/README.en.md +33 -0
- package/dist/pi/packages/ta-nearby/README.md +33 -0
- package/dist/pi/packages/ta-nearby/extension/index.mjs +389 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
- package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
- package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
- package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
- package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
- package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
- package/dist/pi/packages/ta-nearby/package.json +65 -0
- package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
- package/dist/pi/packages/ta-notify/README.en.md +3 -1
- package/dist/pi/packages/ta-notify/README.md +3 -1
- package/dist/pi/packages/ta-notify/extension/index.mjs +64 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
- package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
- package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
- package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-notify/lib/style.js +1 -1
- package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
- package/dist/pi/packages/ta-notify/package.json +7 -2
- package/dist/pi/packages/ta-notify/web/index.js +3 -2
- package/dist/pi/packages/ta-recall/README.en.md +15 -6
- package/dist/pi/packages/ta-recall/README.md +15 -6
- package/dist/pi/packages/ta-recall/extension/index.mjs +291 -134
- package/dist/pi/packages/ta-recall/host/index.mjs +451 -116
- package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
- package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
- package/dist/pi/packages/ta-recall/lib/conversations.js +6 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.js +104 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/extension.js +35 -26
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +18 -10
- package/dist/pi/packages/ta-recall/lib/i18n.js +40 -24
- package/dist/pi/packages/ta-recall/lib/index.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/index.js +5 -4
- package/dist/pi/packages/ta-recall/lib/keep-card.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/keep-card.js +83 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +15 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.js +55 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +92 -18
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +19 -9
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +16 -6
- package/dist/pi/packages/ta-recall/lib/recall-service.js +101 -11
- package/dist/pi/packages/ta-recall/lib/requests-util.d.ts +6 -0
- package/dist/pi/packages/ta-recall/lib/requests-util.js +37 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +5 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/settings.js +1 -1
- package/dist/pi/packages/ta-recall/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/style.js +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.js +10 -5
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +14 -5
- package/dist/pi/packages/ta-recall/lib/tool.js +29 -17
- package/dist/pi/packages/ta-recall/package.json +13 -5
- package/dist/pi/packages/ta-recall/web/index.js +397 -153
- package/dist/pi/packages/ta-rooms/README.en.md +14 -5
- package/dist/pi/packages/ta-rooms/README.md +14 -5
- package/dist/pi/packages/ta-rooms/extension/index.mjs +526 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +1734 -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.js +5 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.d.ts +26 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +84 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.d.ts +22 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +140 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +117 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.js +476 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +212 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +258 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +82 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +527 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.d.ts +19 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.js +124 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +131 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.js +238 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +48 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +151 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.d.ts +34 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +228 -0
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +33 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +203 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +47 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +224 -0
- package/dist/pi/packages/ta-rooms/lib/host.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/host.js +25 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +27 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.js +68 -18
- package/dist/pi/packages/ta-rooms/lib/index.js +41 -3
- package/dist/pi/packages/ta-rooms/lib/members-view.js +44 -3
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +97 -10
- package/dist/pi/packages/ta-rooms/lib/page.js +223 -45
- package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +2 -4
- package/dist/pi/packages/ta-rooms/lib/room-view.js +57 -35
- 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 +8 -2
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +68 -36
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +126 -50
- package/dist/pi/packages/ta-rooms/lib/tasks-view.d.ts +41 -0
- package/dist/pi/packages/ta-rooms/lib/tasks-view.js +228 -0
- package/dist/pi/packages/ta-rooms/package.json +19 -4
- package/dist/pi/packages/ta-rooms/web/index.js +2585 -470
- package/dist/pi/packages/ta-share/README.en.md +1 -1
- package/dist/pi/packages/ta-share/README.md +1 -1
- package/dist/pi/packages/ta-share/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
- package/dist/pi/packages/ta-share/lib/shares-page.js +35 -11
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +14 -10
- package/dist/pi/packages/ta-share/package.json +10 -2
- package/dist/pi/packages/ta-share/web/index.js +56 -31
- package/dist/pi/packages/ta-sync/README.en.md +55 -0
- package/dist/pi/packages/ta-sync/README.md +55 -0
- package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
- package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/host.js +94 -0
- package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
- package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
- package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-sync/lib/index.js +115 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
- package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
- package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
- package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
- package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
- package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
- package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-sync/lib/react.js +16 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-sync/lib/style.js +108 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
- package/dist/pi/packages/ta-sync/package.json +57 -0
- package/dist/pi/packages/ta-sync/web/index.js +2018 -0
- package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
- package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
- package/dist/pi/packages/ta-team/README.en.md +28 -0
- package/dist/pi/packages/ta-team/README.md +28 -0
- package/dist/pi/packages/ta-team/extension/index.mjs +264 -0
- package/dist/pi/packages/ta-team/host/index.mjs +2100 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
- package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/extension.js +123 -0
- package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/host.js +45 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
- package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/index.js +67 -0
- package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/join.js +48 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
- package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
- package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
- package/dist/pi/packages/ta-team/lib/page.js +142 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
- package/dist/pi/packages/ta-team/lib/parts.js +47 -0
- package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
- package/dist/pi/packages/ta-team/lib/policy.js +215 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
- package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
- package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/react.js +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
- package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/remote.js +128 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
- package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/seal.js +75 -0
- package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
- package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
- package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/style.js +99 -0
- package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
- package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
- package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
- package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
- package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
- package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
- package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
- package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
- package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
- package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
- package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
- package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
- package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
- package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
- package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
- package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
- package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
- package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
- package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
- package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
- package/dist/pi/packages/ta-team/package.json +68 -0
- package/dist/pi/packages/ta-team/web/index.js +2741 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +157 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-D9uU0Tx2.js → abnfDiagram-S7VZAUFO-DJMZKA5d.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-f7Nm7EIo.js → architecture-WOLXFQ4H-DwZ8A2Bp.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DSAqlcms.js → architectureDiagram-YGSQEFNW-DPezb7-w.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-C0lPIW9g.js → blockDiagram-APKKGZFW-SrFYBlSp.js} +1 -1
- package/dist/public/assets/{browser-WLpgVYno.js → browser-CljOqDFz.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CDcZ7mJq.js → c4Diagram-KJ2TOQU5-COCMkiJ6.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CXPuyqPL.js → chunk-6MUBBAK2-CWRxZCiu.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Du6JRX1x.js → chunk-AXFCVDMN-Dgn3RHlx.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-D592E55X.js → chunk-BG4553SI-BDnAChfb.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BW2r2SL4.js → chunk-DQASFODM-DSgprMfc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C3yoe54R.js → chunk-HFQBQIA3-ChtjyKjP.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DF8gfYCy.js → chunk-KQLB2F66-B2o0ufJC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-C8CRMTv1.js → chunk-KS47KZWR-C4qJvDaX.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-BDcMKiwj.js → chunk-LEVMRMFU-2jTGUstS.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-CKJPBygc.js → chunk-M57EVK23-CKAWW7fj.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-B3ZWH07L.js → chunk-OY52VR5R-B5TUKZAt.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-DI-z4UPL.js → chunk-QB3YPZ4I-CyQFTqwG.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Bg4-haAc.js → chunk-R3KSYZAL-C6git_yh.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-l_SHib3p.js → chunk-STOXU5M4-AwEqcNnS.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BINu9tIm.js → chunk-TU62E6Q5-GKcRDmvw.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BQn-mvV5.js → chunk-X4PVCEUW-CMG5EfZ9.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-uvpAu0Ys.js → chunk-XXDRQBXY-BHd-dKtZ.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BIowooW1.js → classDiagram-v2-L25IHNXF-HaRsBCG9.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BTyx1Mh2.js → cose-bilkent-JH36ORCC-BPBTCfj3.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-D64EU9I0.js → cynefinDiagram-L36ESFBY-dAmWDtva.js} +1 -1
- package/dist/public/assets/{d3-selection-CN9k6_B9.js → d3-selection-BhemR5ul.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-FCbz2-Kk.js → dagre-SPEB5RXH-D93g6hNI.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-OhHUSI7j.js → diagram-3B7GL73J-FJBKgG3X.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-Be4xMtp6.js → diagram-DNEMPZML-BP22T976.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-CmKSs3aG.js → diagram-L3MUGCDN-DcrCJXRt.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-D1C32rMN.js → diagram-LA4NIPWU-DUgd3PHQ.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BjoE6JXs.js → diagram-MHCOC4E2-ejTInqzQ.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-B22k4v8R.js → diagram-XPFHEONP-BLjkgho1.js} +1 -1
- package/dist/public/assets/{dist-DcBP8Cf6.js → dist-C9xqTt0E.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-Tn-K8-X7.js → ebnfDiagram-UZSYDL2S-CB1QQ4_T.js} +1 -1
- package/dist/public/assets/{editor.api-Bz4sjRz_.js → editor.api-lz6I1oVk.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-COnQsWlN.js → elk-XV6XMXQE-CLBx1s2b.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-c53dJilq.js → erDiagram-EYBAPDEH-Dsj6RYi5.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-DaFpPPks.js → eventmodeling-K75KTNOO-smOORsSG.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +1 -0
- package/dist/public/assets/{freemarker2-BLxfRHsw.js → freemarker2-DrLPw7Mc.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Md-SavIS.js → ganttDiagram-23REXITY-BV9WK0rK.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CMSwTghO.js → gitGraphDiagram-STJD7YCW-CsSpSQ0T.js} +1 -1
- package/dist/public/assets/{handlebars-sNpu01kP.js → handlebars-CLx5-csF.js} +1 -1
- package/dist/public/assets/{html-C_tKd-uP.js → html-C9LmGm46.js} +1 -1
- package/dist/public/assets/{index-Bn86rI4n.js → index-CLWW0mVu.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CwgNj-7i.js → infoDiagram-KBXO4MBG-wm5AnXDz.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BSlzQNMN.js → ishikawaDiagram-M35NCXHK-BLUBDeS3.js} +1 -1
- package/dist/public/assets/{javascript-l3qKw0L-.js → javascript-C4S1eQb7.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-B09LPEnF.js → journeyDiagram-OPLOXDXO-DXc7-I_g.js} +1 -1
- package/dist/public/assets/{jsonMode-5SQQn1EX.js → jsonMode-lLJKR2M6.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BiW4aJ29.js → kanban-definition-BZKZHSQY-D5Ra4L_5.js} +1 -1
- package/dist/public/assets/{liquid-BGyTIIUt.js → liquid-DRlm-XZd.js} +1 -1
- package/dist/public/assets/{mdx-8tGjz4em.js → mdx-CzIqeqPy.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CctN5b0z.js → mermaid-parser.core-BIPB1BgS.js} +3 -3
- package/dist/public/assets/{mermaid.core-7ERSdZ4-.js → mermaid.core-DxBlQ6oF.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-D-GOUwW1.js → mindmap-definition-I2QAS2VK-BdupvuYr.js} +1 -1
- package/dist/public/assets/module-BPxWyxwR.js +2362 -0
- package/dist/public/assets/module-C_MSCGQC.js +1 -0
- package/dist/public/assets/{monaco-B_9hlk78.js → monaco-ChpJIYsY.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-Dmy1fWB3.js → pegDiagram-FD4XPPHP-C_GF7Fng.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CXFHLYTg.js → pieDiagram-J4AKIIQI-WlpNP-IM.js} +1 -1
- package/dist/public/assets/{python-e-JK0s5M.js → python-BJgFCfc8.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-RQvEpGWO.js → quadrantDiagram-XTYBLID2-CkCL5rJY.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CDOSPZwX.js → railroad-abnf-LNEFI6M7-DZZKUytl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js → railroad-ebnf-DWYD2UWJ-CS7KsJdb.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-B7NtVofS.js → railroad-peg-JR7BVNR7-CiukTZVd.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-DsDrT0Jf.js → railroadDiagram-MRQ6NCDL-BS0R_H3-.js} +1 -1
- package/dist/public/assets/{razor-DtSPwumi.js → razor-jcBIjr45.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BQh0hFuA.js → requirementDiagram-Y7LWUY3S-C0_T9jgl.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-BUXNAQEF.js → sankeyDiagram-WGJFYUXA-DF15sUfS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-05f-N5V_.js → sequenceDiagram-5NDRBG5M-7AkTLleX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js → stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DWhlPvKs.js → swimlanes-UMQ2AFYF-CR-ieLeo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-CMdocOui.js → timeline-definition-SEUHKTQE-DeM0Uekm.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +1 -0
- package/dist/public/assets/{typescript-65jNyipU.js → typescript-B7zp7QPf.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BQTHUX1f.js → usecaseDiagram-AFA6YXN4-D6rDIgdU.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-BULkVTfA.js → vennDiagram-NNMJR3RB-CncVDcMl.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-Cek6l8lz.js → wardleyDiagram-S7YFUSEH-DKPAMfTE.js} +1 -1
- package/dist/public/assets/{xml-DWBejfu-.js → xml-BJIgLD52.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-ujnZQTWA.js → xychartDiagram-GGNKY7IX-DmmXGebm.js} +1 -1
- package/dist/public/assets/{yaml-CwRCT7q1.js → yaml-Dxb2gmP5.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7767 -3392
- package/package.json +37 -31
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +0 -11
- package/dist/pi/packages/ta-cron/lib/composer.js +0 -58
- package/dist/pi/packages/ta-extensions/lib/composer.d.ts +0 -17
- package/dist/pi/packages/ta-extensions/lib/composer.js +0 -84
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +0 -9
- package/dist/pi/packages/ta-recall/lib/skill-card.js +0 -51
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +0 -19
- package/dist/pi/packages/ta-recall/lib/skill-util.js +0 -110
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dg54eFzZ.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +0 -1
- package/dist/public/assets/module-DEqsdd00.js +0 -1
- package/dist/public/assets/module-TWc52XwT.js +0 -2244
- package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-BjqLn4qm.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DWO6t_4C.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-D1XOJPWy.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CRn5uHsY.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-D09wHNzT.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-ChxAT7Fq.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +0 -1
|
@@ -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,14 +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;
|
|
30
|
-
/** The notes of Ta's packages the agent was given (AgentPrompt.notes), each once. */
|
|
45
|
+
/** The notes of Ta's packages the agent was given (AgentPrompt.notes), each once, until it compacts its context. */
|
|
31
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;
|
|
32
49
|
protected readonly queued: Acp.ContentBlock[][];
|
|
33
50
|
protected quietTimer?: ReturnType<typeof setTimeout>;
|
|
34
51
|
protected abandoned?: AgentTurn;
|
|
@@ -36,6 +53,18 @@ export declare class AgentSession {
|
|
|
36
53
|
protected answer?: Promise<unknown>;
|
|
37
54
|
/** The agent said it works on the turn (a phase other than idle), so its next idle ends it. */
|
|
38
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;
|
|
39
68
|
/** The ids of the requests the agent named in its updates (`_meta` `…requestId`), and those before the current prompt. */
|
|
40
69
|
protected readonly requests: Set<string>;
|
|
41
70
|
protected earlier: Set<string>;
|
|
@@ -60,12 +89,53 @@ export declare class AgentSession {
|
|
|
60
89
|
cancel(): void;
|
|
61
90
|
/** Sets a select option to `value` unless it already is, or the agent does not offer it. */
|
|
62
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;
|
|
63
105
|
protected startUnsolicited(quiet: boolean): void;
|
|
64
|
-
/**
|
|
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
|
+
*/
|
|
65
110
|
protected quiet(turn: AgentTurn): void;
|
|
66
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 the agent's own bookkeeping, not for the user: the summary of a compaction (`<agent>/isCompactInternal`). */
|
|
126
|
+
static internal(meta: Record<string, unknown> | undefined): boolean;
|
|
127
|
+
/** Whether an update is of the session's own agent, not of a subagent (`…parentToolCallId`) or a teammate (`…memberEvent`). */
|
|
128
|
+
static own(meta: Record<string, unknown> | undefined): boolean;
|
|
67
129
|
static requestIds(meta: Record<string, unknown> | undefined): string[];
|
|
68
130
|
/** What the agent says it is doing, if it says (CodeBuddy Code: `_meta['codebuddy.ai/agentPhase'].phase`). */
|
|
131
|
+
/** What an agent's `retrying` phase says of the retry (`…agentPhase` `retry`: `{ reason, attempt }`). */
|
|
132
|
+
static retryOf(meta: Record<string, unknown> | undefined): AgentRetry;
|
|
133
|
+
/**
|
|
134
|
+
* The error an agent gives with its answer to a prompt, under a key of its own (`<agent>/errorMessage`):
|
|
135
|
+
* a text, or the JSON of an error, read for its message.
|
|
136
|
+
*/
|
|
137
|
+
static errorOf(meta: Record<string, unknown> | undefined): string | undefined;
|
|
138
|
+
static messageOf(text: string): string;
|
|
69
139
|
static phase(meta: Record<string, unknown> | undefined): string | undefined;
|
|
70
140
|
/** Allows once: pi does not ask before tool calls, and neither does Ta for the agents it runs. */
|
|
71
141
|
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,11 +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. */
|
|
22
|
+
/** The notes of Ta's packages the agent was given (AgentPrompt.notes), each once, until it compacts its context. */
|
|
23
23
|
this.told = new Set();
|
|
24
24
|
this.queued = [];
|
|
25
25
|
/** The agent said it works on the turn (a phase other than idle), so its next idle ends it. */
|
|
26
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;
|
|
27
29
|
/** The ids of the requests the agent named in its updates (`_meta` `…requestId`), and those before the current prompt. */
|
|
28
30
|
this.requests = new Set();
|
|
29
31
|
this.earlier = new Set();
|
|
@@ -45,6 +47,9 @@ class AgentSession {
|
|
|
45
47
|
for (const id of ids) {
|
|
46
48
|
this.requests.add(id);
|
|
47
49
|
}
|
|
50
|
+
if (AgentSession.internal(meta)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
48
53
|
switch (update.sessionUpdate) {
|
|
49
54
|
case 'config_option_update':
|
|
50
55
|
this.options = (_f = update.configOptions) !== null && _f !== void 0 ? _f : this.options;
|
|
@@ -56,24 +61,18 @@ class AgentSession {
|
|
|
56
61
|
(_b = (_a = this.callbacks).title) === null || _b === void 0 ? void 0 : _b.call(_a, this.title);
|
|
57
62
|
}
|
|
58
63
|
const phase = AgentSession.phase(meta);
|
|
59
|
-
// A phase of a request before this prompt (the end of a compaction, say) is not this turn's.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// Some agents (CodeBuddy Code) answer the prompt seconds after they are done, once they named
|
|
63
|
-
// the session: their phase says when the turn ended.
|
|
64
|
-
if (phase !== 'idle') {
|
|
65
|
-
this.working = true;
|
|
66
|
-
}
|
|
67
|
-
else if (this.working) {
|
|
68
|
-
this.working = false;
|
|
69
|
-
this.turn.end('end_turn');
|
|
70
|
-
}
|
|
64
|
+
// 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.
|
|
65
|
+
if (phase && !ids.some(id => this.earlier.has(id)) && AgentSession.own(meta)) {
|
|
66
|
+
this.phase(this.turn, phase, meta);
|
|
71
67
|
}
|
|
72
68
|
if (meta && Object.keys(meta).some(key => /unsolicitedTurn$/.test(key)) && !this.turn) {
|
|
73
69
|
this.startUnsolicited(false);
|
|
74
70
|
}
|
|
75
71
|
return;
|
|
76
72
|
}
|
|
73
|
+
case 'usage_update':
|
|
74
|
+
this.measure(update);
|
|
75
|
+
break;
|
|
77
76
|
case 'session_end':
|
|
78
77
|
if ((_c = this.turn) === null || _c === void 0 ? void 0 : _c.unsolicited) {
|
|
79
78
|
this.turn.end('end_turn');
|
|
@@ -107,8 +106,24 @@ class AgentSession {
|
|
|
107
106
|
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); });
|
|
108
107
|
this.turn = turn;
|
|
109
108
|
this.working = false;
|
|
109
|
+
this.phaseOf = undefined;
|
|
110
|
+
this.failure = undefined;
|
|
111
|
+
this.stopWaiting();
|
|
110
112
|
this.earlier = new Set(this.requests);
|
|
111
|
-
const answer = this.host.request('session/prompt', { sessionId: this.id, prompt }).then(response => {
|
|
113
|
+
const answer = this.host.request('session/prompt', { sessionId: this.id, prompt }).then(response => {
|
|
114
|
+
var _a;
|
|
115
|
+
this.answered(turn);
|
|
116
|
+
const error = (response === null || response === void 0 ? void 0 : response.stopReason) === 'cancelled' ? undefined : AgentSession.errorOf(response === null || response === void 0 ? void 0 : response._meta);
|
|
117
|
+
if (error) {
|
|
118
|
+
turn.fail(error);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
turn.end((_a = response === null || response === void 0 ? void 0 : response.stopReason) !== null && _a !== void 0 ? _a : 'end_turn');
|
|
122
|
+
}
|
|
123
|
+
}, (error) => {
|
|
124
|
+
this.answered(turn);
|
|
125
|
+
turn.fail(error.message, error.code);
|
|
126
|
+
});
|
|
112
127
|
this.answer = answer;
|
|
113
128
|
return turn;
|
|
114
129
|
}
|
|
@@ -150,6 +165,7 @@ class AgentSession {
|
|
|
150
165
|
this.turn = undefined;
|
|
151
166
|
clearTimeout(this.quietTimer);
|
|
152
167
|
this.quietTimer = undefined;
|
|
168
|
+
this.stopWaiting();
|
|
153
169
|
}
|
|
154
170
|
}
|
|
155
171
|
cancel() {
|
|
@@ -180,6 +196,60 @@ class AgentSession {
|
|
|
180
196
|
}
|
|
181
197
|
}
|
|
182
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* What the agent's phase says of `turn`, or of the next turn it starts on its own. Some agents (CodeBuddy Code)
|
|
201
|
+
* answer the prompt seconds after they are done, once they named the session, and say nothing of when a turn of
|
|
202
|
+
* their own ends: going idle after a response it finished ends the turn. Idle in the middle of a request, or with
|
|
203
|
+
* calls still open, is a request that failed: the turn waits for the answer, which says why, or for the agent to
|
|
204
|
+
* 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
|
|
205
|
+
* of its model ends the calls before, which it may have dropped without a word.
|
|
206
|
+
*/
|
|
207
|
+
phase(turn, phase, meta) {
|
|
208
|
+
var _a, _b;
|
|
209
|
+
if (phase !== 'idle') {
|
|
210
|
+
this.working = true;
|
|
211
|
+
this.stopWaiting();
|
|
212
|
+
this.retried(phase === 'retrying' ? AgentSession.retryOf(meta) : undefined);
|
|
213
|
+
if (STEP_PHASES.has(phase)) {
|
|
214
|
+
turn === null || turn === void 0 ? void 0 : turn.step();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
else if (this.working) {
|
|
218
|
+
this.working = false;
|
|
219
|
+
this.retried(undefined);
|
|
220
|
+
this.stopWaiting();
|
|
221
|
+
if (this.phaseOf === 'model_done' && !(turn === null || turn === void 0 ? void 0 : turn.open())) {
|
|
222
|
+
turn === null || turn === void 0 ? void 0 : turn.end('end_turn');
|
|
223
|
+
}
|
|
224
|
+
else if (turn) {
|
|
225
|
+
this.idleTimer = setTimeout(() => {
|
|
226
|
+
this.idleTimer = undefined;
|
|
227
|
+
turn.end('end_turn');
|
|
228
|
+
}, AgentSession.unfinishedIdleMs);
|
|
229
|
+
(_b = (_a = this.idleTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
this.phaseOf = phase;
|
|
233
|
+
}
|
|
234
|
+
stopWaiting() {
|
|
235
|
+
clearTimeout(this.idleTimer);
|
|
236
|
+
this.idleTimer = undefined;
|
|
237
|
+
}
|
|
238
|
+
/** The agent answered the prompt of `turn`: what waited for the answer of the turn of now stops. */
|
|
239
|
+
answered(turn) {
|
|
240
|
+
if (this.turn === turn) {
|
|
241
|
+
this.stopWaiting();
|
|
242
|
+
this.retried(undefined);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
retried(retry) {
|
|
246
|
+
var _a, _b, _c, _d;
|
|
247
|
+
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) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
this.retrying = retry;
|
|
251
|
+
(_d = (_c = this.callbacks).retry) === null || _d === void 0 ? void 0 : _d.call(_c, retry);
|
|
252
|
+
}
|
|
183
253
|
startUnsolicited(quiet) {
|
|
184
254
|
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); });
|
|
185
255
|
this.turn = turn;
|
|
@@ -188,20 +258,107 @@ class AgentSession {
|
|
|
188
258
|
}
|
|
189
259
|
this.callbacks.activity(this);
|
|
190
260
|
}
|
|
191
|
-
/**
|
|
261
|
+
/**
|
|
262
|
+
* Ends a turn the agent started without saying when it ends, once it is quiet: not while it says it works or a
|
|
263
|
+
* call of it runs, which would cut the turn in pieces and fail the calls.
|
|
264
|
+
*/
|
|
192
265
|
quiet(turn) {
|
|
193
266
|
var _a, _b;
|
|
194
267
|
clearTimeout(this.quietTimer);
|
|
195
|
-
this.quietTimer = setTimeout(() =>
|
|
268
|
+
this.quietTimer = setTimeout(() => {
|
|
269
|
+
if (turn.ended) {
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
if (this.working || this.idleTimer || turn.open()) {
|
|
273
|
+
this.quiet(turn);
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
turn.end('end_turn');
|
|
277
|
+
}
|
|
278
|
+
}, AgentSession.quietMs);
|
|
196
279
|
(_b = (_a = this.quietTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
197
280
|
}
|
|
198
281
|
/** The ids of requests in `_meta`, under keys of the agent's own (`<agent>/requestId`, `<agent>/messageRequestId`). */
|
|
282
|
+
/**
|
|
283
|
+
* An agent compacts its context by itself, and what it was told goes with what it summed up: once its context
|
|
284
|
+
* shrank to less than half, the notes go again with the next prompt. A subagent's request (`…parentToolCallId`) is not its context.
|
|
285
|
+
*/
|
|
286
|
+
measure(update) {
|
|
287
|
+
var _a;
|
|
288
|
+
const used = AgentSession.contextUsed(update);
|
|
289
|
+
if (used === undefined || Object.keys((_a = update._meta) !== null && _a !== void 0 ? _a : {}).some(key => /parentToolCallId$/.test(key))) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
if (this.context !== undefined && used < this.context / 2) {
|
|
293
|
+
this.told.clear();
|
|
294
|
+
}
|
|
295
|
+
this.context = used;
|
|
296
|
+
}
|
|
297
|
+
/** How much context a usage update says the agent used: `used`, else the tokens of its request in `_meta`. */
|
|
298
|
+
static contextUsed(update) {
|
|
299
|
+
var _a;
|
|
300
|
+
if (typeof update.used === 'number' && update.used > 0) {
|
|
301
|
+
return update.used;
|
|
302
|
+
}
|
|
303
|
+
const tokens = (_a = update._meta) === null || _a === void 0 ? void 0 : _a.usage;
|
|
304
|
+
const count = (value) => (typeof value === 'number' && Number.isFinite(value) ? value : 0);
|
|
305
|
+
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);
|
|
306
|
+
return total > 0 ? total : undefined;
|
|
307
|
+
}
|
|
308
|
+
/** Whether an update is the agent's own bookkeeping, not for the user: the summary of a compaction (`<agent>/isCompactInternal`). */
|
|
309
|
+
static internal(meta) {
|
|
310
|
+
return Object.entries(meta !== null && meta !== void 0 ? meta : {}).some(([key, value]) => /isCompactInternal$/.test(key) && value === true);
|
|
311
|
+
}
|
|
312
|
+
/** Whether an update is of the session's own agent, not of a subagent (`…parentToolCallId`) or a teammate (`…memberEvent`). */
|
|
313
|
+
static own(meta) {
|
|
314
|
+
return !Object.keys(meta !== null && meta !== void 0 ? meta : {}).some(key => /(parentToolCallId|memberEvent)$/.test(key));
|
|
315
|
+
}
|
|
199
316
|
static requestIds(meta) {
|
|
200
317
|
return Object.entries(meta !== null && meta !== void 0 ? meta : {})
|
|
201
318
|
.filter(([key, value]) => /requestId$/i.test(key) && typeof value === 'string' && value)
|
|
202
319
|
.map(([, value]) => value);
|
|
203
320
|
}
|
|
204
321
|
/** What the agent says it is doing, if it says (CodeBuddy Code: `_meta['codebuddy.ai/agentPhase'].phase`). */
|
|
322
|
+
/** What an agent's `retrying` phase says of the retry (`…agentPhase` `retry`: `{ reason, attempt }`). */
|
|
323
|
+
static retryOf(meta) {
|
|
324
|
+
for (const [key, value] of Object.entries(meta !== null && meta !== void 0 ? meta : {})) {
|
|
325
|
+
const retry = value === null || value === void 0 ? void 0 : value.retry;
|
|
326
|
+
if (/agentPhase$/.test(key) && retry && typeof retry === 'object') {
|
|
327
|
+
return {
|
|
328
|
+
...(typeof retry.reason === 'string' ? { reason: retry.reason } : {}),
|
|
329
|
+
...(typeof retry.attempt === 'number' ? { attempt: retry.attempt } : {}),
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return {};
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* The error an agent gives with its answer to a prompt, under a key of its own (`<agent>/errorMessage`):
|
|
337
|
+
* a text, or the JSON of an error, read for its message.
|
|
338
|
+
*/
|
|
339
|
+
static errorOf(meta) {
|
|
340
|
+
for (const [key, value] of Object.entries(meta !== null && meta !== void 0 ? meta : {})) {
|
|
341
|
+
if (/errorMessage$/.test(key) && typeof value === 'string' && value.trim()) {
|
|
342
|
+
return AgentSession.messageOf(value.trim());
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return undefined;
|
|
346
|
+
}
|
|
347
|
+
static messageOf(text) {
|
|
348
|
+
var _a;
|
|
349
|
+
var _b;
|
|
350
|
+
if (!text.startsWith('{')) {
|
|
351
|
+
return text;
|
|
352
|
+
}
|
|
353
|
+
try {
|
|
354
|
+
const value = JSON.parse(text);
|
|
355
|
+
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);
|
|
356
|
+
return typeof message === 'string' && message.trim() ? message.trim() : text;
|
|
357
|
+
}
|
|
358
|
+
catch (_c) {
|
|
359
|
+
return text;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
205
362
|
static phase(meta) {
|
|
206
363
|
for (const [key, value] of Object.entries(meta !== null && meta !== void 0 ? meta : {})) {
|
|
207
364
|
const phase = value === null || value === void 0 ? void 0 : value.phase;
|
|
@@ -219,4 +376,12 @@ class AgentSession {
|
|
|
219
376
|
}
|
|
220
377
|
}
|
|
221
378
|
exports.AgentSession = AgentSession;
|
|
379
|
+
/**
|
|
380
|
+
* How long a turn waits for the answer to its prompt once the agent went idle without finishing a response
|
|
381
|
+
* (`model_done`) or with calls still open: a request that failed, which the agent reports in its answer, or
|
|
382
|
+
* goes on with after all (a call of a tool it does not have).
|
|
383
|
+
*/
|
|
384
|
+
AgentSession.unfinishedIdleMs = 20000;
|
|
385
|
+
/** How long a turn the agent started on its own lasts after its last update, when the agent does not say it ended. */
|
|
386
|
+
AgentSession.quietMs = 3000;
|
|
222
387
|
//# 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,10 +58,15 @@ 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];
|
|
@@ -99,6 +108,10 @@ class AgentStreamer {
|
|
|
99
108
|
if (item.reason === 'cancelled' && (signal === null || signal === void 0 ? void 0 : signal.aborted)) {
|
|
100
109
|
builder.error('aborted', 'Aborted');
|
|
101
110
|
}
|
|
111
|
+
else if (item.reason === 'refusal') {
|
|
112
|
+
session.failure = (0, texts_1.text)('refused', config.name);
|
|
113
|
+
builder.error('error', session.failure);
|
|
114
|
+
}
|
|
102
115
|
else {
|
|
103
116
|
if (turn.command && !turn.produced) {
|
|
104
117
|
// A command of the agent that only acts in its own interface (a panel, a reset) says nothing.
|
|
@@ -110,7 +123,8 @@ class AgentStreamer {
|
|
|
110
123
|
}
|
|
111
124
|
case 'error':
|
|
112
125
|
session.finished(turn);
|
|
113
|
-
|
|
126
|
+
session.failure = AgentStreamer.describe(config, item);
|
|
127
|
+
builder.error('error', session.failure);
|
|
114
128
|
return;
|
|
115
129
|
}
|
|
116
130
|
}
|
|
@@ -17,6 +17,8 @@ export declare namespace AgentTool {
|
|
|
17
17
|
const NAME = "agent_tool";
|
|
18
18
|
/** `cwd`: the directory of the session (its real path too), for paths in it to show relative. */
|
|
19
19
|
function args(run: ToolRun, cwd?: string[]): Record<string, string>;
|
|
20
|
+
/** The arguments of a call, for clients to show (the whole command, a script): long strings cut, the rest left out. */
|
|
21
|
+
function input(value: Record<string, unknown> | undefined): Record<string, unknown>;
|
|
20
22
|
function definition(calls: Map<string, AgentCall>): ToolDefinition;
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=agent-tool.d.ts.map
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AgentTool = void 0;
|
|
4
4
|
const texts_1 = require("./texts");
|
|
5
|
+
/** The longest string of the arguments of a call kept for clients. */
|
|
6
|
+
const INPUT_CHARS = 8000;
|
|
5
7
|
function relative(path, dirs) {
|
|
6
8
|
const dir = dirs.find(candidate => path.startsWith(`${candidate}/`) || path.startsWith(`${candidate}\\`));
|
|
7
9
|
return dir ? path.slice(dir.length + 1) : path;
|
|
@@ -42,11 +44,43 @@ var AgentTool;
|
|
|
42
44
|
break;
|
|
43
45
|
}
|
|
44
46
|
// 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
|
-
|
|
47
|
+
// else by what it is on (the image ViewImage looks at, the skill, the item of a todo list, the file
|
|
48
|
+
// Artifact publishes, whom SendMessage writes to, the prompt of a scheduled task, the task waited on).
|
|
49
|
+
target !== null && target !== void 0 ? target : (target = [
|
|
50
|
+
'description',
|
|
51
|
+
'subject',
|
|
52
|
+
'summary',
|
|
53
|
+
'skill',
|
|
54
|
+
'image_path',
|
|
55
|
+
'file_path',
|
|
56
|
+
'filePath',
|
|
57
|
+
'path',
|
|
58
|
+
'url',
|
|
59
|
+
'query',
|
|
60
|
+
'recipient',
|
|
61
|
+
'prompt',
|
|
62
|
+
'task_id',
|
|
63
|
+
'id',
|
|
64
|
+
]
|
|
65
|
+
.map(key => str(input[key]))
|
|
66
|
+
.find(Boolean));
|
|
47
67
|
return { title, kind: run.kind, target: relative(target !== null && target !== void 0 ? target : title, cwd), ...(run.name ? { tool: run.name } : {}) };
|
|
48
68
|
}
|
|
49
69
|
AgentTool.args = args;
|
|
70
|
+
/** The arguments of a call, for clients to show (the whole command, a script): long strings cut, the rest left out. */
|
|
71
|
+
function input(value) {
|
|
72
|
+
const result = {};
|
|
73
|
+
for (const [key, item] of Object.entries(value !== null && value !== void 0 ? value : {})) {
|
|
74
|
+
if (typeof item === 'string') {
|
|
75
|
+
result[key] = item.length > INPUT_CHARS ? `${item.slice(0, INPUT_CHARS)}\n…` : item;
|
|
76
|
+
}
|
|
77
|
+
else if (typeof item === 'number' || typeof item === 'boolean') {
|
|
78
|
+
result[key] = item;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
AgentTool.input = input;
|
|
50
84
|
function definition(calls) {
|
|
51
85
|
return {
|
|
52
86
|
name: AgentTool.NAME,
|
|
@@ -76,9 +110,16 @@ var AgentTool;
|
|
|
76
110
|
throw new Error('Cancelled');
|
|
77
111
|
}
|
|
78
112
|
calls.delete(toolCallId);
|
|
79
|
-
const details = {
|
|
113
|
+
const details = {
|
|
114
|
+
agent: call.agent,
|
|
115
|
+
kind: run === null || run === void 0 ? void 0 : run.kind,
|
|
116
|
+
title: run === null || run === void 0 ? void 0 : run.title,
|
|
117
|
+
status: run === null || run === void 0 ? void 0 : run.status,
|
|
118
|
+
locations: run === null || run === void 0 ? void 0 : run.locations,
|
|
119
|
+
input: AgentTool.input(run === null || run === void 0 ? void 0 : run.input),
|
|
120
|
+
};
|
|
80
121
|
if (!(run === null || run === void 0 ? void 0 : run.done)) {
|
|
81
|
-
return { content: [{ type: 'text', text: (0, texts_1.text)('unfinished', call.agent) }], details, isError: true };
|
|
122
|
+
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 };
|
|
82
123
|
}
|
|
83
124
|
return { content: [{ type: 'text', text: run.output || '(no output)' }], details, isError: run.status === 'failed' };
|
|
84
125
|
},
|
|
@@ -29,6 +29,8 @@ export interface ToolRun {
|
|
|
29
29
|
status: Acp.ToolStatus;
|
|
30
30
|
output: string;
|
|
31
31
|
done: boolean;
|
|
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
|
+
left: boolean;
|
|
32
34
|
/** Its arguments are all there: the agent said so, or announced the call with them before running it. */
|
|
33
35
|
complete: boolean;
|
|
34
36
|
/** What its terminal printed, as some agents report it (Codex: `_meta.terminal_output_delta`). */
|
|
@@ -56,6 +58,11 @@ export declare class AgentTurn {
|
|
|
56
58
|
readonly unsolicited: boolean;
|
|
57
59
|
readonly command?: string | undefined;
|
|
58
60
|
protected readonly onWrite?: WriteListener | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* How long a call the agent stepped past may still say it ended before it counts as dropped: CodeBuddy Code
|
|
63
|
+
* sends the end of a call of a tool that calls others (REPL) just after it starts its next request.
|
|
64
|
+
*/
|
|
65
|
+
static stepGraceMs: number;
|
|
59
66
|
readonly tools: Map<string, ToolRun>;
|
|
60
67
|
usage: TurnUsage;
|
|
61
68
|
ended: boolean;
|
|
@@ -65,6 +72,9 @@ export declare class AgentTurn {
|
|
|
65
72
|
protected readonly listeners: Set<() => void>;
|
|
66
73
|
/** Each file of each call, told once. */
|
|
67
74
|
protected readonly written: Set<string>;
|
|
75
|
+
/** Calls open when the agent took its next step, dropped unless they end within {@link stepGraceMs}. */
|
|
76
|
+
protected readonly stepped: Set<string>;
|
|
77
|
+
protected stepTimer?: ReturnType<typeof setTimeout>;
|
|
68
78
|
/** `command`: the slash command the prompt is, if it is one; `onWrite` hears of the files its calls change. */
|
|
69
79
|
constructor(unsolicited?: boolean, command?: string | undefined, onWrite?: WriteListener | undefined);
|
|
70
80
|
update(update: Acp.SessionUpdate): void;
|
|
@@ -82,8 +92,14 @@ export declare class AgentTurn {
|
|
|
82
92
|
* say something else, or nothing was said about the call for `quietMs`.
|
|
83
93
|
*/
|
|
84
94
|
settle(id: string, quietMs: number, signal?: AbortSignal): Promise<void>;
|
|
85
|
-
/** The call once it ended, or the turn
|
|
95
|
+
/** The call once it ended, the agent went on without it, or the turn ended. */
|
|
86
96
|
waitTool(id: string, signal?: AbortSignal): Promise<ToolRun | undefined>;
|
|
97
|
+
/** Calls the agent started that neither ended nor were dropped, nor stepped past. */
|
|
98
|
+
open(): boolean;
|
|
99
|
+
/** The agent asks its model again: the calls before are over, said so or not, once their end had time to come. */
|
|
100
|
+
step(): void;
|
|
101
|
+
/** The calls stepped past that did not end are dropped. */
|
|
102
|
+
protected leave(): void;
|
|
87
103
|
protected pushText(type: 'text' | 'thinking', text: string): void;
|
|
88
104
|
protected tool(update: Acp.ToolCallUpdate): void;
|
|
89
105
|
/**
|