@alwith/module-chat 0.6.35 → 0.6.36

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 (395) hide show
  1. package/dist/activity-host.js +1 -1
  2. package/dist/agent/client.js +1 -1
  3. package/dist/agent/fork-title.js +1 -1
  4. package/dist/agent/image-request.js +1 -1
  5. package/dist/agent/image-tools.js +1 -1
  6. package/dist/agent/input-config.js +1 -1
  7. package/dist/agent/input-modes/chat.js +1 -1
  8. package/dist/agent/input-modes/execution-meta.js +1 -1
  9. package/dist/agent/input-modes/image.js +1 -1
  10. package/dist/agent/input-modes/index.js +1 -1
  11. package/dist/agent/project-path.js +1 -1
  12. package/dist/agent/request-error.js +1 -1
  13. package/dist/agent/session-list-refresh.js +1 -1
  14. package/dist/app-reference.js +1 -1
  15. package/dist/application-tools.js +1 -1
  16. package/dist/approval/choice-elicitation-form.js +1 -1
  17. package/dist/approval/choice-schema.js +1 -1
  18. package/dist/approval/permission-options.js +1 -1
  19. package/dist/approval/permission-view.js +1 -1
  20. package/dist/approval/schema-elicitation-form.js +1 -1
  21. package/dist/approval/url-elicitation-card.js +1 -1
  22. package/dist/{chunk-rntrfb49.js → chunk-05n5eyp9.js} +2 -2
  23. package/dist/{chunk-th5vv83g.js → chunk-0ck2zpaa.js} +2 -2
  24. package/dist/{chunk-eevfr0tx.js → chunk-0kpapqak.js} +2 -2
  25. package/dist/{chunk-enkrqfqq.js → chunk-0qrd3jvc.js} +1 -1
  26. package/dist/{chunk-3sq2k9ca.js → chunk-0xgnhbn4.js} +2 -2
  27. package/dist/{chunk-95f0wens.js → chunk-13jj645z.js} +1 -1
  28. package/dist/{chunk-zjzzqtaj.js → chunk-13sxt6bc.js} +2 -2
  29. package/dist/{chunk-whax282d.js → chunk-1byvdggd.js} +2 -2
  30. package/dist/{chunk-epqqzh99.js → chunk-1dtg361q.js} +2 -2
  31. package/dist/chunk-1rfxfqek.js +2 -0
  32. package/dist/{chunk-qvzxzzw8.js → chunk-21mp4gww.js} +2 -2
  33. package/dist/{chunk-gy446wcz.js → chunk-22teksk6.js} +2 -2
  34. package/dist/{chunk-b8tx1n1a.js → chunk-268b0xhk.js} +1 -1
  35. package/dist/{chunk-2nv5ebq1.js → chunk-27s3z9q6.js} +2 -2
  36. package/dist/{chunk-rms7wj04.js → chunk-2bsxqh9p.js} +2 -2
  37. package/dist/{chunk-8be6eq9r.js → chunk-2kb4rtw7.js} +2 -2
  38. package/dist/{chunk-hfjttc7r.js → chunk-2segzfjp.js} +2 -2
  39. package/dist/{chunk-vyvsm4v9.js → chunk-3q3n1n1m.js} +2 -2
  40. package/dist/{chunk-pnx0f495.js → chunk-41yp708e.js} +2 -2
  41. package/dist/{chunk-8pb726d6.js → chunk-467091s6.js} +2 -2
  42. package/dist/{chunk-prr551k0.js → chunk-4ezsy9sc.js} +1 -1
  43. package/dist/{chunk-bt42z99s.js → chunk-4t2a903d.js} +2 -2
  44. package/dist/{chunk-7tgfj1zb.js → chunk-514abcnn.js} +2 -2
  45. package/dist/{chunk-wrxj79ct.js → chunk-5axg9jdz.js} +2 -2
  46. package/dist/{chunk-pvm6d77q.js → chunk-5k46n3e8.js} +2 -2
  47. package/dist/{chunk-7naym98x.js → chunk-5t2e22f6.js} +2 -2
  48. package/dist/{chunk-rb6mjycp.js → chunk-61bnywk9.js} +2 -2
  49. package/dist/chunk-62qf6t7x.js +2 -0
  50. package/dist/{chunk-0xztk729.js → chunk-68w4f5q0.js} +2 -2
  51. package/dist/{chunk-d0zazfrq.js → chunk-6e952n0r.js} +2 -2
  52. package/dist/{chunk-hwhyyaen.js → chunk-6kvrdgjn.js} +2 -2
  53. package/dist/{chunk-z53fd30n.js → chunk-6m7bnj0g.js} +2 -2
  54. package/dist/{chunk-eyw05qyj.js → chunk-6ve41ce0.js} +3 -3
  55. package/dist/chunk-6w7js8qd.js +2 -0
  56. package/dist/{chunk-qbpy0aqe.js → chunk-6wstx1k6.js} +2 -2
  57. package/dist/{chunk-r2b234a7.js → chunk-7a3q5976.js} +2 -2
  58. package/dist/{chunk-mgwkmr8g.js → chunk-7ecymeg2.js} +1 -1
  59. package/dist/{chunk-9nz4c647.js → chunk-7nfbzajq.js} +2 -2
  60. package/dist/{chunk-b0zzq2ky.js → chunk-7pfkx9a2.js} +2 -2
  61. package/dist/{chunk-8x7a5n2w.js → chunk-7rdf7eeh.js} +2 -2
  62. package/dist/{chunk-k1w3acq7.js → chunk-7vhhtb2a.js} +2 -2
  63. package/dist/{chunk-p2bn8ypc.js → chunk-80nnn15f.js} +1 -1
  64. package/dist/{chunk-sfd0pp49.js → chunk-81ka3rnv.js} +3 -3
  65. package/dist/{chunk-3t3n8nfy.js → chunk-82apcrn6.js} +2 -2
  66. package/dist/{chunk-ccner90h.js → chunk-82ytwr57.js} +2 -2
  67. package/dist/{chunk-d84xx4bh.js → chunk-85yqchzc.js} +2 -2
  68. package/dist/chunk-89jwjv3m.js +2 -0
  69. package/dist/{chunk-qgrd5xre.js → chunk-8e9h60we.js} +2 -2
  70. package/dist/{chunk-fvmnj6bg.js → chunk-8fzg0pmc.js} +2 -2
  71. package/dist/{chunk-fzfwftqs.js → chunk-8ncatcr7.js} +2 -2
  72. package/dist/{chunk-xjf2zkrg.js → chunk-8p2b77ta.js} +2 -2
  73. package/dist/{chunk-e99t3sk5.js → chunk-94fwccyb.js} +2 -2
  74. package/dist/{chunk-ymdhz3x0.js → chunk-986yknqs.js} +2 -2
  75. package/dist/chunk-98k8jwbn.js +2 -0
  76. package/dist/{chunk-ztrkk6sp.js → chunk-9v4r1cr6.js} +2 -2
  77. package/dist/{chunk-y72y3j24.js → chunk-a779rnge.js} +2 -2
  78. package/dist/{chunk-vq060dnz.js → chunk-a9mbtd12.js} +2 -2
  79. package/dist/{chunk-ytkcpeq2.js → chunk-abt670s7.js} +1 -1
  80. package/dist/{chunk-s170cg6j.js → chunk-b1yfr8gv.js} +2 -2
  81. package/dist/{chunk-aj0z9a5r.js → chunk-bb2s9nb6.js} +2 -2
  82. package/dist/{chunk-q2ykvjrz.js → chunk-beraaxpx.js} +2 -2
  83. package/dist/{chunk-j1t1fnew.js → chunk-bz890a7b.js} +2 -2
  84. package/dist/{chunk-ck70ewc8.js → chunk-ca7kgbwx.js} +1 -1
  85. package/dist/{chunk-npt6at4f.js → chunk-ckgww50b.js} +2 -2
  86. package/dist/{chunk-cgpnhrm5.js → chunk-cn9hc5xr.js} +3 -3
  87. package/dist/{chunk-ha1s3jbc.js → chunk-d564jqyw.js} +3 -3
  88. package/dist/{chunk-epqyjwrh.js → chunk-dhj0vkek.js} +2 -2
  89. package/dist/{chunk-d607659a.js → chunk-dqyfe90s.js} +2 -2
  90. package/dist/{chunk-mkawbqx5.js → chunk-dvaxrrss.js} +2 -2
  91. package/dist/{chunk-qkddvxjr.js → chunk-dxjwdfra.js} +1 -1
  92. package/dist/{chunk-qvdfrmpb.js → chunk-epqzypsa.js} +2 -2
  93. package/dist/{chunk-54jfqcd1.js → chunk-etnfpzpv.js} +2 -2
  94. package/dist/{chunk-fqchnswc.js → chunk-f4dz7xen.js} +1 -1
  95. package/dist/{chunk-23kvszfc.js → chunk-f6wp23k0.js} +1 -1
  96. package/dist/{chunk-dhx1sd4s.js → chunk-f6y0xqz9.js} +2 -2
  97. package/dist/{chunk-6xap6hvz.js → chunk-fe83mqnb.js} +2 -2
  98. package/dist/{chunk-veef1avy.js → chunk-fg7za6sb.js} +2 -2
  99. package/dist/{chunk-ged1nyhk.js → chunk-fkzvbhfw.js} +3 -3
  100. package/dist/{chunk-nfnejf16.js → chunk-fm35s6dq.js} +2 -2
  101. package/dist/{chunk-9ghxym50.js → chunk-ft9b1d3f.js} +1 -1
  102. package/dist/chunk-fwejeh0a.js +2 -0
  103. package/dist/{chunk-njw6x85v.js → chunk-g2pjvjym.js} +2 -2
  104. package/dist/{chunk-jtws1jg5.js → chunk-g31pwmy2.js} +2 -2
  105. package/dist/{chunk-1vwece23.js → chunk-g551brtp.js} +3 -3
  106. package/dist/{chunk-s1w3j9p9.js → chunk-gq2gckvv.js} +2 -2
  107. package/dist/chunk-gxn9pp4b.js +2 -0
  108. package/dist/{chunk-ppcwcrdz.js → chunk-gxvkgcs0.js} +2 -2
  109. package/dist/{chunk-y8aeahf2.js → chunk-h12xxave.js} +2 -2
  110. package/dist/{chunk-pxbww0j1.js → chunk-hd5zm7tc.js} +2 -2
  111. package/dist/chunk-hdksy68d.js +2 -0
  112. package/dist/{chunk-q8c4k6qh.js → chunk-hqfmwbq5.js} +2 -2
  113. package/dist/{chunk-9hts7x5n.js → chunk-hwccdg3k.js} +2 -2
  114. package/dist/{chunk-gk7nn747.js → chunk-hxstf6c4.js} +2 -2
  115. package/dist/{chunk-7ywnza68.js → chunk-j14fa32z.js} +2 -2
  116. package/dist/{chunk-aj6yxm6d.js → chunk-jfp8yj9p.js} +2 -2
  117. package/dist/{chunk-0sb0c014.js → chunk-jj0bpzkq.js} +2 -2
  118. package/dist/{chunk-60yk0ye9.js → chunk-jmanx88h.js} +2 -2
  119. package/dist/{chunk-ebkz1sy2.js → chunk-jpzjh400.js} +2 -2
  120. package/dist/{chunk-n4rep234.js → chunk-jra95vzv.js} +2 -2
  121. package/dist/{chunk-6br4568a.js → chunk-jreyzbd6.js} +2 -2
  122. package/dist/{chunk-db8hae9d.js → chunk-jsnt49t5.js} +2 -2
  123. package/dist/chunk-jyrpyjt3.js +2 -0
  124. package/dist/{chunk-jne0bc79.js → chunk-k7dp9ead.js} +2 -2
  125. package/dist/{chunk-sk9rm826.js → chunk-keh9cbwe.js} +1 -1
  126. package/dist/{chunk-b6kn9ack.js → chunk-keyttjc9.js} +2 -2
  127. package/dist/{chunk-ddaz4j9s.js → chunk-kg363yzh.js} +2 -2
  128. package/dist/{chunk-482segb0.js → chunk-kv22b8h2.js} +2 -2
  129. package/dist/chunk-kvmd0mhe.js +2 -0
  130. package/dist/{chunk-22nybrkv.js → chunk-m31z2z11.js} +3 -3
  131. package/dist/{chunk-g9v0jr0f.js → chunk-m9b9dzjh.js} +3 -3
  132. package/dist/{chunk-y5qzgfsd.js → chunk-md3d3pby.js} +2 -2
  133. package/dist/{chunk-hqc5c3nz.js → chunk-mf3dn22w.js} +3 -3
  134. package/dist/chunk-mnktrf2v.js +2 -0
  135. package/dist/{chunk-5mxh7h57.js → chunk-mphkyhy8.js} +2 -2
  136. package/dist/{chunk-2nq204hz.js → chunk-mqdbs8jj.js} +2 -2
  137. package/dist/{chunk-jz7mckdp.js → chunk-mywbsrxq.js} +2 -2
  138. package/dist/{chunk-kgx0jj22.js → chunk-n4rapj4e.js} +3 -3
  139. package/dist/{chunk-bdea3k6b.js → chunk-nd0d4qr4.js} +2 -2
  140. package/dist/{chunk-w2p1g8rp.js → chunk-njrvhvy4.js} +2 -2
  141. package/dist/{chunk-nebke41s.js → chunk-nrt1zx5c.js} +2 -2
  142. package/dist/{chunk-5zf3px9y.js → chunk-nxfwgbny.js} +2 -2
  143. package/dist/{chunk-dzncwejn.js → chunk-nypm3ef8.js} +2 -2
  144. package/dist/{chunk-gmns080g.js → chunk-q54ca1am.js} +2 -2
  145. package/dist/{chunk-1b3frq9c.js → chunk-q8mw16nx.js} +3 -3
  146. package/dist/chunk-qa29z7wk.js +4 -0
  147. package/dist/{chunk-k0h18sme.js → chunk-qp4b32gm.js} +2 -2
  148. package/dist/{chunk-symaxskd.js → chunk-qt4gdwcw.js} +2 -2
  149. package/dist/{chunk-3kytka7m.js → chunk-r14byyqy.js} +3 -3
  150. package/dist/{chunk-5qaa4atv.js → chunk-r7tpt9zy.js} +2 -2
  151. package/dist/{chunk-b3mja7d9.js → chunk-rcj2df96.js} +2 -2
  152. package/dist/{chunk-8eyw37rv.js → chunk-re9ryzrv.js} +2 -2
  153. package/dist/{chunk-ygake3bx.js → chunk-rf8agwdk.js} +2 -2
  154. package/dist/{chunk-rcynxrkk.js → chunk-rgsf9xkw.js} +3 -3
  155. package/dist/chunk-rkqptd9w.js +2 -0
  156. package/dist/{chunk-t6ddgvkm.js → chunk-rmdf5jhd.js} +2 -2
  157. package/dist/{chunk-jygp7479.js → chunk-rp7qt6hm.js} +2 -2
  158. package/dist/chunk-rp87rhya.js +4 -0
  159. package/dist/{chunk-w4537026.js → chunk-rq4nw301.js} +1 -1
  160. package/dist/{chunk-7nfv27hz.js → chunk-s15zgqkg.js} +2 -2
  161. package/dist/{chunk-fggwwmzc.js → chunk-s7396jw0.js} +3 -3
  162. package/dist/{chunk-xqrhfxct.js → chunk-s953r0cw.js} +2 -2
  163. package/dist/chunk-sbcgvk9a.js +2 -0
  164. package/dist/{chunk-bm457bsd.js → chunk-sd6sd4r8.js} +2 -2
  165. package/dist/{chunk-6v0r7m92.js → chunk-sjh2sz62.js} +2 -2
  166. package/dist/{chunk-9ns2xh84.js → chunk-ssrhst9t.js} +2 -2
  167. package/dist/{chunk-q8y2a23c.js → chunk-tdmz20zc.js} +2 -2
  168. package/dist/{chunk-wf4z9w5x.js → chunk-tfkz3bae.js} +2 -2
  169. package/dist/{chunk-s11mgwyh.js → chunk-va5f2mdb.js} +2 -2
  170. package/dist/{chunk-ry5phnnk.js → chunk-vc6yxjs3.js} +2 -2
  171. package/dist/{chunk-bysgsnph.js → chunk-vn7159fh.js} +2 -2
  172. package/dist/{chunk-gw4zbw0m.js → chunk-w1ndngnh.js} +2 -2
  173. package/dist/{chunk-mg9a4t04.js → chunk-w86ckd6d.js} +2 -2
  174. package/dist/{chunk-shzj5zf0.js → chunk-w9z2zezn.js} +2 -2
  175. package/dist/{chunk-20dc4fm0.js → chunk-wf5tt5t4.js} +2 -2
  176. package/dist/{chunk-c0czkyzh.js → chunk-wrqmbvv2.js} +2 -2
  177. package/dist/{chunk-6ea6q6dj.js → chunk-wv501ppg.js} +1 -1
  178. package/dist/{chunk-mgve4dcw.js → chunk-ww4tmz88.js} +2 -2
  179. package/dist/{chunk-h71pkpwg.js → chunk-wy7rkpqe.js} +2 -2
  180. package/dist/{chunk-1a46v4cy.js → chunk-x0m0ebq0.js} +1 -1
  181. package/dist/{chunk-4g2412p5.js → chunk-x2xwfwcx.js} +2 -2
  182. package/dist/{chunk-aq3hemsb.js → chunk-x8j184pq.js} +3 -3
  183. package/dist/chunk-xb28q0sm.js +2 -0
  184. package/dist/{chunk-a4ebhcsy.js → chunk-xkv1qwkh.js} +2 -2
  185. package/dist/{chunk-qbmgsd3h.js → chunk-xvf85xre.js} +2 -2
  186. package/dist/chunk-xxaj040w.js +2 -0
  187. package/dist/{chunk-rxj5619b.js → chunk-y6ac70r7.js} +2 -2
  188. package/dist/{chunk-xanfp0nh.js → chunk-y6b3mjjn.js} +1 -1
  189. package/dist/{chunk-9hwqfjc1.js → chunk-ya8e4rt0.js} +2 -2
  190. package/dist/{chunk-aeccrrg1.js → chunk-yde0ncgz.js} +1 -1
  191. package/dist/{chunk-nvadhyne.js → chunk-yekcndnq.js} +2 -2
  192. package/dist/{chunk-8yetzgqb.js → chunk-yn6pz38m.js} +2 -2
  193. package/dist/{chunk-vjfxm73q.js → chunk-yqzpxk5y.js} +2 -2
  194. package/dist/{chunk-aemtk0r5.js → chunk-z26j4tt7.js} +2 -2
  195. package/dist/{chunk-359pf448.js → chunk-z29anjt1.js} +2 -2
  196. package/dist/{chunk-rbs3079t.js → chunk-z6swkqb1.js} +2 -2
  197. package/dist/{chunk-wf0ytnh9.js → chunk-zetd8vk4.js} +1 -1
  198. package/dist/{chunk-k5065dzv.js → chunk-zsd44z1c.js} +2 -2
  199. package/dist/{chunk-z27pxeqg.js → chunk-zssbsc1f.js} +2 -2
  200. package/dist/{chunk-18gcnf2a.js → chunk-zxa4jnpe.js} +2 -2
  201. package/dist/{chunk-tj4b0s68.js → chunk-zz582m73.js} +2 -2
  202. package/dist/client.js +1 -1
  203. package/dist/codex/activity-group.js +1 -1
  204. package/dist/codex/artifact-links.js +1 -1
  205. package/dist/codex/assistant-message.js +1 -1
  206. package/dist/codex/async-question-card.js +1 -1
  207. package/dist/codex/edited-files-card.js +1 -1
  208. package/dist/codex/image-view-activity.js +1 -1
  209. package/dist/codex/markdown-renderer.js +1 -1
  210. package/dist/codex/navigation-audio.js +1 -1
  211. package/dist/codex/navigation-preview.js +1 -1
  212. package/dist/codex/navigation-rail.js +1 -1
  213. package/dist/codex/patch-view.js +1 -1
  214. package/dist/codex/timeline-virtualizer.js +1 -1
  215. package/dist/codex/turn-activity.js +1 -1
  216. package/dist/codex/user-message.js +1 -1
  217. package/dist/codex/virtualized-turn-list.js +1 -1
  218. package/dist/collections/collection-emoji.js +1 -1
  219. package/dist/collections/collection-menu.js +1 -1
  220. package/dist/collections/collection-panel.js +1 -1
  221. package/dist/collections/collections.js +1 -1
  222. package/dist/collections/host.js +1 -1
  223. package/dist/collections/model.js +1 -1
  224. package/dist/collections/store.js +1 -1
  225. package/dist/composer/completion-filter.js +1 -1
  226. package/dist/composer/completion-menu.js +1 -1
  227. package/dist/composer/completion-trigger.js +1 -1
  228. package/dist/composer/effort-slider.js +1 -1
  229. package/dist/composer/inline-document.js +1 -1
  230. package/dist/composer/inline-dom.js +1 -1
  231. package/dist/composer/model-select.js +1 -1
  232. package/dist/composer/permission-mode-select.js +1 -1
  233. package/dist/composer/prompt-input-attachments.js +1 -1
  234. package/dist/composer/prompt-input-clipboard.js +1 -1
  235. package/dist/composer/prompt-input-context.js +1 -1
  236. package/dist/composer/prompt-input-inline.js +1 -1
  237. package/dist/composer/prompt-input-textarea.js +1 -1
  238. package/dist/composer/prompt-input.js +1 -1
  239. package/dist/conversation/action-card.js +1 -1
  240. package/dist/conversation/composer/app-mentions.js +1 -1
  241. package/dist/conversation/composer/apps-menu.js +1 -1
  242. package/dist/conversation/composer/composer-menu.js +1 -1
  243. package/dist/conversation/composer/composer.js +1 -1
  244. package/dist/conversation/composer/config-options.js +1 -1
  245. package/dist/conversation/composer/context.js +1 -1
  246. package/dist/conversation/composer/drafts.js +1 -1
  247. package/dist/conversation/composer/long-text.js +1 -1
  248. package/dist/conversation/composer/mention-chips.js +1 -1
  249. package/dist/conversation/composer/mention-uri.js +1 -1
  250. package/dist/conversation/composer/model-menu.js +1 -1
  251. package/dist/conversation/composer/pasted-text-attachment.js +1 -1
  252. package/dist/conversation/composer/permission-mode-menu.js +1 -1
  253. package/dist/conversation/composer/prompt-history.js +1 -1
  254. package/dist/conversation/composer/slash-command-button.js +1 -1
  255. package/dist/conversation/composer/submit-button.js +1 -1
  256. package/dist/conversation/composer/usage-meter.js +1 -1
  257. package/dist/conversation/connection-notice.js +1 -1
  258. package/dist/conversation/context.js +1 -1
  259. package/dist/conversation/conversation-body.js +1 -1
  260. package/dist/conversation/conversation-search.js +1 -1
  261. package/dist/conversation/conversation-view.js +1 -1
  262. package/dist/conversation/conversation.js +1 -1
  263. package/dist/conversation/diff-modal.js +1 -1
  264. package/dist/conversation/draft-project-picker.js +1 -1
  265. package/dist/conversation/session-actions.js +1 -1
  266. package/dist/conversation/subagent-sessions.js +1 -1
  267. package/dist/conversation/subagent-tasks.js +1 -1
  268. package/dist/desktop/desktop-composer.d.ts +2 -1
  269. package/dist/desktop/desktop-composer.js +1 -1
  270. package/dist/desktop/desktop.js +1 -1
  271. package/dist/desktop/draft-model-select.js +1 -1
  272. package/dist/desktop/load-image.js +1 -1
  273. package/dist/desktop/model-catalog.js +1 -1
  274. package/dist/desktop/model-recovery.js +1 -1
  275. package/dist/desktop/model-settings-action.js +1 -1
  276. package/dist/desktop/native-file-drop.d.ts +2 -1
  277. package/dist/desktop/native-file-drop.js +1 -1
  278. package/dist/generated/commands.d.ts +3 -0
  279. package/dist/generated/commands.js +1 -1
  280. package/dist/generated-image-storage.js +1 -1
  281. package/dist/image-lightbox.js +1 -1
  282. package/dist/image-preview-dialog.js +1 -1
  283. package/dist/image.js +1 -1
  284. package/dist/lib/app-reference.js +1 -1
  285. package/dist/lib/application-metadata.js +1 -1
  286. package/dist/lib/chat-path.js +1 -1
  287. package/dist/lib/code-highlighter.js +1 -1
  288. package/dist/lib/file-url.js +1 -1
  289. package/dist/lib/fuzzy.js +1 -1
  290. package/dist/lib/group-blocks.js +1 -1
  291. package/dist/lib/image-encode.js +1 -1
  292. package/dist/lib/markdown-parser.js +1 -1
  293. package/dist/lib/markdown-rules.js +1 -1
  294. package/dist/lib/model-name.js +1 -1
  295. package/dist/lib/prepare-prompt-files.js +1 -1
  296. package/dist/lib/reference-presentation.js +1 -1
  297. package/dist/lib/stream-style.js +1 -1
  298. package/dist/lib/streaming-markdown.js +1 -1
  299. package/dist/mermaid/diagram.js +1 -1
  300. package/dist/mermaid/export.js +1 -1
  301. package/dist/mermaid/index.js +1 -1
  302. package/dist/mermaid/preview.js +1 -1
  303. package/dist/oauth/claude-login.js +1 -1
  304. package/dist/oauth.js +1 -1
  305. package/dist/plugins/catalog-skeleton.js +1 -1
  306. package/dist/plugins/host.js +1 -1
  307. package/dist/plugins/plugin-detail-page.js +1 -1
  308. package/dist/plugins/plugin-icon.js +1 -1
  309. package/dist/plugins/plugin-icons.js +1 -1
  310. package/dist/plugins/plugins-page.js +1 -1
  311. package/dist/plugins/plugins.js +1 -1
  312. package/dist/plugins/read-skill-document.js +1 -1
  313. package/dist/plugins/skill-document.js +1 -1
  314. package/dist/plugins/skills-tab.js +1 -1
  315. package/dist/plugins/store.js +1 -1
  316. package/dist/reference-projection.js +1 -1
  317. package/dist/search/chat-search.js +1 -1
  318. package/dist/search/codex-source-matches.js +1 -1
  319. package/dist/search/dom-matches.js +1 -1
  320. package/dist/search/find-bar.js +1 -1
  321. package/dist/search/literal-matches.js +1 -1
  322. package/dist/session-list/account-menu.js +1 -1
  323. package/dist/session-list/activity-list.js +1 -1
  324. package/dist/session-list/archived-sessions.js +1 -1
  325. package/dist/session-list/help-menu.js +1 -1
  326. package/dist/session-list/host.js +1 -1
  327. package/dist/session-list/navigation-controls.js +1 -1
  328. package/dist/session-list/navigation-header.js +1 -1
  329. package/dist/session-list/navigation-store.js +1 -1
  330. package/dist/session-list/navigation-tabs.js +1 -1
  331. package/dist/session-list/navigation.js +1 -1
  332. package/dist/session-list/platform.js +1 -1
  333. package/dist/session-list/session-groups.js +1 -1
  334. package/dist/session-list/session-info-card.js +1 -1
  335. package/dist/session-list/session-list.js +1 -1
  336. package/dist/session-list/session-row.js +1 -1
  337. package/dist/session-list/session-state-dot.js +1 -1
  338. package/dist/session-list/session-state-menu.js +1 -1
  339. package/dist/session-list/shortcut-hint.js +1 -1
  340. package/dist/session-list/shortcut.js +1 -1
  341. package/dist/session-list/sidebar-overlay.js +1 -1
  342. package/dist/session-list/use-activity-notification.js +1 -1
  343. package/dist/session-list/use-activity-preview.js +1 -1
  344. package/dist/session-list/use-cmd-held.js +1 -1
  345. package/dist/session-list/use-project-sessions.js +1 -1
  346. package/dist/session-list/virtual-session-rows.js +1 -1
  347. package/dist/session-timeline/activity-group.js +1 -1
  348. package/dist/session-timeline/activity-projection.js +1 -1
  349. package/dist/session-timeline/assistant-content.js +1 -1
  350. package/dist/session-timeline/assistant-image-references.js +1 -1
  351. package/dist/session-timeline/assistant-turn.js +1 -1
  352. package/dist/session-timeline/async-questions.js +1 -1
  353. package/dist/session-timeline/edited-files-card.js +1 -1
  354. package/dist/session-timeline/history-timeline.js +1 -1
  355. package/dist/session-timeline/host.js +1 -1
  356. package/dist/session-timeline/image-generation-progress.js +1 -1
  357. package/dist/session-timeline/navigation-rail.js +1 -1
  358. package/dist/session-timeline/plan.js +1 -1
  359. package/dist/session-timeline/question-reply.js +1 -1
  360. package/dist/session-timeline/resource-content.js +1 -1
  361. package/dist/session-timeline/session-timeline.js +1 -1
  362. package/dist/session-timeline/timeline-registry.js +1 -1
  363. package/dist/session-timeline/turn-activity.js +1 -1
  364. package/dist/session-timeline/turn-error.js +1 -1
  365. package/dist/session-timeline/turn-retry.js +1 -1
  366. package/dist/session-timeline/turns.js +1 -1
  367. package/dist/session-timeline/use-timeline-scroll.js +1 -1
  368. package/dist/session-timeline/user-message.js +1 -1
  369. package/dist/settings/codex-account-card.js +1 -1
  370. package/dist/settings/login-card.js +1 -1
  371. package/dist/settings/model-alias-settings.js +1 -1
  372. package/dist/settings/provider-logos.js +1 -1
  373. package/dist/settings/provider-section.js +1 -1
  374. package/dist/settings/providers-port.js +1 -1
  375. package/dist/settings/providers.js +1 -1
  376. package/dist/settings/settings-bridge.js +1 -1
  377. package/dist/settings/settings.js +1 -1
  378. package/package.json +2 -2
  379. package/dist/chunk-33fxyn5r.js +0 -2
  380. package/dist/chunk-63kwbtgs.js +0 -2
  381. package/dist/chunk-by7k0ypx.js +0 -4
  382. package/dist/chunk-c70a2esc.js +0 -2
  383. package/dist/chunk-fxzh4f7c.js +0 -4
  384. package/dist/chunk-j2bp0zbe.js +0 -2
  385. package/dist/chunk-k97dpdcj.js +0 -2
  386. package/dist/chunk-khd2r3jh.js +0 -2
  387. package/dist/chunk-kvgn4b2n.js +0 -2
  388. package/dist/chunk-mybye5t2.js +0 -2
  389. package/dist/chunk-nrfyvzmk.js +0 -2
  390. package/dist/chunk-pz5d0vgv.js +0 -2
  391. package/dist/chunk-qv61ef2y.js +0 -2
  392. package/dist/chunk-svxnx1c7.js +0 -2
  393. package/dist/chunk-t3rv7vat.js +0 -2
  394. package/dist/chunk-wexhc7rb.js +0 -2
  395. package/dist/chunk-zpm0t5ye.js +0 -2
