@alwith/module-chat 0.5.28 → 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 (1063) 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-8em7tfgz.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-f7mgf43p.js → chunk-yht2h676.js} +2 -2
  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/rust/Cargo.lock +0 -4318
  1050. package/rust/Cargo.toml +0 -44
  1051. package/rust/build.rs +0 -16
  1052. package/rust/permissions/autogenerated/reference.md +0 -296
  1053. package/rust/permissions/default.toml +0 -20
  1054. package/rust/permissions/schemas/schema.json +0 -263
  1055. package/rust/src/__tests__/native_network.rs +0 -406
  1056. package/rust/src/lib.rs +0 -82
  1057. package/rust/src/native_network.rs +0 -302
  1058. package/rust/src/native_network_diagnostics.rs +0 -220
  1059. package/rust/src/providers/managed.rs +0 -801
  1060. package/rust/src/providers/tests.rs +0 -684
  1061. package/rust/src/providers.rs +0 -984
  1062. package/rust/src/skills.rs +0 -130
  1063. package/rust/src/system_proxy.rs +0 -257
@@ -1,3 +1,3 @@
1
- import{fn,hn}from"./chunk-5ysapftt.js";import{S}from"./chunk-wpn4rdwv.js";import{bn}from"./chunk-6k8m2c80.js";import{t}from"./chunk-z8njjc2c.js";import{Ci,ie,it,ki}from"./chunk-7zryea1b.js";import{yn}from"./chunk-4j2c9r6m.js";import{Ce}from"./chunk-szwq5b69.js";import{In}from"./chunk-0w6g1w1a.js";import{Qo}from"./chunk-m4eqmf0x.js";import{oi}from"./chunk-3jw1yt27.js";import{ii}from"./chunk-jgwrjncj.js";import{Pn,Tn}from"./chunk-t3s1ydnq.js";import{nt}from"./chunk-d0w04ydg.js";import{codexMessageError as z,codexTurnError as J,isContentEntry as oe,isEmbeddedResource as q,isImage as X,isResourceLink as ae,isText as me,nativeTurnId as le}from"@nyssance/codex-acp-v2/client";import{LoaderCircleIcon as de,SparklesIcon as ce}from"lucide-react";import{Fragment as ge,memo as ue,useEffect as pe,useState as fe}from"react";import{jsx as s,jsxs as m,Fragment as N}from"react/jsx-runtime";function U(i){if(X(i))return`${i.mimeType.toLowerCase()}:${i.data}`;if(q(i)&&"blob"in i.resource&&i.resource.mimeType?.toLowerCase().startsWith("image/"))return`${i.resource.mimeType.toLowerCase()}:${i.resource.blob}`;return null}function ye({item:i}){let{t:n}=t(),l=i.status==="in_progress",[o,c]=fe(()=>Date.now()-i.at>=1e4);return pe(()=>{if(!l)return;let a=Math.max(0,i.at+1e4-Date.now());if(c(a===0),a===0)return;let f=setTimeout(()=>c(!0),a);return()=>clearTimeout(f)},[i.id,i.at,l]),m("div",{className:"codex-context-compaction",children:[s(ce,{"aria-hidden":"true"}),s("span",{children:i.status==="completed"?n("stream.codex.contextCompacted"):i.status==="cancelled"?n("timeline.interrupted"):n(o?"timeline.compactingWithDelayNotice":"timeline.compacting")})]})}function v({sessionId:i,entry:n,terminals:l,streaming:o,streamingThoughtId:c}){let{t:a}=t();switch(n.kind){case"activity":return s(yn,{sessionId:i,items:n.items,terminals:l,streamingThoughtId:c});case"text":return S(n.item._meta).length>0?s(In,{sessionId:i,item:n.item}):s(Ce,{content:n.item.content,messageId:n.item.id,streaming:o});case"plan":return s(oi,{plan:n.item.plan});case"compaction":if(n.item.status==="failed")return m(Pn,{children:[s("div",{children:a("timeline.compactionFailed")}),n.item.error!==null&&s("div",{children:n.item.error})]});return s(ye,{item:n.item})}}function he({sessionId:i,turn:n,terminals:l,active:o,blocked:c=!1,continued:a=!1,edits:f=n.edits,activityItems:M=n.items,workStartedAt:Y=n.startedAt,isLast:W,error:y,interrupted:F,retry:L,retrying:u,answerActions:K,footer:Z}){let{t:d}=t(),E=n.errors.map((e)=>{let r=z(e);if(r===null)throw Error("Turn error item is missing its diagnostics");let I=L?.turnId===le(e)?L:void 0;return s(Tn,{error:r,retry:I},`${e.id}:${I?.delaySeconds??"manual"}`)});if(W&&y!==null&&!n.errors.some((e)=>{let r=z(e);return r!==null&&r.stopReason===y.stopReason&&J(r).message===J(y).message}))E.push(s(Tn,{error:y},"current-run-error"));let h=E.length>0?s("div",{className:"codex-turn-errors",children:E}):null,C=n.items.filter(bn);if(C.length>0&&C.length===n.items.length)return m(N,{children:[s(yn,{sessionId:i,items:C,terminals:l,streamingThoughtId:null}),h]});let x=n.work,k=x.length>0&&x.every((e)=>e.kind==="compaction");if(Ci(n)||k&&n.final.length===0)return m(N,{children:[s("div",{role:"status",className:"text-muted-foreground flex min-w-0 flex-col gap-2 py-2 text-sm",children:n.work.map((e)=>s(v,{sessionId:i,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key))}),h]});let O=it(n),P=n.final.filter((e)=>S(e._meta).length===0).map(ie).join(`
2
- `),T=o?null:nt(n,"assistant"),D=n.items.filter((e)=>e.kind==="tool"&&e.name==="image_generation"&&(e.status==="pending"||e.status==="in_progress")),G=new Set(n.final.flatMap((e)=>e.content.map(U).filter((r)=>r!==null))),A=n.items.flatMap((e)=>{if(e.kind!=="tool"||e.status!=="completed")return[];return e.content.filter(oe).flatMap((r,I)=>{let g=r.content,se=e.name==="image_generation"&&X(g),re=e.toolKind!=="read"&&e.toolKind!=="search"&&(ae(g)||q(g)&&("blob"in g.resource));if(!se&&!re)return[];let _=U(g);if(_!==null){if(G.has(_))return[];G.add(_)}return[{key:`${e.id}:${I}`,block:g}]})}),b=n.final.some((e)=>S(e._meta).length===0&&e.content.some((r)=>!me(r)||r.text.trim().length>0)),ee=D.length>0||A.length>0||k||b||n.final.some((e)=>S(e._meta).length>0),w=n.items.findIndex((e)=>n.final.includes(e)),R=(e)=>n.items.indexOf(e.kind==="activity"?e.items[0]:e.item),B=x.filter((e)=>w===-1||R(e)<w),te=x.filter((e)=>w!==-1&&R(e)>w),ne=[...n.final.map((e)=>({kind:"answer",item:e,index:n.items.indexOf(e)})),...te.map((e)=>({kind:"work",entry:e,index:R(e)}))].toSorted((e,r)=>e.index-r.index),H=!o&&!a&&(P.trim().length>0?s(fn,{text:P,isMostRecentTurn:W,time:T,afterCopy:K}):m("div",{className:"flex items-center gap-0.5",children:[K,T&&s("span",{className:"codex-user-time ms-1",title:T.full,children:T.short})]})),p=ii({...n,items:M},{running:o,blocked:c,retrying:u!==void 0}),Q=p.kind==="reasoning"?p.ownerKey??null:null,V=p.kind==="thinking",j=ki({...n,items:M});return m(N,{children:[s(hn,{stateKey:JSON.stringify([i,n.replayed?"history":"live",n.key]),active:o&&!b,defaultExpanded:o&&!b||!n.replayed&&(F||O),...j,startedAt:j.startedAt??Y,loading:(V||p.kind==="working")&&n.work.length===0,loadingLabel:p.kind==="working"?d("stream.codex.working"):void 0,work:a||k?[]:B.map((e)=>s(v,{sessionId:i,entry:e,terminals:l,streaming:o,streamingThoughtId:Q},e.key)),answer:ee||a?m("div",{className:"flex min-w-0 flex-col gap-3",children:[(a||k)&&B.map((e)=>s(v,{sessionId:i,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key)),ne.map((e)=>{if(e.kind==="work")return s(v,{sessionId:i,entry:e.entry,terminals:l,streaming:o,streamingThoughtId:Q},e.entry.key);let r=e.item;return m(ge,{children:[S(r._meta).length>0?s(In,{sessionId:i,item:r}):s(Ce,{content:r.content,messageId:r.id,streaming:o}),r===n.final.at(-1)&&H]},r.id)}),D.map((e)=>m("div",{className:"codex-image-generation",role:"status","aria-label":d(o?"timeline.imageGenerating":"timeline.imageStopped"),"aria-busy":o,children:[s("div",{className:"codex-image-generation-texture","aria-hidden":"true"}),m("span",{className:"codex-image-generation-status",children:[o&&s(de,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),d(o?"timeline.imageGenerating":"timeline.imageStopped")]})]},e.id)),A.length>0&&s("div",{className:"codex-reply-artifacts flex min-w-0 flex-col gap-3",children:A.map((e)=>s(Ce,{content:[e.block],messageId:e.key,streaming:!1},e.key))}),n.final.length===0&&H]}):null,footer:m(N,{children:[V&&n.work.length>0&&s("div",{className:"codex-pending-message py-2",role:"status",children:s("span",{className:"codex-activity-running",children:d("message.thinking")})}),Z,f.length>0&&!o&&!a&&s(Qo,{items:f}),F&&!O&&s("div",{className:"codex-interrupted-turn",role:"status",children:d("timeline.interrupted")}),!o&&h]})}),o&&u!==void 0&&s("div",{className:"text-muted-foreground py-2 text-sm",role:"status",children:u.capacity?(()=>{let e=/Reconnecting(?:\.\.\.)?\s+(\d+\/\d+)/.exec(u.message)?.[1];return e===void 0?d("timeline.capacityReconnecting"):d("timeline.capacityReconnectingProgress",{progress:e})})():u.message}),o&&h]})}var Wo=ue(he);
3
- export{Wo};
1
+ import{vn,yn}from"./chunk-cansmt47.js";import{_}from"./chunk-3sqxe0mw.js";import{wn}from"./chunk-mb99bpqx.js";import{t}from"./chunk-1vmk34zf.js";import{ki,re,rt,_i}from"./chunk-6r8jsyqk.js";import{bn}from"./chunk-vxk0kgbf.js";import{we}from"./chunk-wkw61zwr.js";import{Mn}from"./chunk-d4pm6n4q.js";import{Xo}from"./chunk-v1x1b7cv.js";import{ri}from"./chunk-axyfaexd.js";import{ai}from"./chunk-te3mzdae.js";import{In,Nn}from"./chunk-hfjvr394.js";import{ot}from"./chunk-gha517v4.js";import{codexMessageError as z,codexTurnError as J,isContentEntry as oe,isEmbeddedResource as q,isImage as X,isResourceLink as ae,isText as me,nativeTurnId as le}from"@nyssance/codex-acp-v2/client";import{LoaderCircleIcon as de,SparklesIcon as ce}from"lucide-react";import{Fragment as ge,memo as ue,useEffect as pe,useState as fe}from"react";import{jsx as s,jsxs as m,Fragment as N}from"react/jsx-runtime";function U(i){if(X(i))return`${i.mimeType.toLowerCase()}:${i.data}`;if(q(i)&&"blob"in i.resource&&i.resource.mimeType?.toLowerCase().startsWith("image/"))return`${i.resource.mimeType.toLowerCase()}:${i.resource.blob}`;return null}function ye({item:i}){let{t:n}=t(),l=i.status==="in_progress",[o,c]=fe(()=>Date.now()-i.at>=1e4);return pe(()=>{if(!l)return;let a=Math.max(0,i.at+1e4-Date.now());if(c(a===0),a===0)return;let f=setTimeout(()=>c(!0),a);return()=>clearTimeout(f)},[i.id,i.at,l]),m("div",{className:"codex-context-compaction",children:[s(ce,{"aria-hidden":"true"}),s("span",{children:i.status==="completed"?n("stream.codex.contextCompacted"):i.status==="cancelled"?n("timeline.interrupted"):n(o?"timeline.compactingWithDelayNotice":"timeline.compacting")})]})}function v({sessionId:i,entry:n,terminals:l,streaming:o,streamingThoughtId:c}){let{t:a}=t();switch(n.kind){case"activity":return s(bn,{sessionId:i,items:n.items,terminals:l,streamingThoughtId:c});case"text":return _(n.item._meta).length>0?s(Mn,{sessionId:i,item:n.item}):s(we,{content:n.item.content,messageId:n.item.id,streaming:o});case"plan":return s(ri,{plan:n.item.plan});case"compaction":if(n.item.status==="failed")return m(In,{children:[s("div",{children:a("timeline.compactionFailed")}),n.item.error!==null&&s("div",{children:n.item.error})]});return s(ye,{item:n.item})}}function he({sessionId:i,turn:n,terminals:l,active:o,blocked:c=!1,continued:a=!1,edits:f=n.edits,activityItems:M=n.items,workStartedAt:Y=n.startedAt,isLast:W,error:y,interrupted:F,retry:L,retrying:u,answerActions:K,footer:Z}){let{t:d}=t(),E=n.errors.map((e)=>{let r=z(e);if(r===null)throw Error("Turn error item is missing its diagnostics");let I=L?.turnId===le(e)?L:void 0;return s(Nn,{error:r,retry:I},`${e.id}:${I?.delaySeconds??"manual"}`)});if(W&&y!==null&&!n.errors.some((e)=>{let r=z(e);return r!==null&&r.stopReason===y.stopReason&&J(r).message===J(y).message}))E.push(s(Nn,{error:y},"current-run-error"));let h=E.length>0?s("div",{className:"codex-turn-errors",children:E}):null,C=n.items.filter(wn);if(C.length>0&&C.length===n.items.length)return m(N,{children:[s(bn,{sessionId:i,items:C,terminals:l,streamingThoughtId:null}),h]});let x=n.work,k=x.length>0&&x.every((e)=>e.kind==="compaction");if(ki(n)||k&&n.final.length===0)return m(N,{children:[s("div",{role:"status",className:"text-muted-foreground flex min-w-0 flex-col gap-2 py-2 text-sm",children:n.work.map((e)=>s(v,{sessionId:i,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key))}),h]});let O=rt(n),P=n.final.filter((e)=>_(e._meta).length===0).map(re).join(`
2
+ `),T=o?null:ot(n,"assistant"),D=n.items.filter((e)=>e.kind==="tool"&&e.name==="image_generation"&&(e.status==="pending"||e.status==="in_progress")),G=new Set(n.final.flatMap((e)=>e.content.map(U).filter((r)=>r!==null))),A=n.items.flatMap((e)=>{if(e.kind!=="tool"||e.status!=="completed")return[];return e.content.filter(oe).flatMap((r,I)=>{let g=r.content,se=e.name==="image_generation"&&X(g),ie=e.toolKind!=="read"&&e.toolKind!=="search"&&(ae(g)||q(g)&&("blob"in g.resource));if(!se&&!ie)return[];let S=U(g);if(S!==null){if(G.has(S))return[];G.add(S)}return[{key:`${e.id}:${I}`,block:g}]})}),b=n.final.some((e)=>_(e._meta).length===0&&e.content.some((r)=>!me(r)||r.text.trim().length>0)),ee=D.length>0||A.length>0||k||b||n.final.some((e)=>_(e._meta).length>0),w=n.items.findIndex((e)=>n.final.includes(e)),R=(e)=>n.items.indexOf(e.kind==="activity"?e.items[0]:e.item),B=x.filter((e)=>w===-1||R(e)<w),te=x.filter((e)=>w!==-1&&R(e)>w),ne=[...n.final.map((e)=>({kind:"answer",item:e,index:n.items.indexOf(e)})),...te.map((e)=>({kind:"work",entry:e,index:R(e)}))].toSorted((e,r)=>e.index-r.index),H=!o&&!a&&(P.trim().length>0?s(vn,{text:P,isMostRecentTurn:W,time:T,afterCopy:K}):m("div",{className:"flex items-center gap-0.5",children:[K,T&&s("span",{className:"codex-user-time ms-1",title:T.full,children:T.short})]})),p=ai({...n,items:M},{running:o,blocked:c,retrying:u!==void 0}),Q=p.kind==="reasoning"?p.ownerKey??null:null,V=p.kind==="thinking",j=_i({...n,items:M});return m(N,{children:[s(yn,{stateKey:JSON.stringify([i,n.replayed?"history":"live",n.key]),active:o&&!b,defaultExpanded:o&&!b||!n.replayed&&(F||O),...j,startedAt:j.startedAt??Y,loading:(V||p.kind==="working")&&n.work.length===0,loadingLabel:p.kind==="working"?d("stream.codex.working"):void 0,work:a||k?[]:B.map((e)=>s(v,{sessionId:i,entry:e,terminals:l,streaming:o,streamingThoughtId:Q},e.key)),answer:ee||a?m("div",{className:"flex min-w-0 flex-col gap-3",children:[(a||k)&&B.map((e)=>s(v,{sessionId:i,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key)),ne.map((e)=>{if(e.kind==="work")return s(v,{sessionId:i,entry:e.entry,terminals:l,streaming:o,streamingThoughtId:Q},e.entry.key);let r=e.item;return m(ge,{children:[_(r._meta).length>0?s(Mn,{sessionId:i,item:r}):s(we,{content:r.content,messageId:r.id,streaming:o}),r===n.final.at(-1)&&H]},r.id)}),D.map((e)=>m("div",{className:"codex-image-generation",role:"status","aria-label":d(o?"timeline.imageGenerating":"timeline.imageStopped"),"aria-busy":o,children:[s("div",{className:"codex-image-generation-texture","aria-hidden":"true"}),m("span",{className:"codex-image-generation-status",children:[o&&s(de,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),d(o?"timeline.imageGenerating":"timeline.imageStopped")]})]},e.id)),A.length>0&&s("div",{className:"codex-reply-artifacts flex min-w-0 flex-col gap-3",children:A.map((e)=>s(we,{content:[e.block],messageId:e.key,streaming:!1},e.key))}),n.final.length===0&&H]}):null,footer:m(N,{children:[V&&n.work.length>0&&s("div",{className:"codex-pending-message py-2",role:"status",children:s("span",{className:"codex-activity-running",children:d("message.thinking")})}),Z,f.length>0&&!o&&!a&&s(Xo,{items:f}),F&&!O&&s("div",{className:"codex-interrupted-turn",role:"status",children:d("timeline.interrupted")}),!o&&h]})}),o&&u!==void 0&&s("div",{className:"text-muted-foreground py-2 text-sm",role:"status",children:u.capacity?(()=>{let e=/Reconnecting(?:\.\.\.)?\s+(\d+\/\d+)/.exec(u.message)?.[1];return e===void 0?d("timeline.capacityReconnecting"):d("timeline.capacityReconnectingProgress",{progress:e})})():u.message}),o&&h]})}var Qo=ue(he);
3
+ export{Qo};
@@ -1,2 +1,2 @@
1
- import{createContext as o,useContext as n,useEffect as r}from"react";var ro=o(null);function w(t){let e=n(ro);r(()=>{if(t&&e!==null)return e()},[t,e])}
2
- export{ro,w};
1
+ import{createContext as o,useContext as n,useEffect as r}from"react";var so=o(null);function k(t){let e=n(so);r(()=>{if(t&&e!==null)return e()},[t,e])}
2
+ export{so,k};
@@ -1,2 +1,2 @@
1
- import{createStore as r}from"@alwith/api/client";var De=r({sessionId:null,turns:[],api:null,beforeReveal:null,terminals:{}});function Di(e){De.setState({...e,terminals:e.terminals??{}})}function Hi(e){if(De.getState().sessionId===e)De.setState({sessionId:null,turns:[],api:null,beforeReveal:null,terminals:{}})}async function Oi(e,n,t){let i=De.getState();if(t.aborted||e===null||i.sessionId!==e||i.api===null)return;if(i.beforeReveal===null)throw Error("Mounted timeline has no navigation lifecycle");i.beforeReveal(),await i.api.scrollToKey(n,void 0,{align:"top"})}
2
- export{De,Di,Hi,Oi};
1
+ import{createStore as r}from"@alwith/api/client";var He=r({sessionId:null,turns:[],api:null,beforeReveal:null,terminals:{}});function Oi(e){He.setState({...e,terminals:e.terminals??{}})}function Ui(e){if(He.getState().sessionId===e)He.setState({sessionId:null,turns:[],api:null,beforeReveal:null,terminals:{}})}async function Bi(e,n,t){let i=He.getState();if(t.aborted||e===null||i.sessionId!==e||i.api===null)return;if(i.beforeReveal===null)throw Error("Mounted timeline has no navigation lifecycle");i.beforeReveal(),await i.api.scrollToKey(n,void 0,{align:"top"})}
2
+ export{He,Oi,Ui,Bi};
@@ -1,2 +1,2 @@
1
- import{createContext as i,useContext as r}from"react";import{jsx as e}from"react/jsx-runtime";var n=i(null);function Ui({host:t,children:o}){return e(n.Provider,{value:t,children:o})}function d(){let t=r(n);if(t===null)throw Error("Activity host is missing");return t}function _(t){let{Markdown:o}=d();return e(o,{...t})}
2
- export{Ui,d,_};
1
+ import{createContext as i,useContext as r}from"react";import{jsx as e}from"react/jsx-runtime";var n=i(null);function Gi({host:t,children:o}){return e(n.Provider,{value:t,children:o})}function d(){let t=r(n);if(t===null)throw Error("Activity host is missing");return t}function P(t){let{Markdown:o}=d();return e(o,{...t})}
2
+ export{Gi,d,P};
@@ -1,2 +1,2 @@
1
- import{cn as i}from"cn";import{jsx as t,jsxs as s}from"react/jsx-runtime";var $e="group/trailing";function Me({children:n,className:e}){return t("span",{className:i("flex w-5 shrink-0 items-center justify-center whitespace-nowrap",e),children:n})}function Ke({content:n,actions:e,className:r}){if(n==null&&e==null)return null;return s("span",{className:i("group/swap relative flex min-h-5 min-w-5 shrink-0 items-center justify-end",r),children:[n!=null&&t("span",{className:i("flex items-center justify-end",e!=null&&"group-focus-within/trailing:hidden group-hover/trailing:hidden group-has-[[data-popup-open]]/swap:hidden"),children:n}),e!=null&&t("span",{className:"absolute inset-y-0 end-0 hidden w-max items-center justify-end gap-0.5 group-focus-within/trailing:flex group-hover/trailing:flex has-[[data-popup-open]]:flex",onClick:(a)=>a.stopPropagation(),onKeyDown:(a)=>a.stopPropagation(),children:e})]})}
2
- export{$e,Me,Ke};
1
+ import{cn as i}from"cn";import{jsx as t,jsxs as s}from"react/jsx-runtime";var Ke="group/trailing";function Ae({children:n,className:e}){return t("span",{className:i("flex w-5 shrink-0 items-center justify-center whitespace-nowrap",e),children:n})}function qe({content:n,actions:e,className:r}){if(n==null&&e==null)return null;return s("span",{className:i("group/swap relative flex min-h-5 min-w-5 shrink-0 items-center justify-end",r),children:[n!=null&&t("span",{className:i("flex items-center justify-end",e!=null&&"group-focus-within/trailing:hidden group-hover/trailing:hidden group-has-[[data-popup-open]]/swap:hidden"),children:n}),e!=null&&t("span",{className:"absolute inset-y-0 end-0 hidden w-max items-center justify-end gap-0.5 group-focus-within/trailing:flex group-hover/trailing:flex has-[[data-popup-open]]:flex",onClick:(a)=>a.stopPropagation(),onKeyDown:(a)=>a.stopPropagation(),children:e})]})}
2
+ export{Ke,Ae,qe};
@@ -1,2 +1,2 @@
1
- import{gi}from"./chunk-3kk0rxch.js";import{useCallback as xe,useEffect as P,useLayoutEffect as ye,useMemo as X,useRef as I,useState as E}from"react";import"@alwith/module-chat/navigation-rail.css";import{jsx as T,jsxs as Ne,Fragment as ke}from"react/jsx-runtime";var Se=4,ge=10;function we(h,x){let v=new Map(x.flatMap((c)=>c.itemIds.map((S)=>[S,c.key]))),p=Array(h.length),C;for(let c=h.length-1;c>=0;c--)C=v.get(h[c])??C,p[c]=C;let A=Math.max(-1,...x.map((c)=>c.key))+1,B=new Set,n=[];for(let[c,S]of h.entries()){let w=v.get(S),m=n.at(-1);if(!m||w!==void 0&&w!==m.key||w===void 0&&m.itemIds.length>=64&&p[c]!==m.key){let y=w!==void 0&&!B.has(w)?w:A++;m={key:y,startIndex:c,itemIds:[]},n.push(m),B.add(y)}m.itemIds.push(S)}return n}function fe(h,x){if(h.size!==x.size)return!1;for(let v of h)if(!x.has(v))return!1;return!0}function mi({audio:h,beforeReveal:x,ensureItemMounted:v,items:p,onPreviewItem:C,renderPreview:A,onRevealError:B,scrollRoot:n,targetTopMarginPx:c=16}){let[S,w]=E(()=>{let e=p.at(-1);return new Set(e===void 0?[]:[e.id])}),[m,y]=E(null),[_,O]=E(null),[Z,R]=E(!1),[j,pe]=E(()=>new Set),[ve,be]=E(!0),[Ie,F]=E(null),{installUnlock:ee,preload:te,playSequence:ne}=h,K=I(null),M=I(null),U=I(!1),H=I(null),L=I(0),G=I(null),k=I(null),V=I(new Set),z=X(()=>p.map((e)=>e.id).join("\x00"),[p]),J=I(p);J.current=p;let ie=I(j),re=I(S),se=I({itemIdsKey:z,scrollRoot:n});if(se.current.scrollRoot!==n)L.current+=1,se.current={itemIdsKey:z,scrollRoot:n};let g=X(()=>v===void 0?p.filter((e)=>j.has(e.id)):p,[v,p,j]),ae=X(()=>g.map((e)=>({inputTokens:e.inputTokens,outputTokens:e.outputTokens})),[g]),D=I({ids:"",groups:[]}),oe=g.map((e)=>e.id).join("\x00");if(D.current.ids!==oe)D.current={ids:oe,groups:we(g.map((e)=>e.id),D.current.groups)};P(()=>ee(),[ee]),P(()=>()=>{if(L.current+=1,G.current?.cancel(),k.current!==null)clearTimeout(k.current)},[]),P(()=>{y(null),R(!1),O(null),M.current=null,U.current=!1,H.current=null,F(null),V.current.clear()},[n]),P(()=>{te()},[te]),P(()=>{if(n===null)return;let e=new Set,t=new Map,i=new Set(J.current.map((s)=>s.id)),r=()=>{let s=new Set(t.values()),d=J.current.filter((f)=>s.has(f.id)).map((f)=>f.id),o=d.findIndex((f)=>e.has(f));if(o===-1)return;let b=o;for(let f=o+1;f<d.length;f++)if(e.has(d[f]))b=f;let N=new Set(d.slice(o,b+1));if(fe(re.current,N))return;re.current=N,w(N)},a=new IntersectionObserver((s)=>{for(let d of s){let o=t.get(d.target);if(d.isIntersecting)e.add(o);else e.delete(o)}r()},{root:n,rootMargin:`-${c}px 0px 0px 0px`}),u=()=>{let s=new Set,d=new Set;for(let o of n.querySelectorAll("[data-content-search-unit-key]")){let b=o.dataset.contentSearchUnitKey;if(b===void 0||!i.has(b)||s.has(b))continue;s.add(b);let N=o.closest("[data-turn-key]"),f=N===null||d.has(N)?o:N;if(d.add(f),t.has(f))continue;t.set(f,b),a.observe(f)}for(let o of t.keys()){if(d.has(o))continue;a.unobserve(o),e.delete(t.get(o)),t.delete(o)}if(r(),fe(ie.current,s))return;ie.current=s,pe(s)};u();let l=new MutationObserver((s)=>{if(s.some((o)=>[...o.addedNodes,...o.removedNodes].some((b)=>b instanceof Element&&(b.matches("[data-turn-key], [data-content-search-unit-key]")||b.querySelector("[data-turn-key], [data-content-search-unit-key]")!==null))))u()});return l.observe(n,{childList:!0,subtree:!0}),()=>{l.disconnect(),a.disconnect()}},[z,n,c]);let Y=g.find((e)=>S.has(e.id))?.id??g.at(-1)?.id;ye(()=>{let e=K.current;if(e===null||M.current!==null||Y===void 0)return;let t=e.querySelector(`[data-timeline-user-message-navigation-item-id="${CSS.escape(Y)}"]`);if(t===null)return;let i=e.getBoundingClientRect(),r=t.getBoundingClientRect();if(r.top<i.top)e.scrollTop+=r.top-i.top;else if(r.bottom>i.bottom)e.scrollTop+=r.bottom-i.bottom+1},[Y,z]),P(()=>{let e=n?.querySelector("[data-timeline-user-message-navigation-content]");if(!n||!e)return;let t=()=>{let r=n.getBoundingClientRect(),a=e.getBoundingClientRect();if(r.width===0||a.width===0)return;let u=n.offsetWidth>0?r.width/n.offsetWidth:1;be((a.left-r.left)/u>=48)},i=new ResizeObserver(t);return i.observe(n),i.observe(e),t(),()=>i.disconnect()},[n]);let he=xe(async(e,t="smooth")=>{if(n===null)throw Error("Thread user-message navigation scroll root is missing");let i=L.current+1;L.current=i,x();let r=()=>n.querySelector(`[data-content-search-unit-key="${CSS.escape(e.id)}"]`),a=r(),u=a!==null&&n.clientHeight>0&&a.closest("[data-turn-key]")!==null&&Math.abs(a.getBoundingClientRect().top-n.getBoundingClientRect().top)>n.clientHeight*2;if((a===null||u)&&v!==void 0){if(t==="instant"&&e.isLoaded===!1)return;a=await v(e,()=>L.current===i)??r(),t="instant"}if(L.current!==i)return;if(a===null)return;let l=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;a.scrollIntoView({behavior:l?"instant":t,block:"start"});let s=a.querySelector("[data-user-message-bubble], [data-composer-attachment-pill]");if(G.current?.cancel(),G.current=null,s===null)return;let d=getComputedStyle(s).backgroundColor,o=`color-mix(in srgb, var(--foreground) 14%, ${d})`;G.current=s.animate?.([{backgroundColor:o},{backgroundColor:o,offset:0.35},{backgroundColor:d}],{duration:l?0:1000,easing:"cubic-bezier(0.23, 1, 0.32, 1)"})??null},[x,v,n]);if(g.length<Se||!ve)return null;let Q=()=>{if(k.current!==null)clearTimeout(k.current);k.current=null},ue=(e,t=!1)=>{if(Q(),C===void 0||e.isLoaded!==!1||V.current.has(e.turnKey))return;let i=()=>{k.current=null,V.current.add(e.turnKey),C(e).catch(()=>V.current.delete(e.turnKey))};if(t)i();else k.current=setTimeout(i,150)},q=m===null?null:g.find((e)=>e.id===m.item.id)??g.find((e)=>e.nativeTurnId!==void 0&&e.nativeTurnId===m.item.nativeTurnId)??m.item,le=(e,t="smooth")=>{he(e,t).catch((i)=>{if(B)B(i);else throw i})},de=g.findIndex((e)=>e.id===(_??Ie)),ce=K.current,Te=m===null||!ce?.contains(m.button)?0:Me(ce,m.button),me=(e)=>{let t=e?.closest("[data-timeline-user-message-navigation-item-id]"),i=K.current;if(t===void 0||t===null||!i.contains(t))return null;let r=t.dataset.timelineUserMessageNavigationItemId,a=g.findIndex((u)=>u.id===r);return{button:t,item:g[a],index:a}},W=(e)=>{let t=M.current;if(t?.pointerId!==e.pointerId)return;if(M.current=null,O(null),t.captureTarget.hasPointerCapture(e.pointerId))t.captureTarget.releasePointerCapture(e.pointerId)};return T("nav",{"aria-label":"User messages",className:"timeline-user-message-navigation absolute start-4 top-1/2 z-20 -translate-y-1/2",children:T(gi,{open:Z,onOpenChange:R,side:"inline-end",sideOffset:0,align:"center",alignOffset:Te,trigger:T("div",{ref:K,"data-timeline-user-message-navigation-rail-list":!0,"data-scrubbing":_===null?void 0:"",className:"timeline-user-message-navigation-rail-list",onPointerEnter:()=>{H.current=null},onPointerDown:(e)=>{if(e.button!==0)return;Q();let t=me(e.target instanceof Element?e.target:null);if(t===null)return;U.current=!1,M.current={pointerId:e.pointerId,itemId:t.item.id,itemIndex:t.index,captureTarget:t.button},t.button.setPointerCapture(e.pointerId),O(t.item.id),y(t),R(!0)},onPointerMove:(e)=>{let t=M.current;if(t===null){let l=me(e.target instanceof Element?e.target:null);if(l!==null){F(l.item.id);let s=H.current;if(s!==null&&s!==l.index)ne(s,l.index,ae);H.current=l.index,y((d)=>d?.item.id===l.item.id?d:l),ue(l.item)}return}if(t.pointerId!==e.pointerId)return;if((e.buttons&1)===0){W(e);return}let i=e.currentTarget.getBoundingClientRect(),r=Math.max(0,Math.min(g.length-1,Math.floor((e.clientY-i.top+e.currentTarget.scrollTop)/ge))),u={button:e.currentTarget.querySelectorAll("[data-timeline-user-message-navigation-item-id]")[r],item:g[r],index:r};if(u.item.id===t.itemId)return;ne(t.itemIndex,u.index,ae),H.current=u.index,M.current={...t,itemId:u.item.id,itemIndex:u.index},U.current=!0,O(u.item.id),y(u),le(u.item,"instant")},onPointerUp:W,onPointerCancel:W,onLostPointerCapture:W,onPointerLeave:()=>{if(Q(),F(null),H.current=null,M.current===null&&!Z)y(null)},children:T("div",{className:"flex flex-col",children:D.current.groups.map((e)=>T("div",{className:"flex w-9 shrink-0 flex-col [content-visibility:auto]",style:{height:e.itemIds.length*ge},children:g.slice(e.startIndex,e.startIndex+e.itemIds.length).map((t,i)=>{let r=e.startIndex+i,a=Math.abs(r-de),u=de===-1||a>3?void 0:[1,0.7,0.4,0.2][a];return T("button",{type:"button","data-timeline-user-message-navigation-item-id":t.id,"data-scrub-target":_===t.id?"":void 0,"aria-current":S.has(t.id)?"true":void 0,"aria-label":`Jump to user message ${r+1}`,className:"timeline-user-message-navigation-row",onClick:(l)=>{if(U.current){U.current=!1;return}let s={button:l.currentTarget,item:t,index:r};y(s),R(!0),le(t)},onFocus:(l)=>{ue(t,!0),y({button:l.currentTarget,item:t,index:r}),R(!0)},children:T("span",{className:"flex h-0.5 w-[30px] items-center",children:T("span",{className:"timeline-user-message-navigation-marker",style:u===void 0?void 0:{"--marker-progress":u}})})},t.id)})},e.key))})}),children:q!==null&&T("div",{className:"bg-popover/95 text-popover-foreground ring-border w-80 max-w-[calc(100vw-1rem)] overflow-hidden rounded-xl p-2 text-sm leading-5 shadow-xl ring-[0.5px] backdrop-blur-sm",children:A?A(q):Ne(ke,{children:[T("div",{className:"min-w-0 truncate font-medium",children:q.label}),q.response.length>0&&T("div",{className:"text-muted-foreground mt-1 line-clamp-3",children:q.response})]})})})})}function Me(h,x){let v=h.getBoundingClientRect(),p=x.getBoundingClientRect();return p.top+p.height/2-(v.top+v.height/2)}
2
- export{mi};
1
+ import{hi}from"./chunk-f06zyvek.js";import{useCallback as xe,useEffect as P,useLayoutEffect as ye,useMemo as X,useRef as I,useState as E}from"react";import"@alwith/module-chat/navigation-rail.css";import{jsx as T,jsxs as Ne,Fragment as ke}from"react/jsx-runtime";var Se=4,ge=10;function we(h,x){let v=new Map(x.flatMap((c)=>c.itemIds.map((S)=>[S,c.key]))),p=Array(h.length),C;for(let c=h.length-1;c>=0;c--)C=v.get(h[c])??C,p[c]=C;let A=Math.max(-1,...x.map((c)=>c.key))+1,B=new Set,n=[];for(let[c,S]of h.entries()){let w=v.get(S),m=n.at(-1);if(!m||w!==void 0&&w!==m.key||w===void 0&&m.itemIds.length>=64&&p[c]!==m.key){let y=w!==void 0&&!B.has(w)?w:A++;m={key:y,startIndex:c,itemIds:[]},n.push(m),B.add(y)}m.itemIds.push(S)}return n}function fe(h,x){if(h.size!==x.size)return!1;for(let v of h)if(!x.has(v))return!1;return!0}function fi({audio:h,beforeReveal:x,ensureItemMounted:v,items:p,onPreviewItem:C,renderPreview:A,onRevealError:B,scrollRoot:n,targetTopMarginPx:c=16}){let[S,w]=E(()=>{let e=p.at(-1);return new Set(e===void 0?[]:[e.id])}),[m,y]=E(null),[_,O]=E(null),[Z,R]=E(!1),[j,pe]=E(()=>new Set),[ve,be]=E(!0),[Ie,F]=E(null),{installUnlock:ee,preload:te,playSequence:ne}=h,K=I(null),M=I(null),U=I(!1),H=I(null),L=I(0),G=I(null),k=I(null),V=I(new Set),z=X(()=>p.map((e)=>e.id).join("\x00"),[p]),J=I(p);J.current=p;let ie=I(j),re=I(S),se=I({itemIdsKey:z,scrollRoot:n});if(se.current.scrollRoot!==n)L.current+=1,se.current={itemIdsKey:z,scrollRoot:n};let g=X(()=>v===void 0?p.filter((e)=>j.has(e.id)):p,[v,p,j]),ae=X(()=>g.map((e)=>({inputTokens:e.inputTokens,outputTokens:e.outputTokens})),[g]),D=I({ids:"",groups:[]}),oe=g.map((e)=>e.id).join("\x00");if(D.current.ids!==oe)D.current={ids:oe,groups:we(g.map((e)=>e.id),D.current.groups)};P(()=>ee(),[ee]),P(()=>()=>{if(L.current+=1,G.current?.cancel(),k.current!==null)clearTimeout(k.current)},[]),P(()=>{y(null),R(!1),O(null),M.current=null,U.current=!1,H.current=null,F(null),V.current.clear()},[n]),P(()=>{te()},[te]),P(()=>{if(n===null)return;let e=new Set,t=new Map,i=new Set(J.current.map((s)=>s.id)),r=()=>{let s=new Set(t.values()),d=J.current.filter((f)=>s.has(f.id)).map((f)=>f.id),o=d.findIndex((f)=>e.has(f));if(o===-1)return;let b=o;for(let f=o+1;f<d.length;f++)if(e.has(d[f]))b=f;let N=new Set(d.slice(o,b+1));if(fe(re.current,N))return;re.current=N,w(N)},a=new IntersectionObserver((s)=>{for(let d of s){let o=t.get(d.target);if(d.isIntersecting)e.add(o);else e.delete(o)}r()},{root:n,rootMargin:`-${c}px 0px 0px 0px`}),u=()=>{let s=new Set,d=new Set;for(let o of n.querySelectorAll("[data-content-search-unit-key]")){let b=o.dataset.contentSearchUnitKey;if(b===void 0||!i.has(b)||s.has(b))continue;s.add(b);let N=o.closest("[data-turn-key]"),f=N===null||d.has(N)?o:N;if(d.add(f),t.has(f))continue;t.set(f,b),a.observe(f)}for(let o of t.keys()){if(d.has(o))continue;a.unobserve(o),e.delete(t.get(o)),t.delete(o)}if(r(),fe(ie.current,s))return;ie.current=s,pe(s)};u();let l=new MutationObserver((s)=>{if(s.some((o)=>[...o.addedNodes,...o.removedNodes].some((b)=>b instanceof Element&&(b.matches("[data-turn-key], [data-content-search-unit-key]")||b.querySelector("[data-turn-key], [data-content-search-unit-key]")!==null))))u()});return l.observe(n,{childList:!0,subtree:!0}),()=>{l.disconnect(),a.disconnect()}},[z,n,c]);let Y=g.find((e)=>S.has(e.id))?.id??g.at(-1)?.id;ye(()=>{let e=K.current;if(e===null||M.current!==null||Y===void 0)return;let t=e.querySelector(`[data-timeline-user-message-navigation-item-id="${CSS.escape(Y)}"]`);if(t===null)return;let i=e.getBoundingClientRect(),r=t.getBoundingClientRect();if(r.top<i.top)e.scrollTop+=r.top-i.top;else if(r.bottom>i.bottom)e.scrollTop+=r.bottom-i.bottom+1},[Y,z]),P(()=>{let e=n?.querySelector("[data-timeline-user-message-navigation-content]");if(!n||!e)return;let t=()=>{let r=n.getBoundingClientRect(),a=e.getBoundingClientRect();if(r.width===0||a.width===0)return;let u=n.offsetWidth>0?r.width/n.offsetWidth:1;be((a.left-r.left)/u>=48)},i=new ResizeObserver(t);return i.observe(n),i.observe(e),t(),()=>i.disconnect()},[n]);let he=xe(async(e,t="smooth")=>{if(n===null)throw Error("Thread user-message navigation scroll root is missing");let i=L.current+1;L.current=i,x();let r=()=>n.querySelector(`[data-content-search-unit-key="${CSS.escape(e.id)}"]`),a=r(),u=a!==null&&n.clientHeight>0&&a.closest("[data-turn-key]")!==null&&Math.abs(a.getBoundingClientRect().top-n.getBoundingClientRect().top)>n.clientHeight*2;if((a===null||u)&&v!==void 0){if(t==="instant"&&e.isLoaded===!1)return;a=await v(e,()=>L.current===i)??r(),t="instant"}if(L.current!==i)return;if(a===null)return;let l=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;a.scrollIntoView({behavior:l?"instant":t,block:"start"});let s=a.querySelector("[data-user-message-bubble], [data-composer-attachment-pill]");if(G.current?.cancel(),G.current=null,s===null)return;let d=getComputedStyle(s).backgroundColor,o=`color-mix(in srgb, var(--foreground) 14%, ${d})`;G.current=s.animate?.([{backgroundColor:o},{backgroundColor:o,offset:0.35},{backgroundColor:d}],{duration:l?0:1000,easing:"cubic-bezier(0.23, 1, 0.32, 1)"})??null},[x,v,n]);if(g.length<Se||!ve)return null;let Q=()=>{if(k.current!==null)clearTimeout(k.current);k.current=null},ue=(e,t=!1)=>{if(Q(),C===void 0||e.isLoaded!==!1||V.current.has(e.turnKey))return;let i=()=>{k.current=null,V.current.add(e.turnKey),C(e).catch(()=>V.current.delete(e.turnKey))};if(t)i();else k.current=setTimeout(i,150)},q=m===null?null:g.find((e)=>e.id===m.item.id)??g.find((e)=>e.nativeTurnId!==void 0&&e.nativeTurnId===m.item.nativeTurnId)??m.item,le=(e,t="smooth")=>{he(e,t).catch((i)=>{if(B)B(i);else throw i})},de=g.findIndex((e)=>e.id===(_??Ie)),ce=K.current,Te=m===null||!ce?.contains(m.button)?0:Me(ce,m.button),me=(e)=>{let t=e?.closest("[data-timeline-user-message-navigation-item-id]"),i=K.current;if(t===void 0||t===null||!i.contains(t))return null;let r=t.dataset.timelineUserMessageNavigationItemId,a=g.findIndex((u)=>u.id===r);return{button:t,item:g[a],index:a}},W=(e)=>{let t=M.current;if(t?.pointerId!==e.pointerId)return;if(M.current=null,O(null),t.captureTarget.hasPointerCapture(e.pointerId))t.captureTarget.releasePointerCapture(e.pointerId)};return T("nav",{"aria-label":"User messages",className:"timeline-user-message-navigation absolute start-4 top-1/2 z-20 -translate-y-1/2",children:T(hi,{open:Z,onOpenChange:R,side:"inline-end",sideOffset:0,align:"center",alignOffset:Te,trigger:T("div",{ref:K,"data-timeline-user-message-navigation-rail-list":!0,"data-scrubbing":_===null?void 0:"",className:"timeline-user-message-navigation-rail-list",onPointerEnter:()=>{H.current=null},onPointerDown:(e)=>{if(e.button!==0)return;Q();let t=me(e.target instanceof Element?e.target:null);if(t===null)return;U.current=!1,M.current={pointerId:e.pointerId,itemId:t.item.id,itemIndex:t.index,captureTarget:t.button},t.button.setPointerCapture(e.pointerId),O(t.item.id),y(t),R(!0)},onPointerMove:(e)=>{let t=M.current;if(t===null){let l=me(e.target instanceof Element?e.target:null);if(l!==null){F(l.item.id);let s=H.current;if(s!==null&&s!==l.index)ne(s,l.index,ae);H.current=l.index,y((d)=>d?.item.id===l.item.id?d:l),ue(l.item)}return}if(t.pointerId!==e.pointerId)return;if((e.buttons&1)===0){W(e);return}let i=e.currentTarget.getBoundingClientRect(),r=Math.max(0,Math.min(g.length-1,Math.floor((e.clientY-i.top+e.currentTarget.scrollTop)/ge))),u={button:e.currentTarget.querySelectorAll("[data-timeline-user-message-navigation-item-id]")[r],item:g[r],index:r};if(u.item.id===t.itemId)return;ne(t.itemIndex,u.index,ae),H.current=u.index,M.current={...t,itemId:u.item.id,itemIndex:u.index},U.current=!0,O(u.item.id),y(u),le(u.item,"instant")},onPointerUp:W,onPointerCancel:W,onLostPointerCapture:W,onPointerLeave:()=>{if(Q(),F(null),H.current=null,M.current===null&&!Z)y(null)},children:T("div",{className:"flex flex-col",children:D.current.groups.map((e)=>T("div",{className:"flex w-9 shrink-0 flex-col [content-visibility:auto]",style:{height:e.itemIds.length*ge},children:g.slice(e.startIndex,e.startIndex+e.itemIds.length).map((t,i)=>{let r=e.startIndex+i,a=Math.abs(r-de),u=de===-1||a>3?void 0:[1,0.7,0.4,0.2][a];return T("button",{type:"button","data-timeline-user-message-navigation-item-id":t.id,"data-scrub-target":_===t.id?"":void 0,"aria-current":S.has(t.id)?"true":void 0,"aria-label":`Jump to user message ${r+1}`,className:"timeline-user-message-navigation-row",onClick:(l)=>{if(U.current){U.current=!1;return}let s={button:l.currentTarget,item:t,index:r};y(s),R(!0),le(t)},onFocus:(l)=>{ue(t,!0),y({button:l.currentTarget,item:t,index:r}),R(!0)},children:T("span",{className:"flex h-0.5 w-[30px] items-center",children:T("span",{className:"timeline-user-message-navigation-marker",style:u===void 0?void 0:{"--marker-progress":u}})})},t.id)})},e.key))})}),children:q!==null&&T("div",{className:"bg-popover/95 text-popover-foreground ring-border w-80 max-w-[calc(100vw-1rem)] overflow-hidden rounded-xl p-2 text-sm leading-5 shadow-xl ring-[0.5px] backdrop-blur-sm",children:A?A(q):Ne(ke,{children:[T("div",{className:"min-w-0 truncate font-medium",children:q.label}),q.response.length>0&&T("div",{className:"text-muted-foreground mt-1 line-clamp-3",children:q.response})]})})})})}function Me(h,x){let v=h.getBoundingClientRect(),p=x.getBoundingClientRect();return p.top+p.height/2-(v.top+v.height/2)}
2
+ export{fi};
@@ -1,2 +1,2 @@
1
- import{t,at}from"./chunk-z8njjc2c.js";import{isEmbeddedResource as B,isImage as h,isResourceLink as E}from"@nyssance/codex-acp-v2/client";import{DownloadIcon as T,FileIcon as N,ImageOffIcon as L,LoaderCircleIcon as F}from"lucide-react";import{useState as y}from"react";import{Button as u}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as n,jsxs as o}from"react/jsx-runtime";function Rr(e){let s=e.split(/[\\/]/).at(-1)??e;if(e.startsWith("file:")||/^https?:/.test(e))s=new URL(e).pathname.split("/").at(-1)??"";try{return decodeURIComponent(s)||"attachment"}catch(a){if(a instanceof URIError)return s||"attachment";throw a}}function U(e,s){let a=document.createElement("a");a.href=s,a.download=e,a.click()}function Z({block:e,generated:s=!1}){let a=t(),[p,d]=y(!1),[I,C]=y(null);if(E(e)){if(e.uri==="codex-image:unavailable")return o("span",{className:"text-muted-foreground flex items-center gap-2 rounded-lg border p-3 text-sm",children:[n(L,{className:"size-4"}),a.t("timeline.imageUnavailable")]});let c=Rr(e.uri);return o(u,{variant:"outline",className:"h-auto max-w-full min-w-0 justify-start gap-3 overflow-hidden p-3","aria-label":e.title??e.name,title:e.uri,onClick:()=>a.openLink(e.uri),children:[n(N,{}),o("span",{className:"min-w-0 flex-1 text-start",children:[n("span",{className:"block truncate",children:e.title??e.name}),o("span",{className:"text-muted-foreground block truncate text-xs",children:[(e.title??e.name)!==c&&`${c} · `,e.mimeType??c.split(".").at(-1)?.toUpperCase()]})]})]})}if(!B(e)&&!h(e))return null;let i=h(e)?{uri:e.uri??`image.${e.mimeType.split("/")[1]??"png"}`,mimeType:e.mimeType,blob:e.data}:e.resource,r=Rr(i.uri);if("text"in i)return o("div",{className:"min-w-0",children:[n("pre",{className:"overflow-x-auto whitespace-pre-wrap",children:i.text}),o(u,{variant:"link",size:"sm",className:"max-w-full min-w-0",title:i.uri,onClick:()=>a.openLink(i.uri),children:[n(N,{}),n("span",{className:"truncate",children:r})]})]});let l=`data:${i.mimeType??"application/octet-stream"};base64,${i.blob}`,f=i.mimeType?.toLowerCase().startsWith("image/")&&I!==l,{openImage:g,openImageGallery:w}=a,x=w?()=>w([{src:l,alt:r,uri:i.uri}],0):g&&(()=>g(l)),m=s&&f,R=async()=>{d(!0);try{if(a.saveFile)await a.saveFile(r,i.blob);else U(r,l)}catch(c){at(a,c)}finally{d(!1)}},v=n("img",{src:l,alt:"",className:s?"max-h-[40rem] max-w-full object-contain":"max-h-96 max-w-full rounded object-contain",onError:()=>C(l)});return o("div",{className:m?"codex-generated-image":"flex max-w-full min-w-0 flex-col items-start gap-1",children:[f&&(x===void 0?v:n(u,{variant:"ghost",className:s?"codex-generated-image-preview h-auto max-w-full p-0":"h-auto max-w-full p-0","aria-label":a.t("timeline.viewImage"),onClick:x,children:v})),o(u,{variant:m?"secondary":"link",size:m?"icon":"sm",className:m?"codex-generated-image-download":"max-w-full min-w-0",disabled:p,title:a.t("timeline.download",{name:r}),"aria-label":a.t("timeline.download",{name:r}),onClick:()=>{R()},children:[p?n(F,{className:"motion-safe:animate-spin"}):n(T,{}),!m&&n("span",{className:"truncate",children:r})]})]})}
2
- export{Rr,Z};
1
+ import{t,st}from"./chunk-1vmk34zf.js";import{isEmbeddedResource as B,isImage as h,isResourceLink as E}from"@nyssance/codex-acp-v2/client";import{DownloadIcon as T,FileIcon as N,ImageOffIcon as L,LoaderCircleIcon as F}from"lucide-react";import{useState as y}from"react";import{Button as u}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as n,jsxs as o}from"react/jsx-runtime";function Dr(e){let s=e.split(/[\\/]/).at(-1)??e;if(e.startsWith("file:")||/^https?:/.test(e))s=new URL(e).pathname.split("/").at(-1)??"";try{return decodeURIComponent(s)||"attachment"}catch(a){if(a instanceof URIError)return s||"attachment";throw a}}function U(e,s){let a=document.createElement("a");a.href=s,a.download=e,a.click()}function Q({block:e,generated:s=!1}){let a=t(),[p,d]=y(!1),[I,C]=y(null);if(E(e)){if(e.uri==="codex-image:unavailable")return o("span",{className:"text-muted-foreground flex items-center gap-2 rounded-lg border p-3 text-sm",children:[n(L,{className:"size-4"}),a.t("timeline.imageUnavailable")]});let c=Dr(e.uri);return o(u,{variant:"outline",className:"h-auto max-w-full min-w-0 justify-start gap-3 overflow-hidden p-3","aria-label":e.title??e.name,title:e.uri,onClick:()=>a.openLink(e.uri),children:[n(N,{}),o("span",{className:"min-w-0 flex-1 text-start",children:[n("span",{className:"block truncate",children:e.title??e.name}),o("span",{className:"text-muted-foreground block truncate text-xs",children:[(e.title??e.name)!==c&&`${c} · `,e.mimeType??c.split(".").at(-1)?.toUpperCase()]})]})]})}if(!B(e)&&!h(e))return null;let i=h(e)?{uri:e.uri??`image.${e.mimeType.split("/")[1]??"png"}`,mimeType:e.mimeType,blob:e.data}:e.resource,r=Dr(i.uri);if("text"in i)return o("div",{className:"min-w-0",children:[n("pre",{className:"overflow-x-auto whitespace-pre-wrap",children:i.text}),o(u,{variant:"link",size:"sm",className:"max-w-full min-w-0",title:i.uri,onClick:()=>a.openLink(i.uri),children:[n(N,{}),n("span",{className:"truncate",children:r})]})]});let l=`data:${i.mimeType??"application/octet-stream"};base64,${i.blob}`,f=i.mimeType?.toLowerCase().startsWith("image/")&&I!==l,{openImage:g,openImageGallery:w}=a,x=w?()=>w([{src:l,alt:r,uri:i.uri}],0):g&&(()=>g(l)),m=s&&f,R=async()=>{d(!0);try{if(a.saveFile)await a.saveFile(r,i.blob);else U(r,l)}catch(c){st(a,c)}finally{d(!1)}},v=n("img",{src:l,alt:"",className:s?"max-h-[40rem] max-w-full object-contain":"max-h-96 max-w-full rounded object-contain",onError:()=>C(l)});return o("div",{className:m?"codex-generated-image":"flex max-w-full min-w-0 flex-col items-start gap-1",children:[f&&(x===void 0?v:n(u,{variant:"ghost",className:s?"codex-generated-image-preview h-auto max-w-full p-0":"h-auto max-w-full p-0","aria-label":a.t("timeline.viewImage"),onClick:x,children:v})),o(u,{variant:m?"secondary":"link",size:m?"icon":"sm",className:m?"codex-generated-image-download":"max-w-full min-w-0",disabled:p,title:a.t("timeline.download",{name:r}),"aria-label":a.t("timeline.download",{name:r}),onClick:()=>{R()},children:[p?n(F,{className:"motion-safe:animate-spin"}):n(T,{}),!m&&n("span",{className:"truncate",children:r})]})]})}
2
+ export{Dr,Q};
@@ -1,2 +1,2 @@
1
- import{Io,xe}from"./chunk-cd4v63j8.js";import{No}from"./chunk-z1aqmqgc.js";import{dn,un,We,Qe,pn}from"./chunk-famkkndg.js";import{cn as P}from"cn";import{ArrowUpIcon as ge,Loader2Icon as be,SquareIcon as ve,XIcon as he}from"lucide-react";import{Children as V,useCallback as h,useEffect as F,useMemo as Pe,useRef as M,useState as Ie}from"react";import{flushSync as ye}from"react-dom";import{InputGroup as Le,InputGroupAddon as Z,InputGroupButton as ee}from"@nyssance/shadcn/vega/components/ui/input-group";import{jsx as a,jsxs as Te}from"react/jsx-runtime";function Y(u){let o=new FormData(u).get("message");return typeof o==="string"?o:""}var wo=({className:u,bashMode:o=!1,attachmentPolicy:I,onCommand:d,onSubmitError:y,canSubmit:f,onSubmitAsync:g,accept:E,multiple:te,globalDrop:C,syncHiddenInput:R,maxFiles:z,maxFileSize:H,onError:b,onSubmit:re,children:oe,...se})=>{let s=Qe(),l=!!s,ie=o&&l&&s.textInput.value.startsWith("!"),x=M(null),A=M(null),k=M(!1),[ae,D]=Ie([]),c=l?s.attachments.files:ae,U=M(c);U.current=c;let ue=h(()=>{x.current?.click()},[]),B=h((e)=>{if(!E||E.trim()==="")return!0;return E.split(",").map((t)=>t.trim()).filter(Boolean).some((t)=>{if(t.endsWith("/*")){let n=t.slice(0,-1);return e.type.startsWith(n)}return e.type===t})},[E]),O=h((e)=>{if(e.type)return e.type;let r=(e.name||"").toLowerCase();if(r.endsWith(".png"))return"image/png";if(r.endsWith(".jpg")||r.endsWith(".jpeg"))return"image/jpeg";if(r.endsWith(".webp"))return"image/webp";if(r.endsWith(".gif"))return"image/gif";if(r.endsWith(".bmp"))return"image/bmp";if(r.endsWith(".svg"))return"image/svg+xml";return""},[]),le=h((e)=>{let r=[...e],t=r.filter((i)=>B(i));if(r.length&&t.length===0){b?.({code:"accept",message:"No files match the accepted types."});return}let n=(i)=>H?i.size<=H:!0,m=t.filter(n);if(t.length>0&&m.length===0){b?.({code:"max_file_size",message:"All files exceed the maximum size."});return}D((i)=>{let v=I?I.uniqueFiles(m,i):m,p=typeof z==="number"?Math.max(0,z-i.length):void 0,_=typeof p==="number"?v.slice(0,p):v;if(typeof p==="number"&&v.length>p)b?.({code:"max_files",message:"Too many files. Some were not added."});let K=[];for(let T of _){let Q=I?.sourcePath(T);K.push({id:crypto.randomUUID(),type:"file",url:URL.createObjectURL(T),mediaType:O(T),filename:T.name,size:T.size,lastModified:T.lastModified,...Q===void 0?{}:{sourcePath:Q}})}return[...i,...K]})},[I,O,B,z,H,b]),pe=h((e)=>D((r)=>{let t=r.find((n)=>n.id===e);if(t?.url)URL.revokeObjectURL(t.url);return r.filter((n)=>n.id!==e)}),[]),me=h(()=>D((e)=>{for(let r of e)if(r.url)URL.revokeObjectURL(r.url);return[]}),[]),W=l?s.attachments.add:le,L=h((e)=>{let r=[...e],t=r.filter((m)=>!(m.type??"").toLowerCase().startsWith("image/"));if(t.length>0){b?.({code:"unsupported_type",message:`Only image attachments are supported. ${t.length} non-image file(s) were ignored.`});return}let n=r.reduce((m,i)=>m+i.size,0);if(n>0){let m=c.filter((i)=>(i.mediaType??"").toLowerCase().startsWith("image/")).reduce((i,v)=>i+(v.size??0),0);if(Io(m,n)){b?.({code:"max_total_size",message:`Total image size must not exceed ${xe}MB.`});return}}W(r)},[c,W,b]),G=l?s.attachments.remove:pe,N=l?s.attachments.clear:me,j=l?s.attachments.openFileDialog:ue;F(()=>{if(!l)return;s.__registerFileInput(x,()=>x.current?.click())},[l,s]),F(()=>{if(R&&x.current&&c.length===0)x.current.value=""},[c,R]),F(()=>{let e=A.current;if(!e)return;if(C)return;let r=(n)=>{if(n.dataTransfer?.types?.includes("Files"))n.preventDefault()},t=(n)=>{if(n.dataTransfer?.types?.includes("Files"))n.preventDefault();if(n.dataTransfer?.files&&n.dataTransfer.files.length>0)L(n.dataTransfer.files)};return e.addEventListener("dragover",r),e.addEventListener("drop",t),()=>{e.removeEventListener("dragover",r),e.removeEventListener("drop",t)}},[L,C]),F(()=>{if(!C)return;let e=(t)=>{if(t.dataTransfer?.types?.includes("Files"))t.preventDefault()},r=(t)=>{if(t.dataTransfer?.types?.includes("Files"))t.preventDefault();if(t.dataTransfer?.files&&t.dataTransfer.files.length>0)L(t.dataTransfer.files)};return document.addEventListener("dragover",e),document.addEventListener("drop",r),()=>{document.removeEventListener("dragover",e),document.removeEventListener("drop",r)}},[L,C]),F(()=>()=>{if(!l){for(let e of U.current)if(e.url)URL.revokeObjectURL(e.url)}},[l]);let ce=(e)=>{if(e.currentTarget.files)L(e.currentTarget.files);e.currentTarget.value=""},q=Pe(()=>({files:c.map((e)=>({...e,id:e.id})),add:L,remove:G,clear:N,openFileDialog:j,fileInputRef:x}),[c,L,G,N,j]),w=M({controller:s,files:c,canSubmit:f});w.current={controller:s,files:c,canSubmit:f};let S=M(!0);F(()=>(S.current=!0,()=>{S.current=!1}),[]);let X=async(e)=>{let r=f===void 0?!0:f();if(r!==!0)return{status:"blocked",reason:r};if(k.current)return{status:"blocked",reason:"submission_pending"};if(e===null&&g===void 0)throw Error("Awaitable submission requires onSubmitAsync");let t=A.current;if(t===null)return{status:"blocked",reason:"form_unmounted"};let n=l?s.textInput.value:Y(t),m=s?.textInput.getRevision?.(),i=c,v=()=>{if(!S.current)return;let p=w.current;if(p.files!==i)return;if(l){if(m===void 0||p.controller===null||p.controller.textInput.getRevision?.()!==m)return;if(p.controller.textInput.clearSubmitted===void 0)p.controller.textInput.clear();else p.controller.textInput.clearSubmitted()}else if(Y(t)===n)t.reset();N()};k.current=!0;try{if(d?.(n.trim()))return v(),{status:"accepted"};let p=await No(i),_=w.current.canSubmit===void 0?!0:w.current.canSubmit();if(_!==!0)return{status:"blocked",reason:_};if(!S.current)return{status:"blocked",reason:"form_unmounted"};if(p.rejectedCount>0)b?.({code:"accept",message:"One or more images are corrupted and were removed before sending."});if(g!==void 0)await g({text:n,files:p.files});else if(e!==null)await re({text:n,files:p.files},e);return v(),{status:"accepted"}}finally{k.current=!1}},de=(e)=>{e.preventDefault(),X(e).catch(y)},fe=h((e)=>{if(!e.trim())return;if(l&&s)ye(()=>{s.textInput.setInput(e)});A.current?.requestSubmit()},[s,l]),J=a(un.Provider,{value:()=>X(null),children:Te(dn.Provider,{value:fe,children:[a("input",{accept:E,"aria-label":"Upload files",className:"hidden",multiple:te,onChange:ce,ref:x,title:"Upload files",type:"file"}),a("form",{className:P("w-full",u),onSubmit:de,ref:A,"data-tour":"chat-input",...se,children:a(Le,{className:P("codex-composer-surface overflow-y-auto has-[[data-slot=input-group-control]:focus-visible]:ring-0",ie&&"border! border-[rgb(255,0,135)] has-[[data-slot=input-group-control]:focus-visible]:border-[rgb(255,0,135)] dark:border-[rgb(253,93,177)] dark:has-[[data-slot=input-group-control]:focus-visible]:border-[rgb(253,93,177)]"),children:oe})})]})});return l?a(We.Provider,{value:q,children:J}):a(pn.Provider,{value:q,children:J})};function ko({className:u,...o}){return a("div",{className:P("flex w-full min-w-0 flex-row items-end gap-2",u),...o})}function So({className:u,...o}){return a(Z,{align:"block-end",className:P("order-first flex-wrap gap-1 p-2 pb-1.5",u),...o})}function _o({className:u,...o}){return a(Z,{align:"block-end",className:P("mt-3.5 justify-between gap-1 p-0",u),...o})}function Po({className:u,...o}){return a("div",{className:P("flex items-center gap-1",u),...o})}var ne=({variant:u="ghost",className:o,size:I,collapsed:d=!1,...y})=>{let f=d||V.count(y.children)<=1?"icon-xs":"xs";return a(ee,{className:P("h-7 rounded-full text-xs font-medium hover:bg-transparent dark:hover:bg-transparent",(d||V.count(y.children)<=1)&&"size-7",o),size:f,type:"button",variant:u,...y})},To=({className:u,variant:o="ghost",size:I="icon-xs",status:d,children:y,...f})=>{let g=a(ge,{className:"size-4"});if(d==="submitted")g=a(be,{className:"size-4 animate-spin"});else if(d==="streaming")g=a(ve,{className:"size-3 fill-current"});else if(d==="error")g=a(he,{className:"size-4"});return a(ee,{"aria-label":"Submit",className:P("bg-foreground text-background hover:bg-foreground/70 size-7 rounded-full p-0 transition-opacity disabled:opacity-50",u),size:I,type:"submit",variant:o,...f,children:y??g})};
2
- export{wo,ko,So,_o,Po,ne,To};
1
+ import{Mo,be}from"./chunk-r29eygte.js";import{Ao}from"./chunk-5wc30q2q.js";import{pn,mn,Ze,Ye,gn}from"./chunk-w49gke0h.js";import{cn as P}from"cn";import{ArrowUpIcon as ge,Loader2Icon as ve,SquareIcon as he,XIcon as Pe}from"lucide-react";import{Children as V,useCallback as h,useEffect as F,useMemo as Ie,useRef as M,useState as ye}from"react";import{flushSync as xe}from"react-dom";import{InputGroup as Le,InputGroupAddon as Z,InputGroupButton as ee}from"@nyssance/shadcn/vega/components/ui/input-group";import{jsx as a,jsxs as Te}from"react/jsx-runtime";function Y(u){let o=new FormData(u).get("message");return typeof o==="string"?o:""}var So=({className:u,bashMode:o=!1,attachmentPolicy:I,onCommand:d,onSubmitError:y,canSubmit:f,onSubmitAsync:g,accept:E,multiple:te,globalDrop:C,syncHiddenInput:R,maxFiles:z,maxFileSize:H,onError:b,onSubmit:re,children:ne,...se})=>{let s=Ye(),l=!!s,ie=o&&l&&s.textInput.value.startsWith("!"),x=M(null),A=M(null),k=M(!1),[ae,D]=ye([]),c=l?s.attachments.files:ae,U=M(c);U.current=c;let ue=h(()=>{x.current?.click()},[]),B=h((e)=>{if(!E||E.trim()==="")return!0;return E.split(",").map((t)=>t.trim()).filter(Boolean).some((t)=>{if(t.endsWith("/*")){let n=t.slice(0,-1);return e.type.startsWith(n)}return e.type===t})},[E]),O=h((e)=>{if(e.type)return e.type;let r=(e.name||"").toLowerCase();if(r.endsWith(".png"))return"image/png";if(r.endsWith(".jpg")||r.endsWith(".jpeg"))return"image/jpeg";if(r.endsWith(".webp"))return"image/webp";if(r.endsWith(".gif"))return"image/gif";if(r.endsWith(".bmp"))return"image/bmp";if(r.endsWith(".svg"))return"image/svg+xml";return""},[]),le=h((e)=>{let r=[...e],t=r.filter((i)=>B(i));if(r.length&&t.length===0){b?.({code:"accept",message:"No files match the accepted types."});return}let n=(i)=>H?i.size<=H:!0,m=t.filter(n);if(t.length>0&&m.length===0){b?.({code:"max_file_size",message:"All files exceed the maximum size."});return}D((i)=>{let v=I?I.uniqueFiles(m,i):m,p=typeof z==="number"?Math.max(0,z-i.length):void 0,_=typeof p==="number"?v.slice(0,p):v;if(typeof p==="number"&&v.length>p)b?.({code:"max_files",message:"Too many files. Some were not added."});let K=[];for(let T of _){let Q=I?.sourcePath(T);K.push({id:crypto.randomUUID(),type:"file",url:URL.createObjectURL(T),mediaType:O(T),filename:T.name,size:T.size,lastModified:T.lastModified,...Q===void 0?{}:{sourcePath:Q}})}return[...i,...K]})},[I,O,B,z,H,b]),pe=h((e)=>D((r)=>{let t=r.find((n)=>n.id===e);if(t?.url)URL.revokeObjectURL(t.url);return r.filter((n)=>n.id!==e)}),[]),me=h(()=>D((e)=>{for(let r of e)if(r.url)URL.revokeObjectURL(r.url);return[]}),[]),W=l?s.attachments.add:le,L=h((e)=>{let r=[...e],t=r.filter((m)=>!(m.type??"").toLowerCase().startsWith("image/"));if(t.length>0){b?.({code:"unsupported_type",message:`Only image attachments are supported. ${t.length} non-image file(s) were ignored.`});return}let n=r.reduce((m,i)=>m+i.size,0);if(n>0){let m=c.filter((i)=>(i.mediaType??"").toLowerCase().startsWith("image/")).reduce((i,v)=>i+(v.size??0),0);if(Mo(m,n)){b?.({code:"max_total_size",message:`Total image size must not exceed ${be}MB.`});return}}W(r)},[c,W,b]),G=l?s.attachments.remove:pe,N=l?s.attachments.clear:me,j=l?s.attachments.openFileDialog:ue;F(()=>{if(!l)return;s.__registerFileInput(x,()=>x.current?.click())},[l,s]),F(()=>{if(R&&x.current&&c.length===0)x.current.value=""},[c,R]),F(()=>{let e=A.current;if(!e)return;if(C)return;let r=(n)=>{if(n.dataTransfer?.types?.includes("Files"))n.preventDefault()},t=(n)=>{if(n.dataTransfer?.types?.includes("Files"))n.preventDefault();if(n.dataTransfer?.files&&n.dataTransfer.files.length>0)L(n.dataTransfer.files)};return e.addEventListener("dragover",r),e.addEventListener("drop",t),()=>{e.removeEventListener("dragover",r),e.removeEventListener("drop",t)}},[L,C]),F(()=>{if(!C)return;let e=(t)=>{if(t.dataTransfer?.types?.includes("Files"))t.preventDefault()},r=(t)=>{if(t.dataTransfer?.types?.includes("Files"))t.preventDefault();if(t.dataTransfer?.files&&t.dataTransfer.files.length>0)L(t.dataTransfer.files)};return document.addEventListener("dragover",e),document.addEventListener("drop",r),()=>{document.removeEventListener("dragover",e),document.removeEventListener("drop",r)}},[L,C]),F(()=>()=>{if(!l){for(let e of U.current)if(e.url)URL.revokeObjectURL(e.url)}},[l]);let ce=(e)=>{if(e.currentTarget.files)L(e.currentTarget.files);e.currentTarget.value=""},q=Ie(()=>({files:c.map((e)=>({...e,id:e.id})),add:L,remove:G,clear:N,openFileDialog:j,fileInputRef:x}),[c,L,G,N,j]),w=M({controller:s,files:c,canSubmit:f});w.current={controller:s,files:c,canSubmit:f};let S=M(!0);F(()=>(S.current=!0,()=>{S.current=!1}),[]);let X=async(e)=>{let r=f===void 0?!0:f();if(r!==!0)return{status:"blocked",reason:r};if(k.current)return{status:"blocked",reason:"submission_pending"};if(e===null&&g===void 0)throw Error("Awaitable submission requires onSubmitAsync");let t=A.current;if(t===null)return{status:"blocked",reason:"form_unmounted"};let n=l?s.textInput.value:Y(t),m=s?.textInput.getRevision?.(),i=c,v=()=>{if(!S.current)return;let p=w.current;if(p.files!==i)return;if(l){if(m===void 0||p.controller===null||p.controller.textInput.getRevision?.()!==m)return;if(p.controller.textInput.clearSubmitted===void 0)p.controller.textInput.clear();else p.controller.textInput.clearSubmitted()}else if(Y(t)===n)t.reset();N()};k.current=!0;try{if(d?.(n.trim()))return v(),{status:"accepted"};let p=await Ao(i),_=w.current.canSubmit===void 0?!0:w.current.canSubmit();if(_!==!0)return{status:"blocked",reason:_};if(!S.current)return{status:"blocked",reason:"form_unmounted"};if(p.rejectedCount>0)b?.({code:"accept",message:"One or more images are corrupted and were removed before sending."});if(g!==void 0)await g({text:n,files:p.files});else if(e!==null)await re({text:n,files:p.files},e);return v(),{status:"accepted"}}finally{k.current=!1}},de=(e)=>{e.preventDefault(),X(e).catch(y)},fe=h((e)=>{if(!e.trim())return;if(l&&s)xe(()=>{s.textInput.setInput(e)});A.current?.requestSubmit()},[s,l]),J=a(mn.Provider,{value:()=>X(null),children:Te(pn.Provider,{value:fe,children:[a("input",{accept:E,"aria-label":"Upload files",className:"hidden",multiple:te,onChange:ce,ref:x,title:"Upload files",type:"file"}),a("form",{className:P("w-full",u),onSubmit:de,ref:A,"data-tour":"chat-input",...se,children:a(Le,{className:P("codex-composer-surface overflow-y-auto has-[[data-slot=input-group-control]:focus-visible]:ring-0",ie&&"border! border-[rgb(255,0,135)] has-[[data-slot=input-group-control]:focus-visible]:border-[rgb(255,0,135)] dark:border-[rgb(253,93,177)] dark:has-[[data-slot=input-group-control]:focus-visible]:border-[rgb(253,93,177)]"),children:ne})})]})});return l?a(Ze.Provider,{value:q,children:J}):a(gn.Provider,{value:q,children:J})};function _o({className:u,...o}){return a("div",{className:P("flex w-full min-w-0 flex-row items-end gap-2",u),...o})}function Po({className:u,...o}){return a(Z,{align:"block-end",className:P("order-first flex-wrap gap-1 p-2 pb-1.5",u),...o})}function To({className:u,...o}){return a(Z,{align:"block-end",className:P("mt-3.5 justify-between gap-1 p-0",u),...o})}function Io({className:u,...o}){return a("div",{className:P("flex items-center gap-1",u),...o})}var oe=({variant:u="ghost",className:o,size:I,collapsed:d=!1,...y})=>{let f=d||V.count(y.children)<=1?"icon-xs":"xs";return a(ee,{className:P("h-7 rounded-full text-xs font-medium hover:bg-transparent dark:hover:bg-transparent",(d||V.count(y.children)<=1)&&"size-7",o),size:f,type:"button",variant:u,...y})},No=({className:u,variant:o="ghost",size:I="icon-xs",status:d,children:y,...f})=>{let g=a(ge,{className:"size-4"});if(d==="submitted")g=a(ve,{className:"size-4 animate-spin"});else if(d==="streaming")g=a(he,{className:"size-3 fill-current"});else if(d==="error")g=a(Pe,{className:"size-4"});return a(ee,{"aria-label":"Submit",className:P("bg-foreground text-background hover:bg-foreground/70 size-7 rounded-full p-0 transition-opacity disabled:opacity-50",u),size:I,type:"submit",variant:o,...f,children:y??g})};
2
+ export{So,_o,Po,To,Io,oe,No};
@@ -1,2 +1,2 @@
1
- import{jsx as r,jsxs as e}from"react/jsx-runtime";function st({title:t,badge:a,children:i}){return e("header",{className:"flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3",children:[e("div",{className:"flex min-h-9 items-center gap-2",children:[r("h1",{className:"text-2xl leading-9 font-semibold tracking-tight",children:t}),a]}),i]})}
2
- export{st};
1
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";function lt({title:t,badge:a,children:i}){return e("header",{className:"flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3",children:[e("div",{className:"flex min-h-9 items-center gap-2",children:[r("h1",{className:"text-2xl leading-9 font-semibold tracking-tight",children:t}),a]}),i]})}
2
+ export{lt};
@@ -1,2 +1,2 @@
1
- import{Mo}from"./chunk-cpe2b276.js";async function m(r){try{let i=await(await fetch(r)).blob();if(typeof createImageBitmap==="function")return(await createImageBitmap(i)).close(),!0;return await new Promise((a)=>{let o=new Image;o.onload=()=>a(!0),o.onerror=()=>a(!1),o.src=r})}catch{return!1}}async function No(r){let n=await Promise.all(r.map(async({id:a,lastModified:o,sourcePath:p,...t})=>{let e=t.url;if(t.url.startsWith("blob:")){let s=await Mo(t.url,t.mediaType);if(s===null)return null;e=s}let l=t.mediaType.toLowerCase().startsWith("image/"),c=e.startsWith("data:image/");if(l&&c&&!await m(e))return null;let u=e.startsWith("data:")?e.slice(5,e.indexOf(";")):t.mediaType;return{...t,url:e,mediaType:u}})),i=n.filter((a)=>a!==null);return{files:i,rejectedCount:n.length-i.length}}
2
- export{No};
1
+ import{Eo}from"./chunk-0jz7wsbx.js";async function m(r){try{let i=await(await fetch(r)).blob();if(typeof createImageBitmap==="function")return(await createImageBitmap(i)).close(),!0;return await new Promise((a)=>{let o=new Image;o.onload=()=>a(!0),o.onerror=()=>a(!1),o.src=r})}catch{return!1}}async function Ao(r){let n=await Promise.all(r.map(async({id:a,lastModified:o,sourcePath:p,...t})=>{let e=t.url;if(t.url.startsWith("blob:")){let s=await Eo(t.url,t.mediaType);if(s===null)return null;e=s}let l=t.mediaType.toLowerCase().startsWith("image/"),c=e.startsWith("data:image/");if(l&&c&&!await m(e))return null;let u=e.startsWith("data:")?e.slice(5,e.indexOf(";")):t.mediaType;return{...t,url:e,mediaType:u}})),i=n.filter((a)=>a!==null);return{files:i,rejectedCount:n.length-i.length}}
2
+ export{Ao};
@@ -1,2 +1,2 @@
1
- import"@alwith/module-chat/plugins.css";import{jsx as o}from"react/jsx-runtime";var D="toolbox-content pb-8",se="toolbox-detail flex max-h-[85dvh] flex-col gap-6 overflow-hidden rounded-2xl p-6 sm:max-w-3xl";function le({children:e}){return o("div",{className:"toolbox-content shrink-0 pt-8",children:o("div",{className:"toolbox-toolbar flex min-h-9 items-center [&>header]:w-full [&>nav]:w-full","data-plugin-page-header":"",children:e})})}
2
- export{D,se,le};
1
+ import"@alwith/module-chat/plugins.css";import{jsx as o}from"react/jsx-runtime";var H="toolbox-content pb-8",le="toolbox-detail flex max-h-[85dvh] flex-col gap-6 overflow-hidden rounded-2xl p-6 sm:max-w-3xl";function ce({children:e}){return o("div",{className:"toolbox-content shrink-0 pt-8",children:o("div",{className:"toolbox-toolbar flex min-h-9 items-center [&>header]:w-full [&>nav]:w-full","data-plugin-page-header":"",children:e})})}
2
+ export{H,le,ce};
@@ -1,2 +1,2 @@
1
- import{e}from"./chunk-epg5w48v.js";import{useState as d}from"react";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as v,DialogContent as C,DialogDescription as k,DialogFooter as I,DialogHeader as K,DialogTitle as E}from"@nyssance/shadcn/vega/components/ui/dialog";import{Empty as F,EmptyDescription as b,EmptyHeader as T,EmptyTitle as x}from"@nyssance/shadcn/vega/components/ui/empty";import{Field as w,FieldGroup as A,FieldLabel as L}from"@nyssance/shadcn/vega/components/ui/field";import{Input as B}from"@nyssance/shadcn/vega/components/ui/input";import{Spinner as H}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as t,jsxs as i}from"react/jsx-runtime";function P(r,a){switch(r.methodId){case"chat-gpt":return a("connection.signIn");case"chat-gpt-device-code":return a("connection.signInDevice");case"api-key":return a("connection.signInApiKey");default:return r.name}}function St({methods:r,signIn:a}){let{host:g}=e(),{t:o}=g,[p,u]=d(null),[f,l]=d(!1),[c,h]=d(""),y=async(n,s={})=>{u(n);try{await a(n,s)}catch(D){g.reportError?.(D)}finally{u(null)}};return i(F,{children:[i(T,{children:[t(x,{children:o("connection.signIn")}),t(b,{children:o("connection.signInHint")})]}),t("div",{className:"flex flex-wrap justify-center gap-2",children:r.map((n,s)=>i(m,{variant:s===0?"default":"outline",disabled:p!==null,onClick:()=>n.methodId==="api-key"?l(!0):void y(n.methodId),children:[p===n.methodId&&t(H,{"data-icon":"inline-start"}),P(n,o)]},n.methodId))}),t(v,{open:f,onOpenChange:l,children:i(C,{children:[i(K,{children:[t(E,{children:o("connection.apiKeyTitle")}),t(k,{children:o("connection.signInApiKey")})]}),t(A,{children:i(w,{children:[t(L,{htmlFor:"codex-api-key",children:o("connection.apiKeyTitle")}),t(B,{id:"codex-api-key",type:"password",autoComplete:"off",placeholder:o("connection.apiKeyPlaceholder"),value:c,onChange:(n)=>h(n.target.value)})]})}),i(I,{children:[t(m,{variant:"outline",onClick:()=>l(!1),children:o("actions.cancel")}),t(m,{disabled:c.trim().length===0||p!==null,onClick:()=>{l(!1),y("api-key",{"api-key":{apiKey:c.trim()}})},children:o("actions.submit")})]})]})})]})}
2
- export{St};
1
+ import{e}from"./chunk-t9djctkk.js";import{useState as d}from"react";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as v,DialogContent as C,DialogDescription as k,DialogFooter as I,DialogHeader as K,DialogTitle as E}from"@nyssance/shadcn/vega/components/ui/dialog";import{Empty as F,EmptyDescription as b,EmptyHeader as T,EmptyTitle as x}from"@nyssance/shadcn/vega/components/ui/empty";import{Field as w,FieldGroup as A,FieldLabel as L}from"@nyssance/shadcn/vega/components/ui/field";import{Input as B}from"@nyssance/shadcn/vega/components/ui/input";import{Spinner as H}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as t,jsxs as i}from"react/jsx-runtime";function P(r,a){switch(r.methodId){case"chat-gpt":return a("connection.signIn");case"chat-gpt-device-code":return a("connection.signInDevice");case"api-key":return a("connection.signInApiKey");default:return r.name}}function Tt({methods:r,signIn:a}){let{host:g}=e(),{t:o}=g,[p,u]=d(null),[f,l]=d(!1),[c,h]=d(""),y=async(n,s={})=>{u(n);try{await a(n,s)}catch(D){g.reportError?.(D)}finally{u(null)}};return i(F,{children:[i(T,{children:[t(x,{children:o("connection.signIn")}),t(b,{children:o("connection.signInHint")})]}),t("div",{className:"flex flex-wrap justify-center gap-2",children:r.map((n,s)=>i(m,{variant:s===0?"default":"outline",disabled:p!==null,onClick:()=>n.methodId==="api-key"?l(!0):void y(n.methodId),children:[p===n.methodId&&t(H,{"data-icon":"inline-start"}),P(n,o)]},n.methodId))}),t(v,{open:f,onOpenChange:l,children:i(C,{children:[i(K,{children:[t(E,{children:o("connection.apiKeyTitle")}),t(k,{children:o("connection.signInApiKey")})]}),t(A,{children:i(w,{children:[t(L,{htmlFor:"codex-api-key",children:o("connection.apiKeyTitle")}),t(B,{id:"codex-api-key",type:"password",autoComplete:"off",placeholder:o("connection.apiKeyPlaceholder"),value:c,onChange:(n)=>h(n.target.value)})]})}),i(I,{children:[t(m,{variant:"outline",onClick:()=>l(!1),children:o("actions.cancel")}),t(m,{disabled:c.trim().length===0||p!==null,onClick:()=>{l(!1),y("api-key",{"api-key":{apiKey:c.trim()}})},children:o("actions.submit")})]})]})})]})}
2
+ export{Tt};
@@ -0,0 +1,2 @@
1
+ import{Ct,wt,kt,St}from"./chunk-yvr086m7.js";var a=[{id:"litellm",source:"account",name:"ALwith",models:[{id:"deepseek-V4.1-flash",label:"DS Flash"}],catalog:"alwith/models.json",config:{web_search:"disabled"}},{id:"deepseek",name:"DeepSeek",baseUrl:"https://api.deepseek.com/",keyUrl:"https://platform.deepseek.com/api_keys",models:[{id:"deepseek-flash",label:"Flash",description:"Latest frontier agentic coding model with image input."}],catalog:"deepseek/models.json",config:{web_search:"disabled"}},{id:"openrouter",name:"OpenRouter",baseUrl:"https://openrouter.ai/api/v1",keyUrl:"https://openrouter.ai/keys",models:[{id:"moonshotai/kimi-k3",label:"Kimi K3"},{id:"minimax/minimax-m3",label:"MiniMax M3"},{id:"z-ai/glm-5.3",label:"GLM 5.3"},{id:"deepseek/deepseek-v4-pro",label:"DeepSeek V4 Pro"},{id:"qwen/qwen3.8-max-0902",label:"Qwen 3.8 Max"},{id:"x-ai/grok-4.6",label:"Grok 4.6"}],catalog:"openrouter/models.json"},{id:"qwen",name:"Qwen",regions:[{id:"intl",baseUrl:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",keyUrl:"https://modelstudio.console.alibabacloud.com/?tab=model#/api-key"},{id:"cn",baseUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1",keyUrl:"https://bailian.console.aliyun.com/#/api-key"}],models:[{id:"qwen3.8-max",label:"3.8 Max"},{id:"qwen3.8-flash",label:"3.8 Flash"},{id:"qwen3.7-max",label:"3.7 Max"},{id:"qwen3.7-plus",label:"3.7 Plus"},{id:"qwen3.6-flash",label:"3.6 Flash"}],catalog:"qwen/models.json"},{id:"xai",name:"xAI",baseUrl:"https://api.x.ai/v1",keyUrl:"https://console.x.ai",models:[{id:"grok-4.6",label:"Grok 4.6"},{id:"grok-4.5",label:"Grok 4.5"},{id:"grok-4.3",label:"Grok 4.3"}],catalog:"xai/models.json"}];var l={models:[{slug:"glm-5.3",display_name:"GLM-5.3",description:"GLM-5.3 via the Responses API.",default_reasoning_level:"max",supported_reasoning_levels:[{effort:"low",description:"Low reasoning effort"},{effort:"high",description:"High reasoning effort"},{effort:"max",description:"Max reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text"],context_window:1e6,max_context_window:1e6,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"glm-5.3-flash",display_name:"GLM-5.3-Flash",description:"GLM-5.3-Flash via the Responses API.",default_reasoning_level:"max",supported_reasoning_levels:[{effort:"low",description:"Low reasoning effort"},{effort:"high",description:"High reasoning effort"},{effort:"max",description:"Max reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1e6,max_context_window:1e6,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"glm-5.2",display_name:"GLM-5.2",description:"GLM-5.2 via the Responses API.",default_reasoning_level:"max",supported_reasoning_levels:[{effort:"none",description:"Disable reasoning"},{effort:"high",description:"High reasoning effort"},{effort:"max",description:"Max reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text"],context_window:1e6,max_context_window:1e6,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"glm-5.1",display_name:"GLM-5.1",description:"GLM-5.1 via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text"],context_window:200000,max_context_window:200000,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"MiniMax-M3.1-Flash",display_name:"MiniMax M3.1 Flash",description:"MiniMax M3.1 Flash via the Responses API.",default_reasoning_level:"max",supported_reasoning_levels:[{effort:"low",description:"Low reasoning effort"},{effort:"medium",description:"Medium reasoning effort"},{effort:"high",description:"High reasoning effort"},{effort:"xhigh",description:"Xhigh reasoning effort"},{effort:"max",description:"Max reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1e6,max_context_window:1e6,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"MiniMax-M3",display_name:"MiniMax M3",description:"MiniMax M3 via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1e6,max_context_window:1e6,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"doubao-seed-evolving",display_name:"Doubao Seed Evolving",description:"Doubao Seed Evolving via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[{effort:"minimal",description:"Disable reasoning"},{effort:"low",description:"Low reasoning effort"},{effort:"medium",description:"Medium reasoning effort"},{effort:"high",description:"High reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1024000,max_context_window:1024000,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"doubao-seed-2-1-pro-260915",display_name:"Doubao Seed 2.1 Pro",description:"Doubao Seed 2.1 Pro via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[{effort:"minimal",description:"Disable reasoning"},{effort:"low",description:"Low reasoning effort"},{effort:"medium",description:"Medium reasoning effort"},{effort:"high",description:"High reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1024000,max_context_window:1024000,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"doubao-seed-2-1-lite-260915",display_name:"Doubao Seed 2.1 Lite",description:"Doubao Seed 2.1 Lite via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[{effort:"minimal",description:"Disable reasoning"},{effort:"low",description:"Low reasoning effort"},{effort:"medium",description:"Medium reasoning effort"},{effort:"high",description:"High reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1024000,max_context_window:1024000,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"kimi-k3.1-pro",display_name:"Kimi K3.1 Pro",description:"Kimi K3.1 Pro via the Responses API.",default_reasoning_level:"max",supported_reasoning_levels:[{effort:"low",description:"Low reasoning effort"},{effort:"high",description:"High reasoning effort"},{effort:"max",description:"Max reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1048576,max_context_window:1048576,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"kimi-k3",display_name:"Kimi K3",description:"Kimi K3 via the Responses API.",default_reasoning_level:"max",supported_reasoning_levels:[{effort:"low",description:"Low reasoning effort"},{effort:"high",description:"High reasoning effort"},{effort:"max",description:"Max reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1048576,max_context_window:1048576,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"kimi-k2.7-code",display_name:"Kimi K2.7 Code",description:"Kimi K2.7 Code via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:262144,max_context_window:262144,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"mimo-v2.6-pro",display_name:"MiMo V2.6 Pro",description:"MiMo V2.6 Pro via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1048576,max_context_window:1048576,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"mimo-v2.6-flash",display_name:"MiMo V2.6 Flash",description:"MiMo V2.6 Flash via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1048576,max_context_window:1048576,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"doubao-seed-2.1-pro",display_name:"Doubao Seed 2.1 Pro",description:"Doubao Seed 2.1 Pro via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[{effort:"minimal",description:"Disable reasoning"},{effort:"low",description:"Low reasoning effort"},{effort:"medium",description:"Medium reasoning effort"},{effort:"high",description:"High reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1024000,max_context_window:1024000,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"},{slug:"doubao-seed-2.1-lite",display_name:"Doubao Seed 2.1 Lite",description:"Doubao Seed 2.1 Lite via the Responses API.",default_reasoning_level:"high",supported_reasoning_levels:[{effort:"minimal",description:"Disable reasoning"},{effort:"low",description:"Low reasoning effort"},{effort:"medium",description:"Medium reasoning effort"},{effort:"high",description:"High reasoning effort"}],shell_type:"unified_exec",visibility:"list",supported_in_api:!0,priority:0,support_verbosity:!1,supports_reasoning_summary_parameter:!1,truncation_policy:{mode:"bytes",limit:1e4},experimental_supported_tools:[],input_modalities:["text","image"],context_window:1024000,max_context_window:1024000,base_instructions:"You are a coding agent helping the user complete tasks in their workspace. Follow the user and project instructions. Use the provided tools when needed, verify changes, and report results accurately.",include_apps_usage_instructions:!1,default_reasoning_summary:"none"}]};var p={"gateway:deepseek:deepseek-flash":{shortLabel:"Flash"},"gateway:litellm:deepseek-V4.1-flash":{shortLabel:"Flash",label:"DS Flash"}};var d=a,g={deepseek:Ct,openrouter:kt,qwen:St,xai:wt};function m(e){let i=g[e];if(!i)throw Error(`Provider ${e} has no logo`);return i}var O=d.filter((e)=>e.source!=="account").map(({source:e,...i})=>({...i,logo:m(i.id)}));function Kn(e){return e!=null&&d.some((i)=>i.source==="account"&&e.startsWith(`gateway:${encodeURIComponent(i.id)}:`))}function Ge(e){let i=JSON.parse(e);if(!Array.isArray(i)||i.length===0)throw Error("Add at least one model");let o=new Set;return i.map((s)=>{if(typeof s!=="object"||s===null||Array.isArray(s))throw Error("Each model must be an object");let t=s,r=typeof t.label==="string"?t.label.trim():"",n=typeof t.api_id==="string"?t.api_id.trim():"";if(r===""||n==="")throw Error("Model label and API ID cannot be empty");if(o.has(n))throw Error("Model IDs must be unique");if(o.add(n),t.contextWindow!==void 0&&t.contextWindow!==null&&(!Number.isSafeInteger(t.contextWindow)||t.contextWindow<=0))throw Error("Model contextWindow must be a positive integer");if(t.description!==void 0&&typeof t.description!=="string")throw Error("Model description must be a string");return{label:r,api_id:n,...t.contextWindow===void 0?{}:{contextWindow:t.contextWindow},...t.description===void 0?{}:{description:t.description}}})}function qn(e){return[...O.filter((i)=>e.providers[i.id]!==void 0).map((i)=>({id:i.id,name:i.name,models:i.models})),...[...e.customProviders,...e.managedProviders??[]].map((i)=>({id:i.id,name:i.name,models:i.models.map((o)=>({id:o.api_id,label:o.label,...o.description==null?{}:{description:o.description}}))}))]}function ze(e,i){let o=e.startsWith("custom_")?`custom-${Array.from(new TextEncoder().encode(e),(s)=>s.toString(16).padStart(2,"0")).join("")}`:e;return`gateway:${encodeURIComponent(o)}:${encodeURIComponent(i)}`}function Xi(e,i){let o=qn(i).flatMap((s)=>s.models.map((t)=>ze(s.id,t.id)));if(e!==null&&(!e.startsWith("gateway:")||o.includes(e)))return e;if(Kn(e))throw Error("The selected ALwith account model is unavailable. Select another model before sending.");return o[0]??null}function K(e,i){if(!e.regions)return null;let o=e.regions.find((s)=>s.id===i)??e.regions[0];if(!o)throw Error(`Provider ${e.id} declares no regions`);return o}function xt(e,i){return K(e,i)?.keyUrl??e.keyUrl??null}function bt(e){if(typeof e==="object"&&e!==null&&"code"in e&&e.code==="pending")return!0;return(e instanceof Error?e.message:typeof e==="string"?e:typeof e==="object"&&e!==null&&("message"in e)?String(e.message):String(e)).includes("Provider settings are pending")}function Ji(e){let i=e?.match(/^gateway:custom-[^:]+:(.+)$/);if(!i)return null;let o=decodeURIComponent(i[1]),s=l.models.find((t)=>t.slug===o);return s?{value:s.default_reasoning_level,hidden:s.supported_reasoning_levels.length===0}:null}var Wn=p;function er(e){return Wn[e]??{}}
2
+ export{O,Kn,Ge,qn,ze,Xi,K,xt,bt,Ji,Wn,er};
@@ -1,2 +1,2 @@
1
- import{r,a,Lt,o,p}from"./chunk-eg86g265.js";import{M}from"./chunk-s3h496tf.js";import{ve}from"./chunk-9gt81b51.js";import{fe}from"./chunk-ee0krzt0.js";import{Ve,ue}from"./chunk-tk2471ny.js";import{hasRename as F}from"@nyssance/codex-acp-v2/client";import{ArchiveIcon as D,ArchiveRestoreIcon as x,GitForkIcon as A,PencilIcon as H,Trash2Icon as N}from"lucide-react";import{useRef as R,useState as y}from"react";import{jsx as n,jsxs as b,Fragment as C}from"react/jsx-runtime";function on({sessionRow:e,active:v,onSelect:m,onForked:S=m,onHoverCardOpenChange:c,actions:l}){let i=r(),{t:f,i18n:k}=i,h=a(),d=o((s)=>s.runStates[e.sessionId]),I=Lt(),u=()=>m(e);return n(ve,{"data-session-id":e.sessionId,role:"button",tabIndex:0,active:v,onClick:u,onKeyDown:(s)=>{if(s.key==="Enter"||s.key===" ")s.preventDefault(),u()},state:d?.state,interruption:d?.interruption??null,title:e.title??f("sessionList.untitled"),onHoverCardOpenChange:c,hoverCard:n(B,{sessionRow:e,onDelete:()=>I(e),onForked:S,actions:l}),meta:e.updatedAt!==null?n("span",{className:"text-muted-foreground shrink-0 text-xs",children:Ve(e.updatedAt,k.language)}):void 0,actions:d!=null?n(fe,{title:f("sessionList.stop"),onStop:()=>p(i,h.stopSession(e.sessionId))}):void 0})}function B({sessionRow:e,onDelete:v,onForked:m,actions:S}){let c=r(),{t:l}=c,i=a(),f=o((t)=>F(t.agent)),k=o((t)=>t.connection==="ready"&&t.agent?.capabilities?.session?.fork!=null),[h,d]=y(!1),[I,u]=y(!1),s=R(!1);return n(ue,{sessionRow:e,renaming:h,onRename:(t)=>{if(d(!1),t!==null)p(c,i.renameSession(e.sessionId,t))},actions:b(C,{children:[f&&n(M,{icon:n(H,{}),label:l("sessionList.rename"),onClick:()=>d(!0)}),S,e.archived?n(M,{icon:n(x,{}),label:l("sessionList.unarchive"),onClick:()=>void p(c,i.unarchive(e.sessionId))}):b(C,{children:[n(M,{icon:n(A,{}),label:l("sessionList.fork"),disabled:!k||I,onClick:()=>{if(s.current)return;s.current=!0,u(!0),p(c,i.fork(e.sessionId,e.cwd).then((t)=>{let g=i.state.sessionList.find((L)=>L.sessionId===t);if(!g)throw Error("Forked chat is missing from the session list");m(g)}).finally(()=>{s.current=!1,u(!1)}))}}),n(M,{icon:n(D,{}),label:l("sessionList.archive"),onClick:()=>void p(c,i.archive(e.sessionId))})]}),n(M,{variant:"destructive",icon:n(N,{}),label:l("sessionList.delete"),onClick:v})]})})}
2
- export{on};
1
+ import{r,a,Lt,o,p}from"./chunk-tggrc8e5.js";import{A}from"./chunk-1rs9getz.js";import{ye}from"./chunk-97yvajhc.js";import{he}from"./chunk-ss5xzk9q.js";import{je,pe}from"./chunk-7962trd3.js";import{hasRename as F}from"@nyssance/codex-acp-v2/client";import{ArchiveIcon as D,ArchiveRestoreIcon as x,GitForkIcon as H,PencilIcon as N,Trash2Icon as R}from"lucide-react";import{useRef as B,useState as y}from"react";import{jsx as n,jsxs as b,Fragment as C}from"react/jsx-runtime";function an({sessionRow:e,active:v,onSelect:m,onForked:S=m,onHoverCardOpenChange:c,actions:l}){let i=r(),{t:f,i18n:k}=i,h=a(),d=o((s)=>s.runStates[e.sessionId]),I=Lt(),u=()=>m(e);return n(ye,{"data-session-id":e.sessionId,role:"button",tabIndex:0,active:v,onClick:u,onKeyDown:(s)=>{if(s.key==="Enter"||s.key===" ")s.preventDefault(),u()},state:d?.state,interruption:d?.interruption??null,title:e.title??f("sessionList.untitled"),onHoverCardOpenChange:c,hoverCard:n(E,{sessionRow:e,onDelete:()=>I(e),onForked:S,actions:l}),meta:e.updatedAt!==null?n("span",{className:"text-muted-foreground shrink-0 text-xs",children:je(e.updatedAt,k.language)}):void 0,actions:d!=null?n(he,{title:f("sessionList.stop"),onStop:()=>p(i,h.stopSession(e.sessionId))}):void 0})}function E({sessionRow:e,onDelete:v,onForked:m,actions:S}){let c=r(),{t:l}=c,i=a(),f=o((t)=>F(t.agent)),k=o((t)=>t.connection==="ready"&&t.agent?.capabilities?.session?.fork!=null),[h,d]=y(!1),[I,u]=y(!1),s=B(!1);return n(pe,{sessionRow:e,renaming:h,onRename:(t)=>{if(d(!1),t!==null)p(c,i.renameSession(e.sessionId,t))},actions:b(C,{children:[f&&n(A,{icon:n(N,{}),label:l("sessionList.rename"),onClick:()=>d(!0)}),S,e.archived?n(A,{icon:n(x,{}),label:l("sessionList.unarchive"),onClick:()=>void p(c,i.unarchive(e.sessionId))}):b(C,{children:[n(A,{icon:n(H,{}),label:l("sessionList.fork"),disabled:!k||I,onClick:()=>{if(s.current)return;s.current=!0,u(!0),p(c,i.fork(e.sessionId,e.cwd).then((t)=>{let g=i.state.sessionList.find((L)=>L.sessionId===t);if(!g)throw Error("Forked chat is missing from the session list");m(g)}).finally(()=>{s.current=!1,u(!1)}))}}),n(A,{icon:n(D,{}),label:l("sessionList.archive"),onClick:()=>void p(c,i.archive(e.sessionId))})]}),n(A,{variant:"destructive",icon:n(R,{}),label:l("sessionList.delete"),onClick:v})]})})}
2
+ export{an};
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-eg86g265.js";import{runStateSource as l}from"@nyssance/codex-acp-v2/client";import{useSyncExternalStore as f}from"react";function pe(t,n){let e=t.runStates[n];return e!==void 0&&(!e.reusableDraft||t.drafts[n]!==void 0)}function d(t,n,e){let r=t.filter((s)=>pe(e,s)),S=new Set(r),c=e.runStates!==n.runStates&&l(e.runStates)==="event";for(let[s,i]of Object.entries(e.runStates)){if(S.has(s)||!pe(e,s))continue;let o=n.runStates[s],g=!o||i.state!==o.state||i.since!==o.since||i.lastActivityAt!==o.lastActivityAt||i.interruption!==o.interruption;if(i.reusableDraft&&e.drafts[s]!==void 0||c&&g&&(!o||i.state!=="idle")&&i.interruption!=="runtime restarted")r.push(s)}return r.length===t.length&&r.every((s,i)=>s===t[i])?t:r}var u=new WeakMap;function v(t){return{view:"sessions",activityOrder:d([],t.state,t.state),activitySeen:new Map,activityCollapsedGroups:new Set}}function rn(t){let n=u.get(t);if(n)return n;let e=v(t),r=new Set,S=(i)=>{e={...e,...i};for(let o of r)o()},c=t.state;t.store.subscribe(()=>{let i=t.store.getState(),o=d(e.activityOrder,c,i);if(c=i,o!==e.activityOrder)S({activityOrder:o})});let s={get:()=>e,set:S,subscribe:(i)=>(r.add(i),()=>r.delete(i))};return u.set(t,s),s}function ur(t){u.get(t)?.set(v(t))}function O(t){let n=rn(a());return f(n.subscribe,()=>t(n.get()),()=>t(n.get()))}function te(){return rn(a()).set}function pr(){let t=O((e)=>e.view),n=te();return[t,(e)=>n({view:e})]}
2
- export{pe,rn,ur,O,te,pr};
1
+ import{a}from"./chunk-tggrc8e5.js";import{runStateSource as l}from"@nyssance/codex-acp-v2/client";import{useSyncExternalStore as f}from"react";function me(t,n){let e=t.runStates[n];return e!==void 0&&(!e.reusableDraft||t.drafts[n]!==void 0)}function d(t,n,e){let r=t.filter((s)=>me(e,s)),S=new Set(r),c=e.runStates!==n.runStates&&l(e.runStates)==="event";for(let[s,i]of Object.entries(e.runStates)){if(S.has(s)||!me(e,s))continue;let o=n.runStates[s],g=!o||i.state!==o.state||i.since!==o.since||i.lastActivityAt!==o.lastActivityAt||i.interruption!==o.interruption;if(i.reusableDraft&&e.drafts[s]!==void 0||c&&g&&(!o||i.state!=="idle")&&i.interruption!=="runtime restarted")r.push(s)}return r.length===t.length&&r.every((s,i)=>s===t[i])?t:r}var u=new WeakMap;function v(t){return{view:"sessions",activityOrder:d([],t.state,t.state),activitySeen:new Map,activityCollapsedGroups:new Set}}function sn(t){let n=u.get(t);if(n)return n;let e=v(t),r=new Set,S=(i)=>{e={...e,...i};for(let o of r)o()},c=t.state;t.store.subscribe(()=>{let i=t.store.getState(),o=d(e.activityOrder,c,i);if(c=i,o!==e.activityOrder)S({activityOrder:o})});let s={get:()=>e,set:S,subscribe:(i)=>(r.add(i),()=>r.delete(i))};return u.set(t,s),s}function mr(t){u.get(t)?.set(v(t))}function U(t){let n=sn(a());return f(n.subscribe,()=>t(n.get()),()=>t(n.get()))}function ne(){return sn(a()).set}function gr(){let t=U((e)=>e.view),n=ne();return[t,(e)=>n({view:e})]}
2
+ export{me,sn,mr,U,ne,gr};
@@ -1,2 +1,2 @@
1
- import{S}from"./chunk-wpn4rdwv.js";import{codexMessageError as v,nativeTurnId as m,textOf as A,turns as _}from"@nyssance/codex-acp-v2/client";function Xr(t){return t.kind==="tool"&&t.name==="mcp_startup"}function E(t){let e=t._meta?.codex;if(typeof e!=="object"||e===null)return null;let n=e.phase;return typeof n==="string"?n:null}function T(t){let e=t._meta?.codex;return typeof e==="object"&&e!==null&&e.notice===!0}function Ci(t){return t.user===null&&t.items.length>0&&t.items.every((e)=>e.kind==="assistant"&&T(e))}function g(t,e,n){let o=t.work.at(-1);if(o?.kind==="activity"&&o.items.at(-1)===n){o.items.push(e);return}t.work.push({kind:"activity",key:`activity:${e.kind}:${e.id}`,items:[e]})}function w(t,e,n){if(t.kind!=="tool"){e.push(t);return}let o=n.get(t.id);if(o===void 0)throw Error(`Grouped tool is missing from the session: ${t.id}`);e.push(o);for(let s of t.children)w(s,e,n)}function j(t,e,n,o){switch(e.kind){case"user":break;case"assistant":{if(v(e)!==null){let u=m(e),f=t.errors.findIndex((p)=>u!==null&&m(p)===u);if(f===-1)t.errors.push(e);else t.errors[f]=e;break}let s=E(e),i=e._meta?.codex,d=S(e._meta).length>0||typeof i==="object"&&i!==null&&"delivery"in i&&i.delivery==="async";if(S(e._meta).length>0)t.final.push(e);else if(d)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else if(s==="final_answer")t.final.push(e);else if(s==="commentary"||T(e)||s===null&&n)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else t.final.push(e);break}case"thought":g(t,e,o);break;case"tool":if(g(t,e,o),e.toolKind==="edit")t.edits.push(e);break;case"plan":t.work.push({kind:"plan",key:`plan:${e.id}`,item:e});break;case"compaction":t.work.push({kind:"compaction",key:`compaction:${e.id}`,item:e});break}}function wi(t,e=[],n=[]){let o=new Map(e.map((r)=>[r.key,r])),s=new Map(t.items.filter((r)=>r.kind==="tool").map((r)=>[r.id,r])),i={...t,items:t.items.filter((r)=>!Xr(r))},d=new Map(n.map((r,a)=>[r.turnId,a])),u=[],f=[u],p,k=null;for(let r of i.items){let a=m(r),l=d.get(a??"");if(a!==null&&k!==null&&a!==k||l!==void 0&&p!==void 0&&l>p+1)u=[],f.push(u);if(u.push(r),a!==null||r.kind==="user")k=a;if(l!==void 0)p=l}return f.flatMap((r)=>_({...i,items:r})).map((r)=>{let a=r.prompt===null?[]:[r.prompt];for(let c of r.entries)w(c,a,s);let l=a[0];if(l===void 0)throw Error("A turn without items");let I=`turn:${l.kind}:${l.id}`,h=r.endedAt??Math.max(...a.map((c)=>c.at)),y=o.get(I);if(y!==void 0&&K(y.items,a)&&y.endedAt===h)return y;let x={key:I,user:r.prompt,work:[],final:[],errors:[],edits:[],startedAt:r.startedAt??l.at,endedAt:h,replayed:a.every(Sn),items:a},M=a.findLastIndex((c)=>c.kind!=="user"&&c.kind!=="compaction");return a.forEach((c,b)=>j(x,c,b<M,a[b-1])),x})}function K(t,e){return t.length===e.length&&t.every((n,o)=>n===e[o])}function Sn(t){let e=t._meta?.codex;return t.replayed||typeof e==="object"&&e!==null&&"historyReplay"in e&&e.historyReplay===!0}function ie(t){return A(t.content)}function it(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"historyInterrupted"in n&&n.historyInterrupted===!0})}function _n(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"turnInterrupted"in n&&n.turnInterrupted===!0})}function ki(t){let e=(s)=>{for(let i of t.items){let d=i._meta?.codex;if(typeof d!=="object"||d===null)continue;let u=d[s];if(typeof u==="number"&&Number.isFinite(u)&&u>=0)return u}return},n=e("workDurationMs"),o=e("turnDurationMs");return{durationMs:n??o,durationKind:n===void 0&&o!==void 0?"total":"work",startedAt:e("workStartedAt")}}function Si(t,e,n){if(n?.user==null)return!1;let o=e.items.map(m).find((i)=>i!==null),s=m(n.user);if(o!==void 0&&s!==null)return o===s;return!e.items.some((i)=>{let d=i._meta?.codex;return typeof d==="object"&&d!==null&&"turnCompletedAt"in d&&typeof d.turnCompletedAt==="number"})&&t.state!=="idle"&&(n.user.echo==="pending"||n.user.echo==="acknowledged")&&e.user!==null&&t.turnEndedAt[e.user.id]===void 0&&e.errors.length===0}function _i(t,e){if(t.state==="idle")return;let n=e.length-1;while(n>0){let o=e[n];if(o.items.some((s)=>s.kind!=="user"))break;if(!Si(t,e[n-1],o))break;n--}return e[n]?.key}function Pi(t,e,n){let o=n,s=n;while(o>0&&Si(t,e[o-1],e[o]))o--;while(s+1<e.length&&Si(t,e[s],e[s+1]))s++;let i=e.slice(o,s+1),d=i.findLast((u)=>u.items.some((f)=>f.kind!=="user"))??i[0];return{continued:e[n]!==d,items:i.flatMap((u)=>u.items),edits:i.flatMap((u)=>u.edits),startedAt:i[0].startedAt}}
2
- export{Xr,Ci,wi,Sn,ie,it,_n,ki,Si,_i,Pi};
1
+ import{_}from"./chunk-3sqxe0mw.js";import{codexMessageError as v,nativeTurnId as m,textOf as A,turns as S}from"@nyssance/codex-acp-v2/client";function ta(t){return t.kind==="tool"&&t.name==="mcp_startup"}function E(t){let e=t._meta?.codex;if(typeof e!=="object"||e===null)return null;let n=e.phase;return typeof n==="string"?n:null}function T(t){let e=t._meta?.codex;return typeof e==="object"&&e!==null&&e.notice===!0}function ki(t){return t.user===null&&t.items.length>0&&t.items.every((e)=>e.kind==="assistant"&&T(e))}function g(t,e,n){let o=t.work.at(-1);if(o?.kind==="activity"&&o.items.at(-1)===n){o.items.push(e);return}t.work.push({kind:"activity",key:`activity:${e.kind}:${e.id}`,items:[e]})}function w(t,e,n){if(t.kind!=="tool"){e.push(t);return}let o=n.get(t.id);if(o===void 0)throw Error(`Grouped tool is missing from the session: ${t.id}`);e.push(o);for(let s of t.children)w(s,e,n)}function j(t,e,n,o){switch(e.kind){case"user":break;case"assistant":{if(v(e)!==null){let u=m(e),f=t.errors.findIndex((p)=>u!==null&&m(p)===u);if(f===-1)t.errors.push(e);else t.errors[f]=e;break}let s=E(e),i=e._meta?.codex,d=_(e._meta).length>0||typeof i==="object"&&i!==null&&"delivery"in i&&i.delivery==="async";if(_(e._meta).length>0)t.final.push(e);else if(d)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else if(s==="final_answer")t.final.push(e);else if(s==="commentary"||T(e)||s===null&&n)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else t.final.push(e);break}case"thought":g(t,e,o);break;case"tool":if(g(t,e,o),e.toolKind==="edit")t.edits.push(e);break;case"plan":t.work.push({kind:"plan",key:`plan:${e.id}`,item:e});break;case"compaction":t.work.push({kind:"compaction",key:`compaction:${e.id}`,item:e});break}}function Si(t,e=[],n=[]){let o=new Map(e.map((r)=>[r.key,r])),s=new Map(t.items.filter((r)=>r.kind==="tool").map((r)=>[r.id,r])),i={...t,items:t.items.filter((r)=>!ta(r))},d=new Map(n.map((r,a)=>[r.turnId,a])),u=[],f=[u],p,k=null;for(let r of i.items){let a=m(r),l=d.get(a??"");if(a!==null&&k!==null&&a!==k||l!==void 0&&p!==void 0&&l>p+1)u=[],f.push(u);if(u.push(r),a!==null||r.kind==="user")k=a;if(l!==void 0)p=l}return f.flatMap((r)=>S({...i,items:r})).map((r)=>{let a=r.prompt===null?[]:[r.prompt];for(let c of r.entries)w(c,a,s);let l=a[0];if(l===void 0)throw Error("A turn without items");let I=`turn:${l.kind}:${l.id}`,h=r.endedAt??Math.max(...a.map((c)=>c.at)),y=o.get(I);if(y!==void 0&&K(y.items,a)&&y.endedAt===h)return y;let x={key:I,user:r.prompt,work:[],final:[],errors:[],edits:[],startedAt:r.startedAt??l.at,endedAt:h,replayed:a.every(Pn),items:a},M=a.findLastIndex((c)=>c.kind!=="user"&&c.kind!=="compaction");return a.forEach((c,b)=>j(x,c,b<M,a[b-1])),x})}function K(t,e){return t.length===e.length&&t.every((n,o)=>n===e[o])}function Pn(t){let e=t._meta?.codex;return t.replayed||typeof e==="object"&&e!==null&&"historyReplay"in e&&e.historyReplay===!0}function re(t){return A(t.content)}function rt(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"historyInterrupted"in n&&n.historyInterrupted===!0})}function Tn(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"turnInterrupted"in n&&n.turnInterrupted===!0})}function _i(t){let e=(s)=>{for(let i of t.items){let d=i._meta?.codex;if(typeof d!=="object"||d===null)continue;let u=d[s];if(typeof u==="number"&&Number.isFinite(u)&&u>=0)return u}return},n=e("workDurationMs"),o=e("turnDurationMs");return{durationMs:n??o,durationKind:n===void 0&&o!==void 0?"total":"work",startedAt:e("workStartedAt")}}function Pi(t,e,n){if(n?.user==null)return!1;let o=e.items.map(m).find((i)=>i!==null),s=m(n.user);if(o!==void 0&&s!==null)return o===s;return!e.items.some((i)=>{let d=i._meta?.codex;return typeof d==="object"&&d!==null&&"turnCompletedAt"in d&&typeof d.turnCompletedAt==="number"})&&t.state!=="idle"&&(n.user.echo==="pending"||n.user.echo==="acknowledged")&&e.user!==null&&t.turnEndedAt[e.user.id]===void 0&&e.errors.length===0}function Ti(t,e){if(t.state==="idle")return;let n=e.length-1;while(n>0){let o=e[n];if(o.items.some((s)=>s.kind!=="user"))break;if(!Pi(t,e[n-1],o))break;n--}return e[n]?.key}function Ii(t,e,n){let o=n,s=n;while(o>0&&Pi(t,e[o-1],e[o]))o--;while(s+1<e.length&&Pi(t,e[s],e[s+1]))s++;let i=e.slice(o,s+1),d=i.findLast((u)=>u.items.some((f)=>f.kind!=="user"))??i[0];return{continued:e[n]!==d,items:i.flatMap((u)=>u.items),edits:i.flatMap((u)=>u.edits),startedAt:i[0].startedAt}}
2
+ export{ta,ki,Si,Pn,re,rt,Tn,_i,Pi,Ti,Ii};
@@ -1,3 +1,3 @@
1
- import{zo,Je}from"./chunk-8a61phqa.js";import{t,Q}from"./chunk-z8njjc2c.js";import{createStore as d}from"@alwith/api/client";import{Dialog as f,DialogContent as p,DialogDescription as m,DialogHeader as u,DialogTitle as h}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as l}from"react/jsx-runtime";var c=d({request:null});function Et(e){c.setState({request:{path:e.path,patch:lo(e.patch,e.path)}})}function lo(e,a){let n=e.split(/^(?=diff --git )/m).filter((o)=>o.length>0);if(n.length<=1)return e;return n.find((o)=>{let r=o.split(`
2
- `,1)[0]??"";return r.endsWith(` b/${a}`)||r.endsWith(` ${a}`)||r.includes(`/${a} `)})??e}function Rt(){let{t:e,theme:a}=t(),n=Q(c,(o)=>o.request),s=n===null?null:zo(n.patch);return i(f,{open:n!==null,onOpenChange:(o)=>!o&&c.setState({request:null}),children:l(p,{className:"flex h-[calc(100vh-2.5rem)] max-h-[900px] flex-col gap-3 sm:max-w-[min(1400px,calc(100vw-2.5rem))]",children:[l(u,{children:[i(h,{className:"truncate pe-8 font-mono text-sm font-normal",children:n?.path}),s!==null&&l(m,{children:[l("span",{className:"codex-diff-additions",children:["+",s.additions]})," ",l("span",{className:"codex-diff-deletions",children:["-",s.deletions]})," ",i("span",{children:e("conversation.changedLines")})]})]}),i("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border [&>.codex-patch-view]:h-full","data-stream-style":"codexUI",children:n!==null&&i(Je,{patch:n.patch,theme:a})})]})})}
3
- export{Et,lo,Rt};
1
+ import{jo,et}from"./chunk-wxsb337y.js";import{t,Y}from"./chunk-1vmk34zf.js";import{createStore as d}from"@alwith/api/client";import{Dialog as f,DialogContent as p,DialogDescription as m,DialogHeader as u,DialogTitle as h}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as l}from"react/jsx-runtime";var c=d({request:null});function Rt(e){c.setState({request:{path:e.path,patch:uo(e.patch,e.path)}})}function uo(e,a){let n=e.split(/^(?=diff --git )/m).filter((o)=>o.length>0);if(n.length<=1)return e;return n.find((o)=>{let r=o.split(`
2
+ `,1)[0]??"";return r.endsWith(` b/${a}`)||r.endsWith(` ${a}`)||r.includes(`/${a} `)})??e}function Ft(){let{t:e,theme:a}=t(),n=Y(c,(o)=>o.request),s=n===null?null:jo(n.patch);return i(f,{open:n!==null,onOpenChange:(o)=>!o&&c.setState({request:null}),children:l(p,{className:"flex h-[calc(100vh-2.5rem)] max-h-[900px] flex-col gap-3 sm:max-w-[min(1400px,calc(100vw-2.5rem))]",children:[l(u,{children:[i(h,{className:"truncate pe-8 font-mono text-sm font-normal",children:n?.path}),s!==null&&l(m,{children:[l("span",{className:"codex-diff-additions",children:["+",s.additions]})," ",l("span",{className:"codex-diff-deletions",children:["-",s.deletions]})," ",i("span",{children:e("conversation.changedLines")})]})]}),i("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border [&>.codex-patch-view]:h-full","data-stream-style":"codexUI",children:n!==null&&i(et,{patch:n.patch,theme:a})})]})})}
3
+ export{Rt,uo,Ft};
@@ -0,0 +1,4 @@
1
+ import{ci}from"./chunk-z32chhqm.js";import{t}from"./chunk-1vmk34zf.js";import{ui,pi}from"./chunk-pqw5qz4e.js";import{Q}from"./chunk-5fj4ewez.js";import{re}from"./chunk-6r8jsyqk.js";import{isEmbeddedResource as g,isImage as d,isResourceLink as f,isText as x}from"@nyssance/codex-acp-v2/client";import{memo as p}from"react";import{jsx as r,jsxs as h}from"react/jsx-runtime";var li=p(function({item:s,messageTime:c}){let l=t(),o=pi(s._meta),m=o?o.map((e)=>e.question===void 0?e.text:`${e.question}
2
+ ${e.text}`).join(`
3
+ `):re(s),a=s.content.filter(d),i=s.content.filter((e)=>f(e)||g(e)),u=o??s.content.filter(x).map((e)=>{let n=ui(e._meta);return n?{question:n.question,text:n.answer}:{text:e.text}});if(m.length===0&&a.length===0&&i.length===0)return null;return h("div",{className:"group/codex-user flex min-w-0 flex-col items-end gap-2","data-content-search-unit-key":s.id,children:[i.length>0&&r("div",{className:"codex-user-mentions",children:i.map((e,n)=>r(Q,{block:e},`${s.id}:${n}`))}),r(ci,{host:l,message:s,text:m,textParts:u.some((e)=>("question"in e))?u:void 0,images:a,mentions:[],messageTime:c})]})});
4
+ export{li};
@@ -1,2 +1,2 @@
1
- import{CheckCircleIcon as c,CircleIcon as o,LoaderIcon as i}from"lucide-react";import{jsx as n,jsxs as e}from"react/jsx-runtime";function oe({entries:s}){let d=s.filter((a)=>a.status==="completed").length,t=s.find((a)=>a.status==="in_progress");return e("div",{className:"codex-plan",children:[e("div",{className:"codex-plan-summary",children:[e("span",{children:[d,"/",s.length]}),t!==void 0&&e("span",{className:"codex-plan-active",children:["· ",t.content]})]}),n("div",{className:"codex-plan-entries",children:s.map((a)=>e("div",{className:"codex-plan-entry","data-status":a.status,children:[a.status==="completed"&&n(c,{"aria-hidden":"true"}),a.status==="in_progress"&&n(i,{className:"codex-plan-spinner","aria-hidden":"true"}),a.status==="pending"&&n(o,{"aria-hidden":"true"}),n("span",{children:a.content})]},a.content))})]})}
2
- export{oe};
1
+ import{CheckCircleIcon as c,CircleIcon as o,LoaderIcon as i}from"lucide-react";import{jsx as n,jsxs as e}from"react/jsx-runtime";function ie({entries:s}){let d=s.filter((a)=>a.status==="completed").length,t=s.find((a)=>a.status==="in_progress");return e("div",{className:"codex-plan",children:[e("div",{className:"codex-plan-summary",children:[e("span",{children:[d,"/",s.length]}),t!==void 0&&e("span",{className:"codex-plan-active",children:["· ",t.content]})]}),n("div",{className:"codex-plan-entries",children:s.map((a)=>e("div",{className:"codex-plan-entry","data-status":a.status,children:[a.status==="completed"&&n(c,{"aria-hidden":"true"}),a.status==="in_progress"&&n(i,{className:"codex-plan-spinner","aria-hidden":"true"}),a.status==="pending"&&n(o,{"aria-hidden":"true"}),n("span",{children:a.content})]},a.content))})]})}
2
+ export{ie};
@@ -1,2 +1,2 @@
1
- import{n}from"./chunk-z8njjc2c.js";import{et}from"./chunk-k2q7wjp6.js";import{g,G}from"./chunk-6vntcyv6.js";import{e}from"./chunk-epg5w48v.js";import{inSessionTree as z}from"@nyssance/codex-acp-v2/client";import{ChevronDownIcon as B,ChevronRightIcon as q,GitBranchIcon as E,Loader2Icon as O,SquareIcon as R}from"lucide-react";import{useId as T,useState as u}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as s,jsxs as o}from"react/jsx-runtime";function Ye({sessionId:t}){let r=n((a)=>a.sessions),c=Object.values(r).filter((a)=>a.subagent?.parentId===t);if(c.length===0)return null;return s("div",{"data-subagent-sessions":!0,className:"min-w-0",children:c.map((a)=>s(j,{session:a},a.id))})}function j({session:t}){let{client:r,host:c}=e(),{t:a}=c,v=n((i)=>i.actions),w=n((i)=>i.sessions),I=n((i)=>i.connection==="ready"),d=v.filter((i)=>z(w,t.id,i.sessionId)).length,[l,S]=u(!1),[p,f]=u(!1),[x,h]=u(null),b=T(),m=g(t.configOptions,"model"),k=!t.attached?"detached":d>0?"requires_action":t.state==="unknown"?"unknown":t.error?"failed":t.state,y=I&&t.attached&&t.subagent?.capabilities?.cancel!=null&&t.state!=="idle",C=async()=>{f(!0),h(null);try{await r.cancel(t.id)}catch(i){h(i instanceof Error?i.message:String(i))}finally{f(!1)}};return o("section",{"aria-label":t.title??a("subagents.untitled"),className:"min-w-0",children:[o("div",{className:"flex min-w-0 items-center gap-1",children:[o(N,{variant:"ghost",size:"sm",className:"min-w-0 flex-1 justify-start gap-2","aria-expanded":l,"aria-controls":b,onClick:()=>S(!l),children:[l?s(B,{className:"size-3.5 shrink-0"}):s(q,{className:"size-3.5 shrink-0"}),s(E,{className:"text-muted-foreground size-3.5 shrink-0"}),s("span",{className:"truncate",children:t.title??a("subagents.untitled")}),o("span",{className:"text-foreground ms-auto shrink-0 text-xs",role:"status",children:[a(`subagents.${k}`),d>0?` · ${d}`:""]})]}),y&&s(N,{variant:"ghost",size:"icon-sm",disabled:p,"aria-label":a("subagents.cancel",{name:t.title??a("subagents.untitled")}),onClick:()=>{C()},children:p?s(O,{className:"size-3.5 animate-spin"}):s(R,{className:"size-3.5"})})]}),x&&s("p",{role:"alert",className:"text-destructive px-2 py-1 text-xs",children:x}),l&&o("div",{id:b,className:"min-w-0 ps-4",children:[(t.subagent?.description||m)&&o("div",{className:"text-muted-foreground flex min-w-0 items-center gap-2 px-2 py-1 text-xs",children:[s("span",{className:"min-w-0 flex-1 truncate",title:t.subagent?.description??void 0,children:t.subagent?.description}),m&&s("span",{className:"shrink-0",children:G(m)})]}),t.items.length>0?s("div",{className:"flex max-h-72 min-h-0 flex-col",children:s(et,{session:t,client:r,host:c})}):s("p",{className:"text-muted-foreground px-2 py-3 text-xs",children:a("subagents.noMessages")}),s(Ye,{sessionId:t.id})]})]})}
2
- export{Ye};
1
+ import{n}from"./chunk-1vmk34zf.js";import{tt}from"./chunk-9vm0y271.js";import{g,z}from"./chunk-93d3a9wy.js";import{e}from"./chunk-t9djctkk.js";import{inSessionTree as B}from"@nyssance/codex-acp-v2/client";import{ChevronDownIcon as q,ChevronRightIcon as E,GitBranchIcon as O,Loader2Icon as R,SquareIcon as T}from"lucide-react";import{useId as j,useState as u}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as s,jsxs as o}from"react/jsx-runtime";function Xe({sessionId:t}){let r=n((a)=>a.sessions),c=Object.values(r).filter((a)=>a.subagent?.parentId===t);if(c.length===0)return null;return s("div",{"data-subagent-sessions":!0,className:"min-w-0",children:c.map((a)=>s(D,{session:a},a.id))})}function D({session:t}){let{client:r,host:c}=e(),{t:a}=c,v=n((i)=>i.actions),w=n((i)=>i.sessions),I=n((i)=>i.connection==="ready"),d=v.filter((i)=>B(w,t.id,i.sessionId)).length,[l,S]=u(!1),[p,f]=u(!1),[x,h]=u(null),b=j(),m=g(t.configOptions,"model"),k=!t.attached?"detached":d>0?"requires_action":t.state==="unknown"?"unknown":t.error?"failed":t.state,y=I&&t.attached&&t.subagent?.capabilities?.cancel!=null&&t.state!=="idle",C=async()=>{f(!0),h(null);try{await r.cancel(t.id)}catch(i){h(i instanceof Error?i.message:String(i))}finally{f(!1)}};return o("section",{"aria-label":t.title??a("subagents.untitled"),className:"min-w-0",children:[o("div",{className:"flex min-w-0 items-center gap-1",children:[o(N,{variant:"ghost",size:"sm",className:"min-w-0 flex-1 justify-start gap-2","aria-expanded":l,"aria-controls":b,onClick:()=>S(!l),children:[l?s(q,{className:"size-3.5 shrink-0"}):s(E,{className:"size-3.5 shrink-0"}),s(O,{className:"text-muted-foreground size-3.5 shrink-0"}),s("span",{className:"truncate",children:t.title??a("subagents.untitled")}),o("span",{className:"text-foreground ms-auto shrink-0 text-xs",role:"status",children:[a(`subagents.${k}`),d>0?` · ${d}`:""]})]}),y&&s(N,{variant:"ghost",size:"icon-sm",disabled:p,"aria-label":a("subagents.cancel",{name:t.title??a("subagents.untitled")}),onClick:()=>{C()},children:p?s(R,{className:"size-3.5 animate-spin"}):s(T,{className:"size-3.5"})})]}),x&&s("p",{role:"alert",className:"text-destructive px-2 py-1 text-xs",children:x}),l&&o("div",{id:b,className:"min-w-0 ps-4",children:[(t.subagent?.description||m)&&o("div",{className:"text-muted-foreground flex min-w-0 items-center gap-2 px-2 py-1 text-xs",children:[s("span",{className:"min-w-0 flex-1 truncate",title:t.subagent?.description??void 0,children:t.subagent?.description}),m&&s("span",{className:"shrink-0",children:z(m)})]}),t.items.length>0?s("div",{className:"flex max-h-72 min-h-0 flex-col",children:s(tt,{session:t,client:r,host:c})}):s("p",{className:"text-muted-foreground px-2 py-3 text-xs",children:a("subagents.noMessages")}),s(Xe,{sessionId:t.id})]})]})}
2
+ export{Xe};
@@ -1,2 +1,2 @@
1
- import{r}from"./chunk-eg86g265.js";import{Nt}from"./chunk-s3h496tf.js";import{P}from"./chunk-42atrgm1.js";import{At,he}from"./chunk-9gt81b51.js";import{formatDistanceToNowStrict as x}from"date-fns";import{enUS as H,zhCN as L}from"date-fns/locale";import{ClockIcon as z,MessageSquareIcon as E}from"lucide-react";import{useEffect as g,useState as A}from"react";import{Input as D}from"@nyssance/shadcn/vega/components/ui/input";import{Separator as w}from"@nyssance/shadcn/vega/components/ui/separator";import{jsx as o,jsxs as h,Fragment as M}from"react/jsx-runtime";var S={en:H,"zh-CN":L};function Ve(t,a){let i=a==="zh-CN"?S["zh-CN"]:S.en;return x(new Date(t),{locale:i})}function ue({sessionRow:t,actions:a,shortcut:i,renaming:n=!1,onRename:m}){let{t:s,i18n:C,PathAction:u}=r(),f=he(),y=At();g(()=>{f(n)},[n,f]);let[I,p]=A(t.title??"");g(()=>{if(n)p(t.title??"")},[n,t.title]);let d=(e)=>{let c=e.trim();m?.(c!==""&&c!==t.title?c:null)},N=t.archived?s("sessionList.archived"):t.updatedAt!==null?Ve(t.updatedAt,C.language):null,v=[];if(N!==null)v.push({icon:o(z,{className:"size-3.5"}),text:N});let l=u&&o(u,{cwd:t.cwd,onOpened:y});return o(Nt,{title:n?o(D,{autoFocus:!0,value:I,className:"h-7 text-sm","aria-label":s("sessionList.rename"),onChange:(e)=>p(e.target.value),onKeyDown:(e)=>{if(e.stopPropagation(),e.key==="Enter")d(e.target.value);if(e.key==="Escape")m?.(null)},onBlur:(e)=>d(e.target.value)}):h("span",{className:"flex items-center gap-2",children:[o("span",{className:"min-w-0",children:o(P,{className:"min-w-0 flex-1",children:t.title??s("sessionList.untitled")})}),i]}),titleIcon:o(E,{className:"size-3.5"}),details:v,actions:l||a!==void 0?h(M,{children:[l,l&&a!==void 0&&o(w,{}),a]}):void 0})}
2
- export{Ve,ue};
1
+ import{r}from"./chunk-tggrc8e5.js";import{Mt}from"./chunk-1rs9getz.js";import{T}from"./chunk-8jxcdap5.js";import{Et,ve}from"./chunk-97yvajhc.js";import{formatDistanceToNowStrict as x}from"date-fns";import{enUS as H,zhCN as L}from"date-fns/locale";import{ClockIcon as z,MessageSquareIcon as E}from"lucide-react";import{useEffect as g,useState as A}from"react";import{Input as D}from"@nyssance/shadcn/vega/components/ui/input";import{Separator as w}from"@nyssance/shadcn/vega/components/ui/separator";import{jsx as o,jsxs as h,Fragment as M}from"react/jsx-runtime";var S={en:H,"zh-CN":L};function je(t,a){let i=a==="zh-CN"?S["zh-CN"]:S.en;return x(new Date(t),{locale:i})}function pe({sessionRow:t,actions:a,shortcut:i,renaming:n=!1,onRename:m}){let{t:s,i18n:C,PathAction:u}=r(),f=ve(),y=Et();g(()=>{f(n)},[n,f]);let[I,p]=A(t.title??"");g(()=>{if(n)p(t.title??"")},[n,t.title]);let d=(e)=>{let c=e.trim();m?.(c!==""&&c!==t.title?c:null)},N=t.archived?s("sessionList.archived"):t.updatedAt!==null?je(t.updatedAt,C.language):null,v=[];if(N!==null)v.push({icon:o(z,{className:"size-3.5"}),text:N});let l=u&&o(u,{cwd:t.cwd,onOpened:y});return o(Mt,{title:n?o(D,{autoFocus:!0,value:I,className:"h-7 text-sm","aria-label":s("sessionList.rename"),onChange:(e)=>p(e.target.value),onKeyDown:(e)=>{if(e.stopPropagation(),e.key==="Enter")d(e.target.value);if(e.key==="Escape")m?.(null)},onBlur:(e)=>d(e.target.value)}):h("span",{className:"flex items-center gap-2",children:[o("span",{className:"min-w-0",children:o(T,{className:"min-w-0 flex-1",children:t.title??s("sessionList.untitled")})}),i]}),titleIcon:o(E,{className:"size-3.5"}),details:v,actions:l||a!==void 0?h(M,{children:[l,l&&a!==void 0&&o(w,{}),a]}):void 0})}
2
+ export{je,pe};
@@ -1,2 +1,2 @@
1
- import{createStore as M}from"@alwith/api/client";function k(a){return a instanceof Error?a.message:String(a)}function E(a){return a.interface?.displayName??a.name}function I(a){let u={},n=new Map,l=new Map;for(let p of a.data){for(let o of p.skills)if(n.set(o.path,o),o.scope==="repo"){let m=u[p.cwd]??[];if(!m.includes(o.path))m.push(o.path);u[p.cwd]=m}for(let o of p.errors)l.set(o.path,o)}return{skills:[...n.values()],errors:[...l.values()],projects:u}}function v(a){let u=[];for(let n of a.marketplaces)for(let l of n.plugins)if(l.installed)u.push({plugin:l,marketplace:n});return u.toSorted((n,l)=>(l.plugin.installedAt??0)-(n.plugin.installedAt??0))}function Dn(a){let{plugin:u,marketplace:n}=a;return{installAttemptId:crypto.randomUUID(),pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function A(a){let{plugin:u,marketplace:n}=a;return{pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function pt(a,u){let n=u??{t:(e)=>e},l=(e,r)=>n.t(e,r),p=(e)=>n.notify?.(e),o=(e)=>{if(n.reportError)n.reportError(Error(e));else console.error(e)},m=null,b=null,d=(e)=>S.setState(e),P=()=>S.getState(),y=async(e=!1)=>{if(await P().refresh(void 0,{forceRefetch:e,background:!0}),P().error)throw Error(l("plugins.toast.syncError",{message:P().error}))},f=(e,r)=>d((s)=>{let t={...s.busyIds};if(r===null)delete t[e];else t[e]=r;return{busyIds:t}}),h=(e,r)=>d((s)=>{let t={...s.busyMarketplaces};if(r)t[e]=!0;else delete t[e];return{busyMarketplaces:t}}),w=M({loading:!1,loadedScope:null,upgrading:!1,error:null,cwds:[],marketplaces:[],marketplaceLoadErrors:[],featuredPluginIds:[],installed:[],skills:[],skillProjects:{},skillErrors:[],busyIds:{},busySkills:{},busyMarketplaces:{},refresh:(e=P().cwds,r={})=>{if(m={cwds:e,forceRefetch:r.forceRefetch===!0||m?.forceRefetch===!0},d({cwds:e,...!r.background?{loading:!0}:{}}),b)return b;return b=(async()=>{while(m){let s=m;m=null,d({error:null});try{let[t,i,g]=await Promise.all([a.listSkills(s.cwds,s.forceRefetch),a.listPlugins({...s.cwds.length>0?{cwds:s.cwds}:{},...s.forceRefetch?{forceRefetch:!0}:{}}),a.installedPlugins(s.cwds)]);if(m)continue;let c=I(t);d({loadedScope:JSON.stringify(s.cwds),skills:c.skills,skillProjects:c.projects,skillErrors:c.errors,marketplaces:i.marketplaces,marketplaceLoadErrors:i.marketplaceLoadErrors,featuredPluginIds:i.featuredPluginIds,installed:v(g)})}catch(t){if(!m)d({error:k(t)})}}})().finally(()=>{b=null,d({loading:!1})}),b},install:async(e)=>{if(e.plugin.id in P().busyIds)throw Error("Plugin operation already in progress");let r=E(e.plugin);f(e.plugin.id,"installing");try{let s=await a.installPlugin(Dn(e));return await y(),f(e.plugin.id,null),p(l("plugins.toast.installed",{pluginName:r})),s}catch(s){throw o(`${l("plugins.toast.installError")}: ${k(s)}`),s}finally{f(e.plugin.id,null)}},setPluginEnabled:async(e,r)=>{if(e.id in P().busyIds)return;f(e.id,"toggling");let s=(i)=>d((g)=>({installed:g.installed.map((c)=>c.plugin.id===e.id?{...c,plugin:{...c.plugin,enabled:i}}:c)}));s(r);let t=e.enabled;try{let i=e.source.type==="remote"?e.remotePluginId:void 0;if(i===null)throw Error("Remote plugin ID is missing");let g=await a.setPluginEnabled(e.id,r,i);t=g.enabled,s(g.enabled),await y();let c=P().installed.find((R)=>R.plugin.id===e.id);if(c)t=c.plugin.enabled;if(!c||t!==r)throw Error(l("plugins.toast.toggleNotApplied"));f(e.id,null),p(l(r?"plugins.toast.enabled":"plugins.toast.disabled",{pluginName:E(e)}))}catch(i){s(t),o(`${l("plugins.toast.toggleError")}: ${k(i)}`)}finally{f(e.id,null)}},uninstall:async(e)=>{if(e.id in P().busyIds)return;let r=E(e);f(e.id,"uninstalling");try{let s=e.source.type==="remote"?e.remotePluginId:e.id;if(!s)throw Error("Remote plugin ID is missing");if(await a.uninstallPlugin(s),await y(),P().installed.some((t)=>t.plugin.id===e.id))throw Error(l("plugins.toast.uninstallNotApplied"));f(e.id,null),p(l("plugins.toast.uninstalled",{pluginName:r}))}catch(s){o(`${l("plugins.toast.uninstallError")}: ${k(s)}`)}finally{f(e.id,null)}},readPlugin:async(e)=>(await a.readPlugin(A(e))).plugin,setSkillEnabled:async(e,r)=>{if(e.path in P().busySkills)return;d((t)=>({busySkills:{...t.busySkills,[e.path]:!0}})),d((t)=>({skills:t.skills.map((i)=>i.path===e.path?{...i,enabled:r}:i)}));let s=e.interface?.displayName??e.name;try{let t=await a.setSkillEnabled({path:e.path,enabled:r});if(d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:t.effectiveEnabled}:g)})),t.effectiveEnabled!==r){o(l("plugins.catalog.toggleNotApplied"));return}p(l(r?"plugins.skills.enabledToast":"plugins.skills.disabledToast",{skillName:s}))}catch(t){d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:e.enabled}:g)})),o(`${l("plugins.skills.toggleError")}: ${k(t)}`)}finally{d((t)=>{let i={...t.busySkills};return delete i[e.path],{busySkills:i}})}},addMarketplace:async(e)=>{let r=await a.addMarketplace(e);return await y(!0),p(r.alreadyAdded?l("plugins.marketplace.alreadyAdded",{marketplaceName:r.marketplaceName}):l("plugins.marketplace.added",{marketplaceName:r.marketplaceName})),r},removeMarketplace:async(e)=>{h(e,!0);try{await a.removeMarketplace(e),await y(),h(e,!1),p(l("plugins.marketplace.removed",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.removeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeMarketplace:async(e)=>{h(e,!0);try{let r=await a.upgradeMarketplaces(e);if(await y(!0),h(e,!1),r.errors.length>0)o(`${l("plugins.marketplace.upgradeError")}: ${r.errors.map((s)=>s.message).join("; ")}`);else p(l("plugins.marketplace.upgraded",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.upgradeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeAll:async()=>{if(P().upgrading)return;d({upgrading:!0});try{let e=await a.upgradeMarketplaces();if(await y(!0),d({upgrading:!1}),e.errors.length>0)o(l("plugins.marketplace.upgradeAllError"));else p(l("plugins.marketplace.upgradedAll"))}catch(e){o(`${l("plugins.marketplace.upgradeAllRequestError")}: ${k(e)}`)}finally{d({upgrading:!1})}}}),S=Object.assign(w,{bindHost:(e)=>{n=e}});return S}
2
- export{Dn,pt};
1
+ import{createStore as M}from"@alwith/api/client";function k(a){return a instanceof Error?a.message:String(a)}function E(a){return a.interface?.displayName??a.name}function I(a){let u={},n=new Map,l=new Map;for(let p of a.data){for(let o of p.skills)if(n.set(o.path,o),o.scope==="repo"){let m=u[p.cwd]??[];if(!m.includes(o.path))m.push(o.path);u[p.cwd]=m}for(let o of p.errors)l.set(o.path,o)}return{skills:[...n.values()],errors:[...l.values()],projects:u}}function v(a){let u=[];for(let n of a.marketplaces)for(let l of n.plugins)if(l.installed)u.push({plugin:l,marketplace:n});return u.toSorted((n,l)=>(l.plugin.installedAt??0)-(n.plugin.installedAt??0))}function On(a){let{plugin:u,marketplace:n}=a;return{installAttemptId:crypto.randomUUID(),pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function A(a){let{plugin:u,marketplace:n}=a;return{pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function mt(a,u){let n=u??{t:(e)=>e},l=(e,r)=>n.t(e,r),p=(e)=>n.notify?.(e),o=(e)=>{if(n.reportError)n.reportError(Error(e));else console.error(e)},m=null,b=null,d=(e)=>S.setState(e),P=()=>S.getState(),y=async(e=!1)=>{if(await P().refresh(void 0,{forceRefetch:e,background:!0}),P().error)throw Error(l("plugins.toast.syncError",{message:P().error}))},f=(e,r)=>d((s)=>{let t={...s.busyIds};if(r===null)delete t[e];else t[e]=r;return{busyIds:t}}),h=(e,r)=>d((s)=>{let t={...s.busyMarketplaces};if(r)t[e]=!0;else delete t[e];return{busyMarketplaces:t}}),w=M({loading:!1,loadedScope:null,upgrading:!1,error:null,cwds:[],marketplaces:[],marketplaceLoadErrors:[],featuredPluginIds:[],installed:[],skills:[],skillProjects:{},skillErrors:[],busyIds:{},busySkills:{},busyMarketplaces:{},refresh:(e=P().cwds,r={})=>{if(m={cwds:e,forceRefetch:r.forceRefetch===!0||m?.forceRefetch===!0},d({cwds:e,...!r.background?{loading:!0}:{}}),b)return b;return b=(async()=>{while(m){let s=m;m=null,d({error:null});try{let[t,i,g]=await Promise.all([a.listSkills(s.cwds,s.forceRefetch),a.listPlugins({...s.cwds.length>0?{cwds:s.cwds}:{},...s.forceRefetch?{forceRefetch:!0}:{}}),a.installedPlugins(s.cwds)]);if(m)continue;let c=I(t);d({loadedScope:JSON.stringify(s.cwds),skills:c.skills,skillProjects:c.projects,skillErrors:c.errors,marketplaces:i.marketplaces,marketplaceLoadErrors:i.marketplaceLoadErrors,featuredPluginIds:i.featuredPluginIds,installed:v(g)})}catch(t){if(!m)d({error:k(t)})}}})().finally(()=>{b=null,d({loading:!1})}),b},install:async(e)=>{if(e.plugin.id in P().busyIds)throw Error("Plugin operation already in progress");let r=E(e.plugin);f(e.plugin.id,"installing");try{let s=await a.installPlugin(On(e));return await y(),f(e.plugin.id,null),p(l("plugins.toast.installed",{pluginName:r})),s}catch(s){throw o(`${l("plugins.toast.installError")}: ${k(s)}`),s}finally{f(e.plugin.id,null)}},setPluginEnabled:async(e,r)=>{if(e.id in P().busyIds)return;f(e.id,"toggling");let s=(i)=>d((g)=>({installed:g.installed.map((c)=>c.plugin.id===e.id?{...c,plugin:{...c.plugin,enabled:i}}:c)}));s(r);let t=e.enabled;try{let i=e.source.type==="remote"?e.remotePluginId:void 0;if(i===null)throw Error("Remote plugin ID is missing");let g=await a.setPluginEnabled(e.id,r,i);t=g.enabled,s(g.enabled),await y();let c=P().installed.find((R)=>R.plugin.id===e.id);if(c)t=c.plugin.enabled;if(!c||t!==r)throw Error(l("plugins.toast.toggleNotApplied"));f(e.id,null),p(l(r?"plugins.toast.enabled":"plugins.toast.disabled",{pluginName:E(e)}))}catch(i){s(t),o(`${l("plugins.toast.toggleError")}: ${k(i)}`)}finally{f(e.id,null)}},uninstall:async(e)=>{if(e.id in P().busyIds)return;let r=E(e);f(e.id,"uninstalling");try{let s=e.source.type==="remote"?e.remotePluginId:e.id;if(!s)throw Error("Remote plugin ID is missing");if(await a.uninstallPlugin(s),await y(),P().installed.some((t)=>t.plugin.id===e.id))throw Error(l("plugins.toast.uninstallNotApplied"));f(e.id,null),p(l("plugins.toast.uninstalled",{pluginName:r}))}catch(s){o(`${l("plugins.toast.uninstallError")}: ${k(s)}`)}finally{f(e.id,null)}},readPlugin:async(e)=>(await a.readPlugin(A(e))).plugin,setSkillEnabled:async(e,r)=>{if(e.path in P().busySkills)return;d((t)=>({busySkills:{...t.busySkills,[e.path]:!0}})),d((t)=>({skills:t.skills.map((i)=>i.path===e.path?{...i,enabled:r}:i)}));let s=e.interface?.displayName??e.name;try{let t=await a.setSkillEnabled({path:e.path,enabled:r});if(d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:t.effectiveEnabled}:g)})),t.effectiveEnabled!==r){o(l("plugins.catalog.toggleNotApplied"));return}p(l(r?"plugins.skills.enabledToast":"plugins.skills.disabledToast",{skillName:s}))}catch(t){d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:e.enabled}:g)})),o(`${l("plugins.skills.toggleError")}: ${k(t)}`)}finally{d((t)=>{let i={...t.busySkills};return delete i[e.path],{busySkills:i}})}},addMarketplace:async(e)=>{let r=await a.addMarketplace(e);return await y(!0),p(r.alreadyAdded?l("plugins.marketplace.alreadyAdded",{marketplaceName:r.marketplaceName}):l("plugins.marketplace.added",{marketplaceName:r.marketplaceName})),r},removeMarketplace:async(e)=>{h(e,!0);try{await a.removeMarketplace(e),await y(),h(e,!1),p(l("plugins.marketplace.removed",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.removeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeMarketplace:async(e)=>{h(e,!0);try{let r=await a.upgradeMarketplaces(e);if(await y(!0),h(e,!1),r.errors.length>0)o(`${l("plugins.marketplace.upgradeError")}: ${r.errors.map((s)=>s.message).join("; ")}`);else p(l("plugins.marketplace.upgraded",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.upgradeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeAll:async()=>{if(P().upgrading)return;d({upgrading:!0});try{let e=await a.upgradeMarketplaces();if(await y(!0),d({upgrading:!1}),e.errors.length>0)o(l("plugins.marketplace.upgradeAllError"));else p(l("plugins.marketplace.upgradedAll"))}catch(e){o(`${l("plugins.marketplace.upgradeAllRequestError")}: ${k(e)}`)}finally{d({upgrading:!1})}}}),S=Object.assign(w,{bindHost:(e)=>{n=e}});return S}
2
+ export{On,mt};
@@ -1,2 +1,2 @@
1
- import{Ri}from"./chunk-4phhhm7t.js";import{isText as s,terminalOf as i}from"@nyssance/codex-acp-v2/client";function n(t){if(typeof t==="string")return[t];if(Array.isArray(t))return t.flatMap(n);if(typeof t!=="object"||t===null)return[];return Object.entries(t).flatMap(([r,e])=>r==="data"||r==="blob"?[]:n(e))}function u(t){return s(t)?[t.text]:[]}function p(t,r){switch(t.kind){case"user":case"assistant":case"thought":return t.content.flatMap(u);case"tool":return[t.title??"",...n(t.rawInput),...n(i(t,r)?.output||t.rawOutput),...n(t.content)];case"plan":return n(t.plan);case"compaction":return[t.error??""]}}function An(t,r,e={}){let o=r.trim();if(o.length===0)return[];return Ri(t.map((a)=>({turnKey:a.key,segments:a.items.flatMap((c)=>p(c,e))})),o)}
2
- export{An};
1
+ import{Hi}from"./chunk-gva03q5f.js";import{isText as s,terminalOf as i}from"@nyssance/codex-acp-v2/client";function n(t){if(typeof t==="string")return[t];if(Array.isArray(t))return t.flatMap(n);if(typeof t!=="object"||t===null)return[];return Object.entries(t).flatMap(([r,e])=>r==="data"||r==="blob"?[]:n(e))}function u(t){return s(t)?[t.text]:[]}function p(t,r){switch(t.kind){case"user":case"assistant":case"thought":return t.content.flatMap(u);case"tool":return[t.title??"",...n(t.rawInput),...n(i(t,r)?.output||t.rawOutput),...n(t.content)];case"plan":return n(t.plan);case"compaction":return[t.error??""]}}function Ln(t,r,e={}){let o=r.trim();if(o.length===0)return[];return Hi(t.map((a)=>({turnKey:a.key,segments:a.items.flatMap((c)=>p(c,e))})),o)}
2
+ export{Ln};
@@ -1,2 +1,2 @@
1
- import{T}from"./chunk-famkkndg.js";import{e}from"./chunk-epg5w48v.js";import{qe}from"./chunk-8kwxqckk.js";import{FileText as l,RotateCcw as x,X as d}from"lucide-react";import{Button as r}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as t,jsxs as i}from"react/jsx-runtime";function Ao({data:s,sessionId:m}){let{host:a}=e(),{t:o}=a,p=T(),{text:c,status:n}=s.pastedText;return i("div",{className:"bg-muted flex max-w-64 min-w-0 items-center gap-1 rounded-lg px-2 py-1",children:[i(r,{type:"button",variant:"ghost",disabled:n!=="ready",onClick:()=>a.openLink(s.url),className:"h-auto min-w-0 flex-1 shrink gap-2 overflow-hidden px-0 py-1",children:[t(l,{className:"size-4 shrink-0"}),i("span",{className:"min-w-0 flex-1 text-start",children:[t("span",{className:"block truncate text-xs",children:s.filename}),t("span",{className:"text-muted-foreground block text-xs",children:n==="ready"?o("composer.pastedTextCharacters",{count:c.length}):o(n==="pending"?"composer.pastedTextPending":"composer.pastedTextError")})]})]}),n==="error"&&a.writeTextAttachment&&t(r,{type:"button",variant:"ghost",size:"icon-xs","aria-label":o("composer.pastedTextRetry"),onClick:()=>qe(m,s,a.writeTextAttachment),children:t(x,{className:"size-3"})}),t(r,{type:"button",variant:"ghost",size:"icon-xs","aria-label":o("composer.pastedTextRemove"),onClick:()=>p.remove(s.id),children:t(d,{className:"size-3"})})]})}
2
- export{Ao};
1
+ import{I}from"./chunk-w49gke0h.js";import{e}from"./chunk-t9djctkk.js";import{We}from"./chunk-kymztvkv.js";import{FileText as l,RotateCcw as x,X as d}from"lucide-react";import{Button as r}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as t,jsxs as i}from"react/jsx-runtime";function Lo({data:s,sessionId:m}){let{host:a}=e(),{t:o}=a,p=I(),{text:c,status:n}=s.pastedText;return i("div",{className:"bg-muted flex max-w-64 min-w-0 items-center gap-1 rounded-lg px-2 py-1",children:[i(r,{type:"button",variant:"ghost",disabled:n!=="ready",onClick:()=>a.openLink(s.url),className:"h-auto min-w-0 flex-1 shrink gap-2 overflow-hidden px-0 py-1",children:[t(l,{className:"size-4 shrink-0"}),i("span",{className:"min-w-0 flex-1 text-start",children:[t("span",{className:"block truncate text-xs",children:s.filename}),t("span",{className:"text-muted-foreground block text-xs",children:n==="ready"?o("composer.pastedTextCharacters",{count:c.length}):o(n==="pending"?"composer.pastedTextPending":"composer.pastedTextError")})]})]}),n==="error"&&a.writeTextAttachment&&t(r,{type:"button",variant:"ghost",size:"icon-xs","aria-label":o("composer.pastedTextRetry"),onClick:()=>We(m,s,a.writeTextAttachment),children:t(x,{className:"size-3"})}),t(r,{type:"button",variant:"ghost",size:"icon-xs","aria-label":o("composer.pastedTextRemove"),onClick:()=>p.remove(s.id),children:t(d,{className:"size-3"})})]})}
2
+ export{Lo};
@@ -1,3 +1,3 @@
1
- import{Bo}from"./chunk-1mcg9mwq.js";import{Oo}from"./chunk-s6m0ske7.js";import{Uo}from"./chunk-31s3s58d.js";import{Je}from"./chunk-8a61phqa.js";import{n}from"./chunk-z8njjc2c.js";import{e}from"./chunk-epg5w48v.js";import{isContentEntry as f,isDiffEntry as g,isFormElicitation as x,isText as h,isToolCallSubject as b,isUrlElicitation as w}from"@nyssance/codex-acp-v2/client";import{jsx as a,jsxs as m}from"react/jsx-runtime";function Ee(t){return t.kind==="elicitation"&&x(t.params)}function y(t){let o=t._meta?.codex;if(typeof o!=="object"||o===null)return null;let s=o.description;return typeof s==="string"?s:null}function A(t){let o=t.rawInput;if(typeof o!=="object"||o===null)return null;let s=o.command;if(typeof s==="string")return s;if(Array.isArray(s))return s.map(String).join(" ");return null}function v(t){for(let o of t.content??[])if(g(o)&&o.patch&&o.patch.text.length>0)return o.patch.text;return null}function R(t){return(t.content??[]).filter(f).map((o)=>h(o.content)?o.content.text:"").filter((o)=>o.length>0).join(`
2
- `)}function T({subject:t,requestTitle:o}){let{host:s}=e();if(!b(t))return null;let r=t.toolCall,l=A(r),i=v(r),c=R(r),p=s.toolTitle?.(r)??r.title;return m("div",{className:"flex flex-col gap-2",children:[p&&p!==o&&l===null&&a("div",{className:"text-sm font-medium",children:p}),l!==null&&m("pre",{className:"bg-muted overflow-x-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:[a("span",{className:"text-muted-foreground select-none",children:"$ "}),l]}),i!==null&&a("div",{className:"max-h-80 overflow-auto rounded-lg border","data-stream-style":"codexUI",children:a(Je,{patch:i,theme:s.theme})}),i===null&&l===null&&c.length>0&&a("pre",{className:"bg-muted max-h-60 overflow-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:c}),(r.locations??[]).length>0&&a("ul",{className:"text-muted-foreground flex flex-col gap-0.5 text-xs",children:(r.locations??[]).map((u)=>a("li",{className:"truncate font-mono",children:u.path},`${u.path}:${u.line??""}`))})]})}function d(t,o){let{host:s,client:r}=e();return(l)=>{try{if(o)o(t.id,l);else r.respond(t.id,l)}catch(i){if(s.reportError)s.reportError(i);else console.error(i)}}}function C({action:t,total:o,onRespond:s}){let{host:r}=e(),l=d(t,s),i=t.params,c=r.permissionTitle?.(i)??i.title;return m(Bo,{requestId:t.id,title:c,alwaysLabel:r.t("approval.always"),autoFocus:"if-idle",total:o,options:i.options.map((p)=>({...p,description:y(p)??void 0})),onRespond:(p)=>l({outcome:p===null?{outcome:"cancelled"}:{outcome:"selected",optionId:p}}),children:[i.description&&a("div",{className:"text-muted-foreground mt-0.5 text-xs",children:i.description}),i.subject&&a(T,{subject:i.subject,requestTitle:c})]})}function Xe({action:t,total:o,onRespond:s}){let{host:r}=e(),l=d(t,s),i=n((c)=>t.sessionId===null?void 0:c.sessions[t.sessionId]);return a(Oo,{requestId:t.id,schema:t.params.requestedSchema,message:i?.subagent?`${i.title??r.t("subagents.untitled")}: ${t.params.message}`:t.params.message,total:o,t:r.t,onRespond:l})}function be({action:t,total:o,onRespond:s}){let{host:r}=e(),l=d(t,s);if(t.kind==="permission")return a(C,{action:t,total:o,onRespond:s});if(Ee(t))return a(Xe,{action:t,total:o??1,onRespond:s});let i=t.params;if(!w(i))throw Error("Unsupported elicitation mode");return a(Uo,{message:i.message,url:i.url,t:r.t,onOpen:r.openLink,onRespond:(c)=>l(c==="cancel"?{action:"cancel"}:{action:"decline"})})}
3
- export{Ee,Xe,be};
1
+ import{Bo}from"./chunk-jsc8qzkj.js";import{Go}from"./chunk-yd68z08r.js";import{zo}from"./chunk-zrh4de8p.js";import{et}from"./chunk-wxsb337y.js";import{n}from"./chunk-1vmk34zf.js";import{e}from"./chunk-t9djctkk.js";import{isContentEntry as f,isDiffEntry as g,isFormElicitation as x,isText as h,isToolCallSubject as b,isUrlElicitation as w}from"@nyssance/codex-acp-v2/client";import{jsx as a,jsxs as m}from"react/jsx-runtime";function Re(t){return t.kind==="elicitation"&&x(t.params)}function y(t){let o=t._meta?.codex;if(typeof o!=="object"||o===null)return null;let s=o.description;return typeof s==="string"?s:null}function A(t){let o=t.rawInput;if(typeof o!=="object"||o===null)return null;let s=o.command;if(typeof s==="string")return s;if(Array.isArray(s))return s.map(String).join(" ");return null}function v(t){for(let o of t.content??[])if(g(o)&&o.patch&&o.patch.text.length>0)return o.patch.text;return null}function R(t){return(t.content??[]).filter(f).map((o)=>h(o.content)?o.content.text:"").filter((o)=>o.length>0).join(`
2
+ `)}function T({subject:t,requestTitle:o}){let{host:s}=e();if(!b(t))return null;let r=t.toolCall,l=A(r),i=v(r),c=R(r),p=s.toolTitle?.(r)??r.title;return m("div",{className:"flex flex-col gap-2",children:[p&&p!==o&&l===null&&a("div",{className:"text-sm font-medium",children:p}),l!==null&&m("pre",{className:"bg-muted overflow-x-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:[a("span",{className:"text-muted-foreground select-none",children:"$ "}),l]}),i!==null&&a("div",{className:"max-h-80 overflow-auto rounded-lg border","data-stream-style":"codexUI",children:a(et,{patch:i,theme:s.theme})}),i===null&&l===null&&c.length>0&&a("pre",{className:"bg-muted max-h-60 overflow-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:c}),(r.locations??[]).length>0&&a("ul",{className:"text-muted-foreground flex flex-col gap-0.5 text-xs",children:(r.locations??[]).map((u)=>a("li",{className:"truncate font-mono",children:u.path},`${u.path}:${u.line??""}`))})]})}function d(t,o){let{host:s,client:r}=e();return(l)=>{try{if(o)o(t.id,l);else r.respond(t.id,l)}catch(i){if(s.reportError)s.reportError(i);else console.error(i)}}}function C({action:t,total:o,onRespond:s}){let{host:r}=e(),l=d(t,s),i=t.params,c=r.permissionTitle?.(i)??i.title;return m(Bo,{requestId:t.id,title:c,alwaysLabel:r.t("approval.always"),autoFocus:"if-idle",total:o,options:i.options.map((p)=>({...p,description:y(p)??void 0})),onRespond:(p)=>l({outcome:p===null?{outcome:"cancelled"}:{outcome:"selected",optionId:p}}),children:[i.description&&a("div",{className:"text-muted-foreground mt-0.5 text-xs",children:i.description}),i.subject&&a(T,{subject:i.subject,requestTitle:c})]})}function Je({action:t,total:o,onRespond:s}){let{host:r}=e(),l=d(t,s),i=n((c)=>t.sessionId===null?void 0:c.sessions[t.sessionId]);return a(Go,{requestId:t.id,schema:t.params.requestedSchema,message:i?.subagent?`${i.title??r.t("subagents.untitled")}: ${t.params.message}`:t.params.message,total:o,t:r.t,onRespond:l})}function Ce({action:t,total:o,onRespond:s}){let{host:r}=e(),l=d(t,s);if(t.kind==="permission")return a(C,{action:t,total:o,onRespond:s});if(Re(t))return a(Je,{action:t,total:o??1,onRespond:s});let i=t.params;if(!w(i))throw Error("Unsupported elicitation mode");return a(zo,{message:i.message,url:i.url,t:r.t,onOpen:r.openLink,onRespond:(c)=>l(c==="cancel"?{action:"cancel"}:{action:"decline"})})}
3
+ export{Re,Je,Ce};
@@ -1,2 +1,2 @@
1
- import{cn as a}from"cn";import{useRef as u,useState as E}from"react";import{jsx as l}from"react/jsx-runtime";var M=45,d=8;function P({className:i,children:p,onMouseEnter:c,onMouseLeave:f,...m}){let s=u(null),[t,r]=E(0);return l("span",{className:a("min-w-0 overflow-hidden",i),onMouseEnter:(e)=>{let n=s.current;if(!n)return;let o=n.scrollWidth-n.clientWidth;if(o>d)r(getComputedStyle(n).direction==="rtl"?o:-o);c?.(e)},onMouseLeave:(e)=>{r(0),f?.(e)},...m,children:l("span",{ref:s,className:a("block whitespace-nowrap",t===0?"truncate":"overflow-visible"),style:{transform:`translateX(${t}px)`,transition:`transform ${Math.abs(t)/M}s linear`},children:p})})}
2
- export{P};
1
+ import{cn as a}from"cn";import{useRef as u,useState as E}from"react";import{jsx as l}from"react/jsx-runtime";var M=45,d=8;function T({className:i,children:p,onMouseEnter:c,onMouseLeave:f,...m}){let s=u(null),[t,r]=E(0);return l("span",{className:a("min-w-0 overflow-hidden",i),onMouseEnter:(e)=>{let n=s.current;if(!n)return;let o=n.scrollWidth-n.clientWidth;if(o>d)r(getComputedStyle(n).direction==="rtl"?o:-o);c?.(e)},onMouseLeave:(e)=>{r(0),f?.(e)},...m,children:l("span",{ref:s,className:a("block whitespace-nowrap",t===0?"truncate":"overflow-visible"),style:{transform:`translateX(${t}px)`,transition:`transform ${Math.abs(t)/M}s linear`},children:p})})}
2
+ export{T};
@@ -1,4 +1,4 @@
1
- function mo(t,e){if(e===0)return null;let r=e-1;while(r>=0){let n=t[r];if(n===" "||n==="\t"||n===`
1
+ function fo(t,e){if(e===0)return null;let r=e-1;while(r>=0){let n=t[r];if(n===" "||n==="\t"||n===`
2
2
  `)return null;if(n==="@"||n==="/"){let i=r===0?"":t[r-1],s=r===0||i===`
3
3
  `;if(n==="/"?s&&!/[/\\]/.test(t.slice(r+1,e)):s||i===" "||i==="\t")return{kind:n==="/"?"slash":"at",start:r,end:e,query:t.slice(r+1,e)}}r-=1}return null}
4
- export{mo};
4
+ export{fo};
@@ -1,2 +1,2 @@
1
- import{yo}from"./chunk-6rgyckw8.js";import{cn as v}from"cn";import{XIcon as E}from"lucide-react";import{useCallback as p,useEffect as D,useMemo as X,useRef as N,useState as b}from"react";import{Dialog as _,DialogClose as L,DialogContent as j,DialogTitle as A}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as F}from"react/jsx-runtime";function ho({open:l,onOpenChange:y,url:h,filename:M,scale:d,onScaleChange:f,containerRef:z,containerClassName:H,dialogContentClassName:P,imageClassName:T}){let g=p((e)=>Math.min(4,Math.max(0.25,e)),[]),[I,O]=b(1),o=g(d??I),R=N(null),s=z??R,S=N(null),[m,x]=b({width:0,height:0}),[C,W]=b({width:0,height:0}),w=p((e)=>{let n=g(e);if(typeof f==="function"){f(n);return}O(n)},[f,g]);D(()=>{if(!l)return;if(!h)return;if(typeof d==="number")return;O(1)},[l,h,d]),D(()=>{if(!l)return;let e=s.current;if(!e)return;let n=()=>{x({width:e.clientWidth,height:e.clientHeight})};n();let t=new ResizeObserver(n);return t.observe(e),()=>{t.disconnect()}},[s,l]);let Z=p(()=>{w(1)},[w]),r=X(()=>{let{width:e,height:n}=C,{width:t,height:a}=m;if(e===0||n===0)return{width:0,height:0};if(t===0||a===0)return{width:0,height:0};let c=Math.min(t/e,a/n,1),u=e*c,k=n*c;return{width:u*o,height:k*o}},[o,C,m]);if(!h)return null;return i(_,{open:l,onOpenChange:y,children:F(j,{className:v("top-1/2 left-1/2 h-[90vh] max-h-[90vh] w-[90vw]! max-w-[90vw]! -translate-x-1/2 -translate-y-1/2 gap-0 rounded-none bg-transparent p-0 ring-0 sm:w-[90vw]! sm:max-w-[90vw]!",P),showCloseButton:!1,children:[i(A,{className:"sr-only",children:M||"Image preview"}),i(L,{"aria-label":"Close",className:"absolute top-3 right-3 z-10 flex size-10 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur-sm transition-colors hover:bg-black/75",children:i(E,{className:"size-5"})}),i("div",{ref:s,onWheel:(e)=>{if(!e.ctrlKey&&!e.metaKey)return;e.preventDefault();let n=e.deltaY>0?o-0.2:o+0.2,t=g(Number.parseFloat(n.toFixed(2)));if(t===o)return;let a=s.current,c=S.current,u=a&&c?yo({container:a,target:c,clientX:e.clientX,clientY:e.clientY,currentScale:o,nextScale:t}):null;if(w(t),a&&u)requestAnimationFrame(()=>{a.scrollTo(u)})},className:v("h-full w-full scrollbar-thin overflow-auto",H),children:i("div",{className:"grid min-h-full min-w-full place-items-center",style:{width:Math.max(m.width,r.width),height:Math.max(m.height,r.height)},children:i("div",{className:"shrink-0",children:i("img",{alt:M||"image preview",className:v("block object-contain select-none",T),decoding:"async",draggable:!1,ref:S,onDoubleClick:Z,onLoad:(e)=>{let n=e.currentTarget;W({width:n.naturalWidth,height:n.naturalHeight});let t=s.current;if(t&&(t.clientWidth||t.clientHeight))x({width:t.clientWidth,height:t.clientHeight})},style:{imageRendering:"auto",width:r.width||void 0,height:r.height||void 0,maxWidth:r.width?"none":"90vw",maxHeight:r.height?"none":"90vh"},src:h})})})})]})})}
2
- export{ho};
1
+ import{bo}from"./chunk-pvnc76cr.js";import{cn as v}from"cn";import{XIcon as E}from"lucide-react";import{useCallback as p,useEffect as D,useMemo as X,useRef as N,useState as b}from"react";import{Dialog as _,DialogClose as L,DialogContent as j,DialogTitle as A}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as F}from"react/jsx-runtime";function yo({open:l,onOpenChange:y,url:h,filename:M,scale:d,onScaleChange:f,containerRef:z,containerClassName:H,dialogContentClassName:P,imageClassName:T}){let g=p((e)=>Math.min(4,Math.max(0.25,e)),[]),[I,O]=b(1),o=g(d??I),R=N(null),s=z??R,S=N(null),[m,x]=b({width:0,height:0}),[C,W]=b({width:0,height:0}),w=p((e)=>{let n=g(e);if(typeof f==="function"){f(n);return}O(n)},[f,g]);D(()=>{if(!l)return;if(!h)return;if(typeof d==="number")return;O(1)},[l,h,d]),D(()=>{if(!l)return;let e=s.current;if(!e)return;let n=()=>{x({width:e.clientWidth,height:e.clientHeight})};n();let t=new ResizeObserver(n);return t.observe(e),()=>{t.disconnect()}},[s,l]);let Z=p(()=>{w(1)},[w]),r=X(()=>{let{width:e,height:n}=C,{width:t,height:a}=m;if(e===0||n===0)return{width:0,height:0};if(t===0||a===0)return{width:0,height:0};let c=Math.min(t/e,a/n,1),u=e*c,k=n*c;return{width:u*o,height:k*o}},[o,C,m]);if(!h)return null;return i(_,{open:l,onOpenChange:y,children:F(j,{className:v("top-1/2 left-1/2 h-[90vh] max-h-[90vh] w-[90vw]! max-w-[90vw]! -translate-x-1/2 -translate-y-1/2 gap-0 rounded-none bg-transparent p-0 ring-0 sm:w-[90vw]! sm:max-w-[90vw]!",P),showCloseButton:!1,children:[i(A,{className:"sr-only",children:M||"Image preview"}),i(L,{"aria-label":"Close",className:"absolute top-3 right-3 z-10 flex size-10 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur-sm transition-colors hover:bg-black/75",children:i(E,{className:"size-5"})}),i("div",{ref:s,onWheel:(e)=>{if(!e.ctrlKey&&!e.metaKey)return;e.preventDefault();let n=e.deltaY>0?o-0.2:o+0.2,t=g(Number.parseFloat(n.toFixed(2)));if(t===o)return;let a=s.current,c=S.current,u=a&&c?bo({container:a,target:c,clientX:e.clientX,clientY:e.clientY,currentScale:o,nextScale:t}):null;if(w(t),a&&u)requestAnimationFrame(()=>{a.scrollTo(u)})},className:v("h-full w-full scrollbar-thin overflow-auto",H),children:i("div",{className:"grid min-h-full min-w-full place-items-center",style:{width:Math.max(m.width,r.width),height:Math.max(m.height,r.height)},children:i("div",{className:"shrink-0",children:i("img",{alt:M||"image preview",className:v("block object-contain select-none",T),decoding:"async",draggable:!1,ref:S,onDoubleClick:Z,onLoad:(e)=>{let n=e.currentTarget;W({width:n.naturalWidth,height:n.naturalHeight});let t=s.current;if(t&&(t.clientWidth||t.clientHeight))x({width:t.clientWidth,height:t.clientHeight})},style:{imageRendering:"auto",width:r.width||void 0,height:r.height||void 0,maxWidth:r.width?"none":"90vw",maxHeight:r.height?"none":"90vh"},src:h})})})})]})})}
2
+ export{yo};