@celljs/ta 4.6.0 → 4.7.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 +108 -0
- package/README.md +11 -2
- package/dist/cli.mjs +149 -104
- package/dist/pi/CHANGELOG.md +18 -0
- package/dist/pi/dist/bundle/chunks/chunk-44DLKSKE.js +2 -2
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-channels/README.en.md +48 -0
- package/dist/pi/packages/ta-channels/README.md +1 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +8 -4
- package/dist/pi/packages/ta-channels/host/index.mjs +22 -3
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +4 -1
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/channels-model.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.js +6 -1
- package/dist/pi/packages/ta-channels/lib/channels-util.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/channels.js +1 -1
- package/dist/pi/packages/ta-channels/lib/channels.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/extension.d.ts +2 -2
- package/dist/pi/packages/ta-channels/lib/extension.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
- package/dist/pi/packages/ta-channels/lib/extension.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/sidebar.js +4 -2
- package/dist/pi/packages/ta-channels/lib/sidebar.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +1 -0
- package/dist/pi/packages/ta-channels/lib/style.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.js +1 -1
- package/dist/pi/packages/ta-channels/lib/team-tools.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/team.d.ts +7 -1
- package/dist/pi/packages/ta-channels/lib/team.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/team.js +25 -2
- package/dist/pi/packages/ta-channels/lib/team.js.map +1 -1
- package/dist/pi/packages/ta-channels/lib/views.d.ts +3 -1
- package/dist/pi/packages/ta-channels/lib/views.d.ts.map +1 -1
- package/dist/pi/packages/ta-channels/lib/views.js +6 -0
- package/dist/pi/packages/ta-channels/lib/views.js.map +1 -1
- package/dist/pi/packages/ta-channels/package.json +1 -1
- package/dist/pi/packages/ta-channels/web/index.js +18 -4
- package/dist/pi/packages/ta-computer-use/README.en.md +37 -0
- package/dist/pi/packages/ta-computer-use/README.md +37 -0
- package/dist/pi/packages/ta-computer-use/extension/index.mjs +549 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.d.ts +71 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js +143 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.d.ts +78 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.js +250 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.d.ts +56 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.js +112 -0
- package/dist/pi/packages/ta-computer-use/lib/cua-driver.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/extension.d.ts +39 -0
- package/dist/pi/packages/ta-computer-use/lib/extension.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/extension.js +174 -0
- package/dist/pi/packages/ta-computer-use/lib/extension.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/pi-types.d.ts +3 -0
- package/dist/pi/packages/ta-computer-use/lib/pi-types.d.ts.map +1 -0
- package/dist/pi/packages/ta-computer-use/lib/pi-types.js +3 -0
- package/dist/pi/packages/ta-computer-use/lib/pi-types.js.map +1 -0
- package/dist/pi/packages/ta-computer-use/package.json +51 -0
- package/dist/pi/packages/ta-extensions/README.en.md +27 -0
- package/dist/pi/packages/ta-extensions/README.md +10 -3
- package/dist/pi/packages/ta-extensions/host/index.mjs +331 -1
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts +5 -1
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/actions.js +20 -1
- package/dist/pi/packages/ta-extensions/lib/actions.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/context.d.ts +20 -0
- package/dist/pi/packages/ta-extensions/lib/context.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/context.js +8 -0
- package/dist/pi/packages/ta-extensions/lib/context.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/host.d.ts +8 -2
- package/dist/pi/packages/ta-extensions/lib/host.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/host.js +11 -2
- package/dist/pi/packages/ta-extensions/lib/host.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +32 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/i18n.js +78 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/index.d.ts +2 -1
- package/dist/pi/packages/ta-extensions/lib/index.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/index.js +25 -21
- package/dist/pi/packages/ta-extensions/lib/index.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/market-detail.d.ts +12 -0
- package/dist/pi/packages/ta-extensions/lib/market-detail.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-detail.js +95 -0
- package/dist/pi/packages/ta-extensions/lib/market-detail.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.d.ts +33 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.js +56 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-store.d.ts +41 -0
- package/dist/pi/packages/ta-extensions/lib/market-store.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-store.js +99 -0
- package/dist/pi/packages/ta-extensions/lib/market-store.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +3 -0
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-style.js +98 -0
- package/dist/pi/packages/ta-extensions/lib/market-style.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts +74 -0
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-util.js +193 -0
- package/dist/pi/packages/ta-extensions/lib/market-util.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-view.d.ts +9 -0
- package/dist/pi/packages/ta-extensions/lib/market-view.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market-view.js +144 -0
- package/dist/pi/packages/ta-extensions/lib/market-view.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market.d.ts +88 -0
- package/dist/pi/packages/ta-extensions/lib/market.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/market.js +198 -0
- package/dist/pi/packages/ta-extensions/lib/market.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/page.d.ts +3 -16
- package/dist/pi/packages/ta-extensions/lib/page.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/page.js +87 -58
- package/dist/pi/packages/ta-extensions/lib/page.js.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/signal.d.ts +12 -0
- package/dist/pi/packages/ta-extensions/lib/signal.d.ts.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/signal.js +32 -0
- package/dist/pi/packages/ta-extensions/lib/signal.js.map +1 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.d.ts.map +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +3 -2
- package/dist/pi/packages/ta-extensions/lib/style.js.map +1 -1
- package/dist/pi/packages/ta-extensions/package.json +1 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -1
- package/dist/pi/packages/ta-extensions/web/index.js +937 -54
- package/dist/pi/packages/ta-workspace/README.md +1 -1
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +29 -0
- package/dist/pi/packages/ta-workspace/lib/browser.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser.js +26 -2
- package/dist/pi/packages/ta-workspace/lib/browser.js.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts +4 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts.map +1 -1
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js +24 -0
- package/dist/pi/packages/ta-workspace/lib/util/workspace.js.map +1 -1
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +47 -6
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-3_0FZVeo.js → abnfDiagram-S7VZAUFO-D1ZeYB9c.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-BX-N-_gd.js → architecture-WOLXFQ4H-RV_x_iFj.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-Daeu1xjI.js → architectureDiagram-YGSQEFNW-BGOmzcpZ.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-DjJS8902.js → blockDiagram-APKKGZFW-BkoflIym.js} +1 -1
- package/dist/public/assets/{browser-DZ1aJcgd.js → browser-Cl9_lr0X.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-mKfHFqh9.js → c4Diagram-KJ2TOQU5-CfrQTIEs.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-Cnx7dsB1.js → chunk-6MUBBAK2-C-VxnXsG.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-g4Y7Pg2t.js → chunk-AXFCVDMN-aqbxPiaN.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-QNE6A_Vg.js → chunk-BG4553SI-DDgvFLBP.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-DPHr08r0.js → chunk-DQASFODM-CItpjfW5.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-CenkxHlV.js → chunk-HFQBQIA3-BATYGV1I.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-C3Z8V8R_.js → chunk-KQLB2F66-BVAqVjgq.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BbUyxMWY.js → chunk-KS47KZWR-Bk0_a-eE.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-CKECy4cp.js → chunk-LEVMRMFU-DsFG_U8r.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-DuZd8RGI.js → chunk-M57EVK23-BgeE81Y7.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-DatO2fu-.js → chunk-OY52VR5R-2Rp6C2LJ.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-11782Ox2.js → chunk-QB3YPZ4I-BhcIp-Bl.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-CCTi2rHV.js → chunk-R3KSYZAL-i9n2AYPG.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DU6EHCIH.js → chunk-STOXU5M4-DOSqSu65.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BtgGljqq.js → chunk-TU62E6Q5-BDA8bjy3.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Dd_Qy0Gx.js → chunk-X4PVCEUW-Cs-r9l_d.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-DjOrWHxV.js → chunk-XXDRQBXY-DEcanQFC.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-KfN1--CA.js → classDiagram-v2-L25IHNXF-BS8XxKRR.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BuWVQ5UC.js → cose-bilkent-JH36ORCC--RPleOJ8.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-CXQC7Jwi.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BKljxAVP.js → cynefinDiagram-L36ESFBY-DZHM2oEU.js} +1 -1
- package/dist/public/assets/{d3-selection-CtCbiJ-r.js → d3-selection-D2iIEb1P.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-nD3f86OL.js → dagre-SPEB5RXH-h_G5ukMB.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-wSVpHF4f.js → diagram-3B7GL73J-BnThWj9P.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-BOkeaSpr.js → diagram-DNEMPZML-DHCMo8sZ.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-CRCErdiz.js → diagram-L3MUGCDN-DxJZnIKT.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-y5kaOsii.js → diagram-LA4NIPWU-Cn0SGxqL.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-D7l7ybij.js → diagram-MHCOC4E2-BafBOkBk.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-kHzV_Ibv.js → diagram-XPFHEONP-D7UnEMcU.js} +1 -1
- package/dist/public/assets/{dist-B-aKVhGg.js → dist-CN9JBoER.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-BX_-WdHG.js → ebnfDiagram-UZSYDL2S-Us1rkKwp.js} +1 -1
- package/dist/public/assets/{editor.api-Dwz0wCaW.js → editor.api-S_CuXudU.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-YaOVo5bZ.js → elk-XV6XMXQE-Czvqrn49.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BXQPjKDV.js → erDiagram-EYBAPDEH-C0g3K15f.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-SiGVyftr.js → eventmodeling-K75KTNOO-DIcU7mQ5.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-D5Z_jzJ0.js +1 -0
- package/dist/public/assets/{freemarker2-DmbpSxx5.js → freemarker2-CkAEBjHO.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-B_i7AN7O.js → ganttDiagram-23REXITY-CIkKvihz.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CvdLb7m6.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-BMA1YavS.js → gitGraphDiagram-STJD7YCW-BxM3589j.js} +1 -1
- package/dist/public/assets/{handlebars-BVNKBeJT.js → handlebars-CPBNiVZ2.js} +1 -1
- package/dist/public/assets/{html-BHaxuuAl.js → html-CJBVALoy.js} +1 -1
- package/dist/public/assets/{index-DtU34jhH.js → index-CBMmE3BQ.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-BLs8wjUC.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-BkNpfsDm.js → infoDiagram-KBXO4MBG-BIcStK_t.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-xTM6C-Kn.js → ishikawaDiagram-M35NCXHK-CpV2hKA6.js} +1 -1
- package/dist/public/assets/{javascript-C5dXKvxq.js → javascript-dv6GQsa3.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-C6iaT7vL.js → journeyDiagram-OPLOXDXO-B_vnmdId.js} +1 -1
- package/dist/public/assets/{jsonMode-Ia_aRv-z.js → jsonMode-DG_orhvz.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-MobAdBhz.js → kanban-definition-BZKZHSQY-q5uWw99H.js} +1 -1
- package/dist/public/assets/{liquid-CIbIBxiN.js → liquid-CD-LM2Kh.js} +1 -1
- package/dist/public/assets/{mdx-BqruHcEe.js → mdx-C9mfI8up.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-kBQmxOUn.js → mermaid-parser.core-DNe1duhT.js} +3 -3
- package/dist/public/assets/{mermaid.core-BFkQwIYu.js → mermaid.core-B1AcqJgl.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DxpTmvUG.js → mindmap-definition-I2QAS2VK-CwYG3Fl3.js} +1 -1
- package/dist/public/assets/module-BLLqRvli.js +1099 -0
- package/dist/public/assets/module-BZPCnGxA.js +1 -0
- package/dist/public/assets/{monaco-BRwac88s.js → monaco-C0ktZo3r.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-jwWITUaQ.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-B3bIVo4u.js → pegDiagram-FD4XPPHP-DxtA4QDS.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CeTVZZgy.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CgnbwU0I.js → pieDiagram-J4AKIIQI-CfcIi0Vn.js} +1 -1
- package/dist/public/assets/{python-Cwjb3hEe.js → python-DCA1j2QE.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-DWx4wRau.js → quadrantDiagram-XTYBLID2-BxkJdurF.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-BGI8J8LU.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-CFkpx3Pr.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CyjF4cc_.js → railroad-abnf-LNEFI6M7--H3g5ywg.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-D2ypsr5c.js → railroad-ebnf-DWYD2UWJ-C2LAUFu6.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-Cy6Mde1c.js → railroad-peg-JR7BVNR7-Kq_ZXQMl.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-B6ya_k_l.js → railroadDiagram-MRQ6NCDL-i4xIvHJV.js} +1 -1
- package/dist/public/assets/{razor-D_ClW9Lh.js → razor-CEeNaFx5.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Brg8B8VS.js → requirementDiagram-Y7LWUY3S-CYNXjuJm.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-DbzPDfky.js → sankeyDiagram-WGJFYUXA-CRQiHcW6.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BuN84drT.js → sequenceDiagram-5NDRBG5M-BSDVFsi2.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-C_CTpHMj.js → stateDiagram-v2-FJ4FJNEA-uyUAaysl.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BvD4v9jw.js → swimlanes-UMQ2AFYF-DdEjQumY.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BJsun6CT.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-VE2xWGk8.js → timeline-definition-SEUHKTQE-DZl-TXXh.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-CL1mG6td.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-Bk3Z1uEC.js +1 -0
- package/dist/public/assets/{typescript-upeNz2VW.js → typescript-DrF8YGbQ.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-ZtyyvKye.js → usecaseDiagram-AFA6YXN4-DkG3gLrp.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-BTEvzrNd.js → vennDiagram-NNMJR3RB-B_lj8x7-.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-1E8i3qpD.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-CF8wIUhx.js → wardleyDiagram-S7YFUSEH-B1VFrC5a.js} +1 -1
- package/dist/public/assets/{xml-Cki0HxGb.js → xml-DfL-Brke.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DcDpoJ4n.js → xychartDiagram-GGNKY7IX-CM2CpXu9.js} +1 -1
- package/dist/public/assets/{yaml-YIY66l1U.js → yaml-CpmxRjjF.js} +1 -1
- package/dist/public/index.html +21 -3
- package/dist/serve/index.mjs +2251 -656
- package/package.json +18 -17
- package/dist/public/assets/cynefin-EF2NZ3EQ-D_GZWaFs.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BHpEyQnS.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CSv9x0vY.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-Bx2U6fFU.js +0 -1
- package/dist/public/assets/module-C1y_4M09.js +0 -1061
- package/dist/public/assets/module-DYWqfyIP.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-Dy7GyfNz.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-B4D2CjUH.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Dtf3tObc.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DKGa9xBx.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CMvLg13v.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-ETecwv1j.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-er6ceAYK.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-CzrxsjBc.js +0 -1
package/README.en.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Ta
|
|
2
|
+
|
|
3
|
+
A coding agent based on Cell and [pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent). `ta` is pi renamed to Ta: the interactive interface, `-p`, `--mode json|rpc`, slash commands, the session tree, extensions, skills and pi packages all work as in pi. On top of that:
|
|
4
|
+
|
|
5
|
+
- **Codemode by default**: the model writes JavaScript scripts that call all tools through `codemode`, which can call them in parallel and filter large output within the script; only the script's output enters the context (see "pi Patches" below).
|
|
6
|
+
- **Session lock**: only one Ta process can write to a single session file at any time; pi has no lock, so two processes would interleave writes.
|
|
7
|
+
- **Ta's appearance and identity**: the terminal startup displays Cell's pixel dinosaur, version, and common keys (press the expand key to see all keys; set `quietStartup: true` to hide them); the system prompt, hint text, and MCP client name all refer to Ta. The `/bug` command opens Ta's GitHub issue page in the browser, including version, model, and platform information. The `/share` command, which depends on pi's official service (Radius), has been removed; `/changelog` displays Ta's release notes instead. Pi's version check and installation statistics for pi.dev are disabled by default (`TA_SKIP_VERSION_CHECK=0` or `TA_TELEMETRY=1` to enable). Pi's environment variables in Ta are named `TA_OFFLINE`, `TA_SELF_UPDATE_COMMAND`, and `TA_TELEMETRY`, though the original `PI_*` names still work.
|
|
8
|
+
- **`ta serve`**: provides pi agent sessions over WebSocket to any number of clients (Web, desktop, mobile) and includes a built-in Web client; see [@celljs/ta-host](../../ta-packages/ta-host/README.md) and [@celljs/ta-web](../../ta-packages/ta-web/README.md) for details.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm i -g @celljs/ta # Node.js >= 22.19
|
|
14
|
+
ta # Interactive mode
|
|
15
|
+
ta -p "Summarize this repository" # One-off run
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Correspondence with pi
|
|
19
|
+
|
|
20
|
+
| | pi | Ta |
|
|
21
|
+
| --- | --- | --- |
|
|
22
|
+
| Global directory | `~/.pi/agent/` | `~/.ta/agent/` (auth.json, models.json, settings.json, sessions/, extensions/ …, content format same) |
|
|
23
|
+
| Project directory | `.pi/` | `.ta/`; project description is still `AGENTS.md` |
|
|
24
|
+
| Environment variable | `PI_CODING_AGENT_DIR` | `TA_CODING_AGENT_DIR`, `TA_CODING_AGENT_SESSION_DIR` |
|
|
25
|
+
| Subcommand | `install` `remove` `update` `list` `mcp` | Same, plus `serve`, `exec-server`, `pair`, `relay` |
|
|
26
|
+
|
|
27
|
+
Pi's extensions and pi packages work directly in Ta. Install them with `ta install npm:<package-name>`. To reuse existing `.pi/skills` from your project, add `"skills": ["../.pi/skills"]` to `.ta/settings.json`.
|
|
28
|
+
|
|
29
|
+
When [Cua Driver](https://cua.ai/cua-driver) is installed, Ta can use desktop applications on this machine in the background; see the built-in extension [@celljs/ta-computer-use](../../ta-packages/ta-computer-use/README.md) for details.
|
|
30
|
+
|
|
31
|
+
Like pi, Ta does not request approval before tool calls by default; to enable approval requests, install the optional package [@celljs/ta-permission-gate](../../ta-packages/ta-permission-gate/README.md).
|
|
32
|
+
|
|
33
|
+
## ta serve
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
ta serve # 127.0.0.1, last port (switches to free port if occupied)
|
|
37
|
+
ta serve --host 0.0.0.0 --port 4100
|
|
38
|
+
ta serve --web # Start and open Web client in browser (token already included)
|
|
39
|
+
ta serve --exec ws://box:4200/exec # Tools execute on ta exec-server on another machine (TA_EXEC_TOKEN)
|
|
40
|
+
ta exec-server --host 0.0.0.0 --port 4200 --cwd /workspace
|
|
41
|
+
ta pair # Pair phone or other device, connect back via Relay (default https://relay.cellbang.com)
|
|
42
|
+
ta relay --port 8080 # Run your own Relay
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
After startup, Ta writes the address and access token to `~/.ta/agent/serve.json` (mode 0600). The Web client is available at the same address at `/`: the page file contains no data and requires no token; all API calls under `/api` require the token. The `--web` flag places the token in the URL's `#` fragment (not sent to the server or included in the Referer header); the page reads it and stores it in localStorage, then removes it from the address bar. The port and token persist across restarts (stored in `serve-state.json` in the same directory, mode 0600; delete it to get a new token and port), allowing a Web client installed as a PWA to reconnect to ta serve and auto-login on the next visit. When `--port` is specified, that port is used instead. The `TA_SERVE_TOKEN` environment variable can set the token (for example, generated by a desktop shell), in which case it is not recorded. Clients connect using [@celljs/ta-client](../../ta-packages/ta-client/README.md).
|
|
46
|
+
|
|
47
|
+
When the client does not specify a directory, conversations open in ta serve's working directory. The default is the directory where ta serve started; the Web client and desktop app can change it using "Open working directory…", and the selection is stored in `ta.json` in the agent directory. Model services can be signed in through the Web client (gear menu → "Model accounts…"), which writes credentials to the same `auth.json` file as the terminal's `/login` command. Conversations can also run on another machine, like VS Code's Remote SSH: in the directory picker, select a host (a Host from `~/.ssh/config` or `user@host`), and the directory becomes `ssh://<host>/<path>`. The agent and model credentials stay on the ta serve machine; commands, files, terminals, and git run on that remote host. Ta serve uses the system `ssh` to connect (keys, ssh-agent, ProxyJump all work as usual, and the page prompts for passwords or host confirmation when needed). On the first connection, it places a small server (and Node.js 22 if missing) in `~/.ta/server` on that host. Dev servers on that remote host open `localhost` addresses in the built-in browser, and ports are automatically forwarded. See [ta-remote-ssh.md](../../docs/design/ta-remote-ssh.md).
|
|
48
|
+
|
|
49
|
+
Devices paired with `ta pair` connect to ta serve through [Relay](../../ta-packages/ta-relay/README.md) with end-to-end encryption; the Web client's "Use on your phone…" feature does the same and displays a QR code for scanning.
|
|
50
|
+
|
|
51
|
+
## Build
|
|
52
|
+
|
|
53
|
+
`bun run build` first builds ta serve's server using `cell build --root serve`, outputting to `dist/serve/index.mjs`, and builds the Web client to `dist/public/` (the serve application loads `@celljs/ta-web` to build the frontend, and `@celljs/serve-static` hosts it). Then `scripts/assemble.ts` builds the `ta` command (from ta-harness's `TaCli`) to `dist/cli.mjs` and generates `dist/pi/`, which contains a `package.json` that renames pi to Ta (`piConfig`), along with pi's themes, HTML export template, documentation, and examples. When `ta` starts, it lets pi read branding information from this directory (`PI_PACKAGE_DIR`), using the same directory layout as pi's official binary. Built-in pi packages (defined in Ta's `TaPackages.BUILTIN`) are copied to `dist/pi/packages/<name>` after the build without source code or tests; they can be disabled in the Web client's Settings → Packages.
|
|
54
|
+
|
|
55
|
+
Everything `ta` needs at runtime is in `dist/`, so the published package has no `dependencies`, and installing `ta` does not install Cell or pi; the build places all dependencies in `devDependencies`. Ta serve's server is a separate Cell application under `serve/` (private, not included in workspaces). Cell collects components only from `dependencies`; its `serve/package.json` lists which components to include. The `@celljs/ta` package itself does not need `dependencies`. When adding a component to ta serve, add it to both files: components in `serve/package.json`'s `dependencies` determine the output content, and entries in `package.json`'s `devDependencies` determine the turbo build order.
|
|
56
|
+
|
|
57
|
+
The `ta` command itself does not load Cell; its startup time and memory usage match `pi`. Only `ta serve` loads Cell.
|
|
58
|
+
|
|
59
|
+
## pi Patches
|
|
60
|
+
|
|
61
|
+
The following hardcoded brand text in pi, the `/bug` and `/share` built-in commands, and the codemode default are patched:
|
|
62
|
+
|
|
63
|
+
- Patches are stored as `patches/@earendil-works%2Fpi-coding-agent@<version>.patch` in the repo root. They are generated by `bun run pi-patch` (see `scripts/pi-patch.ts` below), registered in the root `package.json`'s `patchedDependencies`, and automatically applied by `bun install`. Patches only modify pi's bundled output `dist/bundle` (what Ta runs).
|
|
64
|
+
- Package manager patches only work in this repository. During the build, `scripts/assemble.ts` copies the patched `dist/bundle` to `dist/pi/dist/bundle` for release (~9 MB). The `ta` command sets `PI_PACKAGE_DIR` to `dist/pi`, and `PiBundleUtil` loads that copy. There is only one pi instance per process; extensions access it through its built-in module table. The build fails directly if the patch is not applied.
|
|
65
|
+
- The bundle loads the following modules from node_modules at runtime: `jiti` (for loading extensions), `@silvia-odwyer/photon-node` (for image resizing), and `quickjs-wasi` (for codemode's WebAssembly). `scripts/assemble.ts` also copies these from pi's side to `dist/pi/node_modules`, using the same versions as pi. Extensions use `typebox` and pi's packages through the bundle's built-in module table. The build scans the bundle for packages loaded by name and fails if any are missing from the required or optional list. When upgrading pi, the script tells you which packages to add.
|
|
66
|
+
|
|
67
|
+
The following table shows what is changed, as defined by `scripts/pi-patch.ts`'s `REPLACEMENTS` (original and replacement per group):
|
|
68
|
+
|
|
69
|
+
| Group | Change |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| codemode by default | The default tools include `codemode` with `codemode.mode` set to `only`, so the model sees only the `codemode` tool. The tools read, bash, edit, write, extension tools, and MCP tools are called in the script using `tools.<name>()`. Pi has no host default setting layer; this change is only applied here. To revert to pi's behavior, write `"codemode": { "mode": "on" }` in `settings.json` (to provide other tools directly) or `"defaultTools": ["-codemode"]` (to disable codemode), or use `--tools -codemode` for a single run. |
|
|
72
|
+
| built-in commands | The `/share` command (which uploads to Radius) and pi's `/bug` command (for pi developers) are removed. The `/bug` command is provided by Ta's extension instead, and the crash-after `/bug` hint is rewritten. |
|
|
73
|
+
| system prompt | The opening is changed to Ta, and the pi docs section explains how pi's `~/.pi/agent`, `.pi/`, and `pi` command correspond to Ta. |
|
|
74
|
+
| help of ta | In `ta -h`, `ta update -h`, and `ta auth -h`, "pi" is changed to "Ta". Environment variables are listed as `TA_*` (converted to pi's `PI_*` by `TaBrand.activate`). The `PI_PACKAGE_DIR` variable set by Ta and `PI_SHARE_VIEWER_URL` (removed with `/share`) are excluded. MCP service examples change from `radius` to `github`. The commands `ta update ta` and `ta update self` are now equivalent. |
|
|
75
|
+
| update of ta | `ta update` (for self and ta) queries npm for the latest `@celljs/ta`, not pi.dev (which would return the pi package name and replace Ta with pi). It does not prompt to run pi's install script because Ta is a single-file package with no fixed dependencies. |
|
|
76
|
+
| messages | In tmux setup hints, project trust hints, and ChatGPT login port occupied hints, "pi" is changed to "Ta". The MCP client name changes from `pi` to `ta`. |
|
|
77
|
+
|
|
78
|
+
Changes are only made where pi has no setting, parameter, or extension point. If a change can be made using `piConfig`, environment variables (`TaBrand.activate`), or a Ta extension, it is not done in the patch. Do not edit patches manually: pi's bundle is chunked by hash and compressed into long lines, so manual edits will fail after a pi upgrade.
|
|
79
|
+
|
|
80
|
+
To upgrade pi, first change the pi version in `ai-packages/ai-coding-agent` and other places, then run `bun install`. Next, run `bun run pi-patch` in `apps/ta`. The script takes the unpatched pi from the Bun cache and applies replacements line by line according to `REPLACEMENTS` (ignoring filenames; each original must appear the specified number of times in the entire `dist/bundle`). It then generates a new version patch with `bun patch --commit`, removes the `.bun-tag-*` chunk, and deletes the old patch. Finally, remove the old version line from the root `package.json`'s `patchedDependencies` and run `bun run test`. If the original text has changed in the new pi, the script lists the find count and stops; update that line's `from` value and run the script again. Use `bun run pi-patch --check` to verify without generating a patch. `test/pi-patch.spec.ts` also checks the currently installed pi.
|
|
81
|
+
|
|
82
|
+
The following are not changed: pi's documentation body (the system prompt already tells the model how to map it), the Radius login option description (which belongs to pi's official service and is accurate), the settings page's "Pi's drawn cursor" option, and one error message in the package manager (which is buried in a tens of KB long line, so the patch cost exceeds the benefit).
|
|
83
|
+
|
|
84
|
+
## Performance Benchmarks
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
bun run bench # All except long scenarios, ~3 min, outputs Markdown table
|
|
88
|
+
bun run bench streaming # Specify scenario; --help lists all scenarios
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The benchmarks use the locally built product (run `bun run build` first). The model runs as a standalone process with a fake OpenAI-compatible service (`bench/fake-model.ts`): the `rate` scenario has a first token latency of 200 ms and generates 100 tokens/sec; the `burst` scenario outputs 5000 tokens quickly. The baseline is `pi --mode rpc`: pi serving multiple sessions requires one process per session. Memory and CPU are sampled outside the process using `ps` (on Linux, this reads `/proc`), which does not interfere with the measured process.
|
|
92
|
+
|
|
93
|
+
Reference results from an Apple M4 Pro with Node.js 24:
|
|
94
|
+
|
|
95
|
+
| Scenario | pi | Ta |
|
|
96
|
+
| --- | --- | --- |
|
|
97
|
+
| `--version` / `-p` | 0.12 s 112 MB / 0.18 s 127 MB | 0.12 s 114 MB / 0.19 s 128 MB |
|
|
98
|
+
| ta serve idle | — | 66 MB, idle CPU 0 |
|
|
99
|
+
| 32 sessions | One process per session, ~127 MB × 32 | 181 MB (per session ~1.6 MB) |
|
|
100
|
+
| Single session stream (rate) first token / CPU | 209 ms / 5% | 209 ms / 5–6% |
|
|
101
|
+
| 10 sessions concurrent stream | 1693 MB, 4.57 s CPU | 191 MB, 1.92 s CPU |
|
|
102
|
+
| 50 clients viewing same session | — | Per client ~35 µs per delta |
|
|
103
|
+
|
|
104
|
+
The `endurance` scenario (a long scenario that must be specified explicitly) runs 60 bursts on a 64 MB heap limit and checks that memory converges.
|
|
105
|
+
|
|
106
|
+
## Tests
|
|
107
|
+
|
|
108
|
+
`bun run test` is an integration test that uses the real built product and a local fake OpenAI-compatible model service. It covers print and JSON modes, session locking, installation of pi packages and the permission gate, ta serve's multi-client broadcast, reconnect with resend, approval with first-come-first-served semantics, idempotent acknowledgments, session locking, idle session reclamation, and rate limiting.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ta
|
|
2
2
|
|
|
3
|
-
基于 Cell 与 [pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent) 的 coding agent。`ta` 就是改名为 Ta 的 pi:交互界面、`-p`、`--mode json|rpc`、斜杠命令、会话树、扩展、Skills、pi 包都与 pi
|
|
3
|
+
基于 Cell 与 [pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent) 的 coding agent。`ta` 就是改名为 Ta 的 pi:交互界面、`-p`、`--mode json|rpc`、斜杠命令、会话树、扩展、Skills、pi 包都与 pi 一致;另外多了这些:
|
|
4
4
|
|
|
5
5
|
- **默认用 codemode**:模型通过 `codemode` 写 JavaScript 脚本调用所有工具,可以并行调用、在脚本里过滤大输出,只有脚本的输出进上下文(见下文「pi 补丁」)。
|
|
6
6
|
- **会话锁**:同一个会话文件同时只能被一个 Ta 进程写(pi 没有锁,两个进程会交错写入)。
|
|
@@ -22,10 +22,12 @@ ta -p "总结这个仓库" # 一次性运行
|
|
|
22
22
|
| 全局目录 | `~/.pi/agent/` | `~/.ta/agent/`(auth.json、models.json、settings.json、sessions/、extensions/ …,内容格式相同) |
|
|
23
23
|
| 项目目录 | `.pi/` | `.ta/`;项目说明仍是 `AGENTS.md` |
|
|
24
24
|
| 环境变量 | `PI_CODING_AGENT_DIR` | `TA_CODING_AGENT_DIR`、`TA_CODING_AGENT_SESSION_DIR` |
|
|
25
|
-
| 子命令 | `install` `remove` `update` `list` `mcp` | 相同,另加 `serve`、`exec-server` |
|
|
25
|
+
| 子命令 | `install` `remove` `update` `list` `mcp` | 相同,另加 `serve`、`exec-server`、`pair`、`relay` |
|
|
26
26
|
|
|
27
27
|
pi 的扩展和 pi 包可以直接用:`ta install npm:<包名>`。想复用项目里已有的 `.pi/skills`,在 `.ta/settings.json` 里写 `"skills": ["../.pi/skills"]`。
|
|
28
28
|
|
|
29
|
+
装了 [Cua Driver](https://cua.ai/cua-driver) 时,Ta 能在后台使用这台电脑上的桌面应用,见内置扩展 [@celljs/ta-computer-use](../../ta-packages/ta-computer-use/README.md)。
|
|
30
|
+
|
|
29
31
|
Ta 和 pi 一样,默认不在工具调用前请求批准;需要的话安装可选包 [@celljs/ta-permission-gate](../../ta-packages/ta-permission-gate/README.md)。
|
|
30
32
|
|
|
31
33
|
## ta serve
|
|
@@ -36,10 +38,16 @@ ta serve --host 0.0.0.0 --port 4100
|
|
|
36
38
|
ta serve --web # 同时在浏览器里打开 Web 客户端(已带上 token)
|
|
37
39
|
ta serve --exec ws://box:4200/exec # 工具在另一台机器的 ta exec-server 上执行(TA_EXEC_TOKEN)
|
|
38
40
|
ta exec-server --host 0.0.0.0 --port 4200 --cwd /workspace
|
|
41
|
+
ta pair # 配对手机等设备,经 Relay 连回这台电脑(默认 https://relay.cellbang.com)
|
|
42
|
+
ta relay --port 8080 # 自己运行一个 Relay
|
|
39
43
|
```
|
|
40
44
|
|
|
41
45
|
启动后把地址和访问 token 写进 `~/.ta/agent/serve.json`(权限 0600)。Web 客户端就在同一地址的 `/`:页面文件不含数据,无需 token;调用(`/api`)都要 token。`--web` 把 token 放在 URL 的 `#` 片段里(不会发给服务器,也不进 Referer),页面读到后存进 localStorage 并从地址栏去掉。端口和 token 跨重启保持不变(记在同目录的 `serve-state.json`,权限 0600;删掉它就换新的 token 和端口),这样装成应用(PWA)的 Web 客户端下次打开还能找到 ta serve 并自动登录;`--port` 指定端口时以它为准。`TA_SERVE_TOKEN` 可指定 token(例如由桌面壳生成),这时不记录它。客户端用 [@celljs/ta-client](../../ta-packages/ta-client/README.md) 连接。
|
|
42
46
|
|
|
47
|
+
客户端没指定目录时,对话在 ta serve 的工作目录里打开:默认是启动它的目录,Web 客户端和桌面应用里可以改("打开工作目录…"),记在 agent 目录的 `ta.json`。模型服务可以在 Web 客户端里登录(齿轮菜单的"模型账号…",与终端的 `/login` 写同一个 `auth.json`)。对话也可以在另一台机器上工作,像 VS Code 的 Remote SSH:在目录选择器里选一台主机(`~/.ssh/config` 里的 Host,或 `user@host`),目录就是 `ssh://<host>/<path>`。Agent 和模型凭据留在 ta serve 这台机器,命令、文件、终端、git 在那台主机上;ta serve 用本机的 `ssh` 连过去(密钥、ssh-agent、ProxyJump 照常可用,要密码或确认新主机时页面会弹窗),第一次会把一个很小的服务器(和没有时的 Node.js 22)放到那台主机的 `~/.ta/server`。那台主机上的开发服务器在内置浏览器里打开 `localhost` 地址即可,端口自动转发。见 [ta-remote-ssh.md](../../docs/design/ta-remote-ssh.md)。
|
|
48
|
+
|
|
49
|
+
`ta pair` 配对的设备经 [Relay](../../ta-packages/ta-relay/README.md) 连到 ta serve,内容端到端加密;Web 客户端的"在手机上使用…"做同样的事,并显示二维码。
|
|
50
|
+
|
|
43
51
|
## 构建
|
|
44
52
|
|
|
45
53
|
`bun run build` 先用 `cell build --root serve` 把 ta serve 的服务端打成 `dist/serve/index.mjs`、Web 客户端打成 `dist/public/`(serve 应用装了 `@celljs/ta-web` 就会构建前端,`@celljs/serve-static` 负责托管),再由 `scripts/assemble.ts` 把 `ta` 命令(ta-harness 的 `TaCli`)打成 `dist/cli.mjs`,并生成 `dist/pi/`:一个把 pi 改名为 Ta 的 package.json(`piConfig`),加上 pi 的主题、HTML 导出模板、docs 和 examples。`ta` 启动时让 pi 从这个目录读取品牌信息(`PI_PACKAGE_DIR`),和 pi 官方二进制的目录布局相同。Ta 自带的 pi 包(`TaPackages.BUILTIN`)构建后复制到 `dist/pi/packages/<名字>`,不含源码与测试,可在 Web 客户端的 设置 → 包 关闭。
|
|
@@ -64,6 +72,7 @@ pi 里写死的品牌文字、`/bug` 和 `/share` 两个内置命令,以及 co
|
|
|
64
72
|
| built-in commands | 去掉 `/share`(上传到 Radius)和 pi 的 `/bug`(发给 pi 的开发者);`/bug` 由 Ta 的扩展提供;崩溃后的 `/bug` 提示随之改写 |
|
|
65
73
|
| system prompt | 开头改为 Ta;pi 文档一节说明 pi 的 `~/.pi/agent`、`.pi/`、`pi` 命令在 Ta 里是什么 |
|
|
66
74
|
| help of ta | `ta -h`、`ta update -h`、`ta auth -h` 里的 pi → Ta;环境变量列为 `TA_*`(由 `TaBrand.activate` 转给 pi 的 `PI_*`),去掉 Ta 自己设置的 `PI_PACKAGE_DIR` 和随 `/share` 去掉的 `PI_SHARE_VIEWER_URL`;示例里的 MCP 服务 `radius` 换成 `github`;`ta update ta` 与 `ta update self` 同义 |
|
|
75
|
+
| update of ta | `ta update`(`self`、`ta`)向 npm 查询 `@celljs/ta` 的最新版本,而不是向 pi.dev 查询(那里返回的是 pi 的包名,会把 Ta 换成 pi);不提示运行 pi 的安装脚本(Ta 是单文件打包,没有要固定的依赖) |
|
|
67
76
|
| messages | tmux 设置提示、项目信任提示、ChatGPT 登录端口占用提示:pi → Ta;MCP 客户端名 `pi` → `ta` |
|
|
68
77
|
|
|
69
78
|
只改 pi 没有设置、参数或扩展点可用的地方;能用 `piConfig`、环境变量(`TaBrand.activate`)或 Ta 的扩展做到的,不进补丁。补丁不手改:pi 的打包产物按哈希命名分块、压缩成长行,手改的补丁在 pi 升级后必然失效。
|
package/dist/cli.mjs
CHANGED
|
@@ -889,12 +889,18 @@ var init_exec_rpc = __esm(() => {
|
|
|
889
889
|
STAT: "fs/stat",
|
|
890
890
|
READDIR: "fs/readdir",
|
|
891
891
|
MKDIR: "fs/mkdir",
|
|
892
|
-
REMOVE: "fs/remove"
|
|
892
|
+
REMOVE: "fs/remove",
|
|
893
|
+
NET_CONNECT: "net/connect",
|
|
894
|
+
NET_WRITE: "net/write",
|
|
895
|
+
NET_CLOSE: "net/close"
|
|
893
896
|
};
|
|
897
|
+
ExecRpc2.PING = "ping";
|
|
894
898
|
ExecRpc2.Notification = {
|
|
895
899
|
OUTPUT: "process/output",
|
|
896
900
|
STDERR: "process/stderr",
|
|
897
|
-
EXIT: "process/exit"
|
|
901
|
+
EXIT: "process/exit",
|
|
902
|
+
NET_DATA: "net/data",
|
|
903
|
+
NET_CLOSED: "net/closed"
|
|
898
904
|
};
|
|
899
905
|
ExecRpc2.ErrorCode = {
|
|
900
906
|
STALE_EPOCH: "CELL_TA_EXEC_STALE_EPOCH",
|
|
@@ -1018,114 +1024,31 @@ class LocalExecEnvironment {
|
|
|
1018
1024
|
if (child.pid === undefined) {
|
|
1019
1025
|
return;
|
|
1020
1026
|
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
child.kill();
|
|
1024
|
-
} else {
|
|
1027
|
+
if (process.platform !== "win32") {
|
|
1028
|
+
try {
|
|
1025
1029
|
process.kill(-child.pid, "SIGKILL");
|
|
1026
|
-
|
|
1027
|
-
|
|
1030
|
+
return;
|
|
1031
|
+
} catch (_a) {}
|
|
1032
|
+
}
|
|
1033
|
+
child.kill("SIGKILL");
|
|
1028
1034
|
}
|
|
1029
1035
|
}
|
|
1030
1036
|
var init_local_exec_environment = () => {};
|
|
1031
1037
|
|
|
1032
|
-
// ../../ta-packages/ta-exec/esm/node/exec-
|
|
1033
|
-
|
|
1034
|
-
__export(exports_exec_server, {
|
|
1035
|
-
ExecServer: () => ExecServer,
|
|
1036
|
-
ExecPeer: () => ExecPeer
|
|
1037
|
-
});
|
|
1038
|
-
import { timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|
|
1039
|
-
import { createServer as createServer3 } from "node:http";
|
|
1040
|
-
|
|
1041
|
-
class ExecServer {
|
|
1042
|
-
constructor(options) {
|
|
1043
|
-
this.options = options;
|
|
1044
|
-
this.epoch = 0;
|
|
1045
|
-
this.peers = new Set;
|
|
1046
|
-
}
|
|
1047
|
-
get cwd() {
|
|
1048
|
-
var _a;
|
|
1049
|
-
return (_a = this.options.cwd) !== null && _a !== undefined ? _a : process.cwd();
|
|
1050
|
-
}
|
|
1051
|
-
async listen() {
|
|
1052
|
-
var _a;
|
|
1053
|
-
const server = createServer3((_request, response) => response.writeHead(404).end());
|
|
1054
|
-
server.on("upgrade", (request, socket, head) => this.upgrade(request, socket, head));
|
|
1055
|
-
this.server = server;
|
|
1056
|
-
await new Promise((resolve2) => {
|
|
1057
|
-
var _a2, _b;
|
|
1058
|
-
return server.listen((_a2 = this.options.port) !== null && _a2 !== undefined ? _a2 : 0, (_b = this.options.host) !== null && _b !== undefined ? _b : "127.0.0.1", resolve2);
|
|
1059
|
-
});
|
|
1060
|
-
const { port } = server.address();
|
|
1061
|
-
return `ws://${(_a = this.options.host) !== null && _a !== undefined ? _a : "127.0.0.1"}:${port}${ExecRpc.PATH}`;
|
|
1062
|
-
}
|
|
1063
|
-
async close() {
|
|
1064
|
-
for (const peer2 of this.peers) {
|
|
1065
|
-
peer2.close(1001, "The server stops.");
|
|
1066
|
-
}
|
|
1067
|
-
await new Promise((resolve2) => this.server ? this.server.close(() => resolve2()) : resolve2());
|
|
1068
|
-
}
|
|
1069
|
-
admit(peer2, epoch) {
|
|
1070
|
-
if (epoch < this.epoch) {
|
|
1071
|
-
return false;
|
|
1072
|
-
}
|
|
1073
|
-
if (epoch > this.epoch) {
|
|
1074
|
-
this.epoch = epoch;
|
|
1075
|
-
for (const other of this.peers) {
|
|
1076
|
-
if (other !== peer2 && other.epoch !== undefined && other.epoch < epoch) {
|
|
1077
|
-
other.close(4001, "A host with a newer epoch connected.");
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
return true;
|
|
1082
|
-
}
|
|
1083
|
-
isCurrent(epoch) {
|
|
1084
|
-
return epoch === this.epoch;
|
|
1085
|
-
}
|
|
1086
|
-
upgrade(request, socket, head) {
|
|
1087
|
-
var _a, _b;
|
|
1088
|
-
const url = new URL((_a = request.url) !== null && _a !== undefined ? _a : "/", "http://localhost");
|
|
1089
|
-
if (url.pathname !== ExecRpc.PATH) {
|
|
1090
|
-
WebSocketConnection.refuse(socket, 404, "Not found.");
|
|
1091
|
-
return;
|
|
1092
|
-
}
|
|
1093
|
-
const checked = WebSocketConnection.check(request);
|
|
1094
|
-
if ("status" in checked) {
|
|
1095
|
-
WebSocketConnection.refuse(socket, checked.status, checked.message);
|
|
1096
|
-
return;
|
|
1097
|
-
}
|
|
1098
|
-
const header = request.headers.authorization;
|
|
1099
|
-
const token = (header === null || header === undefined ? undefined : header.startsWith("Bearer ")) ? header.slice("Bearer ".length) : url.searchParams.get("token");
|
|
1100
|
-
if (!token || !this.matches(token)) {
|
|
1101
|
-
WebSocketConnection.refuse(socket, 401, "Not authorized.");
|
|
1102
|
-
return;
|
|
1103
|
-
}
|
|
1104
|
-
const connection = WebSocketConnection.open(socket, checked.key, head, { maxPayload: (_b = this.options.maxPayload) !== null && _b !== undefined ? _b : 67108864, heartbeat: 30000 });
|
|
1105
|
-
const peer2 = new ExecPeer(this, connection);
|
|
1106
|
-
this.peers.add(peer2);
|
|
1107
|
-
connection.onClose(() => {
|
|
1108
|
-
this.peers.delete(peer2);
|
|
1109
|
-
peer2.dispose();
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
matches(token) {
|
|
1113
|
-
const [left, right] = [Buffer.from(token), Buffer.from(this.options.token)];
|
|
1114
|
-
return left.length === right.length && timingSafeEqual2(left, right);
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1038
|
+
// ../../ta-packages/ta-exec/esm/node/exec-peer.js
|
|
1039
|
+
import { connect } from "node:net";
|
|
1117
1040
|
|
|
1118
1041
|
class ExecPeer {
|
|
1119
|
-
constructor(server,
|
|
1042
|
+
constructor(server, channel) {
|
|
1120
1043
|
this.server = server;
|
|
1121
|
-
this.
|
|
1044
|
+
this.channel = channel;
|
|
1122
1045
|
this.running = new Map;
|
|
1123
1046
|
this.spawned = new Map;
|
|
1124
|
-
|
|
1047
|
+
this.sockets = new Map;
|
|
1125
1048
|
}
|
|
1126
1049
|
close(code, reason) {
|
|
1127
1050
|
this.dispose();
|
|
1128
|
-
this.
|
|
1051
|
+
this.channel.close(code, reason);
|
|
1129
1052
|
}
|
|
1130
1053
|
dispose() {
|
|
1131
1054
|
for (const controller of this.running.values()) {
|
|
@@ -1134,8 +1057,12 @@ class ExecPeer {
|
|
|
1134
1057
|
for (const child of this.spawned.values()) {
|
|
1135
1058
|
child.kill();
|
|
1136
1059
|
}
|
|
1060
|
+
for (const socket of this.sockets.values()) {
|
|
1061
|
+
socket.destroy();
|
|
1062
|
+
}
|
|
1137
1063
|
this.running.clear();
|
|
1138
1064
|
this.spawned.clear();
|
|
1065
|
+
this.sockets.clear();
|
|
1139
1066
|
}
|
|
1140
1067
|
async receive(text) {
|
|
1141
1068
|
var _a;
|
|
@@ -1143,10 +1070,13 @@ class ExecPeer {
|
|
|
1143
1070
|
try {
|
|
1144
1071
|
message = JSON.parse(text);
|
|
1145
1072
|
} catch (_b) {
|
|
1146
|
-
this.
|
|
1073
|
+
this.close(1007, "Not JSON.");
|
|
1147
1074
|
return;
|
|
1148
1075
|
}
|
|
1149
1076
|
const { id: id2, method, params } = message;
|
|
1077
|
+
if (method === ExecRpc.PING) {
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1150
1080
|
let reply;
|
|
1151
1081
|
if (method === ExecRpc.Method.INITIALIZE) {
|
|
1152
1082
|
reply = this.initialize(id2, params);
|
|
@@ -1174,9 +1104,9 @@ class ExecPeer {
|
|
|
1174
1104
|
return { jsonrpc: "2.0", id: id2, result };
|
|
1175
1105
|
}
|
|
1176
1106
|
async call(method, params) {
|
|
1177
|
-
var _a, _b, _c;
|
|
1178
|
-
var
|
|
1179
|
-
const environment = new LocalExecEnvironment((
|
|
1107
|
+
var _a, _b, _c, _d, _e;
|
|
1108
|
+
var _f;
|
|
1109
|
+
const environment = new LocalExecEnvironment((_f = params.root) !== null && _f !== undefined ? _f : this.server.cwd);
|
|
1180
1110
|
switch (method) {
|
|
1181
1111
|
case ExecRpc.Method.EXEC:
|
|
1182
1112
|
return this.exec(environment, params);
|
|
@@ -1201,6 +1131,14 @@ class ExecPeer {
|
|
|
1201
1131
|
return environment.mkdir(params.path);
|
|
1202
1132
|
case ExecRpc.Method.REMOVE:
|
|
1203
1133
|
return environment.remove(params.path, { recursive: params.recursive });
|
|
1134
|
+
case ExecRpc.Method.NET_CONNECT:
|
|
1135
|
+
return this.connect(params);
|
|
1136
|
+
case ExecRpc.Method.NET_WRITE:
|
|
1137
|
+
(_d = this.sockets.get(params.id)) === null || _d === undefined || _d.write(ExecRpc.fromBase64(params.data));
|
|
1138
|
+
return;
|
|
1139
|
+
case ExecRpc.Method.NET_CLOSE:
|
|
1140
|
+
(_e = this.sockets.get(params.id)) === null || _e === undefined || _e.end();
|
|
1141
|
+
return;
|
|
1204
1142
|
default:
|
|
1205
1143
|
throw new Error(`No method ${method}.`);
|
|
1206
1144
|
}
|
|
@@ -1230,17 +1168,124 @@ class ExecPeer {
|
|
|
1230
1168
|
this.notify(ExecRpc.Notification.EXIT, { id: params.id, exitCode });
|
|
1231
1169
|
});
|
|
1232
1170
|
}
|
|
1171
|
+
connect(params) {
|
|
1172
|
+
return new Promise((resolve2, reject) => {
|
|
1173
|
+
var _a;
|
|
1174
|
+
const socket = connect({ port: params.port, host: (_a = params.host) !== null && _a !== undefined ? _a : "127.0.0.1" });
|
|
1175
|
+
socket.once("connect", () => {
|
|
1176
|
+
this.sockets.set(params.id, socket);
|
|
1177
|
+
resolve2();
|
|
1178
|
+
});
|
|
1179
|
+
socket.on("data", (data) => this.notify(ExecRpc.Notification.NET_DATA, { id: params.id, data: ExecRpc.toBase64(data) }));
|
|
1180
|
+
socket.once("error", reject);
|
|
1181
|
+
socket.once("close", () => {
|
|
1182
|
+
if (this.sockets.delete(params.id)) {
|
|
1183
|
+
this.notify(ExecRpc.Notification.NET_CLOSED, { id: params.id });
|
|
1184
|
+
}
|
|
1185
|
+
});
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1233
1188
|
notify(method, params) {
|
|
1234
1189
|
this.send({ jsonrpc: "2.0", method, params });
|
|
1235
1190
|
}
|
|
1236
1191
|
send(message) {
|
|
1237
|
-
this.
|
|
1192
|
+
this.channel.send(JSON.stringify(message));
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
var init_exec_peer = __esm(() => {
|
|
1196
|
+
init_exec_rpc();
|
|
1197
|
+
init_local_exec_environment();
|
|
1198
|
+
});
|
|
1199
|
+
|
|
1200
|
+
// ../../ta-packages/ta-exec/esm/node/exec-server.js
|
|
1201
|
+
var exports_exec_server = {};
|
|
1202
|
+
__export(exports_exec_server, {
|
|
1203
|
+
ExecServer: () => ExecServer
|
|
1204
|
+
});
|
|
1205
|
+
import { timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|
|
1206
|
+
import { createServer as createServer3 } from "node:http";
|
|
1207
|
+
|
|
1208
|
+
class ExecServer {
|
|
1209
|
+
constructor(options) {
|
|
1210
|
+
this.options = options;
|
|
1211
|
+
this.epoch = 0;
|
|
1212
|
+
this.peers = new Set;
|
|
1213
|
+
}
|
|
1214
|
+
get cwd() {
|
|
1215
|
+
var _a;
|
|
1216
|
+
return (_a = this.options.cwd) !== null && _a !== undefined ? _a : process.cwd();
|
|
1217
|
+
}
|
|
1218
|
+
async listen() {
|
|
1219
|
+
var _a;
|
|
1220
|
+
const server = createServer3((_request, response) => response.writeHead(404).end());
|
|
1221
|
+
server.on("upgrade", (request, socket, head) => this.upgrade(request, socket, head));
|
|
1222
|
+
this.server = server;
|
|
1223
|
+
await new Promise((resolve2) => {
|
|
1224
|
+
var _a2, _b;
|
|
1225
|
+
return server.listen((_a2 = this.options.port) !== null && _a2 !== undefined ? _a2 : 0, (_b = this.options.host) !== null && _b !== undefined ? _b : "127.0.0.1", resolve2);
|
|
1226
|
+
});
|
|
1227
|
+
const { port } = server.address();
|
|
1228
|
+
return `ws://${(_a = this.options.host) !== null && _a !== undefined ? _a : "127.0.0.1"}:${port}${ExecRpc.PATH}`;
|
|
1229
|
+
}
|
|
1230
|
+
async close() {
|
|
1231
|
+
for (const peer2 of this.peers) {
|
|
1232
|
+
peer2.close(1001, "The server stops.");
|
|
1233
|
+
}
|
|
1234
|
+
await new Promise((resolve2) => this.server ? this.server.close(() => resolve2()) : resolve2());
|
|
1235
|
+
}
|
|
1236
|
+
admit(peer2, epoch) {
|
|
1237
|
+
if (epoch < this.epoch) {
|
|
1238
|
+
return false;
|
|
1239
|
+
}
|
|
1240
|
+
if (epoch > this.epoch) {
|
|
1241
|
+
this.epoch = epoch;
|
|
1242
|
+
for (const other of this.peers) {
|
|
1243
|
+
if (other !== peer2 && other.epoch !== undefined && other.epoch < epoch) {
|
|
1244
|
+
other.close(4001, "A host with a newer epoch connected.");
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
return true;
|
|
1249
|
+
}
|
|
1250
|
+
isCurrent(epoch) {
|
|
1251
|
+
return epoch === this.epoch;
|
|
1252
|
+
}
|
|
1253
|
+
upgrade(request, socket, head) {
|
|
1254
|
+
var _a, _b;
|
|
1255
|
+
const url = new URL((_a = request.url) !== null && _a !== undefined ? _a : "/", "http://localhost");
|
|
1256
|
+
if (url.pathname !== ExecRpc.PATH) {
|
|
1257
|
+
WebSocketConnection.refuse(socket, 404, "Not found.");
|
|
1258
|
+
return;
|
|
1259
|
+
}
|
|
1260
|
+
const checked = WebSocketConnection.check(request);
|
|
1261
|
+
if ("status" in checked) {
|
|
1262
|
+
WebSocketConnection.refuse(socket, checked.status, checked.message);
|
|
1263
|
+
return;
|
|
1264
|
+
}
|
|
1265
|
+
const header = request.headers.authorization;
|
|
1266
|
+
const token = (header === null || header === undefined ? undefined : header.startsWith("Bearer ")) ? header.slice("Bearer ".length) : url.searchParams.get("token");
|
|
1267
|
+
if (!token || !this.matches(token)) {
|
|
1268
|
+
WebSocketConnection.refuse(socket, 401, "Not authorized.");
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
const connection = WebSocketConnection.open(socket, checked.key, head, { maxPayload: (_b = this.options.maxPayload) !== null && _b !== undefined ? _b : 67108864, heartbeat: 30000 });
|
|
1272
|
+
const peer2 = new ExecPeer(this, { send: (text) => connection.send(text), close: (code, reason) => connection.close(code, reason) });
|
|
1273
|
+
connection.onMessage((text) => void peer2.receive(text));
|
|
1274
|
+
this.peers.add(peer2);
|
|
1275
|
+
connection.onClose(() => {
|
|
1276
|
+
this.peers.delete(peer2);
|
|
1277
|
+
peer2.dispose();
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
matches(token) {
|
|
1281
|
+
const [left, right] = [Buffer.from(token), Buffer.from(this.options.token)];
|
|
1282
|
+
return left.length === right.length && timingSafeEqual2(left, right);
|
|
1238
1283
|
}
|
|
1239
1284
|
}
|
|
1240
1285
|
var init_exec_server = __esm(() => {
|
|
1241
1286
|
init_websocket_connection();
|
|
1287
|
+
init_exec_peer();
|
|
1242
1288
|
init_exec_rpc();
|
|
1243
|
-
init_local_exec_environment();
|
|
1244
1289
|
});
|
|
1245
1290
|
|
|
1246
1291
|
// ../../ta-packages/ta-harness/esm/node/ta-cli.js
|
|
@@ -1781,7 +1826,7 @@ var __dirname3 = __cellDirname2(__filename3);
|
|
|
1781
1826
|
var PACKAGE_COMMANDS = new Set(["install", "remove", "uninstall", "update", "list", "config"]);
|
|
1782
1827
|
var TaPackages;
|
|
1783
1828
|
(function(TaPackages2) {
|
|
1784
|
-
TaPackages2.BUILTIN = ["@celljs/ta-workspace", "@celljs/ta-channels", "@celljs/ta-extensions"];
|
|
1829
|
+
TaPackages2.BUILTIN = ["@celljs/ta-workspace", "@celljs/ta-channels", "@celljs/ta-extensions", "@celljs/ta-computer-use"];
|
|
1785
1830
|
TaPackages2.SETTINGS_FILE = "ta.json";
|
|
1786
1831
|
function builtins(packageDir = process.env.PI_PACKAGE_DIR) {
|
|
1787
1832
|
const dir = packageDir ? join4(packageDir, "packages") : undefined;
|
package/dist/pi/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @celljs/ta
|
|
2
2
|
|
|
3
|
+
## 4.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 017469e: 新增内置扩展 @celljs/ta-computer-use:Ta 经 Cua Driver(https://cua.ai/cua-driver)在后台使用这台电脑上的桌面应用。Ta Desktop 自带 Cua Driver,终端里的 Ta 使用用户自己装的那份。Cua Driver 只在第一次有脚本用到它的工具时才启动,不用它的会话没有额外进程;第一次使用时检查系统要求:macOS 上缺辅助功能或屏幕录制授权时,会提示用户、打开对应设置,等授权完成后继续执行这次调用;Linux 和 Windows 上会说明缺少的桌面会话、AT-SPI 或系统库。`/computer-use` 显示用的是哪个程序和系统还缺什么。
|
|
8
|
+
- d0f78b8: Ta works in directories of other machines, as VS Code's Remote SSH does: a directory `ssh://<host>/<path>` (`TaLocation`) runs its commands, files, terminals and git on that host, through the `ssh` of the machine of `ta serve` and its configuration, while the agent and the credentials of the models stay there. The first connection copies a small `ta exec-server` to `~/.ta/server` of the host, with Node.js 22 when it has no Node.js 18 or later (downloaded and checked on this machine). What ssh asks (a password, a new host key) is asked in the pages (`TaRemoteServer`); the folder picker lists the hosts of `~/.ssh/config`; the built-in browser opens the dev servers of the host through forwarded ports (`forwardPort`, `ExecEnvironment.connect`). `ta exec-server` also runs on stdio (`ExecStdio`), and `ExecClient` takes any transport (`ExecClient.webSocket(url, token)`). New settings: `ta.remote.ssh`, `ta.remote.sshArgs`, `ta.remote.nodeMirror`.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 3791c3b: 文档:前端指南补上 `useLocale` 与可选的 react-intl;Ta 的 README 补上登录模型服务(`TaAuthServer`)、ta serve 的工作目录、经 Relay 配对设备(`TaRelayServer`、`ta pair` 默认 Relay)和 `ta update` 的行为。文档站新增 Ta 一节,收录 `ta` 命令、桌面与手机应用和每个 Ta 包的页面。
|
|
13
|
+
- 97da2f9: The page of the Ta service has the user's theme from its first frame: it reads the setting this browser keeps before the scripts load, instead of a white page until they do. The desktop app keeps the web client's theme for its next start, so its loading page and its first-start page are in that theme too.
|
|
14
|
+
|
|
15
|
+
## 4.6.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 58bcd45: 修复 `ta update` 把 Ta 换成 pi:pi 向 pi.dev 查询最新版本,返回的是 pi 的包名,于是更新时卸载了 `@celljs/ta`、装上 `@earendil-works/pi-coding-agent`,`ta` 命令随之消失。现在改为从 npm 查询 `@celljs/ta` 的最新版本,并且不再提示运行 pi 的安装脚本(Ta 是单文件打包、没有依赖需要固定)。
|
|
20
|
+
|
|
3
21
|
## 4.6.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|