@@ -1 +1 @@
1
- import{R,_t,It,Pt,V,_a,ce,zn,Vn,Tt,Ia}from"../chunk-th5vv83g.js";import{st}from"../chunk-xxwevgqr.js";import"../chunk-bt42z99s.js";export{Tt as MODEL_PRESENTATION,R as PROVIDERS,st as customModelEffort,V as gatewayModelId,_t as isAccountModel,It as parseCustomModels,Ia as presentModel,Vn as providerApplicationPending,Pt as providerGroups,zn as providerKeyUrl,ce as providerRegion,_a as resolveSessionModel};
1
+ import{R,_t,It,Pt,V,_a,ce,Vn,$n,Tt,Ia}from"../chunk-0ck2zpaa.js";import{st}from"../chunk-xxwevgqr.js";import"../chunk-4t2a903d.js";export{Tt as MODEL_PRESENTATION,R as PROVIDERS,st as customModelEffort,V as gatewayModelId,_t as isAccountModel,It as parseCustomModels,Ia as presentModel,$n as providerApplicationPending,Pt as providerGroups,Vn as providerKeyUrl,ce as providerRegion,_a as resolveSessionModel};
@@ -1 +1 @@
1
- import{Js,Xs,Ys}from"../chunk-j1t1fnew.js";export{Js as codexSettingsBridge,Ys as createSettingsBridgeClient,Xs as serveSettingsBridge};
1
+ import{Xs,Ys,ea}from"../chunk-bz890a7b.js";export{Xs as codexSettingsBridge,ea as createSettingsBridgeClient,Ys as serveSettingsBridge};
@@ -1 +1 @@
1
- import{Js,Xs,Ys}from"../chunk-j1t1fnew.js";import"../chunk-63kwbtgs.js";import"../chunk-nfnejf16.js";import"../chunk-z53fd30n.js";import"../chunk-y5qzgfsd.js";import"../chunk-y8aeahf2.js";import"../chunk-gk7nn747.js";import"../chunk-aj0z9a5r.js";import"../chunk-qgrd5xre.js";import"../chunk-nebke41s.js";import"../chunk-j2bp0zbe.js";import"../chunk-vyvsm4v9.js";import{an}from"../chunk-qkddvxjr.js";import{rn,hi,sn}from"../chunk-5zf3px9y.js";import{$n,jn,Kn,$e,Mt,qn,Wn}from"../chunk-bt42z99s.js";import{st}from"../chunk-xxwevgqr.js";import{R,_t,It,Pt,V,_a,ce,zn,Vn,Tt,Ia}from"../chunk-th5vv83g.js";import"../chunk-pz5d0vgv.js";import{Li,Di,yn,ya,xn,bn}from"../chunk-bdea3k6b.js";import{pi,ea,mi,gi,fi,so}from"../chunk-njw6x85v.js";import{vt,nn,on}from"../chunk-zpetyx45.js";import{Qs}from"../chunk-54jfqcd1.js";export{sn as CodexAccountCard,hi as CodexAccountSummary,so as CustomProviderEditor,$n as DeepSeekLogo,Mt as DoubaoLogo,jn as GrokLogo,qn as KimiLogo,an as LoginCard,vt as MODEL_ALIASES_KEY,Tt as MODEL_PRESENTATION,pi as ManagedProviderSection,$e as MiniMaxLogo,Qs as ModelAliasSettings,R as PROVIDERS,Li as PROVIDERS_CHANGED,Di as PROVIDERS_REVOKED,fi as ProviderRow,ea as ProviderSection,mi as ProviderTabs,Kn as QwenLogo,gi as TestFeedback,rn as UsageLimitRow,Wn as ZhipuLogo,xn as applyProvidersWhenIdle,Js as codexSettingsBridge,ya as createManagedProvidersPort,yn as createProvidersPort,Ys as createSettingsBridgeClient,st as customModelEffort,V as gatewayModelId,_t as isAccountModel,It as parseCustomModels,Ia as presentModel,Vn as providerApplicationPending,Pt as providerGroups,zn as providerKeyUrl,ce as providerRegion,_a as resolveSessionModel,on as saveModelAlias,Xs as serveSettingsBridge,nn as useModelAliases,bn as useProviders};
1
+ import{Xs,Ys,ea}from"../chunk-bz890a7b.js";import"../chunk-mnktrf2v.js";import"../chunk-fm35s6dq.js";import"../chunk-6m7bnj0g.js";import"../chunk-md3d3pby.js";import"../chunk-h12xxave.js";import"../chunk-hxstf6c4.js";import"../chunk-bb2s9nb6.js";import"../chunk-8e9h60we.js";import"../chunk-nrt1zx5c.js";import"../chunk-rkqptd9w.js";import"../chunk-3q3n1n1m.js";import{an}from"../chunk-dxjwdfra.js";import{rn,vi,sn}from"../chunk-nxfwgbny.js";import{jn,Kn,qn,$e,Mt,Wn,Zn}from"../chunk-4t2a903d.js";import{st}from"../chunk-xxwevgqr.js";import{R,_t,It,Pt,V,_a,ce,Vn,$n,Tt,Ia}from"../chunk-0ck2zpaa.js";import"../chunk-89jwjv3m.js";import{Di,Fi,yn,xa,xn,bn}from"../chunk-nd0d4qr4.js";import{mi,ta,gi,fi,hi,ao}from"../chunk-g2pjvjym.js";import{vt,nn,on}from"../chunk-zpetyx45.js";import{Js}from"../chunk-etnfpzpv.js";export{sn as CodexAccountCard,vi as CodexAccountSummary,ao as CustomProviderEditor,jn as DeepSeekLogo,Mt as DoubaoLogo,Kn as GrokLogo,Wn as KimiLogo,an as LoginCard,vt as MODEL_ALIASES_KEY,Tt as MODEL_PRESENTATION,mi as ManagedProviderSection,$e as MiniMaxLogo,Js as ModelAliasSettings,R as PROVIDERS,Di as PROVIDERS_CHANGED,Fi as PROVIDERS_REVOKED,hi as ProviderRow,ta as ProviderSection,gi as ProviderTabs,qn as QwenLogo,fi as TestFeedback,rn as UsageLimitRow,Zn as ZhipuLogo,xn as applyProvidersWhenIdle,Xs as codexSettingsBridge,xa as createManagedProvidersPort,yn as createProvidersPort,ea as createSettingsBridgeClient,st as customModelEffort,V as gatewayModelId,_t as isAccountModel,It as parseCustomModels,Ia as presentModel,$n as providerApplicationPending,Pt as providerGroups,Vn as providerKeyUrl,ce as providerRegion,_a as resolveSessionModel,on as saveModelAlias,Ys as serveSettingsBridge,nn as useModelAliases,bn as useProviders};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwith/module-chat",
3
- "version": "0.6.35",
3
+ "version": "0.6.36",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -381,7 +381,7 @@
381
381
  ]
