@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,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitiativeStore = void 0;
|
|
4
|
+
exports.useInitiative = useInitiative;
|
|
5
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
6
|
+
const notify_util_1 = require("./notify-util");
|
|
7
|
+
const pace_util_1 = require("./pace-util");
|
|
8
|
+
const KEYS = [initiative_protocol_1.Keys.SETTINGS, initiative_protocol_1.Keys.LAST, initiative_protocol_1.Keys.FILE, initiative_protocol_1.Keys.NOTE, initiative_protocol_1.Keys.PROFILE, initiative_protocol_1.Keys.MODE, initiative_protocol_1.Keys.LOCKS, initiative_protocol_1.Keys.PROPOSALS, initiative_protocol_1.Keys.SEEN, initiative_protocol_1.Keys.QUIET];
|
|
9
|
+
/**
|
|
10
|
+
* What the page shows of the package (the suggestions, the levels, the reviews): asked of the host and read from the
|
|
11
|
+
* data of the package, again as any device or the host changes it. What the user does goes to the host.
|
|
12
|
+
*/
|
|
13
|
+
class InitiativeStore {
|
|
14
|
+
constructor(pi) {
|
|
15
|
+
this.pi = pi;
|
|
16
|
+
this.current = {
|
|
17
|
+
review: { settings: pace_util_1.PaceUtil.DEFAULT },
|
|
18
|
+
kinds: [],
|
|
19
|
+
proposals: [],
|
|
20
|
+
mode: 'balanced',
|
|
21
|
+
seen: 0,
|
|
22
|
+
quiet: notify_util_1.NotifyUtil.QUIET,
|
|
23
|
+
loaded: false,
|
|
24
|
+
};
|
|
25
|
+
this.listeners = new Set();
|
|
26
|
+
this.read();
|
|
27
|
+
pi.storage.onChange(keys => keys.some(key => KEYS.includes(key)) && this.read());
|
|
28
|
+
}
|
|
29
|
+
get state() {
|
|
30
|
+
return this.current;
|
|
31
|
+
}
|
|
32
|
+
/** The reviews, as the settings show them. */
|
|
33
|
+
get status() {
|
|
34
|
+
return this.current.review;
|
|
35
|
+
}
|
|
36
|
+
subscribe(listener) {
|
|
37
|
+
this.listeners.add(listener);
|
|
38
|
+
return () => this.listeners.delete(listener);
|
|
39
|
+
}
|
|
40
|
+
/** Changes the settings of the reviews: shown at once, read by the host from the data of the package. */
|
|
41
|
+
async change(patch) {
|
|
42
|
+
const settings = pace_util_1.PaceUtil.settings({ ...this.current.review.settings, ...patch });
|
|
43
|
+
this.set({ ...this.current, review: { ...this.current.review, settings } });
|
|
44
|
+
await this.pi.storage.set(initiative_protocol_1.Keys.SETTINGS, settings);
|
|
45
|
+
}
|
|
46
|
+
/** What Ta knows of the user, as the user wrote it. */
|
|
47
|
+
async saveProfile(profile) {
|
|
48
|
+
const kept = await this.pi.callHost('setProfile', profile);
|
|
49
|
+
this.set({ ...this.current, review: { ...this.current.review, profile: kept || undefined } });
|
|
50
|
+
}
|
|
51
|
+
async decide(id, decision) {
|
|
52
|
+
await this.pi.callHost('decide', id, decision);
|
|
53
|
+
this.read();
|
|
54
|
+
}
|
|
55
|
+
async undo(id) {
|
|
56
|
+
await this.pi.callHost('undo', id);
|
|
57
|
+
this.read();
|
|
58
|
+
}
|
|
59
|
+
async setLevel(kind, level) {
|
|
60
|
+
await this.pi.callHost('setLevel', kind, level);
|
|
61
|
+
this.read();
|
|
62
|
+
}
|
|
63
|
+
async setMode(mode) {
|
|
64
|
+
this.set({ ...this.current, mode });
|
|
65
|
+
await this.pi.callHost('setMode', mode);
|
|
66
|
+
this.read();
|
|
67
|
+
}
|
|
68
|
+
/** The quiet hours: shown at once, read by the host from the data of the package. */
|
|
69
|
+
async setQuiet(patch) {
|
|
70
|
+
const quiet = notify_util_1.NotifyUtil.quiet({ ...this.current.quiet, ...patch });
|
|
71
|
+
this.set({ ...this.current, quiet });
|
|
72
|
+
await this.pi.storage.set(initiative_protocol_1.Keys.QUIET, quiet);
|
|
73
|
+
}
|
|
74
|
+
/** The user looked at the suggestions: the dot of the double's home goes, on every device. */
|
|
75
|
+
see() {
|
|
76
|
+
const newest = this.current.proposals.reduce((at, proposal) => { var _a; return Math.max(at, proposal.at, (_a = proposal.decidedAt) !== null && _a !== void 0 ? _a : 0); }, 0);
|
|
77
|
+
if (newest > this.current.seen) {
|
|
78
|
+
this.set({ ...this.current, seen: newest });
|
|
79
|
+
void this.pi.storage.set(initiative_protocol_1.Keys.SEEN, newest).catch(() => undefined);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
read() {
|
|
83
|
+
void Promise.all([
|
|
84
|
+
this.pi.callHost('reviewStatus').catch(() => undefined),
|
|
85
|
+
this.pi.callHost('kinds').catch(() => undefined),
|
|
86
|
+
this.pi.storage.get(initiative_protocol_1.Keys.PROPOSALS).catch(() => undefined),
|
|
87
|
+
this.pi.storage.get(initiative_protocol_1.Keys.MODE).catch(() => undefined),
|
|
88
|
+
this.pi.storage.get(initiative_protocol_1.Keys.SEEN).catch(() => undefined),
|
|
89
|
+
this.pi.storage.get(initiative_protocol_1.Keys.QUIET).catch(() => undefined),
|
|
90
|
+
]).then(([review, kinds, proposals, mode, seen, quiet]) => this.set({
|
|
91
|
+
review: review ? { ...review, settings: pace_util_1.PaceUtil.settings(review.settings) } : this.current.review,
|
|
92
|
+
kinds: Array.isArray(kinds) ? kinds : this.current.kinds,
|
|
93
|
+
proposals: Array.isArray(proposals) ? proposals : [],
|
|
94
|
+
mode: initiative_protocol_1.MODES.includes(mode) ? mode : 'balanced',
|
|
95
|
+
seen: typeof seen === 'number' ? seen : 0,
|
|
96
|
+
quiet: notify_util_1.NotifyUtil.quiet(quiet),
|
|
97
|
+
loaded: true,
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
set(state) {
|
|
101
|
+
this.current = state;
|
|
102
|
+
for (const listener of this.listeners) {
|
|
103
|
+
listener();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.InitiativeStore = InitiativeStore;
|
|
108
|
+
/** A React hook of a page: the state of the store, drawn again as it changes. */
|
|
109
|
+
function useInitiative(react, store) {
|
|
110
|
+
return react.useSyncExternalStore(listener => store.subscribe(listener), () => store.state);
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=initiative-store.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type InitiativeKind, type Level, type LevelReason, type Mode, type Proposal } from './initiative-protocol';
|
|
2
|
+
/** What became of a proposal, for the level of its kind; undefined for one that says nothing (waiting, expired, failed). */
|
|
3
|
+
export type Outcome = 'accepted' | 'declined' | 'undone';
|
|
4
|
+
/** Where a kind is: from its mode, then moved by what the user did with its proposals, unless the user chose. Pure functions. */
|
|
5
|
+
export declare namespace LevelUtil {
|
|
6
|
+
function index(level: Level): number;
|
|
7
|
+
/** The highest it may go: not past `ask` for what cannot be undone, nor by itself in the mode quiet. */
|
|
8
|
+
function cap(kind: InitiativeKind, mode: Mode): Level;
|
|
9
|
+
/** Where it starts: its own level, one lower when quiet (not below `digest`), one higher when active. */
|
|
10
|
+
function start(kind: InitiativeKind, mode: Mode): Level;
|
|
11
|
+
function outcome(proposal: Pick<Proposal, 'state'>): Outcome | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The level of a kind: the user's when they chose one (still not past `ask` for what cannot be undone); else from
|
|
14
|
+
* where it starts, one up after Limits.UP_AFTER accepted in a row, one down after Limits.DOWN_AFTER declined in a
|
|
15
|
+
* row or one undone, never above its cap by itself nor below `digest` (only the user turns a kind off).
|
|
16
|
+
*/
|
|
17
|
+
function level(kind: InitiativeKind, mode: Mode, proposals: readonly Pick<Proposal, 'state' | 'decidedAt' | 'at'>[], locked?: Level): {
|
|
18
|
+
level: Level;
|
|
19
|
+
reason: LevelReason;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=level-util.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LevelUtil = void 0;
|
|
4
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
|
+
/** Where a kind is: from its mode, then moved by what the user did with its proposals, unless the user chose. Pure functions. */
|
|
6
|
+
var LevelUtil;
|
|
7
|
+
(function (LevelUtil) {
|
|
8
|
+
function index(level) {
|
|
9
|
+
return Math.max(0, initiative_protocol_1.LEVELS.indexOf(level));
|
|
10
|
+
}
|
|
11
|
+
LevelUtil.index = index;
|
|
12
|
+
function at(index) {
|
|
13
|
+
return initiative_protocol_1.LEVELS[Math.min(initiative_protocol_1.LEVELS.length - 1, Math.max(0, index))];
|
|
14
|
+
}
|
|
15
|
+
/** The highest it may go: not past `ask` for what cannot be undone, nor by itself in the mode quiet. */
|
|
16
|
+
function cap(kind, mode) {
|
|
17
|
+
return kind.reversible && mode !== 'quiet' ? 'act' : 'ask';
|
|
18
|
+
}
|
|
19
|
+
LevelUtil.cap = cap;
|
|
20
|
+
/** Where it starts: its own level, one lower when quiet (not below `digest`), one higher when active. */
|
|
21
|
+
function start(kind, mode) {
|
|
22
|
+
const own = index(kind.level);
|
|
23
|
+
const moved = mode === 'quiet' ? Math.max(own === 0 ? 0 : 1, own - 1) : mode === 'active' ? own + 1 : own;
|
|
24
|
+
return at(Math.min(moved, index(cap(kind, mode))));
|
|
25
|
+
}
|
|
26
|
+
LevelUtil.start = start;
|
|
27
|
+
function outcome(proposal) {
|
|
28
|
+
switch (proposal.state) {
|
|
29
|
+
case 'done':
|
|
30
|
+
return 'accepted';
|
|
31
|
+
case 'declined':
|
|
32
|
+
return 'declined';
|
|
33
|
+
case 'undone':
|
|
34
|
+
return 'undone';
|
|
35
|
+
default:
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
LevelUtil.outcome = outcome;
|
|
40
|
+
/**
|
|
41
|
+
* The level of a kind: the user's when they chose one (still not past `ask` for what cannot be undone); else from
|
|
42
|
+
* where it starts, one up after Limits.UP_AFTER accepted in a row, one down after Limits.DOWN_AFTER declined in a
|
|
43
|
+
* row or one undone, never above its cap by itself nor below `digest` (only the user turns a kind off).
|
|
44
|
+
*/
|
|
45
|
+
function level(kind, mode, proposals, locked) {
|
|
46
|
+
if (locked) {
|
|
47
|
+
return { level: kind.reversible ? locked : at(Math.min(index(locked), index('ask'))), reason: { cause: 'locked' } };
|
|
48
|
+
}
|
|
49
|
+
const top = index(cap(kind, mode));
|
|
50
|
+
let current = index(start(kind, mode));
|
|
51
|
+
let reason = { cause: 'start' };
|
|
52
|
+
let accepted = 0;
|
|
53
|
+
let declined = 0;
|
|
54
|
+
const decided = proposals
|
|
55
|
+
.flatMap(proposal => {
|
|
56
|
+
var _a;
|
|
57
|
+
const result = outcome(proposal);
|
|
58
|
+
return result ? [{ result, at: (_a = proposal.decidedAt) !== null && _a !== void 0 ? _a : proposal.at }] : [];
|
|
59
|
+
})
|
|
60
|
+
.sort((a, b) => a.at - b.at)
|
|
61
|
+
.slice(-initiative_protocol_1.Limits.OUTCOMES);
|
|
62
|
+
for (const { result, at: when } of decided) {
|
|
63
|
+
if (result === 'accepted') {
|
|
64
|
+
declined = 0;
|
|
65
|
+
if (++accepted >= initiative_protocol_1.Limits.UP_AFTER && current < top) {
|
|
66
|
+
current++;
|
|
67
|
+
accepted = 0;
|
|
68
|
+
reason = { cause: 'up', at: when };
|
|
69
|
+
}
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
accepted = 0;
|
|
73
|
+
declined = result === 'declined' ? declined + 1 : initiative_protocol_1.Limits.DOWN_AFTER;
|
|
74
|
+
if (declined >= initiative_protocol_1.Limits.DOWN_AFTER) {
|
|
75
|
+
declined = 0;
|
|
76
|
+
if (current > index('digest')) {
|
|
77
|
+
current--;
|
|
78
|
+
reason = { cause: 'down', at: when };
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return { level: at(current), reason };
|
|
83
|
+
}
|
|
84
|
+
LevelUtil.level = level;
|
|
85
|
+
})(LevelUtil || (exports.LevelUtil = LevelUtil = {}));
|
|
86
|
+
//# sourceMappingURL=level-util.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type AskedConversation, type CronRun, type CronTask, type Level } from './initiative-protocol';
|
|
2
|
+
/** What the section of a review is made of: undefined for what could not be read (a package turned off). */
|
|
3
|
+
export interface MaterialInput {
|
|
4
|
+
since: number;
|
|
5
|
+
now: number;
|
|
6
|
+
requests?: readonly AskedConversation[];
|
|
7
|
+
tasks?: readonly {
|
|
8
|
+
task: CronTask;
|
|
9
|
+
runs: readonly CronRun[];
|
|
10
|
+
}[];
|
|
11
|
+
/** How often reviews come, and whether Ta may change it. */
|
|
12
|
+
every: number;
|
|
13
|
+
auto: boolean;
|
|
14
|
+
/** Ta keeps what it learns of the user (PROFILE_TOOL); `profile` is what it learned so far. */
|
|
15
|
+
learn: boolean;
|
|
16
|
+
profile?: string;
|
|
17
|
+
/** The levels of the kinds a review proposes, as the user's trust has them now. */
|
|
18
|
+
levels?: readonly {
|
|
19
|
+
kind: string;
|
|
20
|
+
level: Level;
|
|
21
|
+
}[];
|
|
22
|
+
agentDir?: string;
|
|
23
|
+
}
|
|
24
|
+
/** The message that asks for a review and the section of the system prompt it reads. Pure functions. */
|
|
25
|
+
export declare namespace MaterialUtil {
|
|
26
|
+
/** The message: what the model reads, then the line the user sees. */
|
|
27
|
+
function message(since: number, zh: boolean): string;
|
|
28
|
+
/** The `since` of a message that asks for a review; undefined for another message. */
|
|
29
|
+
function since(prompt: string): number | undefined;
|
|
30
|
+
function section(input: MaterialInput): string;
|
|
31
|
+
/** The section of every conversation with what Ta learned of the user. */
|
|
32
|
+
function profileSection(profile: string): string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=material-util.d.ts.map
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaterialUtil = void 0;
|
|
4
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
|
+
/** What each level means to the model that proposes. */
|
|
6
|
+
const LEVEL_MEANS = {
|
|
7
|
+
act: 'done at once, the user told and able to undo it',
|
|
8
|
+
ask: 'asked of the user with a card',
|
|
9
|
+
digest: 'only a line of the daily brief',
|
|
10
|
+
off: 'dropped: the user wants none of these',
|
|
11
|
+
};
|
|
12
|
+
/** The message that asks for a review and the section of the system prompt it reads. Pure functions. */
|
|
13
|
+
var MaterialUtil;
|
|
14
|
+
(function (MaterialUtil) {
|
|
15
|
+
/** The message: what the model reads, then the line the user sees. */
|
|
16
|
+
function message(since, zh) {
|
|
17
|
+
const context = [
|
|
18
|
+
`${initiative_protocol_1.REVIEW_MARK} since=${since}]`,
|
|
19
|
+
`Review the scheduled tasks of the user now, from the <${initiative_protocol_1.SECTION}> section of your system prompt. Nobody is watching: ask nothing, decide and report; the user reads it later and may answer here. Write the report in ${zh ? 'Chinese' : 'English'}.`,
|
|
20
|
+
].join('\n');
|
|
21
|
+
return `<context>\n${context}\n</context>\n${zh ? '回顾一下最近的工作,整理定时任务' : 'Look back at the recent work and tidy the scheduled tasks'}`;
|
|
22
|
+
}
|
|
23
|
+
MaterialUtil.message = message;
|
|
24
|
+
/** The `since` of a message that asks for a review; undefined for another message. */
|
|
25
|
+
function since(prompt) {
|
|
26
|
+
const at = prompt.indexOf(initiative_protocol_1.REVIEW_MARK);
|
|
27
|
+
if (at < 0) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
const match = /^ since=(\d+)\]/.exec(prompt.slice(at + initiative_protocol_1.REVIEW_MARK.length));
|
|
31
|
+
return match ? Number(match[1]) : undefined;
|
|
32
|
+
}
|
|
33
|
+
MaterialUtil.since = since;
|
|
34
|
+
function section(input) {
|
|
35
|
+
var _a;
|
|
36
|
+
var _b;
|
|
37
|
+
const lines = [
|
|
38
|
+
`<${initiative_protocol_1.SECTION}>`,
|
|
39
|
+
`You keep the scheduled tasks of the user (those of ta-cron) in step with their work, so that what they ask for again and again gets done without them asking, and what no longer matters stops. You change them only with ${initiative_protocol_1.PROPOSE_TOOL}, never with schedule_task: each kind goes as far as the user lets it, which grows as they accept what you propose.`,
|
|
40
|
+
'',
|
|
41
|
+
'How to review:',
|
|
42
|
+
`1. Find the work asked again and again in the requests below: the same kind of request on two days or more, or in two conversations or more, or the user saying "every day", "each week", "again". Group the requests by the work they ask for, not by their words.`,
|
|
43
|
+
'2. Schedule it when it repeats, can be done with nobody watching, has a way to check it (tests, a build, a benchmark, a log, a report) and fits the timeout of a run (30 minutes unless the task sets more, up to 4h). Do not schedule work that needs the user: their taste, a phone or a device in hand, a release they start, a one-off.',
|
|
44
|
+
`3. Propose it (${initiative_protocol_1.PROPOSE_TOOL}, kind cron.add), at most ${initiative_protocol_1.Limits.NEW_TASKS} in a review, the surest first, with \`why\` naming how often it was asked and \`evidence\` the session files of those conversations. The task: a short name; a prompt complete in itself (the run sees no conversation) that says what to do, from where (since its last run, the past week), how to check it, what it may change on its own and what it only lists for the user, and the report it ends with, written the way the user asks for such work; the directory (cwd) of the conversations it comes from; a schedule at a minute that is not 0 and not the time of another task; notify "error".`,
|
|
45
|
+
`4. Look at every task below: one that keeps failing or timing out, repeats another, is about something gone (a feature removed, a date passed, a module renamed), or was asked for once and is done, is stale: propose turning it off (kind cron.disable, its id) and say why; never delete one. A prompt or a schedule that went out of date (a fixed date, a file that moved, a run that needs more time) may be changed (kind cron.update, its id and the fields to change). A task that runs fine and still matches the work stays as it is.`,
|
|
46
|
+
'5. Earlier reviews and the answers of the user are above in this conversation: do not propose again what the user turned off, deleted, declined or undid, keep doing what they approved, and learn from what they said.',
|
|
47
|
+
...(((_a = input.levels) === null || _a === void 0 ? void 0 : _a.length)
|
|
48
|
+
? [` What a proposal of each kind does now: ${input.levels.map(({ kind, level }) => `${kind} ${LEVEL_MEANS[level]}`).join('; ')}.`]
|
|
49
|
+
: []),
|
|
50
|
+
...(input.learn
|
|
51
|
+
? [
|
|
52
|
+
`5b. Learn the user, so that every conversation of Ta knows them: rewrite with ${initiative_protocol_1.PROFILE_TOOL} the whole of what you know of them (below), from the requests: who they are and what they work on; how they want things done (what they corrected, what they said "always", "never", "next time" about, what they approved that was not obvious); what they usually want next after a kind of work (test, commit, push, a screenshot, a report), so that Ta does it without being asked; and what Ta should do on its own and what it must ask first. Markdown, short lines under a few headings, at most ${initiative_protocol_1.Limits.PROFILE_CHARS} characters, in the language of the user; keep what still holds, drop what turned out wrong, never a secret (keys, tokens, passwords) or a private matter. Leave it as it is when you learned nothing new.`,
|
|
53
|
+
]
|
|
54
|
+
: []),
|
|
55
|
+
input.auto
|
|
56
|
+
? `6. Reviews come every ${input.every} days, and the user lets you choose: call ${initiative_protocol_1.PACE_TOOL} once with the days to the next review (1 to 30) and why: sooner while the work changes and you found much to do, later when nothing changed.`
|
|
57
|
+
: `6. Reviews come every ${input.every} days, as the user set; do not change it.`,
|
|
58
|
+
`7. End with a short report: what was done on its own, what waits for the user in their suggestions (on the double's home), what went to the brief, each with why in a few words, as ${initiative_protocol_1.PROPOSE_TOOL} answered;${input.learn ? ' what you newly learned of the user, in a line or two;' : ''} nothing more. On a card, the tasks go in a table or steps, not in changes (which are files). When nothing needed doing, say so in one line.`,
|
|
59
|
+
'Use the tools only for what you change and what you must check (a file, git log); the material is below.',
|
|
60
|
+
'',
|
|
61
|
+
`Requests of the user since ${day(input.since)} (by conversation, latest first):`,
|
|
62
|
+
];
|
|
63
|
+
let size = lines.join('\n').length;
|
|
64
|
+
if (!input.requests) {
|
|
65
|
+
lines.push(`- Not available: the package Recall is off. Read the user messages of the session files under ${input.agentDir ? `${input.agentDir}/sessions` : 'the sessions directory of the agent'} with a script, not one by one.`);
|
|
66
|
+
}
|
|
67
|
+
else if (input.requests.length === 0) {
|
|
68
|
+
lines.push('- None.');
|
|
69
|
+
}
|
|
70
|
+
const tasks = taskLines(input.tasks, input.now);
|
|
71
|
+
size += tasks.join('\n').length;
|
|
72
|
+
let left = 0;
|
|
73
|
+
for (const conversation of (_b = input.requests) !== null && _b !== void 0 ? _b : []) {
|
|
74
|
+
const block = [
|
|
75
|
+
`- [${conversation.title || 'Untitled'}](${conversation.file}) · ${conversation.cwd}${conversation.group ? ` · of ${conversation.group}` : ''}`,
|
|
76
|
+
...conversation.asks.map(ask => ` - ${day(ask.at)} ${clock(ask.at)}: ${ask.text}`),
|
|
77
|
+
];
|
|
78
|
+
const length = block.join('\n').length + 1;
|
|
79
|
+
if (size + length > initiative_protocol_1.Limits.MATERIAL_CHARS) {
|
|
80
|
+
left++;
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
size += length;
|
|
84
|
+
lines.push(...block);
|
|
85
|
+
}
|
|
86
|
+
if (left > 0) {
|
|
87
|
+
lines.push(`- And ${left} more conversations, left out for length: search_conversations finds them.`);
|
|
88
|
+
}
|
|
89
|
+
lines.push('', ...tasks);
|
|
90
|
+
if (input.learn) {
|
|
91
|
+
lines.push('', input.profile ? `What you know of the user so far:\n${input.profile}` : 'What you know of the user so far: nothing yet.');
|
|
92
|
+
}
|
|
93
|
+
lines.push(`</${initiative_protocol_1.SECTION}>`);
|
|
94
|
+
return lines.join('\n');
|
|
95
|
+
}
|
|
96
|
+
MaterialUtil.section = section;
|
|
97
|
+
/** The section of every conversation with what Ta learned of the user. */
|
|
98
|
+
function profileSection(profile) {
|
|
99
|
+
return [
|
|
100
|
+
`<${initiative_protocol_1.PROFILE_SECTION}>`,
|
|
101
|
+
'What Ta learned of the user over time from working with them (they see and edit it in Settings → Initiative). Work the way it says without being told again, and do on your own what it says they usually want next; what they say now comes first.',
|
|
102
|
+
'',
|
|
103
|
+
profile.trim(),
|
|
104
|
+
`</${initiative_protocol_1.PROFILE_SECTION}>`,
|
|
105
|
+
].join('\n');
|
|
106
|
+
}
|
|
107
|
+
MaterialUtil.profileSection = profileSection;
|
|
108
|
+
function taskLines(tasks, now) {
|
|
109
|
+
var _a;
|
|
110
|
+
if (!tasks) {
|
|
111
|
+
return ['Scheduled tasks: not available, the package Scheduled tasks is off; add nothing, and say so.'];
|
|
112
|
+
}
|
|
113
|
+
if (tasks.length === 0) {
|
|
114
|
+
return ['Scheduled tasks: none yet.'];
|
|
115
|
+
}
|
|
116
|
+
const lines = [`Scheduled tasks (${tasks.length}), at ${day(now)} ${clock(now)}:`];
|
|
117
|
+
for (const { task, runs } of tasks) {
|
|
118
|
+
const stats = `runs ${task.runCount}, failed ${task.failCount}${task.timeout ? `, timeout ${task.timeout}` : ''}`;
|
|
119
|
+
lines.push(`- ${task.enabled ? 'on' : 'off'} · ${task.name} · id ${task.id} · ${schedule(task.schedule)} · ${task.cwd} · ${stats} · created ${day(Date.parse(task.createdAt))}`, ` prompt: ${flat(task.prompt, initiative_protocol_1.Limits.PROMPT_CHARS)}`);
|
|
120
|
+
if (runs.length > 0) {
|
|
121
|
+
lines.push(` last runs: ${runs.map(run => runLine(run)).join('; ')}`);
|
|
122
|
+
const last = runs[0];
|
|
123
|
+
const said = (_a = last.summary) !== null && _a !== void 0 ? _a : last.error;
|
|
124
|
+
if (said) {
|
|
125
|
+
lines.push(` last said: ${flat(said, initiative_protocol_1.Limits.SUMMARY_CHARS)}`);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return lines;
|
|
130
|
+
}
|
|
131
|
+
function runLine(run) {
|
|
132
|
+
const took = run.endedAt ? Math.round((Date.parse(run.endedAt) - Date.parse(run.startedAt)) / 60000) : undefined;
|
|
133
|
+
return `${day(Date.parse(run.startedAt))} ${run.status}${run.reason ? ` (${run.reason})` : ''}${took !== undefined && Number.isFinite(took) ? ` ${took}m` : ''}`;
|
|
134
|
+
}
|
|
135
|
+
function schedule(value) {
|
|
136
|
+
var _a;
|
|
137
|
+
return (_a = value.expression) !== null && _a !== void 0 ? _a : (value.every ? `every ${value.every}` : value.at ? `once at ${value.at}` : value.kind);
|
|
138
|
+
}
|
|
139
|
+
function flat(text, chars) {
|
|
140
|
+
const line = text.replace(/\s+/g, ' ').trim();
|
|
141
|
+
return line.length > chars ? `${line.slice(0, chars - 1)}…` : line;
|
|
142
|
+
}
|
|
143
|
+
function day(at) {
|
|
144
|
+
const date = new Date(at);
|
|
145
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
|
|
146
|
+
}
|
|
147
|
+
function clock(at) {
|
|
148
|
+
const date = new Date(at);
|
|
149
|
+
return `${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
|
150
|
+
}
|
|
151
|
+
function pad(value) {
|
|
152
|
+
return String(value).padStart(2, '0');
|
|
153
|
+
}
|
|
154
|
+
})(MaterialUtil || (exports.MaterialUtil = MaterialUtil = {}));
|
|
155
|
+
//# sourceMappingURL=material-util.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import { type Proposal } from './initiative-protocol';
|
|
3
|
+
import type { InitiativeStore } from './initiative-store';
|
|
4
|
+
/** Where a proposal is done: its conversation, when it is told there; else the first it comes from. */
|
|
5
|
+
export declare function proposalFile(proposal: Proposal): string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* The proposals the host told at once (Proposal.notifiedAt, within Limits.NOTICE_MS), as notices of the page: the shell
|
|
8
|
+
* picks how (a banner, a notice of the system, the dots of a phone), each page once by its key. OK and No answer it there.
|
|
9
|
+
*/
|
|
10
|
+
export declare function watchNotices(pi: WebExtensionAPI, store: InitiativeStore): () => void;
|
|
11
|
+
/** What a package (not a turn, whose card shows it) proposes for a conversation: shown above its message box. */
|
|
12
|
+
export declare function conversationProposals(proposals: readonly Proposal[], sessionFile: string | undefined): Proposal[];
|
|
13
|
+
//# sourceMappingURL=notices.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proposalFile = proposalFile;
|
|
4
|
+
exports.watchNotices = watchNotices;
|
|
5
|
+
exports.conversationProposals = conversationProposals;
|
|
6
|
+
const conversation_1 = require("./conversation");
|
|
7
|
+
const i18n_1 = require("./i18n");
|
|
8
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
9
|
+
/** Where a proposal is done: its conversation, when it is told there; else the first it comes from. */
|
|
10
|
+
function proposalFile(proposal) {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
return ((_a = proposal.action) === null || _a === void 0 ? void 0 : _a.type) === 'session' ? proposal.action.sessionFile : (_b = proposal.evidence) === null || _b === void 0 ? void 0 : _b[0];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The proposals the host told at once (Proposal.notifiedAt, within Limits.NOTICE_MS), as notices of the page: the shell
|
|
16
|
+
* picks how (a banner, a notice of the system, the dots of a phone), each page once by its key. OK and No answer it there.
|
|
17
|
+
*/
|
|
18
|
+
function watchNotices(pi, store) {
|
|
19
|
+
const told = new Set();
|
|
20
|
+
const look = () => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
23
|
+
const now = Date.now();
|
|
24
|
+
for (const proposal of store.state.proposals) {
|
|
25
|
+
if (!proposal.notifiedAt || proposal.state !== 'pending' || now - proposal.notifiedAt > initiative_protocol_1.Limits.NOTICE_MS || told.has(proposal.id)) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
told.add(proposal.id);
|
|
29
|
+
const file = proposalFile(proposal);
|
|
30
|
+
const action = proposal.action;
|
|
31
|
+
(_b = (_a = pi.ui).notifySession) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
|
32
|
+
key: `ta-initiative:${proposal.id}`,
|
|
33
|
+
title: words.inboxTitle,
|
|
34
|
+
// Of no conversation: the suggestions, which the page shows itself (a notice of the system while away).
|
|
35
|
+
...(file ? {} : { view: `${initiative_protocol_1.NAME}/inbox` }),
|
|
36
|
+
...(file ? { sessionFile: file } : {}),
|
|
37
|
+
...(proposal.cwd ? { cwd: proposal.cwd } : {}),
|
|
38
|
+
level: 'ask',
|
|
39
|
+
text: proposal.why ? `${proposal.title}\n${proposal.why}` : proposal.title,
|
|
40
|
+
actions: [
|
|
41
|
+
{
|
|
42
|
+
label: words.accept,
|
|
43
|
+
run: () => void store
|
|
44
|
+
.decide(proposal.id, 'accept')
|
|
45
|
+
.then(() => ((action === null || action === void 0 ? void 0 : action.type) === 'session' ? (0, conversation_1.openConversation)(pi, action.sessionFile) : undefined))
|
|
46
|
+
.catch(() => undefined),
|
|
47
|
+
},
|
|
48
|
+
{ label: words.decline, run: () => void store.decide(proposal.id, 'decline').catch(() => undefined) },
|
|
49
|
+
],
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
look();
|
|
54
|
+
return store.subscribe(look);
|
|
55
|
+
}
|
|
56
|
+
/** What a package (not a turn, whose card shows it) proposes for a conversation: shown above its message box. */
|
|
57
|
+
function conversationProposals(proposals, sessionFile) {
|
|
58
|
+
return sessionFile
|
|
59
|
+
? proposals.filter(proposal => { var _a; return proposal.state === 'pending' &&
|
|
60
|
+
proposal.source === 'host' &&
|
|
61
|
+
((_a = proposal.action) === null || _a === void 0 ? void 0 : _a.type) === 'session' &&
|
|
62
|
+
proposal.action.sessionFile === sessionFile; })
|
|
63
|
+
: [];
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=notices.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Mode, type Proposal, type QuietHours } from './initiative-protocol';
|
|
2
|
+
/** When a proposal is told to the user at once: the budget of the day, the quiet hours, whether anyone is there. Pure functions. */
|
|
3
|
+
export declare namespace NotifyUtil {
|
|
4
|
+
const QUIET: QuietHours;
|
|
5
|
+
function quiet(value: unknown): QuietHours;
|
|
6
|
+
/** `HH:MM` as minutes of the day. */
|
|
7
|
+
function minutes(text: string): number | undefined;
|
|
8
|
+
/** Whether `now` is in the quiet hours, which may run past midnight. */
|
|
9
|
+
function isQuiet(hours: QuietHours, now: number): boolean;
|
|
10
|
+
/** The proposals told at once today, local time. */
|
|
11
|
+
function toldToday(proposals: readonly Pick<Proposal, 'notifiedAt'>[], now: number): number;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to tell the user of a proposal at once: one asked (`ask`) that says `now`, not of a turn the user is in,
|
|
14
|
+
* a page of Ta open, not in the quiet hours, within the budget of the mode.
|
|
15
|
+
*/
|
|
16
|
+
function tell(input: {
|
|
17
|
+
proposal: Pick<Proposal, 'level' | 'state' | 'urgency' | 'source'>;
|
|
18
|
+
pages: number;
|
|
19
|
+
quiet: QuietHours;
|
|
20
|
+
mode: Mode;
|
|
21
|
+
told: number;
|
|
22
|
+
now: number;
|
|
23
|
+
}): boolean;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=notify-util.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotifyUtil = void 0;
|
|
4
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
|
+
/** When a proposal is told to the user at once: the budget of the day, the quiet hours, whether anyone is there. Pure functions. */
|
|
6
|
+
var NotifyUtil;
|
|
7
|
+
(function (NotifyUtil) {
|
|
8
|
+
NotifyUtil.QUIET = { enabled: true, start: '22:00', end: '08:00' };
|
|
9
|
+
function quiet(value) {
|
|
10
|
+
const stored = value && typeof value === 'object' ? value : {};
|
|
11
|
+
return {
|
|
12
|
+
enabled: typeof stored.enabled === 'boolean' ? stored.enabled : NotifyUtil.QUIET.enabled,
|
|
13
|
+
start: typeof stored.start === 'string' && minutes(stored.start) !== undefined ? stored.start : NotifyUtil.QUIET.start,
|
|
14
|
+
end: typeof stored.end === 'string' && minutes(stored.end) !== undefined ? stored.end : NotifyUtil.QUIET.end,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
NotifyUtil.quiet = quiet;
|
|
18
|
+
/** `HH:MM` as minutes of the day. */
|
|
19
|
+
function minutes(text) {
|
|
20
|
+
const match = /^(\d{1,2}):(\d{2})$/.exec(text.trim());
|
|
21
|
+
const hours = Number(match === null || match === void 0 ? void 0 : match[1]);
|
|
22
|
+
const mins = Number(match === null || match === void 0 ? void 0 : match[2]);
|
|
23
|
+
return match && hours < 24 && mins < 60 ? hours * 60 + mins : undefined;
|
|
24
|
+
}
|
|
25
|
+
NotifyUtil.minutes = minutes;
|
|
26
|
+
/** Whether `now` is in the quiet hours, which may run past midnight. */
|
|
27
|
+
function isQuiet(hours, now) {
|
|
28
|
+
const start = minutes(hours.start);
|
|
29
|
+
const end = minutes(hours.end);
|
|
30
|
+
if (!hours.enabled || start === undefined || end === undefined || start === end) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
const date = new Date(now);
|
|
34
|
+
const at = date.getHours() * 60 + date.getMinutes();
|
|
35
|
+
return start < end ? at >= start && at < end : at >= start || at < end;
|
|
36
|
+
}
|
|
37
|
+
NotifyUtil.isQuiet = isQuiet;
|
|
38
|
+
/** The proposals told at once today, local time. */
|
|
39
|
+
function toldToday(proposals, now) {
|
|
40
|
+
const day = new Date(now).toDateString();
|
|
41
|
+
return proposals.filter(proposal => proposal.notifiedAt && new Date(proposal.notifiedAt).toDateString() === day).length;
|
|
42
|
+
}
|
|
43
|
+
NotifyUtil.toldToday = toldToday;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to tell the user of a proposal at once: one asked (`ask`) that says `now`, not of a turn the user is in,
|
|
46
|
+
* a page of Ta open, not in the quiet hours, within the budget of the mode.
|
|
47
|
+
*/
|
|
48
|
+
function tell(input) {
|
|
49
|
+
const { proposal } = input;
|
|
50
|
+
return (proposal.state === 'pending' &&
|
|
51
|
+
proposal.level === 'ask' &&
|
|
52
|
+
proposal.urgency === 'now' &&
|
|
53
|
+
proposal.source !== 'turn' &&
|
|
54
|
+
input.pages > 0 &&
|
|
55
|
+
!isQuiet(input.quiet, input.now) &&
|
|
56
|
+
input.told < initiative_protocol_1.Limits.BUDGET[input.mode]);
|
|
57
|
+
}
|
|
58
|
+
NotifyUtil.tell = tell;
|
|
59
|
+
})(NotifyUtil || (exports.NotifyUtil = NotifyUtil = {}));
|
|
60
|
+
//# sourceMappingURL=notify-util.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReviewSettings } from './initiative-protocol';
|
|
2
|
+
/** When reviews are due, and what they look back at. Pure functions. */
|
|
3
|
+
export declare namespace PaceUtil {
|
|
4
|
+
const DEFAULT: ReviewSettings;
|
|
5
|
+
/** The choices of the settings page, in days. */
|
|
6
|
+
const CHOICES: readonly number[];
|
|
7
|
+
function settings(value: unknown): ReviewSettings;
|
|
8
|
+
/** Whole days within the bounds. */
|
|
9
|
+
function days(value: number): number;
|
|
10
|
+
/** `HH:MM` as hours and minutes; undefined for another text. */
|
|
11
|
+
function parseTime(text: string): {
|
|
12
|
+
hours: number;
|
|
13
|
+
minutes: number;
|
|
14
|
+
} | undefined;
|
|
15
|
+
/** The next review: `every` days after the last, at the time of the settings. */
|
|
16
|
+
function next(settings: ReviewSettings, last: number): number;
|
|
17
|
+
function due(settings: ReviewSettings, last: number | undefined, now: number): boolean;
|
|
18
|
+
/** Since when a review looks: the last one, at least LOOK_BACK_DAYS and at most MAX_DAYS back. */
|
|
19
|
+
function since(last: number | undefined, now: number): number;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=pace-util.d.ts.map
|