@alwith/module-chat 0.6.1 → 0.6.3

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 (391) hide show
  1. package/dist/activity-host.js +1 -1
  2. package/dist/approval/choice-elicitation-form.js +1 -1
  3. package/dist/approval/choice-schema.js +1 -1
  4. package/dist/approval/permission-options.js +1 -1
  5. package/dist/approval/permission-view.js +1 -1
  6. package/dist/approval/schema-elicitation-form.js +1 -1
  7. package/dist/approval/url-elicitation-card.js +1 -1
  8. package/dist/{chunk-8t3hyxk4.js → chunk-0717ykjj.js} +2 -2
  9. package/dist/{chunk-9yrctk84.js → chunk-0n01x7fz.js} +2 -2
  10. package/dist/{chunk-4xp0q7vs.js → chunk-0neph1kr.js} +3 -3
  11. package/dist/{chunk-8fnjpx11.js → chunk-0qy6n5bv.js} +2 -2
  12. package/dist/{chunk-qcj6f1rq.js → chunk-0t3g2phv.js} +2 -2
  13. package/dist/{chunk-p0egvanw.js → chunk-152mrdb6.js} +2 -2
  14. package/dist/{chunk-dbrs7sen.js → chunk-1qm96wyd.js} +2 -2
  15. package/dist/chunk-1xz7zmz5.js +2 -0
  16. package/dist/chunk-228cdk3n.js +2 -0
  17. package/dist/chunk-234jnd72.js +2 -0
  18. package/dist/chunk-23k0jcxd.js +2 -0
  19. package/dist/{chunk-bb1y2fy7.js → chunk-2c6ewztm.js} +2 -2
  20. package/dist/chunk-2gwj90sw.js +2 -0
  21. package/dist/chunk-2n86qe6v.js +3 -0
  22. package/dist/chunk-30tynyrt.js +2 -0
  23. package/dist/{chunk-w0dfvr05.js → chunk-36han2kw.js} +2 -2
  24. package/dist/{chunk-3stf1tm2.js → chunk-3adsd6wf.js} +2 -2
  25. package/dist/{chunk-g7v2xgfh.js → chunk-3fxbypd3.js} +2 -2
  26. package/dist/chunk-3rvvac37.js +2 -0
  27. package/dist/{chunk-nk266xxm.js → chunk-3wxx62gz.js} +2 -2
  28. package/dist/{chunk-8wdkc41j.js → chunk-41t41g5h.js} +2 -2
  29. package/dist/{chunk-zn9xn0pj.js → chunk-4ae0few5.js} +2 -2
  30. package/dist/chunk-4chswhrw.js +2 -0
  31. package/dist/{chunk-yjk5a037.js → chunk-505zj2bz.js} +2 -2
  32. package/dist/chunk-5hp37r8q.js +3 -0
  33. package/dist/chunk-5k7rhfkh.js +2 -0
  34. package/dist/chunk-5kv1p9nd.js +2 -0
  35. package/dist/{chunk-mmm1rq2a.js → chunk-5w96v6hf.js} +2 -2
  36. package/dist/{chunk-76a04a6j.js → chunk-67vzyv97.js} +2 -2
  37. package/dist/{chunk-4xjzvwg4.js → chunk-6j09pkr4.js} +2 -2
  38. package/dist/{chunk-n9fwnebe.js → chunk-6ra6vmy1.js} +2 -2
  39. package/dist/{chunk-7zcr1wzv.js → chunk-6vtcbh85.js} +2 -2
  40. package/dist/{chunk-6zcjn8ra.js → chunk-73gtwm77.js} +2 -2
  41. package/dist/chunk-7pv05p7j.js +2 -0
  42. package/dist/chunk-7vpy078b.js +2 -0
  43. package/dist/{chunk-brqgdzhr.js → chunk-7x2hqdxv.js} +2 -2
  44. package/dist/{chunk-hp9h8njw.js → chunk-82xjggwn.js} +2 -2
  45. package/dist/{chunk-9ff3htdp.js → chunk-8h8zr2s0.js} +2 -2
  46. package/dist/{chunk-v3jehrgj.js → chunk-8q6wpmar.js} +2 -2
  47. package/dist/{chunk-y2g8d94r.js → chunk-8qkhwpmk.js} +2 -2
  48. package/dist/{chunk-ezhzktjg.js → chunk-9271avsa.js} +2 -2
  49. package/dist/{chunk-rg5jhh45.js → chunk-97z2dafr.js} +2 -2
  50. package/dist/chunk-9pcbtreq.js +2 -0
  51. package/dist/{chunk-1341xyde.js → chunk-a63k8tht.js} +2 -2
  52. package/dist/chunk-ambjth0x.js +2 -0
  53. package/dist/{chunk-hp1w7xrp.js → chunk-aq0reck8.js} +2 -2
  54. package/dist/{chunk-r0v0wxn7.js → chunk-ar81v2x8.js} +2 -2
  55. package/dist/{chunk-ehcpnhfw.js → chunk-arzgbze4.js} +2 -2
  56. package/dist/chunk-b3jjd5nv.js +2 -0
  57. package/dist/{chunk-ce3wg766.js → chunk-bdt3y6w6.js} +2 -2
  58. package/dist/chunk-bptqs82k.js +2 -0
  59. package/dist/{chunk-9cqpn67f.js → chunk-btrg3ywt.js} +2 -2
  60. package/dist/{chunk-bjfcyfp5.js → chunk-btrhrh42.js} +2 -2
  61. package/dist/{chunk-6m54xxts.js → chunk-by0ecrb5.js} +2 -2
  62. package/dist/chunk-c3neqj3h.js +2 -0
  63. package/dist/chunk-c9d65ta8.js +2 -0
  64. package/dist/{chunk-1b2jsf2v.js → chunk-ccn44b81.js} +2 -2
  65. package/dist/chunk-cg8ekwka.js +2 -0
  66. package/dist/{chunk-qznyjv2c.js → chunk-cgbjtg32.js} +2 -2
  67. package/dist/chunk-cpcfd1a1.js +2 -0
  68. package/dist/{chunk-ggqv2qpg.js → chunk-cyb27m7n.js} +2 -2
  69. package/dist/chunk-d499mw7g.js +2 -0
  70. package/dist/chunk-d7evpw1z.js +2 -0
  71. package/dist/{chunk-h3mrbbsm.js → chunk-dbc5121m.js} +2 -2
  72. package/dist/{chunk-m33eg346.js → chunk-drrram2y.js} +2 -2
  73. package/dist/{chunk-fzfmg9pk.js → chunk-dwbc8r1m.js} +2 -2
  74. package/dist/{chunk-4jh2wk80.js → chunk-dxgha4a2.js} +2 -2
  75. package/dist/{chunk-xecs5c6a.js → chunk-e6r2sx79.js} +2 -2
  76. package/dist/{chunk-abjr18n6.js → chunk-e8t49fma.js} +4 -4
  77. package/dist/{chunk-t8n1ny7h.js → chunk-egzt0en6.js} +2 -2
  78. package/dist/{chunk-v0h2wsj4.js → chunk-ek1c345m.js} +2 -2
  79. package/dist/{chunk-41nq4hjc.js → chunk-ekq4d1bs.js} +2 -2
  80. package/dist/{chunk-mfnq8nnd.js → chunk-er0nrf55.js} +3 -3
  81. package/dist/chunk-etpnhtgg.js +4 -0
  82. package/dist/chunk-ewctpsb4.js +2 -0
  83. package/dist/{chunk-hfzt777k.js → chunk-ewf8fb64.js} +2 -2
  84. package/dist/{chunk-aarpb5np.js → chunk-f1ha808d.js} +2 -2
  85. package/dist/chunk-ff987rah.js +2 -0
  86. package/dist/{chunk-7nb0qea6.js → chunk-fhkmhxks.js} +3 -3
  87. package/dist/{chunk-c11c29rv.js → chunk-fnhcyga2.js} +5 -5
  88. package/dist/{chunk-53k7yvr8.js → chunk-g6k07w9b.js} +2 -2
  89. package/dist/{chunk-0fmepk2y.js → chunk-g9q3ktfj.js} +3 -3
  90. package/dist/{chunk-j5engcds.js → chunk-gan9srhm.js} +2 -2
  91. package/dist/{chunk-zd40j8qb.js → chunk-gfx3hvr5.js} +2 -2
  92. package/dist/chunk-h1z98eg8.js +2 -0
  93. package/dist/{chunk-be7ja8gh.js → chunk-h2sk8xmm.js} +3 -3
  94. package/dist/chunk-h51hfb0t.js +2 -0
  95. package/dist/{chunk-maa70rv4.js → chunk-hacpxv1k.js} +2 -2
  96. package/dist/{chunk-wnsk4tw5.js → chunk-hvm4b6n2.js} +2 -2
  97. package/dist/{chunk-yf39xswe.js → chunk-j2zx58ja.js} +2 -2
  98. package/dist/{chunk-n6dbc0md.js → chunk-j6svz91p.js} +2 -2
  99. package/dist/chunk-jfa9vg5s.js +2 -0
  100. package/dist/{chunk-eryds6y3.js → chunk-jq1mmpqr.js} +2 -2
  101. package/dist/chunk-jqvp4gfc.js +2 -0
  102. package/dist/{chunk-ksyb8hyt.js → chunk-js9y1x0n.js} +2 -2
  103. package/dist/{chunk-yq55kqn1.js → chunk-jsjyrkcq.js} +2 -2
  104. package/dist/{chunk-31t5ap7s.js → chunk-jtc52w45.js} +3 -3
  105. package/dist/{chunk-nx701kdw.js → chunk-jxcvqmrk.js} +2 -2
  106. package/dist/{chunk-h4r8cx37.js → chunk-jyg1gsqg.js} +2 -2
  107. package/dist/{chunk-6wv99fdt.js → chunk-k1wjbbcq.js} +2 -2
  108. package/dist/{chunk-5azv8vz6.js → chunk-k4kdxztk.js} +2 -2
  109. package/dist/{chunk-6pwy0ncf.js → chunk-kf9zjtr3.js} +2 -2
  110. package/dist/{chunk-9n028hnr.js → chunk-kj1xdw76.js} +2 -2
  111. package/dist/{chunk-9hskky1n.js → chunk-kxv78gj0.js} +2 -2
  112. package/dist/{chunk-dj8e2ymr.js → chunk-m2b57yqn.js} +2 -2
  113. package/dist/{chunk-npsgbfh2.js → chunk-m66tt5vt.js} +2 -2
  114. package/dist/chunk-me85j3xg.js +2 -0
  115. package/dist/{chunk-db0g8rr1.js → chunk-mw9586vr.js} +2 -2
  116. package/dist/{chunk-z4nv1j97.js → chunk-n25773ea.js} +2 -2
  117. package/dist/{chunk-sqwscqfk.js → chunk-n7y86xxv.js} +2 -2
  118. package/dist/{chunk-35z0nr4v.js → chunk-n9234ftx.js} +2 -2
  119. package/dist/{chunk-h3hzsg0s.js → chunk-ngmgp7a4.js} +2 -2
  120. package/dist/{chunk-c2a0x69n.js → chunk-njq7f390.js} +2 -2
  121. package/dist/{chunk-d67ypca2.js → chunk-npqa1nz9.js} +2 -2
  122. package/dist/chunk-nthrcswc.js +2 -0
  123. package/dist/{chunk-7bcm8mpx.js → chunk-p1z376qx.js} +2 -2
  124. package/dist/{chunk-9w4fg6bn.js → chunk-p73qyyrt.js} +2 -2
  125. package/dist/{chunk-6d5c94rn.js → chunk-pvx9s60k.js} +2 -2
  126. package/dist/{chunk-8hen6y4t.js → chunk-pzsx1s8z.js} +2 -2
  127. package/dist/{chunk-k20e64v3.js → chunk-qafx5yjp.js} +2 -2
  128. package/dist/{chunk-v5wqxqrh.js → chunk-qdh9z547.js} +2 -2
  129. package/dist/{chunk-3aadhvbj.js → chunk-qem8a6w1.js} +2 -2
  130. package/dist/{chunk-eb12xkn0.js → chunk-qvbaga5z.js} +2 -2
  131. package/dist/{chunk-vwzkw97t.js → chunk-r03bbt2f.js} +2 -2
  132. package/dist/chunk-rdx8hc3g.js +2 -0
  133. package/dist/{chunk-7xe2v72q.js → chunk-rh5zgmh5.js} +2 -2
  134. package/dist/{chunk-vkc6mwyb.js → chunk-rrb47vhw.js} +2 -2
  135. package/dist/chunk-rxpytgjq.js +3 -0
  136. package/dist/chunk-smwn4wrd.js +2 -0
  137. package/dist/{chunk-601kr76a.js → chunk-spez62xj.js} +3 -3
  138. package/dist/chunk-t67m7g8q.js +2 -0
  139. package/dist/{chunk-bydgccyt.js → chunk-t83h0z1y.js} +2 -2
  140. package/dist/{chunk-18j37y1m.js → chunk-tp3gzh0b.js} +2 -2
  141. package/dist/{chunk-yr6ar090.js → chunk-tpppzcvp.js} +2 -2
  142. package/dist/{chunk-3mrdv5yq.js → chunk-v2kz1m1e.js} +2 -2
  143. package/dist/{chunk-67x8znmk.js → chunk-vsney1vb.js} +2 -2
  144. package/dist/chunk-w30rf96r.js +2 -0
  145. package/dist/{chunk-b5ywqwnr.js → chunk-w8d5b5ta.js} +2 -2
  146. package/dist/{chunk-pp9fngkx.js → chunk-wdfh0xr6.js} +2 -2
  147. package/dist/{chunk-rch4xpj1.js → chunk-wej76mmp.js} +2 -2
  148. package/dist/{chunk-yd6ae6py.js → chunk-wg6yp27g.js} +2 -2
  149. package/dist/{chunk-9k4f13c1.js → chunk-wgph2nb9.js} +2 -2
  150. package/dist/{chunk-0ag4ewq9.js → chunk-wk0w29fc.js} +2 -2
  151. package/dist/{chunk-2bbspcb4.js → chunk-wrfxjyt2.js} +2 -2
  152. package/dist/{chunk-5vh4z4yp.js → chunk-ws07yjfe.js} +2 -2
  153. package/dist/{chunk-g4frp0r0.js → chunk-wyyazt81.js} +2 -2
  154. package/dist/{chunk-c4dk6j2h.js → chunk-x0dn6sdq.js} +2 -2
  155. package/dist/{chunk-07srtfz3.js → chunk-x1gdzj12.js} +2 -2
  156. package/dist/{chunk-xvzz0xh6.js → chunk-x9eeb7ns.js} +2 -2
  157. package/dist/{chunk-x4qnkn8f.js → chunk-xjx9aw6t.js} +2 -2
  158. package/dist/chunk-xq196p3v.js +2 -0
  159. package/dist/chunk-xqe0qa9f.js +2 -0
  160. package/dist/{chunk-a45jg9xv.js → chunk-xr3sd5r7.js} +6 -6
  161. package/dist/chunk-y4ewhx9t.js +2 -0
  162. package/dist/chunk-ydqnz0pb.js +2 -0
  163. package/dist/{chunk-gyps0vc5.js → chunk-yms6983x.js} +4 -4
  164. package/dist/{chunk-9c8cyz7r.js → chunk-yr5y9dp6.js} +2 -2
  165. package/dist/chunk-yxtr7x25.js +2 -0
  166. package/dist/chunk-yyzxpnm0.js +2 -0
  167. package/dist/{chunk-v4cf374m.js → chunk-z0e6twca.js} +2 -2
  168. package/dist/{chunk-gha517v4.js → chunk-z2v008kc.js} +2 -2
  169. package/dist/chunk-z3xg96j6.js +3 -0
  170. package/dist/chunk-z8bbv8qd.js +2 -0
  171. package/dist/chunk-zd2c750t.js +2 -0
  172. package/dist/chunk-zz3wm06f.js +1 -0
  173. package/dist/codex/activity-group.js +1 -1
  174. package/dist/codex/assistant-message.js +1 -1
  175. package/dist/codex/async-question-card.js +1 -1
  176. package/dist/codex/disclosure-state.js +1 -1
  177. package/dist/codex/edited-files-card.js +1 -1
  178. package/dist/codex/image-view-activity.js +1 -1
  179. package/dist/codex/markdown-renderer.js +1 -1
  180. package/dist/codex/navigation-audio.js +1 -1
  181. package/dist/codex/navigation-preview.js +1 -1
  182. package/dist/codex/navigation-rail.js +1 -1
  183. package/dist/codex/patch-view.js +1 -1
  184. package/dist/codex/plan.js +1 -1
  185. package/dist/codex/timeline-virtualizer.js +1 -1
  186. package/dist/codex/turn-activity.js +1 -1
  187. package/dist/codex/user-message.js +1 -1
  188. package/dist/codex/virtualized-turn-list.js +1 -1
  189. package/dist/collections/collection-emoji.js +1 -1
  190. package/dist/collections/collection-menu.js +1 -1
  191. package/dist/collections/collection-panel.js +1 -1
  192. package/dist/collections/collections.js +1 -1
  193. package/dist/collections/host.js +1 -1
  194. package/dist/collections/locales.js +1 -1
  195. package/dist/collections/model.js +1 -1
  196. package/dist/collections/store.js +1 -1
  197. package/dist/composer/completion-filter.js +1 -1
  198. package/dist/composer/completion-menu.js +1 -1
  199. package/dist/composer/completion-trigger.js +1 -1
  200. package/dist/composer/effort-slider.js +1 -1
  201. package/dist/composer/menu-radio.js +1 -1
  202. package/dist/composer/model-select.js +1 -1
  203. package/dist/composer/permission-mode-select.js +1 -1
  204. package/dist/composer/prompt-input-attachments.js +1 -1
  205. package/dist/composer/prompt-input-clipboard.js +1 -1
  206. package/dist/composer/prompt-input-context.js +1 -1
  207. package/dist/composer/prompt-input-textarea.js +1 -1
  208. package/dist/composer/prompt-input.js +1 -1
  209. package/dist/conversation/action-card.js +1 -1
  210. package/dist/conversation/composer/app-mentions.js +1 -1
  211. package/dist/conversation/composer/apps-menu.js +1 -1
  212. package/dist/conversation/composer/composer.js +1 -1
  213. package/dist/conversation/composer/config-options.js +1 -1
  214. package/dist/conversation/composer/context.js +1 -1
  215. package/dist/conversation/composer/drafts.js +1 -1
  216. package/dist/conversation/composer/file-items.js +1 -1
  217. package/dist/conversation/composer/long-text.js +1 -1
  218. package/dist/conversation/composer/mention-chips.js +1 -1
  219. package/dist/conversation/composer/mention-uri.js +1 -1
  220. package/dist/conversation/composer/model-menu.js +1 -1
  221. package/dist/conversation/composer/pasted-text-attachment.js +1 -1
  222. package/dist/conversation/composer/permission-mode-menu.js +1 -1
  223. package/dist/conversation/composer/prediction.js +1 -1
  224. package/dist/conversation/composer/prompt-history.js +1 -1
  225. package/dist/conversation/composer/slash-command-button.js +1 -1
  226. package/dist/conversation/composer/submit-button.js +1 -1
  227. package/dist/conversation/composer/usage-meter.js +1 -1
  228. package/dist/conversation/connection-notice.js +1 -1
  229. package/dist/conversation/context.js +1 -1
  230. package/dist/conversation/conversation-body.js +1 -1
  231. package/dist/conversation/conversation-search.js +1 -1
  232. package/dist/conversation/conversation-view.js +1 -1
  233. package/dist/conversation/conversation.js +1 -1
  234. package/dist/conversation/diff-modal.js +1 -1
  235. package/dist/conversation/draft-project-picker.js +1 -1
  236. package/dist/conversation/session-actions.js +1 -1
  237. package/dist/conversation/subagent-sessions.js +1 -1
  238. package/dist/conversation/subagent-tasks.js +1 -1
  239. package/dist/generated/commands.js +1 -1
  240. package/dist/image-lightbox.js +1 -1
  241. package/dist/image-preview-dialog.js +1 -1
  242. package/dist/image.js +1 -1
  243. package/dist/lib/code-highlighter.js +1 -1
  244. package/dist/lib/fuzzy.js +1 -1
  245. package/dist/lib/group-blocks.js +1 -1
  246. package/dist/lib/image-encode.js +1 -1
  247. package/dist/lib/limits.js +1 -1
  248. package/dist/lib/markdown-parser.js +1 -1
  249. package/dist/lib/markdown-rules.js +1 -1
  250. package/dist/lib/pointer-centered-zoom.js +1 -1
  251. package/dist/lib/prepare-prompt-files.js +1 -1
  252. package/dist/lib/stream-style.js +1 -1
  253. package/dist/lib/streaming-markdown.js +1 -1
  254. package/dist/lib/tool-artifacts.js +1 -1
  255. package/dist/locales.js +1 -1
  256. package/dist/plugins/catalog-header.js +1 -1
  257. package/dist/plugins/catalog-skeleton.js +1 -1
  258. package/dist/plugins/host.js +1 -1
  259. package/dist/plugins/locales.js +1 -1
  260. package/dist/plugins/new-chat-directory.js +1 -1
  261. package/dist/plugins/pane.js +1 -1
  262. package/dist/plugins/panel-item.js +1 -1
  263. package/dist/plugins/plugin-detail-page.js +1 -1
  264. package/dist/plugins/plugin-icon.js +1 -1
  265. package/dist/plugins/plugin-icons.js +1 -1
  266. package/dist/plugins/plugins-page.js +1 -1
  267. package/dist/plugins/plugins.js +1 -1
  268. package/dist/plugins/read-skill-document.js +1 -1
  269. package/dist/plugins/skill-document.js +1 -1
  270. package/dist/plugins/skills-tab.js +1 -1
  271. package/dist/plugins/store.js +1 -1
  272. package/dist/plugins/toolbox-layout.js +1 -1
  273. package/dist/search/chat-search.js +1 -1
  274. package/dist/search/codex-source-matches.js +1 -1
  275. package/dist/search/dom-matches.js +1 -1
  276. package/dist/search/find-bar.js +1 -1
  277. package/dist/search/literal-matches.js +1 -1
  278. package/dist/session-list/account-menu.js +1 -1
  279. package/dist/session-list/activity-list.js +1 -1
  280. package/dist/session-list/archived-sessions.js +1 -1
  281. package/dist/session-list/help-menu.js +1 -1
  282. package/dist/session-list/highlight.js +1 -1
  283. package/dist/session-list/host.js +1 -1
  284. package/dist/session-list/hover-info-card.js +1 -1
  285. package/dist/session-list/locales.js +1 -1
  286. package/dist/session-list/navigation-controls.js +1 -1
  287. package/dist/session-list/navigation-header.js +1 -1
  288. package/dist/session-list/navigation-store.js +1 -1
  289. package/dist/session-list/navigation-tabs.js +1 -1
  290. package/dist/session-list/navigation.js +1 -1
  291. package/dist/session-list/overflow-marquee.js +1 -1
  292. package/dist/session-list/platform.js +1 -1
  293. package/dist/session-list/row-stop-button.js +1 -1
  294. package/dist/session-list/session-groups.js +1 -1
  295. package/dist/session-list/session-info-card.js +1 -1
  296. package/dist/session-list/session-list.js +1 -1
  297. package/dist/session-list/session-row.js +1 -1
  298. package/dist/session-list/session-state-dot.js +1 -1
  299. package/dist/session-list/session-state-menu.js +1 -1
  300. package/dist/session-list/shortcut-hint.js +1 -1
  301. package/dist/session-list/shortcut.js +1 -1
  302. package/dist/session-list/sidebar-overlay.js +1 -1
  303. package/dist/session-list/trailing-swap.js +1 -1
  304. package/dist/session-list/use-activity-notification.js +1 -1
  305. package/dist/session-list/use-activity-preview.js +1 -1
  306. package/dist/session-list/use-cmd-held.js +1 -1
  307. package/dist/session-list/use-project-sessions.js +1 -1
  308. package/dist/session-list/virtual-session-rows.js +1 -1
  309. package/dist/session-timeline/activity-group.js +1 -1
  310. package/dist/session-timeline/activity-projection.js +1 -1
  311. package/dist/session-timeline/assistant-content.js +1 -1
  312. package/dist/session-timeline/assistant-turn.js +1 -1
  313. package/dist/session-timeline/async-questions.js +1 -1
  314. package/dist/session-timeline/edited-files-card.js +1 -1
  315. package/dist/session-timeline/history-timeline.js +1 -1
  316. package/dist/session-timeline/host.js +1 -1
  317. package/dist/session-timeline/navigation-rail.js +1 -1
  318. package/dist/session-timeline/plan.js +1 -1
  319. package/dist/session-timeline/question-reply.js +1 -1
  320. package/dist/session-timeline/resource-content.js +1 -1
  321. package/dist/session-timeline/session-timeline.js +1 -1
  322. package/dist/session-timeline/timeline-registry.js +1 -1
  323. package/dist/session-timeline/turn-activity.js +1 -1
  324. package/dist/session-timeline/turn-error.js +1 -1
  325. package/dist/session-timeline/turn-retry.js +1 -1
  326. package/dist/session-timeline/turn-time.js +1 -1
  327. package/dist/session-timeline/turns.js +1 -1
  328. package/dist/session-timeline/types.d.ts +2 -1
  329. package/dist/session-timeline/use-timeline-scroll.js +1 -1
  330. package/dist/session-timeline/user-message.js +1 -1
  331. package/dist/settings/codex-account-card.js +1 -1
  332. package/dist/settings/login-card.js +1 -1
  333. package/dist/settings/model-alias-settings.js +1 -1
  334. package/dist/settings/model-aliases.js +1 -1
  335. package/dist/settings/provider-logos.js +1 -1
  336. package/dist/settings/provider-section.js +1 -1
  337. package/dist/settings/providers-port.js +1 -1
  338. package/dist/settings/providers.js +1 -1
  339. package/dist/settings/settings-bridge.js +1 -1
  340. package/dist/settings/settings.js +1 -1
  341. package/native/win32-x64/alwith_native_chat.dll +0 -0
  342. package/native/win32-x64/artifact.json +1 -1
  343. package/package.json +2 -2
  344. package/dist/chunk-030esp62.js +0 -2
  345. package/dist/chunk-2z1cpz8a.js +0 -2
  346. package/dist/chunk-4crj8dac.js +0 -2
  347. package/dist/chunk-57p1s7hy.js +0 -2
  348. package/dist/chunk-6hxa1n8n.js +0 -2
  349. package/dist/chunk-6wtrmxev.js +0 -3
  350. package/dist/chunk-753z0tkd.js +0 -2
  351. package/dist/chunk-7eq01k20.js +0 -3
  352. package/dist/chunk-7jx2k96e.js +0 -2
  353. package/dist/chunk-8hgrrycr.js +0 -2
  354. package/dist/chunk-9b8y72yf.js +0 -3
  355. package/dist/chunk-9g7qvbhx.js +0 -2
  356. package/dist/chunk-9rgrb198.js +0 -3
  357. package/dist/chunk-az434tgy.js +0 -2
  358. package/dist/chunk-bk80xpsy.js +0 -2
  359. package/dist/chunk-bt01an6h.js +0 -2
  360. package/dist/chunk-cm5rcd9q.js +0 -2
  361. package/dist/chunk-d1pc0mrb.js +0 -2
  362. package/dist/chunk-e24d6hfs.js +0 -2
  363. package/dist/chunk-e8jfja20.js +0 -2
  364. package/dist/chunk-enr3j794.js +0 -2
  365. package/dist/chunk-g3snk3nb.js +0 -2
  366. package/dist/chunk-gjg213m6.js +0 -2
  367. package/dist/chunk-gvwmyxwf.js +0 -2
  368. package/dist/chunk-hrgtpvkw.js +0 -2
  369. package/dist/chunk-j6mkqhey.js +0 -2
  370. package/dist/chunk-k7y6dqf2.js +0 -2
  371. package/dist/chunk-k8xqzrg6.js +0 -2
  372. package/dist/chunk-m9mvh1gy.js +0 -2
  373. package/dist/chunk-mhnhkg65.js +0 -2
  374. package/dist/chunk-mz18hxbn.js +0 -2
  375. package/dist/chunk-p9ra3xxb.js +0 -2
  376. package/dist/chunk-q92p35wp.js +0 -2
  377. package/dist/chunk-qexqjw6k.js +0 -2
  378. package/dist/chunk-qez4ygej.js +0 -2
  379. package/dist/chunk-qyp7c0j8.js +0 -1
  380. package/dist/chunk-r1sdshyw.js +0 -2
  381. package/dist/chunk-stghje2t.js +0 -2
  382. package/dist/chunk-teg61ef5.js +0 -2
  383. package/dist/chunk-tjjqaf65.js +0 -2
  384. package/dist/chunk-v7dyjpv3.js +0 -2
  385. package/dist/chunk-vpm5ddtt.js +0 -4
  386. package/dist/chunk-wyjzpncq.js +0 -2
  387. package/dist/chunk-xhtpqc8p.js +0 -2
  388. package/dist/chunk-y7v0ghc9.js +0 -2
  389. package/dist/chunk-z49yf5bx.js +0 -2
  390. package/dist/chunk-zb14ervr.js +0 -2
  391. package/dist/chunk-zr2a9z0m.js +0 -2
