@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
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-channels",
3
- "version": "4.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: agents with roles of their own and channels where the user, Ta and the agents talk; Ta builds the team for what the user wants",
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",
@@ -3383,6 +3383,7 @@ function ChannelRoom({ context, channelId: fixed }) {
3383
3383
  className: "tac-msg-face"
3384
3384
  }, first && pi.ui.Face && /* @__PURE__ */ React.createElement(pi.ui.Face, {
3385
3385
  seed: message.by ?? TA_OWNER,
3386
+ double: (message.by ?? TA_OWNER) === TA_OWNER,
3386
3387
  size: 28
3387
3388
  })), /* @__PURE__ */ React.createElement("div", {
3388
3389
  className: "tac-msg-col"
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-computer-use",
3
- "version": "4.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: the desktop apps of this computer, used in the background through Cua Driver, which starts only when the agent first needs it",
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",
@@ -33,7 +33,7 @@ Times are local to the machine of the Ta service. A command may end with `--name
33
33
  ## How it runs
34
34
 
35
35
  - Three parts, none of which changes Ta's core:
36
- - **Server side** (`pi.host`, `web-src/host.ts`): the scheduler. It runs in the Ta service with one timer, asleep until the next task is due (it looks again within a minute at the latest, to follow a changed clock or a machine that slept). Tasks and runs are kept in the data of the package (`extension-data/@celljs/ta-cron.json` of the agent directory), the last 20 runs of each task.
36
+ - **Server side** (`pi.host`, `web-src/host.ts`): the scheduler. It runs in the Ta service with one timer, asleep until the next task is due (it looks again within a minute at the latest, to follow a changed clock or a machine that slept). Tasks and runs are kept in the data of the package (`extension-data/@celljs/ta-cron.json` of the agent directory), the last 20 runs of each task. Other packages read the tasks and runs with `callPackageHost('@celljs/ta-cron', …)`: `list()`, `runs(id, limit?)` (newest first), not by the data of this package (the brief of ta-recall does so).
37
37
  - **pi extension** (`pi.extensions`, `web-src/extension.ts`): `/loop`, `/remind`, `/schedule` and the tool `schedule_task`. A command answers with a card in the conversation, which the model does not read.
38
38
  - **Web extension** (`pi.web`, `web-src/index.tsx`): the Scheduled page, the cards of the commands, a notice when a run ends, and the Next up card of the board (a swipe to the right over the first tab of a phone, a button of the rail elsewhere): the three tasks running or due first.
39
39
  - **One run, one conversation**: each run opens a new session (in the `ta-cron` group) in the task's directory (by default that of the conversation that made it; an `ssh://` directory works too), with the task's model and thinking level if it has them. The system prompt it adds tells Ta that nobody watches, not to ask anything, and to end with a summary; the last answer is the summary of the run. Once the run ends its session closes (after whoever is looking at it leaves), and its file stays.
@@ -33,7 +33,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
33
33
  ## 怎么运行
34
34
 
35
35
  - 由三部分组成,都不改 Ta 的核心:
36
- - **服务端**(`pi.host`,`web-src/host.ts`):调度器。Ta 服务启动时运行,只有一个计时器,睡到最近一个任务的时间(最长一分钟后再看一次,以便跟上系统时间的变化和休眠)。任务和运行记录存在包数据里(agent 目录的 `extension-data/@celljs/ta-cron.json`),每个任务保留最近 20 次运行。
36
+ - **服务端**(`pi.host`,`web-src/host.ts`):调度器。Ta 服务启动时运行,只有一个计时器,睡到最近一个任务的时间(最长一分钟后再看一次,以便跟上系统时间的变化和休眠)。任务和运行记录存在包数据里(agent 目录的 `extension-data/@celljs/ta-cron.json`),每个任务保留最近 20 次运行。别的包经 `callPackageHost('@celljs/ta-cron', …)` 读任务和运行:`list()`、`runs(id, limit?)`(新的在前),不读本包的数据(ta-recall 的简报就这样读)。
37
37
  - **pi 扩展**(`pi.extensions`,`web-src/extension.ts`):`/loop`、`/remind`、`/schedule` 和工具 `schedule_task`。命令的回答是对话里的一张卡片,不进入模型的上下文。
38
38
  - **Web 扩展**(`pi.web`,`web-src/index.tsx`):"定时任务"页、命令回答的卡片、运行结束时的通知,以及小组件面板(首页往右划,电脑上是导轨的按钮)里的"接下来"卡片:正在运行和最近要运行的三个任务。
39
39
  - **一次运行,一个对话**:每次运行打开一个新会话(归在 `ta-cron` 分组下),工作目录是任务的目录(默认是创建它的对话的目录,可以是 `ssh://` 远程目录),可单独指定模型和思考级别。追加的系统提示告诉 Ta 没人在看、不要提问、最后写一段总结;最后一条回答就是这次运行的总结。运行结束后会话关闭(有人正在看时等看完再关),对话文件保留。
@@ -37,6 +37,8 @@ export declare class CronClient {
37
37
  protected stop?: () => void;
38
38
  constructor(api: WebExtensionAPI);
39
39
  start(): void;
40
+ /** A read nobody waits on: one let into the Ta who may not see the tasks (CELL_TA_FORBIDDEN) is shown none, not an error. */
41
+ protected quietly(reading: Promise<void>): void;
40
42
  dispose(): void;
41
43
  subscribe(listener: () => void): () => void;
42
44
  /** A new task asked for at the head of the page: the page showing opens its editor; one opened later does not. */
@@ -66,16 +66,20 @@ class CronClient {
66
66
  start() {
67
67
  this.stop = this.api.storage.onChange(keys => {
68
68
  if (keys.includes(cron_protocol_1.Keys.TASKS)) {
69
- void this.load();
69
+ this.quietly(this.load());
70
70
  }
71
71
  for (const key of keys) {
72
72
  const id = key.startsWith('runs/') ? key.slice(5) : undefined;
73
73
  if (id && this.state.runs[id]) {
74
- void this.loadRuns(id);
74
+ this.quietly(this.loadRuns(id));
75
75
  }
76
76
  }
77
77
  });
78
- void this.load();
78
+ this.quietly(this.load());
79
+ }
80
+ /** A read nobody waits on: one let into the Ta who may not see the tasks (CELL_TA_FORBIDDEN) is shown none, not an error. */
81
+ quietly(reading) {
82
+ reading.catch(() => undefined);
79
83
  }
80
84
  dispose() {
81
85
  var _a;
@@ -113,7 +117,7 @@ class CronClient {
113
117
  this.reading = undefined;
114
118
  if (this.again) {
115
119
  this.again = false;
116
- void this.load();
120
+ this.quietly(this.load());
117
121
  }
118
122
  }
119
123
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-cron",
3
- "version": "4.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: prompts that run on a schedule, once, every so often or by a cron expression, each run in a conversation of its own in the Ta service",
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",
@@ -711,16 +711,21 @@ class CronClient {
711
711
  start() {
712
712
  this.stop = this.api.storage.onChange((keys) => {
713
713
  if (keys.includes(Keys.TASKS)) {
714
- this.load();
714
+ this.quietly(this.load());
715
715
  }
716
716
  for (const key of keys) {
717
717
  const id = key.startsWith("runs/") ? key.slice(5) : undefined;
718
718
  if (id && this.state.runs[id]) {
719
- this.loadRuns(id);
719
+ this.quietly(this.loadRuns(id));
720
720
  }
721
721
  }
722
722
  });
723
- this.load();
723
+ this.quietly(this.load());
724
+ }
725
+ quietly(reading) {
726
+ reading.catch(() => {
727
+ return;
728
+ });
724
729
  }
725
730
  dispose() {
726
731
  this.stop?.();
@@ -754,7 +759,7 @@ class CronClient {
754
759
  this.reading = undefined;
755
760
  if (this.again) {
756
761
  this.again = false;
757
- this.load();
762
+ this.quietly(this.load());
758
763
  }
759
764
  }
760
765
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-extensions",
3
- "version": "4.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: the page of extensions, where the user makes one by saying what it should do, and hands extensions on or takes them in as one file",
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",
@@ -78,7 +78,7 @@ export default function (pi) {
78
78
  - `ui.Composer`: the message box of every conversation, with its microphone and its hold to talk, `{ placeholder?, onSend(text), mentions?, mentionLabel?, actions?, voiceSends?, onTalkSent?(), onListening?(listening), working?, onStop?(), after? }`: `mentions` (`{ name, detail? }[]`) is what `@` lists; `actions` are sections of its + menu, entries `{ key, label, icon?, detail?, setting?, toggle?, checked?, insert? | run() }` (`insert` puts text at the caret; tiles, `setting` and `toggle` as above). As the double's box: `voiceSends` sends what the microphone hears at once, `onTalkSent` says a message was said by voice (read its answer aloud with `ui.voice`), `onListening` says the user talks now, `working` makes the send button stop (`onStop`) while nothing is typed, `after` are buttons of the page before the microphone. Use it for any conversation an extension shows, rather than a box of its own. `ui.HoldToTalk` (`{ onSend(text), onEdit?(text), hints?, title?, className?, children }`) is a button held to talk, as the bar of the message box: the page dims and listens with its own recognizer (the app's on iOS), 取消 and 编辑 to slide onto; it renders nothing where the page cannot listen. `ui.voice` (`canListen()`, `canSpeak()`, `speak(text, onEnd?)`, `hush()`) reads aloud in the voice of the settings. Never a `SpeechRecognition` or `speechSynthesis` of your own. A page that is a conversation may take a message from another extension: `ui.useView(id).send?.(text)` (the double's page, `assistant/assistant`, has it; its answer comes as the view's `preview`). `ui.Markdown` (`{ text }`) renders messages as the conversations do. `ui.Empty` (`{ title, hint?, compact?, tone?, picture?, children? }`) is what an empty list or view shows, as Ta's own lists: a short title without a full stop, at most one quieter hint, centered in its parent (a column of flex); `compact` in a menu, picker or dialog; `picture` above it where seeing what will be there helps (a first page, a list the user fills). Use it rather than text of your own. `ui.Picture` (`{ width?, height?, frame?, className?, children }`, 160 by 96 in a rounded frame unless told) is a small picture as Ta's own: draw a few `rect`, `circle`, `path` and `text` in it with the classes `ta-pic-pane` (a surface), `ta-pic-line` (a bar of text), `ta-pic-box` (an outline), `ta-pic-accent` (what it is about), `ta-pic-mark` (green), `ta-pic-soft` (half of it), `ta-pic-dot`, `ta-pic-bad` (red), `ta-pic-path` (a dashed way), `ta-pic-stroke` (a green line), `ta-pic-tick` (a line on green) and `ta-pic-text` (code), never colors of your own, so it follows the theme. `ui.PictureCards` (`{ cards, columns?, compactColumns? }`, cards `{ key, picture, label, hint?, title?, disabled?, onPick() }`) is a row of them to pick from, as the suggestions of an empty conversation. `ui.Dialog` (`{ title, onClose, children }`) is a dialog over the whole page, as Ta's own: use it to make or change things rather than a form in a sidebar.
79
79
  - `ui.usePages()`: a React hook, every page there is (`{ id, extension, title, icon?, state, onOpen, place, usedAt?, source?, temporary? }`), what Quick open lists; `ui.stopExtension(name)` stops one that started on open, `ui.forgetPage(id)` takes one out of Recent. `openTemporary(source, 'link')` opens a package of npm or Git without installing it and shows its first page: ask the user first. `ui.useContextMenu()`: a React hook, `[menu, open]`: render `menu`, and call `open(event, sections)` from `onContextMenu` (a long press on a touch screen is one), sections of `{ key, label, icon?, disabled?, danger?, run }`. `ui.shareExtension({ title, source?, packageId? })` opens Ta's dialog that shares an extension (a link and its QR code), `ui.openShared(text)` opens such a link after asking, and `registerSearch({ key, title, order?, remote?, search(query, offset), subscribe? })` adds a section to the search of Quick open (entries `{ key, title, detail?, icon?, tint?, action?, open(), menu? }`). `ui.QrCode` (`{ text }`) draws a QR code; `ui.ImageViewer` (`{ src, alt?, className?, onLoad?, onBackground?, onPrevious?, onNext?, autoFocus? }`) shows a picture to zoom and drag, as the previews of the workbench do (it fills a column of flex; `onPrevious` / `onNext` go to the pictures beside it, by side buttons and ← →); `ui.scanCode?.(instructions)`, only in the Ta app, scans one with the camera; `ui.scan?.()` is the Scan of the page itself (Discover, the + of the first list), which opens what the code carries (a computer, a link of an extension, a page, text to copy).
80
80
  - What waits on ta serve says so, so that the user sees the click took: `ui.useBusy()`, a React hook, `[busy, run]`; `run(action)` stays busy until what `action` returns settles and runs nothing else meanwhile (a second click). Mark what waits with the page's classes, which show it only once it took a moment: `ta-busy` on a button with `<span className="ta-spinner ta-busy-mark" />` in it (add `ta-on-brand` on a button of the brand's color), `ta-pending` on a row being taken away, `<span className="ta-spinner ta-later" />` for a spinner of its own. `ui.Switch` (`{ checked, onChange, label, disabled? }`) is the page's switch: an `onChange` that returns a promise moves it at once, its knob turning until done. Both are newer than some Ta apps: `(pi.ui.useBusy ?? fallback)()`, `pi.ui.Switch ?? fallback`.
81
- - Lists drawn as the page's: `ui.useSessions()` and `ui.useSavedSessions()`, React hooks, the open sessions of ta serve and the conversations saved lately, as the lists of the page have them (never a poll of `server.listSessions()` of your own); `ui.Face` (`{ face?, seed?, size, working?, online? }`, the same for the same `seed` on every device) and `ui.GroupFace` (`{ members, size }`) for who is not Ta; `ui.SwipeRow` for a row a finger swipes for its actions, `ui.SelectCheck` and `ui.SelectBar` for several chosen at once; `ui.Stack` (`{ base, top, open, onClose }`) for what a tap in a list pushes over it. Work the package does for the user is a task: `registerTasks(source)`, listed with the double's by `ui.useTasks()`, removed after asking with `ui.removeTasks(tasks)`. Newer than some Ta apps: `pi.ui.Face ?? fallback`.
81
+ - Lists drawn as the page's: `ui.useSessions()` and `ui.useSavedSessions()`, React hooks, the open sessions of ta serve and the conversations saved lately, as the lists of the page have them (never a poll of `server.listSessions()` of your own); `ui.useAsks()` the conversations waiting for the user to decide, as the top of the list of chats has them (`pi.ui.useAsks?.() ?? []`); `ui.Face` (`{ face?, seed?, size, working?, online? }`, the same for the same `seed` on every device) and `ui.GroupFace` (`{ members, size }`) for who is not Ta; `ui.SwipeRow` for a row a finger swipes for its actions, `ui.SelectCheck` and `ui.SelectBar` for several chosen at once; `ui.Stack` (`{ base, top, open, onClose }`) for what a tap in a list pushes over it. Work the package does for the user is a task: `registerTasks(source)`, listed with the double's by `ui.useTasks()`, removed after asking with `ui.removeTasks(tasks)`. Newer than some Ta apps: `pi.ui.Face ?? fallback`.
82
82
  - `ui.Avatar`: Ta's avatar, the Cell logo, as a component `{ size?, mood?, mark? }`; `mark`, one or two characters, tells agents apart. Use it wherever Ta speaks, and draw Ta no other way.
83
83
  - `ui.icons`: the lucide icons of the page by name (`Plus`, `Hash`, `Search`, `Files`, ...): a web extension cannot import them. Check for one before using it: the list only grows.
84
84
  - `storage.get(key)` and `storage.set(key, value)`: small JSON values kept on the server for the package, so they stay across browsers and devices; setting `null` removes a key. A package keeps at most 4 MB there. `storage.onChange(keys => ...)` hears keys changed by other pages or the server. `storage.directory(cwd)` has the same methods for values of one directory (use `ui.useCwd()`), such as the folders open in a tree: keep there what belongs to a directory, and in `storage` what belongs to the user. Keys of `storage` that should go to the user's other computers (a best score, preferences) are listed in `"pi": { "sync": ["best"] }` of package.json; the built-in Sync (@celljs/ta-sync) carries them, when the user turned it on. The pages of people the user let into their Ta (the built-in Members, @celljs/ta-team) keep values of their own in `storage`: theirs are not the user's. A call the person may not make fails with the code `CELL_TA_FORBIDDEN` and a message that says what it needs.
@@ -771,140 +771,6 @@ var TaPackageTextUtil;
771
771
  }
772
772
  TaPackageTextUtil2.pick = pick;
773
773
  })(TaPackageTextUtil || (TaPackageTextUtil = {}));
774
- // ../ta-protocol/esm/common/relay-protocol.js
775
- var TaRelayServer = Symbol("TaRelayServer");
776
- // ../ta-protocol/esm/common/remote-protocol.js
777
- var TaRemoteServer = Symbol("TaRemoteServer");
778
- // ../ta-protocol/esm/common/room-protocol.js
779
- var TaRoomServer = Symbol("TaRoomServer");
780
- var TaRoomWatchUtil;
781
- (function(TaRoomWatchUtil2) {
782
- function of(messages, state) {
783
- const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
784
- return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
785
- }
786
- TaRoomWatchUtil2.of = of;
787
- function union(watches) {
788
- let messages = false;
789
- const state = [];
790
- for (const watch of watches) {
791
- messages || (messages = watch.messages);
792
- state.push(...watch.state);
793
- }
794
- return of(messages, messages ? [] : state);
795
- }
796
- TaRoomWatchUtil2.union = union;
797
- function same(a, b) {
798
- return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
799
- `) === b.state.join(`
800
- `);
801
- }
802
- TaRoomWatchUtil2.same = same;
803
- function hears(watch, event) {
804
- if (event.type === "message") {
805
- return watch.messages;
806
- }
807
- if (event.type === "state") {
808
- return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
809
- }
810
- return true;
811
- }
812
- TaRoomWatchUtil2.hears = hears;
813
- })(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
814
- // ../ta-protocol/esm/common/settings-protocol.js
815
- var TaSettingsServer = Symbol("TaSettingsServer");
816
- // ../ta-protocol/esm/common/ta-extension-host.js
817
- var TA_HOST_EVENT = "ta:host";
818
- var TaHostUtil;
819
- (function(TaHostUtil2) {
820
- TaHostUtil2.WAIT_MS = 1000;
821
- function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
822
- return new Promise((resolve) => {
823
- let heard = false;
824
- let answered = false;
825
- const timer = setTimeout(() => resolve(undefined), waitMs);
826
- const request = {
827
- name,
828
- heard: () => {
829
- heard = true;
830
- },
831
- resolve: (answer) => {
832
- answered = true;
833
- clearTimeout(timer);
834
- resolve(answer);
835
- }
836
- };
837
- events.emit(TA_HOST_EVENT, request);
838
- if (!heard && !answered) {
839
- clearTimeout(timer);
840
- resolve(undefined);
841
- }
842
- });
843
- }
844
- TaHostUtil2.reach = reach;
845
- function marked(systemPrompt, mark) {
846
- return role(systemPrompt).includes(mark);
847
- }
848
- TaHostUtil2.marked = marked;
849
- function role(systemPrompt) {
850
- if (!systemPrompt) {
851
- return "";
852
- }
853
- const open = `<addendum>
854
- `;
855
- const start = systemPrompt.indexOf(open);
856
- const context = systemPrompt.indexOf(`<project_context>
857
- `);
858
- if (start < 0 || context >= 0 && context < start) {
859
- return "";
860
- }
861
- const end = systemPrompt.indexOf(`
862
- </addendum>`, start);
863
- return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
864
- }
865
- TaHostUtil2.role = role;
866
- })(TaHostUtil || (TaHostUtil = {}));
867
- var TA_ASK_ENTRY = "ta-ask";
868
- var TaAskUtil;
869
- (function(TaAskUtil2) {
870
- const LENGTH = 120;
871
- function entry(question) {
872
- const line = question.replace(/\s+/g, " ").trim();
873
- return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
874
- }
875
- TaAskUtil2.entry = entry;
876
- function asking(entries) {
877
- var _a;
878
- for (let i = entries.length - 1;i >= 0; i--) {
879
- const entry2 = entries[i];
880
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
881
- return;
882
- }
883
- if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
884
- return read(entry2);
885
- }
886
- }
887
- return;
888
- }
889
- TaAskUtil2.asking = asking;
890
- function next(asked, entry2) {
891
- var _a;
892
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
893
- return;
894
- }
895
- return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
896
- }
897
- TaAskUtil2.next = next;
898
- function read(found) {
899
- var _a;
900
- const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
901
- if (typeof question !== "string" || !question.trim()) {
902
- return;
903
- }
904
- const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
905
- return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
906
- }
907
- })(TaAskUtil || (TaAskUtil = {}));
908
774
  // ../ta-protocol/esm/common/ta-protocol.js
909
775
  var TaServer = Symbol("TaServer");
910
776
  var TaClient = Symbol("TaClient");
@@ -1090,6 +956,176 @@ var TaSkillUse;
1090
956
  }
1091
957
  TaSkillUse2.command = command;
1092
958
  })(TaSkillUse || (TaSkillUse = {}));
959
+
960
+ // ../ta-protocol/esm/common/presence-protocol.js
961
+ var TaPresenceServer = Symbol("TaPresenceServer");
962
+ var TaMessageAuthor;
963
+ (function(TaMessageAuthor2) {
964
+ const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
965
+ const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
966
+ function strip(message) {
967
+ const context = TaMessageContext.read(message);
968
+ if (context === undefined || !LINE.test(context)) {
969
+ return message;
970
+ }
971
+ const kept = context.replace(LINES, "").replace(/\n+$/, "");
972
+ const body = TaMessageContext.strip(message);
973
+ return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
974
+ }
975
+ TaMessageAuthor2.strip = strip;
976
+ function mark(message, id, name) {
977
+ const plain = strip(message);
978
+ if (/^[/!]/.test(plain)) {
979
+ return plain;
980
+ }
981
+ const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
982
+ const context = TaMessageContext.read(plain);
983
+ return TaMessageContext.wrap(context === undefined ? line : `${context}
984
+ ${line}`, TaMessageContext.strip(plain));
985
+ }
986
+ TaMessageAuthor2.mark = mark;
987
+ function of(message) {
988
+ var _a;
989
+ const context = TaMessageContext.read(message);
990
+ const match = context === undefined ? null : LINE.exec(context);
991
+ return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
992
+ }
993
+ TaMessageAuthor2.of = of;
994
+ })(TaMessageAuthor || (TaMessageAuthor = {}));
995
+ // ../ta-protocol/esm/common/relay-protocol.js
996
+ var TaRelayServer = Symbol("TaRelayServer");
997
+ // ../ta-protocol/esm/common/remote-protocol.js
998
+ var TaRemoteServer = Symbol("TaRemoteServer");
999
+ // ../ta-protocol/esm/common/room-protocol.js
1000
+ var TaRoomServer = Symbol("TaRoomServer");
1001
+ var TaRoomWatchUtil;
1002
+ (function(TaRoomWatchUtil2) {
1003
+ function of(messages, state) {
1004
+ const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
1005
+ return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
1006
+ }
1007
+ TaRoomWatchUtil2.of = of;
1008
+ function union(watches) {
1009
+ let messages = false;
1010
+ const state = [];
1011
+ for (const watch of watches) {
1012
+ messages || (messages = watch.messages);
1013
+ state.push(...watch.state);
1014
+ }
1015
+ return of(messages, messages ? [] : state);
1016
+ }
1017
+ TaRoomWatchUtil2.union = union;
1018
+ function same(a, b) {
1019
+ return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
1020
+ `) === b.state.join(`
1021
+ `);
1022
+ }
1023
+ TaRoomWatchUtil2.same = same;
1024
+ function hears(watch, event) {
1025
+ if (event.type === "message") {
1026
+ return watch.messages;
1027
+ }
1028
+ if (event.type === "state") {
1029
+ return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
1030
+ }
1031
+ return true;
1032
+ }
1033
+ TaRoomWatchUtil2.hears = hears;
1034
+ })(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
1035
+ // ../ta-protocol/esm/common/settings-protocol.js
1036
+ var TaSettingsServer = Symbol("TaSettingsServer");
1037
+ // ../ta-protocol/esm/common/ta-extension-host.js
1038
+ var TA_HOST_EVENT = "ta:host";
1039
+ var TaHostUtil;
1040
+ (function(TaHostUtil2) {
1041
+ TaHostUtil2.WAIT_MS = 1000;
1042
+ function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
1043
+ return new Promise((resolve) => {
1044
+ let heard = false;
1045
+ let answered = false;
1046
+ const timer = setTimeout(() => resolve(undefined), waitMs);
1047
+ const request = {
1048
+ name,
1049
+ heard: () => {
1050
+ heard = true;
1051
+ },
1052
+ resolve: (answer) => {
1053
+ answered = true;
1054
+ clearTimeout(timer);
1055
+ resolve(answer);
1056
+ }
1057
+ };
1058
+ events.emit(TA_HOST_EVENT, request);
1059
+ if (!heard && !answered) {
1060
+ clearTimeout(timer);
1061
+ resolve(undefined);
1062
+ }
1063
+ });
1064
+ }
1065
+ TaHostUtil2.reach = reach;
1066
+ function marked(systemPrompt, mark) {
1067
+ return role(systemPrompt).includes(mark);
1068
+ }
1069
+ TaHostUtil2.marked = marked;
1070
+ function role(systemPrompt) {
1071
+ if (!systemPrompt) {
1072
+ return "";
1073
+ }
1074
+ const open = `<addendum>
1075
+ `;
1076
+ const start = systemPrompt.indexOf(open);
1077
+ const context = systemPrompt.indexOf(`<project_context>
1078
+ `);
1079
+ if (start < 0 || context >= 0 && context < start) {
1080
+ return "";
1081
+ }
1082
+ const end = systemPrompt.indexOf(`
1083
+ </addendum>`, start);
1084
+ return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
1085
+ }
1086
+ TaHostUtil2.role = role;
1087
+ })(TaHostUtil || (TaHostUtil = {}));
1088
+ var TA_ASK_ENTRY = "ta-ask";
1089
+ var TaAskUtil;
1090
+ (function(TaAskUtil2) {
1091
+ const LENGTH = 120;
1092
+ function entry(question) {
1093
+ const line = question.replace(/\s+/g, " ").trim();
1094
+ return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
1095
+ }
1096
+ TaAskUtil2.entry = entry;
1097
+ function asking(entries) {
1098
+ var _a;
1099
+ for (let i = entries.length - 1;i >= 0; i--) {
1100
+ const entry2 = entries[i];
1101
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
1102
+ return;
1103
+ }
1104
+ if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
1105
+ return read(entry2);
1106
+ }
1107
+ }
1108
+ return;
1109
+ }
1110
+ TaAskUtil2.asking = asking;
1111
+ function next(asked, entry2) {
1112
+ var _a;
1113
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
1114
+ return;
1115
+ }
1116
+ return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
1117
+ }
1118
+ TaAskUtil2.next = next;
1119
+ function read(found) {
1120
+ var _a;
1121
+ const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
1122
+ if (typeof question !== "string" || !question.trim()) {
1123
+ return;
1124
+ }
1125
+ const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
1126
+ return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
1127
+ }
1128
+ })(TaAskUtil || (TaAskUtil = {}));
1093
1129
  // ../ta-protocol/esm/common/team-protocol.js
