@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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const initiative_service_1 = require("./initiative-service");
|
|
5
|
+
/** The server side of the package (`pi.host`): the Ta service runs it once; it keeps the proposals and starts the reviews on time. */
|
|
6
|
+
async function activate(host) {
|
|
7
|
+
const initiative = new initiative_service_1.InitiativeHost(host);
|
|
8
|
+
await initiative.start();
|
|
9
|
+
return initiative;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=host.js.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
settingsTitle: string;
|
|
3
|
+
modeLabel: string;
|
|
4
|
+
modeHint: string;
|
|
5
|
+
quietLabel: string;
|
|
6
|
+
quietHint: string;
|
|
7
|
+
quietFrom: string;
|
|
8
|
+
quietTo: string;
|
|
9
|
+
modeQuiet: string;
|
|
10
|
+
modeBalanced: string;
|
|
11
|
+
modeActive: string;
|
|
12
|
+
kindsLabel: string;
|
|
13
|
+
kindsHint: string;
|
|
14
|
+
levelAuto: string;
|
|
15
|
+
levelAutoPlain: string;
|
|
16
|
+
levelOff: string;
|
|
17
|
+
levelDigest: string;
|
|
18
|
+
levelAsk: string;
|
|
19
|
+
levelAct: string;
|
|
20
|
+
reasonStart: string;
|
|
21
|
+
reasonUp: string;
|
|
22
|
+
reasonDown: string;
|
|
23
|
+
reasonLocked: string;
|
|
24
|
+
inboxTitle: string;
|
|
25
|
+
inboxWaiting: string;
|
|
26
|
+
inboxDone: string;
|
|
27
|
+
inboxEmpty: string;
|
|
28
|
+
accept: string;
|
|
29
|
+
decline: string;
|
|
30
|
+
always: string;
|
|
31
|
+
neverAgain: string;
|
|
32
|
+
undo: string;
|
|
33
|
+
undoneState: string;
|
|
34
|
+
failedState: string;
|
|
35
|
+
inBrief: string;
|
|
36
|
+
evidence: string;
|
|
37
|
+
homeDetail: string;
|
|
38
|
+
homeWaiting: string;
|
|
39
|
+
homeDone: string;
|
|
40
|
+
toolPropose: string;
|
|
41
|
+
acceptedLine: string;
|
|
42
|
+
declinedLine: string;
|
|
43
|
+
expiredLine: string;
|
|
44
|
+
enabledLabel: string;
|
|
45
|
+
enabledHint: string;
|
|
46
|
+
everyLabel: string;
|
|
47
|
+
everyDays: string;
|
|
48
|
+
every1: string;
|
|
49
|
+
every7: string;
|
|
50
|
+
every14: string;
|
|
51
|
+
every30: string;
|
|
52
|
+
timeLabel: string;
|
|
53
|
+
autoLabel: string;
|
|
54
|
+
autoHint: string;
|
|
55
|
+
autoNote: string;
|
|
56
|
+
nowLabel: string;
|
|
57
|
+
nowButton: string;
|
|
58
|
+
lastNext: string;
|
|
59
|
+
nextOnly: string;
|
|
60
|
+
never: string;
|
|
61
|
+
conversation: string;
|
|
62
|
+
failed: string;
|
|
63
|
+
toolPace: string;
|
|
64
|
+
toolProfile: string;
|
|
65
|
+
learnLabel: string;
|
|
66
|
+
learnHint: string;
|
|
67
|
+
profileLabel: string;
|
|
68
|
+
profileHint: string;
|
|
69
|
+
profileEmpty: string;
|
|
70
|
+
profileSave: string;
|
|
71
|
+
profileSaved: string;
|
|
72
|
+
};
|
|
73
|
+
export type Words = typeof en;
|
|
74
|
+
export declare namespace InitiativeWords {
|
|
75
|
+
function of(language: string): Words;
|
|
76
|
+
function format(text: string, values: Record<string, string>): string;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitiativeWords = void 0;
|
|
4
|
+
const en = {
|
|
5
|
+
settingsTitle: 'Initiative',
|
|
6
|
+
modeLabel: 'How much Ta does on its own',
|
|
7
|
+
modeHint: 'Where each kind of thing starts, whether Ta may come to do it on its own as you accept it, and how often a day it may tell you at once: Quiet once, Balanced 3 times, Active no limit.',
|
|
8
|
+
quietLabel: 'Quiet hours',
|
|
9
|
+
quietHint: 'Ta tells you of nothing at once in these hours: it waits in Suggestions and the brief.',
|
|
10
|
+
quietFrom: 'From',
|
|
11
|
+
quietTo: 'to',
|
|
12
|
+
modeQuiet: 'Quiet',
|
|
13
|
+
modeBalanced: 'Balanced',
|
|
14
|
+
modeActive: 'Active',
|
|
15
|
+
kindsLabel: 'What Ta may do',
|
|
16
|
+
kindsHint: 'Each goes up a level as you accept it and down as you decline or undo it; pick a level to keep it there.',
|
|
17
|
+
levelAuto: 'Auto · {level}',
|
|
18
|
+
levelAutoPlain: 'Auto',
|
|
19
|
+
levelOff: 'Never',
|
|
20
|
+
levelDigest: 'In the brief',
|
|
21
|
+
levelAsk: 'Ask me',
|
|
22
|
+
levelAct: 'Do it, tell me',
|
|
23
|
+
reasonStart: 'Where it starts',
|
|
24
|
+
reasonUp: 'Up on {date}: you accepted it 3 times in a row',
|
|
25
|
+
reasonDown: 'Down on {date}: declined or undone',
|
|
26
|
+
reasonLocked: 'You chose it',
|
|
27
|
+
inboxTitle: 'Suggestions',
|
|
28
|
+
inboxWaiting: 'Waiting for you',
|
|
29
|
+
inboxDone: 'Done on its own',
|
|
30
|
+
inboxEmpty: 'Nothing waits. When Ta finds work you ask for again and again, it suggests it here.',
|
|
31
|
+
accept: 'OK',
|
|
32
|
+
decline: 'No',
|
|
33
|
+
always: 'Always do it',
|
|
34
|
+
neverAgain: 'Never suggest this',
|
|
35
|
+
undo: 'Undo',
|
|
36
|
+
undoneState: 'Undone',
|
|
37
|
+
failedState: 'Failed: {error}',
|
|
38
|
+
inBrief: 'From the brief',
|
|
39
|
+
evidence: 'From {count} conversations',
|
|
40
|
+
homeDetail: '{waiting} waiting · {done} done on its own',
|
|
41
|
+
homeWaiting: '{waiting} waiting for you',
|
|
42
|
+
homeDone: '{done} done on its own',
|
|
43
|
+
toolPropose: 'Propose',
|
|
44
|
+
acceptedLine: 'Accepted',
|
|
45
|
+
declinedLine: 'Declined',
|
|
46
|
+
expiredLine: 'No longer waits',
|
|
47
|
+
enabledLabel: 'Review the scheduled tasks',
|
|
48
|
+
enabledHint: 'Ta looks back at what you asked since the last review: work you asked for again and again becomes a scheduled task, tasks that keep failing or no longer matter are turned off. Each change goes as far as you let its kind (above): done, or asked in Suggestions. It reports in the conversation Evolve, where you can answer; it remembers what you said.',
|
|
49
|
+
everyLabel: 'How often',
|
|
50
|
+
everyDays: 'Every {days} days',
|
|
51
|
+
every1: 'Every day',
|
|
52
|
+
every7: 'Every week',
|
|
53
|
+
every14: 'Every two weeks',
|
|
54
|
+
every30: 'Every month',
|
|
55
|
+
timeLabel: 'At',
|
|
56
|
+
autoLabel: 'Let Ta choose how often',
|
|
57
|
+
autoHint: 'After each review Ta sets the next: sooner while your work changes, later while nothing does.',
|
|
58
|
+
autoNote: 'Ta: {note}',
|
|
59
|
+
nowLabel: 'Review now',
|
|
60
|
+
nowButton: 'Review',
|
|
61
|
+
lastNext: 'Last {last} · next {next}',
|
|
62
|
+
nextOnly: 'First review {next}',
|
|
63
|
+
never: 'never',
|
|
64
|
+
conversation: 'Evolve',
|
|
65
|
+
failed: 'Could not do it: {message}',
|
|
66
|
+
toolPace: 'Set review pace',
|
|
67
|
+
toolProfile: 'Update what Ta knows of you',
|
|
68
|
+
learnLabel: 'Learn about me',
|
|
69
|
+
learnHint: 'At each review Ta writes down how you work and what you usually want next; every conversation reads it, so Ta needs telling less and does more on its own.',
|
|
70
|
+
profileLabel: 'What Ta knows of you',
|
|
71
|
+
profileHint: 'Edit it freely: Ta keeps your changes and builds on them.',
|
|
72
|
+
profileEmpty: 'Nothing yet: Ta writes it at the next review.',
|
|
73
|
+
profileSave: 'Save',
|
|
74
|
+
profileSaved: 'Saved',
|
|
75
|
+
};
|
|
76
|
+
const zh = {
|
|
77
|
+
settingsTitle: '主动',
|
|
78
|
+
modeLabel: '主动程度',
|
|
79
|
+
modeHint: '决定每类事从哪一档开始、你接受得多了 Ta 能不能自己直接做,以及一天最多即时提醒几次:安静 1 次、适中 3 次、积极不限。',
|
|
80
|
+
quietLabel: '安静时段',
|
|
81
|
+
quietHint: '这段时间里 Ta 不即时提醒你,建议都留在“Ta 的建议”和简报里。',
|
|
82
|
+
quietFrom: '从',
|
|
83
|
+
quietTo: '到',
|
|
84
|
+
modeQuiet: '安静',
|
|
85
|
+
modeBalanced: '适中',
|
|
86
|
+
modeActive: '积极',
|
|
87
|
+
kindsLabel: 'Ta 可以做的事',
|
|
88
|
+
kindsHint: '每类事你接受得多就升一档,拒绝或撤销就降一档;手动选了档位就不再自动变。',
|
|
89
|
+
levelAuto: '自动 · {level}',
|
|
90
|
+
levelAutoPlain: '自动',
|
|
91
|
+
levelOff: '不提',
|
|
92
|
+
levelDigest: '只进简报',
|
|
93
|
+
levelAsk: '先问我',
|
|
94
|
+
levelAct: '先做后报',
|
|
95
|
+
reasonStart: '初始档位',
|
|
96
|
+
reasonUp: '{date} 升档:连续接受 3 次',
|
|
97
|
+
reasonDown: '{date} 降档:被拒绝或撤销',
|
|
98
|
+
reasonLocked: '你选定的',
|
|
99
|
+
inboxTitle: 'Ta 的建议',
|
|
100
|
+
inboxWaiting: '等你决定',
|
|
101
|
+
inboxDone: '已替你做',
|
|
102
|
+
inboxEmpty: '暂时没有建议。Ta 发现你反复交代的事,会在这里提出。',
|
|
103
|
+
accept: '好',
|
|
104
|
+
decline: '不用',
|
|
105
|
+
always: '以后直接做',
|
|
106
|
+
neverAgain: '别再提这类',
|
|
107
|
+
undo: '撤销',
|
|
108
|
+
undoneState: '已撤销',
|
|
109
|
+
failedState: '失败:{error}',
|
|
110
|
+
inBrief: '来自简报',
|
|
111
|
+
evidence: '依据 {count} 个对话',
|
|
112
|
+
homeDetail: '等你决定 {waiting} · 已替你做 {done}',
|
|
113
|
+
homeWaiting: '等你决定 {waiting}',
|
|
114
|
+
homeDone: '已替你做 {done}',
|
|
115
|
+
toolPropose: '提议',
|
|
116
|
+
acceptedLine: '已同意',
|
|
117
|
+
declinedLine: '已拒绝',
|
|
118
|
+
expiredLine: '已失效',
|
|
119
|
+
enabledLabel: '定期整理定时任务',
|
|
120
|
+
enabledHint: 'Ta 回顾上次以来你交代过的事:反复做的工作建成定时任务,总是失败或已经过时的任务停用;每项改动按上面的档位直接做,或放进“Ta 的建议”等你点头。结果写进“自我进化”对话,你可以在里面回复,Ta 会记住你的意见。',
|
|
121
|
+
everyLabel: '多久一次',
|
|
122
|
+
everyDays: '每 {days} 天',
|
|
123
|
+
every1: '每天',
|
|
124
|
+
every7: '每周',
|
|
125
|
+
every14: '每两周',
|
|
126
|
+
every30: '每月',
|
|
127
|
+
timeLabel: '时间',
|
|
128
|
+
autoLabel: '让 Ta 决定节奏',
|
|
129
|
+
autoHint: '每次整理后由 Ta 定下一次:工作变化多就勤一点,没什么变化就久一点。',
|
|
130
|
+
autoNote: 'Ta:{note}',
|
|
131
|
+
nowLabel: '现在整理一次',
|
|
132
|
+
nowButton: '整理',
|
|
133
|
+
lastNext: '上次 {last} · 下次 {next}',
|
|
134
|
+
nextOnly: '首次 {next}',
|
|
135
|
+
never: '无',
|
|
136
|
+
conversation: '自我进化',
|
|
137
|
+
failed: '没有成功:{message}',
|
|
138
|
+
toolPace: '调整整理节奏',
|
|
139
|
+
toolProfile: '更新对你的了解',
|
|
140
|
+
learnLabel: '了解我',
|
|
141
|
+
learnHint: '每次整理时,Ta 记下你的做事方式和你通常接下来想做什么;所有对话都会参考,你要交代的越来越少,Ta 主动做的越来越多。',
|
|
142
|
+
profileLabel: 'Ta 对你的了解',
|
|
143
|
+
profileHint: '可以直接修改,Ta 会保留你的改动并在此基础上补充。',
|
|
144
|
+
profileEmpty: '还没有内容,下次整理时 Ta 会写。',
|
|
145
|
+
profileSave: '保存',
|
|
146
|
+
profileSaved: '已保存',
|
|
147
|
+
};
|
|
148
|
+
var InitiativeWords;
|
|
149
|
+
(function (InitiativeWords) {
|
|
150
|
+
function of(language) {
|
|
151
|
+
return /^zh/i.test(language) ? zh : en;
|
|
152
|
+
}
|
|
153
|
+
InitiativeWords.of = of;
|
|
154
|
+
function format(text, values) {
|
|
155
|
+
return text.replace(/\{(\w+)\}/g, (match, key) => { var _a; return (_a = values[key]) !== null && _a !== void 0 ? _a : match; });
|
|
156
|
+
}
|
|
157
|
+
InitiativeWords.format = format;
|
|
158
|
+
})(InitiativeWords || (exports.InitiativeWords = InitiativeWords = {}));
|
|
159
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Proposal } from './initiative-protocol';
|
|
2
|
+
/** Waiting for the user: asked, or kept for the brief. */
|
|
3
|
+
export declare function waits(proposal: Pick<Proposal, 'state'>): boolean;
|
|
4
|
+
/** What the suggestions show: what waits, what Ta did on its own lately, and the row of the double's home. Pure functions. */
|
|
5
|
+
export declare namespace InboxUtil {
|
|
6
|
+
/** Waiting for the user, newest first: those asked before those of the brief. */
|
|
7
|
+
function waiting(proposals: readonly Proposal[]): Proposal[];
|
|
8
|
+
/** What Ta did on its own in the days it may be undone, newest first. */
|
|
9
|
+
function done(proposals: readonly Proposal[], now: number): Proposal[];
|
|
10
|
+
function canUndo(proposal: Proposal, now: number): boolean;
|
|
11
|
+
/** The row of the double's home: none while nothing waits and Ta did nothing lately. */
|
|
12
|
+
function home(proposals: readonly Proposal[], seen: number, now: number): {
|
|
13
|
+
waiting: number;
|
|
14
|
+
done: number;
|
|
15
|
+
at: number;
|
|
16
|
+
unseen: boolean;
|
|
17
|
+
} | undefined;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=inbox-util.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InboxUtil = void 0;
|
|
4
|
+
exports.waits = waits;
|
|
5
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
6
|
+
const DAY_MS = 24 * 60 * 60000;
|
|
7
|
+
/** Waiting for the user: asked, or kept for the brief. */
|
|
8
|
+
function waits(proposal) {
|
|
9
|
+
return proposal.state === 'pending' || proposal.state === 'digest';
|
|
10
|
+
}
|
|
11
|
+
/** What the suggestions show: what waits, what Ta did on its own lately, and the row of the double's home. Pure functions. */
|
|
12
|
+
var InboxUtil;
|
|
13
|
+
(function (InboxUtil) {
|
|
14
|
+
/** Waiting for the user, newest first: those asked before those of the brief. */
|
|
15
|
+
function waiting(proposals) {
|
|
16
|
+
return proposals.filter(waits).sort((a, b) => (a.state === b.state ? b.at - a.at : a.state === 'pending' ? -1 : 1));
|
|
17
|
+
}
|
|
18
|
+
InboxUtil.waiting = waiting;
|
|
19
|
+
/** What Ta did on its own in the days it may be undone, newest first. */
|
|
20
|
+
function done(proposals, now) {
|
|
21
|
+
return proposals
|
|
22
|
+
.filter(proposal => { var _a; return proposal.auto &&
|
|
23
|
+
['done', 'undone', 'failed'].includes(proposal.state) &&
|
|
24
|
+
now - ((_a = proposal.decidedAt) !== null && _a !== void 0 ? _a : proposal.at) <= initiative_protocol_1.Limits.UNDO_DAYS * DAY_MS; })
|
|
25
|
+
.sort((a, b) => { var _a, _b; return ((_a = b.decidedAt) !== null && _a !== void 0 ? _a : b.at) - ((_b = a.decidedAt) !== null && _b !== void 0 ? _b : a.at); });
|
|
26
|
+
}
|
|
27
|
+
InboxUtil.done = done;
|
|
28
|
+
function canUndo(proposal, now) {
|
|
29
|
+
var _a;
|
|
30
|
+
return proposal.state === 'done' && !!proposal.undo && now - ((_a = proposal.decidedAt) !== null && _a !== void 0 ? _a : proposal.at) <= initiative_protocol_1.Limits.UNDO_DAYS * DAY_MS;
|
|
31
|
+
}
|
|
32
|
+
InboxUtil.canUndo = canUndo;
|
|
33
|
+
/** The row of the double's home: none while nothing waits and Ta did nothing lately. */
|
|
34
|
+
function home(proposals, seen, now) {
|
|
35
|
+
const open = waiting(proposals);
|
|
36
|
+
const did = done(proposals, now).filter(proposal => proposal.state === 'done');
|
|
37
|
+
if (open.length === 0 && did.length === 0) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
const at = Math.max(...[...open, ...did].map(proposal => { var _a; return Math.max(proposal.at, (_a = proposal.decidedAt) !== null && _a !== void 0 ? _a : 0); }));
|
|
41
|
+
return { waiting: open.length, done: did.length, at, unseen: at > seen };
|
|
42
|
+
}
|
|
43
|
+
InboxUtil.home = home;
|
|
44
|
+
})(InboxUtil || (exports.InboxUtil = InboxUtil = {}));
|
|
45
|
+
//# sourceMappingURL=inbox-util.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import { type InitiativeStore } from './initiative-store';
|
|
3
|
+
/** The suggestions of Ta: what waits for the user, then what Ta did on its own lately, which they may undo. */
|
|
4
|
+
export declare function Inbox({ pi, store }: {
|
|
5
|
+
pi: WebExtensionAPI;
|
|
6
|
+
store: InitiativeStore;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
/** Above the message box of a conversation: what a package proposes for it (a turn that failed, to look into). */
|
|
9
|
+
export declare function AboveComposer({ pi, store, sessionFile }: {
|
|
10
|
+
pi: WebExtensionAPI;
|
|
11
|
+
store: InitiativeStore;
|
|
12
|
+
sessionFile?: string;
|
|
13
|
+
}): import("react").JSX.Element | null;
|
|
14
|
+
/**
|
|
15
|
+
* The proposals of a turn, in its conversation: those asked to decide, those done on its own to undo; once decided, a
|
|
16
|
+
* line of what became of it.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ProposalCards({ pi, store, ids }: {
|
|
19
|
+
pi: WebExtensionAPI;
|
|
20
|
+
store: InitiativeStore;
|
|
21
|
+
ids: readonly string[];
|
|
22
|
+
}): import("react").JSX.Element | null;
|
|
23
|
+
//# sourceMappingURL=inbox.d.ts.map
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Inbox = Inbox;
|
|
4
|
+
exports.AboveComposer = AboveComposer;
|
|
5
|
+
exports.ProposalCards = ProposalCards;
|
|
6
|
+
const conversation_1 = require("./conversation");
|
|
7
|
+
const i18n_1 = require("./i18n");
|
|
8
|
+
const inbox_util_1 = require("./inbox-util");
|
|
9
|
+
const initiative_store_1 = require("./initiative-store");
|
|
10
|
+
const notices_1 = require("./notices");
|
|
11
|
+
const react_1 = require("./react");
|
|
12
|
+
function message(error) {
|
|
13
|
+
return error instanceof Error ? error.message : String(error);
|
|
14
|
+
}
|
|
15
|
+
function clock(at) {
|
|
16
|
+
const date = new Date(at);
|
|
17
|
+
const pad = (value) => String(value).padStart(2, '0');
|
|
18
|
+
return `${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
|
19
|
+
}
|
|
20
|
+
function kindTitle(kinds, id, language) {
|
|
21
|
+
var _a;
|
|
22
|
+
const kind = (_a = kinds.find(one => one.kind.id === id)) === null || _a === void 0 ? void 0 : _a.kind;
|
|
23
|
+
return kind ? (/^zh/i.test(language) ? kind.title.zh : kind.title.en) : id;
|
|
24
|
+
}
|
|
25
|
+
/** A button that waits on the host, with the spinner of the page. */
|
|
26
|
+
function Act({ pi, label, primary, onClick }) {
|
|
27
|
+
const [busy, run] = (0, react_1.useBusy)(pi.ui);
|
|
28
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
29
|
+
const act = async () => {
|
|
30
|
+
try {
|
|
31
|
+
await onClick();
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
pi.ui.notify(i18n_1.InitiativeWords.format(words.failed, { message: message(error) }), 'error');
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return (react_1.React.createElement("button", { type: "button", className: `ta-button${primary ? ' ta-primary' : ''}${busy ? ' ta-busy' : ''}`, disabled: busy, onClick: () => void run(act) },
|
|
38
|
+
busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
39
|
+
react_1.React.createElement("span", null, label)));
|
|
40
|
+
}
|
|
41
|
+
function Evidence({ pi, proposal, words }) {
|
|
42
|
+
var _a;
|
|
43
|
+
const files = (_a = proposal.evidence) !== null && _a !== void 0 ? _a : [];
|
|
44
|
+
if (files.length === 0) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return (react_1.React.createElement("button", { type: "button", className: "tin-link", onClick: () => void (0, conversation_1.openConversation)(pi, files[0]) }, i18n_1.InitiativeWords.format(words.evidence, { count: String(files.length) })));
|
|
48
|
+
}
|
|
49
|
+
function Waiting({ pi, store, proposal, kinds, away, }) {
|
|
50
|
+
var _a;
|
|
51
|
+
var _b;
|
|
52
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
53
|
+
const decide = (decision) => async () => {
|
|
54
|
+
await store.decide(proposal.id, decision);
|
|
55
|
+
const action = proposal.action;
|
|
56
|
+
if (away && (action === null || action === void 0 ? void 0 : action.type) === 'session' && (decision === 'accept' || decision === 'always')) {
|
|
57
|
+
await (0, conversation_1.openConversation)(pi, action.sessionFile);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const reversible = (_b = (_a = kinds.find(one => one.kind.id === proposal.kind)) === null || _a === void 0 ? void 0 : _a.kind.reversible) !== null && _b !== void 0 ? _b : false;
|
|
61
|
+
return (react_1.React.createElement("li", { className: "tin-card" },
|
|
62
|
+
react_1.React.createElement("div", { className: "tin-kind" },
|
|
63
|
+
react_1.React.createElement("span", null, kindTitle(kinds, proposal.kind, pi.ui.language)),
|
|
64
|
+
proposal.state === 'digest' && react_1.React.createElement("span", { className: "tin-tag" }, words.inBrief),
|
|
65
|
+
react_1.React.createElement("span", { className: "tin-time" }, clock(proposal.at))),
|
|
66
|
+
react_1.React.createElement("div", { className: "tin-title" }, proposal.title),
|
|
67
|
+
proposal.why && react_1.React.createElement("div", { className: "tin-why" }, proposal.why),
|
|
68
|
+
react_1.React.createElement(Evidence, { pi: pi, proposal: proposal, words: words }),
|
|
69
|
+
react_1.React.createElement("div", { className: "tin-actions" },
|
|
70
|
+
react_1.React.createElement(Act, { pi: pi, label: words.accept, primary: true, onClick: decide('accept') }),
|
|
71
|
+
react_1.React.createElement(Act, { pi: pi, label: words.decline, onClick: decide('decline') })),
|
|
72
|
+
react_1.React.createElement("div", { className: "tin-more" },
|
|
73
|
+
reversible && (react_1.React.createElement("button", { type: "button", className: "tin-link", onClick: () => void decide('always')().catch(() => undefined) }, words.always)),
|
|
74
|
+
react_1.React.createElement("button", { type: "button", className: "tin-link", onClick: () => void decide('never')().catch(() => undefined) }, words.neverAgain))));
|
|
75
|
+
}
|
|
76
|
+
function Done({ pi, store, proposal, kinds, now, }) {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
79
|
+
const state = proposal.state === 'undone'
|
|
80
|
+
? words.undoneState
|
|
81
|
+
: proposal.state === 'failed'
|
|
82
|
+
? i18n_1.InitiativeWords.format(words.failedState, { error: (_a = proposal.error) !== null && _a !== void 0 ? _a : '' })
|
|
83
|
+
: '';
|
|
84
|
+
return (react_1.React.createElement("li", { className: "tin-card tin-done", "data-state": proposal.state },
|
|
85
|
+
react_1.React.createElement("div", { className: "tin-kind" },
|
|
86
|
+
react_1.React.createElement("span", null, kindTitle(kinds, proposal.kind, pi.ui.language)),
|
|
87
|
+
react_1.React.createElement("span", { className: "tin-time" }, clock((_b = proposal.decidedAt) !== null && _b !== void 0 ? _b : proposal.at))),
|
|
88
|
+
react_1.React.createElement("div", { className: "tin-title" }, proposal.title),
|
|
89
|
+
proposal.why && react_1.React.createElement("div", { className: "tin-why" }, proposal.why),
|
|
90
|
+
state && react_1.React.createElement("div", { className: "tin-state" }, state),
|
|
91
|
+
inbox_util_1.InboxUtil.canUndo(proposal, now) && (react_1.React.createElement("div", { className: "tin-actions" },
|
|
92
|
+
react_1.React.createElement(Act, { pi: pi, label: words.undo, onClick: () => store.undo(proposal.id) })))));
|
|
93
|
+
}
|
|
94
|
+
/** The suggestions of Ta: what waits for the user, then what Ta did on its own lately, which they may undo. */
|
|
95
|
+
function Inbox({ pi, store }) {
|
|
96
|
+
const state = (0, initiative_store_1.useInitiative)(react_1.React, store);
|
|
97
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
98
|
+
const now = Date.now();
|
|
99
|
+
const waiting = inbox_util_1.InboxUtil.waiting(state.proposals);
|
|
100
|
+
const done = inbox_util_1.InboxUtil.done(state.proposals, now);
|
|
101
|
+
// Looked at: the dot of the double's home goes.
|
|
102
|
+
react_1.React.useEffect(() => {
|
|
103
|
+
if (state.loaded) {
|
|
104
|
+
store.see();
|
|
105
|
+
}
|
|
106
|
+
}, [store, state.loaded, state.proposals]);
|
|
107
|
+
return (react_1.React.createElement("div", { className: "tin-inbox" },
|
|
108
|
+
waiting.length === 0 && done.length === 0 && state.loaded && react_1.React.createElement("div", { className: "tin-empty" }, words.inboxEmpty),
|
|
109
|
+
waiting.length > 0 && (react_1.React.createElement("section", null,
|
|
110
|
+
react_1.React.createElement("h3", { className: "tin-head" }, words.inboxWaiting),
|
|
111
|
+
react_1.React.createElement("ul", { className: "tin-list" }, waiting.map(proposal => (react_1.React.createElement(Waiting, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds, away: true })))))),
|
|
112
|
+
done.length > 0 && (react_1.React.createElement("section", null,
|
|
113
|
+
react_1.React.createElement("h3", { className: "tin-head" }, words.inboxDone),
|
|
114
|
+
react_1.React.createElement("ul", { className: "tin-list" }, done.map(proposal => (react_1.React.createElement(Done, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds, now: now }))))))));
|
|
115
|
+
}
|
|
116
|
+
/** Above the message box of a conversation: what a package proposes for it (a turn that failed, to look into). */
|
|
117
|
+
function AboveComposer({ pi, store, sessionFile }) {
|
|
118
|
+
const state = (0, initiative_store_1.useInitiative)(react_1.React, store);
|
|
119
|
+
const proposals = (0, notices_1.conversationProposals)(state.proposals, sessionFile);
|
|
120
|
+
if (proposals.length === 0) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
return (react_1.React.createElement("ul", { className: "tin-list tin-above" }, proposals.map(proposal => (react_1.React.createElement(Waiting, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds })))));
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The proposals of a turn, in its conversation: those asked to decide, those done on its own to undo; once decided, a
|
|
127
|
+
* line of what became of it.
|
|
128
|
+
*/
|
|
129
|
+
function ProposalCards({ pi, store, ids }) {
|
|
130
|
+
const state = (0, initiative_store_1.useInitiative)(react_1.React, store);
|
|
131
|
+
const now = Date.now();
|
|
132
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
133
|
+
const proposals = ids.flatMap(id => state.proposals.filter(proposal => proposal.id === id));
|
|
134
|
+
if (proposals.length === 0) {
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
return (react_1.React.createElement("ul", { className: "tin-list tin-in-chat" }, proposals.map(proposal => (0, inbox_util_1.waits)(proposal) ? (react_1.React.createElement(Waiting, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds })) : proposal.auto ? (react_1.React.createElement(Done, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds, now: now })) : (react_1.React.createElement("li", { key: proposal.id, className: "tin-decided" },
|
|
138
|
+
proposal.state === 'done' ? words.acceptedLine : proposal.state === 'declined' ? words.declinedLine : words.expiredLine,
|
|
139
|
+
' · ',
|
|
140
|
+
proposal.title)))));
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=inbox.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** The id `ui.showView` takes for the suggestions. */
|
|
3
|
+
export declare const INBOX_VIEW = "@celljs/ta-initiative/inbox";
|
|
4
|
+
/**
|
|
5
|
+
* The page side of Initiative: the suggestions (a page, and a row of the double's home), its section of the settings,
|
|
6
|
+
* the icon of the conversation of the reviews and the lines of its tools. The host keeps the proposals and starts the
|
|
7
|
+
* reviews (host.ts); the pi extension gives the reviews what they read and their tools (extension.ts).
|
|
8
|
+
*/
|
|
9
|
+
export default function activate(pi: WebExtensionAPI): () => void;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INBOX_VIEW = void 0;
|
|
4
|
+
exports.default = activate;
|
|
5
|
+
const i18n_1 = require("./i18n");
|
|
6
|
+
const inbox_1 = require("./inbox");
|
|
7
|
+
const inbox_util_1 = require("./inbox-util");
|
|
8
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
9
|
+
const initiative_store_1 = require("./initiative-store");
|
|
10
|
+
const notices_1 = require("./notices");
|
|
11
|
+
const page_initiative_1 = require("./page-initiative");
|
|
12
|
+
// biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
|
|
13
|
+
const react_1 = require("./react");
|
|
14
|
+
const settings_1 = require("./settings");
|
|
15
|
+
const style_1 = require("./style");
|
|
16
|
+
/** The id `ui.showView` takes for the suggestions. */
|
|
17
|
+
exports.INBOX_VIEW = `${initiative_protocol_1.NAME}/inbox`;
|
|
18
|
+
/** The conversation of the reviews has an icon of its own in the lists. */
|
|
19
|
+
function chatIcons(pi, store) {
|
|
20
|
+
return {
|
|
21
|
+
icon: chat => chat.sessionFile && chat.sessionFile === store.status.file && pi.ui.icons.Sparkles ? { icon: pi.ui.icons.Sparkles, tint: 'evolve' } : undefined,
|
|
22
|
+
subscribe: listener => store.subscribe(listener),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/** The suggestions as a row of the double's home: how many wait and what Ta did, a dot for what is new. */
|
|
26
|
+
function inboxHome(pi, store) {
|
|
27
|
+
let built;
|
|
28
|
+
let items = [];
|
|
29
|
+
return {
|
|
30
|
+
items: () => {
|
|
31
|
+
var _a;
|
|
32
|
+
if (store.state !== built) {
|
|
33
|
+
built = store.state;
|
|
34
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
35
|
+
const home = inbox_util_1.InboxUtil.home(built.proposals, built.seen, Date.now());
|
|
36
|
+
const icon = (_a = pi.ui.icons.ListChecks) !== null && _a !== void 0 ? _a : pi.ui.icons.Sparkles;
|
|
37
|
+
const detail = home
|
|
38
|
+
? home.waiting && home.done
|
|
39
|
+
? i18n_1.InitiativeWords.format(words.homeDetail, { waiting: String(home.waiting), done: String(home.done) })
|
|
40
|
+
: home.waiting
|
|
41
|
+
? i18n_1.InitiativeWords.format(words.homeWaiting, { waiting: String(home.waiting) })
|
|
42
|
+
: i18n_1.InitiativeWords.format(words.homeDone, { done: String(home.done) })
|
|
43
|
+
: '';
|
|
44
|
+
items =
|
|
45
|
+
home && icon
|
|
46
|
+
? [
|
|
47
|
+
{
|
|
48
|
+
id: 'inbox',
|
|
49
|
+
title: words.inboxTitle,
|
|
50
|
+
detail,
|
|
51
|
+
icon,
|
|
52
|
+
tint: 'initiative',
|
|
53
|
+
at: home.at,
|
|
54
|
+
unseen: home.unseen,
|
|
55
|
+
open: () => pi.ui.showView(exports.INBOX_VIEW),
|
|
56
|
+
},
|
|
57
|
+
]
|
|
58
|
+
: [];
|
|
59
|
+
}
|
|
60
|
+
return items;
|
|
61
|
+
},
|
|
62
|
+
subscribe: listener => store.subscribe(listener),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The page side of Initiative: the suggestions (a page, and a row of the double's home), its section of the settings,
|
|
67
|
+
* the icon of the conversation of the reviews and the lines of its tools. The host keeps the proposals and starts the
|
|
68
|
+
* reviews (host.ts); the pi extension gives the reviews what they read and their tools (extension.ts).
|
|
69
|
+
*/
|
|
70
|
+
function activate(pi) {
|
|
71
|
+
var _a, _b, _c, _d, _e;
|
|
72
|
+
var _f;
|
|
73
|
+
(0, react_1.bind)(pi.React);
|
|
74
|
+
const removeStyle = (0, style_1.injectStyle)();
|
|
75
|
+
const store = new initiative_store_1.InitiativeStore(pi);
|
|
76
|
+
pi.registerSettings((0, settings_1.initiativeSettings)(pi, store));
|
|
77
|
+
pi.registerView('inbox', {
|
|
78
|
+
title: () => i18n_1.InitiativeWords.of(pi.ui.language).inboxTitle,
|
|
79
|
+
icon: (_f = pi.ui.icons.ListChecks) !== null && _f !== void 0 ? _f : pi.ui.icons.Sparkles,
|
|
80
|
+
render: () => react_1.React.createElement(inbox_1.Inbox, { pi: pi, store: store }),
|
|
81
|
+
order: 75,
|
|
82
|
+
// Opened from the double's home: under Discover until the user pins it.
|
|
83
|
+
discover: true,
|
|
84
|
+
});
|
|
85
|
+
// The cards of what a turn proposed, in its conversation.
|
|
86
|
+
pi.registerMessageRenderer(initiative_protocol_1.CARD_TYPE, ({ message }) => {
|
|
87
|
+
var _a;
|
|
88
|
+
const ids = (_a = message.details) === null || _a === void 0 ? void 0 : _a.ids;
|
|
89
|
+
return Array.isArray(ids) ? react_1.React.createElement(inbox_1.ProposalCards, { pi: pi, store: store, ids: ids.filter((id) => typeof id === 'string') }) : null;
|
|
90
|
+
});
|
|
91
|
+
// A block of a model without the tool says what its card shows after the turn: not drawn. An older app shows it as code.
|
|
92
|
+
(_a = pi.registerCodeRenderer) === null || _a === void 0 ? void 0 : _a.call(pi, initiative_protocol_1.BLOCK, () => null);
|
|
93
|
+
// What a package proposes for a conversation, above its message box.
|
|
94
|
+
pi.registerComposerAddon({ above: ({ conversation }) => react_1.React.createElement(inbox_1.AboveComposer, { pi: pi, store: store, sessionFile: conversation.sessionFile }) });
|
|
95
|
+
// How far the page goes on its own (the double asking before a task), from the same book. An older app has none.
|
|
96
|
+
(_b = pi.registerInitiative) === null || _b === void 0 ? void 0 : _b.call(pi, (0, page_initiative_1.pageInitiative)(pi, store));
|
|
97
|
+
// What the host told at once, as notices of the page.
|
|
98
|
+
const stopNotices = (0, notices_1.watchNotices)(pi, store);
|
|
99
|
+
// An older app has neither.
|
|
100
|
+
(_c = pi.registerHomeItems) === null || _c === void 0 ? void 0 : _c.call(pi, inboxHome(pi, store));
|
|
101
|
+
(_d = pi.registerChatIcon) === null || _d === void 0 ? void 0 : _d.call(pi, chatIcons(pi, store));
|
|
102
|
+
// How calls of its tools read. On an app before registerToolRenderer, their names.
|
|
103
|
+
(_e = pi.registerToolRenderer) === null || _e === void 0 ? void 0 : _e.call(pi, (name, next) => {
|
|
104
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
105
|
+
switch (name) {
|
|
106
|
+
case initiative_protocol_1.PACE_TOOL:
|
|
107
|
+
return { renderCall: args => ({ verb: words.toolPace, target: typeof args.days === 'number' ? String(args.days) : '' }) };
|
|
108
|
+
case initiative_protocol_1.PROFILE_TOOL:
|
|
109
|
+
return { renderCall: () => ({ verb: words.toolProfile, target: '' }) };
|
|
110
|
+
case initiative_protocol_1.PROPOSE_TOOL:
|
|
111
|
+
return { renderCall: args => ({ verb: words.toolPropose, target: typeof args.title === 'string' ? args.title : '' }) };
|
|
112
|
+
default:
|
|
113
|
+
return next();
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
return () => {
|
|
117
|
+
stopNotices();
|
|
118
|
+
removeStyle();
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=index.js.map
|