@@ -1,3 +0,0 @@
1
- import{d,T}from"./chunk-teg61ef5.js";import{V}from"./chunk-601kr76a.js";import{ai}from"./chunk-dj8e2ymr.js";import{ie}from"./chunk-76a04a6j.js";import{ci,nt}from"./chunk-a45jg9xv.js";import{li}from"./chunk-7nb0qea6.js";import{Tn}from"./chunk-bjfcyfp5.js";import{cn as M}from"cn";import{jsx as o,jsxs as g}from"react/jsx-runtime";var v=new WeakMap,w=1;function R(t){if(t.type==="tool_use"||t.type==="subagent"||t.type==="collab")return`${t.type}:${t.id}`;let n=v.get(t);if(n!==void 0)return`${t.type}:${n}`;let s=w++;return v.set(t,s),`${t.type}:${s}`}function P({block:t,streaming:n,actions:s}){if(t.isApiError)return o("div",{className:"codex-stream-error",children:t.text});return g("div",{className:"codex-assistant-message",children:[o(T,{text:t.text,streaming:n}),s]})}function I({block:t,streaming:n,actions:s,renderText:i}){switch(t.type){case"text":return i===void 0?o(P,{block:t,streaming:n,actions:s}):i({block:t,streaming:n,actions:s});case"thinking":return t.thinking.length>0?o(T,{text:t.thinking,streaming:!t.isComplete}):null;case"plan":return o(ie,{entries:t.entries});case"image":return o("img",{src:`data:${t.source.media_type};base64,${t.source.data}`,className:"max-h-64 rounded",alt:""});case"tool_use":case"subagent":case"collab":return null}}var E=new Set;function xa({message:t,isMostRecentTurn:n,hiddenTools:s=E,time:i,beforeCopy:r,afterCopy:c,providerIcon:u,renderText:A,renderEditedFiles:y}){if(t.streaming===!0&&t.content.every((e)=>e.type==="text"?e.text.length===0:e.type==="thinking"?e.thinking.length===0:!1))return o(N,{});let C=t.content.filter((e)=>e.type==="text").map((e)=>e.text).join(`
2
- `),b=!t.streaming&&C.trim().length>0?o(yn,{text:C,isMostRecentTurn:n,beforeCopy:r,afterCopy:c,time:i}):null,l=ai(t.content,"compact"),x=l.reduce((e,a,p)=>a.kind==="codexActivityGroup"?p:e,-1),h=l.findIndex((e,a)=>a>x&&e.kind==="block"&&e.block.type==="text"),B=[...t.content].toReversed().find((e)=>e.type==="text"),f=t.content.filter((e)=>e.type==="tool_use"&&V(e).category==="edit"),k=(e)=>{if(e.kind==="codexActivityGroup"){let a=e.blocks.filter((p)=>p.type!=="tool_use"||!s.has(p.name));return a.length===0?null:o(nt,{blocks:a},`activity:${R(a[0])}`)}if(e.kind!=="block")throw Error(`Codex received an incompatible grouped entry: ${e.kind}`);return o(I,{block:e.block,streaming:Boolean(t.streaming),actions:e.block===B?b:void 0,renderText:A},R(e.block))},m=x===-1?0:h===-1?l.length:h;return o(xn,{stateKey:t.id,active:Boolean(t.streaming),startedAt:t.startedAt,durationMs:t.durationMs,providerId:t.providerId,providerIcon:u,work:l.slice(0,m).map(k),answer:l.length>m?l.slice(m).map(k):null,footer:x!==-1&&f.length>0&&(y===void 0?o(li,{blocks:f}):y(f))})}function yn({text:t,isMostRecentTurn:n=!1,beforeCopy:s,afterCopy:i,time:r}){let c=d(),{t:u}=c;return g("div",{className:M("mt-1.5 flex h-5 w-fit -translate-x-1 items-center justify-start gap-0.5 [&_*]:transition-none",n?"opacity-100":"opacity-0 group-focus-within/am:opacity-100 group-hover/am:opacity-100"),children:[s,o(Tn,{text:t,label:u("actions.copy"),host:c}),i,r&&o("span",{className:"codex-user-time ms-1",title:r.full,children:r.short})]})}function N({label:t}){let{t:n}=d();return o("div",{className:"codex-pending-message py-2",role:"status",children:o("span",{className:"codex-activity-running",children:t??n("message.thinking")})})}function xn({work:t,answer:n,footer:s,loading:i=!1,loadingLabel:r,...c}){if(i)return o(N,{label:r});return g("div",{className:"group/am codex-assistant-turn",children:[t.length>0&&o(ci,{...c,children:t}),n!==null&&(t.length===0?n:o("div",{"data-local-conversation-final-assistant":!0,"data-testid":"codex-final-answer",className:"codex-final-answer",children:n})),s]})}
3
- export{xa,yn,xn};
@@ -1,2 +0,0 @@
1
- var Ur={allow_once:0,allow_always:1,reject_once:2,reject_always:3};function qo(e){return[...e].toSorted((o,n)=>(Ur[o.kind]??99)-(Ur[n.kind]??99))}function ha(e){return e==="allow_once"||e==="allow_always"}function va(e){return e==="allow_always"||e==="reject_always"}
2
- export{Ur,qo,ha,va};
@@ -1,3 +0,0 @@
1
- import{c}from"./chunk-k7y6dqf2.js";import{k,u}from"./chunk-xhtpqc8p.js";import{lt}from"./chunk-5vh4z4yp.js";import{_e,l,Pe,Ue,i}from"./chunk-gjg213m6.js";import{D,H,J,O,U,de,pt}from"./chunk-qyp7c0j8.js";import{ae}from"./chunk-yr6ar090.js";import{Oe}from"./chunk-hp9h8njw.js";import{h}from"./chunk-9cqpn67f.js";import{ut,M}from"./chunk-7zcr1wzv.js";import{F,le}from"./chunk-fzfmg9pk.js";import{dt}from"./chunk-7xe2v72q.js";import{ct}from"./chunk-k8xqzrg6.js";import{hasPluginStore as te}from"@nyssance/codex-acp-v2/client";import{BlocksIcon as ne,BookOpenIcon as se,CheckIcon as ie,CircleArrowUpIcon as oe,MoreVerticalIcon as re,PlusIcon as W,PuzzleIcon as ce,RefreshCwIcon as me,SearchIcon as ue,Trash2Icon as pe,XIcon as ge}from"lucide-react";import{memo as fe,useDeferredValue as ve,useEffect as K,useMemo as Q,useState as I}from"react";import{Button as y}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as xe,DialogContent as he,DialogDescription as Ne,DialogHeader as ke,DialogTitle as ye,DialogTrigger as be}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as we,DropdownMenuContent as Ce,DropdownMenuItem as Ie,DropdownMenuTrigger as Se}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as X}from"@nyssance/shadcn/vega/components/ui/input";import{Label as De}from"@nyssance/shadcn/vega/components/ui/label";import{Spinner as B}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as e,jsxs as s,Fragment as Y}from"react/jsx-runtime";function T(t){return t.interface?.displayName??t.name}function Z(t){return t.interface?.shortDescription??""}function Me({plugin:t,marketplace:d}){let{t:p}=l(),g=i((n)=>(t.id in n.busyIds)),a=i((n)=>n.installed.some((v)=>v.plugin.id===t.id)),f=i((n)=>n.install),m=t.availability!=="AVAILABLE"||t.installPolicy==="NOT_AVAILABLE",r=p(g?"plugins.card.installing":a?"plugins.sections.installed":"plugins.card.install");if(a&&!g)return e(ie,{className:"text-muted-foreground size-4 shrink-0","aria-label":r});return e(y,{size:"icon-sm",variant:"ghost",className:"text-foreground shrink-0 rounded-full",disabled:g||a||m,"aria-label":r,title:m?p("plugins.disabledReason.unknown"):r,onClick:()=>void f({plugin:t,marketplace:d}).catch(()=>{}),children:g?e(B,{"aria-hidden":"true"}):e(W,{className:"size-5",strokeWidth:2,"aria-hidden":"true"})})}function Ee({plugin:t,marketplace:d,actions:p,onOpen:g}){let a=Z(t),f=t.interface?.developerName,m=t.localVersion??t.version,r=[f,m?`v${m}`:null].filter(Boolean).join(" · ");return s(de,{className:"toolbox-row relative",children:[e(y,{variant:"ghost",className:"absolute inset-0 z-0 size-full","data-hover-background":"none","aria-label":T(t),onClick:()=>g({plugin:t,marketplace:d})}),e(O,{className:"pointer-events-none relative translate-none! self-center!",children:e("div",{className:"bg-muted flex size-10 shrink-0 items-center justify-center rounded-xl",children:e(M,{name:t.name})})}),s(H,{className:"pointer-events-none relative min-w-0",children:[e(pt,{className:"mb-0.5",children:T(t)}),e(J,{className:"line-clamp-1",title:a,children:a||d.interface?.displayName||d.name}),r&&e(J,{"data-toolbox-metadata":"",children:r})]}),e(D,{className:"relative w-8 shrink-0 justify-center",children:p})]})}function q(){return Ue((t)=>t.connection==="ready"&&te(t.agent))}var E=48;function ze({marketplace:t,plugins:d,onOpen:p}){let{t:g}=l(),a=i((n)=>n.removeMarketplace),[f,m]=I(0),r=Math.min(f,Math.max(0,Math.ceil(d.length/E)-1));if(d.length===0)return null;return s("section",{className:"flex flex-col gap-4",children:[s("div",{className:"flex items-center gap-2",children:[e("h2",{className:"text-base font-medium",children:t.interface?.displayName??t.name}),e("span",{className:"text-muted-foreground text-xs",children:d.length}),t.path!==null&&s(we,{children:[e(Se,{render:e(y,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground ms-auto","aria-label":g("plugins.pageActions")}),children:e(re,{})}),e(Ce,{align:"end",className:"w-max min-w-[140px] whitespace-nowrap",children:s(Ie,{className:"text-destructive",onClick:()=>void a(t.name),children:[e(pe,{className:"size-3.5"}),g("plugins.marketplace.remove")]})})]})]}),e(U,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2",children:d.slice(r*E,(r+1)*E).map((n)=>e(Ee,{onOpen:p,plugin:n,marketplace:t,actions:e(Me,{plugin:n,marketplace:t})},n.remotePluginId??n.id))}),d.length>E&&s("div",{className:"flex items-center justify-end gap-2 px-2",children:[e(y,{variant:"outline",size:"sm",className:"h-9",disabled:r===0,onClick:()=>m(r-1),children:g("plugins.previousPage")}),s("span",{className:"text-muted-foreground text-xs",children:[r+1," / ",Math.ceil(d.length/E)]}),e(y,{variant:"outline",size:"sm",className:"h-9",disabled:(r+1)*E>=d.length,onClick:()=>m(r+1),children:g("plugins.nextPage")})]})]},t.name)}var Be=fe(function({query:d,onOpen:p}){let{t:g}=l(),a=i((n)=>n.marketplaces),f=i((n)=>n.featuredPluginIds),m=Q(()=>a.map((n)=>({marketplace:n,entries:n.plugins.map((v)=>({plugin:v,text:[v.name,T(v),Z(v),v.interface?.developerName??"",...v.keywords].join(`
2
- `).toLowerCase()}))})),[a]),r=Q(()=>{let n=new Set(f);return m.map(({marketplace:v,entries:x})=>({marketplace:v,plugins:x.filter(({plugin:b,text:P})=>d===""?v.path!==null||n.has(b.id):P.includes(d)).map(({plugin:b})=>b)}))},[m,f,d]);return s(Y,{children:[r.map(({marketplace:n,plugins:v})=>e(ze,{marketplace:n,plugins:v,onOpen:p},JSON.stringify([n.name,n.path,d]))),r.every((n)=>n.plugins.length===0)&&e("p",{className:"text-muted-foreground px-2 py-6 text-center text-sm",children:g("plugins.empty")})]})});function Te(){let{t}=l(),d=q(),p=i((N)=>N.addMarketplace),g=i((N)=>N.upgradeAll),a=i((N)=>N.upgrading),[f,m]=I(""),[r,n]=I(!1),[v,x]=I(!1),[b,P]=I(null),A=async()=>{let N=f.trim();if(!N||r)return;n(!0),P(null);try{await p({source:N}),m(""),x(!1)}catch(S){P(S instanceof Error?S.message:String(S))}finally{n(!1)}};return s("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[s(y,{size:"sm",className:"h-9",variant:"outline",disabled:!d||a,"aria-busy":a,onClick:()=>void g(),children:[a?e(B,{}):e(oe,{"data-icon":"inline-start"}),t("plugins.marketplace.upgradeAll")]}),s(xe,{open:v,onOpenChange:(N)=>{if(!r)x(N)},children:[s(be,{render:e(y,{size:"sm",className:"h-9",variant:"outline",disabled:!d}),children:[e(W,{"data-icon":"inline-start"}),t("plugins.addMarketplace")]}),s(he,{children:[s(ke,{children:[e(ye,{children:t("plugins.marketplace.addTitle")}),e(Ne,{children:t("plugins.catalog.sourceHelp")})]}),s("form",{className:"space-y-4",onSubmit:(N)=>{N.preventDefault(),A()},children:[e(De,{htmlFor:"marketplace-source",children:t("plugins.marketplace.sourceLabel")}),e(X,{id:"marketplace-source",value:f,disabled:r,onChange:(N)=>m(N.target.value),placeholder:t("plugins.marketplace.sourcePlaceholder")}),b&&e("p",{role:"alert",className:"text-destructive text-sm",children:b}),s("div",{className:"flex justify-end gap-2",children:[e(y,{type:"button",variant:"ghost",disabled:r,onClick:()=>x(!1),children:t("plugins.marketplace.addCancel")}),s(y,{type:"submit",disabled:r||f.trim()==="",children:[r&&e(B,{}),t("plugins.marketplace.addSubmit")]})]})]})]})]})]})}function Ae({onOpen:t,query:d}){let p=q(),g=i((m)=>m.marketplaceLoadErrors),a=i((m)=>m.loading)||!p,f=ve(d.trim().toLowerCase());return e(h,{className:"pe-0",viewportClassName:"pe-0",children:s("div",{className:`${F} flex flex-col gap-8`,children:[g.map((m)=>s("p",{className:"text-destructive px-2 text-xs",children:[m.marketplacePath,": ",m.message]},m.marketplacePath)),a?e(ae,{}):e(Be,{query:f,onOpen:t})]})})}function Wi({cwd:t,active:d,extensions:p,onOpenCatalog:g}){let{t:a}=l(),f=Pe(),m=_e(f),r=i((o)=>o.refresh),n=i((o)=>o.loading),v=i((o)=>o.error),[x,b]=I("plugins"),[P,A]=I({plugins:"",skills:""}),N=x==="skills"?P.skills:P.plugins,S=(o)=>A((z)=>({...z,[x]:o})),ee=Ue((o)=>JSON.stringify([...new Set(o.sessionList.map((z)=>Oe(z.cwd,o.projectContext)).filter((z)=>z!==null))].toSorted())),L=JSON.stringify([...new Set([Oe(t,f.state.projectContext),...JSON.parse(ee)].filter((o)=>o!==null))].toSorted()),R=i((o)=>o.installed),V=a(x==="skills"?"plugins.skills.search":"plugins.search"),[w,G]=I(null),C=q();K(()=>{if(!d||!C)return;if(m.getState().loadedScope!==L)r(JSON.parse(L))},[d,C,r,L,m]),K(()=>{if(!C)return;return f.onSkillsChanged(()=>void r(void 0,{background:!0}))},[C,r,f]);let j=(o)=>{g?.(),b("plugins"),G(o)},_=(o)=>{g?.(),b(o),G(null)};return s("div",{className:"plugins-page @container flex h-full min-h-0 overflow-hidden [--navigation-row-height:30px] [--spacing:4px]",children:[e(ut,{}),s("aside",{className:"bg-sidebar/40 flex w-44 shrink-0 flex-col border-e sm:w-60","aria-label":a("plugins.catalog.navigation"),children:[e("div",{className:"shrink-0 px-3 pt-3",children:e("div",{className:"flex h-9 items-center","data-plugin-sidebar-header":"",children:e("h2",{className:"text-sm leading-8 font-semibold",children:a("plugins.catalog.customize")})})}),s("nav",{"aria-label":a("plugins.manageTabs.aria"),className:"flex shrink-0 flex-col gap-1 px-2 pb-1",children:[p&&s(u,{className:`${c} h-8 gap-2 px-2`,active:p.active,onClick:p.onOpen,children:[e(ne,{className:"size-4"}),e("span",{children:a("plugins.extensions")})]}),["plugins","skills"].map((o)=>s(u,{className:`${c} h-8 gap-2 px-2`,active:!p?.active&&x===o&&w===null,onClick:()=>_(o),children:[o==="plugins"?e(ce,{className:"size-4"}):e(se,{className:"size-4"}),e("span",{children:a(`plugins.headings.${o}`)})]},o))]}),e("h3",{className:"text-muted-foreground mx-2 mt-1 mb-2 flex h-8 shrink-0 items-center px-2 text-xs font-medium",children:a("plugins.sections.installed")}),e(h,{className:"min-h-0 flex-1 pe-0",viewportClassName:"pe-0",children:e("nav",{"aria-label":a("plugins.sections.installed"),className:"px-2 pb-4",children:e(k,{children:!C||n&&R.length===0?s("div",{role:"status",className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs",children:[e(B,{className:"size-3.5",role:"presentation","aria-hidden":"true"}),a("plugins.detail.loading")]}):R.length===0?e("p",{className:"text-muted-foreground px-3 py-2 text-xs",children:a("plugins.sections.installedEmpty")}):R.map((o)=>s(u,{title:T(o.plugin),className:`${c} gap-2 px-2`,active:!p?.active&&w?.plugin.id===o.plugin.id,onClick:()=>j(o),children:[e(M,{name:o.plugin.name,className:"size-4 shrink-0"}),e("span",{className:"truncate",children:T(o.plugin)})]},o.plugin.id))})})})]}),e("main",{className:"toolbox-surface @container flex min-h-0 min-w-0 flex-1 flex-col","aria-label":a("plugins.catalog.content"),children:p?.active?p.content:s(Y,{children:[w&&e(dt,{entry:w,onBack:()=>_("plugins")},JSON.stringify([w.marketplace.name,w.marketplace.path,w.plugin.id,t])),s("div",{hidden:w!==null,className:w?"hidden":"flex min-h-0 flex-1 flex-col",children:[e(le,{children:e(lt,{title:a(`plugins.headings.${x}`),children:s("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[s("div",{className:"relative w-52 max-w-full",children:[e(ue,{className:"text-muted-foreground pointer-events-none absolute start-3 top-1/2 size-4 -translate-y-1/2"}),e(X,{className:"h-9 rounded-full ps-9 pe-9","aria-label":V,value:N,onChange:(o)=>S(o.target.value),placeholder:V}),N&&e(y,{className:"toolbox-search-clear absolute end-1 top-1/2 -translate-y-1/2",variant:"ghost",size:"icon-xs","aria-label":a("plugins.catalog.clearSearch"),onClick:()=>S(""),children:e(ge,{})})]}),e(y,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground","aria-label":a("plugins.skills.refresh"),disabled:!C||n,onClick:()=>void r(void 0,{forceRefetch:!0}),children:n?e(B,{}):e(me,{})}),x==="plugins"&&e(Te,{})]})})}),(x==="plugins"||v)&&s("div",{className:"toolbox-content flex shrink-0 flex-col gap-4 pt-2 pb-6",children:[x==="plugins"&&e("p",{className:"text-muted-foreground text-sm",children:a("plugins.catalog.description")}),v&&s("div",{role:"alert",className:"text-destructive flex items-center justify-between gap-2 text-sm",children:[s("p",{children:[a("plugins.loadError.title"),": ",v]}),e(y,{size:"sm",className:"h-9",variant:"outline",disabled:n||!C,onClick:()=>void r(),children:a("plugins.loadError.retry")})]})]}),s("div",{className:"flex min-h-0 flex-1 flex-col",children:[e("div",{hidden:x!=="plugins",className:x==="plugins"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(Ae,{query:P.plugins,onOpen:j})}),e("div",{hidden:x!=="skills",className:x==="skills"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(ct,{query:P.skills,ready:C,onOpenPlugin:j})})]})]})]})})]})}
3
- export{Wi};
@@ -1,2 +0,0 @@
1
- import{d}from"./chunk-teg61ef5.js";import{b}from"./chunk-57p1s7hy.js";import{isContentEntry as k,isImage as N,isResourceLink as w}from"@nyssance/codex-acp-v2/client";import{ChevronRightIcon as C,ImageIcon as S,LoaderCircleIcon as A,RefreshCwIcon as R}from"lucide-react";import{useEffect as B,useState as h}from"react";import{jsx as s,jsxs as y}from"react/jsx-runtime";function De(e){return e.type==="tool_use"&&e.name==="view_image"&&e.status==="completed"}function T(e){let n=[];for(let[r,c]of e.content.entries()){if(!k(c))continue;let i=c.content;if(N(i))n.push({key:`${e.id}:${r}`,src:`data:${i.mimeType};base64,${i.data}`,alt:e.title??""});if(w(i))n.push({key:`${e.id}:${r}`,path:i.uri,alt:i.name})}if(n.length)return n;let a=e.rawInput;if(a!==null&&typeof a==="object"&&"path"in a&&typeof a.path==="string")return[{key:e.id,path:a.path,alt:a.path.split(/[\\/]/).at(-1)??a.path}];throw Error(`Image view ${e.id} has no image source`)}function E({images:e}){let{loadImage:n,openImageGallery:a,openImage:r,t:c}=d(),[i,g]=h({}),[v,x]=h(0),f=JSON.stringify(e);B(()=>{let t=!0,l=JSON.parse(f);g({});for(let o of l)(o.src!==void 0?Promise.resolve(o.src):o.path!==void 0&&n?n(o.path):Promise.reject(Error("Image loading is unavailable"))).then((u)=>{if(t)g((p)=>({...p,[o.key]:{src:u}}))},()=>{if(t)g((u)=>({...u,[o.key]:{error:!0}}))});return()=>{t=!1}},[f,n,v]);let I=e.flatMap((t)=>{let l=i[t.key];return l&&"src"in l?[{src:l.src,alt:t.alt}]:[]});return s("div",{className:"codex-image-thumbnails",children:e.map((t,l)=>{let o=i[t.key];if(!o)return s("div",{className:"codex-image-thumbnail",role:"status","aria-label":c("stream.codex.imageLoading"),children:s(A,{className:"motion-safe:animate-spin","aria-hidden":"true"})},t.key);if("error"in o)return s("button",{type:"button",className:"codex-image-thumbnail",title:t.alt,"aria-label":c("stream.codex.imageFailed"),onClick:()=>x((m)=>m+1),children:s(R,{"aria-hidden":"true"})},t.key);return s("button",{type:"button",className:"codex-image-thumbnail",title:t.alt,onClick:()=>{let m=e.slice(0,l).filter((u)=>{let p=i[u.key];return p&&"src"in p}).length;if(a)a(I,m);else r?.(o.src)},children:s("img",{src:o.src,alt:t.alt,draggable:!1})},t.key)})})}function di({blocks:e}){let{t:n}=d(),a=e.flatMap(T),[r,c]=b(`image-view:${e[0].id}`,!1);return y("div",{className:"codex-activity-item",children:[y("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":r,onClick:()=>c((i)=>!i),children:[y("span",{className:"codex-activity-label",children:[s(S,{className:"codex-activity-icon","aria-hidden":"true"}),s("span",{className:"codex-activity-leading",children:n("stream.codex.viewedImages",{count:a.length})})]}),s(C,{className:r?"codex-image-chevron codex-image-chevron-open":"codex-image-chevron","aria-hidden":"true"})]}),r&&s(E,{images:a})]})}
2
- export{De,di};
@@ -1,2 +0,0 @@
1
- import{P,En,Hi,Yt,Oi,Ln,Ui}from"./chunk-be7ja8gh.js";import{n,Se,X,t}from"./chunk-bt01an6h.js";import{we}from"./chunk-h3hzsg0s.js";import{createStore as C}from"@alwith/api/client";import{isText as w,nativeTurnId as Q}from"@nyssance/codex-acp-v2/client";import{jsx as y}from"react/jsx-runtime";var b=C({entries:{}});function p(r,e){b.setState((s)=>({entries:{...s.entries,[r]:e}}))}function v(r,e){let s=Q(e),a=r.items.findLast((i)=>Q(i)!==null);return!e.replayed&&s!==null&&a!==void 0&&Q(a)===s}function E(r,e){for(let s of r.items){if(s.kind!=="user"||s.echo==="pending")continue;for(let a of[...Ln(s._meta),...s.content.filter(w).flatMap((i)=>Ln(i._meta))])if(a.questionItemId===e)return a.answer}return}function M({sessionId:r,item:e,question:s,index:a}){let i=Se(),{t:l}=n(),m=En(e.id,a),c=JSON.stringify([r,m]),u=X(b,(o)=>o.entries[c]),d=t((o)=>o.sessions[r]),k=t((o)=>o.connection==="ready"),f=u?.draft??Hi(s),x=d===void 0?u?.accepted:E(d,m)??u?.accepted,A=d!==void 0&&v(d,e),h=!d?.subagent&&k&&d?.attached&&!d.restoring&&!d.readOnly,g=x!==void 0?"answered":u?.skipped?"skipped":u?.pending?"submitting":!A?"closed":!h?"unavailable":"pending",D=async()=>{if(b.getState().entries[c]?.pending||g!=="pending")return;let o=i.state.sessions[r];if(o===void 0||!v(o,e)||!o.attached||o.readOnly||o.restoring)return;let S=Yt(s,f);if(!S.trim())return;let q={questionItemId:m,question:s.title,answer:S};p(c,{draft:f,pending:!0});try{await i.prompt(r,[{type:"text",text:Oi(q),_meta:{codex:{questionReply:q}}}]),p(c,{draft:f,accepted:S})}catch(I){p(c,{draft:f,error:I instanceof Error?I.message:String(I)})}};if(g==="closed")return null;return y(Ui,{question:s,draft:f,status:g,answer:x,error:g==="pending"?u?.error:void 0,t:l,onChange:(o)=>p(c,{draft:o}),onSkip:()=>p(c,{draft:f,skipped:!0}),onSubmit:()=>{D()}})}function _n({sessionId:r,item:e}){let s=t((i)=>i.sessions[r]),a=P(e._meta);if(s===void 0||s.subagent!==void 0||s.readOnly||!v(s,e))return y(we,{content:e.content.some((i)=>!w(i)||i.text.trim().length>0)?e.content:a.map((i)=>({type:"text",text:i.title})),messageId:e.id,streaming:!1});return y("div",{className:"flex min-w-0 flex-col gap-3","data-async-questions":e.id,children:a.map((i,l)=>y(M,{sessionId:r,item:e,question:i,index:l},En(e.id,l)))})}
2
- export{_n};
@@ -1,3 +0,0 @@
1
- import{yn,xn}from"./chunk-6wtrmxev.js";import{P}from"./chunk-be7ja8gh.js";import{tt}from"./chunk-y7v0ghc9.js";import{Pn}from"./chunk-xvzz0xh6.js";import{n}from"./chunk-bt01an6h.js";import{Ai,re,rt,Li}from"./chunk-8wdkc41j.js";import{Cn}from"./chunk-z4nv1j97.js";import{we}from"./chunk-h3hzsg0s.js";import{_n}from"./chunk-8hgrrycr.js";import{si}from"./chunk-c11c29rv.js";import{mi}from"./chunk-hrgtpvkw.js";import{gi}from"./chunk-2bbspcb4.js";import{kn,Sn}from"./chunk-e24d6hfs.js";import{ot}from"./chunk-gha517v4.js";import{codexMessageError as U,codexTurnError as q,isContentEntry as me,isEmbeddedResource as Z,isImage as ee,isResourceLink as de,isText as ce,nativeTurnId as ue}from"@nyssance/codex-acp-v2/client";import{LoaderCircleIcon as ge,SparklesIcon as pe}from"lucide-react";import{Fragment as X,memo as fe,useEffect as ye,useState as he}from"react";import{jsx as i,jsxs as l,Fragment as N}from"react/jsx-runtime";function Y(s){if(ee(s))return`${s.mimeType.toLowerCase()}:${s.data}`;if(Z(s)&&"blob"in s.resource&&s.resource.mimeType?.toLowerCase().startsWith("image/"))return`${s.resource.mimeType.toLowerCase()}:${s.resource.blob}`;return null}function ke({item:s}){let{t}=n(),m=s.status==="in_progress",[o,u]=he(()=>Date.now()-s.at>=1e4);return ye(()=>{if(!m)return;let a=Math.max(0,s.at+1e4-Date.now());if(u(a===0),a===0)return;let y=setTimeout(()=>u(!0),a);return()=>clearTimeout(y)},[s.id,s.at,m]),l("div",{className:"codex-context-compaction",children:[i(pe,{"aria-hidden":"true"}),i("span",{children:s.status==="completed"?t("stream.codex.contextCompacted"):s.status==="cancelled"?t("timeline.interrupted"):t(o?"timeline.compactingWithDelayNotice":"timeline.compacting")})]})}function E({sessionId:s,entry:t,terminals:m,streaming:o,streamingThoughtId:u}){let{t:a}=n();switch(t.kind){case"activity":return i(Cn,{sessionId:s,items:t.items,terminals:m,streamingThoughtId:u});case"text":return P(t.item._meta).length>0?i(_n,{sessionId:s,item:t.item}):i(we,{content:t.item.content,messageId:t.item.id,streaming:o});case"plan":return i(mi,{plan:t.item.plan});case"compaction":if(t.item.status==="failed")return l(kn,{children:[i("div",{children:a("timeline.compactionFailed")}),t.item.error!==null&&i("div",{children:t.item.error})]});return i(ke,{item:t.item})}}function xe({sessionId:s,turn:t,terminals:m,active:o,blocked:u=!1,continued:a=!1,edits:y=t.edits,activityItems:M=t.items,workStartedAt:te=t.startedAt,isLast:F,error:h,interrupted:L,retry:O,retrying:p,extraWork:d=null,answerActions:D,footer:ne}){let{t:c}=n(),A=t.errors.map((e)=>{let r=U(e);if(r===null)throw Error("Turn error item is missing its diagnostics");let v=O?.turnId===ue(e)?O:void 0;return i(Sn,{error:r,retry:v},`${e.id}:${v?.delaySeconds??"manual"}`)});if(F&&h!==null&&!t.errors.some((e)=>{let r=U(e);return r!==null&&r.stopReason===h.stopReason&&q(r).message===q(h).message}))A.push(i(Sn,{error:h},"current-run-error"));let k=A.length>0?i("div",{className:"codex-turn-errors",children:A}):null,b=t.items.filter(Pn);if(d===null&&b.length>0&&b.length===t.items.length)return l(N,{children:[i(Cn,{sessionId:s,items:b,terminals:m,streamingThoughtId:null}),k]});let x=t.work,T=x.length>0&&x.every((e)=>e.kind==="compaction");if(d===null&&(Ai(t)||T&&t.final.length===0))return l(N,{children:[i("div",{role:"status",className:"text-muted-foreground flex min-w-0 flex-col gap-2 py-2 text-sm",children:t.work.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:!1,streamingThoughtId:null},e.key))}),k]});let W=rt(t),B=t.final.filter((e)=>P(e._meta).length===0).map(re).join(`
2
- `),w=o?null:ot(t,"assistant"),G=t.items.filter((e)=>e.kind==="tool"&&(e.name==="image_generation"||e.name==="alwith_client_generate_image")&&(e.status==="pending"||e.status==="in_progress")),H=new Set(t.final.flatMap((e)=>e.content.map(Y).filter((r)=>r!==null))),C=t.items.flatMap((e)=>{if(!tt(e))return[];return e.content.filter(me).flatMap((r,v)=>{let g=r.content,ae=ee(g),le=de(g)||Z(g)&&"blob"in g.resource;if(!ae&&!le)return[];let S=Y(g);if(S!==null){if(H.has(S))return[];H.add(S)}return[{key:`${e.id}:${v}`,block:g}]})}),K=t.final.some((e)=>P(e._meta).length===0&&e.content.some((r)=>!ce(r)||r.text.trim().length>0)),ie=G.length>0||C.length>0||T||K||t.final.some((e)=>P(e._meta).length>0),I=t.items.findIndex((e)=>t.final.includes(e)),R=(e)=>t.items.indexOf(e.kind==="activity"?e.items[0]:e.item),Q=x.filter((e)=>I===-1||R(e)<I),se=x.filter((e)=>I!==-1&&R(e)>I),oe=[...t.final.map((e)=>({kind:"answer",item:e,index:t.items.indexOf(e)})),...se.map((e)=>({kind:"work",entry:e,index:R(e)}))].toSorted((e,r)=>e.index-r.index),V=!o&&!a&&(B.trim().length>0?i(yn,{text:B,isMostRecentTurn:F,time:w,afterCopy:D}):l("div",{className:"flex items-center gap-0.5",children:[D,w&&i("span",{className:"codex-user-time ms-1",title:w.full,children:w.short})]})),f=gi({...t,items:M},{running:o,blocked:u,retrying:p!==void 0}),j=f.kind==="reasoning"?f.ownerKey??null:null,z=f.kind==="thinking",_=Li({...t,items:M}),J=o&&!K||d?.active===!0;return l(N,{children:[i(xn,{stateKey:JSON.stringify([s,t.replayed?"history":"live",t.key]),active:J,defaultExpanded:J||d?.defaultExpanded===!0||!t.replayed&&(L||W),..._,durationMs:d?.active?void 0:_.durationMs,startedAt:_.startedAt??te,loading:(z||f.kind==="working")&&t.work.length===0&&d===null,loadingLabel:f.kind==="working"?c("stream.codex.working"):void 0,work:[...a||T?[]:Q.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:o,streamingThoughtId:j},e.key)),...d===null?[]:[i(X,{children:d.content},"additional-work")]],answer:ie||a?l("div",{className:"flex min-w-0 flex-col gap-3",children:[(a||T)&&Q.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:!1,streamingThoughtId:null},e.key)),oe.map((e)=>{if(e.kind==="work")return i(E,{sessionId:s,entry:e.entry,terminals:m,streaming:o,streamingThoughtId:j},e.entry.key);let r=e.item;return l(X,{children:[P(r._meta).length>0?i(_n,{sessionId:s,item:r}):i(we,{content:r.content,messageId:r.id,streaming:o}),r===t.final.at(-1)&&V]},r.id)}),G.map((e)=>l("div",{className:"codex-image-generation",role:"status","aria-label":c(o?"timeline.imageGenerating":"timeline.imageStopped"),"aria-busy":o,children:[i("div",{className:"codex-image-generation-texture","aria-hidden":"true"}),l("span",{className:"codex-image-generation-status",children:[o&&i(ge,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),!o&&c("timeline.imageStopped")]})]},e.id)),C.length>0&&i("div",{className:"codex-reply-artifacts flex min-w-0 flex-col gap-3",children:C.map((e)=>i(we,{content:[e.block],messageId:e.key,streaming:!1},e.key))}),t.final.length===0&&V]}):null,footer:l(N,{children:[z&&t.work.length>0&&i("div",{className:"codex-pending-message py-2",role:"status",children:i("span",{className:"codex-activity-running",children:c("message.thinking")})}),ne,y.length>0&&!o&&!a&&i(si,{items:y}),L&&!W&&i("div",{className:"codex-interrupted-turn",role:"status",children:c("timeline.interrupted")}),!o&&k]})}),o&&p!==void 0&&i("div",{className:"text-muted-foreground py-2 text-sm",role:"status",children:p.capacity?(()=>{let e=/Reconnecting(?:\.\.\.)?\s+(\d+\/\d+)/.exec(p.message)?.[1];return e===void 0?c("timeline.capacityReconnecting"):c("timeline.capacityReconnectingProgress",{progress:e})})():p.message}),o&&k]})}var ri=fe(xe);
3
- export{ri};
@@ -1,2 +0,0 @@
1
- import{R}from"./chunk-6pwy0ncf.js";import{n}from"./chunk-bt01an6h.js";import{SquareSlashIcon as s}from"lucide-react";import{useRef as l}from"react";import{jsx as r}from"react/jsx-runtime";function No({textareaRef:a,onOpenChange:p,menuOpen:e,disabled:m}){let{t:o}=n(),t=l(!1);return r(R,{"aria-label":o("composer.commands"),title:o("composer.commands"),disabled:m,"aria-pressed":e,onPointerDown:()=>{t.current=e},onClick:()=>{p(!t.current),a.current?.getTextarea()?.focus()},children:r(s,{className:"size-4"})})}
2
- export{No};
@@ -1,3 +0,0 @@
1
- import{r,a,o}from"./chunk-d1pc0mrb.js";import{Me,ne,Z}from"./chunk-qez4ygej.js";import{sessionGroup as j}from"@nyssance/codex-acp-v2/client";import{cn as de}from"cn";import{ArchiveIcon as ue,FolderIcon as Q,ListFilterIcon as me,SearchIcon as pe,Trash2Icon as U}from"lucide-react";import{useEffect as he,useRef as fe,useState as d}from"react";import{Alert as P,AlertDescription as T}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as ve,DialogContent as ge,DialogDescription as xe,DialogFooter as Se,DialogHeader as ye,DialogTitle as Le}from"@nyssance/shadcn/vega/components/ui/dialog";import{Input as Ne}from"@nyssance/shadcn/vega/components/ui/input";import{Select as _,SelectContent as Ce,SelectItem as x,SelectTrigger as R,SelectValue as W}from"@nyssance/shadcn/vega/components/ui/select";import{Spinner as J}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as t,jsxs as i}from"react/jsx-runtime";function M({className:u,...s}){return t(Ce,{align:"start",alignItemWithTrigger:!1,sideOffset:6,...s,className:de("max-w-(--available-width) min-w-0 p-1",u)})}function E(u){return u instanceof Error?u.message:String(u)}function we({children:u}){return t("div",{className:"min-h-0 flex-1 overflow-y-auto",children:t("div",{className:"flex flex-col gap-8",children:u})})}function hr({Scroll:u=we}){let{t:s,i18n:A}=r(),m=a(),S=o((e)=>e.archivedSessions),N=o((e)=>e.connection),[B,X]=d(""),[y,Y]=d("all"),[p,ee]=d("all"),[te,se]=d(0),[q,z]=d(!0),[I,F]=d(null),[V,H]=d(null),[C,w]=d(!1),h=fe(!1),[D,f]=d(null),[O,b]=d(null),[ie,G]=d(!1);he(()=>{if(N!=="ready")return;let e=!1;z(!0),F(null);async function c(){try{await m.listArchived({reset:!0});let n=new Set;while(!e&&m.state.archivedCursor!==null){let v=m.state.archivedCursor;if(n.has(v))throw Error("Archive pagination returned a repeated cursor");n.add(v),await m.listArchived()}}catch(n){if(!e)F(E(n))}finally{if(!e)z(!1)}}return c(),()=>{e=!0}},[m,N,te]);let l=o((e)=>e.projectContext),k=!(l!==null&&N==="ready"&&!q&&I===null)||C,L=(e)=>e.title??s("sessionList.untitled"),ae=[...new Set(S.filter((e)=>l&&j(l,e).id!==Z).map((e)=>l?j(l,e).id:e.cwd))].toSorted(),re=B.trim().toLocaleLowerCase(A.language),K=S.filter((e)=>{let c=l?j(l,e).id:null,n=c===Z;return L(e).toLocaleLowerCase(A.language).includes(re)&&(y==="all"||(y==="quick"?n:!n))&&(p==="all"||(p==="quick"?n:c===p))}),le=new Intl.DateTimeFormat(A.language,{dateStyle:"medium",timeStyle:"short"});async function oe(e){if(h.current)return;h.current=!0,w(!0),H(null);try{await m.unarchive(e.sessionId)}catch(c){H(E(c))}finally{h.current=!1,w(!1)}}async function ce(){if(h.current||!D)return;h.current=!0,w(!0),b(null);let e=[],c=[];try{for(let n of D){if(!m.state.archivedSessions.some((v)=>v.sessionId===n.sessionId))continue;try{await m.delete(n.sessionId)}catch(v){e.push(n),c.push(`${L(n)}: ${E(v)}`)}}if(e.length)f(e),b(c.join(`
2
- `));else f(null)}finally{h.current=!1,w(!1)}}return i("section",{className:"flex min-h-0 flex-1 flex-col overflow-hidden","aria-label":s("sessionList.archives.title"),children:[i("div",{className:"mx-auto flex min-h-0 w-full max-w-5xl flex-1 flex-col gap-8 px-6 pt-8 pb-10 lg:pb-14",children:[i("header",{className:"flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3",children:[t("h1",{className:"text-2xl leading-9 font-semibold tracking-tight",children:s("sessionList.archives.title")}),i(g,{size:"sm",variant:"destructive",className:"h-[30px] text-sm font-normal",disabled:k||S.length===0,onClick:()=>{b(null),G(!0),f([...S])},children:[t(U,{className:"size-4","aria-hidden":"true"}),s("sessionList.archives.deleteAll")]})]}),i("div",{className:"flex shrink-0 flex-wrap gap-3",children:[i("div",{className:"relative min-w-48 flex-1",children:[t(pe,{"aria-hidden":"true",className:"text-muted-foreground pointer-events-none absolute start-3 top-2.5 size-4"}),t(Ne,{"aria-label":s("sessionList.archives.search"),placeholder:s("sessionList.archives.search"),value:B,onChange:(e)=>X(e.target.value),className:"rounded-md ps-9"})]}),i(_,{value:y,onValueChange:(e)=>{if(e===null)throw Error("Archive chat type cannot be empty");Y(e)},children:[i(R,{"aria-label":s("sessionList.archives.chatType"),className:"w-40 rounded-md",children:[t(me,{"aria-hidden":"true"}),t(W,{children:s(`sessionList.archives.${y==="all"?"allChats":y==="quick"?"quickChats":"projectChats"}`)})]}),i(M,{children:[t(x,{value:"all",children:s("sessionList.archives.allChats")}),t(x,{value:"quick",children:s("sessionList.archives.quickChats")}),t(x,{value:"project",children:s("sessionList.archives.projectChats")})]})]}),i(_,{value:p,onValueChange:(e)=>{if(e===null)throw Error("Archive project filter cannot be empty");ee(e)},children:[i(R,{"aria-label":s("sessionList.archives.project"),className:"w-48 rounded-md",children:[t(Q,{"aria-hidden":"true"}),t(W,{className:"truncate",children:p==="all"?s("sessionList.archives.allProjects"):p==="quick"?s("sessionList.archives.noProject"):ne(p,l??void 0)})]}),i(M,{children:[t(x,{value:"all",children:s("sessionList.archives.allProjects")}),t(x,{value:"quick",children:s("sessionList.archives.noProject")}),ae.map((e)=>t(x,{value:e,title:e,children:ne(e,l??void 0)},e))]})]})]}),i(u,{children:[N!=="ready"?t("p",{role:"status",className:"text-muted-foreground",children:s("sessionList.archives.connecting")}):q?i("div",{role:"status",className:"text-muted-foreground flex items-center gap-2",children:[t(J,{}),s("sessionList.archives.loading")]}):I?t(P,{variant:"destructive",children:i(T,{className:"flex items-center justify-between gap-4",children:[t("span",{children:I}),t(g,{variant:"outline",onClick:()=>se((e)=>e+1),children:s("sessionList.archives.retry")})]})}):S.length===0?i("div",{className:"text-muted-foreground flex flex-col items-center gap-3 py-16",children:[t(ue,{"aria-hidden":"true",className:"size-8"}),t("p",{children:s("sessionList.archives.empty")})]}):K.length===0?t("p",{className:"text-muted-foreground py-12 text-center",children:s("sessionList.archives.noResults")}):(l?Me(K,l):[]).filter(([,e])=>e.length>0).map(([e,c])=>i("section",{className:"flex flex-col gap-3",children:[i("div",{className:"flex items-center justify-between gap-3",children:[i("h2",{className:"flex min-w-0 items-center gap-2 text-sm font-medium",title:e===Z?void 0:e,children:[t(Q,{"aria-hidden":"true",className:"size-4 shrink-0"}),t("span",{className:"truncate",children:e===Z?s("sessionList.archives.noProject"):ne(e,l??void 0)})]}),t("span",{className:"text-muted-foreground shrink-0 text-sm",children:s("sessionList.archives.count",{count:c.length})})]}),t("div",{className:"divide-border divide-y overflow-hidden rounded-lg border",children:c.map((n)=>i("article",{"aria-label":L(n),className:"flex flex-wrap items-center gap-4 px-4 py-3",children:[i("div",{className:"min-w-0 flex-1 basis-40",children:[t("h3",{className:"truncate text-sm font-medium",title:L(n),children:L(n)}),n.updatedAt!==null&&t("time",{dateTime:n.updatedAt,title:s("sessionList.archives.updatedAt"),className:"text-muted-foreground text-xs",children:le.format(new Date(n.updatedAt))})]}),i("div",{className:"flex shrink-0 items-center gap-2",children:[t(g,{variant:"ghost",size:"icon-sm","aria-label":s("sessionList.delete"),title:s("sessionList.delete"),disabled:k,className:"text-muted-foreground hover:text-destructive",onClick:()=>{b(null),G(!1),f([n])},children:t(U,{"aria-hidden":"true"})}),t(g,{variant:"secondary",size:"sm",disabled:k,onClick:()=>void oe(n),children:s("sessionList.archives.unarchive")})]})]},n.sessionId))})]},e)),V&&t(P,{variant:"destructive",children:t(T,{children:V})})]})]}),t(ve,{open:D!==null,onOpenChange:(e)=>{if(!e&&!h.current)f(null)},children:i(ge,{showCloseButton:!C,children:[i(ye,{children:[t(Le,{children:s("sessionList.archives.deleteTitle")}),t(xe,{children:s(ie?"sessionList.archives.deleteAllDescription":"sessionList.archives.deleteDescription",{count:D?.length??0})})]}),O&&t(P,{variant:"destructive",children:t(T,{className:"max-h-40 overflow-auto whitespace-pre-wrap",children:O})}),i(Se,{children:[t(g,{variant:"outline",disabled:C,onClick:()=>f(null),children:s("sessionList.cancel")}),i(g,{variant:"destructive",className:"text-sm font-normal",disabled:k,onClick:()=>void ce(),children:[C&&t(J,{}),s("sessionList.archives.confirmDelete")]})]})]})})]})}
3
- export{hr};
@@ -1,2 +0,0 @@
1
- var s=new Map,a=new Map,f=new Map;function Bo(t,r){if(a.has(t))throw Error("An attachment writer is already registered for this session");return a.set(t,r),()=>{if(a.get(t)===r)a.delete(t)}}function z(t,r){let n=s.get(t);if(!n)return;let e=r(n.attachments);s.set(t,{...n,attachments:e}),a.get(t)?.(e)}function jt(t,r){f.set(t,r),r.finally(()=>{if(f.get(t)===r)f.delete(t)})}async function Rr(t){for(;;){let e=s.get(t)?.attachments.flatMap((c)=>{let m=f.get(c.id);return m?[m]:[]})??[];if(!e.length)break;await Promise.all(e)}let r=s.get(t);if(!r)return null;let n=await Promise.all(r.attachments.map(async(e)=>{if(!e.url.startsWith("blob:"))return e;let c=await fetch(e.url);if(!c.ok)throw Error("Cannot read draft image");let m=await c.blob(),l=await new Promise((g,p)=>{let o=new FileReader;o.onload=()=>g(o.result),o.onerror=()=>p(o.error),o.readAsDataURL(m)});return{...e,url:l}}));return{text:r.text,mentions:[...r.mentions],attachments:n,modelId:r.modelId}}function Fr(t,r){if(r===null)s.delete(t);else s.set(t,r)}var i=new Map;function $t(t,r){if(i.has(t))throw Error("A composer is already registered for this session");return i.set(t,r),()=>{if(i.get(t)===r)i.delete(t)}}function Dr(t,r){if(typeof r!=="string"||!r.trim())throw Error("The draft is empty");let n=i.get(t);if(!n)throw Error("The session's composer is not open; open the session first");let e=s.get(t);if(e&&(e.text.length||e.attachments.length||e.mentions.length))throw Error("The composer already has a draft; send or clear it first");n(r),s.set(t,{text:r,attachments:[],mentions:[],modelId:e?.modelId??null})}
2
- export{s,Bo,z,jt,Rr,Fr,$t,Dr};
@@ -1,2 +0,0 @@
1
- import{r,a,o,p}from"./chunk-d1pc0mrb.js";import{L}from"./chunk-8hen6y4t.js";import{k,Q,ye}from"./chunk-xhtpqc8p.js";import{he,G,oe}from"./chunk-2z1cpz8a.js";import{so}from"./chunk-m9mvh1gy.js";import{me}from"./chunk-h4r8cx37.js";import{pe}from"./chunk-gvwmyxwf.js";import{ge}from"./chunk-9k4f13c1.js";import{At}from"./chunk-53k7yvr8.js";import{ro}from"./chunk-c4dk6j2h.js";import{ActivityIcon as E}from"lucide-react";import{useEffect as K,useMemo as P}from"react";import{Kbd as M}from"@nyssance/shadcn/vega/components/ui/kbd";import{jsx as c,jsxs as D,Fragment as q}from"react/jsx-runtime";function H(n,d){return n.find((l)=>l.sessionId===d.sessionId)??{sessionId:d.sessionId,cwd:d.cwd,title:d.title||null,updatedAt:null,archived:!1}}function Sr({selectedId:n,onSelect:d,isForeground:l,onOpen:w,accessory:R,rowActions:h}){let N=r(),{t:x}=N,m=o((t)=>t.runStates),v=o((t)=>t.drafts),u=o((t)=>t.sessionList),g=G((t)=>t.activityOrder),f=P(()=>g.flatMap((t)=>{let e=m[t];return e&&he({runStates:m,drafts:v},t)?[{sid:t,record:e,sessionRow:H(u,e)}]:[]}),[g,m,v,u]),b=P(()=>{let t=new Map;for(let e of f){let i=e.sid===n||l?.(e.sid)?"foreground":"background",S=t.get(i)??[];S.push(e),t.set(i,S)}return["foreground","background"].filter((e)=>t.has(e)||e==="background").map((e)=>({key:e,rows:t.get(e)??[]}))},[f,n,l]),y=G((t)=>t.activityCollapsedGroups),s=oe(),I=b.flatMap((t)=>t.key==="foreground"||!y.has(t.key)?t.rows:[]),A=(t)=>{if(w?.(t))return;d(t)},O=ro();K(()=>{let t=(e)=>{if(e.defaultPrevented||e.isComposing||e.repeat||!so(e))return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;let i=Number(e.key);if(!Number.isInteger(i)||i<1||i>9)return;let S=I[i-1];if(!S)return;e.preventDefault(),A(S.sessionRow)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)});let C=(t)=>{let e=I.indexOf(t);return c(T,{sessionRow:t.sessionRow,state:t.record.state,interruption:t.record.interruption,active:t.sid===n,tasks:t.record.tasks,listeningPorts:t.record.listeningPorts,onOpen:()=>A(t.sessionRow),accessory:R?.(t.sid),actions:h?.(t.sessionRow),hint:e<9&&O?c(M,{children:ge(`CommandOrControl+${e+1}`)}):void 0},t.sid)};return c(k,{children:b.map((t)=>t.key==="foreground"?c(k,{children:t.rows.map(C)},t.key):c(Q,{open:!y.has(t.key),onOpenChange:(e)=>{let i=new Set(y);if(e)i.delete(t.key);else i.add(t.key);s({activityCollapsedGroups:i})},leading:c(E,{className:"text-muted-foreground size-3.5 shrink-0"}),label:x("sessionList.background"),count:t.rows.length,children:t.rows.map(C)},t.key))})}function T({sessionRow:n,state:d,interruption:l,active:w,tasks:R,listeningPorts:h,accessory:N,actions:x,onOpen:m,hint:v}){let u=r(),g=a(),{t:f}=u,b=n.title??f("sessionList.untitled"),y=At(n.sessionId,d);return D(q,{children:[c(ye,{"data-session-id":n.sessionId,active:w,role:"button",tabIndex:0,hoverCard:c(pe,{sessionRow:n,actions:x}),onClick:m,onKeyDown:(s)=>{if(s.target!==s.currentTarget)return;if(s.key==="Enter"||s.key===" ")s.preventDefault(),m()},state:d,interruption:l,title:b,preview:y,listeningPorts:h,onOpenPort:u.openLink&&((s)=>u.openLink?.(`http://localhost:${s}`)),accessory:N,hint:v,actions:c(me,{title:f("sessionList.stop"),onStop:()=>p(u,g.stopSession(n.sessionId))})}),R.map((s)=>D("div",{className:"border-border/60 before:border-border/60 relative ms-4 flex min-h-7 items-center gap-2 border-s py-1 ps-4 pe-2 text-xs before:absolute before:start-0 before:top-3.5 before:w-2 before:border-t",children:[c(L,{state:"running"}),c("span",{className:"text-muted-foreground min-w-0 flex-1 truncate leading-5",title:s.title,children:s.title})]},s.id))]})}
2
- export{Sr};
@@ -1,2 +0,0 @@
1
- import{qi}from"./chunk-teg61ef5.js";import{createContext as s,useContext as l,useSyncExternalStore as m}from"react";import{jsx as r}from"react/jsx-runtime";var c=s(null),u=s(null);function ke({host:e,client:i,children:o}){return r(qi,{host:e,children:r(c,{value:e,children:r(u,{value:i,children:o})})})}function n(){let e=l(c);if(e===null)throw Error("Timeline host is missing");return e}function Se(){let e=l(u);if(e===null)throw Error("Timeline client is missing");return e}function X(e,i){return m((o)=>e.subscribe(o),()=>i(e.getState()),()=>i(e.getState()))}function t(e){let i=Se();return X(i.store,e)}function st(e,i){if(e.reportError)e.reportError(i);else console.error(i)}
2
- export{ke,n,Se,X,t,st};
@@ -1,2 +0,0 @@
1
- import{createContext as d,useCallback as n,useContext as i,useEffect as V,useMemo as _,useRef as I,useState as q}from"react";import{jsx as z}from"react/jsx-runtime";var C=d(null),pn=d(null);function ma(){return i(pn)}var mn=d(null);function ga(){return i(mn)}var Ze=d(null);function Qe(){let r=i(C);if(!r)throw Error("Wrap your component inside <PromptInputProvider> to use usePromptInputController().");return r}var Ye=()=>i(C);function fa(){let r=i(Ze);if(!r)throw Error("Wrap your component inside <PromptInputProvider> to use useProviderAttachments().");return r}var X=()=>i(Ze);function Uo({initialInput:r="",revision:l,onSubmittedClear:c,onRemoveAttachment:F,attachmentPolicy:f,value:A,onValueChange:R,attachments:y,onAttachmentsChange:U,children:D}){let L=n((t)=>{if(t.type)return t.type;let e=(t.name||"").toLowerCase();if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg")||e.endsWith(".jpeg"))return"image/jpeg";if(e.endsWith(".webp"))return"image/webp";if(e.endsWith(".gif"))return"image/gif";if(e.endsWith(".bmp"))return"image/bmp";if(e.endsWith(".svg"))return"image/svg+xml";return""},[]),S=A!==void 0,[B,G]=q(r),p=A??B,o=I({value:p,external:l,revision:0});if(o.current.value!==p||o.current.external!==l)o.current={value:p,external:l,revision:o.current.revision+1};let T=n(()=>o.current.revision,[]),P=n((t)=>{if(o.current.value=t,o.current.revision++,S)R?.(t);else G(t)},[S,R]),g=n(()=>P(""),[P]),x=y!==void 0,[J,K]=q([]),v=y??J,h=I(v);h.current=v;let s=n((t)=>{let e=typeof t==="function"?t(h.current):t;if(x)U?.(e);else K(e)},[x,U]),W=I(null),j=I(()=>{}),w=n((t)=>{let e=[...t];if(e.length===0)return;s((a)=>{let m=f===void 0?e:f.uniqueFiles(e,a);return[...a,...m.map((u)=>{let H=f?.sourcePath(u);return{id:crypto.randomUUID(),type:"file",url:URL.createObjectURL(u),mediaType:L(u),filename:u.name,size:u.size,lastModified:u.lastModified,...H===void 0?{}:{sourcePath:H}}})]})},[f,L,s]),O=n((t)=>{s((e)=>{let a=e.find((m)=>m.id===t);if(a?.url)URL.revokeObjectURL(a.url);return e.filter((m)=>m.id!==t)}),F?.()},[F,s]),M=n(()=>{s((t)=>{for(let e of t)if(e.url)URL.revokeObjectURL(e.url);return[]})},[s]);V(()=>{if(x)return;return()=>{for(let t of h.current)if(t.url)URL.revokeObjectURL(t.url)}},[x]);let E=n(()=>{j.current?.()},[]),b=_(()=>({files:v,add:w,remove:O,clear:M,openFileDialog:E,fileInputRef:W}),[v,w,O,M,E]),k=n((t,e)=>{W.current=t.current,j.current=e},[]),Q=_(()=>({textInput:{value:p,setInput:P,clear:g,getRevision:T,clearSubmitted:c??g},attachments:b,__registerFileInput:k}),[p,P,g,T,c,b,k]);return z(C.Provider,{value:Q,children:z(Ze.Provider,{value:b,children:D})})}var gn=d(null);function N(){let r=X(),l=i(gn),c=r??l;if(!c)throw Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return c}
2
- export{pn,ma,mn,ga,Ze,Qe,Ye,fa,Uo,gn,N};
@@ -1,2 +0,0 @@
1
- import{S}from"./chunk-6zcjn8ra.js";import{createContext as m,useContext as c,useState as D,useSyncExternalStore as L}from"react";import{Button as C}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as y,DialogContent as h,DialogDescription as w,DialogFooter as P,DialogHeader as H,DialogTitle as R}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as d}from"react/jsx-runtime";var g=m(null),v=m(null),f=m(null);function Nr({host:e,client:t,children:n}){let[s,l]=D(null);S(s!==null);let{t:u}=e;return i(g,{value:e,children:i(v,{value:t,children:d(f,{value:l,children:[n,i(y,{open:s!==null,onOpenChange:(x)=>!x&&l(null),children:d(h,{children:[d(H,{children:[i(R,{children:u("sessionList.deleteTitle")}),i(w,{children:u("sessionList.deleteDescription")})]}),d(P,{children:[i(C,{variant:"outline",onClick:()=>l(null),children:u("sessionList.cancel")}),i(C,{onClick:()=>{if(s)p(e,t.delete(s.sessionId));l(null)},children:u("sessionList.delete")})]})]})})]})})})}function r(){let e=c(g);if(e===null)throw Error("Session list host is missing");return e}function lo(){return c(g)}function a(){let e=c(v);if(e===null)throw Error("Session list client is missing");return e}function Lt(){let e=c(f);if(e===null)throw Error("Session list provider is missing");return e}function o(e){let t=a();return L((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function p(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
2
- export{Nr,r,lo,a,Lt,o,p};
@@ -1,2 +0,0 @@
1
- import{n}from"./chunk-bt01an6h.js";import{codexTurnError as T}from"@nyssance/codex-acp-v2/client";import{AlertCircleIcon as h}from"lucide-react";import{useEffect as R,useRef as s,useState as u}from"react";import{Button as C}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as t,jsxs as d}from"react/jsx-runtime";function kn({children:i}){return d("div",{className:"codex-error-message",role:"alert",children:[t(h,{"aria-hidden":"true"}),t("div",{className:"min-w-0 flex-1",children:i})]})}function Sn({error:i,retry:e}){let{t:m}=n(),f=T(i),[c]=u(()=>e?.delaySeconds==null?null:Date.now()+e.delaySeconds*1000),[p,v]=u(e?.delaySeconds??null),[N,y]=u(!1),[x,g]=u(null),o=s(!1),w=s(!1),E=s(e?.run);E.current=e?.run;let S=s((b)=>{let a=E.current;if(o.current||a===void 0)return;o.current=!0,y(!0),g(null),a(b).catch((r)=>{w.current=!0,o.current=!1,v(null),y(!1),g(r instanceof Error?r.message:String(r))})}),l=e!==void 0&&f.retryable;return R(()=>{if(!l||c===null)return;let a=setInterval(()=>{if(w.current||o.current)return;let r=Math.max(0,Math.ceil((c-Date.now())/1000));if(v(r),r===0)S.current("automatic")},1000);return()=>clearInterval(a)},[c,l]),d(kn,{children:[d("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t("div",{className:"min-w-0 flex-1 whitespace-pre-wrap",children:f.message}),l&&t(C,{variant:"outline",size:"sm",disabled:N,onClick:()=>S.current("manual"),children:p===null?m("timeline.retry"):m("timeline.retryCountdown",{seconds:p})})]}),x!==null&&t("div",{className:"text-muted-foreground mt-2 text-sm",children:x})]})}
2
- export{kn,Sn};
@@ -1,2 +0,0 @@
1
- import{c}from"./chunk-k7y6dqf2.js";import{a,o}from"./chunk-d1pc0mrb.js";import{k,m,u,Q}from"./chunk-xhtpqc8p.js";import{w,ee,eo}from"./chunk-6hxa1n8n.js";import{Ve}from"./chunk-v5wqxqrh.js";import{A,W}from"./chunk-c2a0x69n.js";import{ue,te}from"./chunk-maa70rv4.js";import{closestCorners as fe,DndContext as Ce,KeyboardSensor as ye,PointerSensor as Se,useSensor as X,useSensors as De}from"@dnd-kit/core";import{SortableContext as Y,sortableKeyboardCoordinates as we,useSortable as ae,verticalListSortingStrategy as Z}from"@dnd-kit/sortable";import{CSS as ce}from"@dnd-kit/utilities";import{cn as G}from"cn";import{BrushCleaningIcon as ve,MessageSquareIcon as Ne,MoreHorizontalIcon as Ie,PencilIcon as he,PlusIcon as de,StarIcon as be,Trash2Icon as me}from"lucide-react";import{useEffect as xe,useMemo as Me,useState as R}from"react";import{Button as v}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as oe,DialogContent as ne,DialogDescription as ie,DialogFooter as le,DialogHeader as re,DialogTitle as se}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as Ee,DropdownMenuContent as ke,DropdownMenuGroup as Le,DropdownMenuItem as H,DropdownMenuTrigger as Re}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Pe}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as s,Fragment as ze}from"react/jsx-runtime";function Te({collectionId:l,sessionId:y,children:x}){let{attributes:N,listeners:I,setNodeRef:i,transform:g,transition:f,isDragging:M}=ae({id:JSON.stringify([l,y]),data:{type:"session",collectionId:l,sessionId:y}});return e("div",{ref:i,style:{transform:ce.Transform.toString(g),transition:f},className:G("w-full min-w-0",M&&"opacity-50"),...N,...I,role:"group",children:x})}function Be({collection:l,children:y,onEdit:x,onConfirm:N,onNewChat:I}){let{t:i}=w(),g=te(),f=ee(),{attributes:M,listeners:p,setNodeRef:h,transform:P,transition:T,isDragging:z}=ae({id:l.id,disabled:{draggable:l.id===A,droppable:!1},data:{type:"collection"}});return e("div",{ref:h,style:{transform:ce.Transform.toString(P),transition:T},className:G("w-full min-w-0",z&&"opacity-50"),children:e(Q,{open:!l.collapsed,onOpenChange:(d)=>f(g({type:"collapse",id:l.id,collapsed:!d})),label:W(l,i),count:l.sessionIds.length,leading:l.id===A?e(be,{className:"size-3.5"}):e(Ve,{emoji:l.emoji,onChange:(d)=>f(g({type:"emoji",id:l.id,emoji:d}))}),wrapHeader:(d)=>e("div",{...M,...p,role:"group",children:d}),actions:s(Ee,{children:[e(Re,{onClick:(d)=>d.stopPropagation(),onPointerDown:(d)=>d.stopPropagation(),render:e(v,{variant:"ghost",size:"icon",className:"size-5","aria-label":i("collection.more",{name:W(l,i)}),children:e(Ie,{className:"size-3.5"})})}),e(ke,{children:s(Le,{children:[l.id!==A&&s(H,{onClick:x,children:[e(he,{}),i("collection.rename")]}),s(H,{onClick:I,children:[e(de,{}),i("collection.newChat")]}),s(H,{onClick:()=>N("clear"),children:[e(ve,{}),i("collection.clearCollection")]}),l.id!==A&&s(H,{variant:"destructive",onClick:()=>N("delete"),children:[e(me,{}),i("collection.deleteCollection")]})]})})]}),children:y})})}function He({children:l}){return e("div",{className:"min-h-0 flex-1 overflow-y-auto ps-2 pe-0 pb-1",children:l})}function sr({renderRow:l,onSelect:y,onNewChat:x,Scroll:N=He}){let I=w(),{t:i}=I,g=te(),f=ee(),M=a(),{collections:p,order:h}=ue(),P=o((t)=>t.sessionList),T=o((t)=>t.archivedSessions),z=o((t)=>t.sessionListLoaded),d=o((t)=>t.sessionListError),F=Me(()=>new Map([...T,...P].map((t)=>[t.sessionId,t])),[T,P]),U=I.isMac??eo(),[S,E]=R(null),[L,K]=R(""),[_,O]=R(""),[D,B]=R(null),[C,q]=R(!1),pe=De(X(Se,{activationConstraint:{distance:5}}),X(ye,{coordinateGetter:we})),j=h.flatMap((t)=>p[t].collapsed?[]:p[t].sessionIds.flatMap((n)=>{let r=F.get(n);return r&&!r.archived?[r]:[]}));xe(()=>{let t=(n)=>{if(n.defaultPrevented||n.isComposing||n.repeat||n.shiftKey||n.altKey)return;if(U?!n.metaKey||n.ctrlKey:!n.ctrlKey||n.metaKey)return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;if(n.target instanceof HTMLElement&&(n.target.isContentEditable||n.target.closest("input,textarea,[role=dialog],[role=menu]")))return;let r=Number(n.key)-1;if(!Number.isInteger(r)||r<0||r>8||!j[r])return;n.preventDefault(),y(j[r])};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[j,U,y]);let ge=({active:t,over:n})=>{if(n===null)return;let r=t.data.current,b=n.data.current;if(r?.type==="session"&&b!==void 0){let V=b.type==="session"?String(b.collectionId):String(n.id);f(g({type:"move",sourceCollectionId:String(r.collectionId),collectionId:V,sessionId:String(r.sessionId),index:b.type==="session"?p[V].sessionIds.indexOf(String(b.sessionId)):void 0}))}else if(r?.type==="collection"&&b?.type==="collection"&&String(n.id)!==A)f(g({type:"reorder",id:String(t.id),index:h.indexOf(String(n.id))}))},J=(t,n)=>{q(!0),f(t.then(n).finally(()=>q(!1)))};return s(ze,{children:[e(N,{children:s(k,{children:[s(u,{className:G(c,"font-normal"),onClick:()=>{E("new"),K(""),O("")},children:[e(m,{children:e(de,{})}),e("span",{children:i("collection.newCollection")})]}),d&&s("div",{className:"text-muted-foreground px-2 text-sm",children:[e("p",{role:"alert",children:d}),e(v,{variant:"ghost",onClick:()=>f(M.listSessions({reset:!0})),children:i("collection.retry")})]}),e(Ce,{sensors:pe,collisionDetection:fe,onDragEnd:ge,children:e(Y,{items:h,strategy:Z,children:e(k,{children:h.map((t)=>e(Be,{collection:p[t],onNewChat:()=>x(t),onEdit:()=>{E(t),K(p[t].name),O(p[t].emoji??"")},onConfirm:(n)=>B({id:t,type:n}),children:e(Y,{items:p[t].sessionIds.map((n)=>JSON.stringify([t,n])),strategy:Z,children:p[t].sessionIds.map((n)=>{let r=F.get(n);if(r?.archived)return null;if(!r)return z?s("div",{className:"text-muted-foreground flex h-[var(--navigation-row-height)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-sm font-normal",children:[e(m,{children:e(Ne,{className:"size-3.5"})}),e("span",{className:"min-w-0 flex-1 truncate",children:i("collection.unavailable")}),e(v,{variant:"ghost",size:"icon",className:"size-5 [&_svg]:size-3.5","aria-label":i("collection.removeFromGroup"),onClick:()=>f(g({type:"remove",sessionId:n,collectionId:t})),children:e(me,{})})]},n):null;return e(Te,{collectionId:t,sessionId:n,children:l(r,()=>{},t)},n)})})},t))})})})]})}),e(oe,{open:S!==null,onOpenChange:(t)=>{if(!t&&!C)E(null)},children:s(ne,{children:[s(re,{children:[e(se,{children:i(S==="new"?"collection.newCollection":"collection.rename")}),e(ie,{children:i("collection.collectionName")})]}),s("form",{onSubmit:(t)=>{if(t.preventDefault(),S===null||!L.trim()||C)return;let n=S==="new"?`collection-${crypto.randomUUID()}`:S;J(g([S==="new"?{type:"create",id:n,name:L}:{type:"rename",id:n,name:L},{type:"emoji",id:n,emoji:_}]),()=>E(null))},className:"flex flex-col gap-3",children:[e(Pe,{autoFocus:!0,"aria-label":i("collection.collectionName"),value:L,onChange:(t)=>K(t.target.value),disabled:C}),S!=="new"&&e(Ve,{emoji:_,onChange:O}),s(le,{children:[e(v,{type:"button",variant:"outline",disabled:C,onClick:()=>E(null),children:i("collection.cancel")}),e(v,{type:"submit",disabled:C||!L.trim(),children:i("collection.confirm")})]})]})]})}),e(oe,{open:D!==null,onOpenChange:(t)=>{if(!t&&!C)B(null)},children:s(ne,{children:[s(re,{children:[e(se,{children:i(D?.type==="delete"?"collection.deleteCollection":"collection.clearCollection")}),e(ie,{children:i("collection.confirmCollectionChange",{name:D===null?"":W(p[D.id],i)})})]}),s(le,{children:[e(v,{variant:"outline",disabled:C,onClick:()=>B(null),children:i("collection.cancel")}),e(v,{disabled:C,onClick:()=>{if(D!==null)J(g({type:D.type,id:D.id}),()=>B(null))},children:i("collection.confirm")})]})]})})]})}
2
- export{sr};
@@ -1,2 +0,0 @@
1
- import{Po}from"./chunk-n6dbc0md.js";import{t}from"./chunk-bt01an6h.js";import{e,f}from"./chunk-xecs5c6a.js";import{j,g,K}from"./chunk-w0dfvr05.js";import{isBooleanOption as U,isGroupedSelect as q,isSelectOption as A}from"@nyssance/codex-acp-v2/client";import{Zap as Z}from"lucide-react";import{memo as D,useRef as F}from"react";import{jsx as B}from"react/jsx-runtime";function H({sessionId:l,options:p,disabled:G,onModelChange:b,onConfigChange:O,defaultGroup:I={id:"models",name:"Models"},catalog:x=(c)=>c,headerAction:L}){let{host:c,client:N}=e(),{t:i}=c,P=t((o)=>Boolean(o.configPending[l])),M=F({sessionId:l,model:!0}),v=P&&(M.current.sessionId!==l||M.current.model),k=t((o)=>{let r=o.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),n=g(p,"model"),a=g(p,"thought_level"),_=p.filter((o)=>o.configId!=="collaboration_mode"&&(o.category==="model_config"||o.category!=="mode"&&o!==n&&o!==a)),S=_.filter(A),m=_.filter(U);if(!n&&!a&&S.length===0&&m.length===0)return null;let u=(o,r)=>{if(r===o.currentValue)return Promise.resolve();M.current={sessionId:l,model:o===n};let d=O?O(o.configId,r):N.setConfig(l,o.configId,r);return f(c,d),d},h=a?j(a):[],z=h.reduce((o,r)=>r.name.length>=o.length?r.name:o,""),R=n?K(n):i("composer.model"),V=(o)=>({api_id:o.value,label:o.name}),y=x(n&&q(n.options)?n.options.map((o)=>({id:o.groupId,name:o.name,models:o.options.map(V)})):[{...I,models:n?j(n).map(V):[]}]),w=y.flatMap((o)=>o.models),C=w.find((o)=>o.api_id===n?.currentValue)??{api_id:n?.currentValue??"",label:R},s=m.find((o)=>o.configId==="fast_mode"||o.configId==="fast-mode");return B(Po,{disabled:G||v||k,switching:v,value:{...C,label:C.shortLabel??C.label},compactCatalog:!0,models:w,showModelList:Boolean(n),onChange:(o)=>{if(o.api_id===n?.currentValue)return;if(b)b(o.api_id);else if(n)u(n,o.api_id)},header:{name:n?.name??i("composer.model"),action:L},modelGroups:y,t:i,effortConfig:a&&h.length>0?{name:"Effort",value:a.currentValue,levels:h,sizer:z,onChange:(o)=>u(a,o)}:void 0,selectOptions:S.map((o)=>({id:o.configId,name:o.name,value:o.currentValue,options:j(o).map((r)=>({value:r.value,label:r.name})),onChange:(r)=>u(o,r)})),booleanOptions:[{id:"fast_mode",name:i("composer.fastMode"),currentValue:s?.currentValue??!1,disabled:!s,title:!s?i("composer.fastModeUnsupported"):void 0,icon:B(Z,{className:"size-4","aria-hidden":"true"})},...m.filter((o)=>o!==s).map((o)=>({id:o.configId,name:o.name,currentValue:o.currentValue}))],onBooleanChange:(o,r)=>{let d=o==="fast_mode"?s:m.find((E)=>E.configId===o);if(!d)throw Error(`Unknown boolean config: ${o}`);u(d,r)}})}var zt=D(H);
2
- export{zt};
@@ -1,2 +0,0 @@
1
- var da=1e6,ua=5000000;function Do(_,e){return _+e>5000000}function pa(_){return(_/1e6).toFixed(1)}var be=5;
2
- export{da,ua,Do,pa,be};
@@ -1,2 +0,0 @@
1
- import{mt}from"./chunk-9c8cyz7r.js";import{createContext as a,useContext as u,useEffect as d,useSyncExternalStore as g}from"react";import{jsx as o}from"react/jsx-runtime";var P=a(null),p=a(null),r=new WeakMap;function _e(e){let t=r.get(e);if(!t)t=mt(e),r.set(e,t);return t}function Qi({host:e,client:t,children:n}){let s=_e(t);return s.bindHost(e),d(()=>s.bindHost(e),[s,e]),o(P,{value:e,children:o(p,{value:t,children:n})})}function l(){let e=u(P);if(e===null)throw Error("Plugins host is missing");return e}function Pe(){let e=u(p);if(e===null)throw Error("Plugins client is missing");return e}function Ue(e){let t=Pe();return g((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function i(e){let t=_e(Pe());return g((n)=>t.subscribe(n),()=>e(t.getState()),()=>e(t.getState()))}function Te(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
2
- export{_e,Qi,l,Pe,Ue,i,Te};
@@ -1,2 +0,0 @@
1
- import{r}from"./chunk-d1pc0mrb.js";import{Mt}from"./chunk-67x8znmk.js";import{I}from"./chunk-qcj6f1rq.js";import{Et,ve}from"./chunk-xhtpqc8p.js";import{formatDistanceToNowStrict as H}from"date-fns";import{enUS as L,zhCN as z}from"date-fns/locale";import{ClockIcon as E,MessageSquareIcon as A}from"lucide-react";import{useEffect as g,useState as D}from"react";import{Input as w}from"@nyssance/shadcn/vega/components/ui/input";import{Separator as M}from"@nyssance/shadcn/vega/components/ui/separator";import{jsx as o,jsxs as h,Fragment as O}from"react/jsx-runtime";var S={en:L,"zh-CN":z};function je(t,a){let i=a==="zh-CN"?S["zh-CN"]:S.en;return H(new Date(t),{locale:i})}function pe({sessionRow:t,actions:a,shortcut:i,renaming:n=!1,onRename:m}){let{t:s,i18n:C,PathAction:u}=r(),f=ve(),y=Et();g(()=>{f(n)},[n,f]);let[x,p]=D(t.title??"");g(()=>{if(n)p(t.title??"")},[n,t.title]);let d=(e)=>{let c=e.trim();m?.(c!==""&&c!==t.title?c:null)},N=t.archived?s("sessionList.archived"):t.updatedAt!==null?je(t.updatedAt,C.language):null,v=[];if(N!==null)v.push({icon:o(E,{className:"size-3.5"}),text:N});let l=u&&o(u,{cwd:t.cwd,onOpened:y});return o(Mt,{title:n?o(w,{autoFocus:!0,value:x,className:"h-7 text-sm","aria-label":s("sessionList.rename"),onChange:(e)=>p(e.target.value),onKeyDown:(e)=>{if(e.stopPropagation(),e.key==="Enter")d(e.target.value);if(e.key==="Escape")m?.(null)},onBlur:(e)=>d(e.target.value)}):h("span",{className:"flex items-center gap-2",children:[o("span",{className:"min-w-0",children:o(I,{className:"min-w-0 flex-1",children:t.title??s("sessionList.untitled")})}),i]}),titleIcon:o(A,{className:"size-3.5"}),details:v,actions:l||a!==void 0?h(O,{children:[l,l&&a!==void 0&&o(M,{}),a]}):void 0})}
2
- export{je,pe};
@@ -1,2 +0,0 @@
1
- import{T}from"./chunk-teg61ef5.js";import{ie}from"./chunk-76a04a6j.js";import{isPlanItems as n,isPlanMarkdown as r}from"@nyssance/codex-acp-v2/client";import{jsx as e}from"react/jsx-runtime";function mi({plan:t}){if(r(t))return e("div",{className:"codex-reasoning-details",children:e(T,{text:t.content,streaming:!1})});if(!n(t))return null;return e(ie,{entries:t.entries})}
2
- export{mi};
@@ -1,2 +0,0 @@
1
- function qr(e,n){if(e.type||!n.type)return e;let i=n.type.split("/")[1],o=i!==void 0&&i!==""?`pasted-${Date.now()}.${i==="jpeg"?"jpg":i}`:"";return new File([e],e.name||o||`pasted-${Date.now()}`,{type:n.type})}function vo(e){let n=[],i=!1;for(let o of e){if(o.kind!=="file")continue;let t=o.getAsFile();if(!t)continue;if(!(t.type||o.type).startsWith("image/")){i=!0;continue}n.push(qr(t,o))}return{imageFiles:n,sawNonImageFile:i}}function yo(e){return[...e].some((n)=>n.kind==="string")}var s=/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g;function Wr(e){return e.replace(s,"")}function Lr(e,n){let i=0;for(let o=0;o<n;o++){let t=e.charCodeAt(o);if(t>=0&&t<=8||t===11||t===12||t>=14&&t<=31||t===127)i++}return i}function Ot(e){let{value:n,selectionStart:i,selectionEnd:o}=e,t=Wr(n);if(t===n)return t;if(e.value=t,i!==null&&o!==null){let a=Math.max(0,i-Lr(n,i)),r=Math.max(0,o-Lr(n,o));requestAnimationFrame(()=>{e.setSelectionRange(a,r)})}return t}
2
- export{qr,vo,yo,Wr,Lr,Ot};
@@ -1,2 +0,0 @@
1
- var xe="chrome-hover hover:bg-foreground/8 data-[active=true]:bg-foreground/5",c="chrome-hover hover:bg-foreground/8 data-active:bg-foreground/5";
2
- export{xe,c};
@@ -1,2 +0,0 @@
1
- import{l,i}from"./chunk-gjg213m6.js";import{D,H,J,O,U,de}from"./chunk-qyp7c0j8.js";import{ae}from"./chunk-yr6ar090.js";import{h}from"./chunk-9cqpn67f.js";import{ce}from"./chunk-v3jehrgj.js";import{F,se}from"./chunk-fzfmg9pk.js";import{CheckIcon as V,SparklesIcon as X,XIcon as _}from"lucide-react";import{useDeferredValue as K,useState as v}from"react";import{Button as y}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as Q,DialogClose as R,DialogContent as W,DialogDescription as Y,DialogHeader as Z,DialogTitle as ee}from"@nyssance/shadcn/vega/components/ui/dialog";import{ItemTitle as te}from"@nyssance/shadcn/vega/components/ui/item";import{Spinner as ne}from"@nyssance/shadcn/vega/components/ui/spinner";import{Switch as le}from"@nyssance/shadcn/vega/components/ui/switch";import{Tabs as ie,TabsContent as oe,TabsList as re,TabsTrigger as pe}from"@nyssance/shadcn/vega/components/ui/tabs";import{jsx as t,jsxs as n,Fragment as S}from"react/jsx-runtime";function P({skill:c}){let{assetUrl:m}=l(),[u,s]=v(!1),o=c.interface?.iconSmall,b=o&&m?m(o):c.interface?.iconSmallUrl;return t("div",{className:"bg-muted flex size-10 shrink-0 items-center justify-center rounded-xl",children:b&&!u?t("img",{src:b,alt:"",onError:()=>s(!0),className:"size-6 rounded object-contain"}):t(X,{className:"text-muted-foreground size-6"})})}function me({skill:c}){let{t:m}=l(),u=i((o)=>o.setSkillEnabled),s=i((o)=>(c.path in o.busySkills));return n("div",{className:"flex items-center gap-2",children:[s&&t(ne,{className:"text-muted-foreground size-3.5"}),t(le,{checked:c.enabled,disabled:s,"aria-label":`${m(c.enabled?"plugins.skills.disable":"plugins.skills.enable")}: ${c.interface?.displayName??c.name}`,onCheckedChange:(o)=>void u(c,o)})]})}function ct({query:c,ready:m,onOpenPlugin:u}){let{t:s}=l(),o=i((e)=>e.skills),b=i((e)=>e.skillErrors),j=i((e)=>e.loading)||!m,z=i((e)=>e.installed),M=i((e)=>e.skillProjects),[E,L]=v(null),[k,B]=v(!1),[G,C]=v(null),x=K(c.trim().toLowerCase()),r=o.find((e)=>e.path===G),N=z.find(({plugin:e})=>e.id===r?.pluginId),p=o.filter((e)=>[e.name,e.interface?.displayName,e.description,e.shortDescription,e.interface?.shortDescription,e.pluginId].filter(Boolean).join(" ").toLowerCase().includes(x)).toSorted((e,a)=>(e.interface?.displayName??e.name).localeCompare(a.interface?.displayName??a.name)),d=[...["user","system","admin"].flatMap((e)=>{let a=o.filter((f)=>f.scope===e);return a.length?[{id:e,label:s(e==="user"?"plugins.catalog.personal":`plugins.skills.scope.${e}`),paths:new Set(a.map((f)=>f.path)),path:null}]:[]}),...Object.entries(M).flatMap(([e,a])=>{if(!o.some((T)=>T.scope==="repo"&&a.includes(T.path)))return[];let f=e.replace(/[\\/]+$/,"").split(/[\\/]/).at(-1)||e;return[{id:`project:${e}`,label:f,paths:new Set(a),path:e}]})],q=d.map((e)=>e.label);for(let e of d)if(e.path&&q.filter((a)=>a===e.label).length>1)e.label=e.path;let g=d.find((e)=>e.id===E)??d[0],w=g?p.filter((e)=>g.paths.has(e.path)):[],A=k||x?p:p.slice(0,6),I=(e)=>t(U,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2",children:e.map((a)=>n(de,{className:"toolbox-row relative [contain-intrinsic-size:auto_80px] [content-visibility:auto]",children:[t(y,{variant:"ghost",className:"absolute inset-0 z-0 size-full","aria-label":a.interface?.displayName??a.name,onClick:()=>C(a.path)}),t(O,{className:"pointer-events-none relative translate-none! self-center!",children:t(P,{skill:a})}),n(H,{className:"pointer-events-none relative min-w-0",children:[t(te,{className:"block truncate",children:a.interface?.displayName??a.name}),t(J,{className:"line-clamp-1",title:a.interface?.shortDescription??a.shortDescription??a.description,children:a.interface?.shortDescription??a.shortDescription??a.description})]}),t(D,{className:"text-muted-foreground pointer-events-none relative",children:a.enabled?t(V,{className:"size-4","aria-label":s("plugins.skills.enabledStatus")}):t("span",{className:"text-xs",children:s("plugins.skills.disabledBadge")})})]},a.path))});return n("div",{className:"flex min-h-0 flex-1 flex-col gap-4",children:[t(h,{className:"pe-0",viewportClassName:"pe-0",children:n("div",{className:`${F} space-y-8 pt-6`,children:[b.map((e)=>n("p",{role:"alert",className:"text-destructive text-xs break-words",children:[e.path,": ",e.message]},e.path)),j?t(ae,{skills:!0}):n(S,{children:[n("section",{"aria-label":s("plugins.skills.installed"),children:[n("div",{className:"mb-4 flex items-center justify-between gap-3",children:[t("h2",{className:"text-base font-medium",children:s("plugins.skills.installed")}),t("span",{role:"status",className:"text-muted-foreground text-xs",children:s("plugins.catalog.skillCount",{count:p.length})})]}),p.length?I(A):t("p",{className:"text-muted-foreground px-2 py-8 text-sm",children:s(x?"plugins.skills.filteredEmpty":"plugins.skills.empty")}),!x&&p.length>6&&t(y,{variant:"ghost",className:"text-muted-foreground mt-3 max-w-full justify-start","aria-expanded":k,onClick:()=>B((e)=>!e),children:k?s("plugins.sections.showLess"):s("plugins.catalog.showMore",{count:p.length-6})})]}),g&&n(ie,{value:g.id,onValueChange:(e)=>{if(typeof e==="string")L(e)},className:"gap-6",children:[t(re,{"aria-label":s("plugins.catalog.scope"),className:"h-auto max-w-full flex-wrap justify-start gap-2 bg-transparent",children:d.map((e)=>t(pe,{value:e.id,title:e.path??e.label,className:"data-active:bg-muted! h-8 flex-none rounded-lg px-3 text-[13px] font-medium shadow-none! after:hidden dark:data-active:border-transparent",children:e.label},e.id))}),d.map((e)=>t(oe,{value:e.id,children:e.id===g.id&&(w.length?I(w):t("p",{className:"text-muted-foreground px-2 py-8 text-sm",children:s("plugins.skills.filteredEmpty")}))},e.id))]})]})]})}),t(Q,{open:!!r,onOpenChange:(e)=>{if(!e)C(null)},children:t(W,{showCloseButton:!1,className:se,children:r&&n(S,{children:[t(ce,{path:r.path,renderHeader:(e)=>n(S,{children:[n("div",{className:"flex items-center justify-between gap-4",children:[t(P,{skill:r}),n("div",{className:"flex shrink-0 items-center gap-2",children:[t(me,{skill:r}),e,t(R,{render:t(y,{variant:"ghost",size:"icon-sm","aria-label":s("plugins.close")}),children:t(_,{})})]})]}),n(Z,{className:"gap-3",children:[t(ee,{className:"text-2xl leading-8 font-semibold break-words",children:r.interface?.displayName??r.name}),t(Y,{className:"text-sm leading-6 break-words whitespace-pre-wrap",children:r.description})]})]})},r.path),r.pluginId&&n("div",{className:"text-sm",children:[n("span",{className:"text-muted-foreground",children:[s("plugins.catalog.fromPlugin")," "]}),N?t(y,{variant:"link",className:"h-auto p-0",onClick:()=>{C(null),u(N)},children:N.plugin.interface?.displayName??N.plugin.name}):r.pluginId]})]})})})]})}
2
- export{ct};
@@ -1,2 +0,0 @@
1
- function fe(){if(typeof navigator>"u")return!1;let a=navigator.userAgentData?.platform;return/mac/i.test(a??navigator.platform)}function so(a){if(a.shiftKey||a.altKey)return!1;return fe()?a.metaKey&&!a.ctrlKey:a.ctrlKey&&!a.metaKey}
2
- export{fe,so};
@@ -1,2 +0,0 @@
1
- function*Dn(n,e){if(e.length===0)return;let r=new RegExp(e.replaceAll(/[.*+?^{}()|[\]\\$]/g,String.raw`\$&`),"giu");for(let t of n.matchAll(r))yield{start:t.index,end:t.index+t[0].length}}function Vi(n,e){if(e.length===0)return[];let r=[];for(let{turnKey:t,segments:o}of n){let c=0;for(let s of o)for(let a of Dn(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
2
- export{Dn,Vi};
@@ -1,2 +0,0 @@
1
- import{ge}from"./chunk-9k4f13c1.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 no({shortcut:t,...o}){return t?r(i,{"aria-hidden":"true",...o,children:ge(t)}):null}function oo({label:t,shortcut:o}){return e(c,{children:[r("span",{className:"min-w-0",children:t}),r(no,{className:"shrink-0",shortcut:o,"aria-hidden":"false"})]})}function Nt({label:t,shortcut:o,children:n}){return e(p,{children:[r(a,{render:n}),r(l,{role:"tooltip",children:o?r(oo,{label:t,shortcut:o}):t})]})}
2
- export{no,oo,Nt};
@@ -1,2 +0,0 @@
1
- import{createContext as t,useContext as o}from"react";var fn=t(null);function Hr(){let e=o(fn);if(e===null)throw Error("Composer is missing");return e}
2
- export{fn,Hr};
@@ -1,2 +0,0 @@
1
- import{c}from"./chunk-k7y6dqf2.js";import{r}from"./chunk-d1pc0mrb.js";import{m,u}from"./chunk-xhtpqc8p.js";import{qe}from"./chunk-nx701kdw.js";import{cn as s}from"cn";import{ArrowLeftIcon as a,ArrowRightIcon as l,SlidersHorizontalIcon as p}from"lucide-react";import{DropdownMenu as d,DropdownMenuContent as g,DropdownMenuItem as f,DropdownMenuTrigger as w}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as L}from"react/jsx-runtime";function Tr({onCollapseAll:i}){let{t:n}=r();return L(d,{children:[o(w,{render:o(qe,{"aria-label":n("sessionList.filter"),title:n("sessionList.filter")}),children:o(p,{})}),o(g,{align:"end",className:"w-52",children:o(f,{onClick:i,children:n("sessionList.collapseAllGroups")})})]})}function Ir({screen:i,onSwitch:n}){let{t:e}=r(),t=e(i==="main"?"sessionList.openLeading":"sessionList.backToMain");return o(u,{className:s(c,i==="main"?"justify-start":"justify-end"),"aria-label":t,title:t,onClick:n,children:o(m,{children:i==="main"?o(a,{}):o(l,{})})})}
2
- export{Tr,Ir};
@@ -1,2 +0,0 @@
1
- import{o}from"./chunk-d1pc0mrb.js";import{he,G,oe}from"./chunk-2z1cpz8a.js";import{useEffect as S,useMemo as f}from"react";function mr(s){let c=G((i)=>i.activityOrder),a=o((i)=>{let n=Object.values(i.runStates).filter((t)=>c.includes(t.sessionId)&&(t.state==="done"||t.state==="requires_action")&&he(i,t.sessionId)).map((t)=>[t.sessionId,JSON.stringify([t.state,t.since,t.interruption])]);return JSON.stringify(n)}),e=f(()=>new Map(JSON.parse(a)),[a]),u=G((i)=>i.activitySeen),r=oe();return S(()=>{if(s==="activity")r({activitySeen:e})},[s,e,r]),s!=="activity"&&[...e].some(([i,n])=>u.get(i)!==n)}
2
- export{mr};
@@ -1,2 +0,0 @@
1
- import{groupSessions as Me,projectName as ne,isQuickChatDirectory as vr,QUICK_CHATS_GROUP as Z}from"@nyssance/codex-acp-v2/client";
2
- export{Me,ne,vr,Z};
@@ -1 +0,0 @@
1
- import{xe}from"./chunk-k7y6dqf2.js";import{I}from"./chunk-qcj6f1rq.js";import{cn as n}from"cn";import{Item as i,ItemActions as D,ItemContent as H,ItemDescription as J,ItemMedia as O,ItemTitle as a}from"@nyssance/shadcn/vega/components/ui/item";import{jsx as o}from"react/jsx-runtime";function U({className:e,...t}){return o("div",{className:n("flex flex-col px-2",e),...t})}function de({className:e,size:t="xs",active:m,...r}){return o(i,{size:t,"data-active":m,className:n(xe,"data-[active=true]:font-medium",e),...r})}function pt({className:e,children:t,...m}){return o(a,{className:n("w-full",e),...m,children:o(I,{children:t})})}export{D,H,J,O,U,de,pt};
@@ -1,2 +0,0 @@
1
- import{E}from"./chunk-67x8znmk.js";import{ve}from"./chunk-xhtpqc8p.js";import{w,ee}from"./chunk-6hxa1n8n.js";import{A,W}from"./chunk-c2a0x69n.js";import{ue,te}from"./chunk-maa70rv4.js";import{cn as G}from"cn";import{BoxIcon as S,ChevronRightIcon as U,PlusIcon as z,StarIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as L,DropdownMenuContent as j,DropdownMenuGroup as y,DropdownMenuItem as k,DropdownMenuRadioGroup as _,DropdownMenuRadioItem as K,DropdownMenuSeparator as q,DropdownMenuTrigger as J}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Q}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as a}from"react/jsx-runtime";function Xn({sessionId:l,trigger:f,favorite:n=!1,hoverBackground:O=n?"none":void 0,allowRemove:R=!0,submenu:g=!1,className:x,onOpenChange:B}){let{t}=w(),c=te(),T=ee(),H=ve(),{collections:s,order:C}=ue(),i=C.find((o)=>s[o].sessionIds.includes(l)),[P,F]=d(!1),[D,b]=d(!1),[m,h]=d(""),[r,v]=d(!1),I=(o)=>{if(F(o),H(o),B?.(o),!o)b(!1),h("")},p=(o)=>{v(!0),T(o.then(()=>{I(!1)}).finally(()=>v(!1)))};return a(L,{modal:!1,open:P,onOpenChange:(o,M)=>{if(!o&&D&&M.reason==="trigger-hover"){M.cancel();return}I(o)},children:[e(J,{disabled:r,"data-hover-background":O,openOnHover:n||g,"aria-label":t(n&&i!==void 0?"collection.removeFromAll":"collection.addTo"),onMouseDown:(o)=>{if(n)o.preventBaseUIHandler()},onClick:(o)=>{if(!n)return;o.preventBaseUIHandler(),p(c({type:"favorite",sessionId:l}))},render:f??e(N,{variant:"ghost",size:"icon-sm",className:x,"aria-label":t(n&&i!==void 0?"collection.removeFromAll":"collection.addTo"),children:e(u,{className:G(i!==void 0&&"fill-current")})})}),a(j,{className:"w-56 font-normal",side:g?"inline-end":"bottom",align:g?"start":"end",sideOffset:4,children:[e(y,{children:e(_,{value:i??null,children:C.map((o)=>a(K,{value:o,disabled:r||i===o,closeOnClick:!1,onClick:()=>p(c({type:"add",collectionId:o,sessionId:l})),children:[o===A?e(u,{}):s[o].emoji?e("span",{className:"flex size-4 shrink-0 items-center justify-center text-sm","aria-hidden":"true",children:s[o].emoji}):e(S,{}),e("span",{className:"min-w-0 flex-1 truncate",children:W(s[o],t)})]},o))})}),e(q,{}),a(y,{children:[a(k,{disabled:r,closeOnClick:!1,onClick:()=>b(!0),children:[e(z,{}),t("collection.newCollection")]}),R&&i!==void 0&&a(k,{disabled:r,closeOnClick:!1,onClick:()=>p(c({type:"remove",sessionId:l})),children:[e(u,{}),t("collection.removeFromAll")]})]}),D&&a("form",{className:"flex items-center gap-1 px-2 py-1.5",onSubmit:(o)=>{if(o.preventDefault(),o.stopPropagation(),!m.trim()||r)return;p(c({type:"create",id:`collection-${crypto.randomUUID()}`,name:m,sessionId:l}))},children:[e(Q,{autoFocus:!0,"aria-label":t("collection.collectionName"),placeholder:t("collection.collectionName"),value:m,disabled:r,onChange:(o)=>h(o.target.value),onKeyDown:(o)=>o.stopPropagation(),className:"h-7 min-w-0"}),e(N,{size:"xs",type:"submit",disabled:r||!m.trim(),children:t("collection.confirm")})]})]})]})}function lr({sessionId:l,allowRemove:f=!0}){let{t:n}=w();return e(Xn,{sessionId:l,allowRemove:f,submenu:!0,trigger:e(E,{icon:e(u,{}),label:n("collection.addTo"),trailing:e(U,{className:"rtl:rotate-180"})})})}
2
- export{Xn,lr};
@@ -1,2 +0,0 @@
1
- function Gn(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function en(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function Ie(t){return t.type==="array"}function gt(t){return(Ie(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{Gn,en,Ie,gt};
@@ -1,2 +0,0 @@
1
- import{createContext as i,useContext as r}from"react";import{jsx as e}from"react/jsx-runtime";var n=i(null);function qi({host:t,children:o}){return e(n.Provider,{value:t,children:o})}function d(){let t=r(n);if(t===null)throw Error("Activity host is missing");return t}function T(t){let{Markdown:o}=d();return e(o,{...t})}
2
- export{qi,d,T};
@@ -1,2 +0,0 @@
1
- import{C}from"./chunk-9ff3htdp.js";function Zi(r,n){return C.readSkillDocument({path:r,roots:n??null})}
2
- export{Zi};
@@ -1,2 +0,0 @@
1
- import{s,z,jt}from"./chunk-az434tgy.js";var To=5000;function Le(t){return"pastedText"in t}function Zr(t){return`file://${encodeURI(t).replaceAll("#","%23").replaceAll("?","%3F")}`}function We(t,e,o){let i=(r,n)=>{for(let[a,x]of s){if(!x.attachments.some((p)=>p.id===e.id))continue;z(a,(p)=>p.map((d)=>d.id===e.id?{...e,url:n===void 0?"":Zr(n),pastedText:{text:e.pastedText.text,status:r}}:d))}};if(!s.get(t)?.attachments.some((r)=>r.id===e.id))return;i("pending"),jt(e.id,o("pasted-text.txt",e.pastedText.text).then((r)=>i("ready",r)).catch(()=>i("error")))}function Vt(t,e,o,i){if(t.defaultPrevented||t.currentTarget.disabled)return;if([...t.clipboardData.items].some((a)=>a.kind==="file"&&a.type.startsWith("image/")))return;let r=t.clipboardData.getData("text/plain");if(r.length<To)return;t.preventDefault(),t.stopPropagation();let n={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:o,url:"",pastedText:{text:r,status:"pending"}};z(e,(a)=>[...a,n]),We(e,n,i)}
2
- export{To,Le,Zr,We,Vt};
@@ -1,4 +0,0 @@
1
- import{vi}from"./chunk-bjfcyfp5.js";import{n}from"./chunk-bt01an6h.js";import{xi,bi}from"./chunk-yf39xswe.js";import{Y}from"./chunk-y2g8d94r.js";import{re}from"./chunk-8wdkc41j.js";import{isEmbeddedResource as g,isImage as d,isResourceLink as f,isText as x}from"@nyssance/codex-acp-v2/client";import{memo as p}from"react";import{jsx as r,jsxs as h}from"react/jsx-runtime";var hi=p(function({item:t,messageTime:c}){let l=n(),o=bi(t._meta),m=o?o.map((e)=>e.question===void 0?e.text:`${e.question}
2
- ${e.text}`).join(`
3
- `):re(t),a=t.content.filter(d),i=t.content.filter((e)=>f(e)||g(e)),u=o??t.content.filter(x).map((e)=>{let s=xi(e._meta);return s?{question:s.question,text:s.answer}:{text:e.text}});if(m.length===0&&a.length===0&&i.length===0)return null;return h("div",{className:"group/codex-user flex min-w-0 flex-col items-end gap-2","data-content-search-unit-key":t.id,children:[i.length>0&&r("div",{className:"codex-user-mentions",children:i.map((e,s)=>r(Y,{block:e},`${t.id}:${s}`))}),r(vi,{host:l,message:t,text:m,textParts:u.some((e)=>("question"in e))?u:void 0,images:a,mentions:[],messageTime:c})]})});
4
- export{hi};
@@ -1,2 +0,0 @@
1
- import{C,nn}from"./chunk-9ff3htdp.js";import{kt}from"./chunk-07srtfz3.js";import{useEffect as p,useRef as P,useState as u}from"react";var qn="providers:changed",Wn="providers:managed-revoked",i=(e)=>e;function nr(){return{read:()=>i(C.providersRead()),save:(e,r,t)=>i(C.providersSave({providerId:r,input:t,expectedRevision:e})),saveCustom:(e,r)=>i(C.providersSaveCustom({input:r,expectedRevision:e})),removeCustom:(e,r)=>i(C.providersRemoveCustom({providerId:r,expectedRevision:e})),test:(e)=>C.providersTest({providerId:e}),apply:()=>i(C.providersApply()),onChanged:(e)=>nn[qn].listen((r)=>e(r.payload))}}function or(){return{bind:(e)=>C.providersAccountBind({account:e}),refresh:(e,r)=>i(C.providersRefreshManaged({generation:e,accessToken:r})),clear:async()=>{await C.providersClearManaged()},onRevoked:(e)=>nn[Wn].listen((r)=>e(r.payload.sessionIds))}}async function bt(e){try{return await e.apply()}catch(r){if(!kt(r))throw r;return e.read()}}function Ct(e,r=console.error){let[t,d]=u(null),a=P(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{qn,Wn,nr,or,bt,Ct};
@@ -1,2 +0,0 @@
1
- import{xe,c}from"./chunk-k7y6dqf2.js";import{I}from"./chunk-qcj6f1rq.js";import{L}from"./chunk-8hen6y4t.js";import{S}from"./chunk-6zcjn8ra.js";import{$e,Ae,Ke}from"./chunk-9n028hnr.js";import{PreviewCard as h}from"@base-ui/react/preview-card";import{cn as p}from"cn";import{LockIcon as D}from"lucide-react";import{createContext as _,useContext as E,useLayoutEffect as M,useState as T}from"react";import"@alwith/module-chat/session-list.css";import{jsx as e,jsxs as d,Fragment as K}from"react/jsx-runtime";function k(o){if(o.as==="ul"){let{as:i,className:s,...a}=o;return e("ul",{className:p("flex w-full min-w-0 flex-col gap-0.5",s),...a})}let{as:t,className:n,...r}=o;return e("div",{className:p("flex w-full min-w-0 flex-col gap-0.5",n),...r})}function m({className:o,...t}){return e("span",{"data-slot":"navigation-leading",className:p("flex size-6 shrink-0 items-center justify-center [&_.lucide]:size-3.5",o),...t})}function u({active:o,className:t,...n}){return e("button",{type:"button","data-active":o?"":void 0,"aria-current":o?"page":void 0,className:p("group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",t),...n})}function Q({open:o,onOpenChange:t,tooltip:n,leading:r,label:i,count:s,countLabel:a,active:l=!1,actions:C,headerChildren:g,wrapHeader:f,onHeaderClick:b,children:P}){let y=()=>{b?.(),t(!o)},x=p($e,"relative flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-start [corner-shape:superellipse(1.5)]"),R=d(K,{children:[r!=null&&e(m,{children:r}),g??e(I,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(Ke,{content:s!==void 0?e(Ae,{className:p("text-muted-foreground justify-end text-xs opacity-70",a&&"w-auto"),children:e("span",{dir:"ltr",children:a??s})}):void 0,actions:C})})]}),H=g==null?d("div",{"data-active":l?"":void 0,title:n,className:p(x,c),onClick:y,onKeyDown:(v)=>{if(v.target!==v.currentTarget)return;if(v.key!=="Enter"&&v.key!==" ")return;v.preventDefault(),y()},children:[e("button",{type:"button","aria-expanded":o,"aria-label":typeof i==="string"?i:n,className:"focus-visible:outline-ring absolute inset-0 rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]"}),R]}):e("div",{"data-active":l?"":void 0,className:x,children:R});return d("div",{className:"text-[#1a1c1f] dark:text-white",children:[f===void 0?H:f(H),o&&e(k,{className:"mt-0.5",children:P})]})}var G=_(()=>{}),z=_(()=>{});function Et(){return E(z)}function ve(){return E(G)}function ye({active:o=!1,state:t,interruption:n=null,leased:r=!1,media:i,title:s,hoverCard:a,onHoverCardOpenChange:l,subtitle:C,preview:g,listeningPorts:f,onOpenPort:b,accessory:P,meta:y,hint:x,actions:R,className:H,...v}){let O=d("div",{"data-slot":"navigation-session-item","data-active":o,className:p($e,xe,"group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]",(g||f!=null&&f.length>0)&&"h-auto min-h-[var(--navigation-row-height,30px)] py-2.5",H),...v,children:[e(m,{children:t!=null?e(L,{state:t,title:n??void 0}):i}),d("span",{className:"flex min-w-0 flex-1 flex-col",children:[e(I,{className:p("leading-none",t==="done"&&"font-semibold"),children:s}),C!=null&&e(I,{className:"text-muted-foreground text-xs",children:C}),g&&e("span",{className:"text-muted-foreground mt-1.5 line-clamp-2 text-xs leading-[18px] [overflow-wrap:anywhere] break-words",children:g}),f!=null&&f.length>0&&e("span",{className:"text-muted-foreground mt-1.5 flex flex-wrap items-center gap-2 font-mono text-xs",children:f.map((N)=>b?d("button",{type:"button",className:"underline",onPointerDown:(w)=>w.stopPropagation(),onKeyDown:(w)=>w.stopPropagation(),onClick:(w)=>{w.stopPropagation(),b(N)},children:[":",N]},N):d("span",{children:[":",N]},N))})]}),d("span",{className:"relative ms-auto flex shrink-0 items-center gap-1",children:[r&&e(D,{className:"text-muted-foreground size-3"}),e(Ke,{content:P!=null?e(Ae,{children:P}):y??e(Ae,{}),actions:R}),x!=null&&e("span",{className:"pointer-events-none absolute end-1 top-1/2 flex h-5 min-w-5 -translate-y-1/2 items-center justify-center",children:x})]})]});if(a==null)return O;return e(q,{row:O,onOpenChange:l,children:a})}function q({row:o,children:t,onOpenChange:n}){let[r,i]=T(!1),[s,a]=T(!1),l=r||s;return M(()=>(n?.(l),()=>n?.(!1)),[l,n]),e(G.Provider,{value:a,children:e(z.Provider,{value:()=>{i(!1),a(!1)},children:e(j,{open:l,onOpenChange:i,trigger:o,children:t})})})}function j({open:o,onOpenChange:t,trigger:n,children:r,side:i="inline-end",sideOffset:s=2,align:a="start",alignOffset:l}){return S(o),d(h.Root,{open:o,onOpenChange:t,children:[e(h.Trigger,{render:n,delay:700,closeDelay:100}),e(h.Portal,{children:e(h.Positioner,{side:i,sideOffset:s,align:a,alignOffset:l,className:"isolate z-50",children:e(h.Popup,{"data-slot":"codex-hover-card",className:"bg-popover text-popover-foreground ring-foreground/10 m-px flex w-80 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-md text-sm shadow-md ring-1 outline-hidden select-none",children:e("div",{className:"flex w-full min-w-0 flex-col px-0 py-1 break-words whitespace-normal",children:r})})})})]})}
2
- export{k,m,u,Q,Et,ve,ye};
@@ -1,2 +0,0 @@
1
- function tt(o){return o.kind==="tool"&&o.status==="completed"&&o.toolKind!=="read"&&o.toolKind!=="search"}
2
- export{tt};
@@ -1,2 +0,0 @@
1
- import{r,a,Lt,o,p}from"./chunk-d1pc0mrb.js";import{E}from"./chunk-67x8znmk.js";import{ye}from"./chunk-xhtpqc8p.js";import{me}from"./chunk-h4r8cx37.js";import{je,pe}from"./chunk-gvwmyxwf.js";import{hasRename as F}from"@nyssance/codex-acp-v2/client";import{ArchiveIcon as D,ArchiveRestoreIcon as x,GitForkIcon as A,PencilIcon as H,Trash2Icon as N}from"lucide-react";import{useRef as R,useState as y}from"react";import{jsx as n,jsxs as b,Fragment as C}from"react/jsx-runtime";function rn({sessionRow:e,active:v,onSelect:m,onForked:S=m,onHoverCardOpenChange:c,actions:l}){let i=r(),{t:f,i18n:k}=i,h=a(),d=o((s)=>s.runStates[e.sessionId]),I=Lt(),u=()=>m(e);return n(ye,{"data-session-id":e.sessionId,role:"button",tabIndex:0,active:v,onClick:u,onKeyDown:(s)=>{if(s.key==="Enter"||s.key===" ")s.preventDefault(),u()},state:d?.state,interruption:d?.interruption??null,title:e.title??f("sessionList.untitled"),onHoverCardOpenChange:c,hoverCard:n(B,{sessionRow:e,onDelete:()=>I(e),onForked:S,actions:l}),meta:e.updatedAt!==null?n("span",{className:"text-muted-foreground shrink-0 text-xs",children:je(e.updatedAt,k.language)}):void 0,actions:d!=null?n(me,{title:f("sessionList.stop"),onStop:()=>p(i,h.stopSession(e.sessionId))}):void 0})}function B({sessionRow:e,onDelete:v,onForked:m,actions:S}){let c=r(),{t:l}=c,i=a(),f=o((t)=>F(t.agent)),k=o((t)=>t.connection==="ready"&&t.agent?.capabilities?.session?.fork!=null),[h,d]=y(!1),[I,u]=y(!1),s=R(!1);return n(pe,{sessionRow:e,renaming:h,onRename:(t)=>{if(d(!1),t!==null)p(c,i.renameSession(e.sessionId,t))},actions:b(C,{children:[f&&n(E,{icon:n(H,{}),label:l("sessionList.rename"),onClick:()=>d(!0)}),S,e.archived?n(E,{icon:n(x,{}),label:l("sessionList.unarchive"),onClick:()=>void p(c,i.unarchive(e.sessionId))}):b(C,{children:[n(E,{icon:n(A,{}),label:l("sessionList.fork"),disabled:!k||I,onClick:()=>{if(s.current)return;s.current=!0,u(!0),p(c,i.fork(e.sessionId,e.cwd).then((t)=>{let g=i.state.sessionList.find((L)=>L.sessionId===t);if(!g)throw Error("Forked chat is missing from the session list");m(g)}).finally(()=>{s.current=!1,u(!1)}))}}),n(E,{icon:n(D,{}),label:l("sessionList.archive"),onClick:()=>void p(c,i.archive(e.sessionId))})]}),n(E,{variant:"destructive",icon:n(N,{}),label:l("sessionList.delete"),onClick:v})]})})}
2
- export{rn};
@@ -1,2 +0,0 @@
1
- import{a,o}from"./chunk-d1pc0mrb.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 fr(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{fr};
@@ -1,2 +0,0 @@
1
- function Kt(n){return`file://${encodeURI(n.absPath).replaceAll(/[?#]/g,encodeURIComponent)}`}function qt(n){return n.replace(/[\\/]+$/,"").split(/[\\/]/).at(-1)??n}function Wt(n){return qt(n.absPath)}
2
- export{Kt,qt,Wt};