@alwith/module-chat 0.5.28 → 0.6.1

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 (1108) 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-030esp62.js +2 -0
  12. package/dist/chunk-07srtfz3.js +2 -0
  13. package/dist/chunk-0ag4ewq9.js +2 -0
  14. package/dist/{chunk-jan870w7.js → chunk-0fmepk2y.js} +3 -3
  15. package/dist/{chunk-vm2qb3ns.js → chunk-1b2jsf2v.js} +2 -2
  16. package/dist/{chunk-jgwrjncj.js → chunk-2bbspcb4.js} +2 -2
  17. package/dist/{chunk-2aw4d623.js → chunk-2z1cpz8a.js} +2 -2
  18. package/dist/{chunk-n368fh3r.js → chunk-31t5ap7s.js} +3 -3
  19. package/dist/{chunk-z1aqmqgc.js → chunk-35z0nr4v.js} +2 -2
  20. package/dist/{chunk-c26xgmyr.js → chunk-3aadhvbj.js} +2 -2
  21. package/dist/{chunk-31s3s58d.js → chunk-3mrdv5yq.js} +2 -2
  22. package/dist/chunk-3stf1tm2.js +2 -0
  23. package/dist/{chunk-hs91aaaz.js → chunk-41nq4hjc.js} +2 -2
  24. package/dist/{chunk-qd7jqtqr.js → chunk-4crj8dac.js} +2 -2
  25. package/dist/{chunk-dxgha4a2.js → chunk-4jh2wk80.js} +2 -2
  26. package/dist/chunk-4xjzvwg4.js +2 -0
  27. package/dist/{chunk-8a61phqa.js → chunk-4xp0q7vs.js} +2 -2
  28. package/dist/{chunk-02mwhdhw.js → chunk-53k7yvr8.js} +2 -2
  29. package/dist/chunk-57p1s7hy.js +2 -0
  30. package/dist/{chunk-3kk0rxch.js → chunk-5azv8vz6.js} +2 -2
  31. package/dist/{chunk-qxgmjjh2.js → chunk-5vh4z4yp.js} +2 -2
  32. package/dist/{chunk-5yzjwrat.js → chunk-601kr76a.js} +3 -3
  33. package/dist/{chunk-s3h496tf.js → chunk-67x8znmk.js} +2 -2
  34. package/dist/{chunk-secfh4re.js → chunk-6d5c94rn.js} +2 -2
  35. package/dist/chunk-6hxa1n8n.js +2 -0
  36. package/dist/chunk-6m54xxts.js +2 -0
  37. package/dist/chunk-6pwy0ncf.js +2 -0
  38. package/dist/{chunk-5ysapftt.js → chunk-6wtrmxev.js} +3 -3
  39. package/dist/{chunk-074wn2jr.js → chunk-6wv99fdt.js} +2 -2
  40. package/dist/{chunk-spfbykq8.js → chunk-6zcjn8ra.js} +2 -2
  41. package/dist/chunk-753z0tkd.js +2 -0
  42. package/dist/{chunk-x2nemdjf.js → chunk-76a04a6j.js} +2 -2
  43. package/dist/{chunk-thzq3tfa.js → chunk-7bcm8mpx.js} +2 -2
  44. package/dist/{chunk-qnc6w06c.js → chunk-7eq01k20.js} +3 -3
  45. package/dist/{chunk-5t5y5e8n.js → chunk-7jx2k96e.js} +2 -2
  46. package/dist/{chunk-0v2d2kme.js → chunk-7nb0qea6.js} +3 -3
  47. package/dist/{chunk-6w6yy1md.js → chunk-7xe2v72q.js} +1 -1
  48. package/dist/{chunk-c0b3zze8.js → chunk-7zcr1wzv.js} +2 -2
  49. package/dist/{chunk-2f9vjmxz.js → chunk-8hen6y4t.js} +2 -2
  50. package/dist/chunk-8hgrrycr.js +2 -0
  51. package/dist/{chunk-wc53vqaw.js → chunk-8t3hyxk4.js} +2 -2
  52. package/dist/{chunk-7zryea1b.js → chunk-8wdkc41j.js} +2 -2
  53. package/dist/chunk-9b8y72yf.js +3 -0
  54. package/dist/{chunk-v7rtfzg4.js → chunk-9c8cyz7r.js} +2 -2
  55. package/dist/chunk-9ff3htdp.js +2 -0
  56. package/dist/chunk-9g7qvbhx.js +2 -0
  57. package/dist/{chunk-75vtd3ww.js → chunk-9hskky1n.js} +2 -2
  58. package/dist/{chunk-zfxwm1g9.js → chunk-9k4f13c1.js} +2 -2
  59. package/dist/{chunk-kd87rt80.js → chunk-9n028hnr.js} +2 -2
  60. package/dist/{chunk-2fgwkj52.js → chunk-9rgrb198.js} +3 -3
  61. package/dist/{chunk-53qt3tjb.js → chunk-9w4fg6bn.js} +2 -2
  62. package/dist/{chunk-zx27nf5b.js → chunk-9yrctk84.js} +2 -2
  63. package/dist/{chunk-htjpckp6.js → chunk-a45jg9xv.js} +6 -6
  64. package/dist/{chunk-6rgyckw8.js → chunk-aarpb5np.js} +2 -2
  65. package/dist/{chunk-k3e8wper.js → chunk-abjr18n6.js} +4 -4
  66. package/dist/{chunk-1sxf2rqx.js → chunk-az434tgy.js} +2 -2
  67. package/dist/{chunk-qqqcqvrv.js → chunk-b5ywqwnr.js} +2 -2
  68. package/dist/{chunk-z3dwf54f.js → chunk-bb1y2fy7.js} +2 -2
  69. package/dist/{chunk-wpn4rdwv.js → chunk-be7ja8gh.js} +3 -3
  70. package/dist/{chunk-84yjrafh.js → chunk-bjfcyfp5.js} +2 -2
  71. package/dist/chunk-bk80xpsy.js +2 -0
  72. package/dist/{chunk-cpe2b276.js → chunk-brqgdzhr.js} +2 -2
  73. package/dist/chunk-bt01an6h.js +2 -0
  74. package/dist/{chunk-6t5war9h.js → chunk-bydgccyt.js} +2 -2
  75. package/dist/chunk-c11c29rv.js +5 -0
  76. package/dist/{chunk-7x1qnb20.js → chunk-c2a0x69n.js} +2 -2
  77. package/dist/{chunk-q0z9jq6p.js → chunk-c4dk6j2h.js} +2 -2
  78. package/dist/{chunk-x52rbm87.js → chunk-ce3wg766.js} +2 -2
  79. package/dist/chunk-cm5rcd9q.js +2 -0
  80. package/dist/chunk-d1pc0mrb.js +2 -0
  81. package/dist/{chunk-1mcg9mwq.js → chunk-d67ypca2.js} +2 -2
  82. package/dist/{chunk-br9wsczn.js → chunk-db0g8rr1.js} +2 -2
  83. package/dist/{chunk-h09ez7fc.js → chunk-dbrs7sen.js} +2 -2
  84. package/dist/{chunk-0tzra5rn.js → chunk-dj8e2ymr.js} +2 -2
  85. package/dist/{chunk-t3s1ydnq.js → chunk-e24d6hfs.js} +2 -2
  86. package/dist/chunk-e8jfja20.js +2 -0
  87. package/dist/{chunk-8gztbvxt.js → chunk-eb12xkn0.js} +2 -2
  88. package/dist/{chunk-6whr1y2s.js → chunk-ehcpnhfw.js} +2 -2
  89. package/dist/chunk-enr3j794.js +2 -0
  90. package/dist/chunk-eryds6y3.js +2 -0
  91. package/dist/{chunk-s56e2286.js → chunk-ezhzktjg.js} +2 -2
  92. package/dist/{chunk-ehdqspxk.js → chunk-fkpmrb5t.js} +2 -2
  93. package/dist/{chunk-fpmspg92.js → chunk-fzfmg9pk.js} +2 -2
  94. package/dist/chunk-g3snk3nb.js +2 -0
  95. package/dist/chunk-g4frp0r0.js +2 -0
  96. package/dist/chunk-g7v2xgfh.js +2 -0
  97. package/dist/{chunk-frbakxev.js → chunk-ggqv2qpg.js} +2 -2
  98. package/dist/{chunk-d0w04ydg.js → chunk-gha517v4.js} +2 -2
  99. package/dist/chunk-gjg213m6.js +2 -0
  100. package/dist/chunk-gvwmyxwf.js +2 -0
  101. package/dist/{chunk-41z12m3j.js → chunk-gyps0vc5.js} +4 -4
  102. package/dist/chunk-h3hzsg0s.js +2 -0
  103. package/dist/chunk-h3mrbbsm.js +2 -0
  104. package/dist/{chunk-ee0krzt0.js → chunk-h4r8cx37.js} +2 -2
  105. package/dist/{chunk-n66yy1m1.js → chunk-hfzt777k.js} +2 -2
  106. package/dist/{chunk-s6m0ske7.js → chunk-hp1w7xrp.js} +2 -2
  107. package/dist/{chunk-p7dd93e5.js → chunk-hp9h8njw.js} +2 -2
  108. package/dist/chunk-hrgtpvkw.js +2 -0
  109. package/dist/{chunk-m9rgwr0p.js → chunk-j5engcds.js} +2 -2
  110. package/dist/chunk-j6mkqhey.js +2 -0
  111. package/dist/{chunk-dtsybj2a.js → chunk-k20e64v3.js} +2 -2
  112. package/dist/{chunk-90r8y97z.js → chunk-k7y6dqf2.js} +2 -2
  113. package/dist/{chunk-79jjxyb7.js → chunk-k8xqzrg6.js} +2 -2
  114. package/dist/{chunk-9x0qmswv.js → chunk-ksyb8hyt.js} +2 -2
  115. package/dist/chunk-m33eg346.js +2 -0
  116. package/dist/chunk-m9mvh1gy.js +2 -0
  117. package/dist/{chunk-xz6pb64j.js → chunk-maa70rv4.js} +2 -2
  118. package/dist/{chunk-4edeen4z.js → chunk-mfnq8nnd.js} +3 -3
  119. package/dist/chunk-mhnhkg65.js +2 -0
  120. package/dist/{chunk-r7svwjdg.js → chunk-mmm1rq2a.js} +2 -2
  121. package/dist/chunk-mz18hxbn.js +2 -0
  122. package/dist/chunk-n6dbc0md.js +2 -0
  123. package/dist/{chunk-ggehtpkh.js → chunk-n9fwnebe.js} +2 -2
  124. package/dist/{chunk-ngqr3n0s.js → chunk-nk266xxm.js} +2 -2
  125. package/dist/{chunk-xhrs52gv.js → chunk-npsgbfh2.js} +2 -2
  126. package/dist/{chunk-f7mgf43p.js → chunk-nx701kdw.js} +2 -2
  127. package/dist/{chunk-0stda83g.js → chunk-p0egvanw.js} +2 -2
  128. package/dist/chunk-p9ra3xxb.js +2 -0
  129. package/dist/{chunk-99w9jq4v.js → chunk-pp9fngkx.js} +2 -2
  130. package/dist/{chunk-8em7tfgz.js → chunk-q92p35wp.js} +2 -2
  131. package/dist/{chunk-42atrgm1.js → chunk-qcj6f1rq.js} +2 -2
  132. package/dist/chunk-qexqjw6k.js +2 -0
  133. package/dist/chunk-qez4ygej.js +2 -0
  134. package/dist/chunk-qyp7c0j8.js +1 -0
  135. package/dist/{chunk-5dkj3ntx.js → chunk-qznyjv2c.js} +2 -2
  136. package/dist/{chunk-8bdeyvy3.js → chunk-r0v0wxn7.js} +2 -2
  137. package/dist/chunk-r1sdshyw.js +2 -0
  138. package/dist/{chunk-91zvyqnt.js → chunk-rch4xpj1.js} +2 -2
  139. package/dist/{chunk-4saf1qa5.js → chunk-rg5jhh45.js} +2 -2
  140. package/dist/chunk-sqwscqfk.js +2 -0
  141. package/dist/chunk-stghje2t.js +2 -0
  142. package/dist/{chunk-95mynf7q.js → chunk-t8n1ny7h.js} +2 -2
  143. package/dist/{chunk-6e1bwjtk.js → chunk-teg61ef5.js} +2 -2
  144. package/dist/chunk-tjjqaf65.js +2 -0
  145. package/dist/chunk-v0h2wsj4.js +2 -0
  146. package/dist/{chunk-shwnd0ta.js → chunk-v3jehrgj.js} +2 -2
  147. package/dist/chunk-v4cf374m.js +2 -0
  148. package/dist/{chunk-b67h7yss.js → chunk-v5wqxqrh.js} +2 -2
  149. package/dist/chunk-v7dyjpv3.js +2 -0
  150. package/dist/{chunk-4kbkbvjp.js → chunk-vkc6mwyb.js} +2 -2
  151. package/dist/chunk-vpm5ddtt.js +4 -0
  152. package/dist/{chunk-tk4t9h7r.js → chunk-vwzkw97t.js} +2 -2
  153. package/dist/{chunk-6vntcyv6.js → chunk-w0dfvr05.js} +2 -2
  154. package/dist/{chunk-hsp0skqs.js → chunk-wnsk4tw5.js} +2 -2
  155. package/dist/chunk-wyjzpncq.js +2 -0
  156. package/dist/{chunk-scxhc46w.js → chunk-x4qnkn8f.js} +2 -2
  157. package/dist/{chunk-epg5w48v.js → chunk-xecs5c6a.js} +2 -2
  158. package/dist/{chunk-9gt81b51.js → chunk-xhtpqc8p.js} +2 -2
  159. package/dist/{chunk-6k8m2c80.js → chunk-xvzz0xh6.js} +2 -2
  160. package/dist/{chunk-hcwgc3r7.js → chunk-y2g8d94r.js} +2 -2
  161. package/dist/chunk-y7v0ghc9.js +2 -0
  162. package/dist/{chunk-h2ewgw0x.js → chunk-yd6ae6py.js} +2 -2
  163. package/dist/{chunk-sp39pqt6.js → chunk-yf39xswe.js} +2 -2
  164. package/dist/{chunk-q70h5z14.js → chunk-yjk5a037.js} +2 -2
  165. package/dist/{chunk-5b19mbh6.js → chunk-yq55kqn1.js} +2 -2
  166. package/dist/{chunk-5yb7twvm.js → chunk-yr6ar090.js} +2 -2
  167. package/dist/{chunk-wcgwtn6h.js → chunk-z49yf5bx.js} +2 -2
  168. package/dist/chunk-z4nv1j97.js +2 -0
  169. package/dist/{chunk-az5ayr2d.js → chunk-zb14ervr.js} +2 -2
  170. package/dist/{chunk-2twh547k.js → chunk-zd40j8qb.js} +2 -2
  171. package/dist/{chunk-jkvqtwe6.js → chunk-zn9xn0pj.js} +2 -2
  172. package/dist/chunk-zr2a9z0m.js +2 -0
  173. package/dist/codex/activity-group.js +1 -1
  174. package/dist/codex/assistant-message.js +1 -1
  175. package/dist/codex/async-question-card.js +1 -1
  176. package/dist/codex/disclosure-state.js +1 -1
  177. package/dist/codex/edited-files-card.js +1 -1
  178. package/dist/codex/image-view-activity.js +1 -1
  179. package/dist/codex/markdown-renderer.js +1 -1
  180. package/dist/codex/navigation-audio.js +1 -1
  181. package/dist/codex/navigation-preview.js +1 -1
  182. package/dist/codex/navigation-rail.js +1 -1
  183. package/dist/codex/patch-view.js +1 -1
  184. package/dist/codex/plan.js +1 -1
  185. package/dist/codex/timeline-virtualizer.js +1 -1
  186. package/dist/codex/turn-activity.js +1 -1
  187. package/dist/codex/user-message.js +1 -1
  188. package/dist/codex/virtualized-turn-list.js +1 -1
  189. package/dist/collections/collection-emoji.js +1 -1
  190. package/dist/collections/collection-menu.js +1 -1
  191. package/dist/collections/collection-panel.js +1 -1
  192. package/dist/collections/collections.js +1 -1
  193. package/dist/collections/host.js +1 -1
  194. package/dist/collections/model.js +1 -1
  195. package/dist/collections/store.js +1 -1
  196. package/dist/composer/completion-filter.js +1 -1
  197. package/dist/composer/completion-menu.js +1 -1
  198. package/dist/composer/completion-trigger.js +1 -1
  199. package/dist/composer/effort-slider.d.ts +2 -1
  200. package/dist/composer/effort-slider.js +1 -1
  201. package/dist/composer/menu-radio.js +1 -1
  202. package/dist/composer/model-select.d.ts +2 -1
  203. package/dist/composer/model-select.js +1 -1
  204. package/dist/composer/permission-mode-select.js +1 -1
  205. package/dist/composer/prompt-input-attachments.js +1 -1
  206. package/dist/composer/prompt-input-clipboard.js +1 -1
  207. package/dist/composer/prompt-input-context.js +1 -1
  208. package/dist/composer/prompt-input-textarea.js +1 -1
  209. package/dist/composer/prompt-input.js +1 -1
  210. package/dist/conversation/action-card.js +1 -1
  211. package/dist/conversation/composer/app-mentions.d.ts +6 -0
  212. package/dist/conversation/composer/app-mentions.js +1 -0
  213. package/dist/conversation/composer/apps-menu.d.ts +4 -0
  214. package/dist/conversation/composer/apps-menu.js +1 -0
  215. package/dist/conversation/composer/composer.d.ts +4 -1
  216. package/dist/conversation/composer/composer.js +1 -1
  217. package/dist/conversation/composer/config-options.js +1 -1
  218. package/dist/conversation/composer/context.js +1 -1
  219. package/dist/conversation/composer/drafts.js +1 -1
  220. package/dist/conversation/composer/file-items.js +1 -1
  221. package/dist/conversation/composer/long-text.js +1 -1
  222. package/dist/conversation/composer/mention-chips.js +1 -1
  223. package/dist/conversation/composer/mention-uri.js +1 -1
  224. package/dist/conversation/composer/model-menu.js +1 -1
  225. package/dist/conversation/composer/pasted-text-attachment.js +1 -1
  226. package/dist/conversation/composer/permission-mode-menu.js +1 -1
  227. package/dist/conversation/composer/prediction.js +1 -1
  228. package/dist/conversation/composer/prompt-history.js +1 -1
  229. package/dist/conversation/composer/slash-command-button.js +1 -1
  230. package/dist/conversation/composer/submit-button.js +1 -1
  231. package/dist/conversation/composer/usage-meter.js +1 -1
  232. package/dist/conversation/connection-notice.js +1 -1
  233. package/dist/conversation/context.js +1 -1
  234. package/dist/conversation/conversation-body.js +1 -1
  235. package/dist/conversation/conversation-search.js +1 -1
  236. package/dist/conversation/conversation-view.js +1 -1
  237. package/dist/conversation/conversation.js +1 -1
  238. package/dist/conversation/diff-modal.js +1 -1
  239. package/dist/conversation/draft-project-picker.js +1 -1
  240. package/dist/conversation/session-actions.js +1 -1
  241. package/dist/conversation/subagent-sessions.d.ts +10 -1
  242. package/dist/conversation/subagent-sessions.js +1 -1
  243. package/dist/conversation/subagent-tasks.d.ts +12 -0
  244. package/dist/conversation/subagent-tasks.js +1 -0
  245. package/dist/conversation/types.d.ts +16 -1
  246. package/dist/generated/commands.d.ts +363 -0
  247. package/dist/generated/commands.js +1 -0
  248. package/dist/image-lightbox.js +1 -1
  249. package/dist/image-preview-dialog.js +1 -1
  250. package/dist/image.d.ts +104 -0
  251. package/dist/image.js +1 -0
  252. package/dist/lib/code-highlighter.js +1 -1
  253. package/dist/lib/fuzzy.js +1 -1
  254. package/dist/lib/group-blocks.js +1 -1
  255. package/dist/lib/image-encode.js +1 -1
  256. package/dist/lib/limits.js +1 -1
  257. package/dist/lib/markdown-parser.js +1 -1
  258. package/dist/lib/markdown-parser.worker.js +46 -44
  259. package/dist/lib/markdown-rules.js +1 -1
  260. package/dist/lib/model-name.js +1 -1
  261. package/dist/lib/pointer-centered-zoom.js +1 -1
  262. package/dist/lib/prepare-prompt-files.js +1 -1
  263. package/dist/lib/stream-style.js +1 -1
  264. package/dist/lib/streaming-markdown.js +1 -1
  265. package/dist/lib/tool-artifacts.d.ts +2 -0
  266. package/dist/lib/tool-artifacts.js +1 -0
  267. package/dist/locales.d.ts +91 -0
  268. package/dist/locales.js +1 -1
  269. package/dist/plugins/catalog-header.js +1 -1
  270. package/dist/plugins/catalog-skeleton.js +1 -1
  271. package/dist/plugins/host.js +1 -1
  272. package/dist/plugins/new-chat-directory.js +1 -1
  273. package/dist/plugins/panel-item.js +1 -1
  274. package/dist/plugins/plugin-detail-page.js +1 -1
  275. package/dist/plugins/plugin-icon.js +1 -1
  276. package/dist/plugins/plugin-icons.js +1 -1
  277. package/dist/plugins/plugins-page.js +1 -1
  278. package/dist/plugins/plugins.d.ts +1 -1
  279. package/dist/plugins/plugins.js +1 -1
  280. package/dist/plugins/read-skill-document.d.ts +1 -2
  281. package/dist/plugins/read-skill-document.js +1 -1
  282. package/dist/plugins/skill-document.js +1 -1
  283. package/dist/plugins/skills-tab.js +1 -1
  284. package/dist/plugins/store.js +1 -1
  285. package/dist/plugins/toolbox-layout.js +1 -1
  286. package/dist/search/chat-search.js +1 -1
  287. package/dist/search/codex-source-matches.js +1 -1
  288. package/dist/search/dom-matches.js +1 -1
  289. package/dist/search/find-bar.js +1 -1
  290. package/dist/search/literal-matches.js +1 -1
  291. package/dist/session-list/account-menu.js +1 -1
  292. package/dist/session-list/activity-list.js +1 -1
  293. package/dist/session-list/archived-sessions.js +1 -1
  294. package/dist/session-list/help-menu.js +1 -1
  295. package/dist/session-list/highlight.js +1 -1
  296. package/dist/session-list/host.js +1 -1
  297. package/dist/session-list/hover-info-card.js +1 -1
  298. package/dist/session-list/navigation-controls.js +1 -1
  299. package/dist/session-list/navigation-header.js +1 -1
  300. package/dist/session-list/navigation-store.js +1 -1
  301. package/dist/session-list/navigation-tabs.js +1 -1
  302. package/dist/session-list/navigation.js +1 -1
  303. package/dist/session-list/overflow-marquee.js +1 -1
  304. package/dist/session-list/platform.js +1 -1
  305. package/dist/session-list/row-stop-button.js +1 -1
  306. package/dist/session-list/session-groups.js +1 -1
  307. package/dist/session-list/session-info-card.js +1 -1
  308. package/dist/session-list/session-list.js +1 -1
  309. package/dist/session-list/session-row.js +1 -1
  310. package/dist/session-list/session-state-dot.js +1 -1
  311. package/dist/session-list/session-state-menu.js +1 -1
  312. package/dist/session-list/shortcut-hint.js +1 -1
  313. package/dist/session-list/shortcut.js +1 -1
  314. package/dist/session-list/sidebar-overlay.js +1 -1
  315. package/dist/session-list/trailing-swap.js +1 -1
  316. package/dist/session-list/use-activity-notification.js +1 -1
  317. package/dist/session-list/use-activity-preview.js +1 -1
  318. package/dist/session-list/use-cmd-held.js +1 -1
  319. package/dist/session-list/use-project-sessions.js +1 -1
  320. package/dist/session-list/virtual-session-rows.js +1 -1
  321. package/dist/session-timeline/activity-group.js +1 -1
  322. package/dist/session-timeline/activity-projection.js +1 -1
  323. package/dist/session-timeline/assistant-content.js +1 -1
  324. package/dist/session-timeline/assistant-turn.d.ts +7 -1
  325. package/dist/session-timeline/assistant-turn.js +1 -1
  326. package/dist/session-timeline/async-questions.js +1 -1
  327. package/dist/session-timeline/edited-files-card.js +1 -1
  328. package/dist/session-timeline/history-timeline.js +1 -1
  329. package/dist/session-timeline/host.js +1 -1
  330. package/dist/session-timeline/navigation-rail.js +1 -1
  331. package/dist/session-timeline/plan.js +1 -1
  332. package/dist/session-timeline/question-reply.js +1 -1
  333. package/dist/session-timeline/resource-content.js +1 -1
  334. package/dist/session-timeline/session-timeline.d.ts +2 -0
  335. package/dist/session-timeline/session-timeline.js +1 -1
  336. package/dist/session-timeline/timeline-registry.js +1 -1
  337. package/dist/session-timeline/turn-activity.js +1 -1
  338. package/dist/session-timeline/turn-error.js +1 -1
  339. package/dist/session-timeline/turn-retry.js +1 -1
  340. package/dist/session-timeline/turn-time.js +1 -1
  341. package/dist/session-timeline/turns.js +1 -1
  342. package/dist/session-timeline/use-timeline-scroll.js +1 -1
  343. package/dist/session-timeline/user-message.js +1 -1
  344. package/dist/settings/codex-account-card.js +1 -1
  345. package/dist/settings/login-card.js +1 -1
  346. package/dist/settings/model-alias-settings.js +1 -1
  347. package/dist/settings/model-aliases.js +1 -1
  348. package/dist/settings/provider-logos.js +1 -1
  349. package/dist/settings/provider-section.js +1 -1
  350. package/dist/settings/providers-port.d.ts +2 -8
  351. package/dist/settings/providers-port.js +1 -1
  352. package/dist/settings/providers.js +1 -1
  353. package/dist/settings/settings-bridge.js +1 -1
  354. package/dist/settings/settings.d.ts +1 -1
  355. package/dist/settings/settings.js +1 -1
  356. package/native/darwin-arm64/THIRD_PARTY_NOTICES.md +210 -0
  357. package/native/darwin-arm64/artifact.json +8 -0
  358. package/native/darwin-arm64/libalwith_native_chat.dylib +0 -0
  359. package/native/darwin-arm64/licenses/Inflector-0.11.4/LICENSE.md +22 -0
  360. package/native/darwin-arm64/licenses/adler32-1.2.0/LICENSE +43 -0
  361. package/native/darwin-arm64/licenses/aes-0.9.4/LICENSE-APACHE +201 -0
  362. package/native/darwin-arm64/licenses/aes-0.9.4/LICENSE-MIT +26 -0
  363. package/native/darwin-arm64/licenses/allocator-api2-0.2.21/LICENSE-APACHE +176 -0
  364. package/native/darwin-arm64/licenses/allocator-api2-0.2.21/LICENSE-MIT +23 -0
  365. package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  366. package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  367. package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  368. package/native/darwin-arm64/licenses/autocfg-1.5.1/LICENSE-APACHE +201 -0
  369. package/native/darwin-arm64/licenses/autocfg-1.5.1/LICENSE-MIT +25 -0
  370. package/native/darwin-arm64/licenses/aws-lc-rs-1.19.0/LICENSE +202 -0
  371. package/native/darwin-arm64/licenses/aws-lc-sys-0.47.0/LICENSE +316 -0
  372. package/native/darwin-arm64/licenses/base64-0.23.1/LICENSE-APACHE +201 -0
  373. package/native/darwin-arm64/licenses/base64-0.23.1/LICENSE-MIT +21 -0
  374. package/native/darwin-arm64/licenses/bitflags-2.13.2/LICENSE-APACHE +201 -0
  375. package/native/darwin-arm64/licenses/bitflags-2.13.2/LICENSE-MIT +25 -0
  376. package/native/darwin-arm64/licenses/block-buffer-0.12.1/LICENSE-APACHE +201 -0
  377. package/native/darwin-arm64/licenses/block-buffer-0.12.1/LICENSE-MIT +25 -0
  378. package/native/darwin-arm64/licenses/bumpalo-3.20.3/LICENSE-APACHE +201 -0
  379. package/native/darwin-arm64/licenses/bumpalo-3.20.3/LICENSE-MIT +25 -0
  380. package/native/darwin-arm64/licenses/bytecount-0.6.9/LICENSE.Apache2 +201 -0
  381. package/native/darwin-arm64/licenses/bytecount-0.6.9/LICENSE.MIT +19 -0
  382. package/native/darwin-arm64/licenses/bytes-1.12.1/LICENSE +25 -0
  383. package/native/darwin-arm64/licenses/bzip2-0.6.1/LICENSE-APACHE +201 -0
  384. package/native/darwin-arm64/licenses/bzip2-0.6.1/LICENSE-MIT +25 -0
  385. package/native/darwin-arm64/licenses/cc-1.11.0/LICENSE-APACHE +201 -0
  386. package/native/darwin-arm64/licenses/cc-1.11.0/LICENSE-MIT +25 -0
  387. package/native/darwin-arm64/licenses/cfg-if-1.0.5/LICENSE-APACHE +201 -0
  388. package/native/darwin-arm64/licenses/cfg-if-1.0.5/LICENSE-MIT +25 -0
  389. package/native/darwin-arm64/licenses/cfg_aliases-0.2.2/LICENSE +9 -0
  390. package/native/darwin-arm64/licenses/chacha20-0.10.2/LICENSE-APACHE +201 -0
  391. package/native/darwin-arm64/licenses/chacha20-0.10.2/LICENSE-MIT +25 -0
  392. package/native/darwin-arm64/licenses/chrono-0.4.45/LICENSE.txt +240 -0
  393. package/native/darwin-arm64/licenses/cipher-0.5.2/LICENSE-APACHE +201 -0
  394. package/native/darwin-arm64/licenses/cipher-0.5.2/LICENSE-MIT +25 -0
  395. package/native/darwin-arm64/licenses/cmake-0.1.58/LICENSE-APACHE +201 -0
  396. package/native/darwin-arm64/licenses/cmake-0.1.58/LICENSE-MIT +25 -0
  397. package/native/darwin-arm64/licenses/cmov-0.5.4/LICENSE-APACHE +202 -0
  398. package/native/darwin-arm64/licenses/cmov-0.5.4/LICENSE-MIT +25 -0
  399. package/native/darwin-arm64/licenses/const-oid-0.10.2/LICENSE-APACHE +201 -0
  400. package/native/darwin-arm64/licenses/const-oid-0.10.2/LICENSE-MIT +25 -0
  401. package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-APACHE +176 -0
  402. package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-CC0 +121 -0
  403. package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-MIT0 +14 -0
  404. package/native/darwin-arm64/licenses/core-foundation-0.10.1/LICENSE-APACHE +201 -0
  405. package/native/darwin-arm64/licenses/core-foundation-0.10.1/LICENSE-MIT +25 -0
  406. package/native/darwin-arm64/licenses/core-foundation-sys-0.8.7/LICENSE-APACHE +201 -0
  407. package/native/darwin-arm64/licenses/core-foundation-sys-0.8.7/LICENSE-MIT +25 -0
  408. package/native/darwin-arm64/licenses/cpubits-0.1.1/LICENSE-APACHE +201 -0
  409. package/native/darwin-arm64/licenses/cpubits-0.1.1/LICENSE-MIT +25 -0
  410. package/native/darwin-arm64/licenses/cpufeatures-0.3.1/LICENSE-APACHE +201 -0
  411. package/native/darwin-arm64/licenses/cpufeatures-0.3.1/LICENSE-MIT +25 -0
  412. package/native/darwin-arm64/licenses/crc32fast-1.5.4/LICENSE-APACHE +202 -0
  413. package/native/darwin-arm64/licenses/crc32fast-1.5.4/LICENSE-MIT +21 -0
  414. package/native/darwin-arm64/licenses/crypto-common-0.2.2/LICENSE-APACHE +201 -0
  415. package/native/darwin-arm64/licenses/crypto-common-0.2.2/LICENSE-MIT +25 -0
  416. package/native/darwin-arm64/licenses/ctutils-0.4.8/LICENSE-APACHE +202 -0
  417. package/native/darwin-arm64/licenses/ctutils-0.4.8/LICENSE-MIT +25 -0
  418. package/native/darwin-arm64/licenses/dary_heap-0.3.9/LICENSE-APACHE +176 -0
  419. package/native/darwin-arm64/licenses/dary_heap-0.3.9/LICENSE-MIT +23 -0
  420. package/native/darwin-arm64/licenses/deflate64-0.1.12/LICENSE +24 -0
  421. package/native/darwin-arm64/licenses/deranged-0.5.9/LICENSE-Apache +202 -0
  422. package/native/darwin-arm64/licenses/deranged-0.5.9/LICENSE-MIT +19 -0
  423. package/native/darwin-arm64/licenses/digest-0.11.3/LICENSE-APACHE +201 -0
  424. package/native/darwin-arm64/licenses/digest-0.11.3/LICENSE-MIT +26 -0
  425. package/native/darwin-arm64/licenses/displaydoc-0.2.7/LICENSE-APACHE +201 -0
  426. package/native/darwin-arm64/licenses/displaydoc-0.2.7/LICENSE-MIT +23 -0
  427. package/native/darwin-arm64/licenses/dunce-1.0.5/LICENSE +121 -0
  428. package/native/darwin-arm64/licenses/equivalent-1.0.3/LICENSE-APACHE +201 -0
  429. package/native/darwin-arm64/licenses/equivalent-1.0.3/LICENSE-MIT +25 -0
  430. package/native/darwin-arm64/licenses/errno-0.3.14/LICENSE-APACHE +201 -0
  431. package/native/darwin-arm64/licenses/errno-0.3.14/LICENSE-MIT +25 -0
  432. package/native/darwin-arm64/licenses/fallible-iterator-0.3.0/LICENSE-APACHE +202 -0
  433. package/native/darwin-arm64/licenses/fallible-iterator-0.3.0/LICENSE-MIT +19 -0
  434. package/native/darwin-arm64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-APACHE +202 -0
  435. package/native/darwin-arm64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-MIT +19 -0
  436. package/native/darwin-arm64/licenses/fastrand-2.5.0/LICENSE-APACHE +201 -0
  437. package/native/darwin-arm64/licenses/fastrand-2.5.0/LICENSE-MIT +23 -0
  438. package/native/darwin-arm64/licenses/find-msvc-tools-0.1.15/LICENSE-APACHE +201 -0
  439. package/native/darwin-arm64/licenses/find-msvc-tools-0.1.15/LICENSE-MIT +25 -0
  440. package/native/darwin-arm64/licenses/flate2-1.1.10/LICENSE-APACHE +201 -0
  441. package/native/darwin-arm64/licenses/flate2-1.1.10/LICENSE-MIT +25 -0
  442. package/native/darwin-arm64/licenses/foldhash-0.2.0/LICENSE +19 -0
  443. package/native/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  444. package/native/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  445. package/native/darwin-arm64/licenses/fs_extra-1.3.0/LICENSE +21 -0
  446. package/native/darwin-arm64/licenses/futures-channel-0.3.34/LICENSE-APACHE +202 -0
  447. package/native/darwin-arm64/licenses/futures-channel-0.3.34/LICENSE-MIT +26 -0
  448. package/native/darwin-arm64/licenses/futures-core-0.3.34/LICENSE-APACHE +202 -0
  449. package/native/darwin-arm64/licenses/futures-core-0.3.34/LICENSE-MIT +26 -0
  450. package/native/darwin-arm64/licenses/futures-task-0.3.34/LICENSE-APACHE +202 -0
  451. package/native/darwin-arm64/licenses/futures-task-0.3.34/LICENSE-MIT +26 -0
  452. package/native/darwin-arm64/licenses/futures-util-0.3.34/LICENSE-APACHE +202 -0
  453. package/native/darwin-arm64/licenses/futures-util-0.3.34/LICENSE-MIT +26 -0
  454. package/native/darwin-arm64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  455. package/native/darwin-arm64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  456. package/native/darwin-arm64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  457. package/native/darwin-arm64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  458. package/native/darwin-arm64/licenses/hashbrown-0.16.1/LICENSE-APACHE +201 -0
  459. package/native/darwin-arm64/licenses/hashbrown-0.16.1/LICENSE-MIT +25 -0
  460. package/native/darwin-arm64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  461. package/native/darwin-arm64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  462. package/native/darwin-arm64/licenses/hashlink-0.12.2/LICENSE-APACHE +201 -0
  463. package/native/darwin-arm64/licenses/hashlink-0.12.2/LICENSE-MIT +26 -0
  464. package/native/darwin-arm64/licenses/hmac-0.13.0/LICENSE-APACHE +201 -0
  465. package/native/darwin-arm64/licenses/hmac-0.13.0/LICENSE-MIT +25 -0
  466. package/native/darwin-arm64/licenses/http-1.5.0/LICENSE-APACHE +201 -0
  467. package/native/darwin-arm64/licenses/http-1.5.0/LICENSE-MIT +25 -0
  468. package/native/darwin-arm64/licenses/http-body-1.1.0/LICENSE +25 -0
  469. package/native/darwin-arm64/licenses/http-body-util-0.1.5/LICENSE +25 -0
  470. package/native/darwin-arm64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  471. package/native/darwin-arm64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  472. package/native/darwin-arm64/licenses/hybrid-array-0.4.15/LICENSE-APACHE +201 -0
  473. package/native/darwin-arm64/licenses/hybrid-array-0.4.15/LICENSE-MIT +25 -0
  474. package/native/darwin-arm64/licenses/hyper-1.12.0/LICENSE +19 -0
  475. package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-APACHE +201 -0
  476. package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-ISC +15 -0
  477. package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-MIT +25 -0
  478. package/native/darwin-arm64/licenses/hyper-util-0.1.21/LICENSE +19 -0
  479. package/native/darwin-arm64/licenses/iana-time-zone-0.1.65/LICENSE-APACHE +201 -0
  480. package/native/darwin-arm64/licenses/iana-time-zone-0.1.65/LICENSE-MIT +25 -0
  481. package/native/darwin-arm64/licenses/icu_collections-2.4.0/LICENSE +46 -0
  482. package/native/darwin-arm64/licenses/icu_locale_core-2.4.0/LICENSE +46 -0
  483. package/native/darwin-arm64/licenses/icu_normalizer-2.4.0/LICENSE +46 -0
  484. package/native/darwin-arm64/licenses/icu_normalizer_data-2.4.0/LICENSE +46 -0
  485. package/native/darwin-arm64/licenses/icu_properties-2.4.0/LICENSE +46 -0
  486. package/native/darwin-arm64/licenses/icu_properties_data-2.4.0/LICENSE +46 -0
  487. package/native/darwin-arm64/licenses/icu_provider-2.4.0/LICENSE +46 -0
  488. package/native/darwin-arm64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  489. package/native/darwin-arm64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  490. package/native/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  491. package/native/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  492. package/native/darwin-arm64/licenses/include-flate-0.3.5/LICENSE +202 -0
  493. package/native/darwin-arm64/licenses/include-flate-codegen-0.3.5/LICENSE +202 -0
  494. package/native/darwin-arm64/licenses/include-flate-compress-0.3.5/LICENSE +202 -0
  495. package/native/darwin-arm64/licenses/indexmap-2.14.2/LICENSE-APACHE +201 -0
  496. package/native/darwin-arm64/licenses/indexmap-2.14.2/LICENSE-MIT +25 -0
  497. package/native/darwin-arm64/licenses/inout-0.2.5/LICENSE-APACHE +201 -0
  498. package/native/darwin-arm64/licenses/inout-0.2.5/LICENSE-MIT +26 -0
  499. package/native/darwin-arm64/licenses/ipnet-2.12.2/LICENSE-APACHE +201 -0
  500. package/native/darwin-arm64/licenses/ipnet-2.12.2/LICENSE-MIT +7 -0
  501. package/native/darwin-arm64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  502. package/native/darwin-arm64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  503. package/native/darwin-arm64/licenses/jieba-macros-0.11.0/LICENSE +22 -0
  504. package/native/darwin-arm64/licenses/jieba-rs-0.11.0/LICENSE +22 -0
  505. package/native/darwin-arm64/licenses/jobserver-0.1.35/LICENSE-APACHE +201 -0
  506. package/native/darwin-arm64/licenses/jobserver-0.1.35/LICENSE-MIT +25 -0
  507. package/native/darwin-arm64/licenses/libbz2-rs-sys-0.2.6/LICENSE +48 -0
  508. package/native/darwin-arm64/licenses/libc-0.2.191/LICENSE-APACHE +176 -0
  509. package/native/darwin-arm64/licenses/libc-0.2.191/LICENSE-MIT +25 -0
  510. package/native/darwin-arm64/licenses/libflate-2.3.2/LICENSE +21 -0
  511. package/native/darwin-arm64/licenses/libflate_lz77-2.3.0/LICENSE +21 -0
  512. package/native/darwin-arm64/licenses/libsqlite3-sys-0.39.1/LICENSE +19 -0
  513. package/native/darwin-arm64/licenses/litemap-0.8.3/LICENSE +46 -0
  514. package/native/darwin-arm64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  515. package/native/darwin-arm64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  516. package/native/darwin-arm64/licenses/log-0.4.35/LICENSE-APACHE +201 -0
  517. package/native/darwin-arm64/licenses/log-0.4.35/LICENSE-MIT +25 -0
  518. package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-APACHE +202 -0
  519. package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-MIT +7 -0
  520. package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-ZLIB +19 -0
  521. package/native/darwin-arm64/licenses/lzma-rust2-0.24.0/LICENSE +201 -0
  522. package/native/darwin-arm64/licenses/memchr-2.8.3/COPYING +3 -0
  523. package/native/darwin-arm64/licenses/memchr-2.8.3/LICENSE-MIT +21 -0
  524. package/native/darwin-arm64/licenses/mio-1.2.4/LICENSE +19 -0
  525. package/native/darwin-arm64/licenses/nix-0.31.3/LICENSE +21 -0
  526. package/native/darwin-arm64/licenses/no_std_io2-0.9.4/LICENSE-APACHE +202 -0
  527. package/native/darwin-arm64/licenses/no_std_io2-0.9.4/LICENSE-MIT +19 -0
  528. package/native/darwin-arm64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  529. package/native/darwin-arm64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  530. package/native/darwin-arm64/licenses/num-traits-0.2.19/LICENSE-APACHE +201 -0
  531. package/native/darwin-arm64/licenses/num-traits-0.2.19/LICENSE-MIT +25 -0
  532. package/native/darwin-arm64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  533. package/native/darwin-arm64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  534. package/native/darwin-arm64/licenses/opencode-ai-models-0.0.124/LICENSE +21 -0
  535. package/native/darwin-arm64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  536. package/native/darwin-arm64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  537. package/native/darwin-arm64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  538. package/native/darwin-arm64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  539. package/native/darwin-arm64/licenses/pbkdf2-0.13.0/LICENSE-APACHE +201 -0
  540. package/native/darwin-arm64/licenses/pbkdf2-0.13.0/LICENSE-MIT +26 -0
  541. package/native/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  542. package/native/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  543. package/native/darwin-arm64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  544. package/native/darwin-arm64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  545. package/native/darwin-arm64/licenses/pkg-config-0.3.34/LICENSE-APACHE +201 -0
  546. package/native/darwin-arm64/licenses/pkg-config-0.3.34/LICENSE-MIT +25 -0
  547. package/native/darwin-arm64/licenses/potential_utf-0.1.6/LICENSE +46 -0
  548. package/native/darwin-arm64/licenses/powerfmt-0.2.1/LICENSE-Apache +202 -0
  549. package/native/darwin-arm64/licenses/powerfmt-0.2.1/LICENSE-MIT +19 -0
  550. package/native/darwin-arm64/licenses/ppmd-rust-1.5.2/LICENSE-CC0.md +119 -0
  551. package/native/darwin-arm64/licenses/ppmd-rust-1.5.2/LICENSE-MIT-0.md +16 -0
  552. package/native/darwin-arm64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-APACHE +201 -0
  553. package/native/darwin-arm64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-MIT +21 -0
  554. package/native/darwin-arm64/licenses/proc-macro-error3-3.1.1/LICENSE-APACHE +202 -0
  555. package/native/darwin-arm64/licenses/proc-macro-error3-3.1.1/LICENSE-MIT +22 -0
  556. package/native/darwin-arm64/licenses/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
  557. package/native/darwin-arm64/licenses/proc-macro2-1.0.107/LICENSE-MIT +23 -0
  558. package/native/darwin-arm64/licenses/quinn-0.11.12/LICENSE-APACHE +201 -0
  559. package/native/darwin-arm64/licenses/quinn-0.11.12/LICENSE-MIT +7 -0
  560. package/native/darwin-arm64/licenses/quinn-proto-0.11.19/LICENSE-APACHE +201 -0
  561. package/native/darwin-arm64/licenses/quinn-proto-0.11.19/LICENSE-MIT +7 -0
  562. package/native/darwin-arm64/licenses/quinn-udp-0.5.16/LICENSE-APACHE +201 -0
  563. package/native/darwin-arm64/licenses/quinn-udp-0.5.16/LICENSE-MIT +7 -0
  564. package/native/darwin-arm64/licenses/quote-1.0.47/LICENSE-APACHE +176 -0
  565. package/native/darwin-arm64/licenses/quote-1.0.47/LICENSE-MIT +23 -0
  566. package/native/darwin-arm64/licenses/rand-0.10.3/LICENSE-APACHE +176 -0
  567. package/native/darwin-arm64/licenses/rand-0.10.3/LICENSE-MIT +26 -0
  568. package/native/darwin-arm64/licenses/rand_core-0.10.1/LICENSE-APACHE +187 -0
  569. package/native/darwin-arm64/licenses/rand_core-0.10.1/LICENSE-MIT +25 -0
  570. package/native/darwin-arm64/licenses/rand_pcg-0.10.2/LICENSE-APACHE +187 -0
  571. package/native/darwin-arm64/licenses/rand_pcg-0.10.2/LICENSE-MIT +26 -0
  572. package/native/darwin-arm64/licenses/regex-lite-0.1.9/LICENSE-APACHE +201 -0
  573. package/native/darwin-arm64/licenses/regex-lite-0.1.9/LICENSE-MIT +25 -0
  574. package/native/darwin-arm64/licenses/reqwest-0.13.5/LICENSE-APACHE +201 -0
  575. package/native/darwin-arm64/licenses/reqwest-0.13.5/LICENSE-MIT +20 -0
  576. package/native/darwin-arm64/licenses/rev_lines-0.3.0/LICENSE-MIT +21 -0
  577. package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE +9 -0
  578. package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  579. package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  580. package/native/darwin-arm64/licenses/rle-decode-fast-1.0.3/LICENSE-APACHE +13 -0
  581. package/native/darwin-arm64/licenses/rle-decode-fast-1.0.3/LICENSE-MIT +19 -0
  582. package/native/darwin-arm64/licenses/rusqlite-0.41.1/LICENSE +19 -0
  583. package/native/darwin-arm64/licenses/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
  584. package/native/darwin-arm64/licenses/rustc-hash-2.1.3/LICENSE-MIT +23 -0
  585. package/native/darwin-arm64/licenses/rustc_version-0.4.1/LICENSE-APACHE +201 -0
  586. package/native/darwin-arm64/licenses/rustc_version-0.4.1/LICENSE-MIT +25 -0
  587. package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-APACHE +201 -0
  588. package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  589. package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-MIT +23 -0
  590. package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-APACHE +201 -0
  591. package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-ISC +15 -0
  592. package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-MIT +25 -0
  593. package/native/darwin-arm64/licenses/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
  594. package/native/darwin-arm64/licenses/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
  595. package/native/darwin-arm64/licenses/rustls-platform-verifier-0.7.1/LICENSE-APACHE +201 -0
  596. package/native/darwin-arm64/licenses/rustls-platform-verifier-0.7.1/LICENSE-MIT +21 -0
  597. package/native/darwin-arm64/licenses/rustls-webpki-0.103.16/LICENSE +19 -0
  598. package/native/darwin-arm64/licenses/rustversion-1.0.23/LICENSE-APACHE +176 -0
  599. package/native/darwin-arm64/licenses/rustversion-1.0.23/LICENSE-MIT +23 -0
  600. package/native/darwin-arm64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  601. package/native/darwin-arm64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  602. package/native/darwin-arm64/licenses/security-framework-3.7.0/LICENSE-APACHE +201 -0
  603. package/native/darwin-arm64/licenses/security-framework-3.7.0/LICENSE-MIT +20 -0
  604. package/native/darwin-arm64/licenses/security-framework-sys-2.17.0/LICENSE-APACHE +201 -0
  605. package/native/darwin-arm64/licenses/security-framework-sys-2.17.0/LICENSE-MIT +20 -0
  606. package/native/darwin-arm64/licenses/semver-1.0.28/LICENSE-APACHE +176 -0
  607. package/native/darwin-arm64/licenses/semver-1.0.28/LICENSE-MIT +23 -0
  608. package/native/darwin-arm64/licenses/serde-1.0.229/LICENSE-APACHE +176 -0
  609. package/native/darwin-arm64/licenses/serde-1.0.229/LICENSE-MIT +23 -0
  610. package/native/darwin-arm64/licenses/serde_core-1.0.229/LICENSE-APACHE +176 -0
  611. package/native/darwin-arm64/licenses/serde_core-1.0.229/LICENSE-MIT +23 -0
  612. package/native/darwin-arm64/licenses/serde_derive-1.0.229/LICENSE-APACHE +176 -0
  613. package/native/darwin-arm64/licenses/serde_derive-1.0.229/LICENSE-MIT +23 -0
  614. package/native/darwin-arm64/licenses/serde_json-1.0.154/LICENSE-APACHE +176 -0
  615. package/native/darwin-arm64/licenses/serde_json-1.0.154/LICENSE-MIT +23 -0
  616. package/native/darwin-arm64/licenses/sha1-0.11.0/LICENSE-APACHE +201 -0
  617. package/native/darwin-arm64/licenses/sha1-0.11.0/LICENSE-MIT +28 -0
  618. package/native/darwin-arm64/licenses/sha2-0.11.1/LICENSE-APACHE +201 -0
  619. package/native/darwin-arm64/licenses/sha2-0.11.1/LICENSE-MIT +28 -0
  620. package/native/darwin-arm64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  621. package/native/darwin-arm64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  622. package/native/darwin-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
  623. package/native/darwin-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
  624. package/native/darwin-arm64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  625. package/native/darwin-arm64/licenses/slab-0.4.12/LICENSE +25 -0
  626. package/native/darwin-arm64/licenses/smallvec-1.16.4/LICENSE-APACHE +201 -0
  627. package/native/darwin-arm64/licenses/smallvec-1.16.4/LICENSE-MIT +25 -0
  628. package/native/darwin-arm64/licenses/socket2-0.6.5/LICENSE-APACHE +201 -0
  629. package/native/darwin-arm64/licenses/socket2-0.6.5/LICENSE-MIT +25 -0
  630. package/native/darwin-arm64/licenses/specta-2.0.0-rc.27/LICENSE +21 -0
  631. package/native/darwin-arm64/licenses/specta-macros-2.0.0-rc.27/LICENSE +21 -0
  632. package/native/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  633. package/native/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  634. package/native/darwin-arm64/licenses/stop-words-0.10.1/LICENSE-APACHE +201 -0
  635. package/native/darwin-arm64/licenses/stop-words-0.10.1/LICENSE.md +21 -0
  636. package/native/darwin-arm64/licenses/subtle-2.6.1/LICENSE +29 -0
  637. package/native/darwin-arm64/licenses/syn-2.0.119/LICENSE-APACHE +176 -0
  638. package/native/darwin-arm64/licenses/syn-2.0.119/LICENSE-MIT +23 -0
  639. package/native/darwin-arm64/licenses/syn-3.0.9/LICENSE-APACHE +176 -0
  640. package/native/darwin-arm64/licenses/syn-3.0.9/LICENSE-MIT +23 -0
  641. package/native/darwin-arm64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  642. package/native/darwin-arm64/licenses/synstructure-0.14.0/LICENSE +7 -0
  643. package/native/darwin-arm64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  644. package/native/darwin-arm64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  645. package/native/darwin-arm64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  646. package/native/darwin-arm64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  647. package/native/darwin-arm64/licenses/thiserror-2.0.21/LICENSE-APACHE +176 -0
  648. package/native/darwin-arm64/licenses/thiserror-2.0.21/LICENSE-MIT +23 -0
  649. package/native/darwin-arm64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  650. package/native/darwin-arm64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  651. package/native/darwin-arm64/licenses/thiserror-impl-2.0.21/LICENSE-APACHE +176 -0
  652. package/native/darwin-arm64/licenses/thiserror-impl-2.0.21/LICENSE-MIT +23 -0
  653. package/native/darwin-arm64/licenses/time-0.3.55/LICENSE-Apache +177 -0
  654. package/native/darwin-arm64/licenses/time-0.3.55/LICENSE-MIT +19 -0
  655. package/native/darwin-arm64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  656. package/native/darwin-arm64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  657. package/native/darwin-arm64/licenses/tinystr-0.8.5/LICENSE +46 -0
  658. package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-APACHE.md +202 -0
  659. package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-MIT.md +5 -0
  660. package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-ZLIB.md +11 -0
  661. package/native/darwin-arm64/licenses/tokio-1.54.1/LICENSE +21 -0
  662. package/native/darwin-arm64/licenses/tokio-macros-2.7.2/LICENSE +22 -0
  663. package/native/darwin-arm64/licenses/tokio-rustls-0.26.6/LICENSE-APACHE +201 -0
  664. package/native/darwin-arm64/licenses/tokio-rustls-0.26.6/LICENSE-MIT +25 -0
  665. package/native/darwin-arm64/licenses/tower-0.5.3/LICENSE +25 -0
  666. package/native/darwin-arm64/licenses/tower-http-0.6.11/LICENSE +25 -0
  667. package/native/darwin-arm64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  668. package/native/darwin-arm64/licenses/tower-service-0.3.3/LICENSE +25 -0
  669. package/native/darwin-arm64/licenses/tracing-0.1.44/LICENSE +25 -0
  670. package/native/darwin-arm64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  671. package/native/darwin-arm64/licenses/try-lock-0.2.5/LICENSE +21 -0
  672. package/native/darwin-arm64/licenses/typed-path-0.13.0/LICENSE-APACHE +176 -0
  673. package/native/darwin-arm64/licenses/typed-path-0.13.0/LICENSE-MIT +23 -0
  674. package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE +1 -0
  675. package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  676. package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  677. package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-APACHE +176 -0
  678. package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-MIT +23 -0
  679. package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-UNICODE +39 -0
  680. package/native/darwin-arm64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  681. package/native/darwin-arm64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  682. package/native/darwin-arm64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  683. package/native/darwin-arm64/licenses/utf8_iter-1.1.0/LICENSE-APACHE +202 -0
  684. package/native/darwin-arm64/licenses/utf8_iter-1.1.0/LICENSE-MIT +25 -0
  685. package/native/darwin-arm64/licenses/utf_types-1.0.0/LICENSE-APACHE +202 -0
  686. package/native/darwin-arm64/licenses/utf_types-1.0.0/LICENSE-MIT +25 -0
  687. package/native/darwin-arm64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  688. package/native/darwin-arm64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  689. package/native/darwin-arm64/licenses/want-0.3.2/LICENSE +20 -0
  690. package/native/darwin-arm64/licenses/writeable-0.6.4/LICENSE +46 -0
  691. package/native/darwin-arm64/licenses/yoke-0.8.4/LICENSE +46 -0
  692. package/native/darwin-arm64/licenses/yoke-derive-0.8.4/LICENSE +46 -0
  693. package/native/darwin-arm64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  694. package/native/darwin-arm64/licenses/zerofrom-derive-0.1.8/LICENSE +46 -0
  695. package/native/darwin-arm64/licenses/zeroize-1.9.1/LICENSE-APACHE +202 -0
  696. package/native/darwin-arm64/licenses/zeroize-1.9.1/LICENSE-MIT +25 -0
  697. package/native/darwin-arm64/licenses/zerotrie-0.2.5/LICENSE +46 -0
  698. package/native/darwin-arm64/licenses/zerovec-0.11.9/LICENSE +46 -0
  699. package/native/darwin-arm64/licenses/zerovec-derive-0.11.7/LICENSE +46 -0
  700. package/native/darwin-arm64/licenses/zip-9.3.0/LICENSE +21 -0
  701. package/native/darwin-arm64/licenses/zlib-rs-0.6.8/LICENSE +19 -0
  702. package/native/darwin-arm64/licenses/zmij-1.0.23/LICENSE-MIT +23 -0
  703. package/native/darwin-arm64/licenses/zopfli-0.8.4/COPYING +201 -0
  704. package/native/darwin-arm64/licenses/zstd-0.14.3/LICENSE +28 -0
  705. package/native/darwin-arm64/licenses/zstd-safe-8.2.0/LICENSE +28 -0
  706. package/native/darwin-arm64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE +28 -0
  707. package/native/darwin-arm64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE.BSD-3-Clause +32 -0
  708. package/native/win32-x64/THIRD_PARTY_NOTICES.md +203 -0
  709. package/native/win32-x64/alwith_native_chat.dll +0 -0
  710. package/native/win32-x64/artifact.json +8 -0
  711. package/native/win32-x64/licenses/Inflector-0.11.4/LICENSE.md +22 -0
  712. package/native/win32-x64/licenses/adler32-1.2.0/LICENSE +43 -0
  713. package/native/win32-x64/licenses/aes-0.9.4/LICENSE-APACHE +201 -0
  714. package/native/win32-x64/licenses/aes-0.9.4/LICENSE-MIT +26 -0
  715. package/native/win32-x64/licenses/allocator-api2-0.2.21/LICENSE-APACHE +176 -0
  716. package/native/win32-x64/licenses/allocator-api2-0.2.21/LICENSE-MIT +23 -0
  717. package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  718. package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  719. package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  720. package/native/win32-x64/licenses/autocfg-1.5.1/LICENSE-APACHE +201 -0
  721. package/native/win32-x64/licenses/autocfg-1.5.1/LICENSE-MIT +25 -0
  722. package/native/win32-x64/licenses/aws-lc-rs-1.19.0/LICENSE +202 -0
  723. package/native/win32-x64/licenses/aws-lc-sys-0.47.0/LICENSE +316 -0
  724. package/native/win32-x64/licenses/base64-0.23.1/LICENSE-APACHE +201 -0
  725. package/native/win32-x64/licenses/base64-0.23.1/LICENSE-MIT +21 -0
  726. package/native/win32-x64/licenses/bitflags-2.13.2/LICENSE-APACHE +201 -0
  727. package/native/win32-x64/licenses/bitflags-2.13.2/LICENSE-MIT +25 -0
  728. package/native/win32-x64/licenses/block-buffer-0.12.1/LICENSE-APACHE +201 -0
  729. package/native/win32-x64/licenses/block-buffer-0.12.1/LICENSE-MIT +25 -0
  730. package/native/win32-x64/licenses/bumpalo-3.20.3/LICENSE-APACHE +201 -0
  731. package/native/win32-x64/licenses/bumpalo-3.20.3/LICENSE-MIT +25 -0
  732. package/native/win32-x64/licenses/bytecount-0.6.9/LICENSE.Apache2 +201 -0
  733. package/native/win32-x64/licenses/bytecount-0.6.9/LICENSE.MIT +19 -0
  734. package/native/win32-x64/licenses/bytes-1.12.1/LICENSE +25 -0
  735. package/native/win32-x64/licenses/bzip2-0.6.1/LICENSE-APACHE +201 -0
  736. package/native/win32-x64/licenses/bzip2-0.6.1/LICENSE-MIT +25 -0
  737. package/native/win32-x64/licenses/cc-1.11.0/LICENSE-APACHE +201 -0
  738. package/native/win32-x64/licenses/cc-1.11.0/LICENSE-MIT +25 -0
  739. package/native/win32-x64/licenses/cfg-if-1.0.5/LICENSE-APACHE +201 -0
  740. package/native/win32-x64/licenses/cfg-if-1.0.5/LICENSE-MIT +25 -0
  741. package/native/win32-x64/licenses/cfg_aliases-0.2.2/LICENSE +9 -0
  742. package/native/win32-x64/licenses/chacha20-0.10.2/LICENSE-APACHE +201 -0
  743. package/native/win32-x64/licenses/chacha20-0.10.2/LICENSE-MIT +25 -0
  744. package/native/win32-x64/licenses/chrono-0.4.45/LICENSE.txt +240 -0
  745. package/native/win32-x64/licenses/cipher-0.5.2/LICENSE-APACHE +201 -0
  746. package/native/win32-x64/licenses/cipher-0.5.2/LICENSE-MIT +25 -0
  747. package/native/win32-x64/licenses/cmake-0.1.58/LICENSE-APACHE +201 -0
  748. package/native/win32-x64/licenses/cmake-0.1.58/LICENSE-MIT +25 -0
  749. package/native/win32-x64/licenses/cmov-0.5.4/LICENSE-APACHE +202 -0
  750. package/native/win32-x64/licenses/cmov-0.5.4/LICENSE-MIT +25 -0
  751. package/native/win32-x64/licenses/const-oid-0.10.2/LICENSE-APACHE +201 -0
  752. package/native/win32-x64/licenses/const-oid-0.10.2/LICENSE-MIT +25 -0
  753. package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-APACHE +176 -0
  754. package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-CC0 +121 -0
  755. package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-MIT0 +14 -0
  756. package/native/win32-x64/licenses/cpubits-0.1.1/LICENSE-APACHE +201 -0
  757. package/native/win32-x64/licenses/cpubits-0.1.1/LICENSE-MIT +25 -0
  758. package/native/win32-x64/licenses/cpufeatures-0.3.1/LICENSE-APACHE +201 -0
  759. package/native/win32-x64/licenses/cpufeatures-0.3.1/LICENSE-MIT +25 -0
  760. package/native/win32-x64/licenses/crc32fast-1.5.4/LICENSE-APACHE +202 -0
  761. package/native/win32-x64/licenses/crc32fast-1.5.4/LICENSE-MIT +21 -0
  762. package/native/win32-x64/licenses/crypto-common-0.2.2/LICENSE-APACHE +201 -0
  763. package/native/win32-x64/licenses/crypto-common-0.2.2/LICENSE-MIT +25 -0
  764. package/native/win32-x64/licenses/ctutils-0.4.8/LICENSE-APACHE +202 -0
  765. package/native/win32-x64/licenses/ctutils-0.4.8/LICENSE-MIT +25 -0
  766. package/native/win32-x64/licenses/dary_heap-0.3.9/LICENSE-APACHE +176 -0
  767. package/native/win32-x64/licenses/dary_heap-0.3.9/LICENSE-MIT +23 -0
  768. package/native/win32-x64/licenses/deflate64-0.1.12/LICENSE +24 -0
  769. package/native/win32-x64/licenses/deranged-0.5.9/LICENSE-Apache +202 -0
  770. package/native/win32-x64/licenses/deranged-0.5.9/LICENSE-MIT +19 -0
  771. package/native/win32-x64/licenses/digest-0.11.3/LICENSE-APACHE +201 -0
  772. package/native/win32-x64/licenses/digest-0.11.3/LICENSE-MIT +26 -0
  773. package/native/win32-x64/licenses/displaydoc-0.2.7/LICENSE-APACHE +201 -0
  774. package/native/win32-x64/licenses/displaydoc-0.2.7/LICENSE-MIT +23 -0
  775. package/native/win32-x64/licenses/dunce-1.0.5/LICENSE +121 -0
  776. package/native/win32-x64/licenses/equivalent-1.0.3/LICENSE-APACHE +201 -0
  777. package/native/win32-x64/licenses/equivalent-1.0.3/LICENSE-MIT +25 -0
  778. package/native/win32-x64/licenses/fallible-iterator-0.3.0/LICENSE-APACHE +202 -0
  779. package/native/win32-x64/licenses/fallible-iterator-0.3.0/LICENSE-MIT +19 -0
  780. package/native/win32-x64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-APACHE +202 -0
  781. package/native/win32-x64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-MIT +19 -0
  782. package/native/win32-x64/licenses/fastrand-2.5.0/LICENSE-APACHE +201 -0
  783. package/native/win32-x64/licenses/fastrand-2.5.0/LICENSE-MIT +23 -0
  784. package/native/win32-x64/licenses/find-msvc-tools-0.1.15/LICENSE-APACHE +201 -0
  785. package/native/win32-x64/licenses/find-msvc-tools-0.1.15/LICENSE-MIT +25 -0
  786. package/native/win32-x64/licenses/flate2-1.1.10/LICENSE-APACHE +201 -0
  787. package/native/win32-x64/licenses/flate2-1.1.10/LICENSE-MIT +25 -0
  788. package/native/win32-x64/licenses/foldhash-0.2.0/LICENSE +19 -0
  789. package/native/win32-x64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  790. package/native/win32-x64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  791. package/native/win32-x64/licenses/fs_extra-1.3.0/LICENSE +21 -0
  792. package/native/win32-x64/licenses/futures-channel-0.3.34/LICENSE-APACHE +202 -0
  793. package/native/win32-x64/licenses/futures-channel-0.3.34/LICENSE-MIT +26 -0
  794. package/native/win32-x64/licenses/futures-core-0.3.34/LICENSE-APACHE +202 -0
  795. package/native/win32-x64/licenses/futures-core-0.3.34/LICENSE-MIT +26 -0
  796. package/native/win32-x64/licenses/futures-task-0.3.34/LICENSE-APACHE +202 -0
  797. package/native/win32-x64/licenses/futures-task-0.3.34/LICENSE-MIT +26 -0
  798. package/native/win32-x64/licenses/futures-util-0.3.34/LICENSE-APACHE +202 -0
  799. package/native/win32-x64/licenses/futures-util-0.3.34/LICENSE-MIT +26 -0
  800. package/native/win32-x64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  801. package/native/win32-x64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  802. package/native/win32-x64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  803. package/native/win32-x64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  804. package/native/win32-x64/licenses/hashbrown-0.16.1/LICENSE-APACHE +201 -0
  805. package/native/win32-x64/licenses/hashbrown-0.16.1/LICENSE-MIT +25 -0
  806. package/native/win32-x64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  807. package/native/win32-x64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  808. package/native/win32-x64/licenses/hashlink-0.12.2/LICENSE-APACHE +201 -0
  809. package/native/win32-x64/licenses/hashlink-0.12.2/LICENSE-MIT +26 -0
  810. package/native/win32-x64/licenses/hmac-0.13.0/LICENSE-APACHE +201 -0
  811. package/native/win32-x64/licenses/hmac-0.13.0/LICENSE-MIT +25 -0
  812. package/native/win32-x64/licenses/http-1.5.0/LICENSE-APACHE +201 -0
  813. package/native/win32-x64/licenses/http-1.5.0/LICENSE-MIT +25 -0
  814. package/native/win32-x64/licenses/http-body-1.1.0/LICENSE +25 -0
  815. package/native/win32-x64/licenses/http-body-util-0.1.5/LICENSE +25 -0
  816. package/native/win32-x64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  817. package/native/win32-x64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  818. package/native/win32-x64/licenses/hybrid-array-0.4.15/LICENSE-APACHE +201 -0
  819. package/native/win32-x64/licenses/hybrid-array-0.4.15/LICENSE-MIT +25 -0
  820. package/native/win32-x64/licenses/hyper-1.12.0/LICENSE +19 -0
  821. package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-APACHE +201 -0
  822. package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-ISC +15 -0
  823. package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-MIT +25 -0
  824. package/native/win32-x64/licenses/hyper-util-0.1.21/LICENSE +19 -0
  825. package/native/win32-x64/licenses/icu_collections-2.4.0/LICENSE +46 -0
  826. package/native/win32-x64/licenses/icu_locale_core-2.4.0/LICENSE +46 -0
  827. package/native/win32-x64/licenses/icu_normalizer-2.4.0/LICENSE +46 -0
  828. package/native/win32-x64/licenses/icu_normalizer_data-2.4.0/LICENSE +46 -0
  829. package/native/win32-x64/licenses/icu_properties-2.4.0/LICENSE +46 -0
  830. package/native/win32-x64/licenses/icu_properties_data-2.4.0/LICENSE +46 -0
  831. package/native/win32-x64/licenses/icu_provider-2.4.0/LICENSE +46 -0
  832. package/native/win32-x64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  833. package/native/win32-x64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  834. package/native/win32-x64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  835. package/native/win32-x64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  836. package/native/win32-x64/licenses/include-flate-0.3.5/LICENSE +202 -0
  837. package/native/win32-x64/licenses/include-flate-codegen-0.3.5/LICENSE +202 -0
  838. package/native/win32-x64/licenses/include-flate-compress-0.3.5/LICENSE +202 -0
  839. package/native/win32-x64/licenses/indexmap-2.14.2/LICENSE-APACHE +201 -0
  840. package/native/win32-x64/licenses/indexmap-2.14.2/LICENSE-MIT +25 -0
  841. package/native/win32-x64/licenses/inout-0.2.5/LICENSE-APACHE +201 -0
  842. package/native/win32-x64/licenses/inout-0.2.5/LICENSE-MIT +26 -0
  843. package/native/win32-x64/licenses/ipnet-2.12.2/LICENSE-APACHE +201 -0
  844. package/native/win32-x64/licenses/ipnet-2.12.2/LICENSE-MIT +7 -0
  845. package/native/win32-x64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  846. package/native/win32-x64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  847. package/native/win32-x64/licenses/jieba-macros-0.11.0/LICENSE +22 -0
  848. package/native/win32-x64/licenses/jieba-rs-0.11.0/LICENSE +22 -0
  849. package/native/win32-x64/licenses/jobserver-0.1.35/LICENSE-APACHE +201 -0
  850. package/native/win32-x64/licenses/jobserver-0.1.35/LICENSE-MIT +25 -0
  851. package/native/win32-x64/licenses/libbz2-rs-sys-0.2.6/LICENSE +48 -0
  852. package/native/win32-x64/licenses/libc-0.2.191/LICENSE-APACHE +176 -0
  853. package/native/win32-x64/licenses/libc-0.2.191/LICENSE-MIT +25 -0
  854. package/native/win32-x64/licenses/libflate-2.3.2/LICENSE +21 -0
  855. package/native/win32-x64/licenses/libflate_lz77-2.3.0/LICENSE +21 -0
  856. package/native/win32-x64/licenses/libsqlite3-sys-0.39.1/LICENSE +19 -0
  857. package/native/win32-x64/licenses/litemap-0.8.3/LICENSE +46 -0
  858. package/native/win32-x64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  859. package/native/win32-x64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  860. package/native/win32-x64/licenses/log-0.4.35/LICENSE-APACHE +201 -0
  861. package/native/win32-x64/licenses/log-0.4.35/LICENSE-MIT +25 -0
  862. package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-APACHE +202 -0
  863. package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-MIT +7 -0
  864. package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-ZLIB +19 -0
  865. package/native/win32-x64/licenses/lzma-rust2-0.24.0/LICENSE +201 -0
  866. package/native/win32-x64/licenses/memchr-2.8.3/COPYING +3 -0
  867. package/native/win32-x64/licenses/memchr-2.8.3/LICENSE-MIT +21 -0
  868. package/native/win32-x64/licenses/mio-1.2.4/LICENSE +19 -0
  869. package/native/win32-x64/licenses/no_std_io2-0.9.4/LICENSE-APACHE +202 -0
  870. package/native/win32-x64/licenses/no_std_io2-0.9.4/LICENSE-MIT +19 -0
  871. package/native/win32-x64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  872. package/native/win32-x64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  873. package/native/win32-x64/licenses/num-traits-0.2.19/LICENSE-APACHE +201 -0
  874. package/native/win32-x64/licenses/num-traits-0.2.19/LICENSE-MIT +25 -0
  875. package/native/win32-x64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  876. package/native/win32-x64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  877. package/native/win32-x64/licenses/opencode-ai-models-0.0.124/LICENSE +21 -0
  878. package/native/win32-x64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  879. package/native/win32-x64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  880. package/native/win32-x64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  881. package/native/win32-x64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  882. package/native/win32-x64/licenses/pbkdf2-0.13.0/LICENSE-APACHE +201 -0
  883. package/native/win32-x64/licenses/pbkdf2-0.13.0/LICENSE-MIT +26 -0
  884. package/native/win32-x64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  885. package/native/win32-x64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  886. package/native/win32-x64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  887. package/native/win32-x64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  888. package/native/win32-x64/licenses/pkg-config-0.3.34/LICENSE-APACHE +201 -0
  889. package/native/win32-x64/licenses/pkg-config-0.3.34/LICENSE-MIT +25 -0
  890. package/native/win32-x64/licenses/potential_utf-0.1.6/LICENSE +46 -0
  891. package/native/win32-x64/licenses/powerfmt-0.2.1/LICENSE-Apache +202 -0
  892. package/native/win32-x64/licenses/powerfmt-0.2.1/LICENSE-MIT +19 -0
  893. package/native/win32-x64/licenses/ppmd-rust-1.5.2/LICENSE-CC0.md +119 -0
  894. package/native/win32-x64/licenses/ppmd-rust-1.5.2/LICENSE-MIT-0.md +16 -0
  895. package/native/win32-x64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-APACHE +201 -0
  896. package/native/win32-x64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-MIT +21 -0
  897. package/native/win32-x64/licenses/proc-macro-error3-3.1.1/LICENSE-APACHE +202 -0
  898. package/native/win32-x64/licenses/proc-macro-error3-3.1.1/LICENSE-MIT +22 -0
  899. package/native/win32-x64/licenses/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
  900. package/native/win32-x64/licenses/proc-macro2-1.0.107/LICENSE-MIT +23 -0
  901. package/native/win32-x64/licenses/quinn-0.11.12/LICENSE-APACHE +201 -0
  902. package/native/win32-x64/licenses/quinn-0.11.12/LICENSE-MIT +7 -0
  903. package/native/win32-x64/licenses/quinn-proto-0.11.19/LICENSE-APACHE +201 -0
  904. package/native/win32-x64/licenses/quinn-proto-0.11.19/LICENSE-MIT +7 -0
  905. package/native/win32-x64/licenses/quinn-udp-0.5.16/LICENSE-APACHE +201 -0
  906. package/native/win32-x64/licenses/quinn-udp-0.5.16/LICENSE-MIT +7 -0
  907. package/native/win32-x64/licenses/quote-1.0.47/LICENSE-APACHE +176 -0
  908. package/native/win32-x64/licenses/quote-1.0.47/LICENSE-MIT +23 -0
  909. package/native/win32-x64/licenses/rand-0.10.3/LICENSE-APACHE +176 -0
  910. package/native/win32-x64/licenses/rand-0.10.3/LICENSE-MIT +26 -0
  911. package/native/win32-x64/licenses/rand_core-0.10.1/LICENSE-APACHE +187 -0
  912. package/native/win32-x64/licenses/rand_core-0.10.1/LICENSE-MIT +25 -0
  913. package/native/win32-x64/licenses/rand_pcg-0.10.2/LICENSE-APACHE +187 -0
  914. package/native/win32-x64/licenses/rand_pcg-0.10.2/LICENSE-MIT +26 -0
  915. package/native/win32-x64/licenses/regex-lite-0.1.9/LICENSE-APACHE +201 -0
  916. package/native/win32-x64/licenses/regex-lite-0.1.9/LICENSE-MIT +25 -0
  917. package/native/win32-x64/licenses/reqwest-0.13.5/LICENSE-APACHE +201 -0
  918. package/native/win32-x64/licenses/reqwest-0.13.5/LICENSE-MIT +20 -0
  919. package/native/win32-x64/licenses/rev_lines-0.3.0/LICENSE-MIT +21 -0
  920. package/native/win32-x64/licenses/ring-0.17.14/LICENSE +9 -0
  921. package/native/win32-x64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  922. package/native/win32-x64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  923. package/native/win32-x64/licenses/rle-decode-fast-1.0.3/LICENSE-APACHE +13 -0
  924. package/native/win32-x64/licenses/rle-decode-fast-1.0.3/LICENSE-MIT +19 -0
  925. package/native/win32-x64/licenses/rusqlite-0.41.1/LICENSE +19 -0
  926. package/native/win32-x64/licenses/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
  927. package/native/win32-x64/licenses/rustc-hash-2.1.3/LICENSE-MIT +23 -0
  928. package/native/win32-x64/licenses/rustc_version-0.4.1/LICENSE-APACHE +201 -0
  929. package/native/win32-x64/licenses/rustc_version-0.4.1/LICENSE-MIT +25 -0
  930. package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-APACHE +201 -0
  931. package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-ISC +15 -0
  932. package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-MIT +25 -0
  933. package/native/win32-x64/licenses/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
  934. package/native/win32-x64/licenses/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
  935. package/native/win32-x64/licenses/rustls-platform-verifier-0.7.1/LICENSE-APACHE +201 -0
  936. package/native/win32-x64/licenses/rustls-platform-verifier-0.7.1/LICENSE-MIT +21 -0
  937. package/native/win32-x64/licenses/rustls-webpki-0.103.16/LICENSE +19 -0
  938. package/native/win32-x64/licenses/rustversion-1.0.23/LICENSE-APACHE +176 -0
  939. package/native/win32-x64/licenses/rustversion-1.0.23/LICENSE-MIT +23 -0
  940. package/native/win32-x64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  941. package/native/win32-x64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  942. package/native/win32-x64/licenses/semver-1.0.28/LICENSE-APACHE +176 -0
  943. package/native/win32-x64/licenses/semver-1.0.28/LICENSE-MIT +23 -0
  944. package/native/win32-x64/licenses/serde-1.0.229/LICENSE-APACHE +176 -0
  945. package/native/win32-x64/licenses/serde-1.0.229/LICENSE-MIT +23 -0
  946. package/native/win32-x64/licenses/serde_core-1.0.229/LICENSE-APACHE +176 -0
  947. package/native/win32-x64/licenses/serde_core-1.0.229/LICENSE-MIT +23 -0
  948. package/native/win32-x64/licenses/serde_derive-1.0.229/LICENSE-APACHE +176 -0
  949. package/native/win32-x64/licenses/serde_derive-1.0.229/LICENSE-MIT +23 -0
  950. package/native/win32-x64/licenses/serde_json-1.0.154/LICENSE-APACHE +176 -0
  951. package/native/win32-x64/licenses/serde_json-1.0.154/LICENSE-MIT +23 -0
  952. package/native/win32-x64/licenses/sha1-0.11.0/LICENSE-APACHE +201 -0
  953. package/native/win32-x64/licenses/sha1-0.11.0/LICENSE-MIT +28 -0
  954. package/native/win32-x64/licenses/sha2-0.11.1/LICENSE-APACHE +201 -0
  955. package/native/win32-x64/licenses/sha2-0.11.1/LICENSE-MIT +28 -0
  956. package/native/win32-x64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  957. package/native/win32-x64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  958. package/native/win32-x64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  959. package/native/win32-x64/licenses/slab-0.4.12/LICENSE +25 -0
  960. package/native/win32-x64/licenses/smallvec-1.16.4/LICENSE-APACHE +201 -0
  961. package/native/win32-x64/licenses/smallvec-1.16.4/LICENSE-MIT +25 -0
  962. package/native/win32-x64/licenses/socket2-0.6.5/LICENSE-APACHE +201 -0
  963. package/native/win32-x64/licenses/socket2-0.6.5/LICENSE-MIT +25 -0
  964. package/native/win32-x64/licenses/specta-2.0.0-rc.27/LICENSE +21 -0
  965. package/native/win32-x64/licenses/specta-macros-2.0.0-rc.27/LICENSE +21 -0
  966. package/native/win32-x64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  967. package/native/win32-x64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  968. package/native/win32-x64/licenses/stop-words-0.10.1/LICENSE-APACHE +201 -0
  969. package/native/win32-x64/licenses/stop-words-0.10.1/LICENSE.md +21 -0
  970. package/native/win32-x64/licenses/subtle-2.6.1/LICENSE +29 -0
  971. package/native/win32-x64/licenses/syn-2.0.119/LICENSE-APACHE +176 -0
  972. package/native/win32-x64/licenses/syn-2.0.119/LICENSE-MIT +23 -0
  973. package/native/win32-x64/licenses/syn-3.0.9/LICENSE-APACHE +176 -0
  974. package/native/win32-x64/licenses/syn-3.0.9/LICENSE-MIT +23 -0
  975. package/native/win32-x64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  976. package/native/win32-x64/licenses/synstructure-0.14.0/LICENSE +7 -0
  977. package/native/win32-x64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  978. package/native/win32-x64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  979. package/native/win32-x64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  980. package/native/win32-x64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  981. package/native/win32-x64/licenses/thiserror-2.0.21/LICENSE-APACHE +176 -0
  982. package/native/win32-x64/licenses/thiserror-2.0.21/LICENSE-MIT +23 -0
  983. package/native/win32-x64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  984. package/native/win32-x64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  985. package/native/win32-x64/licenses/thiserror-impl-2.0.21/LICENSE-APACHE +176 -0
  986. package/native/win32-x64/licenses/thiserror-impl-2.0.21/LICENSE-MIT +23 -0
  987. package/native/win32-x64/licenses/time-0.3.55/LICENSE-Apache +177 -0
  988. package/native/win32-x64/licenses/time-0.3.55/LICENSE-MIT +19 -0
  989. package/native/win32-x64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  990. package/native/win32-x64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  991. package/native/win32-x64/licenses/tinystr-0.8.5/LICENSE +46 -0
  992. package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-APACHE.md +202 -0
  993. package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-MIT.md +5 -0
  994. package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-ZLIB.md +11 -0
  995. package/native/win32-x64/licenses/tokio-1.54.1/LICENSE +21 -0
  996. package/native/win32-x64/licenses/tokio-macros-2.7.2/LICENSE +22 -0
  997. package/native/win32-x64/licenses/tokio-rustls-0.26.6/LICENSE-APACHE +201 -0
  998. package/native/win32-x64/licenses/tokio-rustls-0.26.6/LICENSE-MIT +25 -0
  999. package/native/win32-x64/licenses/tower-0.5.3/LICENSE +25 -0
  1000. package/native/win32-x64/licenses/tower-http-0.6.11/LICENSE +25 -0
  1001. package/native/win32-x64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  1002. package/native/win32-x64/licenses/tower-service-0.3.3/LICENSE +25 -0
  1003. package/native/win32-x64/licenses/tracing-0.1.44/LICENSE +25 -0
  1004. package/native/win32-x64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  1005. package/native/win32-x64/licenses/try-lock-0.2.5/LICENSE +21 -0
  1006. package/native/win32-x64/licenses/typed-path-0.13.0/LICENSE-APACHE +176 -0
  1007. package/native/win32-x64/licenses/typed-path-0.13.0/LICENSE-MIT +23 -0
  1008. package/native/win32-x64/licenses/typenum-1.20.1/LICENSE +1 -0
  1009. package/native/win32-x64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  1010. package/native/win32-x64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  1011. package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-APACHE +176 -0
  1012. package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-MIT +23 -0
  1013. package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-UNICODE +39 -0
  1014. package/native/win32-x64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  1015. package/native/win32-x64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  1016. package/native/win32-x64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  1017. package/native/win32-x64/licenses/utf8_iter-1.1.0/LICENSE-APACHE +202 -0
  1018. package/native/win32-x64/licenses/utf8_iter-1.1.0/LICENSE-MIT +25 -0
  1019. package/native/win32-x64/licenses/utf_types-1.0.0/LICENSE-APACHE +202 -0
  1020. package/native/win32-x64/licenses/utf_types-1.0.0/LICENSE-MIT +25 -0
  1021. package/native/win32-x64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  1022. package/native/win32-x64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  1023. package/native/win32-x64/licenses/want-0.3.2/LICENSE +20 -0
  1024. package/native/win32-x64/licenses/windows-link-0.2.1/license-apache-2.0 +201 -0
  1025. package/native/win32-x64/licenses/windows-link-0.2.1/license-mit +21 -0
  1026. package/native/win32-x64/licenses/windows-sys-0.61.2/license-apache-2.0 +201 -0
  1027. package/native/win32-x64/licenses/windows-sys-0.61.2/license-mit +21 -0
  1028. package/native/win32-x64/licenses/writeable-0.6.4/LICENSE +46 -0
  1029. package/native/win32-x64/licenses/yoke-0.8.4/LICENSE +46 -0
  1030. package/native/win32-x64/licenses/yoke-derive-0.8.4/LICENSE +46 -0
  1031. package/native/win32-x64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  1032. package/native/win32-x64/licenses/zerofrom-derive-0.1.8/LICENSE +46 -0
  1033. package/native/win32-x64/licenses/zeroize-1.9.1/LICENSE-APACHE +202 -0
  1034. package/native/win32-x64/licenses/zeroize-1.9.1/LICENSE-MIT +25 -0
  1035. package/native/win32-x64/licenses/zerotrie-0.2.5/LICENSE +46 -0
  1036. package/native/win32-x64/licenses/zerovec-0.11.9/LICENSE +46 -0
  1037. package/native/win32-x64/licenses/zerovec-derive-0.11.7/LICENSE +46 -0
  1038. package/native/win32-x64/licenses/zip-9.3.0/LICENSE +21 -0
  1039. package/native/win32-x64/licenses/zlib-rs-0.6.8/LICENSE +19 -0
  1040. package/native/win32-x64/licenses/zmij-1.0.23/LICENSE-MIT +23 -0
  1041. package/native/win32-x64/licenses/zopfli-0.8.4/COPYING +201 -0
  1042. package/native/win32-x64/licenses/zstd-0.14.3/LICENSE +28 -0
  1043. package/native/win32-x64/licenses/zstd-safe-8.2.0/LICENSE +28 -0
  1044. package/native/win32-x64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE +28 -0
  1045. package/native/win32-x64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE.BSD-3-Clause +32 -0
  1046. package/package.json +32 -19
  1047. package/dist/chunk-0w6g1w1a.js +0 -2
  1048. package/dist/chunk-0wr12bg8.js +0 -2
  1049. package/dist/chunk-3137n54p.js +0 -2
  1050. package/dist/chunk-3jd4dkv4.js +0 -3
  1051. package/dist/chunk-3jw1yt27.js +0 -2
  1052. package/dist/chunk-45542yk3.js +0 -2
  1053. package/dist/chunk-4j2c9r6m.js +0 -2
  1054. package/dist/chunk-4phhhm7t.js +0 -2
  1055. package/dist/chunk-546h1tk7.js +0 -2
  1056. package/dist/chunk-8kwxqckk.js +0 -2
  1057. package/dist/chunk-8qyb69g5.js +0 -2
  1058. package/dist/chunk-8xb3b71p.js +0 -2
  1059. package/dist/chunk-93y78gn4.js +0 -2
  1060. package/dist/chunk-95qfzbmx.js +0 -2
  1061. package/dist/chunk-98cbjkvk.js +0 -4
  1062. package/dist/chunk-bfqqsv6a.js +0 -2
  1063. package/dist/chunk-cd4v63j8.js +0 -2
  1064. package/dist/chunk-d0cb9bks.js +0 -2
  1065. package/dist/chunk-e2q5znh5.js +0 -2
  1066. package/dist/chunk-e43x30mv.js +0 -2
  1067. package/dist/chunk-eg86g265.js +0 -2
  1068. package/dist/chunk-ek4acj2p.js +0 -2
  1069. package/dist/chunk-eqwga6j5.js +0 -2
  1070. package/dist/chunk-famkkndg.js +0 -2
  1071. package/dist/chunk-g7by9ta9.js +0 -2
  1072. package/dist/chunk-gsnqwd84.js +0 -2
  1073. package/dist/chunk-h6jkgcw1.js +0 -2
  1074. package/dist/chunk-hck587pb.js +0 -2
  1075. package/dist/chunk-jrmygc4p.js +0 -2
  1076. package/dist/chunk-jrnfqqfc.js +0 -2
  1077. package/dist/chunk-k2q7wjp6.js +0 -2
  1078. package/dist/chunk-m4eqmf0x.js +0 -5
  1079. package/dist/chunk-pgqsw2sh.js +0 -2
  1080. package/dist/chunk-pym8eb5y.js +0 -2
  1081. package/dist/chunk-qy06pvy8.js +0 -2
  1082. package/dist/chunk-rf5g26qv.js +0 -2
  1083. package/dist/chunk-rfn9vecr.js +0 -2
  1084. package/dist/chunk-srpsc10y.js +0 -2
  1085. package/dist/chunk-szwq5b69.js +0 -2
  1086. package/dist/chunk-t2q8cxnh.js +0 -2
  1087. package/dist/chunk-tjkftq6f.js +0 -2
  1088. package/dist/chunk-tk2471ny.js +0 -2
  1089. package/dist/chunk-v3etjs4w.js +0 -2
  1090. package/dist/chunk-wdrzhaxf.js +0 -2
  1091. package/dist/chunk-x54538jy.js +0 -1
  1092. package/dist/chunk-x68b6rmk.js +0 -2
  1093. package/dist/chunk-z8njjc2c.js +0 -2
  1094. package/rust/Cargo.lock +0 -4318
  1095. package/rust/Cargo.toml +0 -44
  1096. package/rust/build.rs +0 -16
  1097. package/rust/permissions/autogenerated/reference.md +0 -296
  1098. package/rust/permissions/default.toml +0 -20
  1099. package/rust/permissions/schemas/schema.json +0 -263
  1100. package/rust/src/__tests__/native_network.rs +0 -406
  1101. package/rust/src/lib.rs +0 -82
  1102. package/rust/src/native_network.rs +0 -302
  1103. package/rust/src/native_network_diagnostics.rs +0 -220
  1104. package/rust/src/providers/managed.rs +0 -801
  1105. package/rust/src/providers/tests.rs +0 -684
  1106. package/rust/src/providers.rs +0 -984
  1107. package/rust/src/skills.rs +0 -130
  1108. package/rust/src/system_proxy.rs +0 -257
