@alwith/module-chat 0.5.12 → 0.5.14

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 (340) hide show
  1. package/README.md +7 -0
  2. package/dist/activity-host.js +1 -1
  3. package/dist/approval/choice-elicitation-form.js +1 -1
  4. package/dist/approval/choice-schema.js +1 -1
  5. package/dist/approval/permission-options.js +1 -1
  6. package/dist/approval/permission-view.js +1 -1
  7. package/dist/approval/schema-elicitation-form.js +1 -1
  8. package/dist/approval/url-elicitation-card.js +1 -1
  9. package/dist/{chunk-tm4ee7m3.js → chunk-0keppemg.js} +2 -2
  10. package/dist/chunk-0nkvfecf.js +1 -0
  11. package/dist/{chunk-wmk2dwpf.js → chunk-0pv9mq6d.js} +2 -2
  12. package/dist/{chunk-mwd0ed0c.js → chunk-10j68dch.js} +2 -2
  13. package/dist/chunk-12fcr66z.js +2 -0
  14. package/dist/chunk-1aeswxaf.js +2 -0
  15. package/dist/{chunk-ksv9pjc2.js → chunk-1fm5vx1n.js} +1 -1
  16. package/dist/chunk-1hzdqep7.js +2 -0
  17. package/dist/{chunk-58bs5f2z.js → chunk-1wpdb17m.js} +2 -2
  18. package/dist/{chunk-reaxcamj.js → chunk-20mzyay7.js} +2 -2
  19. package/dist/chunk-25bzk1wv.js +1 -0
  20. package/dist/chunk-2a3tezgr.js +1 -0
  21. package/dist/{chunk-qwyvq7bk.js → chunk-2aqv0chk.js} +2 -2
  22. package/dist/{chunk-3dvx2q8w.js → chunk-2ecx1xed.js} +2 -2
  23. package/dist/chunk-2mkqpzzx.js +2 -0
  24. package/dist/{chunk-tjykfxrd.js → chunk-2pj3pcc7.js} +2 -2
  25. package/dist/{chunk-tjpr0adf.js → chunk-2qhbm5y9.js} +2 -2
  26. package/dist/{chunk-q256c3hn.js → chunk-2r3sfmyf.js} +2 -2
  27. package/dist/{chunk-bftrddmr.js → chunk-2rv3cq7q.js} +2 -2
  28. package/dist/chunk-3919sqde.js +2 -0
  29. package/dist/{chunk-zmpbfbnn.js → chunk-39sbgvd3.js} +2 -2
  30. package/dist/{chunk-e15f3anm.js → chunk-3w0wbv9c.js} +3 -3
  31. package/dist/{chunk-fnbs3dq1.js → chunk-40d5the9.js} +2 -2
  32. package/dist/{chunk-c7km8xgd.js → chunk-4andq00q.js} +2 -2
  33. package/dist/{chunk-vyccmpdn.js → chunk-4ed8as5d.js} +2 -2
  34. package/dist/chunk-4r3ch7fk.js +2 -0
  35. package/dist/chunk-4s1rhts0.js +1 -0
  36. package/dist/chunk-4tff1nyj.js +2 -0
  37. package/dist/{chunk-sn80gr8g.js → chunk-54941m0z.js} +3 -3
  38. package/dist/{chunk-phy911dk.js → chunk-56e8naj1.js} +3 -3
  39. package/dist/chunk-59g9h4v1.js +2 -0
  40. package/dist/{chunk-kbwjcnf6.js → chunk-5cnw6yc7.js} +1 -1
  41. package/dist/{chunk-bcrq96dw.js → chunk-5x4an3fb.js} +2 -2
  42. package/dist/chunk-61944cv6.js +2 -0
  43. package/dist/chunk-6acs2hzs.js +2 -0
  44. package/dist/chunk-6k4mbmg1.js +4 -0
  45. package/dist/{chunk-xj0y094j.js → chunk-6s7z09b0.js} +2 -2
  46. package/dist/{chunk-4hv66fey.js → chunk-6t3tgzps.js} +2 -2
  47. package/dist/chunk-6wqbetcx.js +1 -0
  48. package/dist/chunk-7eje3z81.js +2 -0
  49. package/dist/chunk-7f89k828.js +2 -0
  50. package/dist/{chunk-m6h92nq4.js → chunk-7jyekmy9.js} +2 -2
  51. package/dist/{chunk-0qm0fy2r.js → chunk-7qrz8zq8.js} +2 -2
  52. package/dist/{chunk-vcbv30ph.js → chunk-7zrnt6zw.js} +2 -2
  53. package/dist/{chunk-62m11b37.js → chunk-8e3wcvkd.js} +3 -3
  54. package/dist/chunk-96x0d2vd.js +1 -0
  55. package/dist/{chunk-xa20eex9.js → chunk-9gv1zffv.js} +1 -1
  56. package/dist/{chunk-cy6grsx0.js → chunk-9j609g4n.js} +1 -1
  57. package/dist/chunk-9zmkj0dp.js +3 -0
  58. package/dist/{chunk-gszy4mhj.js → chunk-a3x74cr0.js} +2 -2
  59. package/dist/{chunk-mkw0twsb.js → chunk-a6b2vhmb.js} +2 -2
  60. package/dist/chunk-aarvddmn.js +1 -0
  61. package/dist/chunk-afd3bq7v.js +2 -0
  62. package/dist/chunk-aj5fk4ez.js +2 -0
  63. package/dist/chunk-b9hjn4a5.js +2 -0
  64. package/dist/chunk-bj5ma2sv.js +2 -0
  65. package/dist/chunk-c493d8ay.js +1 -0
  66. package/dist/chunk-cf5mxxyp.js +3 -0
  67. package/dist/chunk-cjmjv7pv.js +2 -0
  68. package/dist/{chunk-anfrrs5x.js → chunk-d5ga13n0.js} +1 -1
  69. package/dist/{chunk-ddtb692j.js → chunk-d5w1nvrz.js} +2 -2
  70. package/dist/chunk-da4m33bg.js +2 -0
  71. package/dist/chunk-da6d6wze.js +1 -0
  72. package/dist/{chunk-fteek5h4.js → chunk-djmnmbm2.js} +2 -2
  73. package/dist/{chunk-hwfwd04r.js → chunk-dnsmr5nf.js} +2 -2
  74. package/dist/{chunk-1k03fpcj.js → chunk-dxnttcwd.js} +2 -2
  75. package/dist/{chunk-27vftbhf.js → chunk-dyp6kjqz.js} +4 -4
  76. package/dist/chunk-e1gwprwe.js +2 -0
  77. package/dist/chunk-ea3582qy.js +1 -0
  78. package/dist/{chunk-c0ac9k7h.js → chunk-efcpawhs.js} +2 -2
  79. package/dist/{chunk-63zq5nr8.js → chunk-egqxz6f8.js} +2 -2
  80. package/dist/{chunk-36t9x2qc.js → chunk-en8s7tet.js} +3 -3
  81. package/dist/{chunk-dxt9j0da.js → chunk-f4a1my6v.js} +2 -2
  82. package/dist/{chunk-mvv5xmap.js → chunk-fexvhys2.js} +2 -2
  83. package/dist/{chunk-qnk5jk1b.js → chunk-frbeen15.js} +2 -2
  84. package/dist/{chunk-s2k5xynq.js → chunk-frqg34kq.js} +2 -2
  85. package/dist/{chunk-753s76b6.js → chunk-g5gz25jy.js} +2 -2
  86. package/dist/{chunk-2w576ygb.js → chunk-gkv8w3v0.js} +2 -2
  87. package/dist/{chunk-a1kmc6t8.js → chunk-gtahrx8j.js} +3 -3
  88. package/dist/{chunk-hh498geh.js → chunk-h2gng003.js} +6 -6
  89. package/dist/{chunk-dgnk7h62.js → chunk-j3tka93v.js} +2 -2
  90. package/dist/{chunk-kw487283.js → chunk-jkwf97cs.js} +2 -2
  91. package/dist/{chunk-qg1b5k6m.js → chunk-jzkmsbpe.js} +2 -2
  92. package/dist/{chunk-ek06eyp4.js → chunk-kjtd3wc3.js} +1 -1
  93. package/dist/{chunk-zg2342s2.js → chunk-kq8kz0jn.js} +2 -2
  94. package/dist/chunk-m2jsfvs2.js +1 -0
  95. package/dist/{chunk-4wkpatzz.js → chunk-m2xmz1ag.js} +2 -2
  96. package/dist/chunk-mr1azhef.js +1 -0
  97. package/dist/{chunk-svt0t387.js → chunk-mzh48e09.js} +2 -2
  98. package/dist/chunk-n1tjf64a.js +2 -0
  99. package/dist/chunk-n5xqjct2.js +1 -0
  100. package/dist/chunk-n8kfbg68.js +2 -0
  101. package/dist/{chunk-znyyzs85.js → chunk-nact4a4b.js} +2 -2
  102. package/dist/chunk-nbkkfyss.js +2 -0
  103. package/dist/{chunk-9t8ptjct.js → chunk-nt224frq.js} +2 -2
  104. package/dist/{chunk-mk379yt7.js → chunk-p1wnt0e5.js} +2 -2
  105. package/dist/{chunk-fpx4ng0t.js → chunk-pafshe3v.js} +2 -2
  106. package/dist/{chunk-xxkdv1zf.js → chunk-pv35kspb.js} +1 -1
  107. package/dist/{chunk-c9k66x5g.js → chunk-pvj43sjx.js} +2 -2
  108. package/dist/chunk-pzth3knm.js +2 -0
  109. package/dist/chunk-q4btsq6a.js +3 -0
  110. package/dist/chunk-q6km9nha.js +2 -0
  111. package/dist/chunk-qpmjezsw.js +1 -0
  112. package/dist/{chunk-d6840cvf.js → chunk-qsg1c5cc.js} +2 -2
  113. package/dist/chunk-qvknvzqn.js +2 -0
  114. package/dist/{chunk-y6r6tzfh.js → chunk-qxabrz98.js} +2 -2
  115. package/dist/chunk-r4r5ythb.js +2 -0
  116. package/dist/{chunk-gtqwgjjg.js → chunk-r9p03chx.js} +2 -2
  117. package/dist/{chunk-r0t8zj4g.js → chunk-rvr6zj7p.js} +2 -2
  118. package/dist/{chunk-023yzyq8.js → chunk-rxc15vtr.js} +2 -2
  119. package/dist/{chunk-w45d5th9.js → chunk-s0ef3h7b.js} +2 -2
  120. package/dist/{chunk-ckft9abb.js → chunk-s55n9cby.js} +2 -2
  121. package/dist/{chunk-6nyba0m4.js → chunk-t1j88bvm.js} +2 -2
  122. package/dist/{chunk-ds6avzj3.js → chunk-tp1gaw68.js} +2 -2
  123. package/dist/chunk-tq6ekz3s.js +2 -0
  124. package/dist/{chunk-8a1j96d1.js → chunk-vk36fprb.js} +2 -2
  125. package/dist/chunk-vzy4vwqr.js +2 -0
  126. package/dist/{chunk-chwg3na0.js → chunk-w38vbf7h.js} +2 -2
  127. package/dist/chunk-wpdn3rx8.js +1 -0
  128. package/dist/chunk-x7jtngzd.js +2 -0
  129. package/dist/chunk-x8kxqtva.js +2 -0
  130. package/dist/{chunk-3ah1ez70.js → chunk-xe52kj6h.js} +5 -5
  131. package/dist/chunk-xfx689xm.js +3 -0
  132. package/dist/{chunk-bbwb4555.js → chunk-y2z94rrh.js} +2 -2
  133. package/dist/{chunk-7avpdkmf.js → chunk-y3567zfn.js} +2 -2
  134. package/dist/{chunk-kfs19vc5.js → chunk-y6afvrnv.js} +2 -2
  135. package/dist/{chunk-y0psrvcc.js → chunk-yh9qdb2k.js} +3 -3
  136. package/dist/{chunk-6ss1981q.js → chunk-ykp85wc1.js} +2 -2
  137. package/dist/chunk-z3mp9z01.js +2 -0
  138. package/dist/{chunk-hz1pgnqp.js → chunk-z4zm74ge.js} +2 -2
  139. package/dist/chunk-zjmqne2f.js +2 -0
  140. package/dist/chunk-zynyx32t.js +2 -0
  141. package/dist/chunk-zzhwfrzb.js +2 -0
  142. package/dist/codex/activity-group.js +1 -1
  143. package/dist/codex/assistant-message.js +1 -1
  144. package/dist/codex/async-question-card.js +1 -1
  145. package/dist/codex/disclosure-state.js +1 -1
  146. package/dist/codex/edited-files-card.js +1 -1
  147. package/dist/codex/image-view-activity.js +1 -1
  148. package/dist/codex/markdown-renderer.js +1 -1
  149. package/dist/codex/navigation-audio.js +1 -1
  150. package/dist/codex/navigation-preview.js +1 -1
  151. package/dist/codex/navigation-rail.js +1 -1
  152. package/dist/codex/patch-view.js +1 -1
  153. package/dist/codex/plan.js +1 -1
  154. package/dist/codex/timeline-virtualizer.js +1 -1
  155. package/dist/codex/turn-activity.js +1 -1
  156. package/dist/codex/user-message.js +1 -1
  157. package/dist/codex/virtualized-turn-list.js +1 -1
  158. package/dist/composer/completion-filter.js +1 -1
  159. package/dist/composer/completion-menu.js +1 -1
  160. package/dist/composer/completion-trigger.js +1 -1
  161. package/dist/composer/effort-slider.js +1 -1
  162. package/dist/composer/menu-radio.js +1 -1
  163. package/dist/composer/model-select.js +1 -1
  164. package/dist/composer/permission-mode-select.js +1 -1
  165. package/dist/composer/prompt-input-attachments.js +1 -1
  166. package/dist/composer/prompt-input-clipboard.js +1 -1
  167. package/dist/composer/prompt-input-context.js +1 -1
  168. package/dist/composer/prompt-input-textarea.d.ts +1 -1
  169. package/dist/composer/prompt-input-textarea.js +1 -1
  170. package/dist/composer/prompt-input.js +1 -1
  171. package/dist/conversation/action-card.js +1 -1
  172. package/dist/conversation/composer/composer.js +1 -1
  173. package/dist/conversation/composer/config-options.js +1 -1
  174. package/dist/conversation/composer/context.js +1 -1
  175. package/dist/conversation/composer/drafts.js +1 -1
  176. package/dist/conversation/composer/file-items.js +1 -1
  177. package/dist/conversation/composer/long-text.js +1 -1
  178. package/dist/conversation/composer/mention-chips.js +1 -1
  179. package/dist/conversation/composer/mention-uri.js +1 -1
  180. package/dist/conversation/composer/model-menu.js +1 -1
  181. package/dist/conversation/composer/pasted-text-attachment.js +1 -1
  182. package/dist/conversation/composer/permission-mode-menu.js +1 -1
  183. package/dist/conversation/composer/prediction.js +1 -1
  184. package/dist/conversation/composer/slash-command-button.js +1 -1
  185. package/dist/conversation/composer/submit-button.js +1 -1
  186. package/dist/conversation/composer/usage-meter.js +1 -1
  187. package/dist/conversation/context.js +1 -1
  188. package/dist/conversation/conversation-body.js +1 -1
  189. package/dist/conversation/conversation-view.js +1 -1
  190. package/dist/conversation/conversation.d.ts +1 -0
  191. package/dist/conversation/conversation.js +1 -1
  192. package/dist/conversation/diff-modal.js +1 -1
  193. package/dist/conversation/session-actions.js +1 -1
  194. package/dist/conversation/subagent-sessions.d.ts +3 -0
  195. package/dist/conversation/subagent-sessions.js +1 -0
  196. package/dist/image-lightbox.js +1 -1
  197. package/dist/image-preview-dialog.js +1 -1
  198. package/dist/lib/code-highlighter.js +1 -1
  199. package/dist/lib/fuzzy.js +1 -1
  200. package/dist/lib/group-blocks.js +1 -1
  201. package/dist/lib/image-encode.js +1 -1
  202. package/dist/lib/limits.js +1 -1
  203. package/dist/lib/markdown-parser.js +1 -1
  204. package/dist/lib/markdown-rules.js +1 -1
  205. package/dist/lib/model-name.js +1 -1
  206. package/dist/lib/pointer-centered-zoom.js +1 -1
  207. package/dist/lib/prepare-prompt-files.js +1 -1
  208. package/dist/lib/stream-style.js +1 -1
  209. package/dist/lib/streaming-markdown.js +1 -1
  210. package/dist/locales.d.ts +143 -0
  211. package/dist/locales.js +1 -1
  212. package/dist/search/chat-search.js +1 -1
  213. package/dist/search/dom-matches.js +1 -1
  214. package/dist/search/find-bar.js +1 -1
  215. package/dist/search/literal-matches.js +1 -1
  216. package/dist/session-list/archived-sessions.js +1 -1
  217. package/dist/session-list/highlight.js +1 -1
  218. package/dist/session-list/host.js +1 -1
  219. package/dist/session-list/hover-info-card.js +1 -1
  220. package/dist/session-list/locales.js +1 -1
  221. package/dist/session-list/navigation.js +1 -1
  222. package/dist/session-list/overflow-marquee.js +1 -1
  223. package/dist/session-list/row-stop-button.js +1 -1
  224. package/dist/session-list/session-groups.js +1 -1
  225. package/dist/session-list/session-info-card.js +1 -1
  226. package/dist/session-list/session-list.js +1 -1
  227. package/dist/session-list/session-row.js +1 -1
  228. package/dist/session-list/session-state-dot.js +1 -1
  229. package/dist/session-list/session-state-menu.js +1 -1
  230. package/dist/session-list/sidebar-overlay.js +1 -1
  231. package/dist/session-list/trailing-swap.js +1 -1
  232. package/dist/session-list/use-activity-preview.js +1 -1
  233. package/dist/session-list/use-project-sessions.js +1 -1
  234. package/dist/session-list/virtual-session-rows.js +1 -1
  235. package/dist/session-timeline/activity-group.js +1 -1
  236. package/dist/session-timeline/activity-projection.js +1 -1
  237. package/dist/session-timeline/assistant-content.js +1 -1
  238. package/dist/session-timeline/assistant-turn.js +1 -1
  239. package/dist/session-timeline/async-questions.js +1 -1
  240. package/dist/session-timeline/edited-files-card.js +1 -1
  241. package/dist/session-timeline/history-timeline.js +1 -1
  242. package/dist/session-timeline/host.js +1 -1
  243. package/dist/session-timeline/navigation-rail.js +1 -1
  244. package/dist/session-timeline/plan.js +1 -1
  245. package/dist/session-timeline/question-reply.js +1 -1
  246. package/dist/session-timeline/resource-content.js +1 -1
  247. package/dist/session-timeline/session-timeline.js +1 -1
  248. package/dist/session-timeline/timeline-registry.js +1 -1
  249. package/dist/session-timeline/turn-activity.js +1 -1
  250. package/dist/session-timeline/turn-error.js +1 -1
  251. package/dist/session-timeline/turn-retry.js +1 -1
  252. package/dist/session-timeline/turn-time.js +1 -1
  253. package/dist/session-timeline/turns.js +1 -1
  254. package/dist/session-timeline/use-timeline-scroll.js +1 -1
  255. package/dist/session-timeline/user-message.js +1 -1
  256. package/dist/ui/alert.js +1 -1
  257. package/dist/ui/badge.js +1 -1
  258. package/dist/ui/button.js +1 -1
  259. package/dist/ui/card.d.ts +1 -1
  260. package/dist/ui/card.js +1 -1
  261. package/dist/ui/checkbox.js +1 -1
  262. package/dist/ui/dialog.d.ts +2 -2
  263. package/dist/ui/dialog.js +1 -1
  264. package/dist/ui/dropdown-menu.d.ts +2 -2
  265. package/dist/ui/dropdown-menu.js +1 -1
  266. package/dist/ui/empty.js +1 -1
  267. package/dist/ui/field.d.ts +1 -1
  268. package/dist/ui/field.js +1 -1
  269. package/dist/ui/hover-card.js +1 -1
  270. package/dist/ui/input-group.d.ts +4 -3
  271. package/dist/ui/input-group.js +1 -1
  272. package/dist/ui/input.js +1 -1
  273. package/dist/ui/kbd.js +1 -1
  274. package/dist/ui/label.js +1 -1
  275. package/dist/ui/radio-group.js +1 -1
  276. package/dist/ui/select.d.ts +2 -2
  277. package/dist/ui/select.js +1 -1
  278. package/dist/ui/separator.js +1 -1
  279. package/dist/ui/skeleton.js +1 -1
  280. package/dist/ui/spinner.js +1 -1
  281. package/dist/ui/switch.js +1 -1
  282. package/dist/ui/textarea.js +1 -1
  283. package/dist/ui/tooltip.js +1 -1
  284. package/package.json +3 -3
  285. package/dist/chunk-1dh0q11h.js +0 -4
  286. package/dist/chunk-1drkvxzk.js +0 -1
  287. package/dist/chunk-1hy64ewz.js +0 -1
  288. package/dist/chunk-24b1z856.js +0 -2
  289. package/dist/chunk-2pha46d9.js +0 -1
  290. package/dist/chunk-31x6chk8.js +0 -2
  291. package/dist/chunk-3g66qg03.js +0 -2
  292. package/dist/chunk-3q6ssrs3.js +0 -2
  293. package/dist/chunk-6kn920c5.js +0 -1
  294. package/dist/chunk-76w1a72z.js +0 -2
  295. package/dist/chunk-8712sy9s.js +0 -1
  296. package/dist/chunk-8jpm8fnf.js +0 -1
  297. package/dist/chunk-9hvbm4be.js +0 -2
  298. package/dist/chunk-9v94xnhp.js +0 -2
  299. package/dist/chunk-a2hygrpr.js +0 -1
  300. package/dist/chunk-ak0k5vg6.js +0 -1
  301. package/dist/chunk-ana59z25.js +0 -1
  302. package/dist/chunk-aprxk7c2.js +0 -2
  303. package/dist/chunk-b1vw42he.js +0 -2
  304. package/dist/chunk-b3nt7axf.js +0 -2
  305. package/dist/chunk-b5z75meq.js +0 -2
  306. package/dist/chunk-b65vdzz3.js +0 -1
  307. package/dist/chunk-bna24ggr.js +0 -2
  308. package/dist/chunk-bzk6wn2s.js +0 -3
  309. package/dist/chunk-ee9pzqnq.js +0 -2
  310. package/dist/chunk-evx9d147.js +0 -2
  311. package/dist/chunk-f3e3ged2.js +0 -2
  312. package/dist/chunk-f7n8erng.js +0 -2
  313. package/dist/chunk-fa0kzj3j.js +0 -2
  314. package/dist/chunk-gbbpdhg6.js +0 -2
  315. package/dist/chunk-gpz9f9zq.js +0 -2
  316. package/dist/chunk-hgj33wbd.js +0 -2
  317. package/dist/chunk-hpyaxv6h.js +0 -2
  318. package/dist/chunk-ht28382s.js +0 -2
  319. package/dist/chunk-hw99hhjf.js +0 -1
  320. package/dist/chunk-jr591zg2.js +0 -2
  321. package/dist/chunk-jtv179nm.js +0 -2
  322. package/dist/chunk-ks05sstp.js +0 -1
  323. package/dist/chunk-nad1erxy.js +0 -3
  324. package/dist/chunk-ncekagm6.js +0 -1
  325. package/dist/chunk-nwrbpw97.js +0 -2
  326. package/dist/chunk-qv4x469a.js +0 -2
  327. package/dist/chunk-rag9xsg5.js +0 -2
  328. package/dist/chunk-rrrpp44m.js +0 -2
  329. package/dist/chunk-rtg6xfgr.js +0 -2
  330. package/dist/chunk-sbyn62qx.js +0 -2
  331. package/dist/chunk-shsyer15.js +0 -2
  332. package/dist/chunk-tt40vzdd.js +0 -2
  333. package/dist/chunk-vc9ts6wp.js +0 -2
  334. package/dist/chunk-x2tsybks.js +0 -3
  335. package/dist/chunk-xd5rqbwp.js +0 -1
  336. package/dist/chunk-y1kkt0m2.js +0 -3
  337. package/dist/chunk-zp5ntx27.js +0 -2
  338. package/dist/chunk-zw3h5xgf.js +0 -1
  339. package/dist/ui/input-group-textarea.d.ts +0 -2
  340. package/dist/ui/input-group-textarea.js +0 -1
