@alwith/module-chat 0.5.18 → 0.5.19
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-w38vbf7h.js → chunk-01rfnabj.js} +2 -2
- package/dist/chunk-04mj5ftg.js +7 -0
- package/dist/{chunk-ahtyazfy.js → chunk-09r35ts9.js} +2 -2
- package/dist/chunk-0jvfabsq.js +2 -0
- package/dist/{chunk-rvr6zj7p.js → chunk-0vy6cqmw.js} +2 -2
- package/dist/{chunk-6nnwmqqp.js → chunk-0zp04d1m.js} +2 -2
- package/dist/{chunk-yh9qdb2k.js → chunk-0zph0gwq.js} +3 -3
- package/dist/chunk-107y8e8x.js +2 -0
- package/dist/{chunk-65m4bm74.js → chunk-210b2kk6.js} +2 -2
- package/dist/chunk-22h5rh2h.js +2 -0
- package/dist/{chunk-qp7aywgn.js → chunk-2hk04fh3.js} +2 -2
- package/dist/chunk-31yt34hy.js +2 -0
- package/dist/chunk-3hp5t5wf.js +2 -0
- package/dist/chunk-3jcx1ns0.js +2 -0
- package/dist/chunk-3jjc06nd.js +3 -0
- package/dist/chunk-3z8ajtxp.js +2 -0
- package/dist/chunk-4b3g7acq.js +2 -0
- package/dist/chunk-4jkg9p4g.js +2 -0
- package/dist/chunk-4xhvh2dn.js +2 -0
- package/dist/chunk-4xmbve71.js +4 -0
- package/dist/chunk-50mckd2p.js +2 -0
- package/dist/chunk-54qxv3er.js +2 -0
- package/dist/chunk-5bz1bzsw.js +2 -0
- package/dist/chunk-5dk4xga8.js +2 -0
- package/dist/{chunk-01dqjas2.js → chunk-5e10bzg2.js} +2 -2
- package/dist/chunk-5my9w4vd.js +2 -0
- package/dist/{chunk-s55n9cby.js → chunk-5n4mefej.js} +2 -2
- package/dist/{chunk-nxk65z2e.js → chunk-5nj2fjej.js} +2 -2
- package/dist/chunk-5tqygmg9.js +2 -0
- package/dist/{chunk-ykp85wc1.js → chunk-6p41wmgs.js} +2 -2
- package/dist/chunk-7dd374an.js +2 -0
- package/dist/chunk-7s7txz2j.js +2 -0
- package/dist/chunk-8hbwf0qe.js +2 -0
- package/dist/chunk-8yj3q7n2.js +2 -0
- package/dist/{chunk-qz8gpb9j.js → chunk-9ebnn34t.js} +2 -2
- package/dist/{chunk-mzh48e09.js → chunk-9ej4c7a8.js} +2 -2
- package/dist/{chunk-6t3tgzps.js → chunk-9eqezb4k.js} +2 -2
- package/dist/chunk-9xfv8jdn.js +2 -0
- package/dist/{chunk-2g8targj.js → chunk-9xkp5x7h.js} +2 -2
- package/dist/chunk-a3s36z4s.js +3 -0
- package/dist/chunk-a414w7ah.js +3 -0
- package/dist/{chunk-2qhbm5y9.js → chunk-a4wrn6ep.js} +2 -2
- package/dist/chunk-a9s3m9fs.js +2 -0
- package/dist/chunk-am6tss41.js +2 -0
- package/dist/chunk-b53ky6rb.js +2 -0
- package/dist/chunk-b65w6x23.js +2 -0
- package/dist/chunk-c2h76vnt.js +2 -0
- package/dist/{chunk-wrkwz65x.js → chunk-cdrmg9jj.js} +2 -2
- package/dist/chunk-cv2j9sjp.js +2 -0
- package/dist/chunk-d1trg76g.js +2 -0
- package/dist/chunk-d6c0mnth.js +2 -0
- package/dist/chunk-dgm4gxkj.js +2 -0
- package/dist/{chunk-2pj3pcc7.js → chunk-dj4e0q7k.js} +2 -2
- package/dist/{chunk-d7gjvz8z.js → chunk-e44hny11.js} +2 -2
- package/dist/chunk-e6ddpdxn.js +2 -0
- package/dist/chunk-e92r4g3v.js +2 -0
- package/dist/chunk-e9znmqdj.js +2 -0
- package/dist/{chunk-n56csv51.js → chunk-eeq8d3x7.js} +2 -2
- package/dist/chunk-ekd97p2x.js +2 -0
- package/dist/chunk-eyf9bxyx.js +2 -0
- package/dist/chunk-eyfdn4p3.js +2 -0
- package/dist/{chunk-4z4tec0p.js → chunk-f8wzz84b.js} +2 -2
- package/dist/chunk-fcqwzmkd.js +2 -0
- package/dist/{chunk-w390ewja.js → chunk-fcy4sv9f.js} +2 -2
- package/dist/{chunk-as1cvbzm.js → chunk-fgzq0ktw.js} +2 -2
- package/dist/chunk-fkwafga0.js +2 -0
- package/dist/chunk-gap8n0vv.js +5 -0
- package/dist/{chunk-dnsmr5nf.js → chunk-gcx4fk1a.js} +2 -2
- package/dist/{chunk-kv0tnq8g.js → chunk-gr1nnczz.js} +2 -2
- package/dist/{chunk-djmnmbm2.js → chunk-h3antqdd.js} +2 -2
- package/dist/{chunk-c2bkhrcc.js → chunk-hwh88n0v.js} +4 -4
- package/dist/chunk-j5rd55qs.js +3 -0
- package/dist/chunk-j9q2s4kq.js +2 -0
- package/dist/{chunk-5x4an3fb.js → chunk-jc52024g.js} +2 -2
- package/dist/{chunk-s0ef3h7b.js → chunk-jnena0v6.js} +2 -2
- package/dist/{chunk-m9en74e3.js → chunk-jt8h82c2.js} +2 -2
- package/dist/chunk-jx1cngyb.js +2 -0
- package/dist/chunk-k9mbpf0g.js +2 -0
- package/dist/chunk-kjswq0tx.js +2 -0
- package/dist/chunk-kkps1qd4.js +4 -0
- package/dist/{chunk-0mze2qnw.js → chunk-kvx8fv1e.js} +2 -2
- package/dist/{chunk-hfaarm10.js → chunk-m2hpfdch.js} +2 -2
- package/dist/chunk-mpnv2rht.js +2 -0
- package/dist/chunk-mtydzse4.js +2 -0
- package/dist/chunk-mw9k08ky.js +3 -0
- package/dist/{chunk-m4dgha79.js → chunk-nkqe2e8s.js} +2 -2
- package/dist/chunk-px6nrr87.js +2 -0
- package/dist/chunk-pzmd5d3m.js +2 -0
- package/dist/{chunk-rf9yxbes.js → chunk-q4q4f03j.js} +2 -2
- package/dist/chunk-q5az5kp2.js +4 -0
- package/dist/chunk-qmc18ejg.js +2 -0
- package/dist/chunk-qqm07rfv.js +2 -0
- package/dist/chunk-qv7kkv47.js +2 -0
- package/dist/{chunk-d5w1nvrz.js → chunk-qy2prx7m.js} +2 -2
- package/dist/chunk-rq04p6pn.js +3 -0
- package/dist/chunk-rsfwc38x.js +4 -0
- package/dist/chunk-rx9sdjtn.js +2 -0
- package/dist/chunk-s0b5g8nc.js +2 -0
- package/dist/{chunk-yy4tw3nj.js → chunk-sf1z4r7v.js} +2 -2
- package/dist/chunk-syp06z39.js +2 -0
- package/dist/chunk-t6cfjn19.js +2 -0
- package/dist/{chunk-fexvhys2.js → chunk-tzyc5myt.js} +2 -2
- package/dist/chunk-vsff9djs.js +2 -0
- package/dist/chunk-vvq50011.js +2 -0
- package/dist/chunk-wkvm8f2e.js +2 -0
- package/dist/chunk-ww223tm5.js +2 -0
- package/dist/chunk-x0tbzjqc.js +2 -0
- package/dist/chunk-x480gyp7.js +2 -0
- package/dist/chunk-yjhypkmc.js +2 -0
- package/dist/{chunk-fydcbjsx.js → chunk-yjtq166b.js} +3 -3
- package/dist/{chunk-1wpdb17m.js → chunk-z5tstgsh.js} +2 -2
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/disclosure-state.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/styles.css +2 -1
- package/dist/codex/timeline-virtualizer.js +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.d.ts +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.d.ts +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.d.ts +1 -1
- package/dist/composer/prompt-input.js +1 -1
- package/dist/conversation/action-card.js +1 -1
- package/dist/conversation/composer/composer.js +1 -1
- package/dist/conversation/composer/config-options.js +1 -1
- 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.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/conversation/subagent-sessions.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-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.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/locales.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.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/package.json +7 -5
- package/dist/chunk-01denvg2.js +0 -5
- package/dist/chunk-074x98ak.js +0 -2
- package/dist/chunk-0c8fy456.js +0 -4
- package/dist/chunk-0dnwqm94.js +0 -2
- package/dist/chunk-0nkvfecf.js +0 -1
- package/dist/chunk-0ss92kxr.js +0 -2
- package/dist/chunk-12fcr66z.js +0 -2
- package/dist/chunk-14r2ktqe.js +0 -3
- package/dist/chunk-180zvfd6.js +0 -2
- package/dist/chunk-1fm5vx1n.js +0 -1
- package/dist/chunk-2a3tezgr.js +0 -1
- package/dist/chunk-2r3sfmyf.js +0 -2
- package/dist/chunk-2rperg04.js +0 -1
- package/dist/chunk-2swp3nfs.js +0 -2
- package/dist/chunk-3919sqde.js +0 -2
- package/dist/chunk-39sbgvd3.js +0 -2
- package/dist/chunk-3dckftt6.js +0 -2
- package/dist/chunk-3k5n3809.js +0 -2
- package/dist/chunk-3z6rx5qv.js +0 -4
- package/dist/chunk-4s1rhts0.js +0 -1
- package/dist/chunk-4zzhckab.js +0 -2
- package/dist/chunk-58wt406v.js +0 -1
- package/dist/chunk-59g9h4v1.js +0 -2
- package/dist/chunk-59j0p8hy.js +0 -2
- package/dist/chunk-6s7z09b0.js +0 -2
- package/dist/chunk-6wqbetcx.js +0 -1
- package/dist/chunk-75zcgcqm.js +0 -2
- package/dist/chunk-7ap638hx.js +0 -2
- package/dist/chunk-7g79m27w.js +0 -2
- package/dist/chunk-7jdjdnh6.js +0 -2
- package/dist/chunk-7wyrcphh.js +0 -1
- package/dist/chunk-83sz9mv9.js +0 -3
- package/dist/chunk-88cfz41t.js +0 -2
- package/dist/chunk-8bfnjqkg.js +0 -2
- package/dist/chunk-8g09jrj1.js +0 -2
- package/dist/chunk-8v1bjdgv.js +0 -2
- package/dist/chunk-90wm9rxz.js +0 -2
- package/dist/chunk-91h14q3y.js +0 -2
- package/dist/chunk-96x0d2vd.js +0 -1
- package/dist/chunk-9gv1zffv.js +0 -1
- package/dist/chunk-9j609g4n.js +0 -1
- package/dist/chunk-afd3bq7v.js +0 -2
- package/dist/chunk-bew4srqj.js +0 -2
- package/dist/chunk-bj5ma2sv.js +0 -2
- package/dist/chunk-bv4adcrd.js +0 -2
- package/dist/chunk-c1vavp0q.js +0 -2
- package/dist/chunk-c26vy827.js +0 -2
- package/dist/chunk-cazdmcwd.js +0 -2
- package/dist/chunk-cc0tan75.js +0 -2
- package/dist/chunk-d5ga13n0.js +0 -1
- package/dist/chunk-d94rmh12.js +0 -2
- package/dist/chunk-da4m33bg.js +0 -2
- package/dist/chunk-da6d6wze.js +0 -1
- package/dist/chunk-e99sdapw.js +0 -2
- package/dist/chunk-ea3582qy.js +0 -1
- package/dist/chunk-ebmbz9tg.js +0 -2
- package/dist/chunk-frbeen15.js +0 -2
- package/dist/chunk-ftcydsbs.js +0 -2
- package/dist/chunk-gdpa9dp5.js +0 -1
- package/dist/chunk-gz7adphb.js +0 -2
- package/dist/chunk-gzeg6bqp.js +0 -2
- package/dist/chunk-h68f23r0.js +0 -1
- package/dist/chunk-h99fy0g3.js +0 -4
- package/dist/chunk-jdjk6tf4.js +0 -1
- package/dist/chunk-jjnmq2zj.js +0 -3
- package/dist/chunk-jp73gpbp.js +0 -2
- package/dist/chunk-khj3ye94.js +0 -7
- package/dist/chunk-kjtd3wc3.js +0 -1
- package/dist/chunk-kmhwwzga.js +0 -2
- package/dist/chunk-kzq1797a.js +0 -3
- package/dist/chunk-mr1azhef.js +0 -1
- package/dist/chunk-n0xzhjdg.js +0 -2
- package/dist/chunk-n1tjf64a.js +0 -2
- package/dist/chunk-n5xqjct2.js +0 -1
- package/dist/chunk-nqv69z6n.js +0 -2
- package/dist/chunk-pv35kspb.js +0 -1
- package/dist/chunk-pw6p654f.js +0 -3
- package/dist/chunk-q6km9nha.js +0 -2
- package/dist/chunk-qca5mhqd.js +0 -2
- package/dist/chunk-qxabrz98.js +0 -2
- package/dist/chunk-r1988zpy.js +0 -2
- package/dist/chunk-sespfp7t.js +0 -4
- package/dist/chunk-sf6ze845.js +0 -2
- package/dist/chunk-sxgc25gz.js +0 -2
- package/dist/chunk-tq6ekz3s.js +0 -2
- package/dist/chunk-txn8v2yc.js +0 -2
- package/dist/chunk-vp8fb7r8.js +0 -2
- package/dist/chunk-w1awbykg.js +0 -2
- package/dist/chunk-wpdn3rx8.js +0 -1
- package/dist/chunk-x1xh8y2s.js +0 -2
- package/dist/chunk-x8kxqtva.js +0 -2
- package/dist/chunk-xfx689xm.js +0 -3
- package/dist/chunk-y6afvrnv.js +0 -2
- package/dist/chunk-zb4mqy8f.js +0 -2
- package/dist/ui/alert.d.ts +0 -10
- package/dist/ui/alert.js +0 -1
- package/dist/ui/badge.d.ts +0 -7
- package/dist/ui/badge.js +0 -1
- package/dist/ui/button.d.ts +0 -8
- package/dist/ui/button.js +0 -1
- package/dist/ui/card.d.ts +0 -11
- package/dist/ui/card.js +0 -1
- package/dist/ui/checkbox.d.ts +0 -3
- package/dist/ui/checkbox.js +0 -1
- package/dist/ui/dialog.d.ts +0 -17
- package/dist/ui/dialog.js +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -29
- package/dist/ui/dropdown-menu.js +0 -1
- package/dist/ui/empty.d.ts +0 -11
- package/dist/ui/empty.js +0 -1
- package/dist/ui/field.d.ts +0 -24
- package/dist/ui/field.js +0 -1
- package/dist/ui/hover-card.d.ts +0 -5
- package/dist/ui/hover-card.js +0 -1
- package/dist/ui/input-group.d.ts +0 -18
- package/dist/ui/input-group.js +0 -1
- package/dist/ui/input.d.ts +0 -3
- package/dist/ui/input.js +0 -1
- package/dist/ui/kbd.d.ts +0 -3
- package/dist/ui/kbd.js +0 -1
- package/dist/ui/label.d.ts +0 -3
- package/dist/ui/label.js +0 -1
- package/dist/ui/radio-group.d.ts +0 -5
- package/dist/ui/radio-group.js +0 -1
- package/dist/ui/select.d.ts +0 -15
- package/dist/ui/select.js +0 -1
- package/dist/ui/separator.d.ts +0 -3
- package/dist/ui/separator.js +0 -1
- package/dist/ui/skeleton.d.ts +0 -2
- package/dist/ui/skeleton.js +0 -1
- package/dist/ui/spinner.d.ts +0 -2
- package/dist/ui/spinner.js +0 -1
- package/dist/ui/switch.d.ts +0 -5
- package/dist/ui/switch.js +0 -1
- package/dist/ui/textarea.d.ts +0 -3
- package/dist/ui/textarea.js +0 -1
- package/dist/ui/tooltip.d.ts +0 -6
- package/dist/ui/tooltip.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tt}from"../chunk-9xfv8jdn.js";import"../chunk-04mj5ftg.js";import"../chunk-px6nrr87.js";import"../chunk-5n4mefej.js";import"../chunk-gr1nnczz.js";import"../chunk-yjtq166b.js";import"../chunk-eeq8d3x7.js";import"../chunk-jnena0v6.js";import"../chunk-8hbwf0qe.js";import"../chunk-qmc18ejg.js";import"../chunk-4xmbve71.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{tt as ActivityGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{rt,hn}from"../chunk-eeq8d3x7.js";export{rt as isUserShell,hn as projectActivity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{L}from"../chunk-qv7kkv47.js";import"../chunk-qmc18ejg.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{L as AssistantContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{an}from"../chunk-mw9k08ky.js";import"../chunk-3jjc06nd.js";import"../chunk-gap8n0vv.js";import"../chunk-j5rd55qs.js";import"../chunk-9xfv8jdn.js";import"../chunk-04mj5ftg.js";import"../chunk-px6nrr87.js";import"../chunk-5n4mefej.js";import"../chunk-gr1nnczz.js";import"../chunk-5e10bzg2.js";import"../chunk-yjtq166b.js";import"../chunk-nkqe2e8s.js";import"../chunk-eeq8d3x7.js";import"../chunk-3jcx1ns0.js";import"../chunk-jnena0v6.js";import"../chunk-9ebnn34t.js";import"../chunk-f8wzz84b.js";import"../chunk-kvx8fv1e.js";import"../chunk-2hk04fh3.js";import"../chunk-8hbwf0qe.js";import"../chunk-cv2j9sjp.js";import"../chunk-eyfdn4p3.js";import"../chunk-qv7kkv47.js";import"../chunk-qmc18ejg.js";import"../chunk-4xmbve71.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{an as AssistantTurn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mt}from"../chunk-eyfdn4p3.js";import"../chunk-qv7kkv47.js";import"../chunk-qmc18ejg.js";import"../chunk-4xmbve71.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{mt as AsyncQuestions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{yo,bo,wo,sn}from"../chunk-gap8n0vv.js";import"../chunk-j5rd55qs.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{sn as EditedFilesCard,wo as fileChanges,yo as filePatch,bo as patchStatsByFile};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$n}from"../chunk-fgzq0ktw.js";export{$n as historyTimeline};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{D,e,_,W,t,ae}from"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{D as TimelineProvider,ae as reportError,t as useClientState,W as useStoreState,_ as useTimelineClient,e as useTimelineHost};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{To,In,Sn}from"../chunk-22h5rh2h.js";import"../chunk-hwh88n0v.js";import"../chunk-tzyc5myt.js";import"../chunk-jc52024g.js";import"../chunk-0zp04d1m.js";import"../chunk-gcx4fk1a.js";import"../chunk-q4q4f03j.js";import"../chunk-m2hpfdch.js";import"../chunk-8hbwf0qe.js";import"../chunk-4xmbve71.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{Sn as TimelineNavigationRail,To as navigationAudio,In as toNavigationRailItems};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{vn}from"../chunk-3jcx1ns0.js";import"../chunk-jnena0v6.js";import"../chunk-fcqwzmkd.js";export{vn as TurnPlan};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{kn,Tn}from"../chunk-z5tstgsh.js";export{kn as questionReply,Tn as questionReplyParts};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{co,k}from"../chunk-qmc18ejg.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{k as ResourceContent,co as chatFileName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ne}from"../chunk-qqm07rfv.js";import"../chunk-t6cfjn19.js";import"../chunk-pzmd5d3m.js";import"../chunk-mw9k08ky.js";import"../chunk-3jjc06nd.js";import"../chunk-gap8n0vv.js";import"../chunk-j5rd55qs.js";import"../chunk-9xfv8jdn.js";import"../chunk-04mj5ftg.js";import"../chunk-px6nrr87.js";import"../chunk-5n4mefej.js";import"../chunk-gr1nnczz.js";import"../chunk-5e10bzg2.js";import"../chunk-yjtq166b.js";import"../chunk-nkqe2e8s.js";import"../chunk-a4wrn6ep.js";import"../chunk-sf1z4r7v.js";import"../chunk-eeq8d3x7.js";import"../chunk-3jcx1ns0.js";import"../chunk-jnena0v6.js";import"../chunk-9ebnn34t.js";import"../chunk-f8wzz84b.js";import"../chunk-q5az5kp2.js";import"../chunk-kvx8fv1e.js";import"../chunk-2hk04fh3.js";import"../chunk-z5tstgsh.js";import{To}from"../chunk-22h5rh2h.js";import"../chunk-hwh88n0v.js";import"../chunk-tzyc5myt.js";import"../chunk-jc52024g.js";import"../chunk-0zp04d1m.js";import"../chunk-gcx4fk1a.js";import"../chunk-q4q4f03j.js";import"../chunk-m2hpfdch.js";import"../chunk-8hbwf0qe.js";import"../chunk-fgzq0ktw.js";import"../chunk-cdrmg9jj.js";import"../chunk-cv2j9sjp.js";import"../chunk-eyfdn4p3.js";import"../chunk-qv7kkv47.js";import"../chunk-qmc18ejg.js";import"../chunk-4xmbve71.js";import{D}from"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{ne as SessionTimeline,D as TimelineProvider,To as navigationAudio};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ot,gn,fn,qo}from"../chunk-sf1z4r7v.js";export{fn as clearTimeline,gn as publishTimeline,qo as revealTimelineTurn,ot as timelineRegistry};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{xn}from"../chunk-9ebnn34t.js";import"../chunk-f8wzz84b.js";export{xn as projectTurnActivity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{dt,ut}from"../chunk-cv2j9sjp.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{dt as ErrorCard,ut as TurnErrorView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{pn}from"../chunk-a4wrn6ep.js";export{pn as capacityRetryDelay};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{re}from"../chunk-nkqe2e8s.js";export{re as formatTurnTime};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Mo,Hn,Fn,lt,P,ie,ct,On,Bn,Un,zn}from"../chunk-8hbwf0qe.js";import"../chunk-4xmbve71.js";export{Un as activeTurnKey,Bn as continuesTurn,Fn as groupTurns,ie as isHistoryInterrupted,lt as isHistoryItem,Mo as isMcpStartup,Hn as isSessionStatus,ct as isTurnInterrupted,P as messageText,zn as turnPresentation,On as turnTiming};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{qn}from"../chunk-cdrmg9jj.js";export{qn as useTimelineScroll};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bn}from"../chunk-q5az5kp2.js";import"../chunk-kvx8fv1e.js";import"../chunk-2hk04fh3.js";import"../chunk-z5tstgsh.js";import"../chunk-8hbwf0qe.js";import"../chunk-qmc18ejg.js";import"../chunk-4xmbve71.js";import"../chunk-7dd374an.js";import"../chunk-fcqwzmkd.js";export{bn as UserMessage};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwith/module-chat",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -359,20 +359,22 @@
|
|
|
359
359
|
"dependencies": {
|
|
360
360
|
"@base-ui/react": "^1.9.0",
|
|
361
361
|
"@floating-ui/dom": "^1.8.0",
|
|
362
|
+
"@nyssance/codex-acp-v2": "^0.7.49",
|
|
363
|
+
"@nyssance/shadcn": "^4.23.2",
|
|
364
|
+
"@shadcn/react": "^0.3.1",
|
|
362
365
|
"ansi_up": "^6.0.6",
|
|
363
366
|
"class-variance-authority": "^0.7.1",
|
|
364
|
-
"cn": "^0.5.
|
|
367
|
+
"cn": "^0.5.1",
|
|
365
368
|
"date-fns": "^4.4.0",
|
|
366
369
|
"diff2html": "^3.4.56",
|
|
367
370
|
"entities": "^9.0.0",
|
|
368
371
|
"highlight.js": "^11.12.0",
|
|
369
372
|
"katex": "^0.19.1",
|
|
370
373
|
"ldrs": "^1.1.9",
|
|
371
|
-
"lucide-react": "^1.
|
|
374
|
+
"lucide-react": "^1.66.0",
|
|
372
375
|
"marked": "^18.1.2",
|
|
373
376
|
"marked-linkify-it": "^4.0.2",
|
|
374
|
-
"smplr": "^1.1.0"
|
|
375
|
-
"@nyssance/codex-acp-v2": "^0.7.49"
|
|
377
|
+
"smplr": "^1.1.0"
|
|
376
378
|
},
|
|
377
379
|
"license": "SEE LICENSE IN LICENSE",
|
|
378
380
|
"publishConfig": {
|
package/dist/chunk-01denvg2.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{en}from"./chunk-kzq1797a.js";import{t}from"./chunk-q6km9nha.js";import{isDiffEntry as p}from"@nyssance/codex-acp-v2/client";import{jsx as c,jsxs as g,Fragment as h}from"react/jsx-runtime";function zr(o,s){let e=o.split(/^(?=diff --git )/m).filter((i)=>i.length>0);if(e.length<=1)return o;return e.find((i)=>{let a=i.split(`
|
|
2
|
-
`,1)[0]??"";return a.endsWith(` b/${s}`)||a.endsWith(` ${s}`)||a.includes(`/${s} `)})??o}function Ur(o){let s=new Map,e=null;for(let n of o.split(`
|
|
3
|
-
`)){if(n.startsWith("diff --git ")){e=null;continue}if(n.startsWith("+++ ")){let i=n.slice(4).trim(),a=i==="/dev/null"?null:i.replace(/^b\//,"");if(a!==null)e={additions:0,deletions:0},s.set(a,e);continue}if(n.startsWith("--- ")){let i=n.slice(4).trim();if(i!=="/dev/null"&&e===null)e={additions:0,deletions:0},s.set(i.replace(/^a\//,""),e);continue}if(e===null)continue;if(n.startsWith("+"))e.additions+=1;else if(n.startsWith("-"))e.deletions+=1}return s}function u(o,s){let e=s.replaceAll("\\","/");for(let[n,i]of o)if(e===n||e.endsWith(`/${n}`))return i;return{additions:0,deletions:0}}function $r(o){let s=new Map;for(let e of o)for(let n of e.content){if(!p(n))continue;let i=n.patch?Ur(n.patch.text):new Map;for(let a of n.changes){let r=typeof a.path==="string"?a.path:null;if(r===null)continue;let d=u(i,r),f=n.patch?zr(n.patch.text,r):"",l=s.get(r);if(l)l.additions+=d.additions,l.deletions+=d.deletions,l.patch=l.patch?`${l.patch}
|
|
4
|
-
${f}`:f;else s.set(r,{path:r,patch:f,...d})}}return[...s.values()]}function zo({items:o}){let s=t(),{openDiff:e,FileIcon:n}=s;return c(en,{files:$r(o),actions:s.EditedFilesActions?c(s.EditedFilesActions,{items:o}):void 0,onOpen:e===void 0?void 0:(i)=>e({path:i.path,patch:i.patch}),renderPath:n===void 0?void 0:(i)=>g(h,{children:[c(n,{path:i.path,className:"codex-edited-file-icon"}),c("span",{className:"codex-edited-file-name",children:i.path})]})})}
|
|
5
|
-
export{zr,Ur,$r,zo};
|
package/dist/chunk-074x98ak.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{Nn}from"./chunk-gz7adphb.js";import{Pe,Ne,Me}from"./chunk-6wqbetcx.js";import{y}from"./chunk-cazdmcwd.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(Me,{align:"start",...n})}function In({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(Pe,{children:[t(Ne,{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(Nn,{containerRef:C,filename:s||r("input.image"),onOpenChange:h,onScaleChange:v,open:d,scale:I,url:n.url})]})}function Pn({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{In,Pn};
|
package/dist/chunk-0c8fy456.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Ko}from"./chunk-0mze2qnw.js";import{t}from"./chunk-q6km9nha.js";import{To,So}from"./chunk-1wpdb17m.js";import{B}from"./chunk-y6afvrnv.js";import{Q}from"./chunk-e99sdapw.js";import{isEmbeddedResource as g,isImage as d,isResourceLink as f,isText as x}from"@nyssance/codex-acp-v2/client";import{memo as p}from"react";import{jsx as r,jsxs as h}from"react/jsx-runtime";var Co=p(function({item:s,messageTime:c}){let l=t(),o=So(s._meta),m=o?o.map((e)=>e.question===void 0?e.text:`${e.question}
|
|
2
|
-
${e.text}`).join(`
|
|
3
|
-
`):Q(s),a=s.content.filter(d),i=s.content.filter((e)=>f(e)||g(e)),u=o??s.content.filter(x).map((e)=>{let n=To(e._meta);return n?{question:n.question,text:n.answer}:{text:e.text}});if(m.length===0&&a.length===0&&i.length===0)return null;return h("div",{className:"group/codex-user flex min-w-0 flex-col items-end gap-2","data-content-search-unit-key":s.id,children:[i.length>0&&r("div",{className:"codex-user-mentions",children:i.map((e,n)=>r(B,{block:e},`${s.id}:${n}`))}),r(Ko,{host:l,message:s,text:m,textParts:u.some((e)=>("question"in e))?u:void 0,images:a,mentions:[],messageTime:c})]})});
|
|
4
|
-
export{Co};
|
package/dist/chunk-0dnwqm94.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-q6km9nha.js";import{o}from"./chunk-0ss92kxr.js";import{codexExtensionCapabilities as T,codexTurnId as w,composerPrediction as j,isBooleanOption as B,isSelectOption as F}from"@nyssance/codex-acp-v2/client";import{useEffect as b,useRef as C,useState as P}from"react";function mt(t,g,c,y){let{client:S}=o(),R=n((e)=>T(e.agent).composerPredictions),k=t.items.findLast((e)=>e.kind==="user"),i=w(k?._meta),O=t.configOptions.flatMap((e)=>F(e)||B(e)?[[e.configId,e.currentValue]]:[]).sort(([e],[u])=>String(e).localeCompare(String(u))),r=JSON.stringify([t.id,i,O]),s=j(t._meta),d=t._meta?.codex,m=typeof d==="object"&&d!==null&&"prediction"in d?d.prediction:null,l=C(null),f=C(!1);b(()=>(f.current=!0,()=>{f.current=!1}),[]);let[a,_]=P(null),[v,x]=P(null),p=y&&R&&g&&t.state==="idle"&&t.lastStopReason==="end_turn"&&!k?.replayed&&i!==null;b(()=>{if(!p||c||a===r||l.current?.key===r||i===null)return;let e={key:r,previousResult:m};l.current=e,x(null),S.requestPrediction(t.id,i).catch((u)=>{if(f.current&&l.current===e)x({key:r,message:u instanceof Error?u.message:String(u)})})},[S,p,c,a,r,m,t.id,i]);let I=p&&!c&&a!==r&&l.current?.key===r&&l.current.previousResult!==m&&s?.sourceTurnId===i,q=I&&s.result.type==="completed"?s.result.text:null,E=y&&g&&t.state==="idle"&&!c&&a!==r?v?.key===r?v.message:I&&s.result.type==="failed"?"Prediction failed":null:null;return{text:q,error:E,invalidate:()=>{if(p)_(r)}}}
|
|
2
|
-
export{mt};
|
package/dist/chunk-0nkvfecf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Radio as e}from"@base-ui/react/radio";import{RadioGroup as t}from"@base-ui/react/radio-group";import{cn as o}from"cn";import{jsx as r}from"react/jsx-runtime";function Y({className:i,...a}){return r(t,{"data-slot":"radio-group",className:o("grid w-full gap-3",i),...a})}function A({className:i,...a}){return r(e.Root,{"data-slot":"radio-group-item",className:o("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary",i),...a,children:r(e.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:r("span",{className:"absolute top-1/2 start-1/2 size-2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})})})}export{Y,A};
|
package/dist/chunk-0ss92kxr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{re}from"./chunk-q6km9nha.js";import{createContext as v,useContext as a,useMemo as l}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function yt({host:n,client:e,children:t}){let s=l(()=>({host:n,client:e}),[n,e]);return r(re,{host:n,client:e,children:r(i,{value:s,children:t})})}function o(){let n=a(i);if(n===null)throw Error("Conversation host is missing");return n}function C(n,e){e.catch((t)=>{if(n.reportError)n.reportError(t);else console.error(t)})}
|
|
2
|
-
export{yt,o,C};
|
package/dist/chunk-12fcr66z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l,r}from"./chunk-da4m33bg.js";import{latestAssistantReply as v}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useState as g}from"react";function pr(e,o){let s=l(),a=r((t)=>t.connection),i=r((t)=>Boolean(t.sessions[e]?.attached)&&!t.sessions[e]?.restoring),c=r((t)=>v(t.sessions[e]?.items)),u=r((t)=>Boolean(t.runStates[e]?.reusableDraft)),[p,y]=g();return S(()=>{if(a!=="ready"||u||i)return;let t=!1,f,n=0,m=async()=>{try{let d=await s.activityReply(e);if(n=0,!t)y(d??void 0)}catch{n++}finally{if(!t&&(o==="running"||n>0&&n<3))f=setTimeout(()=>void m(),5000)}};return m(),()=>{t=!0,clearTimeout(f)}},[s,e,a,u,i,o]),i?c:p??c}
|
|
2
|
-
export{pr};
|
package/dist/chunk-14r2ktqe.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{V,W}from"./chunk-jdjk6tf4.js";import{e}from"./chunk-wpdn3rx8.js";import{u,m,b,K,p,w}from"./chunk-n5xqjct2.js";import{s}from"./chunk-96x0d2vd.js";import{Mt,Rt,Et,hn,Z}from"./chunk-gdpa9dp5.js";import{le}from"./chunk-pv35kspb.js";import{g,l,r}from"./chunk-da4m33bg.js";import{se,z,D}from"./chunk-x8kxqtva.js";import{sessionGroup as F}from"@nyssance/codex-acp-v2/client";import{cn as fe}from"cn";import{ArchiveIcon as ve,FolderIcon as Y,ListFilterIcon as ge,SearchIcon as xe,Trash2Icon as ee}from"lucide-react";import{useEffect as Se,useRef as ye,useState as h}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";function te({className:f,...n}){return i(hn,{align:"start",alignItemWithTrigger:!1,sideOffset:6,...n,className:fe("max-w-(--available-width) min-w-0 p-1",f)})}function H(f){return f instanceof Error?f.message:String(f)}function Le({children:f}){return i("div",{className:"min-h-0 flex-1 overflow-y-auto",children:i("div",{className:"flex flex-col gap-8",children:f})})}function dr({Scroll:f=Le}){let{t:n,i18n:B}=g(),v=l(),N=r((t)=>t.archivedSessions),A=r((t)=>t.connection),[O,ie]=h(""),[C,ne]=h("all"),[x,ae]=h("all"),[re,oe]=h(0),[G,Q]=h(!0),[q,U]=h(null),[_,R]=h(null),[I,j]=h(!1),S=ye(!1),[P,y]=h(null),[J,T]=h(null),[ce,M]=h(!1);Se(()=>{if(A!=="ready")return;let t=!1;Q(!0),U(null);async function d(){try{await v.listArchived({reset:!0});let o=new Set;while(!t&&v.state.archivedCursor!==null){let L=v.state.archivedCursor;if(o.has(L))throw Error("Archive pagination returned a repeated cursor");o.add(L),await v.listArchived()}}catch(o){if(!t)U(H(o))}finally{if(!t)Q(!1)}}return d(),()=>{t=!0}},[v,A,re]);let c=r((t)=>t.projectContext),E=!(c!==null&&A==="ready"&&!G&&q===null)||I,k=(t)=>t.title??n("sessionList.untitled"),de=[...new Set(N.filter((t)=>c&&F(c,t).id!==D).map((t)=>c?F(c,t).id:t.cwd))].toSorted(),ue=O.trim().toLocaleLowerCase(B.language),X=N.filter((t)=>{let d=c?F(c,t).id:null,o=d===D;return k(t).toLocaleLowerCase(B.language).includes(ue)&&(C==="all"||(C==="quick"?o:!o))&&(x==="all"||(x==="quick"?o:d===x))}),me=new Intl.DateTimeFormat(B.language,{dateStyle:"medium",timeStyle:"short"});async function pe(t){if(S.current)return;S.current=!0,j(!0),R(null);try{await v.unarchive(t.sessionId)}catch(d){R(H(d))}finally{S.current=!1,j(!1)}}async function he(){if(S.current||!P)return;S.current=!0,j(!0),T(null);let t=[],d=[];try{for(let o of P){if(!v.state.archivedSessions.some((L)=>L.sessionId===o.sessionId))continue;try{await v.delete(o.sessionId)}catch(L){t.push(o),d.push(`${k(o)}: ${H(L)}`)}}if(t.length)y(t),T(d.join(`
|
|
2
|
-
`));else y(null)}finally{S.current=!1,j(!1)}}return a("section",{className:"flex min-h-0 flex-1 flex-col overflow-hidden","aria-label":n("sessionList.archives.title"),children:[a("div",{className:"mx-auto flex min-h-0 w-full max-w-5xl flex-1 flex-col gap-8 px-6 pt-8 pb-10 lg:pb-14",children:[a("header",{className:"flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3",children:[i("h1",{className:"text-2xl leading-9 font-semibold tracking-tight",children:n("sessionList.archives.title")}),a(e,{size:"sm",variant:"destructive",className:"h-[30px] text-sm font-normal",disabled:E||N.length===0,onClick:()=>{T(null),M(!0),y([...N])},children:[i(ee,{className:"size-4","aria-hidden":"true"}),n("sessionList.archives.deleteAll")]})]}),a("div",{className:"flex shrink-0 flex-wrap gap-3",children:[a("div",{className:"relative min-w-48 flex-1",children:[i(xe,{"aria-hidden":"true",className:"text-muted-foreground pointer-events-none absolute start-3 top-2.5 size-4"}),i(s,{"aria-label":n("sessionList.archives.search"),placeholder:n("sessionList.archives.search"),value:O,onChange:(t)=>ie(t.target.value),className:"rounded-md ps-9"})]}),a(Mt,{value:C,onValueChange:(t)=>{if(t===null)throw Error("Archive chat type cannot be empty");ne(t)},children:[a(Et,{"aria-label":n("sessionList.archives.chatType"),className:"w-40 rounded-md",children:[i(ge,{"aria-hidden":"true"}),i(Rt,{children:n(`sessionList.archives.${C==="all"?"allChats":C==="quick"?"quickChats":"projectChats"}`)})]}),a(te,{children:[i(Z,{value:"all",children:n("sessionList.archives.allChats")}),i(Z,{value:"quick",children:n("sessionList.archives.quickChats")}),i(Z,{value:"project",children:n("sessionList.archives.projectChats")})]})]}),a(Mt,{value:x,onValueChange:(t)=>{if(t===null)throw Error("Archive project filter cannot be empty");ae(t)},children:[a(Et,{"aria-label":n("sessionList.archives.project"),className:"w-48 rounded-md",children:[i(Y,{"aria-hidden":"true"}),i(Rt,{className:"truncate",children:x==="all"?n("sessionList.archives.allProjects"):x==="quick"?n("sessionList.archives.noProject"):z(x,c??void 0)})]}),a(te,{children:[i(Z,{value:"all",children:n("sessionList.archives.allProjects")}),i(Z,{value:"quick",children:n("sessionList.archives.noProject")}),de.map((t)=>i(Z,{value:t,title:t,children:z(t,c??void 0)},t))]})]})]}),a(f,{children:[A!=="ready"?i("p",{role:"status",className:"text-muted-foreground",children:n("sessionList.archives.connecting")}):G?a("div",{role:"status",className:"text-muted-foreground flex items-center gap-2",children:[i(le,{}),n("sessionList.archives.loading")]}):q?i(V,{variant:"destructive",children:a(W,{className:"flex items-center justify-between gap-4",children:[i("span",{children:q}),i(e,{variant:"outline",onClick:()=>oe((t)=>t+1),children:n("sessionList.archives.retry")})]})}):N.length===0?a("div",{className:"text-muted-foreground flex flex-col items-center gap-3 py-16",children:[i(ve,{"aria-hidden":"true",className:"size-8"}),i("p",{children:n("sessionList.archives.empty")})]}):X.length===0?i("p",{className:"text-muted-foreground py-12 text-center",children:n("sessionList.archives.noResults")}):(c?se(X,c):[]).filter(([,t])=>t.length>0).map(([t,d])=>a("section",{className:"flex flex-col gap-3",children:[a("div",{className:"flex items-center justify-between gap-3",children:[a("h2",{className:"flex min-w-0 items-center gap-2 text-sm font-medium",title:t===D?void 0:t,children:[i(Y,{"aria-hidden":"true",className:"size-4 shrink-0"}),i("span",{className:"truncate",children:t===D?n("sessionList.archives.noProject"):z(t,c??void 0)})]}),i("span",{className:"text-muted-foreground shrink-0 text-sm",children:n("sessionList.archives.count",{count:d.length})})]}),i("div",{className:"divide-border divide-y overflow-hidden rounded-lg border",children:d.map((o)=>a("article",{"aria-label":k(o),className:"flex flex-wrap items-center gap-4 px-4 py-3",children:[a("div",{className:"min-w-0 flex-1 basis-40",children:[i("h3",{className:"truncate text-sm font-medium",title:k(o),children:k(o)}),o.updatedAt!==null&&i("time",{dateTime:o.updatedAt,title:n("sessionList.archives.updatedAt"),className:"text-muted-foreground text-xs",children:me.format(new Date(o.updatedAt))})]}),a("div",{className:"flex shrink-0 items-center gap-2",children:[i(e,{variant:"ghost",size:"icon-sm","aria-label":n("sessionList.delete"),title:n("sessionList.delete"),disabled:E,className:"text-muted-foreground hover:text-destructive",onClick:()=>{T(null),M(!1),y([o])},children:i(ee,{"aria-hidden":"true"})}),i(e,{variant:"secondary",size:"sm",disabled:E,onClick:()=>void pe(o),children:n("sessionList.archives.unarchive")})]})]},o.sessionId))})]},t)),_&&i(V,{variant:"destructive",children:i(W,{children:_})})]})]}),i(u,{open:P!==null,onOpenChange:(t)=>{if(!t&&!S.current)y(null)},children:a(m,{showCloseButton:!I,children:[a(b,{children:[i(p,{children:n("sessionList.archives.deleteTitle")}),i(w,{children:n(ce?"sessionList.archives.deleteAllDescription":"sessionList.archives.deleteDescription",{count:P?.length??0})})]}),J&&i(V,{variant:"destructive",children:i(W,{className:"max-h-40 overflow-auto whitespace-pre-wrap",children:J})}),a(K,{children:[i(e,{variant:"outline",disabled:I,onClick:()=>y(null),children:n("sessionList.cancel")}),a(e,{variant:"destructive",className:"text-sm font-normal",disabled:E,onClick:()=>void he(),children:[I&&i(le,{}),n("sessionList.archives.confirmDelete")]})]})]})})]})}
|
|
3
|
-
export{dr};
|
package/dist/chunk-180zvfd6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-q6km9nha.js";import{o}from"./chunk-0ss92kxr.js";import{ge,Oe,ft}from"./chunk-83sz9mv9.js";import{Fe}from"./chunk-sxgc25gz.js";import{inSessionTree as d}from"@nyssance/codex-acp-v2/client";import{jsx as t,jsxs as c,Fragment as p}from"react/jsx-runtime";var u=[];function at({sessionId:e}){let l=n((s)=>s.sessions),{host:f}=o(),a=n((s)=>s.actions),r=a.some((s)=>d(l,e,s.sessionId))?a.filter((s)=>d(l,e,s.sessionId)):u,i=r.filter(ge),m=r.filter((s)=>!ge(s));return c(p,{children:[t("div",{className:"mx-auto max-h-[50vh] w-full max-w-3xl shrink-0 overflow-y-auto px-3","data-subagent-shelf":!0,children:t(Fe,{sessionId:e})}),m.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:m.map((s)=>c("div",{children:[s.sessionId!==e&&t("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:s.sessionId===null?"":l[s.sessionId]?.title??f.t("subagents.untitled")}),t(ft,{action:s})]},s.id))}),i[0]!==void 0&&t(Oe,{action:i[0],total:i.length},i[0].id)]})}
|
|
2
|
-
export{at};
|
package/dist/chunk-1fm5vx1n.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Separator as o}from"@base-ui/react/separator";import{cn as i}from"cn";import{jsx as e}from"react/jsx-runtime";function j({className:a,orientation:r="horizontal",...t}){return e(o,{"data-slot":"separator",orientation:r,className:i("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",a),...t})}export{j};
|
package/dist/chunk-2a3tezgr.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Checkbox as e}from"@base-ui/react/checkbox";import{cn as o}from"cn";import{CheckIcon as t}from"lucide-react";import{jsx as i}from"react/jsx-runtime";function fe({className:r,...a}){return i(e.Root,{"data-slot":"checkbox",className:o("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary",r),...a,children:i(e.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:i(t,{})})})}export{fe};
|
package/dist/chunk-2r3sfmyf.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{cn as i}from"cn";import{jsx as t,jsxs as s}from"react/jsx-runtime";var Se="group/trailing";function ce({children:n,className:e}){return t("span",{className:i("flex w-5 shrink-0 items-center justify-center whitespace-nowrap",e),children:n})}function Ie({content:n,actions:e,className:r}){if(n==null&&e==null)return null;return s("span",{className:i("group/swap relative flex min-h-5 min-w-5 shrink-0 items-center justify-end",r),children:[n!=null&&t("span",{className:i("flex items-center justify-end",e!=null&&"group-focus-within/trailing:hidden group-hover/trailing:hidden group-has-[[data-popup-open]]/swap:hidden"),children:n}),e!=null&&t("span",{className:"absolute inset-y-0 end-0 hidden w-max items-center justify-end gap-0.5 group-focus-within/trailing:flex group-hover/trailing:flex has-[[data-popup-open]]:flex",onClick:(a)=>a.stopPropagation(),onKeyDown:(a)=>a.stopPropagation(),children:e})]})}
|
|
2
|
-
export{Se,ce,Ie};
|
package/dist/chunk-2rperg04.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{s}from"./chunk-96x0d2vd.js";import{k}from"./chunk-da6d6wze.js";import{cva as u}from"class-variance-authority";import{cn as n}from"cn";import{jsx as r}from"react/jsx-runtime";function Xn({className:a,...t}){return r("div",{"data-slot":"input-group",role:"group",className:n("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input 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]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 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-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 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 dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5",a),...t})}var d=u("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground 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 ps-2 has-[>button]:-ms-1 has-[>kbd]:ms-[-0.15rem]","inline-end":"order-last pe-2 has-[>button]:-me-1 has-[>kbd]:me-[-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 Ut({className:a,align:t="inline-start",...i}){return r("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:n(d({align:t}),a),onClick:(o)=>{if(o.target.closest("button"))return;o.currentTarget.parentElement?.querySelector("input")?.focus()},...i})}var l=u("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 $t({className:a,type:t="button",variant:i="ghost",size:o="xs",...p}){return r(e,{type:t,"data-size":o,variant:i,className:n(l({size:o}),a),...p})}function ai({className:a,...t}){return r("span",{className:n("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",a),...t})}function si({className:a,...t}){return r(s,{"data-slot":"input-group-control",className:n("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent",a),...t})}function Yn({className:a,...t}){return r(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",a),...t})}export{Xn,Ut,$t,ai,si,Yn};
|
package/dist/chunk-2swp3nfs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var i=new Map,a=new Map,f=new Map;function sr(t,r){if(a.has(t))throw Error("An attachment writer is already registered for this session");return a.set(t,r),()=>{if(a.get(t)===r)a.delete(t)}}function L(t,r){let n=i.get(t);if(!n)return;let e=r(n.attachments);i.set(t,{...n,attachments:e}),a.get(t)?.(e)}function bt(t,r){f.set(t,r),r.finally(()=>{if(f.get(t)===r)f.delete(t)})}async function Tr(t){for(;;){let e=i.get(t)?.attachments.flatMap((c)=>{let m=f.get(c.id);return m?[m]:[]})??[];if(!e.length)break;await Promise.all(e)}let r=i.get(t);if(!r)return null;let n=await Promise.all(r.attachments.map(async(e)=>{if(!e.url.startsWith("blob:"))return e;let c=await fetch(e.url);if(!c.ok)throw Error("Cannot read draft image");let m=await c.blob(),l=await new Promise((g,p)=>{let o=new FileReader;o.onload=()=>g(o.result),o.onerror=()=>p(o.error),o.readAsDataURL(m)});return{...e,url:l}}));return{text:r.text,mentions:[...r.mentions],attachments:n,modelId:r.modelId}}function Sr(t,r){if(r===null)i.delete(t);else i.set(t,r)}var s=new Map;function wt(t,r){if(s.has(t))throw Error("A composer is already registered for this session");return s.set(t,r),()=>{if(s.get(t)===r)s.delete(t)}}function Ir(t,r){if(typeof r!=="string"||!r.trim())throw Error("The draft is empty");let n=s.get(t);if(!n)throw Error("The session's composer is not open; open the session first");let e=i.get(t);if(e&&(e.text.length||e.attachments.length||e.mentions.length))throw Error("The composer already has a draft; send or clear it first");n(r),i.set(t,{text:r,attachments:[],mentions:[],modelId:e?.modelId??null})}
|
|
2
|
-
export{i,sr,L,bt,Tr,Sr,wt,Ir};
|
package/dist/chunk-3919sqde.js
DELETED
package/dist/chunk-39sbgvd3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{x}from"./chunk-qxabrz98.js";import{t}from"./chunk-q6km9nha.js";import{B}from"./chunk-y6afvrnv.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(x,{text:e.text,streaming:o})})}if(i.isImage(e))return n(B,{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(B,{block:e,generated:!0});return n("div",{className:"text-muted-foreground",children:r.t("timeline.unsupportedContent",{type:e.type})})}function oe({content:e,messageId:o,streaming:r}){return e.map((s,a)=>n(d,{block:s,streaming:r},`${o}:${a}`))}
|
|
2
|
-
export{oe};
|
package/dist/chunk-3dckftt6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-q6km9nha.js";import{e}from"./chunk-wpdn3rx8.js";import{Ue}from"./chunk-zb4mqy8f.js";import{he,ve,xe,ye}from"./chunk-d5ga13n0.js";import{o,C}from"./chunk-0ss92kxr.js";import{Loader2Icon as f}from"lucide-react";import{jsx as i,jsxs as m}from"react/jsx-runtime";function vt({session:t,timeline:c}){let{host:s,client:a}=o(),{t:r}=s,l=n((y)=>y.historyPages[t.id]?.cursor!=null),d=()=>C(s,a.open(t.id,t.cwd)),p=i(Ue,{...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(he,{className:"flex-1",children:[m(ve,{children:[i(xe,{children:r("conversation.reopen")}),i(ye,{children:r("conversation.detached")})]}),i(e,{onClick:d,children:r("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!l)return i(he,{className:"flex-1",children:m(ve,{children:[i(xe,{className:"text-[28px] font-normal",children:r("conversation.welcomeTitle")}),i(ye,{className:"truncate font-mono",children:t.cwd})]})});return p}
|
|
2
|
-
export{vt};
|
package/dist/chunk-3k5n3809.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hn,Fn}from"./chunk-h68f23r0.js";import{cn as l}from"cn";import{jsx as t,jsxs as a}from"react/jsx-runtime";function f({value:i,onValueChange:n,options:o,itemClassName:d}){return t(Hn,{value:i,onValueChange:(e)=>n(String(e)),children:o.map((e)=>a(Fn,{value:e.value,disabled:e.disabled,title:e.title,closeOnClick:!0,className:l("gap-2",e.description?"items-start":"items-center",d),children:[e.icon,e.description?a("div",{className:"min-w-0 flex-1",children:[t("div",{className:"text-xs font-medium",children:e.label}),t("div",{className:"text-muted-foreground text-[11px] font-normal",children:e.description})]}):t("span",{className:"min-w-0 flex-1 truncate text-start",children:e.label})]},e.value))})}
|
|
2
|
-
export{f};
|
package/dist/chunk-3z6rx5qv.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{v}from"./chunk-kjtd3wc3.js";import{Y,A}from"./chunk-0nkvfecf.js";import{k}from"./chunk-da6d6wze.js";import{useEffect as R,useId as N,useRef as w}from"react";import{jsx as l,jsxs as p,Fragment as _}from"react/jsx-runtime";function u(n){return n!==null&&typeof n==="object"&&!Array.isArray(n)}function h(n){if(!u(n)||!u(n.codex))return[];let r=n.codex,i=r.questions;if(r.delivery!=="async"||!Array.isArray(i))return[];if(!i.every((t)=>u(t)&&typeof t.title==="string"&&t.title.trim().length>0&&(t.options===null||Array.isArray(t.options)&&t.options.every((c)=>typeof c==="string"))))return[];return i}function dn(n,r){return JSON.stringify(["request_user_input_async",n,r])}function nr(n){return{selected:n.options?.length?0:null,text:""}}function xt(n,r){return r.selected===null?r.text:n.options?.[r.selected]??""}function or(n){return`<send_user_message_question_reply>
|
|
2
|
-
${JSON.stringify([n])}
|
|
3
|
-
</send_user_message_question_reply>`}function un(n){if(!u(n)||!u(n.codex))return[];let r=n.codex;return(Array.isArray(r.questionReplyParts)?r.questionReplyParts.map((t)=>u(t)?{...t,answer:t.text}:t):[r.questionReply]).filter((t)=>u(t)&&typeof t.questionItemId==="string"&&typeof t.question==="string"&&typeof t.answer==="string").map(({questionItemId:t,question:c,answer:m})=>({questionItemId:t,question:c,answer:m}))}function rr({question:n,draft:r,status:i,answer:t,error:c,onChange:m,onSubmit:f,onSkip:b,t:a}){let y=N(),g=w(!1),o=w(null);R(()=>()=>{if(o.current!==null)cancelAnimationFrame(o.current)},[]);let d=i==="pending",Q=i==="answered"||i==="skipped";return p("section",{"aria-labelledby":`${y}-title`,className:"flex min-w-0 flex-col gap-3 rounded-xl border border-border bg-card p-4 text-card-foreground",children:[l("h3",{id:`${y}-title`,className:"text-sm font-medium whitespace-pre-wrap",children:n.title}),Q?l("p",{className:"text-sm whitespace-pre-wrap",children:i==="answered"?t:a("asyncQuestion.skipped")}):p(_,{children:[(n.options?.length??0)>0&&p(Y,{"aria-labelledby":`${y}-title`,disabled:!d,value:r.selected===null?"other":String(r.selected),onValueChange:(s)=>m({...r,selected:s==="other"?null:Number(s)}),children:[n.options?.map((s,x)=>p(v,{className:"flex items-start gap-2 text-sm",children:[l(A,{value:String(x)}),l("span",{className:"whitespace-pre-wrap",children:s})]},x)),p(v,{className:"flex items-center gap-2 text-sm",children:[l(A,{value:"other"}),a("asyncQuestion.other")]})]}),l(k,{rows:1,className:"min-h-0 resize-none",onCompositionStart:()=>{if(o.current!==null)cancelAnimationFrame(o.current);o.current=null,g.current=!0},onCompositionEnd:()=>{if(g.current=!1,o.current!==null)cancelAnimationFrame(o.current);o.current=requestAnimationFrame(()=>{o.current=null})},onKeyDown:(s)=>{if(s.key!=="Enter"||s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||g.current||o.current!==null||s.nativeEvent.isComposing||s.nativeEvent.keyCode===229)return;if(s.preventDefault(),d&&xt(n,{...r,text:s.currentTarget.value}).trim().length>0)f()},"aria-label":a("asyncQuestion.answer"),placeholder:a("asyncQuestion.answer"),value:r.text,readOnly:!d,onChange:(s)=>m({selected:null,text:s.target.value})}),c&&l("p",{role:"alert",className:"text-sm text-destructive",children:c}),p("div",{className:"flex flex-wrap items-center gap-2",children:[l(e,{size:"sm",disabled:!d||xt(n,r).trim().length===0,onClick:f,children:a(i==="submitting"?"asyncQuestion.submitting":"asyncQuestion.submit")}),l(e,{size:"sm",variant:"ghost",disabled:!d,onClick:b,children:a("asyncQuestion.skip")}),(i==="closed"||i==="unavailable")&&l("span",{role:"status",className:"text-xs text-muted-foreground",children:a(`asyncQuestion.${i}`)})]})]})]})}
|
|
4
|
-
export{h,dn,nr,xt,or,un,rr};
|
package/dist/chunk-4s1rhts0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Switch as a}from"@base-ui/react/switch";import{cn as d}from"cn";import{jsx as t}from"react/jsx-runtime";function ze({className:e,size:i="default",...r}){return t(a.Root,{"data-slot":"switch","data-size":i,className:d("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none group-has-[:focus-visible]/field-label:border-transparent group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",e),...r,children:t(a.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] rtl:group-data-[size=default]/switch:data-checked:-translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] rtl:group-data-[size=sm]/switch:data-checked:-translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 rtl:group-data-[size=default]/switch:data-unchecked:-translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 rtl:group-data-[size=sm]/switch:data-unchecked:-translate-x-0 dark:data-unchecked:bg-foreground"})})}export{ze};
|
package/dist/chunk-4zzhckab.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var ki=280;function ho({entries:i,gapPx:t,measuredHeightsByKey:o,leadingInsetPx:e=0}){let n=[],r=[],d=new Map,s=[],u=e;for(let[x,a]of i.entries()){d.set(a.turnKey,x);for(let h of a.aliases??[])d.set(h,x);s.push(a.turnKey),r.push(u);let f=a.aliases?.map((h)=>o[h]).find((h)=>h!==void 0),m=o[a.turnKey]??f??a.estimatedHeightPx??280;if(n.push(m),u+=m,x<i.length-1)u+=t}return{bottomOffsetsPx:r.map((x,a)=>{let f=n[a];if(f===void 0)throw Error(`Codex turn height is missing at index ${a}`);return u-x-f}),heightsPx:n,topOffsetsPx:r,totalHeightPx:u,turnIndexByKey:d,turnKeys:s}}function be({distanceFromBottomPx:i,layout:t,overscanCount:o,viewportHeightPx:e}){if(t.turnKeys.length===0)return{startIndex:0,endIndex:0};let n=Math.min(Math.max(0,i),t.totalHeightPx),r=Math.min(n+Math.max(0,e),t.totalHeightPx),d=g(t.bottomOffsetsPx,r),s=l(t.bottomOffsetsPx,t.heightsPx,n);return{startIndex:Math.max(0,d-o),endIndex:Math.min(t.turnKeys.length,Math.max(s,d+1)+o)}}function Kt({anchorKey:i,layout:t,previousRange:o}){let e=t.turnIndexByKey.get(i);if(e===void 0)return null;return{startIndex:e,endIndex:Math.min(t.turnKeys.length,e+o.endIndex-o.startIndex)}}function vo({anchorKey:i,distanceFromBottomPx:t,nextLayout:o,previousLayout:e}){let n=e.turnIndexByKey.get(i),r=o.turnIndexByKey.get(i);if(n===void 0||r===void 0)return null;let d=e.bottomOffsetsPx[n],s=e.heightsPx[n],u=o.bottomOffsetsPx[r],x=o.heightsPx[r];if(d===void 0||s===void 0||u===void 0||x===void 0)throw Error(`Codex turn geometry is missing: ${i}`);return Math.max(0,t+u+x-d-s)}function xo({layout:i,turnKey:t,viewportHeightPx:o}){let e=i.turnIndexByKey.get(t);if(e===void 0)return null;let n=i.bottomOffsetsPx[e],r=i.heightsPx[e];if(n===void 0||r===void 0)throw Error(`Codex turn geometry is missing: ${t}`);return Math.max(0,n-o/2+r/2)}function yo({align:i,layout:t,targetHeightPx:o,targetOffsetPx:e,turnKey:n,viewportHeightPx:r}){let d=t.turnIndexByKey.get(n);if(d===void 0)return null;let s=t.bottomOffsetsPx[d],u=t.heightsPx[d];if(s===void 0||u===void 0)throw Error(`Codex turn geometry is missing: ${n}`);let x=s+u-e;return i==="top"?Math.max(0,x-r+10):Math.max(0,x-o/2-r/2)}function g(i,t){let o=0,e=i.length;while(o<e){let n=Math.floor((o+e)/2),r=i[n];if(r===void 0)throw Error(`Codex bottom offset is missing at index ${n}`);if(r<t)e=n;else o=n+1}return o}function l(i,t,o){let e=0,n=i.length;while(e<n){let r=Math.floor((e+n)/2),d=i[r],s=t[r];if(d===void 0||s===void 0)throw Error(`Codex turn geometry is missing at index ${r}`);if(d+s<=o)n=r;else e=r+1}return e}
|
|
2
|
-
export{ki,ho,be,Kt,vo,xo,yo};
|
package/dist/chunk-58wt406v.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{v}from"./chunk-kjtd3wc3.js";import{j}from"./chunk-1fm5vx1n.js";import{useMemo as f}from"react";import{cva as p}from"class-variance-authority";import{cn as l}from"cn";import{jsx as t,jsxs as c}from"react/jsx-runtime";function Gt({className:a,...e}){return t("fieldset",{"data-slot":"field-set",className:l("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",a),...e})}function jt({className:a,variant:e="legend",...o}){return t("legend",{"data-slot":"field-legend","data-variant":e,className:l("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",a),...o})}function co({className:a,...e}){return t("div",{"data-slot":"field-group",className:l("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",a),...e})}var u=p("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function uo({className:a,orientation:e="vertical",...o}){return t("div",{role:"group","data-slot":"field","data-orientation":e,className:l(u({orientation:e}),a),...o})}function fi({className:a,...e}){return t("div",{"data-slot":"field-content",className:l("group/field-content flex flex-1 flex-col gap-1 leading-snug",a),...e})}function mo({className:a,...e}){return t(v,{"data-slot":"field-label",className:l("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",a),...e})}function hi({className:a,...e}){return t("div",{"data-slot":"field-label",className:l("flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",a),...e})}function ht({className:a,...e}){return t("p",{"data-slot":"field-description",className:l("text-start text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5","last:mt-0 nth-last-2:-mt-1","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",a),...e})}function vi({children:a,className:e,...o}){return c("div",{"data-slot":"field-separator","data-content":!!a,className:l("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",e),...o,children:[t(j,{className:"absolute inset-0 top-1/2"}),a&&t("span",{className:"relative mx-auto block w-fit bg-background px-2 text-muted-foreground","data-slot":"field-separator-content",children:a})]})}function xi({className:a,children:e,errors:o,...s}){let i=f(()=>{if(e)return e;if(!o?.length)return null;let r=[...new Map(o.map((d)=>[d?.message,d])).values()];if(r?.length==1)return r[0]?.message;return t("ul",{className:"ms-4 flex list-disc flex-col gap-1",children:r.map((d,n)=>d?.message&&t("li",{children:d.message},n))})},[e,o]);if(!i)return null;return t("div",{role:"alert","data-slot":"field-error",className:l("text-sm font-normal text-destructive",a),...s,children:i})}export{Gt,jt,co,uo,fi,mo,hi,ht,vi,xi};
|
package/dist/chunk-59g9h4v1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l,r}from"./chunk-da4m33bg.js";import{QUICK_CHATS_GROUP as m,sessionGroup as a}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useMemo as L}from"react";function gr(i){let t=l(),e=r((s)=>s.projectContext),c=i===null?m:e?a(e,{cwd:t.projectPath(i)}).id:null,u=r((s)=>s.sessionList),d=r((s)=>s.connection),n=r((s)=>s.sessionListLoaded),o=r((s)=>s.sessionListError),f=()=>t.listSessions({reset:!0}).catch(()=>{return});return S(()=>{if(d==="ready"&&!n&&o===null)t.listSessions().catch(()=>{return})},[t,d,n,o]),{result:L(()=>{if(n&&e)return{status:"ready",sessionRows:u.filter((s)=>a(e,{...s,cwd:t.projectPath(s.cwd)}).id===c).toSorted((s,p)=>(p.updatedAt??"").localeCompare(s.updatedAt??""))};if(o!==null)return{status:"failed",error:o};return{status:"loading"}},[t,u,n,o,c,e]),retry:f}}
|
|
2
|
-
export{gr};
|
package/dist/chunk-59j0p8hy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i,L,bt}from"./chunk-2swp3nfs.js";var On=5000;function de(t){return"pastedText"in t}function Er(t){return`file://${encodeURI(t).replaceAll("#","%23").replaceAll("?","%3F")}`}function Le(t,e,o){let n=(r,s)=>{for(let[a,x]of i){if(!x.attachments.some((p)=>p.id===e.id))continue;L(a,(p)=>p.map((d)=>d.id===e.id?{...e,url:s===void 0?"":Er(s),pastedText:{text:e.pastedText.text,status:r}}:d))}};if(!i.get(t)?.attachments.some((r)=>r.id===e.id))return;n("pending"),bt(e.id,o("pasted-text.txt",e.pastedText.text).then((r)=>n("ready",r)).catch(()=>n("error")))}function gt(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<On)return;t.preventDefault(),t.stopPropagation();let s={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:o,url:"",pastedText:{text:r,status:"pending"}};L(e,(a)=>[...a,s]),Le(e,s,n)}
|
|
2
|
-
export{On,de,Er,Le,gt};
|
package/dist/chunk-6s7z09b0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{s}from"./chunk-96x0d2vd.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 gn({ref:p,value:o,onChange:d,onFind:i,onClose:a,placeholder:m,autoFocusOpen:l=!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(!l)return;let t=r.current;if(t===null)throw Error("FindBar input is not mounted");t.focus({preventScroll:!0}),t.select()},[l]);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(s,{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(),a();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:a,title:"Esc",children:n(z,{className:"size-3.5"})})]})}
|
|
2
|
-
export{gn};
|
package/dist/chunk-6wqbetcx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{PreviewCard as i}from"@base-ui/react/preview-card";import{cn as s}from"cn";import{jsx as r}from"react/jsx-runtime";function Pe({...e}){return r(i.Root,{"data-slot":"hover-card",...e})}function Ne({...e}){return r(i.Trigger,{"data-slot":"hover-card-trigger",...e})}function Me({className:e,side:o="bottom",sideOffset:t=4,align:a="center",alignOffset:d=4,...n}){return r(i.Portal,{"data-slot":"hover-card-portal",children:r(i.Positioner,{align:a,alignOffset:d,side:o,sideOffset:t,className:"isolate z-50",children:r(i.Popup,{"data-slot":"hover-card-content",className:s("z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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",e),...n})})})}export{Pe,Ne,Me};
|
package/dist/chunk-75zcgcqm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{No}from"./chunk-c2bkhrcc.js";import{Eo,Ao,Lo}from"./chunk-6nnwmqqp.js";import{Mo}from"./chunk-fexvhys2.js";import{t}from"./chunk-q6km9nha.js";import{Q}from"./chunk-e99sdapw.js";import{nativeTurnId as f,textOf as I}from"@nyssance/codex-acp-v2/client";import{useMemo as N}from"react";import{jsx as r,jsxs as v,Fragment as y}from"react/jsx-runtime";function Hr(i,n){return{installUnlock:n==="none"?()=>()=>{}:Ao,preload:()=>{if(n!=="none")Eo(i)},playSequence:(a,d,l)=>Lo(a,d,l,i,n)}}function Io(i,n={},a){let d=[];for(let e of i){if(e.user===null)continue;let o="";for(let m of e.final){let p=I(m.content).trim();if(p.length===0)continue;o=p}let u=n[e.user.id],s=e.items.map(f).find((m)=>m!==null);d.push({id:e.user.id,turnKey:e.key,label:Q(e.user),response:o,inputTokens:u?.inputTokens??0,outputTokens:u?.outputTokens??0,...s===void 0?{}:{nativeTurnId:s}})}if(!a?.complete)return d;let l=new Map;for(let e of d){if(e.nativeTurnId===void 0)continue;let o=l.get(e.nativeTurnId)??[];o.push(e),l.set(e.nativeTurnId,o)}let c=new Set(a.turns.map((e)=>e.turnId)),g=new Set(a.loadedTurnIds);return[...a.turns.flatMap((e)=>{let o=l.get(e.turnId);if(o)return o;if(g.has(e.turnId))return[];let u=a.previews[e.turnId];return((u?.messages.length)?u.messages:[{id:"",label:"",response:""}]).map((s,m)=>({id:`history:${e.turnId}:${m===0?"0":s.id}`,messageId:s.id||void 0,turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,isLoaded:!1,previewState:u?.state??"loading",label:s.label,response:s.response,inputTokens:0,outputTokens:0}))}),...d.filter((e)=>e.nativeTurnId===void 0||!c.has(e.nativeTurnId))]}function T({item:i}){let n=t(),a=N(()=>({theme:n.theme,copyLabel:n.t("actions.copy"),openLink:()=>{},preview:!0}),[n]);if(i.previewState==="loading")return v("div",{role:"status",className:"animate-pulse space-y-2 py-1","aria-label":n.t("timeline.navigationLoading"),children:[r("div",{className:"bg-muted h-3 w-3/5 rounded"}),r("div",{className:"bg-muted h-3 rounded"}),r("div",{className:"bg-muted h-3 w-4/5 rounded"})]});return v(y,{children:[r("div",{className:"min-w-0 truncate font-medium",children:i.previewState==="unavailable"?n.t("timeline.navigationUnavailable"):i.label||n.t("timeline.navigationEmpty")}),i.response&&r("div",{className:"text-muted-foreground pointer-events-none mt-1 line-clamp-3 [&_img]:hidden [&_pre]:max-h-20 [&_table]:table-fixed","data-navigation-response":!0,children:r(No,{text:i.response,host:a})})]})}function Po(i){return r(Mo,{...i,renderPreview:(n)=>r(T,{item:n})})}
|
|
2
|
-
export{Hr,Io,Po};
|
package/dist/chunk-7ap638hx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{G}from"./chunk-kmhwwzga.js";import{t}from"./chunk-q6km9nha.js";import{SquareSlashIcon as s}from"lucide-react";import{useRef as l}from"react";import{jsx as r}from"react/jsx-runtime";function En({textareaRef:a,onOpenChange:p,menuOpen:e,disabled:m}){let{t:o}=t(),n=l(!1);return r(G,{"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{En};
|
package/dist/chunk-7g79m27w.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$e}from"./chunk-khj3ye94.js";import{ir}from"./chunk-n56csv51.js";import{t}from"./chunk-q6km9nha.js";import{B}from"./chunk-y6afvrnv.js";import{rn}from"./chunk-e99sdapw.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(B,{block:o.content},`${n.id}:${s}`))]})}var tn=k(function({sessionId:r,items:o,terminals:s,streamingThoughtId:d}){let p=t(),i=o.every(rn),c=p.toolBlock,a=v(()=>o.map((e)=>{let m={...ir(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($e,{blocks:a,defaultExpanded:!i}),o.map((e)=>e.kind==="tool"&&l(R,{item:e},e.id))]})});
|
|
2
|
-
export{tn};
|
package/dist/chunk-7jdjdnh6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Dn}from"./chunk-sf6ze845.js";import{o,C}from"./chunk-0ss92kxr.js";import{N,c}from"./chunk-n1tjf64a.js";import{createLucideIcon as w,HandIcon as y,ShieldAlertIcon as S,ShieldCheckIcon as r}from"lucide-react";import{jsx as t}from"react/jsx-runtime";var O=w("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"}]]),u={"read-only":y,"workspace-write":r,agent:O,"agent-full-access":S},b={"read-only":"readOnly","workspace-write":"workspaceAccess",agent:"agent","agent-full-access":"fullAccess"};function ut({sessionId:g,options:m,disabled:f,onConfigChange:l}){let{host:p,client:h}=o(),{t:a}=p,s=c(m,"mode");if(!s)return null;let n=s.currentValue,d=N(s).map((e)=>{let i=b[e.value];return i?{...e,name:a(`permissionModes.${i}.name`),description:a(`permissionModes.${i}.description`)}:e}),I=d.find((e)=>e.value===n),M=u[n]??r,v=(e)=>{if(e===n)return;C(p,l?l(s.configId,e):h.setConfig(g,s.configId,e))};return t(Dn,{value:n,warning:n==="agent-full-access",currentName:I?.name??n,icon:t(M,{className:"size-3.5 shrink-0"}),header:a("permissionModes.heading"),disabled:f,label:a("composer.switchPermissionMode"),onValueChange:v,options:d.map((e)=>{let i=u[e.value]??r,k=e.value==="agent-full-access";return{value:e.value,label:t("span",{"data-permission-warning":k?"":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{ut};
|
package/dist/chunk-7wyrcphh.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as t}from"cn";import{jsx as n}from"react/jsx-runtime";function Pt({className:e,...o}){return n("div",{"data-slot":"skeleton",className:t("animate-pulse rounded-md bg-muted",e),...o})}export{Pt};
|
package/dist/chunk-83sz9mv9.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Jn}from"./chunk-2g8targj.js";import{to}from"./chunk-gzeg6bqp.js";import{no}from"./chunk-90wm9rxz.js";import{Be}from"./chunk-yh9qdb2k.js";import{n}from"./chunk-q6km9nha.js";import{o}from"./chunk-0ss92kxr.js";import{isContentEntry as f,isDiffEntry as g,isFormElicitation as x,isText as h,isToolCallSubject as b,isUrlElicitation as w}from"@nyssance/codex-acp-v2/client";import{jsx as a,jsxs as m}from"react/jsx-runtime";function ge(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 s=e.description;return typeof s==="string"?s:null}function A(t){let e=t.rawInput;if(typeof e!=="object"||e===null)return null;let s=e.command;if(typeof s==="string")return s;if(Array.isArray(s))return s.map(String).join(" ");return null}function v(t){for(let e of t.content??[])if(g(e)&&e.patch&&e.patch.text.length>0)return e.patch.text;return null}function R(t){return(t.content??[]).filter(f).map((e)=>h(e.content)?e.content.text:"").filter((e)=>e.length>0).join(`
|
|
2
|
-
`)}function T({subject:t,requestTitle:e}){let{host:s}=o();if(!b(t))return null;let r=t.toolCall,l=A(r),i=v(r),c=R(r),p=s.toolTitle?.(r)??r.title;return m("div",{className:"flex flex-col gap-2",children:[p&&p!==e&&l===null&&a("div",{className:"text-sm font-medium",children:p}),l!==null&&m("pre",{className:"bg-muted overflow-x-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:[a("span",{className:"text-muted-foreground select-none",children:"$ "}),l]}),i!==null&&a("div",{className:"max-h-80 overflow-auto rounded-lg border","data-stream-style":"codexUI",children:a(Be,{patch:i,theme:s.theme})}),i===null&&l===null&&c.length>0&&a("pre",{className:"bg-muted max-h-60 overflow-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:c}),(r.locations??[]).length>0&&a("ul",{className:"text-muted-foreground flex flex-col gap-0.5 text-xs",children:(r.locations??[]).map((u)=>a("li",{className:"truncate font-mono",children:u.path},`${u.path}:${u.line??""}`))})]})}function d(t,e){let{host:s,client:r}=o();return(l)=>{try{if(e)e(t.id,l);else r.respond(t.id,l)}catch(i){if(s.reportError)s.reportError(i);else console.error(i)}}}function C({action:t,total:e,onRespond:s}){let{host:r}=o(),l=d(t,s),i=t.params,c=r.permissionTitle?.(i)??i.title;return m(Jn,{requestId:t.id,title:c,alwaysLabel:r.t("approval.always"),autoFocus:"if-idle",total:e,options:i.options.map((p)=>({...p,description:y(p)??void 0})),onRespond:(p)=>l({outcome:p===null?{outcome:"cancelled"}:{outcome:"selected",optionId:p}}),children:[i.description&&a("div",{className:"text-muted-foreground mt-0.5 text-xs",children:i.description}),i.subject&&a(T,{subject:i.subject,requestTitle:c})]})}function Oe({action:t,total:e,onRespond:s}){let{host:r}=o(),l=d(t,s),i=n((c)=>t.sessionId===null?void 0:c.sessions[t.sessionId]);return a(to,{requestId:t.id,schema:t.params.requestedSchema,message:i?.subagent?`${i.title??r.t("subagents.untitled")}: ${t.params.message}`:t.params.message,total:e,t:r.t,onRespond:l})}function ft({action:t,total:e,onRespond:s}){let{host:r}=o(),l=d(t,s);if(t.kind==="permission")return a(C,{action:t,total:e,onRespond:s});if(ge(t))return a(Oe,{action:t,total:e??1,onRespond:s});let i=t.params;if(!w(i))throw Error("Unsupported elicitation mode");return a(no,{message:i.message,url:i.url,t:r.t,onOpen:r.openLink,onRespond:(c)=>l(c==="cancel"?{action:"cancel"}:{action:"decline"})})}
|
|
3
|
-
export{ge,Oe,ft};
|
package/dist/chunk-88cfz41t.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function fn(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function It(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function ae(t){return t.type==="array"}function Ke(t){return(ae(t)?t.items?.oneOf??[]:t.oneOf??[]).map((e)=>{let i=e,r=i.const??i.title??"";return{value:r,label:i.title??r,...i.description?{description:i.description}:{},...i._meta?.alwith?.preview?{preview:i._meta.alwith.preview}:{}}})}
|
|
2
|
-
export{fn,It,ae,Ke};
|
package/dist/chunk-8bfnjqkg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_e}from"./chunk-cazdmcwd.js";import{G,Gn}from"./chunk-kmhwwzga.js";import{t}from"./chunk-q6km9nha.js";import{zn}from"./chunk-9j609g4n.js";import{ue,me,pe}from"./chunk-ea3582qy.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 Bn({active:a,sending:r,ready:p,hasMentions:m=!1,onStop:c}){let{t:e}=t(),s=_e(),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(G,{"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(ue,{children:[o(me,{render:o(Gn,{"aria-label":i,disabled:l,"aria-busy":r,status:r?"submitted":"ready"})}),n(pe,{role:"tooltip",children:[o("span",{className:"min-w-0",children:i}),o(zn,{className:"shrink-0",children:f?"↩":"Enter"})]})]})})]})}
|
|
2
|
-
export{Bn};
|
package/dist/chunk-8g09jrj1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{nt,J}from"./chunk-tq6ekz3s.js";import{_}from"./chunk-2pj3pcc7.js";import{q}from"./chunk-djmnmbm2.js";import{ee}from"./chunk-3919sqde.js";import{Se,ce,Ie}from"./chunk-2r3sfmyf.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 vn(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 Ze({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 Lt({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(Se,"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(_,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(Ie,{content:r!==void 0?e(ce,{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,J),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(vn,{className:"mt-0.5",children:C})]})}var H=S(()=>{}),O=S(()=>{});function Je(){return k(O)}function et(){return k(H)}function tt({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(Se,nt,"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(q,{state:t,title:n??void 0}):i}),d("span",{className:"flex min-w-0 flex-1 flex-col",children:[e(_,{className:p("leading-none",t==="done"&&"font-semibold"),children:r}),N!=null&&e(_,{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(Ie,{content:C!=null?e(ce,{children:C}):b??e(ce,{}),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(L,{row:y,onOpenChange:l,children:a})}function L({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 ee(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{vn,Te,Ze,Lt,Je,et,tt};
|
package/dist/chunk-8v1bjdgv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zn,y}from"./chunk-cazdmcwd.js";import{kn}from"./chunk-sespfp7t.js";import{ne}from"./chunk-bj5ma2sv.js";import{Un,$n,qn,Vn,Wn,G}from"./chunk-kmhwwzga.js";import{In,Pn}from"./chunk-074x98ak.js";import{_t}from"./chunk-h99fy0g3.js";import{t,n}from"./chunk-q6km9nha.js";import{o}from"./chunk-0ss92kxr.js";import{Ot}from"./chunk-afd3bq7v.js";import{i,sr,L,wt}from"./chunk-2swp3nfs.js";import{dt}from"./chunk-mzh48e09.js";import{de,gt}from"./chunk-59j0p8hy.js";import{kt,Tt}from"./chunk-w1awbykg.js";import{lr}from"./chunk-c1vavp0q.js";import{pt}from"./chunk-bew4srqj.js";import{Ln}from"./chunk-qca5mhqd.js";import{ut}from"./chunk-7jdjdnh6.js";import{mt}from"./chunk-0dnwqm94.js";import{En}from"./chunk-7ap638hx.js";import{Bn}from"./chunk-8bfnjqkg.js";import{ct}from"./chunk-d94rmh12.js";import{hasFuzzyFileSearch as Lt}from"@nyssance/codex-acp-v2/client";import{PlusIcon as zt}from"lucide-react";import{useCallback as O,useEffect as Ut,useLayoutEffect as Q,useMemo as Z,useRef as V,useState as S}from"react";import{jsx as c,jsxs as I}from"react/jsx-runtime";var Wt=["image/png","image/jpeg","image/webp","image/gif"],tt=[];async function jt(e){let d=await(await fetch(e.url)).blob();return new Promise((l,E)=>{let T=new FileReader;T.onerror=()=>E(T.error),T.onload=()=>{let _=T.result;l(_.slice(_.indexOf(",")+1))},T.readAsDataURL(d)})}function Ht(e){let{t:d}=t(),l=y();return c(G,{"aria-label":d("composer.attachImage"),title:d("composer.attachImage"),onClick:()=>l.openFileDialog(),...e,children:c(zt,{className:"size-4"})})}function st({session:e,onSubmit:d,onShellCommand:l,onHandOff:E,modelSelector:T,modelMenu:_,inputHeader:et,actions:bt,children:vt,attachmentPolicy:It,predictions:At=!0,disabled:Mt=!1,preparing:rt=!1,allowPendingInput:Ct=!1}){let{host:F,client:R}=o(),{t:p}=F,k=O((r)=>{if(F.reportError)F.reportError(r);else console.error(r)},[F]),[nt,D]=S(()=>({text:i.get(e.id)?.text??"",revision:0})),{text:b}=nt,[A,Et]=S(()=>i.get(e.id)?.attachments??tt),[u,z]=S(()=>i.get(e.id)?.mentions??[]),X=A.some((r)=>de(r)&&r.pastedText.status!=="ready"),[M,ot]=S(!1),[U,Rt]=S(!1),[q,at]=S(!1),f=V(null),it=V(null),a=V(nt),W=O((r)=>{it.current?.(),a.current={text:r,revision:a.current.revision+1},D(a.current)},[]),lt=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,C){if(s.target!==e.id||s.revision!==a.current.revision)return null;a.current={text:g,revision:a.current.revision+1},D(a.current);let x=f.current?.getTextarea();if(x!==null&&x!==void 0)x.value=g,x.setSelectionRange(C[0],C[1]);return{target:e.id,...a.current,selection:C}}}),[e.id]),B=V(null),ft=O((r)=>(B.current=r,()=>{if(B.current===r)B.current=null}),[]),j=e.state!=="idle",v=l!==void 0&&b.startsWith("!"),h=!Mt&&!rt&&e.attached&&!e.restoring&&!e.readOnly,N=!e.readOnly&&(Ct||h),H=mt(e,h&&!M&&!U&&!X&&!q,b.length>0||A.length>0||u.length>0,At&&!v),ht=H.invalidate;Q(()=>{i.set(e.id,{text:b,attachments:A,mentions:u,modelId:i.get(e.id)?.modelId??null})},[e.id,b,A,u]),Q(()=>sr(e.id,Et),[e.id]),Q(()=>wt(e.id,(r)=>{if(!N||M)throw Error("The composer cannot take text now; try again later");if(b.length||A.length||u.length)throw Error("The composer already has a draft; send or clear it first");W(r)}),[e.id,N,M,b,A,u,W]);let xt=n((r)=>Lt(r.agent)),Nt=Z(()=>xt&&h?async(r)=>dt((await R.fuzzyFileSearch({query:r,roots:[e.cwd]})).files):void 0,[R,xt,h,e.cwd]),J=O((r)=>{z((s)=>s.includes(r)?s:[...s,r])},[]);Ut(()=>{f.current?.focus()},[]);let yt=O(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 C=r.trim();if(C.length===0&&s.length===0&&u.length===0)return;let x=B.current;ot(!0);let w=i.get(e.id),Bt=a.current.revision,K=null;try{let P=[];for(let m of u){let Y={kind:"file",absPath:m};P.push({type:"resource_link",uri:kt(Y),name:Tt(Y)})}if(C.length>0)P.push({type:"text",text:C});for(let m of s)if(de(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 jt(m),mimeType:m.mediaType});if(a.current.revision===Bt&&i.get(e.id)===w)a.current={text:"",revision:a.current.revision+1},K=a.current.revision,D(a.current),z([]),L(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||B.current!==x)return;x.accept(m),E?.(e.id,m)});else if(x===null)await R.prompt(e.id,P);else{let m=await R.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&&K!==null&&a.current.revision===K&&i.get(e.id)?.attachments.length===0&&i.get(e.id)?.mentions.length===0)a.current={text:w.text,revision:K+1},D(a.current),z(w.mentions),i.set(e.id,w),L(e.id,()=>w.attachments);throw P}finally{ot(!1),f.current?.focus()}},[R,e.id,e.state,u,d,l,E,ht]),St=()=>{R.cancel(e.id).catch(k)},Ft=O((r)=>{let s=r.code==="max_total_size"?Object.assign(Error(p("composer.imageTooLargeTitle")),{description:p("composer.imageTooLargeDescription",{mb:ne})}):Object.assign(Error(p("composer.unsupportedAttachmentTitle")),{description:p("composer.unsupportedAttachmentDescription")});k(s)},[k,p]),Dt=Z(()=>({session:e,ready:h,inputReady:N,sending:M,textareaRef:f,draft:lt,interruptRef:it,observeReceipts:ft,addMention:J,setAdding:Rt,shellMode:v,handsFree:!v&&(d===void 0||E!==void 0)}),[e,h,N,M,lt,ft,J,d,E,v]),Pt=F.writeTextAttachment;return c(Ot,{value:Dt,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(Zn,{attachmentPolicy:It,value:b,revision:a.current.revision,onValueChange:W,onSubmittedClear:()=>{a.current={text:"",revision:a.current.revision+1},D(a.current)},attachments:A,onAttachmentsChange:(r)=>L(e.id,()=>r),children:[c(kn,{bashMode:l!==void 0,handleRef:f,commands:e.commands,searchFiles:Nt,onMention:J,onSearchError:k,forcedOpen:q,onForcedOpenChange:at,emptyLabel:p("composer.noCommands"),fileStatusLabels:{loading:p("composer.searchingFiles"),empty:p("composer.noMatchingFiles")}}),I(Un,{"data-shell-mode":v||void 0,bashMode:l!==void 0,globalDrop:!0,multiple:!0,accept:Wt.join(","),onError:Ft,onSubmit:yt,onSubmitAsync:yt,onSubmitError:k,canSubmit:()=>h&&!M&&!U&&!X&&(!v||!j&&b.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[vt,I(qn,{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(lr,{mentions:u,onRemove:(r)=>z((s)=>s.filter((g)=>g!==r))}),c(Pn,{children:(r)=>de(r)?c(Ln,{data:r,sessionId:e.id}):c(In,{data:r,t:p})})]}),I($n,{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(_t,{className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,bashMode:l!==void 0,disabled:!N,onPasteCapture:Pt?(r)=>gt(r,e.id,p("composer.pastedTextFilename"),Pt):void 0,placeholder:v?"! command":H.text||(j?p("composer.steerPlaceholder"):p("composer.placeholder")),"aria-label":p("composer.placeholder")})]}),c(Vn,{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(Ht,{className:"text-foreground",disabled:!N}),c(En,{textareaRef:f,menuOpen:q,onOpenChange:at,disabled:!h||e.commands.length===0}),c(ut,{sessionId:e.id,options:e.configOptions,disabled:!h})]}),I(Wn,{className:"w-full min-w-0 items-center justify-end gap-1",children:[c(ct,{session:e}),T??c(pt,{..._,sessionId:e.id,options:e.configOptions,disabled:!h}),bt,c(Bn,{active:j,sending:M||rt||U,ready:h&&!X&&(!v||!j&&b.slice(1).trim().length>0),hasMentions:u.length>0,onStop:St})]})]})})]})]})]})})})}
|
|
2
|
-
export{st};
|
package/dist/chunk-90wm9rxz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{oo,ro,io,ao,so,lo}from"./chunk-mr1azhef.js";import{ExternalLinkIcon as d}from"lucide-react";import{jsx as a,jsxs as n}from"react/jsx-runtime";function no({message:r,url:t,t:i,onOpen:l,onRespond:o}){return n(oo,{size:"sm",children:[n(ro,{children:[a(ao,{children:i("approval.needed")}),a(io,{children:r})]}),a(so,{children:n("div",{className:"flex flex-col gap-3",children:[n(e,{variant:"outline",size:"sm",className:"w-fit",onClick:()=>void l(t),children:[a(d,{"data-icon":"inline-start"}),i("approval.openLink")]}),a("p",{className:"text-muted-foreground text-sm",children:i("approval.waitingForLink")})]})}),n(lo,{className:"flex flex-wrap gap-2",children:[a(e,{variant:"outline",size:"sm",onClick:()=>o("decline"),children:i("actions.decline")}),a(e,{variant:"ghost",size:"sm",onClick:()=>o("cancel"),children:i("actions.cancel")})]})]})}
|
|
2
|
-
export{no};
|
package/dist/chunk-91h14q3y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{t}from"./chunk-q6km9nha.js";import{codexTurnError as h}from"@nyssance/codex-acp-v2/client";import{AlertCircleIcon as R}from"lucide-react";import{useEffect as C,useRef as u,useState as i}from"react";import{jsx as o,jsxs as m}from"react/jsx-runtime";function sn({children:c}){return m("div",{className:"codex-error-message",role:"alert",children:[o(R,{"aria-hidden":"true"}),o("div",{className:"min-w-0 flex-1",children:c})]})}function ln({error:c,retry:r}){let{t:f}=t(),p=h(c),[l]=i(()=>r?.delaySeconds==null?null:Date.now()+r.delaySeconds*1000),[v,y]=i(r?.delaySeconds??null),[T,x]=i(!1),[g,w]=i(null),a=u(!1),E=u(!1),S=u(r?.run);S.current=r?.run;let b=u((N)=>{let s=S.current;if(a.current||s===void 0)return;a.current=!0,x(!0),w(null),s(N).catch((n)=>{E.current=!0,a.current=!1,y(null),x(!1),w(n instanceof Error?n.message:String(n))})}),d=r!==void 0&&p.retryable;return C(()=>{if(!d||l===null)return;let s=setInterval(()=>{if(E.current||a.current)return;let n=Math.max(0,Math.ceil((l-Date.now())/1000));if(y(n),n===0)b.current("automatic")},1000);return()=>clearInterval(s)},[l,d]),m(sn,{children:[m("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[o("div",{className:"min-w-0 flex-1 whitespace-pre-wrap",children:p.message}),d&&o(e,{variant:"outline",size:"sm",disabled:T,onClick:()=>b.current("manual"),children:v===null?f("timeline.retry"):f("timeline.retryCountdown",{seconds:v})})]}),g!==null&&o("div",{className:"text-muted-foreground mt-2 text-sm",children:g})]})}
|
|
2
|
-
export{sn,ln};
|
package/dist/chunk-96x0d2vd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Input as t}from"@base-ui/react/input";import{cn as n}from"cn";import{jsx as o}from"react/jsx-runtime";function s({className:i,type:e,...r}){return o(t,{type:e,"data-slot":"input",className:n("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",i),...r})}export{s};
|
package/dist/chunk-9gv1zffv.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 s}from"cn";var Gr=o("group/badge 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:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>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 We({className:r,variant:e="default",render:t,...i}){return n({defaultTagName:"span",props:a({className:s(Gr({variant:e}),r)},i),render:t,state:{slot:"badge",variant:e}})}export{Gr,We};
|
package/dist/chunk-9j609g4n.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as e}from"cn";import{jsx as o}from"react/jsx-runtime";function zn({className:t,...n}){return o("kbd",{"data-slot":"kbd",className:e("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3",t),...n})}function ni({className:t,...n}){return o("kbd",{"data-slot":"kbd-group",className:e("inline-flex items-center gap-1",t),...n})}export{zn,ni};
|
package/dist/chunk-afd3bq7v.js
DELETED
package/dist/chunk-bew4srqj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_n}from"./chunk-ebmbz9tg.js";import{n}from"./chunk-q6km9nha.js";import{o,C}from"./chunk-0ss92kxr.js";import{N,c,M}from"./chunk-n1tjf64a.js";import{isBooleanOption as A,isGroupedSelect as Z,isSelectOption as D}from"@nyssance/codex-acp-v2/client";import{Zap as F}from"lucide-react";import{useRef as H}from"react";import{jsx as G}from"react/jsx-runtime";function pt({sessionId:l,options:p,disabled:I,onModelChange:O,onConfigChange:_,defaultGroup:x={id:"models",name:"Models"},catalog:L=(f)=>f,headerAction:P}){let{host:f,client:k}=o(),{t:i}=f,z=n((e)=>Boolean(e.configPending[l])),g=H({sessionId:l,model:!0}),v=z&&(g.current.sessionId!==l||g.current.model),R=n((e)=>{let r=e.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),t=c(p,"model"),a=c(p,"thought_level"),S=p.filter((e)=>e.configId!=="collaboration_mode"&&(e.category==="model_config"||e.category!=="mode"&&e!==t&&e!==a)),V=S.filter(D),m=S.filter(A);if(!t&&!a&&V.length===0&&m.length===0)return null;let u=(e,r)=>{if(r===e.currentValue)return Promise.resolve();g.current={sessionId:l,model:e===t};let d=_?_(e.configId,r):k.setConfig(l,e.configId,r);return C(f,d),d},h=a?N(a):[],E=h.reduce((e,r)=>r.name.length>=e.length?r.name:e,""),U=t?M(t):i("composer.model"),y=(e)=>({api_id:e.value,label:e.name}),w=L(t&&Z(t.options)?t.options.map((e)=>({id:e.groupId,name:e.name,models:e.options.map(y)})):[{...x,models:t?N(t).map(y):[]}]),B=w.flatMap((e)=>e.models),b=B.find((e)=>e.api_id===t?.currentValue)??{api_id:t?.currentValue??"",label:U},s=m.find((e)=>e.configId==="fast_mode"||e.configId==="fast-mode");return G(_n,{disabled:I||v||R,switching:v,value:{...b,label:b.shortLabel??b.label},compactCatalog:!0,models:B,showModelList:Boolean(t),onChange:(e)=>{if(e.api_id===t?.currentValue)return;if(O)O(e.api_id);else if(t)u(t,e.api_id)},header:{name:t?.name??i("composer.model"),action:P},modelGroups:w,t:i,effortConfig:a&&h.length>0?{name:"Effort",value:a.currentValue,levels:h,sizer:E,onChange:(e)=>u(a,e)}:void 0,selectOptions:V.map((e)=>({id:e.configId,name:e.name,value:e.currentValue,options:N(e).map((r)=>({value:r.value,label:r.name})),onChange:(r)=>u(e,r)})),booleanOptions:[{id:"fast_mode",name:i("composer.fastMode"),currentValue:s?.currentValue??!1,disabled:!s,title:!s?i("composer.fastModeUnsupported"):void 0,icon:G(F,{className:"size-4","aria-hidden":"true"})},...m.filter((e)=>e!==s).map((e)=>({id:e.configId,name:e.name,currentValue:e.currentValue}))],onBooleanChange:(e,r)=>{let d=e==="fast_mode"?s:m.find((q)=>q.configId===e);if(!d)throw Error(`Unknown boolean config: ${e}`);u(d,r)}})}
|
|
2
|
-
export{pt};
|
package/dist/chunk-bj5ma2sv.js
DELETED
package/dist/chunk-bv4adcrd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{H,F,S,O,te,I}from"./chunk-h68f23r0.js";import{q}from"./chunk-djmnmbm2.js";import{jsx as t,jsxs as r}from"react/jsx-runtime";var u=["requires_action","running","done","idle"];function mr({sessions:l,onSelect:p,t:o}){return t("div",{className:"flex shrink-0 items-center gap-0.5",role:"group","aria-label":o("sessionList.states.title"),children:u.map((s)=>{let a=l.filter((n)=>n.state===s),i=o(`sessionList.states.${s}`);return r(H,{children:[r(F,{render:t(e,{variant:"ghost",size:"xs"}),"aria-label":`${i}: ${a.length}`,children:[t(q,{state:s,pulse:!1}),t("span",{className:"tabular-nums",children:a.length})]}),t(S,{"aria-label":i,className:"w-72 max-w-[calc(100vw-1rem)]",children:r(O,{children:[t(te,{children:i}),a.length===0?t(I,{disabled:!0,children:o("sessionList.states.empty")}):a.map((n)=>r(I,{onClick:()=>p(n),children:[t(q,{state:n.state,pulse:!1}),t("span",{className:"min-w-0 flex-1 truncate",children:n.title||o("sessionList.untitled")})]},n.sessionId))]})})]},s)})})}
|
|
2
|
-
export{mr};
|
package/dist/chunk-c1vavp0q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t}from"./chunk-q6km9nha.js";import{We}from"./chunk-9gv1zffv.js";import{e}from"./chunk-wpdn3rx8.js";import{Ct}from"./chunk-w1awbykg.js";import{FileIcon as m,XIcon as r}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function lr({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(We,{variant:"secondary",className:"gap-1 pe-0.5",title:o,children:[a(m,{className:"size-3"}),a("span",{className:"max-w-40 truncate",children:Ct(o)}),a(e,{type:"button",variant:"ghost",size:"icon-xs",className:"size-4","aria-label":i("composer.removeMention",{name:Ct(o)}),onClick:()=>s(o),children:a(r,{className:"size-3"})})]},o))})}
|
|
2
|
-
export{lr};
|
package/dist/chunk-c26vy827.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{g,l,ot,r,T}from"./chunk-da4m33bg.js";import{U}from"./chunk-ykp85wc1.js";import{tt}from"./chunk-8g09jrj1.js";import{Ye}from"./chunk-frbeen15.js";import{Ce,Qe}from"./chunk-vp8fb7r8.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 I}from"react";import{jsx as n,jsxs as C,Fragment as y}from"react/jsx-runtime";function At({sessionRow:e,active:f,onSelect:u,onForked:p=u,onHoverCardOpenChange:i,actions:a}){let t=g(),{t:m,i18n:v}=t,S=l(),c=r((o)=>o.runStates[e.sessionId]),k=ot(),d=()=>u(e);return n(tt,{"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:c?.state,interruption:c?.interruption??null,title:e.title??m("sessionList.untitled"),onHoverCardOpenChange:i,hoverCard:n(R,{sessionRow:e,onDelete:()=>k(e),onForked:p,actions:a}),meta:e.updatedAt!==null?n("span",{className:"text-muted-foreground shrink-0 text-xs",children:Ce(e.updatedAt,v.language)}):void 0,actions:c!=null?n(Ye,{title:m("sessionList.stop"),onStop:()=>T(t,S.stopSession(e.sessionId))}):void 0})}function R({sessionRow:e,onDelete:f,onForked:u,actions:p}){let i=g(),{t:a}=i,t=l(),m=r((s)=>L(s.agent)),v=r((s)=>s.connection==="ready"&&s.agent?.capabilities?.session?.fork!=null),[S,c]=I(!1),[k,d]=I(!1),o=N(!1);return n(Qe,{sessionRow:e,renaming:S,onRename:(s)=>{if(c(!1),s!==null)T(i,t.renameSession(e.sessionId,s))},actions:C(y,{children:[m&&n(U,{icon:n(A,{}),label:a("sessionList.rename"),onClick:()=>c(!0)}),p,e.archived?n(U,{icon:n(D,{}),label:a("sessionList.unarchive"),onClick:()=>void T(i,t.unarchive(e.sessionId))}):C(y,{children:[n(U,{icon:n(x,{}),label:a("sessionList.fork"),disabled:!v||k,onClick:()=>{if(o.current)return;o.current=!0,d(!0),T(i,t.fork(e.sessionId,e.cwd).then((s)=>{let h=t.state.sessionList.find((b)=>b.sessionId===s);if(!h)throw Error("Forked chat is missing from the session list");u(h)}).finally(()=>{o.current=!1,d(!1)}))}}),n(U,{icon:n(F,{}),label:a("sessionList.archive"),onClick:()=>void T(i,t.archive(e.sessionId))})]}),n(U,{variant:"destructive",icon:n(H,{}),label:a("sessionList.delete"),onClick:f})]})})}
|
|
2
|
-
export{At};
|