@alwith/module-chat 0.6.30 → 0.6.31
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-704h27t9.js → chunk-0c0txenw.js} +2 -2
- package/dist/chunk-0f00j53n.js +2 -0
- package/dist/{chunk-1y5zgya3.js → chunk-0ga1y5v1.js} +2 -2
- package/dist/chunk-0mc30tx9.js +2 -0
- package/dist/chunk-0pmacxae.js +2 -0
- package/dist/{chunk-9pm3vzgx.js → chunk-0pxeark7.js} +3 -3
- package/dist/chunk-138xvdrk.js +2 -0
- package/dist/chunk-189aq7st.js +2 -0
- package/dist/{chunk-b89bzpce.js → chunk-18gxawh7.js} +2 -2
- package/dist/{chunk-w2z3sxdq.js → chunk-19jh646d.js} +2 -2
- package/dist/{chunk-mahky9ad.js → chunk-1bvgs2t1.js} +2 -2
- package/dist/{chunk-7d8xet8s.js → chunk-1jsjn8ga.js} +2 -2
- package/dist/{chunk-sqqa7t1n.js → chunk-1vf301b7.js} +3 -3
- package/dist/{chunk-k3h77wtz.js → chunk-1xrdp5kw.js} +2 -2
- package/dist/{chunk-ma6ycen5.js → chunk-239gtn3z.js} +2 -2
- package/dist/chunk-29wxdp28.js +2 -0
- package/dist/{chunk-x4bzkzbt.js → chunk-2c7a0zdc.js} +2 -2
- package/dist/{chunk-rhptdqpp.js → chunk-2d8msv4h.js} +2 -2
- package/dist/{chunk-1jznzjzn.js → chunk-2dq1epq4.js} +2 -2
- package/dist/chunk-2f5cbah7.js +2 -0
- package/dist/{chunk-5t2ge7gg.js → chunk-2sc2z6g5.js} +2 -2
- package/dist/{chunk-a0qy1r02.js → chunk-32zzqeyf.js} +2 -2
- package/dist/{chunk-vqqafkcx.js → chunk-36j9fer8.js} +2 -2
- package/dist/{chunk-yx3eqj75.js → chunk-38geb5gj.js} +2 -2
- package/dist/{chunk-7n3z2bay.js → chunk-3942tdd5.js} +2 -2
- package/dist/{chunk-awrz081w.js → chunk-3btheq4v.js} +2 -2
- package/dist/{chunk-ggxdrm0c.js → chunk-3qwmf9qd.js} +2 -2
- package/dist/{chunk-bnzpnsh1.js → chunk-4115mzgp.js} +3 -3
- package/dist/{chunk-f84mdhkx.js → chunk-413sz7fx.js} +2 -2
- package/dist/{chunk-zhf7403q.js → chunk-42dfq7ze.js} +2 -2
- package/dist/{chunk-5hjk7xnq.js → chunk-46j8adkj.js} +2 -2
- package/dist/{chunk-yw927w3q.js → chunk-483jakc1.js} +2 -2
- package/dist/chunk-48zgp33j.js +2 -0
- package/dist/{chunk-xxmzqazr.js → chunk-4d2khkms.js} +2 -2
- package/dist/{chunk-re34mbpa.js → chunk-4mca4p7m.js} +2 -2
- package/dist/{chunk-chg6j0zg.js → chunk-4p1z0b21.js} +2 -2
- package/dist/chunk-4p3ekttc.js +2 -0
- package/dist/{chunk-5f7t16kj.js → chunk-4sj3t6mk.js} +2 -2
- package/dist/{chunk-kdcde4s5.js → chunk-4w0x1hdt.js} +2 -2
- package/dist/{chunk-51s7qck0.js → chunk-54awxpw2.js} +2 -2
- package/dist/{chunk-xckysrk7.js → chunk-5cas0xvp.js} +2 -2
- package/dist/{chunk-12bfnfbk.js → chunk-5dtpfpq5.js} +2 -2
- package/dist/{chunk-3vdx0cme.js → chunk-5dxzfdd1.js} +2 -2
- package/dist/{chunk-ypdh88cj.js → chunk-5dygcexv.js} +2 -2
- package/dist/chunk-5fcp7haj.js +4 -0
- package/dist/chunk-5g32hx9d.js +2 -0
- package/dist/{chunk-p9226dye.js → chunk-5h8h4sas.js} +2 -2
- package/dist/chunk-5ny4ped8.js +2 -0
- package/dist/chunk-5wed639g.js +2 -0
- package/dist/{chunk-zwpv75f4.js → chunk-6hxz5cpc.js} +2 -2
- package/dist/{chunk-n96z8etk.js → chunk-6ja6pt5x.js} +2 -2
- package/dist/{chunk-b7ze9dje.js → chunk-6kyq5zxt.js} +2 -2
- package/dist/chunk-6m9frvzj.js +2 -0
- package/dist/chunk-6xzf444w.js +2 -0
- package/dist/{chunk-82e3194f.js → chunk-70ks1y6v.js} +2 -2
- package/dist/{chunk-rayhzb8p.js → chunk-7393tva2.js} +2 -2
- package/dist/{chunk-18ea0dty.js → chunk-7dy4z3r8.js} +2 -2
- package/dist/{chunk-fbrv2v3t.js → chunk-7egc2x4q.js} +1 -1
- package/dist/{chunk-y47sn7w2.js → chunk-7g0cbkbp.js} +2 -2
- package/dist/{chunk-3y9az4b9.js → chunk-7n1v87h0.js} +2 -2
- package/dist/{chunk-cy5kh1yr.js → chunk-7rqryntm.js} +2 -2
- package/dist/{chunk-zmr5pwhd.js → chunk-7vby3f2v.js} +2 -2
- package/dist/{chunk-f8bx4etj.js → chunk-8477q09c.js} +2 -2
- package/dist/{chunk-jhaf3qtt.js → chunk-8f8dma9e.js} +2 -2
- package/dist/{chunk-py2q899w.js → chunk-8ktb3g8c.js} +2 -2
- package/dist/{chunk-w1h28vvd.js → chunk-8zy4az1y.js} +2 -2
- package/dist/{chunk-wkbxdz82.js → chunk-9162ez1n.js} +2 -2
- package/dist/{chunk-6yx869ht.js → chunk-91jmmkd3.js} +2 -2
- package/dist/{chunk-vcj2jfnz.js → chunk-964fwwsg.js} +2 -2
- package/dist/{chunk-egbb5295.js → chunk-9cfmet6r.js} +2 -2
- package/dist/{chunk-tszqev50.js → chunk-9sag90th.js} +2 -2
- package/dist/{chunk-rsbced6k.js → chunk-a6vp2dmt.js} +2 -2
- package/dist/{chunk-m8243rnx.js → chunk-a74zcp1j.js} +2 -2
- package/dist/{chunk-xcx9g1wb.js → chunk-aa2xhwh2.js} +2 -2
- package/dist/{chunk-r8gfcyeb.js → chunk-abxsr9d1.js} +2 -2
- package/dist/{chunk-ky3n1mza.js → chunk-afnnrn6z.js} +2 -2
- package/dist/{chunk-srz8hnnx.js → chunk-afypqn52.js} +3 -3
- package/dist/{chunk-7a806p3q.js → chunk-ansfap1a.js} +3 -3
- package/dist/{chunk-9qqxdv6f.js → chunk-avq6x733.js} +2 -2
- package/dist/{chunk-jftxq3se.js → chunk-axz2rr58.js} +2 -2
- package/dist/{chunk-8tnx3p86.js → chunk-b0p2j2ab.js} +1 -1
- package/dist/{chunk-0zncrzar.js → chunk-b4qe4xnp.js} +2 -2
- package/dist/{chunk-p9x6rya1.js → chunk-b4wh6k5s.js} +2 -2
- package/dist/{chunk-hj8nkk6a.js → chunk-b64hyshj.js} +2 -2
- package/dist/{chunk-abbpbnjj.js → chunk-bajn7ssf.js} +2 -2
- package/dist/{chunk-xg6ayxsy.js → chunk-batckcj8.js} +2 -2
- package/dist/{chunk-j9f4mh66.js → chunk-bbfzm39y.js} +2 -2
- package/dist/{chunk-gh1rtwrb.js → chunk-bj3sacn1.js} +2 -2
- package/dist/{chunk-h3geg09z.js → chunk-bmeych5s.js} +2 -2
- package/dist/{chunk-x4brdfv3.js → chunk-bsqe29dh.js} +2 -2
- package/dist/{chunk-m6yg0dc9.js → chunk-cxhyh0w9.js} +2 -2
- package/dist/chunk-cz31f4gr.js +2 -0
- package/dist/{chunk-1pnbntv2.js → chunk-d336k00a.js} +2 -2
- package/dist/{chunk-9n8cds8p.js → chunk-d5pn8932.js} +2 -2
- package/dist/{chunk-016v1nnv.js → chunk-dakt7k9q.js} +4 -4
- package/dist/{chunk-j4w2hbbe.js → chunk-darm80tf.js} +2 -2
- package/dist/chunk-dhda1jhs.js +2 -0
- package/dist/{chunk-rrzz41z1.js → chunk-djppmswk.js} +2 -2
- package/dist/{chunk-5fyxge7c.js → chunk-drs741zm.js} +2 -2
- package/dist/{chunk-pd5yrdg6.js → chunk-dzw6vqqf.js} +2 -2
- package/dist/{chunk-cj99j82f.js → chunk-e0t3cpx3.js} +2 -2
- package/dist/{chunk-3dvxhfcr.js → chunk-e8mxwqxy.js} +2 -2
- package/dist/{chunk-jfyz3rx6.js → chunk-edqxxx93.js} +2 -2
- package/dist/chunk-eedgav4q.js +2 -0
- package/dist/{chunk-4hasepkm.js → chunk-eexn5mmk.js} +2 -2
- package/dist/chunk-eg00mvca.js +2 -0
- package/dist/{chunk-3a8qwbgh.js → chunk-esxjnj1y.js} +3 -3
- package/dist/{chunk-yjm613ey.js → chunk-et01n220.js} +2 -2
- package/dist/{chunk-5jvpeww3.js → chunk-ezaypwps.js} +2 -2
- package/dist/{chunk-c4rptwfx.js → chunk-f0gq9f1f.js} +3 -3
- package/dist/{chunk-bf7sgpzq.js → chunk-f9zpep12.js} +2 -2
- package/dist/{chunk-3d3z6dam.js → chunk-ftsqd7n5.js} +2 -2
- package/dist/{chunk-544g9fky.js → chunk-fz9y067h.js} +2 -2
- package/dist/{chunk-t4twdrdg.js → chunk-g23ktesb.js} +2 -2
- package/dist/{chunk-kvwyryw2.js → chunk-g9426ns9.js} +2 -2
- package/dist/{chunk-spqfmr4z.js → chunk-gt50nb3j.js} +2 -2
- package/dist/{chunk-7k2z2nvy.js → chunk-gtyrc6cd.js} +2 -2
- package/dist/{chunk-wbjf9maj.js → chunk-gvqvw7ms.js} +2 -2
- package/dist/chunk-h1t76wws.js +2 -0
- package/dist/{chunk-fdfftrzj.js → chunk-hfh3yen9.js} +3 -3
- package/dist/{chunk-znafsq0a.js → chunk-hm7f1vsx.js} +2 -2
- package/dist/chunk-hmtsavm4.js +2 -0
- package/dist/chunk-hqfhb4ng.js +2 -0
- package/dist/{chunk-06mvwewp.js → chunk-hz8yrg2t.js} +2 -2
- package/dist/{chunk-8q5zwkry.js → chunk-hzhcajx1.js} +2 -2
- package/dist/{chunk-mfrg4vze.js → chunk-j1kf4cj2.js} +5 -5
- package/dist/{chunk-nqt9gyz9.js → chunk-jkqh03w4.js} +2 -2
- package/dist/chunk-jtcccqpp.js +2 -0
- package/dist/{chunk-j29d8rts.js → chunk-jtnjd3ec.js} +2 -2
- package/dist/{chunk-pyqhwz2d.js → chunk-jv1db7gt.js} +2 -2
- package/dist/{chunk-qm0zd4wj.js → chunk-jx0djwvd.js} +2 -2
- package/dist/{chunk-nf7q3crw.js → chunk-jytat3j5.js} +3 -3
- package/dist/{chunk-7z1k4s4f.js → chunk-k1atcess.js} +2 -2
- package/dist/{chunk-cr0pb6g0.js → chunk-kcgc9915.js} +2 -2
- package/dist/chunk-m0skv5q0.js +2 -0
- package/dist/{chunk-a1wbf348.js → chunk-m395aw24.js} +3 -3
- package/dist/chunk-m3a6paxj.js +2 -0
- package/dist/{chunk-qmx3t5he.js → chunk-m7tj6194.js} +2 -2
- package/dist/{chunk-23r2z6bp.js → chunk-m9rbb04n.js} +2 -2
- package/dist/{chunk-11kv54bx.js → chunk-me230xjh.js} +3 -3
- package/dist/chunk-mjfc1dyv.js +2 -0
- package/dist/{chunk-wbnmcagf.js → chunk-mnz33drf.js} +3 -3
- package/dist/{chunk-kagkszdc.js → chunk-mtcxr3ns.js} +2 -2
- package/dist/{chunk-pe79c1re.js → chunk-mzqfa37p.js} +2 -2
- package/dist/chunk-n7pyzjq1.js +2 -0
- package/dist/{chunk-rfkgks0a.js → chunk-nabyjzn5.js} +2 -2
- package/dist/{chunk-c3nn4h2q.js → chunk-nfkfgz2s.js} +2 -2
- package/dist/{chunk-p6ffd8yn.js → chunk-nn8pmwqz.js} +2 -2
- package/dist/{chunk-9ecgnmtx.js → chunk-npkbsc1k.js} +3 -3
- package/dist/{chunk-wvm8srp7.js → chunk-p474fn4q.js} +2 -2
- package/dist/chunk-p781sb6h.js +2 -0
- package/dist/{chunk-9h9vtcwk.js → chunk-paxthe5v.js} +2 -2
- package/dist/{chunk-93bqj8az.js → chunk-pbx1417n.js} +2 -2
- package/dist/{chunk-djqexpgf.js → chunk-pqw5qz4e.js} +2 -2
- package/dist/{chunk-n8b9yg4q.js → chunk-pqz2471h.js} +2 -2
- package/dist/chunk-pv7t4hw8.js +2 -0
- package/dist/{chunk-46bgwhx8.js → chunk-pxv16edc.js} +2 -2
- package/dist/{chunk-4z6gyvy3.js → chunk-pyx2n7yx.js} +2 -2
- package/dist/{chunk-3915ad7f.js → chunk-qbxdgkk9.js} +2 -2
- package/dist/chunk-qecs9e31.js +2 -0
- package/dist/{chunk-jnpkpe5t.js → chunk-qt16accq.js} +2 -2
- package/dist/{chunk-enc99kvz.js → chunk-r013w7yb.js} +2 -2
- package/dist/{chunk-kx9nnmwb.js → chunk-r3s28905.js} +3 -3
- package/dist/chunk-r7n16m8h.js +2 -0
- package/dist/{chunk-af0e5epn.js → chunk-r7z3mvej.js} +2 -2
- package/dist/chunk-rak4mkgh.js +2 -0
- package/dist/{chunk-zyermn00.js → chunk-rkejggyx.js} +2 -2
- package/dist/{chunk-xb6x221t.js → chunk-rtjf5haf.js} +2 -2
- package/dist/{chunk-ay699evt.js → chunk-s0mrsrb0.js} +3 -3
- package/dist/{chunk-tftgnw1w.js → chunk-sjqhtpzr.js} +2 -2
- package/dist/{chunk-askwff3a.js → chunk-smd9rszw.js} +3 -3
- package/dist/{chunk-036wyz4n.js → chunk-swmxz9q0.js} +2 -2
- package/dist/{chunk-2d4zb2ac.js → chunk-t56ncd8f.js} +2 -2
- package/dist/{chunk-5p53j8mf.js → chunk-t9ktp4sf.js} +2 -2
- package/dist/{chunk-v6x7x69b.js → chunk-tdw7k1df.js} +2 -2
- package/dist/{chunk-705j0x4q.js → chunk-tjc0ntnh.js} +2 -2
- package/dist/{chunk-tzb4b5ve.js → chunk-tnmghaap.js} +2 -2
- package/dist/chunk-ts7h148j.js +2 -0
- package/dist/{chunk-h4cx5xr4.js → chunk-v5m2qx8b.js} +4 -4
- package/dist/{chunk-4vfrxhj4.js → chunk-vazspetj.js} +2 -2
- package/dist/{chunk-pwk7epmy.js → chunk-vbbndjfd.js} +2 -2
- package/dist/chunk-vchbk4h5.js +2 -0
- package/dist/{chunk-15m908ph.js → chunk-vhxr0c4c.js} +2 -2
- package/dist/{chunk-z5n4zqeg.js → chunk-vw6546pp.js} +2 -2
- package/dist/{chunk-mfmh7ztq.js → chunk-vzm88w2r.js} +2 -2
- package/dist/{chunk-7r3k37ys.js → chunk-wdxxr1xk.js} +2 -2
- package/dist/{chunk-9m36e0yq.js → chunk-wf4z9w5x.js} +2 -2
- package/dist/{chunk-fy8dmpv3.js → chunk-wwywmqh8.js} +2 -2
- package/dist/{chunk-mq32437t.js → chunk-wy4rtebz.js} +2 -2
- package/dist/chunk-x0m4ctqf.js +2 -0
- package/dist/chunk-xpts50f0.js +2 -0
- package/dist/{chunk-c531krny.js → chunk-xq4xeksc.js} +3 -3
- package/dist/{chunk-q988bycf.js → chunk-yfb5hj4w.js} +2 -2
- package/dist/{chunk-nec3tcjh.js → chunk-ymgc4317.js} +2 -2
- package/dist/{chunk-cjj5bxdb.js → chunk-yvmjh230.js} +2 -2
- package/dist/{chunk-r84xcy0d.js → chunk-ywax4zad.js} +2 -2
- package/dist/{chunk-cfj92m1y.js → chunk-z930082m.js} +2 -2
- package/dist/chunk-zd1fk347.js +2 -0
- 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/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/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 +1 -1
- package/dist/chunk-0vtxfvdj.js +0 -2
- package/dist/chunk-1h3f538q.js +0 -2
- package/dist/chunk-2qa3c571.js +0 -2
- package/dist/chunk-2w3c4tg8.js +0 -2
- package/dist/chunk-5e575zvm.js +0 -2
- package/dist/chunk-6ewv4vns.js +0 -2
- package/dist/chunk-6wsr59dr.js +0 -2
- package/dist/chunk-7gv27b1c.js +0 -2
- package/dist/chunk-9dm7j0c9.js +0 -4
- package/dist/chunk-b5g055qp.js +0 -2
- package/dist/chunk-c4mm4fzg.js +0 -2
- package/dist/chunk-d9q9qgm1.js +0 -2
- package/dist/chunk-eb78ebxa.js +0 -2
- package/dist/chunk-et3nrp9v.js +0 -2
- package/dist/chunk-fer4r3b8.js +0 -2
- package/dist/chunk-hjbq9ez1.js +0 -2
- package/dist/chunk-hwppy236.js +0 -2
- package/dist/chunk-hzcerz8j.js +0 -2
- package/dist/chunk-jp2s1xsa.js +0 -2
- package/dist/chunk-jzarxwap.js +0 -2
- package/dist/chunk-ky4j58wz.js +0 -2
- package/dist/chunk-mdzng667.js +0 -2
- package/dist/chunk-mgs3dhdm.js +0 -2
- package/dist/chunk-p0v9d7e1.js +0 -2
- package/dist/chunk-qj87dxrr.js +0 -2
- package/dist/chunk-qth2ames.js +0 -2
- package/dist/chunk-qyfkwznx.js +0 -2
- package/dist/chunk-rkqptd9w.js +0 -2
- package/dist/chunk-srqs8z90.js +0 -2
- package/dist/chunk-v92wj4tv.js +0 -2
- package/dist/chunk-vsm89jmx.js +0 -2
- package/dist/chunk-wg223rq3.js +0 -2
- package/dist/chunk-wv6ntscn.js +0 -2
- package/dist/chunk-x03z0hme.js +0 -2
- package/dist/chunk-x072jj4c.js +0 -2
- package/dist/chunk-y3kn2w77.js +0 -2
- package/dist/chunk-zdqjjwx0.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Gn}from"./chunk-jtcccqpp.js";import{Button as n}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as a,jsxs as o,Fragment as l}from"react/jsx-runtime";function sa({title:i,actions:r=[],children:t}){return o(l,{children:[o("div",{className:"flex h-[var(--navigation-row-height,30px)] items-center gap-0.5","data-tauri-drag-region":!0,children:[a("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold","data-tauri-drag-region":!0,children:i}),r.map((e)=>a(Gn,{label:e.label,shortcut:e.shortcut,children:a(n,{variant:"ghost",size:"icon-sm",className:"size-[var(--navigation-row-height,30px)] p-0","aria-label":e.label,onClick:e.onClick,children:e.icon})},e.key))]}),t!=null&&a("div",{className:"flex flex-col gap-0.5",children:t})]})}
|
|
2
|
+
export{sa};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{t}from"./chunk-7393tva2.js";import{codexTurnError as R}from"@nyssance/codex-acp-v2/client";import{AlertCircleIcon as C}from"lucide-react";import{useEffect as k,useRef as i,useState as s}from"react";import{Button as I}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as n,jsxs as m}from"react/jsx-runtime";function no({children:u}){return m("div",{className:"codex-error-message",role:"alert",children:[n(C,{"aria-hidden":"true"}),n("div",{className:"min-w-0 flex-1",children:u})]})}function oo({error:u,retry:e}){let{t:f,turnErrorAction:T}=t(),c=R(u),[l]=s(()=>e?.delaySeconds==null?null:Date.now()+e.delaySeconds*1000),[p,v]=s(e?.delaySeconds??null),[h,y]=s(!1),[x,g]=s(null),o=i(!1),w=i(!1),E=i(e?.run);E.current=e?.run;let S=i((N)=>{let a=E.current;if(o.current||a===void 0)return;o.current=!0,y(!0),g(null),a(N).catch((r)=>{w.current=!0,o.current=!1,v(null),y(!1),g(r instanceof Error?r.message:String(r))})}),b=T?.(c),d=b===void 0&&e!==void 0&&c.retryable;return k(()=>{if(!d||l===null)return;let a=setInterval(()=>{if(w.current||o.current)return;let r=Math.max(0,Math.ceil((l-Date.now())/1000));if(v(r),r===0)S.current("automatic")},1000);return()=>clearInterval(a)},[l,d]),m(no,{children:[m("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[n("div",{className:"min-w-0 flex-1 whitespace-pre-wrap",children:c.message}),b,d&&n(I,{variant:"outline",size:"sm",disabled:h,onClick:()=>S.current("manual"),children:p===null?f("timeline.retry"):f("timeline.retryCountdown",{seconds:p})})]}),x!==null&&n("div",{className:"text-muted-foreground mt-2 text-sm",children:x})]})}
|
|
2
|
+
export{no,oo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{xe}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{xe}from"./chunk-b0p2j2ab.js";import{C}from"./chunk-x0m4ctqf.js";import{t,ce}from"./chunk-7393tva2.js";import{isEmbeddedResource as T,isImage as N,isResourceLink as L}from"@nyssance/codex-acp-v2/client";import{DownloadIcon as F,FileIcon as y,ImageOffIcon as U,LoaderCircleIcon as z}from"lucide-react";import{useState as I}from"react";import{Button as c}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as n,jsxs as s}from"react/jsx-runtime";function Kn(e){let r=e.split(/[\\/]/).at(-1)??e;if(e.startsWith("file:")||/^https?:/.test(e))r=new URL(e).pathname.split("/").at(-1)??"";try{return decodeURIComponent(r)||"attachment"}catch(a){if(a instanceof URIError)return r||"attachment";throw a}}function Oo(e,r){let a=document.createElement("a");a.href=r,a.download=e,a.click()}function D({block:e,generated:r=!1}){let a=t(),[d,f]=I(!1),[R,B]=I(null);if(L(e)){let p=C(e.uri);if(p!==null)return n(xe,{app:{id:p,name:e.title??e.name}});if(e.uri==="codex-image:unavailable")return s("span",{className:"text-muted-foreground flex items-center gap-2 rounded-lg border p-3 text-sm",children:[n(U,{className:"size-4"}),a.t("timeline.imageUnavailable")]});let u=Kn(e.uri);return s(c,{variant:"outline",className:"h-auto max-w-full min-w-0 justify-start gap-3 overflow-hidden p-3","aria-label":e.title??e.name,title:e.uri,onClick:()=>a.openLink(e.uri),children:[n(y,{}),s("span",{className:"min-w-0 flex-1 text-start",children:[n("span",{className:"block truncate",children:e.title??e.name}),s("span",{className:"text-muted-foreground block truncate text-xs",children:[(e.title??e.name)!==u&&`${u} · `,e.mimeType??u.split(".").at(-1)?.toUpperCase()]})]})]})}if(!T(e)&&!N(e))return null;let i=N(e)?{uri:e.uri??`image.${e.mimeType.split("/")[1]??"png"}`,mimeType:e.mimeType,blob:e.data}:e.resource,o=Kn(i.uri);if("text"in i)return s("div",{className:"min-w-0",children:[n("pre",{className:"overflow-x-auto whitespace-pre-wrap",children:i.text}),s(c,{variant:"link",size:"sm",className:"max-w-full min-w-0",title:i.uri,onClick:()=>a.openLink(i.uri),children:[n(y,{}),n("span",{className:"truncate",children:o})]})]});let m=`data:${i.mimeType??"application/octet-stream"};base64,${i.blob}`,g=i.mimeType?.toLowerCase().startsWith("image/")&&R!==m,{openImage:w,openImageGallery:x}=a,v=x?()=>x([{src:m,alt:o,uri:i.uri}],0):w&&(()=>w(m)),l=r&&g,E=async()=>{f(!0);try{if(a.saveFile)await a.saveFile(o,i.blob);else Oo(o,m)}catch(p){ce(a,p)}finally{f(!1)}},h=n("img",{src:m,alt:"",className:r?"max-h-[40rem] max-w-full object-contain":"max-h-96 max-w-full rounded object-contain",onError:()=>B(m)});return s("div",{className:l?"codex-generated-image":"flex max-w-full min-w-0 flex-col items-start gap-1",children:[g&&(v===void 0?h:n(c,{variant:"ghost",className:r?"codex-generated-image-preview h-auto max-w-full p-0":"h-auto max-w-full p-0","aria-label":a.t("timeline.viewImage"),onClick:v,children:h})),s(c,{variant:l?"secondary":"link",size:l?"icon":"sm",className:l?"codex-generated-image-download":"max-w-full min-w-0",disabled:d,title:a.t("timeline.download",{name:o}),"aria-label":a.t("timeline.download",{name:o}),onClick:()=>{E()},children:[d?n(z,{className:"motion-safe:animate-spin"}):n(F,{}),!l&&n("span",{className:"truncate",children:o})]})]})}
|
|
2
|
+
export{Kn,Oo,D};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Un}from"./chunk-2sc2z6g5.js";function wo(t){let n=t?.match(/^gateway:custom-[^:]+:(.+)$/);if(!n)return null;let l=decodeURIComponent(n[1]),e=Un.models.find((o)=>o.slug===l);return e?{value:e.default_reasoning_level,hidden:e.supported_reasoning_levels.length===0}:null}
|
|
2
|
+
export{wo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cn as i}from"cn";import{jsx as t,jsxs as s}from"react/jsx-runtime";var
|
|
2
|
-
export{
|
|
1
|
+
import{cn as i}from"cn";import{jsx as t,jsxs as s}from"react/jsx-runtime";var At="group/trailing";function ot({children:n,className:e}){return t("span",{className:i("flex w-5 shrink-0 items-center justify-center whitespace-nowrap",e),children:n})}function Et({content:n,actions:e,className:r}){if(n==null&&e==null)return null;return s("span",{className:i("group/swap relative flex min-h-5 min-w-5 shrink-0 items-center justify-end",r),children:[n!=null&&t("span",{className:i("flex items-center justify-end",e!=null&&"group-focus-within/trailing:hidden group-hover/trailing:hidden group-has-[[data-popup-open]]/swap:hidden"),children:n}),e!=null&&t("span",{className:"absolute inset-y-0 end-0 hidden w-max items-center justify-end gap-0.5 group-focus-within/trailing:flex group-hover/trailing:flex has-[[data-popup-open]]:flex",onClick:(a)=>a.stopPropagation(),onKeyDown:(a)=>a.stopPropagation(),children:e})]})}
|
|
2
|
+
export{At,ot,Et};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{C,
|
|
1
|
+
import{C,ns}from"./chunk-x0m4ctqf.js";import{isResourceLink as g,isText as v}from"@nyssance/codex-acp-v2/client";import{useRef as h}from"react";function Fi(o,m,x,y=!1){let i=h(null);return(t)=>{if(t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.key!=="ArrowUp"&&t.key!=="ArrowDown")return;let n=t.currentTarget;if(n.selectionStart!==n.selectionEnd)return;let e=i.current;if(e&&(e.sessionId!==o.id||e.value!==n.value))i.current=null,e=null;let s=t.key==="ArrowUp";if(s?n.value.slice(0,n.selectionStart).includes(`
|
|
2
2
|
`):n.value.slice(n.selectionEnd).includes(`
|
|
3
3
|
`))return;if(!e){if(!s||n.value!==""||y)return;let u=o.items.flatMap((a)=>{if(a.kind!=="user")return[];let f=a.content.filter(v).map((l)=>l.text).join(`
|
|
4
|
-
`),p=a.content.filter(g).flatMap((l)=>{let d=C(l.uri);return d===null?[]:[{id:d,name:l.name}]});return f.trim()||p.length?[{text:
|
|
5
|
-
export{
|
|
4
|
+
`),p=a.content.filter(g).flatMap((l)=>{let d=C(l.uri);return d===null?[]:[{id:d,name:l.name}]});return f.trim()||p.length?[{text:ns(f,p),apps:p}]:[]});if(!u.length)return;e={sessionId:o.id,entries:u,index:u.length,value:""},i.current=e}t.preventDefault(),e.index=Math.max(0,Math.min(e.entries.length,e.index+(s?-1:1)));let c=e.entries[e.index],r=c?.text??"";if(x?.(c?.apps??[]),e.value=r,m(r),n.value=r,n.setSelectionRange(r.length,r.length),e.index===e.entries.length)i.current=null}}
|
|
5
|
+
export{Fi};
|
|
@@ -0,0 +1,2 @@
|
|
|
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-18gxawh7.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,K]=M([]),[H,T]=M("loading");j(()=>{if(!a||c||!v.installedApps)return;let t=!0;return T("loading"),K([]),v.installedApps().then(({apps:s})=>{if(!t)return;K(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 O=(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:H==="loading"?d("composer.appsLoading"):H==="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.shiftKey&&!n.altKey||n.key==="Tab"){n.preventDefault(),n.stopPropagation();let w=m.find((A)=>A.key===b);if(w)O(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:()=>O(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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{R}from"./chunk-d336k00a.js";import{createContext as c,useContext as p,useState as f,useSyncExternalStore as x}from"react";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as y,DialogContent as D,DialogDescription as L,DialogFooter as w,DialogHeader as P,DialogTitle as H}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as d}from"react/jsx-runtime";var S=c(null),g=c(null),C=c(null);function ka({host:e,client:t,children:n}){let[r,l]=f(null);R(r!==null);let{t:u}=e;return i(S,{value:e,children:i(g,{value:t,children:d(C,{value:l,children:[n,i(y,{open:r!==null,onOpenChange:(v)=>!v&&l(null),children:d(D,{children:[d(P,{children:[i(H,{children:u("sessionList.deleteTitle")}),i(L,{children:u("sessionList.deleteDescription")})]}),d(w,{children:[i(m,{variant:"outline",onClick:()=>l(null),children:u("sessionList.cancel")}),i(m,{onClick:()=>{if(r)h(e,t.delete(r.sessionId));l(null)},children:u("sessionList.delete")})]})]})})]})})})}function s(){let e=p(S);if(e===null)throw Error("Session list host is missing");return e}function Ur(){return p(S)}function a(){let e=p(g);if(e===null)throw Error("Session list client is missing");return e}function jn(){let e=p(C);if(e===null)throw Error("Session list provider is missing");return e}function o(e){let t=a();return x((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function h(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
|
|
2
|
+
export{ka,s,Ur,a,jn,o,h};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function a(t){if(t.path.startsWith("/")||/^[A-Za-z]:[\\/]/.test(t.path))return t.path;return`${t.root.replace(/[\\/]+$/,"")}/${t.path}`}function
|
|
2
|
-
export{
|
|
1
|
+
function a(t){if(t.path.startsWith("/")||/^[A-Za-z]:[\\/]/.test(t.path))return t.path;return`${t.root.replace(/[\\/]+$/,"")}/${t.path}`}function cn(t,o=50){return t.slice(0,o).map((e)=>{let r=a(e);return{key:r,label:e.path,payload:r,description:e.match_type==="directory"?"/":""}})}
|
|
2
|
+
export{cn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{R}from"./chunk-d336k00a.js";import{s,h}from"./chunk-r7z3mvej.js";import{v,f}from"./chunk-gtyrc6cd.js";import{GlobeIcon as I,LogOutIcon as G}from"lucide-react";import{useRef as k,useState as c}from"react";import{Avatar as T,AvatarFallback as B,AvatarImage as E}from"@nyssance/shadcn/vega/components/ui/avatar";import{DropdownMenu as H,DropdownMenuContent as U,DropdownMenuGroup as d,DropdownMenuItem as F,DropdownMenuLabel as j,DropdownMenuRadioGroup as z,DropdownMenuRadioItem as V,DropdownMenuSeparator as l,DropdownMenuSub as W,DropdownMenuSubContent as _,DropdownMenuSubTrigger as q,DropdownMenuTrigger as J}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as n}from"react/jsx-runtime";function da(e){return o(d,{...e})}function ua(e){return o(l,{...e})}function Ar({className:e,...r}){return o(F,{className:["h-[var(--navigation-row-height,30px)] py-0 [&_svg]:text-muted-foreground",e].filter(Boolean).join(" "),...r})}function pa({languages:e,value:r,onChange:i}){let a=s();return n(W,{children:[n(q,{className:"h-[var(--navigation-row-height,30px)] py-0",children:[o(I,{className:"text-muted-foreground"}),a.t("sessionList.language")]}),o(_,{children:o(z,{value:r,onValueChange:(t)=>void h(a,Promise.resolve(i(t))),children:e.map((t)=>o(V,{value:t.code,children:t.label},t.code))})})]})}function ma({user:e,children:r,onSignOut:i,busy:a=!1}){let t=s(),{t:N}=t,[g,C]=c(!1),[L,m]=c(!1),M=k(null),[w,S]=c({width:0,offset:0}),O=(x)=>{if(x){let p=M.current,u=p?.closest("[data-sidebar-footer-row]");if(!p||!u)throw Error("AccountMenu must sit in a [data-sidebar-footer-row] row");let y=u.getBoundingClientRect(),A=p.getBoundingClientRect(),P=getComputedStyle(u).direction==="rtl";S({width:u.clientWidth,offset:P?y.right-A.right:A.left-y.left})}C(x)};R(g);let b=a||L,D=n(T,{className:"size-[18px] after:border-0",children:[o(E,{src:e.avatar??void 0,alt:""}),o(B,{className:"bg-primary text-primary-foreground text-xs",children:[...e.name].slice(0,2).join("").toLocaleUpperCase()})]});return n(H,{open:g,onOpenChange:O,children:[n(J,{ref:M,render:o(f,{disabled:b,className:"text-muted-foreground hover:bg-foreground/8 data-popup-open:bg-foreground/5 font-normal"}),children:[o(v,{children:D}),o("span",{className:"min-w-0 truncate",children:e.name})]}),n(U,{side:"top",align:"start",alignOffset:-w.offset,sideOffset:8,style:{width:w.width},children:[n(d,{children:[n(j,{className:"text-popover-foreground flex items-center gap-2 px-2 py-2 text-sm font-medium",children:[o(v,{children:D}),n("span",{className:"min-w-0 flex-1",children:[o("span",{className:"block truncate",children:e.name}),o("span",{className:"text-muted-foreground mt-0.5 block truncate text-xs font-normal",children:e.email})]})]}),o(l,{})]}),r,r!=null&&o(l,{}),o(d,{children:n(Ar,{disabled:b,onClick:()=>{m(!0),h(t,i()).finally(()=>m(!1))},children:[o(G,{}),N("sessionList.signOut")]})})]})]})}
|
|
2
|
+
export{da,ua,Ar,pa,ma};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{H,Ot,is}from"./chunk-3btheq4v.js";import{p}from"./chunk-70ks1y6v.js";function f(o,d,r){let s=document.createElement("span");if(s.contentEditable="false",s.setAttribute("aria-label",o),s.className=Ot,r){let t=document.createElement("img");t.src=r,t.alt="",t.draggable=!1,t.setAttribute("aria-hidden","true"),t.className="size-3.5 shrink-0 self-center object-contain";let l=document.createElement("span");return l.textContent=o,s.append(t,l),s}let a=document.createElementNS("http://www.w3.org/2000/svg","svg");for(let[t,l]of Object.entries({viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"}))a.setAttribute(t,l);a.setAttribute("class","size-3.5 shrink-0 self-center");for(let[t,l]of is[d]){let e=document.createElementNS("http://www.w3.org/2000/svg",t);for(let[i,c]of Object.entries(l))e.setAttribute(i,c);a.append(e)}let n=document.createElement("span");return n.textContent=o,s.append(a,n),s}function sr(o,d,r=[],s){let a=document.createDocumentFragment(),n="",t=()=>{let e=0;for(let i of H(n,r)){a.append(document.createTextNode(n.slice(e,i.start)));let c=f(i.name.slice(1),i.kind,i.kind==="skill"?s?.(i.name.slice(1)):void 0);if(i.kind==="skill")c.dataset.inlineSkill=i.name;else c.dataset.inlineCommand=i.name;a.append(c);let u=document.createElement("span");u.dataset.inlineAnchor="",u.textContent="",a.append(u),e=i.end}if(n.slice(e))a.append(document.createTextNode(n.slice(e)));n=""};for(let e of p(d)){if(typeof e==="string"){n+=e;continue}t();let i=f(e.name,"app");i.dataset.inlineApp=e.id,a.append(i);let c=document.createElement("span");c.dataset.inlineAnchor="",c.textContent="",a.append(c)}t();let l=document.createElement("br");l.dataset.inlineCaret="",a.append(l),o.replaceChildren(a)}function fo(o,d){let r=[],s=new Map(d.map((n)=>[n.id,n])),a=(n)=>{if(n.nodeType===Node.TEXT_NODE){r.push(...(n.textContent??"").split(""));return}if(n instanceof HTMLElement){if(n.hasAttribute("data-inline-caret"))return;if(n.hasAttribute("data-inline-anchor")){r.push(...(n.textContent??"").replace("","").split(""));return}let t=n.dataset.inlineSkill??n.dataset.inlineCommand;if(t!==void 0){r.push(...t.split(""));return}let l=n.dataset.inlineApp;if(l!==void 0){let i=s.get(l);if(i)r.push(i);return}if(n.tagName==="BR"){r.push(`
|
|
2
2
|
`);return}if((n.tagName==="DIV"||n.tagName==="P")&&r.length&&r.at(-1)!==`
|
|
3
3
|
`)r.push(`
|
|
4
|
-
`)}for(let t of n.childNodes)a(t)};for(let n of o.childNodes)a(n);return r}function
|
|
5
|
-
export{
|
|
4
|
+
`)}for(let t of n.childNodes)a(t)};for(let n of o.childNodes)a(n);return r}function ar(o,d,r){let s=window.getSelection();if(!s?.rangeCount)return r;let a=s.getRangeAt(0);if(!o.contains(a.startContainer)||!o.contains(a.endContainer))return r;let n=(t,l)=>{let e=document.createRange();return e.selectNodeContents(o),e.setEnd(t,l),fo(e.cloneContents(),d).length};return{start:n(a.startContainer,a.startOffset),end:n(a.endContainer,a.endOffset)}}function ho(o,d){let r=(n)=>{let t=Math.max(0,n);for(let[l,e]of[...o.childNodes].entries())if(e.nodeType===Node.TEXT_NODE){let i=e.textContent?.length??0;if(t<=i)return[e,t];t-=i}else if(e instanceof HTMLElement&&e.hasAttribute("data-inline-anchor")){let i=e.firstChild,c=(e.textContent??"").replace("","").length;if(i&&t<=c)return[i,t+(i.textContent?.startsWith("")?1:0)];t-=c}else if(e instanceof HTMLElement&&(e.dataset.inlineSkill!==void 0||e.dataset.inlineCommand!==void 0)){let i=(e.dataset.inlineSkill??e.dataset.inlineCommand).length;if(t<i)return[o,l];t-=i}else if(e instanceof HTMLElement&&e.dataset.inlineApp!==void 0){if(t===0)return[o,l];t--}else if(e instanceof HTMLElement&&e.tagName==="BR")return[o,l];return[o,o.childNodes.length]},s=document.createRange();s.setStart(...r(d.start)),s.setEnd(...r(d.end));let a=window.getSelection();a?.removeAllRanges(),a?.addRange(s)}
|
|
5
|
+
export{sr,fo,ar,ho};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function On(n,r){let i=new Set(r);i.add(n);let t=/^(.*?)\s*\((\d+)\)$/.exec(n),s=t?t[1].trimEnd():n,e=t?BigInt(t[2])+1n:2n;while(i.has(`${s} (${e})`))e++;return`${s} (${e})`}
|
|
2
|
+
export{On};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{html as n}from"diff2html";import{ColorSchemeType as r}from"diff2html/lib/types";import{useMemo as s}from"react";import{jsx as a}from"react/jsx-runtime";function
|
|
2
|
-
`)){if(o.startsWith("+++")||o.startsWith("---"))continue;if(o.startsWith("+"))t+=1;else if(o.startsWith("-"))i+=1}return{additions:t,deletions:i}}function
|
|
3
|
-
export{
|
|
1
|
+
import{html as n}from"diff2html";import{ColorSchemeType as r}from"diff2html/lib/types";import{useMemo as s}from"react";import{jsx as a}from"react/jsx-runtime";function Wr(e){let t=0,i=0;for(let o of e.split(`
|
|
2
|
+
`)){if(o.startsWith("+++")||o.startsWith("---"))continue;if(o.startsWith("+"))t+=1;else if(o.startsWith("-"))i+=1}return{additions:t,deletions:i}}function Rt({patch:e,theme:t}){let i=s(()=>n(e,{drawFileList:!1,outputFormat:"line-by-line",matching:"lines",colorScheme:t==="dark"?r.DARK:r.LIGHT}),[e,t]);return a("div",{className:"codex-patch-view",dangerouslySetInnerHTML:{__html:i}})}
|
|
3
|
+
export{Wr,Rt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function ee(n){if(typeof n!=="object"||n===null)return!1;let e=n,t=e.reason??e.message;return e.code===-32000&&typeof t==="string"&&/^Authentication required(?:$|:)/.test(t)}function Fn(n){if(typeof n!=="object"||n===null)return!1;let e=n,t=typeof e.data==="object"&&e.data!==null?e.data.details:e.data;return[e.message,e.reason,t].some((o)=>typeof o==="string"&&["The selected provider connection or model is unavailable","The selected model connection is unavailable","The selected ALwith account model is unavailable","The ALwith account changed"].some((a)=>o.includes(a)))}function oa(n,e){if(!(n instanceof Error))return n;let t=n.data,o=typeof t==="string"?t:typeof t==="object"&&t!==null?t.details:void 0;if(typeof o!=="string"||o.trim()==="")return n;return n.message=`${e}: ${o}`,n}
|
|
2
|
+
export{ee,Fn,oa};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ci=`<svg xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<defs>
|
|
3
3
|
<linearGradient id="plugin-agent-mode-paint0_linear_1_1034" x1="30.0398" y1="40.0728" x2="11.3112" y2="-1.39757" gradientUnits="userSpaceOnUse">
|
|
4
4
|
<stop stop-color="#2BBFFF"/>
|
|
@@ -1286,4 +1286,4 @@ var Qo=`<svg xmlns="http://www.w3.org/2000/svg">
|
|
|
1286
1286
|
</symbol>
|
|
1287
1287
|
</svg>
|
|
1288
1288
|
`;
|
|
1289
|
-
export{
|
|
1289
|
+
export{ci};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function i(n,o=0){if(o>32)throw Error("Session input config is too deeply nested");if(n===null||typeof n==="string"||typeof n==="boolean")return n;if(typeof n==="number"&&Number.isFinite(n))return n;if(Array.isArray(n))return n.map((t)=>i(t,o+1));if(n&&typeof n==="object"&&(Object.getPrototypeOf(n)===Object.prototype||Object.getPrototypeOf(n)===null))return Object.fromEntries(Object.keys(n).toSorted().map((t)=>[t,i(n[t],o+1)]));throw Error("Session input config must contain only JSON values")}function
|
|
2
|
-
export{
|
|
1
|
+
function i(n,o=0){if(o>32)throw Error("Session input config is too deeply nested");if(n===null||typeof n==="string"||typeof n==="boolean")return n;if(typeof n==="number"&&Number.isFinite(n))return n;if(Array.isArray(n))return n.map((t)=>i(t,o+1));if(n&&typeof n==="object"&&(Object.getPrototypeOf(n)===Object.prototype||Object.getPrototypeOf(n)===null))return Object.fromEntries(Object.keys(n).toSorted().map((t)=>[t,i(n[t],o+1)]));throw Error("Session input config must contain only JSON values")}function cr(n){if(!n||typeof n!=="object"||!("mode"in n)||typeof n.mode!=="string"||!n.mode.trim()||n.mode.length>128||/\p{Cc}/u.test(n.mode)||!("config"in n)||!n.config||typeof n.config!=="object"||Array.isArray(n.config))throw Error("Expected session input configuration with mode and config");let o=i(n.config),t={mode:n.mode,config:o};if(new TextEncoder().encode(JSON.stringify(t)).byteLength>65536)throw Error("Session input config exceeds 64 KiB");return t}function Hn(n,o){if(!n||typeof n!=="object"||!("sessionId"in n)||n.sessionId!==o||!("revision"in n)||typeof n.revision!=="number"||!Number.isSafeInteger(n.revision)||n.revision<0||!("inputConfig"in n))throw Error("Invalid Codex session input snapshot");return{sessionId:o,revision:n.revision,inputConfig:n.inputConfig===null?null:cr(n.inputConfig)}}
|
|
2
|
+
export{cr,Hn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{e}from"./chunk-18gxawh7.js";import{useState as d}from"react";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as v,DialogContent as C,DialogDescription as k,DialogFooter as I,DialogHeader as K,DialogTitle as E}from"@nyssance/shadcn/vega/components/ui/dialog";import{Empty as F,EmptyDescription as b,EmptyHeader as T,EmptyTitle as x}from"@nyssance/shadcn/vega/components/ui/empty";import{Field as w,FieldGroup as A,FieldLabel as L}from"@nyssance/shadcn/vega/components/ui/field";import{Input as B}from"@nyssance/shadcn/vega/components/ui/input";import{Spinner as H}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as t,jsxs as i}from"react/jsx-runtime";function P(r,a){switch(r.methodId){case"chat-gpt":return a("connection.signIn");case"chat-gpt-device-code":return a("connection.signInDevice");case"api-key":return a("connection.signInApiKey");default:return r.name}}function Zt({methods:r,signIn:a}){let{host:g}=e(),{t:o}=g,[p,u]=d(null),[f,l]=d(!1),[c,h]=d(""),y=async(n,s={})=>{u(n);try{await a(n,s)}catch(D){g.reportError?.(D)}finally{u(null)}};return i(F,{children:[i(T,{children:[t(x,{children:o("connection.signIn")}),t(b,{children:o("connection.signInHint")})]}),t("div",{className:"flex flex-wrap justify-center gap-2",children:r.map((n,s)=>i(m,{variant:s===0?"default":"outline",disabled:p!==null,onClick:()=>n.methodId==="api-key"?l(!0):void y(n.methodId),children:[p===n.methodId&&t(H,{"data-icon":"inline-start"}),P(n,o)]},n.methodId))}),t(v,{open:f,onOpenChange:l,children:i(C,{children:[i(K,{children:[t(E,{children:o("connection.apiKeyTitle")}),t(k,{children:o("connection.signInApiKey")})]}),t(A,{children:i(w,{children:[t(L,{htmlFor:"codex-api-key",children:o("connection.apiKeyTitle")}),t(B,{id:"codex-api-key",type:"password",autoComplete:"off",placeholder:o("connection.apiKeyPlaceholder"),value:c,onChange:(n)=>h(n.target.value)})]})}),i(I,{children:[t(m,{variant:"outline",onClick:()=>l(!1),children:o("actions.cancel")}),t(m,{disabled:c.trim().length===0||p!==null,onClick:()=>{l(!1),y("api-key",{"api-key":{apiKey:c.trim()}})},children:o("actions.submit")})]})]})})]})}
|
|
2
|
+
export{Zt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
export{
|
|
1
|
+
var pl=280;function ys({entries:i,gapPx:t,measuredHeightsByKey:o,leadingInsetPx:e=0}){let n=[],r=[],d=new Map,s=[],u=e;for(let[x,a]of i.entries()){d.set(a.turnKey,x);for(let h of a.aliases??[])d.set(h,x);s.push(a.turnKey),r.push(u);let f=a.aliases?.map((h)=>o[h]).find((h)=>h!==void 0),m=o[a.turnKey]??f??a.estimatedHeightPx??280;if(n.push(m),u+=m,x<i.length-1)u+=t}return{bottomOffsetsPx:r.map((x,a)=>{let f=n[a];if(f===void 0)throw Error(`Codex turn height is missing at index ${a}`);return u-x-f}),heightsPx:n,topOffsetsPx:r,totalHeightPx:u,turnIndexByKey:d,turnKeys:s}}function rt({distanceFromBottomPx:i,layout:t,overscanCount:o,viewportHeightPx:e}){if(t.turnKeys.length===0)return{startIndex:0,endIndex:0};let n=Math.min(Math.max(0,i),t.totalHeightPx),r=Math.min(n+Math.max(0,e),t.totalHeightPx),d=g(t.bottomOffsetsPx,r),s=l(t.bottomOffsetsPx,t.heightsPx,n);return{startIndex:Math.max(0,d-o),endIndex:Math.min(t.turnKeys.length,Math.max(s,d+1)+o)}}function Wo({anchorKey:i,layout:t,previousRange:o}){let e=t.turnIndexByKey.get(i);if(e===void 0)return null;return{startIndex:e,endIndex:Math.min(t.turnKeys.length,e+o.endIndex-o.startIndex)}}function xs({anchorKey:i,distanceFromBottomPx:t,nextLayout:o,previousLayout:e}){let n=e.turnIndexByKey.get(i),r=o.turnIndexByKey.get(i);if(n===void 0||r===void 0)return null;let d=e.bottomOffsetsPx[n],s=e.heightsPx[n],u=o.bottomOffsetsPx[r],x=o.heightsPx[r];if(d===void 0||s===void 0||u===void 0||x===void 0)throw Error(`Codex turn geometry is missing: ${i}`);return Math.max(0,t+u+x-d-s)}function bs({layout:i,turnKey:t,viewportHeightPx:o}){let e=i.turnIndexByKey.get(t);if(e===void 0)return null;let n=i.bottomOffsetsPx[e],r=i.heightsPx[e];if(n===void 0||r===void 0)throw Error(`Codex turn geometry is missing: ${t}`);return Math.max(0,n-o/2+r/2)}function Cs({align:i,layout:t,targetHeightPx:o,targetOffsetPx:e,turnKey:n,viewportHeightPx:r}){let d=t.turnIndexByKey.get(n);if(d===void 0)return null;let s=t.bottomOffsetsPx[d],u=t.heightsPx[d];if(s===void 0||u===void 0)throw Error(`Codex turn geometry is missing: ${n}`);let x=s+u-e;return i==="top"?Math.max(0,x-r+10):Math.max(0,x-o/2-r/2)}function g(i,t){let o=0,e=i.length;while(o<e){let n=Math.floor((o+e)/2),r=i[n];if(r===void 0)throw Error(`Codex bottom offset is missing at index ${n}`);if(r<t)e=n;else o=n+1}return o}function l(i,t,o){let e=0,n=i.length;while(e<n){let r=Math.floor((e+n)/2),d=i[r],s=t[r];if(d===void 0||s===void 0)throw Error(`Codex turn geometry is missing at index ${r}`);if(d+s<=o)n=r;else e=r+1}return e}
|
|
2
|
+
export{pl,ys,rt,Wo,xs,bs,Cs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{ye}from"./chunk-2c7a0zdc.js";import{isContentEntry as u,isImage as c,isText as s}from"@nyssance/codex-acp-v2/client";var d=ye();function to(f,m){let i=new Set;for(let e of m){if(e.kind!=="tool"||e.status!=="completed")continue;let o=e.content.filter(u);if(!o.some((n)=>c(n.content)))continue;o.forEach((n,a)=>{if(c(n.content))i.add(`${e.id}:${a}`);if(!s(n.content))return;let r;try{r=JSON.parse(n.content.text)}catch(t){if(t instanceof SyntaxError)return;throw t}if(r===null||typeof r!=="object"||!("kind"in r)||r.kind!=="alwith.image"||!("images"in r)||!Array.isArray(r.images))return;for(let t of r.images)if(t!==null&&typeof t==="object"&&typeof t.reference==="string")i.add(t.reference)})}if(i.size===0)return f;return f.map((e)=>{if(!s(e)||!e.text.includes("!["))return e;let o=d.lexer(e.text).map((n)=>{if(n.type!=="paragraph"||!n.tokens)return n.raw;let a=0;return n.tokens.map((t)=>(a+=t.raw.length,t.type==="image"&&i.has(t.href)?"":t.raw)).join("")+n.raw.slice(a)}).join("");return o===e.text?e:{...e,text:o}}).filter((e)=>!s(e)||e.text.trim().length>0)}
|
|
2
|
+
export{to};
|
|
@@ -0,0 +1,2 @@
|
|
|
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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
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),
|
|
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=
|
|
4
|
-
export{
|
|
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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createStore as I}from"@alwith/api/client";function k(a){return a instanceof Error?a.message:String(a)}function w(a){return a.interface?.displayName??a.name}function v(a){let g={},i=new Map,r=new Map;for(let c of a.data){for(let o of c.skills)if(i.set(o.path,o),o.scope==="repo"){let p=g[c.cwd]??[];if(!p.includes(o.path))p.push(o.path);g[c.cwd]=p}for(let o of c.errors)r.set(o.path,o)}return{skills:[...i.values()],errors:[...r.values()],projects:g}}function A(a){let g=[];for(let i of a.marketplaces)for(let r of i.plugins)if(r.installed)g.push({plugin:r,marketplace:i});return g.toSorted((i,r)=>(r.plugin.installedAt??0)-(i.plugin.installedAt??0))}function
|
|
2
|
-
export{
|
|
1
|
+
import{createStore as I}from"@alwith/api/client";function k(a){return a instanceof Error?a.message:String(a)}function w(a){return a.interface?.displayName??a.name}function v(a){let g={},i=new Map,r=new Map;for(let c of a.data){for(let o of c.skills)if(i.set(o.path,o),o.scope==="repo"){let p=g[c.cwd]??[];if(!p.includes(o.path))p.push(o.path);g[c.cwd]=p}for(let o of c.errors)r.set(o.path,o)}return{skills:[...i.values()],errors:[...r.values()],projects:g}}function A(a){let g=[];for(let i of a.marketplaces)for(let r of i.plugins)if(r.installed)g.push({plugin:r,marketplace:i});return g.toSorted((i,r)=>(r.plugin.installedAt??0)-(i.plugin.installedAt??0))}function li(a){let{plugin:g,marketplace:i}=a;return{installAttemptId:crypto.randomUUID(),pluginName:i.path===null?g.remotePluginId??g.name:g.name,...i.path===null?{remoteMarketplaceName:i.name}:{marketplacePath:i.path}}}function N(a){let{plugin:g,marketplace:i}=a;return{pluginName:i.path===null?g.remotePluginId??g.name:g.name,...i.path===null?{remoteMarketplaceName:i.name}:{marketplacePath:i.path}}}function tn(a,g){let i=g??{t:(e)=>e},r=(e,l)=>i.t(e,l),c=(e)=>i.notify?.(e),o=(e)=>{if(i.reportError)i.reportError(Error(e));else console.error(e)},p=null,b=null,d=(e)=>S.setState(e),m=()=>S.getState(),y=async(e=!1)=>{if(await m().refresh(void 0,{forceRefetch:e,background:!0}),m().error)throw Error(r("plugins.toast.syncError",{message:m().error}))},f=(e,l)=>d((n)=>{let s={...n.busyIds};if(l===null)delete s[e];else s[e]=l;return{busyIds:s}}),h=(e,l)=>d((n)=>{let s={...n.busyMarketplaces};if(l)s[e]=!0;else delete s[e];return{busyMarketplaces:s}}),R=I({loading:!1,loadedScope:null,upgrading:!1,error:null,cwds:[],marketplaces:[],marketplaceLoadErrors:[],featuredPluginIds:[],installed:[],skills:[],skillProjects:{},skillErrors:[],busyIds:{},busySkills:{},busyMarketplaces:{},refresh:(e=m().cwds,l={})=>{let n=l.forceRefetch===!0||p?.forceRefetch===!0,s=l.catalog!==!1||n||p?.catalog===!0;if(p={cwds:e,forceRefetch:n,catalog:s},d({cwds:e,...!l.background?{loading:!0}:{}}),b)return b;return b=(async()=>{while(p){let t=p;p=null,d({error:null});try{let[u,P,M]=await Promise.all([a.listSkills(t.cwds,t.forceRefetch),t.catalog?a.listPlugins({...t.cwds.length>0?{cwds:t.cwds}:{},...t.forceRefetch?{forceRefetch:!0}:{}}):null,a.installedPlugins(t.cwds)]);if(p)continue;let E=v(u);d({loadedScope:JSON.stringify(t.cwds),skills:E.skills,skillProjects:E.projects,skillErrors:E.errors,...P?{marketplaces:P.marketplaces,marketplaceLoadErrors:P.marketplaceLoadErrors,featuredPluginIds:P.featuredPluginIds}:{},installed:A(M)})}catch(u){if(!p)d({error:k(u)})}}})().finally(()=>{b=null,d({loading:!1})}),b},install:async(e)=>{if(e.plugin.id in m().busyIds)throw Error("Plugin operation already in progress");let l=w(e.plugin);f(e.plugin.id,"installing");try{let n=await a.installPlugin(li(e));return await y(),f(e.plugin.id,null),c(r("plugins.toast.installed",{pluginName:l})),n}catch(n){throw o(`${r("plugins.toast.installError")}: ${k(n)}`),n}finally{f(e.plugin.id,null)}},setPluginEnabled:async(e,l)=>{if(e.id in m().busyIds)return;f(e.id,"toggling");let n=(t)=>d((u)=>({installed:u.installed.map((P)=>P.plugin.id===e.id?{...P,plugin:{...P.plugin,enabled:t}}:P)}));n(l);let s=e.enabled;try{let t=await a.setPluginEnabled(e.id,l);s=t.enabled,n(t.enabled),await y();let u=m().installed.find((P)=>P.plugin.id===e.id);if(u)s=u.plugin.enabled;if(!u||s!==l)throw Error(r("plugins.toast.toggleNotApplied"));f(e.id,null),c(r(l?"plugins.toast.enabled":"plugins.toast.disabled",{pluginName:w(e)}))}catch(t){n(s),o(`${r("plugins.toast.toggleError")}: ${k(t)}`)}finally{f(e.id,null)}},uninstall:async(e)=>{if(e.id in m().busyIds)return;let l=w(e);f(e.id,"uninstalling");try{let n=e.source.type==="remote"?e.remotePluginId:e.id;if(!n)throw Error("Remote plugin ID is missing");if(await a.uninstallPlugin(n),await y(),m().installed.some((s)=>s.plugin.id===e.id))throw Error(r("plugins.toast.uninstallNotApplied"));f(e.id,null),c(r("plugins.toast.uninstalled",{pluginName:l}))}catch(n){o(`${r("plugins.toast.uninstallError")}: ${k(n)}`)}finally{f(e.id,null)}},readPlugin:async(e)=>(await a.readPlugin(N(e))).plugin,setSkillEnabled:async(e,l)=>{if(e.path in m().busySkills)return;d((s)=>({busySkills:{...s.busySkills,[e.path]:!0}})),d((s)=>({skills:s.skills.map((t)=>t.path===e.path?{...t,enabled:l}:t)}));let n=e.interface?.displayName??e.name;try{let s=await a.setSkillEnabled({path:e.path,enabled:l});if(d((t)=>({skills:t.skills.map((u)=>u.path===e.path?{...u,enabled:s.effectiveEnabled}:u)})),s.effectiveEnabled!==l){o(r("plugins.catalog.toggleNotApplied"));return}c(r(l?"plugins.skills.enabledToast":"plugins.skills.disabledToast",{skillName:n}))}catch(s){d((t)=>({skills:t.skills.map((u)=>u.path===e.path?{...u,enabled:e.enabled}:u)})),o(`${r("plugins.skills.toggleError")}: ${k(s)}`)}finally{d((s)=>{let t={...s.busySkills};return delete t[e.path],{busySkills:t}})}},addMarketplace:async(e)=>{let l=await a.addMarketplace(e);return await y(!0),c(l.alreadyAdded?r("plugins.marketplace.alreadyAdded",{marketplaceName:l.marketplaceName}):r("plugins.marketplace.added",{marketplaceName:l.marketplaceName})),l},removeMarketplace:async(e)=>{h(e,!0);try{await a.removeMarketplace(e),await y(),h(e,!1),c(r("plugins.marketplace.removed",{marketplaceName:e}))}catch(l){o(`${r("plugins.marketplace.removeError")}: ${k(l)}`)}finally{h(e,!1)}},upgradeMarketplace:async(e)=>{h(e,!0);try{let l=await a.upgradeMarketplaces(e);if(await y(!0),h(e,!1),l.errors.length>0)o(`${r("plugins.marketplace.upgradeError")}: ${l.errors.map((n)=>n.message).join("; ")}`);else c(r("plugins.marketplace.upgraded",{marketplaceName:e}))}catch(l){o(`${r("plugins.marketplace.upgradeError")}: ${k(l)}`)}finally{h(e,!1)}},upgradeAll:async()=>{if(m().upgrading)return;d({upgrading:!0});try{let e=await a.upgradeMarketplaces();if(await y(!0),d({upgrading:!1}),e.errors.length>0)o(r("plugins.marketplace.upgradeAllError"));else c(r("plugins.marketplace.upgradedAll"))}catch(e){o(`${r("plugins.marketplace.upgradeAllRequestError")}: ${k(e)}`)}finally{d({upgrading:!1})}}}),S=Object.assign(R,{bindHost:(e)=>{i=e}});return S}
|
|
2
|
+
export{li,tn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
export{
|
|
1
|
+
var ta=(t)=>{let e=t.startsWith("/")&&t!=="/"?t.replace(/\/+$/,""):t,r=/^\/(?:private\/)?(var|tmp|etc)(\/.*)?$/.exec(e);if(!r)return[e];let s=`${r[1]}${r[2]??""}`;return[`/private/${s}`,`/${s}`]};
|
|
2
|
+
export{ta};
|
|
@@ -0,0 +1,2 @@
|
|
|
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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{CheckCircleIcon as c,CircleIcon as o,LoaderIcon as i}from"lucide-react";import{jsx as n,jsxs as e}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{CheckCircleIcon as c,CircleIcon as o,LoaderIcon as i}from"lucide-react";import{jsx as n,jsxs as e}from"react/jsx-runtime";function be({entries:s}){let d=s.filter((a)=>a.status==="completed").length,t=s.find((a)=>a.status==="in_progress");return e("div",{className:"codex-plan",children:[e("div",{className:"codex-plan-summary",children:[e("span",{children:[d,"/",s.length]}),t!==void 0&&e("span",{className:"codex-plan-active",children:["· ",t.content]})]}),n("div",{className:"codex-plan-entries",children:s.map((a)=>e("div",{className:"codex-plan-entry","data-status":a.status,children:[a.status==="completed"&&n(c,{"aria-hidden":"true"}),a.status==="in_progress"&&n(i,{className:"codex-plan-spinner","aria-hidden":"true"}),a.status==="pending"&&n(o,{"aria-hidden":"true"}),n("span",{children:a.content})]},a.content))})]})}
|
|
2
|
+
export{be};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{Wn,
|
|
1
|
+
import{H,Ot}from"./chunk-3btheq4v.js";import{BlocksIcon as l,BookOpenIcon as m,SquareSlashIcon as d}from"lucide-react";import{createContext as p,useContext as i}from"react";import{jsx as o,jsxs as f}from"react/jsx-runtime";var Wn=p({names:[]});function Uo({kind:n,name:r}){let{icon:c}=i(Wn),s=n==="skill"?c?.(r):void 0;return f("span",{className:Ot,children:[s?o("img",{src:s,alt:"","aria-hidden":"true",className:"size-3.5 shrink-0 self-center object-contain"}):o(n==="skill"?m:n==="command"?d:l,{className:"size-3.5 shrink-0 self-center","aria-hidden":"true"}),o("span",{children:r})]})}function os({text:n,children:r}){let{names:c}=i(Wn),s=H(n,c);if(!s.length)return r;let t=[],a=0;for(let e of s)t.push(n.slice(a,e.start)),t.push(o("span",{"data-skill-reference":e.kind==="skill"?e.name:void 0,"data-command-reference":e.kind==="command"?e.name:void 0,children:o(Uo,{kind:e.kind,name:e.name.slice(1)})},e.start)),a=e.end;return t.push(n.slice(a)),t}
|
|
2
|
+
export{Wn,Uo,os};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function $o(r){if(!r.trimStart().toLowerCase().startsWith("gpt"))return r;let a=/^gpt-\d/iu.test(r.trimStart())?" ":"-";return r.split(/(\s+)/).map((i)=>i.trim().length===0?i:i.split("-").map((t,o)=>{if(t.toLowerCase()==="gpt")return"GPT";if(t.toLowerCase()==="oai")return"OAI";return o>0&&t.length>0?`${t[0]?.toUpperCase()}${t.slice(1)}`:t}).join(a).replace(/^GPT (?=\d)/u,"GPT-")).join("")}
|
|
2
|
+
export{$o};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{n}from"./chunk-7393tva2.js";import{e}from"./chunk-18gxawh7.js";import{je,lt,Ce}from"./chunk-mnz33drf.js";import{inSessionTree as m}from"@nyssance/codex-acp-v2/client";import{jsx as l,jsxs as f,Fragment as x}from"react/jsx-runtime";var p=[];function Vt({sessionId:s}){let o=n((t)=>t.sessions),{host:u}=e(),d=n((t)=>t.actions),a=d.some((t)=>m(o,s,t.sessionId))?d.filter((t)=>m(o,s,t.sessionId)):p,i=a.filter(je).filter((t)=>{if(t.sessionId!==s||o[s]?.subagent!==void 0)return!0;let r=t.params._meta?.codex;return!(typeof r==="object"&&r!==null&&("delivery"in r)&&r.delivery==="async")}),c=a.filter((t)=>!je(t));return f(x,{children:[c.length>0&&l("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:c.map((t)=>f("div",{children:[t.sessionId!==s&&l("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:t.sessionId===null?"":o[t.sessionId]?.title??u.t("subagents.untitled")}),l(Ce,{action:t})]},t.id))}),i[0]!==void 0&&l(lt,{action:i[0],total:i.length},i[0].id)]})}
|
|
2
|
+
export{Vt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function Kr(r,e){if(!e.running)return{kind:"idle"};if(e.blocked)return{kind:"waiting"};if(e.retrying)return{kind:"retrying"};let t=r.findLast((i)=>i.kind==="tool"&&i.active);if(t)return{kind:"tool",ownerKey:t.key};let n=r.findLast((i)=>i.kind!=="user");if(n?.active){if(n.kind==="answer")return{kind:"speaking",ownerKey:n.key};if(n.kind==="text")return{kind:"speaking",ownerKey:n.key};if(n.kind==="reasoning")return{kind:"reasoning",ownerKey:n.key};if(n.kind==="plan")return{kind:"planning",ownerKey:n.key};if(n.kind==="compaction")return{kind:"tool",ownerKey:n.key}}if(n?.kind==="answer")return{kind:"idle"};return{kind:"working",ownerKey:n?.key}}
|
|
2
|
+
export{Kr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{L}from"./chunk-xq4xeksc.js";import{codexMessageError as b,nativeTurnId as y,textOf as w,turns as h}from"@nyssance/codex-acp-v2/client";function Ea(t){return t.kind==="tool"&&t.name==="mcp_startup"}function v(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 g(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"&&g(e))}function I(t,e,n){let r=t.work.at(-1);if(r?.kind==="activity"&&r.items.at(-1)===n){r.items.push(e);return}t.work.push({kind:"activity",key:`activity:${e.kind}:${e.id}`,items:[e]})}function T(t,e,n){if(t.kind!=="tool"){e.push(t);return}let r=n.get(t.id);if(r===void 0)throw Error(`Grouped tool is missing from the session: ${t.id}`);e.push(r);for(let i of t.children)T(i,e,n)}function M(t,e,n,r){switch(e.kind){case"user":break;case"assistant":{if(b(e)!==null){let s=y(e),l=t.errors.findIndex((p)=>s!==null&&y(p)===s);if(l===-1)t.errors.push(e);else t.errors[l]=e;break}let i=v(e),u=e._meta?.codex,o=L(e._meta).length>0||typeof u==="object"&&u!==null&&"delivery"in u&&u.delivery==="async";if(L(e._meta).length>0)t.final.push(e);else if(o)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else if(i==="final_answer")t.final.push(e);else if(i==="commentary"||g(e)||i===null&&n)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else t.final.push(e);break}case"thought":I(t,e,r);break;case"tool":if(I(t,e,r),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 x(t){return t.kind==="user"&&(t.echo==="pending"||t.echo==="acknowledged")}function A(t,e){let n=new Set(e.map((a)=>a.turnId)),r=new Map,i=[],u=(a)=>{let d={items:[],nativeId:a};return i.push(d),d},o,s,l=[],p=0;for(let a of t){let d=y(a);if(d!==null){let f=r.get(d);if(f!==void 0){f.items.push(a);continue}let k=l[p],c=k??o,m=a.kind!=="user"&&c?.nativeId===null&&c.items.length===1&&c.items[0]?.kind==="user"&&!n.has(d)&&!nn(a)?c:u(d);if(m===k)p++;m.nativeId=d,m.items.push(a),r.set(d,m),o=s=m;continue}if(a.kind==="user"){if(o=u(null),o.items.push(a),x(a))l.push(o);else s=o;continue}if(s===void 0)s={items:[],nativeId:null},i.unshift(s);s.items.push(a)}return i}function R(t,e){if(e.nativeId===null)return h({...t,items:e.items});let n=e.items[0],r=e.items.find((o)=>o.kind==="user");if(r===void 0)return h({...t,items:e.items});let i=r.echo==="adopted"&&r.at<n.at?[r,...e.items.filter((o)=>o!==r)]:e.items;if(!x(n))return h({...t,items:i});let u={...n,echo:null};return h({...t,items:[u,...i.slice(1)]}).map((o)=>o.prompt===u?{...o,prompt:n}:o)}function Ii(t,e=[],n=[]){let r=new Map(e.map((o)=>[o.key,o])),i=new Map(t.items.filter((o)=>o.kind==="tool").map((o)=>[o.id,o])),u={...t,items:t.items.filter((o)=>!Ea(o))};return A(u.items,n).flatMap((o)=>R(u,o)).map((o)=>{let s=o.prompt===null?[]:[o.prompt];for(let c of o.entries)T(c,s,i);let l=s[0];if(l===void 0)throw Error("A turn without items");let p=`turn:${l.kind}:${l.id}`,a=o.endedAt??Math.max(...s.map((c)=>c.at)),d=r.get(p);if(d!==void 0&&S(d.items,s)&&d.endedAt===a)return d;let f={key:p,user:o.prompt,work:[],final:[],errors:[],edits:[],startedAt:o.startedAt??l.at,endedAt:a,replayed:s.every(nn),items:s},k=s.findLastIndex((c)=>c.kind!=="user"&&c.kind!=="compaction");return s.forEach((c,m)=>M(f,c,m<k,s[m-1])),f})}function S(t,e){return t.length===e.length&&t.every((n,r)=>n===e[r])}function nn(t){let e=t._meta?.codex;return t.replayed||typeof e==="object"&&e!==null&&"historyReplay"in e&&e.historyReplay===!0}function ue(t){return w(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=(i)=>{for(let u of t.items){let o=u._meta?.codex;if(typeof o!=="object"||o===null)continue;let s=o[i];if(typeof s==="number"&&Number.isFinite(s)&&s>=0)return s}return},n=e("workDurationMs"),r=e("turnDurationMs");return{durationMs:n??r,durationKind:n===void 0&&r!==void 0?"total":"work",startedAt:e("workStartedAt")}}function Mi(t,e,n){if(n?.user==null)return!1;let r=e.items.map(y).find((u)=>u!==null),i=y(n.user);if(r!==void 0&&i!==null)return r===i;return!e.items.some((u)=>{let o=u._meta?.codex;return typeof o==="object"&&o!==null&&"turnCompletedAt"in o&&typeof o.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 r=e[n];if(r.items.some((i)=>i.kind!=="user"))break;if(!Mi(t,e[n-1],r))break;n--}return e[n]?.key}function Ai(t,e,n){let r=n,i=n;while(r>0&&Mi(t,e[r-1],e[r]))r--;while(i+1<e.length&&Mi(t,e[i],e[i+1]))i++;let u=e.slice(r,i+1),o=u.findLast((s)=>s.items.some((l)=>l.kind!=="user"))??u[0];return{continued:e[n]!==o,items:u.flatMap((s)=>s.items),edits:u.flatMap((s)=>s.edits),startedAt:u[0].startedAt}}
|
|
2
|
+
export{Ea,Pi,Ii,nn,ue,mt,ro,Ti,Mi,Ni,Ai};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{c}from"./chunk-hz8yrg2t.js";import{Ut,gs}from"./chunk-a6vp2dmt.js";import{le}from"./chunk-7393tva2.js";import{Kn,D}from"./chunk-qbxdgkk9.js";import{useEffect as d,useState as g}from"react";import{jsx as o,jsxs as w}from"react/jsx-runtime";var l=/\.(?:png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|csv|tsv|zip|tar|gz|mp[34]|wav|ogg|webm|mov)(?:[?#].*)?$/i,u=/\.(?:png|jpe?g|gif|webp|bmp|svg)(?:[?#].*)?$/i;function Yr(e){if(e.type!=="link"&&e.type!=="image"||e.href===void 0)return!1;let r=e.href;return!/^www\.|^\/\//i.test(r)&&!/^[a-z][a-z\d+.-]*:/i.test(r.replace(/^file:/i,""))&&l.test(r)}function h({uri:e,directory:r}){let t=c(),[i,s]=g(),n=Ut(e,r),p=n!==null&&t.loadImage!==void 0&&gs(r,n);if(d(()=>{if(!p||n===null||t.loadImage===void 0)return;let m=!1;return t.loadImage(n).then((a)=>{let f=/^data:([^;,]+);base64,(.*)$/s.exec(a);if(!f)throw Error("The image preview is not a data URL");if(!m)s({uri:e,mimeType:f[1],data:f[2]})},(a)=>{if(!m)s({uri:e,error:a instanceof Error?a.message:String(a)})}),()=>{m=!0}},[t,n,p,e]),i?.uri!==e)return null;if("error"in i)return o("div",{role:"alert",className:"text-muted-foreground text-xs",children:i.error});return o(D,{block:{type:"image",uri:e,data:i.data,mimeType:i.mimeType}})}function es({links:e}){let r=le();return o("div",{className:"codex-markdown-artifacts flex min-w-0 flex-col gap-2","data-wide-markdown-block":"true",children:e.map((t,i)=>{let s=t.text||Kn(t.href);return w("div",{className:"min-w-0",children:[r!==null&&u.test(t.href)&&o(h,{uri:t.href,directory:r}),o(D,{block:{type:"resource_link",uri:t.href,name:s}})]},`${i}-${t.href}`)})})}
|
|
2
|
+
export{Yr,es};
|
|
@@ -0,0 +1,2 @@
|
|
|
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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Questionnaire as r}from"@shadcn/react/questionnaire";import{useEffect as N,useId as v,useRef as b}from"react";import{Button as k}from"@nyssance/shadcn/vega/components/ui/button";import{Textarea as R}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as i,jsxs as c,Fragment as S}from"react/jsx-runtime";function p(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)}function
|
|
1
|
+
import{Questionnaire as r}from"@shadcn/react/questionnaire";import{useEffect as N,useId as v,useRef as b}from"react";import{Button as k}from"@nyssance/shadcn/vega/components/ui/button";import{Textarea as R}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as i,jsxs as c,Fragment as S}from"react/jsx-runtime";function p(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)}function L(e){if(!p(e)||!p(e.codex))return[];let n=e.codex,o=n.questions;if(n.delivery!=="async"||!Array.isArray(o))return[];if(!o.every((t)=>p(t)&&typeof t.title==="string"&&t.title.trim().length>0&&(t.options===null||Array.isArray(t.options)&&t.options.every((m)=>typeof m==="string"))))return[];return o}function Eo(e,n){return JSON.stringify(["request_user_input_async",e,n])}function $r(e){return{selected:e.options?.length?0:null,text:""}}function qn(e,n){return n.selected===null?n.text:e.options?.[n.selected]??""}function jr(e){return`<send_user_message_question_reply>
|
|
2
2
|
${JSON.stringify([e])}
|
|
3
|
-
</send_user_message_question_reply>`}function
|
|
4
|
-
export{
|
|
3
|
+
</send_user_message_question_reply>`}function Ro(e){if(!p(e)||!p(e.codex))return[];let n=e.codex;return(Array.isArray(n.questionReplyParts)?n.questionReplyParts.map((t)=>p(t)?{...t,answer:t.text}:t):[n.questionReply]).filter((t)=>p(t)&&typeof t.questionItemId==="string"&&typeof t.question==="string"&&typeof t.answer==="string").map(({questionItemId:t,question:m,answer:y})=>({questionItemId:t,question:m,answer:y}))}function qr({question:e,draft:n,status:o,answer:t,error:m,onChange:y,onSubmit:x,onSkip:C,t:u}){let g=v(),h=b(!1),a=b(null);N(()=>()=>{if(a.current!==null)cancelAnimationFrame(a.current)},[]);let l=o==="pending",A=o==="answered"||o==="skipped",f=e.options??[],w=l&&qn(e,n).trim().length>0,Q="flex cursor-pointer items-start gap-2 text-sm in-data-readonly:cursor-default in-data-readonly:opacity-50";return i("section",{"aria-labelledby":`${g}-title`,className:"border-border bg-card text-card-foreground flex min-w-0 flex-col gap-3 rounded-xl border p-4",children:A?c(S,{children:[i("h3",{id:`${g}-title`,className:"text-sm font-medium whitespace-pre-wrap",children:e.title}),i("p",{className:"text-sm whitespace-pre-wrap",children:o==="answered"?t:u("asyncQuestion.skipped")})]}):c(r.Root,{items:f.length>0?[{name:"answer",choices:[...f.map((s,d)=>({value:String(d)})),{value:"other"}]}]:void 0,shortcuts:"letters",noValidate:!0,className:"flex min-w-0 flex-col gap-3",onSubmit:(s)=>{if(s.preventDefault(),w)x()},children:[c(r.Item,{name:"answer",className:"m-0 flex min-w-0 flex-col gap-3 border-0 p-0",children:[i(r.Title,{render:i("h3",{id:`${g}-title`,className:"text-sm font-medium whitespace-pre-wrap"}),children:e.title}),f.length>0&&c(r.Choices,{className:"flex flex-col gap-2","aria-disabled":!l||void 0,"data-readonly":!l||void 0,children:[f.map((s,d)=>c(r.Choice,{value:String(d),checked:n.selected===d,onChange:()=>l&&y({...n,selected:d}),className:Q,children:[i(r.ChoiceInput,{className:"accent-primary mt-0.5 size-4 shrink-0"}),i(r.ChoiceShortcut,{className:"text-muted-foreground w-4 shrink-0 font-mono text-xs uppercase"}),i(r.ChoiceLabel,{className:"whitespace-pre-wrap",children:s})]},d)),c(r.Choice,{value:"other",checked:n.selected===null,onChange:()=>l&&y({...n,selected:null}),className:Q,children:[i(r.ChoiceInput,{className:"accent-primary mt-0.5 size-4 shrink-0"}),i(r.ChoiceShortcut,{className:"text-muted-foreground w-4 shrink-0 font-mono text-xs uppercase"}),i(r.ChoiceLabel,{children:u("asyncQuestion.other")})]})]}),i(r.Input,{render:i(R,{rows:1,className:"min-h-0 resize-none"}),onCompositionStart:()=>{if(a.current!==null)cancelAnimationFrame(a.current);a.current=null,h.current=!0},onCompositionEnd:()=>{if(h.current=!1,a.current!==null)cancelAnimationFrame(a.current);a.current=requestAnimationFrame(()=>{a.current=null})},onKeyDown:(s)=>{if(s.key==="Enter")s.stopPropagation();if(s.key!=="Enter"||s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||h.current||a.current!==null||s.nativeEvent.isComposing||s.nativeEvent.keyCode===229)return;if(s.preventDefault(),l&&qn(e,{...n,text:s.currentTarget.value}).trim().length>0)x()},"aria-label":u("asyncQuestion.answer"),placeholder:u("asyncQuestion.answer"),value:n.text,readOnly:!l,onChange:(s)=>y({selected:null,text:s.target.value})}),m&&i("p",{role:"alert",className:"text-destructive text-sm",children:m})]}),c("div",{className:"flex flex-wrap items-center gap-2",children:[i(r.Submit,{render:i(k,{size:"sm"}),disabled:!w,children:u(o==="submitting"?"asyncQuestion.submitting":"asyncQuestion.submit")}),i(r.Skip,{render:i(k,{size:"sm",variant:"ghost"}),disabled:!l,onClick:C,children:u("asyncQuestion.skip")}),(o==="closed"||o==="unavailable")&&i("span",{role:"status",className:"text-muted-foreground text-xs",children:u(`asyncQuestion.${o}`)})]})]})})}
|
|
4
|
+
export{L,Eo,$r,qn,jr,Ro,qr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
class s{worker=new Worker(new URL("@alwith/module-chat/code-highlighter.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(i)=>{let e=this.active,t=i.data;if(t.clientId!==e?.clientId||t.revision!==e.revision){this.fail(Error("Code highlighting worker returned an unexpected request"));return}if(this.active=null,!t.ok){this.fail(Error(t.error));return}let r=this.clients.get(e.clientId);if(r?.revision===e.revision)r.onResult({code:e.code,language:e.language,html:t.html});this.dispatch()},this.worker.onerror=(i)=>this.fail(Error(i.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize code highlighting result"))}fail(i){this.failure=i,this.worker.terminate(),this.pending.clear(),this.active=null;for(let e of this.clients.values())e.onError(i)}dispatch(){if(this.active!==null||this.pending.size===0)return;let i=this.pending.values().next().value;this.pending.delete(i.clientId),this.active=i;try{this.worker.postMessage(i)}catch(e){this.fail(e instanceof Error?e:Error(String(e)))}}connect(i,e){if(this.failure!==null)throw this.failure;let t=++this.nextClientId,r={revision:0,onResult:i,onError:e};return this.clients.set(t,r),{update:(o,l)=>{if(this.failure!==null)throw this.failure;r.revision+=1,this.pending.set(t,{clientId:t,revision:r.revision,code:o,language:l}),this.dispatch()},dispose:()=>{if(this.clients.delete(t),this.pending.delete(t),this.clients.size===0)this.worker.terminate(),n=void 0}}}}var n;function
|
|
2
|
-
export{
|
|
1
|
+
class s{worker=new Worker(new URL("@alwith/module-chat/code-highlighter.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(i)=>{let e=this.active,t=i.data;if(t.clientId!==e?.clientId||t.revision!==e.revision){this.fail(Error("Code highlighting worker returned an unexpected request"));return}if(this.active=null,!t.ok){this.fail(Error(t.error));return}let r=this.clients.get(e.clientId);if(r?.revision===e.revision)r.onResult({code:e.code,language:e.language,html:t.html});this.dispatch()},this.worker.onerror=(i)=>this.fail(Error(i.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize code highlighting result"))}fail(i){this.failure=i,this.worker.terminate(),this.pending.clear(),this.active=null;for(let e of this.clients.values())e.onError(i)}dispatch(){if(this.active!==null||this.pending.size===0)return;let i=this.pending.values().next().value;this.pending.delete(i.clientId),this.active=i;try{this.worker.postMessage(i)}catch(e){this.fail(e instanceof Error?e:Error(String(e)))}}connect(i,e){if(this.failure!==null)throw this.failure;let t=++this.nextClientId,r={revision:0,onResult:i,onError:e};return this.clients.set(t,r),{update:(o,l)=>{if(this.failure!==null)throw this.failure;r.revision+=1,this.pending.set(t,{clientId:t,revision:r.revision,code:o,language:l}),this.dispatch()},dispose:()=>{if(this.clients.delete(t),this.pending.delete(t),this.clients.size===0)this.worker.terminate(),n=void 0}}}}var n;function Zr(i,e){return n??=new s,n.connect(i,e)}
|
|
2
|
+
export{Zr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function na(o){let a=!1,n=!1,r=!1,e,f=()=>{if(n=!0,r||e!==void 0)return;e=setTimeout(()=>{e=void 0,l()},300)},l=async()=>{n=!1,r=!0;try{await o.listSessions({reset:!0})}catch{}finally{if(r=!1,!a&&n)f()}},d=o.store.subscribe((i,u)=>{if(i.runStates===u.runStates)return;if([...new Set([...Object.keys(i.runStates),...Object.keys(u.runStates)])].some((c)=>{let t=u.runStates[c],s=i.runStates[c];return t?.state!==s?.state||t?.reusableDraft!==s?.reusableDraft||t?.cwd!==s?.cwd||t?.title!==s?.title}))f()});return l(),()=>{a=!0,d(),clearTimeout(e)}}
|
|
2
|
+
export{na};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Bn}from"./chunk-413sz7fx.js";import{fr,te}from"./chunk-46j8adkj.js";import{pr}from"./chunk-me230xjh.js";function dr(l,p){return Bn({...fr,parse(s){let e=s;if(!e||typeof e!=="object"||Array.isArray(e)||typeof e.prompt!=="string"||!e.prompt.trim()||Object.keys(e).some((n)=>n!=="prompt"&&n!=="references")||e.references!==void 0&&(!Array.isArray(e.references)||e.references.some((n)=>typeof n!=="string")))throw Error("Invalid image instructions or references");return{prompt:e.prompt,references:e.references}},async execute(s,{sessionId:e,toolCallId:n,signal:a,agent:d}){let t=p(e);if(!t)throw Error("Image request is no longer active");let g=s.references,c=(g??[...t.references.keys()].filter((r)=>r.startsWith("attachment:"))).map((r)=>{let i=t.references.get(r);if(!i)throw Error(`Unknown image reference: ${r}`);return i}),o=te(t.selection);if(c.length>o.maxReferences)throw Error(`This model supports ${o.maxReferences} references`);let f=pr(s.prompt,t.aspect),m=o.provider==="chatgpt"?await d.request("_codex/images/generate",{prompt:f,images:c},{cancellationSignal:a}):await l.generateExternal(t.selection,f,c,a);if(a.throwIfAborted(),p(e)!==t)throw Error("Image request was cancelled or replaced");return m.images.forEach((r,i)=>t.references.set(`${String(n)}:${i+1}`,`data:${r.mimeType};base64,${r.data}`)),{content:[{type:"text",text:JSON.stringify({kind:"alwith.image",version:1,model:o.id,size:t.selection.size,displayed:!0,message:"The application already displays these images and provides downloads. Finish with the returned image reference; do not regenerate, echo image data or write files to deliver this result.",references:g??[],images:m.images.map((r,i)=>({reference:`${String(n)}:${i+1}`}))})},...m.images.map((r)=>({type:"image",...r}))]}}})}
|
|
2
|
+
export{dr};
|