@alwith/module-chat 0.5.10 → 0.5.12
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.
- package/dist/activity-host.js +1 -1
- package/dist/approval/choice-elicitation-form.js +1 -1
- package/dist/approval/choice-schema.js +1 -1
- package/dist/approval/permission-options.js +1 -1
- package/dist/approval/permission-view.js +1 -1
- package/dist/approval/schema-elicitation-form.js +1 -1
- package/dist/approval/url-elicitation-card.js +1 -1
- package/dist/{chunk-8tn17nw7.js → chunk-023yzyq8.js} +2 -2
- package/dist/{chunk-j8fybkv1.js → chunk-0qm0fy2r.js} +2 -2
- package/dist/chunk-1dh0q11h.js +4 -0
- package/dist/{chunk-9bjywaze.js → chunk-1drkvxzk.js} +1 -1
- package/dist/{chunk-94r5frad.js → chunk-1k03fpcj.js} +2 -2
- package/dist/chunk-24b1z856.js +2 -0
- package/dist/{chunk-12swy4za.js → chunk-27vftbhf.js} +4 -4
- package/dist/{chunk-ybwgmphj.js → chunk-2pha46d9.js} +1 -1
- package/dist/{chunk-d8rf7rff.js → chunk-2w576ygb.js} +2 -2
- package/dist/chunk-31x6chk8.js +2 -0
- package/dist/chunk-36t9x2qc.js +4 -0
- package/dist/{chunk-zbnjrtye.js → chunk-3ah1ez70.js} +5 -5
- package/dist/{chunk-xv3qen27.js → chunk-3dvx2q8w.js} +2 -2
- package/dist/{chunk-b616t3fp.js → chunk-3g66qg03.js} +2 -2
- package/dist/chunk-3q6ssrs3.js +2 -0
- package/dist/{chunk-vxm45kym.js → chunk-4wkpatzz.js} +2 -2
- package/dist/{chunk-ptws0wtt.js → chunk-58bs5f2z.js} +2 -2
- package/dist/{chunk-zse2yz8e.js → chunk-62m11b37.js} +3 -3
- package/dist/{chunk-rg5vskrr.js → chunk-63zq5nr8.js} +2 -2
- package/dist/chunk-6nyba0m4.js +2 -0
- package/dist/{chunk-bm4s6n8a.js → chunk-6ss1981q.js} +2 -2
- package/dist/{chunk-34a7aha4.js → chunk-753s76b6.js} +2 -2
- package/dist/chunk-76w1a72z.js +2 -0
- package/dist/{chunk-dzx4rypz.js → chunk-7avpdkmf.js} +2 -2
- package/dist/{chunk-gthvary5.js → chunk-8712sy9s.js} +1 -1
- package/dist/{chunk-83dkw1mh.js → chunk-8a1j96d1.js} +2 -2
- package/dist/{chunk-wp673je0.js → chunk-8jpm8fnf.js} +1 -1
- package/dist/chunk-9hvbm4be.js +2 -0
- package/dist/{chunk-r55p44ys.js → chunk-9t8ptjct.js} +2 -2
- package/dist/chunk-9v94xnhp.js +2 -0
- package/dist/{chunk-5f4m4ptz.js → chunk-a1kmc6t8.js} +3 -3
- package/dist/{chunk-et0rpfh9.js → chunk-a2hygrpr.js} +1 -1
- package/dist/{chunk-tc85dd04.js → chunk-ak0k5vg6.js} +1 -1
- package/dist/{chunk-erzjz56d.js → chunk-ana59z25.js} +1 -1
- package/dist/{chunk-anshr0mw.js → chunk-anfrrs5x.js} +1 -1
- package/dist/chunk-aprxk7c2.js +2 -0
- package/dist/chunk-b1vw42he.js +2 -0
- package/dist/chunk-b3nt7axf.js +2 -0
- package/dist/chunk-b5z75meq.js +2 -0
- package/dist/{chunk-rawfwgmw.js → chunk-b65vdzz3.js} +1 -1
- package/dist/{chunk-f4e289mj.js → chunk-bbwb4555.js} +2 -2
- package/dist/{chunk-90c0tynf.js → chunk-bcrq96dw.js} +2 -2
- package/dist/{chunk-gq30yqjk.js → chunk-bftrddmr.js} +2 -2
- package/dist/chunk-bna24ggr.js +2 -0
- package/dist/chunk-bzk6wn2s.js +3 -0
- package/dist/{chunk-vyf9wx2w.js → chunk-c0ac9k7h.js} +2 -2
- package/dist/{chunk-6z9r27t2.js → chunk-c7km8xgd.js} +2 -2
- package/dist/{chunk-bq05e911.js → chunk-c9k66x5g.js} +2 -2
- package/dist/{chunk-rmv0t2ee.js → chunk-chwg3na0.js} +2 -2
- package/dist/{chunk-kgkrtc3r.js → chunk-cy6grsx0.js} +1 -1
- package/dist/{chunk-9w0w5by0.js → chunk-d6840cvf.js} +2 -2
- package/dist/{chunk-nsns7rgs.js → chunk-ddtb692j.js} +2 -2
- package/dist/{chunk-y8qmxd0j.js → chunk-dgnk7h62.js} +2 -2
- package/dist/{chunk-13y1xqbb.js → chunk-ds6avzj3.js} +2 -2
- package/dist/{chunk-bhrnw36x.js → chunk-dxt9j0da.js} +2 -2
- package/dist/chunk-e15f3anm.js +3 -0
- package/dist/chunk-ee9pzqnq.js +2 -0
- package/dist/{chunk-kjtd3wc3.js → chunk-ek06eyp4.js} +1 -1
- package/dist/chunk-evx9d147.js +2 -0
- package/dist/chunk-f3e3ged2.js +2 -0
- package/dist/chunk-f7n8erng.js +2 -0
- package/dist/chunk-fa0kzj3j.js +2 -0
- package/dist/{chunk-gajhc4bp.js → chunk-fnbs3dq1.js} +2 -2
- package/dist/{chunk-5nqhvv28.js → chunk-fpx4ng0t.js} +2 -2
- package/dist/{chunk-r828rqdv.js → chunk-fteek5h4.js} +2 -2
- package/dist/chunk-gbbpdhg6.js +2 -0
- package/dist/chunk-gpz9f9zq.js +2 -0
- package/dist/{chunk-951wn2bd.js → chunk-gszy4mhj.js} +2 -2
- package/dist/{chunk-115a3p9z.js → chunk-gtqwgjjg.js} +2 -2
- package/dist/chunk-hgj33wbd.js +2 -0
- package/dist/chunk-hh498geh.js +7 -0
- package/dist/chunk-hpyaxv6h.js +2 -0
- package/dist/chunk-ht28382s.js +2 -0
- package/dist/{chunk-7q07tm0w.js → chunk-hw99hhjf.js} +1 -1
- package/dist/{chunk-5c4z345j.js → chunk-hwfwd04r.js} +2 -2
- package/dist/{chunk-dnhmnmgf.js → chunk-hz1pgnqp.js} +2 -2
- package/dist/chunk-jr591zg2.js +2 -0
- package/dist/chunk-jtv179nm.js +2 -0
- package/dist/{chunk-1k1e55de.js → chunk-kbwjcnf6.js} +1 -1
- package/dist/{chunk-s4tydqhr.js → chunk-kfs19vc5.js} +2 -2
- package/dist/{chunk-tjhwk02y.js → chunk-ks05sstp.js} +1 -1
- package/dist/{chunk-5d94195x.js → chunk-ksv9pjc2.js} +1 -1
- package/dist/{chunk-vdeh7n7d.js → chunk-kw487283.js} +2 -2
- package/dist/{chunk-y0ppdmcv.js → chunk-m6h92nq4.js} +2 -2
- package/dist/chunk-mk379yt7.js +2 -0
- package/dist/{chunk-eg1d1gbc.js → chunk-mkw0twsb.js} +2 -2
- package/dist/{chunk-jbz530rv.js → chunk-mvv5xmap.js} +2 -2
- package/dist/{chunk-grncrd31.js → chunk-mwd0ed0c.js} +2 -2
- package/dist/chunk-nad1erxy.js +3 -0
- package/dist/{chunk-xjtqdp82.js → chunk-ncekagm6.js} +1 -1
- package/dist/chunk-nwrbpw97.js +2 -0
- package/dist/{chunk-k583q9wq.js → chunk-phy911dk.js} +3 -3
- package/dist/{chunk-9cbpmdqf.js → chunk-q256c3hn.js} +2 -2
- package/dist/{chunk-gc1m6aw5.js → chunk-qg1b5k6m.js} +2 -2
- package/dist/{chunk-4t6bd8j7.js → chunk-qnk5jk1b.js} +2 -2
- package/dist/chunk-qv4x469a.js +2 -0
- package/dist/{chunk-sx4fhs54.js → chunk-qwyvq7bk.js} +2 -2
- package/dist/{chunk-b81yxz7f.js → chunk-r0t8zj4g.js} +2 -2
- package/dist/chunk-rag9xsg5.js +2 -0
- package/dist/{chunk-vpt3vyfc.js → chunk-reaxcamj.js} +2 -2
- package/dist/chunk-rrrpp44m.js +2 -0
- package/dist/chunk-rtg6xfgr.js +2 -0
- package/dist/chunk-s2k5xynq.js +2 -0
- package/dist/chunk-sbyn62qx.js +2 -0
- package/dist/chunk-shsyer15.js +2 -0
- package/dist/{chunk-2ymhbrf9.js → chunk-sn80gr8g.js} +3 -3
- package/dist/{chunk-btjqewxj.js → chunk-svt0t387.js} +2 -2
- package/dist/{chunk-v2bbgpvw.js → chunk-tjpr0adf.js} +2 -2
- package/dist/{chunk-2pj3pcc7.js → chunk-tjykfxrd.js} +2 -2
- package/dist/{chunk-r67bkrmr.js → chunk-tm4ee7m3.js} +2 -2
- package/dist/chunk-tt40vzdd.js +2 -0
- package/dist/{chunk-76xfekar.js → chunk-vc9ts6wp.js} +2 -2
- package/dist/{chunk-3wg25354.js → chunk-vcbv30ph.js} +2 -2
- package/dist/{chunk-7awdgc0t.js → chunk-vyccmpdn.js} +2 -2
- package/dist/{chunk-fjwg3y8h.js → chunk-w45d5th9.js} +2 -2
- package/dist/{chunk-pmpeh7e8.js → chunk-wmk2dwpf.js} +2 -2
- package/dist/{chunk-0fr24sxr.js → chunk-x2tsybks.js} +3 -3
- package/dist/{chunk-vvk1knxf.js → chunk-xa20eex9.js} +1 -1
- package/dist/{chunk-t1yd4a57.js → chunk-xd5rqbwp.js} +1 -1
- package/dist/{chunk-x66yhg5y.js → chunk-xj0y094j.js} +2 -2
- package/dist/{chunk-64hrczd9.js → chunk-xxkdv1zf.js} +1 -1
- package/dist/{chunk-2879v3ps.js → chunk-y0psrvcc.js} +2 -2
- package/dist/{chunk-ct5wk01a.js → chunk-y1kkt0m2.js} +3 -3
- package/dist/{chunk-46gb51y9.js → chunk-y6r6tzfh.js} +2 -2
- package/dist/chunk-zg2342s2.js +2 -0
- package/dist/chunk-zmpbfbnn.js +2 -0
- package/dist/{chunk-0sdhavk8.js → chunk-znyyzs85.js} +2 -2
- package/dist/{chunk-akcs13sj.js → chunk-zp5ntx27.js} +2 -2
- package/dist/{chunk-wqrn3428.js → chunk-zw3h5xgf.js} +1 -1
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/assistant-message.d.ts +2 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/edited-files-card.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/codex/navigation-audio.js +1 -1
- package/dist/codex/navigation-preview.js +1 -1
- package/dist/codex/navigation-rail.js +1 -1
- package/dist/codex/patch-view.js +1 -1
- package/dist/codex/plan.js +1 -1
- package/dist/codex/timeline-virtualizer.js +1 -1
- package/dist/codex/turn-activity.d.ts +1 -1
- package/dist/codex/turn-activity.js +1 -1
- package/dist/codex/user-message.js +1 -1
- package/dist/codex/virtualized-turn-list.js +1 -1
- package/dist/composer/completion-filter.js +1 -1
- package/dist/composer/completion-menu.js +1 -1
- package/dist/composer/completion-trigger.js +1 -1
- package/dist/composer/effort-slider.js +1 -1
- package/dist/composer/menu-radio.js +1 -1
- package/dist/composer/model-select.js +1 -1
- package/dist/composer/permission-mode-select.js +1 -1
- package/dist/composer/prompt-input-attachments.js +1 -1
- package/dist/composer/prompt-input-clipboard.js +1 -1
- package/dist/composer/prompt-input-context.js +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.js +1 -1
- package/dist/conversation/action-card.js +1 -1
- package/dist/conversation/composer/composer.d.ts +2 -1
- package/dist/conversation/composer/composer.js +1 -1
- package/dist/conversation/composer/config-options.js +1 -1
- package/dist/conversation/composer/context.d.ts +1 -0
- package/dist/conversation/composer/context.js +1 -1
- package/dist/conversation/composer/drafts.js +1 -1
- package/dist/conversation/composer/file-items.js +1 -1
- package/dist/conversation/composer/long-text.js +1 -1
- package/dist/conversation/composer/mention-chips.js +1 -1
- package/dist/conversation/composer/mention-uri.js +1 -1
- package/dist/conversation/composer/model-menu.d.ts +1 -1
- package/dist/conversation/composer/model-menu.js +1 -1
- package/dist/conversation/composer/pasted-text-attachment.js +1 -1
- package/dist/conversation/composer/permission-mode-menu.js +1 -1
- package/dist/conversation/composer/prediction.js +1 -1
- package/dist/conversation/composer/slash-command-button.js +1 -1
- package/dist/conversation/composer/submit-button.js +1 -1
- package/dist/conversation/composer/usage-meter.js +1 -1
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-view.js +1 -1
- package/dist/conversation/conversation.js +1 -1
- package/dist/conversation/diff-modal.js +1 -1
- package/dist/conversation/session-actions.js +1 -1
- package/dist/image-lightbox.js +1 -1
- package/dist/image-preview-dialog.js +1 -1
- package/dist/lib/code-highlighter.js +1 -1
- package/dist/lib/fuzzy.js +1 -1
- package/dist/lib/group-blocks.js +1 -1
- package/dist/lib/image-encode.js +1 -1
- package/dist/lib/limits.js +1 -1
- package/dist/lib/markdown-parser.js +1 -1
- package/dist/lib/markdown-parser.worker.js +43 -39
- package/dist/lib/markdown-rules.js +1 -1
- package/dist/lib/model-name.js +1 -1
- package/dist/lib/pointer-centered-zoom.js +1 -1
- package/dist/lib/prepare-prompt-files.js +1 -1
- package/dist/lib/stream-style.js +1 -1
- package/dist/lib/streaming-markdown.js +1 -1
- package/dist/locales.d.ts +13 -0
- package/dist/locales.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/overflow-marquee.js +1 -1
- package/dist/session-list/row-stop-button.js +1 -1
- package/dist/session-list/session-groups.js +1 -1
- package/dist/session-list/session-info-card.js +1 -1
- package/dist/session-list/session-list.js +1 -1
- package/dist/session-list/session-row.js +1 -1
- package/dist/session-list/session-state-dot.js +1 -1
- package/dist/session-list/session-state-menu.js +1 -1
- package/dist/session-list/sidebar-overlay.js +1 -1
- package/dist/session-list/trailing-swap.js +1 -1
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-project-sessions.js +1 -1
- package/dist/session-list/virtual-session-rows.js +1 -1
- package/dist/session-timeline/activity-group.js +1 -1
- package/dist/session-timeline/activity-projection.d.ts +2 -1
- package/dist/session-timeline/activity-projection.js +1 -1
- package/dist/session-timeline/assistant-content.js +1 -1
- package/dist/session-timeline/assistant-turn.js +1 -1
- package/dist/session-timeline/async-questions.js +1 -1
- package/dist/session-timeline/edited-files-card.js +1 -1
- package/dist/session-timeline/history-timeline.js +1 -1
- package/dist/session-timeline/host.js +1 -1
- package/dist/session-timeline/navigation-rail.js +1 -1
- package/dist/session-timeline/plan.js +1 -1
- package/dist/session-timeline/question-reply.js +1 -1
- package/dist/session-timeline/resource-content.js +1 -1
- package/dist/session-timeline/session-timeline.js +1 -1
- package/dist/session-timeline/timeline-registry.js +1 -1
- package/dist/session-timeline/turn-activity.js +1 -1
- package/dist/session-timeline/turn-error.js +1 -1
- package/dist/session-timeline/turn-retry.js +1 -1
- package/dist/session-timeline/turn-time.js +1 -1
- package/dist/session-timeline/turns.js +1 -1
- package/dist/session-timeline/use-timeline-scroll.js +1 -1
- package/dist/session-timeline/user-message.js +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/ui/alert.js +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/card.js +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/empty.js +1 -1
- package/dist/ui/field.js +1 -1
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/input-group-textarea.js +1 -1
- package/dist/ui/input-group.js +1 -1
- package/dist/ui/kbd.js +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/radio-group.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/separator.js +1 -1
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/spinner.js +1 -1
- package/dist/ui/switch.js +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-1jzxmw98.js +0 -2
- package/dist/chunk-1wxebrbt.js +0 -2
- package/dist/chunk-1xg1qw4g.js +0 -4
- package/dist/chunk-3g8ck68k.js +0 -2
- package/dist/chunk-3xnbypjz.js +0 -2
- package/dist/chunk-4ecdn9z1.js +0 -2
- package/dist/chunk-60ks28ef.js +0 -2
- package/dist/chunk-62x983rq.js +0 -2
- package/dist/chunk-6f2h379x.js +0 -2
- package/dist/chunk-6xp64b2e.js +0 -2
- package/dist/chunk-78x93ef2.js +0 -2
- package/dist/chunk-7e1m1d9x.js +0 -2
- package/dist/chunk-8dtaq4eh.js +0 -2
- package/dist/chunk-9h86hvc3.js +0 -2
- package/dist/chunk-9tgtskz4.js +0 -2
- package/dist/chunk-a7nqzhxj.js +0 -2
- package/dist/chunk-aafg3jqm.js +0 -3
- package/dist/chunk-b8ywzj88.js +0 -2
- package/dist/chunk-b9ew8dwr.js +0 -2
- package/dist/chunk-cc6vp2sg.js +0 -2
- package/dist/chunk-fb6vxbmc.js +0 -2
- package/dist/chunk-fcyzhbmn.js +0 -2
- package/dist/chunk-fw3emcqw.js +0 -2
- package/dist/chunk-h7ks1p6h.js +0 -2
- package/dist/chunk-j4cm74nv.js +0 -4
- package/dist/chunk-jegkf64h.js +0 -2
- package/dist/chunk-jjtgsnj0.js +0 -2
- package/dist/chunk-jnrcqphc.js +0 -2
- package/dist/chunk-jyy20tw1.js +0 -2
- package/dist/chunk-k7wta28t.js +0 -2
- package/dist/chunk-kathd6f3.js +0 -2
- package/dist/chunk-ksmcznp2.js +0 -3
- package/dist/chunk-m2ab6p4w.js +0 -2
- package/dist/chunk-n89jvr5q.js +0 -2
- package/dist/chunk-nvya2g1d.js +0 -2
- package/dist/chunk-rqnvygqy.js +0 -7
- package/dist/chunk-rw9bsnyp.js +0 -2
- package/dist/chunk-s1z1418w.js +0 -2
- package/dist/chunk-sgy6b5me.js +0 -2
- package/dist/chunk-sk14wfkj.js +0 -2
- package/dist/chunk-vmcxp5e2.js +0 -2
- package/dist/chunk-wzjq9j6g.js +0 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
2
|
-
`)[0]??e("pattern")??e("url")??e("query")??e("description");return{category:o,...s===void 0?{}:{target:s},...n===void 0?{}:{filePath:n}}}function
|
|
3
|
-
export{
|
|
1
|
+
var pi=["full","compact","codexUI"];function uo(t){return t==="compact"||t==="codexUI"}var Dr=["read","edit","delete","move","search","execute","think","fetch","switch_mode","other"];function c(t){let o=t.split(/[/\\]/).at(-1)??"";return o===""?t:o}function S(t){let o=Dr.includes(t.kind)?t.kind:"other",i=t.rawInput,e=(a)=>{let r=i[a];return typeof r==="string"&&r.length>0?r:void 0},n=t.locations?.[0]?.path??e("file_path")??e("notebook_path"),s=n!==void 0?c(n):e("command")?.split(`
|
|
2
|
+
`)[0]??e("pattern")??e("url")??e("query")??e("description");return{category:o,...s===void 0?{}:{target:s},...n===void 0?{}:{filePath:n}}}function gi(t,o){if(o)return"dot-permission";switch(t){case"completed":return"dot-success";case"failed":return"dot-error";case"in_progress":return"dot-in-progress";case"pending":return"dot-pending";case"interrupted":return"dot-interrupted";default:return console.warn("[acp] unknown tool call status:",t),"dot-pending"}}
|
|
3
|
+
export{pi,uo,Dr,S,gi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function a(t){if(t.path.startsWith("/")||/^[A-Za-z]:[\\/]/.test(t.path))return t.path;return`${t.root.replace(/[\\/]+$/,"")}/${t.path}`}function
|
|
2
|
-
export{
|
|
1
|
+
function a(t){if(t.path.startsWith("/")||/^[A-Za-z]:[\\/]/.test(t.path))return t.path;return`${t.root.replace(/[\\/]+$/,"")}/${t.path}`}function ut(t,o=50){return t.slice(0,o).map((e)=>{let r=a(e);return{key:r,label:e.path,payload:r,description:e.match_type==="directory"?"/":""}})}
|
|
2
|
+
export{ut};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{codexMessageError as u,codexTurnError as a}from"@nyssance/codex-acp-v2/client";var c=[10,30,120,300];function
|
|
2
|
-
export{
|
|
1
|
+
import{codexMessageError as u,codexTurnError as a}from"@nyssance/codex-acp-v2/client";var c=[10,30,120,300];function Un(e){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r],t=o.errors.at(-1),l=t===void 0?null:u(t);if(l===null||a(l).category!=="overloaded")break;if(n++,o.user!==null)break}return c[n-1]??null}
|
|
2
|
+
export{Un};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cn as a}from"cn";import{useRef as u,useState as E}from"react";import{jsx as l}from"react/jsx-runtime";var M=45,d=8;function
|
|
2
|
-
export{
|
|
1
|
+
import{cn as a}from"cn";import{useRef as u,useState as E}from"react";import{jsx as l}from"react/jsx-runtime";var M=45,d=8;function L({className:i,children:p,onMouseEnter:c,onMouseLeave:f,...m}){let s=u(null),[t,r]=E(0);return l("span",{className:a("min-w-0 overflow-hidden",i),onMouseEnter:(e)=>{let n=s.current;if(!n)return;let o=n.scrollWidth-n.clientWidth;if(o>d)r(getComputedStyle(n).direction==="rtl"?o:-o);c?.(e)},onMouseLeave:(e)=>{r(0),f?.(e)},...m,children:l("span",{ref:s,className:a("block whitespace-nowrap",t===0?"truncate":"overflow-visible"),style:{transform:`translateX(${t}px)`,transition:`transform ${Math.abs(t)/M}s linear`},children:p})})}
|
|
2
|
+
export{L};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{nativeTurnId as a}from"@nyssance/codex-acp-v2/client";function
|
|
2
|
-
export{
|
|
1
|
+
import{nativeTurnId as a}from"@nyssance/codex-acp-v2/client";function ro(o,i){let u=new Set,s=(e)=>{let t=e.items.map(a).find((r)=>r!==null),n=e.items.every((r)=>r.replayed);if(t===void 0||u.has(t))return{turnKey:e.key,turn:e,deferUntilReady:n};return u.add(t),{turnKey:`history:${t}`,aliases:[e.key],turn:e,deferUntilReady:n}};if(!i?.complete)return o.map(s);let d=new Map;for(let e of o){let t=e.items.map(a).find((r)=>r!==null);if(t===void 0)continue;let n=d.get(t)??[];n.push(e),d.set(t,n)}let l=new Set(i.turns.map((e)=>e.turnId)),y=new Set(i.loadedTurnIds);return[...i.turns.flatMap((e)=>{let t=d.get(e.turnId);if(t)return t.map(s);return y.has(e.turnId)?[]:[{turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,estimatedHeightPx:320,placeholder:!0}]}),...o.filter((e)=>!e.items.some((t)=>l.has(a(t)??""))).map(s)]}
|
|
2
|
+
export{ro};
|
|
@@ -0,0 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
1
|
-
import{s,r}from"./chunk-
|
|
2
|
-
export{
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import{createContext as d,useCallback as n,useContext as i,useEffect as V,useMemo as q,useRef as I,useState as z}from"react";import{jsx as D}from"react/jsx-runtime";var C=d(null),
|
|
2
|
-
export{
|
|
1
|
+
import{createContext as d,useCallback as n,useContext as i,useEffect as V,useMemo as q,useRef as I,useState as z}from"react";import{jsx as D}from"react/jsx-runtime";var C=d(null),cn=d(null);function Si(){return i(cn)}var dn=d(null);function Pi(){return i(dn)}var Be=d(null);function ze(){let r=i(C);if(!r)throw Error("Wrap your component inside <PromptInputProvider> to use usePromptInputController().");return r}var Ue=()=>i(C);function Ni(){let r=i(Be);if(!r)throw Error("Wrap your component inside <PromptInputProvider> to use useProviderAttachments().");return r}var X=()=>i(Be);function rr({initialInput:r="",revision:l,onSubmittedClear:c,onRemoveAttachment:F,attachmentPolicy:f,value:A,onValueChange:R,attachments:U,onAttachmentsChange:L,children:B}){let S=n((t)=>{if(t.type)return t.type;let e=(t.name||"").toLowerCase();if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg")||e.endsWith(".jpeg"))return"image/jpeg";if(e.endsWith(".webp"))return"image/webp";if(e.endsWith(".gif"))return"image/gif";if(e.endsWith(".bmp"))return"image/bmp";if(e.endsWith(".svg"))return"image/svg+xml";return""},[]),T=A!==void 0,[G,J]=z(r),p=A??G,o=I({value:p,external:l,revision:0});if(o.current.value!==p||o.current.external!==l)o.current={value:p,external:l,revision:o.current.revision+1};let W=n(()=>o.current.revision,[]),P=n((t)=>{if(o.current.value=t,o.current.revision++,T)R?.(t);else J(t)},[T,R]),g=n(()=>P(""),[P]),x=U!==void 0,[K,N]=z([]),v=U??K,h=I(v);h.current=v;let s=n((t)=>{let e=typeof t==="function"?t(h.current):t;if(x)L?.(e);else N(e)},[x,L]),j=I(null),w=I(()=>{}),O=n((t)=>{let e=[...t];if(e.length===0)return;s((a)=>{let m=f===void 0?e:f.uniqueFiles(e,a);return[...a,...m.map((u)=>{let _=f?.sourcePath(u);return{id:crypto.randomUUID(),type:"file",url:URL.createObjectURL(u),mediaType:S(u),filename:u.name,size:u.size,lastModified:u.lastModified,..._===void 0?{}:{sourcePath:_}}})]})},[f,S,s]),M=n((t)=>{s((e)=>{let a=e.find((m)=>m.id===t);if(a?.url)URL.revokeObjectURL(a.url);return e.filter((m)=>m.id!==t)}),F?.()},[F,s]),E=n(()=>{s((t)=>{for(let e of t)if(e.url)URL.revokeObjectURL(e.url);return[]})},[s]);V(()=>{if(x)return;return()=>{for(let t of h.current)if(t.url)URL.revokeObjectURL(t.url)}},[x]);let k=n(()=>{w.current?.()},[]),b=q(()=>({files:v,add:O,remove:M,clear:E,openFileDialog:k,fileInputRef:j}),[v,O,M,E,k]),H=n((t,e)=>{j.current=t.current,w.current=e},[]),Q=q(()=>({textInput:{value:p,setInput:P,clear:g,getRevision:W,clearSubmitted:c??g},attachments:b,__registerFileInput:H}),[p,P,g,W,c,b,H]);return D(C.Provider,{value:Q,children:D(Be.Provider,{value:b,children:B})})}var un=d(null);function y(){let r=X(),l=i(un),c=r??l;if(!c)throw Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return c}
|
|
2
|
+
export{cn,Si,dn,Pi,Be,ze,Ue,Ni,rr,un,y};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{kt}from"./chunk-tt40vzdd.js";async function mn(i,c){let s=new WeakSet;while(!c.aborted){let r=Array.from(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 We(i,c){if(!c)return[];let s=[],r="",e=[],o=()=>{let t=0,n=0;for(let{start:a,end:l}of kt(r,c)){while(t<e.length&&e[t].end<=a)t++;n=Math.max(n,t);while(n<e.length&&e[n].end<l)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,l-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 l=t.nodeValue??"";e.push({node:t,start:r.length,end:r.length+l.length}),r+=l;return}if(!(t instanceof Element))return;if(t.matches("script, style, [hidden], [aria-hidden='true']")){o();return}if(t.tagName==="BR"){o();return}let n=m.has(t.tagName);if(n)o();for(let a of t.childNodes)u(a);if(n)o()};return u(i),o(),s}
|
|
2
|
+
export{mn,We};
|
|
@@ -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
|
|
2
|
-
export{
|
|
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 G({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{G};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Me}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{Me}from"./chunk-hh498geh.js";import{Io}from"./chunk-zg2342s2.js";import{t}from"./chunk-f3e3ged2.js";import{_}from"./chunk-kfs19vc5.js";import{Vt}from"./chunk-753s76b6.js";import{isContentEntry as f,isEmbeddedResource as y,isResourceLink as g}from"@nyssance/codex-acp-v2/client";import{memo as k,useMemo as v}from"react";import{jsx as l,jsxs as u,Fragment as T}from"react/jsx-runtime";function R({item:n}){if(n.name==="view_image"&&n.status==="completed")return null;let r=n.content.filter(f).filter((o)=>y(o.content)||g(o.content));if(r.length===0)return null;return u("fieldset",{className:"mt-1 min-w-0",children:[l("legend",{className:"text-muted-foreground text-xs",children:n.title??n.name}),r.map((o,s)=>l(_,{block:o.content},`${n.id}:${s}`))]})}var zt=k(function({sessionId:r,items:o,terminals:s,streamingThoughtId:d}){let p=t(),i=o.every(Vt),c=p.toolBlock,a=v(()=>o.map((e)=>{let m={...Io(e,s,e.kind==="thought"&&e.id===d),id:JSON.stringify([r,i?"history":"live",e.id])};return m.type==="tool_use"&&e.kind==="tool"&&c!==void 0?c(m,e):m}),[r,i,o,s,d,c]);return u(T,{children:[l(Me,{blocks:a,defaultExpanded:!i}),o.map((e)=>e.kind==="tool"&&l(R,{item:e},e.id))]})});
|
|
2
|
+
export{zt};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`,1)[0]??"";return r.endsWith(` b/${a}`)||r.endsWith(` ${a}`)||r.includes(`/${a} `)})??e}function
|
|
3
|
-
export{
|
|
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 +1 @@
|
|
|
1
|
-
import{mergeProps as a}from"@base-ui/react/merge-props";import{useRender as n}from"@base-ui/react/use-render";import{cva as o}from"class-variance-authority";import{cn as d}from"cn";var
|
|
1
|
+
import{mergeProps as a}from"@base-ui/react/merge-props";import{useRender as n}from"@base-ui/react/use-render";import{cva as o}from"class-variance-authority";import{cn as d}from"cn";var Wr=o("group/badge focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:ring-[3px] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function qe({className:r,variant:e="default",render:t,...i}){return n({defaultTagName:"span",props:a({className:d(Wr({variant:e}),r)},i),render:t,state:{slot:"badge",variant:e}})}export{Wr,qe};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./chunk-6kn920c5.js";import{l}from"./chunk-1hy64ewz.js";import{cn as h}from"cn";import{ChevronDownIcon as g,ChevronUpIcon as b,XIcon as z}from"lucide-react";import{useEffect as B,useImperativeHandle as N,useRef as E}from"react";import{jsx as n,jsxs as k}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{e}from"./chunk-6kn920c5.js";import{l}from"./chunk-1hy64ewz.js";import{cn as h}from"cn";import{ChevronDownIcon as g,ChevronUpIcon as b,XIcon as z}from"lucide-react";import{useEffect as B,useImperativeHandle as N,useRef as E}from"react";import{jsx as n,jsxs as k}from"react/jsx-runtime";function pn({ref:p,value:o,onChange:d,onFind:i,onClose:s,placeholder:m,autoFocusOpen:a=!0,prevTitle:c,nextTitle:u,className:v}){let r=E(null);N(p,()=>{if(r.current===null)throw Error("FindBar input is not mounted");return r.current},[]),B(()=>{if(!a)return;let t=r.current;if(t===null)throw Error("FindBar input is not mounted");t.focus({preventScroll:!0}),t.select()},[a]);let f=!o;return k("div",{className:h("border-border flex h-9 shrink-0 items-center gap-1 border-b px-2",v),children:[n(l,{ref:r,value:o,onChange:(t)=>d(t.target.value),placeholder:m,className:"h-7 text-xs",onKeyDown:(t)=>{if(t.key==="Escape"){t.preventDefault(),s();return}if(t.key==="Enter"){if(t.preventDefault(),o)i(t.shiftKey)}}}),n(e,{size:"icon",variant:"ghost",className:"size-6",disabled:f,onClick:()=>i(!0),title:c?`${c} (⇧↵)`:"⇧↵",children:n(b,{className:"size-3.5"})}),n(e,{size:"icon",variant:"ghost",className:"size-6",disabled:f,onClick:()=>i(!1),title:u?`${u} (↵)`:"↵",children:n(g,{className:"size-3.5"})}),n(e,{size:"icon",variant:"ghost",className:"size-6",onClick:s,title:"Esc",children:n(z,{className:"size-3.5"})})]})}
|
|
2
|
+
export{pn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cn as a}from"cn";import{Loader2Icon as r}from"lucide-react";import{jsx as e}from"react/jsx-runtime";function
|
|
1
|
+
import{cn as a}from"cn";import{Loader2Icon as r}from"lucide-react";import{jsx as e}from"react/jsx-runtime";function ce({className:o,...n}){return e(r,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:a("size-4 animate-spin",o),...n})}export{ce};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{html as n}from"diff2html";import{ColorSchemeType as r}from"diff2html/lib/types";import{useMemo as s}from"react";import{jsx as a}from"react/jsx-runtime";function
|
|
1
|
+
import{html as n}from"diff2html";import{ColorSchemeType as r}from"diff2html/lib/types";import{useMemo as s}from"react";import{jsx as a}from"react/jsx-runtime";function Dn(e){let t=0,i=0;for(let o of e.split(`
|
|
2
2
|
`)){if(o.startsWith("+++")||o.startsWith("---"))continue;if(o.startsWith("+"))t+=1;else if(o.startsWith("-"))i+=1}return{additions:t,deletions:i}}function Ne({patch:e,theme:t}){let i=s(()=>n(e,{drawFileList:!1,outputFormat:"line-by-line",matching:"lines",colorScheme:t==="dark"?r.DARK:r.LIGHT}),[e,t]);return a("div",{className:"codex-patch-view",dangerouslySetInnerHTML:{__html:i}})}
|
|
3
|
-
export{
|
|
3
|
+
export{Dn,Ne};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
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(
|
|
3
|
-
export{
|
|
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 +1,2 @@
|
|
|
1
|
-
import{createContext as i,useContext as r}from"react";import{jsx as e}from"react/jsx-runtime";var n=i(null);function
|
|
2
|
-
export{
|
|
1
|
+
import{createContext as i,useContext as r}from"react";import{jsx as e}from"react/jsx-runtime";var n=i(null);function lr({host:t,children:o}){return e(n.Provider,{value:t,children:o})}function a(){let t=r(n);if(t===null)throw Error("Activity host is missing");return t}function v(t){let{Markdown:o}=a();return e(o,{...t})}
|
|
2
|
+
export{lr,a,v};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{terminalOf as u,textOf as p}from"@nyssance/codex-acp-v2/client";function Zt(n){if(n.kind!=="tool")return!1;let t=n._meta?.codex;return typeof t==="object"&&t!==null&&"commandSource"in t&&t.commandSource==="userShell"}function Io(n,t,r){if(n.kind!=="tool"){let o=p(n.content),d=/^\s*\*\*([^\n]*?)\*\*\s*$/.exec(o);return{type:"thinking",id:n.id,thinking:d?d[1]:o,isComplete:!r}}if(n.name==="subagent"){let o=s(n.rawInput,n.id);return{type:"subagent",id:n.id,name:g(o.agentPath,n.id),threadId:f(o.agentThreadId,"agentThreadId",n.id),activity:y(o.activity,n.id),model:l(o.model,"model",n.id),reasoningEffort:l(o.reasoningEffort,"reasoningEffort",n.id),status:n.status??"pending",blocks:[]}}if(n.name==="collab"){let o=s(s(s(n._meta,n.id).codex,n.id).collaboration,n.id);if(typeof o.tool!=="string"||!Array.isArray(o.agents))throw Error(`Collaboration call ${n.id} lacks codex-acp-v2 agent metadata`);return{type:"collab",id:n.id,tool:o.tool,status:n.status??"pending",prompt:l(s(n.rawInput,n.id).prompt,"prompt",n.id),agents:o.agents}}let a=typeof n.rawInput==="object"&&n.rawInput!==null&&!Array.isArray(n.rawInput)?{...n.rawInput}:{},i=u(n,t);if(Array.isArray(a.command))a.command=a.command.map(String).join(" ");if(n.toolKind==="execute"&&n.name!=="mcp"&&n.name!=="dynamic_tool"&&typeof a.command!=="string"){let o=i?.command??n.title;if(o!==null)a.command=o}let e=n.rawOutput;if(typeof e==="object"&&e!==null&&"output"in e&&typeof e.output==="string")e=e.output;if(i!==null&&i.output.length>0)e=i.output;let c=i?.exitStatus?.exitCode;return{type:"tool_use",id:n.id,name:n.name??"",title:n.title??n.name??"",kind:n.toolKind??"other",status:n.status??"pending",content:n.content,locations:n.locations,rawInput:a,rawOutput:e,...Zt(n)?{userShell:!0}:{},...typeof c==="number"?{exitCode:c}:{}}}function s(n,t){if(typeof n!=="object"||n===null||Array.isArray(n))throw Error(`Tool call ${t} is missing an object codex-acp-v2 always sends`);return n}function l(n,t,r){if(n===null||typeof n==="string")return n;throw Error(`Tool call ${r} has a non-string ${t}`)}function g(n,t){let r=typeof n==="string"?n.split("/").findLast(Boolean):void 0;if(r===void 0)throw Error(`Subagent ${t} has no agent path`);return r}function f(n,t,r){if(typeof n==="string")return n;throw Error(`Tool call ${r} has no ${t}`)}function y(n,t){if(n==="started"||n==="interacted"||n==="interrupted"||n==="completed")return n;throw Error(`Subagent ${t} has an unknown activity ${String(n)}`)}
|
|
2
|
+
export{Zt,Io};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{v}from"./chunk-y6r6tzfh.js";import{t}from"./chunk-f3e3ged2.js";import{_}from"./chunk-kfs19vc5.js";import{ContentBlock as i}from"@agentclientprotocol/sdk/experimental/v2/unstable";import{isEmbeddedResource as m,isResourceLink as u}from"@nyssance/codex-acp-v2/client";import{jsx as n}from"react/jsx-runtime";function d({block:e,streaming:o}){let r=t();if(i.isText(e)){if(e.text.length===0)return null;return n("div",{className:"codex-assistant-message",children:n(v,{text:e.text,streaming:o})})}if(i.isImage(e))return n(_,{block:e,generated:!0});if(i.isAudio(e))return n("audio",{controls:!0,src:`data:${e.mimeType};base64,${e.data}`});if(u(e)||m(e))return n(_,{block:e,generated:!0});return n("div",{className:"text-muted-foreground",children:r.t("timeline.unsupportedContent",{type:e.type})})}function ee({content:e,messageId:o,streaming:r}){return e.map((s,a)=>n(d,{block:s,streaming:r},`${o}:${a}`))}
|
|
2
|
+
export{ee};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./chunk-6kn920c5.js";import{
|
|
2
|
-
export{
|
|
1
|
+
import{e}from"./chunk-6kn920c5.js";import{_o}from"./chunk-ds6avzj3.js";import{Ae,Le,De}from"./chunk-b65vdzz3.js";import{y}from"./chunk-vcbv30ph.js";import{cn as f}from"cn";import{PaperclipIcon as k,XIcon as T}from"lucide-react";import{Fragment as M,useEffect as L,useRef as z,useState as N}from"react";import{jsx as t,jsxs as o,Fragment as R}from"react/jsx-runtime";function E(n){return t(De,{align:"start",...n})}function Mo({data:n,t:r,className:u,...c}){let p=y(),[d,h]=N(!1),[I,v]=N(1),C=z(null),s=n.filename||"",i=(n.mediaType?.startsWith("image/")&&n.url?"image":"file")==="image",A=s||(i?r("input.image"):r("input.attachment"));return L(()=>{if(!d)return;let l=0.1,g=(a)=>Math.min(10,Math.max(0.1,a)),x=(a)=>{if(!(a.ctrlKey||a.metaKey))return;let m=a.key,w=m==="+"||m==="=",H=m==="-"||m==="_",b=m==="0";if(!w&&!H&&!b)return;a.preventDefault(),v((P)=>{if(b)return 1;if(w)return g(P+l);return g(P-l)})};return window.addEventListener("keydown",x,{passive:!1}),()=>window.removeEventListener("keydown",x)},[d]),o(R,{children:[o(Ae,{children:[t(Le,{render:o("div",{className:f("group border-border hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent relative flex h-8 cursor-pointer items-center gap-1.5 rounded-md border px-1.5 text-sm font-medium transition-all select-none",u),...c,children:[o("div",{className:"relative size-5 shrink-0",children:[i?t(e,{type:"button",variant:"ghost",size:"icon-xs","aria-label":r("input.image"),className:"bg-background absolute inset-0 size-5 overflow-hidden rounded p-0 transition-opacity group-hover:opacity-0",onClick:()=>{v(1),h(!0)},children:t("img",{alt:s||"attachment",className:"size-5 object-cover",height:20,src:n.url,width:20})}):t("div",{className:"bg-background text-muted-foreground absolute inset-0 flex size-5 items-center justify-center overflow-hidden rounded transition-opacity group-hover:opacity-0",children:t(k,{className:"size-3"})}),o(e,{"aria-label":r("input.removeAttachment"),className:f("absolute -top-1 -right-1 size-4 rounded-full p-0 opacity-0 transition-opacity [&>svg]:size-3","pointer-events-none group-hover:pointer-events-auto group-hover:opacity-100"),onClick:(l)=>{l.stopPropagation(),p.remove(n.id)},type:"button",variant:"ghost",children:[t(T,{}),t("span",{className:"sr-only",children:r("input.removeAttachment")})]})]}),!i&&t("span",{className:"max-w-40 flex-1 truncate text-xs",children:A})]})}),t(E,{className:"w-auto p-2",children:o("div",{className:"w-auto space-y-3",children:[i&&t("div",{className:"flex max-h-96 w-96 items-center justify-center overflow-hidden rounded-md border",children:t("img",{alt:s||"attachment preview",className:"max-h-full max-w-full object-contain",height:384,src:n.url,width:448})}),t("div",{className:"flex items-center gap-2.5",children:o("div",{className:"min-w-0 flex-1 space-y-1 px-0.5",children:[t("h4",{className:"truncate text-sm leading-none font-semibold",children:s||(i?"Image":"Attachment")}),n.mediaType&&t("p",{className:"text-muted-foreground truncate font-mono text-xs",children:n.mediaType})]})})]})})]}),i&&n.url&&t(_o,{containerRef:C,filename:s||r("input.image"),onOpenChange:h,onScaleChange:v,open:d,scale:I,url:n.url})]})}function Ro({children:n,className:r,...u}){let c=y();if(!c.files.length)return null;return t("div",{className:f("flex w-full flex-wrap items-center gap-1",r),...u,children:c.files.map((p)=>t(M,{children:n(p)},p.id))})}
|
|
2
|
+
export{Mo,Ro};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
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 +1 @@
|
|
|
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
|
|
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 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{so,Me}from"../chunk-hh498geh.js";import"../chunk-d6840cvf.js";import"../chunk-ckft9abb.js";import"../chunk-sn80gr8g.js";import"../chunk-hz1pgnqp.js";import"../chunk-w45d5th9.js";import"../chunk-y6r6tzfh.js";export{Me as CodexActivityGroup,so as CodexWorkSection};
|
|
@@ -39,5 +39,6 @@ export type CodexAssistantTurnProps = Omit<ComponentProps<typeof CodexWorkSectio
|
|
|
39
39
|
answer: ReactNode;
|
|
40
40
|
footer?: ReactNode;
|
|
41
41
|
loading?: boolean;
|
|
42
|
+
loadingLabel?: string;
|
|
42
43
|
};
|
|
43
|
-
export declare function CodexAssistantTurn({ work, answer, footer, loading, ...metadata }: CodexAssistantTurnProps): import("react").JSX.Element;
|
|
44
|
+
export declare function CodexAssistantTurn({ work, answer, footer, loading, loadingLabel, ...metadata }: CodexAssistantTurnProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mi,Ft,Bt}from"../chunk-bzk6wn2s.js";import"../chunk-hh498geh.js";import"../chunk-d6840cvf.js";import"../chunk-ckft9abb.js";import"../chunk-bftrddmr.js";import"../chunk-sn80gr8g.js";import"../chunk-hz1pgnqp.js";import"../chunk-a1kmc6t8.js";import"../chunk-8a1j96d1.js";import"../chunk-gszy4mhj.js";import"../chunk-w45d5th9.js";import"../chunk-y6r6tzfh.js";export{mi as CodexAssistantMessage,Bt as CodexAssistantTurn,Ft as CodexMessageActions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g,Qt,ko,Xt,Co,Yt,To}from"../chunk-36t9x2qc.js";import"../chunk-ana59z25.js";import"../chunk-ek06eyp4.js";import"../chunk-ncekagm6.js";import"../chunk-6kn920c5.js";export{To as AsyncQuestionCard,Qt as asyncQuestionId,g as asyncQuestions,ko as initialQuestionDraft,Xt as questionAnswer,Yt as questionReplies,Co as questionReplyEnvelope};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Fr,po,$t}from"../chunk-a1kmc6t8.js";import"../chunk-y6r6tzfh.js";export{po as CodexEditedFilesCard,$t as EditedFilesCard,Fr as fileChanges};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{pe,lo}from"../chunk-d6840cvf.js";import"../chunk-ckft9abb.js";import"../chunk-y6r6tzfh.js";export{lo as ImageViewActivity,pe as isImageView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Qn}from"../chunk-27vftbhf.js";import"../chunk-hwfwd04r.js";import"../chunk-7avpdkmf.js";import"../chunk-fpx4ng0t.js";export{Qn as CodexMarkdownRenderer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Zn,si,Jn,eo,li,xr,Er,yr,ci,Ar,Lr,di,ui}from"../chunk-dxt9j0da.js";export{si as armTimelineUserMessageNavigationAudio,Er as automaticNavigationMidiNote,di as getNavigationAudioContextState,ui as getNavigationInstrumentReady,Jn as installTimelineUserMessageNavigationAudioUnlock,Ar as itemPianoKeyIndex,xr as navigationMidiNote,Lr as navigationPianoKeyIndexes,ci as pianoKeyFrequency,yr as pianoKeyMidiNote,li as playTimelineUserMessageNavigationNote,eo as playTimelineUserMessageNavigationSequence,Zn as preloadTimelineUserMessageNavigationInstrument};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Yn}from"../chunk-bcrq96dw.js";export{Yn as NavigationPreview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Xn}from"../chunk-mvv5xmap.js";import"../chunk-bcrq96dw.js";export{Xn as TimelineUserMessageNavigationRail};
|
package/dist/codex/patch-view.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Dn,Ne}from"../chunk-y0psrvcc.js";export{Ne as PatchView,Dn as patchStats};
|
package/dist/codex/plan.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{G}from"../chunk-w45d5th9.js";export{G as CodexPlan};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ii,On,me,Dt,Fn,Bn,zn}from"../chunk-023yzyq8.js";export{ii as CODEX_UNKNOWN_TURN_HEIGHT,me as calculateCodexThreadVirtualRange,Bn as calculateCodexTurnCenterDistanceFromBottom,zn as calculateCodexTurnTargetDistanceFromBottom,On as createCodexThreadVirtualLayout,Fn as preserveCodexThreadDistanceFromBottom,Dt as preserveCodexThreadRenderedWindow};
|
|
@@ -4,7 +4,7 @@ export type TurnActivityItem = {
|
|
|
4
4
|
active: boolean;
|
|
5
5
|
};
|
|
6
6
|
export type TurnActivity = {
|
|
7
|
-
kind: "idle" | "waiting" | "retrying" | "tool" | "planning" | "speaking" | "reasoning" | "thinking";
|
|
7
|
+
kind: "idle" | "waiting" | "retrying" | "tool" | "planning" | "speaking" | "reasoning" | "thinking" | "working";
|
|
8
8
|
ownerKey?: string;
|
|
9
9
|
};
|
|
10
10
|
export declare function selectTurnActivity(items: readonly TurnActivityItem[], state: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{No}from"../chunk-c9k66x5g.js";export{No as selectTurnActivity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{qt,go}from"../chunk-8a1j96d1.js";import"../chunk-gszy4mhj.js";export{go as CodexUserMessage,qt as CopyAction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Hn}from"../chunk-s2k5xynq.js";import"../chunk-023yzyq8.js";export{Hn as VirtualizedTurnList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{en,vi}from"../chunk-mwd0ed0c.js";import"../chunk-c7km8xgd.js";export{vi as filterFiles,en as filterSlashCommands};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Eo}from"../chunk-phy911dk.js";import"../chunk-mwd0ed0c.js";import"../chunk-chwg3na0.js";import"../chunk-c7km8xgd.js";import"../chunk-vcbv30ph.js";import"../chunk-ksv9pjc2.js";import"../chunk-6kn920c5.js";export{Eo as CompletionMenu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ao}from"../chunk-chwg3na0.js";export{Ao as detectTrigger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{on}from"../chunk-6nyba0m4.js";export{on as EffortSlider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h}from"../chunk-1k03fpcj.js";import"../chunk-zw3h5xgf.js";export{h as MenuRadioSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Uo}from"../chunk-76w1a72z.js";import"../chunk-6nyba0m4.js";import"../chunk-1k03fpcj.js";import"../chunk-zw3h5xgf.js";import"../chunk-hw99hhjf.js";import"../chunk-ak0k5vg6.js";import"../chunk-6kn920c5.js";export{Uo as ModelSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{zo}from"../chunk-9t8ptjct.js";import"../chunk-1k03fpcj.js";import"../chunk-zw3h5xgf.js";import"../chunk-6kn920c5.js";export{zo as PermissionModeSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Mo,Ro}from"../chunk-znyyzs85.js";import"../chunk-ds6avzj3.js";import"../chunk-dgnk7h62.js";import"../chunk-b65vdzz3.js";import"../chunk-vcbv30ph.js";import"../chunk-a2hygrpr.js";import"../chunk-6kn920c5.js";export{Mo as PromptInputAttachment,Ro as PromptInputAttachments};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{zr,Lo,Do,Ur,wr,ct}from"../chunk-24b1z856.js";export{Do as clipboardHasStringItem,wr as countControlCharsBeforeIndex,zr as normalizePastedImageFile,ct as sanitizeTextareaTargetValue,Ur as sanitizeTextareaValue,Lo as scanClipboardForImageFiles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cn,Si,dn,Pi,Be,ze,Ue,Ni,rr,un,y}from"../chunk-vcbv30ph.js";export{un as LocalAttachmentsContext,rr as PromptInputProvider,dn as PromptInputSubmissionContext,cn as PromptInputSubmitContext,Be as ProviderAttachmentsContext,Ue as useOptionalPromptInputController,y as usePromptInputAttachments,ze as usePromptInputController,Pi as usePromptInputSubmission,Si as usePromptInputSubmit,Ni as useProviderAttachments};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Jt}from"../chunk-62m11b37.js";import"../chunk-24b1z856.js";import"../chunk-sbyn62qx.js";import"../chunk-vcbv30ph.js";import"../chunk-ncekagm6.js";export{Jt as PromptInputTextarea};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ko,Qo,Xo,Yo,Zo,K,Jo}from"../chunk-gtqwgjjg.js";import{oe}from"../chunk-qv4x469a.js";import"../chunk-ddtb692j.js";import"../chunk-r0t8zj4g.js";import"../chunk-ks05sstp.js";import"../chunk-sbyn62qx.js";import"../chunk-vcbv30ph.js";import"../chunk-ncekagm6.js";import"../chunk-6kn920c5.js";export{oe as MAX_TOTAL_IMAGE_MB,Ko as PromptInput,Qo as PromptInputBody,K as PromptInputButton,Yo as PromptInputFooter,Xo as PromptInputHeader,Jo as PromptInputSubmit,Zo as PromptInputTools};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{de,Pe,it}from"../chunk-y1kkt0m2.js";import"../chunk-mkw0twsb.js";import"../chunk-bna24ggr.js";import"../chunk-4wkpatzz.js";import"../chunk-jr591zg2.js";import"../chunk-8712sy9s.js";import"../chunk-1drkvxzk.js";import"../chunk-8jpm8fnf.js";import"../chunk-1hy64ewz.js";import"../chunk-y0psrvcc.js";import"../chunk-ana59z25.js";import"../chunk-ek06eyp4.js";import"../chunk-ksv9pjc2.js";import"../chunk-a2hygrpr.js";import"../chunk-ak0k5vg6.js";import"../chunk-ncekagm6.js";import"../chunk-9hvbm4be.js";import"../chunk-6kn920c5.js";import"../chunk-f3e3ged2.js";import"../chunk-y6r6tzfh.js";export{it as ActionCard,Pe as ElicitationForm,de as isFormAction};
|
|
@@ -9,6 +9,7 @@ export interface ComposerProps {
|
|
|
9
9
|
preparing?: boolean;
|
|
10
10
|
allowPendingInput?: boolean;
|
|
11
11
|
onSubmit?: (prompt: acp.ContentBlock[], accept?: (receipt: string) => void) => Promise<void>;
|
|
12
|
+
onShellCommand?: (command: string) => Promise<void>;
|
|
12
13
|
onHandOff?: (sessionId: string, receipt: string) => void;
|
|
13
14
|
modelSelector?: ReactNode;
|
|
14
15
|
modelMenu?: Pick<ModelMenuProps, "catalog" | "defaultGroup" | "headerAction">;
|
|
@@ -18,4 +19,4 @@ export interface ComposerProps {
|
|
|
18
19
|
attachmentPolicy?: AttachmentPolicy;
|
|
19
20
|
predictions?: boolean;
|
|
20
21
|
}
|
|
21
|
-
export declare function Composer({ session, onSubmit, onHandOff, modelSelector, modelMenu, inputHeader, actions, children, attachmentPolicy, predictions, disabled, preparing, allowPendingInput }: ComposerProps): import("react").JSX.Element;
|
|
22
|
+
export declare function Composer({ session, onSubmit, onShellCommand, onHandOff, modelSelector, modelMenu, inputHeader, actions, children, attachmentPolicy, predictions, disabled, preparing, allowPendingInput }: ComposerProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{lt}from"../../chunk-hpyaxv6h.js";import"../../chunk-62m11b37.js";import"../../chunk-znyyzs85.js";import"../../chunk-phy911dk.js";import"../../chunk-mwd0ed0c.js";import"../../chunk-chwg3na0.js";import"../../chunk-24b1z856.js";import"../../chunk-ds6avzj3.js";import"../../chunk-c7km8xgd.js";import"../../chunk-dgnk7h62.js";import"../../chunk-9v94xnhp.js";import"../../chunk-b65vdzz3.js";import"../../chunk-3dvx2q8w.js";import"../../chunk-svt0t387.js";import"../../chunk-shsyer15.js";import"../../chunk-zp5ntx27.js";import"../../chunk-9t8ptjct.js";import"../../chunk-reaxcamj.js";import"../../chunk-b1vw42he.js";import"../../chunk-76w1a72z.js";import"../../chunk-6nyba0m4.js";import"../../chunk-1k03fpcj.js";import"../../chunk-zw3h5xgf.js";import"../../chunk-gpz9f9zq.js";import"../../chunk-3q6ssrs3.js";import"../../chunk-gbbpdhg6.js";import"../../chunk-cy6grsx0.js";import"../../chunk-hw99hhjf.js";import"../../chunk-hgj33wbd.js";import"../../chunk-gtqwgjjg.js";import"../../chunk-qv4x469a.js";import"../../chunk-ddtb692j.js";import"../../chunk-r0t8zj4g.js";import"../../chunk-ks05sstp.js";import"../../chunk-sbyn62qx.js";import"../../chunk-vcbv30ph.js";import"../../chunk-ksv9pjc2.js";import"../../chunk-a2hygrpr.js";import"../../chunk-ak0k5vg6.js";import"../../chunk-ncekagm6.js";import"../../chunk-9hvbm4be.js";import"../../chunk-fnbs3dq1.js";import"../../chunk-rrrpp44m.js";import"../../chunk-xa20eex9.js";import"../../chunk-31x6chk8.js";import"../../chunk-6kn920c5.js";import"../../chunk-f3e3ged2.js";import"../../chunk-y6r6tzfh.js";export{lt as Composer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{E,x,ne}from"../../chunk-3q6ssrs3.js";export{ne as currentName,E as flattenSelectOptions,x as selectOption};
|
|
@@ -27,6 +27,7 @@ export interface ComposerState {
|
|
|
27
27
|
addMention: (path: string) => void;
|
|
28
28
|
setAdding: (busy: boolean) => void;
|
|
29
29
|
handsFree: boolean;
|
|
30
|
+
shellMode: boolean;
|
|
30
31
|
}
|
|
31
32
|
export declare const ComposerContext: import("react").Context<ComposerState | null>;
|
|
32
33
|
export declare function useComposer(): ComposerState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{nn,kr}from"../../chunk-shsyer15.js";export{nn as ComposerContext,kr as useComposer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i,
|
|
1
|
+
import{i,ar,A,vt,Cr,Tr,xt,Ir}from"../../chunk-fnbs3dq1.js";export{i as drafts,Cr as exportDraft,Tr as importDraft,xt as registerComposerWriter,ar as registerDraftAttachmentWriter,Ir as setComposerDraft,vt as trackDraftAttachmentWrite,A as updateDraftAttachments};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ut}from"../../chunk-svt0t387.js";export{ut as fileItems};
|