@celljs/ta 4.13.1 → 4.14.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.
Files changed (255) hide show
  1. package/dist/cli.mjs +997 -811
  2. package/dist/gateway.mjs +315 -150
  3. package/dist/pi/CHANGELOG.md +7 -0
  4. package/dist/pi/package.json +1 -1
  5. package/dist/pi/packages/ta-agents/package.json +3 -3
  6. package/dist/pi/packages/ta-bots/host/index.mjs +171 -135
  7. package/dist/pi/packages/ta-bots/package.json +3 -3
  8. package/dist/pi/packages/ta-changes/package.json +3 -3
  9. package/dist/pi/packages/ta-channels/host/index.mjs +170 -134
  10. package/dist/pi/packages/ta-channels/lib/room.js +3 -3
  11. package/dist/pi/packages/ta-channels/package.json +3 -3
  12. package/dist/pi/packages/ta-channels/web/index.js +1 -0
  13. package/dist/pi/packages/ta-computer-use/package.json +3 -3
  14. package/dist/pi/packages/ta-cron/README.en.md +1 -1
  15. package/dist/pi/packages/ta-cron/README.md +1 -1
  16. package/dist/pi/packages/ta-cron/lib/page.d.ts +2 -0
  17. package/dist/pi/packages/ta-cron/lib/page.js +8 -4
  18. package/dist/pi/packages/ta-cron/package.json +3 -3
  19. package/dist/pi/packages/ta-cron/web/index.js +9 -4
  20. package/dist/pi/packages/ta-extensions/package.json +3 -3
  21. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -1
  22. package/dist/pi/packages/ta-extensions/web/index.js +170 -134
  23. package/dist/pi/packages/ta-games/package.json +3 -3
  24. package/dist/pi/packages/ta-glance/package.json +3 -3
  25. package/dist/pi/packages/ta-initiative/README.en.md +1 -0
  26. package/dist/pi/packages/ta-initiative/README.md +1 -0
  27. package/dist/pi/packages/ta-initiative/host/index.mjs +3 -0
  28. package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +1 -0
  29. package/dist/pi/packages/ta-initiative/lib/i18n.js +4 -2
  30. package/dist/pi/packages/ta-initiative/lib/inbox.js +1 -1
  31. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +2 -0
  32. package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +1 -0
  33. package/dist/pi/packages/ta-initiative/lib/initiative-service.js +3 -0
  34. package/dist/pi/packages/ta-initiative/lib/initiative-store.js +5 -1
  35. package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
  36. package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
  37. package/dist/pi/packages/ta-initiative/package.json +3 -3
  38. package/dist/pi/packages/ta-initiative/web/index.js +10 -7
  39. package/dist/pi/packages/ta-launcher/package.json +3 -3
  40. package/dist/pi/packages/ta-manual/package.json +3 -3
  41. package/dist/pi/packages/ta-moments/extension/index.mjs +81 -45
  42. package/dist/pi/packages/ta-moments/host/index.mjs +82 -46
  43. package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
  44. package/dist/pi/packages/ta-moments/lib/friends.d.ts +4 -1
  45. package/dist/pi/packages/ta-moments/lib/friends.js +3 -2
  46. package/dist/pi/packages/ta-moments/lib/moments-host.js +1 -1
  47. package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +2 -0
  48. package/dist/pi/packages/ta-moments/lib/page.js +4 -5
  49. package/dist/pi/packages/ta-moments/lib/post-util.js +2 -2
  50. package/dist/pi/packages/ta-moments/lib/store.js +6 -0
  51. package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
  52. package/dist/pi/packages/ta-moments/lib/style.js +4 -5
  53. package/dist/pi/packages/ta-moments/package.json +3 -3
  54. package/dist/pi/packages/ta-moments/web/index.js +193 -149
  55. package/dist/pi/packages/ta-nearby/host/index.mjs +189 -4
  56. package/dist/pi/packages/ta-nearby/lib/nearby-net.js +2 -0
  57. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +11 -0
  58. package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +3 -0
  59. package/dist/pi/packages/ta-nearby/lib/nearby-service.js +32 -7
  60. package/dist/pi/packages/ta-nearby/lib/page.js +10 -9
  61. package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
  62. package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
  63. package/dist/pi/packages/ta-nearby/package.json +3 -3
  64. package/dist/pi/packages/ta-nearby/web/index.js +10 -2
  65. package/dist/pi/packages/ta-notify/README.en.md +1 -0
  66. package/dist/pi/packages/ta-notify/README.md +1 -0
  67. package/dist/pi/packages/ta-notify/host/index.mjs +3 -0
  68. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +2 -0
  69. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +1 -0
  70. package/dist/pi/packages/ta-notify/lib/notify-service.js +3 -0
  71. package/dist/pi/packages/ta-notify/package.json +3 -3
  72. package/dist/pi/packages/ta-recall/README.en.md +1 -1
  73. package/dist/pi/packages/ta-recall/README.md +1 -1
  74. package/dist/pi/packages/ta-recall/host/index.mjs +9 -12
  75. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +3 -3
  76. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +5 -3
  77. package/dist/pi/packages/ta-recall/lib/recall-service.js +11 -7
  78. package/dist/pi/packages/ta-recall/package.json +3 -3
  79. package/dist/pi/packages/ta-rooms/lib/friends-view.js +7 -8
  80. package/dist/pi/packages/ta-rooms/lib/page.d.ts +12 -0
  81. package/dist/pi/packages/ta-rooms/lib/page.js +38 -3
  82. package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
  83. package/dist/pi/packages/ta-rooms/lib/style.js +1 -2
  84. package/dist/pi/packages/ta-rooms/package.json +3 -3
  85. package/dist/pi/packages/ta-rooms/web/index.js +58 -17
  86. package/dist/pi/packages/ta-share/package.json +3 -3
  87. package/dist/pi/packages/ta-sync/lib/i18n.js +2 -2
  88. package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +2 -2
  89. package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
  90. package/dist/pi/packages/ta-sync/lib/style.js +1 -1
  91. package/dist/pi/packages/ta-sync/package.json +3 -3
  92. package/dist/pi/packages/ta-sync/web/index.js +5 -5
  93. package/dist/pi/packages/ta-sync-cloud/package.json +3 -3
  94. package/dist/pi/packages/ta-team/README.en.md +3 -1
  95. package/dist/pi/packages/ta-team/README.md +3 -1
  96. package/dist/pi/packages/ta-team/host/index.mjs +569 -47
  97. package/dist/pi/packages/ta-team/lib/dialogs.js +83 -16
  98. package/dist/pi/packages/ta-team/lib/host.js +4 -0
  99. package/dist/pi/packages/ta-team/lib/i18n.d.ts +11 -0
  100. package/dist/pi/packages/ta-team/lib/i18n.js +24 -2
  101. package/dist/pi/packages/ta-team/lib/members-tab.js +55 -8
  102. package/dist/pi/packages/ta-team/lib/page.d.ts +5 -0
  103. package/dist/pi/packages/ta-team/lib/page.js +15 -0
  104. package/dist/pi/packages/ta-team/lib/parts.d.ts +3 -1
  105. package/dist/pi/packages/ta-team/lib/parts.js +4 -3
  106. package/dist/pi/packages/ta-team/lib/policy.d.ts +24 -0
  107. package/dist/pi/packages/ta-team/lib/policy.js +32 -0
  108. package/dist/pi/packages/ta-team/lib/protocol.d.ts +22 -15
  109. package/dist/pi/packages/ta-team/lib/protocol.js +1 -3
  110. package/dist/pi/packages/ta-team/lib/shared-home.js +2 -2
  111. package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
  112. package/dist/pi/packages/ta-team/lib/style.js +8 -4
  113. package/dist/pi/packages/ta-team/lib/team-admin.js +1 -0
  114. package/dist/pi/packages/ta-team/lib/team-core.js +1 -0
  115. package/dist/pi/packages/ta-team/lib/team-invites.d.ts +74 -6
  116. package/dist/pi/packages/ta-team/lib/team-invites.js +207 -10
  117. package/dist/pi/packages/ta-team/lib/team-people.js +2 -0
  118. package/dist/pi/packages/ta-team/package.json +7 -3
  119. package/dist/pi/packages/ta-team/web/index.js +362 -139
  120. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  121. package/dist/pi/packages/ta-workspace/lib/style.js +2 -2
  122. package/dist/pi/packages/ta-workspace/package.json +4 -4
  123. package/dist/pi/packages/ta-workspace/web/index.js +210 -160
  124. package/dist/public/assets/{abnfDiagram-S7VZAUFO-C30pzFN3.js → abnfDiagram-S7VZAUFO-DMceNIR5.js} +1 -1
  125. package/dist/public/assets/{architecture-WOLXFQ4H-wfYFQl2u.js → architecture-WOLXFQ4H-5AdYeEv8.js} +1 -1
  126. package/dist/public/assets/{architectureDiagram-YGSQEFNW-B05zgxyT.js → architectureDiagram-YGSQEFNW-CqkJHg0A.js} +1 -1
  127. package/dist/public/assets/{blockDiagram-APKKGZFW-BhN8Bsu0.js → blockDiagram-APKKGZFW-BtuHdIjQ.js} +1 -1
  128. package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
  129. package/dist/public/assets/{browser-DteLjv_-.js → browser-Ds5TwWWr.js} +1 -1
  130. package/dist/public/assets/{c4Diagram-KJ2TOQU5-DvdF3qCV.js → c4Diagram-KJ2TOQU5-eebbjTgZ.js} +1 -1
  131. package/dist/public/assets/{chunk-6MUBBAK2-DNavkrnr.js → chunk-6MUBBAK2-BjMKSfTf.js} +1 -1
  132. package/dist/public/assets/{chunk-AXFCVDMN-DplVEqp_.js → chunk-AXFCVDMN-BElluw_7.js} +1 -1
  133. package/dist/public/assets/{chunk-BG4553SI-BazOaHvw.js → chunk-BG4553SI-CUDwpWNL.js} +1 -1
  134. package/dist/public/assets/{chunk-DQASFODM-DmoQWa8b.js → chunk-DQASFODM-B-92o8Uj.js} +1 -1
  135. package/dist/public/assets/{chunk-HFQBQIA3-Cj1m9ccz.js → chunk-HFQBQIA3-pveEMcXK.js} +1 -1
  136. package/dist/public/assets/{chunk-KQLB2F66-_jbilrLX.js → chunk-KQLB2F66-m7DKNjYW.js} +1 -1
  137. package/dist/public/assets/{chunk-KS47KZWR-CWU16Lut.js → chunk-KS47KZWR-CnSSETdj.js} +1 -1
  138. package/dist/public/assets/{chunk-LEVMRMFU-wsbxWEZE.js → chunk-LEVMRMFU-Ds7OnJrC.js} +1 -1
  139. package/dist/public/assets/{chunk-M57EVK23-BGvmwwTv.js → chunk-M57EVK23-PJSYCuUh.js} +1 -1
  140. package/dist/public/assets/{chunk-OY52VR5R-Bp3hJ4kT.js → chunk-OY52VR5R-C3ygRwSC.js} +1 -1
  141. package/dist/public/assets/{chunk-QB3YPZ4I-C1rQVxsJ.js → chunk-QB3YPZ4I-DcFtmZh7.js} +1 -1
  142. package/dist/public/assets/{chunk-R3KSYZAL-CEy0dKWn.js → chunk-R3KSYZAL-B4BOidE6.js} +1 -1
  143. package/dist/public/assets/{chunk-STOXU5M4-akqvafwH.js → chunk-STOXU5M4-DcXfwN7k.js} +1 -1
  144. package/dist/public/assets/{chunk-TU62E6Q5-CVXAS4DS.js → chunk-TU62E6Q5-B-rpQQxX.js} +1 -1
  145. package/dist/public/assets/{chunk-X4PVCEUW-DT_bEMvQ.js → chunk-X4PVCEUW-BBtlFSw1.js} +1 -1
  146. package/dist/public/assets/{chunk-XXDRQBXY-Bgv_n5Qh.js → chunk-XXDRQBXY-Do8BIocv.js} +1 -1
  147. package/dist/public/assets/{classDiagram-v2-L25IHNXF-BtjQChpS.js → classDiagram-v2-L25IHNXF-bhGAODMS.js} +1 -1
  148. package/dist/public/assets/{client-sUFoEC5s.js → client-C8gi9Fk2.js} +1 -1
  149. package/dist/public/assets/{common-CGQN5htF.js → common-DrZR0tgm.js} +2 -2
  150. package/dist/public/assets/{cose-bilkent-JH36ORCC-DSrOY8Uk.js → cose-bilkent-JH36ORCC-B7Qv6Hv_.js} +1 -1
  151. package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +1 -0
  152. package/dist/public/assets/{cynefinDiagram-L36ESFBY-DTy7FNFS.js → cynefinDiagram-L36ESFBY-BX-R5Z6L.js} +1 -1
  153. package/dist/public/assets/{d3-selection-ip6rDUzY.js → d3-selection-D3xgEEla.js} +1 -1
  154. package/dist/public/assets/{dagre-SPEB5RXH-CHrks7Jb.js → dagre-SPEB5RXH-MfJ9yO0v.js} +1 -1
  155. package/dist/public/assets/{diagram-3B7GL73J-eUJ7STAr.js → diagram-3B7GL73J-DxFRc2vC.js} +1 -1
  156. package/dist/public/assets/{diagram-DNEMPZML-B_fptNkg.js → diagram-DNEMPZML-BcBwOLbM.js} +1 -1
  157. package/dist/public/assets/{diagram-L3MUGCDN-C15owCSG.js → diagram-L3MUGCDN--Rw-isPI.js} +1 -1
  158. package/dist/public/assets/{diagram-LA4NIPWU-Bfa1qEgY.js → diagram-LA4NIPWU-DXkY85UN.js} +1 -1
  159. package/dist/public/assets/{diagram-MHCOC4E2-Bwxsih_Q.js → diagram-MHCOC4E2-CbNmfAid.js} +1 -1
  160. package/dist/public/assets/{diagram-XPFHEONP-DKZ_lwah.js → diagram-XPFHEONP-D1nGQjzf.js} +1 -1
  161. package/dist/public/assets/{dist-VHGBaby6.js → dist-B1JMTrET.js} +1 -1
  162. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CCkttvYi.js → ebnfDiagram-UZSYDL2S-DGXbVfke.js} +1 -1
  163. package/dist/public/assets/{editor.api-a2gC0dVD.js → editor.api-e3yQoo1r.js} +1 -1
  164. package/dist/public/assets/{elk-XV6XMXQE-DcikW39e.js → elk-XV6XMXQE-pA-iT6fg.js} +1 -1
  165. package/dist/public/assets/{erDiagram-EYBAPDEH-BE3TV5lU.js → erDiagram-EYBAPDEH-BpgBun7y.js} +1 -1
  166. package/dist/public/assets/{eventmodeling-K75KTNOO-C2s1kutf.js → eventmodeling-K75KTNOO-CVfyCcul.js} +1 -1
  167. package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +1 -0
  168. package/dist/public/assets/{freemarker2-2e8pZojb.js → freemarker2-dYGec-fT.js} +1 -1
  169. package/dist/public/assets/{ganttDiagram-23REXITY-rGnJptii.js → ganttDiagram-23REXITY-DjLTTWwA.js} +1 -1
  170. package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +1 -0
  171. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CNnsDjQA.js → gitGraphDiagram-STJD7YCW-D9m7IVyJ.js} +1 -1
  172. package/dist/public/assets/{handlebars-CMKN6E37.js → handlebars-Bxerz7ci.js} +1 -1
  173. package/dist/public/assets/{html-0AjXQhkQ.js → html-DlVnGsdp.js} +1 -1
  174. package/dist/public/assets/{index-TUtoc8CW.js → index-CZmGe9gc.js} +2 -2
  175. package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +1 -0
  176. package/dist/public/assets/{infoDiagram-KBXO4MBG-DMKs8cuE.js → infoDiagram-KBXO4MBG-DoYdhkAy.js} +1 -1
  177. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Dg_IbA0G.js → ishikawaDiagram-M35NCXHK-Bc0GAInW.js} +1 -1
  178. package/dist/public/assets/{javascript-CqYOqPjw.js → javascript-DZrowo_I.js} +1 -1
  179. package/dist/public/assets/{journeyDiagram-OPLOXDXO-ohAOfoEY.js → journeyDiagram-OPLOXDXO-BM7Dwstu.js} +1 -1
  180. package/dist/public/assets/{jsonMode-D-gI-S5H.js → jsonMode-Bs30wPr5.js} +1 -1
  181. package/dist/public/assets/{kanban-definition-BZKZHSQY-w-aKZS_U.js → kanban-definition-BZKZHSQY-CO-Crrdu.js} +1 -1
  182. package/dist/public/assets/{liquid-oBN7c8NZ.js → liquid-dLz9d3ax.js} +1 -1
  183. package/dist/public/assets/{mdx-CnwhgGjX.js → mdx-DO0x92Kn.js} +1 -1
  184. package/dist/public/assets/{mermaid-parser.core-CfFkSR0t.js → mermaid-parser.core-BXwArNvw.js} +3 -3
  185. package/dist/public/assets/{mermaid.core-apiVCSBY.js → mermaid.core-C6mppfDC.js} +4 -4
  186. package/dist/public/assets/{mindmap-definition-I2QAS2VK-E7vqVWB0.js → mindmap-definition-I2QAS2VK-vcQ2EU4T.js} +1 -1
  187. package/dist/public/assets/module-C0tELrcJ.js +1 -0
  188. package/dist/public/assets/{module-B8jze-Tx.js → module-Cm_mLwAQ.js} +1 -1
  189. package/dist/public/assets/module-CteT9pTP.js +2405 -0
  190. package/dist/public/assets/module-DDH-aU6z.js +1 -0
  191. package/dist/public/assets/module-DRofmFJn.js +1 -0
  192. package/dist/public/assets/{module-ZhkaqrNe.js → module-DUYj4E8T.js} +1 -1
  193. package/dist/public/assets/module-MaD4hvv4.js +1 -0
  194. package/dist/public/assets/module-ZDJutm0b.js +1 -0
  195. package/dist/public/assets/module-qoBVcE5h.js +1 -0
  196. package/dist/public/assets/{monaco-C0ByxW3l.js → monaco-J_Pr5zjk.js} +3 -3
  197. package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +1 -0
  198. package/dist/public/assets/{pegDiagram-FD4XPPHP--RpwCE7x.js → pegDiagram-FD4XPPHP-DPDrbtS2.js} +1 -1
  199. package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +1 -0
  200. package/dist/public/assets/{pieDiagram-J4AKIIQI-DxSbPaRZ.js → pieDiagram-J4AKIIQI-DXuaepGJ.js} +1 -1
  201. package/dist/public/assets/{python-vNPe_Fao.js → python-nnmIOv4s.js} +1 -1
  202. package/dist/public/assets/{quadrantDiagram-XTYBLID2-CR_eeYXi.js → quadrantDiagram-XTYBLID2-BuD_-coZ.js} +1 -1
  203. package/dist/public/assets/radar-ABXABTNO-Dqy-xoY_.js +1 -0
  204. package/dist/public/assets/railroad-I3PHUGI6-CBPVCTd3.js +1 -0
  205. package/dist/public/assets/{railroad-abnf-LNEFI6M7-D6I2HxIC.js → railroad-abnf-LNEFI6M7-CkCl68xY.js} +1 -1
  206. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BuhDRGo3.js → railroad-ebnf-DWYD2UWJ-DO3GiRv6.js} +1 -1
  207. package/dist/public/assets/{railroad-peg-JR7BVNR7-n15PB7Sb.js → railroad-peg-JR7BVNR7-DZBsKy4P.js} +1 -1
  208. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Bbe5bNap.js → railroadDiagram-MRQ6NCDL-BeLq7Mqp.js} +1 -1
  209. package/dist/public/assets/{razor-CnKbF0Yz.js → razor-l2rRITgB.js} +1 -1
  210. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Beuygh9j.js → requirementDiagram-Y7LWUY3S-BBizkrON.js} +1 -1
  211. package/dist/public/assets/{resolver-B7c_-amj.js → resolver-0zC31mg5.js} +1 -1
  212. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-jwWPgnrS.js → sankeyDiagram-WGJFYUXA-tyo-p7oc.js} +1 -1
  213. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-CmU-HYQI.js → sequenceDiagram-5NDRBG5M-BSGPbeJX.js} +1 -1
  214. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js → stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js} +1 -1
  215. package/dist/public/assets/{swimlanes-UMQ2AFYF-PSKyZN_b.js → swimlanes-UMQ2AFYF-BJfgQyQo.js} +1 -1
  216. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +8 -0
  217. package/dist/public/assets/{timeline-definition-SEUHKTQE-BuRxLScZ.js → timeline-definition-SEUHKTQE-Ch8aQwF6.js} +1 -1
  218. package/dist/public/assets/treeView-D4JQ5SDB--XUqgqA6.js +1 -0
  219. package/dist/public/assets/treemap-SAJKECNS-CfrNtG7H.js +1 -0
  220. package/dist/public/assets/{typescript-C00ztMLg.js → typescript-LasX-M7S.js} +1 -1
  221. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Dlvyos8r.js → usecaseDiagram-AFA6YXN4-BzlSB4R4.js} +1 -1
  222. package/dist/public/assets/{vennDiagram-NNMJR3RB-CuLZubJH.js → vennDiagram-NNMJR3RB-4xaWLrMk.js} +1 -1
  223. package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +1 -0
  224. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-WOGGTs4y.js → wardleyDiagram-S7YFUSEH-C-iK1p-O.js} +1 -1
  225. package/dist/public/assets/{xml-CHBFuf5n.js → xml-CGhYQUqn.js} +1 -1
  226. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DwW9eifP.js → xychartDiagram-GGNKY7IX-CFsnisdM.js} +1 -1
  227. package/dist/public/assets/{yaml-C4qkqzcL.js → yaml-BcOaPfuH.js} +1 -1
  228. package/dist/public/index.html +2 -2
  229. package/dist/serve/index.mjs +2318 -1257
  230. package/package.json +39 -39
  231. package/dist/pi/packages/ta-team/lib/join.d.ts +0 -28
  232. package/dist/pi/packages/ta-team/lib/join.js +0 -48
  233. package/dist/pi/packages/ta-team/lib/remote.d.ts +0 -31
  234. package/dist/pi/packages/ta-team/lib/remote.js +0 -128
  235. package/dist/pi/packages/ta-team/lib/seal.d.ts +0 -28
  236. package/dist/pi/packages/ta-team/lib/seal.js +0 -75
  237. package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +0 -1
  238. package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +0 -1
  239. package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +0 -1
  240. package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +0 -1
  241. package/dist/public/assets/module-Blc8dqbf.js +0 -1
  242. package/dist/public/assets/module-C2jtFD0v.js +0 -2365
  243. package/dist/public/assets/module-C9WFrzAc.js +0 -1
  244. package/dist/public/assets/module-CouMtASh.js +0 -1
  245. package/dist/public/assets/module-EGdAhoOx.js +0 -1
  246. package/dist/public/assets/module-EeaigZHL.js +0 -1
  247. package/dist/public/assets/module-xT4L5yYw.js +0 -1
  248. package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +0 -1
  249. package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +0 -1
  250. package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +0 -1
  251. package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +0 -1
  252. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +0 -8
  253. package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +0 -1
  254. package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +0 -1
  255. package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +0 -1
