@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.
Files changed (596) hide show
  1. package/README.en.md +37 -2
  2. package/README.md +37 -2
  3. package/bin/ta.mjs +1 -1
  4. package/dist/cli.mjs +591 -15
  5. package/dist/gateway.mjs +2830 -0
  6. package/dist/pi/CHANGELOG.md +31 -0
  7. package/dist/pi/package.json +1 -1
  8. package/dist/pi/packages/ta-agents/README.en.md +2 -2
  9. package/dist/pi/packages/ta-agents/README.md +2 -2
  10. package/dist/pi/packages/ta-agents/extension/index.mjs +61 -13
  11. package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +17 -4
  12. package/dist/pi/packages/ta-agents/lib/agent-bindings.js +39 -9
  13. package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +2 -0
  14. package/dist/pi/packages/ta-agents/lib/agent-catalog.js +3 -0
  15. package/dist/pi/packages/ta-agents/lib/agent-session.js +5 -0
  16. package/dist/pi/packages/ta-agents/lib/agent-streamer.js +10 -1
  17. package/dist/pi/packages/ta-agents/lib/extension.d.ts +2 -1
  18. package/dist/pi/packages/ta-agents/lib/extension.js +11 -3
  19. package/dist/pi/packages/ta-agents/lib/json-rpc.js +7 -1
  20. package/dist/pi/packages/ta-agents/package.json +11 -3
  21. package/dist/pi/packages/ta-bots/README.en.md +46 -0
  22. package/dist/pi/packages/ta-bots/README.md +46 -0
  23. package/dist/pi/packages/ta-bots/extension/index.mjs +629 -0
  24. package/dist/pi/packages/ta-bots/host/index.mjs +2313 -0
  25. package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +96 -0
  26. package/dist/pi/packages/ta-bots/lib/bot-service.js +391 -0
  27. package/dist/pi/packages/ta-bots/lib/bot-store.d.ts +42 -0
  28. package/dist/pi/packages/ta-bots/lib/bot-store.js +97 -0
  29. package/dist/pi/packages/ta-bots/lib/bots-protocol.d.ts +131 -0
  30. package/dist/pi/packages/ta-bots/lib/bots-protocol.js +46 -0
  31. package/dist/pi/packages/ta-bots/lib/bots-view.d.ts +7 -0
  32. package/dist/pi/packages/ta-bots/lib/bots-view.js +84 -0
  33. package/dist/pi/packages/ta-bots/lib/channel-protocol.d.ts +58 -0
  34. package/dist/pi/packages/ta-bots/lib/channel-protocol.js +37 -0
  35. package/dist/pi/packages/ta-bots/lib/composer.d.ts +21 -0
  36. package/dist/pi/packages/ta-bots/lib/composer.js +104 -0
  37. package/dist/pi/packages/ta-bots/lib/connect-dialog.d.ts +18 -0
  38. package/dist/pi/packages/ta-bots/lib/connect-dialog.js +198 -0
  39. package/dist/pi/packages/ta-bots/lib/extension.d.ts +34 -0
  40. package/dist/pi/packages/ta-bots/lib/extension.js +207 -0
  41. package/dist/pi/packages/ta-bots/lib/host.d.ts +8 -0
  42. package/dist/pi/packages/ta-bots/lib/host.js +15 -0
  43. package/dist/pi/packages/ta-bots/lib/i18n.d.ts +87 -0
  44. package/dist/pi/packages/ta-bots/lib/i18n.js +175 -0
  45. package/dist/pi/packages/ta-bots/lib/index.d.ts +9 -0
  46. package/dist/pi/packages/ta-bots/lib/index.js +40 -0
  47. package/dist/pi/packages/ta-bots/lib/login-book.d.ts +17 -0
  48. package/dist/pi/packages/ta-bots/lib/login-book.js +55 -0
  49. package/dist/pi/packages/ta-bots/lib/media-crypto.d.ts +19 -0
  50. package/dist/pi/packages/ta-bots/lib/media-crypto.js +70 -0
  51. package/dist/pi/packages/ta-bots/lib/message.d.ts +13 -0
  52. package/dist/pi/packages/ta-bots/lib/message.js +74 -0
  53. package/dist/pi/packages/ta-bots/lib/page.d.ts +54 -0
  54. package/dist/pi/packages/ta-bots/lib/page.js +131 -0
  55. package/dist/pi/packages/ta-bots/lib/pictures.d.ts +3 -0
  56. package/dist/pi/packages/ta-bots/lib/pictures.js +21 -0
  57. package/dist/pi/packages/ta-bots/lib/qr-image.d.ts +16 -0
  58. package/dist/pi/packages/ta-bots/lib/qr-image.js +70 -0
  59. package/dist/pi/packages/ta-bots/lib/react.d.ts +8 -0
  60. package/dist/pi/packages/ta-bots/lib/react.js +8 -0
  61. package/dist/pi/packages/ta-bots/lib/server-texts.d.ts +12 -0
  62. package/dist/pi/packages/ta-bots/lib/server-texts.js +45 -0
  63. package/dist/pi/packages/ta-bots/lib/session-bridge.d.ts +43 -0
  64. package/dist/pi/packages/ta-bots/lib/session-bridge.js +118 -0
  65. package/dist/pi/packages/ta-bots/lib/style.d.ts +4 -0
  66. package/dist/pi/packages/ta-bots/lib/style.js +114 -0
  67. package/dist/pi/packages/ta-bots/lib/test-fakes.d.ts +37 -0
  68. package/dist/pi/packages/ta-bots/lib/test-fakes.js +94 -0
  69. package/dist/pi/packages/ta-bots/lib/text-util.d.ts +16 -0
  70. package/dist/pi/packages/ta-bots/lib/text-util.js +158 -0
  71. package/dist/pi/packages/ta-bots/lib/web-socket-client.d.ts +38 -0
  72. package/dist/pi/packages/ta-bots/lib/web-socket-client.js +213 -0
  73. package/dist/pi/packages/ta-bots/lib/wecom-channel.d.ts +38 -0
  74. package/dist/pi/packages/ta-bots/lib/wecom-channel.js +222 -0
  75. package/dist/pi/packages/ta-bots/lib/wecom-login.d.ts +34 -0
  76. package/dist/pi/packages/ta-bots/lib/wecom-login.js +84 -0
  77. package/dist/pi/packages/ta-bots/lib/wecom-socket.d.ts +74 -0
  78. package/dist/pi/packages/ta-bots/lib/wecom-socket.js +214 -0
  79. package/dist/pi/packages/ta-bots/lib/weixin-api.d.ts +112 -0
  80. package/dist/pi/packages/ta-bots/lib/weixin-api.js +171 -0
  81. package/dist/pi/packages/ta-bots/lib/weixin-channel.d.ts +49 -0
  82. package/dist/pi/packages/ta-bots/lib/weixin-channel.js +258 -0
  83. package/dist/pi/packages/ta-bots/lib/weixin-login.d.ts +31 -0
  84. package/dist/pi/packages/ta-bots/lib/weixin-login.js +110 -0
  85. package/dist/pi/packages/ta-bots/package.json +55 -0
  86. package/dist/pi/packages/ta-bots/web/index.js +1241 -0
  87. package/dist/pi/packages/ta-changes/lib/diff-tab.js +1 -1
  88. package/dist/pi/packages/ta-changes/lib/style.d.ts +1 -1
  89. package/dist/pi/packages/ta-changes/lib/style.js +12 -10
  90. package/dist/pi/packages/ta-changes/package.json +11 -2
  91. package/dist/pi/packages/ta-changes/web/index.js +16 -13
  92. package/dist/pi/packages/ta-channels/README.en.md +3 -2
  93. package/dist/pi/packages/ta-channels/README.md +3 -2
  94. package/dist/pi/packages/ta-channels/extension/index.mjs +109 -8
  95. package/dist/pi/packages/ta-channels/host/index.mjs +281 -5
  96. package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +2 -0
  97. package/dist/pi/packages/ta-channels/lib/agent-menu.js +19 -6
  98. package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts +2 -0
  99. package/dist/pi/packages/ta-channels/lib/channel-menu.js +15 -12
  100. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +10 -0
  101. package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +10 -0
  102. package/dist/pi/packages/ta-channels/lib/channels-util.js +29 -2
  103. package/dist/pi/packages/ta-channels/lib/channels.d.ts +2 -0
  104. package/dist/pi/packages/ta-channels/lib/channels.js +1 -0
  105. package/dist/pi/packages/ta-channels/lib/create.js +2 -2
  106. package/dist/pi/packages/ta-channels/lib/extension.d.ts +5 -0
  107. package/dist/pi/packages/ta-channels/lib/extension.js +25 -2
  108. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +41 -9
  109. package/dist/pi/packages/ta-channels/lib/i18n.js +83 -19
  110. package/dist/pi/packages/ta-channels/lib/index.d.ts +3 -2
  111. package/dist/pi/packages/ta-channels/lib/index.js +14 -2
  112. package/dist/pi/packages/ta-channels/lib/members.js +10 -5
  113. package/dist/pi/packages/ta-channels/lib/more-menu.d.ts +5 -1
  114. package/dist/pi/packages/ta-channels/lib/more-menu.js +55 -9
  115. package/dist/pi/packages/ta-channels/lib/room.d.ts +11 -2
  116. package/dist/pi/packages/ta-channels/lib/room.js +47 -6
  117. package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +5 -1
  118. package/dist/pi/packages/ta-channels/lib/sidebar.js +241 -31
  119. package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
  120. package/dist/pi/packages/ta-channels/lib/style.js +136 -73
  121. package/dist/pi/packages/ta-channels/lib/tasks.d.ts +50 -0
  122. package/dist/pi/packages/ta-channels/lib/tasks.js +237 -0
  123. package/dist/pi/packages/ta-channels/lib/team-ask.d.ts +21 -0
  124. package/dist/pi/packages/ta-channels/lib/team-ask.js +73 -0
  125. package/dist/pi/packages/ta-channels/lib/team-tools.d.ts +6 -1
  126. package/dist/pi/packages/ta-channels/lib/team-tools.js +5 -4
  127. package/dist/pi/packages/ta-channels/lib/team.d.ts +5 -1
  128. package/dist/pi/packages/ta-channels/lib/team.js +10 -4
  129. package/dist/pi/packages/ta-channels/lib/views.d.ts +18 -3
  130. package/dist/pi/packages/ta-channels/lib/views.js +40 -9
  131. package/dist/pi/packages/ta-channels/package.json +11 -2
  132. package/dist/pi/packages/ta-channels/web/index.js +1061 -206
  133. package/dist/pi/packages/ta-computer-use/package.json +11 -2
  134. package/dist/pi/packages/ta-cron/README.en.md +3 -3
  135. package/dist/pi/packages/ta-cron/README.md +3 -3
  136. package/dist/pi/packages/ta-cron/host/index.mjs +19 -12
  137. package/dist/pi/packages/ta-cron/lib/editor.js +1 -3
  138. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +2 -4
  139. package/dist/pi/packages/ta-cron/lib/i18n.js +4 -8
  140. package/dist/pi/packages/ta-cron/lib/index.js +11 -0
  141. package/dist/pi/packages/ta-cron/lib/next-card.d.ts +9 -0
  142. package/dist/pi/packages/ta-cron/lib/next-card.js +35 -0
  143. package/dist/pi/packages/ta-cron/lib/page.d.ts +3 -0
  144. package/dist/pi/packages/ta-cron/lib/page.js +4 -1
  145. package/dist/pi/packages/ta-cron/lib/pictures.d.ts +6 -0
  146. package/dist/pi/packages/ta-cron/lib/pictures.js +46 -0
  147. package/dist/pi/packages/ta-cron/lib/scheduler.d.ts +2 -0
  148. package/dist/pi/packages/ta-cron/lib/scheduler.js +24 -14
  149. package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
  150. package/dist/pi/packages/ta-cron/lib/style.js +30 -44
  151. package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +4 -0
  152. package/dist/pi/packages/ta-cron/lib/tasks-view.js +36 -21
  153. package/dist/pi/packages/ta-cron/package.json +11 -2
  154. package/dist/pi/packages/ta-cron/web/index.js +249 -281
  155. package/dist/pi/packages/ta-extensions/README.en.md +4 -1
  156. package/dist/pi/packages/ta-extensions/README.md +4 -1
  157. package/dist/pi/packages/ta-extensions/host/index.mjs +64 -61
  158. package/dist/pi/packages/ta-extensions/lib/actions.d.ts +2 -0
  159. package/dist/pi/packages/ta-extensions/lib/actions.js +9 -1
  160. package/dist/pi/packages/ta-extensions/lib/host.d.ts +0 -8
  161. package/dist/pi/packages/ta-extensions/lib/host.js +7 -49
  162. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +8 -0
  163. package/dist/pi/packages/ta-extensions/lib/i18n.js +20 -4
  164. package/dist/pi/packages/ta-extensions/lib/index.js +2 -0
  165. package/dist/pi/packages/ta-extensions/lib/market-detail.js +14 -2
  166. package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +1 -1
  167. package/dist/pi/packages/ta-extensions/lib/market-style.js +18 -18
  168. package/dist/pi/packages/ta-extensions/lib/page.js +22 -11
  169. package/dist/pi/packages/ta-extensions/lib/pictures.d.ts +3 -1
  170. package/dist/pi/packages/ta-extensions/lib/pictures.js +28 -32
  171. package/dist/pi/packages/ta-extensions/lib/search.d.ts +10 -0
  172. package/dist/pi/packages/ta-extensions/lib/search.js +139 -0
  173. package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
  174. package/dist/pi/packages/ta-extensions/lib/style.js +15 -34
  175. package/dist/pi/packages/ta-extensions/package.json +12 -2
  176. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +12 -8
  177. package/dist/pi/packages/ta-extensions/web/index.js +488 -120
  178. package/dist/pi/packages/ta-launcher/README.en.md +15 -0
  179. package/dist/pi/packages/ta-launcher/README.md +15 -0
  180. package/dist/pi/packages/ta-launcher/lib/actions.d.ts +31 -0
  181. package/dist/pi/packages/ta-launcher/lib/actions.js +134 -0
  182. package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +38 -0
  183. package/dist/pi/packages/ta-launcher/lib/i18n.js +77 -0
  184. package/dist/pi/packages/ta-launcher/lib/index.d.ts +8 -0
  185. package/dist/pi/packages/ta-launcher/lib/index.js +48 -0
  186. package/dist/pi/packages/ta-launcher/lib/launcher-util.d.ts +19 -0
  187. package/dist/pi/packages/ta-launcher/lib/launcher-util.js +47 -0
  188. package/dist/pi/packages/ta-launcher/lib/launcher-view.d.ts +20 -0
  189. package/dist/pi/packages/ta-launcher/lib/launcher-view.js +99 -0
  190. package/dist/pi/packages/ta-launcher/lib/mine-store.d.ts +22 -0
  191. package/dist/pi/packages/ta-launcher/lib/mine-store.js +60 -0
  192. package/dist/pi/packages/ta-launcher/lib/react.d.ts +8 -0
  193. package/dist/pi/packages/ta-launcher/lib/react.js +8 -0
  194. package/dist/pi/packages/ta-launcher/lib/style.d.ts +4 -0
  195. package/dist/pi/packages/ta-launcher/lib/style.js +48 -0
  196. package/dist/pi/packages/ta-launcher/package.json +49 -0
  197. package/dist/pi/packages/ta-launcher/web/index.js +553 -0
  198. package/dist/pi/packages/ta-workspace/README.md +2 -2
  199. package/dist/pi/packages/ta-workspace/README.zh-cn.md +2 -2
  200. package/dist/pi/packages/ta-workspace/lib/common.d.ts +8 -5
  201. package/dist/pi/packages/ta-workspace/lib/common.js +53 -14
  202. package/dist/pi/packages/ta-workspace/lib/explorer-excluded.d.ts +3 -0
  203. package/dist/pi/packages/ta-workspace/lib/explorer-excluded.js +39 -0
  204. package/dist/pi/packages/ta-workspace/lib/explorer-transfer.d.ts +31 -0
  205. package/dist/pi/packages/ta-workspace/lib/explorer-transfer.js +156 -0
  206. package/dist/pi/packages/ta-workspace/lib/explorer.js +45 -153
  207. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +10 -0
  208. package/dist/pi/packages/ta-workspace/lib/i18n.js +30 -10
  209. package/dist/pi/packages/ta-workspace/lib/index.js +2 -1
  210. package/dist/pi/packages/ta-workspace/lib/open-files.js +1 -1
  211. package/dist/pi/packages/ta-workspace/lib/preview.js +6 -2
  212. package/dist/pi/packages/ta-workspace/lib/scm.js +4 -4
  213. package/dist/pi/packages/ta-workspace/lib/search.js +1 -1
  214. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  215. package/dist/pi/packages/ta-workspace/lib/style.js +100 -55
  216. package/dist/pi/packages/ta-workspace/lib/terminal-sessions.d.ts +51 -0
  217. package/dist/pi/packages/ta-workspace/lib/terminal-sessions.js +226 -0
  218. package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +5 -22
  219. package/dist/pi/packages/ta-workspace/lib/terminal.js +191 -141
  220. package/dist/pi/packages/ta-workspace/lib/util/terminal.d.ts +25 -0
  221. package/dist/pi/packages/ta-workspace/lib/util/terminal.js +55 -0
  222. package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts +3 -2
  223. package/dist/pi/packages/ta-workspace/lib/util/workspace.js +7 -3
  224. package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts +1 -1
  225. package/dist/pi/packages/ta-workspace/lib/workspace-client.js +2 -2
  226. package/dist/pi/packages/ta-workspace/package.json +11 -2
  227. package/dist/pi/packages/ta-workspace/web/index.js +916 -295
  228. package/dist/public/assets/{abnfDiagram-S7VZAUFO-CNqfsCwx.js → abnfDiagram-S7VZAUFO-EVMX_yOb.js} +1 -1
  229. package/dist/public/assets/{architecture-WOLXFQ4H-_WaGq-Qk.js → architecture-WOLXFQ4H-CDgbgZ_o.js} +1 -1
  230. package/dist/public/assets/{architectureDiagram-YGSQEFNW-Bn63Lctu.js → architectureDiagram-YGSQEFNW-dHreaCWz.js} +1 -1
  231. package/dist/public/assets/{blockDiagram-APKKGZFW-BGaAecnk.js → blockDiagram-APKKGZFW-D6FhzBDq.js} +1 -1
  232. package/dist/public/assets/{browser-DKagIN4Y.js → browser-y6EDNUmc.js} +1 -1
  233. package/dist/public/assets/{c4Diagram-KJ2TOQU5-CK9Z_9Zp.js → c4Diagram-KJ2TOQU5-BFpcr8Cs.js} +1 -1
  234. package/dist/public/assets/{chunk-6MUBBAK2-H3j3MGva.js → chunk-6MUBBAK2-BczXkMV-.js} +1 -1
  235. package/dist/public/assets/{chunk-AXFCVDMN-Beljdjs9.js → chunk-AXFCVDMN-CjJsv3jB.js} +1 -1
  236. package/dist/public/assets/{chunk-BG4553SI-TYEV5wLO.js → chunk-BG4553SI-FBaleaLz.js} +1 -1
  237. package/dist/public/assets/{chunk-DQASFODM-gmWJrizf.js → chunk-DQASFODM-BFdXY5sX.js} +1 -1
  238. package/dist/public/assets/{chunk-HFQBQIA3-BTa7yKXI.js → chunk-HFQBQIA3-C5cwK-Fg.js} +1 -1
  239. package/dist/public/assets/{chunk-KQLB2F66-BlwMm4R0.js → chunk-KQLB2F66-BUek3IRk.js} +1 -1
  240. package/dist/public/assets/{chunk-KS47KZWR-CKTXjzwD.js → chunk-KS47KZWR-BxsYBzt6.js} +1 -1
  241. package/dist/public/assets/{chunk-LEVMRMFU-Bn9Xkefl.js → chunk-LEVMRMFU-Bdcwz9fS.js} +1 -1
  242. package/dist/public/assets/{chunk-M57EVK23-B_QLqohG.js → chunk-M57EVK23-kkpP5oug.js} +1 -1
  243. package/dist/public/assets/{chunk-OY52VR5R-BflzJHPz.js → chunk-OY52VR5R-CFhQgxmD.js} +1 -1
  244. package/dist/public/assets/{chunk-QB3YPZ4I-BXucfaFg.js → chunk-QB3YPZ4I-BVXqu0eC.js} +1 -1
  245. package/dist/public/assets/{chunk-R3KSYZAL-CGwkwxm9.js → chunk-R3KSYZAL-B7SUqqLI.js} +1 -1
  246. package/dist/public/assets/{chunk-STOXU5M4-DQGOPuM5.js → chunk-STOXU5M4-B3abfbnH.js} +1 -1
  247. package/dist/public/assets/{chunk-TU62E6Q5-BCrs6AYI.js → chunk-TU62E6Q5-C9NqnUav.js} +1 -1
  248. package/dist/public/assets/{chunk-X4PVCEUW-MTv7nXJX.js → chunk-X4PVCEUW-BeLfETDx.js} +1 -1
  249. package/dist/public/assets/{chunk-XXDRQBXY-fPaX8VIb.js → chunk-XXDRQBXY-DXai1i8p.js} +1 -1
  250. package/dist/public/assets/{classDiagram-v2-L25IHNXF-tm4uT08q.js → classDiagram-v2-L25IHNXF-Zj6ne_tC.js} +1 -1
  251. package/dist/public/assets/{cose-bilkent-JH36ORCC-Dkk3pDZj.js → cose-bilkent-JH36ORCC-C0-TjqfJ.js} +1 -1
  252. package/dist/public/assets/cynefin-EF2NZ3EQ-CoY4CrZu.js +1 -0
  253. package/dist/public/assets/{cynefinDiagram-L36ESFBY-BcoArW00.js → cynefinDiagram-L36ESFBY-BnqxfzPa.js} +1 -1
  254. package/dist/public/assets/{d3-selection-BzUITLov.js → d3-selection-DfFLTR9d.js} +1 -1
  255. package/dist/public/assets/{dagre-SPEB5RXH-oiU-wJxw.js → dagre-SPEB5RXH-kI17e5cH.js} +1 -1
  256. package/dist/public/assets/{diagram-3B7GL73J-BwlCOIW4.js → diagram-3B7GL73J-DgPjeLA5.js} +1 -1
  257. package/dist/public/assets/{diagram-DNEMPZML-CZGQiFrl.js → diagram-DNEMPZML-CRhPfa0I.js} +1 -1
  258. package/dist/public/assets/{diagram-L3MUGCDN-BJGDa24C.js → diagram-L3MUGCDN-ExuTg12b.js} +1 -1
  259. package/dist/public/assets/{diagram-LA4NIPWU-DdwHRhnP.js → diagram-LA4NIPWU-Dgx5xNiY.js} +1 -1
  260. package/dist/public/assets/{diagram-MHCOC4E2-IjreLUB9.js → diagram-MHCOC4E2-BuifkUTl.js} +1 -1
  261. package/dist/public/assets/{diagram-XPFHEONP-CvaG0Zzq.js → diagram-XPFHEONP-CFEaBo7z.js} +1 -1
  262. package/dist/public/assets/{dist-Cm4zqoMA.js → dist-C-iJHcSK.js} +1 -1
  263. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-C-FOI67M.js → ebnfDiagram-UZSYDL2S-D-hp5yNt.js} +1 -1
  264. package/dist/public/assets/{editor.api-hteKufWf.js → editor.api-BopUWpqY.js} +1 -1
  265. package/dist/public/assets/{elk-XV6XMXQE-C_ClfkLy.js → elk-XV6XMXQE-CBbk_IpU.js} +1 -1
  266. package/dist/public/assets/{erDiagram-EYBAPDEH-DSr0aRYm.js → erDiagram-EYBAPDEH-B02R_WWE.js} +1 -1
  267. package/dist/public/assets/{eventmodeling-K75KTNOO-COU_atV6.js → eventmodeling-K75KTNOO-aCZfYnCI.js} +1 -1
  268. package/dist/public/assets/flowDiagram-MALGAFMO-CATkJShO.js +1 -0
  269. package/dist/public/assets/{freemarker2-CBJnhymu.js → freemarker2-DMN60LeK.js} +1 -1
  270. package/dist/public/assets/{ganttDiagram-23REXITY-BAcXXNjI.js → ganttDiagram-23REXITY-DioU8TlD.js} +1 -1
  271. package/dist/public/assets/gitGraph-VSP46ZUC-g4yHXXxx.js +1 -0
  272. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Bk9sns6k.js → gitGraphDiagram-STJD7YCW--q3ctg6y.js} +1 -1
  273. package/dist/public/assets/{handlebars-CiqYW1im.js → handlebars-B_-qdvpB.js} +1 -1
  274. package/dist/public/assets/{html-kafkm1Z0.js → html-BN8Ah3Js.js} +1 -1
  275. package/dist/public/assets/{index-DPLd0-lb.js → index-B3A--ac8.js} +2 -2
  276. package/dist/public/assets/info-OHQRW6UA-CKADJjz4.js +1 -0
  277. package/dist/public/assets/{infoDiagram-KBXO4MBG-2hRQLVWa.js → infoDiagram-KBXO4MBG-CGXteYo9.js} +1 -1
  278. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-hrOnhWJs.js → ishikawaDiagram-M35NCXHK-DM2LmOAc.js} +1 -1
  279. package/dist/public/assets/{javascript-Dt5MiA9w.js → javascript-BlizGb0q.js} +1 -1
  280. package/dist/public/assets/{journeyDiagram-OPLOXDXO-d8HJd04q.js → journeyDiagram-OPLOXDXO-CNITRtGl.js} +1 -1
  281. package/dist/public/assets/{jsonMode-DBICoo6P.js → jsonMode-CEUmT5sN.js} +1 -1
  282. package/dist/public/assets/{kanban-definition-BZKZHSQY-DOUuZDiv.js → kanban-definition-BZKZHSQY-BPUuS9um.js} +1 -1
  283. package/dist/public/assets/{liquid-BGYhBP2h.js → liquid-BbyLjUbE.js} +1 -1
  284. package/dist/public/assets/{mdx-Ct_gzcP3.js → mdx-DiQz7Q35.js} +1 -1
  285. package/dist/public/assets/{mermaid-parser.core-2yhxYNxq.js → mermaid-parser.core-Dum100hC.js} +3 -3
  286. package/dist/public/assets/{mermaid.core-sx7teU8z.js → mermaid.core-BWmWf6XO.js} +4 -4
  287. package/dist/public/assets/{mindmap-definition-I2QAS2VK-DIc9LejH.js → mindmap-definition-I2QAS2VK-L8HyYUDY.js} +1 -1
  288. package/dist/public/assets/module-CH7IXa5L.js +1781 -0
  289. package/dist/public/assets/module-DNAasuMC.js +1 -0
  290. package/dist/public/assets/{monaco-DJecWyyV.js → monaco-zOOyBmxy.js} +3 -3
  291. package/dist/public/assets/packet-JDAUHWVQ-CpKMhX4K.js +1 -0
  292. package/dist/public/assets/{pegDiagram-FD4XPPHP-BfiT6-Vx.js → pegDiagram-FD4XPPHP-CTZKPo0Z.js} +1 -1
  293. package/dist/public/assets/pie-XZMESJXO-CW-zGDRd.js +1 -0
  294. package/dist/public/assets/{pieDiagram-J4AKIIQI-DJ0sF_Eg.js → pieDiagram-J4AKIIQI-DAeT3dFi.js} +1 -1
  295. package/dist/public/assets/{python-BrnocsK9.js → python-C984gt98.js} +1 -1
  296. package/dist/public/assets/{quadrantDiagram-XTYBLID2-C3iF5PG6.js → quadrantDiagram-XTYBLID2--PXxwV1Z.js} +1 -1
  297. package/dist/public/assets/radar-ABXABTNO-Cg8W433p.js +1 -0
  298. package/dist/public/assets/railroad-I3PHUGI6-DriMt2PQ.js +1 -0
  299. package/dist/public/assets/{railroad-abnf-LNEFI6M7-BI4N-mtq.js → railroad-abnf-LNEFI6M7-BYcFfrCa.js} +1 -1
  300. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-Ck2MUlyV.js → railroad-ebnf-DWYD2UWJ-Cd33qxAm.js} +1 -1
  301. package/dist/public/assets/{railroad-peg-JR7BVNR7-Cuc9S0f4.js → railroad-peg-JR7BVNR7-C5TpzaU8.js} +1 -1
  302. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Cw24sb_5.js → railroadDiagram-MRQ6NCDL-DlWwjbhH.js} +1 -1
  303. package/dist/public/assets/{razor-BDHTAmlI.js → razor-BBqMR1Qn.js} +1 -1
  304. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-QQUXFr1R.js → requirementDiagram-Y7LWUY3S-CsYBy9HS.js} +1 -1
  305. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-mSlfAHND.js → sankeyDiagram-WGJFYUXA-Baxyb5p9.js} +1 -1
  306. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-3t8hVott.js → sequenceDiagram-5NDRBG5M-Cq6VeBT_.js} +1 -1
  307. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-9EW807AL.js → stateDiagram-v2-FJ4FJNEA-O60WKaE7.js} +1 -1
  308. package/dist/public/assets/{swimlanes-UMQ2AFYF-EbMBX_e0.js → swimlanes-UMQ2AFYF-C2nf1-Cc.js} +1 -1
  309. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-B46JxqS8.js +8 -0
  310. package/dist/public/assets/{timeline-definition-SEUHKTQE-D14kjjsp.js → timeline-definition-SEUHKTQE-DEfUG6YH.js} +1 -1
  311. package/dist/public/assets/treeView-D4JQ5SDB-1LhEWwC9.js +1 -0
  312. package/dist/public/assets/treemap-SAJKECNS-D3t3N7nS.js +1 -0
  313. package/dist/public/assets/{typescript-BEEbbq69.js → typescript-Gtq7f0aU.js} +1 -1
  314. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-DKemtzU9.js → usecaseDiagram-AFA6YXN4-Gw9DyJcx.js} +1 -1
  315. package/dist/public/assets/{vennDiagram-NNMJR3RB-DOBq9oeY.js → vennDiagram-NNMJR3RB-Clb3MLWF.js} +1 -1
  316. package/dist/public/assets/wardley-7MLQ67FV-D3sAsd8p.js +1 -0
  317. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DquSJ4y-.js → wardleyDiagram-S7YFUSEH-BrTRpwu2.js} +1 -1
  318. package/dist/public/assets/{xml-DvTQKQ_W.js → xml-Bx3nk7iG.js} +1 -1
  319. package/dist/public/assets/{xychartDiagram-GGNKY7IX-ClE_9jz4.js → xychartDiagram-GGNKY7IX-BfjTcIsb.js} +1 -1
  320. package/dist/public/assets/{yaml-ffiFfPtJ.js → yaml-dFLE_rSl.js} +1 -1
  321. package/dist/public/index.html +35 -6
  322. package/dist/public/launch.svg +49 -0
  323. package/dist/serve/index.mjs +3699 -887
  324. package/package.json +25 -22
  325. package/dist/pi/packages/ta-agents/fixtures/fake-acp-agent.mjs +0 -183
  326. package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts.map +0 -1
  327. package/dist/pi/packages/ta-agents/lib/acp-agent.js.map +0 -1
  328. package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts.map +0 -1
  329. package/dist/pi/packages/ta-agents/lib/acp-protocol.js.map +0 -1
  330. package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts.map +0 -1
  331. package/dist/pi/packages/ta-agents/lib/agent-bindings.js.map +0 -1
  332. package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts.map +0 -1
  333. package/dist/pi/packages/ta-agents/lib/agent-catalog.js.map +0 -1
  334. package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts.map +0 -1
  335. package/dist/pi/packages/ta-agents/lib/agent-prompt.js.map +0 -1
  336. package/dist/pi/packages/ta-agents/lib/agent-session.d.ts.map +0 -1
  337. package/dist/pi/packages/ta-agents/lib/agent-session.js.map +0 -1
  338. package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts.map +0 -1
  339. package/dist/pi/packages/ta-agents/lib/agent-streamer.js.map +0 -1
  340. package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts.map +0 -1
  341. package/dist/pi/packages/ta-agents/lib/agent-tool.js.map +0 -1
  342. package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts.map +0 -1
  343. package/dist/pi/packages/ta-agents/lib/agent-turn.js.map +0 -1
  344. package/dist/pi/packages/ta-agents/lib/extension.d.ts.map +0 -1
  345. package/dist/pi/packages/ta-agents/lib/extension.js.map +0 -1
  346. package/dist/pi/packages/ta-agents/lib/json-rpc.d.ts.map +0 -1
  347. package/dist/pi/packages/ta-agents/lib/json-rpc.js.map +0 -1
  348. package/dist/pi/packages/ta-agents/lib/message-stream.d.ts.map +0 -1
  349. package/dist/pi/packages/ta-agents/lib/message-stream.js.map +0 -1
  350. package/dist/pi/packages/ta-agents/lib/pi-types.d.ts.map +0 -1
  351. package/dist/pi/packages/ta-agents/lib/pi-types.js.map +0 -1
  352. package/dist/pi/packages/ta-agents/lib/texts.d.ts.map +0 -1
  353. package/dist/pi/packages/ta-agents/lib/texts.js.map +0 -1
  354. package/dist/pi/packages/ta-changes/lib/blob-store.d.ts.map +0 -1
  355. package/dist/pi/packages/ta-changes/lib/blob-store.js.map +0 -1
  356. package/dist/pi/packages/ta-changes/lib/card.d.ts.map +0 -1
  357. package/dist/pi/packages/ta-changes/lib/card.js.map +0 -1
  358. package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts.map +0 -1
  359. package/dist/pi/packages/ta-changes/lib/changes-protocol.js.map +0 -1
  360. package/dist/pi/packages/ta-changes/lib/changes-service.d.ts.map +0 -1
  361. package/dist/pi/packages/ta-changes/lib/changes-service.js.map +0 -1
  362. package/dist/pi/packages/ta-changes/lib/changes-util.d.ts.map +0 -1
  363. package/dist/pi/packages/ta-changes/lib/changes-util.js.map +0 -1
  364. package/dist/pi/packages/ta-changes/lib/diff-tab.d.ts.map +0 -1
  365. package/dist/pi/packages/ta-changes/lib/diff-tab.js.map +0 -1
  366. package/dist/pi/packages/ta-changes/lib/extension.d.ts.map +0 -1
  367. package/dist/pi/packages/ta-changes/lib/extension.js.map +0 -1
  368. package/dist/pi/packages/ta-changes/lib/host.d.ts.map +0 -1
  369. package/dist/pi/packages/ta-changes/lib/host.js.map +0 -1
  370. package/dist/pi/packages/ta-changes/lib/i18n.d.ts.map +0 -1
  371. package/dist/pi/packages/ta-changes/lib/i18n.js.map +0 -1
  372. package/dist/pi/packages/ta-changes/lib/index.d.ts.map +0 -1
  373. package/dist/pi/packages/ta-changes/lib/index.js.map +0 -1
  374. package/dist/pi/packages/ta-changes/lib/line-diff.d.ts.map +0 -1
  375. package/dist/pi/packages/ta-changes/lib/line-diff.js.map +0 -1
  376. package/dist/pi/packages/ta-changes/lib/page.d.ts.map +0 -1
  377. package/dist/pi/packages/ta-changes/lib/page.js.map +0 -1
  378. package/dist/pi/packages/ta-changes/lib/react.d.ts.map +0 -1
  379. package/dist/pi/packages/ta-changes/lib/react.js.map +0 -1
  380. package/dist/pi/packages/ta-changes/lib/recorder.d.ts.map +0 -1
  381. package/dist/pi/packages/ta-changes/lib/recorder.js.map +0 -1
  382. package/dist/pi/packages/ta-changes/lib/style.d.ts.map +0 -1
  383. package/dist/pi/packages/ta-changes/lib/style.js.map +0 -1
  384. package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts.map +0 -1
  385. package/dist/pi/packages/ta-channels/lib/agent-menu.js.map +0 -1
  386. package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts.map +0 -1
  387. package/dist/pi/packages/ta-channels/lib/channel-menu.js.map +0 -1
  388. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts.map +0 -1
  389. package/dist/pi/packages/ta-channels/lib/channels-model.js.map +0 -1
  390. package/dist/pi/packages/ta-channels/lib/channels-util.d.ts.map +0 -1
  391. package/dist/pi/packages/ta-channels/lib/channels-util.js.map +0 -1
  392. package/dist/pi/packages/ta-channels/lib/channels.d.ts.map +0 -1
  393. package/dist/pi/packages/ta-channels/lib/channels.js.map +0 -1
  394. package/dist/pi/packages/ta-channels/lib/create.d.ts.map +0 -1
  395. package/dist/pi/packages/ta-channels/lib/create.js.map +0 -1
  396. package/dist/pi/packages/ta-channels/lib/extension.d.ts.map +0 -1
  397. package/dist/pi/packages/ta-channels/lib/extension.js.map +0 -1
  398. package/dist/pi/packages/ta-channels/lib/faces.d.ts.map +0 -1
  399. package/dist/pi/packages/ta-channels/lib/faces.js.map +0 -1
  400. package/dist/pi/packages/ta-channels/lib/host.d.ts.map +0 -1
  401. package/dist/pi/packages/ta-channels/lib/host.js.map +0 -1
  402. package/dist/pi/packages/ta-channels/lib/i18n.d.ts.map +0 -1
  403. package/dist/pi/packages/ta-channels/lib/i18n.js.map +0 -1
  404. package/dist/pi/packages/ta-channels/lib/index.d.ts.map +0 -1
  405. package/dist/pi/packages/ta-channels/lib/index.js.map +0 -1
  406. package/dist/pi/packages/ta-channels/lib/members.d.ts.map +0 -1
  407. package/dist/pi/packages/ta-channels/lib/members.js.map +0 -1
  408. package/dist/pi/packages/ta-channels/lib/more-menu.d.ts.map +0 -1
  409. package/dist/pi/packages/ta-channels/lib/more-menu.js.map +0 -1
  410. package/dist/pi/packages/ta-channels/lib/react.d.ts.map +0 -1
  411. package/dist/pi/packages/ta-channels/lib/react.js.map +0 -1
  412. package/dist/pi/packages/ta-channels/lib/room.d.ts.map +0 -1
  413. package/dist/pi/packages/ta-channels/lib/room.js.map +0 -1
  414. package/dist/pi/packages/ta-channels/lib/sidebar.d.ts.map +0 -1
  415. package/dist/pi/packages/ta-channels/lib/sidebar.js.map +0 -1
  416. package/dist/pi/packages/ta-channels/lib/style.d.ts.map +0 -1
  417. package/dist/pi/packages/ta-channels/lib/style.js.map +0 -1
  418. package/dist/pi/packages/ta-channels/lib/team-tools.d.ts.map +0 -1
  419. package/dist/pi/packages/ta-channels/lib/team-tools.js.map +0 -1
  420. package/dist/pi/packages/ta-channels/lib/team.d.ts.map +0 -1
  421. package/dist/pi/packages/ta-channels/lib/team.js.map +0 -1
  422. package/dist/pi/packages/ta-channels/lib/views.d.ts.map +0 -1
  423. package/dist/pi/packages/ta-channels/lib/views.js.map +0 -1
  424. package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.d.ts.map +0 -1
  425. package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js.map +0 -1
  426. package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.d.ts.map +0 -1
  427. package/dist/pi/packages/ta-computer-use/lib/cua-driver-daemon.js.map +0 -1
  428. package/dist/pi/packages/ta-computer-use/lib/cua-driver.d.ts.map +0 -1
  429. package/dist/pi/packages/ta-computer-use/lib/cua-driver.js.map +0 -1
  430. package/dist/pi/packages/ta-computer-use/lib/extension.d.ts.map +0 -1
  431. package/dist/pi/packages/ta-computer-use/lib/extension.js.map +0 -1
  432. package/dist/pi/packages/ta-computer-use/lib/pi-types.d.ts.map +0 -1
  433. package/dist/pi/packages/ta-computer-use/lib/pi-types.js.map +0 -1
  434. package/dist/pi/packages/ta-cron/lib/commands.d.ts.map +0 -1
  435. package/dist/pi/packages/ta-cron/lib/commands.js.map +0 -1
  436. package/dist/pi/packages/ta-cron/lib/cron-expression.d.ts.map +0 -1
  437. package/dist/pi/packages/ta-cron/lib/cron-expression.js.map +0 -1
  438. package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts.map +0 -1
  439. package/dist/pi/packages/ta-cron/lib/cron-protocol.js.map +0 -1
  440. package/dist/pi/packages/ta-cron/lib/editor.d.ts.map +0 -1
  441. package/dist/pi/packages/ta-cron/lib/editor.js.map +0 -1
  442. package/dist/pi/packages/ta-cron/lib/extension.d.ts.map +0 -1
  443. package/dist/pi/packages/ta-cron/lib/extension.js.map +0 -1
  444. package/dist/pi/packages/ta-cron/lib/form-util.d.ts.map +0 -1
  445. package/dist/pi/packages/ta-cron/lib/form-util.js.map +0 -1
  446. package/dist/pi/packages/ta-cron/lib/host.d.ts.map +0 -1
  447. package/dist/pi/packages/ta-cron/lib/host.js.map +0 -1
  448. package/dist/pi/packages/ta-cron/lib/i18n.d.ts.map +0 -1
  449. package/dist/pi/packages/ta-cron/lib/i18n.js.map +0 -1
  450. package/dist/pi/packages/ta-cron/lib/index.d.ts.map +0 -1
  451. package/dist/pi/packages/ta-cron/lib/index.js.map +0 -1
  452. package/dist/pi/packages/ta-cron/lib/model-picker.d.ts +0 -33
  453. package/dist/pi/packages/ta-cron/lib/model-picker.d.ts.map +0 -1
  454. package/dist/pi/packages/ta-cron/lib/model-picker.js +0 -178
  455. package/dist/pi/packages/ta-cron/lib/model-picker.js.map +0 -1
  456. package/dist/pi/packages/ta-cron/lib/notifier.d.ts.map +0 -1
  457. package/dist/pi/packages/ta-cron/lib/notifier.js.map +0 -1
  458. package/dist/pi/packages/ta-cron/lib/page.d.ts.map +0 -1
  459. package/dist/pi/packages/ta-cron/lib/page.js.map +0 -1
  460. package/dist/pi/packages/ta-cron/lib/react.d.ts.map +0 -1
  461. package/dist/pi/packages/ta-cron/lib/react.js.map +0 -1
  462. package/dist/pi/packages/ta-cron/lib/reply.d.ts.map +0 -1
  463. package/dist/pi/packages/ta-cron/lib/reply.js.map +0 -1
  464. package/dist/pi/packages/ta-cron/lib/schedule-util.d.ts.map +0 -1
  465. package/dist/pi/packages/ta-cron/lib/schedule-util.js.map +0 -1
  466. package/dist/pi/packages/ta-cron/lib/scheduler.d.ts.map +0 -1
  467. package/dist/pi/packages/ta-cron/lib/scheduler.js.map +0 -1
  468. package/dist/pi/packages/ta-cron/lib/server-texts.d.ts.map +0 -1
  469. package/dist/pi/packages/ta-cron/lib/server-texts.js.map +0 -1
  470. package/dist/pi/packages/ta-cron/lib/style.d.ts.map +0 -1
  471. package/dist/pi/packages/ta-cron/lib/style.js.map +0 -1
  472. package/dist/pi/packages/ta-cron/lib/task-store.d.ts.map +0 -1
  473. package/dist/pi/packages/ta-cron/lib/task-store.js.map +0 -1
  474. package/dist/pi/packages/ta-cron/lib/task-util.d.ts.map +0 -1
  475. package/dist/pi/packages/ta-cron/lib/task-util.js.map +0 -1
  476. package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts.map +0 -1
  477. package/dist/pi/packages/ta-cron/lib/tasks-view.js.map +0 -1
  478. package/dist/pi/packages/ta-cron/lib/tool.d.ts.map +0 -1
  479. package/dist/pi/packages/ta-cron/lib/tool.js.map +0 -1
  480. package/dist/pi/packages/ta-extensions/lib/actions.d.ts.map +0 -1
  481. package/dist/pi/packages/ta-extensions/lib/actions.js.map +0 -1
  482. package/dist/pi/packages/ta-extensions/lib/archive.d.ts +0 -30
  483. package/dist/pi/packages/ta-extensions/lib/archive.d.ts.map +0 -1
  484. package/dist/pi/packages/ta-extensions/lib/archive.js +0 -213
  485. package/dist/pi/packages/ta-extensions/lib/archive.js.map +0 -1
  486. package/dist/pi/packages/ta-extensions/lib/context.d.ts.map +0 -1
  487. package/dist/pi/packages/ta-extensions/lib/context.js.map +0 -1
  488. package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts.map +0 -1
  489. package/dist/pi/packages/ta-extensions/lib/extensions-util.js.map +0 -1
  490. package/dist/pi/packages/ta-extensions/lib/host.d.ts.map +0 -1
  491. package/dist/pi/packages/ta-extensions/lib/host.js.map +0 -1
  492. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts.map +0 -1
  493. package/dist/pi/packages/ta-extensions/lib/i18n.js.map +0 -1
  494. package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts.map +0 -1
  495. package/dist/pi/packages/ta-extensions/lib/import-dialog.js.map +0 -1
  496. package/dist/pi/packages/ta-extensions/lib/index.d.ts.map +0 -1
  497. package/dist/pi/packages/ta-extensions/lib/index.js.map +0 -1
  498. package/dist/pi/packages/ta-extensions/lib/market-detail.d.ts.map +0 -1
  499. package/dist/pi/packages/ta-extensions/lib/market-detail.js.map +0 -1
  500. package/dist/pi/packages/ta-extensions/lib/market-parts.d.ts.map +0 -1
  501. package/dist/pi/packages/ta-extensions/lib/market-parts.js.map +0 -1
  502. package/dist/pi/packages/ta-extensions/lib/market-store.d.ts.map +0 -1
  503. package/dist/pi/packages/ta-extensions/lib/market-store.js.map +0 -1
  504. package/dist/pi/packages/ta-extensions/lib/market-style.d.ts.map +0 -1
  505. package/dist/pi/packages/ta-extensions/lib/market-style.js.map +0 -1
  506. package/dist/pi/packages/ta-extensions/lib/market-util.d.ts.map +0 -1
  507. package/dist/pi/packages/ta-extensions/lib/market-util.js.map +0 -1
  508. package/dist/pi/packages/ta-extensions/lib/market-view.d.ts.map +0 -1
  509. package/dist/pi/packages/ta-extensions/lib/market-view.js.map +0 -1
  510. package/dist/pi/packages/ta-extensions/lib/market.d.ts.map +0 -1
  511. package/dist/pi/packages/ta-extensions/lib/market.js.map +0 -1
  512. package/dist/pi/packages/ta-extensions/lib/page.d.ts.map +0 -1
  513. package/dist/pi/packages/ta-extensions/lib/page.js.map +0 -1
  514. package/dist/pi/packages/ta-extensions/lib/pictures.d.ts.map +0 -1
  515. package/dist/pi/packages/ta-extensions/lib/pictures.js.map +0 -1
  516. package/dist/pi/packages/ta-extensions/lib/react.d.ts.map +0 -1
  517. package/dist/pi/packages/ta-extensions/lib/react.js.map +0 -1
  518. package/dist/pi/packages/ta-extensions/lib/signal.d.ts.map +0 -1
  519. package/dist/pi/packages/ta-extensions/lib/signal.js.map +0 -1
  520. package/dist/pi/packages/ta-extensions/lib/style.d.ts.map +0 -1
  521. package/dist/pi/packages/ta-extensions/lib/style.js.map +0 -1
  522. package/dist/pi/packages/ta-workspace/lib/browser-agent.d.ts.map +0 -1
  523. package/dist/pi/packages/ta-workspace/lib/browser-agent.js.map +0 -1
  524. package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts.map +0 -1
  525. package/dist/pi/packages/ta-workspace/lib/browser-common.js.map +0 -1
  526. package/dist/pi/packages/ta-workspace/lib/browser-import.d.ts.map +0 -1
  527. package/dist/pi/packages/ta-workspace/lib/browser-import.js.map +0 -1
  528. package/dist/pi/packages/ta-workspace/lib/browser-webview.d.ts.map +0 -1
  529. package/dist/pi/packages/ta-workspace/lib/browser-webview.js.map +0 -1
  530. package/dist/pi/packages/ta-workspace/lib/browser.d.ts.map +0 -1
  531. package/dist/pi/packages/ta-workspace/lib/browser.js.map +0 -1
  532. package/dist/pi/packages/ta-workspace/lib/common.d.ts.map +0 -1
  533. package/dist/pi/packages/ta-workspace/lib/common.js.map +0 -1
  534. package/dist/pi/packages/ta-workspace/lib/editors.d.ts.map +0 -1
  535. package/dist/pi/packages/ta-workspace/lib/editors.js.map +0 -1
  536. package/dist/pi/packages/ta-workspace/lib/explorer.d.ts.map +0 -1
  537. package/dist/pi/packages/ta-workspace/lib/explorer.js.map +0 -1
  538. package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts.map +0 -1
  539. package/dist/pi/packages/ta-workspace/lib/file-icon.js.map +0 -1
  540. package/dist/pi/packages/ta-workspace/lib/host.d.ts.map +0 -1
  541. package/dist/pi/packages/ta-workspace/lib/host.js.map +0 -1
  542. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts.map +0 -1
  543. package/dist/pi/packages/ta-workspace/lib/i18n.js.map +0 -1
  544. package/dist/pi/packages/ta-workspace/lib/index.d.ts.map +0 -1
  545. package/dist/pi/packages/ta-workspace/lib/index.js.map +0 -1
  546. package/dist/pi/packages/ta-workspace/lib/open-files.d.ts.map +0 -1
  547. package/dist/pi/packages/ta-workspace/lib/open-files.js.map +0 -1
  548. package/dist/pi/packages/ta-workspace/lib/preview.d.ts.map +0 -1
  549. package/dist/pi/packages/ta-workspace/lib/preview.js.map +0 -1
  550. package/dist/pi/packages/ta-workspace/lib/react.d.ts.map +0 -1
  551. package/dist/pi/packages/ta-workspace/lib/react.js.map +0 -1
  552. package/dist/pi/packages/ta-workspace/lib/scm.d.ts.map +0 -1
  553. package/dist/pi/packages/ta-workspace/lib/scm.js.map +0 -1
  554. package/dist/pi/packages/ta-workspace/lib/search.d.ts.map +0 -1
  555. package/dist/pi/packages/ta-workspace/lib/search.js.map +0 -1
  556. package/dist/pi/packages/ta-workspace/lib/style.d.ts.map +0 -1
  557. package/dist/pi/packages/ta-workspace/lib/style.js.map +0 -1
  558. package/dist/pi/packages/ta-workspace/lib/terminal.d.ts.map +0 -1
  559. package/dist/pi/packages/ta-workspace/lib/terminal.js.map +0 -1
  560. package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.d.ts.map +0 -1
  561. package/dist/pi/packages/ta-workspace/lib/util/browser-snapshot.js.map +0 -1
  562. package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts.map +0 -1
  563. package/dist/pi/packages/ta-workspace/lib/util/file-icon.js.map +0 -1
  564. package/dist/pi/packages/ta-workspace/lib/util/git.d.ts.map +0 -1
  565. package/dist/pi/packages/ta-workspace/lib/util/git.js.map +0 -1
  566. package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts.map +0 -1
  567. package/dist/pi/packages/ta-workspace/lib/util/preview.js.map +0 -1
  568. package/dist/pi/packages/ta-workspace/lib/util/search.d.ts.map +0 -1
  569. package/dist/pi/packages/ta-workspace/lib/util/search.js.map +0 -1
  570. package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts.map +0 -1
  571. package/dist/pi/packages/ta-workspace/lib/util/seti-font.js.map +0 -1
  572. package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts.map +0 -1
  573. package/dist/pi/packages/ta-workspace/lib/util/seti.js.map +0 -1
  574. package/dist/pi/packages/ta-workspace/lib/util/upload.d.ts.map +0 -1
  575. package/dist/pi/packages/ta-workspace/lib/util/upload.js.map +0 -1
  576. package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts.map +0 -1
  577. package/dist/pi/packages/ta-workspace/lib/util/workspace.js.map +0 -1
  578. package/dist/pi/packages/ta-workspace/lib/util/zip.d.ts.map +0 -1
  579. package/dist/pi/packages/ta-workspace/lib/util/zip.js.map +0 -1
  580. package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts.map +0 -1
  581. package/dist/pi/packages/ta-workspace/lib/workspace-client.js.map +0 -1
  582. package/dist/pi/packages/ta-workspace/scripts/seti.ts +0 -173
  583. package/dist/public/assets/cynefin-EF2NZ3EQ-D_QV_BJg.js +0 -1
  584. package/dist/public/assets/flowDiagram-MALGAFMO-QGLBPpjQ.js +0 -1
  585. package/dist/public/assets/gitGraph-VSP46ZUC-ByODkoVe.js +0 -1
  586. package/dist/public/assets/info-OHQRW6UA-BMphWS2h.js +0 -1
  587. package/dist/public/assets/module-BX2fJibj.js +0 -1124
  588. package/dist/public/assets/module-N1D-AOa6.js +0 -1
  589. package/dist/public/assets/packet-JDAUHWVQ-Ca8klABu.js +0 -1
  590. package/dist/public/assets/pie-XZMESJXO-B-SN2eCI.js +0 -1
  591. package/dist/public/assets/radar-ABXABTNO-DzDnNRnq.js +0 -1
  592. package/dist/public/assets/railroad-I3PHUGI6-7QAv0_1N.js +0 -1
  593. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CIFqDFf2.js +0 -8
  594. package/dist/public/assets/treeView-D4JQ5SDB-cznq7PJK.js +0 -1
  595. package/dist/public/assets/treemap-SAJKECNS-CBYUiQGU.js +0 -1
  596. package/dist/public/assets/wardley-7MLQ67FV-DV8bp8Ml.js +0 -1
