@alwith/module-chat 0.6.14 → 0.6.16
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/assets/provider-catalog.json +3 -9
- package/dist/app-reference.js +1 -1
- package/dist/application-tools.js +1 -1
- package/dist/approval/choice-elicitation-form.js +1 -1
- package/dist/approval/choice-schema.js +1 -1
- package/dist/approval/permission-options.js +1 -1
- package/dist/approval/permission-view.js +1 -1
- package/dist/approval/schema-elicitation-form.js +1 -1
- package/dist/approval/url-elicitation-card.js +1 -1
- package/dist/{chunk-ta71ve6k.js → chunk-00z352ph.js} +2 -2
- package/dist/{chunk-8gc78fh3.js → chunk-0307kp7e.js} +1 -1
- package/dist/{chunk-vc43akb6.js → chunk-04vnhbvc.js} +1 -1
- package/dist/{chunk-rfrr4xbt.js → chunk-05eg5p11.js} +2 -2
- package/dist/{chunk-c8szpswj.js → chunk-07fajk18.js} +2 -2
- package/dist/{chunk-v8c2tsnr.js → chunk-0yqb54zg.js} +2 -2
- package/dist/{chunk-y14r7906.js → chunk-11cbk1je.js} +2 -2
- package/dist/{chunk-dz6gv1k8.js → chunk-11z072sz.js} +2 -2
- package/dist/{chunk-ar7pyb7s.js → chunk-1e7gk302.js} +2 -2
- package/dist/{chunk-g6j0f6nq.js → chunk-1renytb3.js} +3 -3
- package/dist/chunk-2drcx544.js +2 -0
- package/dist/{chunk-txvxq7hy.js → chunk-2pahy4hs.js} +2 -2
- package/dist/{chunk-gmtjagqw.js → chunk-2ptyqcf3.js} +2 -2
- package/dist/{chunk-hy66kdet.js → chunk-2ss8m0ja.js} +3 -3
- package/dist/chunk-2sxxr6j8.js +2 -0
- package/dist/chunk-2tc9kn50.js +2 -0
- package/dist/{chunk-fk71dmx0.js → chunk-3174p320.js} +2 -2
- package/dist/{chunk-yn1rck7n.js → chunk-3h3cmjh2.js} +2 -2
- package/dist/chunk-3karja82.js +2 -0
- package/dist/{chunk-j3svczsr.js → chunk-3t5cksae.js} +2 -2
- package/dist/{chunk-cwfj3w5c.js → chunk-3yq0a0f1.js} +2 -2
- package/dist/{chunk-440eq9v5.js → chunk-41v0g6sw.js} +2 -2
- package/dist/{chunk-2pg50r36.js → chunk-4dabfz24.js} +3 -3
- package/dist/{chunk-h5ehjay8.js → chunk-4gq7ye1a.js} +2 -2
- package/dist/{chunk-t9sgtnge.js → chunk-4hz2ax5w.js} +2 -2
- package/dist/{chunk-b6fs77p0.js → chunk-4jy404m1.js} +2 -2
- package/dist/{chunk-te33zs6y.js → chunk-4n4gap45.js} +2 -2
- package/dist/{chunk-hw6d7q50.js → chunk-4qghztvg.js} +2 -2
- package/dist/{chunk-fwx30jk5.js → chunk-4zz6dnqa.js} +2 -2
- package/dist/{chunk-ryfqa1bc.js → chunk-5m45z6qm.js} +4 -4
- package/dist/{chunk-camsks19.js → chunk-5wsyenq9.js} +2 -2
- package/dist/{chunk-7f35yy1n.js → chunk-5ygdb72w.js} +2 -2
- package/dist/{chunk-b5ba1vak.js → chunk-5ymq8y72.js} +2 -2
- package/dist/{chunk-59rxa4rt.js → chunk-620q6hmz.js} +2 -2
- package/dist/{chunk-6e3g436k.js → chunk-6283nzqs.js} +2 -2
- package/dist/{chunk-61ehrk7x.js → chunk-64wzvf7k.js} +2 -2
- package/dist/{chunk-t0e7gk7y.js → chunk-6es8tgxc.js} +2 -2
- package/dist/{chunk-mb9h6s08.js → chunk-6xds0dkq.js} +2 -2
- package/dist/{chunk-9a72hk73.js → chunk-7cv512vy.js} +2 -2
- package/dist/{chunk-mhka64tj.js → chunk-7eqtvqrn.js} +2 -2
- package/dist/{chunk-qm7vegrj.js → chunk-7h3f7s97.js} +5 -5
- package/dist/{chunk-kg10wznr.js → chunk-7hwg9r4y.js} +1 -1
- package/dist/{chunk-cxhyh0w9.js → chunk-7nehhgej.js} +2 -2
- package/dist/chunk-856bck34.js +2 -0
- package/dist/{chunk-twxn29aq.js → chunk-8weq6t3q.js} +2 -2
- package/dist/{chunk-0zmt1z4x.js → chunk-9072bnjm.js} +2 -2
- package/dist/chunk-95n1cpnj.js +2 -0
- package/dist/{chunk-j85kej5x.js → chunk-97tgc9ym.js} +2 -2
- package/dist/{chunk-602grjva.js → chunk-9eme3n5c.js} +2 -2
- package/dist/chunk-9h77fcpn.js +2 -0
- package/dist/{chunk-060xywt5.js → chunk-9hmqa3cs.js} +2 -2
- package/dist/{chunk-vk4xkyhw.js → chunk-9pcx42v8.js} +2 -2
- package/dist/{chunk-c6zsjmmj.js → chunk-9rf3qecr.js} +2 -2
- package/dist/chunk-9rvf1am9.js +2 -0
- package/dist/{chunk-9cjwy7mn.js → chunk-9xhw5zmq.js} +2 -2
- package/dist/{chunk-hnh4907d.js → chunk-9z9jffth.js} +2 -2
- package/dist/{chunk-sntvq6zv.js → chunk-a1k3ffay.js} +2 -2
- package/dist/{chunk-v4z2kexv.js → chunk-adc8e01w.js} +2 -2
- package/dist/{chunk-7qq2hj62.js → chunk-avpdhhdz.js} +3 -3
- package/dist/{chunk-9hed1d4c.js → chunk-b9q9d2jh.js} +3 -3
- package/dist/{chunk-abp8zh77.js → chunk-bnpwhf5c.js} +2 -2
- package/dist/{chunk-7rd487pt.js → chunk-bqbpded2.js} +2 -2
- package/dist/{chunk-6kh62x8f.js → chunk-bsra0akd.js} +2 -2
- package/dist/{chunk-mgedgmps.js → chunk-csgkwny6.js} +2 -2
- package/dist/chunk-ct0xqakr.js +2 -0
- package/dist/chunk-d1n4w7hn.js +2 -0
- package/dist/{chunk-wht615am.js → chunk-dcevaazr.js} +2 -2
- package/dist/{chunk-86gk0v56.js → chunk-ehmdmfs5.js} +2 -2
- package/dist/{chunk-p32m85v1.js → chunk-ev9tkjgy.js} +3 -3
- package/dist/{chunk-1y8s1zmh.js → chunk-ex20n22v.js} +2 -2
- package/dist/{chunk-ydqr81rv.js → chunk-f2jc13bq.js} +2 -2
- package/dist/chunk-fd72zzqm.js +4 -0
- package/dist/chunk-fjk1g303.js +2 -0
- package/dist/chunk-fjseqvmx.js +1 -0
- package/dist/{chunk-37a8v8sd.js → chunk-fvz27k62.js} +2 -2
- package/dist/{chunk-rjqtw4zf.js → chunk-gbc31gbf.js} +2 -2
- package/dist/{chunk-kwnznjqg.js → chunk-gee5kh24.js} +2 -2
- package/dist/{chunk-sbyj2adb.js → chunk-gez0k8zs.js} +5 -5
- package/dist/chunk-gjfhvaxn.js +2 -0
- package/dist/{chunk-pamcdn3d.js → chunk-gk0tq3n9.js} +2 -2
- package/dist/{chunk-qdhdt0hb.js → chunk-gxjg94y5.js} +2 -2
- package/dist/{chunk-z1j2c9r4.js → chunk-h3xn4d48.js} +2 -2
- package/dist/{chunk-9kn9jafp.js → chunk-h4xxyhpn.js} +3 -3
- package/dist/{chunk-che3097s.js → chunk-ha5xrc0a.js} +2 -2
- package/dist/chunk-hmet2d96.js +2 -0
- package/dist/{chunk-raxtm3ej.js → chunk-hn6f6yrp.js} +2 -2
- package/dist/{chunk-4wb9xn39.js → chunk-hqykt9hr.js} +2 -2
- package/dist/{chunk-esrm0762.js → chunk-hwvr7b0j.js} +2 -2
- package/dist/{chunk-jayj7jn1.js → chunk-j5njgy7p.js} +2 -2
- package/dist/{chunk-1eyzjfc7.js → chunk-j6r44m9g.js} +2 -2
- package/dist/{chunk-dqntm4yy.js → chunk-j9snfndd.js} +2 -2
- package/dist/chunk-jz6zecb7.js +2 -0
- package/dist/{chunk-p8pj4pkf.js → chunk-k86843av.js} +2 -2
- package/dist/{chunk-nfsz18j1.js → chunk-kcra1mgf.js} +2 -2
- package/dist/chunk-kp7qa98m.js +2 -0
- package/dist/{chunk-ndrpfbe1.js → chunk-ktbszx6r.js} +2 -2
- package/dist/{chunk-p9vk6dds.js → chunk-m2x1s408.js} +2 -2
- package/dist/{chunk-wamhc02v.js → chunk-mgsxsaj1.js} +2 -2
- package/dist/{chunk-915dk3fj.js → chunk-mhxgws9c.js} +2 -2
- package/dist/{chunk-5t4egv96.js → chunk-n13y99dj.js} +2 -2
- package/dist/{chunk-kthwyebf.js → chunk-ncwf6pjj.js} +3 -3
- package/dist/{chunk-c98q3k3j.js → chunk-netp71kb.js} +2 -2
- package/dist/{chunk-yg0xnvde.js → chunk-nh9gk065.js} +2 -2
- package/dist/{chunk-b5przf89.js → chunk-nszq1xrj.js} +2 -2
- package/dist/chunk-nxj8m5bm.js +2 -0
- package/dist/chunk-p0d6rr6q.js +2 -0
- package/dist/chunk-pn5ghg65.js +2 -0
- package/dist/{chunk-36qcq9j0.js → chunk-pvd09dx5.js} +2 -2
- package/dist/{chunk-yz8dtdk0.js → chunk-pwcw4zp2.js} +2 -2
- package/dist/chunk-q1kstf4c.js +2 -0
- package/dist/{chunk-mh566s9g.js → chunk-q2z9w661.js} +2 -2
- package/dist/{chunk-n27z019x.js → chunk-q3vvg0de.js} +2 -2
- package/dist/{chunk-nh9kfjss.js → chunk-qdgsg6v4.js} +2 -2
- package/dist/chunk-qkw2nhsr.js +4 -0
- package/dist/{chunk-4e8rwzhz.js → chunk-qm1z1zcw.js} +2 -2
- package/dist/{chunk-rd4yhfs7.js → chunk-qnbr2cmg.js} +2 -2
- package/dist/{chunk-kmn45zqk.js → chunk-qtft8hnb.js} +2 -2
- package/dist/{chunk-k0mcp7wa.js → chunk-qwtmwj5m.js} +2 -2
- package/dist/chunk-rncx5gxz.js +2 -0
- package/dist/{chunk-c5gzxgfp.js → chunk-s5c2ha8t.js} +2 -2
- package/dist/{chunk-46ty0q9n.js → chunk-sct2h2dm.js} +2 -2
- package/dist/{chunk-ndy5kjpz.js → chunk-segftqt4.js} +2 -2
- package/dist/{chunk-1cm0r042.js → chunk-sg681jnt.js} +3 -3
- package/dist/{chunk-ddkh0qey.js → chunk-sp411z4y.js} +4 -4
- package/dist/{chunk-mwwas9bw.js → chunk-sqm2vsf5.js} +1 -1
- package/dist/chunk-t4dsmqdq.js +2 -0
- package/dist/{chunk-cg8nrtjv.js → chunk-t94rfs41.js} +2 -2
- package/dist/{chunk-4sneycqc.js → chunk-t96rf4pg.js} +2 -2
- package/dist/{chunk-abvawet2.js → chunk-thhtbvj1.js} +2 -2
- package/dist/{chunk-wkbxdz82.js → chunk-tjfjvzv5.js} +2 -2
- package/dist/{chunk-3435g0ft.js → chunk-tkbs5ev1.js} +2 -2
- package/dist/{chunk-cy35nmk9.js → chunk-trh02gwn.js} +2 -2
- package/dist/chunk-tvbgjmtw.js +3 -0
- package/dist/{chunk-q1mbkntx.js → chunk-twbeapwa.js} +2 -2
- package/dist/{chunk-yd9962fa.js → chunk-twx75z08.js} +2 -2
- package/dist/{chunk-pyrza100.js → chunk-tz8wmvs9.js} +2 -2
- package/dist/{chunk-t1ys4wak.js → chunk-v0y5fepf.js} +3 -3
- package/dist/chunk-vctq22tq.js +2 -0
- package/dist/{chunk-nhs4dy9n.js → chunk-veb90k24.js} +2 -2
- package/dist/{chunk-szrdzr1d.js → chunk-vepv6ktb.js} +2 -2
- package/dist/{chunk-sqt4g5nd.js → chunk-vextf7ba.js} +2 -2
- package/dist/chunk-vjmgh1q9.js +2 -0
- package/dist/{chunk-3gms312w.js → chunk-vkc8ssbv.js} +2 -2
- package/dist/chunk-vmg3evhm.js +2 -0
- package/dist/{chunk-fmwxhswe.js → chunk-vnr9rqs6.js} +3 -3
- package/dist/{chunk-af90c0vz.js → chunk-vqkwvrxc.js} +2 -2
- package/dist/{chunk-0kc5bhjv.js → chunk-vypkwd0x.js} +2 -2
- package/dist/{chunk-q53qh3sx.js → chunk-w22ch68s.js} +2 -2
- package/dist/{chunk-8qr01fzq.js → chunk-wdacgfwp.js} +2 -2
- package/dist/{chunk-mp6va3k2.js → chunk-wv127h6d.js} +2 -2
- package/dist/{chunk-jj460s9n.js → chunk-wyndwb68.js} +2 -2
- package/dist/{chunk-t2h1wgvg.js → chunk-x0h0g1ma.js} +2 -2
- package/dist/{chunk-yksyxg7r.js → chunk-x6f51rt2.js} +2 -2
- package/dist/{chunk-9bzz1801.js → chunk-xbp4r3n4.js} +3 -3
- package/dist/{chunk-eezcnm8y.js → chunk-xmks1g9y.js} +2 -2
- package/dist/{chunk-d7jpv1at.js → chunk-xmpaqxer.js} +2 -2
- package/dist/{chunk-vhdzdzf0.js → chunk-xqwbn2ph.js} +2 -2
- package/dist/{chunk-rkbdgfgs.js → chunk-xtwpbvdx.js} +2 -2
- package/dist/{chunk-j63fnn73.js → chunk-y1fpm5r2.js} +1 -1
- package/dist/{chunk-6ax3abjj.js → chunk-y6kxhkjm.js} +2 -2
- package/dist/{chunk-8r53axab.js → chunk-y7n8m9st.js} +2 -2
- package/dist/{chunk-r7ddbf5n.js → chunk-yaxsff9s.js} +2 -2
- package/dist/chunk-yy1pm240.js +2 -0
- package/dist/{chunk-1vnw2sgz.js → chunk-z38xf1rw.js} +3 -3
- package/dist/{chunk-485y3k93.js → chunk-z7ehwkcq.js} +2 -2
- package/dist/{chunk-1a741cjb.js → chunk-zah0npdy.js} +2 -2
- package/dist/{chunk-0d2frj7b.js → chunk-zcwsc0gx.js} +2 -2
- package/dist/{chunk-01qqfj91.js → chunk-zq18ffn0.js} +2 -2
- package/dist/client.js +1 -1
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/edited-files-card.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/codex/navigation-audio.js +1 -1
- package/dist/codex/navigation-preview.js +1 -1
- package/dist/codex/navigation-rail.js +1 -1
- package/dist/codex/patch-view.js +1 -1
- package/dist/codex/plan.js +1 -1
- package/dist/codex/timeline-virtualizer.js +1 -1
- package/dist/codex/turn-activity.js +1 -1
- package/dist/codex/user-message.js +1 -1
- package/dist/codex/virtualized-turn-list.js +1 -1
- package/dist/collections/collection-emoji.js +1 -1
- package/dist/collections/collection-menu.js +1 -1
- package/dist/collections/collection-panel.js +1 -1
- package/dist/collections/collections.js +1 -1
- package/dist/collections/host.js +1 -1
- package/dist/collections/locales.js +1 -1
- package/dist/collections/model.js +1 -1
- package/dist/collections/store.js +1 -1
- package/dist/composer/completion-filter.js +1 -1
- package/dist/composer/completion-menu.js +1 -1
- package/dist/composer/completion-trigger.js +1 -1
- package/dist/composer/effort-slider.js +1 -1
- package/dist/composer/inline-document.js +1 -1
- package/dist/composer/inline-dom.js +1 -1
- package/dist/composer/menu-presentation.d.ts +2 -0
- package/dist/composer/menu-presentation.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/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/code-highlighter.js +1 -1
- package/dist/lib/file-url.js +1 -1
- package/dist/lib/fuzzy.js +1 -1
- package/dist/lib/group-blocks.js +1 -1
- package/dist/lib/image-encode.js +1 -1
- package/dist/lib/limits.js +1 -1
- package/dist/lib/markdown-parser.js +1 -1
- package/dist/lib/markdown-rules.js +1 -1
- package/dist/lib/model-name.js +1 -1
- package/dist/lib/pointer-centered-zoom.js +1 -1
- package/dist/lib/prepare-prompt-files.js +1 -1
- package/dist/lib/reference-presentation.js +1 -1
- package/dist/lib/stream-style.js +1 -1
- package/dist/lib/streaming-markdown.js +1 -1
- package/dist/lib/tool-artifacts.js +1 -1
- package/dist/locales.js +1 -1
- package/dist/oauth/claude-login.js +1 -1
- package/dist/oauth.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/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/plugins-page.js +1 -1
- package/dist/plugins/plugins.js +1 -1
- package/dist/plugins/read-skill-document.js +1 -1
- package/dist/plugins/skill-document.js +1 -1
- package/dist/plugins/skills-tab.js +1 -1
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/reference-projection.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/account-menu.js +1 -1
- package/dist/session-list/activity-list.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/navigation-controls.js +1 -1
- package/dist/session-list/navigation-header.js +1 -1
- package/dist/session-list/navigation-store.js +1 -1
- package/dist/session-list/navigation-tabs.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/platform.js +1 -1
- package/dist/session-list/row-stop-button.js +1 -1
- package/dist/session-list/session-groups.js +1 -1
- package/dist/session-list/session-info-card.js +1 -1
- package/dist/session-list/session-list.js +1 -1
- package/dist/session-list/session-row.js +1 -1
- package/dist/session-list/session-state-dot.js +1 -1
- package/dist/session-list/session-state-menu.js +1 -1
- package/dist/session-list/shortcut-hint.js +1 -1
- package/dist/session-list/shortcut.js +1 -1
- package/dist/session-list/sidebar-overlay.js +1 -1
- package/dist/session-list/trailing-swap.js +1 -1
- package/dist/session-list/use-activity-notification.js +1 -1
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-cmd-held.js +1 -1
- package/dist/session-list/use-project-sessions.js +1 -1
- package/dist/session-list/virtual-session-rows.js +1 -1
- package/dist/session-timeline/activity-group.js +1 -1
- package/dist/session-timeline/activity-projection.js +1 -1
- package/dist/session-timeline/assistant-content.js +1 -1
- package/dist/session-timeline/assistant-image-references.js +1 -1
- package/dist/session-timeline/assistant-turn.js +1 -1
- package/dist/session-timeline/async-questions.js +1 -1
- package/dist/session-timeline/edited-files-card.js +1 -1
- package/dist/session-timeline/host.js +1 -1
- package/dist/session-timeline/image-generation-progress.js +1 -1
- package/dist/session-timeline/navigation-rail.js +1 -1
- package/dist/session-timeline/plan.js +1 -1
- package/dist/session-timeline/question-reply.js +1 -1
- package/dist/session-timeline/resource-content.js +1 -1
- package/dist/session-timeline/session-timeline.js +1 -1
- package/dist/session-timeline/timeline-registry.js +1 -1
- package/dist/session-timeline/turn-activity.js +1 -1
- package/dist/session-timeline/turn-error.js +1 -1
- package/dist/session-timeline/turn-retry.js +1 -1
- package/dist/session-timeline/turn-time.js +1 -1
- package/dist/session-timeline/turns.js +1 -1
- package/dist/session-timeline/use-timeline-scroll.js +1 -1
- package/dist/session-timeline/user-message.js +1 -1
- package/dist/settings/codex-account-card.js +1 -1
- package/dist/settings/login-card.js +1 -1
- package/dist/settings/model-alias-settings.js +1 -1
- package/dist/settings/model-aliases.js +1 -1
- package/dist/settings/provider-logos.js +1 -1
- package/dist/settings/provider-section.js +1 -1
- package/dist/settings/providers-port.js +1 -1
- package/dist/settings/providers.js +1 -1
- package/dist/settings/settings-bridge.js +1 -1
- package/dist/settings/settings.js +1 -1
- package/native/darwin-arm64/THIRD_PARTY_NOTICES.md +2 -2
- 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 +2 -2
- package/native/win32-x64/alwith_native_chat.dll +0 -0
- package/native/win32-x64/artifact.json +1 -1
- package/package.json +1 -1
- package/dist/chunk-0xcspxsx.js +0 -2
- package/dist/chunk-31ecwv4k.js +0 -4
- package/dist/chunk-3qabfreh.js +0 -2
- package/dist/chunk-5347w553.js +0 -4
- package/dist/chunk-5tvysr2s.js +0 -2
- package/dist/chunk-881sxqxf.js +0 -2
- package/dist/chunk-89nc6p3f.js +0 -2
- package/dist/chunk-8arntrcm.js +0 -3
- package/dist/chunk-8sckf8ey.js +0 -2
- package/dist/chunk-ac5wmxwh.js +0 -2
- package/dist/chunk-cdwhf4a8.js +0 -2
- package/dist/chunk-gg7ar09k.js +0 -2
- package/dist/chunk-jbw1dmrg.js +0 -2
- package/dist/chunk-myjx503j.js +0 -2
- package/dist/chunk-pj42memd.js +0 -2
- package/dist/chunk-pmdpwwx5.js +0 -2
- package/dist/chunk-qfwy13e3.js +0 -2
- package/dist/chunk-rfp26vx1.js +0 -2
- package/dist/chunk-t31w04yq.js +0 -2
- package/dist/chunk-teb81g3n.js +0 -2
- package/dist/chunk-v12aj1ee.js +0 -2
- package/dist/chunk-vmmebfqv.js +0 -2
- package/dist/chunk-vncrqvge.js +0 -2
- package/dist/chunk-wn0eg5m8.js +0 -2
- package/dist/chunk-wwpv3gc3.js +0 -2
- package/dist/chunk-y6993bfz.js +0 -2
- package/dist/chunk-z7ssj61m.js +0 -2
- package/dist/chunk-zhxjp4tt.js +0 -2
- package/dist/chunk-zktqmha9.js +0 -1
- /package/native/darwin-arm64/licenses/{libsqlite3-sys-0.39.1 → libsqlite3-sys-0.40.0}/LICENSE +0 -0
- /package/native/darwin-arm64/licenses/{rusqlite-0.41.1 → rusqlite-0.42.0}/LICENSE +0 -0
- /package/native/win32-x64/licenses/{libsqlite3-sys-0.39.1 → libsqlite3-sys-0.40.0}/LICENSE +0 -0
- /package/native/win32-x64/licenses/{rusqlite-0.41.1 → rusqlite-0.42.0}/LICENSE +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var C={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 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{w};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{p,E}from"./chunk-f0kgxjp1.js";import{Qn}from"./chunk-3gms312w.js";import{Z}from"./chunk-9hed1d4c.js";import{_}from"./chunk-1xaskqdj.js";import{Ke,Yi}from"./chunk-szrdzr1d.js";import{pe}from"./chunk-7rd487pt.js";import{cn as v}from"cn";import{BotIcon as ue,CheckIcon as me,CopyIcon as ge}from"lucide-react";import{Fragment as fe,memo as xe,useEffect as P,useRef as O,useState as S}from"react";import{jsx as n,jsxs as m,Fragment as D}from"react/jsx-runtime";function W(e,t){let[a,o]=S(()=>({key:e,mounted:t})),i=t||a.key===e&&a.mounted;if(a.key!==e||a.mounted!==i)o({key:e,mounted:i});return i}var q=new WeakMap,z=1;function L(e){if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return`${e.type}:${e.id}`;if(e.type==="thinking"&&e.id!==void 0)return`thinking:${e.id}`;let t=q.get(e);if(t!==void 0)return`${e.type}:${t}`;let a=z;return z+=1,q.set(e,a),`${e.type}:${a}`}function N(e){switch(e){case"pending":case"in_progress":return!0;case"completed":case"failed":case"cancelled":case"interrupted":return!1;default:throw Error(`Unknown ACP tool status: ${e}`)}}function V(e,t){let a=Math.max(0,Math.round(e/1000)),o=Math.floor(a/3600),i=Math.floor(a%3600/60),r=a%60;if(r>=60)i+=Math.floor(r/60),r%=60;if(i>=60)o+=Math.floor(i/60),i%=60;let l=Intl.DurationFormat;if(l)try{return new l(t,{style:"narrow"}).format({hours:o,minutes:i,seconds:o>0?0:r})}catch{}if(o>0)return i>0?`${o}h ${i}m`:`${o}h`;if(i>0)return r>0?`${i}m ${r}s`:`${i}m`;return`${r}s`}var Ce="M7.52925 3.7793C7.75652 3.55203 8.10803 3.52383 8.36616 3.69434L8.47065 3.7793L14.2207 9.5293C14.4804 9.789 14.4804 10.211 14.2207 10.4707L8.47065 16.2207C8.21095 16.4804 7.78895 16.4804 7.52925 16.2207C7.26955 15.961 7.26955 15.539 7.52925 15.2793L12.8085 10L7.52925 4.7207L7.44429 4.61621C7.27378 4.35808 7.30198 4.00657 7.52925 3.7793Z";function B({expanded:e,className:t}){return n("svg",{className:v("codex-activity-disclosure",e&&"codex-activity-disclosure-expanded",t),viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:Ce})})}function ye(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.3965 5.01128C16.3963 4.93399 16.3489 4.87691 16.293 4.85406L16.2354 4.84332C13.9306 4.91764 12.5622 5.32101 10.665 6.34722V16.3716C11.3851 15.9994 12.0688 15.7115 12.7861 15.5015C13.8286 15.1965 14.9113 15.0633 16.2402 15.0435L16.2979 15.0308C16.353 15.0063 16.3965 14.9483 16.3965 14.8755V5.01128ZM3.54492 14.8765C3.54492 14.9725 3.62159 15.0422 3.70117 15.0435L4.19629 15.0562C5.94062 15.1247 7.26036 15.4201 8.65918 16.0484C8.05544 15.1706 7.14706 14.436 6.17871 14.1109V14.1099C5.56757 13.9045 5.16816 13.3314 5.16797 12.6988V4.98882C4.86679 4.93786 4.60268 4.8999 4.28223 4.87457L3.72754 4.84429C3.62093 4.84079 3.54505 4.92417 3.54492 5.01226V14.8765ZM17.7266 14.8755C17.7266 15.6314 17.1607 16.2751 16.4121 16.3628L16.2598 16.3736C15.0122 16.3922 14.0555 16.5159 13.1602 16.7779C12.2629 17.0404 11.3966 17.4508 10.3369 18.0738C10.129 18.1959 9.87099 18.1958 9.66309 18.0738C7.71455 16.9283 6.31974 16.4689 4.12988 16.3853L3.68164 16.3736C2.85966 16.3614 2.21484 15.6838 2.21484 14.8765V5.01226C2.21497 4.15391 2.93263 3.4871 3.77246 3.51519L4.39844 3.54937C4.67996 3.57191 4.92258 3.60421 5.16797 3.64214V2.51031C5.16797 1.44939 6.29018 0.645615 7.31055 1.15679L7.31152 1.15582C8.78675 1.89511 10.0656 3.33006 10.5352 4.91461C12.3595 3.98907 13.8688 3.58817 16.1924 3.51324L16.3506 3.51714C17.1285 3.5741 17.7264 4.23496 17.7266 5.01128V14.8755ZM6.49805 12.6988C6.49824 12.7723 6.5442 12.8296 6.60254 12.8492L6.96289 12.9859C7.85245 13.3586 8.68125 13.9846 9.33496 14.7496V5.5816C9.08794 4.37762 8.13648 3.1566 6.95801 2.47613L6.71582 2.34527C6.67779 2.32617 6.6337 2.32502 6.58301 2.35796C6.52946 2.39279 6.49805 2.44863 6.49805 2.51031V12.6988Z"})})}function ve(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M7.33057 1.98535C10.2484 1.98535 12.6136 4.3508 12.6138 7.26855C12.6138 8.58031 12.1346 9.77942 11.3433 10.7031L13.9897 13.3496C14.1655 13.5253 14.1655 13.8106 13.9897 13.9863C13.814 14.1621 13.5288 14.1621 13.353 13.9863L10.7017 11.335C9.78678 12.0942 8.61243 12.5518 7.33057 12.5518C4.41281 12.5516 2.04736 10.1864 2.04736 7.26855C2.04754 4.35091 4.41292 1.98553 7.33057 1.98535ZM7.33057 2.88574C4.90998 2.88592 2.94793 4.84796 2.94775 7.26855C2.94775 9.68929 4.90987 11.6522 7.33057 11.6523C9.75141 11.6523 11.7144 9.6894 11.7144 7.26855C11.7142 4.84786 9.75131 2.88574 7.33057 2.88574Z"})})}function he(){return m("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:[n("path",{d:"M6.19629 7.86231C6.42357 7.63534 6.7752 7.60692 7.0332 7.77734L7.1377 7.86231L8.80371 9.5293C9.06329 9.78889 9.06307 10.21 8.80371 10.4697L7.1377 12.1367C6.878 12.3964 6.45599 12.3964 6.19629 12.1367C5.93686 11.8771 5.93697 11.456 6.19629 11.1963L7.39258 9.99902L6.19629 8.80371L6.11133 8.69922C5.94087 8.4411 5.96904 8.08955 6.19629 7.86231Z"}),n("path",{d:"M13.4668 11.0156C13.7699 11.0776 13.998 11.3456 13.998 11.667C13.9979 11.9883 13.7698 12.2564 13.4668 12.3184L13.333 12.332H10.833C10.466 12.3319 10.1682 12.034 10.168 11.667C10.168 11.2998 10.4659 11.0021 10.833 11.002H13.333L13.4668 11.0156Z"}),n("path",{d:"M12.6602 2.66504C13.3492 2.66504 13.9062 2.66439 14.3564 2.70117C14.8142 2.73859 15.2201 2.81796 15.5967 3.00977C16.1922 3.31321 16.677 3.79805 16.9805 4.39356C17.1722 4.77014 17.2517 5.17604 17.2891 5.63379C17.3258 6.08402 17.3252 6.64102 17.3252 7.33008V12.6602C17.3252 13.3492 17.3258 13.9062 17.2891 14.3564C17.2516 14.8142 17.1723 15.2201 16.9805 15.5967C16.677 16.1922 16.1922 16.677 15.5967 16.9805C15.2201 17.1723 14.8142 17.2516 14.3564 17.2891C13.9062 17.3258 13.3492 17.3252 12.6602 17.3252H7.33008C6.64102 17.3252 6.08402 17.3258 5.63379 17.2891C5.17604 17.2517 4.77014 17.1722 4.39356 16.9805C3.79805 16.677 3.31321 16.1922 3.00977 15.5967C2.81796 15.2201 2.73859 14.8142 2.70117 14.3564C2.66439 13.9062 2.66504 13.3492 2.66504 12.6602V7.33008C2.66504 6.64101 2.66439 6.08402 2.70117 5.63379C2.73858 5.17601 2.81797 4.77016 3.00977 4.39356C3.31321 3.79802 3.79802 3.31321 4.39356 3.00977C4.77016 2.81797 5.17601 2.73858 5.63379 2.70117C6.08402 2.66439 6.64101 2.66504 7.33008 2.66504H12.6602ZM7.33008 3.99512C6.61907 3.99512 6.1257 3.99601 5.74219 4.02734C5.3665 4.05804 5.15508 4.11481 4.99707 4.19531C4.65183 4.37124 4.37124 4.65183 4.19531 4.99707C4.11481 5.15508 4.05805 5.3665 4.02734 5.74219C3.99601 6.1257 3.99512 6.61908 3.99512 7.33008V12.6602C3.99512 13.3711 3.99601 13.8646 4.02734 14.248C4.05805 14.6237 4.11481 14.8352 4.19531 14.9932C4.37124 15.3384 4.65186 15.619 4.99707 15.7949C5.15507 15.8754 5.36654 15.9322 5.74219 15.9629C6.1257 15.9942 6.61908 15.9951 7.33008 15.9951H12.6602C13.3711 15.9951 13.8646 15.9942 14.248 15.9629C14.6237 15.9322 14.8352 15.8754 14.9932 15.7949C15.3384 15.619 15.619 15.3384 15.7949 14.9932C15.8754 14.8352 15.9322 14.6237 15.9629 14.248C15.9942 13.8646 15.9951 13.3711 15.9951 12.6602V7.33008C15.9951 6.61908 15.9942 6.1257 15.9629 5.74219C15.9322 5.36654 15.8754 5.15507 15.7949 4.99707C15.619 4.65186 15.3384 4.37124 14.9932 4.19531C14.8352 4.11481 14.6237 4.05805 14.248 4.02734C13.8646 3.99601 13.3711 3.99512 12.6602 3.99512H7.33008Z"})]})}function we(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M11.3312 4.20472C12.7488 2.92391 14.9377 2.96644 16.3039 4.33265L16.4318 4.46742C17.6713 5.8393 17.6713 7.93343 16.4318 9.30531L16.3039 9.44007L10.0119 15.7311C9.68839 16.0546 9.45384 16.2917 9.22185 16.4821L8.98748 16.6588C8.78233 16.799 8.56429 16.9196 8.33709 17.0192L8.10759 17.1119C7.92582 17.1785 7.73843 17.2266 7.52166 17.2711L6.75701 17.4069L4.36345 17.8053C4.22059 17.8291 4.06914 17.8552 3.9406 17.8649C3.84183 17.8723 3.70833 17.875 3.56267 17.8395L3.41423 17.7907C3.19121 17.695 3.00747 17.5271 2.89177 17.316L2.84588 17.2223C2.75958 17.0209 2.76174 16.8276 2.77166 16.6959C2.78136 16.5674 2.80742 16.4159 2.83123 16.2731L3.22966 13.8795L3.36443 13.1149C3.40899 12.898 3.45795 12.7108 3.52459 12.5289L3.61736 12.2985C3.71691 12.0715 3.83772 11.854 3.97771 11.6491L4.15349 11.4147C4.34392 11.1825 4.58171 10.9484 4.90545 10.6246L11.1965 4.33265L11.3312 4.20472ZM5.84588 11.5651C5.49671 11.9142 5.31258 12.0998 5.1867 12.2526L5.07537 12.3991C4.98194 12.5358 4.90157 12.6812 4.83513 12.8327L4.77361 12.9869C4.73328 13.0971 4.70248 13.2125 4.66814 13.3815L4.54119 14.0983L4.14275 16.4918L4.14177 16.4938H4.1447L6.53826 16.0944L7.25505 15.9684C7.42406 15.9341 7.53946 15.9033 7.64959 15.8629L7.80291 15.8014C7.95461 15.7349 8.09953 15.6538 8.2365 15.5602L8.38396 15.4498C8.53674 15.3239 8.72231 15.1398 9.07146 14.7907L14.0588 9.80238L10.8332 6.57679L5.84588 11.5651ZM15.3635 5.27308C14.5281 4.43776 13.2058 4.38573 12.3097 5.11683L12.1369 5.27308L11.7736 5.63636L15.0002 8.86195L15.3635 8.49964L15.5197 8.32581C16.2015 7.48961 16.2015 6.28311 15.5197 5.44691L15.3635 5.27308Z"})})}function K(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.8347 7.91699C16.8347 7.76279 16.8266 7.61021 16.8123 7.45996L15.4705 8.80371C14.2903 9.98388 12.3762 9.98388 11.1961 8.80371C10.016 7.62352 10.0159 5.70942 11.1961 4.5293L12.5378 3.18652C12.3885 3.17238 12.237 3.16505 12.0837 3.16504C9.45947 3.16504 7.33179 5.29272 7.33179 7.91699C7.33184 8.56608 7.46162 9.18329 7.69605 9.74512C7.79981 9.9939 7.74311 10.2811 7.5525 10.4717L3.59547 14.4287C3.0498 14.9744 3.04991 15.8586 3.59547 16.4043L3.70191 16.501C4.25076 16.9483 5.05957 16.9158 5.57105 16.4043L9.52906 12.4473L9.60426 12.3828C9.79018 12.2455 10.0369 12.2131 10.2546 12.3037C10.8166 12.5382 11.4345 12.668 12.0837 12.668C14.7078 12.6678 16.8345 10.541 16.8347 7.91699ZM18.1648 7.91699C18.1646 11.2755 15.4423 13.9979 12.0837 13.998C11.4151 13.998 10.7708 13.8886 10.1677 13.6885L6.51246 17.3457C5.51389 18.3443 3.93332 18.406 2.86207 17.5322L2.65504 17.3457C1.58992 16.2806 1.58992 14.5534 2.65504 13.4883L6.31031 9.83203C6.1104 9.22921 6.00175 8.58526 6.00172 7.91699C6.00172 4.55818 8.72494 1.83496 12.0837 1.83496C12.7838 1.835 13.458 1.95316 14.0857 2.17188L14.1638 2.20508C14.3404 2.29325 14.4697 2.45713 14.5144 2.65234C14.5653 2.87533 14.4984 3.10876 14.3367 3.27051L12.1375 5.4707C11.4767 6.13148 11.4767 7.20251 12.1375 7.86328C12.7983 8.52373 13.8694 8.52395 14.53 7.86328L16.7293 5.66309L16.7937 5.60742C16.9499 5.48687 17.1532 5.44067 17.3484 5.48535C17.5714 5.53648 17.7526 5.69898 17.8279 5.91504C18.0466 6.54272 18.1648 7.21689 18.1648 7.91699Z"})})}function ee({block:e}){if(e.type!=="tool_use")return null;if(U(e))return n(K,{});let t=Z(e).category;if(t==="read")return n(ye,{});if(t==="search"||t==="fetch")return n(ve,{});if(t==="execute")return n(he,{});if(t==="edit")return n(we,{});return n(K,{})}function A(e,t){let a=e.rawInput[t];return typeof a==="string"&&a.length>0?a:void 0}function Le(e){return Z(e).target}function j(e){return e.name==="mcp"||e.name.startsWith("mcp__")||e.name.startsWith("mcp_")}function U(e){return j(e)||e.name==="dynamic_tool"}function te(e,t){let{category:a}=Z(e),o=Le(e),i=N(e.status);if(U(e))return{leading:e.title};if(a==="execute"){let r=A(e,"command")?.split(`
|
|
1
|
+
import{p,E}from"./chunk-f0kgxjp1.js";import{Yn}from"./chunk-vkc8ssbv.js";import{J}from"./chunk-b9q9d2jh.js";import{_}from"./chunk-1xaskqdj.js";import{Ke,Gi}from"./chunk-vepv6ktb.js";import{de}from"./chunk-bqbpded2.js";import{cn as v}from"cn";import{BotIcon as me,CheckIcon as pe,CopyIcon as ge}from"lucide-react";import{Fragment as fe,memo as xe,useEffect as P,useRef as O,useState as S}from"react";import{jsx as n,jsxs as m,Fragment as D}from"react/jsx-runtime";function H(e,t){let[a,o]=S(()=>({key:e,mounted:t})),i=t||a.key===e&&a.mounted;if(a.key!==e||a.mounted!==i)o({key:e,mounted:i});return i}var G=new WeakMap,q=1;function L(e){if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return`${e.type}:${e.id}`;if(e.type==="thinking"&&e.id!==void 0)return`thinking:${e.id}`;let t=G.get(e);if(t!==void 0)return`${e.type}:${t}`;let a=q;return q+=1,G.set(e,a),`${e.type}:${a}`}function N(e){switch(e){case"pending":case"in_progress":return!0;case"completed":case"failed":case"cancelled":case"interrupted":return!1;default:throw Error(`Unknown ACP tool status: ${e}`)}}function V(e,t){let a=Math.max(0,Math.round(e/1000)),o=Math.floor(a/3600),i=Math.floor(a%3600/60),r=a%60;if(r>=60)i+=Math.floor(r/60),r%=60;if(i>=60)o+=Math.floor(i/60),i%=60;let l=Intl.DurationFormat;if(l)try{return new l(t,{style:"narrow"}).format({hours:o,minutes:i,seconds:o>0?0:r})}catch{}if(o>0)return i>0?`${o}h ${i}m`:`${o}h`;if(i>0)return r>0?`${i}m ${r}s`:`${i}m`;return`${r}s`}var Ce="M7.52925 3.7793C7.75652 3.55203 8.10803 3.52383 8.36616 3.69434L8.47065 3.7793L14.2207 9.5293C14.4804 9.789 14.4804 10.211 14.2207 10.4707L8.47065 16.2207C8.21095 16.4804 7.78895 16.4804 7.52925 16.2207C7.26955 15.961 7.26955 15.539 7.52925 15.2793L12.8085 10L7.52925 4.7207L7.44429 4.61621C7.27378 4.35808 7.30198 4.00657 7.52925 3.7793Z";function B({expanded:e,className:t}){return n("svg",{className:v("codex-activity-disclosure",e&&"codex-activity-disclosure-expanded",t),viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:Ce})})}function ye(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.3965 5.01128C16.3963 4.93399 16.3489 4.87691 16.293 4.85406L16.2354 4.84332C13.9306 4.91764 12.5622 5.32101 10.665 6.34722V16.3716C11.3851 15.9994 12.0688 15.7115 12.7861 15.5015C13.8286 15.1965 14.9113 15.0633 16.2402 15.0435L16.2979 15.0308C16.353 15.0063 16.3965 14.9483 16.3965 14.8755V5.01128ZM3.54492 14.8765C3.54492 14.9725 3.62159 15.0422 3.70117 15.0435L4.19629 15.0562C5.94062 15.1247 7.26036 15.4201 8.65918 16.0484C8.05544 15.1706 7.14706 14.436 6.17871 14.1109V14.1099C5.56757 13.9045 5.16816 13.3314 5.16797 12.6988V4.98882C4.86679 4.93786 4.60268 4.8999 4.28223 4.87457L3.72754 4.84429C3.62093 4.84079 3.54505 4.92417 3.54492 5.01226V14.8765ZM17.7266 14.8755C17.7266 15.6314 17.1607 16.2751 16.4121 16.3628L16.2598 16.3736C15.0122 16.3922 14.0555 16.5159 13.1602 16.7779C12.2629 17.0404 11.3966 17.4508 10.3369 18.0738C10.129 18.1959 9.87099 18.1958 9.66309 18.0738C7.71455 16.9283 6.31974 16.4689 4.12988 16.3853L3.68164 16.3736C2.85966 16.3614 2.21484 15.6838 2.21484 14.8765V5.01226C2.21497 4.15391 2.93263 3.4871 3.77246 3.51519L4.39844 3.54937C4.67996 3.57191 4.92258 3.60421 5.16797 3.64214V2.51031C5.16797 1.44939 6.29018 0.645615 7.31055 1.15679L7.31152 1.15582C8.78675 1.89511 10.0656 3.33006 10.5352 4.91461C12.3595 3.98907 13.8688 3.58817 16.1924 3.51324L16.3506 3.51714C17.1285 3.5741 17.7264 4.23496 17.7266 5.01128V14.8755ZM6.49805 12.6988C6.49824 12.7723 6.5442 12.8296 6.60254 12.8492L6.96289 12.9859C7.85245 13.3586 8.68125 13.9846 9.33496 14.7496V5.5816C9.08794 4.37762 8.13648 3.1566 6.95801 2.47613L6.71582 2.34527C6.67779 2.32617 6.6337 2.32502 6.58301 2.35796C6.52946 2.39279 6.49805 2.44863 6.49805 2.51031V12.6988Z"})})}function ve(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M7.33057 1.98535C10.2484 1.98535 12.6136 4.3508 12.6138 7.26855C12.6138 8.58031 12.1346 9.77942 11.3433 10.7031L13.9897 13.3496C14.1655 13.5253 14.1655 13.8106 13.9897 13.9863C13.814 14.1621 13.5288 14.1621 13.353 13.9863L10.7017 11.335C9.78678 12.0942 8.61243 12.5518 7.33057 12.5518C4.41281 12.5516 2.04736 10.1864 2.04736 7.26855C2.04754 4.35091 4.41292 1.98553 7.33057 1.98535ZM7.33057 2.88574C4.90998 2.88592 2.94793 4.84796 2.94775 7.26855C2.94775 9.68929 4.90987 11.6522 7.33057 11.6523C9.75141 11.6523 11.7144 9.6894 11.7144 7.26855C11.7142 4.84786 9.75131 2.88574 7.33057 2.88574Z"})})}function he(){return m("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:[n("path",{d:"M6.19629 7.86231C6.42357 7.63534 6.7752 7.60692 7.0332 7.77734L7.1377 7.86231L8.80371 9.5293C9.06329 9.78889 9.06307 10.21 8.80371 10.4697L7.1377 12.1367C6.878 12.3964 6.45599 12.3964 6.19629 12.1367C5.93686 11.8771 5.93697 11.456 6.19629 11.1963L7.39258 9.99902L6.19629 8.80371L6.11133 8.69922C5.94087 8.4411 5.96904 8.08955 6.19629 7.86231Z"}),n("path",{d:"M13.4668 11.0156C13.7699 11.0776 13.998 11.3456 13.998 11.667C13.9979 11.9883 13.7698 12.2564 13.4668 12.3184L13.333 12.332H10.833C10.466 12.3319 10.1682 12.034 10.168 11.667C10.168 11.2998 10.4659 11.0021 10.833 11.002H13.333L13.4668 11.0156Z"}),n("path",{d:"M12.6602 2.66504C13.3492 2.66504 13.9062 2.66439 14.3564 2.70117C14.8142 2.73859 15.2201 2.81796 15.5967 3.00977C16.1922 3.31321 16.677 3.79805 16.9805 4.39356C17.1722 4.77014 17.2517 5.17604 17.2891 5.63379C17.3258 6.08402 17.3252 6.64102 17.3252 7.33008V12.6602C17.3252 13.3492 17.3258 13.9062 17.2891 14.3564C17.2516 14.8142 17.1723 15.2201 16.9805 15.5967C16.677 16.1922 16.1922 16.677 15.5967 16.9805C15.2201 17.1723 14.8142 17.2516 14.3564 17.2891C13.9062 17.3258 13.3492 17.3252 12.6602 17.3252H7.33008C6.64102 17.3252 6.08402 17.3258 5.63379 17.2891C5.17604 17.2517 4.77014 17.1722 4.39356 16.9805C3.79805 16.677 3.31321 16.1922 3.00977 15.5967C2.81796 15.2201 2.73859 14.8142 2.70117 14.3564C2.66439 13.9062 2.66504 13.3492 2.66504 12.6602V7.33008C2.66504 6.64101 2.66439 6.08402 2.70117 5.63379C2.73858 5.17601 2.81797 4.77016 3.00977 4.39356C3.31321 3.79802 3.79802 3.31321 4.39356 3.00977C4.77016 2.81797 5.17601 2.73858 5.63379 2.70117C6.08402 2.66439 6.64101 2.66504 7.33008 2.66504H12.6602ZM7.33008 3.99512C6.61907 3.99512 6.1257 3.99601 5.74219 4.02734C5.3665 4.05804 5.15508 4.11481 4.99707 4.19531C4.65183 4.37124 4.37124 4.65183 4.19531 4.99707C4.11481 5.15508 4.05805 5.3665 4.02734 5.74219C3.99601 6.1257 3.99512 6.61908 3.99512 7.33008V12.6602C3.99512 13.3711 3.99601 13.8646 4.02734 14.248C4.05805 14.6237 4.11481 14.8352 4.19531 14.9932C4.37124 15.3384 4.65186 15.619 4.99707 15.7949C5.15507 15.8754 5.36654 15.9322 5.74219 15.9629C6.1257 15.9942 6.61908 15.9951 7.33008 15.9951H12.6602C13.3711 15.9951 13.8646 15.9942 14.248 15.9629C14.6237 15.9322 14.8352 15.8754 14.9932 15.7949C15.3384 15.619 15.619 15.3384 15.7949 14.9932C15.8754 14.8352 15.9322 14.6237 15.9629 14.248C15.9942 13.8646 15.9951 13.3711 15.9951 12.6602V7.33008C15.9951 6.61908 15.9942 6.1257 15.9629 5.74219C15.9322 5.36654 15.8754 5.15507 15.7949 4.99707C15.619 4.65186 15.3384 4.37124 14.9932 4.19531C14.8352 4.11481 14.6237 4.05805 14.248 4.02734C13.8646 3.99601 13.3711 3.99512 12.6602 3.99512H7.33008Z"})]})}function we(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M11.3312 4.20472C12.7488 2.92391 14.9377 2.96644 16.3039 4.33265L16.4318 4.46742C17.6713 5.8393 17.6713 7.93343 16.4318 9.30531L16.3039 9.44007L10.0119 15.7311C9.68839 16.0546 9.45384 16.2917 9.22185 16.4821L8.98748 16.6588C8.78233 16.799 8.56429 16.9196 8.33709 17.0192L8.10759 17.1119C7.92582 17.1785 7.73843 17.2266 7.52166 17.2711L6.75701 17.4069L4.36345 17.8053C4.22059 17.8291 4.06914 17.8552 3.9406 17.8649C3.84183 17.8723 3.70833 17.875 3.56267 17.8395L3.41423 17.7907C3.19121 17.695 3.00747 17.5271 2.89177 17.316L2.84588 17.2223C2.75958 17.0209 2.76174 16.8276 2.77166 16.6959C2.78136 16.5674 2.80742 16.4159 2.83123 16.2731L3.22966 13.8795L3.36443 13.1149C3.40899 12.898 3.45795 12.7108 3.52459 12.5289L3.61736 12.2985C3.71691 12.0715 3.83772 11.854 3.97771 11.6491L4.15349 11.4147C4.34392 11.1825 4.58171 10.9484 4.90545 10.6246L11.1965 4.33265L11.3312 4.20472ZM5.84588 11.5651C5.49671 11.9142 5.31258 12.0998 5.1867 12.2526L5.07537 12.3991C4.98194 12.5358 4.90157 12.6812 4.83513 12.8327L4.77361 12.9869C4.73328 13.0971 4.70248 13.2125 4.66814 13.3815L4.54119 14.0983L4.14275 16.4918L4.14177 16.4938H4.1447L6.53826 16.0944L7.25505 15.9684C7.42406 15.9341 7.53946 15.9033 7.64959 15.8629L7.80291 15.8014C7.95461 15.7349 8.09953 15.6538 8.2365 15.5602L8.38396 15.4498C8.53674 15.3239 8.72231 15.1398 9.07146 14.7907L14.0588 9.80238L10.8332 6.57679L5.84588 11.5651ZM15.3635 5.27308C14.5281 4.43776 13.2058 4.38573 12.3097 5.11683L12.1369 5.27308L11.7736 5.63636L15.0002 8.86195L15.3635 8.49964L15.5197 8.32581C16.2015 7.48961 16.2015 6.28311 15.5197 5.44691L15.3635 5.27308Z"})})}function z(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.8347 7.91699C16.8347 7.76279 16.8266 7.61021 16.8123 7.45996L15.4705 8.80371C14.2903 9.98388 12.3762 9.98388 11.1961 8.80371C10.016 7.62352 10.0159 5.70942 11.1961 4.5293L12.5378 3.18652C12.3885 3.17238 12.237 3.16505 12.0837 3.16504C9.45947 3.16504 7.33179 5.29272 7.33179 7.91699C7.33184 8.56608 7.46162 9.18329 7.69605 9.74512C7.79981 9.9939 7.74311 10.2811 7.5525 10.4717L3.59547 14.4287C3.0498 14.9744 3.04991 15.8586 3.59547 16.4043L3.70191 16.501C4.25076 16.9483 5.05957 16.9158 5.57105 16.4043L9.52906 12.4473L9.60426 12.3828C9.79018 12.2455 10.0369 12.2131 10.2546 12.3037C10.8166 12.5382 11.4345 12.668 12.0837 12.668C14.7078 12.6678 16.8345 10.541 16.8347 7.91699ZM18.1648 7.91699C18.1646 11.2755 15.4423 13.9979 12.0837 13.998C11.4151 13.998 10.7708 13.8886 10.1677 13.6885L6.51246 17.3457C5.51389 18.3443 3.93332 18.406 2.86207 17.5322L2.65504 17.3457C1.58992 16.2806 1.58992 14.5534 2.65504 13.4883L6.31031 9.83203C6.1104 9.22921 6.00175 8.58526 6.00172 7.91699C6.00172 4.55818 8.72494 1.83496 12.0837 1.83496C12.7838 1.835 13.458 1.95316 14.0857 2.17188L14.1638 2.20508C14.3404 2.29325 14.4697 2.45713 14.5144 2.65234C14.5653 2.87533 14.4984 3.10876 14.3367 3.27051L12.1375 5.4707C11.4767 6.13148 11.4767 7.20251 12.1375 7.86328C12.7983 8.52373 13.8694 8.52395 14.53 7.86328L16.7293 5.66309L16.7937 5.60742C16.9499 5.48687 17.1532 5.44067 17.3484 5.48535C17.5714 5.53648 17.7526 5.69898 17.8279 5.91504C18.0466 6.54272 18.1648 7.21689 18.1648 7.91699Z"})})}function ee({block:e}){if(e.type!=="tool_use")return null;if(U(e))return n(z,{});let t=J(e).category;if(t==="read")return n(ye,{});if(t==="search"||t==="fetch")return n(ve,{});if(t==="execute")return n(he,{});if(t==="edit")return n(we,{});return n(z,{})}function A(e,t){let a=e.rawInput[t];return typeof a==="string"&&a.length>0?a:void 0}function Le(e){return J(e).target}function W(e){return e.name==="mcp"||e.name.startsWith("mcp__")||e.name.startsWith("mcp_")}function U(e){return W(e)||e.name==="dynamic_tool"}function te(e,t){let{category:a}=J(e),o=Le(e),i=N(e.status);if(U(e))return{leading:e.title};if(a==="execute"){let r=A(e,"command")?.split(`
|
|
2
2
|
`)[0]??o;return r?{leading:t(i?"stream.codex.running":"stream.codex.ran"),trailing:r}:{leading:t(i?"stream.codex.runningCommand":"stream.codex.ranCommandGeneric")}}if(a==="search"){let r=A(e,"pattern")??A(e,"query")??o;return r?{leading:t(i?"stream.codex.searching":"stream.codex.searched"),trailing:t("stream.codex.forDetail",{detail:r})}:{leading:t(i?"stream.codex.searchingFiles":"stream.codex.searchedFiles")}}if(a==="fetch"){let r=A(e,"query")??A(e,"url")??o;return r?{leading:t(i?"stream.codex.searchingWeb":"stream.codex.searchedWeb"),trailing:t("stream.codex.forDetail",{detail:r})}:{leading:t(i?"stream.codex.searchingWeb":"stream.codex.searchedWeb")}}if(a==="read")return o?{leading:t("stream.codex.readLabel"),trailing:o}:{leading:t("stream.codex.readFiles")};if(a==="edit")return o?{leading:t(i?"stream.codex.editingLabel":"stream.codex.editedLabel"),trailing:o}:{leading:t(i?"stream.codex.editingFiles":"stream.codex.editedFiles")};if(a==="delete")return o?{leading:t(i?"stream.codex.deletingLabel":"stream.codex.deletedLabel"),trailing:o}:{leading:t(i?"stream.codex.deletingFiles":"stream.codex.deletedFiles")};if(a==="move")return o?{leading:t(i?"stream.codex.movingLabel":"stream.codex.movedLabel"),trailing:o}:{leading:t(i?"stream.codex.movingFiles":"stream.codex.movedFiles")};return{leading:e.title}}function Ne(e,t){let a=te(e,t);return a.trailing===void 0?a.leading:`${a.leading} ${a.trailing}`}function be(e){return e.map((t)=>{if(t.type!=="content")return"";let a=t.content;return a.type==="text"?a.text:""}).filter(Boolean).join(`
|
|
3
3
|
`).trim()}function Te(e){return e.flatMap((t)=>{if(t.type!=="content")return[];let a=t.content;return a.type==="image"?[{data:a.data,mimeType:a.mimeType}]:[]})}function $e(e){return e.flatMap((t)=>{if(t.type!=="content")return[];let a=t.content;return a.type==="audio"?[{data:a.data,mimeType:a.mimeType}]:[]})}function ke(e){if(typeof e==="string"&&e.length>0)return e;return}function Ae(e){return e.type==="diff"}function Be(e){let t=e.content.find(Ae);if(t===void 0)return;return t.changes.map((a)=>`${a.operation} ${a.path}`).join(`
|
|
4
|
-
`)}function ne(e){let t=ke(e.rawOutput);if(t!==void 0)return t;let a=be(e.content);if(a.length>0)return a;return Be(e)}function
|
|
5
|
-
`)),l(!0),setTimeout(()=>l(!1),1500)};return n("div",{className:"codex-command-details",children:m("div",{className:"codex-command-card",children:[m("div",{className:"codex-command-line-row",children:[n("span",{className:"codex-command-prompt","aria-hidden":"true",children:"$"}),n("button",{type:"button",className:v("codex-command-line",!d&&"codex-command-line-clamped"),"data-codex-disclosure":"","aria-expanded":d,onClick:()=>c((f)=>!f),children:t}),n("button",{type:"button",className:"codex-command-copy","aria-label":a("actions.copy"),onClick:g,children:r?n(
|
|
6
|
-
`),u=Te(e.content),s=$e(e.content),[g,f]=_(`tool:${e.id}`,!1),C=W(`tool:${e.id}`,g),h=Z(e),w=h.category,y=te(e,t),b=w==="execute"?A(e,"command"):void 0;if(e.userShell&&b!==void 0)return n(J,{block:e,command:b});let T=b!==void 0||U(e)||u.length>0||s.length>0||Boolean(c)||l&&d!==void 0,I=!T&&!N(e.status)?h.filePath:void 0;if(w==="execute"&&!N(e.status)&&e.status!=="completed"){let x=r?.(e);if(x)y={...y,leading:x}}if(w==="read"&&N(e.status))return null;let M=m("span",{className:"codex-activity-label",children:[n(ee,{block:e}),n("span",{className:"min-w-0 flex-1 truncate",children:N(e.status)?n("span",{className:"codex-activity-running",children:y.trailing===void 0?y.leading:`${y.leading} ${y.trailing}`}):m(D,{children:[n("span",{className:"codex-activity-leading",children:y.leading}),y.trailing!==void 0&&(I!==void 0?m(D,{children:[" ",n("button",{type:"button",className:"codex-activity-trailing codex-activity-file-link",title:I,onClick:()=>a(I),children:y.trailing})]}):m("span",{className:"codex-activity-trailing",children:[" ",y.trailing]}))]})})]});return m("div",{className:"codex-activity-item",children:[T?m("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-label":y.trailing===void 0?y.leading:`${y.leading} ${y.trailing}`,"aria-expanded":g,onClick:()=>f((x)=>!x),children:[M,n(B,{expanded:g})]}):n("div",{className:"codex-activity-header codex-activity-header-static",children:M}),n("div",{className:v("codex-activity-details-grid",g&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:C&&m(D,{children:[b!==void 0?n(J,{block:e,command:b}):o!==void 0&&c?n(o,{patch:c}):d!==void 0&&n("pre",{className:"codex-activity-details",children:d}),u.length>0&&n("div",{className:"codex-activity-media",children:u.map((x)=>{let k=`data:${x.mimeType};base64,${x.data}`,G=n("img",{src:k,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},`${x.mimeType}:${x.data.slice(0,32)}`);return i===void 0?G:n("button",{type:"button",className:"cursor-pointer",onClick:()=>i(k),children:G},k)})}),s.map((x)=>n("audio",{className:"mt-1 w-full","aria-label":t("stream.codex.audioOutput"),controls:!0,src:`data:${x.mimeType};base64,${x.data}`},`${x.mimeType}:${x.data.slice(0,32)}`))]})})})]})}var oe=xe(function({block:t}){if(t.type==="tool_use")return n(ae,{block:t});if(t.type==="thinking")return n(le,{block:t});if(t.type==="collab")return n(ce,{block:t});return n(ie,{block:t})});function ie({block:e}){let{t,openSession:a}=p(),o=N(e.status),[i,r]=_(`subagent:${e.id}`,o),l=O(o);P(()=>{if(o)r(!0);if(l.current&&!o)r(!1);l.current=o},[o,r]);let d=`${Se(e.activity,o,e.name,t)}${re(e.model,e.reasoningEffort,t)}`,c=e.threadId??"",u=e.blocks.length>0;return m("div",{className:"codex-activity-item",children:[m("button",{type:"button",className:v("codex-activity-header",!u&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":u?i:void 0,disabled:!u,onClick:()=>r((s)=>!s),children:[m("span",{className:"codex-activity-label",children:[n(Ee,{seed:e.threadId??e.id}),n("span",{className:"min-w-0 flex-1 truncate",children:a===void 0||e.threadId===null?o?n("span",{className:"codex-activity-running",children:d}):d:n("span",{role:"link",tabIndex:0,className:v("codex-agent-link",o&&"codex-activity-running"),"aria-label":t("stream.codex.subagentOpen",{name:e.name}),onClick:(s)=>{s.stopPropagation(),a(c,e.name)},onKeyDown:(s)=>{if(s.key!=="Enter"&&s.key!==" ")return;s.preventDefault(),s.stopPropagation(),a(c,e.name)},children:d})})]}),u&&n(B,{expanded:i})]}),n("div",{className:v("codex-activity-details-grid",i&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:e.blocks.map((s)=>{if(s.type==="tool_use")return n(ae,{block:s},s.id);if(s.type==="thinking")return n(le,{block:s},L(s));if(s.type==="subagent")return n(ie,{block:s},s.id);if(s.type==="collab")return n(ce,{block:s},s.id);if(s.type==="text")return n("div",{className:"codex-reasoning-details",children:n(E,{text:s.text,streaming:!1})},L(s));if(s.type==="plan")return n(pe,{entries:s.entries},L(s));if(s.type==="image")return n("img",{src:`data:${s.source.media_type};base64,${s.source.data}`,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},L(s));return null})})})})]})}var Ie=8;function Me(e){let t=0;for(let a=0;a<e.length;a+=1)t=(t*31+e.charCodeAt(a))%2147483647;return t%Ie}function Ee({seed:e}){return n("span",{className:"codex-agent-avatar","data-hue":Me(e),"aria-hidden":"true"})}function Se(e,t,a,o){switch(e){case"started":return o(t?"stream.codex.subagentWorking":"stream.codex.subagentFinished",{name:a});case"interacted":return o("stream.codex.subagentMessaged",{name:a});case"interrupted":return o("stream.codex.subagentInterrupted",{name:a});case"completed":return o("stream.codex.subagentFinished",{name:a})}}var _e=new Set(["none","minimal","low","medium","high","xhigh","max","ultra","persistent"]);function re(e,t,a){if(e===null)return"";if(t===null)return` · ${Qn(e)}`;let o=_e.has(t)?a(`stream.codex.reasoningEffort.${t}`):t;return` · ${Qn(e)} · ${o}`}var Re={spawnAgent:"spawn",sendInput:"message",sendMessage:"message",followupTask:"message",interruptAgent:"interrupt",listAgents:"list",resumeAgent:"resume",closeAgent:"close"};function se(e){switch(e){case"pending":case"in_progress":return"inProgress";case"completed":return"completed";case"failed":return"failed";case"cancelled":case"interrupted":return"interrupted";default:throw Error(`Unknown ACP tool status: ${e}`)}}function H(e,t,a){if(e.tool==="wait")throw Error("Codex does not present wait calls");let o=se(e.status);if(o==="interrupted")return a("stream.codex.collab.interrupted");return a(`stream.codex.collab.${t}.${Re[e.tool]}.${o}`)}function Fe(e){return e.agents.filter((t)=>t.nickname!==null)}function de(e,t){let a=e.agents.length>0?e.agents.length:1;return`${H(e,"header",t)}${t("stream.codex.collab.agentCount",{count:a})}`}var R="\x01";function F(e,t,a,o){let i=Object.fromEntries(Object.keys(o).map((r)=>[r,`${R}${r}${R}`]));return e(t,{...a,...i}).split(new RegExp(`${R}(\\w+)${R}`,"u")).map((r,l)=>n(fe,{children:l%2===1?o[r]:r},`${l}:${r}`))}function De({agent:e,showModel:t}){let{t:a,openSession:o}=p(),i=e.nickname??"",r=o===void 0?n("span",{className:"font-medium",children:i}):n("button",{type:"button",className:"codex-agent-link font-medium","aria-label":a("stream.codex.subagentOpen",{name:i}),onClick:()=>o(e.threadId,i),children:i});return m("span",{children:[r,e.role!==null&&` (${e.role})`,t&&re(e.model,e.reasoningEffort,a)]})}function Q({prompt:e}){return n("span",{className:"codex-collab-prompt",title:e,children:e})}function Pe(e,t){let a=e.prompt?.trim()?e.prompt:null,o=se(e.status),i=e.tool==="spawnAgent"&&o==="completed"&&a!==null,r=(e.tool==="sendInput"||e.tool==="sendMessage"||e.tool==="followupTask")&&a!==null,l=Fe(e),d=[];if(l.length===0)d.push({key:"generic",node:H(e,"row",t)});for(let c of l){let u=n(De,{agent:c,showModel:e.tool==="spawnAgent"});if(i)d.push({key:c.threadId,node:n("span",{className:"codex-collab-line",children:F(t,"stream.codex.collab.createdWithInstructions",{},{agent:u,instructions:n(Q,{prompt:a})})})});else if(r)d.push({key:c.threadId,node:n("span",{className:"codex-collab-line",children:F(t,"stream.codex.collab.messagedWithPrompt",{action:o==="interrupted"?t("stream.codex.collab.interrupted"):t(`stream.codex.collab.messaged.${o}`)},{agent:u,prompt:n(Q,{prompt:a})})})});else{let g=e.tool!=="closeAgent"&&e.tool!=="resumeAgent"&&c.state!==null&&c.state!==null?c.state.message?.trim()?t("stream.codex.collab.stateWithMessage",{state:t(`stream.codex.collab.state.${c.state.status}`),message:c.state.message}):t("stream.codex.collab.stateOnly",{state:t(`stream.codex.collab.state.${c.state.status}`)}):"";d.push({key:c.threadId,node:F(t,"stream.codex.collab.agentRow",{action:H(e,"row",t),state:g},{agent:u})})}}if(!i&&!r&&a!==null)d.push({key:"input",node:F(t,"stream.codex.collab.input",{},{prompt:n("span",{className:"codex-collab-input",children:a})})});return d}function ce({block:e}){let{t}=p(),[a,o]=_(`collab:${e.id}`,!1);if(e.tool==="wait")return null;let i=N(e.status),r=de(e,t);return m("div",{className:"codex-activity-item",children:[m("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":a,onClick:()=>o((l)=>!l),children:[m("span",{className:"codex-activity-label",children:[n(ue,{className:"size-4 shrink-0","aria-hidden":"true"}),n("span",{className:"min-w-0 flex-1 truncate",children:i?n("span",{className:"codex-activity-running",children:r}):r})]}),n(B,{expanded:a})]}),n("div",{className:v("codex-activity-details-grid",a&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:Pe(e,t).map((l)=>n("div",{className:"codex-collab-row",children:l.node},l.key))})})})]})}function le({block:e}){let{t,i18n:a}=p(),o=Boolean(e.isComplete),[i,r]=_(`thinking:${L(e)}`,!1),l=O(null),d=e.thinking.trim().length>0;P(()=>{if(o||!d)return;let s=l.current;if(s===null)throw Error("Thinking details are not mounted");let g=new ResizeObserver(()=>{s.scrollTop=s.scrollHeight}),f=null,C=()=>{let w=s.firstElementChild;if(w===f)return;if(f!==null)g.unobserve(f);if(f=w,f!==null)g.observe(f)},h=new MutationObserver(C);return h.observe(s,{childList:!0}),C(),()=>{h.disconnect(),g.disconnect()}},[d,o]);let c=o?e.durationMs!==void 0?t("stream.codex.thoughtFor",{duration:V(e.durationMs,a.language)}):t("stream.codex.thought"):t("message.thinking"),u=e.thinking.trimStart().replace(/^\*\*[^\n]*?\*\*\s*/,"");return m("div",{className:"codex-activity-item",children:[m("button",{type:"button",className:v("codex-activity-header",!d&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":d?i:void 0,disabled:!d,onClick:()=>r((s)=>!s),children:[n("span",{className:"codex-activity-label",children:n("span",{className:"codex-reasoning-label min-w-0 flex-1 truncate",children:o?c:n("span",{className:"codex-activity-running",children:c})})}),d&&n(B,{expanded:i})]}),n("div",{className:v("codex-activity-details-grid",i&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:d&&n("div",{ref:l,className:"codex-reasoning-details",role:"region","aria-label":c,"aria-hidden":!i,tabIndex:0,inert:!i,children:n(E,{text:u,streaming:!o})})})})]})}function Oe(e){if(j(e))return"mcp";let t=Z(e).category;return t==="think"||t==="switch_mode"?"other":t}function Ue(e,t,a,o){return o(`stream.codex.summary.${e}.${a?"leading":"following"}`,{count:t})}function Ve(e,t,a){let o=new Map,i=[],r=new Set;for(let d of e){if(j(d)&&typeof d.rawInput.server==="string"){if(r.size===0)i.push({kind:"integrations"});r.add(d.rawInput.server);continue}if(U(d)){if(!i.some((u)=>u.kind==="named"&&u.title===d.title))i.push({kind:"named",title:d.title});continue}let c=Oe(d);if(!o.has(c))i.push({kind:"category",category:c});o.set(c,(o.get(c)??0)+1)}let l=i.map((d,c)=>{if(d.kind==="named")return d.title;if(d.kind==="integrations")return t(`stream.codex.summary.integrations.${c===0?"leading":"following"}`,{count:r.size,sources:new Intl.ListFormat(a,{style:"long",type:"conjunction"}).format([...r])});return Ue(d.category,o.get(d.category),c===0,t)});if(a.startsWith("zh"))return l.join("");return new Intl.ListFormat(a,{style:"long",type:"conjunction"}).format(l)}function Ji({stateKey:e,durationMs:t,durationKind:a="work",active:o,defaultExpanded:i=o,startedAt:r,providerId:l,providerIcon:d,children:c}){let{t:u,i18n:s}=p(),[g,f]=_(`work:${e}`,i,!0),C=W(`work:${e}`,g||o),h=O(null),[w,y]=S(0);P(()=>{if(!o||t!==void 0){h.current=null;return}h.current=r??Date.now();let T=()=>{let M=h.current;if(M===null)throw Error("Codex work section is ticking without a start time");y(Date.now()-M)};T();let I=window.setInterval(T,1000);return()=>window.clearInterval(I)},[o,r,t]);let b=t!==void 0?u(a==="total"?"stream.codex.totalDuration":"stream.codex.workedFor",{duration:V(t,s.language)}):o&&w>=1000?u("stream.codex.workingFor",{duration:V(w,s.language)}):u(o?"stream.codex.working":"stream.codex.worked");return m("section",{className:"codex-work-section",children:[m("button",{type:"button",className:"codex-work-trigger","data-codex-disclosure":"","aria-expanded":g,onClick:()=>f((T)=>!T),children:[l!==void 0&&n("span",{className:"codex-work-provider-icon","data-testid":"codex-work-provider-icon","data-provider-id":l,"aria-hidden":"true",children:d}),n("span",{children:b}),n(B,{expanded:g,className:"codex-work-chevron"})]}),n("div",{className:"codex-work-separator","aria-hidden":"true"}),n("div",{className:v("codex-work-grid",g&&"codex-work-grid-open"),"aria-hidden":!g,inert:!g,children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-work-body",children:C&&c})})})]})}function Ze(e,t){if(e.type==="tool_use")return Ne(e,t);if(e.type==="thinking")return t("message.thinking");if(e.type==="collab")return de(e,t);return t("stream.codex.subagentWorking",{name:e.name})}function X(e){if(e.type==="thinking")return!e.isComplete;if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return N(e.status);return!1}function He(e,t,a=1000){let[o,i]=S({text:e,live:t}),r=O(Date.now());return P(()=>{if(e===o.text&&t===o.live)return;let l=Date.now(),d=Math.max(0,r.current+a-l);if(d===0||t!==o.live){r.current=l,i({text:e,live:t});return}let c=window.setTimeout(()=>{r.current=Date.now(),i({text:e,live:t})},d);return()=>window.clearTimeout(c)},[o,t,a,e]),t===o.live?o.text:e}function We({blocks:e,defaultExpanded:t=!0}){let{t:a,i18n:o}=p(),i=e.some(X),r=L(e[0]),l=e.every((C)=>C.type==="tool_use"&&Z(C).category==="execute"),[d,c]=_(`group:${r}`,t&&!l),u=W(`group:${r}`,d),s=e.findLast(X)??e.at(-1);if(s===void 0)throw Error("CodexActivityGroup requires at least one activity block");let g=e.filter((C)=>C.type==="tool_use"),f=He(i?Ze(s,a):Ve(g,a,o.language),i);return m("div",{className:"codex-activity-group",children:[m("button",{type:"button",className:"codex-activity-group-trigger","data-codex-disclosure":"","aria-expanded":d,onClick:()=>c((C)=>!C),children:[m("span",{className:"codex-activity-label",children:[n(ee,{block:e[0]}),n("span",{className:"truncate",children:i?n("span",{className:"codex-activity-running",children:f}):f})]}),n(B,{expanded:d})]}),n("div",{className:v("codex-activity-group-grid",d&&"codex-activity-group-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-activity-group-body",children:u&&e.map((C)=>n(oe,{block:C},L(C)))})})})]})}function Y({blocks:e,defaultExpanded:t}){if(e.length===0)throw Error("CodexActivityGroup requires at least one activity block");if(e.length===1)return n(oe,{block:e[0]});return n(We,{blocks:e,defaultExpanded:t})}function vt({blocks:e,defaultExpanded:t}){if(!e.some(Ke))return n(Y,{blocks:e,defaultExpanded:t});let a=[];for(let o of e){let i=a.at(-1);if(i&&Ke(i[0])===Ke(o))i.push(o);else a.push([o])}return n(D,{children:a.map((o)=>Ke(o[0])?n(Yi,{blocks:o.filter(Ke)},L(o[0])):n(Y,{blocks:o,defaultExpanded:t},L(o[0])))})}
|
|
7
|
-
export{
|
|
4
|
+
`)}function ne(e){let t=ke(e.rawOutput);if(t!==void 0)return t;let a=be(e.content);if(a.length>0)return a;return Be(e)}function K({block:e,command:t}){let{t:a,Output:o,commandStatus:i}=p(),[r,l]=S(!1),[d,c]=S(!1),u=ne(e),s=i===void 0?e.exitCode===void 0?void 0:a("stream.codex.exitCode",{code:e.exitCode}):i(e),g=()=>{navigator.clipboard.writeText([`$ ${t}`,u].filter((f)=>f!==void 0).join(`
|
|
5
|
+
`)),l(!0),setTimeout(()=>l(!1),1500)};return n("div",{className:"codex-command-details",children:m("div",{className:"codex-command-card",children:[m("div",{className:"codex-command-line-row",children:[n("span",{className:"codex-command-prompt","aria-hidden":"true",children:"$"}),n("button",{type:"button",className:v("codex-command-line",!d&&"codex-command-line-clamped"),"data-codex-disclosure":"","aria-expanded":d,onClick:()=>c((f)=>!f),children:t}),n("button",{type:"button",className:"codex-command-copy","aria-label":a("actions.copy"),onClick:g,children:r?n(pe,{}):n(ge,{})})]}),u!==void 0&&(o===void 0?n("pre",{className:"codex-command-output",children:u}):n(o,{text:u})),s!==void 0&&n("div",{className:"codex-command-footer",children:n("span",{className:"codex-command-status",children:s})})]})})}function ae({block:e}){let{t,openLink:a,Patch:o,openImage:i,commandStatus:r,expandToolOutput:l=!1}=p(),d=ne(e),c=o===void 0?void 0:e.content.flatMap((x)=>{if(x.type!=="diff")return[];let k=x;return k.patch?.text?[k.patch.text]:[]}).join(`
|
|
6
|
+
`),u=Te(e.content),s=$e(e.content),[g,f]=_(`tool:${e.id}`,!1),C=H(`tool:${e.id}`,g),h=J(e),w=h.category,y=te(e,t),b=w==="execute"?A(e,"command"):void 0;if(e.userShell&&b!==void 0)return n(K,{block:e,command:b});let T=b!==void 0||U(e)||u.length>0||s.length>0||Boolean(c)||l&&d!==void 0,I=!T&&!N(e.status)?h.filePath:void 0;if(w==="execute"&&!N(e.status)&&e.status!=="completed"){let x=r?.(e);if(x)y={...y,leading:x}}if(w==="read"&&N(e.status))return null;let M=m("span",{className:"codex-activity-label",children:[n(ee,{block:e}),n("span",{className:"min-w-0 flex-1 truncate",children:N(e.status)?n("span",{className:"codex-activity-running",children:y.trailing===void 0?y.leading:`${y.leading} ${y.trailing}`}):m(D,{children:[n("span",{className:"codex-activity-leading",children:y.leading}),y.trailing!==void 0&&(I!==void 0?m(D,{children:[" ",n("button",{type:"button",className:"codex-activity-trailing codex-activity-file-link",title:I,onClick:()=>a(I),children:y.trailing})]}):m("span",{className:"codex-activity-trailing",children:[" ",y.trailing]}))]})})]});return m("div",{className:"codex-activity-item",children:[T?m("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-label":y.trailing===void 0?y.leading:`${y.leading} ${y.trailing}`,"aria-expanded":g,onClick:()=>f((x)=>!x),children:[M,n(B,{expanded:g})]}):n("div",{className:"codex-activity-header codex-activity-header-static",children:M}),n("div",{className:v("codex-activity-details-grid",g&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:C&&m(D,{children:[b!==void 0?n(K,{block:e,command:b}):o!==void 0&&c?n(o,{patch:c}):d!==void 0&&n("pre",{className:"codex-activity-details",children:d}),u.length>0&&n("div",{className:"codex-activity-media",children:u.map((x)=>{let k=`data:${x.mimeType};base64,${x.data}`,j=n("img",{src:k,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},`${x.mimeType}:${x.data.slice(0,32)}`);return i===void 0?j:n("button",{type:"button",className:"cursor-pointer",onClick:()=>i(k),children:j},k)})}),s.map((x)=>n("audio",{className:"mt-1 w-full","aria-label":t("stream.codex.audioOutput"),controls:!0,src:`data:${x.mimeType};base64,${x.data}`},`${x.mimeType}:${x.data.slice(0,32)}`))]})})})]})}var oe=xe(function({block:t}){if(t.type==="tool_use")return n(ae,{block:t});if(t.type==="thinking")return n(ue,{block:t});if(t.type==="collab")return n(le,{block:t});return n(ie,{block:t})});function ie({block:e}){let{t,openSession:a}=p(),o=N(e.status),[i,r]=_(`subagent:${e.id}`,o),l=O(o);P(()=>{if(o)r(!0);if(l.current&&!o)r(!1);l.current=o},[o,r]);let d=`${Se(e.activity,o,e.name,t)}${re(e.model,e.reasoningEffort,t)}`,c=e.threadId??"",u=e.blocks.length>0;return m("div",{className:"codex-activity-item",children:[m("button",{type:"button",className:v("codex-activity-header",!u&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":u?i:void 0,disabled:!u,onClick:()=>r((s)=>!s),children:[m("span",{className:"codex-activity-label",children:[n(Ee,{seed:e.threadId??e.id}),n("span",{className:"min-w-0 flex-1 truncate",children:a===void 0||e.threadId===null?o?n("span",{className:"codex-activity-running",children:d}):d:n("span",{role:"link",tabIndex:0,className:v("codex-agent-link",o&&"codex-activity-running"),"aria-label":t("stream.codex.subagentOpen",{name:e.name}),onClick:(s)=>{s.stopPropagation(),a(c,e.name)},onKeyDown:(s)=>{if(s.key!=="Enter"&&s.key!==" ")return;s.preventDefault(),s.stopPropagation(),a(c,e.name)},children:d})})]}),u&&n(B,{expanded:i})]}),n("div",{className:v("codex-activity-details-grid",i&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:e.blocks.map((s)=>{if(s.type==="tool_use")return n(ae,{block:s},s.id);if(s.type==="thinking")return n(ue,{block:s},L(s));if(s.type==="subagent")return n(ie,{block:s},s.id);if(s.type==="collab")return n(le,{block:s},s.id);if(s.type==="text")return n("div",{className:"codex-reasoning-details",children:n(E,{text:s.text,streaming:!1})},L(s));if(s.type==="plan")return n(de,{entries:s.entries},L(s));if(s.type==="image")return n("img",{src:`data:${s.source.media_type};base64,${s.source.data}`,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},L(s));return null})})})})]})}var Ie=8;function Me(e){let t=0;for(let a=0;a<e.length;a+=1)t=(t*31+e.charCodeAt(a))%2147483647;return t%Ie}function Ee({seed:e}){return n("span",{className:"codex-agent-avatar","data-hue":Me(e),"aria-hidden":"true"})}function Se(e,t,a,o){switch(e){case"started":return o(t?"stream.codex.subagentWorking":"stream.codex.subagentFinished",{name:a});case"interacted":return o("stream.codex.subagentMessaged",{name:a});case"interrupted":return o("stream.codex.subagentInterrupted",{name:a});case"completed":return o("stream.codex.subagentFinished",{name:a})}}var _e=new Set(["none","minimal","low","medium","high","xhigh","max","ultra","persistent"]);function re(e,t,a){if(e===null)return"";if(t===null)return` · ${Yn(e)}`;let o=_e.has(t)?a(`stream.codex.reasoningEffort.${t}`):t;return` · ${Yn(e)} · ${o}`}var Re={spawnAgent:"spawn",sendInput:"message",sendMessage:"message",followupTask:"message",interruptAgent:"interrupt",listAgents:"list",resumeAgent:"resume",closeAgent:"close"};function se(e){switch(e){case"pending":case"in_progress":return"inProgress";case"completed":return"completed";case"failed":return"failed";case"cancelled":case"interrupted":return"interrupted";default:throw Error(`Unknown ACP tool status: ${e}`)}}function Z(e,t,a){if(e.tool==="wait")throw Error("Codex does not present wait calls");let o=se(e.status);if(o==="interrupted")return a("stream.codex.collab.interrupted");return a(`stream.codex.collab.${t}.${Re[e.tool]}.${o}`)}function Fe(e){return e.agents.filter((t)=>t.nickname!==null)}function ce(e,t){let a=e.agents.length>0?e.agents.length:1;return`${Z(e,"header",t)}${t("stream.codex.collab.agentCount",{count:a})}`}var R="\x01";function F(e,t,a,o){let i=Object.fromEntries(Object.keys(o).map((r)=>[r,`${R}${r}${R}`]));return e(t,{...a,...i}).split(new RegExp(`${R}(\\w+)${R}`,"u")).map((r,l)=>n(fe,{children:l%2===1?o[r]:r},`${l}:${r}`))}function De({agent:e,showModel:t}){let{t:a,openSession:o}=p(),i=e.nickname??"",r=o===void 0?n("span",{className:"font-medium",children:i}):n("button",{type:"button",className:"codex-agent-link font-medium","aria-label":a("stream.codex.subagentOpen",{name:i}),onClick:()=>o(e.threadId,i),children:i});return m("span",{children:[r,e.role!==null&&` (${e.role})`,t&&re(e.model,e.reasoningEffort,a)]})}function Q({prompt:e}){return n("span",{className:"codex-collab-prompt",title:e,children:e})}function Pe(e,t){let a=e.prompt?.trim()?e.prompt:null,o=se(e.status),i=e.tool==="spawnAgent"&&o==="completed"&&a!==null,r=(e.tool==="sendInput"||e.tool==="sendMessage"||e.tool==="followupTask")&&a!==null,l=Fe(e),d=[];if(l.length===0)d.push({key:"generic",node:Z(e,"row",t)});for(let c of l){let u=n(De,{agent:c,showModel:e.tool==="spawnAgent"});if(i)d.push({key:c.threadId,node:n("span",{className:"codex-collab-line",children:F(t,"stream.codex.collab.createdWithInstructions",{},{agent:u,instructions:n(Q,{prompt:a})})})});else if(r)d.push({key:c.threadId,node:n("span",{className:"codex-collab-line",children:F(t,"stream.codex.collab.messagedWithPrompt",{action:o==="interrupted"?t("stream.codex.collab.interrupted"):t(`stream.codex.collab.messaged.${o}`)},{agent:u,prompt:n(Q,{prompt:a})})})});else{let g=e.tool!=="closeAgent"&&e.tool!=="resumeAgent"&&c.state!==null&&c.state!==null?c.state.message?.trim()?t("stream.codex.collab.stateWithMessage",{state:t(`stream.codex.collab.state.${c.state.status}`),message:c.state.message}):t("stream.codex.collab.stateOnly",{state:t(`stream.codex.collab.state.${c.state.status}`)}):"";d.push({key:c.threadId,node:F(t,"stream.codex.collab.agentRow",{action:Z(e,"row",t),state:g},{agent:u})})}}if(!i&&!r&&a!==null)d.push({key:"input",node:F(t,"stream.codex.collab.input",{},{prompt:n("span",{className:"codex-collab-input",children:a})})});return d}function le({block:e}){let{t}=p(),[a,o]=_(`collab:${e.id}`,!1);if(e.tool==="wait")return null;let i=N(e.status),r=ce(e,t);return m("div",{className:"codex-activity-item",children:[m("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":a,onClick:()=>o((l)=>!l),children:[m("span",{className:"codex-activity-label",children:[n(me,{className:"size-4 shrink-0","aria-hidden":"true"}),n("span",{className:"min-w-0 flex-1 truncate",children:i?n("span",{className:"codex-activity-running",children:r}):r})]}),n(B,{expanded:a})]}),n("div",{className:v("codex-activity-details-grid",a&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:Pe(e,t).map((l)=>n("div",{className:"codex-collab-row",children:l.node},l.key))})})})]})}function ue({block:e}){let{t,i18n:a}=p(),o=Boolean(e.isComplete),[i,r]=_(`thinking:${L(e)}`,!1),l=O(null),d=e.thinking.trim().length>0;P(()=>{if(o||!d)return;let s=l.current;if(s===null)throw Error("Thinking details are not mounted");let g=new ResizeObserver(()=>{s.scrollTop=s.scrollHeight}),f=null,C=()=>{let w=s.firstElementChild;if(w===f)return;if(f!==null)g.unobserve(f);if(f=w,f!==null)g.observe(f)},h=new MutationObserver(C);return h.observe(s,{childList:!0}),C(),()=>{h.disconnect(),g.disconnect()}},[d,o]);let c=o?e.durationMs!==void 0?t("stream.codex.thoughtFor",{duration:V(e.durationMs,a.language)}):t("stream.codex.thought"):t("message.thinking"),u=e.thinking.trimStart().replace(/^\*\*[^\n]*?\*\*\s*/,"");return m("div",{className:"codex-activity-item",children:[m("button",{type:"button",className:v("codex-activity-header",!d&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":d?i:void 0,disabled:!d,onClick:()=>r((s)=>!s),children:[n("span",{className:"codex-activity-label",children:n("span",{className:"codex-reasoning-label min-w-0 flex-1 truncate",children:o?c:n("span",{className:"codex-activity-running",children:c})})}),d&&n(B,{expanded:i})]}),n("div",{className:v("codex-activity-details-grid",i&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:d&&n("div",{ref:l,className:"codex-reasoning-details",role:"region","aria-label":c,"aria-hidden":!i,tabIndex:0,inert:!i,children:n(E,{text:u,streaming:!o})})})})]})}function Oe(e){if(W(e))return"mcp";let t=J(e).category;return t==="think"||t==="switch_mode"?"other":t}function Ue(e,t,a,o){return o(`stream.codex.summary.${e}.${a?"leading":"following"}`,{count:t})}function Ve(e,t,a){let o=new Map,i=[],r=new Set;for(let d of e){if(W(d)&&typeof d.rawInput.server==="string"){if(r.size===0)i.push({kind:"integrations"});r.add(d.rawInput.server);continue}if(U(d)){if(!i.some((u)=>u.kind==="named"&&u.title===d.title))i.push({kind:"named",title:d.title});continue}let c=Oe(d);if(!o.has(c))i.push({kind:"category",category:c});o.set(c,(o.get(c)??0)+1)}let l=i.map((d,c)=>{if(d.kind==="named")return d.title;if(d.kind==="integrations")return t(`stream.codex.summary.integrations.${c===0?"leading":"following"}`,{count:r.size,sources:new Intl.ListFormat(a,{style:"long",type:"conjunction"}).format([...r])});return Ue(d.category,o.get(d.category),c===0,t)});if(a.startsWith("zh"))return l.join("");return new Intl.ListFormat(a,{style:"long",type:"conjunction"}).format(l)}function Ui({stateKey:e,durationMs:t,durationKind:a="work",active:o,defaultExpanded:i=o,startedAt:r,providerId:l,providerIcon:d,children:c}){let{t:u,i18n:s}=p(),[g,f]=_(`work:${e}`,i,!0),C=H(`work:${e}`,g||o),h=O(null),[w,y]=S(0);P(()=>{if(!o||t!==void 0){h.current=null;return}h.current=r??Date.now();let T=()=>{let M=h.current;if(M===null)throw Error("Codex work section is ticking without a start time");y(Date.now()-M)};T();let I=window.setInterval(T,1000);return()=>window.clearInterval(I)},[o,r,t]);let b=t!==void 0?u(a==="total"?"stream.codex.totalDuration":"stream.codex.workedFor",{duration:V(t,s.language)}):o&&w>=1000?u("stream.codex.workingFor",{duration:V(w,s.language)}):u(o?"stream.codex.working":"stream.codex.worked");return m("section",{className:"codex-work-section",children:[m("button",{type:"button",className:"codex-work-trigger","data-codex-disclosure":"","aria-expanded":g,onClick:()=>f((T)=>!T),children:[l!==void 0&&n("span",{className:"codex-work-provider-icon","data-testid":"codex-work-provider-icon","data-provider-id":l,"aria-hidden":"true",children:d}),n("span",{children:b}),n(B,{expanded:g,className:"codex-work-chevron"})]}),n("div",{className:"codex-work-separator","aria-hidden":"true"}),n("div",{className:v("codex-work-grid",g&&"codex-work-grid-open"),"aria-hidden":!g,inert:!g,children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-work-body",children:C&&c})})})]})}function Ze(e,t){if(e.type==="tool_use")return Ne(e,t);if(e.type==="thinking")return t("message.thinking");if(e.type==="collab")return ce(e,t);return t("stream.codex.subagentWorking",{name:e.name})}function X(e){if(e.type==="thinking")return!e.isComplete;if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return N(e.status);return!1}function He(e,t,a=1000){let[o,i]=S({text:e,live:t}),r=O(Date.now());return P(()=>{if(e===o.text&&t===o.live)return;let l=Date.now(),d=Math.max(0,r.current+a-l);if(d===0||t!==o.live){r.current=l,i({text:e,live:t});return}let c=window.setTimeout(()=>{r.current=Date.now(),i({text:e,live:t})},d);return()=>window.clearTimeout(c)},[o,t,a,e]),t===o.live?o.text:e}function We({blocks:e,defaultExpanded:t=!0}){let{t:a,i18n:o}=p(),i=e.some(X),r=L(e[0]),l=e.every((C)=>C.type==="tool_use"&&J(C).category==="execute"),[d,c]=_(`group:${r}`,t&&!l),u=H(`group:${r}`,d),s=e.findLast(X)??e.at(-1);if(s===void 0)throw Error("CodexActivityGroup requires at least one activity block");let g=e.filter((C)=>C.type==="tool_use"),f=He(i?Ze(s,a):Ve(g,a,o.language),i);return m("div",{className:"codex-activity-group",children:[m("button",{type:"button",className:"codex-activity-group-trigger","data-codex-disclosure":"","aria-expanded":d,onClick:()=>c((C)=>!C),children:[m("span",{className:"codex-activity-label",children:[n(ee,{block:e[0]}),n("span",{className:"truncate",children:i?n("span",{className:"codex-activity-running",children:f}):f})]}),n(B,{expanded:d})]}),n("div",{className:v("codex-activity-group-grid",d&&"codex-activity-group-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-activity-group-body",children:u&&e.map((C)=>n(oe,{block:C},L(C)))})})})]})}function Y({blocks:e,defaultExpanded:t}){if(e.length===0)throw Error("CodexActivityGroup requires at least one activity block");if(e.length===1)return n(oe,{block:e[0]});return n(We,{blocks:e,defaultExpanded:t})}function ht({blocks:e,defaultExpanded:t}){if(!e.some(Ke))return n(Y,{blocks:e,defaultExpanded:t});let a=[];for(let o of e){let i=a.at(-1);if(i&&Ke(i[0])===Ke(o))i.push(o);else a.push([o])}return n(D,{children:a.map((o)=>Ke(o[0])?n(Gi,{blocks:o.filter(Ke)},L(o[0])):n(Y,{blocks:o,defaultExpanded:t},L(o[0])))})}
|
|
7
|
+
export{Ui,ht};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{x}from"./chunk-9h77fcpn.js";var Hn="application/x-alwith-app-references+json";function u(n){let r=[],t=n.apps.map((e,o)=>({app:e,order:o,offset:Math.max(0,Math.min(n.text.length,e.offset??0))})).sort((e,o)=>e.offset-o.offset||e.order-o.order),i=0;for(let{app:e,offset:o}of t)r.push(...n.text.slice(i,o).split(""),e),i=o;return r.push(...n.text.slice(i).split("")),r}function C(n){let r="",t=[],i=new Set;for(let e of n)if(typeof e==="string")r+=e;else if(!i.has(e.id))i.add(e.id),t.push({...e,offset:r.length});return{text:r,apps:t}}function gn(n,r){return n.slice(0,r).filter((t)=>typeof t==="string").length}function On(n,r){let t=0;for(let i=0;i<n.length;i++){if(typeof n[i]!=="string")continue;if(t===r)return i;t++}return n.length}function lt(n){let r=n.getData(Hn);if(!r)return null;let t;try{t=JSON.parse(r)}catch{return null}if(typeof t!=="object"||t===null||!("version"in t)||t.version!==1||!("text"in t)||typeof t.text!=="string"||!("apps"in t)||!Array.isArray(t.apps))return null;let i=[];for(let e of t.apps){if(typeof e!=="object"||e===null||typeof e.id!=="string"||x(`app://${e.id}`)!==e.id||typeof e.name!=="string"||!e.name.trim()||!Number.isInteger(e.offset)||e.offset<0||e.offset>t.text.length)return null;if(e.iconUrl!=null&&typeof e.iconUrl!=="string"||e.iconUrlDark!=null&&typeof e.iconUrlDark!=="string")return null;i.push({id:e.id,name:e.name,offset:e.offset,...e.iconUrl?{iconUrl:e.iconUrl}:{},...e.iconUrlDark?{iconUrlDark:e.iconUrlDark}:{}})}return C(u({text:t.text,apps:i}))}
|
|
2
|
+
export{Hn,u,C,gn,On,lt};
|
|
@@ -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 _i({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{_i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{ai}from"./chunk-dcevaazr.js";import{e,y}from"./chunk-pwcw4zp2.js";import{Z,v}from"./chunk-xmks1g9y.js";import{createLucideIcon as k,HandIcon as w,ShieldAlertIcon as S,ShieldCheckIcon as a}from"lucide-react";import{memo as O}from"react";import{jsx as t}from"react/jsx-runtime";var b=k("ApprovalShield",[["path",{d:"M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11",key:"shield"}],["path",{d:"m8 8 3 3-3 3M13 15h3",key:"terminal"}]]),d={"read-only":w,"workspace-write":a,agent:b,"agent-full-access":S},A={"read-only":"readOnly","workspace-write":"workspaceAccess",agent:"agent","agent-full-access":"fullAccess"};function N({sessionId:u,options:m,disabled:g,onConfigChange:c}){let{host:l,client:f}=e(),{t:r}=l,s=v(m,"mode");if(!s)return null;let o=s.currentValue,p=Z(s).map((n)=>{let i=A[n.value];return i?{...n,name:r(`permissionModes.${i}.name`),description:r(`permissionModes.${i}.description`)}:n}),h=p.find((n)=>n.value===o),M=d[o]??a,I=(n)=>{if(n===o)return;y(l,c?c(s.configId,n):f.setConfig(u,s.configId,n))};return t(ai,{value:o,warning:o==="agent-full-access",currentName:h?.name??o,icon:t(M,{className:"size-3.5 shrink-0"}),header:r("permissionModes.heading"),disabled:g,label:r("composer.switchPermissionMode"),onValueChange:I,options:p.map((n)=>{let i=d[n.value]??a,C=n.value==="agent-full-access";return{value:n.value,label:t("span",{"data-permission-warning":C?"":void 0,children:n.name}),description:n.description?t("span",{className:"whitespace-normal",children:n.description}):void 0,icon:t(i,{className:"size-3.5 shrink-0"})}})})}var tn=O(N);
|
|
2
|
+
export{tn};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{yi}from"./chunk-7f35yy1n.js";import{Wo}from"./chunk-5347w553.js";import{Cr}from"./chunk-wwpv3gc3.js";import{u,S,rt}from"./chunk-pamcdn3d.js";import{Te}from"./chunk-myjx503j.js";import{ci,di,ui,pi,mi}from"./chunk-camsks19.js";import{Qo,Jo}from"./chunk-gmtjagqw.js";import{L}from"./chunk-36qcq9j0.js";import{An}from"./chunk-ryfqa1bc.js";import{Mn}from"./chunk-hy66kdet.js";import{o}from"./chunk-vhdzdzf0.js";import{e}from"./chunk-yz8dtdk0.js";import{Dn,oi}from"./chunk-5tvysr2s.js";import{zn}from"./chunk-3qabfreh.js";import{r,xi,W,un}from"./chunk-fk71dmx0.js";import{rn}from"./chunk-5t4egv96.js";import{Ve,cn}from"./chunk-zhxjp4tt.js";import{pn,gn}from"./chunk-v12aj1ee.js";import{bi}from"./chunk-440eq9v5.js";import{ln}from"./chunk-mb9h6s08.js";import{ni}from"./chunk-esrm0762.js";import{an}from"./chunk-z1j2c9r4.js";import{sn}from"./chunk-mh566s9g.js";import{ri}from"./chunk-1cm0r042.js";import{li}from"./chunk-abp8zh77.js";import{on}from"./chunk-v8c2tsnr.js";import{hasFuzzyFileSearch as Kt}from"@nyssance/codex-acp-v2/client";import{useCallback as T,useEffect as jt,useLayoutEffect as nt,useMemo as st,useRef as k,useState as M}from"react";import{jsx as p,jsxs as R}from"react/jsx-runtime";var qt=["image/png","image/jpeg","image/webp","image/gif"],pt=[];async function Gt(n){let w=await(await fetch(n.url)).blob();return new Promise((I,F)=>{let E=new FileReader;E.onerror=()=>F(E.error),E.onload=()=>{let G=E.result;I(G.slice(G.indexOf(",")+1))},E.readAsDataURL(w)})}function Xt({session:n,onSubmit:w,onShellCommand:I,onHandOff:F,modelSelector:E,modelMenu:G,inputHeader:mt,actions:Mt,leadingTools:Rt,agentControls:Q=!0,placeholder:Et,children:Dt,attachmentPolicy:Nt,predictions:kt=!0,disabled:St=!1,preparing:dt=!1,allowPendingInput:Ft=!1}){let{host:O,client:_}=e(),{t:g}=O,H=T((t)=>{if(O.reportError)O.reportError(t);else console.error(t)},[O]),[ut,K]=M(()=>({text:r.get(n.id)?.text??"",revision:0})),{text:v}=ut,[C,Ot]=M(()=>r.get(n.id)?.attachments??pt),[y,Y]=M(()=>r.get(n.id)?.mentions??[]),[m,U]=M(()=>r.get(n.id)?.apps??[]),[ft,j]=M(()=>(r.get(n.id)?.apps?.length??0)>0||L(v,n.commands.map((t)=>t.name)).length>0),z=k(void 0),B=k(void 0);nt(()=>{if(m.length>0)j(!0)},[m.length]);let ot=C.some((t)=>Ve(t)&&t.pastedText.status!=="ready"),[D,ht]=M(!1),[V,_t]=M(!1),[it,Lt]=M(!1),at=k(null),f=k(null),gt=k(null),c=k(ut),P=T((t)=>{gt.current?.(),c.current={text:t,revision:c.current.revision+1},K(c.current)},[]),xt=T((t)=>{let i=f.current;if(i?.insertApplication){i.insertApplication(t);return}let a=c.current.text,d=i?.getTextarea()?.selectionStart??a.length;B.current={text:a,apps:[]},z.current=d+1,j(!0),P(a),U((l)=>l.some((h)=>h.id===t.id)?l:[...l,{...t,offset:d}])},[P]),Wt=T((t)=>{let i=f.current;if(i?.insertInvocation){i.insertInvocation(t);return}let a=c.current.text,d=i?.getTextarea(),l=d?.selectionStart??a.length,h=d?.selectionEnd??l,lt=`${a.slice(0,l)}${t} ${a.slice(h)}`;B.current={text:a,apps:[]},z.current=l+t.length+1,P(lt),j(!0)},[P]),yt=T(()=>(f.current?.focus(),f.current?.getTextarea()??null),[]),$t=ri(n,P,U,m.length>0||y.length>0||C.length>0),bt=st(()=>({read:()=>{let i=f.current?.getTextarea(),a=i===null||i===void 0?[c.current.text.length,c.current.text.length]:[i.selectionStart,i.selectionEnd];return{target:n.id,...c.current,selection:a}},compareAndSet(i,a,d){if(f.current?.isComposing())return null;if(i.target!==n.id||i.revision!==c.current.revision)return null;c.current={text:a,revision:c.current.revision+1},K(c.current);let l=f.current?.getTextarea();if(l!==null&&l!==void 0)l.value=a,l.setSelectionRange(d[0],d[1]);return{target:n.id,...c.current,selection:d}}}),[n.id]),q=k(null),vt=T((t)=>(q.current=t,()=>{if(q.current===t)q.current=null}),[]),X=n.state!=="idle",x=I!==void 0&&m.length===0&&v.startsWith("!"),J=(ft||m.length>0)&&!x,b=!St&&!dt&&n.attached&&!n.restoring&&!n.readOnly,N=!n.readOnly&&(Ft||b),Z=sn(n,b&&!D&&!V&&!ot&&!it,v.length>0||C.length>0||y.length>0||m.length>0,kt&&!x),Pt=Z.invalidate;nt(()=>{r.set(n.id,{text:v,attachments:C,mentions:y,...m.length>0?{apps:m}:{},modelId:r.get(n.id)?.modelId??null})},[n.id,v,C,y,m]),nt(()=>xi(n.id,Ot),[n.id]),nt(()=>un(n.id,(t)=>{if(!N||D)throw Error("The composer cannot take text now; try again later");if(v.length||C.length||y.length||m.length)throw Error("The composer already has a draft; send or clear it first");P(t)}),[n.id,N,D,v,C,y,m,P]);let It=o((t)=>Kt(t.agent)),Ut=st(()=>It&&b?async(t)=>rn((await _.fuzzyFileSearch({query:t,roots:[n.cwd],cancellationToken:null})).files):void 0,[_,It,b,n.cwd]),ct=T((t)=>{Y((i)=>i.includes(t)?i:[...i,t])},[]);jt(()=>{f.current?.focus()},[]);let At=T(async({text:t,files:i})=>{let a=I!==void 0&&m.length===0&&t.startsWith("!")?t.slice(1):null;if(a!==null){if(a.trim().length===0)return;if(i.length||y.length||m.length)throw Error("Shell commands cannot include file references or attachments");if(n.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let d=t.trim();if(d.length===0&&i.length===0&&y.length===0&&m.length===0)return;let l=q.current;ht(!0);let h=r.get(n.id),lt=c.current.revision,tt=null;try{let A=m.map((s)=>({type:"resource_link",name:s.name,uri:`app://${s.id}`}));for(let s of y){let et={kind:"file",absPath:s};A.push({type:"resource_link",uri:pn(et),name:gn(et)})}let Ct=Cr(d,m);if(Ct.length>0)A.push({type:"text",text:Ct});for(let s of i)if(Ve(s)){if(s.pastedText.status!=="ready")throw Error("Text attachment is not ready");A.push({type:"resource_link",uri:s.url,name:s.filename??"pasted-text.txt"})}else A.push({type:"image",data:await Gt(s),mimeType:s.mediaType});if(c.current.revision===lt&&r.get(n.id)===h)c.current={text:"",revision:c.current.revision+1},tt=c.current.revision,K(c.current),Y([]),U([]),z.current=void 0,B.current=void 0,W(n.id,()=>pt),r.set(n.id,{text:"",attachments:pt,mentions:[],apps:[],modelId:h?.modelId??null}),f.current?.resetHeight();if(a!==null&&I)await I(a);else if(w)if(l===null)await w(A);else await w(A,(s)=>{if(l.signal.aborted||q.current!==l)return;l.accept(s),F?.(n.id,s)});else if(l===null)await _.prompt(n.id,A);else{let s=await _.prompt(n.id,A);l.accept(s)}Pt();for(let s of h?.attachments??[])if(s.url.startsWith("blob:")&&!r.get(n.id)?.attachments.some((et)=>et.id===s.id))URL.revokeObjectURL(s.url)}catch(A){if(h&&tt!==null&&c.current.revision===tt&&r.get(n.id)?.attachments.length===0&&r.get(n.id)?.mentions.length===0&&!r.get(n.id)?.apps?.length)c.current={text:h.text,revision:tt+1},K(c.current),Y(h.mentions),U(h.apps??[]),r.set(n.id,h),W(n.id,()=>h.attachments);throw A}finally{ht(!1),f.current?.focus()}},[_,n.id,n.state,y,m,w,I,F,Pt]),zt=()=>{_.cancel(n.id).catch(H)},Bt=T((t)=>{let i=t.code==="max_total_size"?Object.assign(Error(g("composer.imageTooLargeTitle")),{description:g("composer.imageTooLargeDescription",{mb:Te})}):Object.assign(Error(g("composer.unsupportedAttachmentTitle")),{description:g("composer.unsupportedAttachmentDescription")});H(i)},[H,g]),Ht=st(()=>({session:n,ready:b,inputReady:N,sending:D,textareaRef:f,draft:bt,interruptRef:gt,observeReceipts:vt,addMention:ct,setAdding:_t,shellMode:x,handsFree:!x&&(w===void 0||F!==void 0)}),[n,b,N,D,bt,vt,ct,w,F,x]),Tt=O.writeTextAttachment,wt={className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,onKeyDown:$t,bashMode:I!==void 0,disabled:!N,"aria-label":g("composer.placeholder"),placeholder:x?"! command":Z.text||Et||(X?g("composer.steerPlaceholder"):g("composer.placeholder")),onPasteCapture:(t)=>{if(!J&&!x&&!t.currentTarget.disabled&&![...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/"))){let i=rt(t.clipboardData);if(i?.apps.length){t.preventDefault();let a=t.currentTarget,d=u(i),l=S([...a.value.slice(0,a.selectionStart).split(""),...d,...a.value.slice(a.selectionEnd).split("")]);B.current={text:v,apps:[]},z.current=a.selectionStart+d.length,j(!0),U(l.apps),P(l.text);return}}if(Tt)cn(t,n.id,g("composer.pastedTextFilename"),Tt)}};return p(zn,{value:Ht,children:p("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:R("div",{className:"relative",children:[mt&&p("div",{"data-chat-input-header":!0,className:"bg-sidebar dark:bg-foreground/3 relative top-1 z-0 mx-[13px] -mb-[18px] flex min-w-0 items-center gap-2 overflow-hidden rounded-t-2xl px-1.5 pt-1.5 pb-[27px]",children:mt}),p(yi,{attachmentPolicy:Nt,value:v,revision:c.current.revision,onValueChange:P,onSubmittedClear:()=>{c.current={text:"",revision:c.current.revision+1},K(c.current)},attachments:C,onAttachmentsChange:(t)=>W(n.id,()=>t),children:R("div",{ref:at,className:"relative",children:[Q&&!it&&p(Wo,{bashMode:I!==void 0,handleRef:f,commands:n.commands,renderSlashMenu:(t)=>p(Dn,{anchorRef:at,commands:n.commands,query:t.query,includeAttachment:!1,disabled:!N,agentDisabled:!b||x,open:!0,onClose:t.close,onCommand:(i)=>t.replaceQuery(()=>Wt(i.startsWith("$")?i:`/${i}`)),onApp:(i)=>t.replaceQuery(()=>xt(i)),focusInput:yt}),searchFiles:Ut,onMention:ct,onSearchError:H,emptyLabel:g("composer.noCommands"),fileStatusLabels:{loading:g("composer.searchingFiles"),empty:g("composer.noMatchingFiles")}},J?"inline":"textarea"),R(ci,{"data-shell-mode":x||void 0,bashMode:I!==void 0,globalDrop:!0,multiple:!0,accept:qt.join(","),onError:Bt,onSubmit:At,onSubmitAsync:At,onSubmitError:H,canSubmit:()=>b&&!D&&!V&&!ot&&(!x||!X&&v.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[Dt,R(ui,{className:"px-3 pt-3 pb-0 empty:hidden",children:[V&&p("span",{role:"status",className:"text-muted-foreground text-xs",children:g("composer.addingFiles")}),p(bi,{mentions:y,onRemove:(t)=>Y((i)=>i.filter((a)=>a!==t))}),p(Jo,{children:(t)=>Ve(t)?p(ni,{data:t,sessionId:n.id}):p(Qo,{data:t,t:g})})]}),R(di,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(t)=>{if(!Z.text||f.current?.isComposing()||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||t.target!==f.current?.getTextarea())return;if(t.key==="Tab")t.preventDefault(),t.stopPropagation(),P(Z.text)},children:[x&&p("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),J?p(An,{...wt,skillIcon:O.skillIcon,skillNames:n.commands.map((t)=>t.name),applications:m,onApplicationsChange:U,initialCaret:z.current,initialUndo:B.current}):p(Mn,{...wt,autoFocus:ft&&x})]}),p(pi,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:R("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[R("div",{className:"flex min-w-0 items-center gap-[5px]",children:[p(oi,{anchorRef:at,commands:n.commands,disabled:!N,agentDisabled:!b||x,agentControls:Q,open:it,onOpenChange:Lt,focusInput:yt,onCommand:(t)=>{let i=c.current.text,a=i.length===0||i.endsWith(`
|
|
1
|
+
import{wi}from"./chunk-5ygdb72w.js";import{oi}from"./chunk-fd72zzqm.js";import{gr}from"./chunk-9h77fcpn.js";import{u,C,lt}from"./chunk-gk0tq3n9.js";import{Me}from"./chunk-gjfhvaxn.js";import{si,li,ci,di,ui}from"./chunk-5wsyenq9.js";import{hi,vi}from"./chunk-2ptyqcf3.js";import{L}from"./chunk-pvd09dx5.js";import{Ln}from"./chunk-5m45z6qm.js";import{En}from"./chunk-2ss8m0ja.js";import{o}from"./chunk-xqwbn2ph.js";import{e}from"./chunk-pwcw4zp2.js";import{In,Wo}from"./chunk-3karja82.js";import{Tn}from"./chunk-hmet2d96.js";import{r,qo,W,cn}from"./chunk-3174p320.js";import{Xt}from"./chunk-n13y99dj.js";import{Be,sn}from"./chunk-jz6zecb7.js";import{on,an}from"./chunk-nxj8m5bm.js";import{jo}from"./chunk-41v0g6sw.js";import{nn}from"./chunk-6xds0dkq.js";import{$o}from"./chunk-hwvr7b0j.js";import{tn}from"./chunk-h3xn4d48.js";import{en}from"./chunk-q2z9w661.js";import{Vo}from"./chunk-sg681jnt.js";import{zo}from"./chunk-bnpwhf5c.js";import{un}from"./chunk-0yqb54zg.js";import{hasFuzzyFileSearch as Kt}from"@nyssance/codex-acp-v2/client";import{useCallback as T,useEffect as jt,useLayoutEffect as rt,useMemo as st,useRef as S,useState as R}from"react";import{jsx as p,jsxs as E}from"react/jsx-runtime";var qt=["image/png","image/jpeg","image/webp","image/gif"],pt=[];async function Gt(n){let w=await(await fetch(n.url)).blob();return new Promise((I,F)=>{let D=new FileReader;D.onerror=()=>F(D.error),D.onload=()=>{let G=D.result;I(G.slice(G.indexOf(",")+1))},D.readAsDataURL(w)})}function Yt({session:n,onSubmit:w,onShellCommand:I,onHandOff:F,modelSelector:D,modelMenu:G,inputHeader:mt,actions:Mt,leadingTools:Rt,agentControls:Q=!0,placeholder:Et,children:Dt,attachmentPolicy:Nt,predictions:kt=!0,disabled:St=!1,preparing:dt=!1,allowPendingInput:Ft=!1}){let{host:O,client:_}=e(),{t:g}=O,H=T((t)=>{if(O.reportError)O.reportError(t);else console.error(t)},[O]),[ut,K]=R(()=>({text:r.get(n.id)?.text??"",revision:0})),{text:v}=ut,[M,Ot]=R(()=>r.get(n.id)?.attachments??pt),[y,Y]=R(()=>r.get(n.id)?.mentions??[]),[m,U]=R(()=>r.get(n.id)?.apps??[]),[ft,j]=R(()=>(r.get(n.id)?.apps?.length??0)>0||L(v,n.commands.map((t)=>t.name)).length>0),z=S(void 0),B=S(void 0);rt(()=>{if(m.length>0)j(!0)},[m.length]);let nt=M.some((t)=>Be(t)&&t.pastedText.status!=="ready"),[N,ht]=R(!1),[V,_t]=R(!1),[ot,Lt]=R(!1),it=S(null),f=S(null),gt=S(null),c=S(ut),P=T((t)=>{gt.current?.(),c.current={text:t,revision:c.current.revision+1},K(c.current)},[]),xt=T((t)=>{let i=f.current;if(i?.insertApplication){i.insertApplication(t);return}let a=c.current.text,d=i?.getTextarea()?.selectionStart??a.length;B.current={text:a,apps:[]},z.current=d+1,j(!0),P(a),U((l)=>l.some((h)=>h.id===t.id)?l:[...l,{...t,offset:d}])},[P]),Wt=T((t)=>{let i=f.current;if(i?.insertInvocation){i.insertInvocation(t);return}let a=c.current.text,d=i?.getTextarea(),l=d?.selectionStart??a.length,h=d?.selectionEnd??l,ct=`${a.slice(0,l)}${t} ${a.slice(h)}`;B.current={text:a,apps:[]},z.current=l+t.length+1,P(ct),j(!0)},[P]),yt=T(()=>(f.current?.focus(),f.current?.getTextarea()??null),[]),$t=Vo(n,P,U,m.length>0||y.length>0||M.length>0),bt=st(()=>({read:()=>{let i=f.current?.getTextarea(),a=i===null||i===void 0?[c.current.text.length,c.current.text.length]:[i.selectionStart,i.selectionEnd];return{target:n.id,...c.current,selection:a}},compareAndSet(i,a,d){if(f.current?.isComposing())return null;if(i.target!==n.id||i.revision!==c.current.revision)return null;c.current={text:a,revision:c.current.revision+1},K(c.current);let l=f.current?.getTextarea();if(l!==null&&l!==void 0)l.value=a,l.setSelectionRange(d[0],d[1]);return{target:n.id,...c.current,selection:d}}}),[n.id]),q=S(null),vt=T((t)=>(q.current=t,()=>{if(q.current===t)q.current=null}),[]),X=n.state!=="idle",x=I!==void 0&&m.length===0&&v.startsWith("!"),J=(ft||m.length>0)&&!x,b=!St&&!dt&&n.attached&&!n.restoring&&!n.readOnly,k=!n.readOnly&&(Ft||b),Z=en(n,b&&!N&&!V&&!nt&&!ot,v.length>0||M.length>0||y.length>0||m.length>0,kt&&!x),Pt=Z.invalidate;rt(()=>{r.set(n.id,{text:v,attachments:M,mentions:y,...m.length>0?{apps:m}:{},modelId:r.get(n.id)?.modelId??null})},[n.id,v,M,y,m]),rt(()=>qo(n.id,Ot),[n.id]),rt(()=>cn(n.id,(t)=>{if(!k||N)throw Error("The composer cannot take text now; try again later");if(v.length||M.length||y.length||m.length)throw Error("The composer already has a draft; send or clear it first");P(t)}),[n.id,k,N,v,M,y,m,P]);let It=o((t)=>Kt(t.agent)),Ut=st(()=>It&&b?async(t)=>Xt((await _.fuzzyFileSearch({query:t,roots:[n.cwd],cancellationToken:null})).files):void 0,[_,It,b,n.cwd]),at=T((t)=>{Y((i)=>i.includes(t)?i:[...i,t])},[]);jt(()=>{f.current?.focus()},[]);let At=T(async({text:t,files:i})=>{let a=I!==void 0&&m.length===0&&t.startsWith("!")?t.slice(1):null;if(a!==null){if(a.trim().length===0)return;if(i.length||y.length||m.length)throw Error("Shell commands cannot include file references or attachments");if(n.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let d=t.trim();if(d.length===0&&i.length===0&&y.length===0&&m.length===0)return;let l=q.current;ht(!0);let h=r.get(n.id),ct=c.current.revision,tt=null;try{let A=m.map((s)=>({type:"resource_link",name:s.name,uri:`app://${s.id}`}));for(let s of y){let et={kind:"file",absPath:s};A.push({type:"resource_link",uri:on(et),name:an(et)})}let Ct=gr(d,m);if(Ct.length>0)A.push({type:"text",text:Ct});for(let s of i)if(Be(s)){if(s.pastedText.status!=="ready")throw Error("Text attachment is not ready");A.push({type:"resource_link",uri:s.url,name:s.filename??"pasted-text.txt"})}else A.push({type:"image",data:await Gt(s),mimeType:s.mediaType});if(c.current.revision===ct&&r.get(n.id)===h)c.current={text:"",revision:c.current.revision+1},tt=c.current.revision,K(c.current),Y([]),U([]),z.current=void 0,B.current=void 0,W(n.id,()=>pt),r.set(n.id,{text:"",attachments:pt,mentions:[],apps:[],modelId:h?.modelId??null}),f.current?.resetHeight();if(a!==null&&I)await I(a);else if(w)if(l===null)await w(A);else await w(A,(s)=>{if(l.signal.aborted||q.current!==l)return;l.accept(s),F?.(n.id,s)});else if(l===null)await _.prompt(n.id,A);else{let s=await _.prompt(n.id,A);l.accept(s)}Pt();for(let s of h?.attachments??[])if(s.url.startsWith("blob:")&&!r.get(n.id)?.attachments.some((et)=>et.id===s.id))URL.revokeObjectURL(s.url)}catch(A){if(h&&tt!==null&&c.current.revision===tt&&r.get(n.id)?.attachments.length===0&&r.get(n.id)?.mentions.length===0&&!r.get(n.id)?.apps?.length)c.current={text:h.text,revision:tt+1},K(c.current),Y(h.mentions),U(h.apps??[]),r.set(n.id,h),W(n.id,()=>h.attachments);throw A}finally{ht(!1),f.current?.focus()}},[_,n.id,n.state,y,m,w,I,F,Pt]),zt=()=>{_.cancel(n.id).catch(H)},Bt=T((t)=>{let i=t.code==="max_total_size"?Object.assign(Error(g("composer.imageTooLargeTitle")),{description:g("composer.imageTooLargeDescription",{mb:Me})}):Object.assign(Error(g("composer.unsupportedAttachmentTitle")),{description:g("composer.unsupportedAttachmentDescription")});H(i)},[H,g]),Ht=st(()=>({session:n,ready:b,inputReady:k,sending:N,textareaRef:f,draft:bt,interruptRef:gt,observeReceipts:vt,addMention:at,setAdding:_t,shellMode:x,handsFree:!x&&(w===void 0||F!==void 0)}),[n,b,k,N,bt,vt,at,w,F,x]),Tt=O.writeTextAttachment,wt={className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,onKeyDown:$t,bashMode:I!==void 0,disabled:!k,"aria-label":g("composer.placeholder"),placeholder:x?"! command":Z.text||Et||(X?g("composer.steerPlaceholder"):g("composer.placeholder")),onPasteCapture:(t)=>{if(!J&&!x&&!t.currentTarget.disabled&&![...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/"))){let i=lt(t.clipboardData);if(i?.apps.length){t.preventDefault();let a=t.currentTarget,d=u(i),l=C([...a.value.slice(0,a.selectionStart).split(""),...d,...a.value.slice(a.selectionEnd).split("")]);B.current={text:v,apps:[]},z.current=a.selectionStart+d.length,j(!0),U(l.apps),P(l.text);return}}if(Tt)sn(t,n.id,g("composer.pastedTextFilename"),Tt)}};return p(Tn,{value:Ht,children:p("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:E("div",{className:"relative",children:[mt&&p("div",{"data-chat-input-header":!0,className:"bg-sidebar dark:bg-foreground/3 relative top-1 z-0 mx-[13px] -mb-[18px] flex min-w-0 items-center gap-2 overflow-hidden rounded-t-2xl px-1.5 pt-1.5 pb-[27px]",children:mt}),p(wi,{attachmentPolicy:Nt,value:v,revision:c.current.revision,onValueChange:P,onSubmittedClear:()=>{c.current={text:"",revision:c.current.revision+1},K(c.current)},attachments:M,onAttachmentsChange:(t)=>W(n.id,()=>t),children:E("div",{ref:it,className:"relative",children:[Q&&!ot&&p(oi,{bashMode:I!==void 0,handleRef:f,commands:n.commands,renderSlashMenu:(t)=>p(In,{anchorRef:it,commands:n.commands,query:t.query,includeAttachment:!1,disabled:!k,agentDisabled:!b||x,open:!0,onClose:t.close,onCommand:(i)=>t.replaceQuery(()=>Wt(i.startsWith("$")?i:`/${i}`)),onApp:(i)=>t.replaceQuery(()=>xt(i)),focusInput:yt}),searchFiles:Ut,onMention:at,onSearchError:H,emptyLabel:g("composer.noCommands"),fileStatusLabels:{loading:g("composer.searchingFiles"),empty:g("composer.noMatchingFiles")}},J?"inline":"textarea"),E(si,{"data-shell-mode":x||void 0,bashMode:I!==void 0,globalDrop:!0,multiple:!0,accept:qt.join(","),onError:Bt,onSubmit:At,onSubmitAsync:At,onSubmitError:H,canSubmit:()=>b&&!N&&!V&&!nt&&(!x||!X&&v.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[Dt,E(ci,{className:"px-3 pt-3 pb-0 empty:hidden",children:[V&&p("span",{role:"status",className:"text-muted-foreground text-xs",children:g("composer.addingFiles")}),p(jo,{mentions:y,onRemove:(t)=>Y((i)=>i.filter((a)=>a!==t))}),p(vi,{children:(t)=>Be(t)?p($o,{data:t,sessionId:n.id}):p(hi,{data:t,t:g})})]}),E(li,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(t)=>{if(!Z.text||f.current?.isComposing()||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||t.target!==f.current?.getTextarea())return;if(t.key==="Tab")t.preventDefault(),t.stopPropagation(),P(Z.text)},children:[x&&p("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),J?p(Ln,{...wt,skillIcon:O.skillIcon,skillNames:n.commands.map((t)=>t.name),applications:m,onApplicationsChange:U,initialCaret:z.current,initialUndo:B.current}):p(En,{...wt,autoFocus:ft&&x})]}),p(di,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:E("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[E("div",{className:"flex min-w-0 items-center gap-[5px]",children:[p(Wo,{anchorRef:it,commands:n.commands,disabled:!k,agentDisabled:!b||x,agentControls:Q,open:ot,onOpenChange:Lt,focusInput:yt,onCommand:(t)=>{let i=c.current.text,a=i.length===0||i.endsWith(`
|
|
2
2
|
`)?i:`${i}
|
|
3
|
-
`,d=t.startsWith("$")?t:`/${t}`,l=`${a}${d} `;if(!J)B.current={text:i,apps:[]},z.current=l.length,j(!0);P(l),requestAnimationFrame(()=>{let h=f.current?.getTextarea();h?.focus(),h?.setSelectionRange(l.length,l.length)})},onApp:xt}),Rt,Q&&p(
|
|
4
|
-
export{
|
|
3
|
+
`,d=t.startsWith("$")?t:`/${t}`,l=`${a}${d} `;if(!J)B.current={text:i,apps:[]},z.current=l.length,j(!0);P(l),requestAnimationFrame(()=>{let h=f.current?.getTextarea();h?.focus(),h?.setSelectionRange(l.length,l.length)})},onApp:xt}),Rt,Q&&p(tn,{sessionId:n.id,options:n.configOptions,disabled:!b})]}),E(ui,{className:"w-full min-w-0 items-center justify-end gap-1",children:[Q&&p(un,{session:n}),D??p(nn,{...G,sessionId:n.id,options:n.configOptions,disabled:!b}),Mt,p(zo,{active:X,sending:N||dt||V,ready:b&&!nt&&(!x||!X&&v.slice(1).trim().length>0),hasMentions:y.length>0||m.length>0,onStop:zt})]})]})})]})]})})]})})})}
|
|
4
|
+
export{Yt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{o}from"./chunk-xqwbn2ph.js";import{gt}from"./chunk-7hwg9r4y.js";import{e,y}from"./chunk-pwcw4zp2.js";import{Nn}from"./chunk-7cv512vy.js";import{Loader2Icon as x}from"lucide-react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as c,EmptyDescription as l,EmptyHeader as d,EmptyTitle as f}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as r,jsxs as i}from"react/jsx-runtime";function dn({session:t,timeline:s}){let{host:m,client:a}=e(),{t:n}=m,u=o((v)=>v.historyPages[t.id]?.cursor!=null),E=Nn(t,s?.turnWork),h=()=>y(m,a.open(t.id,t.cwd)),p=r(gt,{...s,session:t,client:a,host:m,turnWork:E});if(t.restoring)return t.items.length===0?i("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[r(x,{className:"size-4 animate-spin","aria-hidden":"true"}),n("conversation.restoring")]}):p;if(!t.attached&&t.items.length===0)return i(c,{className:"flex-1",children:[i(d,{children:[r(f,{children:n("conversation.reopen")}),r(l,{children:n("conversation.detached")})]}),r(g,{onClick:h,children:n("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!u)return r(c,{className:"flex-1",children:i(d,{children:[r(f,{className:"text-[28px] font-normal",children:n("conversation.welcomeTitle")}),r(l,{className:"truncate font-mono",children:t.cwd})]})});return p}
|
|
2
|
+
export{dn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
async function
|
|
2
|
-
export{
|
|
1
|
+
async function gi(g,u){try{let a=await(await fetch(g)).blob(),s=u??a.type??"";if(!s.startsWith("image/"))return new Promise((e)=>{let t=new FileReader;t.onloadend=()=>e(t.result),t.onerror=()=>e(null),t.readAsDataURL(a)});let w=s.includes("svg"),n,r,o;if(w){let e=new Image,t=URL.createObjectURL(a);e.src=t;try{await new Promise((h,f)=>{e.onload=()=>h(),e.onerror=()=>f(Error("svg load failed"))})}finally{URL.revokeObjectURL(t)}r=e.naturalWidth||1024,o=e.naturalHeight||1024,n=e}else{let e=await createImageBitmap(a);r=e.width,o=e.height,n=e}let i=Math.min(1,2000/Math.max(r,o)),c=Math.round(r*i),l=Math.round(o*i),d=new OffscreenCanvas(c,l),m=d.getContext("2d");if(!m)throw Error("image-encode: OffscreenCanvas 2d context 不可用");if(m.drawImage(n,0,0,c,l),n instanceof ImageBitmap)n.close();let b=await d.convertToBlob({type:"image/webp",quality:0.85});return new Promise((e)=>{let t=new FileReader;t.onloadend=()=>e(t.result),t.onerror=()=>e(null),t.readAsDataURL(b)})}catch{return null}}
|
|
2
|
+
export{gi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s,n}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{s,n}from"./chunk-3t5cksae.js";import{latestAssistantReply as v}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useState as g}from"react";function Nt(e,o){let a=s(),c=n((t)=>t.connection),r=n((t)=>Boolean(t.sessions[e]?.attached)&&!t.sessions[e]?.restoring),u=n((t)=>v(t.sessions[e]?.items)),f=n((t)=>Boolean(t.runStates[e]?.reusableDraft)),[p,y]=g();return S(()=>{if(c!=="ready"||f||r)return;let t=!1,l,i=0,m=async()=>{try{let d=await a.activityReply(e);if(i=0,!t)y(d??void 0)}catch{i++}finally{if(!t&&(o==="running"||i>0&&i<3))l=setTimeout(()=>void m(),5000)}};return m(),()=>{t=!0,clearTimeout(l)}},[a,e,c,f,r,o]),r?u:p??u}
|
|
2
|
+
export{Nt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{h}from"./chunk-5ygdb72w.js";import{e}from"./chunk-pwcw4zp2.js";import{it}from"./chunk-jz6zecb7.js";import{FileText as l,RotateCcw as x,X as d}from"lucide-react";import{Button as r}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as t,jsxs as i}from"react/jsx-runtime";function $o({data:s,sessionId:m}){let{host:a}=e(),{t:o}=a,p=h(),{text:c,status:n}=s.pastedText;return i("div",{className:"bg-muted flex max-w-64 min-w-0 items-center gap-1 rounded-lg px-2 py-1",children:[i(r,{type:"button",variant:"ghost",disabled:n!=="ready",onClick:()=>a.openLink(s.url),className:"h-auto min-w-0 flex-1 shrink gap-2 overflow-hidden px-0 py-1",children:[t(l,{className:"size-4 shrink-0"}),i("span",{className:"min-w-0 flex-1 text-start",children:[t("span",{className:"block truncate text-xs",children:s.filename}),t("span",{className:"text-muted-foreground block text-xs",children:n==="ready"?o("composer.pastedTextCharacters",{count:c.length}):o(n==="pending"?"composer.pastedTextPending":"composer.pastedTextError")})]})]}),n==="error"&&a.writeTextAttachment&&t(r,{type:"button",variant:"ghost",size:"icon-xs","aria-label":o("composer.pastedTextRetry"),onClick:()=>it(m,s,a.writeTextAttachment),children:t(x,{className:"size-3"})}),t(r,{type:"button",variant:"ghost",size:"icon-xs","aria-label":o("composer.pastedTextRemove"),onClick:()=>p.remove(s.id),children:t(d,{className:"size-3"})})]})}
|
|
2
|
+
export{$o};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Pi}from"./chunk-yy1pm240.js";import{isText as s,terminalOf as i}from"@nyssance/codex-acp-v2/client";function n(t){if(typeof t==="string")return[t];if(Array.isArray(t))return t.flatMap(n);if(typeof t!=="object"||t===null)return[];return Object.entries(t).flatMap(([r,e])=>r==="data"||r==="blob"?[]:n(e))}function u(t){return s(t)?[t.text]:[]}function p(t,r){switch(t.kind){case"user":case"assistant":case"thought":return t.content.flatMap(u);case"tool":return[t.title??"",...n(t.rawInput),...n(i(t,r)?.output||t.rawOutput),...n(t.content)];case"plan":return n(t.plan);case"compaction":return[t.error??""]}}function Vn(t,r,e={}){let o=r.trim();if(o.length===0)return[];return Pi(t.map((a)=>({turnKey:a.key,segments:a.items.flatMap((c)=>p(c,e))})),o)}
|
|
2
|
+
export{Vn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{mo}from"./chunk-rvmbvv03.js";import{jsx as o}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{mo}from"./chunk-rvmbvv03.js";import{jsx as o}from"react/jsx-runtime";function It(){return o("svg",{"aria-hidden":"true",focusable:"false",width:0,height:0,className:"pointer-events-none absolute",dangerouslySetInnerHTML:{__html:mo}})}var n=["agent-mode","application-window","audiowave","bar-chart","block-stack-skills","book-open","briefcase","bubble-on-bubble","checkmark-circle","code","compass","components-window","credit-card","csv","document","docx","exclamationmark-bubble","figma-document","figure-text-document","file-video","flash","folder","game-controller","globe","heart","heart-bubble","heart-text-clipboard","hierarchy","jpg-document","kettlebell","ladybug","lightbulb","lightning-bolt","magnifingglass","map","mappin","microphone","ms-word-document","newspaper","paperclip","pdf-document","pencil","phone","photo","png-document","pointer","ppt-document","pptx","puzzle","radar","shield","shopping-bag","skill-creator","skill-installer","star-app","star-bookmark","template-creator","terminal","text-bubble-figure","text-document","text-document-lock","text-note-pointer","triangle-vercel","xls-document-excel","xlsx"];function po(t){let e=0;for(let r of t)e=(e*31+r.charCodeAt(0))%997;return`#plugin-${n[e%n.length]}`}function F({name:t,className:e="size-6 shrink-0"}){return o("svg",{"aria-hidden":"true",focusable:"false",width:36,height:36,viewBox:"0 0 36 36",className:e,children:o("use",{href:po(t)})})}
|
|
2
|
+
export{It,po,F};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function ke(){if(typeof navigator>"u")return!1;let a=navigator.userAgentData?.platform;return/mac/i.test(a??navigator.platform)}function
|
|
2
|
-
export{ke,
|
|
1
|
+
function ke(){if(typeof navigator>"u")return!1;let a=navigator.userAgentData?.platform;return/mac/i.test(a??navigator.platform)}function Co(a){if(a.shiftKey||a.altKey)return!1;return ke()?a.metaKey&&!a.ctrlKey:a.ctrlKey&&!a.metaKey}
|
|
2
|
+
export{ke,Co};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Te}from"./chunk-7nehhgej.js";import{r,W,ln}from"./chunk-3174p320.js";var Ko=5000;function Be(t){return"pastedText"in t}function it(t,e,p){let n=(a,o)=>{for(let[i,x]of r){if(!x.attachments.some((s)=>s.id===e.id))continue;W(i,(s)=>s.map((d)=>d.id===e.id?{...e,url:o===void 0?"":Te(o),pastedText:{text:e.pastedText.text,status:a}}:d))}};if(!r.get(t)?.attachments.some((a)=>a.id===e.id))return;n("pending"),ln(e.id,p("pasted-text.txt",e.pastedText.text).then((a)=>n("ready",a)).catch(()=>n("error")))}function sn(t,e,p,n){if(t.defaultPrevented||t.currentTarget.disabled)return;if([...t.clipboardData.items].some((i)=>i.kind==="file"&&i.type.startsWith("image/")))return;let a=t.clipboardData.getData("text/plain");if(a.length<Ko)return;t.preventDefault(),t.stopPropagation();let o={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:p,url:"",pastedText:{text:a,status:"pending"}};W(e,(i)=>[...i,o]),it(e,o,n)}
|
|
2
|
+
export{Ko,Be,it,sn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
export{
|
|
1
|
+
var S={ar:{},de:{},en:{defaultFavorites:"Favorites",addTo:"Favorite",addToNamedCollection:"Save to {{name}}",collectionName:"Collection name",clearCollection:"Clear collection",deleteCollection:"Delete collection",confirmCollectionChange:"Remove the records in “{{name}}”? Conversation content and records in other collections will be kept.",favorite:"Add to default collection",removeFromAll:"Remove from all collections",newCollection:"Create Collection",defaultName:"New collection",closeChat:"Close chat",remove:"Remove",addToCollection:"Favorite",moveTo:"Move to",removeFromGroup:"Remove from group",openSideBySide:"Open side by side",newChat:"New chat",defaultChatTitle:"New chat",title:"Collections",confirm:"Confirm",cancel:"Cancel",emoji:"Emoji",more:"More actions for {{name}}",unavailable:"Chat unavailable",retry:"Retry",rename:"Rename"},es:{},fr:{},hi:{},id:{},it:{},ja:{},ko:{},"pt-BR":{},ru:{},"zh-CN":{defaultFavorites:"收藏夹",addTo:"收藏",addToNamedCollection:"收藏到{{name}}",collectionName:"集合名称",clearCollection:"清空集合",deleteCollection:"删除集合",confirmCollectionChange:"移除“{{name}}”中的记录?对话内容和其他集合中的记录将保留。",favorite:"添加到默认集合",removeFromAll:"从所有集合移除",newCollection:"创建集合",defaultName:"新集合",closeChat:"关闭对话",remove:"移除",addToCollection:"收藏",moveTo:"移动到",removeFromGroup:"移出分组",openSideBySide:"并排打开",newChat:"新对话",defaultChatTitle:"新对话",title:"收藏",confirm:"确认",cancel:"取消",emoji:"表情",more:"{{name}}的更多操作",unavailable:"会话不可用",retry:"重试",rename:"重命名"}};
|
|
2
|
+
export{S};
|
|
@@ -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 jt({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 D({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{jt,D};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{D}from"./chunk-kcra1mgf.js";import{Se}from"./chunk-4jy404m1.js";import{T,le}from"./chunk-vctq22tq.js";import{O,te}from"./chunk-p0d6rr6q.js";import{Ie,se}from"./chunk-05eg5p11.js";import{cn as S}from"cn";import{BoxIcon as U,ChevronRightIcon as E,PlusIcon as z,StarIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as L,DropdownMenuContent as j,DropdownMenuGroup as y,DropdownMenuItem as k,DropdownMenuRadioGroup as _,DropdownMenuRadioItem as K,DropdownMenuSeparator as q,DropdownMenuTrigger as J}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Q}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as a}from"react/jsx-runtime";function Ro({sessionId:l,trigger:f,favorite:n=!1,hoverBackground:R=n?"none":void 0,allowRemove:x=!0,submenu:g=!1,className:B,onOpenChange:A}){let{t}=T(),c=se(),H=le(),P=Se(),{collections:s,order:C}=Ie(),i=C.find((o)=>s[o].sessionIds.includes(l)),[F,G]=d(!1),[w,b]=d(!1),[m,h]=d(""),[r,v]=d(!1),I=(o)=>{if(G(o),P(o),A?.(o),!o)b(!1),h("")},p=(o)=>{v(!0),H(o.then(()=>{I(!1)}).finally(()=>v(!1)))};return a(L,{modal:!1,open:F,onOpenChange:(o,M)=>{if(!o&&w&&M.reason==="trigger-hover"){M.cancel();return}I(o)},children:[e(J,{disabled:r,"data-hover-background":R,openOnHover:n||g,"aria-label":t(n&&i!==void 0?"collection.removeFromAll":"collection.addTo"),onMouseDown:(o)=>{if(n)o.preventBaseUIHandler()},onClick:(o)=>{if(!n)return;o.preventBaseUIHandler(),p(c({type:"favorite",sessionId:l}))},render:f??e(N,{variant:"ghost",size:"icon-sm",className:B,"aria-label":t(n&&i!==void 0?"collection.removeFromAll":"collection.addTo"),children:e(u,{className:S(i!==void 0&&"fill-current")})})}),a(j,{className:"w-56 font-normal",side:g?"inline-end":"bottom",align:g?"start":"end",sideOffset:4,children:[e(y,{children:e(_,{value:i??null,children:C.map((o)=>a(K,{value:o,disabled:r||i===o,closeOnClick:!1,onClick:()=>p(c({type:"add",collectionId:o,sessionId:l})),children:[o===O?e(u,{}):s[o].emoji?e("span",{className:"flex size-4 shrink-0 items-center justify-center text-sm","aria-hidden":"true",children:s[o].emoji}):e(U,{}),e("span",{className:"min-w-0 flex-1 truncate",children:te(s[o],t)})]},o))})}),e(q,{}),a(y,{children:[a(k,{disabled:r,closeOnClick:!1,onClick:()=>b(!0),children:[e(z,{}),t("collection.newCollection")]}),x&&i!==void 0&&a(k,{disabled:r,closeOnClick:!1,onClick:()=>p(c({type:"remove",sessionId:l})),children:[e(u,{}),t("collection.removeFromAll")]})]}),w&&a("form",{className:"flex items-center gap-1 px-2 py-1.5",onSubmit:(o)=>{if(o.preventDefault(),o.stopPropagation(),!m.trim()||r)return;p(c({type:"create",id:`collection-${crypto.randomUUID()}`,name:m,sessionId:l}))},children:[e(Q,{autoFocus:!0,"aria-label":t("collection.collectionName"),placeholder:t("collection.collectionName"),value:m,disabled:r,onChange:(o)=>h(o.target.value),onKeyDown:(o)=>o.stopPropagation(),className:"h-7 min-w-0"}),e(N,{size:"xs",type:"submit",disabled:r||!m.trim(),children:t("collection.confirm")})]})]})]})}function ta({sessionId:l,allowRemove:f=!0}){let{t:n}=T();return e(Ro,{sessionId:l,allowRemove:f,submenu:!0,trigger:e(D,{icon:e(u,{}),label:n("collection.addTo"),trailing:e(E,{className:"rtl:rotate-180"})})})}
|
|
2
|
+
export{Ro,ta};
|