@alwith/module-chat 0.5.27 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1064) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +15 -11
  3. package/assets/provider-catalog.json +2 -2
  4. package/dist/activity-host.js +1 -1
  5. package/dist/approval/choice-elicitation-form.js +1 -1
  6. package/dist/approval/choice-schema.js +1 -1
  7. package/dist/approval/permission-options.js +1 -1
  8. package/dist/approval/permission-view.js +1 -1
  9. package/dist/approval/schema-elicitation-form.js +1 -1
  10. package/dist/approval/url-elicitation-card.js +1 -1
  11. package/dist/{chunk-h6jkgcw1.js → chunk-05c7f7pa.js} +2 -2
  12. package/dist/{chunk-htjpckp6.js → chunk-0d5830mq.js} +3 -3
  13. package/dist/{chunk-shwnd0ta.js → chunk-0e4zew7m.js} +2 -2
  14. package/dist/{chunk-cpe2b276.js → chunk-0jz7wsbx.js} +2 -2
  15. package/dist/{chunk-75vtd3ww.js → chunk-0ms8k740.js} +2 -2
  16. package/dist/{chunk-s3h496tf.js → chunk-1rs9getz.js} +2 -2
  17. package/dist/chunk-1vmk34zf.js +2 -0
  18. package/dist/{chunk-7x1qnb20.js → chunk-1wh82w54.js} +2 -2
  19. package/dist/{chunk-6t5war9h.js → chunk-1z5htskd.js} +2 -2
  20. package/dist/{chunk-t2q8cxnh.js → chunk-2emf349g.js} +2 -2
  21. package/dist/{chunk-wc53vqaw.js → chunk-2g7k5pkt.js} +2 -2
  22. package/dist/{chunk-scxhc46w.js → chunk-3pvs8s3b.js} +2 -2
  23. package/dist/{chunk-wpn4rdwv.js → chunk-3sqxe0mw.js} +3 -3
  24. package/dist/{chunk-3jd4dkv4.js → chunk-3tbg92ns.js} +3 -3
  25. package/dist/{chunk-spfbykq8.js → chunk-4kevwekp.js} +2 -2
  26. package/dist/{chunk-qqqcqvrv.js → chunk-4s4e7zzx.js} +2 -2
  27. package/dist/{chunk-6e1bwjtk.js → chunk-50brsmjd.js} +2 -2
  28. package/dist/{chunk-kd87rt80.js → chunk-55gczv3j.js} +2 -2
  29. package/dist/{chunk-h2ewgw0x.js → chunk-5c5z2b48.js} +2 -2
  30. package/dist/{chunk-hcwgc3r7.js → chunk-5fj4ewez.js} +2 -2
  31. package/dist/{chunk-d0cb9bks.js → chunk-5p1fxq0k.js} +2 -2
  32. package/dist/{chunk-qxgmjjh2.js → chunk-5vh4z4yp.js} +2 -2
  33. package/dist/{chunk-z1aqmqgc.js → chunk-5wc30q2q.js} +2 -2
  34. package/dist/{chunk-fpmspg92.js → chunk-60z20w9q.js} +2 -2
  35. package/dist/{chunk-2twh547k.js → chunk-6883ebtb.js} +2 -2
  36. package/dist/chunk-69p0nqws.js +2 -0
  37. package/dist/{chunk-wcgwtn6h.js → chunk-6cbbnb7a.js} +2 -2
  38. package/dist/{chunk-2aw4d623.js → chunk-6h2ysmec.js} +2 -2
  39. package/dist/{chunk-7zryea1b.js → chunk-6r8jsyqk.js} +2 -2
  40. package/dist/{chunk-jan870w7.js → chunk-7491nfcw.js} +3 -3
  41. package/dist/chunk-758e6qf7.js +4 -0
  42. package/dist/{chunk-x2nemdjf.js → chunk-76a04a6j.js} +2 -2
  43. package/dist/{chunk-e2q5znh5.js → chunk-78qh8049.js} +2 -2
  44. package/dist/{chunk-tk2471ny.js → chunk-7962trd3.js} +2 -2
  45. package/dist/{chunk-v7rtfzg4.js → chunk-7g2fjbn8.js} +2 -2
  46. package/dist/{chunk-br9wsczn.js → chunk-887d80ps.js} +2 -2
  47. package/dist/{chunk-9x0qmswv.js → chunk-8ht645rn.js} +2 -2
  48. package/dist/{chunk-n368fh3r.js → chunk-8j39jdxr.js} +3 -3
  49. package/dist/{chunk-42atrgm1.js → chunk-8jxcdap5.js} +2 -2
  50. package/dist/{chunk-n66yy1m1.js → chunk-8mc330j2.js} +2 -2
  51. package/dist/{chunk-hsp0skqs.js → chunk-8nds14dw.js} +2 -2
  52. package/dist/{chunk-ggehtpkh.js → chunk-8qnrhq54.js} +2 -2
  53. package/dist/{chunk-4edeen4z.js → chunk-938k294j.js} +3 -3
  54. package/dist/{chunk-6vntcyv6.js → chunk-93d3a9wy.js} +2 -2
  55. package/dist/chunk-97yvajhc.js +2 -0
  56. package/dist/{chunk-k3e8wper.js → chunk-9cqfjpfk.js} +3 -3
  57. package/dist/chunk-9g0j2ptv.js +2 -0
  58. package/dist/chunk-9pgh7zjb.js +2 -0
  59. package/dist/{chunk-k2q7wjp6.js → chunk-9vm0y271.js} +2 -2
  60. package/dist/{chunk-5yzjwrat.js → chunk-9vxev5r7.js} +3 -3
  61. package/dist/{chunk-1sxf2rqx.js → chunk-9x48rd50.js} +2 -2
  62. package/dist/{chunk-az5ayr2d.js → chunk-a1snxcra.js} +2 -2
  63. package/dist/chunk-axyfaexd.js +2 -0
  64. package/dist/chunk-b4evrc3r.js +2 -0
  65. package/dist/{chunk-5ysapftt.js → chunk-cansmt47.js} +3 -3
  66. package/dist/{chunk-m9rgwr0p.js → chunk-cc33s37q.js} +2 -2
  67. package/dist/{chunk-5dkj3ntx.js → chunk-cfhg44ce.js} +2 -2
  68. package/dist/{chunk-074wn2jr.js → chunk-cpvaqbtq.js} +2 -2
  69. package/dist/{chunk-zx27nf5b.js → chunk-d09kxrbp.js} +2 -2
  70. package/dist/chunk-d32738zq.js +2 -0
  71. package/dist/{chunk-dtsybj2a.js → chunk-d39kpmyz.js} +2 -2
  72. package/dist/{chunk-xz6pb64j.js → chunk-d444rgtm.js} +2 -2
  73. package/dist/chunk-d4pm6n4q.js +2 -0
  74. package/dist/{chunk-0v2d2kme.js → chunk-ddj8ag0b.js} +3 -3
  75. package/dist/{chunk-79jjxyb7.js → chunk-dmsy511f.js} +2 -2
  76. package/dist/{chunk-x52rbm87.js → chunk-ewjh6s2b.js} +2 -2
  77. package/dist/{chunk-53qt3tjb.js → chunk-ezscf6qz.js} +2 -2
  78. package/dist/{chunk-3kk0rxch.js → chunk-f06zyvek.js} +2 -2
  79. package/dist/{chunk-6whr1y2s.js → chunk-f192h0js.js} +2 -2
  80. package/dist/{chunk-z3dwf54f.js → chunk-fjwn02v3.js} +2 -2
  81. package/dist/{chunk-0stda83g.js → chunk-fynzxex7.js} +2 -2
  82. package/dist/{chunk-qnc6w06c.js → chunk-fyvq1tqw.js} +3 -3
  83. package/dist/{chunk-dxgha4a2.js → chunk-gdr4245h.js} +2 -2
  84. package/dist/{chunk-d0w04ydg.js → chunk-gha517v4.js} +2 -2
  85. package/dist/chunk-gva03q5f.js +2 -0
  86. package/dist/{chunk-q0z9jq6p.js → chunk-gxjtydsk.js} +2 -2
  87. package/dist/chunk-haxhf3gd.js +2 -0
  88. package/dist/{chunk-2fgwkj52.js → chunk-hd879x7s.js} +3 -3
  89. package/dist/{chunk-t3s1ydnq.js → chunk-hfjvr394.js} +2 -2
  90. package/dist/{chunk-p7dd93e5.js → chunk-hp9h8njw.js} +2 -2
  91. package/dist/{chunk-0tzra5rn.js → chunk-ht6p9j86.js} +2 -2
  92. package/dist/{chunk-e43x30mv.js → chunk-j1f4spe0.js} +2 -2
  93. package/dist/{chunk-s56e2286.js → chunk-j6e2t91q.js} +2 -2
  94. package/dist/chunk-jeedg61t.js +2 -0
  95. package/dist/{chunk-8xb3b71p.js → chunk-js95dpfd.js} +2 -2
  96. package/dist/{chunk-1mcg9mwq.js → chunk-jsc8qzkj.js} +1 -1
  97. package/dist/chunk-jwkm2kgd.js +2 -0
  98. package/dist/{chunk-90r8y97z.js → chunk-k7y6dqf2.js} +2 -2
  99. package/dist/chunk-kcke05ds.js +2 -0
  100. package/dist/chunk-ktpg1m74.js +2 -0
  101. package/dist/{chunk-g7by9ta9.js → chunk-kyjhngd2.js} +2 -2
  102. package/dist/chunk-kymztvkv.js +2 -0
  103. package/dist/{chunk-b67h7yss.js → chunk-kyxdpg6a.js} +2 -2
  104. package/dist/{chunk-ehdqspxk.js → chunk-m0q3bf05.js} +2 -2
  105. package/dist/{chunk-thzq3tfa.js → chunk-m7e2zvyk.js} +2 -2
  106. package/dist/{chunk-6w6yy1md.js → chunk-m8s9nw8b.js} +2 -2
  107. package/dist/{chunk-6k8m2c80.js → chunk-mb99bpqx.js} +2 -2
  108. package/dist/chunk-n6kdjmh7.js +2 -0
  109. package/dist/chunk-nvxcys2c.js +2 -0
  110. package/dist/{chunk-ngqr3n0s.js → chunk-pa354z8g.js} +2 -2
  111. package/dist/{chunk-qd7jqtqr.js → chunk-pfft1e99.js} +2 -2
  112. package/dist/{chunk-sp39pqt6.js → chunk-pqw5qz4e.js} +2 -2
  113. package/dist/{chunk-r7svwjdg.js → chunk-ps74k3c4.js} +2 -2
  114. package/dist/{chunk-6rgyckw8.js → chunk-pvnc76cr.js} +2 -2
  115. package/dist/{chunk-gsnqwd84.js → chunk-pvzceygv.js} +2 -2
  116. package/dist/chunk-pyah1qdm.js +2 -0
  117. package/dist/{chunk-5t5y5e8n.js → chunk-q005jp78.js} +2 -2
  118. package/dist/chunk-q3b79z6s.js +2 -0
  119. package/dist/chunk-qcabefs0.js +2 -0
  120. package/dist/chunk-qcy0m7c4.js +2 -0
  121. package/dist/{chunk-jrmygc4p.js → chunk-qf163g6t.js} +2 -2
  122. package/dist/{chunk-91zvyqnt.js → chunk-qmhnhgc5.js} +2 -2
  123. package/dist/{chunk-jkvqtwe6.js → chunk-qvadb210.js} +2 -2
  124. package/dist/{chunk-tk4t9h7r.js → chunk-qx0xeepz.js} +2 -2
  125. package/dist/{chunk-c26xgmyr.js → chunk-r0bmsz7b.js} +2 -2
  126. package/dist/{chunk-4saf1qa5.js → chunk-r25wz0yx.js} +2 -2
  127. package/dist/chunk-r29eygte.js +2 -0
  128. package/dist/{chunk-wdrzhaxf.js → chunk-rbj9twq1.js} +2 -2
  129. package/dist/{chunk-02mwhdhw.js → chunk-rz3njmhn.js} +2 -2
  130. package/dist/{chunk-8gztbvxt.js → chunk-s7fc1rkz.js} +2 -2
  131. package/dist/{chunk-h09ez7fc.js → chunk-sc7qd3kj.js} +2 -2
  132. package/dist/chunk-sn5n38j6.js +2 -0
  133. package/dist/{chunk-ee0krzt0.js → chunk-ss5xzk9q.js} +2 -2
  134. package/dist/{chunk-8bdeyvy3.js → chunk-t3vcp85z.js} +2 -2
  135. package/dist/{chunk-2f9vjmxz.js → chunk-t63mwyg0.js} +2 -2
  136. package/dist/{chunk-epg5w48v.js → chunk-t9djctkk.js} +2 -2
  137. package/dist/{chunk-pgqsw2sh.js → chunk-tdys88q3.js} +2 -2
  138. package/dist/{chunk-jgwrjncj.js → chunk-te3mzdae.js} +2 -2
  139. package/dist/{chunk-eg86g265.js → chunk-tggrc8e5.js} +2 -2
  140. package/dist/{chunk-99w9jq4v.js → chunk-tm5dbbgp.js} +2 -2
  141. package/dist/{chunk-secfh4re.js → chunk-twbp4j4c.js} +2 -2
  142. package/dist/{chunk-m4eqmf0x.js → chunk-v1x1b7cv.js} +5 -5
  143. package/dist/{chunk-hck587pb.js → chunk-vetfnaz1.js} +2 -2
  144. package/dist/{chunk-4j2c9r6m.js → chunk-vxk0kgbf.js} +2 -2
  145. package/dist/{chunk-srpsc10y.js → chunk-w3eddq0g.js} +2 -2
  146. package/dist/chunk-w49gke0h.js +2 -0
  147. package/dist/{chunk-95mynf7q.js → chunk-wc48fzq2.js} +2 -2
  148. package/dist/{chunk-hs91aaaz.js → chunk-wcwgk4bg.js} +2 -2
  149. package/dist/{chunk-5b19mbh6.js → chunk-wh5dd7mq.js} +2 -2
  150. package/dist/{chunk-szwq5b69.js → chunk-wkw61zwr.js} +2 -2
  151. package/dist/{chunk-41z12m3j.js → chunk-wvs6ttt3.js} +4 -4
  152. package/dist/{chunk-8a61phqa.js → chunk-wxsb337y.js} +3 -3
  153. package/dist/{chunk-yg6vhdq9.js → chunk-xke4r5kr.js} +2 -2
  154. package/dist/chunk-xmrsdhtw.js +2 -0
  155. package/dist/{chunk-frbakxev.js → chunk-y0cxqkzd.js} +2 -2
  156. package/dist/{chunk-5yb7twvm.js → chunk-y39xsj1f.js} +2 -2
  157. package/dist/{chunk-4kbkbvjp.js → chunk-y7nq2yre.js} +2 -2
  158. package/dist/chunk-yamfntjx.js +1 -0
  159. package/dist/{chunk-s6m0ske7.js → chunk-yd68z08r.js} +2 -2
  160. package/dist/{chunk-zfxwm1g9.js → chunk-yep82kwy.js} +2 -2
  161. package/dist/chunk-yht2h676.js +2 -0
  162. package/dist/chunk-yvkt9ewq.js +2 -0
  163. package/dist/{chunk-vm2qb3ns.js → chunk-yvr086m7.js} +2 -2
  164. package/dist/{chunk-q70h5z14.js → chunk-z20ss7qj.js} +2 -2
  165. package/dist/{chunk-84yjrafh.js → chunk-z32chhqm.js} +2 -2
  166. package/dist/{chunk-c0b3zze8.js → chunk-zettt6hy.js} +2 -2
  167. package/dist/{chunk-31s3s58d.js → chunk-zrh4de8p.js} +2 -2
  168. package/dist/codex/activity-group.js +1 -1
  169. package/dist/codex/assistant-message.js +1 -1
  170. package/dist/codex/async-question-card.js +1 -1
  171. package/dist/codex/disclosure-state.js +1 -1
  172. package/dist/codex/edited-files-card.js +1 -1
  173. package/dist/codex/image-view-activity.js +1 -1
  174. package/dist/codex/markdown-renderer.js +1 -1
  175. package/dist/codex/navigation-audio.js +1 -1
  176. package/dist/codex/navigation-preview.js +1 -1
  177. package/dist/codex/navigation-rail.js +1 -1
  178. package/dist/codex/patch-view.js +1 -1
  179. package/dist/codex/plan.js +1 -1
  180. package/dist/codex/timeline-virtualizer.js +1 -1
  181. package/dist/codex/turn-activity.js +1 -1
  182. package/dist/codex/user-message.js +1 -1
  183. package/dist/codex/virtualized-turn-list.js +1 -1
  184. package/dist/collections/collection-emoji.js +1 -1
  185. package/dist/collections/collection-menu.js +1 -1
  186. package/dist/collections/collection-panel.js +1 -1
  187. package/dist/collections/collections.js +1 -1
  188. package/dist/collections/host.js +1 -1
  189. package/dist/collections/model.js +1 -1
  190. package/dist/collections/store.js +1 -1
  191. package/dist/composer/completion-filter.js +1 -1
  192. package/dist/composer/completion-menu.js +1 -1
  193. package/dist/composer/completion-trigger.js +1 -1
  194. package/dist/composer/effort-slider.js +1 -1
  195. package/dist/composer/menu-radio.js +1 -1
  196. package/dist/composer/model-select.js +1 -1
  197. package/dist/composer/permission-mode-select.js +1 -1
  198. package/dist/composer/prompt-input-attachments.js +1 -1
  199. package/dist/composer/prompt-input-clipboard.js +1 -1
  200. package/dist/composer/prompt-input-context.js +1 -1
  201. package/dist/composer/prompt-input-textarea.js +1 -1
  202. package/dist/composer/prompt-input.js +1 -1
  203. package/dist/conversation/action-card.js +1 -1
  204. package/dist/conversation/composer/composer.js +1 -1
  205. package/dist/conversation/composer/config-options.js +1 -1
  206. package/dist/conversation/composer/context.js +1 -1
  207. package/dist/conversation/composer/drafts.js +1 -1
  208. package/dist/conversation/composer/file-items.js +1 -1
  209. package/dist/conversation/composer/long-text.js +1 -1
  210. package/dist/conversation/composer/mention-chips.js +1 -1
  211. package/dist/conversation/composer/mention-uri.js +1 -1
  212. package/dist/conversation/composer/model-menu.js +1 -1
  213. package/dist/conversation/composer/pasted-text-attachment.js +1 -1
  214. package/dist/conversation/composer/permission-mode-menu.js +1 -1
  215. package/dist/conversation/composer/prediction.js +1 -1
  216. package/dist/conversation/composer/prompt-history.js +1 -1
  217. package/dist/conversation/composer/slash-command-button.js +1 -1
  218. package/dist/conversation/composer/submit-button.js +1 -1
  219. package/dist/conversation/composer/usage-meter.js +1 -1
  220. package/dist/conversation/connection-notice.js +1 -1
  221. package/dist/conversation/context.js +1 -1
  222. package/dist/conversation/conversation-body.js +1 -1
  223. package/dist/conversation/conversation-search.js +1 -1
  224. package/dist/conversation/conversation-view.js +1 -1
  225. package/dist/conversation/conversation.js +1 -1
  226. package/dist/conversation/diff-modal.js +1 -1
  227. package/dist/conversation/draft-project-picker.js +1 -1
  228. package/dist/conversation/session-actions.js +1 -1
  229. package/dist/conversation/subagent-sessions.js +1 -1
  230. package/dist/generated/commands.d.ts +363 -0
  231. package/dist/generated/commands.js +1 -0
  232. package/dist/image-lightbox.js +1 -1
  233. package/dist/image-preview-dialog.js +1 -1
  234. package/dist/lib/code-highlighter.js +1 -1
  235. package/dist/lib/fuzzy.js +1 -1
  236. package/dist/lib/group-blocks.js +1 -1
  237. package/dist/lib/image-encode.js +1 -1
  238. package/dist/lib/limits.js +1 -1
  239. package/dist/lib/markdown-parser.js +1 -1
  240. package/dist/lib/markdown-rules.js +1 -1
  241. package/dist/lib/model-name.js +1 -1
  242. package/dist/lib/pointer-centered-zoom.js +1 -1
  243. package/dist/lib/prepare-prompt-files.js +1 -1
  244. package/dist/lib/stream-style.js +1 -1
  245. package/dist/lib/streaming-markdown.js +1 -1
  246. package/dist/plugins/catalog-header.js +1 -1
  247. package/dist/plugins/catalog-skeleton.js +1 -1
  248. package/dist/plugins/host.js +1 -1
  249. package/dist/plugins/new-chat-directory.js +1 -1
  250. package/dist/plugins/panel-item.js +1 -1
  251. package/dist/plugins/plugin-detail-page.js +1 -1
  252. package/dist/plugins/plugin-icon.js +1 -1
  253. package/dist/plugins/plugin-icons.js +1 -1
  254. package/dist/plugins/plugins-page.js +1 -1
  255. package/dist/plugins/plugins.d.ts +1 -1
  256. package/dist/plugins/plugins.js +1 -1
  257. package/dist/plugins/read-skill-document.d.ts +1 -2
  258. package/dist/plugins/read-skill-document.js +1 -1
  259. package/dist/plugins/skill-document.js +1 -1
  260. package/dist/plugins/skills-tab.js +1 -1
  261. package/dist/plugins/store.js +1 -1
  262. package/dist/plugins/toolbox-layout.js +1 -1
  263. package/dist/search/chat-search.js +1 -1
  264. package/dist/search/codex-source-matches.js +1 -1
  265. package/dist/search/dom-matches.js +1 -1
  266. package/dist/search/literal-matches.js +1 -1
  267. package/dist/session-list/account-menu.js +1 -1
  268. package/dist/session-list/activity-list.js +1 -1
  269. package/dist/session-list/archived-sessions.js +1 -1
  270. package/dist/session-list/help-menu.js +1 -1
  271. package/dist/session-list/highlight.js +1 -1
  272. package/dist/session-list/host.js +1 -1
  273. package/dist/session-list/hover-info-card.js +1 -1
  274. package/dist/session-list/navigation-controls.js +1 -1
  275. package/dist/session-list/navigation-header.js +1 -1
  276. package/dist/session-list/navigation-store.js +1 -1
  277. package/dist/session-list/navigation-tabs.js +1 -1
  278. package/dist/session-list/navigation.js +1 -1
  279. package/dist/session-list/overflow-marquee.js +1 -1
  280. package/dist/session-list/platform.js +1 -1
  281. package/dist/session-list/row-stop-button.js +1 -1
  282. package/dist/session-list/session-groups.js +1 -1
  283. package/dist/session-list/session-info-card.js +1 -1
  284. package/dist/session-list/session-list.js +1 -1
  285. package/dist/session-list/session-row.js +1 -1
  286. package/dist/session-list/session-state-dot.js +1 -1
  287. package/dist/session-list/session-state-menu.js +1 -1
  288. package/dist/session-list/shortcut-hint.js +1 -1
  289. package/dist/session-list/shortcut.js +1 -1
  290. package/dist/session-list/sidebar-overlay.js +1 -1
  291. package/dist/session-list/trailing-swap.js +1 -1
  292. package/dist/session-list/use-activity-notification.js +1 -1
  293. package/dist/session-list/use-activity-preview.js +1 -1
  294. package/dist/session-list/use-cmd-held.js +1 -1
  295. package/dist/session-list/use-project-sessions.js +1 -1
  296. package/dist/session-list/virtual-session-rows.js +1 -1
  297. package/dist/session-timeline/activity-group.js +1 -1
  298. package/dist/session-timeline/activity-projection.js +1 -1
  299. package/dist/session-timeline/assistant-content.js +1 -1
  300. package/dist/session-timeline/assistant-turn.js +1 -1
  301. package/dist/session-timeline/async-questions.js +1 -1
  302. package/dist/session-timeline/edited-files-card.js +1 -1
  303. package/dist/session-timeline/history-timeline.js +1 -1
  304. package/dist/session-timeline/host.js +1 -1
  305. package/dist/session-timeline/navigation-rail.js +1 -1
  306. package/dist/session-timeline/plan.js +1 -1
  307. package/dist/session-timeline/question-reply.js +1 -1
  308. package/dist/session-timeline/resource-content.js +1 -1
  309. package/dist/session-timeline/session-timeline.js +1 -1
  310. package/dist/session-timeline/timeline-registry.js +1 -1
  311. package/dist/session-timeline/turn-activity.js +1 -1
  312. package/dist/session-timeline/turn-error.js +1 -1
  313. package/dist/session-timeline/turn-retry.js +1 -1
  314. package/dist/session-timeline/turn-time.js +1 -1
  315. package/dist/session-timeline/turns.js +1 -1
  316. package/dist/session-timeline/use-timeline-scroll.js +1 -1
  317. package/dist/session-timeline/user-message.js +1 -1
  318. package/dist/settings/codex-account-card.js +1 -1
  319. package/dist/settings/login-card.js +1 -1
  320. package/dist/settings/model-alias-settings.js +1 -1
  321. package/dist/settings/model-aliases.js +1 -1
  322. package/dist/settings/provider-logos.js +1 -1
  323. package/dist/settings/provider-section.js +1 -1
  324. package/dist/settings/providers-port.d.ts +2 -8
  325. package/dist/settings/providers-port.js +1 -1
  326. package/dist/settings/providers.js +1 -1
  327. package/dist/settings/settings-bridge.js +1 -1
  328. package/dist/settings/settings.d.ts +1 -1
  329. package/dist/settings/settings.js +1 -1
  330. package/native/darwin-arm64/THIRD_PARTY_NOTICES.md +210 -0
  331. package/native/darwin-arm64/artifact.json +8 -0
  332. package/native/darwin-arm64/libalwith_native_chat.dylib +0 -0
  333. package/native/darwin-arm64/licenses/Inflector-0.11.4/LICENSE.md +22 -0
  334. package/native/darwin-arm64/licenses/adler32-1.2.0/LICENSE +43 -0
  335. package/native/darwin-arm64/licenses/aes-0.9.4/LICENSE-APACHE +201 -0
  336. package/native/darwin-arm64/licenses/aes-0.9.4/LICENSE-MIT +26 -0
  337. package/native/darwin-arm64/licenses/allocator-api2-0.2.21/LICENSE-APACHE +176 -0
  338. package/native/darwin-arm64/licenses/allocator-api2-0.2.21/LICENSE-MIT +23 -0
  339. package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  340. package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  341. package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  342. package/native/darwin-arm64/licenses/autocfg-1.5.1/LICENSE-APACHE +201 -0
  343. package/native/darwin-arm64/licenses/autocfg-1.5.1/LICENSE-MIT +25 -0
  344. package/native/darwin-arm64/licenses/aws-lc-rs-1.19.0/LICENSE +202 -0
  345. package/native/darwin-arm64/licenses/aws-lc-sys-0.47.0/LICENSE +316 -0
  346. package/native/darwin-arm64/licenses/base64-0.23.1/LICENSE-APACHE +201 -0
  347. package/native/darwin-arm64/licenses/base64-0.23.1/LICENSE-MIT +21 -0
  348. package/native/darwin-arm64/licenses/bitflags-2.13.2/LICENSE-APACHE +201 -0
  349. package/native/darwin-arm64/licenses/bitflags-2.13.2/LICENSE-MIT +25 -0
  350. package/native/darwin-arm64/licenses/block-buffer-0.12.1/LICENSE-APACHE +201 -0
  351. package/native/darwin-arm64/licenses/block-buffer-0.12.1/LICENSE-MIT +25 -0
  352. package/native/darwin-arm64/licenses/bumpalo-3.20.3/LICENSE-APACHE +201 -0
  353. package/native/darwin-arm64/licenses/bumpalo-3.20.3/LICENSE-MIT +25 -0
  354. package/native/darwin-arm64/licenses/bytecount-0.6.9/LICENSE.Apache2 +201 -0
  355. package/native/darwin-arm64/licenses/bytecount-0.6.9/LICENSE.MIT +19 -0
  356. package/native/darwin-arm64/licenses/bytes-1.12.1/LICENSE +25 -0
  357. package/native/darwin-arm64/licenses/bzip2-0.6.1/LICENSE-APACHE +201 -0
  358. package/native/darwin-arm64/licenses/bzip2-0.6.1/LICENSE-MIT +25 -0
  359. package/native/darwin-arm64/licenses/cc-1.11.0/LICENSE-APACHE +201 -0
  360. package/native/darwin-arm64/licenses/cc-1.11.0/LICENSE-MIT +25 -0
  361. package/native/darwin-arm64/licenses/cfg-if-1.0.5/LICENSE-APACHE +201 -0
  362. package/native/darwin-arm64/licenses/cfg-if-1.0.5/LICENSE-MIT +25 -0
  363. package/native/darwin-arm64/licenses/cfg_aliases-0.2.2/LICENSE +9 -0
  364. package/native/darwin-arm64/licenses/chacha20-0.10.2/LICENSE-APACHE +201 -0
  365. package/native/darwin-arm64/licenses/chacha20-0.10.2/LICENSE-MIT +25 -0
  366. package/native/darwin-arm64/licenses/chrono-0.4.45/LICENSE.txt +240 -0
  367. package/native/darwin-arm64/licenses/cipher-0.5.2/LICENSE-APACHE +201 -0
  368. package/native/darwin-arm64/licenses/cipher-0.5.2/LICENSE-MIT +25 -0
  369. package/native/darwin-arm64/licenses/cmake-0.1.58/LICENSE-APACHE +201 -0
  370. package/native/darwin-arm64/licenses/cmake-0.1.58/LICENSE-MIT +25 -0
  371. package/native/darwin-arm64/licenses/cmov-0.5.4/LICENSE-APACHE +202 -0
  372. package/native/darwin-arm64/licenses/cmov-0.5.4/LICENSE-MIT +25 -0
  373. package/native/darwin-arm64/licenses/const-oid-0.10.2/LICENSE-APACHE +201 -0
  374. package/native/darwin-arm64/licenses/const-oid-0.10.2/LICENSE-MIT +25 -0
  375. package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-APACHE +176 -0
  376. package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-CC0 +121 -0
  377. package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-MIT0 +14 -0
  378. package/native/darwin-arm64/licenses/core-foundation-0.10.1/LICENSE-APACHE +201 -0
  379. package/native/darwin-arm64/licenses/core-foundation-0.10.1/LICENSE-MIT +25 -0
  380. package/native/darwin-arm64/licenses/core-foundation-sys-0.8.7/LICENSE-APACHE +201 -0
  381. package/native/darwin-arm64/licenses/core-foundation-sys-0.8.7/LICENSE-MIT +25 -0
  382. package/native/darwin-arm64/licenses/cpubits-0.1.1/LICENSE-APACHE +201 -0
  383. package/native/darwin-arm64/licenses/cpubits-0.1.1/LICENSE-MIT +25 -0
  384. package/native/darwin-arm64/licenses/cpufeatures-0.3.1/LICENSE-APACHE +201 -0
  385. package/native/darwin-arm64/licenses/cpufeatures-0.3.1/LICENSE-MIT +25 -0
  386. package/native/darwin-arm64/licenses/crc32fast-1.5.4/LICENSE-APACHE +202 -0
  387. package/native/darwin-arm64/licenses/crc32fast-1.5.4/LICENSE-MIT +21 -0
  388. package/native/darwin-arm64/licenses/crypto-common-0.2.2/LICENSE-APACHE +201 -0
  389. package/native/darwin-arm64/licenses/crypto-common-0.2.2/LICENSE-MIT +25 -0
  390. package/native/darwin-arm64/licenses/ctutils-0.4.8/LICENSE-APACHE +202 -0
  391. package/native/darwin-arm64/licenses/ctutils-0.4.8/LICENSE-MIT +25 -0
  392. package/native/darwin-arm64/licenses/dary_heap-0.3.9/LICENSE-APACHE +176 -0
  393. package/native/darwin-arm64/licenses/dary_heap-0.3.9/LICENSE-MIT +23 -0
  394. package/native/darwin-arm64/licenses/deflate64-0.1.12/LICENSE +24 -0
  395. package/native/darwin-arm64/licenses/deranged-0.5.9/LICENSE-Apache +202 -0
  396. package/native/darwin-arm64/licenses/deranged-0.5.9/LICENSE-MIT +19 -0
  397. package/native/darwin-arm64/licenses/digest-0.11.3/LICENSE-APACHE +201 -0
  398. package/native/darwin-arm64/licenses/digest-0.11.3/LICENSE-MIT +26 -0
  399. package/native/darwin-arm64/licenses/displaydoc-0.2.7/LICENSE-APACHE +201 -0
  400. package/native/darwin-arm64/licenses/displaydoc-0.2.7/LICENSE-MIT +23 -0
  401. package/native/darwin-arm64/licenses/dunce-1.0.5/LICENSE +121 -0
  402. package/native/darwin-arm64/licenses/equivalent-1.0.3/LICENSE-APACHE +201 -0
  403. package/native/darwin-arm64/licenses/equivalent-1.0.3/LICENSE-MIT +25 -0
  404. package/native/darwin-arm64/licenses/errno-0.3.14/LICENSE-APACHE +201 -0
  405. package/native/darwin-arm64/licenses/errno-0.3.14/LICENSE-MIT +25 -0
  406. package/native/darwin-arm64/licenses/fallible-iterator-0.3.0/LICENSE-APACHE +202 -0
  407. package/native/darwin-arm64/licenses/fallible-iterator-0.3.0/LICENSE-MIT +19 -0
  408. package/native/darwin-arm64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-APACHE +202 -0
  409. package/native/darwin-arm64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-MIT +19 -0
  410. package/native/darwin-arm64/licenses/fastrand-2.5.0/LICENSE-APACHE +201 -0
  411. package/native/darwin-arm64/licenses/fastrand-2.5.0/LICENSE-MIT +23 -0
  412. package/native/darwin-arm64/licenses/find-msvc-tools-0.1.15/LICENSE-APACHE +201 -0
  413. package/native/darwin-arm64/licenses/find-msvc-tools-0.1.15/LICENSE-MIT +25 -0
  414. package/native/darwin-arm64/licenses/flate2-1.1.10/LICENSE-APACHE +201 -0
  415. package/native/darwin-arm64/licenses/flate2-1.1.10/LICENSE-MIT +25 -0
  416. package/native/darwin-arm64/licenses/foldhash-0.2.0/LICENSE +19 -0
  417. package/native/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  418. package/native/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  419. package/native/darwin-arm64/licenses/fs_extra-1.3.0/LICENSE +21 -0
  420. package/native/darwin-arm64/licenses/futures-channel-0.3.34/LICENSE-APACHE +202 -0
  421. package/native/darwin-arm64/licenses/futures-channel-0.3.34/LICENSE-MIT +26 -0
  422. package/native/darwin-arm64/licenses/futures-core-0.3.34/LICENSE-APACHE +202 -0
  423. package/native/darwin-arm64/licenses/futures-core-0.3.34/LICENSE-MIT +26 -0
  424. package/native/darwin-arm64/licenses/futures-task-0.3.34/LICENSE-APACHE +202 -0
  425. package/native/darwin-arm64/licenses/futures-task-0.3.34/LICENSE-MIT +26 -0
  426. package/native/darwin-arm64/licenses/futures-util-0.3.34/LICENSE-APACHE +202 -0
  427. package/native/darwin-arm64/licenses/futures-util-0.3.34/LICENSE-MIT +26 -0
  428. package/native/darwin-arm64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  429. package/native/darwin-arm64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  430. package/native/darwin-arm64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  431. package/native/darwin-arm64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  432. package/native/darwin-arm64/licenses/hashbrown-0.16.1/LICENSE-APACHE +201 -0
  433. package/native/darwin-arm64/licenses/hashbrown-0.16.1/LICENSE-MIT +25 -0
  434. package/native/darwin-arm64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  435. package/native/darwin-arm64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  436. package/native/darwin-arm64/licenses/hashlink-0.12.2/LICENSE-APACHE +201 -0
  437. package/native/darwin-arm64/licenses/hashlink-0.12.2/LICENSE-MIT +26 -0
  438. package/native/darwin-arm64/licenses/hmac-0.13.0/LICENSE-APACHE +201 -0
  439. package/native/darwin-arm64/licenses/hmac-0.13.0/LICENSE-MIT +25 -0
  440. package/native/darwin-arm64/licenses/http-1.5.0/LICENSE-APACHE +201 -0
  441. package/native/darwin-arm64/licenses/http-1.5.0/LICENSE-MIT +25 -0
  442. package/native/darwin-arm64/licenses/http-body-1.1.0/LICENSE +25 -0
  443. package/native/darwin-arm64/licenses/http-body-util-0.1.5/LICENSE +25 -0
  444. package/native/darwin-arm64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  445. package/native/darwin-arm64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  446. package/native/darwin-arm64/licenses/hybrid-array-0.4.15/LICENSE-APACHE +201 -0
  447. package/native/darwin-arm64/licenses/hybrid-array-0.4.15/LICENSE-MIT +25 -0
  448. package/native/darwin-arm64/licenses/hyper-1.12.0/LICENSE +19 -0
  449. package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-APACHE +201 -0
  450. package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-ISC +15 -0
  451. package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-MIT +25 -0
  452. package/native/darwin-arm64/licenses/hyper-util-0.1.21/LICENSE +19 -0
  453. package/native/darwin-arm64/licenses/iana-time-zone-0.1.65/LICENSE-APACHE +201 -0
  454. package/native/darwin-arm64/licenses/iana-time-zone-0.1.65/LICENSE-MIT +25 -0
  455. package/native/darwin-arm64/licenses/icu_collections-2.4.0/LICENSE +46 -0
  456. package/native/darwin-arm64/licenses/icu_locale_core-2.4.0/LICENSE +46 -0
  457. package/native/darwin-arm64/licenses/icu_normalizer-2.4.0/LICENSE +46 -0
  458. package/native/darwin-arm64/licenses/icu_normalizer_data-2.4.0/LICENSE +46 -0
  459. package/native/darwin-arm64/licenses/icu_properties-2.4.0/LICENSE +46 -0
  460. package/native/darwin-arm64/licenses/icu_properties_data-2.4.0/LICENSE +46 -0
  461. package/native/darwin-arm64/licenses/icu_provider-2.4.0/LICENSE +46 -0
  462. package/native/darwin-arm64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  463. package/native/darwin-arm64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  464. package/native/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  465. package/native/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  466. package/native/darwin-arm64/licenses/include-flate-0.3.5/LICENSE +202 -0
  467. package/native/darwin-arm64/licenses/include-flate-codegen-0.3.5/LICENSE +202 -0
  468. package/native/darwin-arm64/licenses/include-flate-compress-0.3.5/LICENSE +202 -0
  469. package/native/darwin-arm64/licenses/indexmap-2.14.2/LICENSE-APACHE +201 -0
  470. package/native/darwin-arm64/licenses/indexmap-2.14.2/LICENSE-MIT +25 -0
  471. package/native/darwin-arm64/licenses/inout-0.2.5/LICENSE-APACHE +201 -0
  472. package/native/darwin-arm64/licenses/inout-0.2.5/LICENSE-MIT +26 -0
  473. package/native/darwin-arm64/licenses/ipnet-2.12.2/LICENSE-APACHE +201 -0
  474. package/native/darwin-arm64/licenses/ipnet-2.12.2/LICENSE-MIT +7 -0
  475. package/native/darwin-arm64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  476. package/native/darwin-arm64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  477. package/native/darwin-arm64/licenses/jieba-macros-0.11.0/LICENSE +22 -0
  478. package/native/darwin-arm64/licenses/jieba-rs-0.11.0/LICENSE +22 -0
  479. package/native/darwin-arm64/licenses/jobserver-0.1.35/LICENSE-APACHE +201 -0
  480. package/native/darwin-arm64/licenses/jobserver-0.1.35/LICENSE-MIT +25 -0
  481. package/native/darwin-arm64/licenses/libbz2-rs-sys-0.2.6/LICENSE +48 -0
  482. package/native/darwin-arm64/licenses/libc-0.2.191/LICENSE-APACHE +176 -0
  483. package/native/darwin-arm64/licenses/libc-0.2.191/LICENSE-MIT +25 -0
  484. package/native/darwin-arm64/licenses/libflate-2.3.2/LICENSE +21 -0
  485. package/native/darwin-arm64/licenses/libflate_lz77-2.3.0/LICENSE +21 -0
  486. package/native/darwin-arm64/licenses/libsqlite3-sys-0.39.1/LICENSE +19 -0
  487. package/native/darwin-arm64/licenses/litemap-0.8.3/LICENSE +46 -0
  488. package/native/darwin-arm64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  489. package/native/darwin-arm64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  490. package/native/darwin-arm64/licenses/log-0.4.35/LICENSE-APACHE +201 -0
  491. package/native/darwin-arm64/licenses/log-0.4.35/LICENSE-MIT +25 -0
  492. package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-APACHE +202 -0
  493. package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-MIT +7 -0
  494. package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-ZLIB +19 -0
  495. package/native/darwin-arm64/licenses/lzma-rust2-0.24.0/LICENSE +201 -0
  496. package/native/darwin-arm64/licenses/memchr-2.8.3/COPYING +3 -0
  497. package/native/darwin-arm64/licenses/memchr-2.8.3/LICENSE-MIT +21 -0
  498. package/native/darwin-arm64/licenses/mio-1.2.4/LICENSE +19 -0
  499. package/native/darwin-arm64/licenses/nix-0.31.3/LICENSE +21 -0
  500. package/native/darwin-arm64/licenses/no_std_io2-0.9.4/LICENSE-APACHE +202 -0
  501. package/native/darwin-arm64/licenses/no_std_io2-0.9.4/LICENSE-MIT +19 -0
  502. package/native/darwin-arm64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  503. package/native/darwin-arm64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  504. package/native/darwin-arm64/licenses/num-traits-0.2.19/LICENSE-APACHE +201 -0
  505. package/native/darwin-arm64/licenses/num-traits-0.2.19/LICENSE-MIT +25 -0
  506. package/native/darwin-arm64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  507. package/native/darwin-arm64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  508. package/native/darwin-arm64/licenses/opencode-ai-models-0.0.124/LICENSE +21 -0
  509. package/native/darwin-arm64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  510. package/native/darwin-arm64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  511. package/native/darwin-arm64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  512. package/native/darwin-arm64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  513. package/native/darwin-arm64/licenses/pbkdf2-0.13.0/LICENSE-APACHE +201 -0
  514. package/native/darwin-arm64/licenses/pbkdf2-0.13.0/LICENSE-MIT +26 -0
  515. package/native/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  516. package/native/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  517. package/native/darwin-arm64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  518. package/native/darwin-arm64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  519. package/native/darwin-arm64/licenses/pkg-config-0.3.34/LICENSE-APACHE +201 -0
  520. package/native/darwin-arm64/licenses/pkg-config-0.3.34/LICENSE-MIT +25 -0
  521. package/native/darwin-arm64/licenses/potential_utf-0.1.6/LICENSE +46 -0
  522. package/native/darwin-arm64/licenses/powerfmt-0.2.1/LICENSE-Apache +202 -0
  523. package/native/darwin-arm64/licenses/powerfmt-0.2.1/LICENSE-MIT +19 -0
  524. package/native/darwin-arm64/licenses/ppmd-rust-1.5.2/LICENSE-CC0.md +119 -0
  525. package/native/darwin-arm64/licenses/ppmd-rust-1.5.2/LICENSE-MIT-0.md +16 -0
  526. package/native/darwin-arm64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-APACHE +201 -0
  527. package/native/darwin-arm64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-MIT +21 -0
  528. package/native/darwin-arm64/licenses/proc-macro-error3-3.1.1/LICENSE-APACHE +202 -0
  529. package/native/darwin-arm64/licenses/proc-macro-error3-3.1.1/LICENSE-MIT +22 -0
  530. package/native/darwin-arm64/licenses/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
  531. package/native/darwin-arm64/licenses/proc-macro2-1.0.107/LICENSE-MIT +23 -0
  532. package/native/darwin-arm64/licenses/quinn-0.11.12/LICENSE-APACHE +201 -0
  533. package/native/darwin-arm64/licenses/quinn-0.11.12/LICENSE-MIT +7 -0
  534. package/native/darwin-arm64/licenses/quinn-proto-0.11.19/LICENSE-APACHE +201 -0
  535. package/native/darwin-arm64/licenses/quinn-proto-0.11.19/LICENSE-MIT +7 -0
  536. package/native/darwin-arm64/licenses/quinn-udp-0.5.16/LICENSE-APACHE +201 -0
  537. package/native/darwin-arm64/licenses/quinn-udp-0.5.16/LICENSE-MIT +7 -0
  538. package/native/darwin-arm64/licenses/quote-1.0.47/LICENSE-APACHE +176 -0
  539. package/native/darwin-arm64/licenses/quote-1.0.47/LICENSE-MIT +23 -0
  540. package/native/darwin-arm64/licenses/rand-0.10.3/LICENSE-APACHE +176 -0
  541. package/native/darwin-arm64/licenses/rand-0.10.3/LICENSE-MIT +26 -0
  542. package/native/darwin-arm64/licenses/rand_core-0.10.1/LICENSE-APACHE +187 -0
  543. package/native/darwin-arm64/licenses/rand_core-0.10.1/LICENSE-MIT +25 -0
  544. package/native/darwin-arm64/licenses/rand_pcg-0.10.2/LICENSE-APACHE +187 -0
  545. package/native/darwin-arm64/licenses/rand_pcg-0.10.2/LICENSE-MIT +26 -0
  546. package/native/darwin-arm64/licenses/regex-lite-0.1.9/LICENSE-APACHE +201 -0
  547. package/native/darwin-arm64/licenses/regex-lite-0.1.9/LICENSE-MIT +25 -0
  548. package/native/darwin-arm64/licenses/reqwest-0.13.5/LICENSE-APACHE +201 -0
  549. package/native/darwin-arm64/licenses/reqwest-0.13.5/LICENSE-MIT +20 -0
  550. package/native/darwin-arm64/licenses/rev_lines-0.3.0/LICENSE-MIT +21 -0
  551. package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE +9 -0
  552. package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  553. package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  554. package/native/darwin-arm64/licenses/rle-decode-fast-1.0.3/LICENSE-APACHE +13 -0
  555. package/native/darwin-arm64/licenses/rle-decode-fast-1.0.3/LICENSE-MIT +19 -0
  556. package/native/darwin-arm64/licenses/rusqlite-0.41.1/LICENSE +19 -0
  557. package/native/darwin-arm64/licenses/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
  558. package/native/darwin-arm64/licenses/rustc-hash-2.1.3/LICENSE-MIT +23 -0
  559. package/native/darwin-arm64/licenses/rustc_version-0.4.1/LICENSE-APACHE +201 -0
  560. package/native/darwin-arm64/licenses/rustc_version-0.4.1/LICENSE-MIT +25 -0
  561. package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-APACHE +201 -0
  562. package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  563. package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-MIT +23 -0
  564. package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-APACHE +201 -0
  565. package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-ISC +15 -0
  566. package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-MIT +25 -0
  567. package/native/darwin-arm64/licenses/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
  568. package/native/darwin-arm64/licenses/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
  569. package/native/darwin-arm64/licenses/rustls-platform-verifier-0.7.1/LICENSE-APACHE +201 -0
  570. package/native/darwin-arm64/licenses/rustls-platform-verifier-0.7.1/LICENSE-MIT +21 -0
  571. package/native/darwin-arm64/licenses/rustls-webpki-0.103.16/LICENSE +19 -0
  572. package/native/darwin-arm64/licenses/rustversion-1.0.23/LICENSE-APACHE +176 -0
  573. package/native/darwin-arm64/licenses/rustversion-1.0.23/LICENSE-MIT +23 -0
  574. package/native/darwin-arm64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  575. package/native/darwin-arm64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  576. package/native/darwin-arm64/licenses/security-framework-3.7.0/LICENSE-APACHE +201 -0
  577. package/native/darwin-arm64/licenses/security-framework-3.7.0/LICENSE-MIT +20 -0
  578. package/native/darwin-arm64/licenses/security-framework-sys-2.17.0/LICENSE-APACHE +201 -0
  579. package/native/darwin-arm64/licenses/security-framework-sys-2.17.0/LICENSE-MIT +20 -0
  580. package/native/darwin-arm64/licenses/semver-1.0.28/LICENSE-APACHE +176 -0
  581. package/native/darwin-arm64/licenses/semver-1.0.28/LICENSE-MIT +23 -0
  582. package/native/darwin-arm64/licenses/serde-1.0.229/LICENSE-APACHE +176 -0
  583. package/native/darwin-arm64/licenses/serde-1.0.229/LICENSE-MIT +23 -0
  584. package/native/darwin-arm64/licenses/serde_core-1.0.229/LICENSE-APACHE +176 -0
  585. package/native/darwin-arm64/licenses/serde_core-1.0.229/LICENSE-MIT +23 -0
  586. package/native/darwin-arm64/licenses/serde_derive-1.0.229/LICENSE-APACHE +176 -0
  587. package/native/darwin-arm64/licenses/serde_derive-1.0.229/LICENSE-MIT +23 -0
  588. package/native/darwin-arm64/licenses/serde_json-1.0.154/LICENSE-APACHE +176 -0
  589. package/native/darwin-arm64/licenses/serde_json-1.0.154/LICENSE-MIT +23 -0
  590. package/native/darwin-arm64/licenses/sha1-0.11.0/LICENSE-APACHE +201 -0
  591. package/native/darwin-arm64/licenses/sha1-0.11.0/LICENSE-MIT +28 -0
  592. package/native/darwin-arm64/licenses/sha2-0.11.1/LICENSE-APACHE +201 -0
  593. package/native/darwin-arm64/licenses/sha2-0.11.1/LICENSE-MIT +28 -0
  594. package/native/darwin-arm64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  595. package/native/darwin-arm64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  596. package/native/darwin-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
  597. package/native/darwin-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
  598. package/native/darwin-arm64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  599. package/native/darwin-arm64/licenses/slab-0.4.12/LICENSE +25 -0
  600. package/native/darwin-arm64/licenses/smallvec-1.16.4/LICENSE-APACHE +201 -0
  601. package/native/darwin-arm64/licenses/smallvec-1.16.4/LICENSE-MIT +25 -0
  602. package/native/darwin-arm64/licenses/socket2-0.6.5/LICENSE-APACHE +201 -0
  603. package/native/darwin-arm64/licenses/socket2-0.6.5/LICENSE-MIT +25 -0
  604. package/native/darwin-arm64/licenses/specta-2.0.0-rc.27/LICENSE +21 -0
  605. package/native/darwin-arm64/licenses/specta-macros-2.0.0-rc.27/LICENSE +21 -0
  606. package/native/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  607. package/native/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  608. package/native/darwin-arm64/licenses/stop-words-0.10.1/LICENSE-APACHE +201 -0
  609. package/native/darwin-arm64/licenses/stop-words-0.10.1/LICENSE.md +21 -0
  610. package/native/darwin-arm64/licenses/subtle-2.6.1/LICENSE +29 -0
  611. package/native/darwin-arm64/licenses/syn-2.0.119/LICENSE-APACHE +176 -0
  612. package/native/darwin-arm64/licenses/syn-2.0.119/LICENSE-MIT +23 -0
  613. package/native/darwin-arm64/licenses/syn-3.0.9/LICENSE-APACHE +176 -0
  614. package/native/darwin-arm64/licenses/syn-3.0.9/LICENSE-MIT +23 -0
  615. package/native/darwin-arm64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  616. package/native/darwin-arm64/licenses/synstructure-0.14.0/LICENSE +7 -0
  617. package/native/darwin-arm64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  618. package/native/darwin-arm64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  619. package/native/darwin-arm64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  620. package/native/darwin-arm64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  621. package/native/darwin-arm64/licenses/thiserror-2.0.21/LICENSE-APACHE +176 -0
  622. package/native/darwin-arm64/licenses/thiserror-2.0.21/LICENSE-MIT +23 -0
  623. package/native/darwin-arm64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  624. package/native/darwin-arm64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  625. package/native/darwin-arm64/licenses/thiserror-impl-2.0.21/LICENSE-APACHE +176 -0
  626. package/native/darwin-arm64/licenses/thiserror-impl-2.0.21/LICENSE-MIT +23 -0
  627. package/native/darwin-arm64/licenses/time-0.3.55/LICENSE-Apache +177 -0
  628. package/native/darwin-arm64/licenses/time-0.3.55/LICENSE-MIT +19 -0
  629. package/native/darwin-arm64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  630. package/native/darwin-arm64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  631. package/native/darwin-arm64/licenses/tinystr-0.8.5/LICENSE +46 -0
  632. package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-APACHE.md +202 -0
  633. package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-MIT.md +5 -0
  634. package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-ZLIB.md +11 -0
  635. package/native/darwin-arm64/licenses/tokio-1.54.1/LICENSE +21 -0
  636. package/native/darwin-arm64/licenses/tokio-macros-2.7.2/LICENSE +22 -0
  637. package/native/darwin-arm64/licenses/tokio-rustls-0.26.6/LICENSE-APACHE +201 -0
  638. package/native/darwin-arm64/licenses/tokio-rustls-0.26.6/LICENSE-MIT +25 -0
  639. package/native/darwin-arm64/licenses/tower-0.5.3/LICENSE +25 -0
  640. package/native/darwin-arm64/licenses/tower-http-0.6.11/LICENSE +25 -0
  641. package/native/darwin-arm64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  642. package/native/darwin-arm64/licenses/tower-service-0.3.3/LICENSE +25 -0
  643. package/native/darwin-arm64/licenses/tracing-0.1.44/LICENSE +25 -0
  644. package/native/darwin-arm64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  645. package/native/darwin-arm64/licenses/try-lock-0.2.5/LICENSE +21 -0
  646. package/native/darwin-arm64/licenses/typed-path-0.13.0/LICENSE-APACHE +176 -0
  647. package/native/darwin-arm64/licenses/typed-path-0.13.0/LICENSE-MIT +23 -0
  648. package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE +1 -0
  649. package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  650. package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  651. package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-APACHE +176 -0
  652. package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-MIT +23 -0
  653. package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-UNICODE +39 -0
  654. package/native/darwin-arm64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  655. package/native/darwin-arm64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  656. package/native/darwin-arm64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  657. package/native/darwin-arm64/licenses/utf8_iter-1.1.0/LICENSE-APACHE +202 -0
  658. package/native/darwin-arm64/licenses/utf8_iter-1.1.0/LICENSE-MIT +25 -0
  659. package/native/darwin-arm64/licenses/utf_types-1.0.0/LICENSE-APACHE +202 -0
  660. package/native/darwin-arm64/licenses/utf_types-1.0.0/LICENSE-MIT +25 -0
  661. package/native/darwin-arm64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  662. package/native/darwin-arm64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  663. package/native/darwin-arm64/licenses/want-0.3.2/LICENSE +20 -0
  664. package/native/darwin-arm64/licenses/writeable-0.6.4/LICENSE +46 -0
  665. package/native/darwin-arm64/licenses/yoke-0.8.4/LICENSE +46 -0
  666. package/native/darwin-arm64/licenses/yoke-derive-0.8.4/LICENSE +46 -0
  667. package/native/darwin-arm64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  668. package/native/darwin-arm64/licenses/zerofrom-derive-0.1.8/LICENSE +46 -0
  669. package/native/darwin-arm64/licenses/zeroize-1.9.1/LICENSE-APACHE +202 -0
  670. package/native/darwin-arm64/licenses/zeroize-1.9.1/LICENSE-MIT +25 -0
  671. package/native/darwin-arm64/licenses/zerotrie-0.2.5/LICENSE +46 -0
  672. package/native/darwin-arm64/licenses/zerovec-0.11.9/LICENSE +46 -0
  673. package/native/darwin-arm64/licenses/zerovec-derive-0.11.7/LICENSE +46 -0
  674. package/native/darwin-arm64/licenses/zip-9.3.0/LICENSE +21 -0
  675. package/native/darwin-arm64/licenses/zlib-rs-0.6.8/LICENSE +19 -0
  676. package/native/darwin-arm64/licenses/zmij-1.0.23/LICENSE-MIT +23 -0
  677. package/native/darwin-arm64/licenses/zopfli-0.8.4/COPYING +201 -0
  678. package/native/darwin-arm64/licenses/zstd-0.14.3/LICENSE +28 -0
  679. package/native/darwin-arm64/licenses/zstd-safe-8.2.0/LICENSE +28 -0
  680. package/native/darwin-arm64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE +28 -0
  681. package/native/darwin-arm64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE.BSD-3-Clause +32 -0
  682. package/native/win32-x64/THIRD_PARTY_NOTICES.md +203 -0
  683. package/native/win32-x64/alwith_native_chat.dll +0 -0
  684. package/native/win32-x64/artifact.json +8 -0
  685. package/native/win32-x64/licenses/Inflector-0.11.4/LICENSE.md +22 -0
  686. package/native/win32-x64/licenses/adler32-1.2.0/LICENSE +43 -0
  687. package/native/win32-x64/licenses/aes-0.9.4/LICENSE-APACHE +201 -0
  688. package/native/win32-x64/licenses/aes-0.9.4/LICENSE-MIT +26 -0
  689. package/native/win32-x64/licenses/allocator-api2-0.2.21/LICENSE-APACHE +176 -0
  690. package/native/win32-x64/licenses/allocator-api2-0.2.21/LICENSE-MIT +23 -0
  691. package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  692. package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  693. package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  694. package/native/win32-x64/licenses/autocfg-1.5.1/LICENSE-APACHE +201 -0
  695. package/native/win32-x64/licenses/autocfg-1.5.1/LICENSE-MIT +25 -0
  696. package/native/win32-x64/licenses/aws-lc-rs-1.19.0/LICENSE +202 -0
  697. package/native/win32-x64/licenses/aws-lc-sys-0.47.0/LICENSE +316 -0
  698. package/native/win32-x64/licenses/base64-0.23.1/LICENSE-APACHE +201 -0
  699. package/native/win32-x64/licenses/base64-0.23.1/LICENSE-MIT +21 -0
  700. package/native/win32-x64/licenses/bitflags-2.13.2/LICENSE-APACHE +201 -0
  701. package/native/win32-x64/licenses/bitflags-2.13.2/LICENSE-MIT +25 -0
  702. package/native/win32-x64/licenses/block-buffer-0.12.1/LICENSE-APACHE +201 -0
  703. package/native/win32-x64/licenses/block-buffer-0.12.1/LICENSE-MIT +25 -0
  704. package/native/win32-x64/licenses/bumpalo-3.20.3/LICENSE-APACHE +201 -0
  705. package/native/win32-x64/licenses/bumpalo-3.20.3/LICENSE-MIT +25 -0
  706. package/native/win32-x64/licenses/bytecount-0.6.9/LICENSE.Apache2 +201 -0
  707. package/native/win32-x64/licenses/bytecount-0.6.9/LICENSE.MIT +19 -0
  708. package/native/win32-x64/licenses/bytes-1.12.1/LICENSE +25 -0
  709. package/native/win32-x64/licenses/bzip2-0.6.1/LICENSE-APACHE +201 -0
  710. package/native/win32-x64/licenses/bzip2-0.6.1/LICENSE-MIT +25 -0
  711. package/native/win32-x64/licenses/cc-1.11.0/LICENSE-APACHE +201 -0
  712. package/native/win32-x64/licenses/cc-1.11.0/LICENSE-MIT +25 -0
  713. package/native/win32-x64/licenses/cfg-if-1.0.5/LICENSE-APACHE +201 -0
  714. package/native/win32-x64/licenses/cfg-if-1.0.5/LICENSE-MIT +25 -0
  715. package/native/win32-x64/licenses/cfg_aliases-0.2.2/LICENSE +9 -0
  716. package/native/win32-x64/licenses/chacha20-0.10.2/LICENSE-APACHE +201 -0
  717. package/native/win32-x64/licenses/chacha20-0.10.2/LICENSE-MIT +25 -0
  718. package/native/win32-x64/licenses/chrono-0.4.45/LICENSE.txt +240 -0
  719. package/native/win32-x64/licenses/cipher-0.5.2/LICENSE-APACHE +201 -0
  720. package/native/win32-x64/licenses/cipher-0.5.2/LICENSE-MIT +25 -0
  721. package/native/win32-x64/licenses/cmake-0.1.58/LICENSE-APACHE +201 -0
  722. package/native/win32-x64/licenses/cmake-0.1.58/LICENSE-MIT +25 -0
  723. package/native/win32-x64/licenses/cmov-0.5.4/LICENSE-APACHE +202 -0
  724. package/native/win32-x64/licenses/cmov-0.5.4/LICENSE-MIT +25 -0
  725. package/native/win32-x64/licenses/const-oid-0.10.2/LICENSE-APACHE +201 -0
  726. package/native/win32-x64/licenses/const-oid-0.10.2/LICENSE-MIT +25 -0
  727. package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-APACHE +176 -0
  728. package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-CC0 +121 -0
  729. package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-MIT0 +14 -0
  730. package/native/win32-x64/licenses/cpubits-0.1.1/LICENSE-APACHE +201 -0
  731. package/native/win32-x64/licenses/cpubits-0.1.1/LICENSE-MIT +25 -0
  732. package/native/win32-x64/licenses/cpufeatures-0.3.1/LICENSE-APACHE +201 -0
  733. package/native/win32-x64/licenses/cpufeatures-0.3.1/LICENSE-MIT +25 -0
  734. package/native/win32-x64/licenses/crc32fast-1.5.4/LICENSE-APACHE +202 -0
  735. package/native/win32-x64/licenses/crc32fast-1.5.4/LICENSE-MIT +21 -0
  736. package/native/win32-x64/licenses/crypto-common-0.2.2/LICENSE-APACHE +201 -0
  737. package/native/win32-x64/licenses/crypto-common-0.2.2/LICENSE-MIT +25 -0
  738. package/native/win32-x64/licenses/ctutils-0.4.8/LICENSE-APACHE +202 -0
  739. package/native/win32-x64/licenses/ctutils-0.4.8/LICENSE-MIT +25 -0
  740. package/native/win32-x64/licenses/dary_heap-0.3.9/LICENSE-APACHE +176 -0
  741. package/native/win32-x64/licenses/dary_heap-0.3.9/LICENSE-MIT +23 -0
  742. package/native/win32-x64/licenses/deflate64-0.1.12/LICENSE +24 -0
  743. package/native/win32-x64/licenses/deranged-0.5.9/LICENSE-Apache +202 -0
  744. package/native/win32-x64/licenses/deranged-0.5.9/LICENSE-MIT +19 -0
  745. package/native/win32-x64/licenses/digest-0.11.3/LICENSE-APACHE +201 -0
  746. package/native/win32-x64/licenses/digest-0.11.3/LICENSE-MIT +26 -0
  747. package/native/win32-x64/licenses/displaydoc-0.2.7/LICENSE-APACHE +201 -0
  748. package/native/win32-x64/licenses/displaydoc-0.2.7/LICENSE-MIT +23 -0
  749. package/native/win32-x64/licenses/dunce-1.0.5/LICENSE +121 -0
  750. package/native/win32-x64/licenses/equivalent-1.0.3/LICENSE-APACHE +201 -0
  751. package/native/win32-x64/licenses/equivalent-1.0.3/LICENSE-MIT +25 -0
  752. package/native/win32-x64/licenses/fallible-iterator-0.3.0/LICENSE-APACHE +202 -0
  753. package/native/win32-x64/licenses/fallible-iterator-0.3.0/LICENSE-MIT +19 -0
  754. package/native/win32-x64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-APACHE +202 -0
  755. package/native/win32-x64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-MIT +19 -0
  756. package/native/win32-x64/licenses/fastrand-2.5.0/LICENSE-APACHE +201 -0
  757. package/native/win32-x64/licenses/fastrand-2.5.0/LICENSE-MIT +23 -0
  758. package/native/win32-x64/licenses/find-msvc-tools-0.1.15/LICENSE-APACHE +201 -0
  759. package/native/win32-x64/licenses/find-msvc-tools-0.1.15/LICENSE-MIT +25 -0
  760. package/native/win32-x64/licenses/flate2-1.1.10/LICENSE-APACHE +201 -0
  761. package/native/win32-x64/licenses/flate2-1.1.10/LICENSE-MIT +25 -0
  762. package/native/win32-x64/licenses/foldhash-0.2.0/LICENSE +19 -0
  763. package/native/win32-x64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  764. package/native/win32-x64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  765. package/native/win32-x64/licenses/fs_extra-1.3.0/LICENSE +21 -0
  766. package/native/win32-x64/licenses/futures-channel-0.3.34/LICENSE-APACHE +202 -0
  767. package/native/win32-x64/licenses/futures-channel-0.3.34/LICENSE-MIT +26 -0
  768. package/native/win32-x64/licenses/futures-core-0.3.34/LICENSE-APACHE +202 -0
  769. package/native/win32-x64/licenses/futures-core-0.3.34/LICENSE-MIT +26 -0
  770. package/native/win32-x64/licenses/futures-task-0.3.34/LICENSE-APACHE +202 -0
  771. package/native/win32-x64/licenses/futures-task-0.3.34/LICENSE-MIT +26 -0
  772. package/native/win32-x64/licenses/futures-util-0.3.34/LICENSE-APACHE +202 -0
  773. package/native/win32-x64/licenses/futures-util-0.3.34/LICENSE-MIT +26 -0
  774. package/native/win32-x64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  775. package/native/win32-x64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  776. package/native/win32-x64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  777. package/native/win32-x64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  778. package/native/win32-x64/licenses/hashbrown-0.16.1/LICENSE-APACHE +201 -0
  779. package/native/win32-x64/licenses/hashbrown-0.16.1/LICENSE-MIT +25 -0
  780. package/native/win32-x64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  781. package/native/win32-x64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  782. package/native/win32-x64/licenses/hashlink-0.12.2/LICENSE-APACHE +201 -0
  783. package/native/win32-x64/licenses/hashlink-0.12.2/LICENSE-MIT +26 -0
  784. package/native/win32-x64/licenses/hmac-0.13.0/LICENSE-APACHE +201 -0
  785. package/native/win32-x64/licenses/hmac-0.13.0/LICENSE-MIT +25 -0
  786. package/native/win32-x64/licenses/http-1.5.0/LICENSE-APACHE +201 -0
  787. package/native/win32-x64/licenses/http-1.5.0/LICENSE-MIT +25 -0
  788. package/native/win32-x64/licenses/http-body-1.1.0/LICENSE +25 -0
  789. package/native/win32-x64/licenses/http-body-util-0.1.5/LICENSE +25 -0
  790. package/native/win32-x64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  791. package/native/win32-x64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  792. package/native/win32-x64/licenses/hybrid-array-0.4.15/LICENSE-APACHE +201 -0
  793. package/native/win32-x64/licenses/hybrid-array-0.4.15/LICENSE-MIT +25 -0
  794. package/native/win32-x64/licenses/hyper-1.12.0/LICENSE +19 -0
  795. package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-APACHE +201 -0
  796. package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-ISC +15 -0
  797. package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-MIT +25 -0
  798. package/native/win32-x64/licenses/hyper-util-0.1.21/LICENSE +19 -0
  799. package/native/win32-x64/licenses/icu_collections-2.4.0/LICENSE +46 -0
  800. package/native/win32-x64/licenses/icu_locale_core-2.4.0/LICENSE +46 -0
  801. package/native/win32-x64/licenses/icu_normalizer-2.4.0/LICENSE +46 -0
  802. package/native/win32-x64/licenses/icu_normalizer_data-2.4.0/LICENSE +46 -0
  803. package/native/win32-x64/licenses/icu_properties-2.4.0/LICENSE +46 -0
  804. package/native/win32-x64/licenses/icu_properties_data-2.4.0/LICENSE +46 -0
  805. package/native/win32-x64/licenses/icu_provider-2.4.0/LICENSE +46 -0
  806. package/native/win32-x64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  807. package/native/win32-x64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  808. package/native/win32-x64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  809. package/native/win32-x64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  810. package/native/win32-x64/licenses/include-flate-0.3.5/LICENSE +202 -0
  811. package/native/win32-x64/licenses/include-flate-codegen-0.3.5/LICENSE +202 -0
  812. package/native/win32-x64/licenses/include-flate-compress-0.3.5/LICENSE +202 -0
  813. package/native/win32-x64/licenses/indexmap-2.14.2/LICENSE-APACHE +201 -0
  814. package/native/win32-x64/licenses/indexmap-2.14.2/LICENSE-MIT +25 -0
  815. package/native/win32-x64/licenses/inout-0.2.5/LICENSE-APACHE +201 -0
  816. package/native/win32-x64/licenses/inout-0.2.5/LICENSE-MIT +26 -0
  817. package/native/win32-x64/licenses/ipnet-2.12.2/LICENSE-APACHE +201 -0
  818. package/native/win32-x64/licenses/ipnet-2.12.2/LICENSE-MIT +7 -0
  819. package/native/win32-x64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  820. package/native/win32-x64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  821. package/native/win32-x64/licenses/jieba-macros-0.11.0/LICENSE +22 -0
  822. package/native/win32-x64/licenses/jieba-rs-0.11.0/LICENSE +22 -0
  823. package/native/win32-x64/licenses/jobserver-0.1.35/LICENSE-APACHE +201 -0
  824. package/native/win32-x64/licenses/jobserver-0.1.35/LICENSE-MIT +25 -0
  825. package/native/win32-x64/licenses/libbz2-rs-sys-0.2.6/LICENSE +48 -0
  826. package/native/win32-x64/licenses/libc-0.2.191/LICENSE-APACHE +176 -0
  827. package/native/win32-x64/licenses/libc-0.2.191/LICENSE-MIT +25 -0
  828. package/native/win32-x64/licenses/libflate-2.3.2/LICENSE +21 -0
  829. package/native/win32-x64/licenses/libflate_lz77-2.3.0/LICENSE +21 -0
  830. package/native/win32-x64/licenses/libsqlite3-sys-0.39.1/LICENSE +19 -0
  831. package/native/win32-x64/licenses/litemap-0.8.3/LICENSE +46 -0
  832. package/native/win32-x64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  833. package/native/win32-x64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  834. package/native/win32-x64/licenses/log-0.4.35/LICENSE-APACHE +201 -0
  835. package/native/win32-x64/licenses/log-0.4.35/LICENSE-MIT +25 -0
  836. package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-APACHE +202 -0
  837. package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-MIT +7 -0
  838. package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-ZLIB +19 -0
  839. package/native/win32-x64/licenses/lzma-rust2-0.24.0/LICENSE +201 -0
  840. package/native/win32-x64/licenses/memchr-2.8.3/COPYING +3 -0
  841. package/native/win32-x64/licenses/memchr-2.8.3/LICENSE-MIT +21 -0
  842. package/native/win32-x64/licenses/mio-1.2.4/LICENSE +19 -0
  843. package/native/win32-x64/licenses/no_std_io2-0.9.4/LICENSE-APACHE +202 -0
  844. package/native/win32-x64/licenses/no_std_io2-0.9.4/LICENSE-MIT +19 -0
  845. package/native/win32-x64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  846. package/native/win32-x64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  847. package/native/win32-x64/licenses/num-traits-0.2.19/LICENSE-APACHE +201 -0
  848. package/native/win32-x64/licenses/num-traits-0.2.19/LICENSE-MIT +25 -0
  849. package/native/win32-x64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  850. package/native/win32-x64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  851. package/native/win32-x64/licenses/opencode-ai-models-0.0.124/LICENSE +21 -0
  852. package/native/win32-x64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  853. package/native/win32-x64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  854. package/native/win32-x64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  855. package/native/win32-x64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  856. package/native/win32-x64/licenses/pbkdf2-0.13.0/LICENSE-APACHE +201 -0
  857. package/native/win32-x64/licenses/pbkdf2-0.13.0/LICENSE-MIT +26 -0
  858. package/native/win32-x64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  859. package/native/win32-x64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  860. package/native/win32-x64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  861. package/native/win32-x64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  862. package/native/win32-x64/licenses/pkg-config-0.3.34/LICENSE-APACHE +201 -0
  863. package/native/win32-x64/licenses/pkg-config-0.3.34/LICENSE-MIT +25 -0
  864. package/native/win32-x64/licenses/potential_utf-0.1.6/LICENSE +46 -0
  865. package/native/win32-x64/licenses/powerfmt-0.2.1/LICENSE-Apache +202 -0
  866. package/native/win32-x64/licenses/powerfmt-0.2.1/LICENSE-MIT +19 -0
  867. package/native/win32-x64/licenses/ppmd-rust-1.5.2/LICENSE-CC0.md +119 -0
  868. package/native/win32-x64/licenses/ppmd-rust-1.5.2/LICENSE-MIT-0.md +16 -0
  869. package/native/win32-x64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-APACHE +201 -0
  870. package/native/win32-x64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-MIT +21 -0
  871. package/native/win32-x64/licenses/proc-macro-error3-3.1.1/LICENSE-APACHE +202 -0
  872. package/native/win32-x64/licenses/proc-macro-error3-3.1.1/LICENSE-MIT +22 -0
  873. package/native/win32-x64/licenses/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
  874. package/native/win32-x64/licenses/proc-macro2-1.0.107/LICENSE-MIT +23 -0
  875. package/native/win32-x64/licenses/quinn-0.11.12/LICENSE-APACHE +201 -0
  876. package/native/win32-x64/licenses/quinn-0.11.12/LICENSE-MIT +7 -0
  877. package/native/win32-x64/licenses/quinn-proto-0.11.19/LICENSE-APACHE +201 -0
  878. package/native/win32-x64/licenses/quinn-proto-0.11.19/LICENSE-MIT +7 -0
  879. package/native/win32-x64/licenses/quinn-udp-0.5.16/LICENSE-APACHE +201 -0
  880. package/native/win32-x64/licenses/quinn-udp-0.5.16/LICENSE-MIT +7 -0
  881. package/native/win32-x64/licenses/quote-1.0.47/LICENSE-APACHE +176 -0
  882. package/native/win32-x64/licenses/quote-1.0.47/LICENSE-MIT +23 -0
  883. package/native/win32-x64/licenses/rand-0.10.3/LICENSE-APACHE +176 -0
  884. package/native/win32-x64/licenses/rand-0.10.3/LICENSE-MIT +26 -0
  885. package/native/win32-x64/licenses/rand_core-0.10.1/LICENSE-APACHE +187 -0
  886. package/native/win32-x64/licenses/rand_core-0.10.1/LICENSE-MIT +25 -0
  887. package/native/win32-x64/licenses/rand_pcg-0.10.2/LICENSE-APACHE +187 -0
  888. package/native/win32-x64/licenses/rand_pcg-0.10.2/LICENSE-MIT +26 -0
  889. package/native/win32-x64/licenses/regex-lite-0.1.9/LICENSE-APACHE +201 -0
  890. package/native/win32-x64/licenses/regex-lite-0.1.9/LICENSE-MIT +25 -0
  891. package/native/win32-x64/licenses/reqwest-0.13.5/LICENSE-APACHE +201 -0
  892. package/native/win32-x64/licenses/reqwest-0.13.5/LICENSE-MIT +20 -0
  893. package/native/win32-x64/licenses/rev_lines-0.3.0/LICENSE-MIT +21 -0
  894. package/native/win32-x64/licenses/ring-0.17.14/LICENSE +9 -0
  895. package/native/win32-x64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  896. package/native/win32-x64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  897. package/native/win32-x64/licenses/rle-decode-fast-1.0.3/LICENSE-APACHE +13 -0
  898. package/native/win32-x64/licenses/rle-decode-fast-1.0.3/LICENSE-MIT +19 -0
  899. package/native/win32-x64/licenses/rusqlite-0.41.1/LICENSE +19 -0
  900. package/native/win32-x64/licenses/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
  901. package/native/win32-x64/licenses/rustc-hash-2.1.3/LICENSE-MIT +23 -0
  902. package/native/win32-x64/licenses/rustc_version-0.4.1/LICENSE-APACHE +201 -0
  903. package/native/win32-x64/licenses/rustc_version-0.4.1/LICENSE-MIT +25 -0
  904. package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-APACHE +201 -0
  905. package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-ISC +15 -0
  906. package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-MIT +25 -0
  907. package/native/win32-x64/licenses/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
  908. package/native/win32-x64/licenses/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
  909. package/native/win32-x64/licenses/rustls-platform-verifier-0.7.1/LICENSE-APACHE +201 -0
  910. package/native/win32-x64/licenses/rustls-platform-verifier-0.7.1/LICENSE-MIT +21 -0
  911. package/native/win32-x64/licenses/rustls-webpki-0.103.16/LICENSE +19 -0
  912. package/native/win32-x64/licenses/rustversion-1.0.23/LICENSE-APACHE +176 -0
  913. package/native/win32-x64/licenses/rustversion-1.0.23/LICENSE-MIT +23 -0
  914. package/native/win32-x64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  915. package/native/win32-x64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  916. package/native/win32-x64/licenses/semver-1.0.28/LICENSE-APACHE +176 -0
  917. package/native/win32-x64/licenses/semver-1.0.28/LICENSE-MIT +23 -0
  918. package/native/win32-x64/licenses/serde-1.0.229/LICENSE-APACHE +176 -0
  919. package/native/win32-x64/licenses/serde-1.0.229/LICENSE-MIT +23 -0
  920. package/native/win32-x64/licenses/serde_core-1.0.229/LICENSE-APACHE +176 -0
  921. package/native/win32-x64/licenses/serde_core-1.0.229/LICENSE-MIT +23 -0
  922. package/native/win32-x64/licenses/serde_derive-1.0.229/LICENSE-APACHE +176 -0
  923. package/native/win32-x64/licenses/serde_derive-1.0.229/LICENSE-MIT +23 -0
  924. package/native/win32-x64/licenses/serde_json-1.0.154/LICENSE-APACHE +176 -0
  925. package/native/win32-x64/licenses/serde_json-1.0.154/LICENSE-MIT +23 -0
  926. package/native/win32-x64/licenses/sha1-0.11.0/LICENSE-APACHE +201 -0
  927. package/native/win32-x64/licenses/sha1-0.11.0/LICENSE-MIT +28 -0
  928. package/native/win32-x64/licenses/sha2-0.11.1/LICENSE-APACHE +201 -0
  929. package/native/win32-x64/licenses/sha2-0.11.1/LICENSE-MIT +28 -0
  930. package/native/win32-x64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  931. package/native/win32-x64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  932. package/native/win32-x64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  933. package/native/win32-x64/licenses/slab-0.4.12/LICENSE +25 -0
  934. package/native/win32-x64/licenses/smallvec-1.16.4/LICENSE-APACHE +201 -0
  935. package/native/win32-x64/licenses/smallvec-1.16.4/LICENSE-MIT +25 -0
  936. package/native/win32-x64/licenses/socket2-0.6.5/LICENSE-APACHE +201 -0
  937. package/native/win32-x64/licenses/socket2-0.6.5/LICENSE-MIT +25 -0
  938. package/native/win32-x64/licenses/specta-2.0.0-rc.27/LICENSE +21 -0
  939. package/native/win32-x64/licenses/specta-macros-2.0.0-rc.27/LICENSE +21 -0
  940. package/native/win32-x64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  941. package/native/win32-x64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  942. package/native/win32-x64/licenses/stop-words-0.10.1/LICENSE-APACHE +201 -0
  943. package/native/win32-x64/licenses/stop-words-0.10.1/LICENSE.md +21 -0
  944. package/native/win32-x64/licenses/subtle-2.6.1/LICENSE +29 -0
  945. package/native/win32-x64/licenses/syn-2.0.119/LICENSE-APACHE +176 -0
  946. package/native/win32-x64/licenses/syn-2.0.119/LICENSE-MIT +23 -0
  947. package/native/win32-x64/licenses/syn-3.0.9/LICENSE-APACHE +176 -0
  948. package/native/win32-x64/licenses/syn-3.0.9/LICENSE-MIT +23 -0
  949. package/native/win32-x64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  950. package/native/win32-x64/licenses/synstructure-0.14.0/LICENSE +7 -0
  951. package/native/win32-x64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  952. package/native/win32-x64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  953. package/native/win32-x64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  954. package/native/win32-x64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  955. package/native/win32-x64/licenses/thiserror-2.0.21/LICENSE-APACHE +176 -0
  956. package/native/win32-x64/licenses/thiserror-2.0.21/LICENSE-MIT +23 -0
  957. package/native/win32-x64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  958. package/native/win32-x64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  959. package/native/win32-x64/licenses/thiserror-impl-2.0.21/LICENSE-APACHE +176 -0
  960. package/native/win32-x64/licenses/thiserror-impl-2.0.21/LICENSE-MIT +23 -0
  961. package/native/win32-x64/licenses/time-0.3.55/LICENSE-Apache +177 -0
  962. package/native/win32-x64/licenses/time-0.3.55/LICENSE-MIT +19 -0
  963. package/native/win32-x64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  964. package/native/win32-x64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  965. package/native/win32-x64/licenses/tinystr-0.8.5/LICENSE +46 -0
  966. package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-APACHE.md +202 -0
  967. package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-MIT.md +5 -0
  968. package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-ZLIB.md +11 -0
  969. package/native/win32-x64/licenses/tokio-1.54.1/LICENSE +21 -0
  970. package/native/win32-x64/licenses/tokio-macros-2.7.2/LICENSE +22 -0
  971. package/native/win32-x64/licenses/tokio-rustls-0.26.6/LICENSE-APACHE +201 -0
  972. package/native/win32-x64/licenses/tokio-rustls-0.26.6/LICENSE-MIT +25 -0
  973. package/native/win32-x64/licenses/tower-0.5.3/LICENSE +25 -0
  974. package/native/win32-x64/licenses/tower-http-0.6.11/LICENSE +25 -0
  975. package/native/win32-x64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  976. package/native/win32-x64/licenses/tower-service-0.3.3/LICENSE +25 -0
  977. package/native/win32-x64/licenses/tracing-0.1.44/LICENSE +25 -0
  978. package/native/win32-x64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  979. package/native/win32-x64/licenses/try-lock-0.2.5/LICENSE +21 -0
  980. package/native/win32-x64/licenses/typed-path-0.13.0/LICENSE-APACHE +176 -0
  981. package/native/win32-x64/licenses/typed-path-0.13.0/LICENSE-MIT +23 -0
  982. package/native/win32-x64/licenses/typenum-1.20.1/LICENSE +1 -0
  983. package/native/win32-x64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  984. package/native/win32-x64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  985. package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-APACHE +176 -0
  986. package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-MIT +23 -0
  987. package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-UNICODE +39 -0
  988. package/native/win32-x64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  989. package/native/win32-x64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  990. package/native/win32-x64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  991. package/native/win32-x64/licenses/utf8_iter-1.1.0/LICENSE-APACHE +202 -0
  992. package/native/win32-x64/licenses/utf8_iter-1.1.0/LICENSE-MIT +25 -0
  993. package/native/win32-x64/licenses/utf_types-1.0.0/LICENSE-APACHE +202 -0
  994. package/native/win32-x64/licenses/utf_types-1.0.0/LICENSE-MIT +25 -0
  995. package/native/win32-x64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  996. package/native/win32-x64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  997. package/native/win32-x64/licenses/want-0.3.2/LICENSE +20 -0
  998. package/native/win32-x64/licenses/windows-link-0.2.1/license-apache-2.0 +201 -0
  999. package/native/win32-x64/licenses/windows-link-0.2.1/license-mit +21 -0
  1000. package/native/win32-x64/licenses/windows-sys-0.61.2/license-apache-2.0 +201 -0
  1001. package/native/win32-x64/licenses/windows-sys-0.61.2/license-mit +21 -0
  1002. package/native/win32-x64/licenses/writeable-0.6.4/LICENSE +46 -0
  1003. package/native/win32-x64/licenses/yoke-0.8.4/LICENSE +46 -0
  1004. package/native/win32-x64/licenses/yoke-derive-0.8.4/LICENSE +46 -0
  1005. package/native/win32-x64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  1006. package/native/win32-x64/licenses/zerofrom-derive-0.1.8/LICENSE +46 -0
  1007. package/native/win32-x64/licenses/zeroize-1.9.1/LICENSE-APACHE +202 -0
  1008. package/native/win32-x64/licenses/zeroize-1.9.1/LICENSE-MIT +25 -0
  1009. package/native/win32-x64/licenses/zerotrie-0.2.5/LICENSE +46 -0
  1010. package/native/win32-x64/licenses/zerovec-0.11.9/LICENSE +46 -0
  1011. package/native/win32-x64/licenses/zerovec-derive-0.11.7/LICENSE +46 -0
  1012. package/native/win32-x64/licenses/zip-9.3.0/LICENSE +21 -0
  1013. package/native/win32-x64/licenses/zlib-rs-0.6.8/LICENSE +19 -0
  1014. package/native/win32-x64/licenses/zmij-1.0.23/LICENSE-MIT +23 -0
  1015. package/native/win32-x64/licenses/zopfli-0.8.4/COPYING +201 -0
  1016. package/native/win32-x64/licenses/zstd-0.14.3/LICENSE +28 -0
  1017. package/native/win32-x64/licenses/zstd-safe-8.2.0/LICENSE +28 -0
  1018. package/native/win32-x64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE +28 -0
  1019. package/native/win32-x64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE.BSD-3-Clause +32 -0
  1020. package/package.json +23 -15
  1021. package/dist/chunk-0w6g1w1a.js +0 -2
  1022. package/dist/chunk-0wr12bg8.js +0 -2
  1023. package/dist/chunk-3137n54p.js +0 -2
  1024. package/dist/chunk-3jw1yt27.js +0 -2
  1025. package/dist/chunk-45542yk3.js +0 -2
  1026. package/dist/chunk-4phhhm7t.js +0 -2
  1027. package/dist/chunk-546h1tk7.js +0 -2
  1028. package/dist/chunk-8kwxqckk.js +0 -2
  1029. package/dist/chunk-8qyb69g5.js +0 -2
  1030. package/dist/chunk-93y78gn4.js +0 -2
  1031. package/dist/chunk-95qfzbmx.js +0 -2
  1032. package/dist/chunk-98cbjkvk.js +0 -4
  1033. package/dist/chunk-9gt81b51.js +0 -2
  1034. package/dist/chunk-bfqqsv6a.js +0 -2
  1035. package/dist/chunk-cd4v63j8.js +0 -2
  1036. package/dist/chunk-ek4acj2p.js +0 -2
  1037. package/dist/chunk-eqwga6j5.js +0 -2
  1038. package/dist/chunk-famkkndg.js +0 -2
  1039. package/dist/chunk-jrnfqqfc.js +0 -2
  1040. package/dist/chunk-pym8eb5y.js +0 -2
  1041. package/dist/chunk-qy06pvy8.js +0 -2
  1042. package/dist/chunk-rf5g26qv.js +0 -2
  1043. package/dist/chunk-rfn9vecr.js +0 -2
  1044. package/dist/chunk-tjkftq6f.js +0 -2
  1045. package/dist/chunk-v3etjs4w.js +0 -2
  1046. package/dist/chunk-x54538jy.js +0 -1
  1047. package/dist/chunk-x68b6rmk.js +0 -2
  1048. package/dist/chunk-z8njjc2c.js +0 -2
  1049. package/dist/chunk-zk6745qh.js +0 -2
  1050. package/rust/Cargo.lock +0 -4318
  1051. package/rust/Cargo.toml +0 -44
  1052. package/rust/build.rs +0 -16
  1053. package/rust/permissions/autogenerated/reference.md +0 -296
  1054. package/rust/permissions/default.toml +0 -20
  1055. package/rust/permissions/schemas/schema.json +0 -263
  1056. package/rust/src/__tests__/native_network.rs +0 -406
  1057. package/rust/src/lib.rs +0 -82
  1058. package/rust/src/native_network.rs +0 -302
  1059. package/rust/src/native_network_diagnostics.rs +0 -220
  1060. package/rust/src/providers/managed.rs +0 -801
  1061. package/rust/src/providers/tests.rs +0 -684
  1062. package/rust/src/providers.rs +0 -984
  1063. package/rust/src/skills.rs +0 -130
  1064. package/rust/src/system_proxy.rs +0 -257