@@ -381,141 +381,6 @@ var TaPackageTextUtil;
381
381
  }
382
382
  TaPackageTextUtil2.pick = pick;
383
383
  })(TaPackageTextUtil || (TaPackageTextUtil = {}));
384
- // ../ta-protocol/esm/common/relay-protocol.js
385
- var TaRelayServer = Symbol("TaRelayServer");
386
- // ../ta-protocol/esm/common/remote-protocol.js
387
- var TaRemoteServer = Symbol("TaRemoteServer");
388
- // ../ta-protocol/esm/common/room-protocol.js
389
- var TaRoomServer = Symbol("TaRoomServer");
390
- var TaRoomWatchUtil;
391
- (function(TaRoomWatchUtil2) {
392
- function of(messages, state) {
393
- const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
394
- return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
395
- }
396
- TaRoomWatchUtil2.of = of;
397
- function union(watches) {
398
- let messages = false;
399
- const state = [];
400
- for (const watch of watches) {
401
- messages || (messages = watch.messages);
402
- state.push(...watch.state);
403
- }
404
- return of(messages, messages ? [] : state);
405
- }
406
- TaRoomWatchUtil2.union = union;
407
- function same(a, b) {
408
- return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
409
- `) === b.state.join(`
410
- `);
411
- }
412
- TaRoomWatchUtil2.same = same;
413
- function hears(watch, event) {
414
- if (event.type === "message") {
415
- return watch.messages;
416
- }
417
- if (event.type === "state") {
418
- return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
419
- }
420
- return true;
421
- }
422
- TaRoomWatchUtil2.hears = hears;
423
- })(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
424
- // ../ta-protocol/esm/common/settings-protocol.js
425
- var TaSettingsServer = Symbol("TaSettingsServer");
426
- // ../ta-protocol/esm/common/ta-extension-host.js
427
- var TA_HOST_EVENT = "ta:host";
428
- var TaHostUtil;
429
- (function(TaHostUtil2) {
430
- TaHostUtil2.WAIT_MS = 1000;
431
- function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
432
- return new Promise((resolve) => {
433
- let heard = false;
434
- let answered = false;
435
- const timer = setTimeout(() => resolve(undefined), waitMs);
436
- const request = {
437
- name,
438
- heard: () => {
439
- heard = true;
440
- },
441
- resolve: (answer) => {
442
- answered = true;
443
- clearTimeout(timer);
444
- resolve(answer);
445
- }
446
- };
447
- events.emit(TA_HOST_EVENT, request);
448
- if (!heard && !answered) {
449
- clearTimeout(timer);
450
- resolve(undefined);
451
- }
452
- });
453
- }
454
- TaHostUtil2.reach = reach;
455
- function marked(systemPrompt, mark) {
456
- return role(systemPrompt).includes(mark);
457
- }
458
- TaHostUtil2.marked = marked;
459
- function role(systemPrompt) {
460
- if (!systemPrompt) {
461
- return "";
462
- }
463
- const open = `<addendum>
464
- `;
465
- const start = systemPrompt.indexOf(open);
466
- const context = systemPrompt.indexOf(`<project_context>
467
- `);
468
- if (start < 0 || context >= 0 && context < start) {
469
- return "";
470
- }
471
- const end = systemPrompt.indexOf(`
472
- </addendum>`, start);
473
- return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
474
- }
475
- TaHostUtil2.role = role;
476
- })(TaHostUtil || (TaHostUtil = {}));
477
- var TA_DOUBLE_FILE = { name: "@celljs/ta-web", key: "assistant.file" };
478
- var TA_ASK_ENTRY = "ta-ask";
479
- var TaAskUtil;
480
- (function(TaAskUtil2) {
481
- const LENGTH = 120;
482
- function entry(question) {
483
- const line = question.replace(/\s+/g, " ").trim();
484
- return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
485
- }
486
- TaAskUtil2.entry = entry;
487
- function asking(entries) {
488
- var _a;
489
- for (let i = entries.length - 1;i >= 0; i--) {
490
- const entry2 = entries[i];
491
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
492
- return;
493
- }
494
- if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
495
- return read(entry2);
496
- }
497
- }
498
- return;
499
- }
500
- TaAskUtil2.asking = asking;
501
- function next(asked, entry2) {
502
- var _a;
503
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
504
- return;
505
- }
506
- return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
507
- }
508
- TaAskUtil2.next = next;
509
- function read(found) {
510
- var _a;
511
- const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
512
- if (typeof question !== "string" || !question.trim()) {
513
- return;
514
- }
515
- const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
516
- return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
517
- }
518
- })(TaAskUtil || (TaAskUtil = {}));
519
384
  // ../ta-protocol/esm/common/ta-protocol.js
520
385
  var TaServer = Symbol("TaServer");
521
386
  var TaClient = Symbol("TaClient");
@@ -701,6 +566,177 @@ var TaSkillUse;
701
566
  }
702
567
  TaSkillUse2.command = command;
703
568
  })(TaSkillUse || (TaSkillUse = {}));
569
+
570
+ // ../ta-protocol/esm/common/presence-protocol.js
571
+ var TaPresenceServer = Symbol("TaPresenceServer");
572
+ var TaMessageAuthor;
573
+ (function(TaMessageAuthor2) {
574
+ const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
575
+ const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
576
+ function strip(message) {
577
+ const context = TaMessageContext.read(message);
578
+ if (context === undefined || !LINE.test(context)) {
579
+ return message;
580
+ }
581
+ const kept = context.replace(LINES, "").replace(/\n+$/, "");
582
+ const body = TaMessageContext.strip(message);
583
+ return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
584
+ }
585
+ TaMessageAuthor2.strip = strip;
586
+ function mark(message, id, name) {
587
+ const plain = strip(message);
588
+ if (/^[/!]/.test(plain)) {
589
+ return plain;
590
+ }
591
+ const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
592
+ const context = TaMessageContext.read(plain);
593
+ return TaMessageContext.wrap(context === undefined ? line : `${context}
594
+ ${line}`, TaMessageContext.strip(plain));
595
+ }
596
+ TaMessageAuthor2.mark = mark;
597
+ function of(message) {
598
+ var _a;
599
+ const context = TaMessageContext.read(message);
600
+ const match = context === undefined ? null : LINE.exec(context);
601
+ return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
602
+ }
603
+ TaMessageAuthor2.of = of;
604
+ })(TaMessageAuthor || (TaMessageAuthor = {}));
605
+ // ../ta-protocol/esm/common/relay-protocol.js
606
+ var TaRelayServer = Symbol("TaRelayServer");
607
+ // ../ta-protocol/esm/common/remote-protocol.js
608
+ var TaRemoteServer = Symbol("TaRemoteServer");
609
+ // ../ta-protocol/esm/common/room-protocol.js
610
+ var TaRoomServer = Symbol("TaRoomServer");
611
+ var TaRoomWatchUtil;
612
+ (function(TaRoomWatchUtil2) {
613
+ function of(messages, state) {
614
+ const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
615
+ return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
616
+ }
617
+ TaRoomWatchUtil2.of = of;
618
+ function union(watches) {
619
+ let messages = false;
620
+ const state = [];
621
+ for (const watch of watches) {
622
+ messages || (messages = watch.messages);
623
+ state.push(...watch.state);
624
+ }
625
+ return of(messages, messages ? [] : state);
626
+ }
627
+ TaRoomWatchUtil2.union = union;
628
+ function same(a, b) {
629
+ return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
630
+ `) === b.state.join(`
631
+ `);
632
+ }
633
+ TaRoomWatchUtil2.same = same;
634
+ function hears(watch, event) {
635
+ if (event.type === "message") {
636
+ return watch.messages;
637
+ }
638
+ if (event.type === "state") {
639
+ return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
640
+ }
641
+ return true;
642
+ }
643
+ TaRoomWatchUtil2.hears = hears;
644
+ })(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
645
+ // ../ta-protocol/esm/common/settings-protocol.js
646
+ var TaSettingsServer = Symbol("TaSettingsServer");
647
+ // ../ta-protocol/esm/common/ta-extension-host.js
648
+ var TA_HOST_EVENT = "ta:host";
649
+ var TaHostUtil;
650
+ (function(TaHostUtil2) {
651
+ TaHostUtil2.WAIT_MS = 1000;
652
+ function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
653
+ return new Promise((resolve) => {
654
+ let heard = false;
655
+ let answered = false;
656
+ const timer = setTimeout(() => resolve(undefined), waitMs);
657
+ const request = {
658
+ name,
659
+ heard: () => {
660
+ heard = true;
661
+ },
662
+ resolve: (answer) => {
663
+ answered = true;
664
+ clearTimeout(timer);
665
+ resolve(answer);
666
+ }
667
+ };
668
+ events.emit(TA_HOST_EVENT, request);
669
+ if (!heard && !answered) {
670
+ clearTimeout(timer);
671
+ resolve(undefined);
672
+ }
673
+ });
674
+ }
675
+ TaHostUtil2.reach = reach;
676
+ function marked(systemPrompt, mark) {
677
+ return role(systemPrompt).includes(mark);
678
+ }
679
+ TaHostUtil2.marked = marked;
680
+ function role(systemPrompt) {
681
+ if (!systemPrompt) {
682
+ return "";
683
+ }
684
+ const open = `<addendum>
685
+ `;
686
+ const start = systemPrompt.indexOf(open);
687
+ const context = systemPrompt.indexOf(`<project_context>
688
+ `);
689
+ if (start < 0 || context >= 0 && context < start) {
690
+ return "";
691
+ }
692
+ const end = systemPrompt.indexOf(`
693
+ </addendum>`, start);
694
+ return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
695
+ }
696
+ TaHostUtil2.role = role;
697
+ })(TaHostUtil || (TaHostUtil = {}));
698
+ var TA_DOUBLE_FILE = { name: "@celljs/ta-web", key: "assistant.file" };
699
+ var TA_ASK_ENTRY = "ta-ask";
700
+ var TaAskUtil;
701
+ (function(TaAskUtil2) {
702
+ const LENGTH = 120;
703
+ function entry(question) {
704
+ const line = question.replace(/\s+/g, " ").trim();
705
+ return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
706
+ }
707
+ TaAskUtil2.entry = entry;
708
+ function asking(entries) {
709
+ var _a;
710
+ for (let i = entries.length - 1;i >= 0; i--) {
711
+ const entry2 = entries[i];
712
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
713
+ return;
714
+ }
715
+ if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
716
+ return read(entry2);
717
+ }
718
+ }
719
+ return;
720
+ }
721
+ TaAskUtil2.asking = asking;
722
+ function next(asked, entry2) {
723
+ var _a;
724
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
725
+ return;
726
+ }
727
+ return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
728
+ }
729
+ TaAskUtil2.next = next;
730
+ function read(found) {
731
+ var _a;
732
+ const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
733
+ if (typeof question !== "string" || !question.trim()) {
734
+ return;
735
+ }
736
+ const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
737
+ return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
738
+ }
739
+ })(TaAskUtil || (TaAskUtil = {}));
704
740
  // ../ta-protocol/esm/common/team-protocol.js