@@ -1,2 +0,0 @@
1
- import{et,Y}from"./chunk-aprxk7c2.js";import{L}from"./chunk-tjykfxrd.js";import{z}from"./chunk-fteek5h4.js";import{J}from"./chunk-ht28382s.js";import{Ie,se,Se}from"./chunk-q256c3hn.js";import{PreviewCard as x}from"@base-ui/react/preview-card";import{cn as p}from"cn";import{LockIcon as I}from"lucide-react";import{createContext as S,useContext as k,useLayoutEffect as T,useState as R}from"react";import"@alwith/module-chat/session-list.css";import{jsx as e,jsxs as d,Fragment as G}from"react/jsx-runtime";function fn(o){if(o.as==="ul"){let{as:i,className:r,...a}=o;return e("ul",{className:p("flex w-full min-w-0 flex-col gap-0.5",r),...a})}let{as:t,className:n,...s}=o;return e("div",{className:p("flex w-full min-w-0 flex-col gap-0.5",n),...s})}function Te({className:o,...t}){return e("span",{"data-slot":"navigation-leading",className:p("flex size-6 shrink-0 items-center justify-center [&_.lucide]:size-3.5",o),...t})}function Xe({active:o,className:t,...n}){return e("button",{type:"button","data-active":o?"":void 0,"aria-current":o?"page":void 0,className:p("group/navigation-row focus-visible:outline-ring flex h-[30px] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",t),...n})}function Pt({open:o,onOpenChange:t,tooltip:n,leading:s,label:i,count:r,countLabel:a,active:l=!1,actions:N,headerChildren:f,wrapHeader:u,onHeaderClick:w,children:C}){let b=()=>{w?.(),t(!o)},m=p(Ie,"relative flex h-[30px] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-start [corner-shape:superellipse(1.5)]"),h=d(G,{children:[s!=null&&e(Te,{children:s}),f??e(L,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(Se,{content:r!==void 0?e(se,{className:p("text-muted-foreground justify-end text-xs opacity-70",a&&"w-auto"),children:e("span",{dir:"ltr",children:a??r})}):void 0,actions:N})})]}),P=f==null?d("div",{"data-active":l?"":void 0,title:n,className:p(m,Y),onClick:b,onKeyDown:(c)=>{if(c.target!==c.currentTarget)return;if(c.key!=="Enter"&&c.key!==" ")return;c.preventDefault(),b()},children:[e("button",{type:"button","aria-expanded":o,"aria-label":typeof i==="string"?i:n,className:"focus-visible:outline-ring absolute inset-0 rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]"}),h]}):e("div",{"data-active":l?"":void 0,className:m,children:h});return d("div",{className:"text-[#1a1c1f] dark:text-white",children:[u===void 0?P:u(P),o&&e(fn,{className:"mt-0.5",children:C})]})}var H=S(()=>{}),O=S(()=>{});function Ye(){return k(O)}function Ze(){return k(H)}function Je({active:o=!1,state:t,interruption:n=null,leased:s=!1,media:i,title:r,hoverCard:a,onHoverCardOpenChange:l,subtitle:N,preview:f,listeningPorts:u,onOpenPort:w,accessory:C,meta:b,hint:m,actions:h,className:P,...c}){let y=d("div",{"data-slot":"navigation-session-item","data-active":o,className:p(Ie,et,"group/navigation-row focus-visible:outline-ring flex h-[30px] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]",(f||u!=null&&u.length>0)&&"h-auto min-h-[30px] py-2.5",P),...c,children:[e(Te,{children:t!=null?e(z,{state:t,title:n??void 0}):i}),d("span",{className:"flex min-w-0 flex-1 flex-col",children:[e(L,{className:p("leading-none",t==="done"&&"font-semibold"),children:r}),N!=null&&e(L,{className:"text-muted-foreground text-xs",children:N}),f&&e("span",{className:"text-muted-foreground mt-1.5 line-clamp-2 text-xs leading-[18px] [overflow-wrap:anywhere] break-words",children:f}),u!=null&&u.length>0&&e("span",{className:"text-muted-foreground mt-1.5 flex flex-wrap items-center gap-2 font-mono text-xs",children:u.map((v)=>w?d("button",{type:"button",className:"underline",onPointerDown:(g)=>g.stopPropagation(),onKeyDown:(g)=>g.stopPropagation(),onClick:(g)=>{g.stopPropagation(),w(v)},children:[":",v]},v):d("span",{children:[":",v]},v))})]}),d("span",{className:"relative ms-auto flex shrink-0 items-center gap-1",children:[s&&e(I,{className:"text-muted-foreground size-3"}),e(Se,{content:C!=null?e(se,{children:C}):b??e(se,{}),actions:h}),m!=null&&e("span",{className:"pointer-events-none absolute end-1 top-1/2 flex h-5 min-w-5 -translate-y-1/2 items-center justify-center",children:m})]})]});if(a==null)return y;return e(_,{row:y,onOpenChange:l,children:a})}function _({row:o,children:t,onOpenChange:n}){let[s,i]=R(!1),[r,a]=R(!1),l=s||r;return T(()=>(n?.(l),()=>n?.(!1)),[l,n]),e(H.Provider,{value:a,children:e(O.Provider,{value:()=>{i(!1),a(!1)},children:e(E,{open:l,onOpenChange:i,trigger:o,children:t})})})}function E({open:o,onOpenChange:t,trigger:n,children:s,side:i="inline-end",sideOffset:r=2,align:a="start",alignOffset:l}){return J(o),d(x.Root,{open:o,onOpenChange:t,children:[e(x.Trigger,{render:n,delay:700,closeDelay:100}),e(x.Portal,{children:e(x.Positioner,{side:i,sideOffset:r,align:a,alignOffset:l,className:"isolate z-50",children:e(x.Popup,{"data-slot":"codex-hover-card",className:"bg-popover text-popover-foreground ring-foreground/10 m-px flex w-80 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-md text-sm shadow-md ring-1 outline-hidden select-none",children:e("div",{className:"flex w-full min-w-0 flex-col px-0 py-1 break-words whitespace-normal",children:s})})})})]})}
2
- export{fn,Te,Xe,Pt,Ye,Ze,Je};
@@ -1,2 +0,0 @@
1
- import{g,Qt,ko,Xt,Co,Yt,To}from"./chunk-36t9x2qc.js";import{t,ie,ke,o}from"./chunk-f3e3ged2.js";import{ee}from"./chunk-zmpbfbnn.js";import{createStore as E}from"@alwith/api/client";import{isText as k,nativeTurnId as v}from"@nyssance/codex-acp-v2/client";import{jsx as m}from"react/jsx-runtime";var x=E({entries:{}});function p(i,e){x.setState((n)=>({entries:{...n.entries,[i]:e}}))}function q(i,e){let n=v(e),a=i.items.findLast((s)=>v(s)!==null);return!e.replayed&&n!==null&&a!==void 0&&v(a)===n}function M(i,e){for(let n of i.items){if(n.kind!=="user"||n.echo==="pending")continue;for(let a of[...Yt(n._meta),...n.content.filter(k).flatMap((s)=>Yt(s._meta))])if(a.questionItemId===e)return a.answer}return}function O({sessionId:i,item:e,question:n,index:a}){let s=ie(),{t:l}=t(),S=Qt(e.id,a),d=JSON.stringify([i,S]),u=ke(x,(r)=>r.entries[d]),c=o((r)=>r.sessions[i]),A=o((r)=>r.connection==="ready"),f=u?.draft??ko(n),b=c===void 0?u?.accepted:M(c,S)??u?.accepted,h=c!==void 0&&q(c,e),D=A&&c?.attached&&!c.restoring&&!c.readOnly,y=b!==void 0?"answered":u?.skipped?"skipped":u?.pending?"submitting":!h?"closed":!D?"unavailable":"pending",C=async()=>{if(x.getState().entries[d]?.pending||y!=="pending")return;let r=s.state.sessions[i];if(r===void 0||!q(r,e)||!r.attached||r.readOnly||r.restoring)return;let I=Xt(n,f);if(!I.trim())return;let w={questionItemId:S,question:n.title,answer:I};p(d,{draft:f,pending:!0});try{await s.prompt(i,[{type:"text",text:Co(w),_meta:{codex:{questionReply:w}}}]),p(d,{draft:f,accepted:I})}catch(Q){p(d,{draft:f,error:Q instanceof Error?Q.message:String(Q)})}};if(y==="closed")return null;return m(To,{question:n,draft:f,status:y,answer:b,error:y==="pending"?u?.error:void 0,t:l,onChange:(r)=>p(d,{draft:r}),onSkip:()=>p(d,{draft:f,skipped:!0}),onSubmit:()=>{C()}})}function Kt({sessionId:i,item:e}){let n=o((s)=>s.sessions[i]),a=g(e._meta);if(n===void 0||n.readOnly||!q(n,e))return m(ee,{content:e.content.some((s)=>!k(s)||s.text.trim().length>0)?e.content:a.map((s)=>({type:"text",text:s.title})),messageId:e.id,streaming:!1});return m("div",{className:"flex min-w-0 flex-col gap-3","data-async-questions":e.id,children:a.map((s,l)=>m(O,{sessionId:i,item:e,question:s,index:l},Qt(e.id,l)))})}
2
- export{Kt};
@@ -1,2 +0,0 @@
1
- import{lr}from"./chunk-y6r6tzfh.js";import{createContext as s,useContext as l,useSyncExternalStore as m}from"react";import{jsx as r}from"react/jsx-runtime";var c=s(null),u=s(null);function re({host:e,client:n,children:i}){return r(lr,{host:e,children:r(c,{value:e,children:r(u,{value:n,children:i})})})}function t(){let e=l(c);if(e===null)throw Error("Timeline host is missing");return e}function ie(){let e=l(u);if(e===null)throw Error("Timeline client is missing");return e}function ke(e,n){return m((i)=>e.subscribe(i),()=>n(e.getState()),()=>n(e.getState()))}function o(e){let n=ie();return ke(n.store,e)}function Ve(e,n){if(e.reportError)e.reportError(n);else console.error(n)}
2
- export{re,t,ie,ke,o,Ve};
@@ -1,2 +0,0 @@
1
- import{groupSessions as le,projectName as U,isQuickChatDirectory as pr,QUICK_CHATS_GROUP as D}from"@nyssance/codex-acp-v2/client";
2
- export{le,U,pr,D};
@@ -1,2 +0,0 @@
1
- import{v}from"./chunk-y6r6tzfh.js";import{G}from"./chunk-w45d5th9.js";import{isPlanItems as n,isPlanMarkdown as r}from"@nyssance/codex-acp-v2/client";import{jsx as e}from"react/jsx-runtime";function So({plan:t}){if(r(t))return e("div",{className:"codex-reasoning-details",children:e(v,{text:t.content,streaming:!1})});if(!n(t))return null;return e(G,{entries:t.entries})}
2
- export{So};
@@ -1,2 +0,0 @@
1
- import{ze}from"./chunk-vcbv30ph.js";import{K,Jo}from"./chunk-gtqwgjjg.js";import{t}from"./chunk-f3e3ged2.js";import{Go}from"./chunk-cy6grsx0.js";import{ye,be,we}from"./chunk-hw99hhjf.js";import{cn as d}from"cn";import{SquareIcon as b}from"lucide-react";import{jsx as o,jsxs as n,Fragment as h}from"react/jsx-runtime";var f=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform);function Wo({active:a,sending:r,ready:p,hasMentions:m=!1,onStop:c}){let{t:e}=t(),s=ze(),u=m||s.textInput.value.trim().length>0||s.attachments.files.length>0,l=!p||r||!u,i=a?e("composer.steer"):e("composer.send");return n(h,{children:[a&&o(K,{"aria-label":e("composer.stop"),title:e("composer.stop"),className:"border-border size-7 rounded-full border",onClick:c,children:o(b,{className:"size-3 fill-current"})}),o("div",{className:d(l&&"cursor-not-allowed"),children:n(ye,{children:[o(be,{render:o(Jo,{"aria-label":i,disabled:l,"aria-busy":r,status:r?"submitted":"ready"})}),n(we,{role:"tooltip",children:[o("span",{className:"min-w-0",children:i}),o(Go,{className:"shrink-0",children:f?"↩":"Enter"})]})]})})]})}
2
- export{Wo};
@@ -1,2 +0,0 @@
1
- import{i,A,vt}from"./chunk-fnbs3dq1.js";var Vo=5000;function xe(t){return"pastedText"in t}function $r(t){return`file://${encodeURI(t).replaceAll("#","%23").replaceAll("?","%3F")}`}function Fe(t,e,o){let n=(r,s)=>{for(let[a,x]of i){if(!x.attachments.some((p)=>p.id===e.id))continue;A(a,(p)=>p.map((d)=>d.id===e.id?{...e,url:s===void 0?"":$r(s),pastedText:{text:e.pastedText.text,status:r}}:d))}};if(!i.get(t)?.attachments.some((r)=>r.id===e.id))return;n("pending"),vt(e.id,o("pasted-text.txt",e.pastedText.text).then((r)=>n("ready",r)).catch(()=>n("error")))}function ft(t,e,o,n){if(t.defaultPrevented||t.currentTarget.disabled)return;if([...t.clipboardData.items].some((a)=>a.kind==="file"&&a.type.startsWith("image/")))return;let r=t.clipboardData.getData("text/plain");if(r.length<Vo)return;t.preventDefault(),t.stopPropagation();let s={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:o,url:"",pastedText:{text:r,status:"pending"}};A(e,(a)=>[...a,s]),Fe(e,s,n)}
2
- export{Vo,xe,$r,Fe,ft};
@@ -1,2 +0,0 @@
1
- import{K}from"./chunk-gtqwgjjg.js";import{t}from"./chunk-f3e3ged2.js";import{SquareSlashIcon as s}from"lucide-react";import{useRef as l}from"react";import{jsx as r}from"react/jsx-runtime";function jo({textareaRef:a,onOpenChange:p,menuOpen:e,disabled:m}){let{t:o}=t(),n=l(!1);return r(K,{"aria-label":o("composer.commands"),title:o("composer.commands"),disabled:m,"aria-pressed":e,onPointerDown:()=>{n.current=e},onClick:()=>{p(!n.current),a.current?.getTextarea()?.focus()},children:r(s,{className:"size-4"})})}
2
- export{jo};
@@ -1,2 +0,0 @@
1
- import{rr,y}from"./chunk-vcbv30ph.js";import{Eo}from"./chunk-phy911dk.js";import{oe}from"./chunk-qv4x469a.js";import{Ko,Qo,Xo,Yo,Zo,K}from"./chunk-gtqwgjjg.js";import{Mo,Ro}from"./chunk-znyyzs85.js";import{Jt}from"./chunk-62m11b37.js";import{t,o}from"./chunk-f3e3ged2.js";import{n}from"./chunk-9hvbm4be.js";import{nn}from"./chunk-shsyer15.js";import{i,ar,A,xt}from"./chunk-fnbs3dq1.js";import{ut}from"./chunk-svt0t387.js";import{xe,ft}from"./chunk-gpz9f9zq.js";import{yt,wt}from"./chunk-31x6chk8.js";import{sr}from"./chunk-rrrpp44m.js";import{gt}from"./chunk-b1vw42he.js";import{Bo}from"./chunk-3dvx2q8w.js";import{mt}from"./chunk-zp5ntx27.js";import{pt}from"./chunk-reaxcamj.js";import{jo}from"./chunk-hgj33wbd.js";import{Wo}from"./chunk-gbbpdhg6.js";import{dt}from"./chunk-9v94xnhp.js";import{hasFuzzyFileSearch as Bt}from"@nyssance/codex-acp-v2/client";import{PlusIcon as _t}from"lucide-react";import{useCallback as S,useEffect as Lt,useLayoutEffect as Q,useMemo as Z,useRef as V,useState as F}from"react";import{jsx as c,jsxs as I}from"react/jsx-runtime";var zt=["image/png","image/jpeg","image/webp","image/gif"],tt=[];async function Ut(e){let d=await(await fetch(e.url)).blob();return new Promise((l,R)=>{let T=new FileReader;T.onerror=()=>R(T.error),T.onload=()=>{let L=T.result;l(L.slice(L.indexOf(",")+1))},T.readAsDataURL(d)})}function Wt(e){let{t:d}=t(),l=y();return c(K,{"aria-label":d("composer.attachImage"),title:d("composer.attachImage"),onClick:()=>l.openFileDialog(),...e,children:c(_t,{className:"size-4"})})}function lt({session:e,onSubmit:d,onShellCommand:l,onHandOff:R,modelSelector:T,modelMenu:L,inputHeader:et,actions:It,children:Tt,attachmentPolicy:At,predictions:Mt=!0,disabled:Ct=!1,preparing:rt=!1,allowPendingInput:Et=!1}){let{host:k,client:N}=n(),{t:p}=k,D=S((r)=>{if(k.reportError)k.reportError(r);else console.error(r)},[k]),[nt,B]=F(()=>({text:i.get(e.id)?.text??"",revision:0})),{text:b}=nt,[M,Rt]=F(()=>i.get(e.id)?.attachments??tt),[u,z]=F(()=>i.get(e.id)?.mentions??[]),X=M.some((r)=>xe(r)&&r.pastedText.status!=="ready"),[C,ot]=F(!1),[U,Nt]=F(!1),[q,at]=F(!1),f=V(null),it=V(null),a=V(nt),W=S((r)=>{it.current?.(),a.current={text:r,revision:a.current.revision+1},B(a.current)},[]),ct=Z(()=>({read:()=>{let s=f.current?.getTextarea(),g=s===null||s===void 0?[a.current.text.length,a.current.text.length]:[s.selectionStart,s.selectionEnd];return{target:e.id,...a.current,selection:g}},compareAndSet(s,g,E){if(s.target!==e.id||s.revision!==a.current.revision)return null;a.current={text:g,revision:a.current.revision+1},B(a.current);let x=f.current?.getTextarea();if(x!==null&&x!==void 0)x.value=g,x.setSelectionRange(E[0],E[1]);return{target:e.id,...a.current,selection:E}}}),[e.id]),_=V(null),st=S((r)=>(_.current=r,()=>{if(_.current===r)_.current=null}),[]),j=e.state!=="idle",v=l!==void 0&&b.startsWith("!"),h=!Ct&&!rt&&e.attached&&!e.restoring&&!e.readOnly,O=!e.readOnly&&(Et||h),H=pt(e,h&&!C&&!U&&!X&&!q,b.length>0||M.length>0||u.length>0,Mt&&!v),ht=H.invalidate;Q(()=>{i.set(e.id,{text:b,attachments:M,mentions:u,modelId:i.get(e.id)?.modelId??null})},[e.id,b,M,u]),Q(()=>ar(e.id,Rt),[e.id]),Q(()=>xt(e.id,(r)=>{if(!O||C)throw Error("The composer cannot take text now; try again later");if(b.length||M.length||u.length)throw Error("The composer already has a draft; send or clear it first");W(r)}),[e.id,O,C,b,M,u,W]);let Pt=o((r)=>Bt(r.agent)),Ot=Z(()=>Pt&&h?async(r)=>ut((await N.fuzzyFileSearch({query:r,roots:[e.cwd]})).files):void 0,[N,Pt,h,e.cwd]),J=S((r)=>{z((s)=>s.includes(r)?s:[...s,r])},[]);Lt(()=>{f.current?.focus()},[]);let bt=S(async({text:r,files:s})=>{let g=l!==void 0&&r.startsWith("!")?r.slice(1):null;if(g!==null){if(g.trim().length===0)return;if(s.length||u.length)throw Error("Shell commands cannot include file references or attachments");if(e.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let E=r.trim();if(E.length===0&&s.length===0&&u.length===0)return;let x=_.current;ot(!0);let w=i.get(e.id),Dt=a.current.revision,G=null;try{let P=[];for(let m of u){let Y={kind:"file",absPath:m};P.push({type:"resource_link",uri:yt(Y),name:wt(Y)})}if(E.length>0)P.push({type:"text",text:E});for(let m of s)if(xe(m)){if(m.pastedText.status!=="ready")throw Error("Text attachment is not ready");P.push({type:"resource_link",uri:m.url,name:m.filename??"pasted-text.txt"})}else P.push({type:"image",data:await Ut(m),mimeType:m.mediaType});if(a.current.revision===Dt&&i.get(e.id)===w)a.current={text:"",revision:a.current.revision+1},G=a.current.revision,B(a.current),z([]),A(e.id,()=>tt),i.set(e.id,{text:"",attachments:tt,mentions:[],modelId:w?.modelId??null}),f.current?.resetHeight();if(g!==null&&l)await l(g);else if(d)if(x===null)await d(P);else await d(P,(m)=>{if(x.signal.aborted||_.current!==x)return;x.accept(m),R?.(e.id,m)});else if(x===null)await N.prompt(e.id,P);else{let m=await N.prompt(e.id,P);x.accept(m)}ht();for(let m of w?.attachments??[])if(m.url.startsWith("blob:")&&!i.get(e.id)?.attachments.some((Y)=>Y.id===m.id))URL.revokeObjectURL(m.url)}catch(P){if(w&&G!==null&&a.current.revision===G&&i.get(e.id)?.attachments.length===0&&i.get(e.id)?.mentions.length===0)a.current={text:w.text,revision:G+1},B(a.current),z(w.mentions),i.set(e.id,w),A(e.id,()=>w.attachments);throw P}finally{ot(!1),f.current?.focus()}},[N,e.id,e.state,u,d,l,R,ht]),St=()=>{N.cancel(e.id).catch(D)},Ft=S((r)=>{let s=r.code==="max_total_size"?Object.assign(Error(p("composer.imageTooLargeTitle")),{description:p("composer.imageTooLargeDescription",{mb:oe})}):Object.assign(Error(p("composer.unsupportedAttachmentTitle")),{description:p("composer.unsupportedAttachmentDescription")});D(s)},[D,p]),kt=Z(()=>({session:e,ready:h,inputReady:O,sending:C,textareaRef:f,draft:ct,interruptRef:it,observeReceipts:st,addMention:J,setAdding:Nt,shellMode:v,handsFree:!v&&(d===void 0||R!==void 0)}),[e,h,O,C,ct,st,J,d,R,v]),vt=k.writeTextAttachment;return c(nn,{value:kt,children:c("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:I("div",{className:"relative",children:[et&&c("div",{"data-chat-input-header":!0,className:"bg-sidebar dark:bg-foreground/3 relative top-1 z-0 mx-[13px] -mb-[18px] flex min-w-0 items-center gap-2 overflow-hidden rounded-t-2xl px-1.5 pt-1.5 pb-[27px]",children:et}),I(rr,{attachmentPolicy:At,value:b,revision:a.current.revision,onValueChange:W,onSubmittedClear:()=>{a.current={text:"",revision:a.current.revision+1},B(a.current)},attachments:M,onAttachmentsChange:(r)=>A(e.id,()=>r),children:[c(Eo,{bashMode:l!==void 0,handleRef:f,commands:e.commands,searchFiles:Ot,onMention:J,onSearchError:D,forcedOpen:q,onForcedOpenChange:at,emptyLabel:p("composer.noCommands"),fileStatusLabels:{loading:p("composer.searchingFiles"),empty:p("composer.noMatchingFiles")}}),I(Ko,{"data-shell-mode":v||void 0,bashMode:l!==void 0,globalDrop:!0,multiple:!0,accept:zt.join(","),onError:Ft,onSubmit:bt,onSubmitAsync:bt,onSubmitError:D,canSubmit:()=>h&&!C&&!U&&!X&&(!v||!j&&b.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[Tt,I(Xo,{className:"px-3 pt-3 pb-0 empty:hidden",children:[U&&c("span",{role:"status",className:"text-muted-foreground text-xs",children:p("composer.addingFiles")}),c(sr,{mentions:u,onRemove:(r)=>z((s)=>s.filter((g)=>g!==r))}),c(Ro,{children:(r)=>xe(r)?c(Bo,{data:r,sessionId:e.id}):c(Mo,{data:r,t:p})})]}),I(Qo,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(r)=>{if(!H.text||f.current?.isComposing()||r.nativeEvent.isComposing||r.nativeEvent.keyCode===229||r.shiftKey||r.ctrlKey||r.altKey||r.metaKey||r.target!==f.current?.getTextarea())return;if(r.key==="Tab")r.preventDefault(),r.stopPropagation(),W(H.text)},children:[v&&c("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),c(Jt,{className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,bashMode:l!==void 0,disabled:!O,onPasteCapture:vt?(r)=>ft(r,e.id,p("composer.pastedTextFilename"),vt):void 0,placeholder:v?"! command":H.text||(j?p("composer.steerPlaceholder"):p("composer.placeholder")),"aria-label":p("composer.placeholder")})]}),c(Yo,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:I("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[I("div",{className:"flex min-w-0 items-center gap-[5px]",children:[c(Wt,{className:"text-foreground",disabled:!O}),c(jo,{textareaRef:f,menuOpen:q,onOpenChange:at,disabled:!h||e.commands.length===0}),c(mt,{sessionId:e.id,options:e.configOptions,disabled:!h})]}),I(Zo,{className:"w-full min-w-0 items-center justify-end gap-1",children:[c(dt,{session:e}),T??c(gt,{...L,sessionId:e.id,options:e.configOptions,disabled:!h}),It,c(Wo,{active:j,sending:C||rt||U,ready:h&&!X&&(!v||!j&&b.slice(1).trim().length>0),hasMentions:u.length>0,onStop:St})]})]})})]})]})]})})})}
2
- export{lt};
@@ -1,2 +0,0 @@
1
- import{createContext as o,useContext as n,useEffect as r}from"react";var yn=o(null);function J(t){let e=n(yn);r(()=>{if(t&&e!==null)return e()},[t,e])}
2
- export{yn,J};
@@ -1 +0,0 @@
1
- import{Tooltip as i}from"@base-ui/react/tooltip";import{cn as l}from"cn";import{jsx as o,jsxs as p}from"react/jsx-runtime";function wi({delay:t=0,...e}){return o(i.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}function ye({...t}){return o(i.Root,{"data-slot":"tooltip",...t})}function be({...t}){return o(i.Trigger,{"data-slot":"tooltip-trigger",...t})}function we({className:t,side:e="top",sideOffset:a=4,align:d="center",alignOffset:r=0,children:n,...s}){return o(i.Portal,{children:o(i.Positioner,{align:d,alignOffset:r,side:e,sideOffset:a,className:"isolate z-50",children:p(i.Popup,{"data-slot":"tooltip-content",className:l("bg-foreground text-background data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm",t),...s,children:[n,o(i.Arrow,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}export{wi,ye,be,we};
@@ -1,2 +0,0 @@
1
- var vr={allow_once:0,allow_always:1,reject_once:2,reject_always:3};function Tn(e){return[...e].toSorted((o,n)=>(vr[o.kind]??99)-(vr[n.kind]??99))}function Zr(e){return e==="allow_once"||e==="allow_always"}function Jr(e){return e==="allow_always"||e==="reject_always"}
2
- export{vr,Tn,Zr,Jr};
@@ -1,2 +0,0 @@
1
- import{o}from"./chunk-f3e3ged2.js";import{de,Pe,it}from"./chunk-y1kkt0m2.js";import{jsx as t,jsxs as d,Fragment as r}from"react/jsx-runtime";var a=[];function rt({sessionId:s}){let e=o((n)=>n.actions),c=e.some((n)=>n.sessionId===s)?e.filter((n)=>n.sessionId===s):a,i=c.filter(de),l=c.filter((n)=>!de(n));return d(r,{children:[l.length>0&&t("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:l.map((n)=>t(it,{action:n},n.id))}),i[0]!==void 0&&t(Pe,{action:i[0],total:i.length},i[0].id)]})}
2
- export{rt};
@@ -1 +0,0 @@
1
- import{e}from"./chunk-6kn920c5.js";import{cva as i}from"class-variance-authority";import{cn as r}from"cn";import{jsx as o}from"react/jsx-runtime";function or({className:a,...t}){return o("div",{"data-slot":"input-group",role:"group",className:r("group/input-group border-input has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 relative flex h-9 w-full min-w-0 items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",a),...t})}var p=i("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function an({className:a,align:t="inline-start",...s}){return o("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:r(p({align:t}),a),onClick:(n)=>{if(n.target.closest("button"))return;n.currentTarget.parentElement?.querySelector("input")?.focus()},...s})}var l=i("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function sn({className:a,type:t="button",variant:s="ghost",size:n="xs",...u}){return o(e,{type:t,"data-size":n,variant:s,className:r(l({size:n}),a),...u})}function Ii({className:a,...t}){return o("span",{className:r("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",a),...t})}export{or,an,sn,Ii};
@@ -1,3 +0,0 @@
1
- import{Ft,Bt}from"./chunk-bzk6wn2s.js";import{g}from"./chunk-36t9x2qc.js";import{Zt}from"./chunk-zg2342s2.js";import{t}from"./chunk-f3e3ged2.js";import{ho,W,Ee,xo}from"./chunk-753s76b6.js";import{zt}from"./chunk-wmk2dwpf.js";import{ee}from"./chunk-zmpbfbnn.js";import{Kt}from"./chunk-evx9d147.js";import{mo}from"./chunk-3ah1ez70.js";import{So}from"./chunk-fa0kzj3j.js";import{Po}from"./chunk-2w576ygb.js";import{Gt,jt}from"./chunk-0qm0fy2r.js";import{Re}from"./chunk-c0ac9k7h.js";import{codexMessageError as J,codexTurnError as U,isContentEntry as ae,isEmbeddedResource as X,isImage as Y,isResourceLink as me,isText as le,nativeTurnId as de}from"@nyssance/codex-acp-v2/client";import{LoaderCircleIcon as ce,SparklesIcon as ge}from"lucide-react";import{Fragment as ue,memo as pe,useEffect as fe,useState as ye}from"react";import{jsx as s,jsxs as m,Fragment as E}from"react/jsx-runtime";function q(i){if(Y(i))return`${i.mimeType.toLowerCase()}:${i.data}`;if(X(i)&&"blob"in i.resource&&i.resource.mimeType?.toLowerCase().startsWith("image/"))return`${i.resource.mimeType.toLowerCase()}:${i.resource.blob}`;return null}function he({item:i}){let{t:n}=t(),l=i.status==="in_progress",[o,c]=ye(()=>Date.now()-i.at>=1e4);return fe(()=>{if(!l)return;let a=Math.max(0,i.at+1e4-Date.now());if(c(a===0),a===0)return;let y=setTimeout(()=>c(!0),a);return()=>clearTimeout(y)},[i.id,i.at,l]),m("div",{className:"codex-context-compaction",children:[s(ge,{"aria-hidden":"true"}),s("span",{children:i.status==="completed"?n("stream.codex.contextCompacted"):i.status==="cancelled"?n("timeline.interrupted"):n(o?"timeline.compactingWithDelayNotice":"timeline.compacting")})]})}function N({sessionId:i,entry:n,terminals:l,streaming:o,streamingThoughtId:c}){let{t:a}=t();switch(n.kind){case"activity":return s(zt,{sessionId:i,items:n.items,terminals:l,streamingThoughtId:c});case"text":return g(n.item._meta).length>0?s(Kt,{sessionId:i,item:n.item}):s(ee,{content:n.item.content,messageId:n.item.id,streaming:o});case"plan":return s(So,{plan:n.item.plan});case"compaction":if(n.item.status==="failed")return m(Gt,{children:[s("div",{children:a("timeline.compactionFailed")}),n.item.error!==null&&s("div",{children:n.item.error})]});return s(he,{item:n.item})}}function xe({sessionId:i,turn:n,terminals:l,active:o,blocked:c=!1,continued:a=!1,edits:y=n.edits,activityItems:M=n.items,workStartedAt:Z=n.startedAt,isLast:F,error:h,interrupted:L,retry:K,retrying:p,answerActions:O,footer:te}){let{t:d}=t(),C=n.errors.map((e)=>{let r=J(e);if(r===null)throw Error("Turn error item is missing its diagnostics");let v=K?.turnId===de(e)?K:void 0;return s(jt,{error:r,retry:v},`${e.id}:${v?.delaySeconds??"manual"}`)});if(F&&h!==null&&!n.errors.some((e)=>{let r=J(e);return r!==null&&r.stopReason===h.stopReason&&U(r).message===U(h).message}))C.push(s(jt,{error:h},"current-run-error"));let x=C.length>0?s("div",{className:"codex-turn-errors",children:C}):null,A=n.items.filter(Zt);if(A.length>0&&A.length===n.items.length)return m(E,{children:[s(zt,{sessionId:i,items:A,terminals:l,streamingThoughtId:null}),x]});let k=n.work,T=k.length>0&&k.every((e)=>e.kind==="compaction");if(ho(n)||T&&n.final.length===0)return m(E,{children:[s("div",{role:"status",className:"text-muted-foreground flex min-w-0 flex-col gap-2 py-2 text-sm",children:n.work.map((e)=>s(N,{sessionId:i,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key))}),x]});let P=Ee(n),D=n.final.filter((e)=>g(e._meta).length===0).map(W).join(`
2
- `),w=o?null:Re(n,"assistant"),G=n.items.filter((e)=>e.kind==="tool"&&e.name==="image_generation"&&(e.status==="pending"||e.status==="in_progress")),B=new Set(n.final.flatMap((e)=>e.content.map(q).filter((r)=>r!==null))),b=n.items.flatMap((e)=>{if(e.kind!=="tool"||e.status!=="completed")return[];return e.content.filter(ae).flatMap((r,v)=>{let u=r.content,re=e.name==="image_generation"&&Y(u),oe=e.toolKind!=="read"&&e.toolKind!=="search"&&(me(u)||X(u)&&("blob"in u.resource));if(!re&&!oe)return[];let _=q(u);if(_!==null){if(B.has(_))return[];B.add(_)}return[{key:`${e.id}:${v}`,block:u}]})}),R=n.final.some((e)=>g(e._meta).length===0&&e.content.some((r)=>!le(r)||r.text.trim().length>0)),ne=G.length>0||b.length>0||T||R||n.final.some((e)=>g(e._meta).length>0),I=n.items.findIndex((e)=>n.final.includes(e)),S=(e)=>n.items.indexOf(e.kind==="activity"?e.items[0]:e.item),H=k.filter((e)=>I===-1||S(e)<I),se=k.filter((e)=>I!==-1&&S(e)>I),ie=[...n.final.map((e)=>({kind:"answer",item:e,index:n.items.indexOf(e)})),...se.map((e)=>({kind:"work",entry:e,index:S(e)}))].toSorted((e,r)=>e.index-r.index),Q=!o&&!a&&(D.trim().length>0?s(Ft,{text:D,isMostRecentTurn:F,time:w,afterCopy:O}):m("div",{className:"flex items-center gap-0.5",children:[O,w&&s("span",{className:"codex-user-time ms-1",title:w.full,children:w.short})]})),f=Po({...n,items:M},{running:o,blocked:c,retrying:p!==void 0}),V=f.kind==="reasoning"?f.ownerKey??null:null,j=f.kind==="thinking",z=xo({...n,items:M});return m(E,{children:[s(Bt,{stateKey:JSON.stringify([i,n.replayed?"history":"live",n.key]),active:o&&!R,defaultExpanded:o&&!R||!n.replayed&&(L||P),...z,startedAt:z.startedAt??Z,loading:(j||f.kind==="working")&&n.work.length===0,loadingLabel:f.kind==="working"?d("stream.codex.working"):void 0,work:a||T?[]:H.map((e)=>s(N,{sessionId:i,entry:e,terminals:l,streaming:o,streamingThoughtId:V},e.key)),answer:ne||a?m("div",{className:"flex min-w-0 flex-col gap-3",children:[(a||T)&&H.map((e)=>s(N,{sessionId:i,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key)),ie.map((e)=>{if(e.kind==="work")return s(N,{sessionId:i,entry:e.entry,terminals:l,streaming:o,streamingThoughtId:V},e.entry.key);let r=e.item;return m(ue,{children:[g(r._meta).length>0?s(Kt,{sessionId:i,item:r}):s(ee,{content:r.content,messageId:r.id,streaming:o}),r===n.final.at(-1)&&Q]},r.id)}),G.map((e)=>m("div",{className:"codex-image-generation",role:"status","aria-label":d(o?"timeline.imageGenerating":"timeline.imageStopped"),"aria-busy":o,children:[s("div",{className:"codex-image-generation-texture","aria-hidden":"true"}),m("span",{className:"codex-image-generation-status",children:[o&&s(ce,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),d(o?"timeline.imageGenerating":"timeline.imageStopped")]})]},e.id)),b.length>0&&s("div",{className:"codex-reply-artifacts flex min-w-0 flex-col gap-3",children:b.map((e)=>s(ee,{content:[e.block],messageId:e.key,streaming:!1},e.key))}),n.final.length===0&&Q]}):null,footer:m(E,{children:[j&&n.work.length>0&&s("div",{className:"codex-pending-message py-2",role:"status",children:s("span",{className:"codex-activity-running",children:d("message.thinking")})}),te,y.length>0&&!o&&!a&&s(mo,{items:y}),L&&!P&&s("div",{className:"codex-interrupted-turn",role:"status",children:d("timeline.interrupted")}),!o&&x]})}),o&&p!==void 0&&s("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?d("timeline.capacityReconnecting"):d("timeline.capacityReconnectingProgress",{progress:e})})():p.message}),o&&x]})}var ao=pe(xe);
3
- export{ao};
@@ -1 +0,0 @@
1
- import{cn as i}from"cn";import{jsx as a}from"react/jsx-runtime";function k({className:r,...e}){return a("textarea",{"data-slot":"textarea",className:i("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm",r),...e})}export{k};
@@ -1,2 +0,0 @@
1
- import{l}from"./chunk-1hy64ewz.js";import{Q}from"./chunk-ksv9pjc2.js";import{p}from"./chunk-b3nt7axf.js";import{Ke}from"./chunk-6ss1981q.js";import{L}from"./chunk-tjykfxrd.js";import{Ye,Ze}from"./chunk-ee9pzqnq.js";import{formatDistanceToNowStrict as H}from"date-fns";import{enUS as z,zhCN as E}from"date-fns/locale";import{ClockIcon as A,MessageSquareIcon as D}from"lucide-react";import{useEffect as S,useState as w}from"react";import{jsx as o,jsxs as C,Fragment as M}from"react/jsx-runtime";var h={en:z,"zh-CN":E};function Ce(t,a){let r=a==="zh-CN"?h["zh-CN"]:h.en;return H(new Date(t),{locale:r})}function je({sessionRow:t,actions:a,shortcut:r,renaming:n=!1,onRename:m}){let{t:i,i18n:y,PathAction:u}=p(),f=Ze(),I=Ye();S(()=>{f(n)},[n,f]);let[x,d]=w(t.title??"");S(()=>{if(n)d(t.title??"")},[n,t.title]);let N=(e)=>{let c=e.trim();m?.(c!==""&&c!==t.title?c:null)},v=t.archived?i("sessionList.archived"):t.updatedAt!==null?Ce(t.updatedAt,y.language):null,g=[];if(v!==null)g.push({icon:o(A,{className:"size-3.5"}),text:v});let s=u&&o(u,{cwd:t.cwd,onOpened:I});return o(Ke,{title:n?o(l,{autoFocus:!0,value:x,className:"h-7 text-sm","aria-label":i("sessionList.rename"),onChange:(e)=>d(e.target.value),onKeyDown:(e)=>{if(e.stopPropagation(),e.key==="Enter")N(e.target.value);if(e.key==="Escape")m?.(null)},onBlur:(e)=>N(e.target.value)}):C("span",{className:"flex items-center gap-2",children:[o("span",{className:"min-w-0",children:o(L,{className:"min-w-0 flex-1",children:t.title??i("sessionList.untitled")})}),r]}),titleIcon:o(D,{className:"size-3.5"}),details:g,actions:s||a!==void 0?C(M,{children:[s,s&&a!==void 0&&o(Q,{}),a]}):void 0})}
2
- export{Ce,je};
@@ -1,2 +0,0 @@
1
- var ki=1e6,Ci=5000000;function er(_,e){return _+e>5000000}function Ti(_){return(_/1e6).toFixed(1)}var oe=5;
2
- export{ki,Ci,er,Ti,oe};
@@ -1,2 +0,0 @@
1
- import{p,s,tt,r,T}from"./chunk-b3nt7axf.js";import{B}from"./chunk-6ss1981q.js";import{Je}from"./chunk-ee9pzqnq.js";import{Qe}from"./chunk-qnk5jk1b.js";import{Ce,je}from"./chunk-nwrbpw97.js";import{hasRename as L}from"@nyssance/codex-acp-v2/client";import{ArchiveIcon as F,ArchiveRestoreIcon as D,GitForkIcon as x,PencilIcon as A,Trash2Icon as H}from"lucide-react";import{useRef as N,useState as g}from"react";import{jsx as n,jsxs as C,Fragment as y}from"react/jsx-runtime";function St({sessionRow:e,active:f,onSelect:u,onForked:v=u,onHoverCardOpenChange:a,actions:c}){let i=p(),{t:m,i18n:S}=i,k=s(),l=r((o)=>o.runStates[e.sessionId]),h=tt(),d=()=>u(e);return n(Je,{"data-session-id":e.sessionId,role:"button",tabIndex:0,active:f,onClick:d,onKeyDown:(o)=>{if(o.key==="Enter"||o.key===" ")o.preventDefault(),d()},state:l?.state,interruption:l?.interruption??null,title:e.title??m("sessionList.untitled"),onHoverCardOpenChange:a,hoverCard:n(R,{sessionRow:e,onDelete:()=>h(e),onForked:v,actions:c}),meta:e.updatedAt!==null?n("span",{className:"text-muted-foreground shrink-0 text-xs",children:Ce(e.updatedAt,S.language)}):void 0,actions:l!=null?n(Qe,{title:m("sessionList.stop"),onStop:()=>T(i,k.stopSession(e.sessionId))}):void 0})}function R({sessionRow:e,onDelete:f,onForked:u,actions:v}){let a=p(),{t:c}=a,i=s(),m=r((t)=>L(t.agent)),S=r((t)=>t.connection==="ready"&&t.agent?.capabilities?.session?.fork!=null),[k,l]=g(!1),[h,d]=g(!1),o=N(!1);return n(je,{sessionRow:e,renaming:k,onRename:(t)=>{if(l(!1),t!==null)T(a,i.renameSession(e.sessionId,t))},actions:C(y,{children:[m&&n(B,{icon:n(A,{}),label:c("sessionList.rename"),onClick:()=>l(!0)}),v,e.archived?n(B,{icon:n(D,{}),label:c("sessionList.unarchive"),onClick:()=>void T(a,i.unarchive(e.sessionId))}):C(y,{children:[n(B,{icon:n(x,{}),label:c("sessionList.fork"),disabled:!S||h,onClick:()=>{if(o.current)return;o.current=!0,d(!0),T(a,i.fork(e.sessionId,e.cwd).then((t)=>{let I=i.state.sessionList.find((b)=>b.sessionId===t);if(!I)throw Error("Forked chat is missing from the session list");u(I)}).finally(()=>{o.current=!1,d(!1)}))}}),n(B,{icon:n(F,{}),label:c("sessionList.archive"),onClick:()=>void T(a,i.archive(e.sessionId))})]}),n(B,{variant:"destructive",icon:n(H,{}),label:c("sessionList.delete"),onClick:f})]})})}
2
- export{St};
@@ -1,2 +0,0 @@
1
- import{t}from"./chunk-f3e3ged2.js";import{qe}from"./chunk-xa20eex9.js";import{e}from"./chunk-6kn920c5.js";import{bt}from"./chunk-31x6chk8.js";import{FileIcon as m,XIcon as r}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function sr({mentions:n,onRemove:s}){let{t:i}=t();if(n.length===0)return null;return a("div",{className:"mb-1.5 flex flex-wrap items-center gap-1.5",children:n.map((o)=>l(qe,{variant:"secondary",className:"gap-1 pe-0.5",title:o,children:[a(m,{className:"size-3"}),a("span",{className:"max-w-40 truncate",children:bt(o)}),a(e,{type:"button",variant:"ghost",size:"icon-xs",className:"size-4","aria-label":i("composer.removeMention",{name:bt(o)}),onClick:()=>s(o),children:a(r,{className:"size-3"})})]},o))})}
2
- export{sr};
@@ -1,2 +0,0 @@
1
- import{o}from"./chunk-f3e3ged2.js";import{e}from"./chunk-6kn920c5.js";import{_n}from"./chunk-b5z75meq.js";import{ge,fe,he,ve}from"./chunk-anfrrs5x.js";import{n,C}from"./chunk-9hvbm4be.js";import{Loader2Icon as f}from"lucide-react";import{jsx as i,jsxs as m}from"react/jsx-runtime";function st({session:t,timeline:c}){let{host:s,client:a}=n(),{t:r}=s,l=o((y)=>y.historyPages[t.id]?.cursor!=null),d=()=>C(s,a.open(t.id,t.cwd)),p=i(_n,{...c,session:t,client:a,host:s});if(t.restoring)return t.items.length===0?m("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[i(f,{className:"size-4 animate-spin","aria-hidden":"true"}),r("conversation.restoring")]}):p;if(!t.attached&&t.items.length===0)return m(ge,{className:"flex-1",children:[m(fe,{children:[i(he,{children:r("conversation.reopen")}),i(ve,{children:r("conversation.detached")})]}),i(e,{onClick:d,children:r("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!l)return i(ge,{className:"flex-1",children:m(fe,{children:[i(he,{className:"text-[28px] font-normal",children:r("conversation.welcomeTitle")}),i(ve,{className:"truncate font-mono",children:t.cwd})]})});return p}
2
- export{st};
@@ -1,2 +0,0 @@
1
- import{k}from"./chunk-ncekagm6.js";import{cn as n}from"cn";import{jsx as o}from"react/jsx-runtime";function ln({className:r,...e}){return o(k,{"data-slot":"input-group-control",className:n("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent",r),...e})}
2
- export{ln};
@@ -1,2 +0,0 @@
1
- import{createContext as t,useContext as o}from"react";var nn=t(null);function kr(){let e=o(nn);if(e===null)throw Error("Composer is missing");return e}
2
- export{nn,kr};
@@ -1,2 +0,0 @@
1
- function*kt(n,e){if(e.length===0)return;let r=new RegExp(e.replaceAll(/[.*+?^{}()|[\]\\$]/g,String.raw`\$&`),"giu");for(let t of n.matchAll(r))yield{start:t.index,end:t.index+t[0].length}}function jr(n,e){if(e.length===0)return[];let r=[];for(let{turnKey:t,segments:o}of n){let c=0;for(let s of o)for(let a of kt(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
2
- export{kt,jr};
@@ -1,2 +0,0 @@
1
- import{s,r}from"./chunk-b3nt7axf.js";import{latestAssistantReply as v}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useState as g}from"react";function dr(e,o){let a=s(),c=r((t)=>t.connection),i=r((t)=>Boolean(t.sessions[e]?.attached)&&!t.sessions[e]?.restoring),u=r((t)=>v(t.sessions[e]?.items)),f=r((t)=>Boolean(t.runStates[e]?.reusableDraft)),[p,y]=g();return S(()=>{if(c!=="ready"||f||i)return;let t=!1,l,n=0,m=async()=>{try{let d=await a.activityReply(e);if(n=0,!t)y(d??void 0)}catch{n++}finally{if(!t&&(o==="running"||n>0&&n<3))l=setTimeout(()=>void m(),5000)}};return m(),()=>{t=!0,clearTimeout(l)}},[a,e,c,f,i,o]),i?u:p??u}
2
- export{dr};
@@ -1,3 +0,0 @@
1
- import{Dn,Ne}from"./chunk-y0psrvcc.js";import{t,ke}from"./chunk-f3e3ged2.js";import{d,u,b,m,w}from"./chunk-a2hygrpr.js";import{createStore as f}from"@alwith/api/client";import{jsx as i,jsxs as l}from"react/jsx-runtime";var c=f({request:null});function nt(e){c.setState({request:{path:e.path,patch:bn(e.patch,e.path)}})}function bn(e,a){let n=e.split(/^(?=diff --git )/m).filter((o)=>o.length>0);if(n.length<=1)return e;return n.find((o)=>{let r=o.split(`
2
- `,1)[0]??"";return r.endsWith(` b/${a}`)||r.endsWith(` ${a}`)||r.includes(`/${a} `)})??e}function ot(){let{t:e,theme:a}=t(),n=ke(c,(o)=>o.request),s=n===null?null:Dn(n.patch);return i(d,{open:n!==null,onOpenChange:(o)=>!o&&c.setState({request:null}),children:l(u,{className:"flex h-[calc(100vh-2.5rem)] max-h-[900px] flex-col gap-3 sm:max-w-[min(1400px,calc(100vw-2.5rem))]",children:[l(b,{children:[i(m,{className:"truncate pe-8 font-mono text-sm font-normal",children:n?.path}),s!==null&&l(w,{children:[l("span",{className:"codex-diff-additions",children:["+",s.additions]})," ",l("span",{className:"codex-diff-deletions",children:["-",s.deletions]})," ",i("span",{children:e("conversation.changedLines")})]})]}),i("div",{className:"min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border [&>.codex-patch-view]:h-full","data-stream-style":"codexUI",children:n!==null&&i(Ne,{patch:n.patch,theme:a})})]})})}
3
- export{nt,bn,ot};
@@ -1 +0,0 @@
1
- import{Select as r}from"@base-ui/react/select";import{cn as o}from"cn";import{CheckIcon as u,ChevronDownIcon as c,ChevronUpIcon as f}from"lucide-react";import{jsx as e,jsxs as n}from"react/jsx-runtime";var Nt=r.Root;function Kr({className:t,...i}){return e(r.Group,{"data-slot":"select-group",className:o("scroll-my-1 p-1",t),...i})}function Mt({className:t,...i}){return e(r.Value,{"data-slot":"select-value",className:o("flex flex-1 text-start",t),...i})}function Rt({className:t,size:i="default",children:a,...s}){return n(r.Trigger,{"data-slot":"select-trigger","data-size":i,className:o("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex w-fit items-center justify-between gap-1.5 rounded-md border bg-transparent py-2 ps-2.5 pe-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[a,e(r.Icon,{render:e(c,{className:"text-muted-foreground pointer-events-none size-4"})})]})}function xn({className:t,children:i,side:a="bottom",sideOffset:s=4,align:d="center",alignOffset:p=0,alignItemWithTrigger:l=!0,...m}){return e(r.Portal,{children:e(r.Positioner,{side:a,sideOffset:s,align:d,alignOffset:p,alignItemWithTrigger:l,className:"isolate z-50",children:n(r.Popup,{"data-slot":"select-content","data-align-trigger":l,className:o("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md shadow-md ring-1 duration-100 data-[align-trigger=true]:animate-none",t),...m,children:[e(Sr,{}),e(r.List,{children:i}),e(Pr,{})]})})})}function Qr({className:t,...i}){return e(r.GroupLabel,{"data-slot":"select-label",className:o("text-muted-foreground px-2 py-1.5 text-xs",t),...i})}function Z({className:t,children:i,...a}){return n(r.Item,{"data-slot":"select-item",className:o("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...a,children:[e(r.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:i}),e(r.ItemIndicator,{render:e("span",{className:"pointer-events-none absolute end-2 flex size-4 items-center justify-center"}),children:e(u,{className:"pointer-events-none"})})]})}function Xr({className:t,...i}){return e(r.Separator,{"data-slot":"select-separator",className:o("bg-border pointer-events-none -mx-1 my-1 h-px",t),...i})}function Sr({className:t,...i}){return e(r.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:o("bg-popover top-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4",t),...i,children:e(f,{})})}function Pr({className:t,...i}){return e(r.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:o("bg-popover bottom-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4",t),...i,children:e(c,{})})}export{Nt,Kr,Mt,Rt,xn,Qr,Z,Xr,Sr,Pr};
@@ -1,3 +0,0 @@
1
- import{wn}from"./chunk-mkw0twsb.js";import{kn}from"./chunk-bna24ggr.js";import{Cn}from"./chunk-4wkpatzz.js";import{Ne}from"./chunk-y0psrvcc.js";import{n}from"./chunk-9hvbm4be.js";import{isContentEntry as d,isDiffEntry as f,isFormElicitation as x,isText as g,isToolCallSubject as h,isUrlElicitation as w}from"@nyssance/codex-acp-v2/client";import{jsx as l,jsxs as u}from"react/jsx-runtime";function de(t){return t.kind==="elicitation"&&x(t.params)}function y(t){let e=t._meta?.codex;if(typeof e!=="object"||e===null)return null;let o=e.description;return typeof o==="string"?o:null}function b(t){let e=t.rawInput;if(typeof e!=="object"||e===null)return null;let o=e.command;if(typeof o==="string")return o;if(Array.isArray(o))return o.map(String).join(" ");return null}function A(t){for(let e of t.content??[])if(f(e)&&e.patch&&e.patch.text.length>0)return e.patch.text;return null}function v(t){return(t.content??[]).filter(d).map((e)=>g(e.content)?e.content.text:"").filter((e)=>e.length>0).join(`
2
- `)}function R({subject:t,requestTitle:e}){let{host:o}=n();if(!h(t))return null;let r=t.toolCall,s=b(r),i=A(r),c=v(r),a=o.toolTitle?.(r)??r.title;return u("div",{className:"flex flex-col gap-2",children:[a&&a!==e&&s===null&&l("div",{className:"text-sm font-medium",children:a}),s!==null&&u("pre",{className:"bg-muted overflow-x-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:[l("span",{className:"text-muted-foreground select-none",children:"$ "}),s]}),i!==null&&l("div",{className:"max-h-80 overflow-auto rounded-lg border","data-stream-style":"codexUI",children:l(Ne,{patch:i,theme:o.theme})}),i===null&&s===null&&c.length>0&&l("pre",{className:"bg-muted max-h-60 overflow-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:c}),(r.locations??[]).length>0&&l("ul",{className:"text-muted-foreground flex flex-col gap-0.5 text-xs",children:(r.locations??[]).map((p)=>l("li",{className:"truncate font-mono",children:p.path},`${p.path}:${p.line??""}`))})]})}function m(t,e){let{host:o,client:r}=n();return(s)=>{try{if(e)e(t.id,s);else r.respond(t.id,s)}catch(i){if(o.reportError)o.reportError(i);else console.error(i)}}}function T({action:t,total:e,onRespond:o}){let{host:r}=n(),s=m(t,o),i=t.params,c=r.permissionTitle?.(i)??i.title;return u(wn,{requestId:t.id,title:c,alwaysLabel:r.t("approval.always"),autoFocus:"if-idle",total:e,options:i.options.map((a)=>({...a,description:y(a)??void 0})),onRespond:(a)=>s({outcome:a===null?{outcome:"cancelled"}:{outcome:"selected",optionId:a}}),children:[i.description&&l("div",{className:"text-muted-foreground mt-0.5 text-xs",children:i.description}),i.subject&&l(R,{subject:i.subject,requestTitle:c})]})}function Pe({action:t,total:e,onRespond:o}){let{host:r}=n(),s=m(t,o);return l(kn,{requestId:t.id,schema:t.params.requestedSchema,message:t.params.message,total:e,t:r.t,onRespond:s})}function it({action:t,total:e,onRespond:o}){let{host:r}=n(),s=m(t,o);if(t.kind==="permission")return l(T,{action:t,total:e,onRespond:o});if(de(t))return l(Pe,{action:t,total:e??1,onRespond:o});let i=t.params;if(!w(i))throw Error("Unsupported elicitation mode");return l(Cn,{message:i.message,url:i.url,t:r.t,onOpen:r.openLink,onRespond:(c)=>s(c==="cancel"?{action:"cancel"}:{action:"decline"})})}
3
- export{de,Pe,it};
@@ -1,2 +0,0 @@
1
- import{zo}from"./chunk-9t8ptjct.js";import{n,C}from"./chunk-9hvbm4be.js";import{E,x}from"./chunk-3q6ssrs3.js";import{createLucideIcon as k,HandIcon as w,ShieldAlertIcon as y,ShieldCheckIcon as c}from"lucide-react";import{jsx as t}from"react/jsx-runtime";var S=k("ApprovalShield",[["path",{d:"M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11",key:"shield"}],["path",{d:"m8 8 3 3-3 3M13 15h3",key:"terminal"}]]),d={"read-only":w,"workspace-write":c,agent:S,"agent-full-access":y},O={"read-only":"readOnly","workspace-write":"workspaceAccess",agent:"agent","agent-full-access":"fullAccess"};function mt({sessionId:u,options:g,disabled:m,onConfigChange:r}){let{host:l,client:f}=n(),{t:a}=l,o=x(g,"mode");if(!o)return null;let s=o.currentValue,p=E(o).map((e)=>{let i=O[e.value];return i?{...e,name:a(`permissionModes.${i}.name`),description:a(`permissionModes.${i}.description`)}:e}),h=p.find((e)=>e.value===s),I=d[s]??c,M=(e)=>{if(e===s)return;C(l,r?r(o.configId,e):f.setConfig(u,o.configId,e))};return t(zo,{value:s,warning:s==="agent-full-access",currentName:h?.name??s,icon:t(I,{className:"size-3.5 shrink-0"}),header:a("permissionModes.heading"),disabled:m,label:a("composer.switchPermissionMode"),onValueChange:M,options:p.map((e)=>{let i=d[e.value]??c,v=e.value==="agent-full-access";return{value:e.value,label:t("span",{"data-permission-warning":v?"":void 0,children:e.name}),description:e.description?t("span",{className:"whitespace-normal",children:e.description}):void 0,icon:t(i,{className:"size-3.5 shrink-0"})}})})}
2
- export{mt};
@@ -1 +0,0 @@
1
- import{Menu as n}from"@base-ui/react/menu";import{cn as i}from"cn";import{CheckIcon as c,ChevronRightIcon as p}from"lucide-react";import{jsx as t,jsxs as u}from"react/jsx-runtime";function H({...e}){return t(n.Root,{"data-slot":"dropdown-menu",...e})}function xi({...e}){return t(n.Portal,{"data-slot":"dropdown-menu-portal",...e})}function O({...e}){return t(n.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function N({align:e="start",alignOffset:o=0,side:a="bottom",sideOffset:r=4,className:d,...s}){return t(n.Portal,{children:t(n.Positioner,{className:"isolate z-50 outline-none",align:e,alignOffset:o,side:a,sideOffset:r,children:t(n.Popup,{"data-slot":"dropdown-menu-content",className:i("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 duration-100 outline-none data-closed:overflow-hidden",d),...s})})})}function F({...e}){return t(n.Group,{"data-slot":"dropdown-menu-group",...e})}function te({className:e,inset:o,...a}){return t(n.GroupLabel,{"data-slot":"dropdown-menu-label","data-inset":o,className:i("text-muted-foreground px-2 py-1.5 text-xs font-medium data-inset:pl-8",e),...a})}function M({className:e,inset:o,variant:a="default",...r}){return t(n.Item,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":a,className:i("group/dropdown-menu-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function _e({...e}){return t(n.SubmenuRoot,{"data-slot":"dropdown-menu-sub",...e})}function He({className:e,inset:o,children:a,...r}){return u(n.SubmenuTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":o,className:i("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[a,t(p,{className:"ml-auto"})]})}function Oe({align:e="start",alignOffset:o=-3,side:a="right",sideOffset:r=0,className:d,...s}){return t(N,{"data-slot":"dropdown-menu-sub-content",className:i("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 w-auto min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100",d),align:e,alignOffset:o,side:a,sideOffset:r,...s})}function rn({className:e,children:o,checked:a,inset:r,...d}){return u(n.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item","data-inset":r,className:i("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:a,...d,children:[t("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-checkbox-item-indicator",children:t(n.CheckboxItemIndicator,{children:t(c,{})})}),o]})}function $o({...e}){return t(n.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function qo({className:e,children:o,inset:a,...r}){return u(n.RadioItem,{"data-slot":"dropdown-menu-radio-item","data-inset":a,className:i("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[t("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-radio-item-indicator",children:t(n.RadioItemIndicator,{children:t(c,{})})}),o]})}function R({className:e,...o}){return t(n.Separator,{"data-slot":"dropdown-menu-separator",className:i("bg-border -mx-1 my-1 h-px",e),...o})}function yi({className:e,...o}){return t("span",{"data-slot":"dropdown-menu-shortcut",className:i("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest",e),...o})}export{H,xi,O,N,F,te,M,_e,He,Oe,rn,$o,qo,R,yi};
@@ -1,2 +0,0 @@
1
- import type * as React from "react";
2
- export declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
@@ -1 +0,0 @@
1
- import{ln}from"../chunk-sbyn62qx.js";import"../chunk-ncekagm6.js";export{ln as InputGroupTextarea};