@@ -0,0 +1,2 @@
1
+ import{r,a,o,p}from"./chunk-tggrc8e5.js";import{E}from"./chunk-t63mwyg0.js";import{w,Z,ye}from"./chunk-97yvajhc.js";import{me,U,ne}from"./chunk-6h2ysmec.js";import{io}from"./chunk-n6kdjmh7.js";import{he}from"./chunk-ss5xzk9q.js";import{pe}from"./chunk-7962trd3.js";import{ge}from"./chunk-yep82kwy.js";import{At}from"./chunk-rz3njmhn.js";import{no}from"./chunk-gxjtydsk.js";import{ActivityIcon as O}from"lucide-react";import{useEffect as G,useMemo as C}from"react";import{Kbd as K}from"@nyssance/shadcn/vega/components/ui/kbd";import{jsx as c,jsxs as P,Fragment as T}from"react/jsx-runtime";function M(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 pr({selectedId:n,onSelect:d,isForeground:l,onOpen:k,accessory:R,rowActions:h}){let N=r(),{t:L}=N,m=o((t)=>t.runStates),v=o((t)=>t.drafts),u=o((t)=>t.sessionList),g=U((t)=>t.activityOrder),f=C(()=>g.flatMap((t)=>{let e=m[t];return e&&me({runStates:m,drafts:v},t)?[{sid:t,record:e,sessionRow:M(u,e)}]:[]}),[g,m,v,u]),b=C(()=>{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=U((t)=>t.activityCollapsedGroups),s=ne(),x=b.flatMap((t)=>t.key==="foreground"||!y.has(t.key)?t.rows:[]),I=(t)=>{if(k?.(t))return;d(t)},D=no();G(()=>{let t=(e)=>{if(e.defaultPrevented||e.isComposing||e.repeat||!io(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=x[i-1];if(!S)return;e.preventDefault(),I(S.sessionRow)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)});let A=(t)=>{let e=x.indexOf(t);return c(H,{sessionRow:t.sessionRow,state:t.record.state,interruption:t.record.interruption,active:t.sid===n,tasks:t.record.tasks,listeningPorts:t.record.listeningPorts,onOpen:()=>I(t.sessionRow),accessory:R?.(t.sid),actions:h?.(t.sessionRow),hint:e<9&&D?c(K,{children:ge(`CommandOrControl+${e+1}`)}):void 0},t.sid)};return c(w,{children:b.map((t)=>t.key==="foreground"?c(w,{children:t.rows.map(A)},t.key):c(Z,{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(O,{className:"text-muted-foreground size-3.5 shrink-0"}),label:L("sessionList.background"),count:t.rows.length,children:t.rows.map(A)},t.key))})}function H({sessionRow:n,state:d,interruption:l,active:k,tasks:R,listeningPorts:h,accessory:N,actions:L,onOpen:m,hint:v}){let u=r(),g=a(),{t:f}=u,b=n.title??f("sessionList.untitled"),y=At(n.sessionId,d);return P(T,{children:[c(ye,{"data-session-id":n.sessionId,active:k,role:"button",tabIndex:0,hoverCard:c(pe,{sessionRow:n,actions:L}),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(he,{title:f("sessionList.stop"),onStop:()=>p(u,g.stopSession(n.sessionId))})}),R.map((s)=>P("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(E,{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{pr};
@@ -1,2 +1,2 @@
1
- var t=new Map;var a=0;function kn(e,n){let r=n?void 0:t.get(e);if(r===void 0)return null;return t.delete(e),t.set(e,r),{...r,tokens:structuredClone(r.tokens)}}function c(e){if(e.isStreaming||e.text.length>1048576)return;if(t.delete(e.text))a-=e.text.length;t.set(e.text,{...e,tokens:structuredClone(e.tokens)}),a+=e.text.length;while(a>2097152||t.size>200){let n=t.keys().next().value;a-=n.length,t.delete(n)}}class l{worker=new Worker(new URL("@alwith/module-chat/markdown-parser.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(e)=>{let n=e.data,r=this.active;if(n.clientId!==r?.clientId||n.revision!==r.revision){this.fail(Error("Markdown worker returned an unexpected request"));return}if(this.active=null,!n.ok){this.fail(Error(n.error));return}let i={...r.input,tokens:n.tokens};c(i);let s=this.clients.get(r.clientId),o=this.pending.get(r.clientId),u=o!==void 0&&r.input.isStreaming&&o.input.isStreaming&&o.input.text.startsWith(r.input.text);if(s!==void 0&&(s.revision===r.revision||u))s.onResult(i);this.dispatch()},this.worker.onerror=(e)=>this.fail(Error(e.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize Markdown parsing result"))}fail(e){this.failure=e,this.worker.terminate(),this.pending.clear(),this.active=null;for(let n of this.clients.values())n.onError(e)}send(e){try{this.worker.postMessage(e)}catch(n){this.fail(n instanceof Error?n:Error(String(n)))}}dispatch(){if(this.active!==null||this.pending.size===0)return;let e=this.pending.values().next().value;this.pending.delete(e.clientId),this.active=e,this.send({type:"parse",clientId:e.clientId,revision:e.revision,source:e.input.source})}connect(e,n){if(this.failure!==null)throw this.failure;let r=++this.nextClientId,i={revision:0,onResult:e,onError:n};return this.clients.set(r,i),{update:(s)=>{if(this.failure!==null)throw this.failure;i.revision+=1;let o=kn(s.text,s.isStreaming);if(o!==null){this.pending.delete(r),i.onResult(o);return}this.pending.set(r,{clientId:r,revision:i.revision,input:s}),this.dispatch()},dispose:()=>{if(!this.clients.delete(r))return;if(this.pending.delete(r),this.clients.size===0)this.worker.terminate(),d=void 0;else if(this.failure===null)this.send({type:"dispose",clientId:r})}}}}var d;function bi(e,n){return d??=new l,d.connect(e,n)}
2
- export{kn,bi};
1
+ var t=new Map;var a=0;function Sn(e,n){let r=n?void 0:t.get(e);if(r===void 0)return null;return t.delete(e),t.set(e,r),{...r,tokens:structuredClone(r.tokens)}}function c(e){if(e.isStreaming||e.text.length>1048576)return;if(t.delete(e.text))a-=e.text.length;t.set(e.text,{...e,tokens:structuredClone(e.tokens)}),a+=e.text.length;while(a>2097152||t.size>200){let n=t.keys().next().value;a-=n.length,t.delete(n)}}class l{worker=new Worker(new URL("@alwith/module-chat/markdown-parser.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(e)=>{let n=e.data,r=this.active;if(n.clientId!==r?.clientId||n.revision!==r.revision){this.fail(Error("Markdown worker returned an unexpected request"));return}if(this.active=null,!n.ok){this.fail(Error(n.error));return}let i={...r.input,tokens:n.tokens};c(i);let s=this.clients.get(r.clientId),o=this.pending.get(r.clientId),u=o!==void 0&&r.input.isStreaming&&o.input.isStreaming&&o.input.text.startsWith(r.input.text);if(s!==void 0&&(s.revision===r.revision||u))s.onResult(i);this.dispatch()},this.worker.onerror=(e)=>this.fail(Error(e.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize Markdown parsing result"))}fail(e){this.failure=e,this.worker.terminate(),this.pending.clear(),this.active=null;for(let n of this.clients.values())n.onError(e)}send(e){try{this.worker.postMessage(e)}catch(n){this.fail(n instanceof Error?n:Error(String(n)))}}dispatch(){if(this.active!==null||this.pending.size===0)return;let e=this.pending.values().next().value;this.pending.delete(e.clientId),this.active=e,this.send({type:"parse",clientId:e.clientId,revision:e.revision,source:e.input.source})}connect(e,n){if(this.failure!==null)throw this.failure;let r=++this.nextClientId,i={revision:0,onResult:e,onError:n};return this.clients.set(r,i),{update:(s)=>{if(this.failure!==null)throw this.failure;i.revision+=1;let o=Sn(s.text,s.isStreaming);if(o!==null){this.pending.delete(r),i.onResult(o);return}this.pending.set(r,{clientId:r,revision:i.revision,input:s}),this.dispatch()},dispose:()=>{if(!this.clients.delete(r))return;if(this.pending.delete(r),this.clients.size===0)this.worker.terminate(),d=void 0;else if(this.failure===null)this.send({type:"dispose",clientId:r})}}}}var d;function bi(e,n){return d??=new l,d.connect(e,n)}
2
+ export{Sn,bi};
@@ -1,2 +1,2 @@
1
- import{n}from"./chunk-z8njjc2c.js";import{e}from"./chunk-epg5w48v.js";import{codexExtensionCapabilities as w,codexTurnId as M,composerPrediction as j,isBooleanOption as B,isSelectOption as F}from"@nyssance/codex-acp-v2/client";import{useEffect as b,useMemo as C,useRef as O,useState as P}from"react";function Wt(r,g,c,y){let{client:S}=e(),R=n((t)=>w(t.agent).composerPredictions),k=C(()=>r.items.findLast((t)=>t.kind==="user"),[r.items]),i=M(k?._meta),_=C(()=>r.configOptions.flatMap((t)=>F(t)||B(t)?[[t.configId,t.currentValue]]:[]).toSorted(([t],[l])=>String(t).localeCompare(String(l))),[r.configOptions]),o=JSON.stringify([r.id,i,_]),s=j(r._meta),d=r._meta?.codex,m=typeof d==="object"&&d!==null&&"prediction"in d?d.prediction:null,u=O(null),f=O(!1);b(()=>(f.current=!0,()=>{f.current=!1}),[]);let[a,q]=P(null),[v,x]=P(null),p=y&&R&&g&&r.state==="idle"&&r.lastStopReason==="end_turn"&&!k?.replayed&&i!==null;b(()=>{if(!p||c||a===o||u.current?.key===o||i===null)return;let t={key:o,previousResult:m};u.current=t,x(null),S.requestPrediction(r.id,i).catch((l)=>{if(f.current&&u.current===t)x({key:o,message:l instanceof Error?l.message:String(l)})})},[S,p,c,a,o,m,r.id,i]);let I=p&&!c&&a!==o&&u.current?.key===o&&u.current.previousResult!==m&&s?.sourceTurnId===i,E=I&&s.result.type==="completed"?s.result.text:null,T=y&&g&&r.state==="idle"&&!c&&a!==o?v?.key===o?v.message:I&&s.result.type==="failed"?"Prediction failed":null:null;return{text:E,error:T,invalidate:()=>{if(p)q(o)}}}
2
- export{Wt};
1
+ import{n}from"./chunk-1vmk34zf.js";import{e}from"./chunk-t9djctkk.js";import{codexExtensionCapabilities as w,codexTurnId as M,composerPrediction as j,isBooleanOption as B,isSelectOption as F}from"@nyssance/codex-acp-v2/client";import{useEffect as b,useMemo as C,useRef as O,useState as P}from"react";function Zt(r,g,c,y){let{client:S}=e(),R=n((t)=>w(t.agent).composerPredictions),k=C(()=>r.items.findLast((t)=>t.kind==="user"),[r.items]),i=M(k?._meta),_=C(()=>r.configOptions.flatMap((t)=>F(t)||B(t)?[[t.configId,t.currentValue]]:[]).toSorted(([t],[l])=>String(t).localeCompare(String(l))),[r.configOptions]),o=JSON.stringify([r.id,i,_]),s=j(r._meta),d=r._meta?.codex,m=typeof d==="object"&&d!==null&&"prediction"in d?d.prediction:null,u=O(null),f=O(!1);b(()=>(f.current=!0,()=>{f.current=!1}),[]);let[a,q]=P(null),[v,x]=P(null),p=y&&R&&g&&r.state==="idle"&&r.lastStopReason==="end_turn"&&!k?.replayed&&i!==null;b(()=>{if(!p||c||a===o||u.current?.key===o||i===null)return;let t={key:o,previousResult:m};u.current=t,x(null),S.requestPrediction(r.id,i).catch((l)=>{if(f.current&&u.current===t)x({key:o,message:l instanceof Error?l.message:String(l)})})},[S,p,c,a,o,m,r.id,i]);let I=p&&!c&&a!==o&&u.current?.key===o&&u.current.previousResult!==m&&s?.sourceTurnId===i,E=I&&s.result.type==="completed"?s.result.text:null,T=y&&g&&r.state==="idle"&&!c&&a!==o?v?.key===o?v.message:I&&s.result.type==="failed"?"Prediction failed":null:null;return{text:E,error:T,invalidate:()=>{if(p)q(o)}}}
2
+ export{Zt};
@@ -1,2 +1,2 @@
1
- function ci(t){if(!t||typeof t!=="object"||!("codex"in t))return null;let o=t.codex;if(!o||typeof o!=="object"||!("questionReply"in o))return null;let n=o.questionReply;if(!n||typeof n!=="object"||!("question"in n)||!("answer"in n))return null;return typeof n.question==="string"&&typeof n.answer==="string"?{question:n.question,answer:n.answer}:null}function di(t){if(!t||typeof t!=="object"||!("codex"in t))return null;let o=t.codex;if(!o||typeof o!=="object"||!("questionReplyParts"in o))return null;let n=o.questionReplyParts;if(!Array.isArray(n)||n.length===0)return null;let i=n;if(!i.every((e)=>!!e&&typeof e==="object"&&("text"in e)&&typeof e.text==="string"&&(!("question"in e)||e.question===void 0||typeof e.question==="string")))return null;return i.map((e)=>({text:e.text,...e.question===void 0?{}:{question:e.question}}))}
2
- export{ci,di};
1
+ function ui(t){if(!t||typeof t!=="object"||!("codex"in t))return null;let o=t.codex;if(!o||typeof o!=="object"||!("questionReply"in o))return null;let n=o.questionReply;if(!n||typeof n!=="object"||!("question"in n)||!("answer"in n))return null;return typeof n.question==="string"&&typeof n.answer==="string"?{question:n.question,answer:n.answer}:null}function pi(t){if(!t||typeof t!=="object"||!("codex"in t))return null;let o=t.codex;if(!o||typeof o!=="object"||!("questionReplyParts"in o))return null;let n=o.questionReplyParts;if(!Array.isArray(n)||n.length===0)return null;let i=n;if(!i.every((e)=>!!e&&typeof e==="object"&&("text"in e)&&typeof e.text==="string"&&(!("question"in e)||e.question===void 0||typeof e.question==="string")))return null;return i.map((e)=>({text:e.text,...e.question===void 0?{}:{question:e.question}}))}
2
+ export{ui,pi};
@@ -1,2 +1,2 @@
1
- function ri(r,e){if(!e.running)return{kind:"idle"};if(e.blocked)return{kind:"waiting"};if(e.retrying)return{kind:"retrying"};let t=r.findLast((i)=>i.kind==="tool"&&i.active);if(t)return{kind:"tool",ownerKey:t.key};let n=r.findLast((i)=>i.kind!=="user");if(n?.active){if(n.kind==="answer")return{kind:"speaking",ownerKey:n.key};if(n.kind==="text")return{kind:"speaking",ownerKey:n.key};if(n.kind==="reasoning")return{kind:"reasoning",ownerKey:n.key};if(n.kind==="plan")return{kind:"planning",ownerKey:n.key};if(n.kind==="compaction")return{kind:"tool",ownerKey:n.key}}if(n?.kind==="answer")return{kind:"idle"};return{kind:"working",ownerKey:n?.key}}
2
- export{ri};
1
+ function si(r,e){if(!e.running)return{kind:"idle"};if(e.blocked)return{kind:"waiting"};if(e.retrying)return{kind:"retrying"};let t=r.findLast((i)=>i.kind==="tool"&&i.active);if(t)return{kind:"tool",ownerKey:t.key};let n=r.findLast((i)=>i.kind!=="user");if(n?.active){if(n.kind==="answer")return{kind:"speaking",ownerKey:n.key};if(n.kind==="text")return{kind:"speaking",ownerKey:n.key};if(n.kind==="reasoning")return{kind:"reasoning",ownerKey:n.key};if(n.kind==="plan")return{kind:"planning",ownerKey:n.key};if(n.kind==="compaction")return{kind:"tool",ownerKey:n.key}}if(n?.kind==="answer")return{kind:"idle"};return{kind:"working",ownerKey:n?.key}}
2
+ export{si};
@@ -1,2 +1,2 @@
1
- function yo({container:i,target:f,clientX:e,clientY:n,currentScale:r,nextScale:s}){if(r<=0||s<=0)return null;let o=i.getBoundingClientRect(),t=f.getBoundingClientRect();if(t.width===0||t.height===0)return null;let h=e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom,l=h?(e-t.left)/t.width:0.5,a=h?(n-t.top)/t.height:0.5,c=t.width/r,g=t.height/r,m=c*s,u=g*s,d=e-o.left,p=n-o.top,P=i.scrollLeft+(t.left-o.left)+t.width/2,b=i.scrollTop+(t.top-o.top)+t.height/2,C=(l-0.5)*m,x=(a-0.5)*u;return{left:Math.max(0,P+C-d),top:Math.max(0,b+x-p)}}
2
- export{yo};
1
+ function bo({container:i,target:f,clientX:e,clientY:n,currentScale:r,nextScale:s}){if(r<=0||s<=0)return null;let o=i.getBoundingClientRect(),t=f.getBoundingClientRect();if(t.width===0||t.height===0)return null;let h=e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom,l=h?(e-t.left)/t.width:0.5,a=h?(n-t.top)/t.height:0.5,c=t.width/r,g=t.height/r,m=c*s,u=g*s,d=e-o.left,p=n-o.top,P=i.scrollLeft+(t.left-o.left)+t.width/2,b=i.scrollTop+(t.top-o.top)+t.height/2,C=(l-0.5)*m,x=(a-0.5)*u;return{left:Math.max(0,P+C-d),top:Math.max(0,b+x-p)}}
2
+ export{bo};
@@ -1,2 +1,2 @@
1
- import{xo}from"./chunk-srpsc10y.js";import{n}from"./chunk-z8njjc2c.js";import{e,f}from"./chunk-epg5w48v.js";import{B,g,G}from"./chunk-6vntcyv6.js";import{isBooleanOption as A,isGroupedSelect as Z,isSelectOption as D}from"@nyssance/codex-acp-v2/client";import{Zap as F}from"lucide-react";import{memo as H,useRef as J}from"react";import{jsx as I}from"react/jsx-runtime";function K({sessionId:l,options:p,disabled:x,onModelChange:b,onConfigChange:O,defaultGroup:L={id:"models",name:"Models"},catalog:N=(c)=>c,headerAction:P}){let{host:c,client:k}=e(),{t:i}=c,z=n((o)=>Boolean(o.configPending[l])),M=J({sessionId:l,model:!0}),v=z&&(M.current.sessionId!==l||M.current.model),R=n((o)=>{let r=o.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),t=g(p,"model"),a=g(p,"thought_level"),_=p.filter((o)=>o.configId!=="collaboration_mode"&&(o.category==="model_config"||o.category!=="mode"&&o!==t&&o!==a)),S=_.filter(D),m=_.filter(A);if(!t&&!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===t};let d=O?O(o.configId,r):k.setConfig(l,o.configId,r);return f(c,d),d},h=a?B(a):[],E=h.reduce((o,r)=>r.name.length>=o.length?r.name:o,""),U=t?G(t):i("composer.model"),V=(o)=>({api_id:o.value,label:o.name}),y=N(t&&Z(t.options)?t.options.map((o)=>({id:o.groupId,name:o.name,models:o.options.map(V)})):[{...L,models:t?B(t).map(V):[]}]),w=y.flatMap((o)=>o.models),C=w.find((o)=>o.api_id===t?.currentValue)??{api_id:t?.currentValue??"",label:U},s=m.find((o)=>o.configId==="fast_mode"||o.configId==="fast-mode");return I(xo,{disabled:x||v||R,switching:v,value:{...C,label:C.shortLabel??C.label},compactCatalog:!0,models:w,showModelList:Boolean(t),onChange:(o)=>{if(o.api_id===t?.currentValue)return;if(b)b(o.api_id);else if(t)u(t,o.api_id)},header:{name:t?.name??i("composer.model"),action:P},modelGroups:y,t:i,effortConfig:a&&h.length>0?{name:"Effort",value:a.currentValue,levels:h,sizer:E,onChange:(o)=>u(a,o)}:void 0,selectOptions:S.map((o)=>({id:o.configId,name:o.name,value:o.currentValue,options:B(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:I(F,{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((q)=>q.configId===o);if(!d)throw Error(`Unknown boolean config: ${o}`);u(d,r)}})}var Ot=H(K);
2
- export{Ot};
1
+ import{Co}from"./chunk-w3eddq0g.js";import{n}from"./chunk-1vmk34zf.js";import{e,f}from"./chunk-t9djctkk.js";import{G,g,z}from"./chunk-93d3a9wy.js";import{isBooleanOption as A,isGroupedSelect as Z,isSelectOption as D}from"@nyssance/codex-acp-v2/client";import{Zap as F}from"lucide-react";import{memo as H,useRef as J}from"react";import{jsx as B}from"react/jsx-runtime";function K({sessionId:l,options:p,disabled:I,onModelChange:b,onConfigChange:O,defaultGroup:x={id:"models",name:"Models"},catalog:L=(c)=>c,headerAction:N}){let{host:c,client:P}=e(),{t:i}=c,k=n((o)=>Boolean(o.configPending[l])),M=J({sessionId:l,model:!0}),v=k&&(M.current.sessionId!==l||M.current.model),R=n((o)=>{let r=o.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),t=g(p,"model"),a=g(p,"thought_level"),_=p.filter((o)=>o.configId!=="collaboration_mode"&&(o.category==="model_config"||o.category!=="mode"&&o!==t&&o!==a)),S=_.filter(D),m=_.filter(A);if(!t&&!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===t};let d=O?O(o.configId,r):P.setConfig(l,o.configId,r);return f(c,d),d},h=a?G(a):[],E=h.reduce((o,r)=>r.name.length>=o.length?r.name:o,""),U=t?z(t):i("composer.model"),V=(o)=>({api_id:o.value,label:o.name}),y=L(t&&Z(t.options)?t.options.map((o)=>({id:o.groupId,name:o.name,models:o.options.map(V)})):[{...x,models:t?G(t).map(V):[]}]),w=y.flatMap((o)=>o.models),C=w.find((o)=>o.api_id===t?.currentValue)??{api_id:t?.currentValue??"",label:U},s=m.find((o)=>o.configId==="fast_mode"||o.configId==="fast-mode");return B(Co,{disabled:I||v||R,switching:v,value:{...C,label:C.shortLabel??C.label},compactCatalog:!0,models:w,showModelList:Boolean(t),onChange:(o)=>{if(o.api_id===t?.currentValue)return;if(b)b(o.api_id);else if(t)u(t,o.api_id)},header:{name:t?.name??i("composer.model"),action:N},modelGroups:y,t:i,effortConfig:a&&h.length>0?{name:"Effort",value:a.currentValue,levels:h,sizer:E,onChange:(o)=>u(a,o)}:void 0,selectOptions:S.map((o)=>({id:o.configId,name:o.name,value:o.currentValue,options:G(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(F,{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((q)=>q.configId===o);if(!d)throw Error(`Unknown boolean config: ${o}`);u(d,r)}})}var Ut=H(K);
2
+ export{Ut};
@@ -0,0 +1,2 @@
1
+ import{c}from"./chunk-k7y6dqf2.js";import{a,o}from"./chunk-tggrc8e5.js";import{w,m,u,Z}from"./chunk-97yvajhc.js";import{C,ee,Jn}from"./chunk-9pgh7zjb.js";import{Ve}from"./chunk-kyxdpg6a.js";import{M,q}from"./chunk-1wh82w54.js";import{ue,J}from"./chunk-d444rgtm.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 oe}from"@dnd-kit/sortable";import{CSS as ce}from"@dnd-kit/utilities";import{cn as F}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 P}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as te,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 z,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:S,children:E}){let{attributes:I,listeners:h,setNodeRef:i,transform:g,transition:f,isDragging:k}=ae({id:JSON.stringify([l,S]),data:{type:"session",collectionId:l,sessionId:S}});return e("div",{ref:i,style:{transform:ce.Transform.toString(g),transition:f},className:F("w-full min-w-0",k&&"opacity-50"),...I,...h,role:"group",children:E})}function Be({collection:l,children:S,onEdit:E,onConfirm:I,onNewChat:h}){let{t:i}=C(),g=J(),f=ee(),{attributes:k,listeners:p,setNodeRef:b,transform:T,transition:B,isDragging:K}=ae({id:l.id,disabled:{draggable:l.id===M,droppable:!1},data:{type:"collection"}});return e("div",{ref:b,style:{transform:ce.Transform.toString(T),transition:B},className:F("w-full min-w-0",K&&"opacity-50"),children:e(Z,{open:!l.collapsed,onOpenChange:(d)=>f(g({type:"collapse",id:l.id,collapsed:!d})),label:q(l,i),count:l.sessionIds.length,leading:l.id===M?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",{...k,...p,role:"group",children:d}),actions:s(Ee,{children:[e(Re,{onClick:(d)=>d.stopPropagation(),onPointerDown:(d)=>d.stopPropagation(),render:e(N,{variant:"ghost",size:"icon",className:"size-5","aria-label":i("collection.more",{name:q(l,i)}),children:e(Ie,{className:"size-3.5"})})}),e(ke,{children:s(Le,{children:[l.id!==M&&s(z,{onClick:E,children:[e(he,{}),i("collection.rename")]}),s(z,{onClick:h,children:[e(de,{}),i("collection.newChat")]}),s(z,{onClick:()=>I("clear"),children:[e(ve,{}),i("collection.clearCollection")]}),l.id!==M&&s(z,{variant:"destructive",onClick:()=>I("delete"),children:[e(me,{}),i("collection.deleteCollection")]})]})})]}),children:S})})}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 tr({renderRow:l,onSelect:S,onNewChat:E,Scroll:I=He}){let h=C(),{t:i}=h,g=J(),f=ee(),k=a(),{collections:p,order:b}=ue(),T=o((t)=>t.sessionList),B=o((t)=>t.archivedSessions),K=o((t)=>t.sessionListLoaded),d=o((t)=>t.sessionListError),U=Me(()=>new Map([...B,...T].map((t)=>[t.sessionId,t])),[B,T]),_=h.isMac??Jn(),[D,L]=P(null),[R,O]=P(""),[A,j]=P(""),[v,H]=P(null),[y,Q]=P(!1),pe=De(X(Se,{activationConstraint:{distance:5}}),X(ye,{coordinateGetter:we})),G=b.flatMap((t)=>p[t].collapsed?[]:p[t].sessionIds.flatMap((n)=>{let r=U.get(n);return r&&!r.archived?[r]:[]}));xe(()=>{let t=(n)=>{if(n.defaultPrevented||n.isComposing||n.repeat||n.shiftKey||n.altKey)return;if(_?!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||!G[r])return;n.preventDefault(),S(G[r])};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[G,_,S]);let ge=({active:t,over:n})=>{if(n===null)return;let r=t.data.current,x=n.data.current;if(r?.type==="session"&&x!==void 0){let W=x.type==="session"?String(x.collectionId):String(n.id);f(g({type:"move",sourceCollectionId:String(r.collectionId),collectionId:W,sessionId:String(r.sessionId),index:x.type==="session"?p[W].sessionIds.indexOf(String(x.sessionId)):void 0}))}else if(r?.type==="collection"&&x?.type==="collection"&&String(n.id)!==M)f(g({type:"reorder",id:String(t.id),index:b.indexOf(String(n.id))}))},V=(t,n)=>{Q(!0),f(t.then(n).finally(()=>Q(!1)))};return s(ze,{children:[e(I,{children:s(w,{children:[s(u,{className:F(c,"font-normal"),onClick:()=>{L("new"),O(""),j("")},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(N,{variant:"ghost",onClick:()=>f(k.listSessions({reset:!0})),children:i("collection.retry")})]}),e(Ce,{sensors:pe,collisionDetection:fe,onDragEnd:ge,children:e(Y,{items:b,strategy:oe,children:e(w,{children:b.map((t)=>e(Be,{collection:p[t],onNewChat:()=>E(t),onEdit:()=>{L(t),O(p[t].name),j(p[t].emoji??"")},onConfirm:(n)=>H({id:t,type:n}),children:e(Y,{items:p[t].sessionIds.map((n)=>JSON.stringify([t,n])),strategy:oe,children:p[t].sessionIds.map((n)=>{let r=U.get(n);if(r?.archived)return null;if(!r)return K?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(N,{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(te,{open:D!==null,onOpenChange:(t)=>{if(!t&&!y)L(null)},children:s(ne,{children:[s(re,{children:[e(se,{children:i(D==="new"?"collection.newCollection":"collection.rename")}),e(ie,{children:i("collection.collectionName")})]}),s("form",{onSubmit:(t)=>{if(t.preventDefault(),D===null||!R.trim()||y)return;let n=D==="new"?`collection-${crypto.randomUUID()}`:D;V(g([D==="new"?{type:"create",id:n,name:R}:{type:"rename",id:n,name:R},{type:"emoji",id:n,emoji:A}]),()=>L(null))},className:"flex flex-col gap-3",children:[e(Pe,{autoFocus:!0,"aria-label":i("collection.collectionName"),value:R,onChange:(t)=>O(t.target.value),disabled:y}),D!=="new"&&e(Ve,{emoji:A,onChange:j}),s(le,{children:[e(N,{type:"button",variant:"outline",disabled:y,onClick:()=>L(null),children:i("collection.cancel")}),e(N,{type:"submit",disabled:y||!R.trim(),children:i("collection.confirm")})]})]})]})}),e(te,{open:v!==null,onOpenChange:(t)=>{if(!t&&!y)H(null)},children:s(ne,{children:[s(re,{children:[e(se,{children:i(v?.type==="delete"?"collection.deleteCollection":"collection.clearCollection")}),e(ie,{children:i("collection.confirmCollectionChange",{name:v===null?"":q(p[v.id],i)})})]}),s(le,{children:[e(N,{variant:"outline",disabled:y,onClick:()=>H(null),children:i("collection.cancel")}),e(N,{disabled:y,onClick:()=>{if(v!==null)V(g({type:v.type,id:v.id}),()=>H(null))},children:i("collection.confirm")})]})]})})]})}
2
+ export{tr};
@@ -1,2 +1,2 @@
1
- import{d}from"./chunk-6e1bwjtk.js";import{z}from"./chunk-t2q8cxnh.js";import{isContentEntry as k,isImage as b,isResourceLink as N}from"@nyssance/codex-acp-v2/client";import{ChevronRightIcon as w,ImageIcon as C,LoaderCircleIcon as S,RefreshCwIcon as A}from"lucide-react";import{useEffect as R,useState as h}from"react";import{jsx as s,jsxs as y}from"react/jsx-runtime";function Fe(e){return e.type==="tool_use"&&e.name==="view_image"&&e.status==="completed"}function B(e){let n=[];for(let[r,c]of e.content.entries()){if(!k(c))continue;let i=c.content;if(b(i))n.push({key:`${e.id}:${r}`,src:`data:${i.mimeType};base64,${i.data}`,alt:e.title??""});if(N(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 T({images:e}){let{loadImage:n,openImageGallery:a,openImage:r,t:c}=d(),[i,g]=h({}),[v,x]=h(0),f=JSON.stringify(e);R(()=>{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(S,{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(A,{"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 Jo({blocks:e}){let{t:n}=d(),a=e.flatMap(B),[r,c]=z(`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(C,{className:"codex-activity-icon","aria-hidden":"true"}),s("span",{className:"codex-activity-leading",children:n("stream.codex.viewedImages",{count:a.length})})]}),s(w,{className:r?"codex-image-chevron codex-image-chevron-open":"codex-image-chevron","aria-hidden":"true"})]}),r&&s(T,{images:a})]})}
2
- export{Fe,Jo};
1
+ import{d}from"./chunk-50brsmjd.js";import{V}from"./chunk-2emf349g.js";import{isContentEntry as k,isImage as b,isResourceLink as N}from"@nyssance/codex-acp-v2/client";import{ChevronRightIcon as w,ImageIcon as C,LoaderCircleIcon as S,RefreshCwIcon as A}from"lucide-react";import{useEffect as R,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 B(e){let n=[];for(let[r,c]of e.content.entries()){if(!k(c))continue;let i=c.content;if(b(i))n.push({key:`${e.id}:${r}`,src:`data:${i.mimeType};base64,${i.data}`,alt:e.title??""});if(N(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 T({images:e}){let{loadImage:n,openImageGallery:a,openImage:r,t:c}=d(),[i,g]=h({}),[v,x]=h(0),f=JSON.stringify(e);R(()=>{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(S,{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(A,{"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 ti({blocks:e}){let{t:n}=d(),a=e.flatMap(B),[r,c]=V(`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(C,{className:"codex-activity-icon","aria-hidden":"true"}),s("span",{className:"codex-activity-leading",children:n("stream.codex.viewedImages",{count:a.length})})]}),s(w,{className:r?"codex-image-chevron codex-image-chevron-open":"codex-image-chevron","aria-hidden":"true"})]}),r&&s(T,{images:a})]})}
2
+ export{De,ti};
@@ -0,0 +1,2 @@
1
+ import{ge}from"./chunk-yep82kwy.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 eo({shortcut:t,...o}){return t?r(i,{"aria-hidden":"true",...o,children:ge(t)}):null}function to({label:t,shortcut:o}){return e(c,{children:[r("span",{className:"min-w-0",children:t}),r(eo,{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(to,{label:t,shortcut:o}):t})]})}
2
+ export{eo,to,Nt};
@@ -0,0 +1,2 @@
1
+ import{createContext as t,useContext as o}from"react";var fn=t(null);function Mr(){let e=o(fn);if(e===null)throw Error("Composer is missing");return e}
2
+ export{fn,Mr};
@@ -0,0 +1,2 @@
1
+ import{oe}from"./chunk-5p1fxq0k.js";import{t}from"./chunk-1vmk34zf.js";import{SquareSlashIcon as s}from"lucide-react";import{useRef as l}from"react";import{jsx as r}from"react/jsx-runtime";function ko({textareaRef:a,onOpenChange:p,menuOpen:e,disabled:m}){let{t:o}=t(),n=l(!1);return r(oe,{"aria-label":o("composer.commands"),title:o("composer.commands"),disabled:m,"aria-pressed":e,onPointerDown:()=>{n.current=e},onClick:()=>{p(!n.current),a.current?.getTextarea()?.focus()},children:r(s,{className:"size-4"})})}
2
+ export{ko};
@@ -1,2 +1,2 @@
1
- import{t}from"./chunk-z8njjc2c.js";import{$t}from"./chunk-93y78gn4.js";import{FileIcon as i,XIcon as m}from"lucide-react";import{Badge as r}from"@nyssance/shadcn/vega/components/ui/badge";import{Button as l}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as c}from"react/jsx-runtime";function Fo({mentions:a,onRemove:n}){let{t:s}=t();if(a.length===0)return null;return o("div",{className:"mb-1.5 flex flex-wrap items-center gap-1.5",children:a.map((e)=>c(r,{variant:"secondary",className:"gap-1 pe-0.5",title:e,children:[o(i,{className:"size-3"}),o("span",{className:"max-w-40 truncate",children:$t(e)}),o(l,{type:"button",variant:"ghost",size:"icon-xs",className:"size-4","aria-label":s("composer.removeMention",{name:$t(e)}),onClick:()=>n(e),children:o(m,{className:"size-3"})})]},e))})}
2
- export{Fo};
1
+ import{t}from"./chunk-1vmk34zf.js";import{Kt}from"./chunk-jeedg61t.js";import{FileIcon as i,XIcon as m}from"lucide-react";import{Badge as r}from"@nyssance/shadcn/vega/components/ui/badge";import{Button as l}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as c}from"react/jsx-runtime";function Ho({mentions:a,onRemove:n}){let{t:s}=t();if(a.length===0)return null;return o("div",{className:"mb-1.5 flex flex-wrap items-center gap-1.5",children:a.map((e)=>c(r,{variant:"secondary",className:"gap-1 pe-0.5",title:e,children:[o(i,{className:"size-3"}),o("span",{className:"max-w-40 truncate",children:Kt(e)}),o(l,{type:"button",variant:"ghost",size:"icon-xs",className:"size-4","aria-label":s("composer.removeMention",{name:Kt(e)}),onClick:()=>n(e),children:o(m,{className:"size-3"})})]},e))})}
2
+ export{Ho};
@@ -1,2 +1,2 @@
1
- import{nativeTurnId as a}from"@nyssance/codex-acp-v2/client";function Ti(o,i){let u=new Set,s=(e)=>{let t=e.items.map(a).find((r)=>r!==null),n=e.items.every((r)=>r.replayed);if(t===void 0||u.has(t))return{turnKey:e.key,turn:e,deferUntilReady:n};return u.add(t),{turnKey:`history:${t}`,aliases:[e.key],turn:e,deferUntilReady:n}};if(!i?.complete)return o.map(s);let d=new Map;for(let e of o){let t=e.items.map(a).find((r)=>r!==null);if(t===void 0)continue;let n=d.get(t)??[];n.push(e),d.set(t,n)}let l=new Set(i.turns.map((e)=>e.turnId)),y=new Set(i.loadedTurnIds);return[...i.turns.flatMap((e)=>{let t=d.get(e.turnId);if(t)return t.map(s);return y.has(e.turnId)?[]:[{turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,estimatedHeightPx:320,placeholder:!0}]}),...o.filter((e)=>!e.items.some((t)=>l.has(a(t)??""))).map(s)]}
2
- export{Ti};
1
+ import{nativeTurnId as a}from"@nyssance/codex-acp-v2/client";function Ni(o,i){let u=new Set,s=(e)=>{let t=e.items.map(a).find((r)=>r!==null),n=e.items.every((r)=>r.replayed);if(t===void 0||u.has(t))return{turnKey:e.key,turn:e,deferUntilReady:n};return u.add(t),{turnKey:`history:${t}`,aliases:[e.key],turn:e,deferUntilReady:n}};if(!i?.complete)return o.map(s);let d=new Map;for(let e of o){let t=e.items.map(a).find((r)=>r!==null);if(t===void 0)continue;let n=d.get(t)??[];n.push(e),d.set(t,n)}let l=new Set(i.turns.map((e)=>e.turnId)),y=new Set(i.loadedTurnIds);return[...i.turns.flatMap((e)=>{let t=d.get(e.turnId);if(t)return t.map(s);return y.has(e.turnId)?[]:[{turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,estimatedHeightPx:320,placeholder:!0}]}),...o.filter((e)=>!e.items.some((t)=>l.has(a(t)??""))).map(s)]}
2
+ export{Ni};
@@ -1,4 +1,4 @@
1
- import{an}from"./chunk-ggehtpkh.js";import{mo}from"./chunk-n66yy1m1.js";import{Ze}from"./chunk-famkkndg.js";import{autoUpdate as ot}from"@floating-ui/dom";import{cn as G}from"cn";import{BookOpenTextIcon as rt,FileIcon as st,StoreIcon as it}from"lucide-react";import{useCallback as lt,useEffect as d,useLayoutEffect as J,useMemo as X,useRef as Y,useState as v}from"react";import{createPortal as ut}from"react-dom";import{Button as Z}from"@nyssance/shadcn/vega/components/ui/button";import{Separator as at}from"@nyssance/shadcn/vega/components/ui/separator";import{jsx as m,jsxs as w,Fragment as ct}from"react/jsx-runtime";function po({handleRef:l,anchorRef:a,commands:T,searchFiles:u,onMention:_,onSearchError:B,fileSearchDebounceMs:C=0,bashMode:H=!1,forcedOpen:s=!1,onForcedOpenChange:p,emptyLabel:R,fileStatusLabels:E,morePlugins:M}){let A=Ze(),i=A.textInput.value,[j,z]=v(0),[g,D]=v(null),[x,h]=v(0),K=Y(null);d(()=>{let t=l.current?.getTextarea();if(!t)return;let e=()=>z(t.selectionStart??0),n=()=>{if(document.activeElement===t)e()};return t.addEventListener("keyup",e),t.addEventListener("click",e),t.addEventListener("input",e),t.addEventListener("select",e),t.addEventListener("focus",e),document.addEventListener("selectionchange",n),()=>{t.removeEventListener("keyup",e),t.removeEventListener("click",e),t.removeEventListener("input",e),t.removeEventListener("select",e),t.removeEventListener("focus",e),document.removeEventListener("selectionchange",n)}},[l]);let U=X(()=>H&&i.startsWith("!")?null:mo(i,j),[i,j,H]),o=U?.kind==="at"&&!u?null:U,P=`${o?.kind??"forced"}:${o?.query??""}:${s}`,[F,O]=v(P);if(F!==P)O(P),h(0);let L=Y(null);d(()=>{if(!s){L.current=null;return}if(L.current===null)L.current=i;else if(i!==L.current)p?.(!1)},[s,i,p]);let y=o?.kind==="at"?o.query:null;d(()=>{if(y===null||!u){D(null);return}let t=!0,e=()=>{u(y).then((r)=>{if(t)D({query:y,search:u,items:r})},(r)=>{if(t)D({query:y,search:u,items:[]}),B(r)})},n=C>0?window.setTimeout(e,C):null;if(n===null)e();return()=>{if(t=!1,n!==null)window.clearTimeout(n)}},[y,u,C,B]);let f=X(()=>{if(o?.kind==="at")return g?.query===o.query&&g.search===u?g.items:[];if(o)return an(T,o.query);if(s)return an(T,"");return[]},[o,s,T,g,u]),[tt,q]=v(!1);d(()=>{let t=l.current?.getTextarea();if(!t)return;let e=()=>q(!0),n=()=>{if(q(!1),s)p?.(!1)};return q(document.activeElement===t),t.addEventListener("focus",e),t.addEventListener("blur",n),()=>{t.removeEventListener("focus",e),t.removeEventListener("blur",n)}},[l,s,p]),d(()=>{if(s)l.current?.getTextarea()?.focus()},[s,l]);let c=tt&&(o!==null?o.kind==="slash"||f.length>0||!!E:s);d(()=>{if(!c)return;K.current?.querySelector(`[data-idx="${x}"]`)?.scrollIntoView({block:"nearest"})},[x,c]);function V(t){let e=l.current?.getTextarea();if(!e)return;let n,r;if(o){let S=o.kind==="slash"?`/${t.payload} `:`@${t.label} `;if(n=i.slice(0,o.start)+S+i.slice(o.end),o.kind==="at")_?.(t.payload);r=o.start+S.length}else if(s)n=`${i.length===0||i.endsWith(`
1
+ import{cn}from"./chunk-8qnrhq54.js";import{fo}from"./chunk-8mc330j2.js";import{Qe}from"./chunk-w49gke0h.js";import{autoUpdate as ot}from"@floating-ui/dom";import{cn as G}from"cn";import{BookOpenTextIcon as rt,FileIcon as st,StoreIcon as it}from"lucide-react";import{useCallback as lt,useEffect as d,useLayoutEffect as J,useMemo as X,useRef as Y,useState as v}from"react";import{createPortal as ut}from"react-dom";import{Button as Z}from"@nyssance/shadcn/vega/components/ui/button";import{Separator as at}from"@nyssance/shadcn/vega/components/ui/separator";import{jsx as m,jsxs as w,Fragment as ct}from"react/jsx-runtime";function go({handleRef:l,anchorRef:a,commands:T,searchFiles:u,onMention:_,onSearchError:B,fileSearchDebounceMs:C=0,bashMode:H=!1,forcedOpen:s=!1,onForcedOpenChange:p,emptyLabel:R,fileStatusLabels:E,morePlugins:M}){let A=Qe(),i=A.textInput.value,[j,z]=v(0),[g,D]=v(null),[x,h]=v(0),K=Y(null);d(()=>{let t=l.current?.getTextarea();if(!t)return;let e=()=>z(t.selectionStart??0),n=()=>{if(document.activeElement===t)e()};return t.addEventListener("keyup",e),t.addEventListener("click",e),t.addEventListener("input",e),t.addEventListener("select",e),t.addEventListener("focus",e),document.addEventListener("selectionchange",n),()=>{t.removeEventListener("keyup",e),t.removeEventListener("click",e),t.removeEventListener("input",e),t.removeEventListener("select",e),t.removeEventListener("focus",e),document.removeEventListener("selectionchange",n)}},[l]);let U=X(()=>H&&i.startsWith("!")?null:fo(i,j),[i,j,H]),o=U?.kind==="at"&&!u?null:U,P=`${o?.kind??"forced"}:${o?.query??""}:${s}`,[F,O]=v(P);if(F!==P)O(P),h(0);let L=Y(null);d(()=>{if(!s){L.current=null;return}if(L.current===null)L.current=i;else if(i!==L.current)p?.(!1)},[s,i,p]);let y=o?.kind==="at"?o.query:null;d(()=>{if(y===null||!u){D(null);return}let t=!0,e=()=>{u(y).then((r)=>{if(t)D({query:y,search:u,items:r})},(r)=>{if(t)D({query:y,search:u,items:[]}),B(r)})},n=C>0?window.setTimeout(e,C):null;if(n===null)e();return()=>{if(t=!1,n!==null)window.clearTimeout(n)}},[y,u,C,B]);let f=X(()=>{if(o?.kind==="at")return g?.query===o.query&&g.search===u?g.items:[];if(o)return cn(T,o.query);if(s)return cn(T,"");return[]},[o,s,T,g,u]),[tt,q]=v(!1);d(()=>{let t=l.current?.getTextarea();if(!t)return;let e=()=>q(!0),n=()=>{if(q(!1),s)p?.(!1)};return q(document.activeElement===t),t.addEventListener("focus",e),t.addEventListener("blur",n),()=>{t.removeEventListener("focus",e),t.removeEventListener("blur",n)}},[l,s,p]),d(()=>{if(s)l.current?.getTextarea()?.focus()},[s,l]);let c=tt&&(o!==null?o.kind==="slash"||f.length>0||!!E:s);d(()=>{if(!c)return;K.current?.querySelector(`[data-idx="${x}"]`)?.scrollIntoView({block:"nearest"})},[x,c]);function V(t){let e=l.current?.getTextarea();if(!e)return;let n,r;if(o){let S=o.kind==="slash"?`/${t.payload} `:`@${t.label} `;if(n=i.slice(0,o.start)+S+i.slice(o.end),o.kind==="at")_?.(t.payload);r=o.start+S.length}else if(s)n=`${i.length===0||i.endsWith(`
2
2
  `)?i:`${i}
3
3
  `}/${t.payload} `,r=n.length,p?.(!1);else return;A.textInput.setInput(n),requestAnimationFrame(()=>{e.focus(),e.setSelectionRange(r,r)})}d(()=>{let t=l.current?.getTextarea();if(!t)return;let e=(n)=>{if(!c)return;if(l.current?.isComposing()||n.isComposing||n.keyCode===229)return;if(n.key==="ArrowDown")n.preventDefault(),n.stopPropagation(),h((r)=>f.length===0?0:Math.min(f.length-1,r+1));else if(n.key==="ArrowUp")n.preventDefault(),n.stopPropagation(),h((r)=>Math.max(0,r-1));else if(n.key==="Enter"||n.key==="Tab"){n.preventDefault(),n.stopPropagation();let r=f[x];if(r)V(r)}else if(n.key==="Escape")if(n.preventDefault(),n.stopPropagation(),o)z(Math.max(0,o.start-1)),t.setSelectionRange(o.start,o.start);else p?.(!1)};return t.addEventListener("keydown",e,!0),()=>t.removeEventListener("keydown",e,!0)});let[b,W]=v(null),[N,et]=v(null),I=lt(()=>{let t=a?.current;if(!t)return;let e=t.getBoundingClientRect();W({left:e.left,width:e.width,bottom:window.innerHeight-e.top+8})},[a]);if(J(()=>{if(!c){W(null);return}I()},[c,I]),J(()=>{let t=a?.current;if(!c||!t||!N)return;return ot(t,N,I,{animationFrame:!0})},[c,N,a,I]),!c||a&&!b)return null;let k=o?o.kind==="slash":s,nt=k?rt:st,Q=m("div",{ref:et,className:a?"fixed z-50":"absolute inset-x-0 bottom-full z-50 mb-2",style:a&&b?{left:b.left,width:b.width,bottom:b.bottom}:void 0,children:w("div",{ref:K,role:"listbox",onMouseDown:(t)=>t.preventDefault(),className:"bg-popover text-popover-foreground ring-foreground/10 pointer-events-auto w-full overflow-hidden rounded-lg p-1 shadow-md ring-1 outline-hidden",children:[w("div",{className:"max-h-72 overflow-y-auto",children:[f.length===0&&k&&m("div",{className:"text-muted-foreground px-2 py-3 text-xs",children:R}),f.length===0&&!k&&E&&m("div",{role:"status",className:"text-muted-foreground px-2 py-3 text-xs",children:g?.query===y&&g.search===u?E.empty:E.loading}),f.map((t,e)=>w(Z,{type:"button",variant:"ghost",role:"option","aria-selected":e===x,"data-idx":e,onMouseDown:(n)=>{n.preventDefault(),V(t)},onMouseEnter:()=>h(e),className:G("flex h-auto w-full items-center justify-start gap-2.5 rounded-md px-2.5 py-2 text-start",e===x&&"bg-muted"),children:[m(nt,{className:G("size-4 shrink-0",k?"text-blue-500":"text-muted-foreground")}),m("span",{className:"text-foreground shrink-0 text-sm font-medium",children:t.label}),t.description&&m("span",{className:"text-muted-foreground min-w-0 flex-1 truncate text-xs",children:t.description})]},t.key))]}),k&&M&&w(ct,{children:[m(at,{}),w(Z,{type:"button",variant:"ghost",onMouseDown:(t)=>{t.preventDefault(),p?.(!1),M.open()},className:"h-auto w-full justify-start px-2.5 py-2",children:[m(it,{"data-icon":"inline-start"}),M.label]})]})]})});return a?ut(Q,document.body):Q}
4
- export{po};
4
+ export{go};
@@ -1,2 +1,2 @@
1
- import{k}from"./chunk-dxgha4a2.js";import{useState as g}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as w,DropdownMenuContent as x,DropdownMenuTrigger as b}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as o}from"react/jsx-runtime";function Do({value:a,currentName:n,icon:r,options:p,label:i,header:t,onValueChange:s,showLabel:d=!1,disabled:l=!1,warning:u=!1}){let[m,c]=g(!1);return o(w,{open:m,onOpenChange:c,children:[e(b,{render:o(f,{disabled:l,"data-permission-warning":u?"":void 0,variant:"ghost","aria-label":`${i}: ${n}`,title:n,className:"text-muted-foreground data-popup-open:hover:bg-muted h-7 gap-1.5 rounded-full bg-transparent px-2 text-xs font-normal whitespace-nowrap data-popup-open:bg-transparent",children:[r,e("span",{className:d?"max-w-40 truncate":"hidden max-w-40 truncate @[40rem]/input-footer:inline-block",children:n})]})}),o(x,{align:"start",sideOffset:4,className:"permission-mode-menu z-100 w-auto max-w-[calc(100vw-2rem)] min-w-72 rounded-xl p-1.5",children:[t&&e("div",{className:"text-muted-foreground flex items-center px-1.5 pt-0.5 pb-1 text-[11px] leading-4",children:e("span",{children:t})}),e(k,{value:a,onValueChange:s,itemClassName:"items-center gap-2 py-1 pr-6 pl-2 whitespace-nowrap",options:p})]})]})}
2
- export{Do};
1
+ import{S}from"./chunk-gdr4245h.js";import{useState as g}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as w,DropdownMenuContent as x,DropdownMenuTrigger as b}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as o}from"react/jsx-runtime";function Oo({value:a,currentName:n,icon:r,options:p,label:i,header:t,onValueChange:s,showLabel:d=!1,disabled:l=!1,warning:u=!1}){let[m,c]=g(!1);return o(w,{open:m,onOpenChange:c,children:[e(b,{render:o(f,{disabled:l,"data-permission-warning":u?"":void 0,variant:"ghost","aria-label":`${i}: ${n}`,title:n,className:"text-muted-foreground data-popup-open:hover:bg-muted h-7 gap-1.5 rounded-full bg-transparent px-2 text-xs font-normal whitespace-nowrap data-popup-open:bg-transparent",children:[r,e("span",{className:d?"max-w-40 truncate":"hidden max-w-40 truncate @[40rem]/input-footer:inline-block",children:n})]})}),o(x,{align:"start",sideOffset:4,className:"permission-mode-menu z-100 w-auto max-w-[calc(100vw-2rem)] min-w-72 rounded-xl p-1.5",children:[t&&e("div",{className:"text-muted-foreground flex items-center px-1.5 pt-0.5 pb-1 text-[11px] leading-4",children:e("span",{children:t})}),e(S,{value:a,onValueChange:s,itemClassName:"items-center gap-2 py-1 pr-6 pl-2 whitespace-nowrap",options:p})]})]})}
2
+ export{Oo};
@@ -1,2 +1,2 @@
1
- import{It}from"./chunk-0wr12bg8.js";import{Button as n}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as a,jsxs as o,Fragment as l}from"react/jsx-runtime";function rr({title:i,actions:r=[],children:t}){return o(l,{children:[o("div",{className:"flex h-[var(--navigation-row-height,30px)] items-center gap-0.5","data-tauri-drag-region":!0,children:[a("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold","data-tauri-drag-region":!0,children:i}),r.map((e)=>a(It,{label:e.label,shortcut:e.shortcut,children:a(n,{variant:"ghost",size:"icon-sm",className:"size-[var(--navigation-row-height,30px)] p-0","aria-label":e.label,onClick:e.onClick,children:e.icon})},e.key))]}),t!=null&&a("div",{className:"flex flex-col gap-0.5",children:t})]})}
2
- export{rr};
1
+ import{Nt}from"./chunk-q3b79z6s.js";import{Button as n}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as a,jsxs as o,Fragment as l}from"react/jsx-runtime";function sr({title:i,actions:r=[],children:t}){return o(l,{children:[o("div",{className:"flex h-[var(--navigation-row-height,30px)] items-center gap-0.5","data-tauri-drag-region":!0,children:[a("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold","data-tauri-drag-region":!0,children:i}),r.map((e)=>a(Nt,{label:e.label,shortcut:e.shortcut,children:a(n,{variant:"ghost",size:"icon-sm",className:"size-[var(--navigation-row-height,30px)] p-0","aria-label":e.label,onClick:e.onClick,children:e.icon})},e.key))]}),t!=null&&a("div",{className:"flex flex-col gap-0.5",children:t})]})}
2
+ export{sr};
@@ -1,2 +1,2 @@
1
- import{e}from"./chunk-epg5w48v.js";import{_t,Pt}from"./chunk-scxhc46w.js";import{Be}from"./chunk-v3etjs4w.js";import{ChevronDownIcon as h}from"lucide-react";import{useId as x,useState as v}from"react";import{Button as b}from"@nyssance/shadcn/vega/components/ui/button";import{Collapsible as A,CollapsibleContent as M,CollapsibleTrigger as I}from"@nyssance/shadcn/vega/components/ui/collapsible";import{Input as N}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as t,jsxs as i}from"react/jsx-runtime";function Vi({providers:n,store:l}){let{t:m}=e().host,d=_t(l);if(!n.some((s)=>s.models.length))return null;return i(A,{children:[i(I,{render:t(b,{variant:"ghost",size:"sm"}),children:[m("provider.managed.aliases"),t(h,{className:"size-4"})]}),i(M,{className:"space-y-3 pt-3",children:[t("p",{className:"text-muted-foreground text-xs",children:m("provider.managed.aliasHint")}),n.flatMap((s)=>s.models.map((o)=>{let a=Be(s.id,o.api_id);return t(S,{id:a,label:o.label,modelId:o.api_id,alias:d[a]??"",store:l},a)}))]})]})}function S({id:n,label:l,modelId:m,alias:d,store:s}){let{host:o}=e(),a=x(),[C,c]=v(null),[p,f]=v(!1),u=C??d;async function y(){f(!0);try{await Pt(s,n,u),c(null)}catch(r){let g=r instanceof Error?r:Error(String(r));if(o.reportError)o.reportError(g);else console.error(g)}finally{f(!1)}}return i("form",{className:"space-y-1.5",onSubmit:(r)=>{if(r.preventDefault(),!p)y()},children:[t("label",{htmlFor:a,className:"text-sm font-medium",children:l}),t("p",{className:"text-muted-foreground text-xs break-all",children:m}),i("div",{className:"flex items-center gap-2",children:[t(N,{id:a,value:u,placeholder:l,maxLength:100,disabled:p,onChange:(r)=>c(r.target.value)}),t(b,{type:"submit",variant:"outline",size:"sm",disabled:p||u.trim()===d,children:o.t("provider.managed.saveAlias")})]})]})}
2
- export{Vi};
1
+ import{e}from"./chunk-t9djctkk.js";import{ft,ht}from"./chunk-3pvs8s3b.js";import{ze}from"./chunk-69p0nqws.js";import{ChevronDownIcon as h}from"lucide-react";import{useId as x,useState as v}from"react";import{Button as b}from"@nyssance/shadcn/vega/components/ui/button";import{Collapsible as A,CollapsibleContent as M,CollapsibleTrigger as I}from"@nyssance/shadcn/vega/components/ui/collapsible";import{Input as N}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as t,jsxs as i}from"react/jsx-runtime";function $i({providers:n,store:l}){let{t:m}=e().host,d=ft(l);if(!n.some((s)=>s.models.length))return null;return i(A,{children:[i(I,{render:t(b,{variant:"ghost",size:"sm"}),children:[m("provider.managed.aliases"),t(h,{className:"size-4"})]}),i(M,{className:"space-y-3 pt-3",children:[t("p",{className:"text-muted-foreground text-xs",children:m("provider.managed.aliasHint")}),n.flatMap((s)=>s.models.map((o)=>{let a=ze(s.id,o.api_id);return t(S,{id:a,label:o.label,modelId:o.api_id,alias:d[a]??"",store:l},a)}))]})]})}function S({id:n,label:l,modelId:m,alias:d,store:s}){let{host:o}=e(),a=x(),[C,c]=v(null),[p,f]=v(!1),u=C??d;async function y(){f(!0);try{await ht(s,n,u),c(null)}catch(r){let g=r instanceof Error?r:Error(String(r));if(o.reportError)o.reportError(g);else console.error(g)}finally{f(!1)}}return i("form",{className:"space-y-1.5",onSubmit:(r)=>{if(r.preventDefault(),!p)y()},children:[t("label",{htmlFor:a,className:"text-sm font-medium",children:l}),t("p",{className:"text-muted-foreground text-xs break-all",children:m}),i("div",{className:"flex items-center gap-2",children:[t(N,{id:a,value:u,placeholder:l,maxLength:100,disabled:p,onChange:(r)=>c(r.target.value)}),t(b,{type:"submit",variant:"outline",size:"sm",disabled:p||u.trim()===d,children:o.t("provider.managed.saveAlias")})]})]})}
2
+ export{$i};
@@ -0,0 +1,2 @@
1
+ var ia=1e6,ra=5000000;function Mo(_,e){return _+e>5000000}function aa(_){return(_/1e6).toFixed(1)}var be=5;
2
+ export{ia,ra,Mo,aa,be};
@@ -1,2 +1,2 @@
1
- import{cn as S}from"cn";import{useRef as y,useState as k}from"react";import{jsx as m,jsxs as u}from"react/jsx-runtime";function cn({name:p,value:M,levels:h,disabled:c,onChange:P}){if(h.length===0)throw Error("EffortSlider requires at least one level");let o=h,g=Math.max(0,o.findIndex((t)=>t.value===M)),[v,d]=k(null),l=y(null),[I,x]=k(null),b=y(0),s=v??I??g,w=(t)=>{let n=++b.current;x(t);let e=()=>{if(b.current===n)x(null)};try{Promise.resolve(P(o[t].value)).then(e,e)}catch(N){throw e(),N}},f=100,r=14,a=2,i=o.length,C=a+s/Math.max(1,i-1)*(f-r-a*2);return u("div",{className:S("flex items-center justify-between px-2 py-2.5",c&&"opacity-50"),children:[u("span",{className:"grid shrink-0 text-sm whitespace-nowrap",children:[o.map((t)=>u("span",{"aria-hidden":!0,className:"invisible col-start-1 row-start-1",children:[p," ",u("span",{style:{fontSize:12},children:["(",t.name,")"]})]},t.value)),u("span",{className:"col-start-1 row-start-1",children:[p," ",u("span",{"data-effort-value":"",style:{fontSize:12},children:["(",o[s].name,")"]})]})]}),u("button",{type:"button",disabled:c,role:"slider","aria-label":p,"aria-valuemin":0,"aria-valuemax":i-1,"aria-valuenow":s,"aria-valuetext":o[s].name,onKeyDown:(t)=>{let n;if(t.key==="ArrowRight"||t.key==="ArrowUp")n=Math.min(i-1,s+1);else if(t.key==="ArrowLeft"||t.key==="ArrowDown")n=Math.max(0,s-1);else if(t.key==="Home")n=0;else if(t.key==="End")n=i-1;else return;if(t.preventDefault(),t.stopPropagation(),!c&&n!==s)w(n)},className:"relative shrink-0 cursor-pointer touch-none overflow-hidden rounded-full border-none p-0 disabled:cursor-default",style:{width:f,height:18,background:"var(--input)"},onPointerDown:(t)=>{if(c||t.button!==0)return;t.preventDefault(),t.stopPropagation(),t.currentTarget.focus(),t.currentTarget.setPointerCapture(t.pointerId);let n=t.currentTarget.getBoundingClientRect(),e=Math.round(Math.max(0,Math.min(1,(t.clientX-n.left-a-r/2)/Math.max(1,n.width-r-a*2)))*(i-1));l.current=e,d(e)},onPointerMove:(t)=>{if(l.current===null)return;let n=t.currentTarget.getBoundingClientRect(),e=Math.round(Math.max(0,Math.min(1,(t.clientX-n.left-a-r/2)/Math.max(1,n.width-r-a*2)))*(i-1));l.current=e,d(e)},onPointerUp:(t)=>{let n=l.current;if(l.current=null,d(null),t.currentTarget.hasPointerCapture(t.pointerId))t.currentTarget.releasePointerCapture(t.pointerId);if(!c&&n!==null&&n!==g)w(n)},onLostPointerCapture:()=>{l.current=null,d(null)},onPointerCancel:()=>{l.current=null,d(null)},onClick:(t)=>{t.preventDefault(),t.stopPropagation()},children:[m("span",{className:"absolute inset-y-0 left-0 w-full rounded-full",style:{background:"var(--input)"}}),o.map((t,n)=>{let e=a+r/2+n/Math.max(1,i-1)*(f-r-a*2)-2;return m("span",{className:"absolute top-1/2 size-1 -translate-y-1/2 rounded-full",style:{left:e,background:"color-mix(in srgb, var(--muted-foreground) 40%, transparent)"}},t.value)}),m("span",{className:"absolute rounded-full transition-all duration-150",style:{width:r,height:r,top:a,left:C,background:"var(--foreground)",boxShadow:"0 1px 2px #0003"}})]})]})}
2
- export{cn};
1
+ import{cn as S}from"cn";import{useRef as y,useState as k}from"react";import{jsx as m,jsxs as u}from"react/jsx-runtime";function un({name:p,value:M,levels:h,disabled:c,onChange:P}){if(h.length===0)throw Error("EffortSlider requires at least one level");let o=h,g=Math.max(0,o.findIndex((t)=>t.value===M)),[v,d]=k(null),l=y(null),[I,x]=k(null),b=y(0),s=v??I??g,w=(t)=>{let n=++b.current;x(t);let e=()=>{if(b.current===n)x(null)};try{Promise.resolve(P(o[t].value)).then(e,e)}catch(N){throw e(),N}},f=100,r=14,a=2,i=o.length,C=a+s/Math.max(1,i-1)*(f-r-a*2);return u("div",{className:S("flex items-center justify-between px-2 py-2.5",c&&"opacity-50"),children:[u("span",{className:"grid shrink-0 text-sm whitespace-nowrap",children:[o.map((t)=>u("span",{"aria-hidden":!0,className:"invisible col-start-1 row-start-1",children:[p," ",u("span",{style:{fontSize:12},children:["(",t.name,")"]})]},t.value)),u("span",{className:"col-start-1 row-start-1",children:[p," ",u("span",{"data-effort-value":"",style:{fontSize:12},children:["(",o[s].name,")"]})]})]}),u("button",{type:"button",disabled:c,role:"slider","aria-label":p,"aria-valuemin":0,"aria-valuemax":i-1,"aria-valuenow":s,"aria-valuetext":o[s].name,onKeyDown:(t)=>{let n;if(t.key==="ArrowRight"||t.key==="ArrowUp")n=Math.min(i-1,s+1);else if(t.key==="ArrowLeft"||t.key==="ArrowDown")n=Math.max(0,s-1);else if(t.key==="Home")n=0;else if(t.key==="End")n=i-1;else return;if(t.preventDefault(),t.stopPropagation(),!c&&n!==s)w(n)},className:"relative shrink-0 cursor-pointer touch-none overflow-hidden rounded-full border-none p-0 disabled:cursor-default",style:{width:f,height:18,background:"var(--input)"},onPointerDown:(t)=>{if(c||t.button!==0)return;t.preventDefault(),t.stopPropagation(),t.currentTarget.focus(),t.currentTarget.setPointerCapture(t.pointerId);let n=t.currentTarget.getBoundingClientRect(),e=Math.round(Math.max(0,Math.min(1,(t.clientX-n.left-a-r/2)/Math.max(1,n.width-r-a*2)))*(i-1));l.current=e,d(e)},onPointerMove:(t)=>{if(l.current===null)return;let n=t.currentTarget.getBoundingClientRect(),e=Math.round(Math.max(0,Math.min(1,(t.clientX-n.left-a-r/2)/Math.max(1,n.width-r-a*2)))*(i-1));l.current=e,d(e)},onPointerUp:(t)=>{let n=l.current;if(l.current=null,d(null),t.currentTarget.hasPointerCapture(t.pointerId))t.currentTarget.releasePointerCapture(t.pointerId);if(!c&&n!==null&&n!==g)w(n)},onLostPointerCapture:()=>{l.current=null,d(null)},onPointerCancel:()=>{l.current=null,d(null)},onClick:(t)=>{t.preventDefault(),t.stopPropagation()},children:[m("span",{className:"absolute inset-y-0 left-0 w-full rounded-full",style:{background:"var(--input)"}}),o.map((t,n)=>{let e=a+r/2+n/Math.max(1,i-1)*(f-r-a*2)-2;return m("span",{className:"absolute top-1/2 size-1 -translate-y-1/2 rounded-full",style:{left:e,background:"color-mix(in srgb, var(--muted-foreground) 40%, transparent)"}},t.value)}),m("span",{className:"absolute rounded-full transition-all duration-150",style:{width:r,height:r,top:a,left:C,background:"var(--foreground)",boxShadow:"0 1px 2px #0003"}})]})]})}
2
+ export{un};
@@ -1,2 +1,2 @@
1
- import{a,o}from"./chunk-eg86g265.js";import{latestAssistantReply as v}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useState as g}from"react";function Mt(e,r){let s=a(),c=o((t)=>t.connection),i=o((t)=>Boolean(t.sessions[e]?.attached)&&!t.sessions[e]?.restoring),u=o((t)=>v(t.sessions[e]?.items)),f=o((t)=>Boolean(t.runStates[e]?.reusableDraft)),[p,y]=g();return S(()=>{if(c!=="ready"||f||i)return;let t=!1,l,n=0,m=async()=>{try{let d=await s.activityReply(e);if(n=0,!t)y(d??void 0)}catch{n++}finally{if(!t&&(r==="running"||n>0&&n<3))l=setTimeout(()=>void m(),5000)}};return m(),()=>{t=!0,clearTimeout(l)}},[s,e,c,f,i,r]),i?u:p??u}
2
- export{Mt};
1
+ import{a,o}from"./chunk-tggrc8e5.js";import{latestAssistantReply as v}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useState as g}from"react";function At(e,r){let s=a(),c=o((t)=>t.connection),i=o((t)=>Boolean(t.sessions[e]?.attached)&&!t.sessions[e]?.restoring),u=o((t)=>v(t.sessions[e]?.items)),f=o((t)=>Boolean(t.runStates[e]?.reusableDraft)),[p,y]=g();return S(()=>{if(c!=="ready"||f||i)return;let t=!1,l,n=0,m=async()=>{try{let d=await s.activityReply(e);if(n=0,!t)y(d??void 0)}catch{n++}finally{if(!t&&(r==="running"||n>0&&n<3))l=setTimeout(()=>void m(),5000)}};return m(),()=>{t=!0,clearTimeout(l)}},[s,e,c,f,i,r]),i?u:p??u}
2
+ export{At};
@@ -1,2 +1,2 @@
1
- import{e}from"./chunk-epg5w48v.js";import{Alert as s,AlertDescription as a,AlertTitle as p}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as t,jsxs as c}from"react/jsx-runtime";function Hr({connection:n,error:i,onReconnect:r,className:l="mx-auto w-full max-w-3xl px-6 pt-12"}){let{t:o}=e().host;if(n!=="failed"&&n!=="disconnected")return null;return t("div",{className:l,children:c(s,{variant:"destructive",children:[t(p,{children:n==="failed"?o("connection.failed"):o("connection.disconnected")}),c(a,{className:"flex flex-wrap items-center gap-2",children:[i!==null&&t("span",{className:"font-mono",children:i}),t(m,{size:"sm",variant:"outline",onClick:r,children:o("connection.reconnect")})]})]})})}
2
- export{Hr};
1
+ import{e}from"./chunk-t9djctkk.js";import{Alert as s,AlertDescription as a,AlertTitle as p}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as t,jsxs as c}from"react/jsx-runtime";function Ur({connection:n,error:i,onReconnect:r,className:l="mx-auto w-full max-w-3xl px-6 pt-12"}){let{t:o}=e().host;if(n!=="failed"&&n!=="disconnected")return null;return t("div",{className:l,children:c(s,{variant:"destructive",children:[t(p,{children:n==="failed"?o("connection.failed"):o("connection.disconnected")}),c(a,{className:"flex flex-wrap items-center gap-2",children:[i!==null&&t("span",{className:"font-mono",children:i}),t(m,{size:"sm",variant:"outline",onClick:r,children:o("connection.reconnect")})]})]})})}
2
+ export{Ur};
@@ -1,2 +1,2 @@
1
- import{codexMessageError as u,codexTurnError as a}from"@nyssance/codex-acp-v2/client";var c=[10,30,120,300];function ti(e){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r],t=o.errors.at(-1),l=t===void 0?null:u(t);if(l===null||a(l).category!=="overloaded")break;if(n++,o.user!==null)break}return c[n-1]??null}
2
- export{ti};
1
+ import{codexMessageError as u,codexTurnError as a}from"@nyssance/codex-acp-v2/client";var c=[10,30,120,300];function oi(e){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r],t=o.errors.at(-1),l=t===void 0?null:u(t);if(l===null||a(l).category!=="overloaded")break;if(n++,o.user!==null)break}return c[n-1]??null}
2
+ export{oi};
@@ -0,0 +1,2 @@
1
+ var Lr={allow_once:0,allow_always:1,reject_once:2,reject_always:3};function Vo(e){return[...e].toSorted((o,n)=>(Lr[o.kind]??99)-(Lr[n.kind]??99))}function da(e){return e==="allow_once"||e==="allow_always"}function ua(e){return e==="allow_always"||e==="reject_always"}
2
+ export{Lr,Vo,da,ua};
@@ -1,2 +1,2 @@
1
- import{SquareIcon as l}from"lucide-react";import{useRef as u,useState as c}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{Spinner as p}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as r}from"react/jsx-runtime";function fe({title:t,onStop:i}){let[o,a]=c(!1),e=u(!1),s=async()=>{if(e.current)return;e.current=!0,a(!0);try{await i()}finally{e.current=!1,a(!1)}};return r(f,{variant:"ghost",size:"icon",className:"size-5",title:t,"aria-label":t,"aria-busy":o,disabled:o,onKeyDown:(n)=>n.stopPropagation(),onClick:(n)=>{n.stopPropagation(),s()},children:o?r(p,{className:"size-3","aria-label":t}):r(l,{className:"size-3 fill-current"})})}
2
- export{fe};
1
+ import{SquareIcon as l}from"lucide-react";import{useRef as u,useState as c}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{Spinner as p}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as r}from"react/jsx-runtime";function he({title:t,onStop:i}){let[o,a]=c(!1),e=u(!1),s=async()=>{if(e.current)return;e.current=!0,a(!0);try{await i()}finally{e.current=!1,a(!1)}};return r(f,{variant:"ghost",size:"icon",className:"size-5",title:t,"aria-label":t,"aria-busy":o,disabled:o,onKeyDown:(n)=>n.stopPropagation(),onClick:(n)=>{n.stopPropagation(),s()},children:o?r(p,{className:"size-3","aria-label":t}):r(l,{className:"size-3 fill-current"})})}
2
+ export{he};
@@ -1,2 +1,2 @@
1
- import{hasAccount as x}from"@nyssance/codex-acp-v2/client";import{useEffect as R,useState as S}from"react";var f="main",p="settings",y="settings:request-agent",w="settings:agent",E="settings:auth-request",A="settings:auth-result",T="settings:request-account",h="settings:account",P="settings:account-error",v=(t)=>t instanceof Error?t.message:String(t);function ji(t){return{agent:()=>{let n=t.state.agent;if(t.state.connection!=="ready"||!n?.info)return null;return{name:n.info.title??n.info.name,version:n.info.version,authMethods:n.authMethods??[],actions:t.state.actions.filter((o)=>o.sessionId===null)}},subscribe:(n)=>t.store.subscribe(n),logout:()=>t.logout(),login:(n,o)=>t.login(n,o),respond:(n,o)=>t.respond(n,o),account:async()=>{if(t.state.connection!=="ready"||!x(t.state.agent))return null;let[n,o]=await Promise.all([t.readAccount(),t.readRateLimits().catch(()=>null)]);return{account:n,rateLimits:o}},onRateLimits:(n)=>t.onRateLimits(n)}}function $i(t,n){let{listen:o,emitTo:u}=n,g=t.agent(),l=()=>{let s=t.agent();if(u(p,w,s),g===null!==(s===null))c();g=s},i=null,r=0,a=!1,c=async()=>{let s=++r;try{let d=await t.account();if(a||s!==r)return;i=d,await u(p,h,i)}catch(d){if(a||s!==r)return;await u(p,P,v(d))}},e=t.subscribe(l),m=t.onRateLimits((s)=>{if(i===null)return;i={...i,rateLimits:s},u(p,h,i)}),b=Promise.all([o(y,l),o(T,()=>void c()),o(E,({payload:s})=>void(async()=>{try{switch(s.action){case"login":await t.login(s.methodId,s.extra),await c();break;case"logout":await t.logout(),await c();break;case"respond":t.respond(s.actionId,s.answer);break}await u(p,A,{id:s.id,error:null})}catch(d){await u(p,A,{id:s.id,error:v(d)})}})())]);return()=>{a=!0,r++,e(),m(),b.then((s)=>{for(let d of s)d()})}}function Ki(t,n=console.error){let{listen:o,emitTo:u}=t,g;async function l(i){let r,a=new Promise((e)=>{r=e}),c=await o(A,(e)=>{if(e.payload.id===i.id)r(e.payload)});try{await u(f,E,i);let{error:e}=await a;if(e!==null)throw Error(e)}finally{c()}}return{useSettingsAccount(){let[i,r]=S(()=>g);return R(()=>{let a=!1,c=Promise.all([o(h,(e)=>{if(a)return;g=e.payload,r(e.payload)}),o(P,(e)=>{if(a)return;if(g===void 0)r(null),n(e.payload);else console.error("Account refresh failed",e.payload)})]);return c.then(()=>{if(!a)return u(f,T)}),()=>{a=!0,c.then((e)=>{for(let m of e)m()})}},[]),i},useSettingsAgent(){let[i,r]=S(void 0);return R(()=>{let a=!1,c=o(w,(e)=>{if(!a)r(e.payload)});return c.then(()=>{if(!a)return u(f,y)}),()=>{a=!0,c.then((e)=>e())}},[]),i},requestSignOut:()=>l({id:crypto.randomUUID(),action:"logout"}),requestSignIn:(i,r)=>l({id:crypto.randomUUID(),action:"login",methodId:i,extra:r}),requestActionResponse:(i,r)=>l({id:crypto.randomUUID(),action:"respond",actionId:i,answer:r})}}
2
- export{ji,$i,Ki};
1
+ import{hasAccount as x}from"@nyssance/codex-acp-v2/client";import{useEffect as R,useState as S}from"react";var f="main",p="settings",y="settings:request-agent",w="settings:agent",E="settings:auth-request",A="settings:auth-result",T="settings:request-account",h="settings:account",P="settings:account-error",v=(t)=>t instanceof Error?t.message:String(t);function Ki(t){return{agent:()=>{let n=t.state.agent;if(t.state.connection!=="ready"||!n?.info)return null;return{name:n.info.title??n.info.name,version:n.info.version,authMethods:n.authMethods??[],actions:t.state.actions.filter((o)=>o.sessionId===null)}},subscribe:(n)=>t.store.subscribe(n),logout:()=>t.logout(),login:(n,o)=>t.login(n,o),respond:(n,o)=>t.respond(n,o),account:async()=>{if(t.state.connection!=="ready"||!x(t.state.agent))return null;let[n,o]=await Promise.all([t.readAccount(),t.readRateLimits().catch(()=>null)]);return{account:n,rateLimits:o}},onRateLimits:(n)=>t.onRateLimits(n)}}function qi(t,n){let{listen:o,emitTo:u}=n,g=t.agent(),l=()=>{let s=t.agent();if(u(p,w,s),g===null!==(s===null))c();g=s},i=null,r=0,a=!1,c=async()=>{let s=++r;try{let d=await t.account();if(a||s!==r)return;i=d,await u(p,h,i)}catch(d){if(a||s!==r)return;await u(p,P,v(d))}},e=t.subscribe(l),m=t.onRateLimits((s)=>{if(i===null)return;i={...i,rateLimits:s},u(p,h,i)}),b=Promise.all([o(y,l),o(T,()=>void c()),o(E,({payload:s})=>void(async()=>{try{switch(s.action){case"login":await t.login(s.methodId,s.extra),await c();break;case"logout":await t.logout(),await c();break;case"respond":t.respond(s.actionId,s.answer);break}await u(p,A,{id:s.id,error:null})}catch(d){await u(p,A,{id:s.id,error:v(d)})}})())]);return()=>{a=!0,r++,e(),m(),b.then((s)=>{for(let d of s)d()})}}function Wi(t,n=console.error){let{listen:o,emitTo:u}=t,g;async function l(i){let r,a=new Promise((e)=>{r=e}),c=await o(A,(e)=>{if(e.payload.id===i.id)r(e.payload)});try{await u(f,E,i);let{error:e}=await a;if(e!==null)throw Error(e)}finally{c()}}return{useSettingsAccount(){let[i,r]=S(()=>g);return R(()=>{let a=!1,c=Promise.all([o(h,(e)=>{if(a)return;g=e.payload,r(e.payload)}),o(P,(e)=>{if(a)return;if(g===void 0)r(null),n(e.payload);else console.error("Account refresh failed",e.payload)})]);return c.then(()=>{if(!a)return u(f,T)}),()=>{a=!0,c.then((e)=>{for(let m of e)m()})}},[]),i},useSettingsAgent(){let[i,r]=S(void 0);return R(()=>{let a=!1,c=o(w,(e)=>{if(!a)r(e.payload)});return c.then(()=>{if(!a)return u(f,y)}),()=>{a=!0,c.then((e)=>e())}},[]),i},requestSignOut:()=>l({id:crypto.randomUUID(),action:"logout"}),requestSignIn:(i,r)=>l({id:crypto.randomUUID(),action:"login",methodId:i,extra:r}),requestActionResponse:(i,r)=>l({id:crypto.randomUUID(),action:"respond",actionId:i,answer:r})}}
2
+ export{Ki,qi,Wi};
@@ -1,2 +1,2 @@
1
- import{Ping as l}from"ldrs/react";import"ldrs/react/Ping.css";import{cn as i}from"cn";import{jsx as e,jsxs as u}from"react/jsx-runtime";var ao={requires_action:"bg-red-500",running:"bg-yellow-500",done:"bg-blue-500",idle:"bg-green-500"},so={requires_action:"text-red-500",running:"text-yellow-500",done:"text-blue-500",idle:"text-green-500"};function A({state:n,className:t,pulse:s=!0,title:r}){if(n===void 0)return null;let o=ao[n];if(n==="running"&&s)return u("span",{title:r,className:i("relative inline-flex size-1.5 shrink-0 items-center justify-center",so.running,t),children:[e("span",{className:"absolute inset-0 flex items-center justify-center",children:e(l,{size:"26",speed:"2",color:"currentColor"})}),e("span",{className:"relative size-1.5 rounded-full bg-current"})]});return e("span",{title:r,className:i("size-2 shrink-0 rounded-full",o,t)})}
2
- export{ao,so,A};
1
+ import{Ping as l}from"ldrs/react";import"ldrs/react/Ping.css";import{cn as i}from"cn";import{jsx as e,jsxs as u}from"react/jsx-runtime";var lo={requires_action:"bg-red-500",running:"bg-yellow-500",done:"bg-blue-500",idle:"bg-green-500"},co={requires_action:"text-red-500",running:"text-yellow-500",done:"text-blue-500",idle:"text-green-500"};function E({state:n,className:t,pulse:s=!0,title:r}){if(n===void 0)return null;let o=lo[n];if(n==="running"&&s)return u("span",{title:r,className:i("relative inline-flex size-1.5 shrink-0 items-center justify-center",co.running,t),children:[e("span",{className:"absolute inset-0 flex items-center justify-center",children:e(l,{size:"26",speed:"2",color:"currentColor"})}),e("span",{className:"relative size-1.5 rounded-full bg-current"})]});return e("span",{title:r,className:i("size-2 shrink-0 rounded-full",o,t)})}
2
+ export{lo,co,E};
@@ -1,2 +1,2 @@
1
- import{we}from"./chunk-z8njjc2c.js";import{createContext as v,useContext as C,useMemo as a}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function Xt({host:o,client:n,children:t}){let s=a(()=>({host:o,client:n}),[o,n]);return r(we,{host:o,client:n,children:r(i,{value:s,children:t})})}function e(){let o=C(i);if(o===null)throw Error("Conversation host is missing");return o}function f(o,n){n.catch((t)=>{if(o.reportError)o.reportError(t);else console.error(t)})}
2
- export{Xt,e,f};
1
+ import{ke}from"./chunk-1vmk34zf.js";import{createContext as v,useContext as C,useMemo as a}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function Jt({host:o,client:n,children:t}){let s=a(()=>({host:o,client:n}),[o,n]);return r(ke,{host:o,client:n,children:r(i,{value:s,children:t})})}function e(){let o=C(i);if(o===null)throw Error("Conversation host is missing");return o}function f(o,n){n.catch((t)=>{if(o.reportError)o.reportError(t);else console.error(t)})}
2
+ export{Jt,e,f};
@@ -1,2 +1,2 @@
1
- import{n}from"./chunk-z8njjc2c.js";import{et}from"./chunk-k2q7wjp6.js";import{e,f}from"./chunk-epg5w48v.js";import{Loader2Icon as v}from"lucide-react";import{Button as x}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as p,EmptyDescription as c,EmptyHeader as l,EmptyTitle as d}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as o,jsxs as r}from"react/jsx-runtime";function Zt({session:t,timeline:y}){let{host:m,client:s}=e(),{t:i}=m,u=n((h)=>h.historyPages[t.id]?.cursor!=null),E=()=>f(m,s.open(t.id,t.cwd)),a=o(et,{...y,session:t,client:s,host:m});if(t.restoring)return t.items.length===0?r("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[o(v,{className:"size-4 animate-spin","aria-hidden":"true"}),i("conversation.restoring")]}):a;if(!t.attached&&t.items.length===0)return r(p,{className:"flex-1",children:[r(l,{children:[o(d,{children:i("conversation.reopen")}),o(c,{children:i("conversation.detached")})]}),o(x,{onClick:E,children:i("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!u)return o(p,{className:"flex-1",children:r(l,{children:[o(d,{className:"text-[28px] font-normal",children:i("conversation.welcomeTitle")}),o(c,{className:"truncate font-mono",children:t.cwd})]})});return a}
2
- export{Zt};
1
+ import{n}from"./chunk-1vmk34zf.js";import{tt}from"./chunk-9vm0y271.js";import{e,f}from"./chunk-t9djctkk.js";import{Loader2Icon as v}from"lucide-react";import{Button as x}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as p,EmptyDescription as c,EmptyHeader as l,EmptyTitle as d}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as o,jsxs as r}from"react/jsx-runtime";function Qt({session:t,timeline:y}){let{host:m,client:s}=e(),{t:i}=m,u=n((h)=>h.historyPages[t.id]?.cursor!=null),E=()=>f(m,s.open(t.id,t.cwd)),a=o(tt,{...y,session:t,client:s,host:m});if(t.restoring)return t.items.length===0?r("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[o(v,{className:"size-4 animate-spin","aria-hidden":"true"}),i("conversation.restoring")]}):a;if(!t.attached&&t.items.length===0)return r(p,{className:"flex-1",children:[r(l,{children:[o(d,{children:i("conversation.reopen")}),o(c,{children:i("conversation.detached")})]}),o(x,{onClick:E,children:i("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!u)return o(p,{className:"flex-1",children:r(l,{children:[o(d,{className:"text-[28px] font-normal",children:i("conversation.welcomeTitle")}),o(c,{className:"truncate font-mono",children:t.cwd})]})});return a}
2
+ export{Qt};
@@ -1,2 +1,2 @@
1
- import{ri}from"./chunk-r7svwjdg.js";import{isPlanItems as o}from"@nyssance/codex-acp-v2/client";function ii(s,r){let n=s.items.findLast((e)=>e.kind!=="user"),a=s.items.map((e)=>{switch(e.kind){case"user":return{key:e.id,kind:"user",active:!1};case"tool":return{key:e.id,kind:"tool",active:e.status==="pending"||e.status==="in_progress"};case"compaction":return{key:e.id,kind:"compaction",active:e.status==="in_progress"};case"plan":return{key:e.id,kind:"plan",active:o(e.plan)&&e.plan.entries.some((t)=>t.status==="in_progress")};case"thought":return{key:e.id,kind:"reasoning",active:e===n};case"assistant":{let t=e._meta?.codex,i=typeof t==="object"&&t!==null&&(("messageCompleted"in t)&&t.messageCompleted===!0||("messageCompletedAt"in t)&&typeof t.messageCompletedAt==="number");return{key:e.id,kind:s.final.includes(e)?"answer":"text",active:e===n&&!i}}}});return ri(a,r)}
2
- export{ii};
1
+ import{si}from"./chunk-ps74k3c4.js";import{isPlanItems as o}from"@nyssance/codex-acp-v2/client";function ai(s,r){let n=s.items.findLast((e)=>e.kind!=="user"),a=s.items.map((e)=>{switch(e.kind){case"user":return{key:e.id,kind:"user",active:!1};case"tool":return{key:e.id,kind:"tool",active:e.status==="pending"||e.status==="in_progress"};case"compaction":return{key:e.id,kind:"compaction",active:e.status==="in_progress"};case"plan":return{key:e.id,kind:"plan",active:o(e.plan)&&e.plan.entries.some((t)=>t.status==="in_progress")};case"thought":return{key:e.id,kind:"reasoning",active:e===n};case"assistant":{let t=e._meta?.codex,i=typeof t==="object"&&t!==null&&(("messageCompleted"in t)&&t.messageCompleted===!0||("messageCompletedAt"in t)&&typeof t.messageCompletedAt==="number");return{key:e.id,kind:s.final.includes(e)?"answer":"text",active:e===n&&!i}}}});return si(a,r)}
2
+ export{ai};
@@ -1,2 +1,2 @@
1
- import{w}from"./chunk-spfbykq8.js";import{createContext as S,useContext as c,useState as x,useSyncExternalStore as D}from"react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as L,DialogContent as y,DialogDescription as h,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 m=S(null),C=S(null),v=S(null);function Cr({host:e,client:t,children:n}){let[s,l]=x(null);w(s!==null);let{t:u}=e;return i(m,{value:e,children:i(C,{value:t,children:d(v,{value:l,children:[n,i(L,{open:s!==null,onOpenChange:(f)=>!f&&l(null),children:d(y,{children:[d(H,{children:[i(R,{children:u("sessionList.deleteTitle")}),i(h,{children:u("sessionList.deleteDescription")})]}),d(P,{children:[i(g,{variant:"outline",onClick:()=>l(null),children:u("sessionList.cancel")}),i(g,{onClick:()=>{if(s)p(e,t.delete(s.sessionId));l(null)},children:u("sessionList.delete")})]})]})})]})})})}function r(){let e=c(m);if(e===null)throw Error("Session list host is missing");return e}function io(){return c(m)}function a(){let e=c(C);if(e===null)throw Error("Session list client is missing");return e}function Lt(){let e=c(v);if(e===null)throw Error("Session list provider is missing");return e}function o(e){let t=a();return D((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{Cr,r,io,a,Lt,o,p};
1
+ import{k}from"./chunk-4kevwekp.js";import{createContext as S,useContext as c,useState as x,useSyncExternalStore as D}from"react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as L,DialogContent as y,DialogDescription as h,DialogFooter as w,DialogHeader as P,DialogTitle as H}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as d}from"react/jsx-runtime";var m=S(null),C=S(null),v=S(null);function kr({host:e,client:t,children:n}){let[s,l]=x(null);k(s!==null);let{t:u}=e;return i(m,{value:e,children:i(C,{value:t,children:d(v,{value:l,children:[n,i(L,{open:s!==null,onOpenChange:(f)=>!f&&l(null),children:d(y,{children:[d(P,{children:[i(H,{children:u("sessionList.deleteTitle")}),i(h,{children:u("sessionList.deleteDescription")})]}),d(w,{children:[i(g,{variant:"outline",onClick:()=>l(null),children:u("sessionList.cancel")}),i(g,{onClick:()=>{if(s)p(e,t.delete(s.sessionId));l(null)},children:u("sessionList.delete")})]})]})})]})})})}function r(){let e=c(m);if(e===null)throw Error("Session list host is missing");return e}function ao(){return c(m)}function a(){let e=c(C);if(e===null)throw Error("Session list client is missing");return e}function Lt(){let e=c(v);if(e===null)throw Error("Session list provider is missing");return e}function o(e){let t=a();return D((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{kr,r,ao,a,Lt,o,p};
@@ -1,2 +1,2 @@
1
- import{A}from"./chunk-2f9vjmxz.js";import{Button as u}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as d,DropdownMenuContent as m,DropdownMenuGroup as w,DropdownMenuItem as i,DropdownMenuLabel as S,DropdownMenuTrigger as c}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as a}from"react/jsx-runtime";var M=["requires_action","running","done","idle"];function wr({sessions:l,onSelect:p,t:n}){return e("div",{className:"flex shrink-0 items-center gap-0.5",role:"group","aria-label":n("sessionList.states.title"),children:M.map((o)=>{let s=l.filter((t)=>t.state===o),r=n(`sessionList.states.${o}`);return a(d,{children:[a(c,{render:e(u,{variant:"ghost",size:"xs"}),"aria-label":`${r}: ${s.length}`,children:[e(A,{state:o,pulse:!1}),e("span",{className:"tabular-nums",children:s.length})]}),e(m,{"aria-label":r,className:"w-72 max-w-[calc(100vw-1rem)]",children:a(w,{children:[e(S,{children:r}),s.length===0?e(i,{disabled:!0,children:n("sessionList.states.empty")}):s.map((t)=>a(i,{onClick:()=>p(t),children:[e(A,{state:t.state,pulse:!1}),e("span",{className:"min-w-0 flex-1 truncate",children:t.title||n("sessionList.untitled")})]},t.sessionId))]})})]},o)})})}
2
- export{wr};
1
+ import{E}from"./chunk-t63mwyg0.js";import{Button as u}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as d,DropdownMenuContent as m,DropdownMenuGroup as w,DropdownMenuItem as i,DropdownMenuLabel as S,DropdownMenuTrigger as c}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as a}from"react/jsx-runtime";var M=["requires_action","running","done","idle"];function Sr({sessions:l,onSelect:p,t:n}){return e("div",{className:"flex shrink-0 items-center gap-0.5",role:"group","aria-label":n("sessionList.states.title"),children:M.map((o)=>{let s=l.filter((t)=>t.state===o),r=n(`sessionList.states.${o}`);return a(d,{children:[a(c,{render:e(u,{variant:"ghost",size:"xs"}),"aria-label":`${r}: ${s.length}`,children:[e(E,{state:o,pulse:!1}),e("span",{className:"tabular-nums",children:s.length})]}),e(m,{"aria-label":r,className:"w-72 max-w-[calc(100vw-1rem)]",children:a(w,{children:[e(S,{children:r}),s.length===0?e(i,{disabled:!0,children:n("sessionList.states.empty")}):s.map((t)=>a(i,{onClick:()=>p(t),children:[e(E,{state:t.state,pulse:!1}),e("span",{className:"min-w-0 flex-1 truncate",children:t.title||n("sessionList.untitled")})]},t.sessionId))]})})]},o)})})}
2
+ export{Sr};
@@ -1,2 +1,2 @@
1
- var z=/[\\/._\- ]/;function h(r,n){if(n===0)return!0;let s=r[n-1];if(z.test(s))return!0;let c=r[n];if(s===s.toLowerCase()&&c!==c.toLowerCase())return!0;return!1}function ln(r,n){if(!n)return{score:0,indices:[]};let s=r.toLowerCase(),c=n.toLowerCase(),i=[],t=0,e=0,u=-2;for(let l of c.split("")){let o=-1;while(t<s.length){if(s[t]===l){o=t;break}t++}if(o<0)return null;if(e+=1,o===u+1)e+=4;if(h(r,o))e+=5;let f=r.lastIndexOf("/");if(f!==-1&&o>f)e+=2;i.push(o),u=o,t=o+1}if(e-=Math.floor(r.length/50),r.includes(n))e+=3;return{score:e,indices:i}}function vo(r,n,s,c=100){if(!n)return r.slice(0,c).map((t)=>({item:t,score:0,indices:[]}));let i=[];for(let t of r){let e=ln(s(t),n);if(!e)continue;i.push({item:t,score:e.score,indices:e.indices})}return i.sort((t,e)=>e.score-t.score),i.slice(0,c)}
2
- export{ln,vo};
1
+ var z=/[\\/._\- ]/;function h(r,n){if(n===0)return!0;let s=r[n-1];if(z.test(s))return!0;let c=r[n];if(s===s.toLowerCase()&&c!==c.toLowerCase())return!0;return!1}function dn(r,n){if(!n)return{score:0,indices:[]};let s=r.toLowerCase(),c=n.toLowerCase(),i=[],t=0,e=0,u=-2;for(let l of c.split("")){let o=-1;while(t<s.length){if(s[t]===l){o=t;break}t++}if(o<0)return null;if(e+=1,o===u+1)e+=4;if(h(r,o))e+=5;let f=r.lastIndexOf("/");if(f!==-1&&o>f)e+=2;i.push(o),u=o,t=o+1}if(e-=Math.floor(r.length/50),r.includes(n))e+=3;return{score:e,indices:i}}function xo(r,n,s,c=100){if(!n)return r.slice(0,c).map((t)=>({item:t,score:0,indices:[]}));let i=[];for(let t of r){let e=dn(s(t),n);if(!e)continue;i.push({item:t,score:e.score,indices:e.indices})}return i.sort((t,e)=>e.score-t.score),i.slice(0,c)}
2
+ export{dn,xo};
@@ -1,5 +1,5 @@
1
- import{vn}from"./chunk-0v2d2kme.js";import{t}from"./chunk-z8njjc2c.js";import{isDiffEntry as p}from"@nyssance/codex-acp-v2/client";import{jsx as c,jsxs as g,Fragment as h}from"react/jsx-runtime";function Vr(o,s){let e=o.split(/^(?=diff --git )/m).filter((i)=>i.length>0);if(e.length<=1)return o;return e.find((i)=>{let a=i.split(`
2
- `,1)[0]??"";return a.endsWith(` b/${s}`)||a.endsWith(` ${s}`)||a.includes(`/${s} `)})??o}function jr(o){let s=new Map,e=null;for(let n of o.split(`
3
- `)){if(n.startsWith("diff --git ")){e=null;continue}if(n.startsWith("+++ ")){let i=n.slice(4).trim(),a=i==="/dev/null"?null:i.replace(/^b\//,"");if(a!==null)e={additions:0,deletions:0},s.set(a,e);continue}if(n.startsWith("--- ")){let i=n.slice(4).trim();if(i!=="/dev/null"&&e===null)e={additions:0,deletions:0},s.set(i.replace(/^a\//,""),e);continue}if(e===null)continue;if(n.startsWith("+"))e.additions+=1;else if(n.startsWith("-"))e.deletions+=1}return s}function u(o,s){let e=s.replaceAll("\\","/");for(let[n,i]of o)if(e===n||e.endsWith(`/${n}`))return i;return{additions:0,deletions:0}}function $r(o){let s=new Map;for(let e of o)for(let n of e.content){if(!p(n))continue;let i=n.patch?jr(n.patch.text):new Map;for(let a of n.changes){let r=typeof a.path==="string"?a.path:null;if(r===null)continue;let d=u(i,r),f=n.patch?Vr(n.patch.text,r):"",l=s.get(r);if(l)l.additions+=d.additions,l.deletions+=d.deletions,l.patch=l.patch?`${l.patch}
4
- ${f}`:f;else s.set(r,{path:r,patch:f,...d})}}return[...s.values()]}function Qo({items:o}){let s=t(),{openDiff:e,FileIcon:n}=s;return c(vn,{files:$r(o),actions:s.EditedFilesActions?c(s.EditedFilesActions,{items:o}):void 0,onOpen:e===void 0?void 0:(i)=>e({path:i.path,patch:i.patch}),renderPath:n===void 0?void 0:(i)=>g(h,{children:[c(n,{path:i.path,className:"codex-edited-file-icon"}),c("span",{className:"codex-edited-file-name",children:i.path})]})})}
5
- export{Vr,jr,$r,Qo};
1
+ import{xn}from"./chunk-ddj8ag0b.js";import{t}from"./chunk-1vmk34zf.js";import{isDiffEntry as p}from"@nyssance/codex-acp-v2/client";import{jsx as c,jsxs as g,Fragment as h}from"react/jsx-runtime";function Kr(o,s){let e=o.split(/^(?=diff --git )/m).filter((i)=>i.length>0);if(e.length<=1)return o;return e.find((i)=>{let a=i.split(`
2
+ `,1)[0]??"";return a.endsWith(` b/${s}`)||a.endsWith(` ${s}`)||a.includes(`/${s} `)})??o}function qr(o){let s=new Map,e=null;for(let n of o.split(`
3
+ `)){if(n.startsWith("diff --git ")){e=null;continue}if(n.startsWith("+++ ")){let i=n.slice(4).trim(),a=i==="/dev/null"?null:i.replace(/^b\//,"");if(a!==null)e={additions:0,deletions:0},s.set(a,e);continue}if(n.startsWith("--- ")){let i=n.slice(4).trim();if(i!=="/dev/null"&&e===null)e={additions:0,deletions:0},s.set(i.replace(/^a\//,""),e);continue}if(e===null)continue;if(n.startsWith("+"))e.additions+=1;else if(n.startsWith("-"))e.deletions+=1}return s}function u(o,s){let e=s.replaceAll("\\","/");for(let[n,i]of o)if(e===n||e.endsWith(`/${n}`))return i;return{additions:0,deletions:0}}function Wr(o){let s=new Map;for(let e of o)for(let n of e.content){if(!p(n))continue;let i=n.patch?qr(n.patch.text):new Map;for(let a of n.changes){let r=typeof a.path==="string"?a.path:null;if(r===null)continue;let d=u(i,r),f=n.patch?Kr(n.patch.text,r):"",l=s.get(r);if(l)l.additions+=d.additions,l.deletions+=d.deletions,l.patch=l.patch?`${l.patch}
4
+ ${f}`:f;else s.set(r,{path:r,patch:f,...d})}}return[...s.values()]}function Xo({items:o}){let s=t(),{openDiff:e,FileIcon:n}=s;return c(xn,{files:Wr(o),actions:s.EditedFilesActions?c(s.EditedFilesActions,{items:o}):void 0,onOpen:e===void 0?void 0:(i)=>e({path:i.path,patch:i.patch}),renderPath:n===void 0?void 0:(i)=>g(h,{children:[c(n,{path:i.path,className:"codex-edited-file-icon"}),c("span",{className:"codex-edited-file-name",children:i.path})]})})}
5
+ export{Kr,qr,Wr,Xo};
@@ -1,2 +1,2 @@
1
- import{n}from"./chunk-z8njjc2c.js";import{e}from"./chunk-epg5w48v.js";import{Ee,Xe,be}from"./chunk-n368fh3r.js";import{Ye}from"./chunk-e2q5znh5.js";import{inSessionTree as c}from"@nyssance/codex-acp-v2/client";import{jsx as o,jsxs as u,Fragment as x}from"react/jsx-runtime";var p=[];function Ft({sessionId:s}){let i=n((t)=>t.sessions),{host:f}=e(),a=n((t)=>t.actions),d=a.some((t)=>c(i,s,t.sessionId))?a.filter((t)=>c(i,s,t.sessionId)):p,r=d.filter(Ee).filter((t)=>{if(t.sessionId!==s||i[s]?.subagent!==void 0)return!0;let l=t.params._meta?.codex;return!(typeof l==="object"&&l!==null&&("delivery"in l)&&l.delivery==="async")}),m=d.filter((t)=>!Ee(t));return u(x,{children:[o("div",{className:"mx-auto max-h-[50vh] w-full max-w-3xl shrink-0 overflow-y-auto px-3","data-subagent-shelf":!0,children:o(Ye,{sessionId:s})}),m.length>0&&o("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:m.map((t)=>u("div",{children:[t.sessionId!==s&&o("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:t.sessionId===null?"":i[t.sessionId]?.title??f.t("subagents.untitled")}),o(be,{action:t})]},t.id))}),r[0]!==void 0&&o(Xe,{action:r[0],total:r.length},r[0].id)]})}
2
- export{Ft};
1
+ import{n}from"./chunk-1vmk34zf.js";import{e}from"./chunk-t9djctkk.js";import{Re,Je,Ce}from"./chunk-8j39jdxr.js";import{Xe}from"./chunk-78qh8049.js";import{inSessionTree as c}from"@nyssance/codex-acp-v2/client";import{jsx as o,jsxs as u,Fragment as x}from"react/jsx-runtime";var p=[];function Dt({sessionId:s}){let i=n((t)=>t.sessions),{host:f}=e(),a=n((t)=>t.actions),d=a.some((t)=>c(i,s,t.sessionId))?a.filter((t)=>c(i,s,t.sessionId)):p,r=d.filter(Re).filter((t)=>{if(t.sessionId!==s||i[s]?.subagent!==void 0)return!0;let l=t.params._meta?.codex;return!(typeof l==="object"&&l!==null&&("delivery"in l)&&l.delivery==="async")}),m=d.filter((t)=>!Re(t));return u(x,{children:[o("div",{className:"mx-auto max-h-[50vh] w-full max-w-3xl shrink-0 overflow-y-auto px-3","data-subagent-shelf":!0,children:o(Xe,{sessionId:s})}),m.length>0&&o("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:m.map((t)=>u("div",{children:[t.sessionId!==s&&o("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:t.sessionId===null?"":i[t.sessionId]?.title??f.t("subagents.untitled")}),o(Ce,{action:t})]},t.id))}),r[0]!==void 0&&o(Je,{action:r[0],total:r.length},r[0].id)]})}
2
+ export{Dt};
@@ -1,2 +1,2 @@
1
- import{tt}from"./chunk-htjpckp6.js";import{ni}from"./chunk-6k8m2c80.js";import{t}from"./chunk-z8njjc2c.js";import{Z}from"./chunk-hcwgc3r7.js";import{Sn}from"./chunk-7zryea1b.js";import{isContentEntry as f,isEmbeddedResource as y,isResourceLink as g}from"@nyssance/codex-acp-v2/client";import{memo as k,useMemo as v}from"react";import{jsx as l,jsxs as u,Fragment as T}from"react/jsx-runtime";function R({item:n}){if(n.name==="view_image"&&n.status==="completed")return null;let r=n.content.filter(f).filter((o)=>y(o.content)||g(o.content));if(r.length===0)return null;return u("fieldset",{className:"mt-1 min-w-0",children:[l("legend",{className:"text-muted-foreground text-xs",children:n.title??n.name}),r.map((o,s)=>l(Z,{block:o.content},`${n.id}:${s}`))]})}var yn=k(function({sessionId:r,items:o,terminals:s,streamingThoughtId:d}){let p=t(),i=o.every(Sn),c=p.toolBlock,a=v(()=>o.map((e)=>{let m={...ni(e,s,e.kind==="thought"&&e.id===d),id:JSON.stringify([r,i?"history":"live",e.id])};return m.type==="tool_use"&&e.kind==="tool"&&c!==void 0?c(m,e):m}),[r,i,o,s,d,c]);return u(T,{children:[l(tt,{blocks:a,defaultExpanded:!i}),o.map((e)=>e.kind==="tool"&&l(R,{item:e},e.id))]})});
2
- export{yn};
1
+ import{nt}from"./chunk-0d5830mq.js";import{ii}from"./chunk-mb99bpqx.js";import{t}from"./chunk-1vmk34zf.js";import{Q}from"./chunk-5fj4ewez.js";import{Pn}from"./chunk-6r8jsyqk.js";import{isContentEntry as f,isEmbeddedResource as y,isResourceLink as g}from"@nyssance/codex-acp-v2/client";import{memo as k,useMemo as v}from"react";import{jsx as l,jsxs as u,Fragment as T}from"react/jsx-runtime";function R({item:n}){if(n.name==="view_image"&&n.status==="completed")return null;let r=n.content.filter(f).filter((o)=>y(o.content)||g(o.content));if(r.length===0)return null;return u("fieldset",{className:"mt-1 min-w-0",children:[l("legend",{className:"text-muted-foreground text-xs",children:n.title??n.name}),r.map((o,s)=>l(Q,{block:o.content},`${n.id}:${s}`))]})}var bn=k(function({sessionId:r,items:o,terminals:s,streamingThoughtId:d}){let p=t(),i=o.every(Pn),c=p.toolBlock,a=v(()=>o.map((e)=>{let m={...ii(e,s,e.kind==="thought"&&e.id===d),id:JSON.stringify([r,i?"history":"live",e.id])};return m.type==="tool_use"&&e.kind==="tool"&&c!==void 0?c(m,e):m}),[r,i,o,s,d,c]);return u(T,{children:[l(nt,{blocks:a,defaultExpanded:!i}),o.map((e)=>e.kind==="tool"&&l(R,{item:e},e.id))]})});
2
+ export{bn};
@@ -1,2 +1,2 @@
1
- import{cn}from"./chunk-wdrzhaxf.js";import{k}from"./chunk-dxgha4a2.js";import{cn as r}from"cn";import{ArrowUpRight as ue,ChevronUp as W,Loader2Icon as Z,Zap as q}from"lucide-react";import{Fragment as pe,useState as H}from"react";import{Button as A}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as J,DropdownMenuCheckboxItem as K,DropdownMenuContent as Q,DropdownMenuGroup as D,DropdownMenuItem as y,DropdownMenuLabel as L,DropdownMenuSeparator as u,DropdownMenuSub as C,DropdownMenuSubContent as T,DropdownMenuSubTrigger as O,DropdownMenuTrigger as X}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Switch as ce}from"@nyssance/shadcn/vega/components/ui/switch";import{Tooltip as Y,TooltipContent as E,TooltipTrigger as ee}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as e,jsxs as a,Fragment as p}from"react/jsx-runtime";function xo({value:c,onChange:ne,models:x,modelGroups:V,compactCatalog:t,effortPresentation:j="slider",unavailableEffort:v,providerMenu:h,header:w,className:B,condensed:z,stripLabelPrefix:_,showDescription:ae,showModelList:se=!0,loading:ie,switching:G,isLoading:oe,effortConfig:s,booleanOptions:f,onBooleanChange:R,selectOptions:te=[],t:m,...d}){let[le,de]=H(!1),[re,me]=H(!1),l=f?.find((n)=>n.id==="fast_mode"),I=t?f?.filter((n)=>n!==l):f,P=(n)=>_&&n.startsWith(_)?n.slice(_.length):n;if(ie)return e("div",{className:"inline-flex min-w-0 items-center gap-1.5",children:a(A,{variant:"ghost",disabled:!0,className:r("h-7 min-w-0 shrink gap-1.5 rounded-md px-2 text-xs font-normal",B),children:[e(Z,{className:"size-3 animate-spin"}),e("span",{className:"text-muted-foreground truncate",children:m("model.loadingModels")})]})});return a("div",{className:"inline-flex min-w-0 items-center gap-1.5",children:[h&&a(J,{open:le,onOpenChange:de,children:[a(Y,{children:[e(ee,{render:e(X,{render:a(A,{"data-testid":"provider-trigger",variant:"ghost",disabled:d.disabled,className:r("h-7 shrink-0 gap-1 rounded-md px-1.5","hover:bg-accent"),children:[h.icon,e(W,{className:"size-2.5 shrink-0 opacity-60"})]})})}),e(E,{children:m("model.switchProvider")})]}),a(Q,{side:"top",align:"end",sideOffset:4,className:"z-100 min-w-[10rem]",children:[h.groups.map((n,o)=>a(pe,{children:[o>0&&n.length>0&&e(u,{}),e(k,{value:h.value,onValueChange:h.onChange,options:n})]},o)),h.moreAction&&a(p,{children:[e(u,{}),a(y,{onClick:h.moreAction,className:"whitespace-nowrap",children:[e("span",{className:"min-w-0 flex-1 truncate",children:m("model.moreModels")}),e(ue,{className:"size-4"})]})]})]})]}),a(J,{open:re,onOpenChange:me,children:[a(Y,{children:[e(ee,{render:e(X,{render:a(A,{"data-testid":"model-trigger","aria-busy":G,variant:"ghost",className:r("h-7 gap-1.5 rounded-md px-2 text-xs font-normal","hover:bg-accent","max-w-full min-w-0 shrink",z&&"h-7 gap-1 px-1.5 text-[11px]",B),...d,children:[c.icon,f?.some((n)=>n.id==="fast_mode"&&n.currentValue&&!n.disabled)&&e(q,{"aria-hidden":"true",className:"size-3 shrink-0 fill-current"}),e("span",{className:r("min-w-0 flex-1 truncate text-start",z&&"text-[11px]"),children:P(c.label)||m("model.selectModel")}),s&&a("span",{className:"text-muted-foreground grid shrink-0 justify-items-center",children:[e("span",{className:"invisible col-start-1 row-start-1",children:s.sizer??s.levels.reduce((n,o)=>o.name.length>n.length?o.name:n,"")}),e("span",{className:"col-start-1 row-start-1",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),G?e(Z,{"data-testid":"model-switch-loading",className:"size-3 shrink-0 animate-spin"}):e(W,{className:r("size-3 shrink-0",z&&"size-2.5")})]})})}),e(E,{children:m("model.switchModel")})]}),a(Q,{side:"top",align:"end",sideOffset:4,className:r("z-100 w-auto max-w-[min(24rem,calc(100vw-1rem))] min-w-[14rem]",t&&"flex h-[350px] w-80 min-w-0 flex-col overflow-hidden rounded-xl p-1.5"),children:[t&&a(p,{children:[a(D,{"data-model-menu-header":!0,className:"flex shrink-0 items-center justify-between gap-2 px-2 py-1",children:[s?j==="slider"?e("div",{role:"menuitem","aria-label":s.name,className:"min-w-0 flex-1 [&>div]:justify-between [&>div]:gap-3 [&>div]:px-0 [&>div]:py-1.5",children:e(cn,{...s,disabled:d.disabled})}):a(C,{children:[a(O,{disabled:d.disabled,className:"h-8 min-w-0 flex-1 gap-2 rounded-md",children:[e("span",{children:s.name}),e("span",{className:"text-muted-foreground min-w-0 truncate text-xs",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),e(T,{children:e(k,{value:s.value,onValueChange:s.onChange,options:s.levels.map((n)=>({value:n.value,label:n.name}))})})]}):v?a(y,{disabled:!0,className:"h-8 min-w-0 flex-1 gap-2",children:[e("span",{children:v.name}),e("span",{className:"text-muted-foreground truncate text-xs",children:v.label})]}):e(L,{className:"min-w-0 flex-1 truncate",children:w?.name}),l&&e(K,{"aria-label":l.name,title:l.title??l.name,disabled:d.disabled||l.disabled,checked:l.currentValue,closeOnClick:!1,onCheckedChange:(n)=>R?.(l.id,n),className:r("hover:bg-accent focus:hover:bg-accent focus-visible:bg-accent ms-auto -me-2 size-8 shrink-0 justify-center rounded-md p-0 focus:bg-transparent [&_[data-slot=dropdown-menu-checkbox-item-indicator]]:hidden",l.currentValue&&!l.disabled?"text-foreground [&_svg]:fill-current":"text-muted-foreground"),children:l.icon??e(q,{className:"size-4","aria-hidden":"true"})})]}),e(u,{className:"shrink-0"})]}),w&&!t&&a(p,{children:[a("div",{className:"flex items-center gap-2 px-2 py-2",children:[w.icon,e("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:w.name}),w.action]}),e(u,{})]}),a(D,{"data-model-menu-list":t?"":void 0,className:t?"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain":void 0,children:[se&&(oe?e(y,{disabled:!0,className:"text-muted-foreground",children:m("model.loadingModels")}):x.length===0?e(y,{disabled:!0,className:"text-muted-foreground",children:m("model.noModelsAvailable")}):(()=>{let n=x.filter((i)=>!i.more),o=x.filter((i)=>i.more),F=n.length>0&&o.length>0,N=(i,g)=>({disabled:d.disabled,icon:i.icon,value:i.api_id,label:P(i.label),description:g?.noDescription?void 0:ae?i.description:void 0}),M=(i)=>{let g=x.find((S)=>S.api_id===i);if(g)ne(g)};if(t)return e(k,{value:c.api_id,onValueChange:M,itemClassName:"min-w-0 max-w-full font-normal whitespace-nowrap",options:x.map((i)=>N(i))});return a(p,{children:[V?V.map((i)=>{let g=i.models.filter((b)=>!b.more),S=i.models.filter((b)=>b.more),U=g.length>0&&S.length>0;return a(D,{children:[e(L,{className:"text-muted-foreground text-xs font-normal",children:i.name}),e(k,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:(U?g:i.models).map((b)=>N(b))}),U&&a(C,{children:[e(O,{className:"font-medium whitespace-nowrap",children:m("model.moreModels")}),e(T,{children:e(k,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:S.map((b)=>N(b,{noDescription:!0}))})})]})]},i.id)}):e(k,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:(F?n:x).map((i)=>N(i))}),!V&&F&&a(C,{children:[e(O,{className:"font-medium whitespace-nowrap",children:m("model.moreModels")}),e(T,{children:e(k,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:o.map((i)=>N(i,{noDescription:!0}))})})]})]})})()),!t&&s&&a(p,{children:[e(u,{}),j==="menu"?a(C,{children:[a(O,{disabled:d.disabled,children:[e("span",{className:"flex-1",children:s.name}),e("span",{className:"text-muted-foreground",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),e(T,{children:e(k,{value:s.value,onValueChange:s.onChange,options:s.levels.map((n)=>({value:n.value,label:n.name}))})})]}):e(cn,{...s,disabled:d.disabled})]}),!t&&!s&&v&&a(p,{children:[e(u,{}),a(y,{disabled:!0,children:[e("span",{className:"flex-1",children:v.name}),e("span",{children:v.label})]})]}),te.map((n)=>a(D,{children:[e(u,{}),e(L,{children:n.name}),e(k,{value:n.value,onValueChange:n.onChange,options:n.options,itemClassName:"whitespace-nowrap"})]},n.id)),I&&I.length>0&&a(p,{children:[!s&&e(u,{}),I.map((n)=>t?a(K,{"aria-label":n.name,title:n.title,disabled:d.disabled||n.disabled,checked:n.currentValue,closeOnClick:!1,onCheckedChange:(o)=>R?.(n.id,o),className:"justify-between gap-3 py-2.5 pr-2 [&_[data-slot=dropdown-menu-checkbox-item-indicator]]:hidden",children:[a("span",{className:"flex items-center gap-2",children:[n.icon,n.name]}),e("span",{"aria-hidden":"true",className:r("flex h-[18px] w-8 shrink-0 items-center rounded-full p-0.5",n.currentValue?"bg-primary":"bg-input"),children:e("span",{className:r("bg-background size-3.5 rounded-full shadow-xs transition-transform",n.currentValue&&"translate-x-3.5")})})]},n.id):a("div",{title:n.title,className:r("flex items-center justify-between gap-3 px-2 py-2.5",n.disabled&&"opacity-50"),children:[a("span",{className:"flex items-center gap-2 text-sm font-medium",children:[n.icon,n.name]}),e(ce,{"aria-label":n.name,disabled:d.disabled||n.disabled,checked:n.currentValue,onCheckedChange:(o)=>R?.(n.id,o)})]},n.id))]})]}),t&&w?.action&&a(p,{children:[e(u,{className:"shrink-0"}),e(D,{"data-model-menu-footer":!0,className:"shrink-0",children:w.action})]})]})]})]})}
2
- export{xo};
1
+ import{un}from"./chunk-rbj9twq1.js";import{S}from"./chunk-gdr4245h.js";import{cn as r}from"cn";import{ArrowUpRight as ue,ChevronUp as W,Loader2Icon as Z,Zap as q}from"lucide-react";import{Fragment as pe,useState as H}from"react";import{Button as A}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as J,DropdownMenuCheckboxItem as K,DropdownMenuContent as Q,DropdownMenuGroup as D,DropdownMenuItem as y,DropdownMenuLabel as L,DropdownMenuSeparator as u,DropdownMenuSub as C,DropdownMenuSubContent as T,DropdownMenuSubTrigger as O,DropdownMenuTrigger as X}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Switch as ce}from"@nyssance/shadcn/vega/components/ui/switch";import{Tooltip as Y,TooltipContent as E,TooltipTrigger as ee}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as e,jsxs as a,Fragment as p}from"react/jsx-runtime";function Co({value:c,onChange:ne,models:x,modelGroups:V,compactCatalog:t,effortPresentation:j="slider",unavailableEffort:v,providerMenu:h,header:w,className:B,condensed:z,stripLabelPrefix:_,showDescription:ae,showModelList:se=!0,loading:ie,switching:G,isLoading:oe,effortConfig:s,booleanOptions:k,onBooleanChange:R,selectOptions:te=[],t:m,...d}){let[le,de]=H(!1),[re,me]=H(!1),l=k?.find((n)=>n.id==="fast_mode"),I=t?k?.filter((n)=>n!==l):k,P=(n)=>_&&n.startsWith(_)?n.slice(_.length):n;if(ie)return e("div",{className:"inline-flex min-w-0 items-center gap-1.5",children:a(A,{variant:"ghost",disabled:!0,className:r("h-7 min-w-0 shrink gap-1.5 rounded-md px-2 text-xs font-normal",B),children:[e(Z,{className:"size-3 animate-spin"}),e("span",{className:"text-muted-foreground truncate",children:m("model.loadingModels")})]})});return a("div",{className:"inline-flex min-w-0 items-center gap-1.5",children:[h&&a(J,{open:le,onOpenChange:de,children:[a(Y,{children:[e(ee,{render:e(X,{render:a(A,{"data-testid":"provider-trigger",variant:"ghost",disabled:d.disabled,className:r("h-7 shrink-0 gap-1 rounded-md px-1.5","hover:bg-accent"),children:[h.icon,e(W,{className:"size-2.5 shrink-0 opacity-60"})]})})}),e(E,{children:m("model.switchProvider")})]}),a(Q,{side:"top",align:"end",sideOffset:4,className:"z-100 min-w-[10rem]",children:[h.groups.map((n,o)=>a(pe,{children:[o>0&&n.length>0&&e(u,{}),e(S,{value:h.value,onValueChange:h.onChange,options:n})]},o)),h.moreAction&&a(p,{children:[e(u,{}),a(y,{onClick:h.moreAction,className:"whitespace-nowrap",children:[e("span",{className:"min-w-0 flex-1 truncate",children:m("model.moreModels")}),e(ue,{className:"size-4"})]})]})]})]}),a(J,{open:re,onOpenChange:me,children:[a(Y,{children:[e(ee,{render:e(X,{render:a(A,{"data-testid":"model-trigger","aria-busy":G,variant:"ghost",className:r("h-7 gap-1.5 rounded-md px-2 text-xs font-normal","hover:bg-accent","max-w-full min-w-0 shrink",z&&"h-7 gap-1 px-1.5 text-[11px]",B),...d,children:[c.icon,k?.some((n)=>n.id==="fast_mode"&&n.currentValue&&!n.disabled)&&e(q,{"aria-hidden":"true",className:"size-3 shrink-0 fill-current"}),e("span",{className:r("min-w-0 flex-1 truncate text-start",z&&"text-[11px]"),children:P(c.label)||m("model.selectModel")}),s&&a("span",{className:"text-muted-foreground grid shrink-0 justify-items-center",children:[e("span",{className:"invisible col-start-1 row-start-1",children:s.sizer??s.levels.reduce((n,o)=>o.name.length>n.length?o.name:n,"")}),e("span",{className:"col-start-1 row-start-1",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),G?e(Z,{"data-testid":"model-switch-loading",className:"size-3 shrink-0 animate-spin"}):e(W,{className:r("size-3 shrink-0",z&&"size-2.5")})]})})}),e(E,{children:m("model.switchModel")})]}),a(Q,{side:"top",align:"end",sideOffset:4,className:r("z-100 w-auto max-w-[min(24rem,calc(100vw-1rem))] min-w-[14rem]",t&&"flex h-[350px] w-80 min-w-0 flex-col overflow-hidden rounded-xl p-1.5"),children:[t&&a(p,{children:[a(D,{"data-model-menu-header":!0,className:"flex shrink-0 items-center justify-between gap-2 px-2 py-1",children:[s?j==="slider"?e("div",{role:"menuitem","aria-label":s.name,className:"min-w-0 flex-1 [&>div]:justify-between [&>div]:gap-3 [&>div]:px-0 [&>div]:py-1.5",children:e(un,{...s,disabled:d.disabled})}):a(C,{children:[a(O,{disabled:d.disabled,className:"h-8 min-w-0 flex-1 gap-2 rounded-md",children:[e("span",{children:s.name}),e("span",{className:"text-muted-foreground min-w-0 truncate text-xs",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),e(T,{children:e(S,{value:s.value,onValueChange:s.onChange,options:s.levels.map((n)=>({value:n.value,label:n.name}))})})]}):v?a(y,{disabled:!0,className:"h-8 min-w-0 flex-1 gap-2",children:[e("span",{children:v.name}),e("span",{className:"text-muted-foreground truncate text-xs",children:v.label})]}):e(L,{className:"min-w-0 flex-1 truncate",children:w?.name}),l&&e(K,{"aria-label":l.name,title:l.title??l.name,disabled:d.disabled||l.disabled,checked:l.currentValue,closeOnClick:!1,onCheckedChange:(n)=>R?.(l.id,n),className:r("hover:bg-accent focus:hover:bg-accent focus-visible:bg-accent ms-auto -me-2 size-8 shrink-0 justify-center rounded-md p-0 focus:bg-transparent [&_[data-slot=dropdown-menu-checkbox-item-indicator]]:hidden",l.currentValue&&!l.disabled?"text-foreground [&_svg]:fill-current":"text-muted-foreground"),children:l.icon??e(q,{className:"size-4","aria-hidden":"true"})})]}),e(u,{className:"shrink-0"})]}),w&&!t&&a(p,{children:[a("div",{className:"flex items-center gap-2 px-2 py-2",children:[w.icon,e("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:w.name}),w.action]}),e(u,{})]}),a(D,{"data-model-menu-list":t?"":void 0,className:t?"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain":void 0,children:[se&&(oe?e(y,{disabled:!0,className:"text-muted-foreground",children:m("model.loadingModels")}):x.length===0?e(y,{disabled:!0,className:"text-muted-foreground",children:m("model.noModelsAvailable")}):(()=>{let n=x.filter((i)=>!i.more),o=x.filter((i)=>i.more),F=n.length>0&&o.length>0,N=(i,g)=>({disabled:d.disabled,icon:i.icon,value:i.api_id,label:P(i.label),description:g?.noDescription?void 0:ae?i.description:void 0}),M=(i)=>{let g=x.find((f)=>f.api_id===i);if(g)ne(g)};if(t)return e(S,{value:c.api_id,onValueChange:M,itemClassName:"min-w-0 max-w-full font-normal whitespace-nowrap",options:x.map((i)=>N(i))});return a(p,{children:[V?V.map((i)=>{let g=i.models.filter((b)=>!b.more),f=i.models.filter((b)=>b.more),U=g.length>0&&f.length>0;return a(D,{children:[e(L,{className:"text-muted-foreground text-xs font-normal",children:i.name}),e(S,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:(U?g:i.models).map((b)=>N(b))}),U&&a(C,{children:[e(O,{className:"font-medium whitespace-nowrap",children:m("model.moreModels")}),e(T,{children:e(S,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:f.map((b)=>N(b,{noDescription:!0}))})})]})]},i.id)}):e(S,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:(F?n:x).map((i)=>N(i))}),!V&&F&&a(C,{children:[e(O,{className:"font-medium whitespace-nowrap",children:m("model.moreModels")}),e(T,{children:e(S,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:o.map((i)=>N(i,{noDescription:!0}))})})]})]})})()),!t&&s&&a(p,{children:[e(u,{}),j==="menu"?a(C,{children:[a(O,{disabled:d.disabled,children:[e("span",{className:"flex-1",children:s.name}),e("span",{className:"text-muted-foreground",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),e(T,{children:e(S,{value:s.value,onValueChange:s.onChange,options:s.levels.map((n)=>({value:n.value,label:n.name}))})})]}):e(un,{...s,disabled:d.disabled})]}),!t&&!s&&v&&a(p,{children:[e(u,{}),a(y,{disabled:!0,children:[e("span",{className:"flex-1",children:v.name}),e("span",{children:v.label})]})]}),te.map((n)=>a(D,{children:[e(u,{}),e(L,{children:n.name}),e(S,{value:n.value,onValueChange:n.onChange,options:n.options,itemClassName:"whitespace-nowrap"})]},n.id)),I&&I.length>0&&a(p,{children:[!s&&e(u,{}),I.map((n)=>t?a(K,{"aria-label":n.name,title:n.title,disabled:d.disabled||n.disabled,checked:n.currentValue,closeOnClick:!1,onCheckedChange:(o)=>R?.(n.id,o),className:"justify-between gap-3 py-2.5 pr-2 [&_[data-slot=dropdown-menu-checkbox-item-indicator]]:hidden",children:[a("span",{className:"flex items-center gap-2",children:[n.icon,n.name]}),e("span",{"aria-hidden":"true",className:r("flex h-[18px] w-8 shrink-0 items-center rounded-full p-0.5",n.currentValue?"bg-primary":"bg-input"),children:e("span",{className:r("bg-background size-3.5 rounded-full shadow-xs transition-transform",n.currentValue&&"translate-x-3.5")})})]},n.id):a("div",{title:n.title,className:r("flex items-center justify-between gap-3 px-2 py-2.5",n.disabled&&"opacity-50"),children:[a("span",{className:"flex items-center gap-2 text-sm font-medium",children:[n.icon,n.name]}),e(ce,{"aria-label":n.name,disabled:d.disabled||n.disabled,checked:n.currentValue,onCheckedChange:(o)=>R?.(n.id,o)})]},n.id))]})]}),t&&w?.action&&a(p,{children:[e(u,{className:"shrink-0"}),e(D,{"data-model-menu-footer":!0,className:"shrink-0",children:w.action})]})]})]})]})}
2
+ export{Co};
@@ -0,0 +1,2 @@
1
+ import{createContext as d,useCallback as n,useContext as i,useEffect as V,useMemo as q,useRef as g,useState as z}from"react";import{jsx as D}from"react/jsx-runtime";var F=d(null),pn=d(null);function sa(){return i(pn)}var mn=d(null);function la(){return i(mn)}var Ze=d(null);function Qe(){let r=i(F);if(!r)throw Error("Wrap your component inside <PromptInputProvider> to use usePromptInputController().");return r}var Ye=()=>i(F);function ca(){let r=i(Ze);if(!r)throw Error("Wrap your component inside <PromptInputProvider> to use useProviderAttachments().");return r}var X=()=>i(Ze);function Fo({initialInput:r="",revision:l,onSubmittedClear:c,onRemoveAttachment:A,attachmentPolicy:f,value:R,onValueChange:y,attachments:U,onAttachmentsChange:L,children:B}){let S=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""},[]),T=R!==void 0,[G,J]=z(r),p=R??G,o=g({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 W=n(()=>o.current.revision,[]),P=n((t)=>{if(o.current.value=t,o.current.revision++,T)y?.(t);else J(t)},[T,y]),h=n(()=>P(""),[P]),x=U!==void 0,[K,N]=z([]),v=U??K,b=g(v);b.current=v;let s=n((t)=>{let e=typeof t==="function"?t(b.current):t;if(x)L?.(e);else N(e)},[x,L]),j=g(null),w=g(()=>{}),O=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 _=f?.sourcePath(u);return{id:crypto.randomUUID(),type:"file",url:URL.createObjectURL(u),mediaType:S(u),filename:u.name,size:u.size,lastModified:u.lastModified,..._===void 0?{}:{sourcePath:_}}})]})},[f,S,s]),M=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)}),A?.()},[A,s]),E=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 b.current)if(t.url)URL.revokeObjectURL(t.url)}},[x]);let k=n(()=>{w.current?.()},[]),C=q(()=>({files:v,add:O,remove:M,clear:E,openFileDialog:k,fileInputRef:j}),[v,O,M,E,k]),H=n((t,e)=>{j.current=t.current,w.current=e},[]),Q=q(()=>({textInput:{value:p,setInput:P,clear:h,getRevision:W,clearSubmitted:c??h},attachments:C,__registerFileInput:H}),[p,P,h,W,c,C,H]);return D(F.Provider,{value:Q,children:D(Ze.Provider,{value:C,children:B})})}var gn=d(null);function I(){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,sa,mn,la,Ze,Qe,Ye,ca,Fo,gn,I};
@@ -1,4 +1,4 @@
1
- var Rn=`<svg xmlns="http://www.w3.org/2000/svg">
1
+ var Dn=`<svg xmlns="http://www.w3.org/2000/svg">
2
2
  <defs>
3
3
  <linearGradient id="plugin-agent-mode-paint0_linear_1_1034" x1="30.0398" y1="40.0728" x2="11.3112" y2="-1.39757" gradientUnits="userSpaceOnUse">
4
4
  <stop stop-color="#2BBFFF"/>
@@ -1286,4 +1286,4 @@ var Rn=`<svg xmlns="http://www.w3.org/2000/svg">
1286
1286
  </symbol>
1287
1287
  </svg>
1288
1288
  `;
1289
- export{Rn};
1289
+ export{Dn};
@@ -1,2 +1,2 @@
1
- import{n}from"./chunk-z8njjc2c.js";import{e,f}from"./chunk-epg5w48v.js";import{QUICK_CHATS_GROUP as I,sessionGroup as z}from"@nyssance/codex-acp-v2/client";import{cn as j}from"cn";import{FolderClosedIcon as g,FolderPlusIcon as G,XIcon as x}from"lucide-react";import{useEffect as O,useMemo as R,useState as S}from"react";import{Button as C}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as A,DropdownMenuContent as F,DropdownMenuGroup as T,DropdownMenuItem as k,DropdownMenuRadioGroup as B,DropdownMenuRadioItem as E,DropdownMenuSeparator as U,DropdownMenuTrigger as _}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as r,jsxs as s,Fragment as H}from"react/jsx-runtime";function M(t){return t.replaceAll("\\","/").replace(/\/+$/,"").split("/").pop()||t}function Nr({cwd:t,onChange:u,preparing:b=!1,recentProjects:w}){let{host:i,client:p}=e(),{t:l}=i,v=n((o)=>o.projectContext),h=n((o)=>o.sessionList),y=R(()=>w??[...new Set([...h].toSorted((o,m)=>(m.updatedAt??"").localeCompare(o.updatedAt??"")).map((o)=>o.cwd))],[w,h]),[c,N]=S(null);O(()=>{if(!p.refreshProjectContext)return;let o=!0;return f(i,p.refreshProjectContext(!0).then((m)=>{if(o)N(m.chatDirectory)})),()=>{o=!1}},[i,p]);let D=[...t!==null?[t]:[],...y.filter((o)=>o!==t)].filter((o)=>o!==c&&(!v||z(v,{cwd:o}).id!==I)),a=t!==null&&t!==c,P=()=>{if(c===null)throw Error("The default draft directory is not ready");u(null)},d=i.chooseFolder;return s(A,{children:[s("div",{"aria-busy":b,className:j("chat-project-picker group/project inline-flex h-7 max-w-full min-w-0 items-center gap-1.5 rounded-full",a?"text-foreground ps-2":"text-foreground/65"),children:[a&&s(C,{variant:"ghost",size:"icon-xs",className:"relative size-4 rounded-full p-0 hover:bg-transparent dark:hover:bg-transparent","aria-label":l("conversation.draft.workOutsideProject"),title:l("conversation.draft.workOutsideProject"),disabled:c===null,onClick:P,children:[r(g,{className:"size-4 group-hover/project:opacity-0"}),r("span",{className:"bg-muted-foreground text-background absolute inset-0 flex items-center justify-center rounded-full opacity-0 group-hover/project:opacity-100",children:r(x,{className:"size-3"})})]}),s(_,{render:r(C,{variant:"ghost",size:"sm",className:j("h-7 min-w-0 shrink gap-1.5 rounded-full py-0 text-sm font-normal text-inherit hover:bg-transparent aria-expanded:bg-transparent dark:hover:bg-transparent",a?"ps-0 pe-2":"px-2")}),children:[!a&&r(g,{className:"size-4"}),r("span",{className:"truncate",children:a?M(t):l("conversation.draft.selectProject")})]})]}),s(F,{side:"top",align:"start",className:"w-72 overflow-hidden",children:[D.length>0&&s(H,{children:[r("div",{className:"max-h-64 overflow-y-auto",children:r(B,{value:t??"",onValueChange:u,children:D.map((o)=>s(E,{value:o,title:o,closeOnClick:!0,children:[r(g,{}),r("span",{className:"truncate",children:M(o)})]},o))})}),(d!==void 0||a)&&r(U,{})]}),(d!==void 0||a)&&s(T,{children:[d&&s(k,{onClick:()=>{f(i,d(t).then((o)=>{if(o!==null)u(o)}))},children:[r(G,{}),l("conversation.draft.newProject")]}),c!==null&&a&&s(k,{onClick:P,children:[r(x,{}),l("conversation.draft.workOutsideProject")]})]})]})]})}
2
- export{Nr};
1
+ import{n}from"./chunk-1vmk34zf.js";import{e,f}from"./chunk-t9djctkk.js";import{QUICK_CHATS_GROUP as I,sessionGroup as z}from"@nyssance/codex-acp-v2/client";import{cn as j}from"cn";import{FolderClosedIcon as g,FolderPlusIcon as G,XIcon as x}from"lucide-react";import{useEffect as O,useMemo as R,useState as S}from"react";import{Button as C}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as A,DropdownMenuContent as F,DropdownMenuGroup as T,DropdownMenuItem as k,DropdownMenuRadioGroup as B,DropdownMenuRadioItem as E,DropdownMenuSeparator as U,DropdownMenuTrigger as _}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as r,jsxs as s,Fragment as H}from"react/jsx-runtime";function M(t){return t.replaceAll("\\","/").replace(/\/+$/,"").split("/").pop()||t}function Ar({cwd:t,onChange:u,preparing:b=!1,recentProjects:w}){let{host:i,client:p}=e(),{t:l}=i,v=n((o)=>o.projectContext),h=n((o)=>o.sessionList),y=R(()=>w??[...new Set([...h].toSorted((o,m)=>(m.updatedAt??"").localeCompare(o.updatedAt??"")).map((o)=>o.cwd))],[w,h]),[c,N]=S(null);O(()=>{if(!p.refreshProjectContext)return;let o=!0;return f(i,p.refreshProjectContext(!0).then((m)=>{if(o)N(m.chatDirectory)})),()=>{o=!1}},[i,p]);let D=[...t!==null?[t]:[],...y.filter((o)=>o!==t)].filter((o)=>o!==c&&(!v||z(v,{cwd:o}).id!==I)),a=t!==null&&t!==c,P=()=>{if(c===null)throw Error("The default draft directory is not ready");u(null)},d=i.chooseFolder;return s(A,{children:[s("div",{"aria-busy":b,className:j("chat-project-picker group/project inline-flex h-7 max-w-full min-w-0 items-center gap-1.5 rounded-full",a?"text-foreground ps-2":"text-foreground/65"),children:[a&&s(C,{variant:"ghost",size:"icon-xs",className:"relative size-4 rounded-full p-0 hover:bg-transparent dark:hover:bg-transparent","aria-label":l("conversation.draft.workOutsideProject"),title:l("conversation.draft.workOutsideProject"),disabled:c===null,onClick:P,children:[r(g,{className:"size-4 group-hover/project:opacity-0"}),r("span",{className:"bg-muted-foreground text-background absolute inset-0 flex items-center justify-center rounded-full opacity-0 group-hover/project:opacity-100",children:r(x,{className:"size-3"})})]}),s(_,{render:r(C,{variant:"ghost",size:"sm",className:j("h-7 min-w-0 shrink gap-1.5 rounded-full py-0 text-sm font-normal text-inherit hover:bg-transparent aria-expanded:bg-transparent dark:hover:bg-transparent",a?"ps-0 pe-2":"px-2")}),children:[!a&&r(g,{className:"size-4"}),r("span",{className:"truncate",children:a?M(t):l("conversation.draft.selectProject")})]})]}),s(F,{side:"top",align:"start",className:"w-72 overflow-hidden",children:[D.length>0&&s(H,{children:[r("div",{className:"max-h-64 overflow-y-auto",children:r(B,{value:t??"",onValueChange:u,children:D.map((o)=>s(E,{value:o,title:o,closeOnClick:!0,children:[r(g,{}),r("span",{className:"truncate",children:M(o)})]},o))})}),(d!==void 0||a)&&r(U,{})]}),(d!==void 0||a)&&s(T,{children:[d&&s(k,{onClick:()=>{f(i,d(t).then((o)=>{if(o!==null)u(o)}))},children:[r(G,{}),l("conversation.draft.newProject")]}),c!==null&&a&&s(k,{onClick:P,children:[r(x,{}),l("conversation.draft.workOutsideProject")]})]})]})]})}
2
+ export{Ar};
@@ -1,2 +1,2 @@
1
- import{createPortal as n}from"react-dom";import{jsx as t}from"react/jsx-runtime";function li({src:o,alt:e,onClose:i}){return n(t("button",{type:"button",className:"fixed inset-0 z-[1000] flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.7)"},onClick:i,children:t("img",{src:o,alt:e,style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain",borderRadius:4}})}),document.body)}
2
- export{li};
1
+ import{createPortal as n}from"react-dom";import{jsx as t}from"react/jsx-runtime";function di({src:o,alt:e,onClose:i}){return n(t("button",{type:"button",className:"fixed inset-0 z-[1000] flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.7)"},onClick:i,children:t("img",{src:o,alt:e,style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain",borderRadius:4}})}),document.body)}
2
+ export{di};