@celljs/ta 4.12.0 → 4.13.1
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 +182 -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 +75 -11
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +2 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +6 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +7 -5
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +44 -3
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +12 -2
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +29 -4
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +72 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +178 -0
- package/dist/pi/packages/ta-bots/package.json +7 -2
- package/dist/pi/packages/ta-changes/extension/index.mjs +72 -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 +78 -4
- package/dist/pi/packages/ta-channels/host/index.mjs +289 -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/extension.js +2 -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/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +7 -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/package.json +26 -2
- package/dist/pi/packages/ta-channels/web/index.js +137 -27
- 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 +113 -258
- 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 +12 -8
- 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 +15 -11
- package/dist/pi/packages/ta-extensions/web/index.js +197 -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 +446 -3
- package/dist/pi/packages/ta-glance/lib/card.js +38 -12
- 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 +6 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +41 -7
- 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 +9 -1
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-glance/web/index.js +87 -19
- 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 +741 -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 +237 -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.js +109 -2
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +123 -11
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +45 -10
- package/dist/pi/packages/ta-manual/web/index.js +567 -12
- 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 +1787 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2415 -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 +2008 -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 +410 -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 +85 -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 +311 -134
- package/dist/pi/packages/ta-recall/host/index.mjs +472 -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/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 +31 -23
- 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 +414 -153
- package/dist/pi/packages/ta-rooms/README.en.md +6 -3
- package/dist/pi/packages/ta-rooms/README.md +6 -3
- package/dist/pi/packages/ta-rooms/extension/index.mjs +194 -9
- package/dist/pi/packages/ta-rooms/host/index.mjs +1023 -234
- 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 +43 -40
- package/dist/pi/packages/ta-rooms/lib/double-host.js +142 -311
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +40 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +96 -3
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +58 -3
- 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 +34 -2
- package/dist/pi/packages/ta-rooms/lib/double-util.js +60 -2
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +4 -1
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +8 -2
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +7 -2
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +9 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +35 -8
- 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 +2 -1
- package/dist/pi/packages/ta-rooms/lib/host.js +9 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +23 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.js +60 -18
- package/dist/pi/packages/ta-rooms/lib/index.js +18 -1
- package/dist/pi/packages/ta-rooms/lib/members-view.js +12 -1
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +42 -4
- package/dist/pi/packages/ta-rooms/lib/page.js +108 -24
- package/dist/pi/packages/ta-rooms/lib/room-view.js +7 -3
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +6 -17
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +31 -6
- 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 +11 -2
- package/dist/pi/packages/ta-rooms/web/index.js +1633 -751
- 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 +72 -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/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +4 -6
- package/dist/pi/packages/ta-share/package.json +10 -2
- package/dist/pi/packages/ta-share/web/index.js +12 -14
- 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 +285 -0
- package/dist/pi/packages/ta-team/host/index.mjs +2121 -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 +178 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-BnqtcbpZ.js → abnfDiagram-S7VZAUFO-C30pzFN3.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BzPq1Ioe.js → architecture-WOLXFQ4H-wfYFQl2u.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-BsquO3a7.js → architectureDiagram-YGSQEFNW-B05zgxyT.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BQNYOEP4.js → blockDiagram-APKKGZFW-BhN8Bsu0.js} +1 -1
- package/dist/public/assets/{browser-DS711n7Y.js → browser-DteLjv_-.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-D6e79Ycq.js → c4Diagram-KJ2TOQU5-DvdF3qCV.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-B-sgaPoU.js → chunk-6MUBBAK2-DNavkrnr.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-D8pJKIg2.js → chunk-AXFCVDMN-DplVEqp_.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-86TL-vCz.js → chunk-BG4553SI-BazOaHvw.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CfUVuGjc.js → chunk-DQASFODM-DmoQWa8b.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-Drm0FEYk.js → chunk-HFQBQIA3-Cj1m9ccz.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BVFRADlC.js → chunk-KQLB2F66-_jbilrLX.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-DfyALEmP.js → chunk-KS47KZWR-CWU16Lut.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-DtJVzk2c.js → chunk-LEVMRMFU-wsbxWEZE.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DTy27PHQ.js → chunk-M57EVK23-BGvmwwTv.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-nSgn7jZg.js → chunk-OY52VR5R-Bp3hJ4kT.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-CkSxO_X6.js → chunk-QB3YPZ4I-C1rQVxsJ.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Ck6iAjAL.js → chunk-R3KSYZAL-CEy0dKWn.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DQPHdSTh.js → chunk-STOXU5M4-akqvafwH.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-Bc2AbV2Y.js → chunk-TU62E6Q5-CVXAS4DS.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Cgpm0IXm.js → chunk-X4PVCEUW-DT_bEMvQ.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-CGE4eLpg.js → chunk-XXDRQBXY-Bgv_n5Qh.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-4eQuDPEo.js → classDiagram-v2-L25IHNXF-BtjQChpS.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-tDLCWq07.js → cose-bilkent-JH36ORCC-DSrOY8Uk.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-ByqcZ8x9.js → cynefinDiagram-L36ESFBY-DTy7FNFS.js} +1 -1
- package/dist/public/assets/{d3-selection-Bgn1374-.js → d3-selection-ip6rDUzY.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-mCgr71mV.js → dagre-SPEB5RXH-CHrks7Jb.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DpYSwpQ0.js → diagram-3B7GL73J-eUJ7STAr.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-DMozUQzi.js → diagram-DNEMPZML-B_fptNkg.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-Bk5Uf8PD.js → diagram-L3MUGCDN-C15owCSG.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DFt5cPVK.js → diagram-LA4NIPWU-Bfa1qEgY.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BkZZcKqK.js → diagram-MHCOC4E2-Bwxsih_Q.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-HEY6kyyN.js → diagram-XPFHEONP-DKZ_lwah.js} +1 -1
- package/dist/public/assets/{dist-Bj2CrKn7.js → dist-VHGBaby6.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D4JvYyVb.js → ebnfDiagram-UZSYDL2S-CCkttvYi.js} +1 -1
- package/dist/public/assets/{editor.api-BpJFzYbl.js → editor.api-a2gC0dVD.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CT6qLJkF.js → elk-XV6XMXQE-DcikW39e.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BGng1goR.js → erDiagram-EYBAPDEH-BE3TV5lU.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-Tt8O-Q1Z.js → eventmodeling-K75KTNOO-C2s1kutf.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +1 -0
- package/dist/public/assets/{freemarker2-Dd5ksoRn.js → freemarker2-2e8pZojb.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Jl8VO_g2.js → ganttDiagram-23REXITY-rGnJptii.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Be4qXALb.js → gitGraphDiagram-STJD7YCW-CNnsDjQA.js} +1 -1
- package/dist/public/assets/{handlebars-4xabgUi4.js → handlebars-CMKN6E37.js} +1 -1
- package/dist/public/assets/{html-Dk3kt2w_.js → html-0AjXQhkQ.js} +1 -1
- package/dist/public/assets/{index-Bx0c7eoh.js → index-TUtoc8CW.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-Coc0tdwb.js → infoDiagram-KBXO4MBG-DMKs8cuE.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-CE_1VQCg.js → ishikawaDiagram-M35NCXHK-Dg_IbA0G.js} +1 -1
- package/dist/public/assets/{javascript-DKLGqy6v.js → javascript-CqYOqPjw.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-CrolRZ_7.js → journeyDiagram-OPLOXDXO-ohAOfoEY.js} +1 -1
- package/dist/public/assets/{jsonMode-Chcs19_y.js → jsonMode-D-gI-S5H.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-CjJj47De.js → kanban-definition-BZKZHSQY-w-aKZS_U.js} +1 -1
- package/dist/public/assets/{liquid-jff3p-Ji.js → liquid-oBN7c8NZ.js} +1 -1
- package/dist/public/assets/{mdx-DW4uRDfJ.js → mdx-CnwhgGjX.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-XhQj6FvH.js → mermaid-parser.core-CfFkSR0t.js} +3 -3
- package/dist/public/assets/{mermaid.core-OD4Atimg.js → mermaid.core-apiVCSBY.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DpGelVY7.js → mindmap-definition-I2QAS2VK-E7vqVWB0.js} +1 -1
- package/dist/public/assets/module-C2jtFD0v.js +2365 -0
- package/dist/public/assets/module-xT4L5yYw.js +1 -0
- package/dist/public/assets/{monaco-BTVZP-tU.js → monaco-C0ByxW3l.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CqcBmPfB.js → pegDiagram-FD4XPPHP--RpwCE7x.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CRir3beB.js → pieDiagram-J4AKIIQI-DxSbPaRZ.js} +1 -1
- package/dist/public/assets/{python-BwW_0207.js → python-vNPe_Fao.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-DIY6gdcf.js → quadrantDiagram-XTYBLID2-CR_eeYXi.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-XWNOzunl.js → railroad-abnf-LNEFI6M7-D6I2HxIC.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js → railroad-ebnf-DWYD2UWJ-BuhDRGo3.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-BVB_IaIG.js → railroad-peg-JR7BVNR7-n15PB7Sb.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-CudwT6q2.js → railroadDiagram-MRQ6NCDL-Bbe5bNap.js} +1 -1
- package/dist/public/assets/{razor-DrjCyQqB.js → razor-CnKbF0Yz.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CvRMeRqj.js → requirementDiagram-Y7LWUY3S-Beuygh9j.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-adxYCJKr.js → sankeyDiagram-WGJFYUXA-jwWPgnrS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-lCRsoLUp.js → sequenceDiagram-5NDRBG5M-CmU-HYQI.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-DNst1BLg.js → stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-S_omrdvA.js → swimlanes-UMQ2AFYF-PSKyZN_b.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-_pMGrTE-.js → timeline-definition-SEUHKTQE-BuRxLScZ.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +1 -0
- package/dist/public/assets/{typescript-0-z_OYCU.js → typescript-C00ztMLg.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-B2oJKi5Q.js → usecaseDiagram-AFA6YXN4-Dlvyos8r.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-inPs2Kkr.js → vennDiagram-NNMJR3RB-CuLZubJH.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DNhNHM7b.js → wardleyDiagram-S7YFUSEH-WOGGTs4y.js} +1 -1
- package/dist/public/assets/{xml-BXPxQzKF.js → xml-CHBFuf5n.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DJc93dNT.js → xychartDiagram-GGNKY7IX-DwW9eifP.js} +1 -1
- package/dist/public/assets/{yaml-CGmD9Rya.js → yaml-C4qkqzcL.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7738 -3839
- 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-Dd40W2Jh.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-uFzenfA3.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D28I_jUc.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-5vIGEIq7.js +0 -1
- package/dist/public/assets/module-CrD0OHQp.js +0 -1
- package/dist/public/assets/module-DEBMgdtf.js +0 -2273
- package/dist/public/assets/packet-JDAUHWVQ-CBxQ5Mzy.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-DT5V3581.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-BAOovYEa.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-RZ2Rnwzh.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-By5lnz4u.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-Cyb9N8KY.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-BkMo57pG.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-CSt-uQ-Y.js +0 -1
package/dist/gateway.mjs
CHANGED
|
@@ -994,19 +994,91 @@ var TaHostUtil;
|
|
|
994
994
|
TaHostUtil2.WAIT_MS = 1000;
|
|
995
995
|
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
996
996
|
return new Promise((resolve) => {
|
|
997
|
+
let heard = false;
|
|
998
|
+
let answered = false;
|
|
997
999
|
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
998
1000
|
const request = {
|
|
999
1001
|
name,
|
|
1002
|
+
heard: () => {
|
|
1003
|
+
heard = true;
|
|
1004
|
+
},
|
|
1000
1005
|
resolve: (answer) => {
|
|
1006
|
+
answered = true;
|
|
1001
1007
|
clearTimeout(timer);
|
|
1002
1008
|
resolve(answer);
|
|
1003
1009
|
}
|
|
1004
1010
|
};
|
|
1005
1011
|
events.emit(TA_HOST_EVENT, request);
|
|
1012
|
+
if (!heard && !answered) {
|
|
1013
|
+
clearTimeout(timer);
|
|
1014
|
+
resolve(undefined);
|
|
1015
|
+
}
|
|
1006
1016
|
});
|
|
1007
1017
|
}
|
|
1008
1018
|
TaHostUtil2.reach = reach;
|
|
1019
|
+
function marked(systemPrompt, mark) {
|
|
1020
|
+
return role(systemPrompt).includes(mark);
|
|
1021
|
+
}
|
|
1022
|
+
TaHostUtil2.marked = marked;
|
|
1023
|
+
function role(systemPrompt) {
|
|
1024
|
+
if (!systemPrompt) {
|
|
1025
|
+
return "";
|
|
1026
|
+
}
|
|
1027
|
+
const open = `<addendum>
|
|
1028
|
+
`;
|
|
1029
|
+
const start = systemPrompt.indexOf(open);
|
|
1030
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
1031
|
+
`);
|
|
1032
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
1033
|
+
return "";
|
|
1034
|
+
}
|
|
1035
|
+
const end = systemPrompt.indexOf(`
|
|
1036
|
+
</addendum>`, start);
|
|
1037
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
1038
|
+
}
|
|
1039
|
+
TaHostUtil2.role = role;
|
|
1009
1040
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
1041
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
1042
|
+
var TaAskUtil;
|
|
1043
|
+
(function(TaAskUtil2) {
|
|
1044
|
+
const LENGTH = 120;
|
|
1045
|
+
function entry(question) {
|
|
1046
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
1047
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
1048
|
+
}
|
|
1049
|
+
TaAskUtil2.entry = entry;
|
|
1050
|
+
function asking(entries) {
|
|
1051
|
+
var _a;
|
|
1052
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
1053
|
+
const entry2 = entries[i];
|
|
1054
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
1058
|
+
return read(entry2);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
TaAskUtil2.asking = asking;
|
|
1064
|
+
function next(asked, entry2) {
|
|
1065
|
+
var _a;
|
|
1066
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
1067
|
+
return;
|
|
1068
|
+
}
|
|
1069
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
1070
|
+
}
|
|
1071
|
+
TaAskUtil2.next = next;
|
|
1072
|
+
function read(found) {
|
|
1073
|
+
var _a;
|
|
1074
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
1075
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
1076
|
+
return;
|
|
1077
|
+
}
|
|
1078
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
1079
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
1080
|
+
}
|
|
1081
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
1010
1082
|
// ../../ta-packages/ta-protocol/esm/common/ta-protocol.js
|
|
1011
1083
|
var TaServer = Symbol("TaServer");
|
|
1012
1084
|
var TaClient = Symbol("TaClient");
|
|
@@ -1025,6 +1097,8 @@ var TaErrorCode = {
|
|
|
1025
1097
|
CANCELLED: "CELL_TA_CANCELLED",
|
|
1026
1098
|
NOT_SIGNED_IN: "CELL_TA_NOT_SIGNED_IN",
|
|
1027
1099
|
ENVIRONMENT_FAILED: "CELL_TA_ENVIRONMENT_FAILED",
|
|
1100
|
+
FORBIDDEN: "CELL_TA_FORBIDDEN",
|
|
1101
|
+
LIMIT: "CELL_TA_LIMIT",
|
|
1028
1102
|
CONNECTION_LOST: "CELL_TA_CONNECTION_LOST"
|
|
1029
1103
|
};
|
|
1030
1104
|
var TaErrorUtil;
|
|
@@ -1062,7 +1136,34 @@ ${message}`;
|
|
|
1062
1136
|
return message.replace(BLOCK, "");
|
|
1063
1137
|
}
|
|
1064
1138
|
TaMessageContext2.strip = strip;
|
|
1139
|
+
function read(message) {
|
|
1140
|
+
var _a;
|
|
1141
|
+
const block = (_a = BLOCK.exec(message)) === null || _a === undefined ? undefined : _a[0];
|
|
1142
|
+
return block === null || block === undefined ? undefined : block.replace(/^<context>\n?/, "").replace(/\n?<\/context>\n?$/, "");
|
|
1143
|
+
}
|
|
1144
|
+
TaMessageContext2.read = read;
|
|
1065
1145
|
})(TaMessageContext || (TaMessageContext = {}));
|
|
1146
|
+
var TaMessageSource;
|
|
1147
|
+
(function(TaMessageSource2) {
|
|
1148
|
+
TaMessageSource2.DOUBLE = "ta:double";
|
|
1149
|
+
const LINE = /^\[ta:from ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
|
|
1150
|
+
function mark(message, from, detail) {
|
|
1151
|
+
if (/^[/!]/.test(message) || of(message)) {
|
|
1152
|
+
return message;
|
|
1153
|
+
}
|
|
1154
|
+
const line = `[ta:from ${from}${detail ? ` ${detail.replace(/[\]\n]/g, " ")}` : ""}]`;
|
|
1155
|
+
const context = TaMessageContext.read(message);
|
|
1156
|
+
return TaMessageContext.wrap(context === undefined ? line : `${context}
|
|
1157
|
+
${line}`, TaMessageContext.strip(message));
|
|
1158
|
+
}
|
|
1159
|
+
TaMessageSource2.mark = mark;
|
|
1160
|
+
function of(message) {
|
|
1161
|
+
const context = TaMessageContext.read(message);
|
|
1162
|
+
const match = context === undefined ? null : LINE.exec(context);
|
|
1163
|
+
return match ? { from: match[1], ...match[2] ? { detail: match[2].trim() } : {} } : undefined;
|
|
1164
|
+
}
|
|
1165
|
+
TaMessageSource2.of = of;
|
|
1166
|
+
})(TaMessageSource || (TaMessageSource = {}));
|
|
1066
1167
|
var TaImageNote;
|
|
1067
1168
|
(function(TaImageNote2) {
|
|
1068
1169
|
const NOTE = /^\[Image: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by [\d.]+ to map to original image\.\]$|^\[Image converted from [^\]]+ to [^\]]+\.\]$/;
|
|
@@ -1183,6 +1284,85 @@ var TaSkillUse;
|
|
|
1183
1284
|
}
|
|
1184
1285
|
TaSkillUse2.command = command;
|
|
1185
1286
|
})(TaSkillUse || (TaSkillUse = {}));
|
|
1287
|
+
// ../../ta-packages/ta-protocol/esm/common/team-protocol.js
|
|
1288
|
+
var TA_UNDECLARED = "extensions.install";
|
|
1289
|
+
var TaPermissionUtil;
|
|
1290
|
+
(function(TaPermissionUtil2) {
|
|
1291
|
+
function read(pi) {
|
|
1292
|
+
const given = pi === null || pi === undefined ? undefined : pi.permissions;
|
|
1293
|
+
const map = (value) => value && typeof value === "object" && !Array.isArray(value) ? Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === "string")) : undefined;
|
|
1294
|
+
const host2 = map(given === null || given === undefined ? undefined : given.host);
|
|
1295
|
+
const tools = map(given === null || given === undefined ? undefined : given.tools);
|
|
1296
|
+
return { ...host2 ? { host: host2 } : {}, ...tools ? { tools } : {} };
|
|
1297
|
+
}
|
|
1298
|
+
TaPermissionUtil2.read = read;
|
|
1299
|
+
function host(manifest, method, kind) {
|
|
1300
|
+
var _a, _b, _c, _d;
|
|
1301
|
+
const host2 = (_a = manifest === null || manifest === undefined ? undefined : manifest.host) !== null && _a !== undefined ? _a : {};
|
|
1302
|
+
const own = (key) => Object.prototype.hasOwnProperty.call(host2, key) ? host2[key] : undefined;
|
|
1303
|
+
return (_d = (_c = (_b = kind ? own(`${method}:${kind}`) : undefined) !== null && _b !== undefined ? _b : own(method)) !== null && _c !== undefined ? _c : own("*")) !== null && _d !== undefined ? _d : TA_UNDECLARED;
|
|
1304
|
+
}
|
|
1305
|
+
TaPermissionUtil2.host = host;
|
|
1306
|
+
})(TaPermissionUtil || (TaPermissionUtil = {}));
|
|
1307
|
+
var action = (id, en, zh, more = {}) => ({
|
|
1308
|
+
id,
|
|
1309
|
+
area: id.split(".")[0],
|
|
1310
|
+
title: { en, "zh-CN": zh },
|
|
1311
|
+
...more
|
|
1312
|
+
});
|
|
1313
|
+
var TA_ACTIONS = [
|
|
1314
|
+
action("chat.view", "See conversations", "查看对话"),
|
|
1315
|
+
action("chat.send", "Send in conversations", "在对话里发消息"),
|
|
1316
|
+
action("chat.create", "Start conversations", "新建对话"),
|
|
1317
|
+
action("chat.stop", "Stop a reply", "停止回复"),
|
|
1318
|
+
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话"),
|
|
1319
|
+
action("chat.share", "Share by a link", "生成分享链接"),
|
|
1320
|
+
action("agent.view", "See agents", "查看智能体"),
|
|
1321
|
+
action("agent.use", "Talk with agents", "和智能体对话"),
|
|
1322
|
+
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体"),
|
|
1323
|
+
action("channel.view", "See channels", "查看频道"),
|
|
1324
|
+
action("channel.post", "Post in channels", "在频道里发言"),
|
|
1325
|
+
action("channel.manage", "Create and change channels", "新建、管理频道"),
|
|
1326
|
+
action("task.view", "See tasks", "查看任务"),
|
|
1327
|
+
action("task.create", "Hand out tasks", "派任务"),
|
|
1328
|
+
action("task.manage", "Take over and stop tasks", "接管、停止任务"),
|
|
1329
|
+
action("files.read", "Read files", "读文件", { scoped: true }),
|
|
1330
|
+
action("files.write", "Change files", "改文件", { scoped: true }),
|
|
1331
|
+
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", { scoped: true, risky: true }),
|
|
1332
|
+
action("commands.terminal", "Open terminals", "打开终端", { scoped: true, risky: true }),
|
|
1333
|
+
action("hosts.use", "Use remote hosts", "使用远程主机", { risky: true }),
|
|
1334
|
+
action("models.use", "Use the models", "使用模型"),
|
|
1335
|
+
action("models.manage", "Sign in to models", "登录和更换模型账号"),
|
|
1336
|
+
action("cron.view", "See scheduled tasks", "查看定时任务"),
|
|
1337
|
+
action("cron.manage", "Change scheduled tasks", "管理定时任务"),
|
|
1338
|
+
action("extensions.use", "Use extensions", "使用扩展"),
|
|
1339
|
+
action("extensions.install", "Install and turn off extensions", "安装、停用扩展"),
|
|
1340
|
+
action("settings.view", "See settings", "查看设置"),
|
|
1341
|
+
action("settings.manage", "Change settings", "修改设置"),
|
|
1342
|
+
action("members.view", "See members", "查看成员"),
|
|
1343
|
+
action("members.invite", "Invite people", "邀请别人"),
|
|
1344
|
+
action("members.approve", "Answer requests", "处理申请"),
|
|
1345
|
+
action("members.roles", "Change roles and members", "管理角色和成员"),
|
|
1346
|
+
action("audit.view", "See the record", "查看记录")
|
|
1347
|
+
];
|
|
1348
|
+
var TaActionUtil;
|
|
1349
|
+
(function(TaActionUtil2) {
|
|
1350
|
+
const byId = new Map(TA_ACTIONS.map((one) => [one.id, one]));
|
|
1351
|
+
function info(id) {
|
|
1352
|
+
return byId.get(id);
|
|
1353
|
+
}
|
|
1354
|
+
TaActionUtil2.info = info;
|
|
1355
|
+
function title(id, language) {
|
|
1356
|
+
const found = byId.get(id);
|
|
1357
|
+
return found ? language.startsWith("zh") ? found.title["zh-CN"] : found.title.en : id;
|
|
1358
|
+
}
|
|
1359
|
+
TaActionUtil2.title = title;
|
|
1360
|
+
function inside(dir, path) {
|
|
1361
|
+
const base = dir.replace(/\/+$/, "");
|
|
1362
|
+
return path === base || path.startsWith(`${base}/`) || base === "";
|
|
1363
|
+
}
|
|
1364
|
+
TaActionUtil2.inside = inside;
|
|
1365
|
+
})(TaActionUtil || (TaActionUtil = {}));
|
|
1186
1366
|
// ../../ta-packages/ta-protocol/esm/common/workspace-protocol.js
|
|
1187
1367
|
var TA_FILES_PATH = "/api/files";
|
|
1188
1368
|
var TaWorkspaceServer = Symbol("TaWorkspaceServer");
|
|
@@ -2423,11 +2603,11 @@ class GatewayService {
|
|
|
2423
2603
|
this.flow.store.signOut(id);
|
|
2424
2604
|
this.hooks.cutOff();
|
|
2425
2605
|
}
|
|
2426
|
-
async admin(caller,
|
|
2606
|
+
async admin(caller, action2) {
|
|
2427
2607
|
if (!caller.admin) {
|
|
2428
2608
|
throw new GatewayCallError("Only administrators of the gateway may do that.", TaErrorCode.INVALID_ARGUMENT, "Ask one of those of TA_GATEWAY_ADMINS.");
|
|
2429
2609
|
}
|
|
2430
|
-
return
|
|
2610
|
+
return action2();
|
|
2431
2611
|
}
|
|
2432
2612
|
}
|
|
2433
2613
|
|
package/dist/pi/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @celljs/ta
|
|
2
2
|
|
|
3
|
+
## 4.13.1
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 4.13.0
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- 6cf3f8f: Moments (`@celljs/ta-moments`, a built-in package; docs/design/ta-moments.md): what Ta friends made with Ta, to see and to take. A friend is added by a link (a room's invitation with `c=ta-moments`, `RelayHubLink.kind`, which the Rooms page leaves to it and a browser only says to open in Ta) and let in by the user; both Ta then follow each other's unlisted room of posts. Ta drafts a post with `draft_moment` (a card the user edits and posts, as far as `moments.post` of Initiative lets it), or the user posts from the page: words, up to three pictures, an extension of theirs (a .tgz shared through the relay, renewed while the post lasts) or a link, kept 3 days to for good. Friends like a post and Take it: Ta fetches the extension and reads its code in a new conversation before installing it. Under Discover the row of Moments shows the face of a friend with a new post (`WebView.mark`), never a count. `WebExtensionAPI.openLink` opens a link as a link of a reply does; `pi.ui.icons` has Aperture, Heart and ImagePlus.
|
|
12
|
+
- edece66: People let into your Ta (docs/design/ta-team.md, step 1). A link invites them; they ask from their own Ta and, once let in, connect to yours through the relay with a device of their own. Every call of theirs is checked in one place of ta serve (`TaTeamGate`: each RPC method names the action of a catalog it needs, `TA_ACTIONS`), answered by the new built-in package `ta-team` (roles admin, collaborator, viewer, guest and roles of your own, grants for a while, private conversations); the tools of a run do only what all who asked it may, and a refused tool or call can be asked for, the conversation going on once granted. Pages of those let in keep their own data of packages. `ui.connect` switches to another Ta by a pairing link.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 97ce957: One look across the pages of Ta: the segmented controls of the share dialog are the page's, My shares and an empty Rooms show the empty state of every page, the hint of an empty state breaks Chinese between its words, the answers of a question of Ta have the border of a button, and ta pair --help wraps as the others.
|
|
17
|
+
|
|
3
18
|
## 4.12.0
|
|
4
19
|
|
|
5
20
|
No changes in this release.
|
package/dist/pi/package.json
CHANGED
|
@@ -45,7 +45,7 @@ Fields: `name`, `command`, `args`, `env`, `login` (the sign-in command to tell t
|
|
|
45
45
|
|
|
46
46
|
## How it works
|
|
47
47
|
|
|
48
|
-
- **A turn**: each time pi asks the model, only what the user said since the agent last answered goes to the agent (`session/prompt`), since the agent keeps its own history. The agent's text and thinking stream as pi's message.
|
|
48
|
+
- **A turn**: each time pi asks the model, only what the user said since the agent last answered goes to the agent (`session/prompt`), since the agent keeps its own history. The agent keeps its own system prompt too; the first prompt of each of its sessions (and the first after it compacted its context) starts with what it needs of pi's: the `<ta-…>` notes of Ta's packages and pi's `<skills>`, the skills of Ta, its packages and the user with the files to read, which the agent's own skill tool does not know. The agent's text and thinking stream as pi's message.
|
|
49
49
|
- **Tool calls**: the agent uses its own tools; each call is recorded in pi as a call of `agent_tool` (its arguments are a title, a kind and a target, such as `{ kind: "execute", target: "npm test" }`), so Ta shows it as a line like its own tools, with the agent's output as the result. As soon as a call of kind edit, delete or move names the file it changes (`locations`, or `file_path` and the like in its arguments), or brings an ACP diff, the extension emits `ta:file-write` on `pi.events` (`{ path, before? }`, `TA_FILE_WRITE_EVENT` of ta-protocol), so that ta-changes keeps the file as it was before the agent writes it. When the agent starts a call, the assistant message ends (`toolUse`); pi "running" `agent_tool` only waits for the agent to finish the call, and pi's next request goes on with the same turn. some agents (CodeBuddy Code) stream the arguments first, so a call shows once the agent says they are complete (`toolArgumentsComplete` in `_meta`, or announcing the call again as `pending` with them); without such a sign, 1.5 seconds without news of the call, or the agent saying something else, will do; calls started together go in one message and show in parallel. `agent_tool` is active only while the model is an agent.
|
|
50
50
|
- **Sessions**: a pi session uses one session of each agent; its id is kept in the pi session (the custom entry `ta-agents.session`), and reopening the conversation loads it again (`session/load`). A fork, or going back to an earlier message in pi (`/tree`), starts a new session of the agent on the next turn and hands it the conversation so far as text; so does switching to an agent in the middle of a conversation (30,000 characters at most).
|
|
51
51
|
- **Processes**: the sessions of one agent in one directory share a process; by directory, because CodeBuddy Code runs commands where it was started rather than in the directory of the session. CodeBuddy Code itself runs a process for each conversation (about 650 MB), stopped when the conversation closes: a process of it answers only the session it opened or loaded last, and a prompt of another one waits forever, or ends at once with nothing while that one works. A process stops after 10 minutes without a turn, and starts again, loading its sessions, when it is needed. It keeps pi's process alive only while a request waits for its answer, so `pi -p` exits once it answered.
|
|
@@ -45,7 +45,7 @@ CodeBuddy Code 和在它自己的终端里一样:用 PTC(代码模式,工
|
|
|
45
45
|
|
|
46
46
|
## 机制
|
|
47
47
|
|
|
48
|
-
- **一轮怎么走**:pi 每次请求模型时,只把用户自上次回答以来说的话发给 Agent(`session/prompt`),因为 Agent 自己保存历史。Agent 的文字和思考按流式转成 pi 的消息。
|
|
48
|
+
- **一轮怎么走**:pi 每次请求模型时,只把用户自上次回答以来说的话发给 Agent(`session/prompt`),因为 Agent 自己保存历史。Agent 也用它自己的系统提示;它每个会话的第一条提示(以及压缩上下文后的第一条)前面带上 pi 系统提示里它需要的部分:Ta 各个包的 `<ta-…>` 说明,和 pi 的 `<skills>`(Ta、各个包和用户的技能及其文件路径,Agent 自己的技能工具不认识它们)。Agent 的文字和思考按流式转成 pi 的消息。
|
|
49
49
|
- **工具调用**:Agent 用自己的工具,每次调用在 pi 里记成一次 `agent_tool` 工具调用(参数是标题、种类和对象,例如 `{ kind: "execute", target: "npm test" }`),所以 Ta 显示成和自己的工具一样的一行,结果就是 Agent 工具的输出。种类是 edit、delete、move 的调用一说出要改的文件(`locations` 或参数里的 `file_path` 等),或者带来 ACP diff,扩展就经 `pi.events` 发 `ta:file-write`(`{ path, before? }`,见 ta-protocol 的 `TA_FILE_WRITE_EVENT`),让 ta-changes 在 Agent 动手前留下文件原样。具体做法:Agent 开始一次调用时,结束当前这条 assistant 消息(`toolUse`);pi “执行”`agent_tool` 时只是等 Agent 把这次调用做完;pi 下一次请求时接着流同一轮。有的 Agent(CodeBuddy Code)先流式发参数,等它说参数齐了(`_meta` 的 `toolArgumentsComplete`,或带着参数以 `pending` 再报一次这次调用)才显示;没有这类信号时,1.5 秒没有新消息或 Agent 开始说别的,也算齐了;同时开始的几次调用放进同一条消息,并行显示。`agent_tool` 只在当前模型是 Agent 时启用。
|
|
50
50
|
- **会话**:一个 pi 会话对一个 Agent 用一个 Agent 会话,它的 id 记在 pi 会话里(自定义条目 `ta-agents.session`),重新打开对话时用 `session/load` 接上。分叉,或在 pi 里回退到之前的消息(`/tree`),都会让下一轮新开一个 Agent 会话,并把到此为止的对话作为文字交给它;中途换到 Agent 时也一样(最多 3 万字)。
|
|
51
51
|
- **进程**:同一个 Agent 在同一个目录下的所有会话共用一个进程;按目录分开,是因为 CodeBuddy Code 在启动目录里执行命令,不看会话的目录。CodeBuddy Code 例外,每个对话单独一个进程(约 650 MB),对话关闭时停掉:它的一个进程只回答最后新建或加载的会话,其他会话发消息会一直等不到回复,或在那个会话忙时立刻空着结束。10 分钟没有任何一轮就停掉进程,下次用时再启动并加载会话。只在有请求等待回复时保持 pi 进程不退出,所以 `pi -p` 回答完就退出。
|
|
@@ -9,7 +9,10 @@ var Acp;
|
|
|
9
9
|
Acp.PROTOCOL_VERSION = 1;
|
|
10
10
|
Acp.AUTH_REQUIRED = -32000;
|
|
11
11
|
function text(block) {
|
|
12
|
-
if (
|
|
12
|
+
if (Array.isArray(block)) {
|
|
13
|
+
return block.map((item) => text(item)).join("");
|
|
14
|
+
}
|
|
15
|
+
if (!block?.type) {
|
|
13
16
|
return "";
|
|
14
17
|
}
|
|
15
18
|
switch (block.type) {
|
|
@@ -181,6 +184,7 @@ class AgentTurn {
|
|
|
181
184
|
unsolicited;
|
|
182
185
|
command;
|
|
183
186
|
onWrite;
|
|
187
|
+
static stepGraceMs = 1000;
|
|
184
188
|
tools = new Map;
|
|
185
189
|
usage = {};
|
|
186
190
|
ended = false;
|
|
@@ -188,6 +192,8 @@ class AgentTurn {
|
|
|
188
192
|
items = [];
|
|
189
193
|
listeners = new Set;
|
|
190
194
|
written = new Set;
|
|
195
|
+
stepped = new Set;
|
|
196
|
+
stepTimer;
|
|
191
197
|
constructor(unsolicited = false, command, onWrite) {
|
|
192
198
|
this.unsolicited = unsolicited;
|
|
193
199
|
this.command = command;
|
|
@@ -267,20 +273,35 @@ class AgentTurn {
|
|
|
267
273
|
}
|
|
268
274
|
open() {
|
|
269
275
|
for (const run of this.tools.values()) {
|
|
270
|
-
if (!run.done && !run.left) {
|
|
276
|
+
if (!run.done && !run.left && !this.stepped.has(run.id)) {
|
|
271
277
|
return true;
|
|
272
278
|
}
|
|
273
279
|
}
|
|
274
280
|
return false;
|
|
275
281
|
}
|
|
276
282
|
step() {
|
|
277
|
-
let changed = false;
|
|
278
283
|
for (const run of this.tools.values()) {
|
|
279
284
|
if (!run.done && !run.left) {
|
|
285
|
+
this.stepped.add(run.id);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (this.stepped.size && !this.stepTimer) {
|
|
289
|
+
this.stepTimer = setTimeout(() => this.leave(), AgentTurn.stepGraceMs);
|
|
290
|
+
this.stepTimer.unref?.();
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
leave() {
|
|
294
|
+
clearTimeout(this.stepTimer);
|
|
295
|
+
this.stepTimer = undefined;
|
|
296
|
+
let changed = false;
|
|
297
|
+
for (const id of this.stepped) {
|
|
298
|
+
const run = this.tools.get(id);
|
|
299
|
+
if (run && !run.done && !run.left) {
|
|
280
300
|
run.left = true;
|
|
281
301
|
changed = true;
|
|
282
302
|
}
|
|
283
303
|
}
|
|
304
|
+
this.stepped.clear();
|
|
284
305
|
if (changed) {
|
|
285
306
|
this.notify();
|
|
286
307
|
}
|
|
@@ -382,6 +403,7 @@ class AgentTurn {
|
|
|
382
403
|
if (this.ended) {
|
|
383
404
|
return;
|
|
384
405
|
}
|
|
406
|
+
this.leave();
|
|
385
407
|
this.ended = true;
|
|
386
408
|
this.items.push(item);
|
|
387
409
|
this.notify();
|
|
@@ -541,6 +563,9 @@ class AgentSession {
|
|
|
541
563
|
for (const id of ids) {
|
|
542
564
|
this.requests.add(id);
|
|
543
565
|
}
|
|
566
|
+
if (AgentSession.internal(meta)) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
544
569
|
switch (update.sessionUpdate) {
|
|
545
570
|
case "config_option_update":
|
|
546
571
|
this.options = update.configOptions ?? this.options;
|
|
@@ -751,6 +776,9 @@ class AgentSession {
|
|
|
751
776
|
const total = count(tokens?.prompt_tokens) || count(tokens?.input_tokens) + count(tokens?.cache_read_input_tokens) + count(tokens?.cache_creation_input_tokens);
|
|
752
777
|
return total > 0 ? total : undefined;
|
|
753
778
|
}
|
|
779
|
+
static internal(meta) {
|
|
780
|
+
return Object.entries(meta ?? {}).some(([key, value]) => /isCompactInternal$/.test(key) && value === true);
|
|
781
|
+
}
|
|
754
782
|
static own(meta) {
|
|
755
783
|
return !Object.keys(meta ?? {}).some((key) => /(parentToolCallId|memberEvent)$/.test(key));
|
|
756
784
|
}
|
|
@@ -1412,7 +1440,7 @@ ${kept}
|
|
|
1412
1440
|
const system = messages.filter((message) => message.role === "system").map((message) => [text2(message), ...sections(message)].join(`
|
|
1413
1441
|
`)).join(`
|
|
1414
1442
|
`);
|
|
1415
|
-
return [...system.matchAll(/^<(ta-[\w-]
|
|
1443
|
+
return [...system.matchAll(/^<(ta-[\w-]+|skills)>[\s\S]*?<\/\1>$/gm)].map((match) => match[0]);
|
|
1416
1444
|
}
|
|
1417
1445
|
AgentPrompt.notes = notes;
|
|
1418
1446
|
function sections(message) {
|
|
@@ -1432,6 +1460,7 @@ ${kept}
|
|
|
1432
1460
|
})(AgentPrompt ||= {});
|
|
1433
1461
|
|
|
1434
1462
|
// src/agent-tool.ts
|
|
1463
|
+
var INPUT_CHARS = 8000;
|
|
1435
1464
|
function relative(path, dirs) {
|
|
1436
1465
|
const dir = dirs.find((candidate) => path.startsWith(`${candidate}/`) || path.startsWith(`${candidate}\\`));
|
|
1437
1466
|
return dir ? path.slice(dir.length + 1) : path;
|
|
@@ -1443,30 +1472,58 @@ var AgentTool;
|
|
|
1443
1472
|
((AgentTool) => {
|
|
1444
1473
|
AgentTool.NAME = "agent_tool";
|
|
1445
1474
|
function args(run, cwd = []) {
|
|
1446
|
-
const
|
|
1475
|
+
const input2 = run.input;
|
|
1447
1476
|
const title = run.title || run.name || run.kind;
|
|
1448
1477
|
let target;
|
|
1449
1478
|
switch (run.kind) {
|
|
1450
1479
|
case "execute":
|
|
1451
|
-
target = str2(
|
|
1480
|
+
target = str2(input2.command) ?? title.replace(/^`|`$/g, "");
|
|
1452
1481
|
break;
|
|
1453
1482
|
case "read":
|
|
1454
1483
|
case "edit":
|
|
1455
1484
|
case "delete":
|
|
1456
1485
|
case "move":
|
|
1457
|
-
target = run.locations[0] ?? str2(
|
|
1486
|
+
target = run.locations[0] ?? str2(input2.file_path) ?? str2(input2.path) ?? str2(input2.filePath);
|
|
1458
1487
|
break;
|
|
1459
1488
|
case "search":
|
|
1460
|
-
target = str2(
|
|
1489
|
+
target = str2(input2.pattern) ?? str2(input2.query);
|
|
1461
1490
|
break;
|
|
1462
1491
|
case "fetch":
|
|
1463
|
-
target = str2(
|
|
1492
|
+
target = str2(input2.url) ?? str2(input2.query);
|
|
1464
1493
|
break;
|
|
1465
1494
|
}
|
|
1466
|
-
target ??= [
|
|
1495
|
+
target ??= [
|
|
1496
|
+
"description",
|
|
1497
|
+
"subject",
|
|
1498
|
+
"summary",
|
|
1499
|
+
"skill",
|
|
1500
|
+
"image_path",
|
|
1501
|
+
"file_path",
|
|
1502
|
+
"filePath",
|
|
1503
|
+
"path",
|
|
1504
|
+
"url",
|
|
1505
|
+
"query",
|
|
1506
|
+
"recipient",
|
|
1507
|
+
"prompt",
|
|
1508
|
+
"task_id",
|
|
1509
|
+
"id"
|
|
1510
|
+
].map((key) => str2(input2[key])).find(Boolean);
|
|
1467
1511
|
return { title, kind: run.kind, target: relative(target ?? title, cwd), ...run.name ? { tool: run.name } : {} };
|
|
1468
1512
|
}
|
|
1469
1513
|
AgentTool.args = args;
|
|
1514
|
+
function input(value) {
|
|
1515
|
+
const result = {};
|
|
1516
|
+
for (const [key, item] of Object.entries(value ?? {})) {
|
|
1517
|
+
if (typeof item === "string") {
|
|
1518
|
+
result[key] = item.length > INPUT_CHARS ? `${item.slice(0, INPUT_CHARS)}
|
|
1519
|
+
…` : item;
|
|
1520
|
+
} else if (typeof item === "number" || typeof item === "boolean") {
|
|
1521
|
+
result[key] = item;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
return result;
|
|
1525
|
+
}
|
|
1526
|
+
AgentTool.input = input;
|
|
1470
1527
|
function definition(calls) {
|
|
1471
1528
|
return {
|
|
1472
1529
|
name: AgentTool.NAME,
|
|
@@ -1496,7 +1553,14 @@ var AgentTool;
|
|
|
1496
1553
|
throw new Error("Cancelled");
|
|
1497
1554
|
}
|
|
1498
1555
|
calls.delete(toolCallId);
|
|
1499
|
-
const details = {
|
|
1556
|
+
const details = {
|
|
1557
|
+
agent: call.agent,
|
|
1558
|
+
kind: run?.kind,
|
|
1559
|
+
title: run?.title,
|
|
1560
|
+
status: run?.status,
|
|
1561
|
+
locations: run?.locations,
|
|
1562
|
+
input: AgentTool.input(run?.input)
|
|
1563
|
+
};
|
|
1500
1564
|
if (!run?.done) {
|
|
1501
1565
|
return { content: [{ type: "text", text: text(run?.left ? "dropped" : "unfinished", call.agent) }], details, isError: true };
|
|
1502
1566
|
}
|
|
@@ -148,8 +148,8 @@ export declare namespace Acp {
|
|
|
148
148
|
stopReason: StopReason;
|
|
149
149
|
_meta?: Record<string, unknown>;
|
|
150
150
|
}
|
|
151
|
-
/** The text of a block; other blocks are named, not shown. */
|
|
152
|
-
function text(block: ContentBlock | undefined): string;
|
|
151
|
+
/** The text of a block (or of blocks, as some agents send them); other blocks are named, not shown. */
|
|
152
|
+
function text(block: ContentBlock | ContentBlock[] | undefined): string;
|
|
153
153
|
/** The values of a select option, its groups flattened. */
|
|
154
154
|
function values(option: ConfigOption | undefined): SelectValue[];
|
|
155
155
|
/** The option of a category: the id is the key the protocol gives, the category what it means. */
|
|
@@ -10,11 +10,14 @@ var Acp;
|
|
|
10
10
|
Acp.PROTOCOL_VERSION = 1;
|
|
11
11
|
/** The error of `session/new` and `session/prompt` when the user has to sign in first. */
|
|
12
12
|
Acp.AUTH_REQUIRED = -32000;
|
|
13
|
-
/** The text of a block; other blocks are named, not shown. */
|
|
13
|
+
/** The text of a block (or of blocks, as some agents send them); other blocks are named, not shown. */
|
|
14
14
|
function text(block) {
|
|
15
15
|
var _a, _b;
|
|
16
16
|
var _c, _d, _e, _f, _g;
|
|
17
|
-
if (
|
|
17
|
+
if (Array.isArray(block)) {
|
|
18
|
+
return block.map(item => text(item)).join('');
|
|
19
|
+
}
|
|
20
|
+
if (!(block === null || block === void 0 ? void 0 : block.type)) {
|
|
18
21
|
return '';
|
|
19
22
|
}
|
|
20
23
|
switch (block.type) {
|
|
@@ -16,10 +16,12 @@ export declare namespace AgentPrompt {
|
|
|
16
16
|
*/
|
|
17
17
|
function transcript(messages: readonly Message[], pendingCount: number): string | undefined;
|
|
18
18
|
/**
|
|
19
|
-
* The notes
|
|
20
|
-
*
|
|
21
|
-
* shows a reply, what was asked before
|
|
22
|
-
*
|
|
19
|
+
* The notes of pi's system prompt (its system messages) an agent is given: an agent keeps its own system prompt
|
|
20
|
+
* and gets none of pi's, but the notes Ta's packages add, each in a tag of its own (`<ta-glance>…</ta-glance>`),
|
|
21
|
+
* say how Ta shows a reply, what was asked before; and pi's `<skills>` names the skills of Ta, its packages and
|
|
22
|
+
* the user, with the files the agent reads when a task matches one (the agent's own skill tool knows none of
|
|
23
|
+
* them). A tag only counts at the start of a line and its end at the end of one: the instructions of a project
|
|
24
|
+
* (AGENTS.md) may name `<ta-glance>` in a sentence, which is not a note.
|
|
23
25
|
*/
|
|
24
26
|
function notes(messages: readonly Message[]): string[];
|
|
25
27
|
function text(message: Message): string;
|
|
@@ -78,17 +78,19 @@ var AgentPrompt;
|
|
|
78
78
|
}
|
|
79
79
|
AgentPrompt.transcript = transcript;
|
|
80
80
|
/**
|
|
81
|
-
* The notes
|
|
82
|
-
*
|
|
83
|
-
* shows a reply, what was asked before
|
|
84
|
-
*
|
|
81
|
+
* The notes of pi's system prompt (its system messages) an agent is given: an agent keeps its own system prompt
|
|
82
|
+
* and gets none of pi's, but the notes Ta's packages add, each in a tag of its own (`<ta-glance>…</ta-glance>`),
|
|
83
|
+
* say how Ta shows a reply, what was asked before; and pi's `<skills>` names the skills of Ta, its packages and
|
|
84
|
+
* the user, with the files the agent reads when a task matches one (the agent's own skill tool knows none of
|
|
85
|
+
* them). A tag only counts at the start of a line and its end at the end of one: the instructions of a project
|
|
86
|
+
* (AGENTS.md) may name `<ta-glance>` in a sentence, which is not a note.
|
|
85
87
|
*/
|
|
86
88
|
function notes(messages) {
|
|
87
89
|
const system = messages
|
|
88
90
|
.filter(message => message.role === 'system')
|
|
89
91
|
.map(message => [text(message), ...sections(message)].join('\n'))
|
|
90
92
|
.join('\n');
|
|
91
|
-
return [...system.matchAll(/^<(ta-[\w-]
|
|
93
|
+
return [...system.matchAll(/^<(ta-[\w-]+|skills)>[\s\S]*?<\/\1>$/gm)].map(match => match[0]);
|
|
92
94
|
}
|
|
93
95
|
AgentPrompt.notes = notes;
|
|
94
96
|
/** The sections of a system message of pi, each `<name>…</name>`; a later one holds those that changed, `null` for one gone. */
|
|
@@ -122,6 +122,8 @@ export declare class AgentSession {
|
|
|
122
122
|
used?: number;
|
|
123
123
|
_meta?: Record<string, unknown>;
|
|
124
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;
|
|
125
127
|
/** Whether an update is of the session's own agent, not of a subagent (`…parentToolCallId`) or a teammate (`…memberEvent`). */
|
|
126
128
|
static own(meta: Record<string, unknown> | undefined): boolean;
|
|
127
129
|
static requestIds(meta: Record<string, unknown> | undefined): string[];
|
|
@@ -47,6 +47,9 @@ class AgentSession {
|
|
|
47
47
|
for (const id of ids) {
|
|
48
48
|
this.requests.add(id);
|
|
49
49
|
}
|
|
50
|
+
if (AgentSession.internal(meta)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
50
53
|
switch (update.sessionUpdate) {
|
|
51
54
|
case 'config_option_update':
|
|
52
55
|
this.options = (_f = update.configOptions) !== null && _f !== void 0 ? _f : this.options;
|
|
@@ -302,6 +305,10 @@ class AgentSession {
|
|
|
302
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);
|
|
303
306
|
return total > 0 ? total : undefined;
|
|
304
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
|
+
}
|
|
305
312
|
/** Whether an update is of the session's own agent, not of a subagent (`…parentToolCallId`) or a teammate (`…memberEvent`). */
|
|
306
313
|
static own(meta) {
|
|
307
314
|
return !Object.keys(meta !== null && meta !== void 0 ? meta : {}).some(key => /(parentToolCallId|memberEvent)$/.test(key));
|
|
@@ -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
|