@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
@@ -0,0 +1,2 @@
1
+ import{Yo}from"./chunk-9w4fg6bn.js";import{ke,n,Se,t,st}from"./chunk-bt01an6h.js";import{Ei,rt,An,Fi,Di}from"./chunk-8wdkc41j.js";import{ot}from"./chunk-gha517v4.js";import{ri}from"./chunk-9b8y72yf.js";import{oi}from"./chunk-rch4xpj1.js";import{Ci,wi}from"./chunk-ehcpnhfw.js";import{ji,$i}from"./chunk-b5ywqwnr.js";import{ni}from"./chunk-dbrs7sen.js";import{ii}from"./chunk-yjk5a037.js";import{hi}from"./chunk-vpm5ddtt.js";import{codexExtensionCapabilities as ze,codexMessageError as Ve,codexRetryNotice as Be,codexTurnError as qe,nativeTurnId as ge}from"@nyssance/codex-acp-v2/client";import{ArrowDownIcon as Oe}from"lucide-react";import{useCallback as M,useEffect as N,useLayoutEffect as ve,useMemo as Q,useRef as h,useState as U}from"react";import{flushSync as Te}from"react-dom";import{Button as Y}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as E}from"react/jsx-runtime";var ye=24;function Fe(e){let d=Math.max(0,e.turnTopPx-ye),g=Math.max(0,e.scrollHeightPx-e.viewportHeightPx),s=d-g;return{scrollTopPx:d,spacerPx:s>0?e.spacerPx+s:e.spacerPx}}function Ke({viewportRef:e,viewportProps:d,children:g}){return o("div",{ref:e,...d,className:"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain outline-none",children:g})}function Ue({sessionId:e,turnId:d,root:g,error:s,connected:R}){let z=h(null),V=Se(),{t:b}=n(),S=M(()=>{V.loadHistoryTurn(e,d).catch(()=>{})},[V,e,d]);return N(()=>{if(!g||!z.current||!R||s)return;let w=new IntersectionObserver((_)=>{if(_.some((v)=>v.isIntersecting))w.disconnect(),S()},{root:g,rootMargin:"800px 0px"});return w.observe(z.current),()=>w.disconnect()},[g,R,s,S]),o("div",{ref:z,className:"flex min-h-80 flex-col justify-center gap-3 py-8","data-history-turn":d,"data-markdown-pending":!0,children:s?E("div",{className:"flex flex-col items-center gap-2",children:[o("p",{role:"alert",className:"text-destructive text-xs",children:s}),o(Y,{variant:"outline",size:"sm",onClick:S,disabled:!R,children:b("timeline.navigationRetry")})]}):E("div",{role:"status","aria-label":b("timeline.navigationLoading"),className:"space-y-3",children:[o("div",{className:"bg-muted ml-auto h-5 w-1/3 rounded"}),o("div",{className:"bg-muted h-3 w-4/5 rounded"}),o("div",{className:"bg-muted h-3 w-3/5 rounded"})]})})}function _e(e,d){let g=h([]),s=h(null);if(s.current?.items!==e.items||s.current.state!==e.state||s.current.ended!==e.turnEndedAt||s.current.usage!==e.turnUsage||s.current.historyOrder!==d)s.current={state:e.state,items:e.items,ended:e.turnEndedAt,usage:e.turnUsage,historyOrder:d,turns:Ei(e,g.current,d)};let R=s.current.turns;return g.current=R,R}function et(e){return o(ke,{host:e.host,client:e.client,children:o(We,{...e})})}function We({session:e,leading:d,afterTurn:g,turnWork:s,answerActions:R,turnFooter:z,renderUserMessage:V,insert:b,navigation:S,anchorNewTurn:w=!1,Viewport:_=Ke}){let v=Se(),A=n(),T=t((r)=>r.historyNavigation[e.id]),c=_e(e,T?.turns),L=c.at(-1)?.key,xe=Fi(e,c),y=e.state==="running"||e.state==="requires_action",W=Q(()=>oi(c,T),[c,T]),Z=Q(()=>W.flatMap((r)=>r.turn===void 0?[]:[{...r.turn,key:r.turnKey}]),[W]),he=Q(()=>S===void 0?[]:Ci(c,e.turnUsage,T),[S,c,e.turnUsage,T]),ee=b&&b.afterItemId!==null?c.findIndex((r)=>r.items.some((a)=>a.id===b.afterItemId)):-1,D=h(c);D.current=c;let[l,be]=U(null),x=t((r)=>r.historyPages[e.id]),k=t((r)=>r.connection==="ready"),we=t((r)=>ze(r.agent).sessionRetry),te=x!==void 0;N(()=>{if(k&&te&&!e.restoring)v.loadHistoryNavigation(e.id).catch(()=>{})},[v,k,te,e.id,e.restoring]);let[Re,Pe]=U(!1),O=h(null),[Ie,ne]=U(!1),re=h(0),j=h({key:L,running:y});j.current={key:L,running:y};let[ie,F]=U(0),I=h(0),H=h(null);I.current=ie;let He=M(()=>{if(H.current!==null)H.current.keepTop=!1},[]),{isFollowing:C,scrollToBottom:X,stopFollowing:B,schedulePin:oe,contentResized:le,beginLocate:ae,cancelLocation:ue}=ii(l,y,He),se=M(()=>{if(l===null||!y)return;let r=c.at(-1)?.key;if(r===void 0)return;let a=ae(!0),u=()=>a.isCurrent()&&j.current.running&&j.current.key===r,i=()=>requestAnimationFrame(()=>requestAnimationFrame(()=>{if(!u())return;let f=l.querySelector(`[data-codex-turn="${CSS.escape(r)}"]`);if(f===null)return;let m=l.scrollTop+f.getBoundingClientRect().top-l.getBoundingClientRect().top,P=Fe({turnTopPx:m,scrollHeightPx:l.scrollHeight,viewportHeightPx:l.clientHeight,spacerPx:I.current});H.current=P.spacerPx>0?{element:f,heightPx:f.getBoundingClientRect().height+P.spacerPx,keepTop:!0}:null,Te(()=>F(P.spacerPx)),requestAnimationFrame(()=>{if(u())a.finish(P.scrollTopPx)})})),p=O.current;if(p===null)return;p.scrollToKey(r,void 0,{align:"top"}).then(()=>{if(u())i()})},[ae,y,l,c]);ve(()=>{if(!w||y)return;ue(),H.current=null,I.current=0,F(0)},[w,ue,y]);let G=M(()=>{B(),v.loadOlderHistory(e.id).catch(()=>{})},[v,e.id,B]);N(()=>{if(l===null)return;let r=()=>{let a=l.scrollTop<600;if(Pe(a),a&&!T?.complete&&k&&!e.restoring&&!C&&x?.cursor&&!x.loading&&!x.error)G()};return r(),l.addEventListener("scroll",r,{passive:!0}),()=>l.removeEventListener("scroll",r)},[k,x,C,G,l,e.restoring,T?.complete]),N(()=>{ji({sessionId:e.id,turns:Z,api:O.current,beforeReveal:B,terminals:e.terminals})},[e.id,e.terminals,Z,B]),N(()=>()=>$i(e.id),[e.id]);let Ne=M(async(r,a)=>{let u=++re.current;ne(!0);try{if(r.isLoaded===!1&&r.nativeTurnId!==void 0)await v.loadHistoryTurn(e.id,r.nativeTurnId),await new Promise((m)=>requestAnimationFrame(()=>m()));if(!a())return null;let i=D.current.find((m)=>m.user?.id===(r.messageId??r.id))??D.current.find((m)=>m.user!==null&&r.nativeTurnId!==void 0&&m.items.some((P)=>ge(P)===r.nativeTurnId));if(!i?.user)return null;let p=i.user.id,f=O.current;if(f===null)throw Error("Virtual timeline is not mounted");return await f.scrollToKey(i.key,(m)=>m.querySelector(`[data-content-search-unit-key="${CSS.escape(p)}"]`),{align:"top"}),document.querySelector(`[data-chat-scroll] [data-content-search-unit-key="${CSS.escape(p)}"]`)}finally{if(re.current===u)ne(!1)}},[v,e.id]),Ee=M(async(r)=>{if(r.nativeTurnId!==void 0)await v.previewHistoryTurn(e.id,r.nativeTurnId)},[v,e.id]);N(()=>{if(l===null)return;let r=l.querySelector("[data-codex-timeline]");if(r===null)throw Error("Timeline content element is missing");let a=new ResizeObserver(()=>{let u=H.current,i=null;if(u!==null){let p=Math.max(0,u.heightPx-u.element.getBoundingClientRect().height);if(p!==I.current&&(p<I.current||u.keepTop)){if(I.current=p,Te(()=>F(p)),p===0)H.current=null}if(p>0&&u.keepTop)i=l.scrollTop+u.element.getBoundingClientRect().top-l.getBoundingClientRect().top-ye}le(i)});if(a.observe(r),a.observe(l),L!==void 0){let u=l.querySelector(`[data-codex-turn="${CSS.escape(L)}"]`);if(u===null)throw Error("Latest turn is not mounted");a.observe(u)}return()=>a.disconnect()},[le,L,l]),N(()=>{if(e.items.length===0)return;oe()},[oe,e.items]);let ce=h(null);ve(()=>{if(l===null)return;let r=c.at(-1),a=ce.current;if(ce.current=r===void 0?null:{key:r.key,running:y},r===void 0||a===null||r.user===null||r.replayed)return;if(w){if(y&&e.turnEndedAt[r.user.id]===void 0&&(r.key!==a.key||!a.running))H.current=null,I.current=0,F(0),se()}else if(r.key!==a.key)X()},[se,w,y,X,l,e.turnEndedAt,c]);let Ae=(r,a)=>{let u=r,i=u.turn;if(i===void 0){if(u.nativeTurnId===void 0)throw Error(`Turn is missing at index ${a}`);return o(Ue,{sessionId:e.id,turnId:u.nativeTurnId,root:l,error:T?.turnErrors[u.nativeTurnId],connected:k&&!C&&!Ie})}let p=c.indexOf(i),f=i.key===xe,m=Di(e,c,p),P=!f&&m.continued,K=i.key===L,q=i.errors.at(-1),de=q===void 0?null:Ve(q),J=q===void 0?null:ge(q),Le=!e.subagent&&K&&!f&&k&&we&&e.attached&&!e.readOnly&&!e.restoring&&q===e.items.at(-1)&&de!==null&&qe(de).category==="overloaded"&&J!==null&&e.lastStopReason!=="end_turn"&&e.lastStopReason!=="cancelled",me=z?.(i)??null,pe=s?.(i)??null,Ce=pe!==null||i.work.length>0||i.final.length>0||i.errors.length>0||f||me!==null||rt(i)||An(i)||K&&(e.error!==null||e.lastStopReason==="cancelled"),fe=i.user===null?null:ot(i);return E("div",{"data-virtualized-turn-content":!0,"data-codex-turn":i.key,className:"flex flex-col gap-1.5",children:[i.user!==null&&(V===void 0?o(hi,{item:i.user,messageTime:fe}):V(i.user,fe)),Ce&&o(ri,{sessionId:e.id,turn:i,terminals:e.terminals,active:f,blocked:e.state==="requires_action",continued:P,edits:m.edits,activityItems:m.items,workStartedAt:m.startedAt,isLast:K,error:e.error,retrying:f?Be(e._meta)??void 0:void 0,retry:Le?{turnId:J,delaySeconds:ni(c),run:(Me)=>v.retrySession(e.id,J,Me)}:void 0,interrupted:An(i)||!f&&K&&e.lastStopReason==="cancelled",extraWork:pe,answerActions:R?.(i),footer:me}),a===ee&&b?.node,g?.(i)]})};return E("div",{className:"relative flex min-h-0 flex-1 flex-col","data-stream-style":"codexUI",children:[o(_,{viewportRef:be,viewportProps:{"data-chat-scroll":"",style:{overflowAnchor:"none"},tabIndex:0,role:"log","aria-label":A.t("timeline.label")},children:o("div",{className:"codex-timeline-content flex min-h-full w-full flex-col",children:E("div",{"data-timeline-user-message-navigation-content":!0,className:"mx-auto flex w-full max-w-3xl shrink-0 flex-col",children:[b&&ee===-1&&b.node,o(Yo,{ref:O,entries:W,renderTurn:Ae,scrollElement:l,sessionKey:e.id,preserveViewport:!C,leadingInsetPx:12,leadingContent:d===void 0?void 0:o("div",{className:"pt-3",children:d})}),w&&o("div",{"aria-hidden":"true","data-turn-anchor-spacer":!0,className:"shrink-0",style:{height:ie}}),o("div",{"aria-hidden":"true",className:"h-6 shrink-0"})]})})}),o("div",{"aria-hidden":"true",className:"codex-timeline-bottom-fade"}),T?.error&&o("div",{className:"absolute inset-x-0 top-2 z-10 flex justify-center",children:o(Y,{variant:"outline",size:"sm",disabled:!k,title:T.error,onClick:()=>{v.loadHistoryNavigation(e.id).catch(()=>{})},children:A.t("timeline.navigationRetry")})}),Re&&x?.cursor&&!T?.complete&&E("div",{className:"absolute inset-x-0 top-2 z-10 flex flex-col items-center gap-1","data-history-loader":!0,children:[o(Y,{variant:"outline",size:"sm",disabled:!k||e.restoring||x.loading,onClick:G,children:x.loading?A.t("timeline.loadingEarlier"):A.t("timeline.loadEarlier")}),x.error&&o("p",{role:"alert",className:"bg-background text-destructive max-w-md rounded px-2 py-1 text-xs",children:x.error})]}),S!==void 0&&o(wi,{items:he,audio:S.audio,scrollRoot:l,beforeReveal:B,ensureItemMounted:Ne,onPreviewItem:Ee,onRevealError:(r)=>st(A,r),targetTopMarginPx:16},e.id),o("button",{type:"button",className:C?"codex-scroll-to-bottom codex-scroll-to-bottom-hidden":"codex-scroll-to-bottom",tabIndex:C?-1:void 0,onClick:X,"aria-label":A.t("timeline.scrollToBottom"),children:y?E("span",{className:"codex-scroll-to-bottom-dots","aria-hidden":"true",children:[o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"})]}):o(Oe,{})})]})}
2
+ export{et};
@@ -0,0 +1,2 @@
1
+ import{Do,be}from"./chunk-g3snk3nb.js";import{Ho}from"./chunk-35z0nr4v.js";import{pn,mn,Ze,Ye,gn}from"./chunk-cm5rcd9q.js";import{cn as P}from"cn";import{ArrowUpIcon as ge,Loader2Icon as ve,SquareIcon as he,XIcon as Pe}from"lucide-react";import{Children as Y,useCallback as h,useEffect as F,useMemo as Ie,useRef as M,useState as ye}from"react";import{flushSync as xe}from"react-dom";import{InputGroup as Le,InputGroupAddon as ee,InputGroupButton as te}from"@nyssance/shadcn/vega/components/ui/input-group";import{jsx as a,jsxs as Te}from"react/jsx-runtime";function Z(u){let o=new FormData(u).get("message");return typeof o==="string"?o:""}var Mo=({className:u,bashMode:o=!1,attachmentPolicy:I,onCommand:d,onSubmitError:y,canSubmit:f,onSubmitAsync:g,accept:E,multiple:re,globalDrop:C,syncHiddenInput:U,maxFiles:z,maxFileSize:H,onError:b,onSubmit:ne,children:oe,...se})=>{let s=Ye(),l=!!s,ie=o&&l&&s.textInput.value.startsWith("!"),x=M(null),A=M(null),k=M(!1),[ae,D]=ye([]),c=l?s.attachments.files:ae,B=M(c);B.current=c;let ue=h(()=>{x.current?.click()},[]),O=h((e)=>{if(!E||E.trim()==="")return!0;return E.split(",").map((t)=>t.trim()).filter(Boolean).some((t)=>{if(t.endsWith("/*")){let n=t.slice(0,-1);return e.type.startsWith(n)}return e.type===t})},[E]),W=h((e)=>{if(e.type)return e.type;let r=(e.name||"").toLowerCase();if(r.endsWith(".png"))return"image/png";if(r.endsWith(".jpg")||r.endsWith(".jpeg"))return"image/jpeg";if(r.endsWith(".webp"))return"image/webp";if(r.endsWith(".gif"))return"image/gif";if(r.endsWith(".bmp"))return"image/bmp";if(r.endsWith(".svg"))return"image/svg+xml";return""},[]),le=h((e)=>{let r=[...e],t=r.filter((i)=>O(i));if(r.length&&t.length===0){b?.({code:"accept",message:"No files match the accepted types."});return}let n=(i)=>H?i.size<=H:!0,m=t.filter(n);if(t.length>0&&m.length===0){b?.({code:"max_file_size",message:"All files exceed the maximum size."});return}D((i)=>{let v=I?I.uniqueFiles(m,i):m,p=typeof z==="number"?Math.max(0,z-i.length):void 0,_=typeof p==="number"?v.slice(0,p):v;if(typeof p==="number"&&v.length>p)b?.({code:"max_files",message:"Too many files. Some were not added."});let Q=[];for(let T of _){let V=I?.sourcePath(T);Q.push({id:crypto.randomUUID(),type:"file",url:URL.createObjectURL(T),mediaType:W(T),filename:T.name,size:T.size,lastModified:T.lastModified,...V===void 0?{}:{sourcePath:V}})}return[...i,...Q]})},[I,W,O,z,H,b]),pe=h((e)=>D((r)=>{let t=r.find((n)=>n.id===e);if(t?.url)URL.revokeObjectURL(t.url);return r.filter((n)=>n.id!==e)}),[]),me=h(()=>D((e)=>{for(let r of e)if(r.url)URL.revokeObjectURL(r.url);return[]}),[]),G=l?s.attachments.add:le,L=h((e)=>{let r=[...e],t=r.filter((m)=>!(m.type??"").toLowerCase().startsWith("image/"));if(t.length>0){b?.({code:"unsupported_type",message:`Only image attachments are supported. ${t.length} non-image file(s) were ignored.`});return}let n=r.reduce((m,i)=>m+i.size,0);if(n>0){let m=c.filter((i)=>(i.mediaType??"").toLowerCase().startsWith("image/")).reduce((i,v)=>i+(v.size??0),0);if(Do(m,n)){b?.({code:"max_total_size",message:`Total image size must not exceed ${be}MB.`});return}}G(r)},[c,G,b]),j=l?s.attachments.remove:pe,N=l?s.attachments.clear:me,q=l?s.attachments.openFileDialog:ue;F(()=>{if(!l)return;s.__registerFileInput(x,()=>x.current?.click())},[l,s]),F(()=>{if(U&&x.current&&c.length===0)x.current.value=""},[c,U]),F(()=>{let e=A.current;if(!e)return;if(C)return;let r=(n)=>{if(n.dataTransfer?.types?.includes("Files"))n.preventDefault()},t=(n)=>{if(n.dataTransfer?.types?.includes("Files"))n.preventDefault();if(n.dataTransfer?.files&&n.dataTransfer.files.length>0)L(n.dataTransfer.files)};return e.addEventListener("dragover",r),e.addEventListener("drop",t),()=>{e.removeEventListener("dragover",r),e.removeEventListener("drop",t)}},[L,C]),F(()=>{if(!C)return;let e=(t)=>{if(t.dataTransfer?.types?.includes("Files"))t.preventDefault()},r=(t)=>{if(t.dataTransfer?.types?.includes("Files"))t.preventDefault();if(t.dataTransfer?.files&&t.dataTransfer.files.length>0)L(t.dataTransfer.files)};return document.addEventListener("dragover",e),document.addEventListener("drop",r),()=>{document.removeEventListener("dragover",e),document.removeEventListener("drop",r)}},[L,C]),F(()=>()=>{if(!l){for(let e of B.current)if(e.url)URL.revokeObjectURL(e.url)}},[l]);let ce=(e)=>{if(e.currentTarget.files)L(e.currentTarget.files);e.currentTarget.value=""},X=Ie(()=>({files:c.map((e)=>({...e,id:e.id})),add:L,remove:j,clear:N,openFileDialog:q,fileInputRef:x}),[c,L,j,N,q]),w=M({controller:s,files:c,canSubmit:f});w.current={controller:s,files:c,canSubmit:f};let S=M(!0);F(()=>(S.current=!0,()=>{S.current=!1}),[]);let J=async(e)=>{let r=f===void 0?!0:f();if(r!==!0)return{status:"blocked",reason:r};if(k.current)return{status:"blocked",reason:"submission_pending"};if(e===null&&g===void 0)throw Error("Awaitable submission requires onSubmitAsync");let t=A.current;if(t===null)return{status:"blocked",reason:"form_unmounted"};let n=l?s.textInput.value:Z(t),m=s?.textInput.getRevision?.(),i=c,v=()=>{if(!S.current)return;let p=w.current;if(p.files!==i)return;if(l){if(m===void 0||p.controller===null||p.controller.textInput.getRevision?.()!==m)return;if(p.controller.textInput.clearSubmitted===void 0)p.controller.textInput.clear();else p.controller.textInput.clearSubmitted()}else if(Z(t)===n)t.reset();N()};k.current=!0;try{if(d?.(n.trim()))return v(),{status:"accepted"};let p=await Ho(i),_=w.current.canSubmit===void 0?!0:w.current.canSubmit();if(_!==!0)return{status:"blocked",reason:_};if(!S.current)return{status:"blocked",reason:"form_unmounted"};if(p.rejectedCount>0)b?.({code:"accept",message:"One or more images are corrupted and were removed before sending."});if(g!==void 0)await g({text:n,files:p.files});else if(e!==null)await ne({text:n,files:p.files},e);return v(),{status:"accepted"}}finally{k.current=!1}},de=(e)=>{e.preventDefault(),J(e).catch(y)},fe=h((e)=>{if(!e.trim())return;if(l&&s)xe(()=>{s.textInput.setInput(e)});A.current?.requestSubmit()},[s,l]),K=a(mn.Provider,{value:()=>J(null),children:Te(pn.Provider,{value:fe,children:[a("input",{accept:E,"aria-label":"Upload files",className:"hidden",multiple:re,onChange:ce,ref:x,title:"Upload files",type:"file"}),a("form",{className:P("w-full",u),onSubmit:de,ref:A,"data-tour":"chat-input",...se,children:a(Le,{className:P("codex-composer-surface overflow-y-auto has-[[data-slot=input-group-control]:focus-visible]:ring-0",ie&&"border! border-[rgb(255,0,135)] has-[[data-slot=input-group-control]:focus-visible]:border-[rgb(255,0,135)] dark:border-[rgb(253,93,177)] dark:has-[[data-slot=input-group-control]:focus-visible]:border-[rgb(253,93,177)]"),children:oe})})]})});return l?a(Ze.Provider,{value:X,children:K}):a(gn.Provider,{value:X,children:K})};function Ao({className:u,...o}){return a("div",{className:P("flex w-full min-w-0 flex-row items-end gap-2",u),...o})}function Eo({className:u,...o}){return a(ee,{align:"block-end",className:P("order-first flex-wrap gap-1 p-2 pb-1.5",u),...o})}function Lo({className:u,...o}){return a(ee,{align:"block-end",className:P("mt-3.5 justify-between gap-1 p-0",u),...o})}function Ro({className:u,...o}){return a("div",{className:P("flex items-center gap-1",u),...o})}var R=({variant:u="ghost",className:o,size:I,collapsed:d=!1,...y})=>{let f=d||Y.count(y.children)<=1?"icon-xs":"xs";return a(te,{className:P("h-7 rounded-full text-xs font-medium hover:bg-transparent dark:hover:bg-transparent",(d||Y.count(y.children)<=1)&&"size-7",o),size:f,type:"button",variant:u,...y})},Fo=({className:u,variant:o="ghost",size:I="icon-xs",status:d,children:y,...f})=>{let g=a(ge,{className:"size-4"});if(d==="submitted")g=a(ve,{className:"size-4 animate-spin"});else if(d==="streaming")g=a(he,{className:"size-3 fill-current"});else if(d==="error")g=a(Pe,{className:"size-4"});return a(te,{"aria-label":"Submit",className:P("bg-foreground text-background hover:bg-foreground/70 size-7 rounded-full p-0 transition-opacity disabled:opacity-50",u),size:I,type:"submit",variant:o,...f,children:y??g})};
2
+ export{Mo,Ao,Eo,Lo,Ro,R,Fo};
@@ -1,3 +1,3 @@
1
- import{d,_}from"./chunk-6e1bwjtk.js";import{V}from"./chunk-5yzjwrat.js";import{Zo}from"./chunk-0tzra5rn.js";import{oe}from"./chunk-x2nemdjf.js";import{Xo,tt}from"./chunk-htjpckp6.js";import{Yo}from"./chunk-0v2d2kme.js";import{Cn}from"./chunk-84yjrafh.js";import{cn as B}from"cn";import{jsx as o,jsxs as g}from"react/jsx-runtime";var v=new WeakMap,M=1;function R(t){if(t.type==="tool_use"||t.type==="subagent"||t.type==="collab")return`${t.type}:${t.id}`;let n=v.get(t);if(n!==void 0)return`${t.type}:${n}`;let s=M++;return v.set(t,s),`${t.type}:${s}`}function w({block:t,streaming:n,actions:s}){if(t.isApiError)return o("div",{className:"codex-stream-error",children:t.text});return g("div",{className:"codex-assistant-message",children:[o(_,{text:t.text,streaming:n}),s]})}function P({block:t,streaming:n,actions:s,renderText:i}){switch(t.type){case"text":return i===void 0?o(w,{block:t,streaming:n,actions:s}):i({block:t,streaming:n,actions:s});case"thinking":return t.thinking.length>0?o(_,{text:t.thinking,streaming:!t.isComplete}):null;case"plan":return o(oe,{entries:t.entries});case"image":return o("img",{src:`data:${t.source.media_type};base64,${t.source.data}`,className:"max-h-64 rounded",alt:""});case"tool_use":case"subagent":case"collab":return null}}var I=new Set;function ca({message:t,isMostRecentTurn:n,hiddenTools:s=I,time:i,beforeCopy:r,afterCopy:c,providerIcon:u,renderText:A,renderEditedFiles:y}){if(t.streaming===!0&&t.content.every((e)=>e.type==="text"?e.text.length===0:e.type==="thinking"?e.thinking.length===0:!1))return o(N,{});let C=t.content.filter((e)=>e.type==="text").map((e)=>e.text).join(`
2
- `),T=!t.streaming&&C.trim().length>0?o(fn,{text:C,isMostRecentTurn:n,beforeCopy:r,afterCopy:c,time:i}):null,l=Zo(t.content,"compact"),x=l.reduce((e,a,p)=>a.kind==="codexActivityGroup"?p:e,-1),h=l.findIndex((e,a)=>a>x&&e.kind==="block"&&e.block.type==="text"),b=[...t.content].toReversed().find((e)=>e.type==="text"),f=t.content.filter((e)=>e.type==="tool_use"&&V(e).category==="edit"),k=(e)=>{if(e.kind==="codexActivityGroup"){let a=e.blocks.filter((p)=>p.type!=="tool_use"||!s.has(p.name));return a.length===0?null:o(tt,{blocks:a},`activity:${R(a[0])}`)}if(e.kind!=="block")throw Error(`Codex received an incompatible grouped entry: ${e.kind}`);return o(P,{block:e.block,streaming:Boolean(t.streaming),actions:e.block===b?T:void 0,renderText:A},R(e.block))},m=x===-1?0:h===-1?l.length:h;return o(hn,{stateKey:t.id,active:Boolean(t.streaming),startedAt:t.startedAt,durationMs:t.durationMs,providerId:t.providerId,providerIcon:u,work:l.slice(0,m).map(k),answer:l.length>m?l.slice(m).map(k):null,footer:x!==-1&&f.length>0&&(y===void 0?o(Yo,{blocks:f}):y(f))})}function fn({text:t,isMostRecentTurn:n=!1,beforeCopy:s,afterCopy:i,time:r}){let c=d(),{t:u}=c;return g("div",{className:B("mt-1.5 flex h-5 w-fit -translate-x-1 items-center justify-start gap-0.5 [&_*]:transition-none",n?"opacity-100":"opacity-0 group-focus-within/am:opacity-100 group-hover/am:opacity-100"),children:[s,o(Cn,{text:t,label:u("actions.copy"),host:c}),i,r&&o("span",{className:"codex-user-time ms-1",title:r.full,children:r.short})]})}function N({label:t}){let{t:n}=d();return o("div",{className:"codex-pending-message py-2",role:"status",children:o("span",{className:"codex-activity-running",children:t??n("message.thinking")})})}function hn({work:t,answer:n,footer:s,loading:i=!1,loadingLabel:r,...c}){if(i)return o(N,{label:r});return g("div",{className:"group/am codex-assistant-turn",children:[t.length>0&&o(Xo,{...c,children:t}),n!==null&&(t.length===0?n:o("div",{"data-local-conversation-final-assistant":!0,"data-testid":"codex-final-answer",className:"codex-final-answer",children:n})),s]})}
3
- export{ca,fn,hn};
1
+ import{d,T}from"./chunk-teg61ef5.js";import{V}from"./chunk-601kr76a.js";import{ai}from"./chunk-dj8e2ymr.js";import{ie}from"./chunk-76a04a6j.js";import{ci,nt}from"./chunk-a45jg9xv.js";import{li}from"./chunk-7nb0qea6.js";import{Tn}from"./chunk-bjfcyfp5.js";import{cn as M}from"cn";import{jsx as o,jsxs as g}from"react/jsx-runtime";var v=new WeakMap,w=1;function R(t){if(t.type==="tool_use"||t.type==="subagent"||t.type==="collab")return`${t.type}:${t.id}`;let n=v.get(t);if(n!==void 0)return`${t.type}:${n}`;let s=w++;return v.set(t,s),`${t.type}:${s}`}function P({block:t,streaming:n,actions:s}){if(t.isApiError)return o("div",{className:"codex-stream-error",children:t.text});return g("div",{className:"codex-assistant-message",children:[o(T,{text:t.text,streaming:n}),s]})}function I({block:t,streaming:n,actions:s,renderText:i}){switch(t.type){case"text":return i===void 0?o(P,{block:t,streaming:n,actions:s}):i({block:t,streaming:n,actions:s});case"thinking":return t.thinking.length>0?o(T,{text:t.thinking,streaming:!t.isComplete}):null;case"plan":return o(ie,{entries:t.entries});case"image":return o("img",{src:`data:${t.source.media_type};base64,${t.source.data}`,className:"max-h-64 rounded",alt:""});case"tool_use":case"subagent":case"collab":return null}}var E=new Set;function xa({message:t,isMostRecentTurn:n,hiddenTools:s=E,time:i,beforeCopy:r,afterCopy:c,providerIcon:u,renderText:A,renderEditedFiles:y}){if(t.streaming===!0&&t.content.every((e)=>e.type==="text"?e.text.length===0:e.type==="thinking"?e.thinking.length===0:!1))return o(N,{});let C=t.content.filter((e)=>e.type==="text").map((e)=>e.text).join(`
2
+ `),b=!t.streaming&&C.trim().length>0?o(yn,{text:C,isMostRecentTurn:n,beforeCopy:r,afterCopy:c,time:i}):null,l=ai(t.content,"compact"),x=l.reduce((e,a,p)=>a.kind==="codexActivityGroup"?p:e,-1),h=l.findIndex((e,a)=>a>x&&e.kind==="block"&&e.block.type==="text"),B=[...t.content].toReversed().find((e)=>e.type==="text"),f=t.content.filter((e)=>e.type==="tool_use"&&V(e).category==="edit"),k=(e)=>{if(e.kind==="codexActivityGroup"){let a=e.blocks.filter((p)=>p.type!=="tool_use"||!s.has(p.name));return a.length===0?null:o(nt,{blocks:a},`activity:${R(a[0])}`)}if(e.kind!=="block")throw Error(`Codex received an incompatible grouped entry: ${e.kind}`);return o(I,{block:e.block,streaming:Boolean(t.streaming),actions:e.block===B?b:void 0,renderText:A},R(e.block))},m=x===-1?0:h===-1?l.length:h;return o(xn,{stateKey:t.id,active:Boolean(t.streaming),startedAt:t.startedAt,durationMs:t.durationMs,providerId:t.providerId,providerIcon:u,work:l.slice(0,m).map(k),answer:l.length>m?l.slice(m).map(k):null,footer:x!==-1&&f.length>0&&(y===void 0?o(li,{blocks:f}):y(f))})}function yn({text:t,isMostRecentTurn:n=!1,beforeCopy:s,afterCopy:i,time:r}){let c=d(),{t:u}=c;return g("div",{className:M("mt-1.5 flex h-5 w-fit -translate-x-1 items-center justify-start gap-0.5 [&_*]:transition-none",n?"opacity-100":"opacity-0 group-focus-within/am:opacity-100 group-hover/am:opacity-100"),children:[s,o(Tn,{text:t,label:u("actions.copy"),host:c}),i,r&&o("span",{className:"codex-user-time ms-1",title:r.full,children:r.short})]})}function N({label:t}){let{t:n}=d();return o("div",{className:"codex-pending-message py-2",role:"status",children:o("span",{className:"codex-activity-running",children:t??n("message.thinking")})})}function xn({work:t,answer:n,footer:s,loading:i=!1,loadingLabel:r,...c}){if(i)return o(N,{label:r});return g("div",{className:"group/am codex-assistant-turn",children:[t.length>0&&o(ci,{...c,children:t}),n!==null&&(t.length===0?n:o("div",{"data-local-conversation-final-assistant":!0,"data-testid":"codex-final-answer",className:"codex-final-answer",children:n})),s]})}
3
+ export{xa,yn,xn};
@@ -1,2 +1,2 @@
1
- import{Marked as p}from"marked";import k from"marked-linkify-it";var h=/<(task-notification|system-reminder|antml:[\w-]+)\b[^>]*>/,m=/^<(task-notification|system-reminder|antml:[\w-]+)\b[^>]*>[\s\S]*?(?:<\/\1\s*>|$)/,d=/^(?:\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\])/,x={extensions:[{name:"math",level:"block",tokenizer(n){let t=d.exec(n);if(t===null)return;return{type:"math",raw:t[0],text:(t[1]??t[2]).trim(),display:!0}}},{name:"math",level:"inline",start(n){return n.search(/\$|\\[([]/)},tokenizer(n){let t=d.exec(n);if(t!==null)return{type:"math",raw:t[0],text:(t[1]??t[2]).trim(),display:!0};let r=/^\\\(([^\n]+?)\\\)/.exec(n);if(r!==null)return{type:"math",raw:r[0],text:r[1].trim(),display:!1};let i=/^\$(?!\$)((?:\\[^\n]|[^\\$\n])+?)\$(?![\d$])/.exec(n);if(i===null||/^\s|\s$/.test(i[1]))return;return{type:"math",raw:i[0],text:i[1],display:!1}}}]};function xi(){let n=new p({gfm:!0}),t=k(),r=t.extensions[0],i=r.tokenizer;r.tokenizer=function(o,a){let e=i.call(this,o,a);if(e===void 0)return;if(e.raw.startsWith("<"))return e;let l=/^(?:[a-z][a-z\d+.-]*:\/\/|www\.)[^/?#]+[/?#]/i.exec(e.raw);if(l===null)return e;let c=l[0].length-1,u=e.raw.slice(c).search(/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u);if(u===-1)return e;let s=e.raw.slice(0,c+u),f=e.href.slice(0,e.href.length-(e.raw.length-s.length));return{...e,raw:s,href:f,text:s,tokens:[{type:"text",raw:s,text:s}]}},n.use(x,t);for(let o of["block","inline"])n.use({extensions:[{name:"internalMessage",level:o,...o==="inline"?{start(a){return h.exec(a)?.index}}:{},tokenizer(a){let e=m.exec(a);if(e===null)return;return{type:"internalMessage",raw:e[0]}},renderer(){return""}}]});return n}function wn(n){let t=n.replaceAll(/[\p{Cc}\s]/gu,"");return!/^(?:data|javascript|vbscript):/i.test(t)}
2
- export{xi,wn};
1
+ import{Marked as p}from"marked";import k from"marked-linkify-it";var h=/<(task-notification|system-reminder|antml:[\w-]+)\b[^>]*>/,m=/^<(task-notification|system-reminder|antml:[\w-]+)\b[^>]*>[\s\S]*?(?:<\/\1\s*>|$)/,d=/^(?:\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\])/,x={extensions:[{name:"math",level:"block",tokenizer(n){let t=d.exec(n);if(t===null)return;return{type:"math",raw:t[0],text:(t[1]??t[2]).trim(),display:!0}}},{name:"math",level:"inline",start(n){return n.search(/\$|\\[([]/)},tokenizer(n){let t=d.exec(n);if(t!==null)return{type:"math",raw:t[0],text:(t[1]??t[2]).trim(),display:!0};let r=/^\\\(([^\n]+?)\\\)/.exec(n);if(r!==null)return{type:"math",raw:r[0],text:r[1].trim(),display:!1};let i=/^\$(?!\$)((?:\\[^\n]|[^\\$\n])+?)\$(?![\d$])/.exec(n);if(i===null||/^\s|\s$/.test(i[1]))return;return{type:"math",raw:i[0],text:i[1],display:!1}}}]};function Ni(){let n=new p({gfm:!0}),t=k(),r=t.extensions[0],i=r.tokenizer;r.tokenizer=function(o,a){let e=i.call(this,o,a);if(e===void 0)return;if(e.raw.startsWith("<"))return e;let l=/^(?:[a-z][a-z\d+.-]*:\/\/|www\.)[^/?#]+[/?#]/i.exec(e.raw);if(l===null)return e;let c=l[0].length-1,u=e.raw.slice(c).search(/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u);if(u===-1)return e;let s=e.raw.slice(0,c+u),f=e.href.slice(0,e.href.length-(e.raw.length-s.length));return{...e,raw:s,href:f,text:s,tokens:[{type:"text",raw:s,text:s}]}},n.use(x,t);for(let o of["block","inline"])n.use({extensions:[{name:"internalMessage",level:o,...o==="inline"?{start(a){return h.exec(a)?.index}}:{},tokenizer(a){let e=m.exec(a);if(e===null)return;return{type:"internalMessage",raw:e[0]}},renderer(){return""}}]});return n}function In(n){let t=n.replaceAll(/[\p{Cc}\s]/gu,"");return!/^(?:data|javascript|vbscript):/i.test(t)}
2
+ export{Ni,In};
@@ -1,2 +1,2 @@
1
- import{createContext as o,useContext as n,useEffect as r}from"react";var ro=o(null);function w(t){let e=n(ro);r(()=>{if(t&&e!==null)return e()},[t,e])}
2
- export{ro,w};
1
+ import{createContext as o,useContext as n,useEffect as r}from"react";var co=o(null);function S(t){let e=n(co);r(()=>{if(t&&e!==null)return e()},[t,e])}
2
+ export{co,S};
@@ -0,0 +1,2 @@
1
+ var Ur={allow_once:0,allow_always:1,reject_once:2,reject_always:3};function qo(e){return[...e].toSorted((o,n)=>(Ur[o.kind]??99)-(Ur[n.kind]??99))}function ha(e){return e==="allow_once"||e==="allow_always"}function va(e){return e==="allow_always"||e==="reject_always"}
2
+ export{Ur,qo,ha,va};
@@ -1,2 +1,2 @@
1
- import{CheckCircleIcon as c,CircleIcon as o,LoaderIcon as i}from"lucide-react";import{jsx as n,jsxs as e}from"react/jsx-runtime";function oe({entries:s}){let d=s.filter((a)=>a.status==="completed").length,t=s.find((a)=>a.status==="in_progress");return e("div",{className:"codex-plan",children:[e("div",{className:"codex-plan-summary",children:[e("span",{children:[d,"/",s.length]}),t!==void 0&&e("span",{className:"codex-plan-active",children:["· ",t.content]})]}),n("div",{className:"codex-plan-entries",children:s.map((a)=>e("div",{className:"codex-plan-entry","data-status":a.status,children:[a.status==="completed"&&n(c,{"aria-hidden":"true"}),a.status==="in_progress"&&n(i,{className:"codex-plan-spinner","aria-hidden":"true"}),a.status==="pending"&&n(o,{"aria-hidden":"true"}),n("span",{children:a.content})]},a.content))})]})}
2
- export{oe};
1
+ import{CheckCircleIcon as c,CircleIcon as o,LoaderIcon as i}from"lucide-react";import{jsx as n,jsxs as e}from"react/jsx-runtime";function ie({entries:s}){let d=s.filter((a)=>a.status==="completed").length,t=s.find((a)=>a.status==="in_progress");return e("div",{className:"codex-plan",children:[e("div",{className:"codex-plan-summary",children:[e("span",{children:[d,"/",s.length]}),t!==void 0&&e("span",{className:"codex-plan-active",children:["· ",t.content]})]}),n("div",{className:"codex-plan-entries",children:s.map((a)=>e("div",{className:"codex-plan-entry","data-status":a.status,children:[a.status==="completed"&&n(c,{"aria-hidden":"true"}),a.status==="in_progress"&&n(i,{className:"codex-plan-spinner","aria-hidden":"true"}),a.status==="pending"&&n(o,{"aria-hidden":"true"}),n("span",{children:a.content})]},a.content))})]})}
2
+ export{ie};
@@ -1,2 +1,2 @@
1
- import{Ln}from"./chunk-4phhhm7t.js";async function Ei(i,c){let s=new WeakSet;while(!c.aborted){let r=[...i.querySelectorAll('[data-codex-disclosure][aria-expanded="false"]')].filter((e)=>!s.has(e)&&!e.matches(":disabled"));for(let e of r)s.add(e),e.click();if(r.length===0&&i.querySelector("[data-markdown-pending]")===null)return;await new Promise((e)=>requestAnimationFrame(()=>e()))}}function rt(i,c){if(!c)return[];let s=[],r="",e=[],l=()=>{let t=0,n=0;for(let{start:a,end:o}of Ln(r,c)){while(t<e.length&&e[t].end<=a)t++;n=Math.max(n,t);while(n<e.length&&e[n].end<o)n++;let d=e[t],f=e[n];if(!d||!f)throw Error("Search text offset has no DOM node");let h=document.createRange();h.setStart(d.node,a-d.start),h.setEnd(f.node,o-f.start),s.push(h)}r="",e=[]},m=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DIV","DL","DT","DD","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","TABLE","TD","TH","TR","UL"]),u=(t)=>{if(t.nodeType===Node.TEXT_NODE){let a=t.parentElement;if(!a||a.offsetParent===null&&a.tagName!=="BODY")return;let o=t.nodeValue??"";e.push({node:t,start:r.length,end:r.length+o.length}),r+=o;return}if(!(t instanceof Element))return;if(t.matches("script, style, [hidden], [aria-hidden='true']")){l();return}if(t.tagName==="BR"){l();return}let n=m.has(t.tagName);if(n)l();for(let a of t.childNodes)u(a);if(n)l()};return u(i),l(),s}
2
- export{Ei,rt};
1
+ import{Dn}from"./chunk-mhnhkg65.js";async function Gi(i,c){let s=new WeakSet;while(!c.aborted){let r=[...i.querySelectorAll('[data-codex-disclosure][aria-expanded="false"]')].filter((e)=>!s.has(e)&&!e.matches(":disabled"));for(let e of r)s.add(e),e.click();if(r.length===0&&i.querySelector("[data-markdown-pending]")===null)return;await new Promise((e)=>requestAnimationFrame(()=>e()))}}function at(i,c){if(!c)return[];let s=[],r="",e=[],l=()=>{let t=0,n=0;for(let{start:a,end:o}of Dn(r,c)){while(t<e.length&&e[t].end<=a)t++;n=Math.max(n,t);while(n<e.length&&e[n].end<o)n++;let d=e[t],f=e[n];if(!d||!f)throw Error("Search text offset has no DOM node");let h=document.createRange();h.setStart(d.node,a-d.start),h.setEnd(f.node,o-f.start),s.push(h)}r="",e=[]},m=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DIV","DL","DT","DD","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","TABLE","TD","TH","TR","UL"]),u=(t)=>{if(t.nodeType===Node.TEXT_NODE){let a=t.parentElement;if(!a||a.offsetParent===null&&a.tagName!=="BODY")return;let o=t.nodeValue??"";e.push({node:t,start:r.length,end:r.length+o.length}),r+=o;return}if(!(t instanceof Element))return;if(t.matches("script, style, [hidden], [aria-hidden='true']")){l();return}if(t.tagName==="BR"){l();return}let n=m.has(t.tagName);if(n)l();for(let a of t.childNodes)u(a);if(n)l()};return u(i),l(),s}
2
+ export{Gi,at};
@@ -1,3 +1,3 @@
1
- import{c}from"./chunk-90r8y97z.js";import{C,u}from"./chunk-9gt81b51.js";import{st}from"./chunk-qxgmjjh2.js";import{Se,l,_e,Oe,i}from"./chunk-95qfzbmx.js";import{L,E,Y,R,F,ae,ct}from"./chunk-x54538jy.js";import{re}from"./chunk-5yb7twvm.js";import{He}from"./chunk-p7dd93e5.js";import{h}from"./chunk-9cqpn67f.js";import{ut,I}from"./chunk-c0b3zze8.js";import{D,le}from"./chunk-fpmspg92.js";import{dt}from"./chunk-6w6yy1md.js";import{lt}from"./chunk-79jjxyb7.js";import{hasPluginStore as te}from"@nyssance/codex-acp-v2/client";import{BlocksIcon as ne,BookOpenIcon as se,CheckIcon as ie,CircleArrowUpIcon as oe,MoreVerticalIcon as ce,PlusIcon as U,PuzzleIcon as de,RefreshCwIcon as me,SearchIcon as ue,Trash2Icon as pe,XIcon as ge}from"lucide-react";import{memo as fe,useDeferredValue as ve,useEffect as K,useMemo as Q,useState as S}from"react";import{Button as k}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as xe,DialogContent as he,DialogDescription as Ne,DialogHeader as ke,DialogTitle as ye,DialogTrigger as be}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as Pe,DropdownMenuContent as we,DropdownMenuItem as Ce,DropdownMenuTrigger as Ie}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as W}from"@nyssance/shadcn/vega/components/ui/input";import{Label as De}from"@nyssance/shadcn/vega/components/ui/label";import{Spinner as B}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as e,jsxs as s,Fragment as Z}from"react/jsx-runtime";function T(t){return t.interface?.displayName??t.name}function X(t){return t.interface?.shortDescription??""}function Me({plugin:t,marketplace:d}){let{t:p}=l(),g=i((n)=>(t.id in n.busyIds)),a=i((n)=>n.installed.some((v)=>v.plugin.id===t.id)),f=i((n)=>n.install),m=t.availability!=="AVAILABLE"||t.installPolicy==="NOT_AVAILABLE",r=p(g?"plugins.card.installing":a?"plugins.sections.installed":"plugins.card.install");if(a&&!g)return e(ie,{className:"text-muted-foreground size-4 shrink-0","aria-label":r});return e(k,{size:"icon-sm",variant:"ghost",className:"text-foreground shrink-0 rounded-full",disabled:g||a||m,"aria-label":r,title:m?p("plugins.disabledReason.unknown"):r,onClick:()=>void f({plugin:t,marketplace:d}).catch(()=>{}),children:g?e(B,{"aria-hidden":"true"}):e(U,{className:"size-5",strokeWidth:2,"aria-hidden":"true"})})}function Ee({plugin:t,marketplace:d,actions:p,onOpen:g}){let a=X(t),f=t.interface?.developerName,m=t.localVersion??t.version,r=[f,m?`v${m}`:null].filter(Boolean).join(" · ");return s(ae,{className:"toolbox-row relative",children:[e(k,{variant:"ghost",className:"absolute inset-0 z-0 size-full","data-hover-background":"none","aria-label":T(t),onClick:()=>g({plugin:t,marketplace:d})}),e(R,{className:"pointer-events-none relative translate-none! self-center!",children:e("div",{className:"bg-muted flex size-10 shrink-0 items-center justify-center rounded-xl",children:e(I,{name:t.name})})}),s(E,{className:"pointer-events-none relative min-w-0",children:[e(ct,{className:"mb-0.5",children:T(t)}),e(Y,{className:"line-clamp-1",title:a,children:a||d.interface?.displayName||d.name}),r&&e(Y,{"data-toolbox-metadata":"",children:r})]}),e(L,{className:"relative w-8 shrink-0 justify-center",children:p})]})}function q(){return Oe((t)=>t.connection==="ready"&&te(t.agent))}var z=48;function ze({marketplace:t,plugins:d,onOpen:p}){let{t:g}=l(),a=i((n)=>n.removeMarketplace),[f,m]=S(0),r=Math.min(f,Math.max(0,Math.ceil(d.length/z)-1));if(d.length===0)return null;return s("section",{className:"flex flex-col gap-4",children:[s("div",{className:"flex items-center gap-2",children:[e("h2",{className:"text-base font-medium",children:t.interface?.displayName??t.name}),e("span",{className:"text-muted-foreground text-xs",children:d.length}),t.path!==null&&s(Pe,{children:[e(Ie,{render:e(k,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground ms-auto","aria-label":g("plugins.pageActions")}),children:e(ce,{})}),e(we,{align:"end",className:"w-max min-w-[140px] whitespace-nowrap",children:s(Ce,{className:"text-destructive",onClick:()=>void a(t.name),children:[e(pe,{className:"size-3.5"}),g("plugins.marketplace.remove")]})})]})]}),e(F,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2",children:d.slice(r*z,(r+1)*z).map((n)=>e(Ee,{onOpen:p,plugin:n,marketplace:t,actions:e(Me,{plugin:n,marketplace:t})},n.remotePluginId??n.id))}),d.length>z&&s("div",{className:"flex items-center justify-end gap-2 px-2",children:[e(k,{variant:"outline",size:"sm",className:"h-9",disabled:r===0,onClick:()=>m(r-1),children:g("plugins.previousPage")}),s("span",{className:"text-muted-foreground text-xs",children:[r+1," / ",Math.ceil(d.length/z)]}),e(k,{variant:"outline",size:"sm",className:"h-9",disabled:(r+1)*z>=d.length,onClick:()=>m(r+1),children:g("plugins.nextPage")})]})]},t.name)}var Be=fe(function({query:d,onOpen:p}){let{t:g}=l(),a=i((n)=>n.marketplaces),f=i((n)=>n.featuredPluginIds),m=Q(()=>a.map((n)=>({marketplace:n,entries:n.plugins.map((v)=>({plugin:v,text:[v.name,T(v),X(v),v.interface?.developerName??"",...v.keywords].join(`
2
- `).toLowerCase()}))})),[a]),r=Q(()=>{let n=new Set(f);return m.map(({marketplace:v,entries:x})=>({marketplace:v,plugins:x.filter(({plugin:y,text:b})=>d===""?v.path!==null||n.has(y.id):b.includes(d)).map(({plugin:y})=>y)}))},[m,f,d]);return s(Z,{children:[r.map(({marketplace:n,plugins:v})=>e(ze,{marketplace:n,plugins:v,onOpen:p},JSON.stringify([n.name,n.path,d]))),r.every((n)=>n.plugins.length===0)&&e("p",{className:"text-muted-foreground px-2 py-6 text-center text-sm",children:g("plugins.empty")})]})});function Te(){let{t}=l(),d=q(),p=i((N)=>N.addMarketplace),g=i((N)=>N.upgradeAll),a=i((N)=>N.upgrading),[f,m]=S(""),[r,n]=S(!1),[v,x]=S(!1),[y,b]=S(null),A=async()=>{let N=f.trim();if(!N||r)return;n(!0),b(null);try{await p({source:N}),m(""),x(!1)}catch(M){b(M instanceof Error?M.message:String(M))}finally{n(!1)}};return s("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[s(k,{size:"sm",className:"h-9",variant:"outline",disabled:!d||a,"aria-busy":a,onClick:()=>void g(),children:[a?e(B,{}):e(oe,{"data-icon":"inline-start"}),t("plugins.marketplace.upgradeAll")]}),s(xe,{open:v,onOpenChange:(N)=>{if(!r)x(N)},children:[s(be,{render:e(k,{size:"sm",className:"h-9",variant:"outline",disabled:!d}),children:[e(U,{"data-icon":"inline-start"}),t("plugins.addMarketplace")]}),s(he,{children:[s(ke,{children:[e(ye,{children:t("plugins.marketplace.addTitle")}),e(Ne,{children:t("plugins.catalog.sourceHelp")})]}),s("form",{className:"space-y-4",onSubmit:(N)=>{N.preventDefault(),A()},children:[e(De,{htmlFor:"marketplace-source",children:t("plugins.marketplace.sourceLabel")}),e(W,{id:"marketplace-source",value:f,disabled:r,onChange:(N)=>m(N.target.value),placeholder:t("plugins.marketplace.sourcePlaceholder")}),y&&e("p",{role:"alert",className:"text-destructive text-sm",children:y}),s("div",{className:"flex justify-end gap-2",children:[e(k,{type:"button",variant:"ghost",disabled:r,onClick:()=>x(!1),children:t("plugins.marketplace.addCancel")}),s(k,{type:"submit",disabled:r||f.trim()==="",children:[r&&e(B,{}),t("plugins.marketplace.addSubmit")]})]})]})]})]})]})}function Ae({onOpen:t,query:d}){let p=q(),g=i((m)=>m.marketplaceLoadErrors),a=i((m)=>m.loading)||!p,f=ve(d.trim().toLowerCase());return e(h,{className:"pe-0",viewportClassName:"pe-0",children:s("div",{className:`${D} flex flex-col gap-8`,children:[g.map((m)=>s("p",{className:"text-destructive px-2 text-xs",children:[m.marketplacePath,": ",m.message]},m.marketplacePath)),a?e(re,{}):e(Be,{query:f,onOpen:t})]})})}function Bi({cwd:t,active:d,extensions:p,onOpenCatalog:g}){let{t:a}=l(),f=_e(),m=Se(f),r=i((o)=>o.refresh),n=i((o)=>o.loading),v=i((o)=>o.error),[x,y]=S("plugins"),[b,A]=S({plugins:"",skills:""}),N=x==="skills"?b.skills:b.plugins,M=(o)=>A((O)=>({...O,[x]:o})),ee=Oe((o)=>JSON.stringify([...new Set(o.sessionList.map((O)=>He(O.cwd,o.projectContext)).filter((O)=>O!==null))].toSorted())),H=JSON.stringify([...new Set([He(t,f.state.projectContext),...JSON.parse(ee)].filter((o)=>o!==null))].toSorted()),j=i((o)=>o.installed),V=a(x==="skills"?"plugins.skills.search":"plugins.search"),[P,G]=S(null),w=q();K(()=>{if(!d||!w)return;if(m.getState().loadedScope!==H)r(JSON.parse(H))},[d,w,r,H,m]),K(()=>{if(!w)return;return f.onSkillsChanged(()=>void r(void 0,{background:!0}))},[w,r,f]);let J=(o)=>{g?.(),y("plugins"),G(o)},_=(o)=>{g?.(),y(o),G(null)};return s("div",{className:"plugins-page @container flex h-full min-h-0 overflow-hidden [--navigation-row-height:30px] [--spacing:4px]",children:[e(ut,{}),s("aside",{className:"bg-sidebar/40 flex w-44 shrink-0 flex-col border-e sm:w-60","aria-label":a("plugins.catalog.navigation"),children:[e("div",{className:"shrink-0 px-3 pt-3",children:e("div",{className:"flex h-9 items-center","data-plugin-sidebar-header":"",children:e("h2",{className:"text-sm leading-8 font-semibold",children:a("plugins.catalog.customize")})})}),s("nav",{"aria-label":a("plugins.manageTabs.aria"),className:"flex shrink-0 flex-col gap-1 px-2 pb-1",children:[p&&s(u,{className:`${c} h-8 gap-2 px-2`,active:p.active,onClick:p.onOpen,children:[e(ne,{className:"size-4"}),e("span",{children:a("plugins.extensions")})]}),["plugins","skills"].map((o)=>s(u,{className:`${c} h-8 gap-2 px-2`,active:!p?.active&&x===o&&P===null,onClick:()=>_(o),children:[o==="plugins"?e(de,{className:"size-4"}):e(se,{className:"size-4"}),e("span",{children:a(`plugins.headings.${o}`)})]},o))]}),e("h3",{className:"text-muted-foreground mx-2 mt-1 mb-2 flex h-8 shrink-0 items-center px-2 text-xs font-medium",children:a("plugins.sections.installed")}),e(h,{className:"min-h-0 flex-1 pe-0",viewportClassName:"pe-0",children:e("nav",{"aria-label":a("plugins.sections.installed"),className:"px-2 pb-4",children:e(C,{children:!w||n&&j.length===0?s("div",{role:"status",className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs",children:[e(B,{className:"size-3.5",role:"presentation","aria-hidden":"true"}),a("plugins.detail.loading")]}):j.length===0?e("p",{className:"text-muted-foreground px-3 py-2 text-xs",children:a("plugins.sections.installedEmpty")}):j.map((o)=>s(u,{title:T(o.plugin),className:`${c} gap-2 px-2`,active:!p?.active&&P?.plugin.id===o.plugin.id,onClick:()=>J(o),children:[e(I,{name:o.plugin.name,className:"size-4 shrink-0"}),e("span",{className:"truncate",children:T(o.plugin)})]},o.plugin.id))})})})]}),e("main",{className:"toolbox-surface @container flex min-h-0 min-w-0 flex-1 flex-col","aria-label":a("plugins.catalog.content"),children:p?.active?p.content:s(Z,{children:[P&&e(dt,{entry:P,onBack:()=>_("plugins")},JSON.stringify([P.marketplace.name,P.marketplace.path,P.plugin.id,t])),s("div",{hidden:P!==null,className:P?"hidden":"flex min-h-0 flex-1 flex-col",children:[e(le,{children:e(st,{title:a(`plugins.headings.${x}`),children:s("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[s("div",{className:"relative w-52 max-w-full",children:[e(ue,{className:"text-muted-foreground pointer-events-none absolute start-3 top-1/2 size-4 -translate-y-1/2"}),e(W,{className:"h-9 rounded-full ps-9 pe-9","aria-label":V,value:N,onChange:(o)=>M(o.target.value),placeholder:V}),N&&e(k,{className:"toolbox-search-clear absolute end-1 top-1/2 -translate-y-1/2",variant:"ghost",size:"icon-xs","aria-label":a("plugins.catalog.clearSearch"),onClick:()=>M(""),children:e(ge,{})})]}),e(k,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground","aria-label":a("plugins.skills.refresh"),disabled:!w||n,onClick:()=>void r(void 0,{forceRefetch:!0}),children:n?e(B,{}):e(me,{})}),x==="plugins"&&e(Te,{})]})})}),(x==="plugins"||v)&&s("div",{className:"toolbox-content flex shrink-0 flex-col gap-4 pt-2 pb-6",children:[x==="plugins"&&e("p",{className:"text-muted-foreground text-sm",children:a("plugins.catalog.description")}),v&&s("div",{role:"alert",className:"text-destructive flex items-center justify-between gap-2 text-sm",children:[s("p",{children:[a("plugins.loadError.title"),": ",v]}),e(k,{size:"sm",className:"h-9",variant:"outline",disabled:n||!w,onClick:()=>void r(),children:a("plugins.loadError.retry")})]})]}),s("div",{className:"flex min-h-0 flex-1 flex-col",children:[e("div",{hidden:x!=="plugins",className:x==="plugins"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(Ae,{query:b.plugins,onOpen:J})}),e("div",{hidden:x!=="skills",className:x==="skills"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(lt,{query:b.skills,ready:w,onOpenPlugin:J})})]})]})]})})]})}
3
- export{Bi};
1
+ import{c}from"./chunk-k7y6dqf2.js";import{k,u}from"./chunk-xhtpqc8p.js";import{lt}from"./chunk-5vh4z4yp.js";import{_e,l,Pe,Ue,i}from"./chunk-gjg213m6.js";import{D,H,J,O,U,de,pt}from"./chunk-qyp7c0j8.js";import{ae}from"./chunk-yr6ar090.js";import{Oe}from"./chunk-hp9h8njw.js";import{h}from"./chunk-9cqpn67f.js";import{ut,M}from"./chunk-7zcr1wzv.js";import{F,le}from"./chunk-fzfmg9pk.js";import{dt}from"./chunk-7xe2v72q.js";import{ct}from"./chunk-k8xqzrg6.js";import{hasPluginStore as te}from"@nyssance/codex-acp-v2/client";import{BlocksIcon as ne,BookOpenIcon as se,CheckIcon as ie,CircleArrowUpIcon as oe,MoreVerticalIcon as re,PlusIcon as W,PuzzleIcon as ce,RefreshCwIcon as me,SearchIcon as ue,Trash2Icon as pe,XIcon as ge}from"lucide-react";import{memo as fe,useDeferredValue as ve,useEffect as K,useMemo as Q,useState as I}from"react";import{Button as y}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as xe,DialogContent as he,DialogDescription as Ne,DialogHeader as ke,DialogTitle as ye,DialogTrigger as be}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as we,DropdownMenuContent as Ce,DropdownMenuItem as Ie,DropdownMenuTrigger as Se}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as X}from"@nyssance/shadcn/vega/components/ui/input";import{Label as De}from"@nyssance/shadcn/vega/components/ui/label";import{Spinner as B}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as e,jsxs as s,Fragment as Y}from"react/jsx-runtime";function T(t){return t.interface?.displayName??t.name}function Z(t){return t.interface?.shortDescription??""}function Me({plugin:t,marketplace:d}){let{t:p}=l(),g=i((n)=>(t.id in n.busyIds)),a=i((n)=>n.installed.some((v)=>v.plugin.id===t.id)),f=i((n)=>n.install),m=t.availability!=="AVAILABLE"||t.installPolicy==="NOT_AVAILABLE",r=p(g?"plugins.card.installing":a?"plugins.sections.installed":"plugins.card.install");if(a&&!g)return e(ie,{className:"text-muted-foreground size-4 shrink-0","aria-label":r});return e(y,{size:"icon-sm",variant:"ghost",className:"text-foreground shrink-0 rounded-full",disabled:g||a||m,"aria-label":r,title:m?p("plugins.disabledReason.unknown"):r,onClick:()=>void f({plugin:t,marketplace:d}).catch(()=>{}),children:g?e(B,{"aria-hidden":"true"}):e(W,{className:"size-5",strokeWidth:2,"aria-hidden":"true"})})}function Ee({plugin:t,marketplace:d,actions:p,onOpen:g}){let a=Z(t),f=t.interface?.developerName,m=t.localVersion??t.version,r=[f,m?`v${m}`:null].filter(Boolean).join(" · ");return s(de,{className:"toolbox-row relative",children:[e(y,{variant:"ghost",className:"absolute inset-0 z-0 size-full","data-hover-background":"none","aria-label":T(t),onClick:()=>g({plugin:t,marketplace:d})}),e(O,{className:"pointer-events-none relative translate-none! self-center!",children:e("div",{className:"bg-muted flex size-10 shrink-0 items-center justify-center rounded-xl",children:e(M,{name:t.name})})}),s(H,{className:"pointer-events-none relative min-w-0",children:[e(pt,{className:"mb-0.5",children:T(t)}),e(J,{className:"line-clamp-1",title:a,children:a||d.interface?.displayName||d.name}),r&&e(J,{"data-toolbox-metadata":"",children:r})]}),e(D,{className:"relative w-8 shrink-0 justify-center",children:p})]})}function q(){return Ue((t)=>t.connection==="ready"&&te(t.agent))}var E=48;function ze({marketplace:t,plugins:d,onOpen:p}){let{t:g}=l(),a=i((n)=>n.removeMarketplace),[f,m]=I(0),r=Math.min(f,Math.max(0,Math.ceil(d.length/E)-1));if(d.length===0)return null;return s("section",{className:"flex flex-col gap-4",children:[s("div",{className:"flex items-center gap-2",children:[e("h2",{className:"text-base font-medium",children:t.interface?.displayName??t.name}),e("span",{className:"text-muted-foreground text-xs",children:d.length}),t.path!==null&&s(we,{children:[e(Se,{render:e(y,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground ms-auto","aria-label":g("plugins.pageActions")}),children:e(re,{})}),e(Ce,{align:"end",className:"w-max min-w-[140px] whitespace-nowrap",children:s(Ie,{className:"text-destructive",onClick:()=>void a(t.name),children:[e(pe,{className:"size-3.5"}),g("plugins.marketplace.remove")]})})]})]}),e(U,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2",children:d.slice(r*E,(r+1)*E).map((n)=>e(Ee,{onOpen:p,plugin:n,marketplace:t,actions:e(Me,{plugin:n,marketplace:t})},n.remotePluginId??n.id))}),d.length>E&&s("div",{className:"flex items-center justify-end gap-2 px-2",children:[e(y,{variant:"outline",size:"sm",className:"h-9",disabled:r===0,onClick:()=>m(r-1),children:g("plugins.previousPage")}),s("span",{className:"text-muted-foreground text-xs",children:[r+1," / ",Math.ceil(d.length/E)]}),e(y,{variant:"outline",size:"sm",className:"h-9",disabled:(r+1)*E>=d.length,onClick:()=>m(r+1),children:g("plugins.nextPage")})]})]},t.name)}var Be=fe(function({query:d,onOpen:p}){let{t:g}=l(),a=i((n)=>n.marketplaces),f=i((n)=>n.featuredPluginIds),m=Q(()=>a.map((n)=>({marketplace:n,entries:n.plugins.map((v)=>({plugin:v,text:[v.name,T(v),Z(v),v.interface?.developerName??"",...v.keywords].join(`
2
+ `).toLowerCase()}))})),[a]),r=Q(()=>{let n=new Set(f);return m.map(({marketplace:v,entries:x})=>({marketplace:v,plugins:x.filter(({plugin:b,text:P})=>d===""?v.path!==null||n.has(b.id):P.includes(d)).map(({plugin:b})=>b)}))},[m,f,d]);return s(Y,{children:[r.map(({marketplace:n,plugins:v})=>e(ze,{marketplace:n,plugins:v,onOpen:p},JSON.stringify([n.name,n.path,d]))),r.every((n)=>n.plugins.length===0)&&e("p",{className:"text-muted-foreground px-2 py-6 text-center text-sm",children:g("plugins.empty")})]})});function Te(){let{t}=l(),d=q(),p=i((N)=>N.addMarketplace),g=i((N)=>N.upgradeAll),a=i((N)=>N.upgrading),[f,m]=I(""),[r,n]=I(!1),[v,x]=I(!1),[b,P]=I(null),A=async()=>{let N=f.trim();if(!N||r)return;n(!0),P(null);try{await p({source:N}),m(""),x(!1)}catch(S){P(S instanceof Error?S.message:String(S))}finally{n(!1)}};return s("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[s(y,{size:"sm",className:"h-9",variant:"outline",disabled:!d||a,"aria-busy":a,onClick:()=>void g(),children:[a?e(B,{}):e(oe,{"data-icon":"inline-start"}),t("plugins.marketplace.upgradeAll")]}),s(xe,{open:v,onOpenChange:(N)=>{if(!r)x(N)},children:[s(be,{render:e(y,{size:"sm",className:"h-9",variant:"outline",disabled:!d}),children:[e(W,{"data-icon":"inline-start"}),t("plugins.addMarketplace")]}),s(he,{children:[s(ke,{children:[e(ye,{children:t("plugins.marketplace.addTitle")}),e(Ne,{children:t("plugins.catalog.sourceHelp")})]}),s("form",{className:"space-y-4",onSubmit:(N)=>{N.preventDefault(),A()},children:[e(De,{htmlFor:"marketplace-source",children:t("plugins.marketplace.sourceLabel")}),e(X,{id:"marketplace-source",value:f,disabled:r,onChange:(N)=>m(N.target.value),placeholder:t("plugins.marketplace.sourcePlaceholder")}),b&&e("p",{role:"alert",className:"text-destructive text-sm",children:b}),s("div",{className:"flex justify-end gap-2",children:[e(y,{type:"button",variant:"ghost",disabled:r,onClick:()=>x(!1),children:t("plugins.marketplace.addCancel")}),s(y,{type:"submit",disabled:r||f.trim()==="",children:[r&&e(B,{}),t("plugins.marketplace.addSubmit")]})]})]})]})]})]})}function Ae({onOpen:t,query:d}){let p=q(),g=i((m)=>m.marketplaceLoadErrors),a=i((m)=>m.loading)||!p,f=ve(d.trim().toLowerCase());return e(h,{className:"pe-0",viewportClassName:"pe-0",children:s("div",{className:`${F} flex flex-col gap-8`,children:[g.map((m)=>s("p",{className:"text-destructive px-2 text-xs",children:[m.marketplacePath,": ",m.message]},m.marketplacePath)),a?e(ae,{}):e(Be,{query:f,onOpen:t})]})})}function Wi({cwd:t,active:d,extensions:p,onOpenCatalog:g}){let{t:a}=l(),f=Pe(),m=_e(f),r=i((o)=>o.refresh),n=i((o)=>o.loading),v=i((o)=>o.error),[x,b]=I("plugins"),[P,A]=I({plugins:"",skills:""}),N=x==="skills"?P.skills:P.plugins,S=(o)=>A((z)=>({...z,[x]:o})),ee=Ue((o)=>JSON.stringify([...new Set(o.sessionList.map((z)=>Oe(z.cwd,o.projectContext)).filter((z)=>z!==null))].toSorted())),L=JSON.stringify([...new Set([Oe(t,f.state.projectContext),...JSON.parse(ee)].filter((o)=>o!==null))].toSorted()),R=i((o)=>o.installed),V=a(x==="skills"?"plugins.skills.search":"plugins.search"),[w,G]=I(null),C=q();K(()=>{if(!d||!C)return;if(m.getState().loadedScope!==L)r(JSON.parse(L))},[d,C,r,L,m]),K(()=>{if(!C)return;return f.onSkillsChanged(()=>void r(void 0,{background:!0}))},[C,r,f]);let j=(o)=>{g?.(),b("plugins"),G(o)},_=(o)=>{g?.(),b(o),G(null)};return s("div",{className:"plugins-page @container flex h-full min-h-0 overflow-hidden [--navigation-row-height:30px] [--spacing:4px]",children:[e(ut,{}),s("aside",{className:"bg-sidebar/40 flex w-44 shrink-0 flex-col border-e sm:w-60","aria-label":a("plugins.catalog.navigation"),children:[e("div",{className:"shrink-0 px-3 pt-3",children:e("div",{className:"flex h-9 items-center","data-plugin-sidebar-header":"",children:e("h2",{className:"text-sm leading-8 font-semibold",children:a("plugins.catalog.customize")})})}),s("nav",{"aria-label":a("plugins.manageTabs.aria"),className:"flex shrink-0 flex-col gap-1 px-2 pb-1",children:[p&&s(u,{className:`${c} h-8 gap-2 px-2`,active:p.active,onClick:p.onOpen,children:[e(ne,{className:"size-4"}),e("span",{children:a("plugins.extensions")})]}),["plugins","skills"].map((o)=>s(u,{className:`${c} h-8 gap-2 px-2`,active:!p?.active&&x===o&&w===null,onClick:()=>_(o),children:[o==="plugins"?e(ce,{className:"size-4"}):e(se,{className:"size-4"}),e("span",{children:a(`plugins.headings.${o}`)})]},o))]}),e("h3",{className:"text-muted-foreground mx-2 mt-1 mb-2 flex h-8 shrink-0 items-center px-2 text-xs font-medium",children:a("plugins.sections.installed")}),e(h,{className:"min-h-0 flex-1 pe-0",viewportClassName:"pe-0",children:e("nav",{"aria-label":a("plugins.sections.installed"),className:"px-2 pb-4",children:e(k,{children:!C||n&&R.length===0?s("div",{role:"status",className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs",children:[e(B,{className:"size-3.5",role:"presentation","aria-hidden":"true"}),a("plugins.detail.loading")]}):R.length===0?e("p",{className:"text-muted-foreground px-3 py-2 text-xs",children:a("plugins.sections.installedEmpty")}):R.map((o)=>s(u,{title:T(o.plugin),className:`${c} gap-2 px-2`,active:!p?.active&&w?.plugin.id===o.plugin.id,onClick:()=>j(o),children:[e(M,{name:o.plugin.name,className:"size-4 shrink-0"}),e("span",{className:"truncate",children:T(o.plugin)})]},o.plugin.id))})})})]}),e("main",{className:"toolbox-surface @container flex min-h-0 min-w-0 flex-1 flex-col","aria-label":a("plugins.catalog.content"),children:p?.active?p.content:s(Y,{children:[w&&e(dt,{entry:w,onBack:()=>_("plugins")},JSON.stringify([w.marketplace.name,w.marketplace.path,w.plugin.id,t])),s("div",{hidden:w!==null,className:w?"hidden":"flex min-h-0 flex-1 flex-col",children:[e(le,{children:e(lt,{title:a(`plugins.headings.${x}`),children:s("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[s("div",{className:"relative w-52 max-w-full",children:[e(ue,{className:"text-muted-foreground pointer-events-none absolute start-3 top-1/2 size-4 -translate-y-1/2"}),e(X,{className:"h-9 rounded-full ps-9 pe-9","aria-label":V,value:N,onChange:(o)=>S(o.target.value),placeholder:V}),N&&e(y,{className:"toolbox-search-clear absolute end-1 top-1/2 -translate-y-1/2",variant:"ghost",size:"icon-xs","aria-label":a("plugins.catalog.clearSearch"),onClick:()=>S(""),children:e(ge,{})})]}),e(y,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground","aria-label":a("plugins.skills.refresh"),disabled:!C||n,onClick:()=>void r(void 0,{forceRefetch:!0}),children:n?e(B,{}):e(me,{})}),x==="plugins"&&e(Te,{})]})})}),(x==="plugins"||v)&&s("div",{className:"toolbox-content flex shrink-0 flex-col gap-4 pt-2 pb-6",children:[x==="plugins"&&e("p",{className:"text-muted-foreground text-sm",children:a("plugins.catalog.description")}),v&&s("div",{role:"alert",className:"text-destructive flex items-center justify-between gap-2 text-sm",children:[s("p",{children:[a("plugins.loadError.title"),": ",v]}),e(y,{size:"sm",className:"h-9",variant:"outline",disabled:n||!C,onClick:()=>void r(),children:a("plugins.loadError.retry")})]})]}),s("div",{className:"flex min-h-0 flex-1 flex-col",children:[e("div",{hidden:x!=="plugins",className:x==="plugins"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(Ae,{query:P.plugins,onOpen:j})}),e("div",{hidden:x!=="skills",className:x==="skills"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(ct,{query:P.skills,ready:C,onOpenPlugin:j})})]})]})]})})]})}
3
+ export{Wi};
@@ -1,2 +1,2 @@
1
- import{d}from"./chunk-6e1bwjtk.js";import{z}from"./chunk-t2q8cxnh.js";import{isContentEntry as k,isImage as b,isResourceLink as N}from"@nyssance/codex-acp-v2/client";import{ChevronRightIcon as w,ImageIcon as C,LoaderCircleIcon as S,RefreshCwIcon as A}from"lucide-react";import{useEffect as R,useState as h}from"react";import{jsx as s,jsxs as y}from"react/jsx-runtime";function Fe(e){return e.type==="tool_use"&&e.name==="view_image"&&e.status==="completed"}function B(e){let n=[];for(let[r,c]of e.content.entries()){if(!k(c))continue;let i=c.content;if(b(i))n.push({key:`${e.id}:${r}`,src:`data:${i.mimeType};base64,${i.data}`,alt:e.title??""});if(N(i))n.push({key:`${e.id}:${r}`,path:i.uri,alt:i.name})}if(n.length)return n;let a=e.rawInput;if(a!==null&&typeof a==="object"&&"path"in a&&typeof a.path==="string")return[{key:e.id,path:a.path,alt:a.path.split(/[\\/]/).at(-1)??a.path}];throw Error(`Image view ${e.id} has no image source`)}function T({images:e}){let{loadImage:n,openImageGallery:a,openImage:r,t:c}=d(),[i,g]=h({}),[v,x]=h(0),f=JSON.stringify(e);R(()=>{let t=!0,l=JSON.parse(f);g({});for(let o of l)(o.src!==void 0?Promise.resolve(o.src):o.path!==void 0&&n?n(o.path):Promise.reject(Error("Image loading is unavailable"))).then((u)=>{if(t)g((p)=>({...p,[o.key]:{src:u}}))},()=>{if(t)g((u)=>({...u,[o.key]:{error:!0}}))});return()=>{t=!1}},[f,n,v]);let I=e.flatMap((t)=>{let l=i[t.key];return l&&"src"in l?[{src:l.src,alt:t.alt}]:[]});return s("div",{className:"codex-image-thumbnails",children:e.map((t,l)=>{let o=i[t.key];if(!o)return s("div",{className:"codex-image-thumbnail",role:"status","aria-label":c("stream.codex.imageLoading"),children:s(S,{className:"motion-safe:animate-spin","aria-hidden":"true"})},t.key);if("error"in o)return s("button",{type:"button",className:"codex-image-thumbnail",title:t.alt,"aria-label":c("stream.codex.imageFailed"),onClick:()=>x((m)=>m+1),children:s(A,{"aria-hidden":"true"})},t.key);return s("button",{type:"button",className:"codex-image-thumbnail",title:t.alt,onClick:()=>{let m=e.slice(0,l).filter((u)=>{let p=i[u.key];return p&&"src"in p}).length;if(a)a(I,m);else r?.(o.src)},children:s("img",{src:o.src,alt:t.alt,draggable:!1})},t.key)})})}function Jo({blocks:e}){let{t:n}=d(),a=e.flatMap(B),[r,c]=z(`image-view:${e[0].id}`,!1);return y("div",{className:"codex-activity-item",children:[y("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":r,onClick:()=>c((i)=>!i),children:[y("span",{className:"codex-activity-label",children:[s(C,{className:"codex-activity-icon","aria-hidden":"true"}),s("span",{className:"codex-activity-leading",children:n("stream.codex.viewedImages",{count:a.length})})]}),s(w,{className:r?"codex-image-chevron codex-image-chevron-open":"codex-image-chevron","aria-hidden":"true"})]}),r&&s(T,{images:a})]})}
2
- export{Fe,Jo};
1
+ import{d}from"./chunk-teg61ef5.js";import{b}from"./chunk-57p1s7hy.js";import{isContentEntry as k,isImage as N,isResourceLink as w}from"@nyssance/codex-acp-v2/client";import{ChevronRightIcon as C,ImageIcon as S,LoaderCircleIcon as A,RefreshCwIcon as R}from"lucide-react";import{useEffect as B,useState as h}from"react";import{jsx as s,jsxs as y}from"react/jsx-runtime";function De(e){return e.type==="tool_use"&&e.name==="view_image"&&e.status==="completed"}function T(e){let n=[];for(let[r,c]of e.content.entries()){if(!k(c))continue;let i=c.content;if(N(i))n.push({key:`${e.id}:${r}`,src:`data:${i.mimeType};base64,${i.data}`,alt:e.title??""});if(w(i))n.push({key:`${e.id}:${r}`,path:i.uri,alt:i.name})}if(n.length)return n;let a=e.rawInput;if(a!==null&&typeof a==="object"&&"path"in a&&typeof a.path==="string")return[{key:e.id,path:a.path,alt:a.path.split(/[\\/]/).at(-1)??a.path}];throw Error(`Image view ${e.id} has no image source`)}function E({images:e}){let{loadImage:n,openImageGallery:a,openImage:r,t:c}=d(),[i,g]=h({}),[v,x]=h(0),f=JSON.stringify(e);B(()=>{let t=!0,l=JSON.parse(f);g({});for(let o of l)(o.src!==void 0?Promise.resolve(o.src):o.path!==void 0&&n?n(o.path):Promise.reject(Error("Image loading is unavailable"))).then((u)=>{if(t)g((p)=>({...p,[o.key]:{src:u}}))},()=>{if(t)g((u)=>({...u,[o.key]:{error:!0}}))});return()=>{t=!1}},[f,n,v]);let I=e.flatMap((t)=>{let l=i[t.key];return l&&"src"in l?[{src:l.src,alt:t.alt}]:[]});return s("div",{className:"codex-image-thumbnails",children:e.map((t,l)=>{let o=i[t.key];if(!o)return s("div",{className:"codex-image-thumbnail",role:"status","aria-label":c("stream.codex.imageLoading"),children:s(A,{className:"motion-safe:animate-spin","aria-hidden":"true"})},t.key);if("error"in o)return s("button",{type:"button",className:"codex-image-thumbnail",title:t.alt,"aria-label":c("stream.codex.imageFailed"),onClick:()=>x((m)=>m+1),children:s(R,{"aria-hidden":"true"})},t.key);return s("button",{type:"button",className:"codex-image-thumbnail",title:t.alt,onClick:()=>{let m=e.slice(0,l).filter((u)=>{let p=i[u.key];return p&&"src"in p}).length;if(a)a(I,m);else r?.(o.src)},children:s("img",{src:o.src,alt:t.alt,draggable:!1})},t.key)})})}function di({blocks:e}){let{t:n}=d(),a=e.flatMap(T),[r,c]=b(`image-view:${e[0].id}`,!1);return y("div",{className:"codex-activity-item",children:[y("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":r,onClick:()=>c((i)=>!i),children:[y("span",{className:"codex-activity-label",children:[s(S,{className:"codex-activity-icon","aria-hidden":"true"}),s("span",{className:"codex-activity-leading",children:n("stream.codex.viewedImages",{count:a.length})})]}),s(C,{className:r?"codex-image-chevron codex-image-chevron-open":"codex-image-chevron","aria-hidden":"true"})]}),r&&s(E,{images:a})]})}
2
+ export{De,di};
@@ -1,3 +1,3 @@
1
- import{d}from"./chunk-6e1bwjtk.js";import{ChevronDownIcon as b,ChevronUpIcon as C,FileDiffIcon as k}from"lucide-react";import{useState as m}from"react";import{jsx as s,jsxs as o}from"react/jsx-runtime";function x(e){if(e===null||e.length===0)return 0;return e.split(`
2
- `).length}function Kr(e){let c=new Map;for(let r of e)for(let u of r.content){if(u.type!=="diff")continue;let a=u,f=a._meta?.alwith?.hunks??[],l=f.reduce((n,i)=>n+x(i.newText),0),h=f.reduce((n,i)=>n+x(i.oldText),0);for(let n of a.changes){let i=c.get(n.path);if(i)i.additions+=l,i.deletions+=h;else c.set(n.path,{path:n.path,additions:l,deletions:h})}}return[...c.values()]}function Yo({blocks:e}){return s(vn,{files:Kr(e)})}function vn({files:e,onOpen:c,renderPath:r,actions:u}){let{t:a,openLink:f}=d(),[l,h]=m(!0),[n,i]=m(!1);if(e.length===0)return null;let g=e.reduce((t,p)=>t+p.additions,0),v=e.reduce((t,p)=>t+p.deletions,0);return o("section",{className:"codex-edited-files-card",children:[o("div",{className:"codex-edited-files-header",children:[s("div",{className:"codex-edited-files-icon","aria-hidden":"true",children:s(k,{})}),o("div",{className:"codex-edited-files-summary",children:[s("strong",{children:a("stream.codex.editedFilesCount",{count:e.length})}),s("button",{type:"button","data-codex-disclosure":"",onClick:()=>{h((t)=>!t),i(!1)},"aria-expanded":l,children:a(l?"stream.codex.hideChanges":"stream.codex.viewChanges")})]}),u,o("div",{className:"codex-edited-files-total",title:a("stream.codex.changedLines"),children:[o("span",{className:"codex-diff-additions",children:["+",g]}),o("span",{className:"codex-diff-deletions",children:["-",v]})]})]}),l&&o("div",{className:"codex-edited-files-list",children:[(n?e:e.slice(0,3)).map((t)=>o("div",{className:"codex-edited-file-row",children:[s("button",{type:"button",className:"codex-edited-file-path",title:t.path,onClick:()=>c===void 0?f(t.path):c(t),children:r===void 0?t.path:r(t)}),o("span",{className:"codex-edited-file-counts",children:[o("span",{className:"codex-diff-additions",children:["+",t.additions]}),o("span",{className:"codex-diff-deletions",children:["-",t.deletions]})]})]},t.path)),e.length>3&&o("button",{type:"button",className:"codex-edited-files-more","aria-expanded":n,onClick:()=>i((t)=>!t),children:[a(n?"stream.codex.showFewerFiles":"stream.codex.showMoreFiles",{count:e.length-3}),n?s(C,{size:16,"aria-hidden":"true"}):s(b,{size:16,"aria-hidden":"true"})]})]})]})}
3
- export{Kr,Yo,vn};
1
+ import{d}from"./chunk-teg61ef5.js";import{ChevronDownIcon as b,ChevronUpIcon as C,FileDiffIcon as k}from"lucide-react";import{useState as m}from"react";import{jsx as s,jsxs as o}from"react/jsx-runtime";function x(e){if(e===null||e.length===0)return 0;return e.split(`
2
+ `).length}function ta(e){let c=new Map;for(let r of e)for(let u of r.content){if(u.type!=="diff")continue;let a=u,f=a._meta?.alwith?.hunks??[],l=f.reduce((n,i)=>n+x(i.newText),0),h=f.reduce((n,i)=>n+x(i.oldText),0);for(let n of a.changes){let i=c.get(n.path);if(i)i.additions+=l,i.deletions+=h;else c.set(n.path,{path:n.path,additions:l,deletions:h})}}return[...c.values()]}function li({blocks:e}){return s(bn,{files:ta(e)})}function bn({files:e,onOpen:c,renderPath:r,actions:u}){let{t:a,openLink:f}=d(),[l,h]=m(!0),[n,i]=m(!1);if(e.length===0)return null;let g=e.reduce((t,p)=>t+p.additions,0),v=e.reduce((t,p)=>t+p.deletions,0);return o("section",{className:"codex-edited-files-card",children:[o("div",{className:"codex-edited-files-header",children:[s("div",{className:"codex-edited-files-icon","aria-hidden":"true",children:s(k,{})}),o("div",{className:"codex-edited-files-summary",children:[s("strong",{children:a("stream.codex.editedFilesCount",{count:e.length})}),s("button",{type:"button","data-codex-disclosure":"",onClick:()=>{h((t)=>!t),i(!1)},"aria-expanded":l,children:a(l?"stream.codex.hideChanges":"stream.codex.viewChanges")})]}),u,o("div",{className:"codex-edited-files-total",title:a("stream.codex.changedLines"),children:[o("span",{className:"codex-diff-additions",children:["+",g]}),o("span",{className:"codex-diff-deletions",children:["-",v]})]})]}),l&&o("div",{className:"codex-edited-files-list",children:[(n?e:e.slice(0,3)).map((t)=>o("div",{className:"codex-edited-file-row",children:[s("button",{type:"button",className:"codex-edited-file-path",title:t.path,onClick:()=>c===void 0?f(t.path):c(t),children:r===void 0?t.path:r(t)}),o("span",{className:"codex-edited-file-counts",children:[o("span",{className:"codex-diff-additions",children:["+",t.additions]}),o("span",{className:"codex-diff-deletions",children:["-",t.deletions]})]})]},t.path)),e.length>3&&o("button",{type:"button",className:"codex-edited-files-more","aria-expanded":n,onClick:()=>i((t)=>!t),children:[a(n?"stream.codex.showFewerFiles":"stream.codex.showMoreFiles",{count:e.length-3}),n?s(C,{size:16,"aria-hidden":"true"}):s(b,{size:16,"aria-hidden":"true"})]})]})]})}
3
+ export{ta,li,bn};
@@ -1,2 +1,2 @@
1
- import{l,i}from"./chunk-95qfzbmx.js";import{h}from"./chunk-9cqpn67f.js";import{I}from"./chunk-c0b3zze8.js";import{ce}from"./chunk-shwnd0ta.js";import{D,se,le}from"./chunk-fpmspg92.js";import{ExternalLinkIcon as W,PlusIcon as _}from"lucide-react";import{useEffect as q,useState as y}from"react";import{Badge as O}from"@nyssance/shadcn/vega/components/ui/badge";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as F,DialogContent as G,DialogDescription as J,DialogHeader as K,DialogTitle as Q}from"@nyssance/shadcn/vega/components/ui/dialog";import{Spinner as P}from"@nyssance/shadcn/vega/components/ui/spinner";import{Switch as X}from"@nyssance/shadcn/vega/components/ui/switch";import{jsx as e,jsxs as n,Fragment as T}from"react/jsx-runtime";function dt({entry:r,onBack:p}){let u=l(),{t}=u,C=i((a)=>a.readPlugin),B=i((a)=>a.installed.find(({plugin:g})=>g.id===r.plugin.id)),v=i((a)=>a.busyIds[r.plugin.id]),H=i((a)=>a.install),V=i((a)=>a.uninstall),j=i((a)=>a.setPluginEnabled),[o,U]=y(null),[S,z]=y(null),[R,M]=y(0),[c,E]=y(null);q(()=>{let a=!0;return z(null),U(null),C(r).then((g)=>{if(a)U(g)},(g)=>{if(a)z(g instanceof Error?g.message:String(g))}),()=>{a=!1}},[r,C,R]);let d=o?.summary??r.plugin,m=B?.plugin??d,s=d.interface,b=s?.displayName??d.name,k=m.availability!=="AVAILABLE"||m.installPolicy==="NOT_AVAILABLE",A=s?.longDescription??o?.description??s?.shortDescription,L=[...u.assetUrl?s?.screenshots.map((a)=>u.assetUrl(a))??[]:[],...s?.screenshotUrls??[]];return n("div",{className:"toolbox-surface flex min-h-0 flex-1 flex-col overflow-hidden",children:[e(le,{children:n("header",{className:"flex min-w-0 flex-col gap-4",children:[n("nav",{"aria-label":t("plugins.detail.root"),className:"flex min-w-0 items-center gap-2 text-[13px]",children:[e(f,{variant:"link",size:"sm",className:"text-muted-foreground hover:text-foreground px-2 hover:no-underline",onClick:p,children:t("plugins.detail.root")}),e("span",{"aria-hidden":"true",className:"text-muted-foreground/50 text-sm",children:"/"}),e("span",{"aria-current":"page",className:"truncate",children:b})]}),n("div",{className:"flex min-h-9 flex-wrap items-center justify-between gap-4",children:[n("div",{className:"flex min-w-0 items-center gap-3",children:[e(I,{name:d.name,className:"size-9 shrink-0 rounded-lg"}),e("h1",{className:"min-w-0 text-2xl leading-8 font-semibold break-words",children:b})]}),e("div",{className:"flex shrink-0 items-center gap-3",children:B?n(T,{children:[e(X,{checked:m.enabled,disabled:!!v||k,"aria-label":t(m.enabled?"plugins.card.disable":"plugins.card.enable",{pluginName:b}),onCheckedChange:(a)=>void j(m,a)}),e(f,{variant:"outline",size:"sm",disabled:!!v,onClick:()=>void V(m),children:v?e(P,{}):t("plugins.detail.uninstall")})]}):e(f,{size:"icon-sm",variant:"ghost",className:"text-foreground shrink-0","aria-label":t(k?"plugins.detail.unavailable":"plugins.detail.install"),title:t(k?"plugins.detail.unavailable":"plugins.detail.install"),disabled:!!v||k,onClick:()=>void H({...r,plugin:d}).catch(()=>{}),children:v?e(P,{"aria-hidden":"true"}):e(_,{className:"size-5",strokeWidth:2,"aria-hidden":"true"})})})]})]})}),e(h,{className:"pe-0",viewportClassName:"pe-0",children:n("div",{className:`${D} pt-2`,children:[s?.shortDescription&&e("p",{className:"text-muted-foreground text-sm leading-6",children:s.shortDescription}),d.keywords.length>0&&e("div",{className:"mt-3 flex flex-wrap gap-2",children:[...new Set(d.keywords)].map((a)=>e(O,{variant:"secondary",className:"text-xs font-normal",children:a},a))}),n("div",{className:"mt-6 flex items-stretch overflow-x-auto border-y py-4",children:[s?.developerName&&e(x,{label:t("plugins.detail.developer"),children:s.developerName}),s?.category&&e(x,{label:t("plugins.detail.category"),children:s.category}),(m.localVersion??m.version)&&e(x,{label:t("plugins.detail.version"),children:m.localVersion??m.version}),e(x,{label:t("plugins.headings.marketplace"),children:r.marketplace.interface?.displayName??r.marketplace.name}),s?.websiteUrl&&e(x,{label:t("plugins.detail.website"),children:e(w,{url:s.websiteUrl,label:t("plugins.detail.website")})})]}),!o&&!S&&n("div",{role:"status",className:"text-muted-foreground mt-8 flex items-center gap-2 text-sm",children:[e(P,{}),t("plugins.detail.loading")]}),S&&n("div",{role:"alert",className:"mt-8 space-y-2",children:[n("p",{className:"text-destructive text-sm",children:[t("plugins.detail.errorTitle"),": ",S]}),e(f,{variant:"outline",size:"sm",className:"h-9",onClick:()=>M((a)=>a+1),children:t("plugins.loadError.retry")})]}),A&&e("p",{className:"mt-8 text-sm leading-6 whitespace-pre-wrap",children:A}),L.length>0&&e("div",{className:"mt-6 flex gap-3 overflow-x-auto",children:[...new Set(L)].map((a)=>e("img",{src:a,alt:b,loading:"lazy",className:"max-h-72 max-w-full rounded-xl border object-contain"},a))}),s&&s.capabilities.length>0&&e(N,{label:t("plugins.detail.capabilities"),count:s.capabilities.length,children:s.capabilities.map((a)=>e(O,{variant:"secondary",className:"me-2",children:a},a))}),o&&o.mcpServers.length>0&&e(N,{label:t("plugins.detail.mcpServers"),count:o.mcpServers.length,children:o.mcpServers.map((a)=>n("div",{className:"flex items-center gap-3 py-1",children:[e(I,{name:d.name,className:"size-6 rounded-md"}),e("span",{className:"text-sm font-medium",children:a})]},a))}),o&&o.skills.length>0&&e(N,{label:t("plugins.detail.skills"),count:o.skills.length,children:o.skills.map((a)=>n(f,{variant:"ghost",className:"h-auto w-full justify-start gap-3 rounded-xl px-3 py-3 text-start whitespace-normal",onClick:()=>E(a),children:[e(I,{name:a.name,className:"size-8"}),n("span",{className:"min-w-0 flex-1",children:[e("span",{className:"block text-sm font-medium",children:a.interface?.displayName??a.name}),e("span",{className:"text-muted-foreground mt-1 block truncate text-[13px] leading-5 font-normal",children:a.interface?.shortDescription??a.shortDescription??a.description})]})]},a.path??a.name))}),o&&o.apps.length>0&&e(N,{label:t("plugins.detail.apps"),count:o.apps.length,children:o.apps.map((a)=>n("div",{className:"rounded-xl px-3 py-3",children:[e("div",{className:"text-sm font-medium",children:a.name}),a.description&&e("p",{className:"text-muted-foreground mt-1 text-[13px] leading-5",children:a.description}),a.installUrl&&e(w,{url:a.installUrl,label:t("plugins.installModal.connect")})]},a.id))}),o&&o.hooks.length>0&&e(N,{label:t("plugins.detail.hooks"),count:o.hooks.length,children:o.hooks.map((a)=>e("p",{className:"text-sm",children:a.eventName},a.key))}),(s?.privacyPolicyUrl||s?.termsOfServiceUrl)&&n("div",{className:"mt-10 flex flex-wrap gap-4 border-t pt-4",children:[s.privacyPolicyUrl&&e(w,{url:s.privacyPolicyUrl,label:t("plugins.detail.privacyPolicy")}),s.termsOfServiceUrl&&e(w,{url:s.termsOfServiceUrl,label:t("plugins.detail.termsOfService")})]})]})}),e(F,{open:c!==null,onOpenChange:(a)=>{if(!a)E(null)},children:e(G,{className:se,children:c&&n(T,{children:[e("div",{className:"shrink-0 pr-8",children:e(I,{name:c.name,className:"size-10"})}),n("div",{className:"min-h-0 space-y-6 overflow-y-auto overscroll-contain",children:[n(K,{className:"gap-3",children:[e(Q,{className:"text-2xl leading-8 font-semibold break-words",children:c.interface?.displayName??c.name}),e(J,{className:"text-sm leading-6 break-words whitespace-pre-wrap",children:c.description})]}),e(ce,{path:c.path,description:c.description},c.path??c.name)]})]})})})]})}function x({label:r,children:p}){return n("div",{className:"flex min-w-28 shrink-0 flex-col items-center justify-between gap-1.5 border-e px-6 first:ps-2 last:border-e-0",children:[e("span",{className:"text-muted-foreground text-xs",children:r}),e("span",{className:"flex items-center text-sm font-normal",children:p})]})}function N({label:r,count:p,children:u}){return n("section",{className:"mt-8",children:[n("h2",{className:"text-base font-medium",children:[r," ",e("span",{className:"text-muted-foreground font-normal",children:p})]}),e("div",{className:"mt-3 flex flex-col gap-2",children:u})]})}function w({url:r,label:p}){let{openLink:u}=l();if(!/^https?:\/\//i.test(r))return null;return n(f,{variant:"link",className:"text-muted-foreground h-auto p-0 text-xs",title:r,onClick:()=>u(r),children:[p,e(W,{className:"size-3.5"})]})}
1
+ import{l,i}from"./chunk-gjg213m6.js";import{h}from"./chunk-9cqpn67f.js";import{M}from"./chunk-7zcr1wzv.js";import{ce}from"./chunk-v3jehrgj.js";import{F,se,le}from"./chunk-fzfmg9pk.js";import{ExternalLinkIcon as R,PlusIcon as W}from"lucide-react";import{useEffect as _,useState as y}from"react";import{Badge as A}from"@nyssance/shadcn/vega/components/ui/badge";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as q,DialogContent as G,DialogDescription as J,DialogHeader as K,DialogTitle as Q}from"@nyssance/shadcn/vega/components/ui/dialog";import{Spinner as S}from"@nyssance/shadcn/vega/components/ui/spinner";import{Switch as X}from"@nyssance/shadcn/vega/components/ui/switch";import{jsx as e,jsxs as n,Fragment as L}from"react/jsx-runtime";function dt({entry:r,onBack:p}){let u=l(),{t}=u,P=i((a)=>a.readPlugin),C=i((a)=>a.installed.find(({plugin:g})=>g.id===r.plugin.id)),v=i((a)=>a.busyIds[r.plugin.id]),O=i((a)=>a.install),T=i((a)=>a.uninstall),H=i((a)=>a.setPluginEnabled),[o,B]=y(null),[D,U]=y(null),[V,j]=y(0),[c,I]=y(null);_(()=>{let a=!0;return U(null),B(null),P(r).then((g)=>{if(a)B(g)},(g)=>{if(a)U(g instanceof Error?g.message:String(g))}),()=>{a=!1}},[r,P,V]);let d=o?.summary??r.plugin,m=C?.plugin??d,s=d.interface,b=s?.displayName??d.name,k=m.availability!=="AVAILABLE"||m.installPolicy==="NOT_AVAILABLE",z=s?.longDescription??o?.description??s?.shortDescription,E=[...u.assetUrl?s?.screenshots.map((a)=>u.assetUrl(a))??[]:[],...s?.screenshotUrls??[]];return n("div",{className:"toolbox-surface flex min-h-0 flex-1 flex-col overflow-hidden",children:[e(le,{children:n("header",{className:"flex min-w-0 flex-col gap-4",children:[n("nav",{"aria-label":t("plugins.detail.root"),className:"flex min-w-0 items-center gap-2 text-[13px]",children:[e(f,{variant:"link",size:"sm",className:"text-muted-foreground hover:text-foreground px-2 hover:no-underline",onClick:p,children:t("plugins.detail.root")}),e("span",{"aria-hidden":"true",className:"text-muted-foreground/50 text-sm",children:"/"}),e("span",{"aria-current":"page",className:"truncate",children:b})]}),n("div",{className:"flex min-h-9 flex-wrap items-center justify-between gap-4",children:[n("div",{className:"flex min-w-0 items-center gap-3",children:[e(M,{name:d.name,className:"size-9 shrink-0 rounded-lg"}),e("h1",{className:"min-w-0 text-2xl leading-8 font-semibold break-words",children:b})]}),e("div",{className:"flex shrink-0 items-center gap-3",children:C?n(L,{children:[e(X,{checked:m.enabled,disabled:!!v||k,"aria-label":t(m.enabled?"plugins.card.disable":"plugins.card.enable",{pluginName:b}),onCheckedChange:(a)=>void H(m,a)}),e(f,{variant:"outline",size:"sm",disabled:!!v,onClick:()=>void T(m),children:v?e(S,{}):t("plugins.detail.uninstall")})]}):e(f,{size:"icon-sm",variant:"ghost",className:"text-foreground shrink-0","aria-label":t(k?"plugins.detail.unavailable":"plugins.detail.install"),title:t(k?"plugins.detail.unavailable":"plugins.detail.install"),disabled:!!v||k,onClick:()=>void O({...r,plugin:d}).catch(()=>{}),children:v?e(S,{"aria-hidden":"true"}):e(W,{className:"size-5",strokeWidth:2,"aria-hidden":"true"})})})]})]})}),e(h,{className:"pe-0",viewportClassName:"pe-0",children:n("div",{className:`${F} pt-2`,children:[s?.shortDescription&&e("p",{className:"text-muted-foreground text-sm leading-6",children:s.shortDescription}),d.keywords.length>0&&e("div",{className:"mt-3 flex flex-wrap gap-2",children:[...new Set(d.keywords)].map((a)=>e(A,{variant:"secondary",className:"text-xs font-normal",children:a},a))}),n("div",{className:"mt-6 flex items-stretch overflow-x-auto border-y py-4",children:[s?.developerName&&e(x,{label:t("plugins.detail.developer"),children:s.developerName}),s?.category&&e(x,{label:t("plugins.detail.category"),children:s.category}),(m.localVersion??m.version)&&e(x,{label:t("plugins.detail.version"),children:m.localVersion??m.version}),e(x,{label:t("plugins.headings.marketplace"),children:r.marketplace.interface?.displayName??r.marketplace.name}),s?.websiteUrl&&e(x,{label:t("plugins.detail.website"),children:e(w,{url:s.websiteUrl,label:t("plugins.detail.website")})})]}),!o&&!D&&n("div",{role:"status",className:"text-muted-foreground mt-8 flex items-center gap-2 text-sm",children:[e(S,{}),t("plugins.detail.loading")]}),D&&n("div",{role:"alert",className:"mt-8 space-y-2",children:[n("p",{className:"text-destructive text-sm",children:[t("plugins.detail.errorTitle"),": ",D]}),e(f,{variant:"outline",size:"sm",className:"h-9",onClick:()=>j((a)=>a+1),children:t("plugins.loadError.retry")})]}),z&&e("p",{className:"mt-8 text-sm leading-6 whitespace-pre-wrap",children:z}),E.length>0&&e("div",{className:"mt-6 flex gap-3 overflow-x-auto",children:[...new Set(E)].map((a)=>e("img",{src:a,alt:b,loading:"lazy",className:"max-h-72 max-w-full rounded-xl border object-contain"},a))}),s&&s.capabilities.length>0&&e(N,{label:t("plugins.detail.capabilities"),count:s.capabilities.length,children:s.capabilities.map((a)=>e(A,{variant:"secondary",className:"me-2",children:a},a))}),o&&o.mcpServers.length>0&&e(N,{label:t("plugins.detail.mcpServers"),count:o.mcpServers.length,children:o.mcpServers.map((a)=>n("div",{className:"flex items-center gap-3 py-1",children:[e(M,{name:d.name,className:"size-6 rounded-md"}),e("span",{className:"text-sm font-medium",children:a})]},a))}),o&&o.skills.length>0&&e(N,{label:t("plugins.detail.skills"),count:o.skills.length,children:o.skills.map((a)=>n(f,{variant:"ghost",className:"h-auto w-full justify-start gap-3 rounded-xl px-3 py-3 text-start whitespace-normal",onClick:()=>I(a),children:[e(M,{name:a.name,className:"size-8"}),n("span",{className:"min-w-0 flex-1",children:[e("span",{className:"block text-sm font-medium",children:a.interface?.displayName??a.name}),e("span",{className:"text-muted-foreground mt-1 block truncate text-[13px] leading-5 font-normal",children:a.interface?.shortDescription??a.shortDescription??a.description})]})]},a.path??a.name))}),o&&o.apps.length>0&&e(N,{label:t("plugins.detail.apps"),count:o.apps.length,children:o.apps.map((a)=>n("div",{className:"rounded-xl px-3 py-3",children:[e("div",{className:"text-sm font-medium",children:a.name}),a.description&&e("p",{className:"text-muted-foreground mt-1 text-[13px] leading-5",children:a.description}),a.installUrl&&e(w,{url:a.installUrl,label:t("plugins.installModal.connect")})]},a.id))}),o&&o.hooks.length>0&&e(N,{label:t("plugins.detail.hooks"),count:o.hooks.length,children:o.hooks.map((a)=>e("p",{className:"text-sm",children:a.eventName},a.key))}),(s?.privacyPolicyUrl||s?.termsOfServiceUrl)&&n("div",{className:"mt-10 flex flex-wrap gap-4 border-t pt-4",children:[s.privacyPolicyUrl&&e(w,{url:s.privacyPolicyUrl,label:t("plugins.detail.privacyPolicy")}),s.termsOfServiceUrl&&e(w,{url:s.termsOfServiceUrl,label:t("plugins.detail.termsOfService")})]})]})}),e(q,{open:c!==null,onOpenChange:(a)=>{if(!a)I(null)},children:e(G,{className:se,children:c&&n(L,{children:[e("div",{className:"shrink-0 pr-8",children:e(M,{name:c.name,className:"size-10"})}),n("div",{className:"min-h-0 space-y-6 overflow-y-auto overscroll-contain",children:[n(K,{className:"gap-3",children:[e(Q,{className:"text-2xl leading-8 font-semibold break-words",children:c.interface?.displayName??c.name}),e(J,{className:"text-sm leading-6 break-words whitespace-pre-wrap",children:c.description})]}),e(ce,{path:c.path,description:c.description},c.path??c.name)]})]})})})]})}function x({label:r,children:p}){return n("div",{className:"flex min-w-28 shrink-0 flex-col items-center justify-between gap-1.5 border-e px-6 first:ps-2 last:border-e-0",children:[e("span",{className:"text-muted-foreground text-xs",children:r}),e("span",{className:"flex items-center text-sm font-normal",children:p})]})}function N({label:r,count:p,children:u}){return n("section",{className:"mt-8",children:[n("h2",{className:"text-base font-medium",children:[r," ",e("span",{className:"text-muted-foreground font-normal",children:p})]}),e("div",{className:"mt-3 flex flex-col gap-2",children:u})]})}function w({url:r,label:p}){let{openLink:u}=l();if(!/^https?:\/\//i.test(r))return null;return n(f,{variant:"link",className:"text-muted-foreground h-auto p-0 text-xs",title:r,onClick:()=>u(r),children:[p,e(R,{className:"size-3.5"})]})}
2
2
  export{dt};
@@ -1,2 +1,2 @@
1
- import{Rn}from"./chunk-95mynf7q.js";import{jsx as o}from"react/jsx-runtime";function ut(){return o("svg",{"aria-hidden":"true",focusable:"false",width:0,height:0,className:"pointer-events-none absolute",dangerouslySetInnerHTML:{__html:Rn}})}var n=["agent-mode","application-window","audiowave","bar-chart","block-stack-skills","book-open","briefcase","bubble-on-bubble","checkmark-circle","code","compass","components-window","credit-card","csv","document","docx","exclamationmark-bubble","figma-document","figure-text-document","file-video","flash","folder","game-controller","globe","heart","heart-bubble","heart-text-clipboard","hierarchy","jpg-document","kettlebell","ladybug","lightbulb","lightning-bolt","magnifingglass","map","mappin","microphone","ms-word-document","newspaper","paperclip","pdf-document","pencil","phone","photo","png-document","pointer","ppt-document","pptx","puzzle","radar","shield","shopping-bag","skill-creator","skill-installer","star-app","star-bookmark","template-creator","terminal","text-bubble-figure","text-document","text-document-lock","text-note-pointer","triangle-vercel","xls-document-excel","xlsx"];function En(t){let e=0;for(let r of t)e=(e*31+r.charCodeAt(0))%997;return`#plugin-${n[e%n.length]}`}function I({name:t,className:e="size-6 shrink-0"}){return o("svg",{"aria-hidden":"true",focusable:"false",width:36,height:36,viewBox:"0 0 36 36",className:e,children:o("use",{href:En(t)})})}
2
- export{ut,En,I};
1
+ import{Un}from"./chunk-t8n1ny7h.js";import{jsx as o}from"react/jsx-runtime";function ut(){return o("svg",{"aria-hidden":"true",focusable:"false",width:0,height:0,className:"pointer-events-none absolute",dangerouslySetInnerHTML:{__html:Un}})}var n=["agent-mode","application-window","audiowave","bar-chart","block-stack-skills","book-open","briefcase","bubble-on-bubble","checkmark-circle","code","compass","components-window","credit-card","csv","document","docx","exclamationmark-bubble","figma-document","figure-text-document","file-video","flash","folder","game-controller","globe","heart","heart-bubble","heart-text-clipboard","hierarchy","jpg-document","kettlebell","ladybug","lightbulb","lightning-bolt","magnifingglass","map","mappin","microphone","ms-word-document","newspaper","paperclip","pdf-document","pencil","phone","photo","png-document","pointer","ppt-document","pptx","puzzle","radar","shield","shopping-bag","skill-creator","skill-installer","star-app","star-bookmark","template-creator","terminal","text-bubble-figure","text-document","text-document-lock","text-note-pointer","triangle-vercel","xls-document-excel","xlsx"];function On(t){let e=0;for(let r of t)e=(e*31+r.charCodeAt(0))%997;return`#plugin-${n[e%n.length]}`}function M({name:t,className:e="size-6 shrink-0"}){return o("svg",{"aria-hidden":"true",focusable:"false",width:36,height:36,viewBox:"0 0 36 36",className:e,children:o("use",{href:On(t)})})}
2
+ export{ut,On,M};
@@ -1,2 +1,2 @@
1
- import{Ping as l}from"ldrs/react";import"ldrs/react/Ping.css";import{cn as i}from"cn";import{jsx as e,jsxs as u}from"react/jsx-runtime";var ao={requires_action:"bg-red-500",running:"bg-yellow-500",done:"bg-blue-500",idle:"bg-green-500"},so={requires_action:"text-red-500",running:"text-yellow-500",done:"text-blue-500",idle:"text-green-500"};function A({state:n,className:t,pulse:s=!0,title:r}){if(n===void 0)return null;let o=ao[n];if(n==="running"&&s)return u("span",{title:r,className:i("relative inline-flex size-1.5 shrink-0 items-center justify-center",so.running,t),children:[e("span",{className:"absolute inset-0 flex items-center justify-center",children:e(l,{size:"26",speed:"2",color:"currentColor"})}),e("span",{className:"relative size-1.5 rounded-full bg-current"})]});return e("span",{title:r,className:i("size-2 shrink-0 rounded-full",o,t)})}
2
- export{ao,so,A};
1
+ import{Ping as l}from"ldrs/react";import"ldrs/react/Ping.css";import{cn as i}from"cn";import{jsx as e,jsxs as u}from"react/jsx-runtime";var uo={requires_action:"bg-red-500",running:"bg-yellow-500",done:"bg-blue-500",idle:"bg-green-500"},po={requires_action:"text-red-500",running:"text-yellow-500",done:"text-blue-500",idle:"text-green-500"};function L({state:n,className:t,pulse:s=!0,title:r}){if(n===void 0)return null;let o=uo[n];if(n==="running"&&s)return u("span",{title:r,className:i("relative inline-flex size-1.5 shrink-0 items-center justify-center",po.running,t),children:[e("span",{className:"absolute inset-0 flex items-center justify-center",children:e(l,{size:"26",speed:"2",color:"currentColor"})}),e("span",{className:"relative size-1.5 rounded-full bg-current"})]});return e("span",{title:r,className:i("size-2 shrink-0 rounded-full",o,t)})}
2
+ export{uo,po,L};
@@ -0,0 +1,2 @@
1
+ import{P,En,Hi,Yt,Oi,Ln,Ui}from"./chunk-be7ja8gh.js";import{n,Se,X,t}from"./chunk-bt01an6h.js";import{we}from"./chunk-h3hzsg0s.js";import{createStore as C}from"@alwith/api/client";import{isText as w,nativeTurnId as Q}from"@nyssance/codex-acp-v2/client";import{jsx as y}from"react/jsx-runtime";var b=C({entries:{}});function p(r,e){b.setState((s)=>({entries:{...s.entries,[r]:e}}))}function v(r,e){let s=Q(e),a=r.items.findLast((i)=>Q(i)!==null);return!e.replayed&&s!==null&&a!==void 0&&Q(a)===s}function E(r,e){for(let s of r.items){if(s.kind!=="user"||s.echo==="pending")continue;for(let a of[...Ln(s._meta),...s.content.filter(w).flatMap((i)=>Ln(i._meta))])if(a.questionItemId===e)return a.answer}return}function M({sessionId:r,item:e,question:s,index:a}){let i=Se(),{t:l}=n(),m=En(e.id,a),c=JSON.stringify([r,m]),u=X(b,(o)=>o.entries[c]),d=t((o)=>o.sessions[r]),k=t((o)=>o.connection==="ready"),f=u?.draft??Hi(s),x=d===void 0?u?.accepted:E(d,m)??u?.accepted,A=d!==void 0&&v(d,e),h=!d?.subagent&&k&&d?.attached&&!d.restoring&&!d.readOnly,g=x!==void 0?"answered":u?.skipped?"skipped":u?.pending?"submitting":!A?"closed":!h?"unavailable":"pending",D=async()=>{if(b.getState().entries[c]?.pending||g!=="pending")return;let o=i.state.sessions[r];if(o===void 0||!v(o,e)||!o.attached||o.readOnly||o.restoring)return;let S=Yt(s,f);if(!S.trim())return;let q={questionItemId:m,question:s.title,answer:S};p(c,{draft:f,pending:!0});try{await i.prompt(r,[{type:"text",text:Oi(q),_meta:{codex:{questionReply:q}}}]),p(c,{draft:f,accepted:S})}catch(I){p(c,{draft:f,error:I instanceof Error?I.message:String(I)})}};if(g==="closed")return null;return y(Ui,{question:s,draft:f,status:g,answer:x,error:g==="pending"?u?.error:void 0,t:l,onChange:(o)=>p(c,{draft:o}),onSkip:()=>p(c,{draft:f,skipped:!0}),onSubmit:()=>{D()}})}function _n({sessionId:r,item:e}){let s=t((i)=>i.sessions[r]),a=P(e._meta);if(s===void 0||s.subagent!==void 0||s.readOnly||!v(s,e))return y(we,{content:e.content.some((i)=>!w(i)||i.text.trim().length>0)?e.content:a.map((i)=>({type:"text",text:i.title})),messageId:e.id,streaming:!1});return y("div",{className:"flex min-w-0 flex-col gap-3","data-async-questions":e.id,children:a.map((i,l)=>y(M,{sessionId:r,item:e,question:i,index:l},En(e.id,l)))})}
2
+ export{_n};
@@ -1,2 +1,2 @@
1
- import{w}from"./chunk-spfbykq8.js";import{r}from"./chunk-eg86g265.js";import{CircleHelpIcon as m}from"lucide-react";import{useRef as c,useState as p}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as h,DropdownMenuContent as g,DropdownMenuTrigger as M}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as H}from"react/jsx-runtime";function cr({children:l}){let{t:n}=r(),[o,u]=p(!1),t=c(null),[a,d]=p();return w(o),H(h,{open:o,onOpenChange:(i)=>{if(i){let s=t.current?.parentElement;if(!s)throw Error("Help trigger must be mounted in its footer row");d(s.clientWidth)}u(i)},children:[e(M,{render:e(f,{ref:t,variant:"ghost",size:"icon-sm",className:"size-[var(--navigation-row-height,30px)] shrink-0 rounded-[10px] p-0 [corner-shape:superellipse(1.5)]","aria-label":n("sessionList.help"),title:n("sessionList.help")}),children:e(m,{className:"size-4 shrink-0"})}),e(g,{side:"top",align:"end",sideOffset:8,style:{width:a},children:l})]})}
2
- export{cr};
1
+ import{S}from"./chunk-6zcjn8ra.js";import{r}from"./chunk-d1pc0mrb.js";import{CircleHelpIcon as m}from"lucide-react";import{useRef as c,useState as p}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as h,DropdownMenuContent as g,DropdownMenuTrigger as w}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as M}from"react/jsx-runtime";function yr({children:l}){let{t:n}=r(),[o,u]=p(!1),t=c(null),[a,d]=p();return S(o),M(h,{open:o,onOpenChange:(i)=>{if(i){let s=t.current?.parentElement;if(!s)throw Error("Help trigger must be mounted in its footer row");d(s.clientWidth)}u(i)},children:[e(w,{render:e(f,{ref:t,variant:"ghost",size:"icon-sm",className:"size-[var(--navigation-row-height,30px)] shrink-0 rounded-[10px] p-0 [corner-shape:superellipse(1.5)]","aria-label":n("sessionList.help"),title:n("sessionList.help")}),children:e(m,{className:"size-4 shrink-0"})}),e(g,{side:"top",align:"end",sideOffset:8,style:{width:a},children:l})]})}
2
+ export{yr};
@@ -1,2 +1,2 @@
1
- import{S}from"./chunk-wpn4rdwv.js";import{codexMessageError as v,nativeTurnId as m,textOf as A,turns as _}from"@nyssance/codex-acp-v2/client";function Xr(t){return t.kind==="tool"&&t.name==="mcp_startup"}function E(t){let e=t._meta?.codex;if(typeof e!=="object"||e===null)return null;let n=e.phase;return typeof n==="string"?n:null}function T(t){let e=t._meta?.codex;return typeof e==="object"&&e!==null&&e.notice===!0}function Ci(t){return t.user===null&&t.items.length>0&&t.items.every((e)=>e.kind==="assistant"&&T(e))}function g(t,e,n){let o=t.work.at(-1);if(o?.kind==="activity"&&o.items.at(-1)===n){o.items.push(e);return}t.work.push({kind:"activity",key:`activity:${e.kind}:${e.id}`,items:[e]})}function w(t,e,n){if(t.kind!=="tool"){e.push(t);return}let o=n.get(t.id);if(o===void 0)throw Error(`Grouped tool is missing from the session: ${t.id}`);e.push(o);for(let s of t.children)w(s,e,n)}function j(t,e,n,o){switch(e.kind){case"user":break;case"assistant":{if(v(e)!==null){let u=m(e),f=t.errors.findIndex((p)=>u!==null&&m(p)===u);if(f===-1)t.errors.push(e);else t.errors[f]=e;break}let s=E(e),i=e._meta?.codex,d=S(e._meta).length>0||typeof i==="object"&&i!==null&&"delivery"in i&&i.delivery==="async";if(S(e._meta).length>0)t.final.push(e);else if(d)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else if(s==="final_answer")t.final.push(e);else if(s==="commentary"||T(e)||s===null&&n)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else t.final.push(e);break}case"thought":g(t,e,o);break;case"tool":if(g(t,e,o),e.toolKind==="edit")t.edits.push(e);break;case"plan":t.work.push({kind:"plan",key:`plan:${e.id}`,item:e});break;case"compaction":t.work.push({kind:"compaction",key:`compaction:${e.id}`,item:e});break}}function wi(t,e=[],n=[]){let o=new Map(e.map((r)=>[r.key,r])),s=new Map(t.items.filter((r)=>r.kind==="tool").map((r)=>[r.id,r])),i={...t,items:t.items.filter((r)=>!Xr(r))},d=new Map(n.map((r,a)=>[r.turnId,a])),u=[],f=[u],p,k=null;for(let r of i.items){let a=m(r),l=d.get(a??"");if(a!==null&&k!==null&&a!==k||l!==void 0&&p!==void 0&&l>p+1)u=[],f.push(u);if(u.push(r),a!==null||r.kind==="user")k=a;if(l!==void 0)p=l}return f.flatMap((r)=>_({...i,items:r})).map((r)=>{let a=r.prompt===null?[]:[r.prompt];for(let c of r.entries)w(c,a,s);let l=a[0];if(l===void 0)throw Error("A turn without items");let I=`turn:${l.kind}:${l.id}`,h=r.endedAt??Math.max(...a.map((c)=>c.at)),y=o.get(I);if(y!==void 0&&K(y.items,a)&&y.endedAt===h)return y;let x={key:I,user:r.prompt,work:[],final:[],errors:[],edits:[],startedAt:r.startedAt??l.at,endedAt:h,replayed:a.every(Sn),items:a},M=a.findLastIndex((c)=>c.kind!=="user"&&c.kind!=="compaction");return a.forEach((c,b)=>j(x,c,b<M,a[b-1])),x})}function K(t,e){return t.length===e.length&&t.every((n,o)=>n===e[o])}function Sn(t){let e=t._meta?.codex;return t.replayed||typeof e==="object"&&e!==null&&"historyReplay"in e&&e.historyReplay===!0}function ie(t){return A(t.content)}function it(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"historyInterrupted"in n&&n.historyInterrupted===!0})}function _n(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"turnInterrupted"in n&&n.turnInterrupted===!0})}function ki(t){let e=(s)=>{for(let i of t.items){let d=i._meta?.codex;if(typeof d!=="object"||d===null)continue;let u=d[s];if(typeof u==="number"&&Number.isFinite(u)&&u>=0)return u}return},n=e("workDurationMs"),o=e("turnDurationMs");return{durationMs:n??o,durationKind:n===void 0&&o!==void 0?"total":"work",startedAt:e("workStartedAt")}}function Si(t,e,n){if(n?.user==null)return!1;let o=e.items.map(m).find((i)=>i!==null),s=m(n.user);if(o!==void 0&&s!==null)return o===s;return!e.items.some((i)=>{let d=i._meta?.codex;return typeof d==="object"&&d!==null&&"turnCompletedAt"in d&&typeof d.turnCompletedAt==="number"})&&t.state!=="idle"&&(n.user.echo==="pending"||n.user.echo==="acknowledged")&&e.user!==null&&t.turnEndedAt[e.user.id]===void 0&&e.errors.length===0}function _i(t,e){if(t.state==="idle")return;let n=e.length-1;while(n>0){let o=e[n];if(o.items.some((s)=>s.kind!=="user"))break;if(!Si(t,e[n-1],o))break;n--}return e[n]?.key}function Pi(t,e,n){let o=n,s=n;while(o>0&&Si(t,e[o-1],e[o]))o--;while(s+1<e.length&&Si(t,e[s],e[s+1]))s++;let i=e.slice(o,s+1),d=i.findLast((u)=>u.items.some((f)=>f.kind!=="user"))??i[0];return{continued:e[n]!==d,items:i.flatMap((u)=>u.items),edits:i.flatMap((u)=>u.edits),startedAt:i[0].startedAt}}
2
- export{Xr,Ci,wi,Sn,ie,it,_n,ki,Si,_i,Pi};
1
+ import{P}from"./chunk-be7ja8gh.js";import{codexMessageError as v,nativeTurnId as m,textOf as A,turns as S}from"@nyssance/codex-acp-v2/client";function sa(t){return t.kind==="tool"&&t.name==="mcp_startup"}function _(t){let e=t._meta?.codex;if(typeof e!=="object"||e===null)return null;let n=e.phase;return typeof n==="string"?n:null}function T(t){let e=t._meta?.codex;return typeof e==="object"&&e!==null&&e.notice===!0}function Ai(t){return t.user===null&&t.items.length>0&&t.items.every((e)=>e.kind==="assistant"&&T(e))}function g(t,e,n){let o=t.work.at(-1);if(o?.kind==="activity"&&o.items.at(-1)===n){o.items.push(e);return}t.work.push({kind:"activity",key:`activity:${e.kind}:${e.id}`,items:[e]})}function w(t,e,n){if(t.kind!=="tool"){e.push(t);return}let o=n.get(t.id);if(o===void 0)throw Error(`Grouped tool is missing from the session: ${t.id}`);e.push(o);for(let s of t.children)w(s,e,n)}function E(t,e,n,o){switch(e.kind){case"user":break;case"assistant":{if(v(e)!==null){let u=m(e),f=t.errors.findIndex((p)=>u!==null&&m(p)===u);if(f===-1)t.errors.push(e);else t.errors[f]=e;break}let s=_(e),i=e._meta?.codex,d=P(e._meta).length>0||typeof i==="object"&&i!==null&&"delivery"in i&&i.delivery==="async";if(P(e._meta).length>0)t.final.push(e);else if(d)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else if(s==="final_answer")t.final.push(e);else if(s==="commentary"||T(e)||s===null&&n)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else t.final.push(e);break}case"thought":g(t,e,o);break;case"tool":if(g(t,e,o),e.toolKind==="edit")t.edits.push(e);break;case"plan":t.work.push({kind:"plan",key:`plan:${e.id}`,item:e});break;case"compaction":t.work.push({kind:"compaction",key:`compaction:${e.id}`,item:e});break}}function Ei(t,e=[],n=[]){let o=new Map(e.map((r)=>[r.key,r])),s=new Map(t.items.filter((r)=>r.kind==="tool").map((r)=>[r.id,r])),i={...t,items:t.items.filter((r)=>!sa(r))},d=new Map(n.map((r,a)=>[r.turnId,a])),u=[],f=[u],p,k=null;for(let r of i.items){let a=m(r),l=d.get(a??"");if(a!==null&&k!==null&&a!==k||l!==void 0&&p!==void 0&&l>p+1)u=[],f.push(u);if(u.push(r),a!==null||r.kind==="user")k=a;if(l!==void 0)p=l}return f.flatMap((r)=>S({...i,items:r})).map((r)=>{let a=r.prompt===null?[]:[r.prompt];for(let c of r.entries)w(c,a,s);let l=a[0];if(l===void 0)throw Error("A turn without items");let I=`turn:${l.kind}:${l.id}`,h=r.endedAt??Math.max(...a.map((c)=>c.at)),y=o.get(I);if(y!==void 0&&j(y.items,a)&&y.endedAt===h)return y;let x={key:I,user:r.prompt,work:[],final:[],errors:[],edits:[],startedAt:r.startedAt??l.at,endedAt:h,replayed:a.every(Mn),items:a},M=a.findLastIndex((c)=>c.kind!=="user"&&c.kind!=="compaction");return a.forEach((c,b)=>E(x,c,b<M,a[b-1])),x})}function j(t,e){return t.length===e.length&&t.every((n,o)=>n===e[o])}function Mn(t){let e=t._meta?.codex;return t.replayed||typeof e==="object"&&e!==null&&"historyReplay"in e&&e.historyReplay===!0}function re(t){return A(t.content)}function rt(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"historyInterrupted"in n&&n.historyInterrupted===!0})}function An(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"turnInterrupted"in n&&n.turnInterrupted===!0})}function Li(t){let e=(s)=>{for(let i of t.items){let d=i._meta?.codex;if(typeof d!=="object"||d===null)continue;let u=d[s];if(typeof u==="number"&&Number.isFinite(u)&&u>=0)return u}return},n=e("workDurationMs"),o=e("turnDurationMs");return{durationMs:n??o,durationKind:n===void 0&&o!==void 0?"total":"work",startedAt:e("workStartedAt")}}function Ri(t,e,n){if(n?.user==null)return!1;let o=e.items.map(m).find((i)=>i!==null),s=m(n.user);if(o!==void 0&&s!==null)return o===s;return!e.items.some((i)=>{let d=i._meta?.codex;return typeof d==="object"&&d!==null&&"turnCompletedAt"in d&&typeof d.turnCompletedAt==="number"})&&t.state!=="idle"&&(n.user.echo==="pending"||n.user.echo==="acknowledged")&&e.user!==null&&t.turnEndedAt[e.user.id]===void 0&&e.errors.length===0}function Fi(t,e){if(t.state==="idle")return;let n=e.length-1;while(n>0){let o=e[n];if(o.items.some((s)=>s.kind!=="user"))break;if(!Ri(t,e[n-1],o))break;n--}return e[n]?.key}function Di(t,e,n){let o=n,s=n;while(o>0&&Ri(t,e[o-1],e[o]))o--;while(s+1<e.length&&Ri(t,e[s],e[s+1]))s++;let i=e.slice(o,s+1),d=i.findLast((u)=>u.items.some((f)=>f.kind!=="user"))??i[0];return{continued:e[n]!==d,items:i.flatMap((u)=>u.items),edits:i.flatMap((u)=>u.edits),startedAt:i[0].startedAt}}
2
+ export{sa,Ai,Ei,Mn,re,rt,An,Li,Ri,Fi,Di};
@@ -0,0 +1,3 @@
1
+ import{yn,xn}from"./chunk-6wtrmxev.js";import{P}from"./chunk-be7ja8gh.js";import{tt}from"./chunk-y7v0ghc9.js";import{Pn}from"./chunk-xvzz0xh6.js";import{n}from"./chunk-bt01an6h.js";import{Ai,re,rt,Li}from"./chunk-8wdkc41j.js";import{Cn}from"./chunk-z4nv1j97.js";import{we}from"./chunk-h3hzsg0s.js";import{_n}from"./chunk-8hgrrycr.js";import{si}from"./chunk-c11c29rv.js";import{mi}from"./chunk-hrgtpvkw.js";import{gi}from"./chunk-2bbspcb4.js";import{kn,Sn}from"./chunk-e24d6hfs.js";import{ot}from"./chunk-gha517v4.js";import{codexMessageError as U,codexTurnError as q,isContentEntry as me,isEmbeddedResource as Z,isImage as ee,isResourceLink as de,isText as ce,nativeTurnId as ue}from"@nyssance/codex-acp-v2/client";import{LoaderCircleIcon as ge,SparklesIcon as pe}from"lucide-react";import{Fragment as X,memo as fe,useEffect as ye,useState as he}from"react";import{jsx as i,jsxs as l,Fragment as N}from"react/jsx-runtime";function Y(s){if(ee(s))return`${s.mimeType.toLowerCase()}:${s.data}`;if(Z(s)&&"blob"in s.resource&&s.resource.mimeType?.toLowerCase().startsWith("image/"))return`${s.resource.mimeType.toLowerCase()}:${s.resource.blob}`;return null}function ke({item:s}){let{t}=n(),m=s.status==="in_progress",[o,u]=he(()=>Date.now()-s.at>=1e4);return ye(()=>{if(!m)return;let a=Math.max(0,s.at+1e4-Date.now());if(u(a===0),a===0)return;let y=setTimeout(()=>u(!0),a);return()=>clearTimeout(y)},[s.id,s.at,m]),l("div",{className:"codex-context-compaction",children:[i(pe,{"aria-hidden":"true"}),i("span",{children:s.status==="completed"?t("stream.codex.contextCompacted"):s.status==="cancelled"?t("timeline.interrupted"):t(o?"timeline.compactingWithDelayNotice":"timeline.compacting")})]})}function E({sessionId:s,entry:t,terminals:m,streaming:o,streamingThoughtId:u}){let{t:a}=n();switch(t.kind){case"activity":return i(Cn,{sessionId:s,items:t.items,terminals:m,streamingThoughtId:u});case"text":return P(t.item._meta).length>0?i(_n,{sessionId:s,item:t.item}):i(we,{content:t.item.content,messageId:t.item.id,streaming:o});case"plan":return i(mi,{plan:t.item.plan});case"compaction":if(t.item.status==="failed")return l(kn,{children:[i("div",{children:a("timeline.compactionFailed")}),t.item.error!==null&&i("div",{children:t.item.error})]});return i(ke,{item:t.item})}}function xe({sessionId:s,turn:t,terminals:m,active:o,blocked:u=!1,continued:a=!1,edits:y=t.edits,activityItems:M=t.items,workStartedAt:te=t.startedAt,isLast:F,error:h,interrupted:L,retry:O,retrying:p,extraWork:d=null,answerActions:D,footer:ne}){let{t:c}=n(),A=t.errors.map((e)=>{let r=U(e);if(r===null)throw Error("Turn error item is missing its diagnostics");let v=O?.turnId===ue(e)?O:void 0;return i(Sn,{error:r,retry:v},`${e.id}:${v?.delaySeconds??"manual"}`)});if(F&&h!==null&&!t.errors.some((e)=>{let r=U(e);return r!==null&&r.stopReason===h.stopReason&&q(r).message===q(h).message}))A.push(i(Sn,{error:h},"current-run-error"));let k=A.length>0?i("div",{className:"codex-turn-errors",children:A}):null,b=t.items.filter(Pn);if(d===null&&b.length>0&&b.length===t.items.length)return l(N,{children:[i(Cn,{sessionId:s,items:b,terminals:m,streamingThoughtId:null}),k]});let x=t.work,T=x.length>0&&x.every((e)=>e.kind==="compaction");if(d===null&&(Ai(t)||T&&t.final.length===0))return l(N,{children:[i("div",{role:"status",className:"text-muted-foreground flex min-w-0 flex-col gap-2 py-2 text-sm",children:t.work.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:!1,streamingThoughtId:null},e.key))}),k]});let W=rt(t),B=t.final.filter((e)=>P(e._meta).length===0).map(re).join(`
2
+ `),w=o?null:ot(t,"assistant"),G=t.items.filter((e)=>e.kind==="tool"&&(e.name==="image_generation"||e.name==="alwith_client_generate_image")&&(e.status==="pending"||e.status==="in_progress")),H=new Set(t.final.flatMap((e)=>e.content.map(Y).filter((r)=>r!==null))),C=t.items.flatMap((e)=>{if(!tt(e))return[];return e.content.filter(me).flatMap((r,v)=>{let g=r.content,ae=ee(g),le=de(g)||Z(g)&&"blob"in g.resource;if(!ae&&!le)return[];let S=Y(g);if(S!==null){if(H.has(S))return[];H.add(S)}return[{key:`${e.id}:${v}`,block:g}]})}),K=t.final.some((e)=>P(e._meta).length===0&&e.content.some((r)=>!ce(r)||r.text.trim().length>0)),ie=G.length>0||C.length>0||T||K||t.final.some((e)=>P(e._meta).length>0),I=t.items.findIndex((e)=>t.final.includes(e)),R=(e)=>t.items.indexOf(e.kind==="activity"?e.items[0]:e.item),Q=x.filter((e)=>I===-1||R(e)<I),se=x.filter((e)=>I!==-1&&R(e)>I),oe=[...t.final.map((e)=>({kind:"answer",item:e,index:t.items.indexOf(e)})),...se.map((e)=>({kind:"work",entry:e,index:R(e)}))].toSorted((e,r)=>e.index-r.index),V=!o&&!a&&(B.trim().length>0?i(yn,{text:B,isMostRecentTurn:F,time:w,afterCopy:D}):l("div",{className:"flex items-center gap-0.5",children:[D,w&&i("span",{className:"codex-user-time ms-1",title:w.full,children:w.short})]})),f=gi({...t,items:M},{running:o,blocked:u,retrying:p!==void 0}),j=f.kind==="reasoning"?f.ownerKey??null:null,z=f.kind==="thinking",_=Li({...t,items:M}),J=o&&!K||d?.active===!0;return l(N,{children:[i(xn,{stateKey:JSON.stringify([s,t.replayed?"history":"live",t.key]),active:J,defaultExpanded:J||d?.defaultExpanded===!0||!t.replayed&&(L||W),..._,durationMs:d?.active?void 0:_.durationMs,startedAt:_.startedAt??te,loading:(z||f.kind==="working")&&t.work.length===0&&d===null,loadingLabel:f.kind==="working"?c("stream.codex.working"):void 0,work:[...a||T?[]:Q.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:o,streamingThoughtId:j},e.key)),...d===null?[]:[i(X,{children:d.content},"additional-work")]],answer:ie||a?l("div",{className:"flex min-w-0 flex-col gap-3",children:[(a||T)&&Q.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:!1,streamingThoughtId:null},e.key)),oe.map((e)=>{if(e.kind==="work")return i(E,{sessionId:s,entry:e.entry,terminals:m,streaming:o,streamingThoughtId:j},e.entry.key);let r=e.item;return l(X,{children:[P(r._meta).length>0?i(_n,{sessionId:s,item:r}):i(we,{content:r.content,messageId:r.id,streaming:o}),r===t.final.at(-1)&&V]},r.id)}),G.map((e)=>l("div",{className:"codex-image-generation",role:"status","aria-label":c(o?"timeline.imageGenerating":"timeline.imageStopped"),"aria-busy":o,children:[i("div",{className:"codex-image-generation-texture","aria-hidden":"true"}),l("span",{className:"codex-image-generation-status",children:[o&&i(ge,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),!o&&c("timeline.imageStopped")]})]},e.id)),C.length>0&&i("div",{className:"codex-reply-artifacts flex min-w-0 flex-col gap-3",children:C.map((e)=>i(we,{content:[e.block],messageId:e.key,streaming:!1},e.key))}),t.final.length===0&&V]}):null,footer:l(N,{children:[z&&t.work.length>0&&i("div",{className:"codex-pending-message py-2",role:"status",children:i("span",{className:"codex-activity-running",children:c("message.thinking")})}),ne,y.length>0&&!o&&!a&&i(si,{items:y}),L&&!W&&i("div",{className:"codex-interrupted-turn",role:"status",children:c("timeline.interrupted")}),!o&&k]})}),o&&p!==void 0&&i("div",{className:"text-muted-foreground py-2 text-sm",role:"status",children:p.capacity?(()=>{let e=/Reconnecting(?:\.\.\.)?\s+(\d+\/\d+)/.exec(p.message)?.[1];return e===void 0?c("timeline.capacityReconnecting"):c("timeline.capacityReconnectingProgress",{progress:e})})():p.message}),o&&k]})}var ri=fe(xe);
3
+ export{ri};
@@ -1,2 +1,2 @@
1
- import{createStore as M}from"@alwith/api/client";function k(a){return a instanceof Error?a.message:String(a)}function E(a){return a.interface?.displayName??a.name}function I(a){let u={},n=new Map,l=new Map;for(let p of a.data){for(let o of p.skills)if(n.set(o.path,o),o.scope==="repo"){let m=u[p.cwd]??[];if(!m.includes(o.path))m.push(o.path);u[p.cwd]=m}for(let o of p.errors)l.set(o.path,o)}return{skills:[...n.values()],errors:[...l.values()],projects:u}}function v(a){let u=[];for(let n of a.marketplaces)for(let l of n.plugins)if(l.installed)u.push({plugin:l,marketplace:n});return u.toSorted((n,l)=>(l.plugin.installedAt??0)-(n.plugin.installedAt??0))}function Dn(a){let{plugin:u,marketplace:n}=a;return{installAttemptId:crypto.randomUUID(),pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function A(a){let{plugin:u,marketplace:n}=a;return{pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function pt(a,u){let n=u??{t:(e)=>e},l=(e,r)=>n.t(e,r),p=(e)=>n.notify?.(e),o=(e)=>{if(n.reportError)n.reportError(Error(e));else console.error(e)},m=null,b=null,d=(e)=>S.setState(e),P=()=>S.getState(),y=async(e=!1)=>{if(await P().refresh(void 0,{forceRefetch:e,background:!0}),P().error)throw Error(l("plugins.toast.syncError",{message:P().error}))},f=(e,r)=>d((s)=>{let t={...s.busyIds};if(r===null)delete t[e];else t[e]=r;return{busyIds:t}}),h=(e,r)=>d((s)=>{let t={...s.busyMarketplaces};if(r)t[e]=!0;else delete t[e];return{busyMarketplaces:t}}),w=M({loading:!1,loadedScope:null,upgrading:!1,error:null,cwds:[],marketplaces:[],marketplaceLoadErrors:[],featuredPluginIds:[],installed:[],skills:[],skillProjects:{},skillErrors:[],busyIds:{},busySkills:{},busyMarketplaces:{},refresh:(e=P().cwds,r={})=>{if(m={cwds:e,forceRefetch:r.forceRefetch===!0||m?.forceRefetch===!0},d({cwds:e,...!r.background?{loading:!0}:{}}),b)return b;return b=(async()=>{while(m){let s=m;m=null,d({error:null});try{let[t,i,g]=await Promise.all([a.listSkills(s.cwds,s.forceRefetch),a.listPlugins({...s.cwds.length>0?{cwds:s.cwds}:{},...s.forceRefetch?{forceRefetch:!0}:{}}),a.installedPlugins(s.cwds)]);if(m)continue;let c=I(t);d({loadedScope:JSON.stringify(s.cwds),skills:c.skills,skillProjects:c.projects,skillErrors:c.errors,marketplaces:i.marketplaces,marketplaceLoadErrors:i.marketplaceLoadErrors,featuredPluginIds:i.featuredPluginIds,installed:v(g)})}catch(t){if(!m)d({error:k(t)})}}})().finally(()=>{b=null,d({loading:!1})}),b},install:async(e)=>{if(e.plugin.id in P().busyIds)throw Error("Plugin operation already in progress");let r=E(e.plugin);f(e.plugin.id,"installing");try{let s=await a.installPlugin(Dn(e));return await y(),f(e.plugin.id,null),p(l("plugins.toast.installed",{pluginName:r})),s}catch(s){throw o(`${l("plugins.toast.installError")}: ${k(s)}`),s}finally{f(e.plugin.id,null)}},setPluginEnabled:async(e,r)=>{if(e.id in P().busyIds)return;f(e.id,"toggling");let s=(i)=>d((g)=>({installed:g.installed.map((c)=>c.plugin.id===e.id?{...c,plugin:{...c.plugin,enabled:i}}:c)}));s(r);let t=e.enabled;try{let i=e.source.type==="remote"?e.remotePluginId:void 0;if(i===null)throw Error("Remote plugin ID is missing");let g=await a.setPluginEnabled(e.id,r,i);t=g.enabled,s(g.enabled),await y();let c=P().installed.find((R)=>R.plugin.id===e.id);if(c)t=c.plugin.enabled;if(!c||t!==r)throw Error(l("plugins.toast.toggleNotApplied"));f(e.id,null),p(l(r?"plugins.toast.enabled":"plugins.toast.disabled",{pluginName:E(e)}))}catch(i){s(t),o(`${l("plugins.toast.toggleError")}: ${k(i)}`)}finally{f(e.id,null)}},uninstall:async(e)=>{if(e.id in P().busyIds)return;let r=E(e);f(e.id,"uninstalling");try{let s=e.source.type==="remote"?e.remotePluginId:e.id;if(!s)throw Error("Remote plugin ID is missing");if(await a.uninstallPlugin(s),await y(),P().installed.some((t)=>t.plugin.id===e.id))throw Error(l("plugins.toast.uninstallNotApplied"));f(e.id,null),p(l("plugins.toast.uninstalled",{pluginName:r}))}catch(s){o(`${l("plugins.toast.uninstallError")}: ${k(s)}`)}finally{f(e.id,null)}},readPlugin:async(e)=>(await a.readPlugin(A(e))).plugin,setSkillEnabled:async(e,r)=>{if(e.path in P().busySkills)return;d((t)=>({busySkills:{...t.busySkills,[e.path]:!0}})),d((t)=>({skills:t.skills.map((i)=>i.path===e.path?{...i,enabled:r}:i)}));let s=e.interface?.displayName??e.name;try{let t=await a.setSkillEnabled({path:e.path,enabled:r});if(d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:t.effectiveEnabled}:g)})),t.effectiveEnabled!==r){o(l("plugins.catalog.toggleNotApplied"));return}p(l(r?"plugins.skills.enabledToast":"plugins.skills.disabledToast",{skillName:s}))}catch(t){d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:e.enabled}:g)})),o(`${l("plugins.skills.toggleError")}: ${k(t)}`)}finally{d((t)=>{let i={...t.busySkills};return delete i[e.path],{busySkills:i}})}},addMarketplace:async(e)=>{let r=await a.addMarketplace(e);return await y(!0),p(r.alreadyAdded?l("plugins.marketplace.alreadyAdded",{marketplaceName:r.marketplaceName}):l("plugins.marketplace.added",{marketplaceName:r.marketplaceName})),r},removeMarketplace:async(e)=>{h(e,!0);try{await a.removeMarketplace(e),await y(),h(e,!1),p(l("plugins.marketplace.removed",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.removeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeMarketplace:async(e)=>{h(e,!0);try{let r=await a.upgradeMarketplaces(e);if(await y(!0),h(e,!1),r.errors.length>0)o(`${l("plugins.marketplace.upgradeError")}: ${r.errors.map((s)=>s.message).join("; ")}`);else p(l("plugins.marketplace.upgraded",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.upgradeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeAll:async()=>{if(P().upgrading)return;d({upgrading:!0});try{let e=await a.upgradeMarketplaces();if(await y(!0),d({upgrading:!1}),e.errors.length>0)o(l("plugins.marketplace.upgradeAllError"));else p(l("plugins.marketplace.upgradedAll"))}catch(e){o(`${l("plugins.marketplace.upgradeAllRequestError")}: ${k(e)}`)}finally{d({upgrading:!1})}}}),S=Object.assign(w,{bindHost:(e)=>{n=e}});return S}
2
- export{Dn,pt};
1
+ import{createStore as M}from"@alwith/api/client";function k(a){return a instanceof Error?a.message:String(a)}function E(a){return a.interface?.displayName??a.name}function I(a){let u={},n=new Map,l=new Map;for(let p of a.data){for(let o of p.skills)if(n.set(o.path,o),o.scope==="repo"){let m=u[p.cwd]??[];if(!m.includes(o.path))m.push(o.path);u[p.cwd]=m}for(let o of p.errors)l.set(o.path,o)}return{skills:[...n.values()],errors:[...l.values()],projects:u}}function v(a){let u=[];for(let n of a.marketplaces)for(let l of n.plugins)if(l.installed)u.push({plugin:l,marketplace:n});return u.toSorted((n,l)=>(l.plugin.installedAt??0)-(n.plugin.installedAt??0))}function Bn(a){let{plugin:u,marketplace:n}=a;return{installAttemptId:crypto.randomUUID(),pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function A(a){let{plugin:u,marketplace:n}=a;return{pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function mt(a,u){let n=u??{t:(e)=>e},l=(e,r)=>n.t(e,r),p=(e)=>n.notify?.(e),o=(e)=>{if(n.reportError)n.reportError(Error(e));else console.error(e)},m=null,b=null,d=(e)=>S.setState(e),P=()=>S.getState(),y=async(e=!1)=>{if(await P().refresh(void 0,{forceRefetch:e,background:!0}),P().error)throw Error(l("plugins.toast.syncError",{message:P().error}))},f=(e,r)=>d((s)=>{let t={...s.busyIds};if(r===null)delete t[e];else t[e]=r;return{busyIds:t}}),h=(e,r)=>d((s)=>{let t={...s.busyMarketplaces};if(r)t[e]=!0;else delete t[e];return{busyMarketplaces:t}}),w=M({loading:!1,loadedScope:null,upgrading:!1,error:null,cwds:[],marketplaces:[],marketplaceLoadErrors:[],featuredPluginIds:[],installed:[],skills:[],skillProjects:{},skillErrors:[],busyIds:{},busySkills:{},busyMarketplaces:{},refresh:(e=P().cwds,r={})=>{if(m={cwds:e,forceRefetch:r.forceRefetch===!0||m?.forceRefetch===!0},d({cwds:e,...!r.background?{loading:!0}:{}}),b)return b;return b=(async()=>{while(m){let s=m;m=null,d({error:null});try{let[t,i,g]=await Promise.all([a.listSkills(s.cwds,s.forceRefetch),a.listPlugins({...s.cwds.length>0?{cwds:s.cwds}:{},...s.forceRefetch?{forceRefetch:!0}:{}}),a.installedPlugins(s.cwds)]);if(m)continue;let c=I(t);d({loadedScope:JSON.stringify(s.cwds),skills:c.skills,skillProjects:c.projects,skillErrors:c.errors,marketplaces:i.marketplaces,marketplaceLoadErrors:i.marketplaceLoadErrors,featuredPluginIds:i.featuredPluginIds,installed:v(g)})}catch(t){if(!m)d({error:k(t)})}}})().finally(()=>{b=null,d({loading:!1})}),b},install:async(e)=>{if(e.plugin.id in P().busyIds)throw Error("Plugin operation already in progress");let r=E(e.plugin);f(e.plugin.id,"installing");try{let s=await a.installPlugin(Bn(e));return await y(),f(e.plugin.id,null),p(l("plugins.toast.installed",{pluginName:r})),s}catch(s){throw o(`${l("plugins.toast.installError")}: ${k(s)}`),s}finally{f(e.plugin.id,null)}},setPluginEnabled:async(e,r)=>{if(e.id in P().busyIds)return;f(e.id,"toggling");let s=(i)=>d((g)=>({installed:g.installed.map((c)=>c.plugin.id===e.id?{...c,plugin:{...c.plugin,enabled:i}}:c)}));s(r);let t=e.enabled;try{let i=e.source.type==="remote"?e.remotePluginId:void 0;if(i===null)throw Error("Remote plugin ID is missing");let g=await a.setPluginEnabled(e.id,r,i);t=g.enabled,s(g.enabled),await y();let c=P().installed.find((R)=>R.plugin.id===e.id);if(c)t=c.plugin.enabled;if(!c||t!==r)throw Error(l("plugins.toast.toggleNotApplied"));f(e.id,null),p(l(r?"plugins.toast.enabled":"plugins.toast.disabled",{pluginName:E(e)}))}catch(i){s(t),o(`${l("plugins.toast.toggleError")}: ${k(i)}`)}finally{f(e.id,null)}},uninstall:async(e)=>{if(e.id in P().busyIds)return;let r=E(e);f(e.id,"uninstalling");try{let s=e.source.type==="remote"?e.remotePluginId:e.id;if(!s)throw Error("Remote plugin ID is missing");if(await a.uninstallPlugin(s),await y(),P().installed.some((t)=>t.plugin.id===e.id))throw Error(l("plugins.toast.uninstallNotApplied"));f(e.id,null),p(l("plugins.toast.uninstalled",{pluginName:r}))}catch(s){o(`${l("plugins.toast.uninstallError")}: ${k(s)}`)}finally{f(e.id,null)}},readPlugin:async(e)=>(await a.readPlugin(A(e))).plugin,setSkillEnabled:async(e,r)=>{if(e.path in P().busySkills)return;d((t)=>({busySkills:{...t.busySkills,[e.path]:!0}})),d((t)=>({skills:t.skills.map((i)=>i.path===e.path?{...i,enabled:r}:i)}));let s=e.interface?.displayName??e.name;try{let t=await a.setSkillEnabled({path:e.path,enabled:r});if(d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:t.effectiveEnabled}:g)})),t.effectiveEnabled!==r){o(l("plugins.catalog.toggleNotApplied"));return}p(l(r?"plugins.skills.enabledToast":"plugins.skills.disabledToast",{skillName:s}))}catch(t){d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:e.enabled}:g)})),o(`${l("plugins.skills.toggleError")}: ${k(t)}`)}finally{d((t)=>{let i={...t.busySkills};return delete i[e.path],{busySkills:i}})}},addMarketplace:async(e)=>{let r=await a.addMarketplace(e);return await y(!0),p(r.alreadyAdded?l("plugins.marketplace.alreadyAdded",{marketplaceName:r.marketplaceName}):l("plugins.marketplace.added",{marketplaceName:r.marketplaceName})),r},removeMarketplace:async(e)=>{h(e,!0);try{await a.removeMarketplace(e),await y(),h(e,!1),p(l("plugins.marketplace.removed",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.removeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeMarketplace:async(e)=>{h(e,!0);try{let r=await a.upgradeMarketplaces(e);if(await y(!0),h(e,!1),r.errors.length>0)o(`${l("plugins.marketplace.upgradeError")}: ${r.errors.map((s)=>s.message).join("; ")}`);else p(l("plugins.marketplace.upgraded",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.upgradeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeAll:async()=>{if(P().upgrading)return;d({upgrading:!0});try{let e=await a.upgradeMarketplaces();if(await y(!0),d({upgrading:!1}),e.errors.length>0)o(l("plugins.marketplace.upgradeAllError"));else p(l("plugins.marketplace.upgradedAll"))}catch(e){o(`${l("plugins.marketplace.upgradeAllRequestError")}: ${k(e)}`)}finally{d({upgrading:!1})}}}),S=Object.assign(w,{bindHost:(e)=>{n=e}});return S}
2
+ export{Bn,mt};
@@ -0,0 +1,2 @@
1
+ import{invoke as r}from"@tauri-apps/api/core";import{listen as t,once as s,emit as n,emitTo as o}from"@tauri-apps/api/event";var C={providersRead:()=>r("plugin:alwith-chat|providers_read"),providersSave:(e)=>r("plugin:alwith-chat|providers_save",e),providersSaveCustom:(e)=>r("plugin:alwith-chat|providers_save_custom",e),providersRemoveCustom:(e)=>r("plugin:alwith-chat|providers_remove_custom",e),providersTest:(e)=>r("plugin:alwith-chat|providers_test",e),providersApply:()=>r("plugin:alwith-chat|providers_apply"),providersAccountBind:(e)=>r("plugin:alwith-chat|providers_account_bind",e),providersRefreshManaged:(e)=>r("plugin:alwith-chat|providers_refresh_managed",e),providersClearManaged:()=>r("plugin:alwith-chat|providers_clear_managed"),readSkillDocument:(e)=>r("plugin:alwith-chat|read_skill_document",e),sessionsList:(e)=>r("plugin:alwith-chat|sessions_list",e),sessionsCountTypes:(e)=>r("plugin:alwith-chat|sessions_count_types",e),sessionsPersonaEvidence:(e)=>r("plugin:alwith-chat|sessions_persona_evidence",e),getModelPricing:()=>r("plugin:alwith-chat|get_model_pricing"),scanSessionAggregates:(e)=>r("plugin:alwith-chat|scan_session_aggregates",e),exportWeekSessions:()=>r("plugin:alwith-chat|export_week_sessions"),dailyTokenUsage:(e)=>r("plugin:alwith-chat|daily_token_usage",e),downloadUsageJson:(e)=>r("plugin:alwith-chat|download_usage_json",e),wordCloud:(e)=>r("plugin:alwith-chat|word_cloud",e)},nn={"providers:changed":{name:"providers:changed",listen:(e)=>t("providers:changed",e),once:(e)=>s("providers:changed",e),emit:(e)=>n("providers:changed",e),emitTo:(e,i)=>o(e,"providers:changed",i)},"providers:managed-revoked":{name:"providers:managed-revoked",listen:(e)=>t("providers:managed-revoked",e),once:(e)=>s("providers:managed-revoked",e),emit:(e)=>n("providers:managed-revoked",e),emitTo:(e,i)=>o(e,"providers:managed-revoked",i)}};function Kr(e){return typeof e==="object"&&e!==null&&typeof e.code==="string"&&typeof e.message==="string"}function la(e){if(Kr(e)||e instanceof Error)return e.message;return String(e)}
2
+ export{C,nn,Kr,la};
@@ -0,0 +1,2 @@
1
+ import{R}from"./chunk-6pwy0ncf.js";import{n}from"./chunk-bt01an6h.js";import{SquareSlashIcon as s}from"lucide-react";import{useRef as l}from"react";import{jsx as r}from"react/jsx-runtime";function No({textareaRef:a,onOpenChange:p,menuOpen:e,disabled:m}){let{t:o}=n(),t=l(!1);return r(R,{"aria-label":o("composer.commands"),title:o("composer.commands"),disabled:m,"aria-pressed":e,onPointerDown:()=>{t.current=e},onClick:()=>{p(!t.current),a.current?.getTextarea()?.focus()},children:r(s,{className:"size-4"})})}
2
+ export{No};
@@ -1,2 +1,2 @@
1
- class s{worker=new Worker(new URL("@alwith/module-chat/code-highlighter.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(i)=>{let e=this.active,t=i.data;if(t.clientId!==e?.clientId||t.revision!==e.revision){this.fail(Error("Code highlighting worker returned an unexpected request"));return}if(this.active=null,!t.ok){this.fail(Error(t.error));return}let r=this.clients.get(e.clientId);if(r?.revision===e.revision)r.onResult({code:e.code,language:e.language,html:t.html});this.dispatch()},this.worker.onerror=(i)=>this.fail(Error(i.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize code highlighting result"))}fail(i){this.failure=i,this.worker.terminate(),this.pending.clear(),this.active=null;for(let e of this.clients.values())e.onError(i)}dispatch(){if(this.active!==null||this.pending.size===0)return;let i=this.pending.values().next().value;this.pending.delete(i.clientId),this.active=i;try{this.worker.postMessage(i)}catch(e){this.fail(e instanceof Error?e:Error(String(e)))}}connect(i,e){if(this.failure!==null)throw this.failure;let t=++this.nextClientId,r={revision:0,onResult:i,onError:e};return this.clients.set(t,r),{update:(o,l)=>{if(this.failure!==null)throw this.failure;r.revision+=1,this.pending.set(t,{clientId:t,revision:r.revision,code:o,language:l}),this.dispatch()},dispose:()=>{if(this.clients.delete(t),this.pending.delete(t),this.clients.size===0)this.worker.terminate(),n=void 0}}}}var n;function yi(i,e){return n??=new s,n.connect(i,e)}
2
- export{yi};
1
+ class s{worker=new Worker(new URL("@alwith/module-chat/code-highlighter.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(i)=>{let e=this.active,t=i.data;if(t.clientId!==e?.clientId||t.revision!==e.revision){this.fail(Error("Code highlighting worker returned an unexpected request"));return}if(this.active=null,!t.ok){this.fail(Error(t.error));return}let r=this.clients.get(e.clientId);if(r?.revision===e.revision)r.onResult({code:e.code,language:e.language,html:t.html});this.dispatch()},this.worker.onerror=(i)=>this.fail(Error(i.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize code highlighting result"))}fail(i){this.failure=i,this.worker.terminate(),this.pending.clear(),this.active=null;for(let e of this.clients.values())e.onError(i)}dispatch(){if(this.active!==null||this.pending.size===0)return;let i=this.pending.values().next().value;this.pending.delete(i.clientId),this.active=i;try{this.worker.postMessage(i)}catch(e){this.fail(e instanceof Error?e:Error(String(e)))}}connect(i,e){if(this.failure!==null)throw this.failure;let t=++this.nextClientId,r={revision:0,onResult:i,onError:e};return this.clients.set(t,r),{update:(o,l)=>{if(this.failure!==null)throw this.failure;r.revision+=1,this.pending.set(t,{clientId:t,revision:r.revision,code:o,language:l}),this.dispatch()},dispose:()=>{if(this.clients.delete(t),this.pending.delete(t),this.clients.size===0)this.worker.terminate(),n=void 0}}}}var n;function Ii(i,e){return n??=new s,n.connect(i,e)}
2
+ export{Ii};
@@ -1,2 +1,2 @@
1
- import{ge}from"./chunk-bfqqsv6a.js";function to(r){let s=ge(),c=r.split("|").map((e)=>e.trim()).filter(Boolean),o=c.reduce((e,t)=>t.split("+").length>e.split("+").length?t:e,c[0]??r),a=[];for(let e of o.split("+").map((t)=>t.trim()))switch(e.toLowerCase()){case"commandorcontrol":case"cmdorctrl":a.push(s?"⌘":"Ctrl");break;case"command":case"meta":case"cmd":a.push(s?"⌘":"Win");break;case"control":case"ctrl":a.push(s?"⌃":"Ctrl");break;case"shift":a.push(s?"⇧":"Shift");break;case"alt":case"option":a.push(s?"⌥":"Alt");break;case"enter":case"return":a.push(s?"↩":"Enter");break;case"tab":a.push(s?"⇥":"Tab");break;case"backspace":case"delete":a.push(s?"⌫":"Backspace");break;case"escape":case"esc":a.push(s?"⎋":"Esc");break;case"space":a.push(s?"␣":"Space");break;case"fn":a.push("fn");break;case"arrowleft":a.push("←");break;case"arrowright":a.push("→");break;case"arrowup":a.push("↑");break;case"arrowdown":a.push("↓");break;default:a.push(e.toUpperCase())}return a}function me(r){return to(r).join(ge()?"":"+")}
2
- export{to,me};
1
+ import{fe}from"./chunk-m9mvh1gy.js";function ao(r){let s=fe(),c=r.split("|").map((e)=>e.trim()).filter(Boolean),o=c.reduce((e,t)=>t.split("+").length>e.split("+").length?t:e,c[0]??r),a=[];for(let e of o.split("+").map((t)=>t.trim()))switch(e.toLowerCase()){case"commandorcontrol":case"cmdorctrl":a.push(s?"⌘":"Ctrl");break;case"command":case"meta":case"cmd":a.push(s?"⌘":"Win");break;case"control":case"ctrl":a.push(s?"⌃":"Ctrl");break;case"shift":a.push(s?"⇧":"Shift");break;case"alt":case"option":a.push(s?"⌥":"Alt");break;case"enter":case"return":a.push(s?"↩":"Enter");break;case"tab":a.push(s?"⇥":"Tab");break;case"backspace":case"delete":a.push(s?"⌫":"Backspace");break;case"escape":case"esc":a.push(s?"⎋":"Esc");break;case"space":a.push(s?"␣":"Space");break;case"fn":a.push("fn");break;case"arrowleft":a.push("←");break;case"arrowright":a.push("→");break;case"arrowup":a.push("↑");break;case"arrowdown":a.push("↓");break;default:a.push(e.toUpperCase())}return a}function ge(r){return ao(r).join(fe()?"":"+")}
2
+ export{ao,ge};
@@ -1,2 +1,2 @@
1
- import{cn as i}from"cn";import{jsx as t,jsxs as s}from"react/jsx-runtime";var $e="group/trailing";function Me({children:n,className:e}){return t("span",{className:i("flex w-5 shrink-0 items-center justify-center whitespace-nowrap",e),children:n})}function Ke({content:n,actions:e,className:r}){if(n==null&&e==null)return null;return s("span",{className:i("group/swap relative flex min-h-5 min-w-5 shrink-0 items-center justify-end",r),children:[n!=null&&t("span",{className:i("flex items-center justify-end",e!=null&&"group-focus-within/trailing:hidden group-hover/trailing:hidden group-has-[[data-popup-open]]/swap:hidden"),children:n}),e!=null&&t("span",{className:"absolute inset-y-0 end-0 hidden w-max items-center justify-end gap-0.5 group-focus-within/trailing:flex group-hover/trailing:flex has-[[data-popup-open]]:flex",onClick:(a)=>a.stopPropagation(),onKeyDown:(a)=>a.stopPropagation(),children:e})]})}
2
- export{$e,Me,Ke};
1
+ import{cn as i}from"cn";import{jsx as t,jsxs as s}from"react/jsx-runtime";var $e="group/trailing";function Ae({children:n,className:e}){return t("span",{className:i("flex w-5 shrink-0 items-center justify-center whitespace-nowrap",e),children:n})}function Ke({content:n,actions:e,className:r}){if(n==null&&e==null)return null;return s("span",{className:i("group/swap relative flex min-h-5 min-w-5 shrink-0 items-center justify-end",r),children:[n!=null&&t("span",{className:i("flex items-center justify-end",e!=null&&"group-focus-within/trailing:hidden group-hover/trailing:hidden group-has-[[data-popup-open]]/swap:hidden"),children:n}),e!=null&&t("span",{className:"absolute inset-y-0 end-0 hidden w-max items-center justify-end gap-0.5 group-focus-within/trailing:flex group-hover/trailing:flex has-[[data-popup-open]]:flex",onClick:(a)=>a.stopPropagation(),onKeyDown:(a)=>a.stopPropagation(),children:e})]})}
2
+ export{$e,Ae,Ke};
@@ -1,3 +1,3 @@
1
- import{r,a,o}from"./chunk-eg86g265.js";import{Ne,ee,q}from"./chunk-eqwga6j5.js";import{sessionGroup as j}from"@nyssance/codex-acp-v2/client";import{cn as de}from"cn";import{ArchiveIcon as ue,FolderIcon as U,ListFilterIcon as me,SearchIcon as pe,Trash2Icon as _}from"lucide-react";import{useEffect as he,useRef as fe,useState as d}from"react";import{Alert as P,AlertDescription as T}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as ve,DialogContent as ge,DialogDescription as xe,DialogFooter as Se,DialogHeader as ye,DialogTitle as Le}from"@nyssance/shadcn/vega/components/ui/dialog";import{Input as Ce}from"@nyssance/shadcn/vega/components/ui/input";import{Select as R,SelectContent as we,SelectItem as x,SelectTrigger as W,SelectValue as J}from"@nyssance/shadcn/vega/components/ui/select";import{Spinner as M}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as t,jsxs as i}from"react/jsx-runtime";function X({className:u,...s}){return t(we,{align:"start",alignItemWithTrigger:!1,sideOffset:6,...s,className:de("max-w-(--available-width) min-w-0 p-1",u)})}function E(u){return u instanceof Error?u.message:String(u)}function De({children:u}){return t("div",{className:"min-h-0 flex-1 overflow-y-auto",children:t("div",{className:"flex flex-col gap-8",children:u})})}function sr({Scroll:u=De}){let{t:s,i18n:A}=r(),m=a(),S=o((e)=>e.archivedSessions),N=o((e)=>e.connection),[B,Y]=d(""),[y,Z]=d("all"),[p,te]=d("all"),[se,ie]=d(0),[z,F]=d(!0),[I,V]=d(null),[H,O]=d(null),[C,w]=d(!1),h=fe(!1),[D,f]=d(null),[G,b]=d(null),[ne,K]=d(!1);he(()=>{if(N!=="ready")return;let e=!1;F(!0),V(null);async function c(){try{await m.listArchived({reset:!0});let n=new Set;while(!e&&m.state.archivedCursor!==null){let v=m.state.archivedCursor;if(n.has(v))throw Error("Archive pagination returned a repeated cursor");n.add(v),await m.listArchived()}}catch(n){if(!e)V(E(n))}finally{if(!e)F(!1)}}return c(),()=>{e=!0}},[m,N,se]);let l=o((e)=>e.projectContext),k=!(l!==null&&N==="ready"&&!z&&I===null)||C,L=(e)=>e.title??s("sessionList.untitled"),ae=[...new Set(S.filter((e)=>l&&j(l,e).id!==q).map((e)=>l?j(l,e).id:e.cwd))].toSorted(),re=B.trim().toLocaleLowerCase(A.language),Q=S.filter((e)=>{let c=l?j(l,e).id:null,n=c===q;return L(e).toLocaleLowerCase(A.language).includes(re)&&(y==="all"||(y==="quick"?n:!n))&&(p==="all"||(p==="quick"?n:c===p))}),le=new Intl.DateTimeFormat(A.language,{dateStyle:"medium",timeStyle:"short"});async function oe(e){if(h.current)return;h.current=!0,w(!0),O(null);try{await m.unarchive(e.sessionId)}catch(c){O(E(c))}finally{h.current=!1,w(!1)}}async function ce(){if(h.current||!D)return;h.current=!0,w(!0),b(null);let e=[],c=[];try{for(let n of D){if(!m.state.archivedSessions.some((v)=>v.sessionId===n.sessionId))continue;try{await m.delete(n.sessionId)}catch(v){e.push(n),c.push(`${L(n)}: ${E(v)}`)}}if(e.length)f(e),b(c.join(`
2
- `));else f(null)}finally{h.current=!1,w(!1)}}return i("section",{className:"flex min-h-0 flex-1 flex-col overflow-hidden","aria-label":s("sessionList.archives.title"),children:[i("div",{className:"mx-auto flex min-h-0 w-full max-w-5xl flex-1 flex-col gap-8 px-6 pt-8 pb-10 lg:pb-14",children:[i("header",{className:"flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3",children:[t("h1",{className:"text-2xl leading-9 font-semibold tracking-tight",children:s("sessionList.archives.title")}),i(g,{size:"sm",variant:"destructive",className:"h-[30px] text-sm font-normal",disabled:k||S.length===0,onClick:()=>{b(null),K(!0),f([...S])},children:[t(_,{className:"size-4","aria-hidden":"true"}),s("sessionList.archives.deleteAll")]})]}),i("div",{className:"flex shrink-0 flex-wrap gap-3",children:[i("div",{className:"relative min-w-48 flex-1",children:[t(pe,{"aria-hidden":"true",className:"text-muted-foreground pointer-events-none absolute start-3 top-2.5 size-4"}),t(Ce,{"aria-label":s("sessionList.archives.search"),placeholder:s("sessionList.archives.search"),value:B,onChange:(e)=>Y(e.target.value),className:"rounded-md ps-9"})]}),i(R,{value:y,onValueChange:(e)=>{if(e===null)throw Error("Archive chat type cannot be empty");Z(e)},children:[i(W,{"aria-label":s("sessionList.archives.chatType"),className:"w-40 rounded-md",children:[t(me,{"aria-hidden":"true"}),t(J,{children:s(`sessionList.archives.${y==="all"?"allChats":y==="quick"?"quickChats":"projectChats"}`)})]}),i(X,{children:[t(x,{value:"all",children:s("sessionList.archives.allChats")}),t(x,{value:"quick",children:s("sessionList.archives.quickChats")}),t(x,{value:"project",children:s("sessionList.archives.projectChats")})]})]}),i(R,{value:p,onValueChange:(e)=>{if(e===null)throw Error("Archive project filter cannot be empty");te(e)},children:[i(W,{"aria-label":s("sessionList.archives.project"),className:"w-48 rounded-md",children:[t(U,{"aria-hidden":"true"}),t(J,{className:"truncate",children:p==="all"?s("sessionList.archives.allProjects"):p==="quick"?s("sessionList.archives.noProject"):ee(p,l??void 0)})]}),i(X,{children:[t(x,{value:"all",children:s("sessionList.archives.allProjects")}),t(x,{value:"quick",children:s("sessionList.archives.noProject")}),ae.map((e)=>t(x,{value:e,title:e,children:ee(e,l??void 0)},e))]})]})]}),i(u,{children:[N!=="ready"?t("p",{role:"status",className:"text-muted-foreground",children:s("sessionList.archives.connecting")}):z?i("div",{role:"status",className:"text-muted-foreground flex items-center gap-2",children:[t(M,{}),s("sessionList.archives.loading")]}):I?t(P,{variant:"destructive",children:i(T,{className:"flex items-center justify-between gap-4",children:[t("span",{children:I}),t(g,{variant:"outline",onClick:()=>ie((e)=>e+1),children:s("sessionList.archives.retry")})]})}):S.length===0?i("div",{className:"text-muted-foreground flex flex-col items-center gap-3 py-16",children:[t(ue,{"aria-hidden":"true",className:"size-8"}),t("p",{children:s("sessionList.archives.empty")})]}):Q.length===0?t("p",{className:"text-muted-foreground py-12 text-center",children:s("sessionList.archives.noResults")}):(l?Ne(Q,l):[]).filter(([,e])=>e.length>0).map(([e,c])=>i("section",{className:"flex flex-col gap-3",children:[i("div",{className:"flex items-center justify-between gap-3",children:[i("h2",{className:"flex min-w-0 items-center gap-2 text-sm font-medium",title:e===q?void 0:e,children:[t(U,{"aria-hidden":"true",className:"size-4 shrink-0"}),t("span",{className:"truncate",children:e===q?s("sessionList.archives.noProject"):ee(e,l??void 0)})]}),t("span",{className:"text-muted-foreground shrink-0 text-sm",children:s("sessionList.archives.count",{count:c.length})})]}),t("div",{className:"divide-border divide-y overflow-hidden rounded-lg border",children:c.map((n)=>i("article",{"aria-label":L(n),className:"flex flex-wrap items-center gap-4 px-4 py-3",children:[i("div",{className:"min-w-0 flex-1 basis-40",children:[t("h3",{className:"truncate text-sm font-medium",title:L(n),children:L(n)}),n.updatedAt!==null&&t("time",{dateTime:n.updatedAt,title:s("sessionList.archives.updatedAt"),className:"text-muted-foreground text-xs",children:le.format(new Date(n.updatedAt))})]}),i("div",{className:"flex shrink-0 items-center gap-2",children:[t(g,{variant:"ghost",size:"icon-sm","aria-label":s("sessionList.delete"),title:s("sessionList.delete"),disabled:k,className:"text-muted-foreground hover:text-destructive",onClick:()=>{b(null),K(!1),f([n])},children:t(_,{"aria-hidden":"true"})}),t(g,{variant:"secondary",size:"sm",disabled:k,onClick:()=>void oe(n),children:s("sessionList.archives.unarchive")})]})]},n.sessionId))})]},e)),H&&t(P,{variant:"destructive",children:t(T,{children:H})})]})]}),t(ve,{open:D!==null,onOpenChange:(e)=>{if(!e&&!h.current)f(null)},children:i(ge,{showCloseButton:!C,children:[i(ye,{children:[t(Le,{children:s("sessionList.archives.deleteTitle")}),t(xe,{children:s(ne?"sessionList.archives.deleteAllDescription":"sessionList.archives.deleteDescription",{count:D?.length??0})})]}),G&&t(P,{variant:"destructive",children:t(T,{className:"max-h-40 overflow-auto whitespace-pre-wrap",children:G})}),i(Se,{children:[t(g,{variant:"outline",disabled:C,onClick:()=>f(null),children:s("sessionList.cancel")}),i(g,{variant:"destructive",className:"text-sm font-normal",disabled:k,onClick:()=>void ce(),children:[C&&t(M,{}),s("sessionList.archives.confirmDelete")]})]})]})})]})}
3
- export{sr};
1
+ import{r,a,o}from"./chunk-d1pc0mrb.js";import{Me,ne,Z}from"./chunk-qez4ygej.js";import{sessionGroup as j}from"@nyssance/codex-acp-v2/client";import{cn as de}from"cn";import{ArchiveIcon as ue,FolderIcon as Q,ListFilterIcon as me,SearchIcon as pe,Trash2Icon as U}from"lucide-react";import{useEffect as he,useRef as fe,useState as d}from"react";import{Alert as P,AlertDescription as T}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as ve,DialogContent as ge,DialogDescription as xe,DialogFooter as Se,DialogHeader as ye,DialogTitle as Le}from"@nyssance/shadcn/vega/components/ui/dialog";import{Input as Ne}from"@nyssance/shadcn/vega/components/ui/input";import{Select as _,SelectContent as Ce,SelectItem as x,SelectTrigger as R,SelectValue as W}from"@nyssance/shadcn/vega/components/ui/select";import{Spinner as J}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as t,jsxs as i}from"react/jsx-runtime";function M({className:u,...s}){return t(Ce,{align:"start",alignItemWithTrigger:!1,sideOffset:6,...s,className:de("max-w-(--available-width) min-w-0 p-1",u)})}function E(u){return u instanceof Error?u.message:String(u)}function we({children:u}){return t("div",{className:"min-h-0 flex-1 overflow-y-auto",children:t("div",{className:"flex flex-col gap-8",children:u})})}function hr({Scroll:u=we}){let{t:s,i18n:A}=r(),m=a(),S=o((e)=>e.archivedSessions),N=o((e)=>e.connection),[B,X]=d(""),[y,Y]=d("all"),[p,ee]=d("all"),[te,se]=d(0),[q,z]=d(!0),[I,F]=d(null),[V,H]=d(null),[C,w]=d(!1),h=fe(!1),[D,f]=d(null),[O,b]=d(null),[ie,G]=d(!1);he(()=>{if(N!=="ready")return;let e=!1;z(!0),F(null);async function c(){try{await m.listArchived({reset:!0});let n=new Set;while(!e&&m.state.archivedCursor!==null){let v=m.state.archivedCursor;if(n.has(v))throw Error("Archive pagination returned a repeated cursor");n.add(v),await m.listArchived()}}catch(n){if(!e)F(E(n))}finally{if(!e)z(!1)}}return c(),()=>{e=!0}},[m,N,te]);let l=o((e)=>e.projectContext),k=!(l!==null&&N==="ready"&&!q&&I===null)||C,L=(e)=>e.title??s("sessionList.untitled"),ae=[...new Set(S.filter((e)=>l&&j(l,e).id!==Z).map((e)=>l?j(l,e).id:e.cwd))].toSorted(),re=B.trim().toLocaleLowerCase(A.language),K=S.filter((e)=>{let c=l?j(l,e).id:null,n=c===Z;return L(e).toLocaleLowerCase(A.language).includes(re)&&(y==="all"||(y==="quick"?n:!n))&&(p==="all"||(p==="quick"?n:c===p))}),le=new Intl.DateTimeFormat(A.language,{dateStyle:"medium",timeStyle:"short"});async function oe(e){if(h.current)return;h.current=!0,w(!0),H(null);try{await m.unarchive(e.sessionId)}catch(c){H(E(c))}finally{h.current=!1,w(!1)}}async function ce(){if(h.current||!D)return;h.current=!0,w(!0),b(null);let e=[],c=[];try{for(let n of D){if(!m.state.archivedSessions.some((v)=>v.sessionId===n.sessionId))continue;try{await m.delete(n.sessionId)}catch(v){e.push(n),c.push(`${L(n)}: ${E(v)}`)}}if(e.length)f(e),b(c.join(`
2
+ `));else f(null)}finally{h.current=!1,w(!1)}}return i("section",{className:"flex min-h-0 flex-1 flex-col overflow-hidden","aria-label":s("sessionList.archives.title"),children:[i("div",{className:"mx-auto flex min-h-0 w-full max-w-5xl flex-1 flex-col gap-8 px-6 pt-8 pb-10 lg:pb-14",children:[i("header",{className:"flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3",children:[t("h1",{className:"text-2xl leading-9 font-semibold tracking-tight",children:s("sessionList.archives.title")}),i(g,{size:"sm",variant:"destructive",className:"h-[30px] text-sm font-normal",disabled:k||S.length===0,onClick:()=>{b(null),G(!0),f([...S])},children:[t(U,{className:"size-4","aria-hidden":"true"}),s("sessionList.archives.deleteAll")]})]}),i("div",{className:"flex shrink-0 flex-wrap gap-3",children:[i("div",{className:"relative min-w-48 flex-1",children:[t(pe,{"aria-hidden":"true",className:"text-muted-foreground pointer-events-none absolute start-3 top-2.5 size-4"}),t(Ne,{"aria-label":s("sessionList.archives.search"),placeholder:s("sessionList.archives.search"),value:B,onChange:(e)=>X(e.target.value),className:"rounded-md ps-9"})]}),i(_,{value:y,onValueChange:(e)=>{if(e===null)throw Error("Archive chat type cannot be empty");Y(e)},children:[i(R,{"aria-label":s("sessionList.archives.chatType"),className:"w-40 rounded-md",children:[t(me,{"aria-hidden":"true"}),t(W,{children:s(`sessionList.archives.${y==="all"?"allChats":y==="quick"?"quickChats":"projectChats"}`)})]}),i(M,{children:[t(x,{value:"all",children:s("sessionList.archives.allChats")}),t(x,{value:"quick",children:s("sessionList.archives.quickChats")}),t(x,{value:"project",children:s("sessionList.archives.projectChats")})]})]}),i(_,{value:p,onValueChange:(e)=>{if(e===null)throw Error("Archive project filter cannot be empty");ee(e)},children:[i(R,{"aria-label":s("sessionList.archives.project"),className:"w-48 rounded-md",children:[t(Q,{"aria-hidden":"true"}),t(W,{className:"truncate",children:p==="all"?s("sessionList.archives.allProjects"):p==="quick"?s("sessionList.archives.noProject"):ne(p,l??void 0)})]}),i(M,{children:[t(x,{value:"all",children:s("sessionList.archives.allProjects")}),t(x,{value:"quick",children:s("sessionList.archives.noProject")}),ae.map((e)=>t(x,{value:e,title:e,children:ne(e,l??void 0)},e))]})]})]}),i(u,{children:[N!=="ready"?t("p",{role:"status",className:"text-muted-foreground",children:s("sessionList.archives.connecting")}):q?i("div",{role:"status",className:"text-muted-foreground flex items-center gap-2",children:[t(J,{}),s("sessionList.archives.loading")]}):I?t(P,{variant:"destructive",children:i(T,{className:"flex items-center justify-between gap-4",children:[t("span",{children:I}),t(g,{variant:"outline",onClick:()=>se((e)=>e+1),children:s("sessionList.archives.retry")})]})}):S.length===0?i("div",{className:"text-muted-foreground flex flex-col items-center gap-3 py-16",children:[t(ue,{"aria-hidden":"true",className:"size-8"}),t("p",{children:s("sessionList.archives.empty")})]}):K.length===0?t("p",{className:"text-muted-foreground py-12 text-center",children:s("sessionList.archives.noResults")}):(l?Me(K,l):[]).filter(([,e])=>e.length>0).map(([e,c])=>i("section",{className:"flex flex-col gap-3",children:[i("div",{className:"flex items-center justify-between gap-3",children:[i("h2",{className:"flex min-w-0 items-center gap-2 text-sm font-medium",title:e===Z?void 0:e,children:[t(Q,{"aria-hidden":"true",className:"size-4 shrink-0"}),t("span",{className:"truncate",children:e===Z?s("sessionList.archives.noProject"):ne(e,l??void 0)})]}),t("span",{className:"text-muted-foreground shrink-0 text-sm",children:s("sessionList.archives.count",{count:c.length})})]}),t("div",{className:"divide-border divide-y overflow-hidden rounded-lg border",children:c.map((n)=>i("article",{"aria-label":L(n),className:"flex flex-wrap items-center gap-4 px-4 py-3",children:[i("div",{className:"min-w-0 flex-1 basis-40",children:[t("h3",{className:"truncate text-sm font-medium",title:L(n),children:L(n)}),n.updatedAt!==null&&t("time",{dateTime:n.updatedAt,title:s("sessionList.archives.updatedAt"),className:"text-muted-foreground text-xs",children:le.format(new Date(n.updatedAt))})]}),i("div",{className:"flex shrink-0 items-center gap-2",children:[t(g,{variant:"ghost",size:"icon-sm","aria-label":s("sessionList.delete"),title:s("sessionList.delete"),disabled:k,className:"text-muted-foreground hover:text-destructive",onClick:()=>{b(null),G(!1),f([n])},children:t(U,{"aria-hidden":"true"})}),t(g,{variant:"secondary",size:"sm",disabled:k,onClick:()=>void oe(n),children:s("sessionList.archives.unarchive")})]})]},n.sessionId))})]},e)),V&&t(P,{variant:"destructive",children:t(T,{children:V})})]})]}),t(ve,{open:D!==null,onOpenChange:(e)=>{if(!e&&!h.current)f(null)},children:i(ge,{showCloseButton:!C,children:[i(ye,{children:[t(Le,{children:s("sessionList.archives.deleteTitle")}),t(xe,{children:s(ie?"sessionList.archives.deleteAllDescription":"sessionList.archives.deleteDescription",{count:D?.length??0})})]}),O&&t(P,{variant:"destructive",children:t(T,{className:"max-h-40 overflow-auto whitespace-pre-wrap",children:O})}),i(Se,{children:[t(g,{variant:"outline",disabled:C,onClick:()=>f(null),children:s("sessionList.cancel")}),i(g,{variant:"destructive",className:"text-sm font-normal",disabled:k,onClick:()=>void ce(),children:[C&&t(J,{}),s("sessionList.archives.confirmDelete")]})]})]})})]})}
3
+ export{hr};