@alwith/module-chat 0.6.22 → 0.6.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/activity-host.js +1 -1
- package/dist/agent/client.d.ts +25 -9
- 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.d.ts +4 -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-0a7vp0ph.js +2 -0
- package/dist/{chunk-09w80wgb.js → chunk-0bv3tw1m.js} +2 -2
- package/dist/chunk-0j5z842s.js +4 -0
- package/dist/{chunk-x6cfmt4y.js → chunk-0jj029k8.js} +2 -2
- package/dist/{chunk-xvmmndhs.js → chunk-0s2zcz5f.js} +2 -2
- package/dist/{chunk-xdmjwqgf.js → chunk-113maskf.js} +2 -2
- package/dist/{chunk-shk5mmmw.js → chunk-18xfysvb.js} +2 -2
- package/dist/{chunk-dgh0750h.js → chunk-1d29gnb2.js} +2 -2
- package/dist/{chunk-pkkw0fxs.js → chunk-1gr60c40.js} +2 -2
- package/dist/{chunk-t3enrsnt.js → chunk-26w51q10.js} +2 -2
- package/dist/{chunk-ywwfzgm6.js → chunk-27gr882d.js} +2 -2
- package/dist/{chunk-jv117dry.js → chunk-2kbp0pbe.js} +2 -2
- package/dist/{chunk-2wdvcx76.js → chunk-2rbaebnr.js} +3 -3
- package/dist/chunk-2w4kyd2a.js +4 -0
- package/dist/chunk-2wfgbxet.js +3 -0
- package/dist/{chunk-2q20937h.js → chunk-2x5m7g33.js} +2 -2
- package/dist/chunk-3q2zdv9e.js +2 -0
- package/dist/{chunk-kawq8f1z.js → chunk-3q8vw3wb.js} +2 -2
- package/dist/{chunk-7ekex790.js → chunk-3qy743j9.js} +3 -3
- package/dist/{chunk-jg4c3zg4.js → chunk-3tvq6xr2.js} +2 -2
- package/dist/chunk-3zsqg6wr.js +3 -0
- package/dist/{chunk-p521krn5.js → chunk-44r55va6.js} +2 -2
- package/dist/chunk-4cr144a7.js +2 -0
- package/dist/{chunk-8zrmp6dw.js → chunk-4e622bdk.js} +3 -3
- package/dist/{chunk-6cxa2jrx.js → chunk-4gftpery.js} +2 -2
- package/dist/{chunk-76r5v06g.js → chunk-4t0f01ec.js} +2 -2
- package/dist/{chunk-05eftctr.js → chunk-4vayk46h.js} +2 -2
- package/dist/{chunk-m9s9etss.js → chunk-51x80v4h.js} +2 -2
- package/dist/{chunk-x785yg93.js → chunk-52wrk1mh.js} +2 -2
- package/dist/{chunk-69eysg08.js → chunk-5c42mfat.js} +2 -2
- package/dist/{chunk-6j2q7qvk.js → chunk-5m2ydb9j.js} +2 -2
- package/dist/chunk-621eg04b.js +2 -0
- package/dist/{chunk-7n1v87h0.js → chunk-64apxzn7.js} +2 -2
- package/dist/chunk-6bbtfd0j.js +2 -0
- package/dist/{chunk-vtw1zmyd.js → chunk-6f06hbsk.js} +2 -2
- package/dist/{chunk-ckdkm4n7.js → chunk-6p4gk1zy.js} +2 -2
- package/dist/chunk-6qxd4jg9.js +2 -0
- package/dist/{chunk-nm8245ze.js → chunk-6z3fgkkp.js} +2 -2
- package/dist/{chunk-127rz9fe.js → chunk-7jk8s061.js} +2 -2
- package/dist/{chunk-egw95b1p.js → chunk-7m83dwzq.js} +2 -2
- package/dist/{chunk-bm1x011j.js → chunk-7tw7rn0m.js} +2 -2
- package/dist/{chunk-qbt8ahwr.js → chunk-809b75k1.js} +2 -2
- package/dist/{chunk-xmr3vcp8.js → chunk-84p483n0.js} +2 -2
- package/dist/{chunk-nefts0rn.js → chunk-84zzf0ys.js} +2 -2
- package/dist/{chunk-mptke00a.js → chunk-88ysxbdh.js} +2 -2
- package/dist/{chunk-9ys14ex1.js → chunk-89j37t04.js} +3 -3
- package/dist/{chunk-gzf6kzm0.js → chunk-8f5w2tnp.js} +2 -2
- package/dist/{chunk-mfs0b15q.js → chunk-8hygfx41.js} +2 -2
- package/dist/chunk-8qszap2n.js +2 -0
- package/dist/{chunk-9q5a0kwf.js → chunk-91kpcajz.js} +2 -2
- package/dist/chunk-952vsa4r.js +4 -0
- package/dist/chunk-9w1vcmbd.js +2 -0
- package/dist/chunk-a6ns5agq.js +2 -0
- package/dist/{chunk-dps8nnde.js → chunk-ad53zbdb.js} +2 -2
- package/dist/chunk-an3nh155.js +2 -0
- package/dist/chunk-ar1bwfn3.js +2 -0
- package/dist/{chunk-2w0grrzz.js → chunk-arm9x6kc.js} +2 -2
- package/dist/chunk-ax7c2kam.js +2 -0
- package/dist/{chunk-ygjcmhng.js → chunk-b6sfe0k7.js} +2 -2
- package/dist/{chunk-m0rznqwx.js → chunk-bcdmjgab.js} +2 -2
- package/dist/{chunk-mvebg1n7.js → chunk-beccgzp9.js} +2 -2
- package/dist/{chunk-7e9s642q.js → chunk-bf7sgpzq.js} +2 -2
- package/dist/{chunk-6cks2gn2.js → chunk-bgnxw313.js} +2 -2
- package/dist/{chunk-w308wr7v.js → chunk-brv52tgj.js} +2 -2
- package/dist/chunk-bve6cykn.js +2 -0
- package/dist/chunk-bw1m6407.js +2 -0
- package/dist/{chunk-fdmtynmq.js → chunk-bw3bpr6m.js} +2 -2
- package/dist/chunk-byvw0vam.js +2 -0
- package/dist/chunk-c06k7g9n.js +2 -0
- package/dist/{chunk-10ar0368.js → chunk-c13rnm7b.js} +2 -2
- package/dist/chunk-c2ez86jz.js +2 -0
- package/dist/{chunk-1dkd8jt0.js → chunk-c2r7xpjf.js} +2 -2
- package/dist/{chunk-6hgcxkwd.js → chunk-cf85zhvf.js} +2 -2
- package/dist/{chunk-2gp33sx4.js → chunk-cq3j51m2.js} +2 -2
- package/dist/chunk-d06382wz.js +2 -0
- package/dist/chunk-d0nrbf80.js +2 -0
- package/dist/{chunk-acprqt2h.js → chunk-d0s10qy5.js} +2 -2
- package/dist/{chunk-nrk4aa7a.js → chunk-dba0ttve.js} +2 -2
- package/dist/{chunk-g98m1se7.js → chunk-dheg4bs2.js} +2 -2
- package/dist/{chunk-rv3gpjgk.js → chunk-dnrcx75n.js} +2 -2
- package/dist/{chunk-bbwxqt7p.js → chunk-dr5swvaa.js} +2 -2
- package/dist/{chunk-rr2cjfcz.js → chunk-dxwbgg69.js} +2 -2
- package/dist/{chunk-zr6xrady.js → chunk-e00dz09f.js} +2 -2
- package/dist/{chunk-zsbsypka.js → chunk-e13mpwt8.js} +2 -2
- package/dist/chunk-e1fzfaqj.js +2 -0
- package/dist/{chunk-ky2p8zyg.js → chunk-e3bpr3yx.js} +2 -2
- package/dist/chunk-e8p4wkbg.js +2 -0
- package/dist/{chunk-v77kjbkb.js → chunk-ee7a5gft.js} +2 -2
- package/dist/{chunk-4cnm37fs.js → chunk-er7ewrf2.js} +3 -3
- package/dist/{chunk-zq7p8m7g.js → chunk-ert67qk1.js} +2 -2
- package/dist/{chunk-q6f0e289.js → chunk-etvdqkvb.js} +2 -2
- package/dist/{chunk-b17rwepe.js → chunk-f54k9xxv.js} +2 -2
- package/dist/chunk-f7d0hs1y.js +2 -0
- package/dist/{chunk-jzqvhnq5.js → chunk-ftsnryz8.js} +2 -2
- package/dist/{chunk-5r5dc363.js → chunk-fwghjmd1.js} +2 -2
- package/dist/{chunk-nvh0e8y1.js → chunk-fyxetwxv.js} +2 -2
- package/dist/{chunk-3rew4bcf.js → chunk-g4qwh2sx.js} +2 -2
- package/dist/chunk-gdtpwbqn.js +1 -0
- package/dist/{chunk-29jan02g.js → chunk-gpv1dc5y.js} +2 -2
- package/dist/{chunk-z0z3xfn3.js → chunk-gttw4rmx.js} +3 -3
- package/dist/{chunk-dq7zxw47.js → chunk-gxb9n7g7.js} +4 -4
- package/dist/{chunk-yqjmqa0t.js → chunk-gxx5yh45.js} +2 -2
- package/dist/{chunk-fgec4g5x.js → chunk-h5mdgrq6.js} +2 -2
- package/dist/{chunk-cbx30sf1.js → chunk-h82jte5p.js} +2 -2
- package/dist/{chunk-yk72yvcd.js → chunk-ha9n1k24.js} +2 -2
- package/dist/{chunk-xtn9bw6a.js → chunk-hmy4snze.js} +2 -2
- package/dist/{chunk-8ysh4mx1.js → chunk-hyhp5ytm.js} +2 -2
- package/dist/{chunk-71fhan3p.js → chunk-j1frpcqd.js} +2 -2
- package/dist/{chunk-37p8zdb1.js → chunk-j2k2mc13.js} +2 -2
- package/dist/chunk-j5dqww4h.js +2 -0
- package/dist/{chunk-6qh7fvgs.js → chunk-ja7x2gvb.js} +3 -3
- package/dist/{chunk-7narmchf.js → chunk-jgqt7k0h.js} +2 -2
- package/dist/{chunk-pphkxw72.js → chunk-jn8b4qrh.js} +2 -2
- package/dist/{chunk-z90zckkv.js → chunk-jp4xjks0.js} +2 -2
- package/dist/chunk-jv327stj.js +2 -0
- package/dist/{chunk-2y13vckf.js → chunk-jy0jrht0.js} +2 -2
- package/dist/{chunk-00vd1yaz.js → chunk-jzbg0cx9.js} +2 -2
- package/dist/chunk-k2nbrerw.js +2 -0
- package/dist/{chunk-k86843av.js → chunk-k5nd3vyq.js} +2 -2
- package/dist/chunk-k7z0pgrt.js +2 -0
- package/dist/chunk-kbax1frf.js +2 -0
- package/dist/{chunk-gjdeaqy2.js → chunk-khs8cfkd.js} +2 -2
- package/dist/chunk-knxes674.js +2 -0
- package/dist/{chunk-96wvztgv.js → chunk-kvc3ghat.js} +2 -2
- package/dist/{chunk-mch9hd8q.js → chunk-m0r0v983.js} +5 -5
- package/dist/{chunk-yey8qz6h.js → chunk-m799f2x5.js} +2 -2
- package/dist/{chunk-eraepgrh.js → chunk-ma7thf1j.js} +2 -2
- package/dist/{chunk-m08yer2f.js → chunk-masqfje4.js} +2 -2
- package/dist/{chunk-kj3re492.js → chunk-mc21sg7m.js} +2 -2
- package/dist/{chunk-f7bn0nd2.js → chunk-mvnze5ts.js} +2 -2
- package/dist/{chunk-dav36sjv.js → chunk-myjsfbp6.js} +2 -2
- package/dist/chunk-n32wra9r.js +2 -0
- package/dist/{chunk-0k6zg9s1.js → chunk-n6erf29r.js} +2 -2
- package/dist/chunk-n7y094nf.js +2 -0
- package/dist/chunk-na6b1fpn.js +2 -0
- package/dist/{chunk-b1yfr8gv.js → chunk-ncgwbdmj.js} +2 -2
- package/dist/{chunk-vkfz61d6.js → chunk-ne4b53kn.js} +2 -2
- package/dist/chunk-nfwa8qkt.js +2 -0
- package/dist/{chunk-pae53dz2.js → chunk-npkk2gzs.js} +2 -2
- package/dist/{chunk-ws4qt1sc.js → chunk-nqt9gyz9.js} +2 -2
- package/dist/{chunk-d7kcgxa2.js → chunk-nrpgmawz.js} +2 -2
- package/dist/chunk-nwyem2d7.js +3 -0
- package/dist/{chunk-e8dzp9xe.js → chunk-p3gawvqr.js} +2 -2
- package/dist/{chunk-nase48et.js → chunk-pqz2471h.js} +2 -2
- package/dist/{chunk-rcfjwyt4.js → chunk-pw22g3k1.js} +2 -2
- package/dist/{chunk-k025mmnv.js → chunk-pxr5snwm.js} +2 -2
- package/dist/chunk-pxv38ttf.js +2 -0
- package/dist/chunk-q1kb5z75.js +2 -0
- package/dist/chunk-q7jm6srr.js +2 -0
- package/dist/chunk-q9b2wsdg.js +2 -0
- package/dist/{chunk-d4edqxgc.js → chunk-qk1yqepm.js} +2 -2
- package/dist/chunk-r940xwxq.js +2 -0
- package/dist/chunk-rd9cgt8p.js +2 -0
- package/dist/chunk-rragk2vb.js +2 -0
- package/dist/chunk-rv3k0kfr.js +2 -0
- package/dist/{chunk-2b7fjev1.js → chunk-ry7bxdb6.js} +2 -2
- package/dist/chunk-s1nfyggb.js +2 -0
- package/dist/chunk-sjb5stzq.js +2 -0
- package/dist/{chunk-xde2hdrb.js → chunk-sjm9p42x.js} +2 -2
- package/dist/chunk-sn3sk1j0.js +2 -0
- package/dist/{chunk-j8jn2p7q.js → chunk-snrbgnwn.js} +1 -1
- package/dist/chunk-sqkdenb0.js +3 -0
- package/dist/chunk-stse5bdv.js +2 -0
- package/dist/chunk-stv8pr4v.js +2 -0
- package/dist/{chunk-vxkkzs4m.js → chunk-swqbbw8q.js} +2 -2
- package/dist/{chunk-atdygnc5.js → chunk-sxz82jq3.js} +2 -2
- package/dist/chunk-tc80kegm.js +2 -0
- package/dist/chunk-tcg99k9e.js +2 -0
- package/dist/{chunk-xnj05nc3.js → chunk-tcp7c2s0.js} +3 -3
- package/dist/{chunk-9bk8tg2w.js → chunk-vev9q4t4.js} +3 -3
- package/dist/{chunk-cxd1bwe7.js → chunk-vfszr27e.js} +2 -2
- package/dist/{chunk-ehp3p3t5.js → chunk-vhxavb92.js} +2 -2
- package/dist/{chunk-y3e10q18.js → chunk-vnwt4f99.js} +2 -2
- package/dist/{chunk-322m8vk4.js → chunk-vyzq2pbd.js} +2 -2
- package/dist/chunk-w5q2ygsa.js +2 -0
- package/dist/{chunk-484wg46e.js → chunk-w63mha8c.js} +2 -2
- package/dist/{chunk-r9vjpafx.js → chunk-wk26bzjj.js} +3 -3
- package/dist/{chunk-q16yvbsg.js → chunk-wm6zdp7w.js} +2 -2
- package/dist/{chunk-2a6bv4xm.js → chunk-wpacvdsv.js} +2 -2
- package/dist/chunk-x1aw1r1v.js +2 -0
- package/dist/{chunk-8jqaahna.js → chunk-x2wcwpw3.js} +2 -2
- package/dist/{chunk-0y8pnj16.js → chunk-x49qjrbk.js} +2 -2
- package/dist/{chunk-wsz4dh6m.js → chunk-x8rfc6wc.js} +3 -3
- package/dist/{chunk-s5fk9ywy.js → chunk-xpfy5g6z.js} +2 -2
- package/dist/{chunk-vvpagkya.js → chunk-xqb4thy8.js} +2 -2
- package/dist/chunk-xvg3d2z6.js +7 -0
- package/dist/{chunk-xj2qfepx.js → chunk-xx7t8r87.js} +2 -2
- package/dist/{chunk-tp7329ny.js → chunk-y3mx5sf0.js} +2 -2
- package/dist/{chunk-pvdm1v6g.js → chunk-yj42tq3z.js} +2 -2
- package/dist/chunk-yn6a84c7.js +2 -0
- package/dist/{chunk-r67qt2tt.js → chunk-yq4wz4n8.js} +2 -2
- package/dist/{chunk-hhnxwgz5.js → chunk-yryg27yy.js} +2 -2
- package/dist/chunk-ytdhstqx.js +2 -0
- package/dist/{chunk-nbch7nw2.js → chunk-z107z7dt.js} +2 -2
- package/dist/{chunk-wjazfhrm.js → chunk-z6x70w62.js} +2 -2
- package/dist/{chunk-jwsgt0d9.js → chunk-z76as4dt.js} +2 -2
- package/dist/chunk-zft4afb8.js +2 -0
- package/dist/{chunk-8x33007g.js → chunk-zgqrv879.js} +3 -3
- package/dist/chunk-zj7kjjdj.js +2 -0
- package/dist/chunk-zq26pxze.js +2 -0
- package/dist/{chunk-ggad6492.js → chunk-zv3bm3np.js} +2 -2
- package/dist/{chunk-hb22jn2e.js → chunk-zxfx7psd.js} +2 -2
- package/dist/chunk-zxkpemh4.js +2 -0
- package/dist/{chunk-v3dp0ay9.js → chunk-zyn0ys4m.js} +2 -2
- package/dist/client.d.ts +1 -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/disclosure-state.js +1 -1
- package/dist/codex/edited-files-card.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/codex/navigation-audio.js +1 -1
- package/dist/codex/navigation-preview.js +1 -1
- package/dist/codex/navigation-rail.js +1 -1
- package/dist/codex/patch-view.js +1 -1
- package/dist/codex/plan.js +1 -1
- package/dist/codex/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/pointer-centered-zoom.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.d.ts +1 -1
- package/dist/plugins/host.js +1 -1
- package/dist/plugins/new-chat-directory.js +1 -1
- package/dist/plugins/pane.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 -1
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/reference-projection.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/account-menu.js +1 -1
- package/dist/session-list/activity-list.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/locales.js +1 -1
- package/dist/session-list/navigation-controls.js +1 -1
- package/dist/session-list/navigation-header.js +1 -1
- package/dist/session-list/navigation-store.js +1 -1
- package/dist/session-list/navigation-tabs.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/overflow-marquee.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/darwin-arm64/artifact.json +1 -1
- package/native/darwin-arm64/libalwith_native_chat.dylib +0 -0
- package/native/win32-x64/alwith_native_chat.dll +0 -0
- package/native/win32-x64/artifact.json +1 -1
- package/package.json +2 -7
- package/dist/agent/application-client.d.ts +0 -30
- package/dist/agent/application-client.js +0 -1
- package/dist/chunk-03mdvw7w.js +0 -2
- package/dist/chunk-04778wzq.js +0 -2
- package/dist/chunk-0ppwk6y9.js +0 -2
- package/dist/chunk-0yngh0w6.js +0 -2
- package/dist/chunk-1fnfd1yv.js +0 -2
- package/dist/chunk-1jd0p7b8.js +0 -2
- package/dist/chunk-2jkv90n6.js +0 -2
- package/dist/chunk-3c9se1ha.js +0 -2
- package/dist/chunk-3zr6f9nd.js +0 -4
- package/dist/chunk-43s8pmw9.js +0 -2
- package/dist/chunk-4r8pqg1h.js +0 -2
- package/dist/chunk-52y91amb.js +0 -2
- package/dist/chunk-5s0k93vr.js +0 -3
- package/dist/chunk-6aj4cgfs.js +0 -2
- package/dist/chunk-723kazw5.js +0 -2
- package/dist/chunk-79qh74jn.js +0 -2
- package/dist/chunk-7kxa1krk.js +0 -2
- package/dist/chunk-7xszqjre.js +0 -2
- package/dist/chunk-8at6403h.js +0 -2
- package/dist/chunk-90mq5g5a.js +0 -1
- package/dist/chunk-aazp5pw2.js +0 -2
- package/dist/chunk-adnpp676.js +0 -3
- package/dist/chunk-b5afm26d.js +0 -2
- package/dist/chunk-bbpjhe4e.js +0 -2
- package/dist/chunk-br1vyrce.js +0 -2
- package/dist/chunk-cc8cg69z.js +0 -4
- package/dist/chunk-csw1rzrc.js +0 -2
- package/dist/chunk-fdqfbhwd.js +0 -2
- package/dist/chunk-fjr7n326.js +0 -2
- package/dist/chunk-fwk2ayca.js +0 -2
- package/dist/chunk-g9vjpmrq.js +0 -2
- package/dist/chunk-gh1jdr70.js +0 -2
- package/dist/chunk-j420zak2.js +0 -2
- package/dist/chunk-mz8tjgre.js +0 -2
- package/dist/chunk-n2gm013f.js +0 -2
- package/dist/chunk-na5pcj57.js +0 -2
- package/dist/chunk-nvv8aheh.js +0 -2
- package/dist/chunk-nxnzrbrc.js +0 -2
- package/dist/chunk-pwsqw3mx.js +0 -2
- package/dist/chunk-q2v4hre7.js +0 -2
- package/dist/chunk-qhes5k0g.js +0 -2
- package/dist/chunk-qhj8374f.js +0 -2
- package/dist/chunk-rnxbtzg9.js +0 -2
- package/dist/chunk-rpzv6g89.js +0 -2
- package/dist/chunk-rqck9w0f.js +0 -2
- package/dist/chunk-sm16wn9x.js +0 -2
- package/dist/chunk-swq34ay7.js +0 -2
- package/dist/chunk-t12xpbtp.js +0 -3
- package/dist/chunk-t4vfpx6a.js +0 -2
- package/dist/chunk-t6z3khr5.js +0 -2
- package/dist/chunk-tac30kkh.js +0 -2
- package/dist/chunk-tdw5wrey.js +0 -2
- package/dist/chunk-thxz5zm6.js +0 -2
- package/dist/chunk-tvfmbabv.js +0 -2
- package/dist/chunk-twrdy8cb.js +0 -2
- package/dist/chunk-tz1redf7.js +0 -3
- package/dist/chunk-tzr6phth.js +0 -2
- package/dist/chunk-v066qn38.js +0 -2
- package/dist/chunk-v2m44e5f.js +0 -2
- package/dist/chunk-x5cv0bfc.js +0 -4
- package/dist/chunk-xdrwsxqy.js +0 -2
- package/dist/chunk-xx0hs7b3.js +0 -2
- package/dist/chunk-yaxe4yd4.js +0 -2
- package/dist/chunk-yfnnrm9g.js +0 -7
- package/dist/chunk-zfsbhwe1.js +0 -2
- package/dist/import.d.ts +0 -1
- package/dist/import.js +0 -1
package/dist/chunk-pwsqw3mx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{fn,vo}from"./chunk-nm8245ze.js";import{Ji}from"./chunk-dps8nnde.js";import{CodexClient as p}from"@nyssance/codex-acp-v2/client";class ho extends p{applicationRegistry=new vo((t)=>this.holds(t)?this.session(t):void 0);toolSelection;constructor(t,e,n={}){let{applicationTools:i=[],...o}=e;super(t,o,n);this.toolSelection=i}applicationToolsFor(t){return typeof this.toolSelection==="function"?this.toolSelection(t):this.toolSelection}async requestContext(t,e,n){let i=(await this.applicationToolsFor({cwd:t,operation:e,options:n})).map((s)=>({...s,inputSchema:structuredClone(s.inputSchema)})),o=await super.requestContext(t,e,n),a=fn(i),r=o._meta?.alwith;if(i.length&&r?.tools!==void 0)throw Error("Application tools must be registered through the client");return{...o,...i.length?{_meta:{...o._meta,alwith:{...r,tools:a}}}:{},bind:async(s)=>{await o.bind?.(s),this.applicationRegistry.bind(s,i,a.revision)}}}acceptsPendingRequest(t){return t.method!=="_alwith/tool/call"&&super.acceptsPendingRequest(t)}handleNotification(t,e){if(t==="$/cancel_request"&&this.applicationRegistry.withdraw(e?.requestId))return!0;return super.handleNotification(t,e)}handleAgentRequest(t,e){return this.applicationRegistry.handle(t,e)||super.handleAgentRequest(t,e)}onDisconnected(){this.applicationRegistry.clear(),super.onDisconnected()}onSessionDropped(t){this.applicationRegistry.drop(t),super.onSessionDropped(t)}async cancel(t){this.applicationRegistry.cancel(t),await super.cancel(t)}async close(t){this.applicationRegistry.drop(t),await super.close(t)}async stopSession(t){this.applicationRegistry.drop(t),await super.stopSession(t)}async installedApps(t){let e=this.live(),n=await super.installedApps(t),i=await Ji((o,a)=>e.request(o,a),n.apps.map((o)=>o.id),t?.threadId);if(e!==this.live())throw Error("Application metadata belongs to a disconnected agent");return{apps:n.apps.map((o)=>({...o,...i.get(o.id)}))}}}
|
|
2
|
-
export{ho};
|
package/dist/chunk-q2v4hre7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{x}from"./chunk-3c9se1ha.js";import{ds,us,ps,ms}from"./chunk-00vd1yaz.js";import{On,D,Lt,T,Ft}from"./chunk-1dkd8jt0.js";import{Bot as p}from"lucide-react";import{jsx as l}from"react/jsx-runtime";var r={"alwith-account":ds,chatgpt:us,minimax:ps,seedream:ms};function ji({provider:o,className:i,...a}){let e=Object.hasOwn(r,o)?r[o]:D.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(On.filter((o)=>o.source==="account").flatMap((o)=>o.models.map((i)=>[T(o.id,i.id),i.label]))),d=new Map([...On.map((o)=>[o.id,o.source==="account"?1:2]),[x.id,0]]);function ln(o){return o.shortLabel??o.label}function Pe(o,i={}){return o.toSorted((e,n)=>(d.get(e.id)??3)-(d.get(n.id)??3)).map((e)=>{let n=e.id===x.id;return{...e,models:e.models.map((t)=>({...t,label:s.get(t.api_id)??t.label,shortLabel:t.shortLabel??Ft[t.api_id]?.shortLabel,icon:i.providerIcon?.(e.id,t.api_id)??l(ji,{provider:n?"chatgpt":e.id==="litellm"||e.id==="alwith-managed-litellm"||Lt(t.api_id)?"alwith-account":e.id})}))}})}
|
|
2
|
-
export{ji,ln,Pe};
|
package/dist/chunk-qhes5k0g.js
DELETED
package/dist/chunk-qhj8374f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{pe}from"./chunk-bm1x011j.js";import{x}from"./chunk-3c9se1ha.js";import{v}from"./chunk-xdrwsxqy.js";import{Jt}from"./chunk-qhes5k0g.js";import{Se}from"./chunk-x5cv0bfc.js";import{Dn}from"./chunk-yey8qz6h.js";import{Pe}from"./chunk-q2v4hre7.js";import{Te}from"./chunk-37p8zdb1.js";import{sn}from"./chunk-v2m44e5f.js";import{pn,mn}from"./chunk-nrk4aa7a.js";import{jsx as t,jsxs as d,Fragment as f}from"react/jsx-runtime";var n;function C(){return n??=Dn(),n}function P(){let o=Jt();return t(mn,{sessionId:o.session.id,enabled:o.inputReady&&!o.sending&&!o.shellMode,onMention:o.addMention,onBusyChange:o.setAdding})}function Us({client:o,providers:m,catalog:i,shellCommands:p=!0,modelMenu:l,children:a,...s}){let{session:e}=s,c=v(o.store,(r)=>r.modelRecovery[e.id]??!1);return d(f,{children:[c&&!pe(e.error?.error)&&t(sn,{client:o,session:e,providers:m??C(),catalog:i},e.id),d(Se,{modelMenu:l??{defaultGroup:x,catalog:(r)=>Pe(r,i),headerAction:t(Te,{})},...s,attachmentPolicy:pn,onShellCommand:p?(r)=>o.executeShell(e.id,r):void 0,children:[t(P,{}),a]})]})}
|
|
2
|
-
export{Us};
|
package/dist/chunk-rnxbtzg9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s,a,o,h}from"./chunk-tzr6phth.js";import{V}from"./chunk-nvh0e8y1.js";import{F,le,ze}from"./chunk-t6z3khr5.js";import{je,ne,Ce}from"./chunk-cxd1bwe7.js";import{ks}from"./chunk-43s8pmw9.js";import{Ue}from"./chunk-ws4qt1sc.js";import{Be}from"./chunk-0yngh0w6.js";import{$e}from"./chunk-hb22jn2e.js";import{qn}from"./chunk-7xszqjre.js";import{vs}from"./chunk-m9s9etss.js";import{ActivityIcon as D}from"lucide-react";import{useEffect as O,useMemo as A}from"react";import{Kbd as E}from"@nyssance/shadcn/vega/components/ui/kbd";import{jsx as c,jsxs as C,Fragment as M}from"react/jsx-runtime";function G(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 ka({selectedId:i,onSelect:d,isForeground:l,onOpen:b,accessory:w,rowActions:k}){let R=s(),{t:N}=R,m=o((t)=>t.runStates),S=o((t)=>t.drafts),u=o((t)=>t.sessionList),v=ne((t)=>t.activityOrder),p=A(()=>v.flatMap((t)=>{let e=m[t];return e&&je({runStates:m,drafts:S},t)?[{sid:t,record:e,sessionRow:G(u,e)}]:[]}),[v,m,S,u]),g=A(()=>{let t=new Map;for(let e of p){let r=e.sid===i||l?.(e.sid)?"foreground":"background",y=t.get(r)??[];y.push(e),t.set(r,y)}return["foreground","background"].filter((e)=>t.has(e)||e==="background").map((e)=>({key:e,rows:t.get(e)??[]}))},[p,i,l]),f=ne((t)=>t.activityCollapsedGroups),n=Ce(),L=g.flatMap((t)=>t.key==="foreground"||!f.has(t.key)?t.rows:[]),x=(t)=>{if(b?.(t))return;d(t)},P=vs();O(()=>{let t=(e)=>{if(e.defaultPrevented||e.isComposing||e.repeat||!ks(e))return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;let r=Number(e.key);if(!Number.isInteger(r)||r<1||r>9)return;let y=L[r-1];if(!y)return;e.preventDefault(),x(y.sessionRow)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)});let I=(t)=>{let e=L.indexOf(t);return c(K,{sessionRow:t.sessionRow,state:t.record.state,interruption:t.record.interruption,active:t.sid===i,tasks:t.record.tasks,listeningPorts:t.record.listeningPorts,onOpen:()=>x(t.sessionRow),accessory:w?.(t.sid),actions:k?.(t.sessionRow),hint:e<9&&P?c(E,{children:$e(`CommandOrControl+${e+1}`)}):void 0},t.sid)};return c(F,{children:g.map((t)=>t.key==="foreground"?c(F,{children:t.rows.map(I)},t.key):c(le,{open:!f.has(t.key),onOpenChange:(e)=>{let r=new Set(f);if(e)r.delete(t.key);else r.add(t.key);n({activityCollapsedGroups:r})},leading:c(D,{className:"text-muted-foreground size-3.5 shrink-0"}),label:N("sessionList.background"),count:t.rows.length,children:t.rows.map(I)},t.key))})}function K({sessionRow:i,state:d,interruption:l,active:b,tasks:w,listeningPorts:k,accessory:R,actions:N,onOpen:m,hint:S}){let u=s(),v=a(),{t:p}=u,g=i.title??p("sessionList.untitled"),f=qn(i.sessionId,d);return C(M,{children:[c(ze,{"data-session-id":i.sessionId,active:b,role:"button",tabIndex:0,hoverCard:c(Be,{sessionRow:i,actions:N}),onClick:m,onKeyDown:(n)=>{if(n.target!==n.currentTarget)return;if(n.key==="Enter"||n.key===" ")n.preventDefault(),m()},state:d,interruption:l,title:g,preview:f,listeningPorts:k,onOpenPort:u.openLink&&((n)=>u.openLink?.(`http://localhost:${n}`)),accessory:R,hint:S,actions:c(Ue,{title:p("sessionList.stop"),onStop:()=>h(u,v.stopSession(i.sessionId))})}),w.map((n)=>C("div",{className:"border-border/60 before:border-border/60 relative ms-4 flex min-h-7 items-center gap-2 border-s py-1 ps-4 pe-2 text-xs before:absolute before:start-0 before:top-3.5 before:w-2 before:border-t",children:[c(V,{state:"running"}),c("span",{className:"text-muted-foreground min-w-0 flex-1 truncate leading-5",title:n.title,children:n.title})]},n.id))]})}
|
|
2
|
-
export{ka};
|
package/dist/chunk-rpzv6g89.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function*co(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 Ai(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 co(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
|
|
2
|
-
export{co,Ai};
|
package/dist/chunk-rqck9w0f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{x}from"./chunk-3c9se1ha.js";import{ht}from"./chunk-69eysg08.js";import{e}from"./chunk-tac30kkh.js";import{xe,T}from"./chunk-1dkd8jt0.js";import{ln,Pe}from"./chunk-q2v4hre7.js";import{Te}from"./chunk-37p8zdb1.js";import{Zap as g}from"lucide-react";import{jsx as n}from"react/jsx-runtime";function an({snapshot:s,model:l,onChange:r,nativeModels:t,catalog:c}){let{host:u}=e(),{t:a}=u,f=[{id:x.id,name:x.name,models:t===void 0?[{api_id:"",label:x.name}]:t.map((o)=>({api_id:o.id,label:o.label??o.id}))},...(s===null?[]:xe(s)).map((o)=>({id:o.id,name:o.name,models:o.models.map((i)=>({api_id:T(o.id,i.id),label:i.label??i.id}))}))],p=Pe(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(ht,{value:{...m,label:ln(m)},models:d,modelGroups:p,header:{name:a("composer.model"),action:n(Te,{})},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{an};
|
package/dist/chunk-sm16wn9x.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_e}from"./chunk-g98m1se7.js";import{r,q,on}from"./chunk-ckdkm4n7.js";var zi=5000;function Qe(t){return"pastedText"in t}function mt(t,e,p){let n=(a,o)=>{for(let[i,x]of r){if(!x.attachments.some((s)=>s.id===e.id))continue;q(i,(s)=>s.map((d)=>d.id===e.id?{...e,url:o===void 0?"":_e(o),pastedText:{text:e.pastedText.text,status:a}}:d))}};if(!r.get(t)?.attachments.some((a)=>a.id===e.id))return;n("pending"),on(e.id,p("pasted-text.txt",e.pastedText.text).then((a)=>n("ready",a)).catch(()=>n("error")))}function nn(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<zi)return;t.preventDefault(),t.stopPropagation();let o={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:p,url:"",pastedText:{text:a,status:"pending"}};q(e,(i)=>[...i,o]),mt(e,o,n)}
|
|
2
|
-
export{zi,Qe,mt,nn};
|
package/dist/chunk-swq34ay7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var ta={allow_once:0,allow_always:1,reject_once:2,reject_always:3};function os(e){return[...e].toSorted((o,n)=>(ta[o.kind]??99)-(ta[n.kind]??99))}function dl(e){return e==="allow_once"||e==="allow_always"}function ul(e){return e==="allow_always"||e==="reject_always"}
|
|
2
|
-
export{ta,os,dl,ul};
|
package/dist/chunk-t12xpbtp.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{c,L}from"./chunk-10ar0368.js";import{K}from"./chunk-9bk8tg2w.js";import{rr}from"./chunk-yk72yvcd.js";import{ge}from"./chunk-vxkkzs4m.js";import{lr,ft}from"./chunk-yfnnrm9g.js";import{ur}from"./chunk-9ys14ex1.js";import{ko}from"./chunk-ywwfzgm6.js";import{cn as B}from"cn";import{jsx as o,jsxs as g}from"react/jsx-runtime";var v=new WeakMap,M=1;function R(t){if(t.type==="tool_use"||t.type==="subagent"||t.type==="collab")return`${t.type}:${t.id}`;let n=v.get(t);if(n!==void 0)return`${t.type}:${n}`;let s=M++;return v.set(t,s),`${t.type}:${s}`}function w({block:t,streaming:n,actions:s}){if(t.isApiError)return o("div",{className:"codex-stream-error",children:t.text});return g("div",{className:"codex-assistant-message",children:[o(L,{text:t.text,streaming:n}),s]})}function P({block:t,streaming:n,actions:s,renderText:i}){switch(t.type){case"text":return i===void 0?o(w,{block:t,streaming:n,actions:s}):i({block:t,streaming:n,actions:s});case"thinking":return t.thinking.length>0?o(L,{text:t.thinking,streaming:!t.isComplete}):null;case"plan":return o(ge,{entries:t.entries});case"image":return o("img",{src:`data:${t.source.media_type};base64,${t.source.data}`,className:"max-h-64 rounded",alt:""});case"tool_use":case"subagent":case"collab":return null}}var I=new Set;function Xa({message:t,isMostRecentTurn:n,hiddenTools:s=I,time:i,beforeCopy:r,afterCopy:d,providerIcon:u,renderText:A,renderEditedFiles:y}){if(t.streaming===!0&&t.content.every((e)=>e.type==="text"?e.text.length===0:e.type==="thinking"?e.thinking.length===0:!1))return o(N,{});let C=t.content.filter((e)=>e.type==="text").map((e)=>e.text).join(`
|
|
2
|
-
`),T=!t.streaming&&C.trim().length>0?o(Co,{text:C,isMostRecentTurn:n,beforeCopy:r,afterCopy:d,time:i}):null,l=rr(t.content,"compact"),x=l.reduce((e,a,p)=>a.kind==="codexActivityGroup"?p:e,-1),h=l.findIndex((e,a)=>a>x&&e.kind==="block"&&e.block.type==="text"),b=[...t.content].toReversed().find((e)=>e.type==="text"),f=t.content.filter((e)=>e.type==="tool_use"&&K(e).category==="edit"),k=(e)=>{if(e.kind==="codexActivityGroup"){let a=e.blocks.filter((p)=>p.type!=="tool_use"||!s.has(p.name));return a.length===0?null:o(ft,{blocks:a},`activity:${R(a[0])}`)}if(e.kind!=="block")throw Error(`Codex received an incompatible grouped entry: ${e.kind}`);return o(P,{block:e.block,streaming:Boolean(t.streaming),actions:e.block===b?T:void 0,renderText:A},R(e.block))},m=x===-1?0:h===-1?l.length:h;return o(wo,{stateKey:t.id,active:Boolean(t.streaming),startedAt:t.startedAt,durationMs:t.durationMs,providerId:t.providerId,providerIcon:u,work:l.slice(0,m).map(k),answer:l.length>m?l.slice(m).map(k):null,footer:x!==-1&&f.length>0&&(y===void 0?o(ur,{blocks:f}):y(f))})}function Co({text:t,isMostRecentTurn:n=!1,beforeCopy:s,afterCopy:i,time:r}){let d=c(),{t:u}=d;return g("div",{className:B("mt-1.5 flex h-5 w-fit -translate-x-1 items-center justify-start gap-0.5 [&_*]:transition-none",n?"opacity-100":"opacity-0 group-focus-within/am:opacity-100 group-hover/am:opacity-100"),children:[s,o(ko,{text:t,label:u("actions.copy"),host:d}),i,r&&o("span",{className:"codex-user-time ms-1",title:r.full,children:r.short})]})}function N({label:t}){let{t:n}=c();return o("div",{className:"codex-pending-message py-2",role:"status",children:o("span",{className:"codex-activity-running",children:t??n("message.thinking")})})}function wo({work:t,answer:n,footer:s,loading:i=!1,loadingLabel:r,...d}){if(i)return o(N,{label:r});return g("div",{className:"group/am codex-assistant-turn",children:[t.length>0&&o(lr,{...d,children:t}),n!==null&&(t.length===0?n:o("div",{"data-local-conversation-final-assistant":!0,"data-testid":"codex-final-answer",className:"codex-final-answer",children:n})),s]})}
|
|
3
|
-
export{Xa,Co,wo};
|
package/dist/chunk-t4vfpx6a.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-xdrwsxqy.js";import{e}from"./chunk-tac30kkh.js";import{it,Et,De}from"./chunk-5s0k93vr.js";import{inSessionTree as m}from"@nyssance/codex-acp-v2/client";import{jsx as l,jsxs as f,Fragment as x}from"react/jsx-runtime";var p=[];function Gt({sessionId:s}){let o=n((t)=>t.sessions),{host:u}=e(),d=n((t)=>t.actions),a=d.some((t)=>m(o,s,t.sessionId))?d.filter((t)=>m(o,s,t.sessionId)):p,i=a.filter(it).filter((t)=>{if(t.sessionId!==s||o[s]?.subagent!==void 0)return!0;let r=t.params._meta?.codex;return!(typeof r==="object"&&r!==null&&("delivery"in r)&&r.delivery==="async")}),c=a.filter((t)=>!it(t));return f(x,{children:[c.length>0&&l("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:c.map((t)=>f("div",{children:[t.sessionId!==s&&l("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:t.sessionId===null?"":o[t.sessionId]?.title??u.t("subagents.untitled")}),l(De,{action:t})]},t.id))}),i[0]!==void 0&&l(Et,{action:i[0],total:i.length},i[0].id)]})}
|
|
2
|
-
export{Gt};
|
package/dist/chunk-t6z3khr5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ve,m}from"./chunk-nxnzrbrc.js";import{U}from"./chunk-mfs0b15q.js";import{V}from"./chunk-nvh0e8y1.js";import{O}from"./chunk-p521krn5.js";import{Ut,at,Bt}from"./chunk-7narmchf.js";import{PreviewCard as w}from"@base-ui/react/preview-card";import{cn as p}from"cn";import{LockIcon as E}from"lucide-react";import{createContext as I,useContext as T,useLayoutEffect as G,useState as H}from"react";import"@alwith/module-chat/session-list.css";import{jsx as e,jsxs as d,Fragment as M}from"react/jsx-runtime";function F(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 y({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 le({open:o,onOpenChange:t,tooltip:n,leading:r,label:i,count:s,countLabel:a,active:l=!1,actions:h,headerChildren:v,wrapHeader:u,onHeaderClick:C,children:b}){let P=()=>{C?.(),t(!o)},g=p(Ut,"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)]"),R=d(M,{children:[r!=null&&e(y,{children:r}),v??e(U,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(Bt,{content:s!==void 0?e(at,{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:h})})]}),S=v==null?d("div",{"data-active":l?"":void 0,title:n,className:p(g,m),onClick:P,onKeyDown:(c)=>{if(c.target!==c.currentTarget)return;if(c.key!=="Enter"&&c.key!==" ")return;c.preventDefault(),P()},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]"}),R]}):e("div",{"data-active":l?"":void 0,className:g,children:R});return d("div",{className:"text-[#1a1c1f] dark:text-white",children:[u===void 0?S:u(S),o&&e(F,{className:"mt-0.5",children:b})]})}var L=I(()=>{}),_=I(()=>{});function Kn(){return T(_)}function Ge(){return T(L)}function ze({active:o=!1,state:t,interruption:n=null,leased:r=!1,media:i,title:s,hoverCard:a,onHoverCardOpenChange:l,subtitle:h,preview:v,listeningPorts:u,onOpenPort:C,accessory:b,meta:P,hint:g,actions:R,className:S,...c}){let k=d("div",{"data-slot":"navigation-session-item","data-active":o,className:p(Ut,Ve,"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]",(v||u!=null&&u.length>0)&&"h-auto min-h-[var(--navigation-row-height,30px)] py-2.5",S),...c,children:[e(y,{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(U,{className:p("leading-none",t==="done"&&"font-semibold"),children:s}),h!=null&&e(U,{className:"text-muted-foreground text-xs",children:h}),v&&e("span",{className:"text-muted-foreground mt-1.5 line-clamp-2 text-xs leading-[18px] [overflow-wrap:anywhere] break-words",children:v}),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((x)=>C?d("button",{type:"button",className:"underline",onPointerDown:(N)=>N.stopPropagation(),onKeyDown:(N)=>N.stopPropagation(),onClick:(N)=>{N.stopPropagation(),C(x)},children:[":",x]},x):d("span",{children:[":",x]},x))})]}),d("span",{className:"relative ms-auto flex shrink-0 items-center gap-1",children:[r&&e(E,{className:"text-muted-foreground size-3"}),e(Bt,{content:b!=null?e(at,{children:b}):P??e(at,{}),actions:R}),g!=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:g})]})]});if(a==null)return k;return e(z,{row:k,onOpenChange:l,children:a})}function z({row:o,children:t,onOpenChange:n}){let[r,i]=H(!1),[s,a]=H(!1),l=r||s;return G(()=>(n?.(l),()=>n?.(!1)),[l,n]),e(L.Provider,{value:a,children:e(_.Provider,{value:()=>{i(!1),a(!1)},children:e(D,{open:l,onOpenChange:i,trigger:o,children:t})})})}function D({open:o,onOpenChange:t,trigger:n,children:r,side:i="inline-end",sideOffset:s=2,align:a="start",alignOffset:l}){return O(o),d(w.Root,{open:o,onOpenChange:t,children:[e(w.Trigger,{render:n,delay:700,closeDelay:100}),e(w.Portal,{children:e(w.Positioner,{side:i,sideOffset:s,align:a,alignOffset:l,className:"isolate z-50",children:e(w.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{F,y,f,le,Kn,Ge,ze};
|
package/dist/chunk-tac30kkh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Fe}from"./chunk-xdrwsxqy.js";import{createContext as v,useContext as C,useMemo as a}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function Ln({host:o,client:n,children:t}){let s=a(()=>({host:o,client:n}),[o,n]);return r(Fe,{host:o,client:n,children:r(i,{value:s,children:t})})}function e(){let o=C(i);if(o===null)throw Error("Conversation host is missing");return o}function w(o,n){n.catch((t)=>{if(o.reportError)o.reportError(t);else console.error(t)})}
|
|
2
|
-
export{Ln,e,w};
|
package/dist/chunk-tdw5wrey.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-xdrwsxqy.js";import{ct}from"./chunk-723kazw5.js";import{e,w}from"./chunk-tac30kkh.js";import{Jn}from"./chunk-j420zak2.js";import{Loader2Icon as v}from"lucide-react";import{Button as x}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as c,EmptyDescription as l,EmptyHeader as d,EmptyTitle as f}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as o,jsxs as i}from"react/jsx-runtime";function $t({session:t,timeline:s}){let{host:m,client:a}=e(),{t:r}=m,u=n((h)=>h.historyPages[t.id]?.cursor!=null),y=Jn(t,s?.turnWork),E=()=>w(m,a.open(t.id,t.cwd)),p=o(ct,{...s,session:t,client:a,host:m,turnWork:y});if(t.restoring)return t.items.length===0?i("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[o(v,{className:"size-4 animate-spin","aria-hidden":"true"}),r("conversation.restoring")]}):p;if(!t.attached&&t.items.length===0)return i(c,{className:"flex-1",children:[i(d,{children:[o(f,{children:r("conversation.reopen")}),o(l,{children:r("conversation.detached")})]}),o(x,{onClick:E,children:r("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!u)return o(c,{className:"flex-1",children:i(d,{children:[o(f,{className:"text-[28px] font-normal",children:r("conversation.welcomeTitle")}),o(l,{className:"truncate font-mono",children:t.cwd})]})});return p}
|
|
2
|
-
export{$t};
|
package/dist/chunk-thxz5zm6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$e}from"./chunk-hb22jn2e.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 fs({shortcut:t,...o}){return t?r(i,{"aria-hidden":"true",...o,children:$e(t)}):null}function hs({label:t,shortcut:o}){return e(c,{children:[r("span",{className:"min-w-0",children:t}),r(fs,{className:"shrink-0",shortcut:o,"aria-hidden":"false"})]})}function $n({label:t,shortcut:o,children:n}){return e(p,{children:[r(a,{render:n}),r(l,{role:"tooltip",children:o?r(hs,{label:t,shortcut:o}):t})]})}
|
|
2
|
-
export{fs,hs,$n};
|
package/dist/chunk-tvfmbabv.js
DELETED
package/dist/chunk-twrdy8cb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bs}from"./chunk-tzr6phth.js";import{createContext as r,useContext as i}from"react";import{jsx as s}from"react/jsx-runtime";var n=r(null);function Rs({host:o,children:t}){return s(n,{value:o,children:t})}function N(){let o=i(n),e={...bs(),...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 oi(o,t){t.catch((e)=>{if(o.reportError)o.reportError(e);else console.error(e)})}function de(){let o=N();return(t)=>oi(o,t)}function ii(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}
|
|
2
|
-
export{Rs,N,oi,de,ii};
|
package/dist/chunk-tz1redf7.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{m}from"./chunk-nxnzrbrc.js";import{F,f}from"./chunk-t6z3khr5.js";import{bn}from"./chunk-5r5dc363.js";import{tt,d,nt,It,i}from"./chunk-zfsbhwe1.js";import{Z,Q,ye,J,X,Le,_n}from"./chunk-90mq5g5a.js";import{Re}from"./chunk-2q20937h.js";import{Tt}from"./chunk-vkfz61d6.js";import{I}from"./chunk-d4edqxgc.js";import{In,z}from"./chunk-jv117dry.js";import{W,Ee}from"./chunk-nase48et.js";import{Cn}from"./chunk-fdqfbhwd.js";import{wn}from"./chunk-s5fk9ywy.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 G,PuzzleIcon as le,RefreshCwIcon as oe,SearchIcon as re,Trash2Icon as ce,XIcon as de}from"lucide-react";import{memo as me,useDeferredValue as ue,useEffect as q,useMemo as V,useState as w}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as pe,DialogContent as ge,DialogDescription as fe,DialogHeader as ve,DialogTitle as xe,DialogTrigger as he}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as Ne,DropdownMenuContent as ke,DropdownMenuItem as be,DropdownMenuTrigger as Pe}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as _}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 U}from"react/jsx-runtime";function E(t){return t.interface?.displayName??t.name}function K(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(G,{className:"size-5",strokeWidth:2,"aria-hidden":"true"})})}function Ie({plugin:t,marketplace:r,actions:u,onOpen:p}){let a=K(t),g=t.interface?.developerName,c=t.localVersion??t.version,o=[g,c?`v${c}`:null].filter(Boolean).join(" · ");return s(Le,{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(J,{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(z,{name:t.name})})}),s(Q,{className:"pointer-events-none relative min-w-0",children:[e(_n,{className:"mb-0.5",children:E(t)}),e(ye,{className:"line-clamp-1",title:a,children:a||r.interface?.displayName||r.name}),o&&e(ye,{"data-toolbox-metadata":"",children:o})]}),e(Z,{className:"relative w-8 shrink-0 justify-center",children:u})]})}function L(){return It((t)=>t.connection==="ready"&&ee(t.agent))}var S=48;function Se({marketplace:t,plugins:r,onOpen:u}){let{t:p}=d(),a=i((n)=>n.removeMarketplace),[g,c]=w(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(Ne,{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(ke,{align:"end",className:"w-max min-w-[140px] whitespace-nowrap",children:s(be,{className:"text-destructive",onClick:()=>void a(t.name),children:[e(ce,{className:"size-3.5"}),p("plugins.marketplace.remove")]})})]})]}),e(X,{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(Ie,{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 De=me(function({query:r,onOpen:u}){let{t:p}=d(),a=i((n)=>n.marketplaces),g=i((n)=>n.featuredPluginIds),c=V(()=>a.map((n)=>({marketplace:n,entries:n.plugins.map((v)=>({plugin:v,text:[v.name,E(v),K(v),v.interface?.developerName??"",...v.keywords].join(`
|
|
2
|
-
`).toLowerCase()}))})),[a]),o=V(()=>{let n=new Set(g);return c.map(({marketplace:v,entries:x})=>({marketplace:v,plugins:x.filter(({plugin:k,text:y})=>r===""?v.path!==null||n.has(k.id):y.includes(r)).map(({plugin:k})=>k)}))},[c,g,r]);return s(U,{children:[o.map(({marketplace:n,plugins:v})=>e(Se,{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 Me(){let{t}=d(),r=L(),u=i((h)=>h.addMarketplace),p=i((h)=>h.upgradeAll),a=i((h)=>h.upgrading),[g,c]=w(""),[o,n]=w(!1),[v,x]=w(!1),[k,y]=w(null),O=async()=>{let h=g.trim();if(!h||o)return;n(!0),y(null);try{await u({source:h}),c(""),x(!1)}catch(C){y(C instanceof Error?C.message:String(C))}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(pe,{open:v,onOpenChange:(h)=>{if(!o)x(h)},children:[s(he,{render:e(N,{size:"sm",className:"h-9",variant:"outline",disabled:!r}),children:[e(G,{"data-icon":"inline-start"}),t("plugins.addMarketplace")]}),s(ge,{children:[s(ve,{children:[e(xe,{children:t("plugins.marketplace.addTitle")}),e(fe,{children:t("plugins.catalog.sourceHelp")})]}),s("form",{className:"space-y-4",onSubmit:(h)=>{h.preventDefault(),O()},children:[e(we,{htmlFor:"marketplace-source",children:t("plugins.marketplace.sourceLabel")}),e(_,{id:"marketplace-source",value:g,disabled:o,onChange:(h)=>c(h.target.value),placeholder:t("plugins.marketplace.sourcePlaceholder")}),k&&e("p",{role:"alert",className:"text-destructive text-sm",children:k}),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 ze({onOpen:t,query:r}){let u=L(),p=i((c)=>c.marketplaceLoadErrors),a=i((c)=>c.loading)||!u,g=ue(r.trim().toLowerCase());return e(I,{className:"pe-0",viewportClassName:"pe-0",children:s("div",{className:`${W} 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(Re,{}):e(De,{query:g,onOpen:t})]})})}function Ks({cwd:t,active:r,extensions:u,onOpenCatalog:p}){let{t:a}=d(),g=nt(),c=tt(g),o=i((l)=>l.refresh),n=i((l)=>l.loading),v=i((l)=>l.error),[x,k]=w("plugins"),[y,O]=w({plugins:"",skills:""}),h=x==="skills"?y.skills:y.plugins,C=(l)=>O((D)=>({...D,[x]:l})),Y=It((l)=>JSON.stringify([...new Set(l.sessionList.map((D)=>Tt(D.cwd,l.projectContext)).filter((D)=>D!==null))].toSorted())),B=JSON.stringify([...new Set([Tt(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"),[b,R]=w(null),P=L();q(()=>{if(!r||!P)return;if(c.getState().loadedScope!==B)o(JSON.parse(B))},[r,P,o,B,c]),q(()=>{if(!P)return;return g.onSkillsChanged(()=>void o(void 0,{background:!0,catalog:!1}))},[P,o,g]);let A=(l)=>{p?.(),k("plugins"),R(l)},j=(l)=>{p?.(),k(l),R(null)};return s("div",{className:"plugins-page @container flex h-full min-h-0 overflow-hidden [--navigation-row-height:30px] [--spacing:4px]",children:[e(In,{}),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&&b===null,onClick:()=>j(l),children:[l==="plugins"?e(le,{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(I,{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(F,{children:!P||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&&b?.plugin.id===l.plugin.id,onClick:()=>A(l),children:[e(z,{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(U,{children:[b&&e(Cn,{entry:b,onBack:()=>j("plugins")},JSON.stringify([b.marketplace.name,b.marketplace.path,b.plugin.id,t])),s("div",{hidden:b!==null,className:b?"hidden":"flex min-h-0 flex-1 flex-col",children:[e(Ee,{children:e(bn,{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(re,{className:"text-muted-foreground pointer-events-none absolute start-3 top-1/2 size-4 -translate-y-1/2"}),e(_,{className:"h-9 rounded-full ps-9 pe-9","aria-label":H,value:h,onChange:(l)=>C(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:()=>C(""),children:e(de,{})})]}),e(N,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground","aria-label":a("plugins.skills.refresh"),disabled:!P||n,onClick:()=>void o(void 0,{forceRefetch:!0}),children:n?e(M,{}):e(oe,{})}),x==="plugins"&&e(Me,{})]})})}),(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||!P,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(ze,{query:y.plugins,onOpen:A})}),e("div",{hidden:x!=="skills",className:x==="skills"?"flex min-h-0 flex-1 flex-col":"hidden",children:e(wn,{query:y.skills,ready:P,onOpenPlugin:A})})]})]})]})})]})}
|
|
3
|
-
export{Ks};
|
package/dist/chunk-tzr6phth.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O}from"./chunk-p521krn5.js";import{createContext as c,useContext as p,useState as f,useSyncExternalStore as x}from"react";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as y,DialogContent as D,DialogDescription as L,DialogFooter as w,DialogHeader as P,DialogTitle as H}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as d}from"react/jsx-runtime";var S=c(null),g=c(null),C=c(null);function Pa({host:e,client:t,children:n}){let[r,l]=f(null);O(r!==null);let{t:u}=e;return i(S,{value:e,children:i(g,{value:t,children:d(C,{value:l,children:[n,i(y,{open:r!==null,onOpenChange:(v)=>!v&&l(null),children:d(D,{children:[d(P,{children:[i(H,{children:u("sessionList.deleteTitle")}),i(L,{children:u("sessionList.deleteDescription")})]}),d(w,{children:[i(m,{variant:"outline",onClick:()=>l(null),children:u("sessionList.cancel")}),i(m,{onClick:()=>{if(r)h(e,t.delete(r.sessionId));l(null)},children:u("sessionList.delete")})]})]})})]})})})}function s(){let e=p(S);if(e===null)throw Error("Session list host is missing");return e}function bs(){return p(S)}function a(){let e=p(g);if(e===null)throw Error("Session list client is missing");return e}function Zn(){let e=p(C);if(e===null)throw Error("Session list provider is missing");return e}function o(e){let t=a();return x((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function h(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
|
|
2
|
-
export{Pa,s,bs,a,Zn,o,h};
|
package/dist/chunk-v066qn38.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,o}from"./chunk-tzr6phth.js";import{QUICK_CHATS_GROUP as m,sessionGroup as l}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useMemo as L}from"react";function va(i){let t=a(),e=o((s)=>s.projectContext),c=i===null?m:e?l(e,{cwd:t.projectPath(i)}).id:null,u=o((s)=>s.sessionList),d=o((s)=>s.connection),r=o((s)=>s.sessionListLoaded),n=o((s)=>s.sessionListError),f=()=>t.listSessions({reset:!0}).catch(()=>{return});return S(()=>{if(d==="ready"&&!r&&n===null)t.listSessions().catch(()=>{return})},[t,d,r,n]),{result:L(()=>{if(r&&e)return{status:"ready",sessionRows:u.filter((s)=>l(e,{...s,cwd:t.projectPath(s.cwd)}).id===c).toSorted((s,p)=>(p.updatedAt??"").localeCompare(s.updatedAt??""))};if(n!==null)return{status:"failed",error:n};return{status:"loading"}},[t,u,r,n,c,e]),retry:f}}
|
|
2
|
-
export{va};
|
package/dist/chunk-v2m44e5f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{v}from"./chunk-xdrwsxqy.js";import{e}from"./chunk-tac30kkh.js";import{xe,T}from"./chunk-1dkd8jt0.js";import{He}from"./chunk-yey8qz6h.js";import{an}from"./chunk-rqck9w0f.js";import{useRef as k,useState as c}from"react";import{Button as E}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as s,jsxs as b}from"react/jsx-runtime";function sn({client:l,session:i,providers:S,catalog:w}){let{host:n}=e(),m=(o)=>n.reportError?n.reportError(o):console.error(o),a=He(S,m),[p,u]=c(!1),d=k(!1),[f,g]=c(null),y=v(l.store,(o)=>o.connection==="ready"),x=p||!y||i.restoring,[r,M]=c(null),C=v(l.store,(o)=>o.nativeModels),P=r!==null&&(C.some((o)=>o.id===r)||a!==null&&xe(a).some((o)=>o.models.some((t)=>T(o.id,t.id)===r)));async function h(o){if(d.current||!y||i.restoring)return;d.current=!0,M(o),g(null),u(!0);try{await l.resumeModel(i.id,o)}catch(t){g(t instanceof Error?t.message:String(t)),m(t)}finally{d.current=!1,u(!1)}}return b("div",{className:"text-muted-foreground flex flex-wrap items-center gap-3 px-4 py-3 text-sm","aria-busy":p,"data-model-recovery":!0,children:[b("div",{className:"min-w-0 flex-1 basis-full",children:[s("p",{children:n.t("provider.managed.reselect")}),f&&s("p",{role:"alert",className:"text-destructive break-words",children:f})]}),s("fieldset",{disabled:x,children:s(an,{snapshot:a,model:r,onChange:M,nativeModels:C,catalog:w})}),s(E,{size:"sm",disabled:x||!P,onClick:()=>{if(r!==null)h(r)},children:n.t("provider.managed.resume")})]})}
|
|
2
|
-
export{sn};
|
package/dist/chunk-x5cv0bfc.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Mr}from"./chunk-atdygnc5.js";import{gr}from"./chunk-6qh7fvgs.js";import{zr}from"./chunk-52y91amb.js";import{u,_,yt}from"./chunk-2b7fjev1.js";import{Me}from"./chunk-br1vyrce.js";import{fr,hr,vr,yr,xr}from"./chunk-gzf6kzm0.js";import{Ir,Tr}from"./chunk-gjdeaqy2.js";import{H}from"./chunk-05eftctr.js";import{To}from"./chunk-cc8cg69z.js";import{Io}from"./chunk-8x33007g.js";import{n}from"./chunk-xdrwsxqy.js";import{e}from"./chunk-tac30kkh.js";import{uo,Ui}from"./chunk-2gp33sx4.js";import{po}from"./chunk-qhes5k0g.js";import{r,Vi,q,rn}from"./chunk-ckdkm4n7.js";import{Wt}from"./chunk-k025mmnv.js";import{Qe,nn}from"./chunk-sm16wn9x.js";import{Xt,en}from"./chunk-4r8pqg1h.js";import{Bi}from"./chunk-x6cfmt4y.js";import{Qt}from"./chunk-04778wzq.js";import{Gi}from"./chunk-rcfjwyt4.js";import{Zt}from"./chunk-0ppwk6y9.js";import{tn}from"./chunk-hhnxwgz5.js";import{Oi}from"./chunk-r9vjpafx.js";import{Hi}from"./chunk-dav36sjv.js";import{En}from"./chunk-yqjmqa0t.js";import{hasFuzzyFileSearch as jt}from"@nyssance/codex-acp-v2/client";import{useCallback as w,useEffect as qt,useLayoutEffect as rt,useMemo as lt,useRef as N,useState as M}from"react";import{jsx as s,jsxs as R}from"react/jsx-runtime";var Gt=["image/png","image/jpeg","image/webp","image/gif"],pt=[];async function Yt(o){let T=await(await fetch(o.url)).blob();return new Promise((I,S)=>{let E=new FileReader;E.onerror=()=>S(E.error),E.onload=()=>{let G=E.result;I(G.slice(G.indexOf(",")+1))},E.readAsDataURL(T)})}function Se({session:o,onSubmit:T,onShellCommand:I,onHandOff:S,modelSelector:E,modelMenu:G,inputHeader:st,actions:Mt,leadingTools:Rt,agentControls:Q=!0,placeholder:Et,children:kt,attachmentPolicy:Dt,predictions:Nt=!0,disabled:St=!1,preparing:mt=!1,allowPendingInput:Ft=!1}){let{host:F,client:O}=e(),{t:g}=F,z=w((t)=>{if(F.reportError)F.reportError(t);else console.error(t)},[F]),[dt,B]=M(()=>({text:r.get(o.id)?.text??"",revision:0})),{text:v}=dt,[C,Ot]=M(()=>r.get(o.id)?.attachments??pt),[y,Y]=M(()=>r.get(o.id)?.mentions??[]),[m,L]=M(()=>r.get(o.id)?.apps??[]),[ut,K]=M(()=>(r.get(o.id)?.apps?.length??0)>0||H(v,o.commands.map((t)=>t.name)).length>0),W=N(void 0),U=N(void 0);rt(()=>{if(m.length>0)K(!0)},[m.length]);let nt=C.some((t)=>Qe(t)&&t.pastedText.status!=="ready"),[k,ft]=M(!1),[V,_t]=M(!1),[ot,Lt]=M(!1),it=N(null),f=N(null),ht=N(null),c=N(dt),P=w((t)=>{ht.current?.(),c.current={text:t,revision:c.current.revision+1},B(c.current)},[]),gt=w((t)=>{let i=f.current;if(i?.insertApplication){i.insertApplication(t);return}let a=c.current.text,d=i?.getTextarea()?.selectionStart??a.length;U.current={text:a,apps:[]},W.current=d+1,K(!0),P(a),L((l)=>l.some((h)=>h.id===t.id)?l:[...l,{...t,offset:d}])},[P]),$t=w((t)=>{let i=f.current;if(i?.insertInvocation){i.insertInvocation(t);return}let a=c.current.text,d=i?.getTextarea(),l=d?.selectionStart??a.length,h=d?.selectionEnd??l,ct=`${a.slice(0,l)}${t} ${a.slice(h)}`;U.current={text:a,apps:[]},W.current=l+t.length+1,P(ct),K(!0)},[P]),xt=w(()=>(f.current?.focus(),f.current?.getTextarea()??null),[]),Ut=Oi(o,P,L,m.length>0||y.length>0||C.length>0),bt=lt(()=>({read:()=>{let i=f.current?.getTextarea(),a=i===null||i===void 0?[c.current.text.length,c.current.text.length]:[i.selectionStart,i.selectionEnd];return{target:o.id,...c.current,selection:a}},compareAndSet(i,a,d){if(f.current?.isComposing())return null;if(i.target!==o.id||i.revision!==c.current.revision)return null;c.current={text:a,revision:c.current.revision+1},B(c.current);let l=f.current?.getTextarea();if(l!==null&&l!==void 0)l.value=a,l.setSelectionRange(d[0],d[1]);return{target:o.id,...c.current,selection:d}}}),[o.id]),j=N(null),vt=w((t)=>(j.current=t,()=>{if(j.current===t)j.current=null}),[]),X=o.state!=="idle",x=I!==void 0&&m.length===0&&v.startsWith("!"),J=(ut||m.length>0)&&!x,b=!St&&!mt&&o.attached&&!o.restoring&&!o.readOnly,D=!o.readOnly&&(Ft||b),Z=tn(o,b&&!k&&!V&&!nt&&!ot,v.length>0||C.length>0||y.length>0||m.length>0,Nt&&!x),Pt=Z.invalidate;rt(()=>{r.set(o.id,{text:v,attachments:C,mentions:y,...m.length>0?{apps:m}:{},modelId:r.get(o.id)?.modelId??null})},[o.id,v,C,y,m]),rt(()=>Vi(o.id,Ot),[o.id]),rt(()=>rn(o.id,(t)=>{if(!D||k)throw Error("The composer cannot take text now; try again later");if(v.length||C.length||y.length||m.length)throw Error("The composer already has a draft; send or clear it first");P(t)}),[o.id,D,k,v,C,y,m,P]);let It=n((t)=>jt(t.agent)),zt=lt(()=>It&&b?async(t)=>Wt((await O.fuzzyFileSearch({query:t,roots:[o.cwd],cancellationToken:null})).files):void 0,[O,It,b,o.cwd]),at=w((t)=>{Y((i)=>i.includes(t)?i:[...i,t])},[]);qt(()=>{f.current?.focus()},[]);let At=w(async({text:t,files:i})=>{let a=I!==void 0&&m.length===0&&t.startsWith("!")?t.slice(1):null;if(a!==null){if(a.trim().length===0)return;if(i.length||y.length||m.length)throw Error("Shell commands cannot include file references or attachments");if(o.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let d=t.trim();if(d.length===0&&i.length===0&&y.length===0&&m.length===0)return;let l=j.current;ft(!0);let h=r.get(o.id),ct=c.current.revision,tt=null;try{let A=m.map((p)=>({type:"resource_link",name:p.name,uri:`app://${p.id}`}));for(let p of y){let et={kind:"file",absPath:p};A.push({type:"resource_link",uri:Xt(et),name:en(et)})}let Ct=zr(d,m);if(Ct.length>0)A.push({type:"text",text:Ct});for(let p of i)if(Qe(p)){if(p.pastedText.status!=="ready")throw Error("Text attachment is not ready");A.push({type:"resource_link",uri:p.url,name:p.filename??"pasted-text.txt"})}else A.push({type:"image",data:await Yt(p),mimeType:p.mediaType});if(c.current.revision===ct&&r.get(o.id)===h)c.current={text:"",revision:c.current.revision+1},tt=c.current.revision,B(c.current),Y([]),L([]),W.current=void 0,U.current=void 0,q(o.id,()=>pt),r.set(o.id,{text:"",attachments:pt,mentions:[],apps:[],modelId:h?.modelId??null}),f.current?.resetHeight();if(a!==null&&I)await I(a);else if(T)if(l===null)await T(A);else await T(A,(p)=>{if(l.signal.aborted||j.current!==l)return;l.accept(p),S?.(o.id,p)});else if(l===null)await O.prompt(o.id,A);else{let p=await O.prompt(o.id,A);l.accept(p)}Pt();for(let p of h?.attachments??[])if(p.url.startsWith("blob:")&&!r.get(o.id)?.attachments.some((et)=>et.id===p.id))URL.revokeObjectURL(p.url)}catch(A){if(h&&tt!==null&&c.current.revision===tt&&r.get(o.id)?.attachments.length===0&&r.get(o.id)?.mentions.length===0&&!r.get(o.id)?.apps?.length)c.current={text:h.text,revision:tt+1},B(c.current),Y(h.mentions),L(h.apps??[]),r.set(o.id,h),q(o.id,()=>h.attachments);throw A}finally{ft(!1),f.current?.focus()}},[O,o.id,o.state,y,m,T,I,S,Pt]),Bt=()=>{O.cancel(o.id).catch(z)},Ht=w((t)=>{let i=t.code==="max_total_size"?Object.assign(Error(g("composer.imageTooLargeTitle")),{description:g("composer.imageTooLargeDescription",{mb:Me})}):Object.assign(Error(g("composer.unsupportedAttachmentTitle")),{description:g("composer.unsupportedAttachmentDescription")});z(i)},[z,g]),Kt=lt(()=>({session:o,ready:b,inputReady:D,sending:k,textareaRef:f,draft:bt,interruptRef:ht,observeReceipts:vt,addMention:at,setAdding:_t,shellMode:x,handsFree:!x&&(T===void 0||S!==void 0)}),[o,b,D,k,bt,vt,at,T,S,x]),wt=F.writeTextAttachment,Tt={className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,onKeyDown:Ut,bashMode:I!==void 0,disabled:!D,"aria-label":g("composer.placeholder"),placeholder:x?"! command":Z.text||Et||(X?g("composer.steerPlaceholder"):g("composer.placeholder")),onPasteCapture:(t)=>{if(!J&&!x&&!t.currentTarget.disabled&&![...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/"))){let i=yt(t.clipboardData);if(i?.apps.length){t.preventDefault();let a=t.currentTarget,d=u(i),l=_([...a.value.slice(0,a.selectionStart).split(""),...d,...a.value.slice(a.selectionEnd).split("")]);U.current={text:v,apps:[]},W.current=a.selectionStart+d.length,K(!0),L(l.apps),P(l.text);return}}if(wt)nn(t,o.id,g("composer.pastedTextFilename"),wt)}};return s(po,{value:Kt,children:s("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&&s("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}),s(Mr,{attachmentPolicy:Dt,value:v,revision:c.current.revision,onValueChange:P,onSubmittedClear:()=>{c.current={text:"",revision:c.current.revision+1},B(c.current)},attachments:C,onAttachmentsChange:(t)=>q(o.id,()=>t),children:R("div",{ref:it,className:"relative",children:[Q&&!ot&&s(gr,{bashMode:I!==void 0,handleRef:f,commands:o.commands,renderSlashMenu:(t)=>s(uo,{anchorRef:it,commands:o.commands,query:t.query,includeAttachment:!1,disabled:!D,agentDisabled:!b||x,open:!0,onClose:t.close,onCommand:(i)=>t.replaceQuery(()=>$t(i.startsWith("$")?i:`/${i}`)),onApp:(i)=>t.replaceQuery(()=>gt(i)),focusInput:xt}),searchFiles:zt,onMention:at,onSearchError:z,emptyLabel:g("composer.noCommands"),fileStatusLabels:{loading:g("composer.searchingFiles"),empty:g("composer.noMatchingFiles")}},J?"inline":"textarea"),R(fr,{"data-shell-mode":x||void 0,bashMode:I!==void 0,globalDrop:!0,multiple:!0,accept:Gt.join(","),onError:Ht,onSubmit:At,onSubmitAsync:At,onSubmitError:z,canSubmit:()=>b&&!k&&!V&&!nt&&(!x||!X&&v.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[kt,R(vr,{className:"px-3 pt-3 pb-0 empty:hidden",children:[V&&s("span",{role:"status",className:"text-muted-foreground text-xs",children:g("composer.addingFiles")}),s(Bi,{mentions:y,onRemove:(t)=>Y((i)=>i.filter((a)=>a!==t))}),s(Tr,{children:(t)=>Qe(t)?s(Gi,{data:t,sessionId:o.id}):s(Ir,{data:t,t:g})})]}),R(hr,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(t)=>{if(!Z.text||f.current?.isComposing()||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||t.target!==f.current?.getTextarea())return;if(t.key==="Tab"||t.key==="ArrowRight"||t.key==="Enter")t.preventDefault(),t.stopPropagation(),P(Z.text)},children:[x&&s("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),J?s(To,{...Tt,skillIcon:F.skillIcon,skillNames:o.commands.map((t)=>t.name),applications:m,onApplicationsChange:L,initialCaret:W.current,initialUndo:U.current}):s(Io,{...Tt,autoFocus:ut&&x})]}),s(yr,{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:[s(Ui,{anchorRef:it,commands:o.commands,disabled:!D,agentDisabled:!b||x,agentControls:Q,open:ot,onOpenChange:Lt,focusInput:xt,onCommand:(t)=>{let i=c.current.text,a=i.length===0||i.endsWith(`
|
|
2
|
-
`)?i:`${i}
|
|
3
|
-
`,d=t.startsWith("$")?t:`/${t}`,l=`${a}${d} `;if(!J)U.current={text:i,apps:[]},W.current=l.length,K(!0);P(l),requestAnimationFrame(()=>{let h=f.current?.getTextarea();h?.focus(),h?.setSelectionRange(l.length,l.length)})},onApp:gt}),Rt,Q&&s(Zt,{sessionId:o.id,options:o.configOptions,disabled:!b})]}),R(xr,{className:"w-full min-w-0 items-center justify-end gap-1",children:[Q&&s(En,{session:o}),E??s(Qt,{...G,sessionId:o.id,options:o.configOptions,disabled:!b}),Mt,s(Hi,{active:X,sending:k||mt||V,ready:b&&!nt&&(!x||!X&&v.slice(1).trim().length>0),hasMentions:y.length>0||m.length>0,onStop:Bt})]})]})})]})]})})]})})})}
|
|
4
|
-
export{Se};
|
package/dist/chunk-xdrwsxqy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ss}from"./chunk-10ar0368.js";import{createContext as s,useContext as o,useSyncExternalStore as m}from"react";import{jsx as l}from"react/jsx-runtime";var u=s(null),c=s(null),qo=s(null);function ie(){return o(qo)}function Fe({host:e,client:i,children:r}){return l(ss,{host:e,children:l(u,{value:e,children:l(c,{value:i,children:r})})})}function t(){let e=o(u);if(e===null)throw Error("Timeline host is missing");return e}function Oe(){let e=o(c);if(e===null)throw Error("Timeline client is missing");return e}function v(e,i){return m((r)=>e.subscribe(r),()=>i(e.getState()),()=>i(e.getState()))}function n(e){let i=Oe();return v(i.store,e)}function Ko(){return o(u)!==null}function re(e,i){if(e.reportError)e.reportError(i);else console.error(i)}
|
|
2
|
-
export{qo,ie,Fe,t,Oe,v,n,Ko,re};
|
package/dist/chunk-xx0hs7b3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-xdrwsxqy.js";import{Ln,e,w}from"./chunk-tac30kkh.js";import{Se}from"./chunk-x5cv0bfc.js";import{$t}from"./chunk-tdw5wrey.js";import{zt}from"./chunk-shk5mmmw.js";import{Vt,jt}from"./chunk-4cnm37fs.js";import{Gt}from"./chunk-t4vfpx6a.js";import{LockIcon as k,UnplugIcon as O}from"lucide-react";import{useMemo as S,useRef as M}from"react";import{Alert as x,AlertDescription as C,AlertTitle as N}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as h}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as P,EmptyDescription as z,EmptyHeader as B,EmptyTitle as I}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as o,jsxs as r}from"react/jsx-runtime";function Ps({host:t,client:c,...s}){let m=S(()=>t.openDiff?t:{...t,openDiff:Vt},[t]);return r(Ln,{host:m,client:c,children:[o(L,{...s}),!t.openDiff&&o(jt,{})]})}function L({session:t,header:c,overlay:s,timeline:m,composer:D,readOnlyActions:g,recovery:E,welcome:R,children:T,rootRef:l,search:A=!0}){let{host:d,client:b}=e(),p=M(null),H=(a)=>{if(p.current=a,typeof l==="function")l(a);else if(l)l.current=a},{t:i}=d,f=n((a)=>a.connection==="ready"),v=n((a)=>a.historyPages[t.id]?.error),y=()=>w(d,b.open(t.id,t.cwd)),u=t.items.length===0&&t.attached&&!t.restoring&&t.state==="idle";return r("div",{"data-chat-drop-zone":!0,ref:H,className:"flex h-full min-h-0 flex-col",children:[c,r("div",{className:"relative flex min-h-0 flex-1 flex-col","data-chat-content":!0,children:[A&&!u&&o(zt,{sessionId:t.id,rootRef:p}),s,f&&!t.attached&&!t.restoring&&!t.readOnly&&o("div",{className:"mx-auto my-3 w-full max-w-4xl px-4",children:r(x,{children:[o(O,{}),o(N,{children:i("conversation.stopped")}),o(C,{children:o(h,{size:"sm",variant:"outline",onClick:y,children:i("conversation.reconnect")})})]})}),u?R??o(P,{className:"flex-1",children:r(B,{children:[o(I,{className:"text-[28px] font-normal",children:i("conversation.welcomeTitle")}),o(z,{children:i("conversation.welcomeDescription")})]})}):o($t,{session:t,timeline:m}),o(Gt,{sessionId:t.id}),E??(t.readOnly?o("div",{className:"mx-auto w-full max-w-3xl shrink-0 px-6 pb-5","data-readonly-composer":!0,children:r(x,{className:"flex items-center justify-between gap-4 rounded-3xl px-5 py-4",children:[r("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[o(k,{"aria-hidden":"true",className:"size-4 shrink-0"}),r("div",{className:"min-w-0 space-y-1",children:[o(N,{children:i("conversation.readOnlyTitle")}),o(C,{children:i("conversation.readOnlyDescription")}),v&&o("p",{role:"alert",className:"text-destructive break-words",children:v})]})]}),r("div",{className:"border-border flex shrink-0 items-center gap-1 border-s ps-3","data-readonly-actions":!0,children:[o(h,{size:"sm",variant:"outline",className:"text-foreground cursor-pointer disabled:cursor-not-allowed",onClick:y,disabled:!f||t.restoring,children:i(t.restoring?"conversation.restoring":"conversation.readOnlyRetry")}),g]})]})}):D??o(Se,{session:t}))]}),T]})}
|
|
2
|
-
export{Ps};
|
package/dist/chunk-yaxe4yd4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function Yo(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function Qn(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function Ke(t){return t.type==="array"}function qt(t){return(Ke(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{Yo,Qn,Ke,qt};
|
package/dist/chunk-yfnnrm9g.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{c,L}from"./chunk-10ar0368.js";import{So}from"./chunk-xj2qfepx.js";import{K}from"./chunk-9bk8tg2w.js";import{k}from"./chunk-mz8tjgre.js";import{Ye,dr}from"./chunk-322m8vk4.js";import{ge}from"./chunk-vxkkzs4m.js";import{cn as v}from"cn";import{BotIcon as ue,CheckIcon as me,CopyIcon as pe}from"lucide-react";import{Fragment as fe,memo as xe,useEffect as P,useRef as U,useState as _}from"react";import{jsx as n,jsxs as p,Fragment as D}from"react/jsx-runtime";function Ce(e,t){if(e.status==="pending"||e.status==="in_progress")return;if(e.status==="cancelled"||e.status==="interrupted")return t("stream.codex.commandStopped");if(e.exitCode!==void 0&&e.exitCode!==0)return t("stream.codex.exitCode",{code:e.exitCode});if(e.status==="completed"&&e.exitCode===void 0)return;return t(e.status==="failed"?"stream.codex.commandFailed":"stream.codex.commandSucceeded")}function H(e,t){let[a,o]=_(()=>({key:e,mounted:t})),i=t||a.key===e&&a.mounted;if(a.key!==e||a.mounted!==i)o({key:e,mounted:i});return i}var G=new WeakMap,q=1;function N(e){if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return`${e.type}:${e.id}`;if(e.type==="thinking"&&e.id!==void 0)return`thinking:${e.id}`;let t=G.get(e);if(t!==void 0)return`${e.type}:${t}`;let a=q;return q+=1,G.set(e,a),`${e.type}:${a}`}function b(e){switch(e){case"pending":case"in_progress":return!0;case"completed":case"failed":case"cancelled":case"interrupted":return!1;default:throw Error(`Unknown ACP tool status: ${e}`)}}function V(e,t){let a=Math.max(0,Math.round(e/1000)),o=Math.floor(a/3600),i=Math.floor(a%3600/60),r=a%60;if(r>=60)i+=Math.floor(r/60),r%=60;if(i>=60)o+=Math.floor(i/60),i%=60;let u=Intl.DurationFormat;if(u)try{return new u(t,{style:"narrow"}).format({hours:o,minutes:i,seconds:o>0?0:r})}catch{}if(o>0)return i>0?`${o}h ${i}m`:`${o}h`;if(i>0)return r>0?`${i}m ${r}s`:`${i}m`;return`${r}s`}var ye="M7.52925 3.7793C7.75652 3.55203 8.10803 3.52383 8.36616 3.69434L8.47065 3.7793L14.2207 9.5293C14.4804 9.789 14.4804 10.211 14.2207 10.4707L8.47065 16.2207C8.21095 16.4804 7.78895 16.4804 7.52925 16.2207C7.26955 15.961 7.26955 15.539 7.52925 15.2793L12.8085 10L7.52925 4.7207L7.44429 4.61621C7.27378 4.35808 7.30198 4.00657 7.52925 3.7793Z";function M({expanded:e,className:t}){return n("svg",{className:v("codex-activity-disclosure",e&&"codex-activity-disclosure-expanded",t),viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:ye})})}function ve(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.3965 5.01128C16.3963 4.93399 16.3489 4.87691 16.293 4.85406L16.2354 4.84332C13.9306 4.91764 12.5622 5.32101 10.665 6.34722V16.3716C11.3851 15.9994 12.0688 15.7115 12.7861 15.5015C13.8286 15.1965 14.9113 15.0633 16.2402 15.0435L16.2979 15.0308C16.353 15.0063 16.3965 14.9483 16.3965 14.8755V5.01128ZM3.54492 14.8765C3.54492 14.9725 3.62159 15.0422 3.70117 15.0435L4.19629 15.0562C5.94062 15.1247 7.26036 15.4201 8.65918 16.0484C8.05544 15.1706 7.14706 14.436 6.17871 14.1109V14.1099C5.56757 13.9045 5.16816 13.3314 5.16797 12.6988V4.98882C4.86679 4.93786 4.60268 4.8999 4.28223 4.87457L3.72754 4.84429C3.62093 4.84079 3.54505 4.92417 3.54492 5.01226V14.8765ZM17.7266 14.8755C17.7266 15.6314 17.1607 16.2751 16.4121 16.3628L16.2598 16.3736C15.0122 16.3922 14.0555 16.5159 13.1602 16.7779C12.2629 17.0404 11.3966 17.4508 10.3369 18.0738C10.129 18.1959 9.87099 18.1958 9.66309 18.0738C7.71455 16.9283 6.31974 16.4689 4.12988 16.3853L3.68164 16.3736C2.85966 16.3614 2.21484 15.6838 2.21484 14.8765V5.01226C2.21497 4.15391 2.93263 3.4871 3.77246 3.51519L4.39844 3.54937C4.67996 3.57191 4.92258 3.60421 5.16797 3.64214V2.51031C5.16797 1.44939 6.29018 0.645615 7.31055 1.15679L7.31152 1.15582C8.78675 1.89511 10.0656 3.33006 10.5352 4.91461C12.3595 3.98907 13.8688 3.58817 16.1924 3.51324L16.3506 3.51714C17.1285 3.5741 17.7264 4.23496 17.7266 5.01128V14.8755ZM6.49805 12.6988C6.49824 12.7723 6.5442 12.8296 6.60254 12.8492L6.96289 12.9859C7.85245 13.3586 8.68125 13.9846 9.33496 14.7496V5.5816C9.08794 4.37762 8.13648 3.1566 6.95801 2.47613L6.71582 2.34527C6.67779 2.32617 6.6337 2.32502 6.58301 2.35796C6.52946 2.39279 6.49805 2.44863 6.49805 2.51031V12.6988Z"})})}function he(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M7.33057 1.98535C10.2484 1.98535 12.6136 4.3508 12.6138 7.26855C12.6138 8.58031 12.1346 9.77942 11.3433 10.7031L13.9897 13.3496C14.1655 13.5253 14.1655 13.8106 13.9897 13.9863C13.814 14.1621 13.5288 14.1621 13.353 13.9863L10.7017 11.335C9.78678 12.0942 8.61243 12.5518 7.33057 12.5518C4.41281 12.5516 2.04736 10.1864 2.04736 7.26855C2.04754 4.35091 4.41292 1.98553 7.33057 1.98535ZM7.33057 2.88574C4.90998 2.88592 2.94793 4.84796 2.94775 7.26855C2.94775 9.68929 4.90987 11.6522 7.33057 11.6523C9.75141 11.6523 11.7144 9.6894 11.7144 7.26855C11.7142 4.84786 9.75131 2.88574 7.33057 2.88574Z"})})}function we(){return p("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:[n("path",{d:"M6.19629 7.86231C6.42357 7.63534 6.7752 7.60692 7.0332 7.77734L7.1377 7.86231L8.80371 9.5293C9.06329 9.78889 9.06307 10.21 8.80371 10.4697L7.1377 12.1367C6.878 12.3964 6.45599 12.3964 6.19629 12.1367C5.93686 11.8771 5.93697 11.456 6.19629 11.1963L7.39258 9.99902L6.19629 8.80371L6.11133 8.69922C5.94087 8.4411 5.96904 8.08955 6.19629 7.86231Z"}),n("path",{d:"M13.4668 11.0156C13.7699 11.0776 13.998 11.3456 13.998 11.667C13.9979 11.9883 13.7698 12.2564 13.4668 12.3184L13.333 12.332H10.833C10.466 12.3319 10.1682 12.034 10.168 11.667C10.168 11.2998 10.4659 11.0021 10.833 11.002H13.333L13.4668 11.0156Z"}),n("path",{d:"M12.6602 2.66504C13.3492 2.66504 13.9062 2.66439 14.3564 2.70117C14.8142 2.73859 15.2201 2.81796 15.5967 3.00977C16.1922 3.31321 16.677 3.79805 16.9805 4.39356C17.1722 4.77014 17.2517 5.17604 17.2891 5.63379C17.3258 6.08402 17.3252 6.64102 17.3252 7.33008V12.6602C17.3252 13.3492 17.3258 13.9062 17.2891 14.3564C17.2516 14.8142 17.1723 15.2201 16.9805 15.5967C16.677 16.1922 16.1922 16.677 15.5967 16.9805C15.2201 17.1723 14.8142 17.2516 14.3564 17.2891C13.9062 17.3258 13.3492 17.3252 12.6602 17.3252H7.33008C6.64102 17.3252 6.08402 17.3258 5.63379 17.2891C5.17604 17.2517 4.77014 17.1722 4.39356 16.9805C3.79805 16.677 3.31321 16.1922 3.00977 15.5967C2.81796 15.2201 2.73859 14.8142 2.70117 14.3564C2.66439 13.9062 2.66504 13.3492 2.66504 12.6602V7.33008C2.66504 6.64101 2.66439 6.08402 2.70117 5.63379C2.73858 5.17601 2.81797 4.77016 3.00977 4.39356C3.31321 3.79802 3.79802 3.31321 4.39356 3.00977C4.77016 2.81797 5.17601 2.73858 5.63379 2.70117C6.08402 2.66439 6.64101 2.66504 7.33008 2.66504H12.6602ZM7.33008 3.99512C6.61907 3.99512 6.1257 3.99601 5.74219 4.02734C5.3665 4.05804 5.15508 4.11481 4.99707 4.19531C4.65183 4.37124 4.37124 4.65183 4.19531 4.99707C4.11481 5.15508 4.05805 5.3665 4.02734 5.74219C3.99601 6.1257 3.99512 6.61908 3.99512 7.33008V12.6602C3.99512 13.3711 3.99601 13.8646 4.02734 14.248C4.05805 14.6237 4.11481 14.8352 4.19531 14.9932C4.37124 15.3384 4.65186 15.619 4.99707 15.7949C5.15507 15.8754 5.36654 15.9322 5.74219 15.9629C6.1257 15.9942 6.61908 15.9951 7.33008 15.9951H12.6602C13.3711 15.9951 13.8646 15.9942 14.248 15.9629C14.6237 15.9322 14.8352 15.8754 14.9932 15.7949C15.3384 15.619 15.619 15.3384 15.7949 14.9932C15.8754 14.8352 15.9322 14.6237 15.9629 14.248C15.9942 13.8646 15.9951 13.3711 15.9951 12.6602V7.33008C15.9951 6.61908 15.9942 6.1257 15.9629 5.74219C15.9322 5.36654 15.8754 5.15507 15.7949 4.99707C15.619 4.65186 15.3384 4.37124 14.9932 4.19531C14.8352 4.11481 14.6237 4.05805 14.248 4.02734C13.8646 3.99601 13.3711 3.99512 12.6602 3.99512H7.33008Z"})]})}function Le(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M11.3312 4.20472C12.7488 2.92391 14.9377 2.96644 16.3039 4.33265L16.4318 4.46742C17.6713 5.8393 17.6713 7.93343 16.4318 9.30531L16.3039 9.44007L10.0119 15.7311C9.68839 16.0546 9.45384 16.2917 9.22185 16.4821L8.98748 16.6588C8.78233 16.799 8.56429 16.9196 8.33709 17.0192L8.10759 17.1119C7.92582 17.1785 7.73843 17.2266 7.52166 17.2711L6.75701 17.4069L4.36345 17.8053C4.22059 17.8291 4.06914 17.8552 3.9406 17.8649C3.84183 17.8723 3.70833 17.875 3.56267 17.8395L3.41423 17.7907C3.19121 17.695 3.00747 17.5271 2.89177 17.316L2.84588 17.2223C2.75958 17.0209 2.76174 16.8276 2.77166 16.6959C2.78136 16.5674 2.80742 16.4159 2.83123 16.2731L3.22966 13.8795L3.36443 13.1149C3.40899 12.898 3.45795 12.7108 3.52459 12.5289L3.61736 12.2985C3.71691 12.0715 3.83772 11.854 3.97771 11.6491L4.15349 11.4147C4.34392 11.1825 4.58171 10.9484 4.90545 10.6246L11.1965 4.33265L11.3312 4.20472ZM5.84588 11.5651C5.49671 11.9142 5.31258 12.0998 5.1867 12.2526L5.07537 12.3991C4.98194 12.5358 4.90157 12.6812 4.83513 12.8327L4.77361 12.9869C4.73328 13.0971 4.70248 13.2125 4.66814 13.3815L4.54119 14.0983L4.14275 16.4918L4.14177 16.4938H4.1447L6.53826 16.0944L7.25505 15.9684C7.42406 15.9341 7.53946 15.9033 7.64959 15.8629L7.80291 15.8014C7.95461 15.7349 8.09953 15.6538 8.2365 15.5602L8.38396 15.4498C8.53674 15.3239 8.72231 15.1398 9.07146 14.7907L14.0588 9.80238L10.8332 6.57679L5.84588 11.5651ZM15.3635 5.27308C14.5281 4.43776 13.2058 4.38573 12.3097 5.11683L12.1369 5.27308L11.7736 5.63636L15.0002 8.86195L15.3635 8.49964L15.5197 8.32581C16.2015 7.48961 16.2015 6.28311 15.5197 5.44691L15.3635 5.27308Z"})})}function z(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.8347 7.91699C16.8347 7.76279 16.8266 7.61021 16.8123 7.45996L15.4705 8.80371C14.2903 9.98388 12.3762 9.98388 11.1961 8.80371C10.016 7.62352 10.0159 5.70942 11.1961 4.5293L12.5378 3.18652C12.3885 3.17238 12.237 3.16505 12.0837 3.16504C9.45947 3.16504 7.33179 5.29272 7.33179 7.91699C7.33184 8.56608 7.46162 9.18329 7.69605 9.74512C7.79981 9.9939 7.74311 10.2811 7.5525 10.4717L3.59547 14.4287C3.0498 14.9744 3.04991 15.8586 3.59547 16.4043L3.70191 16.501C4.25076 16.9483 5.05957 16.9158 5.57105 16.4043L9.52906 12.4473L9.60426 12.3828C9.79018 12.2455 10.0369 12.2131 10.2546 12.3037C10.8166 12.5382 11.4345 12.668 12.0837 12.668C14.7078 12.6678 16.8345 10.541 16.8347 7.91699ZM18.1648 7.91699C18.1646 11.2755 15.4423 13.9979 12.0837 13.998C11.4151 13.998 10.7708 13.8886 10.1677 13.6885L6.51246 17.3457C5.51389 18.3443 3.93332 18.406 2.86207 17.5322L2.65504 17.3457C1.58992 16.2806 1.58992 14.5534 2.65504 13.4883L6.31031 9.83203C6.1104 9.22921 6.00175 8.58526 6.00172 7.91699C6.00172 4.55818 8.72494 1.83496 12.0837 1.83496C12.7838 1.835 13.458 1.95316 14.0857 2.17188L14.1638 2.20508C14.3404 2.29325 14.4697 2.45713 14.5144 2.65234C14.5653 2.87533 14.4984 3.10876 14.3367 3.27051L12.1375 5.4707C11.4767 6.13148 11.4767 7.20251 12.1375 7.86328C12.7983 8.52373 13.8694 8.52395 14.53 7.86328L16.7293 5.66309L16.7937 5.60742C16.9499 5.48687 17.1532 5.44067 17.3484 5.48535C17.5714 5.53648 17.7526 5.69898 17.8279 5.91504C18.0466 6.54272 18.1648 7.21689 18.1648 7.91699Z"})})}function ee({block:e}){if(e.type!=="tool_use")return null;if(O(e))return n(z,{});let t=K(e).category;if(t==="read")return n(ve,{});if(t==="search"||t==="fetch")return n(he,{});if(t==="execute")return n(we,{});if(t==="edit")return n(Le,{});return n(z,{})}function I(e,t){let a=e.rawInput[t];return typeof a==="string"&&a.length>0?a:void 0}function Ne(e){return K(e).target}function W(e){return e.name==="mcp"||e.name.startsWith("mcp__")||e.name.startsWith("mcp_")}function O(e){return W(e)||e.name==="dynamic_tool"}function te(e,t){let{category:a}=K(e),o=Ne(e),i=b(e.status);if(O(e))return{leading:e.title};if(a==="execute"){let r=I(e,"command")?.split(`
|
|
2
|
-
`)[0]??o;return r?{leading:t(i?"stream.codex.running":"stream.codex.ran"),trailing:r}:{leading:t(i?"stream.codex.runningCommand":"stream.codex.ranCommandGeneric")}}if(a==="search"){let r=I(e,"pattern")??I(e,"query")??o;return r?{leading:t(i?"stream.codex.searching":"stream.codex.searched"),trailing:t("stream.codex.forDetail",{detail:r})}:{leading:t(i?"stream.codex.searchingFiles":"stream.codex.searchedFiles")}}if(a==="fetch"){let r=I(e,"query")??I(e,"url")??o;return r?{leading:t(i?"stream.codex.searchingWeb":"stream.codex.searchedWeb"),trailing:t("stream.codex.forDetail",{detail:r})}:{leading:t(i?"stream.codex.searchingWeb":"stream.codex.searchedWeb")}}if(a==="read")return o?{leading:t("stream.codex.readLabel"),trailing:o}:{leading:t("stream.codex.readFiles")};if(a==="edit")return o?{leading:t(i?"stream.codex.editingLabel":"stream.codex.editedLabel"),trailing:o}:{leading:t(i?"stream.codex.editingFiles":"stream.codex.editedFiles")};if(a==="delete")return o?{leading:t(i?"stream.codex.deletingLabel":"stream.codex.deletedLabel"),trailing:o}:{leading:t(i?"stream.codex.deletingFiles":"stream.codex.deletedFiles")};if(a==="move")return o?{leading:t(i?"stream.codex.movingLabel":"stream.codex.movedLabel"),trailing:o}:{leading:t(i?"stream.codex.movingFiles":"stream.codex.movedFiles")};return{leading:e.title}}function be(e,t){let a=te(e,t);return a.trailing===void 0?a.leading:`${a.leading} ${a.trailing}`}function Te(e){return e.map((t)=>{if(t.type!=="content")return"";let a=t.content;return a.type==="text"?a.text:""}).filter(Boolean).join(`
|
|
3
|
-
`).trim()}function $e(e){return e.flatMap((t)=>{if(t.type!=="content")return[];let a=t.content;return a.type==="image"?[{data:a.data,mimeType:a.mimeType}]:[]})}function Ae(e){return e.flatMap((t)=>{if(t.type!=="content")return[];let a=t.content;return a.type==="audio"?[{data:a.data,mimeType:a.mimeType}]:[]})}function ke(e){if(typeof e==="string"&&e.length>0)return e;return}function Be(e){return e.type==="diff"}function Ie(e){let t=e.content.find(Be);if(t===void 0)return;return t.changes.map((a)=>`${a.operation} ${a.path}`).join(`
|
|
4
|
-
`)}function ne(e){let t=ke(e.rawOutput);if(t!==void 0)return t;let a=Te(e.content);if(a.length>0)return a;return Ie(e)}function J({block:e,command:t}){let{t:a,Output:o,commandStatus:i}=c(),[r,u]=_(!1),[d,l]=_(!1),m=ne(e),s=i===void 0?Ce(e,a):i(e),g=()=>{navigator.clipboard.writeText([`$ ${t}`,m].filter((f)=>f!==void 0).join(`
|
|
5
|
-
`)),u(!0),setTimeout(()=>u(!1),1500)};return n("div",{className:"codex-command-details",children:p("div",{className:"codex-command-card",children:[p("div",{className:"codex-command-line-row",children:[n("span",{className:"codex-command-prompt","aria-hidden":"true",children:"$"}),n("button",{type:"button",className:v("codex-command-line",!d&&"codex-command-line-clamped"),"data-codex-disclosure":"","aria-expanded":d,onClick:()=>l((f)=>!f),children:t}),n("button",{type:"button",className:"codex-command-copy","aria-label":a("actions.copy"),onClick:g,children:r?n(me,{}):n(pe,{})})]}),m!==void 0&&(o===void 0?n("pre",{className:"codex-command-output",children:m}):n(o,{text:m})),s!==void 0&&n("div",{className:"codex-command-footer",children:n("span",{className:"codex-command-status",children:s})})]})})}function ae({block:e}){let{t,openLink:a,Patch:o,openImage:i,commandStatus:r,expandToolOutput:u=!1}=c(),d=ne(e),l=o===void 0?void 0:e.content.flatMap((x)=>{if(x.type!=="diff")return[];let B=x;return B.patch?.text?[B.patch.text]:[]}).join(`
|
|
6
|
-
`),m=$e(e.content),s=Ae(e.content),[g,f]=k(`tool:${e.id}`,!1),C=H(`tool:${e.id}`,g),h=K(e),w=h.category,y=te(e,t),T=w==="execute"?I(e,"command"):void 0;if(e.userShell&&T!==void 0)return n(J,{block:e,command:T});let A=T!==void 0||O(e)||m.length>0||s.length>0||Boolean(l)||u&&d!==void 0,S=!A&&!b(e.status)?h.filePath:void 0;if(w==="execute"&&!b(e.status)&&e.status!=="completed"){let x=r?.(e);if(x)y={...y,leading:x}}if(w==="read"&&b(e.status))return null;let E=p("span",{className:"codex-activity-label",children:[n(ee,{block:e}),n("span",{className:"min-w-0 flex-1 truncate",children:b(e.status)?n("span",{className:"codex-activity-running",children:y.trailing===void 0?y.leading:`${y.leading} ${y.trailing}`}):p(D,{children:[n("span",{className:"codex-activity-leading",children:y.leading}),y.trailing!==void 0&&(S!==void 0?p(D,{children:[" ",n("button",{type:"button",className:"codex-activity-trailing codex-activity-file-link",title:S,onClick:()=>a(S),children:y.trailing})]}):p("span",{className:"codex-activity-trailing",children:[" ",y.trailing]}))]})})]});return p("div",{className:"codex-activity-item",children:[A?p("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-label":y.trailing===void 0?y.leading:`${y.leading} ${y.trailing}`,"aria-expanded":g,onClick:()=>f((x)=>!x),children:[E,n(M,{expanded:g})]}):n("div",{className:"codex-activity-header codex-activity-header-static",children:E}),n("div",{className:v("codex-activity-details-grid",g&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:C&&p(D,{children:[T!==void 0?n(J,{block:e,command:T}):o!==void 0&&l?n(o,{patch:l}):d!==void 0&&n("pre",{className:"codex-activity-details",children:d}),m.length>0&&n("div",{className:"codex-activity-media",children:m.map((x)=>{let B=`data:${x.mimeType};base64,${x.data}`,j=n("img",{src:B,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},`${x.mimeType}:${x.data.slice(0,32)}`);return i===void 0?j:n("button",{type:"button",className:"cursor-pointer",onClick:()=>i(B),children:j},B)})}),s.map((x)=>n("audio",{className:"mt-1 w-full","aria-label":t("stream.codex.audioOutput"),controls:!0,src:`data:${x.mimeType};base64,${x.data}`},`${x.mimeType}:${x.data.slice(0,32)}`))]})})})]})}var oe=xe(function({block:t}){if(t.type==="tool_use")return n(ae,{block:t});if(t.type==="thinking")return n(le,{block:t});if(t.type==="collab")return n(ce,{block:t});return n(ie,{block:t})});function ie({block:e}){let{t,openSession:a}=c(),o=b(e.status),[i,r]=k(`subagent:${e.id}`,o),u=U(o);P(()=>{if(o)r(!0);if(u.current&&!o)r(!1);u.current=o},[o,r]);let d=`${_e(e.activity,o,e.name,t)}${re(e.model,e.reasoningEffort,t)}`,l=e.threadId??"",m=e.blocks.length>0;return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:v("codex-activity-header",!m&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":m?i:void 0,disabled:!m,onClick:()=>r((s)=>!s),children:[p("span",{className:"codex-activity-label",children:[n(Ee,{seed:e.threadId??e.id}),n("span",{className:"min-w-0 flex-1 truncate",children:a===void 0||e.threadId===null?o?n("span",{className:"codex-activity-running",children:d}):d:n("span",{role:"link",tabIndex:0,className:v("codex-agent-link",o&&"codex-activity-running"),"aria-label":t("stream.codex.subagentOpen",{name:e.name}),onClick:(s)=>{s.stopPropagation(),a(l,e.name)},onKeyDown:(s)=>{if(s.key!=="Enter"&&s.key!==" ")return;s.preventDefault(),s.stopPropagation(),a(l,e.name)},children:d})})]}),m&&n(M,{expanded:i})]}),n("div",{className:v("codex-activity-details-grid",i&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:e.blocks.map((s)=>{if(s.type==="tool_use")return n(ae,{block:s},s.id);if(s.type==="thinking")return n(le,{block:s},N(s));if(s.type==="subagent")return n(ie,{block:s},s.id);if(s.type==="collab")return n(ce,{block:s},s.id);if(s.type==="text")return n("div",{className:"codex-reasoning-details",children:n(L,{text:s.text,streaming:!1})},N(s));if(s.type==="plan")return n(ge,{entries:s.entries},N(s));if(s.type==="image")return n("img",{src:`data:${s.source.media_type};base64,${s.source.data}`,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},N(s));return null})})})})]})}var Me=8;function Se(e){let t=0;for(let a=0;a<e.length;a+=1)t=(t*31+e.charCodeAt(a))%2147483647;return t%Me}function Ee({seed:e}){return n("span",{className:"codex-agent-avatar","data-hue":Se(e),"aria-hidden":"true"})}function _e(e,t,a,o){switch(e){case"started":return o(t?"stream.codex.subagentWorking":"stream.codex.subagentFinished",{name:a});case"interacted":return o("stream.codex.subagentMessaged",{name:a});case"interrupted":return o("stream.codex.subagentInterrupted",{name:a});case"completed":return o("stream.codex.subagentFinished",{name:a})}}var Fe=new Set(["none","minimal","low","medium","high","xhigh","max","ultra","persistent"]);function re(e,t,a){if(e===null)return"";if(t===null)return` · ${So(e)}`;let o=Fe.has(t)?a(`stream.codex.reasoningEffort.${t}`):t;return` · ${So(e)} · ${o}`}var Re={spawnAgent:"spawn",sendInput:"message",sendMessage:"message",followupTask:"message",interruptAgent:"interrupt",listAgents:"list",resumeAgent:"resume",closeAgent:"close"};function se(e){switch(e){case"pending":case"in_progress":return"inProgress";case"completed":return"completed";case"failed":return"failed";case"cancelled":case"interrupted":return"interrupted";default:throw Error(`Unknown ACP tool status: ${e}`)}}function Z(e,t,a){if(e.tool==="wait")throw Error("Codex does not present wait calls");let o=se(e.status);if(o==="interrupted")return a("stream.codex.collab.interrupted");return a(`stream.codex.collab.${t}.${Re[e.tool]}.${o}`)}function De(e){return e.agents.filter((t)=>t.nickname!==null)}function de(e,t){let a=e.agents.length>0?e.agents.length:1;return`${Z(e,"header",t)}${t("stream.codex.collab.agentCount",{count:a})}`}var F="\x01";function R(e,t,a,o){let i=Object.fromEntries(Object.keys(o).map((r)=>[r,`${F}${r}${F}`]));return e(t,{...a,...i}).split(new RegExp(`${F}(\\w+)${F}`,"u")).map((r,u)=>n(fe,{children:u%2===1?o[r]:r},`${u}:${r}`))}function Pe({agent:e,showModel:t}){let{t:a,openSession:o}=c(),i=e.nickname??"",r=o===void 0?n("span",{className:"font-medium",children:i}):n("button",{type:"button",className:"codex-agent-link font-medium","aria-label":a("stream.codex.subagentOpen",{name:i}),onClick:()=>o(e.threadId,i),children:i});return p("span",{children:[r,e.role!==null&&` (${e.role})`,t&&re(e.model,e.reasoningEffort,a)]})}function Q({prompt:e}){return n("span",{className:"codex-collab-prompt",title:e,children:e})}function Ue(e,t){let a=e.prompt?.trim()?e.prompt:null,o=se(e.status),i=e.tool==="spawnAgent"&&o==="completed"&&a!==null,r=(e.tool==="sendInput"||e.tool==="sendMessage"||e.tool==="followupTask")&&a!==null,u=De(e),d=[];if(u.length===0)d.push({key:"generic",node:Z(e,"row",t)});for(let l of u){let m=n(Pe,{agent:l,showModel:e.tool==="spawnAgent"});if(i)d.push({key:l.threadId,node:n("span",{className:"codex-collab-line",children:R(t,"stream.codex.collab.createdWithInstructions",{},{agent:m,instructions:n(Q,{prompt:a})})})});else if(r)d.push({key:l.threadId,node:n("span",{className:"codex-collab-line",children:R(t,"stream.codex.collab.messagedWithPrompt",{action:o==="interrupted"?t("stream.codex.collab.interrupted"):t(`stream.codex.collab.messaged.${o}`)},{agent:m,prompt:n(Q,{prompt:a})})})});else{let g=e.tool!=="closeAgent"&&e.tool!=="resumeAgent"&&l.state!==null&&l.state!==null?l.state.message?.trim()?t("stream.codex.collab.stateWithMessage",{state:t(`stream.codex.collab.state.${l.state.status}`),message:l.state.message}):t("stream.codex.collab.stateOnly",{state:t(`stream.codex.collab.state.${l.state.status}`)}):"";d.push({key:l.threadId,node:R(t,"stream.codex.collab.agentRow",{action:Z(e,"row",t),state:g},{agent:m})})}}if(!i&&!r&&a!==null)d.push({key:"input",node:R(t,"stream.codex.collab.input",{},{prompt:n("span",{className:"codex-collab-input",children:a})})});return d}function ce({block:e}){let{t}=c(),[a,o]=k(`collab:${e.id}`,!1);if(e.tool==="wait")return null;let i=b(e.status),r=de(e,t);return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":a,onClick:()=>o((u)=>!u),children:[p("span",{className:"codex-activity-label",children:[n(ue,{className:"size-4 shrink-0","aria-hidden":"true"}),n("span",{className:"min-w-0 flex-1 truncate",children:i?n("span",{className:"codex-activity-running",children:r}):r})]}),n(M,{expanded:a})]}),n("div",{className:v("codex-activity-details-grid",a&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:Ue(e,t).map((u)=>n("div",{className:"codex-collab-row",children:u.node},u.key))})})})]})}function le({block:e}){let{t,i18n:a}=c(),o=Boolean(e.isComplete),[i,r]=k(`thinking:${N(e)}`,!1),u=U(null),d=e.thinking.trim().length>0;P(()=>{if(o||!d)return;let s=u.current;if(s===null)throw Error("Thinking details are not mounted");let g=new ResizeObserver(()=>{s.scrollTop=s.scrollHeight}),f=null,C=()=>{let w=s.firstElementChild;if(w===f)return;if(f!==null)g.unobserve(f);if(f=w,f!==null)g.observe(f)},h=new MutationObserver(C);return h.observe(s,{childList:!0}),C(),()=>{h.disconnect(),g.disconnect()}},[d,o]);let l=o?e.durationMs!==void 0?t("stream.codex.thoughtFor",{duration:V(e.durationMs,a.language)}):t("stream.codex.thought"):t("message.thinking"),m=e.thinking.trimStart().replace(/^\*\*[^\n]*?\*\*\s*/,"");return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:v("codex-activity-header",!d&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":d?i:void 0,disabled:!d,onClick:()=>r((s)=>!s),children:[n("span",{className:"codex-activity-label",children:n("span",{className:"codex-reasoning-label min-w-0 flex-1 truncate",children:o?l:n("span",{className:"codex-activity-running",children:l})})}),d&&n(M,{expanded:i})]}),n("div",{className:v("codex-activity-details-grid",i&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:d&&n("div",{ref:u,className:"codex-reasoning-details",role:"region","aria-label":l,"aria-hidden":!i,tabIndex:0,inert:!i,children:n(L,{text:m,streaming:!o})})})})]})}function Oe(e){if(W(e))return"mcp";let t=K(e).category;return t==="think"||t==="switch_mode"?"other":t}function Ve(e,t,a,o){return o(`stream.codex.summary.${e}.${a?"leading":"following"}`,{count:t})}function Ze(e,t,a){let o=new Map,i=[],r=new Set;for(let d of e){if(W(d)&&typeof d.rawInput.server==="string"){if(r.size===0)i.push({kind:"integrations"});r.add(d.rawInput.server);continue}if(O(d)){if(!i.some((m)=>m.kind==="named"&&m.title===d.title))i.push({kind:"named",title:d.title});continue}let l=Oe(d);if(!o.has(l))i.push({kind:"category",category:l});o.set(l,(o.get(l)??0)+1)}let u=i.map((d,l)=>{if(d.kind==="named")return d.title;if(d.kind==="integrations")return t(`stream.codex.summary.integrations.${l===0?"leading":"following"}`,{count:r.size,sources:new Intl.ListFormat(a,{style:"long",type:"conjunction"}).format([...r])});return Ve(d.category,o.get(d.category),l===0,t)});if(a.startsWith("zh"))return u.join("");return new Intl.ListFormat(a,{style:"long",type:"conjunction"}).format(u)}function lr({stateKey:e,durationMs:t,durationKind:a="work",active:o,defaultExpanded:i=o,startedAt:r,providerId:u,providerIcon:d,children:l}){let{t:m,i18n:s}=c(),[g,f]=k(`work:${e}`,i,!0),C=H(`work:${e}`,g||o),h=U(null),[w,y]=_(0);P(()=>{if(!o||t!==void 0){h.current=null;return}h.current=r??Date.now();let A=()=>{let E=h.current;if(E===null)throw Error("Codex work section is ticking without a start time");y(Date.now()-E)};A();let S=window.setInterval(A,1000);return()=>window.clearInterval(S)},[o,r,t]);let T=t!==void 0?m(a==="total"?"stream.codex.totalDuration":"stream.codex.workedFor",{duration:V(t,s.language)}):o&&w>=1000?m("stream.codex.workingFor",{duration:V(w,s.language)}):m(o?"stream.codex.working":"stream.codex.worked");return p("section",{className:"codex-work-section",children:[p("button",{type:"button",className:"codex-work-trigger","data-codex-disclosure":"","aria-expanded":g,onClick:()=>f((A)=>!A),children:[u!==void 0&&n("span",{className:"codex-work-provider-icon","data-testid":"codex-work-provider-icon","data-provider-id":u,"aria-hidden":"true",children:d}),n("span",{children:T}),n(M,{expanded:g,className:"codex-work-chevron"})]}),n("div",{className:"codex-work-separator","aria-hidden":"true"}),n("div",{className:v("codex-work-grid",g&&"codex-work-grid-open"),"aria-hidden":!g,inert:!g,children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-work-body",children:C&&l})})})]})}function He(e,t){if(e.type==="tool_use")return be(e,t);if(e.type==="thinking")return t("message.thinking");if(e.type==="collab")return de(e,t);return t("stream.codex.subagentWorking",{name:e.name})}function X(e){if(e.type==="thinking")return!e.isComplete;if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return b(e.status);return!1}function We(e,t,a=1000){let[o,i]=_({text:e,live:t}),r=U(Date.now());return P(()=>{if(e===o.text&&t===o.live)return;let u=Date.now(),d=Math.max(0,r.current+a-u);if(d===0||t!==o.live){r.current=u,i({text:e,live:t});return}let l=window.setTimeout(()=>{r.current=Date.now(),i({text:e,live:t})},d);return()=>window.clearTimeout(l)},[o,t,a,e]),t===o.live?o.text:e}function je({blocks:e,defaultExpanded:t=!0}){let{t:a,i18n:o}=c(),i=e.some(X),r=N(e[0]),u=e.every((C)=>C.type==="tool_use"&&K(C).category==="execute"),[d,l]=k(`group:${r}`,t&&!u),m=H(`group:${r}`,d),s=e.findLast(X)??e.at(-1);if(s===void 0)throw Error("CodexActivityGroup requires at least one activity block");let g=e.filter((C)=>C.type==="tool_use"),f=We(i?He(s,a):Ze(g,a,o.language),i);return p("div",{className:"codex-activity-group",children:[p("button",{type:"button",className:"codex-activity-group-trigger","data-codex-disclosure":"","aria-expanded":d,onClick:()=>l((C)=>!C),children:[p("span",{className:"codex-activity-label",children:[n(ee,{block:e[0]}),n("span",{className:"truncate",children:i?n("span",{className:"codex-activity-running",children:f}):f})]}),n(M,{expanded:d})]}),n("div",{className:v("codex-activity-group-grid",d&&"codex-activity-group-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-activity-group-body",children:m&&e.map((C)=>n(oe,{block:C},N(C)))})})})]})}function Y({blocks:e,defaultExpanded:t}){if(e.length===0)throw Error("CodexActivityGroup requires at least one activity block");if(e.length===1)return n(oe,{block:e[0]});return n(je,{blocks:e,defaultExpanded:t})}function ft({blocks:e,defaultExpanded:t}){if(!e.some(Ye))return n(Y,{blocks:e,defaultExpanded:t});let a=[];for(let o of e){let i=a.at(-1);if(i&&Ye(i[0])===Ye(o))i.push(o);else a.push([o])}return n(D,{children:a.map((o)=>Ye(o[0])?n(dr,{blocks:o.filter(Ye)},N(o[0])):n(Y,{blocks:o,defaultExpanded:t},N(o[0])))})}
|
|
7
|
-
export{lr,ft};
|
package/dist/chunk-zfsbhwe1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Pn}from"./chunk-1fnfd1yv.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 tt(e){let t=r.get(e);if(!t)t=Pn(e),r.set(e,t);return t}function Zs({host:e,client:t,children:n}){let s=tt(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 nt(){let e=a(P);if(e===null)throw Error("Plugins client is missing");return e}function It(e){let t=nt();return u((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function i(e){let t=tt(nt());return u((n)=>t.subscribe(n),()=>e(t.getState()),()=>e(t.getState()))}function ot(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
|
|
2
|
-
export{tt,Zs,d,nt,It,i,ot};
|
package/dist/import.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@nyssance/codex-acp-v2/import";
|
package/dist/import.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from"@nyssance/codex-acp-v2/import";
|