@alwith/module-chat 0.6.17 → 0.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activity-host.js +1 -1
- package/dist/agent/application-client.d.ts +30 -0
- package/dist/agent/application-client.js +1 -0
- package/dist/agent/client.d.ts +125 -0
- package/dist/agent/client.js +1 -0
- package/dist/agent/custom-model-effort.d.ts +4 -0
- package/dist/agent/custom-model-effort.js +1 -0
- package/dist/agent/fork-title.d.ts +1 -0
- package/dist/agent/fork-title.js +1 -0
- package/dist/agent/image-request.d.ts +6 -0
- package/dist/agent/image-request.js +1 -0
- package/dist/agent/image-tools.d.ts +9 -0
- package/dist/agent/image-tools.js +1 -0
- package/dist/agent/input-config.d.ts +17 -0
- package/dist/agent/input-config.js +1 -0
- package/dist/agent/input-modes/chat.d.ts +10 -0
- package/dist/agent/input-modes/chat.js +1 -0
- package/dist/agent/input-modes/execution-meta.d.ts +1 -0
- package/dist/agent/input-modes/execution-meta.js +1 -0
- package/dist/agent/input-modes/image-context.d.ts +1 -0
- package/dist/agent/input-modes/image-context.js +1 -0
- package/dist/agent/input-modes/image.d.ts +14 -0
- package/dist/agent/input-modes/image.js +1 -0
- package/dist/agent/input-modes/index.d.ts +46 -0
- package/dist/agent/input-modes/index.js +1 -0
- package/dist/agent/project-path.d.ts +2 -0
- package/dist/agent/project-path.js +1 -0
- package/dist/agent/request-error.d.ts +3 -0
- package/dist/agent/request-error.js +1 -0
- package/dist/agent/session-list-refresh.d.ts +2 -0
- package/dist/agent/session-list-refresh.js +1 -0
- package/dist/app-reference.js +1 -1
- package/dist/application-tools.d.ts +1 -1
- package/dist/application-tools.js +1 -1
- package/dist/approval/choice-elicitation-form.js +1 -1
- package/dist/approval/choice-schema.js +1 -1
- package/dist/approval/permission-options.js +1 -1
- package/dist/approval/permission-view.js +1 -1
- package/dist/approval/schema-elicitation-form.js +1 -1
- package/dist/approval/url-elicitation-card.js +1 -1
- package/dist/chunk-02qwd1yq.js +2 -0
- package/dist/chunk-052wfeys.js +2 -0
- package/dist/chunk-06wtwk7b.js +2 -0
- package/dist/chunk-0jpzztpz.js +2 -0
- package/dist/chunk-0z7gy762.js +2 -0
- package/dist/{chunk-3h3cmjh2.js → chunk-113maskf.js} +2 -2
- package/dist/{chunk-bqbpded2.js → chunk-15m908ph.js} +2 -2
- package/dist/{chunk-rvmbvv03.js → chunk-1d29gnb2.js} +2 -2
- package/dist/chunk-1fadxh2z.js +2 -0
- package/dist/{chunk-dcevaazr.js → chunk-1gr60c40.js} +2 -2
- package/dist/chunk-1npqxk6m.js +2 -0
- package/dist/{chunk-97tgc9ym.js → chunk-26w51q10.js} +2 -2
- package/dist/{chunk-zq18ffn0.js → chunk-2aw505xv.js} +2 -2
- package/dist/{chunk-twbeapwa.js → chunk-2gwegefd.js} +2 -2
- package/dist/chunk-2hkj5qxh.js +2 -0
- package/dist/{chunk-y7n8m9st.js → chunk-2ncdext6.js} +2 -2
- package/dist/chunk-30a5fgk9.js +2 -0
- package/dist/chunk-337hq36y.js +2 -0
- package/dist/{chunk-2pahy4hs.js → chunk-34mq2dbm.js} +2 -2
- package/dist/{chunk-3174p320.js → chunk-3g9n4bk2.js} +2 -2
- package/dist/chunk-3tp8fe70.js +2 -0
- package/dist/{chunk-fzze5xcw.js → chunk-3tvq6xr2.js} +2 -2
- package/dist/chunk-3tzh25vq.js +2 -0
- package/dist/{chunk-netp71kb.js → chunk-44r55va6.js} +2 -2
- package/dist/{chunk-qdgsg6v4.js → chunk-4jp1d558.js} +2 -2
- package/dist/chunk-4sa0m3w5.js +2 -0
- package/dist/chunk-4sfxcw58.js +6 -0
- package/dist/{chunk-6es8tgxc.js → chunk-4wm5emgf.js} +2 -2
- package/dist/{chunk-x6f51rt2.js → chunk-51x80v4h.js} +2 -2
- package/dist/{chunk-xmpaqxer.js → chunk-5c42mfat.js} +2 -2
- package/dist/{chunk-j6r44m9g.js → chunk-5gn8xw58.js} +2 -2
- package/dist/chunk-5jq3xg3q.js +2 -0
- package/dist/{chunk-9z9jffth.js → chunk-64apxzn7.js} +2 -2
- package/dist/{chunk-trh02gwn.js → chunk-6e84zbgs.js} +2 -2
- package/dist/chunk-6f06hbsk.js +2 -0
- package/dist/chunk-6g553fkh.js +2 -0
- package/dist/{chunk-h3xn4d48.js → chunk-6j1x3gny.js} +2 -2
- package/dist/chunk-73e9vpm9.js +2 -0
- package/dist/{chunk-twx75z08.js → chunk-74b70n1g.js} +2 -2
- package/dist/chunk-7b5ryhwh.js +2 -0
- package/dist/{chunk-sct2h2dm.js → chunk-7d1wnjw5.js} +2 -2
- package/dist/chunk-7evd34gw.js +3 -0
- package/dist/{chunk-fd72zzqm.js → chunk-7g11pcm4.js} +3 -3
- package/dist/{chunk-ct0xqakr.js → chunk-7p7fxgdb.js} +2 -2
- package/dist/chunk-7pwdjhg8.js +2 -0
- package/dist/chunk-80sbwjrr.js +2 -0
- package/dist/chunk-816tez3v.js +2 -0
- package/dist/{chunk-vypkwd0x.js → chunk-81n37a11.js} +2 -2
- package/dist/{chunk-11cbk1je.js → chunk-84p483n0.js} +2 -2
- package/dist/{chunk-8djjctdj.js → chunk-84zzf0ys.js} +2 -2
- package/dist/{chunk-hn6f6yrp.js → chunk-88ysxbdh.js} +2 -2
- package/dist/{chunk-aaqk0jrt.js → chunk-8hygfx41.js} +2 -2
- package/dist/{chunk-c05dxz9x.js → chunk-8q5zwkry.js} +2 -2
- package/dist/chunk-8rb896tq.js +2 -0
- package/dist/{chunk-9072bnjm.js → chunk-90847w64.js} +2 -2
- package/dist/{chunk-ha5xrc0a.js → chunk-97pn8v17.js} +2 -2
- package/dist/chunk-9k58vckd.js +2 -0
- package/dist/chunk-9x08kyf6.js +2 -0
- package/dist/{chunk-b9q9d2jh.js → chunk-agdkhyaj.js} +3 -3
- package/dist/chunk-ajp19sh9.js +2 -0
- package/dist/chunk-ak196z4y.js +2 -0
- package/dist/chunk-ane53rqa.js +2 -0
- package/dist/{chunk-qm1z1zcw.js → chunk-arm9x6kc.js} +2 -2
- package/dist/{chunk-veb90k24.js → chunk-ath5nv2w.js} +2 -2
- package/dist/chunk-bba9qej8.js +2 -0
- package/dist/{chunk-wyndwb68.js → chunk-bf7sgpzq.js} +2 -2
- package/dist/chunk-bg0vkt53.js +2 -0
- package/dist/{chunk-csgkwny6.js → chunk-bqhbksy2.js} +2 -2
- package/dist/chunk-brv52tgj.js +2 -0
- package/dist/chunk-bve6cykn.js +2 -0
- package/dist/chunk-bw3bpr6m.js +2 -0
- package/dist/chunk-c2h4wr7g.js +7 -0
- package/dist/{chunk-gk0tq3n9.js → chunk-ch8e8a32.js} +2 -2
- package/dist/{chunk-hqykt9hr.js → chunk-cydnp9mm.js} +2 -2
- package/dist/{chunk-4gq7ye1a.js → chunk-d0s10qy5.js} +2 -2
- package/dist/chunk-d6cfxqzx.js +2 -0
- package/dist/{chunk-1e7gk302.js → chunk-d9mj74pb.js} +2 -2
- package/dist/{chunk-x0h0g1ma.js → chunk-dd9k5bbt.js} +2 -2
- package/dist/{chunk-7nehhgej.js → chunk-dheg4bs2.js} +2 -2
- package/dist/{chunk-620q6hmz.js → chunk-dr5swvaa.js} +2 -2
- package/dist/chunk-dsf2x63w.js +7 -0
- package/dist/chunk-e1fzfaqj.js +2 -0
- package/dist/{chunk-bnpwhf5c.js → chunk-e1zsnc8z.js} +2 -2
- package/dist/{chunk-tkbs5ev1.js → chunk-er5wxkt2.js} +2 -2
- package/dist/chunk-esbgn8q0.js +2 -0
- package/dist/chunk-etvdqkvb.js +4 -0
- package/dist/{chunk-segftqt4.js → chunk-evpjxbzm.js} +2 -2
- package/dist/{chunk-2ptyqcf3.js → chunk-ex063jn9.js} +2 -2
- package/dist/chunk-eynwjzqp.js +2 -0
- package/dist/{chunk-05eg5p11.js → chunk-f78jd8xh.js} +2 -2
- package/dist/chunk-f9xtcxfb.js +2 -0
- package/dist/{chunk-d1n4w7hn.js → chunk-fdmbfq9g.js} +2 -2
- package/dist/chunk-fkkk1fza.js +2 -0
- package/dist/{chunk-f2jc13bq.js → chunk-ftsnryz8.js} +2 -2
- package/dist/{chunk-m2x1s408.js → chunk-fvxxzgrc.js} +2 -2
- package/dist/chunk-fwqpwbd8.js +2 -0
- package/dist/{chunk-7eqtvqrn.js → chunk-fyxetwxv.js} +2 -2
- package/dist/{chunk-q2z9w661.js → chunk-g1nck6pp.js} +2 -2
- package/dist/{chunk-7919s3et.js → chunk-gpv1dc5y.js} +2 -2
- package/dist/chunk-gs0b02g2.js +2 -0
- package/dist/{chunk-vnr9rqs6.js → chunk-gttw4rmx.js} +3 -3
- package/dist/chunk-gwskdhaw.js +2 -0
- package/dist/chunk-h7xjw0p4.js +2 -0
- package/dist/{chunk-j5njgy7p.js → chunk-h82jte5p.js} +2 -2
- package/dist/{chunk-hwvr7b0j.js → chunk-hfghqddp.js} +2 -2
- package/dist/{chunk-vextf7ba.js → chunk-hj05zh7h.js} +2 -2
- package/dist/chunk-hnkde8me.js +2 -0
- package/dist/{chunk-5wsyenq9.js → chunk-hqt5j789.js} +2 -2
- package/dist/chunk-j39bhfsp.js +2 -0
- package/dist/{chunk-n13y99dj.js → chunk-j3g21ext.js} +2 -2
- package/dist/chunk-j6000jts.js +2 -0
- package/dist/{chunk-7h3f7s97.js → chunk-j78kgyff.js} +5 -5
- package/dist/{chunk-yaxsff9s.js → chunk-jgqt7k0h.js} +2 -2
- package/dist/chunk-jpr2y0y3.js +2 -0
- package/dist/{chunk-tz8wmvs9.js → chunk-jpr5ewnh.js} +2 -2
- package/dist/{chunk-00z352ph.js → chunk-k4a3p16c.js} +2 -2
- package/dist/{chunk-k86843av.js → chunk-k5nd3vyq.js} +2 -2
- package/dist/chunk-k883x8fv.js +2 -0
- package/dist/{chunk-t96rf4pg.js → chunk-kj2zk46g.js} +2 -2
- package/dist/chunk-kkqrxb9w.js +3 -0
- package/dist/{chunk-qtft8hnb.js → chunk-kn792h8n.js} +2 -2
- package/dist/chunk-kqvgmkvr.js +2 -0
- package/dist/chunk-m087n233.js +3 -0
- package/dist/{chunk-adc8e01w.js → chunk-ma6ycen5.js} +2 -2
- package/dist/{chunk-4hz2ax5w.js → chunk-ma7thf1j.js} +2 -2
- package/dist/{chunk-t94rfs41.js → chunk-mahb3t97.js} +2 -2
- package/dist/chunk-mf0k3xd4.js +3 -0
- package/dist/chunk-mhv75thj.js +0 -0
- package/dist/chunk-n811d65m.js +4 -0
- package/dist/chunk-n96z8etk.js +2 -0
- package/dist/{chunk-9hmqa3cs.js → chunk-nbgw51b6.js} +2 -2
- package/dist/{chunk-82xjggwn.js → chunk-ne4b53kn.js} +2 -2
- package/dist/chunk-nhkm2gr7.js +1 -0
- package/dist/{chunk-3karja82.js → chunk-nn30qzhx.js} +2 -2
- package/dist/{chunk-ex20n22v.js → chunk-nqt9gyz9.js} +2 -2
- package/dist/{chunk-qwtmwj5m.js → chunk-p3gawvqr.js} +2 -2
- package/dist/chunk-p5hk14fk.js +2 -0
- package/dist/{chunk-ev9tkjgy.js → chunk-pc11a2w0.js} +3 -3
- package/dist/chunk-ph7srp7q.js +2 -0
- package/dist/chunk-phee3jn9.js +2 -0
- package/dist/{chunk-qnbr2cmg.js → chunk-pqz2471h.js} +2 -2
- package/dist/chunk-psndz2rs.js +2 -0
- package/dist/{chunk-1xaskqdj.js → chunk-pxv38ttf.js} +2 -2
- package/dist/{chunk-wv127h6d.js → chunk-pxzj3ae7.js} +2 -2
- package/dist/{chunk-9rf3qecr.js → chunk-q1yz3t9z.js} +2 -2
- package/dist/chunk-q4c6f84f.js +2 -0
- package/dist/chunk-q7rq46qc.js +2 -0
- package/dist/{chunk-d924by6g.js → chunk-qk1yqepm.js} +2 -2
- package/dist/{chunk-5ymq8y72.js → chunk-qma11tpm.js} +3 -3
- package/dist/chunk-qmcr5f9k.js +2 -0
- package/dist/chunk-r7hwgk2v.js +2 -0
- package/dist/{chunk-3yq0a0f1.js → chunk-rg9ckzpr.js} +2 -2
- package/dist/{chunk-41v0g6sw.js → chunk-rhe4w638.js} +2 -2
- package/dist/chunk-rkqptd9w.js +2 -0
- package/dist/{chunk-p0d6rr6q.js → chunk-rp7tnbss.js} +2 -2
- package/dist/chunk-rv3k0kfr.js +2 -0
- package/dist/chunk-rz9fnphz.js +2 -0
- package/dist/chunk-s6medm3z.js +2 -0
- package/dist/{chunk-4qghztvg.js → chunk-s9mejb9v.js} +2 -2
- package/dist/{chunk-z38xf1rw.js → chunk-scdj02m8.js} +3 -3
- package/dist/chunk-sfgegn3p.js +2 -0
- package/dist/chunk-sjb5stzq.js +2 -0
- package/dist/chunk-sp2ny9ak.js +2 -0
- package/dist/chunk-stv8pr4v.js +2 -0
- package/dist/chunk-swkcmtme.js +2 -0
- package/dist/chunk-sz993t5e.js +2 -0
- package/dist/{chunk-nszq1xrj.js → chunk-t5ff3cn7.js} +2 -2
- package/dist/{chunk-xbp4r3n4.js → chunk-ta6rbxh5.js} +3 -3
- package/dist/chunk-tc6d0v1y.js +2 -0
- package/dist/chunk-tdvx2n5m.js +2 -0
- package/dist/chunk-tftgnw1w.js +2 -0
- package/dist/{chunk-11z072sz.js → chunk-thaa1n4f.js} +2 -2
- package/dist/chunk-tyrzaz6c.js +2 -0
- package/dist/{chunk-4dabfz24.js → chunk-vg1y693r.js} +3 -3
- package/dist/chunk-vg9p0hvk.js +2 -0
- package/dist/chunk-vm81n2c0.js +2 -0
- package/dist/chunk-vt7dkgtx.js +2 -0
- package/dist/chunk-w1wr14da.js +2 -0
- package/dist/{chunk-gee5kh24.js → chunk-w1yrsbw1.js} +2 -2
- package/dist/{chunk-kcra1mgf.js → chunk-wbjf9maj.js} +2 -2
- package/dist/{chunk-y1fpm5r2.js → chunk-wew3t005.js} +2 -2
- package/dist/{chunk-gxjg94y5.js → chunk-wpacvdsv.js} +2 -2
- package/dist/{chunk-vqkwvrxc.js → chunk-wq47c4ws.js} +2 -2
- package/dist/{chunk-tjfjvzv5.js → chunk-x2wcwpw3.js} +2 -2
- package/dist/chunk-x3v10a71.js +2 -0
- package/dist/{chunk-bsra0akd.js → chunk-x49qjrbk.js} +2 -2
- package/dist/chunk-x4jm2eh9.js +4 -0
- package/dist/{chunk-fvz27k62.js → chunk-xfzmxq3g.js} +2 -2
- package/dist/{chunk-a1k3ffay.js → chunk-xnc0175v.js} +2 -2
- package/dist/chunk-xnx8p8c0.js +4 -0
- package/dist/{chunk-gbc31gbf.js → chunk-xqb4thy8.js} +2 -2
- package/dist/{chunk-pvd09dx5.js → chunk-xspnhgq6.js} +2 -2
- package/dist/chunk-xwwjj45a.js +2 -0
- package/dist/chunk-xx29efrs.js +4 -0
- package/dist/{chunk-vkc8ssbv.js → chunk-xx7t8r87.js} +2 -2
- package/dist/chunk-xyffk47k.js +2 -0
- package/dist/{chunk-mhxgws9c.js → chunk-y3mx5sf0.js} +2 -2
- package/dist/{chunk-xtwpbvdx.js → chunk-yb5yhh8t.js} +2 -2
- package/dist/chunk-ye7ecnej.js +2 -0
- package/dist/{chunk-sg681jnt.js → chunk-ynxb5xqz.js} +4 -4
- package/dist/{chunk-8weq6t3q.js → chunk-z107z7dt.js} +2 -2
- package/dist/{chunk-9eme3n5c.js → chunk-z6x70w62.js} +2 -2
- package/dist/{chunk-2ss8m0ja.js → chunk-zjk12jjm.js} +4 -4
- package/dist/{chunk-64wzvf7k.js → chunk-zw2x5ztr.js} +2 -2
- package/dist/{chunk-mgsxsaj1.js → chunk-zxfx7psd.js} +2 -2
- package/dist/{chunk-9xhw5zmq.js → chunk-zyn0ys4m.js} +2 -2
- package/dist/{chunk-5ygdb72w.js → chunk-zzjth6f2.js} +2 -2
- package/dist/client.d.ts +9 -30
- package/dist/client.js +1 -1
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/artifact-links.d.ts +9 -0
- package/dist/codex/artifact-links.js +1 -0
- 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/conversation/types.d.ts +1 -0
- package/dist/desktop/desktop-composer.d.ts +13 -0
- package/dist/desktop/desktop-composer.js +1 -0
- package/dist/desktop/desktop.d.ts +7 -0
- package/dist/desktop/desktop.js +1 -0
- package/dist/desktop/draft-model-select.d.ts +10 -0
- package/dist/desktop/draft-model-select.js +1 -0
- package/dist/desktop/load-image.d.ts +1 -0
- package/dist/desktop/load-image.js +1 -0
- package/dist/desktop/model-catalog.d.ts +10 -0
- package/dist/desktop/model-catalog.js +1 -0
- package/dist/desktop/model-recovery.d.ts +10 -0
- package/dist/desktop/model-recovery.js +1 -0
- package/dist/desktop/model-settings-action.d.ts +2 -0
- package/dist/desktop/model-settings-action.js +1 -0
- package/dist/desktop/native-file-drop.d.ts +8 -0
- package/dist/desktop/native-file-drop.js +1 -0
- package/dist/generated/commands.d.ts +103 -48
- 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.d.ts +4 -0
- package/dist/lib/chat-path.js +1 -0
- 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.d.ts +210 -0
- package/dist/locales.js +1 -1
- package/dist/mermaid/diagram.d.ts +3 -0
- package/dist/mermaid/diagram.js +1 -0
- package/dist/mermaid/export.d.ts +6 -0
- package/dist/mermaid/export.js +1 -0
- package/dist/mermaid/index.d.ts +1 -0
- package/dist/mermaid/index.js +1 -0
- package/dist/mermaid/preview.d.ts +11 -0
- package/dist/mermaid/preview.js +1 -0
- package/dist/oauth/claude-login.js +1 -1
- package/dist/oauth.js +1 -1
- package/dist/plugins/catalog-header.js +1 -1
- package/dist/plugins/catalog-skeleton.js +1 -1
- package/dist/plugins/host.js +1 -1
- package/dist/plugins/locales.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 -0
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/reference-projection.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/account-menu.js +1 -1
- package/dist/session-list/activity-list.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/locales.js +1 -1
- package/dist/session-list/navigation-controls.js +1 -1
- package/dist/session-list/navigation-header.js +1 -1
- package/dist/session-list/navigation-store.js +1 -1
- package/dist/session-list/navigation-tabs.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/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.d.ts +3 -0
- 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.d.ts +1 -0
- 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.d.ts +4 -0
- 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.d.ts +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/THIRD_PARTY_NOTICES.md +8 -8
- package/native/darwin-arm64/artifact.json +1 -1
- package/native/darwin-arm64/libalwith_native_chat.dylib +0 -0
- package/native/win32-x64/THIRD_PARTY_NOTICES.md +7 -7
- package/native/win32-x64/alwith_native_chat.dll +0 -0
- package/native/win32-x64/artifact.json +1 -1
- package/package.json +10 -4
- package/dist/chunk-0307kp7e.js +0 -2
- package/dist/chunk-04vnhbvc.js +0 -2
- package/dist/chunk-0yqb54zg.js +0 -2
- package/dist/chunk-1renytb3.js +0 -3
- package/dist/chunk-2drcx544.js +0 -2
- package/dist/chunk-2sxxr6j8.js +0 -2
- package/dist/chunk-2tc9kn50.js +0 -2
- package/dist/chunk-3t5cksae.js +0 -2
- package/dist/chunk-4h07zyxp.js +0 -2
- package/dist/chunk-4jy404m1.js +0 -2
- package/dist/chunk-4n4gap45.js +0 -2
- package/dist/chunk-4zz6dnqa.js +0 -2
- package/dist/chunk-5m45z6qm.js +0 -4
- package/dist/chunk-6xds0dkq.js +0 -2
- package/dist/chunk-7cv512vy.js +0 -2
- package/dist/chunk-7hwg9r4y.js +0 -2
- package/dist/chunk-856bck34.js +0 -2
- package/dist/chunk-95n1cpnj.js +0 -2
- package/dist/chunk-9h77fcpn.js +0 -2
- package/dist/chunk-9pcx42v8.js +0 -2
- package/dist/chunk-9rvf1am9.js +0 -2
- package/dist/chunk-ehmdmfs5.js +0 -2
- package/dist/chunk-f0kgxjp1.js +0 -2
- package/dist/chunk-fjk1g303.js +0 -2
- package/dist/chunk-fjseqvmx.js +0 -1
- package/dist/chunk-gez0k8zs.js +0 -7
- package/dist/chunk-gjfhvaxn.js +0 -2
- package/dist/chunk-h4xxyhpn.js +0 -4
- package/dist/chunk-hmet2d96.js +0 -2
- package/dist/chunk-hwmpcj3y.js +0 -2
- package/dist/chunk-j9snfndd.js +0 -2
- package/dist/chunk-jz6zecb7.js +0 -2
- package/dist/chunk-kp7qa98m.js +0 -2
- package/dist/chunk-ncwf6pjj.js +0 -3
- package/dist/chunk-nh9gk065.js +0 -2
- package/dist/chunk-nxj8m5bm.js +0 -2
- package/dist/chunk-pn5ghg65.js +0 -2
- package/dist/chunk-pwcw4zp2.js +0 -2
- package/dist/chunk-q3vvg0de.js +0 -2
- package/dist/chunk-qkw2nhsr.js +0 -4
- package/dist/chunk-rncx5gxz.js +0 -2
- package/dist/chunk-s5c2ha8t.js +0 -2
- package/dist/chunk-sp411z4y.js +0 -7
- package/dist/chunk-sqm2vsf5.js +0 -2
- package/dist/chunk-t4dsmqdq.js +0 -2
- package/dist/chunk-thhtbvj1.js +0 -2
- package/dist/chunk-tvbgjmtw.js +0 -3
- package/dist/chunk-v0y5fepf.js +0 -3
- package/dist/chunk-vctq22tq.js +0 -2
- package/dist/chunk-vepv6ktb.js +0 -2
- package/dist/chunk-vet6snkp.js +0 -4
- package/dist/chunk-vjmgh1q9.js +0 -2
- package/dist/chunk-vmg3evhm.js +0 -2
- package/dist/chunk-w22ch68s.js +0 -2
- package/dist/chunk-wdacgfwp.js +0 -2
- package/dist/chunk-xmks1g9y.js +0 -2
- package/dist/chunk-xqwbn2ph.js +0 -2
- package/dist/chunk-y6kxhkjm.js +0 -2
- package/dist/chunk-yy1pm240.js +0 -2
- package/dist/chunk-z7ehwkcq.js +0 -2
- package/dist/chunk-zah0npdy.js +0 -2
- package/dist/chunk-zah37d5q.js +0 -2
- package/dist/chunk-zcwsc0gx.js +0 -2
- /package/native/darwin-arm64/licenses/{bumpalo-3.20.3 → bumpalo-3.20.4}/LICENSE-APACHE +0 -0
- /package/native/darwin-arm64/licenses/{bumpalo-3.20.3 → bumpalo-3.20.4}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{cc-1.11.1 → cc-1.11.2}/LICENSE-APACHE +0 -0
- /package/native/darwin-arm64/licenses/{cc-1.11.1 → cc-1.11.2}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{mio-1.2.4 → mio-1.2.5}/LICENSE +0 -0
- /package/native/darwin-arm64/licenses/{nix-0.31.3 → nix-0.32.0}/LICENSE +0 -0
- /package/native/darwin-arm64/licenses/{opencode-ai-models-0.0.124 → opencode-ai-models-0.0.136}/LICENSE +0 -0
- /package/native/darwin-arm64/licenses/{rand-0.10.3 → rand-0.10.4}/LICENSE-APACHE +0 -0
- /package/native/darwin-arm64/licenses/{rand-0.10.3 → rand-0.10.4}/LICENSE-MIT +0 -0
- /package/native/darwin-arm64/licenses/{rustls-webpki-0.103.16 → rustls-webpki-0.103.17}/LICENSE +0 -0
- /package/native/darwin-arm64/licenses/{zip-9.5.1 → zip-9.6.0}/LICENSE +0 -0
- /package/native/win32-x64/licenses/{bumpalo-3.20.3 → bumpalo-3.20.4}/LICENSE-APACHE +0 -0
- /package/native/win32-x64/licenses/{bumpalo-3.20.3 → bumpalo-3.20.4}/LICENSE-MIT +0 -0
- /package/native/win32-x64/licenses/{cc-1.11.1 → cc-1.11.2}/LICENSE-APACHE +0 -0
- /package/native/win32-x64/licenses/{cc-1.11.1 → cc-1.11.2}/LICENSE-MIT +0 -0
- /package/native/win32-x64/licenses/{mio-1.2.4 → mio-1.2.5}/LICENSE +0 -0
- /package/native/win32-x64/licenses/{opencode-ai-models-0.0.124 → opencode-ai-models-0.0.136}/LICENSE +0 -0
- /package/native/win32-x64/licenses/{rand-0.10.3 → rand-0.10.4}/LICENSE-APACHE +0 -0
- /package/native/win32-x64/licenses/{rand-0.10.3 → rand-0.10.4}/LICENSE-MIT +0 -0
- /package/native/win32-x64/licenses/{rustls-webpki-0.103.16 → rustls-webpki-0.103.17}/LICENSE +0 -0
- /package/native/win32-x64/licenses/{zip-9.5.1 → zip-9.6.0}/LICENSE +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{x}from"./chunk-vm81n2c0.js";import{Wi,Zi,Qi,Ji}from"./chunk-dd9k5bbt.js";import{Ln,R,bt,S,wt}from"./chunk-tdvx2n5m.js";import{Bot as p}from"lucide-react";import{jsx as l}from"react/jsx-runtime";var r={"alwith-account":Wi,chatgpt:Zi,minimax:Qi,seedream:Ji};function Hi({provider:o,className:i,...a}){let e=Object.hasOwn(r,o)?r[o]:R.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(Ln.filter((o)=>o.source==="account").flatMap((o)=>o.models.map((i)=>[S(o.id,i.id),i.label]))),d=new Map([...Ln.map((o)=>[o.id,o.source==="account"?1:2]),[x.id,0]]);function Tn(o){return o.shortLabel??o.label}function Be(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??wt[t.api_id]?.shortLabel,icon:i.providerIcon?.(e.id,t.api_id)??l(Hi,{provider:n?"chatgpt":e.id==="litellm"||e.id==="alwith-managed-litellm"||bt(t.api_id)?"alwith-account":e.id})}))}})}
|
|
2
|
+
export{Hi,Tn,Be};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{homedir as f,userInfo as h}from"node:os";import{join as u}from"node:path";var a=null,d={platform:process.platform,home:f(),env:process.env,username:()=>process.env.USER||h().username,async keychain(e,r){let t=JSON.stringify([e,r]);if(a){if(a.identity!==t)throw Error("Another Claude Keychain read is awaiting completion");return a.promise}let n=(async()=>{let s=Bun.spawn(["/usr/bin/security","find-generic-password","-a",r,"-w","-s",e],{stdin:"ignore",stdout:"pipe",stderr:"pipe"}),[o,l,p]=await Promise.all([s.exited,new Response(s.stdout).text(),new Response(s.stderr).text()]);if(o===44)return null;if(o!==0)throw Error(`Claude Keychain read failed (${o}): ${p.trim()}`);if(!l.trim())throw Error("Claude Keychain item is empty");return l})().finally(()=>{a=null});return a={identity:t,promise:n},n},async file(e){try{return await Bun.file(e).text()}catch(r){if(typeof r==="object"&&r!==null&&"code"in r&&r.code==="ENOENT")return null;throw r}}};function c(e,r){let t;try{t=JSON.parse(e)}catch{throw Error(`Claude ${r} credential record contains invalid JSON`)}if(typeof t!=="object"||t===null||Array.isArray(t))throw Error(`Invalid Claude ${r} credential record`);let i=t;if(i.claudeAiOauth===void 0||i.claudeAiOauth===null)return null;if(typeof i.claudeAiOauth!=="object"||Array.isArray(i.claudeAiOauth))throw Error(`Invalid Claude ${r} OAuth record`);let n=i.claudeAiOauth;if(typeof n.accessToken!=="string"||!n.accessToken.trim()||!Array.isArray(n.scopes)||!n.scopes.every((s)=>typeof s==="string")||!n.scopes.includes("user:inference")||n.expiresAt!==null&&(typeof n.expiresAt!=="number"||!Number.isSafeInteger(n.expiresAt)||n.expiresAt<=0))throw Error(`Claude ${r} OAuth record has invalid token, expiry, or inference scope`);return{accessToken:n.accessToken,expiresAt:n.expiresAt,scopes:n.scopes,source:r}}async function
|
|
2
|
-
export{
|
|
1
|
+
import{homedir as f,userInfo as h}from"node:os";import{join as u}from"node:path";var a=null,d={platform:process.platform,home:f(),env:process.env,username:()=>process.env.USER||h().username,async keychain(e,r){let t=JSON.stringify([e,r]);if(a){if(a.identity!==t)throw Error("Another Claude Keychain read is awaiting completion");return a.promise}let n=(async()=>{let s=Bun.spawn(["/usr/bin/security","find-generic-password","-a",r,"-w","-s",e],{stdin:"ignore",stdout:"pipe",stderr:"pipe"}),[o,l,p]=await Promise.all([s.exited,new Response(s.stdout).text(),new Response(s.stderr).text()]);if(o===44)return null;if(o!==0)throw Error(`Claude Keychain read failed (${o}): ${p.trim()}`);if(!l.trim())throw Error("Claude Keychain item is empty");return l})().finally(()=>{a=null});return a={identity:t,promise:n},n},async file(e){try{return await Bun.file(e).text()}catch(r){if(typeof r==="object"&&r!==null&&"code"in r&&r.code==="ENOENT")return null;throw r}}};function c(e,r){let t;try{t=JSON.parse(e)}catch{throw Error(`Claude ${r} credential record contains invalid JSON`)}if(typeof t!=="object"||t===null||Array.isArray(t))throw Error(`Invalid Claude ${r} credential record`);let i=t;if(i.claudeAiOauth===void 0||i.claudeAiOauth===null)return null;if(typeof i.claudeAiOauth!=="object"||Array.isArray(i.claudeAiOauth))throw Error(`Invalid Claude ${r} OAuth record`);let n=i.claudeAiOauth;if(typeof n.accessToken!=="string"||!n.accessToken.trim()||!Array.isArray(n.scopes)||!n.scopes.every((s)=>typeof s==="string")||!n.scopes.includes("user:inference")||n.expiresAt!==null&&(typeof n.expiresAt!=="number"||!Number.isSafeInteger(n.expiresAt)||n.expiresAt<=0))throw Error(`Claude ${r} OAuth record has invalid token, expiry, or inference scope`);return{accessToken:n.accessToken,expiresAt:n.expiresAt,scopes:n.scopes,source:r}}async function Ti(e=d){if(e.env.CLAUDE_CODE_SIMPLE&&["1","true","yes","on"].includes(e.env.CLAUDE_CODE_SIMPLE.toLowerCase()))throw Error("Claude OAuth is disabled by CLAUDE_CODE_SIMPLE");if(e.env.CLAUDE_CODE_CUSTOM_OAUTH_URL||e.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Custom Claude OAuth endpoints and descriptor credentials are not supported by the local-login reader");let r=e.env.CLAUDE_CODE_OAUTH_TOKEN;if(r!==void 0){if(!r.trim())throw Error("CLAUDE_CODE_OAUTH_TOKEN is empty");return{accessToken:r,expiresAt:null,scopes:["user:inference"],source:"environment"}}let t=e.env.CLAUDE_CONFIG_DIR;if(t==="")throw Error("CLAUDE_CONFIG_DIR is empty");let i=(t??u(e.home,".claude")).normalize("NFC");if(e.platform==="darwin"){let s=t===void 0?"":`-${new Bun.CryptoHasher("sha256").update(i).digest("hex").slice(0,8)}`,o=await e.keychain(`Claude Code-credentials${s}`,e.username());if(o!==null)return c(o,"keychain")}else if(e.platform!=="win32")throw Error(`Unsupported Claude login platform: ${e.platform}`);let n=await e.file(u(i,".credentials.json"));return n===null?null:c(n,"file")}async function da(e=d,r=Date.now()){let t=await Ti(e);if(!t)throw Error("No existing Claude subscription login; sign in through Claude Code or ALwith Desktop");if(t.expiresAt!==null&&t.expiresAt<=r+60000)throw Error("The existing Claude access token is expired or expiring; refresh it in the owning Claude Code or ALwith CLI before retrying");return t.accessToken}
|
|
2
|
+
export{Ti,da};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`)}function T({subject:t,requestTitle:n}){let{host:s}=e();if(!b(t))return null;let r=t.toolCall,l=A(r),i=v(r),c=R(r),p=s.toolTitle?.(r)??r.title;return m("div",{className:"flex flex-col gap-2",children:[p&&p!==n&&l===null&&a("div",{className:"text-sm font-medium",children:p}),l!==null&&m("pre",{className:"bg-muted overflow-x-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:[a("span",{className:"text-muted-foreground select-none",children:"$ "}),l]}),i!==null&&a("div",{className:"max-h-80 overflow-auto rounded-lg border","data-stream-style":"codexUI",children:a(
|
|
3
|
-
export{
|
|
1
|
+
import{ki}from"./chunk-4jp1d558.js";import{Pi}from"./chunk-81n37a11.js";import{Si}from"./chunk-x2wcwpw3.js";import{vt}from"./chunk-gttw4rmx.js";import{o}from"./chunk-73e9vpm9.js";import{e}from"./chunk-esbgn8q0.js";import{isContentEntry as f,isDiffEntry as g,isFormElicitation as x,isText as h,isToolCallSubject as b,isUrlElicitation as w}from"@nyssance/codex-acp-v2/client";import{jsx as a,jsxs as m}from"react/jsx-runtime";function et(t){return t.kind==="elicitation"&&x(t.params)}function y(t){let n=t._meta?.codex;if(typeof n!=="object"||n===null)return null;let s=n.description;return typeof s==="string"?s:null}function A(t){let n=t.rawInput;if(typeof n!=="object"||n===null)return null;let s=n.command;if(typeof s==="string")return s;if(Array.isArray(s))return s.map(String).join(" ");return null}function v(t){for(let n of t.content??[])if(g(n)&&n.patch&&n.patch.text.length>0)return n.patch.text;return null}function R(t){return(t.content??[]).filter(f).map((n)=>h(n.content)?n.content.text:"").filter((n)=>n.length>0).join(`
|
|
2
|
+
`)}function T({subject:t,requestTitle:n}){let{host:s}=e();if(!b(t))return null;let r=t.toolCall,l=A(r),i=v(r),c=R(r),p=s.toolTitle?.(r)??r.title;return m("div",{className:"flex flex-col gap-2",children:[p&&p!==n&&l===null&&a("div",{className:"text-sm font-medium",children:p}),l!==null&&m("pre",{className:"bg-muted overflow-x-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:[a("span",{className:"text-muted-foreground select-none",children:"$ "}),l]}),i!==null&&a("div",{className:"max-h-80 overflow-auto rounded-lg border","data-stream-style":"codexUI",children:a(vt,{patch:i,theme:s.theme})}),i===null&&l===null&&c.length>0&&a("pre",{className:"bg-muted max-h-60 overflow-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:c}),(r.locations??[]).length>0&&a("ul",{className:"text-muted-foreground flex flex-col gap-0.5 text-xs",children:(r.locations??[]).map((u)=>a("li",{className:"truncate font-mono",children:u.path},`${u.path}:${u.line??""}`))})]})}function d(t,n){let{host:s,client:r}=e();return(l)=>{try{if(n)n(t.id,l);else r.respond(t.id,l)}catch(i){if(s.reportError)s.reportError(i);else console.error(i)}}}function C({action:t,total:n,onRespond:s}){let{host:r}=e(),l=d(t,s),i=t.params,c=r.permissionTitle?.(i)??i.title;return m(ki,{requestId:t.id,title:c,alwaysLabel:r.t("approval.always"),autoFocus:"if-idle",total:n,options:i.options.map((p)=>({...p,description:y(p)??void 0})),onRespond:(p)=>l({outcome:p===null?{outcome:"cancelled"}:{outcome:"selected",optionId:p}}),children:[i.description&&a("div",{className:"text-muted-foreground mt-0.5 text-xs",children:i.description}),i.subject&&a(T,{subject:i.subject,requestTitle:c})]})}function ht({action:t,total:n,onRespond:s}){let{host:r}=e(),l=d(t,s),i=o((c)=>t.sessionId===null?void 0:c.sessions[t.sessionId]);return a(Pi,{requestId:t.id,schema:t.params.requestedSchema,message:i?.subagent?`${i.title??r.t("subagents.untitled")}: ${t.params.message}`:t.params.message,total:n,t:r.t,onRespond:l})}function Fe({action:t,total:n,onRespond:s}){let{host:r}=e(),l=d(t,s);if(t.kind==="permission")return a(C,{action:t,total:n,onRespond:s});if(et(t))return a(ht,{action:t,total:n??1,onRespond:s});let i=t.params;if(!w(i))throw Error("Unsupported elicitation mode");return a(Si,{message:i.message,url:i.url,t:r.t,onOpen:r.openLink,onRespond:(c)=>l(c==="cancel"?{action:"cancel"}:{action:"decline"})})}
|
|
3
|
+
export{et,ht,Fe};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{qi}from"./chunk-e1fzfaqj.js";import{ge}from"./chunk-30a5fgk9.js";var t={chat:qi,image:ge};function ot(n){return Object.hasOwn(t,n)}function Ge(n){if(!ot(n))throw Error(`Unsupported input mode: ${n}`);return t[n]}function ya(n){if(n===null)return"chat";let o=n.mode;if(!ot(o))throw Error(`Unsupported input mode: ${o}`);return t[o].parseConfig(n.config),o}
|
|
2
|
+
export{ot,Ge,ya};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ki,Hn,Un,Bn,Gn}from"./chunk-dd9k5bbt.js";import{On}from"./chunk-xwwjj45a.js";var Ln=[{id:"litellm",source:"account",name:"ALwith",models:[{id:"deepseek-V4.1-flash",label:"DS Flash"}],catalog:"alwith/models.json",config:{}},{id:"anthropic",name:"Anthropic",apiType:"anthropic",baseUrl:"https://api.anthropic.com",keyUrl:"https://platform.claude.com/settings/keys",models:[{id:"claude-opus-5-5",label:"Opus 5.5"},{id:"claude-sonnet-5-5",label:"Sonnet 5.5"},{id:"claude-haiku-5-5",label:"Haiku 5.5"},{id:"claude-fable-5-2",label:"Fable 5.2"}],catalog:"anthropic/models.json",config:{}},{id:"deepseek",name:"DeepSeek",baseUrl:"https://api.deepseek.com/",keyUrl:"https://platform.deepseek.com/api_keys",webSearch:"deepseek",models:[{id:"deepseek-flash",label:"Flash",description:"Latest frontier agentic coding model with image input."}],catalog:"deepseek/models.json",config:{}},{id:"openrouter",name:"OpenRouter",baseUrl:"https://openrouter.ai/api/v1",keyUrl:"https://openrouter.ai/keys",models:[{id:"moonshotai/kimi-k3",label:"Kimi K3"},{id:"minimax/minimax-m3",label:"MiniMax M3"},{id:"z-ai/glm-5.3",label:"GLM 5.3"},{id:"deepseek/deepseek-v4-pro",label:"DeepSeek V4 Pro"},{id:"qwen/qwen3.8-max-0902",label:"Qwen 3.8 Max"},{id:"x-ai/grok-4.6",label:"Grok 4.6"}],catalog:"openrouter/models.json"},{id:"qwen",name:"Qwen",regions:[{id:"intl",baseUrl:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",keyUrl:"https://modelstudio.console.alibabacloud.com/?tab=model#/api-key"},{id:"cn",baseUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1",keyUrl:"https://bailian.console.aliyun.com/#/api-key"}],models:[{id:"qwen3.8-max",label:"3.8 Max"},{id:"qwen3.8-flash",label:"3.8 Flash"},{id:"qwen3.7-max",label:"3.7 Max"},{id:"qwen3.7-plus",label:"3.7 Plus"},{id:"qwen3.6-flash",label:"3.6 Flash"}],catalog:"qwen/models.json"},{id:"xai",name:"xAI",baseUrl:"https://api.x.ai/v1",keyUrl:"https://console.x.ai",models:[{id:"grok-4.6",label:"Grok 4.6"},{id:"grok-4.5",label:"Grok 4.5"},{id:"grok-4.3",label:"Grok 4.3"}],catalog:"xai/models.json"}];var l={"gateway:deepseek:deepseek-flash":{shortLabel:"Flash"},"gateway:litellm:deepseek-V4.1-flash":{shortLabel:"Flash",label:"DS Flash"}};var a=Ln,p={anthropic:Ki,deepseek:Hn,openrouter:Bn,qwen:Gn,xai:Un};function c(e){let n=p[e];if(!n)throw Error(`Provider ${e} has no logo`);return n}var R=a.filter((e)=>e.source!=="account").map(({source:e,...n})=>({...n,logo:c(n.id)}));function bt(e){return e!=null&&a.some((n)=>n.source==="account"&&e.startsWith(`gateway:${encodeURIComponent(n.id)}:`))}function Ct(e){let n=JSON.parse(e);if(!Array.isArray(n)||n.length===0)throw Error("Add at least one model");let t=new Set;return n.map((i)=>{if(typeof i!=="object"||i===null||Array.isArray(i))throw Error("Each model must be an object");let o=i,s=typeof o.label==="string"?o.label.trim():"",r=typeof o.api_id==="string"?o.api_id.trim():"";if(s===""||r==="")throw Error("Model label and API ID cannot be empty");if(t.has(r))throw Error("Model IDs must be unique");if(t.add(r),o.contextWindow!==void 0&&o.contextWindow!==null&&(!Number.isSafeInteger(o.contextWindow)||o.contextWindow<=0))throw Error("Model contextWindow must be a positive integer");if(o.description!==void 0&&typeof o.description!=="string")throw Error("Model description must be a string");return{label:s,api_id:r,...o.contextWindow===void 0?{}:{contextWindow:o.contextWindow},...o.description===void 0?{}:{description:o.description}}})}function fe(e){return[...R.filter((n)=>e.providers[n.id]!==void 0).map((n)=>({id:n.id,name:n.name,models:n.models})),...[...e.customProviders,...e.managedProviders??[]].map((n)=>({id:n.id,name:n.name,models:n.models.map((t)=>({id:t.api_id,label:t.label,...t.description==null?{}:{description:t.description}}))}))]}function S(e,n){let t=e.startsWith("custom_")?`custom-${Array.from(new TextEncoder().encode(e),(i)=>i.toString(16).padStart(2,"0")).join("")}`:e;return`gateway:${encodeURIComponent(t)}:${encodeURIComponent(n)}`}function xa(e,n,t="session",i=bt){let o=fe(n).flatMap((s)=>s.models.map((r)=>S(s.id,r.id)));if(e!==null&&(!e.startsWith("gateway:")||o.includes(e)))return e;if(e!==null&&t==="session")throw Error(i(e)?"The selected ALwith account model is unavailable. Select another model before sending.":"The selected model connection is unavailable. Select another model before sending.");return o[0]??null}function se(e,n){if(!e.regions)return null;let t=e.regions.find((i)=>i.id===n)??e.regions[0];if(!t)throw Error(`Provider ${e.id} declares no regions`);return t}function Dn(e,n){return se(e,n)?.keyUrl??e.keyUrl??null}function Fn(e){if(typeof e==="object"&&e!==null&&"code"in e&&e.code==="pending")return!0;return(e instanceof Error?e.message:typeof e==="string"?e:typeof e==="object"&&e!==null&&("message"in e)?String(e.message):String(e)).includes("Provider settings are pending")}function ba(e){let n=e?.match(/^gateway:custom-[^:]+:(.+)$/);if(!n)return null;let t=decodeURIComponent(n[1]),i=On.models.find((o)=>o.slug===t);return i?{value:i.default_reasoning_level,hidden:i.supported_reasoning_levels.length===0}:null}var wt=l;function Ca(e){return wt[e]??{}}
|
|
2
|
+
export{Ln,R,bt,Ct,fe,S,xa,se,Dn,Fn,ba,wt,Ca};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{A}from"./chunk-2hkj5qxh.js";import{EmojiPicker as t}from"frimousse";import{BoxIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Popover as x,PopoverContent as f,PopoverTrigger as b}from"@nyssance/shadcn/vega/components/ui/popover";import{jsx as o,jsxs as n}from"react/jsx-runtime";function mt({emoji:s,onChange:l}){let[m,r]=d(!1),{t:a,i18n:c,emojibaseUrl:p}=A();return n(x,{open:m,onOpenChange:r,children:[o(b,{onClick:(e)=>e.stopPropagation(),onPointerDown:(e)=>e.stopPropagation(),render:o(g,{variant:"ghost",size:"icon-xs",className:"relative z-10","aria-label":a("collection.emoji"),children:s||o(u,{className:"size-3.5"})})}),o(f,{align:"start",className:"w-auto p-0",children:n(t.Root,{emojibaseUrl:p,locale:c.language==="zh-CN"?"zh":"en",className:"bg-popover flex h-80 w-72 flex-col",onEmojiSelect:({emoji:e})=>{l(e),r(!1)},children:[o(t.Search,{"aria-label":a("collection.emoji"),className:"focus-visible:border-ring mx-2 mt-2 flex h-8 rounded-md border bg-transparent px-2 text-sm outline-none"}),n(t.Viewport,{className:"relative flex-1 outline-none",children:[o(t.Loading,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs",children:"…"}),o(t.Empty,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs"}),o(t.List,{className:"pb-1.5 select-none",components:{CategoryHeader:({category:e,...i})=>o("div",{className:"bg-popover text-muted-foreground px-3 pt-3 pb-1.5 text-xs",...i,children:e.label}),Row:({children:e,...i})=>o("div",{className:"scroll-my-1.5 px-1.5",...i,children:e}),Emoji:({emoji:e,...i})=>o("button",{type:"button",className:"data-[active]:bg-accent flex size-8 items-center justify-center rounded-md text-lg",...i,children:e.emoji})}})]})]})})]})}
|
|
2
|
+
export{mt};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`),I=o?null:
|
|
3
|
-
export{
|
|
1
|
+
import{t}from"./chunk-73e9vpm9.js";import{Io,To}from"./chunk-7evd34gw.js";import{F}from"./chunk-pc11a2w0.js";import{Et}from"./chunk-rv3k0kfr.js";import{Lo}from"./chunk-d0s10qy5.js";import{ls,ye,Ot,ds}from"./chunk-7d1wnjw5.js";import{Eo}from"./chunk-ak196z4y.js";import{je}from"./chunk-ane53rqa.js";import{Do}from"./chunk-113maskf.js";import{Fo}from"./chunk-7pwdjhg8.js";import{Tr}from"./chunk-j78kgyff.js";import{Ir}from"./chunk-2ncdext6.js";import{is}from"./chunk-hnkde8me.js";import{Nr}from"./chunk-zyn0ys4m.js";import{Mo,No}from"./chunk-zw2x5ztr.js";import{Lt}from"./chunk-ftsnryz8.js";import{codexMessageError as q,codexTurnError as z,isContentEntry as me,isEmbeddedResource as Z,isImage as ee,isResourceLink as le,isText as de,nativeTurnId as ce}from"@nyssance/codex-acp-v2/client";import{SparklesIcon as ge}from"lucide-react";import{Fragment as X,memo as ue,useEffect as pe,useState as fe}from"react";import{jsx as i,jsxs as m,Fragment as A}from"react/jsx-runtime";function Y(s){if(ee(s))return`${s.mimeType.toLowerCase()}:${s.data}`;if(Z(s)&&"blob"in s.resource&&s.resource.mimeType?.toLowerCase().startsWith("image/"))return`${s.resource.mimeType.toLowerCase()}:${s.resource.blob}`;return null}function he({item:s}){let{t:n}=t(),l=s.status==="in_progress",[o,g]=fe(()=>Date.now()-s.at>=1e4);return pe(()=>{if(!l)return;let a=Math.max(0,s.at+1e4-Date.now());if(g(a===0),a===0)return;let h=setTimeout(()=>g(!0),a);return()=>clearTimeout(h)},[s.id,s.at,l]),m("div",{className:"codex-context-compaction",children:[i(ge,{"aria-hidden":"true"}),i("span",{children:s.status==="completed"?n("stream.codex.contextCompacted"):s.status==="cancelled"?n("timeline.interrupted"):n(o?"timeline.compactingWithDelayNotice":"timeline.compacting")})]})}function N({sessionId:s,entry:n,terminals:l,streaming:o,streamingThoughtId:g}){let{t:a}=t();switch(n.kind){case"activity":return i(Eo,{sessionId:s,items:n.items,terminals:l,streamingThoughtId:g});case"text":return F(n.item._meta).length>0?i(Fo,{sessionId:s,item:n.item}):i(je,{content:n.item.content,messageId:n.item.id,streaming:o});case"plan":return i(is,{plan:n.item.plan});case"compaction":if(n.item.status==="failed")return m(Mo,{children:[i("div",{children:a("timeline.compactionFailed")}),n.item.error!==null&&i("div",{children:n.item.error})]});return i(he,{item:n.item})}}function ke({sessionId:s,turn:n,terminals:l,active:o,blocked:g=!1,continued:a=!1,edits:h=n.edits,activityItems:M=n.items,workStartedAt:te=n.startedAt,isLast:L,error:k,interrupted:P,retry:G,retrying:p,extraWork:d=null,answerActions:O,footer:ne}){let{t:c}=t(),b=n.errors.map((e)=>{let r=q(e);if(r===null)throw Error("Turn error item is missing its diagnostics");let E=G?.turnId===ce(e)?G:void 0;return i(No,{error:r,retry:E},`${e.id}:${E?.delaySeconds??"manual"}`)});if(L&&k!==null&&!n.errors.some((e)=>{let r=q(e);return r!==null&&r.stopReason===k.stopReason&&z(r).message===z(k).message}))b.push(i(No,{error:k},"current-run-error"));let x=b.length>0?i("div",{className:"codex-turn-errors",children:b}):null,C=n.items.filter(Lo);if(d===null&&C.length>0&&C.length===n.items.length)return m(A,{children:[i(Eo,{sessionId:s,items:C,terminals:l,streamingThoughtId:null}),x]});let T=n.work,w=T.length>0&&T.every((e)=>e.kind==="compaction");if(d===null&&(ls(n)||w&&n.final.length===0))return m(A,{children:[i("div",{role:"status",className:"text-muted-foreground flex min-w-0 flex-col gap-2 py-2 text-sm",children:n.work.map((e)=>i(N,{sessionId:s,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key))}),x]});let W=Ot(n),D=n.final.filter((e)=>F(e._meta).length===0).map((e)=>ye({...e,content:Do(e.content,n.items)})).join(`
|
|
2
|
+
`),I=o?null:Lt(n,"assistant"),B=n.items.filter((e)=>e.kind==="tool"&&(e.name==="image_generation"||e.name==="alwith_client_generate_image"||e.name==="generate_image"||e.name?.endsWith(".generate_image"))&&(e.status==="pending"||e.status==="in_progress")),H=new Set(n.final.flatMap((e)=>e.content.map(Y).filter((r)=>r!==null))),f=n.items.flatMap((e)=>{if(!Et(e))return[];return e.content.filter(me).flatMap((r,E)=>{let u=r.content,oe=ee(u),ae=le(u)||Z(u)&&"blob"in u.resource;if(!oe&&!ae)return[];let S=Y(u);if(S!==null){if(H.has(S))return[];H.add(S)}return[{key:`${e.id}:${E}`,block:u}]})}),K=n.final.some((e)=>F(e._meta).length===0&&e.content.some((r)=>!de(r)||r.text.trim().length>0)),ie=B.length>0||f.length>0||w||K||n.final.some((e)=>F(e._meta).length>0),v=n.items.findIndex((e)=>n.final.includes(e)),R=(e)=>n.items.indexOf(e.kind==="activity"?e.items[0]:e.item),Q=T.filter((e)=>v===-1||R(e)<v),se=T.filter((e)=>v!==-1&&R(e)>v),re=[...n.final.map((e)=>({kind:"answer",item:e,index:n.items.indexOf(e)})),...se.map((e)=>({kind:"work",entry:e,index:R(e)}))].toSorted((e,r)=>e.index-r.index),V=!o&&!a&&(D.trim().length>0?i(Io,{text:D,isMostRecentTurn:L,time:I,afterCopy:O}):m("div",{className:"flex items-center gap-0.5",children:[O,I&&i("span",{className:"codex-user-time ms-1",title:I.full,children:I.short})]})),y=Nr({...n,items:M},{running:o,blocked:g,retrying:p!==void 0}),j=y.kind==="reasoning"?y.ownerKey??null:null,J=y.kind==="thinking",_=ds({...n,items:M}),U=o&&!K||d?.active===!0;return m(A,{children:[i(To,{stateKey:JSON.stringify([s,n.replayed?"history":"live",n.key]),active:U,defaultExpanded:U||d?.defaultExpanded===!0||!n.replayed&&(P||W),..._,durationMs:d?.active?void 0:_.durationMs,startedAt:_.startedAt??te,loading:(J||y.kind==="working")&&n.work.length===0&&d===null,loadingLabel:y.kind==="working"?c("stream.codex.working"):void 0,work:[...a||w?[]:Q.map((e)=>i(N,{sessionId:s,entry:e,terminals:l,streaming:o,streamingThoughtId:j},e.key)),...d===null?[]:[i(X,{children:d.content},"additional-work")]],answer:ie||a?m("div",{className:"flex min-w-0 flex-col gap-3",children:[(a||w)&&Q.map((e)=>i(N,{sessionId:s,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key)),re.map((e)=>{if(e.kind==="work")return i(N,{sessionId:s,entry:e.entry,terminals:l,streaming:o,streamingThoughtId:j},e.entry.key);let r=e.item;return m(X,{children:[F(r._meta).length>0?i(Fo,{sessionId:s,item:r}):i(je,{content:Do(r.content,n.items),messageId:r.id,streaming:o}),r===n.final.at(-1)&&f.length===0&&V]},r.id)}),B.map((e)=>m("div",{className:"codex-image-generation",role:"status","aria-label":c(o?"timeline.imageGenerating":"timeline.imageStopped"),"aria-busy":o,children:[i("div",{className:"codex-image-generation-texture","aria-hidden":"true"}),m("span",{className:"codex-image-generation-status",children:[o&&i(Ir,{startedAt:e.at}),!o&&c("timeline.imageStopped")]})]},e.id)),f.length>0&&i("div",{className:"codex-reply-artifacts flex min-w-0 flex-col gap-3",children:f.map((e)=>i(je,{content:[e.block],messageId:e.key,streaming:!1},e.key))}),(n.final.length===0||f.length>0)&&V]}):null,footer:m(A,{children:[J&&n.work.length>0&&i("div",{className:"codex-pending-message py-2",role:"status",children:i("span",{className:"codex-activity-running",children:c("message.thinking")})}),ne,h.length>0&&!o&&!a&&i(Tr,{items:h}),P&&!W&&i("div",{className:"codex-interrupted-turn",role:"status",children:c("timeline.interrupted")}),!o&&x]})}),o&&p!==void 0&&i("div",{className:"text-muted-foreground py-2 text-sm",role:"status",children:p.capacity?(()=>{let e=/Reconnecting(?:\.\.\.)?\s+(\d+\/\d+)/.exec(p.message)?.[1];return e===void 0?c("timeline.capacityReconnecting"):c("timeline.capacityReconnectingProgress",{progress:e})})():p.message}),o&&x]})}var _r=ue(ke);
|
|
3
|
+
export{_r};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{En}from"./chunk-evpjxbzm.js";import{uo,te}from"./chunk-fwqpwbd8.js";import{zi}from"./chunk-4sfxcw58.js";function Bi(d,a){return En({...uo.definitions[0],revision:uo.revision,autoApprove:(i)=>a(i)!==void 0,parse(i){let e=i;if(!e||typeof e!=="object"||Array.isArray(e)||typeof e.prompt!=="string"||!e.prompt.trim()||Object.keys(e).some((n)=>n!=="prompt"&&n!=="references")||e.references!==void 0&&(!Array.isArray(e.references)||e.references.some((n)=>typeof n!=="string")))throw Error("Invalid image instructions or references");return{prompt:e.prompt,references:e.references}},async execute(i,{sessionId:e,toolCallId:n,signal:c,agent:l}){let t=a(e);if(!t)throw Error("Image request is no longer active");let g=i.references,m=(g??[...t.references.keys()].filter((r)=>r.startsWith("attachment:"))).map((r)=>{let s=t.references.get(r);if(!s)throw Error(`Unknown image reference: ${r}`);return s}),o=te(t.selection);if(m.length>o.maxReferences)throw Error(`This model supports ${o.maxReferences} references`);let f=zi(i.prompt,t.aspect),p=o.provider==="chatgpt"?await l.request("_codex/images/generate",{prompt:f,images:m},{cancellationSignal:c}):await d.generateExternal(t.selection,f,m,c);if(c.throwIfAborted(),a(e)!==t)throw Error("Image request was cancelled or replaced");return p.images.forEach((r,s)=>t.references.set(`${String(n)}:${s+1}`,`data:${r.mimeType};base64,${r.data}`)),{success:!0,contentItems:[{type:"text",text:JSON.stringify({kind:"alwith.image",version:1,model:o.id,size:t.selection.size,displayed:!0,message:"The application already displays these images and provides downloads. Finish with the returned image reference; do not regenerate, echo image data or write files to deliver this result.",references:g??[],images:p.images.map((r,s)=>({reference:`${String(n)}:${s+1}`}))})},...p.images.map((r)=>({type:"image",...r}))]}}})}
|
|
2
|
+
export{Bi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$i,te}from"./chunk-fwqpwbd8.js";import{lo}from"./chunk-j6000jts.js";import{so}from"./chunk-eynwjzqp.js";import{An}from"./chunk-tftgnw1w.js";import{Gi,ao}from"./chunk-4sfxcw58.js";import{Bi}from"./chunk-vg9p0hvk.js";import{Mn}from"./chunk-sp2ny9ak.js";import{ge}from"./chunk-30a5fgk9.js";import{ot,Ge}from"./chunk-tc6d0v1y.js";import{co}from"./chunk-bw3bpr6m.js";import{me,Nn}from"./chunk-gwskdhaw.js";import{configRevisionOf as M,isBooleanOption as S,isGroupedSelect as v,isImage as O,isSelectOption as g,mergeMeta as f,runStateSource as R}from"@nyssance/codex-acp-v2/client";var x={id:"chatgpt",name:"ChatGPT"};function y(e){return e===null?void 0:{alwith:{model:e}}}function h(e){let s=e.find((t)=>t.category==="model"&&t.type==="select");return s?.type==="select"&&typeof s.currentValue==="string"?s.currentValue:null}class Ui extends lo{async executeShell(e,s){let t=this.session(e);if(!t.attached||t.restoring||t.readOnly||t.state!=="idle")throw Error("The session is not ready for a shell command");await this.codexCapabilities.executeShell(e,s),this.materializeDraft(e)}modelListeners=new Set;confirmedModelListeners=new Set;savedModels={main:null,chat:null};slotModels={main:null,chat:null};slotTargets={main:null,chat:null};slotVersions={main:0,chat:0};draftDirectoryIntents=new Map;draftOperations=new Map;gatewayModels=new Map;configOwners=new Map;openingOwners=new Map;schedulingConfig=new Set;replayRepairs=new Map;accountRevocations=new Map;accountRecoveries=new Map;resolveModelOption;constructor(e,s){let{resolveModel:t,imageService:i,...n}=s;super(e,n,{sessionWindows:{},draftSessions:{},modelRecovery:{},nativeModels:[]});this.resolveModelOption=t,this.imageService=i,this.imageTool=i?Bi(i,(o)=>this.imageRequests.get(o)):void 0}imageTool;imageService;inputModes=new Map;inputSelections=new Map;async readInputConfig(e){let s=this.live(),t=await s.request("_codex/session_input_config_get",{sessionId:e});if(s!==this.agent)throw Error("Session input configuration belongs to a disconnected agent");return this.acceptInputConfig(e,t)}async writeInputConfig(e,s){let t=this.live(),i=await t.request("_codex/session_input_config_set",{sessionId:e,inputConfig:s});if(t!==this.agent)throw Error("Session input configuration belongs to a disconnected agent");return this.acceptInputConfig(e,i)}acceptInputConfig(e,s){let t=Mn(s,e);this.inputModes.delete(e),this.inputSelections.delete(e);let i=t.inputConfig;if(i&&ot(i.mode)){if(Ge(i.mode).parseConfig(i.config),this.inputModes.set(e,i.mode),i.mode==="image")this.inputSelections.set(e,ge.parseConfig(i.config))}return t}imageRequests=new Map;prompt(e,s,t={}){if(!this.imageService)return super.prompt(e,s,t);if(!this.inputModes.has(e))return this.imageService.inputMode(e).then((i)=>(this.inputModes.set(e,i),this.prompt(e,s,t)));return Ge(this.inputModes.get(e)).routePrompt({native:()=>super.prompt(e,s,{...t,meta:f(t.meta,{alwith:{imageIntent:null,applicationContext:Ge("chat").applicationContext(null)}})}),image:()=>this.promptImage(e,s,t)})}promptImage(e,s,t){if(!this.imageService)throw Error("Image service is not connected");ao(t.meta?.alwith?.imageAspectRatio);let i=t.meta?.alwith?.imageSelection;if(i!==void 0)te(i);let n=i??this.inputSelections.get(e)??this.imageService.selection(),o={...this.session(e).state!=="idle"?this.imageRequests.get(e)?.selection??n:n};te(o);let a=crypto.randomUUID();return this.promptImages.set(a,new Map(s.flatMap((r,c)=>O(r)?[[`attachment:${c}`,`data:${r.mimeType};base64,${r.data}`]]:[]))),super.prompt(e,s,{...t,meta:f(t.meta,{alwith:{imageSelection:o,imageRequestId:a,applicationContext:ge.applicationContext(t.meta?.alwith?.imageIntent??"generate",Gi),imageIntent:t.meta?.alwith?.imageIntent??"generate"}})}).finally(()=>this.promptImages.delete(a))}promptMeta(e,s){let t=s.meta?.alwith?.imageSelection;if(this.inputModes.get(e)==="image"&&t&&this.imageService&&(this.session(e).state==="idle"||!this.imageRequests.has(e))){let i=new Map($i(this.session(e)).map((o)=>[o.id,o.src]));for(let[o,a]of this.promptImages.get((s.meta?.alwith).imageRequestId)??[])i.set(o,a);let n=ao((s.meta?.alwith).imageAspectRatio);this.imageRequests.set(e,{selection:t,references:i,...n?{aspect:n}:{}})}return co(super.promptMeta(e,s))}promptImages=new Map;promptWithImages(e,s,t={}){return this.prompt(e,s,{...t,meta:f({alwith:{imageIntent:"generate"}},t.meta)})}async applicationToolsFor(e){let s=await super.applicationToolsFor(e),t=e.options.meta?.alwith;return[...s,...t?.nativeTools?.imageGeneration===!1&&this.imageTool?[this.imageTool]:[]]}releaseImages(e){this.imageRequests.delete(e)}onDisconnected(){for(let e of this.imageRequests.keys())this.releaseImages(e);this.promptImages.clear(),super.onDisconnected(),this.setApp({nativeModels:[]})}async cancel(e){this.releaseImages(e),await super.cancel(e)}async close(e){this.releaseImages(e),await super.close(e)}async stopSession(e){this.releaseImages(e),await super.stopSession(e)}setApp(e){this.store.setState(e)}applyRunStates(e,s="event"){let t=this.state.runStates,i=e.map((n)=>{let o=t[n.sessionId];return o&&JSON.stringify(o)===JSON.stringify(n)?o:n});if(R(t)===s&&i.length===Object.keys(t).length&&i.every((n)=>n===t[n.sessionId]))return;super.applyRunStates(i,s)}enqueueSession(e,s,t=!0){let i=!t&&!this.schedulingConfig.has(e);return super.enqueueSession(e,()=>{let n=()=>{let r=this.holds(e)?h(this.session(e).configOptions):null;return s().then(async(c)=>{if(this.holds(e)&&h(this.session(e).configOptions)!==r)await this.normalizeCustomEffort(e,!0);return c})},o=()=>{let r=i?this.normalizeCustomEffort(e,!1):void 0;return r?r.then(n):n()},a=t?void 0:this.replayRepairs.get(e)?.promise;return a?a.then(o):o()},t)}customEffortChange(e,s,t=!1,i){if(!this.holds(e))return;let n=this.session(e);if(!n.attached||n.readOnly)return;let o=h(n.configOptions),a=so(o);if(!a)return;let r=n.configOptions.find((p)=>p.category==="thought_level"&&g(p)),c,d;if(r&&g(r)){let p=v(r.options)?r.options.flatMap((l)=>l.options):r.options;if(r.currentValue===a.value||!s&&p.some((l)=>l.value===r.currentValue))return;if(!p.some((l)=>l.value===a.value))throw Error(`The model does not advertise its default effort: ${o}`);c=r.configId,d=!s&&i!==void 0&&p.some((l)=>l.value===i)?i:a.value}else{if(!a.hidden||!t||o===null)return;let p=n.configOptions.find((l)=>l.category==="model");if(!p)throw Error("The custom model has no model option");c=p.configId,d=o}return{configId:c,value:d}}normalizeCustomEffort(e,s,t=!1,i){let n=this.customEffortChange(e,s,t,i);return n?this.writeCustomEffort(e,n.configId,n.value):void 0}async writeCustomEffort(e,s,t){let i=this.live(),n=this.lifecycle.capture(e),o=await i.request("session/set_config_option",{sessionId:e,configId:s,type:"id",value:t});if(i!==this.agent||!this.lifecycle.isCurrent(n))throw Error("Effort configuration belongs to a retired session");this.publishSession({...this.session(e),configOptions:o.configOptions,configRevision:M(o)??this.session(e).configRevision})}async afterSessionCreated(e){await super.afterSessionCreated(e);try{await super.enqueueSession(e,async()=>this.normalizeCustomEffort(e,!0,!0),!1)}catch(s){try{await this.delete(e)}catch(t){throw AggregateError([s,t],"Failed to initialize and clean up the custom model session",{cause:t})}throw s}}replay(e,s,t){let i=this.replayRepairs.get(e);if(i?.cwd===s)return i.promise;let n=this.replayWithEffort(e,s,t);this.replayRepairs.set(e,{cwd:s,promise:n});let o=()=>{if(this.replayRepairs.get(e)?.promise===n)this.replayRepairs.delete(e)};return n.then(o,o),n}async replayWithEffort(e,s,t){let i=this.holds(e)?this.session(e).configOptions:[],n=i.find((a)=>a.category==="thought_level")?.currentValue;await super.replay(e,s,t);let o=this.lifecycle.capture(e);try{await this.normalizeCustomEffort(e,!1,!0,h(i)===h(this.session(e).configOptions)&&typeof n==="string"?n:void 0)}catch(a){if(this.holds(e)&&this.lifecycle.isCurrent(o))this.publishSession({...this.session(e),attached:!1,restoring:!1});throw a}}async connect(){if(await super.connect(),this.state.projectContext===null)await this.refreshProjectContext()}async listProjectSessions(e){await this.listSessions();let s=this.projectPath(e),t=this.sessionGroup({cwd:s}).id;return this.state.sessionList.filter((i)=>this.sessionGroup(i).id===t)}async newSession(e,s=null,t="main"){if(s!==null&&typeof s==="object")return super.newSession(e,s);let i=++this.slotVersions[t],n=await this.createNativeSession(e,await this.resolveModel(s),null);return this.activateSlot(t,n,i),n}async createNativeSession(e,s,t,i="chat"){let n=await super.newSession(e,{draft:t!==null,meta:f(y(s),this.imageService||t!==null?{alwith:{...this.imageService?{inputMode:i}:{},...t===null?{}:{draft:!0}}}:void 0)});if(t!==null)this.draftDirectoryIntents.set(n,e),this.setApp((o)=>({draftSessions:{...o.draftSessions,[n]:t}}));return this.noteModel(this.session(n)),n}async open(e,s,t="main"){if(typeof t!=="string")return super.open(e,s,t);if(t==="chat"&&this.imageService&&(this.inputModes.get(e)??await this.imageService.inputMode(e))==="image")throw Error("Image conversations must be opened in the main window");this.bindSlot(t,e),++this.slotVersions[t];let i=this.holds(e)?this.session(e):void 0;if(i?.attached&&(!this.imageService||this.inputModes.has(e))&&!i.restoring&&!i.readOnly&&!this.lifecycle.operations.busy(e)&&!this.replayRepairs.has(e)){this.followModel(t,i);return}await this.replayForOwner(e,s,t)}async replayForOwner(e,s,t){this.openingOwners.set(e,t);try{await this.replay(e,s)}finally{if(this.openingOwners.get(e)===t)this.openingOwners.delete(e)}}async requestContext(e,s,t){if(this.imageService){let i=s.kind==="resume"?s.sessionId:s.kind==="fork"?s.sourceSessionId:null,n=i===null?t.meta?.alwith?.inputMode??"chat":await this.imageService.inputMode(i),o=Ge(n),a=co(t.meta),r={...a?.alwith,nativeTools:o.nativeTools};delete r.tools;let c=await this.requestModelContext(e,s,{...t,meta:{...a,alwith:r}});return{...c,bind:async(d)=>{await c.bind?.(d),this.inputModes.set(d,n)}}}return this.requestModelContext(e,s,t)}async requestModelContext(e,s,t){if(s.kind!=="resume"||t.meta?.alwith?.model!==void 0)return super.requestContext(e,s,t);let i=s.sessionId,n=this.holds(i)?this.session(i):void 0,o=(n?h(n.configOptions):null)??this.gatewayModels.get(i)??null,a=await this.resolveModel(o),r=o===null?null:a;return super.requestContext(e,s,{...t,meta:f(y(r),t.meta)})}async recoverReplay(e,s,t,i){let n=me(t);if(!n&&!Nn(t))return super.recoverReplay(e,s,t,i);try{await super.afterResume(e,s,i)}catch(o){if(i.signal.throwIfAborted(),!this.current(i)||!this.holds(e))return!0;this.setApp((a)=>({historyPages:{...a.historyPages,[e]:{cursor:null,loading:!1,error:o instanceof Error?o.message:String(o)}}}))}if(n){if(i.signal.throwIfAborted(),!this.current(i)||!this.holds(e))return!0;return this.publishSession({...this.session(e),attached:!1,restoring:!1,readOnly:!1,error:{stopReason:"error",error:{code:-32000,message:t.reason??t.message,data:t.data},meta:null}}),!0}if(i.signal.throwIfAborted(),!this.current(i)||!this.holds(e))return!0;return this.accountRevocations.set(e,(this.accountRevocations.get(e)??0)+1),this.setApp((o)=>({modelRecovery:{...o.modelRecovery,[e]:!0}})),this.publishSession({...this.session(e),cwd:s,attached:!1,restoring:!1,readOnly:!0}),!0}markAccountModelsUnavailable(e){this.setApp((s)=>({modelRecovery:{...s.modelRecovery,...Object.fromEntries(e.map((t)=>[t,!0]))}}));for(let s of e){if(this.accountRevocations.set(s,(this.accountRevocations.get(s)??0)+1),!this.holds(s))continue;this.publishSession({...this.session(s),attached:!1,readOnly:!0})}}async resumeModel(e,s){let t=this.session(e);if(!this.state.modelRecovery[e]&&(t.attached||!me(t.error?.error)))throw Error("Model recovery is not required");if(!s)throw Error("Select a model before continuing");let i=this.accountRevocations.get(e)??0,n=await this.resolveModel(s);if(!n)throw Error("The selected provider connection or model is unavailable");if((this.accountRevocations.get(e)??0)!==i)throw Error("ALwith account changed during model selection");this.accountRecoveries.set(e,i);try{await this.replay(e,t.cwd,{meta:{alwith:{model:n,accountModelSelection:!0}}})}catch(a){if(this.holds(e)&&this.state.modelRecovery[e])this.publishSession({...this.session(e),attached:!1,restoring:!1,readOnly:!0});throw a}finally{this.accountRecoveries.delete(e)}if((this.accountRevocations.get(e)??0)!==i)throw Error("ALwith account changed during model selection");let o=this.session(e);if(!o.attached||o.readOnly)throw Error(o.error?.error?.message??"Cannot resume this conversation");this.accountRevocations.delete(e),this.setApp((a)=>{let{[e]:r,...c}=a.modelRecovery;return{modelRecovery:c}}),this.confirmModel(this.state.sessionWindows[e]??"main",o)}setConfig(e,s,t,i="main"){this.configOwners.set(`${e}:${s}`,i),this.schedulingConfig.add(e);try{return super.setConfig(e,s,t)}finally{this.schedulingConfig.delete(e)}}onConfigChanged(e,s,t){super.onConfigChanged(e,s,t),this.noteModel(this.session(e));let i=this.configOwners.get(`${e}:${s}`)??"main";if(this.configOwners.delete(`${e}:${s}`),t.configOptions.some((n)=>n.configId===s&&n.category==="model"))this.confirmModel(i,this.session(e))}changeDraft(e,s){let t=Promise.allSettled(e.map((i)=>this.draftOperations.get(i)).filter((i)=>i!==void 0)).then(s);for(let i of e)this.draftOperations.set(i,t);return t}prepareDraft(e,s,t=null,i=!1,n="chat"){if(e==="chat"&&n!=="chat")throw Error("The floating chat only supports chat input");let o=++this.slotVersions[e];return this.changeDraft([e],async()=>{let a=s??(await this.refreshProjectContext(!0)).chatDirectory,r=Object.keys(this.state.draftSessions).find((l)=>this.state.draftSessions[l]===e);if(r)await this.lifecycle.admission.pending(r);let c=t??(r?h(this.session(r).configOptions):this.savedModels[e]??this.slotModels[e]),d=i?null:await this.resolveModel(c,t===null?"draft":"session");if(r&&(this.inputModes.get(r)??"chat")===n&&this.session(r).cwd===a&&(!this.draftDirectoryIntents.has(r)||this.draftDirectoryIntents.get(r)===s)&&!i&&!this.state.modelRecovery[r]&&(d===null?!h(this.session(r).configOptions)?.startsWith("gateway:"):h(this.session(r).configOptions)===d)){if(this.activateSlot(e,r,o),!this.session(r).attached)await this.replayForOwner(r,a,e);if(t!==null)this.confirmModel(e,this.session(r));return r}let p=await this.createNativeSession(s,d,e,n);try{if(r&&this.session(r).cwd===a)for(let l of this.session(r).configOptions){if(l.category==="model")continue;if(l.category==="thought_level"&&h(this.session(r).configOptions)!==h(this.session(p).configOptions)&&so(h(this.session(p).configOptions))!==null)continue;let u=this.session(p).configOptions.find((w)=>w.configId===l.configId);if(!u||u.currentValue===l.currentValue)continue;if(S(l)&&S(u))await this.setConfig(p,l.configId,l.currentValue);else if(g(l)&&g(u)){if((v(u.options)?u.options.flatMap((m)=>m.options):u.options).some((m)=>m.value===l.currentValue))await this.setConfig(p,l.configId,l.currentValue)}}if(r)await this.deleteEmptyDraft(r)}catch(l){throw await this.deleteEmptyDraft(p),l}if(this.activateSlot(e,p,o),t!==null||i||c!==null&&c!==d)this.confirmModel(e,this.session(p));return p})}discardDraft(e){if(e!=="main"&&e!=="chat")return super.discardDraft(e);return this.changeDraft([e],async()=>{for(let[s,t]of Object.entries(this.state.draftSessions))if(t===e)await this.deleteEmptyDraft(s)})}transferDraft(e,s){return this.changeDraft(["main","chat"],async()=>{if(s==="chat"&&this.inputModes.get(e)==="image")throw Error("Image conversations must remain in the main window");if(!this.state.draftSessions[e]||this.state.draftSessions[e]===s)return;for(let[t,i]of Object.entries(this.state.draftSessions))if(i===s)await this.deleteEmptyDraft(t);this.setApp((t)=>t.draftSessions[e]?{draftSessions:{...t.draftSessions,[e]:s}}:{})})}deleteEmptyDraft(e){return this.enqueueSession(e,async()=>{if(!this.state.draftSessions[e])return;await this.delete(e),this.gatewayModels.delete(e)})}onDraftMaterialized(e){super.onDraftMaterialized(e),this.draftDirectoryIntents.delete(e),this.setApp((s)=>{let{[e]:t,...i}=s.draftSessions;return{draftSessions:i}}),this.noteModel(this.session(e))}onSessionDropped(e){super.onSessionDropped(e),this.inputModes.delete(e),this.inputSelections.delete(e),this.draftDirectoryIntents.delete(e),this.gatewayModels.delete(e),this.accountRevocations.delete(e),this.accountRecoveries.delete(e),this.setApp((s)=>{let{[e]:t,...i}=s.draftSessions,{[e]:n,...o}=s.sessionWindows,{[e]:a,...r}=s.modelRecovery;return{draftSessions:i,sessionWindows:o,modelRecovery:r}})}fork(e,s,t){let i=typeof t==="object"?t:t===void 0?{}:{lastTurnId:t};return super.fork(e,s,i)}async forkInternal(e,s,t){let n=[...(await Promise.all([this.indexSessions(),this.indexSessions(void 0,!0)])).flat(),...this.state.sessionList,...this.state.archivedSessions],o=(this.holds(e)?this.session(e).title:null)??n.find((c)=>c.sessionId===e)?.title,a=await super.forkInternal(e,s,{...t,meta:f(y(this.gatewayModels.get(e)??null),t.meta)});await super.enqueueSession(a,async()=>this.normalizeCustomEffort(a,!1,!0),!1);let r=o??this.session(a).title;if(r)await this.renameSession(a,An(r,n.flatMap((c)=>c.title?[c.title]:[])));return a}onForked(e,s){super.onForked(e,s),this.noteModel(this.session(e))}onReplayed(e,s){super.onReplayed(e,s);let t=this.accountRevocations.get(e);if(t!==void 0&&this.accountRecoveries.get(e)!==t)this.markAccountModelsUnavailable([e]);this.noteModel(this.session(e))}setModelSelections(e){this.savedModels={...e},this.slotModels={...e}}onConfirmedModel(e){return this.confirmedModelListeners.add(e),()=>this.confirmedModelListeners.delete(e)}onSessionChanged(e){super.onSessionChanged(e);let s=this.accountRevocations.get(e.id);if(s!==void 0&&this.accountRecoveries.get(e.id)!==s&&(e.attached||!e.readOnly)){this.publishSession({...e,attached:!1,readOnly:!0});return}this.followModel("main",e),this.followModel("chat",e)}followModel(e,s){if(this.slotTargets[e]!==s.id||!s.attached||s.restoring)return;let t=h(s.configOptions);if(t!==null)this.slotModels[e]=t}activateSlot(e,s,t){if(this.slotVersions[e]!==t)return;this.bindSlot(e,s),this.followModel(e,this.session(s))}bindSlot(e,s){let t=e==="main"?"chat":"main";if(this.slotTargets[t]===s)this.slotTargets[t]=null,++this.slotVersions[t];this.slotTargets[e]=s,this.setApp((i)=>({sessionWindows:{...i.sessionWindows,[s]:e}}))}confirmModel(e,s){let t=h(s.configOptions);if(t===null)throw Error("Model selection did not return the current model");this.followModel(e,s),this.savedModels[e]=t;for(let i of this.confirmedModelListeners)i(e,t)}resolveModel(e,s="session"){return this.resolveModelOption?this.resolveModelOption(e,s):Promise.resolve(e)}onSessionModel(e){return this.modelListeners.add(e),()=>this.modelListeners.delete(e)}noteModel(e){let s=h(e.configOptions);if(s===null)return;let t=e.configOptions.find((n)=>n.category==="model"&&n.type==="select");if(t&&g(t)){let o=(v(t.options)?t.options.find((a)=>a.groupId===x.id)?.options??[]:t.options.filter((a)=>!a.value.startsWith("gateway:"))).map((a)=>({id:a.value,label:a.name}));if(JSON.stringify(o)!==JSON.stringify(this.state.nativeModels))this.setApp({nativeModels:o})}let i=t!==void 0&&g(t)&&t.options.some((n)=>("groupId"in n)&&n.groupId!==x.id&&n.options.some((o)=>o.value===s));if(i)this.gatewayModels.set(e.id,s);else this.gatewayModels.delete(e.id);if(!this.state.draftSessions[e.id])for(let n of this.modelListeners)n(e.id,s,i)}}
|
|
2
|
+
export{x,Ui};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{x}from"./chunk-vm81n2c0.js";import{kt}from"./chunk-5c42mfat.js";import{e}from"./chunk-esbgn8q0.js";import{fe,S}from"./chunk-tdvx2n5m.js";import{Tn,Be}from"./chunk-sz993t5e.js";import{ze}from"./chunk-p5hk14fk.js";import{Zap as g}from"lucide-react";import{jsx as n}from"react/jsx-runtime";function In({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?[]:fe(s)).map((o)=>({id:o.id,name:o.name,models:o.models.map((i)=>({api_id:S(o.id,i.id),label:i.label??i.id}))}))],p=Be(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(kt,{value:{...m,label:Tn(m)},models:d,modelGroups:p,header:{name:a("composer.model"),action:n(ze,{})},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{In};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t,ae}from"./chunk-73e9vpm9.js";import{jo}from"./chunk-j39bhfsp.js";import{Uo,Jr}from"./chunk-6f06hbsk.js";import{Qr}from"./chunk-brv52tgj.js";import{Code as P,Copy as I,Download as k,Eye as B,Maximize2 as L,MoreHorizontal as H,X as O}from"lucide-react";import{useEffect as R,useId as V,useMemo as _,useRef as F,useState as u}from"react";import{Button as w}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as A,DialogClose as U,DialogContent as X}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as j,DropdownMenuContent as q,DropdownMenuItem as y,DropdownMenuTrigger as G}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as l,Fragment as K}from"react/jsx-runtime";function J(m){let r=getComputedStyle(m),e=document.createElement("canvas").getContext("2d");if(!e)throw Error("Unable to resolve diagram colors");let i=(p)=>{e.clearRect(0,0,1,1),e.fillStyle=r.backgroundColor,e.fillRect(0,0,1,1),e.fillStyle=p,e.fillRect(0,0,1,1);let[n,s,d]=e.getImageData(0,0,1,1).data;return`#${[n,s,d].map((f)=>f.toString(16).padStart(2,"0")).join("")}`};return{background:i(r.backgroundColor),primaryColor:i(r.getPropertyValue("--muted").trim()),primaryTextColor:i(r.color),primaryBorderColor:i(r.getPropertyValue("--border").trim()),lineColor:i(r.getPropertyValue("--muted-foreground").trim())}}function Ho({source:m}){let r=t(),{t:e,theme:i}=r,p=`mermaid-${V().replaceAll(":","")}`,[n,s]=u(null),[d,f]=u(!1),[h,b]=u(!1),[v,C]=u(!1),[x,z]=u(!1),c=F(null),g=_(()=>n===null?null:Uo(n),[n]);R(()=>{let a=!1;return s(null),(async()=>{try{let M=await import("mermaid");if(a||c.current===null)return;let S=M.default;S.initialize({startOnLoad:!1,securityLevel:"strict",htmlLabels:!1,theme:"base",themeVariables:{...J(c.current),darkMode:i==="dark"}});let N=await S.render(p,m);if(!a)s(N.svg)}catch{if(!a)s(null)}})(),()=>{a=!0}},[p,i,m]);let T=async()=>{try{await(r.copyText?r.copyText(m):navigator.clipboard.writeText(m))}catch(a){if(r.onCopyError)r.onCopyError(a);else ae(r,a)}},D=async()=>{if(n===null||c.current===null||v)return;C(!0);try{let a=await Jr(n,getComputedStyle(c.current).backgroundColor);if(r.saveFile)await r.saveFile("mermaid.png",a);else jo("mermaid.png",`data:image/png;base64,${a}`)}catch(a){ae(r,a)}finally{C(!1)}},E=o(w,{variant:"ghost",size:"icon-sm","aria-label":e("mermaid.downloadPng"),title:e("mermaid.downloadPng"),disabled:n===null||v,onClick:()=>void D(),children:o(k,{className:"size-4"})});return l("div",{ref:c,className:"group/mermaid bg-background relative my-3 min-w-0 rounded-lg",children:[l("div",{"data-open":x,className:"absolute top-2 right-2 z-10 flex gap-1 opacity-0 transition-opacity group-focus-within/mermaid:opacity-100 group-hover/mermaid:opacity-100 data-[open=true]:opacity-100 [@media(hover:none)]:opacity-100",children:[l(j,{open:x,onOpenChange:z,children:[o(G,{"aria-label":e("mermaid.options"),title:e("mermaid.options"),render:o(w,{variant:"ghost",size:"icon-sm"}),children:o(H,{className:"size-4"})}),l(q,{align:"end",className:"w-40",children:[l(y,{disabled:n===null,onClick:()=>f((a)=>!a),children:[d?o(B,{}):o(P,{}),d?e("mermaid.viewDiagram"):e("mermaid.viewSource")]}),l(y,{onClick:()=>void T(),children:[o(I,{}),e("mermaid.copySource")]}),l(y,{disabled:n===null||v,onClick:()=>void D(),children:[o(k,{}),e("mermaid.downloadPng")]})]})]}),o(w,{variant:"ghost",size:"icon-sm","aria-label":e("mermaid.expand"),title:e("mermaid.expand"),disabled:n===null,onClick:()=>b(!0),children:o(L,{className:"size-4"})})]}),d||n===null?o("pre",{className:"bg-muted/30 overflow-x-auto rounded-lg p-3 pt-11 text-xs",children:o("code",{children:m})}):o("div",{className:"overflow-x-auto rounded-lg px-3 pt-10 pb-3 [&_svg]:mx-auto [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:n}}),o(A,{open:h&&g!==null,onOpenChange:b,children:o(X,{showCloseButton:!1,className:"bg-background flex h-[calc(100dvh-clamp(1.5rem,10dvh,6rem))] w-[calc(100vw-clamp(1.5rem,10vw,8rem))] max-w-none flex-col gap-2 overflow-hidden p-2 sm:max-w-none sm:p-4",children:h&&g&&o(Qr,{image:g,t:e,actions:l(K,{children:[E,o(U,{"aria-label":e("mermaid.closePreview"),title:e("mermaid.closePreview"),render:o(w,{variant:"ghost",size:"icon-sm"}),children:o(O,{className:"size-4"})})]})},g.src)})})]})}
|
|
2
|
+
export{Ho};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var w={ar:{title:"المكونات الإضافية",search:"البحث عن plugins",sections:{installed:"تم التثبيت",showLess:"عرض أقل"},loadError:{retry:"أعد المحاولة"},card:{install:"ثَبَّتَ",uninstall:"إلغاء التثبيت",installTooltip:"تثبيت البرنامج المساعد"},installModal:{about:"عن",includesSkills:"مهارات",includesApps:"تطبيقات",includesMcpServers:"خوادم MCP",connected:"متصل"},detail:{root:"الإضافات",install:"تثبيت البرنامج المساعد",uninstall:"إلغاء التثبيت",loading:"تحميل",skills:"مهارات",apps:"تطبيقات",mcpServers:"خوادم MCP",developer:"المطور",category:"فئة",version:"إصدار",website:"موقع إلكتروني",privacyPolicy:"سياسة الخصوصية"},manageTabs:{plugins:"الإضافات",skills:"مهارات",marketplace:"السوق"},headings:{plugins:"الإضافات",skills:"مهارات",marketplace:"السوق"},skills:{scope:{user:"مستخدم",repo:"المشروع",system:"نظام"},installed:"تم التثبيت",refresh:"تحديث",open:"يفتح",revealInFinder:"كشف في الباحث",details:"تفاصيل"},marketplace:{loadErrorRetry:"أعد المحاولة",partialRetry:"أعد المحاولة",removeConfirm:"يزيل",removeCancel:"يلغي",sourceLabel:"مصدر",addCancel:"يلغي"},previousPage:"سابق",nextPage:"التالي",close:"إغلاق",copy:"نسخ",extensions:"ملحقات"},de:{sections:{installed:"Installiert"},loadError:{retry:"Wiederholen"},card:{install:"Installieren",uninstall:"Deinstallieren",installTooltip:"Plugin installieren"},installModal:{about:"Über",connected:"Verbunden"},detail:{install:"Plugin installieren",uninstall:"Deinstallieren",developer:"Entwickler",category:"Kategorie",privacyPolicy:"Datenschutzrichtlinie"},skills:{scope:{user:"Nutzer",repo:"Projekt"},installed:"Installiert",open:"Öffnen",revealInFinder:"Im Finder anzeigen"},marketplace:{loadErrorRetry:"Wiederholen",partialRetry:"Wiederholen",removeConfirm:"Entfernen",removeCancel:"Abbrechen",sourceLabel:"Quelle",addCancel:"Abbrechen"},previousPage:"Vorherige",nextPage:"Nächste",close:"Schließen",copy:"Kopieren"},en:{catalog:{navigation:"Toolbox navigation",customize:"Toolbox",content:"Plugin and skill content",pluginViews:"Plugin views",personal:"Personal",showMore:"Show {{count}} more",title:"Plugins",description:"Discover plugins and manage skills and tools.",search:"Search plugins and skills",clearSearch:"Clear search",sourceHelp:"Add a GitHub repository, Git URL, or local folder.",scope:"Skill scope",allScopes:"All scopes",skillCount:"{{count}} skills",location:"Location",fromPlugin:"From plugin",toggleNotApplied:"The skill state did not match the requested change."},title:"Plugins",beta:"BETA",subtitle:"Work with Codex across your favorite tools",search:"Search plugins",manage:"Manage",pageActions:"Page actions",addMarketplace:"Add a marketplace",sections:{featured:"Recommended",installed:"Installed",installedEmpty:"No plugins installed",showLess:"Show less",seeMore:"See more",seeMoreDescription:"See {{pluginNames}}, and more"},empty:"No plugins found",loading:"Loading plugins…",loadError:{title:"Failed to load plugins",retry:"Retry"},card:{install:"Install",installing:"Installing",uninstalling:"Uninstalling",manage:"Manage",moreActions:"More actions",uninstall:"Uninstall",tryNow:"Try now",disabledInstallTooltip:"Access is turned off by your admin",disabledByAdmin:"Disabled by admin",installTooltip:"Install plugin",gitMarketplace:"From a Git marketplace",namedGitMarketplace:"From the {{marketplaceName}} Git marketplace",folderMarketplace:"From a folder marketplace",namedFolderMarketplace:"From {{marketplaceName}}",localPlugin:"From your personal marketplace on this machine",enabledStatus:"Plugin enabled",disabledStatus:"Plugin disabled",installedByAdmin:"Installed by admin",enable:"Enable {{pluginName}}",disable:"Disable {{pluginName}}"},disabledReason:{planNotEligible:"Not available on your plan",requiredAppUnavailable:"Required app unavailable",unknown:"Unavailable"},toast:{installed:"{{pluginName}} plugin installed",installError:"Failed to install plugin",refreshError:"Installed {{pluginName}}, but failed to refresh the plugin list",uninstalled:"{{pluginName}} plugin uninstalled",uninstallError:"Failed to uninstall plugin",uninstallNotApplied:"The plugin is still installed after refreshing. Please try again.",skillsReloadError:"Plugin changed, but skills couldn't refresh. Reload skills before starting a new chat",syncError:"The change was saved, but refreshing the list failed: {{message}}",toggleError:"Failed to update plugin",enabled:"{{pluginName}} plugin enabled",disabled:"{{pluginName}} plugin disabled",toggleNotApplied:"The refreshed plugin state does not match the requested change. Please try again."},installModal:{title:"Install {{pluginName}}",install:"Install {{pluginName}}",installing:"Installing {{pluginName}}",developedBy:"Developed by {{developerName}}",category:"Category: {{category}}",about:"About",capabilities:"Capabilities",includes:"Includes",includesSkills:"Skills",includesApps:"Apps",includesMcpServers:"MCP servers",needsAppsTitle:"Connect your apps to {{pluginName}}",needsAppsSubtitle:"Get more relevant help from the apps you already use. You can always do this later.",tryNow:"Try {{pluginName}} now",viewDetails:"View details",connect:"Connect",connected:"Connected",connecting:"Opened link"},detail:{root:"Plugins",install:"Install plugin",installing:"Installing",tryNow:"Try now",moreActions:"More actions",uninstall:"Uninstall",loading:"Loading",errorTitle:"Failed to load plugin",missing:"Plugin not found",missingDescription:"This plugin could not be loaded from its marketplace entry.",skills:"Skills",apps:"Apps",mcpServers:"MCP servers",hooks:"Hooks",information:"Information",developer:"Developer",category:"Category",version:"Version",website:"Website",capabilities:"Capabilities",privacyPolicy:"Privacy Policy",termsOfService:"Terms of Service",unavailable:"Unavailable",disabledByAdmin:"Disabled by admin",fallbackTitle:"Plugin"},breadcrumb:{manage:"Manage"},manageTabs:{aria:"Manage extensions",plugins:"Plugins",skills:"Skills",marketplace:"Marketplace"},headings:{plugins:"Plugins",skills:"Skills",marketplace:"Marketplace"},skills:{document:{open:"Open",reveal:"Show in file manager",copy:"Copy Markdown",content:"Skill instructions",error:"Could not read SKILL.md"},search:"Search skills",scope:{user:"User",repo:"Project",system:"System",admin:"Admin"},empty:"No skills found",installed:"Installed",loading:"Loading skills…",refresh:"Refresh",filteredEmpty:"No skills match your filters",filteredEmptyDescription:"Try adjusting your search or scope filters",enable:"Enable skill",disable:"Disable skill",enabledStatus:"Skill enabled",disabledStatus:"Skill disabled",disabledBadge:"Disabled",enabledToast:"{{skillName}} skill enabled",disabledToast:"{{skillName}} skill disabled",toggleError:"Failed to update skill",moreActions:"More actions",open:"Open",revealInFinder:"Reveal in Finder",revealInFileExplorer:"Reveal in File Explorer",revealInFileManager:"Reveal in File Manager",details:"Details"},marketplace:{subtitle:"Manage available plugin marketplaces",search:"Search marketplaces",empty:"No marketplaces found",loading:"Loading marketplaces…",loadErrorTitle:"Unable to load marketplaces",loadErrorRetry:"Retry",partialTitle:"Some marketplaces could not be loaded",partialRetry:"Retry",upgrade:"Upgrade marketplace",upgradeButton:"Upgrade",upgradeBuiltIn:"Built-in marketplaces update automatically",upgradeLocal:"Only Git marketplaces can be upgraded",upgradeAll:"Upgrade",upgradeAllTooltip:"Upgrade all marketplaces",remove:"Remove marketplace",removeBuiltIn:"Built-in marketplaces cannot be removed",removeConfigured:"Only configured marketplaces can be removed",removeTitle:'Remove "{{marketplaceName}}"?',removeDescription:"This removes the marketplace from your configuration. Its plugins won't appear unless you add it again.",removeConfirm:"Remove",removeCancel:"Cancel",addTitle:"Add plugin marketplace",addSubtitle:"Add from a GitHub repo, Git URL, or local folder. Learn more",sourceLabel:"Source",sourcePlaceholder:"openai/plugins or git@github.com:org/repo.git",sourceRequired:"Enter a marketplace source",refLabel:"Git ref",refPlaceholder:"main",sparseLabel:"Sparse paths",sparsePlaceholder:"plugins/codex",addSubmit:"Add marketplace",addCancel:"Cancel",added:"{{marketplaceName}} marketplace added",alreadyAdded:"{{marketplaceName}} is already added",addFailed:"Failed to add marketplace",refreshFailed:"{{marketplaceName}} marketplace is configured, but failed to refresh the plugin list",removed:"{{marketplaceName}} marketplace removed",removeError:"Failed to remove marketplace",upgraded:"{{marketplaceName}} marketplace upgraded",upgradeError:"Failed to upgrade marketplace",upgradedAll:"Marketplaces upgraded",upgradeAllError:"Some marketplaces failed to upgrade",upgradeAllRequestError:"Failed to upgrade marketplaces",pluginCount_one:"{{count}} plugin",pluginCount_other:"{{count}} plugins",partialMore_one:"{{count}} more marketplace could not be loaded",partialMore_other:"{{count}} more marketplaces could not be loaded"},previousPage:"Previous",nextPage:"Next",close:"Close",copy:"Copy",extensions:"Extensions"},es:{sections:{installed:"Instalado"},loadError:{retry:"Reintentar"},card:{install:"Instalar",uninstall:"Desinstalar",installTooltip:"Instalar plugin"},installModal:{about:"Acerca de",includesSkills:"Habilidades",connected:"Conectado"},detail:{install:"Instalar plugin",uninstall:"Desinstalar",skills:"Habilidades",developer:"Desarrollador",category:"Categoría",version:"Versión",website:"Sitio web",privacyPolicy:"política de privacidad"},manageTabs:{skills:"Habilidades"},headings:{skills:"Habilidades"},skills:{scope:{user:"Usuario",system:"Sistema",repo:"Proyecto"},installed:"Instalado",open:"Abrir",revealInFinder:"Mostrar en Finder",details:"Detalles"},marketplace:{loadErrorRetry:"Reintentar",partialRetry:"Reintentar",removeConfirm:"Quitar",removeCancel:"Cancelar",sourceLabel:"Fuente",addCancel:"Cancelar"},previousPage:"Anterior",nextPage:"Siguiente",close:"Cerrar",copy:"Copiar"},fr:{sections:{installed:"Installé"},loadError:{retry:"Réessayer"},card:{install:"Installer",uninstall:"Désinstaller",installTooltip:"Installer le plugin"},installModal:{about:"À propos",includesSkills:"Compétences",connected:"Connecté"},detail:{install:"Installer le plugin",uninstall:"Désinstaller",skills:"Compétences",developer:"Développeur",category:"Catégorie",website:"Site web",privacyPolicy:"politique de confidentialité"},manageTabs:{skills:"Compétences"},headings:{skills:"Compétences"},skills:{scope:{user:"Utilisateur",system:"Système",repo:"Projet"},installed:"Installé",open:"Ouvrir",revealInFinder:"Afficher dans le Finder",details:"Détails"},marketplace:{loadErrorRetry:"Réessayer",partialRetry:"Réessayer",removeConfirm:"Retirer",removeCancel:"Annuler",addCancel:"Annuler"},previousPage:"Précédent",nextPage:"Suivant",close:"Fermer",copy:"Copier"},hi:{title:"प्लगइन्स",sections:{installed:"इंस्टॉल किया गया"},loadError:{retry:"पुनः प्रयास करें"},card:{install:"इंस्टॉल करें",uninstall:"अनइंस्टॉल करें",installTooltip:"प्लगइन इंस्टॉल करें"},installModal:{about:"के बारे में",includesSkills:"स्किल्स",includesApps:"ऐप्स",connected:"जुड़ा हुआ"},detail:{root:"प्लगइन",install:"प्लगइन इंस्टॉल करें",uninstall:"अनइंस्टॉल करें",skills:"स्किल्स",apps:"ऐप्स",developer:"डेवलपर",category:"श्रेणी",version:"संस्करण",website:"वेबसाइट",privacyPolicy:"गोपनीयता नीति"},manageTabs:{plugins:"प्लगइन",skills:"स्किल्स"},headings:{plugins:"प्लगइन",skills:"स्किल्स"},skills:{scope:{user:"उपयोगकर्ता",system:"सिस्टम",repo:"प्रोजेक्ट"},installed:"इंस्टॉल किया गया",open:"खोलें",revealInFinder:"Finder में दिखाएं",details:"विवरण"},marketplace:{loadErrorRetry:"पुनः प्रयास करें",partialRetry:"पुनः प्रयास करें",removeConfirm:"हटाएँ",removeCancel:"रद्द करें",sourceLabel:"सोर्स",addCancel:"रद्द करें"},previousPage:"पिछला",nextPage:"अगला",close:"बंद करें",copy:"कॉपी करें"},id:{title:"Plugin",sections:{installed:"Terpasang"},loadError:{retry:"Coba lagi"},card:{install:"Instal",uninstall:"Hapus instalasi",installTooltip:"Pasang plugin"},installModal:{about:"Tentang",includesSkills:"Skill",includesApps:"Aplikasi",includesMcpServers:"MCP server",connected:"Terhubung"},detail:{root:"Plugin",install:"Pasang plugin",uninstall:"Hapus instalasi",skills:"Skill",apps:"Aplikasi",mcpServers:"MCP server",developer:"Pengembang",category:"Kategori",version:"Versi",website:"Situs web",privacyPolicy:"kebijakan privasi"},manageTabs:{plugins:"Plugin",skills:"Skill"},headings:{plugins:"Plugin",skills:"Skill"},skills:{scope:{user:"Pengguna",system:"Sistem",repo:"Proyek"},installed:"Terpasang",open:"Buka",revealInFinder:"Tampilkan di Finder",details:"Detail"},marketplace:{loadErrorRetry:"Coba lagi",partialRetry:"Coba lagi",removeConfirm:"Hapus",removeCancel:"Batal",sourceLabel:"Sumber",addCancel:"Batal"},previousPage:"Sebelumnya",nextPage:"Berikutnya",close:"Tutup",copy:"Salin"},it:{title:"Plugin",sections:{installed:"Installato"},loadError:{retry:"Riprova"},card:{install:"Installa",uninstall:"Disinstalla",installTooltip:"Installa plugin"},installModal:{about:"Informazioni",includesSkills:"Skill",includesApps:"App",includesMcpServers:"MCP server",connected:"Connesso"},detail:{root:"Plugin",install:"Installa plugin",uninstall:"Disinstalla",skills:"Skill",apps:"App",mcpServers:"MCP server",developer:"Sviluppatore",category:"Categoria",version:"Versione",website:"Sito web",privacyPolicy:"informativa sulla privacy"},manageTabs:{plugins:"Plugin",skills:"Skill"},headings:{plugins:"Plugin",skills:"Skill"},skills:{scope:{user:"Utente",system:"Sistema",repo:"Progetto"},installed:"Installato",open:"Apri",revealInFinder:"Mostra nel Finder",details:"Dettagli"},marketplace:{loadErrorRetry:"Riprova",partialRetry:"Riprova",removeConfirm:"Rimuovi",removeCancel:"Annulla",sourceLabel:"Sorgente",addCancel:"Annulla"},previousPage:"Precedente",nextPage:"Successivo",close:"Chiudi",copy:"Copia"},ja:{title:"プラグイン",sections:{installed:"インストール済み"},loadError:{retry:"再試行"},card:{install:"インストール",uninstall:"アンインストール",installTooltip:"プラグインをインストール"},installModal:{about:"概要",includesSkills:"スキル",includesApps:"アプリ",connected:"接続済み"},detail:{root:"プラグイン",install:"プラグインをインストール",uninstall:"アンインストール",skills:"スキル",apps:"アプリ",developer:"開発者",category:"カテゴリ",version:"バージョン",website:"Webサイト",privacyPolicy:"プライバシーポリシー"},manageTabs:{plugins:"プラグイン",skills:"スキル",marketplace:"マーケットプレイス"},headings:{plugins:"プラグイン",skills:"スキル",marketplace:"マーケットプレイス"},skills:{scope:{user:"ユーザー",system:"システム",repo:"プロジェクト"},installed:"インストール済み",open:"開く",revealInFinder:"Finderで表示",details:"詳細"},marketplace:{loadErrorRetry:"再試行",partialRetry:"再試行",removeConfirm:"削除",removeCancel:"キャンセル",sourceLabel:"ソース",addCancel:"キャンセル"},previousPage:"前へ",nextPage:"次へ",close:"閉じる",copy:"コピー"},ko:{title:"플러그인",sections:{installed:"설치됨"},loadError:{retry:"다시 시도"},card:{install:"설치",uninstall:"제거",installTooltip:"플러그인 설치"},installModal:{about:"정보",includesSkills:"스킬",includesApps:"앱",includesMcpServers:"MCP 서버",connected:"연결됨"},detail:{root:"플러그인",install:"플러그인 설치",uninstall:"제거",skills:"스킬",apps:"앱",mcpServers:"MCP 서버",developer:"개발자",category:"카테고리",version:"버전",website:"웹사이트",privacyPolicy:"개인정보 보호정책"},manageTabs:{plugins:"플러그인",skills:"스킬",marketplace:"마켓플레이스"},headings:{plugins:"플러그인",skills:"스킬",marketplace:"마켓플레이스"},skills:{scope:{user:"사용자",system:"시스템",repo:"프로젝트"},installed:"설치됨",open:"열기",revealInFinder:"Finder에서 보기",details:"세부 정보"},marketplace:{loadErrorRetry:"다시 시도",partialRetry:"다시 시도",removeConfirm:"제거",removeCancel:"취소",sourceLabel:"소스",addCancel:"취소"},previousPage:"이전",nextPage:"다음",close:"닫기",copy:"복사"},"pt-BR":{sections:{installed:"Instalado"},loadError:{retry:"Tentar novamente"},card:{install:"Instalar",uninstall:"Desinstalar",installTooltip:"Instalar plugin"},installModal:{about:"Sobre",connected:"Conectado"},detail:{install:"Instalar plugin",uninstall:"Desinstalar",developer:"Desenvolvedor",category:"Categoria",version:"Versão",website:"Site",privacyPolicy:"política de privacidade"},skills:{scope:{user:"Usuário",system:"Sistema",repo:"Projeto"},installed:"Instalado",open:"Abrir",revealInFinder:"Mostrar no Finder",details:"Detalhes"},marketplace:{loadErrorRetry:"Tentar novamente",partialRetry:"Tentar novamente",removeConfirm:"Remover",removeCancel:"Cancelar",sourceLabel:"Código-fonte",addCancel:"Cancelar"},previousPage:"Anterior",nextPage:"Próximo",close:"Fechar",copy:"Copiar"},ru:{title:"Плагины",sections:{installed:"Установлено"},loadError:{retry:"Повторить"},card:{install:"Установить",uninstall:"Удалить",installTooltip:"Установить плагин"},installModal:{about:"О программе",includesSkills:"Навыки",includesApps:"Приложения",connected:"Подключено"},detail:{root:"Плагины",install:"Установить плагин",uninstall:"Удалить",skills:"Навыки",apps:"Приложения",developer:"Разработчик",category:"Категория",version:"Версия",website:"Сайт",privacyPolicy:"политику конфиденциальности"},manageTabs:{plugins:"Плагины",skills:"Навыки"},headings:{plugins:"Плагины",skills:"Навыки"},skills:{scope:{user:"Пользователь",system:"Система",repo:"Проект"},installed:"Установлено",open:"Открыть",revealInFinder:"Показать в Finder",details:"Подробности"},marketplace:{loadErrorRetry:"Повторить",partialRetry:"Повторить",removeConfirm:"Удалить",removeCancel:"Отмена",sourceLabel:"Исходник",addCancel:"Отмена"},previousPage:"Предыдущее",nextPage:"Следующее",close:"Закрыть",copy:"Копировать"},"zh-CN":{catalog:{navigation:"工具箱导航",customize:"工具箱",content:"插件与技能内容",pluginViews:"插件视图",personal:"个人",showMore:"查看其余 {{count}} 项",title:"插件",description:"发现插件,管理技能与工具",search:"搜索插件和技能",clearSearch:"清除搜索",sourceHelp:"添加 GitHub 仓库、Git 地址或本地文件夹。",scope:"技能范围",allScopes:"全部范围",skillCount:"{{count}} 个技能",location:"位置",fromPlugin:"来自插件",toggleNotApplied:"技能实际状态与请求不一致。"},title:"插件",beta:"BETA",subtitle:"在你常用的工具中使用 Codex",search:"搜索插件",manage:"管理",pageActions:"页面操作",addMarketplace:"添加插件市场",sections:{featured:"推荐",installed:"已安装",installedEmpty:"尚未安装插件",showLess:"收起",seeMore:"查看更多",seeMoreDescription:"查看{{pluginNames}}等更多"},empty:"未找到插件",loading:"正在加载插件…",loadError:{title:"插件加载失败",retry:"重试"},card:{install:"安装",installing:"正在安装",uninstalling:"正在卸载",manage:"管理",moreActions:"更多操作",uninstall:"卸载",tryNow:"立即试用",disabledInstallTooltip:"你的管理员已关闭访问权限",disabledByAdmin:"已被管理员禁用",installTooltip:"安装插件",gitMarketplace:"来自 Git 市场",namedGitMarketplace:"来自 {{marketplaceName}} Git 市场",folderMarketplace:"来自文件夹插件市场",namedFolderMarketplace:"来自 {{marketplaceName}}",localPlugin:"来自此设备上的个人插件市场",enabledStatus:"插件已启用",disabledStatus:"插件已禁用",installedByAdmin:"由管理员安装",enable:"启用 {{pluginName}}",disable:"禁用 {{pluginName}}"},disabledReason:{planNotEligible:"你的套餐不支持",requiredAppUnavailable:"所需应用不可用",unknown:"不可用"},toast:{installed:"{{pluginName}} 插件已安装",installError:"插件安装失败",refreshError:"已安装 {{pluginName}},但刷新插件列表失败",uninstalled:"{{pluginName}} 插件已卸载",uninstallError:"插件卸载失败",uninstallNotApplied:"刷新后插件仍处于已安装状态,请重试。",skillsReloadError:"插件已更改,但无法刷新技能。请先重新加载技能,再开始新聊天",syncError:"操作已保存,但列表刷新失败:{{message}}",toggleError:"无法更新插件",enabled:"{{pluginName}} 插件已启用",disabled:"{{pluginName}} 插件已禁用",toggleNotApplied:"刷新后的插件状态与请求不一致,请重试。"},installModal:{title:"安装 {{pluginName}}",install:"安装 {{pluginName}}",installing:"正在安装 {{pluginName}}",developedBy:"由 {{developerName}} 开发",category:"类别:{{category}}",about:"关于",capabilities:"功能",includes:"包含内容",includesSkills:"技能",includesApps:"应用",includesMcpServers:"MCP 服务器",needsAppsTitle:"将应用连接到 {{pluginName}}",needsAppsSubtitle:"从你已在使用的应用中获得相关性更强的帮助。你也可以稍后再设置。",tryNow:"立即试用 {{pluginName}}",viewDetails:"查看详情",connect:"连接",connected:"已连接",connecting:"已打开链接"},detail:{root:"插件",install:"安装插件",installing:"正在安装",tryNow:"立即试用",moreActions:"更多操作",uninstall:"卸载",loading:"正在加载",errorTitle:"无法加载插件",missing:"未找到插件",missingDescription:"无法从插件市场详情页加载此插件。",skills:"技能",apps:"应用",mcpServers:"MCP 服务器",hooks:"钩子",information:"信息",developer:"开发者",category:"类别",version:"版本",website:"网站",capabilities:"功能",privacyPolicy:"隐私政策",termsOfService:"服务条款",unavailable:"不可用",disabledByAdmin:"管理员已禁用",fallbackTitle:"插件"},breadcrumb:{manage:"管理"},manageTabs:{aria:"管理扩展程序",plugins:"插件",skills:"技能",marketplace:"市场"},headings:{plugins:"插件",skills:"技能",marketplace:"市场"},skills:{document:{open:"打开",reveal:"在文件夹中显示",copy:"复制 Markdown",content:"技能正文",error:"无法读取 SKILL.md"},search:"搜索技能",scope:{user:"用户",repo:"项目",system:"系统",admin:"管理员"},empty:"找不到技能",installed:"已安装",loading:"正在加载技能…",refresh:"刷新",filteredEmpty:"没有符合筛选条件的技能",filteredEmptyDescription:"尝试调整你的搜索内容或范围筛选条件",enable:"启用技能",disable:"禁用技能",enabledStatus:"技能已启用",disabledStatus:"技能已禁用",disabledBadge:"已禁用",enabledToast:"{{skillName}} 技能已启用",disabledToast:"{{skillName}} 技能已禁用",toggleError:"无法更新技能",moreActions:"更多操作",open:"打开",revealInFinder:"在 Finder 中显示",revealInFileExplorer:"在文件资源管理器中显示",revealInFileManager:"在文件管理器中显示",details:"详情"},marketplace:{subtitle:"管理可用的插件市场",search:"搜索市场",empty:"未找到任何市场",loading:"正在加载市场…",loadErrorTitle:"无法加载插件市场",loadErrorRetry:"重试",partialTitle:"部分插件市场无法加载",partialRetry:"重试",upgrade:"升级市场",upgradeButton:"升级",upgradeBuiltIn:"内置市场会自动更新",upgradeLocal:"只能升级 Git 市场",upgradeAll:"升级",upgradeAllTooltip:"升级所有市场",remove:"移除市场",removeBuiltIn:"无法移除内置市场",removeConfigured:"仅可移除已配置的市场",removeTitle:"是否移除“{{marketplaceName}}”?",removeDescription:"这会从你的配置中移除该市场。除非你重新添加,否则其插件不会显示。",removeConfirm:"移除",removeCancel:"取消",addTitle:"添加插件市场",addSubtitle:"从 GitHub 仓库、Git URL 或本地文件夹添加。了解更多",sourceLabel:"来源",sourcePlaceholder:"openai/plugins 或 git@github.com:org/repo.git",sourceRequired:"请输入市场来源",refLabel:"Git 引用",refPlaceholder:"主分支",sparseLabel:"稀疏路径",sparsePlaceholder:"plugins/codex",addSubmit:"添加市场",addCancel:"取消",added:"已添加 {{marketplaceName}} 市场",alreadyAdded:"{{marketplaceName}} 已添加",addFailed:"添加插件市场失败",refreshFailed:"{{marketplaceName}} 市场已配置,但刷新插件列表失败",removed:"已移除 {{marketplaceName}} 市场",removeError:"移除市场失败",upgraded:"{{marketplaceName}} 市场已升级",upgradeError:"升级市场失败",upgradedAll:"市场已升级",upgradeAllError:"部分市场升级失败",upgradeAllRequestError:"升级市场失败",pluginCount_one:"{{count}} 个插件",pluginCount_other:"{{count}} 个插件",partialMore_one:"还有 {{count}} 个市场无法加载",partialMore_other:"还有 {{count}} 个市场无法加载"},previousPage:"上一页",nextPage:"下一页",close:"关闭",copy:"复制",extensions:"扩展"}};
|
|
2
|
-
export{
|
|
1
|
+
var P={ar:{title:"المكونات الإضافية",search:"البحث عن plugins",sections:{installed:"تم التثبيت",showLess:"عرض أقل"},loadError:{retry:"أعد المحاولة"},card:{install:"ثَبَّتَ",uninstall:"إلغاء التثبيت",installTooltip:"تثبيت البرنامج المساعد"},installModal:{about:"عن",includesSkills:"مهارات",includesApps:"تطبيقات",includesMcpServers:"خوادم MCP",connected:"متصل"},detail:{root:"الإضافات",install:"تثبيت البرنامج المساعد",uninstall:"إلغاء التثبيت",loading:"تحميل",skills:"مهارات",apps:"تطبيقات",mcpServers:"خوادم MCP",developer:"المطور",category:"فئة",version:"إصدار",website:"موقع إلكتروني",privacyPolicy:"سياسة الخصوصية"},manageTabs:{plugins:"الإضافات",skills:"مهارات",marketplace:"السوق"},headings:{plugins:"الإضافات",skills:"مهارات",marketplace:"السوق"},skills:{scope:{user:"مستخدم",repo:"المشروع",system:"نظام"},installed:"تم التثبيت",refresh:"تحديث",open:"يفتح",revealInFinder:"كشف في الباحث",details:"تفاصيل"},marketplace:{loadErrorRetry:"أعد المحاولة",partialRetry:"أعد المحاولة",removeConfirm:"يزيل",removeCancel:"يلغي",sourceLabel:"مصدر",addCancel:"يلغي"},previousPage:"سابق",nextPage:"التالي",close:"إغلاق",copy:"نسخ",extensions:"ملحقات"},de:{sections:{installed:"Installiert"},loadError:{retry:"Wiederholen"},card:{install:"Installieren",uninstall:"Deinstallieren",installTooltip:"Plugin installieren"},installModal:{about:"Über",connected:"Verbunden"},detail:{install:"Plugin installieren",uninstall:"Deinstallieren",developer:"Entwickler",category:"Kategorie",privacyPolicy:"Datenschutzrichtlinie"},skills:{scope:{user:"Nutzer",repo:"Projekt"},installed:"Installiert",open:"Öffnen",revealInFinder:"Im Finder anzeigen"},marketplace:{loadErrorRetry:"Wiederholen",partialRetry:"Wiederholen",removeConfirm:"Entfernen",removeCancel:"Abbrechen",sourceLabel:"Quelle",addCancel:"Abbrechen"},previousPage:"Vorherige",nextPage:"Nächste",close:"Schließen",copy:"Kopieren"},en:{catalog:{navigation:"Toolbox navigation",customize:"Toolbox",content:"Plugin and skill content",pluginViews:"Plugin views",personal:"Personal",showMore:"Show {{count}} more",title:"Plugins",description:"Discover plugins and manage skills and tools.",search:"Search plugins and skills",clearSearch:"Clear search",sourceHelp:"Add a GitHub repository, Git URL, or local folder.",scope:"Skill scope",allScopes:"All scopes",skillCount:"{{count}} skills",location:"Location",fromPlugin:"From plugin",toggleNotApplied:"The skill state did not match the requested change."},title:"Plugins",beta:"BETA",subtitle:"Work with Codex across your favorite tools",search:"Search plugins",manage:"Manage",pageActions:"Page actions",addMarketplace:"Add a marketplace",sections:{featured:"Recommended",installed:"Installed",installedEmpty:"No plugins installed",showLess:"Show less",seeMore:"See more",seeMoreDescription:"See {{pluginNames}}, and more"},empty:"No plugins found",loading:"Loading plugins…",loadError:{title:"Failed to load plugins",retry:"Retry"},card:{install:"Install",installing:"Installing",uninstalling:"Uninstalling",manage:"Manage",moreActions:"More actions",uninstall:"Uninstall",tryNow:"Try now",disabledInstallTooltip:"Access is turned off by your admin",disabledByAdmin:"Disabled by admin",installTooltip:"Install plugin",gitMarketplace:"From a Git marketplace",namedGitMarketplace:"From the {{marketplaceName}} Git marketplace",folderMarketplace:"From a folder marketplace",namedFolderMarketplace:"From {{marketplaceName}}",localPlugin:"From your personal marketplace on this machine",enabledStatus:"Plugin enabled",disabledStatus:"Plugin disabled",installedByAdmin:"Installed by admin",enable:"Enable {{pluginName}}",disable:"Disable {{pluginName}}"},disabledReason:{planNotEligible:"Not available on your plan",requiredAppUnavailable:"Required app unavailable",unknown:"Unavailable"},toast:{installed:"{{pluginName}} plugin installed",installError:"Failed to install plugin",refreshError:"Installed {{pluginName}}, but failed to refresh the plugin list",uninstalled:"{{pluginName}} plugin uninstalled",uninstallError:"Failed to uninstall plugin",uninstallNotApplied:"The plugin is still installed after refreshing. Please try again.",skillsReloadError:"Plugin changed, but skills couldn't refresh. Reload skills before starting a new chat",syncError:"The change was saved, but refreshing the list failed: {{message}}",toggleError:"Failed to update plugin",enabled:"{{pluginName}} plugin enabled",disabled:"{{pluginName}} plugin disabled",toggleNotApplied:"The refreshed plugin state does not match the requested change. Please try again."},installModal:{title:"Install {{pluginName}}",install:"Install {{pluginName}}",installing:"Installing {{pluginName}}",developedBy:"Developed by {{developerName}}",category:"Category: {{category}}",about:"About",capabilities:"Capabilities",includes:"Includes",includesSkills:"Skills",includesApps:"Apps",includesMcpServers:"MCP servers",needsAppsTitle:"Connect your apps to {{pluginName}}",needsAppsSubtitle:"Get more relevant help from the apps you already use. You can always do this later.",tryNow:"Try {{pluginName}} now",viewDetails:"View details",connect:"Connect",connected:"Connected",connecting:"Opened link"},detail:{root:"Plugins",install:"Install plugin",installing:"Installing",tryNow:"Try now",moreActions:"More actions",uninstall:"Uninstall",loading:"Loading",errorTitle:"Failed to load plugin",missing:"Plugin not found",missingDescription:"This plugin could not be loaded from its marketplace entry.",skills:"Skills",apps:"Apps",mcpServers:"MCP servers",hooks:"Hooks",information:"Information",developer:"Developer",category:"Category",version:"Version",website:"Website",capabilities:"Capabilities",privacyPolicy:"Privacy Policy",termsOfService:"Terms of Service",unavailable:"Unavailable",disabledByAdmin:"Disabled by admin",fallbackTitle:"Plugin"},breadcrumb:{manage:"Manage"},manageTabs:{aria:"Manage extensions",plugins:"Plugins",skills:"Skills",marketplace:"Marketplace"},headings:{plugins:"Plugins",skills:"Skills",marketplace:"Marketplace"},skills:{document:{open:"Open",reveal:"Show in file manager",copy:"Copy Markdown",content:"Skill instructions",error:"Could not read SKILL.md"},search:"Search skills",scope:{user:"User",repo:"Project",system:"System",admin:"Admin"},empty:"No skills found",installed:"Installed",loading:"Loading skills…",refresh:"Refresh",filteredEmpty:"No skills match your filters",filteredEmptyDescription:"Try adjusting your search or scope filters",enable:"Enable skill",disable:"Disable skill",enabledStatus:"Skill enabled",disabledStatus:"Skill disabled",disabledBadge:"Disabled",enabledToast:"{{skillName}} skill enabled",disabledToast:"{{skillName}} skill disabled",toggleError:"Failed to update skill",moreActions:"More actions",open:"Open",revealInFinder:"Reveal in Finder",revealInFileExplorer:"Reveal in File Explorer",revealInFileManager:"Reveal in File Manager",details:"Details"},marketplace:{subtitle:"Manage available plugin marketplaces",search:"Search marketplaces",empty:"No marketplaces found",loading:"Loading marketplaces…",loadErrorTitle:"Unable to load marketplaces",loadErrorRetry:"Retry",partialTitle:"Some marketplaces could not be loaded",partialRetry:"Retry",upgrade:"Upgrade marketplace",upgradeButton:"Upgrade",upgradeBuiltIn:"Built-in marketplaces update automatically",upgradeLocal:"Only Git marketplaces can be upgraded",upgradeAll:"Upgrade",upgradeAllTooltip:"Upgrade all marketplaces",remove:"Remove marketplace",removeBuiltIn:"Built-in marketplaces cannot be removed",removeConfigured:"Only configured marketplaces can be removed",removeTitle:'Remove "{{marketplaceName}}"?',removeDescription:"This removes the marketplace from your configuration. Its plugins won't appear unless you add it again.",removeConfirm:"Remove",removeCancel:"Cancel",addTitle:"Add plugin marketplace",addSubtitle:"Add from a GitHub repo, Git URL, or local folder. Learn more",sourceLabel:"Source",sourcePlaceholder:"openai/plugins or git@github.com:org/repo.git",sourceRequired:"Enter a marketplace source",refLabel:"Git ref",refPlaceholder:"main",sparseLabel:"Sparse paths",sparsePlaceholder:"plugins/codex",addSubmit:"Add marketplace",addCancel:"Cancel",added:"{{marketplaceName}} marketplace added",alreadyAdded:"{{marketplaceName}} is already added",addFailed:"Failed to add marketplace",refreshFailed:"{{marketplaceName}} marketplace is configured, but failed to refresh the plugin list",removed:"{{marketplaceName}} marketplace removed",removeError:"Failed to remove marketplace",upgraded:"{{marketplaceName}} marketplace upgraded",upgradeError:"Failed to upgrade marketplace",upgradedAll:"Marketplaces upgraded",upgradeAllError:"Some marketplaces failed to upgrade",upgradeAllRequestError:"Failed to upgrade marketplaces",pluginCount_one:"{{count}} plugin",pluginCount_other:"{{count}} plugins",partialMore_one:"{{count}} more marketplace could not be loaded",partialMore_other:"{{count}} more marketplaces could not be loaded"},previousPage:"Previous",nextPage:"Next",close:"Close",copy:"Copy",extensions:"Extensions"},es:{sections:{installed:"Instalado"},loadError:{retry:"Reintentar"},card:{install:"Instalar",uninstall:"Desinstalar",installTooltip:"Instalar plugin"},installModal:{about:"Acerca de",includesSkills:"Habilidades",connected:"Conectado"},detail:{install:"Instalar plugin",uninstall:"Desinstalar",skills:"Habilidades",developer:"Desarrollador",category:"Categoría",version:"Versión",website:"Sitio web",privacyPolicy:"política de privacidad"},manageTabs:{skills:"Habilidades"},headings:{skills:"Habilidades"},skills:{scope:{user:"Usuario",system:"Sistema",repo:"Proyecto"},installed:"Instalado",open:"Abrir",revealInFinder:"Mostrar en Finder",details:"Detalles"},marketplace:{loadErrorRetry:"Reintentar",partialRetry:"Reintentar",removeConfirm:"Quitar",removeCancel:"Cancelar",sourceLabel:"Fuente",addCancel:"Cancelar"},previousPage:"Anterior",nextPage:"Siguiente",close:"Cerrar",copy:"Copiar"},fr:{sections:{installed:"Installé"},loadError:{retry:"Réessayer"},card:{install:"Installer",uninstall:"Désinstaller",installTooltip:"Installer le plugin"},installModal:{about:"À propos",includesSkills:"Compétences",connected:"Connecté"},detail:{install:"Installer le plugin",uninstall:"Désinstaller",skills:"Compétences",developer:"Développeur",category:"Catégorie",website:"Site web",privacyPolicy:"politique de confidentialité"},manageTabs:{skills:"Compétences"},headings:{skills:"Compétences"},skills:{scope:{user:"Utilisateur",system:"Système",repo:"Projet"},installed:"Installé",open:"Ouvrir",revealInFinder:"Afficher dans le Finder",details:"Détails"},marketplace:{loadErrorRetry:"Réessayer",partialRetry:"Réessayer",removeConfirm:"Retirer",removeCancel:"Annuler",addCancel:"Annuler"},previousPage:"Précédent",nextPage:"Suivant",close:"Fermer",copy:"Copier"},hi:{title:"प्लगइन्स",sections:{installed:"इंस्टॉल किया गया"},loadError:{retry:"पुनः प्रयास करें"},card:{install:"इंस्टॉल करें",uninstall:"अनइंस्टॉल करें",installTooltip:"प्लगइन इंस्टॉल करें"},installModal:{about:"के बारे में",includesSkills:"स्किल्स",includesApps:"ऐप्स",connected:"जुड़ा हुआ"},detail:{root:"प्लगइन",install:"प्लगइन इंस्टॉल करें",uninstall:"अनइंस्टॉल करें",skills:"स्किल्स",apps:"ऐप्स",developer:"डेवलपर",category:"श्रेणी",version:"संस्करण",website:"वेबसाइट",privacyPolicy:"गोपनीयता नीति"},manageTabs:{plugins:"प्लगइन",skills:"स्किल्स"},headings:{plugins:"प्लगइन",skills:"स्किल्स"},skills:{scope:{user:"उपयोगकर्ता",system:"सिस्टम",repo:"प्रोजेक्ट"},installed:"इंस्टॉल किया गया",open:"खोलें",revealInFinder:"Finder में दिखाएं",details:"विवरण"},marketplace:{loadErrorRetry:"पुनः प्रयास करें",partialRetry:"पुनः प्रयास करें",removeConfirm:"हटाएँ",removeCancel:"रद्द करें",sourceLabel:"सोर्स",addCancel:"रद्द करें"},previousPage:"पिछला",nextPage:"अगला",close:"बंद करें",copy:"कॉपी करें"},id:{title:"Plugin",sections:{installed:"Terpasang"},loadError:{retry:"Coba lagi"},card:{install:"Instal",uninstall:"Hapus instalasi",installTooltip:"Pasang plugin"},installModal:{about:"Tentang",includesSkills:"Skill",includesApps:"Aplikasi",includesMcpServers:"MCP server",connected:"Terhubung"},detail:{root:"Plugin",install:"Pasang plugin",uninstall:"Hapus instalasi",skills:"Skill",apps:"Aplikasi",mcpServers:"MCP server",developer:"Pengembang",category:"Kategori",version:"Versi",website:"Situs web",privacyPolicy:"kebijakan privasi"},manageTabs:{plugins:"Plugin",skills:"Skill"},headings:{plugins:"Plugin",skills:"Skill"},skills:{scope:{user:"Pengguna",system:"Sistem",repo:"Proyek"},installed:"Terpasang",open:"Buka",revealInFinder:"Tampilkan di Finder",details:"Detail"},marketplace:{loadErrorRetry:"Coba lagi",partialRetry:"Coba lagi",removeConfirm:"Hapus",removeCancel:"Batal",sourceLabel:"Sumber",addCancel:"Batal"},previousPage:"Sebelumnya",nextPage:"Berikutnya",close:"Tutup",copy:"Salin"},it:{title:"Plugin",sections:{installed:"Installato"},loadError:{retry:"Riprova"},card:{install:"Installa",uninstall:"Disinstalla",installTooltip:"Installa plugin"},installModal:{about:"Informazioni",includesSkills:"Skill",includesApps:"App",includesMcpServers:"MCP server",connected:"Connesso"},detail:{root:"Plugin",install:"Installa plugin",uninstall:"Disinstalla",skills:"Skill",apps:"App",mcpServers:"MCP server",developer:"Sviluppatore",category:"Categoria",version:"Versione",website:"Sito web",privacyPolicy:"informativa sulla privacy"},manageTabs:{plugins:"Plugin",skills:"Skill"},headings:{plugins:"Plugin",skills:"Skill"},skills:{scope:{user:"Utente",system:"Sistema",repo:"Progetto"},installed:"Installato",open:"Apri",revealInFinder:"Mostra nel Finder",details:"Dettagli"},marketplace:{loadErrorRetry:"Riprova",partialRetry:"Riprova",removeConfirm:"Rimuovi",removeCancel:"Annulla",sourceLabel:"Sorgente",addCancel:"Annulla"},previousPage:"Precedente",nextPage:"Successivo",close:"Chiudi",copy:"Copia"},ja:{title:"プラグイン",sections:{installed:"インストール済み"},loadError:{retry:"再試行"},card:{install:"インストール",uninstall:"アンインストール",installTooltip:"プラグインをインストール"},installModal:{about:"概要",includesSkills:"スキル",includesApps:"アプリ",connected:"接続済み"},detail:{root:"プラグイン",install:"プラグインをインストール",uninstall:"アンインストール",skills:"スキル",apps:"アプリ",developer:"開発者",category:"カテゴリ",version:"バージョン",website:"Webサイト",privacyPolicy:"プライバシーポリシー"},manageTabs:{plugins:"プラグイン",skills:"スキル",marketplace:"マーケットプレイス"},headings:{plugins:"プラグイン",skills:"スキル",marketplace:"マーケットプレイス"},skills:{scope:{user:"ユーザー",system:"システム",repo:"プロジェクト"},installed:"インストール済み",open:"開く",revealInFinder:"Finderで表示",details:"詳細"},marketplace:{loadErrorRetry:"再試行",partialRetry:"再試行",removeConfirm:"削除",removeCancel:"キャンセル",sourceLabel:"ソース",addCancel:"キャンセル"},previousPage:"前へ",nextPage:"次へ",close:"閉じる",copy:"コピー"},ko:{title:"플러그인",sections:{installed:"설치됨"},loadError:{retry:"다시 시도"},card:{install:"설치",uninstall:"제거",installTooltip:"플러그인 설치"},installModal:{about:"정보",includesSkills:"스킬",includesApps:"앱",includesMcpServers:"MCP 서버",connected:"연결됨"},detail:{root:"플러그인",install:"플러그인 설치",uninstall:"제거",skills:"스킬",apps:"앱",mcpServers:"MCP 서버",developer:"개발자",category:"카테고리",version:"버전",website:"웹사이트",privacyPolicy:"개인정보 보호정책"},manageTabs:{plugins:"플러그인",skills:"스킬",marketplace:"마켓플레이스"},headings:{plugins:"플러그인",skills:"스킬",marketplace:"마켓플레이스"},skills:{scope:{user:"사용자",system:"시스템",repo:"프로젝트"},installed:"설치됨",open:"열기",revealInFinder:"Finder에서 보기",details:"세부 정보"},marketplace:{loadErrorRetry:"다시 시도",partialRetry:"다시 시도",removeConfirm:"제거",removeCancel:"취소",sourceLabel:"소스",addCancel:"취소"},previousPage:"이전",nextPage:"다음",close:"닫기",copy:"복사"},"pt-BR":{sections:{installed:"Instalado"},loadError:{retry:"Tentar novamente"},card:{install:"Instalar",uninstall:"Desinstalar",installTooltip:"Instalar plugin"},installModal:{about:"Sobre",connected:"Conectado"},detail:{install:"Instalar plugin",uninstall:"Desinstalar",developer:"Desenvolvedor",category:"Categoria",version:"Versão",website:"Site",privacyPolicy:"política de privacidade"},skills:{scope:{user:"Usuário",system:"Sistema",repo:"Projeto"},installed:"Instalado",open:"Abrir",revealInFinder:"Mostrar no Finder",details:"Detalhes"},marketplace:{loadErrorRetry:"Tentar novamente",partialRetry:"Tentar novamente",removeConfirm:"Remover",removeCancel:"Cancelar",sourceLabel:"Código-fonte",addCancel:"Cancelar"},previousPage:"Anterior",nextPage:"Próximo",close:"Fechar",copy:"Copiar"},ru:{title:"Плагины",sections:{installed:"Установлено"},loadError:{retry:"Повторить"},card:{install:"Установить",uninstall:"Удалить",installTooltip:"Установить плагин"},installModal:{about:"О программе",includesSkills:"Навыки",includesApps:"Приложения",connected:"Подключено"},detail:{root:"Плагины",install:"Установить плагин",uninstall:"Удалить",skills:"Навыки",apps:"Приложения",developer:"Разработчик",category:"Категория",version:"Версия",website:"Сайт",privacyPolicy:"политику конфиденциальности"},manageTabs:{plugins:"Плагины",skills:"Навыки"},headings:{plugins:"Плагины",skills:"Навыки"},skills:{scope:{user:"Пользователь",system:"Система",repo:"Проект"},installed:"Установлено",open:"Открыть",revealInFinder:"Показать в Finder",details:"Подробности"},marketplace:{loadErrorRetry:"Повторить",partialRetry:"Повторить",removeConfirm:"Удалить",removeCancel:"Отмена",sourceLabel:"Исходник",addCancel:"Отмена"},previousPage:"Предыдущее",nextPage:"Следующее",close:"Закрыть",copy:"Копировать"},"zh-CN":{catalog:{navigation:"工具箱导航",customize:"工具箱",content:"插件与技能内容",pluginViews:"插件视图",personal:"个人",showMore:"查看其余 {{count}} 项",title:"插件",description:"发现插件,管理技能与工具",search:"搜索插件和技能",clearSearch:"清除搜索",sourceHelp:"添加 GitHub 仓库、Git 地址或本地文件夹。",scope:"技能范围",allScopes:"全部范围",skillCount:"{{count}} 个技能",location:"位置",fromPlugin:"来自插件",toggleNotApplied:"技能实际状态与请求不一致。"},title:"插件",beta:"BETA",subtitle:"在你常用的工具中使用 Codex",search:"搜索插件",manage:"管理",pageActions:"页面操作",addMarketplace:"添加插件市场",sections:{featured:"推荐",installed:"已安装",installedEmpty:"尚未安装插件",showLess:"收起",seeMore:"查看更多",seeMoreDescription:"查看{{pluginNames}}等更多"},empty:"未找到插件",loading:"正在加载插件…",loadError:{title:"插件加载失败",retry:"重试"},card:{install:"安装",installing:"正在安装",uninstalling:"正在卸载",manage:"管理",moreActions:"更多操作",uninstall:"卸载",tryNow:"立即试用",disabledInstallTooltip:"你的管理员已关闭访问权限",disabledByAdmin:"已被管理员禁用",installTooltip:"安装插件",gitMarketplace:"来自 Git 市场",namedGitMarketplace:"来自 {{marketplaceName}} Git 市场",folderMarketplace:"来自文件夹插件市场",namedFolderMarketplace:"来自 {{marketplaceName}}",localPlugin:"来自此设备上的个人插件市场",enabledStatus:"插件已启用",disabledStatus:"插件已禁用",installedByAdmin:"由管理员安装",enable:"启用 {{pluginName}}",disable:"禁用 {{pluginName}}"},disabledReason:{planNotEligible:"你的套餐不支持",requiredAppUnavailable:"所需应用不可用",unknown:"不可用"},toast:{installed:"{{pluginName}} 插件已安装",installError:"插件安装失败",refreshError:"已安装 {{pluginName}},但刷新插件列表失败",uninstalled:"{{pluginName}} 插件已卸载",uninstallError:"插件卸载失败",uninstallNotApplied:"刷新后插件仍处于已安装状态,请重试。",skillsReloadError:"插件已更改,但无法刷新技能。请先重新加载技能,再开始新聊天",syncError:"操作已保存,但列表刷新失败:{{message}}",toggleError:"无法更新插件",enabled:"{{pluginName}} 插件已启用",disabled:"{{pluginName}} 插件已禁用",toggleNotApplied:"刷新后的插件状态与请求不一致,请重试。"},installModal:{title:"安装 {{pluginName}}",install:"安装 {{pluginName}}",installing:"正在安装 {{pluginName}}",developedBy:"由 {{developerName}} 开发",category:"类别:{{category}}",about:"关于",capabilities:"功能",includes:"包含内容",includesSkills:"技能",includesApps:"应用",includesMcpServers:"MCP 服务器",needsAppsTitle:"将应用连接到 {{pluginName}}",needsAppsSubtitle:"从你已在使用的应用中获得相关性更强的帮助。你也可以稍后再设置。",tryNow:"立即试用 {{pluginName}}",viewDetails:"查看详情",connect:"连接",connected:"已连接",connecting:"已打开链接"},detail:{root:"插件",install:"安装插件",installing:"正在安装",tryNow:"立即试用",moreActions:"更多操作",uninstall:"卸载",loading:"正在加载",errorTitle:"无法加载插件",missing:"未找到插件",missingDescription:"无法从插件市场详情页加载此插件。",skills:"技能",apps:"应用",mcpServers:"MCP 服务器",hooks:"钩子",information:"信息",developer:"开发者",category:"类别",version:"版本",website:"网站",capabilities:"功能",privacyPolicy:"隐私政策",termsOfService:"服务条款",unavailable:"不可用",disabledByAdmin:"管理员已禁用",fallbackTitle:"插件"},breadcrumb:{manage:"管理"},manageTabs:{aria:"管理扩展程序",plugins:"插件",skills:"技能",marketplace:"市场"},headings:{plugins:"插件",skills:"技能",marketplace:"市场"},skills:{document:{open:"打开",reveal:"在文件夹中显示",copy:"复制 Markdown",content:"技能正文",error:"无法读取 SKILL.md"},search:"搜索技能",scope:{user:"用户",repo:"项目",system:"系统",admin:"管理员"},empty:"找不到技能",installed:"已安装",loading:"正在加载技能…",refresh:"刷新",filteredEmpty:"没有符合筛选条件的技能",filteredEmptyDescription:"尝试调整你的搜索内容或范围筛选条件",enable:"启用技能",disable:"禁用技能",enabledStatus:"技能已启用",disabledStatus:"技能已禁用",disabledBadge:"已禁用",enabledToast:"{{skillName}} 技能已启用",disabledToast:"{{skillName}} 技能已禁用",toggleError:"无法更新技能",moreActions:"更多操作",open:"打开",revealInFinder:"在 Finder 中显示",revealInFileExplorer:"在文件资源管理器中显示",revealInFileManager:"在文件管理器中显示",details:"详情"},marketplace:{subtitle:"管理可用的插件市场",search:"搜索市场",empty:"未找到任何市场",loading:"正在加载市场…",loadErrorTitle:"无法加载插件市场",loadErrorRetry:"重试",partialTitle:"部分插件市场无法加载",partialRetry:"重试",upgrade:"升级市场",upgradeButton:"升级",upgradeBuiltIn:"内置市场会自动更新",upgradeLocal:"只能升级 Git 市场",upgradeAll:"升级",upgradeAllTooltip:"升级所有市场",remove:"移除市场",removeBuiltIn:"无法移除内置市场",removeConfigured:"仅可移除已配置的市场",removeTitle:"是否移除“{{marketplaceName}}”?",removeDescription:"这会从你的配置中移除该市场。除非你重新添加,否则其插件不会显示。",removeConfirm:"移除",removeCancel:"取消",addTitle:"添加插件市场",addSubtitle:"从 GitHub 仓库、Git URL 或本地文件夹添加。了解更多",sourceLabel:"来源",sourcePlaceholder:"openai/plugins 或 git@github.com:org/repo.git",sourceRequired:"请输入市场来源",refLabel:"Git 引用",refPlaceholder:"主分支",sparseLabel:"稀疏路径",sparsePlaceholder:"plugins/codex",addSubmit:"添加市场",addCancel:"取消",added:"已添加 {{marketplaceName}} 市场",alreadyAdded:"{{marketplaceName}} 已添加",addFailed:"添加插件市场失败",refreshFailed:"{{marketplaceName}} 市场已配置,但刷新插件列表失败",removed:"已移除 {{marketplaceName}} 市场",removeError:"移除市场失败",upgraded:"{{marketplaceName}} 市场已升级",upgradeError:"升级市场失败",upgradedAll:"市场已升级",upgradeAllError:"部分市场升级失败",upgradeAllRequestError:"升级市场失败",pluginCount_one:"{{count}} 个插件",pluginCount_other:"{{count}} 个插件",partialMore_one:"还有 {{count}} 个市场无法加载",partialMore_other:"还有 {{count}} 个市场无法加载"},previousPage:"上一页",nextPage:"下一页",close:"关闭",copy:"复制",extensions:"扩展"}};
|
|
2
|
+
export{P};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cn as f}from"cn";import{jsx as e,jsxs as a,Fragment as v}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{cn as f}from"cn";import{jsx as e,jsxs as a,Fragment as v}from"react/jsx-runtime";function Yt({title:r,titleIcon:t,body:o,rows:d,details:n,actions:s}){return a("div",{"data-slot":"hover-info-card",className:"flex flex-col gap-1.5",children:[a("div",{"data-slot":"hover-info-card-summary",className:"flex min-w-0 flex-col gap-1",children:[a("div",{"data-slot":"hover-info-card-title-row",className:"flex min-w-0 items-center gap-1.5",children:[t!=null&&e("span",{"data-slot":"hover-info-card-icon",className:"flex h-5 w-4 shrink-0 items-center justify-center",children:t}),e("div",{"data-slot":"hover-info-card-title",className:"text-foreground line-clamp-2 min-w-0 flex-1 text-sm break-words",children:r})]}),o!=null&&e("div",{"data-slot":"hover-info-card-body",className:"text-muted-foreground line-clamp-2 text-xs break-words",children:o}),e(i,{rows:d})]}),n!=null&&n.length>0&&e("div",{"data-slot":"hover-info-card-details",className:"flex min-w-0 flex-col gap-1.5",children:e(i,{rows:n})}),s!=null&&a(v,{children:[e("div",{"data-slot":"hover-info-card-separator",className:"bg-border -mx-3 mt-1.5 h-px"}),e("div",{"data-slot":"hover-info-card-actions",className:"-mx-1 flex flex-col",children:s})]})]})}function i({rows:r}){return r?.map((t,o)=>a("div",{"data-slot":"hover-info-card-row",className:"text-muted-foreground flex items-start gap-1.5 text-xs",children:[e("span",{"data-slot":"hover-info-card-icon",className:"flex h-5 w-4 shrink-0 items-center justify-center",children:t.icon}),e("span",{className:"min-w-0 break-all",children:t.text})]},o))}function G({icon:r,label:t,trailing:o,disabled:d,onClick:n,variant:s="default",className:l,...c}){return a("button",{...c,"data-slot":"hover-info-card-action","data-variant":s,type:"button",disabled:d,onClick:n,className:f("text-foreground hover:bg-foreground/5 active:bg-foreground/10 flex h-8 w-full items-center gap-2 rounded-sm px-2 text-start text-sm font-normal disabled:pointer-events-none disabled:opacity-50","[&_svg]:size-4 [&_svg]:shrink-0",s==="destructive"?"text-destructive [&_svg]:text-destructive":"[&_svg]:text-muted-foreground",l),children:[r,e("span",{className:"min-w-0 flex-1 truncate",children:t}),o]})}
|
|
2
|
+
export{Yt,G};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Cr,rt,Po,wr,kr,Sr}from"./chunk-2gwegefd.js";import{forwardRef as ye,useCallback as K,useEffect as ge,useImperativeHandle as ve,useLayoutEffect as w,useMemo as ne,useRef as s,useState as F}from"react";import{jsx as R,jsxs as re}from"react/jsx-runtime";var pe=12,X=2,V=800,he=new Map;function Re({turnKey:q,heightPx:x,placeholder:W=!1,deferUntilReady:n=!1,observe:b,onReady:L,children:z}){let h=s(null),[H,_]=F(!1),U=K((m)=>{h.current=m,b(q,m)},[b,q]);return w(()=>{let m=h.current;if(m===null)throw Error("Codex turn element is missing");let T=()=>{L(m),_(!0)};if(m.querySelector("[data-markdown-pending]")===null){T();return}let d=new MutationObserver(()=>{if(m.querySelector("[data-markdown-pending]")!==null)return;d.disconnect(),T()});return d.observe(m,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-markdown-pending"]}),()=>d.disconnect()},[L]),re("div",{style:H?void 0:{position:"relative",height:x,overflow:"hidden"},children:[R("div",{ref:U,className:"[&_[data-virtualized-turn-content]]:[content-visibility:visible]","data-turn-key":q,"aria-busy":!H||void 0,style:!H&&!W&&n?{visibility:"hidden"}:void 0,"data-turn-ready":H?"":void 0,children:z}),!H&&!W&&n&&R("div",{"aria-hidden":"true",className:"codex-turn-loading",children:re("div",{className:"codex-turn-loading-lines",children:[R("span",{}),R("span",{}),R("span",{})]})})]})}var br=ye(function({entries:x,renderTurn:W,scrollElement:n,sessionKey:b,leadingContent:L,leadingInsetPx:z=0,preserveViewport:h=!1},H){let _=s(null),[U,m]=F(z),T=L!==void 0&&L!==null;w(()=>{let e=_.current;if(e===null)return;let t=()=>m(e.getBoundingClientRect().height);t();let o=new ResizeObserver(t);return o.observe(e),()=>o.disconnect()},[T]);let d=ne(()=>he.get(b),[b]),[j,J]=F(()=>d?.turnHeightsByKey??{}),i=ne(()=>Cr({entries:x,gapPx:pe,measuredHeightsByKey:j,leadingInsetPx:T?U:z}),[x,j,T,U,z]),me=ne(()=>{let e=rt({distanceFromBottomPx:d?.distanceFromBottomPx??0,layout:i,overscanCount:X,viewportHeightPx:V}),t=d?.renderedWindow;if(t===void 0||t===null)return e;return Po({anchorKey:t.anchorKey,layout:i,previousRange:{startIndex:0,endIndex:Math.min(t.count,e.endIndex-e.startIndex)}})??e},[d,i]),[M,ie]=F(me),[y,oe]=F(V),[c,ue]=F(null),N=s(d?.distanceFromBottomPx??0),k=s(M),ae=s(i.turnKeys),l=s(j),S=s(i),se=s(i),P=s(new Map),v=s(null),C=s(null),E=s(null),D=s(new Map),Q=s(!1),ce=s(()=>{}),O=s(null),de=K(()=>{if(!h||n===null||v.current!==null||O.current!==null)return;let e=n.getBoundingClientRect();if(e.height<=0)return;let t=[...P.current].filter(([,r])=>r.hasAttribute("data-turn-ready")).map(([r,u])=>{let a=u.getBoundingClientRect(),g=S.current.turnIndexByKey.get(r),B=g===void 0?a.height:S.current.heightsPx[g];return{key:r,element:u,rect:a,bottom:a.top+B}}).filter(({rect:r,bottom:u})=>u>e.top&&r.top<e.bottom).toSorted((r,u)=>r.rect.top-u.rect.top),o=t.flatMap((r)=>[...r.element.querySelectorAll("[data-user-message-bubble], .codex-markdown-root > *")].filter((u)=>!u.closest('[aria-hidden="true"], [inert]')).map((u)=>({key:r.key,element:u,rect:u.getBoundingClientRect()})).filter(({rect:u})=>u.height>0&&u.top>=e.top&&u.top<e.bottom)).toSorted((r,u)=>r.rect.top-u.rect.top)[0]??t[0];if(o)O.current={key:o.key,element:o.element,top:o.rect.top-e.top,scrollTop:n.scrollTop}},[h,n]),Y=s(de);Y.current=de;let p=K((e,t)=>{let o=Math.min(e,i.totalHeightPx),r=rt({distanceFromBottomPx:o,layout:i,overscanCount:X,viewportHeightPx:t}),u=k.current,a=u.startIndex<=r.startIndex&&u.endIndex>=r.endIndex?u:r;if(N.current=o,k.current=a,ae.current=i.turnKeys,oe(t),a!==u)ie(a)},[i]),A=K((e)=>{let t=Math.max(0,e.scrollHeight-i.totalHeightPx);return Math.max(0,e.scrollHeight-e.clientHeight-e.scrollTop-t)},[i.totalHeightPx]),fe=K((e)=>{let t=e.dataset.turnKey;if(t===void 0)throw Error("Codex measured turn is missing its key");let o=Math.max(1,e.getBoundingClientRect().height);if(l.current[t]===o)return;Y.current();let r={...l.current,[t]:o};l.current=r,J(r)},[]),Z=K(()=>{if(C.current!==null)return C.current;return C.current=new ResizeObserver((e)=>{for(let t of e){let o=t.target;if(!("turnReady"in o.dataset)&&o.querySelector("[data-markdown-pending]")!==null)continue;let r=o.dataset.turnKey;if(r===void 0)throw Error("Codex measured turn is missing its key");let u=Math.max(1,t.borderBoxSize[0]?.blockSize??t.contentRect.height);D.current.set(r,u)}if(E.current!==null||D.current.size===0)return;E.current=requestAnimationFrame(()=>{E.current=null;let t=[...D.current].filter(([r,u])=>l.current[r]!==u);if(D.current.clear(),t.length===0)return;Y.current();let o={...l.current,...Object.fromEntries(t)};l.current=o,J(o)})}),C.current},[]),xe=K((e,t)=>{let o=P.current.get(e);if(o!==void 0)Z().unobserve(o),P.current.delete(e);if(t===null)return;if(t.dataset.turnKey!==e)throw Error(`Codex turn key does not match its element: ${e}`);P.current.set(e,t),Z().observe(t)},[Z]);ge(()=>()=>{if(C.current?.disconnect(),E.current!==null)cancelAnimationFrame(E.current);D.current.clear(),C.current=null,P.current.clear()},[]),w(()=>{ce.current=()=>{if(n===null)return;let e=A(n);if(v.current!==null){N.current=e,oe(n.clientHeight||V);return}p(e,n.clientHeight||V)}},[A,n,p]),w(()=>{if(n===null)return;if(!Q.current){Q.current=!0;let o=d?.distanceFromBottomPx??0;n.scrollTo({behavior:"instant",top:Math.max(0,o>0?S.current.totalHeightPx-n.clientHeight-o:n.scrollHeight-n.clientHeight)})}let e=()=>ce.current();e(),n.addEventListener("scroll",e,{passive:!0});let t=new ResizeObserver(e);return t.observe(n),()=>{n.removeEventListener("scroll",e),t.disconnect()}},[d,n]),w(()=>{if(n===null||c===null)return;let e=P.current.get(c.turnKey);if(e?.querySelector("[data-markdown-pending]")!==null)return;let t=e.offsetHeight;if(t<=0)return;if(l.current[c.turnKey]!==t){let g={...l.current,[c.turnKey]:t};l.current=g,J(g);return}let o=c.getTargetElement(e)??e,r=e.getBoundingClientRect(),u=o.getBoundingClientRect(),a=Sr({align:c.align,layout:i,targetHeightPx:u.height,targetOffsetPx:u.top-r.top,turnKey:c.turnKey,viewportHeightPx:n.clientHeight});if(a===null)throw Error(`Codex virtual turn is missing: ${c.turnKey}`);n.scrollTo({behavior:"instant",top:Math.max(0,i.totalHeightPx-n.clientHeight-a)}),p(a,n.clientHeight||V),queueMicrotask(()=>{if(v.current!==c)return;c.complete(),v.current=null,ue(null)})},[i,c,n,p]),w(()=>{let e=se.current;if(se.current=i,S.current=i,n===null||c!==null){O.current=null;return}let t=O.current;O.current=null;let o=t===null?void 0:n.contains(t.element)?t.element:P.current.get(t.key);if(h&&e!==i&&t!==null&&o!==void 0){let u=o.getBoundingClientRect().top-n.getBoundingClientRect().top,a=n.scrollTop-t.scrollTop;n.scrollTop+=u-t.top+a,p(A(n),n.clientHeight);return}let r=N.current;if(h&&e!==i&&Q.current)r=Math.max(0,e.totalHeightPx-n.clientHeight-n.scrollTop);if((r>24||h)&&e!==i){let u=A(n);if(u<=96&&!h){p(u,y);return}let a=rt({distanceFromBottomPx:r,layout:e,overscanCount:0,viewportHeightPx:y}),g=e.turnKeys.slice(a.startIndex,a.endIndex).filter((f)=>i.turnIndexByKey.has(f)),B=g.find((f)=>l.current[f]!==void 0)??g[0];if(B!==void 0){let f=wr({anchorKey:B,distanceFromBottomPx:r,nextLayout:i,previousLayout:e});if(f===null)throw Error(`Codex viewport anchor is missing: ${B}`);r=f,n.scrollTo({behavior:"instant",top:Math.max(0,i.totalHeightPx-n.clientHeight-r)})}}p(r,y)},[i,c,A,n,p,y,h]),w(()=>{k.current=M},[M]),ge(()=>()=>{v.current?.complete(),v.current=null;let e=k.current,o=S.current.turnKeys[e.startIndex];he.set(b,{distanceFromBottomPx:N.current,renderedWindow:o===void 0?null:{anchorKey:o,count:e.endIndex-e.startIndex},turnHeightsByKey:l.current})},[b]),ve(H,()=>({scrollToKey(e,t=(r)=>r,o={align:"center"}){v.current?.complete();let r=i.turnIndexByKey.get(e);if(r===void 0)throw Error(`Codex virtual turn is missing: ${e}`);let u=i.turnKeys[r],a=kr({layout:i,turnKey:e,viewportHeightPx:y});if(a===null)throw Error(`Codex virtual turn is missing: ${e}`);let g=rt({distanceFromBottomPx:a,layout:i,overscanCount:X,viewportHeightPx:y});return k.current=g,ie(g),new Promise((B)=>{let f={align:o.align,complete:B,getTargetElement:t,turnKey:u};v.current=f,ue(f)})}}),[i,y]);let I=M,G=ae.current;if(!(G===i.turnKeys||G.length===i.turnKeys.length&&G.every((e,t)=>e===i.turnKeys[t]))){let e=G[M.startIndex];I=(e===void 0?null:Po({anchorKey:e,layout:i,previousRange:M}))??rt({distanceFromBottomPx:N.current,layout:i,overscanCount:X,viewportHeightPx:y})}let ee=x.length-1,le=x[ee],te=x.slice(I.startIndex,Math.min(I.endIndex,ee)).map((e,t)=>({entry:e,index:I.startIndex+t}));if(le!==void 0)te.push({entry:le,index:ee});return re("div",{"data-codex-timeline":!0,"data-codex-virtualized-pending-key":c?.turnKey,"data-codex-virtualized-range":`${I.startIndex}:${I.endIndex}`,"data-codex-virtualized-total-count":x.length,"data-codex-virtualized-turn-count":te.length,className:"relative shrink-0",style:{height:i.totalHeightPx},children:[T&&R("div",{ref:_,"data-codex-timeline-leading":!0,className:"absolute inset-x-0 top-0",children:L}),te.map(({entry:e,index:t})=>R("div",{className:"absolute inset-x-0",style:{top:i.topOffsetsPx[t]??0},children:R(Re,{turnKey:e.turnKey,heightPx:i.heightsPx[t],placeholder:e.placeholder,deferUntilReady:e.deferUntilReady,observe:xe,onReady:fe,children:W(e,t)})},e.turnKey))]})});
|
|
2
|
+
export{br};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cn as v}from"cn";import{ChevronDownIcon as h,ChevronUpIcon as g,XIcon as b}from"lucide-react";import{useEffect as z,useImperativeHandle as B,useRef as N}from"react";import{Button as i}from"@nyssance/shadcn/vega/components/ui/button";import{Input as E}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as t,jsxs as k}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{cn as v}from"cn";import{ChevronDownIcon as h,ChevronUpIcon as g,XIcon as b}from"lucide-react";import{useEffect as z,useImperativeHandle as B,useRef as N}from"react";import{Button as i}from"@nyssance/shadcn/vega/components/ui/button";import{Input as E}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as t,jsxs as k}from"react/jsx-runtime";function yr({ref:f,value:r,onChange:p,onFind:o,onClose:s,placeholder:d,autoFocusOpen:a=!0,prevTitle:l,nextTitle:c,className:m}){let n=N(null);B(f,()=>{if(n.current===null)throw Error("FindBar input is not mounted");return n.current},[]),z(()=>{if(!a)return;let e=n.current;if(e===null)throw Error("FindBar input is not mounted");e.focus({preventScroll:!0}),e.select()},[a]);let u=!r;return k("div",{className:v("border-border flex h-9 shrink-0 items-center gap-1 border-b px-2",m),children:[t(E,{ref:n,value:r,onChange:(e)=>p(e.target.value),placeholder:d,className:"h-7 text-xs",onKeyDown:(e)=>{if(e.key==="Escape"){e.preventDefault(),s();return}if(e.key==="Enter"){if(e.preventDefault(),r)o(e.shiftKey)}}}),t(i,{size:"icon",variant:"ghost",className:"size-6",disabled:u,onClick:()=>o(!0),title:l?`${l} (⇧↵)`:"⇧↵",children:t(g,{className:"size-3.5"})}),t(i,{size:"icon",variant:"ghost",className:"size-6",disabled:u,onClick:()=>o(!1),title:c?`${c} (↵)`:"↵",children:t(h,{className:"size-3.5"})}),t(i,{size:"icon",variant:"ghost",className:"size-6",onClick:s,title:"Esc",children:t(b,{className:"size-3.5"})})]})}
|
|
2
|
+
export{yr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{qt}from"./chunk-d6cfxqzx.js";import{Button as n}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as a,jsxs as o,Fragment as l}from"react/jsx-runtime";function Ms({title:i,actions:r=[],children:t}){return o(l,{children:[o("div",{className:"flex h-[var(--navigation-row-height,30px)] items-center gap-0.5","data-tauri-drag-region":!0,children:[a("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold","data-tauri-drag-region":!0,children:i}),r.map((e)=>a(qt,{label:e.label,shortcut:e.shortcut,children:a(n,{variant:"ghost",size:"icon-sm",className:"size-[var(--navigation-row-height,30px)] p-0","aria-label":e.label,onClick:e.onClick,children:e.icon})},e.key))]}),t!=null&&a("div",{className:"flex flex-col gap-0.5",children:t})]})}
|
|
2
|
+
export{Ms};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ExternalLinkIcon as d}from"lucide-react";import{Button as n}from"@nyssance/shadcn/vega/components/ui/button";import{Card as c,CardContent as s,CardDescription as p,CardFooter as C,CardHeader as m,CardTitle as v}from"@nyssance/shadcn/vega/components/ui/card";import{jsx as a,jsxs as e}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{ExternalLinkIcon as d}from"lucide-react";import{Button as n}from"@nyssance/shadcn/vega/components/ui/button";import{Card as c,CardContent as s,CardDescription as p,CardFooter as C,CardHeader as m,CardTitle as v}from"@nyssance/shadcn/vega/components/ui/card";import{jsx as a,jsxs as e}from"react/jsx-runtime";function Si({message:r,url:t,t:i,onOpen:l,onRespond:o}){return e(c,{size:"sm",children:[e(m,{children:[a(p,{children:i("approval.needed")}),a(v,{children:r})]}),a(s,{children:e("div",{className:"flex flex-col gap-3",children:[e(n,{variant:"outline",size:"sm",className:"w-fit",onClick:()=>void l(t),children:[a(d,{"data-icon":"inline-start"}),i("approval.openLink")]}),a("p",{className:"text-muted-foreground text-sm",children:i("approval.waitingForLink")})]})}),e(C,{className:"flex flex-wrap gap-2",children:[a(n,{variant:"outline",size:"sm",onClick:()=>o("decline"),children:i("actions.decline")}),a(n,{variant:"ghost",size:"sm",onClick:()=>o("cancel"),children:i("actions.cancel")})]})]})}
|
|
2
|
+
export{Si};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{o}from"./chunk-73e9vpm9.js";import{e}from"./chunk-esbgn8q0.js";import{y,ee}from"./chunk-rkqptd9w.js";import{hasAccount as D,isGroupedSelect as L}from"@nyssance/codex-acp-v2/client";import{cn as H}from"cn";import{memo as W,useEffect as T,useState as F}from"react";import{HoverCard as z,HoverCardContent as O,HoverCardTrigger as U}from"@nyssance/shadcn/vega/components/ui/hover-card";import{jsx as r,jsxs as u}from"react/jsx-runtime";var d=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),A=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),I=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function f(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function V(a,t){let n=Math.min(100,a/t*100),p=n>=90?"text-destructive":n>=70?"text-foreground":"text-muted-foreground";return{pct:n,className:p}}function G(a){let t=y(a.configOptions,"model");return t===void 0?void 0:ee(t)}function nt(a,t){let n=a.windowDurationMins;if(n===null)return t("usage.usage");if(n%1440===0)return t("usage.windowDays",{count:n/1440});return t("usage.windowHours",{count:Math.round(n/60)})}function P(a){let{client:t}=e(),n=o((s)=>a&&s.connection==="ready"&&D(s.agent)),[p,c]=F(null);return T(()=>{if(!n){c(null);return}let s=!0;t.readRateLimits().then((m)=>{if(s)c(m)},()=>{return});let l=t.onRateLimits((m)=>{if(s)c(m)});return()=>{s=!1,l()}},[n,t]),n?p:null}function _({session:a}){let{t}=e().host,n=y(a.configOptions,"model"),p=n!==void 0&&(L(n.options)?n.options.some((i)=>i.groupId==="chatgpt"&&i.options.some((v)=>v.value===n.currentValue)):!n.currentValue.startsWith("gateway:")&&n.options.some((i)=>i.value===n.currentValue)),c=P(p),{usage:s,lastTurnUsage:l}=a;if(s===null&&l===null)return null;let m=s&&s.size>0?V(s.used,s.size):null,x=7,b=2*Math.PI*x,h=f(l?.inputTokens),k=f(l?.outputTokens),g=f(l?.cachedReadTokens),w=f(l?.cachedWriteTokens),S=f(l?.totalTokens)||h+k+g+w,R=h+g,C=R>0?A.format(g/R):t("tokens.notAvailable"),M=[[t("tokens.input"),d.format(h)],[t("tokens.output"),d.format(k)],[t("tokens.cachedRead"),d.format(g)],[t("tokens.cachedWrite"),d.format(w)],[t("tokens.cacheHitRate"),C],[t("tokens.total"),d.format(S)]],N=G(a);return u(z,{children:[r(U,{delay:100,closeDelay:100,render:u("button",{type:"button",className:H("hover:text-foreground flex h-7 items-center gap-1.5 rounded-md px-1.5 text-xs tabular-nums",m?.className??"text-muted-foreground"),"aria-label":t("tokens.openDetails"),children:[u("svg",{viewBox:"0 0 18 18",className:"size-4","aria-hidden":"true",children:[r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),m!==null&&r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:b,strokeDashoffset:b*(1-m.pct/100),transform:"rotate(-90 9 9)"})]}),m!==null&&u("span",{children:[Math.round(m.pct),"%"]})]})}),u(O,{align:"end",side:"top",sideOffset:8,className:"w-56 p-0",children:[N!==void 0&&r("div",{className:"border-b px-3 py-2",children:r("p",{className:"text-foreground truncate text-xs font-semibold",title:N,children:N})}),u("div",{className:"flex flex-col gap-3 p-3",children:[l!==null&&u("div",{className:"flex flex-col gap-1.5",children:[r("p",{className:"text-xs font-medium",children:t("tokens.openDetails")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:M.map(([i,v])=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:i}),r("dd",{className:"text-end tabular-nums",children:v})]},i))})]}),s!==null&&s.size>0&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("tokens.context")}),r("p",{className:"text-muted-foreground text-xs tabular-nums",children:t("tokens.contextSummary",{used:d.format(s.used),limit:d.format(s.size),percent:I.format(s.used/s.size*100)})})]}),c!==null&&(c.primary!==null||c.secondary!==null)&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("usage.limits")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:[c.primary,c.secondary].filter((i)=>i!==null).map((i)=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:nt(i,t)}),r("dd",{className:"text-end tabular-nums",children:t("usage.used",{percent:Math.round(Math.min(100,Math.max(0,i.usedPercent)))})})]},`${i.windowDurationMins??"window"}`))})]})]})]})]})}var hn=W(_);
|
|
2
|
+
export{nt,hn};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Yi(e,t){if(t===0)return null;let r=t-1;while(r>=0){let n=e[r];if(n===" "||n==="\t"||n===`
|
|
2
2
|
`)return null;if(n==="@"||n==="/"){let i=r===0?"":e[r-1],a=r===0||i===`
|
|
3
3
|
`||i===" "||i==="\t",s=a||/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul},。!?:;((]/u.test(i??"");if(n==="/"?s&&!/[/\\]/.test(e.slice(r+1,t)):a)return{kind:n==="/"?"slash":"at",start:r,end:t,query:e.slice(r+1,t)}}r-=1}return null}
|
|
4
|
-
export{
|
|
4
|
+
export{Yi};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{U}from"./chunk-xspnhgq6.js";import{yo,m,_,Vn,xo,_t}from"./chunk-ch8e8a32.js";import{mr,ho,gr,vo}from"./chunk-scdj02m8.js";import{Pt,It,jn}from"./chunk-ajp19sh9.js";import{he,g}from"./chunk-zzjth6f2.js";import{cn as J}from"cn";import{forwardRef as q,useImperativeHandle as z,useLayoutEffect as M,useRef as p}from"react";import{jsx as j}from"react/jsx-runtime";var O=(r,E)=>r.text===E.text&&JSON.stringify(r.apps)===JSON.stringify(E.apps),fo=q((r,E)=>{let I=he(),L=g(),s=p(null),N=p(null),a=p(_(m({text:I.textInput.value,apps:r.applications}))),d=p({start:r.initialCaret??m(a.current).length,end:r.initialCaret??m(a.current).length}),h=p(r.initialUndo?[{...r.initialUndo,selection:{start:Math.max(0,(r.initialCaret??1)-1),end:Math.max(0,(r.initialCaret??1)-1)}}]:[]),S=p([]),H=p(""),R=p(r.skillIcon),b=p(!1),x=p(!1),P=p(null),c=p({props:r,controller:I,attachments:L});c.current={props:r,controller:I,attachments:L};let f=()=>{if(s.current&&document.activeElement===s.current)d.current=gr(s.current,a.current.apps,d.current);return d.current},w=()=>{let e=s.current;if(!e)return;let t={...d.current};e.focus(),d.current=t,vo(e,t)},T=()=>({...a.current,selection:f()}),D=(e,t)=>{if(!s.current)return;if(mr(s.current,e,c.current.props.skillNames,c.current.props.skillIcon),R.current=c.current.props.skillIcon,H.current=JSON.stringify(c.current.props.skillNames??[]),s.current.dataset.empty=String(e.text.length===0&&e.apps.length===0),d.current=t,document.activeElement===s.current)vo(s.current,t)},C=(e,t,n=!0,l=!0)=>{if(l&&!O(a.current,e)){if(h.current.push(P.current??T()),h.current.length>100)h.current.shift();S.current=[]}if(P.current=null,a.current=e,d.current=t,n)D(e,t);c.current.props.onApplicationsChange(e.apps),c.current.controller.textInput.setInput(e.text)},y=(e)=>{let t=f(),n=m(a.current),l=m(e),i=new Set([...n.slice(0,t.start),...n.slice(t.end)].flatMap((k)=>typeof k==="string"?[]:[k.id])),u=l.filter((k)=>typeof k==="string"||!i.has(k.id)),o=_([...n.slice(0,t.start),...u,...n.slice(t.end)]),B=t.start+u.length;C(o,{start:B,end:B})},A=(e)=>{let n=(e?h.current:S.current).pop();if(!n)return;(e?S.current:h.current).push(T()),C({text:n.text,apps:n.apps},n.selection,!0,!1)},v=()=>{if(!s.current)return;let e=_(ho(s.current,a.current.apps)),t=f();if(b.current)return;let n=jn(e.text),l=n===e.text?e:_(m({text:n,apps:e.apps}));C(l,t,n!==e.text)};M(()=>{let e=s.current;if(!e)throw Error("Inline prompt input is missing");Object.defineProperties(e,{value:{configurable:!0,get:()=>a.current.text,set:(i)=>{a.current=_(m({text:i,apps:a.current.apps})),D(a.current,d.current)}},selectionStart:{configurable:!0,get:()=>Vn(m(a.current),f().start)},selectionEnd:{configurable:!0,get:()=>Vn(m(a.current),f().end)},setSelectionRange:{configurable:!0,value:(i,u)=>{let o=m(a.current);d.current={start:xo(o,i),end:xo(o,u)},D(a.current,d.current),e.dispatchEvent(new Event("select"))}},disabled:{configurable:!0,get:()=>Boolean(c.current.props.disabled)},form:{configurable:!0,get:()=>e.closest("form")}}),N.current=e,D(a.current,d.current),w();let n=()=>{f()},l=(i)=>{if(c.current.props.disabled){i.preventDefault();return}if(b.current||i.isComposing)return;if(i.inputType==="historyUndo"||i.inputType==="historyRedo")i.preventDefault(),A(i.inputType==="historyUndo");else if(i.inputType==="insertParagraph"||i.inputType==="insertLineBreak")i.preventDefault(),y({text:`
|
|
2
|
+
`,apps:[]});else P.current=T()};return e.addEventListener("beforeinput",l),e.addEventListener("change",v),document.addEventListener("selectionchange",n),()=>{e.removeEventListener("beforeinput",l),e.removeEventListener("change",v),document.removeEventListener("selectionchange",n),N.current=null}},[]),M(()=>{if(b.current)return;let e=_(m({text:I.textInput.value,apps:r.applications}));if(O(e,a.current)&&H.current===JSON.stringify(r.skillNames??[])&&R.current===r.skillIcon)return;let t=f();a.current=e,D(e,t)},[I.textInput.value,r.applications,r.skillNames,r.skillIcon]),z(E,()=>({focus:w,getTextarea:()=>N.current,isComposing:()=>b.current||x.current,resetHeight:()=>{h.current=[],S.current=[]},insertInvocation:(e)=>{w(),y({text:`${e} `,apps:[]})},insertApplication:(e)=>{if(w(),a.current.apps.some((t)=>t.id===e.id))return;y({text:"",apps:[{...e,offset:0}]})}}),[]);let F=(e)=>{if(b.current||x.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;if(c.current.props.onKeyDown?.(e),e.defaultPrevented)return;if((e.metaKey||e.ctrlKey)&&!e.altKey&&(e.key.toLowerCase()==="z"||e.key.toLowerCase()==="y")){e.preventDefault(),A(e.key.toLowerCase()==="z"&&!e.shiftKey);return}if(e.key==="Enter"){if(e.preventDefault(),e.shiftKey)y({text:`
|
|
3
|
+
`,apps:[]});else{let t=s.current?.closest("form"),n=t?.querySelector('button[type="submit"]');if(n&&!n.disabled)t?.requestSubmit(n)}return}if(e.key==="Backspace"||e.key==="Delete"){let t=f(),n=m(a.current);if(t.start!==t.end){e.preventDefault(),y({text:"",apps:[]});return}let l=Vn(n,t.start),i=U(a.current.text,c.current.props.skillNames??[]).find((o)=>e.key==="Backspace"?o.end===l:o.start===l);if(i){e.preventDefault();let o=t.start-(e.key==="Backspace"?i.name.length:0);C(_([...n.slice(0,o),...n.slice(o+i.name.length)]),{start:o,end:o});return}let u=e.key==="Backspace"?t.start-1:t.start;if(u>=0&&u<n.length&&typeof n[u]!=="string")e.preventDefault(),C(_([...n.slice(0,u),...n.slice(u+1)]),{start:u,end:u});else if(e.key==="Backspace"&&n.length===0){let o=c.current.attachments.files.at(-1);if(o)e.preventDefault(),c.current.attachments.remove(o.id)}}if(e.key.length===1&&e.key.charCodeAt(0)<32)e.preventDefault()},K=(e)=>{let t=f();if(t.start===t.end)return;let n=m(a.current).slice(t.start,t.end),l=_(n);if(e.preventDefault(),e.clipboardData.setData("text/plain",n.map((i)=>typeof i==="string"?i:`${i.name} `).join("")),e.clipboardData.setData(yo,JSON.stringify({version:1,...l})),e.type==="cut"&&!r.disabled)y({text:"",apps:[]})};return j("div",{ref:s,role:"textbox","aria-multiline":"true","aria-label":r["aria-label"],"aria-disabled":r.disabled||void 0,contentEditable:!r.disabled,suppressContentEditableWarning:!0,"data-chat-input":!0,"data-inline-input":!0,"data-placeholder":r.placeholder,"data-empty":a.current.text.length===0&&a.current.apps.length===0,className:J("bg-chat-input-bg data-[empty=true]:before:text-chat-input-placeholder relative max-h-(--chat-input-max-height) min-w-0 flex-1 overflow-y-auto p-0 pe-2.5 leading-(--chat-input-line-height) break-words whitespace-pre-wrap outline-none data-[empty=true]:before:pointer-events-none data-[empty=true]:before:absolute data-[empty=true]:before:content-[attr(data-placeholder)]",r.className),onInput:v,onKeyDown:F,onCompositionStart:()=>{P.current=T(),b.current=!0,x.current=!1},onCompositionEnd:()=>{b.current=!1,v(),x.current=!0,requestAnimationFrame(()=>{x.current=!1})},onPasteCapture:(e)=>r.onPasteCapture?.(e),onPaste:(e)=>{if(e.defaultPrevented||r.disabled)return;let{imageFiles:t,sawNonImageFile:n}=Pt(e.clipboardData.items);if(e.preventDefault(),t.length){L.add(t);return}if(n&&!It(e.clipboardData.items))return;y(_t(e.clipboardData)??{text:jn(e.clipboardData.getData("text/plain")),apps:[]})},onCopy:K,onCut:K,onDrop:(e)=>{e.preventDefault()}})});fo.displayName="PromptInputInline";
|
|
4
|
+
export{fo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{t}from"./chunk-73e9vpm9.js";import{Dt}from"./chunk-c2h4wr7g.js";import{zr,Vr,jr}from"./chunk-kn792h8n.js";import{Gr}from"./chunk-y3mx5sf0.js";import{ye}from"./chunk-7d1wnjw5.js";import{nativeTurnId as f,textOf as I}from"@nyssance/codex-acp-v2/client";import{useMemo as N}from"react";import{jsx as r,jsxs as v,Fragment as y}from"react/jsx-runtime";function Ua(i,n){return{installUnlock:n==="none"?()=>()=>{}:Vr,preload:()=>{if(n!=="none")zr(i)},playSequence:(a,d,l)=>jr(a,d,l,i,n)}}function Ur(i,n={},a){let d=[];for(let e of i){if(e.user===null)continue;let o="";for(let m of e.final){let p=I(m.content).trim();if(p.length===0)continue;o=p}let u=n[e.user.id],s=e.items.map(f).find((m)=>m!==null);d.push({id:e.user.id,turnKey:e.key,label:ye(e.user),response:o,inputTokens:u?.inputTokens??0,outputTokens:u?.outputTokens??0,...s===void 0?{}:{nativeTurnId:s}})}if(!a?.complete)return d;let l=new Map;for(let e of d){if(e.nativeTurnId===void 0)continue;let o=l.get(e.nativeTurnId)??[];o.push(e),l.set(e.nativeTurnId,o)}let c=new Set(a.turns.map((e)=>e.turnId)),g=new Set(a.loadedTurnIds);return[...a.turns.flatMap((e)=>{let o=l.get(e.turnId);if(o)return o;if(g.has(e.turnId))return[];let u=a.previews[e.turnId];return((u?.messages.length)?u.messages:[{id:"",label:"",response:""}]).map((s,m)=>({id:`history:${e.turnId}:${m===0?"0":s.id}`,messageId:s.id||void 0,turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,isLoaded:!1,previewState:u?.state??"loading",label:s.label,response:s.response,inputTokens:0,outputTokens:0}))}),...d.filter((e)=>e.nativeTurnId===void 0||!c.has(e.nativeTurnId))]}function T({item:i}){let n=t(),a=N(()=>({theme:n.theme,copyLabel:n.t("actions.copy"),openLink:()=>{},preview:!0}),[n]);if(i.previewState==="loading")return v("div",{role:"status",className:"animate-pulse space-y-2 py-1","aria-label":n.t("timeline.navigationLoading"),children:[r("div",{className:"bg-muted h-3 w-3/5 rounded"}),r("div",{className:"bg-muted h-3 rounded"}),r("div",{className:"bg-muted h-3 w-4/5 rounded"})]});return v(y,{children:[r("div",{className:"min-w-0 truncate font-medium",children:i.previewState==="unavailable"?n.t("timeline.navigationUnavailable"):i.label||n.t("timeline.navigationEmpty")}),i.response&&r("div",{className:"text-muted-foreground pointer-events-none mt-1 line-clamp-3 [&_img]:hidden [&_pre]:max-h-20 [&_table]:table-fixed","data-navigation-response":!0,children:r(Dt,{text:i.response,host:a})})]})}function Br(i){return r(Gr,{...i,renderPreview:(n)=>r(T,{item:n})})}
|
|
2
|
+
export{Ua,Ur,Br};
|