705
741
  var TA_UNDECLARED = "extensions.install";
706
742
  var TaPermissionUtil;
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-bots",
3
- "version": "4.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: bots of WeChat (ClawBot) and WeCom connected to the double, an agent or a conversation, messages and files both ways",
5
5
  "keywords": [
6
6
  "pi-package"
7
7
  ],
8
- "homepage": "https://github.com/cellbang/cell",
8
+ "homepage": "https://github.com/cellbang/ta",
9
9
  "bugs": {
10
- "url": "https://github.com/cellbang/cell/issues"
10
+ "url": "https://github.com/cellbang/ta/issues"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-changes",
3
- "version": "4.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: the files each reply changed, with their diffs, and a button that takes the changes of a reply back",
5
5
  "keywords": [
6
6
  "pi-package"
7
7
  ],
8
- "homepage": "https://github.com/cellbang/cell",
8
+ "homepage": "https://github.com/cellbang/ta",
9
9
  "bugs": {
10
- "url": "https://github.com/cellbang/cell/issues"
10
+ "url": "https://github.com/cellbang/ta/issues"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
@@ -181,140 +181,6 @@ var TaPackageTextUtil;
181
181
  }
182
182
  TaPackageTextUtil2.pick = pick;
183
183
  })(TaPackageTextUtil || (TaPackageTextUtil = {}));