1094
1130
  var TA_UNDECLARED = "extensions.install";
1095
1131
  var TaPermissionUtil;
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-games",
3
- "version": "4.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: games and game-like extensions on Phaser and Three.js, the game engines of Ta's web page, with the ta-game skill and the Games page",
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-glance",
3
- "version": "4.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: replies lead with the answer, short, and show results as cards (key numbers, files, steps, comparisons, choices) rather than paragraphs",
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",
@@ -61,6 +61,7 @@ The hosts of other packages call it with `callPackageHost('@celljs/ta-initiative
61
61
  - `offer({ kind, title, why, evidence?, cwd?, key?, action?, undo?, expiresAt?, kindTitle?, inTurn?, done? })` → `{ id, delivered, state }`: `action` is `{ type: 'call', package, method, params }`, `{ type: 'prompt', prompt, cwd? }` (run in a new conversation) or `{ type: 'session', sessionFile, prompt }` (sent to that conversation as the user's message; `inTurn`: the turn that offers it does it itself at Do it, tell me; `done`: it did already); `undo` is `{ package, method, params }` or `{ type: 'session', sessionFile, prompt }`, a param `"$result.id"` being the `id` of what the action returned. Offered again with the same `key` while one waits, it is not repeated. A proposal without `action` is never done on its own.
62
62
  - `record({ kind, title, why, outcome: 'accepted' | 'declined' })`: what the user decided in a card of your own (the skill card of ta-recall says so this way).
63
63
  - `decide(id, 'accept' | 'decline' | 'always' | 'never')`, `undo(id)`, `setLevel(kind, level | null)`, `setMode(mode)`, `kinds()`.
64
+ - `proposals()`: the proposals kept and how each ended, newest last. Another package (the brief of ta-recall) reads them so, not by the data of this package.
64
65
  - The review: `reviewStatus()`, `reviewNow()`, `setPace(days, reason)`, `setProfile(profile)`.
65
66
 
66
67
  Design records: `docs/design/ta-initiative.md` (the whole), `docs/design/ta-evolve.md` (the weekly review and what Ta learns of you).
@@ -61,6 +61,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
61
61
  - `offer({ kind, title, why, evidence?, cwd?, key?, action?, undo?, expiresAt?, kindTitle?, inTurn?, done? })` → `{ id, delivered, state }`:`action` 是 `{ type: 'call', package, method, params }`、`{ type: 'prompt', prompt, cwd? }`(在新对话里运行)或 `{ type: 'session', sessionFile, prompt }`(作为用户消息发进那个对话;`inTurn` 表示提出它的这一轮在"先做后报"时自己做,`done` 表示已经做了);`undo` 是 `{ package, method, params }` 或 `{ type: 'session', sessionFile, prompt }`,参数里的 `"$result.id"` 换成 action 返回值的 `id`。同一个 `key` 还在等时再提不会重复。没有 `action` 的提议不会被直接做。
62
62
  - `record({ kind, title, why, outcome: 'accepted' | 'declined' })`:用户在你自己的卡片上做了决定(ta-recall 的技能卡就这样回报)。
63
63
  - `decide(id, 'accept' | 'decline' | 'always' | 'never')`、`undo(id)`、`setLevel(kind, level | null)`、`setMode(mode)`、`kinds()`。
64
+ - `proposals()`:保留的提议及结局,新的在后。别的包(ta-recall 的简报)这样读,不读本包的数据。
64
65
  - 回顾:`reviewStatus()`、`reviewNow()`、`setPace(days, reason)`、`setProfile(profile)`。
65
66
 
66
67
  设计记录:`docs/design/ta-initiative.md`(整体)、`docs/design/ta-evolve.md`(每周回顾与用户画像)。
@@ -1123,6 +1123,9 @@ class InitiativeHost {
1123
1123
  setMode(mode) {
1124
1124
  return this.book.setMode(mode);
1125
1125
  }
1126
+ async proposals() {
1127
+ return this.book.list();
1128
+ }
1126
1129
  reviewStatus() {
1127
1130
  return this.review.reviewStatus();
1128
1131
  }
@@ -25,6 +25,7 @@ declare const en: {
25
25
  inboxWaiting: string;
26
26
  inboxDone: string;
27
27
  inboxEmpty: string;
28
+ inboxEmptyHint: string;
28
29
  accept: string;
29
30
  decline: string;
30
31
  always: string;
@@ -27,7 +27,8 @@ const en = {
27
27
  inboxTitle: 'Suggestions',
28
28
  inboxWaiting: 'Waiting for you',
29
29
  inboxDone: 'Done on its own',
30
- inboxEmpty: 'Nothing waits. When Ta finds work you ask for again and again, it suggests it here.',
30
+ inboxEmpty: 'No suggestions yet',
31
+ inboxEmptyHint: 'When Ta finds work you ask for again and again, it suggests it here.',
31
32
  accept: 'OK',
32
33
  decline: 'No',
33
34
  always: 'Always do it',
@@ -99,7 +100,8 @@ const zh = {
99
100
  inboxTitle: 'Ta 的建议',
100
101
  inboxWaiting: '等你决定',
101
102
  inboxDone: '已替你做',
102
- inboxEmpty: '暂时没有建议。Ta 发现你反复交代的事,会在这里提出。',
103
+ inboxEmpty: '暂时没有建议',
104
+ inboxEmptyHint: 'Ta 发现你反复交代的事,会在这里提出。',
103
105
  accept: '好',
104
106
  decline: '不用',
105
107
  always: '以后直接做',
@@ -105,7 +105,7 @@ function Inbox({ pi, store }) {
105
105
  }
106
106
  }, [store, state.loaded, state.proposals]);
107
107
  return (react_1.React.createElement("div", { className: "tin-inbox" },
108
- waiting.length === 0 && done.length === 0 && state.loaded && react_1.React.createElement("div", { className: "tin-empty" }, words.inboxEmpty),
108
+ waiting.length === 0 && done.length === 0 && state.loaded && react_1.React.createElement(pi.ui.Empty, { title: words.inboxEmpty, hint: words.inboxEmptyHint }),
109
109
  waiting.length > 0 && (react_1.React.createElement("section", null,
110
110
  react_1.React.createElement("h3", { className: "tin-head" }, words.inboxWaiting),
111
111
  react_1.React.createElement("ul", { className: "tin-list" }, waiting.map(proposal => (react_1.React.createElement(Waiting, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds, away: true })))))),
@@ -309,6 +309,8 @@ export interface InitiativeService {
309
309
  /** The user chose the level of a kind, or gave it back to Ta (null). */
310
310
  setLevel(kind: string, level: Level | null): Promise<KindStatus>;
311
311
  setMode(mode: Mode): Promise<void>;
312
+ /** The proposals kept and how each ended, newest last: how another package reads them (ta-recall's brief), not by this package's data. */
313
+ proposals(): Promise<Proposal[]>;
312
314
  reviewStatus(): Promise<ReviewStatus>;
313
315
  /** Starts a review now, whatever the time; resolves with the session file of the conversation of the reviews. */
314
316
  reviewNow(): Promise<string | undefined>;
@@ -27,6 +27,7 @@ export declare class InitiativeHost implements InitiativeService, TaPackageServi
27
27
  undo(id: string): Promise<Proposal>;
28
28
  setLevel(kind: string, level: Level | null): Promise<KindStatus>;
29
29
  setMode(mode: Mode): Promise<void>;
30
+ proposals(): Promise<Proposal[]>;
30
31
  reviewStatus(): Promise<ReviewStatus>;
31
32
  reviewNow(): Promise<string | undefined>;
32
33
  setPace(days: number, reason: string): Promise<number>;