@celljs/ta 4.12.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 +11 -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 +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/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 +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 +15 -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 +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 +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.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 +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 +289 -133
- 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/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 +30 -22
- 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 +393 -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 +171 -7
- package/dist/pi/packages/ta-rooms/host/index.mjs +1002 -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 +33 -6
- 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 +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/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 +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-BnqtcbpZ.js → abnfDiagram-S7VZAUFO-DJMZKA5d.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BzPq1Ioe.js → architecture-WOLXFQ4H-DwZ8A2Bp.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-BsquO3a7.js → architectureDiagram-YGSQEFNW-DPezb7-w.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BQNYOEP4.js → blockDiagram-APKKGZFW-SrFYBlSp.js} +1 -1
- package/dist/public/assets/{browser-DS711n7Y.js → browser-CljOqDFz.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-D6e79Ycq.js → c4Diagram-KJ2TOQU5-COCMkiJ6.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-B-sgaPoU.js → chunk-6MUBBAK2-CWRxZCiu.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-D8pJKIg2.js → chunk-AXFCVDMN-Dgn3RHlx.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-86TL-vCz.js → chunk-BG4553SI-BDnAChfb.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CfUVuGjc.js → chunk-DQASFODM-DSgprMfc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-Drm0FEYk.js → chunk-HFQBQIA3-ChtjyKjP.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BVFRADlC.js → chunk-KQLB2F66-B2o0ufJC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-DfyALEmP.js → chunk-KS47KZWR-C4qJvDaX.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-DtJVzk2c.js → chunk-LEVMRMFU-2jTGUstS.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DTy27PHQ.js → chunk-M57EVK23-CKAWW7fj.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-nSgn7jZg.js → chunk-OY52VR5R-B5TUKZAt.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-CkSxO_X6.js → chunk-QB3YPZ4I-CyQFTqwG.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Ck6iAjAL.js → chunk-R3KSYZAL-C6git_yh.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DQPHdSTh.js → chunk-STOXU5M4-AwEqcNnS.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-Bc2AbV2Y.js → chunk-TU62E6Q5-GKcRDmvw.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Cgpm0IXm.js → chunk-X4PVCEUW-CMG5EfZ9.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-CGE4eLpg.js → chunk-XXDRQBXY-BHd-dKtZ.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-4eQuDPEo.js → classDiagram-v2-L25IHNXF-HaRsBCG9.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-tDLCWq07.js → cose-bilkent-JH36ORCC-BPBTCfj3.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-ByqcZ8x9.js → cynefinDiagram-L36ESFBY-dAmWDtva.js} +1 -1
- package/dist/public/assets/{d3-selection-Bgn1374-.js → d3-selection-BhemR5ul.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-mCgr71mV.js → dagre-SPEB5RXH-D93g6hNI.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DpYSwpQ0.js → diagram-3B7GL73J-FJBKgG3X.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-DMozUQzi.js → diagram-DNEMPZML-BP22T976.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-Bk5Uf8PD.js → diagram-L3MUGCDN-DcrCJXRt.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DFt5cPVK.js → diagram-LA4NIPWU-DUgd3PHQ.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BkZZcKqK.js → diagram-MHCOC4E2-ejTInqzQ.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-HEY6kyyN.js → diagram-XPFHEONP-BLjkgho1.js} +1 -1
- package/dist/public/assets/{dist-Bj2CrKn7.js → dist-C9xqTt0E.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D4JvYyVb.js → ebnfDiagram-UZSYDL2S-CB1QQ4_T.js} +1 -1
- package/dist/public/assets/{editor.api-BpJFzYbl.js → editor.api-lz6I1oVk.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CT6qLJkF.js → elk-XV6XMXQE-CLBx1s2b.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BGng1goR.js → erDiagram-EYBAPDEH-Dsj6RYi5.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-Tt8O-Q1Z.js → eventmodeling-K75KTNOO-smOORsSG.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +1 -0
- package/dist/public/assets/{freemarker2-Dd5ksoRn.js → freemarker2-DrLPw7Mc.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Jl8VO_g2.js → ganttDiagram-23REXITY-BV9WK0rK.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Be4qXALb.js → gitGraphDiagram-STJD7YCW-CsSpSQ0T.js} +1 -1
- package/dist/public/assets/{handlebars-4xabgUi4.js → handlebars-CLx5-csF.js} +1 -1
- package/dist/public/assets/{html-Dk3kt2w_.js → html-C9LmGm46.js} +1 -1
- package/dist/public/assets/{index-Bx0c7eoh.js → index-CLWW0mVu.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-Coc0tdwb.js → infoDiagram-KBXO4MBG-wm5AnXDz.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-CE_1VQCg.js → ishikawaDiagram-M35NCXHK-BLUBDeS3.js} +1 -1
- package/dist/public/assets/{javascript-DKLGqy6v.js → javascript-C4S1eQb7.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-CrolRZ_7.js → journeyDiagram-OPLOXDXO-DXc7-I_g.js} +1 -1
- package/dist/public/assets/{jsonMode-Chcs19_y.js → jsonMode-lLJKR2M6.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-CjJj47De.js → kanban-definition-BZKZHSQY-D5Ra4L_5.js} +1 -1
- package/dist/public/assets/{liquid-jff3p-Ji.js → liquid-DRlm-XZd.js} +1 -1
- package/dist/public/assets/{mdx-DW4uRDfJ.js → mdx-CzIqeqPy.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-XhQj6FvH.js → mermaid-parser.core-BIPB1BgS.js} +3 -3
- package/dist/public/assets/{mermaid.core-OD4Atimg.js → mermaid.core-DxBlQ6oF.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DpGelVY7.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-BTVZP-tU.js → monaco-ChpJIYsY.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CqcBmPfB.js → pegDiagram-FD4XPPHP-C_GF7Fng.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CRir3beB.js → pieDiagram-J4AKIIQI-WlpNP-IM.js} +1 -1
- package/dist/public/assets/{python-BwW_0207.js → python-BJgFCfc8.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-DIY6gdcf.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-XWNOzunl.js → railroad-abnf-LNEFI6M7-DZZKUytl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js → railroad-ebnf-DWYD2UWJ-CS7KsJdb.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-BVB_IaIG.js → railroad-peg-JR7BVNR7-CiukTZVd.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-CudwT6q2.js → railroadDiagram-MRQ6NCDL-BS0R_H3-.js} +1 -1
- package/dist/public/assets/{razor-DrjCyQqB.js → razor-jcBIjr45.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CvRMeRqj.js → requirementDiagram-Y7LWUY3S-C0_T9jgl.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-adxYCJKr.js → sankeyDiagram-WGJFYUXA-DF15sUfS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-lCRsoLUp.js → sequenceDiagram-5NDRBG5M-7AkTLleX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-DNst1BLg.js → stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-S_omrdvA.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-_pMGrTE-.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-0-z_OYCU.js → typescript-B7zp7QPf.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-B2oJKi5Q.js → usecaseDiagram-AFA6YXN4-D6rDIgdU.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-inPs2Kkr.js → vennDiagram-NNMJR3RB-CncVDcMl.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DNhNHM7b.js → wardleyDiagram-S7YFUSEH-DKPAMfTE.js} +1 -1
- package/dist/public/assets/{xml-BXPxQzKF.js → xml-BJIgLD52.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DJc93dNT.js → xychartDiagram-GGNKY7IX-DmmXGebm.js} +1 -1
- package/dist/public/assets/{yaml-CGmD9Rya.js → yaml-Dxb2gmP5.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7727 -3847
- 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,15 @@
|
|
|
1
|
+
import type { TeamAccess, TeamData, TeamInvite } from './protocol';
|
|
2
|
+
/** What runs out with time: links, requests unanswered, grants; answered requests are kept a while. */
|
|
3
|
+
export declare namespace TeamExpiry {
|
|
4
|
+
/** Changes the data for the time `now`; the links run out, for the service to take away with their devices. */
|
|
5
|
+
function expire(data: TeamData, now: number): {
|
|
6
|
+
changed: boolean;
|
|
7
|
+
invites: TeamInvite[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/** What a page sends, read as what it may be. */
|
|
11
|
+
export declare namespace TeamInput {
|
|
12
|
+
function resource(value: unknown): TeamAccess['resource'];
|
|
13
|
+
function reason(value: unknown): string | undefined;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=team-expiry.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamInput = exports.TeamExpiry = void 0;
|
|
4
|
+
const policy_1 = require("./policy");
|
|
5
|
+
const DAY = 24 * 60 * 60 * 1000;
|
|
6
|
+
/** How long a request to come in waits, and one for an action. */
|
|
7
|
+
const JOIN_MS = 7 * DAY;
|
|
8
|
+
const ACCESS_MS = DAY;
|
|
9
|
+
/** Answered requests kept, the latest, for a week. */
|
|
10
|
+
const KEEP_ANSWERED = 100;
|
|
11
|
+
/** What runs out with time: links, requests unanswered, grants; answered requests are kept a while. */
|
|
12
|
+
var TeamExpiry;
|
|
13
|
+
(function (TeamExpiry) {
|
|
14
|
+
/** Changes the data for the time `now`; the links run out, for the service to take away with their devices. */
|
|
15
|
+
function expire(data, now) {
|
|
16
|
+
let changed = false;
|
|
17
|
+
const invites = data.invites.filter(invite => invite.expiresAt <= now);
|
|
18
|
+
for (const join of data.joins) {
|
|
19
|
+
if (join.status === 'waiting' && join.at + JOIN_MS <= now) {
|
|
20
|
+
join.status = 'refused';
|
|
21
|
+
changed = true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
for (const request of data.access) {
|
|
25
|
+
if (request.status === 'waiting' && request.at + ACCESS_MS <= now) {
|
|
26
|
+
request.status = 'expired';
|
|
27
|
+
changed = true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const grants = data.grants.filter(grant => policy_1.TeamPolicy.valid(grant, now));
|
|
31
|
+
if (grants.length !== data.grants.length) {
|
|
32
|
+
data.grants = grants;
|
|
33
|
+
changed = true;
|
|
34
|
+
}
|
|
35
|
+
// The answer of a request to come in (the device sealed) goes with it after a week.
|
|
36
|
+
const keep = (list) => [
|
|
37
|
+
...list.filter(item => item.status === 'waiting'),
|
|
38
|
+
...list.filter(item => item.status !== 'waiting' && item.at + JOIN_MS > now).slice(-KEEP_ANSWERED),
|
|
39
|
+
];
|
|
40
|
+
const joins = keep(data.joins);
|
|
41
|
+
const access = keep(data.access);
|
|
42
|
+
if (joins.length !== data.joins.length || access.length !== data.access.length) {
|
|
43
|
+
data.joins = joins;
|
|
44
|
+
data.access = access;
|
|
45
|
+
changed = true;
|
|
46
|
+
}
|
|
47
|
+
return { changed: changed || invites.length > 0, invites };
|
|
48
|
+
}
|
|
49
|
+
TeamExpiry.expire = expire;
|
|
50
|
+
})(TeamExpiry || (exports.TeamExpiry = TeamExpiry = {}));
|
|
51
|
+
/** What a page sends, read as what it may be. */
|
|
52
|
+
var TeamInput;
|
|
53
|
+
(function (TeamInput) {
|
|
54
|
+
function resource(value) {
|
|
55
|
+
const resource = value;
|
|
56
|
+
return ((resource === null || resource === void 0 ? void 0 : resource.kind) === 'dir' || (resource === null || resource === void 0 ? void 0 : resource.kind) === 'session') && typeof resource.id === 'string' && resource.id
|
|
57
|
+
? { kind: resource.kind, id: resource.id }
|
|
58
|
+
: undefined;
|
|
59
|
+
}
|
|
60
|
+
TeamInput.resource = resource;
|
|
61
|
+
function reason(value) {
|
|
62
|
+
const text = typeof value === 'string' ? value.trim().slice(0, 300) : '';
|
|
63
|
+
return text || undefined;
|
|
64
|
+
}
|
|
65
|
+
TeamInput.reason = reason;
|
|
66
|
+
})(TeamInput || (exports.TeamInput = TeamInput = {}));
|
|
67
|
+
//# sourceMappingURL=team-expiry.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TeamAuditEntry, type TeamAuditQuery, type TeamData, type TeamInbox, type TeamLimits } from './protocol';
|
|
2
|
+
/** Limits as the owner set them, each within its range. */
|
|
3
|
+
export declare function limitsOf(value: unknown): TeamLimits;
|
|
4
|
+
/**
|
|
5
|
+
* team.json and team-audit.jsonl of the agent directory (0600), written by the host of the package alone; each write of
|
|
6
|
+
* the data tells the owner's pages what waits for an answer.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TeamFiles {
|
|
9
|
+
readonly agentDir: string;
|
|
10
|
+
protected readonly inbox: () => TeamInbox;
|
|
11
|
+
protected readonly tell: (inbox: TeamInbox) => Promise<void>;
|
|
12
|
+
readonly file: string;
|
|
13
|
+
readonly auditFile: string;
|
|
14
|
+
constructor(agentDir: string, inbox: () => TeamInbox, tell: (inbox: TeamInbox) => Promise<void>);
|
|
15
|
+
read(): TeamData;
|
|
16
|
+
write(data: TeamData): void;
|
|
17
|
+
record(entry: TeamAuditEntry): void;
|
|
18
|
+
/** The lines of the record that the query asks for, the latest first; the older file too when this one has too few. */
|
|
19
|
+
log(query?: TeamAuditQuery): TeamAuditEntry[];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=team-files.d.ts.map
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamFiles = void 0;
|
|
4
|
+
exports.limitsOf = limitsOf;
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const protocol_1 = require("./protocol");
|
|
8
|
+
/** Lines of the record read at most; how large it grows before the older half goes to `.1`. */
|
|
9
|
+
const AUDIT_READ = 2000;
|
|
10
|
+
const AUDIT_MAX_BYTES = 8 * 1024 * 1024;
|
|
11
|
+
/** Limits as the owner set them, each within its range. */
|
|
12
|
+
function limitsOf(value) {
|
|
13
|
+
const kept = (value && typeof value === 'object' ? value : {});
|
|
14
|
+
const limits = { ...protocol_1.DEFAULT_LIMITS };
|
|
15
|
+
for (const key of Object.keys(protocol_1.LIMIT_RANGE)) {
|
|
16
|
+
const [low, high] = protocol_1.LIMIT_RANGE[key];
|
|
17
|
+
const given = Math.floor(Number(kept[key]));
|
|
18
|
+
if (Number.isFinite(given)) {
|
|
19
|
+
limits[key] = Math.min(high, Math.max(low, given));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return limits;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* team.json and team-audit.jsonl of the agent directory (0600), written by the host of the package alone; each write of
|
|
26
|
+
* the data tells the owner's pages what waits for an answer.
|
|
27
|
+
*/
|
|
28
|
+
class TeamFiles {
|
|
29
|
+
constructor(agentDir, inbox, tell) {
|
|
30
|
+
this.agentDir = agentDir;
|
|
31
|
+
this.inbox = inbox;
|
|
32
|
+
this.tell = tell;
|
|
33
|
+
this.file = (0, node_path_1.join)(agentDir, 'team.json');
|
|
34
|
+
this.auditFile = (0, node_path_1.join)(agentDir, 'team-audit.jsonl');
|
|
35
|
+
}
|
|
36
|
+
read() {
|
|
37
|
+
let kept = {};
|
|
38
|
+
try {
|
|
39
|
+
kept = JSON.parse((0, node_fs_1.readFileSync)(this.file, 'utf8'));
|
|
40
|
+
}
|
|
41
|
+
catch (_a) {
|
|
42
|
+
kept = {};
|
|
43
|
+
}
|
|
44
|
+
const list = (key) => (Array.isArray(kept[key]) ? kept[key] : []);
|
|
45
|
+
return {
|
|
46
|
+
v: 1,
|
|
47
|
+
members: list('members'),
|
|
48
|
+
roles: list('roles'),
|
|
49
|
+
grants: list('grants'),
|
|
50
|
+
invites: list('invites'),
|
|
51
|
+
joins: list('joins'),
|
|
52
|
+
access: list('access'),
|
|
53
|
+
dirs: list('dirs'),
|
|
54
|
+
authors: kept.authors && typeof kept.authors === 'object' ? kept.authors : {},
|
|
55
|
+
private: list('private'),
|
|
56
|
+
limits: limitsOf(kept.limits),
|
|
57
|
+
alerts: list('alerts'),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
write(data) {
|
|
61
|
+
(0, node_fs_1.mkdirSync)(this.agentDir, { recursive: true });
|
|
62
|
+
const temporary = `${this.file}.${process.pid}.tmp`;
|
|
63
|
+
(0, node_fs_1.writeFileSync)(temporary, JSON.stringify(data, undefined, 2), { mode: 0o600 });
|
|
64
|
+
(0, node_fs_1.chmodSync)(temporary, 0o600);
|
|
65
|
+
(0, node_fs_1.renameSync)(temporary, this.file);
|
|
66
|
+
void this.tell(this.inbox()).catch(() => undefined);
|
|
67
|
+
}
|
|
68
|
+
record(entry) {
|
|
69
|
+
try {
|
|
70
|
+
(0, node_fs_1.mkdirSync)(this.agentDir, { recursive: true });
|
|
71
|
+
if ((0, node_fs_1.existsSync)(this.auditFile) && (0, node_fs_1.statSync)(this.auditFile).size > AUDIT_MAX_BYTES) {
|
|
72
|
+
(0, node_fs_1.renameSync)(this.auditFile, `${this.auditFile}.1`);
|
|
73
|
+
}
|
|
74
|
+
(0, node_fs_1.appendFileSync)(this.auditFile, `${JSON.stringify(entry)}\n`, { mode: 0o600 });
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
console.error(`ta-team: the record was not written: ${error instanceof Error ? error.message : error}`);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/** The lines of the record that the query asks for, the latest first; the older file too when this one has too few. */
|
|
81
|
+
log(query = {}) {
|
|
82
|
+
const limit = Math.min(AUDIT_READ, Math.max(1, Number(query.limit) || 100));
|
|
83
|
+
const words = typeof query.text === 'string' && query.text.trim() ? query.text.trim().toLowerCase() : undefined;
|
|
84
|
+
const matches = (entry) => { var _a; return (!query.who || entry.who === query.who || ((_a = entry.detail) === null || _a === void 0 ? void 0 : _a.member) === query.who) &&
|
|
85
|
+
(!query.since || entry.at >= query.since) &&
|
|
86
|
+
(!query.notable || entry.danger || entry.what === 'alert' || !['call', 'tool', 'connect'].includes(entry.what)) &&
|
|
87
|
+
(!words || JSON.stringify(entry).toLowerCase().includes(words)); };
|
|
88
|
+
const found = [];
|
|
89
|
+
for (const file of [this.auditFile, `${this.auditFile}.1`]) {
|
|
90
|
+
let lines;
|
|
91
|
+
try {
|
|
92
|
+
lines = (0, node_fs_1.readFileSync)(file, 'utf8').split('\n');
|
|
93
|
+
}
|
|
94
|
+
catch (_a) {
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
for (let at = lines.length - 1; at >= 0 && found.length < limit; at--) {
|
|
98
|
+
if (!lines[at]) {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
try {
|
|
102
|
+
const entry = JSON.parse(lines[at]);
|
|
103
|
+
if (matches(entry)) {
|
|
104
|
+
found.push(entry);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
catch (_b) {
|
|
108
|
+
// A line cut short by a crash: skipped.
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (found.length >= limit) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return found;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.TeamFiles = TeamFiles;
|
|
119
|
+
//# sourceMappingURL=team-files.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TaExtensionHost } from '@celljs/ta-protocol';
|
|
2
|
+
import { type TeamData, type TeamInbox } from './protocol';
|
|
3
|
+
/** What waits for the owner's answer, and telling them of what came: their pages (INBOX_KEY), and the notices of ta-notify. */
|
|
4
|
+
export declare namespace TeamInboxUtil {
|
|
5
|
+
function of(data: TeamData): TeamInbox;
|
|
6
|
+
function tell(host: TaExtensionHost, data: TeamData, latest: NonNullable<TeamInbox['latest']>): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=team-inbox.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamInboxUtil = void 0;
|
|
4
|
+
const team_protocol_1 = require("@celljs/ta-protocol/lib/common/team-protocol");
|
|
5
|
+
const protocol_1 = require("./protocol");
|
|
6
|
+
const NOTIFY = '@celljs/ta-notify';
|
|
7
|
+
/** What waits for the owner's answer, and telling them of what came: their pages (INBOX_KEY), and the notices of ta-notify. */
|
|
8
|
+
var TeamInboxUtil;
|
|
9
|
+
(function (TeamInboxUtil) {
|
|
10
|
+
function of(data) {
|
|
11
|
+
return {
|
|
12
|
+
joins: data.joins.filter(join => join.status === 'waiting').length,
|
|
13
|
+
access: data.access.filter(request => request.status === 'waiting').length,
|
|
14
|
+
alerts: data.alerts.filter(alert => !alert.seen).length,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
TeamInboxUtil.of = of;
|
|
18
|
+
function tell(host, data, latest) {
|
|
19
|
+
var _a;
|
|
20
|
+
void host.setExtensionData(protocol_1.NAME, protocol_1.INBOX_KEY, { ...of(data), latest }).catch(() => undefined);
|
|
21
|
+
const text = latest.kind === 'join'
|
|
22
|
+
? `${latest.name} asks to come into your Ta`
|
|
23
|
+
: latest.kind === 'alert'
|
|
24
|
+
? `Look at what ${latest.name} did in your Ta: it may be an attack or a mistake`
|
|
25
|
+
: `${latest.name} asks for "${team_protocol_1.TaActionUtil.title((_a = latest.action) !== null && _a !== void 0 ? _a : '', 'en')}"`;
|
|
26
|
+
void host
|
|
27
|
+
.callPackageHost(NOTIFY, 'notify', [{ from: protocol_1.NAME, id: `${latest.kind}-${latest.at}`, level: 'ask', title: 'Members', text, view: protocol_1.TEAM_VIEW }])
|
|
28
|
+
.catch(() => undefined);
|
|
29
|
+
}
|
|
30
|
+
TeamInboxUtil.tell = tell;
|
|
31
|
+
})(TeamInboxUtil || (exports.TeamInboxUtil = TeamInboxUtil = {}));
|
|
32
|
+
//# sourceMappingURL=team-inbox.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type TeamInvite, type TeamJoin } from './protocol';
|
|
2
|
+
import { type TeamContext } from './team-core';
|
|
3
|
+
import { TeamWaits } from './team-waits';
|
|
4
|
+
/** What a link shares besides its role, as TeamShares makes it (13.2). */
|
|
5
|
+
export type InviteGrants = (share: unknown, level: unknown, by: string) => Promise<NonNullable<TeamInvite['grants']>>;
|
|
6
|
+
/**
|
|
7
|
+
* Coming in (docs/design/ta-team.md 8): links that invite, one holding a link asking and waiting, the answer, and the
|
|
8
|
+
* device sealed for the one let in alone. What runs out with time goes here too.
|
|
9
|
+
*/
|
|
10
|
+
export declare class TeamInvites {
|
|
11
|
+
protected readonly team: TeamContext;
|
|
12
|
+
protected readonly grantsOf: InviteGrants;
|
|
13
|
+
protected readonly waits: TeamWaits;
|
|
14
|
+
constructor(team: TeamContext, grantsOf: InviteGrants);
|
|
15
|
+
dispose(): void;
|
|
16
|
+
createInvite(input: {
|
|
17
|
+
role?: unknown;
|
|
18
|
+
days?: unknown;
|
|
19
|
+
maxUses?: unknown;
|
|
20
|
+
approve?: unknown;
|
|
21
|
+
share?: unknown;
|
|
22
|
+
level?: unknown;
|
|
23
|
+
}): Promise<TeamInvite>;
|
|
24
|
+
stopInvite(inviteId: unknown): void;
|
|
25
|
+
/** One holding a link asks to come in: let in at once by a link that needs no answer, else waiting for one. */
|
|
26
|
+
ask(input: {
|
|
27
|
+
name?: unknown;
|
|
28
|
+
box?: unknown;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
request: string;
|
|
31
|
+
status: TeamJoin['status'];
|
|
32
|
+
answer?: TeamJoin['answer'];
|
|
33
|
+
}>;
|
|
34
|
+
/** Waits a while for the answer to a request to come in. */
|
|
35
|
+
wait(request: unknown): Promise<{
|
|
36
|
+
status: TeamJoin['status'] | 'gone';
|
|
37
|
+
answer?: TeamJoin['answer'];
|
|
38
|
+
}>;
|
|
39
|
+
answerJoin(joinId: unknown, accept: unknown, roleId?: unknown): Promise<TeamJoin>;
|
|
40
|
+
/** What runs out with time: links (with their devices), requests unanswered, grants. */
|
|
41
|
+
expire(now?: number): void;
|
|
42
|
+
protected inviteOfCaller(): TeamInvite;
|
|
43
|
+
protected letIn(join: TeamJoin, roleId: string, by: string): Promise<void>;
|
|
44
|
+
protected drop(invite: TeamInvite): void;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=team-invites.d.ts.map
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamInvites = void 0;
|
|
4
|
+
const team_protocol_1 = require("@celljs/ta-protocol/lib/common/team-protocol");
|
|
5
|
+
const policy_1 = require("./policy");
|
|
6
|
+
const protocol_1 = require("./protocol");
|
|
7
|
+
const seal_1 = require("./seal");
|
|
8
|
+
const team_core_1 = require("./team-core");
|
|
9
|
+
const team_error_1 = require("./team-error");
|
|
10
|
+
const team_expiry_1 = require("./team-expiry");
|
|
11
|
+
const team_waits_1 = require("./team-waits");
|
|
12
|
+
const DAY = 24 * 60 * 60 * 1000;
|
|
13
|
+
/** Requests to come in waiting at once. */
|
|
14
|
+
const MAX_JOINS = 50;
|
|
15
|
+
/**
|
|
16
|
+
* Coming in (docs/design/ta-team.md 8): links that invite, one holding a link asking and waiting, the answer, and the
|
|
17
|
+
* device sealed for the one let in alone. What runs out with time goes here too.
|
|
18
|
+
*/
|
|
19
|
+
class TeamInvites {
|
|
20
|
+
constructor(team, grantsOf) {
|
|
21
|
+
this.team = team;
|
|
22
|
+
this.grantsOf = grantsOf;
|
|
23
|
+
this.waits = new team_waits_1.TeamWaits();
|
|
24
|
+
}
|
|
25
|
+
dispose() {
|
|
26
|
+
this.waits.wakeAll();
|
|
27
|
+
}
|
|
28
|
+
async createInvite(input) {
|
|
29
|
+
var _a;
|
|
30
|
+
const { team } = this;
|
|
31
|
+
const by = team.require('members.invite');
|
|
32
|
+
const grants = await this.grantsOf(input === null || input === void 0 ? void 0 : input.share, input === null || input === void 0 ? void 0 : input.level, by);
|
|
33
|
+
// A link that shares some things alone lets in to see those alone: a role that sees only what is shared.
|
|
34
|
+
const role = policy_1.TeamPolicy.roleOf(team.data, grants.length ? 'guest' : String((_a = input === null || input === void 0 ? void 0 : input.role) !== null && _a !== void 0 ? _a : protocol_1.DEFAULT_ROLE));
|
|
35
|
+
if (!role) {
|
|
36
|
+
throw new team_error_1.TeamError('No such role.');
|
|
37
|
+
}
|
|
38
|
+
team.mayGive(by, role);
|
|
39
|
+
const days = Math.min(30, Math.max(1, Number(input === null || input === void 0 ? void 0 : input.days) || 7));
|
|
40
|
+
const maxUses = Number(input === null || input === void 0 ? void 0 : input.maxUses) > 0 ? Math.floor(Number(input === null || input === void 0 ? void 0 : input.maxUses)) : undefined;
|
|
41
|
+
const id = (0, team_core_1.newId)();
|
|
42
|
+
const expiresAt = Date.now() + days * DAY;
|
|
43
|
+
const pairing = await team.host.team.pair(`${team_protocol_1.TA_INVITE_PREFIX}${id}`, `invite ${role.name}`, expiresAt);
|
|
44
|
+
const what = grants
|
|
45
|
+
.map(grant => { var _a; return (_a = grant.resource.title) !== null && _a !== void 0 ? _a : ''; })
|
|
46
|
+
.filter(Boolean)
|
|
47
|
+
.join('、')
|
|
48
|
+
.slice(0, 60);
|
|
49
|
+
const invite = {
|
|
50
|
+
id,
|
|
51
|
+
role: role.id,
|
|
52
|
+
device: pairing.device,
|
|
53
|
+
link: seal_1.TeamLink.format({
|
|
54
|
+
relay: pairing.relay,
|
|
55
|
+
host: pairing.host,
|
|
56
|
+
device: pairing.device,
|
|
57
|
+
key: pairing.key,
|
|
58
|
+
owner: team.ownerName,
|
|
59
|
+
role: role.name,
|
|
60
|
+
...(what ? { what } : {}),
|
|
61
|
+
}),
|
|
62
|
+
createdAt: Date.now(),
|
|
63
|
+
expiresAt,
|
|
64
|
+
...(maxUses ? { maxUses } : {}),
|
|
65
|
+
uses: 0,
|
|
66
|
+
approve: (input === null || input === void 0 ? void 0 : input.approve) !== false,
|
|
67
|
+
by,
|
|
68
|
+
...(grants.length ? { grants } : {}),
|
|
69
|
+
};
|
|
70
|
+
team.data.invites.push(invite);
|
|
71
|
+
team.record(by, 'invite', { invite: invite.id, role: role.id, days, maxUses, approve: invite.approve });
|
|
72
|
+
team.save();
|
|
73
|
+
return invite;
|
|
74
|
+
}
|
|
75
|
+
stopInvite(inviteId) {
|
|
76
|
+
const by = this.team.require('members.invite');
|
|
77
|
+
const invite = this.team.data.invites.find(one => one.id === inviteId);
|
|
78
|
+
if (invite) {
|
|
79
|
+
this.drop(invite);
|
|
80
|
+
this.team.record(by, 'uninvite', { invite: invite.id });
|
|
81
|
+
this.team.save();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/** One holding a link asks to come in: let in at once by a link that needs no answer, else waiting for one. */
|
|
85
|
+
async ask(input) {
|
|
86
|
+
var _a;
|
|
87
|
+
const { team } = this;
|
|
88
|
+
const invite = this.inviteOfCaller();
|
|
89
|
+
const name = String((_a = input === null || input === void 0 ? void 0 : input.name) !== null && _a !== void 0 ? _a : '')
|
|
90
|
+
.trim()
|
|
91
|
+
.slice(0, 40);
|
|
92
|
+
if (!name || !seal_1.TeamSeal.isKey(input === null || input === void 0 ? void 0 : input.box)) {
|
|
93
|
+
throw new team_error_1.TeamError('Give a name, and the public key of the request.');
|
|
94
|
+
}
|
|
95
|
+
if (team.data.joins.filter(join => join.status === 'waiting').length >= MAX_JOINS) {
|
|
96
|
+
throw new team_error_1.TeamError('Too many are waiting to come in; try again later.');
|
|
97
|
+
}
|
|
98
|
+
const join = { id: (0, team_core_1.newId)(), invite: invite.id, name, box: input.box, at: Date.now(), status: 'waiting' };
|
|
99
|
+
team.data.joins.push(join);
|
|
100
|
+
team.record(`${team_protocol_1.TA_INVITE_PREFIX}${invite.id}`, 'ask', { join: join.id, name });
|
|
101
|
+
if (!invite.approve) {
|
|
102
|
+
await this.letIn(join, invite.role, invite.by);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
team.save();
|
|
106
|
+
team.tell({ kind: 'join', name, at: join.at });
|
|
107
|
+
}
|
|
108
|
+
return { request: join.id, status: join.status, ...(join.answer ? { answer: join.answer } : {}) };
|
|
109
|
+
}
|
|
110
|
+
/** Waits a while for the answer to a request to come in. */
|
|
111
|
+
async wait(request) {
|
|
112
|
+
var _a;
|
|
113
|
+
const invite = this.inviteOfCaller();
|
|
114
|
+
const find = () => this.team.data.joins.find(join => join.id === request && join.invite === invite.id);
|
|
115
|
+
if (((_a = find()) === null || _a === void 0 ? void 0 : _a.status) === 'waiting') {
|
|
116
|
+
await this.waits.sleep(`join:${String(request)}`, protocol_1.WAIT_MS);
|
|
117
|
+
}
|
|
118
|
+
const join = find();
|
|
119
|
+
return join ? { status: join.status, ...(join.answer ? { answer: join.answer } : {}) } : { status: 'gone' };
|
|
120
|
+
}
|
|
121
|
+
async answerJoin(joinId, accept, roleId) {
|
|
122
|
+
var _a;
|
|
123
|
+
const { team } = this;
|
|
124
|
+
const by = team.require('members.approve');
|
|
125
|
+
const join = team.data.joins.find(one => one.id === joinId && one.status === 'waiting');
|
|
126
|
+
if (!join) {
|
|
127
|
+
throw new team_error_1.TeamError('This request was answered already, or is gone.');
|
|
128
|
+
}
|
|
129
|
+
if (!accept) {
|
|
130
|
+
join.status = 'refused';
|
|
131
|
+
join.by = by;
|
|
132
|
+
team.record(by, 'refuse', { join: join.id, name: join.name });
|
|
133
|
+
team.save();
|
|
134
|
+
this.waits.wake(`join:${join.id}`);
|
|
135
|
+
return join;
|
|
136
|
+
}
|
|
137
|
+
const invite = team.data.invites.find(one => one.id === join.invite);
|
|
138
|
+
const role = policy_1.TeamPolicy.roleOf(team.data, typeof roleId === 'string' && roleId ? roleId : ((_a = invite === null || invite === void 0 ? void 0 : invite.role) !== null && _a !== void 0 ? _a : protocol_1.DEFAULT_ROLE));
|
|
139
|
+
if (!role) {
|
|
140
|
+
throw new team_error_1.TeamError('No such role.');
|
|
141
|
+
}
|
|
142
|
+
team.mayGive(by, role);
|
|
143
|
+
await this.letIn(join, role.id, by);
|
|
144
|
+
return join;
|
|
145
|
+
}
|
|
146
|
+
/** What runs out with time: links (with their devices), requests unanswered, grants. */
|
|
147
|
+
expire(now = Date.now()) {
|
|
148
|
+
const dropped = team_expiry_1.TeamExpiry.expire(this.team.data, now);
|
|
149
|
+
for (const invite of dropped.invites) {
|
|
150
|
+
this.drop(invite);
|
|
151
|
+
}
|
|
152
|
+
if (dropped.changed) {
|
|
153
|
+
this.team.save();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
inviteOfCaller() {
|
|
157
|
+
const principal = this.team.host.team.current();
|
|
158
|
+
const invite = principal.startsWith(team_protocol_1.TA_INVITE_PREFIX) ? this.team.data.invites.find(one => `${team_protocol_1.TA_INVITE_PREFIX}${one.id}` === principal) : undefined;
|
|
159
|
+
if (!invite || invite.expiresAt <= Date.now() || (invite.maxUses !== undefined && invite.uses >= invite.maxUses)) {
|
|
160
|
+
throw new team_error_1.TeamError('This link no longer invites: ask for a new one.');
|
|
161
|
+
}
|
|
162
|
+
return invite;
|
|
163
|
+
}
|
|
164
|
+
async letIn(join, roleId, by) {
|
|
165
|
+
var _a, _b;
|
|
166
|
+
const { team } = this;
|
|
167
|
+
if (team.data.members.length >= team.data.limits.members) {
|
|
168
|
+
throw new team_error_1.TeamError(`This Ta has ${team.data.limits.members} members, as many as its owner lets: remove one, or raise the limit.`);
|
|
169
|
+
}
|
|
170
|
+
const member = { id: `m:${(0, team_core_1.newId)()}`, name: join.name, role: roleId, joinedAt: Date.now(), by };
|
|
171
|
+
const { link: _link, ...device } = await team.host.team.pair(member.id, join.name);
|
|
172
|
+
join.answer = await seal_1.TeamSeal.seal(join.box, join.id, JSON.stringify(device));
|
|
173
|
+
join.status = 'accepted';
|
|
174
|
+
join.member = member.id;
|
|
175
|
+
join.by = by;
|
|
176
|
+
team.data.members.push(member);
|
|
177
|
+
const invite = team.data.invites.find(one => one.id === join.invite);
|
|
178
|
+
for (const grant of (_a = invite === null || invite === void 0 ? void 0 : invite.grants) !== null && _a !== void 0 ? _a : []) {
|
|
179
|
+
team.addGrant({ member: member.id, action: grant.action, resource: grant.resource, by: (_b = invite === null || invite === void 0 ? void 0 : invite.by) !== null && _b !== void 0 ? _b : by });
|
|
180
|
+
}
|
|
181
|
+
if (invite) {
|
|
182
|
+
invite.uses++;
|
|
183
|
+
if (invite.maxUses !== undefined && invite.uses >= invite.maxUses) {
|
|
184
|
+
team.host.team.unpair(invite.device);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
team.record(by, 'join', { join: join.id, member: member.id, name: member.name, role: roleId });
|
|
188
|
+
team.save();
|
|
189
|
+
this.waits.wake(`join:${join.id}`);
|
|
190
|
+
}
|
|
191
|
+
drop(invite) {
|
|
192
|
+
const { team } = this;
|
|
193
|
+
team.host.team.unpair(invite.device);
|
|
194
|
+
team.data.invites = team.data.invites.filter(one => one !== invite);
|
|
195
|
+
for (const join of team.data.joins) {
|
|
196
|
+
if (join.invite === invite.id && join.status === 'waiting') {
|
|
197
|
+
join.status = 'refused';
|
|
198
|
+
this.waits.wake(`join:${join.id}`);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.TeamInvites = TeamInvites;
|
|
204
|
+
//# sourceMappingURL=team-invites.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The page of members (docs/design/ta-team.md 7.2, 13): who is in and what waits for an answer, the roles and how far
|
|
3
|
+
* they reach, and the record of what each did. One let in without the right to see members sees what is theirs.
|
|
4
|
+
*/
|
|
5
|
+
export declare function TeamPage(): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=team-page.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamPage = TeamPage;
|
|
4
|
+
const members_tab_1 = require("./members-tab");
|
|
5
|
+
const page_1 = require("./page");
|
|
6
|
+
const parts_1 = require("./parts");
|
|
7
|
+
const react_1 = require("./react");
|
|
8
|
+
const record_tab_1 = require("./record-tab");
|
|
9
|
+
const roles_tab_1 = require("./roles-tab");
|
|
10
|
+
/**
|
|
11
|
+
* The page of members (docs/design/ta-team.md 7.2, 13): who is in and what waits for an answer, the roles and how far
|
|
12
|
+
* they reach, and the record of what each did. One let in without the right to see members sees what is theirs.
|
|
13
|
+
*/
|
|
14
|
+
function TeamPage() {
|
|
15
|
+
const { me, overview, error } = (0, page_1.useBook)();
|
|
16
|
+
const [tab, setTab] = react_1.React.useState('members');
|
|
17
|
+
react_1.React.useEffect(() => {
|
|
18
|
+
void page_1.book.load();
|
|
19
|
+
const timer = setInterval(() => void page_1.book.load(), 15000);
|
|
20
|
+
return () => clearInterval(timer);
|
|
21
|
+
}, []);
|
|
22
|
+
if (!me) {
|
|
23
|
+
return react_1.React.createElement("div", { className: "ttm-page" }, error ? react_1.React.createElement("p", { className: "ttm-error ttm-pad" }, error) : react_1.React.createElement("p", { className: "ttm-quiet ttm-pad" }, (0, page_1.t)('loading')));
|
|
24
|
+
}
|
|
25
|
+
if (!overview) {
|
|
26
|
+
return (react_1.React.createElement("div", { className: "ttm-page" },
|
|
27
|
+
react_1.React.createElement("div", { className: "ttm-list" }, !me.owner && react_1.React.createElement(members_tab_1.Mine, { me: me }))));
|
|
28
|
+
}
|
|
29
|
+
const may = (action) => me.owner || me.actions.includes(action);
|
|
30
|
+
const pending = overview.joins.length + overview.access.length;
|
|
31
|
+
const tabs = [
|
|
32
|
+
{ id: 'members', label: (0, page_1.t)('tabMembers'), badge: pending },
|
|
33
|
+
{ id: 'roles', label: (0, page_1.t)('tabRoles') },
|
|
34
|
+
...(may('audit.view') ? [{ id: 'record', label: (0, page_1.t)('tabRecord'), badge: overview.alerts.filter(alert => !alert.seen).length }] : []),
|
|
35
|
+
];
|
|
36
|
+
return (react_1.React.createElement("div", { className: "ttm-page" },
|
|
37
|
+
react_1.React.createElement("div", { className: "ttm-list" },
|
|
38
|
+
react_1.React.createElement(parts_1.Segments, { value: tabs.some(one => one.id === tab) ? tab : 'members', items: tabs, onChange: setTab }),
|
|
39
|
+
tab === 'roles' ? (react_1.React.createElement(roles_tab_1.RolesTab, { me: me, overview: overview })) : tab === 'record' && may('audit.view') ? (react_1.React.createElement(record_tab_1.RecordTab, { overview: overview })) : (react_1.React.createElement(members_tab_1.MembersTab, { me: me, overview: overview })))));
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=team-page.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TaResource } from '@celljs/ta-protocol';
|
|
2
|
+
import type { TeamData } from './protocol';
|
|
3
|
+
/**
|
|
4
|
+
* Where a path leads on this machine, through the links of the disk (`/var` of macOS is `/private/var`, a link in a
|
|
5
|
+
* folder shared may lead to the keys): what is checked, on both sides of a check. A location of another machine stays as
|
|
6
|
+
* it is.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TeamPaths {
|
|
9
|
+
protected readonly kept: Map<string, string>;
|
|
10
|
+
canonical(path: string): string;
|
|
11
|
+
resource(resource: TaResource | undefined): TaResource | undefined;
|
|
12
|
+
/** The data with the folders it shares, of its roles and of its grants, where they lead. */
|
|
13
|
+
data(data: TeamData): TeamData;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=team-paths.d.ts.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamPaths = void 0;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
/** Paths kept where they lead, at most this many. */
|
|
7
|
+
const MAX_KEPT = 2000;
|
|
8
|
+
/**
|
|
9
|
+
* Where a path leads on this machine, through the links of the disk (`/var` of macOS is `/private/var`, a link in a
|
|
10
|
+
* folder shared may lead to the keys): what is checked, on both sides of a check. A location of another machine stays as
|
|
11
|
+
* it is.
|
|
12
|
+
*/
|
|
13
|
+
class TeamPaths {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.kept = new Map();
|
|
16
|
+
}
|
|
17
|
+
canonical(path) {
|
|
18
|
+
if (!(0, node_path_1.isAbsolute)(path)) {
|
|
19
|
+
return path;
|
|
20
|
+
}
|
|
21
|
+
const known = this.kept.get(path);
|
|
22
|
+
if (known !== undefined) {
|
|
23
|
+
return known;
|
|
24
|
+
}
|
|
25
|
+
// The nearest part that is there leads somewhere; what is not there yet follows it as written.
|
|
26
|
+
let head = path;
|
|
27
|
+
const rest = [];
|
|
28
|
+
let resolved = path;
|
|
29
|
+
for (;;) {
|
|
30
|
+
try {
|
|
31
|
+
resolved = (0, node_path_1.join)((0, node_fs_1.realpathSync)(head), ...rest);
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
catch (_a) {
|
|
35
|
+
const parent = (0, node_path_1.dirname)(head);
|
|
36
|
+
if (parent === head) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
rest.unshift((0, node_path_1.basename)(head));
|
|
40
|
+
head = parent;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (this.kept.size > MAX_KEPT) {
|
|
44
|
+
this.kept.clear();
|
|
45
|
+
}
|
|
46
|
+
this.kept.set(path, resolved);
|
|
47
|
+
return resolved;
|
|
48
|
+
}
|
|
49
|
+
resource(resource) {
|
|
50
|
+
if ((resource === null || resource === void 0 ? void 0 : resource.kind) === 'dir') {
|
|
51
|
+
return { ...resource, id: this.canonical(resource.id) };
|
|
52
|
+
}
|
|
53
|
+
if ((resource === null || resource === void 0 ? void 0 : resource.kind) === 'session' && resource.cwd) {
|
|
54
|
+
return { ...resource, cwd: this.canonical(resource.cwd) };
|
|
55
|
+
}
|
|
56
|
+
return resource;
|
|
57
|
+
}
|
|
58
|
+
/** The data with the folders it shares, of its roles and of its grants, where they lead. */
|
|
59
|
+
data(data) {
|
|
60
|
+
const dirs = (list) => list.map(dir => this.canonical(dir));
|
|
61
|
+
return {
|
|
62
|
+
...data,
|
|
63
|
+
dirs: dirs(data.dirs),
|
|
64
|
+
roles: data.roles.map(role => (role.dirs ? { ...role, dirs: dirs(role.dirs) } : role)),
|
|
65
|
+
grants: data.grants.map(grant => { var _a; return ((_a = grant.resource) === null || _a === void 0 ? void 0 : _a.kind) === 'dir' ? { ...grant, resource: { ...grant.resource, id: this.canonical(grant.resource.id) } } : grant; }),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.TeamPaths = TeamPaths;
|
|
70
|
+
//# sourceMappingURL=team-paths.js.map
|