@celljs/ta 4.11.0 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/cli.mjs +1006 -164
- package/dist/gateway.mjs +161 -2
- package/dist/pi/CHANGELOG.md +15 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +1 -1
- package/dist/pi/packages/ta-agents/README.md +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +266 -25
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +7 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +8 -3
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +12 -4
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +72 -2
- package/dist/pi/packages/ta-agents/lib/agent-session.js +183 -18
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +16 -2
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +45 -4
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +17 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +51 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +7 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +12 -0
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +157 -0
- package/dist/pi/packages/ta-bots/package.json +7 -2
- package/dist/pi/packages/ta-changes/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-changes/package.json +8 -2
- package/dist/pi/packages/ta-channels/README.en.md +3 -1
- package/dist/pi/packages/ta-channels/README.md +3 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +55 -2
- package/dist/pi/packages/ta-channels/host/index.mjs +268 -8
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +8 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/room.js +31 -5
- package/dist/pi/packages/ta-channels/lib/sidebar.js +31 -13
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +10 -13
- package/dist/pi/packages/ta-channels/lib/team-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/team-view.js +45 -0
- package/dist/pi/packages/ta-channels/lib/team.d.ts +20 -4
- package/dist/pi/packages/ta-channels/lib/team.js +87 -6
- package/dist/pi/packages/ta-channels/lib/views.d.ts +12 -0
- package/dist/pi/packages/ta-channels/lib/views.js +19 -0
- package/dist/pi/packages/ta-channels/package.json +26 -2
- package/dist/pi/packages/ta-channels/web/index.js +191 -36
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +2 -2
- package/dist/pi/packages/ta-cron/README.md +2 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +91 -257
- package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
- package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +11 -7
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
- package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
- package/dist/pi/packages/ta-cron/lib/index.js +0 -2
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/page.js +24 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +8 -0
- package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
- package/dist/pi/packages/ta-cron/package.json +10 -2
- package/dist/pi/packages/ta-cron/web/index.js +607 -784
- package/dist/pi/packages/ta-extensions/README.en.md +1 -2
- package/dist/pi/packages/ta-extensions/README.md +1 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
- package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
- package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
- package/dist/pi/packages/ta-extensions/package.json +10 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +16 -11
- package/dist/pi/packages/ta-extensions/web/index.js +176 -97
- package/dist/pi/packages/ta-games/package.json +8 -2
- package/dist/pi/packages/ta-glance/README.en.md +1 -0
- package/dist/pi/packages/ta-glance/README.md +1 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +425 -3
- package/dist/pi/packages/ta-glance/lib/card.js +42 -15
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +10 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.js +97 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +3 -3
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +3 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +7 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +45 -9
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +9 -0
- package/dist/pi/packages/ta-glance/lib/index.js +4 -1
- package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/style.js +187 -102
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-glance/web/index.js +272 -124
- package/dist/pi/packages/ta-initiative/README.en.md +66 -0
- package/dist/pi/packages/ta-initiative/README.md +66 -0
- package/dist/pi/packages/ta-initiative/extension/index.mjs +720 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
- package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +238 -0
- package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
- package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
- package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
- package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
- package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
- package/dist/pi/packages/ta-initiative/package.json +63 -0
- package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
- package/dist/pi/packages/ta-launcher/README.en.md +2 -1
- package/dist/pi/packages/ta-launcher/README.md +2 -1
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +58 -1
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +160 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +2 -1
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +5 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +155 -9
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +54 -8
- package/dist/pi/packages/ta-manual/web/index.js +750 -10
- package/dist/pi/packages/ta-moments/README.en.md +29 -0
- package/dist/pi/packages/ta-moments/README.md +29 -0
- package/dist/pi/packages/ta-moments/extension/index.mjs +1766 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2394 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
- package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/context.js +35 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
- package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
- package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
- package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
- package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
- package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/host.js +11 -0
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
- package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
- package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-moments/lib/index.js +50 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
- package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
- package/dist/pi/packages/ta-moments/lib/page.js +307 -0
- package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
- package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
- package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
- package/dist/pi/packages/ta-moments/lib/store.js +108 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/style.js +155 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
- package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
- package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
- package/dist/pi/packages/ta-moments/package.json +61 -0
- package/dist/pi/packages/ta-moments/web/index.js +1987 -0
- package/dist/pi/packages/ta-nearby/README.en.md +33 -0
- package/dist/pi/packages/ta-nearby/README.md +33 -0
- package/dist/pi/packages/ta-nearby/extension/index.mjs +389 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
- package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
- package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
- package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
- package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
- package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
- package/dist/pi/packages/ta-nearby/package.json +65 -0
- package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
- package/dist/pi/packages/ta-notify/README.en.md +3 -1
- package/dist/pi/packages/ta-notify/README.md +3 -1
- package/dist/pi/packages/ta-notify/extension/index.mjs +64 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
- package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
- package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
- package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-notify/lib/style.js +1 -1
- package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
- package/dist/pi/packages/ta-notify/package.json +7 -2
- package/dist/pi/packages/ta-notify/web/index.js +3 -2
- package/dist/pi/packages/ta-recall/README.en.md +15 -6
- package/dist/pi/packages/ta-recall/README.md +15 -6
- package/dist/pi/packages/ta-recall/extension/index.mjs +291 -134
- package/dist/pi/packages/ta-recall/host/index.mjs +451 -116
- package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
- package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
- package/dist/pi/packages/ta-recall/lib/conversations.js +6 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.js +104 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/extension.js +35 -26
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +18 -10
- package/dist/pi/packages/ta-recall/lib/i18n.js +40 -24
- package/dist/pi/packages/ta-recall/lib/index.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/index.js +5 -4
- package/dist/pi/packages/ta-recall/lib/keep-card.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/keep-card.js +83 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +15 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.js +55 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +92 -18
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +19 -9
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +16 -6
- package/dist/pi/packages/ta-recall/lib/recall-service.js +101 -11
- package/dist/pi/packages/ta-recall/lib/requests-util.d.ts +6 -0
- package/dist/pi/packages/ta-recall/lib/requests-util.js +37 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +5 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/settings.js +1 -1
- package/dist/pi/packages/ta-recall/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/style.js +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.js +10 -5
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +14 -5
- package/dist/pi/packages/ta-recall/lib/tool.js +29 -17
- package/dist/pi/packages/ta-recall/package.json +13 -5
- package/dist/pi/packages/ta-recall/web/index.js +397 -153
- package/dist/pi/packages/ta-rooms/README.en.md +14 -5
- package/dist/pi/packages/ta-rooms/README.md +14 -5
- package/dist/pi/packages/ta-rooms/extension/index.mjs +526 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +1734 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.d.ts +25 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +5 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.d.ts +26 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +84 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.d.ts +22 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +140 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +117 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.js +476 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +212 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +258 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +82 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +527 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.d.ts +19 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.js +124 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +131 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.js +238 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +48 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +151 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.d.ts +34 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +228 -0
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +33 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +203 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +47 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +224 -0
- package/dist/pi/packages/ta-rooms/lib/host.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/host.js +25 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +27 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.js +68 -18
- package/dist/pi/packages/ta-rooms/lib/index.js +41 -3
- package/dist/pi/packages/ta-rooms/lib/members-view.js +44 -3
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +97 -10
- package/dist/pi/packages/ta-rooms/lib/page.js +223 -45
- package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +2 -4
- package/dist/pi/packages/ta-rooms/lib/room-view.js +57 -35
- package/dist/pi/packages/ta-rooms/lib/rooms-home.d.ts +32 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-home.js +141 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +8 -2
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +68 -36
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +126 -50
- package/dist/pi/packages/ta-rooms/lib/tasks-view.d.ts +41 -0
- package/dist/pi/packages/ta-rooms/lib/tasks-view.js +228 -0
- package/dist/pi/packages/ta-rooms/package.json +19 -4
- package/dist/pi/packages/ta-rooms/web/index.js +2585 -470
- package/dist/pi/packages/ta-share/README.en.md +1 -1
- package/dist/pi/packages/ta-share/README.md +1 -1
- package/dist/pi/packages/ta-share/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
- package/dist/pi/packages/ta-share/lib/shares-page.js +35 -11
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +14 -10
- package/dist/pi/packages/ta-share/package.json +10 -2
- package/dist/pi/packages/ta-share/web/index.js +56 -31
- package/dist/pi/packages/ta-sync/README.en.md +55 -0
- package/dist/pi/packages/ta-sync/README.md +55 -0
- package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
- package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/host.js +94 -0
- package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
- package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
- package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-sync/lib/index.js +115 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
- package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
- package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
- package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
- package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
- package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
- package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-sync/lib/react.js +16 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-sync/lib/style.js +108 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
- package/dist/pi/packages/ta-sync/package.json +57 -0
- package/dist/pi/packages/ta-sync/web/index.js +2018 -0
- package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
- package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
- package/dist/pi/packages/ta-team/README.en.md +28 -0
- package/dist/pi/packages/ta-team/README.md +28 -0
- package/dist/pi/packages/ta-team/extension/index.mjs +264 -0
- package/dist/pi/packages/ta-team/host/index.mjs +2100 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
- package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/extension.js +123 -0
- package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/host.js +45 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
- package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/index.js +67 -0
- package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/join.js +48 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
- package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
- package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
- package/dist/pi/packages/ta-team/lib/page.js +142 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
- package/dist/pi/packages/ta-team/lib/parts.js +47 -0
- package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
- package/dist/pi/packages/ta-team/lib/policy.js +215 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
- package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
- package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/react.js +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
- package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/remote.js +128 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
- package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/seal.js +75 -0
- package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
- package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
- package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/style.js +99 -0
- package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
- package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
- package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
- package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
- package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
- package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
- package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
- package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
- package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
- package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
- package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
- package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
- package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
- package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
- package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
- package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
- package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
- package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
- package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
- package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
- package/dist/pi/packages/ta-team/package.json +68 -0
- package/dist/pi/packages/ta-team/web/index.js +2741 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +157 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-D9uU0Tx2.js → abnfDiagram-S7VZAUFO-DJMZKA5d.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-f7Nm7EIo.js → architecture-WOLXFQ4H-DwZ8A2Bp.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DSAqlcms.js → architectureDiagram-YGSQEFNW-DPezb7-w.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-C0lPIW9g.js → blockDiagram-APKKGZFW-SrFYBlSp.js} +1 -1
- package/dist/public/assets/{browser-WLpgVYno.js → browser-CljOqDFz.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CDcZ7mJq.js → c4Diagram-KJ2TOQU5-COCMkiJ6.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CXPuyqPL.js → chunk-6MUBBAK2-CWRxZCiu.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Du6JRX1x.js → chunk-AXFCVDMN-Dgn3RHlx.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-D592E55X.js → chunk-BG4553SI-BDnAChfb.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BW2r2SL4.js → chunk-DQASFODM-DSgprMfc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C3yoe54R.js → chunk-HFQBQIA3-ChtjyKjP.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DF8gfYCy.js → chunk-KQLB2F66-B2o0ufJC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-C8CRMTv1.js → chunk-KS47KZWR-C4qJvDaX.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-BDcMKiwj.js → chunk-LEVMRMFU-2jTGUstS.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-CKJPBygc.js → chunk-M57EVK23-CKAWW7fj.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-B3ZWH07L.js → chunk-OY52VR5R-B5TUKZAt.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-DI-z4UPL.js → chunk-QB3YPZ4I-CyQFTqwG.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Bg4-haAc.js → chunk-R3KSYZAL-C6git_yh.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-l_SHib3p.js → chunk-STOXU5M4-AwEqcNnS.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BINu9tIm.js → chunk-TU62E6Q5-GKcRDmvw.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BQn-mvV5.js → chunk-X4PVCEUW-CMG5EfZ9.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-uvpAu0Ys.js → chunk-XXDRQBXY-BHd-dKtZ.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BIowooW1.js → classDiagram-v2-L25IHNXF-HaRsBCG9.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BTyx1Mh2.js → cose-bilkent-JH36ORCC-BPBTCfj3.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-D64EU9I0.js → cynefinDiagram-L36ESFBY-dAmWDtva.js} +1 -1
- package/dist/public/assets/{d3-selection-CN9k6_B9.js → d3-selection-BhemR5ul.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-FCbz2-Kk.js → dagre-SPEB5RXH-D93g6hNI.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-OhHUSI7j.js → diagram-3B7GL73J-FJBKgG3X.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-Be4xMtp6.js → diagram-DNEMPZML-BP22T976.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-CmKSs3aG.js → diagram-L3MUGCDN-DcrCJXRt.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-D1C32rMN.js → diagram-LA4NIPWU-DUgd3PHQ.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BjoE6JXs.js → diagram-MHCOC4E2-ejTInqzQ.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-B22k4v8R.js → diagram-XPFHEONP-BLjkgho1.js} +1 -1
- package/dist/public/assets/{dist-DcBP8Cf6.js → dist-C9xqTt0E.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-Tn-K8-X7.js → ebnfDiagram-UZSYDL2S-CB1QQ4_T.js} +1 -1
- package/dist/public/assets/{editor.api-Bz4sjRz_.js → editor.api-lz6I1oVk.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-COnQsWlN.js → elk-XV6XMXQE-CLBx1s2b.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-c53dJilq.js → erDiagram-EYBAPDEH-Dsj6RYi5.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-DaFpPPks.js → eventmodeling-K75KTNOO-smOORsSG.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +1 -0
- package/dist/public/assets/{freemarker2-BLxfRHsw.js → freemarker2-DrLPw7Mc.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Md-SavIS.js → ganttDiagram-23REXITY-BV9WK0rK.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CMSwTghO.js → gitGraphDiagram-STJD7YCW-CsSpSQ0T.js} +1 -1
- package/dist/public/assets/{handlebars-sNpu01kP.js → handlebars-CLx5-csF.js} +1 -1
- package/dist/public/assets/{html-C_tKd-uP.js → html-C9LmGm46.js} +1 -1
- package/dist/public/assets/{index-Bn86rI4n.js → index-CLWW0mVu.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CwgNj-7i.js → infoDiagram-KBXO4MBG-wm5AnXDz.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BSlzQNMN.js → ishikawaDiagram-M35NCXHK-BLUBDeS3.js} +1 -1
- package/dist/public/assets/{javascript-l3qKw0L-.js → javascript-C4S1eQb7.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-B09LPEnF.js → journeyDiagram-OPLOXDXO-DXc7-I_g.js} +1 -1
- package/dist/public/assets/{jsonMode-5SQQn1EX.js → jsonMode-lLJKR2M6.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BiW4aJ29.js → kanban-definition-BZKZHSQY-D5Ra4L_5.js} +1 -1
- package/dist/public/assets/{liquid-BGyTIIUt.js → liquid-DRlm-XZd.js} +1 -1
- package/dist/public/assets/{mdx-8tGjz4em.js → mdx-CzIqeqPy.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CctN5b0z.js → mermaid-parser.core-BIPB1BgS.js} +3 -3
- package/dist/public/assets/{mermaid.core-7ERSdZ4-.js → mermaid.core-DxBlQ6oF.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-D-GOUwW1.js → mindmap-definition-I2QAS2VK-BdupvuYr.js} +1 -1
- package/dist/public/assets/module-BPxWyxwR.js +2362 -0
- package/dist/public/assets/module-C_MSCGQC.js +1 -0
- package/dist/public/assets/{monaco-B_9hlk78.js → monaco-ChpJIYsY.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-Dmy1fWB3.js → pegDiagram-FD4XPPHP-C_GF7Fng.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CXFHLYTg.js → pieDiagram-J4AKIIQI-WlpNP-IM.js} +1 -1
- package/dist/public/assets/{python-e-JK0s5M.js → python-BJgFCfc8.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-RQvEpGWO.js → quadrantDiagram-XTYBLID2-CkCL5rJY.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CDOSPZwX.js → railroad-abnf-LNEFI6M7-DZZKUytl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js → railroad-ebnf-DWYD2UWJ-CS7KsJdb.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-B7NtVofS.js → railroad-peg-JR7BVNR7-CiukTZVd.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-DsDrT0Jf.js → railroadDiagram-MRQ6NCDL-BS0R_H3-.js} +1 -1
- package/dist/public/assets/{razor-DtSPwumi.js → razor-jcBIjr45.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BQh0hFuA.js → requirementDiagram-Y7LWUY3S-C0_T9jgl.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-BUXNAQEF.js → sankeyDiagram-WGJFYUXA-DF15sUfS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-05f-N5V_.js → sequenceDiagram-5NDRBG5M-7AkTLleX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js → stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DWhlPvKs.js → swimlanes-UMQ2AFYF-CR-ieLeo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-CMdocOui.js → timeline-definition-SEUHKTQE-DeM0Uekm.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +1 -0
- package/dist/public/assets/{typescript-65jNyipU.js → typescript-B7zp7QPf.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BQTHUX1f.js → usecaseDiagram-AFA6YXN4-D6rDIgdU.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-BULkVTfA.js → vennDiagram-NNMJR3RB-CncVDcMl.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-Cek6l8lz.js → wardleyDiagram-S7YFUSEH-DKPAMfTE.js} +1 -1
- package/dist/public/assets/{xml-DWBejfu-.js → xml-BJIgLD52.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-ujnZQTWA.js → xychartDiagram-GGNKY7IX-DmmXGebm.js} +1 -1
- package/dist/public/assets/{yaml-CwRCT7q1.js → yaml-Dxb2gmP5.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7767 -3392
- package/package.json +37 -31
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +0 -11
- package/dist/pi/packages/ta-cron/lib/composer.js +0 -58
- package/dist/pi/packages/ta-extensions/lib/composer.d.ts +0 -17
- package/dist/pi/packages/ta-extensions/lib/composer.js +0 -84
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +0 -9
- package/dist/pi/packages/ta-recall/lib/skill-card.js +0 -51
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +0 -19
- package/dist/pi/packages/ta-recall/lib/skill-util.js +0 -110
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dg54eFzZ.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +0 -1
- package/dist/public/assets/module-DEqsdd00.js +0 -1
- package/dist/public/assets/module-TWc52XwT.js +0 -2244
- package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-BjqLn4qm.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DWO6t_4C.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-D1XOJPWy.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CRn5uHsY.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-D09wHNzT.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-ChxAT7Fq.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +0 -1
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MembersView = MembersView;
|
|
4
|
+
const agents_view_1 = require("./agents-view");
|
|
4
5
|
const dialogs_1 = require("./dialogs");
|
|
6
|
+
const double_i18n_1 = require("./double-i18n");
|
|
7
|
+
const doubles_view_1 = require("./doubles-view");
|
|
8
|
+
const friends_view_1 = require("./friends-view");
|
|
5
9
|
const page_1 = require("./page");
|
|
6
10
|
// biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
|
|
7
11
|
const react_1 = require("./react");
|
|
8
12
|
const room_view_1 = require("./room-view");
|
|
9
13
|
function MemberRow({ room, member }) {
|
|
14
|
+
var _a;
|
|
10
15
|
const Remove = (0, page_1.icon)('X');
|
|
11
|
-
const
|
|
16
|
+
const Key = (_a = page_1.pi.ui.icons.KeyRound) !== null && _a !== void 0 ? _a : (0, page_1.icon)('Bot');
|
|
17
|
+
const may = (0, doubles_view_1.useMayLine)(member);
|
|
18
|
+
const { friends } = (0, page_1.useBook)();
|
|
19
|
+
const friend = friends === null || friends === void 0 ? void 0 : friends.find(each => each.id === member.id);
|
|
20
|
+
const Add = (0, page_1.icon)('UserPlus');
|
|
21
|
+
const tags = [
|
|
22
|
+
member.self ? (0, page_1.t)('you') : '',
|
|
23
|
+
member.owner ? (0, page_1.t)('owner') : '',
|
|
24
|
+
member.guest ? (0, page_1.t)('guestTag') : '',
|
|
25
|
+
(friend === null || friend === void 0 ? void 0 : friend.status) === 'friend' ? (0, page_1.t)('friendTag') : '',
|
|
26
|
+
].filter(Boolean);
|
|
12
27
|
return (react_1.React.createElement("li", { className: "trm-member" },
|
|
13
|
-
react_1.React.createElement(page_1.Face, { id: member.id, name: member.name, size:
|
|
28
|
+
react_1.React.createElement(page_1.Face, { id: member.id, name: member.name, size: 34, online: member.online }),
|
|
14
29
|
react_1.React.createElement("span", { className: "trm-member-text" },
|
|
15
30
|
react_1.React.createElement("span", { className: "trm-member-name" },
|
|
16
31
|
react_1.React.createElement("span", { className: "trm-ellipsis" }, member.name),
|
|
17
32
|
tags.map(tag => (react_1.React.createElement("span", { key: tag, className: "trm-tag" }, tag)))),
|
|
18
|
-
react_1.React.createElement("span", { className: `trm-member-detail${member.online ? ' trm-live' : ''}` }, member.online ? (0, page_1.t)('online') : (0, page_1.t)('offline'))
|
|
33
|
+
react_1.React.createElement("span", { className: `trm-member-detail${member.online ? ' trm-live' : ''}` }, member.online ? (0, page_1.t)('online') : (0, page_1.t)('offline')),
|
|
34
|
+
may && react_1.React.createElement("span", { className: "trm-member-detail trm-member-may trm-ellipsis" }, may)),
|
|
35
|
+
!member.self && !member.guest && !friend && (react_1.React.createElement("button", { type: "button", className: "trm-icon trm-member-action", title: (0, page_1.t)('friendOffer'), "aria-label": `${(0, page_1.t)('friendOffer')} · ${member.name}`, onClick: () => void (0, friends_view_1.offerFriend)(room.id, member.member, member.name) },
|
|
36
|
+
react_1.React.createElement(Add, { size: 15 }))),
|
|
37
|
+
!member.self && !member.guest && (react_1.React.createElement("button", { type: "button", className: `trm-icon trm-member-action${may ? ' trm-on-icon' : ''}`, title: (0, double_i18n_1.dt)('permissions'), "aria-label": (0, double_i18n_1.dt)('permissions'), onClick: () => (0, doubles_view_1.openGrant)(member) },
|
|
38
|
+
react_1.React.createElement(Key, { size: 15 }))),
|
|
19
39
|
room.owner && !member.self && (react_1.React.createElement("button", { type: "button", className: "trm-icon trm-danger trm-member-action", title: (0, page_1.t)('remove'), "aria-label": (0, page_1.t)('remove'), onClick: () => void (0, room_view_1.confirmThen)((0, page_1.t)('removeTitle', { name: member.name, title: room.title }), (0, page_1.t)('removeHint'), (0, page_1.t)('remove'), async () => { var _a; return (_a = (0, page_1.rooms)()) === null || _a === void 0 ? void 0 : _a.removeMember(room.id, member.member); }) },
|
|
20
40
|
react_1.React.createElement(Remove, { size: 15 })))));
|
|
21
41
|
}
|
|
@@ -29,15 +49,20 @@ function SettingRow({ label, value, onClick }) {
|
|
|
29
49
|
}
|
|
30
50
|
/** The members of the room shown, in the workbench, as a messenger shows the settings of a group. */
|
|
31
51
|
function MembersView() {
|
|
52
|
+
var _a;
|
|
32
53
|
const { identity } = (0, page_1.useBook)();
|
|
33
54
|
const room = (0, page_1.useOpened)();
|
|
34
55
|
const page = (0, page_1.usePageOf)(room !== null && room !== void 0 ? room : { view: undefined });
|
|
56
|
+
const agents = (0, page_1.useAgents)(room !== null && room !== void 0 ? room : { status: 'gone' });
|
|
57
|
+
const joining = (0, page_1.useJoining)(room !== null && room !== void 0 ? room : { id: '', status: 'gone', members: [] });
|
|
35
58
|
if (!room) {
|
|
36
59
|
return (react_1.React.createElement("div", { className: "trm-panel" },
|
|
37
60
|
react_1.React.createElement(page_1.pi.ui.Empty, { title: (0, page_1.t)('noRoomOpen') })));
|
|
38
61
|
}
|
|
39
62
|
const Plus = (0, page_1.icon)('Plus');
|
|
63
|
+
const Bot = (0, page_1.icon)('Bot');
|
|
40
64
|
const online = room.members.filter(member => member.online).length;
|
|
65
|
+
const self = (_a = room.members.find(member => member.self)) === null || _a === void 0 ? void 0 : _a.member;
|
|
41
66
|
return (react_1.React.createElement("div", { className: "trm-panel" },
|
|
42
67
|
react_1.React.createElement("div", { className: "trm-panel-scroll" },
|
|
43
68
|
react_1.React.createElement("div", { className: "trm-panel-top" },
|
|
@@ -55,6 +80,22 @@ function MembersView() {
|
|
|
55
80
|
react_1.React.createElement("span", { className: "trm-member-name" }, (0, page_1.t)('invite')),
|
|
56
81
|
react_1.React.createElement("span", { className: "trm-member-detail" }, (0, page_1.t)('inviteLine')))))),
|
|
57
82
|
room.members.map(member => (react_1.React.createElement(MemberRow, { key: member.member, room: room, member: member })))),
|
|
83
|
+
react_1.React.createElement("div", { className: "trm-panel-label" }, agents.length ? `${(0, double_i18n_1.dt)('agentsTitle')} · ${agents.length}` : (0, double_i18n_1.dt)('agentsTitle')),
|
|
84
|
+
react_1.React.createElement("ul", { className: "trm-panel-members" },
|
|
85
|
+
react_1.React.createElement("li", null,
|
|
86
|
+
react_1.React.createElement("button", { type: "button", className: "trm-member trm-member-add", onClick: () => (0, agents_view_1.openAgentPicker)(room) },
|
|
87
|
+
react_1.React.createElement("span", { className: "trm-member-plus" },
|
|
88
|
+
react_1.React.createElement(Bot, { size: 16 })),
|
|
89
|
+
react_1.React.createElement("span", { className: "trm-member-text" },
|
|
90
|
+
react_1.React.createElement("span", { className: "trm-member-name" }, (0, double_i18n_1.dt)('inviteAgent')),
|
|
91
|
+
react_1.React.createElement("span", { className: "trm-member-detail" }, (0, double_i18n_1.dt)('inviteAgentLine'))))),
|
|
92
|
+
agents.map(agent => (react_1.React.createElement(agents_view_1.AgentRow, { key: `${agent.member}/${agent.id}`, room: room, agent: agent }))),
|
|
93
|
+
joining
|
|
94
|
+
.filter(agent => !agents.some(each => each.id === agent.id && each.member === self))
|
|
95
|
+
.map(agent => (react_1.React.createElement(agents_view_1.JoiningRow, { key: `joining/${agent.id}`, agent: agent })))),
|
|
96
|
+
react_1.React.createElement("div", { className: "trm-panel-sep" }),
|
|
97
|
+
react_1.React.createElement(doubles_view_1.DoubleSwitch, { room: room }),
|
|
98
|
+
react_1.React.createElement(SettingRow, { label: (0, double_i18n_1.dt)('log'), onClick: () => void page_1.pi.ui.showView(doubles_view_1.DOUBLES_VIEW) }),
|
|
58
99
|
react_1.React.createElement("div", { className: "trm-panel-sep" }),
|
|
59
100
|
page && room.view && react_1.React.createElement(SettingRow, { label: (0, page_1.t)('openPage', { name: page.title }), onClick: () => void page_1.pi.ui.showView(room.view) }),
|
|
60
101
|
react_1.React.createElement(SettingRow, { label: (0, page_1.t)('me'), value: identity === null || identity === void 0 ? void 0 : identity.name, onClick: () => void (0, dialogs_1.rename)() })),
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import type { TaFriend, TaIdentity, TaRoomEvent, TaRoomInfo, TaRoomRequest } from '@celljs/ta-protocol';
|
|
1
|
+
import type { TaFriend, TaFriendRequest, TaIdentity, TaRoomEvent, TaRoomInfo, TaRoomRequest } from '@celljs/ta-protocol';
|
|
2
2
|
import { type RelayChatLine as ChatLine, RelayRoomChat as RoomChat } from '@celljs/ta-relay/lib/common/relay-room-chat';
|
|
3
3
|
import type { WebExtensionAPI, WebIcon, WebPageInfo, WebRooms } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
4
|
+
import { type RoomAgent, type RoomAgentIn, type RoomTaskState } from './double-protocol';
|
|
4
5
|
import { type Words } from './i18n';
|
|
5
6
|
/** The kind of the rooms made here: a group chat, which this page shows (room-view.tsx). */
|
|
6
7
|
export declare const ROOMS_KIND = "ta-rooms";
|
|
7
8
|
/** The page of the rooms (`ui.showView`). */
|
|
8
9
|
export declare const ROOMS_VIEW = "@celljs/ta-rooms/rooms";
|
|
10
|
+
/** The page of the user's friends (friends-view.tsx): the one place friends are added, answered and removed. */
|
|
11
|
+
export declare const FRIENDS_VIEW = "@celljs/ta-rooms/friends";
|
|
9
12
|
/** The members of the room shown, a tool of the workbench (members-view.tsx). */
|
|
10
13
|
export declare const MEMBERS_VIEW = "@celljs/ta-rooms/members";
|
|
11
|
-
/** What the page hears of the state of the rooms without their messages: what is said (chat.ts). */
|
|
14
|
+
/** What the page hears of the state of the rooms without their messages: what is said (chat.ts), the agents invited, how tasks go. */
|
|
12
15
|
export declare const CHAT_STATE: string[];
|
|
16
|
+
/** How the tasks handed in a room go, by the id of the line that handed each: as each member doing one says. */
|
|
17
|
+
export type RoomTaskStates = Readonly<Record<string, readonly (RoomTaskState & {
|
|
18
|
+
member: string;
|
|
19
|
+
})[]>>;
|
|
13
20
|
/** The API of the page, bound once by `activate`. */
|
|
14
21
|
export declare let pi: WebExtensionAPI;
|
|
15
22
|
export declare function bindPage(api: WebExtensionAPI): void;
|
|
@@ -25,8 +32,12 @@ export interface BookState {
|
|
|
25
32
|
rooms?: TaRoomInfo[];
|
|
26
33
|
requests: TaRoomRequest[];
|
|
27
34
|
friends?: TaFriend[];
|
|
35
|
+
/** Those asking the user to be friends. */
|
|
36
|
+
friendRequests: TaFriendRequest[];
|
|
28
37
|
/** The room the page shows, its chat. */
|
|
29
38
|
opened?: string;
|
|
39
|
+
/** It was opened from elsewhere (the double's home): on a phone, it alone, back going where the user came from. */
|
|
40
|
+
direct?: boolean;
|
|
30
41
|
/** When the user last saw what was said in each room, by its id (`pi.storage`). */
|
|
31
42
|
seen: Record<string, number>;
|
|
32
43
|
}
|
|
@@ -40,6 +51,24 @@ export declare class RoomBook {
|
|
|
40
51
|
protected state: BookState;
|
|
41
52
|
protected readonly listeners: Set<() => void>;
|
|
42
53
|
protected readonly chats: Map<string, RoomChat>;
|
|
54
|
+
/** The agents of each room read, by key of its state (RoomAgentsUtil), and listed. */
|
|
55
|
+
protected readonly agentStates: Map<string, Record<string, {
|
|
56
|
+
value: unknown;
|
|
57
|
+
by: string;
|
|
58
|
+
version: number;
|
|
59
|
+
}>>;
|
|
60
|
+
protected readonly agentLists: Map<string, readonly RoomAgentIn[]>;
|
|
61
|
+
/** How the tasks of each room go, by key of its state (RoomTasksUtil), and by line. */
|
|
62
|
+
protected readonly taskStates: Map<string, Record<string, {
|
|
63
|
+
value: unknown;
|
|
64
|
+
by: string;
|
|
65
|
+
version: number;
|
|
66
|
+
}>>;
|
|
67
|
+
protected readonly taskLists: Map<string, Readonly<Record<string, readonly (RoomTaskState & {
|
|
68
|
+
member: string;
|
|
69
|
+
})[]>>>;
|
|
70
|
+
/** The agents the user invites to each room, till they are in it. */
|
|
71
|
+
protected readonly joiningLists: Map<string, readonly RoomAgent[]>;
|
|
43
72
|
protected timer?: ReturnType<typeof setTimeout>;
|
|
44
73
|
protected loading?: Promise<void>;
|
|
45
74
|
protected again: boolean;
|
|
@@ -55,10 +84,38 @@ export declare class RoomBook {
|
|
|
55
84
|
set(partial: Partial<BookState>): void;
|
|
56
85
|
/** The chat of a room, read the first time it is asked for and kept as its state changes (`heard`). */
|
|
57
86
|
chat(room: string): RoomChat | undefined;
|
|
58
|
-
/**
|
|
87
|
+
/** The agents invited to a room, read the first time it is asked for and kept as its state changes. */
|
|
88
|
+
agents(room: string): readonly RoomAgentIn[];
|
|
89
|
+
/** How the tasks handed in a room go, read the first time it is asked for and kept as its state changes. */
|
|
90
|
+
tasks(room: string): RoomTaskStates;
|
|
91
|
+
/** The agents the user invites to a room, on their way in. */
|
|
92
|
+
joining(room: string): readonly RoomAgent[];
|
|
93
|
+
/** An agent the user invites is on its way into a room (`true`), or no more. */
|
|
94
|
+
setJoining(room: string, agent: RoomAgent, on: boolean): void;
|
|
95
|
+
/** The agents of the user in a room, as the server listed them on inviting one: shown before the room says so. */
|
|
96
|
+
putMine(room: string, member: string, agents: readonly RoomAgent[]): void;
|
|
97
|
+
/** What happened in a room: what was said goes to its chat, if it was read; who was invited, to its agents. */
|
|
59
98
|
heard(event: TaRoomEvent): void;
|
|
60
|
-
|
|
99
|
+
protected readTasks(room: string): void;
|
|
100
|
+
protected putTasks(room: string, state: Record<string, {
|
|
101
|
+
value: unknown;
|
|
102
|
+
by: string;
|
|
103
|
+
version: number;
|
|
104
|
+
}>): void;
|
|
105
|
+
protected readAgents(room: string): void;
|
|
106
|
+
protected putAgents(room: string, state: Record<string, {
|
|
107
|
+
value: unknown;
|
|
108
|
+
by: string;
|
|
109
|
+
version: number;
|
|
110
|
+
}>): void;
|
|
111
|
+
/**
|
|
112
|
+
* The user saw what was said in a room till `at`. Every page of the user writes what it saw: the value kept is
|
|
113
|
+
* read again and merged with it (RoomSeenUtil.merge), so that a room seen on the phone stays seen on the computer.
|
|
114
|
+
*/
|
|
61
115
|
see(room: string, at: number): void;
|
|
116
|
+
/** What this page saw merged into what is kept, written back when it adds something. */
|
|
117
|
+
protected keepSeen(): Promise<void>;
|
|
118
|
+
/** What the pages saw, read once and again as any of them writes it. */
|
|
62
119
|
protected readSeen(): void;
|
|
63
120
|
protected read(next: BookState): void;
|
|
64
121
|
}
|
|
@@ -66,10 +123,24 @@ export declare const book: RoomBook;
|
|
|
66
123
|
export declare function useBook(): BookState;
|
|
67
124
|
/** What was said in a room, as it changes; nothing for one not joined. */
|
|
68
125
|
export declare function useLines(room: TaRoomInfo): readonly ChatLine[];
|
|
126
|
+
/** How the tasks handed in a room go, as they change; none for one not joined. */
|
|
127
|
+
export declare function useTaskStates(room: TaRoomInfo): RoomTaskStates;
|
|
128
|
+
/** The agents invited to a room, as they come and go; none for one not joined. */
|
|
129
|
+
export declare function useAgents(room: TaRoomInfo): readonly RoomAgentIn[];
|
|
130
|
+
/** The agents the user invites to a room, till they said hello there. */
|
|
131
|
+
export declare function useJoining(room: TaRoomInfo): readonly RoomAgent[];
|
|
132
|
+
export declare namespace RoomSeenUtil {
|
|
133
|
+
function parse(value: unknown): Record<string, number>;
|
|
134
|
+
/** What two pages saw together: each room seen as late as either saw it. `a` itself when `b` adds nothing. */
|
|
135
|
+
function merge(a: Record<string, number>, b: Record<string, number>): Record<string, number>;
|
|
136
|
+
}
|
|
69
137
|
/** Said in a room by others since the user saw it last (or joined). */
|
|
70
138
|
export declare function unseen(room: TaRoomInfo, lines: readonly ChatLine[], seen: Record<string, number>): boolean;
|
|
71
|
-
/**
|
|
72
|
-
|
|
139
|
+
/**
|
|
140
|
+
* Shows a room: its chat, over the list on a phone, beside it elsewhere; `direct` from elsewhere than the list, on a phone
|
|
141
|
+
* without the list under it, so that back goes where the user came from.
|
|
142
|
+
*/
|
|
143
|
+
export declare function openRoom(id: string, direct?: boolean): void;
|
|
73
144
|
/** The room shown, while it is one the user is in. */
|
|
74
145
|
export declare function useOpened(): TaRoomInfo | undefined;
|
|
75
146
|
/** A phone, or a window as narrow: the list, and a room pushed over it, rather than the two side by side. */
|
|
@@ -86,20 +157,36 @@ export declare function when(at: number, now?: number): string;
|
|
|
86
157
|
/** One of the colours of the faces of the page (--ta-tint-<n>), the same for the same id. */
|
|
87
158
|
export declare function tint(id: string): number;
|
|
88
159
|
export declare function initial(name: string): string;
|
|
89
|
-
/** A
|
|
90
|
-
export declare function Face({ id, name, size, online }: {
|
|
160
|
+
/** A face of one of the rooms, as the agents of channels have (`ui.Face`); a letter in a circle in an app of before. */
|
|
161
|
+
export declare function Face({ id, name, size, online, face }: {
|
|
91
162
|
id: string;
|
|
92
163
|
name: string;
|
|
93
164
|
size?: number;
|
|
94
165
|
online?: boolean;
|
|
166
|
+
face?: number;
|
|
95
167
|
}): import("react").JSX.Element;
|
|
96
168
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
169
|
+
* Those a room is drawn by, as a channel by its members: the others first, its owner in front, then the agents in it, then
|
|
170
|
+
* the user, so that a room of two (the user and an agent) shows both; the user alone in a room of its own.
|
|
171
|
+
*/
|
|
172
|
+
export declare function faceMembers(room: TaRoomInfo, agents?: readonly RoomAgentIn[]): {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
face?: number;
|
|
176
|
+
}[];
|
|
177
|
+
/**
|
|
178
|
+
* The face of a room, as a channel is drawn (`ui.GroupFace`): two of those in it, one in front of the other; the icon
|
|
179
|
+
* of the page of its game at a corner; an amber dot for what the user has not read.
|
|
99
180
|
*/
|
|
100
181
|
export declare function RoomFace({ room, size, unread }: {
|
|
101
182
|
room: TaRoomInfo;
|
|
102
183
|
size?: number;
|
|
103
184
|
unread?: boolean;
|
|
104
185
|
}): import("react").JSX.Element;
|
|
186
|
+
/** The faces of those in a room, up to five, as the head of a channel shows them; the button shows its members. */
|
|
187
|
+
export declare function MemberFaces({ room, onClick, shown }: {
|
|
188
|
+
room: TaRoomInfo;
|
|
189
|
+
onClick(): void;
|
|
190
|
+
shown: boolean;
|
|
191
|
+
}): import("react").JSX.Element;
|
|
105
192
|
//# sourceMappingURL=page.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.book = exports.RoomBook = exports.pi = exports.CHAT_STATE = exports.MEMBERS_VIEW = exports.ROOMS_VIEW = exports.ROOMS_KIND = void 0;
|
|
3
|
+
exports.RoomSeenUtil = exports.book = exports.RoomBook = exports.pi = exports.CHAT_STATE = exports.MEMBERS_VIEW = exports.FRIENDS_VIEW = exports.ROOMS_VIEW = exports.ROOMS_KIND = void 0;
|
|
4
4
|
exports.bindPage = bindPage;
|
|
5
5
|
exports.t = t;
|
|
6
6
|
exports.icon = icon;
|
|
@@ -8,6 +8,9 @@ exports.message = message;
|
|
|
8
8
|
exports.rooms = rooms;
|
|
9
9
|
exports.useBook = useBook;
|
|
10
10
|
exports.useLines = useLines;
|
|
11
|
+
exports.useTaskStates = useTaskStates;
|
|
12
|
+
exports.useAgents = useAgents;
|
|
13
|
+
exports.useJoining = useJoining;
|
|
11
14
|
exports.unseen = unseen;
|
|
12
15
|
exports.openRoom = openRoom;
|
|
13
16
|
exports.useOpened = useOpened;
|
|
@@ -18,18 +21,23 @@ exports.when = when;
|
|
|
18
21
|
exports.tint = tint;
|
|
19
22
|
exports.initial = initial;
|
|
20
23
|
exports.Face = Face;
|
|
24
|
+
exports.faceMembers = faceMembers;
|
|
21
25
|
exports.RoomFace = RoomFace;
|
|
26
|
+
exports.MemberFaces = MemberFaces;
|
|
22
27
|
const relay_room_chat_1 = require("@celljs/ta-relay/lib/common/relay-room-chat");
|
|
28
|
+
const double_protocol_1 = require("./double-protocol");
|
|
23
29
|
const i18n_1 = require("./i18n");
|
|
24
30
|
const react_1 = require("./react");
|
|
25
31
|
/** The kind of the rooms made here: a group chat, which this page shows (room-view.tsx). */
|
|
26
32
|
exports.ROOMS_KIND = 'ta-rooms';
|
|
27
33
|
/** The page of the rooms (`ui.showView`). */
|
|
28
34
|
exports.ROOMS_VIEW = '@celljs/ta-rooms/rooms';
|
|
35
|
+
/** The page of the user's friends (friends-view.tsx): the one place friends are added, answered and removed. */
|
|
36
|
+
exports.FRIENDS_VIEW = '@celljs/ta-rooms/friends';
|
|
29
37
|
/** The members of the room shown, a tool of the workbench (members-view.tsx). */
|
|
30
38
|
exports.MEMBERS_VIEW = '@celljs/ta-rooms/members';
|
|
31
|
-
/** What the page hears of the state of the rooms without their messages: what is said (chat.ts). */
|
|
32
|
-
exports.CHAT_STATE = ['chat:'];
|
|
39
|
+
/** What the page hears of the state of the rooms without their messages: what is said (chat.ts), the agents invited, how tasks go. */
|
|
40
|
+
exports.CHAT_STATE = ['chat:', double_protocol_1.ROOM_AGENTS_KEY, double_protocol_1.ROOM_TASKS_KEY];
|
|
33
41
|
const SEEN_KEY = 'seen';
|
|
34
42
|
function bindPage(api) {
|
|
35
43
|
exports.pi = api;
|
|
@@ -52,9 +60,17 @@ function rooms() {
|
|
|
52
60
|
/** What the page shows of the rooms: read again, at most a few times a second, when the server says they changed. */
|
|
53
61
|
class RoomBook {
|
|
54
62
|
constructor() {
|
|
55
|
-
this.state = { requests: [], seen: {} };
|
|
63
|
+
this.state = { requests: [], friendRequests: [], seen: {} };
|
|
56
64
|
this.listeners = new Set();
|
|
57
65
|
this.chats = new Map();
|
|
66
|
+
/** The agents of each room read, by key of its state (RoomAgentsUtil), and listed. */
|
|
67
|
+
this.agentStates = new Map();
|
|
68
|
+
this.agentLists = new Map();
|
|
69
|
+
/** How the tasks of each room go, by key of its state (RoomTasksUtil), and by line. */
|
|
70
|
+
this.taskStates = new Map();
|
|
71
|
+
this.taskLists = new Map();
|
|
72
|
+
/** The agents the user invites to each room, till they are in it. */
|
|
73
|
+
this.joiningLists = new Map();
|
|
58
74
|
this.again = false;
|
|
59
75
|
this.seenRead = false;
|
|
60
76
|
}
|
|
@@ -73,17 +89,24 @@ class RoomBook {
|
|
|
73
89
|
}
|
|
74
90
|
const server = rooms();
|
|
75
91
|
if (!server) {
|
|
76
|
-
this.set({ rooms: [], friends: [] });
|
|
92
|
+
this.set({ rooms: [], friends: [], friendRequests: [] });
|
|
77
93
|
return Promise.resolve();
|
|
78
94
|
}
|
|
79
95
|
this.readSeen();
|
|
80
96
|
this.loading = Promise.all([
|
|
81
97
|
server.getIdentity().catch(() => this.state.identity),
|
|
82
|
-
server.listRooms().catch(() =>
|
|
98
|
+
server.listRooms().catch(() => undefined),
|
|
83
99
|
server.listRequests().catch(() => this.state.requests),
|
|
84
100
|
server.listFriends().catch(() => { var _a; return (_a = this.state.friends) !== null && _a !== void 0 ? _a : []; }),
|
|
101
|
+
server.listFriendRequests ? server.listFriendRequests().catch(() => this.state.friendRequests) : Promise.resolve([]),
|
|
85
102
|
])
|
|
86
|
-
.then(([identity,
|
|
103
|
+
.then(([identity, all, requests, friends, friendRequests]) => {
|
|
104
|
+
var _a;
|
|
105
|
+
// A room an extension keeps for itself (the user's computers) is none of this page's, nor who asks to join it.
|
|
106
|
+
const unlisted = new Set((all !== null && all !== void 0 ? all : []).filter(room => room.unlisted).map(room => room.id));
|
|
107
|
+
const list = all ? all.filter(room => !unlisted.has(room.id)) : ((_a = this.state.rooms) !== null && _a !== void 0 ? _a : []);
|
|
108
|
+
this.read({ ...this.state, identity, rooms: list, requests: requests.filter(request => !unlisted.has(request.room)), friends, friendRequests });
|
|
109
|
+
})
|
|
87
110
|
.finally(() => {
|
|
88
111
|
this.loading = undefined;
|
|
89
112
|
if (this.again) {
|
|
@@ -101,6 +124,12 @@ class RoomBook {
|
|
|
101
124
|
for (const chat of this.chats.values()) {
|
|
102
125
|
void chat.load().catch(() => undefined);
|
|
103
126
|
}
|
|
127
|
+
for (const room of this.agentStates.keys()) {
|
|
128
|
+
this.readAgents(room);
|
|
129
|
+
}
|
|
130
|
+
for (const room of this.taskStates.keys()) {
|
|
131
|
+
this.readTasks(room);
|
|
132
|
+
}
|
|
104
133
|
}, 300);
|
|
105
134
|
}
|
|
106
135
|
set(partial) {
|
|
@@ -123,37 +152,130 @@ class RoomBook {
|
|
|
123
152
|
}
|
|
124
153
|
return chat;
|
|
125
154
|
}
|
|
126
|
-
/**
|
|
155
|
+
/** The agents invited to a room, read the first time it is asked for and kept as its state changes. */
|
|
156
|
+
agents(room) {
|
|
157
|
+
var _a;
|
|
158
|
+
if (!this.agentStates.has(room)) {
|
|
159
|
+
this.agentStates.set(room, {});
|
|
160
|
+
this.readAgents(room);
|
|
161
|
+
}
|
|
162
|
+
return (_a = this.agentLists.get(room)) !== null && _a !== void 0 ? _a : NO_AGENTS;
|
|
163
|
+
}
|
|
164
|
+
/** How the tasks handed in a room go, read the first time it is asked for and kept as its state changes. */
|
|
165
|
+
tasks(room) {
|
|
166
|
+
var _a;
|
|
167
|
+
if (!this.taskStates.has(room)) {
|
|
168
|
+
this.taskStates.set(room, {});
|
|
169
|
+
this.readTasks(room);
|
|
170
|
+
}
|
|
171
|
+
return (_a = this.taskLists.get(room)) !== null && _a !== void 0 ? _a : NO_TASKS;
|
|
172
|
+
}
|
|
173
|
+
/** The agents the user invites to a room, on their way in. */
|
|
174
|
+
joining(room) {
|
|
175
|
+
var _a;
|
|
176
|
+
return (_a = this.joiningLists.get(room)) !== null && _a !== void 0 ? _a : NO_JOINING;
|
|
177
|
+
}
|
|
178
|
+
/** An agent the user invites is on its way into a room (`true`), or no more. */
|
|
179
|
+
setJoining(room, agent, on) {
|
|
180
|
+
const others = this.joining(room).filter(each => each.id !== agent.id);
|
|
181
|
+
this.joiningLists.set(room, on ? [...others, agent] : others);
|
|
182
|
+
this.set({});
|
|
183
|
+
}
|
|
184
|
+
/** The agents of the user in a room, as the server listed them on inviting one: shown before the room says so. */
|
|
185
|
+
putMine(room, member, agents) {
|
|
186
|
+
var _a;
|
|
187
|
+
var _b;
|
|
188
|
+
const known = this.agentStates.get(room);
|
|
189
|
+
if (!known) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
const key = double_protocol_1.RoomAgentsUtil.key(member);
|
|
193
|
+
this.putAgents(room, { ...known, [key]: { value: agents, by: member, version: (_b = (_a = known[key]) === null || _a === void 0 ? void 0 : _a.version) !== null && _b !== void 0 ? _b : 0 } });
|
|
194
|
+
}
|
|
195
|
+
/** What happened in a room: what was said goes to its chat, if it was read; who was invited, to its agents. */
|
|
127
196
|
heard(event) {
|
|
197
|
+
var _a, _b, _c;
|
|
198
|
+
var _d, _e;
|
|
199
|
+
if (event.type !== 'state') {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
(_a = this.chats.get(event.room)) === null || _a === void 0 ? void 0 : _a.heard(event.key, event);
|
|
203
|
+
const known = this.agentStates.get(event.room);
|
|
204
|
+
if (known && event.key.startsWith(double_protocol_1.ROOM_AGENTS_KEY) && ((_d = (_b = known[event.key]) === null || _b === void 0 ? void 0 : _b.version) !== null && _d !== void 0 ? _d : 0) < event.version) {
|
|
205
|
+
this.putAgents(event.room, { ...known, [event.key]: event });
|
|
206
|
+
}
|
|
207
|
+
const tasks = this.taskStates.get(event.room);
|
|
208
|
+
if (tasks && event.key.startsWith(double_protocol_1.ROOM_TASKS_KEY) && ((_e = (_c = tasks[event.key]) === null || _c === void 0 ? void 0 : _c.version) !== null && _e !== void 0 ? _e : 0) < event.version) {
|
|
209
|
+
this.putTasks(event.room, { ...tasks, [event.key]: event });
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
readTasks(room) {
|
|
128
213
|
var _a;
|
|
129
|
-
|
|
130
|
-
|
|
214
|
+
void ((_a = rooms()) === null || _a === void 0 ? void 0 : _a.getState(room, double_protocol_1.ROOM_TASKS_KEY).then(state => this.putTasks(room, state)).catch(() => undefined));
|
|
215
|
+
}
|
|
216
|
+
putTasks(room, state) {
|
|
217
|
+
var _a;
|
|
218
|
+
this.taskStates.set(room, state);
|
|
219
|
+
const lines = {};
|
|
220
|
+
for (const [key, value] of Object.entries(state)) {
|
|
221
|
+
const member = key.slice(double_protocol_1.ROOM_TASKS_KEY.length);
|
|
222
|
+
for (const [id, task] of Object.entries(double_protocol_1.RoomTasksUtil.of(member, value.value, value.by))) {
|
|
223
|
+
lines[id] = [...((_a = lines[id]) !== null && _a !== void 0 ? _a : []), { ...task, member }];
|
|
224
|
+
}
|
|
131
225
|
}
|
|
226
|
+
this.taskLists.set(room, lines);
|
|
227
|
+
this.set({});
|
|
132
228
|
}
|
|
133
|
-
|
|
229
|
+
readAgents(room) {
|
|
230
|
+
var _a;
|
|
231
|
+
void ((_a = rooms()) === null || _a === void 0 ? void 0 : _a.getState(room, double_protocol_1.ROOM_AGENTS_KEY).then(state => this.putAgents(room, state)).catch(() => undefined));
|
|
232
|
+
}
|
|
233
|
+
putAgents(room, state) {
|
|
234
|
+
this.agentStates.set(room, state);
|
|
235
|
+
this.agentLists.set(room, double_protocol_1.RoomAgentsUtil.of(state));
|
|
236
|
+
this.set({});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* The user saw what was said in a room till `at`. Every page of the user writes what it saw: the value kept is
|
|
240
|
+
* read again and merged with it (RoomSeenUtil.merge), so that a room seen on the phone stays seen on the computer.
|
|
241
|
+
*/
|
|
134
242
|
see(room, at) {
|
|
135
243
|
var _a;
|
|
136
|
-
|
|
137
|
-
if (((_b = this.state.seen[room]) !== null && _b !== void 0 ? _b : 0) >= at) {
|
|
244
|
+
if (((_a = this.state.seen[room]) !== null && _a !== void 0 ? _a : 0) >= at) {
|
|
138
245
|
return;
|
|
139
246
|
}
|
|
140
|
-
|
|
141
|
-
this.
|
|
142
|
-
void ((_a = exports.pi.storage) === null || _a === void 0 ? void 0 : _a.set(SEEN_KEY, seen).catch(() => undefined));
|
|
247
|
+
this.set({ seen: { ...this.state.seen, [room]: at } });
|
|
248
|
+
void this.keepSeen();
|
|
143
249
|
}
|
|
250
|
+
/** What this page saw merged into what is kept, written back when it adds something. */
|
|
251
|
+
async keepSeen() {
|
|
252
|
+
const storage = exports.pi.storage;
|
|
253
|
+
if (!storage) {
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
try {
|
|
257
|
+
const kept = RoomSeenUtil.parse(await storage.get(SEEN_KEY));
|
|
258
|
+
const local = this.state.seen;
|
|
259
|
+
const seen = RoomSeenUtil.merge(local, kept);
|
|
260
|
+
if (seen !== local) {
|
|
261
|
+
this.set({ seen });
|
|
262
|
+
}
|
|
263
|
+
if (RoomSeenUtil.merge(kept, local) !== kept) {
|
|
264
|
+
await storage.set(SEEN_KEY, seen);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
catch (_a) {
|
|
268
|
+
// Kept again with the next room seen.
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
/** What the pages saw, read once and again as any of them writes it. */
|
|
144
272
|
readSeen() {
|
|
145
273
|
if (this.seenRead || !exports.pi.storage) {
|
|
146
274
|
return;
|
|
147
275
|
}
|
|
148
276
|
this.seenRead = true;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.then(seen => {
|
|
152
|
-
if (seen && typeof seen === 'object') {
|
|
153
|
-
this.set({ seen: { ...seen, ...this.state.seen } });
|
|
154
|
-
}
|
|
155
|
-
})
|
|
156
|
-
.catch(() => undefined);
|
|
277
|
+
exports.pi.storage.onChange(keys => keys.includes(SEEN_KEY) && void this.keepSeen());
|
|
278
|
+
void this.keepSeen();
|
|
157
279
|
}
|
|
158
280
|
read(next) {
|
|
159
281
|
var _a;
|
|
@@ -179,12 +301,44 @@ function useBook() {
|
|
|
179
301
|
return state;
|
|
180
302
|
}
|
|
181
303
|
const NO_LINES = [];
|
|
304
|
+
const NO_AGENTS = [];
|
|
305
|
+
const NO_JOINING = [];
|
|
306
|
+
const NO_TASKS = {};
|
|
182
307
|
const NO_STOP = () => undefined;
|
|
183
308
|
/** What was said in a room, as it changes; nothing for one not joined. */
|
|
184
309
|
function useLines(room) {
|
|
185
310
|
const chat = room.status === 'member' ? exports.book.chat(room.id) : undefined;
|
|
186
311
|
return react_1.React.useSyncExternalStore(listener => { var _a; return (_a = chat === null || chat === void 0 ? void 0 : chat.subscribe(listener)) !== null && _a !== void 0 ? _a : NO_STOP; }, () => { var _a; return (_a = chat === null || chat === void 0 ? void 0 : chat.lines) !== null && _a !== void 0 ? _a : NO_LINES; });
|
|
187
312
|
}
|
|
313
|
+
/** How the tasks handed in a room go, as they change; none for one not joined. */
|
|
314
|
+
function useTaskStates(room) {
|
|
315
|
+
const member = room.status === 'member';
|
|
316
|
+
return react_1.React.useSyncExternalStore(listener => exports.book.subscribe(listener), () => (member ? exports.book.tasks(room.id) : NO_TASKS));
|
|
317
|
+
}
|
|
318
|
+
/** The agents invited to a room, as they come and go; none for one not joined. */
|
|
319
|
+
function useAgents(room) {
|
|
320
|
+
const member = room.status === 'member';
|
|
321
|
+
return react_1.React.useSyncExternalStore(listener => exports.book.subscribe(listener), () => (member ? exports.book.agents(room.id) : NO_AGENTS));
|
|
322
|
+
}
|
|
323
|
+
/** The agents the user invites to a room, till they said hello there. */
|
|
324
|
+
function useJoining(room) {
|
|
325
|
+
return react_1.React.useSyncExternalStore(listener => exports.book.subscribe(listener), () => exports.book.joining(room.id));
|
|
326
|
+
}
|
|
327
|
+
var RoomSeenUtil;
|
|
328
|
+
(function (RoomSeenUtil) {
|
|
329
|
+
function parse(value) {
|
|
330
|
+
return value && typeof value === 'object'
|
|
331
|
+
? Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === 'number'))
|
|
332
|
+
: {};
|
|
333
|
+
}
|
|
334
|
+
RoomSeenUtil.parse = parse;
|
|
335
|
+
/** What two pages saw together: each room seen as late as either saw it. `a` itself when `b` adds nothing. */
|
|
336
|
+
function merge(a, b) {
|
|
337
|
+
const later = Object.entries(b).filter(([room, at]) => { var _a; return at > ((_a = a[room]) !== null && _a !== void 0 ? _a : 0); });
|
|
338
|
+
return later.length ? { ...a, ...Object.fromEntries(later) } : a;
|
|
339
|
+
}
|
|
340
|
+
RoomSeenUtil.merge = merge;
|
|
341
|
+
})(RoomSeenUtil || (exports.RoomSeenUtil = RoomSeenUtil = {}));
|
|
188
342
|
/** Said in a room by others since the user saw it last (or joined). */
|
|
189
343
|
function unseen(room, lines, seen) {
|
|
190
344
|
var _a;
|
|
@@ -194,9 +348,12 @@ function unseen(room, lines, seen) {
|
|
|
194
348
|
const last = lines[lines.length - 1];
|
|
195
349
|
return !!last && last.at > since && last.from !== self;
|
|
196
350
|
}
|
|
197
|
-
/**
|
|
198
|
-
|
|
199
|
-
|
|
351
|
+
/**
|
|
352
|
+
* Shows a room: its chat, over the list on a phone, beside it elsewhere; `direct` from elsewhere than the list, on a phone
|
|
353
|
+
* without the list under it, so that back goes where the user came from.
|
|
354
|
+
*/
|
|
355
|
+
function openRoom(id, direct = false) {
|
|
356
|
+
exports.book.set({ opened: id, direct });
|
|
200
357
|
void exports.pi.ui.showView(exports.ROOMS_VIEW);
|
|
201
358
|
}
|
|
202
359
|
/** The room shown, while it is one the user is in. */
|
|
@@ -272,35 +429,56 @@ function initial(name) {
|
|
|
272
429
|
var _b;
|
|
273
430
|
return (_b = (_a = Array.from(name.trim())[0]) === null || _a === void 0 ? void 0 : _a.toUpperCase()) !== null && _b !== void 0 ? _b : '?';
|
|
274
431
|
}
|
|
275
|
-
/** A
|
|
276
|
-
function Face({ id, name, size = 34, online }) {
|
|
432
|
+
/** A face of one of the rooms, as the agents of channels have (`ui.Face`); a letter in a circle in an app of before. */
|
|
433
|
+
function Face({ id, name, size = 34, online, face }) {
|
|
434
|
+
if (exports.pi.ui.Face) {
|
|
435
|
+
return react_1.React.createElement(exports.pi.ui.Face, { seed: id, face: face, size: size, online: online });
|
|
436
|
+
}
|
|
277
437
|
const n = tint(id);
|
|
278
438
|
return (react_1.React.createElement("span", { className: "trm-face", "aria-hidden": "true", style: { width: size, height: size, fontSize: Math.round(size * 0.42), background: `var(--ta-tint-${n})`, color: `var(--ta-tint-ink-${n})` } },
|
|
279
439
|
initial(name),
|
|
280
440
|
online !== undefined && react_1.React.createElement("i", { className: online ? 'trm-on' : 'trm-off' })));
|
|
281
441
|
}
|
|
282
442
|
/**
|
|
283
|
-
*
|
|
284
|
-
*
|
|
443
|
+
* Those a room is drawn by, as a channel by its members: the others first, its owner in front, then the agents in it, then
|
|
444
|
+
* the user, so that a room of two (the user and an agent) shows both; the user alone in a room of its own.
|
|
445
|
+
*/
|
|
446
|
+
function faceMembers(room, agents = []) {
|
|
447
|
+
const others = room.members.filter(member => !member.self).sort((a, b) => Number(b.owner) - Number(a.owner));
|
|
448
|
+
const all = [...others, ...agents, ...room.members.filter(member => member.self)];
|
|
449
|
+
return all.length ? all : [{ id: room.owner ? room.id : room.ownerName || room.id, name: room.ownerName || room.title }];
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* The face of a room, as a channel is drawn (`ui.GroupFace`): two of those in it, one in front of the other; the icon
|
|
453
|
+
* of the page of its game at a corner; an amber dot for what the user has not read.
|
|
285
454
|
*/
|
|
286
|
-
function RoomFace({ room, size =
|
|
455
|
+
function RoomFace({ room, size = 40, unread }) {
|
|
456
|
+
var _a, _b, _c;
|
|
457
|
+
var _d, _e;
|
|
287
458
|
const page = usePageOf(room);
|
|
288
|
-
const members = room.members.length ? room.members.slice(0, 4) : [{ member: room.id, id: room.id, name: room.title }];
|
|
289
459
|
const Mark = page === null || page === void 0 ? void 0 : page.icon;
|
|
290
|
-
const
|
|
291
|
-
return (react_1.React.createElement("span", { className: "trm-room-face",
|
|
292
|
-
members.map(member => {
|
|
293
|
-
const n = tint(member.id);
|
|
294
|
-
return (react_1.React.createElement("span", { key: member.member, className: "trm-room-face-cell", style: {
|
|
295
|
-
width: cell,
|
|
296
|
-
height: cell,
|
|
297
|
-
fontSize: Math.round(cell * 0.5),
|
|
298
|
-
background: `var(--ta-tint-${n})`,
|
|
299
|
-
color: `var(--ta-tint-ink-${n})`,
|
|
300
|
-
} }, initial(member.name)));
|
|
301
|
-
}),
|
|
460
|
+
const members = faceMembers(room, useAgents(room));
|
|
461
|
+
return (react_1.React.createElement("span", { className: "trm-room-face", style: { width: size, height: size }, "aria-hidden": "true" },
|
|
462
|
+
exports.pi.ui.GroupFace ? (react_1.React.createElement(exports.pi.ui.GroupFace, { members: members.map(member => ({ seed: member.id, face: member.face })), size: size })) : (react_1.React.createElement(Face, { id: (_d = (_a = members[0]) === null || _a === void 0 ? void 0 : _a.id) !== null && _d !== void 0 ? _d : room.id, name: (_e = (_b = members[0]) === null || _b === void 0 ? void 0 : _b.name) !== null && _e !== void 0 ? _e : room.title, face: (_c = members[0]) === null || _c === void 0 ? void 0 : _c.face, size: size })),
|
|
302
463
|
Mark && (react_1.React.createElement("span", { className: "trm-room-face-mark" },
|
|
303
464
|
react_1.React.createElement(Mark, { size: 11, strokeWidth: 2.4 }))),
|
|
304
465
|
unread && react_1.React.createElement("i", { className: "trm-unread" })));
|
|
305
466
|
}
|
|
467
|
+
/** The faces of those in a room, up to five, as the head of a channel shows them; the button shows its members. */
|
|
468
|
+
function MemberFaces({ room, onClick, shown }) {
|
|
469
|
+
const agents = useAgents(room);
|
|
470
|
+
// The people, its owner first, then the agents in it: all who speak there.
|
|
471
|
+
const members = [
|
|
472
|
+
...[...room.members]
|
|
473
|
+
.sort((a, b) => Number(b.owner) - Number(a.owner))
|
|
474
|
+
.map(member => ({ key: member.member, id: member.id, name: member.name, face: undefined })),
|
|
475
|
+
...agents.map(agent => ({ key: `${agent.member}/${agent.id}`, id: agent.id, name: agent.name, face: agent.face })),
|
|
476
|
+
];
|
|
477
|
+
return (react_1.React.createElement("button", { type: "button", className: `trm-faces${shown ? ' trm-on-icon' : ''}`, title: t('members'), "aria-label": t('members'), "aria-pressed": shown, onClick: onClick },
|
|
478
|
+
members.slice(0, 5).map(member => (react_1.React.createElement("span", { key: member.key, className: "trm-faces-one" },
|
|
479
|
+
react_1.React.createElement(Face, { id: member.id, name: member.name, face: member.face, size: 24 })))),
|
|
480
|
+
members.length > 5 && react_1.React.createElement("span", { className: "trm-faces-more" },
|
|
481
|
+
"+",
|
|
482
|
+
members.length - 5)));
|
|
483
|
+
}
|
|
306
484
|
//# sourceMappingURL=page.js.map
|