@celljs/ta 4.9.1 → 4.10.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 (289) hide show
  1. package/dist/cli.mjs +69 -15
  2. package/dist/gateway.mjs +144 -20
  3. package/dist/pi/CHANGELOG.md +7 -0
  4. package/dist/pi/dist/bundle/chunks/anthropic-messages-CA3HHOL3.js +6 -0
  5. package/dist/pi/dist/bundle/chunks/{azure-openai-responses-FSC6BAW3.js → azure-openai-responses-76TWS6DT.js} +1 -1
  6. package/dist/pi/dist/bundle/chunks/bedrock-converse-stream.js +3 -3
  7. package/dist/pi/dist/bundle/chunks/chunk-4KSTFUIK.js +19 -0
  8. package/dist/pi/dist/bundle/chunks/chunk-4UNPP53I.js +55 -0
  9. package/dist/pi/dist/bundle/chunks/chunk-AUUCDC7R.js +4 -0
  10. package/dist/pi/dist/bundle/chunks/{chunk-V6KH5QG4.js → chunk-BAC3QPNW.js} +1 -1
  11. package/dist/pi/dist/bundle/chunks/{chunk-4EYXVSA5.js → chunk-FF6XOTWB.js} +9 -9
  12. package/dist/pi/dist/bundle/chunks/chunk-FMPAMX2W.js +82 -0
  13. package/dist/pi/dist/bundle/chunks/chunk-GFUN2N5K.js +2 -0
  14. package/dist/pi/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
  15. package/dist/pi/dist/bundle/chunks/{chunk-C2WU32PX.js → chunk-IQUU5XIT.js} +1 -1
  16. package/dist/pi/dist/bundle/chunks/{chunk-EBFHJFEE.js → chunk-LQLJ7CDW.js} +1 -1
  17. package/dist/pi/dist/bundle/chunks/chunk-MMDXLZVS.js +30 -0
  18. package/dist/pi/dist/bundle/chunks/{chunk-GN3QYODH.js → chunk-QN4TOIZN.js} +1 -1
  19. package/dist/pi/dist/bundle/chunks/chunk-RKNK4Y6L.js +2 -0
  20. package/dist/pi/dist/bundle/chunks/{chunk-B46VJEHW.js → chunk-V7SLUK6A.js} +1 -1
  21. package/dist/pi/dist/bundle/chunks/chunk-VEJDBY3O.js +1237 -0
  22. package/dist/pi/dist/bundle/chunks/chunk-VKJQ6CME.js +8 -0
  23. package/dist/pi/dist/bundle/chunks/{chunk-3TGLJEWK.js → chunk-WL4TUXY7.js} +1 -1
  24. package/dist/pi/dist/bundle/chunks/{chunk-YZKQS34S.js → chunk-Y55SJART.js} +5 -1
  25. package/dist/pi/dist/bundle/chunks/{chunk-EOO47QGR.js → chunk-ZBIZYD6W.js} +1 -1
  26. package/dist/pi/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
  27. package/dist/pi/dist/bundle/chunks/chunk-ZGYS4UTC.js +2 -0
  28. package/dist/pi/dist/bundle/chunks/{cli-MCOUW5WS.js → cli-7RHMDOHL.js} +7 -7
  29. package/dist/pi/dist/bundle/chunks/{cloudflare-workers-ai-system-one-WLAFJSP6.js → cloudflare-workers-ai-system-one-U4J7D646.js} +1 -1
  30. package/dist/pi/dist/bundle/chunks/codemode-worker.js +2 -0
  31. package/dist/pi/dist/bundle/chunks/{easter-egg-3d-WMBNSJ4M.js → easter-egg-3d-GEVPKQF6.js} +1 -1
  32. package/dist/pi/dist/bundle/chunks/{execute-4CEBORGZ.js → execute-L2EEDV3L.js} +5 -3
  33. package/dist/pi/dist/bundle/chunks/github-copilot.js +1 -1
  34. package/dist/pi/dist/bundle/chunks/{google-generative-ai-INGKNW72.js → google-generative-ai-D5B6W47J.js} +1 -1
  35. package/dist/pi/dist/bundle/chunks/{google-vertex-IBTX6MBF.js → google-vertex-U4H5YDEW.js} +1 -1
  36. package/dist/pi/dist/bundle/chunks/{llama-cpp-classify-V5U3QKXI.js → llama-cpp-classify-EJXCQRUQ.js} +1 -1
  37. package/dist/pi/dist/bundle/chunks/{mistral-conversations-S4OWXIXQ.js → mistral-conversations-S277EKLB.js} +1 -1
  38. package/dist/pi/dist/bundle/chunks/openai-codex-responses-TEQRB65N.js +10 -0
  39. package/dist/pi/dist/bundle/chunks/{openai-completions-EJNYB6IX.js → openai-completions-HRZOSLBO.js} +3 -3
  40. package/dist/pi/dist/bundle/chunks/{openai-decisions-IXI34BYG.js → openai-decisions-F66BDLOM.js} +1 -1
  41. package/dist/pi/dist/bundle/chunks/openai-responses-BAKFWTGE.js +4 -0
  42. package/dist/pi/dist/bundle/chunks/{openrouter-images-PISKSFMS.js → openrouter-images-VXF5TVIK.js} +1 -1
  43. package/dist/pi/dist/bundle/chunks/{pi-messages-NORUKF4E.js → pi-messages-UBJKNDRN.js} +1 -1
  44. package/dist/pi/dist/bundle/chunks/{runtime-FQB7RU7U.js → runtime-J5ZSBGTX.js} +1 -1
  45. package/dist/pi/dist/bundle/chunks/{typesafe-system-one-CHVC2UUI.js → typesafe-system-one-56TEMIHL.js} +1 -1
  46. package/dist/pi/dist/bundle/chunks/virtual-modules-KITQRTYM.js +2 -0
  47. package/dist/pi/dist/bundle/cli-runtime.js +1 -1
  48. package/dist/pi/dist/bundle/index.js +1 -1
  49. package/dist/pi/dist/bundle/rpc-entry.js +1 -1
  50. package/dist/pi/docs/cli.md +14 -1
  51. package/dist/pi/docs/extensions.md +27 -7
  52. package/dist/pi/docs/keybindings.md +1 -1
  53. package/dist/pi/docs/llama-cpp.md +5 -8
  54. package/dist/pi/docs/models-configuration.md +6 -1
  55. package/dist/pi/docs/models.md +2 -1
  56. package/dist/pi/docs/prompt-templates.md +1 -1
  57. package/dist/pi/docs/providers.md +1 -1
  58. package/dist/pi/docs/rpc.md +4 -2
  59. package/dist/pi/docs/sessions.md +7 -1
  60. package/dist/pi/docs/settings.md +1 -1
  61. package/dist/pi/docs/tui.md +1 -1
  62. package/dist/pi/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  63. package/dist/pi/examples/extensions/custom-provider-anthropic/package.json +1 -1
  64. package/dist/pi/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  65. package/dist/pi/examples/extensions/gondolin/package-lock.json +2 -2
  66. package/dist/pi/examples/extensions/gondolin/package.json +1 -1
  67. package/dist/pi/examples/extensions/plan-mode/index.ts +23 -13
  68. package/dist/pi/examples/extensions/plan-mode/utils.ts +42 -16
  69. package/dist/pi/examples/extensions/subagent/README.md +14 -11
  70. package/dist/pi/examples/extensions/subagent/index.ts +392 -171
  71. package/dist/pi/examples/extensions/with-deps/package-lock.json +2 -2
  72. package/dist/pi/examples/extensions/with-deps/package.json +1 -1
  73. package/dist/pi/examples/tsconfig.json +63 -35
  74. package/dist/pi/package.json +1 -1
  75. package/dist/pi/packages/ta-agents/extension/index.mjs +19 -1
  76. package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +2 -0
  77. package/dist/pi/packages/ta-agents/lib/agent-bindings.js +4 -0
  78. package/dist/pi/packages/ta-agents/lib/extension.js +15 -1
  79. package/dist/pi/packages/ta-agents/lib/texts.d.ts +4 -0
  80. package/dist/pi/packages/ta-agents/lib/texts.js +4 -0
  81. package/dist/pi/packages/ta-agents/package.json +3 -3
  82. package/dist/pi/packages/ta-bots/extension/index.mjs +46 -0
  83. package/dist/pi/packages/ta-bots/host/index.mjs +46 -0
  84. package/dist/pi/packages/ta-bots/package.json +1 -1
  85. package/dist/pi/packages/ta-changes/package.json +1 -1
  86. package/dist/pi/packages/ta-channels/README.en.md +2 -2
  87. package/dist/pi/packages/ta-channels/README.md +2 -2
  88. package/dist/pi/packages/ta-channels/host/index.mjs +50 -0
  89. package/dist/pi/packages/ta-channels/lib/create.js +11 -3
  90. package/dist/pi/packages/ta-channels/lib/faces.js +1 -1
  91. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +4 -8
  92. package/dist/pi/packages/ta-channels/lib/i18n.js +8 -16
  93. package/dist/pi/packages/ta-channels/lib/more-menu.d.ts +3 -2
  94. package/dist/pi/packages/ta-channels/lib/more-menu.js +21 -29
  95. package/dist/pi/packages/ta-channels/lib/room.js +13 -8
  96. package/dist/pi/packages/ta-channels/lib/sidebar.js +184 -74
  97. package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
  98. package/dist/pi/packages/ta-channels/lib/style.js +83 -37
  99. package/dist/pi/packages/ta-channels/lib/tasks.js +3 -4
  100. package/dist/pi/packages/ta-channels/lib/views.d.ts +49 -1
  101. package/dist/pi/packages/ta-channels/lib/views.js +100 -1
  102. package/dist/pi/packages/ta-channels/package.json +1 -1
  103. package/dist/pi/packages/ta-channels/web/index.js +398 -243
  104. package/dist/pi/packages/ta-computer-use/package.json +2 -2
  105. package/dist/pi/packages/ta-cron/README.en.md +2 -2
  106. package/dist/pi/packages/ta-cron/README.md +2 -2
  107. package/dist/pi/packages/ta-cron/host/index.mjs +6 -0
  108. package/dist/pi/packages/ta-cron/lib/editor.js +60 -27
  109. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +12 -1
  110. package/dist/pi/packages/ta-cron/lib/i18n.js +24 -2
  111. package/dist/pi/packages/ta-cron/lib/page.d.ts +33 -3
  112. package/dist/pi/packages/ta-cron/lib/page.js +119 -4
  113. package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
  114. package/dist/pi/packages/ta-cron/lib/style.js +166 -46
  115. package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +15 -0
  116. package/dist/pi/packages/ta-cron/lib/task-extension.js +56 -0
  117. package/dist/pi/packages/ta-cron/lib/task-util.d.ts +2 -0
  118. package/dist/pi/packages/ta-cron/lib/task-util.js +11 -0
  119. package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +4 -1
  120. package/dist/pi/packages/ta-cron/lib/tasks-view.js +102 -66
  121. package/dist/pi/packages/ta-cron/package.json +1 -1
  122. package/dist/pi/packages/ta-cron/web/index.js +928 -404
  123. package/dist/pi/packages/ta-extensions/README.en.md +3 -1
  124. package/dist/pi/packages/ta-extensions/README.md +3 -1
  125. package/dist/pi/packages/ta-extensions/lib/actions.js +3 -1
  126. package/dist/pi/packages/ta-extensions/lib/composer.d.ts +17 -0
  127. package/dist/pi/packages/ta-extensions/lib/composer.js +84 -0
  128. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +9 -0
  129. package/dist/pi/packages/ta-extensions/lib/i18n.js +18 -0
  130. package/dist/pi/packages/ta-extensions/lib/index.js +4 -0
  131. package/dist/pi/packages/ta-extensions/lib/make-model.d.ts +20 -0
  132. package/dist/pi/packages/ta-extensions/lib/make-model.js +43 -0
  133. package/dist/pi/packages/ta-extensions/lib/page.js +42 -18
  134. package/dist/pi/packages/ta-extensions/lib/settings.d.ts +4 -0
  135. package/dist/pi/packages/ta-extensions/lib/settings.js +44 -0
  136. package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
  137. package/dist/pi/packages/ta-extensions/lib/style.js +10 -4
  138. package/dist/pi/packages/ta-extensions/package.json +1 -1
  139. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +7 -3
  140. package/dist/pi/packages/ta-extensions/web/index.js +269 -26
  141. package/dist/pi/packages/ta-launcher/package.json +1 -1
  142. package/dist/pi/packages/ta-workspace/README.md +1 -1
  143. package/dist/pi/packages/ta-workspace/README.zh-cn.md +1 -1
  144. package/dist/pi/packages/ta-workspace/lib/bytes.d.ts +11 -0
  145. package/dist/pi/packages/ta-workspace/lib/bytes.js +40 -0
  146. package/dist/pi/packages/ta-workspace/lib/common.d.ts +2 -1
  147. package/dist/pi/packages/ta-workspace/lib/common.js +15 -37
  148. package/dist/pi/packages/ta-workspace/lib/editors.js +12 -3
  149. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +1 -2
  150. package/dist/pi/packages/ta-workspace/lib/i18n.js +2 -4
  151. package/dist/pi/packages/ta-workspace/lib/index.js +15 -0
  152. package/dist/pi/packages/ta-workspace/lib/launcher.d.ts +9 -0
  153. package/dist/pi/packages/ta-workspace/lib/launcher.js +39 -0
  154. package/dist/pi/packages/ta-workspace/lib/preview.d.ts +13 -3
  155. package/dist/pi/packages/ta-workspace/lib/preview.js +17 -14
  156. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  157. package/dist/pi/packages/ta-workspace/lib/style.js +20 -7
  158. package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts +18 -0
  159. package/dist/pi/packages/ta-workspace/lib/util/keys.js +23 -0
  160. package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +19 -0
  161. package/dist/pi/packages/ta-workspace/lib/util/preview.js +32 -1
  162. package/dist/pi/packages/ta-workspace/package.json +1 -1
  163. package/dist/pi/packages/ta-workspace/web/index.js +235 -67
  164. package/dist/public/assets/{abnfDiagram-S7VZAUFO-EVMX_yOb.js → abnfDiagram-S7VZAUFO-BmIko5tV.js} +1 -1
  165. package/dist/public/assets/{architecture-WOLXFQ4H-CDgbgZ_o.js → architecture-WOLXFQ4H-XgsdQ7ul.js} +1 -1
  166. package/dist/public/assets/{architectureDiagram-YGSQEFNW-dHreaCWz.js → architectureDiagram-YGSQEFNW--sVhMS03.js} +1 -1
  167. package/dist/public/assets/{blockDiagram-APKKGZFW-D6FhzBDq.js → blockDiagram-APKKGZFW-8f9b-9k2.js} +1 -1
  168. package/dist/public/assets/browser-DOHZ0JCf.js +12 -0
  169. package/dist/public/assets/{c4Diagram-KJ2TOQU5-BFpcr8Cs.js → c4Diagram-KJ2TOQU5-CwYQ0Jfy.js} +1 -1
  170. package/dist/public/assets/{chunk-6MUBBAK2-BczXkMV-.js → chunk-6MUBBAK2-7Y9ezehi.js} +1 -1
  171. package/dist/public/assets/{chunk-AXFCVDMN-CjJsv3jB.js → chunk-AXFCVDMN-CZIH4pWz.js} +1 -1
  172. package/dist/public/assets/{chunk-BG4553SI-FBaleaLz.js → chunk-BG4553SI-DsNATY2m.js} +1 -1
  173. package/dist/public/assets/{chunk-DQASFODM-BFdXY5sX.js → chunk-DQASFODM-CoXkfYE-.js} +1 -1
  174. package/dist/public/assets/{chunk-HFQBQIA3-C5cwK-Fg.js → chunk-HFQBQIA3-C5OLqki8.js} +1 -1
  175. package/dist/public/assets/{chunk-KQLB2F66-BUek3IRk.js → chunk-KQLB2F66-DMHuYGEF.js} +1 -1
  176. package/dist/public/assets/{chunk-KS47KZWR-BxsYBzt6.js → chunk-KS47KZWR-BKeOttO1.js} +1 -1
  177. package/dist/public/assets/{chunk-LEVMRMFU-Bdcwz9fS.js → chunk-LEVMRMFU-D6zCwkk7.js} +1 -1
  178. package/dist/public/assets/{chunk-M57EVK23-kkpP5oug.js → chunk-M57EVK23-B5-QqcZg.js} +1 -1
  179. package/dist/public/assets/{chunk-OY52VR5R-CFhQgxmD.js → chunk-OY52VR5R-DQrq3n0T.js} +1 -1
  180. package/dist/public/assets/{chunk-QB3YPZ4I-BVXqu0eC.js → chunk-QB3YPZ4I-j6ZT7EDR.js} +1 -1
  181. package/dist/public/assets/{chunk-R3KSYZAL-B7SUqqLI.js → chunk-R3KSYZAL-D5MXUO36.js} +1 -1
  182. package/dist/public/assets/{chunk-STOXU5M4-B3abfbnH.js → chunk-STOXU5M4-DaBkw4dD.js} +1 -1
  183. package/dist/public/assets/{chunk-TU62E6Q5-C9NqnUav.js → chunk-TU62E6Q5-vXcRfGci.js} +1 -1
  184. package/dist/public/assets/{chunk-X4PVCEUW-BeLfETDx.js → chunk-X4PVCEUW-CIh6H4Y2.js} +1 -1
  185. package/dist/public/assets/{chunk-XXDRQBXY-DXai1i8p.js → chunk-XXDRQBXY-C_Vwv1FM.js} +1 -1
  186. package/dist/public/assets/{classDiagram-v2-L25IHNXF-Zj6ne_tC.js → classDiagram-v2-L25IHNXF-DccDWEJn.js} +1 -1
  187. package/dist/public/assets/{cose-bilkent-JH36ORCC-C0-TjqfJ.js → cose-bilkent-JH36ORCC-BX47lumZ.js} +1 -1
  188. package/dist/public/assets/cynefin-EF2NZ3EQ-MaI-3dMQ.js +1 -0
  189. package/dist/public/assets/{cynefinDiagram-L36ESFBY-BnqxfzPa.js → cynefinDiagram-L36ESFBY-BE6WOGxW.js} +1 -1
  190. package/dist/public/assets/{d3-selection-DfFLTR9d.js → d3-selection-ZcE6yRN5.js} +1 -1
  191. package/dist/public/assets/{dagre-SPEB5RXH-kI17e5cH.js → dagre-SPEB5RXH-CE6SOOcN.js} +1 -1
  192. package/dist/public/assets/{diagram-3B7GL73J-DgPjeLA5.js → diagram-3B7GL73J-xC8VtiYL.js} +1 -1
  193. package/dist/public/assets/{diagram-DNEMPZML-CRhPfa0I.js → diagram-DNEMPZML-4dmcBbjL.js} +1 -1
  194. package/dist/public/assets/{diagram-L3MUGCDN-ExuTg12b.js → diagram-L3MUGCDN-D14Yn3sQ.js} +1 -1
  195. package/dist/public/assets/{diagram-LA4NIPWU-Dgx5xNiY.js → diagram-LA4NIPWU-GxSXIhsK.js} +1 -1
  196. package/dist/public/assets/{diagram-MHCOC4E2-BuifkUTl.js → diagram-MHCOC4E2-Cm7Prlpc.js} +1 -1
  197. package/dist/public/assets/{diagram-XPFHEONP-CFEaBo7z.js → diagram-XPFHEONP-mkUnnKFu.js} +1 -1
  198. package/dist/public/assets/{dist-C-iJHcSK.js → dist-acJS-BlA.js} +1 -1
  199. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D-hp5yNt.js → ebnfDiagram-UZSYDL2S-m77ua3UQ.js} +1 -1
  200. package/dist/public/assets/{editor.api-BopUWpqY.js → editor.api-CljTm-EQ.js} +1 -1
  201. package/dist/public/assets/{elk-XV6XMXQE-CBbk_IpU.js → elk-XV6XMXQE-DsQY1hw9.js} +1 -1
  202. package/dist/public/assets/{erDiagram-EYBAPDEH-B02R_WWE.js → erDiagram-EYBAPDEH-CV8gJM0P.js} +1 -1
  203. package/dist/public/assets/{eventmodeling-K75KTNOO-aCZfYnCI.js → eventmodeling-K75KTNOO-C1pymbUr.js} +1 -1
  204. package/dist/public/assets/flowDiagram-MALGAFMO-shBnAQFk.js +1 -0
  205. package/dist/public/assets/{freemarker2-DMN60LeK.js → freemarker2-DYJXaMHN.js} +1 -1
  206. package/dist/public/assets/{ganttDiagram-23REXITY-DioU8TlD.js → ganttDiagram-23REXITY-CppxOWRh.js} +1 -1
  207. package/dist/public/assets/gitGraph-VSP46ZUC-BtQWboBz.js +1 -0
  208. package/dist/public/assets/{gitGraphDiagram-STJD7YCW--q3ctg6y.js → gitGraphDiagram-STJD7YCW-CrQrZhcP.js} +1 -1
  209. package/dist/public/assets/{handlebars-B_-qdvpB.js → handlebars-DZCnH9e2.js} +1 -1
  210. package/dist/public/assets/{html-BN8Ah3Js.js → html-DuzouNES.js} +1 -1
  211. package/dist/public/assets/{index-B3A--ac8.js → index-B7OYKvCE.js} +2 -2
  212. package/dist/public/assets/info-OHQRW6UA-CDSLjba_.js +1 -0
  213. package/dist/public/assets/{infoDiagram-KBXO4MBG-CGXteYo9.js → infoDiagram-KBXO4MBG-6pby19tQ.js} +1 -1
  214. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-DM2LmOAc.js → ishikawaDiagram-M35NCXHK-Duf8c8rQ.js} +1 -1
  215. package/dist/public/assets/{javascript-BlizGb0q.js → javascript-2d_L6cVd.js} +1 -1
  216. package/dist/public/assets/{journeyDiagram-OPLOXDXO-CNITRtGl.js → journeyDiagram-OPLOXDXO-Dvv-xzNo.js} +1 -1
  217. package/dist/public/assets/{jsonMode-CEUmT5sN.js → jsonMode-CFadYXyI.js} +1 -1
  218. package/dist/public/assets/{kanban-definition-BZKZHSQY-BPUuS9um.js → kanban-definition-BZKZHSQY-Dsk6F-TT.js} +1 -1
  219. package/dist/public/assets/{liquid-BbyLjUbE.js → liquid-Din4CF34.js} +1 -1
  220. package/dist/public/assets/{mdx-DiQz7Q35.js → mdx-DivDuCWI.js} +1 -1
  221. package/dist/public/assets/{mermaid-parser.core-Dum100hC.js → mermaid-parser.core-BfCv4CYZ.js} +3 -3
  222. package/dist/public/assets/{mermaid.core-BWmWf6XO.js → mermaid.core-DC20ZwJj.js} +4 -4
  223. package/dist/public/assets/{mindmap-definition-I2QAS2VK-L8HyYUDY.js → mindmap-definition-I2QAS2VK-DRZRrJU_.js} +1 -1
  224. package/dist/public/assets/module-BAQaY56j.js +1 -0
  225. package/dist/public/assets/module-DxRGg3ED.js +1947 -0
  226. package/dist/public/assets/{monaco-zOOyBmxy.js → monaco-D1d6MOPe.js} +3 -3
  227. package/dist/public/assets/packet-JDAUHWVQ-dYb4P9eU.js +1 -0
  228. package/dist/public/assets/{pegDiagram-FD4XPPHP-CTZKPo0Z.js → pegDiagram-FD4XPPHP-DcGr3Tbk.js} +1 -1
  229. package/dist/public/assets/pie-XZMESJXO-CIompBnc.js +1 -0
  230. package/dist/public/assets/{pieDiagram-J4AKIIQI-DAeT3dFi.js → pieDiagram-J4AKIIQI-GF7pu6ch.js} +1 -1
  231. package/dist/public/assets/{python-C984gt98.js → python-BQbTTTT5.js} +1 -1
  232. package/dist/public/assets/{quadrantDiagram-XTYBLID2--PXxwV1Z.js → quadrantDiagram-XTYBLID2-D-bcu7Ey.js} +1 -1
  233. package/dist/public/assets/radar-ABXABTNO-DiJl7BtK.js +1 -0
  234. package/dist/public/assets/railroad-I3PHUGI6-B5cRBukM.js +1 -0
  235. package/dist/public/assets/{railroad-abnf-LNEFI6M7-BYcFfrCa.js → railroad-abnf-LNEFI6M7-BiBHsI-K.js} +1 -1
  236. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-Cd33qxAm.js → railroad-ebnf-DWYD2UWJ-zKjrfkHs.js} +1 -1
  237. package/dist/public/assets/{railroad-peg-JR7BVNR7-C5TpzaU8.js → railroad-peg-JR7BVNR7-DKuVn0GT.js} +1 -1
  238. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-DlWwjbhH.js → railroadDiagram-MRQ6NCDL-Cyn-16mJ.js} +1 -1
  239. package/dist/public/assets/{razor-BBqMR1Qn.js → razor-DiLk54O0.js} +1 -1
  240. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CsYBy9HS.js → requirementDiagram-Y7LWUY3S-CwU2EBkW.js} +1 -1
  241. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-Baxyb5p9.js → sankeyDiagram-WGJFYUXA-ajf00HyW.js} +1 -1
  242. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-Cq6VeBT_.js → sequenceDiagram-5NDRBG5M-DiX_OIAw.js} +1 -1
  243. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-O60WKaE7.js → stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js} +1 -1
  244. package/dist/public/assets/{swimlanes-UMQ2AFYF-C2nf1-Cc.js → swimlanes-UMQ2AFYF-BGQKSlj7.js} +1 -1
  245. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DxXlavVT.js +8 -0
  246. package/dist/public/assets/{timeline-definition-SEUHKTQE-DEfUG6YH.js → timeline-definition-SEUHKTQE-DhQoApff.js} +1 -1
  247. package/dist/public/assets/treeView-D4JQ5SDB-BOP6mkZC.js +1 -0
  248. package/dist/public/assets/treemap-SAJKECNS-BJxuPMz3.js +1 -0
  249. package/dist/public/assets/{typescript-Gtq7f0aU.js → typescript-COQ1g-up.js} +1 -1
  250. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Gw9DyJcx.js → usecaseDiagram-AFA6YXN4-CmLFzjie.js} +1 -1
  251. package/dist/public/assets/{vennDiagram-NNMJR3RB-Clb3MLWF.js → vennDiagram-NNMJR3RB-DOa6JR5K.js} +1 -1
  252. package/dist/public/assets/wardley-7MLQ67FV-jqlowjVL.js +1 -0
  253. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BrTRpwu2.js → wardleyDiagram-S7YFUSEH-BV7EEShp.js} +1 -1
  254. package/dist/public/assets/{xml-Bx3nk7iG.js → xml-BbvtjuaG.js} +1 -1
  255. package/dist/public/assets/{xychartDiagram-GGNKY7IX-BfjTcIsb.js → xychartDiagram-GGNKY7IX-DtMpPbsq.js} +1 -1
  256. package/dist/public/assets/{yaml-dFLE_rSl.js → yaml-Bw8NFga9.js} +1 -1
  257. package/dist/public/index.html +1 -1
  258. package/dist/public/launch.svg +46 -42
  259. package/dist/serve/index.mjs +1354 -555
  260. package/package.json +25 -25
  261. package/dist/pi/dist/bundle/chunks/anthropic-messages-BWGCKOF4.js +0 -6
  262. package/dist/pi/dist/bundle/chunks/chunk-44DLKSKE.js +0 -1232
  263. package/dist/pi/dist/bundle/chunks/chunk-62VOPMLK.js +0 -65
  264. package/dist/pi/dist/bundle/chunks/chunk-7O7QKK6A.js +0 -2
  265. package/dist/pi/dist/bundle/chunks/chunk-CHWNPHIS.js +0 -82
  266. package/dist/pi/dist/bundle/chunks/chunk-NL4X6LBY.js +0 -4
  267. package/dist/pi/dist/bundle/chunks/chunk-NZY7EIPA.js +0 -4
  268. package/dist/pi/dist/bundle/chunks/chunk-R2EGYMOO.js +0 -7
  269. package/dist/pi/dist/bundle/chunks/chunk-UKVNB6C4.js +0 -2
  270. package/dist/pi/dist/bundle/chunks/chunk-USJZMAIR.js +0 -2
  271. package/dist/pi/dist/bundle/chunks/chunk-VOLAXWGI.js +0 -2
  272. package/dist/pi/dist/bundle/chunks/openai-codex-responses-QAWLOQSN.js +0 -10
  273. package/dist/pi/dist/bundle/chunks/openai-responses-MD3562FB.js +0 -4
  274. package/dist/pi/dist/bundle/chunks/virtual-modules-O76XM3OB.js +0 -2
  275. package/dist/public/assets/browser-y6EDNUmc.js +0 -12
  276. package/dist/public/assets/cynefin-EF2NZ3EQ-CoY4CrZu.js +0 -1
  277. package/dist/public/assets/flowDiagram-MALGAFMO-CATkJShO.js +0 -1
  278. package/dist/public/assets/gitGraph-VSP46ZUC-g4yHXXxx.js +0 -1
  279. package/dist/public/assets/info-OHQRW6UA-CKADJjz4.js +0 -1
  280. package/dist/public/assets/module-CH7IXa5L.js +0 -1781
  281. package/dist/public/assets/module-DNAasuMC.js +0 -1
  282. package/dist/public/assets/packet-JDAUHWVQ-CpKMhX4K.js +0 -1
  283. package/dist/public/assets/pie-XZMESJXO-CW-zGDRd.js +0 -1
  284. package/dist/public/assets/radar-ABXABTNO-Cg8W433p.js +0 -1
  285. package/dist/public/assets/railroad-I3PHUGI6-DriMt2PQ.js +0 -1
  286. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-B46JxqS8.js +0 -8
  287. package/dist/public/assets/treeView-D4JQ5SDB-1LhEWwC9.js +0 -1
  288. package/dist/public/assets/treemap-SAJKECNS-D3t3N7nS.js +0 -1
  289. package/dist/public/assets/wardley-7MLQ67FV-D3sAsd8p.js +0 -1
