@alwith/module-chat 0.6.31 → 0.6.32
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/README.md +1 -1
- 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-dakt7k9q.js → chunk-016v1nnv.js} +4 -4
- package/dist/{chunk-b0p2j2ab.js → chunk-02sj8dwy.js} +1 -1
- package/dist/{chunk-r7n16m8h.js → chunk-02ttte9p.js} +2 -2
- package/dist/{chunk-swmxz9q0.js → chunk-036wyz4n.js} +2 -2
- package/dist/{chunk-3942tdd5.js → chunk-06kse58j.js} +2 -2
- package/dist/{chunk-hz8yrg2t.js → chunk-06mvwewp.js} +2 -2
- package/dist/{chunk-qbxdgkk9.js → chunk-081v7emv.js} +2 -2
- package/dist/{chunk-avq6x733.js → chunk-0brr8j8e.js} +2 -2
- package/dist/{chunk-8f8dma9e.js → chunk-0rp62g6e.js} +2 -2
- package/dist/{chunk-b4qe4xnp.js → chunk-0zncrzar.js} +2 -2
- package/dist/{chunk-me230xjh.js → chunk-11kv54bx.js} +3 -3
- package/dist/{chunk-5dtpfpq5.js → chunk-12bfnfbk.js} +2 -2
- package/dist/{chunk-vhxr0c4c.js → chunk-15m908ph.js} +2 -2
- package/dist/{chunk-nfkfgz2s.js → chunk-179a1053.js} +2 -2
- package/dist/{chunk-84zzf0ys.js → chunk-1gb1vwvy.js} +2 -2
- package/dist/{chunk-2dq1epq4.js → chunk-1jznzjzn.js} +2 -2
- package/dist/{chunk-d336k00a.js → chunk-1pnbntv2.js} +2 -2
- package/dist/{chunk-axz2rr58.js → chunk-1td0yv2k.js} +2 -2
- package/dist/chunk-1wk1yw69.js +2 -0
- package/dist/chunk-1x9h1tbx.js +2 -0
- package/dist/{chunk-0ga1y5v1.js → chunk-1y5zgya3.js} +2 -2
- package/dist/{chunk-j1kf4cj2.js → chunk-27n96a07.js} +5 -5
- package/dist/{chunk-djppmswk.js → chunk-2ad4fb9z.js} +2 -2
- package/dist/chunk-2ay0m7xn.js +2 -0
- package/dist/{chunk-t56ncd8f.js → chunk-2d4zb2ac.js} +2 -2
- package/dist/{chunk-e0t3cpx3.js → chunk-2efda0yv.js} +2 -2
- package/dist/chunk-2qa3c571.js +2 -0
- package/dist/{chunk-k1atcess.js → chunk-2wcvmm9v.js} +2 -2
- package/dist/{chunk-mtcxr3ns.js → chunk-33bd1ey8.js} +2 -2
- package/dist/{chunk-esxjnj1y.js → chunk-3a8qwbgh.js} +3 -3
- package/dist/{chunk-ftsqd7n5.js → chunk-3d3z6dam.js} +2 -2
- package/dist/{chunk-e8mxwqxy.js → chunk-3dvxhfcr.js} +2 -2
- package/dist/{chunk-m9rbb04n.js → chunk-3qbtzxkm.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-eexn5mmk.js → chunk-4hasepkm.js} +2 -2
- package/dist/{chunk-vazspetj.js → chunk-4vfrxhj4.js} +2 -2
- package/dist/{chunk-pyx2n7yx.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-5c14j9ws.js +2 -0
- package/dist/chunk-5e575zvm.js +2 -0
- package/dist/{chunk-4sj3t6mk.js → chunk-5f7t16kj.js} +2 -2
- package/dist/{chunk-jkqh03w4.js → chunk-5h49mv0e.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-t9ktp4sf.js → chunk-5p53j8mf.js} +2 -2
- package/dist/{chunk-7dy4z3r8.js → chunk-5qgzkc2a.js} +2 -2
- package/dist/{chunk-2sc2z6g5.js → chunk-5t2ge7gg.js} +2 -2
- package/dist/chunk-5tfqn4zq.js +4 -0
- package/dist/{chunk-bajn7ssf.js → chunk-64wn1w0e.js} +2 -2
- package/dist/{chunk-jtnjd3ec.js → chunk-680e6bz4.js} +2 -2
- package/dist/{chunk-8477q09c.js → chunk-698pt406.js} +2 -2
- package/dist/chunk-6ewv4vns.js +2 -0
- package/dist/{chunk-4115mzgp.js → chunk-6jpthrtx.js} +3 -3
- package/dist/chunk-6wsr59dr.js +2 -0
- package/dist/{chunk-91jmmkd3.js → chunk-6yx869ht.js} +2 -2
- package/dist/{chunk-tjc0ntnh.js → chunk-705j0x4q.js} +2 -2
- package/dist/{chunk-abxsr9d1.js → chunk-72qwq3k2.js} +2 -2
- package/dist/{chunk-ansfap1a.js → chunk-7a806p3q.js} +3 -3
- package/dist/chunk-7d61ydjw.js +2 -0
- package/dist/{chunk-wy4rtebz.js → chunk-7dmshm2n.js} +2 -2
- package/dist/{chunk-4mca4p7m.js → chunk-7yp1qpbm.js} +2 -2
- package/dist/chunk-8at9k0cn.js +2 -0
- package/dist/{chunk-hzhcajx1.js → chunk-8q5zwkry.js} +2 -2
- package/dist/{chunk-r3s28905.js → chunk-8s74mbzh.js} +3 -3
- package/dist/{chunk-et01n220.js → chunk-9b8gnrcb.js} +2 -2
- package/dist/{chunk-8zy4az1y.js → chunk-9gqq6pvf.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-0pxeark7.js → chunk-9pm3vzgx.js} +3 -3
- package/dist/chunk-aehcqbaf.js +2 -0
- package/dist/{chunk-r7z3mvej.js → chunk-af0e5epn.js} +2 -2
- package/dist/{chunk-g23ktesb.js → chunk-apd3qtd1.js} +2 -2
- package/dist/{chunk-mnz33drf.js → chunk-as10p32q.js} +3 -3
- package/dist/{chunk-smd9rszw.js → chunk-askwff3a.js} +3 -3
- package/dist/{chunk-70ks1y6v.js → chunk-ayk3xaqx.js} +2 -2
- package/dist/chunk-b5g055qp.js +2 -0
- package/dist/{chunk-6kyq5zxt.js → chunk-b7ze9dje.js} +2 -2
- package/dist/{chunk-18gxawh7.js → chunk-b89bzpce.js} +2 -2
- package/dist/{chunk-aa2xhwh2.js → chunk-basmnv1z.js} +2 -2
- package/dist/{chunk-f9zpep12.js → chunk-bf7sgpzq.js} +2 -2
- package/dist/{chunk-xq4xeksc.js → chunk-c531krny.js} +3 -3
- package/dist/{chunk-z930082m.js → chunk-cfj92m1y.js} +2 -2
- package/dist/{chunk-4p1z0b21.js → chunk-chg6j0zg.js} +2 -2
- package/dist/{chunk-yvmjh230.js → chunk-cjj5bxdb.js} +2 -2
- package/dist/{chunk-kcgc9915.js → chunk-cr0pb6g0.js} +2 -2
- package/dist/chunk-cx3vphb1.js +2 -0
- 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-1vf301b7.js → chunk-dxpd5v1r.js} +3 -3
- package/dist/{chunk-gvqvw7ms.js → chunk-e31s069c.js} +2 -2
- package/dist/chunk-eb78ebxa.js +2 -0
- package/dist/{chunk-9cfmet6r.js → chunk-egbb5295.js} +2 -2
- package/dist/{chunk-rtjf5haf.js → chunk-enbvjbcm.js} +2 -2
- package/dist/{chunk-r013w7yb.js → chunk-enc99kvz.js} +2 -2
- package/dist/{chunk-32zzqeyf.js → chunk-ezrq0dya.js} +2 -2
- package/dist/{chunk-413sz7fx.js → chunk-f84mdhkx.js} +2 -2
- package/dist/{chunk-7egc2x4q.js → chunk-fbrv2v3t.js} +1 -1
- package/dist/{chunk-wwywmqh8.js → chunk-fy8dmpv3.js} +2 -2
- package/dist/{chunk-3qwmf9qd.js → chunk-ggxdrm0c.js} +2 -2
- package/dist/{chunk-bj3sacn1.js → chunk-gh1rtwrb.js} +2 -2
- package/dist/{chunk-afypqn52.js → chunk-gm6145td.js} +3 -3
- package/dist/{chunk-bmeych5s.js → chunk-h3geg09z.js} +2 -2
- package/dist/{chunk-1jsjn8ga.js → chunk-h9hz5has.js} +2 -2
- package/dist/{chunk-b64hyshj.js → chunk-hj8nkk6a.js} +2 -2
- package/dist/chunk-hjbq9ez1.js +2 -0
- package/dist/{chunk-5fcp7haj.js → chunk-hpcvfjxz.js} +3 -3
- package/dist/chunk-hwppy236.js +2 -0
- package/dist/chunk-hzcerz8j.js +2 -0
- package/dist/{chunk-darm80tf.js → chunk-j4w2hbbe.js} +2 -2
- package/dist/{chunk-bbfzm39y.js → chunk-j9f4mh66.js} +2 -2
- package/dist/{chunk-edqxxx93.js → chunk-jfyz3rx6.js} +2 -2
- package/dist/{chunk-f0gq9f1f.js → chunk-jgf77q2w.js} +3 -3
- package/dist/{chunk-qt16accq.js → chunk-jnpkpe5t.js} +2 -2
- package/dist/chunk-jp2s1xsa.js +2 -0
- package/dist/{chunk-38geb5gj.js → chunk-jsay66xb.js} +2 -2
- package/dist/{chunk-4d2khkms.js → chunk-k1f40yn4.js} +2 -2
- package/dist/{chunk-vw6546pp.js → chunk-k76s8cq2.js} +2 -2
- package/dist/{chunk-m395aw24.js → chunk-ka0hcw5j.js} +3 -3
- package/dist/{chunk-4w0x1hdt.js → chunk-kdcde4s5.js} +2 -2
- package/dist/{chunk-7hfd7hnm.js → chunk-kj3a1k2q.js} +2 -2
- package/dist/{chunk-g9426ns9.js → chunk-kvwyryw2.js} +2 -2
- package/dist/{chunk-afnnrn6z.js → chunk-ky3n1mza.js} +2 -2
- package/dist/chunk-ky4j58wz.js +2 -0
- package/dist/{chunk-0c0txenw.js → chunk-m31f2m2y.js} +2 -2
- package/dist/{chunk-cxhyh0w9.js → chunk-m6yg0dc9.js} +2 -2
- package/dist/{chunk-a74zcp1j.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-vzm88w2r.js → chunk-mfmh7ztq.js} +2 -2
- package/dist/{chunk-1xrdp5kw.js → chunk-mfx9679q.js} +2 -2
- package/dist/{chunk-pbx1417n.js → chunk-mxw0cq67.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-jytat3j5.js → chunk-nf7q3crw.js} +3 -3
- package/dist/{chunk-npkbsc1k.js → chunk-ns31r47h.js} +3 -3
- 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-mzqfa37p.js → chunk-pe79c1re.js} +2 -2
- package/dist/{chunk-vbbndjfd.js → chunk-pwk7epmy.js} +2 -2
- package/dist/{chunk-yfb5hj4w.js → chunk-q988bycf.js} +2 -2
- package/dist/chunk-qj87dxrr.js +2 -0
- package/dist/{chunk-jx0djwvd.js → chunk-qm0zd4wj.js} +2 -2
- package/dist/{chunk-gtyrc6cd.js → chunk-qm9c9sd7.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-r26hz85q.js +2 -0
- package/dist/{chunk-ywax4zad.js → chunk-r84xcy0d.js} +2 -2
- package/dist/{chunk-7393tva2.js → chunk-rayhzb8p.js} +2 -2
- package/dist/{chunk-nabyjzn5.js → chunk-rfkgks0a.js} +2 -2
- package/dist/chunk-rkqptd9w.js +2 -0
- package/dist/{chunk-a6vp2dmt.js → chunk-rsbced6k.js} +2 -2
- package/dist/{chunk-wdxxr1xk.js → chunk-s520nawn.js} +2 -2
- package/dist/{chunk-pxv16edc.js → chunk-sjhjjhan.js} +2 -2
- package/dist/{chunk-jv1db7gt.js → chunk-sm526pev.js} +2 -2
- package/dist/{chunk-gt50nb3j.js → chunk-spqfmr4z.js} +2 -2
- package/dist/chunk-srqs8z90.js +2 -0
- package/dist/{chunk-sjqhtpzr.js → chunk-tftgnw1w.js} +2 -2
- package/dist/{chunk-9sag90th.js → chunk-tszqev50.js} +2 -2
- package/dist/chunk-twwcd2qv.js +2 -0
- package/dist/{chunk-tnmghaap.js → chunk-tzb4b5ve.js} +2 -2
- package/dist/{chunk-tdw7k1df.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-bsqe29dh.js → chunk-w1dvg42z.js} +2 -2
- package/dist/{chunk-19jh646d.js → chunk-w2z3sxdq.js} +2 -2
- package/dist/chunk-wcfjjs1a.js +2 -0
- 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-p474fn4q.js → chunk-wvm8srp7.js} +2 -2
- package/dist/chunk-x03z0hme.js +2 -0
- package/dist/{chunk-2c7a0zdc.js → chunk-x4bzkzbt.js} +2 -2
- package/dist/{chunk-5cas0xvp.js → chunk-xckysrk7.js} +2 -2
- package/dist/{chunk-batckcj8.js → chunk-xg6ayxsy.js} +2 -2
- package/dist/{chunk-2d8msv4h.js → chunk-xmfn69hh.js} +2 -2
- package/dist/{chunk-drs741zm.js → chunk-xtcrdywd.js} +2 -2
- package/dist/{chunk-7g0cbkbp.js → chunk-y47sn7w2.js} +2 -2
- package/dist/{chunk-8ktb3g8c.js → chunk-y81242w2.js} +2 -2
- package/dist/{chunk-paxthe5v.js → chunk-yjbs9ze0.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-s0mrsrb0.js → chunk-zb0ns231.js} +3 -3
- package/dist/chunk-zdqjjwx0.js +2 -0
- package/dist/chunk-zhd1v2fs.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-hm7f1vsx.js → chunk-znafsq0a.js} +2 -2
- package/dist/chunk-zr999cgt.js +5 -0
- package/dist/{chunk-3btheq4v.js → chunk-zvfad5gd.js} +2 -2
- package/dist/{chunk-6hxz5cpc.js → chunk-zwpv75f4.js} +2 -2
- package/dist/{chunk-rkejggyx.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/locales.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/prediction.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-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/locales.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/locales.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-0mc30tx9.js +0 -2
- package/dist/chunk-0pmacxae.js +0 -2
- package/dist/chunk-138xvdrk.js +0 -2
- package/dist/chunk-189aq7st.js +0 -2
- package/dist/chunk-29wxdp28.js +0 -2
- package/dist/chunk-2f5cbah7.js +0 -2
- package/dist/chunk-48zgp33j.js +0 -2
- package/dist/chunk-4p3ekttc.js +0 -2
- package/dist/chunk-5g32hx9d.js +0 -2
- package/dist/chunk-5ny4ped8.js +0 -2
- package/dist/chunk-5wed639g.js +0 -2
- package/dist/chunk-6m9frvzj.js +0 -2
- package/dist/chunk-6xzf444w.js +0 -2
- package/dist/chunk-cz31f4gr.js +0 -2
- package/dist/chunk-dhda1jhs.js +0 -2
- package/dist/chunk-eedgav4q.js +0 -2
- package/dist/chunk-eg00mvca.js +0 -2
- package/dist/chunk-h1t76wws.js +0 -2
- package/dist/chunk-hfh3yen9.js +0 -5
- package/dist/chunk-hmtsavm4.js +0 -2
- package/dist/chunk-hqfhb4ng.js +0 -2
- package/dist/chunk-jtcccqpp.js +0 -2
- package/dist/chunk-m0skv5q0.js +0 -2
- package/dist/chunk-m3a6paxj.js +0 -2
- package/dist/chunk-mjfc1dyv.js +0 -2
- package/dist/chunk-n7pyzjq1.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-rak4mkgh.js +0 -2
- package/dist/chunk-ts7h148j.js +0 -2
- package/dist/chunk-v5m2qx8b.js +0 -4
- package/dist/chunk-vchbk4h5.js +0 -2
- package/dist/chunk-x0m4ctqf.js +0 -2
- package/dist/chunk-xpts50f0.js +0 -2
- package/dist/chunk-zd1fk347.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$s,js,qs}from"../chunk-qmx3t5he.js";import"../chunk-6ewv4vns.js";import"../chunk-j9f4mh66.js";import"../chunk-w1dvg42z.js";import"../chunk-wkbxdz82.js";import"../chunk-askwff3a.js";import"../chunk-06mvwewp.js";import"../chunk-rayhzb8p.js";import"../chunk-b89bzpce.js";import"../chunk-as10p32q.js";import"../chunk-rkqptd9w.js";import"../chunk-hwppy236.js";import{Qt}from"../chunk-v6x7x69b.js";import{Wt,ci,Zt}from"../chunk-698pt406.js";import{On,Hn,Un,Bn}from"../chunk-wvm8srp7.js";import{E,yt,xt,bt,V,xa,ae,Ln,Dn,ba,Ct,Ca}from"../chunk-680e6bz4.js";import"../chunk-n96z8etk.js";import{Ii,Ti,dn,pa,un,pn}from"../chunk-cx3vphb1.js";import{ri,Ks,si,ai,li,Xn}from"../chunk-gm6145td.js";import{dt,Jt,Xt}from"../chunk-ggxdrm0c.js";import{Ws}from"../chunk-9b8gnrcb.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,Ii 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,V 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.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
"peerDependencies": {
|
|
356
|
-
"@agentclientprotocol/sdk": "^2.
|
|
356
|
+
"@agentclientprotocol/sdk": "^2.8.0",
|
|
357
357
|
"@alwith/api": "^0.6.0",
|
|
358
358
|
"react": "^19.3.1",
|
|
359
359
|
"react-dom": "^19.3.1",
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
"prepack": "bun run build && bun test ../../scripts/__tests__/chat-worker-distribution.test.ts && bun ../../scripts/verify-module-package.ts chat"
|
|
388
388
|
},
|
|
389
389
|
"devDependencies": {
|
|
390
|
-
"@agentclientprotocol/sdk": "^2.
|
|
390
|
+
"@agentclientprotocol/sdk": "^2.8.0",
|
|
391
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",
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
"@dnd-kit/utilities": "^3.2.2",
|
|
408
408
|
"@floating-ui/dom": "^1.8.0",
|
|
409
409
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
410
|
-
"@nyssance/codex-acp-v2": "^0.7.
|
|
410
|
+
"@nyssance/codex-acp-v2": "^0.7.82",
|
|
411
411
|
"@nyssance/shadcn": "^4.23.4",
|
|
412
412
|
"@shadcn/react": "^0.3.1",
|
|
413
413
|
"@solar-icons/react": "^2.6.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-0mc30tx9.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-gtyrc6cd.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-g23ktesb.js";import{De}from"./chunk-z930082m.js";import{$n}from"./chunk-ftsqd7n5.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=$n(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-0pmacxae.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-edqxxx93.js";import{Ct}from"./chunk-dzw6vqqf.js";import{e}from"./chunk-18gxawh7.js";import{yt,G}from"./chunk-jtnjd3ec.js";import{kn,Ee}from"./chunk-dhda1jhs.js";import{Ae}from"./chunk-9sag90th.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:kn(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-138xvdrk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{m}from"./chunk-189aq7st.js";import{s}from"./chunk-r7z3mvej.js";import{v,f}from"./chunk-gtyrc6cd.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-189aq7st.js
DELETED
package/dist/chunk-29wxdp28.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-7393tva2.js";import{e}from"./chunk-18gxawh7.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 xn=W(_);
|
|
2
|
-
export{Xe,xn};
|
package/dist/chunk-2f5cbah7.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 En(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,En};
|
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-4p3ekttc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ee}from"./chunk-swmxz9q0.js";import{b}from"./chunk-edqxxx93.js";import{w}from"./chunk-7393tva2.js";import{ln}from"./chunk-6xzf444w.js";import{Me}from"./chunk-5fcp7haj.js";import{hn}from"./chunk-5g32hx9d.js";import{Ee}from"./chunk-dhda1jhs.js";import{wn}from"./chunk-1xrdp5kw.js";import{Ae}from"./chunk-9sag90th.js";import{bn,Cn}from"./chunk-m9rbb04n.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??=hn(),d}function h({imagesOnly:r,picker:n}){let e=ln();return i(Cn,{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(()=>({...bn,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(wn,{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-5g32hx9d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u,uo}from"./chunk-6ja6pt5x.js";import{Pn}from"./chunk-jtnjd3ec.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 hn(){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 js(){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 vn(e){try{return await e.apply()}catch(r){if(!Pn(r))throw r;return e.read()}}function yn(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,hn,js,vn,yn};
|
package/dist/chunk-5ny4ped8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function*Xn(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 Xn(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
|
|
2
|
-
export{Xn,ei};
|
package/dist/chunk-5wed639g.js
DELETED
package/dist/chunk-6m9frvzj.js
DELETED
package/dist/chunk-6xzf444w.js
DELETED
package/dist/chunk-cz31f4gr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ne}from"./chunk-cxhyh0w9.js";import{r,J,pn}from"./chunk-9cfmet6r.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"),pn(e.id,p("pasted-text.txt",e.pastedText.text).then((a)=>n("ready",a)).catch(()=>n("error")))}function un(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,un};
|
package/dist/chunk-dhda1jhs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-edqxxx93.js";import{Xi,Yi,er,tr}from"./chunk-p474fn4q.js";import{Sn,N,ht,G,xt}from"./chunk-jtnjd3ec.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(Sn.filter((o)=>o.source==="account").flatMap((o)=>o.models.map((i)=>[G(o.id,i.id),i.label]))),d=new Map([...Sn.map((o)=>[o.id,o.source==="account"?1:2]),[b.id,0]]);function kn(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,kn,Ee};
|
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-eg00mvca.js
DELETED
package/dist/chunk-h1t76wws.js
DELETED
package/dist/chunk-hfh3yen9.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{wt,kt,Dn}from"./chunk-vchbk4h5.js";import{Tt,g}from"./chunk-32zzqeyf.js";import{InputGroupTextarea as w}from"@nyssance/shadcn/vega/components/ui/input-group";import{cn as K}from"cn";import{forwardRef as R,useCallback as D,useEffect as v,useImperativeHandle as M,useRef as d}from"react";import{flushSync as F}from"react-dom";import{jsx as N}from"react/jsx-runtime";var L=(i)=>!i.shiftKey,z=(i)=>i.altKey&&!i.ctrlKey&&!i.metaKey,go=R(({onChange:i,onKeyDown:x,onCompositionStart:T,onCompositionEnd:y,className:b,placeholder:E,bashMode:I=!1,isSendShortcut:C=L,isNewlineShortcut:S=z,...h},H)=>{let r=Tt(),f=g(),u=d(!1),c=d(!1),a=d(null),s=d(null),o=D(()=>{if(globalThis.CSS?.supports?.("field-sizing","content")||s.current!==null)return;s.current=requestAnimationFrame(()=>{s.current=null;let e=a.current;if(!e||u.current)return;e.style.height="auto",e.style.height=`${e.scrollHeight}px`})},[]);v(()=>{let e=a.current;if(!e||globalThis.CSS?.supports?.("field-sizing","content"))return;let t,n=new ResizeObserver(([l])=>{if(l&&l.contentRect.width!==t)t=l.contentRect.width,o()});return n.observe(e),o(),()=>{if(n.disconnect(),s.current!==null)cancelAnimationFrame(s.current);s.current=null}},[o]),v(o,[o,r?.textInput.value,h.value]);let p=I&&(r?.textInput.value??"").startsWith("!"),P=(e)=>{if(u.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229||c.current)return;if(x?.(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(p&&r){let t=e.currentTarget.selectionStart===0&&e.currentTarget.selectionEnd===0;if(e.key==="Escape"||(e.key==="Backspace"||e.key==="Delete")&&t){e.preventDefault(),r.textInput.setInput(r.textInput.value.slice(1));return}}if(e.key==="Enter"){if(S(e.nativeEvent)){e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:l}=t;if(r){let m=`${t.value.slice(0,n)}
|
|
3
|
-
${t.value.slice(l)}`;F(()=>r.textInput.setInput(p?`!${m}`:m)),t.setSelectionRange(n+1,n+1)}else t.setRangeText(`
|
|
4
|
-
`,n,l,"end");o();return}if(C(e.nativeEvent)){e.preventDefault();let t=e.currentTarget.form;if(!t)return;let n=t.querySelector('button[type="submit"]');if(!n||n.disabled)return;t.requestSubmit(n)}}if(e.key==="Backspace"&&e.currentTarget.value===""){let t=f.files.at(-1);if(t&&!t.mediaType?.startsWith("image/"))e.preventDefault(),f.remove(t.id)}},k=(e)=>{let t=e.clipboardData?.items;if(!t)return;let{imageFiles:n,sawNonImageFile:l}=wt(t),m=kt(t);if(n.length>0)e.preventDefault(),f.add(n);else if(l&&!m)e.preventDefault()},A=r?{value:u.current&&a.current?a.current.value:p?r.textInput.value.slice(1):r.textInput.value,onChange:(e)=>{let t=u.current?e.currentTarget.value:Dn(e.currentTarget);r.textInput.setInput(p?`!${t}`:t),o(),i?.(e)}}:{onChange:(e)=>{if(!u.current)Dn(e.currentTarget);o(),i?.(e)}};return M(H,()=>({resetHeight:()=>{if(a.current)a.current.style.height="auto"},focus:()=>{a.current?.focus()},isComposing:()=>u.current||c.current,getTextarea:()=>a.current}),[]),N(w,{"data-chat-input":!0,ref:a,rows:3,className:K("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",b),name:"message",onCompositionEnd:(e)=>{u.current=!1;let t=Dn(e.currentTarget);r?.textInput.setInput(p?`!${t}`:t),o(),y?.(e),c.current=!0,requestAnimationFrame(()=>{c.current=!1})},onCompositionStart:(e)=>{c.current=!1,u.current=!0,T?.(e)},onKeyDown:P,onPaste:k,placeholder:E,...h,...A})});go.displayName="PromptInputTextarea";
|
|
5
|
-
export{go};
|
package/dist/chunk-hmtsavm4.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-gtyrc6cd.js";import{M,me,ji}from"./chunk-m3a6paxj.js";import{gt}from"./chunk-hm7f1vsx.js";import{B,ie}from"./chunk-djppmswk.js";import{Ie,pe}from"./chunk-4d2khkms.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??ji(),[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-hqfhb4ng.js
DELETED
package/dist/chunk-jtcccqpp.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 Gn({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,Gn};
|
package/dist/chunk-m0skv5q0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ct}from"./chunk-dzw6vqqf.js";import{n}from"./chunk-7393tva2.js";import{e,x}from"./chunk-18gxawh7.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 gn=D(H);
|
|
2
|
-
export{gn};
|
package/dist/chunk-m3a6paxj.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 $i(o,t){t.catch((e)=>{if(o.reportError)o.reportError(e);else console.error(e)})}function me(){let o=M();return(t)=>$i(o,t)}function ji(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}
|
|
2
|
-
export{qs,M,$i,me,ji};
|
package/dist/chunk-mjfc1dyv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L,Eo,$r,qn,jr,Ro,qr}from"./chunk-xq4xeksc.js";import{t,$e,w,n}from"./chunk-7393tva2.js";import{Te}from"./chunk-4mca4p7m.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=$e(),{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??$r(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=qn(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:jr(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-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-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-rak4mkgh.js
DELETED
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-v5m2qx8b.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{H}from"./chunk-3btheq4v.js";import{vo,p,S,Rn,yo,bt}from"./chunk-70ks1y6v.js";import{sr,fo,ar,ho}from"./chunk-s0mrsrb0.js";import{wt,kt,Ln}from"./chunk-vchbk4h5.js";import{fe,g}from"./chunk-32zzqeyf.js";import{cn as q}from"cn";import{forwardRef as z,useImperativeHandle as W,useLayoutEffect as U,useRef as d}from"react";import{jsx as j}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(),K=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([]),v=d(""),A=d(r.skillIcon),y=d(!1),x=d(!1),w=d(null),c=d({props:r,controller:I,attachments:K});c.current={props:r,controller:I,attachments:K};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)},L=()=>({...a.current,selection:m()}),D=(e,t)=>{if(!s.current)return;if(sr(s.current,e,c.current.props.skillNames,c.current.props.skillIcon),A.current=c.current.props.skillIcon,v.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??L()),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)},b=(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(L()),C({text:n.text,apps:n.apps},n.selection,!0,!1)},N=()=>{if(!s.current)return;let e=S(fo(s.current,a.current.apps)),t=m();if(y.current)return;let n=Ln(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:()=>Rn(p(a.current),m().start)},selectionEnd:{configurable:!0,get:()=>Rn(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(y.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(),b({text:`
|
|
2
|
-
`,apps:[]});else w.current=L()};return e.addEventListener("beforeinput",l),e.addEventListener("change",N),document.addEventListener("selectionchange",n),()=>{e.removeEventListener("beforeinput",l),e.removeEventListener("change",N),document.removeEventListener("selectionchange",n),R.current=null}},[]),U(()=>{if(y.current)return;let e=S(p({text:I.textInput.value,apps:r.applications}));if(F(e,a.current)&&v.current===JSON.stringify(r.skillNames??[])&&A.current===r.skillIcon)return;let t=m();a.current=e,D(e,t)},[I.textInput.value,r.applications,r.skillNames,r.skillIcon]),W(E,()=>({focus:T,getTextarea:()=>R.current,isComposing:()=>y.current||x.current,resetHeight:()=>{h.current=[],P.current=[]},insertInvocation:(e)=>{T(),b({text:`${e} `,apps:[]})},insertApplication:(e)=>{if(T(),a.current.apps.some((t)=>t.id===e.id))return;b({text:"",apps:[{...e,offset:0}]})}}),[]);let J=(e)=>{if(y.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||e.altKey&&!e.ctrlKey&&!e.metaKey)b({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(),b({text:"",apps:[]});return}let l=Rn(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&&!o.mediaType?.startsWith("image/"))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)b({text:"",apps:[]})};return j("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:N,onKeyDown:J,onCompositionStart:()=>{w.current=L(),y.current=!0,x.current=!1},onCompositionEnd:()=>{y.current=!1,N(),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){K.add(t);return}if(n&&!kt(e.clipboardData.items))return;b(bt(e.clipboardData)??{text:Ln(e.clipboardData.getData("text/plain")),apps:[]})},onCopy:M,onCut:M,onDrop:(e)=>{e.preventDefault()}})});po.displayName="PromptInputInline";
|
|
4
|
-
export{po};
|
package/dist/chunk-vchbk4h5.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 Ln(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 Dn(e){let{value:n,selectionStart:i,selectionEnd:o}=e,t=Ln(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,Ln,ea,Dn};
|
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-xpts50f0.js
DELETED
package/dist/chunk-zd1fk347.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-7393tva2.js";import{An,e,x}from"./chunk-18gxawh7.js";import{Me}from"./chunk-5fcp7haj.js";import{Bt}from"./chunk-e0t3cpx3.js";import{$t}from"./chunk-a74zcp1j.js";import{Gt,zt}from"./chunk-0pxeark7.js";import{Vt}from"./chunk-wdxxr1xk.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(An,{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($t,{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};
|