@alwith/module-chat 0.6.22 → 0.6.24

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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/activity-host.js +1 -1
  3. package/dist/agent/application-client.js +1 -1
  4. package/dist/agent/client.js +1 -1
  5. package/dist/agent/custom-model-effort.js +1 -1
  6. package/dist/agent/fork-title.js +1 -1
  7. package/dist/agent/image-request.js +1 -1
  8. package/dist/agent/image-tools.js +1 -1
  9. package/dist/agent/input-config.js +1 -1
  10. package/dist/agent/input-modes/chat.js +1 -1
  11. package/dist/agent/input-modes/execution-meta.js +1 -1
  12. package/dist/agent/input-modes/image-context.js +1 -1
  13. package/dist/agent/input-modes/image.js +1 -1
  14. package/dist/agent/input-modes/index.js +1 -1
  15. package/dist/agent/project-path.js +1 -1
  16. package/dist/agent/request-error.js +1 -1
  17. package/dist/agent/session-list-refresh.js +1 -1
  18. package/dist/app-reference.js +1 -1
  19. package/dist/application-tools.js +1 -1
  20. package/dist/approval/choice-elicitation-form.js +1 -1
  21. package/dist/approval/choice-schema.js +1 -1
  22. package/dist/approval/permission-options.js +1 -1
  23. package/dist/approval/permission-view.js +1 -1
  24. package/dist/approval/schema-elicitation-form.js +1 -1
  25. package/dist/approval/url-elicitation-card.js +1 -1
  26. package/dist/chunk-0myf2ak0.js +2 -0
  27. package/dist/{chunk-9ys14ex1.js → chunk-0ne2mz2q.js} +3 -3
  28. package/dist/{chunk-5r5dc363.js → chunk-0xshzqb6.js} +2 -2
  29. package/dist/{chunk-2b7fjev1.js → chunk-11vn501z.js} +2 -2
  30. package/dist/{chunk-vtw1zmyd.js → chunk-1e83qr49.js} +2 -2
  31. package/dist/{chunk-6j2q7qvk.js → chunk-1pb43y89.js} +2 -2
  32. package/dist/{chunk-nrk4aa7a.js → chunk-1rwkdezk.js} +2 -2
  33. package/dist/chunk-1smyy9mt.js +2 -0
  34. package/dist/{chunk-t3enrsnt.js → chunk-26w51q10.js} +2 -2
  35. package/dist/{chunk-rcfjwyt4.js → chunk-2cc8d35c.js} +1 -1
  36. package/dist/{chunk-qbt8ahwr.js → chunk-2fx3qhyb.js} +2 -2
  37. package/dist/chunk-2q1xxs3t.js +2 -0
  38. package/dist/{chunk-tp7329ny.js → chunk-2qs1ss40.js} +2 -2
  39. package/dist/{chunk-127rz9fe.js → chunk-2sc2z6g5.js} +2 -2
  40. package/dist/chunk-36ttr22w.js +2 -0
  41. package/dist/{chunk-fdmtynmq.js → chunk-3a5sn0v8.js} +2 -2
  42. package/dist/chunk-3mm1d99e.js +2 -0
  43. package/dist/chunk-3qwtda21.js +3 -0
  44. package/dist/{chunk-jv117dry.js → chunk-3z5zyra7.js} +2 -2
  45. package/dist/{chunk-cc8cg69z.js → chunk-3zae491f.js} +4 -4
  46. package/dist/{chunk-xnj05nc3.js → chunk-4fmn1kk4.js} +3 -3
  47. package/dist/chunk-4gxpna3p.js +2 -0
  48. package/dist/{chunk-fgec4g5x.js → chunk-4h9ee02f.js} +2 -2
  49. package/dist/{chunk-71fhan3p.js → chunk-4ntxjy8v.js} +2 -2
  50. package/dist/{chunk-ehp3p3t5.js → chunk-4r0ffb0s.js} +2 -2
  51. package/dist/{chunk-7ekex790.js → chunk-50eym2q3.js} +3 -3
  52. package/dist/{chunk-05eftctr.js → chunk-542c9tpr.js} +2 -2
  53. package/dist/chunk-5d138vq3.js +1 -0
  54. package/dist/{chunk-gzf6kzm0.js → chunk-5kje89r8.js} +2 -2
  55. package/dist/{chunk-00vd1yaz.js → chunk-5pmr5dby.js} +2 -2
  56. package/dist/chunk-5ryfm4ka.js +4 -0
  57. package/dist/{chunk-7n1v87h0.js → chunk-5xe89qwh.js} +2 -2
  58. package/dist/{chunk-2w0grrzz.js → chunk-6cjjwry2.js} +2 -2
  59. package/dist/{chunk-b1yfr8gv.js → chunk-6r5nzsw8.js} +2 -2
  60. package/dist/{chunk-cbx30sf1.js → chunk-6tvq472s.js} +2 -2
  61. package/dist/{chunk-dav36sjv.js → chunk-6vdayg6w.js} +2 -2
  62. package/dist/{chunk-y3e10q18.js → chunk-6w8p1hwb.js} +2 -2
  63. package/dist/{chunk-shk5mmmw.js → chunk-73541c5k.js} +2 -2
  64. package/dist/{chunk-xde2hdrb.js → chunk-76c0cx40.js} +2 -2
  65. package/dist/{chunk-adnpp676.js → chunk-76smt4zv.js} +3 -3
  66. package/dist/{chunk-96wvztgv.js → chunk-79ayc6qy.js} +2 -2
  67. package/dist/{chunk-xj2qfepx.js → chunk-79pvfyd0.js} +2 -2
  68. package/dist/{chunk-6hgcxkwd.js → chunk-7a70nd7e.js} +2 -2
  69. package/dist/chunk-7cab9zy0.js +2 -0
  70. package/dist/chunk-7s3f142h.js +2 -0
  71. package/dist/{chunk-xdmjwqgf.js → chunk-7v7wc7k5.js} +2 -2
  72. package/dist/{chunk-eraepgrh.js → chunk-7wd0kfqr.js} +2 -2
  73. package/dist/{chunk-3rew4bcf.js → chunk-7wpcdwan.js} +2 -2
  74. package/dist/chunk-7xvrsw7x.js +2 -0
  75. package/dist/{chunk-6cks2gn2.js → chunk-81hv0s07.js} +2 -2
  76. package/dist/{chunk-03mdvw7w.js → chunk-84eye2j0.js} +2 -2
  77. package/dist/{chunk-wjazfhrm.js → chunk-859359n0.js} +2 -2
  78. package/dist/{chunk-mptke00a.js → chunk-8ew2e3y7.js} +2 -2
  79. package/dist/{chunk-dgh0750h.js → chunk-8h4e3654.js} +2 -2
  80. package/dist/{chunk-mfs0b15q.js → chunk-8hygfx41.js} +2 -2
  81. package/dist/{chunk-2gp33sx4.js → chunk-8mzbkjhk.js} +2 -2
  82. package/dist/{chunk-vkfz61d6.js → chunk-8v53bkyr.js} +2 -2
  83. package/dist/{chunk-0k6zg9s1.js → chunk-9hjfc08t.js} +2 -2
  84. package/dist/{chunk-xvmmndhs.js → chunk-9ts08sma.js} +2 -2
  85. package/dist/chunk-a6ysp1fp.js +2 -0
  86. package/dist/chunk-a8r3mggj.js +2 -0
  87. package/dist/{chunk-tz1redf7.js → chunk-a9grdyep.js} +3 -3
  88. package/dist/chunk-ayt0bzr9.js +2 -0
  89. package/dist/{chunk-8jqaahna.js → chunk-az3g3a94.js} +2 -2
  90. package/dist/chunk-b42vv8f2.js +2 -0
  91. package/dist/chunk-b61qhh61.js +2 -0
  92. package/dist/{chunk-f7bn0nd2.js → chunk-bane0xc8.js} +2 -2
  93. package/dist/{chunk-pvdm1v6g.js → chunk-bcnh0z8e.js} +2 -2
  94. package/dist/{chunk-yk72yvcd.js → chunk-bdrcreqs.js} +2 -2
  95. package/dist/chunk-bfb8bpwc.js +2 -0
  96. package/dist/chunk-bgav9cq2.js +2 -0
  97. package/dist/chunk-bh0h7fz7.js +2 -0
  98. package/dist/chunk-bshgrwe9.js +2 -0
  99. package/dist/chunk-bsnmj69j.js +2 -0
  100. package/dist/chunk-capkej8s.js +2 -0
  101. package/dist/chunk-cer4dxas.js +2 -0
  102. package/dist/{chunk-pkkw0fxs.js → chunk-ck2ax5f6.js} +2 -2
  103. package/dist/chunk-cq7bbgcg.js +2 -0
  104. package/dist/{chunk-2wdvcx76.js → chunk-csbv8m51.js} +3 -3
  105. package/dist/chunk-d29xbf16.js +2 -0
  106. package/dist/chunk-d5gt1x0n.js +2 -0
  107. package/dist/{chunk-m0rznqwx.js → chunk-d6ke5e80.js} +2 -2
  108. package/dist/chunk-dp1nnwk2.js +2 -0
  109. package/dist/chunk-dpfjxym1.js +2 -0
  110. package/dist/{chunk-kawq8f1z.js → chunk-dxsjz3re.js} +2 -2
  111. package/dist/{chunk-z0z3xfn3.js → chunk-dypeezvv.js} +3 -3
  112. package/dist/{chunk-nase48et.js → chunk-e04g26qm.js} +2 -2
  113. package/dist/{chunk-322m8vk4.js → chunk-e5m9kg1w.js} +2 -2
  114. package/dist/{chunk-vvpagkya.js → chunk-e641842r.js} +2 -2
  115. package/dist/chunk-eqbp85f3.js +2 -0
  116. package/dist/{chunk-s5fk9ywy.js → chunk-et2pdaz7.js} +2 -2
  117. package/dist/chunk-f9z37ptq.js +2 -0
  118. package/dist/{chunk-nbch7nw2.js → chunk-fe83mqnb.js} +2 -2
  119. package/dist/{chunk-g98m1se7.js → chunk-ffs5nkt0.js} +2 -2
  120. package/dist/chunk-fn68kh69.js +2 -0
  121. package/dist/{chunk-bbwxqt7p.js → chunk-g751pxzk.js} +2 -2
  122. package/dist/{chunk-zr6xrady.js → chunk-gak8579e.js} +2 -2
  123. package/dist/{chunk-xmr3vcp8.js → chunk-gec6q1jb.js} +2 -2
  124. package/dist/{chunk-6cxa2jrx.js → chunk-geh3wyxw.js} +2 -2
  125. package/dist/chunk-gkyvgjyx.js +2 -0
  126. package/dist/chunk-gpcsb4tg.js +3 -0
  127. package/dist/{chunk-j8jn2p7q.js → chunk-h0k80cxs.js} +1 -1
  128. package/dist/{chunk-1dkd8jt0.js → chunk-h8r785ne.js} +2 -2
  129. package/dist/{chunk-m08yer2f.js → chunk-hcat58sr.js} +2 -2
  130. package/dist/{chunk-ws4qt1sc.js → chunk-heqa4swe.js} +2 -2
  131. package/dist/chunk-j2cdjycf.js +2 -0
  132. package/dist/{chunk-k025mmnv.js → chunk-j3g21ext.js} +2 -2
  133. package/dist/{chunk-z90zckkv.js → chunk-jcyv1q0x.js} +2 -2
  134. package/dist/chunk-jjgwfpmp.js +2 -0
  135. package/dist/{chunk-29jan02g.js → chunk-js3nhatr.js} +2 -2
  136. package/dist/{chunk-pphkxw72.js → chunk-jw1c8r97.js} +2 -2
  137. package/dist/{chunk-pae53dz2.js → chunk-jydhbkm8.js} +2 -2
  138. package/dist/{chunk-0y8pnj16.js → chunk-kbfe7gqw.js} +2 -2
  139. package/dist/{chunk-k86843av.js → chunk-kj3a1k2q.js} +2 -2
  140. package/dist/{chunk-nefts0rn.js → chunk-kk9dbwd1.js} +2 -2
  141. package/dist/{chunk-ywwfzgm6.js → chunk-m6080rsp.js} +2 -2
  142. package/dist/{chunk-vxkkzs4m.js → chunk-m8tt5bf9.js} +2 -2
  143. package/dist/{chunk-e8dzp9xe.js → chunk-m9ttf96p.js} +2 -2
  144. package/dist/{chunk-zsbsypka.js → chunk-mbsmb8jn.js} +2 -2
  145. package/dist/{chunk-76r5v06g.js → chunk-mc40zb3c.js} +2 -2
  146. package/dist/chunk-mcrd86tx.js +2 -0
  147. package/dist/{chunk-r9vjpafx.js → chunk-mdercwm8.js} +3 -3
  148. package/dist/{chunk-9q5a0kwf.js → chunk-mfn37eme.js} +2 -2
  149. package/dist/{chunk-hb22jn2e.js → chunk-mgmv8kap.js} +2 -2
  150. package/dist/{chunk-2q20937h.js → chunk-mtn6vdf8.js} +2 -2
  151. package/dist/{chunk-09w80wgb.js → chunk-n0q8e6sq.js} +2 -2
  152. package/dist/chunk-n9jaz2pd.js +2 -0
  153. package/dist/{chunk-pwsqw3mx.js → chunk-nbaxn7jx.js} +2 -2
  154. package/dist/{chunk-q6f0e289.js → chunk-nh56sb8e.js} +2 -2
  155. package/dist/{chunk-m9s9etss.js → chunk-nhstvqjy.js} +2 -2
  156. package/dist/chunk-nvgnan7w.js +2 -0
  157. package/dist/{chunk-6qh7fvgs.js → chunk-nypr6qtz.js} +3 -3
  158. package/dist/chunk-p1tcxky2.js +2 -0
  159. package/dist/chunk-p811gdar.js +2 -0
  160. package/dist/chunk-p8cm3xw1.js +2 -0
  161. package/dist/{chunk-hhnxwgz5.js → chunk-pnh5t6pc.js} +2 -2
  162. package/dist/{chunk-nm8245ze.js → chunk-pr36m3qx.js} +2 -2
  163. package/dist/chunk-pxv38ttf.js +2 -0
  164. package/dist/{chunk-7narmchf.js → chunk-q01vmp9m.js} +2 -2
  165. package/dist/{chunk-p521krn5.js → chunk-q4nx04sy.js} +2 -2
  166. package/dist/chunk-q73jne25.js +2 -0
  167. package/dist/{chunk-4cnm37fs.js → chunk-q7ka46hb.js} +3 -3
  168. package/dist/{chunk-jwsgt0d9.js → chunk-qdyyvd2w.js} +2 -2
  169. package/dist/{chunk-xtn9bw6a.js → chunk-qghq84r4.js} +2 -2
  170. package/dist/{chunk-d4edqxgc.js → chunk-qk1yqepm.js} +2 -2
  171. package/dist/chunk-qm2jq2bq.js +2 -0
  172. package/dist/{chunk-dps8nnde.js → chunk-qv23mh24.js} +2 -2
  173. package/dist/{chunk-kj3re492.js → chunk-qvw0kyse.js} +2 -2
  174. package/dist/chunk-qwet39v5.js +2 -0
  175. package/dist/{chunk-v77kjbkb.js → chunk-qxssxzws.js} +2 -2
  176. package/dist/chunk-r3hsjwjn.js +2 -0
  177. package/dist/{chunk-bm1x011j.js → chunk-r7paw6ba.js} +2 -2
  178. package/dist/{chunk-jzqvhnq5.js → chunk-rb4p3h5b.js} +2 -2
  179. package/dist/{chunk-w308wr7v.js → chunk-rff6c87z.js} +2 -2
  180. package/dist/chunk-rg8kj085.js +2 -0
  181. package/dist/{chunk-cxd1bwe7.js → chunk-rqa21qrv.js} +2 -2
  182. package/dist/{chunk-ckdkm4n7.js → chunk-rzxnxj25.js} +2 -2
  183. package/dist/chunk-s05ftq29.js +2 -0
  184. package/dist/chunk-s2k0g1hc.js +2 -0
  185. package/dist/chunk-s3j71dbh.js +2 -0
  186. package/dist/chunk-sdv06e2k.js +2 -0
  187. package/dist/{chunk-nxnzrbrc.js → chunk-sgbn37kz.js} +2 -2
  188. package/dist/{chunk-d7kcgxa2.js → chunk-sjqhtpzr.js} +2 -2
  189. package/dist/{chunk-zq7p8m7g.js → chunk-stc4ctrx.js} +2 -2
  190. package/dist/{chunk-nvv8aheh.js → chunk-t3m57q06.js} +2 -2
  191. package/dist/{chunk-b17rwepe.js → chunk-t686zwxk.js} +2 -2
  192. package/dist/{chunk-q16yvbsg.js → chunk-tctdn4kk.js} +2 -2
  193. package/dist/chunk-tfj6v7y4.js +2 -0
  194. package/dist/chunk-tknyjndw.js +7 -0
  195. package/dist/chunk-tsdb5jnj.js +2 -0
  196. package/dist/{chunk-69eysg08.js → chunk-tyka859b.js} +2 -2
  197. package/dist/chunk-v3dq3hx2.js +2 -0
  198. package/dist/{chunk-wsz4dh6m.js → chunk-v581r9vt.js} +3 -3
  199. package/dist/{chunk-ggad6492.js → chunk-vbbndjfd.js} +2 -2
  200. package/dist/chunk-vkj5fznh.js +4 -0
  201. package/dist/{chunk-mvebg1n7.js → chunk-vsh9vh4s.js} +2 -2
  202. package/dist/{chunk-acprqt2h.js → chunk-vx6shb4g.js} +2 -2
  203. package/dist/{chunk-8x33007g.js → chunk-w2xjhfm2.js} +3 -3
  204. package/dist/{chunk-ygjcmhng.js → chunk-w4bye56s.js} +2 -2
  205. package/dist/{chunk-10ar0368.js → chunk-wf7kfk3p.js} +2 -2
  206. package/dist/{chunk-2a6bv4xm.js → chunk-whb8ttdy.js} +2 -2
  207. package/dist/{chunk-37p8zdb1.js → chunk-whzs7yxf.js} +2 -2
  208. package/dist/{chunk-r67qt2tt.js → chunk-wsyfhh7y.js} +2 -2
  209. package/dist/chunk-ww3f6z4x.js +3 -0
  210. package/dist/{chunk-v3dp0ay9.js → chunk-wwj743gm.js} +2 -2
  211. package/dist/{chunk-mch9hd8q.js → chunk-wyxa2tfm.js} +5 -5
  212. package/dist/{chunk-9bk8tg2w.js → chunk-wz6765xb.js} +3 -3
  213. package/dist/{chunk-egw95b1p.js → chunk-x4enakra.js} +2 -2
  214. package/dist/{chunk-7e9s642q.js → chunk-x621s275.js} +2 -2
  215. package/dist/{chunk-484wg46e.js → chunk-xadfbbwt.js} +2 -2
  216. package/dist/{chunk-gjdeaqy2.js → chunk-xdcp8tj9.js} +2 -2
  217. package/dist/{chunk-atdygnc5.js → chunk-xk0dt0es.js} +2 -2
  218. package/dist/chunk-xk306vq1.js +2 -0
  219. package/dist/{chunk-dq7zxw47.js → chunk-ym6jphs4.js} +4 -4
  220. package/dist/{chunk-x785yg93.js → chunk-ymgc4317.js} +2 -2
  221. package/dist/{chunk-csw1rzrc.js → chunk-ymk7ampx.js} +2 -2
  222. package/dist/{chunk-nvh0e8y1.js → chunk-z8sheg2r.js} +2 -2
  223. package/dist/{chunk-8ysh4mx1.js → chunk-zm6b6zyr.js} +2 -2
  224. package/dist/chunk-znagg8v9.js +2 -0
  225. package/dist/chunk-zpqj0ka8.js +2 -0
  226. package/dist/{chunk-2y13vckf.js → chunk-zsrjzx7g.js} +2 -2
  227. package/dist/{chunk-ky2p8zyg.js → chunk-zwyd2bhy.js} +2 -2
  228. package/dist/{chunk-rr2cjfcz.js → chunk-zz582m73.js} +2 -2
  229. package/dist/{chunk-x6cfmt4y.js → chunk-zzqbe5r0.js} +2 -2
  230. package/dist/client.js +1 -1
  231. package/dist/codex/activity-group.js +1 -1
  232. package/dist/codex/artifact-links.js +1 -1
  233. package/dist/codex/assistant-message.js +1 -1
  234. package/dist/codex/async-question-card.js +1 -1
  235. package/dist/codex/disclosure-state.js +1 -1
  236. package/dist/codex/edited-files-card.js +1 -1
  237. package/dist/codex/image-view-activity.js +1 -1
  238. package/dist/codex/markdown-renderer.js +1 -1
  239. package/dist/codex/navigation-audio.js +1 -1
  240. package/dist/codex/navigation-preview.js +1 -1
  241. package/dist/codex/navigation-rail.js +1 -1
  242. package/dist/codex/patch-view.js +1 -1
  243. package/dist/codex/plan.js +1 -1
  244. package/dist/codex/timeline-virtualizer.js +1 -1
  245. package/dist/codex/turn-activity.js +1 -1
  246. package/dist/codex/user-message.js +1 -1
  247. package/dist/codex/virtualized-turn-list.js +1 -1
  248. package/dist/collections/collection-emoji.js +1 -1
  249. package/dist/collections/collection-menu.js +1 -1
  250. package/dist/collections/collection-panel.js +1 -1
  251. package/dist/collections/collections.js +1 -1
  252. package/dist/collections/host.js +1 -1
  253. package/dist/collections/locales.js +1 -1
  254. package/dist/collections/model.js +1 -1
  255. package/dist/collections/store.js +1 -1
  256. package/dist/composer/completion-filter.js +1 -1
  257. package/dist/composer/completion-menu.js +1 -1
  258. package/dist/composer/completion-trigger.js +1 -1
  259. package/dist/composer/effort-slider.js +1 -1
  260. package/dist/composer/inline-document.js +1 -1
  261. package/dist/composer/inline-dom.js +1 -1
  262. package/dist/composer/model-select.js +1 -1
  263. package/dist/composer/permission-mode-select.js +1 -1
  264. package/dist/composer/prompt-input-attachments.js +1 -1
  265. package/dist/composer/prompt-input-clipboard.js +1 -1
  266. package/dist/composer/prompt-input-context.js +1 -1
  267. package/dist/composer/prompt-input-inline.js +1 -1
  268. package/dist/composer/prompt-input-textarea.js +1 -1
  269. package/dist/composer/prompt-input.js +1 -1
  270. package/dist/conversation/action-card.js +1 -1
  271. package/dist/conversation/composer/app-mentions.js +1 -1
  272. package/dist/conversation/composer/apps-menu.js +1 -1
  273. package/dist/conversation/composer/composer-menu.js +1 -1
  274. package/dist/conversation/composer/composer.js +1 -1
  275. package/dist/conversation/composer/config-options.js +1 -1
  276. package/dist/conversation/composer/context.js +1 -1
  277. package/dist/conversation/composer/drafts.js +1 -1
  278. package/dist/conversation/composer/file-items.js +1 -1
  279. package/dist/conversation/composer/long-text.js +1 -1
  280. package/dist/conversation/composer/mention-chips.js +1 -1
  281. package/dist/conversation/composer/mention-uri.js +1 -1
  282. package/dist/conversation/composer/model-menu.js +1 -1
  283. package/dist/conversation/composer/pasted-text-attachment.js +1 -1
  284. package/dist/conversation/composer/permission-mode-menu.js +1 -1
  285. package/dist/conversation/composer/prediction.js +1 -1
  286. package/dist/conversation/composer/prompt-history.js +1 -1
  287. package/dist/conversation/composer/slash-command-button.js +1 -1
  288. package/dist/conversation/composer/submit-button.js +1 -1
  289. package/dist/conversation/composer/usage-meter.js +1 -1
  290. package/dist/conversation/connection-notice.js +1 -1
  291. package/dist/conversation/context.js +1 -1
  292. package/dist/conversation/conversation-body.js +1 -1
  293. package/dist/conversation/conversation-search.js +1 -1
  294. package/dist/conversation/conversation-view.js +1 -1
  295. package/dist/conversation/conversation.js +1 -1
  296. package/dist/conversation/diff-modal.js +1 -1
  297. package/dist/conversation/draft-project-picker.js +1 -1
  298. package/dist/conversation/session-actions.js +1 -1
  299. package/dist/conversation/subagent-sessions.js +1 -1
  300. package/dist/conversation/subagent-tasks.js +1 -1
  301. package/dist/desktop/desktop-composer.js +1 -1
  302. package/dist/desktop/desktop.js +1 -1
  303. package/dist/desktop/draft-model-select.js +1 -1
  304. package/dist/desktop/load-image.js +1 -1
  305. package/dist/desktop/model-catalog.js +1 -1
  306. package/dist/desktop/model-recovery.js +1 -1
  307. package/dist/desktop/model-settings-action.js +1 -1
  308. package/dist/desktop/native-file-drop.js +1 -1
  309. package/dist/generated/commands.js +1 -1
  310. package/dist/image-lightbox.js +1 -1
  311. package/dist/image-preview-dialog.js +1 -1
  312. package/dist/image.js +1 -1
  313. package/dist/lib/app-reference.js +1 -1
  314. package/dist/lib/application-metadata.js +1 -1
  315. package/dist/lib/chat-path.js +1 -1
  316. package/dist/lib/code-highlighter.js +1 -1
  317. package/dist/lib/file-url.js +1 -1
  318. package/dist/lib/fuzzy.js +1 -1
  319. package/dist/lib/group-blocks.js +1 -1
  320. package/dist/lib/image-encode.js +1 -1
  321. package/dist/lib/limits.js +1 -1
  322. package/dist/lib/markdown-parser.js +1 -1
  323. package/dist/lib/markdown-rules.js +1 -1
  324. package/dist/lib/model-name.js +1 -1
  325. package/dist/lib/pointer-centered-zoom.js +1 -1
  326. package/dist/lib/prepare-prompt-files.js +1 -1
  327. package/dist/lib/reference-presentation.js +1 -1
  328. package/dist/lib/stream-style.js +1 -1
  329. package/dist/lib/streaming-markdown.js +1 -1
  330. package/dist/lib/tool-artifacts.js +1 -1
  331. package/dist/locales.js +1 -1
  332. package/dist/mermaid/diagram.js +1 -1
  333. package/dist/mermaid/export.js +1 -1
  334. package/dist/mermaid/index.js +1 -1
  335. package/dist/mermaid/preview.js +1 -1
  336. package/dist/oauth/claude-login.js +1 -1
  337. package/dist/oauth.js +1 -1
  338. package/dist/plugins/catalog-header.js +1 -1
  339. package/dist/plugins/catalog-skeleton.js +1 -1
  340. package/dist/plugins/host.d.ts +1 -1
  341. package/dist/plugins/host.js +1 -1
  342. package/dist/plugins/new-chat-directory.js +1 -1
  343. package/dist/plugins/pane.js +1 -1
  344. package/dist/plugins/panel-item.js +1 -1
  345. package/dist/plugins/plugin-detail-page.js +1 -1
  346. package/dist/plugins/plugin-icon.js +1 -1
  347. package/dist/plugins/plugin-icons.js +1 -1
  348. package/dist/plugins/plugins-page.js +1 -1
  349. package/dist/plugins/plugins.js +1 -1
  350. package/dist/plugins/read-skill-document.js +1 -1
  351. package/dist/plugins/skill-document.js +1 -1
  352. package/dist/plugins/skills-tab.js +1 -1
  353. package/dist/plugins/store.d.ts +1 -1
  354. package/dist/plugins/store.js +1 -1
  355. package/dist/plugins/toolbox-layout.js +1 -1
  356. package/dist/reference-projection.js +1 -1
  357. package/dist/search/chat-search.js +1 -1
  358. package/dist/search/codex-source-matches.js +1 -1
  359. package/dist/search/dom-matches.js +1 -1
  360. package/dist/search/find-bar.js +1 -1
  361. package/dist/search/literal-matches.js +1 -1
  362. package/dist/session-list/account-menu.js +1 -1
  363. package/dist/session-list/activity-list.js +1 -1
  364. package/dist/session-list/archived-sessions.js +1 -1
  365. package/dist/session-list/help-menu.js +1 -1
  366. package/dist/session-list/highlight.js +1 -1
  367. package/dist/session-list/host.js +1 -1
  368. package/dist/session-list/hover-info-card.js +1 -1
  369. package/dist/session-list/locales.js +1 -1
  370. package/dist/session-list/navigation-controls.js +1 -1
  371. package/dist/session-list/navigation-header.js +1 -1
  372. package/dist/session-list/navigation-store.js +1 -1
  373. package/dist/session-list/navigation-tabs.js +1 -1
  374. package/dist/session-list/navigation.js +1 -1
  375. package/dist/session-list/overflow-marquee.js +1 -1
  376. package/dist/session-list/platform.js +1 -1
  377. package/dist/session-list/row-stop-button.js +1 -1
  378. package/dist/session-list/session-groups.js +1 -1
  379. package/dist/session-list/session-info-card.js +1 -1
  380. package/dist/session-list/session-list.js +1 -1
  381. package/dist/session-list/session-row.js +1 -1
  382. package/dist/session-list/session-state-dot.js +1 -1
  383. package/dist/session-list/session-state-menu.js +1 -1
  384. package/dist/session-list/shortcut-hint.js +1 -1
  385. package/dist/session-list/shortcut.js +1 -1
  386. package/dist/session-list/sidebar-overlay.js +1 -1
  387. package/dist/session-list/trailing-swap.js +1 -1
  388. package/dist/session-list/use-activity-notification.js +1 -1
  389. package/dist/session-list/use-activity-preview.js +1 -1
  390. package/dist/session-list/use-cmd-held.js +1 -1
  391. package/dist/session-list/use-project-sessions.js +1 -1
  392. package/dist/session-list/virtual-session-rows.js +1 -1
  393. package/dist/session-timeline/activity-group.js +1 -1
  394. package/dist/session-timeline/activity-projection.js +1 -1
  395. package/dist/session-timeline/assistant-content.js +1 -1
  396. package/dist/session-timeline/assistant-image-references.js +1 -1
  397. package/dist/session-timeline/assistant-turn.js +1 -1
  398. package/dist/session-timeline/async-questions.js +1 -1
  399. package/dist/session-timeline/edited-files-card.js +1 -1
  400. package/dist/session-timeline/history-timeline.js +1 -1
  401. package/dist/session-timeline/host.js +1 -1
  402. package/dist/session-timeline/image-generation-progress.js +1 -1
  403. package/dist/session-timeline/navigation-rail.js +1 -1
  404. package/dist/session-timeline/plan.js +1 -1
  405. package/dist/session-timeline/question-reply.js +1 -1
  406. package/dist/session-timeline/resource-content.js +1 -1
  407. package/dist/session-timeline/session-timeline.js +1 -1
  408. package/dist/session-timeline/timeline-registry.js +1 -1
  409. package/dist/session-timeline/turn-activity.js +1 -1
  410. package/dist/session-timeline/turn-error.js +1 -1
  411. package/dist/session-timeline/turn-retry.js +1 -1
  412. package/dist/session-timeline/turn-time.js +1 -1
  413. package/dist/session-timeline/turns.js +1 -1
  414. package/dist/session-timeline/use-timeline-scroll.js +1 -1
  415. package/dist/session-timeline/user-message.js +1 -1
  416. package/dist/settings/codex-account-card.js +1 -1
  417. package/dist/settings/login-card.js +1 -1
  418. package/dist/settings/model-alias-settings.js +1 -1
  419. package/dist/settings/model-aliases.js +1 -1
  420. package/dist/settings/provider-logos.js +1 -1
  421. package/dist/settings/provider-section.js +1 -1
  422. package/dist/settings/providers-port.js +1 -1
  423. package/dist/settings/providers.js +1 -1
  424. package/dist/settings/settings-bridge.js +1 -1
  425. package/dist/settings/settings.js +1 -1
  426. package/native/darwin-arm64/artifact.json +1 -1
  427. package/native/darwin-arm64/libalwith_native_chat.dylib +0 -0
  428. package/native/win32-x64/alwith_native_chat.dll +0 -0
  429. package/native/win32-x64/artifact.json +1 -1
  430. package/package.json +2 -7
  431. package/dist/chunk-04778wzq.js +0 -2
  432. package/dist/chunk-0ppwk6y9.js +0 -2
  433. package/dist/chunk-0yngh0w6.js +0 -2
  434. package/dist/chunk-1fnfd1yv.js +0 -2
  435. package/dist/chunk-1jd0p7b8.js +0 -2
  436. package/dist/chunk-2jkv90n6.js +0 -2
  437. package/dist/chunk-3c9se1ha.js +0 -2
  438. package/dist/chunk-3zr6f9nd.js +0 -4
  439. package/dist/chunk-43s8pmw9.js +0 -2
  440. package/dist/chunk-4r8pqg1h.js +0 -2
  441. package/dist/chunk-52y91amb.js +0 -2
  442. package/dist/chunk-5s0k93vr.js +0 -3
  443. package/dist/chunk-6aj4cgfs.js +0 -2
  444. package/dist/chunk-723kazw5.js +0 -2
  445. package/dist/chunk-79qh74jn.js +0 -2
  446. package/dist/chunk-7kxa1krk.js +0 -2
  447. package/dist/chunk-7xszqjre.js +0 -2
  448. package/dist/chunk-8at6403h.js +0 -2
  449. package/dist/chunk-8zrmp6dw.js +0 -3
  450. package/dist/chunk-90mq5g5a.js +0 -1
  451. package/dist/chunk-aazp5pw2.js +0 -2
  452. package/dist/chunk-b5afm26d.js +0 -2
  453. package/dist/chunk-bbpjhe4e.js +0 -2
  454. package/dist/chunk-br1vyrce.js +0 -2
  455. package/dist/chunk-fdqfbhwd.js +0 -2
  456. package/dist/chunk-fjr7n326.js +0 -2
  457. package/dist/chunk-fwk2ayca.js +0 -2
  458. package/dist/chunk-g9vjpmrq.js +0 -2
  459. package/dist/chunk-gh1jdr70.js +0 -2
  460. package/dist/chunk-j420zak2.js +0 -2
  461. package/dist/chunk-mz8tjgre.js +0 -2
  462. package/dist/chunk-n2gm013f.js +0 -2
  463. package/dist/chunk-na5pcj57.js +0 -2
  464. package/dist/chunk-q2v4hre7.js +0 -2
  465. package/dist/chunk-qhes5k0g.js +0 -2
  466. package/dist/chunk-qhj8374f.js +0 -2
  467. package/dist/chunk-rnxbtzg9.js +0 -2
  468. package/dist/chunk-rpzv6g89.js +0 -2
  469. package/dist/chunk-rqck9w0f.js +0 -2
  470. package/dist/chunk-rv3gpjgk.js +0 -2
  471. package/dist/chunk-sm16wn9x.js +0 -2
  472. package/dist/chunk-swq34ay7.js +0 -2
  473. package/dist/chunk-t12xpbtp.js +0 -3
  474. package/dist/chunk-t4vfpx6a.js +0 -2
  475. package/dist/chunk-t6z3khr5.js +0 -2
  476. package/dist/chunk-tac30kkh.js +0 -2
  477. package/dist/chunk-tdw5wrey.js +0 -2
  478. package/dist/chunk-thxz5zm6.js +0 -2
  479. package/dist/chunk-tvfmbabv.js +0 -2
  480. package/dist/chunk-twrdy8cb.js +0 -2
  481. package/dist/chunk-tzr6phth.js +0 -2
  482. package/dist/chunk-v066qn38.js +0 -2
  483. package/dist/chunk-v2m44e5f.js +0 -2
  484. package/dist/chunk-x5cv0bfc.js +0 -4
  485. package/dist/chunk-xdrwsxqy.js +0 -2
  486. package/dist/chunk-xx0hs7b3.js +0 -2
  487. package/dist/chunk-yaxe4yd4.js +0 -2
  488. package/dist/chunk-yey8qz6h.js +0 -2
  489. package/dist/chunk-yfnnrm9g.js +0 -7
  490. package/dist/chunk-yqjmqa0t.js +0 -2
  491. package/dist/chunk-zfsbhwe1.js +0 -2
  492. package/dist/import.d.ts +0 -1
  493. package/dist/import.js +0 -1
