@celljs/ta 4.12.0 → 4.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/cli.mjs +1006 -164
- package/dist/gateway.mjs +182 -2
- package/dist/pi/CHANGELOG.md +15 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +1 -1
- package/dist/pi/packages/ta-agents/README.md +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +75 -11
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +2 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +6 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +7 -5
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +44 -3
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +12 -2
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +29 -4
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +72 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +178 -0
- package/dist/pi/packages/ta-bots/package.json +7 -2
- package/dist/pi/packages/ta-changes/extension/index.mjs +72 -0
- package/dist/pi/packages/ta-changes/package.json +8 -2
- package/dist/pi/packages/ta-channels/README.en.md +3 -1
- package/dist/pi/packages/ta-channels/README.md +3 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +78 -4
- package/dist/pi/packages/ta-channels/host/index.mjs +289 -8
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +8 -2
- package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/room.js +31 -5
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +7 -13
- package/dist/pi/packages/ta-channels/lib/team-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/team-view.js +45 -0
- package/dist/pi/packages/ta-channels/lib/team.d.ts +20 -4
- package/dist/pi/packages/ta-channels/lib/team.js +87 -6
- package/dist/pi/packages/ta-channels/package.json +26 -2
- package/dist/pi/packages/ta-channels/web/index.js +137 -27
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +2 -2
- package/dist/pi/packages/ta-cron/README.md +2 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +113 -258
- package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
- package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +12 -8
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
- package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
- package/dist/pi/packages/ta-cron/lib/index.js +0 -2
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/page.js +24 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +8 -0
- package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
- package/dist/pi/packages/ta-cron/package.json +10 -2
- package/dist/pi/packages/ta-cron/web/index.js +607 -784
- package/dist/pi/packages/ta-extensions/README.en.md +1 -2
- package/dist/pi/packages/ta-extensions/README.md +1 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
- package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
- package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
- package/dist/pi/packages/ta-extensions/package.json +10 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +15 -11
- package/dist/pi/packages/ta-extensions/web/index.js +197 -97
- package/dist/pi/packages/ta-games/package.json +8 -2
- package/dist/pi/packages/ta-glance/README.en.md +1 -0
- package/dist/pi/packages/ta-glance/README.md +1 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +446 -3
- package/dist/pi/packages/ta-glance/lib/card.js +38 -12
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +10 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.js +97 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +3 -3
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +3 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +6 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +41 -7
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +9 -0
- package/dist/pi/packages/ta-glance/lib/index.js +4 -1
- package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/style.js +9 -1
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-glance/web/index.js +87 -19
- package/dist/pi/packages/ta-initiative/README.en.md +66 -0
- package/dist/pi/packages/ta-initiative/README.md +66 -0
- package/dist/pi/packages/ta-initiative/extension/index.mjs +741 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
- package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +237 -0
- package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
- package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
- package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
- package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
- package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
- package/dist/pi/packages/ta-initiative/package.json +63 -0
- package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
- package/dist/pi/packages/ta-launcher/README.en.md +2 -1
- package/dist/pi/packages/ta-launcher/README.md +2 -1
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +58 -1
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +109 -2
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +123 -11
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +45 -10
- package/dist/pi/packages/ta-manual/web/index.js +567 -12
- package/dist/pi/packages/ta-moments/README.en.md +29 -0
- package/dist/pi/packages/ta-moments/README.md +29 -0
- package/dist/pi/packages/ta-moments/extension/index.mjs +1787 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2415 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
- package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/context.js +35 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
- package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
- package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
- package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
- package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
- package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/host.js +11 -0
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
- package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
- package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-moments/lib/index.js +50 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
- package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
- package/dist/pi/packages/ta-moments/lib/page.js +307 -0
- package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
- package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
- package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
- package/dist/pi/packages/ta-moments/lib/store.js +108 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/style.js +155 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
- package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
- package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
- package/dist/pi/packages/ta-moments/package.json +61 -0
- package/dist/pi/packages/ta-moments/web/index.js +2008 -0
- package/dist/pi/packages/ta-nearby/README.en.md +33 -0
- package/dist/pi/packages/ta-nearby/README.md +33 -0
- package/dist/pi/packages/ta-nearby/extension/index.mjs +410 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
- package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
- package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
- package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
- package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
- package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
- package/dist/pi/packages/ta-nearby/package.json +65 -0
- package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
- package/dist/pi/packages/ta-notify/README.en.md +3 -1
- package/dist/pi/packages/ta-notify/README.md +3 -1
- package/dist/pi/packages/ta-notify/extension/index.mjs +85 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
- package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
- package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
- package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-notify/lib/style.js +1 -1
- package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
- package/dist/pi/packages/ta-notify/package.json +7 -2
- package/dist/pi/packages/ta-notify/web/index.js +3 -2
- package/dist/pi/packages/ta-recall/README.en.md +15 -6
- package/dist/pi/packages/ta-recall/README.md +15 -6
- package/dist/pi/packages/ta-recall/extension/index.mjs +311 -134
- package/dist/pi/packages/ta-recall/host/index.mjs +472 -116
- package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
- package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
- package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.js +104 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/extension.js +31 -23
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +18 -10
- package/dist/pi/packages/ta-recall/lib/i18n.js +40 -24
- package/dist/pi/packages/ta-recall/lib/index.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/index.js +5 -4
- package/dist/pi/packages/ta-recall/lib/keep-card.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/keep-card.js +83 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +15 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.js +55 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +92 -18
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +19 -9
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +16 -6
- package/dist/pi/packages/ta-recall/lib/recall-service.js +101 -11
- package/dist/pi/packages/ta-recall/lib/requests-util.d.ts +6 -0
- package/dist/pi/packages/ta-recall/lib/requests-util.js +37 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +5 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/settings.js +1 -1
- package/dist/pi/packages/ta-recall/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/style.js +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.js +10 -5
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +14 -5
- package/dist/pi/packages/ta-recall/lib/tool.js +29 -17
- package/dist/pi/packages/ta-recall/package.json +13 -5
- package/dist/pi/packages/ta-recall/web/index.js +414 -153
- package/dist/pi/packages/ta-rooms/README.en.md +6 -3
- package/dist/pi/packages/ta-rooms/README.md +6 -3
- package/dist/pi/packages/ta-rooms/extension/index.mjs +194 -9
- package/dist/pi/packages/ta-rooms/host/index.mjs +1023 -234
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +5 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.d.ts +26 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +84 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.d.ts +22 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +140 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +43 -40
- package/dist/pi/packages/ta-rooms/lib/double-host.js +142 -311
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +40 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +96 -3
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +58 -3
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +82 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +527 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.d.ts +19 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.js +124 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +34 -2
- package/dist/pi/packages/ta-rooms/lib/double-util.js +60 -2
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +4 -1
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +8 -2
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +7 -2
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +9 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +35 -8
- package/dist/pi/packages/ta-rooms/lib/friend-notices.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +47 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +224 -0
- package/dist/pi/packages/ta-rooms/lib/host.d.ts +2 -1
- package/dist/pi/packages/ta-rooms/lib/host.js +9 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +23 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.js +60 -18
- package/dist/pi/packages/ta-rooms/lib/index.js +18 -1
- package/dist/pi/packages/ta-rooms/lib/members-view.js +12 -1
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +42 -4
- package/dist/pi/packages/ta-rooms/lib/page.js +108 -24
- package/dist/pi/packages/ta-rooms/lib/room-view.js +7 -3
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +6 -17
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +31 -6
- package/dist/pi/packages/ta-rooms/lib/tasks-view.d.ts +41 -0
- package/dist/pi/packages/ta-rooms/lib/tasks-view.js +228 -0
- package/dist/pi/packages/ta-rooms/package.json +11 -2
- package/dist/pi/packages/ta-rooms/web/index.js +1633 -751
- package/dist/pi/packages/ta-share/README.en.md +1 -1
- package/dist/pi/packages/ta-share/README.md +1 -1
- package/dist/pi/packages/ta-share/extension/index.mjs +72 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +4 -6
- package/dist/pi/packages/ta-share/package.json +10 -2
- package/dist/pi/packages/ta-share/web/index.js +12 -14
- package/dist/pi/packages/ta-sync/README.en.md +55 -0
- package/dist/pi/packages/ta-sync/README.md +55 -0
- package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
- package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/host.js +94 -0
- package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
- package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
- package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-sync/lib/index.js +115 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
- package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
- package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
- package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
- package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
- package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
- package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-sync/lib/react.js +16 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-sync/lib/style.js +108 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
- package/dist/pi/packages/ta-sync/package.json +57 -0
- package/dist/pi/packages/ta-sync/web/index.js +2018 -0
- package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
- package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
- package/dist/pi/packages/ta-team/README.en.md +28 -0
- package/dist/pi/packages/ta-team/README.md +28 -0
- package/dist/pi/packages/ta-team/extension/index.mjs +285 -0
- package/dist/pi/packages/ta-team/host/index.mjs +2121 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
- package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/extension.js +123 -0
- package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/host.js +45 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
- package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/index.js +67 -0
- package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/join.js +48 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
- package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
- package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
- package/dist/pi/packages/ta-team/lib/page.js +142 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
- package/dist/pi/packages/ta-team/lib/parts.js +47 -0
- package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
- package/dist/pi/packages/ta-team/lib/policy.js +215 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
- package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
- package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/react.js +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
- package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/remote.js +128 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
- package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/seal.js +75 -0
- package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
- package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
- package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/style.js +99 -0
- package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
- package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
- package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
- package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
- package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
- package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
- package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
- package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
- package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
- package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
- package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
- package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
- package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
- package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
- package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
- package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
- package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
- package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
- package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
- package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
- package/dist/pi/packages/ta-team/package.json +68 -0
- package/dist/pi/packages/ta-team/web/index.js +2741 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +178 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-BnqtcbpZ.js → abnfDiagram-S7VZAUFO-C30pzFN3.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BzPq1Ioe.js → architecture-WOLXFQ4H-wfYFQl2u.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-BsquO3a7.js → architectureDiagram-YGSQEFNW-B05zgxyT.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BQNYOEP4.js → blockDiagram-APKKGZFW-BhN8Bsu0.js} +1 -1
- package/dist/public/assets/{browser-DS711n7Y.js → browser-DteLjv_-.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-D6e79Ycq.js → c4Diagram-KJ2TOQU5-DvdF3qCV.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-B-sgaPoU.js → chunk-6MUBBAK2-DNavkrnr.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-D8pJKIg2.js → chunk-AXFCVDMN-DplVEqp_.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-86TL-vCz.js → chunk-BG4553SI-BazOaHvw.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CfUVuGjc.js → chunk-DQASFODM-DmoQWa8b.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-Drm0FEYk.js → chunk-HFQBQIA3-Cj1m9ccz.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BVFRADlC.js → chunk-KQLB2F66-_jbilrLX.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-DfyALEmP.js → chunk-KS47KZWR-CWU16Lut.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-DtJVzk2c.js → chunk-LEVMRMFU-wsbxWEZE.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DTy27PHQ.js → chunk-M57EVK23-BGvmwwTv.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-nSgn7jZg.js → chunk-OY52VR5R-Bp3hJ4kT.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-CkSxO_X6.js → chunk-QB3YPZ4I-C1rQVxsJ.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Ck6iAjAL.js → chunk-R3KSYZAL-CEy0dKWn.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DQPHdSTh.js → chunk-STOXU5M4-akqvafwH.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-Bc2AbV2Y.js → chunk-TU62E6Q5-CVXAS4DS.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Cgpm0IXm.js → chunk-X4PVCEUW-DT_bEMvQ.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-CGE4eLpg.js → chunk-XXDRQBXY-Bgv_n5Qh.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-4eQuDPEo.js → classDiagram-v2-L25IHNXF-BtjQChpS.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-tDLCWq07.js → cose-bilkent-JH36ORCC-DSrOY8Uk.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-ByqcZ8x9.js → cynefinDiagram-L36ESFBY-DTy7FNFS.js} +1 -1
- package/dist/public/assets/{d3-selection-Bgn1374-.js → d3-selection-ip6rDUzY.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-mCgr71mV.js → dagre-SPEB5RXH-CHrks7Jb.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DpYSwpQ0.js → diagram-3B7GL73J-eUJ7STAr.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-DMozUQzi.js → diagram-DNEMPZML-B_fptNkg.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-Bk5Uf8PD.js → diagram-L3MUGCDN-C15owCSG.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DFt5cPVK.js → diagram-LA4NIPWU-Bfa1qEgY.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BkZZcKqK.js → diagram-MHCOC4E2-Bwxsih_Q.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-HEY6kyyN.js → diagram-XPFHEONP-DKZ_lwah.js} +1 -1
- package/dist/public/assets/{dist-Bj2CrKn7.js → dist-VHGBaby6.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D4JvYyVb.js → ebnfDiagram-UZSYDL2S-CCkttvYi.js} +1 -1
- package/dist/public/assets/{editor.api-BpJFzYbl.js → editor.api-a2gC0dVD.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CT6qLJkF.js → elk-XV6XMXQE-DcikW39e.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BGng1goR.js → erDiagram-EYBAPDEH-BE3TV5lU.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-Tt8O-Q1Z.js → eventmodeling-K75KTNOO-C2s1kutf.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +1 -0
- package/dist/public/assets/{freemarker2-Dd5ksoRn.js → freemarker2-2e8pZojb.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Jl8VO_g2.js → ganttDiagram-23REXITY-rGnJptii.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Be4qXALb.js → gitGraphDiagram-STJD7YCW-CNnsDjQA.js} +1 -1
- package/dist/public/assets/{handlebars-4xabgUi4.js → handlebars-CMKN6E37.js} +1 -1
- package/dist/public/assets/{html-Dk3kt2w_.js → html-0AjXQhkQ.js} +1 -1
- package/dist/public/assets/{index-Bx0c7eoh.js → index-TUtoc8CW.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-Coc0tdwb.js → infoDiagram-KBXO4MBG-DMKs8cuE.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-CE_1VQCg.js → ishikawaDiagram-M35NCXHK-Dg_IbA0G.js} +1 -1
- package/dist/public/assets/{javascript-DKLGqy6v.js → javascript-CqYOqPjw.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-CrolRZ_7.js → journeyDiagram-OPLOXDXO-ohAOfoEY.js} +1 -1
- package/dist/public/assets/{jsonMode-Chcs19_y.js → jsonMode-D-gI-S5H.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-CjJj47De.js → kanban-definition-BZKZHSQY-w-aKZS_U.js} +1 -1
- package/dist/public/assets/{liquid-jff3p-Ji.js → liquid-oBN7c8NZ.js} +1 -1
- package/dist/public/assets/{mdx-DW4uRDfJ.js → mdx-CnwhgGjX.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-XhQj6FvH.js → mermaid-parser.core-CfFkSR0t.js} +3 -3
- package/dist/public/assets/{mermaid.core-OD4Atimg.js → mermaid.core-apiVCSBY.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DpGelVY7.js → mindmap-definition-I2QAS2VK-E7vqVWB0.js} +1 -1
- package/dist/public/assets/module-C2jtFD0v.js +2365 -0
- package/dist/public/assets/module-xT4L5yYw.js +1 -0
- package/dist/public/assets/{monaco-BTVZP-tU.js → monaco-C0ByxW3l.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CqcBmPfB.js → pegDiagram-FD4XPPHP--RpwCE7x.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CRir3beB.js → pieDiagram-J4AKIIQI-DxSbPaRZ.js} +1 -1
- package/dist/public/assets/{python-BwW_0207.js → python-vNPe_Fao.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-DIY6gdcf.js → quadrantDiagram-XTYBLID2-CR_eeYXi.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-XWNOzunl.js → railroad-abnf-LNEFI6M7-D6I2HxIC.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js → railroad-ebnf-DWYD2UWJ-BuhDRGo3.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-BVB_IaIG.js → railroad-peg-JR7BVNR7-n15PB7Sb.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-CudwT6q2.js → railroadDiagram-MRQ6NCDL-Bbe5bNap.js} +1 -1
- package/dist/public/assets/{razor-DrjCyQqB.js → razor-CnKbF0Yz.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CvRMeRqj.js → requirementDiagram-Y7LWUY3S-Beuygh9j.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-adxYCJKr.js → sankeyDiagram-WGJFYUXA-jwWPgnrS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-lCRsoLUp.js → sequenceDiagram-5NDRBG5M-CmU-HYQI.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-DNst1BLg.js → stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-S_omrdvA.js → swimlanes-UMQ2AFYF-PSKyZN_b.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-_pMGrTE-.js → timeline-definition-SEUHKTQE-BuRxLScZ.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +1 -0
- package/dist/public/assets/{typescript-0-z_OYCU.js → typescript-C00ztMLg.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-B2oJKi5Q.js → usecaseDiagram-AFA6YXN4-Dlvyos8r.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-inPs2Kkr.js → vennDiagram-NNMJR3RB-CuLZubJH.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DNhNHM7b.js → wardleyDiagram-S7YFUSEH-WOGGTs4y.js} +1 -1
- package/dist/public/assets/{xml-BXPxQzKF.js → xml-CHBFuf5n.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DJc93dNT.js → xychartDiagram-GGNKY7IX-DwW9eifP.js} +1 -1
- package/dist/public/assets/{yaml-CGmD9Rya.js → yaml-C4qkqzcL.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7738 -3839
- package/package.json +37 -31
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +0 -11
- package/dist/pi/packages/ta-cron/lib/composer.js +0 -58
- package/dist/pi/packages/ta-extensions/lib/composer.d.ts +0 -17
- package/dist/pi/packages/ta-extensions/lib/composer.js +0 -84
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +0 -9
- package/dist/pi/packages/ta-recall/lib/skill-card.js +0 -51
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +0 -19
- package/dist/pi/packages/ta-recall/lib/skill-util.js +0 -110
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dd40W2Jh.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-uFzenfA3.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D28I_jUc.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-5vIGEIq7.js +0 -1
- package/dist/public/assets/module-CrD0OHQp.js +0 -1
- package/dist/public/assets/module-DEBMgdtf.js +0 -2273
- package/dist/public/assets/packet-JDAUHWVQ-CBxQ5Mzy.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-DT5V3581.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-BAOovYEa.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-RZ2Rnwzh.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-By5lnz4u.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-Cyb9N8KY.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-BkMo57pG.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-CSt-uQ-Y.js +0 -1
|
@@ -15,7 +15,7 @@ A pi package that comes with Ta (on by default; Settings → Extensions turns it
|
|
|
15
15
|
| --- | --- |
|
|
16
16
|
| Anyone with the link | Anyone who has the link |
|
|
17
17
|
| With a password | Who has the link and the password; the password is not in the link, and the key of the content is derived from both |
|
|
18
|
-
|
|
|
18
|
+
| Friends | The friends chosen, in their own Ta only: the link holds no key, the key of the content is agreed between the two identities (ECDH), and neither the relay nor anyone else learns who opens it; while this computer runs Ta |
|
|
19
19
|
| Only me | Only the Ta of the one who shared it (this computer and its paired devices) |
|
|
20
20
|
|
|
21
21
|
It works for 1, 7 or 30 days, or until stopped; "opens while this computer is off" keeps a sealed copy on the relay, 30 days at most.
|
|
@@ -15,7 +15,7 @@ Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):把对
|
|
|
15
15
|
| --- | --- |
|
|
16
16
|
| 拿到链接的人 | 任何拿到链接的人 |
|
|
17
17
|
| 凭口令 | 拿到链接并且知道口令的人;口令不在链接里,内容密钥由链接密钥和口令共同派生 |
|
|
18
|
-
| 指定的好友 |
|
|
18
|
+
| 指定的好友 | 选定的几位好友,只能在他们自己的 Ta 里打开:链接里没有密钥,内容密钥由双方身份密钥协商(ECDH)得出,中继和别人都不知道是谁在看;只在这台电脑运行 Ta 时可打开 |
|
|
19
19
|
| 仅自己 | 只在分享者自己的 Ta(这台电脑和配对过的设备)里打开 |
|
|
20
20
|
|
|
21
21
|
有效期 1 / 7 / 30 天或不过期;"电脑关机也能打开"会把加密副本放到中继上,最长 30 天。
|
|
@@ -5,19 +5,91 @@ var TaHostUtil;
|
|
|
5
5
|
TaHostUtil2.WAIT_MS = 1000;
|
|
6
6
|
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
7
7
|
return new Promise((resolve) => {
|
|
8
|
+
let heard = false;
|
|
9
|
+
let answered = false;
|
|
8
10
|
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
9
11
|
const request = {
|
|
10
12
|
name,
|
|
13
|
+
heard: () => {
|
|
14
|
+
heard = true;
|
|
15
|
+
},
|
|
11
16
|
resolve: (answer) => {
|
|
17
|
+
answered = true;
|
|
12
18
|
clearTimeout(timer);
|
|
13
19
|
resolve(answer);
|
|
14
20
|
}
|
|
15
21
|
};
|
|
16
22
|
events.emit(TA_HOST_EVENT, request);
|
|
23
|
+
if (!heard && !answered) {
|
|
24
|
+
clearTimeout(timer);
|
|
25
|
+
resolve(undefined);
|
|
26
|
+
}
|
|
17
27
|
});
|
|
18
28
|
}
|
|
19
29
|
TaHostUtil2.reach = reach;
|
|
30
|
+
function marked(systemPrompt, mark) {
|
|
31
|
+
return role(systemPrompt).includes(mark);
|
|
32
|
+
}
|
|
33
|
+
TaHostUtil2.marked = marked;
|
|
34
|
+
function role(systemPrompt) {
|
|
35
|
+
if (!systemPrompt) {
|
|
36
|
+
return "";
|
|
37
|
+
}
|
|
38
|
+
const open = `<addendum>
|
|
39
|
+
`;
|
|
40
|
+
const start = systemPrompt.indexOf(open);
|
|
41
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
42
|
+
`);
|
|
43
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
44
|
+
return "";
|
|
45
|
+
}
|
|
46
|
+
const end = systemPrompt.indexOf(`
|
|
47
|
+
</addendum>`, start);
|
|
48
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
49
|
+
}
|
|
50
|
+
TaHostUtil2.role = role;
|
|
20
51
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
52
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
53
|
+
var TaAskUtil;
|
|
54
|
+
(function(TaAskUtil2) {
|
|
55
|
+
const LENGTH = 120;
|
|
56
|
+
function entry(question) {
|
|
57
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
58
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
59
|
+
}
|
|
60
|
+
TaAskUtil2.entry = entry;
|
|
61
|
+
function asking(entries) {
|
|
62
|
+
var _a;
|
|
63
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
64
|
+
const entry2 = entries[i];
|
|
65
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
69
|
+
return read(entry2);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
TaAskUtil2.asking = asking;
|
|
75
|
+
function next(asked, entry2) {
|
|
76
|
+
var _a;
|
|
77
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
81
|
+
}
|
|
82
|
+
TaAskUtil2.next = next;
|
|
83
|
+
function read(found) {
|
|
84
|
+
var _a;
|
|
85
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
86
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
90
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
91
|
+
}
|
|
92
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
21
93
|
|
|
22
94
|
// web-src/server-texts.ts
|
|
23
95
|
var ShareServerTexts;
|
|
@@ -10,12 +10,12 @@ const EN = {
|
|
|
10
10
|
accessLink: 'Anyone with the link',
|
|
11
11
|
accessPassword: 'With a password',
|
|
12
12
|
accessSelf: 'Only me',
|
|
13
|
-
accessPeople: '
|
|
14
|
-
accessPeopleShort: '
|
|
13
|
+
accessPeople: 'Friends',
|
|
14
|
+
accessPeopleShort: 'Friends',
|
|
15
15
|
accessPeopleHint: 'Opens only in their own Ta, which proves who it is: the link alone opens nothing. While this computer runs Ta.',
|
|
16
|
-
peopleNone: 'No
|
|
16
|
+
peopleNone: 'No friends yet: add one under Discover → Friends.',
|
|
17
17
|
peopleChoose: 'Choose at least one.',
|
|
18
|
-
peopleOnly: 'Only the
|
|
18
|
+
peopleOnly: 'Only the friends it was shared with open it, in their own Ta.',
|
|
19
19
|
peopleLine: 'for {names}',
|
|
20
20
|
accessLinkShort: 'Public',
|
|
21
21
|
accessPasswordShort: 'Password',
|
|
@@ -112,9 +112,9 @@ const ZH = {
|
|
|
112
112
|
accessPeople: '指定的好友',
|
|
113
113
|
accessPeopleShort: '指定的好友',
|
|
114
114
|
accessPeopleHint: '只能在对方自己的 Ta 里打开,由 Ta 证明身份:光有链接打不开。这台电脑运行 Ta 时可以打开。',
|
|
115
|
-
peopleNone: '
|
|
115
|
+
peopleNone: '还没有好友:在“发现 → 好友”里添加。',
|
|
116
116
|
peopleChoose: '至少选一位。',
|
|
117
|
-
peopleOnly: '
|
|
117
|
+
peopleOnly: '这条链接只给指定的好友,请在他们自己的 Ta 里打开。',
|
|
118
118
|
peopleLine: '给{names}',
|
|
119
119
|
accessLinkShort: '公开',
|
|
120
120
|
accessPasswordShort: '口令',
|
|
@@ -7,7 +7,7 @@ const react_1 = require("./react");
|
|
|
7
7
|
const DAYS = [1, 7, 30, 0];
|
|
8
8
|
/** A row of choices of which one is on, as a segmented control. */
|
|
9
9
|
function Choice({ value, options, onChange, label, }) {
|
|
10
|
-
return (react_1.React.createElement("fieldset", { className: "tsh-choice", "aria-label": label }, options.map(option => (react_1.React.createElement("button", { key: String(option.value), type: "button", "aria-pressed": option.value === value, disabled: option.disabled, className: option.value === value ? '
|
|
10
|
+
return (react_1.React.createElement("fieldset", { className: "ta-segmented tsh-choice", "aria-label": label }, options.map(option => (react_1.React.createElement("button", { key: String(option.value), type: "button", "aria-pressed": option.value === value, disabled: option.disabled, className: option.value === value ? 'ta-on' : '', onClick: () => onChange(option.value) }, option.label)))));
|
|
11
11
|
}
|
|
12
12
|
/** A switch with its label and a quieter line under it; the page's own Switch when it has one. */
|
|
13
13
|
function Toggle({ checked, onChange, label, hint, disabled, }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. Prefix `tsh-`. */
|
|
2
|
-
export declare const STYLE = "\n.tsh-muted { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tsh-center { text-align: center; }\n.tsh-error { margin: 0; color: var(--ta-red); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tsh-input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-input); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.tsh-input:focus { border-color: var(--ta-border-focus); }\n\n/* The dialog. */\n.tsh-dialog { display: flex; flex-direction: column; gap: 14px; width: min(440px, calc(100vw - 48px)); }\n.tsh-options { display: flex; flex-direction: column; gap: 14px; }\n.tsh-preview { border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-raised); padding: 10px 12px; }\n.tsh-preview-wait { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tsh-preview-head { display: flex; justify-content: space-between; gap: 8px; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tsh-lines { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 132px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }\n.tsh-lines li { display: flex; gap: 8px; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.tsh-lines b { flex: none; width: 2.2em; font-weight: 500; color: var(--ta-muted); }\n.tsh-lines span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsh-line-user span { color: var(--ta-text); }\n.tsh-notes { margin: 8px 0 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tsh-field { display: flex; flex-direction: column; gap: 6px; }\n.tsh-label { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }\n.tsh-choice { display: flex; margin: 0; border: 0; min-width: 0; padding: 2px; border-radius: 9px; background: var(--ta-segment); gap: 2px; }\n.tsh-choice button { flex: 1; min-width: 0; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 120ms, color 120ms; }\n.tsh-choice button:hover:not(:disabled) { color: var(--ta-text); }\n.tsh-choice button.tsh-on { background: var(--ta-card); color: var(--ta-text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }\n.tsh-choice button:disabled { opacity: .4; cursor: default; }\n.tsh-password { display: flex; gap: 8px; }\n.tsh-friends { display: flex; flex-wrap: wrap; gap: 6px; }\n.tsh-friends small { flex-basis: 100%; }\n.tsh-friend { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--ta-border-field); border-radius: 14px; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.tsh-friend.tsh-on { border-color: var(--ta-green); background: color-mix(in srgb, var(--ta-green) 10%, transparent); }\n.tsh-friend input { margin: 0; accent-color: var(--ta-green); }\n.tsh-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.tsh-toggle-text { cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: calc(13px * var(--ta-font-scale)); }\n.tsh-toggle-text small { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; }\n.tsh-disabled { opacity: .5; }\n.tsh-actions { display: flex; justify-content: flex-end; gap: 8px; }\n.tsh-made { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }\n.tsh-made .tsh-actions { justify-content: center; }\n.tsh-qr { align-self: center; width: 188px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--ta-border-muted); }\n.tsh-qr svg { display: block; width: 100%; height: auto; }\n.tsh-hint { margin: 0; text-align: center; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.tsh-link { padding: 8px 10px; border-radius: 8px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsh-password-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tsh-password-note code { font-family: var(--ta-mono); color: var(--ta-text); }\n.tsh-stop { align-self: center; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; padding: 4px 8px; border-radius: 6px; }\n.tsh-stop:hover { color: var(--ta-red); background: var(--ta-hover); }\n\n/* My shares: the page fills its place and scrolls, its rows never wider than it. */\n.tsh-page { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 12px 16px 32px; }\n.tsh-rows { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.tsh-item { --ta-swipe-bg: var(--ta-main); min-width: 0; border-radius: 10px; overflow: hidden; }\n.tsh-row { display: flex; align-items: center; gap: 4px; min-width: 0; padding-right: 6px; border-radius: 10px; transition: background 120ms, opacity 200ms; }\n.tsh-row:hover { background: var(--ta-hover); }\n.tsh-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.tsh-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--ta-green); }\n.tsh-tile-password { background: var(--ta-yellow); }\n.tsh-tile-self { background: var(--ta-blue); }\n.tsh-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.tsh-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsh-row-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsh-row-actions { flex: none; display: flex; gap: 2px; opacity: .75; }\n.tsh-row:hover .tsh-row-actions, .tsh-row:focus-within .tsh-row-actions { opacity: 1; }\n:root[data-touch] .tsh-row:hover { background: none; }\n:root[data-handheld] .tsh-item { border-radius: 0; }\n:root[data-touch] .tsh-row-main { padding: 12px 8px; }\n:root[data-touch] .tsh-row-main:active { background: var(--ta-hover); }\n.tsh-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); cursor: pointer; }\n.tsh-icon:hover:not(:disabled) { background: var(--ta-hover-strong); color: var(--ta-text); }\n.tsh-icon.tsh-danger:hover:not(:disabled) { color: var(--ta-red); }\n\n/* What a link shares, in the workbench. */\n.tsh-view { height: 100%; overflow: auto; padding: 18px 20px 32px; box-sizing: border-box; }\n.tsh-view-page { padding: 0; overflow: hidden; }\n.tsh-view.tsh-center { padding-top: 22vh; }\n.tsh-head { margin: 0 auto 18px; max-width: 760px; }\n.tsh-head h2 { margin: 0 0 4px; font-size: calc(18px * var(--ta-font-scale)); line-height: 1.35; word-break: break-word; }\n.tsh-head p { margin: 0 0 12px; }\n.tsh-import { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }\n.tsh-link-button { border: 0; background: none; padding: 2px 4px; color: var(--ta-link); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.tsh-conversation { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }\n.tsh-user { display: flex; justify-content: flex-end; }\n.tsh-bubble { max-width: 85%; padding: 8px 13px; border-radius: 14px 14px 4px 14px; background: var(--ta-user); white-space: pre-wrap; word-break: break-word; }\n.tsh-ta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.tsh-text { min-width: 0; word-break: break-word; }\n.tsh-doc { max-width: 760px; margin: 0 auto; }\n.tsh-tool-wrap { display: flex; flex-direction: column; }\n.tsh-tool { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; padding: 2px 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(13px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.tsh-tool:disabled { cursor: default; }\n.tsh-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-green); transform: translateY(-2px); }\n.tsh-failed .tsh-dot { background: var(--ta-border-field); }\n.tsh-verb { flex: none; }\n.tsh-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-secondary); }\n.tsh-code { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.tsh-output { margin: 4px 0 4px 14px; max-height: 260px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-word; }\n.tsh-ask { max-width: 360px; margin: 12vh auto 0; display: flex; flex-direction: column; gap: 10px; text-align: center; }\n.tsh-ask h3 { margin: 0; font-size: calc(16px * var(--ta-font-scale)); }\n.tsh-ask p { margin: 0; }\n.tsh-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }\n.tsh-image { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; }\n.tsh-plain { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-word; }\n.tsh-download { margin: 20vh auto 0; display: flex; width: fit-content; text-decoration: none; }\n@media (prefers-reduced-motion: reduce) { .tsh-row, .tsh-choice button { transition: none; } }\n";
|
|
2
|
+
export declare const STYLE = "\n.tsh-muted { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tsh-center { text-align: center; }\n.tsh-error { margin: 0; color: var(--ta-red); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tsh-input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-input); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.tsh-input:focus { border-color: var(--ta-border-focus); }\n\n/* The dialog. */\n.tsh-dialog { display: flex; flex-direction: column; gap: 14px; width: min(440px, calc(100vw - 48px)); }\n.tsh-options { display: flex; flex-direction: column; gap: 14px; }\n.tsh-preview { border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-raised); padding: 10px 12px; }\n.tsh-preview-wait { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tsh-preview-head { display: flex; justify-content: space-between; gap: 8px; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tsh-lines { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 132px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }\n.tsh-lines li { display: flex; gap: 8px; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.tsh-lines b { flex: none; width: 2.2em; font-weight: 500; color: var(--ta-muted); }\n.tsh-lines span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsh-line-user span { color: var(--ta-text); }\n.tsh-notes { margin: 8px 0 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tsh-field { display: flex; flex-direction: column; gap: 6px; }\n.tsh-label { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }\n/* The page's segmented control (.ta-segmented); only what it lacks: long labels and a disabled segment */\n.tsh-choice button { min-width: 0; padding: 0 6px; font-family: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.tsh-choice button:disabled { opacity: .4; cursor: default; }\n.tsh-password { display: flex; gap: 8px; }\n.tsh-friends { display: flex; flex-wrap: wrap; gap: 6px; }\n.tsh-friends small { flex-basis: 100%; }\n.tsh-friend { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--ta-border-field); border-radius: 14px; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.tsh-friend.tsh-on { border-color: var(--ta-green); background: color-mix(in srgb, var(--ta-green) 10%, transparent); }\n.tsh-friend input { margin: 0; accent-color: var(--ta-green); }\n.tsh-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.tsh-toggle-text { cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: calc(13px * var(--ta-font-scale)); }\n.tsh-toggle-text small { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; }\n.tsh-disabled { opacity: .5; }\n.tsh-actions { display: flex; justify-content: flex-end; gap: 8px; }\n.tsh-made { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }\n.tsh-made .tsh-actions { justify-content: center; }\n.tsh-qr { align-self: center; width: 188px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--ta-border-muted); }\n.tsh-qr svg { display: block; width: 100%; height: auto; }\n.tsh-hint { margin: 0; text-align: center; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.tsh-link { padding: 8px 10px; border-radius: 8px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsh-password-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tsh-password-note code { font-family: var(--ta-mono); color: var(--ta-text); }\n.tsh-stop { align-self: center; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; padding: 4px 8px; border-radius: 6px; }\n.tsh-stop:hover { color: var(--ta-red); background: var(--ta-hover); }\n\n/* My shares: the page fills its place and scrolls, its rows never wider than it. */\n.tsh-page { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; width: 100%; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 12px 16px 32px; }\n.tsh-rows { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.tsh-item { --ta-swipe-bg: var(--ta-main); min-width: 0; border-radius: 10px; overflow: hidden; }\n.tsh-row { display: flex; align-items: center; gap: 4px; min-width: 0; padding-right: 6px; border-radius: 10px; transition: background 120ms, opacity 200ms; }\n.tsh-row:hover { background: var(--ta-hover); }\n.tsh-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.tsh-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--ta-green); }\n.tsh-tile-password { background: var(--ta-yellow); }\n.tsh-tile-self { background: var(--ta-blue); }\n.tsh-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.tsh-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsh-row-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsh-row-actions { flex: none; display: flex; gap: 2px; opacity: .75; }\n.tsh-row:hover .tsh-row-actions, .tsh-row:focus-within .tsh-row-actions { opacity: 1; }\n:root[data-touch] .tsh-row:hover { background: none; }\n:root[data-handheld] .tsh-item { border-radius: 0; }\n:root[data-touch] .tsh-row-main { padding: 12px 8px; }\n:root[data-touch] .tsh-row-main:active { background: var(--ta-hover); }\n.tsh-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); cursor: pointer; }\n.tsh-icon:hover:not(:disabled) { background: var(--ta-hover-strong); color: var(--ta-text); }\n.tsh-icon.tsh-danger:hover:not(:disabled) { color: var(--ta-red); }\n\n/* What a link shares, in the workbench. */\n.tsh-view { height: 100%; overflow: auto; padding: 18px 20px 32px; box-sizing: border-box; }\n.tsh-view-page { padding: 0; overflow: hidden; }\n.tsh-view.tsh-center { padding-top: 22vh; }\n.tsh-head { margin: 0 auto 18px; max-width: 760px; }\n.tsh-head h2 { margin: 0 0 4px; font-size: calc(18px * var(--ta-font-scale)); line-height: 1.35; word-break: break-word; }\n.tsh-head p { margin: 0 0 12px; }\n.tsh-import { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }\n.tsh-link-button { border: 0; background: none; padding: 2px 4px; color: var(--ta-link); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.tsh-conversation { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }\n.tsh-user { display: flex; justify-content: flex-end; }\n.tsh-bubble { max-width: 85%; padding: 8px 13px; border-radius: 14px 14px 4px 14px; background: var(--ta-user); white-space: pre-wrap; word-break: break-word; }\n.tsh-ta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.tsh-text { min-width: 0; word-break: break-word; }\n.tsh-doc { max-width: 760px; margin: 0 auto; }\n.tsh-tool-wrap { display: flex; flex-direction: column; }\n.tsh-tool { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; padding: 2px 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(13px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.tsh-tool:disabled { cursor: default; }\n.tsh-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-green); transform: translateY(-2px); }\n.tsh-failed .tsh-dot { background: var(--ta-border-field); }\n.tsh-verb { flex: none; }\n.tsh-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-secondary); }\n.tsh-code { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.tsh-output { margin: 4px 0 4px 14px; max-height: 260px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-word; }\n.tsh-ask { max-width: 360px; margin: 12vh auto 0; display: flex; flex-direction: column; gap: 10px; text-align: center; }\n.tsh-ask h3 { margin: 0; font-size: calc(16px * var(--ta-font-scale)); }\n.tsh-ask p { margin: 0; }\n.tsh-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }\n.tsh-image { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; }\n.tsh-plain { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-word; }\n.tsh-download { margin: 20vh auto 0; display: flex; width: fit-content; text-decoration: none; }\n@media (prefers-reduced-motion: reduce) { .tsh-row { transition: none; } }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -24,10 +24,8 @@ exports.STYLE = `
|
|
|
24
24
|
.tsh-notes { margin: 8px 0 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
25
25
|
.tsh-field { display: flex; flex-direction: column; gap: 6px; }
|
|
26
26
|
.tsh-label { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }
|
|
27
|
-
|
|
28
|
-
.tsh-choice button {
|
|
29
|
-
.tsh-choice button:hover:not(:disabled) { color: var(--ta-text); }
|
|
30
|
-
.tsh-choice button.tsh-on { background: var(--ta-card); color: var(--ta-text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
|
|
27
|
+
/* The page's segmented control (.ta-segmented); only what it lacks: long labels and a disabled segment */
|
|
28
|
+
.tsh-choice button { min-width: 0; padding: 0 6px; font-family: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
31
29
|
.tsh-choice button:disabled { opacity: .4; cursor: default; }
|
|
32
30
|
.tsh-password { display: flex; gap: 8px; }
|
|
33
31
|
.tsh-friends { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
@@ -52,7 +50,7 @@ exports.STYLE = `
|
|
|
52
50
|
.tsh-stop:hover { color: var(--ta-red); background: var(--ta-hover); }
|
|
53
51
|
|
|
54
52
|
/* My shares: the page fills its place and scrolls, its rows never wider than it. */
|
|
55
|
-
.tsh-page { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 12px 16px 32px; }
|
|
53
|
+
.tsh-page { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; width: 100%; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 12px 16px 32px; }
|
|
56
54
|
.tsh-rows { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; }
|
|
57
55
|
.tsh-item { --ta-swipe-bg: var(--ta-main); min-width: 0; border-radius: 10px; overflow: hidden; }
|
|
58
56
|
.tsh-row { display: flex; align-items: center; gap: 4px; min-width: 0; padding-right: 6px; border-radius: 10px; transition: background 120ms, opacity 200ms; }
|
|
@@ -105,7 +103,7 @@ exports.STYLE = `
|
|
|
105
103
|
.tsh-image { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; }
|
|
106
104
|
.tsh-plain { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-word; }
|
|
107
105
|
.tsh-download { margin: 20vh auto 0; display: flex; width: fit-content; text-decoration: none; }
|
|
108
|
-
@media (prefers-reduced-motion: reduce) { .tsh-row
|
|
106
|
+
@media (prefers-reduced-motion: reduce) { .tsh-row { transition: none; } }
|
|
109
107
|
`;
|
|
110
108
|
function injectStyle() {
|
|
111
109
|
const element = document.createElement('style');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-share",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.1",
|
|
4
4
|
"description": "A pi package for Ta: share a conversation, a page or a file by a link, public, with a password or for yourself, end to end through the relay; open and import what others share",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -51,6 +51,14 @@
|
|
|
51
51
|
"host": "./host/index.mjs",
|
|
52
52
|
"extensions": [
|
|
53
53
|
"./extension/index.mjs"
|
|
54
|
-
]
|
|
54
|
+
],
|
|
55
|
+
"permissions": {
|
|
56
|
+
"host": {
|
|
57
|
+
"*": "settings.manage"
|
|
58
|
+
},
|
|
59
|
+
"tools": {
|
|
60
|
+
"share_link": "chat.share"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
55
63
|
}
|
|
56
64
|
}
|
|
@@ -8,12 +8,12 @@ var EN = {
|
|
|
8
8
|
accessLink: "Anyone with the link",
|
|
9
9
|
accessPassword: "With a password",
|
|
10
10
|
accessSelf: "Only me",
|
|
11
|
-
accessPeople: "
|
|
12
|
-
accessPeopleShort: "
|
|
11
|
+
accessPeople: "Friends",
|
|
12
|
+
accessPeopleShort: "Friends",
|
|
13
13
|
accessPeopleHint: "Opens only in their own Ta, which proves who it is: the link alone opens nothing. While this computer runs Ta.",
|
|
14
|
-
peopleNone: "No
|
|
14
|
+
peopleNone: "No friends yet: add one under Discover → Friends.",
|
|
15
15
|
peopleChoose: "Choose at least one.",
|
|
16
|
-
peopleOnly: "Only the
|
|
16
|
+
peopleOnly: "Only the friends it was shared with open it, in their own Ta.",
|
|
17
17
|
peopleLine: "for {names}",
|
|
18
18
|
accessLinkShort: "Public",
|
|
19
19
|
accessPasswordShort: "Password",
|
|
@@ -110,9 +110,9 @@ var ZH = {
|
|
|
110
110
|
accessPeople: "指定的好友",
|
|
111
111
|
accessPeopleShort: "指定的好友",
|
|
112
112
|
accessPeopleHint: "只能在对方自己的 Ta 里打开,由 Ta 证明身份:光有链接打不开。这台电脑运行 Ta 时可以打开。",
|
|
113
|
-
peopleNone: "
|
|
113
|
+
peopleNone: "还没有好友:在“发现 → 好友”里添加。",
|
|
114
114
|
peopleChoose: "至少选一位。",
|
|
115
|
-
peopleOnly: "
|
|
115
|
+
peopleOnly: "这条链接只给指定的好友,请在他们自己的 Ta 里打开。",
|
|
116
116
|
peopleLine: "给{names}",
|
|
117
117
|
accessLinkShort: "公开",
|
|
118
118
|
accessPasswordShort: "口令",
|
|
@@ -300,14 +300,14 @@ function Choice({
|
|
|
300
300
|
label
|
|
301
301
|
}) {
|
|
302
302
|
return /* @__PURE__ */ React.createElement("fieldset", {
|
|
303
|
-
className: "tsh-choice",
|
|
303
|
+
className: "ta-segmented tsh-choice",
|
|
304
304
|
"aria-label": label
|
|
305
305
|
}, options.map((option) => /* @__PURE__ */ React.createElement("button", {
|
|
306
306
|
key: String(option.value),
|
|
307
307
|
type: "button",
|
|
308
308
|
"aria-pressed": option.value === value,
|
|
309
309
|
disabled: option.disabled,
|
|
310
|
-
className: option.value === value ? "
|
|
310
|
+
className: option.value === value ? "ta-on" : "",
|
|
311
311
|
onClick: () => onChange(option.value)
|
|
312
312
|
}, option.label)));
|
|
313
313
|
}
|
|
@@ -1074,10 +1074,8 @@ var STYLE = `
|
|
|
1074
1074
|
.tsh-notes { margin: 8px 0 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
1075
1075
|
.tsh-field { display: flex; flex-direction: column; gap: 6px; }
|
|
1076
1076
|
.tsh-label { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }
|
|
1077
|
-
|
|
1078
|
-
.tsh-choice button {
|
|
1079
|
-
.tsh-choice button:hover:not(:disabled) { color: var(--ta-text); }
|
|
1080
|
-
.tsh-choice button.tsh-on { background: var(--ta-card); color: var(--ta-text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
|
|
1077
|
+
/* The page's segmented control (.ta-segmented); only what it lacks: long labels and a disabled segment */
|
|
1078
|
+
.tsh-choice button { min-width: 0; padding: 0 6px; font-family: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1081
1079
|
.tsh-choice button:disabled { opacity: .4; cursor: default; }
|
|
1082
1080
|
.tsh-password { display: flex; gap: 8px; }
|
|
1083
1081
|
.tsh-friends { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
@@ -1102,7 +1100,7 @@ var STYLE = `
|
|
|
1102
1100
|
.tsh-stop:hover { color: var(--ta-red); background: var(--ta-hover); }
|
|
1103
1101
|
|
|
1104
1102
|
/* My shares: the page fills its place and scrolls, its rows never wider than it. */
|
|
1105
|
-
.tsh-page { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 12px 16px 32px; }
|
|
1103
|
+
.tsh-page { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; width: 100%; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 12px 16px 32px; }
|
|
1106
1104
|
.tsh-rows { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; }
|
|
1107
1105
|
.tsh-item { --ta-swipe-bg: var(--ta-main); min-width: 0; border-radius: 10px; overflow: hidden; }
|
|
1108
1106
|
.tsh-row { display: flex; align-items: center; gap: 4px; min-width: 0; padding-right: 6px; border-radius: 10px; transition: background 120ms, opacity 200ms; }
|
|
@@ -1155,7 +1153,7 @@ var STYLE = `
|
|
|
1155
1153
|
.tsh-image { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; }
|
|
1156
1154
|
.tsh-plain { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-word; }
|
|
1157
1155
|
.tsh-download { margin: 20vh auto 0; display: flex; width: fit-content; text-decoration: none; }
|
|
1158
|
-
@media (prefers-reduced-motion: reduce) { .tsh-row
|
|
1156
|
+
@media (prefers-reduced-motion: reduce) { .tsh-row { transition: none; } }
|
|
1159
1157
|
`;
|
|
1160
1158
|
function injectStyle() {
|
|
1161
1159
|
const element = document.createElement("style");
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Cell - Ta Sync
|
|
2
|
+
|
|
3
|
+
A pi package that comes with Ta (on by default; turn it off in Settings → Extensions): sync. Your settings, instructions, skills and extensions the same on each of your computers, **without an account**: the computers share a room of the relay that only they are in, sealed end to end, which the relay cannot read. Design record: [docs/design/ta-sync.md](../../docs/design/ta-sync.md).
|
|
4
|
+
|
|
5
|
+
- **Turn it on**: Settings → Sync, Turn on sync. This computer adds the others.
|
|
6
|
+
- **Add a computer**: Add a device gives a link and a QR code (7 days); in Ta on the other computer, Join a sync, paste the link or scan the code; back on the first computer, Allow. The new computer takes what the sync has, keeping aside what it had.
|
|
7
|
+
- **What to sync** (each computer for itself): settings (settings.json but the paths and commands of this computer, and keybindings), instructions (AGENTS.md and the like), skills, prompts and themes, models and MCP (may hold API keys, off by default), extensions (packages from npm or git installed by their source, your own extensions copied whole), data of extensions (the look of Ta, your double, and the keys extensions declare).
|
|
8
|
+
- **When**: a change on one reaches the others online within seconds; one offline catches up when it starts; Sync now does it at once.
|
|
9
|
+
- **Conflicts**: settings merge key by key; a file changed on both takes the later. What a sync replaced or deleted here is kept in `sync/replaced/<time>/` of the agent directory, and the page says so.
|
|
10
|
+
- **Stop**: a computer that stops only stops itself; when the one that turned sync on stops, every computer does. Each keeps what it has. That computer can also remove another.
|
|
11
|
+
|
|
12
|
+
Never synced: sign-ins (`auth.json`), the identity and keys of rooms, sessions, the state of a device or of a directory.
|
|
13
|
+
|
|
14
|
+
## Sync through a folder of a cloud drive (no relay)
|
|
15
|
+
|
|
16
|
+
In Settings → Relays, Sync in iCloud Drive (or another drive; or type a `~/…` path in Add a relay) makes sync go through that folder, **with no relay at all**: the drive keeps the folder the same on your computers, and what Ta writes there is sealed, names included, so the drive sees nothing of it.
|
|
17
|
+
|
|
18
|
+
- Turning on and joining: once on, Add a device gives a `ta-sync://folder#…` link; on the other computer, Join a sync and paste it, nobody need allow it. The link holds the key of the sync for good: show it only to your own computers. The other computer needs the same folder of the drive.
|
|
19
|
+
- How fast depends on the drive bringing the files (iCloud often takes seconds to minutes); Ta watches the folder and looks every 30 seconds too.
|
|
20
|
+
- The folder holds `ta-sync/<space>/`: each computer writes only its own directory, so the drive makes no conflicted copies. The key of the sync is in `sync/folder.json` of the agent directory.
|
|
21
|
+
|
|
22
|
+
## Sync through WebDAV, S3 or a git repository of your own
|
|
23
|
+
|
|
24
|
+
In Settings → Relays, Sync in WebDAV, Sync in S3 or Sync in Git: fill in the address and keys (Jianguoyun, Nextcloud, a NAS, AWS, Cloudflare R2, MinIO, a private repository on GitHub or Gitee…), and once Ta wrote there it syncs there, **with no relay**, content and names sealed first. The `ta-sync://store#…` link of Add a device carries the sign-in of the store, so another computer joins by pasting it: show it only to your own computers. The built-in extension `@celljs/ta-sync-cloud` adds both.
|
|
25
|
+
|
|
26
|
+
## Move to another computer
|
|
27
|
+
|
|
28
|
+
On a new computer or after a reinstall, move everything at once, **the conversations too**, as WeChat moves a chat history: Settings → Move to another computer.
|
|
29
|
+
|
|
30
|
+
- **Over your network**: on the old computer choose what goes and press Start; a QR code shows. On the new one, under To this computer, pick it among the computers nearby, or paste its link, or scan the code with the Ta app; both show the same six digits, and once they match you Allow it on the old computer. Sealed end to end, never through the relay, as fast as your network.
|
|
31
|
+
- **Backup file**: when the two are on different networks, or to keep a copy, back up to one `.tabackup` file (in Downloads by default) and restore it on the new computer. A password seals it; sign-ins and the identity go only with one.
|
|
32
|
+
- **How it merges**: conversations the new computer has stay, never doubled; settings merge key by key, the old computer's winning; the directories of conversations and the paths in the data of extensions become the new computer's. What was replaced is kept in `sync/replaced/<time>/`.
|
|
33
|
+
- **Identity and rooms** (off by default): who you are in rooms, the rooms and your friends go too, so others still see you on the new computer and nobody invites you again. Rooms the new computer was in keep its own identity. Whoever has your identity can pass for you: a backup file needs a password for it.
|
|
34
|
+
|
|
35
|
+
## The same you on several computers
|
|
36
|
+
|
|
37
|
+
Turn on Identity and rooms in device sync (off by default, asked first): your computers are one identity in rooms, with the same rooms, friends and permissions of your double. When someone asks your double, one computer answers, the one you are at first. The identity of the computer that turned it on first holds; rooms a later one was in keep the identity it joined them with. See `docs/design/ta-sync.md` 9.
|
|
38
|
+
|
|
39
|
+
## Data of extensions that goes with the user
|
|
40
|
+
|
|
41
|
+
An extension declares in its package.json which keys of `pi.storage` are the user's (a game's best score, its preferences), and they go to the user's other computers:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{ "pi": { "web": ["./web.js"], "sync": ["best", "settings"] } }
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Declare only small values of the user; nothing of one computer or of a directory (`pi.storage.directory`).
|
|
48
|
+
|
|
49
|
+
## Methods of its host
|
|
50
|
+
|
|
51
|
+
A web extension calls them with `callPackageHost('@celljs/ta-sync', …)`: `status()`, `enable()`, `invite(renew?)`, `join(link)`, `answer(ask, accept)`, `leave()`, `removeDevice(member)`, `setResources({ settings?: boolean, … })`, `syncNow()`; all but `invite` answer the `SyncStatus` as it is now. Moving: `migrateCounts()`, `migrateOpen(categories)`, `migrateAnswer(ask, allow)`, `migrateCloseOut()`, `migrateDiscover()`, `migrateStopDiscovering()`, `migrateReceive(link)`, `migrateCloseIn()`, `migrateExport(categories, password?, dir?)`, `migrateImport(path, password?)`, `migrateBackups()`; the status is in the key `migrate` of the data of the package. The status is also in the key `status` of the data of the package, which the page hears.
|
|
52
|
+
|
|
53
|
+
## Development
|
|
54
|
+
|
|
55
|
+
`bun run build`: compiles and bundles the page (`web/index.js`) and the sync (`host/index.mjs`). `apps/ta/test/sync.spec.ts` starts a relay and two `ta serve`, and tests joining, sync both ways and stopping.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Cell - Ta Sync
|
|
2
|
+
|
|
3
|
+
Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):设备同步。让你的每台电脑都有同样的设置、指令、技能和扩展,**不用登录账号**:几台电脑在中继上共用一个只有它们自己的房间,内容端到端加密,中继读不到。设计记录见 [docs/design/ta-sync.md](../../docs/design/ta-sync.md)。
|
|
4
|
+
|
|
5
|
+
- **开启**:设置 → 设备同步,点"开启同步"。这台电脑负责添加设备。
|
|
6
|
+
- **添加电脑**:点"添加设备"得到链接和二维码(7 天有效);在另一台电脑的 Ta 里点"加入已有的同步",粘贴链接或扫码;回到第一台电脑点"同意"。新电脑以已有的同步为准,原有内容留底。
|
|
7
|
+
- **同步哪些内容**(每台电脑各自设置):设置(settings.json 里本机路径和命令以外的部分、快捷键)、指令(AGENTS.md 等)、技能、提示词和主题、模型与 MCP(可能含 API 密钥,默认关)、扩展(npm / git 来源的包按来源安装,自己做的扩展整体复制)、扩展数据(Ta 的外观设置、分身的样子,以及扩展声明的键)。
|
|
8
|
+
- **什么时候同步**:任何一台改了,其他在线的电脑几秒内跟上;离线的下次启动时补上;也可以点"立即同步"。
|
|
9
|
+
- **冲突**:设置按键合并;同一个文件两边都改了,以较新的为准。被覆盖或删除的本机内容保存在 agent 目录的 `sync/replaced/<时间>/`,同步页上有提示。
|
|
10
|
+
- **停止**:一台电脑停止只影响它自己;开启同步的电脑停止,所有电脑都停止。各自保留现有内容。开启同步的电脑可以移除别的电脑。
|
|
11
|
+
|
|
12
|
+
不同步:登录凭据(`auth.json`)、身份与房间密钥、会话、按设备或按目录的界面状态。
|
|
13
|
+
|
|
14
|
+
## 经网盘文件夹同步(不经过中继)
|
|
15
|
+
|
|
16
|
+
在 设置 → 中继服务 里点"用 iCloud Drive 同步"(或别的网盘,也可以在"添加中继"里填 `~/…` 路径),设备同步就改为经这个文件夹进行,**完全不经过中继**:网盘负责把文件夹在你的几台电脑间保持一致,Ta 写进去的内容和文件名都先加密,网盘看不到。
|
|
17
|
+
|
|
18
|
+
- 开启和加入:开启同步后点"添加设备"得到 `ta-sync://folder#…` 链接,在另一台电脑上"加入已有的同步"粘贴即可,不需要谁同意;链接里有同步密钥且长期有效,只给自己的电脑。另一台电脑要能访问网盘里的同一个文件夹。
|
|
19
|
+
- 速度取决于网盘把文件同步过来的快慢(iCloud 常是几秒到几分钟);Ta 监听文件夹变化,另外每 30 秒检查一次。
|
|
20
|
+
- 文件夹里是 `ta-sync/<空间>/`:每台电脑只写自己的子目录,所以网盘不会出现冲突副本。同步密钥存在本机 agent 目录的 `sync/folder.json`。
|
|
21
|
+
|
|
22
|
+
## 经自己的 WebDAV、S3 或 git 仓库同步
|
|
23
|
+
|
|
24
|
+
设置 → 中继服务 里点"用 WebDAV 同步""用 S3 同步"或"用 Git 同步",填好地址和密钥(坚果云、Nextcloud、NAS、AWS、Cloudflare R2、MinIO,或 GitHub、Gitee 上的私有仓库都可以),Ta 试写成功后就用它同步,同样**不经过中继**,内容和文件名先加密。"添加设备"给出的 `ta-sync://store#…` 链接里带着存储的登录信息,另一台电脑粘贴就能加入,只发给自己的电脑。这几种存储由内置扩展 `@celljs/ta-sync-cloud` 提供。
|
|
25
|
+
|
|
26
|
+
## 迁移到另一台电脑
|
|
27
|
+
|
|
28
|
+
换电脑或重装时,像微信迁移聊天记录一样一次搬完,**包括对话**:设置 → 迁移到另一台电脑。
|
|
29
|
+
|
|
30
|
+
- **局域网直连**:旧电脑选好内容点"开始",出现二维码;新电脑在"迁入到这台电脑"里从附近的电脑中选它,或粘贴链接、用 Ta 手机 App 扫码;两边显示同一串 6 位数字,核对后在旧电脑上点"同意"。端到端加密,不经过中继,速度取决于你的网络。
|
|
31
|
+
- **备份文件**:两台电脑不在同一网络,或者想留一份,就备份成一个 `.tabackup` 文件(默认放在"下载"),带到新电脑上恢复。可以设密码加密;登录凭据和身份只有设了密码才会写进去。
|
|
32
|
+
- **合并方式**:新电脑已有的对话保留,不会重复;设置按键合并,旧电脑的值优先;对话的目录、扩展数据里的路径都换成新电脑的。被替换的原有内容保存在 `sync/replaced/<时间>/`。
|
|
33
|
+
- **身份与房间**(默认不勾):你在房间里的身份、所在的房间和 好友一起带过去,新电脑上别人看到的还是你,不用重新邀请。新电脑原来所在的房间保留原来的身份。拿到身份的人就能冒充你,所以备份文件必须设密码。
|
|
34
|
+
|
|
35
|
+
## 几台电脑是同一个你
|
|
36
|
+
|
|
37
|
+
设备同步里打开"身份与房间"(默认关,打开时会确认):这几台电脑在房间里是同一个身份,房间、好友和分身的授权都一样。别人 @ 你的分身时,只由一台回答:优先是你正在用的那台。先打开的电脑的身份为准,后打开的电脑原来所在的房间保留原来的身份。详见 `docs/design/ta-sync.md` 第 9 节。
|
|
38
|
+
|
|
39
|
+
## 扩展的数据跟着用户走
|
|
40
|
+
|
|
41
|
+
扩展在 package.json 里声明哪些 `pi.storage` 键是用户的(例如游戏的最高分、扩展的偏好),它们就会同步到用户的其他电脑:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{ "pi": { "web": ["./web.js"], "sync": ["best", "settings"] } }
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
只声明属于用户的小值;属于这台电脑或某个目录的(`pi.storage.directory`)不要声明。
|
|
48
|
+
|
|
49
|
+
## 包宿主的方法
|
|
50
|
+
|
|
51
|
+
Web 扩展经 `callPackageHost('@celljs/ta-sync', …)` 调用:`status()`、`enable()`、`invite(renew?)`、`join(link)`、`answer(ask, accept)`、`leave()`、`removeDevice(member)`、`setResources({ settings?: boolean, … })`、`syncNow()`;除 `invite` 外都返回最新的 `SyncStatus`。迁移:`migrateCounts()`、`migrateOpen(categories)`、`migrateAnswer(ask, allow)`、`migrateCloseOut()`、`migrateDiscover()`、`migrateStopDiscovering()`、`migrateReceive(link)`、`migrateCloseIn()`、`migrateExport(categories, password?, dir?)`、`migrateImport(path, password?)`、`migrateBackups()`,状态在包数据的 `migrate` 键里。状态也写在包数据的 `status` 键里,页面据此刷新。
|
|
52
|
+
|
|
53
|
+
## 开发
|
|
54
|
+
|
|
55
|
+
`bun run build`:编译并打包页面(`web/index.js`)和同步服务(`host/index.mjs`)。`apps/ta/test/sync.spec.ts` 起一个本地中继和两个 `ta serve`,测加入、双向同步和停止。
|