@@ -1,5 +1,36 @@
1
1
  # @celljs/ta
2
2
 
3
+ ## 4.9.1
4
+
5
+ No changes in this release.
6
+
7
+ ## 4.9.0
8
+
9
+ ### Minor Changes
10
+
11
+ - 0f8ed31: Quick open and the board, as WeChat's pull down over its chats (docs/design/ta-launcher.md). On a phone, a pull down from the top of the first tab shows Quick open behind it and leaves the home as a strip at the bottom; a swipe to the left over the first tab (from the right edge over a row) brings the board in. On a computer or a tablet, two buttons at the bottom of the rail open the same in a flyout. Their content is the views of web extensions at `location: 'launcher'` and `'board'`; the user takes cards of the board off, puts them back and orders them.
12
+
13
+ A web extension can start when one of its pages opens (`pi.webActivation: 'open'`); left, it keeps running in the background with its page as it was, and stops after the time of Settings, Extensions (5 minutes by default) or when more than three are there. A package can be opened without installing (`TaPackageServer.openTemporaryPackage`, `origin: 'temporary'`): from the market (Open on the page of a package), from a link or its QR code (`ta://open?source=…`, or `#open=` of an address of Ta Web), or made by an agent in `temporary/` of the agent directory. Only its web part runs; it can be kept in Mine, installed or deleted, and the server clears those unused for the days of the settings (30 by default) unless kept.
14
+
15
+ New built-in package `@celljs/ta-launcher`: Recent and Mine, the menu of their icons (keep, close, install, share, remove), and the dialog to open a link. The double and the scheduled tasks put a card on the board. Web extensions get `ui.usePages`, `ui.stopExtension`, `ui.forgetPage`, `openTemporary`, `ui.useContextMenu`, `ui.QrCode` and `ui.scanCode`.
16
+ - 3cf9531: Any extension but a built-in can be shared by a link and its QR code, from Quick open, each row of the Extensions page, the page of a package of the market and the search: a published one by its source; one of this computer (made by you or an agent, a local path, one shared with you) end to end through the relay, which keeps nothing: the other Ta service takes it from yours while it runs, for 7 days, up to 8 MB (`TaRelayServer.sharePackage`, `RelayShareUtil`). The search of Quick open lists pages and the extensions installed, built in and of the market before anything is typed, narrows them as you type and asks npm after a pause, a page at a time. Web extensions get `ui.shareExtension`, `ui.openShared` and `registerSearch`; `ui.showView` resolves whether there was such a view and opens the first page of an extension by its name. `PackageArchive` (the tar of packages) moved to ta-harness. A relay socket opens its messages in order, before a close.
17
+
18
+ ### Patch Changes
19
+
20
+ - 094280e: 新增内置扩展 @celljs/ta-bots:机器人。把微信 ClawBot(扫码)或企业微信智能机器人(Bot ID + Secret)连到分身、智能体或任意对话上,在手机上发消息就让 Ta 干活,回复发回去;图片、语音(用平台转写的文字)、文件、视频都能收,Ta 用工具 `bot_send_file` 把文件和图片发回。在任何对话输入框的 + → 机器人里连接、移动和断开:一个机器人只连在一个地方,连到别处即从原处移走;一处可以连多个;一个微信号对应一个机器人,重复扫码会更新它。连着的机器人在输入框上方显示为胶囊(微信绿、企业微信蓝,带在线状态),机器人带来的消息在用户一侧标明来自哪个机器人,回复发回后有"已发回"一行;"发现"里有机器人页。凭据只存在 agent 目录的 `bots/secrets.json`(0600)。
21
+
22
+ 核心的通用改动:Web 扩展新增 `registerComposerAddon`(给所有对话的输入框加 + 菜单分组和输入框上方的内容,分身也有)和 `ui.QrCode`,+ 菜单的二级列表可带图标与分组,新增图标 Building2、CornerUpLeft、Film、Image、MessageCircle、Mic、Paperclip、Unplug;分身对话显示扩展的自定义消息;协议新增 `TA_DOUBLE_FILE`。ta-host 把会话打开时的角色记进会话文件,只按会话文件重新打开时沿用角色和分组(智能体的对话被关闭后再打开仍是它自己的角色)。手机上菜单或焦点靠近边缘时整页不再横向偏移。
23
+ - 40b8e1d: Ta 可以托管在云端:Agent 和它的工具在同一个容器里运行,任何能跑容器的平台都能用(`apps/ta/Dockerfile`:PORT、单个持久卷 `/home/ta`、非 root 用户 + sudo、tini、健康检查)。`ta serve` 监听网络地址时打印带 token 的登录链接(`TA_PUBLIC_URL`)。
24
+
25
+ 用账号登录 Ta:GitHub、Google、微信(开放平台网站应用)和任意 OpenID Connect,在环境变量里配置;只有 `TA_ALLOWED_USERS` 里或在 设置 → 访问 里允许的账号能进,其他人登录后等待主人允许;主人可以用自己的账号登录一次来绑定。新服务 `TaAccessServer`,登录跳转在 `/sign-in`,移除账号或退出浏览器立即断开它的连接。
26
+
27
+ `ta pair` 在终端里打印配对二维码(`QrCode` 移到 `@celljs/ta-relay`)。Ta 服务不在这台电脑上时,模型账号的 OAuth 登录提示把浏览器最后打开的 localhost 地址粘贴回来。
28
+ - 6be7ac4: 新命令 `ta gateway`(新包 `@celljs/ta-gateway`):多人共用一个入口和一次登录,每个账号是一个租户,有自己的 Ta,运行在只属于他的沙箱里,会话、模型账号、文件、终端互不可见。沙箱由 `sandboxes.json` 里的提供方创建,照 pi 接入模型的方式:内置 `docker`(每人一个容器和卷,限制内存、CPU、进程数,容器之间网络不通)、`command`(任意平台的命令)、`ta`(已在运行的 Ta 服务)、`local`(测试用),以及运营方自己的 `module`。用户也可以在 设置 → 运行环境 里把自己的 Ta 换到自己的 Ta 服务上。登录方式与 ta serve 相同,另有 `ta gateway link <账号>` 的一次性登录链接;管理员(`TA_GATEWAY_ADMINS`)在 设置 → 访问 里允许账号、在 设置 → 运行环境 里看到所有租户。环境没启动时页面显示原因,可以重试或换环境(新错误码 `CELL_TA_ENVIRONMENT_FAILED`)。
29
+
30
+ ta serve 的账号登录流程抽成不依赖 Cell 的 `SignInFlow` / `SignInPages`,与网关共用;不在本机时登录页的提示改为打开登录链接。
31
+ - 9936e3f: Ta 手机应用有了自己的启动画面:夜空里,小恐龙站在一颗小星球上,前方划过一颗流星。从系统启动屏到页面是同一张图,页面准备好(列表都已到达)才淡出,最多等 3 秒,打开时不再看到骨架或只渲染了一半的界面。浏览器和桌面版不受影响。
32
+ - bea88b5: Ta 的 npm 包只带构建产物,不再带源码:不含 `src/`、`web-src/`、脚本、测试夹具、编译后的测试文件和 source map;@celljs/ta 内置的 pi 包同样去掉这些。@celljs/ta-web 的 PWA 文件从 `src/browser/public/` 移到包根目录的 `public/`,构建时照旧放到站点根路径。
33
+
3
34
  ## 4.8.0