@@ -23,17 +23,22 @@ exports.STYLE = `
23
23
  .tac-list { flex: 1; min-height: 0; overflow: auto; padding: 2px 0 12px; }
24
24
  .tac-list:has(> .ta-empty:not(.ta-empty-compact)) { display: flex; flex-direction: column; }
25
25
  .tac-list > .tac-view > .tac-form { margin: 2px 10px 8px; }
26
- .tac-double { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; margin: 2px 0 8px; padding: 10px 44px 10px 10px; border: 0; border-radius: 14px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; transition: background 120ms; box-sizing: border-box; }
27
- .tac-double:hover { background: var(--ta-hover); }
28
- .tac-double.tac-selected { background: var(--ta-selected); }
29
- .tac-double-face { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; }
30
- .tac-double-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
26
+ /* The double first, a card of its own: the one the user talks to. --tac-double-bg and -edge change with hover and press. */
27
+ .tac-double { --tac-double-bg: var(--ta-raised); --tac-double-edge: color-mix(in srgb, var(--ta-text) 7%, transparent); display: flex; align-items: center; gap: 14px; width: 100%; min-height: 80px; margin: 4px 0 14px; padding: 12px 44px 12px 12px; border: 1px solid var(--tac-double-edge); border-radius: 18px; background: var(--tac-double-bg); color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; transition: background-color 120ms, border-color 160ms; box-sizing: border-box; }
28
+ :root[data-theme='light'] .tac-double { --tac-double-bg: var(--ta-card); --tac-double-edge: var(--ta-border-muted); }
29
+ .tac-double:hover { --tac-double-bg: var(--ta-hover); }
30
+ .tac-double.tac-selected { --tac-double-edge: color-mix(in srgb, var(--ta-accent) 40%, transparent); }
31
+ /* The dinosaur on a disc of its color, as a profile picture. */
32
+ .tac-double-face { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--ta-accent) 13%, transparent); }
33
+ .tac-double-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
34
+ /* A finger has no … to hover: the card says it opens, as a profile card does. */
35
+ .tac-double-go { display: none; flex: none; margin-right: -2px; color: var(--ta-muted); opacity: 0.7; }
36
+ :root[data-touch] .tac-double-go { display: inline-flex; }
31
37
  .tac-double-row { position: relative; }
32
38
  .tac-pinned { display: inline-flex; flex: none; color: var(--ta-muted); }
33
- .tac-double-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; line-height: calc(20px * var(--ta-font-scale)); }
39
+ .tac-double-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(16px * var(--ta-font-scale)); font-weight: 600; line-height: calc(22px * var(--ta-font-scale)); letter-spacing: 0.01em; }
34
40
  .tac-item-bottom { display: flex; align-items: center; gap: 6px; min-width: 0; }
35
41
  .tac-item-bottom .tac-item-preview { flex: 1; min-width: 0; }
36
- .tac-fresh { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-green); }
37
42
  .tac-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-left: 8px; }
38
43
  .tac-head-title { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; white-space: nowrap; }
39
44
  .tac-head-title strong { overflow: hidden; text-overflow: ellipsis; font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; }
@@ -47,8 +52,8 @@ exports.STYLE = `
47
52
  .tac-head-more { margin-left: 4px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }
48
53
  .tac-action.tac-on { background: var(--ta-hover-strong); color: var(--ta-text); }
49
54
  .tac-room-page { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--ta-main); color: var(--ta-text); }
50
- .tac-chat { flex: 1; min-height: 0; overflow-y: auto; }
51
- .tac-chat-col { display: flex; flex-direction: column; gap: 4px; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 12px; box-sizing: border-box; }
55
+ .tac-chat { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; }
56
+ .tac-chat-col { position: relative; display: flex; flex-direction: column; gap: 4px; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 12px; box-sizing: border-box; }
52
57
  .tac-chat-time { align-self: center; margin: 14px 0 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
53
58
  .tac-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12vh auto 0; max-width: 360px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); text-align: center; }
54
59
  .tac-chat-empty strong { margin-top: 6px; color: var(--ta-text); font-size: calc(16px * var(--ta-font-scale)); }
@@ -124,15 +129,18 @@ div.tac-dialog-label { flex-direction: row; justify-content: space-between; marg
124
129
  .tac-identity { position: fixed; top: calc(60px + env(safe-area-inset-top) + var(--ta-titlebar, 0px)); left: 12px; right: 12px; width: auto; max-width: none; transform: none; animation: none; }
125
130
  }
126
131
  .tac-empty { padding: 8px 18px; }