@@ -1,2 +0,0 @@
1
- import{Fe}from"./chunk-xdrwsxqy.js";import{createContext as v,useContext as C,useMemo as a}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function Ln({host:o,client:n,children:t}){let s=a(()=>({host:o,client:n}),[o,n]);return r(Fe,{host:o,client:n,children:r(i,{value:s,children:t})})}function e(){let o=C(i);if(o===null)throw Error("Conversation host is missing");return o}function w(o,n){n.catch((t)=>{if(o.reportError)o.reportError(t);else console.error(t)})}
2
- export{Ln,e,w};
@@ -1,2 +0,0 @@
1
- import{n}from"./chunk-xdrwsxqy.js";import{ct}from"./chunk-723kazw5.js";import{e,w}from"./chunk-tac30kkh.js";import{Jn}from"./chunk-j420zak2.js";import{Loader2Icon as v}from"lucide-react";import{Button as x}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as c,EmptyDescription as l,EmptyHeader as d,EmptyTitle as f}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as o,jsxs as i}from"react/jsx-runtime";function $t({session:t,timeline:s}){let{host:m,client:a}=e(),{t:r}=m,u=n((h)=>h.historyPages[t.id]?.cursor!=null),y=Jn(t,s?.turnWork),E=()=>w(m,a.open(t.id,t.cwd)),p=o(ct,{...s,session:t,client:a,host:m,turnWork:y});if(t.restoring)return t.items.length===0?i("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[o(v,{className:"size-4 animate-spin","aria-hidden":"true"}),r("conversation.restoring")]}):p;if(!t.attached&&t.items.length===0)return i(c,{className:"flex-1",children:[i(d,{children:[o(f,{children:r("conversation.reopen")}),o(l,{children:r("conversation.detached")})]}),o(x,{onClick:E,children:r("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!u)return o(c,{className:"flex-1",children:i(d,{children:[o(f,{className:"text-[28px] font-normal",children:r("conversation.welcomeTitle")}),o(l,{className:"truncate font-mono",children:t.cwd})]})});return p}
2
- export{$t};
@@ -1,2 +0,0 @@
1
- import{$e}from"./chunk-hb22jn2e.js";import{Kbd as i}from"@nyssance/shadcn/vega/components/ui/kbd";import{Tooltip as p,TooltipContent as l,TooltipTrigger as a}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as r,jsxs as e,Fragment as c}from"react/jsx-runtime";function fs({shortcut:t,...o}){return t?r(i,{"aria-hidden":"true",...o,children:$e(t)}):null}function hs({label:t,shortcut:o}){return e(c,{children:[r("span",{className:"min-w-0",children:t}),r(fs,{className:"shrink-0",shortcut:o,"aria-hidden":"false"})]})}function $n({label:t,shortcut:o,children:n}){return e(p,{children:[r(a,{render:n}),r(l,{role:"tooltip",children:o?r(hs,{label:t,shortcut:o}):t})]})}
2
- export{fs,hs,$n};
@@ -1,2 +0,0 @@
1
- function Mt(o){return o.kind==="tool"&&o.status==="completed"&&o.toolKind!=="read"&&o.toolKind!=="search"}
2
- export{Mt};
@@ -1,2 +0,0 @@
1
- import{bs}from"./chunk-tzr6phth.js";import{createContext as r,useContext as i}from"react";import{jsx as s}from"react/jsx-runtime";var n=r(null);function Rs({host:o,children:t}){return s(n,{value:o,children:t})}function N(){let o=i(n),e={...bs(),...o};if(e.t===void 0||e.i18n===void 0)throw Error("Collection host is missing; mount collections inside SessionListProvider or CollectionHostProvider");return e}function oi(o,t){t.catch((e)=>{if(o.reportError)o.reportError(e);else console.error(e)})}function de(){let o=N();return(t)=>oi(o,t)}function ii(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}
2
- export{Rs,N,oi,de,ii};
@@ -1,2 +0,0 @@
1
- import{O}from"./chunk-p521krn5.js";import{createContext as c,useContext as p,useState as f,useSyncExternalStore as x}from"react";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as y,DialogContent as D,DialogDescription as L,DialogFooter as w,DialogHeader as P,DialogTitle as H}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as d}from"react/jsx-runtime";var S=c(null),g=c(null),C=c(null);function Pa({host:e,client:t,children:n}){let[r,l]=f(null);O(r!==null);let{t:u}=e;return i(S,{value:e,children:i(g,{value:t,children:d(C,{value:l,children:[n,i(y,{open:r!==null,onOpenChange:(v)=>!v&&l(null),children:d(D,{children:[d(P,{children:[i(H,{children:u("sessionList.deleteTitle")}),i(L,{children:u("sessionList.deleteDescription")})]}),d(w,{children:[i(m,{variant:"outline",onClick:()=>l(null),children:u("sessionList.cancel")}),i(m,{onClick:()=>{if(r)h(e,t.delete(r.sessionId));l(null)},children:u("sessionList.delete")})]})]})})]})})})}function s(){let e=p(S);if(e===null)throw Error("Session list host is missing");return e}function bs(){return p(S)}function a(){let e=p(g);if(e===null)throw Error("Session list client is missing");return e}function Zn(){let e=p(C);if(e===null)throw Error("Session list provider is missing");return e}function o(e){let t=a();return x((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function h(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
2
- export{Pa,s,bs,a,Zn,o,h};
@@ -1,2 +0,0 @@
1
- import{a,o}from"./chunk-tzr6phth.js";import{QUICK_CHATS_GROUP as m,sessionGroup as l}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useMemo as L}from"react";function va(i){let t=a(),e=o((s)=>s.projectContext),c=i===null?m:e?l(e,{cwd:t.projectPath(i)}).id:null,u=o((s)=>s.sessionList),d=o((s)=>s.connection),r=o((s)=>s.sessionListLoaded),n=o((s)=>s.sessionListError),f=()=>t.listSessions({reset:!0}).catch(()=>{return});return S(()=>{if(d==="ready"&&!r&&n===null)t.listSessions().catch(()=>{return})},[t,d,r,n]),{result:L(()=>{if(r&&e)return{status:"ready",sessionRows:u.filter((s)=>l(e,{...s,cwd:t.projectPath(s.cwd)}).id===c).toSorted((s,p)=>(p.updatedAt??"").localeCompare(s.updatedAt??""))};if(n!==null)return{status:"failed",error:n};return{status:"loading"}},[t,u,r,n,c,e]),retry:f}}
2
- export{va};
@@ -1,2 +0,0 @@
1
- import{v}from"./chunk-xdrwsxqy.js";import{e}from"./chunk-tac30kkh.js";import{xe,T}from"./chunk-1dkd8jt0.js";import{He}from"./chunk-yey8qz6h.js";import{an}from"./chunk-rqck9w0f.js";import{useRef as k,useState as c}from"react";import{Button as E}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as s,jsxs as b}from"react/jsx-runtime";function sn({client:l,session:i,providers:S,catalog:w}){let{host:n}=e(),m=(o)=>n.reportError?n.reportError(o):console.error(o),a=He(S,m),[p,u]=c(!1),d=k(!1),[f,g]=c(null),y=v(l.store,(o)=>o.connection==="ready"),x=p||!y||i.restoring,[r,M]=c(null),C=v(l.store,(o)=>o.nativeModels),P=r!==null&&(C.some((o)=>o.id===r)||a!==null&&xe(a).some((o)=>o.models.some((t)=>T(o.id,t.id)===r)));async function h(o){if(d.current||!y||i.restoring)return;d.current=!0,M(o),g(null),u(!0);try{await l.resumeModel(i.id,o)}catch(t){g(t instanceof Error?t.message:String(t)),m(t)}finally{d.current=!1,u(!1)}}return b("div",{className:"text-muted-foreground flex flex-wrap items-center gap-3 px-4 py-3 text-sm","aria-busy":p,"data-model-recovery":!0,children:[b("div",{className:"min-w-0 flex-1 basis-full",children:[s("p",{children:n.t("provider.managed.reselect")}),f&&s("p",{role:"alert",className:"text-destructive break-words",children:f})]}),s("fieldset",{disabled:x,children:s(an,{snapshot:a,model:r,onChange:M,nativeModels:C,catalog:w})}),s(E,{size:"sm",disabled:x||!P,onClick:()=>{if(r!==null)h(r)},children:n.t("provider.managed.resume")})]})}
2
- export{sn};
@@ -1,4 +0,0 @@
1
- import{Mr}from"./chunk-atdygnc5.js";import{gr}from"./chunk-6qh7fvgs.js";import{zr}from"./chunk-52y91amb.js";import{u,_,yt}from"./chunk-2b7fjev1.js";import{Me}from"./chunk-br1vyrce.js";import{fr,hr,vr,yr,xr}from"./chunk-gzf6kzm0.js";import{Ir,Tr}from"./chunk-gjdeaqy2.js";import{H}from"./chunk-05eftctr.js";import{To}from"./chunk-cc8cg69z.js";import{Io}from"./chunk-8x33007g.js";import{n}from"./chunk-xdrwsxqy.js";import{e}from"./chunk-tac30kkh.js";import{uo,Ui}from"./chunk-2gp33sx4.js";import{po}from"./chunk-qhes5k0g.js";import{r,Vi,q,rn}from"./chunk-ckdkm4n7.js";import{Wt}from"./chunk-k025mmnv.js";import{Qe,nn}from"./chunk-sm16wn9x.js";import{Xt,en}from"./chunk-4r8pqg1h.js";import{Bi}from"./chunk-x6cfmt4y.js";import{Qt}from"./chunk-04778wzq.js";import{Gi}from"./chunk-rcfjwyt4.js";import{Zt}from"./chunk-0ppwk6y9.js";import{tn}from"./chunk-hhnxwgz5.js";import{Oi}from"./chunk-r9vjpafx.js";import{Hi}from"./chunk-dav36sjv.js";import{En}from"./chunk-yqjmqa0t.js";import{hasFuzzyFileSearch as jt}from"@nyssance/codex-acp-v2/client";import{useCallback as w,useEffect as qt,useLayoutEffect as rt,useMemo as lt,useRef as N,useState as M}from"react";import{jsx as s,jsxs as R}from"react/jsx-runtime";var Gt=["image/png","image/jpeg","image/webp","image/gif"],pt=[];async function Yt(o){let T=await(await fetch(o.url)).blob();return new Promise((I,S)=>{let E=new FileReader;E.onerror=()=>S(E.error),E.onload=()=>{let G=E.result;I(G.slice(G.indexOf(",")+1))},E.readAsDataURL(T)})}function Se({session:o,onSubmit:T,onShellCommand:I,onHandOff:S,modelSelector:E,modelMenu:G,inputHeader:st,actions:Mt,leadingTools:Rt,agentControls:Q=!0,placeholder:Et,children:kt,attachmentPolicy:Dt,predictions:Nt=!0,disabled:St=!1,preparing:mt=!1,allowPendingInput:Ft=!1}){let{host:F,client:O}=e(),{t:g}=F,z=w((t)=>{if(F.reportError)F.reportError(t);else console.error(t)},[F]),[dt,B]=M(()=>({text:r.get(o.id)?.text??"",revision:0})),{text:v}=dt,[C,Ot]=M(()=>r.get(o.id)?.attachments??pt),[y,Y]=M(()=>r.get(o.id)?.mentions??[]),[m,L]=M(()=>r.get(o.id)?.apps??[]),[ut,K]=M(()=>(r.get(o.id)?.apps?.length??0)>0||H(v,o.commands.map((t)=>t.name)).length>0),W=N(void 0),U=N(void 0);rt(()=>{if(m.length>0)K(!0)},[m.length]);let nt=C.some((t)=>Qe(t)&&t.pastedText.status!=="ready"),[k,ft]=M(!1),[V,_t]=M(!1),[ot,Lt]=M(!1),it=N(null),f=N(null),ht=N(null),c=N(dt),P=w((t)=>{ht.current?.(),c.current={text:t,revision:c.current.revision+1},B(c.current)},[]),gt=w((t)=>{let i=f.current;if(i?.insertApplication){i.insertApplication(t);return}let a=c.current.text,d=i?.getTextarea()?.selectionStart??a.length;U.current={text:a,apps:[]},W.current=d+1,K(!0),P(a),L((l)=>l.some((h)=>h.id===t.id)?l:[...l,{...t,offset:d}])},[P]),$t=w((t)=>{let i=f.current;if(i?.insertInvocation){i.insertInvocation(t);return}let a=c.current.text,d=i?.getTextarea(),l=d?.selectionStart??a.length,h=d?.selectionEnd??l,ct=`${a.slice(0,l)}${t} ${a.slice(h)}`;U.current={text:a,apps:[]},W.current=l+t.length+1,P(ct),K(!0)},[P]),xt=w(()=>(f.current?.focus(),f.current?.getTextarea()??null),[]),Ut=Oi(o,P,L,m.length>0||y.length>0||C.length>0),bt=lt(()=>({read:()=>{let i=f.current?.getTextarea(),a=i===null||i===void 0?[c.current.text.length,c.current.text.length]:[i.selectionStart,i.selectionEnd];return{target:o.id,...c.current,selection:a}},compareAndSet(i,a,d){if(f.current?.isComposing())return null;if(i.target!==o.id||i.revision!==c.current.revision)return null;c.current={text:a,revision:c.current.revision+1},B(c.current);let l=f.current?.getTextarea();if(l!==null&&l!==void 0)l.value=a,l.setSelectionRange(d[0],d[1]);return{target:o.id,...c.current,selection:d}}}),[o.id]),j=N(null),vt=w((t)=>(j.current=t,()=>{if(j.current===t)j.current=null}),[]),X=o.state!=="idle",x=I!==void 0&&m.length===0&&v.startsWith("!"),J=(ut||m.length>0)&&!x,b=!St&&!mt&&o.attached&&!o.restoring&&!o.readOnly,D=!o.readOnly&&(Ft||b),Z=tn(o,b&&!k&&!V&&!nt&&!ot,v.length>0||C.length>0||y.length>0||m.length>0,Nt&&!x),Pt=Z.invalidate;rt(()=>{r.set(o.id,{text:v,attachments:C,mentions:y,...m.length>0?{apps:m}:{},modelId:r.get(o.id)?.modelId??null})},[o.id,v,C,y,m]),rt(()=>Vi(o.id,Ot),[o.id]),rt(()=>rn(o.id,(t)=>{if(!D||k)throw Error("The composer cannot take text now; try again later");if(v.length||C.length||y.length||m.length)throw Error("The composer already has a draft; send or clear it first");P(t)}),[o.id,D,k,v,C,y,m,P]);let It=n((t)=>jt(t.agent)),zt=lt(()=>It&&b?async(t)=>Wt((await O.fuzzyFileSearch({query:t,roots:[o.cwd],cancellationToken:null})).files):void 0,[O,It,b,o.cwd]),at=w((t)=>{Y((i)=>i.includes(t)?i:[...i,t])},[]);qt(()=>{f.current?.focus()},[]);let At=w(async({text:t,files:i})=>{let a=I!==void 0&&m.length===0&&t.startsWith("!")?t.slice(1):null;if(a!==null){if(a.trim().length===0)return;if(i.length||y.length||m.length)throw Error("Shell commands cannot include file references or attachments");if(o.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let d=t.trim();if(d.length===0&&i.length===0&&y.length===0&&m.length===0)return;let l=j.current;ft(!0);let h=r.get(o.id),ct=c.current.revision,tt=null;try{let A=m.map((p)=>({type:"resource_link",name:p.name,uri:`app://${p.id}`}));for(let p of y){let et={kind:"file",absPath:p};A.push({type:"resource_link",uri:Xt(et),name:en(et)})}let Ct=zr(d,m);if(Ct.length>0)A.push({type:"text",text:Ct});for(let p of i)if(Qe(p)){if(p.pastedText.status!=="ready")throw Error("Text attachment is not ready");A.push({type:"resource_link",uri:p.url,name:p.filename??"pasted-text.txt"})}else A.push({type:"image",data:await Yt(p),mimeType:p.mediaType});if(c.current.revision===ct&&r.get(o.id)===h)c.current={text:"",revision:c.current.revision+1},tt=c.current.revision,B(c.current),Y([]),L([]),W.current=void 0,U.current=void 0,q(o.id,()=>pt),r.set(o.id,{text:"",attachments:pt,mentions:[],apps:[],modelId:h?.modelId??null}),f.current?.resetHeight();if(a!==null&&I)await I(a);else if(T)if(l===null)await T(A);else await T(A,(p)=>{if(l.signal.aborted||j.current!==l)return;l.accept(p),S?.(o.id,p)});else if(l===null)await O.prompt(o.id,A);else{let p=await O.prompt(o.id,A);l.accept(p)}Pt();for(let p of h?.attachments??[])if(p.url.startsWith("blob:")&&!r.get(o.id)?.attachments.some((et)=>et.id===p.id))URL.revokeObjectURL(p.url)}catch(A){if(h&&tt!==null&&c.current.revision===tt&&r.get(o.id)?.attachments.length===0&&r.get(o.id)?.mentions.length===0&&!r.get(o.id)?.apps?.length)c.current={text:h.text,revision:tt+1},B(c.current),Y(h.mentions),L(h.apps??[]),r.set(o.id,h),q(o.id,()=>h.attachments);throw A}finally{ft(!1),f.current?.focus()}},[O,o.id,o.state,y,m,T,I,S,Pt]),Bt=()=>{O.cancel(o.id).catch(z)},Ht=w((t)=>{let i=t.code==="max_total_size"?Object.assign(Error(g("composer.imageTooLargeTitle")),{description:g("composer.imageTooLargeDescription",{mb:Me})}):Object.assign(Error(g("composer.unsupportedAttachmentTitle")),{description:g("composer.unsupportedAttachmentDescription")});z(i)},[z,g]),Kt=lt(()=>({session:o,ready:b,inputReady:D,sending:k,textareaRef:f,draft:bt,interruptRef:ht,observeReceipts:vt,addMention:at,setAdding:_t,shellMode:x,handsFree:!x&&(T===void 0||S!==void 0)}),[o,b,D,k,bt,vt,at,T,S,x]),wt=F.writeTextAttachment,Tt={className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,onKeyDown:Ut,bashMode:I!==void 0,disabled:!D,"aria-label":g("composer.placeholder"),placeholder:x?"! command":Z.text||Et||(X?g("composer.steerPlaceholder"):g("composer.placeholder")),onPasteCapture:(t)=>{if(!J&&!x&&!t.currentTarget.disabled&&![...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/"))){let i=yt(t.clipboardData);if(i?.apps.length){t.preventDefault();let a=t.currentTarget,d=u(i),l=_([...a.value.slice(0,a.selectionStart).split(""),...d,...a.value.slice(a.selectionEnd).split("")]);U.current={text:v,apps:[]},W.current=a.selectionStart+d.length,K(!0),L(l.apps),P(l.text);return}}if(wt)nn(t,o.id,g("composer.pastedTextFilename"),wt)}};return s(po,{value:Kt,children:s("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:R("div",{className:"relative",children:[st&&s("div",{"data-chat-input-header":!0,className:"bg-sidebar dark:bg-foreground/3 relative top-1 z-0 mx-[13px] -mb-[18px] flex min-w-0 items-center gap-2 overflow-hidden rounded-t-2xl px-1.5 pt-1.5 pb-[27px]",children:st}),s(Mr,{attachmentPolicy:Dt,value:v,revision:c.current.revision,onValueChange:P,onSubmittedClear:()=>{c.current={text:"",revision:c.current.revision+1},B(c.current)},attachments:C,onAttachmentsChange:(t)=>q(o.id,()=>t),children:R("div",{ref:it,className:"relative",children:[Q&&!ot&&s(gr,{bashMode:I!==void 0,handleRef:f,commands:o.commands,renderSlashMenu:(t)=>s(uo,{anchorRef:it,commands:o.commands,query:t.query,includeAttachment:!1,disabled:!D,agentDisabled:!b||x,open:!0,onClose:t.close,onCommand:(i)=>t.replaceQuery(()=>$t(i.startsWith("$")?i:`/${i}`)),onApp:(i)=>t.replaceQuery(()=>gt(i)),focusInput:xt}),searchFiles:zt,onMention:at,onSearchError:z,emptyLabel:g("composer.noCommands"),fileStatusLabels:{loading:g("composer.searchingFiles"),empty:g("composer.noMatchingFiles")}},J?"inline":"textarea"),R(fr,{"data-shell-mode":x||void 0,bashMode:I!==void 0,globalDrop:!0,multiple:!0,accept:Gt.join(","),onError:Ht,onSubmit:At,onSubmitAsync:At,onSubmitError:z,canSubmit:()=>b&&!k&&!V&&!nt&&(!x||!X&&v.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[kt,R(vr,{className:"px-3 pt-3 pb-0 empty:hidden",children:[V&&s("span",{role:"status",className:"text-muted-foreground text-xs",children:g("composer.addingFiles")}),s(Bi,{mentions:y,onRemove:(t)=>Y((i)=>i.filter((a)=>a!==t))}),s(Tr,{children:(t)=>Qe(t)?s(Gi,{data:t,sessionId:o.id}):s(Ir,{data:t,t:g})})]}),R(hr,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(t)=>{if(!Z.text||f.current?.isComposing()||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||t.target!==f.current?.getTextarea())return;if(t.key==="Tab"||t.key==="ArrowRight"||t.key==="Enter")t.preventDefault(),t.stopPropagation(),P(Z.text)},children:[x&&s("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),J?s(To,{...Tt,skillIcon:F.skillIcon,skillNames:o.commands.map((t)=>t.name),applications:m,onApplicationsChange:L,initialCaret:W.current,initialUndo:U.current}):s(Io,{...Tt,autoFocus:ut&&x})]}),s(yr,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:R("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[R("div",{className:"flex min-w-0 items-center gap-[5px]",children:[s(Ui,{anchorRef:it,commands:o.commands,disabled:!D,agentDisabled:!b||x,agentControls:Q,open:ot,onOpenChange:Lt,focusInput:xt,onCommand:(t)=>{let i=c.current.text,a=i.length===0||i.endsWith(`
2
- `)?i:`${i}
3
- `,d=t.startsWith("$")?t:`/${t}`,l=`${a}${d} `;if(!J)U.current={text:i,apps:[]},W.current=l.length,K(!0);P(l),requestAnimationFrame(()=>{let h=f.current?.getTextarea();h?.focus(),h?.setSelectionRange(l.length,l.length)})},onApp:gt}),Rt,Q&&s(Zt,{sessionId:o.id,options:o.configOptions,disabled:!b})]}),R(xr,{className:"w-full min-w-0 items-center justify-end gap-1",children:[Q&&s(En,{session:o}),E??s(Qt,{...G,sessionId:o.id,options:o.configOptions,disabled:!b}),Mt,s(Hi,{active:X,sending:k||mt||V,ready:b&&!nt&&(!x||!X&&v.slice(1).trim().length>0),hasMentions:y.length>0||m.length>0,onStop:Bt})]})]})})]})]})})]})})})}
4
- export{Se};
@@ -1,2 +0,0 @@
1
- import{ss}from"./chunk-10ar0368.js";import{createContext as s,useContext as o,useSyncExternalStore as m}from"react";import{jsx as l}from"react/jsx-runtime";var u=s(null),c=s(null),qo=s(null);function ie(){return o(qo)}function Fe({host:e,client:i,children:r}){return l(ss,{host:e,children:l(u,{value:e,children:l(c,{value:i,children:r})})})}function t(){let e=o(u);if(e===null)throw Error("Timeline host is missing");return e}function Oe(){let e=o(c);if(e===null)throw Error("Timeline client is missing");return e}function v(e,i){return m((r)=>e.subscribe(r),()=>i(e.getState()),()=>i(e.getState()))}function n(e){let i=Oe();return v(i.store,e)}function Ko(){return o(u)!==null}function re(e,i){if(e.reportError)e.reportError(i);else console.error(i)}
2
- export{qo,ie,Fe,t,Oe,v,n,Ko,re};
@@ -1,2 +0,0 @@
1
- import{n}from"./chunk-xdrwsxqy.js";import{Ln,e,w}from"./chunk-tac30kkh.js";import{Se}from"./chunk-x5cv0bfc.js";import{$t}from"./chunk-tdw5wrey.js";import{zt}from"./chunk-shk5mmmw.js";import{Vt,jt}from"./chunk-4cnm37fs.js";import{Gt}from"./chunk-t4vfpx6a.js";import{LockIcon as k,UnplugIcon as O}from"lucide-react";import{useMemo as S,useRef as M}from"react";import{Alert as x,AlertDescription as C,AlertTitle as N}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as h}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as P,EmptyDescription as z,EmptyHeader as B,EmptyTitle as I}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as o,jsxs as r}from"react/jsx-runtime";function Ps({host:t,client:c,...s}){let m=S(()=>t.openDiff?t:{...t,openDiff:Vt},[t]);return r(Ln,{host:m,client:c,children:[o(L,{...s}),!t.openDiff&&o(jt,{})]})}function L({session:t,header:c,overlay:s,timeline:m,composer:D,readOnlyActions:g,recovery:E,welcome:R,children:T,rootRef:l,search:A=!0}){let{host:d,client:b}=e(),p=M(null),H=(a)=>{if(p.current=a,typeof l==="function")l(a);else if(l)l.current=a},{t:i}=d,f=n((a)=>a.connection==="ready"),v=n((a)=>a.historyPages[t.id]?.error),y=()=>w(d,b.open(t.id,t.cwd)),u=t.items.length===0&&t.attached&&!t.restoring&&t.state==="idle";return r("div",{"data-chat-drop-zone":!0,ref:H,className:"flex h-full min-h-0 flex-col",children:[c,r("div",{className:"relative flex min-h-0 flex-1 flex-col","data-chat-content":!0,children:[A&&!u&&o(zt,{sessionId:t.id,rootRef:p}),s,f&&!t.attached&&!t.restoring&&!t.readOnly&&o("div",{className:"mx-auto my-3 w-full max-w-4xl px-4",children:r(x,{children:[o(O,{}),o(N,{children:i("conversation.stopped")}),o(C,{children:o(h,{size:"sm",variant:"outline",onClick:y,children:i("conversation.reconnect")})})]})}),u?R??o(P,{className:"flex-1",children:r(B,{children:[o(I,{className:"text-[28px] font-normal",children:i("conversation.welcomeTitle")}),o(z,{children:i("conversation.welcomeDescription")})]})}):o($t,{session:t,timeline:m}),o(Gt,{sessionId:t.id}),E??(t.readOnly?o("div",{className:"mx-auto w-full max-w-3xl shrink-0 px-6 pb-5","data-readonly-composer":!0,children:r(x,{className:"flex items-center justify-between gap-4 rounded-3xl px-5 py-4",children:[r("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[o(k,{"aria-hidden":"true",className:"size-4 shrink-0"}),r("div",{className:"min-w-0 space-y-1",children:[o(N,{children:i("conversation.readOnlyTitle")}),o(C,{children:i("conversation.readOnlyDescription")}),v&&o("p",{role:"alert",className:"text-destructive break-words",children:v})]})]}),r("div",{className:"border-border flex shrink-0 items-center gap-1 border-s ps-3","data-readonly-actions":!0,children:[o(h,{size:"sm",variant:"outline",className:"text-foreground cursor-pointer disabled:cursor-not-allowed",onClick:y,disabled:!f||t.restoring,children:i(t.restoring?"conversation.restoring":"conversation.readOnlyRetry")}),g]})]})}):D??o(Se,{session:t}))]}),T]})}
2
- export{Ps};
@@ -1,2 +0,0 @@
1
- function Yo(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function Qn(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function Ke(t){return t.type==="array"}function qt(t){return(Ke(t)?t.items?.oneOf??[]:t.oneOf??[]).map((e)=>{let i=e,r=i.const??i.title??"";return{value:r,label:i.title??r,...i.description?{description:i.description}:{},...i._meta?.alwith?.preview?{preview:i._meta.alwith.preview}:{}}})}
2
- export{Yo,Qn,Ke,qt};
@@ -1,2 +0,0 @@
1
- import{p,Wo}from"./chunk-pae53dz2.js";import{Un}from"./chunk-1dkd8jt0.js";import{useEffect as P,useRef as u,useState as m}from"react";var as="providers:changed",ls="providers:managed-revoked",i=(e)=>e;function Dn(){return{read:()=>i(p.providersRead()),save:(e,r,t)=>i(p.providersSave({providerId:r,input:t,expectedRevision:e})),saveCustom:(e,r)=>i(p.providersSaveCustom({input:r,expectedRevision:e})),removeCustom:(e,r)=>i(p.providersRemoveCustom({providerId:r,expectedRevision:e})),test:(e)=>p.providersTest({providerId:e}),apply:()=>i(p.providersApply()),onChanged:(e)=>Wo[as].listen((r)=>e(r.payload))}}function ra(){return{bind:(e)=>p.providersAccountBind({account:e}),refresh:(e,r)=>i(p.providersRefreshManaged({generation:e,accessToken:r})),clear:async()=>{await p.providersClearManaged()},onRevoked:(e)=>Wo[ls].listen((r)=>e(r.payload.sessionIds))}}async function Fn(e){try{return await e.apply()}catch(r){if(!Un(r))throw r;return e.read()}}function He(e,r=console.error){let[t,d]=m(null),a=u(r);return a.current=r,P(()=>{let n=!0,v=e.onChanged((o)=>{if(n)d((s)=>s&&s.revision>o.revision?s:o)});return v.then(()=>e.read()).then((o)=>{if(n)d((s)=>s&&s.revision>=o.revision?s:o)}).catch((o)=>{if(n)a.current(o)}),()=>{n=!1,v.then((o)=>o())}},[e]),t}
2
- export{as,ls,Dn,ra,Fn,He};
@@ -1,7 +0,0 @@
1
- import{c,L}from"./chunk-10ar0368.js";import{So}from"./chunk-xj2qfepx.js";import{K}from"./chunk-9bk8tg2w.js";import{k}from"./chunk-mz8tjgre.js";import{Ye,dr}from"./chunk-322m8vk4.js";import{ge}from"./chunk-vxkkzs4m.js";import{cn as v}from"cn";import{BotIcon as ue,CheckIcon as me,CopyIcon as pe}from"lucide-react";import{Fragment as fe,memo as xe,useEffect as P,useRef as U,useState as _}from"react";import{jsx as n,jsxs as p,Fragment as D}from"react/jsx-runtime";function Ce(e,t){if(e.status==="pending"||e.status==="in_progress")return;if(e.status==="cancelled"||e.status==="interrupted")return t("stream.codex.commandStopped");if(e.exitCode!==void 0&&e.exitCode!==0)return t("stream.codex.exitCode",{code:e.exitCode});if(e.status==="completed"&&e.exitCode===void 0)return;return t(e.status==="failed"?"stream.codex.commandFailed":"stream.codex.commandSucceeded")}function H(e,t){let[a,o]=_(()=>({key:e,mounted:t})),i=t||a.key===e&&a.mounted;if(a.key!==e||a.mounted!==i)o({key:e,mounted:i});return i}var G=new WeakMap,q=1;function N(e){if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return`${e.type}:${e.id}`;if(e.type==="thinking"&&e.id!==void 0)return`thinking:${e.id}`;let t=G.get(e);if(t!==void 0)return`${e.type}:${t}`;let a=q;return q+=1,G.set(e,a),`${e.type}:${a}`}function b(e){switch(e){case"pending":case"in_progress":return!0;case"completed":case"failed":case"cancelled":case"interrupted":return!1;default:throw Error(`Unknown ACP tool status: ${e}`)}}function V(e,t){let a=Math.max(0,Math.round(e/1000)),o=Math.floor(a/3600),i=Math.floor(a%3600/60),r=a%60;if(r>=60)i+=Math.floor(r/60),r%=60;if(i>=60)o+=Math.floor(i/60),i%=60;let u=Intl.DurationFormat;if(u)try{return new u(t,{style:"narrow"}).format({hours:o,minutes:i,seconds:o>0?0:r})}catch{}if(o>0)return i>0?`${o}h ${i}m`:`${o}h`;if(i>0)return r>0?`${i}m ${r}s`:`${i}m`;return`${r}s`}var ye="M7.52925 3.7793C7.75652 3.55203 8.10803 3.52383 8.36616 3.69434L8.47065 3.7793L14.2207 9.5293C14.4804 9.789 14.4804 10.211 14.2207 10.4707L8.47065 16.2207C8.21095 16.4804 7.78895 16.4804 7.52925 16.2207C7.26955 15.961 7.26955 15.539 7.52925 15.2793L12.8085 10L7.52925 4.7207L7.44429 4.61621C7.27378 4.35808 7.30198 4.00657 7.52925 3.7793Z";function M({expanded:e,className:t}){return n("svg",{className:v("codex-activity-disclosure",e&&"codex-activity-disclosure-expanded",t),viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:ye})})}function ve(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.3965 5.01128C16.3963 4.93399 16.3489 4.87691 16.293 4.85406L16.2354 4.84332C13.9306 4.91764 12.5622 5.32101 10.665 6.34722V16.3716C11.3851 15.9994 12.0688 15.7115 12.7861 15.5015C13.8286 15.1965 14.9113 15.0633 16.2402 15.0435L16.2979 15.0308C16.353 15.0063 16.3965 14.9483 16.3965 14.8755V5.01128ZM3.54492 14.8765C3.54492 14.9725 3.62159 15.0422 3.70117 15.0435L4.19629 15.0562C5.94062 15.1247 7.26036 15.4201 8.65918 16.0484C8.05544 15.1706 7.14706 14.436 6.17871 14.1109V14.1099C5.56757 13.9045 5.16816 13.3314 5.16797 12.6988V4.98882C4.86679 4.93786 4.60268 4.8999 4.28223 4.87457L3.72754 4.84429C3.62093 4.84079 3.54505 4.92417 3.54492 5.01226V14.8765ZM17.7266 14.8755C17.7266 15.6314 17.1607 16.2751 16.4121 16.3628L16.2598 16.3736C15.0122 16.3922 14.0555 16.5159 13.1602 16.7779C12.2629 17.0404 11.3966 17.4508 10.3369 18.0738C10.129 18.1959 9.87099 18.1958 9.66309 18.0738C7.71455 16.9283 6.31974 16.4689 4.12988 16.3853L3.68164 16.3736C2.85966 16.3614 2.21484 15.6838 2.21484 14.8765V5.01226C2.21497 4.15391 2.93263 3.4871 3.77246 3.51519L4.39844 3.54937C4.67996 3.57191 4.92258 3.60421 5.16797 3.64214V2.51031C5.16797 1.44939 6.29018 0.645615 7.31055 1.15679L7.31152 1.15582C8.78675 1.89511 10.0656 3.33006 10.5352 4.91461C12.3595 3.98907 13.8688 3.58817 16.1924 3.51324L16.3506 3.51714C17.1285 3.5741 17.7264 4.23496 17.7266 5.01128V14.8755ZM6.49805 12.6988C6.49824 12.7723 6.5442 12.8296 6.60254 12.8492L6.96289 12.9859C7.85245 13.3586 8.68125 13.9846 9.33496 14.7496V5.5816C9.08794 4.37762 8.13648 3.1566 6.95801 2.47613L6.71582 2.34527C6.67779 2.32617 6.6337 2.32502 6.58301 2.35796C6.52946 2.39279 6.49805 2.44863 6.49805 2.51031V12.6988Z"})})}function he(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M7.33057 1.98535C10.2484 1.98535 12.6136 4.3508 12.6138 7.26855C12.6138 8.58031 12.1346 9.77942 11.3433 10.7031L13.9897 13.3496C14.1655 13.5253 14.1655 13.8106 13.9897 13.9863C13.814 14.1621 13.5288 14.1621 13.353 13.9863L10.7017 11.335C9.78678 12.0942 8.61243 12.5518 7.33057 12.5518C4.41281 12.5516 2.04736 10.1864 2.04736 7.26855C2.04754 4.35091 4.41292 1.98553 7.33057 1.98535ZM7.33057 2.88574C4.90998 2.88592 2.94793 4.84796 2.94775 7.26855C2.94775 9.68929 4.90987 11.6522 7.33057 11.6523C9.75141 11.6523 11.7144 9.6894 11.7144 7.26855C11.7142 4.84786 9.75131 2.88574 7.33057 2.88574Z"})})}function we(){return p("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:[n("path",{d:"M6.19629 7.86231C6.42357 7.63534 6.7752 7.60692 7.0332 7.77734L7.1377 7.86231L8.80371 9.5293C9.06329 9.78889 9.06307 10.21 8.80371 10.4697L7.1377 12.1367C6.878 12.3964 6.45599 12.3964 6.19629 12.1367C5.93686 11.8771 5.93697 11.456 6.19629 11.1963L7.39258 9.99902L6.19629 8.80371L6.11133 8.69922C5.94087 8.4411 5.96904 8.08955 6.19629 7.86231Z"}),n("path",{d:"M13.4668 11.0156C13.7699 11.0776 13.998 11.3456 13.998 11.667C13.9979 11.9883 13.7698 12.2564 13.4668 12.3184L13.333 12.332H10.833C10.466 12.3319 10.1682 12.034 10.168 11.667C10.168 11.2998 10.4659 11.0021 10.833 11.002H13.333L13.4668 11.0156Z"}),n("path",{d:"M12.6602 2.66504C13.3492 2.66504 13.9062 2.66439 14.3564 2.70117C14.8142 2.73859 15.2201 2.81796 15.5967 3.00977C16.1922 3.31321 16.677 3.79805 16.9805 4.39356C17.1722 4.77014 17.2517 5.17604 17.2891 5.63379C17.3258 6.08402 17.3252 6.64102 17.3252 7.33008V12.6602C17.3252 13.3492 17.3258 13.9062 17.2891 14.3564C17.2516 14.8142 17.1723 15.2201 16.9805 15.5967C16.677 16.1922 16.1922 16.677 15.5967 16.9805C15.2201 17.1723 14.8142 17.2516 14.3564 17.2891C13.9062 17.3258 13.3492 17.3252 12.6602 17.3252H7.33008C6.64102 17.3252 6.08402 17.3258 5.63379 17.2891C5.17604 17.2517 4.77014 17.1722 4.39356 16.9805C3.79805 16.677 3.31321 16.1922 3.00977 15.5967C2.81796 15.2201 2.73859 14.8142 2.70117 14.3564C2.66439 13.9062 2.66504 13.3492 2.66504 12.6602V7.33008C2.66504 6.64101 2.66439 6.08402 2.70117 5.63379C2.73858 5.17601 2.81797 4.77016 3.00977 4.39356C3.31321 3.79802 3.79802 3.31321 4.39356 3.00977C4.77016 2.81797 5.17601 2.73858 5.63379 2.70117C6.08402 2.66439 6.64101 2.66504 7.33008 2.66504H12.6602ZM7.33008 3.99512C6.61907 3.99512 6.1257 3.99601 5.74219 4.02734C5.3665 4.05804 5.15508 4.11481 4.99707 4.19531C4.65183 4.37124 4.37124 4.65183 4.19531 4.99707C4.11481 5.15508 4.05805 5.3665 4.02734 5.74219C3.99601 6.1257 3.99512 6.61908 3.99512 7.33008V12.6602C3.99512 13.3711 3.99601 13.8646 4.02734 14.248C4.05805 14.6237 4.11481 14.8352 4.19531 14.9932C4.37124 15.3384 4.65186 15.619 4.99707 15.7949C5.15507 15.8754 5.36654 15.9322 5.74219 15.9629C6.1257 15.9942 6.61908 15.9951 7.33008 15.9951H12.6602C13.3711 15.9951 13.8646 15.9942 14.248 15.9629C14.6237 15.9322 14.8352 15.8754 14.9932 15.7949C15.3384 15.619 15.619 15.3384 15.7949 14.9932C15.8754 14.8352 15.9322 14.6237 15.9629 14.248C15.9942 13.8646 15.9951 13.3711 15.9951 12.6602V7.33008C15.9951 6.61908 15.9942 6.1257 15.9629 5.74219C15.9322 5.36654 15.8754 5.15507 15.7949 4.99707C15.619 4.65186 15.3384 4.37124 14.9932 4.19531C14.8352 4.11481 14.6237 4.05805 14.248 4.02734C13.8646 3.99601 13.3711 3.99512 12.6602 3.99512H7.33008Z"})]})}function Le(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M11.3312 4.20472C12.7488 2.92391 14.9377 2.96644 16.3039 4.33265L16.4318 4.46742C17.6713 5.8393 17.6713 7.93343 16.4318 9.30531L16.3039 9.44007L10.0119 15.7311C9.68839 16.0546 9.45384 16.2917 9.22185 16.4821L8.98748 16.6588C8.78233 16.799 8.56429 16.9196 8.33709 17.0192L8.10759 17.1119C7.92582 17.1785 7.73843 17.2266 7.52166 17.2711L6.75701 17.4069L4.36345 17.8053C4.22059 17.8291 4.06914 17.8552 3.9406 17.8649C3.84183 17.8723 3.70833 17.875 3.56267 17.8395L3.41423 17.7907C3.19121 17.695 3.00747 17.5271 2.89177 17.316L2.84588 17.2223C2.75958 17.0209 2.76174 16.8276 2.77166 16.6959C2.78136 16.5674 2.80742 16.4159 2.83123 16.2731L3.22966 13.8795L3.36443 13.1149C3.40899 12.898 3.45795 12.7108 3.52459 12.5289L3.61736 12.2985C3.71691 12.0715 3.83772 11.854 3.97771 11.6491L4.15349 11.4147C4.34392 11.1825 4.58171 10.9484 4.90545 10.6246L11.1965 4.33265L11.3312 4.20472ZM5.84588 11.5651C5.49671 11.9142 5.31258 12.0998 5.1867 12.2526L5.07537 12.3991C4.98194 12.5358 4.90157 12.6812 4.83513 12.8327L4.77361 12.9869C4.73328 13.0971 4.70248 13.2125 4.66814 13.3815L4.54119 14.0983L4.14275 16.4918L4.14177 16.4938H4.1447L6.53826 16.0944L7.25505 15.9684C7.42406 15.9341 7.53946 15.9033 7.64959 15.8629L7.80291 15.8014C7.95461 15.7349 8.09953 15.6538 8.2365 15.5602L8.38396 15.4498C8.53674 15.3239 8.72231 15.1398 9.07146 14.7907L14.0588 9.80238L10.8332 6.57679L5.84588 11.5651ZM15.3635 5.27308C14.5281 4.43776 13.2058 4.38573 12.3097 5.11683L12.1369 5.27308L11.7736 5.63636L15.0002 8.86195L15.3635 8.49964L15.5197 8.32581C16.2015 7.48961 16.2015 6.28311 15.5197 5.44691L15.3635 5.27308Z"})})}function z(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.8347 7.91699C16.8347 7.76279 16.8266 7.61021 16.8123 7.45996L15.4705 8.80371C14.2903 9.98388 12.3762 9.98388 11.1961 8.80371C10.016 7.62352 10.0159 5.70942 11.1961 4.5293L12.5378 3.18652C12.3885 3.17238 12.237 3.16505 12.0837 3.16504C9.45947 3.16504 7.33179 5.29272 7.33179 7.91699C7.33184 8.56608 7.46162 9.18329 7.69605 9.74512C7.79981 9.9939 7.74311 10.2811 7.5525 10.4717L3.59547 14.4287C3.0498 14.9744 3.04991 15.8586 3.59547 16.4043L3.70191 16.501C4.25076 16.9483 5.05957 16.9158 5.57105 16.4043L9.52906 12.4473L9.60426 12.3828C9.79018 12.2455 10.0369 12.2131 10.2546 12.3037C10.8166 12.5382 11.4345 12.668 12.0837 12.668C14.7078 12.6678 16.8345 10.541 16.8347 7.91699ZM18.1648 7.91699C18.1646 11.2755 15.4423 13.9979 12.0837 13.998C11.4151 13.998 10.7708 13.8886 10.1677 13.6885L6.51246 17.3457C5.51389 18.3443 3.93332 18.406 2.86207 17.5322L2.65504 17.3457C1.58992 16.2806 1.58992 14.5534 2.65504 13.4883L6.31031 9.83203C6.1104 9.22921 6.00175 8.58526 6.00172 7.91699C6.00172 4.55818 8.72494 1.83496 12.0837 1.83496C12.7838 1.835 13.458 1.95316 14.0857 2.17188L14.1638 2.20508C14.3404 2.29325 14.4697 2.45713 14.5144 2.65234C14.5653 2.87533 14.4984 3.10876 14.3367 3.27051L12.1375 5.4707C11.4767 6.13148 11.4767 7.20251 12.1375 7.86328C12.7983 8.52373 13.8694 8.52395 14.53 7.86328L16.7293 5.66309L16.7937 5.60742C16.9499 5.48687 17.1532 5.44067 17.3484 5.48535C17.5714 5.53648 17.7526 5.69898 17.8279 5.91504C18.0466 6.54272 18.1648 7.21689 18.1648 7.91699Z"})})}function ee({block:e}){if(e.type!=="tool_use")return null;if(O(e))return n(z,{});let t=K(e).category;if(t==="read")return n(ve,{});if(t==="search"||t==="fetch")return n(he,{});if(t==="execute")return n(we,{});if(t==="edit")return n(Le,{});return n(z,{})}function I(e,t){let a=e.rawInput[t];return typeof a==="string"&&a.length>0?a:void 0}function Ne(e){return K(e).target}function W(e){return e.name==="mcp"||e.name.startsWith("mcp__")||e.name.startsWith("mcp_")}function O(e){return W(e)||e.name==="dynamic_tool"}function te(e,t){let{category:a}=K(e),o=Ne(e),i=b(e.status);if(O(e))return{leading:e.title};if(a==="execute"){let r=I(e,"command")?.split(`
2
- `)[0]??o;return r?{leading:t(i?"stream.codex.running":"stream.codex.ran"),trailing:r}:{leading:t(i?"stream.codex.runningCommand":"stream.codex.ranCommandGeneric")}}if(a==="search"){let r=I(e,"pattern")??I(e,"query")??o;return r?{leading:t(i?"stream.codex.searching":"stream.codex.searched"),trailing:t("stream.codex.forDetail",{detail:r})}:{leading:t(i?"stream.codex.searchingFiles":"stream.codex.searchedFiles")}}if(a==="fetch"){let r=I(e,"query")??I(e,"url")??o;return r?{leading:t(i?"stream.codex.searchingWeb":"stream.codex.searchedWeb"),trailing:t("stream.codex.forDetail",{detail:r})}:{leading:t(i?"stream.codex.searchingWeb":"stream.codex.searchedWeb")}}if(a==="read")return o?{leading:t("stream.codex.readLabel"),trailing:o}:{leading:t("stream.codex.readFiles")};if(a==="edit")return o?{leading:t(i?"stream.codex.editingLabel":"stream.codex.editedLabel"),trailing:o}:{leading:t(i?"stream.codex.editingFiles":"stream.codex.editedFiles")};if(a==="delete")return o?{leading:t(i?"stream.codex.deletingLabel":"stream.codex.deletedLabel"),trailing:o}:{leading:t(i?"stream.codex.deletingFiles":"stream.codex.deletedFiles")};if(a==="move")return o?{leading:t(i?"stream.codex.movingLabel":"stream.codex.movedLabel"),trailing:o}:{leading:t(i?"stream.codex.movingFiles":"stream.codex.movedFiles")};return{leading:e.title}}function be(e,t){let a=te(e,t);return a.trailing===void 0?a.leading:`${a.leading} ${a.trailing}`}function Te(e){return e.map((t)=>{if(t.type!=="content")return"";let a=t.content;return a.type==="text"?a.text:""}).filter(Boolean).join(`
3
- `).trim()}function $e(e){return e.flatMap((t)=>{if(t.type!=="content")return[];let a=t.content;return a.type==="image"?[{data:a.data,mimeType:a.mimeType}]:[]})}function Ae(e){return e.flatMap((t)=>{if(t.type!=="content")return[];let a=t.content;return a.type==="audio"?[{data:a.data,mimeType:a.mimeType}]:[]})}function ke(e){if(typeof e==="string"&&e.length>0)return e;return}function Be(e){return e.type==="diff"}function Ie(e){let t=e.content.find(Be);if(t===void 0)return;return t.changes.map((a)=>`${a.operation} ${a.path}`).join(`
4
- `)}function ne(e){let t=ke(e.rawOutput);if(t!==void 0)return t;let a=Te(e.content);if(a.length>0)return a;return Ie(e)}function J({block:e,command:t}){let{t:a,Output:o,commandStatus:i}=c(),[r,u]=_(!1),[d,l]=_(!1),m=ne(e),s=i===void 0?Ce(e,a):i(e),g=()=>{navigator.clipboard.writeText([`$ ${t}`,m].filter((f)=>f!==void 0).join(`
5
- `)),u(!0),setTimeout(()=>u(!1),1500)};return n("div",{className:"codex-command-details",children:p("div",{className:"codex-command-card",children:[p("div",{className:"codex-command-line-row",children:[n("span",{className:"codex-command-prompt","aria-hidden":"true",children:"$"}),n("button",{type:"button",className:v("codex-command-line",!d&&"codex-command-line-clamped"),"data-codex-disclosure":"","aria-expanded":d,onClick:()=>l((f)=>!f),children:t}),n("button",{type:"button",className:"codex-command-copy","aria-label":a("actions.copy"),onClick:g,children:r?n(me,{}):n(pe,{})})]}),m!==void 0&&(o===void 0?n("pre",{className:"codex-command-output",children:m}):n(o,{text:m})),s!==void 0&&n("div",{className:"codex-command-footer",children:n("span",{className:"codex-command-status",children:s})})]})})}function ae({block:e}){let{t,openLink:a,Patch:o,openImage:i,commandStatus:r,expandToolOutput:u=!1}=c(),d=ne(e),l=o===void 0?void 0:e.content.flatMap((x)=>{if(x.type!=="diff")return[];let B=x;return B.patch?.text?[B.patch.text]:[]}).join(`
6
- `),m=$e(e.content),s=Ae(e.content),[g,f]=k(`tool:${e.id}`,!1),C=H(`tool:${e.id}`,g),h=K(e),w=h.category,y=te(e,t),T=w==="execute"?I(e,"command"):void 0;if(e.userShell&&T!==void 0)return n(J,{block:e,command:T});let A=T!==void 0||O(e)||m.length>0||s.length>0||Boolean(l)||u&&d!==void 0,S=!A&&!b(e.status)?h.filePath:void 0;if(w==="execute"&&!b(e.status)&&e.status!=="completed"){let x=r?.(e);if(x)y={...y,leading:x}}if(w==="read"&&b(e.status))return null;let E=p("span",{className:"codex-activity-label",children:[n(ee,{block:e}),n("span",{className:"min-w-0 flex-1 truncate",children:b(e.status)?n("span",{className:"codex-activity-running",children:y.trailing===void 0?y.leading:`${y.leading} ${y.trailing}`}):p(D,{children:[n("span",{className:"codex-activity-leading",children:y.leading}),y.trailing!==void 0&&(S!==void 0?p(D,{children:[" ",n("button",{type:"button",className:"codex-activity-trailing codex-activity-file-link",title:S,onClick:()=>a(S),children:y.trailing})]}):p("span",{className:"codex-activity-trailing",children:[" ",y.trailing]}))]})})]});return p("div",{className:"codex-activity-item",children:[A?p("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-label":y.trailing===void 0?y.leading:`${y.leading} ${y.trailing}`,"aria-expanded":g,onClick:()=>f((x)=>!x),children:[E,n(M,{expanded:g})]}):n("div",{className:"codex-activity-header codex-activity-header-static",children:E}),n("div",{className:v("codex-activity-details-grid",g&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:C&&p(D,{children:[T!==void 0?n(J,{block:e,command:T}):o!==void 0&&l?n(o,{patch:l}):d!==void 0&&n("pre",{className:"codex-activity-details",children:d}),m.length>0&&n("div",{className:"codex-activity-media",children:m.map((x)=>{let B=`data:${x.mimeType};base64,${x.data}`,j=n("img",{src:B,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},`${x.mimeType}:${x.data.slice(0,32)}`);return i===void 0?j:n("button",{type:"button",className:"cursor-pointer",onClick:()=>i(B),children:j},B)})}),s.map((x)=>n("audio",{className:"mt-1 w-full","aria-label":t("stream.codex.audioOutput"),controls:!0,src:`data:${x.mimeType};base64,${x.data}`},`${x.mimeType}:${x.data.slice(0,32)}`))]})})})]})}var oe=xe(function({block:t}){if(t.type==="tool_use")return n(ae,{block:t});if(t.type==="thinking")return n(le,{block:t});if(t.type==="collab")return n(ce,{block:t});return n(ie,{block:t})});function ie({block:e}){let{t,openSession:a}=c(),o=b(e.status),[i,r]=k(`subagent:${e.id}`,o),u=U(o);P(()=>{if(o)r(!0);if(u.current&&!o)r(!1);u.current=o},[o,r]);let d=`${_e(e.activity,o,e.name,t)}${re(e.model,e.reasoningEffort,t)}`,l=e.threadId??"",m=e.blocks.length>0;return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:v("codex-activity-header",!m&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":m?i:void 0,disabled:!m,onClick:()=>r((s)=>!s),children:[p("span",{className:"codex-activity-label",children:[n(Ee,{seed:e.threadId??e.id}),n("span",{className:"min-w-0 flex-1 truncate",children:a===void 0||e.threadId===null?o?n("span",{className:"codex-activity-running",children:d}):d:n("span",{role:"link",tabIndex:0,className:v("codex-agent-link",o&&"codex-activity-running"),"aria-label":t("stream.codex.subagentOpen",{name:e.name}),onClick:(s)=>{s.stopPropagation(),a(l,e.name)},onKeyDown:(s)=>{if(s.key!=="Enter"&&s.key!==" ")return;s.preventDefault(),s.stopPropagation(),a(l,e.name)},children:d})})]}),m&&n(M,{expanded:i})]}),n("div",{className:v("codex-activity-details-grid",i&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:e.blocks.map((s)=>{if(s.type==="tool_use")return n(ae,{block:s},s.id);if(s.type==="thinking")return n(le,{block:s},N(s));if(s.type==="subagent")return n(ie,{block:s},s.id);if(s.type==="collab")return n(ce,{block:s},s.id);if(s.type==="text")return n("div",{className:"codex-reasoning-details",children:n(L,{text:s.text,streaming:!1})},N(s));if(s.type==="plan")return n(ge,{entries:s.entries},N(s));if(s.type==="image")return n("img",{src:`data:${s.source.media_type};base64,${s.source.data}`,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},N(s));return null})})})})]})}var Me=8;function Se(e){let t=0;for(let a=0;a<e.length;a+=1)t=(t*31+e.charCodeAt(a))%2147483647;return t%Me}function Ee({seed:e}){return n("span",{className:"codex-agent-avatar","data-hue":Se(e),"aria-hidden":"true"})}function _e(e,t,a,o){switch(e){case"started":return o(t?"stream.codex.subagentWorking":"stream.codex.subagentFinished",{name:a});case"interacted":return o("stream.codex.subagentMessaged",{name:a});case"interrupted":return o("stream.codex.subagentInterrupted",{name:a});case"completed":return o("stream.codex.subagentFinished",{name:a})}}var Fe=new Set(["none","minimal","low","medium","high","xhigh","max","ultra","persistent"]);function re(e,t,a){if(e===null)return"";if(t===null)return` · ${So(e)}`;let o=Fe.has(t)?a(`stream.codex.reasoningEffort.${t}`):t;return` · ${So(e)} · ${o}`}var Re={spawnAgent:"spawn",sendInput:"message",sendMessage:"message",followupTask:"message",interruptAgent:"interrupt",listAgents:"list",resumeAgent:"resume",closeAgent:"close"};function se(e){switch(e){case"pending":case"in_progress":return"inProgress";case"completed":return"completed";case"failed":return"failed";case"cancelled":case"interrupted":return"interrupted";default:throw Error(`Unknown ACP tool status: ${e}`)}}function Z(e,t,a){if(e.tool==="wait")throw Error("Codex does not present wait calls");let o=se(e.status);if(o==="interrupted")return a("stream.codex.collab.interrupted");return a(`stream.codex.collab.${t}.${Re[e.tool]}.${o}`)}function De(e){return e.agents.filter((t)=>t.nickname!==null)}function de(e,t){let a=e.agents.length>0?e.agents.length:1;return`${Z(e,"header",t)}${t("stream.codex.collab.agentCount",{count:a})}`}var F="\x01";function R(e,t,a,o){let i=Object.fromEntries(Object.keys(o).map((r)=>[r,`${F}${r}${F}`]));return e(t,{...a,...i}).split(new RegExp(`${F}(\\w+)${F}`,"u")).map((r,u)=>n(fe,{children:u%2===1?o[r]:r},`${u}:${r}`))}function Pe({agent:e,showModel:t}){let{t:a,openSession:o}=c(),i=e.nickname??"",r=o===void 0?n("span",{className:"font-medium",children:i}):n("button",{type:"button",className:"codex-agent-link font-medium","aria-label":a("stream.codex.subagentOpen",{name:i}),onClick:()=>o(e.threadId,i),children:i});return p("span",{children:[r,e.role!==null&&` (${e.role})`,t&&re(e.model,e.reasoningEffort,a)]})}function Q({prompt:e}){return n("span",{className:"codex-collab-prompt",title:e,children:e})}function Ue(e,t){let a=e.prompt?.trim()?e.prompt:null,o=se(e.status),i=e.tool==="spawnAgent"&&o==="completed"&&a!==null,r=(e.tool==="sendInput"||e.tool==="sendMessage"||e.tool==="followupTask")&&a!==null,u=De(e),d=[];if(u.length===0)d.push({key:"generic",node:Z(e,"row",t)});for(let l of u){let m=n(Pe,{agent:l,showModel:e.tool==="spawnAgent"});if(i)d.push({key:l.threadId,node:n("span",{className:"codex-collab-line",children:R(t,"stream.codex.collab.createdWithInstructions",{},{agent:m,instructions:n(Q,{prompt:a})})})});else if(r)d.push({key:l.threadId,node:n("span",{className:"codex-collab-line",children:R(t,"stream.codex.collab.messagedWithPrompt",{action:o==="interrupted"?t("stream.codex.collab.interrupted"):t(`stream.codex.collab.messaged.${o}`)},{agent:m,prompt:n(Q,{prompt:a})})})});else{let g=e.tool!=="closeAgent"&&e.tool!=="resumeAgent"&&l.state!==null&&l.state!==null?l.state.message?.trim()?t("stream.codex.collab.stateWithMessage",{state:t(`stream.codex.collab.state.${l.state.status}`),message:l.state.message}):t("stream.codex.collab.stateOnly",{state:t(`stream.codex.collab.state.${l.state.status}`)}):"";d.push({key:l.threadId,node:R(t,"stream.codex.collab.agentRow",{action:Z(e,"row",t),state:g},{agent:m})})}}if(!i&&!r&&a!==null)d.push({key:"input",node:R(t,"stream.codex.collab.input",{},{prompt:n("span",{className:"codex-collab-input",children:a})})});return d}function ce({block:e}){let{t}=c(),[a,o]=k(`collab:${e.id}`,!1);if(e.tool==="wait")return null;let i=b(e.status),r=de(e,t);return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":a,onClick:()=>o((u)=>!u),children:[p("span",{className:"codex-activity-label",children:[n(ue,{className:"size-4 shrink-0","aria-hidden":"true"}),n("span",{className:"min-w-0 flex-1 truncate",children:i?n("span",{className:"codex-activity-running",children:r}):r})]}),n(M,{expanded:a})]}),n("div",{className:v("codex-activity-details-grid",a&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:Ue(e,t).map((u)=>n("div",{className:"codex-collab-row",children:u.node},u.key))})})})]})}function le({block:e}){let{t,i18n:a}=c(),o=Boolean(e.isComplete),[i,r]=k(`thinking:${N(e)}`,!1),u=U(null),d=e.thinking.trim().length>0;P(()=>{if(o||!d)return;let s=u.current;if(s===null)throw Error("Thinking details are not mounted");let g=new ResizeObserver(()=>{s.scrollTop=s.scrollHeight}),f=null,C=()=>{let w=s.firstElementChild;if(w===f)return;if(f!==null)g.unobserve(f);if(f=w,f!==null)g.observe(f)},h=new MutationObserver(C);return h.observe(s,{childList:!0}),C(),()=>{h.disconnect(),g.disconnect()}},[d,o]);let l=o?e.durationMs!==void 0?t("stream.codex.thoughtFor",{duration:V(e.durationMs,a.language)}):t("stream.codex.thought"):t("message.thinking"),m=e.thinking.trimStart().replace(/^\*\*[^\n]*?\*\*\s*/,"");return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:v("codex-activity-header",!d&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":d?i:void 0,disabled:!d,onClick:()=>r((s)=>!s),children:[n("span",{className:"codex-activity-label",children:n("span",{className:"codex-reasoning-label min-w-0 flex-1 truncate",children:o?l:n("span",{className:"codex-activity-running",children:l})})}),d&&n(M,{expanded:i})]}),n("div",{className:v("codex-activity-details-grid",i&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:d&&n("div",{ref:u,className:"codex-reasoning-details",role:"region","aria-label":l,"aria-hidden":!i,tabIndex:0,inert:!i,children:n(L,{text:m,streaming:!o})})})})]})}function Oe(e){if(W(e))return"mcp";let t=K(e).category;return t==="think"||t==="switch_mode"?"other":t}function Ve(e,t,a,o){return o(`stream.codex.summary.${e}.${a?"leading":"following"}`,{count:t})}function Ze(e,t,a){let o=new Map,i=[],r=new Set;for(let d of e){if(W(d)&&typeof d.rawInput.server==="string"){if(r.size===0)i.push({kind:"integrations"});r.add(d.rawInput.server);continue}if(O(d)){if(!i.some((m)=>m.kind==="named"&&m.title===d.title))i.push({kind:"named",title:d.title});continue}let l=Oe(d);if(!o.has(l))i.push({kind:"category",category:l});o.set(l,(o.get(l)??0)+1)}let u=i.map((d,l)=>{if(d.kind==="named")return d.title;if(d.kind==="integrations")return t(`stream.codex.summary.integrations.${l===0?"leading":"following"}`,{count:r.size,sources:new Intl.ListFormat(a,{style:"long",type:"conjunction"}).format([...r])});return Ve(d.category,o.get(d.category),l===0,t)});if(a.startsWith("zh"))return u.join("");return new Intl.ListFormat(a,{style:"long",type:"conjunction"}).format(u)}function lr({stateKey:e,durationMs:t,durationKind:a="work",active:o,defaultExpanded:i=o,startedAt:r,providerId:u,providerIcon:d,children:l}){let{t:m,i18n:s}=c(),[g,f]=k(`work:${e}`,i,!0),C=H(`work:${e}`,g||o),h=U(null),[w,y]=_(0);P(()=>{if(!o||t!==void 0){h.current=null;return}h.current=r??Date.now();let A=()=>{let E=h.current;if(E===null)throw Error("Codex work section is ticking without a start time");y(Date.now()-E)};A();let S=window.setInterval(A,1000);return()=>window.clearInterval(S)},[o,r,t]);let T=t!==void 0?m(a==="total"?"stream.codex.totalDuration":"stream.codex.workedFor",{duration:V(t,s.language)}):o&&w>=1000?m("stream.codex.workingFor",{duration:V(w,s.language)}):m(o?"stream.codex.working":"stream.codex.worked");return p("section",{className:"codex-work-section",children:[p("button",{type:"button",className:"codex-work-trigger","data-codex-disclosure":"","aria-expanded":g,onClick:()=>f((A)=>!A),children:[u!==void 0&&n("span",{className:"codex-work-provider-icon","data-testid":"codex-work-provider-icon","data-provider-id":u,"aria-hidden":"true",children:d}),n("span",{children:T}),n(M,{expanded:g,className:"codex-work-chevron"})]}),n("div",{className:"codex-work-separator","aria-hidden":"true"}),n("div",{className:v("codex-work-grid",g&&"codex-work-grid-open"),"aria-hidden":!g,inert:!g,children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-work-body",children:C&&l})})})]})}function He(e,t){if(e.type==="tool_use")return be(e,t);if(e.type==="thinking")return t("message.thinking");if(e.type==="collab")return de(e,t);return t("stream.codex.subagentWorking",{name:e.name})}function X(e){if(e.type==="thinking")return!e.isComplete;if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return b(e.status);return!1}function We(e,t,a=1000){let[o,i]=_({text:e,live:t}),r=U(Date.now());return P(()=>{if(e===o.text&&t===o.live)return;let u=Date.now(),d=Math.max(0,r.current+a-u);if(d===0||t!==o.live){r.current=u,i({text:e,live:t});return}let l=window.setTimeout(()=>{r.current=Date.now(),i({text:e,live:t})},d);return()=>window.clearTimeout(l)},[o,t,a,e]),t===o.live?o.text:e}function je({blocks:e,defaultExpanded:t=!0}){let{t:a,i18n:o}=c(),i=e.some(X),r=N(e[0]),u=e.every((C)=>C.type==="tool_use"&&K(C).category==="execute"),[d,l]=k(`group:${r}`,t&&!u),m=H(`group:${r}`,d),s=e.findLast(X)??e.at(-1);if(s===void 0)throw Error("CodexActivityGroup requires at least one activity block");let g=e.filter((C)=>C.type==="tool_use"),f=We(i?He(s,a):Ze(g,a,o.language),i);return p("div",{className:"codex-activity-group",children:[p("button",{type:"button",className:"codex-activity-group-trigger","data-codex-disclosure":"","aria-expanded":d,onClick:()=>l((C)=>!C),children:[p("span",{className:"codex-activity-label",children:[n(ee,{block:e[0]}),n("span",{className:"truncate",children:i?n("span",{className:"codex-activity-running",children:f}):f})]}),n(M,{expanded:d})]}),n("div",{className:v("codex-activity-group-grid",d&&"codex-activity-group-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-activity-group-body",children:m&&e.map((C)=>n(oe,{block:C},N(C)))})})})]})}function Y({blocks:e,defaultExpanded:t}){if(e.length===0)throw Error("CodexActivityGroup requires at least one activity block");if(e.length===1)return n(oe,{block:e[0]});return n(je,{blocks:e,defaultExpanded:t})}function ft({blocks:e,defaultExpanded:t}){if(!e.some(Ye))return n(Y,{blocks:e,defaultExpanded:t});let a=[];for(let o of e){let i=a.at(-1);if(i&&Ye(i[0])===Ye(o))i.push(o);else a.push([o])}return n(D,{children:a.map((o)=>Ye(o[0])?n(dr,{blocks:o.filter(Ye)},N(o[0])):n(Y,{blocks:o,defaultExpanded:t},N(o[0])))})}
7
- export{lr,ft};
@@ -1,2 +0,0 @@
1
- import{n}from"./chunk-xdrwsxqy.js";import{e}from"./chunk-tac30kkh.js";import{C,te}from"./chunk-2jkv90n6.js";import{hasAccount as D,isGroupedSelect as L}from"@nyssance/codex-acp-v2/client";import{cn as H}from"cn";import{memo as W,useEffect as T,useState as F}from"react";import{HoverCard as z,HoverCardContent as O,HoverCardTrigger as U}from"@nyssance/shadcn/vega/components/ui/hover-card";import{jsx as r,jsxs as u}from"react/jsx-runtime";var d=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),A=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),I=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function f(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function V(a,t){let o=Math.min(100,a/t*100),p=o>=90?"text-destructive":o>=70?"text-foreground":"text-muted-foreground";return{pct:o,className:p}}function G(a){let t=C(a.configOptions,"model");return t===void 0?void 0:te(t)}function rt(a,t){let o=a.windowDurationMins;if(o===null)return t("usage.usage");if(o%1440===0)return t("usage.windowDays",{count:o/1440});return t("usage.windowHours",{count:Math.round(o/60)})}function P(a){let{client:t}=e(),o=n((s)=>a&&s.connection==="ready"&&D(s.agent)),[p,c]=F(null);return T(()=>{if(!o){c(null);return}let s=!0;t.readRateLimits().then((m)=>{if(s)c(m)},()=>{return});let l=t.onRateLimits((m)=>{if(s)c(m)});return()=>{s=!1,l()}},[o,t]),o?p:null}function _({session:a}){let{t}=e().host,o=C(a.configOptions,"model"),p=o!==void 0&&(L(o.options)?o.options.some((i)=>i.groupId==="chatgpt"&&i.options.some((v)=>v.value===o.currentValue)):!o.currentValue.startsWith("gateway:")&&o.options.some((i)=>i.value===o.currentValue)),c=P(p),{usage:s,lastTurnUsage:l}=a;if(s===null&&l===null)return null;let m=s&&s.size>0?V(s.used,s.size):null,x=7,y=2*Math.PI*x,h=f(l?.inputTokens),b=f(l?.outputTokens),g=f(l?.cachedReadTokens),k=f(l?.cachedWriteTokens),R=f(l?.totalTokens)||h+b+g+k,w=h+g,S=w>0?A.format(g/w):t("tokens.notAvailable"),M=[[t("tokens.input"),d.format(h)],[t("tokens.output"),d.format(b)],[t("tokens.cachedRead"),d.format(g)],[t("tokens.cachedWrite"),d.format(k)],[t("tokens.cacheHitRate"),S],[t("tokens.total"),d.format(R)]],N=G(a);return u(z,{children:[r(U,{delay:100,closeDelay:100,render:u("button",{type:"button",className:H("hover:text-foreground flex h-7 items-center gap-1.5 rounded-md px-1.5 text-xs tabular-nums",m?.className??"text-muted-foreground"),"aria-label":t("tokens.openDetails"),children:[u("svg",{viewBox:"0 0 18 18",className:"size-4","aria-hidden":"true",children:[r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),m!==null&&r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:y,strokeDashoffset:y*(1-m.pct/100),transform:"rotate(-90 9 9)"})]}),m!==null&&u("span",{children:[Math.round(m.pct),"%"]})]})}),u(O,{align:"end",side:"top",sideOffset:8,className:"w-56 p-0",children:[N!==void 0&&r("div",{className:"border-b px-3 py-2",children:r("p",{className:"text-foreground truncate text-xs font-semibold",title:N,children:N})}),u("div",{className:"flex flex-col gap-3 p-3",children:[l!==null&&u("div",{className:"flex flex-col gap-1.5",children:[r("p",{className:"text-xs font-medium",children:t("tokens.openDetails")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:M.map(([i,v])=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:i}),r("dd",{className:"text-end tabular-nums",children:v})]},i))})]}),s!==null&&s.size>0&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("tokens.context")}),r("p",{className:"text-muted-foreground text-xs tabular-nums",children:t("tokens.contextSummary",{used:d.format(s.used),limit:d.format(s.size),percent:I.format(s.used/s.size*100)})})]}),c!==null&&(c.primary!==null||c.secondary!==null)&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("usage.limits")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:[c.primary,c.secondary].filter((i)=>i!==null).map((i)=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:rt(i,t)}),r("dd",{className:"text-end tabular-nums",children:t("usage.used",{percent:Math.round(Math.min(100,Math.max(0,i.usedPercent)))})})]},`${i.windowDurationMins??"window"}`))})]})]})]})]})}var En=W(_);
2
- export{rt,En};
@@ -1,2 +0,0 @@
1
- import{Pn}from"./chunk-1fnfd1yv.js";import{createContext as l,useContext as a,useEffect as p,useSyncExternalStore as u}from"react";import{jsx as o}from"react/jsx-runtime";var g=l(null),P=l(null),r=new WeakMap;function tt(e){let t=r.get(e);if(!t)t=Pn(e),r.set(e,t);return t}function Zs({host:e,client:t,children:n}){let s=tt(t);return s.bindHost(e),p(()=>s.bindHost(e),[s,e]),o(g,{value:e,children:o(P,{value:t,children:n})})}function d(){let e=a(g);if(e===null)throw Error("Plugins host is missing");return e}function nt(){let e=a(P);if(e===null)throw Error("Plugins client is missing");return e}function It(e){let t=nt();return u((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function i(e){let t=tt(nt());return u((n)=>t.subscribe(n),()=>e(t.getState()),()=>e(t.getState()))}function ot(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
2
- export{tt,Zs,d,nt,It,i,ot};
package/dist/import.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@nyssance/codex-acp-v2/import";
package/dist/import.js DELETED
@@ -1 +0,0 @@
1
- export*from"@nyssance/codex-acp-v2/import";