@celljs/ta 4.12.0 → 4.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/cli.mjs +1006 -164
- package/dist/gateway.mjs +182 -2
- package/dist/pi/CHANGELOG.md +15 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +1 -1
- package/dist/pi/packages/ta-agents/README.md +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +75 -11
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +2 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +6 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +7 -5
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +44 -3
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +12 -2
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +29 -4
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +72 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +178 -0
- package/dist/pi/packages/ta-bots/package.json +7 -2
- package/dist/pi/packages/ta-changes/extension/index.mjs +72 -0
- package/dist/pi/packages/ta-changes/package.json +8 -2
- package/dist/pi/packages/ta-channels/README.en.md +3 -1
- package/dist/pi/packages/ta-channels/README.md +3 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +78 -4
- package/dist/pi/packages/ta-channels/host/index.mjs +289 -8
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +8 -2
- package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/room.js +31 -5
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +7 -13
- package/dist/pi/packages/ta-channels/lib/team-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/team-view.js +45 -0
- package/dist/pi/packages/ta-channels/lib/team.d.ts +20 -4
- package/dist/pi/packages/ta-channels/lib/team.js +87 -6
- package/dist/pi/packages/ta-channels/package.json +26 -2
- package/dist/pi/packages/ta-channels/web/index.js +137 -27
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +2 -2
- package/dist/pi/packages/ta-cron/README.md +2 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +113 -258
- package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
- package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +12 -8
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
- package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
- package/dist/pi/packages/ta-cron/lib/index.js +0 -2
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/page.js +24 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +8 -0
- package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
- package/dist/pi/packages/ta-cron/package.json +10 -2
- package/dist/pi/packages/ta-cron/web/index.js +607 -784
- package/dist/pi/packages/ta-extensions/README.en.md +1 -2
- package/dist/pi/packages/ta-extensions/README.md +1 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
- package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
- package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
- package/dist/pi/packages/ta-extensions/package.json +10 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +15 -11
- package/dist/pi/packages/ta-extensions/web/index.js +197 -97
- package/dist/pi/packages/ta-games/package.json +8 -2
- package/dist/pi/packages/ta-glance/README.en.md +1 -0
- package/dist/pi/packages/ta-glance/README.md +1 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +446 -3
- package/dist/pi/packages/ta-glance/lib/card.js +38 -12
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +10 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.js +97 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +3 -3
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +3 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +6 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +41 -7
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +9 -0
- package/dist/pi/packages/ta-glance/lib/index.js +4 -1
- package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/style.js +9 -1
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-glance/web/index.js +87 -19
- package/dist/pi/packages/ta-initiative/README.en.md +66 -0
- package/dist/pi/packages/ta-initiative/README.md +66 -0
- package/dist/pi/packages/ta-initiative/extension/index.mjs +741 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
- package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +237 -0
- package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
- package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
- package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
- package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
- package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
- package/dist/pi/packages/ta-initiative/package.json +63 -0
- package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
- package/dist/pi/packages/ta-launcher/README.en.md +2 -1
- package/dist/pi/packages/ta-launcher/README.md +2 -1
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +58 -1
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +109 -2
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +123 -11
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +45 -10
- package/dist/pi/packages/ta-manual/web/index.js +567 -12
- package/dist/pi/packages/ta-moments/README.en.md +29 -0
- package/dist/pi/packages/ta-moments/README.md +29 -0
- package/dist/pi/packages/ta-moments/extension/index.mjs +1787 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2415 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
- package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/context.js +35 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
- package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
- package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
- package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
- package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
- package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/host.js +11 -0
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
- package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
- package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-moments/lib/index.js +50 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
- package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
- package/dist/pi/packages/ta-moments/lib/page.js +307 -0
- package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
- package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
- package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
- package/dist/pi/packages/ta-moments/lib/store.js +108 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/style.js +155 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
- package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
- package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
- package/dist/pi/packages/ta-moments/package.json +61 -0
- package/dist/pi/packages/ta-moments/web/index.js +2008 -0
- package/dist/pi/packages/ta-nearby/README.en.md +33 -0
- package/dist/pi/packages/ta-nearby/README.md +33 -0
- package/dist/pi/packages/ta-nearby/extension/index.mjs +410 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
- package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
- package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
- package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
- package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
- package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
- package/dist/pi/packages/ta-nearby/package.json +65 -0
- package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
- package/dist/pi/packages/ta-notify/README.en.md +3 -1
- package/dist/pi/packages/ta-notify/README.md +3 -1
- package/dist/pi/packages/ta-notify/extension/index.mjs +85 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
- package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
- package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
- package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-notify/lib/style.js +1 -1
- package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
- package/dist/pi/packages/ta-notify/package.json +7 -2
- package/dist/pi/packages/ta-notify/web/index.js +3 -2
- package/dist/pi/packages/ta-recall/README.en.md +15 -6
- package/dist/pi/packages/ta-recall/README.md +15 -6
- package/dist/pi/packages/ta-recall/extension/index.mjs +311 -134
- package/dist/pi/packages/ta-recall/host/index.mjs +472 -116
- package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
- package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
- package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.js +104 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/extension.js +31 -23
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +18 -10
- package/dist/pi/packages/ta-recall/lib/i18n.js +40 -24
- package/dist/pi/packages/ta-recall/lib/index.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/index.js +5 -4
- package/dist/pi/packages/ta-recall/lib/keep-card.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/keep-card.js +83 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +15 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.js +55 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +92 -18
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +19 -9
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +16 -6
- package/dist/pi/packages/ta-recall/lib/recall-service.js +101 -11
- package/dist/pi/packages/ta-recall/lib/requests-util.d.ts +6 -0
- package/dist/pi/packages/ta-recall/lib/requests-util.js +37 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +5 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/settings.js +1 -1
- package/dist/pi/packages/ta-recall/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/style.js +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.js +10 -5
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +14 -5
- package/dist/pi/packages/ta-recall/lib/tool.js +29 -17
- package/dist/pi/packages/ta-recall/package.json +13 -5
- package/dist/pi/packages/ta-recall/web/index.js +414 -153
- package/dist/pi/packages/ta-rooms/README.en.md +6 -3
- package/dist/pi/packages/ta-rooms/README.md +6 -3
- package/dist/pi/packages/ta-rooms/extension/index.mjs +194 -9
- package/dist/pi/packages/ta-rooms/host/index.mjs +1023 -234
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +5 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.d.ts +26 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +84 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.d.ts +22 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +140 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +43 -40
- package/dist/pi/packages/ta-rooms/lib/double-host.js +142 -311
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +40 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +96 -3
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +58 -3
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +82 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +527 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.d.ts +19 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.js +124 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +34 -2
- package/dist/pi/packages/ta-rooms/lib/double-util.js +60 -2
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +4 -1
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +8 -2
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +7 -2
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +9 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +35 -8
- package/dist/pi/packages/ta-rooms/lib/friend-notices.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +47 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +224 -0
- package/dist/pi/packages/ta-rooms/lib/host.d.ts +2 -1
- package/dist/pi/packages/ta-rooms/lib/host.js +9 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +23 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.js +60 -18
- package/dist/pi/packages/ta-rooms/lib/index.js +18 -1
- package/dist/pi/packages/ta-rooms/lib/members-view.js +12 -1
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +42 -4
- package/dist/pi/packages/ta-rooms/lib/page.js +108 -24
- package/dist/pi/packages/ta-rooms/lib/room-view.js +7 -3
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +6 -17
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +31 -6
- package/dist/pi/packages/ta-rooms/lib/tasks-view.d.ts +41 -0
- package/dist/pi/packages/ta-rooms/lib/tasks-view.js +228 -0
- package/dist/pi/packages/ta-rooms/package.json +11 -2
- package/dist/pi/packages/ta-rooms/web/index.js +1633 -751
- package/dist/pi/packages/ta-share/README.en.md +1 -1
- package/dist/pi/packages/ta-share/README.md +1 -1
- package/dist/pi/packages/ta-share/extension/index.mjs +72 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +4 -6
- package/dist/pi/packages/ta-share/package.json +10 -2
- package/dist/pi/packages/ta-share/web/index.js +12 -14
- package/dist/pi/packages/ta-sync/README.en.md +55 -0
- package/dist/pi/packages/ta-sync/README.md +55 -0
- package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
- package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/host.js +94 -0
- package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
- package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
- package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-sync/lib/index.js +115 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
- package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
- package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
- package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
- package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
- package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
- package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-sync/lib/react.js +16 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-sync/lib/style.js +108 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
- package/dist/pi/packages/ta-sync/package.json +57 -0
- package/dist/pi/packages/ta-sync/web/index.js +2018 -0
- package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
- package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
- package/dist/pi/packages/ta-team/README.en.md +28 -0
- package/dist/pi/packages/ta-team/README.md +28 -0
- package/dist/pi/packages/ta-team/extension/index.mjs +285 -0
- package/dist/pi/packages/ta-team/host/index.mjs +2121 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
- package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/extension.js +123 -0
- package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/host.js +45 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
- package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/index.js +67 -0
- package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/join.js +48 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
- package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
- package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
- package/dist/pi/packages/ta-team/lib/page.js +142 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
- package/dist/pi/packages/ta-team/lib/parts.js +47 -0
- package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
- package/dist/pi/packages/ta-team/lib/policy.js +215 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
- package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
- package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/react.js +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
- package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/remote.js +128 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
- package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/seal.js +75 -0
- package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
- package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
- package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/style.js +99 -0
- package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
- package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
- package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
- package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
- package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
- package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
- package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
- package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
- package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
- package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
- package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
- package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
- package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
- package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
- package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
- package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
- package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
- package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
- package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
- package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
- package/dist/pi/packages/ta-team/package.json +68 -0
- package/dist/pi/packages/ta-team/web/index.js +2741 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +178 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-BnqtcbpZ.js → abnfDiagram-S7VZAUFO-C30pzFN3.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BzPq1Ioe.js → architecture-WOLXFQ4H-wfYFQl2u.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-BsquO3a7.js → architectureDiagram-YGSQEFNW-B05zgxyT.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BQNYOEP4.js → blockDiagram-APKKGZFW-BhN8Bsu0.js} +1 -1
- package/dist/public/assets/{browser-DS711n7Y.js → browser-DteLjv_-.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-D6e79Ycq.js → c4Diagram-KJ2TOQU5-DvdF3qCV.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-B-sgaPoU.js → chunk-6MUBBAK2-DNavkrnr.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-D8pJKIg2.js → chunk-AXFCVDMN-DplVEqp_.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-86TL-vCz.js → chunk-BG4553SI-BazOaHvw.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CfUVuGjc.js → chunk-DQASFODM-DmoQWa8b.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-Drm0FEYk.js → chunk-HFQBQIA3-Cj1m9ccz.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BVFRADlC.js → chunk-KQLB2F66-_jbilrLX.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-DfyALEmP.js → chunk-KS47KZWR-CWU16Lut.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-DtJVzk2c.js → chunk-LEVMRMFU-wsbxWEZE.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DTy27PHQ.js → chunk-M57EVK23-BGvmwwTv.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-nSgn7jZg.js → chunk-OY52VR5R-Bp3hJ4kT.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-CkSxO_X6.js → chunk-QB3YPZ4I-C1rQVxsJ.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Ck6iAjAL.js → chunk-R3KSYZAL-CEy0dKWn.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DQPHdSTh.js → chunk-STOXU5M4-akqvafwH.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-Bc2AbV2Y.js → chunk-TU62E6Q5-CVXAS4DS.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Cgpm0IXm.js → chunk-X4PVCEUW-DT_bEMvQ.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-CGE4eLpg.js → chunk-XXDRQBXY-Bgv_n5Qh.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-4eQuDPEo.js → classDiagram-v2-L25IHNXF-BtjQChpS.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-tDLCWq07.js → cose-bilkent-JH36ORCC-DSrOY8Uk.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-ByqcZ8x9.js → cynefinDiagram-L36ESFBY-DTy7FNFS.js} +1 -1
- package/dist/public/assets/{d3-selection-Bgn1374-.js → d3-selection-ip6rDUzY.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-mCgr71mV.js → dagre-SPEB5RXH-CHrks7Jb.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DpYSwpQ0.js → diagram-3B7GL73J-eUJ7STAr.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-DMozUQzi.js → diagram-DNEMPZML-B_fptNkg.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-Bk5Uf8PD.js → diagram-L3MUGCDN-C15owCSG.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DFt5cPVK.js → diagram-LA4NIPWU-Bfa1qEgY.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BkZZcKqK.js → diagram-MHCOC4E2-Bwxsih_Q.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-HEY6kyyN.js → diagram-XPFHEONP-DKZ_lwah.js} +1 -1
- package/dist/public/assets/{dist-Bj2CrKn7.js → dist-VHGBaby6.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D4JvYyVb.js → ebnfDiagram-UZSYDL2S-CCkttvYi.js} +1 -1
- package/dist/public/assets/{editor.api-BpJFzYbl.js → editor.api-a2gC0dVD.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CT6qLJkF.js → elk-XV6XMXQE-DcikW39e.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BGng1goR.js → erDiagram-EYBAPDEH-BE3TV5lU.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-Tt8O-Q1Z.js → eventmodeling-K75KTNOO-C2s1kutf.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +1 -0
- package/dist/public/assets/{freemarker2-Dd5ksoRn.js → freemarker2-2e8pZojb.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Jl8VO_g2.js → ganttDiagram-23REXITY-rGnJptii.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Be4qXALb.js → gitGraphDiagram-STJD7YCW-CNnsDjQA.js} +1 -1
- package/dist/public/assets/{handlebars-4xabgUi4.js → handlebars-CMKN6E37.js} +1 -1
- package/dist/public/assets/{html-Dk3kt2w_.js → html-0AjXQhkQ.js} +1 -1
- package/dist/public/assets/{index-Bx0c7eoh.js → index-TUtoc8CW.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-Coc0tdwb.js → infoDiagram-KBXO4MBG-DMKs8cuE.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-CE_1VQCg.js → ishikawaDiagram-M35NCXHK-Dg_IbA0G.js} +1 -1
- package/dist/public/assets/{javascript-DKLGqy6v.js → javascript-CqYOqPjw.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-CrolRZ_7.js → journeyDiagram-OPLOXDXO-ohAOfoEY.js} +1 -1
- package/dist/public/assets/{jsonMode-Chcs19_y.js → jsonMode-D-gI-S5H.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-CjJj47De.js → kanban-definition-BZKZHSQY-w-aKZS_U.js} +1 -1
- package/dist/public/assets/{liquid-jff3p-Ji.js → liquid-oBN7c8NZ.js} +1 -1
- package/dist/public/assets/{mdx-DW4uRDfJ.js → mdx-CnwhgGjX.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-XhQj6FvH.js → mermaid-parser.core-CfFkSR0t.js} +3 -3
- package/dist/public/assets/{mermaid.core-OD4Atimg.js → mermaid.core-apiVCSBY.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DpGelVY7.js → mindmap-definition-I2QAS2VK-E7vqVWB0.js} +1 -1
- package/dist/public/assets/module-C2jtFD0v.js +2365 -0
- package/dist/public/assets/module-xT4L5yYw.js +1 -0
- package/dist/public/assets/{monaco-BTVZP-tU.js → monaco-C0ByxW3l.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CqcBmPfB.js → pegDiagram-FD4XPPHP--RpwCE7x.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CRir3beB.js → pieDiagram-J4AKIIQI-DxSbPaRZ.js} +1 -1
- package/dist/public/assets/{python-BwW_0207.js → python-vNPe_Fao.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-DIY6gdcf.js → quadrantDiagram-XTYBLID2-CR_eeYXi.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-XWNOzunl.js → railroad-abnf-LNEFI6M7-D6I2HxIC.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js → railroad-ebnf-DWYD2UWJ-BuhDRGo3.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-BVB_IaIG.js → railroad-peg-JR7BVNR7-n15PB7Sb.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-CudwT6q2.js → railroadDiagram-MRQ6NCDL-Bbe5bNap.js} +1 -1
- package/dist/public/assets/{razor-DrjCyQqB.js → razor-CnKbF0Yz.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CvRMeRqj.js → requirementDiagram-Y7LWUY3S-Beuygh9j.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-adxYCJKr.js → sankeyDiagram-WGJFYUXA-jwWPgnrS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-lCRsoLUp.js → sequenceDiagram-5NDRBG5M-CmU-HYQI.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-DNst1BLg.js → stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-S_omrdvA.js → swimlanes-UMQ2AFYF-PSKyZN_b.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-_pMGrTE-.js → timeline-definition-SEUHKTQE-BuRxLScZ.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +1 -0
- package/dist/public/assets/{typescript-0-z_OYCU.js → typescript-C00ztMLg.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-B2oJKi5Q.js → usecaseDiagram-AFA6YXN4-Dlvyos8r.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-inPs2Kkr.js → vennDiagram-NNMJR3RB-CuLZubJH.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DNhNHM7b.js → wardleyDiagram-S7YFUSEH-WOGGTs4y.js} +1 -1
- package/dist/public/assets/{xml-BXPxQzKF.js → xml-CHBFuf5n.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DJc93dNT.js → xychartDiagram-GGNKY7IX-DwW9eifP.js} +1 -1
- package/dist/public/assets/{yaml-CGmD9Rya.js → yaml-C4qkqzcL.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7738 -3839
- package/package.json +37 -31
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +0 -11
- package/dist/pi/packages/ta-cron/lib/composer.js +0 -58
- package/dist/pi/packages/ta-extensions/lib/composer.d.ts +0 -17
- package/dist/pi/packages/ta-extensions/lib/composer.js +0 -84
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +0 -9
- package/dist/pi/packages/ta-recall/lib/skill-card.js +0 -51
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +0 -19
- package/dist/pi/packages/ta-recall/lib/skill-util.js +0 -110
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dd40W2Jh.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-uFzenfA3.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D28I_jUc.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-5vIGEIq7.js +0 -1
- package/dist/public/assets/module-CrD0OHQp.js +0 -1
- package/dist/public/assets/module-DEBMgdtf.js +0 -2273
- package/dist/public/assets/packet-JDAUHWVQ-CBxQ5Mzy.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-DT5V3581.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-BAOovYEa.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-RZ2Rnwzh.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-By5lnz4u.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-Cyb9N8KY.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-BkMo57pG.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-CSt-uQ-Y.js +0 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { TaRelayStore } from '@celljs/ta-protocol';
|
|
2
|
+
/** What relays.json holds of a bucket of S3 or one like it (Cloudflare R2, MinIO, Tencent COS, Alibaba OSS). */
|
|
3
|
+
export interface S3Options {
|
|
4
|
+
/** None for AWS itself. */
|
|
5
|
+
endpoint?: string;
|
|
6
|
+
region?: string;
|
|
7
|
+
bucket: string;
|
|
8
|
+
/** A folder in the bucket, for Ta alone. */
|
|
9
|
+
prefix?: string;
|
|
10
|
+
accessKeyId: string;
|
|
11
|
+
secretAccessKey: string;
|
|
12
|
+
}
|
|
13
|
+
/** A request to sign: its method, its URL, its headers (`host` from the URL), and the SHA-256 of its body in hex. */
|
|
14
|
+
export interface S3Request {
|
|
15
|
+
method: string;
|
|
16
|
+
url: string;
|
|
17
|
+
headers?: Record<string, string>;
|
|
18
|
+
payloadHash?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Signature Version 4 of AWS, as S3 and every store like it reads it. */
|
|
21
|
+
export declare namespace S3Signer {
|
|
22
|
+
/** `20130524T000000Z` of a time. */
|
|
23
|
+
function amzDate(date: Date): string;
|
|
24
|
+
/** The headers of the request with `authorization`, `x-amz-date` and `x-amz-content-sha256`. */
|
|
25
|
+
function sign(request: S3Request, credentials: {
|
|
26
|
+
accessKeyId: string;
|
|
27
|
+
secretAccessKey: string;
|
|
28
|
+
}, region: string, date?: Date): Record<string, string>;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace S3Util {
|
|
31
|
+
/** The URL of the bucket, ending with `/`: the bucket in the host where the service wants it, else in the path. */
|
|
32
|
+
function bucketUrl(options: Pick<S3Options, 'endpoint' | 'region' | 'bucket'>): string;
|
|
33
|
+
/** The region to sign for: as given, `auto` for R2, else `us-east-1`. */
|
|
34
|
+
function region(options: Pick<S3Options, 'endpoint' | 'region'>): string;
|
|
35
|
+
/** The folder of Ta in the bucket: no `/` at either end. */
|
|
36
|
+
function prefix(options: Pick<S3Options, 'prefix'>): string;
|
|
37
|
+
/** The entries of a ListObjectsV2 answer under `prefix` (ending with `/`, or empty), and the token of what follows. */
|
|
38
|
+
function listing(xml: string, prefix: string): {
|
|
39
|
+
entries: {
|
|
40
|
+
name: string;
|
|
41
|
+
tag: string;
|
|
42
|
+
dir?: boolean;
|
|
43
|
+
}[];
|
|
44
|
+
next?: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A bucket of S3 as a store for sync (TaRelayStore), or of one like it: AWS, Cloudflare R2, MinIO, Tencent COS,
|
|
49
|
+
* Alibaba OSS, Backblaze B2. Each request signed with Signature Version 4; a folder is a prefix of keys.
|
|
50
|
+
*/
|
|
51
|
+
export declare class S3Store implements TaRelayStore {
|
|
52
|
+
protected readonly now: () => Date;
|
|
53
|
+
protected readonly bucket: string;
|
|
54
|
+
protected readonly root: string;
|
|
55
|
+
protected readonly region: string;
|
|
56
|
+
protected readonly credentials: {
|
|
57
|
+
accessKeyId: string;
|
|
58
|
+
secretAccessKey: string;
|
|
59
|
+
};
|
|
60
|
+
constructor(options: S3Options, now?: () => Date);
|
|
61
|
+
list(dir: string): Promise<{
|
|
62
|
+
name: string;
|
|
63
|
+
tag: string;
|
|
64
|
+
dir?: boolean;
|
|
65
|
+
}[]>;
|
|
66
|
+
read(path: string): Promise<Uint8Array | undefined>;
|
|
67
|
+
write(path: string, data: Uint8Array): Promise<void>;
|
|
68
|
+
remove(path: string): Promise<void>;
|
|
69
|
+
protected url(path: string): string;
|
|
70
|
+
protected send(method: string, url: string, body?: Uint8Array): Promise<Response>;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=s3-store.d.ts.map
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.S3Store = exports.S3Util = exports.S3Signer = void 0;
|
|
4
|
+
const node_crypto_1 = require("node:crypto");
|
|
5
|
+
const store_util_1 = require("./store-util");
|
|
6
|
+
const EMPTY = (0, node_crypto_1.createHash)('sha256').update('').digest('hex');
|
|
7
|
+
/** Hosts that only take the bucket in the host name (virtual-hosted), not in the path. */
|
|
8
|
+
const VIRTUAL = /(^|\.)(amazonaws\.com|aliyuncs\.com|myqcloud\.com)$/i;
|
|
9
|
+
const sha256 = (data) => (0, node_crypto_1.createHash)('sha256').update(data).digest('hex');
|
|
10
|
+
const hmac = (key, text) => (0, node_crypto_1.createHmac)('sha256', key).update(text).digest();
|
|
11
|
+
/** Signature Version 4 of AWS, as S3 and every store like it reads it. */
|
|
12
|
+
var S3Signer;
|
|
13
|
+
(function (S3Signer) {
|
|
14
|
+
/** `20130524T000000Z` of a time. */
|
|
15
|
+
function amzDate(date) {
|
|
16
|
+
return date
|
|
17
|
+
.toISOString()
|
|
18
|
+
.replace(/[-:]/g, '')
|
|
19
|
+
.replace(/\.\d{3}/, '');
|
|
20
|
+
}
|
|
21
|
+
S3Signer.amzDate = amzDate;
|
|
22
|
+
/** The headers of the request with `authorization`, `x-amz-date` and `x-amz-content-sha256`. */
|
|
23
|
+
function sign(request, credentials, region, date = new Date()) {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const url = new URL(request.url);
|
|
26
|
+
const stamp = amzDate(date);
|
|
27
|
+
const day = stamp.slice(0, 8);
|
|
28
|
+
const payload = (_a = request.payloadHash) !== null && _a !== void 0 ? _a : EMPTY;
|
|
29
|
+
const headers = {};
|
|
30
|
+
for (const [name, value] of Object.entries((_b = request.headers) !== null && _b !== void 0 ? _b : {})) {
|
|
31
|
+
headers[name.toLowerCase()] = String(value).trim().replace(/\s+/g, ' ');
|
|
32
|
+
}
|
|
33
|
+
headers.host = url.host;
|
|
34
|
+
headers['x-amz-content-sha256'] = payload;
|
|
35
|
+
headers['x-amz-date'] = stamp;
|
|
36
|
+
const names = Object.keys(headers).sort();
|
|
37
|
+
const query = [...url.searchParams]
|
|
38
|
+
.map(([key, value]) => [store_util_1.StoreUtil.encode(key), store_util_1.StoreUtil.encode(value)])
|
|
39
|
+
.sort(([a, x], [b, y]) => (a < b ? -1 : a > b ? 1 : x < y ? -1 : x > y ? 1 : 0))
|
|
40
|
+
.map(([key, value]) => `${key}=${value}`)
|
|
41
|
+
.join('&');
|
|
42
|
+
const canonical = [
|
|
43
|
+
request.method,
|
|
44
|
+
(url.pathname || '/')
|
|
45
|
+
.split('/')
|
|
46
|
+
.map(part => store_util_1.StoreUtil.encode(decodeURIComponent(part)))
|
|
47
|
+
.join('/'),
|
|
48
|
+
query,
|
|
49
|
+
names.map(name => `${name}:${headers[name]}\n`).join(''),
|
|
50
|
+
names.join(';'),
|
|
51
|
+
payload,
|
|
52
|
+
].join('\n');
|
|
53
|
+
const scope = `${day}/${region}/s3/aws4_request`;
|
|
54
|
+
const toSign = ['AWS4-HMAC-SHA256', stamp, scope, sha256(canonical)].join('\n');
|
|
55
|
+
const key = hmac(hmac(hmac(hmac(`AWS4${credentials.secretAccessKey}`, day), region), 's3'), 'aws4_request');
|
|
56
|
+
const signature = (0, node_crypto_1.createHmac)('sha256', key).update(toSign).digest('hex');
|
|
57
|
+
return {
|
|
58
|
+
...headers,
|
|
59
|
+
authorization: `AWS4-HMAC-SHA256 Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${names.join(';')}, Signature=${signature}`,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
S3Signer.sign = sign;
|
|
63
|
+
})(S3Signer || (exports.S3Signer = S3Signer = {}));
|
|
64
|
+
var S3Util;
|
|
65
|
+
(function (S3Util) {
|
|
66
|
+
/** The URL of the bucket, ending with `/`: the bucket in the host where the service wants it, else in the path. */
|
|
67
|
+
function bucketUrl(options) {
|
|
68
|
+
const bucket = store_util_1.StoreUtil.text(options.bucket);
|
|
69
|
+
if (!/^[a-z0-9][a-z0-9.-]{1,62}$/i.test(bucket)) {
|
|
70
|
+
throw new Error(`${bucket || 'Nothing'} is not the name of a bucket.`);
|
|
71
|
+
}
|
|
72
|
+
const endpoint = store_util_1.StoreUtil.text(options.endpoint);
|
|
73
|
+
if (!endpoint) {
|
|
74
|
+
return `https://${bucket}.s3.${region(options)}.amazonaws.com/`;
|
|
75
|
+
}
|
|
76
|
+
let url;
|
|
77
|
+
try {
|
|
78
|
+
url = new URL(/^https?:\/\//i.test(endpoint) ? endpoint : `https://${endpoint}`);
|
|
79
|
+
}
|
|
80
|
+
catch (_a) {
|
|
81
|
+
throw new Error(`${endpoint} is not the address of a storage of S3.`);
|
|
82
|
+
}
|
|
83
|
+
const path = url.pathname.replace(/\/+$/, '');
|
|
84
|
+
// Already the bucket's own host: as it is.
|
|
85
|
+
if (url.hostname.toLowerCase().startsWith(`${bucket.toLowerCase()}.`)) {
|
|
86
|
+
return `${url.origin}${path}/`;
|
|
87
|
+
}
|
|
88
|
+
if (VIRTUAL.test(url.hostname)) {
|
|
89
|
+
return `${url.protocol}//${bucket}.${url.host}${path}/`;
|
|
90
|
+
}
|
|
91
|
+
return `${url.origin}${path}/${bucket}/`;
|
|
92
|
+
}
|
|
93
|
+
S3Util.bucketUrl = bucketUrl;
|
|
94
|
+
/** The region to sign for: as given, `auto` for R2, else `us-east-1`. */
|
|
95
|
+
function region(options) {
|
|
96
|
+
const given = store_util_1.StoreUtil.text(options.region);
|
|
97
|
+
if (given) {
|
|
98
|
+
return given;
|
|
99
|
+
}
|
|
100
|
+
return /r2\.cloudflarestorage\.com/i.test(store_util_1.StoreUtil.text(options.endpoint)) ? 'auto' : 'us-east-1';
|
|
101
|
+
}
|
|
102
|
+
S3Util.region = region;
|
|
103
|
+
/** The folder of Ta in the bucket: no `/` at either end. */
|
|
104
|
+
function prefix(options) {
|
|
105
|
+
return store_util_1.StoreUtil.text(options.prefix).replace(/^\/+|\/+$/g, '');
|
|
106
|
+
}
|
|
107
|
+
S3Util.prefix = prefix;
|
|
108
|
+
/** The entries of a ListObjectsV2 answer under `prefix` (ending with `/`, or empty), and the token of what follows. */
|
|
109
|
+
function listing(xml, prefix) {
|
|
110
|
+
var _a, _b;
|
|
111
|
+
const entries = [];
|
|
112
|
+
for (const contents of store_util_1.StoreUtil.elements(xml, 'Contents')) {
|
|
113
|
+
const key = (_a = store_util_1.StoreUtil.element(contents, 'Key')) !== null && _a !== void 0 ? _a : '';
|
|
114
|
+
const name = key.slice(prefix.length);
|
|
115
|
+
if (!key.startsWith(prefix) || !name || name.includes('/')) {
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
const tag = [store_util_1.StoreUtil.element(contents, 'ETag'), store_util_1.StoreUtil.element(contents, 'LastModified'), store_util_1.StoreUtil.element(contents, 'Size')]
|
|
119
|
+
.filter(Boolean)
|
|
120
|
+
.join(':');
|
|
121
|
+
entries.push({ name, tag });
|
|
122
|
+
}
|
|
123
|
+
for (const common of store_util_1.StoreUtil.elements(xml, 'CommonPrefixes')) {
|
|
124
|
+
const key = (_b = store_util_1.StoreUtil.element(common, 'Prefix')) !== null && _b !== void 0 ? _b : '';
|
|
125
|
+
const name = key.slice(prefix.length).replace(/\/$/, '');
|
|
126
|
+
if (key.startsWith(prefix) && name && !name.includes('/')) {
|
|
127
|
+
entries.push({ name, tag: '', dir: true });
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const truncated = store_util_1.StoreUtil.element(xml, 'IsTruncated') === 'true';
|
|
131
|
+
const next = truncated ? store_util_1.StoreUtil.element(xml, 'NextContinuationToken') : undefined;
|
|
132
|
+
return { entries, ...(next ? { next } : {}) };
|
|
133
|
+
}
|
|
134
|
+
S3Util.listing = listing;
|
|
135
|
+
})(S3Util || (exports.S3Util = S3Util = {}));
|
|
136
|
+
/**
|
|
137
|
+
* A bucket of S3 as a store for sync (TaRelayStore), or of one like it: AWS, Cloudflare R2, MinIO, Tencent COS,
|
|
138
|
+
* Alibaba OSS, Backblaze B2. Each request signed with Signature Version 4; a folder is a prefix of keys.
|
|
139
|
+
*/
|
|
140
|
+
class S3Store {
|
|
141
|
+
constructor(options, now = () => new Date()) {
|
|
142
|
+
this.now = now;
|
|
143
|
+
this.bucket = S3Util.bucketUrl(options);
|
|
144
|
+
this.region = S3Util.region(options);
|
|
145
|
+
const prefix = S3Util.prefix(options);
|
|
146
|
+
this.root = prefix ? `${prefix}/` : '';
|
|
147
|
+
this.credentials = { accessKeyId: store_util_1.StoreUtil.text(options.accessKeyId), secretAccessKey: store_util_1.StoreUtil.text(options.secretAccessKey) };
|
|
148
|
+
if (!this.credentials.accessKeyId || !this.credentials.secretAccessKey) {
|
|
149
|
+
throw new Error('A storage of S3 needs its access key and secret.');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
async list(dir) {
|
|
153
|
+
const prefix = this.root + (dir ? `${dir}/` : '');
|
|
154
|
+
const entries = [];
|
|
155
|
+
let token;
|
|
156
|
+
do {
|
|
157
|
+
const url = new URL(this.bucket);
|
|
158
|
+
url.searchParams.set('list-type', '2');
|
|
159
|
+
url.searchParams.set('delimiter', '/');
|
|
160
|
+
url.searchParams.set('prefix', prefix);
|
|
161
|
+
if (token) {
|
|
162
|
+
url.searchParams.set('continuation-token', token);
|
|
163
|
+
}
|
|
164
|
+
const response = await this.send('GET', url.toString());
|
|
165
|
+
if (!response.ok) {
|
|
166
|
+
throw await store_util_1.StoreUtil.failure(response, `S3 cannot list ${dir || 'the bucket'}`);
|
|
167
|
+
}
|
|
168
|
+
const page = S3Util.listing(await response.text(), prefix);
|
|
169
|
+
entries.push(...page.entries);
|
|
170
|
+
token = page.next;
|
|
171
|
+
} while (token);
|
|
172
|
+
return entries.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
|
|
173
|
+
}
|
|
174
|
+
async read(path) {
|
|
175
|
+
const response = await this.send('GET', this.url(path));
|
|
176
|
+
if (response.status === 404) {
|
|
177
|
+
return undefined;
|
|
178
|
+
}
|
|
179
|
+
if (!response.ok) {
|
|
180
|
+
throw await store_util_1.StoreUtil.failure(response, `S3 cannot read ${path}`);
|
|
181
|
+
}
|
|
182
|
+
return new Uint8Array(await response.arrayBuffer());
|
|
183
|
+
}
|
|
184
|
+
async write(path, data) {
|
|
185
|
+
const response = await this.send('PUT', this.url(path), data);
|
|
186
|
+
if (!response.ok) {
|
|
187
|
+
throw await store_util_1.StoreUtil.failure(response, `S3 cannot write ${path}`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
async remove(path) {
|
|
191
|
+
const response = await this.send('DELETE', this.url(path));
|
|
192
|
+
if (!response.ok && response.status !== 404) {
|
|
193
|
+
throw await store_util_1.StoreUtil.failure(response, `S3 cannot remove ${path}`);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
url(path) {
|
|
197
|
+
return this.bucket + store_util_1.StoreUtil.encodePath(this.root + path);
|
|
198
|
+
}
|
|
199
|
+
send(method, url, body) {
|
|
200
|
+
const headers = S3Signer.sign({ method, url, payloadHash: body ? sha256(body) : EMPTY }, this.credentials, this.region, this.now());
|
|
201
|
+
delete headers.host;
|
|
202
|
+
return fetch(url, { method, headers, ...(body ? { body: body } : {}) });
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
exports.S3Store = S3Store;
|
|
206
|
+
//# sourceMappingURL=s3-store.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** What a store of this package needs of HTTP and XML, with no library: a WebDAV multistatus and an S3 listing are small. */
|
|
2
|
+
export declare namespace StoreUtil {
|
|
3
|
+
/** The texts of the elements of a name in XML, whatever their namespace prefix (`D:href`, `d:href`, `href`). */
|
|
4
|
+
function elements(xml: string, name: string): string[];
|
|
5
|
+
function element(xml: string, name: string): string | undefined;
|
|
6
|
+
/** Whether an element of a name is there, empty (`<D:collection/>`) or not. */
|
|
7
|
+
function has(xml: string, name: string): boolean;
|
|
8
|
+
function decode(text: string): string;
|
|
9
|
+
/** RFC 3986: all but the unreserved characters, as S3 and WebDAV servers read a path. */
|
|
10
|
+
function encode(text: string): string;
|
|
11
|
+
/** A path with `/`, each part encoded. */
|
|
12
|
+
function encodePath(path: string): string;
|
|
13
|
+
/** A failure of a store, in words for the user: what the server said, without its whole page. */
|
|
14
|
+
function failure(response: Response, what: string): Promise<Error>;
|
|
15
|
+
function text(value: unknown): string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=store-util.d.ts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreUtil = void 0;
|
|
4
|
+
/** What a store of this package needs of HTTP and XML, with no library: a WebDAV multistatus and an S3 listing are small. */
|
|
5
|
+
var StoreUtil;
|
|
6
|
+
(function (StoreUtil) {
|
|
7
|
+
/** The texts of the elements of a name in XML, whatever their namespace prefix (`D:href`, `d:href`, `href`). */
|
|
8
|
+
function elements(xml, name) {
|
|
9
|
+
const found = [];
|
|
10
|
+
const pattern = new RegExp(`<(?:[\\w.-]+:)?${name}(?:\\s[^>]*)?>([\\s\\S]*?)</(?:[\\w.-]+:)?${name}>`, 'g');
|
|
11
|
+
for (let match = pattern.exec(xml); match; match = pattern.exec(xml)) {
|
|
12
|
+
found.push(match[1]);
|
|
13
|
+
}
|
|
14
|
+
return found;
|
|
15
|
+
}
|
|
16
|
+
StoreUtil.elements = elements;
|
|
17
|
+
function element(xml, name) {
|
|
18
|
+
const [first] = elements(xml, name);
|
|
19
|
+
return first === undefined ? undefined : decode(first.trim());
|
|
20
|
+
}
|
|
21
|
+
StoreUtil.element = element;
|
|
22
|
+
/** Whether an element of a name is there, empty (`<D:collection/>`) or not. */
|
|
23
|
+
function has(xml, name) {
|
|
24
|
+
return new RegExp(`<(?:[\\w.-]+:)?${name}(?:\\s[^>]*)?/?>`).test(xml);
|
|
25
|
+
}
|
|
26
|
+
StoreUtil.has = has;
|
|
27
|
+
function decode(text) {
|
|
28
|
+
return text
|
|
29
|
+
.replace(/</g, '<')
|
|
30
|
+
.replace(/>/g, '>')
|
|
31
|
+
.replace(/"/g, '"')
|
|
32
|
+
.replace(/'/g, "'")
|
|
33
|
+
.replace(/&#(\d+);/g, (_match, code) => String.fromCodePoint(Number(code)))
|
|
34
|
+
.replace(/&#x([0-9a-f]+);/gi, (_match, code) => String.fromCodePoint(Number.parseInt(code, 16)))
|
|
35
|
+
.replace(/&/g, '&');
|
|
36
|
+
}
|
|
37
|
+
StoreUtil.decode = decode;
|
|
38
|
+
/** RFC 3986: all but the unreserved characters, as S3 and WebDAV servers read a path. */
|
|
39
|
+
function encode(text) {
|
|
40
|
+
return encodeURIComponent(text).replace(/[!'()*]/g, char => `%${char.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
41
|
+
}
|
|
42
|
+
StoreUtil.encode = encode;
|
|
43
|
+
/** A path with `/`, each part encoded. */
|
|
44
|
+
function encodePath(path) {
|
|
45
|
+
return path
|
|
46
|
+
.split('/')
|
|
47
|
+
.map(part => encode(part))
|
|
48
|
+
.join('/');
|
|
49
|
+
}
|
|
50
|
+
StoreUtil.encodePath = encodePath;
|
|
51
|
+
/** A failure of a store, in words for the user: what the server said, without its whole page. */
|
|
52
|
+
async function failure(response, what) {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
const text = await response.text().catch(() => '');
|
|
55
|
+
const said = (_b = (_a = element(text, 'Message')) !== null && _a !== void 0 ? _a : element(text, 'message')) !== null && _b !== void 0 ? _b : '';
|
|
56
|
+
const status = response.status === 401 || response.status === 403
|
|
57
|
+
? 'the user, the password or the keys are not right'
|
|
58
|
+
: response.status === 404
|
|
59
|
+
? 'it is not there'
|
|
60
|
+
: `HTTP ${response.status}`;
|
|
61
|
+
return new Error(`${what}: ${status}${said ? ` (${said.slice(0, 160)})` : ''}.`);
|
|
62
|
+
}
|
|
63
|
+
StoreUtil.failure = failure;
|
|
64
|
+
function text(value) {
|
|
65
|
+
return typeof value === 'string' ? value.trim() : value === undefined || value === null ? '' : String(value).trim();
|
|
66
|
+
}
|
|
67
|
+
StoreUtil.text = text;
|
|
68
|
+
})(StoreUtil || (exports.StoreUtil = StoreUtil = {}));
|
|
69
|
+
//# sourceMappingURL=store-util.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { TaRelayStore } from '@celljs/ta-protocol';
|
|
2
|
+
/** What relays.json holds of a WebDAV server: the address of a folder of the user, and their sign-in. */
|
|
3
|
+
export interface WebDavOptions {
|
|
4
|
+
url: string;
|
|
5
|
+
user?: string;
|
|
6
|
+
password?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace WebDavUtil {
|
|
9
|
+
/** The address of the folder, ending with `/`; throws on what is no http(s) address. */
|
|
10
|
+
function base(url: unknown): string;
|
|
11
|
+
/** The entries of a multistatus that are in `dir` (an absolute path, ending with `/`), not `dir` itself. */
|
|
12
|
+
function entries(xml: string, dir: string): {
|
|
13
|
+
name: string;
|
|
14
|
+
tag: string;
|
|
15
|
+
dir?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A folder of a WebDAV server as a store for sync (TaRelayStore): Jianguoyun, Nextcloud, ownCloud, a NAS of Synology or
|
|
20
|
+
* QNAP, `rclone serve webdav`. PROPFIND lists, GET reads, PUT writes (MKCOL makes its folders first), DELETE removes.
|
|
21
|
+
*/
|
|
22
|
+
export declare class WebDavStore implements TaRelayStore {
|
|
23
|
+
protected readonly base: string;
|
|
24
|
+
protected readonly headers: Record<string, string>;
|
|
25
|
+
/** The folders made or found while this runs: a PUT needs its folder there first. */
|
|
26
|
+
protected readonly made: Set<string>;
|
|
27
|
+
constructor(options: WebDavOptions);
|
|
28
|
+
list(dir: string): Promise<{
|
|
29
|
+
name: string;
|
|
30
|
+
tag: string;
|
|
31
|
+
dir?: boolean;
|
|
32
|
+
}[]>;
|
|
33
|
+
read(path: string): Promise<Uint8Array | undefined>;
|
|
34
|
+
write(path: string, data: Uint8Array): Promise<void>;
|
|
35
|
+
remove(path: string): Promise<void>;
|
|
36
|
+
/** Each folder of a path, from the top, that is not there yet (405: it is). */
|
|
37
|
+
protected makeFolders(folder: string): Promise<void>;
|
|
38
|
+
protected url(path: string): string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=webdav-store.d.ts.map
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebDavStore = exports.WebDavUtil = void 0;
|
|
4
|
+
const store_util_1 = require("./store-util");
|
|
5
|
+
const PROPFIND = `<?xml version="1.0" encoding="utf-8"?><d:propfind xmlns:d="DAV:"><d:prop><d:resourcetype/><d:getetag/><d:getlastmodified/><d:getcontentlength/></d:prop></d:propfind>`;
|
|
6
|
+
var WebDavUtil;
|
|
7
|
+
(function (WebDavUtil) {
|
|
8
|
+
/** The address of the folder, ending with `/`; throws on what is no http(s) address. */
|
|
9
|
+
function base(url) {
|
|
10
|
+
const text = store_util_1.StoreUtil.text(url);
|
|
11
|
+
let parsed;
|
|
12
|
+
try {
|
|
13
|
+
parsed = new URL(text);
|
|
14
|
+
}
|
|
15
|
+
catch (_a) {
|
|
16
|
+
throw new Error(`${text || 'Nothing'} is not the address of a WebDAV folder.`);
|
|
17
|
+
}
|
|
18
|
+
if (parsed.protocol !== 'https:' && parsed.protocol !== 'http:') {
|
|
19
|
+
throw new Error(`${text} is not the address of a WebDAV folder.`);
|
|
20
|
+
}
|
|
21
|
+
parsed.hash = '';
|
|
22
|
+
parsed.search = '';
|
|
23
|
+
return parsed.toString().replace(/\/*$/, '/');
|
|
24
|
+
}
|
|
25
|
+
WebDavUtil.base = base;
|
|
26
|
+
/** The entries of a multistatus that are in `dir` (an absolute path, ending with `/`), not `dir` itself. */
|
|
27
|
+
function entries(xml, dir) {
|
|
28
|
+
const found = [];
|
|
29
|
+
const within = decodeURIComponent(dir).replace(/\/+$/, '');
|
|
30
|
+
for (const response of store_util_1.StoreUtil.elements(xml, 'response')) {
|
|
31
|
+
const href = store_util_1.StoreUtil.element(response, 'href');
|
|
32
|
+
if (!href) {
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
let path;
|
|
36
|
+
try {
|
|
37
|
+
path = decodeURIComponent(new URL(href, 'http://dav.invalid').pathname).replace(/\/+$/, '');
|
|
38
|
+
}
|
|
39
|
+
catch (_a) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (path === within || !path.startsWith(`${within}/`)) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
const name = path.slice(within.length + 1);
|
|
46
|
+
if (!name || name.includes('/') || name.startsWith('.')) {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const collection = store_util_1.StoreUtil.has(response, 'collection');
|
|
50
|
+
const tag = [
|
|
51
|
+
store_util_1.StoreUtil.element(response, 'getetag'),
|
|
52
|
+
store_util_1.StoreUtil.element(response, 'getlastmodified'),
|
|
53
|
+
store_util_1.StoreUtil.element(response, 'getcontentlength'),
|
|
54
|
+
]
|
|
55
|
+
.filter(Boolean)
|
|
56
|
+
.join(':');
|
|
57
|
+
found.push(collection ? { name, tag: '', dir: true } : { name, tag });
|
|
58
|
+
}
|
|
59
|
+
return found.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
|
|
60
|
+
}
|
|
61
|
+
WebDavUtil.entries = entries;
|
|
62
|
+
})(WebDavUtil || (exports.WebDavUtil = WebDavUtil = {}));
|
|
63
|
+
/**
|
|
64
|
+
* A folder of a WebDAV server as a store for sync (TaRelayStore): Jianguoyun, Nextcloud, ownCloud, a NAS of Synology or
|
|
65
|
+
* QNAP, `rclone serve webdav`. PROPFIND lists, GET reads, PUT writes (MKCOL makes its folders first), DELETE removes.
|
|
66
|
+
*/
|
|
67
|
+
class WebDavStore {
|
|
68
|
+
constructor(options) {
|
|
69
|
+
/** The folders made or found while this runs: a PUT needs its folder there first. */
|
|
70
|
+
this.made = new Set();
|
|
71
|
+
this.base = WebDavUtil.base(options.url);
|
|
72
|
+
const user = store_util_1.StoreUtil.text(options.user);
|
|
73
|
+
const password = store_util_1.StoreUtil.text(options.password);
|
|
74
|
+
this.headers = user || password ? { authorization: `Basic ${Buffer.from(`${user}:${password}`).toString('base64')}` } : {};
|
|
75
|
+
}
|
|
76
|
+
async list(dir) {
|
|
77
|
+
const url = this.url(dir ? `${dir}/` : '');
|
|
78
|
+
const response = await fetch(url, {
|
|
79
|
+
method: 'PROPFIND',
|
|
80
|
+
headers: { ...this.headers, depth: '1', 'content-type': 'application/xml; charset=utf-8' },
|
|
81
|
+
body: PROPFIND,
|
|
82
|
+
});
|
|
83
|
+
if (response.status === 404) {
|
|
84
|
+
return [];
|
|
85
|
+
}
|
|
86
|
+
if (response.status !== 207 && !response.ok) {
|
|
87
|
+
throw await store_util_1.StoreUtil.failure(response, `WebDAV cannot list ${dir || 'its folder'}`);
|
|
88
|
+
}
|
|
89
|
+
return WebDavUtil.entries(await response.text(), new URL(url).pathname);
|
|
90
|
+
}
|
|
91
|
+
async read(path) {
|
|
92
|
+
const response = await fetch(this.url(path), { headers: this.headers });
|
|
93
|
+
if (response.status === 404) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
if (!response.ok) {
|
|
97
|
+
throw await store_util_1.StoreUtil.failure(response, `WebDAV cannot read ${path}`);
|
|
98
|
+
}
|
|
99
|
+
return new Uint8Array(await response.arrayBuffer());
|
|
100
|
+
}
|
|
101
|
+
async write(path, data) {
|
|
102
|
+
const put = () => fetch(this.url(path), { method: 'PUT', headers: { ...this.headers, 'content-type': 'application/octet-stream' }, body: data });
|
|
103
|
+
const folder = path.split('/').slice(0, -1).join('/');
|
|
104
|
+
if (folder && !this.made.has(folder)) {
|
|
105
|
+
await this.makeFolders(folder);
|
|
106
|
+
}
|
|
107
|
+
let response = await put();
|
|
108
|
+
if (response.status === 409 || response.status === 404) {
|
|
109
|
+
// Its folder went (removed on another computer, or by hand): made again.
|
|
110
|
+
this.made.clear();
|
|
111
|
+
await this.makeFolders(folder);
|
|
112
|
+
response = await put();
|
|
113
|
+
}
|
|
114
|
+
if (!response.ok) {
|
|
115
|
+
throw await store_util_1.StoreUtil.failure(response, `WebDAV cannot write ${path}`);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
async remove(path) {
|
|
119
|
+
const response = await fetch(this.url(path), { method: 'DELETE', headers: this.headers });
|
|
120
|
+
if (!response.ok && response.status !== 404) {
|
|
121
|
+
throw await store_util_1.StoreUtil.failure(response, `WebDAV cannot remove ${path}`);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/** Each folder of a path, from the top, that is not there yet (405: it is). */
|
|
125
|
+
async makeFolders(folder) {
|
|
126
|
+
const parts = folder.split('/').filter(Boolean);
|
|
127
|
+
for (let end = 1; end <= parts.length; end++) {
|
|
128
|
+
const path = parts.slice(0, end).join('/');
|
|
129
|
+
if (this.made.has(path)) {
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
const response = await fetch(this.url(`${path}/`), { method: 'MKCOL', headers: this.headers });
|
|
133
|
+
if (!response.ok && response.status !== 405 && response.status !== 301 && response.status !== 302) {
|
|
134
|
+
throw await store_util_1.StoreUtil.failure(response, `WebDAV cannot make the folder ${path}`);
|
|
135
|
+
}
|
|
136
|
+
this.made.add(path);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
url(path) {
|
|
140
|
+
return this.base + store_util_1.StoreUtil.encodePath(path);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.WebDavStore = WebDavStore;
|
|
144
|
+
//# sourceMappingURL=webdav-store.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@celljs/ta-sync-cloud",
|
|
3
|
+
"version": "4.13.1",
|
|
4
|
+
"description": "A pi package for Ta: sync of the user's computers in storage of their own, a WebDAV server (Jianguoyun, Nextcloud, a NAS) a bucket of S3 (AWS, Cloudflare R2, MinIO) or a git repository, sealed, with no relay",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi-package"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/cellbang/cell",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/cellbang/cell/issues"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/cellbang/cell.git"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"files": [
|
|
18
|
+
"esm",
|
|
19
|
+
"host",
|
|
20
|
+
"!**/*.map"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc -b && bun build src/host.ts --format esm --target node --outfile host/index.mjs",
|
|
24
|
+
"clean": "rm -rf lib host *.tsbuildinfo",
|
|
25
|
+
"test": "bun test ./lib",
|
|
26
|
+
"watch": "tsc -b -w --preserveWatchOutput"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@celljs/ta-protocol": "workspace:*"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"pi": {
|
|
35
|
+
"title": {
|
|
36
|
+
"en": "Sync in your own storage",
|
|
37
|
+
"zh-CN": "自己的存储同步"
|
|
38
|
+
},
|
|
39
|
+
"summary": {
|
|
40
|
+
"en": "Sync your computers through storage of your own: a WebDAV server (Jianguoyun, Nextcloud, a NAS) or a bucket of S3 (AWS, Cloudflare R2, MinIO) or a git repository (GitHub, GitLab, Gitee). Sealed before it leaves, no relay.",
|
|
41
|
+
"zh-CN": "让几台电脑经你自己的存储同步:WebDAV(坚果云、Nextcloud、NAS)或 S3 存储桶(AWS、Cloudflare R2、MinIO)或 git 仓库(GitHub、GitLab、Gitee)。离开电脑前就已加密,不经过中继。"
|
|
42
|
+
},
|
|
43
|
+
"icon": "Cloud",
|
|
44
|
+
"host": "./host/index.mjs",
|
|
45
|
+
"permissions": {
|
|
46
|
+
"host": {
|
|
47
|
+
"*": "settings.manage"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"exports": {
|
|
52
|
+
"./package.json": "./package.json",
|
|
53
|
+
"./lib/*.js": {
|
|
54
|
+
"import": "./esm/*.js",
|
|
55
|
+
"default": "./lib/*.js"
|
|
56
|
+
},
|
|
57
|
+
"./lib/*": {
|
|
58
|
+
"import": "./esm/*.js",
|
|
59
|
+
"default": "./lib/*.js"
|
|
60
|
+
},
|
|
61
|
+
"./*": "./*"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Cell - Ta Team
|
|
2
|
+
|
|
3
|
+
A pi package that comes with Ta (on by default, Settings → Extensions turns it off): invite people into your Ta by a link to work with you, each with a role; the Ta service checks what each may do, call by call. Design record: [docs/design/ta-team.md](../../docs/design/ta-team.md).
|
|
4
|
+
|
|
5
|
+
- **Members** (Discover → Members): requests to come in and for more, members and who is online, links that invite, roles, the folders shared, the record. A member sees their role, what they may do and what they asked for.
|
|
6
|
+
- **Invite**: pick a role, how long the link works and whether you let each one in (on by default); you get a link and a QR code. They open it in their own Ta (phone or desktop) and ask with a name; once you let them in, their Ta adds "your Ta" and switches to it, connected to your Ta service through the relay, end to end.
|
|
7
|
+
- **Roles**: Ta has admin, collaborator, viewer and guest, which cannot be changed; make your own from them (the actions, the folders). A collaborator cannot let Ta run commands or open terminals until they ask.
|
|
8
|
+
- **Asking**: a refused call says so with an Ask button; a tool Ta was refused for them, Ta asks for with `request_permission`. You allow it for an hour, a day or for good, or refuse; a conversation that asked goes on by itself once allowed.
|
|
9
|
+
- **Who sees a conversation**: Who sees it, in the menu of a conversation, lets its author keep it to themselves (and those they give it). Your double's conversation is yours alone.
|
|
10
|
+
- **Sharing some agents or channels alone**: pick Only some agents or channels when inviting, or Share an agent or a channel in a member's page (see, use or change, and its folder for its tools if you like). They come in as a guest and see those alone; their own Ta lists them under Shared with you, a tap switching to yours to use them.
|
|
11
|
+
- **Outside the folders**: each role says never, ask me each folder (Ta asks for them, and goes on once you allow it), read but ask to change, or as inside.
|
|
12
|
+
- **Record and alerts**: Record lists every call of each and every tool Ta ran for them, risky ones alone if you like, by person, searched. Refusals again and again, reaching for the folders Ta keeps, commands that look like an attack and more calls than a person makes raise an alert you are told of; Ask Ta to look into it has Ta read the record and tell you who did what and what to do.
|
|
13
|
+
- **Limits**: members, people online at once, devices of one person and runs at once, in Roles.
|
|
14
|
+
|
|
15
|
+
## How it checks
|
|
16
|
+
|
|
17
|
+
- Every call is checked in one place of the Ta service (`TaTeamGate` of `ta-host`): each RPC method names the action it needs (`team-calls.ts`; a member calls no method without one), and the host of this package answers by role and grant (`TaAuthorizer`). Without the package nobody but you may do anything.
|
|
18
|
+
- Ta works with the rights of who asked: a run does only what every one whose message it answers may (the pi extension checks before each tool, the calls of codemode too).
|
|
19
|
+
- Ta's own directory (the agent directory) and the directories of keys (`~/.ssh`, `~/.aws`, …) are out of reach of every member; paths are compared where they lead on the disk, so links do not get around it.
|
|
20
|
+
- Running commands reaches beyond the folders: only for people you trust.
|
|
21
|
+
- The data is `team.json` and `team-audit.jsonl` of the agent directory, which only you read.
|
|
22
|
+
|
|
23
|
+
## Development
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
bun run build # tsc, then web/, host/ and extension/
|
|
27
|
+
bun run test
|
|
28
|
+
```
|