@celljs/ta 4.12.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 +11 -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 +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/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 +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 +15 -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 +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 +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.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 +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 +289 -133
- 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/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 +30 -22
- 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 +393 -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 +171 -7
- package/dist/pi/packages/ta-rooms/host/index.mjs +1002 -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 +33 -6
- 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 +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/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 +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-BnqtcbpZ.js → abnfDiagram-S7VZAUFO-DJMZKA5d.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BzPq1Ioe.js → architecture-WOLXFQ4H-DwZ8A2Bp.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-BsquO3a7.js → architectureDiagram-YGSQEFNW-DPezb7-w.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BQNYOEP4.js → blockDiagram-APKKGZFW-SrFYBlSp.js} +1 -1
- package/dist/public/assets/{browser-DS711n7Y.js → browser-CljOqDFz.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-D6e79Ycq.js → c4Diagram-KJ2TOQU5-COCMkiJ6.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-B-sgaPoU.js → chunk-6MUBBAK2-CWRxZCiu.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-D8pJKIg2.js → chunk-AXFCVDMN-Dgn3RHlx.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-86TL-vCz.js → chunk-BG4553SI-BDnAChfb.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CfUVuGjc.js → chunk-DQASFODM-DSgprMfc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-Drm0FEYk.js → chunk-HFQBQIA3-ChtjyKjP.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BVFRADlC.js → chunk-KQLB2F66-B2o0ufJC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-DfyALEmP.js → chunk-KS47KZWR-C4qJvDaX.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-DtJVzk2c.js → chunk-LEVMRMFU-2jTGUstS.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DTy27PHQ.js → chunk-M57EVK23-CKAWW7fj.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-nSgn7jZg.js → chunk-OY52VR5R-B5TUKZAt.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-CkSxO_X6.js → chunk-QB3YPZ4I-CyQFTqwG.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Ck6iAjAL.js → chunk-R3KSYZAL-C6git_yh.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DQPHdSTh.js → chunk-STOXU5M4-AwEqcNnS.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-Bc2AbV2Y.js → chunk-TU62E6Q5-GKcRDmvw.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Cgpm0IXm.js → chunk-X4PVCEUW-CMG5EfZ9.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-CGE4eLpg.js → chunk-XXDRQBXY-BHd-dKtZ.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-4eQuDPEo.js → classDiagram-v2-L25IHNXF-HaRsBCG9.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-tDLCWq07.js → cose-bilkent-JH36ORCC-BPBTCfj3.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-ByqcZ8x9.js → cynefinDiagram-L36ESFBY-dAmWDtva.js} +1 -1
- package/dist/public/assets/{d3-selection-Bgn1374-.js → d3-selection-BhemR5ul.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-mCgr71mV.js → dagre-SPEB5RXH-D93g6hNI.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DpYSwpQ0.js → diagram-3B7GL73J-FJBKgG3X.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-DMozUQzi.js → diagram-DNEMPZML-BP22T976.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-Bk5Uf8PD.js → diagram-L3MUGCDN-DcrCJXRt.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DFt5cPVK.js → diagram-LA4NIPWU-DUgd3PHQ.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BkZZcKqK.js → diagram-MHCOC4E2-ejTInqzQ.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-HEY6kyyN.js → diagram-XPFHEONP-BLjkgho1.js} +1 -1
- package/dist/public/assets/{dist-Bj2CrKn7.js → dist-C9xqTt0E.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D4JvYyVb.js → ebnfDiagram-UZSYDL2S-CB1QQ4_T.js} +1 -1
- package/dist/public/assets/{editor.api-BpJFzYbl.js → editor.api-lz6I1oVk.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CT6qLJkF.js → elk-XV6XMXQE-CLBx1s2b.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BGng1goR.js → erDiagram-EYBAPDEH-Dsj6RYi5.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-Tt8O-Q1Z.js → eventmodeling-K75KTNOO-smOORsSG.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +1 -0
- package/dist/public/assets/{freemarker2-Dd5ksoRn.js → freemarker2-DrLPw7Mc.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Jl8VO_g2.js → ganttDiagram-23REXITY-BV9WK0rK.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Be4qXALb.js → gitGraphDiagram-STJD7YCW-CsSpSQ0T.js} +1 -1
- package/dist/public/assets/{handlebars-4xabgUi4.js → handlebars-CLx5-csF.js} +1 -1
- package/dist/public/assets/{html-Dk3kt2w_.js → html-C9LmGm46.js} +1 -1
- package/dist/public/assets/{index-Bx0c7eoh.js → index-CLWW0mVu.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-Coc0tdwb.js → infoDiagram-KBXO4MBG-wm5AnXDz.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-CE_1VQCg.js → ishikawaDiagram-M35NCXHK-BLUBDeS3.js} +1 -1
- package/dist/public/assets/{javascript-DKLGqy6v.js → javascript-C4S1eQb7.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-CrolRZ_7.js → journeyDiagram-OPLOXDXO-DXc7-I_g.js} +1 -1
- package/dist/public/assets/{jsonMode-Chcs19_y.js → jsonMode-lLJKR2M6.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-CjJj47De.js → kanban-definition-BZKZHSQY-D5Ra4L_5.js} +1 -1
- package/dist/public/assets/{liquid-jff3p-Ji.js → liquid-DRlm-XZd.js} +1 -1
- package/dist/public/assets/{mdx-DW4uRDfJ.js → mdx-CzIqeqPy.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-XhQj6FvH.js → mermaid-parser.core-BIPB1BgS.js} +3 -3
- package/dist/public/assets/{mermaid.core-OD4Atimg.js → mermaid.core-DxBlQ6oF.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DpGelVY7.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-BTVZP-tU.js → monaco-ChpJIYsY.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CqcBmPfB.js → pegDiagram-FD4XPPHP-C_GF7Fng.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CRir3beB.js → pieDiagram-J4AKIIQI-WlpNP-IM.js} +1 -1
- package/dist/public/assets/{python-BwW_0207.js → python-BJgFCfc8.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-DIY6gdcf.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-XWNOzunl.js → railroad-abnf-LNEFI6M7-DZZKUytl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js → railroad-ebnf-DWYD2UWJ-CS7KsJdb.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-BVB_IaIG.js → railroad-peg-JR7BVNR7-CiukTZVd.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-CudwT6q2.js → railroadDiagram-MRQ6NCDL-BS0R_H3-.js} +1 -1
- package/dist/public/assets/{razor-DrjCyQqB.js → razor-jcBIjr45.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CvRMeRqj.js → requirementDiagram-Y7LWUY3S-C0_T9jgl.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-adxYCJKr.js → sankeyDiagram-WGJFYUXA-DF15sUfS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-lCRsoLUp.js → sequenceDiagram-5NDRBG5M-7AkTLleX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-DNst1BLg.js → stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-S_omrdvA.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-_pMGrTE-.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-0-z_OYCU.js → typescript-B7zp7QPf.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-B2oJKi5Q.js → usecaseDiagram-AFA6YXN4-D6rDIgdU.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-inPs2Kkr.js → vennDiagram-NNMJR3RB-CncVDcMl.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DNhNHM7b.js → wardleyDiagram-S7YFUSEH-DKPAMfTE.js} +1 -1
- package/dist/public/assets/{xml-BXPxQzKF.js → xml-BJIgLD52.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DJc93dNT.js → xychartDiagram-GGNKY7IX-DmmXGebm.js} +1 -1
- package/dist/public/assets/{yaml-CGmD9Rya.js → yaml-Dxb2gmP5.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7727 -3847
- 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
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type InitiativeKind } from './initiative-protocol';
|
|
2
|
+
/** The kinds Ta proposes in conversations, with what each can do; a model may name others, which ask and are never done on their own. */
|
|
3
|
+
export declare const CHAT_KINDS: readonly InitiativeKind[];
|
|
4
|
+
//# sourceMappingURL=chat-kinds.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHAT_KINDS = void 0;
|
|
4
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
|
+
/** The kinds Ta proposes in conversations, with what each can do; a model may name others, which ask and are never done on their own. */
|
|
6
|
+
exports.CHAT_KINDS = [
|
|
7
|
+
{
|
|
8
|
+
id: 'chat.next-step',
|
|
9
|
+
owner: initiative_protocol_1.NAME,
|
|
10
|
+
title: { en: 'Take the next step you usually want', zh: '接着做你通常要的下一步' },
|
|
11
|
+
reversible: true,
|
|
12
|
+
level: 'ask',
|
|
13
|
+
},
|
|
14
|
+
{ id: 'git.commit', owner: initiative_protocol_1.NAME, title: { en: 'Commit the changes', zh: '提交改动' }, reversible: true, level: 'ask' },
|
|
15
|
+
{ id: 'git.push', owner: initiative_protocol_1.NAME, title: { en: 'Push to the remote', zh: '推送到远端' }, reversible: false, level: 'ask' },
|
|
16
|
+
];
|
|
17
|
+
//# sourceMappingURL=chat-kinds.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type InitiativeKind, type Level, type ProposalInput } from './initiative-protocol';
|
|
2
|
+
/** What the tool `propose` (or a block of it) is given for a kind of a conversation. */
|
|
3
|
+
export interface ChatProposalParams {
|
|
4
|
+
kind: string;
|
|
5
|
+
title: string;
|
|
6
|
+
why: string;
|
|
7
|
+
/** What Ta does once it is accepted, as the user would ask it. */
|
|
8
|
+
prompt?: string;
|
|
9
|
+
/** How it is undone, for a kind that can be. */
|
|
10
|
+
undo?: string;
|
|
11
|
+
/** The title of a kind of the model's own. */
|
|
12
|
+
kindTitle?: string;
|
|
13
|
+
/** In a block: already done in this turn, the kind being at act. */
|
|
14
|
+
done?: boolean;
|
|
15
|
+
evidence?: string[];
|
|
16
|
+
}
|
|
17
|
+
/** What Ta proposes in a conversation: the section that says how, the blocks of a model without the tool, the proposals. Pure functions. */
|
|
18
|
+
export declare namespace ChatProposals {
|
|
19
|
+
function section(kinds: readonly {
|
|
20
|
+
kind: InitiativeKind;
|
|
21
|
+
level: Level;
|
|
22
|
+
}[]): string;
|
|
23
|
+
/** The params of every ${BLOCK} block of an answer: JSON objects, or arrays of them. */
|
|
24
|
+
function blocks(text: string): ChatProposalParams[];
|
|
25
|
+
/** A proposal of a conversation: accepted, Ta is told it there. */
|
|
26
|
+
function build(params: ChatProposalParams, sessionFile: string, cwd?: string): ProposalInput;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=chat-proposals.d.ts.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatProposals = void 0;
|
|
4
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
|
+
/** What a level means to the model in a conversation. */
|
|
6
|
+
const MEANS = {
|
|
7
|
+
act: 'act (do it now, in this turn, then say in a line that you did it; the user may undo it)',
|
|
8
|
+
ask: 'ask (do not do it: a card asks the user after your turn; mention it in a few words at most)',
|
|
9
|
+
digest: 'digest (do not do it nor mention it: it goes to the daily brief)',
|
|
10
|
+
off: 'off (never propose it)',
|
|
11
|
+
};
|
|
12
|
+
/** What Ta proposes in a conversation: the section that says how, the blocks of a model without the tool, the proposals. Pure functions. */
|
|
13
|
+
var ChatProposals;
|
|
14
|
+
(function (ChatProposals) {
|
|
15
|
+
function section(kinds) {
|
|
16
|
+
return [
|
|
17
|
+
`<${initiative_protocol_1.CHAT_SECTION}>`,
|
|
18
|
+
`When the user would likely want more done than they asked (the next step they usually take, as what Ta learned of them says; committing finished work; a request they keep repeating made a scheduled task), propose it, rather than asking in words or doing it unasked: the tool ${initiative_protocol_1.PROPOSE_TOOL}({ kind, title, why, prompt, undo? }), or without that tool a fenced \`\`\`${initiative_protocol_1.BLOCK} block holding that JSON. How far each kind goes is the user's, and grows as they accept:`,
|
|
19
|
+
...kinds.map(({ kind, level }) => `- ${kind.id} (${kind.title.en}): ${MEANS[level]}`),
|
|
20
|
+
`- cron.add takes task (as schedule_task adds one) instead of prompt.`,
|
|
21
|
+
`- Another kind of your own: <area>.<verb> with kindTitle; it asks, and is never done on its own.`,
|
|
22
|
+
`title: what, one line in the language of the user; why: one line; prompt: what you will do once accepted, as the user would ask it; undo: how to undo it. In a block, add "done": true when you did it (a kind at act).`,
|
|
23
|
+
`At most ${initiative_protocol_1.TURN_PROPOSALS} a turn, the most useful. Never what the user just asked for (do it), nor when you are unsure it helps them.`,
|
|
24
|
+
`</${initiative_protocol_1.CHAT_SECTION}>`,
|
|
25
|
+
].join('\n');
|
|
26
|
+
}
|
|
27
|
+
ChatProposals.section = section;
|
|
28
|
+
/** The params of every ${BLOCK} block of an answer: JSON objects, or arrays of them. */
|
|
29
|
+
function blocks(text) {
|
|
30
|
+
const found = [];
|
|
31
|
+
const lines = text.split(/\r?\n/);
|
|
32
|
+
for (let index = 0; index < lines.length; index++) {
|
|
33
|
+
const open = /^\s*(`{3,})\s*([\w-]+)\s*$/.exec(lines[index]);
|
|
34
|
+
if (!open || open[2] !== initiative_protocol_1.BLOCK) {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
const close = new RegExp(`^\\s*${open[1]}\\s*$`);
|
|
38
|
+
const end = lines.findIndex((line, at) => at > index && close.test(line));
|
|
39
|
+
const body = lines.slice(index + 1, end < 0 ? lines.length : end).join('\n');
|
|
40
|
+
index = end < 0 ? lines.length : end;
|
|
41
|
+
try {
|
|
42
|
+
const value = JSON.parse(body);
|
|
43
|
+
for (const one of Array.isArray(value) ? value : [value]) {
|
|
44
|
+
if (one && typeof one === 'object' && typeof one.kind === 'string') {
|
|
45
|
+
found.push(one);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (_a) {
|
|
50
|
+
// Not JSON: nothing proposed.
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return found;
|
|
54
|
+
}
|
|
55
|
+
ChatProposals.blocks = blocks;
|
|
56
|
+
/** A proposal of a conversation: accepted, Ta is told it there. */
|
|
57
|
+
function build(params, sessionFile, cwd) {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
if (typeof params.prompt !== 'string' || !params.prompt.trim()) {
|
|
60
|
+
throw new Error(`${params.kind} needs prompt: what you will do once it is accepted.`);
|
|
61
|
+
}
|
|
62
|
+
const title = String((_a = params.title) !== null && _a !== void 0 ? _a : '').trim();
|
|
63
|
+
return {
|
|
64
|
+
kind: params.kind,
|
|
65
|
+
title,
|
|
66
|
+
why: String((_b = params.why) !== null && _b !== void 0 ? _b : ''),
|
|
67
|
+
...(cwd ? { cwd } : {}),
|
|
68
|
+
evidence: [sessionFile],
|
|
69
|
+
source: 'turn',
|
|
70
|
+
key: `${params.kind}:${sessionFile}:${title}`,
|
|
71
|
+
...(typeof params.kindTitle === 'string' && params.kindTitle.trim() ? { kindTitle: params.kindTitle } : {}),
|
|
72
|
+
action: { type: 'session', sessionFile, prompt: params.prompt.trim() },
|
|
73
|
+
...(typeof params.undo === 'string' && params.undo.trim() ? { undo: { type: 'session', sessionFile, prompt: params.undo.trim() } } : {}),
|
|
74
|
+
...(params.done === true ? { done: true } : {}),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
ChatProposals.build = build;
|
|
78
|
+
})(ChatProposals || (exports.ChatProposals = ChatProposals = {}));
|
|
79
|
+
//# sourceMappingURL=chat-proposals.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** Shows the conversation of a session file, opened on the server when it is not open; false when no conversation has it. */
|
|
3
|
+
export declare function openConversation(pi: WebExtensionAPI, file: string): Promise<boolean>;
|
|
4
|
+
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.openConversation = openConversation;
|
|
4
|
+
/** Shows the conversation of a session file, opened on the server when it is not open; false when no conversation has it. */
|
|
5
|
+
async function openConversation(pi, file) {
|
|
6
|
+
var _a;
|
|
7
|
+
// As the lists open it, at once; an older app has not this.
|
|
8
|
+
const opened = await ((_a = pi.openChat) === null || _a === void 0 ? void 0 : _a.call(pi, file));
|
|
9
|
+
if (opened !== undefined) {
|
|
10
|
+
return opened;
|
|
11
|
+
}
|
|
12
|
+
const open = (await pi.server.listSessions()).find(session => session.sessionFile === file);
|
|
13
|
+
if (open) {
|
|
14
|
+
await pi.switchSession(open.sessionId);
|
|
15
|
+
pi.ui.showView('');
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
const saved = (await pi.server.listSavedSessions()).find(session => session.sessionFile === file);
|
|
19
|
+
if (!saved) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
const sessionId = pi.server.openSession({ cwd: saved.cwd, sessionFile: file }).then(session => session.sessionId);
|
|
23
|
+
await pi.switchSession(sessionId, { title: saved.sessionName || saved.firstMessage, cwd: saved.cwd, sessionFile: file });
|
|
24
|
+
pi.ui.showView('');
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=conversation.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type CronTask, type InitiativeKind, type ProposalInput } from './initiative-protocol';
|
|
2
|
+
/** The kinds a review proposes, of the scheduled tasks. */
|
|
3
|
+
export declare const CRON_KINDS: readonly InitiativeKind[];
|
|
4
|
+
/** What the tool `propose` is given for a kind of the scheduled tasks. */
|
|
5
|
+
export interface CronProposalParams {
|
|
6
|
+
kind: string;
|
|
7
|
+
title: string;
|
|
8
|
+
why: string;
|
|
9
|
+
evidence?: string[];
|
|
10
|
+
/** cron.add: the task, as schedule_task adds it. */
|
|
11
|
+
task?: Record<string, unknown>;
|
|
12
|
+
/** cron.update, cron.disable: the task. */
|
|
13
|
+
id?: string;
|
|
14
|
+
/** cron.update: the fields to change. */
|
|
15
|
+
patch?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
/** Proposals of the scheduled tasks, with the calls of ta-cron's host that do and undo them. Pure functions. */
|
|
18
|
+
export declare namespace CronProposals {
|
|
19
|
+
function isCron(kind: string): boolean;
|
|
20
|
+
/** `current`: the task as it is, for cron.update to be undone. */
|
|
21
|
+
function build(params: CronProposalParams, current?: CronTask): ProposalInput;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=cron-proposals.d.ts.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronProposals = exports.CRON_KINDS = void 0;
|
|
4
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
|
+
/** The kinds a review proposes, of the scheduled tasks. */
|
|
6
|
+
exports.CRON_KINDS = [
|
|
7
|
+
{
|
|
8
|
+
id: 'cron.add',
|
|
9
|
+
owner: initiative_protocol_1.NAME,
|
|
10
|
+
title: { en: 'Schedule work you ask for again and again', zh: '把反复交代的事建成定时任务' },
|
|
11
|
+
reversible: true,
|
|
12
|
+
level: 'ask',
|
|
13
|
+
},
|
|
14
|
+
{ id: 'cron.update', owner: initiative_protocol_1.NAME, title: { en: 'Fix a scheduled task gone out of date', zh: '修改过时的定时任务' }, reversible: true, level: 'ask' },
|
|
15
|
+
{ id: 'cron.disable', owner: initiative_protocol_1.NAME, title: { en: 'Turn off a stale or failing task', zh: '停用过时或常失败的任务' }, reversible: true, level: 'act' },
|
|
16
|
+
];
|
|
17
|
+
/** The fields of a task the tool changes, and what each clears to. */
|
|
18
|
+
const FIELDS = ['name', 'prompt', 'schedule', 'cwd', 'model', 'thinking', 'notify', 'timeout', 'enabled'];
|
|
19
|
+
const CLEARED = { model: '', thinking: '', notify: '', timeout: '' };
|
|
20
|
+
/** Proposals of the scheduled tasks, with the calls of ta-cron's host that do and undo them. Pure functions. */
|
|
21
|
+
var CronProposals;
|
|
22
|
+
(function (CronProposals) {
|
|
23
|
+
function isCron(kind) {
|
|
24
|
+
return exports.CRON_KINDS.some(one => one.id === kind);
|
|
25
|
+
}
|
|
26
|
+
CronProposals.isCron = isCron;
|
|
27
|
+
/** `current`: the task as it is, for cron.update to be undone. */
|
|
28
|
+
function build(params, current) {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
const base = {
|
|
31
|
+
kind: params.kind,
|
|
32
|
+
title: params.title,
|
|
33
|
+
why: params.why,
|
|
34
|
+
...(Array.isArray(params.evidence) ? { evidence: params.evidence.filter(file => typeof file === 'string').slice(0, 10) } : {}),
|
|
35
|
+
};
|
|
36
|
+
switch (params.kind) {
|
|
37
|
+
case 'cron.add': {
|
|
38
|
+
const task = params.task;
|
|
39
|
+
if (!task || typeof task.prompt !== 'string' || !task.schedule) {
|
|
40
|
+
throw new Error('cron.add needs task with at least prompt and schedule, as schedule_task adds one.');
|
|
41
|
+
}
|
|
42
|
+
const cwd = typeof task.cwd === 'string' ? task.cwd : undefined;
|
|
43
|
+
return {
|
|
44
|
+
...base,
|
|
45
|
+
...(cwd ? { cwd } : {}),
|
|
46
|
+
key: `cron.add:${typeof task.name === 'string' ? task.name : task.prompt.slice(0, 80)}`,
|
|
47
|
+
action: { type: 'call', package: initiative_protocol_1.CRON, method: 'add', params: [task] },
|
|
48
|
+
undo: { package: initiative_protocol_1.CRON, method: 'remove', params: [initiative_protocol_1.RESULT_ID] },
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
case 'cron.disable': {
|
|
52
|
+
const id = taskId(params);
|
|
53
|
+
return {
|
|
54
|
+
...base,
|
|
55
|
+
key: `cron.disable:${id}`,
|
|
56
|
+
action: { type: 'call', package: initiative_protocol_1.CRON, method: 'setEnabled', params: [id, false] },
|
|
57
|
+
undo: { package: initiative_protocol_1.CRON, method: 'setEnabled', params: [id, true] },
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
case 'cron.update': {
|
|
61
|
+
const id = taskId(params);
|
|
62
|
+
const patch = params.patch && typeof params.patch === 'object' ? params.patch : undefined;
|
|
63
|
+
if (!patch || Object.keys(patch).length === 0) {
|
|
64
|
+
throw new Error('cron.update needs patch, the fields to change.');
|
|
65
|
+
}
|
|
66
|
+
if (!current) {
|
|
67
|
+
throw new Error(`No scheduled task ${id}.`);
|
|
68
|
+
}
|
|
69
|
+
const before = {};
|
|
70
|
+
for (const field of FIELDS) {
|
|
71
|
+
if (field in patch) {
|
|
72
|
+
before[field] = (_b = (_a = current[field]) !== null && _a !== void 0 ? _a : CLEARED[field]) !== null && _b !== void 0 ? _b : null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
...base,
|
|
77
|
+
key: `cron.update:${current.id}`,
|
|
78
|
+
action: { type: 'call', package: initiative_protocol_1.CRON, method: 'update', params: [current.id, patch] },
|
|
79
|
+
undo: { package: initiative_protocol_1.CRON, method: 'update', params: [current.id, before] },
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
default:
|
|
83
|
+
throw new Error(`A review proposes ${exports.CRON_KINDS.map(one => one.id).join(', ')}.`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
CronProposals.build = build;
|
|
87
|
+
function taskId(params) {
|
|
88
|
+
if (typeof params.id !== 'string' || !params.id) {
|
|
89
|
+
throw new Error(`${params.kind} needs id, the task.`);
|
|
90
|
+
}
|
|
91
|
+
return params.id;
|
|
92
|
+
}
|
|
93
|
+
})(CronProposals || (exports.CronProposals = CronProposals = {}));
|
|
94
|
+
//# sourceMappingURL=cron-proposals.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TaHostSessionEvent } from '@celljs/ta-protocol';
|
|
2
|
+
import { type InitiativeKind, type ProposalInput } from './initiative-protocol';
|
|
3
|
+
/** The kinds the host proposes from what happens in the sessions (TaExtensionHost.onSessionEvent). */
|
|
4
|
+
export declare const EVENT_KINDS: readonly InitiativeKind[];
|
|
5
|
+
/** What the turns of the sessions make the host propose. Pure functions. */
|
|
6
|
+
export declare namespace EventProposals {
|
|
7
|
+
function key(sessionFile: string): string;
|
|
8
|
+
/** A turn that failed in a conversation of the user (not one a package opened for a role of its own): to look into and try again. */
|
|
9
|
+
function failed(event: TaHostSessionEvent, zh: boolean): ProposalInput | undefined;
|
|
10
|
+
/** A turn that went well: what was proposed to fix the conversation waits no longer. */
|
|
11
|
+
function settled(event: TaHostSessionEvent): string | undefined;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=event-proposals.d.ts.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventProposals = exports.EVENT_KINDS = void 0;
|
|
4
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
|
+
/** The kinds the host proposes from what happens in the sessions (TaExtensionHost.onSessionEvent). */
|
|
6
|
+
exports.EVENT_KINDS = [
|
|
7
|
+
{
|
|
8
|
+
id: 'chat.fix-failure',
|
|
9
|
+
owner: initiative_protocol_1.NAME,
|
|
10
|
+
title: { en: 'Look into a turn that failed and try again', zh: '排查失败的这一轮并重试' },
|
|
11
|
+
// What it sends cannot be taken back: asked at most.
|
|
12
|
+
reversible: false,
|
|
13
|
+
level: 'ask',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
const ERROR_CHARS = 200;
|
|
17
|
+
/** An error as a line: the message of the JSON an API answered with (`400: {"message": …}`), not the JSON. */
|
|
18
|
+
function readable(error) {
|
|
19
|
+
var _a, _b, _c;
|
|
20
|
+
var _d;
|
|
21
|
+
const json = (_a = /\{[\s\S]*\}/.exec(error)) === null || _a === void 0 ? void 0 : _a[0];
|
|
22
|
+
let text = error;
|
|
23
|
+
if (json) {
|
|
24
|
+
try {
|
|
25
|
+
const parsed = JSON.parse(json);
|
|
26
|
+
const message = (_d = parsed.message) !== null && _d !== void 0 ? _d : (_b = parsed.error) === null || _b === void 0 ? void 0 : _b.message;
|
|
27
|
+
if (typeof message === 'string' && message.trim()) {
|
|
28
|
+
const status = (_c = /^(\d{3})\b/.exec(error.trim())) === null || _c === void 0 ? void 0 : _c[1];
|
|
29
|
+
text = status ? `${status}: ${message}` : message;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (_e) {
|
|
33
|
+
// Not JSON: as it is.
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return text.replace(/\s+/g, ' ').trim().slice(0, ERROR_CHARS);
|
|
37
|
+
}
|
|
38
|
+
/** What the turns of the sessions make the host propose. Pure functions. */
|
|
39
|
+
var EventProposals;
|
|
40
|
+
(function (EventProposals) {
|
|
41
|
+
function key(sessionFile) {
|
|
42
|
+
return `chat.fix-failure:${sessionFile}`;
|
|
43
|
+
}
|
|
44
|
+
EventProposals.key = key;
|
|
45
|
+
/** A turn that failed in a conversation of the user (not one a package opened for a role of its own): to look into and try again. */
|
|
46
|
+
function failed(event, zh) {
|
|
47
|
+
if (event.type !== 'turn_end' || !event.error || event.group || !event.sessionFile) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
const error = readable(event.error);
|
|
51
|
+
return {
|
|
52
|
+
kind: 'chat.fix-failure',
|
|
53
|
+
title: zh ? '排查失败的原因并重试' : 'Find out why it failed and try again',
|
|
54
|
+
why: error,
|
|
55
|
+
cwd: event.cwd,
|
|
56
|
+
evidence: [event.sessionFile],
|
|
57
|
+
key: key(event.sessionFile),
|
|
58
|
+
source: 'host',
|
|
59
|
+
urgency: 'today',
|
|
60
|
+
action: {
|
|
61
|
+
type: 'session',
|
|
62
|
+
sessionFile: event.sessionFile,
|
|
63
|
+
prompt: zh
|
|
64
|
+
? '上一轮失败了,查一下原因,能修的先修好,再把刚才要做的事做完。'
|
|
65
|
+
: 'The last turn failed. Find out why, fix what you can, and do what was asked again.',
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
EventProposals.failed = failed;
|
|
70
|
+
/** A turn that went well: what was proposed to fix the conversation waits no longer. */
|
|
71
|
+
function settled(event) {
|
|
72
|
+
return event.type === 'turn_end' && !event.error && !event.aborted && event.sessionFile ? key(event.sessionFile) : undefined;
|
|
73
|
+
}
|
|
74
|
+
EventProposals.settled = settled;
|
|
75
|
+
})(EventProposals || (exports.EventProposals = EventProposals = {}));
|
|
76
|
+
//# sourceMappingURL=event-proposals.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface Pi {
|
|
2
|
+
events: {
|
|
3
|
+
emit(event: string, data: unknown): void;
|
|
4
|
+
};
|
|
5
|
+
on(event: string, handler: (event: never, ctx: never) => unknown): unknown;
|
|
6
|
+
registerTool(tool: never): unknown;
|
|
7
|
+
getActiveTools(): string[];
|
|
8
|
+
setActiveTools(names: string[]): void;
|
|
9
|
+
sendMessage(message: {
|
|
10
|
+
customType: string;
|
|
11
|
+
content: string;
|
|
12
|
+
display: boolean;
|
|
13
|
+
details: unknown;
|
|
14
|
+
}, options?: {
|
|
15
|
+
triggerTurn?: boolean;
|
|
16
|
+
}): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The pi extension, in every session. In the conversation of the reviews: the material of a review (what the user
|
|
20
|
+
* asked since the last one, from the host of ta-recall; the tasks and their last runs, from the host of ta-cron; the
|
|
21
|
+
* levels of the kinds it proposes) as a section of the system prompt of its turn, and its tools: propose, by which it
|
|
22
|
+
* changes the tasks as far as the user lets it; evolve_pace while the user lets Ta choose how often it reviews;
|
|
23
|
+
* evolve_profile while Ta learns the user. In every other conversation, what Ta learned of the user, as the section
|
|
24
|
+
* ta-user; not where Ta speaks with others (a room). In every conversation but runs and those with others, what Ta may
|
|
25
|
+
* propose and how far each kind goes now (the section ta-initiative), the tool propose, or a ta-propose block for a model
|
|
26
|
+
* without it, and after a turn that proposed, a card of each proposal asked or done (out of the model's context).
|
|
27
|
+
*/
|
|
28
|
+
export default function activate(pi: Pi): void;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
|
|
5
|
+
const chat_kinds_1 = require("./chat-kinds");
|
|
6
|
+
const chat_proposals_1 = require("./chat-proposals");
|
|
7
|
+
const cron_proposals_1 = require("./cron-proposals");
|
|
8
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
9
|
+
const material_util_1 = require("./material-util");
|
|
10
|
+
const tool_1 = require("./tool");
|
|
11
|
+
/** Ends the system prompt of a run of ta-cron (its RUN_MARK): a run proposes nothing. */
|
|
12
|
+
const CRON_RUN_MARK = '<ta-cron-run>';
|
|
13
|
+
/**
|
|
14
|
+
* The pi extension, in every session. In the conversation of the reviews: the material of a review (what the user
|
|
15
|
+
* asked since the last one, from the host of ta-recall; the tasks and their last runs, from the host of ta-cron; the
|
|
16
|
+
* levels of the kinds it proposes) as a section of the system prompt of its turn, and its tools: propose, by which it
|
|
17
|
+
* changes the tasks as far as the user lets it; evolve_pace while the user lets Ta choose how often it reviews;
|
|
18
|
+
* evolve_profile while Ta learns the user. In every other conversation, what Ta learned of the user, as the section
|
|
19
|
+
* ta-user; not where Ta speaks with others (a room). In every conversation but runs and those with others, what Ta may
|
|
20
|
+
* propose and how far each kind goes now (the section ta-initiative), the tool propose, or a ta-propose block for a model
|
|
21
|
+
* without it, and after a turn that proposed, a card of each proposal asked or done (out of the model's context).
|
|
22
|
+
*/
|
|
23
|
+
function activate(pi) {
|
|
24
|
+
const reached = new Map();
|
|
25
|
+
const reach = (name) => {
|
|
26
|
+
let found = reached.get(name);
|
|
27
|
+
if (!found) {
|
|
28
|
+
found = ta_extension_host_1.TaHostUtil.reach(pi.events, name).then(answer => answer && { service: answer.service, agentDir: answer.host.agentDir });
|
|
29
|
+
reached.set(name, found);
|
|
30
|
+
}
|
|
31
|
+
return found;
|
|
32
|
+
};
|
|
33
|
+
const initiative = async () => {
|
|
34
|
+
var _a;
|
|
35
|
+
const service = (_a = (await reach(initiative_protocol_1.NAME))) === null || _a === void 0 ? void 0 : _a.service;
|
|
36
|
+
if (!service) {
|
|
37
|
+
throw new Error('This needs the Ta service.');
|
|
38
|
+
}
|
|
39
|
+
return service;
|
|
40
|
+
};
|
|
41
|
+
/** The proposals of this turn the card shows (asked, or done on its own), and their titles. */
|
|
42
|
+
let shown = [];
|
|
43
|
+
/** Proposals of this turn, at most TURN_PROPOSALS. */
|
|
44
|
+
let proposed = 0;
|
|
45
|
+
/** This turn may propose: not a run, not with others. */
|
|
46
|
+
let proposing = false;
|
|
47
|
+
/** This is the conversation of the reviews, whose turns propose more than TURN_PROPOSALS. */
|
|
48
|
+
let reviewing = false;
|
|
49
|
+
pi.on('session_start', () => {
|
|
50
|
+
void reach(initiative_protocol_1.NAME);
|
|
51
|
+
});
|
|
52
|
+
// The cards are for the user.
|
|
53
|
+
pi.on('context', (event) => {
|
|
54
|
+
const messages = event.messages.filter(message => !(message.role === 'custom' && message.customType === initiative_protocol_1.CARD_TYPE));
|
|
55
|
+
return messages.length === event.messages.length ? undefined : { messages };
|
|
56
|
+
});
|
|
57
|
+
pi.on('before_agent_start', async (event, ctx) => {
|
|
58
|
+
var _a, _b, _c;
|
|
59
|
+
var _d;
|
|
60
|
+
try {
|
|
61
|
+
const found = await reach(initiative_protocol_1.NAME);
|
|
62
|
+
const status = await ((_a = found === null || found === void 0 ? void 0 : found.service) === null || _a === void 0 ? void 0 : _a.reviewStatus());
|
|
63
|
+
const file = ctx.sessionManager.getSessionFile();
|
|
64
|
+
const here = !!file && (status === null || status === void 0 ? void 0 : status.file) === file;
|
|
65
|
+
const system = (_d = (_b = ctx.getSystemPrompt) === null || _b === void 0 ? void 0 : _b.call(ctx)) !== null && _d !== void 0 ? _d : '';
|
|
66
|
+
shown = [];
|
|
67
|
+
proposed = 0;
|
|
68
|
+
reviewing = here;
|
|
69
|
+
proposing = !!(found === null || found === void 0 ? void 0 : found.service) && !!file && !system.includes(CRON_RUN_MARK) && !system.includes(ta_extension_host_1.TA_WITH_OTHERS_MARK);
|
|
70
|
+
tool(tool_1.ProposeTool.NAME, here || proposing);
|
|
71
|
+
tool(tool_1.PaceTool.NAME, here && !!(status === null || status === void 0 ? void 0 : status.settings.auto));
|
|
72
|
+
tool(tool_1.ProfileTool.NAME, here && !!(status === null || status === void 0 ? void 0 : status.settings.learn));
|
|
73
|
+
const since = typeof event.prompt === 'string' ? material_util_1.MaterialUtil.since(event.prompt) : undefined;
|
|
74
|
+
if (!status || !(found === null || found === void 0 ? void 0 : found.service)) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
// What the user is like is theirs: not for a session that speaks with others.
|
|
78
|
+
const profile = status.settings.learn && since === undefined && status.profile && !((_c = ctx.getSystemPrompt) === null || _c === void 0 ? void 0 : _c.call(ctx).includes(ta_extension_host_1.TA_WITH_OTHERS_MARK));
|
|
79
|
+
if (profile) {
|
|
80
|
+
event.systemPromptOptions.sections = {
|
|
81
|
+
...event.systemPromptOptions.sections,
|
|
82
|
+
[initiative_protocol_1.PROFILE_SECTION]: material_util_1.MaterialUtil.profileSection(status.profile),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
const service = found.service;
|
|
86
|
+
if (since === undefined) {
|
|
87
|
+
if (proposing && !here) {
|
|
88
|
+
const kinds = await service.kinds();
|
|
89
|
+
const listed = [...chat_kinds_1.CHAT_KINDS.map(kind => kind.id), 'cron.add'].flatMap(id => kinds.filter(status => status.kind.id === id));
|
|
90
|
+
event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [initiative_protocol_1.CHAT_SECTION]: chat_proposals_1.ChatProposals.section(listed) };
|
|
91
|
+
}
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
const [requests, tasks, levels] = await Promise.all([
|
|
95
|
+
requestsSince(since, file),
|
|
96
|
+
cronTasks(),
|
|
97
|
+
Promise.all(cron_proposals_1.CRON_KINDS.map(async (kind) => ({ kind: kind.id, level: await service.level(kind.id) }))),
|
|
98
|
+
]);
|
|
99
|
+
const section = material_util_1.MaterialUtil.section({
|
|
100
|
+
since,
|
|
101
|
+
now: Date.now(),
|
|
102
|
+
requests,
|
|
103
|
+
tasks,
|
|
104
|
+
every: status.settings.every,
|
|
105
|
+
auto: status.settings.auto,
|
|
106
|
+
learn: status.settings.learn,
|
|
107
|
+
profile: status.profile,
|
|
108
|
+
levels,
|
|
109
|
+
agentDir: found.agentDir,
|
|
110
|
+
});
|
|
111
|
+
// A section of its own, which keeps what other extensions do to the prompt.
|
|
112
|
+
event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [initiative_protocol_1.SECTION]: section };
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
console.error('ta-initiative could not prepare the review:', error);
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
pi.registerTool({
|
|
121
|
+
...tool_1.ProposeTool.DEFINITION,
|
|
122
|
+
execute: async (_id, params, _signal, _update, ctx) => {
|
|
123
|
+
var _a;
|
|
124
|
+
const service = await initiative();
|
|
125
|
+
if (++proposed > initiative_protocol_1.TURN_PROPOSALS && !reviewing) {
|
|
126
|
+
throw new Error(`At most ${initiative_protocol_1.TURN_PROPOSALS} proposals a turn.`);
|
|
127
|
+
}
|
|
128
|
+
const input = await build(params !== null && params !== void 0 ? params : {}, ctx);
|
|
129
|
+
const offered = await service.offer({ ...input, inTurn: true });
|
|
130
|
+
keep(offered, input.title);
|
|
131
|
+
return { content: [{ type: 'text', text: tool_1.ProposeTool.result(offered, ((_a = input.action) === null || _a === void 0 ? void 0 : _a.type) === 'session') }], details: undefined };
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
// What a model without the tool proposed in blocks, and the card of what the turn proposed.
|
|
135
|
+
pi.on('agent_end', async (event, ctx) => {
|
|
136
|
+
var _a;
|
|
137
|
+
try {
|
|
138
|
+
const answer = [...((_a = event.messages) !== null && _a !== void 0 ? _a : [])].reverse().find(message => message.role === 'assistant');
|
|
139
|
+
if (proposing && answer && answer.stopReason !== 'aborted') {
|
|
140
|
+
const service = await initiative();
|
|
141
|
+
for (const params of chat_proposals_1.ChatProposals.blocks(textOf(answer.content)).slice(0, Math.max(0, initiative_protocol_1.TURN_PROPOSALS - proposed))) {
|
|
142
|
+
proposed++;
|
|
143
|
+
const input = await build(params, ctx);
|
|
144
|
+
keep(await service.offer(input), input.title);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
console.error('ta-initiative could not take what was proposed:', error);
|
|
150
|
+
}
|
|
151
|
+
if (shown.length > 0) {
|
|
152
|
+
const cards = shown;
|
|
153
|
+
shown = [];
|
|
154
|
+
pi.sendMessage({
|
|
155
|
+
customType: initiative_protocol_1.CARD_TYPE,
|
|
156
|
+
content: `Proposed: ${cards.map(card => card.title).join('; ')}`,
|
|
157
|
+
display: true,
|
|
158
|
+
details: { ids: cards.map(card => card.id) },
|
|
159
|
+
}, { triggerTurn: false });
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
/** A proposal of the params of the tool or a block: of the scheduled tasks, or of this conversation. */
|
|
163
|
+
async function build(params, ctx) {
|
|
164
|
+
var _a;
|
|
165
|
+
var _b;
|
|
166
|
+
const file = ctx.sessionManager.getSessionFile();
|
|
167
|
+
if (cron_proposals_1.CronProposals.isCron(params.kind)) {
|
|
168
|
+
const cron = (_a = (await reach(initiative_protocol_1.CRON))) === null || _a === void 0 ? void 0 : _a.service;
|
|
169
|
+
if (!cron) {
|
|
170
|
+
throw new Error('The scheduled tasks are turned off: propose nothing of them, and say so.');
|
|
171
|
+
}
|
|
172
|
+
const current = params.kind === 'cron.update' && typeof params.id === 'string' ? await cron.get(params.id) : undefined;
|
|
173
|
+
const input = cron_proposals_1.CronProposals.build(params, current);
|
|
174
|
+
const evidence = [...new Set([...((_b = input.evidence) !== null && _b !== void 0 ? _b : []), ...(file ? [file] : [])])];
|
|
175
|
+
return { ...input, ...(evidence.length ? { evidence } : {}), ...(params.done === true ? { done: true } : {}) };
|
|
176
|
+
}
|
|
177
|
+
if (!file) {
|
|
178
|
+
throw new Error('This conversation is not saved: propose nothing here.');
|
|
179
|
+
}
|
|
180
|
+
return chat_proposals_1.ChatProposals.build(params, file, ctx.cwd);
|
|
181
|
+
}
|
|
182
|
+
/** What the card of the turn shows: asked, or done on its own. */
|
|
183
|
+
function keep(offered, title) {
|
|
184
|
+
if (offered.id && (offered.delivered === 'ask' || offered.delivered === 'act')) {
|
|
185
|
+
shown.push({ id: offered.id, title });
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function textOf(content) {
|
|
189
|
+
if (typeof content === 'string') {
|
|
190
|
+
return content;
|
|
191
|
+
}
|
|
192
|
+
return Array.isArray(content)
|
|
193
|
+
? content.map(part => (part && typeof part === 'object' && part.type === 'text' && typeof part.text === 'string' ? part.text : '')).join('\n')
|
|
194
|
+
: '';
|
|
195
|
+
}
|
|
196
|
+
pi.registerTool({
|
|
197
|
+
...tool_1.PaceTool.DEFINITION,
|
|
198
|
+
execute: async (_id, params) => {
|
|
199
|
+
var _a;
|
|
200
|
+
const days = await (await initiative()).setPace(Number(params === null || params === void 0 ? void 0 : params.days), String((_a = params === null || params === void 0 ? void 0 : params.reason) !== null && _a !== void 0 ? _a : ''));
|
|
201
|
+
return { content: [{ type: 'text', text: tool_1.PaceTool.result(days) }], details: undefined };
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
pi.registerTool({
|
|
205
|
+
...tool_1.ProfileTool.DEFINITION,
|
|
206
|
+
execute: async (_id, params) => {
|
|
207
|
+
var _a;
|
|
208
|
+
const kept = await (await initiative()).setProfile(String((_a = params === null || params === void 0 ? void 0 : params.profile) !== null && _a !== void 0 ? _a : ''));
|
|
209
|
+
return { content: [{ type: 'text', text: tool_1.ProfileTool.result(kept) }], details: undefined };
|
|
210
|
+
},
|
|
211
|
+
});
|
|
212
|
+
/** A tool only where it means something: elsewhere it would be one more for the model to read. */
|
|
213
|
+
function tool(name, on) {
|
|
214
|
+
const active = pi.getActiveTools();
|
|
215
|
+
const has = active.includes(name);
|
|
216
|
+
if (on && !has) {
|
|
217
|
+
pi.setActiveTools([...active, name]);
|
|
218
|
+
}
|
|
219
|
+
else if (!on && has) {
|
|
220
|
+
pi.setActiveTools(active.filter(other => other !== name));
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
async function requestsSince(since, file) {
|
|
224
|
+
var _a;
|
|
225
|
+
const recall = (_a = (await reach(initiative_protocol_1.RECALL))) === null || _a === void 0 ? void 0 : _a.service;
|
|
226
|
+
return (recall === null || recall === void 0 ? void 0 : recall.requests) ? recall.requests({ since, ...(file ? { exclude: [file] } : {}) }) : undefined;
|
|
227
|
+
}
|
|
228
|
+
async function cronTasks() {
|
|
229
|
+
var _a;
|
|
230
|
+
const cron = (_a = (await reach(initiative_protocol_1.CRON))) === null || _a === void 0 ? void 0 : _a.service;
|
|
231
|
+
if (!(cron === null || cron === void 0 ? void 0 : cron.list)) {
|
|
232
|
+
return undefined;
|
|
233
|
+
}
|
|
234
|
+
const tasks = await cron.list();
|
|
235
|
+
return Promise.all(tasks.map(async (task) => ({ task, runs: await cron.runs(task.id, initiative_protocol_1.Limits.RUNS).catch(() => []) })));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=extension.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TaExtensionHost, TaPackageService } from '@celljs/ta-protocol';
|
|
2
|
+
/** The server side of the package (`pi.host`): the Ta service runs it once; it keeps the proposals and starts the reviews on time. */
|
|
3
|
+
export default function activate(host: TaExtensionHost): Promise<TaPackageService>;
|
|
4
|
+
//# sourceMappingURL=host.d.ts.map
|