184
- // ../ta-protocol/esm/common/relay-protocol.js
185
- var TaRelayServer = Symbol("TaRelayServer");
186
- // ../ta-protocol/esm/common/remote-protocol.js
187
- var TaRemoteServer = Symbol("TaRemoteServer");
188
- // ../ta-protocol/esm/common/room-protocol.js
189
- var TaRoomServer = Symbol("TaRoomServer");
190
- var TaRoomWatchUtil;
191
- (function(TaRoomWatchUtil2) {
192
- function of(messages, state) {
193
- const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
194
- return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
195
- }
196
- TaRoomWatchUtil2.of = of;
197
- function union(watches) {
198
- let messages = false;
199
- const state = [];
200
- for (const watch of watches) {
201
- messages || (messages = watch.messages);
202
- state.push(...watch.state);
203
- }
204
- return of(messages, messages ? [] : state);
205
- }
206
- TaRoomWatchUtil2.union = union;
207
- function same(a, b) {
208
- return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
209
- `) === b.state.join(`
210
- `);
211
- }
212
- TaRoomWatchUtil2.same = same;
213
- function hears(watch, event) {
214
- if (event.type === "message") {
215
- return watch.messages;
216
- }
217
- if (event.type === "state") {
218
- return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
219
- }
220
- return true;
221
- }
222
- TaRoomWatchUtil2.hears = hears;
223
- })(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
224
- // ../ta-protocol/esm/common/settings-protocol.js
225
- var TaSettingsServer = Symbol("TaSettingsServer");
226
- // ../ta-protocol/esm/common/ta-extension-host.js
227
- var TA_HOST_EVENT = "ta:host";
228
- var TaHostUtil;
229
- (function(TaHostUtil2) {
230
- TaHostUtil2.WAIT_MS = 1000;
231
- function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
232
- return new Promise((resolve) => {
233
- let heard = false;
234
- let answered = false;
235
- const timer = setTimeout(() => resolve(undefined), waitMs);
236
- const request = {
237
- name,
238
- heard: () => {
239
- heard = true;
240
- },
241
- resolve: (answer) => {
242
- answered = true;
243
- clearTimeout(timer);
244
- resolve(answer);
245
- }
246
- };
247
- events.emit(TA_HOST_EVENT, request);
248
- if (!heard && !answered) {
249
- clearTimeout(timer);
250
- resolve(undefined);
251
- }
252
- });
253
- }
254
- TaHostUtil2.reach = reach;
255
- function marked(systemPrompt, mark) {
256
- return role(systemPrompt).includes(mark);
257
- }
258
- TaHostUtil2.marked = marked;
259
- function role(systemPrompt) {
260
- if (!systemPrompt) {
261
- return "";
262
- }
263
- const open = `<addendum>
264
- `;
265
- const start = systemPrompt.indexOf(open);
266
- const context = systemPrompt.indexOf(`<project_context>
267
- `);
268
- if (start < 0 || context >= 0 && context < start) {
269
- return "";
270
- }
271
- const end = systemPrompt.indexOf(`
272
- </addendum>`, start);
273
- return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
274
- }
275
- TaHostUtil2.role = role;
276
- })(TaHostUtil || (TaHostUtil = {}));
277
- var TA_ASK_ENTRY = "ta-ask";
278
- var TaAskUtil;
279
- (function(TaAskUtil2) {
280
- const LENGTH = 120;
281
- function entry(question) {
282
- const line = question.replace(/\s+/g, " ").trim();
283
- return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
284
- }
285
- TaAskUtil2.entry = entry;
286
- function asking(entries) {
287
- var _a;
288
- for (let i = entries.length - 1;i >= 0; i--) {
289
- const entry2 = entries[i];
290
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
291
- return;
292
- }
293
- if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
294
- return read(entry2);
295
- }
296
- }
297
- return;
298
- }
299
- TaAskUtil2.asking = asking;
300
- function next(asked, entry2) {
301
- var _a;
302
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
303
- return;
304
- }
305
- return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
306
- }
307
- TaAskUtil2.next = next;
308
- function read(found) {
309
- var _a;
310
- const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
311
- if (typeof question !== "string" || !question.trim()) {
312
- return;
313
- }
314
- const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
315
- return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
316
- }
317
- })(TaAskUtil || (TaAskUtil = {}));
318
184
  // ../ta-protocol/esm/common/ta-protocol.js
319
185
  var TaServer = Symbol("TaServer");
320
186
  var TaClient = Symbol("TaClient");
@@ -518,6 +384,176 @@ var TaSkillUse;
518
384
  }
519
385
  TaSkillUse2.command = command;
520
386
  })(TaSkillUse || (TaSkillUse = {}));
387
+
388
+ // ../ta-protocol/esm/common/presence-protocol.js
389
+ var TaPresenceServer = Symbol("TaPresenceServer");
390
+ var TaMessageAuthor;
391
+ (function(TaMessageAuthor2) {
392
+ const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
393
+ const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
394
+ function strip(message) {
395
+ const context = TaMessageContext.read(message);
396
+ if (context === undefined || !LINE.test(context)) {
397
+ return message;
398
+ }
399
+ const kept = context.replace(LINES, "").replace(/\n+$/, "");
400
+ const body = TaMessageContext.strip(message);
401
+ return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
402
+ }
403
+ TaMessageAuthor2.strip = strip;
404
+ function mark(message, id, name) {
405
+ const plain = strip(message);
406
+ if (/^[/!]/.test(plain)) {
407
+ return plain;
408
+ }
409
+ const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
410
+ const context = TaMessageContext.read(plain);
411
+ return TaMessageContext.wrap(context === undefined ? line : `${context}
412
+ ${line}`, TaMessageContext.strip(plain));
413
+ }
414
+ TaMessageAuthor2.mark = mark;
415
+ function of(message) {
416
+ var _a;
417
+ const context = TaMessageContext.read(message);
418
+ const match = context === undefined ? null : LINE.exec(context);
419
+ return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
420
+ }
421
+ TaMessageAuthor2.of = of;
422
+ })(TaMessageAuthor || (TaMessageAuthor = {}));
423
+ // ../ta-protocol/esm/common/relay-protocol.js
424
+ var TaRelayServer = Symbol("TaRelayServer");
425
+ // ../ta-protocol/esm/common/remote-protocol.js
426
+ var TaRemoteServer = Symbol("TaRemoteServer");
427
+ // ../ta-protocol/esm/common/room-protocol.js
428
+ var TaRoomServer = Symbol("TaRoomServer");
429
+ var TaRoomWatchUtil;
430
+ (function(TaRoomWatchUtil2) {
431
+ function of(messages, state) {
432
+ const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
433
+ return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
434
+ }
435
+ TaRoomWatchUtil2.of = of;
436
+ function union(watches) {
437
+ let messages = false;
438
+ const state = [];
439
+ for (const watch of watches) {
440
+ messages || (messages = watch.messages);
441
+ state.push(...watch.state);
442
+ }
443
+ return of(messages, messages ? [] : state);
444
+ }
445
+ TaRoomWatchUtil2.union = union;
446
+ function same(a, b) {
447
+ return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
448
+ `) === b.state.join(`
449
+ `);
450
+ }
451
+ TaRoomWatchUtil2.same = same;
452
+ function hears(watch, event) {
453
+ if (event.type === "message") {
454
+ return watch.messages;
455
+ }
456
+ if (event.type === "state") {
457
+ return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
458
+ }
459
+ return true;
460
+ }
461
+ TaRoomWatchUtil2.hears = hears;
462
+ })(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
463
+ // ../ta-protocol/esm/common/settings-protocol.js
464
+ var TaSettingsServer = Symbol("TaSettingsServer");
465
+ // ../ta-protocol/esm/common/ta-extension-host.js
466
+ var TA_HOST_EVENT = "ta:host";
467
+ var TaHostUtil;
468
+ (function(TaHostUtil2) {
469
+ TaHostUtil2.WAIT_MS = 1000;
470
+ function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
471
+ return new Promise((resolve) => {
472
+ let heard = false;
473
+ let answered = false;
474
+ const timer = setTimeout(() => resolve(undefined), waitMs);
475
+ const request = {
476
+ name,
477
+ heard: () => {
478
+ heard = true;
479
+ },
480
+ resolve: (answer) => {
481
+ answered = true;
482
+ clearTimeout(timer);
483
+ resolve(answer);
484
+ }
485
+ };
486
+ events.emit(TA_HOST_EVENT, request);
487
+ if (!heard && !answered) {
488
+ clearTimeout(timer);
489
+ resolve(undefined);
490
+ }
491
+ });
492
+ }
493
+ TaHostUtil2.reach = reach;
494
+ function marked(systemPrompt, mark) {
495
+ return role(systemPrompt).includes(mark);
496
+ }
497
+ TaHostUtil2.marked = marked;
498
+ function role(systemPrompt) {
499
+ if (!systemPrompt) {
500
+ return "";
501
+ }
502
+ const open = `<addendum>
503
+ `;
504
+ const start = systemPrompt.indexOf(open);
505
+ const context = systemPrompt.indexOf(`<project_context>
506
+ `);
507
+ if (start < 0 || context >= 0 && context < start) {
508
+ return "";
509
+ }
510
+ const end = systemPrompt.indexOf(`
511
+ </addendum>`, start);
512
+ return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
513
+ }
514
+ TaHostUtil2.role = role;
515
+ })(TaHostUtil || (TaHostUtil = {}));
516
+ var TA_ASK_ENTRY = "ta-ask";
517
+ var TaAskUtil;
518
+ (function(TaAskUtil2) {
519
+ const LENGTH = 120;
520
+ function entry(question) {
521
+ const line = question.replace(/\s+/g, " ").trim();
522
+ return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
523
+ }
524
+ TaAskUtil2.entry = entry;
525
+ function asking(entries) {
526
+ var _a;
527
+ for (let i = entries.length - 1;i >= 0; i--) {
528
+ const entry2 = entries[i];
529
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
530
+ return;
531
+ }
532
+ if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
533
+ return read(entry2);
534
+ }
535
+ }
536
+ return;
537
+ }
538
+ TaAskUtil2.asking = asking;
539
+ function next(asked, entry2) {
540
+ var _a;
541
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
542
+ return;
543
+ }
544
+ return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
545
+ }
546
+ TaAskUtil2.next = next;
547
+ function read(found) {
548
+ var _a;
549
+ const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
550
+ if (typeof question !== "string" || !question.trim()) {
551
+ return;
552
+ }
553
+ const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
554
+ return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
555
+ }
556
+ })(TaAskUtil || (TaAskUtil = {}));
521
557
  // ../ta-protocol/esm/common/team-protocol.js