127
- .tac-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 1px 0; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; transition: background 120ms; }
132
+ .tac-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 1px 0; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; transition: background 120ms; }
128
133
  .tac-item:hover { background: var(--ta-hover); }
129
134
  .tac-item.tac-selected { background: var(--ta-selected); }
130
- .tac-item-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
135
+ /* A row with nothing to say under its name, as a contact: one line, a little lower. */
136
+ .tac-item.tac-item-single { min-height: 54px; padding-top: 7px; padding-bottom: 7px; }
137
+ .tac-item-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
131
138
  .tac-item-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
132
- .tac-item-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(18px * var(--ta-font-scale)); }
139
+ .tac-item-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; line-height: calc(19px * var(--ta-font-scale)); }
133
140
  .tac-item-time { flex: none; margin-left: auto; padding-left: 4px; color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
134
141
  .tac-item-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }
135
- .tac-item-preview.tac-live { color: var(--ta-green); }
142
+ /* What goes on now is said plainly: the green dot on the face marks it. */
143
+ .tac-item-preview.tac-now { color: var(--ta-secondary); }
136
144
  .tac-lead { display: inline-flex; align-items: center; gap: 3px; flex: none; max-width: 96px; overflow: hidden; padding: 0 6px; border: 1px solid color-mix(in srgb, var(--ta-green) 35%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--ta-green) 10%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 600; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }
137
145
  .tac-lead span { overflow: hidden; text-overflow: ellipsis; }
138
146
  .tac-lead svg { flex: none; }
@@ -140,6 +148,13 @@ div.tac-dialog-label { flex-direction: row; justify-content: space-between; marg
140
148
  .tac-folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
141
149
  .tac-folder .ta-host-tag { margin: 0 0 0 1px; vertical-align: 0; }
142
150
  .tac-item-top .ta-host-tag { margin: 0; vertical-align: 0; }
151
+ /* A remote agent's host, on the line of where it works: as quiet as the line, its blue says it is elsewhere. */
152
+ .tac-item-bottom .ta-host-tag { height: auto; margin: 0; padding: 0; background: none; color: color-mix(in srgb, var(--ta-blue) 70%, var(--ta-muted)); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }
153
+ .tac-item-bottom .ta-host-tag { gap: 4px; }
154
+ .tac-item-bottom .ta-host-tag > svg { width: calc(12px * var(--ta-font-scale)); height: calc(12px * var(--ta-font-scale)); }
155
+ .tac-item-bottom .ta-host-tag + .tac-item-preview::before { content: '·'; margin-right: 6px; }
156
+ /* The panda's ears are ink, lost on a dark page: a lighter ink there. */
157
+ :root:not([data-theme='light']) .tac-face[data-face="11"] .tac-face-body > g > circle { fill: #4a4a52; }
143
158
  .tac-face { display: inline-flex; flex: none; }
144
159
  .tac-face svg { display: block; overflow: visible; }
145
160
  .tac-face-eyes { transform-box: fill-box; transform-origin: center; animation: tac-blink 5.2s infinite; }
@@ -171,7 +186,6 @@ textarea.tac-input { resize: vertical; min-height: 56px; line-height: 1.5; }
171
186
  .tac-button.tac-primary { border-color: transparent; background: var(--ta-text); color: var(--ta-main); }
172
187
  .tac-button:disabled { opacity: 0.5; cursor: default; }
173
188
  .tac-button.tac-danger { border-color: transparent; background: var(--ta-red); color: #fff; }
174
- .tac-team-up { margin-top: 6px; padding: 6px 14px; }
175
189
  .tac-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }
176
190
  .tac-link:hover { background: var(--ta-hover); }
177
191
  .tac-link.tac-danger { color: var(--ta-red); }
@@ -245,43 +259,73 @@ textarea.tac-role-input { min-height: 200px; max-height: 50vh; font-size: calc(1
245
259
  :root[data-touch] .tac-item-more > .tac-action { visibility: hidden; }
246
260
  :root[data-touch] .tac-item-row .tac-item-time { visibility: visible; }
247
261
  :root[data-touch] .tac-double { padding-right: 10px; }
248
- :root[data-touch] .tac-item:not(.tac-selected):hover, :root[data-touch] .tac-double:not(.tac-selected):hover { background: none; }
262
+ :root[data-touch] .tac-item:not(.tac-selected):hover { --tac-bg: var(--ta-side); background: none; }
263
+ :root[data-touch] .tac-double:hover { --tac-double-bg: var(--ta-raised); }
264
+ :root[data-theme='light'][data-touch] .tac-double:hover { --tac-double-bg: var(--ta-card); }
249
265
  /* A phone, as its messaging apps: the row picked is not marked; its conversation covers the list, and back on the list nothing is picked. */
250
- :root[data-handheld] .tac-item.tac-selected, :root[data-handheld] .tac-double.tac-selected { background: none; }
251
- :root[data-touch] .tac-item:active, :root[data-touch] .tac-double:active { background: var(--ta-hover); }
266
+ :root[data-handheld] .tac-item.tac-selected { --tac-bg: var(--ta-side); background: none; }
267
+ :root[data-handheld] .tac-double.tac-selected { --tac-double-edge: color-mix(in srgb, var(--ta-text) 7%, transparent); }
268
+ :root[data-theme='light'][data-handheld] .tac-double.tac-selected { --tac-double-edge: var(--ta-border-muted); }
269
+ :root[data-touch] .tac-item:active { --tac-bg: var(--ta-hover); background: var(--ta-hover); }
270
+ :root[data-touch] .tac-double:active, :root[data-touch] .tac-double:has(~ .tac-item-more > [aria-expanded="true"]) { --tac-double-bg: var(--ta-hover); }
252
271
  /* The side bar of the double: its sections, folding */
253
- .tac-double-line { display: flex; align-items: center; gap: 3px; min-width: 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }
254
- .tac-double-line > .ta-status { margin-left: -3px; }
255
- .tac-double-line > .tac-ready::before { background: var(--ta-green); }
256
- .tac-double-line > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
272
+ .tac-double-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
273
+ .tac-double-top > .tac-double-name { flex: 1; min-width: 0; }
274
+ .tac-double-line { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }
275
+ .tac-double-line > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
276
+ /* Something goes on: a spinner ends its line, as in the list of conversations. */
277
+ .tac-spinner.ta-spinner { width: 12px; height: 12px; }
257
278
  .tac-double-line.tac-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }
258
279
  .tac-section { display: flex; flex-direction: column; }
259
- .tac-section + .tac-section { margin-top: 6px; }
260
- .tac-section-head { display: flex; align-items: center; gap: 6px; width: 100%; height: 28px; margin: 0; padding: 0 10px 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; text-align: left; cursor: pointer; transition: background 120ms, color 120ms; }
261
- .tac-section-head:hover { background: var(--ta-hover); color: var(--ta-secondary); }
280
+ /* A section is named, not boxed: a quiet name and count, the chevron only while hovered or folded. */
281
+ .tac-section + .tac-section { margin-top: 10px; }
282
+ .tac-section-head { display: flex; align-items: center; gap: 6px; width: 100%; height: 30px; margin: 0; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; letter-spacing: 0.02em; text-align: left; cursor: pointer; transition: color 120ms; }
283
+ .tac-section-head:hover { color: var(--ta-secondary); }
262
284
  .tac-section-head-row { position: relative; }
263
- /* Left of the count, so that the counts of every section stay in one column; seen on hover, or while on. */
264
- .tac-section-action { position: absolute; top: 3px; right: 26px; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ta-muted); cursor: pointer; opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }
285
+ /* Left of the chevron; seen on hover, or while on. */
286
+ .tac-section-action { position: absolute; top: 4px; right: 26px; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ta-muted); cursor: pointer; opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }
265
287
  .tac-section-head-row:hover .tac-section-action, .tac-section-action:focus-visible, .tac-section-action[aria-pressed="true"] { opacity: 1; }
266
288
  .tac-section-action:hover { background: var(--ta-hover-strong); color: var(--ta-secondary); }
267
289
  .tac-section-action[aria-pressed="true"] { color: var(--ta-accent); }
268
290
  .tac-section-head:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }
269
- .tac-section-chevron { width: 6px; height: 6px; margin: 0 3px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); transition: transform 160ms var(--ta-ease, ease); }
291
+ .tac-section-chevron { flex: none; width: 6px; height: 6px; margin: 0 3px 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: 0; transform: translateY(-1px) rotate(45deg); transition: transform 160ms var(--ta-ease, ease), opacity 120ms; }
292
+ .tac-section-head-row:hover .tac-section-chevron, .tac-section-head:focus-visible .tac-section-chevron, .tac-closed .tac-section-chevron { opacity: 1; }
270
293
  .tac-closed .tac-section-chevron { transform: translateX(-1px) rotate(-45deg); }
271
- .tac-section-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
272
- .tac-section-count { flex: none; color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
294
+ .tac-section-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
295
+ .tac-section-count { flex: none; color: var(--ta-muted); opacity: 0.7; font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
273
296
  .tac-section-body { display: flex; flex-direction: column; animation: tac-unfold 160ms ease-out; }
274
297
  .tac-section-body > .tac-folder:first-child { margin-top: 4px; }
275
298
  @keyframes tac-unfold { from { opacity: 0; transform: translateY(-3px); } }
276
299
  @media (prefers-reduced-motion: reduce) { .tac-section-body, .tac-section-chevron { animation: none; transition: none; } }
277
- .tac-item-bottom > .ta-status { margin: 0 -3px 0 -3px; }
300
+ /*
301
+ * On the corner of the face, as the presence of a contact: green while it goes on, amber while it needs the user
302
+ * (it waits, or ended or wrote since they last looked); nothing else. Cut out of the face by the row's color (--tac-bg).
303
+ */
304
+ .tac-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--tac-bg, var(--ta-side)); border-radius: 50%; background: var(--tac-dot); }
305
+ .tac-avatar { position: relative; display: inline-flex; flex: none; }
306
+ .tac-double-face { position: relative; }
307
+ .tac-item:hover { --tac-bg: var(--ta-hover); }
308
+ .tac-item.tac-selected { --tac-bg: var(--ta-selected); }
309
+ .tac-double-face > .tac-dot { right: 1px; bottom: 1px; width: 14px; height: 14px; border-width: 2.5px; --tac-bg: var(--tac-double-bg); }
310
+ .tac-dot-running { --tac-dot: var(--ta-green); }
311
+ .tac-dot-attention { --tac-dot: var(--ta-yellow); }
312
+ /* The dot grows in, turns from green to amber when an answer ends unseen (a ripple or two says so), and shrinks away once looked at. */
313
+ .tac-dot { transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease, background-color 0.5s ease; }
314
+ .tac-dot-running, .tac-dot-attention { transform: none; opacity: 1; }
315
+ .tac-dot-attention::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; animation: tac-ripple 1.5s ease-out 0.3s 2 both; }
316
+ @keyframes tac-ripple { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-yellow) 55%, transparent); } to { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ta-yellow) 0%, transparent); } }
317
+ @media (prefers-reduced-motion: reduce) { .tac-dot { transition: opacity 0.18s ease; } .tac-dot-attention::after { animation: none; } }
318
+ /* What came unseen reads as unread: in the color of the text, not muted. */
319
+ .tac-item-preview.tac-fresh, .tac-double-line.tac-fresh { color: var(--ta-text); }
320
+ .tac-section-alert { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-yellow); }
321
+
278
322
  .tac-item-preview.tac-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }
279
- .tac-task-face { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; overflow: hidden; }
323
+ .tac-task-face { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; overflow: hidden; }
280
324
  .tac-task-glyph { background: var(--ta-chip); color: var(--ta-secondary); }
281
- .tac-tasks-empty { display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); margin: 0 8px; padding: 8px 10px; border: 1px dashed var(--ta-border); border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 120ms, border-color 120ms; }
282
- .tac-tasks-empty:hover { background: var(--ta-hover); border-color: var(--ta-border-field); }
283
- .tac-tasks-empty .tac-item-title { color: var(--ta-secondary); }
284
- .tac-tasks-empty .tac-item-preview { white-space: normal; }
325
+ /* No task yet: one quiet line where they will be, so the place is known before the first. */
326
+ .tac-tasks-empty { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 0; padding: 4px 10px 8px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); text-align: left; cursor: pointer; transition: color 120ms; }
327
+ .tac-tasks-empty:hover { color: var(--ta-secondary); }
328
+ .tac-tasks-empty svg { flex: none; margin-top: calc(2px * var(--ta-font-scale)); }
285
329
  .tac-show-all { align-self: flex-start; height: 26px; margin: 0 4px 4px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }
286
330
  .tac-show-all:hover { background: var(--ta-hover); color: var(--ta-secondary); }
287
331
  .tac-temporary { flex: none; padding: 0 5px; border-radius: 999px; background: var(--ta-hover-strong); color: var(--ta-secondary); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); }