4
35
 
5
36
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta",
3
- "version": "4.8.0",
3
+ "version": "4.9.1",
4
4
  "type": "module",
5
5
  "piConfig": {
6
6
  "name": "ta",
@@ -32,7 +32,7 @@ Pick one in the model list of the + on the left of the input box, an agent's mod
32
32
  }
33
33
  ```
34
34
 
35
- Fields: `name`, `command`, `args`, `env`, `login` (the sign-in command to tell the user), `permissions`, `options` (the agent's settings of a new session, by the id or category of the option, such as `{ "mode": "default" }`), `clientMeta` (`_meta` of the client's capabilities in `initialize`). `env` and `options` of a built-in agent merge with those of the settings. `false` turns a built-in agent off. A built-in agent named in the settings is offered even when its program is not found, so it can run another one: the adapters read `CLAUDE_CODE_EXECUTABLE` (Claude Code's executable) and `CODEX_PATH` (the `codex` command), for example for wrappers built on the same code:
35
+ Fields: `name`, `command`, `args`, `env`, `login` (the sign-in command to tell the user), `permissions`, `options` (the agent's settings of a new session, by the id or category of the option, such as `{ "mode": "default" }`), `clientMeta` (`_meta` of the client's capabilities in `initialize`), `processPerSession` (a process for each pi session, for an agent whose process serves one session). `env` and `options` of a built-in agent merge with those of the settings. `false` turns a built-in agent off. A built-in agent named in the settings is offered even when its program is not found, so it can run another one: the adapters read `CLAUDE_CODE_EXECUTABLE` (Claude Code's executable) and `CODEX_PATH` (the `codex` command), for example for wrappers built on the same code:
36
36
 
37
37
  ```json
