@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
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/** The name of the package: of its data and its host. */
|
|
2
|
+
export declare const NAME = "@celljs/ta-initiative";
|
|
3
|
+
/** The package Evolve was before it became part of this one: its data is taken over once (InitiativeHost.start). */
|
|
4
|
+
export declare const FORMER_NAME = "@celljs/ta-evolve";
|
|
5
|
+
/** The packages it works with, through their hosts (their READMEs document the calls). */
|
|
6
|
+
export declare const CRON = "@celljs/ta-cron";
|
|
7
|
+
export declare const RECALL = "@celljs/ta-recall";
|
|
8
|
+
/**
|
|
9
|
+
* Starts the context of the message that asks for a review, with the time it looks back to: `[ta-evolve:review since=<ms>]`.
|
|
10
|
+
* The pi extension finds it there and gives the turn what the user asked and the tasks, in a section of the system prompt.
|
|
11
|
+
*/
|
|
12
|
+
export declare const REVIEW_MARK = "[ta-evolve:review";
|
|
13
|
+
/** The section of the system prompt with what a review reads. */
|
|
14
|
+
export declare const SECTION = "ta-evolve";
|
|
15
|
+
/** Ta's tool to change how often it reviews, in the conversation of the reviews, when the user let it (ReviewSettings.auto). */
|
|
16
|
+
export declare const PACE_TOOL = "evolve_pace";
|
|
17
|
+
/** Ta's tool to rewrite what it learned of the user, in the conversation of the reviews (ReviewSettings.learn). */
|
|
18
|
+
export declare const PROFILE_TOOL = "evolve_profile";
|
|
19
|
+
/** Ta's tool to propose what it would do for the user: done, asked or kept for the brief by the level of its kind. */
|
|
20
|
+
export declare const PROPOSE_TOOL = "propose";
|
|
21
|
+
/** The section of the system prompt of every conversation with what Ta learned of the user (ReviewSettings.learn). */
|
|
22
|
+
export declare const PROFILE_SECTION = "ta-user";
|
|
23
|
+
/** The section of the system prompt of every conversation with what Ta may propose there, and how far each kind goes now. */
|
|
24
|
+
export declare const CHAT_SECTION = "ta-initiative";
|
|
25
|
+
/** The custom message after a turn that proposed something: its cards, shown, never read by the model. */
|
|
26
|
+
export declare const CARD_TYPE = "ta-initiative";
|
|
27
|
+
/** The fenced block in which a model without Ta's tools (an external agent) proposes: JSON of the params of PROPOSE_TOOL. */
|
|
28
|
+
export declare const BLOCK = "ta-propose";
|
|
29
|
+
/** Proposals a turn makes at most. */
|
|
30
|
+
export declare const TURN_PROPOSALS = 2;
|
|
31
|
+
/**
|
|
32
|
+
* How far Ta goes on its own with a kind of thing: `off` says nothing; `digest` only puts it in the daily brief;
|
|
33
|
+
* `ask` asks with a card; `act` does it and says so, with Undo (only what can be undone).
|
|
34
|
+
*/
|
|
35
|
+
export type Level = 'off' | 'digest' | 'ask' | 'act';
|
|
36
|
+
export declare const LEVELS: readonly Level[];
|
|
37
|
+
/** How much Ta takes on itself, as the user set it: where a kind starts, and how far it may climb by itself. */
|
|
38
|
+
export type Mode = 'quiet' | 'balanced' | 'active';
|
|
39
|
+
export declare const MODES: readonly Mode[];
|
|
40
|
+
/** A kind of thing Ta may do on its own, as the package that offers it defines it. */
|
|
41
|
+
export interface InitiativeKind {
|
|
42
|
+
/** `<area>.<verb>`: `cron.add`, `recall.keep`. */
|
|
43
|
+
id: string;
|
|
44
|
+
/** The package that offers it. */
|
|
45
|
+
owner: string;
|
|
46
|
+
title: {
|
|
47
|
+
en: string;
|
|
48
|
+
zh: string;
|
|
49
|
+
};
|
|
50
|
+
/** Whether what it does can be undone: one that cannot never goes past `ask`. */
|
|
51
|
+
reversible: boolean;
|
|
52
|
+
/** Where it starts, in the mode `balanced`. */
|
|
53
|
+
level: Level;
|
|
54
|
+
}
|
|
55
|
+
/** A call of the host of a package, with JSON values: in `undo`, a param `"$result.id"` is the `id` of what the action returned. */
|
|
56
|
+
export interface HostCall {
|
|
57
|
+
package: string;
|
|
58
|
+
method: string;
|
|
59
|
+
params: unknown[];
|
|
60
|
+
}
|
|
61
|
+
/** In `HostCall.params` of an undo, the `id` of what the action returned. */
|
|
62
|
+
export declare const RESULT_ID = "$result.id";
|
|
63
|
+
/** Words Ta is told in a conversation (as the user's message, after its turn if it works), to do or undo what it proposed there. */
|
|
64
|
+
export interface SessionPrompt {
|
|
65
|
+
type: 'session';
|
|
66
|
+
sessionFile: string;
|
|
67
|
+
prompt: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* What accepting a proposal does: a call of a host, a prompt Ta runs in a new conversation, or words to the conversation
|
|
71
|
+
* that proposed it. At `act`, a proposal made in a turn by `session` is done by that turn itself (`inTurn`, `done`).
|
|
72
|
+
*/
|
|
73
|
+
export type ProposalAction = ({
|
|
74
|
+
type: 'call';
|
|
75
|
+
} & HostCall) | {
|
|
76
|
+
type: 'prompt';
|
|
77
|
+
prompt: string;
|
|
78
|
+
cwd?: string;
|
|
79
|
+
} | SessionPrompt;
|
|
80
|
+
/** How what Ta did is undone: a call of a host, or words to the conversation that did it. */
|
|
81
|
+
export type ProposalUndo = HostCall | SessionPrompt;
|
|
82
|
+
export type ProposalState = 'pending' | 'digest' | 'done' | 'declined' | 'undone' | 'expired' | 'failed';
|
|
83
|
+
/** Something Ta would do for the user, and what became of it. */
|
|
84
|
+
export interface Proposal {
|
|
85
|
+
/** `prop_` and 8 hexadecimal digits. */
|
|
86
|
+
id: string;
|
|
87
|
+
kind: string;
|
|
88
|
+
/** What it does, a line. */
|
|
89
|
+
title: string;
|
|
90
|
+
/** Why, a line. */
|
|
91
|
+
why: string;
|
|
92
|
+
/** Session files of the conversations it comes from. */
|
|
93
|
+
evidence?: string[];
|
|
94
|
+
cwd?: string;
|
|
95
|
+
/** The same key while one is waiting: offered again, the first stays. */
|
|
96
|
+
key?: string;
|
|
97
|
+
action?: ProposalAction;
|
|
98
|
+
undo?: ProposalUndo;
|
|
99
|
+
/** The title of its kind, for one no package defined (a model named it). */
|
|
100
|
+
kindTitle?: string;
|
|
101
|
+
/** The level it was offered at. */
|
|
102
|
+
level: Level;
|
|
103
|
+
state: ProposalState;
|
|
104
|
+
/** Done by Ta on its own, at `act`, not by the user's accepting. */
|
|
105
|
+
auto?: boolean;
|
|
106
|
+
/** `Date.now()` times. */
|
|
107
|
+
at: number;
|
|
108
|
+
decidedAt?: number;
|
|
109
|
+
/** Undefined: Limits.EXPIRE_DAYS after `at`. */
|
|
110
|
+
expiresAt?: number;
|
|
111
|
+
/** What went wrong, for `failed`. */
|
|
112
|
+
error?: string;
|
|
113
|
+
/** The conversation a prompt ran in. */
|
|
114
|
+
sessionFile?: string;
|
|
115
|
+
/** `now`: worth telling the user at once, within the budget of the day; default `today`: Suggestions and the brief. */
|
|
116
|
+
urgency?: Urgency;
|
|
117
|
+
/** `turn`: a turn of a conversation proposed it (its card shows it there); `host`: a package, on its own. */
|
|
118
|
+
source?: 'turn' | 'host';
|
|
119
|
+
/** `Date.now()` time the user was told of it at once (urgency `now`): the pages show it as a notice. */
|
|
120
|
+
notifiedAt?: number;
|
|
121
|
+
}
|
|
122
|
+
export type Urgency = 'now' | 'today' | 'whenever';
|
|
123
|
+
/** The hours Ta tells the user of nothing at once (urgency `now` waits for Suggestions and the brief). */
|
|
124
|
+
export interface QuietHours {
|
|
125
|
+
enabled: boolean;
|
|
126
|
+
/** `HH:MM`, local time; past midnight when `end` is earlier. */
|
|
127
|
+
start: string;
|
|
128
|
+
end: string;
|
|
129
|
+
}
|
|
130
|
+
/** What a package offers: the rest is the book's. */
|
|
131
|
+
export type ProposalInput = Pick<Proposal, 'kind' | 'title' | 'why'> & Partial<Pick<Proposal, 'evidence' | 'cwd' | 'key' | 'action' | 'undo' | 'expiresAt' | 'kindTitle' | 'urgency' | 'source'>> & {
|
|
132
|
+
/** Offered by a turn that does it itself at `act` (the tool, which answers before the turn goes on). */
|
|
133
|
+
inTurn?: boolean;
|
|
134
|
+
/** Already done by the turn that offers it (a block written after doing it). */
|
|
135
|
+
done?: boolean;
|
|
136
|
+
};
|
|
137
|
+
/** Where a proposal went. `dropped`: the kind is off. */
|
|
138
|
+
export interface Offered {
|
|
139
|
+
id?: string;
|
|
140
|
+
delivered: Level | 'dropped';
|
|
141
|
+
state?: ProposalState;
|
|
142
|
+
error?: string;
|
|
143
|
+
}
|
|
144
|
+
/** Why a kind is at its level. */
|
|
145
|
+
export interface LevelReason {
|
|
146
|
+
/** `start`: where its mode starts it; `up`/`down`: moved by what the user did; `locked`: the user chose it. */
|
|
147
|
+
cause: 'start' | 'up' | 'down' | 'locked';
|
|
148
|
+
at?: number;
|
|
149
|
+
}
|
|
150
|
+
/** A kind as the settings show it. */
|
|
151
|
+
export interface KindStatus {
|
|
152
|
+
kind: InitiativeKind;
|
|
153
|
+
level: Level;
|
|
154
|
+
/** The level the user chose; none: it moves by itself. */
|
|
155
|
+
locked?: Level;
|
|
156
|
+
reason: LevelReason;
|
|
157
|
+
/** Proposals of it not yet decided. */
|
|
158
|
+
waiting: number;
|
|
159
|
+
}
|
|
160
|
+
/** What the user decides of a proposal. `always` accepts and does the like on its own; `never` declines and offers no more of the like. */
|
|
161
|
+
export type Decision = 'accept' | 'decline' | 'always' | 'never';
|
|
162
|
+
/** When Ta reviews: every so many days at a time of the day, whether it may change how often itself, and whether it learns the user. */
|
|
163
|
+
export interface ReviewSettings {
|
|
164
|
+
enabled: boolean;
|
|
165
|
+
/** Days between two reviews, Limits.MIN_DAYS to Limits.MAX_DAYS. */
|
|
166
|
+
every: number;
|
|
167
|
+
/** `HH:MM`, local time. */
|
|
168
|
+
time: string;
|
|
169
|
+
/** Ta sets `every` after each review (PACE_TOOL), by how much it found. */
|
|
170
|
+
auto: boolean;
|
|
171
|
+
/** Ta keeps what it learns of the user (PROFILE_TOOL) and every conversation reads it (PROFILE_SECTION). */
|
|
172
|
+
learn: boolean;
|
|
173
|
+
}
|
|
174
|
+
/** What the settings page shows of the reviews. */
|
|
175
|
+
export interface ReviewStatus {
|
|
176
|
+
settings: ReviewSettings;
|
|
177
|
+
/** `Date.now()` time of the last review. */
|
|
178
|
+
last?: number;
|
|
179
|
+
/** Of the next one; none while turned off. */
|
|
180
|
+
next?: number;
|
|
181
|
+
/** The session file of the conversation of the reviews. */
|
|
182
|
+
file?: string;
|
|
183
|
+
/** Why Ta chose how often it reviews, the last time it did. */
|
|
184
|
+
note?: string;
|
|
185
|
+
/** What Ta learned of the user: Markdown, short; the user may edit it. */
|
|
186
|
+
profile?: string;
|
|
187
|
+
}
|
|
188
|
+
/** A task of ta-cron as its host answers: only what a review reads. */
|
|
189
|
+
export interface CronTask {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
prompt: string;
|
|
193
|
+
schedule: {
|
|
194
|
+
kind: string;
|
|
195
|
+
at?: string;
|
|
196
|
+
every?: string;
|
|
197
|
+
expression?: string;
|
|
198
|
+
};
|
|
199
|
+
cwd: string;
|
|
200
|
+
enabled: boolean;
|
|
201
|
+
timeout?: string;
|
|
202
|
+
nextRunAt?: string;
|
|
203
|
+
lastRunAt?: string;
|
|
204
|
+
lastStatus?: string;
|
|
205
|
+
runCount: number;
|
|
206
|
+
failCount: number;
|
|
207
|
+
createdAt: string;
|
|
208
|
+
}
|
|
209
|
+
/** A run of a task of ta-cron: only what a review reads. */
|
|
210
|
+
export interface CronRun {
|
|
211
|
+
status: string;
|
|
212
|
+
trigger?: string;
|
|
213
|
+
startedAt: string;
|
|
214
|
+
endedAt?: string;
|
|
215
|
+
summary?: string;
|
|
216
|
+
error?: string;
|
|
217
|
+
reason?: string;
|
|
218
|
+
}
|
|
219
|
+
/** What the user asked in a conversation, as the host of ta-recall answers `requests`. */
|
|
220
|
+
export interface AskedConversation {
|
|
221
|
+
file: string;
|
|
222
|
+
cwd: string;
|
|
223
|
+
title: string;
|
|
224
|
+
updatedAt: number;
|
|
225
|
+
group?: string;
|
|
226
|
+
asks: {
|
|
227
|
+
at: number;
|
|
228
|
+
text: string;
|
|
229
|
+
}[];
|
|
230
|
+
}
|
|
231
|
+
export declare namespace Keys {
|
|
232
|
+
/** ReviewSettings. */
|
|
233
|
+
const SETTINGS = "settings";
|
|
234
|
+
/** The session file of the conversation of the reviews. */
|
|
235
|
+
const FILE = "file";
|
|
236
|
+
/** `Date.now()` time of the last review, or of the first start: the first review comes a period after. */
|
|
237
|
+
const LAST = "last";
|
|
238
|
+
/** Why Ta chose how often it reviews. */
|
|
239
|
+
const NOTE = "note";
|
|
240
|
+
/** string: what Ta learned of the user. */
|
|
241
|
+
const PROFILE = "profile";
|
|
242
|
+
/** Mode. */
|
|
243
|
+
const MODE = "mode";
|
|
244
|
+
/** Record<kind, Level>: the levels the user chose. */
|
|
245
|
+
const LOCKS = "locks";
|
|
246
|
+
/** Proposal[], newest last. */
|
|
247
|
+
const PROPOSALS = "proposals";
|
|
248
|
+
/** `Date.now()` time the user last looked at the proposals: the double's home shows a dot for newer ones. */
|
|
249
|
+
const SEEN = "seen";
|
|
250
|
+
/** QuietHours. */
|
|
251
|
+
const QUIET = "quiet";
|
|
252
|
+
/** true once the data of FORMER_NAME was taken over. */
|
|
253
|
+
const MIGRATED = "migrated";
|
|
254
|
+
}
|
|
255
|
+
export declare namespace Limits {
|
|
256
|
+
const MIN_DAYS = 1;
|
|
257
|
+
const MAX_DAYS = 30;
|
|
258
|
+
/** A review looks back at least so many days, at most MAX_DAYS. */
|
|
259
|
+
const LOOK_BACK_DAYS = 7;
|
|
260
|
+
/** The characters of what a review reads, at most: the requests are cut there. */
|
|
261
|
+
const MATERIAL_CHARS = 48000;
|
|
262
|
+
/** The runs of each task a review reads. */
|
|
263
|
+
const RUNS = 5;
|
|
264
|
+
const PROMPT_CHARS = 400;
|
|
265
|
+
const SUMMARY_CHARS = 240;
|
|
266
|
+
/** Tasks a review adds at most. */
|
|
267
|
+
const NEW_TASKS = 3;
|
|
268
|
+
/** What Ta learned of the user, at most: every conversation reads it. */
|
|
269
|
+
const PROFILE_CHARS = 3000;
|
|
270
|
+
/** Proposals kept, newest last. */
|
|
271
|
+
const PROPOSALS_KEPT = 200;
|
|
272
|
+
/** The outcomes of a kind its level is read from. */
|
|
273
|
+
const OUTCOMES = 20;
|
|
274
|
+
/** Accepted in a row: one level up. */
|
|
275
|
+
const UP_AFTER = 3;
|
|
276
|
+
/** Declined in a row: one level down. */
|
|
277
|
+
const DOWN_AFTER = 2;
|
|
278
|
+
/** A proposal not decided in so many days expires. */
|
|
279
|
+
const EXPIRE_DAYS = 14;
|
|
280
|
+
/** What Ta did on its own can be undone for so many days. */
|
|
281
|
+
const UNDO_DAYS = 7;
|
|
282
|
+
/** The times a day Ta tells the user of a proposal at once, by mode (docs/design/ta-initiative.md 6.3). */
|
|
283
|
+
const BUDGET: Record<Mode, number>;
|
|
284
|
+
/** A page shows the notice of a proposal told so long ago at most: one opened later finds it in Suggestions. */
|
|
285
|
+
const NOTICE_MS: number;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* The host of the package in the Ta service (`pi.host`). Other packages call it with `callPackageHost`: they define
|
|
289
|
+
* their kinds, ask a level, offer proposals and say what the user decided in their own cards. Its web extension calls
|
|
290
|
+
* it with `callHost`.
|
|
291
|
+
*/
|
|
292
|
+
export interface InitiativeService {
|
|
293
|
+
/** A kind of the caller: called when its host starts, again for a change. */
|
|
294
|
+
defineKind(kind: InitiativeKind): Promise<void>;
|
|
295
|
+
/** Every kind defined or offered, with its level. */
|
|
296
|
+
kinds(): Promise<KindStatus[]>;
|
|
297
|
+
/** Where a kind is now: `off` before asking costs anything. */
|
|
298
|
+
level(kind: string): Promise<Level>;
|
|
299
|
+
/** Offers a proposal: done at once at `act` (its action run), a card at `ask`, a line of the brief at `digest`, nothing at `off`. */
|
|
300
|
+
offer(input: ProposalInput): Promise<Offered>;
|
|
301
|
+
/** What the user decided in a card of the caller's own (a skill they saved): counts for the level of its kind. */
|
|
302
|
+
record(input: ProposalInput & {
|
|
303
|
+
outcome: 'accepted' | 'declined';
|
|
304
|
+
}): Promise<void>;
|
|
305
|
+
/** The user decided a proposal waiting (`pending` or `digest`): accepting runs its action. */
|
|
306
|
+
decide(id: string, decision: Decision): Promise<Proposal>;
|
|
307
|
+
/** Undoes what Ta did on its own, within Limits.UNDO_DAYS. */
|
|
308
|
+
undo(id: string): Promise<Proposal>;
|
|
309
|
+
/** The user chose the level of a kind, or gave it back to Ta (null). */
|
|
310
|
+
setLevel(kind: string, level: Level | null): Promise<KindStatus>;
|
|
311
|
+
setMode(mode: Mode): Promise<void>;
|
|
312
|
+
reviewStatus(): Promise<ReviewStatus>;
|
|
313
|
+
/** Starts a review now, whatever the time; resolves with the session file of the conversation of the reviews. */
|
|
314
|
+
reviewNow(): Promise<string | undefined>;
|
|
315
|
+
/** Ta changes how often it reviews (PACE_TOOL): only while ReviewSettings.auto; resolves with the days set. */
|
|
316
|
+
setPace(days: number, reason: string): Promise<number>;
|
|
317
|
+
/** What Ta learned of the user, written whole, by Ta (PROFILE_TOOL) or by the user in the settings; cut to Limits.PROFILE_CHARS. */
|
|
318
|
+
setProfile(profile: string): Promise<string>;
|
|
319
|
+
}
|
|
320
|
+
//# sourceMappingURL=initiative-protocol.d.ts.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Limits = exports.Keys = exports.RESULT_ID = exports.MODES = exports.LEVELS = exports.TURN_PROPOSALS = exports.BLOCK = exports.CARD_TYPE = exports.CHAT_SECTION = exports.PROFILE_SECTION = exports.PROPOSE_TOOL = exports.PROFILE_TOOL = exports.PACE_TOOL = exports.SECTION = exports.REVIEW_MARK = exports.RECALL = exports.CRON = exports.FORMER_NAME = exports.NAME = void 0;
|
|
4
|
+
/** The name of the package: of its data and its host. */
|
|
5
|
+
exports.NAME = '@celljs/ta-initiative';
|
|
6
|
+
/** The package Evolve was before it became part of this one: its data is taken over once (InitiativeHost.start). */
|
|
7
|
+
exports.FORMER_NAME = '@celljs/ta-evolve';
|
|
8
|
+
/** The packages it works with, through their hosts (their READMEs document the calls). */
|
|
9
|
+
exports.CRON = '@celljs/ta-cron';
|
|
10
|
+
exports.RECALL = '@celljs/ta-recall';
|
|
11
|
+
/**
|
|
12
|
+
* Starts the context of the message that asks for a review, with the time it looks back to: `[ta-evolve:review since=<ms>]`.
|
|
13
|
+
* The pi extension finds it there and gives the turn what the user asked and the tasks, in a section of the system prompt.
|
|
14
|
+
*/
|
|
15
|
+
exports.REVIEW_MARK = '[ta-evolve:review';
|
|
16
|
+
/** The section of the system prompt with what a review reads. */
|
|
17
|
+
exports.SECTION = 'ta-evolve';
|
|
18
|
+
/** Ta's tool to change how often it reviews, in the conversation of the reviews, when the user let it (ReviewSettings.auto). */
|
|
19
|
+
exports.PACE_TOOL = 'evolve_pace';
|
|
20
|
+
/** Ta's tool to rewrite what it learned of the user, in the conversation of the reviews (ReviewSettings.learn). */
|
|
21
|
+
exports.PROFILE_TOOL = 'evolve_profile';
|
|
22
|
+
/** Ta's tool to propose what it would do for the user: done, asked or kept for the brief by the level of its kind. */
|
|
23
|
+
exports.PROPOSE_TOOL = 'propose';
|
|
24
|
+
/** The section of the system prompt of every conversation with what Ta learned of the user (ReviewSettings.learn). */
|
|
25
|
+
exports.PROFILE_SECTION = 'ta-user';
|
|
26
|
+
/** The section of the system prompt of every conversation with what Ta may propose there, and how far each kind goes now. */
|
|
27
|
+
exports.CHAT_SECTION = 'ta-initiative';
|
|
28
|
+
/** The custom message after a turn that proposed something: its cards, shown, never read by the model. */
|
|
29
|
+
exports.CARD_TYPE = 'ta-initiative';
|
|
30
|
+
/** The fenced block in which a model without Ta's tools (an external agent) proposes: JSON of the params of PROPOSE_TOOL. */
|
|
31
|
+
exports.BLOCK = 'ta-propose';
|
|
32
|
+
/** Proposals a turn makes at most. */
|
|
33
|
+
exports.TURN_PROPOSALS = 2;
|
|
34
|
+
exports.LEVELS = ['off', 'digest', 'ask', 'act'];
|
|
35
|
+
exports.MODES = ['quiet', 'balanced', 'active'];
|
|
36
|
+
/** In `HostCall.params` of an undo, the `id` of what the action returned. */
|
|
37
|
+
exports.RESULT_ID = '$result.id';
|
|
38
|
+
var Keys;
|
|
39
|
+
(function (Keys) {
|
|
40
|
+
/** ReviewSettings. */
|
|
41
|
+
Keys.SETTINGS = 'settings';
|
|
42
|
+
/** The session file of the conversation of the reviews. */
|
|
43
|
+
Keys.FILE = 'file';
|
|
44
|
+
/** `Date.now()` time of the last review, or of the first start: the first review comes a period after. */
|
|
45
|
+
Keys.LAST = 'last';
|
|
46
|
+
/** Why Ta chose how often it reviews. */
|
|
47
|
+
Keys.NOTE = 'note';
|
|
48
|
+
/** string: what Ta learned of the user. */
|
|
49
|
+
Keys.PROFILE = 'profile';
|
|
50
|
+
/** Mode. */
|
|
51
|
+
Keys.MODE = 'mode';
|
|
52
|
+
/** Record<kind, Level>: the levels the user chose. */
|
|
53
|
+
Keys.LOCKS = 'locks';
|
|
54
|
+
/** Proposal[], newest last. */
|
|
55
|
+
Keys.PROPOSALS = 'proposals';
|
|
56
|
+
/** `Date.now()` time the user last looked at the proposals: the double's home shows a dot for newer ones. */
|
|
57
|
+
Keys.SEEN = 'seen';
|
|
58
|
+
/** QuietHours. */
|
|
59
|
+
Keys.QUIET = 'quiet';
|
|
60
|
+
/** true once the data of FORMER_NAME was taken over. */
|
|
61
|
+
Keys.MIGRATED = 'migrated';
|
|
62
|
+
})(Keys || (exports.Keys = Keys = {}));
|
|
63
|
+
var Limits;
|
|
64
|
+
(function (Limits) {
|
|
65
|
+
Limits.MIN_DAYS = 1;
|
|
66
|
+
Limits.MAX_DAYS = 30;
|
|
67
|
+
/** A review looks back at least so many days, at most MAX_DAYS. */
|
|
68
|
+
Limits.LOOK_BACK_DAYS = 7;
|
|
69
|
+
/** The characters of what a review reads, at most: the requests are cut there. */
|
|
70
|
+
Limits.MATERIAL_CHARS = 48000;
|
|
71
|
+
/** The runs of each task a review reads. */
|
|
72
|
+
Limits.RUNS = 5;
|
|
73
|
+
Limits.PROMPT_CHARS = 400;
|
|
74
|
+
Limits.SUMMARY_CHARS = 240;
|
|
75
|
+
/** Tasks a review adds at most. */
|
|
76
|
+
Limits.NEW_TASKS = 3;
|
|
77
|
+
/** What Ta learned of the user, at most: every conversation reads it. */
|
|
78
|
+
Limits.PROFILE_CHARS = 3000;
|
|
79
|
+
/** Proposals kept, newest last. */
|
|
80
|
+
Limits.PROPOSALS_KEPT = 200;
|
|
81
|
+
/** The outcomes of a kind its level is read from. */
|
|
82
|
+
Limits.OUTCOMES = 20;
|
|
83
|
+
/** Accepted in a row: one level up. */
|
|
84
|
+
Limits.UP_AFTER = 3;
|
|
85
|
+
/** Declined in a row: one level down. */
|
|
86
|
+
Limits.DOWN_AFTER = 2;
|
|
87
|
+
/** A proposal not decided in so many days expires. */
|
|
88
|
+
Limits.EXPIRE_DAYS = 14;
|
|
89
|
+
/** What Ta did on its own can be undone for so many days. */
|
|
90
|
+
Limits.UNDO_DAYS = 7;
|
|
91
|
+
/** The times a day Ta tells the user of a proposal at once, by mode (docs/design/ta-initiative.md 6.3). */
|
|
92
|
+
Limits.BUDGET = { quiet: 1, balanced: 3, active: Number.POSITIVE_INFINITY };
|
|
93
|
+
/** A page shows the notice of a proposal told so long ago at most: one opened later finds it in Suggestions. */
|
|
94
|
+
Limits.NOTICE_MS = 2 * 60000;
|
|
95
|
+
})(Limits || (exports.Limits = Limits = {}));
|
|
96
|
+
//# sourceMappingURL=initiative-protocol.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { TaExtensionHost, TaHostSessionEvent, TaPackageService } from '@celljs/ta-protocol';
|
|
2
|
+
import { type Decision, type InitiativeKind, type InitiativeService, type KindStatus, type Level, type Mode, type Offered, type Proposal, type ProposalInput, type ReviewStatus } from './initiative-protocol';
|
|
3
|
+
import { ProposalBook } from './proposal-book';
|
|
4
|
+
import { ReviewHost } from './review-service';
|
|
5
|
+
/**
|
|
6
|
+
* The host of the package in the Ta service: the book of proposals, which every package offers to, and the weekly
|
|
7
|
+
* review, which proposes changes of the scheduled tasks and learns the user.
|
|
8
|
+
*/
|
|
9
|
+
export declare class InitiativeHost implements InitiativeService, TaPackageService {
|
|
10
|
+
protected readonly host: TaExtensionHost;
|
|
11
|
+
readonly book: ProposalBook;
|
|
12
|
+
readonly review: ReviewHost;
|
|
13
|
+
protected stopEvents?: () => void;
|
|
14
|
+
constructor(host: TaExtensionHost, now?: () => number);
|
|
15
|
+
start(): Promise<void>;
|
|
16
|
+
dispose(): void;
|
|
17
|
+
/** A turn that failed is offered to look into; one that went well since takes that back. */
|
|
18
|
+
protected onTurn(event: TaHostSessionEvent): Promise<void>;
|
|
19
|
+
defineKind(kind: InitiativeKind): Promise<void>;
|
|
20
|
+
kinds(): Promise<KindStatus[]>;
|
|
21
|
+
level(kind: string): Promise<Level>;
|
|
22
|
+
offer(input: ProposalInput): Promise<Offered>;
|
|
23
|
+
record(input: ProposalInput & {
|
|
24
|
+
outcome: 'accepted' | 'declined';
|
|
25
|
+
}): Promise<void>;
|
|
26
|
+
decide(id: string, decision: Decision): Promise<Proposal>;
|
|
27
|
+
undo(id: string): Promise<Proposal>;
|
|
28
|
+
setLevel(kind: string, level: Level | null): Promise<KindStatus>;
|
|
29
|
+
setMode(mode: Mode): Promise<void>;
|
|
30
|
+
reviewStatus(): Promise<ReviewStatus>;
|
|
31
|
+
reviewNow(): Promise<string | undefined>;
|
|
32
|
+
setPace(days: number, reason: string): Promise<number>;
|
|
33
|
+
setProfile(profile: string): Promise<string>;
|
|
34
|
+
/** Once: the settings, the conversation, the last review and the profile of Evolve, where this package has none. */
|
|
35
|
+
protected migrate(): Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=initiative-service.d.ts.map
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitiativeHost = void 0;
|
|
4
|
+
const chat_kinds_1 = require("./chat-kinds");
|
|
5
|
+
const cron_proposals_1 = require("./cron-proposals");
|
|
6
|
+
const event_proposals_1 = require("./event-proposals");
|
|
7
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
8
|
+
const proposal_book_1 = require("./proposal-book");
|
|
9
|
+
const review_service_1 = require("./review-service");
|
|
10
|
+
const server_texts_1 = require("./server-texts");
|
|
11
|
+
/** The data of Evolve, the package this one took over. */
|
|
12
|
+
const FORMER_KEYS = [initiative_protocol_1.Keys.SETTINGS, initiative_protocol_1.Keys.FILE, initiative_protocol_1.Keys.LAST, initiative_protocol_1.Keys.NOTE, initiative_protocol_1.Keys.PROFILE];
|
|
13
|
+
/**
|
|
14
|
+
* The host of the package in the Ta service: the book of proposals, which every package offers to, and the weekly
|
|
15
|
+
* review, which proposes changes of the scheduled tasks and learns the user.
|
|
16
|
+
*/
|
|
17
|
+
class InitiativeHost {
|
|
18
|
+
constructor(host, now = Date.now) {
|
|
19
|
+
this.host = host;
|
|
20
|
+
this.book = new proposal_book_1.ProposalBook(host, [...cron_proposals_1.CRON_KINDS, ...chat_kinds_1.CHAT_KINDS, ...event_proposals_1.EVENT_KINDS], now);
|
|
21
|
+
this.review = new review_service_1.ReviewHost(host, now);
|
|
22
|
+
}
|
|
23
|
+
async start() {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
await this.migrate().catch(error => console.error('ta-initiative could not take over the data of Evolve:', error));
|
|
26
|
+
await this.book.load();
|
|
27
|
+
this.review.start();
|
|
28
|
+
this.stopEvents = (_b = (_a = this.host).onSessionEvent) === null || _b === void 0 ? void 0 : _b.call(_a, event => void this.onTurn(event).catch(error => console.error('ta-initiative:', error)));
|
|
29
|
+
}
|
|
30
|
+
dispose() {
|
|
31
|
+
var _a;
|
|
32
|
+
(_a = this.stopEvents) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
33
|
+
this.review.dispose();
|
|
34
|
+
}
|
|
35
|
+
/** A turn that failed is offered to look into; one that went well since takes that back. */
|
|
36
|
+
async onTurn(event) {
|
|
37
|
+
const failed = event_proposals_1.EventProposals.failed(event, server_texts_1.InitiativeServerTexts.zh());
|
|
38
|
+
if (failed) {
|
|
39
|
+
await this.book.offer(failed);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const settled = event_proposals_1.EventProposals.settled(event);
|
|
43
|
+
if (settled) {
|
|
44
|
+
await this.book.expireKey(settled);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
defineKind(kind) {
|
|
48
|
+
return this.book.defineKind(kind);
|
|
49
|
+
}
|
|
50
|
+
kinds() {
|
|
51
|
+
return this.book.kinds();
|
|
52
|
+
}
|
|
53
|
+
level(kind) {
|
|
54
|
+
return this.book.level(kind);
|
|
55
|
+
}
|
|
56
|
+
offer(input) {
|
|
57
|
+
return this.book.offer(input);
|
|
58
|
+
}
|
|
59
|
+
record(input) {
|
|
60
|
+
return this.book.record(input);
|
|
61
|
+
}
|
|
62
|
+
decide(id, decision) {
|
|
63
|
+
return this.book.decide(id, decision);
|
|
64
|
+
}
|
|
65
|
+
undo(id) {
|
|
66
|
+
return this.book.undo(id);
|
|
67
|
+
}
|
|
68
|
+
setLevel(kind, level) {
|
|
69
|
+
return this.book.setLevel(kind, level);
|
|
70
|
+
}
|
|
71
|
+
setMode(mode) {
|
|
72
|
+
return this.book.setMode(mode);
|
|
73
|
+
}
|
|
74
|
+
reviewStatus() {
|
|
75
|
+
return this.review.reviewStatus();
|
|
76
|
+
}
|
|
77
|
+
reviewNow() {
|
|
78
|
+
return this.review.reviewNow();
|
|
79
|
+
}
|
|
80
|
+
setPace(days, reason) {
|
|
81
|
+
return this.review.setPace(days, reason);
|
|
82
|
+
}
|
|
83
|
+
setProfile(profile) {
|
|
84
|
+
return this.review.setProfile(profile);
|
|
85
|
+
}
|
|
86
|
+
/** Once: the settings, the conversation, the last review and the profile of Evolve, where this package has none. */
|
|
87
|
+
async migrate() {
|
|
88
|
+
if ((await this.host.getExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.MIGRATED).catch(() => undefined)) === true) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
for (const key of FORMER_KEYS) {
|
|
92
|
+
const [own, former] = await Promise.all([
|
|
93
|
+
this.host.getExtensionData(initiative_protocol_1.NAME, key).catch(() => undefined),
|
|
94
|
+
this.host.getExtensionData(initiative_protocol_1.FORMER_NAME, key).catch(() => undefined),
|
|
95
|
+
]);
|
|
96
|
+
if (own === undefined && former !== undefined) {
|
|
97
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, key, former);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.MIGRATED, true);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.InitiativeHost = InitiativeHost;
|
|
104
|
+
//# sourceMappingURL=initiative-service.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import { type Decision, type KindStatus, type Level, type Mode, type Proposal, type QuietHours, type ReviewSettings, type ReviewStatus } from './initiative-protocol';
|
|
3
|
+
export interface InitiativeState {
|
|
4
|
+
review: ReviewStatus;
|
|
5
|
+
kinds: KindStatus[];
|
|
6
|
+
/** Newest last. */
|
|
7
|
+
proposals: Proposal[];
|
|
8
|
+
mode: Mode;
|
|
9
|
+
/** `Date.now()` time the user last looked at the suggestions. */
|
|
10
|
+
seen: number;
|
|
11
|
+
quiet: QuietHours;
|
|
12
|
+
loaded: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* What the page shows of the package (the suggestions, the levels, the reviews): asked of the host and read from the
|
|
16
|
+
* data of the package, again as any device or the host changes it. What the user does goes to the host.
|
|
17
|
+
*/
|
|
18
|
+
export declare class InitiativeStore {
|
|
19
|
+
protected readonly pi: WebExtensionAPI;
|
|
20
|
+
private current;
|
|
21
|
+
private readonly listeners;
|
|
22
|
+
constructor(pi: WebExtensionAPI);
|
|
23
|
+
get state(): InitiativeState;
|
|
24
|
+
/** The reviews, as the settings show them. */
|
|
25
|
+
get status(): ReviewStatus;
|
|
26
|
+
subscribe(listener: () => void): () => void;
|
|
27
|
+
/** Changes the settings of the reviews: shown at once, read by the host from the data of the package. */
|
|
28
|
+
change(patch: Partial<ReviewSettings>): Promise<void>;
|
|
29
|
+
/** What Ta knows of the user, as the user wrote it. */
|
|
30
|
+
saveProfile(profile: string): Promise<void>;
|
|
31
|
+
decide(id: string, decision: Decision): Promise<void>;
|
|
32
|
+
undo(id: string): Promise<void>;
|
|
33
|
+
setLevel(kind: string, level: Level | null): Promise<void>;
|
|
34
|
+
setMode(mode: Mode): Promise<void>;
|
|
35
|
+
/** The quiet hours: shown at once, read by the host from the data of the package. */
|
|
36
|
+
setQuiet(patch: Partial<QuietHours>): Promise<void>;
|
|
37
|
+
/** The user looked at the suggestions: the dot of the double's home goes, on every device. */
|
|
38
|
+
see(): void;
|
|
39
|
+
private read;
|
|
40
|
+
private set;
|
|
41
|
+
}
|
|
42
|
+
/** A React hook of a page: the state of the store, drawn again as it changes. */
|
|
43
|
+
export declare function useInitiative(react: typeof import('react'), store: InitiativeStore): InitiativeState;
|
|
44
|
+
//# sourceMappingURL=initiative-store.d.ts.map
|