@@ -300,10 +344,12 @@ textarea.tac-role-input { min-height: 200px; max-height: 50vh; font-size: calc(1
300
344
  :root[data-touch] .tac-agent-menu button { height: 44px; padding: 0 14px; border-radius: 10px; }
301
345
  :root[data-touch] .tac-agent-menu button:active:not(:disabled) { background: var(--ta-hover); }
302
346
  :root[data-touch] .tac-agent-menu .tac-menu-line { margin: 4px 10px; }
303
- :root[data-touch] .tac-item:has(~ .tac-item-more > [aria-expanded="true"]), :root[data-touch] .tac-double:has(~ .tac-item-more > [aria-expanded="true"]) { background: var(--ta-hover); }
347
+ :root[data-touch] .tac-item:has(~ .tac-item-more > [aria-expanded="true"]) { background: var(--ta-hover); }
304
348
  @keyframes tac-menu-in { from { opacity: 0; transform: scale(0.94); } }
305
349
  @media (prefers-reduced-motion: reduce) { :root[data-touch] .tac-agent-menu { animation: none; } }
306
- :root[data-touch] .tac-section-action { opacity: 1; }
350
+ /* A finger: no hover to show it; while off it stays away from the list (the choice is the user's on every device), on it shows to turn it off. */
351
+ :root[data-touch] .tac-section-action { right: 4px; }
352
+ :root[data-touch] .tac-section-action:not([aria-pressed="true"]) { display: none; }
307
353
  `;
308
354
  /** Adds the styles to the page; the function returned takes them away. */
309
355
  function injectStyle() {
@@ -102,7 +102,6 @@ class ChannelTaskSource {
102
102
  }
103
103
  }
104
104
  status(state, channel, messages, working) {
105
- var _a;
106
105
  const w = views_1.ChannelViews.words(this.context.pi);
107
106
  const name = (id) => channels_util_1.ChannelsUtil.authorName(state.team, id, { user: w.you, ta: w.ta });
108
107
  if (working.length > 0) {
@@ -111,7 +110,7 @@ class ChannelTaskSource {
111
110
  const last = messages === null || messages === void 0 ? void 0 : messages.at(-1);
112
111
  if (!last) {
113
112
  const building = Date.now() - channel.createdAt < BUILDING_MS;
114
- return building ? { status: 'running', detail: w.building } : { status: 'done', detail: (_a = channel.topic) !== null && _a !== void 0 ? _a : w.noMessages, endedAt: channel.createdAt };
113
+ return building ? { status: 'running', detail: w.building } : { status: 'done', detail: channel.topic || w.noMessages, endedAt: channel.createdAt };
115
114
  }
116
115
  if (last.author === channels_util_1.SYSTEM) {
117
116
  return { status: 'waiting', detail: w.yourTurn };
@@ -137,9 +136,9 @@ class ChannelTaskSource {
137
136
  }
138
137
  }
139
138
  exports.ChannelTaskSource = ChannelTaskSource;
140
- /** What the task of a channel is called: its name, and its topic. */
139
+ /** What the task of a channel is called: its name; the topic is what it says before anyone has spoken. */
141
140
  function taskTitle(channel) {
142
- return channel.topic ? `${channel.name} · ${channel.topic}` : channel.name;
141
+ return channel.name;
143
142
  }
144
143
  /** Deletes the channel of a task and its messages, without asking (WebTask.remove): its agents stay. */
145
144
  async function deleteTeam(context, channel) {
@@ -1,6 +1,7 @@
1
+ import type { TaSessionInfo } from '@celljs/ta-protocol';
1
2
  import type { WebAvatarProps, WebExtensionAPI, WebIcon, WebTaskEntry } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
2
3
  import type { ChannelsClient, ChannelsState } from './channels';
3
- import { type Agent, type Channel, type Team } from './channels-util';
4
+ import { type Agent, type Channel, type ChannelMessage, type Team } from './channels-util';
4
5
  import { type Words } from './i18n';
5
6
  /** The page of the double, which the side bar lists first. */
6
7
  export declare const DOUBLE_PAGE = "assistant/assistant";
@@ -42,6 +43,8 @@ export interface ChannelsContext {
42
43
  ui: ChannelsUiStore;
43
44
  /** The sessions of the agents the page showed, by agent id. */
44
45
  sessions: Map<string, string>;
46
+ /** What the sessions said last when the side bar read them, so that it opens again with them, not without. */
47
+ sessionLines?: SessionLine[];
45
48
  /** Shows a channel as the page of the main area. */
46
49
  showChannel(channelId: string): void;
47
50
  /** Shows the members of the channel shown on the right; `adding`, the agents to add. */
@@ -76,9 +79,54 @@ export declare function useFaces(team: Team): Map<string, number>;
76
79
  export declare function membersOf(team: Team, channel: Channel): Agent[];
77
80
  /** The working directory of ta serve: where agents without one of their own work. */
78
81
  export declare function useServerCwd(pi: WebExtensionAPI): string | undefined;
82
+ /** When the user last opened each task (WebTaskEntry.key), and since when the side bar keeps it: a task ended before is seen. */
83
+ export interface SeenTasks {
84
+ since: number;
85
+ at: Record<string, number>;
86
+ }
87
+ /** Who answered at the last look (SidebarUtil.watch): in their own conversation, or for a channel. */
88
+ export interface LookWatch {
89
+ own: readonly string[];
90
+ channel: readonly string[];
91
+ }
92
+ /** The last thing said in a session: TaSessionInfo and TaSavedSessionInfo both have it. */
93
+ export interface SessionLine {
94
+ sessionFile?: string;
95
+ lastMessage?: string;
96
+ updatedAt: number;
97
+ }
79
98
  export declare namespace SidebarUtil {
99
+ /**
100
+ * Whether a task needs the user: it waits for them, or it ended — well or not — after they last opened it,
101
+ * as an unread conversation. One that goes on or was stopped does not.
102
+ */
103
+ function needsLook(task: Pick<WebTaskEntry, 'key' | 'status' | 'endedAt'>, seen: SeenTasks): boolean;
104
+ /**
105
+ * The agents that answer in their own session now (TaSessionInfo.isStreaming): found by its file, or by the
106
+ * session the page opened for them.
107
+ */
108
+ function answering(agents: readonly Agent[], sessions: readonly Pick<TaSessionInfo, 'sessionId' | 'sessionFile' | 'isStreaming'>[], opened: ReadonlyMap<string, string>): Set<string>;
109
+ /**
110
+ * Who answers in their own conversation, and who for a channel: an agent answering in a channel answers in its
111
+ * session too, and its session is read again a few seconds after the channel says it is done, so one seen
112
+ * answering for a channel stays so until its session is done.
113
+ */
114
+ function watch(before: LookWatch, answering: readonly string[], inChannel: readonly string[]): LookWatch;
115
+ /**
116
+ * Who needs a look, as a messenger's unread: one whose answer in their own conversation ended while the user
117
+ * was elsewhere, from then on; the one the user looks at no more. Those not in `known` go (an agent deleted).
118
+ * Undefined when nothing changes.
119
+ */
120
+ function toLook(marks: Readonly<Record<string, number>>, before: LookWatch, now: LookWatch, shown: string | undefined, at: number, known?: readonly string[]): Record<string, number> | undefined;
121
+ /** What each agent said last, as a messenger's list shows it: in a channel, or in its own session, the later. */
122
+ function lastLines(agents: readonly Agent[], messages: Record<string, readonly ChannelMessage[]>, sessions: readonly SessionLine[]): Map<string, {
123
+ text: string;
124
+ at: number;
125
+ }>;
80
126
  /** Today the time, this year the day, else the date. */
81
127
  function time(at: number | undefined, language: string, now?: Date): string;
128
+ /** A directory as a tooltip says it: an `ssh://` one as `user@host:/path`, as ssh would. */
129
+ function where(cwd: string): string;
82
130
  function folder(cwd: string): string;
83
131
  function matches(query: string, ...texts: (string | undefined)[]): boolean;
84
132
  /** The tasks as the side bar lists them: what waits for the user, what runs, what ended; the latest first in each. */
@@ -85,7 +85,7 @@ var ChannelViews;
85
85
  if (!known) {
86
86
  // In front at once under its name, while the server opens its session (from its file, it may take a while).
87
87
  const agent = channels_util_1.ChannelsUtil.findAgent(context.service.state.team, agentId);
88
- await context.pi.switchSession(opened, { title: agent === null || agent === void 0 ? void 0 : agent.name });
88
+ await context.pi.switchSession(opened, { title: agent === null || agent === void 0 ? void 0 : agent.name, sessionFile: agent === null || agent === void 0 ? void 0 : agent.sessionFile });
89
89
  return;
90
90
  }
91
91
  // One shown before shows at once, while the server says whether its session is still that one.
@@ -145,6 +145,98 @@ function useServerCwd(pi) {
145
145
  }
146
146
  var SidebarUtil;
147
147
  (function (SidebarUtil) {
148
+ /**
149
+ * Whether a task needs the user: it waits for them, or it ended — well or not — after they last opened it,
150
+ * as an unread conversation. One that goes on or was stopped does not.
151
+ */
152
+ function needsLook(task, seen) {
153
+ var _a;
154
+ if (task.status === 'waiting') {
155
+ return true;
156
+ }
157
+ if (task.status !== 'done' && task.status !== 'failed') {
158
+ return false;
159
+ }
160
+ return !!task.endedAt && task.endedAt > ((_a = seen.at[task.key]) !== null && _a !== void 0 ? _a : seen.since);
161
+ }
162
+ SidebarUtil.needsLook = needsLook;
163
+ /**
164
+ * The agents that answer in their own session now (TaSessionInfo.isStreaming): found by its file, or by the
165
+ * session the page opened for them.
166
+ */
167
+ function answering(agents, sessions, opened) {
168
+ const busy = new Set();
169
+ for (const session of sessions) {
170
+ if (!session.isStreaming) {
171
+ continue;
172
+ }
173
+ const agent = agents.find(candidate => (!!session.sessionFile && candidate.sessionFile === session.sessionFile) || opened.get(candidate.id) === session.sessionId);
174
+ if (agent) {
175
+ busy.add(agent.id);
176
+ }
177
+ }
178
+ return busy;
179
+ }
180
+ SidebarUtil.answering = answering;
181
+ /**
182
+ * Who answers in their own conversation, and who for a channel: an agent answering in a channel answers in its
183
+ * session too, and its session is read again a few seconds after the channel says it is done, so one seen
184
+ * answering for a channel stays so until its session is done.
185
+ */
186
+ function watch(before, answering, inChannel) {
187
+ const channel = answering.filter(id => inChannel.includes(id) || before.channel.includes(id));
188
+ return { own: answering.filter(id => !channel.includes(id)), channel };
189
+ }
190
+ SidebarUtil.watch = watch;
191
+ /**
192
+ * Who needs a look, as a messenger's unread: one whose answer in their own conversation ended while the user
193
+ * was elsewhere, from then on; the one the user looks at no more. Those not in `known` go (an agent deleted).
194
+ * Undefined when nothing changes.
195
+ */
196
+ function toLook(marks, before, now, shown, at, known) {
197
+ const next = { ...marks };
198
+ let changed = false;
199
+ for (const id of before.own) {
200
+ if (id !== shown && !now.own.includes(id) && !now.channel.includes(id)) {
201
+ next[id] = at;
202
+ changed = true;
203
+ }
204
+ }
205
+ for (const id of Object.keys(next)) {
206
+ if (id === shown || (known && !known.includes(id))) {
207
+ delete next[id];
208
+ changed = true;
209
+ }
210
+ }
211
+ return changed ? next : undefined;
212
+ }
213
+ SidebarUtil.toLook = toLook;
214
+ /** What each agent said last, as a messenger's list shows it: in a channel, or in its own session, the later. */
215
+ function lastLines(agents, messages, sessions) {
216
+ const lines = new Map();
217
+ const keep = (id, text, at) => {
218
+ var _a;
219
+ var _b;
220
+ const line = text === null || text === void 0 ? void 0 : text.replace(/\s+/g, ' ').trim();
221
+ if (line && at >= ((_b = (_a = lines.get(id)) === null || _a === void 0 ? void 0 : _a.at) !== null && _b !== void 0 ? _b : 0)) {
222
+ lines.set(id, { text: line, at });
223
+ }
224
+ };
225
+ for (const list of Object.values(messages)) {
226
+ for (const message of list) {
227
+ keep(message.author, message.text, message.at);
228
+ }
229
+ }
230
+ const byFile = new Map(agents.filter(agent => agent.sessionFile).map(agent => [agent.sessionFile, agent.id]));
231
+ for (const session of sessions) {
232
+ const id = session.sessionFile && byFile.get(session.sessionFile);
233
+ if (id) {
234
+ keep(id, session.lastMessage, session.updatedAt);
235
+ }
236
+ }
237
+ return lines;
238
+ }
239
+ SidebarUtil.lastLines = lastLines;
148
240
  /** Today the time, this year the day, else the date. */
149
241
  function time(at, language, now = new Date()) {
150
242
  if (!at) {
@@ -160,6 +252,13 @@ var SidebarUtil;
160
252
  return date.toLocaleDateString(language, { year: '2-digit', month: 'numeric', day: 'numeric' });
161
253
  }
162
254
  SidebarUtil.time = time;
255
+ /** A directory as a tooltip says it: an `ssh://` one as `user@host:/path`, as ssh would. */
256
+ function where(cwd) {
257
+ var _a;
258
+ const remote = /^ssh:\/\/([^/:]+)(?::\d+)?(\/.*)?$/.exec(cwd);
259
+ return remote ? `${remote[1]}:${decodeURIComponent((_a = remote[2]) !== null && _a !== void 0 ? _a : '/')}` : cwd;
260
+ }
261
+ SidebarUtil.where = where;
163
262
  function folder(cwd) {
164
263
  var _a;
165
264
  const parts = cwd.split(/[\\/]+/).filter(Boolean);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-channels",
3
- "version": "4.9.1",
3
+ "version": "4.10.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"