@alwith/module-chat 0.6.29 → 0.6.30
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/agent/client.js +1 -1
- package/dist/agent/custom-model-effort.js +1 -1
- package/dist/agent/fork-title.js +1 -1
- package/dist/agent/image-request.js +1 -1
- package/dist/agent/image-tools.js +1 -1
- package/dist/agent/input-config.js +1 -1
- package/dist/agent/input-modes/chat.js +1 -1
- package/dist/agent/input-modes/execution-meta.js +1 -1
- package/dist/agent/input-modes/image-context.js +1 -1
- package/dist/agent/input-modes/image.js +1 -1
- package/dist/agent/input-modes/index.js +1 -1
- package/dist/agent/project-path.js +1 -1
- package/dist/agent/request-error.js +1 -1
- package/dist/agent/session-list-refresh.js +1 -1
- package/dist/app-reference.js +1 -1
- package/dist/application-tools.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-kk5acm1s.js → chunk-016v1nnv.js} +4 -4
- package/dist/{chunk-xca0vnvk.js → chunk-036wyz4n.js} +2 -2
- package/dist/{chunk-hz8yrg2t.js → chunk-06mvwewp.js} +2 -2
- package/dist/chunk-0vtxfvdj.js +2 -0
- package/dist/{chunk-b4qe4xnp.js → chunk-0zncrzar.js} +2 -2
- package/dist/{chunk-me230xjh.js → chunk-11kv54bx.js} +3 -3
- package/dist/{chunk-vhxr0c4c.js → chunk-15m908ph.js} +2 -2
- package/dist/{chunk-xmy7ebed.js → chunk-18ea0dty.js} +2 -2
- package/dist/chunk-1h3f538q.js +2 -0
- package/dist/{chunk-12pd4nxy.js → chunk-1jznzjzn.js} +2 -2
- package/dist/{chunk-d336k00a.js → chunk-1pnbntv2.js} +2 -2
- package/dist/{chunk-1dpk9zrb.js → chunk-1y5zgya3.js} +2 -2
- package/dist/{chunk-zewseva6.js → chunk-23r2z6bp.js} +2 -2
- package/dist/{chunk-t56ncd8f.js → chunk-2d4zb2ac.js} +2 -2
- package/dist/chunk-2qa3c571.js +2 -0
- package/dist/chunk-2w3c4tg8.js +2 -0
- package/dist/{chunk-epdnafa1.js → chunk-3915ad7f.js} +2 -2
- package/dist/{chunk-esxjnj1y.js → chunk-3a8qwbgh.js} +3 -3
- package/dist/{chunk-wxafew32.js → chunk-3d3z6dam.js} +2 -2
- package/dist/{chunk-e8mxwqxy.js → chunk-3dvxhfcr.js} +2 -2
- package/dist/{chunk-5dxzfdd1.js → chunk-3vdx0cme.js} +2 -2
- package/dist/{chunk-7n1v87h0.js → chunk-3y9az4b9.js} +2 -2
- package/dist/{chunk-xpj8gb9a.js → chunk-46bgwhx8.js} +2 -2
- package/dist/{chunk-eexn5mmk.js → chunk-4hasepkm.js} +2 -2
- package/dist/{chunk-vazspetj.js → chunk-4vfrxhj4.js} +2 -2
- package/dist/{chunk-n7f38k3f.js → chunk-4z6gyvy3.js} +2 -2
- package/dist/{chunk-54awxpw2.js → chunk-51s7qck0.js} +2 -2
- package/dist/{chunk-fz9y067h.js → chunk-544g9fky.js} +2 -2
- package/dist/chunk-5e575zvm.js +2 -0
- package/dist/{chunk-4sj3t6mk.js → chunk-5f7t16kj.js} +2 -2
- package/dist/{chunk-sb2694hc.js → chunk-5fyxge7c.js} +2 -2
- package/dist/{chunk-46j8adkj.js → chunk-5hjk7xnq.js} +2 -2
- package/dist/{chunk-ezaypwps.js → chunk-5jvpeww3.js} +2 -2
- package/dist/{chunk-3kxerrsh.js → chunk-5p53j8mf.js} +2 -2
- package/dist/{chunk-7jk8s061.js → chunk-5t2ge7gg.js} +2 -2
- package/dist/chunk-6ewv4vns.js +2 -0
- package/dist/chunk-6wsr59dr.js +2 -0
- package/dist/{chunk-91jmmkd3.js → chunk-6yx869ht.js} +2 -2
- package/dist/{chunk-717437bm.js → chunk-704h27t9.js} +2 -2
- package/dist/{chunk-tjc0ntnh.js → chunk-705j0x4q.js} +2 -2
- package/dist/{chunk-ansfap1a.js → chunk-7a806p3q.js} +3 -3
- package/dist/{chunk-dwf38vyq.js → chunk-7d8xet8s.js} +2 -2
- package/dist/chunk-7gv27b1c.js +2 -0
- package/dist/{chunk-06aaghwq.js → chunk-7k2z2nvy.js} +2 -2
- package/dist/{chunk-5arfhz6m.js → chunk-7n3z2bay.js} +2 -2
- package/dist/{chunk-yn3d949k.js → chunk-7r3k37ys.js} +2 -2
- package/dist/{chunk-k1atcess.js → chunk-7z1k4s4f.js} +2 -2
- package/dist/{chunk-qdbyn3xv.js → chunk-82e3194f.js} +2 -2
- package/dist/{chunk-hzhcajx1.js → chunk-8q5zwkry.js} +2 -2
- package/dist/{chunk-vvy4ke91.js → chunk-8tnx3p86.js} +1 -1
- package/dist/{chunk-pbx1417n.js → chunk-93bqj8az.js} +2 -2
- package/dist/chunk-9dm7j0c9.js +4 -0
- package/dist/{chunk-36rxa8k7.js → chunk-9ecgnmtx.js} +3 -3
- package/dist/{chunk-sdhkpkbs.js → chunk-9h9vtcwk.js} +2 -2
- package/dist/{chunk-wf4z9w5x.js → chunk-9m36e0yq.js} +2 -2
- package/dist/{chunk-d5pn8932.js → chunk-9n8cds8p.js} +2 -2
- package/dist/{chunk-6r1e3y4e.js → chunk-9pm3vzgx.js} +3 -3
- package/dist/{chunk-efkfzgs9.js → chunk-9qqxdv6f.js} +2 -2
- package/dist/{chunk-32zzqeyf.js → chunk-a0qy1r02.js} +2 -2
- package/dist/{chunk-w7vcd8d1.js → chunk-a1wbf348.js} +3 -3
- package/dist/{chunk-bajn7ssf.js → chunk-abbpbnjj.js} +2 -2
- package/dist/{chunk-r7z3mvej.js → chunk-af0e5epn.js} +2 -2
- package/dist/{chunk-smd9rszw.js → chunk-askwff3a.js} +3 -3
- package/dist/{chunk-3btheq4v.js → chunk-awrz081w.js} +2 -2
- package/dist/{chunk-3cwbxnxr.js → chunk-ay699evt.js} +3 -3
- package/dist/chunk-b5g055qp.js +2 -0
- package/dist/{chunk-6kyq5zxt.js → chunk-b7ze9dje.js} +2 -2
- package/dist/{chunk-2c4hqv8f.js → chunk-b89bzpce.js} +2 -2
- package/dist/{chunk-f9zpep12.js → chunk-bf7sgpzq.js} +2 -2
- package/dist/{chunk-cp3qcgdv.js → chunk-bnzpnsh1.js} +3 -3
- package/dist/{chunk-ds6bqmdr.js → chunk-c3nn4h2q.js} +2 -2
- package/dist/chunk-c4mm4fzg.js +2 -0
- package/dist/{chunk-sx1gjwb6.js → chunk-c4rptwfx.js} +3 -3
- package/dist/{chunk-37x36kph.js → chunk-c531krny.js} +3 -3
- package/dist/{chunk-z930082m.js → chunk-cfj92m1y.js} +2 -2
- package/dist/{chunk-v6f6s828.js → chunk-chg6j0zg.js} +2 -2
- package/dist/{chunk-d8bjsf1d.js → chunk-cj99j82f.js} +2 -2
- package/dist/{chunk-qz9q0g2b.js → chunk-cjj5bxdb.js} +2 -2
- package/dist/{chunk-m7t9asrq.js → chunk-cr0pb6g0.js} +2 -2
- package/dist/{chunk-7rqryntm.js → chunk-cy5kh1yr.js} +2 -2
- package/dist/chunk-d9q9qgm1.js +2 -0
- package/dist/{chunk-pqw5qz4e.js → chunk-djqexpgf.js} +2 -2
- package/dist/chunk-eb78ebxa.js +2 -0
- package/dist/{chunk-9xdne4k4.js → chunk-egbb5295.js} +2 -2
- package/dist/{chunk-r013w7yb.js → chunk-enc99kvz.js} +2 -2
- package/dist/chunk-et3nrp9v.js +2 -0
- package/dist/{chunk-4y07ykv2.js → chunk-f84mdhkx.js} +2 -2
- package/dist/{chunk-kq8jv5tf.js → chunk-f8bx4etj.js} +2 -2
- package/dist/{chunk-7egc2x4q.js → chunk-fbrv2v3t.js} +1 -1
- package/dist/chunk-fdfftrzj.js +5 -0
- package/dist/chunk-fer4r3b8.js +2 -0
- package/dist/chunk-fy8dmpv3.js +2 -0
- package/dist/{chunk-6eebeq0f.js → chunk-ggxdrm0c.js} +2 -2
- package/dist/{chunk-6gejqbns.js → chunk-gh1rtwrb.js} +2 -2
- package/dist/{chunk-y5xjf5sb.js → chunk-h3geg09z.js} +2 -2
- package/dist/chunk-h4cx5xr4.js +4 -0
- package/dist/{chunk-b64hyshj.js → chunk-hj8nkk6a.js} +2 -2
- package/dist/chunk-hjbq9ez1.js +2 -0
- package/dist/chunk-hwppy236.js +2 -0
- package/dist/chunk-hzcerz8j.js +2 -0
- package/dist/{chunk-nravn5bk.js → chunk-j29d8rts.js} +2 -2
- package/dist/{chunk-darm80tf.js → chunk-j4w2hbbe.js} +2 -2
- package/dist/chunk-j9f4mh66.js +2 -0
- package/dist/{chunk-fvf1et2s.js → chunk-jftxq3se.js} +2 -2
- package/dist/{chunk-52hvpdxw.js → chunk-jfyz3rx6.js} +2 -2
- package/dist/{chunk-dbrrbwb8.js → chunk-jhaf3qtt.js} +2 -2
- package/dist/{chunk-x9rppnkq.js → chunk-jnpkpe5t.js} +2 -2
- package/dist/chunk-jp2s1xsa.js +2 -0
- package/dist/chunk-jzarxwap.js +2 -0
- package/dist/{chunk-6g5qmjph.js → chunk-k3h77wtz.js} +2 -2
- package/dist/{chunk-mtcxr3ns.js → chunk-kagkszdc.js} +2 -2
- package/dist/{chunk-188q5xn8.js → chunk-kdcde4s5.js} +2 -2
- package/dist/{chunk-g9426ns9.js → chunk-kvwyryw2.js} +2 -2
- package/dist/{chunk-r3s28905.js → chunk-kx9nnmwb.js} +3 -3
- package/dist/{chunk-afnnrn6z.js → chunk-ky3n1mza.js} +2 -2
- package/dist/chunk-ky4j58wz.js +2 -0
- package/dist/{chunk-cxhyh0w9.js → chunk-m6yg0dc9.js} +2 -2
- package/dist/{chunk-jbnbx285.js → chunk-m8243rnx.js} +2 -2
- package/dist/{chunk-239gtn3z.js → chunk-ma6ycen5.js} +2 -2
- package/dist/{chunk-1bvgs2t1.js → chunk-mahky9ad.js} +2 -2
- package/dist/chunk-mdzng667.js +2 -0
- package/dist/{chunk-w5rg8wk8.js → chunk-mfmh7ztq.js} +2 -2
- package/dist/{chunk-qd8j2d63.js → chunk-mfrg4vze.js} +5 -5
- package/dist/chunk-mgs3dhdm.js +2 -0
- package/dist/{chunk-2rk59ngw.js → chunk-mq32437t.js} +2 -2
- package/dist/{chunk-pqz2471h.js → chunk-n8b9yg4q.js} +2 -2
- package/dist/{chunk-6ja6pt5x.js → chunk-n96z8etk.js} +2 -2
- package/dist/{chunk-ymgc4317.js → chunk-nec3tcjh.js} +2 -2
- package/dist/{chunk-vvmmzcms.js → chunk-nf7q3crw.js} +3 -3
- package/dist/{chunk-jkqh03w4.js → chunk-nqt9gyz9.js} +2 -2
- package/dist/chunk-p0v9d7e1.js +2 -0
- package/dist/{chunk-nn8pmwqz.js → chunk-p6ffd8yn.js} +2 -2
- package/dist/{chunk-5h8h4sas.js → chunk-p9226dye.js} +2 -2
- package/dist/{chunk-b4wh6k5s.js → chunk-p9x6rya1.js} +2 -2
- package/dist/{chunk-dzw6vqqf.js → chunk-pd5yrdg6.js} +2 -2
- package/dist/{chunk-qc49fm8e.js → chunk-pe79c1re.js} +2 -2
- package/dist/{chunk-vbbndjfd.js → chunk-pwk7epmy.js} +2 -2
- package/dist/{chunk-8ktb3g8c.js → chunk-py2q899w.js} +2 -2
- package/dist/chunk-pyqhwz2d.js +4 -0
- package/dist/{chunk-yfb5hj4w.js → chunk-q988bycf.js} +2 -2
- package/dist/chunk-qj87dxrr.js +2 -0
- package/dist/{chunk-vjgze5n7.js → chunk-qm0zd4wj.js} +2 -2
- package/dist/{chunk-m7tj6194.js → chunk-qmx3t5he.js} +2 -2
- package/dist/chunk-qth2ames.js +2 -0
- package/dist/chunk-qyfkwznx.js +2 -0
- package/dist/{chunk-7sf2wz1n.js → chunk-r84xcy0d.js} +2 -2
- package/dist/{chunk-abxsr9d1.js → chunk-r8gfcyeb.js} +2 -2
- package/dist/chunk-rayhzb8p.js +2 -0
- package/dist/{chunk-tdaznr5w.js → chunk-re34mbpa.js} +2 -2
- package/dist/{chunk-nabyjzn5.js → chunk-rfkgks0a.js} +2 -2
- package/dist/{chunk-cttsbjr0.js → chunk-rhptdqpp.js} +2 -2
- package/dist/chunk-rkqptd9w.js +2 -0
- package/dist/{chunk-yc7w1en3.js → chunk-rrzz41z1.js} +2 -2
- package/dist/{chunk-fvw65b49.js → chunk-rsbced6k.js} +2 -2
- package/dist/{chunk-gt50nb3j.js → chunk-spqfmr4z.js} +2 -2
- package/dist/{chunk-m76tgtge.js → chunk-sqqa7t1n.js} +3 -3
- package/dist/chunk-srqs8z90.js +2 -0
- package/dist/{chunk-agz11n1h.js → chunk-srz8hnnx.js} +3 -3
- package/dist/{chunk-j1khvg9s.js → chunk-t4twdrdg.js} +2 -2
- package/dist/{chunk-6wkcqhkk.js → chunk-tftgnw1w.js} +2 -2
- package/dist/{chunk-q98s7d94.js → chunk-tszqev50.js} +2 -2
- package/dist/{chunk-8p861ztc.js → chunk-tzb4b5ve.js} +2 -2
- package/dist/{chunk-rhyw89ap.js → chunk-v6x7x69b.js} +2 -2
- package/dist/chunk-v92wj4tv.js +2 -0
- package/dist/{chunk-964fwwsg.js → chunk-vcj2jfnz.js} +2 -2
- package/dist/{chunk-36j9fer8.js → chunk-vqqafkcx.js} +2 -2
- package/dist/chunk-vsm89jmx.js +2 -0
- package/dist/{chunk-k0rfgjm6.js → chunk-w1h28vvd.js} +2 -2
- package/dist/{chunk-19jh646d.js → chunk-w2z3sxdq.js} +2 -2
- package/dist/{chunk-0c956xc0.js → chunk-wbjf9maj.js} +2 -2
- package/dist/{chunk-tbz64dbd.js → chunk-wbnmcagf.js} +3 -3
- package/dist/chunk-wg223rq3.js +2 -0
- package/dist/{chunk-9162ez1n.js → chunk-wkbxdz82.js} +2 -2
- package/dist/chunk-wv6ntscn.js +2 -0
- package/dist/{chunk-5n2304a1.js → chunk-wvm8srp7.js} +2 -2
- package/dist/chunk-x03z0hme.js +2 -0
- package/dist/chunk-x072jj4c.js +2 -0
- package/dist/{chunk-bsqe29dh.js → chunk-x4brdfv3.js} +2 -2
- package/dist/{chunk-2c7a0zdc.js → chunk-x4bzkzbt.js} +2 -2
- package/dist/{chunk-6yzknjee.js → chunk-xb6x221t.js} +2 -2
- package/dist/{chunk-5cas0xvp.js → chunk-xckysrk7.js} +2 -2
- package/dist/{chunk-aa2xhwh2.js → chunk-xcx9g1wb.js} +2 -2
- package/dist/{chunk-bnf6pmgc.js → chunk-xg6ayxsy.js} +2 -2
- package/dist/{chunk-fednb216.js → chunk-xxmzqazr.js} +2 -2
- package/dist/chunk-y3kn2w77.js +2 -0
- package/dist/{chunk-7g0cbkbp.js → chunk-y47sn7w2.js} +2 -2
- package/dist/{chunk-n9e1v175.js → chunk-yjm613ey.js} +2 -2
- package/dist/{chunk-5dygcexv.js → chunk-ypdh88cj.js} +2 -2
- package/dist/{chunk-483jakc1.js → chunk-yw927w3q.js} +2 -2
- package/dist/{chunk-dfzhma2x.js → chunk-yx3eqj75.js} +2 -2
- package/dist/{chunk-ybwevt5n.js → chunk-z5n4zqeg.js} +2 -2
- package/dist/chunk-zdqjjwx0.js +2 -0
- package/dist/{chunk-42dfq7ze.js → chunk-zhf7403q.js} +2 -2
- package/dist/{chunk-7vby3f2v.js → chunk-zmr5pwhd.js} +2 -2
- package/dist/{chunk-bbvhgh27.js → chunk-znafsq0a.js} +2 -2
- package/dist/{chunk-6hxz5cpc.js → chunk-zwpv75f4.js} +2 -2
- package/dist/{chunk-ahzjy61p.js → chunk-zyermn00.js} +2 -2
- package/dist/client.js +1 -1
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/artifact-links.js +1 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/edited-files-card.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/codex/navigation-audio.js +1 -1
- package/dist/codex/navigation-preview.js +1 -1
- package/dist/codex/navigation-rail.js +1 -1
- package/dist/codex/patch-view.js +1 -1
- package/dist/codex/plan.js +1 -1
- package/dist/codex/timeline-virtualizer.js +1 -1
- package/dist/codex/turn-activity.js +1 -1
- package/dist/codex/user-message.js +1 -1
- package/dist/codex/virtualized-turn-list.js +1 -1
- package/dist/collections/collection-emoji.js +1 -1
- package/dist/collections/collection-menu.js +1 -1
- package/dist/collections/collection-panel.js +1 -1
- package/dist/collections/collections.js +1 -1
- package/dist/collections/host.js +1 -1
- package/dist/collections/model.js +1 -1
- package/dist/collections/store.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/inline-document.js +1 -1
- package/dist/composer/inline-dom.js +1 -1
- package/dist/composer/menu-radio.js +1 -1
- package/dist/composer/model-select.js +1 -1
- package/dist/composer/permission-mode-select.js +1 -1
- package/dist/composer/prompt-input-attachments.js +1 -1
- package/dist/composer/prompt-input-clipboard.js +1 -1
- package/dist/composer/prompt-input-context.js +1 -1
- package/dist/composer/prompt-input-inline.js +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.js +1 -1
- package/dist/conversation/action-card.js +1 -1
- package/dist/conversation/composer/app-mentions.js +1 -1
- package/dist/conversation/composer/apps-menu.js +1 -1
- package/dist/conversation/composer/composer-menu.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/prompt-history.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/connection-notice.js +1 -1
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-search.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/draft-project-picker.js +1 -1
- package/dist/conversation/session-actions.js +1 -1
- package/dist/conversation/subagent-sessions.js +1 -1
- package/dist/conversation/subagent-tasks.js +1 -1
- package/dist/desktop/desktop-composer.js +1 -1
- package/dist/desktop/desktop.js +1 -1
- package/dist/desktop/draft-model-select.js +1 -1
- package/dist/desktop/load-image.js +1 -1
- package/dist/desktop/model-catalog.js +1 -1
- package/dist/desktop/model-recovery.js +1 -1
- package/dist/desktop/model-settings-action.js +1 -1
- package/dist/desktop/native-file-drop.js +1 -1
- package/dist/generated/commands.js +1 -1
- package/dist/image-lightbox.js +1 -1
- package/dist/image-preview-dialog.js +1 -1
- package/dist/image.js +1 -1
- package/dist/lib/app-reference.js +1 -1
- package/dist/lib/application-metadata.js +1 -1
- package/dist/lib/chat-path.js +1 -1
- package/dist/lib/code-highlighter.js +1 -1
- package/dist/lib/file-url.js +1 -1
- package/dist/lib/fuzzy.js +1 -1
- package/dist/lib/group-blocks.js +1 -1
- package/dist/lib/image-encode.js +1 -1
- package/dist/lib/limits.js +1 -1
- package/dist/lib/markdown-parser.js +1 -1
- package/dist/lib/markdown-parser.worker.js +58 -55
- package/dist/lib/markdown-rules.js +1 -1
- package/dist/lib/model-name.js +1 -1
- package/dist/lib/prepare-prompt-files.js +1 -1
- package/dist/lib/reference-presentation.js +1 -1
- package/dist/lib/stream-style.js +1 -1
- package/dist/lib/streaming-markdown.js +1 -1
- package/dist/lib/tool-artifacts.js +1 -1
- package/dist/mermaid/diagram.js +1 -1
- package/dist/mermaid/export.js +1 -1
- package/dist/mermaid/index.js +1 -1
- package/dist/mermaid/preview.js +1 -1
- package/dist/oauth/claude-login.js +1 -1
- package/dist/oauth.js +1 -1
- package/dist/plugins/catalog-header.js +1 -1
- package/dist/plugins/catalog-skeleton.js +1 -1
- package/dist/plugins/host.js +1 -1
- package/dist/plugins/new-chat-directory.js +1 -1
- package/dist/plugins/panel-item.js +1 -1
- package/dist/plugins/plugin-detail-page.js +1 -1
- package/dist/plugins/plugin-icon.js +1 -1
- package/dist/plugins/plugin-icons.js +1 -1
- package/dist/plugins/plugins-page.js +1 -1
- package/dist/plugins/plugins.js +1 -1
- package/dist/plugins/read-skill-document.js +1 -1
- package/dist/plugins/skill-document.js +1 -1
- package/dist/plugins/skills-tab.js +1 -1
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/reference-projection.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.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/account-menu.js +1 -1
- package/dist/session-list/activity-list.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/navigation-controls.js +1 -1
- package/dist/session-list/navigation-header.js +1 -1
- package/dist/session-list/navigation-store.js +1 -1
- package/dist/session-list/navigation-tabs.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/platform.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/shortcut-hint.js +1 -1
- package/dist/session-list/shortcut.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-notification.js +1 -1
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-cmd-held.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-image-references.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/image-generation-progress.js +1 -1
- package/dist/session-timeline/navigation-rail.js +1 -1
- package/dist/session-timeline/plan.js +1 -1
- package/dist/session-timeline/question-reply.js +1 -1
- package/dist/session-timeline/resource-content.js +1 -1
- package/dist/session-timeline/session-timeline.js +1 -1
- package/dist/session-timeline/timeline-registry.js +1 -1
- package/dist/session-timeline/turn-activity.js +1 -1
- package/dist/session-timeline/turn-error.js +1 -1
- package/dist/session-timeline/turn-retry.js +1 -1
- package/dist/session-timeline/turn-time.js +1 -1
- package/dist/session-timeline/turns.js +1 -1
- package/dist/session-timeline/use-timeline-scroll.js +1 -1
- package/dist/session-timeline/user-message.js +1 -1
- package/dist/settings/codex-account-card.js +1 -1
- package/dist/settings/login-card.js +1 -1
- package/dist/settings/model-alias-settings.js +1 -1
- package/dist/settings/model-aliases.js +1 -1
- package/dist/settings/provider-logos.js +1 -1
- package/dist/settings/provider-section.js +1 -1
- package/dist/settings/providers-port.js +1 -1
- package/dist/settings/providers.js +1 -1
- package/dist/settings/settings-bridge.js +1 -1
- package/dist/settings/settings.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-0f00j53n.js +0 -2
- package/dist/chunk-189aq7st.js +0 -2
- package/dist/chunk-3gkb117f.js +0 -4
- package/dist/chunk-48zgp33j.js +0 -2
- package/dist/chunk-4fghmx57.js +0 -2
- package/dist/chunk-4npg9v6h.js +0 -2
- package/dist/chunk-5wed639g.js +0 -2
- package/dist/chunk-621g2ntr.js +0 -4
- package/dist/chunk-6m9frvzj.js +0 -2
- package/dist/chunk-7ckdhz5y.js +0 -2
- package/dist/chunk-aq22zye1.js +0 -2
- package/dist/chunk-azak3tb5.js +0 -2
- package/dist/chunk-dxfhy8gr.js +0 -2
- package/dist/chunk-eedgav4q.js +0 -2
- package/dist/chunk-ehcnfvaz.js +0 -2
- package/dist/chunk-gdn4vvks.js +0 -2
- package/dist/chunk-ge0anaww.js +0 -4
- package/dist/chunk-gjj5wbms.js +0 -4
- package/dist/chunk-h1t76wws.js +0 -2
- package/dist/chunk-hc9bcwpa.js +0 -2
- package/dist/chunk-hqfhb4ng.js +0 -2
- package/dist/chunk-htsbt68m.js +0 -2
- package/dist/chunk-kzh7w9c0.js +0 -2
- package/dist/chunk-n7pyzjq1.js +0 -2
- package/dist/chunk-nq2tqdb2.js +0 -2
- package/dist/chunk-p781sb6h.js +0 -2
- package/dist/chunk-pv7t4hw8.js +0 -2
- package/dist/chunk-qecs9e31.js +0 -2
- package/dist/chunk-r51vcbf0.js +0 -2
- package/dist/chunk-rak4mkgh.js +0 -2
- package/dist/chunk-sykf5jnc.js +0 -2
- package/dist/chunk-ts7h148j.js +0 -2
- package/dist/chunk-v0xy25sh.js +0 -2
- package/dist/chunk-wfk50eh6.js +0 -2
- package/dist/chunk-wxjm3mq8.js +0 -2
- package/dist/chunk-x0m4ctqf.js +0 -2
- package/dist/chunk-xk41ehy8.js +0 -2
- package/dist/chunk-xpts50f0.js +0 -2
- package/dist/chunk-xqsfaaae.js +0 -2
- package/dist/chunk-y780cd4m.js +0 -2
- package/dist/chunk-ynp45k84.js +0 -2
- package/dist/chunk-yqhvxm9m.js +0 -2
- package/dist/chunk-zcfsbgvw.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$s,js,qs}from"../chunk-qmx3t5he.js";export{$s as codexSettingsBridge,qs as createSettingsBridgeClient,js as serveSettingsBridge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$s,js,qs}from"../chunk-qmx3t5he.js";import"../chunk-6ewv4vns.js";import"../chunk-j9f4mh66.js";import"../chunk-x4brdfv3.js";import"../chunk-wkbxdz82.js";import"../chunk-askwff3a.js";import"../chunk-06mvwewp.js";import"../chunk-rayhzb8p.js";import"../chunk-b89bzpce.js";import"../chunk-wbnmcagf.js";import"../chunk-rkqptd9w.js";import"../chunk-hwppy236.js";import{Qt}from"../chunk-v6x7x69b.js";import{Wt,ci,Zt}from"../chunk-f8bx4etj.js";import{On,Hn,Un,Bn}from"../chunk-wvm8srp7.js";import{E,yt,xt,bt,j,xa,ae,Ln,Dn,ba,Ct,Ca}from"../chunk-j29d8rts.js";import"../chunk-n96z8etk.js";import{Pi,Ti,dn,pa,un,pn}from"../chunk-jzarxwap.js";import{ri,Ks,si,ai,li,Xn}from"../chunk-srz8hnnx.js";import{dt,Jt,Xt}from"../chunk-ggxdrm0c.js";import{Ws}from"../chunk-yjm613ey.js";export{Zt as CodexAccountCard,ci as CodexAccountSummary,Xn as CustomProviderEditor,On as DeepSeekLogo,Hn as GrokLogo,Qt as LoginCard,dt as MODEL_ALIASES_KEY,Ct as MODEL_PRESENTATION,ri as ManagedProviderSection,Ws as ModelAliasSettings,Un as OpenRouterLogo,E as PROVIDERS,Pi as PROVIDERS_CHANGED,Ti as PROVIDERS_REVOKED,li as ProviderRow,Ks as ProviderSection,si as ProviderTabs,Bn as QwenLogo,ai as TestFeedback,Wt as UsageLimitRow,un as applyProvidersWhenIdle,$s as codexSettingsBridge,pa as createManagedProvidersPort,dn as createProvidersPort,qs as createSettingsBridgeClient,ba as customModelEffort,j as gatewayModelId,yt as isAccountModel,xt as parseCustomModels,Ca as presentModel,Dn as providerApplicationPending,bt as providerGroups,Ln as providerKeyUrl,ae as providerRegion,xa as resolveSessionModel,Xt as saveModelAlias,js as serveSettingsBridge,Jt as useModelAliases,pn as useProviders};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwith/module-chat",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
},
|
|
389
389
|
"devDependencies": {
|
|
390
390
|
"@agentclientprotocol/sdk": "^2.7.0",
|
|
391
|
-
"@alwith/api": "^0.6.
|
|
391
|
+
"@alwith/api": "^0.6.3",
|
|
392
392
|
"@happy-dom/global-registrator": "^21.0.4",
|
|
393
393
|
"@tauri-apps/api": "^3.0.0-alpha.3",
|
|
394
394
|
"@testing-library/dom": "^10.4.2",
|
|
@@ -421,8 +421,8 @@
|
|
|
421
421
|
"highlight.js": "^11.12.0",
|
|
422
422
|
"katex": "^0.19.1",
|
|
423
423
|
"ldrs": "^1.1.9",
|
|
424
|
-
"lucide-react": "^1.
|
|
425
|
-
"marked": "^18.2.
|
|
424
|
+
"lucide-react": "^1.74.0",
|
|
425
|
+
"marked": "^18.2.1",
|
|
426
426
|
"marked-linkify-it": "^4.0.2",
|
|
427
427
|
"mermaid": "^12.3.0",
|
|
428
428
|
"motion": "^14.14.0",
|
package/dist/chunk-0f00j53n.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tn}from"./chunk-vazspetj.js";import{createContext as l,useContext as a,useEffect as p,useSyncExternalStore as u}from"react";import{jsx as o}from"react/jsx-runtime";var g=l(null),P=l(null),r=new WeakMap;function qe(e){let t=r.get(e);if(!t)t=tn(e),r.set(e,t);return t}function Rs({host:e,client:t,children:n}){let s=qe(t);return s.bindHost(e),p(()=>s.bindHost(e),[s,e]),o(g,{value:e,children:o(P,{value:t,children:n})})}function d(){let e=a(g);if(e===null)throw Error("Plugins host is missing");return e}function Ke(){let e=a(P);if(e===null)throw Error("Plugins client is missing");return e}function ct(e){let t=Ke();return u((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function i(e){let t=qe(Ke());return u((n)=>t.subscribe(n),()=>e(t.getState()),()=>e(t.getState()))}function We(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
|
|
2
|
-
export{qe,Rs,d,Ke,ct,i,We};
|
package/dist/chunk-189aq7st.js
DELETED
package/dist/chunk-3gkb117f.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{tt}from"./chunk-fz9y067h.js";import{Mr}from"./chunk-b4wh6k5s.js";import{l}from"./chunk-6283nzqs.js";import{fe}from"./chunk-32zzqeyf.js";import{autoUpdate as rt}from"@floating-ui/dom";import{cn as st}from"cn";import{BookOpenIcon as it,FileIcon as at,SquareSlashIcon as lt,StoreIcon as ut}from"lucide-react";import{useCallback as ct,useEffect as y,useLayoutEffect as X,useMemo as Y,useRef as Z,useState as g}from"react";import{createPortal as mt}from"react-dom";import{Button as _}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as d,jsxs as T,Fragment as pt}from"react/jsx-runtime";function Tr({handleRef:a,anchorRef:f,commands:q,renderSlashMenu:k,searchFiles:u,onMention:R,onSearchError:Q,fileSearchDebounceMs:M=0,bashMode:z=!1,forcedOpen:i=!1,onForcedOpenChange:c,emptyLabel:F,fileStatusLabels:L,morePlugins:N}){let D=fe(),s=D.textInput.value,[K,P]=g(0),[O,S]=g(!1),[x,B]=g(null),[E,h]=g(0),U=Z(null);y(()=>{let t=a.current?.getTextarea();if(!t)return;let e=()=>P(t.selectionStart??0),n=()=>{if(document.activeElement===t)e()};return t.addEventListener("keyup",e),t.addEventListener("click",e),t.addEventListener("input",e),t.addEventListener("select",e),t.addEventListener("focus",e),document.addEventListener("selectionchange",n),()=>{t.removeEventListener("keyup",e),t.removeEventListener("click",e),t.removeEventListener("input",e),t.removeEventListener("select",e),t.removeEventListener("focus",e),document.removeEventListener("selectionchange",n)}},[a]);let V=Y(()=>z&&s.startsWith("!")?null:Mr(s,K),[s,K,z]),o=V?.kind==="at"&&!u?null:V,H=`${o?.kind??"forced"}:${o?.query??""}:${i}`,[et,nt]=g(H);if(et!==H)nt(H),h(0);let I=Z(null);y(()=>{if(!i){I.current=null;return}if(I.current===null)I.current=s;else if(s!==I.current)c?.(!1)},[i,s,c]);let b=o?.kind==="at"?o.query:null;y(()=>{if(b===null||!u){B(null);return}let t=!0,e=()=>{u(b).then((r)=>{if(t)B({query:b,search:u,items:r})},(r)=>{if(t)B({query:b,search:u,items:[]}),Q(r)})},n=M>0?window.setTimeout(e,M):null;if(n===null)e();return()=>{if(t=!1,n!==null)window.clearTimeout(n)}},[b,u,M,Q]);let v=Y(()=>{if(o?.kind==="at")return x?.query===o.query&&x.search===u?x.items:[];if(k&&(o?.kind==="slash"||i))return[];if(o)return tt(q,o.query);if(i)return tt(q,"");return[]},[o,i,q,x,u,k]),m=o?o.kind==="slash":i;y(()=>{let t=a.current?.getTextarea();if(!t)return;let e=()=>S(!0),n=()=>{if(S(!1),i)c?.(!1)};return S(document.activeElement===t),t.addEventListener("focus",e),t.addEventListener("blur",n),()=>{t.removeEventListener("focus",e),t.removeEventListener("blur",n)}},[a,i,c]),y(()=>{if(i)a.current?.getTextarea()?.focus()},[i,a]);let p=O&&(o!==null?o.kind==="slash"||v.length>0||!!L:i);y(()=>{if(!p)return;U.current?.querySelector(`[data-idx="${E}"]`)?.scrollIntoView({block:"nearest"})},[E,p]);function A(t){let e=a.current?.getTextarea();if(!e)return;let n,r;if(o){let j=o.kind==="slash"?`${t.payload.startsWith("$")?t.payload:`/${t.payload}`} `:`@${t.label} `;if(n=s.slice(0,o.start)+j+s.slice(o.end),o.kind==="at")R?.(t.payload);r=o.start+j.length}else if(i)n=`${s.length===0||s.endsWith(`
|
|
2
|
-
`)?s:`${s}
|
|
3
|
-
`}${t.payload.startsWith("$")?t.payload:`/${t.payload}`} `,r=n.length,c?.(!1);else return;D.textInput.setInput(n),requestAnimationFrame(()=>{e.focus(),e.setSelectionRange(r,r)})}y(()=>{let t=a.current?.getTextarea();if(!t)return;let e=(n)=>{if(!p||m&&k)return;if(a.current?.isComposing()||n.isComposing||n.keyCode===229)return;if(n.key==="ArrowDown")n.preventDefault(),n.stopPropagation(),h((r)=>v.length===0?0:Math.min(v.length-1,r+1));else if(n.key==="ArrowUp")n.preventDefault(),n.stopPropagation(),h((r)=>Math.max(0,r-1));else if(n.key==="Enter"||n.key==="Tab"){n.preventDefault(),n.stopPropagation();let r=v[E];if(r)A(r)}else if(n.key==="Escape")if(n.preventDefault(),n.stopPropagation(),o)P(Math.max(0,o.start-1)),t.setSelectionRange(o.start,o.start);else c?.(!1)};return t.addEventListener("keydown",e,!0),()=>t.removeEventListener("keydown",e,!0)});let[w,G]=g(null),[W,ot]=g(null),C=ct(()=>{let t=f?.current;if(!t)return;let e=t.getBoundingClientRect();G({left:e.left,width:e.width,bottom:window.innerHeight-e.top+8})},[f]);if(X(()=>{if(!p){G(null);return}C()},[p,C]),X(()=>{let t=f?.current;if(!p||!t||!W)return;return rt(t,W,C,{animationFrame:!0})},[p,W,f,C]),p&&m&&k)return k({query:o?.query??"",close:()=>{if(o)P(o.start),a.current?.getTextarea()?.setSelectionRange(o.start,o.start);else c?.(!1)},selectCommand:(t)=>A({key:t,label:t,payload:t}),replaceQuery:(t)=>{let e=a.current?.getTextarea();if(!e)return;let n=o?.start??e.selectionStart,r=o?.end??e.selectionEnd;D.textInput.setInput(s.slice(0,n)+s.slice(r)),c?.(!1),requestAnimationFrame(()=>{if(a.current?.getTextarea()!==e)return;e.focus(),e.setSelectionRange(n,n),t()})}});if(!p||f&&!w)return null;let J=d("div",{ref:ot,className:f?"fixed z-50":l.position,style:f&&w?{left:w.left,width:w.width,bottom:w.bottom}:void 0,children:T("div",{ref:U,role:"listbox",onMouseDown:(t)=>t.preventDefault(),className:l.surface,children:[T("div",{className:l.list,children:[v.length===0&&m&&d("div",{role:"option","aria-disabled":"true","aria-selected":"false",className:"text-muted-foreground px-2 py-3 text-xs",children:F}),v.length===0&&!m&&L&&d("div",{role:"option","aria-disabled":"true","aria-selected":"false",className:"text-muted-foreground px-2 py-3 text-xs",children:x?.query===b&&x.search===u?L.empty:L.loading}),v.map((t,e)=>{let n=m?t.payload.startsWith("$")?it:lt:at;return T(_,{type:"button",variant:"ghost",role:"option","aria-selected":e===E,"data-idx":e,onMouseDown:(r)=>{r.preventDefault(),A(t)},onMouseEnter:()=>h(e),className:st(m?l.row:"flex h-auto w-full items-center justify-start gap-2.5 rounded-md px-2.5 py-2 text-start",e===E&&l.selected),children:[d(n,{className:m?l.icon:"text-muted-foreground size-4 shrink-0"}),d("span",{className:m?l.label:"text-foreground shrink-0 text-sm font-medium",children:t.label}),t.description&&d("span",{"data-slot":"description",className:l.description,children:t.description})]},t.key)})]}),m&&N&&d(pt,{children:T(_,{type:"button",variant:"ghost",onMouseDown:(t)=>{t.preventDefault(),c?.(!1),N.open()},className:l.row,children:[d(ut,{className:l.icon}),d("span",{className:l.label,children:N.label})]})})]})});return f?mt(J,document.body):J}
|
|
4
|
-
export{Tr};
|
package/dist/chunk-48zgp33j.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o}from"./chunk-r7z3mvej.js";import{ze,ne,ve}from"./chunk-ezaypwps.js";import{useEffect as S,useMemo as f}from"react";function xa(s){let c=ne((i)=>i.activityOrder),a=o((i)=>{let n=Object.values(i.runStates).filter((t)=>c.includes(t.sessionId)&&(t.state==="done"||t.state==="requires_action")&&ze(i,t.sessionId)).map((t)=>[t.sessionId,JSON.stringify([t.state,t.since,t.interruption])]);return JSON.stringify(n)}),e=f(()=>new Map(JSON.parse(a)),[a]),u=ne((i)=>i.activitySeen),r=ve();return S(()=>{if(s==="activity")r({activitySeen:e})},[s,e,r]),s!=="activity"&&[...e].some(([i,n])=>u.get(i)!==n)}
|
|
2
|
-
export{xa};
|
package/dist/chunk-4fghmx57.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zi}from"./chunk-n7pyzjq1.js";import{autoUpdate as L}from"@floating-ui/dom";import{cn as I}from"cn";import{CheckCheckIcon as M,CheckIcon as _,ShieldXIcon as V,XIcon as F}from"lucide-react";import{useCallback as H,useEffect as h,useId as T,useLayoutEffect as N,useRef as S,useState as p}from"react";import{createPortal as z}from"react-dom";import{jsx as i,jsxs as f}from"react/jsx-runtime";var U={allow_once:{icon:_},allow_always:{icon:M},reject_once:{icon:F},reject_always:{icon:V}};function Wi({requestId:u,options:D,title:E,children:P,total:w=1,alwaysLabel:j="always",autoFocus:y="always",anchorRef:n,onRespond:r}){let b=T(),[a,v]=p(0),[s,x]=p(null),[l,A]=p(null),g=S(null),c=Zi(D);h(()=>{v(0)},[u]),h(()=>{let e=document.activeElement;if(y==="always"||e===null||e===document.body)g.current?.focus()},[u,l,y]);let d=H(()=>{let e=n?.current;if(!e)return;let t=e.getBoundingClientRect();if(t.width===0){let o=Math.min(640,window.innerWidth*0.9);x({left:(window.innerWidth-o)/2,width:o,bottom:24});return}x({left:t.left,width:t.width,bottom:window.innerHeight-t.bottom+20})},[n]);if(N(()=>{if(!n)return;let e=0,t=()=>{if(n.current)d();else e=requestAnimationFrame(t)};return t(),()=>cancelAnimationFrame(e)},[u,n,d]),N(()=>{let e=n?.current;if(!e||!l)return;return L(e,l,d,{animationFrame:!0})},[n,l,d]),n&&!s)return null;let k=f("div",{ref:A,"data-overlay":"permission-request",className:I("bg-card border-border flex min-h-0 min-w-0 flex-col overflow-hidden rounded-lg border",n&&"fixed z-50"),style:n&&s?{left:s.left,width:s.width,bottom:s.bottom}:void 0,children:[i("div",{"data-permission-header":!0,className:"shrink-0 px-3 pt-2",children:f("div",{className:"flex items-center justify-between gap-2",children:[i("div",{id:b,className:"text-foreground text-sm font-medium",children:E}),w>1&&i("span",{className:"text-muted-foreground shrink-0 text-xs",children:`1 / ${w}`})]})}),i("div",{"data-permission-content":!0,className:"min-h-0 flex-1 overflow-auto overscroll-contain px-3 pb-2",children:P}),i("div",{role:"listbox","aria-labelledby":b,tabIndex:0,ref:g,onKeyDown:(e)=>{let t=c.length;if(t===0&&e.key!=="Escape")return;if(e.key==="ArrowDown"||e.key==="ArrowUp")e.preventDefault(),v((o)=>e.key==="ArrowDown"?(o+1)%t:(o-1+t)%t);else if(e.key==="Enter")e.preventDefault(),r(c[a].optionId);else if(e.key==="Escape")e.preventDefault(),r(null);else if(/^[1-9]$/.test(e.key)&&Number(e.key)<=t)e.preventDefault(),r(c[Number(e.key)-1].optionId)},className:"border-border shrink-0 border-t outline-none",children:c.map((e,t)=>{let o=e.kind??"allow_once",C=U[o]?.icon??_,K=o==="allow_always"||o==="reject_always",O=o==="reject_once"||o==="reject_always";return f("div",{role:"option",tabIndex:-1,"aria-selected":t===a,title:e.description,onClick:()=>void r(e.optionId),onKeyDown:(m)=>{if(m.key==="Enter"||m.key===" ")m.preventDefault(),m.stopPropagation(),r(e.optionId)},className:I("flex cursor-pointer items-center gap-2 px-3 py-1.5 text-sm select-none",t===a?"bg-ring text-accent-foreground":"text-foreground",O&&t!==a&&"text-muted-foreground"),children:[i("span",{className:"min-w-3 text-xs opacity-70",children:t+1}),i(C,{className:"size-3.5 shrink-0 opacity-80"}),i("span",{className:"min-w-0 flex-1 truncate",children:e.name}),K&&i("span",{className:"bg-muted text-muted-foreground rounded px-1.5 py-0.5 text-[10px] tracking-wide uppercase",children:j})]},e.optionId)})})]});return n?z(k,document.body):k}
|
|
2
|
-
export{Wi};
|
package/dist/chunk-4npg9v6h.js
DELETED
package/dist/chunk-5wed639g.js
DELETED
package/dist/chunk-621g2ntr.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{wt,kt,Ln}from"./chunk-xqsfaaae.js";import{Tt,g}from"./chunk-32zzqeyf.js";import{InputGroupTextarea as R}from"@nyssance/shadcn/vega/components/ui/input-group";import{cn as M}from"cn";import{forwardRef as F,useCallback as K,useEffect as T,useImperativeHandle as L,useRef as d}from"react";import{jsx as q}from"react/jsx-runtime";var z=(c)=>!c.shiftKey,N=()=>!1,go=F(({onChange:c,onKeyDown:b,onCompositionStart:y,onCompositionEnd:I,className:E,placeholder:C,bashMode:S=!1,isSendShortcut:H=z,isNewlineShortcut:P=N,...h},k)=>{let n=Tt(),p=g(),i=d(!1),s=d(!1),a=d(null),l=d(null),o=K(()=>{if(globalThis.CSS?.supports?.("field-sizing","content")||l.current!==null)return;l.current=requestAnimationFrame(()=>{l.current=null;let e=a.current;if(!e||i.current)return;e.style.height="auto",e.style.height=`${e.scrollHeight}px`})},[]);T(()=>{let e=a.current;if(!e||globalThis.CSS?.supports?.("field-sizing","content"))return;let t,r=new ResizeObserver(([u])=>{if(u&&u.contentRect.width!==t)t=u.contentRect.width,o()});return r.observe(e),o(),()=>{if(r.disconnect(),l.current!==null)cancelAnimationFrame(l.current);l.current=null}},[o]),T(o,[o,n?.textInput.value,h.value]);let m=S&&(n?.textInput.value??"").startsWith("!"),w=(e)=>{if(i.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229||s.current)return;if(b?.(e),e.defaultPrevented)return;if(e.key.length===1&&e.key.charCodeAt(0)<32&&e.key!==`
|
|
2
|
-
`&&e.key!=="\r"&&e.key!=="\t"){e.preventDefault();return}if(m&&n){let t=e.currentTarget.selectionStart===0&&e.currentTarget.selectionEnd===0;if(e.key==="Escape"||(e.key==="Backspace"||e.key==="Delete")&&t){e.preventDefault(),n.textInput.setInput(n.textInput.value.slice(1));return}}if(e.key==="Enter"){if(P(e.nativeEvent)){e.preventDefault();let t=e.currentTarget,{selectionStart:r,selectionEnd:u,value:f}=t,v=`${f.slice(0,r)}
|
|
3
|
-
${f.slice(u)}`;if(n)n.textInput.setInput(v);else t.value=v;let x=r+1;t.setSelectionRange(x,x),o();return}if(H(e.nativeEvent)){e.preventDefault();let t=e.currentTarget.form;if(!t)return;let r=t.querySelector('button[type="submit"]');if(!r||r.disabled)return;t.requestSubmit(r)}}if(e.key==="Backspace"&&e.currentTarget.value===""&&p.files.length>0){e.preventDefault();let t=p.files.at(-1);if(t)p.remove(t.id)}},A=(e)=>{let t=e.clipboardData?.items;if(!t)return;let{imageFiles:r,sawNonImageFile:u}=wt(t),f=kt(t);if(r.length>0)e.preventDefault(),p.add(r);else if(u&&!f)e.preventDefault()},D=n?{value:i.current&&a.current?a.current.value:m?n.textInput.value.slice(1):n.textInput.value,onChange:(e)=>{let t=i.current?e.currentTarget.value:Ln(e.currentTarget);n.textInput.setInput(m?`!${t}`:t),o(),c?.(e)}}:{onChange:(e)=>{if(!i.current)Ln(e.currentTarget);o(),c?.(e)}};return L(k,()=>({resetHeight:()=>{if(a.current)a.current.style.height="auto"},focus:()=>{a.current?.focus()},isComposing:()=>i.current||s.current,getTextarea:()=>a.current}),[]),q(R,{"data-chat-input":!0,ref:a,rows:3,className:M("field-sizing-content max-h-(--chat-input-max-height) min-h-[calc(var(--chat-input-line-height)*3)] min-w-0 flex-1 overflow-x-hidden","leading-(--chat-input-line-height)","placeholder:text-chat-input-placeholder p-0 pe-2.5","bg-chat-input-bg",E),name:"message",onCompositionEnd:(e)=>{i.current=!1;let t=Ln(e.currentTarget);n?.textInput.setInput(m?`!${t}`:t),o(),I?.(e),s.current=!0,requestAnimationFrame(()=>{s.current=!1})},onCompositionStart:(e)=>{s.current=!1,i.current=!0,y?.(e)},onKeyDown:w,onPaste:A,placeholder:C,...h,...D})});go.displayName="PromptInputTextarea";
|
|
4
|
-
export{go};
|
package/dist/chunk-6m9frvzj.js
DELETED
package/dist/chunk-7ckdhz5y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-52hvpdxw.js";import{Xi,Yi,er,tr}from"./chunk-5n2304a1.js";import{kn,N,ht,G,xt}from"./chunk-nravn5bk.js";import{Bot as p}from"lucide-react";import{jsx as l}from"react/jsx-runtime";var r={"alwith-account":Xi,chatgpt:Yi,minimax:er,seedream:tr};function Qi({provider:o,className:i,...a}){let e=Object.hasOwn(r,o)?r[o]:N.find((n)=>n.id===o)?.logo??p;return l(e,{"aria-hidden":"true",...a,className:["size-4 shrink-0",i].filter(Boolean).join(" ")})}var s=new Map(kn.filter((o)=>o.source==="account").flatMap((o)=>o.models.map((i)=>[G(o.id,i.id),i.label]))),d=new Map([...kn.map((o)=>[o.id,o.source==="account"?1:2]),[b.id,0]]);function wn(o){return o.shortLabel??o.label}function Ee(o,i={}){return o.toSorted((e,n)=>(d.get(e.id)??3)-(d.get(n.id)??3)).map((e)=>{let n=e.id===b.id;return{...e,models:e.models.map((t)=>({...t,label:s.get(t.api_id)??t.label,shortLabel:t.shortLabel??xt[t.api_id]?.shortLabel,icon:i.providerIcon?.(e.id,t.api_id)??l(Qi,{provider:n?"chatgpt":e.id==="litellm"||e.id==="alwith-managed-litellm"||ht(t.api_id)?"alwith-account":e.id})}))}})}
|
|
2
|
-
export{Qi,wn,Ee};
|
package/dist/chunk-aq22zye1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{m}from"./chunk-189aq7st.js";import{s}from"./chunk-r7z3mvej.js";import{v,f}from"./chunk-06aaghwq.js";import{Mt}from"./chunk-5cas0xvp.js";import{cn as r}from"cn";import{ArrowLeftIcon as a,ArrowRightIcon as l,SlidersHorizontalIcon as p}from"lucide-react";import{DropdownMenu as c,DropdownMenuContent as u,DropdownMenuItem as d,DropdownMenuTrigger as g}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as w}from"react/jsx-runtime";function la({onCollapseAll:i}){let{t:n}=s();return w(c,{children:[o(g,{render:o(Mt,{"aria-label":n("sessionList.filter"),title:n("sessionList.filter")}),children:o(p,{})}),o(u,{align:"end",className:"w-52",children:o(d,{onClick:i,children:n("sessionList.collapseAllGroups")})})]})}function ca({screen:i,onSwitch:n}){let{t:e}=s(),t=e(i==="main"?"sessionList.openLeading":"sessionList.backToMain");return o(f,{className:r(m,i==="main"?"justify-start":"justify-end"),"aria-label":t,title:t,onClick:n,children:o(v,{children:i==="main"?o(a,{}):o(l,{})})})}
|
|
2
|
-
export{la,ca};
|
package/dist/chunk-azak3tb5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L}from"./chunk-37x36kph.js";import{codexMessageError as v,nativeTurnId as m,textOf as A,turns as S}from"@nyssance/codex-acp-v2/client";function Ea(t){return t.kind==="tool"&&t.name==="mcp_startup"}function _(t){let e=t._meta?.codex;if(typeof e!=="object"||e===null)return null;let n=e.phase;return typeof n==="string"?n:null}function T(t){let e=t._meta?.codex;return typeof e==="object"&&e!==null&&e.notice===!0}function Pi(t){return t.user===null&&t.items.length>0&&t.items.every((e)=>e.kind==="assistant"&&T(e))}function g(t,e,n){let o=t.work.at(-1);if(o?.kind==="activity"&&o.items.at(-1)===n){o.items.push(e);return}t.work.push({kind:"activity",key:`activity:${e.kind}:${e.id}`,items:[e]})}function w(t,e,n){if(t.kind!=="tool"){e.push(t);return}let o=n.get(t.id);if(o===void 0)throw Error(`Grouped tool is missing from the session: ${t.id}`);e.push(o);for(let s of t.children)w(s,e,n)}function E(t,e,n,o){switch(e.kind){case"user":break;case"assistant":{if(v(e)!==null){let u=m(e),f=t.errors.findIndex((p)=>u!==null&&m(p)===u);if(f===-1)t.errors.push(e);else t.errors[f]=e;break}let s=_(e),i=e._meta?.codex,d=L(e._meta).length>0||typeof i==="object"&&i!==null&&"delivery"in i&&i.delivery==="async";if(L(e._meta).length>0)t.final.push(e);else if(d)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else if(s==="final_answer")t.final.push(e);else if(s==="commentary"||T(e)||s===null&&n)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else t.final.push(e);break}case"thought":g(t,e,o);break;case"tool":if(g(t,e,o),e.toolKind==="edit")t.edits.push(e);break;case"plan":t.work.push({kind:"plan",key:`plan:${e.id}`,item:e});break;case"compaction":t.work.push({kind:"compaction",key:`compaction:${e.id}`,item:e});break}}function Ii(t,e=[],n=[]){let o=new Map(e.map((r)=>[r.key,r])),s=new Map(t.items.filter((r)=>r.kind==="tool").map((r)=>[r.id,r])),i={...t,items:t.items.filter((r)=>!Ea(r))},d=new Map(n.map((r,a)=>[r.turnId,a])),u=[],f=[u],p,k=null;for(let r of i.items){let a=m(r),l=d.get(a??"");if(a!==null&&k!==null&&a!==k||l!==void 0&&p!==void 0&&l>p+1)u=[],f.push(u);if(u.push(r),a!==null||r.kind==="user")k=a;if(l!==void 0)p=l}return f.flatMap((r)=>S({...i,items:r})).map((r)=>{let a=r.prompt===null?[]:[r.prompt];for(let c of r.entries)w(c,a,s);let l=a[0];if(l===void 0)throw Error("A turn without items");let I=`turn:${l.kind}:${l.id}`,h=r.endedAt??Math.max(...a.map((c)=>c.at)),y=o.get(I);if(y!==void 0&&j(y.items,a)&&y.endedAt===h)return y;let x={key:I,user:r.prompt,work:[],final:[],errors:[],edits:[],startedAt:r.startedAt??l.at,endedAt:h,replayed:a.every(io),items:a},M=a.findLastIndex((c)=>c.kind!=="user"&&c.kind!=="compaction");return a.forEach((c,b)=>E(x,c,b<M,a[b-1])),x})}function j(t,e){return t.length===e.length&&t.every((n,o)=>n===e[o])}function io(t){let e=t._meta?.codex;return t.replayed||typeof e==="object"&&e!==null&&"historyReplay"in e&&e.historyReplay===!0}function ue(t){return A(t.content)}function mt(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"historyInterrupted"in n&&n.historyInterrupted===!0})}function ro(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"turnInterrupted"in n&&n.turnInterrupted===!0})}function Ti(t){let e=(s)=>{for(let i of t.items){let d=i._meta?.codex;if(typeof d!=="object"||d===null)continue;let u=d[s];if(typeof u==="number"&&Number.isFinite(u)&&u>=0)return u}return},n=e("workDurationMs"),o=e("turnDurationMs");return{durationMs:n??o,durationKind:n===void 0&&o!==void 0?"total":"work",startedAt:e("workStartedAt")}}function Mi(t,e,n){if(n?.user==null)return!1;let o=e.items.map(m).find((i)=>i!==null),s=m(n.user);if(o!==void 0&&s!==null)return o===s;return!e.items.some((i)=>{let d=i._meta?.codex;return typeof d==="object"&&d!==null&&"turnCompletedAt"in d&&typeof d.turnCompletedAt==="number"})&&t.state!=="idle"&&(n.user.echo==="pending"||n.user.echo==="acknowledged")&&e.user!==null&&t.turnEndedAt[e.user.id]===void 0&&e.errors.length===0}function Ni(t,e){if(t.state==="idle")return;let n=e.length-1;while(n>0){let o=e[n];if(o.items.some((s)=>s.kind!=="user"))break;if(!Mi(t,e[n-1],o))break;n--}return e[n]?.key}function Ai(t,e,n){let o=n,s=n;while(o>0&&Mi(t,e[o-1],e[o]))o--;while(s+1<e.length&&Mi(t,e[s],e[s+1]))s++;let i=e.slice(o,s+1),d=i.findLast((u)=>u.items.some((f)=>f.kind!=="user"))??i[0];return{continued:e[n]!==d,items:i.flatMap((u)=>u.items),edits:i.flatMap((u)=>u.edits),startedAt:i[0].startedAt}}
|
|
2
|
-
export{Ea,Pi,Ii,io,ue,mt,ro,Ti,Mi,Ni,Ai};
|
package/dist/chunk-dxfhy8gr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{hs}from"./chunk-hz8yrg2t.js";import{createContext as s,useContext as o,useSyncExternalStore as m}from"react";import{jsx as l}from"react/jsx-runtime";var u=s(null),c=s(null),qo=s(null);function le(){return o(qo)}function Ve({host:e,client:i,children:r}){return l(hs,{host:e,children:l(u,{value:e,children:l(c,{value:i,children:r})})})}function t(){let e=o(u);if(e===null)throw Error("Timeline host is missing");return e}function je(){let e=o(c);if(e===null)throw Error("Timeline client is missing");return e}function w(e,i){return m((r)=>e.subscribe(r),()=>i(e.getState()),()=>i(e.getState()))}function n(e){let i=je();return w(i.store,e)}function Ko(){return o(u)!==null}function ce(e,i){if(e.reportError)e.reportError(i);else console.error(i)}
|
|
2
|
-
export{qo,le,Ve,t,je,w,n,Ko,ce};
|
package/dist/chunk-eedgav4q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{F}from"./chunk-hz8yrg2t.js";import{be}from"./chunk-vhxr0c4c.js";import{isPlanItems as n,isPlanMarkdown as r}from"@nyssance/codex-acp-v2/client";import{jsx as e}from"react/jsx-runtime";function fi({plan:t}){if(r(t))return e("div",{className:"codex-reasoning-details",children:e(F,{text:t.content,streaming:!1})});if(!n(t))return null;return e(be,{entries:t.entries})}
|
|
2
|
-
export{fi};
|
package/dist/chunk-ehcnfvaz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ee}from"./chunk-xca0vnvk.js";import{b}from"./chunk-52hvpdxw.js";import{w}from"./chunk-dxfhy8gr.js";import{an}from"./chunk-4npg9v6h.js";import{Me}from"./chunk-gjj5wbms.js";import{fn}from"./chunk-v0xy25sh.js";import{Ee}from"./chunk-7ckdhz5y.js";import{Cn}from"./chunk-6g5qmjph.js";import{Ae}from"./chunk-q98s7d94.js";import{xn,bn}from"./chunk-zewseva6.js";import{useMemo as C,useRef as g}from"react";import{jsx as i,jsxs as m,Fragment as v}from"react/jsx-runtime";var d;function y(){return d??=fn(),d}function h({imagesOnly:r,picker:n}){let e=an();return i(bn,{imagesOnly:r,picker:n,sessionId:e.session.id,enabled:e.inputReady&&!e.sending&&!e.shellMode,onMention:e.addMention,onBusyChange:e.setAdding})}function Bs({client:r,providers:n,catalog:e,shellCommands:a=!0,imagesOnly:s=!1,modelMenu:c,children:f,...p}){let l=g(null),u=C(()=>({...xn,accept:s?"image/png,image/jpeg,image/webp,image/gif":void 0,onSelectFiles(o){if(!l.current)throw Error("The file picker is not ready");l.current(o)}}),[s]),{session:t}=p,P=w(r.store,(o)=>o.modelRecovery[t.id]??!1);return m(v,{children:[P&&!ee(t.error?.error)&&i(Cn,{client:r,session:t,providers:n??y(),catalog:e},t.id),m(Me,{modelMenu:c??{defaultGroup:b,catalog:(o)=>Ee(o,e),headerAction:i(Ae,{})},...p,attachmentPolicy:u,onShellCommand:a?(o)=>r.executeShell(t.id,o):void 0,children:[i(h,{imagesOnly:s,picker:l}),f]})]})}
|
|
2
|
-
export{Bs};
|
package/dist/chunk-gdn4vvks.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ur}from"./chunk-r7z3mvej.js";import{createContext as r,useContext as i}from"react";import{jsx as s}from"react/jsx-runtime";var n=r(null);function qs({host:o,children:t}){return s(n,{value:o,children:t})}function M(){let o=i(n),e={...Ur(),...o};if(e.t===void 0||e.i18n===void 0)throw Error("Collection host is missing; mount collections inside SessionListProvider or CollectionHostProvider");return e}function ji(o,t){t.catch((e)=>{if(o.reportError)o.reportError(e);else console.error(e)})}function me(){let o=M();return(t)=>ji(o,t)}function $i(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}
|
|
2
|
-
export{qs,M,ji,me,$i};
|
package/dist/chunk-ge0anaww.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{H}from"./chunk-3btheq4v.js";import{vo,p,S,En,yo,bt}from"./chunk-qdbyn3xv.js";import{sr,fo,ar,ho}from"./chunk-3cwbxnxr.js";import{wt,kt,Rn}from"./chunk-xqsfaaae.js";import{fe,g}from"./chunk-32zzqeyf.js";import{cn as q}from"cn";import{forwardRef as z,useImperativeHandle as j,useLayoutEffect as U,useRef as d}from"react";import{jsx as V}from"react/jsx-runtime";var F=(r,E)=>r.text===E.text&&JSON.stringify(r.apps)===JSON.stringify(E.apps),po=z((r,E)=>{let I=fe(),N=g(),s=d(null),R=d(null),a=d(S(p({text:I.textInput.value,apps:r.applications}))),f=d({start:r.initialCaret??p(a.current).length,end:r.initialCaret??p(a.current).length}),h=d(r.initialUndo?[{...r.initialUndo,selection:{start:Math.max(0,(r.initialCaret??1)-1),end:Math.max(0,(r.initialCaret??1)-1)}}]:[]),P=d([]),A=d(""),K=d(r.skillIcon),b=d(!1),x=d(!1),w=d(null),c=d({props:r,controller:I,attachments:N});c.current={props:r,controller:I,attachments:N};let m=()=>{if(s.current&&document.activeElement===s.current)f.current=ar(s.current,a.current.apps,f.current);return f.current},T=()=>{let e=s.current;if(!e)return;let t={...f.current};e.focus(),f.current=t,ho(e,t)},v=()=>({...a.current,selection:m()}),D=(e,t)=>{if(!s.current)return;if(sr(s.current,e,c.current.props.skillNames,c.current.props.skillIcon),K.current=c.current.props.skillIcon,A.current=JSON.stringify(c.current.props.skillNames??[]),s.current.dataset.empty=String(e.text.length===0&&e.apps.length===0),f.current=t,document.activeElement===s.current)ho(s.current,t)},C=(e,t,n=!0,l=!0)=>{if(l&&!F(a.current,e)){if(h.current.push(w.current??v()),h.current.length>100)h.current.shift();P.current=[]}if(w.current=null,a.current=e,f.current=t,n)D(e,t);c.current.props.onApplicationsChange(e.apps),c.current.controller.textInput.setInput(e.text)},y=(e)=>{let t=m(),n=p(a.current),l=p(e),i=new Set([...n.slice(0,t.start),...n.slice(t.end)].flatMap((k)=>typeof k==="string"?[]:[k.id])),u=l.filter((k)=>typeof k==="string"||!i.has(k.id)),o=S([...n.slice(0,t.start),...u,...n.slice(t.end)]),O=t.start+u.length;C(o,{start:O,end:O})},B=(e)=>{let n=(e?h.current:P.current).pop();if(!n)return;(e?P.current:h.current).push(v()),C({text:n.text,apps:n.apps},n.selection,!0,!1)},L=()=>{if(!s.current)return;let e=S(fo(s.current,a.current.apps)),t=m();if(b.current)return;let n=Rn(e.text),l=n===e.text?e:S(p({text:n,apps:e.apps}));C(l,t,n!==e.text)};U(()=>{let e=s.current;if(!e)throw Error("Inline prompt input is missing");Object.defineProperties(e,{value:{configurable:!0,get:()=>a.current.text,set:(i)=>{a.current=S(p({text:i,apps:a.current.apps})),D(a.current,f.current)}},selectionStart:{configurable:!0,get:()=>En(p(a.current),m().start)},selectionEnd:{configurable:!0,get:()=>En(p(a.current),m().end)},setSelectionRange:{configurable:!0,value:(i,u)=>{let o=p(a.current);f.current={start:yo(o,i),end:yo(o,u)},D(a.current,f.current),e.dispatchEvent(new Event("select"))}},disabled:{configurable:!0,get:()=>Boolean(c.current.props.disabled)},form:{configurable:!0,get:()=>e.closest("form")}}),R.current=e,D(a.current,f.current),T();let n=()=>{m()},l=(i)=>{if(c.current.props.disabled){i.preventDefault();return}if(b.current||i.isComposing)return;if(i.inputType==="historyUndo"||i.inputType==="historyRedo")i.preventDefault(),B(i.inputType==="historyUndo");else if(i.inputType==="insertParagraph"||i.inputType==="insertLineBreak")i.preventDefault(),y({text:`
|
|
2
|
-
`,apps:[]});else w.current=v()};return e.addEventListener("beforeinput",l),e.addEventListener("change",L),document.addEventListener("selectionchange",n),()=>{e.removeEventListener("beforeinput",l),e.removeEventListener("change",L),document.removeEventListener("selectionchange",n),R.current=null}},[]),U(()=>{if(b.current)return;let e=S(p({text:I.textInput.value,apps:r.applications}));if(F(e,a.current)&&A.current===JSON.stringify(r.skillNames??[])&&K.current===r.skillIcon)return;let t=m();a.current=e,D(e,t)},[I.textInput.value,r.applications,r.skillNames,r.skillIcon]),j(E,()=>({focus:T,getTextarea:()=>R.current,isComposing:()=>b.current||x.current,resetHeight:()=>{h.current=[],P.current=[]},insertInvocation:(e)=>{T(),y({text:`${e} `,apps:[]})},insertApplication:(e)=>{if(T(),a.current.apps.some((t)=>t.id===e.id))return;y({text:"",apps:[{...e,offset:0}]})}}),[]);let J=(e)=>{if(b.current||x.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;if(c.current.props.onKeyDown?.(e),e.defaultPrevented)return;if((e.metaKey||e.ctrlKey)&&!e.altKey&&(e.key.toLowerCase()==="z"||e.key.toLowerCase()==="y")){e.preventDefault(),B(e.key.toLowerCase()==="z"&&!e.shiftKey);return}if(e.key==="Enter"){if(e.preventDefault(),e.shiftKey)y({text:`
|
|
3
|
-
`,apps:[]});else{let t=s.current?.closest("form"),n=t?.querySelector('button[type="submit"]');if(n&&!n.disabled)t?.requestSubmit(n)}return}if(e.key==="Backspace"||e.key==="Delete"){let t=m(),n=p(a.current);if(t.start!==t.end){e.preventDefault(),y({text:"",apps:[]});return}let l=En(n,t.start),i=H(a.current.text,c.current.props.skillNames??[]).find((o)=>e.key==="Backspace"?o.end===l:o.start===l);if(i){e.preventDefault();let o=t.start-(e.key==="Backspace"?i.name.length:0);C(S([...n.slice(0,o),...n.slice(o+i.name.length)]),{start:o,end:o});return}let u=e.key==="Backspace"?t.start-1:t.start;if(u>=0&&u<n.length&&typeof n[u]!=="string")e.preventDefault(),C(S([...n.slice(0,u),...n.slice(u+1)]),{start:u,end:u});else if(e.key==="Backspace"&&n.length===0){let o=c.current.attachments.files.at(-1);if(o)e.preventDefault(),c.current.attachments.remove(o.id)}}if(e.key.length===1&&e.key.charCodeAt(0)<32)e.preventDefault()},M=(e)=>{let t=m();if(t.start===t.end)return;let n=p(a.current).slice(t.start,t.end),l=S(n);if(e.preventDefault(),e.clipboardData.setData("text/plain",n.map((i)=>typeof i==="string"?i:`${i.name} `).join("")),e.clipboardData.setData(vo,JSON.stringify({version:1,...l})),e.type==="cut"&&!r.disabled)y({text:"",apps:[]})};return V("div",{ref:s,role:"textbox","aria-multiline":"true","aria-label":r["aria-label"],"aria-disabled":r.disabled||void 0,contentEditable:!r.disabled,suppressContentEditableWarning:!0,"data-chat-input":!0,"data-inline-input":!0,"data-placeholder":r.placeholder,"data-empty":a.current.text.length===0&&a.current.apps.length===0,className:q("bg-chat-input-bg data-[empty=true]:before:text-chat-input-placeholder relative max-h-(--chat-input-max-height) min-w-0 flex-1 overflow-y-auto p-0 pe-2.5 leading-(--chat-input-line-height) break-words whitespace-pre-wrap outline-none data-[empty=true]:before:pointer-events-none data-[empty=true]:before:absolute data-[empty=true]:before:content-[attr(data-placeholder)]",r.className),onInput:L,onKeyDown:J,onCompositionStart:()=>{w.current=v(),b.current=!0,x.current=!1},onCompositionEnd:()=>{b.current=!1,L(),x.current=!0,requestAnimationFrame(()=>{x.current=!1})},onPasteCapture:(e)=>r.onPasteCapture?.(e),onPaste:(e)=>{if(e.defaultPrevented||r.disabled)return;let{imageFiles:t,sawNonImageFile:n}=wt(e.clipboardData.items);if(e.preventDefault(),t.length){N.add(t);return}if(n&&!kt(e.clipboardData.items))return;y(bt(e.clipboardData)??{text:Rn(e.clipboardData.getData("text/plain")),apps:[]})},onCopy:M,onCut:M,onDrop:(e)=>{e.preventDefault()}})});po.displayName="PromptInputInline";
|
|
4
|
-
export{po};
|
package/dist/chunk-gjj5wbms.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Nr}from"./chunk-32zzqeyf.js";import{Tr}from"./chunk-3gkb117f.js";import{ts}from"./chunk-x0m4ctqf.js";import{p,S,bt}from"./chunk-qdbyn3xv.js";import{Le}from"./chunk-5wed639g.js";import{xr,br,Cr,wr,kr}from"./chunk-pbx1417n.js";import{nr,or}from"./chunk-bajn7ssf.js";import{H}from"./chunk-3btheq4v.js";import{po}from"./chunk-ge0anaww.js";import{go}from"./chunk-621g2ntr.js";import{n}from"./chunk-dxfhy8gr.js";import{e}from"./chunk-2c4hqv8f.js";import{co,Gi}from"./chunk-htsbt68m.js";import{lo}from"./chunk-4npg9v6h.js";import{r,Bi,J,pn}from"./chunk-9xdne4k4.js";import{ln}from"./chunk-ahzjy61p.js";import{Je,dn}from"./chunk-kzh7w9c0.js";import{on,sn}from"./chunk-xk41ehy8.js";import{Di}from"./chunk-qc49fm8e.js";import{mn}from"./chunk-nq2tqdb2.js";import{Hi}from"./chunk-dbrrbwb8.js";import{cn}from"./chunk-m7t9asrq.js";import{gn}from"./chunk-12bfnfbk.js";import{Fi}from"./chunk-r3s28905.js";import{Oi}from"./chunk-ds6bqmdr.js";import{yn}from"./chunk-r51vcbf0.js";import{hasFuzzyFileSearch as Kt}from"@nyssance/codex-acp-v2/client";import{useCallback as w,useEffect as jt,useLayoutEffect as rt,useMemo as lt,useRef as N,useState as M}from"react";import{jsx as m,jsxs as R}from"react/jsx-runtime";var qt=["image/png","image/jpeg","image/webp","image/gif"],pt=[];async function Gt(o){let T=await(await fetch(o.url)).blob();return new Promise((I,F)=>{let E=new FileReader;E.onerror=()=>F(E.error),E.onload=()=>{let q=E.result;I(q.slice(q.indexOf(",")+1))},E.readAsDataURL(T)})}function Me({session:o,onSubmit:T,onShellCommand:I,onHandOff:F,modelSelector:E,modelMenu:q,inputHeader:st,actions:Rt,leadingTools:Et,agentControls:G=!0,placeholder:kt,children:Dt,attachmentPolicy:mt,predictions:Nt=!0,disabled:St=!1,preparing:dt=!1,allowPendingInput:Ft=!1}){let{host:O,client:_}=e(),{t:g}=O,z=w((t)=>{if(O.reportError)O.reportError(t);else console.error(t)},[O]),[ut,B]=M(()=>({text:r.get(o.id)?.text??"",revision:0})),{text:v}=ut,[C,Ot]=M(()=>r.get(o.id)?.attachments??pt),[y,Q]=M(()=>r.get(o.id)?.mentions??[]),[d,L]=M(()=>r.get(o.id)?.apps??[]),[ft,K]=M(()=>(r.get(o.id)?.apps?.length??0)>0||H(v,o.commands.map((t)=>t.name)).length>0),W=N(void 0),U=N(void 0);rt(()=>{if(d.length>0)K(!0)},[d.length]);let nt=C.some((t)=>Je(t)&&t.pastedText.status!=="ready"),[k,ht]=M(!1),[Y,_t]=M(!1),[ot,Lt]=M(!1),it=N(null),f=N(null),gt=N(null),c=N(ut),P=w((t)=>{gt.current?.(),c.current={text:t,revision:c.current.revision+1},B(c.current)},[]),xt=w((t)=>{let i=f.current;if(i?.insertApplication){i.insertApplication(t);return}let a=c.current.text,u=i?.getTextarea()?.selectionStart??a.length;U.current={text:a,apps:[]},W.current=u+1,K(!0),P(a),L((l)=>l.some((h)=>h.id===t.id)?l:[...l,{...t,offset:u}])},[P]),Wt=w((t)=>{let i=f.current;if(i?.insertInvocation){i.insertInvocation(t);return}let a=c.current.text,u=i?.getTextarea(),l=u?.selectionStart??a.length,h=u?.selectionEnd??l,ct=`${a.slice(0,l)}${t} ${a.slice(h)}`;U.current={text:a,apps:[]},W.current=l+t.length+1,P(ct),K(!0)},[P]),yt=w(()=>(f.current?.focus(),f.current?.getTextarea()??null),[]),$t=Fi(o,P,L,d.length>0||y.length>0||C.length>0),vt=lt(()=>({read:()=>{let i=f.current?.getTextarea(),a=i===null||i===void 0?[c.current.text.length,c.current.text.length]:[i.selectionStart,i.selectionEnd];return{target:o.id,...c.current,selection:a}},compareAndSet(i,a,u){if(f.current?.isComposing())return null;if(i.target!==o.id||i.revision!==c.current.revision)return null;c.current={text:a,revision:c.current.revision+1},B(c.current);let l=f.current?.getTextarea();if(l!==null&&l!==void 0)l.value=a,l.setSelectionRange(u[0],u[1]);return{target:o.id,...c.current,selection:u}}}),[o.id]),j=N(null),Pt=w((t)=>(j.current=t,()=>{if(j.current===t)j.current=null}),[]),V=o.state!=="idle",x=I!==void 0&&d.length===0&&v.startsWith("!"),X=(ft||d.length>0)&&!x,b=!St&&!dt&&o.attached&&!o.restoring&&!o.readOnly,D=!o.readOnly&&(Ft||b),Z=gn(o,b&&!k&&!Y&&!nt&&!ot,v.length>0||C.length>0||y.length>0||d.length>0,Nt&&!x),It=Z.invalidate;rt(()=>{r.set(o.id,{text:v,attachments:C,mentions:y,...d.length>0?{apps:d}:{},modelId:r.get(o.id)?.modelId??null})},[o.id,v,C,y,d]),rt(()=>Bi(o.id,Ot),[o.id]),rt(()=>pn(o.id,(t,i)=>{if(!D||k)throw Error("The composer cannot take text now; try again later");if(i!=="append"&&(v.length||C.length||y.length||d.length))throw Error("The composer already has a draft; send or clear it first");P(t)}),[o.id,D,k,v,C,y,d,P]);let At=n((t)=>Kt(t.agent)),Ut=lt(()=>At&&b?async(t)=>ln((await _.fuzzyFileSearch({query:t,roots:[o.cwd],cancellationToken:null})).files):void 0,[_,At,b,o.cwd]),at=w((t)=>{Q((i)=>i.includes(t)?i:[...i,t])},[]);jt(()=>{f.current?.focus()},[]);let wt=w(async({text:t,files:i})=>{let a=I!==void 0&&d.length===0&&t.startsWith("!")?t.slice(1):null;if(a!==null){if(a.trim().length===0)return;if(i.length||y.length||d.length)throw Error("Shell commands cannot include file references or attachments");if(o.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let u=t.trim();if(u.length===0&&i.length===0&&y.length===0&&d.length===0)return;let l=j.current;ht(!0);let h=r.get(o.id),ct=c.current.revision,tt=null;try{let A=d.map((s)=>({type:"resource_link",name:s.name,uri:`app://${s.id}`}));for(let s of y){let et={kind:"file",absPath:s};A.push({type:"resource_link",uri:on(et),name:sn(et)})}let Mt=ts(u,d);if(Mt.length>0)A.push({type:"text",text:Mt});for(let s of i)if(Je(s)){if(s.pastedText.status!=="ready")throw Error("Text attachment is not ready");A.push({type:"resource_link",uri:s.url,name:s.filename??"pasted-text.txt"})}else A.push({type:"image",data:await Gt(s),mimeType:s.mediaType});if(c.current.revision===ct&&r.get(o.id)===h)c.current={text:"",revision:c.current.revision+1},tt=c.current.revision,B(c.current),Q([]),L([]),W.current=void 0,U.current=void 0,J(o.id,()=>pt),r.set(o.id,{text:"",attachments:pt,mentions:[],apps:[],modelId:h?.modelId??null}),f.current?.resetHeight();if(a!==null&&I)await I(a);else if(T)if(l===null)await T(A);else await T(A,(s)=>{if(l.signal.aborted||j.current!==l)return;l.accept(s),F?.(o.id,s)});else if(l===null)await _.prompt(o.id,A);else{let s=await _.prompt(o.id,A);l.accept(s)}It();for(let s of h?.attachments??[])if(s.url.startsWith("blob:")&&!r.get(o.id)?.attachments.some((et)=>et.id===s.id))URL.revokeObjectURL(s.url)}catch(A){if(h&&tt!==null&&c.current.revision===tt&&r.get(o.id)?.attachments.length===0&&r.get(o.id)?.mentions.length===0&&!r.get(o.id)?.apps?.length)c.current={text:h.text,revision:tt+1},B(c.current),Q(h.mentions),L(h.apps??[]),r.set(o.id,h),J(o.id,()=>h.attachments);throw A}finally{ht(!1),f.current?.focus()}},[_,o.id,o.state,y,d,T,I,F,It]),zt=()=>{_.cancel(o.id).catch(z)},Bt=w((t)=>{let i=t.code==="max_total_size"?Object.assign(Error(g("composer.imageTooLargeTitle")),{description:g("composer.imageTooLargeDescription",{mb:Le})}):Object.assign(Error(g("composer.unsupportedAttachmentTitle")),{description:g("composer.unsupportedAttachmentDescription")});z(i)},[z,g]),Ht=lt(()=>({session:o,ready:b,inputReady:D,sending:k,textareaRef:f,draft:vt,interruptRef:gt,observeReceipts:Pt,addMention:at,setAdding:_t,shellMode:x,handsFree:!x&&(T===void 0||F!==void 0)}),[o,b,D,k,vt,Pt,at,T,F,x]),Tt=O.writeTextAttachment,Ct={className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,onKeyDown:$t,bashMode:I!==void 0,disabled:!D,"aria-label":g("composer.placeholder"),placeholder:x?"! command":Z.text||kt||(V?g("composer.steerPlaceholder"):g("composer.placeholder")),onPasteCapture:(t)=>{if(!X&&!x&&!t.currentTarget.disabled&&![...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/"))){let i=bt(t.clipboardData);if(i?.apps.length){t.preventDefault();let a=t.currentTarget,u=p(i),l=S([...a.value.slice(0,a.selectionStart).split(""),...u,...a.value.slice(a.selectionEnd).split("")]);U.current={text:v,apps:[]},W.current=a.selectionStart+u.length,K(!0),L(l.apps),P(l.text);return}}if(Tt)dn(t,o.id,g("composer.pastedTextFilename"),Tt)}};return m(lo,{value:Ht,children:m("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:R("div",{className:"relative",children:[st&&m("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:st}),m(Nr,{attachmentPolicy:mt,value:v,revision:c.current.revision,onValueChange:P,onSubmittedClear:()=>{c.current={text:"",revision:c.current.revision+1},B(c.current)},attachments:C,onAttachmentsChange:(t)=>J(o.id,()=>t),children:R("div",{ref:it,className:"relative",children:[G&&!ot&&m(Tr,{bashMode:I!==void 0,handleRef:f,commands:o.commands,renderSlashMenu:(t)=>m(co,{anchorRef:it,commands:o.commands,query:t.query,includeAttachment:!1,disabled:!D,agentDisabled:!b||x,open:!0,onClose:t.close,onCommand:(i)=>t.replaceQuery(()=>Wt(i.startsWith("$")?i:`/${i}`)),onApp:(i)=>t.replaceQuery(()=>xt(i)),focusInput:yt}),searchFiles:Ut,onMention:at,onSearchError:z,emptyLabel:g("composer.noCommands"),fileStatusLabels:{loading:g("composer.searchingFiles"),empty:g("composer.noMatchingFiles")}},X?"inline":"textarea"),R(xr,{attachmentPolicy:mt,"data-shell-mode":x||void 0,bashMode:I!==void 0,globalDrop:!0,multiple:!0,accept:qt.join(","),onError:Bt,onSubmit:wt,onSubmitAsync:wt,onSubmitError:z,canSubmit:()=>b&&!k&&!Y&&!nt&&(!x||!V&&v.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[Dt,R(Cr,{className:"px-3 pt-3 pb-0 empty:hidden",children:[Y&&m("span",{role:"status",className:"text-muted-foreground text-xs",children:g("composer.addingFiles")}),m(Di,{mentions:y,onRemove:(t)=>Q((i)=>i.filter((a)=>a!==t))}),m(or,{children:(t)=>Je(t)?m(Hi,{data:t,sessionId:o.id}):m(nr,{data:t,t:g})})]}),R(br,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(t)=>{if(!Z.text||f.current?.isComposing()||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||t.target!==f.current?.getTextarea())return;if(t.key==="Tab"||t.key==="ArrowRight"||t.key==="Enter")t.preventDefault(),t.stopPropagation(),P(Z.text)},children:[x&&m("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),X?m(po,{...Ct,skillIcon:O.skillIcon,skillNames:o.commands.map((t)=>t.name),applications:d,onApplicationsChange:L,initialCaret:W.current,initialUndo:U.current}):m(go,{...Ct,autoFocus:ft&&x})]}),m(wr,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:R("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[R("div",{className:"flex min-w-0 items-center gap-[5px]",children:[m(Gi,{anchorRef:it,commands:o.commands,disabled:!D,agentDisabled:!b||x,agentControls:G,open:ot,onOpenChange:Lt,focusInput:yt,onCommand:(t)=>{let i=c.current.text,a=i.length===0||i.endsWith(`
|
|
2
|
-
`)?i:`${i}
|
|
3
|
-
`,u=t.startsWith("$")?t:`/${t}`,l=`${a}${u} `;if(!X)U.current={text:i,apps:[]},W.current=l.length,K(!0);P(l),requestAnimationFrame(()=>{let h=f.current?.getTextarea();h?.focus(),h?.setSelectionRange(l.length,l.length)})},onApp:xt}),Et,G&&m(cn,{sessionId:o.id,options:o.configOptions,disabled:!b})]}),R(kr,{className:"w-full min-w-0 items-center justify-end gap-1",children:[G&&m(yn,{session:o}),E??m(mn,{...q,sessionId:o.id,options:o.configOptions,disabled:!b}),Rt,m(Oi,{active:V,sending:k||dt||Y,ready:b&&!nt&&(!x||!V&&v.slice(1).trim().length>0),hasMentions:y.length>0||d.length>0,onStop:zt})]})]})})]})]})})]})})})}
|
|
4
|
-
export{Me};
|
package/dist/chunk-h1t76wws.js
DELETED
package/dist/chunk-hc9bcwpa.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function*Jn(n,e){if(e.length===0)return;let r=new RegExp(e.replaceAll(/[.*+?^{}()|[\]\\$]/g,String.raw`\$&`),"giu");for(let t of n.matchAll(r))yield{start:t.index,end:t.index+t[0].length}}function ei(n,e){if(e.length===0)return[];let r=[];for(let{turnKey:t,segments:o}of n){let c=0;for(let s of o)for(let a of Jn(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
|
|
2
|
-
export{Jn,ei};
|
package/dist/chunk-hqfhb4ng.js
DELETED
package/dist/chunk-htsbt68m.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Pt}from"./chunk-7rqryntm.js";import{tt}from"./chunk-fz9y067h.js";import{l}from"./chunk-6283nzqs.js";import{g}from"./chunk-32zzqeyf.js";import{z}from"./chunk-pbx1417n.js";import{e}from"./chunk-2c4hqv8f.js";import{BlocksIcon as Q,BookOpenIcon as Y,PaperclipIcon as Z,PlusIcon as q,SquareSlashIcon as ee}from"lucide-react";import{useEffect as j,useLayoutEffect as te,useRef as S,useState as M}from"react";import{createPortal as ne}from"react-dom";import{Button as se}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as I,Fragment as oe}from"react/jsx-runtime";function co({anchorRef:r,commands:k,disabled:i,agentDisabled:c,open:a,onCommand:E,onApp:h,focusInput:L,includeAttachment:f,query:y="",onClose:p,triggerRef:B}){let{client:v,host:N}=e(),{t:d}=N,G=g(),P=S(null),[D,C]=M(null),x=`${a}:${f}:${y}`,[X,U]=M(x);if(X!==x)U(x),C(null);let[F,H]=M([]),[O,T]=M("loading");j(()=>{if(!a||c||!v.installedApps)return;let t=!0;return T("loading"),H([]),v.installedApps().then(({apps:s})=>{if(!t)return;H(s.filter((u)=>u.enabled&&u.callable)),T("ready")},(s)=>{if(!t)return;T("error"),N.reportError?.(s)}),()=>{t=!1}},[a,c,v,N]);let K=(t)=>{if(t.disabled)return;p(),t.run(),L()},W=tt(k,y,Number.MAX_SAFE_INTEGER),_=(t)=>({key:`command:${t.key}`,label:t.payload.startsWith("$")?t.label.slice(1):t.label,description:t.description,skillName:t.payload.startsWith("$")?t.payload.slice(1):void 0,disabled:i||c,run:()=>E(t.payload)}),V=Pt(F,y,(t)=>t.runtimeName||t.id,Number.MAX_SAFE_INTEGER).map(({item:t})=>t),R=[{id:"commands",label:d(f?"composer.attachmentsAndCommands":"composer.commands"),entries:[...f?[{key:"attachment",label:d("composer.addAttachment"),disabled:i,run:()=>G.openFileDialog()}]:[],...W.filter((t)=>!t.payload.startsWith("$")).map(_)],status:void 0},{id:"skills",label:d("composer.skills"),entries:W.filter((t)=>t.payload.startsWith("$")).map(_),status:void 0},{id:"apps",label:d("composer.apps"),entries:V.map((t)=>({key:`app:${t.id}`,label:t.runtimeName||t.id,disabled:i||c,run:()=>h({id:t.id,name:t.runtimeName||t.id})})),status:O==="loading"?d("composer.appsLoading"):O==="error"?d("composer.appsFailed"):F.length===0&&!y.trim()?d("composer.appsEmpty"):void 0}].filter((t)=>(t.id!=="apps"||!c&&Boolean(v.installedApps))&&(!y.trim()||t.entries.length>0||t.status)),m=R.flatMap((t)=>t.entries).filter((t)=>!t.disabled),b=m.some((t)=>t.key===D)?D:m[0]?.key;if(j(()=>{if(!a)return;let t=L();if(!t)throw Error("The composer input is missing");let s=(n)=>{if(n.target instanceof Node&&!P.current?.contains(n.target)&&!B?.current?.contains(n.target)&&!t.contains(n.target))p()},u=(n)=>{if(n.isComposing||n.keyCode===229)return;if(n.key==="Escape")n.preventDefault(),n.stopPropagation(),p();else if(n.key==="ArrowDown"||n.key==="ArrowUp"){n.preventDefault(),n.stopPropagation();let w=m.findIndex((J)=>J.key===b),A=Math.max(0,Math.min(m.length-1,w+(n.key==="ArrowDown"?1:-1)));if(m[A])C(m[A].key)}else if(n.key==="Enter"||n.key==="Tab"){n.preventDefault(),n.stopPropagation();let w=m.find((A)=>A.key===b);if(w)K(w)}};if(t.addEventListener("keydown",u,!0),f)t.addEventListener("input",p);return t.addEventListener("blur",p),document.addEventListener("pointerdown",s,!0),()=>{t.removeEventListener("keydown",u,!0),t.removeEventListener("input",p),t.removeEventListener("blur",p),document.removeEventListener("pointerdown",s,!0)}},[a,b,m,L,p,f,B]),te(()=>{if(a)P.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({block:"nearest"})},[a,b]),!a)return null;if(!r.current)throw Error("The composer menu anchor is missing");return ne(o("div",{className:l.position,children:o("div",{ref:P,role:"listbox","aria-label":d(f?"composer.add":"composer.commands"),onMouseDown:(t)=>t.preventDefault(),className:l.surface,children:I("div",{className:l.list,children:[R.length===0&&o("div",{role:"option","aria-disabled":"true","aria-selected":"false",className:l.notice,children:d("composer.addEmpty")}),R.map((t)=>I("div",{role:"group","aria-label":t.label,children:[o("div",{className:l.group,children:t.label}),t.entries.map((s)=>{let u=s.key==="attachment"?Z:t.id==="skills"?Y:t.id==="apps"?Q:ee,n=s.skillName===void 0?void 0:N.skillIcon?.(s.skillName);return I(se,{type:"button",variant:"ghost",role:"option",disabled:s.disabled,"aria-selected":s.key===b,onMouseEnter:()=>{if(!s.disabled)C(s.key)},onClick:()=>K(s),className:`${l.row}${s.key===b?` ${l.selected}`:""}`,children:[n?o("img",{src:n,alt:"","aria-hidden":"true",className:`${l.icon} object-contain`}):o(u,{className:l.icon}),o("span",{className:l.label,children:s.label}),s.description&&o("span",{"data-slot":"description",className:l.description,children:s.description})]},s.key)}),t.status&&o("div",{role:"option","aria-disabled":"true","aria-selected":"false",className:l.notice,children:t.status})]},t.id))]})})}),r.current)}function Gi({agentControls:r,onOpenChange:k,...i}){let{host:c}=e(),a=g(),E=S(null),h=S(!1);return I(oe,{children:[o(z,{ref:E,disabled:i.disabled,"aria-label":c.t(r?"composer.add":"composer.attachImage"),title:c.t(r?"composer.add":"composer.attachImage"),"aria-haspopup":r?"listbox":void 0,"aria-expanded":r?i.open:void 0,className:"text-foreground",onPointerDown:()=>{h.current=i.open},onClick:()=>{if(r)k(!h.current),i.focusInput();else a.openFileDialog()},children:o(q,{className:"size-4"})}),r&&i.open&&o(co,{...i,includeAttachment:!0,onClose:()=>k(!1),triggerRef:E})]})}
|
|
2
|
-
export{co,Gi};
|
package/dist/chunk-kzh7w9c0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ne}from"./chunk-cxhyh0w9.js";import{r,J,un}from"./chunk-9xdne4k4.js";var Ui=5000;function Je(t){return"pastedText"in t}function ft(t,e,p){let n=(a,o)=>{for(let[i,x]of r){if(!x.attachments.some((s)=>s.id===e.id))continue;J(i,(s)=>s.map((d)=>d.id===e.id?{...e,url:o===void 0?"":Ne(o),pastedText:{text:e.pastedText.text,status:a}}:d))}};if(!r.get(t)?.attachments.some((a)=>a.id===e.id))return;n("pending"),un(e.id,p("pasted-text.txt",e.pastedText.text).then((a)=>n("ready",a)).catch(()=>n("error")))}function dn(t,e,p,n){if(t.defaultPrevented||t.currentTarget.disabled)return;if([...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/")))return;let a=t.clipboardData.getData("text/plain");if(a.length<Ui)return;t.preventDefault(),t.stopPropagation();let o={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:p,url:"",pastedText:{text:a,status:"pending"}};J(e,(i)=>[...i,o]),ft(e,o,n)}
|
|
2
|
-
export{Ui,Je,ft,dn};
|
package/dist/chunk-n7pyzjq1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var Ws={allow_once:0,allow_always:1,reject_once:2,reject_always:3};function Zi(e){return[...e].toSorted((o,n)=>(Ws[o.kind]??99)-(Ws[n.kind]??99))}function qa(e){return e==="allow_once"||e==="allow_always"}function Ka(e){return e==="allow_always"||e==="reject_always"}
|
|
2
|
-
export{Ws,Zi,qa,Ka};
|
package/dist/chunk-nq2tqdb2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ct}from"./chunk-dzw6vqqf.js";import{n}from"./chunk-dxfhy8gr.js";import{e,x}from"./chunk-2c4hqv8f.js";import{X,y,Y}from"./chunk-p781sb6h.js";import{isBooleanOption as U,isGroupedSelect as q,isSelectOption as A}from"@nyssance/codex-acp-v2/client";import{Zap as Z}from"lucide-react";import{memo as D,useRef as F}from"react";import{jsx as w}from"react/jsx-runtime";function H({sessionId:l,options:u,disabled:B,onModelChange:h,onConfigChange:C,defaultGroup:G={id:"models",name:"Models"},catalog:I=(c)=>c,headerAction:L}){let{host:c,client:N}=e(),{t:i}=c,P=n((o)=>Boolean(o.configPending[l])),p=F({sessionId:l,model:!0}),b=P&&(p.current.sessionId!==l||p.current.model),k=n((o)=>{let r=o.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),t=y(u,"model"),a=y(u,"thought_level"),O=u.filter((o)=>o.configId!=="collaboration_mode"&&(o.category==="model_config"||o.category!=="mode"&&o!==t&&o!==a)),v=O.filter(A),m=O.filter(U);if(!t&&!a&&v.length===0&&m.length===0)return null;let f=(o,r)=>{if(r===o.currentValue)return Promise.resolve();p.current={sessionId:l,model:o===t};let d=C?C(o.configId,r):N.setConfig(l,o.configId,r);return x(c,d),d},g=a?X(a):[],z=g.reduce((o,r)=>r.name.length>=o.length?r.name:o,""),R=t?Y(t):i("composer.model"),_=(o)=>({api_id:o.value,label:o.name}),S=I(t&&q(t.options)?t.options.map((o)=>({id:o.groupId,name:o.name,models:o.options.map(_)})):[{...G,models:t?X(t).map(_):[]}]),V=S.flatMap((o)=>o.models),M=V.find((o)=>o.api_id===t?.currentValue)??{api_id:t?.currentValue??"",label:R},s=m.find((o)=>o.configId==="fast_mode"||o.configId==="fast-mode");return w(Ct,{disabled:B||b||k,switching:b,value:{...M,label:M.shortLabel??M.label},compactCatalog:!0,models:V,showModelList:Boolean(t),onChange:(o)=>{if(o.api_id===t?.currentValue)return;if(h)h(o.api_id);else if(t)f(t,o.api_id)},header:{name:t?.name??i("composer.model"),action:L},modelGroups:S,t:i,effortConfig:a&&g.length>0?{name:"Effort",value:a.currentValue,levels:g,sizer:z,onChange:(o)=>f(a,o)}:void 0,selectOptions:v.map((o)=>({id:o.configId,name:o.name,value:o.currentValue,options:X(o).map((r)=>({value:r.value,label:r.name})),onChange:(r)=>f(o,r)})),booleanOptions:[{id:"fast_mode",name:i("composer.fastMode"),currentValue:s?.currentValue??!1,disabled:!s,title:!s?i("composer.fastModeUnsupported"):void 0,icon:w(Z,{className:"size-4","aria-hidden":"true"})},...m.filter((o)=>o!==s).map((o)=>({id:o.configId,name:o.name,currentValue:o.currentValue}))],onBooleanChange:(o,r)=>{let d=o==="fast_mode"?s:m.find((E)=>E.configId===o);if(!d)throw Error(`Unknown boolean config: ${o}`);f(d,r)}})}var mn=D(H);
|
|
2
|
-
export{mn};
|
package/dist/chunk-p781sb6h.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function X(e){return i(e.options)?e.options.flatMap((t)=>t.options):e.options}function y(e,t){return e.find((n)=>n.category===t&&o(n))}function Y(e){return X(e).find((t)=>t.value===e.currentValue)?.name??e.currentValue}
|
|
2
|
-
export{X,y,Y};
|
package/dist/chunk-pv7t4hw8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{te}from"./chunk-46j8adkj.js";import{St}from"./chunk-afnnrn6z.js";var ge={persistConfig:!0,nativeTools:{imageGeneration:!1},applicationContext:St,parseConfig(e){if(typeof e.model!=="string"||typeof e.size!=="string"||Object.keys(e).some((t)=>t!=="model"&&t!=="size"))throw Error("Invalid image input config");let o={model:e.model,size:e.size};return te(o),o},routePrompt(e){return e.image()}};
|
|
2
|
-
export{ge};
|
package/dist/chunk-qecs9e31.js
DELETED
package/dist/chunk-r51vcbf0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-dxfhy8gr.js";import{e}from"./chunk-2c4hqv8f.js";import{y,Y}from"./chunk-p781sb6h.js";import{hasAccount as D,isGroupedSelect as L}from"@nyssance/codex-acp-v2/client";import{cn as H}from"cn";import{memo as W,useEffect as T,useState as F}from"react";import{HoverCard as z,HoverCardContent as O,HoverCardTrigger as U}from"@nyssance/shadcn/vega/components/ui/hover-card";import{jsx as r,jsxs as u}from"react/jsx-runtime";var d=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),A=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),I=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function f(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function V(a,t){let o=Math.min(100,a/t*100),p=o>=90?"text-destructive":o>=70?"text-foreground":"text-muted-foreground";return{pct:o,className:p}}function G(a){let t=y(a.configOptions,"model");return t===void 0?void 0:Y(t)}function Xe(a,t){let o=a.windowDurationMins;if(o===null)return t("usage.usage");if(o%1440===0)return t("usage.windowDays",{count:o/1440});return t("usage.windowHours",{count:Math.round(o/60)})}function P(a){let{client:t}=e(),o=n((s)=>a&&s.connection==="ready"&&D(s.agent)),[p,c]=F(null);return T(()=>{if(!o){c(null);return}let s=!0;t.readRateLimits().then((m)=>{if(s)c(m)},()=>{return});let l=t.onRateLimits((m)=>{if(s)c(m)});return()=>{s=!1,l()}},[o,t]),o?p:null}function _({session:a}){let{t}=e().host,o=y(a.configOptions,"model"),p=o!==void 0&&(L(o.options)?o.options.some((i)=>i.groupId==="chatgpt"&&i.options.some((v)=>v.value===o.currentValue)):!o.currentValue.startsWith("gateway:")&&o.options.some((i)=>i.value===o.currentValue)),c=P(p),{usage:s,lastTurnUsage:l}=a;if(s===null&&l===null)return null;let m=s&&s.size>0?V(s.used,s.size):null,x=7,b=2*Math.PI*x,h=f(l?.inputTokens),k=f(l?.outputTokens),g=f(l?.cachedReadTokens),w=f(l?.cachedWriteTokens),S=f(l?.totalTokens)||h+k+g+w,R=h+g,C=R>0?A.format(g/R):t("tokens.notAvailable"),M=[[t("tokens.input"),d.format(h)],[t("tokens.output"),d.format(k)],[t("tokens.cachedRead"),d.format(g)],[t("tokens.cachedWrite"),d.format(w)],[t("tokens.cacheHitRate"),C],[t("tokens.total"),d.format(S)]],N=G(a);return u(z,{children:[r(U,{delay:100,closeDelay:100,render:u("button",{type:"button",className:H("hover:text-foreground flex h-7 items-center gap-1.5 rounded-md px-1.5 text-xs tabular-nums",m?.className??"text-muted-foreground"),"aria-label":t("tokens.openDetails"),children:[u("svg",{viewBox:"0 0 18 18",className:"size-4","aria-hidden":"true",children:[r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),m!==null&&r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:b,strokeDashoffset:b*(1-m.pct/100),transform:"rotate(-90 9 9)"})]}),m!==null&&u("span",{children:[Math.round(m.pct),"%"]})]})}),u(O,{align:"end",side:"top",sideOffset:8,className:"w-56 p-0",children:[N!==void 0&&r("div",{className:"border-b px-3 py-2",children:r("p",{className:"text-foreground truncate text-xs font-semibold",title:N,children:N})}),u("div",{className:"flex flex-col gap-3 p-3",children:[l!==null&&u("div",{className:"flex flex-col gap-1.5",children:[r("p",{className:"text-xs font-medium",children:t("tokens.openDetails")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:M.map(([i,v])=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:i}),r("dd",{className:"text-end tabular-nums",children:v})]},i))})]}),s!==null&&s.size>0&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("tokens.context")}),r("p",{className:"text-muted-foreground text-xs tabular-nums",children:t("tokens.contextSummary",{used:d.format(s.used),limit:d.format(s.size),percent:I.format(s.used/s.size*100)})})]}),c!==null&&(c.primary!==null||c.secondary!==null)&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("usage.limits")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:[c.primary,c.secondary].filter((i)=>i!==null).map((i)=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:Xe(i,t)}),r("dd",{className:"text-end tabular-nums",children:t("usage.used",{percent:Math.round(Math.min(100,Math.max(0,i.usedPercent)))})})]},`${i.windowDurationMins??"window"}`))})]})]})]})]})}var yn=W(_);
|
|
2
|
-
export{Xe,yn};
|
package/dist/chunk-rak4mkgh.js
DELETED
package/dist/chunk-sykf5jnc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{De}from"./chunk-z930082m.js";import{Kbd as i}from"@nyssance/shadcn/vega/components/ui/kbd";import{Tooltip as p,TooltipContent as l,TooltipTrigger as a}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as r,jsxs as e,Fragment as c}from"react/jsx-runtime";function Er({shortcut:t,...o}){return t?r(i,{"aria-hidden":"true",...o,children:De(t)}):null}function Rr({label:t,shortcut:o}){return e(c,{children:[r("span",{className:"min-w-0",children:t}),r(Er,{className:"shrink-0",shortcut:o,"aria-hidden":"false"})]})}function Bn({label:t,shortcut:o,children:n}){return e(p,{children:[r(a,{render:n}),r(l,{role:"tooltip",children:o?r(Rr,{label:t,shortcut:o}):t})]})}
|
|
2
|
-
export{Er,Rr,Bn};
|
package/dist/chunk-ts7h148j.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{mr}from"./chunk-hqfhb4ng.js";import{ge}from"./chunk-pv7t4hw8.js";var t={chat:mr,image:ge};function et(n){return Object.hasOwn(t,n)}function Re(n){if(!et(n))throw Error(`Unsupported input mode: ${n}`);return t[n]}function ia(n){if(n===null)return"chat";let o=n.mode;if(!et(o))throw Error(`Unsupported input mode: ${o}`);return t[o].parseConfig(n.config),o}
|
|
2
|
-
export{et,Re,ia};
|
package/dist/chunk-v0xy25sh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u,uo}from"./chunk-6ja6pt5x.js";import{_n}from"./chunk-nravn5bk.js";import{useEffect as p,useRef as P,useState as m}from"react";var zi="providers:changed",Vi="providers:managed-revoked",i=(e)=>e;function fn(){return{read:()=>i(u.providersRead()),save:(e,r,t)=>i(u.providersSave({providerId:r,input:t,expectedRevision:e})),saveCustom:(e,r)=>i(u.providersSaveCustom({input:r,expectedRevision:e})),removeCustom:(e,r)=>i(u.providersRemoveCustom({providerId:r,expectedRevision:e})),test:(e)=>u.providersTest({providerId:e}),apply:()=>i(u.providersApply()),onChanged:(e)=>uo[zi].listen((r)=>e(r.payload))}}function $s(){return{bind:(e)=>u.providersAccountBind({account:e}),refresh:(e,r)=>i(u.providersRefreshManaged({generation:e,accessToken:r})),clear:async()=>{await u.providersClearManaged()},onRevoked:(e)=>uo[Vi].listen((r)=>e(r.payload.sessionIds))}}async function hn(e){try{return await e.apply()}catch(r){if(!_n(r))throw r;return e.read()}}function vn(e,r=console.error){let[t,d]=m(null),a=P(r);return a.current=r,p(()=>{let n=!0,v=e.onChanged((o)=>{if(n)d((s)=>s&&s.revision>o.revision?s:o)});return v.then(()=>e.read()).then((o)=>{if(n)d((s)=>s&&s.revision>=o.revision?s:o)}).catch((o)=>{if(n)a.current(o)}),()=>{n=!1,v.then((o)=>o())}},[e]),t}
|
|
2
|
-
export{zi,Vi,fn,$s,hn,vn};
|
package/dist/chunk-wfk50eh6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{m}from"./chunk-189aq7st.js";import{a,o}from"./chunk-r7z3mvej.js";import{E,v,f,ae}from"./chunk-06aaghwq.js";import{M,me,$i}from"./chunk-gdn4vvks.js";import{gt}from"./chunk-bbvhgh27.js";import{B,ie}from"./chunk-yc7w1en3.js";import{Ie,pe}from"./chunk-fednb216.js";import{closestCorners as ge,DndContext as fe,KeyboardSensor as Ce,PointerSensor as ye,useSensor as V,useSensors as Se}from"@dnd-kit/core";import{SortableContext as W,sortableKeyboardCoordinates as De,useSortable as le,verticalListSortingStrategy as X}from"@dnd-kit/sortable";import{CSS as re}from"@dnd-kit/utilities";import{cn as F}from"cn";import{BrushCleaningIcon as we,MessageSquareIcon as ve,MoreHorizontalIcon as Ne,PencilIcon as he,PlusIcon as se,StarIcon as be,Trash2Icon as ce}from"lucide-react";import{useEffect as xe,useMemo as Me,useState as R}from"react";import{Button as D}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as Y,DialogContent as Z,DialogDescription as ee,DialogFooter as oe,DialogHeader as te,DialogTitle as ne}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as Ee,DropdownMenuContent as ke,DropdownMenuGroup as Le,DropdownMenuItem as z,DropdownMenuTrigger as Re}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Pe}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as s,Fragment as ze}from"react/jsx-runtime";function Te({collectionId:l,sessionId:C,children:b}){let{attributes:w,listeners:N,setNodeRef:i,transform:p,transition:u,isDragging:x}=le({id:JSON.stringify([l,C]),data:{type:"session",collectionId:l,sessionId:C}});return e("div",{ref:i,style:{transform:re.Transform.toString(p),transition:u},className:F("w-full min-w-0",x&&"opacity-50"),...w,...N,role:"group",children:b})}function Be({collection:l,children:C,onEdit:b,onConfirm:w,onNewChat:N}){let{t:i}=M(),p=pe(),u=me(),{attributes:x,listeners:d,setNodeRef:I,transform:P,transition:T,isDragging:K}=le({id:l.id,disabled:{draggable:l.id===B,droppable:!1},data:{type:"collection"}});return e("div",{ref:I,style:{transform:re.Transform.toString(P),transition:T},className:F("w-full min-w-0",K&&"opacity-50"),children:e(ae,{open:!l.collapsed,onOpenChange:(c)=>u(p({type:"collapse",id:l.id,collapsed:!c})),label:ie(l,i),count:l.sessionIds.length,leading:l.id===B?e(be,{className:"size-3.5"}):e(gt,{emoji:l.emoji,onChange:(c)=>u(p({type:"emoji",id:l.id,emoji:c}))}),wrapHeader:(c)=>e("div",{...x,...d,role:"group",children:c}),actions:s(Ee,{children:[e(Re,{onClick:(c)=>c.stopPropagation(),onPointerDown:(c)=>c.stopPropagation(),render:e(D,{variant:"ghost",size:"icon",className:"size-5","aria-label":i("collection.more",{name:ie(l,i)}),children:e(Ne,{className:"size-3.5"})})}),e(ke,{children:s(Le,{children:[l.id!==B&&s(z,{onClick:b,children:[e(he,{}),i("collection.rename")]}),s(z,{onClick:N,children:[e(se,{}),i("collection.newChat")]}),s(z,{onClick:()=>w("clear"),children:[e(we,{}),i("collection.clearCollection")]}),l.id!==B&&s(z,{variant:"destructive",onClick:()=>w("delete"),children:[e(ce,{}),i("collection.deleteCollection")]})]})})]}),children:C})})}function He({children:l}){return e("div",{className:"min-h-0 flex-1 overflow-y-auto ps-2 pe-0 pb-1",children:l})}function Ds({renderRow:l,onSelect:C,onNewChat:b,Scroll:w=He}){let N=M(),{t:i}=N,p=pe(),u=me(),x=a(),{collections:d,order:I}=Ie(),P=o((t)=>t.sessionList),T=o((t)=>t.archivedSessions),K=o((t)=>t.sessionListLoaded),c=o((t)=>t.sessionListError),U=Me(()=>new Map([...T,...P].map((t)=>[t.sessionId,t])),[T,P]),_=N.isMac??$i(),[y,k]=R(null),[L,O]=R(""),[q,j]=R(""),[S,H]=R(null),[g,J]=R(!1),de=Se(V(ye,{activationConstraint:{distance:5}}),V(Ce,{coordinateGetter:De})),G=I.flatMap((t)=>d[t].collapsed?[]:d[t].sessionIds.flatMap((n)=>{let r=U.get(n);return r&&!r.archived?[r]:[]}));xe(()=>{let t=(n)=>{if(n.defaultPrevented||n.isComposing||n.repeat||n.shiftKey||n.altKey)return;if(_?!n.metaKey||n.ctrlKey:!n.ctrlKey||n.metaKey)return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;if(n.target instanceof HTMLElement&&(n.target.isContentEditable||n.target.closest("input,textarea,[role=dialog],[role=menu]")))return;let r=Number(n.key)-1;if(!Number.isInteger(r)||r<0||r>8||!G[r])return;n.preventDefault(),C(G[r])};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[G,_,C]);let ue=({active:t,over:n})=>{if(n===null)return;let r=t.data.current,h=n.data.current;if(r?.type==="session"&&h!==void 0){let Q=h.type==="session"?String(h.collectionId):String(n.id);u(p({type:"move",sourceCollectionId:String(r.collectionId),collectionId:Q,sessionId:String(r.sessionId),index:h.type==="session"?d[Q].sessionIds.indexOf(String(h.sessionId)):void 0}))}else if(r?.type==="collection"&&h?.type==="collection"&&String(n.id)!==B)u(p({type:"reorder",id:String(t.id),index:I.indexOf(String(n.id))}))},A=(t,n)=>{J(!0),u(t.then(n).finally(()=>J(!1)))};return s(ze,{children:[e(w,{children:s(E,{children:[s(f,{className:F(m,"font-normal"),onClick:()=>{k("new"),O(""),j("")},children:[e(v,{children:e(se,{})}),e("span",{children:i("collection.newCollection")})]}),c&&s("div",{className:"text-muted-foreground px-2 text-sm",children:[e("p",{role:"alert",children:c}),e(D,{variant:"ghost",onClick:()=>u(x.listSessions({reset:!0})),children:i("collection.retry")})]}),e(fe,{sensors:de,collisionDetection:ge,onDragEnd:ue,children:e(W,{items:I,strategy:X,children:e(E,{children:I.map((t)=>e(Be,{collection:d[t],onNewChat:()=>b(t),onEdit:()=>{k(t),O(d[t].name),j(d[t].emoji??"")},onConfirm:(n)=>H({id:t,type:n}),children:e(W,{items:d[t].sessionIds.map((n)=>JSON.stringify([t,n])),strategy:X,children:d[t].sessionIds.map((n)=>{let r=U.get(n);if(r?.archived)return null;if(!r)return K?s("div",{className:"text-muted-foreground flex h-[var(--navigation-row-height)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-sm font-normal",children:[e(v,{children:e(ve,{className:"size-3.5"})}),e("span",{className:"min-w-0 flex-1 truncate",children:i("collection.unavailable")}),e(D,{variant:"ghost",size:"icon",className:"size-5 [&_svg]:size-3.5","aria-label":i("collection.removeFromGroup"),onClick:()=>u(p({type:"remove",sessionId:n,collectionId:t})),children:e(ce,{})})]},n):null;return e(Te,{collectionId:t,sessionId:n,children:l(r,()=>{},t)},n)})})},t))})})})]})}),e(Y,{open:y!==null,onOpenChange:(t)=>{if(!t&&!g)k(null)},children:s(Z,{children:[s(te,{children:[e(ne,{children:i(y==="new"?"collection.newCollection":"collection.rename")}),e(ee,{children:i("collection.collectionName")})]}),s("form",{onSubmit:(t)=>{if(t.preventDefault(),y===null||!L.trim()||g)return;let n=y==="new"?`collection-${crypto.randomUUID()}`:y;A(p([y==="new"?{type:"create",id:n,name:L}:{type:"rename",id:n,name:L},{type:"emoji",id:n,emoji:q}]),()=>k(null))},className:"flex flex-col gap-3",children:[e(Pe,{autoFocus:!0,"aria-label":i("collection.collectionName"),value:L,onChange:(t)=>O(t.target.value),disabled:g}),y!=="new"&&e(gt,{emoji:q,onChange:j}),s(oe,{children:[e(D,{type:"button",variant:"outline",disabled:g,onClick:()=>k(null),children:i("collection.cancel")}),e(D,{type:"submit",disabled:g||!L.trim(),children:i("collection.confirm")})]})]})]})}),e(Y,{open:S!==null,onOpenChange:(t)=>{if(!t&&!g)H(null)},children:s(Z,{children:[s(te,{children:[e(ne,{children:i(S?.type==="delete"?"collection.deleteCollection":"collection.clearCollection")}),e(ee,{children:i("collection.confirmCollectionChange",{name:S===null?"":ie(d[S.id],i)})})]}),s(oe,{children:[e(D,{variant:"outline",disabled:g,onClick:()=>H(null),children:i("collection.cancel")}),e(D,{disabled:g,onClick:()=>{if(S!==null)A(p({type:S.type,id:S.id}),()=>H(null))},children:i("collection.confirm")})]})]})})]})}
|
|
2
|
-
export{Ds};
|
package/dist/chunk-wxjm3mq8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s,a,o,h}from"./chunk-r7z3mvej.js";import{V}from"./chunk-mtcxr3ns.js";import{E,ae,Ue}from"./chunk-06aaghwq.js";import{ze,ne,ve}from"./chunk-ezaypwps.js";import{Fr}from"./chunk-qecs9e31.js";import{Ge}from"./chunk-jkqh03w4.js";import{Oe}from"./chunk-j1khvg9s.js";import{De}from"./chunk-z930082m.js";import{Vn}from"./chunk-wxafew32.js";import{Lr}from"./chunk-7g0cbkbp.js";import{ActivityIcon as D}from"lucide-react";import{useEffect as O,useMemo as A}from"react";import{Kbd as G}from"@nyssance/shadcn/vega/components/ui/kbd";import{jsx as c,jsxs as C,Fragment as H}from"react/jsx-runtime";function K(i,d){return i.find((l)=>l.sessionId===d.sessionId)??{sessionId:d.sessionId,cwd:d.cwd,title:d.title||null,updatedAt:null,archived:!1}}function ba({selectedId:i,onSelect:d,isForeground:l,onOpen:b,accessory:w,rowActions:k}){let R=s(),{t:N}=R,m=o((t)=>t.runStates),S=o((t)=>t.drafts),u=o((t)=>t.sessionList),v=ne((t)=>t.activityOrder),p=A(()=>v.flatMap((t)=>{let e=m[t];return e&&ze({runStates:m,drafts:S},t)?[{sid:t,record:e,sessionRow:K(u,e)}]:[]}),[v,m,S,u]),g=A(()=>{let t=new Map;for(let e of p){let r=e.sid===i||l?.(e.sid)?"foreground":"background",y=t.get(r)??[];y.push(e),t.set(r,y)}return["foreground","background"].filter((e)=>t.has(e)||e==="background").map((e)=>({key:e,rows:t.get(e)??[]}))},[p,i,l]),f=ne((t)=>t.activityCollapsedGroups),n=ve(),L=g.flatMap((t)=>t.key==="foreground"||!f.has(t.key)?t.rows:[]),x=(t)=>{if(b?.(t))return;d(t)},P=Lr();O(()=>{let t=(e)=>{if(e.defaultPrevented||e.isComposing||e.repeat||!Fr(e))return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;let r=Number(e.key);if(!Number.isInteger(r)||r<1||r>9)return;let y=L[r-1];if(!y)return;e.preventDefault(),x(y.sessionRow)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)});let I=(t)=>{let e=L.indexOf(t);return c(M,{sessionRow:t.sessionRow,state:t.record.state,interruption:t.record.interruption,active:t.sid===i,tasks:t.record.tasks,listeningPorts:t.record.listeningPorts,onOpen:()=>x(t.sessionRow),accessory:w?.(t.sid),actions:k?.(t.sessionRow),hint:e<9&&P?c(G,{children:De(`CommandOrControl+${e+1}`)}):void 0},t.sid)};return c(E,{children:g.map((t)=>t.key==="foreground"?c(E,{children:t.rows.map(I)},t.key):c(ae,{open:!f.has(t.key),onOpenChange:(e)=>{let r=new Set(f);if(e)r.delete(t.key);else r.add(t.key);n({activityCollapsedGroups:r})},leading:c(D,{className:"text-muted-foreground size-3.5 shrink-0"}),label:N("sessionList.background"),count:t.rows.length,children:t.rows.map(I)},t.key))})}function M({sessionRow:i,state:d,interruption:l,active:b,tasks:w,listeningPorts:k,accessory:R,actions:N,onOpen:m,hint:S}){let u=s(),v=a(),{t:p}=u,g=i.title??p("sessionList.untitled"),f=Vn(i.sessionId,d);return C(H,{children:[c(Ue,{"data-session-id":i.sessionId,active:b,role:"button",tabIndex:0,hoverCard:c(Oe,{sessionRow:i,actions:N}),onClick:m,onKeyDown:(n)=>{if(n.target!==n.currentTarget)return;if(n.key==="Enter"||n.key===" ")n.preventDefault(),m()},state:d,interruption:l,title:g,preview:f,listeningPorts:k,onOpenPort:u.openLink&&((n)=>u.openLink?.(`http://localhost:${n}`)),accessory:R,hint:S,actions:c(Ge,{title:p("sessionList.stop"),onStop:()=>h(u,v.stopSession(i.sessionId))})}),w.map((n)=>C("div",{className:"border-border/60 before:border-border/60 relative ms-4 flex min-h-7 items-center gap-2 border-s py-1 ps-4 pe-2 text-xs before:absolute before:start-0 before:top-3.5 before:w-2 before:border-t",children:[c(V,{state:"running"}),c("span",{className:"text-muted-foreground min-w-0 flex-1 truncate leading-5",title:n.title,children:n.title})]},n.id))]})}
|
|
2
|
-
export{ba};
|
package/dist/chunk-x0m4ctqf.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ye}from"./chunk-2c7a0zdc.js";function C(e){return/^app:\/\/([^/?#\s)]+)$/.exec(e)?.[1]??null}function Ft(e){if(!e.includes("app://"))return[];let n=ye(),r=new Map;return n.walkTokens(n.lexer(e),(i)=>{if(i.type!=="link")return;let p=i,t=C(p.href);if(t!==null)r.set(t,{id:t,name:p.text.replace(/^\$/,"")})}),[...r.values()]}function Pa(e){return[...new Map(e.map((n)=>[n.id,n])).values()].map((n)=>`[$${n.name.replace(/[\\`*_[\]<>]/g,"\\$&")}](app://${n.id})`).join(" ")}function ts(e,n){return[Pa(n),e.trim()].filter(Boolean).join(" ")}function ns(e,n){let r=Pa(n);if(!r)return e;if(e===r)return"";return e.startsWith(`${r} `)?e.slice(r.length+1):e}
|
|
2
|
-
export{C,Ft,Pa,ts,ns};
|
package/dist/chunk-xk41ehy8.js
DELETED
package/dist/chunk-xpts50f0.js
DELETED
package/dist/chunk-xqsfaaae.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function Fa(e,n){if(e.type||!n.type)return e;let i=n.type.split("/")[1],o=i!==void 0&&i!==""?`pasted-${Date.now()}.${i==="jpeg"?"jpg":i}`:"";return new File([e],e.name||o||`pasted-${Date.now()}`,{type:n.type})}function wt(e){let n=[],i=!1;for(let o of e){if(o.kind!=="file")continue;let t=o.getAsFile();if(!t)continue;if(!(t.type||o.type).startsWith("image/")){i=!0;continue}n.push(Fa(t,o))}return{imageFiles:n,sawNonImageFile:i}}function kt(e){return[...e].some((n)=>n.kind==="string")}var s=/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g;function Rn(e){return e.replace(s,"")}function ea(e,n){let i=0;for(let o=0;o<n;o++){let t=e.charCodeAt(o);if(t>=0&&t<=8||t===11||t===12||t>=14&&t<=31||t===127)i++}return i}function Ln(e){let{value:n,selectionStart:i,selectionEnd:o}=e,t=Rn(n);if(t===n)return t;if(e.value=t,i!==null&&o!==null){let a=Math.max(0,i-ea(n,i)),r=Math.max(0,o-ea(n,o));requestAnimationFrame(()=>{e.setSelectionRange(a,r)})}return t}
|
|
2
|
-
export{Fa,wt,kt,Rn,ea,Ln};
|
package/dist/chunk-y780cd4m.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-52hvpdxw.js";import{Ct}from"./chunk-dzw6vqqf.js";import{e}from"./chunk-2c4hqv8f.js";import{yt,G}from"./chunk-nravn5bk.js";import{wn,Ee}from"./chunk-7ckdhz5y.js";import{Ae}from"./chunk-q98s7d94.js";import{Zap as g}from"lucide-react";import{jsx as n}from"react/jsx-runtime";function Qs({snapshot:s,model:l,onChange:r,nativeModels:t,catalog:c}){let{host:u}=e(),{t:a}=u,f=[{id:b.id,name:b.name,models:t===void 0?[{api_id:"",label:b.name}]:t.map((o)=>({api_id:o.id,label:o.label??o.id}))},...(s===null?[]:yt(s)).map((o)=>({id:o.id,name:o.name,models:o.models.map((i)=>({api_id:G(o.id,i.id),label:i.label??i.id}))}))],p=Ee(f,c),d=p.flatMap((o)=>o.models),m=l===null?t===void 0?d[0]:{api_id:"",label:a("composer.model")}:d.find((o)=>o.api_id===l)??{api_id:l,label:l};return n(Ct,{value:{...m,label:wn(m)},models:d,modelGroups:p,header:{name:a("composer.model"),action:n(Ae,{})},compactCatalog:!0,booleanOptions:[{id:"fast_mode",name:a("composer.fastMode"),currentValue:!1,disabled:!0,title:a("composer.fastModeUnsupported"),icon:n(g,{className:"size-4","aria-hidden":"true"})}],showModelList:!0,onChange:(o)=>r(o.api_id),t:(o)=>a(o)})}
|
|
2
|
-
export{Qs};
|
package/dist/chunk-ynp45k84.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L,Eo,jr,$n,$r,Ro,qr}from"./chunk-37x36kph.js";import{t,je,w,n}from"./chunk-dxfhy8gr.js";import{Te}from"./chunk-tdaznr5w.js";import{createStore as E}from"@alwith/api/client";import{isText as k,nativeTurnId as Q}from"@nyssance/codex-acp-v2/client";import{jsx as y}from"react/jsx-runtime";var b=E({entries:{}});function p(r,e){b.setState((s)=>({entries:{...s.entries,[r]:e}}))}function v(r,e){let s=Q(e),a=r.items.findLast((i)=>Q(i)!==null);return!e.replayed&&s!==null&&a!==void 0&&Q(a)===s}function M(r,e){for(let s of r.items){if(s.kind!=="user"||s.echo==="pending")continue;for(let a of[...Ro(s._meta),...s.content.filter(k).flatMap((i)=>Ro(i._meta))])if(a.questionItemId===e)return a.answer}return}function O({sessionId:r,item:e,question:s,index:a}){let i=je(),{t:l}=t(),m=Eo(e.id,a),c=JSON.stringify([r,m]),u=w(b,(o)=>o.entries[c]),d=n((o)=>o.sessions[r]),A=n((o)=>o.connection==="ready"),f=u?.draft??jr(s),x=d===void 0?u?.accepted:M(d,m)??u?.accepted,h=d!==void 0&&v(d,e),D=!d?.subagent&&A&&d?.attached&&!d.restoring&&!d.readOnly,g=x!==void 0?"answered":u?.skipped?"skipped":u?.pending?"submitting":!h?"closed":!D?"unavailable":"pending",C=async()=>{if(b.getState().entries[c]?.pending||g!=="pending")return;let o=i.state.sessions[r];if(o===void 0||!v(o,e)||!o.attached||o.readOnly||o.restoring)return;let S=$n(s,f);if(!S.trim())return;let q={questionItemId:m,question:s.title,answer:S};p(c,{draft:f,pending:!0});try{await i.prompt(r,[{type:"text",text:$r(q),_meta:{codex:{questionReply:q}}}]),p(c,{draft:f,accepted:S})}catch(I){p(c,{draft:f,error:I instanceof Error?I.message:String(I)})}};if(g==="closed")return null;return y(qr,{question:s,draft:f,status:g,answer:x,error:g==="pending"?u?.error:void 0,t:l,onChange:(o)=>p(c,{draft:o}),onSkip:()=>p(c,{draft:f,skipped:!0}),onSubmit:()=>{C()}})}function so({sessionId:r,item:e}){let s=n((i)=>i.sessions[r]),a=L(e._meta);if(s===void 0||s.subagent!==void 0||s.readOnly||!v(s,e))return y(Te,{content:e.content.some((i)=>!k(i)||i.text.trim().length>0)?e.content:a.map((i)=>({type:"text",text:i.title})),messageId:e.id,streaming:!1});return y("div",{className:"flex min-w-0 flex-col gap-3","data-async-questions":e.id,children:a.map((i,l)=>y(O,{sessionId:r,item:e,question:i,index:l},Eo(e.id,l)))})}
|
|
2
|
-
export{so};
|
package/dist/chunk-yqhvxm9m.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-dxfhy8gr.js";import{Nn,e,x}from"./chunk-2c4hqv8f.js";import{Me}from"./chunk-gjj5wbms.js";import{Bt}from"./chunk-d8bjsf1d.js";import{jt}from"./chunk-jbnbx285.js";import{Gt,zt}from"./chunk-6r1e3y4e.js";import{Vt}from"./chunk-yn3d949k.js";import{LockIcon as k,UnplugIcon as O}from"lucide-react";import{useMemo as S,useRef as M}from"react";import{Alert as C,AlertDescription as N,AlertTitle as h}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as w}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as P,EmptyDescription as z,EmptyHeader as B,EmptyTitle as I}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as o,jsxs as r}from"react/jsx-runtime";function ks({host:t,client:c,...s}){let m=S(()=>t.openDiff?t:{...t,openDiff:Gt},[t]);return r(Nn,{host:m,client:c,children:[o(L,{...s}),!t.openDiff&&o(zt,{})]})}function L({session:t,header:c,overlay:s,timeline:m,composer:D,readOnlyActions:g,recovery:E,welcome:R,children:T,rootRef:l,search:A=!0}){let{host:d,client:b}=e(),p=M(null),H=(a)=>{if(p.current=a,typeof l==="function")l(a);else if(l)l.current=a},{t:i}=d,f=n((a)=>a.connection==="ready"),v=n((a)=>a.historyPages[t.id]?.error),y=()=>x(d,b.open(t.id,t.cwd)),u=t.items.length===0&&t.attached&&!t.restoring&&t.state==="idle";return r("div",{"data-chat-drop-zone":!0,ref:H,className:"flex h-full min-h-0 flex-col",children:[c,r("div",{className:"relative flex min-h-0 flex-1 flex-col","data-chat-content":!0,children:[A&&!u&&o(jt,{sessionId:t.id,rootRef:p}),s,f&&!t.attached&&!t.restoring&&!t.readOnly&&o("div",{className:"mx-auto my-3 w-full max-w-4xl px-4",children:r(C,{children:[o(O,{}),o(h,{children:i("conversation.stopped")}),o(N,{children:o(w,{size:"sm",variant:"outline",onClick:y,children:i("conversation.reconnect")})})]})}),u?R??o(P,{className:"flex-1",children:r(B,{children:[o(I,{className:"text-[28px] font-normal",children:i("conversation.welcomeTitle")}),o(z,{children:i("conversation.welcomeDescription")})]})}):o(Bt,{session:t,timeline:m}),o(Vt,{sessionId:t.id}),E??(t.readOnly?o("div",{className:"mx-auto w-full max-w-3xl shrink-0 px-6 pb-5","data-readonly-composer":!0,children:r(C,{className:"flex items-center justify-between gap-4 rounded-3xl px-5 py-4",children:[r("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[o(k,{"aria-hidden":"true",className:"size-4 shrink-0"}),r("div",{className:"min-w-0 space-y-1",children:[o(h,{children:i("conversation.readOnlyTitle")}),o(N,{children:i("conversation.readOnlyDescription")}),v&&o("p",{role:"alert",className:"text-destructive break-words",children:v})]})]}),r("div",{className:"border-border flex shrink-0 items-center gap-1 border-s ps-3","data-readonly-actions":!0,children:[o(w,{size:"sm",variant:"outline",className:"text-foreground cursor-pointer disabled:cursor-not-allowed",onClick:y,disabled:!f||t.restoring,children:i(t.restoring?"conversation.restoring":"conversation.readOnlyRetry")}),g]})]})}):D??o(Me,{session:t}))]}),T]})}
|
|
2
|
-
export{ks};
|
package/dist/chunk-zcfsbgvw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function rr(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function mo(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function Ye(t){return t.type==="array"}function An(t){return(Ye(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{rr,mo,Ye,An};
|