522
558
  var TA_OWNER = "owner";
523
559
  var TA_UNDECLARED = "extensions.install";
@@ -156,12 +156,12 @@ function ChannelRoom({ context, channelId: fixed }) {
156
156
  channel.topic && react_1.React.createElement("span", null, channel.topic),
157
157
  react_1.React.createElement("span", { className: "tac-chat-hint" }, w.quiet))),
158
158
  messages &&
159
- RoomUtil.rows(messages).map(({ message, first, separator }) => { var _a, _b, _c; return (react_1.React.createElement(react_1.React.Fragment, { key: message.id },
159
+ RoomUtil.rows(messages).map(({ message, first, separator }) => { var _a, _b, _c, _d; return (react_1.React.createElement(react_1.React.Fragment, { key: message.id },
160
160
  separator && react_1.React.createElement("div", { className: "tac-chat-time" }, time(message.at)),
161
161
  message.author === channels_util_1.SYSTEM ? (react_1.React.createElement("div", { className: "tac-notice", role: "note" }, w.stopped)) : message.notice ? (react_1.React.createElement("button", { type: "button", className: "tac-notice tac-notice-line", disabled: !channel.notice, onClick: () => setNotice({ open: true, editing: false }) }, i18n_1.ChannelWords.format(message.notice === 'cleared' ? w.noticeCleared : w.noticeUpdated, { name: name(message.author) }))) : message.author === channels_util_1.USER && ((_a = message.by) !== null && _a !== void 0 ? _a : team_protocol_1.TA_OWNER) !== me ? (react_1.React.createElement("div", { className: `tac-msg${first ? ' tac-first' : ''}` },
162
- react_1.React.createElement("div", { className: "tac-msg-face" }, first && pi.ui.Face && react_1.React.createElement(pi.ui.Face, { seed: (_b = message.by) !== null && _b !== void 0 ? _b : team_protocol_1.TA_OWNER, size: 28 })),
162
+ react_1.React.createElement("div", { className: "tac-msg-face" }, first && pi.ui.Face && (react_1.React.createElement(pi.ui.Face, { seed: (_b = message.by) !== null && _b !== void 0 ? _b : team_protocol_1.TA_OWNER, double: ((_c = message.by) !== null && _c !== void 0 ? _c : team_protocol_1.TA_OWNER) === team_protocol_1.TA_OWNER, size: 28 }))),
163
163
  react_1.React.createElement("div", { className: "tac-msg-col" },
164
- first && react_1.React.createElement("div", { className: "tac-msg-name" }, (_c = message.byName) !== null && _c !== void 0 ? _c : w.owner),
164
+ first && react_1.React.createElement("div", { className: "tac-msg-name" }, (_d = message.byName) !== null && _d !== void 0 ? _d : w.owner),
165
165
  react_1.React.createElement("div", { className: "tac-msg-bubble", title: time(message.at) },
166
166
  react_1.React.createElement(Mentions, { text: message.text, agents: state.team.agents }))))) : message.author === channels_util_1.USER ? (react_1.React.createElement("div", { className: "ta-message ta-user tac-mine" },
167
167
  react_1.React.createElement("div", { className: "ta-bubble" },