@celljs/ta 4.8.0 → 4.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +37 -2
- package/README.md +37 -2
- package/bin/ta.mjs +1 -1
- package/dist/cli.mjs +591 -15
- package/dist/gateway.mjs +2830 -0
- package/dist/pi/CHANGELOG.md +31 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +2 -2
- package/dist/pi/packages/ta-agents/README.md +2 -2
- package/dist/pi/packages/ta-agents/extension/index.mjs +61 -13
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +17 -4
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +39 -9
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +3 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js +5 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +10 -1
- package/dist/pi/packages/ta-agents/lib/extension.d.ts +2 -1
- package/dist/pi/packages/ta-agents/lib/extension.js +11 -3
- package/dist/pi/packages/ta-agents/lib/json-rpc.js +7 -1
- package/dist/pi/packages/ta-agents/package.json +11 -3
- package/dist/pi/packages/ta-bots/README.en.md +46 -0
- package/dist/pi/packages/ta-bots/README.md +46 -0
- package/dist/pi/packages/ta-bots/extension/index.mjs +629 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +2313 -0
- package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +96 -0
- package/dist/pi/packages/ta-bots/lib/bot-service.js +391 -0
- package/dist/pi/packages/ta-bots/lib/bot-store.d.ts +42 -0
- package/dist/pi/packages/ta-bots/lib/bot-store.js +97 -0
- package/dist/pi/packages/ta-bots/lib/bots-protocol.d.ts +131 -0
- package/dist/pi/packages/ta-bots/lib/bots-protocol.js +46 -0
- package/dist/pi/packages/ta-bots/lib/bots-view.d.ts +7 -0
- package/dist/pi/packages/ta-bots/lib/bots-view.js +84 -0
- package/dist/pi/packages/ta-bots/lib/channel-protocol.d.ts +58 -0
- package/dist/pi/packages/ta-bots/lib/channel-protocol.js +37 -0
- package/dist/pi/packages/ta-bots/lib/composer.d.ts +21 -0
- package/dist/pi/packages/ta-bots/lib/composer.js +104 -0
- package/dist/pi/packages/ta-bots/lib/connect-dialog.d.ts +18 -0
- package/dist/pi/packages/ta-bots/lib/connect-dialog.js +198 -0
- package/dist/pi/packages/ta-bots/lib/extension.d.ts +34 -0
- package/dist/pi/packages/ta-bots/lib/extension.js +207 -0
- package/dist/pi/packages/ta-bots/lib/host.d.ts +8 -0
- package/dist/pi/packages/ta-bots/lib/host.js +15 -0
- package/dist/pi/packages/ta-bots/lib/i18n.d.ts +87 -0
- package/dist/pi/packages/ta-bots/lib/i18n.js +175 -0
- package/dist/pi/packages/ta-bots/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-bots/lib/index.js +40 -0
- package/dist/pi/packages/ta-bots/lib/login-book.d.ts +17 -0
- package/dist/pi/packages/ta-bots/lib/login-book.js +55 -0
- package/dist/pi/packages/ta-bots/lib/media-crypto.d.ts +19 -0
- package/dist/pi/packages/ta-bots/lib/media-crypto.js +70 -0
- package/dist/pi/packages/ta-bots/lib/message.d.ts +13 -0
- package/dist/pi/packages/ta-bots/lib/message.js +74 -0
- package/dist/pi/packages/ta-bots/lib/page.d.ts +54 -0
- package/dist/pi/packages/ta-bots/lib/page.js +131 -0
- package/dist/pi/packages/ta-bots/lib/pictures.d.ts +3 -0
- package/dist/pi/packages/ta-bots/lib/pictures.js +21 -0
- package/dist/pi/packages/ta-bots/lib/qr-image.d.ts +16 -0
- package/dist/pi/packages/ta-bots/lib/qr-image.js +70 -0
- package/dist/pi/packages/ta-bots/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-bots/lib/react.js +8 -0
- package/dist/pi/packages/ta-bots/lib/server-texts.d.ts +12 -0
- package/dist/pi/packages/ta-bots/lib/server-texts.js +45 -0
- package/dist/pi/packages/ta-bots/lib/session-bridge.d.ts +43 -0
- package/dist/pi/packages/ta-bots/lib/session-bridge.js +118 -0
- package/dist/pi/packages/ta-bots/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-bots/lib/style.js +114 -0
- package/dist/pi/packages/ta-bots/lib/test-fakes.d.ts +37 -0
- package/dist/pi/packages/ta-bots/lib/test-fakes.js +94 -0
- package/dist/pi/packages/ta-bots/lib/text-util.d.ts +16 -0
- package/dist/pi/packages/ta-bots/lib/text-util.js +158 -0
- package/dist/pi/packages/ta-bots/lib/web-socket-client.d.ts +38 -0
- package/dist/pi/packages/ta-bots/lib/web-socket-client.js +213 -0
- package/dist/pi/packages/ta-bots/lib/wecom-channel.d.ts +38 -0
- package/dist/pi/packages/ta-bots/lib/wecom-channel.js +222 -0
- package/dist/pi/packages/ta-bots/lib/wecom-login.d.ts +34 -0
- package/dist/pi/packages/ta-bots/lib/wecom-login.js +84 -0
- package/dist/pi/packages/ta-bots/lib/wecom-socket.d.ts +74 -0
- package/dist/pi/packages/ta-bots/lib/wecom-socket.js +214 -0
- package/dist/pi/packages/ta-bots/lib/weixin-api.d.ts +112 -0
- package/dist/pi/packages/ta-bots/lib/weixin-api.js +171 -0
- package/dist/pi/packages/ta-bots/lib/weixin-channel.d.ts +49 -0
- package/dist/pi/packages/ta-bots/lib/weixin-channel.js +258 -0
- package/dist/pi/packages/ta-bots/lib/weixin-login.d.ts +31 -0
- package/dist/pi/packages/ta-bots/lib/weixin-login.js +110 -0
- package/dist/pi/packages/ta-bots/package.json +55 -0
- package/dist/pi/packages/ta-bots/web/index.js +1241 -0
- package/dist/pi/packages/ta-changes/lib/diff-tab.js +1 -1
- package/dist/pi/packages/ta-changes/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-changes/lib/style.js +12 -10
- package/dist/pi/packages/ta-changes/package.json +11 -2
- package/dist/pi/packages/ta-changes/web/index.js +16 -13
- package/dist/pi/packages/ta-channels/README.en.md +3 -2
- package/dist/pi/packages/ta-channels/README.md +3 -2
- package/dist/pi/packages/ta-channels/extension/index.mjs +109 -8
- package/dist/pi/packages/ta-channels/host/index.mjs +281 -5
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.js +19 -6
- package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/channel-menu.js +15 -12
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +10 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +10 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +29 -2
- package/dist/pi/packages/ta-channels/lib/channels.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/channels.js +1 -0
- package/dist/pi/packages/ta-channels/lib/create.js +2 -2
- package/dist/pi/packages/ta-channels/lib/extension.d.ts +5 -0
- package/dist/pi/packages/ta-channels/lib/extension.js +25 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +41 -9
- package/dist/pi/packages/ta-channels/lib/i18n.js +83 -19
- package/dist/pi/packages/ta-channels/lib/index.d.ts +3 -2
- package/dist/pi/packages/ta-channels/lib/index.js +14 -2
- package/dist/pi/packages/ta-channels/lib/members.js +10 -5
- package/dist/pi/packages/ta-channels/lib/more-menu.d.ts +5 -1
- package/dist/pi/packages/ta-channels/lib/more-menu.js +55 -9
- package/dist/pi/packages/ta-channels/lib/room.d.ts +11 -2
- package/dist/pi/packages/ta-channels/lib/room.js +47 -6
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +5 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.js +241 -31
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +136 -73
- package/dist/pi/packages/ta-channels/lib/tasks.d.ts +50 -0
- package/dist/pi/packages/ta-channels/lib/tasks.js +237 -0
- package/dist/pi/packages/ta-channels/lib/team-ask.d.ts +21 -0
- package/dist/pi/packages/ta-channels/lib/team-ask.js +73 -0
- package/dist/pi/packages/ta-channels/lib/team-tools.d.ts +6 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.js +5 -4
- package/dist/pi/packages/ta-channels/lib/team.d.ts +5 -1
- package/dist/pi/packages/ta-channels/lib/team.js +10 -4
- package/dist/pi/packages/ta-channels/lib/views.d.ts +18 -3
- package/dist/pi/packages/ta-channels/lib/views.js +40 -9
- package/dist/pi/packages/ta-channels/package.json +11 -2
- package/dist/pi/packages/ta-channels/web/index.js +1061 -206
- package/dist/pi/packages/ta-computer-use/package.json +11 -2
- package/dist/pi/packages/ta-cron/README.en.md +3 -3
- package/dist/pi/packages/ta-cron/README.md +3 -3
- package/dist/pi/packages/ta-cron/host/index.mjs +19 -12
- package/dist/pi/packages/ta-cron/lib/editor.js +1 -3
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +2 -4
- package/dist/pi/packages/ta-cron/lib/i18n.js +4 -8
- package/dist/pi/packages/ta-cron/lib/index.js +11 -0
- package/dist/pi/packages/ta-cron/lib/next-card.d.ts +9 -0
- package/dist/pi/packages/ta-cron/lib/next-card.js +35 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/page.js +4 -1
- package/dist/pi/packages/ta-cron/lib/pictures.d.ts +6 -0
- package/dist/pi/packages/ta-cron/lib/pictures.js +46 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.js +24 -14
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +30 -44
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +4 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +36 -21
- package/dist/pi/packages/ta-cron/package.json +11 -2
- package/dist/pi/packages/ta-cron/web/index.js +249 -281
- package/dist/pi/packages/ta-extensions/README.en.md +4 -1
- package/dist/pi/packages/ta-extensions/README.md +4 -1
- package/dist/pi/packages/ta-extensions/host/index.mjs +64 -61
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts +2 -0
- package/dist/pi/packages/ta-extensions/lib/actions.js +9 -1
- package/dist/pi/packages/ta-extensions/lib/host.d.ts +0 -8
- package/dist/pi/packages/ta-extensions/lib/host.js +7 -49
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +8 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.js +20 -4
- package/dist/pi/packages/ta-extensions/lib/index.js +2 -0
- package/dist/pi/packages/ta-extensions/lib/market-detail.js +14 -2
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.js +18 -18
- package/dist/pi/packages/ta-extensions/lib/page.js +22 -11
- package/dist/pi/packages/ta-extensions/lib/pictures.d.ts +3 -1
- package/dist/pi/packages/ta-extensions/lib/pictures.js +28 -32
- package/dist/pi/packages/ta-extensions/lib/search.d.ts +10 -0
- package/dist/pi/packages/ta-extensions/lib/search.js +139 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +15 -34
- package/dist/pi/packages/ta-extensions/package.json +12 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +12 -8
- package/dist/pi/packages/ta-extensions/web/index.js +488 -120
- package/dist/pi/packages/ta-launcher/README.en.md +15 -0
- package/dist/pi/packages/ta-launcher/README.md +15 -0
- package/dist/pi/packages/ta-launcher/lib/actions.d.ts +31 -0
- package/dist/pi/packages/ta-launcher/lib/actions.js +134 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +38 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +77 -0
- package/dist/pi/packages/ta-launcher/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-launcher/lib/index.js +48 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-util.d.ts +19 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-util.js +47 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.d.ts +20 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +99 -0
- package/dist/pi/packages/ta-launcher/lib/mine-store.d.ts +22 -0
- package/dist/pi/packages/ta-launcher/lib/mine-store.js +60 -0
- package/dist/pi/packages/ta-launcher/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-launcher/lib/react.js +8 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-launcher/lib/style.js +48 -0
- package/dist/pi/packages/ta-launcher/package.json +49 -0
- package/dist/pi/packages/ta-launcher/web/index.js +553 -0
- package/dist/pi/packages/ta-workspace/README.md +2 -2
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +2 -2
- package/dist/pi/packages/ta-workspace/lib/common.d.ts +8 -5
- package/dist/pi/packages/ta-workspace/lib/common.js +53 -14
- package/dist/pi/packages/ta-workspace/lib/explorer-excluded.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/explorer-excluded.js +39 -0
- package/dist/pi/packages/ta-workspace/lib/explorer-transfer.d.ts +31 -0
- package/dist/pi/packages/ta-workspace/lib/explorer-transfer.js +156 -0
- package/dist/pi/packages/ta-workspace/lib/explorer.js +45 -153
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +10 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.js +30 -10
- package/dist/pi/packages/ta-workspace/lib/index.js +2 -1
- package/dist/pi/packages/ta-workspace/lib/open-files.js +1 -1
- package/dist/pi/packages/ta-workspace/lib/preview.js +6 -2
- package/dist/pi/packages/ta-workspace/lib/scm.js +4 -4
- package/dist/pi/packages/ta-workspace/lib/search.js +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +100 -55
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.d.ts +51 -0
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.js +226 -0
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +5 -22
- package/dist/pi/packages/ta-workspace/lib/terminal.js +191 -141
- package/dist/pi/packages/ta-workspace/lib/util/terminal.d.ts +25 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.js +55 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts +3 -2
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js +7 -3
- package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/workspace-client.js +2 -2
- package/dist/pi/packages/ta-workspace/package.json +11 -2
- package/dist/pi/packages/ta-workspace/web/index.js +916 -295
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-CNqfsCwx.js → abnfDiagram-S7VZAUFO-EVMX_yOb.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-_WaGq-Qk.js → architecture-WOLXFQ4H-CDgbgZ_o.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-Bn63Lctu.js → architectureDiagram-YGSQEFNW-dHreaCWz.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BGaAecnk.js → blockDiagram-APKKGZFW-D6FhzBDq.js} +1 -1
- package/dist/public/assets/{browser-DKagIN4Y.js → browser-y6EDNUmc.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CK9Z_9Zp.js → c4Diagram-KJ2TOQU5-BFpcr8Cs.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-H3j3MGva.js → chunk-6MUBBAK2-BczXkMV-.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Beljdjs9.js → chunk-AXFCVDMN-CjJsv3jB.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-TYEV5wLO.js → chunk-BG4553SI-FBaleaLz.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-gmWJrizf.js → chunk-DQASFODM-BFdXY5sX.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-BTa7yKXI.js → chunk-HFQBQIA3-C5cwK-Fg.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BlwMm4R0.js → chunk-KQLB2F66-BUek3IRk.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-CKTXjzwD.js → chunk-KS47KZWR-BxsYBzt6.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-Bn9Xkefl.js → chunk-LEVMRMFU-Bdcwz9fS.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-B_QLqohG.js → chunk-M57EVK23-kkpP5oug.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-BflzJHPz.js → chunk-OY52VR5R-CFhQgxmD.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-BXucfaFg.js → chunk-QB3YPZ4I-BVXqu0eC.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-CGwkwxm9.js → chunk-R3KSYZAL-B7SUqqLI.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DQGOPuM5.js → chunk-STOXU5M4-B3abfbnH.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BCrs6AYI.js → chunk-TU62E6Q5-C9NqnUav.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-MTv7nXJX.js → chunk-X4PVCEUW-BeLfETDx.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-fPaX8VIb.js → chunk-XXDRQBXY-DXai1i8p.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-tm4uT08q.js → classDiagram-v2-L25IHNXF-Zj6ne_tC.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-Dkk3pDZj.js → cose-bilkent-JH36ORCC-C0-TjqfJ.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-CoY4CrZu.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BcoArW00.js → cynefinDiagram-L36ESFBY-BnqxfzPa.js} +1 -1
- package/dist/public/assets/{d3-selection-BzUITLov.js → d3-selection-DfFLTR9d.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-oiU-wJxw.js → dagre-SPEB5RXH-kI17e5cH.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-BwlCOIW4.js → diagram-3B7GL73J-DgPjeLA5.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-CZGQiFrl.js → diagram-DNEMPZML-CRhPfa0I.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-BJGDa24C.js → diagram-L3MUGCDN-ExuTg12b.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DdwHRhnP.js → diagram-LA4NIPWU-Dgx5xNiY.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-IjreLUB9.js → diagram-MHCOC4E2-BuifkUTl.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-CvaG0Zzq.js → diagram-XPFHEONP-CFEaBo7z.js} +1 -1
- package/dist/public/assets/{dist-Cm4zqoMA.js → dist-C-iJHcSK.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-C-FOI67M.js → ebnfDiagram-UZSYDL2S-D-hp5yNt.js} +1 -1
- package/dist/public/assets/{editor.api-hteKufWf.js → editor.api-BopUWpqY.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-C_ClfkLy.js → elk-XV6XMXQE-CBbk_IpU.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-DSr0aRYm.js → erDiagram-EYBAPDEH-B02R_WWE.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-COU_atV6.js → eventmodeling-K75KTNOO-aCZfYnCI.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-CATkJShO.js +1 -0
- package/dist/public/assets/{freemarker2-CBJnhymu.js → freemarker2-DMN60LeK.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-BAcXXNjI.js → ganttDiagram-23REXITY-DioU8TlD.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-g4yHXXxx.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Bk9sns6k.js → gitGraphDiagram-STJD7YCW--q3ctg6y.js} +1 -1
- package/dist/public/assets/{handlebars-CiqYW1im.js → handlebars-B_-qdvpB.js} +1 -1
- package/dist/public/assets/{html-kafkm1Z0.js → html-BN8Ah3Js.js} +1 -1
- package/dist/public/assets/{index-DPLd0-lb.js → index-B3A--ac8.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-CKADJjz4.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-2hRQLVWa.js → infoDiagram-KBXO4MBG-CGXteYo9.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-hrOnhWJs.js → ishikawaDiagram-M35NCXHK-DM2LmOAc.js} +1 -1
- package/dist/public/assets/{javascript-Dt5MiA9w.js → javascript-BlizGb0q.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-d8HJd04q.js → journeyDiagram-OPLOXDXO-CNITRtGl.js} +1 -1
- package/dist/public/assets/{jsonMode-DBICoo6P.js → jsonMode-CEUmT5sN.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-DOUuZDiv.js → kanban-definition-BZKZHSQY-BPUuS9um.js} +1 -1
- package/dist/public/assets/{liquid-BGYhBP2h.js → liquid-BbyLjUbE.js} +1 -1
- package/dist/public/assets/{mdx-Ct_gzcP3.js → mdx-DiQz7Q35.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-2yhxYNxq.js → mermaid-parser.core-Dum100hC.js} +3 -3
- package/dist/public/assets/{mermaid.core-sx7teU8z.js → mermaid.core-BWmWf6XO.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DIc9LejH.js → mindmap-definition-I2QAS2VK-L8HyYUDY.js} +1 -1
- package/dist/public/assets/module-CH7IXa5L.js +1781 -0
- package/dist/public/assets/module-DNAasuMC.js +1 -0
- package/dist/public/assets/{monaco-DJecWyyV.js → monaco-zOOyBmxy.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-CpKMhX4K.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-BfiT6-Vx.js → pegDiagram-FD4XPPHP-CTZKPo0Z.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CW-zGDRd.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DJ0sF_Eg.js → pieDiagram-J4AKIIQI-DAeT3dFi.js} +1 -1
- package/dist/public/assets/{python-BrnocsK9.js → python-C984gt98.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-C3iF5PG6.js → quadrantDiagram-XTYBLID2--PXxwV1Z.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-Cg8W433p.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DriMt2PQ.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-BI4N-mtq.js → railroad-abnf-LNEFI6M7-BYcFfrCa.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-Ck2MUlyV.js → railroad-ebnf-DWYD2UWJ-Cd33qxAm.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-Cuc9S0f4.js → railroad-peg-JR7BVNR7-C5TpzaU8.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Cw24sb_5.js → railroadDiagram-MRQ6NCDL-DlWwjbhH.js} +1 -1
- package/dist/public/assets/{razor-BDHTAmlI.js → razor-BBqMR1Qn.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-QQUXFr1R.js → requirementDiagram-Y7LWUY3S-CsYBy9HS.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-mSlfAHND.js → sankeyDiagram-WGJFYUXA-Baxyb5p9.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-3t8hVott.js → sequenceDiagram-5NDRBG5M-Cq6VeBT_.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-9EW807AL.js → stateDiagram-v2-FJ4FJNEA-O60WKaE7.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-EbMBX_e0.js → swimlanes-UMQ2AFYF-C2nf1-Cc.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-B46JxqS8.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-D14kjjsp.js → timeline-definition-SEUHKTQE-DEfUG6YH.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-1LhEWwC9.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-D3t3N7nS.js +1 -0
- package/dist/public/assets/{typescript-BEEbbq69.js → typescript-Gtq7f0aU.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-DKemtzU9.js → usecaseDiagram-AFA6YXN4-Gw9DyJcx.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-DOBq9oeY.js → vennDiagram-NNMJR3RB-Clb3MLWF.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-D3sAsd8p.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DquSJ4y-.js → wardleyDiagram-S7YFUSEH-BrTRpwu2.js} +1 -1
- package/dist/public/assets/{xml-DvTQKQ_W.js → xml-Bx3nk7iG.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-ClE_9jz4.js → xychartDiagram-GGNKY7IX-BfjTcIsb.js} +1 -1
- package/dist/public/assets/{yaml-ffiFfPtJ.js → yaml-dFLE_rSl.js} +1 -1
- package/dist/public/index.html +35 -6
- package/dist/public/launch.svg +49 -0
- package/dist/serve/index.mjs +3699 -887
- package/package.json +25 -22
- package/dist/pi/packages/ta-agents/fixtures/fake-acp-agent.mjs +0 -183
- package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/acp-agent.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-session.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-tool.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/extension.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/extension.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/json-rpc.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/json-rpc.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/message-stream.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/message-stream.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/pi-types.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/pi-types.js.map +0 -1
- package/dist/pi/packages/ta-agents/lib/texts.d.ts.map +0 -1
- package/dist/pi/packages/ta-agents/lib/texts.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/blob-store.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/blob-store.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/card.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/card.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/changes-protocol.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/changes-service.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/changes-service.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/changes-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/changes-util.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/diff-tab.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/diff-tab.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/extension.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/extension.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/host.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/host.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/i18n.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/i18n.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/index.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/index.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/line-diff.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/line-diff.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/page.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/page.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/react.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/react.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/recorder.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/recorder.js.map +0 -1
- package/dist/pi/packages/ta-changes/lib/style.d.ts.map +0 -1
- package/dist/pi/packages/ta-changes/lib/style.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/agent-menu.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channel-menu.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels-model.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/channels.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/create.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/create.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/extension.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/extension.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/faces.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/faces.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/host.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/host.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/i18n.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/index.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/index.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/members.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/members.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/more-menu.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/more-menu.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/react.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/react.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/room.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/room.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/style.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/style.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/team.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/team.js.map +0 -1
- package/dist/pi/packages/ta-channels/lib/views.d.ts.map +0 -1
- package/dist/pi/packages/ta-channels/lib/views.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/extension.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/extension.js.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/pi-types.d.ts.map +0 -1
- package/dist/pi/packages/ta-computer-use/lib/pi-types.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/commands.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/commands.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/cron-expression.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/cron-expression.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/editor.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/editor.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/extension.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/extension.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/form-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/form-util.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/host.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/host.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/i18n.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/index.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/index.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/model-picker.d.ts +0 -33
- package/dist/pi/packages/ta-cron/lib/model-picker.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/model-picker.js +0 -178
- package/dist/pi/packages/ta-cron/lib/model-picker.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/notifier.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/notifier.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/page.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/page.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/react.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/react.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/reply.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/reply.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/schedule-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/schedule-util.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/scheduler.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/scheduler.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/server-texts.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/server-texts.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/style.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/style.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/task-store.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/task-store.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/task-util.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.js.map +0 -1
- package/dist/pi/packages/ta-cron/lib/tool.d.ts.map +0 -1
- package/dist/pi/packages/ta-cron/lib/tool.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/actions.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/archive.d.ts +0 -30
- package/dist/pi/packages/ta-extensions/lib/archive.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/archive.js +0 -213
- package/dist/pi/packages/ta-extensions/lib/archive.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/context.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/context.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/extensions-util.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/host.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/host.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/i18n.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/import-dialog.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/index.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/index.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-detail.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-detail.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-parts.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-parts.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-store.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-store.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-util.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-view.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market-view.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/market.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/page.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/page.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/pictures.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/pictures.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/react.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/react.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/signal.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/signal.js.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/style.d.ts.map +0 -1
- package/dist/pi/packages/ta-extensions/lib/style.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser-agent.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser-agent.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser-import.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser-import.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser-webview.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser-webview.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/browser.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/common.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/common.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/editors.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/editors.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/explorer.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/explorer.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/file-icon.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/host.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/host.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/i18n.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/index.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/index.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/open-files.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/open-files.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/preview.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/react.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/react.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/scm.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/scm.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/search.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/search.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/style.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/style.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/terminal.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/file-icon.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/git.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/git.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/preview.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/search.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/search.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/seti-font.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/seti.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/upload.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/upload.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/zip.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/util/zip.js.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts.map +0 -1
- package/dist/pi/packages/ta-workspace/lib/workspace-client.js.map +0 -1
- package/dist/pi/packages/ta-workspace/scripts/seti.ts +0 -173
- package/dist/public/assets/cynefin-EF2NZ3EQ-D_QV_BJg.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-QGLBPpjQ.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ByODkoVe.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-BMphWS2h.js +0 -1
- package/dist/public/assets/module-BX2fJibj.js +0 -1124
- package/dist/public/assets/module-N1D-AOa6.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-Ca8klABu.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-B-SN2eCI.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DzDnNRnq.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-7QAv0_1N.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CIFqDFf2.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-cznq7PJK.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CBYUiQGU.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-DV8bp8Ml.js +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -565,7 +565,16 @@ var init_websocket_connection = __esm(() => {
|
|
|
565
565
|
var exports_relay_protocol = {};
|
|
566
566
|
__export(exports_relay_protocol, {
|
|
567
567
|
RelayCloseCode: () => RelayCloseCode,
|
|
568
|
+
RELAY_STALE_MS: () => RELAY_STALE_MS,
|
|
569
|
+
RELAY_SHARE_PATH: () => RELAY_SHARE_PATH,
|
|
570
|
+
RELAY_SHARE_PAGE: () => RELAY_SHARE_PAGE,
|
|
571
|
+
RELAY_SHARE_MAX_BYTES: () => RELAY_SHARE_MAX_BYTES,
|
|
572
|
+
RELAY_SHARE_DAYS: () => RELAY_SHARE_DAYS,
|
|
573
|
+
RELAY_SHARE_CHUNK_BYTES: () => RELAY_SHARE_CHUNK_BYTES,
|
|
568
574
|
RELAY_PROOF: () => RELAY_PROOF,
|
|
575
|
+
RELAY_PONG: () => RELAY_PONG,
|
|
576
|
+
RELAY_PING_MS: () => RELAY_PING_MS,
|
|
577
|
+
RELAY_PING: () => RELAY_PING,
|
|
569
578
|
RELAY_PAIR_PATH: () => RELAY_PAIR_PATH,
|
|
570
579
|
RELAY_PAIR_PAGE: () => RELAY_PAIR_PAGE,
|
|
571
580
|
RELAY_ID: () => RELAY_ID,
|
|
@@ -573,11 +582,16 @@ __export(exports_relay_protocol, {
|
|
|
573
582
|
RELAY_DEFAULT_URL: () => RELAY_DEFAULT_URL,
|
|
574
583
|
RELAY_CONNECT_PATH: () => RELAY_CONNECT_PATH
|
|
575
584
|
});
|
|
576
|
-
var RELAY_DEFAULT_URL = "https://relay.cellbang.com", RELAY_HOST_PATH = "/v1/host/", RELAY_CONNECT_PATH = "/v1/connect/", RELAY_PAIR_PATH = "/pair", RELAY_PAIR_PAGE = `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>Ta</title>
|
|
585
|
+
var RELAY_DEFAULT_URL = "https://relay.cellbang.com", RELAY_HOST_PATH = "/v1/host/", RELAY_CONNECT_PATH = "/v1/connect/", RELAY_PAIR_PATH = "/pair", RELAY_SHARE_PATH = "/share", RELAY_PAIR_PAGE = `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>Ta</title>
|
|
577
586
|
<body style="font:16px system-ui;max-width:32em;margin:3em auto;padding:0 1em">
|
|
578
587
|
<h1>Ta</h1><p>Open this link in the Ta app, or paste it there, to reach your Ta from this device.</p>
|
|
579
|
-
<p>打开 Ta 应用,粘贴这个链接,就能从这台设备连到你的 Ta。</p></body>`,
|
|
588
|
+
<p>打开 Ta 应用,粘贴这个链接,就能从这台设备连到你的 Ta。</p></body>`, RELAY_SHARE_PAGE = `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>Ta</title>
|
|
589
|
+
<body style="font:16px system-ui;max-width:32em;margin:3em auto;padding:0 1em">
|
|
590
|
+
<h1>Ta</h1><p>Someone shared an extension of Ta. Scan the code in the Ta app, or paste this link in its Quick open, to open it.</p>
|
|
591
|
+
<p>有人分享了一个 Ta 扩展。在 Ta 应用里扫码,或把这个链接粘贴到“快捷打开”,就能打开它。</p></body>`, RELAY_SHARE_MAX_BYTES, RELAY_SHARE_CHUNK_BYTES, RELAY_SHARE_DAYS = 7, RELAY_ID, RelayCloseCode, RELAY_PING = "ping", RELAY_PONG = "pong", RELAY_PING_MS = 25000, RELAY_STALE_MS = 80000, RELAY_PROOF = "ta-relay ready";
|
|
580
592
|
var init_relay_protocol = __esm(() => {
|
|
593
|
+
RELAY_SHARE_MAX_BYTES = 8 * 1024 * 1024;
|
|
594
|
+
RELAY_SHARE_CHUNK_BYTES = 192 * 1024;
|
|
581
595
|
RELAY_ID = /^[A-Za-z0-9_-]{16,64}$/;
|
|
582
596
|
(function(RelayCloseCode2) {
|
|
583
597
|
RelayCloseCode2[RelayCloseCode2["HOST_OFFLINE"] = 4404] = "HOST_OFFLINE";
|
|
@@ -585,6 +599,7 @@ var init_relay_protocol = __esm(() => {
|
|
|
585
599
|
RelayCloseCode2[RelayCloseCode2["REPLACED"] = 4409] = "REPLACED";
|
|
586
600
|
RelayCloseCode2[RelayCloseCode2["CLOSED_BY_HOST"] = 4410] = "CLOSED_BY_HOST";
|
|
587
601
|
RelayCloseCode2[RelayCloseCode2["FULL"] = 4429] = "FULL";
|
|
602
|
+
RelayCloseCode2[RelayCloseCode2["TIMEOUT"] = 4408] = "TIMEOUT";
|
|
588
603
|
})(RelayCloseCode || (RelayCloseCode = {}));
|
|
589
604
|
});
|
|
590
605
|
|
|
@@ -605,6 +620,11 @@ class RelayRoom {
|
|
|
605
620
|
return;
|
|
606
621
|
}
|
|
607
622
|
fromClient(channel, text) {
|
|
623
|
+
var _a;
|
|
624
|
+
if (text === RELAY_PING) {
|
|
625
|
+
(_a = this.peers.client(channel)) === null || _a === undefined || _a.send(RELAY_PONG);
|
|
626
|
+
return;
|
|
627
|
+
}
|
|
608
628
|
const host = this.peers.host();
|
|
609
629
|
if (host) {
|
|
610
630
|
this.toHost(host, { t: "data", ch: channel, d: text });
|
|
@@ -617,10 +637,15 @@ class RelayRoom {
|
|
|
617
637
|
}
|
|
618
638
|
}
|
|
619
639
|
fromHost(text) {
|
|
640
|
+
var _a;
|
|
641
|
+
if (text === RELAY_PING) {
|
|
642
|
+
(_a = this.peers.host()) === null || _a === undefined || _a.send(RELAY_PONG);
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
620
645
|
let message;
|
|
621
646
|
try {
|
|
622
647
|
message = JSON.parse(text);
|
|
623
|
-
} catch (
|
|
648
|
+
} catch (_b) {
|
|
624
649
|
return;
|
|
625
650
|
}
|
|
626
651
|
const client = typeof message.ch === "string" ? this.peers.client(message.ch) : undefined;
|
|
@@ -660,9 +685,10 @@ class RelayServer {
|
|
|
660
685
|
listen() {
|
|
661
686
|
const server = createServer2((request, response) => {
|
|
662
687
|
var _a;
|
|
663
|
-
const
|
|
688
|
+
const path = ((_a = request.url) !== null && _a !== undefined ? _a : "/").split(/[?#]/)[0];
|
|
689
|
+
const page = path === RELAY_PAIR_PATH ? RELAY_PAIR_PAGE : path === RELAY_SHARE_PATH ? RELAY_SHARE_PAGE : undefined;
|
|
664
690
|
response.writeHead(200, { "content-type": page ? "text/html; charset=utf-8" : "text/plain" });
|
|
665
|
-
response.end(page ?
|
|
691
|
+
response.end(page !== null && page !== undefined ? page : `Ta relay
|
|
666
692
|
`);
|
|
667
693
|
});
|
|
668
694
|
server.on("upgrade", (request, socket, head) => this.upgrade(request, socket, head));
|
|
@@ -709,14 +735,16 @@ class RelayServer {
|
|
|
709
735
|
}
|
|
710
736
|
openHost(id, secret, connection) {
|
|
711
737
|
var _a;
|
|
712
|
-
var _b;
|
|
713
738
|
const hash = createHash2("sha256").update(secret).digest("base64url");
|
|
714
|
-
const room = (
|
|
739
|
+
const room = (_a = this.rooms.get(id)) !== null && _a !== undefined ? _a : this.createRoom(id, hash);
|
|
715
740
|
if (secret.length < 32 || !RelayServer.same(room.secretHash, hash)) {
|
|
716
741
|
connection.close(RelayCloseCode.REFUSED, "Refused.");
|
|
717
742
|
return;
|
|
718
743
|
}
|
|
719
|
-
(
|
|
744
|
+
if (room.host) {
|
|
745
|
+
room.host.close(RelayCloseCode.REPLACED, "The host connected again.");
|
|
746
|
+
room.relay.hostClosed();
|
|
747
|
+
}
|
|
720
748
|
room.host = connection;
|
|
721
749
|
connection.onMessage((text) => room.relay.fromHost(text));
|
|
722
750
|
connection.onClose(() => {
|
|
@@ -792,7 +820,12 @@ class RelayStore {
|
|
|
792
820
|
read() {
|
|
793
821
|
try {
|
|
794
822
|
const config = JSON.parse(readFileSync5(this.file, "utf8"));
|
|
795
|
-
return {
|
|
823
|
+
return {
|
|
824
|
+
url: config.url,
|
|
825
|
+
host: config.host,
|
|
826
|
+
devices: Array.isArray(config.devices) ? config.devices : [],
|
|
827
|
+
shares: Array.isArray(config.shares) ? config.shares : []
|
|
828
|
+
};
|
|
796
829
|
} catch (_a) {
|
|
797
830
|
return { devices: [] };
|
|
798
831
|
}
|
|
@@ -800,10 +833,49 @@ class RelayStore {
|
|
|
800
833
|
device(deviceId) {
|
|
801
834
|
return this.read().devices.find((device) => device.id === deviceId);
|
|
802
835
|
}
|
|
836
|
+
share(shareId, now = Date.now()) {
|
|
837
|
+
var _a;
|
|
838
|
+
return (_a = this.read().shares) === null || _a === undefined ? undefined : _a.find((share) => share.id === shareId && share.expiresAt > now);
|
|
839
|
+
}
|
|
840
|
+
shares(now = Date.now()) {
|
|
841
|
+
var _a;
|
|
842
|
+
return ((_a = this.read().shares) !== null && _a !== undefined ? _a : []).filter((share) => share.expiresAt > now);
|
|
843
|
+
}
|
|
844
|
+
shareRoot(root, name, now = Date.now()) {
|
|
845
|
+
var _a, _b, _c;
|
|
846
|
+
const before = this.read();
|
|
847
|
+
const url = (_a = before.url) !== null && _a !== undefined ? _a : RELAY_DEFAULT_URL;
|
|
848
|
+
const host = (_b = before.host) !== null && _b !== undefined ? _b : { id: id(), secret: randomBytes2(32).toString("base64url") };
|
|
849
|
+
const live = ((_c = before.shares) !== null && _c !== undefined ? _c : []).filter((share2) => share2.expiresAt > now);
|
|
850
|
+
let share = live.find((candidate) => candidate.root === root);
|
|
851
|
+
if (!share) {
|
|
852
|
+
share = {
|
|
853
|
+
id: id(),
|
|
854
|
+
key: randomBytes2(32).toString("base64url"),
|
|
855
|
+
root,
|
|
856
|
+
name,
|
|
857
|
+
createdAt: now,
|
|
858
|
+
expiresAt: now + RELAY_SHARE_DAYS * 24 * 60 * 60 * 1000
|
|
859
|
+
};
|
|
860
|
+
live.push(share);
|
|
861
|
+
}
|
|
862
|
+
this.write({ ...before, url, host, shares: live });
|
|
863
|
+
return { share, link: { relay: url, host: host.id, share: share.id, key: share.key, name } };
|
|
864
|
+
}
|
|
865
|
+
unshareRoot(root) {
|
|
866
|
+
var _a, _b;
|
|
867
|
+
const config = this.read();
|
|
868
|
+
const shares = ((_a = config.shares) !== null && _a !== undefined ? _a : []).filter((share) => share.root !== root);
|
|
869
|
+
if (shares.length === ((_b = config.shares) !== null && _b !== undefined ? _b : []).length) {
|
|
870
|
+
return false;
|
|
871
|
+
}
|
|
872
|
+
this.write({ ...config, shares });
|
|
873
|
+
return true;
|
|
874
|
+
}
|
|
803
875
|
pair(relay, deviceName) {
|
|
804
876
|
const url = relay.replace(/\/+$/, "");
|
|
805
877
|
const before = this.read();
|
|
806
|
-
const config = before.url === url && before.host ? before : { url, host: { id: id(), secret: randomBytes2(32).toString("base64url") }, devices: [] };
|
|
878
|
+
const config = before.url === url && before.host ? before : { url, host: { id: id(), secret: randomBytes2(32).toString("base64url") }, devices: [], shares: [] };
|
|
807
879
|
const device = { id: id(), name: deviceName, key: randomBytes2(32).toString("base64url"), createdAt: Date.now() };
|
|
808
880
|
config.devices.push(device);
|
|
809
881
|
this.write(config);
|
|
@@ -832,6 +904,7 @@ class RelayStore {
|
|
|
832
904
|
}
|
|
833
905
|
var id = () => randomBytes2(16).toString("base64url");
|
|
834
906
|
var init_relay_store = __esm(() => {
|
|
907
|
+
init_relay_protocol();
|
|
835
908
|
RelayStore.FILE = "relay.json";
|
|
836
909
|
});
|
|
837
910
|
|
|
@@ -873,6 +946,436 @@ var init_relay_pairing = __esm(() => {
|
|
|
873
946
|
})(RelayPairingUtil || (RelayPairingUtil = {}));
|
|
874
947
|
});
|
|
875
948
|
|
|
949
|
+
// ../../ta-packages/ta-relay/esm/common/qr-code.js
|
|
950
|
+
var exports_qr_code = {};
|
|
951
|
+
__export(exports_qr_code, {
|
|
952
|
+
QrCode: () => QrCode
|
|
953
|
+
});
|
|
954
|
+
|
|
955
|
+
class QrCode {
|
|
956
|
+
constructor(version, data) {
|
|
957
|
+
this.version = version;
|
|
958
|
+
this.size = version * 4 + 17;
|
|
959
|
+
this.modules = Array.from({ length: this.size }, () => new Array(this.size).fill(false));
|
|
960
|
+
this.reserved = Array.from({ length: this.size }, () => new Array(this.size).fill(false));
|
|
961
|
+
this.drawPatterns();
|
|
962
|
+
this.drawCodewords(this.withEcc(data));
|
|
963
|
+
let best = 0;
|
|
964
|
+
let lowest = Number.POSITIVE_INFINITY;
|
|
965
|
+
for (let mask = 0;mask < 8; mask++) {
|
|
966
|
+
this.applyMask(mask);
|
|
967
|
+
this.drawFormat(mask);
|
|
968
|
+
const penalty = this.penalty();
|
|
969
|
+
if (penalty < lowest) {
|
|
970
|
+
best = mask;
|
|
971
|
+
lowest = penalty;
|
|
972
|
+
}
|
|
973
|
+
this.applyMask(mask);
|
|
974
|
+
}
|
|
975
|
+
this.applyMask(best);
|
|
976
|
+
this.drawFormat(best);
|
|
977
|
+
}
|
|
978
|
+
static encode(text) {
|
|
979
|
+
const bytes = [...new TextEncoder().encode(text)];
|
|
980
|
+
for (let version = 1;version <= 40; version++) {
|
|
981
|
+
const capacity = QrCode.dataCodewords(version) * 8;
|
|
982
|
+
const countBits = version <= 9 ? 8 : 16;
|
|
983
|
+
const used = 4 + countBits + bytes.length * 8;
|
|
984
|
+
if (used <= capacity) {
|
|
985
|
+
const bits = [];
|
|
986
|
+
const push = (value, length) => {
|
|
987
|
+
for (let i = length - 1;i >= 0; i--) {
|
|
988
|
+
bits.push(value >>> i & 1);
|
|
989
|
+
}
|
|
990
|
+
};
|
|
991
|
+
push(4, 4);
|
|
992
|
+
push(bytes.length, countBits);
|
|
993
|
+
for (const byte of bytes) {
|
|
994
|
+
push(byte, 8);
|
|
995
|
+
}
|
|
996
|
+
push(0, Math.min(4, capacity - bits.length));
|
|
997
|
+
push(0, (8 - bits.length % 8) % 8);
|
|
998
|
+
for (let pad = 236;bits.length < capacity; pad ^= 236 ^ 17) {
|
|
999
|
+
push(pad, 8);
|
|
1000
|
+
}
|
|
1001
|
+
const data = [];
|
|
1002
|
+
for (let i = 0;i < bits.length; i += 8) {
|
|
1003
|
+
data.push(bits.slice(i, i + 8).reduce((byte, bit) => byte << 1 | bit, 0));
|
|
1004
|
+
}
|
|
1005
|
+
return new QrCode(version, data);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
throw new Error("The text is too long for a QR code.");
|
|
1009
|
+
}
|
|
1010
|
+
isDark(x, y) {
|
|
1011
|
+
return this.modules[y][x];
|
|
1012
|
+
}
|
|
1013
|
+
lines(quiet = 2) {
|
|
1014
|
+
const dark = (x, y) => x >= 0 && y >= 0 && x < this.size && y < this.size && this.isDark(x, y);
|
|
1015
|
+
const lines = [];
|
|
1016
|
+
for (let y = -quiet;y < this.size + quiet; y += 2) {
|
|
1017
|
+
let line = "";
|
|
1018
|
+
for (let x = -quiet;x < this.size + quiet; x++) {
|
|
1019
|
+
const [top, bottom] = [dark(x, y), dark(x, y + 1)];
|
|
1020
|
+
line += top && bottom ? "█" : top ? "▀" : bottom ? "▄" : " ";
|
|
1021
|
+
}
|
|
1022
|
+
lines.push(line);
|
|
1023
|
+
}
|
|
1024
|
+
return lines;
|
|
1025
|
+
}
|
|
1026
|
+
path() {
|
|
1027
|
+
let d = "";
|
|
1028
|
+
for (let y = 0;y < this.size; y++) {
|
|
1029
|
+
for (let x = 0;x < this.size; x++) {
|
|
1030
|
+
if (this.modules[y][x]) {
|
|
1031
|
+
d += `M${x} ${y}h1v1h-1z`;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
return d;
|
|
1036
|
+
}
|
|
1037
|
+
static rawModules(version) {
|
|
1038
|
+
let result = (16 * version + 128) * version + 64;
|
|
1039
|
+
if (version >= 2) {
|
|
1040
|
+
const align = Math.floor(version / 7) + 2;
|
|
1041
|
+
result -= (25 * align - 10) * align - 55;
|
|
1042
|
+
if (version >= 7) {
|
|
1043
|
+
result -= 36;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
return result;
|
|
1047
|
+
}
|
|
1048
|
+
static dataCodewords(version) {
|
|
1049
|
+
return Math.floor(QrCode.rawModules(version) / 8) - QrCode.ECC_PER_BLOCK[version] * QrCode.BLOCKS[version];
|
|
1050
|
+
}
|
|
1051
|
+
alignmentPositions() {
|
|
1052
|
+
if (this.version === 1) {
|
|
1053
|
+
return [];
|
|
1054
|
+
}
|
|
1055
|
+
const count = Math.floor(this.version / 7) + 2;
|
|
1056
|
+
const step = this.version === 32 ? 26 : Math.ceil((this.version * 4 + 4) / (count * 2 - 2)) * 2;
|
|
1057
|
+
const result = [6];
|
|
1058
|
+
for (let position = this.size - 7;result.length < count; position -= step) {
|
|
1059
|
+
result.splice(1, 0, position);
|
|
1060
|
+
}
|
|
1061
|
+
return result;
|
|
1062
|
+
}
|
|
1063
|
+
set(x, y, dark) {
|
|
1064
|
+
this.modules[y][x] = dark;
|
|
1065
|
+
this.reserved[y][x] = true;
|
|
1066
|
+
}
|
|
1067
|
+
drawPatterns() {
|
|
1068
|
+
for (let i = 0;i < this.size; i++) {
|
|
1069
|
+
this.set(6, i, i % 2 === 0);
|
|
1070
|
+
this.set(i, 6, i % 2 === 0);
|
|
1071
|
+
}
|
|
1072
|
+
const finder = (cx, cy) => {
|
|
1073
|
+
for (let dy = -4;dy <= 4; dy++) {
|
|
1074
|
+
for (let dx = -4;dx <= 4; dx++) {
|
|
1075
|
+
const x = cx + dx;
|
|
1076
|
+
const y = cy + dy;
|
|
1077
|
+
if (x >= 0 && x < this.size && y >= 0 && y < this.size) {
|
|
1078
|
+
const distance = Math.max(Math.abs(dx), Math.abs(dy));
|
|
1079
|
+
this.set(x, y, distance !== 2 && distance !== 4);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
finder(3, 3);
|
|
1085
|
+
finder(this.size - 4, 3);
|
|
1086
|
+
finder(3, this.size - 4);
|
|
1087
|
+
const positions = this.alignmentPositions();
|
|
1088
|
+
for (let i = 0;i < positions.length; i++) {
|
|
1089
|
+
for (let j = 0;j < positions.length; j++) {
|
|
1090
|
+
const corner = i === 0 && j === 0 || i === 0 && j === positions.length - 1 || i === positions.length - 1 && j === 0;
|
|
1091
|
+
if (!corner) {
|
|
1092
|
+
for (let dy = -2;dy <= 2; dy++) {
|
|
1093
|
+
for (let dx = -2;dx <= 2; dx++) {
|
|
1094
|
+
this.set(positions[i] + dx, positions[j] + dy, Math.max(Math.abs(dx), Math.abs(dy)) !== 1);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
this.drawFormat(0);
|
|
1101
|
+
if (this.version >= 7) {
|
|
1102
|
+
let rem = this.version;
|
|
1103
|
+
for (let i = 0;i < 12; i++) {
|
|
1104
|
+
rem = rem << 1 ^ (rem >>> 11) * 7973;
|
|
1105
|
+
}
|
|
1106
|
+
const bits = this.version << 12 | rem;
|
|
1107
|
+
for (let i = 0;i < 18; i++) {
|
|
1108
|
+
const dark = (bits >>> i & 1) !== 0;
|
|
1109
|
+
const a = this.size - 11 + i % 3;
|
|
1110
|
+
const b = Math.floor(i / 3);
|
|
1111
|
+
this.set(a, b, dark);
|
|
1112
|
+
this.set(b, a, dark);
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
drawFormat(mask) {
|
|
1117
|
+
const data = QrCode.ECC_FORMAT << 3 | mask;
|
|
1118
|
+
let rem = data;
|
|
1119
|
+
for (let i = 0;i < 10; i++) {
|
|
1120
|
+
rem = rem << 1 ^ (rem >>> 9) * 1335;
|
|
1121
|
+
}
|
|
1122
|
+
const bits = (data << 10 | rem) ^ 21522;
|
|
1123
|
+
const bit = (i) => (bits >>> i & 1) !== 0;
|
|
1124
|
+
for (let i = 0;i <= 5; i++) {
|
|
1125
|
+
this.set(8, i, bit(i));
|
|
1126
|
+
}
|
|
1127
|
+
this.set(8, 7, bit(6));
|
|
1128
|
+
this.set(8, 8, bit(7));
|
|
1129
|
+
this.set(7, 8, bit(8));
|
|
1130
|
+
for (let i = 9;i < 15; i++) {
|
|
1131
|
+
this.set(14 - i, 8, bit(i));
|
|
1132
|
+
}
|
|
1133
|
+
for (let i = 0;i < 8; i++) {
|
|
1134
|
+
this.set(this.size - 1 - i, 8, bit(i));
|
|
1135
|
+
}
|
|
1136
|
+
for (let i = 8;i < 15; i++) {
|
|
1137
|
+
this.set(8, this.size - 15 + i, bit(i));
|
|
1138
|
+
}
|
|
1139
|
+
this.set(8, this.size - 8, true);
|
|
1140
|
+
}
|
|
1141
|
+
withEcc(data) {
|
|
1142
|
+
const blocks = QrCode.BLOCKS[this.version];
|
|
1143
|
+
const eccLength = QrCode.ECC_PER_BLOCK[this.version];
|
|
1144
|
+
const raw = Math.floor(QrCode.rawModules(this.version) / 8);
|
|
1145
|
+
const shortBlocks = blocks - raw % blocks;
|
|
1146
|
+
const shortLength = Math.floor(raw / blocks);
|
|
1147
|
+
const divisor = QrCode.reedSolomonDivisor(eccLength);
|
|
1148
|
+
const all = [];
|
|
1149
|
+
for (let i = 0, k = 0;i < blocks; i++) {
|
|
1150
|
+
const dataLength = shortLength - eccLength + (i < shortBlocks ? 0 : 1);
|
|
1151
|
+
const block = data.slice(k, k + dataLength);
|
|
1152
|
+
k += dataLength;
|
|
1153
|
+
const ecc = QrCode.reedSolomonRemainder(block, divisor);
|
|
1154
|
+
if (i < shortBlocks) {
|
|
1155
|
+
block.push(0);
|
|
1156
|
+
}
|
|
1157
|
+
all.push([...block, ...ecc]);
|
|
1158
|
+
}
|
|
1159
|
+
const result = [];
|
|
1160
|
+
for (let i = 0;i < all[0].length; i++) {
|
|
1161
|
+
for (let j = 0;j < all.length; j++) {
|
|
1162
|
+
if (i !== shortLength - eccLength || j >= shortBlocks) {
|
|
1163
|
+
result.push(all[j][i]);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
return result;
|
|
1168
|
+
}
|
|
1169
|
+
drawCodewords(codewords) {
|
|
1170
|
+
let i = 0;
|
|
1171
|
+
for (let right = this.size - 1;right >= 1; right -= 2) {
|
|
1172
|
+
if (right === 6) {
|
|
1173
|
+
right = 5;
|
|
1174
|
+
}
|
|
1175
|
+
for (let vertical = 0;vertical < this.size; vertical++) {
|
|
1176
|
+
for (let j = 0;j < 2; j++) {
|
|
1177
|
+
const x = right - j;
|
|
1178
|
+
const upward = (right + 1 & 2) === 0;
|
|
1179
|
+
const y = upward ? this.size - 1 - vertical : vertical;
|
|
1180
|
+
if (!this.reserved[y][x] && i < codewords.length * 8) {
|
|
1181
|
+
this.modules[y][x] = (codewords[i >>> 3] >>> 7 - (i & 7) & 1) !== 0;
|
|
1182
|
+
i++;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
applyMask(mask) {
|
|
1189
|
+
for (let y = 0;y < this.size; y++) {
|
|
1190
|
+
for (let x = 0;x < this.size; x++) {
|
|
1191
|
+
if (this.reserved[y][x]) {
|
|
1192
|
+
continue;
|
|
1193
|
+
}
|
|
1194
|
+
const flip = [
|
|
1195
|
+
(x + y) % 2,
|
|
1196
|
+
y % 2,
|
|
1197
|
+
x % 3,
|
|
1198
|
+
(x + y) % 3,
|
|
1199
|
+
(Math.floor(x / 3) + Math.floor(y / 2)) % 2,
|
|
1200
|
+
x * y % 2 + x * y % 3,
|
|
1201
|
+
(x * y % 2 + x * y % 3) % 2,
|
|
1202
|
+
((x + y) % 2 + x * y % 3) % 2
|
|
1203
|
+
][mask];
|
|
1204
|
+
if (flip === 0) {
|
|
1205
|
+
this.modules[y][x] = !this.modules[y][x];
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
penalty() {
|
|
1211
|
+
let result = 0;
|
|
1212
|
+
const line = (get) => {
|
|
1213
|
+
for (let i = 0;i < this.size; i++) {
|
|
1214
|
+
let run = 1;
|
|
1215
|
+
const seen = [];
|
|
1216
|
+
for (let j = 0;j < this.size; j++) {
|
|
1217
|
+
const dark2 = get(i, j);
|
|
1218
|
+
if (j > 0 && dark2 === get(i, j - 1)) {
|
|
1219
|
+
run++;
|
|
1220
|
+
if (run === 5) {
|
|
1221
|
+
result += 3;
|
|
1222
|
+
} else if (run > 5) {
|
|
1223
|
+
result++;
|
|
1224
|
+
}
|
|
1225
|
+
} else {
|
|
1226
|
+
run = 1;
|
|
1227
|
+
}
|
|
1228
|
+
seen.push(dark2);
|
|
1229
|
+
}
|
|
1230
|
+
const text = seen.map((dark2) => dark2 ? "1" : "0").join("");
|
|
1231
|
+
for (const pattern of ["10111010000", "00001011101"]) {
|
|
1232
|
+
for (let at = text.indexOf(pattern);at >= 0; at = text.indexOf(pattern, at + 1)) {
|
|
1233
|
+
result += 40;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
line((i, j) => this.modules[i][j]);
|
|
1239
|
+
line((i, j) => this.modules[j][i]);
|
|
1240
|
+
let dark = 0;
|
|
1241
|
+
for (let y = 0;y < this.size; y++) {
|
|
1242
|
+
for (let x = 0;x < this.size; x++) {
|
|
1243
|
+
const value = this.modules[y][x];
|
|
1244
|
+
dark += value ? 1 : 0;
|
|
1245
|
+
if (x < this.size - 1 && y < this.size - 1 && value === this.modules[y][x + 1] && value === this.modules[y + 1][x] && value === this.modules[y + 1][x + 1]) {
|
|
1246
|
+
result += 3;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
const total = this.size * this.size;
|
|
1251
|
+
result += Math.floor(Math.abs(dark * 20 - total * 10) / total) * 10;
|
|
1252
|
+
return result;
|
|
1253
|
+
}
|
|
1254
|
+
static multiply(x, y) {
|
|
1255
|
+
let z = 0;
|
|
1256
|
+
for (let i = 7;i >= 0; i--) {
|
|
1257
|
+
z = z << 1 ^ (z >>> 7) * 285;
|
|
1258
|
+
z ^= (y >>> i & 1) * x;
|
|
1259
|
+
}
|
|
1260
|
+
return z & 255;
|
|
1261
|
+
}
|
|
1262
|
+
static reedSolomonDivisor(degree) {
|
|
1263
|
+
const result = new Array(degree).fill(0);
|
|
1264
|
+
result[degree - 1] = 1;
|
|
1265
|
+
let root = 1;
|
|
1266
|
+
for (let i = 0;i < degree; i++) {
|
|
1267
|
+
for (let j = 0;j < result.length; j++) {
|
|
1268
|
+
result[j] = QrCode.multiply(result[j], root);
|
|
1269
|
+
if (j + 1 < result.length) {
|
|
1270
|
+
result[j] ^= result[j + 1];
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
root = QrCode.multiply(root, 2);
|
|
1274
|
+
}
|
|
1275
|
+
return result;
|
|
1276
|
+
}
|
|
1277
|
+
static reedSolomonRemainder(data, divisor) {
|
|
1278
|
+
const result = new Array(divisor.length).fill(0);
|
|
1279
|
+
for (const byte of data) {
|
|
1280
|
+
const factor = byte ^ result.shift();
|
|
1281
|
+
result.push(0);
|
|
1282
|
+
divisor.forEach((coefficient, i) => {
|
|
1283
|
+
result[i] ^= QrCode.multiply(coefficient, factor);
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1286
|
+
return result;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
var init_qr_code = __esm(() => {
|
|
1290
|
+
QrCode.ECC_PER_BLOCK = [
|
|
1291
|
+
-1,
|
|
1292
|
+
10,
|
|
1293
|
+
16,
|
|
1294
|
+
26,
|
|
1295
|
+
18,
|
|
1296
|
+
24,
|
|
1297
|
+
16,
|
|
1298
|
+
18,
|
|
1299
|
+
22,
|
|
1300
|
+
22,
|
|
1301
|
+
26,
|
|
1302
|
+
30,
|
|
1303
|
+
22,
|
|
1304
|
+
22,
|
|
1305
|
+
24,
|
|
1306
|
+
24,
|
|
1307
|
+
28,
|
|
1308
|
+
28,
|
|
1309
|
+
26,
|
|
1310
|
+
26,
|
|
1311
|
+
26,
|
|
1312
|
+
26,
|
|
1313
|
+
28,
|
|
1314
|
+
28,
|
|
1315
|
+
28,
|
|
1316
|
+
28,
|
|
1317
|
+
28,
|
|
1318
|
+
28,
|
|
1319
|
+
28,
|
|
1320
|
+
28,
|
|
1321
|
+
28,
|
|
1322
|
+
28,
|
|
1323
|
+
28,
|
|
1324
|
+
28,
|
|
1325
|
+
28,
|
|
1326
|
+
28,
|
|
1327
|
+
28,
|
|
1328
|
+
28,
|
|
1329
|
+
28,
|
|
1330
|
+
28,
|
|
1331
|
+
28
|
|
1332
|
+
];
|
|
1333
|
+
QrCode.BLOCKS = [
|
|
1334
|
+
-1,
|
|
1335
|
+
1,
|
|
1336
|
+
1,
|
|
1337
|
+
1,
|
|
1338
|
+
2,
|
|
1339
|
+
2,
|
|
1340
|
+
4,
|
|
1341
|
+
4,
|
|
1342
|
+
4,
|
|
1343
|
+
5,
|
|
1344
|
+
5,
|
|
1345
|
+
5,
|
|
1346
|
+
8,
|
|
1347
|
+
9,
|
|
1348
|
+
9,
|
|
1349
|
+
10,
|
|
1350
|
+
10,
|
|
1351
|
+
11,
|
|
1352
|
+
13,
|
|
1353
|
+
14,
|
|
1354
|
+
16,
|
|
1355
|
+
17,
|
|
1356
|
+
17,
|
|
1357
|
+
18,
|
|
1358
|
+
20,
|
|
1359
|
+
21,
|
|
1360
|
+
23,
|
|
1361
|
+
25,
|
|
1362
|
+
26,
|
|
1363
|
+
28,
|
|
1364
|
+
29,
|
|
1365
|
+
31,
|
|
1366
|
+
33,
|
|
1367
|
+
35,
|
|
1368
|
+
37,
|
|
1369
|
+
38,
|
|
1370
|
+
40,
|
|
1371
|
+
43,
|
|
1372
|
+
45,
|
|
1373
|
+
47,
|
|
1374
|
+
49
|
|
1375
|
+
];
|
|
1376
|
+
QrCode.ECC_FORMAT = 0;
|
|
1377
|
+
});
|
|
1378
|
+
|
|
876
1379
|
// ../../ta-packages/ta-exec/esm/node/exec-rpc.js
|
|
877
1380
|
var ExecRpc;
|
|
878
1381
|
var init_exec_rpc = __esm(() => {
|
|
@@ -1290,6 +1793,7 @@ var init_exec_server = __esm(() => {
|
|
|
1290
1793
|
|
|
1291
1794
|
// ../../ta-packages/ta-harness/esm/node/ta-cli.js
|
|
1292
1795
|
import { randomBytes as randomBytes3 } from "node:crypto";
|
|
1796
|
+
import { dirname as dirname5, join as join6 } from "node:path";
|
|
1293
1797
|
import { parseArgs } from "node:util";
|
|
1294
1798
|
|
|
1295
1799
|
// ../../ai-packages/ai-coding-agent/esm/node/pi/pi-bundle-util.js
|
|
@@ -1734,6 +2238,35 @@ var TaServeStateUtil;
|
|
|
1734
2238
|
});
|
|
1735
2239
|
}
|
|
1736
2240
|
TaServeStateUtil2.isFree = isFree;
|
|
2241
|
+
async function running(agentDir = TaBrand.agentDir(), timeoutMs = 2000) {
|
|
2242
|
+
var _a;
|
|
2243
|
+
let info;
|
|
2244
|
+
try {
|
|
2245
|
+
info = JSON.parse(readFileSync2(join3(agentDir, "serve.json"), "utf8"));
|
|
2246
|
+
} catch (_b) {
|
|
2247
|
+
return;
|
|
2248
|
+
}
|
|
2249
|
+
const { url, pid } = info;
|
|
2250
|
+
if (typeof url !== "string" || typeof pid !== "number" || pid === process.pid || !isAlive(pid)) {
|
|
2251
|
+
return;
|
|
2252
|
+
}
|
|
2253
|
+
try {
|
|
2254
|
+
const response = await fetch(`${url.replace(/^ws/, "http").replace(/\/api\/ws$/, "")}/`, { signal: AbortSignal.timeout(timeoutMs) });
|
|
2255
|
+
await ((_a = response.body) === null || _a === undefined ? undefined : _a.cancel());
|
|
2256
|
+
return { url, pid };
|
|
2257
|
+
} catch (_c) {
|
|
2258
|
+
return;
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
TaServeStateUtil2.running = running;
|
|
2262
|
+
function isAlive(pid) {
|
|
2263
|
+
try {
|
|
2264
|
+
process.kill(pid, 0);
|
|
2265
|
+
return true;
|
|
2266
|
+
} catch (error) {
|
|
2267
|
+
return error.code === "EPERM";
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
1737
2270
|
})(TaServeStateUtil || (TaServeStateUtil = {}));
|
|
1738
2271
|
|
|
1739
2272
|
// ../../ta-packages/ta-harness/esm/node/session-lock.js
|
|
@@ -1835,15 +2368,17 @@ var TaPackages;
|
|
|
1835
2368
|
"@celljs/ta-workspace",
|
|
1836
2369
|
"@celljs/ta-channels",
|
|
1837
2370
|
"@celljs/ta-extensions",
|
|
2371
|
+
"@celljs/ta-launcher",
|
|
1838
2372
|
"@celljs/ta-computer-use",
|
|
1839
2373
|
"@celljs/ta-changes",
|
|
1840
2374
|
"@celljs/ta-cron",
|
|
2375
|
+
"@celljs/ta-bots",
|
|
1841
2376
|
"@celljs/ta-agents"
|
|
1842
2377
|
];
|
|
1843
2378
|
TaPackages2.SETTINGS_FILE = "ta.json";
|
|
1844
2379
|
function builtins(packageDir = process.env.PI_PACKAGE_DIR) {
|
|
1845
2380
|
const dir = packageDir ? join4(packageDir, "packages") : undefined;
|
|
1846
|
-
return dir && existsSync2(dir) ? described(subdirectories(dir)) : workspace();
|
|
2381
|
+
return dir && existsSync2(dir) ? ordered(described(subdirectories(dir))) : workspace();
|
|
1847
2382
|
}
|
|
1848
2383
|
TaPackages2.builtins = builtins;
|
|
1849
2384
|
function workspace() {
|
|
@@ -1944,6 +2479,13 @@ var TaPackages;
|
|
|
1944
2479
|
function subdirectories(dir) {
|
|
1945
2480
|
return readdirSync(dir, { withFileTypes: true }).filter((entry) => entry.isDirectory() && !entry.name.startsWith(".")).map((entry) => join4(dir, entry.name)).sort();
|
|
1946
2481
|
}
|
|
2482
|
+
function ordered(packages) {
|
|
2483
|
+
const rank = (pkg) => {
|
|
2484
|
+
const index = TaPackages2.BUILTIN.indexOf(pkg.name);
|
|
2485
|
+
return index < 0 ? TaPackages2.BUILTIN.length : index;
|
|
2486
|
+
};
|
|
2487
|
+
return packages.map((pkg, index) => ({ pkg, index })).sort((a, b) => rank(a.pkg) - rank(b.pkg) || a.index - b.index).map(({ pkg }) => pkg);
|
|
2488
|
+
}
|
|
1947
2489
|
function described(roots) {
|
|
1948
2490
|
return roots.flatMap((root) => {
|
|
1949
2491
|
const pkg = describe(root);
|
|
@@ -1987,7 +2529,12 @@ Serves ta sessions over WebSocket to any number of clients, and the web client.
|
|
|
1987
2529
|
|
|
1988
2530
|
The URL and the access token are written to serve.json in the agent directory. The token stays the
|
|
1989
2531
|
same across restarts (serve-state.json there; remove it for a new token and port).
|
|
1990
|
-
Set TA_SERVE_TOKEN to choose the token.
|
|
2532
|
+
Set TA_SERVE_TOKEN to choose the token. One ta serve runs for an agent directory: a second one exits.
|
|
2533
|
+
|
|
2534
|
+
On an address of the network (--host 0.0.0.0, in a container) it prints the link that signs in, at
|
|
2535
|
+
TA_PUBLIC_URL if set. People can also sign in with GitHub, Google, WeChat or an OpenID Connect provider
|
|
2536
|
+
(TA_GITHUB_*, TA_GOOGLE_*, TA_WECHAT_*, TA_OIDC_*) when their account is in TA_ALLOWED_USERS or added in
|
|
2537
|
+
the web client; see the README of @celljs/ta-host.
|
|
1991
2538
|
`;
|
|
1992
2539
|
var EXEC_SERVER_HELP = `Usage: ta exec-server [--host <host>] [--port <port>] [--cwd <dir>]
|
|
1993
2540
|
|
|
@@ -2013,7 +2560,7 @@ var PAIR_HELP = `Usage: ta pair [<relay url>] [--name <device>]
|
|
|
2013
2560
|
ta pair --remove <device id>
|
|
2014
2561
|
|
|
2015
2562
|
Pairs a device, such as a phone, with the ta serve of this user: prints a link to paste in the Ta app on
|
|
2016
|
-
it. The relay is https://relay.cellbang.com unless named. With a device paired, ta serve connects to the relay; what goes through it is encrypted end to end,
|
|
2563
|
+
it, and in a terminal a QR code of it to scan. The relay is https://relay.cellbang.com unless named. With a device paired, ta serve connects to the relay; what goes through it is encrypted end to end,
|
|
2017
2564
|
with a key only the device and ta serve have. The devices are in relay.json in the agent directory.
|
|
2018
2565
|
`;
|
|
2019
2566
|
var TaCli;
|
|
@@ -2032,6 +2579,14 @@ var TaCli;
|
|
|
2032
2579
|
await pair(argv.slice(1));
|
|
2033
2580
|
return;
|
|
2034
2581
|
}
|
|
2582
|
+
if (argv[0] === "gateway" && options.gatewayEntry) {
|
|
2583
|
+
const { GatewayCli } = await import(options.gatewayEntry);
|
|
2584
|
+
await GatewayCli.run(argv.slice(1), {
|
|
2585
|
+
publicDir: join6(dirname5(options.serveEntry), "..", "public"),
|
|
2586
|
+
taCommand: [process.execPath, process.argv[1]]
|
|
2587
|
+
});
|
|
2588
|
+
return;
|
|
2589
|
+
}
|
|
2035
2590
|
if (argv[0] === "exec-server") {
|
|
2036
2591
|
await execServer(argv.slice(1));
|
|
2037
2592
|
return;
|
|
@@ -2057,6 +2612,17 @@ var TaCli;
|
|
|
2057
2612
|
process.stdout.write(SERVE_HELP);
|
|
2058
2613
|
return;
|
|
2059
2614
|
}
|
|
2615
|
+
const other = await TaServeStateUtil.running();
|
|
2616
|
+
if (other) {
|
|
2617
|
+
console.error(`ta serve: one already runs for ${TaBrand.agentDir()}, at ${other.url} (pid ${other.pid}). Stop it first, or give this one another TA_CODING_AGENT_DIR.`);
|
|
2618
|
+
process.exitCode = 1;
|
|
2619
|
+
return;
|
|
2620
|
+
}
|
|
2621
|
+
if (process.env.TA_SERVE_STDIN_LIFELINE) {
|
|
2622
|
+
delete process.env.TA_SERVE_STDIN_LIFELINE;
|
|
2623
|
+
process.stdin.once("end", () => process.kill(process.pid, "SIGTERM"));
|
|
2624
|
+
process.stdin.resume();
|
|
2625
|
+
}
|
|
2060
2626
|
delete process.env.ELECTRON_RUN_AS_NODE;
|
|
2061
2627
|
if (values.host) {
|
|
2062
2628
|
process.env.CELL_SERVER__HOST = values.host;
|
|
@@ -2126,9 +2692,19 @@ var TaCli;
|
|
|
2126
2692
|
return;
|
|
2127
2693
|
}
|
|
2128
2694
|
const pairing = store.pair(relayUrl, (_a = values.name) !== null && _a !== undefined ? _a : "device");
|
|
2129
|
-
|
|
2695
|
+
const link = RelayPairingUtil2.link(pairing);
|
|
2696
|
+
if (process.stdout.isTTY) {
|
|
2697
|
+
const { QrCode: QrCode2 } = await Promise.resolve().then(() => (init_qr_code(), exports_qr_code));
|
|
2698
|
+
console.log(`Scan this code with the Ta app on the device, or paste the link below in it. Anyone with them can reach your Ta: keep them to yourself.
|
|
2130
2699
|
`);
|
|
2131
|
-
|
|
2700
|
+
console.log(QrCode2.encode(link).lines().map((line) => `\x1B[30;107m${line}\x1B[0m`).join(`
|
|
2701
|
+
`));
|
|
2702
|
+
console.log();
|
|
2703
|
+
} else {
|
|
2704
|
+
console.log(`Paste this link in the Ta app on the device. Anyone with it can reach your Ta: keep it to yourself.
|
|
2705
|
+
`);
|
|
2706
|
+
}
|
|
2707
|
+
console.log(link);
|
|
2132
2708
|
console.log(`
|
|
2133
2709
|
Device id: ${pairing.device} (ta pair --remove ${pairing.device} to unpair it)`);
|
|
2134
2710
|
}
|