@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,33 @@
|
|
|
1
|
+
# Cell - Ta Nearby
|
|
2
|
+
|
|
3
|
+
A pi package that comes with Ta (on by default, turned off in Settings → Extensions): Nearby of Ta. Design record: [docs/design/ta-nearby.md](../../docs/design/ta-nearby.md).
|
|
4
|
+
|
|
5
|
+
Not a list of strangers by distance, but Ta knowing who you are with now, and using it to get things done:
|
|
6
|
+
|
|
7
|
+
- **The Nearby page** (Discover → Nearby): off by default. Turned on for a while (an hour, today, until you turn it off), the Ta on the same network that turned it on too show here, your Ta friends marked, the others as Nearby (their name is only what they say). Pick some and tap Make a room together: Ta makes a room and invites them. You see the others only while you are visible yourself.
|
|
8
|
+
- **The double's home**: while Nearby is on, a row Nearby under the double (who is around, how long it stays on), an amber dot for an invitation.
|
|
9
|
+
- **Invitations**: when someone nearby invites you, a dialog asks (a notice when no page is open); Join takes you into the room, without the other asking to let you in again: they picked you. The room is an ordinary room: its chat, doubles to @ and tasks to hand.
|
|
10
|
+
- **Ta knows**: while Nearby is on, your own conversations (not those with others) have a `<ta-nearby>` section saying who is around. Say "make a room and send today's notes to those nearby" and Ta uses `nearby_room` (you confirm whom it invites, every time), then the tools of rooms to send the notes and hand work. `nearby_list` lists who is around.
|
|
11
|
+
- **Ta proposes**: with Nearby on and two Ta or more around for over 5 minutes (a meeting, likely), Suggestions has "Make a room with the N Ta nearby" (the kind `nearby.room`, at most Ask me); OK makes it and invites those there then. Once in two hours at most.
|
|
12
|
+
- **Codes**: an office Wi-Fi often keeps devices apart, so that they do not see each other on the same network. Then one taps Get a code on the Nearby page, six digits (others may come in for 10 minutes; those in stay), the others tap Enter a code, and all show in each other's Nearby, as WeChat's face-to-face groups. Rooms and invitations go on the same way.
|
|
13
|
+
- **Showing on a screen nearby**: say "put this report on the meeting room's screen" and Ta sends the file (HTML, Markdown, an image, text; 600 KB at most) or some Markdown to that computer with `nearby_show`. It does as its settings say: asks first ("Ann wants to show the Q4 report on this computer"), shows it full screen at once, or takes nothing. HTML runs in a sandboxed iframe; what is shown is only in the memory and the page over there, gone once closed.
|
|
14
|
+
- **Asking a Ta nearby to work**: with "Those nearby may ask my Ta to work" on, the Ta of others know they may make a room with you and hand your double a task; working in a folder still needs your permission each time, as in rooms.
|
|
15
|
+
- **Meeting people nearby** (off by default): turn on "Open to meet people nearby" and write a card (what you work on in a sentence, topics, what you look for, what you can help with; Let Ta draft it has Ta write one in a conversation from what it knows of you, used only once you tap Use this card). Two Ta open to meet exchange cards and compare them on the computer, with no model: what you look for is what they offer, or two topics or more in common, else there is no reason. Then Suggestions has "Someone nearby may help you: say hello?" (`nearby.meet`, at most Ask me, 3 a day, the same card not again for 30 days). OK, and they see "Ann would like to meet you" with the reason (`nearby.greet`, also on the Nearby page and the double's home); Say hello, and the two Ta make a room of the two, which they come into at once. If they leave it or tap Not now, you see nothing. There is no list of cards to browse.
|
|
16
|
+
- **Settings → Nearby**: Show my name nearby (off, others see "a user of Ta", while your Ta friends still know you); Those nearby may show things here: No / Ask me (the default) / At once (a screen of a meeting room, with nobody at it); Those nearby may ask my Ta to work (off by default); Open to meet people nearby, and Your card.
|
|
17
|
+
|
|
18
|
+
## How it finds, how it protects
|
|
19
|
+
|
|
20
|
+
- While on, the Ta service broadcasts a UDP message to its networks every 3 seconds (port 47232; `TA_NEARBY_PORT` for tests) and listens on that port. It says only: a temporary id and a temporary ECDH public key (another every 15 minutes), the name shown, the number of a face, the port and addresses of the sealed channel, and a mark for friends. Never the identity's id.
|
|
21
|
+
- The mark is the first 12 bytes of `HMAC-SHA256(identity id, slot of 15 minutes)`: only a Ta that was in a room with you, and so knows your identity's id, knows you by it. Your other computer (an identity shared) does not show as nearby.
|
|
22
|
+
- Invitations, joins and refusals go over the sealed channel: a line over TCP sealed with AES-256-GCM, its key agreed between the two temporary keys; only from a Ta heard, its key the one it broadcast; messages more than 5 minutes off are dropped.
|
|
23
|
+
- Only the identity invited that said Join is let in at once; a friend known by its mark only as that friend's identity. When the link went to someone else, their asking is the user's to answer, as always.
|
|
24
|
+
- No location, and no grouping by public address: the same Wi-Fi is nearby.
|
|
25
|
+
- A code goes through `/v1/spot/<hash>` of the relay of rooms (`rooms` of `relays.json`): the relay sees only a hash of the code, who is connected, temporary ids and beacons without addresses; invitations are still sealed between the temporary keys, out of its reach. 50 at most; nobody new comes in 10 minutes after it was opened; a network that typed 10 wrong codes in 10 minutes waits a while (only wrong ones count: a whole office coming in by one code is fine).
|
|
26
|
+
|
|
27
|
+
## Data and calls
|
|
28
|
+
|
|
29
|
+
Data of the package (`@celljs/ta-nearby`): `visible` (`{ since, until? }`, only while on), `status` (what the pages read: who is around, invitations, who would like to meet the user, the name shown), `settings` (`{ hideName, show, work, meet }`), `cards` (`{ card?, draft? }`), `met` (cards proposed and when). The tool `nearby_card` saves the card Ta drafts as a draft. The page calls `callHost('nearby', request)`: `status`, `visible` (`on`, `minutes`), `settings`, `room` (`people` by temporary ids, `title`, `why`), `answer` (`k`, `accept`), `spot` (`action`: `open` / `join` / `leave`, `code`); `room` is also what an accepted proposal calls; `shown` (`k`, the content shown now), `show` (`k`, `action`: `accept` / `close`), `cards` (`draft` or `card`, `null` to remove it), `draftCard`, `hello` (`e`, what an accepted proposal calls), `greet` (`k`, `accept`). The host of another package shows on a screen nearby with `callPackageHost('@celljs/ta-nearby', 'show', [temporary id, title, kind, content])`, which answers `shown`, `asked` or `refused`.
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
`bun run build`: compiles and bundles the page (`web/index.js`), the server side with the beacons and invitations (`host/index.mjs`) and the pi extension with the tools (`extension/index.mjs`).
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Cell - Ta Nearby
|
|
2
|
+
|
|
3
|
+
Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):Ta 的"附近"。设计记录见 [docs/design/ta-nearby.md](../../docs/design/ta-nearby.md)。
|
|
4
|
+
|
|
5
|
+
不是一份按距离排序的陌生人名单,而是让 Ta 知道你此刻和谁在一起,并用它把事办成:
|
|
6
|
+
|
|
7
|
+
- **附近页**(发现 → 附近):默认关。打开时选时长(1 小时、今天、一直到关掉);打开期间,同一网络里也打开了附近的 Ta 会出现在这里,好友带标记,其余写"附近"(名字是对方自称的)。选几个人点"一起建个房间",Ta 建一个房间并邀请他们。只有自己打开了才看得到别人。
|
|
8
|
+
- **分身首页**:附近打开时,分身下面多一行"附近"(有谁、还剩多久),有邀请时带黄点。
|
|
9
|
+
- **邀请**:附近的人邀请你时弹出确认框(页面没开时经提醒通知),点"加入"就进房间,不用对方再同意一次:放你进来是对方亲手选的。被邀请的房间就是普通房间,群聊、@ 分身、派任务都照房间来。
|
|
10
|
+
- **Ta 知道**:附近打开时,你自己的对话(不含和别人一起的会话)里多一段 `<ta-nearby>`,写着附近有谁。说"建个房间把今天的纪要发给附近的人",Ta 用 `nearby_room`(每次先弹框请你确认邀请谁),再用房间的工具发纪要、派任务。`nearby_list` 列出附近的人。
|
|
11
|
+
- **Ta 提议**:附近打开、有 2 个以上的 Ta 在场超过 5 分钟(像在开会)时,"Ta 的建议"里出现"和附近的 N 个 Ta 建个房间"(提议种类 `nearby.room`,最多到"先问我"),点"好"就建好并邀请当时在场的人。两小时内最多一次。
|
|
12
|
+
- **在场码**:公司 Wi-Fi 常把设备隔开,同一网络里也看不到彼此。这时一个人在附近页点"生成在场码",得到 6 位数字(10 分钟内可以进,已经进来的人不受影响),其他人点"输入在场码",大家就互相出现在附近里,像微信的面对面建群。之后建房间、邀请都一样。
|
|
13
|
+
- **在附近的屏幕上展示**:对 Ta 说"把这份报告投到会议室大屏",Ta 用 `nearby_show` 把文件(HTML、Markdown、图片、文本,最大 600 KB)或一段 Markdown 发给附近那台电脑。对方按自己的设置:先问(弹框"阿杰想在这台电脑上展示「季度报告」")、直接全屏展示,或不接收。HTML 在沙箱 iframe 里运行;内容只在对方的内存和页面里,关掉就没了。
|
|
14
|
+
- **请附近的 Ta 做事**:打开"附近的人可以请我的 Ta 做事"后,别人的 Ta 知道可以先和你建房间、再把任务交给你的分身;要在目录里做事,照房间的规矩每次由你授权。
|
|
15
|
+
- **认识附近的人**(默认关):打开"愿意认识附近的人"并写一张名片(一句话在做什么、话题、在找、能帮;可以点"让 Ta 起草",Ta 在一个对话里按它对你的了解写草稿,你改过点"用这张"才生效)。两个都打开的 Ta 互相交换名片,在本机比对,不调模型:你在找的正是对方能帮的,或你们有两个以上相同的话题,才算有理由。这时"Ta 的建议"里出现"附近有人可能帮得上你,打个招呼?"(`nearby.meet`,最多到"先问我",每天最多 3 次,同一张名片 30 天内不再提)。点"好"后对方看到"阿杰想认识你"和理由(`nearby.greet`,也在附近页和分身首页);对方点"打个招呼",两边的 Ta 建一个两人的房间,对方直接进来。对方不理或点"不了",你什么也看不到。没有可以刷的名片列表。
|
|
16
|
+
- **设置 → 附近**:"在附近显示我的名字"(关掉后别人看到"一位 Ta 用户",好友仍认得出你);"附近的人可以在这台电脑上展示":不可以 / 先问我(默认)/ 直接展示(会议室大屏这类没人值守的电脑);"附近的人可以请我的 Ta 做事"(默认关);"愿意认识附近的人"和"我的名片"。
|
|
17
|
+
|
|
18
|
+
## 怎么发现、怎么保护
|
|
19
|
+
|
|
20
|
+
- 附近打开时,Ta 服务每 3 秒向本网段广播一条 UDP 消息(端口 47232,测试可用 `TA_NEARBY_PORT` 换),并监听同一端口。广播里只有:临时 id 和临时 ECDH 公钥(每 15 分钟一换)、显示名、头像编号、加密通道的端口和本机地址、好友标记。不广播身份 id。
|
|
21
|
+
- 好友标记是 `HMAC-SHA256(身份 id, 15 分钟时段)` 的前 12 字节:只有知道你身份 id 的 Ta(你的好友,或和你同过房间的人)认得出你。你自己的另一台电脑(共享身份时)不会出现在附近里。
|
|
22
|
+
- 邀请、接受、拒绝都经加密通道:TCP 一行,用双方临时密钥协商出的 AES-256-GCM 密钥加密;只收已经听到过广播、公钥对得上的 Ta 发来的消息,时间偏差超过 5 分钟的丢弃。
|
|
23
|
+
- 自动放行只放你邀请过、并且回答了"加入"的那个身份;被标记认出的好友必须就是那位好友的身份。链接被转给别人时,那个人的申请照常问你。
|
|
24
|
+
- 不用定位,也不按公网 IP 分组:同一个 Wi-Fi 就是附近。
|
|
25
|
+
- 在场码经中继(房间用的那个,`relays.json` 的 `rooms`)的 `/v1/spot/<哈希>`:中继只看到在场码的哈希、谁连着、临时 id 和不带地址的信标;邀请这些消息照样用双方的临时密钥加密,中继读不到。最多 50 人;打开 10 分钟后不再让新的人进;同一网络 10 分钟内输错 10 次在场码就要等一会儿再试(只数输错的,整个办公室用同一个码进来不受影响)。
|
|
26
|
+
|
|
27
|
+
## 数据与调用
|
|
28
|
+
|
|
29
|
+
包数据(`@celljs/ta-nearby`):`visible`(`{ since, until? }`,开着时才有)、`status`(页面读的附近状态:有谁、邀请、想认识你的人、自己的显示名)、`settings`(`{ hideName, show, work, meet }`)、`cards`(`{ card?, draft? }`)、`met`(提议过的名片和时间)。工具 `nearby_card` 把 Ta 起草的名片存为草稿。页面经 `callHost('nearby', request)` 调用:`status`、`visible`(`on`、`minutes`)、`settings`、`room`(`people` 临时 id、`title`、`why`)、`answer`(`k`、`accept`)、`spot`(`action`:`open` / `join` / `leave`,`code`);`room` 也是提议被接受时调用的方法;`shown`(`k`,取正在展示的内容)、`show`(`k`,`action`:`accept` / `close`)、`cards`(`draft` 或 `card`,`null` 去掉)、`draftCard`、`hello`(`e`,提议接受时调用)、`greet`(`k`、`accept`)。别的包的宿主可以 `callPackageHost('@celljs/ta-nearby', 'show', [临时 id, 标题, kind, 内容])` 在附近的屏幕上展示,返回 `shown` / `asked` / `refused`。
|
|
30
|
+
|
|
31
|
+
## 开发
|
|
32
|
+
|
|
33
|
+
`bun run build`:编译并打包页面(`web/index.js`)、广播与邀请所在的服务端(`host/index.mjs`)和工具所在的 pi 扩展(`extension/index.mjs`)。
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
// web-src/extension.ts
|
|
2
|
+
import { readFile, stat } from "node:fs/promises";
|
|
3
|
+
import { extname, resolve } from "node:path";
|
|
4
|
+
|
|
5
|
+
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
6
|
+
var TA_HOST_EVENT = "ta:host";
|
|
7
|
+
var TaHostUtil;
|
|
8
|
+
(function(TaHostUtil2) {
|
|
9
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
10
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
11
|
+
return new Promise((resolve) => {
|
|
12
|
+
let heard = false;
|
|
13
|
+
let answered = false;
|
|
14
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
15
|
+
const request = {
|
|
16
|
+
name,
|
|
17
|
+
heard: () => {
|
|
18
|
+
heard = true;
|
|
19
|
+
},
|
|
20
|
+
resolve: (answer) => {
|
|
21
|
+
answered = true;
|
|
22
|
+
clearTimeout(timer);
|
|
23
|
+
resolve(answer);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
events.emit(TA_HOST_EVENT, request);
|
|
27
|
+
if (!heard && !answered) {
|
|
28
|
+
clearTimeout(timer);
|
|
29
|
+
resolve(undefined);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
TaHostUtil2.reach = reach;
|
|
34
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
35
|
+
var TA_WITH_OTHERS_MARK = "[ta:speaks-with-others]";
|
|
36
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
37
|
+
var TaAskUtil;
|
|
38
|
+
(function(TaAskUtil2) {
|
|
39
|
+
const LENGTH = 120;
|
|
40
|
+
function entry(question) {
|
|
41
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
42
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
43
|
+
}
|
|
44
|
+
TaAskUtil2.entry = entry;
|
|
45
|
+
function asking(entries) {
|
|
46
|
+
var _a;
|
|
47
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
48
|
+
const entry2 = entries[i];
|
|
49
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
53
|
+
return read(entry2);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
TaAskUtil2.asking = asking;
|
|
59
|
+
function next(asked, entry2) {
|
|
60
|
+
var _a;
|
|
61
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
65
|
+
}
|
|
66
|
+
TaAskUtil2.next = next;
|
|
67
|
+
function read(found) {
|
|
68
|
+
var _a;
|
|
69
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
70
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
74
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
75
|
+
}
|
|
76
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
77
|
+
|
|
78
|
+
// web-src/nearby-protocol.ts
|
|
79
|
+
var NAME = "@celljs/ta-nearby";
|
|
80
|
+
var SECTION = "ta-nearby";
|
|
81
|
+
var NEARBY_VIEW = `${NAME}/nearby`;
|
|
82
|
+
var NearbyKeys;
|
|
83
|
+
((NearbyKeys) => {
|
|
84
|
+
NearbyKeys.VISIBLE = "visible";
|
|
85
|
+
NearbyKeys.STATUS = "status";
|
|
86
|
+
NearbyKeys.SETTINGS = "settings";
|
|
87
|
+
NearbyKeys.CARDS = "cards";
|
|
88
|
+
NearbyKeys.MET = "met";
|
|
89
|
+
})(NearbyKeys ||= {});
|
|
90
|
+
var SHOW_MAX = 600 * 1024;
|
|
91
|
+
|
|
92
|
+
// web-src/server-texts.ts
|
|
93
|
+
var NearbyTexts;
|
|
94
|
+
((NearbyTexts) => {
|
|
95
|
+
function zh(env = process.env) {
|
|
96
|
+
return /^zh/i.test(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || "");
|
|
97
|
+
}
|
|
98
|
+
NearbyTexts.zh = zh;
|
|
99
|
+
function who(peer) {
|
|
100
|
+
if (peer.friend) {
|
|
101
|
+
return peer.friend.name;
|
|
102
|
+
}
|
|
103
|
+
return peer.name || (zh() ? "一位 Ta 用户" : "a user of Ta");
|
|
104
|
+
}
|
|
105
|
+
NearbyTexts.who = who;
|
|
106
|
+
function list(names) {
|
|
107
|
+
return names.join(zh() ? "、" : ", ");
|
|
108
|
+
}
|
|
109
|
+
NearbyTexts.list = list;
|
|
110
|
+
function nearby() {
|
|
111
|
+
return zh() ? "附近" : "Nearby";
|
|
112
|
+
}
|
|
113
|
+
NearbyTexts.nearby = nearby;
|
|
114
|
+
function roomTitle(now = new Date) {
|
|
115
|
+
const time = `${String(now.getHours()).padStart(2, "0")}:${String(now.getMinutes()).padStart(2, "0")}`;
|
|
116
|
+
return zh() ? `附近 · ${now.getMonth() + 1}月${now.getDate()}日 ${time}` : `Nearby · ${now.toLocaleDateString("en", { month: "short", day: "numeric" })} ${time}`;
|
|
117
|
+
}
|
|
118
|
+
NearbyTexts.roomTitle = roomTitle;
|
|
119
|
+
function invited(name, title) {
|
|
120
|
+
return zh() ? `${name}(在你附近)邀请你进房间「${title}」` : `${name}, nearby, invites you into the room ${title}`;
|
|
121
|
+
}
|
|
122
|
+
NearbyTexts.invited = invited;
|
|
123
|
+
function proposeTitle(count) {
|
|
124
|
+
return zh() ? `和附近的 ${count} 个 Ta 建个房间,放纪要和文件` : `Make a room with the ${count} Ta nearby, for notes and files`;
|
|
125
|
+
}
|
|
126
|
+
NearbyTexts.proposeTitle = proposeTitle;
|
|
127
|
+
function proposeWhy(names) {
|
|
128
|
+
return zh() ? `${list(names)} 在你附近已经 5 分钟以上,像是在一起开会或做事。` : `${list(names)} have been near you for over 5 minutes, as if meeting or working together.`;
|
|
129
|
+
}
|
|
130
|
+
NearbyTexts.proposeWhy = proposeWhy;
|
|
131
|
+
function confirmRoom(title, names) {
|
|
132
|
+
return zh() ? [`和附近的人建房间「${title}」?`, `会邀请 ${list(names)}。他们在自己的 Ta 里点"加入"后就进来,不需要你再同意。`] : [
|
|
133
|
+
`Make the room ${title} with those nearby?`,
|
|
134
|
+
`It invites ${list(names)}. Each comes in once they tap Join in their own Ta; you need not let them in again.`
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
NearbyTexts.confirmRoom = confirmRoom;
|
|
138
|
+
function wantsToShow(name, title) {
|
|
139
|
+
return zh() ? `${name}(在你附近)想在这台电脑上展示「${title}」` : `${name}, nearby, wants to show ${title} on this computer`;
|
|
140
|
+
}
|
|
141
|
+
NearbyTexts.wantsToShow = wantsToShow;
|
|
142
|
+
function spotOff() {
|
|
143
|
+
return zh() ? "先打开附近,再用在场码。" : "Turn Nearby on first, then use a code.";
|
|
144
|
+
}
|
|
145
|
+
NearbyTexts.spotOff = spotOff;
|
|
146
|
+
function spotCode() {
|
|
147
|
+
return zh() ? "在场码是 6 位数字。" : "A code is six digits.";
|
|
148
|
+
}
|
|
149
|
+
NearbyTexts.spotCode = spotCode;
|
|
150
|
+
function spotRelay() {
|
|
151
|
+
return zh() ? "连不上中继,在场码暂时用不了。" : "The relay cannot be reached: codes do not work now.";
|
|
152
|
+
}
|
|
153
|
+
NearbyTexts.spotRelay = spotRelay;
|
|
154
|
+
function spotRefused(reason) {
|
|
155
|
+
if (reason === "none") {
|
|
156
|
+
return zh() ? "没有人打开这个在场码,核对一下数字。" : "Nobody opened this code: check the digits.";
|
|
157
|
+
}
|
|
158
|
+
if (reason === "late") {
|
|
159
|
+
return zh() ? "这个在场码已经超过 10 分钟,请对方再生成一个。" : "This code is over 10 minutes old: ask for a new one.";
|
|
160
|
+
}
|
|
161
|
+
if (reason === "tries") {
|
|
162
|
+
return zh() ? "这个网络 10 分钟内输错的在场码太多了,请稍后再试。" : "Too many wrong codes from this network in 10 minutes: try again later.";
|
|
163
|
+
}
|
|
164
|
+
if (reason === "full") {
|
|
165
|
+
return zh() ? "这个在场码里的人已满。" : "This code is full.";
|
|
166
|
+
}
|
|
167
|
+
return spotRelay();
|
|
168
|
+
}
|
|
169
|
+
NearbyTexts.spotRefused = spotRefused;
|
|
170
|
+
function meetWhy(reason) {
|
|
171
|
+
const what = list(reason.what);
|
|
172
|
+
if (reason.kind === "helps") {
|
|
173
|
+
return zh() ? `你在找“${reason.seeking}”,对方的名片说:${what}。` : `You look for “${reason.seeking}”; their card says: ${what}.`;
|
|
174
|
+
}
|
|
175
|
+
return zh() ? `你们都在关注:${what}。` : `You both follow: ${what}.`;
|
|
176
|
+
}
|
|
177
|
+
NearbyTexts.meetWhy = meetWhy;
|
|
178
|
+
function greetWhy(reason) {
|
|
179
|
+
const what = list(reason.what);
|
|
180
|
+
if (reason.kind === "helps") {
|
|
181
|
+
return zh() ? `对方在找“${reason.seeking}”,你的名片说:${what}。` : `They look for “${reason.seeking}”; your card says: ${what}.`;
|
|
182
|
+
}
|
|
183
|
+
return zh() ? `你们都在关注:${what}。` : `You both follow: ${what}.`;
|
|
184
|
+
}
|
|
185
|
+
NearbyTexts.greetWhy = greetWhy;
|
|
186
|
+
function meetTitle(reason) {
|
|
187
|
+
if (reason.kind === "helps") {
|
|
188
|
+
return zh() ? "附近有人可能帮得上你,打个招呼?" : "Someone nearby may help you: say hello?";
|
|
189
|
+
}
|
|
190
|
+
return zh() ? "附近有人和你关注同样的事,打个招呼?" : "Someone nearby follows the same things: say hello?";
|
|
191
|
+
}
|
|
192
|
+
NearbyTexts.meetTitle = meetTitle;
|
|
193
|
+
function greetTitle(name) {
|
|
194
|
+
return zh() ? `附近的${name}想认识你` : `${name}, nearby, would like to meet you`;
|
|
195
|
+
}
|
|
196
|
+
NearbyTexts.greetTitle = greetTitle;
|
|
197
|
+
function meetRoom(a, b) {
|
|
198
|
+
return zh() ? `${a} 和 ${b}` : `${a} and ${b}`;
|
|
199
|
+
}
|
|
200
|
+
NearbyTexts.meetRoom = meetRoom;
|
|
201
|
+
function meetKind() {
|
|
202
|
+
return { en: "Say hello to someone nearby", zh: "和附近的人打招呼" };
|
|
203
|
+
}
|
|
204
|
+
NearbyTexts.meetKind = meetKind;
|
|
205
|
+
function greetKind() {
|
|
206
|
+
return { en: "Meet someone nearby who says hello", zh: "认识附近来打招呼的人" };
|
|
207
|
+
}
|
|
208
|
+
NearbyTexts.greetKind = greetKind;
|
|
209
|
+
function draftPrompt() {
|
|
210
|
+
return zh() ? "请按你对我的了解(<ta-user> 里的内容和我最近的对话),起草我在“附近”给别人看的名片,用 nearby_card 保存为草稿:一句话说我在做什么,话题最多 8 个,在找最多 3 条,能帮最多 3 条,每条几个字。不要写名字、公司、项目名、路径、联系方式和任何秘密;拿不准的就少写。保存后告诉我在 发现 → 附近 或 设置 → 附近 里看一眼,点“用这张”才生效。" : "From what you know of me (<ta-user> and my recent conversations), draft the card I show others in Nearby and save it as a draft with nearby_card: a sentence of what I work on, 8 topics at most, 3 things I look for and 3 I can help with, a few words each. No names, companies, projects, paths, contacts or secrets; less when unsure. Then tell me to look at it in Discover → Nearby or Settings → Nearby, where Use this card makes it mine.";
|
|
211
|
+
}
|
|
212
|
+
NearbyTexts.draftPrompt = draftPrompt;
|
|
213
|
+
function draftTitle() {
|
|
214
|
+
return zh() ? "附近名片" : "Card for Nearby";
|
|
215
|
+
}
|
|
216
|
+
NearbyTexts.draftTitle = draftTitle;
|
|
217
|
+
function kindTitle() {
|
|
218
|
+
return { en: "Make a room of the Ta nearby", zh: "和附近的 Ta 建房间" };
|
|
219
|
+
}
|
|
220
|
+
NearbyTexts.kindTitle = kindTitle;
|
|
221
|
+
})(NearbyTexts ||= {});
|
|
222
|
+
|
|
223
|
+
// web-src/extension.ts
|
|
224
|
+
var NO_SERVER = "Nearby needs the Ta service: start it with `ta serve`.";
|
|
225
|
+
function pick(service, names) {
|
|
226
|
+
const peers = service.peers().map((peer) => ({ e: peer.e, who: NearbyTexts.who(peer) }));
|
|
227
|
+
const wanted = Array.isArray(names) ? names.filter((name) => typeof name === "string" && !!name.trim()).map((name) => name.trim()) : [];
|
|
228
|
+
if (!wanted.length) {
|
|
229
|
+
return peers;
|
|
230
|
+
}
|
|
231
|
+
return peers.filter((peer) => wanted.some((name) => peer.who === name || peer.who.includes(name) || name.includes(peer.who)));
|
|
232
|
+
}
|
|
233
|
+
function activate(pi) {
|
|
234
|
+
let reached;
|
|
235
|
+
const reach = () => reached ??= TaHostUtil.reach(pi.events, NAME).then((answer) => ({
|
|
236
|
+
answered: !!answer,
|
|
237
|
+
service: answer?.service?.service
|
|
238
|
+
}));
|
|
239
|
+
const service = async () => {
|
|
240
|
+
const { answered, service: service2 } = await reach();
|
|
241
|
+
if (!service2) {
|
|
242
|
+
throw new Error(answered ? "Nearby did not start in the Ta service; its log says why." : NO_SERVER);
|
|
243
|
+
}
|
|
244
|
+
return service2;
|
|
245
|
+
};
|
|
246
|
+
pi.on("before_agent_start", async (event, ctx) => {
|
|
247
|
+
if (ctx.getSystemPrompt().includes(TA_WITH_OTHERS_MARK)) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
const section = (await reach()).service?.section();
|
|
251
|
+
if (section) {
|
|
252
|
+
event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [SECTION]: section };
|
|
253
|
+
}
|
|
254
|
+
return;
|
|
255
|
+
});
|
|
256
|
+
pi.registerTool({
|
|
257
|
+
name: "nearby_list",
|
|
258
|
+
label: "Nearby",
|
|
259
|
+
description: "Lists the other people's Ta around the user now (Nearby, on the same network), while the user has Nearby on.",
|
|
260
|
+
parameters: { type: "object", properties: {} },
|
|
261
|
+
execute: async () => {
|
|
262
|
+
const found = await service();
|
|
263
|
+
if (!found.isVisible()) {
|
|
264
|
+
return text("Nearby is off. The user turns it on in Discover → Nearby; it is theirs to turn on, not yours.");
|
|
265
|
+
}
|
|
266
|
+
const section = found.section() ?? "";
|
|
267
|
+
return text(section.replace(/<\/?ta-nearby>\n?/g, "").trim());
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
pi.registerTool({
|
|
271
|
+
name: "nearby_show",
|
|
272
|
+
label: "Show nearby",
|
|
273
|
+
description: "Shows a file (HTML, Markdown, an image, text; 600 KB at most) or some Markdown on the screen of a Ta nearby that offers show (a meeting room's screen): by the name nearby_list gives. Its user may be asked first. Nothing is kept there once closed.",
|
|
274
|
+
parameters: {
|
|
275
|
+
type: "object",
|
|
276
|
+
properties: {
|
|
277
|
+
to: { type: "string", description: "The name of the Ta nearby, as nearby_list gives it." },
|
|
278
|
+
path: { type: "string", description: "A file to show." },
|
|
279
|
+
markdown: { type: "string", description: "Or Markdown to show, without a file." },
|
|
280
|
+
title: { type: "string" }
|
|
281
|
+
},
|
|
282
|
+
required: ["to"]
|
|
283
|
+
},
|
|
284
|
+
execute: async (_id, params, _signal, _update, ctx) => {
|
|
285
|
+
const found = await service();
|
|
286
|
+
if (!found.isVisible()) {
|
|
287
|
+
throw new Error("Nearby is off: the user turns it on in Discover → Nearby.");
|
|
288
|
+
}
|
|
289
|
+
const name = typeof params.to === "string" ? params.to.trim() : "";
|
|
290
|
+
const [target, ...others] = name ? pick(found, [name]) : [];
|
|
291
|
+
if (!target || others.length) {
|
|
292
|
+
throw new Error(target ? "Several are called so: name one." : `Nobody called ${name} is nearby now.`);
|
|
293
|
+
}
|
|
294
|
+
const path = typeof params.path === "string" && params.path.trim() ? resolve(ctx.cwd, params.path.trim().replace(/^@/, "")) : undefined;
|
|
295
|
+
const content = path ? await showable(path) : typeof params.markdown === "string" && params.markdown.trim() ? { kind: "markdown", data: params.markdown } : undefined;
|
|
296
|
+
if (!content) {
|
|
297
|
+
throw new Error("Give a path or some Markdown to show.");
|
|
298
|
+
}
|
|
299
|
+
const title = typeof params.title === "string" && params.title.trim() || (path ? path.split(/[\\/]/).pop() : "") || "Ta";
|
|
300
|
+
const answer = await found.show(target.e, title, content.kind, content.data);
|
|
301
|
+
return text(answer === "shown" ? `Shown on the screen of ${target.who}.` : answer === "asked" ? `${target.who} is asked first; it shows once they let it.` : `${target.who} does not take things to show.`);
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
pi.registerTool({
|
|
305
|
+
name: "nearby_card",
|
|
306
|
+
label: "Card for Nearby",
|
|
307
|
+
description: "Saves a draft of the card the user shows others in Nearby, to meet who may help them or follows the same things: what they work on in a sentence, topics, what they look for, what they can help with. Only a draft: the user looks at it and uses it in Ta. Never names, companies, projects, paths, contacts or secrets.",
|
|
308
|
+
parameters: {
|
|
309
|
+
type: "object",
|
|
310
|
+
properties: {
|
|
311
|
+
line: { type: "string", description: "What the user works on, in a sentence." },
|
|
312
|
+
topics: { type: "array", items: { type: "string" }, description: "8 at most, a few words each." },
|
|
313
|
+
seeking: { type: "array", items: { type: "string" }, description: "What they look for, 3 at most." },
|
|
314
|
+
offering: { type: "array", items: { type: "string" }, description: "What they can help others with, 3 at most." }
|
|
315
|
+
},
|
|
316
|
+
required: ["line"]
|
|
317
|
+
},
|
|
318
|
+
execute: async (_id, params) => {
|
|
319
|
+
const found = await service();
|
|
320
|
+
await found.request({ kind: "cards", draft: params });
|
|
321
|
+
return text("Saved as a draft. The user uses it in Discover → Nearby or Settings → Nearby.");
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
pi.registerTool({
|
|
325
|
+
name: "nearby_room",
|
|
326
|
+
label: "Room of those nearby",
|
|
327
|
+
description: "Makes a room (a group chat of Ta) of the people around the user and invites them: all of them, or those named. The user confirms first; each comes in once they tap Join in their own Ta. Then say_in_room and hand_task work there.",
|
|
328
|
+
parameters: {
|
|
329
|
+
type: "object",
|
|
330
|
+
properties: {
|
|
331
|
+
title: { type: "string", description: "The name of the room; a few words." },
|
|
332
|
+
people: { type: "array", items: { type: "string" }, description: "Names as nearby_list gives them; none: everyone around." },
|
|
333
|
+
why: { type: "string", description: "What it is for, in one line they see with the invitation." }
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
execute: async (_id, params, _signal, _update, ctx) => {
|
|
337
|
+
const found = await service();
|
|
338
|
+
if (!found.isVisible()) {
|
|
339
|
+
throw new Error("Nearby is off: the user turns it on in Discover → Nearby.");
|
|
340
|
+
}
|
|
341
|
+
if (!ctx.hasUI) {
|
|
342
|
+
throw new Error("Inviting needs the user to confirm it in Ta; there is no one to ask here.");
|
|
343
|
+
}
|
|
344
|
+
const chosen = pick(found, params.people);
|
|
345
|
+
if (!chosen.length) {
|
|
346
|
+
throw new Error("Nobody of those is nearby now.");
|
|
347
|
+
}
|
|
348
|
+
const title = typeof params.title === "string" && params.title.trim() ? params.title.trim().slice(0, 80) : NearbyTexts.roomTitle();
|
|
349
|
+
const names = chosen.map((one) => one.who);
|
|
350
|
+
if (!await ctx.ui.confirm(...NearbyTexts.confirmRoom(title, names)).catch(() => false)) {
|
|
351
|
+
throw new Error("The user did not want this room.");
|
|
352
|
+
}
|
|
353
|
+
const result = await found.request({
|
|
354
|
+
kind: "room",
|
|
355
|
+
people: chosen.map((one) => one.e),
|
|
356
|
+
title,
|
|
357
|
+
...typeof params.why === "string" && params.why.trim() ? { why: params.why.trim().slice(0, 200) } : {}
|
|
358
|
+
});
|
|
359
|
+
return text([
|
|
360
|
+
`Made the room "${result.title}" and invited ${result.invited.join(", ") || "nobody"}: each comes in once they tap Join.`,
|
|
361
|
+
result.missed.length ? `Could not reach ${result.missed.join(", ")}.` : "",
|
|
362
|
+
"read_room with wait_seconds tells when they are in; then say_in_room or hand_task there."
|
|
363
|
+
].filter(Boolean).join(" "));
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
var IMAGES = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".gif": "image/gif", ".webp": "image/webp" };
|
|
368
|
+
async function showable(path) {
|
|
369
|
+
const size = (await stat(path)).size;
|
|
370
|
+
const ext = extname(path).toLowerCase();
|
|
371
|
+
const image = IMAGES[ext];
|
|
372
|
+
if (size > (image ? SHOW_MAX * 3 / 4 : SHOW_MAX)) {
|
|
373
|
+
throw new Error(`${path} is too large to show nearby: ${Math.round(SHOW_MAX / 1024)} KB at most.`);
|
|
374
|
+
}
|
|
375
|
+
if (image) {
|
|
376
|
+
return { kind: "image", data: `data:${image};base64,${(await readFile(path)).toString("base64")}` };
|
|
377
|
+
}
|
|
378
|
+
const kind = ext === ".html" || ext === ".htm" ? "html" : ext === ".md" || ext === ".markdown" ? "markdown" : "text";
|
|
379
|
+
return { kind, data: await readFile(path, "utf8") };
|
|
380
|
+
}
|
|
381
|
+
function text(value) {
|
|
382
|
+
return { content: [{ type: "text", text: value }], details: undefined };
|
|
383
|
+
}
|
|
384
|
+
export {
|
|
385
|
+
showable,
|
|
386
|
+
pick,
|
|
387
|
+
activate as default,
|
|
388
|
+
NO_SERVER
|
|
389
|
+
};
|