@@ -1,4 +1,4 @@
1
- import{e}from"./chunk-epg5w48v.js";import{kt}from"./chunk-frbakxev.js";import{H,Ue,j,ht}from"./chunk-v3etjs4w.js";import{gt,ft}from"./chunk-pym8eb5y.js";import{CardSendIcon as pe}from"@solar-icons/react/line-duotone/card-send";import{cn as J}from"cn";import{ChevronDownIcon as se,ExternalLinkIcon as ve,EyeIcon as ne,EyeOffIcon as oe,PlusIcon as ge,ServerIcon as ie,Trash2Icon as fe}from"lucide-react";import{useEffect as V,useRef as ye,useState as y}from"react";import{Button as R}from"@nyssance/shadcn/vega/components/ui/button";import{Collapsible as re,CollapsibleContent as ae,CollapsibleTrigger as le}from"@nyssance/shadcn/vega/components/ui/collapsible";import{Field as D,FieldDescription as de,FieldLabel as O}from"@nyssance/shadcn/vega/components/ui/field";import{Input as ee}from"@nyssance/shadcn/vega/components/ui/input";import{InputGroup as q,InputGroupAddon as ce,InputGroupButton as ue,InputGroupInput as Q}from"@nyssance/shadcn/vega/components/ui/input-group";import{Select as be,SelectContent as he,SelectGroup as xe,SelectItem as Ne,SelectTrigger as Pe,SelectValue as Ce}from"@nyssance/shadcn/vega/components/ui/select";import{Separator as X}from"@nyssance/shadcn/vega/components/ui/separator";import{Spinner as Y}from"@nyssance/shadcn/vega/components/ui/spinner";import{Textarea as we}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as t,jsxs as i,Fragment as Se}from"react/jsx-runtime";function W(s){if(s instanceof Error)return s.message;if(typeof s==="object"&&s!==null&&"message"in s)return String(s.message);return String(s)}function Z(){let{host:s}=e();return(d)=>{let u=d instanceof Error?d:Error(W(d));if(s.reportError)s.reportError(u);else console.error(u)}}function On({refreshAccountProviders:s,openTopUp:d,group:u}){let{t:v}=e().host,C=Z(),[S,N]=y(0),[l,n]=y(null),[h,c]=y(!0),w=ye(s);return w.current=s,V(()=>{let b=()=>N((p)=>p+1);return window.addEventListener("focus",b),()=>window.removeEventListener("focus",b)},[]),V(()=>{let b=!0;return c(!0),w.current().then(()=>{if(b)n(null),c(!1)},(p)=>{if(b)n(W(p)),c(!1)}),()=>{b=!1}},[S]),t(u,{children:i("div",{className:"space-y-3 rounded-xl border p-4",children:[i("div",{className:"flex items-center justify-between gap-3",children:[t("h3",{className:"text-sm font-medium",children:"ALwith"}),d&&t(R,{variant:"ghost",size:"icon-sm",className:"text-primary hover:text-primary/80","aria-label":v("provider.managed.topUp"),title:v("provider.managed.topUp"),onClick:()=>{d().catch(C)},children:t(pe,{className:"size-4","aria-hidden":"true"})})]}),t("p",{className:"text-muted-foreground text-xs",children:v("provider.managed.description")}),l!==null&&i("div",{className:"space-y-2",children:[t("p",{role:"alert",className:"text-destructive text-xs",children:l}),i(R,{variant:"outline",size:"sm",disabled:h,onClick:()=>N((b)=>b+1),children:[h&&t(Y,{"aria-hidden":"true"}),v("provider.retry")]})]})]})})}function qi({port:s,bridge:d,group:u,label:v,refreshAccountProviders:C,openTopUp:S}){let{host:N}=e(),{t:l}=N,n=Z(),h=(o)=>N.notify?.(o),c=ft(s,n),w=c?.providers??{},[b,p]=y(null),[x,k]=y(H[0]?.id??""),[F,B]=y(0),[U,A]=y({}),_=async(o,r,f)=>{p(r.id);try{let a=await s.save(o,r.id,f);if(!a.error)A((M)=>{let L={...M};return delete L[r.id],L});if(a.error)n(a.error);if(!a.error)h(l(a.status==="pending"?"provider.pending":f===null?"provider.removed":"provider.saved",{name:r.name}));return a}catch(a){return n(a),null}finally{p(null)}},I=async(o)=>{p(o);try{let r=await s.test(o);if(A((f)=>({...f,[o]:r})),r.ok)h(l("provider.testSuccess",{latency:r.latencyMs??0}));else n(`${l(`provider.testErrors.${r.code}`)}${r.message?`: ${r.message}`:""}`)}catch(r){n(r)}finally{p(null)}},T=async(o,r)=>{p(r.id);try{let f=await s.saveCustom(o,r);if(f.error)n(f.error);else A((a)=>{let M={...a};return delete M[r.id],M}),h(l(f.status==="pending"?"provider.pending":"provider.saved",{name:r.name}));return!f.error}catch(f){return n(f),!1}finally{p(null)}},z=async(o)=>{if(!c)return;p(o.id);try{let r=await s.removeCustom(c.revision,o.id);if(r.error)n(r.error);else k(H[0]?.id??""),h(l(r.status==="pending"?"provider.pending":"provider.removed",{name:o.name}))}catch(r){n(r)}finally{p(null)}},K=async()=>{p("retry");try{let o=await gt(s);if(o.error)n(o.error);else if(o.status==="pending")h(l("provider.pending"))}catch(o){n(o)}finally{p(null)}},P=H.find((o)=>o.id===x)??null,E=c?.customProviders.find((o)=>o.id===x)??null;return V(()=>{if(!c||x==="new"||P||E)return;k(H[0]?.id??"")},[c,x,P,E]),i("div",{className:"flex flex-col gap-6",children:[i(u,{children:[t(v,{children:"Codex"}),t(kt,{bridge:d})]}),C&&t(On,{refreshAccountProviders:C,openTopUp:S,group:u}),c?.status==="pending"&&t("p",{className:"text-muted-foreground text-sm",children:l("provider.pending")}),c?.error&&t("p",{className:"text-destructive text-sm",children:c.error}),c&&c.status!=="applied"&&t(R,{variant:"outline",className:"self-start",disabled:b!==null,onClick:()=>void K(),children:l("provider.retry")}),t(u,{children:c&&i(Se,{children:[t(Un,{activeId:x,keys:w,customProviders:c.customProviders,onSelect:k,onAdd:()=>k("new"),label:v}),H.map((o)=>t("div",{hidden:x!==o.id,children:t(Gn,{provider:o,saved:w[o.id]??null,revision:c.revision,busy:b!==null,onSave:(r,f)=>_(r,o,f),testResult:U[o.id],onTest:()=>I(o.id)})},o.id)),c.customProviders.map((o)=>t("div",{hidden:x!==o.id,children:t(en,{provider:o,revision:c.revision,busy:b!==null,testResult:U[o.id],onTest:()=>I(o.id),onRemove:()=>z(o),onSaved:k,onSave:T})},o.id)),t("div",{hidden:x!=="new",children:t(en,{provider:null,revision:c.revision,busy:b!==null,onSaved:(o)=>{B((r)=>r+1),k(o)},onSave:T},F)})]})})]})}function Un({activeId:s,keys:d,customProviders:u,onSelect:v,onAdd:C,label:S}){let{t:N}=e().host;return i("div",{children:[t(S,{children:N("provider.label")}),i("div",{className:"grid grid-cols-2 gap-2 py-4 sm:grid-cols-3",children:[H.map((l)=>{let n=l.logo,h=d[l.id]!==void 0;return t(te,{id:l.id,name:l.name,active:s===l.id,configured:h,icon:t(n,{className:"size-5 shrink-0"}),onClick:()=>v(l.id)},l.id)}),u.map((l)=>t(te,{id:l.id,name:l.name,active:s===l.id,configured:!0,icon:t(ie,{className:"size-5 shrink-0"}),onClick:()=>v(l.id)},l.id)),i(R,{type:"button",variant:"outline","aria-pressed":s==="new",onClick:C,className:J("h-9 w-full justify-start gap-2 rounded-full px-4",s==="new"&&"bg-accent"),children:[t(ge,{className:"size-4 shrink-0"}),t("span",{className:"truncate",children:N("provider.customButton")})]})]})]})}function te({id:s,name:d,active:u,configured:v,icon:C,onClick:S}){return i(R,{type:"button",variant:"outline","aria-label":d,"aria-pressed":u,onClick:S,className:J("h-9 w-full gap-2 rounded-full px-4",u&&"bg-accent"),children:[C,t("span",{className:"min-w-0 flex-1 truncate text-center",children:d}),t("span",{"data-testid":`${s}-status`,"data-configured":v,"aria-hidden":"true",className:J("size-2 shrink-0 rounded-full",v?"bg-green-500":"bg-muted-foreground/30")})]})}function Bn({result:s}){let{t:d}=e().host;return t("p",{role:"status",className:s.ok?"text-muted-foreground text-xs":"text-destructive text-xs",children:s.ok?d("provider.testSuccess",{latency:s.latencyMs??0}):`${d(`provider.testErrors.${s.code}`)}${s.status?` (HTTP ${s.status})`:""}`})}function me({busy:s,canTest:d,onTest:u,onRemove:v,result:C,children:S}){let{t:N}=e().host;return i("div",{className:"space-y-3 border-t pt-4",children:[C&&t(Bn,{result:C}),u&&t("p",{className:"text-muted-foreground text-xs leading-relaxed",children:N("provider.testDescription")}),i("div",{className:"flex flex-wrap items-center gap-2",children:[v&&i(R,{size:"sm",variant:"destructive",className:"font-normal",disabled:s,onClick:v,children:[t(fe,{className:"size-4"}),N("provider.remove")]}),i("div",{className:"ms-auto flex flex-wrap items-center gap-2",children:[u&&t(R,{size:"sm",variant:"outline",disabled:s||!d,onClick:u,children:N("provider.testButton")}),S]})]})]})}function Gn({provider:s,saved:d,revision:u,busy:v,onSave:C,testResult:S,onTest:N}){let{host:l}=e(),{t:n}=l,h=Z(),[c,w]=y(""),[b,p]=y(!1),[x,k]=y({saved:d,revision:u}),[F,B]=y(j(s,d?.region)?.id),[U,A]=y(d?.base_url??""),_=s.logo,I=d!==null,T=c.trim(),z=ht(s,F),K=F!==j(s,x.saved?.region)?.id,P=U.trim()!==(x.saved?.base_url??"");V(()=>{if(u>x.revision&&T===""&&!K&&!P)k({saved:d,revision:u}),B(j(s,d?.region)?.id),A(d?.base_url??"")},[u,d,s,x.revision,T,K,P]);let E=!v&&(T!==""||K||P),o=`${s.id}-api-key`,r=async(a)=>{let M=c,L=F,m=await C(x.revision,a);if(!m)return;let G=m.providers[s.id]??null;k({saved:G,revision:m.revision}),w((g)=>g===M?"":g),B((g)=>g===L?j(s,G?.region)?.id:g),A((g)=>g===U?G?.base_url??"":g)},f=()=>{if(T===""&&x.saved===null)return;r({...T===""?{}:{apiKey:T},...F===void 0?{}:{region:F},...P?{baseUrl:U.trim()}:{}})};return i("div",{className:"space-y-5 rounded-xl border p-4",children:[i("div",{className:"flex flex-wrap items-center gap-3",children:[t(_,{className:"size-6 shrink-0"}),i("div",{className:"min-w-0 flex-1",children:[t("h3",{className:"text-sm font-medium",children:s.name}),t("div",{className:"text-muted-foreground mt-0.5 text-xs",children:I?n("provider.active",{name:s.name,count:s.models.length}):n("provider.inactive")})]}),s.regions&&i(be,{value:F,onValueChange:(a)=>B(a??s.regions?.[0]?.id),children:[t(Pe,{className:"w-32","aria-label":n("provider.region"),children:t(Ce,{})}),t(he,{align:"start",alignItemWithTrigger:!1,sideOffset:6,className:"max-w-(--available-width) min-w-0 p-1",children:t(xe,{children:s.regions.map((a)=>t(Ne,{value:a.id,children:n(`provider.regions.${a.id}`)},a.id))})})]})]}),t(X,{}),i("section",{className:"space-y-4","aria-labelledby":`${s.id}-connection`,children:[t("h4",{id:`${s.id}-connection`,className:"text-sm font-medium",children:n("provider.connectionSettings")}),i(D,{className:"gap-2",children:[i("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t(O,{htmlFor:o,children:n("provider.apiKey")}),z!==null&&i(R,{type:"button",variant:"link",size:"sm",className:"text-muted-foreground h-auto p-0 text-xs",onClick:()=>{try{l.openLink(z)}catch(a){h(a)}},children:[n("provider.getKey",{name:s.name}),t(ve,{className:"size-3","aria-hidden":"true"})]})]}),i(q,{children:[t(Q,{id:o,type:b?"text":"password",autoComplete:"off",spellCheck:!1,placeholder:I?n("provider.apiKeyKept"):n("provider.apiKeyPlaceholder"),value:c,onChange:(a)=>w(a.target.value),onKeyDown:(a)=>{if(a.key==="Enter"&&E)f()}}),t(ce,{align:"inline-end",children:t(ue,{size:"icon-xs","aria-label":n(b?"provider.hideKey":"provider.showKey"),onClick:()=>p((a)=>!a),children:b?t(ne,{}):t(oe,{})})})]})]}),i(re,{className:"space-y-2",children:[i(le,{render:t(R,{variant:"ghost",size:"sm",className:"group px-2.5"}),children:[n("provider.baseUrl"),t(se,{className:"size-4 transition-transform group-aria-expanded:rotate-180","aria-hidden":"true"})]}),t(ae,{children:i(D,{className:"gap-2",children:[t(O,{htmlFor:`${s.id}-base-url`,className:"sr-only",children:n("provider.baseUrl")}),t(q,{children:t(Q,{id:`${s.id}-base-url`,type:"url",spellCheck:!1,placeholder:j(s,F)?.baseUrl??s.baseUrl,value:U,onChange:(a)=>A(a.target.value)})}),t(de,{className:"text-xs",children:n("provider.baseUrlDescription")})]})})]})]}),t(me,{busy:v,canTest:!E,onTest:I?N:void 0,onRemove:I?()=>void r(null):void 0,result:!E?S:void 0,children:i(R,{size:"sm",disabled:!E,onClick:f,children:[v&&t(Y,{"data-icon":"inline-start"}),n("provider.saveButton")]})})]})}function en({provider:s,revision:d,busy:u,testResult:v,onTest:C,onRemove:S,onSaved:N,onSave:l}){let{t:n}=e().host,[h,c]=y(s?.name??""),[w,b]=y(s?.baseUrl??""),[p,x]=y(""),[k,F]=y(!1),[B,U]=y(s===null),[A,_]=y(s?.models??[]),[I,T]=y(s?JSON.stringify(s.models,null,2):`[
1
+ import{e}from"./chunk-xecs5c6a.js";import{ht}from"./chunk-ggqv2qpg.js";import{B,Ge,q,wt}from"./chunk-07srtfz3.js";import{bt,Ct}from"./chunk-wyjzpncq.js";import{CardSendIcon as pe}from"@solar-icons/react/line-duotone/card-send";import{cn as j}from"cn";import{ChevronDownIcon as se,ExternalLinkIcon as ve,EyeIcon as ne,EyeOffIcon as oe,PlusIcon as ge,ServerIcon as ie,Trash2Icon as fe}from"lucide-react";import{useEffect as V,useRef as ye,useState as y}from"react";import{Button as R}from"@nyssance/shadcn/vega/components/ui/button";import{Collapsible as re,CollapsibleContent as ae,CollapsibleTrigger as le}from"@nyssance/shadcn/vega/components/ui/collapsible";import{Field as O,FieldDescription as de,FieldLabel as _}from"@nyssance/shadcn/vega/components/ui/field";import{Input as ee}from"@nyssance/shadcn/vega/components/ui/input";import{InputGroup as H,InputGroupAddon as ce,InputGroupButton as ue,InputGroupInput as Q}from"@nyssance/shadcn/vega/components/ui/input-group";import{Select as be,SelectContent as he,SelectGroup as xe,SelectItem as Ne,SelectTrigger as Pe,SelectValue as Ce}from"@nyssance/shadcn/vega/components/ui/select";import{Separator as X}from"@nyssance/shadcn/vega/components/ui/separator";import{Spinner as Y}from"@nyssance/shadcn/vega/components/ui/spinner";import{Textarea as we}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as t,jsxs as i,Fragment as Se}from"react/jsx-runtime";function W(s){if(s instanceof Error)return s.message;if(typeof s==="object"&&s!==null&&"message"in s)return String(s.message);return String(s)}function Z(){let{host:s}=e();return(d)=>{let u=d instanceof Error?d:Error(W(d));if(s.reportError)s.reportError(u);else console.error(u)}}function zn({refreshAccountProviders:s,openTopUp:d,group:u}){let{t:v}=e().host,C=Z(),[S,N]=y(0),[l,n]=y(null),[h,c]=y(!0),w=ye(s);return w.current=s,V(()=>{let b=()=>N((p)=>p+1);return window.addEventListener("focus",b),()=>window.removeEventListener("focus",b)},[]),V(()=>{let b=!0;return c(!0),w.current().then(()=>{if(b)n(null),c(!1)},(p)=>{if(b)n(W(p)),c(!1)}),()=>{b=!1}},[S]),t(u,{children:i("div",{className:"space-y-3 rounded-xl border p-4",children:[i("div",{className:"flex items-center justify-between gap-3",children:[t("h3",{className:"text-sm font-medium",children:"ALwith"}),d&&t(R,{variant:"ghost",size:"icon-sm",className:"text-primary hover:text-primary/80","aria-label":v("provider.managed.topUp"),title:v("provider.managed.topUp"),onClick:()=>{d().catch(C)},children:t(pe,{className:"size-4","aria-hidden":"true"})})]}),t("p",{className:"text-muted-foreground text-xs",children:v("provider.managed.description")}),l!==null&&i("div",{className:"space-y-2",children:[t("p",{role:"alert",className:"text-destructive text-xs",children:l}),i(R,{variant:"outline",size:"sm",disabled:h,onClick:()=>N((b)=>b+1),children:[h&&t(Y,{"aria-hidden":"true"}),v("provider.retry")]})]})]})})}function er({port:s,bridge:d,group:u,label:v,refreshAccountProviders:C,openTopUp:S}){let{host:N}=e(),{t:l}=N,n=Z(),h=(o)=>N.notify?.(o),c=Ct(s,n),w=c?.providers??{},[b,p]=y(null),[x,k]=y(B[0]?.id??""),[F,U]=y(0),[z,M]=y({}),J=async(o,r,f)=>{p(r.id);try{let a=await s.save(o,r.id,f);if(!a.error)M((L)=>{let G={...L};return delete G[r.id],G});if(a.error)n(a.error);if(!a.error)h(l(a.status==="pending"?"provider.pending":f===null?"provider.removed":"provider.saved",{name:r.name}));return a}catch(a){return n(a),null}finally{p(null)}},I=async(o)=>{p(o);try{let r=await s.test(o);if(M((f)=>({...f,[o]:r})),r.ok)h(l("provider.testSuccess",{latency:r.latencyMs??0}));else n(`${l(`provider.testErrors.${r.code}`)}${r.message?`: ${r.message}`:""}`)}catch(r){n(r)}finally{p(null)}},T=async(o,r)=>{p(r.id);try{let f=await s.saveCustom(o,r);if(f.error)n(f.error);else M((a)=>{let L={...a};return delete L[r.id],L}),h(l(f.status==="pending"?"provider.pending":"provider.saved",{name:r.name}));return!f.error}catch(f){return n(f),!1}finally{p(null)}},E=async(o)=>{if(!c)return;p(o.id);try{let r=await s.removeCustom(c.revision,o.id);if(r.error)n(r.error);else k(B[0]?.id??""),h(l(r.status==="pending"?"provider.pending":"provider.removed",{name:o.name}))}catch(r){n(r)}finally{p(null)}},K=async()=>{p("retry");try{let o=await bt(s);if(o.error)n(o.error);else if(o.status==="pending")h(l("provider.pending"))}catch(o){n(o)}finally{p(null)}},P=B.find((o)=>o.id===x)??null,A=c?.customProviders.find((o)=>o.id===x)??null;return V(()=>{if(!c||x==="new"||P||A)return;k(B[0]?.id??"")},[c,x,P,A]),i("div",{className:"flex flex-col gap-6",children:[i(u,{children:[t(v,{children:"Codex"}),t(ht,{bridge:d})]}),C&&t(zn,{refreshAccountProviders:C,openTopUp:S,group:u}),c?.status==="pending"&&t("p",{className:"text-muted-foreground text-sm",children:l("provider.pending")}),c?.error&&t("p",{className:"text-destructive text-sm",children:c.error}),c&&c.status!=="applied"&&t(R,{variant:"outline",className:"self-start",disabled:b!==null,onClick:()=>void K(),children:l("provider.retry")}),t(u,{children:c&&i(Se,{children:[t(Vn,{activeId:x,keys:w,customProviders:c.customProviders,onSelect:k,onAdd:()=>k("new"),label:v}),B.map((o)=>t("div",{hidden:x!==o.id,children:t($n,{provider:o,saved:w[o.id]??null,revision:c.revision,busy:b!==null,onSave:(r,f)=>J(r,o,f),testResult:z[o.id],onTest:()=>I(o.id)})},o.id)),c.customProviders.map((o)=>t("div",{hidden:x!==o.id,children:t(tn,{provider:o,revision:c.revision,busy:b!==null,testResult:z[o.id],onTest:()=>I(o.id),onRemove:()=>E(o),onSaved:k,onSave:T})},o.id)),t("div",{hidden:x!=="new",children:t(tn,{provider:null,revision:c.revision,busy:b!==null,onSaved:(o)=>{U((r)=>r+1),k(o)},onSave:T},F)})]})})]})}function Vn({activeId:s,keys:d,customProviders:u,onSelect:v,onAdd:C,label:S}){let{t:N}=e().host;return i("div",{children:[t(S,{children:N("provider.label")}),i("div",{className:"grid grid-cols-2 gap-2 py-4 sm:grid-cols-3",children:[B.map((l)=>{let n=l.logo,h=d[l.id]!==void 0;return t(te,{id:l.id,name:l.name,active:s===l.id,configured:h,icon:t(n,{className:"size-5 shrink-0"}),onClick:()=>v(l.id)},l.id)}),u.map((l)=>t(te,{id:l.id,name:l.name,active:s===l.id,configured:!0,icon:t(ie,{className:"size-5 shrink-0"}),onClick:()=>v(l.id)},l.id)),i(R,{type:"button",variant:"outline","aria-pressed":s==="new",onClick:C,className:j("h-9 w-full justify-start gap-2 rounded-full px-4",s==="new"&&"bg-accent"),children:[t(ge,{className:"size-4 shrink-0"}),t("span",{className:"truncate",children:N("provider.customButton")})]})]})]})}function te({id:s,name:d,active:u,configured:v,icon:C,onClick:S}){return i(R,{type:"button",variant:"outline","aria-label":d,"aria-pressed":u,onClick:S,className:j("h-9 w-full gap-2 rounded-full px-4",u&&"bg-accent"),children:[C,t("span",{className:"min-w-0 flex-1 truncate text-center",children:d}),t("span",{"data-testid":`${s}-status`,"data-configured":v,"aria-hidden":"true",className:j("size-2 shrink-0 rounded-full",v?"bg-green-500":"bg-muted-foreground/30")})]})}function jn({result:s}){let{t:d}=e().host;return t("p",{role:"status",className:s.ok?"text-muted-foreground text-xs":"text-destructive text-xs",children:s.ok?d("provider.testSuccess",{latency:s.latencyMs??0}):`${d(`provider.testErrors.${s.code}`)}${s.status?` (HTTP ${s.status})`:""}`})}function me({busy:s,canTest:d,onTest:u,onRemove:v,result:C,children:S}){let{t:N}=e().host;return i("div",{className:"space-y-3 border-t pt-4",children:[C&&t(jn,{result:C}),u&&t("p",{className:"text-muted-foreground text-xs leading-relaxed",children:N("provider.testDescription")}),i("div",{className:"flex flex-wrap items-center gap-2",children:[v&&i(R,{size:"sm",variant:"destructive",className:"font-normal",disabled:s,onClick:v,children:[t(fe,{className:"size-4"}),N("provider.remove")]}),i("div",{className:"ms-auto flex flex-wrap items-center gap-2",children:[u&&t(R,{size:"sm",variant:"outline",disabled:s||!d,onClick:u,children:N("provider.testButton")}),S]})]})]})}function $n({provider:s,saved:d,revision:u,busy:v,onSave:C,testResult:S,onTest:N}){let{host:l}=e(),{t:n}=l,h=Z(),[c,w]=y(""),[b,p]=y(!1),[x,k]=y({saved:d,revision:u}),[F,U]=y(q(s,d?.region)?.id),[z,M]=y(d?.base_url??""),J=s.logo,I=d!==null,T=c.trim(),E=wt(s,F),K=F!==q(s,x.saved?.region)?.id,P=z.trim()!==(x.saved?.base_url??"");V(()=>{if(u>x.revision&&T===""&&!K&&!P)k({saved:d,revision:u}),U(q(s,d?.region)?.id),M(d?.base_url??"")},[u,d,s,x.revision,T,K,P]);let A=!v&&(T!==""||K||P),o=`${s.id}-api-key`,r=async(a)=>{let L=c,G=F,m=await C(x.revision,a);if(!m)return;let D=m.providers[s.id]??null;k({saved:D,revision:m.revision}),w((g)=>g===L?"":g),U((g)=>g===G?q(s,D?.region)?.id:g),M((g)=>g===z?D?.base_url??"":g)},f=()=>{if(T===""&&x.saved===null)return;r({...T===""?{}:{apiKey:T},...F===void 0?{}:{region:F},...P?{baseUrl:z.trim()}:{}})};return i("div",{className:"space-y-5 rounded-xl border p-4",children:[i("div",{className:"flex flex-wrap items-center gap-3",children:[t(J,{className:"size-6 shrink-0"}),i("div",{className:"min-w-0 flex-1",children:[t("h3",{className:"text-sm font-medium",children:s.name}),t("div",{className:"text-muted-foreground mt-0.5 text-xs",children:I?n("provider.active",{name:s.name,count:s.models.length}):n("provider.inactive")})]}),s.regions&&i(be,{value:F,onValueChange:(a)=>U(a??s.regions?.[0]?.id),children:[t(Pe,{className:"w-32","aria-label":n("provider.region"),children:t(Ce,{})}),t(he,{align:"start",alignItemWithTrigger:!1,sideOffset:6,className:"max-w-(--available-width) min-w-0 p-1",children:t(xe,{children:s.regions.map((a)=>t(Ne,{value:a.id,children:n(`provider.regions.${a.id}`)},a.id))})})]})]}),t(X,{}),i("section",{className:"space-y-4","aria-labelledby":`${s.id}-connection`,children:[t("h4",{id:`${s.id}-connection`,className:"text-sm font-medium",children:n("provider.connectionSettings")}),i(O,{className:"gap-2",children:[i("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t(_,{htmlFor:o,children:n("provider.apiKey")}),E!==null&&i(R,{type:"button",variant:"link",size:"sm",className:"text-muted-foreground h-auto p-0 text-xs",onClick:()=>{try{l.openLink(E)}catch(a){h(a)}},children:[n("provider.getKey",{name:s.name}),t(ve,{className:"size-3","aria-hidden":"true"})]})]}),i(H,{children:[t(Q,{id:o,type:b?"text":"password",autoComplete:"off",spellCheck:!1,placeholder:I?n("provider.apiKeyKept"):n("provider.apiKeyPlaceholder"),value:c,onChange:(a)=>w(a.target.value),onKeyDown:(a)=>{if(a.key==="Enter"&&A)f()}}),t(ce,{align:"inline-end",children:t(ue,{size:"icon-xs","aria-label":n(b?"provider.hideKey":"provider.showKey"),onClick:()=>p((a)=>!a),children:b?t(ne,{}):t(oe,{})})})]})]}),i(re,{className:"space-y-2",children:[i(le,{render:t(R,{variant:"ghost",size:"sm",className:"group px-2.5"}),children:[n("provider.baseUrl"),t(se,{className:"size-4 transition-transform group-aria-expanded:rotate-180","aria-hidden":"true"})]}),t(ae,{children:i(O,{className:"gap-2",children:[t(_,{htmlFor:`${s.id}-base-url`,className:"sr-only",children:n("provider.baseUrl")}),t(H,{children:t(Q,{id:`${s.id}-base-url`,type:"url",spellCheck:!1,placeholder:q(s,F)?.baseUrl??s.baseUrl,value:z,onChange:(a)=>M(a.target.value)})}),t(de,{className:"text-xs",children:n("provider.baseUrlDescription")})]})})]})]}),t(me,{busy:v,canTest:!A,onTest:I?N:void 0,onRemove:I?()=>void r(null):void 0,result:!A?S:void 0,children:i(R,{size:"sm",disabled:!A,onClick:f,children:[v&&t(Y,{"data-icon":"inline-start"}),n("provider.saveButton")]})})]})}function tn({provider:s,revision:d,busy:u,testResult:v,onTest:C,onRemove:S,onSaved:N,onSave:l}){let{t:n}=e().host,[h,c]=y(s?.name??""),[w,b]=y(s?.baseUrl??""),[p,x]=y(""),[k,F]=y(!1),[U,z]=y(s===null),[M,J]=y(s?.models??[]),[I,T]=y(s?JSON.stringify(s.models,null,2):`[
2
2
  { "label": "My Model", "api_id": "model-id" }
3
- ]`),[z,K]=y(null),[P]=y(()=>s?.id??`custom_${crypto.randomUUID().replaceAll("-","")}`),E=`${P}-name`,o=`${P}-base-url`,r=`${P}-api-key`,f=`${P}-models`,a=h.trim()!==s?.name||w.trim()!==s.baseUrl||p.trim()!==""||I!==JSON.stringify(s.models,null,2),M=(m)=>{if(!m)try{_(Ue(I)),K(null)}catch(G){K(W(G));return}U(m)},L=async()=>{let m;try{m=Ue(I),K(null)}catch(g){K(W(g)),U(!0);return}if(await l(d,{id:P,name:h.trim(),baseUrl:w.trim(),models:m,...p.trim()===""?{}:{apiKey:p.trim()}}))c((g)=>g===h?h.trim():g),b((g)=>g===w?w.trim():g),x((g)=>g===p?"":g),T((g)=>g===I?JSON.stringify(m,null,2):g),N(P)};return i("div",{className:"space-y-5 rounded-xl border p-4",children:[i("div",{className:"flex items-center gap-3",children:[t(ie,{className:"size-6 shrink-0"}),i("div",{className:"min-w-0 flex-1",children:[t("h3",{className:"text-sm font-medium break-words",children:s?.name||n("provider.addCustom")}),t("div",{className:"text-muted-foreground mt-0.5 text-xs",children:n("provider.customDescription")})]}),s&&t("span",{className:"text-muted-foreground shrink-0 text-xs",children:n("provider.configured")})]}),t(X,{}),i("section",{className:"space-y-4","aria-labelledby":`${P}-connection`,children:[t("h4",{id:`${P}-connection`,className:"text-sm font-medium",children:n("provider.connectionSettings")}),i(D,{className:"gap-2",children:[t(O,{htmlFor:E,children:n("provider.name")}),t(ee,{id:E,value:h,onChange:(m)=>c(m.target.value)})]}),i(D,{className:"gap-2",children:[t(O,{htmlFor:o,children:n("provider.baseUrl")}),t(ee,{id:o,type:"url",placeholder:"https://.../v1",value:w,onChange:(m)=>b(m.target.value)})]}),i(D,{className:"gap-2",children:[t(O,{htmlFor:r,children:n("provider.apiKey")}),i(q,{children:[t(Q,{id:r,type:k?"text":"password",autoComplete:"off",placeholder:s?n("provider.apiKeyKept"):n("provider.apiKeyPlaceholder"),value:p,onChange:(m)=>x(m.target.value)}),t(ce,{align:"inline-end",children:t(ue,{size:"icon-xs","aria-label":n(k?"provider.hideKey":"provider.showKey"),onClick:()=>F((m)=>!m),children:k?t(ne,{}):t(oe,{})})})]})]})]}),t(X,{}),i(re,{open:B,onOpenChange:M,className:"space-y-3",children:[i("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t("h4",{className:"text-sm font-medium",children:n("provider.models")}),i(le,{render:t(R,{variant:"ghost",size:"sm"}),children:[n(B?"provider.previewModels":"provider.editModels"),t(se,{className:J("size-4",B&&"rotate-180")})]})]}),!B&&t("ul",{className:"bg-muted/40 divide-y rounded-lg px-3",children:A.map((m)=>i("li",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 py-2.5 text-sm",children:[t("span",{className:"break-all",children:m.label}),t("span",{className:"text-muted-foreground font-mono text-xs break-all",children:m.api_id})]},m.api_id))}),t(ae,{children:i(D,{className:"gap-2","data-invalid":z!==null,children:[t(O,{htmlFor:f,children:n("provider.modelsJson")}),t(we,{id:f,"aria-invalid":z!==null,"aria-describedby":`${f}-description`,spellCheck:!1,className:"min-h-44 font-mono text-xs",value:I,onChange:(m)=>{T(m.target.value),K(null)}}),t(de,{id:`${f}-description`,className:J("text-xs",z&&"text-destructive"),role:z?"alert":void 0,children:z??n("provider.modelsJsonDescription")})]})})]}),t(me,{busy:u,canTest:!a,onTest:s?C:void 0,onRemove:s?S:void 0,result:!a?v:void 0,children:i(R,{size:"sm",disabled:u||!a||h.trim()===""||w.trim()===""||!s&&p.trim()==="",onClick:()=>void L(),children:[u&&t(Y,{"data-icon":"inline-start"}),n("provider.saveButton")]})})]})}
4
- export{On,qi,Un,Bn,Gn,en};
3
+ ]`),[E,K]=y(null),[P]=y(()=>s?.id??`custom_${crypto.randomUUID().replaceAll("-","")}`),A=`${P}-name`,o=`${P}-base-url`,r=`${P}-api-key`,f=`${P}-models`,a=h.trim()!==s?.name||w.trim()!==s.baseUrl||p.trim()!==""||I!==JSON.stringify(s.models,null,2),L=(m)=>{if(!m)try{J(Ge(I)),K(null)}catch(D){K(W(D));return}z(m)},G=async()=>{let m;try{m=Ge(I),K(null)}catch(g){K(W(g)),z(!0);return}if(await l(d,{id:P,name:h.trim(),baseUrl:w.trim(),models:m,...p.trim()===""?{}:{apiKey:p.trim()}}))c((g)=>g===h?h.trim():g),b((g)=>g===w?w.trim():g),x((g)=>g===p?"":g),T((g)=>g===I?JSON.stringify(m,null,2):g),N(P)};return i("div",{className:"space-y-5 rounded-xl border p-4",children:[i("div",{className:"flex items-center gap-3",children:[t(ie,{className:"size-6 shrink-0"}),i("div",{className:"min-w-0 flex-1",children:[t("h3",{className:"text-sm font-medium break-words",children:s?.name||n("provider.addCustom")}),t("div",{className:"text-muted-foreground mt-0.5 text-xs",children:n("provider.customDescription")})]}),s&&t("span",{className:"text-muted-foreground shrink-0 text-xs",children:n("provider.configured")})]}),t(X,{}),i("section",{className:"space-y-4","aria-labelledby":`${P}-connection`,children:[t("h4",{id:`${P}-connection`,className:"text-sm font-medium",children:n("provider.connectionSettings")}),i(O,{className:"gap-2",children:[t(_,{htmlFor:A,children:n("provider.name")}),t(ee,{id:A,value:h,onChange:(m)=>c(m.target.value)})]}),i(O,{className:"gap-2",children:[t(_,{htmlFor:o,children:n("provider.baseUrl")}),t(ee,{id:o,type:"url",placeholder:"https://.../v1",value:w,onChange:(m)=>b(m.target.value)})]}),i(O,{className:"gap-2",children:[t(_,{htmlFor:r,children:n("provider.apiKey")}),i(H,{children:[t(Q,{id:r,type:k?"text":"password",autoComplete:"off",placeholder:s?n("provider.apiKeyKept"):n("provider.apiKeyPlaceholder"),value:p,onChange:(m)=>x(m.target.value)}),t(ce,{align:"inline-end",children:t(ue,{size:"icon-xs","aria-label":n(k?"provider.hideKey":"provider.showKey"),onClick:()=>F((m)=>!m),children:k?t(ne,{}):t(oe,{})})})]})]})]}),t(X,{}),i(re,{open:U,onOpenChange:L,className:"space-y-3",children:[i("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t("h4",{className:"text-sm font-medium",children:n("provider.models")}),i(le,{render:t(R,{variant:"ghost",size:"sm"}),children:[n(U?"provider.previewModels":"provider.editModels"),t(se,{className:j("size-4",U&&"rotate-180")})]})]}),!U&&t("ul",{className:"bg-muted/40 divide-y rounded-lg px-3",children:M.map((m)=>i("li",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 py-2.5 text-sm",children:[t("span",{className:"break-all",children:m.label}),t("span",{className:"text-muted-foreground font-mono text-xs break-all",children:m.api_id})]},m.api_id))}),t(ae,{children:i(O,{className:"gap-2","data-invalid":E!==null,children:[t(_,{htmlFor:f,children:n("provider.modelsJson")}),t(we,{id:f,"aria-invalid":E!==null,"aria-describedby":`${f}-description`,spellCheck:!1,className:"min-h-44 font-mono text-xs",value:I,onChange:(m)=>{T(m.target.value),K(null)}}),t(de,{id:`${f}-description`,className:j("text-xs",E&&"text-destructive"),role:E?"alert":void 0,children:E??n("provider.modelsJsonDescription")})]})})]}),t(me,{busy:u,canTest:!a,onTest:s?C:void 0,onRemove:s?S:void 0,result:!a?v:void 0,children:i(R,{size:"sm",disabled:u||!a||h.trim()===""||w.trim()===""||!s&&p.trim()==="",onClick:()=>void G(),children:[u&&t(Y,{"data-icon":"inline-start"}),n("provider.saveButton")]})})]})}
4
+ export{zn,er,Vn,jn,$n,tn};
@@ -0,0 +1,2 @@
1
+ function*Dn(n,e){if(e.length===0)return;let r=new RegExp(e.replaceAll(/[.*+?^{}()|[\]\\$]/g,String.raw`\$&`),"giu");for(let t of n.matchAll(r))yield{start:t.index,end:t.index+t[0].length}}function Vi(n,e){if(e.length===0)return[];let r=[];for(let{turnKey:t,segments:o}of n){let c=0;for(let s of o)for(let a of Dn(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
2
+ export{Dn,Vi};
@@ -1,2 +1,2 @@
1
- function ri(r,e){if(!e.running)return{kind:"idle"};if(e.blocked)return{kind:"waiting"};if(e.retrying)return{kind:"retrying"};let t=r.findLast((i)=>i.kind==="tool"&&i.active);if(t)return{kind:"tool",ownerKey:t.key};let n=r.findLast((i)=>i.kind!=="user");if(n?.active){if(n.kind==="answer")return{kind:"speaking",ownerKey:n.key};if(n.kind==="text")return{kind:"speaking",ownerKey:n.key};if(n.kind==="reasoning")return{kind:"reasoning",ownerKey:n.key};if(n.kind==="plan")return{kind:"planning",ownerKey:n.key};if(n.kind==="compaction")return{kind:"tool",ownerKey:n.key}}if(n?.kind==="answer")return{kind:"idle"};return{kind:"working",ownerKey:n?.key}}
2
- export{ri};
1
+ function fi(r,e){if(!e.running)return{kind:"idle"};if(e.blocked)return{kind:"waiting"};if(e.retrying)return{kind:"retrying"};let t=r.findLast((i)=>i.kind==="tool"&&i.active);if(t)return{kind:"tool",ownerKey:t.key};let n=r.findLast((i)=>i.kind!=="user");if(n?.active){if(n.kind==="answer")return{kind:"speaking",ownerKey:n.key};if(n.kind==="text")return{kind:"speaking",ownerKey:n.key};if(n.kind==="reasoning")return{kind:"reasoning",ownerKey:n.key};if(n.kind==="plan")return{kind:"planning",ownerKey:n.key};if(n.kind==="compaction")return{kind:"tool",ownerKey:n.key}}if(n?.kind==="answer")return{kind:"idle"};return{kind:"working",ownerKey:n?.key}}
2
+ export{fi};
@@ -0,0 +1,2 @@
1
+ import{ge}from"./chunk-9k4f13c1.js";import{Kbd as i}from"@nyssance/shadcn/vega/components/ui/kbd";import{Tooltip as p,TooltipContent as l,TooltipTrigger as a}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as r,jsxs as e,Fragment as c}from"react/jsx-runtime";function no({shortcut:t,...o}){return t?r(i,{"aria-hidden":"true",...o,children:ge(t)}):null}function oo({label:t,shortcut:o}){return e(c,{children:[r("span",{className:"min-w-0",children:t}),r(no,{className:"shrink-0",shortcut:o,"aria-hidden":"false"})]})}function Nt({label:t,shortcut:o,children:n}){return e(p,{children:[r(a,{render:n}),r(l,{role:"tooltip",children:o?r(oo,{label:t,shortcut:o}):t})]})}
2
+ export{no,oo,Nt};
@@ -0,0 +1,2 @@
1
+ import{un}from"./chunk-m33eg346.js";import{_}from"./chunk-4jh2wk80.js";import{cn as r}from"cn";import{ArrowUpRight as pe,ChevronUp as H,Loader2Icon as W,Zap as Z}from"lucide-react";import{Fragment as ce,useState as q}from"react";import{Button as A}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as J,DropdownMenuCheckboxItem as K,DropdownMenuContent as Q,DropdownMenuGroup as D,DropdownMenuItem as y,DropdownMenuLabel as L,DropdownMenuSeparator as u,DropdownMenuSub as S,DropdownMenuSubContent as T,DropdownMenuSubTrigger as C,DropdownMenuTrigger as X}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Switch as he}from"@nyssance/shadcn/vega/components/ui/switch";import{Tooltip as Y,TooltipContent as E,TooltipTrigger as ee}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as e,jsxs as a,Fragment as p}from"react/jsx-runtime";function Po({value:c,onChange:ne,models:x,modelGroups:O,compactCatalog:o,catalogHeight:ae="fixed",effortPresentation:j="slider",unavailableEffort:v,providerMenu:h,header:w,className:B,condensed:V,stripLabelPrefix:z,showDescription:se,showModelList:ie=!0,loading:oe,switching:G,isLoading:te,effortConfig:s,booleanOptions:k,onBooleanChange:R,selectOptions:le=[],t:m,...d}){let[de,re]=q(!1),[me,ue]=q(!1),l=k?.find((n)=>n.id==="fast_mode"),I=o?k?.filter((n)=>n!==l):k,P=(n)=>z&&n.startsWith(z)?n.slice(z.length):n;if(oe)return e("div",{className:"inline-flex min-w-0 items-center gap-1.5",children:a(A,{variant:"ghost",disabled:!0,className:r("h-7 min-w-0 shrink gap-1.5 rounded-md px-2 text-xs font-normal",B),children:[e(W,{className:"size-3 animate-spin"}),e("span",{className:"text-muted-foreground truncate",children:m("model.loadingModels")})]})});return a("div",{className:"inline-flex min-w-0 items-center gap-1.5",children:[h&&a(J,{open:de,onOpenChange:re,children:[a(Y,{children:[e(ee,{render:e(X,{render:a(A,{"data-testid":"provider-trigger",variant:"ghost",disabled:d.disabled,className:r("h-7 shrink-0 gap-1 rounded-md px-1.5","hover:bg-accent"),children:[h.icon,e(H,{className:"size-2.5 shrink-0 opacity-60"})]})})}),e(E,{children:m("model.switchProvider")})]}),a(Q,{side:"top",align:"end",sideOffset:4,className:"z-100 min-w-[10rem]",children:[h.groups.map((n,t)=>a(ce,{children:[t>0&&n.length>0&&e(u,{}),e(_,{value:h.value,onValueChange:h.onChange,options:n})]},t)),h.moreAction&&a(p,{children:[e(u,{}),a(y,{onClick:h.moreAction,className:"whitespace-nowrap",children:[e("span",{className:"min-w-0 flex-1 truncate",children:m("model.moreModels")}),e(pe,{className:"size-4"})]})]})]})]}),a(J,{open:me,onOpenChange:ue,children:[a(Y,{children:[e(ee,{render:e(X,{render:a(A,{"data-testid":"model-trigger","aria-busy":G,variant:"ghost",className:r("h-7 gap-1.5 rounded-md px-2 text-xs font-normal","hover:bg-accent","max-w-full min-w-0 shrink",V&&"h-7 gap-1 px-1.5 text-[11px]",B),...d,children:[c.icon,k?.some((n)=>n.id==="fast_mode"&&n.currentValue&&!n.disabled)&&e(Z,{"aria-hidden":"true",className:"size-3 shrink-0 fill-current"}),e("span",{className:r("min-w-0 flex-1 truncate text-start",V&&"text-[11px]"),children:P(c.label)||m("model.selectModel")}),s&&a("span",{className:"text-muted-foreground grid shrink-0 justify-items-center",children:[e("span",{className:"invisible col-start-1 row-start-1",children:s.sizer??s.levels.reduce((n,t)=>t.name.length>n.length?t.name:n,"")}),e("span",{className:"col-start-1 row-start-1",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),G?e(W,{"data-testid":"model-switch-loading",className:"size-3 shrink-0 animate-spin"}):e(H,{className:r("size-3 shrink-0",V&&"size-2.5")})]})})}),e(E,{children:m("model.switchModel")})]}),a(Q,{side:"top",align:"end",sideOffset:4,className:r("z-100 w-auto max-w-[min(24rem,calc(100vw-1rem))] min-w-[14rem]",o&&"flex w-80 min-w-0 flex-col overflow-hidden rounded-xl p-1.5",o&&(ae==="content"?"max-h-[min(350px,var(--available-height))]":"h-[350px]")),children:[o&&a(p,{children:[a(D,{"data-model-menu-header":!0,className:"flex shrink-0 items-center justify-between gap-2 px-2 py-1",children:[s?j==="slider"?e("div",{role:"menuitem","aria-label":s.name,className:"min-w-0 flex-1 [&>div]:justify-between [&>div]:gap-3 [&>div]:px-0 [&>div]:py-1.5",children:e(un,{...s,disabled:d.disabled})}):a(S,{children:[a(C,{disabled:d.disabled,className:"h-8 min-w-0 flex-1 gap-2 rounded-md",children:[e("span",{children:s.name}),e("span",{className:"text-muted-foreground min-w-0 truncate text-xs",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),e(T,{children:e(_,{value:s.value,onValueChange:s.onChange,options:s.levels.map((n)=>({value:n.value,label:n.name}))})})]}):v?a(y,{disabled:!0,className:"h-8 min-w-0 flex-1 gap-2",children:[e("span",{children:v.name}),e("span",{className:"text-muted-foreground truncate text-xs",children:v.label})]}):e(L,{className:"min-w-0 flex-1 truncate",children:w?.name}),l&&e(K,{"aria-label":l.name,title:l.title??l.name,disabled:d.disabled||l.disabled,checked:l.currentValue,closeOnClick:!1,onCheckedChange:(n)=>R?.(l.id,n),className:r("hover:bg-accent focus:hover:bg-accent focus-visible:bg-accent ms-auto -me-2 size-8 shrink-0 justify-center rounded-md p-0 focus:bg-transparent [&_[data-slot=dropdown-menu-checkbox-item-indicator]]:hidden",l.currentValue&&!l.disabled?"text-foreground [&_svg]:fill-current":"text-muted-foreground"),children:l.icon??e(Z,{className:"size-4","aria-hidden":"true"})})]}),e(u,{className:"shrink-0"})]}),w&&!o&&a(p,{children:[a("div",{className:"flex items-center gap-2 px-2 py-2",children:[w.icon,e("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:w.name}),w.action]}),e(u,{})]}),a(D,{"data-model-menu-list":o?"":void 0,className:o?"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain":void 0,children:[ie&&(te?e(y,{disabled:!0,className:"text-muted-foreground",children:m("model.loadingModels")}):x.length===0?e(y,{disabled:!0,className:"text-muted-foreground",children:m("model.noModelsAvailable")}):(()=>{let n=x.filter((i)=>!i.more),t=x.filter((i)=>i.more),F=n.length>0&&t.length>0,N=(i,g)=>({disabled:d.disabled,icon:i.icon,value:i.api_id,label:P(i.label),description:g?.noDescription?void 0:se?i.description:void 0}),M=(i)=>{let g=x.find((f)=>f.api_id===i);if(g)ne(g)};if(o)return e(_,{value:c.api_id,onValueChange:M,itemClassName:"min-w-0 max-w-full font-normal whitespace-nowrap",options:x.map((i)=>N(i))});return a(p,{children:[O?O.map((i)=>{let g=i.models.filter((b)=>!b.more),f=i.models.filter((b)=>b.more),U=g.length>0&&f.length>0;return a(D,{children:[e(L,{className:"text-muted-foreground text-xs font-normal",children:i.name}),e(_,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:(U?g:i.models).map((b)=>N(b))}),U&&a(S,{children:[e(C,{className:"font-medium whitespace-nowrap",children:m("model.moreModels")}),e(T,{children:e(_,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:f.map((b)=>N(b,{noDescription:!0}))})})]})]},i.id)}):e(_,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:(F?n:x).map((i)=>N(i))}),!O&&F&&a(S,{children:[e(C,{className:"font-medium whitespace-nowrap",children:m("model.moreModels")}),e(T,{children:e(_,{value:c.api_id,onValueChange:M,itemClassName:"font-medium whitespace-nowrap",options:t.map((i)=>N(i,{noDescription:!0}))})})]})]})})()),!o&&s&&a(p,{children:[e(u,{}),j==="menu"?a(S,{children:[a(C,{disabled:d.disabled,children:[e("span",{className:"flex-1",children:s.name}),e("span",{className:"text-muted-foreground",children:s.levels.find((n)=>n.value===s.value)?.name??s.value})]}),e(T,{children:e(_,{value:s.value,onValueChange:s.onChange,options:s.levels.map((n)=>({value:n.value,label:n.name}))})})]}):e(un,{...s,disabled:d.disabled})]}),!o&&!s&&v&&a(p,{children:[e(u,{}),a(y,{disabled:!0,children:[e("span",{className:"flex-1",children:v.name}),e("span",{children:v.label})]})]}),le.map((n)=>a(D,{children:[e(u,{}),e(L,{children:n.name}),e(_,{value:n.value,onValueChange:n.onChange,options:n.options,itemClassName:"whitespace-nowrap"})]},n.id)),I&&I.length>0&&a(p,{children:[!s&&e(u,{}),I.map((n)=>o?a(K,{"aria-label":n.name,title:n.title,disabled:d.disabled||n.disabled,checked:n.currentValue,closeOnClick:!1,onCheckedChange:(t)=>R?.(n.id,t),className:"justify-between gap-3 py-2.5 pr-2 [&_[data-slot=dropdown-menu-checkbox-item-indicator]]:hidden",children:[a("span",{className:"flex items-center gap-2",children:[n.icon,n.name]}),e("span",{"aria-hidden":"true",className:r("flex h-[18px] w-8 shrink-0 items-center rounded-full p-0.5",n.currentValue?"bg-primary":"bg-input"),children:e("span",{className:r("bg-background size-3.5 rounded-full shadow-xs transition-transform",n.currentValue&&"translate-x-3.5")})})]},n.id):a("div",{title:n.title,className:r("flex items-center justify-between gap-3 px-2 py-2.5",n.disabled&&"opacity-50"),children:[a("span",{className:"flex items-center gap-2 text-sm font-medium",children:[n.icon,n.name]}),e(he,{"aria-label":n.name,disabled:d.disabled||n.disabled,checked:n.currentValue,onCheckedChange:(t)=>R?.(n.id,t)})]},n.id))]})]}),o&&w?.action&&a(p,{children:[e(u,{className:"shrink-0"}),e(D,{"data-model-menu-footer":!0,className:"shrink-0",children:w.action})]})]})]})]})}
2
+ export{Po};
@@ -1,2 +1,2 @@
1
- import{ln,vo}from"./chunk-secfh4re.js";function c(t){return{key:t.name,label:t.name,description:t.description??void 0,payload:t.name}}function an(t,s,o=50){let i=new Set,r=t.filter((n)=>{if(i.has(n.name))return!1;return i.add(n.name),!0});if(!s)return r.slice(0,o).map(c);let l=s.toLowerCase(),e=[];for(let n of r){let a=ln(n.name,s);if(a)e.push({c:n,score:a.score});else if(n.description?.toLowerCase().includes(l))e.push({c:n,score:-1})}return e.sort((n,a)=>a.score-n.score),e.slice(0,o).map((n)=>c(n.c))}function Jr(t,s,o,i=50){let r=o?`${o.replace(/\/$/,"")}/`:"",l=t.map((e)=>({abs:e,rel:r&&e.startsWith(r)?e.slice(r.length):e}));return vo(l,s,(e)=>e.rel,i).map(({item:e})=>({key:e.abs,label:e.rel,payload:e.abs}))}
2
- export{an,Jr};
1
+ import{dn,wo}from"./chunk-6d5c94rn.js";function c(t){return{key:t.name,label:t.name,description:t.description??void 0,payload:t.name}}function cn(t,s,o=50){let i=new Set,r=t.filter((n)=>{if(i.has(n.name))return!1;return i.add(n.name),!0});if(!s)return r.slice(0,o).map(c);let l=s.toLowerCase(),e=[];for(let n of r){let a=dn(n.name,s);if(a)e.push({c:n,score:a.score});else if(n.description?.toLowerCase().includes(l))e.push({c:n,score:-1})}return e.sort((n,a)=>a.score-n.score),e.slice(0,o).map((n)=>c(n.c))}function ca(t,s,o,i=50){let r=o?`${o.replace(/\/$/,"")}/`:"",l=t.map((e)=>({abs:e,rel:r&&e.startsWith(r)?e.slice(r.length):e}));return wo(l,s,(e)=>e.rel,i).map(({item:e})=>({key:e.abs,label:e.rel,payload:e.abs}))}
2
+ export{cn,ca};
@@ -1,2 +1,2 @@
1
- var t=new Map;var a=0;function kn(e,n){let r=n?void 0:t.get(e);if(r===void 0)return null;return t.delete(e),t.set(e,r),{...r,tokens:structuredClone(r.tokens)}}function c(e){if(e.isStreaming||e.text.length>1048576)return;if(t.delete(e.text))a-=e.text.length;t.set(e.text,{...e,tokens:structuredClone(e.tokens)}),a+=e.text.length;while(a>2097152||t.size>200){let n=t.keys().next().value;a-=n.length,t.delete(n)}}class l{worker=new Worker(new URL("@alwith/module-chat/markdown-parser.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(e)=>{let n=e.data,r=this.active;if(n.clientId!==r?.clientId||n.revision!==r.revision){this.fail(Error("Markdown worker returned an unexpected request"));return}if(this.active=null,!n.ok){this.fail(Error(n.error));return}let i={...r.input,tokens:n.tokens};c(i);let s=this.clients.get(r.clientId),o=this.pending.get(r.clientId),u=o!==void 0&&r.input.isStreaming&&o.input.isStreaming&&o.input.text.startsWith(r.input.text);if(s!==void 0&&(s.revision===r.revision||u))s.onResult(i);this.dispatch()},this.worker.onerror=(e)=>this.fail(Error(e.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize Markdown parsing result"))}fail(e){this.failure=e,this.worker.terminate(),this.pending.clear(),this.active=null;for(let n of this.clients.values())n.onError(e)}send(e){try{this.worker.postMessage(e)}catch(n){this.fail(n instanceof Error?n:Error(String(n)))}}dispatch(){if(this.active!==null||this.pending.size===0)return;let e=this.pending.values().next().value;this.pending.delete(e.clientId),this.active=e,this.send({type:"parse",clientId:e.clientId,revision:e.revision,source:e.input.source})}connect(e,n){if(this.failure!==null)throw this.failure;let r=++this.nextClientId,i={revision:0,onResult:e,onError:n};return this.clients.set(r,i),{update:(s)=>{if(this.failure!==null)throw this.failure;i.revision+=1;let o=kn(s.text,s.isStreaming);if(o!==null){this.pending.delete(r),i.onResult(o);return}this.pending.set(r,{clientId:r,revision:i.revision,input:s}),this.dispatch()},dispose:()=>{if(!this.clients.delete(r))return;if(this.pending.delete(r),this.clients.size===0)this.worker.terminate(),d=void 0;else if(this.failure===null)this.send({type:"dispose",clientId:r})}}}}var d;function bi(e,n){return d??=new l,d.connect(e,n)}
2
- export{kn,bi};
1
+ var t=new Map;var a=0;function Nn(e,n){let r=n?void 0:t.get(e);if(r===void 0)return null;return t.delete(e),t.set(e,r),{...r,tokens:structuredClone(r.tokens)}}function c(e){if(e.isStreaming||e.text.length>1048576)return;if(t.delete(e.text))a-=e.text.length;t.set(e.text,{...e,tokens:structuredClone(e.tokens)}),a+=e.text.length;while(a>2097152||t.size>200){let n=t.keys().next().value;a-=n.length,t.delete(n)}}class l{worker=new Worker(new URL("@alwith/module-chat/markdown-parser.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(e)=>{let n=e.data,r=this.active;if(n.clientId!==r?.clientId||n.revision!==r.revision){this.fail(Error("Markdown worker returned an unexpected request"));return}if(this.active=null,!n.ok){this.fail(Error(n.error));return}let i={...r.input,tokens:n.tokens};c(i);let s=this.clients.get(r.clientId),o=this.pending.get(r.clientId),u=o!==void 0&&r.input.isStreaming&&o.input.isStreaming&&o.input.text.startsWith(r.input.text);if(s!==void 0&&(s.revision===r.revision||u))s.onResult(i);this.dispatch()},this.worker.onerror=(e)=>this.fail(Error(e.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize Markdown parsing result"))}fail(e){this.failure=e,this.worker.terminate(),this.pending.clear(),this.active=null;for(let n of this.clients.values())n.onError(e)}send(e){try{this.worker.postMessage(e)}catch(n){this.fail(n instanceof Error?n:Error(String(n)))}}dispatch(){if(this.active!==null||this.pending.size===0)return;let e=this.pending.values().next().value;this.pending.delete(e.clientId),this.active=e,this.send({type:"parse",clientId:e.clientId,revision:e.revision,source:e.input.source})}connect(e,n){if(this.failure!==null)throw this.failure;let r=++this.nextClientId,i={revision:0,onResult:e,onError:n};return this.clients.set(r,i),{update:(s)=>{if(this.failure!==null)throw this.failure;i.revision+=1;let o=Nn(s.text,s.isStreaming);if(o!==null){this.pending.delete(r),i.onResult(o);return}this.pending.set(r,{clientId:r,revision:i.revision,input:s}),this.dispatch()},dispose:()=>{if(!this.clients.delete(r))return;if(this.pending.delete(r),this.clients.size===0)this.worker.terminate(),d=void 0;else if(this.failure===null)this.send({type:"dispose",clientId:r})}}}}var d;function Mi(e,n){return d??=new l,d.connect(e,n)}
2
+ export{Nn,Mi};
@@ -1,2 +1,2 @@
1
- import{cn as v}from"cn";import{ChevronDownIcon as h,ChevronUpIcon as g,XIcon as b}from"lucide-react";import{useEffect as z,useImperativeHandle as B,useRef as N}from"react";import{Button as i}from"@nyssance/shadcn/vega/components/ui/button";import{Input as E}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as t,jsxs as k}from"react/jsx-runtime";function Fi({ref:f,value:r,onChange:p,onFind:o,onClose:s,placeholder:d,autoFocusOpen:a=!0,prevTitle:l,nextTitle:c,className:m}){let n=N(null);B(f,()=>{if(n.current===null)throw Error("FindBar input is not mounted");return n.current},[]),z(()=>{if(!a)return;let e=n.current;if(e===null)throw Error("FindBar input is not mounted");e.focus({preventScroll:!0}),e.select()},[a]);let u=!r;return k("div",{className:v("border-border flex h-9 shrink-0 items-center gap-1 border-b px-2",m),children:[t(E,{ref:n,value:r,onChange:(e)=>p(e.target.value),placeholder:d,className:"h-7 text-xs",onKeyDown:(e)=>{if(e.key==="Escape"){e.preventDefault(),s();return}if(e.key==="Enter"){if(e.preventDefault(),r)o(e.shiftKey)}}}),t(i,{size:"icon",variant:"ghost",className:"size-6",disabled:u,onClick:()=>o(!0),title:l?`${l} (⇧↵)`:"⇧↵",children:t(g,{className:"size-3.5"})}),t(i,{size:"icon",variant:"ghost",className:"size-6",disabled:u,onClick:()=>o(!1),title:c?`${c} (↵)`:"↵",children:t(h,{className:"size-3.5"})}),t(i,{size:"icon",variant:"ghost",className:"size-6",onClick:s,title:"Esc",children:t(b,{className:"size-3.5"})})]})}
2
- export{Fi};
1
+ import{cn as v}from"cn";import{ChevronDownIcon as h,ChevronUpIcon as g,XIcon as b}from"lucide-react";import{useEffect as z,useImperativeHandle as B,useRef as N}from"react";import{Button as i}from"@nyssance/shadcn/vega/components/ui/button";import{Input as E}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as t,jsxs as k}from"react/jsx-runtime";function zi({ref:f,value:r,onChange:p,onFind:o,onClose:s,placeholder:d,autoFocusOpen:a=!0,prevTitle:l,nextTitle:c,className:m}){let n=N(null);B(f,()=>{if(n.current===null)throw Error("FindBar input is not mounted");return n.current},[]),z(()=>{if(!a)return;let e=n.current;if(e===null)throw Error("FindBar input is not mounted");e.focus({preventScroll:!0}),e.select()},[a]);let u=!r;return k("div",{className:v("border-border flex h-9 shrink-0 items-center gap-1 border-b px-2",m),children:[t(E,{ref:n,value:r,onChange:(e)=>p(e.target.value),placeholder:d,className:"h-7 text-xs",onKeyDown:(e)=>{if(e.key==="Escape"){e.preventDefault(),s();return}if(e.key==="Enter"){if(e.preventDefault(),r)o(e.shiftKey)}}}),t(i,{size:"icon",variant:"ghost",className:"size-6",disabled:u,onClick:()=>o(!0),title:l?`${l} (⇧↵)`:"⇧↵",children:t(g,{className:"size-3.5"})}),t(i,{size:"icon",variant:"ghost",className:"size-6",disabled:u,onClick:()=>o(!1),title:c?`${c} (↵)`:"↵",children:t(h,{className:"size-3.5"})}),t(i,{size:"icon",variant:"ghost",className:"size-6",onClick:s,title:"Esc",children:t(b,{className:"size-3.5"})})]})}
2
+ export{zi};
@@ -1,2 +1,2 @@
1
- import{c}from"./chunk-90r8y97z.js";import{cn as o}from"cn";import{motion as u}from"motion/react";import{jsx as i,jsxs as g}from"react/jsx-runtime";function je({active:n,expanded:r=!1,highlight:s=!0,className:a,...l}){return i("button",{type:"button","data-active":n?"":void 0,"aria-current":n?"page":void 0,className:o(s&&c,"focus-visible:outline-foreground/10 flex shrink-0 items-center justify-center rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-2 [&_svg]:size-4",r?"h-[var(--navigation-row-height,30px)] min-w-[var(--navigation-row-height,30px)]":"size-[var(--navigation-row-height,30px)]",a),...l})}function fr({tabs:n,view:r,onViewChange:s,onReset:a,notifications:l,trailing:p,className:d}){return g("div",{className:o("relative mb-2 flex h-[var(--navigation-row-height,30px)] shrink-0 items-center gap-0.5",d),children:[i("div",{role:"tablist",className:"bg-foreground/5 flex h-[var(--navigation-row-height,30px)] w-52 flex-none items-center gap-0.5 rounded-[10px] [corner-shape:superellipse(1.5)]",children:n.map((e)=>{let t=r===e.key;return g(je,{role:"tab",active:t,expanded:t,highlight:!1,"aria-selected":t,title:e.title,onClick:()=>s(e.key),onDoubleClick:a&&(()=>a(e.key)),className:o("relative isolate h-[var(--navigation-row-height,30px)] min-w-[var(--navigation-row-height,30px)] justify-start rounded-[10px] px-[6px] text-sm [corner-shape:superellipse(1.5)] [&_svg]:relative [&_svg]:z-10 [&_svg]:size-[18px] [&_svg]:shrink-0",t?"grow transition-[flex-grow] duration-200 ease-out":"grow-0 duration-0"),children:[t&&i(u.span,{layoutId:"navigation-selected-pill","aria-hidden":"true",className:"bg-foreground/8 pointer-events-none absolute inset-0 -z-10 rounded-[10px] [corner-shape:superellipse(1.5)]",transition:{duration:0.2,ease:[0.22,1,0.36,1]}}),e.icon,l?.has(e.key)&&i("span",{"data-activity-notification":!0,"aria-hidden":"true",className:"bg-destructive pointer-events-none absolute top-1 right-1 z-20 size-1.5 rounded-full motion-safe:animate-[activity-notification-pulse_2s_ease-in-out_infinite]"}),i("span",{className:o("relative z-10 grid",t?"ms-1.5 grid-cols-[1fr] transition-[grid-template-columns,margin-inline-start] duration-200 ease-out":"ms-0 grid-cols-[0fr] duration-0"),children:i("span",{className:"min-w-0 overflow-hidden whitespace-nowrap",children:e.title})})]},e.key)})}),p!=null&&i("div",{className:"ms-auto flex shrink-0 items-center gap-0.5",children:p})]})}
2
- export{je,fr};
1
+ import{c}from"./chunk-k7y6dqf2.js";import{cn as o}from"cn";import{motion as u}from"motion/react";import{jsx as i,jsxs as g}from"react/jsx-runtime";function qe({active:n,expanded:r=!1,highlight:s=!0,className:a,...l}){return i("button",{type:"button","data-active":n?"":void 0,"aria-current":n?"page":void 0,className:o(s&&c,"focus-visible:outline-foreground/10 flex shrink-0 items-center justify-center rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-2 [&_svg]:size-4",r?"h-[var(--navigation-row-height,30px)] min-w-[var(--navigation-row-height,30px)]":"size-[var(--navigation-row-height,30px)]",a),...l})}function Mr({tabs:n,view:r,onViewChange:s,onReset:a,notifications:l,trailing:p,className:d}){return g("div",{className:o("relative mb-2 flex h-[var(--navigation-row-height,30px)] shrink-0 items-center gap-0.5",d),children:[i("div",{role:"tablist",className:"bg-foreground/5 flex h-[var(--navigation-row-height,30px)] w-52 flex-none items-center gap-0.5 rounded-[10px] [corner-shape:superellipse(1.5)]",children:n.map((e)=>{let t=r===e.key;return g(qe,{role:"tab",active:t,expanded:t,highlight:!1,"aria-selected":t,title:e.title,onClick:()=>s(e.key),onDoubleClick:a&&(()=>a(e.key)),className:o("relative isolate h-[var(--navigation-row-height,30px)] min-w-[var(--navigation-row-height,30px)] justify-start rounded-[10px] px-[6px] text-sm [corner-shape:superellipse(1.5)] [&_svg]:relative [&_svg]:z-10 [&_svg]:size-[18px] [&_svg]:shrink-0",t?"grow transition-[flex-grow] duration-200 ease-out":"grow-0 duration-0"),children:[t&&i(u.span,{layoutId:"navigation-selected-pill","aria-hidden":"true",className:"bg-foreground/8 pointer-events-none absolute inset-0 -z-10 rounded-[10px] [corner-shape:superellipse(1.5)]",transition:{duration:0.2,ease:[0.22,1,0.36,1]}}),e.icon,l?.has(e.key)&&i("span",{"data-activity-notification":!0,"aria-hidden":"true",className:"bg-destructive pointer-events-none absolute top-1 right-1 z-20 size-1.5 rounded-full motion-safe:animate-[activity-notification-pulse_2s_ease-in-out_infinite]"}),i("span",{className:o("relative z-10 grid",t?"ms-1.5 grid-cols-[1fr] transition-[grid-template-columns,margin-inline-start] duration-200 ease-out":"ms-0 grid-cols-[0fr] duration-0"),children:i("span",{className:"min-w-0 overflow-hidden whitespace-nowrap",children:e.title})})]},e.key)})}),p!=null&&i("div",{className:"ms-auto flex shrink-0 items-center gap-0.5",children:p})]})}
2
+ export{qe,Mr};
@@ -1,2 +1,2 @@
1
- import{Fi}from"./chunk-xhrs52gv.js";import{Ei,rt}from"./chunk-thzq3tfa.js";import{Button as et}from"@nyssance/shadcn/vega/components/ui/button";import{cn as nt}from"cn";import{LoaderCircleIcon as ot,SearchIcon as lt}from"lucide-react";import{useCallback as _,useEffect as f,useMemo as J,useRef as b,useState as v}from"react";import{jsx as H,jsxs as q,Fragment as st}from"react/jsx-runtime";var V="chat-search",W="chat-search-current",X=150;function va(o){let r=o??"";return[...document.querySelectorAll("[data-chat-scroll]")].find((l)=>l.dataset.chatScroll===r)??null}var ct=12;function Dr(o,r="center"){let l=o.closest("[data-chat-scroll]");if(!l)return;let g=o.getBoundingClientRect(),y=l.getBoundingClientRect(),m=r==="start"?ct:(l.clientHeight-g.height)/2;l.scrollTo({top:l.scrollTop+(g.top-y.top)-m,behavior:"smooth"})}function P(o){let r=o.startContainer.parentElement;if(!r)return;Dr(r)}var M=new Map;function Y(){if(typeof CSS>"u"||!("highlights"in CSS)||typeof Highlight>"u")return;if(M.size===0){CSS.highlights.delete(V),CSS.highlights.delete(W);return}let o=[...M.values()];CSS.highlights.set(V,new Highlight(...o.flatMap((r)=>r.all))),CSS.highlights.set(W,new Highlight(...o.flatMap((r)=>r.current?[r.current]:[])))}function it(){let o=Symbol();return{clearHighlights:()=>{M.delete(o),Y()},applyHighlights:(r,l)=>{M.set(o,{all:r,current:l}),Y()}}}function Li({getViewport:o,findSourceMatches:r,revealTurn:l,prepareSource:g,subscribeOpen:y,labels:m,placement:K="header"}){let{clearHighlights:s,applyHighlights:p}=J(it,[]),S=r!==void 0,[c,R]=v(!1),[i,O]=v(""),[z,T]=v(!1),[D,L]=v(null),G=i.trim().length>0;f(()=>{if(!c||!G||g===void 0){T(!1),L(null);return}let e=new AbortController;return T(!0),L(null),g(e.signal).catch((t)=>{if(!e.signal.aborted)L(t instanceof Error?t.message:String(t))}).finally(()=>{if(!e.signal.aborted)T(!1)}),()=>e.abort()},[G,c,g]);let u=J(()=>c&&i.trim()&&r?r(i.trim()):[],[r,c,i]),[F,I]=v(0),[Z,E]=v(0),C=b([]),x=b(0),a=b(null),Q=b(null),U=b(null);f(()=>{if(!y)return;return y(()=>{R(!0);let t=U.current;if(t!==null)t.focus({preventScroll:!0}),t.select()})},[y]);let A=_(async(e,t)=>{let n=u[e];if(n===void 0)return;let h=o();if(h===null)throw Error("Chat scroll container is missing");if(l)await l(n.turnKey,t);if(t.aborted)return;let d=h.querySelector(`[data-turn-key="${CSS.escape(n.turnKey)}"]`);if(d===null)throw Error(`Codex turn is missing: ${n.turnKey}`);if(await Ei(d,t),t.aborted)return;if(!l)Dr(d,"start");if(await new Promise((tt)=>requestAnimationFrame(()=>tt())),t.aborted)return;let N=rt(d,i.trim());C.current=N;let B=N[n.occurrenceInTurn];if(p(N,B??null),B!==void 0)P(B)},[p,u,o,i,l]),k=b(A);f(()=>{k.current=A},[A]);let w=_(()=>{R(!1),O(""),x.current=0,a.current?.abort(),a.current=null,s(),C.current=[]},[s]);f(()=>{if(!c)return;let e=(t)=>{if(t.key==="Escape"&&Q.current?.contains(document.activeElement))t.preventDefault(),w()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[c,w]),f(()=>{if(!c||!i.trim()){s(),C.current=[],I(0),E(0),x.current=0;return}let e=setTimeout(()=>{if(S)return;let t=o();if(!t)return;let n=rt(t,i);if(C.current=n,I(n.length),E(0),p(n,n[0]??null),n[0])P(n[0])},X);return()=>{clearTimeout(e),s()}},[p,s,S,c,i,o]),f(()=>{if(!c||!S||!i.trim())return;let e=new AbortController;a.current?.abort(),a.current=e;let t=setTimeout(()=>{C.current=[],x.current=0,I(u.length),E(0),s(),k.current(0,e.signal)},X);return()=>{if(e.abort(),a.current===e)a.current=null;clearTimeout(t),s()}},[s,u.length,S,c,i]),f(()=>()=>{a.current?.abort(),s()},[s]),f(()=>{if(!c)s()},[s,c]);let j=_((e)=>{if(S){if(u.length===0)return;let n=(x.current+(e?-1:1)+u.length)%u.length;x.current=n,E(n),a.current?.abort();let h=new AbortController;a.current=h,k.current(n,h.signal);return}let t=C.current;if(!t.length)return;E((n)=>{let h=(n+(e?-1:1)+t.length)%t.length,d=t[h];return p(t,d),P(d),h})},[p,u.length,S]);return q(st,{children:[K==="header"&&H(et,{variant:"ghost",size:"icon-sm",title:m.search,onClick:()=>c?w():R(!0),children:H(lt,{})}),c&&q("div",{"data-chat-search":!0,"aria-busy":z||void 0,ref:Q,className:nt("bg-background border-b",K==="body"?"relative shrink-0":"absolute inset-x-0 top-full z-30"),children:[H(Fi,{ref:U,value:i,onChange:O,onFind:j,onClose:w,placeholder:m.placeholder,prevTitle:m.previous,nextTitle:m.next}),i.trim()&&q("div",{className:"text-muted-foreground border-border border-t px-3 py-1 text-[11px]",children:[z?H(ot,{"aria-hidden":"true",className:"size-3 animate-spin"}):F===0?"0 / 0":`${Z+1} / ${F}`,D!==null&&H("span",{role:"alert",children:D})]})]})]})}
2
- export{va,Dr,Li};
1
+ import{zi}from"./chunk-npsgbfh2.js";import{Gi,at}from"./chunk-7bcm8mpx.js";import{Button as et}from"@nyssance/shadcn/vega/components/ui/button";import{cn as rt}from"cn";import{LoaderCircleIcon as nt,SearchIcon as ot}from"lucide-react";import{useCallback as _,useEffect as f,useMemo as J,useRef as b,useState as v}from"react";import{jsx as H,jsxs as q,Fragment as it}from"react/jsx-runtime";var V="chat-search",W="chat-search-current",X=150;function Ta(o){let r=o??"";return[...document.querySelectorAll("[data-chat-scroll]")].find((l)=>l.dataset.chatScroll===r)??null}var lt=12;function $r(o,r="center"){let l=o.closest("[data-chat-scroll]");if(!l)return;let g=o.getBoundingClientRect(),y=l.getBoundingClientRect(),m=r==="start"?lt:(l.clientHeight-g.height)/2;l.scrollTo({top:l.scrollTop+(g.top-y.top)-m,behavior:"smooth"})}function P(o){let r=o.startContainer.parentElement;if(!r)return;$r(r)}var M=new Map;function Y(){if(typeof CSS>"u"||!("highlights"in CSS)||typeof Highlight>"u")return;if(M.size===0){CSS.highlights.delete(V),CSS.highlights.delete(W);return}let o=[...M.values()];CSS.highlights.set(V,new Highlight(...o.flatMap((r)=>r.all))),CSS.highlights.set(W,new Highlight(...o.flatMap((r)=>r.current?[r.current]:[])))}function ct(){let o=Symbol();return{clearHighlights:()=>{M.delete(o),Y()},applyHighlights:(r,l)=>{M.set(o,{all:r,current:l}),Y()}}}function Bi({getViewport:o,findSourceMatches:r,revealTurn:l,prepareSource:g,subscribeOpen:y,labels:m,placement:K="header"}){let{clearHighlights:s,applyHighlights:p}=J(ct,[]),S=r!==void 0,[c,R]=v(!1),[i,O]=v(""),[z,T]=v(!1),[D,L]=v(null),G=i.trim().length>0;f(()=>{if(!c||!G||g===void 0){T(!1),L(null);return}let e=new AbortController;return T(!0),L(null),g(e.signal).catch((t)=>{if(!e.signal.aborted)L(t instanceof Error?t.message:String(t))}).finally(()=>{if(!e.signal.aborted)T(!1)}),()=>e.abort()},[G,c,g]);let u=J(()=>c&&i.trim()&&r?r(i.trim()):[],[r,c,i]),[F,I]=v(0),[Z,E]=v(0),C=b([]),x=b(0),a=b(null),Q=b(null),U=b(null);f(()=>{if(!y)return;return y(()=>{R(!0);let t=U.current;if(t!==null)t.focus({preventScroll:!0}),t.select()})},[y]);let A=_(async(e,t)=>{let n=u[e];if(n===void 0)return;let h=o();if(h===null)throw Error("Chat scroll container is missing");if(l)await l(n.turnKey,t);if(t.aborted)return;let d=h.querySelector(`[data-turn-key="${CSS.escape(n.turnKey)}"]`);if(d===null)throw Error(`Codex turn is missing: ${n.turnKey}`);if(await Gi(d,t),t.aborted)return;if(!l)$r(d,"start");if(await new Promise((tt)=>requestAnimationFrame(()=>tt())),t.aborted)return;let N=at(d,i.trim());C.current=N;let B=N[n.occurrenceInTurn];if(p(N,B??null),B!==void 0)P(B)},[p,u,o,i,l]),k=b(A);f(()=>{k.current=A},[A]);let w=_(()=>{R(!1),O(""),x.current=0,a.current?.abort(),a.current=null,s(),C.current=[]},[s]);f(()=>{if(!c)return;let e=(t)=>{if(t.key==="Escape"&&Q.current?.contains(document.activeElement))t.preventDefault(),w()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[c,w]),f(()=>{if(!c||!i.trim()){s(),C.current=[],I(0),E(0),x.current=0;return}let e=setTimeout(()=>{if(S)return;let t=o();if(!t)return;let n=at(t,i);if(C.current=n,I(n.length),E(0),p(n,n[0]??null),n[0])P(n[0])},X);return()=>{clearTimeout(e),s()}},[p,s,S,c,i,o]),f(()=>{if(!c||!S||!i.trim())return;let e=new AbortController;a.current?.abort(),a.current=e;let t=setTimeout(()=>{C.current=[],x.current=0,I(u.length),E(0),s(),k.current(0,e.signal)},X);return()=>{if(e.abort(),a.current===e)a.current=null;clearTimeout(t),s()}},[s,u.length,S,c,i]),f(()=>()=>{a.current?.abort(),s()},[s]),f(()=>{if(!c)s()},[s,c]);let j=_((e)=>{if(S){if(u.length===0)return;let n=(x.current+(e?-1:1)+u.length)%u.length;x.current=n,E(n),a.current?.abort();let h=new AbortController;a.current=h,k.current(n,h.signal);return}let t=C.current;if(!t.length)return;E((n)=>{let h=(n+(e?-1:1)+t.length)%t.length,d=t[h];return p(t,d),P(d),h})},[p,u.length,S]);return q(it,{children:[K==="header"&&H(et,{variant:"ghost",size:"icon-sm",title:m.search,onClick:()=>c?w():R(!0),children:H(ot,{})}),c&&q("div",{"data-chat-search":!0,"aria-busy":z||void 0,ref:Q,className:rt("bg-background border-b",K==="body"?"relative shrink-0":"absolute inset-x-0 top-full z-30"),children:[H(zi,{ref:U,value:i,onChange:O,onFind:j,onClose:w,placeholder:m.placeholder,prevTitle:m.previous,nextTitle:m.next}),i.trim()&&q("div",{className:"text-muted-foreground border-border border-t px-3 py-1 text-[11px]",children:[z?H(nt,{"aria-hidden":"true",className:"size-3 animate-spin"}):F===0?"0 / 0":`${Z+1} / ${F}`,D!==null&&H("span",{role:"alert",children:D})]})]})]})}
2
+ export{Ta,$r,Bi};
@@ -0,0 +1,2 @@
1
+ import{createContext as t,useContext as o}from"react";var fn=t(null);function Hr(){let e=o(fn);if(e===null)throw Error("Composer is missing");return e}
2
+ export{fn,Hr};
@@ -1,2 +1,2 @@
1
- import{A}from"./chunk-2f9vjmxz.js";import{Button as u}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as d,DropdownMenuContent as m,DropdownMenuGroup as w,DropdownMenuItem as i,DropdownMenuLabel as S,DropdownMenuTrigger as c}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as a}from"react/jsx-runtime";var M=["requires_action","running","done","idle"];function wr({sessions:l,onSelect:p,t:n}){return e("div",{className:"flex shrink-0 items-center gap-0.5",role:"group","aria-label":n("sessionList.states.title"),children:M.map((o)=>{let s=l.filter((t)=>t.state===o),r=n(`sessionList.states.${o}`);return a(d,{children:[a(c,{render:e(u,{variant:"ghost",size:"xs"}),"aria-label":`${r}: ${s.length}`,children:[e(A,{state:o,pulse:!1}),e("span",{className:"tabular-nums",children:s.length})]}),e(m,{"aria-label":r,className:"w-72 max-w-[calc(100vw-1rem)]",children:a(w,{children:[e(S,{children:r}),s.length===0?e(i,{disabled:!0,children:n("sessionList.states.empty")}):s.map((t)=>a(i,{onClick:()=>p(t),children:[e(A,{state:t.state,pulse:!1}),e("span",{className:"min-w-0 flex-1 truncate",children:t.title||n("sessionList.untitled")})]},t.sessionId))]})})]},o)})})}
2
- export{wr};
1
+ import{L}from"./chunk-8hen6y4t.js";import{Button as u}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as d,DropdownMenuContent as m,DropdownMenuGroup as w,DropdownMenuItem as i,DropdownMenuLabel as S,DropdownMenuTrigger as c}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as a}from"react/jsx-runtime";var M=["requires_action","running","done","idle"];function kr({sessions:l,onSelect:p,t:n}){return e("div",{className:"flex shrink-0 items-center gap-0.5",role:"group","aria-label":n("sessionList.states.title"),children:M.map((o)=>{let s=l.filter((t)=>t.state===o),r=n(`sessionList.states.${o}`);return a(d,{children:[a(c,{render:e(u,{variant:"ghost",size:"xs"}),"aria-label":`${r}: ${s.length}`,children:[e(L,{state:o,pulse:!1}),e("span",{className:"tabular-nums",children:s.length})]}),e(m,{"aria-label":r,className:"w-72 max-w-[calc(100vw-1rem)]",children:a(w,{children:[e(S,{children:r}),s.length===0?e(i,{disabled:!0,children:n("sessionList.states.empty")}):s.map((t)=>a(i,{onClick:()=>p(t),children:[e(L,{state:t.state,pulse:!1}),e("span",{className:"min-w-0 flex-1 truncate",children:t.title||n("sessionList.untitled")})]},t.sessionId))]})})]},o)})})}
2
+ export{kr};
@@ -1,2 +1,2 @@
1
- import{c}from"./chunk-90r8y97z.js";import{r}from"./chunk-eg86g265.js";import{m,u}from"./chunk-9gt81b51.js";import{je}from"./chunk-f7mgf43p.js";import{cn as s}from"cn";import{ArrowLeftIcon as a,ArrowRightIcon as l,SlidersHorizontalIcon as p}from"lucide-react";import{DropdownMenu as d,DropdownMenuContent as g,DropdownMenuItem as f,DropdownMenuTrigger as w}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as L}from"react/jsx-runtime";function mr({onCollapseAll:i}){let{t:n}=r();return L(d,{children:[o(w,{render:o(je,{"aria-label":n("sessionList.filter"),title:n("sessionList.filter")}),children:o(p,{})}),o(g,{align:"end",className:"w-52",children:o(f,{onClick:i,children:n("sessionList.collapseAllGroups")})})]})}function gr({screen:i,onSwitch:n}){let{t:e}=r(),t=e(i==="main"?"sessionList.openLeading":"sessionList.backToMain");return o(u,{className:s(c,i==="main"?"justify-start":"justify-end"),"aria-label":t,title:t,onClick:n,children:o(m,{children:i==="main"?o(a,{}):o(l,{})})})}
2
- export{mr,gr};
1
+ import{c}from"./chunk-k7y6dqf2.js";import{r}from"./chunk-d1pc0mrb.js";import{m,u}from"./chunk-xhtpqc8p.js";import{qe}from"./chunk-nx701kdw.js";import{cn as s}from"cn";import{ArrowLeftIcon as a,ArrowRightIcon as l,SlidersHorizontalIcon as p}from"lucide-react";import{DropdownMenu as d,DropdownMenuContent as g,DropdownMenuItem as f,DropdownMenuTrigger as w}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as L}from"react/jsx-runtime";function Tr({onCollapseAll:i}){let{t:n}=r();return L(d,{children:[o(w,{render:o(qe,{"aria-label":n("sessionList.filter"),title:n("sessionList.filter")}),children:o(p,{})}),o(g,{align:"end",className:"w-52",children:o(f,{onClick:i,children:n("sessionList.collapseAllGroups")})})]})}function Ir({screen:i,onSwitch:n}){let{t:e}=r(),t=e(i==="main"?"sessionList.openLeading":"sessionList.backToMain");return o(u,{className:s(c,i==="main"?"justify-start":"justify-end"),"aria-label":t,title:t,onClick:n,children:o(m,{children:i==="main"?o(a,{}):o(l,{})})})}
2
+ export{Tr,Ir};
@@ -1,2 +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 I({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{I};
@@ -0,0 +1,2 @@
1
+ import{o}from"./chunk-d1pc0mrb.js";import{he,G,oe}from"./chunk-2z1cpz8a.js";import{useEffect as S,useMemo as f}from"react";function mr(s){let c=G((i)=>i.activityOrder),a=o((i)=>{let n=Object.values(i.runStates).filter((t)=>c.includes(t.sessionId)&&(t.state==="done"||t.state==="requires_action")&&he(i,t.sessionId)).map((t)=>[t.sessionId,JSON.stringify([t.state,t.since,t.interruption])]);return JSON.stringify(n)}),e=f(()=>new Map(JSON.parse(a)),[a]),u=G((i)=>i.activitySeen),r=oe();return S(()=>{if(s==="activity")r({activitySeen:e})},[s,e,r]),s!=="activity"&&[...e].some(([i,n])=>u.get(i)!==n)}
2
+ export{mr};
@@ -0,0 +1,2 @@
1
+ import{groupSessions as Me,projectName as ne,isQuickChatDirectory as vr,QUICK_CHATS_GROUP as Z}from"@nyssance/codex-acp-v2/client";
2
+ export{Me,ne,vr,Z};
@@ -0,0 +1 @@
1
+ import{xe}from"./chunk-k7y6dqf2.js";import{I}from"./chunk-qcj6f1rq.js";import{cn as n}from"cn";import{Item as i,ItemActions as D,ItemContent as H,ItemDescription as J,ItemMedia as O,ItemTitle as a}from"@nyssance/shadcn/vega/components/ui/item";import{jsx as o}from"react/jsx-runtime";function U({className:e,...t}){return o("div",{className:n("flex flex-col px-2",e),...t})}function de({className:e,size:t="xs",active:m,...r}){return o(i,{size:t,"data-active":m,className:n(xe,"data-[active=true]:font-medium",e),...r})}function pt({className:e,children:t,...m}){return o(a,{className:n("w-full",e),...m,children:o(I,{children:t})})}export{D,H,J,O,U,de,pt};
@@ -1,5 +1,5 @@
1
- import{isText as f}from"@nyssance/codex-acp-v2/client";import{useRef as p}from"react";function Ho(l,c){let i=p(null);return(t)=>{if(t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.key!=="ArrowUp"&&t.key!=="ArrowDown")return;let n=t.currentTarget;if(n.selectionStart!==n.selectionEnd)return;let e=i.current;if(e&&(e.sessionId!==l.id||e.value!==n.value))i.current=null,e=null;let u=t.key==="ArrowUp";if(u?n.value.slice(0,n.selectionStart).includes(`
1
+ import{isText as f}from"@nyssance/codex-acp-v2/client";import{useRef as p}from"react";function So(l,c){let i=p(null);return(t)=>{if(t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.key!=="ArrowUp"&&t.key!=="ArrowDown")return;let n=t.currentTarget;if(n.selectionStart!==n.selectionEnd)return;let e=i.current;if(e&&(e.sessionId!==l.id||e.value!==n.value))i.current=null,e=null;let u=t.key==="ArrowUp";if(u?n.value.slice(0,n.selectionStart).includes(`
2
2
  `):n.value.slice(n.selectionEnd).includes(`
3
3
  `))return;if(!e){if(!u||n.value!=="")return;let s=l.items.flatMap((o)=>{if(o.kind!=="user")return[];let a=o.content.filter(f).map((d)=>d.text).join(`
4
4
  `);return a.trim()?[a]:[]});if(!s.length)return;e={sessionId:l.id,entries:s,index:s.length,value:""},i.current=e}t.preventDefault(),e.index=Math.max(0,Math.min(e.entries.length,e.index+(u?-1:1)));let r=e.entries[e.index]??"";if(e.value=r,c(r),n.value=r,n.setSelectionRange(r.length,r.length),e.index===e.entries.length)i.current=null}}
5
- export{Ho};
5
+ export{So};
@@ -1,2 +1,2 @@
1
- import{hasAccount as x}from"@nyssance/codex-acp-v2/client";import{useEffect as R,useState as S}from"react";var f="main",p="settings",y="settings:request-agent",w="settings:agent",E="settings:auth-request",A="settings:auth-result",T="settings:request-account",h="settings:account",P="settings:account-error",v=(t)=>t instanceof Error?t.message:String(t);function ji(t){return{agent:()=>{let n=t.state.agent;if(t.state.connection!=="ready"||!n?.info)return null;return{name:n.info.title??n.info.name,version:n.info.version,authMethods:n.authMethods??[],actions:t.state.actions.filter((o)=>o.sessionId===null)}},subscribe:(n)=>t.store.subscribe(n),logout:()=>t.logout(),login:(n,o)=>t.login(n,o),respond:(n,o)=>t.respond(n,o),account:async()=>{if(t.state.connection!=="ready"||!x(t.state.agent))return null;let[n,o]=await Promise.all([t.readAccount(),t.readRateLimits().catch(()=>null)]);return{account:n,rateLimits:o}},onRateLimits:(n)=>t.onRateLimits(n)}}function $i(t,n){let{listen:o,emitTo:u}=n,g=t.agent(),l=()=>{let s=t.agent();if(u(p,w,s),g===null!==(s===null))c();g=s},i=null,r=0,a=!1,c=async()=>{let s=++r;try{let d=await t.account();if(a||s!==r)return;i=d,await u(p,h,i)}catch(d){if(a||s!==r)return;await u(p,P,v(d))}},e=t.subscribe(l),m=t.onRateLimits((s)=>{if(i===null)return;i={...i,rateLimits:s},u(p,h,i)}),b=Promise.all([o(y,l),o(T,()=>void c()),o(E,({payload:s})=>void(async()=>{try{switch(s.action){case"login":await t.login(s.methodId,s.extra),await c();break;case"logout":await t.logout(),await c();break;case"respond":t.respond(s.actionId,s.answer);break}await u(p,A,{id:s.id,error:null})}catch(d){await u(p,A,{id:s.id,error:v(d)})}})())]);return()=>{a=!0,r++,e(),m(),b.then((s)=>{for(let d of s)d()})}}function Ki(t,n=console.error){let{listen:o,emitTo:u}=t,g;async function l(i){let r,a=new Promise((e)=>{r=e}),c=await o(A,(e)=>{if(e.payload.id===i.id)r(e.payload)});try{await u(f,E,i);let{error:e}=await a;if(e!==null)throw Error(e)}finally{c()}}return{useSettingsAccount(){let[i,r]=S(()=>g);return R(()=>{let a=!1,c=Promise.all([o(h,(e)=>{if(a)return;g=e.payload,r(e.payload)}),o(P,(e)=>{if(a)return;if(g===void 0)r(null),n(e.payload);else console.error("Account refresh failed",e.payload)})]);return c.then(()=>{if(!a)return u(f,T)}),()=>{a=!0,c.then((e)=>{for(let m of e)m()})}},[]),i},useSettingsAgent(){let[i,r]=S(void 0);return R(()=>{let a=!1,c=o(w,(e)=>{if(!a)r(e.payload)});return c.then(()=>{if(!a)return u(f,y)}),()=>{a=!0,c.then((e)=>e())}},[]),i},requestSignOut:()=>l({id:crypto.randomUUID(),action:"logout"}),requestSignIn:(i,r)=>l({id:crypto.randomUUID(),action:"login",methodId:i,extra:r}),requestActionResponse:(i,r)=>l({id:crypto.randomUUID(),action:"respond",actionId:i,answer:r})}}
2
- export{ji,$i,Ki};
1
+ import{hasAccount as x}from"@nyssance/codex-acp-v2/client";import{useEffect as R,useState as S}from"react";var f="main",p="settings",y="settings:request-agent",w="settings:agent",E="settings:auth-request",A="settings:auth-result",T="settings:request-account",h="settings:account",P="settings:account-error",v=(t)=>t instanceof Error?t.message:String(t);function Yi(t){return{agent:()=>{let n=t.state.agent;if(t.state.connection!=="ready"||!n?.info)return null;return{name:n.info.title??n.info.name,version:n.info.version,authMethods:n.authMethods??[],actions:t.state.actions.filter((o)=>o.sessionId===null)}},subscribe:(n)=>t.store.subscribe(n),logout:()=>t.logout(),login:(n,o)=>t.login(n,o),respond:(n,o)=>t.respond(n,o),account:async()=>{if(t.state.connection!=="ready"||!x(t.state.agent))return null;let[n,o]=await Promise.all([t.readAccount(),t.readRateLimits().catch(()=>null)]);return{account:n,rateLimits:o}},onRateLimits:(n)=>t.onRateLimits(n)}}function Xi(t,n){let{listen:o,emitTo:u}=n,g=t.agent(),l=()=>{let s=t.agent();if(u(p,w,s),g===null!==(s===null))c();g=s},i=null,r=0,a=!1,c=async()=>{let s=++r;try{let d=await t.account();if(a||s!==r)return;i=d,await u(p,h,i)}catch(d){if(a||s!==r)return;await u(p,P,v(d))}},e=t.subscribe(l),m=t.onRateLimits((s)=>{if(i===null)return;i={...i,rateLimits:s},u(p,h,i)}),b=Promise.all([o(y,l),o(T,()=>void c()),o(E,({payload:s})=>void(async()=>{try{switch(s.action){case"login":await t.login(s.methodId,s.extra),await c();break;case"logout":await t.logout(),await c();break;case"respond":t.respond(s.actionId,s.answer);break}await u(p,A,{id:s.id,error:null})}catch(d){await u(p,A,{id:s.id,error:v(d)})}})())]);return()=>{a=!0,r++,e(),m(),b.then((s)=>{for(let d of s)d()})}}function Ji(t,n=console.error){let{listen:o,emitTo:u}=t,g;async function l(i){let r,a=new Promise((e)=>{r=e}),c=await o(A,(e)=>{if(e.payload.id===i.id)r(e.payload)});try{await u(f,E,i);let{error:e}=await a;if(e!==null)throw Error(e)}finally{c()}}return{useSettingsAccount(){let[i,r]=S(()=>g);return R(()=>{let a=!1,c=Promise.all([o(h,(e)=>{if(a)return;g=e.payload,r(e.payload)}),o(P,(e)=>{if(a)return;if(g===void 0)r(null),n(e.payload);else console.error("Account refresh failed",e.payload)})]);return c.then(()=>{if(!a)return u(f,T)}),()=>{a=!0,c.then((e)=>{for(let m of e)m()})}},[]),i},useSettingsAgent(){let[i,r]=S(void 0);return R(()=>{let a=!1,c=o(w,(e)=>{if(!a)r(e.payload)});return c.then(()=>{if(!a)return u(f,y)}),()=>{a=!0,c.then((e)=>e())}},[]),i},requestSignOut:()=>l({id:crypto.randomUUID(),action:"logout"}),requestSignIn:(i,r)=>l({id:crypto.randomUUID(),action:"login",methodId:i,extra:r}),requestActionResponse:(i,r)=>l({id:crypto.randomUUID(),action:"respond",actionId:i,answer:r})}}
2
+ export{Yi,Xi,Ji};
@@ -0,0 +1,2 @@
1
+ import{E}from"./chunk-67x8znmk.js";import{ve}from"./chunk-xhtpqc8p.js";import{w,ee}from"./chunk-6hxa1n8n.js";import{A,W}from"./chunk-c2a0x69n.js";import{ue,te}from"./chunk-maa70rv4.js";import{cn as G}from"cn";import{BoxIcon as S,ChevronRightIcon as U,PlusIcon as z,StarIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as L,DropdownMenuContent as j,DropdownMenuGroup as y,DropdownMenuItem as k,DropdownMenuRadioGroup as _,DropdownMenuRadioItem as K,DropdownMenuSeparator as q,DropdownMenuTrigger as J}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Q}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as a}from"react/jsx-runtime";function Xn({sessionId:l,trigger:f,favorite:n=!1,hoverBackground:O=n?"none":void 0,allowRemove:R=!0,submenu:g=!1,className:x,onOpenChange:B}){let{t}=w(),c=te(),T=ee(),H=ve(),{collections:s,order:C}=ue(),i=C.find((o)=>s[o].sessionIds.includes(l)),[P,F]=d(!1),[D,b]=d(!1),[m,h]=d(""),[r,v]=d(!1),I=(o)=>{if(F(o),H(o),B?.(o),!o)b(!1),h("")},p=(o)=>{v(!0),T(o.then(()=>{I(!1)}).finally(()=>v(!1)))};return a(L,{modal:!1,open:P,onOpenChange:(o,M)=>{if(!o&&D&&M.reason==="trigger-hover"){M.cancel();return}I(o)},children:[e(J,{disabled:r,"data-hover-background":O,openOnHover:n||g,"aria-label":t(n&&i!==void 0?"collection.removeFromAll":"collection.addTo"),onMouseDown:(o)=>{if(n)o.preventBaseUIHandler()},onClick:(o)=>{if(!n)return;o.preventBaseUIHandler(),p(c({type:"favorite",sessionId:l}))},render:f??e(N,{variant:"ghost",size:"icon-sm",className:x,"aria-label":t(n&&i!==void 0?"collection.removeFromAll":"collection.addTo"),children:e(u,{className:G(i!==void 0&&"fill-current")})})}),a(j,{className:"w-56 font-normal",side:g?"inline-end":"bottom",align:g?"start":"end",sideOffset:4,children:[e(y,{children:e(_,{value:i??null,children:C.map((o)=>a(K,{value:o,disabled:r||i===o,closeOnClick:!1,onClick:()=>p(c({type:"add",collectionId:o,sessionId:l})),children:[o===A?e(u,{}):s[o].emoji?e("span",{className:"flex size-4 shrink-0 items-center justify-center text-sm","aria-hidden":"true",children:s[o].emoji}):e(S,{}),e("span",{className:"min-w-0 flex-1 truncate",children:W(s[o],t)})]},o))})}),e(q,{}),a(y,{children:[a(k,{disabled:r,closeOnClick:!1,onClick:()=>b(!0),children:[e(z,{}),t("collection.newCollection")]}),R&&i!==void 0&&a(k,{disabled:r,closeOnClick:!1,onClick:()=>p(c({type:"remove",sessionId:l})),children:[e(u,{}),t("collection.removeFromAll")]})]}),D&&a("form",{className:"flex items-center gap-1 px-2 py-1.5",onSubmit:(o)=>{if(o.preventDefault(),o.stopPropagation(),!m.trim()||r)return;p(c({type:"create",id:`collection-${crypto.randomUUID()}`,name:m,sessionId:l}))},children:[e(Q,{autoFocus:!0,"aria-label":t("collection.collectionName"),placeholder:t("collection.collectionName"),value:m,disabled:r,onChange:(o)=>h(o.target.value),onKeyDown:(o)=>o.stopPropagation(),className:"h-7 min-w-0"}),e(N,{size:"xs",type:"submit",disabled:r||!m.trim(),children:t("collection.confirm")})]})]})]})}function lr({sessionId:l,allowRemove:f=!0}){let{t:n}=w();return e(Xn,{sessionId:l,allowRemove:f,submenu:!0,trigger:e(E,{icon:e(u,{}),label:n("collection.addTo"),trailing:e(U,{className:"rtl:rotate-180"})})})}
2
+ export{Xn,lr};
@@ -1,2 +1,2 @@
1
- import{nativeTurnId as a}from"@nyssance/codex-acp-v2/client";function Ti(o,i){let u=new Set,s=(e)=>{let t=e.items.map(a).find((r)=>r!==null),n=e.items.every((r)=>r.replayed);if(t===void 0||u.has(t))return{turnKey:e.key,turn:e,deferUntilReady:n};return u.add(t),{turnKey:`history:${t}`,aliases:[e.key],turn:e,deferUntilReady:n}};if(!i?.complete)return o.map(s);let d=new Map;for(let e of o){let t=e.items.map(a).find((r)=>r!==null);if(t===void 0)continue;let n=d.get(t)??[];n.push(e),d.set(t,n)}let l=new Set(i.turns.map((e)=>e.turnId)),y=new Set(i.loadedTurnIds);return[...i.turns.flatMap((e)=>{let t=d.get(e.turnId);if(t)return t.map(s);return y.has(e.turnId)?[]:[{turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,estimatedHeightPx:320,placeholder:!0}]}),...o.filter((e)=>!e.items.some((t)=>l.has(a(t)??""))).map(s)]}
2
- export{Ti};
1
+ import{nativeTurnId as a}from"@nyssance/codex-acp-v2/client";function oi(o,i){let u=new Set,s=(e)=>{let t=e.items.map(a).find((r)=>r!==null),n=e.items.every((r)=>r.replayed);if(t===void 0||u.has(t))return{turnKey:e.key,turn:e,deferUntilReady:n};return u.add(t),{turnKey:`history:${t}`,aliases:[e.key],turn:e,deferUntilReady:n}};if(!i?.complete)return o.map(s);let d=new Map;for(let e of o){let t=e.items.map(a).find((r)=>r!==null);if(t===void 0)continue;let n=d.get(t)??[];n.push(e),d.set(t,n)}let l=new Set(i.turns.map((e)=>e.turnId)),y=new Set(i.loadedTurnIds);return[...i.turns.flatMap((e)=>{let t=d.get(e.turnId);if(t)return t.map(s);return y.has(e.turnId)?[]:[{turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,estimatedHeightPx:320,placeholder:!0}]}),...o.filter((e)=>!e.items.some((t)=>l.has(a(t)??""))).map(s)]}
2
+ export{oi};
@@ -1,2 +1,2 @@
1
- import{e}from"./chunk-epg5w48v.js";import{_t,Pt}from"./chunk-scxhc46w.js";import{Be}from"./chunk-v3etjs4w.js";import{ChevronDownIcon as h}from"lucide-react";import{useId as x,useState as v}from"react";import{Button as b}from"@nyssance/shadcn/vega/components/ui/button";import{Collapsible as A,CollapsibleContent as M,CollapsibleTrigger as I}from"@nyssance/shadcn/vega/components/ui/collapsible";import{Input as N}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as t,jsxs as i}from"react/jsx-runtime";function Vi({providers:n,store:l}){let{t:m}=e().host,d=_t(l);if(!n.some((s)=>s.models.length))return null;return i(A,{children:[i(I,{render:t(b,{variant:"ghost",size:"sm"}),children:[m("provider.managed.aliases"),t(h,{className:"size-4"})]}),i(M,{className:"space-y-3 pt-3",children:[t("p",{className:"text-muted-foreground text-xs",children:m("provider.managed.aliasHint")}),n.flatMap((s)=>s.models.map((o)=>{let a=Be(s.id,o.api_id);return t(S,{id:a,label:o.label,modelId:o.api_id,alias:d[a]??"",store:l},a)}))]})]})}function S({id:n,label:l,modelId:m,alias:d,store:s}){let{host:o}=e(),a=x(),[C,c]=v(null),[p,f]=v(!1),u=C??d;async function y(){f(!0);try{await Pt(s,n,u),c(null)}catch(r){let g=r instanceof Error?r:Error(String(r));if(o.reportError)o.reportError(g);else console.error(g)}finally{f(!1)}}return i("form",{className:"space-y-1.5",onSubmit:(r)=>{if(r.preventDefault(),!p)y()},children:[t("label",{htmlFor:a,className:"text-sm font-medium",children:l}),t("p",{className:"text-muted-foreground text-xs break-all",children:m}),i("div",{className:"flex items-center gap-2",children:[t(N,{id:a,value:u,placeholder:l,maxLength:100,disabled:p,onChange:(r)=>c(r.target.value)}),t(b,{type:"submit",variant:"outline",size:"sm",disabled:p||u.trim()===d,children:o.t("provider.managed.saveAlias")})]})]})}
2
- export{Vi};
1
+ import{e}from"./chunk-xecs5c6a.js";import{yt,xt}from"./chunk-x4qnkn8f.js";import{ze}from"./chunk-07srtfz3.js";import{ChevronDownIcon as h}from"lucide-react";import{useId as x,useState as v}from"react";import{Button as b}from"@nyssance/shadcn/vega/components/ui/button";import{Collapsible as A,CollapsibleContent as M,CollapsibleTrigger as I}from"@nyssance/shadcn/vega/components/ui/collapsible";import{Input as N}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as t,jsxs as i}from"react/jsx-runtime";function tr({providers:n,store:l}){let{t:m}=e().host,d=yt(l);if(!n.some((s)=>s.models.length))return null;return i(A,{children:[i(I,{render:t(b,{variant:"ghost",size:"sm"}),children:[m("provider.managed.aliases"),t(h,{className:"size-4"})]}),i(M,{className:"space-y-3 pt-3",children:[t("p",{className:"text-muted-foreground text-xs",children:m("provider.managed.aliasHint")}),n.flatMap((s)=>s.models.map((o)=>{let a=ze(s.id,o.api_id);return t(S,{id:a,label:o.label,modelId:o.api_id,alias:d[a]??"",store:l},a)}))]})]})}function S({id:n,label:l,modelId:m,alias:d,store:s}){let{host:o}=e(),a=x(),[C,c]=v(null),[p,f]=v(!1),u=C??d;async function y(){f(!0);try{await xt(s,n,u),c(null)}catch(r){let g=r instanceof Error?r:Error(String(r));if(o.reportError)o.reportError(g);else console.error(g)}finally{f(!1)}}return i("form",{className:"space-y-1.5",onSubmit:(r)=>{if(r.preventDefault(),!p)y()},children:[t("label",{htmlFor:a,className:"text-sm font-medium",children:l}),t("p",{className:"text-muted-foreground text-xs break-all",children:m}),i("div",{className:"flex items-center gap-2",children:[t(N,{id:a,value:u,placeholder:l,maxLength:100,disabled:p,onChange:(r)=>c(r.target.value)}),t(b,{type:"submit",variant:"outline",size:"sm",disabled:p||u.trim()===d,children:o.t("provider.managed.saveAlias")})]})]})}
2
+ export{tr};
@@ -0,0 +1,2 @@
1
+ import{t}from"./chunk-bt01an6h.js";import{e}from"./chunk-xecs5c6a.js";import{g,K}from"./chunk-w0dfvr05.js";import{hasAccount as D,isGroupedSelect as L}from"@nyssance/codex-acp-v2/client";import{cn as H}from"cn";import{memo as W,useEffect as T,useState as F}from"react";import{HoverCard as z,HoverCardContent as O,HoverCardTrigger as U}from"@nyssance/shadcn/vega/components/ui/hover-card";import{jsx as r,jsxs as u}from"react/jsx-runtime";var d=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),A=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),I=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function f(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function V(a,n){let o=Math.min(100,a/n*100),p=o>=90?"text-destructive":o>=70?"text-foreground":"text-muted-foreground";return{pct:o,className:p}}function G(a){let n=g(a.configOptions,"model");return n===void 0?void 0:K(n)}function Ee(a,n){let o=a.windowDurationMins;if(o===null)return n("usage.usage");if(o%1440===0)return n("usage.windowDays",{count:o/1440});return n("usage.windowHours",{count:Math.round(o/60)})}function P(a){let{client:n}=e(),o=t((s)=>a&&s.connection==="ready"&&D(s.agent)),[p,c]=F(null);return T(()=>{if(!o){c(null);return}let s=!0;n.readRateLimits().then((m)=>{if(s)c(m)},()=>{return});let l=n.onRateLimits((m)=>{if(s)c(m)});return()=>{s=!1,l()}},[o,n]),o?p:null}function _({session:a}){let{t:n}=e().host,o=g(a.configOptions,"model"),p=o!==void 0&&(L(o.options)?o.options.some((i)=>i.groupId==="chatgpt"&&i.options.some((y)=>y.value===o.currentValue)):!o.currentValue.startsWith("gateway:")&&o.options.some((i)=>i.value===o.currentValue)),c=P(p),{usage:s,lastTurnUsage:l}=a;if(s===null&&l===null)return null;let m=s&&s.size>0?V(s.used,s.size):null,h=7,b=2*Math.PI*h,N=f(l?.inputTokens),k=f(l?.outputTokens),x=f(l?.cachedReadTokens),w=f(l?.cachedWriteTokens),S=f(l?.totalTokens)||N+k+x+w,R=N+x,C=R>0?A.format(x/R):n("tokens.notAvailable"),M=[[n("tokens.input"),d.format(N)],[n("tokens.output"),d.format(k)],[n("tokens.cachedRead"),d.format(x)],[n("tokens.cachedWrite"),d.format(w)],[n("tokens.cacheHitRate"),C],[n("tokens.total"),d.format(S)]],v=G(a);return u(z,{children:[r(U,{delay:100,closeDelay:100,render:u("button",{type:"button",className:H("hover:text-foreground flex h-7 items-center gap-1.5 rounded-md px-1.5 text-xs tabular-nums",m?.className??"text-muted-foreground"),"aria-label":n("tokens.openDetails"),children:[u("svg",{viewBox:"0 0 18 18",className:"size-4","aria-hidden":"true",children:[r("circle",{cx:"9",cy:"9",r:h,fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),m!==null&&r("circle",{cx:"9",cy:"9",r:h,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:b,strokeDashoffset:b*(1-m.pct/100),transform:"rotate(-90 9 9)"})]}),m!==null&&u("span",{children:[Math.round(m.pct),"%"]})]})}),u(O,{align:"end",side:"top",sideOffset:8,className:"w-56 p-0",children:[v!==void 0&&r("div",{className:"border-b px-3 py-2",children:r("p",{className:"text-foreground truncate text-xs font-semibold",title:v,children:v})}),u("div",{className:"flex flex-col gap-3 p-3",children:[l!==null&&u("div",{className:"flex flex-col gap-1.5",children:[r("p",{className:"text-xs font-medium",children:n("tokens.openDetails")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:M.map(([i,y])=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:i}),r("dd",{className:"text-end tabular-nums",children:y})]},i))})]}),s!==null&&s.size>0&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:n("tokens.context")}),r("p",{className:"text-muted-foreground text-xs tabular-nums",children:n("tokens.contextSummary",{used:d.format(s.used),limit:d.format(s.size),percent:I.format(s.used/s.size*100)})})]}),c!==null&&(c.primary!==null||c.secondary!==null)&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:n("usage.limits")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:[c.primary,c.secondary].filter((i)=>i!==null).map((i)=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:Ee(i,n)}),r("dd",{className:"text-end tabular-nums",children:n("usage.used",{percent:Math.round(Math.min(100,Math.max(0,i.usedPercent)))})})]},`${i.windowDurationMins??"window"}`))})]})]})]})]})}var Ut=W(_);
2
+ export{Ee,Ut};
@@ -0,0 +1,2 @@
1
+ function Gn(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function en(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function Ie(t){return t.type==="array"}function gt(t){return(Ie(t)?t.items?.oneOf??[]:t.oneOf??[]).map((e)=>{let i=e,r=i.const??i.title??"";return{value:r,label:i.title??r,...i.description?{description:i.description}:{},...i._meta?.alwith?.preview?{preview:i._meta.alwith.preview}:{}}})}
2
+ export{Gn,en,Ie,gt};
@@ -1,4 +1,4 @@
1
- var Rn=`<svg xmlns="http://www.w3.org/2000/svg">
1
+ var Un=`<svg xmlns="http://www.w3.org/2000/svg">
2
2
  <defs>
3
3
  <linearGradient id="plugin-agent-mode-paint0_linear_1_1034" x1="30.0398" y1="40.0728" x2="11.3112" y2="-1.39757" gradientUnits="userSpaceOnUse">
4
4
  <stop stop-color="#2BBFFF"/>
@@ -1286,4 +1286,4 @@ var Rn=`<svg xmlns="http://www.w3.org/2000/svg">
1286
1286
  </symbol>
1287
1287
  </svg>
1288
1288
  `;
1289
- export{Rn};
1289
+ export{Un};
@@ -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 qi({host:t,children:o}){return e(n.Provider,{value:t,children:o})}function d(){let t=r(n);if(t===null)throw Error("Activity host is missing");return t}function T(t){let{Markdown:o}=d();return e(o,{...t})}
2
+ export{qi,d,T};
@@ -0,0 +1,2 @@
1
+ import{C}from"./chunk-9ff3htdp.js";function Zi(r,n){return C.readSkillDocument({path:r,roots:n??null})}
2
+ export{Zi};
@@ -0,0 +1,2 @@
1
+ import{t}from"./chunk-bt01an6h.js";import{et}from"./chunk-6m54xxts.js";import{e,f}from"./chunk-xecs5c6a.js";import{hn}from"./chunk-g7v2xgfh.js";import{Loader2Icon as x}from"lucide-react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as c,EmptyDescription as l,EmptyHeader as d,EmptyTitle as u}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as r,jsxs as i}from"react/jsx-runtime";function Qt({session:o,timeline:s}){let{host:m,client:a}=e(),{t:n}=m,y=t((v)=>v.historyPages[o.id]?.cursor!=null),E=hn(o,s?.turnWork),h=()=>f(m,a.open(o.id,o.cwd)),p=r(et,{...s,session:o,client:a,host:m,turnWork:E});if(o.restoring)return o.items.length===0?i("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[r(x,{className:"size-4 animate-spin","aria-hidden":"true"}),n("conversation.restoring")]}):p;if(!o.attached&&o.items.length===0)return i(c,{className:"flex-1",children:[i(d,{children:[r(u,{children:n("conversation.reopen")}),r(l,{children:n("conversation.detached")})]}),r(g,{onClick:h,children:n("conversation.reopen")})]});if(o.items.length===0&&o.state==="idle"&&!y)return r(c,{className:"flex-1",children:i(d,{children:[r(u,{className:"text-[28px] font-normal",children:n("conversation.welcomeTitle")}),r(l,{className:"truncate font-mono",children:o.cwd})]})});return p}
2
+ export{Qt};
@@ -1,2 +1,2 @@
1
- import{ot}from"./chunk-41z12m3j.js";import{l,Pe}from"./chunk-95qfzbmx.js";import{h}from"./chunk-9cqpn67f.js";import{MoreHorizontalIcon as y}from"lucide-react";import{useEffect as D,useState as p}from"react";import{Button as x}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as P,DropdownMenuContent as b,DropdownMenuItem as g,DropdownMenuTrigger as z}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Skeleton as c}from"@nyssance/shadcn/vega/components/ui/skeleton";import{jsx as o,jsxs as a,Fragment as F}from"react/jsx-runtime";function Fn(n){return n.replace(/^\uFEFF?---\r?\n[\s\S]*?\r?\n(?:---|\.\.\.)[ \t]*(?:\r?\n|$)/,"")}function C(n){let i=n.replaceAll("\\","/"),t=i.lastIndexOf("/");return t<=0?"/":i.slice(0,t)}function I(n){let i=/^(\/\/[^/]+\/[^/]+|[A-Za-z]:\/|\/)/.exec(n)?.[0]??"",t=[];for(let e of n.slice(i.length).split("/")){if(!e||e===".")continue;if(e==="..")t.pop();else t.push(e)}return`${i.replace(/\/$/,"")}/${t.join("/")}`}function ce({path:n,renderHeader:i,description:t}){let e=l(),{t:r}=e,d=e.readFile,[u,f]=p(null),[v,w]=p(null),[M,N]=p(0);D(()=>{let s=!1;return f(null),w(null),(n===null||!d?Promise.resolve(t??""):d(n)).then((m)=>{if(!s)f(m)},(m)=>{if(!s)w(String(m))}),()=>{s=!0}},[n,t,M,d]);let k=n===null||!e.openPath&&!e.revealPath&&!e.copyText?null:a(P,{children:[o(z,{render:o(x,{variant:"ghost",size:"icon-sm","aria-label":r("plugins.card.moreActions")}),children:o(y,{})}),a(b,{align:"end",children:[e.openPath&&o(g,{onClick:()=>void Pe(e,e.openPath(n)),children:r("plugins.skills.document.open")}),e.revealPath&&o(g,{onClick:()=>void Pe(e,e.revealPath(n)),children:r("plugins.skills.document.reveal")}),e.copyText&&o(g,{disabled:u===null,onClick:()=>{if(u!==null)Pe(e,e.copyText(u))},children:r("plugins.skills.document.copy")})]})]});return a(F,{children:[i?i(k):o("div",{className:"flex justify-end",children:k}),o(h,{className:"skill-document bg-muted/50 h-[45dvh] min-h-32 min-w-0 flex-none rounded-xl pe-0",viewportClassName:"overscroll-contain p-5 text-sm leading-6",viewportProps:{role:"region",tabIndex:0,"aria-label":r("plugins.skills.document.content")},children:v?a("div",{role:"alert",className:"space-y-3",children:[a("p",{className:"text-destructive text-sm break-words",children:[r("plugins.skills.document.error"),": ",v]}),o(x,{variant:"outline",size:"sm",onClick:()=>N((s)=>s+1),children:r("plugins.loadError.retry")})]}):u===null?a("div",{role:"status","aria-label":r("plugins.skills.loading"),className:"space-y-3",children:[o(c,{className:"h-6 w-1/3"}),o(c,{className:"h-4 w-full"}),o(c,{className:"h-4 w-full"}),o(c,{className:"h-4 w-2/3"})]}):o(ot,{text:Fn(u),host:{theme:e.theme,copyLabel:r("plugins.copy"),openLink:(s)=>e.openLink(/^(?:[a-z][a-z\d+.-]*:|\/|#)/i.test(s)||n===null?s:I(`${C(n)}/${s}`))}})})]})}
2
- export{Fn,ce};
1
+ import{it}from"./chunk-gyps0vc5.js";import{l,Te}from"./chunk-gjg213m6.js";import{h}from"./chunk-9cqpn67f.js";import{MoreHorizontalIcon as y}from"lucide-react";import{useEffect as D,useState as p}from"react";import{Button as x}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as P,DropdownMenuContent as b,DropdownMenuItem as g,DropdownMenuTrigger as z}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Skeleton as c}from"@nyssance/shadcn/vega/components/ui/skeleton";import{jsx as o,jsxs as a,Fragment as F}from"react/jsx-runtime";function Hn(n){return n.replace(/^\uFEFF?---\r?\n[\s\S]*?\r?\n(?:---|\.\.\.)[ \t]*(?:\r?\n|$)/,"")}function C(n){let i=n.replaceAll("\\","/"),t=i.lastIndexOf("/");return t<=0?"/":i.slice(0,t)}function I(n){let i=/^(\/\/[^/]+\/[^/]+|[A-Za-z]:\/|\/)/.exec(n)?.[0]??"",t=[];for(let e of n.slice(i.length).split("/")){if(!e||e===".")continue;if(e==="..")t.pop();else t.push(e)}return`${i.replace(/\/$/,"")}/${t.join("/")}`}function ce({path:n,renderHeader:i,description:t}){let e=l(),{t:r}=e,d=e.readFile,[u,f]=p(null),[v,w]=p(null),[M,N]=p(0);D(()=>{let s=!1;return f(null),w(null),(n===null||!d?Promise.resolve(t??""):d(n)).then((m)=>{if(!s)f(m)},(m)=>{if(!s)w(String(m))}),()=>{s=!0}},[n,t,M,d]);let k=n===null||!e.openPath&&!e.revealPath&&!e.copyText?null:a(P,{children:[o(z,{render:o(x,{variant:"ghost",size:"icon-sm","aria-label":r("plugins.card.moreActions")}),children:o(y,{})}),a(b,{align:"end",children:[e.openPath&&o(g,{onClick:()=>void Te(e,e.openPath(n)),children:r("plugins.skills.document.open")}),e.revealPath&&o(g,{onClick:()=>void Te(e,e.revealPath(n)),children:r("plugins.skills.document.reveal")}),e.copyText&&o(g,{disabled:u===null,onClick:()=>{if(u!==null)Te(e,e.copyText(u))},children:r("plugins.skills.document.copy")})]})]});return a(F,{children:[i?i(k):o("div",{className:"flex justify-end",children:k}),o(h,{className:"skill-document bg-muted/50 h-[45dvh] min-h-32 min-w-0 flex-none rounded-xl pe-0",viewportClassName:"overscroll-contain p-5 text-sm leading-6",viewportProps:{role:"region",tabIndex:0,"aria-label":r("plugins.skills.document.content")},children:v?a("div",{role:"alert",className:"space-y-3",children:[a("p",{className:"text-destructive text-sm break-words",children:[r("plugins.skills.document.error"),": ",v]}),o(x,{variant:"outline",size:"sm",onClick:()=>N((s)=>s+1),children:r("plugins.loadError.retry")})]}):u===null?a("div",{role:"status","aria-label":r("plugins.skills.loading"),className:"space-y-3",children:[o(c,{className:"h-6 w-1/3"}),o(c,{className:"h-4 w-full"}),o(c,{className:"h-4 w-full"}),o(c,{className:"h-4 w-2/3"})]}):o(it,{text:Hn(u),host:{theme:e.theme,copyLabel:r("plugins.copy"),openLink:(s)=>e.openLink(/^(?:[a-z][a-z\d+.-]*:|\/|#)/i.test(s)||n===null?s:I(`${C(n)}/${s}`))}})})]})}
2
+ export{Hn,ce};
@@ -0,0 +1,2 @@
1
+ import{Qe}from"./chunk-cm5rcd9q.js";import{R,Fo}from"./chunk-6pwy0ncf.js";import{n}from"./chunk-bt01an6h.js";import{cn as d}from"cn";import{SquareIcon as b}from"lucide-react";import{Kbd as f}from"@nyssance/shadcn/vega/components/ui/kbd";import{Tooltip as h,TooltipContent as I,TooltipTrigger as T}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as o,jsxs as r,Fragment as P}from"react/jsx-runtime";var v=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform);function Io({active:a,sending:e,ready:p,hasMentions:m=!1,onStop:c}){let{t}=n(),s=Qe(),u=m||s.textInput.value.trim().length>0||s.attachments.files.length>0,l=!p||e||!u,i=a?t("composer.steer"):t("composer.send");return r(P,{children:[a&&o(R,{"aria-label":t("composer.stop"),title:t("composer.stop"),className:"border-border size-7 rounded-full border",onClick:c,children:o(b,{className:"size-3 fill-current"})}),o("div",{className:d(l&&"cursor-not-allowed"),children:r(h,{children:[o(T,{render:o(Fo,{"aria-label":i,disabled:l,"aria-busy":e,status:e?"submitted":"ready"})}),r(I,{role:"tooltip",children:[o("span",{className:"min-w-0",children:i}),o(f,{className:"shrink-0",children:v?"↩":"Enter"})]})]})})]})}
2
+ export{Io};
@@ -1,2 +1,2 @@
1
- import{b}from"./chunk-jrnfqqfc.js";import{EmojiPicker as t}from"frimousse";import{BoxIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Popover as x,PopoverContent as f,PopoverTrigger as j}from"@nyssance/shadcn/vega/components/ui/popover";import{jsx as o,jsxs as n}from"react/jsx-runtime";function ze({emoji:s,onChange:l}){let[m,r]=d(!1),{t:a,i18n:c,emojibaseUrl:p}=b();return n(x,{open:m,onOpenChange:r,children:[o(j,{onClick:(e)=>e.stopPropagation(),onPointerDown:(e)=>e.stopPropagation(),render:o(g,{variant:"ghost",size:"icon-xs",className:"relative z-10","aria-label":a("collection.emoji"),children:s||o(u,{className:"size-3.5"})})}),o(f,{align:"start",className:"w-auto p-0",children:n(t.Root,{emojibaseUrl:p,locale:c.language==="zh-CN"?"zh":"en",className:"bg-popover flex h-80 w-72 flex-col",onEmojiSelect:({emoji:e})=>{l(e),r(!1)},children:[o(t.Search,{"aria-label":a("collection.emoji"),className:"focus-visible:border-ring mx-2 mt-2 flex h-8 rounded-md border bg-transparent px-2 text-sm outline-none"}),n(t.Viewport,{className:"relative flex-1 outline-none",children:[o(t.Loading,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs",children:"…"}),o(t.Empty,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs"}),o(t.List,{className:"pb-1.5 select-none",components:{CategoryHeader:({category:e,...i})=>o("div",{className:"bg-popover text-muted-foreground px-3 pt-3 pb-1.5 text-xs",...i,children:e.label}),Row:({children:e,...i})=>o("div",{className:"scroll-my-1.5 px-1.5",...i,children:e}),Emoji:({emoji:e,...i})=>o("button",{type:"button",className:"data-[active]:bg-accent flex size-8 items-center justify-center rounded-md text-lg",...i,children:e.emoji})}})]})]})})]})}
2
- export{ze};
1
+ import{w}from"./chunk-6hxa1n8n.js";import{EmojiPicker as t}from"frimousse";import{BoxIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Popover as x,PopoverContent as f,PopoverTrigger as b}from"@nyssance/shadcn/vega/components/ui/popover";import{jsx as o,jsxs as n}from"react/jsx-runtime";function Ve({emoji:s,onChange:l}){let[m,r]=d(!1),{t:a,i18n:c,emojibaseUrl:p}=w();return n(x,{open:m,onOpenChange:r,children:[o(b,{onClick:(e)=>e.stopPropagation(),onPointerDown:(e)=>e.stopPropagation(),render:o(g,{variant:"ghost",size:"icon-xs",className:"relative z-10","aria-label":a("collection.emoji"),children:s||o(u,{className:"size-3.5"})})}),o(f,{align:"start",className:"w-auto p-0",children:n(t.Root,{emojibaseUrl:p,locale:c.language==="zh-CN"?"zh":"en",className:"bg-popover flex h-80 w-72 flex-col",onEmojiSelect:({emoji:e})=>{l(e),r(!1)},children:[o(t.Search,{"aria-label":a("collection.emoji"),className:"focus-visible:border-ring mx-2 mt-2 flex h-8 rounded-md border bg-transparent px-2 text-sm outline-none"}),n(t.Viewport,{className:"relative flex-1 outline-none",children:[o(t.Loading,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs",children:"…"}),o(t.Empty,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs"}),o(t.List,{className:"pb-1.5 select-none",components:{CategoryHeader:({category:e,...i})=>o("div",{className:"bg-popover text-muted-foreground px-3 pt-3 pb-1.5 text-xs",...i,children:e.label}),Row:({children:e,...i})=>o("div",{className:"scroll-my-1.5 px-1.5",...i,children:e}),Emoji:({emoji:e,...i})=>o("button",{type:"button",className:"data-[active]:bg-accent flex size-8 items-center justify-center rounded-md text-lg",...i,children:e.emoji})}})]})]})})]})}
2
+ export{Ve};
@@ -0,0 +1,2 @@
1
+ import{s,z,jt}from"./chunk-az434tgy.js";var To=5000;function Le(t){return"pastedText"in t}function Zr(t){return`file://${encodeURI(t).replaceAll("#","%23").replaceAll("?","%3F")}`}function We(t,e,o){let i=(r,n)=>{for(let[a,x]of s){if(!x.attachments.some((p)=>p.id===e.id))continue;z(a,(p)=>p.map((d)=>d.id===e.id?{...e,url:n===void 0?"":Zr(n),pastedText:{text:e.pastedText.text,status:r}}:d))}};if(!s.get(t)?.attachments.some((r)=>r.id===e.id))return;i("pending"),jt(e.id,o("pasted-text.txt",e.pastedText.text).then((r)=>i("ready",r)).catch(()=>i("error")))}function Vt(t,e,o,i){if(t.defaultPrevented||t.currentTarget.disabled)return;if([...t.clipboardData.items].some((a)=>a.kind==="file"&&a.type.startsWith("image/")))return;let r=t.clipboardData.getData("text/plain");if(r.length<To)return;t.preventDefault(),t.stopPropagation();let n={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:o,url:"",pastedText:{text:r,status:"pending"}};z(e,(a)=>[...a,n]),We(e,n,i)}
2
+ export{To,Le,Zr,We,Vt};
@@ -1,2 +1,2 @@
1
- import{An}from"./chunk-br9wsczn.js";import{Li}from"./chunk-0stda83g.js";import{Q}from"./chunk-z8njjc2c.js";import{De,Oi}from"./chunk-qqqcqvrv.js";import{e}from"./chunk-epg5w48v.js";import{useCallback as s}from"react";import"@alwith/module-chat/search.css";import{jsx as m}from"react/jsx-runtime";var h="alwith-chat:find";function Fr(t){window.dispatchEvent(new CustomEvent(h,{detail:t}))}function Yt({sessionId:t,rootRef:p}){let{host:v,client:a}=e(),{t:l}=v,u=Q(De,(r)=>r),w=s(()=>p.current?.querySelector("[data-chat-scroll]")??null,[p]),y=s((r)=>u.sessionId===t?An(u.turns,r,u.terminals):[],[u,t]),S=s((r,i)=>Oi(t,r,i),[t]),b=s(async(r)=>{await a.loadHistoryNavigation(t);let i=a.state.historyNavigation[t];for(let n of i?.turns??[]){if(r.aborted)return;if(!a.state.historyNavigation[t]?.loadedTurnIds.includes(n.turnId))await a.loadHistoryTurn(t,n.turnId)}let c=new Set;while(!r.aborted){let n=a.state.historyPages[t]?.cursor;if(n==null)return;if(c.has(n))throw Error("Chat history pagination returned a repeated cursor");c.add(n),await a.loadOlderHistory(t)}},[a,t]),{subscribeSearch:f,shouldOpenSearch:d}=v,g=s((r)=>{let i=(o)=>{if((o.metaKey||o.ctrlKey)&&!o.altKey&&!o.shiftKey&&o.key.toLowerCase()==="f"){if(d&&!d(o))return;o.preventDefault(),r()}},c=(o)=>{if(o.detail===t)r()};window.addEventListener("keydown",i),window.addEventListener(h,c);let n=f?.(r);return()=>{window.removeEventListener("keydown",i),window.removeEventListener(h,c),n?.()}},[f,d,t]);return m("div",{className:"absolute inset-x-0 top-0 z-30",children:m(Li,{placement:"body",getViewport:w,findSourceMatches:y,revealTurn:S,prepareSource:b,subscribeOpen:g,labels:{search:l("conversation.search.label"),placeholder:l("conversation.search.placeholder"),previous:l("conversation.search.previous"),next:l("conversation.search.next")}},t)})}
2
- export{Fr,Yt};
1
+ import{Fn}from"./chunk-db0g8rr1.js";import{Bi}from"./chunk-p0egvanw.js";import{X}from"./chunk-bt01an6h.js";import{He,Ki}from"./chunk-b5ywqwnr.js";import{e}from"./chunk-xecs5c6a.js";import{useCallback as s}from"react";import"@alwith/module-chat/search.css";import{jsx as m}from"react/jsx-runtime";var h="alwith-chat:find";function jr(t){window.dispatchEvent(new CustomEvent(h,{detail:t}))}function Xt({sessionId:t,rootRef:p}){let{host:v,client:a}=e(),{t:l}=v,u=X(He,(r)=>r),w=s(()=>p.current?.querySelector("[data-chat-scroll]")??null,[p]),y=s((r)=>u.sessionId===t?Fn(u.turns,r,u.terminals):[],[u,t]),S=s((r,i)=>Ki(t,r,i),[t]),b=s(async(r)=>{await a.loadHistoryNavigation(t);let i=a.state.historyNavigation[t];for(let n of i?.turns??[]){if(r.aborted)return;if(!a.state.historyNavigation[t]?.loadedTurnIds.includes(n.turnId))await a.loadHistoryTurn(t,n.turnId)}let c=new Set;while(!r.aborted){let n=a.state.historyPages[t]?.cursor;if(n==null)return;if(c.has(n))throw Error("Chat history pagination returned a repeated cursor");c.add(n),await a.loadOlderHistory(t)}},[a,t]),{subscribeSearch:f,shouldOpenSearch:d}=v,g=s((r)=>{let i=(o)=>{if((o.metaKey||o.ctrlKey)&&!o.altKey&&!o.shiftKey&&o.key.toLowerCase()==="f"){if(d&&!d(o))return;o.preventDefault(),r()}},c=(o)=>{if(o.detail===t)r()};window.addEventListener("keydown",i),window.addEventListener(h,c);let n=f?.(r);return()=>{window.removeEventListener("keydown",i),window.removeEventListener(h,c),n?.()}},[f,d,t]);return m("div",{className:"absolute inset-x-0 top-0 z-30",children:m(Bi,{placement:"body",getViewport:w,findSourceMatches:y,revealTurn:S,prepareSource:b,subscribeOpen:g,labels:{search:l("conversation.search.label"),placeholder:l("conversation.search.placeholder"),previous:l("conversation.search.previous"),next:l("conversation.search.next")}},t)})}
2
+ export{jr,Xt};
@@ -0,0 +1,4 @@
1
+ import{vi}from"./chunk-bjfcyfp5.js";import{n}from"./chunk-bt01an6h.js";import{xi,bi}from"./chunk-yf39xswe.js";import{Y}from"./chunk-y2g8d94r.js";import{re}from"./chunk-8wdkc41j.js";import{isEmbeddedResource as g,isImage as d,isResourceLink as f,isText as x}from"@nyssance/codex-acp-v2/client";import{memo as p}from"react";import{jsx as r,jsxs as h}from"react/jsx-runtime";var hi=p(function({item:t,messageTime:c}){let l=n(),o=bi(t._meta),m=o?o.map((e)=>e.question===void 0?e.text:`${e.question}
2
+ ${e.text}`).join(`
3
+ `):re(t),a=t.content.filter(d),i=t.content.filter((e)=>f(e)||g(e)),u=o??t.content.filter(x).map((e)=>{let s=xi(e._meta);return s?{question:s.question,text:s.answer}:{text:e.text}});if(m.length===0&&a.length===0&&i.length===0)return null;return h("div",{className:"group/codex-user flex min-w-0 flex-col items-end gap-2","data-content-search-unit-key":t.id,children:[i.length>0&&r("div",{className:"codex-user-mentions",children:i.map((e,s)=>r(Y,{block:e},`${t.id}:${s}`))}),r(vi,{host:l,message:t,text:m,textParts:u.some((e)=>("question"in e))?u:void 0,images:a,mentions:[],messageTime:c})]})});
4
+ export{hi};
@@ -1,2 +1,2 @@
1
- import{k}from"./chunk-dxgha4a2.js";import{useState as g}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as w,DropdownMenuContent as x,DropdownMenuTrigger as b}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as o}from"react/jsx-runtime";function Do({value:a,currentName:n,icon:r,options:p,label:i,header:t,onValueChange:s,showLabel:d=!1,disabled:l=!1,warning:u=!1}){let[m,c]=g(!1);return o(w,{open:m,onOpenChange:c,children:[e(b,{render:o(f,{disabled:l,"data-permission-warning":u?"":void 0,variant:"ghost","aria-label":`${i}: ${n}`,title:n,className:"text-muted-foreground data-popup-open:hover:bg-muted h-7 gap-1.5 rounded-full bg-transparent px-2 text-xs font-normal whitespace-nowrap data-popup-open:bg-transparent",children:[r,e("span",{className:d?"max-w-40 truncate":"hidden max-w-40 truncate @[40rem]/input-footer:inline-block",children:n})]})}),o(x,{align:"start",sideOffset:4,className:"permission-mode-menu z-100 w-auto max-w-[calc(100vw-2rem)] min-w-72 rounded-xl p-1.5",children:[t&&e("div",{className:"text-muted-foreground flex items-center px-1.5 pt-0.5 pb-1 text-[11px] leading-4",children:e("span",{children:t})}),e(k,{value:a,onValueChange:s,itemClassName:"items-center gap-2 py-1 pr-6 pl-2 whitespace-nowrap",options:p})]})]})}
2
- export{Do};
1
+ import{_}from"./chunk-4jh2wk80.js";import{useState as g}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as w,DropdownMenuContent as x,DropdownMenuTrigger as b}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as o}from"react/jsx-runtime";function jo({value:a,currentName:n,icon:r,options:p,label:i,header:t,onValueChange:s,showLabel:d=!1,disabled:l=!1,warning:u=!1}){let[m,c]=g(!1);return o(w,{open:m,onOpenChange:c,children:[e(b,{render:o(f,{disabled:l,"data-permission-warning":u?"":void 0,variant:"ghost","aria-label":`${i}: ${n}`,title:n,className:"text-muted-foreground data-popup-open:hover:bg-muted h-7 gap-1.5 rounded-full bg-transparent px-2 text-xs font-normal whitespace-nowrap data-popup-open:bg-transparent",children:[r,e("span",{className:d?"max-w-40 truncate":"hidden max-w-40 truncate @[40rem]/input-footer:inline-block",children:n})]})}),o(x,{align:"start",sideOffset:4,className:"permission-mode-menu z-100 w-auto max-w-[calc(100vw-2rem)] min-w-72 rounded-xl p-1.5",children:[t&&e("div",{className:"text-muted-foreground flex items-center px-1.5 pt-0.5 pb-1 text-[11px] leading-4",children:e("span",{children:t})}),e(_,{value:a,onValueChange:s,itemClassName:"items-center gap-2 py-1 pr-6 pl-2 whitespace-nowrap",options:p})]})]})}
2
+ export{jo};
@@ -1,2 +1,2 @@
1
- import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function B(e){return i(e.options)?e.options.flatMap((t)=>t.options):e.options}function g(e,t){return e.find((n)=>n.category===t&&o(n))}function G(e){return B(e).find((t)=>t.value===e.currentValue)?.name??e.currentValue}
2
- export{B,g,G};
1
+ import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function j(e){return i(e.options)?e.options.flatMap((t)=>t.options):e.options}function g(e,t){return e.find((n)=>n.category===t&&o(n))}function K(e){return j(e).find((t)=>t.value===e.currentValue)?.name??e.currentValue}
2
+ export{j,g,K};
@@ -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{Co}from"./chunk-aarpb5np.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 bo({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?Co({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{bo};
@@ -0,0 +1,2 @@
1
+ import{C,nn}from"./chunk-9ff3htdp.js";import{kt}from"./chunk-07srtfz3.js";import{useEffect as p,useRef as P,useState as u}from"react";var qn="providers:changed",Wn="providers:managed-revoked",i=(e)=>e;function nr(){return{read:()=>i(C.providersRead()),save:(e,r,t)=>i(C.providersSave({providerId:r,input:t,expectedRevision:e})),saveCustom:(e,r)=>i(C.providersSaveCustom({input:r,expectedRevision:e})),removeCustom:(e,r)=>i(C.providersRemoveCustom({providerId:r,expectedRevision:e})),test:(e)=>C.providersTest({providerId:e}),apply:()=>i(C.providersApply()),onChanged:(e)=>nn[qn].listen((r)=>e(r.payload))}}function or(){return{bind:(e)=>C.providersAccountBind({account:e}),refresh:(e,r)=>i(C.providersRefreshManaged({generation:e,accessToken:r})),clear:async()=>{await C.providersClearManaged()},onRevoked:(e)=>nn[Wn].listen((r)=>e(r.payload.sessionIds))}}async function bt(e){try{return await e.apply()}catch(r){if(!kt(r))throw r;return e.read()}}function Ct(e,r=console.error){let[t,d]=u(null),a=P(r);return a.current=r,p(()=>{let n=!0,v=e.onChanged((o)=>{if(n)d((s)=>s&&s.revision>o.revision?s:o)});return v.then(()=>e.read()).then((o)=>{if(n)d((s)=>s&&s.revision>=o.revision?s:o)}).catch((o)=>{if(n)a.current(o)}),()=>{n=!1,v.then((o)=>o())}},[e]),t}
2
+ export{qn,Wn,nr,or,bt,Ct};
@@ -1,2 +1,2 @@
1
- import{useCallback as l,useSyncExternalStore as d}from"react";var Ge="chat.modelAliases",c={},r="gateway:alwith-managed-litellm:";function o(e){if(e===void 0)return c;if(typeof e!=="object"||e===null||Array.isArray(e)||Object.entries(e).some(([t,n])=>!t.startsWith(r)||t.length===r.length||typeof n!=="string"||!n.trim()||n.length>100))throw Error("Invalid model aliases");return e}function _t(e){let t=l((n)=>e.subscribe((s)=>{if(s.includes(Ge))n()}),[e]);return d(t,()=>o(e.get(Ge)))}async function Pt(e,t,n){if(!t.startsWith(r)||t.length===r.length)throw Error("Invalid ALwith model ID");let s=await e.read(),i={...o(s.values[Ge])},a=n.trim();if(a)i[t]=a;else delete i[t];o(i),await e.write({action:"update",expectedRevision:s.revision,changes:{[Ge]:i}})}
2
- export{Ge,_t,Pt};
1
+ import{useCallback as l,useSyncExternalStore as d}from"react";var Be="chat.modelAliases",c={},r="gateway:alwith-managed-litellm:";function o(e){if(e===void 0)return c;if(typeof e!=="object"||e===null||Array.isArray(e)||Object.entries(e).some(([t,n])=>!t.startsWith(r)||t.length===r.length||typeof n!=="string"||!n.trim()||n.length>100))throw Error("Invalid model aliases");return e}function yt(e){let t=l((n)=>e.subscribe((s)=>{if(s.includes(Be))n()}),[e]);return d(t,()=>o(e.get(Be)))}async function xt(e,t,n){if(!t.startsWith(r)||t.length===r.length)throw Error("Invalid ALwith model ID");let s=await e.read(),i={...o(s.values[Be])},a=n.trim();if(a)i[t]=a;else delete i[t];o(i),await e.write({action:"update",expectedRevision:s.revision,changes:{[Be]:i}})}
2
+ export{Be,yt,xt};
@@ -1,2 +1,2 @@
1
- import{we}from"./chunk-z8njjc2c.js";import{createContext as v,useContext as C,useMemo as a}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function Xt({host:o,client:n,children:t}){let s=a(()=>({host:o,client:n}),[o,n]);return r(we,{host:o,client:n,children:r(i,{value:s,children:t})})}function e(){let o=C(i);if(o===null)throw Error("Conversation host is missing");return o}function f(o,n){n.catch((t)=>{if(o.reportError)o.reportError(t);else console.error(t)})}
2
- export{Xt,e,f};
1
+ import{ke}from"./chunk-bt01an6h.js";import{createContext as v,useContext as C,useMemo as a}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function Jt({host:o,client:n,children:t}){let s=a(()=>({host:o,client:n}),[o,n]);return r(ke,{host:o,client:n,children:r(i,{value:s,children:t})})}function e(){let o=C(i);if(o===null)throw Error("Conversation host is missing");return o}function f(o,n){n.catch((t)=>{if(o.reportError)o.reportError(t);else console.error(t)})}
2
+ export{Jt,e,f};