@celljs/ta 4.11.0 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/cli.mjs +1006 -164
- package/dist/gateway.mjs +161 -2
- package/dist/pi/CHANGELOG.md +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 +266 -25
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +7 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +8 -3
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +12 -4
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +72 -2
- package/dist/pi/packages/ta-agents/lib/agent-session.js +183 -18
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +16 -2
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +45 -4
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +17 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +51 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +7 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +12 -0
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +157 -0
- package/dist/pi/packages/ta-bots/package.json +7 -2
- package/dist/pi/packages/ta-changes/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-changes/package.json +8 -2
- package/dist/pi/packages/ta-channels/README.en.md +3 -1
- package/dist/pi/packages/ta-channels/README.md +3 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +55 -2
- package/dist/pi/packages/ta-channels/host/index.mjs +268 -8
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +8 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/room.js +31 -5
- package/dist/pi/packages/ta-channels/lib/sidebar.js +31 -13
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +10 -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/lib/views.d.ts +12 -0
- package/dist/pi/packages/ta-channels/lib/views.js +19 -0
- package/dist/pi/packages/ta-channels/package.json +26 -2
- package/dist/pi/packages/ta-channels/web/index.js +191 -36
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +2 -2
- package/dist/pi/packages/ta-cron/README.md +2 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +91 -257
- package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
- package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +11 -7
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
- package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
- package/dist/pi/packages/ta-cron/lib/index.js +0 -2
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/page.js +24 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +8 -0
- package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
- package/dist/pi/packages/ta-cron/package.json +10 -2
- package/dist/pi/packages/ta-cron/web/index.js +607 -784
- package/dist/pi/packages/ta-extensions/README.en.md +1 -2
- package/dist/pi/packages/ta-extensions/README.md +1 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
- package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
- package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
- package/dist/pi/packages/ta-extensions/package.json +10 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +16 -11
- package/dist/pi/packages/ta-extensions/web/index.js +176 -97
- package/dist/pi/packages/ta-games/package.json +8 -2
- package/dist/pi/packages/ta-glance/README.en.md +1 -0
- package/dist/pi/packages/ta-glance/README.md +1 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +425 -3
- package/dist/pi/packages/ta-glance/lib/card.js +42 -15
- 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 +7 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +45 -9
- 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 +187 -102
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-glance/web/index.js +272 -124
- package/dist/pi/packages/ta-initiative/README.en.md +66 -0
- package/dist/pi/packages/ta-initiative/README.md +66 -0
- package/dist/pi/packages/ta-initiative/extension/index.mjs +720 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
- package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +238 -0
- package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
- package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
- package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
- package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
- package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
- package/dist/pi/packages/ta-initiative/package.json +63 -0
- package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
- package/dist/pi/packages/ta-launcher/README.en.md +2 -1
- package/dist/pi/packages/ta-launcher/README.md +2 -1
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +58 -1
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +160 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +2 -1
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +5 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +155 -9
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +54 -8
- package/dist/pi/packages/ta-manual/web/index.js +750 -10
- package/dist/pi/packages/ta-moments/README.en.md +29 -0
- package/dist/pi/packages/ta-moments/README.md +29 -0
- package/dist/pi/packages/ta-moments/extension/index.mjs +1766 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2394 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
- package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/context.js +35 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
- package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
- package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
- package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
- package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
- package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/host.js +11 -0
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
- package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
- package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-moments/lib/index.js +50 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
- package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
- package/dist/pi/packages/ta-moments/lib/page.js +307 -0
- package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
- package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
- package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
- package/dist/pi/packages/ta-moments/lib/store.js +108 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/style.js +155 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
- package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
- package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
- package/dist/pi/packages/ta-moments/package.json +61 -0
- package/dist/pi/packages/ta-moments/web/index.js +1987 -0
- package/dist/pi/packages/ta-nearby/README.en.md +33 -0
- package/dist/pi/packages/ta-nearby/README.md +33 -0
- package/dist/pi/packages/ta-nearby/extension/index.mjs +389 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
- package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
- package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
- package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
- package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
- package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
- package/dist/pi/packages/ta-nearby/package.json +65 -0
- package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
- package/dist/pi/packages/ta-notify/README.en.md +3 -1
- package/dist/pi/packages/ta-notify/README.md +3 -1
- package/dist/pi/packages/ta-notify/extension/index.mjs +64 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
- package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
- package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
- package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-notify/lib/style.js +1 -1
- package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
- package/dist/pi/packages/ta-notify/package.json +7 -2
- package/dist/pi/packages/ta-notify/web/index.js +3 -2
- package/dist/pi/packages/ta-recall/README.en.md +15 -6
- package/dist/pi/packages/ta-recall/README.md +15 -6
- package/dist/pi/packages/ta-recall/extension/index.mjs +291 -134
- package/dist/pi/packages/ta-recall/host/index.mjs +451 -116
- package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
- package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
- package/dist/pi/packages/ta-recall/lib/conversations.js +6 -0
- 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 +35 -26
- 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 +397 -153
- package/dist/pi/packages/ta-rooms/README.en.md +14 -5
- package/dist/pi/packages/ta-rooms/README.md +14 -5
- package/dist/pi/packages/ta-rooms/extension/index.mjs +526 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +1734 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.d.ts +25 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.js +128 -0
- 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 +117 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.js +476 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +212 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +258 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +128 -0
- 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 +131 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.js +238 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +48 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +151 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.d.ts +34 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +228 -0
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +33 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +203 -0
- 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 +8 -0
- package/dist/pi/packages/ta-rooms/lib/host.js +25 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +27 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.js +68 -18
- package/dist/pi/packages/ta-rooms/lib/index.js +41 -3
- package/dist/pi/packages/ta-rooms/lib/members-view.js +44 -3
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +97 -10
- package/dist/pi/packages/ta-rooms/lib/page.js +223 -45
- package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +2 -4
- package/dist/pi/packages/ta-rooms/lib/room-view.js +57 -35
- package/dist/pi/packages/ta-rooms/lib/rooms-home.d.ts +32 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-home.js +141 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +8 -2
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +68 -36
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +126 -50
- 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 +19 -4
- package/dist/pi/packages/ta-rooms/web/index.js +2585 -470
- package/dist/pi/packages/ta-share/README.en.md +1 -1
- package/dist/pi/packages/ta-share/README.md +1 -1
- package/dist/pi/packages/ta-share/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
- package/dist/pi/packages/ta-share/lib/shares-page.js +35 -11
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +14 -10
- package/dist/pi/packages/ta-share/package.json +10 -2
- package/dist/pi/packages/ta-share/web/index.js +56 -31
- package/dist/pi/packages/ta-sync/README.en.md +55 -0
- package/dist/pi/packages/ta-sync/README.md +55 -0
- package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
- package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/host.js +94 -0
- package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
- package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
- package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-sync/lib/index.js +115 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
- package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
- package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
- package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
- package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
- package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
- package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-sync/lib/react.js +16 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-sync/lib/style.js +108 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
- package/dist/pi/packages/ta-sync/package.json +57 -0
- package/dist/pi/packages/ta-sync/web/index.js +2018 -0
- package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
- package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
- package/dist/pi/packages/ta-team/README.en.md +28 -0
- package/dist/pi/packages/ta-team/README.md +28 -0
- package/dist/pi/packages/ta-team/extension/index.mjs +264 -0
- package/dist/pi/packages/ta-team/host/index.mjs +2100 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
- package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/extension.js +123 -0
- package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/host.js +45 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
- package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/index.js +67 -0
- package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/join.js +48 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
- package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
- package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
- package/dist/pi/packages/ta-team/lib/page.js +142 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
- package/dist/pi/packages/ta-team/lib/parts.js +47 -0
- package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
- package/dist/pi/packages/ta-team/lib/policy.js +215 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
- package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
- package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/react.js +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
- package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/remote.js +128 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
- package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/seal.js +75 -0
- package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
- package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
- package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/style.js +99 -0
- package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
- package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
- package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
- package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
- package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
- package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
- package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
- package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
- package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
- package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
- package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
- package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
- package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
- package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
- package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
- package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
- package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
- package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
- package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
- package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
- package/dist/pi/packages/ta-team/package.json +68 -0
- package/dist/pi/packages/ta-team/web/index.js +2741 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +157 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-D9uU0Tx2.js → abnfDiagram-S7VZAUFO-DJMZKA5d.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-f7Nm7EIo.js → architecture-WOLXFQ4H-DwZ8A2Bp.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DSAqlcms.js → architectureDiagram-YGSQEFNW-DPezb7-w.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-C0lPIW9g.js → blockDiagram-APKKGZFW-SrFYBlSp.js} +1 -1
- package/dist/public/assets/{browser-WLpgVYno.js → browser-CljOqDFz.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CDcZ7mJq.js → c4Diagram-KJ2TOQU5-COCMkiJ6.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CXPuyqPL.js → chunk-6MUBBAK2-CWRxZCiu.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Du6JRX1x.js → chunk-AXFCVDMN-Dgn3RHlx.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-D592E55X.js → chunk-BG4553SI-BDnAChfb.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BW2r2SL4.js → chunk-DQASFODM-DSgprMfc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C3yoe54R.js → chunk-HFQBQIA3-ChtjyKjP.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DF8gfYCy.js → chunk-KQLB2F66-B2o0ufJC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-C8CRMTv1.js → chunk-KS47KZWR-C4qJvDaX.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-BDcMKiwj.js → chunk-LEVMRMFU-2jTGUstS.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-CKJPBygc.js → chunk-M57EVK23-CKAWW7fj.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-B3ZWH07L.js → chunk-OY52VR5R-B5TUKZAt.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-DI-z4UPL.js → chunk-QB3YPZ4I-CyQFTqwG.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Bg4-haAc.js → chunk-R3KSYZAL-C6git_yh.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-l_SHib3p.js → chunk-STOXU5M4-AwEqcNnS.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BINu9tIm.js → chunk-TU62E6Q5-GKcRDmvw.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BQn-mvV5.js → chunk-X4PVCEUW-CMG5EfZ9.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-uvpAu0Ys.js → chunk-XXDRQBXY-BHd-dKtZ.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BIowooW1.js → classDiagram-v2-L25IHNXF-HaRsBCG9.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BTyx1Mh2.js → cose-bilkent-JH36ORCC-BPBTCfj3.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-D64EU9I0.js → cynefinDiagram-L36ESFBY-dAmWDtva.js} +1 -1
- package/dist/public/assets/{d3-selection-CN9k6_B9.js → d3-selection-BhemR5ul.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-FCbz2-Kk.js → dagre-SPEB5RXH-D93g6hNI.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-OhHUSI7j.js → diagram-3B7GL73J-FJBKgG3X.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-Be4xMtp6.js → diagram-DNEMPZML-BP22T976.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-CmKSs3aG.js → diagram-L3MUGCDN-DcrCJXRt.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-D1C32rMN.js → diagram-LA4NIPWU-DUgd3PHQ.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BjoE6JXs.js → diagram-MHCOC4E2-ejTInqzQ.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-B22k4v8R.js → diagram-XPFHEONP-BLjkgho1.js} +1 -1
- package/dist/public/assets/{dist-DcBP8Cf6.js → dist-C9xqTt0E.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-Tn-K8-X7.js → ebnfDiagram-UZSYDL2S-CB1QQ4_T.js} +1 -1
- package/dist/public/assets/{editor.api-Bz4sjRz_.js → editor.api-lz6I1oVk.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-COnQsWlN.js → elk-XV6XMXQE-CLBx1s2b.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-c53dJilq.js → erDiagram-EYBAPDEH-Dsj6RYi5.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-DaFpPPks.js → eventmodeling-K75KTNOO-smOORsSG.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +1 -0
- package/dist/public/assets/{freemarker2-BLxfRHsw.js → freemarker2-DrLPw7Mc.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Md-SavIS.js → ganttDiagram-23REXITY-BV9WK0rK.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CMSwTghO.js → gitGraphDiagram-STJD7YCW-CsSpSQ0T.js} +1 -1
- package/dist/public/assets/{handlebars-sNpu01kP.js → handlebars-CLx5-csF.js} +1 -1
- package/dist/public/assets/{html-C_tKd-uP.js → html-C9LmGm46.js} +1 -1
- package/dist/public/assets/{index-Bn86rI4n.js → index-CLWW0mVu.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CwgNj-7i.js → infoDiagram-KBXO4MBG-wm5AnXDz.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BSlzQNMN.js → ishikawaDiagram-M35NCXHK-BLUBDeS3.js} +1 -1
- package/dist/public/assets/{javascript-l3qKw0L-.js → javascript-C4S1eQb7.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-B09LPEnF.js → journeyDiagram-OPLOXDXO-DXc7-I_g.js} +1 -1
- package/dist/public/assets/{jsonMode-5SQQn1EX.js → jsonMode-lLJKR2M6.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BiW4aJ29.js → kanban-definition-BZKZHSQY-D5Ra4L_5.js} +1 -1
- package/dist/public/assets/{liquid-BGyTIIUt.js → liquid-DRlm-XZd.js} +1 -1
- package/dist/public/assets/{mdx-8tGjz4em.js → mdx-CzIqeqPy.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CctN5b0z.js → mermaid-parser.core-BIPB1BgS.js} +3 -3
- package/dist/public/assets/{mermaid.core-7ERSdZ4-.js → mermaid.core-DxBlQ6oF.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-D-GOUwW1.js → mindmap-definition-I2QAS2VK-BdupvuYr.js} +1 -1
- package/dist/public/assets/module-BPxWyxwR.js +2362 -0
- package/dist/public/assets/module-C_MSCGQC.js +1 -0
- package/dist/public/assets/{monaco-B_9hlk78.js → monaco-ChpJIYsY.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-Dmy1fWB3.js → pegDiagram-FD4XPPHP-C_GF7Fng.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CXFHLYTg.js → pieDiagram-J4AKIIQI-WlpNP-IM.js} +1 -1
- package/dist/public/assets/{python-e-JK0s5M.js → python-BJgFCfc8.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-RQvEpGWO.js → quadrantDiagram-XTYBLID2-CkCL5rJY.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CDOSPZwX.js → railroad-abnf-LNEFI6M7-DZZKUytl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js → railroad-ebnf-DWYD2UWJ-CS7KsJdb.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-B7NtVofS.js → railroad-peg-JR7BVNR7-CiukTZVd.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-DsDrT0Jf.js → railroadDiagram-MRQ6NCDL-BS0R_H3-.js} +1 -1
- package/dist/public/assets/{razor-DtSPwumi.js → razor-jcBIjr45.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BQh0hFuA.js → requirementDiagram-Y7LWUY3S-C0_T9jgl.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-BUXNAQEF.js → sankeyDiagram-WGJFYUXA-DF15sUfS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-05f-N5V_.js → sequenceDiagram-5NDRBG5M-7AkTLleX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js → stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DWhlPvKs.js → swimlanes-UMQ2AFYF-CR-ieLeo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-CMdocOui.js → timeline-definition-SEUHKTQE-DeM0Uekm.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +1 -0
- package/dist/public/assets/{typescript-65jNyipU.js → typescript-B7zp7QPf.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BQTHUX1f.js → usecaseDiagram-AFA6YXN4-D6rDIgdU.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-BULkVTfA.js → vennDiagram-NNMJR3RB-CncVDcMl.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-Cek6l8lz.js → wardleyDiagram-S7YFUSEH-DKPAMfTE.js} +1 -1
- package/dist/public/assets/{xml-DWBejfu-.js → xml-BJIgLD52.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-ujnZQTWA.js → xychartDiagram-GGNKY7IX-DmmXGebm.js} +1 -1
- package/dist/public/assets/{yaml-CwRCT7q1.js → yaml-Dxb2gmP5.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7767 -3392
- 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-Dg54eFzZ.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +0 -1
- package/dist/public/assets/module-DEqsdd00.js +0 -1
- package/dist/public/assets/module-TWc52XwT.js +0 -2244
- package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-BjqLn4qm.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DWO6t_4C.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-D1XOJPWy.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CRn5uHsY.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-D09wHNzT.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-ChxAT7Fq.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +0 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReviewHost = void 0;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
6
|
+
const material_util_1 = require("./material-util");
|
|
7
|
+
const pace_util_1 = require("./pace-util");
|
|
8
|
+
const server_texts_1 = require("./server-texts");
|
|
9
|
+
/** How often the time of the review is checked. */
|
|
10
|
+
const CHECK_MS = 60000;
|
|
11
|
+
/** The first check, once the service has started its sessions and the other packages. */
|
|
12
|
+
const FIRST_CHECK_MS = 30000;
|
|
13
|
+
/**
|
|
14
|
+
* The host of the package in the Ta service: it asks Ta for a review when its time came, in the conversation of the
|
|
15
|
+
* reviews (one for good, where the user answers and Ta remembers), and keeps the settings. What a review reads is
|
|
16
|
+
* given by the pi extension of that conversation (extension.ts), which reaches the hosts of ta-recall and ta-cron.
|
|
17
|
+
*/
|
|
18
|
+
class ReviewHost {
|
|
19
|
+
constructor(host, now = Date.now) {
|
|
20
|
+
this.host = host;
|
|
21
|
+
this.now = now;
|
|
22
|
+
this.timers = [];
|
|
23
|
+
this.queue = Promise.resolve();
|
|
24
|
+
}
|
|
25
|
+
start() {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
const first = setTimeout(() => void this.check(), FIRST_CHECK_MS);
|
|
28
|
+
const every = setInterval(() => void this.check(), CHECK_MS);
|
|
29
|
+
(_a = first.unref) === null || _a === void 0 ? void 0 : _a.call(first);
|
|
30
|
+
(_b = every.unref) === null || _b === void 0 ? void 0 : _b.call(every);
|
|
31
|
+
this.timers.push(first, every);
|
|
32
|
+
}
|
|
33
|
+
dispose() {
|
|
34
|
+
for (const timer of this.timers) {
|
|
35
|
+
clearTimeout(timer);
|
|
36
|
+
clearInterval(timer);
|
|
37
|
+
}
|
|
38
|
+
this.timers = [];
|
|
39
|
+
}
|
|
40
|
+
async reviewStatus() {
|
|
41
|
+
const [stored, last, file, note, profile] = await Promise.all([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].map(key => this.read(key)));
|
|
42
|
+
const settings = pace_util_1.PaceUtil.settings(stored);
|
|
43
|
+
const at = typeof last === 'number' ? last : undefined;
|
|
44
|
+
return {
|
|
45
|
+
settings,
|
|
46
|
+
...(at !== undefined ? { last: at } : {}),
|
|
47
|
+
...(settings.enabled && at !== undefined ? { next: pace_util_1.PaceUtil.next(settings, at) } : {}),
|
|
48
|
+
...(typeof file === 'string' && file ? { file } : {}),
|
|
49
|
+
...(typeof note === 'string' && note ? { note } : {}),
|
|
50
|
+
...(typeof profile === 'string' && profile.trim() ? { profile } : {}),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
reviewNow() {
|
|
54
|
+
return this.review();
|
|
55
|
+
}
|
|
56
|
+
setPace(days, reason) {
|
|
57
|
+
return this.serial(async () => {
|
|
58
|
+
const settings = pace_util_1.PaceUtil.settings(await this.read(initiative_protocol_1.Keys.SETTINGS));
|
|
59
|
+
if (!settings.auto) {
|
|
60
|
+
throw new Error('The user set how often reviews come; leave it as it is.');
|
|
61
|
+
}
|
|
62
|
+
if (typeof days !== 'number' || !Number.isFinite(days)) {
|
|
63
|
+
throw new Error('Say the days to the next review, 1 to 30.');
|
|
64
|
+
}
|
|
65
|
+
const every = pace_util_1.PaceUtil.days(days);
|
|
66
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.SETTINGS, { ...settings, every });
|
|
67
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.NOTE, typeof reason === 'string' ? reason.trim().slice(0, 300) : '');
|
|
68
|
+
return every;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
setProfile(profile) {
|
|
72
|
+
return this.serial(async () => {
|
|
73
|
+
if (typeof profile !== 'string') {
|
|
74
|
+
throw new Error('Write the whole profile as Markdown.');
|
|
75
|
+
}
|
|
76
|
+
const text = profile.trim();
|
|
77
|
+
const kept = text.length > initiative_protocol_1.Limits.PROFILE_CHARS ? text.slice(0, initiative_protocol_1.Limits.PROFILE_CHARS) : text;
|
|
78
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.PROFILE, kept);
|
|
79
|
+
return kept;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/** A review when its time came; the first start only counts from now. */
|
|
83
|
+
async check() {
|
|
84
|
+
try {
|
|
85
|
+
const [settings, last] = await Promise.all([this.read(initiative_protocol_1.Keys.SETTINGS), this.read(initiative_protocol_1.Keys.LAST)]);
|
|
86
|
+
if (typeof last !== 'number') {
|
|
87
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.LAST, this.now());
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (pace_util_1.PaceUtil.due(pace_util_1.PaceUtil.settings(settings), last, this.now())) {
|
|
91
|
+
await this.review();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
console.error('ta-evolve could not start the review:', error);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/** One at a time: the message that asks for it, in the conversation of the reviews. */
|
|
99
|
+
review() {
|
|
100
|
+
var _a;
|
|
101
|
+
(_a = this.reviewing) !== null && _a !== void 0 ? _a : (this.reviewing = this.startReview().finally(() => {
|
|
102
|
+
this.reviewing = undefined;
|
|
103
|
+
}));
|
|
104
|
+
return this.reviewing;
|
|
105
|
+
}
|
|
106
|
+
async startReview() {
|
|
107
|
+
var _a;
|
|
108
|
+
var _b;
|
|
109
|
+
const now = this.now();
|
|
110
|
+
const [last, stored] = await Promise.all([this.read(initiative_protocol_1.Keys.LAST), this.read(initiative_protocol_1.Keys.FILE)]);
|
|
111
|
+
const file = typeof stored === 'string' && stored ? stored : undefined;
|
|
112
|
+
const session = await this.session(await this.host.listSessions(), file);
|
|
113
|
+
// Kept before the turn, so that a review that fails is not asked again each minute.
|
|
114
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.LAST, now);
|
|
115
|
+
await this.host.prompt(session.sessionId, {
|
|
116
|
+
message: material_util_1.MaterialUtil.message(pace_util_1.PaceUtil.since(typeof last === 'number' ? last : undefined, now), server_texts_1.InitiativeServerTexts.zh()),
|
|
117
|
+
clientMessageId: `ta-evolve-review:${now}`,
|
|
118
|
+
streamingBehavior: 'followUp',
|
|
119
|
+
});
|
|
120
|
+
const opened = (_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;
|
|
121
|
+
if (opened && opened !== file) {
|
|
122
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.FILE, opened);
|
|
123
|
+
}
|
|
124
|
+
return opened;
|
|
125
|
+
}
|
|
126
|
+
/** The conversation of the reviews: open, opened again from its file, or a new one named for it. */
|
|
127
|
+
async session(sessions, file) {
|
|
128
|
+
var _a;
|
|
129
|
+
const open = file ? sessions.find(info => info.sessionFile === file) : undefined;
|
|
130
|
+
if (open) {
|
|
131
|
+
return open;
|
|
132
|
+
}
|
|
133
|
+
const { cwd } = await this.host.getServerInfo();
|
|
134
|
+
if (file && (0, node_fs_1.existsSync)(file)) {
|
|
135
|
+
return this.host.openSession({ cwd: (_a = (await this.host.sessionCwd(file))) !== null && _a !== void 0 ? _a : cwd, sessionFile: file });
|
|
136
|
+
}
|
|
137
|
+
const created = await this.host.openSession({ cwd });
|
|
138
|
+
await this.host.setSessionName(created.sessionId, server_texts_1.InitiativeServerTexts.title()).catch(() => undefined);
|
|
139
|
+
// Known at once, so that its pi extension gives the first review its tool.
|
|
140
|
+
if (created.sessionFile) {
|
|
141
|
+
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.FILE, created.sessionFile);
|
|
142
|
+
}
|
|
143
|
+
return created;
|
|
144
|
+
}
|
|
145
|
+
read(key) {
|
|
146
|
+
return this.host.getExtensionData(initiative_protocol_1.NAME, key).catch(() => undefined);
|
|
147
|
+
}
|
|
148
|
+
serial(work) {
|
|
149
|
+
const next = this.queue.then(work, work);
|
|
150
|
+
this.queue = next.catch(() => undefined);
|
|
151
|
+
return next;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.ReviewHost = ReviewHost;
|
|
155
|
+
//# sourceMappingURL=review-service.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** What the package says on the server, in the language of Ta's pages (`TA_LANGUAGE`) or the computer's. */
|
|
2
|
+
export declare namespace InitiativeServerTexts {
|
|
3
|
+
function zh(env?: NodeJS.ProcessEnv): boolean;
|
|
4
|
+
/** The name of the conversation of the reviews. */
|
|
5
|
+
function title(): string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=server-texts.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitiativeServerTexts = void 0;
|
|
4
|
+
/** What the package says on the server, in the language of Ta's pages (`TA_LANGUAGE`) or the computer's. */
|
|
5
|
+
var InitiativeServerTexts;
|
|
6
|
+
(function (InitiativeServerTexts) {
|
|
7
|
+
function zh(env = process.env) {
|
|
8
|
+
return /^zh/i.test(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || '');
|
|
9
|
+
}
|
|
10
|
+
InitiativeServerTexts.zh = zh;
|
|
11
|
+
/** The name of the conversation of the reviews. */
|
|
12
|
+
function title() {
|
|
13
|
+
return zh() ? '自我进化' : 'Evolve';
|
|
14
|
+
}
|
|
15
|
+
InitiativeServerTexts.title = title;
|
|
16
|
+
})(InitiativeServerTexts || (exports.InitiativeServerTexts = InitiativeServerTexts = {}));
|
|
17
|
+
//# sourceMappingURL=server-texts.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WebExtensionAPI, WebSettingsSection } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import { type Words } from './i18n';
|
|
3
|
+
import { type InitiativeStore } from './initiative-store';
|
|
4
|
+
export declare function everyLabel(words: Words, days: number): string;
|
|
5
|
+
/**
|
|
6
|
+
* Initiative, in the settings: how much Ta does on its own and the level of each kind; then the reviews: on or off,
|
|
7
|
+
* how often and when, whether Ta chooses, what it learned of the user, and a review now.
|
|
8
|
+
*/
|
|
9
|
+
export declare function initiativeSettings(pi: WebExtensionAPI, store: InitiativeStore): WebSettingsSection;
|
|
10
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.everyLabel = everyLabel;
|
|
4
|
+
exports.initiativeSettings = initiativeSettings;
|
|
5
|
+
const conversation_1 = require("./conversation");
|
|
6
|
+
const i18n_1 = require("./i18n");
|
|
7
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
8
|
+
const initiative_store_1 = require("./initiative-store");
|
|
9
|
+
const pace_util_1 = require("./pace-util");
|
|
10
|
+
const react_1 = require("./react");
|
|
11
|
+
function message(error) {
|
|
12
|
+
return error instanceof Error ? error.message : String(error);
|
|
13
|
+
}
|
|
14
|
+
function notifyFailure(pi, error) {
|
|
15
|
+
pi.ui.notify(i18n_1.InitiativeWords.format(i18n_1.InitiativeWords.of(pi.ui.language).failed, { message: message(error) }), 'error');
|
|
16
|
+
}
|
|
17
|
+
/** A React hook: the status of the store, drawn again as it changes. */
|
|
18
|
+
function useStatus(store) {
|
|
19
|
+
const [status, setStatus] = react_1.React.useState(store.status);
|
|
20
|
+
react_1.React.useEffect(() => {
|
|
21
|
+
setStatus(store.status);
|
|
22
|
+
return store.subscribe(() => setStatus(store.status));
|
|
23
|
+
}, [store]);
|
|
24
|
+
return status;
|
|
25
|
+
}
|
|
26
|
+
function Toggle({ pi, checked, label, onChange }) {
|
|
27
|
+
const Switch = pi.ui.Switch;
|
|
28
|
+
if (Switch) {
|
|
29
|
+
return react_1.React.createElement(Switch, { checked: checked, label: label, onChange: on => onChange(on).catch(error => notifyFailure(pi, error)) });
|
|
30
|
+
}
|
|
31
|
+
return (react_1.React.createElement("input", { type: "checkbox", role: "switch", className: "ta-switch", checked: checked, "aria-checked": checked, "aria-label": label, onChange: event => void onChange(event.target.checked).catch(error => notifyFailure(pi, error)) }));
|
|
32
|
+
}
|
|
33
|
+
function SettingSwitch({ pi, store, field, label }) {
|
|
34
|
+
const { settings } = useStatus(store);
|
|
35
|
+
return react_1.React.createElement(Toggle, { pi: pi, checked: settings[field], label: label, onChange: on => store.change({ [field]: on }) });
|
|
36
|
+
}
|
|
37
|
+
function everyLabel(words, days) {
|
|
38
|
+
var _a;
|
|
39
|
+
const named = { 1: words.every1, 7: words.every7, 14: words.every14, 30: words.every30 };
|
|
40
|
+
return (_a = named[days]) !== null && _a !== void 0 ? _a : i18n_1.InitiativeWords.format(words.everyDays, { days: String(days) });
|
|
41
|
+
}
|
|
42
|
+
function Every({ pi, store }) {
|
|
43
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
44
|
+
const { settings } = useStatus(store);
|
|
45
|
+
const choices = pace_util_1.PaceUtil.CHOICES.includes(settings.every) ? pace_util_1.PaceUtil.CHOICES : [...pace_util_1.PaceUtil.CHOICES, settings.every].sort((a, b) => a - b);
|
|
46
|
+
return (react_1.React.createElement("select", { className: "tev-field", "aria-label": words.everyLabel, value: settings.every, disabled: !settings.enabled, onChange: event => void store.change({ every: Number(event.target.value) }).catch(error => notifyFailure(pi, error)) }, choices.map(days => (react_1.React.createElement("option", { key: days, value: days }, everyLabel(words, days))))));
|
|
47
|
+
}
|
|
48
|
+
function Time({ pi, store }) {
|
|
49
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
50
|
+
const { settings } = useStatus(store);
|
|
51
|
+
return (react_1.React.createElement("input", { type: "time", className: "tev-field", "aria-label": words.timeLabel, value: settings.time, disabled: !settings.enabled, onChange: event => pace_util_1.PaceUtil.parseTime(event.target.value) && void store.change({ time: event.target.value }).catch(error => notifyFailure(pi, error)) }));
|
|
52
|
+
}
|
|
53
|
+
function when(at, words) {
|
|
54
|
+
if (at === undefined) {
|
|
55
|
+
return words.never;
|
|
56
|
+
}
|
|
57
|
+
const date = new Date(at);
|
|
58
|
+
const pad = (value) => String(value).padStart(2, '0');
|
|
59
|
+
return `${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
|
60
|
+
}
|
|
61
|
+
function Now({ pi, store }) {
|
|
62
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
63
|
+
const status = useStatus(store);
|
|
64
|
+
const [busy, run] = (0, react_1.useBusy)(pi.ui);
|
|
65
|
+
const review = async () => {
|
|
66
|
+
try {
|
|
67
|
+
const file = await pi.callHost('reviewNow');
|
|
68
|
+
if (file) {
|
|
69
|
+
await (0, conversation_1.openConversation)(pi, file);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
notifyFailure(pi, error);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
// The first start counts as the last: no review was done yet while there is no conversation.
|
|
77
|
+
const line = status.file
|
|
78
|
+
? i18n_1.InitiativeWords.format(words.lastNext, { last: when(status.last, words), next: when(status.next, words) })
|
|
79
|
+
: status.next !== undefined
|
|
80
|
+
? i18n_1.InitiativeWords.format(words.nextOnly, { next: when(status.next, words) })
|
|
81
|
+
: '';
|
|
82
|
+
return (react_1.React.createElement("div", { className: "tev-now" },
|
|
83
|
+
line && react_1.React.createElement("span", { className: "tev-when" }, line),
|
|
84
|
+
react_1.React.createElement("button", { type: "button", className: `ta-button${busy ? ' ta-busy' : ''}`, disabled: busy, onClick: () => void run(review) },
|
|
85
|
+
busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
86
|
+
react_1.React.createElement("span", null, words.nowButton))));
|
|
87
|
+
}
|
|
88
|
+
/** What Ta knows of the user, to read and edit; saved by the button, not on each key. */
|
|
89
|
+
function Profile({ pi, store }) {
|
|
90
|
+
var _a;
|
|
91
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
92
|
+
const status = useStatus(store);
|
|
93
|
+
const stored = (_a = status.profile) !== null && _a !== void 0 ? _a : '';
|
|
94
|
+
const [text, setText] = react_1.React.useState(stored);
|
|
95
|
+
const [edited, setEdited] = react_1.React.useState(false);
|
|
96
|
+
const [busy, run] = (0, react_1.useBusy)(pi.ui);
|
|
97
|
+
// What another device or the review wrote shows, unless the user is editing.
|
|
98
|
+
react_1.React.useEffect(() => {
|
|
99
|
+
if (!edited) {
|
|
100
|
+
setText(stored);
|
|
101
|
+
}
|
|
102
|
+
}, [stored, edited]);
|
|
103
|
+
const save = async () => {
|
|
104
|
+
try {
|
|
105
|
+
await store.saveProfile(text);
|
|
106
|
+
setEdited(false);
|
|
107
|
+
pi.ui.notify(words.profileSaved, 'info');
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
notifyFailure(pi, error);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
return (react_1.React.createElement("div", { className: "tev-profile" },
|
|
114
|
+
react_1.React.createElement("textarea", { className: "tev-field tev-profile-text", "aria-label": words.profileLabel, placeholder: words.profileEmpty, value: text, disabled: !status.settings.learn, onChange: event => {
|
|
115
|
+
setText(event.target.value);
|
|
116
|
+
setEdited(true);
|
|
117
|
+
} }),
|
|
118
|
+
edited && (react_1.React.createElement("button", { type: "button", className: `ta-button${busy ? ' ta-busy' : ''}`, disabled: busy, onClick: () => void run(save) },
|
|
119
|
+
busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
120
|
+
react_1.React.createElement("span", null, words.profileSave)))));
|
|
121
|
+
}
|
|
122
|
+
function levelLabel(words, level) {
|
|
123
|
+
return { off: words.levelOff, digest: words.levelDigest, ask: words.levelAsk, act: words.levelAct }[level];
|
|
124
|
+
}
|
|
125
|
+
const MODE_WORDS = { quiet: 'modeQuiet', balanced: 'modeBalanced', active: 'modeActive' };
|
|
126
|
+
function ModeSelect({ pi, store }) {
|
|
127
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
128
|
+
const { mode } = (0, initiative_store_1.useInitiative)(react_1.React, store);
|
|
129
|
+
return (react_1.React.createElement("select", { className: "tev-field", "aria-label": words.modeLabel, value: mode, onChange: event => void store.setMode(event.target.value).catch(error => notifyFailure(pi, error)) }, initiative_protocol_1.MODES.map(one => (react_1.React.createElement("option", { key: one, value: one }, words[MODE_WORDS[one]])))));
|
|
130
|
+
}
|
|
131
|
+
function reasonText(words, status) {
|
|
132
|
+
const date = status.reason.at ? new Date(status.reason.at).toLocaleDateString() : '';
|
|
133
|
+
switch (status.reason.cause) {
|
|
134
|
+
case 'up':
|
|
135
|
+
return i18n_1.InitiativeWords.format(words.reasonUp, { date });
|
|
136
|
+
case 'down':
|
|
137
|
+
return i18n_1.InitiativeWords.format(words.reasonDown, { date });
|
|
138
|
+
case 'locked':
|
|
139
|
+
return words.reasonLocked;
|
|
140
|
+
default:
|
|
141
|
+
return words.reasonStart;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/** The quiet hours: on or off, from and to. */
|
|
145
|
+
function Quiet({ pi, store }) {
|
|
146
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
147
|
+
const { quiet } = (0, initiative_store_1.useInitiative)(react_1.React, store);
|
|
148
|
+
const time = (field, label) => (react_1.React.createElement("input", { type: "time", className: "tev-field", "aria-label": label, value: quiet[field], disabled: !quiet.enabled, onChange: event => void store.setQuiet({ [field]: event.target.value }).catch(error => notifyFailure(pi, error)) }));
|
|
149
|
+
return (react_1.React.createElement("div", { className: "tin-quiet" },
|
|
150
|
+
time('start', words.quietFrom),
|
|
151
|
+
react_1.React.createElement("span", { className: "tev-when" }, words.quietTo),
|
|
152
|
+
time('end', words.quietTo),
|
|
153
|
+
react_1.React.createElement(Toggle, { pi: pi, checked: quiet.enabled, label: words.quietLabel, onChange: enabled => store.setQuiet({ enabled }) })));
|
|
154
|
+
}
|
|
155
|
+
/** Each kind of thing Ta may do, its level and why; a level picked keeps it there, Auto gives it back to Ta. */
|
|
156
|
+
function Kinds({ pi, store }) {
|
|
157
|
+
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
158
|
+
const { kinds } = (0, initiative_store_1.useInitiative)(react_1.React, store);
|
|
159
|
+
const zh = /^zh/i.test(pi.ui.language);
|
|
160
|
+
return (react_1.React.createElement("ul", { className: "tin-kinds" }, kinds.map(status => { var _a; return (react_1.React.createElement("li", { key: status.kind.id, className: "tin-kind-row" },
|
|
161
|
+
react_1.React.createElement("div", { className: "tin-kind-text" },
|
|
162
|
+
react_1.React.createElement("div", { className: "tin-kind-name" }, zh ? status.kind.title.zh : status.kind.title.en),
|
|
163
|
+
react_1.React.createElement("div", { className: "tin-kind-reason" }, reasonText(words, status))),
|
|
164
|
+
react_1.React.createElement("select", { className: "tev-field", "aria-label": zh ? status.kind.title.zh : status.kind.title.en, value: (_a = status.locked) !== null && _a !== void 0 ? _a : 'auto', onChange: event => {
|
|
165
|
+
const value = event.target.value;
|
|
166
|
+
void store.setLevel(status.kind.id, value === 'auto' ? null : value).catch(error => notifyFailure(pi, error));
|
|
167
|
+
} },
|
|
168
|
+
react_1.React.createElement("option", { value: "auto" }, status.locked ? words.levelAutoPlain : i18n_1.InitiativeWords.format(words.levelAuto, { level: levelLabel(words, status.level) })),
|
|
169
|
+
initiative_protocol_1.LEVELS.filter(level => level !== 'act' || status.kind.reversible).map(level => (react_1.React.createElement("option", { key: level, value: level }, levelLabel(words, level))))))); })));
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Initiative, in the settings: how much Ta does on its own and the level of each kind; then the reviews: on or off,
|
|
173
|
+
* how often and when, whether Ta chooses, what it learned of the user, and a review now.
|
|
174
|
+
*/
|
|
175
|
+
function initiativeSettings(pi, store) {
|
|
176
|
+
const words = () => i18n_1.InitiativeWords.of(pi.ui.language);
|
|
177
|
+
const autoHint = () => {
|
|
178
|
+
const { note, settings } = store.status;
|
|
179
|
+
return settings.auto && note ? `${words().autoHint} ${i18n_1.InitiativeWords.format(words().autoNote, { note })}` : words().autoHint;
|
|
180
|
+
};
|
|
181
|
+
return {
|
|
182
|
+
title: () => words().settingsTitle,
|
|
183
|
+
icon: pi.ui.icons.Sparkles,
|
|
184
|
+
rows: [
|
|
185
|
+
{ key: 'mode', label: () => words().modeLabel, description: () => words().modeHint, render: () => react_1.React.createElement(ModeSelect, { pi: pi, store: store }) },
|
|
186
|
+
{ key: 'quiet', label: () => words().quietLabel, description: () => words().quietHint, render: () => react_1.React.createElement(Quiet, { pi: pi, store: store }) },
|
|
187
|
+
{
|
|
188
|
+
key: 'kinds',
|
|
189
|
+
label: () => words().kindsLabel,
|
|
190
|
+
description: () => words().kindsHint,
|
|
191
|
+
render: () => react_1.React.createElement(Kinds, { pi: pi, store: store }),
|
|
192
|
+
stacked: true,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
key: 'enabled',
|
|
196
|
+
label: () => words().enabledLabel,
|
|
197
|
+
description: () => words().enabledHint,
|
|
198
|
+
render: () => react_1.React.createElement(SettingSwitch, { pi: pi, store: store, field: "enabled", label: words().enabledLabel }),
|
|
199
|
+
},
|
|
200
|
+
{ key: 'every', label: () => words().everyLabel, render: () => react_1.React.createElement(Every, { pi: pi, store: store }) },
|
|
201
|
+
{ key: 'time', label: () => words().timeLabel, render: () => react_1.React.createElement(Time, { pi: pi, store: store }) },
|
|
202
|
+
{
|
|
203
|
+
key: 'auto',
|
|
204
|
+
label: () => words().autoLabel,
|
|
205
|
+
description: autoHint,
|
|
206
|
+
render: () => react_1.React.createElement(SettingSwitch, { pi: pi, store: store, field: "auto", label: words().autoLabel }),
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
key: 'learn',
|
|
210
|
+
label: () => words().learnLabel,
|
|
211
|
+
description: () => words().learnHint,
|
|
212
|
+
render: () => react_1.React.createElement(SettingSwitch, { pi: pi, store: store, field: "learn", label: words().learnLabel }),
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
key: 'profile',
|
|
216
|
+
label: () => words().profileLabel,
|
|
217
|
+
description: () => words().profileHint,
|
|
218
|
+
render: () => react_1.React.createElement(Profile, { pi: pi, store: store }),
|
|
219
|
+
stacked: true,
|
|
220
|
+
},
|
|
221
|
+
// Under the label: beside it the times of the last and next review leave the label no room on a phone.
|
|
222
|
+
{ key: 'now', label: () => words().nowLabel, render: () => react_1.React.createElement(Now, { pi: pi, store: store }), stacked: true },
|
|
223
|
+
],
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
2
|
+
export declare const STYLE = "\n.tev-field { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tev-field:disabled { opacity: 0.5; }\n.tev-now { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }\n.tev-profile { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }\n.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }\n[data-touch] .tev-profile-text { font-size: 16px; }\n/* The suggestions: a card each, its kind, what and why, the answers */\n.tin-inbox { max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; }\n.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }\n.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tin-kind { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tin-kind > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); }\n.tin-time { flex: none; font-variant-numeric: tabular-nums; }\n.tin-title { margin-top: 6px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }\n.tin-why { margin-top: 4px; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; opacity: 0.85; overflow-wrap: anywhere; }\n.tin-state { margin-top: 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tin-card[data-state='failed'] .tin-state { color: var(--ta-red, #d33); }\n.tin-done .tin-title { font-weight: 500; }\n.tin-actions { display: flex; gap: 8px; margin-top: 10px; }\n.tin-actions .ta-button { min-width: 64px; justify-content: center; }\n[data-touch] .tin-actions .ta-button { min-height: 38px; flex: 1; }\n.tin-more { display: flex; gap: 14px; margin-top: 8px; }\n.tin-link { padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; text-align: left; }\n.tin-link:hover { color: var(--ta-text); }\n.tin-card > .tin-link { margin-top: 6px; display: block; }\n.tin-above { margin: 0 0 8px; }\n.tin-above .tin-card { padding: 10px 12px; }\n.tin-in-chat { margin: 4px 0; max-width: 620px; }\n.tin-decided { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n.tin-empty { padding: 48px 12px; color: var(--ta-muted); text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }\n/* The kinds, in the settings */\n.tin-kinds { margin: 0; padding: 0; list-style: none; width: 100%; }\n.tin-kind-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ta-border-muted); }\n.tin-kind-row:first-child { border-top: 0; }\n.tin-kind-text { flex: 1; min-width: 0; }\n.tin-kind-name { color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }\n.tin-kind-reason { margin-top: 2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tev-when { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n";
|
|
3
|
+
export declare function injectStyle(): () => void;
|
|
4
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STYLE = void 0;
|
|
4
|
+
exports.injectStyle = injectStyle;
|
|
5
|
+
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
6
|
+
exports.STYLE = `
|
|
7
|
+
.tev-field { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }
|
|
8
|
+
.tev-field:disabled { opacity: 0.5; }
|
|
9
|
+
.tev-now { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
|
|
10
|
+
.tev-profile { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }
|
|
11
|
+
.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }
|
|
12
|
+
[data-touch] .tev-profile-text { font-size: 16px; }
|
|
13
|
+
/* The suggestions: a card each, its kind, what and why, the answers */
|
|
14
|
+
.tin-inbox { max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; }
|
|
15
|
+
.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }
|
|
16
|
+
.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
|
|
17
|
+
.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }
|
|
18
|
+
.tin-kind { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
19
|
+
.tin-kind > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
20
|
+
.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); }
|
|
21
|
+
.tin-time { flex: none; font-variant-numeric: tabular-nums; }
|
|
22
|
+
.tin-title { margin-top: 6px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
|
|
23
|
+
.tin-why { margin-top: 4px; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; opacity: 0.85; overflow-wrap: anywhere; }
|
|
24
|
+
.tin-state { margin-top: 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
25
|
+
.tin-card[data-state='failed'] .tin-state { color: var(--ta-red, #d33); }
|
|
26
|
+
.tin-done .tin-title { font-weight: 500; }
|
|
27
|
+
.tin-actions { display: flex; gap: 8px; margin-top: 10px; }
|
|
28
|
+
.tin-actions .ta-button { min-width: 64px; justify-content: center; }
|
|
29
|
+
[data-touch] .tin-actions .ta-button { min-height: 38px; flex: 1; }
|
|
30
|
+
.tin-more { display: flex; gap: 14px; margin-top: 8px; }
|
|
31
|
+
.tin-link { padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; text-align: left; }
|
|
32
|
+
.tin-link:hover { color: var(--ta-text); }
|
|
33
|
+
.tin-card > .tin-link { margin-top: 6px; display: block; }
|
|
34
|
+
.tin-above { margin: 0 0 8px; }
|
|
35
|
+
.tin-above .tin-card { padding: 10px 12px; }
|
|
36
|
+
.tin-in-chat { margin: 4px 0; max-width: 620px; }
|
|
37
|
+
.tin-decided { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }
|
|
38
|
+
.tin-empty { padding: 48px 12px; color: var(--ta-muted); text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }
|
|
39
|
+
.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
|
|
40
|
+
/* The kinds, in the settings */
|
|
41
|
+
.tin-kinds { margin: 0; padding: 0; list-style: none; width: 100%; }
|
|
42
|
+
.tin-kind-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ta-border-muted); }
|
|
43
|
+
.tin-kind-row:first-child { border-top: 0; }
|
|
44
|
+
.tin-kind-text { flex: 1; min-width: 0; }
|
|
45
|
+
.tin-kind-name { color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }
|
|
46
|
+
.tin-kind-reason { margin-top: 2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
47
|
+
.tev-when { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
48
|
+
`;
|
|
49
|
+
function injectStyle() {
|
|
50
|
+
const element = document.createElement('style');
|
|
51
|
+
element.dataset.taPackage = 'ta-initiative';
|
|
52
|
+
element.textContent = exports.STYLE;
|
|
53
|
+
document.head.appendChild(element);
|
|
54
|
+
return () => element.remove();
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { type Offered } from './initiative-protocol';
|
|
2
|
+
/** The tool by which Ta proposes what it would do for the user: done, asked or kept for the brief, as far as the user lets each kind. */
|
|
3
|
+
export declare namespace ProposeTool {
|
|
4
|
+
const NAME = "propose";
|
|
5
|
+
const DEFINITION: {
|
|
6
|
+
name: string;
|
|
7
|
+
label: string;
|
|
8
|
+
description: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
type: string;
|
|
11
|
+
properties: {
|
|
12
|
+
kind: {
|
|
13
|
+
type: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
title: {
|
|
17
|
+
type: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
why: {
|
|
21
|
+
type: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
prompt: {
|
|
25
|
+
type: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
undo: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
kindTitle: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
evidence: {
|
|
37
|
+
type: string;
|
|
38
|
+
items: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
task: {
|
|
44
|
+
type: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
id: {
|
|
48
|
+
type: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
patch: {
|
|
52
|
+
type: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
required: string[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/** `inTurn`: a proposal of this conversation, which the turn does itself at act. */
|
|
60
|
+
function result(offered: Offered, inTurn?: boolean): string;
|
|
61
|
+
}
|
|
62
|
+
/** The tool by which Ta sets how often it reviews, in the conversation of the reviews, when the user let it. */
|
|
63
|
+
export declare namespace PaceTool {
|
|
64
|
+
const NAME = "evolve_pace";
|
|
65
|
+
const DEFINITION: {
|
|
66
|
+
name: string;
|
|
67
|
+
label: string;
|
|
68
|
+
description: string;
|
|
69
|
+
parameters: {
|
|
70
|
+
type: string;
|
|
71
|
+
properties: {
|
|
72
|
+
days: {
|
|
73
|
+
type: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
reason: {
|
|
77
|
+
type: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
required: string[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
function result(days: number): string;
|
|
85
|
+
}
|
|
86
|
+
/** The tool by which Ta rewrites what it learned of the user, in the conversation of the reviews. */
|
|
87
|
+
export declare namespace ProfileTool {
|
|
88
|
+
const NAME = "evolve_profile";
|
|
89
|
+
const DEFINITION: {
|
|
90
|
+
name: string;
|
|
91
|
+
label: string;
|
|
92
|
+
description: string;
|
|
93
|
+
parameters: {
|
|
94
|
+
type: string;
|
|
95
|
+
properties: {
|
|
96
|
+
profile: {
|
|
97
|
+
type: string;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
required: string[];
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
function result(profile: string): string;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=tool.d.ts.map
|