38
38
  {
@@ -48,7 +48,7 @@ Fields: `name`, `command`, `args`, `env`, `login` (the sign-in command to tell t
48
48
  - **A turn**: each time pi asks the model, only what the user said since the agent last answered goes to the agent (`session/prompt`), since the agent keeps its own history. The agent's text and thinking stream as pi's message.
49
49
  - **Tool calls**: the agent uses its own tools; each call is recorded in pi as a call of `agent_tool` (its arguments are a title, a kind and a target, such as `{ kind: "execute", target: "npm test" }`), so Ta shows it as a line like its own tools, with the agent's output as the result. As soon as a call of kind edit, delete or move names the file it changes (`locations`, or `file_path` and the like in its arguments), or brings an ACP diff, the extension emits `ta:file-write` on `pi.events` (`{ path, before? }`, `TA_FILE_WRITE_EVENT` of ta-protocol), so that ta-changes keeps the file as it was before the agent writes it. When the agent starts a call, the assistant message ends (`toolUse`); pi "running" `agent_tool` only waits for the agent to finish the call, and pi's next request goes on with the same turn. some agents (CodeBuddy Code) stream the arguments first, so a call shows once the agent says they are complete (`toolArgumentsComplete` in `_meta`, or announcing the call again as `pending` with them); without such a sign, 1.5 seconds without news of the call, or the agent saying something else, will do; calls started together go in one message and show in parallel. `agent_tool` is active only while the model is an agent.
50
50
  - **Sessions**: a pi session uses one session of each agent; its id is kept in the pi session (the custom entry `ta-agents.session`), and reopening the conversation loads it again (`session/load`). A fork, or going back to an earlier message in pi (`/tree`), starts a new session of the agent on the next turn and hands it the conversation so far as text; so does switching to an agent in the middle of a conversation (30,000 characters at most).
51
- - **Processes**: the sessions of one agent in one directory share a process (one of CodeBuddy Code takes about 650 MB); by directory, because CodeBuddy Code runs commands where it was started rather than in the directory of the session. A process stops after 10 minutes without a turn, and starts again, loading its sessions, when it is needed. It keeps pi's process alive only while a request waits for its answer, so `pi -p` exits once it answered.
51
+ - **Processes**: the sessions of one agent in one directory share a process; by directory, because CodeBuddy Code runs commands where it was started rather than in the directory of the session. CodeBuddy Code itself runs a process for each conversation (about 650 MB), stopped when the conversation closes: a process of it answers only the session it opened or loaded last, and a prompt of another one waits forever, or ends at once with nothing while that one works. A process stops after 10 minutes without a turn, and starts again, loading its sessions, when it is needed. It keeps pi's process alive only while a request waits for its answer, so `pi -p` exits once it answered.
52
52
  - **When the agent goes on by itself**: after a background task, an agent may start a turn on its own (CodeBuddy Code starts it with `unsolicitedTurn` in a `session_info_update` and ends it with `session_end`; other agents give no end, and the turn ends after 3 quiet seconds). The extension sends pi a message that is not shown, which starts a pi turn that shows it.
53
53
  - **When the user talks while the agent works**: ACP has no way to steer a turn, so it is kept and sent as the next turn as soon as this one ends. Stopping sends `session/cancel`; the next turn waits for the agent to end the cancelled one (5 seconds at most).
54
54
  - **Permissions**: as in pi, nothing is held back: a permission request of the agent is answered "allow once". With `permissions: "ask"` the user picks in the UI. The agent's own permission mode (CodeBuddy Code's settings, for example) still applies.
@@ -32,7 +32,7 @@ CodeBuddy Code 和在它自己的终端里一样:用 PTC(代码模式,工
32
32
  }
33
33
  ```
34
34
 
35
- 字段:`name`、`command`、`args`、`env`、`login`(提示用户执行的登录命令)、`permissions`、`options`(新会话的 Agent 设置,按选项的 id 或类别,如 `{ "mode": "default" }`)、`clientMeta`(`initialize` 里客户端能力的 `_meta`)。内置 Agent 的 `env`、`options` 与设置里的合并。`false` 关掉一个内置 Agent。设置里写了某个内置 Agent,即使没找到它的程序也会提供,适合改用别的程序:适配器认环境变量 `CLAUDE_CODE_EXECUTABLE`(Claude Code 的可执行文件)和 `CODEX_PATH`(`codex` 命令),比如用同源的包装版:
35
+ 字段:`name`、`command`、`args`、`env`、`login`(提示用户执行的登录命令)、`permissions`、`options`(新会话的 Agent 设置,按选项的 id 或类别,如 `{ "mode": "default" }`)、`clientMeta`(`initialize` 里客户端能力的 `_meta`)、`processPerSession`(每个 pi 会话单独一个进程,用于一个进程只服务一个会话的 Agent)。内置 Agent 的 `env`、`options` 与设置里的合并。`false` 关掉一个内置 Agent。设置里写了某个内置 Agent,即使没找到它的程序也会提供,适合改用别的程序:适配器认环境变量 `CLAUDE_CODE_EXECUTABLE`(Claude Code 的可执行文件)和 `CODEX_PATH`(`codex` 命令),比如用同源的包装版:
36
36
 
37
37
  ```json
38
38
  {
@@ -48,7 +48,7 @@ CodeBuddy Code 和在它自己的终端里一样:用 PTC(代码模式,工
48
48
  - **一轮怎么走**:pi 每次请求模型时,只把用户自上次回答以来说的话发给 Agent(`session/prompt`),因为 Agent 自己保存历史。Agent 的文字和思考按流式转成 pi 的消息。
49
49
  - **工具调用**:Agent 用自己的工具,每次调用在 pi 里记成一次 `agent_tool` 工具调用(参数是标题、种类和对象,例如 `{ kind: "execute", target: "npm test" }`),所以 Ta 显示成和自己的工具一样的一行,结果就是 Agent 工具的输出。种类是 edit、delete、move 的调用一说出要改的文件(`locations` 或参数里的 `file_path` 等),或者带来 ACP diff,扩展就经 `pi.events` 发 `ta:file-write`(`{ path, before? }`,见 ta-protocol 的 `TA_FILE_WRITE_EVENT`),让 ta-changes 在 Agent 动手前留下文件原样。具体做法:Agent 开始一次调用时,结束当前这条 assistant 消息(`toolUse`);pi “执行”`agent_tool` 时只是等 Agent 把这次调用做完;pi 下一次请求时接着流同一轮。有的 Agent(CodeBuddy Code)先流式发参数,等它说参数齐了(`_meta` 的 `toolArgumentsComplete`,或带着参数以 `pending` 再报一次这次调用)才显示;没有这类信号时,1.5 秒没有新消息或 Agent 开始说别的,也算齐了;同时开始的几次调用放进同一条消息,并行显示。`agent_tool` 只在当前模型是 Agent 时启用。
50
50
  - **会话**:一个 pi 会话对一个 Agent 用一个 Agent 会话,它的 id 记在 pi 会话里(自定义条目 `ta-agents.session`),重新打开对话时用 `session/load` 接上。分叉,或在 pi 里回退到之前的消息(`/tree`),都会让下一轮新开一个 Agent 会话,并把到此为止的对话作为文字交给它;中途换到 Agent 时也一样(最多 3 万字)。
51
- - **进程**:同一个 Agent 在同一个目录下的所有会话共用一个进程(CodeBuddy Code 一个进程约 650 MB);按目录分开,是因为 CodeBuddy Code 在启动目录里执行命令,不看会话的目录。10 分钟没有任何一轮就停掉进程,下次用时再启动并加载会话。只在有请求等待回复时保持 pi 进程不退出,所以 `pi -p` 回答完就退出。
51
+ - **进程**:同一个 Agent 在同一个目录下的所有会话共用一个进程;按目录分开,是因为 CodeBuddy Code 在启动目录里执行命令,不看会话的目录。CodeBuddy Code 例外,每个对话单独一个进程(约 650 MB),对话关闭时停掉:它的一个进程只回答最后新建或加载的会话,其他会话发消息会一直等不到回复,或在那个会话忙时立刻空着结束。10 分钟没有任何一轮就停掉进程,下次用时再启动并加载会话。只在有请求等待回复时保持 pi 进程不退出,所以 `pi -p` 回答完就退出。
52
52
  - **Agent 自己继续时**:后台任务结束后,Agent 可能自己开始一轮(CodeBuddy Code 用 `session_info_update` 的 `unsolicitedTurn` 开始、`session_end` 收尾;其他 Agent 没有明确的结束标志,就在 3 秒没有消息后收尾)。扩展发一条不显示的消息让 pi 开一轮,把这一轮显示出来。
53
53
  - **用户在 Agent 干活时说话**:ACP 没有“插话”,所以先存下,这一轮结束后马上作为下一轮发出。停止(中止)会发 `session/cancel`,下一轮会等 Agent 把被取消的这轮收尾(最多 5 秒)。
54
54
  - **权限**:和 pi 一样默认不拦:Agent 请求权限时选“允许一次”。设置 `permissions: "ask"` 后,改为在界面上让用户选。Agent 自己的权限模式(例如 CodeBuddy Code 的配置)照常生效。
@@ -422,6 +422,10 @@ class AgentSession {
422
422
  case "tool_call":
423
423
  case "tool_call_update":
424
424
  case "plan":
425
+ if (!this.turn && this.abandoned && !this.abandoned.ended) {
426
+ this.abandoned.update(update);
427
+ return;
428
+ }
425
429
  if (!this.turn) {
426
430
  this.startUnsolicited(true);
427
431
  }
@@ -653,7 +657,11 @@ class JsonRpcConnection {
653
657
  }
654
658
  }
655
659
  } else if (message.id === undefined || message.id === null) {
656
- this.onNotification(message.method, message.params);
660
+ try {
661
+ this.onNotification(message.method, message.params);
662
+ } catch (error) {
663
+ console.error(error);
664
+ }
657
665
  } else {
658
666
  this.answer(message.id, message.method, message.params);
659
667
  }
@@ -901,11 +909,9 @@ var BINDING_ENTRY = "ta-agents.session";
901
909
  var POOL = Symbol.for("ta-agents.pool");
902
910
  var AgentPool;
903
911
  ((AgentPool) => {
904
- function of(config, cwd) {
905
- const global = globalThis;
906
- const pool = global[POOL] ?? create();
907
- global[POOL] = pool;
908
- const key = JSON.stringify([config.command, config.args, config.env ?? {}, config.clientMeta ?? {}, cwd]);
912
+ function of(config, cwd, owner) {
913
+ const pool = all();
914
+ const key = keyOf(config, cwd, owner);
909
915
  let agent = pool.get(key);
910
916
  if (!agent) {
911
917
  agent = new AcpAgent(config.name, { command: config.command, args: config.args, env: config.env, clientMeta: config.clientMeta, cwd });
@@ -914,6 +920,25 @@ var AgentPool;
914
920
  return agent;
915
921
  }
916
922
  AgentPool.of = of;
923
+ function release(config, cwd, owner) {
924
+ if (!config.processPerSession) {
925
+ return;
926
+ }
927
+ const pool = all();
928
+ const key = keyOf(config, cwd, owner);
929
+ pool.get(key)?.stop();
930
+ pool.delete(key);
931
+ }
932
+ AgentPool.release = release;
933
+ function keyOf(config, cwd, owner) {
934
+ return JSON.stringify([config.command, config.args, config.env ?? {}, config.clientMeta ?? {}, cwd, config.processPerSession ? owner ?? "" : ""]);
935
+ }
936
+ function all() {
937
+ const global = globalThis;
938
+ const pool = global[POOL] ?? create();
939
+ global[POOL] = pool;
940
+ return pool;
941
+ }
917
942
  function create() {
918
943
  const pool = new Map;
919
944
  process.once("exit", () => {
@@ -929,13 +954,17 @@ class AgentBindings {
929
954
  save;
930
955
  prepare;
931
956
  agentOf;
957
+ release;
932
958
  cwd = process.cwd();
959
+ owner;
933
960
  ids = new Map;
934
961
  opened = new Map;
935
- constructor(save, prepare, agentOf = AgentPool.of) {
962
+ used = new Map;
963
+ constructor(save, prepare, agentOf = AgentPool.of, release = AgentPool.release) {
936
964
  this.save = save;
937
965
  this.prepare = prepare;
938
966
  this.agentOf = agentOf;
967
+ this.release = release;
939
968
  }
940
969
  restore(entries, fork) {
941
970
  this.ids.clear();
@@ -958,7 +987,8 @@ class AgentBindings {
958
987
  return this.ids.get(agent);
959
988
  }
960
989
  open(config, signal) {
961
- const agent = this.agentOf(config, this.cwd);
990
+ this.used.set(JSON.stringify([config.id, this.cwd, this.owner]), { config, cwd: this.cwd, owner: this.owner });
991
+ const agent = this.agentOf(config, this.cwd, this.owner);
962
992
  let opened = this.opened.get(config.id);
963
993
  if (opened) {
964
994
  opened = opened.then((value) => agent.running && agent.sessions.get(value.session.id) === value.session ? { ...value, fresh: false } : this.connect(config, agent, signal));
@@ -971,6 +1001,10 @@ class AgentBindings {
971
1001
  }
972
1002
  close() {
973
1003
  this.opened.clear();
1004
+ for (const { config, cwd, owner } of this.used.values()) {
1005
+ this.release(config, cwd, owner);
1006
+ }
1007
+ this.used.clear();
974
1008
  }
975
1009
  async connect(config, agent, signal) {
976
1010
  if (AgentBindings.isRemote(this.cwd)) {
@@ -1020,7 +1054,8 @@ var PRESETS = [
1020
1054
  login: "cbc",
1021
1055
  env: { CODEBUDDY_CODE_MODE_ENABLED: "1" },
1022
1056
  clientMeta: { "codebuddy.ai": { mainAgentSupport: true, toolModeSupport: true } },
1023
- options: { mode: "fullAccess" }
1057
+ options: { mode: "fullAccess" },
1058
+ processPerSession: true
1024
1059
  },
1025
1060
  {
1026
1061
  id: "claude-code",
@@ -1429,7 +1464,13 @@ class AgentStreamer {
1429
1464
  stream(config, model, context, options) {
1430
1465
  const stream = new MessageStream;
1431
1466
  const builder = new MessageBuilder(stream, model);
1432
- this.run(config, model, context, options, builder).catch((error) => builder.error("error", AgentStreamer.describe(config, error)));
1467
+ this.run(config, model, context, options, builder).catch((error) => {
1468
+ if (options?.signal?.aborted) {
1469
+ builder.error("aborted", "Aborted");
1470
+ } else {
1471
+ builder.error("error", AgentStreamer.describe(config, error));
1472
+ }
1473
+ });
1433
1474
  return stream;
1434
1475
  }
1435
1476
  async run(config, model, context, options, builder) {
@@ -1656,22 +1697,25 @@ function activate(pi, options = {}) {
1656
1697
  return option ? { outcome: "selected", optionId: option.optionId } : { outcome: "cancelled" };
1657
1698
  },
1658
1699
  title: (title) => {
1659
- if (!pi.getSessionName()) {
1700
+ if (context && !pi.getSessionName()) {
1660
1701
  pi.setSessionName(title);
1661
1702
  }
1662
1703
  },
1663
1704
  activity: () => {
1664
- if (context?.model?.provider === config.id) {
1705
+ if (context && context.model?.provider === config.id) {
1665
1706
  pi.sendMessage({ customType: ACTIVITY_ENTRY, content: ACTIVITY_TEXT, display: false }, { triggerTurn: true });
1666
1707
  }
1667
1708
  },
1668
1709
  write: (path, before) => {
1710
+ if (!context) {
1711
+ return;
1712
+ }
1669
1713
  const file = { path: resolve(context?.cwd ?? bindings.cwd, path), ...before !== undefined ? { before } : {} };
1670
1714
  pi.events.emit(TA_FILE_WRITE_EVENT, file);
1671
1715
  }
1672
1716
  };
1673
1717
  learn(config, session);
1674
- }, options.agentOf);
1718
+ }, options.agentOf, options.release);
1675
1719
  const streamer = new AgentStreamer({
1676
1720
  open: (config, signal) => bindings.open(config, signal),
1677
1721
  calls,
@@ -1696,6 +1740,10 @@ function activate(pi, options = {}) {
1696
1740
  }
1697
1741
  sessionId = ctx.sessionManager.getSessionId();
1698
1742
  Sessions.set(sessionId, self);
1743
+ if (bindings.owner !== sessionId) {
1744
+ bindings.close();
1745
+ bindings.owner = sessionId;
1746
+ }
1699
1747
  bindings.cwd = ctx.cwd;
1700
1748
  bindings.restore(ctx.sessionManager.getBranch(), event.reason === "fork");
1701
1749
  const settings = pi.getSettings().agents;
@@ -10,10 +10,13 @@ export interface Binding {
10
10
  }
11
11
  /**
12
12
  * The agents' processes of this process, shared by its pi sessions, which load this package each: one
13
- * per agent and directory, since some agents run commands where they were started.
13
+ * per agent and directory, since some agents run commands where they were started, and one per pi
14
+ * session too for an agent that serves one session per process (`processPerSession`).
14
15
  */
15
16
  export declare namespace AgentPool {
16
- function of(config: AgentConfig, cwd: string): AcpAgent;
17
+ function of(config: AgentConfig, cwd: string, owner?: string): AcpAgent;
18
+ /** Stops the process of `owner`'s own, if it has one: its pi session closed. */
19
+ function release(config: AgentConfig, cwd: string, owner?: string): void;
17
20
  }
18
21
  /**
19
22
  * The sessions of agents one pi session talks to, one per agent. Which session that is stays in the
@@ -23,11 +26,20 @@ export declare namespace AgentPool {
23
26
  export declare class AgentBindings {
24
27
  protected readonly save: (binding: Binding) => void;
25
28
  protected readonly prepare: (config: AgentConfig, session: AgentSession) => void;
26
- protected readonly agentOf: (config: AgentConfig, cwd: string) => AcpAgent;
29
+ protected readonly agentOf: (config: AgentConfig, cwd: string, owner?: string) => AcpAgent;
30
+ protected readonly release: (config: AgentConfig, cwd: string, owner?: string) => void;
27
31
  cwd: string;
32
+ /** The pi session: an agent that serves one session per process runs a process for it alone. */
33
+ owner?: string;
28
34
  protected readonly ids: Map<string, string>;
29
35
  protected readonly opened: Map<string, Promise<OpenedSession>>;
30
- constructor(save: (binding: Binding) => void, prepare: (config: AgentConfig, session: AgentSession) => void, agentOf?: (config: AgentConfig, cwd: string) => AcpAgent);
36
+ /** The agents opened, with where, to let their own processes go on close. */
37
+ protected readonly used: Map<string, {
38
+ config: AgentConfig;
39
+ cwd: string;
40
+ owner?: string;
41
+ }>;
42
+ constructor(save: (binding: Binding) => void, prepare: (config: AgentConfig, session: AgentSession) => void, agentOf?: (config: AgentConfig, cwd: string, owner?: string) => AcpAgent, release?: (config: AgentConfig, cwd: string, owner?: string) => void);
31
43
  restore(entries: readonly unknown[], fork: boolean): void;
32
44
  /**
33
45
  * The conversation went back (pi's tree): the agents' sessions remember what came after, so the next
@@ -36,6 +48,7 @@ export declare class AgentBindings {
36
48
  forget(): void;
37
49
  sessionId(agent: string): string | undefined;
38
50
  open(config: AgentConfig, signal?: AbortSignal): Promise<OpenedSession>;
51
+ /** The pi session closed: the processes it had of its own stop; shared ones stay for the others. */
39
52
  close(): void;
40
53
  protected connect(config: AgentConfig, agent: AcpAgent, signal?: AbortSignal): Promise<OpenedSession>;
41
54
  static dirs(cwd: string): string[];
@@ -11,16 +11,14 @@ exports.BINDING_ENTRY = 'ta-agents.session';
11
11
  const POOL = Symbol.for('ta-agents.pool');
12
12
  /**
13
13
  * The agents' processes of this process, shared by its pi sessions, which load this package each: one
14
- * per agent and directory, since some agents run commands where they were started.
14
+ * per agent and directory, since some agents run commands where they were started, and one per pi
15
+ * session too for an agent that serves one session per process (`processPerSession`).
15
16
  */
16
17
  var AgentPool;
17
18
  (function (AgentPool) {
18
- function of(config, cwd) {
19
- var _a, _b, _c;
20
- const global = globalThis;
21
- const pool = (_a = global[POOL]) !== null && _a !== void 0 ? _a : create();
22
- global[POOL] = pool;
23
- const key = JSON.stringify([config.command, config.args, (_b = config.env) !== null && _b !== void 0 ? _b : {}, (_c = config.clientMeta) !== null && _c !== void 0 ? _c : {}, cwd]);
19
+ function of(config, cwd, owner) {
20
+ const pool = all();
21
+ const key = keyOf(config, cwd, owner);
24
22
  let agent = pool.get(key);
25
23
  if (!agent) {
26
24
  agent = new acp_agent_1.AcpAgent(config.name, { command: config.command, args: config.args, env: config.env, clientMeta: config.clientMeta, cwd });
@@ -29,6 +27,29 @@ var AgentPool;
29
27
  return agent;
30
28
  }
31
29
  AgentPool.of = of;
30
+ /** Stops the process of `owner`'s own, if it has one: its pi session closed. */
31
+ function release(config, cwd, owner) {
32
+ var _a;
33
+ if (!config.processPerSession) {
34
+ return;
35
+ }
36
+ const pool = all();
37
+ const key = keyOf(config, cwd, owner);
38
+ (_a = pool.get(key)) === null || _a === void 0 ? void 0 : _a.stop();
39
+ pool.delete(key);
40
+ }
41
+ AgentPool.release = release;
42
+ function keyOf(config, cwd, owner) {
43
+ var _a, _b;
44
+ return JSON.stringify([config.command, config.args, (_a = config.env) !== null && _a !== void 0 ? _a : {}, (_b = config.clientMeta) !== null && _b !== void 0 ? _b : {}, cwd, config.processPerSession ? (owner !== null && owner !== void 0 ? owner : '') : '']);
45
+ }
46
+ function all() {
47
+ var _a;
48
+ const global = globalThis;
49
+ const pool = (_a = global[POOL]) !== null && _a !== void 0 ? _a : create();
50
+ global[POOL] = pool;
51
+ return pool;
52
+ }
32
53
  function create() {
33
54
  const pool = new Map();
34
55
  process.once('exit', () => {
@@ -45,13 +66,16 @@ var AgentPool;
45
66
  * session again; a fork, or going back in the conversation, starts a new one.
46
67
  */
47
68
  class AgentBindings {
48
- constructor(save, prepare, agentOf = AgentPool.of) {
69
+ constructor(save, prepare, agentOf = AgentPool.of, release = AgentPool.release) {
49
70
  this.save = save;
50
71
  this.prepare = prepare;
51
72
  this.agentOf = agentOf;
73
+ this.release = release;
52
74
  this.cwd = process.cwd();
53
75
  this.ids = new Map();
54
76
  this.opened = new Map();
77
+ /** The agents opened, with where, to let their own processes go on close. */
78
+ this.used = new Map();
55
79
  }
56
80
  restore(entries, fork) {
57
81
  this.ids.clear();
@@ -78,7 +102,8 @@ class AgentBindings {
78
102
  return this.ids.get(agent);
79
103
  }
80
104
  open(config, signal) {
81
- const agent = this.agentOf(config, this.cwd);
105
+ this.used.set(JSON.stringify([config.id, this.cwd, this.owner]), { config, cwd: this.cwd, owner: this.owner });
106
+ const agent = this.agentOf(config, this.cwd, this.owner);
82
107
  let opened = this.opened.get(config.id);
83
108
  if (opened) {
84
109
  // The program may have stopped since, idle, and its sessions with it.
@@ -92,8 +117,13 @@ class AgentBindings {
92
117
  this.opened.set(config.id, opened);
93
118
  return opened;
94
119
  }
120
+ /** The pi session closed: the processes it had of its own stop; shared ones stay for the others. */
95
121
  close() {
96
122
  this.opened.clear();
123
+ for (const { config, cwd, owner } of this.used.values()) {
124
+ this.release(config, cwd, owner);
125
+ }
126
+ this.used.clear();
97
127
  }
98
128
  async connect(config, agent, signal) {
99
129
  var _a, _b, _c;
@@ -13,6 +13,8 @@ export interface AgentConfig {
13
13
  clientMeta?: Record<string, unknown>;
14
14
  /** Settings of a new session, by the id or category of the agent's option (`mode`, `model`...). */
15
15
  options?: Record<string, string>;
16
+ /** A process of its own for each pi session, for an agent that serves one session per process. */
17
+ processPerSession?: boolean;
16
18
  }
17
19
  /** An agent of `agents` in pi's settings.json; `false` turns a built-in one off. */
18
20
  export type AgentSetting = false | Partial<AgentConfig>;
@@ -22,6 +22,9 @@ const PRESETS = [
22
22
  env: { CODEBUDDY_CODE_MODE_ENABLED: '1' },
23
23
  clientMeta: { 'codebuddy.ai': { mainAgentSupport: true, toolModeSupport: true } },
24
24
  options: { mode: 'fullAccess' },
25
+ // It answers only the session it opened or loaded last: a prompt of another one waits forever, or
26
+ // ends at once with nothing while that one works.
27
+ processPerSession: true,
25
28
  },
26
29
  {
27
30
  id: 'claude-code',
@@ -82,6 +82,11 @@ class AgentSession {
82
82
  case 'tool_call':
83
83
  case 'tool_call_update':
84
84
  case 'plan':
85
+ if (!this.turn && this.abandoned && !this.abandoned.ended) {
86
+ // The rest of a turn the user stopped (its calls cancelled), not a turn of the agent's own.
87
+ this.abandoned.update(update);
88
+ return;
89
+ }
85
90
  if (!this.turn) {
86
91
  this.startUnsolicited(true);
87
92
  }
@@ -29,7 +29,16 @@ class AgentStreamer {
29
29
  stream(config, model, context, options) {
30
30
  const stream = new message_stream_1.MessageStream();
31
31
  const builder = new message_stream_1.MessageBuilder(stream, model);
32
- this.run(config, model, context, options, builder).catch(error => builder.error('error', AgentStreamer.describe(config, error)));
32
+ // Stopped by the user while the agent was being reached: stopped, not failed.
33
+ this.run(config, model, context, options, builder).catch(error => {
34
+ var _a;
35
+ if ((_a = options === null || options === void 0 ? void 0 : options.signal) === null || _a === void 0 ? void 0 : _a.aborted) {
36
+ builder.error('aborted', 'Aborted');
37
+ }
38
+ else {
39
+ builder.error('error', AgentStreamer.describe(config, error));
40
+ }
41
+ });
33
42
  return stream;
34
43
  }
35
44
  async run(config, model, context, options, builder) {
@@ -5,7 +5,8 @@ import type { ExtensionAPI } from './pi-types';
5
5
  export interface AgentsOptions {
6
6
  find?: (program: string) => string | undefined;
7
7
  cache?: ModelCache;
8
- agentOf?: (config: AgentConfig, cwd: string) => AcpAgent;
8
+ agentOf?: (config: AgentConfig, cwd: string, owner?: string) => AcpAgent;
9
+ release?: (config: AgentConfig, cwd: string, owner?: string) => void;
9
10
  /** `agents` of the user's settings.json, read when the extension loads, before pi's settings are there. */
10
11
  userAgents?: () => Record<string, AgentSetting> | undefined;
11
12
  }
@@ -144,26 +144,30 @@ function activate(pi, options = {}) {
144
144
  const option = request.options.find(candidate => candidate.name === chosen);
145
145
  return option ? { outcome: 'selected', optionId: option.optionId } : { outcome: 'cancelled' };
146
146
  },
147
+ // The agent may still speak after the pi session closed, when pi's API is no longer usable.
147
148
  title: title => {
148
- if (!pi.getSessionName()) {
149
+ if (context && !pi.getSessionName()) {
149
150
  pi.setSessionName(title);
150
151
  }
151
152
  },
152
153
  activity: () => {
153
154
  var _a;
154
- if (((_a = context === null || context === void 0 ? void 0 : context.model) === null || _a === void 0 ? void 0 : _a.provider) === config.id) {
155
+ if (context && ((_a = context.model) === null || _a === void 0 ? void 0 : _a.provider) === config.id) {
155
156
  pi.sendMessage({ customType: ACTIVITY_ENTRY, content: agent_prompt_1.ACTIVITY_TEXT, display: false }, { triggerTurn: true });
156
157
  }
157
158
  },
158
159
  // Other extensions (the list of changed files) hear of the files the agent writes with its own tools.
159
160
  write: (path, before) => {
160
161
  var _a;
162
+ if (!context) {
163
+ return;
164
+ }
161
165
  const file = { path: (0, node_path_1.resolve)((_a = context === null || context === void 0 ? void 0 : context.cwd) !== null && _a !== void 0 ? _a : bindings.cwd, path), ...(before !== undefined ? { before } : {}) };
162
166
  pi.events.emit(TA_FILE_WRITE_EVENT, file);
163
167
  },
164
168
  };
165
169
  learn(config, session);
166
- }, options.agentOf);
170
+ }, options.agentOf, options.release);
167
171
  const streamer = new agent_streamer_1.AgentStreamer({
168
172
  open: (config, signal) => bindings.open(config, signal),
169
173
  calls,
@@ -190,6 +194,10 @@ function activate(pi, options = {}) {
190
194
  }
191
195
  sessionId = ctx.sessionManager.getSessionId();
192
196
  Sessions.set(sessionId, self);
197
+ if (bindings.owner !== sessionId) {
198
+ bindings.close();
199
+ bindings.owner = sessionId;
200
+ }
193
201
  bindings.cwd = ctx.cwd;
194
202
  bindings.restore(ctx.sessionManager.getBranch(), event.reason === 'fork');
195
203
  const settings = pi.getSettings().agents;
@@ -124,7 +124,13 @@ class JsonRpcConnection {
124
124
  }
125
125
  }
126
126
  else if (message.id === undefined || message.id === null) {
127
- this.onNotification(message.method, message.params);
127
+ try {
128
+ this.onNotification(message.method, message.params);
129
+ }
130
+ catch (error) {
131
+ // One update that fails to apply leaves the rest of the stream, and the process of pi, as they are.
132
+ console.error(error);
133
+ }
128
134
  }
129
135
  else {
130
136
  void this.answer(message.id, message.method, message.params);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-agents",
3
- "version": "4.8.0",
3
+ "version": "4.9.1",
4
4
  "description": "A pi package for Ta: other coding agents (CodeBuddy Code, Claude Code, Codex and any agent that speaks ACP) as models to pick, each running a conversation on its own harness",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -17,8 +17,7 @@
17
17
  "files": [
18
18
  "esm",
19
19
  "extension",
20
- "fixtures",
21
- "src"
20
+ "!**/*.map"
22
21
  ],
23
22
  "scripts": {
24
23
  "build": "tsc -b && bun build src/extension.ts --format esm --target node --outfile extension/index.mjs",
@@ -34,6 +33,15 @@
34
33
  "access": "public"
35
34
  },
36
35
  "pi": {
36
+ "title": {
37
+ "en": "Other coding agents",
38
+ "zh-CN": "其他编程 Agent"
39
+ },
40
+ "summary": {
41
+ "en": "Pick Claude Code, Codex, CodeBuddy Code or another ACP agent as the model of a conversation.",
42
+ "zh-CN": "把 Claude Code、Codex、CodeBuddy Code 等 Agent 当作模型,在对话里选用。"
43
+ },
44
+ "icon": "SquareTerminal",
37
45
  "extensions": [
38
46
  "./extension/index.mjs"
39
47
  ]
@@ -0,0 +1,46 @@
1
+ # Cell - Ta Bots
2
+
3
+ A pi package that comes with Ta (on by default; turn it off in Settings → Extensions of the web client): bots. Connect a ClawBot of WeChat or an intelligent robot of WeCom to the double, an agent or a conversation, and have Ta work by messaging it from your phone; the answers go back to WeChat. Pictures, voice and files go both ways.
4
+
5
+ ## Using it
6
+
7
+ - **Connecting**: in the message box of any conversation (the double, an agent, a plain conversation), click + on its left and pick Bots:
8
+ - Your bots are listed under Your bots, ticked when they are connected here. Clicking one that is not connects it here (from where it was connected, if anywhere: the page says "X moved here from Y"); clicking a ticked one disconnects it.
9
+ - Under Connect a bot, WeChat… shows a QR code: scan it with WeChat on your phone and confirm there (type the number the phone shows when WeChat asks), and the bot is connected, here (when Ta is open on the phone itself, the code is on the screen that would scan it: Save the code puts it in the photos or shares it to WeChat, or hold it and save the image, then Open WeChat and pick it under Album at the top right of Scan). WeCom… shows a QR code too: scan it with WeCom on your phone and create an intelligent robot in one tap as it asks (it needs the right to create robots), and the robot is connected here (on the phone, save the code and pick it from the album of Scan in WeCom). For a robot made in the admin console already, Enter a Bot ID and Secret instead (WeCom admin console → intelligent robot → API mode → long connection); Ta connects it once to check them before keeping it.
10
+ - **Telling them apart**: above the message box, a chip for each bot connected here (green for WeChat, blue for WeCom, its name and whether it is online, × disconnects). A message a bot brings shows on the side of the user, under a line that names the bot (and who wrote, in a group), its bubble edged in the bot's color; once the answer went back, a quiet line "Sent to X" follows it, red with the reason when it did not go.
11
+ - **The Bots page** (under Discover by default): every bot, its state, where it is connected, when it last heard; connect it to the double, disconnect, rename, scan again (when WeChat signed it out) or remove it.
12
+
13
+ Rules:
14
+
15
+ - **A bot is connected to one place at most** (the double, an agent, or a conversation); one place can have several bots, of either kind.
16
+ - **One bot per WeChat account**: scanning with the same WeChat again renews its bot (its name and where it is connected stay) rather than adding one. Different accounts each have their own. Robots of WeCom are told apart by Bot ID; the same Bot ID again updates its bot.
17
+ - A bot connected nowhere answers a message with how to connect it in Ta.
18
+
19
+ ## What goes through
20
+
21
+ | | WeChat (ClawBot) | WeCom intelligent robot |
22
+ | --- | --- | --- |
23
+ | Text | In; answers as plain text (WeChat shows no Markdown), in pieces when long | In; answers in Markdown, a thinking placeholder streamed into the answer, sent as a message instead after six minutes |
24
+ | Quotes | The quoted message comes to Ta as a `>` line | Same |
25
+ | Pictures | In (decrypted, saved in the conversation's directory and shown to the model); out | In (text and pictures mixed too); out, as a file above 10 MB |
26
+ | Voice | In: WeChat's transcript goes to Ta, the silk file is saved | In: WeCom's transcript |
27
+ | Files, videos | In (up to 100 MB) and out | In and out (files up to 20 MB, videos 10 MB) |
28
+ | Typing | "typing" shows while Ta answers | The streamed placeholder |
29
+
30
+ Files that come are saved under `.ta/inbox/` of the conversation's directory (with a `.gitignore` that ignores all of it), and the message says where, so Ta can read them. To send a file or a picture back, Ta calls the tool `bot_send_file` (there only while a bot is connected to the conversation): it goes to the chat of the message being answered, or, with none, to the last chat of the conversation's bots.
31
+
32
+ ## How it runs
33
+
34
+ - Three parts; Ta's core only gained general extension points:
35
+ - **Server side** (`pi.host`, `web-src/host.ts`): `BotService`. When the Ta service starts it connects every bot and keeps it connected, with no page open: WeChat by iLink's long poll (`getupdates`, from where it stopped), WeCom by the long connection `wss://openws.work.weixin.qq.com` (a ping every 30 seconds, reconnecting after 1, 2, 4… up to 30 seconds; stopped and marked failed when the robot connects from elsewhere). A message goes to `SessionBridge`: the session of the place its bot is connected to (the double's session file is the one its page keeps in the data `TA_DOUBLE_FILE`), opened from its file when it is not open, and handed to its pi extension once that is there. Sessions it opened close once idle and unwatched; their files stay.
36
+ - **pi extension** (`pi.extensions`, `web-src/extension.ts`), in every session: it saves the files of a message, passes it to pi as a custom message (`ta-bots`, which the model reads) that starts a reply (queued while Ta works), sends the last answer of that run (or why there is none) to the chats that asked, and leaves a `ta-bots-sent` message in the conversation (which the model never reads). A run a bot started is told in its system prompt that the person is on a phone, reading plain text or Markdown.
37
+ - **Web extension** (`pi.web`, `web-src/index.tsx`): Bots in the + menu of the message box, the chips above it, the dialogs to scan or fill in, the two kinds of messages, and the Bots page.
38
+ - **Credentials**: tokens and secrets live only in `bots/secrets.json` of the agent directory (mode 0600), never in the data pages read; the data of the package (`extension-data/@celljs/ta-bots.json`) holds the list of bots, where each is connected and how it is. Where WeChat's updates stand and the context token of each chat are in `bots/<bot>.json`.
39
+ - **A session opened again keeps its role**: ta-host writes the `appendSystemPrompt` and the group a session was opened with into its file and uses them when it is opened again from the file alone, so an agent woken by a message of a bot answers in its own role. The double's client tools (handing out tasks) are there only while a page of the double is open; without one the double answers but cannot start tasks.
40
+
41
+ ## Limits
42
+
43
+ - Bots are online only while the Ta service runs (`ta serve`; Ta Desktop starts it); `ta` alone in a terminal has none.
44
+ - A ClawBot of WeChat chats only with the account that scanned it; anyone in a group can talk to a robot of WeCom.
45
+ - Voice is not transcoded (the silk file is saved as it is, the transcript is used); answers are never voice.
46
+ - After `/new` in a conversation, its bots stay with its old session file: connect them in the new one. The double's Restart does not matter (a bot of the double follows the double).