@celljs/ta 4.11.0 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/cli.mjs +1006 -164
- package/dist/gateway.mjs +161 -2
- package/dist/pi/CHANGELOG.md +15 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +1 -1
- package/dist/pi/packages/ta-agents/README.md +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +266 -25
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +7 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +8 -3
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +12 -4
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +72 -2
- package/dist/pi/packages/ta-agents/lib/agent-session.js +183 -18
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +16 -2
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +45 -4
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +17 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +51 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +7 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +12 -0
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +157 -0
- package/dist/pi/packages/ta-bots/package.json +7 -2
- package/dist/pi/packages/ta-changes/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-changes/package.json +8 -2
- package/dist/pi/packages/ta-channels/README.en.md +3 -1
- package/dist/pi/packages/ta-channels/README.md +3 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +55 -2
- package/dist/pi/packages/ta-channels/host/index.mjs +268 -8
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +8 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/room.js +31 -5
- package/dist/pi/packages/ta-channels/lib/sidebar.js +31 -13
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +10 -13
- package/dist/pi/packages/ta-channels/lib/team-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/team-view.js +45 -0
- package/dist/pi/packages/ta-channels/lib/team.d.ts +20 -4
- package/dist/pi/packages/ta-channels/lib/team.js +87 -6
- package/dist/pi/packages/ta-channels/lib/views.d.ts +12 -0
- package/dist/pi/packages/ta-channels/lib/views.js +19 -0
- package/dist/pi/packages/ta-channels/package.json +26 -2
- package/dist/pi/packages/ta-channels/web/index.js +191 -36
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +2 -2
- package/dist/pi/packages/ta-cron/README.md +2 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +91 -257
- package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
- package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +11 -7
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
- package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
- package/dist/pi/packages/ta-cron/lib/index.js +0 -2
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/page.js +24 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +8 -0
- package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
- package/dist/pi/packages/ta-cron/package.json +10 -2
- package/dist/pi/packages/ta-cron/web/index.js +607 -784
- package/dist/pi/packages/ta-extensions/README.en.md +1 -2
- package/dist/pi/packages/ta-extensions/README.md +1 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
- package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
- package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
- package/dist/pi/packages/ta-extensions/package.json +10 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +16 -11
- package/dist/pi/packages/ta-extensions/web/index.js +176 -97
- package/dist/pi/packages/ta-games/package.json +8 -2
- package/dist/pi/packages/ta-glance/README.en.md +1 -0
- package/dist/pi/packages/ta-glance/README.md +1 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +425 -3
- package/dist/pi/packages/ta-glance/lib/card.js +42 -15
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +10 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.js +97 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +3 -3
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +3 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +7 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +45 -9
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +9 -0
- package/dist/pi/packages/ta-glance/lib/index.js +4 -1
- package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/style.js +187 -102
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-glance/web/index.js +272 -124
- package/dist/pi/packages/ta-initiative/README.en.md +66 -0
- package/dist/pi/packages/ta-initiative/README.md +66 -0
- package/dist/pi/packages/ta-initiative/extension/index.mjs +720 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
- package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +238 -0
- package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
- package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
- package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
- package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
- package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
- package/dist/pi/packages/ta-initiative/package.json +63 -0
- package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
- package/dist/pi/packages/ta-launcher/README.en.md +2 -1
- package/dist/pi/packages/ta-launcher/README.md +2 -1
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +58 -1
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +160 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +2 -1
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +5 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +155 -9
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +54 -8
- package/dist/pi/packages/ta-manual/web/index.js +750 -10
- package/dist/pi/packages/ta-moments/README.en.md +29 -0
- package/dist/pi/packages/ta-moments/README.md +29 -0
- package/dist/pi/packages/ta-moments/extension/index.mjs +1766 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2394 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
- package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/context.js +35 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
- package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
- package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
- package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
- package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
- package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/host.js +11 -0
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
- package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
- package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-moments/lib/index.js +50 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
- package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
- package/dist/pi/packages/ta-moments/lib/page.js +307 -0
- package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
- package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
- package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
- package/dist/pi/packages/ta-moments/lib/store.js +108 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/style.js +155 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
- package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
- package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
- package/dist/pi/packages/ta-moments/package.json +61 -0
- package/dist/pi/packages/ta-moments/web/index.js +1987 -0
- package/dist/pi/packages/ta-nearby/README.en.md +33 -0
- package/dist/pi/packages/ta-nearby/README.md +33 -0
- package/dist/pi/packages/ta-nearby/extension/index.mjs +389 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
- package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
- package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
- package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
- package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
- package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
- package/dist/pi/packages/ta-nearby/package.json +65 -0
- package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
- package/dist/pi/packages/ta-notify/README.en.md +3 -1
- package/dist/pi/packages/ta-notify/README.md +3 -1
- package/dist/pi/packages/ta-notify/extension/index.mjs +64 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
- package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
- package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
- package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-notify/lib/style.js +1 -1
- package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
- package/dist/pi/packages/ta-notify/package.json +7 -2
- package/dist/pi/packages/ta-notify/web/index.js +3 -2
- package/dist/pi/packages/ta-recall/README.en.md +15 -6
- package/dist/pi/packages/ta-recall/README.md +15 -6
- package/dist/pi/packages/ta-recall/extension/index.mjs +291 -134
- package/dist/pi/packages/ta-recall/host/index.mjs +451 -116
- package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
- package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
- package/dist/pi/packages/ta-recall/lib/conversations.js +6 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.js +104 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/extension.js +35 -26
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +18 -10
- package/dist/pi/packages/ta-recall/lib/i18n.js +40 -24
- package/dist/pi/packages/ta-recall/lib/index.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/index.js +5 -4
- package/dist/pi/packages/ta-recall/lib/keep-card.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/keep-card.js +83 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +15 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.js +55 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +92 -18
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +19 -9
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +16 -6
- package/dist/pi/packages/ta-recall/lib/recall-service.js +101 -11
- package/dist/pi/packages/ta-recall/lib/requests-util.d.ts +6 -0
- package/dist/pi/packages/ta-recall/lib/requests-util.js +37 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +5 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/settings.js +1 -1
- package/dist/pi/packages/ta-recall/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/style.js +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.js +10 -5
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +14 -5
- package/dist/pi/packages/ta-recall/lib/tool.js +29 -17
- package/dist/pi/packages/ta-recall/package.json +13 -5
- package/dist/pi/packages/ta-recall/web/index.js +397 -153
- package/dist/pi/packages/ta-rooms/README.en.md +14 -5
- package/dist/pi/packages/ta-rooms/README.md +14 -5
- package/dist/pi/packages/ta-rooms/extension/index.mjs +526 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +1734 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.d.ts +25 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +5 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.d.ts +26 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +84 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.d.ts +22 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +140 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +117 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.js +476 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +212 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +258 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +82 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +527 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.d.ts +19 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.js +124 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +131 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.js +238 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +48 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +151 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.d.ts +34 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +228 -0
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +33 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +203 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +47 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +224 -0
- package/dist/pi/packages/ta-rooms/lib/host.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/host.js +25 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +27 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.js +68 -18
- package/dist/pi/packages/ta-rooms/lib/index.js +41 -3
- package/dist/pi/packages/ta-rooms/lib/members-view.js +44 -3
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +97 -10
- package/dist/pi/packages/ta-rooms/lib/page.js +223 -45
- package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +2 -4
- package/dist/pi/packages/ta-rooms/lib/room-view.js +57 -35
- package/dist/pi/packages/ta-rooms/lib/rooms-home.d.ts +32 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-home.js +141 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +8 -2
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +68 -36
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +126 -50
- package/dist/pi/packages/ta-rooms/lib/tasks-view.d.ts +41 -0
- package/dist/pi/packages/ta-rooms/lib/tasks-view.js +228 -0
- package/dist/pi/packages/ta-rooms/package.json +19 -4
- package/dist/pi/packages/ta-rooms/web/index.js +2585 -470
- package/dist/pi/packages/ta-share/README.en.md +1 -1
- package/dist/pi/packages/ta-share/README.md +1 -1
- package/dist/pi/packages/ta-share/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
- package/dist/pi/packages/ta-share/lib/shares-page.js +35 -11
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +14 -10
- package/dist/pi/packages/ta-share/package.json +10 -2
- package/dist/pi/packages/ta-share/web/index.js +56 -31
- package/dist/pi/packages/ta-sync/README.en.md +55 -0
- package/dist/pi/packages/ta-sync/README.md +55 -0
- package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
- package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/host.js +94 -0
- package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
- package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
- package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-sync/lib/index.js +115 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
- package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
- package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
- package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
- package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
- package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
- package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-sync/lib/react.js +16 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-sync/lib/style.js +108 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
- package/dist/pi/packages/ta-sync/package.json +57 -0
- package/dist/pi/packages/ta-sync/web/index.js +2018 -0
- package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
- package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
- package/dist/pi/packages/ta-team/README.en.md +28 -0
- package/dist/pi/packages/ta-team/README.md +28 -0
- package/dist/pi/packages/ta-team/extension/index.mjs +264 -0
- package/dist/pi/packages/ta-team/host/index.mjs +2100 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
- package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/extension.js +123 -0
- package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/host.js +45 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
- package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/index.js +67 -0
- package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/join.js +48 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
- package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
- package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
- package/dist/pi/packages/ta-team/lib/page.js +142 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
- package/dist/pi/packages/ta-team/lib/parts.js +47 -0
- package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
- package/dist/pi/packages/ta-team/lib/policy.js +215 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
- package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
- package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/react.js +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
- package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/remote.js +128 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
- package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/seal.js +75 -0
- package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
- package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
- package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/style.js +99 -0
- package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
- package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
- package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
- package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
- package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
- package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
- package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
- package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
- package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
- package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
- package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
- package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
- package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
- package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
- package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
- package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
- package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
- package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
- package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
- package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
- package/dist/pi/packages/ta-team/package.json +68 -0
- package/dist/pi/packages/ta-team/web/index.js +2741 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +157 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-D9uU0Tx2.js → abnfDiagram-S7VZAUFO-DJMZKA5d.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-f7Nm7EIo.js → architecture-WOLXFQ4H-DwZ8A2Bp.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DSAqlcms.js → architectureDiagram-YGSQEFNW-DPezb7-w.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-C0lPIW9g.js → blockDiagram-APKKGZFW-SrFYBlSp.js} +1 -1
- package/dist/public/assets/{browser-WLpgVYno.js → browser-CljOqDFz.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CDcZ7mJq.js → c4Diagram-KJ2TOQU5-COCMkiJ6.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CXPuyqPL.js → chunk-6MUBBAK2-CWRxZCiu.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Du6JRX1x.js → chunk-AXFCVDMN-Dgn3RHlx.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-D592E55X.js → chunk-BG4553SI-BDnAChfb.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BW2r2SL4.js → chunk-DQASFODM-DSgprMfc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C3yoe54R.js → chunk-HFQBQIA3-ChtjyKjP.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DF8gfYCy.js → chunk-KQLB2F66-B2o0ufJC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-C8CRMTv1.js → chunk-KS47KZWR-C4qJvDaX.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-BDcMKiwj.js → chunk-LEVMRMFU-2jTGUstS.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-CKJPBygc.js → chunk-M57EVK23-CKAWW7fj.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-B3ZWH07L.js → chunk-OY52VR5R-B5TUKZAt.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-DI-z4UPL.js → chunk-QB3YPZ4I-CyQFTqwG.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Bg4-haAc.js → chunk-R3KSYZAL-C6git_yh.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-l_SHib3p.js → chunk-STOXU5M4-AwEqcNnS.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BINu9tIm.js → chunk-TU62E6Q5-GKcRDmvw.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BQn-mvV5.js → chunk-X4PVCEUW-CMG5EfZ9.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-uvpAu0Ys.js → chunk-XXDRQBXY-BHd-dKtZ.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BIowooW1.js → classDiagram-v2-L25IHNXF-HaRsBCG9.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BTyx1Mh2.js → cose-bilkent-JH36ORCC-BPBTCfj3.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-D64EU9I0.js → cynefinDiagram-L36ESFBY-dAmWDtva.js} +1 -1
- package/dist/public/assets/{d3-selection-CN9k6_B9.js → d3-selection-BhemR5ul.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-FCbz2-Kk.js → dagre-SPEB5RXH-D93g6hNI.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-OhHUSI7j.js → diagram-3B7GL73J-FJBKgG3X.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-Be4xMtp6.js → diagram-DNEMPZML-BP22T976.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-CmKSs3aG.js → diagram-L3MUGCDN-DcrCJXRt.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-D1C32rMN.js → diagram-LA4NIPWU-DUgd3PHQ.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BjoE6JXs.js → diagram-MHCOC4E2-ejTInqzQ.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-B22k4v8R.js → diagram-XPFHEONP-BLjkgho1.js} +1 -1
- package/dist/public/assets/{dist-DcBP8Cf6.js → dist-C9xqTt0E.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-Tn-K8-X7.js → ebnfDiagram-UZSYDL2S-CB1QQ4_T.js} +1 -1
- package/dist/public/assets/{editor.api-Bz4sjRz_.js → editor.api-lz6I1oVk.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-COnQsWlN.js → elk-XV6XMXQE-CLBx1s2b.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-c53dJilq.js → erDiagram-EYBAPDEH-Dsj6RYi5.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-DaFpPPks.js → eventmodeling-K75KTNOO-smOORsSG.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +1 -0
- package/dist/public/assets/{freemarker2-BLxfRHsw.js → freemarker2-DrLPw7Mc.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Md-SavIS.js → ganttDiagram-23REXITY-BV9WK0rK.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CMSwTghO.js → gitGraphDiagram-STJD7YCW-CsSpSQ0T.js} +1 -1
- package/dist/public/assets/{handlebars-sNpu01kP.js → handlebars-CLx5-csF.js} +1 -1
- package/dist/public/assets/{html-C_tKd-uP.js → html-C9LmGm46.js} +1 -1
- package/dist/public/assets/{index-Bn86rI4n.js → index-CLWW0mVu.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CwgNj-7i.js → infoDiagram-KBXO4MBG-wm5AnXDz.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BSlzQNMN.js → ishikawaDiagram-M35NCXHK-BLUBDeS3.js} +1 -1
- package/dist/public/assets/{javascript-l3qKw0L-.js → javascript-C4S1eQb7.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-B09LPEnF.js → journeyDiagram-OPLOXDXO-DXc7-I_g.js} +1 -1
- package/dist/public/assets/{jsonMode-5SQQn1EX.js → jsonMode-lLJKR2M6.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BiW4aJ29.js → kanban-definition-BZKZHSQY-D5Ra4L_5.js} +1 -1
- package/dist/public/assets/{liquid-BGyTIIUt.js → liquid-DRlm-XZd.js} +1 -1
- package/dist/public/assets/{mdx-8tGjz4em.js → mdx-CzIqeqPy.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CctN5b0z.js → mermaid-parser.core-BIPB1BgS.js} +3 -3
- package/dist/public/assets/{mermaid.core-7ERSdZ4-.js → mermaid.core-DxBlQ6oF.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-D-GOUwW1.js → mindmap-definition-I2QAS2VK-BdupvuYr.js} +1 -1
- package/dist/public/assets/module-BPxWyxwR.js +2362 -0
- package/dist/public/assets/module-C_MSCGQC.js +1 -0
- package/dist/public/assets/{monaco-B_9hlk78.js → monaco-ChpJIYsY.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-Dmy1fWB3.js → pegDiagram-FD4XPPHP-C_GF7Fng.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CXFHLYTg.js → pieDiagram-J4AKIIQI-WlpNP-IM.js} +1 -1
- package/dist/public/assets/{python-e-JK0s5M.js → python-BJgFCfc8.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-RQvEpGWO.js → quadrantDiagram-XTYBLID2-CkCL5rJY.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CDOSPZwX.js → railroad-abnf-LNEFI6M7-DZZKUytl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js → railroad-ebnf-DWYD2UWJ-CS7KsJdb.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-B7NtVofS.js → railroad-peg-JR7BVNR7-CiukTZVd.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-DsDrT0Jf.js → railroadDiagram-MRQ6NCDL-BS0R_H3-.js} +1 -1
- package/dist/public/assets/{razor-DtSPwumi.js → razor-jcBIjr45.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BQh0hFuA.js → requirementDiagram-Y7LWUY3S-C0_T9jgl.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-BUXNAQEF.js → sankeyDiagram-WGJFYUXA-DF15sUfS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-05f-N5V_.js → sequenceDiagram-5NDRBG5M-7AkTLleX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js → stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DWhlPvKs.js → swimlanes-UMQ2AFYF-CR-ieLeo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-CMdocOui.js → timeline-definition-SEUHKTQE-DeM0Uekm.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +1 -0
- package/dist/public/assets/{typescript-65jNyipU.js → typescript-B7zp7QPf.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BQTHUX1f.js → usecaseDiagram-AFA6YXN4-D6rDIgdU.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-BULkVTfA.js → vennDiagram-NNMJR3RB-CncVDcMl.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-Cek6l8lz.js → wardleyDiagram-S7YFUSEH-DKPAMfTE.js} +1 -1
- package/dist/public/assets/{xml-DWBejfu-.js → xml-BJIgLD52.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-ujnZQTWA.js → xychartDiagram-GGNKY7IX-DmmXGebm.js} +1 -1
- package/dist/public/assets/{yaml-CwRCT7q1.js → yaml-Dxb2gmP5.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7767 -3392
- package/package.json +37 -31
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +0 -11
- package/dist/pi/packages/ta-cron/lib/composer.js +0 -58
- package/dist/pi/packages/ta-extensions/lib/composer.d.ts +0 -17
- package/dist/pi/packages/ta-extensions/lib/composer.js +0 -84
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +0 -9
- package/dist/pi/packages/ta-recall/lib/skill-card.js +0 -51
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +0 -19
- package/dist/pi/packages/ta-recall/lib/skill-util.js +0 -110
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dg54eFzZ.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +0 -1
- package/dist/public/assets/module-DEqsdd00.js +0 -1
- package/dist/public/assets/module-TWc52XwT.js +0 -2244
- package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-BjqLn4qm.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DWO6t_4C.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-D1XOJPWy.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CRn5uHsY.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-D09wHNzT.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-ChxAT7Fq.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +0 -1
|
@@ -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,70 @@ 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;
|
|
20
30
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
31
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
32
|
+
var TaAskUtil;
|
|
33
|
+
(function(TaAskUtil2) {
|
|
34
|
+
const LENGTH = 120;
|
|
35
|
+
function entry(question) {
|
|
36
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
37
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
38
|
+
}
|
|
39
|
+
TaAskUtil2.entry = entry;
|
|
40
|
+
function asking(entries) {
|
|
41
|
+
var _a;
|
|
42
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
43
|
+
const entry2 = entries[i];
|
|
44
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
48
|
+
return read(entry2);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
TaAskUtil2.asking = asking;
|
|
54
|
+
function next(asked, entry2) {
|
|
55
|
+
var _a;
|
|
56
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
60
|
+
}
|
|
61
|
+
TaAskUtil2.next = next;
|
|
62
|
+
function read(found) {
|
|
63
|
+
var _a;
|
|
64
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
65
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
69
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
70
|
+
}
|
|
71
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
21
72
|
|
|
22
73
|
// web-src/server-texts.ts
|
|
23
74
|
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, }) {
|
|
@@ -16,13 +16,26 @@ function kindIcon(share) {
|
|
|
16
16
|
}
|
|
17
17
|
return /^text\/html\b/.test((_a = share.type) !== null && _a !== void 0 ? _a : '') ? 'Globe' : /^image\//.test((_b = share.type) !== null && _b !== void 0 ? _b : '') ? 'Image' : 'FileText';
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* A share: a tap shows its link (its QR code, to copy, send or stop); a finger swipes it to stop it, a held finger
|
|
21
|
+
* or a right click opens its menu; with a mouse, copy and stop are also buttons at its end.
|
|
22
|
+
*/
|
|
19
23
|
function ShareRow({ share }) {
|
|
20
24
|
const [copied, setCopied] = react_1.React.useState(false);
|
|
21
25
|
const [stopping, setStopping] = react_1.React.useState(false);
|
|
26
|
+
const touch = page_1.pi.ui.useDevice().touch;
|
|
27
|
+
const [menu, openMenu] = page_1.pi.ui.useContextMenu();
|
|
22
28
|
const Kind = (0, page_1.icon)(kindIcon(share));
|
|
23
29
|
const Copy = (0, page_1.icon)('Copy');
|
|
24
30
|
const Qr = (0, page_1.icon)('QrCode');
|
|
25
31
|
const Stop = (0, page_1.icon)('Trash2');
|
|
32
|
+
const show = () => (0, share_dialog_1.openShareDialog)({ kind: 'made', share });
|
|
33
|
+
const copy = () => { var _a; return void ((_a = navigator.clipboard) === null || _a === void 0 ? void 0 : _a.writeText(share.link).then(() => {
|
|
34
|
+
setCopied(true);
|
|
35
|
+
if (touch) {
|
|
36
|
+
page_1.pi.ui.notify((0, page_1.t)('copied'));
|
|
37
|
+
}
|
|
38
|
+
}).catch(error => page_1.pi.ui.notify((0, page_1.message)(error), 'error'))); };
|
|
26
39
|
const stop = async () => {
|
|
27
40
|
if (await page_1.pi.ui.confirm((0, page_1.t)('stopTitle', { title: share.title }), (0, page_1.t)('stopHint'), { confirmLabel: (0, page_1.t)('stop'), danger: true })) {
|
|
28
41
|
setStopping(true);
|
|
@@ -32,19 +45,30 @@ function ShareRow({ share }) {
|
|
|
32
45
|
});
|
|
33
46
|
}
|
|
34
47
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
const items = [
|
|
49
|
+
[
|
|
50
|
+
{ key: 'qr', label: (0, page_1.t)('qr'), icon: Qr, run: show },
|
|
51
|
+
{ key: 'copy', label: (0, page_1.t)('copy'), icon: Copy, run: copy },
|
|
52
|
+
],
|
|
53
|
+
[{ key: 'stop', label: (0, page_1.t)('stop'), icon: Stop, danger: true, disabled: stopping, run: () => void stop() }],
|
|
54
|
+
];
|
|
55
|
+
const content = (react_1.React.createElement("div", { className: `tsh-row${stopping ? ' ta-pending' : ''}`, "aria-busy": stopping || undefined, onContextMenu: event => openMenu(event, items) },
|
|
56
|
+
react_1.React.createElement("button", { type: "button", className: "tsh-row-main", title: (0, page_1.t)('qr'), onClick: show },
|
|
57
|
+
react_1.React.createElement("span", { className: `tsh-tile tsh-tile-${share.access}`, "aria-hidden": "true" },
|
|
58
|
+
react_1.React.createElement(Kind, { size: 18 })),
|
|
59
|
+
react_1.React.createElement("span", { className: "tsh-row-text" },
|
|
60
|
+
react_1.React.createElement("span", { className: "tsh-row-title" }, share.title),
|
|
61
|
+
react_1.React.createElement("span", { className: "tsh-row-line" }, (0, page_1.shareLine)(share)))),
|
|
62
|
+
!touch && (react_1.React.createElement("div", { className: "tsh-row-actions" },
|
|
63
|
+
react_1.React.createElement("button", { type: "button", className: "tsh-icon", title: copied ? (0, page_1.t)('copied') : (0, page_1.t)('copy'), "aria-label": (0, page_1.t)('copy'), onClick: copy },
|
|
43
64
|
react_1.React.createElement(Copy, { size: 15 })),
|
|
44
|
-
react_1.React.createElement("button", { type: "button", className: "tsh-icon", title: (0, page_1.t)('qr'), "aria-label": (0, page_1.t)('qr'), onClick: () => (0, share_dialog_1.openShareDialog)({ kind: 'made', share }) },
|
|
45
|
-
react_1.React.createElement(Qr, { size: 15 })),
|
|
46
65
|
react_1.React.createElement("button", { type: "button", className: "tsh-icon tsh-danger", title: (0, page_1.t)('stop'), "aria-label": (0, page_1.t)('stop'), disabled: stopping, onClick: () => void stop() },
|
|
47
|
-
react_1.React.createElement(Stop, { size: 15 })))));
|
|
66
|
+
react_1.React.createElement(Stop, { size: 15 }))))));
|
|
67
|
+
const SwipeRow = page_1.pi.ui.SwipeRow;
|
|
68
|
+
// An older app has no SwipeRow: the menu has the same.
|
|
69
|
+
return (react_1.React.createElement("li", { className: "tsh-item" },
|
|
70
|
+
SwipeRow ? react_1.React.createElement(SwipeRow, { actions: [{ key: 'stop', label: (0, page_1.t)('stop'), danger: true, run: () => void stop() }] }, content) : content,
|
|
71
|
+
menu));
|
|
48
72
|
}
|
|
49
73
|
/** My shares, under Discover: what this Ta shares now, to copy, show again or stop. */
|
|
50
74
|
function SharesPage() {
|
|
@@ -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. */\n.tsh-page { max-width: 720px; margin: 0 auto; padding: 12px 16px 32px; }\n.tsh-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.tsh-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; transition: background 120ms, opacity 200ms; }\n.tsh-row:hover { background: var(--ta-hover); }\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 { opacity: 1; }\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; }
|
|
@@ -51,11 +49,13 @@ exports.STYLE = `
|
|
|
51
49
|
.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; }
|
|
52
50
|
.tsh-stop:hover { color: var(--ta-red); background: var(--ta-hover); }
|
|
53
51
|
|
|
54
|
-
/* My shares. */
|
|
55
|
-
.tsh-page {
|
|
56
|
-
.tsh-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
|
|
57
|
-
.tsh-
|
|
52
|
+
/* My shares: the page fills its place and scrolls, its rows never wider than it. */
|
|
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; }
|
|
54
|
+
.tsh-rows { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; }
|
|
55
|
+
.tsh-item { --ta-swipe-bg: var(--ta-main); min-width: 0; border-radius: 10px; overflow: hidden; }
|
|
56
|
+
.tsh-row { display: flex; align-items: center; gap: 4px; min-width: 0; padding-right: 6px; border-radius: 10px; transition: background 120ms, opacity 200ms; }
|
|
58
57
|
.tsh-row:hover { background: var(--ta-hover); }
|
|
58
|
+
.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; }
|
|
59
59
|
.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); }
|
|
60
60
|
.tsh-tile-password { background: var(--ta-yellow); }
|
|
61
61
|
.tsh-tile-self { background: var(--ta-blue); }
|
|
@@ -63,7 +63,11 @@ exports.STYLE = `
|
|
|
63
63
|
.tsh-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
64
64
|
.tsh-row-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
65
65
|
.tsh-row-actions { flex: none; display: flex; gap: 2px; opacity: .75; }
|
|
66
|
-
.tsh-row:hover .tsh-row-actions { opacity: 1; }
|
|
66
|
+
.tsh-row:hover .tsh-row-actions, .tsh-row:focus-within .tsh-row-actions { opacity: 1; }
|
|
67
|
+
:root[data-touch] .tsh-row:hover { background: none; }
|
|
68
|
+
:root[data-handheld] .tsh-item { border-radius: 0; }
|
|
69
|
+
:root[data-touch] .tsh-row-main { padding: 12px 8px; }
|
|
70
|
+
:root[data-touch] .tsh-row-main:active { background: var(--ta-hover); }
|
|
67
71
|
.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; }
|
|
68
72
|
.tsh-icon:hover:not(:disabled) { background: var(--ta-hover-strong); color: var(--ta-text); }
|
|
69
73
|
.tsh-icon.tsh-danger:hover:not(:disabled) { color: var(--ta-red); }
|
|
@@ -99,7 +103,7 @@ exports.STYLE = `
|
|
|
99
103
|
.tsh-image { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; }
|
|
100
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; }
|
|
101
105
|
.tsh-download { margin: 20vh auto 0; display: flex; width: fit-content; text-decoration: none; }
|
|
102
|
-
@media (prefers-reduced-motion: reduce) { .tsh-row
|
|
106
|
+
@media (prefers-reduced-motion: reduce) { .tsh-row { transition: none; } }
|
|
103
107
|
`;
|
|
104
108
|
function injectStyle() {
|
|
105
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.0",
|
|
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
|
}
|
|
@@ -959,10 +959,19 @@ function kindIcon(share) {
|
|
|
959
959
|
function ShareRow({ share }) {
|
|
960
960
|
const [copied, setCopied] = React.useState(false);
|
|
961
961
|
const [stopping, setStopping] = React.useState(false);
|
|
962
|
+
const touch = pi.ui.useDevice().touch;
|
|
963
|
+
const [menu, openMenu] = pi.ui.useContextMenu();
|
|
962
964
|
const Kind = icon(kindIcon(share));
|
|
963
965
|
const Copy = icon("Copy");
|
|
964
966
|
const Qr = icon("QrCode");
|
|
965
967
|
const Stop = icon("Trash2");
|
|
968
|
+
const show = () => openShareDialog({ kind: "made", share });
|
|
969
|
+
const copy = () => void navigator.clipboard?.writeText(share.link).then(() => {
|
|
970
|
+
setCopied(true);
|
|
971
|
+
if (touch) {
|
|
972
|
+
pi.ui.notify(t("copied"));
|
|
973
|
+
}
|
|
974
|
+
}).catch((error) => pi.ui.notify(message(error), "error"));
|
|
966
975
|
const stop = async () => {
|
|
967
976
|
if (await pi.ui.confirm(t("stopTitle", { title: share.title }), t("stopHint"), { confirmLabel: t("stop"), danger: true })) {
|
|
968
977
|
setStopping(true);
|
|
@@ -972,37 +981,43 @@ function ShareRow({ share }) {
|
|
|
972
981
|
});
|
|
973
982
|
}
|
|
974
983
|
};
|
|
975
|
-
|
|
976
|
-
|
|
984
|
+
const items = [
|
|
985
|
+
[
|
|
986
|
+
{ key: "qr", label: t("qr"), icon: Qr, run: show },
|
|
987
|
+
{ key: "copy", label: t("copy"), icon: Copy, run: copy }
|
|
988
|
+
],
|
|
989
|
+
[{ key: "stop", label: t("stop"), icon: Stop, danger: true, disabled: stopping, run: () => void stop() }]
|
|
990
|
+
];
|
|
991
|
+
const content = /* @__PURE__ */ React.createElement("div", {
|
|
992
|
+
className: `tsh-row${stopping ? " ta-pending" : ""}`,
|
|
993
|
+
"aria-busy": stopping || undefined,
|
|
994
|
+
onContextMenu: (event) => openMenu(event, items)
|
|
995
|
+
}, /* @__PURE__ */ React.createElement("button", {
|
|
996
|
+
type: "button",
|
|
997
|
+
className: "tsh-row-main",
|
|
998
|
+
title: t("qr"),
|
|
999
|
+
onClick: show
|
|
977
1000
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
978
1001
|
className: `tsh-tile tsh-tile-${share.access}`,
|
|
979
1002
|
"aria-hidden": "true"
|
|
980
1003
|
}, /* @__PURE__ */ React.createElement(Kind, {
|
|
981
1004
|
size: 18
|
|
982
|
-
})), /* @__PURE__ */ React.createElement("
|
|
1005
|
+
})), /* @__PURE__ */ React.createElement("span", {
|
|
983
1006
|
className: "tsh-row-text"
|
|
984
1007
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
985
1008
|
className: "tsh-row-title"
|
|
986
1009
|
}, share.title), /* @__PURE__ */ React.createElement("span", {
|
|
987
1010
|
className: "tsh-row-line"
|
|
988
|
-
}, shareLine(share))), /* @__PURE__ */ React.createElement("div", {
|
|
1011
|
+
}, shareLine(share)))), !touch && /* @__PURE__ */ React.createElement("div", {
|
|
989
1012
|
className: "tsh-row-actions"
|
|
990
1013
|
}, /* @__PURE__ */ React.createElement("button", {
|
|
991
1014
|
type: "button",
|
|
992
1015
|
className: "tsh-icon",
|
|
993
1016
|
title: copied ? t("copied") : t("copy"),
|
|
994
1017
|
"aria-label": t("copy"),
|
|
995
|
-
onClick:
|
|
1018
|
+
onClick: copy
|
|
996
1019
|
}, /* @__PURE__ */ React.createElement(Copy, {
|
|
997
1020
|
size: 15
|
|
998
|
-
})), /* @__PURE__ */ React.createElement("button", {
|
|
999
|
-
type: "button",
|
|
1000
|
-
className: "tsh-icon",
|
|
1001
|
-
title: t("qr"),
|
|
1002
|
-
"aria-label": t("qr"),
|
|
1003
|
-
onClick: () => openShareDialog({ kind: "made", share })
|
|
1004
|
-
}, /* @__PURE__ */ React.createElement(Qr, {
|
|
1005
|
-
size: 15
|
|
1006
1021
|
})), /* @__PURE__ */ React.createElement("button", {
|
|
1007
1022
|
type: "button",
|
|
1008
1023
|
className: "tsh-icon tsh-danger",
|
|
@@ -1013,6 +1028,12 @@ function ShareRow({ share }) {
|
|
|
1013
1028
|
}, /* @__PURE__ */ React.createElement(Stop, {
|
|
1014
1029
|
size: 15
|
|
1015
1030
|
}))));
|
|
1031
|
+
const SwipeRow = pi.ui.SwipeRow;
|
|
1032
|
+
return /* @__PURE__ */ React.createElement("li", {
|
|
1033
|
+
className: "tsh-item"
|
|
1034
|
+
}, SwipeRow ? /* @__PURE__ */ React.createElement(SwipeRow, {
|
|
1035
|
+
actions: [{ key: "stop", label: t("stop"), danger: true, run: () => void stop() }]
|
|
1036
|
+
}, content) : content, menu);
|
|
1016
1037
|
}
|
|
1017
1038
|
function SharesPage() {
|
|
1018
1039
|
const list = useShares();
|
|
@@ -1053,10 +1074,8 @@ var STYLE = `
|
|
|
1053
1074
|
.tsh-notes { margin: 8px 0 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
1054
1075
|
.tsh-field { display: flex; flex-direction: column; gap: 6px; }
|
|
1055
1076
|
.tsh-label { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }
|
|
1056
|
-
|
|
1057
|
-
.tsh-choice button {
|
|
1058
|
-
.tsh-choice button:hover:not(:disabled) { color: var(--ta-text); }
|
|
1059
|
-
.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; }
|
|
1060
1079
|
.tsh-choice button:disabled { opacity: .4; cursor: default; }
|
|
1061
1080
|
.tsh-password { display: flex; gap: 8px; }
|
|
1062
1081
|
.tsh-friends { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
@@ -1080,11 +1099,13 @@ var STYLE = `
|
|
|
1080
1099
|
.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; }
|
|
1081
1100
|
.tsh-stop:hover { color: var(--ta-red); background: var(--ta-hover); }
|
|
1082
1101
|
|
|
1083
|
-
/* My shares. */
|
|
1084
|
-
.tsh-page {
|
|
1085
|
-
.tsh-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
|
|
1086
|
-
.tsh-
|
|
1102
|
+
/* My shares: the page fills its place and scrolls, its rows never wider than it. */
|
|
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; }
|
|
1104
|
+
.tsh-rows { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; }
|
|
1105
|
+
.tsh-item { --ta-swipe-bg: var(--ta-main); min-width: 0; border-radius: 10px; overflow: hidden; }
|
|
1106
|
+
.tsh-row { display: flex; align-items: center; gap: 4px; min-width: 0; padding-right: 6px; border-radius: 10px; transition: background 120ms, opacity 200ms; }
|
|
1087
1107
|
.tsh-row:hover { background: var(--ta-hover); }
|
|
1108
|
+
.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; }
|
|
1088
1109
|
.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); }
|
|
1089
1110
|
.tsh-tile-password { background: var(--ta-yellow); }
|
|
1090
1111
|
.tsh-tile-self { background: var(--ta-blue); }
|
|
@@ -1092,7 +1113,11 @@ var STYLE = `
|
|
|
1092
1113
|
.tsh-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1093
1114
|
.tsh-row-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1094
1115
|
.tsh-row-actions { flex: none; display: flex; gap: 2px; opacity: .75; }
|
|
1095
|
-
.tsh-row:hover .tsh-row-actions { opacity: 1; }
|
|
1116
|
+
.tsh-row:hover .tsh-row-actions, .tsh-row:focus-within .tsh-row-actions { opacity: 1; }
|
|
1117
|
+
:root[data-touch] .tsh-row:hover { background: none; }
|
|
1118
|
+
:root[data-handheld] .tsh-item { border-radius: 0; }
|
|
1119
|
+
:root[data-touch] .tsh-row-main { padding: 12px 8px; }
|
|
1120
|
+
:root[data-touch] .tsh-row-main:active { background: var(--ta-hover); }
|
|
1096
1121
|
.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; }
|
|
1097
1122
|
.tsh-icon:hover:not(:disabled) { background: var(--ta-hover-strong); color: var(--ta-text); }
|
|
1098
1123
|
.tsh-icon.tsh-danger:hover:not(:disabled) { color: var(--ta-red); }
|
|
@@ -1128,7 +1153,7 @@ var STYLE = `
|
|
|
1128
1153
|
.tsh-image { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; }
|
|
1129
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; }
|
|
1130
1155
|
.tsh-download { margin: 20vh auto 0; display: flex; width: fit-content; text-decoration: none; }
|
|
1131
|
-
@media (prefers-reduced-motion: reduce) { .tsh-row
|
|
1156
|
+
@media (prefers-reduced-motion: reduce) { .tsh-row { transition: none; } }
|
|
1132
1157
|
`;
|
|
1133
1158
|
function injectStyle() {
|
|
1134
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.
|