@alwith/module-chat 0.6.18 → 0.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activity-host.js +1 -1
- package/dist/agent/application-client.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-s88eyv24.js → chunk-02qwd1yq.js} +2 -2
- package/dist/chunk-052wfeys.js +2 -0
- package/dist/chunk-06wtwk7b.js +2 -0
- package/dist/{chunk-6w5gfh01.js → chunk-0jpzztpz.js} +2 -2
- package/dist/chunk-0z7gy762.js +2 -0
- package/dist/{chunk-g61xf0ma.js → chunk-113maskf.js} +2 -2
- package/dist/{chunk-vhxr0c4c.js → chunk-15m908ph.js} +2 -2
- package/dist/{chunk-wxh1m3gg.js → chunk-1d29gnb2.js} +2 -2
- package/dist/{chunk-wf7kfk3p.js → chunk-1fadxh2z.js} +2 -2
- package/dist/{chunk-933h9gnv.js → chunk-1gr60c40.js} +2 -2
- package/dist/chunk-1npqxk6m.js +2 -0
- package/dist/{chunk-04c5k3qr.js → chunk-2aw505xv.js} +2 -2
- package/dist/{chunk-nmd5x501.js → chunk-2gwegefd.js} +2 -2
- package/dist/chunk-2hkj5qxh.js +2 -0
- package/dist/{chunk-c1pvvk0x.js → chunk-2ncdext6.js} +2 -2
- package/dist/chunk-30a5fgk9.js +2 -0
- package/dist/{chunk-gnctm097.js → chunk-337hq36y.js} +2 -2
- package/dist/{chunk-b4kh5nns.js → chunk-34mq2dbm.js} +2 -2
- package/dist/{chunk-dtgbgwby.js → chunk-3g9n4bk2.js} +2 -2
- package/dist/chunk-3tp8fe70.js +2 -0
- package/dist/{chunk-jg4c3zg4.js → chunk-3tvq6xr2.js} +2 -2
- package/dist/chunk-3tzh25vq.js +2 -0
- package/dist/{chunk-f4h84pav.js → chunk-44r55va6.js} +2 -2
- package/dist/{chunk-k4xsxxy7.js → chunk-4jp1d558.js} +2 -2
- package/dist/chunk-4sa0m3w5.js +2 -0
- package/dist/{chunk-bv14x0e8.js → chunk-4sfxcw58.js} +3 -3
- package/dist/{chunk-m8pkmbtf.js → chunk-4wm5emgf.js} +2 -2
- package/dist/{chunk-ayhxrzsq.js → chunk-51x80v4h.js} +2 -2
- package/dist/{chunk-pk931bpm.js → chunk-5c42mfat.js} +2 -2
- package/dist/{chunk-nrzkzvr0.js → chunk-5gn8xw58.js} +2 -2
- package/dist/chunk-5jq3xg3q.js +2 -0
- package/dist/{chunk-tec9yhsm.js → chunk-64apxzn7.js} +2 -2
- package/dist/{chunk-bane0xc8.js → chunk-6e84zbgs.js} +2 -2
- package/dist/{chunk-ztrfygh5.js → chunk-6f06hbsk.js} +2 -2
- package/dist/{chunk-ggddhx5x.js → chunk-6g553fkh.js} +2 -2
- package/dist/{chunk-wjd2hpnd.js → chunk-6j1x3gny.js} +2 -2
- package/dist/{chunk-pdmayjan.js → chunk-73e9vpm9.js} +2 -2
- package/dist/{chunk-gy4h86mw.js → chunk-74b70n1g.js} +2 -2
- package/dist/chunk-7b5ryhwh.js +2 -0
- package/dist/{chunk-3hjcpcnv.js → chunk-7d1wnjw5.js} +2 -2
- package/dist/{chunk-814h2ja2.js → chunk-7evd34gw.js} +3 -3
- package/dist/{chunk-n3sm0834.js → chunk-7g11pcm4.js} +3 -3
- package/dist/{chunk-p14j9ckg.js → chunk-7p7fxgdb.js} +2 -2
- package/dist/chunk-7pwdjhg8.js +2 -0
- package/dist/{chunk-c8wdf20g.js → chunk-80sbwjrr.js} +2 -2
- package/dist/chunk-816tez3v.js +2 -0
- package/dist/{chunk-swt6dntp.js → chunk-81n37a11.js} +2 -2
- package/dist/{chunk-16db8fh2.js → chunk-84p483n0.js} +2 -2
- package/dist/{chunk-kk9dbwd1.js → chunk-84zzf0ys.js} +2 -2
- package/dist/{chunk-78vckhxt.js → chunk-88ysxbdh.js} +2 -2
- package/dist/{chunk-hzhcajx1.js → chunk-8q5zwkry.js} +2 -2
- package/dist/{chunk-a71j2n86.js → chunk-8rb896tq.js} +2 -2
- package/dist/{chunk-5aqqqsa3.js → chunk-90847w64.js} +2 -2
- package/dist/{chunk-bej9z041.js → chunk-97pn8v17.js} +2 -2
- package/dist/{chunk-ymgc4317.js → chunk-9k58vckd.js} +2 -2
- package/dist/chunk-9x08kyf6.js +2 -0
- package/dist/{chunk-hygvdjq6.js → chunk-agdkhyaj.js} +3 -3
- package/dist/chunk-ajp19sh9.js +2 -0
- package/dist/{chunk-evygj5ka.js → chunk-ak196z4y.js} +2 -2
- package/dist/{chunk-v8x5atmn.js → chunk-ane53rqa.js} +2 -2
- package/dist/{chunk-s6y31dcb.js → chunk-arm9x6kc.js} +2 -2
- package/dist/{chunk-1ycyexae.js → chunk-ath5nv2w.js} +2 -2
- package/dist/{chunk-6c18ag8t.js → chunk-bba9qej8.js} +2 -2
- package/dist/{chunk-q46z21zs.js → chunk-bf7sgpzq.js} +2 -2
- package/dist/{chunk-5hk3k14h.js → chunk-bg0vkt53.js} +2 -2
- package/dist/{chunk-tj4b0s68.js → chunk-bqhbksy2.js} +2 -2
- package/dist/{chunk-djd3sjp9.js → chunk-brv52tgj.js} +2 -2
- package/dist/chunk-bve6cykn.js +2 -0
- package/dist/{chunk-e2qjbqq2.js → chunk-bw3bpr6m.js} +2 -2
- package/dist/{chunk-bydxp3zj.js → chunk-c2h4wr7g.js} +4 -4
- package/dist/{chunk-qdcznn2t.js → chunk-ch8e8a32.js} +2 -2
- package/dist/{chunk-4p0zk3mj.js → chunk-cydnp9mm.js} +2 -2
- package/dist/{chunk-62qtrk0p.js → chunk-d0s10qy5.js} +2 -2
- package/dist/chunk-d6cfxqzx.js +2 -0
- package/dist/{chunk-f73x23f9.js → chunk-d9mj74pb.js} +1 -1
- package/dist/{chunk-2easwd1n.js → chunk-dd9k5bbt.js} +2 -2
- package/dist/{chunk-ffs5nkt0.js → chunk-dheg4bs2.js} +2 -2
- package/dist/{chunk-56rx2rmj.js → chunk-dr5swvaa.js} +2 -2
- package/dist/{chunk-61awcdaq.js → chunk-dsf2x63w.js} +4 -4
- package/dist/chunk-e1fzfaqj.js +2 -0
- package/dist/{chunk-23r426sm.js → chunk-e1zsnc8z.js} +2 -2
- package/dist/{chunk-m944rgn9.js → chunk-er5wxkt2.js} +2 -2
- package/dist/{chunk-abgdqy92.js → chunk-esbgn8q0.js} +2 -2
- package/dist/{chunk-nh56sb8e.js → chunk-etvdqkvb.js} +2 -2
- package/dist/{chunk-cvx7r35k.js → chunk-evpjxbzm.js} +2 -2
- package/dist/{chunk-g7cc7gdn.js → chunk-ex063jn9.js} +2 -2
- package/dist/{chunk-r6ns1457.js → chunk-eynwjzqp.js} +2 -2
- package/dist/{chunk-f6zpqrg3.js → chunk-f78jd8xh.js} +2 -2
- package/dist/chunk-f9xtcxfb.js +2 -0
- package/dist/{chunk-z6e4ydvm.js → chunk-fdmbfq9g.js} +2 -2
- package/dist/{chunk-04frqm59.js → chunk-fkkk1fza.js} +2 -2
- package/dist/{chunk-rb4p3h5b.js → chunk-ftsnryz8.js} +2 -2
- package/dist/{chunk-8y60kexq.js → chunk-fvxxzgrc.js} +2 -2
- package/dist/{chunk-fhjk81r9.js → chunk-fwqpwbd8.js} +2 -2
- package/dist/{chunk-ykz0h1r0.js → chunk-fyxetwxv.js} +2 -2
- package/dist/{chunk-rtbpfasb.js → chunk-g1nck6pp.js} +2 -2
- package/dist/{chunk-5s85tvas.js → chunk-gpv1dc5y.js} +2 -2
- package/dist/chunk-gs0b02g2.js +2 -0
- package/dist/{chunk-y8fmawc6.js → chunk-gttw4rmx.js} +3 -3
- package/dist/{chunk-29s4mnfw.js → chunk-gwskdhaw.js} +2 -2
- package/dist/{chunk-npvcy4tw.js → chunk-h7xjw0p4.js} +2 -2
- package/dist/{chunk-rh2yx0xq.js → chunk-h82jte5p.js} +2 -2
- package/dist/{chunk-jm6y0edw.js → chunk-hfghqddp.js} +2 -2
- package/dist/{chunk-86r89vrt.js → chunk-hj05zh7h.js} +2 -2
- package/dist/chunk-hnkde8me.js +2 -0
- package/dist/{chunk-8y706gz3.js → chunk-hqt5j789.js} +2 -2
- package/dist/{chunk-s6b28p84.js → chunk-j39bhfsp.js} +2 -2
- package/dist/{chunk-rkejggyx.js → chunk-j3g21ext.js} +2 -2
- package/dist/{chunk-ecaedwda.js → chunk-j6000jts.js} +2 -2
- package/dist/{chunk-vgscp6dr.js → chunk-j78kgyff.js} +5 -5
- package/dist/{chunk-q01vmp9m.js → chunk-jgqt7k0h.js} +2 -2
- package/dist/chunk-jpr2y0y3.js +2 -0
- package/dist/{chunk-3chhwwwy.js → chunk-jpr5ewnh.js} +2 -2
- package/dist/{chunk-dxsjz3re.js → chunk-k4a3p16c.js} +2 -2
- package/dist/{chunk-kj3a1k2q.js → chunk-k5nd3vyq.js} +2 -2
- package/dist/{chunk-g8w06bdx.js → chunk-k883x8fv.js} +2 -2
- package/dist/{chunk-38bpmgjd.js → chunk-kj2zk46g.js} +2 -2
- package/dist/chunk-kkqrxb9w.js +3 -0
- package/dist/{chunk-2zy75522.js → chunk-kn792h8n.js} +2 -2
- package/dist/chunk-kqvgmkvr.js +2 -0
- package/dist/{chunk-7ac4g54f.js → chunk-m087n233.js} +3 -3
- package/dist/{chunk-ase4ejxz.js → chunk-ma6ycen5.js} +2 -2
- package/dist/{chunk-8q9hq3mg.js → chunk-ma7thf1j.js} +2 -2
- package/dist/{chunk-rr9kc3n8.js → chunk-mahb3t97.js} +2 -2
- package/dist/{chunk-f89s462k.js → chunk-mf0k3xd4.js} +3 -3
- package/dist/{chunk-ckjq6690.js → chunk-n811d65m.js} +3 -3
- package/dist/{chunk-kj3t4mqf.js → chunk-n96z8etk.js} +2 -2
- package/dist/{chunk-ecdjjnbb.js → chunk-nbgw51b6.js} +2 -2
- package/dist/{chunk-8v53bkyr.js → chunk-ne4b53kn.js} +2 -2
- package/dist/{chunk-p2tm6tv8.js → chunk-nhkm2gr7.js} +1 -1
- package/dist/{chunk-e7ndpy02.js → chunk-nn30qzhx.js} +2 -2
- package/dist/{chunk-heqa4swe.js → chunk-nqt9gyz9.js} +2 -2
- package/dist/{chunk-q5qqhqw4.js → chunk-p3gawvqr.js} +2 -2
- package/dist/{chunk-vvkp0jqa.js → chunk-p5hk14fk.js} +2 -2
- package/dist/{chunk-s8djv2dy.js → chunk-pc11a2w0.js} +3 -3
- package/dist/chunk-ph7srp7q.js +2 -0
- package/dist/{chunk-kv1w4jx4.js → chunk-phee3jn9.js} +2 -2
- package/dist/{chunk-e04g26qm.js → chunk-pqz2471h.js} +2 -2
- package/dist/{chunk-5bmxngnx.js → chunk-psndz2rs.js} +2 -2
- package/dist/{chunk-df9aqj1m.js → chunk-pxzj3ae7.js} +2 -2
- package/dist/{chunk-xykmskka.js → chunk-q1yz3t9z.js} +2 -2
- package/dist/{chunk-mr2wcd24.js → chunk-q4c6f84f.js} +2 -2
- package/dist/{chunk-vbbndjfd.js → chunk-q7rq46qc.js} +2 -2
- package/dist/{chunk-6my4ybpw.js → chunk-qma11tpm.js} +3 -3
- package/dist/chunk-qmcr5f9k.js +2 -0
- package/dist/{chunk-0rnh8mhs.js → chunk-r7hwgk2v.js} +2 -2
- package/dist/{chunk-8kd74ng1.js → chunk-rg9ckzpr.js} +2 -2
- package/dist/{chunk-gdavg2hq.js → chunk-rhe4w638.js} +2 -2
- package/dist/chunk-rkqptd9w.js +2 -0
- package/dist/{chunk-n8v6cdq3.js → chunk-rp7tnbss.js} +2 -2
- package/dist/chunk-rv3k0kfr.js +2 -0
- package/dist/{chunk-1qjhvkg0.js → chunk-rz9fnphz.js} +2 -2
- package/dist/chunk-s6medm3z.js +2 -0
- package/dist/{chunk-1r4y3pfg.js → chunk-s9mejb9v.js} +2 -2
- package/dist/{chunk-z1qcgb6b.js → chunk-scdj02m8.js} +3 -3
- package/dist/chunk-sfgegn3p.js +2 -0
- package/dist/chunk-sjb5stzq.js +2 -0
- package/dist/{chunk-kztrgv9y.js → chunk-sp2ny9ak.js} +2 -2
- package/dist/chunk-stv8pr4v.js +2 -0
- package/dist/chunk-swkcmtme.js +2 -0
- package/dist/chunk-sz993t5e.js +2 -0
- package/dist/{chunk-ms0h8x63.js → chunk-t5ff3cn7.js} +2 -2
- package/dist/{chunk-tc3t2sgb.js → chunk-ta6rbxh5.js} +3 -3
- package/dist/chunk-tc6d0v1y.js +2 -0
- package/dist/{chunk-38hvm5ca.js → chunk-tdvx2n5m.js} +2 -2
- package/dist/{chunk-6wkcqhkk.js → chunk-tftgnw1w.js} +2 -2
- package/dist/{chunk-1vtvcar6.js → chunk-thaa1n4f.js} +2 -2
- package/dist/chunk-tyrzaz6c.js +2 -0
- package/dist/{chunk-csfqkzmr.js → chunk-vg1y693r.js} +3 -3
- package/dist/{chunk-q9mh8x4r.js → chunk-vg9p0hvk.js} +2 -2
- package/dist/{chunk-3g9qb7vq.js → chunk-vm81n2c0.js} +2 -2
- package/dist/chunk-vt7dkgtx.js +2 -0
- package/dist/{chunk-wkrnbk0p.js → chunk-w1wr14da.js} +2 -2
- package/dist/{chunk-gvqvw7ms.js → chunk-wbjf9maj.js} +2 -2
- package/dist/{chunk-2a4pq98d.js → chunk-wew3t005.js} +2 -2
- package/dist/{chunk-gea1q14z.js → chunk-wpacvdsv.js} +2 -2
- package/dist/{chunk-jca8s47n.js → chunk-wq47c4ws.js} +2 -2
- package/dist/{chunk-easm0z49.js → chunk-x2wcwpw3.js} +2 -2
- package/dist/chunk-x3v10a71.js +2 -0
- package/dist/{chunk-9q6hz47j.js → chunk-x49qjrbk.js} +2 -2
- package/dist/{chunk-r8expjyy.js → chunk-x4jm2eh9.js} +4 -4
- package/dist/{chunk-gawrkkbf.js → chunk-xfzmxq3g.js} +2 -2
- package/dist/{chunk-n0q8e6sq.js → chunk-xnc0175v.js} +2 -2
- package/dist/chunk-xnx8p8c0.js +4 -0
- package/dist/{chunk-at75m9hq.js → chunk-xqb4thy8.js} +2 -2
- package/dist/{chunk-2cfhvb3k.js → chunk-xspnhgq6.js} +2 -2
- package/dist/{chunk-7jk8s061.js → chunk-xwwjj45a.js} +2 -2
- package/dist/{chunk-8ngg5vs4.js → chunk-xx29efrs.js} +3 -3
- package/dist/{chunk-d8f6avcz.js → chunk-xx7t8r87.js} +2 -2
- package/dist/{chunk-d2m4xmt4.js → chunk-xyffk47k.js} +2 -2
- package/dist/{chunk-tzczzqde.js → chunk-y3mx5sf0.js} +2 -2
- package/dist/{chunk-t9xkg3pk.js → chunk-yb5yhh8t.js} +2 -2
- package/dist/chunk-ye7ecnej.js +2 -0
- package/dist/{chunk-x20dy83s.js → chunk-ynxb5xqz.js} +3 -3
- package/dist/{chunk-6xap6hvz.js → chunk-z107z7dt.js} +2 -2
- package/dist/{chunk-3a3ecayr.js → chunk-z6x70w62.js} +2 -2
- package/dist/{chunk-1gv49jt9.js → chunk-zjk12jjm.js} +3 -3
- package/dist/{chunk-kh3af9mq.js → chunk-zw2x5ztr.js} +2 -2
- package/dist/{chunk-r8pm74zf.js → chunk-zxfx7psd.js} +2 -2
- package/dist/{chunk-2dm51ksz.js → chunk-zyn0ys4m.js} +2 -2
- package/dist/{chunk-86821qec.js → chunk-zzjth6f2.js} +2 -2
- package/dist/client.js +1 -1
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/artifact-links.js +1 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/edited-files-card.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/codex/navigation-audio.js +1 -1
- package/dist/codex/navigation-preview.js +1 -1
- package/dist/codex/navigation-rail.js +1 -1
- package/dist/codex/patch-view.js +1 -1
- package/dist/codex/plan.js +1 -1
- package/dist/codex/timeline-virtualizer.js +1 -1
- package/dist/codex/turn-activity.js +1 -1
- package/dist/codex/user-message.js +1 -1
- package/dist/codex/virtualized-turn-list.js +1 -1
- package/dist/collections/collection-emoji.js +1 -1
- package/dist/collections/collection-menu.js +1 -1
- package/dist/collections/collection-panel.js +1 -1
- package/dist/collections/collections.js +1 -1
- package/dist/collections/host.js +1 -1
- package/dist/collections/locales.js +1 -1
- package/dist/collections/model.js +1 -1
- package/dist/collections/store.js +1 -1
- package/dist/composer/completion-filter.js +1 -1
- package/dist/composer/completion-menu.js +1 -1
- package/dist/composer/completion-trigger.js +1 -1
- package/dist/composer/effort-slider.js +1 -1
- package/dist/composer/inline-document.js +1 -1
- package/dist/composer/inline-dom.js +1 -1
- package/dist/composer/menu-radio.js +1 -1
- package/dist/composer/model-select.js +1 -1
- package/dist/composer/permission-mode-select.js +1 -1
- package/dist/composer/prompt-input-attachments.js +1 -1
- package/dist/composer/prompt-input-clipboard.js +1 -1
- package/dist/composer/prompt-input-context.js +1 -1
- package/dist/composer/prompt-input-inline.js +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.js +1 -1
- package/dist/conversation/action-card.js +1 -1
- package/dist/conversation/composer/app-mentions.js +1 -1
- package/dist/conversation/composer/apps-menu.js +1 -1
- package/dist/conversation/composer/composer-menu.js +1 -1
- package/dist/conversation/composer/composer.js +1 -1
- package/dist/conversation/composer/config-options.js +1 -1
- package/dist/conversation/composer/context.js +1 -1
- package/dist/conversation/composer/drafts.js +1 -1
- package/dist/conversation/composer/file-items.js +1 -1
- package/dist/conversation/composer/long-text.js +1 -1
- package/dist/conversation/composer/mention-chips.js +1 -1
- package/dist/conversation/composer/mention-uri.js +1 -1
- package/dist/conversation/composer/model-menu.js +1 -1
- package/dist/conversation/composer/pasted-text-attachment.js +1 -1
- package/dist/conversation/composer/permission-mode-menu.js +1 -1
- package/dist/conversation/composer/prediction.js +1 -1
- package/dist/conversation/composer/prompt-history.js +1 -1
- package/dist/conversation/composer/slash-command-button.js +1 -1
- package/dist/conversation/composer/submit-button.js +1 -1
- package/dist/conversation/composer/usage-meter.js +1 -1
- package/dist/conversation/connection-notice.js +1 -1
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-search.js +1 -1
- package/dist/conversation/conversation-view.js +1 -1
- package/dist/conversation/conversation.js +1 -1
- package/dist/conversation/diff-modal.js +1 -1
- package/dist/conversation/draft-project-picker.js +1 -1
- package/dist/conversation/session-actions.js +1 -1
- package/dist/conversation/subagent-sessions.js +1 -1
- package/dist/conversation/subagent-tasks.js +1 -1
- package/dist/desktop/desktop-composer.js +1 -1
- package/dist/desktop/desktop.js +1 -1
- package/dist/desktop/draft-model-select.js +1 -1
- package/dist/desktop/load-image.js +1 -1
- package/dist/desktop/model-catalog.js +1 -1
- package/dist/desktop/model-recovery.js +1 -1
- package/dist/desktop/model-settings-action.js +1 -1
- package/dist/desktop/native-file-drop.js +1 -1
- package/dist/generated/commands.js +1 -1
- package/dist/image-lightbox.js +1 -1
- package/dist/image-preview-dialog.js +1 -1
- package/dist/image.js +1 -1
- package/dist/lib/app-reference.js +1 -1
- package/dist/lib/application-metadata.js +1 -1
- package/dist/lib/chat-path.js +1 -1
- package/dist/lib/code-highlighter.js +1 -1
- package/dist/lib/file-url.js +1 -1
- package/dist/lib/fuzzy.js +1 -1
- package/dist/lib/group-blocks.js +1 -1
- package/dist/lib/image-encode.js +1 -1
- package/dist/lib/limits.js +1 -1
- package/dist/lib/markdown-parser.js +1 -1
- package/dist/lib/markdown-rules.js +1 -1
- package/dist/lib/model-name.js +1 -1
- package/dist/lib/prepare-prompt-files.js +1 -1
- package/dist/lib/reference-presentation.js +1 -1
- package/dist/lib/stream-style.js +1 -1
- package/dist/lib/streaming-markdown.js +1 -1
- package/dist/lib/tool-artifacts.js +1 -1
- package/dist/locales.js +1 -1
- package/dist/mermaid/diagram.js +1 -1
- package/dist/mermaid/export.js +1 -1
- package/dist/mermaid/index.js +1 -1
- package/dist/mermaid/preview.js +1 -1
- package/dist/oauth/claude-login.js +1 -1
- package/dist/oauth.js +1 -1
- package/dist/plugins/catalog-header.js +1 -1
- package/dist/plugins/catalog-skeleton.js +1 -1
- package/dist/plugins/host.js +1 -1
- package/dist/plugins/new-chat-directory.js +1 -1
- package/dist/plugins/panel-item.js +1 -1
- package/dist/plugins/plugin-detail-page.js +1 -1
- package/dist/plugins/plugin-icon.js +1 -1
- package/dist/plugins/plugin-icons.js +1 -1
- package/dist/plugins/plugins-page.js +1 -1
- package/dist/plugins/plugins.js +1 -1
- package/dist/plugins/read-skill-document.js +1 -1
- package/dist/plugins/skill-document.js +1 -1
- package/dist/plugins/skills-tab.js +1 -1
- package/dist/plugins/store.d.ts +1 -0
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/reference-projection.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/account-menu.js +1 -1
- package/dist/session-list/activity-list.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/locales.js +1 -1
- package/dist/session-list/navigation-controls.js +1 -1
- package/dist/session-list/navigation-header.js +1 -1
- package/dist/session-list/navigation-store.js +1 -1
- package/dist/session-list/navigation-tabs.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/platform.js +1 -1
- package/dist/session-list/row-stop-button.js +1 -1
- package/dist/session-list/session-groups.js +1 -1
- package/dist/session-list/session-info-card.js +1 -1
- package/dist/session-list/session-list.js +1 -1
- package/dist/session-list/session-row.js +1 -1
- package/dist/session-list/session-state-dot.js +1 -1
- package/dist/session-list/session-state-menu.js +1 -1
- package/dist/session-list/shortcut-hint.js +1 -1
- package/dist/session-list/shortcut.js +1 -1
- package/dist/session-list/sidebar-overlay.js +1 -1
- package/dist/session-list/trailing-swap.js +1 -1
- package/dist/session-list/use-activity-notification.js +1 -1
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-cmd-held.js +1 -1
- package/dist/session-list/use-project-sessions.js +1 -1
- package/dist/session-list/virtual-session-rows.js +1 -1
- package/dist/session-timeline/activity-group.js +1 -1
- package/dist/session-timeline/activity-projection.js +1 -1
- package/dist/session-timeline/assistant-content.js +1 -1
- package/dist/session-timeline/assistant-image-references.js +1 -1
- package/dist/session-timeline/assistant-turn.js +1 -1
- package/dist/session-timeline/async-questions.js +1 -1
- package/dist/session-timeline/edited-files-card.js +1 -1
- package/dist/session-timeline/history-timeline.js +1 -1
- package/dist/session-timeline/host.js +1 -1
- package/dist/session-timeline/image-generation-progress.js +1 -1
- package/dist/session-timeline/navigation-rail.js +1 -1
- package/dist/session-timeline/plan.js +1 -1
- package/dist/session-timeline/question-reply.js +1 -1
- package/dist/session-timeline/resource-content.js +1 -1
- package/dist/session-timeline/session-timeline.js +1 -1
- package/dist/session-timeline/timeline-registry.js +1 -1
- package/dist/session-timeline/turn-activity.js +1 -1
- package/dist/session-timeline/turn-error.js +1 -1
- package/dist/session-timeline/turn-retry.js +1 -1
- package/dist/session-timeline/turn-time.js +1 -1
- package/dist/session-timeline/turns.js +1 -1
- package/dist/session-timeline/use-timeline-scroll.js +1 -1
- package/dist/session-timeline/user-message.js +1 -1
- package/dist/settings/codex-account-card.js +1 -1
- package/dist/settings/login-card.js +1 -1
- package/dist/settings/model-alias-settings.js +1 -1
- package/dist/settings/model-aliases.js +1 -1
- package/dist/settings/provider-logos.js +1 -1
- package/dist/settings/provider-section.js +1 -1
- package/dist/settings/providers-port.js +1 -1
- package/dist/settings/providers.js +1 -1
- package/dist/settings/settings-bridge.js +1 -1
- package/dist/settings/settings.js +1 -1
- package/native/win32-x64/alwith_native_chat.dll +0 -0
- package/native/win32-x64/artifact.json +1 -1
- package/package.json +1 -1
- package/dist/chunk-0rte5dh6.js +0 -2
- package/dist/chunk-1a56svgj.js +0 -2
- package/dist/chunk-1hmt6w4w.js +0 -2
- package/dist/chunk-2c2a1wvg.js +0 -2
- package/dist/chunk-2ee48v0d.js +0 -3
- package/dist/chunk-2nb1475h.js +0 -2
- package/dist/chunk-3gnn1v68.js +0 -2
- package/dist/chunk-3rmwcar7.js +0 -2
- package/dist/chunk-41yz7txv.js +0 -2
- package/dist/chunk-6dnb0t84.js +0 -2
- package/dist/chunk-6ehhap9k.js +0 -2
- package/dist/chunk-6tj5e7fc.js +0 -2
- package/dist/chunk-7sp1yqfg.js +0 -2
- package/dist/chunk-81jejgvs.js +0 -2
- package/dist/chunk-85tzkdsj.js +0 -2
- package/dist/chunk-ayademz2.js +0 -2
- package/dist/chunk-b42vv8f2.js +0 -2
- package/dist/chunk-bfwft1b8.js +0 -2
- package/dist/chunk-c0mpr4dh.js +0 -2
- package/dist/chunk-een4e2tr.js +0 -2
- package/dist/chunk-ehpaw624.js +0 -4
- package/dist/chunk-f7m5zdkp.js +0 -2
- package/dist/chunk-gyw21vnb.js +0 -2
- package/dist/chunk-jq6qs3s6.js +0 -2
- package/dist/chunk-k99r1r38.js +0 -2
- package/dist/chunk-mg7kraha.js +0 -2
- package/dist/chunk-mqpkm974.js +0 -2
- package/dist/chunk-n6dqwdg5.js +0 -2
- package/dist/chunk-p781sb6h.js +0 -2
- package/dist/chunk-q9y0wjwp.js +0 -2
- package/dist/chunk-qejm75d7.js +0 -2
- package/dist/chunk-r6c9r5yy.js +0 -2
- package/dist/chunk-rx84h0c2.js +0 -2
- package/dist/chunk-s2706gae.js +0 -2
- package/dist/chunk-sgbn37kz.js +0 -2
- package/dist/chunk-tcs1a1hk.js +0 -2
- package/dist/chunk-wnydsth6.js +0 -2
- package/dist/chunk-x1mzrhtd.js +0 -2
- package/dist/chunk-y6p8xspr.js +0 -2
- package/dist/chunk-yc4cdg65.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{qs,Ks,Ws}from"../chunk-k4a3p16c.js";export{qs as codexSettingsBridge,Ws as createSettingsBridgeClient,Ks as serveSettingsBridge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{qs,Ks,Ws}from"../chunk-k4a3p16c.js";import"../chunk-jpr2y0y3.js";import"../chunk-4jp1d558.js";import"../chunk-81n37a11.js";import"../chunk-x2wcwpw3.js";import"../chunk-gttw4rmx.js";import"../chunk-1fadxh2z.js";import"../chunk-73e9vpm9.js";import"../chunk-esbgn8q0.js";import"../chunk-ta6rbxh5.js";import"../chunk-rkqptd9w.js";import"../chunk-x3v10a71.js";import{Qt}from"../chunk-rg9ckzpr.js";import{Wt,ui,Zt}from"../chunk-74b70n1g.js";import{Hn,Un,Bn,Gn}from"../chunk-dd9k5bbt.js";import{R,bt,Ct,fe,S,xa,se,Dn,Fn,ba,wt,Ca}from"../chunk-tdvx2n5m.js";import"../chunk-n96z8etk.js";import{Fi,Oi,_n,ha,Pn,Ue}from"../chunk-5jq3xg3q.js";import{ai,Zs,li,ci,di,Xn}from"../chunk-n811d65m.js";import{pt,Jt,Xt}from"../chunk-q1yz3t9z.js";import{Qs}from"../chunk-q4c6f84f.js";export{Zt as CodexAccountCard,ui as CodexAccountSummary,Xn as CustomProviderEditor,Hn as DeepSeekLogo,Un as GrokLogo,Qt as LoginCard,pt as MODEL_ALIASES_KEY,wt as MODEL_PRESENTATION,ai as ManagedProviderSection,Qs as ModelAliasSettings,Bn as OpenRouterLogo,R as PROVIDERS,Fi as PROVIDERS_CHANGED,Oi as PROVIDERS_REVOKED,di as ProviderRow,Zs as ProviderSection,li as ProviderTabs,Gn as QwenLogo,ci as TestFeedback,Wt as UsageLimitRow,Pn as applyProvidersWhenIdle,qs as codexSettingsBridge,ha as createManagedProvidersPort,_n as createProvidersPort,Ws as createSettingsBridgeClient,ba as customModelEffort,S as gatewayModelId,bt as isAccountModel,Ct as parseCustomModels,Ca as presentModel,Fn as providerApplicationPending,fe as providerGroups,Dn as providerKeyUrl,se as providerRegion,xa as resolveSessionModel,Xt as saveModelAlias,Ks as serveSettingsBridge,Jt as useModelAliases,Ue as useProviders};
|
|
Binary file
|
package/package.json
CHANGED
package/dist/chunk-0rte5dh6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tn}from"./chunk-mg7kraha.js";import{createContext as l,useContext as a,useEffect as p,useSyncExternalStore as u}from"react";import{jsx as o}from"react/jsx-runtime";var g=l(null),P=l(null),r=new WeakMap;function We(e){let t=r.get(e);if(!t)t=tn(e),r.set(e,t);return t}function Ds({host:e,client:t,children:n}){let s=We(t);return s.bindHost(e),p(()=>s.bindHost(e),[s,e]),o(g,{value:e,children:o(P,{value:t,children:n})})}function d(){let e=a(g);if(e===null)throw Error("Plugins host is missing");return e}function Ze(){let e=a(P);if(e===null)throw Error("Plugins client is missing");return e}function ut(e){let t=Ze();return u((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function i(e){let t=We(Ze());return u((n)=>t.subscribe(n),()=>e(t.getState()),()=>e(t.getState()))}function Qe(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
|
|
2
|
-
export{We,Ds,d,Ze,ut,i,Qe};
|
package/dist/chunk-1a56svgj.js
DELETED
package/dist/chunk-1hmt6w4w.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{wt}from"./chunk-pk931bpm.js";import{o}from"./chunk-pdmayjan.js";import{e,x}from"./chunk-abgdqy92.js";import{X,y,Y}from"./chunk-p781sb6h.js";import{isBooleanOption as U,isGroupedSelect as q,isSelectOption as A}from"@nyssance/codex-acp-v2/client";import{Zap as Z}from"lucide-react";import{memo as D,useRef as F}from"react";import{jsx as w}from"react/jsx-runtime";function H({sessionId:l,options:u,disabled:B,onModelChange:h,onConfigChange:C,defaultGroup:G={id:"models",name:"Models"},catalog:I=(c)=>c,headerAction:L}){let{host:c,client:N}=e(),{t:i}=c,P=o((n)=>Boolean(n.configPending[l])),p=F({sessionId:l,model:!0}),b=P&&(p.current.sessionId!==l||p.current.model),k=o((n)=>{let r=n.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),t=y(u,"model"),a=y(u,"thought_level"),O=u.filter((n)=>n.configId!=="collaboration_mode"&&(n.category==="model_config"||n.category!=="mode"&&n!==t&&n!==a)),v=O.filter(A),m=O.filter(U);if(!t&&!a&&v.length===0&&m.length===0)return null;let f=(n,r)=>{if(r===n.currentValue)return Promise.resolve();p.current={sessionId:l,model:n===t};let d=C?C(n.configId,r):N.setConfig(l,n.configId,r);return x(c,d),d},g=a?X(a):[],z=g.reduce((n,r)=>r.name.length>=n.length?r.name:n,""),R=t?Y(t):i("composer.model"),_=(n)=>({api_id:n.value,label:n.name}),S=I(t&&q(t.options)?t.options.map((n)=>({id:n.groupId,name:n.name,models:n.options.map(_)})):[{...G,models:t?X(t).map(_):[]}]),V=S.flatMap((n)=>n.models),M=V.find((n)=>n.api_id===t?.currentValue)??{api_id:t?.currentValue??"",label:R},s=m.find((n)=>n.configId==="fast_mode"||n.configId==="fast-mode");return w(wt,{disabled:B||b||k,switching:b,value:{...M,label:M.shortLabel??M.label},compactCatalog:!0,models:V,showModelList:Boolean(t),onChange:(n)=>{if(n.api_id===t?.currentValue)return;if(h)h(n.api_id);else if(t)f(t,n.api_id)},header:{name:t?.name??i("composer.model"),action:L},modelGroups:S,t:i,effortConfig:a&&g.length>0?{name:"Effort",value:a.currentValue,levels:g,sizer:z,onChange:(n)=>f(a,n)}:void 0,selectOptions:v.map((n)=>({id:n.configId,name:n.name,value:n.currentValue,options:X(n).map((r)=>({value:r.value,label:r.name})),onChange:(r)=>f(n,r)})),booleanOptions:[{id:"fast_mode",name:i("composer.fastMode"),currentValue:s?.currentValue??!1,disabled:!s,title:!s?i("composer.fastModeUnsupported"):void 0,icon:w(Z,{className:"size-4","aria-hidden":"true"})},...m.filter((n)=>n!==s).map((n)=>({id:n.configId,name:n.name,currentValue:n.currentValue}))],onBooleanChange:(n,r)=>{let d=n==="fast_mode"?s:m.find((E)=>E.configId===n);if(!d)throw Error(`Unknown boolean config: ${n}`);f(d,r)}})}var gn=D(H);
|
|
2
|
-
export{gn};
|
package/dist/chunk-2c2a1wvg.js
DELETED
package/dist/chunk-2ee48v0d.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{m}from"./chunk-sgbn37kz.js";import{R,f}from"./chunk-6tj5e7fc.js";import{Jt}from"./chunk-hzhcajx1.js";import{We,d,Ze,ut,i}from"./chunk-0rte5dh6.js";import{q,K,le,W,Z,_e,en}from"./chunk-p2tm6tv8.js";import{Se}from"./chunk-p14j9ckg.js";import{pt}from"./chunk-8v53bkyr.js";import{k}from"./chunk-qk1yqepm.js";import{Xt,B}from"./chunk-nrzkzvr0.js";import{Q,Ie}from"./chunk-e04g26qm.js";import{Qt}from"./chunk-z6e4ydvm.js";import{Yt}from"./chunk-6w5gfh01.js";import{hasPluginStore as ee}from"@nyssance/codex-acp-v2/client";import{BlocksIcon as te,BookOpenIcon as ae,CheckIcon as ne,CircleArrowUpIcon as se,MoreVerticalIcon as ie,PlusIcon as _,PuzzleIcon as oe,RefreshCwIcon as re,SearchIcon as ce,Trash2Icon as de,XIcon as me}from"lucide-react";import{memo as ue,useDeferredValue as pe,useEffect as V,useMemo as G,useState as C}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as ge,DialogContent as fe,DialogDescription as ve,DialogHeader as xe,DialogTitle as he,DialogTrigger as Ne}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as ke,DropdownMenuContent as ye,DropdownMenuItem as be,DropdownMenuTrigger as Pe}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as U}from"@nyssance/shadcn/vega/components/ui/input";import{Label as we}from"@nyssance/shadcn/vega/components/ui/label";import{Spinner as M}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as e,jsxs as s,Fragment as X}from"react/jsx-runtime";function E(t){return t.interface?.displayName??t.name}function F(t){return t.interface?.shortDescription??""}function Ce({plugin:t,marketplace:r}){let{t:u}=d(),p=i((n)=>(t.id in n.busyIds)),a=i((n)=>n.installed.some((v)=>v.plugin.id===t.id)),g=i((n)=>n.install),c=t.availability!=="AVAILABLE"||t.installPolicy==="NOT_AVAILABLE",o=u(p?"plugins.card.installing":a?"plugins.sections.installed":"plugins.card.install");if(a&&!p)return e(ne,{className:"text-muted-foreground size-4 shrink-0","aria-label":o});return e(N,{size:"icon-sm",variant:"ghost",className:"text-foreground shrink-0 rounded-full",disabled:p||a||c,"aria-label":o,title:c?u("plugins.disabledReason.unknown"):o,onClick:()=>void g({plugin:t,marketplace:r}).catch(()=>{}),children:p?e(M,{"aria-hidden":"true"}):e(_,{className:"size-5",strokeWidth:2,"aria-hidden":"true"})})}function De({plugin:t,marketplace:r,actions:u,onOpen:p}){let a=F(t),g=t.interface?.developerName,c=t.localVersion??t.version,o=[g,c?`v${c}`:null].filter(Boolean).join(" · ");return s(_e,{className:"toolbox-row relative",children:[e(N,{variant:"ghost",className:"absolute inset-0 z-0 size-full","data-hover-background":"none","aria-label":E(t),onClick:()=>p({plugin:t,marketplace:r})}),e(W,{className:"pointer-events-none relative translate-none! self-center!",children:e("div",{className:"bg-muted flex size-10 shrink-0 items-center justify-center rounded-xl",children:e(B,{name:t.name})})}),s(K,{className:"pointer-events-none relative min-w-0",children:[e(en,{className:"mb-0.5",children:E(t)}),e(le,{className:"line-clamp-1",title:a,children:a||r.interface?.displayName||r.name}),o&&e(le,{"data-toolbox-metadata":"",children:o})]}),e(q,{className:"relative w-8 shrink-0 justify-center",children:u})]})}function L(){return ut((t)=>t.connection==="ready"&&ee(t.agent))}var S=48;function Me({marketplace:t,plugins:r,onOpen:u}){let{t:p}=d(),a=i((n)=>n.removeMarketplace),[g,c]=C(0),o=Math.min(g,Math.max(0,Math.ceil(r.length/S)-1));if(r.length===0)return null;return s("section",{className:"flex flex-col gap-4",children:[s("div",{className:"flex items-center gap-2",children:[e("h2",{className:"text-base font-medium",children:t.interface?.displayName??t.name}),e("span",{className:"text-muted-foreground text-xs",children:r.length}),t.path!==null&&s(ke,{children:[e(Pe,{render:e(N,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground ms-auto","aria-label":p("plugins.pageActions")}),children:e(ie,{})}),e(ye,{align:"end",className:"w-max min-w-[140px] whitespace-nowrap",children:s(be,{className:"text-destructive",onClick:()=>void a(t.name),children:[e(de,{className:"size-3.5"}),p("plugins.marketplace.remove")]})})]})]}),e(Z,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2",children:r.slice(o*S,(o+1)*S).map((n)=>e(De,{onOpen:u,plugin:n,marketplace:t,actions:e(Ce,{plugin:n,marketplace:t})},n.remotePluginId??n.id))}),r.length>S&&s("div",{className:"flex items-center justify-end gap-2 px-2",children:[e(N,{variant:"outline",size:"sm",className:"h-9",disabled:o===0,onClick:()=>c(o-1),children:p("plugins.previousPage")}),s("span",{className:"text-muted-foreground text-xs",children:[o+1," / ",Math.ceil(r.length/S)]}),e(N,{variant:"outline",size:"sm",className:"h-9",disabled:(o+1)*S>=r.length,onClick:()=>c(o+1),children:p("plugins.nextPage")})]})]},t.name)}var Ee=ue(function({query:r,onOpen:u}){let{t:p}=d(),a=i((n)=>n.marketplaces),g=i((n)=>n.featuredPluginIds),c=G(()=>a.map((n)=>({marketplace:n,entries:n.plugins.map((v)=>({plugin:v,text:[v.name,E(v),F(v),v.interface?.developerName??"",...v.keywords].join(`
|
|
2
|
-
`).toLowerCase()}))})),[a]),o=G(()=>{let n=new Set(g);return c.map(({marketplace:v,entries:x})=>({marketplace:v,plugins:x.filter(({plugin:y,text:b})=>r===""?v.path!==null||n.has(y.id):b.includes(r)).map(({plugin:y})=>y)}))},[c,g,r]);return s(X,{children:[o.map(({marketplace:n,plugins:v})=>e(Me,{marketplace:n,plugins:v,onOpen:u},JSON.stringify([n.name,n.path,r]))),o.every((n)=>n.plugins.length===0)&&e("p",{className:"text-muted-foreground px-2 py-6 text-center text-sm",children:p("plugins.empty")})]})});function ze(){let{t}=d(),r=L(),u=i((h)=>h.addMarketplace),p=i((h)=>h.upgradeAll),a=i((h)=>h.upgrading),[g,c]=C(""),[o,n]=C(!1),[v,x]=C(!1),[y,b]=C(null),z=async()=>{let h=g.trim();if(!h||o)return;n(!0),b(null);try{await u({source:h}),c(""),x(!1)}catch(I){b(I instanceof Error?I.message:String(I))}finally{n(!1)}};return s("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[s(N,{size:"sm",className:"h-9",variant:"outline",disabled:!r||a,"aria-busy":a,onClick:()=>void p(),children:[a?e(M,{}):e(se,{"data-icon":"inline-start"}),t("plugins.marketplace.upgradeAll")]}),s(ge,{open:v,onOpenChange:(h)=>{if(!o)x(h)},children:[s(Ne,{render:e(N,{size:"sm",className:"h-9",variant:"outline",disabled:!r}),children:[e(_,{"data-icon":"inline-start"}),t("plugins.addMarketplace")]}),s(fe,{children:[s(xe,{children:[e(he,{children:t("plugins.marketplace.addTitle")}),e(ve,{children:t("plugins.catalog.sourceHelp")})]}),s("form",{className:"space-y-4",onSubmit:(h)=>{h.preventDefault(),z()},children:[e(we,{htmlFor:"marketplace-source",children:t("plugins.marketplace.sourceLabel")}),e(U,{id:"marketplace-source",value:g,disabled:o,onChange:(h)=>c(h.target.value),placeholder:t("plugins.marketplace.sourcePlaceholder")}),y&&e("p",{role:"alert",className:"text-destructive text-sm",children:y}),s("div",{className:"flex justify-end gap-2",children:[e(N,{type:"button",variant:"ghost",disabled:o,onClick:()=>x(!1),children:t("plugins.marketplace.addCancel")}),s(N,{type:"submit",disabled:o||g.trim()==="",children:[o&&e(M,{}),t("plugins.marketplace.addSubmit")]})]})]})]})]})]})}function Oe({onOpen:t,query:r}){let u=L(),p=i((c)=>c.marketplaceLoadErrors),a=i((c)=>c.loading)||!u,g=pe(r.trim().toLowerCase());return e(k,{className:"pe-0",viewportClassName:"pe-0",children:s("div",{className:`${Q} flex flex-col gap-8`,children:[p.map((c)=>s("p",{className:"text-destructive px-2 text-xs",children:[c.marketplacePath,": ",c.message]},c.marketplacePath)),a?e(Se,{}):e(Ee,{query:g,onOpen:t})]})})}function Ls({cwd:t,active:r,extensions:u,onOpenCatalog:p}){let{t:a}=d(),g=Ze(),c=We(g),o=i((l)=>l.refresh),n=i((l)=>l.loading),v=i((l)=>l.error),[x,y]=C("plugins"),[b,z]=C({plugins:"",skills:""}),h=x==="skills"?b.skills:b.plugins,I=(l)=>z((D)=>({...D,[x]:l})),Y=ut((l)=>JSON.stringify([...new Set(l.sessionList.map((D)=>pt(D.cwd,l.projectContext)).filter((D)=>D!==null))].toSorted())),O=JSON.stringify([...new Set([pt(t,g.state.projectContext),...JSON.parse(Y)].filter((l)=>l!==null))].toSorted()),T=i((l)=>l.installed),H=a(x==="skills"?"plugins.skills.search":"plugins.search"),[P,j]=C(null),w=L();V(()=>{if(!r||!w)return;if(c.getState().loadedScope!==O)o(JSON.parse(O))},[r,w,o,O,c]),V(()=>{if(!w)return;return g.onSkillsChanged(()=>void o(void 0,{background:!0}))},[w,o,g]);let A=(l)=>{p?.(),y("plugins"),j(l)},J=(l)=>{p?.(),y(l),j(null)};return s("div",{className:"plugins-page @container flex h-full min-h-0 overflow-hidden [--navigation-row-height:30px] [--spacing:4px]",children:[e(Xt,{}),s("aside",{className:"bg-sidebar/40 flex w-44 shrink-0 flex-col border-e sm:w-60","aria-label":a("plugins.catalog.navigation"),children:[e("div",{className:"shrink-0 px-3 pt-3",children:e("div",{className:"flex h-9 items-center","data-plugin-sidebar-header":"",children:e("h2",{className:"text-sm leading-8 font-semibold",children:a("plugins.catalog.customize")})})}),s("nav",{"aria-label":a("plugins.manageTabs.aria"),className:"flex shrink-0 flex-col gap-1 px-2 pb-1",children:[u&&s(f,{className:`${m} h-8 gap-2 px-2`,active:u.active,onClick:u.onOpen,children:[e(te,{className:"size-4"}),e("span",{children:a("plugins.extensions")})]}),["plugins","skills"].map((l)=>s(f,{className:`${m} h-8 gap-2 px-2`,active:!u?.active&&x===l&&P===null,onClick:()=>J(l),children:[l==="plugins"?e(oe,{className:"size-4"}):e(ae,{className:"size-4"}),e("span",{children:a(`plugins.headings.${l}`)})]},l))]}),e("h3",{className:"text-muted-foreground mx-2 mt-1 mb-2 flex h-8 shrink-0 items-center px-2 text-xs font-medium",children:a("plugins.sections.installed")}),e(k,{className:"min-h-0 flex-1 pe-0",viewportClassName:"pe-0",children:e("nav",{"aria-label":a("plugins.sections.installed"),className:"px-2 pb-4",children:e(R,{children:!w||n&&T.length===0?s("div",{role:"status",className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs",children:[e(M,{className:"size-3.5",role:"presentation","aria-hidden":"true"}),a("plugins.detail.loading")]}):T.length===0?e("p",{className:"text-muted-foreground px-3 py-2 text-xs",children:a("plugins.sections.installedEmpty")}):T.map((l)=>s(f,{title:E(l.plugin),className:`${m} gap-2 px-2`,active:!u?.active&&P?.plugin.id===l.plugin.id,onClick:()=>A(l),children:[e(B,{name:l.plugin.name,className:"size-4 shrink-0"}),e("span",{className:"truncate",children:E(l.plugin)})]},l.plugin.id))})})})]}),e("main",{className:"toolbox-surface @container flex min-h-0 min-w-0 flex-1 flex-col","aria-label":a("plugins.catalog.content"),children:u?.active?u.content:s(X,{children:[P&&e(Qt,{entry:P,onBack:()=>J("plugins")},JSON.stringify([P.marketplace.name,P.marketplace.path,P.plugin.id,t])),s("div",{hidden:P!==null,className:P?"hidden":"flex min-h-0 flex-1 flex-col",children:[e(Ie,{children:e(Jt,{title:a(`plugins.headings.${x}`),children:s("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[s("div",{className:"relative w-52 max-w-full",children:[e(ce,{className:"text-muted-foreground pointer-events-none absolute start-3 top-1/2 size-4 -translate-y-1/2"}),e(U,{className:"h-9 rounded-full ps-9 pe-9","aria-label":H,value:h,onChange:(l)=>I(l.target.value),placeholder:H}),h&&e(N,{className:"toolbox-search-clear absolute end-1 top-1/2 -translate-y-1/2",variant:"ghost",size:"icon-xs","aria-label":a("plugins.catalog.clearSearch"),onClick:()=>I(""),children:e(me,{})})]}),e(N,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground","aria-label":a("plugins.skills.refresh"),disabled:!w||n,onClick:()=>void o(void 0,{forceRefetch:!0}),children:n?e(M,{}):e(re,{})}),x==="plugins"&&e(ze,{})]})})}),(x==="plugins"||v)&&s("div",{className:"toolbox-content flex shrink-0 flex-col gap-4 pt-2 pb-6",children:[x==="plugins"&&e("p",{className:"text-muted-foreground text-sm",children:a("plugins.catalog.description")}),v&&s("div",{role:"alert",className:"text-destructive flex items-center justify-between gap-2 text-sm",children:[s("p",{children:[a("plugins.loadError.title"),": ",v]}),e(N,{size:"sm",className:"h-9",variant:"outline",disabled:n||!w,onClick:()=>void o(),children:a("plugins.loadError.retry")})]})]}),s("div",{className:"flex min-h-0 flex-1 flex-col",children:[e("div",{hidden:x!=="plugins",className:x==="plugins"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(Oe,{query:b.plugins,onOpen:A})}),e("div",{hidden:x!=="skills",className:x==="skills"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(Yt,{query:b.skills,ready:w,onOpenPlugin:A})})]})]})]})})]})}
|
|
3
|
-
export{Ls};
|
package/dist/chunk-2nb1475h.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o}from"./chunk-pdmayjan.js";import{e}from"./chunk-abgdqy92.js";import{y,Y}from"./chunk-p781sb6h.js";import{hasAccount as D,isGroupedSelect as L}from"@nyssance/codex-acp-v2/client";import{cn as H}from"cn";import{memo as W,useEffect as T,useState as F}from"react";import{HoverCard as z,HoverCardContent as O,HoverCardTrigger as U}from"@nyssance/shadcn/vega/components/ui/hover-card";import{jsx as r,jsxs as u}from"react/jsx-runtime";var d=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),A=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),I=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function f(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function V(a,t){let n=Math.min(100,a/t*100),p=n>=90?"text-destructive":n>=70?"text-foreground":"text-muted-foreground";return{pct:n,className:p}}function G(a){let t=y(a.configOptions,"model");return t===void 0?void 0:Y(t)}function et(a,t){let n=a.windowDurationMins;if(n===null)return t("usage.usage");if(n%1440===0)return t("usage.windowDays",{count:n/1440});return t("usage.windowHours",{count:Math.round(n/60)})}function P(a){let{client:t}=e(),n=o((s)=>a&&s.connection==="ready"&&D(s.agent)),[p,c]=F(null);return T(()=>{if(!n){c(null);return}let s=!0;t.readRateLimits().then((m)=>{if(s)c(m)},()=>{return});let l=t.onRateLimits((m)=>{if(s)c(m)});return()=>{s=!1,l()}},[n,t]),n?p:null}function _({session:a}){let{t}=e().host,n=y(a.configOptions,"model"),p=n!==void 0&&(L(n.options)?n.options.some((i)=>i.groupId==="chatgpt"&&i.options.some((v)=>v.value===n.currentValue)):!n.currentValue.startsWith("gateway:")&&n.options.some((i)=>i.value===n.currentValue)),c=P(p),{usage:s,lastTurnUsage:l}=a;if(s===null&&l===null)return null;let m=s&&s.size>0?V(s.used,s.size):null,x=7,b=2*Math.PI*x,h=f(l?.inputTokens),k=f(l?.outputTokens),g=f(l?.cachedReadTokens),w=f(l?.cachedWriteTokens),S=f(l?.totalTokens)||h+k+g+w,R=h+g,C=R>0?A.format(g/R):t("tokens.notAvailable"),M=[[t("tokens.input"),d.format(h)],[t("tokens.output"),d.format(k)],[t("tokens.cachedRead"),d.format(g)],[t("tokens.cachedWrite"),d.format(w)],[t("tokens.cacheHitRate"),C],[t("tokens.total"),d.format(S)]],N=G(a);return u(z,{children:[r(U,{delay:100,closeDelay:100,render:u("button",{type:"button",className:H("hover:text-foreground flex h-7 items-center gap-1.5 rounded-md px-1.5 text-xs tabular-nums",m?.className??"text-muted-foreground"),"aria-label":t("tokens.openDetails"),children:[u("svg",{viewBox:"0 0 18 18",className:"size-4","aria-hidden":"true",children:[r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),m!==null&&r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:b,strokeDashoffset:b*(1-m.pct/100),transform:"rotate(-90 9 9)"})]}),m!==null&&u("span",{children:[Math.round(m.pct),"%"]})]})}),u(O,{align:"end",side:"top",sideOffset:8,className:"w-56 p-0",children:[N!==void 0&&r("div",{className:"border-b px-3 py-2",children:r("p",{className:"text-foreground truncate text-xs font-semibold",title:N,children:N})}),u("div",{className:"flex flex-col gap-3 p-3",children:[l!==null&&u("div",{className:"flex flex-col gap-1.5",children:[r("p",{className:"text-xs font-medium",children:t("tokens.openDetails")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:M.map(([i,v])=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:i}),r("dd",{className:"text-end tabular-nums",children:v})]},i))})]}),s!==null&&s.size>0&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("tokens.context")}),r("p",{className:"text-muted-foreground text-xs tabular-nums",children:t("tokens.contextSummary",{used:d.format(s.used),limit:d.format(s.size),percent:I.format(s.used/s.size*100)})})]}),c!==null&&(c.primary!==null||c.secondary!==null)&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("usage.limits")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:[c.primary,c.secondary].filter((i)=>i!==null).map((i)=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:et(i,t)}),r("dd",{className:"text-end tabular-nums",children:t("usage.used",{percent:Math.round(Math.min(100,Math.max(0,i.usedPercent)))})})]},`${i.windowDurationMins??"window"}`))})]})]})]})]})}var fn=W(_);
|
|
2
|
-
export{et,fn};
|
package/dist/chunk-3gnn1v68.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u,po}from"./chunk-kj3t4mqf.js";import{Pn}from"./chunk-38hvm5ca.js";import{useEffect as p,useRef as P,useState as m}from"react";var ji="providers:changed",$i="providers:managed-revoked",i=(e)=>e;function xn(){return{read:()=>i(u.providersRead()),save:(e,r,t)=>i(u.providersSave({providerId:r,input:t,expectedRevision:e})),saveCustom:(e,r)=>i(u.providersSaveCustom({input:r,expectedRevision:e})),removeCustom:(e,r)=>i(u.providersRemoveCustom({providerId:r,expectedRevision:e})),test:(e)=>u.providersTest({providerId:e}),apply:()=>i(u.providersApply()),onChanged:(e)=>po[ji].listen((r)=>e(r.payload))}}function qs(){return{bind:(e)=>u.providersAccountBind({account:e}),refresh:(e,r)=>i(u.providersRefreshManaged({generation:e,accessToken:r})),clear:async()=>{await u.providersClearManaged()},onRevoked:(e)=>po[$i].listen((r)=>e(r.payload.sessionIds))}}async function bn(e){try{return await e.apply()}catch(r){if(!Pn(r))throw r;return e.read()}}function Ee(e,r=console.error){let[t,d]=m(null),a=P(r);return a.current=r,p(()=>{let n=!0,v=e.onChanged((o)=>{if(n)d((s)=>s&&s.revision>o.revision?s:o)});return v.then(()=>e.read()).then((o)=>{if(n)d((s)=>s&&s.revision>=o.revision?s:o)}).catch((o)=>{if(n)a.current(o)}),()=>{n=!1,v.then((o)=>o())}},[e]),t}
|
|
2
|
-
export{ji,$i,xn,qs,bn,Ee};
|
package/dist/chunk-3rmwcar7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o}from"./chunk-pdmayjan.js";import{wn,e,x}from"./chunk-abgdqy92.js";import{Ne}from"./chunk-ehpaw624.js";import{Bt}from"./chunk-bej9z041.js";import{Gt}from"./chunk-04frqm59.js";import{zt,Vt}from"./chunk-7ac4g54f.js";import{jt}from"./chunk-04c5k3qr.js";import{LockIcon as H,UnplugIcon as k}from"lucide-react";import{useMemo as O,useRef as S}from"react";import{Alert as C,AlertDescription as N,AlertTitle as h}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as w}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as M,EmptyDescription as P,EmptyHeader as z,EmptyTitle as B}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as r,jsxs as i}from"react/jsx-runtime";function _s({host:t,client:c,...s}){let m=O(()=>t.openDiff?t:{...t,openDiff:zt},[t]);return i(wn,{host:m,client:c,children:[r(I,{...s}),!t.openDiff&&r(Vt,{})]})}function I({session:t,header:c,overlay:s,timeline:m,composer:D,readOnlyActions:g,welcome:E,children:T,rootRef:l,search:A=!0}){let{host:d,client:R}=e(),p=S(null),b=(a)=>{if(p.current=a,typeof l==="function")l(a);else if(l)l.current=a},{t:n}=d,f=o((a)=>a.connection==="ready"),v=o((a)=>a.historyPages[t.id]?.error),y=()=>x(d,R.open(t.id,t.cwd)),u=t.items.length===0&&t.attached&&!t.restoring&&t.state==="idle";return i("div",{"data-chat-drop-zone":!0,ref:b,className:"flex h-full min-h-0 flex-col",children:[c,i("div",{className:"relative flex min-h-0 flex-1 flex-col","data-chat-content":!0,children:[A&&!u&&r(Gt,{sessionId:t.id,rootRef:p}),s,f&&!t.attached&&!t.restoring&&!t.readOnly&&r("div",{className:"mx-auto my-3 w-full max-w-4xl px-4",children:i(C,{children:[r(k,{}),r(h,{children:n("conversation.stopped")}),r(N,{children:r(w,{size:"sm",variant:"outline",onClick:y,children:n("conversation.reconnect")})})]})}),u?E??r(M,{className:"flex-1",children:i(z,{children:[r(B,{className:"text-[28px] font-normal",children:n("conversation.welcomeTitle")}),r(P,{children:n("conversation.welcomeDescription")})]})}):r(Bt,{session:t,timeline:m}),r(jt,{sessionId:t.id}),t.readOnly?r("div",{className:"mx-auto w-full max-w-3xl shrink-0 px-6 pb-5","data-readonly-composer":!0,children:i(C,{className:"flex items-center justify-between gap-4 rounded-3xl px-5 py-4",children:[i("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[r(H,{"aria-hidden":"true",className:"size-4 shrink-0"}),i("div",{className:"min-w-0 space-y-1",children:[r(h,{children:n("conversation.readOnlyTitle")}),r(N,{children:n("conversation.readOnlyDescription")}),v&&r("p",{role:"alert",className:"text-destructive break-words",children:v})]})]}),i("div",{className:"border-border flex shrink-0 items-center gap-1 border-s ps-3","data-readonly-actions":!0,children:[r(w,{size:"sm",variant:"outline",className:"text-foreground cursor-pointer disabled:cursor-not-allowed",onClick:y,disabled:!f||t.restoring,children:n(t.restoring?"conversation.restoring":"conversation.readOnlyRetry")}),g]})]})}):D??r(Ne,{session:t})]}),T]})}
|
|
2
|
-
export{_s};
|
package/dist/chunk-41yz7txv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function Fa(e,n){if(e.type||!n.type)return e;let i=n.type.split("/")[1],o=i!==void 0&&i!==""?`pasted-${Date.now()}.${i==="jpeg"?"jpg":i}`:"";return new File([e],e.name||o||`pasted-${Date.now()}`,{type:n.type})}function kt(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 St(e){return[...e].some((n)=>n.kind==="string")}var s=/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g;function Rn(e){return e.replace(s,"")}function ea(e,n){let i=0;for(let o=0;o<n;o++){let t=e.charCodeAt(o);if(t>=0&&t<=8||t===11||t===12||t>=14&&t<=31||t===127)i++}return i}function Ln(e){let{value:n,selectionStart:i,selectionEnd:o}=e,t=Rn(n);if(t===n)return t;if(e.value=t,i!==null&&o!==null){let a=Math.max(0,i-ea(n,i)),r=Math.max(0,o-ea(n,o));requestAnimationFrame(()=>{e.setSelectionRange(a,r)})}return t}
|
|
2
|
-
export{Fa,kt,St,Rn,ea,Ln};
|
package/dist/chunk-6dnb0t84.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D,Lo,$r,qn,qr,Do,Kr}from"./chunk-s8djv2dy.js";import{t,qe,w,o}from"./chunk-pdmayjan.js";import{Me}from"./chunk-v8x5atmn.js";import{createStore as M}from"@alwith/api/client";import{isText as k,nativeTurnId as Q}from"@nyssance/codex-acp-v2/client";import{jsx as y}from"react/jsx-runtime";var b=M({entries:{}});function p(i,e){b.setState((n)=>({entries:{...n.entries,[i]:e}}))}function v(i,e){let n=Q(e),a=i.items.findLast((s)=>Q(s)!==null);return!e.replayed&&n!==null&&a!==void 0&&Q(a)===n}function O(i,e){for(let n of i.items){if(n.kind!=="user"||n.echo==="pending")continue;for(let a of[...Do(n._meta),...n.content.filter(k).flatMap((s)=>Do(s._meta))])if(a.questionItemId===e)return a.answer}return}function R({sessionId:i,item:e,question:n,index:a}){let s=qe(),{t:l}=t(),m=Lo(e.id,a),c=JSON.stringify([i,m]),u=w(b,(r)=>r.entries[c]),d=o((r)=>r.sessions[i]),A=o((r)=>r.connection==="ready"),f=u?.draft??$r(n),x=d===void 0?u?.accepted:O(d,m)??u?.accepted,h=d!==void 0&&v(d,e),C=!d?.subagent&&A&&d?.attached&&!d.restoring&&!d.readOnly,g=x!==void 0?"answered":u?.skipped?"skipped":u?.pending?"submitting":!h?"closed":!C?"unavailable":"pending",E=async()=>{if(b.getState().entries[c]?.pending||g!=="pending")return;let r=s.state.sessions[i];if(r===void 0||!v(r,e)||!r.attached||r.readOnly||r.restoring)return;let S=qn(n,f);if(!S.trim())return;let q={questionItemId:m,question:n.title,answer:S};p(c,{draft:f,pending:!0});try{await s.prompt(i,[{type:"text",text:qr(q),_meta:{codex:{questionReply:q}}}]),p(c,{draft:f,accepted:S})}catch(I){p(c,{draft:f,error:I instanceof Error?I.message:String(I)})}};if(g==="closed")return null;return y(Kr,{question:n,draft:f,status:g,answer:x,error:g==="pending"?u?.error:void 0,t:l,onChange:(r)=>p(c,{draft:r}),onSkip:()=>p(c,{draft:f,skipped:!0}),onSubmit:()=>{E()}})}function ao({sessionId:i,item:e}){let n=o((s)=>s.sessions[i]),a=D(e._meta);if(n===void 0||n.subagent!==void 0||n.readOnly||!v(n,e))return y(Me,{content:e.content.some((s)=>!k(s)||s.text.trim().length>0)?e.content:a.map((s)=>({type:"text",text:s.title})),messageId:e.id,streaming:!1});return y("div",{className:"flex min-w-0 flex-col gap-3","data-async-questions":e.id,children:a.map((s,l)=>y(R,{sessionId:i,item:e,question:s,index:l},Lo(e.id,l)))})}
|
|
2
|
-
export{ao};
|
package/dist/chunk-6ehhap9k.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var Zs={allow_once:0,allow_always:1,reject_once:2,reject_always:3};function Ji(e){return[...e].toSorted((o,n)=>(Zs[o.kind]??99)-(Zs[n.kind]??99))}function qa(e){return e==="allow_once"||e==="allow_always"}function Ka(e){return e==="allow_always"||e==="reject_always"}
|
|
2
|
-
export{Zs,Ji,qa,Ka};
|
package/dist/chunk-6tj5e7fc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ze,m}from"./chunk-sgbn37kz.js";import{H}from"./chunk-8hygfx41.js";import{V}from"./chunk-ykz0h1r0.js";import{L}from"./chunk-f4h84pav.js";import{Et,rt,Rt}from"./chunk-q01vmp9m.js";import{PreviewCard as h}from"@base-ui/react/preview-card";import{cn as p}from"cn";import{LockIcon as z}from"lucide-react";import{createContext as T,useContext as _,useLayoutEffect as D,useState as I}from"react";import"@alwith/module-chat/session-list.css";import{jsx as e,jsxs as d,Fragment as j}from"react/jsx-runtime";function R(o){if(o.as==="ul"){let{as:i,className:s,...a}=o;return e("ul",{className:p("flex w-full min-w-0 flex-col gap-0.5",s),...a})}let{as:t,className:n,...r}=o;return e("div",{className:p("flex w-full min-w-0 flex-col gap-0.5",n),...r})}function v({className:o,...t}){return e("span",{"data-slot":"navigation-leading",className:p("flex size-6 shrink-0 items-center justify-center [&_.lucide]:size-3.5",o),...t})}function f({active:o,className:t,...n}){return e("button",{type:"button","data-active":o?"":void 0,"aria-current":o?"page":void 0,className:p("group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",t),...n})}function se({open:o,onOpenChange:t,tooltip:n,leading:r,label:i,count:s,countLabel:a,active:l=!1,actions:C,headerChildren:g,wrapHeader:u,onHeaderClick:b,children:P}){let y=()=>{b?.(),t(!o)},x=p(Et,"relative flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-start [corner-shape:superellipse(1.5)]"),S=d(j,{children:[r!=null&&e(v,{children:r}),g??e(H,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(Rt,{content:s!==void 0?e(rt,{className:p("text-muted-foreground justify-end text-xs opacity-70",a&&"w-auto"),children:e("span",{dir:"ltr",children:a??s})}):void 0,actions:C})})]}),k=g==null?d("div",{"data-active":l?"":void 0,title:n,className:p(x,m),onClick:y,onKeyDown:(c)=>{if(c.target!==c.currentTarget)return;if(c.key!=="Enter"&&c.key!==" ")return;c.preventDefault(),y()},children:[e("button",{type:"button","aria-expanded":o,"aria-label":typeof i==="string"?i:n,className:"focus-visible:outline-ring absolute inset-0 rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]"}),S]}):e("div",{"data-active":l?"":void 0,className:x,children:S});return d("div",{className:"text-[#1a1c1f] dark:text-white",children:[u===void 0?k:u(k),o&&e(R,{className:"mt-0.5",children:P})]})}var E=T(()=>{}),G=T(()=>{});function zn(){return _(G)}function Be(){return _(E)}function Ge({active:o=!1,state:t,interruption:n=null,leased:r=!1,media:i,title:s,hoverCard:a,onHoverCardOpenChange:l,subtitle:C,preview:g,listeningPorts:u,onOpenPort:b,accessory:P,meta:y,hint:x,actions:S,className:k,...c}){let O=d("div",{"data-slot":"navigation-session-item","data-active":o,className:p(Et,ze,"group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]",(g||u!=null&&u.length>0)&&"h-auto min-h-[var(--navigation-row-height,30px)] py-2.5",k),...c,children:[e(v,{children:t!=null?e(V,{state:t,title:n??void 0}):i}),d("span",{className:"flex min-w-0 flex-1 flex-col",children:[e(H,{className:p("leading-none",t==="done"&&"font-semibold"),children:s}),C!=null&&e(H,{className:"text-muted-foreground text-xs",children:C}),g&&e("span",{className:"text-muted-foreground mt-1.5 line-clamp-2 text-xs leading-[18px] [overflow-wrap:anywhere] break-words",children:g}),u!=null&&u.length>0&&e("span",{className:"text-muted-foreground mt-1.5 flex flex-wrap items-center gap-2 font-mono text-xs",children:u.map((N)=>b?d("button",{type:"button",className:"underline",onPointerDown:(w)=>w.stopPropagation(),onKeyDown:(w)=>w.stopPropagation(),onClick:(w)=>{w.stopPropagation(),b(N)},children:[":",N]},N):d("span",{children:[":",N]},N))})]}),d("span",{className:"relative ms-auto flex shrink-0 items-center gap-1",children:[r&&e(z,{className:"text-muted-foreground size-3"}),e(Rt,{content:P!=null?e(rt,{children:P}):y??e(rt,{}),actions:S}),x!=null&&e("span",{className:"pointer-events-none absolute end-1 top-1/2 flex h-5 min-w-5 -translate-y-1/2 items-center justify-center",children:x})]})]});if(a==null)return O;return e(M,{row:O,onOpenChange:l,children:a})}function M({row:o,children:t,onOpenChange:n}){let[r,i]=I(!1),[s,a]=I(!1),l=r||s;return D(()=>(n?.(l),()=>n?.(!1)),[l,n]),e(E.Provider,{value:a,children:e(G.Provider,{value:()=>{i(!1),a(!1)},children:e(q,{open:l,onOpenChange:i,trigger:o,children:t})})})}function q({open:o,onOpenChange:t,trigger:n,children:r,side:i="inline-end",sideOffset:s=2,align:a="start",alignOffset:l}){return L(o),d(h.Root,{open:o,onOpenChange:t,children:[e(h.Trigger,{render:n,delay:700,closeDelay:100}),e(h.Portal,{children:e(h.Positioner,{side:i,sideOffset:s,align:a,alignOffset:l,className:"isolate z-50",children:e(h.Popup,{"data-slot":"codex-hover-card",className:"bg-popover text-popover-foreground ring-foreground/10 m-px flex w-80 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-md text-sm shadow-md ring-1 outline-hidden select-none",children:e("div",{className:"flex w-full min-w-0 flex-col px-0 py-1 break-words whitespace-normal",children:r})})})})]})}
|
|
2
|
-
export{R,v,f,se,zn,Be,Ge};
|
package/dist/chunk-7sp1yqfg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-6c18ag8t.js";import{je,te,ve}from"./chunk-kv1w4jx4.js";import{useEffect as S,useMemo as f}from"react";function xa(s){let c=te((i)=>i.activityOrder),a=n((i)=>{let o=Object.values(i.runStates).filter((t)=>c.includes(t.sessionId)&&(t.state==="done"||t.state==="requires_action")&&je(i,t.sessionId)).map((t)=>[t.sessionId,JSON.stringify([t.state,t.since,t.interruption])]);return JSON.stringify(o)}),e=f(()=>new Map(JSON.parse(a)),[a]),u=te((i)=>i.activitySeen),r=ve();return S(()=>{if(s==="activity")r({activitySeen:e})},[s,e,r]),s!=="activity"&&[...e].some(([i,o])=>u.get(i)!==o)}
|
|
2
|
-
export{xa};
|
package/dist/chunk-81jejgvs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ae}from"./chunk-ffs5nkt0.js";import{r,J,pn}from"./chunk-dtgbgwby.js";var Gi=5000;function Ye(t){return"pastedText"in t}function vt(t,e,p){let n=(a,o)=>{for(let[i,x]of r){if(!x.attachments.some((s)=>s.id===e.id))continue;J(i,(s)=>s.map((d)=>d.id===e.id?{...e,url:o===void 0?"":Ae(o),pastedText:{text:e.pastedText.text,status:a}}:d))}};if(!r.get(t)?.attachments.some((a)=>a.id===e.id))return;n("pending"),pn(e.id,p("pasted-text.txt",e.pastedText.text).then((a)=>n("ready",a)).catch(()=>n("error")))}function un(t,e,p,n){if(t.defaultPrevented||t.currentTarget.disabled)return;if([...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/")))return;let a=t.clipboardData.getData("text/plain");if(a.length<Gi)return;t.preventDefault(),t.stopPropagation();let o={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:p,url:"",pastedText:{text:a,status:"pending"}};J(e,(i)=>[...i,o]),vt(e,o,n)}
|
|
2
|
-
export{Gi,Ye,vt,un};
|
package/dist/chunk-85tzkdsj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{M}from"./chunk-pxv38ttf.js";import{o}from"./chunk-pdmayjan.js";import{mt}from"./chunk-c8wdf20g.js";import{y,Y}from"./chunk-p781sb6h.js";import{e}from"./chunk-abgdqy92.js";import{Jn}from"./chunk-bane0xc8.js";import{ChevronDownIcon as A,ChevronRightIcon as G,GitBranchIcon as X,Loader2Icon as F,SquareIcon as Z}from"lucide-react";import{useCallback as ss,useEffect as es,useId as J,useRef as L,useState as N}from"react";import{Button as C}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as t,jsxs as p,Fragment as as}from"react/jsx-runtime";function Zn(s,l){let d=o((u)=>u.sessions),r=o((u)=>u.actions),[S,m]=N(()=>new Set);return(u)=>{let c=l?.(u)??null,a=Jn(s.id,u,d,r,s);if(a.length===0)return c;let x=`${s.id}:${u.key}`;return{active:c?.active===!0||a.some((i)=>i.status==="running"||i.status==="requires_action"),defaultExpanded:c?.defaultExpanded===!0||S.has(x),content:p(as,{children:[t(Jo,{sessionId:s.id,turn:u,parent:s,tasks:a,onExpand:()=>m((i)=>i.has(x)?i:new Set([...i,x]))}),c?.content]})}}}function Jo({sessionId:s,turn:l,parent:d,tasks:r,onExpand:S}){let{host:m}=e(),u=o((n)=>n.sessions),c=o((n)=>n.actions),a=r??Jn(s,l,u,c,d),x=a.some((n)=>n.status==="running"),i=a.some((n)=>n.status==="running"||n.status==="requires_action"),[f,k]=M(`subagents:${s}:${l.key}`,i,!0),w=J();if(a.length===0)return null;let g=new Map;for(let n of a)g.set(n.status,(g.get(n.status)??0)+1);let v=[...g].map(([n,E])=>`${m.t(`subagents.${n}`)} ${E}`).join(" · ");return p("section",{"data-subagent-sessions":!0,"data-subagent-turn":l.key,"aria-label":m.t("subagents.group"),className:"my-2 min-w-0",children:[p(C,{variant:"ghost",size:"sm",className:"text-muted-foreground h-auto min-h-8 max-w-full justify-start gap-2 text-xs","aria-expanded":f,"aria-controls":w,onClick:()=>{if(!f)S?.();k(!f)},children:[f?t(A,{className:"size-3.5 shrink-0"}):t(G,{className:"size-3.5 shrink-0"}),x?t(F,{className:"size-3.5 shrink-0 motion-safe:animate-spin","aria-hidden":"true"}):t(X,{className:"size-3.5 shrink-0"}),p("span",{className:"shrink-0",children:[m.t("subagents.group")," · ",a.length]}),t("span",{className:"truncate",role:"status",children:v})]}),t("div",{id:w,hidden:!f,className:"border-border ms-3 min-w-0 border-s ps-2",children:a.map((n)=>t(ts,{task:n,cwd:d?.cwd??u[s]?.cwd??"",visible:f,stateKey:`${s}:${l.key}:${n.key}`,onRead:()=>{S?.(),k(!0)}},n.key))})]})}function O(s,l){if(!l)return s;let d=new Map(s.items.map((r)=>[`${r.kind}:${r.id}`,r]));for(let r of l.items)d.set(`${r.kind}:${r.id}`,r);return{...s,...l,items:[...d.values()]}}function ts({task:s,cwd:l,stateKey:d,visible:r,onRead:S}){let{client:m,host:u}=e(),{t:c}=u,a=s.session,x=o((h)=>h.connection==="ready"),[i,f]=M(`subagent:${d}`,!1),[k,w]=N(!1),[g,v]=N(null),[n,E]=N(null),[I,Q]=N(null),[R,P]=N(!1),B=L(!1),_=L(!1),j=J(),q=a&&y(a.configOptions,"model"),z=s.title??c("subagents.untitled"),W=n?O(n,a):a,U=x&&a?.attached&&a.subagent?.capabilities?.cancel!=null&&(s.status==="running"||s.status==="requires_action"),H=s.threadId,D=a?.cwd??l,T=ss(async(h)=>{if(!m.readSubagentHistory||H===null||B.current)return;_.current=!0,B.current=!0,P(!0),v(null);try{let b=await m.readSubagentHistory(H,D,h);E((K)=>K===null?b.session:O(b.session,K)),Q(b.cursor)}catch(b){v(b instanceof Error?b.message:String(b))}finally{B.current=!1,P(!1)}},[m,H,D]);es(()=>{if(r&&i&&!_.current)T(null)},[r,i,T]);let V=async()=>{if(!a)throw Error("A live child session is required for cancellation");w(!0),v(null);try{await m.cancel(a.id)}catch(h){v(h instanceof Error?h.message:String(h))}finally{w(!1)}};return p("section",{"aria-label":z,className:"min-w-0",children:[p("div",{className:"flex min-w-0 items-center gap-1",children:[p(C,{variant:"ghost",size:"sm",className:"min-w-0 flex-1 justify-start gap-2","aria-label":`${z} · ${c(`subagents.${s.status}`)}`,"aria-expanded":i,"aria-controls":j,onClick:()=>{if(!i)S();f(!i)},children:[i?t(A,{className:"size-3.5 shrink-0"}):t(G,{className:"size-3.5 shrink-0"}),t("span",{className:"truncate",children:z}),t("span",{className:"text-muted-foreground ms-auto shrink-0 text-xs",role:"status",children:c(`subagents.${s.status}`)})]}),U&&t(C,{variant:"ghost",size:"icon-sm",disabled:k,"aria-label":c("subagents.cancel",{name:z}),onClick:()=>{V()},children:k?t(F,{className:"size-3.5 animate-spin"}):t(Z,{className:"size-3.5"})})]}),g&&!i&&t("p",{role:"alert",className:"text-destructive px-2 py-1 text-xs",children:g}),p("div",{id:j,hidden:!i,className:"min-w-0 ps-4",children:[(s.description||q)&&p("div",{className:"text-muted-foreground flex min-w-0 items-center gap-2 px-2 py-1 text-xs",children:[t("span",{className:"min-w-0 flex-1 truncate",title:s.description??void 0,children:s.description}),q&&t("span",{className:"shrink-0",children:Y(q)})]}),g&&p("div",{role:"alert",className:"text-destructive px-2 py-1 text-xs",children:[g," ",s.threadId&&t(C,{variant:"ghost",size:"sm",onClick:()=>{T(n===null?null:I)},children:c("timeline.retry")})]}),R&&t("p",{role:"status",className:"text-muted-foreground px-2 py-2 text-xs",children:c("timeline.loadingEarlier")}),I&&t(C,{variant:"ghost",size:"sm",disabled:R,onClick:()=>{T(I)},children:c("timeline.loadEarlier")}),r&&i&&(W&&W.items.length>0?t("div",{className:"flex max-h-72 min-h-0 flex-col",children:t(ns,{session:W})}):!R&&!g&&t("p",{className:"text-muted-foreground px-2 py-3 text-xs",children:c("subagents.noMessages")}))]})]})}function ns({session:s}){let{client:l,host:d}=e(),r=Zn(s);return t(mt,{session:s,client:l,host:d,turnWork:r})}
|
|
2
|
-
export{Zn,Jo};
|
package/dist/chunk-ayademz2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function*Xn(n,e){if(e.length===0)return;let r=new RegExp(e.replaceAll(/[.*+?^{}()|[\]\\$]/g,String.raw`\$&`),"giu");for(let t of n.matchAll(r))yield{start:t.index,end:t.index+t[0].length}}function ni(n,e){if(e.length===0)return[];let r=[];for(let{turnKey:t,segments:o}of n){let c=0;for(let s of o)for(let a of Xn(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
|
|
2
|
-
export{Xn,ni};
|
package/dist/chunk-b42vv8f2.js
DELETED
package/dist/chunk-bfwft1b8.js
DELETED
package/dist/chunk-c0mpr4dh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{m}from"./chunk-sgbn37kz.js";import{a,n}from"./chunk-6c18ag8t.js";import{R,v,f,se}from"./chunk-6tj5e7fc.js";import{N,ue,Ki}from"./chunk-een4e2tr.js";import{ht}from"./chunk-1vtvcar6.js";import{G,oe}from"./chunk-n8v6cdq3.js";import{Te,de}from"./chunk-f6zpqrg3.js";import{closestCorners as ge,DndContext as fe,KeyboardSensor as Ce,PointerSensor as ye,useSensor as V,useSensors as Se}from"@dnd-kit/core";import{SortableContext as W,sortableKeyboardCoordinates as De,useSortable as le,verticalListSortingStrategy as X}from"@dnd-kit/sortable";import{CSS as re}from"@dnd-kit/utilities";import{cn as F}from"cn";import{BrushCleaningIcon as we,MessageSquareIcon as ve,MoreHorizontalIcon as Ne,PencilIcon as Ie,PlusIcon as ae,StarIcon as he,Trash2Icon as ce}from"lucide-react";import{useEffect as be,useMemo as xe,useState as L}from"react";import{Button as D}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as Y,DialogContent as Z,DialogDescription as ee,DialogFooter as te,DialogHeader as ne,DialogTitle as ie}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as Me,DropdownMenuContent as Ee,DropdownMenuGroup as ke,DropdownMenuItem as H,DropdownMenuTrigger as Le}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Re}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as s,Fragment as ze}from"react/jsx-runtime";function Pe({collectionId:l,sessionId:C,children:x}){let{attributes:w,listeners:I,setNodeRef:i,transform:p,transition:u,isDragging:M}=le({id:JSON.stringify([l,C]),data:{type:"session",collectionId:l,sessionId:C}});return e("div",{ref:i,style:{transform:re.Transform.toString(p),transition:u},className:F("w-full min-w-0",M&&"opacity-50"),...w,...I,role:"group",children:x})}function Be({collection:l,children:C,onEdit:x,onConfirm:w,onNewChat:I}){let{t:i}=N(),p=de(),u=ue(),{attributes:M,listeners:d,setNodeRef:h,transform:P,transition:T,isDragging:z}=le({id:l.id,disabled:{draggable:l.id===G,droppable:!1},data:{type:"collection"}});return e("div",{ref:h,style:{transform:re.Transform.toString(P),transition:T},className:F("w-full min-w-0",z&&"opacity-50"),children:e(se,{open:!l.collapsed,onOpenChange:(c)=>u(p({type:"collapse",id:l.id,collapsed:!c})),label:oe(l,i),count:l.sessionIds.length,leading:l.id===G?e(he,{className:"size-3.5"}):e(ht,{emoji:l.emoji,onChange:(c)=>u(p({type:"emoji",id:l.id,emoji:c}))}),wrapHeader:(c)=>e("div",{...M,...d,role:"group",children:c}),actions:s(Me,{children:[e(Le,{onClick:(c)=>c.stopPropagation(),onPointerDown:(c)=>c.stopPropagation(),render:e(D,{variant:"ghost",size:"icon",className:"size-5","aria-label":i("collection.more",{name:oe(l,i)}),children:e(Ne,{className:"size-3.5"})})}),e(Ee,{children:s(ke,{children:[l.id!==G&&s(H,{onClick:x,children:[e(Ie,{}),i("collection.rename")]}),s(H,{onClick:I,children:[e(ae,{}),i("collection.newChat")]}),s(H,{onClick:()=>w("clear"),children:[e(we,{}),i("collection.clearCollection")]}),l.id!==G&&s(H,{variant:"destructive",onClick:()=>w("delete"),children:[e(ce,{}),i("collection.deleteCollection")]})]})})]}),children:C})})}function He({children:l}){return e("div",{className:"min-h-0 flex-1 overflow-y-auto ps-2 pe-0 pb-1",children:l})}function Os({renderRow:l,onSelect:C,onNewChat:x,Scroll:w=He}){let I=N(),{t:i}=I,p=de(),u=ue(),M=a(),{collections:d,order:h}=Te(),P=n((o)=>o.sessionList),T=n((o)=>o.archivedSessions),z=n((o)=>o.sessionListLoaded),c=n((o)=>o.sessionListError),U=xe(()=>new Map([...T,...P].map((o)=>[o.sessionId,o])),[T,P]),_=I.isMac??Ki(),[y,E]=L(null),[k,K]=L(""),[q,O]=L(""),[S,B]=L(null),[g,J]=L(!1),me=Se(V(ye,{activationConstraint:{distance:5}}),V(Ce,{coordinateGetter:De})),j=h.flatMap((o)=>d[o].collapsed?[]:d[o].sessionIds.flatMap((t)=>{let r=U.get(t);return r&&!r.archived?[r]:[]}));be(()=>{let o=(t)=>{if(t.defaultPrevented||t.isComposing||t.repeat||t.shiftKey||t.altKey)return;if(_?!t.metaKey||t.ctrlKey:!t.ctrlKey||t.metaKey)return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;if(t.target instanceof HTMLElement&&(t.target.isContentEditable||t.target.closest("input,textarea,[role=dialog],[role=menu]")))return;let r=Number(t.key)-1;if(!Number.isInteger(r)||r<0||r>8||!j[r])return;t.preventDefault(),C(j[r])};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[j,_,C]);let pe=({active:o,over:t})=>{if(t===null)return;let r=o.data.current,b=t.data.current;if(r?.type==="session"&&b!==void 0){let Q=b.type==="session"?String(b.collectionId):String(t.id);u(p({type:"move",sourceCollectionId:String(r.collectionId),collectionId:Q,sessionId:String(r.sessionId),index:b.type==="session"?d[Q].sessionIds.indexOf(String(b.sessionId)):void 0}))}else if(r?.type==="collection"&&b?.type==="collection"&&String(t.id)!==G)u(p({type:"reorder",id:String(o.id),index:h.indexOf(String(t.id))}))},A=(o,t)=>{J(!0),u(o.then(t).finally(()=>J(!1)))};return s(ze,{children:[e(w,{children:s(R,{children:[s(f,{className:F(m,"font-normal"),onClick:()=>{E("new"),K(""),O("")},children:[e(v,{children:e(ae,{})}),e("span",{children:i("collection.newCollection")})]}),c&&s("div",{className:"text-muted-foreground px-2 text-sm",children:[e("p",{role:"alert",children:c}),e(D,{variant:"ghost",onClick:()=>u(M.listSessions({reset:!0})),children:i("collection.retry")})]}),e(fe,{sensors:me,collisionDetection:ge,onDragEnd:pe,children:e(W,{items:h,strategy:X,children:e(R,{children:h.map((o)=>e(Be,{collection:d[o],onNewChat:()=>x(o),onEdit:()=>{E(o),K(d[o].name),O(d[o].emoji??"")},onConfirm:(t)=>B({id:o,type:t}),children:e(W,{items:d[o].sessionIds.map((t)=>JSON.stringify([o,t])),strategy:X,children:d[o].sessionIds.map((t)=>{let r=U.get(t);if(r?.archived)return null;if(!r)return z?s("div",{className:"text-muted-foreground flex h-[var(--navigation-row-height)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-sm font-normal",children:[e(v,{children:e(ve,{className:"size-3.5"})}),e("span",{className:"min-w-0 flex-1 truncate",children:i("collection.unavailable")}),e(D,{variant:"ghost",size:"icon",className:"size-5 [&_svg]:size-3.5","aria-label":i("collection.removeFromGroup"),onClick:()=>u(p({type:"remove",sessionId:t,collectionId:o})),children:e(ce,{})})]},t):null;return e(Pe,{collectionId:o,sessionId:t,children:l(r,()=>{},o)},t)})})},o))})})})]})}),e(Y,{open:y!==null,onOpenChange:(o)=>{if(!o&&!g)E(null)},children:s(Z,{children:[s(ne,{children:[e(ie,{children:i(y==="new"?"collection.newCollection":"collection.rename")}),e(ee,{children:i("collection.collectionName")})]}),s("form",{onSubmit:(o)=>{if(o.preventDefault(),y===null||!k.trim()||g)return;let t=y==="new"?`collection-${crypto.randomUUID()}`:y;A(p([y==="new"?{type:"create",id:t,name:k}:{type:"rename",id:t,name:k},{type:"emoji",id:t,emoji:q}]),()=>E(null))},className:"flex flex-col gap-3",children:[e(Re,{autoFocus:!0,"aria-label":i("collection.collectionName"),value:k,onChange:(o)=>K(o.target.value),disabled:g}),y!=="new"&&e(ht,{emoji:q,onChange:O}),s(te,{children:[e(D,{type:"button",variant:"outline",disabled:g,onClick:()=>E(null),children:i("collection.cancel")}),e(D,{type:"submit",disabled:g||!k.trim(),children:i("collection.confirm")})]})]})]})}),e(Y,{open:S!==null,onOpenChange:(o)=>{if(!o&&!g)B(null)},children:s(Z,{children:[s(ne,{children:[e(ie,{children:i(S?.type==="delete"?"collection.deleteCollection":"collection.clearCollection")}),e(ee,{children:i("collection.confirmCollectionChange",{name:S===null?"":oe(d[S.id],i)})})]}),s(te,{children:[e(D,{variant:"outline",disabled:g,onClick:()=>B(null),children:i("collection.cancel")}),e(D,{disabled:g,onClick:()=>{if(S!==null)A(p({type:S.type,id:S.id}),()=>B(null))},children:i("collection.confirm")})]})]})})]})}
|
|
2
|
-
export{Os};
|
package/dist/chunk-een4e2tr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Br}from"./chunk-6c18ag8t.js";import{createContext as r,useContext as i}from"react";import{jsx as s}from"react/jsx-runtime";var n=r(null);function Ks({host:o,children:t}){return s(n,{value:o,children:t})}function N(){let o=i(n),e={...Br(),...o};if(e.t===void 0||e.i18n===void 0)throw Error("Collection host is missing; mount collections inside SessionListProvider or CollectionHostProvider");return e}function qi(o,t){t.catch((e)=>{if(o.reportError)o.reportError(e);else console.error(e)})}function ue(){let o=N();return(t)=>qi(o,t)}function Ki(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}
|
|
2
|
-
export{Ks,N,qi,ue,Ki};
|
package/dist/chunk-ehpaw624.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Ar}from"./chunk-86821qec.js";import{Mr}from"./chunk-n3sm0834.js";import{ns}from"./chunk-rx84h0c2.js";import{p,_,Ct}from"./chunk-qdcznn2t.js";import{Fe}from"./chunk-gyw21vnb.js";import{br,Cr,wr,kr,Sr}from"./chunk-8y706gz3.js";import{ir,rr}from"./chunk-g7cc7gdn.js";import{U}from"./chunk-2cfhvb3k.js";import{mo}from"./chunk-r8expjyy.js";import{fo}from"./chunk-1gv49jt9.js";import{o}from"./chunk-pdmayjan.js";import{e}from"./chunk-abgdqy92.js";import{uo,Vi}from"./chunk-e7ndpy02.js";import{co}from"./chunk-y6p8xspr.js";import{r,zi,J,mn}from"./chunk-dtgbgwby.js";import{cn}from"./chunk-rkejggyx.js";import{Ye,un}from"./chunk-81jejgvs.js";import{on,sn}from"./chunk-jq6qs3s6.js";import{Oi}from"./chunk-gdavg2hq.js";import{gn}from"./chunk-1hmt6w4w.js";import{Bi}from"./chunk-jm6y0edw.js";import{dn}from"./chunk-wjd2hpnd.js";import{an}from"./chunk-rtbpfasb.js";import{Hi}from"./chunk-x20dy83s.js";import{Ui}from"./chunk-23r426sm.js";import{fn}from"./chunk-2nb1475h.js";import{hasFuzzyFileSearch as Kt}from"@nyssance/codex-acp-v2/client";import{useCallback as w,useEffect as jt,useLayoutEffect as rt,useMemo as lt,useRef as k,useState as M}from"react";import{jsx as m,jsxs as R}from"react/jsx-runtime";var qt=["image/png","image/jpeg","image/webp","image/gif"],pt=[];async function Gt(n){let T=await(await fetch(n.url)).blob();return new Promise((I,S)=>{let E=new FileReader;E.onerror=()=>S(E.error),E.onload=()=>{let q=E.result;I(q.slice(q.indexOf(",")+1))},E.readAsDataURL(T)})}function Ne({session:n,onSubmit:T,onShellCommand:I,onHandOff:S,modelSelector:E,modelMenu:q,inputHeader:st,actions:Mt,leadingTools:Rt,agentControls:G=!0,placeholder:Et,children:Dt,attachmentPolicy:Nt,predictions:kt=!0,disabled:St=!1,preparing:mt=!1,allowPendingInput:Ft=!1}){let{host:F,client:O}=e(),{t:g}=F,B=w((t)=>{if(F.reportError)F.reportError(t);else console.error(t)},[F]),[dt,H]=M(()=>({text:r.get(n.id)?.text??"",revision:0})),{text:v}=dt,[C,Ot]=M(()=>r.get(n.id)?.attachments??pt),[y,Q]=M(()=>r.get(n.id)?.mentions??[]),[d,L]=M(()=>r.get(n.id)?.apps??[]),[ut,K]=M(()=>(r.get(n.id)?.apps?.length??0)>0||U(v,n.commands.map((t)=>t.name)).length>0),W=k(void 0),z=k(void 0);rt(()=>{if(d.length>0)K(!0)},[d.length]);let nt=C.some((t)=>Ye(t)&&t.pastedText.status!=="ready"),[D,ft]=M(!1),[Y,_t]=M(!1),[ot,Lt]=M(!1),it=k(null),f=k(null),ht=k(null),c=k(dt),P=w((t)=>{ht.current?.(),c.current={text:t,revision:c.current.revision+1},H(c.current)},[]),gt=w((t)=>{let i=f.current;if(i?.insertApplication){i.insertApplication(t);return}let a=c.current.text,u=i?.getTextarea()?.selectionStart??a.length;z.current={text:a,apps:[]},W.current=u+1,K(!0),P(a),L((l)=>l.some((h)=>h.id===t.id)?l:[...l,{...t,offset:u}])},[P]),Wt=w((t)=>{let i=f.current;if(i?.insertInvocation){i.insertInvocation(t);return}let a=c.current.text,u=i?.getTextarea(),l=u?.selectionStart??a.length,h=u?.selectionEnd??l,ct=`${a.slice(0,l)}${t} ${a.slice(h)}`;z.current={text:a,apps:[]},W.current=l+t.length+1,P(ct),K(!0)},[P]),xt=w(()=>(f.current?.focus(),f.current?.getTextarea()??null),[]),$t=Hi(n,P,L,d.length>0||y.length>0||C.length>0),yt=lt(()=>({read:()=>{let i=f.current?.getTextarea(),a=i===null||i===void 0?[c.current.text.length,c.current.text.length]:[i.selectionStart,i.selectionEnd];return{target:n.id,...c.current,selection:a}},compareAndSet(i,a,u){if(f.current?.isComposing())return null;if(i.target!==n.id||i.revision!==c.current.revision)return null;c.current={text:a,revision:c.current.revision+1},H(c.current);let l=f.current?.getTextarea();if(l!==null&&l!==void 0)l.value=a,l.setSelectionRange(u[0],u[1]);return{target:n.id,...c.current,selection:u}}}),[n.id]),j=k(null),bt=w((t)=>(j.current=t,()=>{if(j.current===t)j.current=null}),[]),V=n.state!=="idle",x=I!==void 0&&d.length===0&&v.startsWith("!"),X=(ut||d.length>0)&&!x,b=!St&&!mt&&n.attached&&!n.restoring&&!n.readOnly,N=!n.readOnly&&(Ft||b),Z=an(n,b&&!D&&!Y&&!nt&&!ot,v.length>0||C.length>0||y.length>0||d.length>0,kt&&!x),vt=Z.invalidate;rt(()=>{r.set(n.id,{text:v,attachments:C,mentions:y,...d.length>0?{apps:d}:{},modelId:r.get(n.id)?.modelId??null})},[n.id,v,C,y,d]),rt(()=>zi(n.id,Ot),[n.id]),rt(()=>mn(n.id,(t)=>{if(!N||D)throw Error("The composer cannot take text now; try again later");if(v.length||C.length||y.length||d.length)throw Error("The composer already has a draft; send or clear it first");P(t)}),[n.id,N,D,v,C,y,d,P]);let Pt=o((t)=>Kt(t.agent)),Ut=lt(()=>Pt&&b?async(t)=>cn((await O.fuzzyFileSearch({query:t,roots:[n.cwd],cancellationToken:null})).files):void 0,[O,Pt,b,n.cwd]),at=w((t)=>{Q((i)=>i.includes(t)?i:[...i,t])},[]);jt(()=>{f.current?.focus()},[]);let It=w(async({text:t,files:i})=>{let a=I!==void 0&&d.length===0&&t.startsWith("!")?t.slice(1):null;if(a!==null){if(a.trim().length===0)return;if(i.length||y.length||d.length)throw Error("Shell commands cannot include file references or attachments");if(n.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let u=t.trim();if(u.length===0&&i.length===0&&y.length===0&&d.length===0)return;let l=j.current;ft(!0);let h=r.get(n.id),ct=c.current.revision,tt=null;try{let A=d.map((s)=>({type:"resource_link",name:s.name,uri:`app://${s.id}`}));for(let s of y){let et={kind:"file",absPath:s};A.push({type:"resource_link",uri:on(et),name:sn(et)})}let Tt=ns(u,d);if(Tt.length>0)A.push({type:"text",text:Tt});for(let s of i)if(Ye(s)){if(s.pastedText.status!=="ready")throw Error("Text attachment is not ready");A.push({type:"resource_link",uri:s.url,name:s.filename??"pasted-text.txt"})}else A.push({type:"image",data:await Gt(s),mimeType:s.mediaType});if(c.current.revision===ct&&r.get(n.id)===h)c.current={text:"",revision:c.current.revision+1},tt=c.current.revision,H(c.current),Q([]),L([]),W.current=void 0,z.current=void 0,J(n.id,()=>pt),r.set(n.id,{text:"",attachments:pt,mentions:[],apps:[],modelId:h?.modelId??null}),f.current?.resetHeight();if(a!==null&&I)await I(a);else if(T)if(l===null)await T(A);else await T(A,(s)=>{if(l.signal.aborted||j.current!==l)return;l.accept(s),S?.(n.id,s)});else if(l===null)await O.prompt(n.id,A);else{let s=await O.prompt(n.id,A);l.accept(s)}vt();for(let s of h?.attachments??[])if(s.url.startsWith("blob:")&&!r.get(n.id)?.attachments.some((et)=>et.id===s.id))URL.revokeObjectURL(s.url)}catch(A){if(h&&tt!==null&&c.current.revision===tt&&r.get(n.id)?.attachments.length===0&&r.get(n.id)?.mentions.length===0&&!r.get(n.id)?.apps?.length)c.current={text:h.text,revision:tt+1},H(c.current),Q(h.mentions),L(h.apps??[]),r.set(n.id,h),J(n.id,()=>h.attachments);throw A}finally{ft(!1),f.current?.focus()}},[O,n.id,n.state,y,d,T,I,S,vt]),zt=()=>{O.cancel(n.id).catch(B)},Bt=w((t)=>{let i=t.code==="max_total_size"?Object.assign(Error(g("composer.imageTooLargeTitle")),{description:g("composer.imageTooLargeDescription",{mb:Fe})}):Object.assign(Error(g("composer.unsupportedAttachmentTitle")),{description:g("composer.unsupportedAttachmentDescription")});B(i)},[B,g]),Ht=lt(()=>({session:n,ready:b,inputReady:N,sending:D,textareaRef:f,draft:yt,interruptRef:ht,observeReceipts:bt,addMention:at,setAdding:_t,shellMode:x,handsFree:!x&&(T===void 0||S!==void 0)}),[n,b,N,D,yt,bt,at,T,S,x]),At=F.writeTextAttachment,wt={className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,onKeyDown:$t,bashMode:I!==void 0,disabled:!N,"aria-label":g("composer.placeholder"),placeholder:x?"! command":Z.text||Et||(V?g("composer.steerPlaceholder"):g("composer.placeholder")),onPasteCapture:(t)=>{if(!X&&!x&&!t.currentTarget.disabled&&![...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/"))){let i=Ct(t.clipboardData);if(i?.apps.length){t.preventDefault();let a=t.currentTarget,u=p(i),l=_([...a.value.slice(0,a.selectionStart).split(""),...u,...a.value.slice(a.selectionEnd).split("")]);z.current={text:v,apps:[]},W.current=a.selectionStart+u.length,K(!0),L(l.apps),P(l.text);return}}if(At)un(t,n.id,g("composer.pastedTextFilename"),At)}};return m(co,{value:Ht,children:m("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:R("div",{className:"relative",children:[st&&m("div",{"data-chat-input-header":!0,className:"bg-sidebar dark:bg-foreground/3 relative top-1 z-0 mx-[13px] -mb-[18px] flex min-w-0 items-center gap-2 overflow-hidden rounded-t-2xl px-1.5 pt-1.5 pb-[27px]",children:st}),m(Ar,{attachmentPolicy:Nt,value:v,revision:c.current.revision,onValueChange:P,onSubmittedClear:()=>{c.current={text:"",revision:c.current.revision+1},H(c.current)},attachments:C,onAttachmentsChange:(t)=>J(n.id,()=>t),children:R("div",{ref:it,className:"relative",children:[G&&!ot&&m(Mr,{bashMode:I!==void 0,handleRef:f,commands:n.commands,renderSlashMenu:(t)=>m(uo,{anchorRef:it,commands:n.commands,query:t.query,includeAttachment:!1,disabled:!N,agentDisabled:!b||x,open:!0,onClose:t.close,onCommand:(i)=>t.replaceQuery(()=>Wt(i.startsWith("$")?i:`/${i}`)),onApp:(i)=>t.replaceQuery(()=>gt(i)),focusInput:xt}),searchFiles:Ut,onMention:at,onSearchError:B,emptyLabel:g("composer.noCommands"),fileStatusLabels:{loading:g("composer.searchingFiles"),empty:g("composer.noMatchingFiles")}},X?"inline":"textarea"),R(br,{"data-shell-mode":x||void 0,bashMode:I!==void 0,globalDrop:!0,multiple:!0,accept:qt.join(","),onError:Bt,onSubmit:It,onSubmitAsync:It,onSubmitError:B,canSubmit:()=>b&&!D&&!Y&&!nt&&(!x||!V&&v.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[Dt,R(wr,{className:"px-3 pt-3 pb-0 empty:hidden",children:[Y&&m("span",{role:"status",className:"text-muted-foreground text-xs",children:g("composer.addingFiles")}),m(Oi,{mentions:y,onRemove:(t)=>Q((i)=>i.filter((a)=>a!==t))}),m(rr,{children:(t)=>Ye(t)?m(Bi,{data:t,sessionId:n.id}):m(ir,{data:t,t:g})})]}),R(Cr,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(t)=>{if(!Z.text||f.current?.isComposing()||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||t.target!==f.current?.getTextarea())return;if(t.key==="Tab")t.preventDefault(),t.stopPropagation(),P(Z.text)},children:[x&&m("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),X?m(mo,{...wt,skillIcon:F.skillIcon,skillNames:n.commands.map((t)=>t.name),applications:d,onApplicationsChange:L,initialCaret:W.current,initialUndo:z.current}):m(fo,{...wt,autoFocus:ut&&x})]}),m(kr,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:R("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[R("div",{className:"flex min-w-0 items-center gap-[5px]",children:[m(Vi,{anchorRef:it,commands:n.commands,disabled:!N,agentDisabled:!b||x,agentControls:G,open:ot,onOpenChange:Lt,focusInput:xt,onCommand:(t)=>{let i=c.current.text,a=i.length===0||i.endsWith(`
|
|
2
|
-
`)?i:`${i}
|
|
3
|
-
`,u=t.startsWith("$")?t:`/${t}`,l=`${a}${u} `;if(!X)z.current={text:i,apps:[]},W.current=l.length,K(!0);P(l),requestAnimationFrame(()=>{let h=f.current?.getTextarea();h?.focus(),h?.setSelectionRange(l.length,l.length)})},onApp:gt}),Rt,G&&m(dn,{sessionId:n.id,options:n.configOptions,disabled:!b})]}),R(Sr,{className:"w-full min-w-0 items-center justify-end gap-1",children:[G&&m(fn,{session:n}),E??m(gn,{...q,sessionId:n.id,options:n.configOptions,disabled:!b}),Mt,m(Ui,{active:V,sending:D||mt||Y,ready:b&&!nt&&(!x||!V&&v.slice(1).trim().length>0),hasMentions:y.length>0||d.length>0,onStop:zt})]})]})})]})]})})]})})})}
|
|
4
|
-
export{Ne};
|
package/dist/chunk-f7m5zdkp.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{me}from"./chunk-29s4mnfw.js";import{b}from"./chunk-3g9qb7vq.js";import{w}from"./chunk-pdmayjan.js";import{ln}from"./chunk-y6p8xspr.js";import{Ne}from"./chunk-ehpaw624.js";import{xn}from"./chunk-3gnn1v68.js";import{Le}from"./chunk-wnydsth6.js";import{Re}from"./chunk-vvkp0jqa.js";import{yn}from"./chunk-npvcy4tw.js";import{hn,vn}from"./chunk-gnctm097.js";import{jsx as t,jsxs as d,Fragment as f}from"react/jsx-runtime";var n;function C(){return n??=xn(),n}function P(){let o=ln();return t(vn,{sessionId:o.session.id,enabled:o.inputReady&&!o.sending&&!o.shellMode,onMention:o.addMention,onBusyChange:o.setAdding})}function zs({client:o,providers:m,catalog:i,shellCommands:p=!0,modelMenu:l,children:a,...s}){let{session:e}=s,c=w(o.store,(r)=>r.modelRecovery[e.id]??!1);return d(f,{children:[c&&!me(e.error?.error)&&t(yn,{client:o,session:e,providers:m??C(),catalog:i},e.id),d(Ne,{modelMenu:l??{defaultGroup:b,catalog:(r)=>Le(r,i),headerAction:t(Re,{})},...s,attachmentPolicy:hn,onShellCommand:p?(r)=>o.executeShell(e.id,r):void 0,children:[t(P,{}),a]})]})}
|
|
2
|
-
export{zs};
|
package/dist/chunk-gyw21vnb.js
DELETED
package/dist/chunk-jq6qs3s6.js
DELETED
package/dist/chunk-k99r1r38.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s,a,n,h}from"./chunk-6c18ag8t.js";import{V}from"./chunk-ykz0h1r0.js";import{R,se,Ge}from"./chunk-6tj5e7fc.js";import{je,te,ve}from"./chunk-kv1w4jx4.js";import{Or}from"./chunk-1a56svgj.js";import{Ve}from"./chunk-heqa4swe.js";import{Ue}from"./chunk-a71j2n86.js";import{Oe}from"./chunk-r8pm74zf.js";import{jn}from"./chunk-4p0zk3mj.js";import{Dr}from"./chunk-ayhxrzsq.js";import{ActivityIcon as O}from"lucide-react";import{useEffect as E,useMemo as C}from"react";import{Kbd as G}from"@nyssance/shadcn/vega/components/ui/kbd";import{jsx as c,jsxs as P,Fragment as H}from"react/jsx-runtime";function K(i,d){return i.find((l)=>l.sessionId===d.sessionId)??{sessionId:d.sessionId,cwd:d.cwd,title:d.title||null,updatedAt:null,archived:!1}}function ba({selectedId:i,onSelect:d,isForeground:l,onOpen:b,accessory:w,rowActions:k}){let N=s(),{t:L}=N,m=n((t)=>t.runStates),S=n((t)=>t.drafts),u=n((t)=>t.sessionList),v=te((t)=>t.activityOrder),p=C(()=>v.flatMap((t)=>{let e=m[t];return e&&je({runStates:m,drafts:S},t)?[{sid:t,record:e,sessionRow:K(u,e)}]:[]}),[v,m,S,u]),g=C(()=>{let t=new Map;for(let e of p){let r=e.sid===i||l?.(e.sid)?"foreground":"background",y=t.get(r)??[];y.push(e),t.set(r,y)}return["foreground","background"].filter((e)=>t.has(e)||e==="background").map((e)=>({key:e,rows:t.get(e)??[]}))},[p,i,l]),f=te((t)=>t.activityCollapsedGroups),o=ve(),x=g.flatMap((t)=>t.key==="foreground"||!f.has(t.key)?t.rows:[]),I=(t)=>{if(b?.(t))return;d(t)},D=Dr();E(()=>{let t=(e)=>{if(e.defaultPrevented||e.isComposing||e.repeat||!Or(e))return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;let r=Number(e.key);if(!Number.isInteger(r)||r<1||r>9)return;let y=x[r-1];if(!y)return;e.preventDefault(),I(y.sessionRow)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)});let A=(t)=>{let e=x.indexOf(t);return c(M,{sessionRow:t.sessionRow,state:t.record.state,interruption:t.record.interruption,active:t.sid===i,tasks:t.record.tasks,listeningPorts:t.record.listeningPorts,onOpen:()=>I(t.sessionRow),accessory:w?.(t.sid),actions:k?.(t.sessionRow),hint:e<9&&D?c(G,{children:Oe(`CommandOrControl+${e+1}`)}):void 0},t.sid)};return c(R,{children:g.map((t)=>t.key==="foreground"?c(R,{children:t.rows.map(A)},t.key):c(se,{open:!f.has(t.key),onOpenChange:(e)=>{let r=new Set(f);if(e)r.delete(t.key);else r.add(t.key);o({activityCollapsedGroups:r})},leading:c(O,{className:"text-muted-foreground size-3.5 shrink-0"}),label:L("sessionList.background"),count:t.rows.length,children:t.rows.map(A)},t.key))})}function M({sessionRow:i,state:d,interruption:l,active:b,tasks:w,listeningPorts:k,accessory:N,actions:L,onOpen:m,hint:S}){let u=s(),v=a(),{t:p}=u,g=i.title??p("sessionList.untitled"),f=jn(i.sessionId,d);return P(H,{children:[c(Ge,{"data-session-id":i.sessionId,active:b,role:"button",tabIndex:0,hoverCard:c(Ue,{sessionRow:i,actions:L}),onClick:m,onKeyDown:(o)=>{if(o.target!==o.currentTarget)return;if(o.key==="Enter"||o.key===" ")o.preventDefault(),m()},state:d,interruption:l,title:g,preview:f,listeningPorts:k,onOpenPort:u.openLink&&((o)=>u.openLink?.(`http://localhost:${o}`)),accessory:N,hint:S,actions:c(Ve,{title:p("sessionList.stop"),onStop:()=>h(u,v.stopSession(i.sessionId))})}),w.map((o)=>P("div",{className:"border-border/60 before:border-border/60 relative ms-4 flex min-h-7 items-center gap-2 border-s py-1 ps-4 pe-2 text-xs before:absolute before:start-0 before:top-3.5 before:w-2 before:border-t",children:[c(V,{state:"running"}),c("span",{className:"text-muted-foreground min-w-0 flex-1 truncate leading-5",title:o.title,children:o.title})]},o.id))]})}
|
|
2
|
-
export{ba};
|
package/dist/chunk-mg7kraha.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createStore as M}from"@alwith/api/client";function k(a){return a instanceof Error?a.message:String(a)}function E(a){return a.interface?.displayName??a.name}function I(a){let u={},n=new Map,l=new Map;for(let p of a.data){for(let o of p.skills)if(n.set(o.path,o),o.scope==="repo"){let m=u[p.cwd]??[];if(!m.includes(o.path))m.push(o.path);u[p.cwd]=m}for(let o of p.errors)l.set(o.path,o)}return{skills:[...n.values()],errors:[...l.values()],projects:u}}function v(a){let u=[];for(let n of a.marketplaces)for(let l of n.plugins)if(l.installed)u.push({plugin:l,marketplace:n});return u.toSorted((n,l)=>(l.plugin.installedAt??0)-(n.plugin.installedAt??0))}function di(a){let{plugin:u,marketplace:n}=a;return{installAttemptId:crypto.randomUUID(),pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function A(a){let{plugin:u,marketplace:n}=a;return{pluginName:n.path===null?u.remotePluginId??u.name:u.name,...n.path===null?{remoteMarketplaceName:n.name}:{marketplacePath:n.path}}}function tn(a,u){let n=u??{t:(e)=>e},l=(e,r)=>n.t(e,r),p=(e)=>n.notify?.(e),o=(e)=>{if(n.reportError)n.reportError(Error(e));else console.error(e)},m=null,b=null,d=(e)=>S.setState(e),P=()=>S.getState(),y=async(e=!1)=>{if(await P().refresh(void 0,{forceRefetch:e,background:!0}),P().error)throw Error(l("plugins.toast.syncError",{message:P().error}))},f=(e,r)=>d((s)=>{let t={...s.busyIds};if(r===null)delete t[e];else t[e]=r;return{busyIds:t}}),h=(e,r)=>d((s)=>{let t={...s.busyMarketplaces};if(r)t[e]=!0;else delete t[e];return{busyMarketplaces:t}}),w=M({loading:!1,loadedScope:null,upgrading:!1,error:null,cwds:[],marketplaces:[],marketplaceLoadErrors:[],featuredPluginIds:[],installed:[],skills:[],skillProjects:{},skillErrors:[],busyIds:{},busySkills:{},busyMarketplaces:{},refresh:(e=P().cwds,r={})=>{if(m={cwds:e,forceRefetch:r.forceRefetch===!0||m?.forceRefetch===!0},d({cwds:e,...!r.background?{loading:!0}:{}}),b)return b;return b=(async()=>{while(m){let s=m;m=null,d({error:null});try{let[t,i,g]=await Promise.all([a.listSkills(s.cwds,s.forceRefetch),a.listPlugins({...s.cwds.length>0?{cwds:s.cwds}:{},...s.forceRefetch?{forceRefetch:!0}:{}}),a.installedPlugins(s.cwds)]);if(m)continue;let c=I(t);d({loadedScope:JSON.stringify(s.cwds),skills:c.skills,skillProjects:c.projects,skillErrors:c.errors,marketplaces:i.marketplaces,marketplaceLoadErrors:i.marketplaceLoadErrors,featuredPluginIds:i.featuredPluginIds,installed:v(g)})}catch(t){if(!m)d({error:k(t)})}}})().finally(()=>{b=null,d({loading:!1})}),b},install:async(e)=>{if(e.plugin.id in P().busyIds)throw Error("Plugin operation already in progress");let r=E(e.plugin);f(e.plugin.id,"installing");try{let s=await a.installPlugin(di(e));return await y(),f(e.plugin.id,null),p(l("plugins.toast.installed",{pluginName:r})),s}catch(s){throw o(`${l("plugins.toast.installError")}: ${k(s)}`),s}finally{f(e.plugin.id,null)}},setPluginEnabled:async(e,r)=>{if(e.id in P().busyIds)return;f(e.id,"toggling");let s=(i)=>d((g)=>({installed:g.installed.map((c)=>c.plugin.id===e.id?{...c,plugin:{...c.plugin,enabled:i}}:c)}));s(r);let t=e.enabled;try{let i=e.source.type==="remote"?e.remotePluginId:void 0;if(i===null)throw Error("Remote plugin ID is missing");let g=await a.setPluginEnabled(e.id,r,i);t=g.enabled,s(g.enabled),await y();let c=P().installed.find((R)=>R.plugin.id===e.id);if(c)t=c.plugin.enabled;if(!c||t!==r)throw Error(l("plugins.toast.toggleNotApplied"));f(e.id,null),p(l(r?"plugins.toast.enabled":"plugins.toast.disabled",{pluginName:E(e)}))}catch(i){s(t),o(`${l("plugins.toast.toggleError")}: ${k(i)}`)}finally{f(e.id,null)}},uninstall:async(e)=>{if(e.id in P().busyIds)return;let r=E(e);f(e.id,"uninstalling");try{let s=e.source.type==="remote"?e.remotePluginId:e.id;if(!s)throw Error("Remote plugin ID is missing");if(await a.uninstallPlugin(s),await y(),P().installed.some((t)=>t.plugin.id===e.id))throw Error(l("plugins.toast.uninstallNotApplied"));f(e.id,null),p(l("plugins.toast.uninstalled",{pluginName:r}))}catch(s){o(`${l("plugins.toast.uninstallError")}: ${k(s)}`)}finally{f(e.id,null)}},readPlugin:async(e)=>(await a.readPlugin(A(e))).plugin,setSkillEnabled:async(e,r)=>{if(e.path in P().busySkills)return;d((t)=>({busySkills:{...t.busySkills,[e.path]:!0}})),d((t)=>({skills:t.skills.map((i)=>i.path===e.path?{...i,enabled:r}:i)}));let s=e.interface?.displayName??e.name;try{let t=await a.setSkillEnabled({path:e.path,enabled:r});if(d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:t.effectiveEnabled}:g)})),t.effectiveEnabled!==r){o(l("plugins.catalog.toggleNotApplied"));return}p(l(r?"plugins.skills.enabledToast":"plugins.skills.disabledToast",{skillName:s}))}catch(t){d((i)=>({skills:i.skills.map((g)=>g.path===e.path?{...g,enabled:e.enabled}:g)})),o(`${l("plugins.skills.toggleError")}: ${k(t)}`)}finally{d((t)=>{let i={...t.busySkills};return delete i[e.path],{busySkills:i}})}},addMarketplace:async(e)=>{let r=await a.addMarketplace(e);return await y(!0),p(r.alreadyAdded?l("plugins.marketplace.alreadyAdded",{marketplaceName:r.marketplaceName}):l("plugins.marketplace.added",{marketplaceName:r.marketplaceName})),r},removeMarketplace:async(e)=>{h(e,!0);try{await a.removeMarketplace(e),await y(),h(e,!1),p(l("plugins.marketplace.removed",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.removeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeMarketplace:async(e)=>{h(e,!0);try{let r=await a.upgradeMarketplaces(e);if(await y(!0),h(e,!1),r.errors.length>0)o(`${l("plugins.marketplace.upgradeError")}: ${r.errors.map((s)=>s.message).join("; ")}`);else p(l("plugins.marketplace.upgraded",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.upgradeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeAll:async()=>{if(P().upgrading)return;d({upgrading:!0});try{let e=await a.upgradeMarketplaces();if(await y(!0),d({upgrading:!1}),e.errors.length>0)o(l("plugins.marketplace.upgradeAllError"));else p(l("plugins.marketplace.upgradedAll"))}catch(e){o(`${l("plugins.marketplace.upgradeAllRequestError")}: ${k(e)}`)}finally{d({upgrading:!1})}}}),S=Object.assign(w,{bindHost:(e)=>{n=e}});return S}
|
|
2
|
-
export{di,tn};
|
package/dist/chunk-mqpkm974.js
DELETED
package/dist/chunk-n6dqwdg5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-3g9qb7vq.js";import{wt}from"./chunk-pk931bpm.js";import{e}from"./chunk-abgdqy92.js";import{pe,S}from"./chunk-38hvm5ca.js";import{kn,Le}from"./chunk-wnydsth6.js";import{Re}from"./chunk-vvkp0jqa.js";import{Zap as g}from"lucide-react";import{jsx as n}from"react/jsx-runtime";function Cn({snapshot:s,model:l,onChange:r,nativeModels:t,catalog:c}){let{host:u}=e(),{t:a}=u,f=[{id:b.id,name:b.name,models:t===void 0?[{api_id:"",label:b.name}]:t.map((o)=>({api_id:o.id,label:o.label??o.id}))},...(s===null?[]:pe(s)).map((o)=>({id:o.id,name:o.name,models:o.models.map((i)=>({api_id:S(o.id,i.id),label:i.label??i.id}))}))],p=Le(f,c),d=p.flatMap((o)=>o.models),m=l===null?t===void 0?d[0]:{api_id:"",label:a("composer.model")}:d.find((o)=>o.api_id===l)??{api_id:l,label:l};return n(wt,{value:{...m,label:kn(m)},models:d,modelGroups:p,header:{name:a("composer.model"),action:n(Re,{})},compactCatalog:!0,booleanOptions:[{id:"fast_mode",name:a("composer.fastMode"),currentValue:!1,disabled:!0,title:a("composer.fastModeUnsupported"),icon:n(g,{className:"size-4","aria-hidden":"true"})}],showModelList:!0,onChange:(o)=>r(o.api_id),t:(o)=>a(o)})}
|
|
2
|
-
export{Cn};
|
package/dist/chunk-p781sb6h.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function X(e){return i(e.options)?e.options.flatMap((t)=>t.options):e.options}function y(e,t){return e.find((n)=>n.category===t&&o(n))}function Y(e){return X(e).find((t)=>t.value===e.currentValue)?.name??e.currentValue}
|
|
2
|
-
export{X,y,Y};
|
package/dist/chunk-q9y0wjwp.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ee}from"./chunk-fhjk81r9.js";import{_t}from"./chunk-nh56sb8e.js";var ge={persistConfig:!0,nativeTools:{imageGeneration:!1},applicationContext:_t,parseConfig(e){if(typeof e.model!=="string"||typeof e.size!=="string"||Object.keys(e).some((t)=>t!=="model"&&t!=="size"))throw Error("Invalid image input config");let o={model:e.model,size:e.size};return ee(o),o},routePrompt(e){return e.image()}};
|
|
2
|
-
export{ge};
|
package/dist/chunk-qejm75d7.js
DELETED
package/dist/chunk-r6c9r5yy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{fr}from"./chunk-bfwft1b8.js";import{ge}from"./chunk-q9y0wjwp.js";var t={chat:fr,image:ge};function nt(n){return Object.hasOwn(t,n)}function De(n){if(!nt(n))throw Error(`Unsupported input mode: ${n}`);return t[n]}function ia(n){if(n===null)return"chat";let o=n.mode;if(!nt(o))throw Error(`Unsupported input mode: ${o}`);return t[o].parseConfig(n.config),o}
|
|
2
|
-
export{nt,De,ia};
|
package/dist/chunk-rx84h0c2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ye}from"./chunk-56rx2rmj.js";function C(e){return/^app:\/\/([^/?#\s)]+)$/.exec(e)?.[1]??null}function Ot(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 ns(e,n){return[Pa(n),e.trim()].filter(Boolean).join(" ")}function os(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,Ot,Pa,ns,os};
|
package/dist/chunk-s2706gae.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{m}from"./chunk-sgbn37kz.js";import{s}from"./chunk-6c18ag8t.js";import{v,f}from"./chunk-6tj5e7fc.js";import{Nt}from"./chunk-n0q8e6sq.js";import{cn as r}from"cn";import{ArrowLeftIcon as a,ArrowRightIcon as l,SlidersHorizontalIcon as p}from"lucide-react";import{DropdownMenu as c,DropdownMenuContent as u,DropdownMenuItem as d,DropdownMenuTrigger as g}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as w}from"react/jsx-runtime";function la({onCollapseAll:i}){let{t:n}=s();return w(c,{children:[o(g,{render:o(Nt,{"aria-label":n("sessionList.filter"),title:n("sessionList.filter")}),children:o(p,{})}),o(u,{align:"end",className:"w-52",children:o(d,{onClick:i,children:n("sessionList.collapseAllGroups")})})]})}function ca({screen:i,onSwitch:n}){let{t:e}=s(),t=e(i==="main"?"sessionList.openLeading":"sessionList.backToMain");return o(f,{className:r(m,i==="main"?"justify-start":"justify-end"),"aria-label":t,title:t,onClick:n,children:o(v,{children:i==="main"?o(a,{}):o(l,{})})})}
|
|
2
|
-
export{la,ca};
|
package/dist/chunk-sgbn37kz.js
DELETED
package/dist/chunk-tcs1a1hk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O}from"./chunk-wf7kfk3p.js";import{be}from"./chunk-vhxr0c4c.js";import{isPlanItems as n,isPlanMarkdown as r}from"@nyssance/codex-acp-v2/client";import{jsx as e}from"react/jsx-runtime";function vi({plan:t}){if(r(t))return e("div",{className:"codex-reasoning-details",children:e(O,{text:t.content,streaming:!1})});if(!n(t))return null;return e(be,{entries:t.entries})}
|
|
2
|
-
export{vi};
|
package/dist/chunk-wnydsth6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b}from"./chunk-3g9qb7vq.js";import{er,tr,nr,or}from"./chunk-2easwd1n.js";import{Sn,A,yt,S,bt}from"./chunk-38hvm5ca.js";import{Bot as p}from"lucide-react";import{jsx as l}from"react/jsx-runtime";var r={"alwith-account":er,chatgpt:tr,minimax:nr,seedream:or};function Xi({provider:o,className:i,...a}){let e=Object.hasOwn(r,o)?r[o]:A.find((n)=>n.id===o)?.logo??p;return l(e,{"aria-hidden":"true",...a,className:["size-4 shrink-0",i].filter(Boolean).join(" ")})}var s=new Map(Sn.filter((o)=>o.source==="account").flatMap((o)=>o.models.map((i)=>[S(o.id,i.id),i.label]))),d=new Map([...Sn.map((o)=>[o.id,o.source==="account"?1:2]),[b.id,0]]);function kn(o){return o.shortLabel??o.label}function Le(o,i={}){return o.toSorted((e,n)=>(d.get(e.id)??3)-(d.get(n.id)??3)).map((e)=>{let n=e.id===b.id;return{...e,models:e.models.map((t)=>({...t,label:s.get(t.api_id)??t.label,shortLabel:t.shortLabel??bt[t.api_id]?.shortLabel,icon:i.providerIcon?.(e.id,t.api_id)??l(Xi,{provider:n?"chatgpt":e.id==="litellm"||e.id==="alwith-managed-litellm"||yt(t.api_id)?"alwith-account":e.id})}))}})}
|
|
2
|
-
export{Xi,kn,Le};
|
package/dist/chunk-x1mzrhtd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Oe}from"./chunk-r8pm74zf.js";import{Kbd as i}from"@nyssance/shadcn/vega/components/ui/kbd";import{Tooltip as p,TooltipContent as l,TooltipTrigger as a}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as r,jsxs as e,Fragment as c}from"react/jsx-runtime";function Rr({shortcut:t,...o}){return t?r(i,{"aria-hidden":"true",...o,children:Oe(t)}):null}function Lr({label:t,shortcut:o}){return e(c,{children:[r("span",{className:"min-w-0",children:t}),r(Rr,{className:"shrink-0",shortcut:o,"aria-hidden":"false"})]})}function Gn({label:t,shortcut:o,children:n}){return e(p,{children:[r(a,{render:n}),r(l,{role:"tooltip",children:o?r(Lr,{label:t,shortcut:o}):t})]})}
|
|
2
|
-
export{Rr,Lr,Gn};
|
package/dist/chunk-y6p8xspr.js
DELETED
package/dist/chunk-yc4cdg65.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function ar(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function go(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function tt(t){return t.type==="array"}function An(t){return(tt(t)?t.items?.oneOf??[]:t.oneOf??[]).map((e)=>{let i=e,r=i.const??i.title??"";return{value:r,label:i.title??r,...i.description?{description:i.description}:{},...i._meta?.alwith?.preview?{preview:i._meta.alwith.preview}:{}}})}
|
|
2
|
-
export{ar,go,tt,An};
|