382
382
  },
383
383
  "scripts": {
384
- "test": "bun test --parallel=4 ./src",
384
+ "test": "bun test --parallel=1 ./src",
385
385
  "test:rust": "cargo test --manifest-path rust/Cargo.toml",
386
386
  "build": "bun -e \"const fs = require('node:fs'); fs.rmSync('assets', { recursive: true, force: true }); fs.cpSync('rust/assets', 'assets', { recursive: true })\" && bun ../../scripts/build-npm.ts",
387
387
  "prepack": "bun run build && bun test ../../scripts/__tests__/chat-worker-distribution.test.ts && bun ../../scripts/verify-module-package.ts chat"
@@ -1,2 +0,0 @@
1
- import{isResourceLink as t}from"@nyssance/codex-acp-v2/client";var to="alwith-generated-image:";function ke(e){return t(e)&&e.uri.startsWith(to)?e.uri.slice(to.length):null}
2
- export{to,ke};
@@ -1,2 +0,0 @@
1
- var pa={allow_once:0,allow_always:1,reject_once:2,reject_always:3};function Ni(e){return[...e].toSorted((o,n)=>(pa[o.kind]??99)-(pa[n.kind]??99))}function Qa(e){return e==="allow_once"||e==="allow_always"}function Ja(e){return e==="allow_always"||e==="reject_always"}
2
- export{pa,Ni,Qa,Ja};
@@ -1,4 +0,0 @@
1
- var r=new Map,p=new Map,c=new Map;function Bi(e,t){if(p.has(e))throw Error("An attachment writer is already registered for this session");return p.set(e,t),()=>{if(p.get(e)===t)p.delete(e)}}function X(e,t){let o=r.get(e);if(!o)return;let n=t(o.attachments);r.set(e,{...o,attachments:n}),p.get(e)?.(n)}function _n(e,t){c.set(e,t),t.finally(()=>{if(c.get(e)===t)c.delete(e)})}async function xa(e){for(;;){let n=r.get(e)?.attachments.flatMap((i)=>{let m=c.get(i.id);return m?[m]:[]})??[];if(!n.length)break;await Promise.all(n)}let t=r.get(e);if(!t)return null;let o=await Promise.all(t.attachments.map(async(n)=>{if(!n.url.startsWith("blob:"))return n;let i=await fetch(n.url);if(!i.ok)throw Error("Cannot read draft image");let m=await i.blob(),f=await new Promise((l,g)=>{let s=new FileReader;s.onload=()=>l(s.result),s.onerror=()=>g(s.error),s.readAsDataURL(m)});return{...n,url:f}}));return{...t,...t.apps?{apps:t.apps.map((n)=>({...n}))}:{},text:t.text,mentions:[...t.mentions],attachments:o,modelId:t.modelId}}function ba(e,t){if(t===null)r.delete(e);else r.set(e,t)}var a=new Map;function In(e,t){if(a.has(e))throw Error("A composer is already registered for this session");return a.set(e,t),()=>{if(a.get(e)===t)a.delete(e)}}function Ca(e,t){if(typeof t!=="string"||!t.trim())throw Error("The draft is empty");let o=a.get(e);if(!o)throw Error("The session's composer is not open; open the session first");let n=r.get(e);if(n&&(n.text.length||n.attachments.length||n.mentions.length||n.apps?.length))throw Error("The composer already has a draft; send or clear it first");o(t),r.set(e,{text:t,attachments:[],mentions:[],modelId:n?.modelId??null})}function wa(e,t){if(typeof t!=="string"||!t.trim())throw Error("The context is empty");let o=a.get(e);if(!o)throw Error("The session's composer is not open; open the session first");let n=r.get(e),i=n?.text?`${n.text}
2
-
3
- ${t}`:t;o(i,"append"),r.set(e,n?{...n,text:i}:{text:i,attachments:[],mentions:[],modelId:null})}
4
- export{r,Bi,X,_n,xa,ba,In,Ca,wa};
@@ -1,2 +0,0 @@
1
- import{Y}from"./chunk-h71pkpwg.js";import{r,X,_n}from"./chunk-by7k0ypx.js";var Ui=5000;function ot(t){return"pastedText"in t}function kt(t,e,p){let n=(a,o)=>{for(let[i,x]of r){if(!x.attachments.some((s)=>s.id===e.id))continue;X(i,(s)=>s.map((d)=>d.id===e.id?{...e,url:o===void 0?"":Y(o),pastedText:{text:e.pastedText.text,status:a}}:d))}};if(!r.get(t)?.attachments.some((a)=>a.id===e.id))return;n("pending"),_n(e.id,p("pasted-text.txt",e.pastedText.text).then((a)=>n("ready",a)).catch(()=>n("error")))}function Sn(t,e,p,n){if(t.defaultPrevented||t.currentTarget.disabled)return;if([...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/")))return;let a=t.clipboardData.getData("text/plain");if(a.length<Ui)return;t.preventDefault(),t.stopPropagation();let o={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:p,url:"",pastedText:{text:a,status:"pending"}};X(e,(i)=>[...i,o]),kt(e,o,n)}
2
- export{Ui,ot,kt,Sn};
@@ -1,4 +0,0 @@
1
- import{yr}from"./chunk-q8c4k6qh.js";import{tr}from"./chunk-b6kn9ack.js";import{ys}from"./chunk-4g2412p5.js";import{m,_,Rt}from"./chunk-8yetzgqb.js";import{oe}from"./chunk-vnxa4qe2.js";import{rr,sr,ar,lr,cr}from"./chunk-pvm6d77q.js";import{mr,gr}from"./chunk-xjf2zkrg.js";import{H}from"./chunk-hfjttc7r.js";import{wo}from"./chunk-rcynxrkk.js";import{Co}from"./chunk-hqc5c3nz.js";import{Y}from"./chunk-h71pkpwg.js";import{n}from"./chunk-aj0z9a5r.js";import{e}from"./chunk-qgrd5xre.js";import{po,Gi}from"./chunk-epqqzh99.js";import{mo}from"./chunk-kvgn4b2n.js";import{r,Bi,X,In}from"./chunk-by7k0ypx.js";import{Cn}from"./chunk-6c7q2rz8.js";import{ot,Sn}from"./chunk-c70a2esc.js";import{Mn,An}from"./chunk-svxnx1c7.js";import{Oi}from"./chunk-3t3n8nfy.js";import{kn}from"./chunk-khd2r3jh.js";import{Hi}from"./chunk-a4ebhcsy.js";import{En}from"./chunk-zpm0t5ye.js";import{wn}from"./chunk-67fn9pq0.js";import{Fi}from"./chunk-g9v0jr0f.js";import{zi}from"./chunk-w4537026.js";import{Tn}from"./chunk-vyvsm4v9.js";import{hasFuzzyFileSearch as Gt}from"@nyssance/codex-acp-v2/client";import{useCallback as A,useEffect as Qt,useLayoutEffect as nt,useMemo as st,useRef as N,useState as M}from"react";import{jsx as s,jsxs as R}from"react/jsx-runtime";var Yt=["image/png","image/jpeg","image/webp","image/gif"],mt=[];async function kt(o){let T=await(await fetch(o.url)).blob();return new Promise((w,S)=>{let E=new FileReader;E.onerror=()=>S(E.error),E.onload=()=>{let q=E.result;w(q.slice(q.indexOf(",")+1))},E.readAsDataURL(T)})}function Ue({session:o,onSubmit:T,onShellCommand:w,onHandOff:S,modelSelector:E,modelMenu:q,inputHeader:dt,actions:Dt,leadingTools:Nt,agentControls:G=!0,placeholder:St,children:Ft,attachmentPolicy:ut,predictions:Ot=!0,disabled:_t=!1,preparing:ft=!1,allowPendingInput:Lt=!1}){let{host:F,client:O}=e(),{t:g}=F,z=A((t)=>{if(F.reportError)F.reportError(t);else console.error(t)},[F]),[ht,B]=M(()=>({text:r.get(o.id)?.text??"",revision:0})),{text:v}=ht,[C,Ut]=M(()=>r.get(o.id)?.attachments??mt),[y,Q]=M(()=>r.get(o.id)?.mentions??[]),[d,L]=M(()=>r.get(o.id)?.apps??[]),[gt,K]=M(()=>(r.get(o.id)?.apps?.length??0)>0||H(v,o.commands.map((t)=>t.name)).length>0),U=N(void 0),W=N(void 0);nt(()=>{if(d.length>0)K(!0)},[d.length]);let at=C.some((t)=>ot(t)&&t.pastedText.status!=="ready"),[k,xt]=M(!1),[V,Wt]=M(!1),[it,$t]=M(!1),ct=N(null),f=N(null),yt=N(null),c=N(ht),P=A((t)=>{yt.current?.(),c.current={text:t,revision:c.current.revision+1},B(c.current)},[]),bt=A((t)=>{let a=f.current;if(a?.insertApplication){a.insertApplication(t);return}let i=c.current.text,u=a?.getTextarea()?.selectionStart??i.length;W.current={text:i,apps:[]},U.current=u+1,K(!0),P(i),L((l)=>l.some((h)=>h.id===t.id)?l:[...l,{...t,offset:u}])},[P]),zt=A((t)=>{let a=f.current;if(a?.insertInvocation){a.insertInvocation(t);return}let i=c.current.text,u=a?.getTextarea(),l=u?.selectionStart??i.length,h=u?.selectionEnd??l,pt=`${i.slice(0,l)}${t} ${i.slice(h)}`;W.current={text:i,apps:[]},U.current=l+t.length+1,P(pt),K(!0)},[P]),vt=A(()=>(f.current?.focus(),f.current?.getTextarea()??null),[]),Bt=Fi(o,P,L,d.length>0||y.length>0||C.length>0),Pt=st(()=>({read:()=>{let a=f.current?.getTextarea(),i=a===null||a===void 0?[c.current.text.length,c.current.text.length]:[a.selectionStart,a.selectionEnd];return{target:o.id,...c.current,selection:i}},compareAndSet(a,i,u){if(f.current?.isComposing())return null;if(a.target!==o.id||a.revision!==c.current.revision)return null;c.current={text:i,revision:c.current.revision+1},B(c.current);let l=f.current?.getTextarea();if(l!==null&&l!==void 0)l.value=i,l.setSelectionRange(u[0],u[1]);return{target:o.id,...c.current,selection:u}}}),[o.id]),j=N(null),It=A((t)=>(j.current=t,()=>{if(j.current===t)j.current=null}),[]),J=o.state!=="idle",x=w!==void 0&&d.length===0&&v.startsWith("!"),Z=(gt||d.length>0)&&!x,b=!_t&&!ft&&o.attached&&!o.restoring&&!o.readOnly,D=!o.readOnly&&(Lt||b),tt=wn(o,b&&!k&&!V&&!at&&!it,v.length>0||C.length>0||y.length>0||d.length>0,Ot&&!x),wt=tt.invalidate;nt(()=>{r.set(o.id,{text:v,attachments:C,mentions:y,...d.length>0?{apps:d}:{},modelId:r.get(o.id)?.modelId??null})},[o.id,v,C,y,d]),nt(()=>Bi(o.id,Ut),[o.id]),nt(()=>In(o.id,(t,a)=>{if(!D||k)throw Error("The composer cannot take text now; try again later");if(a!=="append"&&(v.length||C.length||y.length||d.length))throw Error("The composer already has a draft; send or clear it first");P(t)}),[o.id,D,k,v,C,y,d,P]);let At=n((t)=>Gt(t.agent)),Ht=st(()=>At&&b?async(t)=>Cn((await O.fuzzyFileSearch({query:t,roots:[o.cwd],cancellationToken:null})).files):void 0,[O,At,b,o.cwd]),lt=A((t)=>{Q((a)=>a.includes(t)?a:[...a,t])},[]);Qt(()=>{f.current?.focus()},[]);let Tt=A(async({text:t,files:a})=>{let i=w!==void 0&&d.length===0&&t.startsWith("!")?t.slice(1):null;if(i!==null){if(i.trim().length===0)return;if(a.length||y.length||d.length)throw Error("Shell commands cannot include file references or attachments");if(o.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let u=t.trim();if(u.length===0&&a.length===0&&y.length===0&&d.length===0)return;let l=j.current;xt(!0);let h=r.get(o.id),pt=c.current.revision,et=null;try{let I=d.map((p)=>({type:"resource_link",name:p.name,uri:`app://${p.id}`}));for(let p of y){let rt={kind:"file",absPath:p};I.push({type:"resource_link",uri:Mn(rt),name:An(rt)})}let Et=ys(u,d);if(Et.length>0)I.push({type:"text",text:Et});for(let p of a)if(ot(p)){if(p.pastedText.status!=="ready")throw Error("Text attachment is not ready");I.push({type:"resource_link",uri:p.url,name:p.filename??"pasted-text.txt"})}else if(p.localImage){if(!p.sourcePath)throw Error("Local image requires a file path");I.push({type:"image",uri:Y(p.sourcePath),mimeType:p.mediaType,data:p.url?await kt(p):"",_meta:{"alwith.localImage":!0}})}else I.push({type:"image",data:await kt(p),mimeType:p.mediaType});if(c.current.revision===pt&&r.get(o.id)===h)c.current={text:"",revision:c.current.revision+1},et=c.current.revision,B(c.current),Q([]),L([]),U.current=void 0,W.current=void 0,X(o.id,()=>mt),r.set(o.id,{text:"",attachments:mt,mentions:[],apps:[],modelId:h?.modelId??null}),f.current?.resetHeight();if(i!==null&&w)await w(i);else if(T)if(l===null)await T(I);else await T(I,(p)=>{if(l.signal.aborted||j.current!==l)return;l.accept(p),S?.(o.id,p)});else if(l===null)await O.prompt(o.id,I);else{let p=await O.prompt(o.id,I);l.accept(p)}wt();for(let p of h?.attachments??[])if(p.url.startsWith("blob:")&&!r.get(o.id)?.attachments.some((rt)=>rt.id===p.id))URL.revokeObjectURL(p.url)}catch(I){if(h&&et!==null&&c.current.revision===et&&r.get(o.id)?.attachments.length===0&&r.get(o.id)?.mentions.length===0&&!r.get(o.id)?.apps?.length)c.current={text:h.text,revision:et+1},B(c.current),Q(h.mentions),L(h.apps??[]),r.set(o.id,h),X(o.id,()=>h.attachments);throw I}finally{xt(!1),f.current?.focus()}},[O,o.id,o.state,y,d,T,w,S,wt]),Kt=()=>{O.cancel(o.id).catch(z)},jt=A((t)=>{let a=t.code==="max_total_size"?Object.assign(Error(g("composer.imageTooLargeTitle")),{description:g("composer.imageTooLargeDescription",{mb:oe})}):Object.assign(Error(g("composer.unsupportedAttachmentTitle")),{description:g("composer.unsupportedAttachmentDescription")});z(a)},[z,g]),qt=st(()=>({session:o,ready:b,inputReady:D,sending:k,textareaRef:f,draft:Pt,interruptRef:yt,observeReceipts:It,addMention:lt,setAdding:Wt,shellMode:x,handsFree:!x&&(T===void 0||S!==void 0)}),[o,b,D,k,Pt,It,lt,T,S,x]),Ct=F.writeTextAttachment,Mt={className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,onKeyDown:Bt,bashMode:w!==void 0,disabled:!D,"aria-label":g("composer.placeholder"),placeholder:x?"! command":tt.text||St||(J?g("composer.steerPlaceholder"):g("composer.placeholder")),onPasteCapture:(t)=>{if(!Z&&!x&&!t.currentTarget.disabled&&![...t.clipboardData.items].some((a)=>a.kind==="file"&&a.type.startsWith("image/"))){let a=Rt(t.clipboardData);if(a?.apps.length){t.preventDefault();let i=t.currentTarget,u=m(a),l=_([...i.value.slice(0,i.selectionStart).split(""),...u,...i.value.slice(i.selectionEnd).split("")]);W.current={text:v,apps:[]},U.current=i.selectionStart+u.length,K(!0),L(l.apps),P(l.text);return}}if(Ct)Sn(t,o.id,g("composer.pastedTextFilename"),Ct)}};return s(mo,{value:qt,children:s("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:R("div",{className:"relative",children:[dt&&s("div",{"data-chat-input-header":!0,className:"bg-sidebar dark:bg-foreground/3 relative top-1 z-0 mx-[13px] -mb-[18px] flex min-w-0 items-center gap-2 overflow-hidden rounded-t-2xl px-1.5 pt-1.5 pb-[27px]",children:dt}),s(yr,{attachmentPolicy:ut,value:v,revision:c.current.revision,onValueChange:P,onSubmittedClear:()=>{c.current={text:"",revision:c.current.revision+1},B(c.current)},attachments:C,onAttachmentsChange:(t)=>X(o.id,()=>t),children:R("div",{ref:ct,className:"relative",children:[G&&!it&&s(tr,{bashMode:w!==void 0,handleRef:f,commands:o.commands,renderSlashMenu:(t)=>s(po,{anchorRef:ct,commands:o.commands,query:t.query,includeAttachment:!1,disabled:!D,agentDisabled:!b||x,open:!0,onClose:t.close,onCommand:(a)=>t.replaceQuery(()=>zt(a.startsWith("$")?a:`/${a}`)),onApp:(a)=>t.replaceQuery(()=>bt(a)),focusInput:vt}),searchFiles:Ht,onMention:lt,onSearchError:z,emptyLabel:g("composer.noCommands"),fileStatusLabels:{loading:g("composer.searchingFiles"),empty:g("composer.noMatchingFiles")}},Z?"inline":"textarea"),R(rr,{attachmentPolicy:ut,"data-shell-mode":x||void 0,bashMode:w!==void 0,globalDrop:!0,multiple:!0,accept:Yt.join(","),onError:jt,onSubmit:Tt,onSubmitAsync:Tt,onSubmitError:z,canSubmit:()=>b&&!k&&!V&&!at&&(!x||!J&&v.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[Ft,R(ar,{className:"px-3 pt-3 pb-0 empty:hidden",children:[V&&s("span",{role:"status",className:"text-muted-foreground text-xs",children:g("composer.addingFiles")}),s(Oi,{mentions:y,onRemove:(t)=>Q((a)=>a.filter((i)=>i!==t))}),s(gr,{children:(t)=>ot(t)?s(Hi,{data:t,sessionId:o.id}):s(mr,{data:t,t:g})})]}),R(sr,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(t)=>{if(!tt.text||f.current?.isComposing()||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||t.target!==f.current?.getTextarea())return;if(t.key==="Tab"||t.key==="ArrowRight"||t.key==="Enter")t.preventDefault(),t.stopPropagation(),P(tt.text)},children:[x&&s("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),Z?s(wo,{...Mt,skillIcon:F.skillIcon,skillNames:o.commands.map((t)=>t.name),applications:d,onApplicationsChange:L,initialCaret:U.current,initialUndo:W.current}):s(Co,{...Mt,autoFocus:gt&&x})]}),s(lr,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:R("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[R("div",{className:"flex min-w-0 items-center gap-[5px]",children:[s(Gi,{anchorRef:ct,commands:o.commands,disabled:!D,agentDisabled:!b||x,agentControls:G,open:it,onOpenChange:$t,focusInput:vt,onCommand:(t)=>{let a=c.current.text,i=a.length===0||a.endsWith(`
2
- `)?a:`${a}
3
- `,u=t.startsWith("$")?t:`/${t}`,l=`${i}${u} `;if(!Z)W.current={text:a,apps:[]},U.current=l.length,K(!0);P(l),requestAnimationFrame(()=>{let h=f.current?.getTextarea();h?.focus(),h?.setSelectionRange(l.length,l.length)})},onApp:bt}),Nt,G&&s(En,{sessionId:o.id,options:o.configOptions,disabled:!b})]}),R(cr,{className:"w-full min-w-0 items-center justify-end gap-1",children:[G&&s(Tn,{session:o}),E??s(kn,{...q,sessionId:o.id,options:o.configOptions,disabled:!b}),Dt,s(zi,{active:J,sending:k||ft||V,ready:b&&!at&&(!x||!J&&v.slice(1).trim().length>0),hasMentions:y.length>0||d.length>0,onStop:Kt})]})]})})]})]})})]})})})}
4
- export{Ue};
@@ -1,2 +0,0 @@
1
- import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function ee(e){return i(e.options)?e.options.flatMap((t)=>t.options):e.options}function y(e,t){return e.find((n)=>n.category===t&&o(n))}function te(e){return ee(e).find((t)=>t.value===e.currentValue)?.name??e.currentValue}
2
- export{ee,y,te};
@@ -1,2 +0,0 @@
1
- import{g}from"./chunk-q8c4k6qh.js";import{e}from"./chunk-qgrd5xre.js";import{u}from"./chunk-pz5d0vgv.js";import{isTauri as N}from"@tauri-apps/api/core";import{getCurrentWebview as U}from"@tauri-apps/api/webview";import{useEffect as _,useLayoutEffect as G,useRef as X}from"react";import{flushSync as F}from"react-dom";var H=33554432,x=new WeakMap,q=new WeakSet,W={"image/png":"png","image/jpeg":"jpg","image/webp":"webp","image/gif":"gif"};async function J(o){let{image:s}=await u.readDroppedFile({path:o,localImage:null});if(s===null)throw Error("Cannot load the original image");return{url:`data:${s.mimeType};base64,${s.data}`,mediaType:s.mimeType,bytes:s.data.length*3/4-(s.data.endsWith("==")?2:s.data.endsWith("=")?1:0)}}function K(o){return o.split(/[/\\]/).findLast((s)=>s!=="")??o}var Rn={sourcePath:(o)=>x.get(o),isLocalImage:(o)=>q.has(o),loadInlineImage:J,uniqueFiles(o,s){let p=new Set(s.map((f)=>f.sourcePath));return o.filter((f)=>{let w=x.get(f);if(w===void 0)return!0;if(p.has(w))return!1;return p.add(w),!0})}};function Ln({sessionId:o,imagesOnly:s=!1,picker:p,openPicker:f,pickFilePaths:w,enabled:O,onMention:S,onBusyChange:C}){let D=g(),{host:j}=e(),i=X({sessionId:o,attachments:D,enabled:O,onMention:S,onBusyChange:C,host:j,imagesOnly:s,pickFilePaths:w});return G(()=>{i.current={sessionId:o,attachments:D,enabled:O,onMention:S,onBusyChange:C,host:j,imagesOnly:s,pickFilePaths:w}}),_(()=>{if(!N())return;let d=!1,R,k=Promise.resolve(),I=0,h=()=>!d&&i.current.sessionId===o&&i.current.enabled,v=(n)=>{let{host:a}=i.current;if(a.reportError)a.reportError(n);else console.error(n)},E=()=>v(Error(i.current.host.t("composer.dropUnavailable")));i.current.onBusyChange(!1);let A=(n)=>{I++,F(()=>i.current.onBusyChange(!0)),k=k.then(async()=>{try{let a=new Set(i.current.attachments.files.map((t)=>t.sourcePath));for(let t of new Set(await n())){let l=typeof t==="string"?t:t.name;if(!h())return;try{let c=i.current.pickFilePaths!==void 0&&!i.current.imagesOnly,b=typeof t==="string"?void 0:W[t.type];if(typeof t!=="string"&&t.type.startsWith("image/")&&(!c||!b)){F(()=>i.current.attachments.add([t]));continue}if(typeof t!=="string"&&t.size>H)throw Error("Pasted file exceeds the 32 MiB limit");let P=typeof t==="string"?t:await u.writePastedFile({name:b&&!/\.(png|jpe?g|webp|gif)$/i.test(t.name)?`${t.name||"image"}.${b}`:t.name,data:[...new Uint8Array(await t.arrayBuffer())]});if(!h())return;let m=await u.readDroppedFile({path:P,localImage:c||null});if(!h())return;if(m.image===null){if(i.current.imagesOnly)throw Error(i.current.host.t("composer.unsupportedAttachmentTitle"));F(()=>i.current.onMention(m.path))}else if(!a.has(m.path)){let T=Uint8Array.from(atob(m.image.data),(y)=>y.charCodeAt(0)),r=new File([T],m.name,{type:m.image.mimeType});if(x.set(r,m.path),c)q.add(r);a.add(m.path),F(()=>i.current.attachments.add([r]))}}catch(c){if(!d)v(Object.assign(Error(i.current.host.t("composer.dropFailed",{name:K(l)})),{description:c instanceof Error?c.message:String(c)}))}}}finally{if(I--,!d)F(()=>i.current.onBusyChange(I>0))}}).catch((a)=>{if(!d)v(a)})},L=(n)=>{if(!h()){E();return}if(i.current.imagesOnly&&n.some((a)=>!a.type.startsWith("image/"))){v(Error(i.current.host.t("composer.unsupportedAttachmentTitle")));return}A(()=>Promise.resolve(n))};if(p)p.current=L;let M=()=>{let n=i.current.pickFilePaths;if(!n)throw Error("The native file picker is unavailable");if(!h()){E();return}A(n)};if(f)f.current=M;let z=U().onDragDropEvent((n)=>{if(d||n.payload.type!=="drop")return;let{paths:a,position:t}=n.payload,l=document.elementFromPoint(t.x/window.devicePixelRatio,t.y/window.devicePixelRatio);if(!l?.closest("[data-chat-drop-zone]")||l.closest('[role="dialog"]'))return;if(!h()){E();return}A(()=>Promise.resolve(a))}),B=(n)=>{let a=n.target;if(!(a instanceof Element)||!a.matches("[data-chat-input]"))return;if(!a.closest("[data-chat-drop-zone]")||a.closest('[role="dialog"]'))return;let t=n.clipboardData;if(!t)return;let l=[...t.files??[]],c=[...t.items??[]],b=i.current.pickFilePaths!==void 0&&!i.current.imagesOnly,P=b?c.flatMap((r)=>{if(r.kind!=="file"||!W[r.type])return[];let y=r.getAsFile();return y?[y]:[]}):[];if(!(t.types.includes("Files")&&!l.length&&!c.some((r)=>r.type.startsWith("image/")))&&!P.length&&!(b&&l.some((r)=>W[r.type]))&&!l.some((r)=>!r.type.startsWith("image/"))&&!c.some((r)=>r.kind==="file"&&!r.type.startsWith("image/"))&&!["text/uri-list","x-special/gnome-copied-files"].some((r)=>t.types.includes(r)&&/^file:\/\//m.test(t.getData(r))))return;if(n.preventDefault(),n.stopPropagation(),!h()){E();return}let T=u.clipboardFilePaths().then((r)=>({value:r}),(r)=>({error:r}));A(async()=>{let r=await T;if("error"in r)throw r.error;let y=r.value;if(y.length)return y;if(l.length)return l;if(P.length)return P;throw Error("The clipboard contains no readable local files")})};return document.addEventListener("paste",B,!0),z.then((n)=>{if(d)n();else R=n}).catch((n)=>{if(!d)v(n)}),()=>{if(d=!0,p?.current===L)p.current=null;if(f?.current===M)f.current=null;document.removeEventListener("paste",B,!0),R?.()}},[o,p,f]),null}
2
- export{Rn,Ln};
@@ -1,2 +0,0 @@
1
- import{At}from"./chunk-6ea6q6dj.js";import{n}from"./chunk-aj0z9a5r.js";import{e,x}from"./chunk-qgrd5xre.js";import{ee,y,te}from"./chunk-j2bp0zbe.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 w}from"react/jsx-runtime";function H({sessionId:l,options:u,disabled:B,onModelChange:h,onConfigChange:C,defaultGroup:G={id:"models",name:"Models"},catalog:I=(c)=>c,headerAction:L}){let{host:c,client:N}=e(),{t:i}=c,P=n((o)=>Boolean(o.configPending[l])),p=F({sessionId:l,model:!0}),b=P&&(p.current.sessionId!==l||p.current.model),k=n((o)=>{let r=o.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),t=y(u,"model"),a=y(u,"thought_level"),O=u.filter((o)=>o.configId!=="collaboration_mode"&&(o.category==="model_config"||o.category!=="mode"&&o!==t&&o!==a)),v=O.filter(A),m=O.filter(U);if(!t&&!a&&v.length===0&&m.length===0)return null;let f=(o,r)=>{if(r===o.currentValue)return Promise.resolve();p.current={sessionId:l,model:o===t};let d=C?C(o.configId,r):N.setConfig(l,o.configId,r);return x(c,d),d},g=a?ee(a):[],z=g.reduce((o,r)=>r.name.length>=o.length?r.name:o,""),R=t?te(t):i("composer.model"),_=(o)=>({api_id:o.value,label:o.name}),S=I(t&&q(t.options)?t.options.map((o)=>({id:o.groupId,name:o.name,models:o.options.map(_)})):[{...G,models:t?ee(t).map(_):[]}]),V=S.flatMap((o)=>o.models),M=V.find((o)=>o.api_id===t?.currentValue)??{api_id:t?.currentValue??"",label:R},s=m.find((o)=>o.configId==="fast_mode"||o.configId==="fast-mode");return w(At,{disabled:B||b||k,switching:b,value:{...M,label:M.shortLabel??M.label},compactCatalog:!0,models:V,showModelList:Boolean(t),onChange:(o)=>{if(o.api_id===t?.currentValue)return;if(h)h(o.api_id);else if(t)f(t,o.api_id)},header:{name:t?.name??i("composer.model"),action:L},modelGroups:S,t:i,effortConfig:a&&g.length>0?{name:"Effort",value:a.currentValue,levels:g,sizer:z,onChange:(o)=>f(a,o)}:void 0,selectOptions:v.map((o)=>({id:o.configId,name:o.name,value:o.currentValue,options:ee(o).map((r)=>({value:r.value,label:r.name})),onChange:(r)=>f(o,r)})),booleanOptions:[{id:"fast_mode",name:i("composer.fastMode"),currentValue:s?.currentValue??!1,disabled:!s,title:!s?i("composer.fastModeUnsupported"):void 0,icon:w(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}`);f(d,r)}})}var kn=D(H);
2
- export{kn};
@@ -1,2 +0,0 @@
1
- import{createContext as t,useContext as o}from"react";var mo=t(null);function Pn(){let e=o(mo);if(e===null)throw Error("Composer is missing");return e}
2
- export{mo,Pn};
@@ -1,2 +0,0 @@
1
- function*Ao(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 Cr(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 Ao(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
2
- export{Ao,Cr};
@@ -1,2 +0,0 @@
1
- import{ki}from"./chunk-pxbww0j1.js";import{createContext as r,useContext as i}from"react";import{jsx as s}from"react/jsx-runtime";var n=r(null);function sa({host:o,children:t}){return s(n,{value:o,children:t})}function A(){let o=i(n),e={...ki(),...o};if(e.t===void 0||e.i18n===void 0)throw Error("Collection host is missing; mount collections inside SessionListProvider or CollectionHostProvider");return e}function Ci(o,t){t.catch((e)=>{if(o.reportError)o.reportError(e);else console.error(e)})}function he(){let o=A();return(t)=>Ci(o,t)}function wi(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}
2
- export{sa,A,Ci,he,wi};
@@ -1,2 +0,0 @@
1
- import{invoke as i}from"@tauri-apps/api/core";import{listen as t,once as n,emit as s,emitTo as a}from"@tauri-apps/api/event";var u={providersRead:()=>i("plugin:alwith-chat|providers_read"),providersSave:(e)=>i("plugin:alwith-chat|providers_save",e),providersSaveCustom:(e)=>i("plugin:alwith-chat|providers_save_custom",e),providersRemoveCustom:(e)=>i("plugin:alwith-chat|providers_remove_custom",e),providersTest:(e)=>i("plugin:alwith-chat|providers_test",e),providersApply:()=>i("plugin:alwith-chat|providers_apply"),providersAccountBind:(e)=>i("plugin:alwith-chat|providers_account_bind",e),providersRefreshManaged:(e)=>i("plugin:alwith-chat|providers_refresh_managed",e),providersClearManaged:()=>i("plugin:alwith-chat|providers_clear_managed"),readSkillDocument:(e)=>i("plugin:alwith-chat|read_skill_document",e),sessionsList:(e)=>i("plugin:alwith-chat|sessions_list",e),sessionsCountTypes:(e)=>i("plugin:alwith-chat|sessions_count_types",e),sessionsPersonaEvidence:(e)=>i("plugin:alwith-chat|sessions_persona_evidence",e),getModelPricing:()=>i("plugin:alwith-chat|get_model_pricing"),scanSessionAggregates:(e)=>i("plugin:alwith-chat|scan_session_aggregates",e),exportWeekSessions:()=>i("plugin:alwith-chat|export_week_sessions"),dailyTokenUsage:(e)=>i("plugin:alwith-chat|daily_token_usage",e),downloadUsageJson:(e)=>i("plugin:alwith-chat|download_usage_json",e),wordCloud:(e)=>i("plugin:alwith-chat|word_cloud",e),readDroppedFile:(e)=>i("plugin:alwith-chat|read_dropped_file",e),clipboardFilePaths:()=>i("plugin:alwith-chat|clipboard_file_paths"),writePastedFile:(e)=>i("plugin:alwith-chat|write_pasted_file",e),readImage:(e)=>i("plugin:alwith-chat|read_image",e),saveFile:(e)=>i("plugin:alwith-chat|save_file",e),writeTextAttachment:(e)=>i("plugin:alwith-chat|write_text_attachment",e),previewFile:(e)=>i("plugin:alwith-chat|preview_file",e)},go={"providers:changed":{name:"providers:changed",listen:(e)=>t("providers:changed",e),once:(e)=>n("providers:changed",e),emit:(e)=>s("providers:changed",e),emitTo:(e,r)=>a(e,"providers:changed",r)},"providers:managed-revoked":{name:"providers:managed-revoked",listen:(e)=>t("providers:managed-revoked",e),once:(e)=>n("providers:managed-revoked",e),emit:(e)=>s("providers:managed-revoked",e),emitTo:(e,r)=>a(e,"providers:managed-revoked",r)}};function Da(e){return typeof e==="object"&&e!==null&&typeof e.code==="string"&&typeof e.message==="string"}function Xa(e){if(Da(e)||e instanceof Error)return e.message;return String(e)}
2
- export{u,go,Da,Xa};
@@ -1,2 +0,0 @@
1
- import{ne}from"./chunk-whax282d.js";import{b}from"./chunk-veef1avy.js";import{k}from"./chunk-aj0z9a5r.js";import{Pn}from"./chunk-kvgn4b2n.js";import{Ue}from"./chunk-fxzh4f7c.js";import{yn}from"./chunk-bdea3k6b.js";import{Ge}from"./chunk-359pf448.js";import{Dn}from"./chunk-r2b234a7.js";import{Be}from"./chunk-23kvszfc.js";import{Rn,Ln}from"./chunk-k97dpdcj.js";import{isTauri as y}from"@tauri-apps/api/core";import{useMemo as R,useRef as u}from"react";import{jsx as n,jsxs as P,Fragment as O}from"react/jsx-runtime";var f;function M(){return f??=yn(),f}function F({imagesOnly:r,picker:s,openPicker:t,pickFilePaths:l}){let e=Pn();return n(Ln,{imagesOnly:r,picker:s,openPicker:t,pickFilePaths:l,sessionId:e.session.id,enabled:e.inputReady&&!e.sending&&!e.shellMode,onMention:e.addMention,onBusyChange:e.setAdding})}function va({client:r,providers:s,catalog:t,shellCommands:l=!0,imagesOnly:e=!1,pickFilePaths:d,modelMenu:g,children:h,...m}){let p=u(null),a=u(null),c=!e&&d!==void 0&&y(),C=R(()=>({...Rn,useLocalImages:c,...c?{openFileDialog:()=>{if(!a.current)throw Error("The file picker is not ready");a.current()}}:{},accept:e?"image/png,image/jpeg,image/webp,image/gif":void 0,onSelectFiles(o){if(!p.current)throw Error("The file picker is not ready");p.current(o)}}),[e,c]),{session:i}=m,v=k(r.store,(o)=>o.modelRecovery[i.id]??!1);return P(O,{children:[v&&!ne(i.error?.error)&&n(Dn,{client:r,session:i,providers:s??M(),catalog:t},i.id),P(Ue,{modelMenu:g??{defaultGroup:b,catalog:(o)=>Ge(o,t),headerAction:n(Be,{})},...m,attachmentPolicy:C,onShellCommand:l?(o)=>r.executeShell(i.id,o):void 0,children:[n(F,{imagesOnly:e,picker:p,openPicker:a,pickFilePaths:d}),h]})]})}
2
- export{va};
@@ -1,2 +0,0 @@
1
- import{Y}from"./chunk-h71pkpwg.js";function Mn(t){return Y(t.absPath)}function Nn(t){return t.replace(/[\\/]+$/,"").split(/[\\/]/).at(-1)??t}function An(t){return Nn(t.absPath)}
2
- export{Mn,Nn,An};
@@ -1,2 +0,0 @@
1
- import{groupSessions as Xe,projectName as ge,isQuickChatDirectory as qs,QUICK_CHATS_GROUP as se}from"@nyssance/codex-acp-v2/client";
2
- export{Xe,ge,qs,se};
@@ -1,2 +0,0 @@
1
- import{u}from"./chunk-pz5d0vgv.js";function Ns(r,n){return u.readSkillDocument({path:r,roots:n??null})}
2
- export{Ns};
@@ -1,2 +0,0 @@
1
- import{or}from"./chunk-k0h18sme.js";import{e,x}from"./chunk-qgrd5xre.js";import{ee,y}from"./chunk-j2bp0zbe.js";import{createLucideIcon as v,HandIcon as k,ShieldAlertIcon as w,ShieldCheckIcon as a}from"lucide-react";import{memo as S}from"react";import{jsx as t}from"react/jsx-runtime";var O=v("ApprovalShield",[["path",{d:"M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11",key:"shield"}],["path",{d:"m8 8 3 3-3 3M13 15h3",key:"terminal"}]]),d={"read-only":k,"workspace-write":a,agent:O,"agent-full-access":w},b={"read-only":"readOnly","workspace-write":"workspaceAccess",agent:"agent","agent-full-access":"fullAccess"};function A({sessionId:u,options:m,disabled:g,onConfigChange:c}){let{host:l,client:f}=e(),{t:r}=l,s=y(m,"mode");if(!s)return null;let o=s.currentValue,p=ee(s).map((n)=>{let i=b[n.value];return i?{...n,name:r(`permissionModes.${i}.name`),description:r(`permissionModes.${i}.description`)}:n}),h=p.find((n)=>n.value===o),M=d[o]??a,I=(n)=>{if(n===o)return;x(l,c?c(s.configId,n):f.setConfig(u,s.configId,n))};return t(or,{value:o,warning:o==="agent-full-access",currentName:h?.name??o,icon:t(M,{className:"size-3.5 shrink-0"}),header:r("permissionModes.heading"),disabled:g,label:r("composer.switchPermissionMode"),onValueChange:I,options:p.map((n)=>{let i=d[n.value]??a,C=n.value==="agent-full-access";return{value:n.value,label:t("span",{"data-permission-warning":C?"":void 0,children:n.name}),description:n.description?t("span",{className:"whitespace-normal",children:n.description}):void 0,icon:t(i,{className:"size-3.5 shrink-0"})}})})}var En=S(A);
2
- export{En};