@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,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaceUtil = void 0;
|
|
4
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
|
+
const DAY_MS = 24 * 60 * 60000;
|
|
6
|
+
/** When reviews are due, and what they look back at. Pure functions. */
|
|
7
|
+
var PaceUtil;
|
|
8
|
+
(function (PaceUtil) {
|
|
9
|
+
PaceUtil.DEFAULT = { enabled: true, every: 7, time: '20:00', auto: false, learn: true };
|
|
10
|
+
/** The choices of the settings page, in days. */
|
|
11
|
+
PaceUtil.CHOICES = [1, 7, 14, 30];
|
|
12
|
+
function settings(value) {
|
|
13
|
+
const stored = value && typeof value === 'object' ? value : {};
|
|
14
|
+
return {
|
|
15
|
+
enabled: typeof stored.enabled === 'boolean' ? stored.enabled : PaceUtil.DEFAULT.enabled,
|
|
16
|
+
every: typeof stored.every === 'number' && Number.isFinite(stored.every) ? days(stored.every) : PaceUtil.DEFAULT.every,
|
|
17
|
+
time: typeof stored.time === 'string' && parseTime(stored.time) ? stored.time : PaceUtil.DEFAULT.time,
|
|
18
|
+
auto: typeof stored.auto === 'boolean' ? stored.auto : PaceUtil.DEFAULT.auto,
|
|
19
|
+
learn: typeof stored.learn === 'boolean' ? stored.learn : PaceUtil.DEFAULT.learn,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
PaceUtil.settings = settings;
|
|
23
|
+
/** Whole days within the bounds. */
|
|
24
|
+
function days(value) {
|
|
25
|
+
return Math.min(initiative_protocol_1.Limits.MAX_DAYS, Math.max(initiative_protocol_1.Limits.MIN_DAYS, Math.round(value)));
|
|
26
|
+
}
|
|
27
|
+
PaceUtil.days = days;
|
|
28
|
+
/** `HH:MM` as hours and minutes; undefined for another text. */
|
|
29
|
+
function parseTime(text) {
|
|
30
|
+
const match = /^(\d{1,2}):(\d{2})$/.exec(text.trim());
|
|
31
|
+
if (!match) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
const hours = Number(match[1]);
|
|
35
|
+
const minutes = Number(match[2]);
|
|
36
|
+
return hours < 24 && minutes < 60 ? { hours, minutes } : undefined;
|
|
37
|
+
}
|
|
38
|
+
PaceUtil.parseTime = parseTime;
|
|
39
|
+
/** The next review: `every` days after the last, at the time of the settings. */
|
|
40
|
+
function next(settings, last) {
|
|
41
|
+
var _a;
|
|
42
|
+
const { hours, minutes } = (_a = parseTime(settings.time)) !== null && _a !== void 0 ? _a : { hours: 20, minutes: 0 };
|
|
43
|
+
const day = new Date(last + settings.every * DAY_MS);
|
|
44
|
+
day.setHours(hours, minutes, 0, 0);
|
|
45
|
+
return day.getTime();
|
|
46
|
+
}
|
|
47
|
+
PaceUtil.next = next;
|
|
48
|
+
function due(settings, last, now) {
|
|
49
|
+
return settings.enabled && last !== undefined && now >= next(settings, last);
|
|
50
|
+
}
|
|
51
|
+
PaceUtil.due = due;
|
|
52
|
+
/** Since when a review looks: the last one, at least LOOK_BACK_DAYS and at most MAX_DAYS back. */
|
|
53
|
+
function since(last, now) {
|
|
54
|
+
const earliest = now - initiative_protocol_1.Limits.MAX_DAYS * DAY_MS;
|
|
55
|
+
const latest = now - initiative_protocol_1.Limits.LOOK_BACK_DAYS * DAY_MS;
|
|
56
|
+
return Math.max(earliest, Math.min(latest, last !== null && last !== void 0 ? last : latest));
|
|
57
|
+
}
|
|
58
|
+
PaceUtil.since = since;
|
|
59
|
+
})(PaceUtil || (exports.PaceUtil = PaceUtil = {}));
|
|
60
|
+
//# sourceMappingURL=pace-util.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WebExtensionAPI, WebInitiative } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import type { InitiativeStore } from './initiative-store';
|
|
3
|
+
/**
|
|
4
|
+
* How far the page goes on its own (WebExtensionAPI.registerInitiative), from the book of the host: its kinds are
|
|
5
|
+
* defined before each call (cheap, and the host forgets them when it restarts), what the user answers is recorded, the
|
|
6
|
+
* user's switch kept as a level they chose; the page hears when a level changed.
|
|
7
|
+
*/
|
|
8
|
+
export declare function pageInitiative(pi: WebExtensionAPI, store: InitiativeStore): WebInitiative;
|
|
9
|
+
//# sourceMappingURL=page-initiative.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pageInitiative = pageInitiative;
|
|
4
|
+
/** The package that owns the kinds of the page (the double starting a task). */
|
|
5
|
+
const PAGE = '@celljs/ta-web';
|
|
6
|
+
/**
|
|
7
|
+
* How far the page goes on its own (WebExtensionAPI.registerInitiative), from the book of the host: its kinds are
|
|
8
|
+
* defined before each call (cheap, and the host forgets them when it restarts), what the user answers is recorded, the
|
|
9
|
+
* user's switch kept as a level they chose; the page hears when a level changed.
|
|
10
|
+
*/
|
|
11
|
+
function pageInitiative(pi, store) {
|
|
12
|
+
const define = (kind) => pi.callHost('defineKind', { ...kind, owner: PAGE });
|
|
13
|
+
/** The levels of the kinds, to tell the page only when one changed. */
|
|
14
|
+
const levels = () => JSON.stringify(store.state.kinds.map(status => { var _a; return [status.kind.id, status.level, (_a = status.locked) !== null && _a !== void 0 ? _a : '']; }));
|
|
15
|
+
return {
|
|
16
|
+
level: async (kind) => {
|
|
17
|
+
await define(kind);
|
|
18
|
+
return pi.callHost('level', kind.id);
|
|
19
|
+
},
|
|
20
|
+
setLevel: async (kind, level) => {
|
|
21
|
+
await define(kind);
|
|
22
|
+
await store.setLevel(kind.id, level);
|
|
23
|
+
},
|
|
24
|
+
record: async (kind, outcome, title) => {
|
|
25
|
+
await define(kind);
|
|
26
|
+
await pi.callHost('record', { kind: kind.id, title, why: '', outcome });
|
|
27
|
+
},
|
|
28
|
+
subscribe: listener => {
|
|
29
|
+
let last = levels();
|
|
30
|
+
return store.subscribe(() => {
|
|
31
|
+
const now = levels();
|
|
32
|
+
if (now !== last) {
|
|
33
|
+
last = now;
|
|
34
|
+
listener();
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=page-initiative.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { TaExtensionHost } from '@celljs/ta-protocol';
|
|
2
|
+
import { type Decision, type InitiativeKind, type KindStatus, type Level, type Mode, type Offered, type Proposal, type ProposalInput } from './initiative-protocol';
|
|
3
|
+
export type BookHost = Pick<TaExtensionHost, 'getExtensionData' | 'setExtensionData' | 'callPackageHost' | 'getServerInfo' | 'openSession' | 'setSessionName' | 'prompt' | 'listSessions' | 'sessionCwd'> & Partial<Pick<TaExtensionHost, 'presence'>>;
|
|
4
|
+
/**
|
|
5
|
+
* The proposals of every package and the levels of their kinds: the only writer of both. A proposal is done at once,
|
|
6
|
+
* asked, kept for the brief or dropped by the level of its kind, which moves with what the user does of them
|
|
7
|
+
* (LevelUtil); what the user accepts runs its action, what Ta did on its own can be undone a while.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ProposalBook {
|
|
10
|
+
protected readonly host: BookHost;
|
|
11
|
+
protected readonly now: () => number;
|
|
12
|
+
protected proposals: Proposal[];
|
|
13
|
+
protected readonly defined: Map<string, InitiativeKind>;
|
|
14
|
+
protected queue: Promise<unknown>;
|
|
15
|
+
/** Words to conversations, told once the work that decided them is done (later). */
|
|
16
|
+
protected readonly telling: (() => Promise<unknown>)[];
|
|
17
|
+
constructor(host: BookHost, kinds?: readonly InitiativeKind[], now?: () => number);
|
|
18
|
+
load(): 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
|
+
/** The proposals as they are now, newest last. */
|
|
31
|
+
list(): Proposal[];
|
|
32
|
+
protected status(id: string, mode: Mode, locks: Record<string, Level>): KindStatus;
|
|
33
|
+
/** One no package defined (a model named it): asked, never done on its own, titled as its latest proposal said. */
|
|
34
|
+
protected kind(id: string): InitiativeKind;
|
|
35
|
+
/** Runs what a proposal does: `done` with the way to undo it, or `failed`. */
|
|
36
|
+
protected run(proposal: Proposal, auto: boolean): Promise<void>;
|
|
37
|
+
/** A prompt accepted: run in a new conversation of its directory, named for it. */
|
|
38
|
+
protected prompt(proposal: Proposal, prompt: string, cwd?: string): Promise<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Words to a conversation once the work of the book is done: told inside it, the turn they start would ask the book
|
|
41
|
+
* (the levels of its section) and wait for it. Not told: the proposal failed.
|
|
42
|
+
*/
|
|
43
|
+
protected later(proposal: Proposal, sessionFile: string, clientMessageId: string, context: string, prompt: string): void;
|
|
44
|
+
protected serialThenTell<T>(work: () => Promise<T>): Promise<T>;
|
|
45
|
+
/** Words to a conversation, as the user's, after its turn if it works: open, or opened again from its file. */
|
|
46
|
+
protected tell(sessionFile: string, clientMessageId: string, context: string, prompt: string): Promise<void>;
|
|
47
|
+
/** Whether the user is told of a proposal at once (NotifyUtil.tell). */
|
|
48
|
+
protected tellNow(proposal: Proposal): Promise<boolean>;
|
|
49
|
+
/** A proposal that waits no longer, since what it would do is no longer needed (the turn it would fix went well since). */
|
|
50
|
+
expireKey(key: string): Promise<void>;
|
|
51
|
+
/** Proposals no longer waited for. */
|
|
52
|
+
protected expire(): void;
|
|
53
|
+
protected find(id: string): Proposal;
|
|
54
|
+
protected lock(kind: string, level: Level | null): Promise<void>;
|
|
55
|
+
protected mode(): Promise<Mode>;
|
|
56
|
+
protected locks(): Promise<Record<string, Level>>;
|
|
57
|
+
protected save(): Promise<void>;
|
|
58
|
+
protected read(key: string): Promise<unknown>;
|
|
59
|
+
protected serial<T>(work: () => Promise<T>): Promise<T>;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=proposal-book.d.ts.map
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProposalBook = void 0;
|
|
4
|
+
const node_crypto_1 = require("node:crypto");
|
|
5
|
+
const inbox_util_1 = require("./inbox-util");
|
|
6
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
7
|
+
const level_util_1 = require("./level-util");
|
|
8
|
+
const notify_util_1 = require("./notify-util");
|
|
9
|
+
const DAY_MS = 24 * 60 * 60000;
|
|
10
|
+
/**
|
|
11
|
+
* The proposals of every package and the levels of their kinds: the only writer of both. A proposal is done at once,
|
|
12
|
+
* asked, kept for the brief or dropped by the level of its kind, which moves with what the user does of them
|
|
13
|
+
* (LevelUtil); what the user accepts runs its action, what Ta did on its own can be undone a while.
|
|
14
|
+
*/
|
|
15
|
+
class ProposalBook {
|
|
16
|
+
constructor(host, kinds = [], now = Date.now) {
|
|
17
|
+
this.host = host;
|
|
18
|
+
this.now = now;
|
|
19
|
+
this.proposals = [];
|
|
20
|
+
this.defined = new Map();
|
|
21
|
+
this.queue = Promise.resolve();
|
|
22
|
+
/** Words to conversations, told once the work that decided them is done (later). */
|
|
23
|
+
this.telling = [];
|
|
24
|
+
for (const kind of kinds) {
|
|
25
|
+
this.defined.set(kind.id, kind);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
async load() {
|
|
29
|
+
const stored = await this.read(initiative_protocol_1.Keys.PROPOSALS);
|
|
30
|
+
this.proposals = Array.isArray(stored) ? stored.filter(valid) : [];
|
|
31
|
+
}
|
|
32
|
+
defineKind(kind) {
|
|
33
|
+
return this.serial(async () => {
|
|
34
|
+
this.defined.set(checkKind(kind).id, kind);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
kinds() {
|
|
38
|
+
return this.serial(async () => {
|
|
39
|
+
const [mode, locks] = await Promise.all([this.mode(), this.locks()]);
|
|
40
|
+
const ids = new Set([...this.defined.keys(), ...this.proposals.map(proposal => proposal.kind)]);
|
|
41
|
+
return [...ids].map(id => this.status(id, mode, locks));
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
level(kind) {
|
|
45
|
+
return this.serial(async () => this.status(String(kind), await this.mode(), await this.locks()).level);
|
|
46
|
+
}
|
|
47
|
+
offer(input) {
|
|
48
|
+
return this.serialThenTell(async () => {
|
|
49
|
+
var _a;
|
|
50
|
+
const { inTurn, done, ...rest } = input !== null && input !== void 0 ? input : {};
|
|
51
|
+
const checked = checkInput(rest);
|
|
52
|
+
this.expire();
|
|
53
|
+
if (done) {
|
|
54
|
+
// The turn did it already: kept as done on its own, which the user may undo.
|
|
55
|
+
const { level } = this.status(checked.kind, await this.mode(), await this.locks());
|
|
56
|
+
const now = this.now();
|
|
57
|
+
const proposal = { ...checked, id: newId(), level, state: 'done', auto: true, at: now, decidedAt: now };
|
|
58
|
+
this.proposals.push(proposal);
|
|
59
|
+
await this.save();
|
|
60
|
+
return { id: proposal.id, delivered: 'act', state: 'done' };
|
|
61
|
+
}
|
|
62
|
+
const waiting = checked.key ? this.proposals.find(one => one.key === checked.key && (0, inbox_util_1.waits)(one)) : undefined;
|
|
63
|
+
if (waiting) {
|
|
64
|
+
return { id: waiting.id, delivered: waiting.level, state: waiting.state };
|
|
65
|
+
}
|
|
66
|
+
let { level } = this.status(checked.kind, await this.mode(), await this.locks());
|
|
67
|
+
if (level === 'off') {
|
|
68
|
+
return { delivered: 'dropped' };
|
|
69
|
+
}
|
|
70
|
+
// Nothing to do on its own without an action: asked instead.
|
|
71
|
+
if (level === 'act' && !checked.action) {
|
|
72
|
+
level = 'ask';
|
|
73
|
+
}
|
|
74
|
+
const proposal = { ...checked, id: newId(), level, state: level === 'digest' ? 'digest' : 'pending', at: this.now() };
|
|
75
|
+
if (await this.tellNow(proposal)) {
|
|
76
|
+
proposal.notifiedAt = proposal.at;
|
|
77
|
+
}
|
|
78
|
+
this.proposals.push(proposal);
|
|
79
|
+
if (level === 'act' && inTurn && ((_a = checked.action) === null || _a === void 0 ? void 0 : _a.type) === 'session') {
|
|
80
|
+
// The turn that offers it does it now.
|
|
81
|
+
proposal.state = 'done';
|
|
82
|
+
proposal.auto = true;
|
|
83
|
+
proposal.decidedAt = proposal.at;
|
|
84
|
+
}
|
|
85
|
+
else if (level === 'act') {
|
|
86
|
+
await this.run(proposal, true);
|
|
87
|
+
}
|
|
88
|
+
await this.save();
|
|
89
|
+
return { id: proposal.id, delivered: level, state: proposal.state, ...(proposal.error ? { error: proposal.error } : {}) };
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
record(input) {
|
|
93
|
+
return this.serial(async () => {
|
|
94
|
+
const { outcome, ...rest } = input;
|
|
95
|
+
const checked = checkInput(rest);
|
|
96
|
+
const { level } = this.status(checked.kind, await this.mode(), await this.locks());
|
|
97
|
+
const now = this.now();
|
|
98
|
+
this.proposals.push({ ...checked, id: newId(), level, state: outcome === 'accepted' ? 'done' : 'declined', at: now, decidedAt: now });
|
|
99
|
+
await this.save();
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
decide(id, decision) {
|
|
103
|
+
return this.serialThenTell(async () => {
|
|
104
|
+
this.expire();
|
|
105
|
+
const proposal = this.find(id);
|
|
106
|
+
if (!(0, inbox_util_1.waits)(proposal)) {
|
|
107
|
+
throw new Error('It was decided already.');
|
|
108
|
+
}
|
|
109
|
+
if (decision === 'always' || decision === 'never') {
|
|
110
|
+
await this.lock(proposal.kind, decision === 'always' ? 'act' : 'off');
|
|
111
|
+
}
|
|
112
|
+
if (decision === 'accept' || decision === 'always') {
|
|
113
|
+
await this.run(proposal, false);
|
|
114
|
+
}
|
|
115
|
+
else if (decision === 'decline' || decision === 'never') {
|
|
116
|
+
proposal.state = 'declined';
|
|
117
|
+
proposal.decidedAt = this.now();
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
throw new Error('Decide with accept, decline, always or never.');
|
|
121
|
+
}
|
|
122
|
+
await this.save();
|
|
123
|
+
return { ...proposal };
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
undo(id) {
|
|
127
|
+
return this.serialThenTell(async () => {
|
|
128
|
+
var _a;
|
|
129
|
+
const proposal = this.find(id);
|
|
130
|
+
if (proposal.state !== 'done' || !proposal.undo) {
|
|
131
|
+
throw new Error('This cannot be undone.');
|
|
132
|
+
}
|
|
133
|
+
if (this.now() - ((_a = proposal.decidedAt) !== null && _a !== void 0 ? _a : proposal.at) > initiative_protocol_1.Limits.UNDO_DAYS * DAY_MS) {
|
|
134
|
+
throw new Error(`It was done more than ${initiative_protocol_1.Limits.UNDO_DAYS} days ago.`);
|
|
135
|
+
}
|
|
136
|
+
const undo = proposal.undo;
|
|
137
|
+
if ('type' in undo && undo.type === 'session') {
|
|
138
|
+
await this.tell(undo.sessionFile, `ta-initiative-undo:${proposal.id}`, `The user undoes what you did on your own: ${proposal.title}. Undo it, and say in a line that it is undone.`, undo.prompt);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
const { package: name, method, params } = undo;
|
|
142
|
+
await this.host.callPackageHost(name, method, params);
|
|
143
|
+
}
|
|
144
|
+
proposal.state = 'undone';
|
|
145
|
+
proposal.decidedAt = this.now();
|
|
146
|
+
await this.save();
|
|
147
|
+
return { ...proposal };
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
setLevel(kind, level) {
|
|
151
|
+
return this.serial(async () => {
|
|
152
|
+
if (level !== null && !initiative_protocol_1.LEVELS.includes(level)) {
|
|
153
|
+
throw new Error(`A level is one of ${initiative_protocol_1.LEVELS.join(', ')}.`);
|
|
154
|
+
}
|
|
155
|
+
await this.lock(String(kind), level);
|
|
156
|
+
return this.status(String(kind), await this.mode(), await this.locks());
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
setMode(mode) {
|
|
160
|
+
return this.serial(async () => {
|
|
161
|
+
if (!initiative_protocol_1.MODES.includes(mode)) {
|
|
162
|
+
throw new Error(`A mode is one of ${initiative_protocol_1.MODES.join(', ')}.`);
|
|
163
|
+
}
|
|
164
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.MODE, mode);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/** The proposals as they are now, newest last. */
|
|
168
|
+
list() {
|
|
169
|
+
return this.proposals.map(proposal => ({ ...proposal }));
|
|
170
|
+
}
|
|
171
|
+
status(id, mode, locks) {
|
|
172
|
+
const kind = this.kind(id);
|
|
173
|
+
const own = this.proposals.filter(proposal => proposal.kind === id);
|
|
174
|
+
const { level, reason } = level_util_1.LevelUtil.level(kind, mode, own, locks[id]);
|
|
175
|
+
return { kind, level, ...(locks[id] ? { locked: locks[id] } : {}), reason, waiting: own.filter(inbox_util_1.waits).length };
|
|
176
|
+
}
|
|
177
|
+
/** One no package defined (a model named it): asked, never done on its own, titled as its latest proposal said. */
|
|
178
|
+
kind(id) {
|
|
179
|
+
var _a;
|
|
180
|
+
var _b;
|
|
181
|
+
const defined = this.defined.get(id);
|
|
182
|
+
if (defined) {
|
|
183
|
+
return defined;
|
|
184
|
+
}
|
|
185
|
+
const title = (_b = (_a = [...this.proposals].reverse().find(proposal => proposal.kind === id && proposal.kindTitle)) === null || _a === void 0 ? void 0 : _a.kindTitle) !== null && _b !== void 0 ? _b : id;
|
|
186
|
+
return { id, owner: '', title: { en: title, zh: title }, reversible: false, level: 'ask' };
|
|
187
|
+
}
|
|
188
|
+
/** Runs what a proposal does: `done` with the way to undo it, or `failed`. */
|
|
189
|
+
async run(proposal, auto) {
|
|
190
|
+
var _a;
|
|
191
|
+
proposal.decidedAt = this.now();
|
|
192
|
+
proposal.auto = auto || undefined;
|
|
193
|
+
try {
|
|
194
|
+
const action = proposal.action;
|
|
195
|
+
if ((action === null || action === void 0 ? void 0 : action.type) === 'call') {
|
|
196
|
+
const result = await this.host.callPackageHost(action.package, action.method, action.params);
|
|
197
|
+
if (proposal.undo) {
|
|
198
|
+
proposal.undo = resolveUndo(proposal.undo, result);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
else if ((action === null || action === void 0 ? void 0 : action.type) === 'prompt') {
|
|
202
|
+
proposal.sessionFile = await this.prompt(proposal, action.prompt, (_a = action.cwd) !== null && _a !== void 0 ? _a : proposal.cwd);
|
|
203
|
+
}
|
|
204
|
+
else if ((action === null || action === void 0 ? void 0 : action.type) === 'session') {
|
|
205
|
+
const why = auto ? 'You may do this on your own now' : 'The user accepted what you proposed';
|
|
206
|
+
this.later(proposal, action.sessionFile, `ta-initiative:${proposal.id}`, `${why}: ${proposal.title}. Do it now.`, action.prompt);
|
|
207
|
+
}
|
|
208
|
+
proposal.state = 'done';
|
|
209
|
+
}
|
|
210
|
+
catch (error) {
|
|
211
|
+
proposal.state = 'failed';
|
|
212
|
+
proposal.error = error instanceof Error ? error.message : String(error);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/** A prompt accepted: run in a new conversation of its directory, named for it. */
|
|
216
|
+
async prompt(proposal, prompt, cwd) {
|
|
217
|
+
var _a;
|
|
218
|
+
var _b;
|
|
219
|
+
const session = await this.host.openSession({ cwd: cwd !== null && cwd !== void 0 ? cwd : (await this.host.getServerInfo()).cwd });
|
|
220
|
+
await this.host.setSessionName(session.sessionId, proposal.title).catch(() => undefined);
|
|
221
|
+
await this.host.prompt(session.sessionId, { clientMessageId: `ta-initiative:${proposal.id}`, message: prompt });
|
|
222
|
+
return (_b = session.sessionFile) !== null && _b !== void 0 ? _b : (_a = (await this.host.listSessions()).find(info => info.sessionId === session.sessionId)) === null || _a === void 0 ? void 0 : _a.sessionFile;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Words to a conversation once the work of the book is done: told inside it, the turn they start would ask the book
|
|
226
|
+
* (the levels of its section) and wait for it. Not told: the proposal failed.
|
|
227
|
+
*/
|
|
228
|
+
later(proposal, sessionFile, clientMessageId, context, prompt) {
|
|
229
|
+
this.telling.push(() => this.tell(sessionFile, clientMessageId, context, prompt).catch(error => this.serial(async () => {
|
|
230
|
+
const failed = this.proposals.find(one => one.id === proposal.id);
|
|
231
|
+
if (failed) {
|
|
232
|
+
failed.state = 'failed';
|
|
233
|
+
failed.error = error instanceof Error ? error.message : String(error);
|
|
234
|
+
await this.save();
|
|
235
|
+
}
|
|
236
|
+
})));
|
|
237
|
+
}
|
|
238
|
+
async serialThenTell(work) {
|
|
239
|
+
const result = await this.serial(work);
|
|
240
|
+
for (const tell of this.telling.splice(0)) {
|
|
241
|
+
await tell();
|
|
242
|
+
}
|
|
243
|
+
return result;
|
|
244
|
+
}
|
|
245
|
+
/** Words to a conversation, as the user's, after its turn if it works: open, or opened again from its file. */
|
|
246
|
+
async tell(sessionFile, clientMessageId, context, prompt) {
|
|
247
|
+
var _a;
|
|
248
|
+
let session = (await this.host.listSessions()).find(info => info.sessionFile === sessionFile);
|
|
249
|
+
if (!session) {
|
|
250
|
+
const cwd = (_a = (await this.host.sessionCwd(sessionFile))) !== null && _a !== void 0 ? _a : (await this.host.getServerInfo()).cwd;
|
|
251
|
+
session = await this.host.openSession({ cwd, sessionFile });
|
|
252
|
+
}
|
|
253
|
+
await this.host.prompt(session.sessionId, { clientMessageId, message: `<context>\n${context}\n</context>\n${prompt}`, streamingBehavior: 'followUp' });
|
|
254
|
+
}
|
|
255
|
+
/** Whether the user is told of a proposal at once (NotifyUtil.tell). */
|
|
256
|
+
async tellNow(proposal) {
|
|
257
|
+
var _a, _b;
|
|
258
|
+
var _c;
|
|
259
|
+
const now = this.now();
|
|
260
|
+
return notify_util_1.NotifyUtil.tell({
|
|
261
|
+
proposal,
|
|
262
|
+
pages: (_c = (_b = (_a = this.host).presence) === null || _b === void 0 ? void 0 : _b.call(_a).pages) !== null && _c !== void 0 ? _c : 0,
|
|
263
|
+
quiet: notify_util_1.NotifyUtil.quiet(await this.read(initiative_protocol_1.Keys.QUIET)),
|
|
264
|
+
mode: await this.mode(),
|
|
265
|
+
told: notify_util_1.NotifyUtil.toldToday(this.proposals, now),
|
|
266
|
+
now,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/** A proposal that waits no longer, since what it would do is no longer needed (the turn it would fix went well since). */
|
|
270
|
+
expireKey(key) {
|
|
271
|
+
return this.serial(async () => {
|
|
272
|
+
const waiting = this.proposals.filter(proposal => proposal.key === key && (0, inbox_util_1.waits)(proposal));
|
|
273
|
+
for (const proposal of waiting) {
|
|
274
|
+
proposal.state = 'expired';
|
|
275
|
+
}
|
|
276
|
+
if (waiting.length > 0) {
|
|
277
|
+
await this.save();
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/** Proposals no longer waited for. */
|
|
282
|
+
expire() {
|
|
283
|
+
var _a;
|
|
284
|
+
const now = this.now();
|
|
285
|
+
for (const proposal of this.proposals) {
|
|
286
|
+
if ((0, inbox_util_1.waits)(proposal) && now > ((_a = proposal.expiresAt) !== null && _a !== void 0 ? _a : proposal.at + initiative_protocol_1.Limits.EXPIRE_DAYS * DAY_MS)) {
|
|
287
|
+
proposal.state = 'expired';
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
find(id) {
|
|
292
|
+
const proposal = this.proposals.find(one => one.id === id);
|
|
293
|
+
if (!proposal) {
|
|
294
|
+
throw new Error(`No proposal ${id}.`);
|
|
295
|
+
}
|
|
296
|
+
return proposal;
|
|
297
|
+
}
|
|
298
|
+
async lock(kind, level) {
|
|
299
|
+
const locks = { ...(await this.locks()) };
|
|
300
|
+
if (level === null) {
|
|
301
|
+
delete locks[kind];
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
locks[kind] = level;
|
|
305
|
+
}
|
|
306
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.LOCKS, locks);
|
|
307
|
+
}
|
|
308
|
+
async mode() {
|
|
309
|
+
const mode = await this.read(initiative_protocol_1.Keys.MODE);
|
|
310
|
+
return initiative_protocol_1.MODES.includes(mode) ? mode : 'balanced';
|
|
311
|
+
}
|
|
312
|
+
async locks() {
|
|
313
|
+
const stored = await this.read(initiative_protocol_1.Keys.LOCKS);
|
|
314
|
+
const locks = {};
|
|
315
|
+
if (stored && typeof stored === 'object') {
|
|
316
|
+
for (const [kind, level] of Object.entries(stored)) {
|
|
317
|
+
if (initiative_protocol_1.LEVELS.includes(level)) {
|
|
318
|
+
locks[kind] = level;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return locks;
|
|
323
|
+
}
|
|
324
|
+
async save() {
|
|
325
|
+
this.proposals = this.proposals.slice(-initiative_protocol_1.Limits.PROPOSALS_KEPT);
|
|
326
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.PROPOSALS, this.proposals);
|
|
327
|
+
}
|
|
328
|
+
read(key) {
|
|
329
|
+
return this.host.getExtensionData(initiative_protocol_1.NAME, key).catch(() => undefined);
|
|
330
|
+
}
|
|
331
|
+
serial(work) {
|
|
332
|
+
const next = this.queue.then(work, work);
|
|
333
|
+
this.queue = next.catch(() => undefined);
|
|
334
|
+
return next;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
exports.ProposalBook = ProposalBook;
|
|
338
|
+
function resolveUndo(undo, result) {
|
|
339
|
+
if ('type' in undo && undo.type === 'session') {
|
|
340
|
+
return undo;
|
|
341
|
+
}
|
|
342
|
+
const call = undo;
|
|
343
|
+
const id = result && typeof result === 'object' ? result.id : undefined;
|
|
344
|
+
return { ...call, params: call.params.map(param => (param === initiative_protocol_1.RESULT_ID ? id : param)) };
|
|
345
|
+
}
|
|
346
|
+
function newId() {
|
|
347
|
+
return `prop_${(0, node_crypto_1.randomBytes)(4).toString('hex')}`;
|
|
348
|
+
}
|
|
349
|
+
function valid(value) {
|
|
350
|
+
const proposal = value;
|
|
351
|
+
return !!proposal && typeof proposal.id === 'string' && typeof proposal.kind === 'string' && typeof proposal.state === 'string';
|
|
352
|
+
}
|
|
353
|
+
function checkKind(kind) {
|
|
354
|
+
var _a;
|
|
355
|
+
if (!kind || typeof kind.id !== 'string' || !/^[\w-]+\.[\w.-]+$/.test(kind.id)) {
|
|
356
|
+
throw new Error('A kind needs an id as <area>.<verb>, such as cron.add.');
|
|
357
|
+
}
|
|
358
|
+
if (!initiative_protocol_1.LEVELS.includes(kind.level) || typeof kind.reversible !== 'boolean' || typeof ((_a = kind.title) === null || _a === void 0 ? void 0 : _a.en) !== 'string') {
|
|
359
|
+
throw new Error('A kind needs a title { en, zh }, reversible and a level.');
|
|
360
|
+
}
|
|
361
|
+
return kind;
|
|
362
|
+
}
|
|
363
|
+
function checkInput(input) {
|
|
364
|
+
if (!input || typeof input.kind !== 'string' || !input.kind || typeof input.title !== 'string' || !input.title.trim() || typeof input.why !== 'string') {
|
|
365
|
+
throw new Error('A proposal needs a kind, a title and why.');
|
|
366
|
+
}
|
|
367
|
+
if (input.action && !validAction(input.action)) {
|
|
368
|
+
throw new Error('An action is { type: "call", package, method, params }, { type: "prompt", prompt, cwd? } or { type: "session", sessionFile, prompt }.');
|
|
369
|
+
}
|
|
370
|
+
if (input.undo && !validUndo(input.undo)) {
|
|
371
|
+
throw new Error('An undo is { package, method, params } or { type: "session", sessionFile, prompt }.');
|
|
372
|
+
}
|
|
373
|
+
return {
|
|
374
|
+
...input,
|
|
375
|
+
title: input.title.trim().slice(0, 200),
|
|
376
|
+
why: input.why.trim().slice(0, 400),
|
|
377
|
+
...(typeof input.kindTitle === 'string' ? { kindTitle: input.kindTitle.trim().slice(0, 80) } : {}),
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
function validAction(action) {
|
|
381
|
+
switch (action.type) {
|
|
382
|
+
case 'call':
|
|
383
|
+
return typeof action.package === 'string' && typeof action.method === 'string' && Array.isArray(action.params);
|
|
384
|
+
case 'prompt':
|
|
385
|
+
return typeof action.prompt === 'string';
|
|
386
|
+
case 'session':
|
|
387
|
+
return typeof action.sessionFile === 'string' && typeof action.prompt === 'string';
|
|
388
|
+
default:
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
function validUndo(undo) {
|
|
393
|
+
return 'type' in undo && undo.type === 'session'
|
|
394
|
+
? typeof undo.sessionFile === 'string' && typeof undo.prompt === 'string'
|
|
395
|
+
: typeof undo.package === 'string' && typeof undo.method === 'string' && Array.isArray(undo.params);
|
|
396
|
+
}
|
|
397
|
+
//# sourceMappingURL=proposal-book.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WebExtensionUI as WebUI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import type * as ReactModule from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The React of the page, which a web extension cannot import: `activate` binds it before anything
|
|
5
|
+
* renders. The JSX of this package compiles to `React.createElement` (tsconfig.json).
|
|
6
|
+
*/
|
|
7
|
+
export declare let React: typeof ReactModule;
|
|
8
|
+
export declare function bind(react: typeof ReactModule): void;
|
|
9
|
+
/** A React hook: `ui.useBusy` of the page, so that what waits on ta serve says so (a spinner once it took a moment). */
|
|
10
|
+
export declare function useBusy(ui: WebUI): ReturnType<WebUI['useBusy']>;
|
|
11
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.React = void 0;
|
|
4
|
+
exports.bind = bind;
|
|
5
|
+
exports.useBusy = useBusy;
|
|
6
|
+
function bind(react) {
|
|
7
|
+
exports.React = react;
|
|
8
|
+
}
|
|
9
|
+
/** In a Ta app older than `ui.useBusy`: never busy. */
|
|
10
|
+
const idle = () => [false, async (action) => await action()];
|
|
11
|
+
/** A React hook: `ui.useBusy` of the page, so that what waits on ta serve says so (a spinner once it took a moment). */
|
|
12
|
+
function useBusy(ui) {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = ui.useBusy) !== null && _a !== void 0 ? _a : idle)();
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { TaExtensionHost, TaPackageService, TaSessionInfo } from '@celljs/ta-protocol';
|
|
2
|
+
import { type ReviewStatus } from './initiative-protocol';
|
|
3
|
+
export type ReviewHostApi = Pick<TaExtensionHost, 'getServerInfo' | 'listSessions' | 'openSession' | 'setSessionName' | 'prompt' | 'sessionCwd' | 'getExtensionData' | 'setExtensionData'>;
|
|
4
|
+
/**
|
|
5
|
+
* The host of the package in the Ta service: it asks Ta for a review when its time came, in the conversation of the
|
|
6
|
+
* reviews (one for good, where the user answers and Ta remembers), and keeps the settings. What a review reads is
|
|
7
|
+
* given by the pi extension of that conversation (extension.ts), which reaches the hosts of ta-recall and ta-cron.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ReviewHost implements TaPackageService {
|
|
10
|
+
protected readonly host: ReviewHostApi;
|
|
11
|
+
protected readonly now: () => number;
|
|
12
|
+
protected timers: ReturnType<typeof setTimeout>[];
|
|
13
|
+
protected reviewing: Promise<string | undefined> | undefined;
|
|
14
|
+
protected queue: Promise<unknown>;
|
|
15
|
+
constructor(host: ReviewHostApi, now?: () => number);
|
|
16
|
+
start(): void;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
reviewStatus(): Promise<ReviewStatus>;
|
|
19
|
+
reviewNow(): Promise<string | undefined>;
|
|
20
|
+
setPace(days: number, reason: string): Promise<number>;
|
|
21
|
+
setProfile(profile: string): Promise<string>;
|
|
22
|
+
/** A review when its time came; the first start only counts from now. */
|
|
23
|
+
check(): Promise<void>;
|
|
24
|
+
/** One at a time: the message that asks for it, in the conversation of the reviews. */
|
|
25
|
+
protected review(): Promise<string | undefined>;
|
|
26
|
+
protected startReview(): Promise<string | undefined>;
|
|
27
|
+
/** The conversation of the reviews: open, opened again from its file, or a new one named for it. */
|
|
28
|
+
protected session(sessions: TaSessionInfo[], file: string | undefined): Promise<TaSessionInfo>;
|
|
29
|
+
protected read(key: string): Promise<unknown>;
|
|
30
|
+
protected serial<T>(work: () => Promise<T>): Promise<T>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=review-service.d.ts.map
|