@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
|
@@ -5,19 +5,71 @@ var TaHostUtil;
|
|
|
5
5
|
TaHostUtil2.WAIT_MS = 1000;
|
|
6
6
|
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
7
7
|
return new Promise((resolve) => {
|
|
8
|
+
let heard = false;
|
|
9
|
+
let answered = false;
|
|
8
10
|
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
9
11
|
const request = {
|
|
10
12
|
name,
|
|
13
|
+
heard: () => {
|
|
14
|
+
heard = true;
|
|
15
|
+
},
|
|
11
16
|
resolve: (answer) => {
|
|
17
|
+
answered = true;
|
|
12
18
|
clearTimeout(timer);
|
|
13
19
|
resolve(answer);
|
|
14
20
|
}
|
|
15
21
|
};
|
|
16
22
|
events.emit(TA_HOST_EVENT, request);
|
|
23
|
+
if (!heard && !answered) {
|
|
24
|
+
clearTimeout(timer);
|
|
25
|
+
resolve(undefined);
|
|
26
|
+
}
|
|
17
27
|
});
|
|
18
28
|
}
|
|
19
29
|
TaHostUtil2.reach = reach;
|
|
20
30
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
31
|
+
var TA_KEEP_MARK = "[ta:keep]";
|
|
32
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
33
|
+
var TaAskUtil;
|
|
34
|
+
(function(TaAskUtil2) {
|
|
35
|
+
const LENGTH = 120;
|
|
36
|
+
function entry(question) {
|
|
37
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
38
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
39
|
+
}
|
|
40
|
+
TaAskUtil2.entry = entry;
|
|
41
|
+
function asking(entries) {
|
|
42
|
+
var _a;
|
|
43
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
44
|
+
const entry2 = entries[i];
|
|
45
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
49
|
+
return read(entry2);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
TaAskUtil2.asking = asking;
|
|
55
|
+
function next(asked, entry2) {
|
|
56
|
+
var _a;
|
|
57
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
61
|
+
}
|
|
62
|
+
TaAskUtil2.next = next;
|
|
63
|
+
function read(found) {
|
|
64
|
+
var _a;
|
|
65
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
66
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
70
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
71
|
+
}
|
|
72
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
21
73
|
|
|
22
74
|
// web-src/cron-protocol.ts
|
|
23
75
|
var NAME = "@celljs/ta-cron";
|
|
@@ -45,235 +97,6 @@ var Limits;
|
|
|
45
97
|
Limits.PARALLEL_RUNS = 3;
|
|
46
98
|
})(Limits ||= {});
|
|
47
99
|
|
|
48
|
-
// web-src/i18n.ts
|
|
49
|
-
var EN = {
|
|
50
|
-
title: "Scheduled",
|
|
51
|
-
cardTitle: "Next up",
|
|
52
|
-
cardEmpty: "Nothing scheduled",
|
|
53
|
-
newTask: "New task",
|
|
54
|
-
editTask: "Edit task",
|
|
55
|
-
count: "{count} tasks",
|
|
56
|
-
runningCount: "{count} running",
|
|
57
|
-
emptyTitle: "Let Ta work on a schedule",
|
|
58
|
-
emptyHint: "Each run is a new conversation; you get the summary.",
|
|
59
|
-
example1: "Sum up yesterday’s commits",
|
|
60
|
-
example2: "Check that CI passes",
|
|
61
|
-
example3: "Write the daily report",
|
|
62
|
-
next: "in {time}",
|
|
63
|
-
nextAt: "Next {time}",
|
|
64
|
-
running: "Running…",
|
|
65
|
-
paused: "Paused",
|
|
66
|
-
done: "Done",
|
|
67
|
-
runNow: "Run now",
|
|
68
|
-
edit: "Edit",
|
|
69
|
-
delete: "Delete",
|
|
70
|
-
confirmDelete: "Delete {name}?",
|
|
71
|
-
confirmDeleteMessage: "Its runs go too; their conversations stay.",
|
|
72
|
-
enable: "On",
|
|
73
|
-
prompt: "What should Ta do?",
|
|
74
|
-
promptPlaceholder: "For example: check whether CI on main passes; if not, find out why",
|
|
75
|
-
name: "Name",
|
|
76
|
-
namePlaceholder: "Optional",
|
|
77
|
-
when: "When",
|
|
78
|
-
once: "Once",
|
|
79
|
-
every: "Every",
|
|
80
|
-
daily: "Daily",
|
|
81
|
-
weekdays: "Weekdays",
|
|
82
|
-
weekly: "Weekly",
|
|
83
|
-
custom: "Cron",
|
|
84
|
-
minutes: "minutes",
|
|
85
|
-
hours: "hours",
|
|
86
|
-
days: "days",
|
|
87
|
-
directory: "Directory",
|
|
88
|
-
notify: "Tell me",
|
|
89
|
-
notifyDefault: "Default",
|
|
90
|
-
notifyAlways: "Every run",
|
|
91
|
-
notifyError: "When it fails",
|
|
92
|
-
notifyNever: "Never",
|
|
93
|
-
model: "Model",
|
|
94
|
-
thinking: "Thinking",
|
|
95
|
-
more: "More",
|
|
96
|
-
cancel: "Cancel",
|
|
97
|
-
save: "Save",
|
|
98
|
-
create: "Create",
|
|
99
|
-
preview: "Next run {time}",
|
|
100
|
-
noNext: "No next run",
|
|
101
|
-
runs: "Runs",
|
|
102
|
-
noRuns: "No runs yet",
|
|
103
|
-
byHand: "by hand",
|
|
104
|
-
openChat: "Open conversation",
|
|
105
|
-
noChat: "This run has no conversation.",
|
|
106
|
-
success: "Done",
|
|
107
|
-
error: "Failed",
|
|
108
|
-
missed: "Missed",
|
|
109
|
-
interrupted: "The Ta service stopped during the run.",
|
|
110
|
-
timeout: "The run took too long and was stopped.",
|
|
111
|
-
missedText: "The Ta service was not running at its time.",
|
|
112
|
-
started: "Started {name}",
|
|
113
|
-
finished: "{name} is done",
|
|
114
|
-
failed: "{name} failed",
|
|
115
|
-
created: "Scheduled",
|
|
116
|
-
updated: "Updated",
|
|
117
|
-
enabled: "Turned on",
|
|
118
|
-
disabled: "Turned off",
|
|
119
|
-
removed: "Removed {names}",
|
|
120
|
-
removedNone: "Nothing removed",
|
|
121
|
-
noTasks: "No scheduled tasks yet. Try /loop 30m <prompt>.",
|
|
122
|
-
show: "Show",
|
|
123
|
-
failedAction: "Could not do it: {message}",
|
|
124
|
-
help: "Scheduled tasks",
|
|
125
|
-
serviceNeeded: "Scheduled tasks run in the Ta service.",
|
|
126
|
-
makeExtension: "Make an extension",
|
|
127
|
-
makeExtensionHint: "Ta makes a page of its own for what this task finds",
|
|
128
|
-
extensionAsk: 'Make the scheduled task "{name}" an extension that shows its results',
|
|
129
|
-
promptLabel: "What Ta does",
|
|
130
|
-
showAll: "Show all",
|
|
131
|
-
showLess: "Show less",
|
|
132
|
-
stats: "Ran {runs} times",
|
|
133
|
-
statsFailed: "Ran {runs} times · {fails} failed",
|
|
134
|
-
lastRun: "Last {time}",
|
|
135
|
-
moreOptions: "More options",
|
|
136
|
-
shortcut: "{key} + Enter to {action}",
|
|
137
|
-
modelFailed: "The model for making extensions ({model}) cannot be used, so the default one is: {message}",
|
|
138
|
-
fromChat: "Make a scheduled task",
|
|
139
|
-
fromChatDetail: "Do this again on a schedule",
|
|
140
|
-
fromChatWhen: "How often",
|
|
141
|
-
fromChatOther: "Another time",
|
|
142
|
-
fromChatOtherDetail: "Ta asks you",
|
|
143
|
-
fromChatAsk: "Make what this conversation did a scheduled task: {when}",
|
|
144
|
-
fromChatAskWhen: "Make what this conversation did a scheduled task; ask me how often first",
|
|
145
|
-
toolAdd: "Schedule",
|
|
146
|
-
toolUpdate: "Change scheduled task",
|
|
147
|
-
toolList: "List scheduled tasks",
|
|
148
|
-
toolShow: "Look at scheduled task",
|
|
149
|
-
toolEnable: "Turn on scheduled task",
|
|
150
|
-
toolDisable: "Pause scheduled task",
|
|
151
|
-
toolDelete: "Delete scheduled task",
|
|
152
|
-
toolRun: "Run scheduled task",
|
|
153
|
-
toolRuns: "Look at the runs of",
|
|
154
|
-
toolClear: "Clear scheduled tasks",
|
|
155
|
-
toolOther: "Scheduled tasks"
|
|
156
|
-
};
|
|
157
|
-
var ZH = {
|
|
158
|
-
title: "定时任务",
|
|
159
|
-
cardTitle: "接下来",
|
|
160
|
-
cardEmpty: "没有排着的任务",
|
|
161
|
-
newTask: "新建任务",
|
|
162
|
-
editTask: "编辑任务",
|
|
163
|
-
count: "{count} 个任务",
|
|
164
|
-
runningCount: "{count} 个运行中",
|
|
165
|
-
emptyTitle: "让 Ta 按时干活",
|
|
166
|
-
emptyHint: "每次运行都是一个新对话,结束后给你看总结。",
|
|
167
|
-
example1: "汇总昨天的提交",
|
|
168
|
-
example2: "检查 CI 是否通过",
|
|
169
|
-
example3: "写今天的日报",
|
|
170
|
-
next: "{time}后",
|
|
171
|
-
nextAt: "下次 {time}",
|
|
172
|
-
running: "运行中…",
|
|
173
|
-
paused: "已暂停",
|
|
174
|
-
done: "已完成",
|
|
175
|
-
runNow: "立即运行",
|
|
176
|
-
edit: "编辑",
|
|
177
|
-
delete: "删除",
|
|
178
|
-
confirmDelete: "删除“{name}”?",
|
|
179
|
-
confirmDeleteMessage: "它的运行记录一起删除;对话保留。",
|
|
180
|
-
enable: "启用",
|
|
181
|
-
prompt: "要 Ta 做什么?",
|
|
182
|
-
promptPlaceholder: "例如:检查 main 分支的 CI 是否通过,没通过就查明原因",
|
|
183
|
-
name: "名字",
|
|
184
|
-
namePlaceholder: "可不填",
|
|
185
|
-
when: "时间",
|
|
186
|
-
once: "一次",
|
|
187
|
-
every: "每隔",
|
|
188
|
-
daily: "每天",
|
|
189
|
-
weekdays: "工作日",
|
|
190
|
-
weekly: "每周",
|
|
191
|
-
custom: "Cron",
|
|
192
|
-
minutes: "分钟",
|
|
193
|
-
hours: "小时",
|
|
194
|
-
days: "天",
|
|
195
|
-
directory: "目录",
|
|
196
|
-
notify: "通知我",
|
|
197
|
-
notifyDefault: "默认",
|
|
198
|
-
notifyAlways: "每次运行",
|
|
199
|
-
notifyError: "失败时",
|
|
200
|
-
notifyNever: "不通知",
|
|
201
|
-
model: "模型",
|
|
202
|
-
thinking: "思考级别",
|
|
203
|
-
more: "更多",
|
|
204
|
-
cancel: "取消",
|
|
205
|
-
save: "保存",
|
|
206
|
-
create: "创建",
|
|
207
|
-
preview: "下次运行 {time}",
|
|
208
|
-
noNext: "没有下次运行",
|
|
209
|
-
runs: "运行记录",
|
|
210
|
-
noRuns: "还没有运行过",
|
|
211
|
-
byHand: "手动",
|
|
212
|
-
openChat: "打开对话",
|
|
213
|
-
noChat: "这次运行没有对话。",
|
|
214
|
-
success: "完成",
|
|
215
|
-
error: "失败",
|
|
216
|
-
missed: "错过",
|
|
217
|
-
interrupted: "Ta 服务在运行中途停止了。",
|
|
218
|
-
timeout: "运行时间太长,已停止。",
|
|
219
|
-
missedText: "到点时 Ta 服务没有运行。",
|
|
220
|
-
started: "已开始运行“{name}”",
|
|
221
|
-
finished: "“{name}”已完成",
|
|
222
|
-
failed: "“{name}”运行失败",
|
|
223
|
-
created: "已创建定时任务",
|
|
224
|
-
updated: "已更新",
|
|
225
|
-
enabled: "已启用",
|
|
226
|
-
disabled: "已暂停",
|
|
227
|
-
removed: "已删除 {names}",
|
|
228
|
-
removedNone: "没有删除任何任务",
|
|
229
|
-
noTasks: "还没有定时任务。试试 /loop 30m <要做的事>。",
|
|
230
|
-
show: "查看",
|
|
231
|
-
failedAction: "操作失败:{message}",
|
|
232
|
-
help: "定时任务",
|
|
233
|
-
serviceNeeded: "定时任务在 Ta 服务里运行。",
|
|
234
|
-
makeExtension: "做成扩展",
|
|
235
|
-
makeExtensionHint: "让 Ta 为这个任务的结果做一个专属页面",
|
|
236
|
-
extensionAsk: "把定时任务“{name}”做成扩展,用专属页面呈现它的运行结果",
|
|
237
|
-
promptLabel: "Ta 要做的事",
|
|
238
|
-
showAll: "展开全文",
|
|
239
|
-
showLess: "收起",
|
|
240
|
-
stats: "已运行 {runs} 次",
|
|
241
|
-
statsFailed: "已运行 {runs} 次 · 失败 {fails} 次",
|
|
242
|
-
lastRun: "上次 {time}",
|
|
243
|
-
moreOptions: "更多选项",
|
|
244
|
-
shortcut: "{key} + 回车{action}",
|
|
245
|
-
modelFailed: "做扩展的模型({model})现在用不了,已改用默认模型:{message}",
|
|
246
|
-
fromChat: "做成定时任务",
|
|
247
|
-
fromChatDetail: "定期再做一遍这次的事",
|
|
248
|
-
fromChatWhen: "多久运行一次",
|
|
249
|
-
fromChatOther: "其他时间",
|
|
250
|
-
fromChatOtherDetail: "让 Ta 问我",
|
|
251
|
-
fromChatAsk: "把这次对话做的事做成定时任务,{when} 运行",
|
|
252
|
-
fromChatAskWhen: "把这次对话做的事做成定时任务,先问我多久运行一次",
|
|
253
|
-
toolAdd: "新建定时任务",
|
|
254
|
-
toolUpdate: "修改定时任务",
|
|
255
|
-
toolList: "查看定时任务",
|
|
256
|
-
toolShow: "查看定时任务",
|
|
257
|
-
toolEnable: "开启定时任务",
|
|
258
|
-
toolDisable: "暂停定时任务",
|
|
259
|
-
toolDelete: "删除定时任务",
|
|
260
|
-
toolRun: "立即运行定时任务",
|
|
261
|
-
toolRuns: "查看运行记录",
|
|
262
|
-
toolClear: "清空定时任务",
|
|
263
|
-
toolOther: "定时任务"
|
|
264
|
-
};
|
|
265
|
-
var CronWords;
|
|
266
|
-
((CronWords) => {
|
|
267
|
-
function of(language) {
|
|
268
|
-
return language === "zh-CN" ? ZH : EN;
|
|
269
|
-
}
|
|
270
|
-
CronWords.of = of;
|
|
271
|
-
function format(text, values) {
|
|
272
|
-
return text.replace(/\{(\w+)\}/g, (whole, key) => (key in values) ? String(values[key]) : whole);
|
|
273
|
-
}
|
|
274
|
-
CronWords.format = format;
|
|
275
|
-
})(CronWords ||= {});
|
|
276
|
-
|
|
277
100
|
// web-src/cron-expression.ts
|
|
278
101
|
var FIELDS = [
|
|
279
102
|
{ name: "minute", min: 0, max: 59 },
|
|
@@ -988,37 +811,41 @@ var CronTool;
|
|
|
988
811
|
|
|
989
812
|
// web-src/chat-task.ts
|
|
990
813
|
var TASK_BLOCK = "ta-cron-task";
|
|
991
|
-
var
|
|
814
|
+
var KEEP_SECTION = "ta-cron-keep";
|
|
815
|
+
var KEEP_TURNS = 3;
|
|
992
816
|
var ChatTask;
|
|
993
817
|
((ChatTask) => {
|
|
994
|
-
function
|
|
995
|
-
const words = CronWords.of(language);
|
|
996
|
-
const ask = schedule2 ? CronWords.format(words.fromChatAsk, { when: ScheduleUtil.describe(schedule2, language) }) : words.fromChatAskWhen;
|
|
997
|
-
return `<context>
|
|
998
|
-
${context(schedule2)}
|
|
999
|
-
</context>
|
|
1000
|
-
${ask}`;
|
|
1001
|
-
}
|
|
1002
|
-
ChatTask.message = message;
|
|
1003
|
-
function context(schedule2) {
|
|
818
|
+
function section() {
|
|
1004
819
|
const fence = "```";
|
|
1005
820
|
return [
|
|
1006
|
-
|
|
1007
|
-
|
|
821
|
+
`The user asked to keep how a conversation got its work done (their message whose context starts with ${TA_KEEP_MARK}). One form it can take is a scheduled task of Ta that does it again and again: when it should be done on a schedule with nobody asking (a check, a report, an upgrade); not what needs the user's eye, a device in their hand or a decision of theirs.`,
|
|
822
|
+
"- Unless the conversation says how often, ask, with two or three choices that suit the work, and write the task once you know.",
|
|
1008
823
|
"- Each run is a new conversation in this directory with nobody watching, and it does not see this one: write a prompt complete in itself, with the goal, the repository, branch, files, commands, links and other specifics found here, the steps that worked, and what its last answer should report (short: what it found, what changed since the run before, what needs the user).",
|
|
1009
824
|
'- Leave out what was only tried and dropped, and what holds only this once: say "since the last run" or "yesterday" rather than a date.',
|
|
1010
825
|
`- Say in a line or two what the task does, then end your answer with it in a fenced block of the language ${TASK_BLOCK}, which Ta reads to create the task: do not create it with ${CronTool.NAME} or a command. A longer fence when the prompt has one of its own:`,
|
|
1011
826
|
`${fence}${TASK_BLOCK}`,
|
|
1012
827
|
"name: <short, for the list>",
|
|
1013
|
-
|
|
828
|
+
"when: <30m, 2h, @daily, or five fields of cron, as 0 9 * * 1-5>",
|
|
1014
829
|
"---",
|
|
1015
830
|
"<the prompt>",
|
|
1016
|
-
fence
|
|
1017
|
-
"- When the conversation holds nothing worth doing again, say so, ask what the task should do, and leave the block out until you know."
|
|
831
|
+
fence
|
|
1018
832
|
].join(`
|
|
1019
833
|
`);
|
|
1020
834
|
}
|
|
1021
|
-
ChatTask.
|
|
835
|
+
ChatTask.section = section;
|
|
836
|
+
function keeping(prompt, entries) {
|
|
837
|
+
if (prompt?.includes(TA_KEEP_MARK)) {
|
|
838
|
+
return true;
|
|
839
|
+
}
|
|
840
|
+
let turns = 0;
|
|
841
|
+
return back(entries, (said) => {
|
|
842
|
+
if (said.includes(TA_KEEP_MARK)) {
|
|
843
|
+
return true;
|
|
844
|
+
}
|
|
845
|
+
return ++turns >= KEEP_TURNS ? false : undefined;
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
ChatTask.keeping = keeping;
|
|
1022
849
|
function find(text2) {
|
|
1023
850
|
const lines = text2.split(/\r?\n/);
|
|
1024
851
|
let found;
|
|
@@ -1057,23 +884,26 @@ ${ask}`;
|
|
|
1057
884
|
}
|
|
1058
885
|
ChatTask.schedule = schedule;
|
|
1059
886
|
function pending(entries) {
|
|
887
|
+
return back(entries, (said) => said.includes(TA_KEEP_MARK) ? true : undefined);
|
|
888
|
+
}
|
|
889
|
+
ChatTask.pending = pending;
|
|
890
|
+
function back(entries, test) {
|
|
1060
891
|
for (let index = entries.length - 1;index >= 0; index--) {
|
|
1061
892
|
const entry = entries[index];
|
|
1062
893
|
const custom = entry.type === "custom_message" ? entry : entry.message?.role === "custom" ? entry.message : undefined;
|
|
1063
894
|
if (custom?.customType === REPLY_TYPE && created(custom.details)) {
|
|
1064
|
-
return;
|
|
895
|
+
return false;
|
|
1065
896
|
}
|
|
1066
897
|
if (entry.type !== "message" || entry.message?.role !== "user") {
|
|
1067
898
|
continue;
|
|
1068
899
|
}
|
|
1069
|
-
const
|
|
1070
|
-
if (
|
|
1071
|
-
return
|
|
900
|
+
const answer = test(text(entry.message.content));
|
|
901
|
+
if (answer !== undefined) {
|
|
902
|
+
return answer;
|
|
1072
903
|
}
|
|
1073
904
|
}
|
|
1074
|
-
return;
|
|
905
|
+
return false;
|
|
1075
906
|
}
|
|
1076
|
-
ChatTask.pending = pending;
|
|
1077
907
|
function text(content) {
|
|
1078
908
|
if (typeof content === "string") {
|
|
1079
909
|
return content;
|
|
@@ -1115,9 +945,13 @@ function activate(pi) {
|
|
|
1115
945
|
pi.on("session_start", () => {
|
|
1116
946
|
reach();
|
|
1117
947
|
});
|
|
1118
|
-
pi.on("before_agent_start", (
|
|
948
|
+
pi.on("before_agent_start", (event, ctx) => {
|
|
1119
949
|
if (isRun(ctx)) {
|
|
1120
950
|
pi.setActiveTools(pi.getActiveTools().filter((name) => name !== CronTool.NAME));
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
if (event.systemPromptOptions && ChatTask.keeping(event.prompt, ctx.sessionManager.getBranch())) {
|
|
954
|
+
event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [KEEP_SECTION]: ChatTask.section() };
|
|
1121
955
|
}
|
|
1122
956
|
});
|
|
1123
957
|
pi.on("context", (event) => {
|
|
@@ -1157,12 +991,12 @@ function activate(pi) {
|
|
|
1157
991
|
}
|
|
1158
992
|
try {
|
|
1159
993
|
const draft = [...event.messages].reverse().filter((message) => message.role === "assistant").map((message) => ChatTask.find(ChatTask.text(message.content))).find((found) => found !== undefined);
|
|
1160
|
-
|
|
1161
|
-
const schedule = draft?.schedule ?? ask?.schedule;
|
|
1162
|
-
if (!draft || !ask || !schedule) {
|
|
994
|
+
if (!draft?.schedule || !ChatTask.pending(ctx.sessionManager.getBranch())) {
|
|
1163
995
|
return;
|
|
1164
996
|
}
|
|
1165
|
-
reply(await create({ name: draft.name || undefined, prompt: draft.prompt, schedule }, await scheduler(ctx)), {
|
|
997
|
+
reply(await create({ name: draft.name || undefined, prompt: draft.prompt, schedule: draft.schedule }, await scheduler(ctx)), {
|
|
998
|
+
triggerTurn: false
|
|
999
|
+
});
|
|
1166
1000
|
} catch (error) {
|
|
1167
1001
|
reply({ kind: "error", message: error instanceof Error ? error.message : String(error) }, { triggerTurn: false });
|
|
1168
1002
|
}
|
|
@@ -582,6 +582,15 @@ var TaskUtil;
|
|
|
582
582
|
return line.replace(/^\s*(?:#{1,6}\s+|[-*+]\s+|>\s*|\d+[.)]\s+)/, "").replace(/\*\*|__|`/g, "").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").trim();
|
|
583
583
|
}
|
|
584
584
|
TaskUtil.firstLine = firstLine;
|
|
585
|
+
function split(tasks, stay = new Set) {
|
|
586
|
+
const listed = [];
|
|
587
|
+
const off = [];
|
|
588
|
+
for (const task of tasks) {
|
|
589
|
+
(task.enabled || task.lastStatus === "running" || stay.has(task.id) ? listed : off).push(task);
|
|
590
|
+
}
|
|
591
|
+
return [listed, off];
|
|
592
|
+
}
|
|
593
|
+
TaskUtil.split = split;
|
|
585
594
|
function missed(task, now) {
|
|
586
595
|
return task.schedule.kind === "once" && !!task.nextRunAt && now.getTime() - new Date(task.nextRunAt).getTime() > Limits.GRACE_MS;
|
|
587
596
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type Schedule } from './cron-protocol';
|
|
2
2
|
/** The language of the fenced block in which Ta writes the task; the pi extension creates it from there. */
|
|
3
3
|
export declare const TASK_BLOCK = "ta-cron-task";
|
|
4
|
+
/** The section of the system prompt on the turns of a Keep (TA_KEEP_MARK), which offers a scheduled task. */
|
|
5
|
+
export declare const KEEP_SECTION = "ta-cron-keep";
|
|
4
6
|
/** What a conversation holds, as the pi extension reads it (its entries on the branch, oldest first). */
|
|
5
7
|
interface Entry {
|
|
6
8
|
type: string;
|
|
@@ -20,27 +22,26 @@ export interface DraftTask {
|
|
|
20
22
|
schedule?: Schedule;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
24
|
-
* conversation
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* A scheduled task as a form of Keep (of @celljs/ta-recall, in the + of the message box), which asks Ta to keep how a
|
|
26
|
+
* conversation got its work done: while the user's message of a Keep is recent, the system prompt has a section of
|
|
27
|
+
* this package that says when a task fits and how to write it. Ta answers with the task in a `ta-cron-task` block,
|
|
28
|
+
* and the pi extension creates it (extension.ts): so it works with any model, another coding agent too, which has
|
|
29
|
+
* no tool schedule_task.
|
|
28
30
|
*/
|
|
29
31
|
export declare namespace ChatTask {
|
|
30
|
-
|
|
31
|
-
function
|
|
32
|
+
/** The section KEEP_SECTION: when a task is the form to keep, and the block Ta writes it in. */
|
|
33
|
+
function section(): string;
|
|
34
|
+
/**
|
|
35
|
+
* The turn has the section: its prompt is a Keep, or one of the last KEEP_TURNS messages of the user before it,
|
|
36
|
+
* and no task was created since.
|
|
37
|
+
*/
|
|
38
|
+
function keeping(prompt: string | undefined, entries: readonly Entry[]): boolean;
|
|
32
39
|
/** The last `ta-cron-task` block of an answer; undefined when it has none or it says no prompt. Throws on a schedule it cannot read. */
|
|
33
40
|
function find(text: string): DraftTask | undefined;
|
|
34
41
|
/** `30m` is an interval; `@daily` or five fields, cron. */
|
|
35
42
|
function schedule(text: string): Schedule;
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
* the schedule it picked; undefined when there is none. Its answer may come turns later, once the user
|
|
39
|
-
* said how often.
|
|
40
|
-
*/
|
|
41
|
-
function pending(entries: readonly Entry[]): {
|
|
42
|
-
schedule?: Schedule;
|
|
43
|
-
} | undefined;
|
|
43
|
+
/** A task Ta wrote answers a Keep: one on the branch with no task created since; its answer may come turns later, once the user said how often. */
|
|
44
|
+
function pending(entries: readonly Entry[]): boolean;
|
|
44
45
|
/** The text of a message, as pi keeps it: a string, or parts of which some are text. */
|
|
45
46
|
function text(content: unknown): string;
|
|
46
47
|
}
|
|
@@ -1,51 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChatTask = exports.TASK_BLOCK = void 0;
|
|
3
|
+
exports.ChatTask = exports.KEEP_SECTION = exports.TASK_BLOCK = void 0;
|
|
4
|
+
const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
|
|
4
5
|
const cron_protocol_1 = require("./cron-protocol");
|
|
5
|
-
const i18n_1 = require("./i18n");
|
|
6
6
|
const schedule_util_1 = require("./schedule-util");
|
|
7
7
|
const tool_1 = require("./tool");
|
|
8
8
|
/** The language of the fenced block in which Ta writes the task; the pi extension creates it from there. */
|
|
9
9
|
exports.TASK_BLOCK = 'ta-cron-task';
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/** The section of the system prompt on the turns of a Keep (TA_KEEP_MARK), which offers a scheduled task. */
|
|
11
|
+
exports.KEEP_SECTION = 'ta-cron-keep';
|
|
12
|
+
/** The replies of the user after a Keep that still have the section: Ta may first ask how often. */
|
|
13
|
+
const KEEP_TURNS = 3;
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
14
|
-
* conversation
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* A scheduled task as a form of Keep (of @celljs/ta-recall, in the + of the message box), which asks Ta to keep how a
|
|
16
|
+
* conversation got its work done: while the user's message of a Keep is recent, the system prompt has a section of
|
|
17
|
+
* this package that says when a task fits and how to write it. Ta answers with the task in a `ta-cron-task` block,
|
|
18
|
+
* and the pi extension creates it (extension.ts): so it works with any model, another coding agent too, which has
|
|
19
|
+
* no tool schedule_task.
|
|
18
20
|
*/
|
|
19
21
|
var ChatTask;
|
|
20
22
|
(function (ChatTask) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const ask = schedule ? i18n_1.CronWords.format(words.fromChatAsk, { when: schedule_util_1.ScheduleUtil.describe(schedule, language) }) : words.fromChatAskWhen;
|
|
24
|
-
return `<context>\n${context(schedule)}\n</context>\n${ask}`;
|
|
25
|
-
}
|
|
26
|
-
ChatTask.message = message;
|
|
27
|
-
function context(schedule) {
|
|
23
|
+
/** The section KEEP_SECTION: when a task is the form to keep, and the block Ta writes it in. */
|
|
24
|
+
function section() {
|
|
28
25
|
const fence = '```';
|
|
29
26
|
return [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
? `The user wants what was done in this conversation made a scheduled task of Ta that does it again and again, ${schedule_util_1.ScheduleUtil.describe(schedule, 'en-US')}.`
|
|
33
|
-
: 'The user wants what was done in this conversation made a scheduled task of Ta that does it again and again, and has not said how often: unless the conversation says it, ask, with two or three choices that suit the work, and write the task once you know.',
|
|
27
|
+
`The user asked to keep how a conversation got its work done (their message whose context starts with ${ta_extension_host_1.TA_KEEP_MARK}). One form it can take is a scheduled task of Ta that does it again and again: when it should be done on a schedule with nobody asking (a check, a report, an upgrade); not what needs the user's eye, a device in their hand or a decision of theirs.`,
|
|
28
|
+
'- Unless the conversation says how often, ask, with two or three choices that suit the work, and write the task once you know.',
|
|
34
29
|
'- Each run is a new conversation in this directory with nobody watching, and it does not see this one: write a prompt complete in itself, with the goal, the repository, branch, files, commands, links and other specifics found here, the steps that worked, and what its last answer should report (short: what it found, what changed since the run before, what needs the user).',
|
|
35
30
|
'- Leave out what was only tried and dropped, and what holds only this once: say "since the last run" or "yesterday" rather than a date.',
|
|
36
31
|
`- Say in a line or two what the task does, then end your answer with it in a fenced block of the language ${exports.TASK_BLOCK}, which Ta reads to create the task: do not create it with ${tool_1.CronTool.NAME} or a command. A longer fence when the prompt has one of its own:`,
|
|
37
32
|
`${fence}${exports.TASK_BLOCK}`,
|
|
38
33
|
'name: <short, for the list>',
|
|
39
|
-
|
|
40
|
-
? 'when: <only when the user asked for another time since: 30m, 2h, @daily, or five fields of cron>'
|
|
41
|
-
: 'when: <30m, 2h, @daily, or five fields of cron, as 0 9 * * 1-5>',
|
|
34
|
+
'when: <30m, 2h, @daily, or five fields of cron, as 0 9 * * 1-5>',
|
|
42
35
|
'---',
|
|
43
36
|
'<the prompt>',
|
|
44
37
|
fence,
|
|
45
|
-
'- When the conversation holds nothing worth doing again, say so, ask what the task should do, and leave the block out until you know.',
|
|
46
38
|
].join('\n');
|
|
47
39
|
}
|
|
48
|
-
ChatTask.
|
|
40
|
+
ChatTask.section = section;
|
|
41
|
+
/**
|
|
42
|
+
* The turn has the section: its prompt is a Keep, or one of the last KEEP_TURNS messages of the user before it,
|
|
43
|
+
* and no task was created since.
|
|
44
|
+
*/
|
|
45
|
+
function keeping(prompt, entries) {
|
|
46
|
+
if (prompt === null || prompt === void 0 ? void 0 : prompt.includes(ta_extension_host_1.TA_KEEP_MARK)) {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
let turns = 0;
|
|
50
|
+
return back(entries, said => {
|
|
51
|
+
if (said.includes(ta_extension_host_1.TA_KEEP_MARK)) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
return ++turns >= KEEP_TURNS ? false : undefined;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
ChatTask.keeping = keeping;
|
|
49
58
|
/** The last `ta-cron-task` block of an answer; undefined when it has none or it says no prompt. Throws on a schedule it cannot read. */
|
|
50
59
|
function find(text) {
|
|
51
60
|
const lines = text.split(/\r?\n/);
|
|
@@ -88,30 +97,30 @@ var ChatTask;
|
|
|
88
97
|
return schedule_util_1.ScheduleUtil.check({ kind: 'cron', expression: when });
|
|
89
98
|
}
|
|
90
99
|
ChatTask.schedule = schedule;
|
|
91
|
-
/**
|
|
92
|
-
* The ask a turn that wrote a task answers: the latest one on the branch with no task created since, and
|
|
93
|
-
* the schedule it picked; undefined when there is none. Its answer may come turns later, once the user
|
|
94
|
-
* said how often.
|
|
95
|
-
*/
|
|
100
|
+
/** A task Ta wrote answers a Keep: one on the branch with no task created since; its answer may come turns later, once the user said how often. */
|
|
96
101
|
function pending(entries) {
|
|
102
|
+
return back(entries, said => (said.includes(ta_extension_host_1.TA_KEEP_MARK) ? true : undefined));
|
|
103
|
+
}
|
|
104
|
+
ChatTask.pending = pending;
|
|
105
|
+
/** Goes back over the messages of the user, until a task created (false) or `test` answers. */
|
|
106
|
+
function back(entries, test) {
|
|
97
107
|
var _a, _b;
|
|
98
108
|
for (let index = entries.length - 1; index >= 0; index--) {
|
|
99
109
|
const entry = entries[index];
|
|
100
110
|
const custom = entry.type === 'custom_message' ? entry : ((_a = entry.message) === null || _a === void 0 ? void 0 : _a.role) === 'custom' ? entry.message : undefined;
|
|
101
111
|
if ((custom === null || custom === void 0 ? void 0 : custom.customType) === cron_protocol_1.REPLY_TYPE && created(custom.details)) {
|
|
102
|
-
return
|
|
112
|
+
return false;
|
|
103
113
|
}
|
|
104
114
|
if (entry.type !== 'message' || ((_b = entry.message) === null || _b === void 0 ? void 0 : _b.role) !== 'user') {
|
|
105
115
|
continue;
|
|
106
116
|
}
|
|
107
|
-
const
|
|
108
|
-
if (
|
|
109
|
-
return
|
|
117
|
+
const answer = test(text(entry.message.content));
|
|
118
|
+
if (answer !== undefined) {
|
|
119
|
+
return answer;
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
|
-
return
|
|
122
|
+
return false;
|
|
113
123
|
}
|
|
114
|
-
ChatTask.pending = pending;
|
|
115
124
|
/** The text of a message, as pi keeps it: a string, or parts of which some are text. */
|
|
116
125
|
function text(content) {
|
|
117
126
|
if (typeof content === 'string') {
|