@alwith/module-chat 0.6.34 → 0.6.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activity-host.d.ts +2 -0
- package/dist/activity-host.js +1 -1
- package/dist/agent/client.d.ts +2 -0
- package/dist/agent/client.js +1 -1
- package/dist/agent/custom-model-effort.js +1 -1
- package/dist/agent/fork-title.js +1 -1
- package/dist/agent/image-request.js +1 -1
- package/dist/agent/image-tools.d.ts +3 -1
- package/dist/agent/image-tools.js +1 -1
- package/dist/agent/input-config.js +1 -1
- package/dist/agent/input-modes/chat.js +1 -1
- package/dist/agent/input-modes/execution-meta.js +1 -1
- package/dist/agent/input-modes/image-context.js +1 -1
- package/dist/agent/input-modes/image.js +1 -1
- package/dist/agent/input-modes/index.js +1 -1
- package/dist/agent/project-path.js +1 -1
- package/dist/agent/request-error.js +1 -1
- package/dist/agent/session-list-refresh.js +1 -1
- package/dist/app-reference.js +1 -1
- package/dist/application-tools.js +1 -1
- package/dist/approval/choice-elicitation-form.js +1 -1
- package/dist/approval/choice-schema.js +1 -1
- package/dist/approval/permission-options.js +1 -1
- package/dist/approval/permission-view.js +1 -1
- package/dist/approval/schema-elicitation-form.js +1 -1
- package/dist/approval/url-elicitation-card.js +1 -1
- package/dist/{chunk-0a3tr9ws.js → chunk-0sb0c014.js} +2 -2
- package/dist/{chunk-ks22p0wq.js → chunk-0xztk729.js} +2 -2
- package/dist/chunk-18gcnf2a.js +2 -0
- package/dist/{chunk-p216frcj.js → chunk-1a46v4cy.js} +2 -2
- package/dist/chunk-1b3frq9c.js +3 -0
- package/dist/{chunk-nhz4egjh.js → chunk-1vwece23.js} +6 -6
- package/dist/{chunk-wvm6ppb3.js → chunk-20dc4fm0.js} +2 -2
- package/dist/{chunk-45yrj0e1.js → chunk-22nybrkv.js} +5 -5
- package/dist/{chunk-vab1ysnz.js → chunk-23kvszfc.js} +2 -2
- package/dist/chunk-2nq204hz.js +2 -0
- package/dist/{chunk-dcvmc9hn.js → chunk-2nv5ebq1.js} +2 -2
- package/dist/chunk-33fxyn5r.js +2 -0
- package/dist/chunk-359pf448.js +2 -0
- package/dist/{chunk-n8b9yg4q.js → chunk-3knw8e0x.js} +2 -2
- package/dist/{chunk-2eceheqt.js → chunk-3kytka7m.js} +3 -3
- package/dist/{chunk-mq0npf36.js → chunk-3sq2k9ca.js} +2 -2
- package/dist/{chunk-vgea7ggq.js → chunk-3t3n8nfy.js} +2 -2
- package/dist/{chunk-9n8cds8p.js → chunk-3tvq6xr2.js} +2 -2
- package/dist/{chunk-gktjkghg.js → chunk-482segb0.js} +2 -2
- package/dist/{chunk-19jh646d.js → chunk-4chmr87g.js} +2 -2
- package/dist/chunk-4g2412p5.js +2 -0
- package/dist/chunk-4ma6bmcm.js +2 -0
- package/dist/{chunk-103z8myv.js → chunk-54jfqcd1.js} +2 -2
- package/dist/chunk-5mxh7h57.js +2 -0
- package/dist/{chunk-tjt1s9qs.js → chunk-5qaa4atv.js} +2 -2
- package/dist/{chunk-qwjz3jsz.js → chunk-5zf3px9y.js} +2 -2
- package/dist/chunk-60yk0ye9.js +2 -0
- package/dist/chunk-63kwbtgs.js +2 -0
- package/dist/{chunk-sgmh6sa8.js → chunk-67fn9pq0.js} +2 -2
- package/dist/{chunk-84p483n0.js → chunk-6br4568a.js} +2 -2
- package/dist/{chunk-4jza4wwy.js → chunk-6c7q2rz8.js} +2 -2
- package/dist/{chunk-7m8hw6gh.js → chunk-6ea6q6dj.js} +2 -2
- package/dist/{chunk-88ysxbdh.js → chunk-6v0r7m92.js} +2 -2
- package/dist/{chunk-kbzsn9xw.js → chunk-6xap6hvz.js} +2 -2
- package/dist/{chunk-re4vc51w.js → chunk-7naym98x.js} +2 -2
- package/dist/{chunk-r5q65gf3.js → chunk-7nfv27hz.js} +2 -2
- package/dist/{chunk-masqfje4.js → chunk-7tgfj1zb.js} +2 -2
- package/dist/{chunk-gfkx1z04.js → chunk-7ywnza68.js} +2 -2
- package/dist/{chunk-r8sq654w.js → chunk-8be6eq9r.js} +2 -2
- package/dist/chunk-8eyw37rv.js +2 -0
- package/dist/{chunk-eqa6cd7b.js → chunk-8pb726d6.js} +2 -2
- package/dist/{chunk-zv3bm3np.js → chunk-8x7a5n2w.js} +2 -2
- package/dist/{chunk-x2x9g6vk.js → chunk-8yetzgqb.js} +2 -2
- package/dist/{chunk-tj0530fn.js → chunk-8zkn8x2j.js} +2 -2
- package/dist/chunk-95f0wens.js +2 -0
- package/dist/{chunk-g1de763m.js → chunk-9ghxym50.js} +2 -2
- package/dist/{chunk-n8fe2njr.js → chunk-9hts7x5n.js} +2 -2
- package/dist/{chunk-8sa6xn88.js → chunk-9hwqfjc1.js} +2 -2
- package/dist/{chunk-zqpcrtde.js → chunk-9ns2xh84.js} +2 -2
- package/dist/{chunk-y8p2dmw3.js → chunk-9nz4c647.js} +2 -2
- package/dist/{chunk-tz1gzwas.js → chunk-a2tkhes5.js} +2 -2
- package/dist/{chunk-zy6qme7n.js → chunk-a4ebhcsy.js} +2 -2
- package/dist/{chunk-mhhtcbh9.js → chunk-aeccrrg1.js} +2 -2
- package/dist/{chunk-arr0hypp.js → chunk-aemtk0r5.js} +2 -2
- package/dist/{chunk-r7g85s0a.js → chunk-afnnrn6z.js} +2 -2
- package/dist/chunk-aj0z9a5r.js +2 -0
- package/dist/{chunk-x49qjrbk.js → chunk-aj6yxm6d.js} +2 -2
- package/dist/{chunk-rt9dn0b3.js → chunk-aq3hemsb.js} +3 -3
- package/dist/{chunk-zk395v8p.js → chunk-b0zzq2ky.js} +2 -2
- package/dist/{chunk-f6cexkjm.js → chunk-b3mja7d9.js} +3 -3
- package/dist/{chunk-8w08gd0y.js → chunk-b6kn9ack.js} +3 -3
- package/dist/{chunk-mfkrs2at.js → chunk-b8tx1n1a.js} +2 -2
- package/dist/chunk-bdea3k6b.js +2 -0
- package/dist/{chunk-52wrk1mh.js → chunk-bm457bsd.js} +2 -2
- package/dist/{chunk-bhajnmtf.js → chunk-bt42z99s.js} +2 -2
- package/dist/{chunk-2016dacx.js → chunk-by7k0ypx.js} +2 -2
- package/dist/{chunk-wpacvdsv.js → chunk-bysgsnph.js} +2 -2
- package/dist/{chunk-bq31dzpj.js → chunk-c0czkyzh.js} +2 -2
- package/dist/chunk-c70a2esc.js +2 -0
- package/dist/{chunk-xqqk85kd.js → chunk-ccner90h.js} +2 -2
- package/dist/{chunk-e84mhse2.js → chunk-cgpnhrm5.js} +3 -3
- package/dist/{chunk-kj3a1k2q.js → chunk-chjt1pct.js} +2 -2
- package/dist/{chunk-pr7xj1fn.js → chunk-ck70ewc8.js} +2 -2
- package/dist/{chunk-fpsn6fmf.js → chunk-ckft9abb.js} +2 -2
- package/dist/{chunk-6nbqbjnb.js → chunk-d0zazfrq.js} +3 -3
- package/dist/{chunk-q78ng7mn.js → chunk-d607659a.js} +2 -2
- package/dist/{chunk-zyn0ys4m.js → chunk-d84xx4bh.js} +2 -2
- package/dist/{chunk-vys8kfkp.js → chunk-db8hae9d.js} +2 -2
- package/dist/chunk-ddaz4j9s.js +2 -0
- package/dist/{chunk-r0dg1bjd.js → chunk-dhx1sd4s.js} +2 -2
- package/dist/{chunk-at25g15n.js → chunk-dzncwejn.js} +2 -2
- package/dist/chunk-e99t3sk5.js +2 -0
- package/dist/{chunk-ske5z0gp.js → chunk-ebkz1sy2.js} +2 -2
- package/dist/chunk-eevfr0tx.js +2 -0
- package/dist/{chunk-89gyxwmd.js → chunk-enkrqfqq.js} +2 -2
- package/dist/{chunk-z8b3nz7t.js → chunk-epqqzh99.js} +2 -2
- package/dist/{chunk-prwzyc7q.js → chunk-epqyjwrh.js} +2 -2
- package/dist/{chunk-0bc7gfq4.js → chunk-evgfpd16.js} +2 -2
- package/dist/chunk-eyw05qyj.js +4 -0
- package/dist/{chunk-15m908ph.js → chunk-f2h074g0.js} +2 -2
- package/dist/{chunk-zg0tv3sj.js → chunk-fggwwmzc.js} +3 -3
- package/dist/{chunk-a18avvt2.js → chunk-fqchnswc.js} +2 -2
- package/dist/{chunk-sbyp6k8w.js → chunk-fvmnj6bg.js} +2 -2
- package/dist/chunk-fxzh4f7c.js +4 -0
- package/dist/chunk-fzfwftqs.js +2 -0
- package/dist/{chunk-qd9s7wmj.js → chunk-g9v0jr0f.js} +3 -3
- package/dist/{chunk-28nsjq3w.js → chunk-ged1nyhk.js} +5 -5
- package/dist/chunk-gk7nn747.js +2 -0
- package/dist/chunk-gmns080g.js +2 -0
- package/dist/chunk-gw4zbw0m.js +2 -0
- package/dist/{chunk-cef598jy.js → chunk-gy446wcz.js} +2 -2
- package/dist/chunk-h71pkpwg.js +2 -0
- package/dist/{chunk-bsb08p49.js → chunk-ha1s3jbc.js} +3 -3
- package/dist/{chunk-k3fwyr6s.js → chunk-hfjttc7r.js} +2 -2
- package/dist/{chunk-vedvkp9e.js → chunk-hqc5c3nz.js} +3 -3
- package/dist/{chunk-5x2aqmhm.js → chunk-hwhyyaen.js} +2 -2
- package/dist/{chunk-z6tw9cf9.js → chunk-j1t1fnew.js} +2 -2
- package/dist/chunk-j2bp0zbe.js +2 -0
- package/dist/{chunk-y0rnvmrw.js → chunk-jne0bc79.js} +2 -2
- package/dist/chunk-jtws1jg5.js +2 -0
- package/dist/{chunk-1md5vq9g.js → chunk-jygp7479.js} +2 -2
- package/dist/{chunk-b9v0vew6.js → chunk-jz7mckdp.js} +2 -2
- package/dist/{chunk-8hm3nkrk.js → chunk-k014w2jg.js} +2 -2
- package/dist/{chunk-m6sdmcpj.js → chunk-k0h18sme.js} +2 -2
- package/dist/{chunk-vb9mn75j.js → chunk-k1w3acq7.js} +2 -2
- package/dist/{chunk-as2j0yp0.js → chunk-k5065dzv.js} +2 -2
- package/dist/chunk-k97dpdcj.js +2 -0
- package/dist/{chunk-v4tznge3.js → chunk-kgx0jj22.js} +3 -3
- package/dist/chunk-khd2r3jh.js +2 -0
- package/dist/{chunk-1gb1vwvy.js → chunk-kk9dbwd1.js} +2 -2
- package/dist/chunk-kvgn4b2n.js +2 -0
- package/dist/{chunk-w83nb5a8.js → chunk-mg9a4t04.js} +2 -2
- package/dist/{chunk-6h10jana.js → chunk-mgve4dcw.js} +2 -2
- package/dist/{chunk-dhn9f10w.js → chunk-mgwkmr8g.js} +2 -2
- package/dist/{chunk-qk1yqepm.js → chunk-mhrn3e8j.js} +2 -2
- package/dist/{chunk-fwn521m5.js → chunk-mkawbqx5.js} +2 -2
- package/dist/chunk-mp5f940y.js +1 -0
- package/dist/chunk-mybye5t2.js +2 -0
- package/dist/{chunk-9x70f7zv.js → chunk-n4rep234.js} +2 -2
- package/dist/{chunk-k5kzw2px.js → chunk-nebke41s.js} +3 -3
- package/dist/{chunk-5h49mv0e.js → chunk-newkrtrj.js} +2 -2
- package/dist/{chunk-9jth6sk7.js → chunk-nfnejf16.js} +2 -2
- package/dist/{chunk-zyyn9t8n.js → chunk-njw6x85v.js} +3 -3
- package/dist/{chunk-1d29gnb2.js → chunk-npt6at4f.js} +2 -2
- package/dist/chunk-nrfyvzmk.js +2 -0
- package/dist/{chunk-86tpa1nn.js → chunk-nvadhyne.js} +2 -2
- package/dist/{chunk-rd51rvde.js → chunk-p2bn8ypc.js} +2 -2
- package/dist/chunk-pnx0f495.js +2 -0
- package/dist/{chunk-7p0d3rz7.js → chunk-ppcwcrdz.js} +2 -2
- package/dist/chunk-prr551k0.js +2 -0
- package/dist/chunk-pvm6d77q.js +2 -0
- package/dist/{chunk-0b50jg23.js → chunk-pxbww0j1.js} +2 -2
- package/dist/{chunk-g947bnqx.js → chunk-pz5d0vgv.js} +2 -2
- package/dist/chunk-q2ykvjrz.js +2 -0
- package/dist/chunk-q8c4k6qh.js +2 -0
- package/dist/{chunk-vnd6smsp.js → chunk-q8y2a23c.js} +2 -2
- package/dist/{chunk-11kkxd6v.js → chunk-qbmgsd3h.js} +2 -2
- package/dist/{chunk-965sngjd.js → chunk-qbpy0aqe.js} +2 -2
- package/dist/chunk-qgrd5xre.js +2 -0
- package/dist/{chunk-r8gnmyb1.js → chunk-qkddvxjr.js} +2 -2
- package/dist/chunk-qv61ef2y.js +2 -0
- package/dist/{chunk-9t672hzm.js → chunk-qvdfrmpb.js} +2 -2
- package/dist/chunk-qvzxzzw8.js +2 -0
- package/dist/{chunk-b6sb3akb.js → chunk-r2b234a7.js} +2 -2
- package/dist/{chunk-0t4fcgge.js → chunk-ra52dqfb.js} +2 -2
- package/dist/{chunk-68afy8mk.js → chunk-rb6mjycp.js} +2 -2
- package/dist/{chunk-dqjhmzjy.js → chunk-rbs3079t.js} +2 -2
- package/dist/chunk-rcynxrkk.js +4 -0
- package/dist/{chunk-75xtk0a3.js → chunk-rms7wj04.js} +2 -2
- package/dist/{chunk-pr6qwqpj.js → chunk-rntrfb49.js} +2 -2
- package/dist/{chunk-h4xx90s4.js → chunk-rxj5619b.js} +2 -2
- package/dist/{chunk-72xm1tz1.js → chunk-ry5phnnk.js} +2 -2
- package/dist/{chunk-z0q7ghbg.js → chunk-s11mgwyh.js} +2 -2
- package/dist/{chunk-4wm5emgf.js → chunk-s170cg6j.js} +2 -2
- package/dist/{chunk-8gas4q2s.js → chunk-s1w3j9p9.js} +2 -2
- package/dist/{chunk-2dnzdsrv.js → chunk-sfd0pp49.js} +3 -3
- package/dist/chunk-shzj5zf0.js +2 -0
- package/dist/chunk-sk9rm826.js +2 -0
- package/dist/chunk-svxnx1c7.js +2 -0
- package/dist/chunk-symaxskd.js +2 -0
- package/dist/chunk-t3rv7vat.js +2 -0
- package/dist/{chunk-yq4wz4n8.js → chunk-t6ddgvkm.js} +2 -2
- package/dist/{chunk-g7dxg38a.js → chunk-th5vv83g.js} +2 -2
- package/dist/{chunk-dxwbgg69.js → chunk-tj4b0s68.js} +2 -2
- package/dist/chunk-veef1avy.js +2 -0
- package/dist/chunk-vgxvtmja.js +2 -0
- package/dist/{chunk-ad53zbdb.js → chunk-vjfxm73q.js} +2 -2
- package/dist/chunk-vnxa4qe2.js +2 -0
- package/dist/{chunk-9y0fxq8e.js → chunk-vq060dnz.js} +2 -2
- package/dist/{chunk-ckbqdg1s.js → chunk-vyvsm4v9.js} +2 -2
- package/dist/{chunk-8w5bt0nc.js → chunk-w1yrsbw1.js} +2 -2
- package/dist/{chunk-64apxzn7.js → chunk-w2p1g8rp.js} +2 -2
- package/dist/{chunk-rr5ek064.js → chunk-w4537026.js} +2 -2
- package/dist/chunk-wexhc7rb.js +2 -0
- package/dist/{chunk-nef7y6mg.js → chunk-wf0ytnh9.js} +2 -2
- package/dist/{chunk-xqb4thy8.js → chunk-wf4z9w5x.js} +2 -2
- package/dist/{chunk-j4ejwthn.js → chunk-whax282d.js} +2 -2
- package/dist/{chunk-x6spt0mc.js → chunk-wrxj79ct.js} +2 -2
- package/dist/{chunk-mt01qph9.js → chunk-xanfp0nh.js} +2 -2
- package/dist/{chunk-jaghs2z5.js → chunk-xjf2zkrg.js} +2 -2
- package/dist/{chunk-dwxmgsg8.js → chunk-xqrhfxct.js} +2 -2
- package/dist/{chunk-ksq9a3pf.js → chunk-xxwevgqr.js} +2 -2
- package/dist/{chunk-x2wcwpw3.js → chunk-y5qzgfsd.js} +2 -2
- package/dist/chunk-y72y3j24.js +2 -0
- package/dist/{chunk-81xwn9e5.js → chunk-y8aeahf2.js} +3 -3
- package/dist/chunk-ygake3bx.js +2 -0
- package/dist/{chunk-zb0m2cqy.js → chunk-ymdhz3x0.js} +2 -2
- package/dist/{chunk-erdrx47j.js → chunk-ytkcpeq2.js} +2 -2
- package/dist/{chunk-69tgmjdb.js → chunk-z27pxeqg.js} +2 -2
- package/dist/{chunk-mrwawq46.js → chunk-z53fd30n.js} +2 -2
- package/dist/{chunk-54j6xftt.js → chunk-zjzzqtaj.js} +2 -2
- package/dist/{chunk-mmrwaa9h.js → chunk-zpetyx45.js} +2 -2
- package/dist/chunk-zpm0t5ye.js +2 -0
- package/dist/chunk-ztrkk6sp.js +2 -0
- package/dist/client.js +1 -1
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/artifact-links.js +1 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/disclosure-state.js +1 -1
- package/dist/codex/edited-files-card.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/codex/navigation-audio.js +1 -1
- package/dist/codex/navigation-preview.js +1 -1
- package/dist/codex/navigation-rail.js +1 -1
- package/dist/codex/patch-view.js +1 -1
- package/dist/codex/plan.js +1 -1
- package/dist/codex/timeline-virtualizer.js +1 -1
- package/dist/codex/turn-activity.js +1 -1
- package/dist/codex/user-message.js +1 -1
- package/dist/codex/virtualized-turn-list.js +1 -1
- package/dist/collections/collection-emoji.js +1 -1
- package/dist/collections/collection-menu.js +1 -1
- package/dist/collections/collection-panel.js +1 -1
- package/dist/collections/collections.js +1 -1
- package/dist/collections/host.js +1 -1
- package/dist/collections/locales.js +1 -1
- package/dist/collections/model.js +1 -1
- package/dist/collections/store.js +1 -1
- package/dist/composer/completion-filter.js +1 -1
- package/dist/composer/completion-menu.js +1 -1
- package/dist/composer/completion-trigger.js +1 -1
- package/dist/composer/effort-slider.js +1 -1
- package/dist/composer/inline-document.js +1 -1
- package/dist/composer/inline-dom.js +1 -1
- package/dist/composer/menu-radio.js +1 -1
- package/dist/composer/model-select.js +1 -1
- package/dist/composer/permission-mode-select.js +1 -1
- package/dist/composer/prompt-input-attachments.js +1 -1
- package/dist/composer/prompt-input-clipboard.js +1 -1
- package/dist/composer/prompt-input-context.d.ts +9 -0
- package/dist/composer/prompt-input-context.js +1 -1
- package/dist/composer/prompt-input-inline.js +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.js +1 -1
- package/dist/conversation/action-card.js +1 -1
- package/dist/conversation/composer/app-mentions.js +1 -1
- package/dist/conversation/composer/apps-menu.js +1 -1
- package/dist/conversation/composer/composer-menu.js +1 -1
- package/dist/conversation/composer/composer.js +1 -1
- package/dist/conversation/composer/config-options.js +1 -1
- package/dist/conversation/composer/context.js +1 -1
- package/dist/conversation/composer/drafts.js +1 -1
- package/dist/conversation/composer/file-items.js +1 -1
- package/dist/conversation/composer/long-text.js +1 -1
- package/dist/conversation/composer/mention-chips.js +1 -1
- package/dist/conversation/composer/mention-uri.js +1 -1
- package/dist/conversation/composer/model-menu.js +1 -1
- package/dist/conversation/composer/pasted-text-attachment.js +1 -1
- package/dist/conversation/composer/permission-mode-menu.js +1 -1
- package/dist/conversation/composer/prediction.js +1 -1
- package/dist/conversation/composer/prompt-history.js +1 -1
- package/dist/conversation/composer/slash-command-button.js +1 -1
- package/dist/conversation/composer/submit-button.js +1 -1
- package/dist/conversation/composer/usage-meter.js +1 -1
- package/dist/conversation/connection-notice.js +1 -1
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-search.js +1 -1
- package/dist/conversation/conversation-view.js +1 -1
- package/dist/conversation/conversation.js +1 -1
- package/dist/conversation/diff-modal.js +1 -1
- package/dist/conversation/draft-project-picker.js +1 -1
- package/dist/conversation/session-actions.js +1 -1
- package/dist/conversation/subagent-sessions.js +1 -1
- package/dist/conversation/subagent-tasks.js +1 -1
- package/dist/desktop/desktop-composer.d.ts +2 -1
- package/dist/desktop/desktop-composer.js +1 -1
- package/dist/desktop/desktop.js +1 -1
- package/dist/desktop/draft-model-select.js +1 -1
- package/dist/desktop/load-image.js +1 -1
- package/dist/desktop/model-catalog.js +1 -1
- package/dist/desktop/model-recovery.js +1 -1
- package/dist/desktop/model-settings-action.js +1 -1
- package/dist/desktop/native-file-drop.d.ts +3 -1
- package/dist/desktop/native-file-drop.js +1 -1
- package/dist/generated/commands.d.ts +1 -0
- package/dist/generated/commands.js +1 -1
- package/dist/generated-image-storage.d.ts +11 -0
- package/dist/generated-image-storage.js +1 -0
- package/dist/image-lightbox.js +1 -1
- package/dist/image-preview-dialog.js +1 -1
- package/dist/image.d.ts +5 -1
- package/dist/image.js +1 -1
- package/dist/lib/app-reference.js +1 -1
- package/dist/lib/application-metadata.js +1 -1
- package/dist/lib/chat-path.js +1 -1
- package/dist/lib/code-highlighter.js +1 -1
- package/dist/lib/file-url.js +1 -1
- package/dist/lib/fuzzy.js +1 -1
- package/dist/lib/group-blocks.js +1 -1
- package/dist/lib/image-encode.js +1 -1
- package/dist/lib/limits.js +1 -1
- package/dist/lib/markdown-parser.js +1 -1
- package/dist/lib/markdown-rules.js +1 -1
- package/dist/lib/model-name.js +1 -1
- package/dist/lib/pointer-centered-zoom.js +1 -1
- package/dist/lib/prepare-prompt-files.d.ts +2 -2
- package/dist/lib/prepare-prompt-files.js +1 -1
- package/dist/lib/reference-presentation.js +1 -1
- package/dist/lib/stream-style.js +1 -1
- package/dist/lib/streaming-markdown.js +1 -1
- package/dist/lib/tool-artifacts.js +1 -1
- package/dist/locales.js +1 -1
- package/dist/mermaid/diagram.js +1 -1
- package/dist/mermaid/export.js +1 -1
- package/dist/mermaid/index.js +1 -1
- package/dist/mermaid/preview.js +1 -1
- package/dist/oauth/claude-login.js +1 -1
- package/dist/oauth.js +1 -1
- package/dist/plugins/catalog-header.js +1 -1
- package/dist/plugins/catalog-skeleton.js +1 -1
- package/dist/plugins/host.js +1 -1
- package/dist/plugins/locales.js +1 -1
- package/dist/plugins/new-chat-directory.js +1 -1
- package/dist/plugins/pane.js +1 -1
- package/dist/plugins/panel-item.js +1 -1
- package/dist/plugins/plugin-detail-page.js +1 -1
- package/dist/plugins/plugin-icon.js +1 -1
- package/dist/plugins/plugin-icons.js +1 -1
- package/dist/plugins/plugins-page.js +1 -1
- package/dist/plugins/plugins.js +1 -1
- package/dist/plugins/read-skill-document.js +1 -1
- package/dist/plugins/skill-document.js +1 -1
- package/dist/plugins/skills-tab.js +1 -1
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/reference-projection.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/account-menu.js +1 -1
- package/dist/session-list/activity-list.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/locales.js +1 -1
- package/dist/session-list/navigation-controls.js +1 -1
- package/dist/session-list/navigation-header.js +1 -1
- package/dist/session-list/navigation-store.js +1 -1
- package/dist/session-list/navigation-tabs.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/platform.js +1 -1
- package/dist/session-list/row-stop-button.js +1 -1
- package/dist/session-list/session-groups.js +1 -1
- package/dist/session-list/session-info-card.js +1 -1
- package/dist/session-list/session-list.js +1 -1
- package/dist/session-list/session-row.js +1 -1
- package/dist/session-list/session-state-dot.js +1 -1
- package/dist/session-list/session-state-menu.js +1 -1
- package/dist/session-list/shortcut-hint.js +1 -1
- package/dist/session-list/shortcut.js +1 -1
- package/dist/session-list/sidebar-overlay.js +1 -1
- package/dist/session-list/trailing-swap.js +1 -1
- package/dist/session-list/use-activity-notification.js +1 -1
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-cmd-held.js +1 -1
- package/dist/session-list/use-project-sessions.js +1 -1
- package/dist/session-list/virtual-session-rows.js +1 -1
- package/dist/session-timeline/activity-group.js +1 -1
- package/dist/session-timeline/activity-projection.js +1 -1
- package/dist/session-timeline/assistant-content.js +1 -1
- package/dist/session-timeline/assistant-image-references.js +1 -1
- package/dist/session-timeline/assistant-turn.js +1 -1
- package/dist/session-timeline/async-questions.js +1 -1
- package/dist/session-timeline/edited-files-card.js +1 -1
- package/dist/session-timeline/history-timeline.js +1 -1
- package/dist/session-timeline/host.js +1 -1
- package/dist/session-timeline/image-generation-progress.js +1 -1
- package/dist/session-timeline/navigation-rail.js +1 -1
- package/dist/session-timeline/plan.js +1 -1
- package/dist/session-timeline/question-reply.js +1 -1
- package/dist/session-timeline/resource-content.js +1 -1
- package/dist/session-timeline/session-timeline.js +1 -1
- package/dist/session-timeline/timeline-registry.js +1 -1
- package/dist/session-timeline/turn-activity.js +1 -1
- package/dist/session-timeline/turn-error.js +1 -1
- package/dist/session-timeline/turn-retry.js +1 -1
- package/dist/session-timeline/turn-time.js +1 -1
- package/dist/session-timeline/turns.js +1 -1
- package/dist/session-timeline/use-timeline-scroll.js +1 -1
- package/dist/session-timeline/user-message.js +1 -1
- package/dist/settings/codex-account-card.js +1 -1
- package/dist/settings/login-card.js +1 -1
- package/dist/settings/model-alias-settings.js +1 -1
- package/dist/settings/model-aliases.js +1 -1
- package/dist/settings/provider-logos.js +1 -1
- package/dist/settings/provider-section.js +1 -1
- package/dist/settings/providers-port.js +1 -1
- package/dist/settings/providers.js +1 -1
- package/dist/settings/settings-bridge.js +1 -1
- package/dist/settings/settings.js +1 -1
- package/native/win32-x64/alwith_native_chat.dll +0 -0
- package/native/win32-x64/artifact.json +1 -1
- package/package.json +3 -3
- package/dist/chunk-0kaa9dja.js +0 -2
- package/dist/chunk-0myfs71s.js +0 -2
- package/dist/chunk-19jwgexv.js +0 -4
- package/dist/chunk-1p3ekdt4.js +0 -2
- package/dist/chunk-1xgm6fpr.js +0 -2
- package/dist/chunk-2rjg9fs9.js +0 -2
- package/dist/chunk-2s0jckfr.js +0 -2
- package/dist/chunk-3272z6sv.js +0 -2
- package/dist/chunk-38eckxjk.js +0 -2
- package/dist/chunk-56jqg70p.js +0 -2
- package/dist/chunk-5rzy2287.js +0 -2
- package/dist/chunk-6cedp3k2.js +0 -2
- package/dist/chunk-6eg26dz5.js +0 -4
- package/dist/chunk-7hhc8y2n.js +0 -2
- package/dist/chunk-7xsrqwvt.js +0 -2
- package/dist/chunk-9s8ht9xe.js +0 -2
- package/dist/chunk-b5g055qp.js +0 -2
- package/dist/chunk-bqbyjazm.js +0 -2
- package/dist/chunk-cmfcnze3.js +0 -4
- package/dist/chunk-d4jkh19p.js +0 -2
- package/dist/chunk-dn8xcv31.js +0 -2
- package/dist/chunk-dwv3z2sk.js +0 -2
- package/dist/chunk-e4ws15tg.js +0 -2
- package/dist/chunk-e8bazy7m.js +0 -2
- package/dist/chunk-eaxevj9t.js +0 -2
- package/dist/chunk-f0hb6t2w.js +0 -2
- package/dist/chunk-f67e77e6.js +0 -2
- package/dist/chunk-fcy6mh2e.js +0 -2
- package/dist/chunk-gs0b02g2.js +0 -2
- package/dist/chunk-hs98zk6m.js +0 -2
- package/dist/chunk-jf7em132.js +0 -1
- package/dist/chunk-k2xs8svj.js +0 -2
- package/dist/chunk-kv3hsfyk.js +0 -2
- package/dist/chunk-kyqf7cqh.js +0 -2
- package/dist/chunk-m4ds8kjc.js +0 -2
- package/dist/chunk-m6yg0dc9.js +0 -2
- package/dist/chunk-n88j8hsd.js +0 -2
- package/dist/chunk-nvsws1yg.js +0 -2
- package/dist/chunk-p02bdewy.js +0 -2
- package/dist/chunk-pae2hjvq.js +0 -2
- package/dist/chunk-ptdx40ae.js +0 -2
- package/dist/chunk-q61xz251.js +0 -2
- package/dist/chunk-rkqptd9w.js +0 -2
- package/dist/chunk-t1qj0vqe.js +0 -2
- package/dist/chunk-t2ej667n.js +0 -2
- package/dist/chunk-tab23kkx.js +0 -2
- package/dist/chunk-w1ga47ww.js +0 -2
- package/dist/chunk-w2bgfpdh.js +0 -2
- package/dist/chunk-wj9s8331.js +0 -2
- package/dist/chunk-wjgrrfq9.js +0 -2
- package/dist/chunk-ygaqqwmb.js +0 -2
- package/dist/chunk-yvzkb5p5.js +0 -2
- package/dist/chunk-z6x70w62.js +0 -2
- package/dist/chunk-zea1chz7.js +0 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{us}from"./chunk-tj4b0s68.js";import{CheckIcon as M,ChevronDownIcon as E,CopyIcon as T,FileIcon as w}from"lucide-react";import{useEffect as k,useLayoutEffect as H,useRef as I,useState as f}from"react";import{jsx as e,jsxs as p,Fragment as h}from"react/jsx-runtime";var A=20,L='a[href], area[href], button, input, select, textarea, summary, audio[controls], video[controls], iframe, [contenteditable]:not([contenteditable="false"]), [tabindex]:not([tabindex="-1"])';function v(n,o,s){if(n.toggleAttribute("inert",!o),!o){n.setAttribute("aria-hidden","true");return}if(s===null)n.removeAttribute("aria-hidden");else n.setAttribute("aria-hidden",s)}function R(n,o){let s=n.getBoundingClientRect(),a=o.getBoundingClientRect();return s.top>=a.top&&s.right<=a.right&&s.bottom<=a.bottom&&s.left>=a.left}function N({text:n,host:o}){let{t:s,Markdown:a}=o,c=I(null),[u,m]=f(!1),[l,b]=f(!1);return H(()=>{let r=c.current;if(!r)throw Error("Codex user message content is missing");let d=()=>{if(r.scrollHeight===0){m(!1);return}let x=Number.parseFloat(getComputedStyle(r).lineHeight);if(!Number.isFinite(x))throw Error("Codex user message line height is invalid");m(r.scrollHeight>A*x+1)};d();let t=new ResizeObserver(d);return t.observe(r),()=>t.disconnect()},[]),k(()=>{if(!u||l)return;let r=c.current;if(!r)throw Error("Codex user message content is missing");let d=new Map,t=typeof IntersectionObserver>"u"?null:new IntersectionObserver((i)=>{for(let g of i){let y=g.target;if(!d.has(y))continue;v(y,g.isIntersecting&&g.intersectionRatio>=1,d.get(y))}},{root:r,rootMargin:"0px",threshold:1}),x=()=>{for(let i of d.keys()){if(r.contains(i))continue;t?.unobserve(i),d.delete(i)}for(let i of r.querySelectorAll(L)){if(d.has(i)||i.hasAttribute("inert"))continue;let g=i.getAttribute("aria-hidden");d.set(i,g),v(i,t===null&&R(i,r),g),t?.observe(i)}};x();let C=new MutationObserver(x);return C.observe(r,{childList:!0,subtree:!0}),()=>{t?.disconnect(),C.disconnect();for(let[i,g]of d)v(i,!0,g)}},[u,l]),p("div",{className:"codex-user-message-content",children:[e("div",{ref:c,className:u&&!l?"codex-user-message-text codex-user-message-text-collapsed":"codex-user-message-text",children:e(a,{text:n,streaming:!1})}),u&&!l&&e("span",{className:"codex-user-message-ellipsis","aria-hidden":"true",children:"…"}),u&&p("button",{type:"button","aria-expanded":l,className:"codex-user-message-collapse-trigger",onClick:()=>{b((r)=>!r)},children:[e("span",{children:l?s("stream.codex.showLess"):s("stream.codex.showMore")}),e(E,{className:l?"codex-user-message-collapse-chevron codex-user-message-collapse-chevron-expanded":"codex-user-message-collapse-chevron","aria-hidden":"true"})]})]})}function qo({text:n,label:o,host:s}){let[a,c]=f(!1),[u,m]=f(null),l=async()=>{c(!1),m(null);try{await(s?.copyText?s.copyText(n):navigator.clipboard.writeText(n)),c(!0),setTimeout(()=>c(!1),2000)}catch(b){m(String(b)),s?.onCopyError?.(b)}};return e("button",{type:"button",className:"codex-message-action","aria-label":o,title:u??o,onClick:()=>void l(),children:a?e(M,{className:"codex-message-action-confirmed"}):e(T,{})})}function S({image:n,openImage:o}){let[s,a]=f(!1),c=`data:${n.mimeType};base64,${n.data}`;return p(h,{children:[e("button",{type:"button",className:"codex-user-image",onClick:()=>o===void 0?a(!0):o(c),children:e("img",{src:c,alt:""})}),s&&e(us,{src:c,alt:"",onClose:()=>a(!1)})]})}function ds({message:n,text:o,textParts:s,applicationReferences:a,mentions:c,images:u,messageTime:m,host:l,bubbleStyle:b}){let{t:r,openImage:d}=l;return e("div",{"data-content-search-unit-key":n.id,"data-message-id":n.id,className:"timeline-break codex-user-message scroll-mt-4",children:p("div",{className:"group/codex-user codex-user-message-group",children:[c.length>0&&e("div",{className:"codex-user-mentions",children:c.map((t)=>p("span",{className:"codex-user-mention",title:t.title,children:[e(w,{"aria-hidden":"true"}),e("span",{className:"codex-user-mention-label",children:t.label})]},t.key))}),u.length>0&&e("div",{className:"codex-user-images",children:u.map((t)=>e(S,{image:t,openImage:d},`${t.mimeType}:${t.data}`))}),(o.length>0||a)&&e(h,{children:p("div",{"data-user-message-bubble":!0,tabIndex:0,className:"codex-user-bubble",style:b,children:[a,s?s.map((t,x)=>e("div",{className:"codex-user-text-part",children:t.question===void 0?e(N,{text:t.text,host:l}):p(h,{children:[e("div",{className:"codex-user-question-summary",title:t.question,children:t.question}),e("div",{className:"codex-user-question-answer",children:t.text})]})},x)):e(N,{text:o,host:l})]})}),p("div",{className:"codex-user-actions",children:[e(qo,{text:o,label:r("actions.copy"),host:l}),m&&e("span",{className:"codex-user-time",title:m.full,children:m.short})]})]})})}
|
|
2
|
+
export{qo,ds};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var a=["auto","1:1","3:4","9:16","4:3","16:9"],
|
|
1
|
+
var a=["auto","1:1","3:4","9:16","4:3","16:9"],qi=["For image generation and editing, use the application generate_image tool. The host owns the selected image model and credentials. Use attached images as references. Do not substitute another image tool or call provider endpoints yourself.","The application already renders, stores and provides downloads for every successful image result. These are image requests, not coding or filesystem tasks. Do not read imagegen skill files, run shell/Python commands, write Base64 or PNG files, or create download links merely to deliver an image. A request for a PNG or transparent background does not request a filesystem export.","Call generate_image once for the requested image or variant batch. After success, finish the turn using the returned image reference, for example . Do not regenerate a successful result to change its display or packaging. If a capability is unsupported, explain briefly rather than starting another generation or coding task.","In code mode, the tool result may be a string containing JSON metadata followed by image data URIs, rather than an object with a content property. If necessary, output only its first JSON metadata line to obtain the image reference. Do not echo, inspect, decode or write the image data: the host already displays it."].join(`
|
|
2
2
|
|
|
3
|
-
`);function
|
|
3
|
+
`);function fo(e){if(e===void 0)return;if(!a.includes(e))throw Error("Invalid image aspect ratio");return e}function Wi(e,t){return t&&t!=="auto"?`${e}
|
|
4
4
|
|
|
5
5
|
Produce the image with an aspect ratio of ${t}. Preserve subject proportions without stretching.`:e}
|
|
6
|
-
export{
|
|
6
|
+
export{qi,fo,Wi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{F}from"./chunk-gk7nn747.js";import{xe}from"./chunk-f2h074g0.js";import{isPlanItems as n,isPlanMarkdown as r}from"@nyssance/codex-acp-v2/client";import{jsx as e}from"react/jsx-runtime";function ls({plan:t}){if(r(t))return e("div",{className:"codex-reasoning-details",children:e(F,{text:t.content,streaming:!1})});if(!n(t))return null;return e(xe,{entries:t.entries})}
|
|
2
|
+
export{ls};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{re}from"./chunk-fzfwftqs.js";import{St}from"./chunk-afnnrn6z.js";var ve={persistConfig:!0,nativeTools:{imageGeneration:!1},applicationContext:St,parseConfig(e){if(typeof e.model!=="string"||typeof e.size!=="string"||Object.keys(e).some((t)=>t!=="model"&&t!=="size"))throw Error("Invalid image input config");let o={model:e.model,size:e.size};return re(o),o},routePrompt(e){return e.image()}};
|
|
2
|
+
export{ve};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p}from"./chunk-vgxvtmja.js";import{a,o}from"./chunk-pxbww0j1.js";import{N,v,f,ae}from"./chunk-95f0wens.js";import{A,he,wi}from"./chunk-nrfyvzmk.js";import{yt}from"./chunk-b8tx1n1a.js";import{z,le}from"./chunk-5qaa4atv.js";import{Oe,fe}from"./chunk-ppcwcrdz.js";import{closestCorners as pe,DndContext as ue,KeyboardSensor as ge,PointerSensor as Ce,useSensor as V,useSensors as ye}from"@dnd-kit/core";import{SortableContext as W,sortableKeyboardCoordinates as Se,useSortable as ie,verticalListSortingStrategy as X}from"@dnd-kit/sortable";import{CSS as re}from"@dnd-kit/utilities";import{cn as G}from"cn";import{BrushCleaningIcon as De,MessageSquareIcon as we,MoreHorizontalIcon as ve,PencilIcon as Ne,PlusIcon as se,StarIcon as Ie,Trash2Icon as ce}from"lucide-react";import{useEffect as be,useMemo as xe,useState as L}from"react";import{Button as D}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as Y,DialogContent as Z,DialogDescription as ee,DialogFooter as oe,DialogHeader as te,DialogTitle as ne}from"@nyssance/shadcn/vega/components/ui/dialog";import{DropdownMenu as Me,DropdownMenuContent as Ee,DropdownMenuGroup as ke,DropdownMenuItem as B,DropdownMenuTrigger as Le}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Re}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as s,Fragment as He}from"react/jsx-runtime";function Pe({collectionId:l,sessionId:C,children:x}){let{attributes:w,listeners:I,setNodeRef:i,transform:m,transition:u,isDragging:M}=ie({id:JSON.stringify([l,C]),data:{type:"session",collectionId:l,sessionId:C}});return e("div",{ref:i,style:{transform:re.Transform.toString(m),transition:u},className:G("w-full min-w-0",M&&"opacity-50"),...w,...I,role:"group",children:x})}function Te({collection:l,children:C,onEdit:x,onConfirm:w,onNewChat:I}){let{t:i}=A(),m=fe(),u=he(),{attributes:M,listeners:d,setNodeRef:h,transform:R,transition:P,isDragging:H}=ie({id:l.id,disabled:{draggable:l.id===z,droppable:!1},data:{type:"collection"}});return e("div",{ref:h,style:{transform:re.Transform.toString(R),transition:P},className:G("w-full min-w-0",H&&"opacity-50"),children:e(ae,{open:!l.collapsed,onOpenChange:(c)=>u(m({type:"collapse",id:l.id,collapsed:!c})),label:le(l,i),count:l.sessionIds.length,leading:l.id===z?e(Ie,{className:"size-3.5"}):e(yt,{emoji:l.emoji,onChange:(c)=>u(m({type:"emoji",id:l.id,emoji:c}))}),wrapHeader:(c)=>e("div",{...M,...d,role:"group",children:c}),actions:s(Me,{children:[e(Le,{onClick:(c)=>c.stopPropagation(),onPointerDown:(c)=>c.stopPropagation(),render:e(D,{variant:"ghost",size:"icon",className:"size-5","aria-label":i("collection.more",{name:le(l,i)}),children:e(ve,{className:"size-3.5"})})}),e(Ee,{children:s(ke,{children:[l.id!==z&&s(B,{onClick:x,children:[e(Ne,{}),i("collection.rename")]}),s(B,{onClick:I,children:[e(se,{}),i("collection.newChat")]}),s(B,{onClick:()=>w("clear"),children:[e(De,{}),i("collection.clearCollection")]}),l.id!==z&&s(B,{variant:"destructive",onClick:()=>w("delete"),children:[e(ce,{}),i("collection.deleteCollection")]})]})})]}),children:C})})}function Be({children:l}){return e("div",{className:"min-h-0 flex-1 overflow-y-auto ps-2 pe-0 pb-1",children:l})}function na({renderRow:l,onSelect:C,onNewChat:x,Scroll:w=Be}){let I=A(),{t:i}=I,m=fe(),u=he(),M=a(),{collections:d,order:h}=Oe(),R=o((t)=>t.sessionList),P=o((t)=>t.archivedSessions),H=o((t)=>t.sessionListLoaded),c=o((t)=>t.sessionListError),F=xe(()=>new Map([...P,...R].map((t)=>[t.sessionId,t])),[P,R]),U=I.isMac??wi(),[y,E]=L(null),[k,K]=L(""),[_,O]=L(""),[S,T]=L(null),[g,q]=L(!1),de=ye(V(Ce,{activationConstraint:{distance:5}}),V(ge,{coordinateGetter:Se})),j=h.flatMap((t)=>d[t].collapsed?[]:d[t].sessionIds.flatMap((n)=>{let r=F.get(n);return r&&!r.archived?[r]:[]}));be(()=>{let t=(n)=>{if(n.defaultPrevented||n.isComposing||n.repeat||n.shiftKey||n.altKey)return;if(U?!n.metaKey||n.ctrlKey:!n.ctrlKey||n.metaKey)return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;if(n.target instanceof HTMLElement&&(n.target.isContentEditable||n.target.closest("input,textarea,[role=dialog],[role=menu]")))return;let r=Number(n.key)-1;if(!Number.isInteger(r)||r<0||r>8||!j[r])return;n.preventDefault(),C(j[r])};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[j,U,C]);let me=({active:t,over:n})=>{if(n===null)return;let r=t.data.current,b=n.data.current;if(r?.type==="session"&&b!==void 0){let Q=b.type==="session"?String(b.collectionId):String(n.id);u(m({type:"move",sourceCollectionId:String(r.collectionId),collectionId:Q,sessionId:String(r.sessionId),index:b.type==="session"?d[Q].sessionIds.indexOf(String(b.sessionId)):void 0}))}else if(r?.type==="collection"&&b?.type==="collection"&&String(n.id)!==z)u(m({type:"reorder",id:String(t.id),index:h.indexOf(String(n.id))}))},J=(t,n)=>{q(!0),u(t.then(n).finally(()=>q(!1)))};return s(He,{children:[e(w,{children:s(N,{children:[s(f,{className:G(p,"font-normal"),onClick:()=>{E("new"),K(""),O("")},children:[e(v,{children:e(se,{})}),e("span",{children:i("collection.newCollection")})]}),c&&s("div",{className:"text-muted-foreground px-2 text-sm",children:[e("p",{role:"alert",children:c}),e(D,{variant:"ghost",onClick:()=>u(M.listSessions({reset:!0})),children:i("collection.retry")})]}),e(ue,{sensors:de,collisionDetection:pe,onDragEnd:me,children:e(W,{items:h,strategy:X,children:e(N,{children:h.map((t)=>e(Te,{collection:d[t],onNewChat:()=>x(t),onEdit:()=>{E(t),K(d[t].name),O(d[t].emoji??"")},onConfirm:(n)=>T({id:t,type:n}),children:e(W,{items:d[t].sessionIds.map((n)=>JSON.stringify([t,n])),strategy:X,children:d[t].sessionIds.map((n)=>{let r=F.get(n);if(r?.archived)return null;if(!r)return H?s("div",{className:"text-muted-foreground flex h-[var(--navigation-row-height)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-sm font-normal",children:[e(v,{children:e(we,{className:"size-3.5"})}),e("span",{className:"min-w-0 flex-1 truncate",children:i("collection.unavailable")}),e(D,{variant:"ghost",size:"icon",className:"size-5 [&_svg]:size-3.5","aria-label":i("collection.removeFromGroup"),onClick:()=>u(m({type:"remove",sessionId:n,collectionId:t})),children:e(ce,{})})]},n):null;return e(Pe,{collectionId:t,sessionId:n,children:l(r,()=>{},t)},n)})})},t))})})})]})}),e(Y,{open:y!==null,onOpenChange:(t)=>{if(!t&&!g)E(null)},children:s(Z,{children:[s(te,{children:[e(ne,{children:i(y==="new"?"collection.newCollection":"collection.rename")}),e(ee,{children:i("collection.collectionName")})]}),s("form",{onSubmit:(t)=>{if(t.preventDefault(),y===null||!k.trim()||g)return;let n=y==="new"?`collection-${crypto.randomUUID()}`:y;J(m([y==="new"?{type:"create",id:n,name:k}:{type:"rename",id:n,name:k},{type:"emoji",id:n,emoji:_}]),()=>E(null))},className:"flex flex-col gap-3",children:[e(Re,{autoFocus:!0,"aria-label":i("collection.collectionName"),value:k,onChange:(t)=>K(t.target.value),disabled:g}),y!=="new"&&e(yt,{emoji:_,onChange:O}),s(oe,{children:[e(D,{type:"button",variant:"outline",disabled:g,onClick:()=>E(null),children:i("collection.cancel")}),e(D,{type:"submit",disabled:g||!k.trim(),children:i("collection.confirm")})]})]})]})}),e(Y,{open:S!==null,onOpenChange:(t)=>{if(!t&&!g)T(null)},children:s(Z,{children:[s(te,{children:[e(ne,{children:i(S?.type==="delete"?"collection.deleteCollection":"collection.clearCollection")}),e(ee,{children:i("collection.confirmCollectionChange",{name:S===null?"":le(d[S.id],i)})})]}),s(oe,{children:[e(D,{variant:"outline",disabled:g,onClick:()=>T(null),children:i("collection.cancel")}),e(D,{disabled:g,onClick:()=>{if(S!==null)J(m({type:S.type,id:S.id}),()=>T(null))},children:i("collection.confirm")})]})]})})]})}
|
|
2
|
+
export{na};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{homedir as f,userInfo as h}from"node:os";import{join as u}from"node:path";var a=null,d={platform:process.platform,home:f(),env:process.env,username:()=>process.env.USER||h().username,async keychain(e,r){let t=JSON.stringify([e,r]);if(a){if(a.identity!==t)throw Error("Another Claude Keychain read is awaiting completion");return a.promise}let n=(async()=>{let s=Bun.spawn(["/usr/bin/security","find-generic-password","-a",r,"-w","-s",e],{stdin:"ignore",stdout:"pipe",stderr:"pipe"}),[o,l,p]=await Promise.all([s.exited,new Response(s.stdout).text(),new Response(s.stderr).text()]);if(o===44)return null;if(o!==0)throw Error(`Claude Keychain read failed (${o}): ${p.trim()}`);if(!l.trim())throw Error("Claude Keychain item is empty");return l})().finally(()=>{a=null});return a={identity:t,promise:n},n},async file(e){try{return await Bun.file(e).text()}catch(r){if(typeof r==="object"&&r!==null&&"code"in r&&r.code==="ENOENT")return null;throw r}}};function c(e,r){let t;try{t=JSON.parse(e)}catch{throw Error(`Claude ${r} credential record contains invalid JSON`)}if(typeof t!=="object"||t===null||Array.isArray(t))throw Error(`Invalid Claude ${r} credential record`);let i=t;if(i.claudeAiOauth===void 0||i.claudeAiOauth===null)return null;if(typeof i.claudeAiOauth!=="object"||Array.isArray(i.claudeAiOauth))throw Error(`Invalid Claude ${r} OAuth record`);let n=i.claudeAiOauth;if(typeof n.accessToken!=="string"||!n.accessToken.trim()||!Array.isArray(n.scopes)||!n.scopes.every((s)=>typeof s==="string")||!n.scopes.includes("user:inference")||n.expiresAt!==null&&(typeof n.expiresAt!=="number"||!Number.isSafeInteger(n.expiresAt)||n.expiresAt<=0))throw Error(`Claude ${r} OAuth record has invalid token, expiry, or inference scope`);return{accessToken:n.accessToken,expiresAt:n.expiresAt,scopes:n.scopes,source:r}}async function
|
|
2
|
-
export{
|
|
1
|
+
import{homedir as f,userInfo as h}from"node:os";import{join as u}from"node:path";var a=null,d={platform:process.platform,home:f(),env:process.env,username:()=>process.env.USER||h().username,async keychain(e,r){let t=JSON.stringify([e,r]);if(a){if(a.identity!==t)throw Error("Another Claude Keychain read is awaiting completion");return a.promise}let n=(async()=>{let s=Bun.spawn(["/usr/bin/security","find-generic-password","-a",r,"-w","-s",e],{stdin:"ignore",stdout:"pipe",stderr:"pipe"}),[o,l,p]=await Promise.all([s.exited,new Response(s.stdout).text(),new Response(s.stderr).text()]);if(o===44)return null;if(o!==0)throw Error(`Claude Keychain read failed (${o}): ${p.trim()}`);if(!l.trim())throw Error("Claude Keychain item is empty");return l})().finally(()=>{a=null});return a={identity:t,promise:n},n},async file(e){try{return await Bun.file(e).text()}catch(r){if(typeof r==="object"&&r!==null&&"code"in r&&r.code==="ENOENT")return null;throw r}}};function c(e,r){let t;try{t=JSON.parse(e)}catch{throw Error(`Claude ${r} credential record contains invalid JSON`)}if(typeof t!=="object"||t===null||Array.isArray(t))throw Error(`Invalid Claude ${r} credential record`);let i=t;if(i.claudeAiOauth===void 0||i.claudeAiOauth===null)return null;if(typeof i.claudeAiOauth!=="object"||Array.isArray(i.claudeAiOauth))throw Error(`Invalid Claude ${r} OAuth record`);let n=i.claudeAiOauth;if(typeof n.accessToken!=="string"||!n.accessToken.trim()||!Array.isArray(n.scopes)||!n.scopes.every((s)=>typeof s==="string")||!n.scopes.includes("user:inference")||n.expiresAt!==null&&(typeof n.expiresAt!=="number"||!Number.isSafeInteger(n.expiresAt)||n.expiresAt<=0))throw Error(`Claude ${r} OAuth record has invalid token, expiry, or inference scope`);return{accessToken:n.accessToken,expiresAt:n.expiresAt,scopes:n.scopes,source:r}}async function Ri(e=d){if(e.env.CLAUDE_CODE_SIMPLE&&["1","true","yes","on"].includes(e.env.CLAUDE_CODE_SIMPLE.toLowerCase()))throw Error("Claude OAuth is disabled by CLAUDE_CODE_SIMPLE");if(e.env.CLAUDE_CODE_CUSTOM_OAUTH_URL||e.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Custom Claude OAuth endpoints and descriptor credentials are not supported by the local-login reader");let r=e.env.CLAUDE_CODE_OAUTH_TOKEN;if(r!==void 0){if(!r.trim())throw Error("CLAUDE_CODE_OAUTH_TOKEN is empty");return{accessToken:r,expiresAt:null,scopes:["user:inference"],source:"environment"}}let t=e.env.CLAUDE_CONFIG_DIR;if(t==="")throw Error("CLAUDE_CONFIG_DIR is empty");let i=(t??u(e.home,".claude")).normalize("NFC");if(e.platform==="darwin"){let s=t===void 0?"":`-${new Bun.CryptoHasher("sha256").update(i).digest("hex").slice(0,8)}`,o=await e.keychain(`Claude Code-credentials${s}`,e.username());if(o!==null)return c(o,"keychain")}else if(e.platform!=="win32")throw Error(`Unsupported Claude login platform: ${e.platform}`);let n=await e.file(u(i,".credentials.json"));return n===null?null:c(n,"file")}async function ga(e=d,r=Date.now()){let t=await Ri(e);if(!t)throw Error("No existing Claude subscription login; sign in through Claude Code or ALwith Desktop");if(t.expiresAt!==null&&t.expiresAt<=r+60000)throw Error("The existing Claude access token is expired or expiring; refresh it in the owning Claude Code or ALwith CLI before retrying");return t.accessToken}
|
|
2
|
+
export{Ri,ga};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Ji,$n,jn,Kn,$e,Mt,qn,Wn}from"./chunk-bt42z99s.js";import{Ve}from"./chunk-xxwevgqr.js";var l={"gateway:deepseek:deepseek-flash":{shortLabel:"Flash"},"gateway:litellm:deepseek-V4.1-flash":{shortLabel:"Flash",label:"DS Flash"}};var d=Ve,u={anthropic:Ji,deepseek:$n,doubao:Mt,"doubao-coding":Mt,kimi:qn,minimax:$e,qwen:Kn,xai:jn,zhipu:Wn};function g(e){let n=u[e];if(!n)throw Error(`Provider ${e} has no logo`);return n}var R=d.filter((e)=>e.source!=="account").map(({source:e,...n})=>({...n,logo:g(n.id)}));function _t(e){return e!=null&&d.some((n)=>n.source==="account"&&e.startsWith(`gateway:${encodeURIComponent(n.id)}:`))}function It(e){let n=JSON.parse(e);if(!Array.isArray(n)||n.length===0)throw Error("Add at least one model");let t=new Set;return n.map((r)=>{if(typeof r!=="object"||r===null||Array.isArray(r))throw Error("Each model must be an object");let o=r,s=typeof o.label==="string"?o.label.trim():"",i=typeof o.api_id==="string"?o.api_id.trim():"";if(s===""||i==="")throw Error("Model label and API ID cannot be empty");if(t.has(i))throw Error("Model IDs must be unique");if(t.add(i),o.contextWindow!==void 0&&o.contextWindow!==null&&(!Number.isSafeInteger(o.contextWindow)||o.contextWindow<=0))throw Error("Model contextWindow must be a positive integer");if(o.description!==void 0&&typeof o.description!=="string")throw Error("Model description must be a string");return{label:s,api_id:i,...o.contextWindow===void 0?{}:{contextWindow:o.contextWindow},...o.description===void 0?{}:{description:o.description}}})}function Pt(e){return[...R.filter((n)=>e.providers[n.id]!==void 0).map((n)=>({id:n.id,name:n.name,models:n.models})),...[...e.customProviders,...e.managedProviders??[]].map((n)=>({id:n.id,name:n.name,models:n.models.map((t)=>({id:t.api_id,label:t.label,...t.description==null?{}:{description:t.description}}))}))]}function V(e,n){let t=e.startsWith("custom_")?`custom-${Array.from(new TextEncoder().encode(e),(r)=>r.toString(16).padStart(2,"0")).join("")}`:e;return`gateway:${encodeURIComponent(t)}:${encodeURIComponent(n)}`}function _a(e,n,t="session",r=_t){let o=Pt(n).flatMap((s)=>s.models.map((i)=>V(s.id,i.id)));if(e!==null&&(!e.startsWith("gateway:")||o.includes(e)))return e;if(e!==null&&t==="session")throw Error(r(e)?"The selected ALwith account model is unavailable. Select another model before sending.":"The selected model connection is unavailable. Select another model before sending.");return o[0]??null}function ce(e,n){if(!e.regions)return null;let t=e.regions.find((r)=>r.id===n)??e.regions[0];if(!t)throw Error(`Provider ${e.id} declares no regions`);return t}function zn(e,n){return ce(e,n)?.keyUrl??e.keyUrl??null}function Vn(e){if(typeof e==="object"&&e!==null&&"code"in e&&e.code==="pending")return!0;return(e instanceof Error?e.message:typeof e==="string"?e:typeof e==="object"&&e!==null&&("message"in e)?String(e.message):String(e)).includes("Provider settings are pending")}var Tt=l;function Ia(e){return Tt[e]??{}}
|
|
2
|
+
export{R,_t,It,Pt,V,_a,ce,zn,Vn,Tt,Ia};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createPortal as n}from"react-dom";import{jsx as t}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{createPortal as n}from"react-dom";import{jsx as t}from"react/jsx-runtime";function us({src:o,alt:e,onClose:i}){return n(t("button",{type:"button",className:"fixed inset-0 z-[1000] flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.7)"},onClick:i,children:t("img",{src:o,alt:e,style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain",borderRadius:4}})}),document.body)}
|
|
2
|
+
export{us};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{yo}from"./chunk-9hts7x5n.js";import{es,ts,re}from"./chunk-fzfwftqs.js";import{ji}from"./chunk-vjfxm73q.js";import{st}from"./chunk-xxwevgqr.js";import{Bn}from"./chunk-jne0bc79.js";import{qi,fo}from"./chunk-sfd0pp49.js";import{Ki}from"./chunk-18gcnf2a.js";import{Hn}from"./chunk-ebkz1sy2.js";import{ve}from"./chunk-sk9rm826.js";import{rt,ze}from"./chunk-prr551k0.js";import{ho}from"./chunk-7ywnza68.js";import{ne,Un}from"./chunk-whax282d.js";import{CodexClient as M,configRevisionOf as O,isBooleanOption as S,isGroupedSelect as v,isImage as R,isSelectOption as f,mergeMeta as g,runStateSource as I}from"@nyssance/codex-acp-v2/client";var b={id:"chatgpt",name:"ChatGPT"};function y(e){return e===null?void 0:{alwith:{model:e}}}function d(e){let s=e.find((t)=>t.category==="model"&&t.type==="select");return s?.type==="select"&&typeof s.currentValue==="string"?s.currentValue:null}function C(e){let s=e["x-codex-turn-metadata"];if(typeof e.callId!=="string"||typeof s?.turn_id!=="string")throw Error("Codex tool call metadata is missing callId or turn_id");return{toolCallId:e.callId,turnId:s.turn_id}}class $i extends M{applicationRegistry=new yo((e)=>this.holds(e)?this.session(e):void 0,C);toolSelection;async executeShell(e,s){let t=this.session(e);if(!t.attached||t.restoring||t.readOnly||t.state!=="idle")throw Error("The session is not ready for a shell command");await this.codexCapabilities.executeShell(e,s),this.materializeDraft(e)}modelListeners=new Set;confirmedModelListeners=new Set;savedModels={main:null,chat:null};slotModels={main:null,chat:null};slotTargets={main:null,chat:null};slotVersions={main:0,chat:0};draftDirectoryIntents=new Map;draftOperations=new Map;gatewayModels=new Map;configOwners=new Map;openingOwners=new Map;schedulingConfig=new Set;replayRepairs=new Map;accountRevocations=new Map;accountRecoveries=new Map;resolveModelOption;constructor(e,s){let{applicationTools:t=[],resolveModel:i,imageService:n,...o}=s;super(e,o,{sessionWindows:{},draftSessions:{},modelRecovery:{},nativeModels:[]});this.toolSelection=t,this.resolveModelOption=i,this.imageService=n,this.imageTool=n?Ki(n,(a)=>this.imageRequests.get(a)):void 0}imageTool;imageService;inputModes=new Map;inputSelections=new Map;async readInputConfig(e){let s=this.live(),t=await s.request("_codex/session_input_config_get",{sessionId:e});if(s!==this.agent)throw Error("Session input configuration belongs to a disconnected agent");return this.acceptInputConfig(e,t)}async writeInputConfig(e,s){let t=this.live(),i=await t.request("_codex/session_input_config_set",{sessionId:e,inputConfig:s});if(t!==this.agent)throw Error("Session input configuration belongs to a disconnected agent");return this.acceptInputConfig(e,i)}acceptInputConfig(e,s){let t=Hn(s,e);this.inputModes.delete(e),this.inputSelections.delete(e);let i=t.inputConfig;if(i&&rt(i.mode)){if(ze(i.mode).parseConfig(i.config),this.inputModes.set(e,i.mode),i.mode==="image")this.inputSelections.set(e,ve.parseConfig(i.config))}return t}imageRequests=new Map;prompt(e,s,t={}){if(!this.imageService)return super.prompt(e,s,t);if(!this.inputModes.has(e))return this.imageService.inputMode(e).then((i)=>(this.inputModes.set(e,i),this.prompt(e,s,t)));return ze(this.inputModes.get(e)).routePrompt({native:()=>super.prompt(e,s,{...t,meta:g(t.meta,{alwith:{imageIntent:null,applicationContext:ze("chat").applicationContext(null)}})}),image:()=>this.promptImage(e,s,t)})}promptImage(e,s,t){if(!this.imageService)throw Error("Image service is not connected");fo(t.meta?.alwith?.imageAspectRatio);let i=t.meta?.alwith?.imageSelection;if(i!==void 0)re(i);let n=i??this.inputSelections.get(e)??this.imageService.selection(),o={...this.session(e).state!=="idle"?this.imageRequests.get(e)?.selection??n:n};re(o);let a=crypto.randomUUID();return this.promptImages.set(a,new Map(s.flatMap((r,l)=>R(r)?[[`attachment:${l}`,`data:${r.mimeType};base64,${r.data}`]]:[]))),super.prompt(e,s,{...t,meta:g(t.meta,{alwith:{imageSelection:o,imageRequestId:a,applicationContext:ve.applicationContext(t.meta?.alwith?.imageIntent??"generate",qi),imageIntent:t.meta?.alwith?.imageIntent??"generate"}})}).finally(()=>this.promptImages.delete(a))}promptMeta(e,s){let t=s.meta?.alwith?.imageSelection;if(this.inputModes.get(e)==="image"&&t&&this.imageService&&(this.session(e).state==="idle"||!this.imageRequests.has(e))){let i=this.session(e),n=new Map(ts(i).map((a)=>[a.id,a.src]));for(let[a,r]of es(i))n.set(a,{path:r});for(let[a,r]of this.promptImages.get((s.meta?.alwith).imageRequestId)??[])n.set(a,r);let o=fo((s.meta?.alwith).imageAspectRatio);this.imageRequests.set(e,{selection:t,references:n,...o?{aspect:o}:{}})}return ho(super.promptMeta(e,s))}promptImages=new Map;promptWithImages(e,s,t={}){return this.prompt(e,s,{...t,meta:g({alwith:{imageIntent:"generate"}},t.meta)})}async applicationToolsFor(e){let s=typeof this.toolSelection==="function"?await this.toolSelection(e):this.toolSelection,t=e.options.meta?.alwith;return[...s,...e.options.applicationTools??[],...t?.nativeTools?.imageGeneration===!1&&this.imageTool?[this.imageTool]:[]]}releaseImages(e){this.imageRequests.delete(e)}onDisconnected(){for(let e of this.imageRequests.keys())this.releaseImages(e);this.promptImages.clear(),this.applicationRegistry.clear(),super.onDisconnected(),this.setApp({nativeModels:[]})}async cancel(e){this.releaseImages(e),await super.cancel(e)}async close(e){this.releaseImages(e),this.applicationRegistry.drop(e),await super.close(e)}async stopSession(e){this.releaseImages(e),this.applicationRegistry.drop(e);let s=this.state.draftSessions[e];if(s===void 0)return super.stopSession(e);await this.changeDraft([s],()=>this.state.draftSessions[e]?super.close(e):super.stopSession(e))}setApp(e){this.store.setState(e)}applyRunStates(e,s="event"){let t=this.state.runStates,i=e.map((n)=>{let o=t[n.sessionId];return o&&JSON.stringify(o)===JSON.stringify(n)?o:n});if(I(t)===s&&i.length===Object.keys(t).length&&i.every((n)=>n===t[n.sessionId]))return;super.applyRunStates(i,s)}enqueueSession(e,s,t=!0){let i=!t&&!this.schedulingConfig.has(e);return super.enqueueSession(e,()=>{let n=()=>{let r=this.holds(e)?d(this.session(e).configOptions):null;return s().then(async(l)=>{if(this.holds(e)&&d(this.session(e).configOptions)!==r)await this.normalizeCustomEffort(e,!0);return l})},o=()=>{let r=i?this.normalizeCustomEffort(e,!1):void 0;return r?r.then(n):n()},a=t?void 0:this.replayRepairs.get(e)?.promise;return a?a.then(o):o()},t)}customEffortChange(e,s,t=!1,i){if(!this.holds(e))return;let n=this.session(e);if(!n.attached||n.readOnly)return;let o=d(n.configOptions),a=st(o);if(!a)return;let r=n.configOptions.find((p)=>p.category==="thought_level"&&f(p)),l,h;if(r&&f(r)){let p=v(r.options)?r.options.flatMap((c)=>c.options):r.options;if(r.currentValue===a.value||!s&&p.some((c)=>c.value===r.currentValue))return;if(!p.some((c)=>c.value===a.value))throw Error(`The model does not advertise its default effort: ${o}`);l=r.configId,h=!s&&i!==void 0&&p.some((c)=>c.value===i)?i:a.value}else{if(!a.hidden||!t||o===null)return;let p=n.configOptions.find((c)=>c.category==="model");if(!p)throw Error("The custom model has no model option");l=p.configId,h=o}return{configId:l,value:h}}normalizeCustomEffort(e,s,t=!1,i){let n=this.customEffortChange(e,s,t,i);return n?this.writeCustomEffort(e,n.configId,n.value):void 0}async writeCustomEffort(e,s,t){let i=this.live(),n=this.lifecycle.capture(e),o=await i.request("session/set_config_option",{sessionId:e,configId:s,type:"id",value:t});if(i!==this.agent||!this.lifecycle.isCurrent(n))throw Error("Effort configuration belongs to a retired session");this.publishSession({...this.session(e),configOptions:o.configOptions,configRevision:O(o)??this.session(e).configRevision})}async afterSessionCreated(e){await super.afterSessionCreated(e);try{await super.enqueueSession(e,async()=>this.normalizeCustomEffort(e,!0,!0),!1)}catch(s){try{await this.delete(e)}catch(t){throw AggregateError([s,t],"Failed to initialize and clean up the custom model session",{cause:t})}throw s}}replay(e,s,t){let i=this.replayRepairs.get(e);if(i?.cwd===s)return i.promise;let n=this.replayWithEffort(e,s,t);this.replayRepairs.set(e,{cwd:s,promise:n});let o=()=>{if(this.replayRepairs.get(e)?.promise===n)this.replayRepairs.delete(e)};return n.then(o,o),n}async replayWithEffort(e,s,t){let i=this.holds(e)?this.session(e).configOptions:[],n=i.find((r)=>r.category==="thought_level")?.currentValue,o=this.state.modelRecovery[e]??!1;try{if(await super.replay(e,s,t),!o&&this.state.modelRecovery[e]&&!this.session(e).readOnly&&!ne(this.session(e).error?.error))await super.replay(e,s,t)}finally{this.accountRecoveries.delete(e)}if(this.state.modelRecovery[e]&&!this.session(e).readOnly&&!ne(this.session(e).error?.error))throw Error(this.session(e).error?.error?.message??"The selected model connection is unavailable");let a=this.lifecycle.capture(e);try{await this.normalizeCustomEffort(e,!1,!0,d(i)===d(this.session(e).configOptions)&&typeof n==="string"?n:void 0)}catch(r){if(this.holds(e)&&this.lifecycle.isCurrent(a))this.publishSession({...this.session(e),attached:!1,restoring:!1});throw r}}async connect(){if(await super.connect(),this.state.projectContext===null)await this.refreshProjectContext()}async listProjectSessions(e){await this.listSessions();let s=this.projectPath(e),t=this.sessionGroup({cwd:s}).id;return this.state.sessionList.filter((i)=>this.sessionGroup(i).id===t)}async newSession(e,s=null,t="main"){if(s!==null&&typeof s==="object")return super.newSession(e,s);let i=++this.slotVersions[t],n=await this.createNativeSession(e,await this.resolveModel(s),null);return this.activateSlot(t,n,i),n}async createNativeSession(e,s,t,i="chat"){let n=await super.newSession(e,{draft:t!==null,meta:g(y(s),this.imageService||t!==null?{alwith:{...this.imageService?{inputMode:i}:{},...t===null?{}:{draft:!0}}}:void 0)});if(t!==null)this.draftDirectoryIntents.set(n,e),this.setApp((o)=>({draftSessions:{...o.draftSessions,[n]:t}}));return this.noteModel(this.session(n)),n}async open(e,s,t="main"){if(typeof t!=="string")return super.open(e,s,t);if(t==="chat"&&this.imageService&&(this.inputModes.get(e)??await this.imageService.inputMode(e))==="image")throw Error("Image conversations must be opened in the main window");this.bindSlot(t,e),++this.slotVersions[t];let i=this.holds(e)?this.session(e):void 0;if(i?.attached&&(!this.imageService||this.inputModes.has(e))&&!i.restoring&&!i.readOnly&&!this.lifecycle.operations.busy(e)&&!this.replayRepairs.has(e)){this.followModel(t,i);return}await this.replayForOwner(e,s,t)}async replayForOwner(e,s,t){this.openingOwners.set(e,t);try{await this.replay(e,s)}finally{if(this.openingOwners.get(e)===t)this.openingOwners.delete(e)}}async requestContext(e,s,t){if(this.imageService){let i=s.kind==="resume"?s.sessionId:s.kind==="fork"?s.sourceSessionId:null,n=i===null?t.meta?.alwith?.inputMode??"chat":await this.imageService.inputMode(i),o=ze(n),a=ho(t.meta),r={...a?.alwith,nativeTools:o.nativeTools},l=await this.requestModelContext(e,s,{...t,meta:{...a,alwith:r}});return{...l,bind:async(h)=>{await l.bind?.(h),this.inputModes.set(h,n)}}}return this.requestModelContext(e,s,t)}async requestModelContext(e,s,t){if(s.kind==="resume"&&this.state.modelRecovery[s.sessionId]&&t.meta?.alwith?.model===void 0){let l=s.sessionId,h=this.accountRevocations.get(l)??0,p=await this.firstAvailableModel();if((this.accountRevocations.get(l)??0)!==h)throw Error("ALwith account changed during model selection");return this.accountRecoveries.set(l,h),this.requestToolContext(e,s,{...t,meta:g(t.meta,{alwith:{model:p,accountModelSelection:!0}})})}if(s.kind!=="resume"||t.meta?.alwith?.model!==void 0)return this.requestToolContext(e,s,t);let i=s.sessionId,n=this.holds(i)?this.session(i):void 0,o=(n?d(n.configOptions):null)??this.gatewayModels.get(i)??null,a=await this.resolveModel(o),r=o===null?null:a;return this.requestToolContext(e,s,{...t,meta:g(y(r),t.meta)})}async requestToolContext(e,s,t){let i=await this.applicationToolsFor({cwd:e,operation:s,options:t}),n=await super.requestContext(e,s,t);if(!i.length)return n;if(!this.state.agent?.capabilities?.session?.mcp?.acp)throw Error("The agent does not advertise capabilities.session.mcp.acp");let o=this.applicationRegistry.declare(this.live(),i);return{...n,mcpServers:[...n.mcpServers??[],o],bind:async(a)=>{await n.bind?.(a),this.applicationRegistry.bind(o.serverId,a)}}}async installedApps(e){let s=this.live(),t=await super.installedApps(e),i=await ji((n,o)=>s.request(n,o),t.apps.map((n)=>n.id),e?.threadId);if(s!==this.live())throw Error("Application metadata belongs to a disconnected agent");return{apps:t.apps.map((n)=>({...n,...i.get(n.id)}))}}async firstAvailableModel(){let e=await this.resolveModel(null);if(e===null)throw Error("No available models. Configure a model connection and try again.");return e}async recoverReplay(e,s,t,i){let n=ne(t);if(!n&&!Un(t))return super.recoverReplay(e,s,t,i);try{await super.afterResume(e,s,i)}catch(o){if(i.signal.throwIfAborted(),!this.current(i)||!this.holds(e))return!0;this.setApp((a)=>({historyPages:{...a.historyPages,[e]:{cursor:null,loading:!1,error:o instanceof Error?o.message:String(o)}}}))}if(n){if(i.signal.throwIfAborted(),!this.current(i)||!this.holds(e))return!0;return this.publishSession({...this.session(e),attached:!1,restoring:!1,readOnly:!1,error:{stopReason:"error",error:{code:-32000,message:t.reason??t.message,data:t.data},meta:null}}),!0}if(i.signal.throwIfAborted(),!this.current(i)||!this.holds(e))return!0;return this.accountRevocations.set(e,(this.accountRevocations.get(e)??0)+1),this.setApp((o)=>({modelRecovery:{...o.modelRecovery,[e]:!0}})),this.publishSession({...this.session(e),cwd:s,attached:!1,restoring:!1,readOnly:!1,error:{stopReason:"error",error:{code:-32000,message:t.reason??t.message,data:t.data},meta:null}}),!0}markAccountModelsUnavailable(e){this.setApp((s)=>({modelRecovery:{...s.modelRecovery,...Object.fromEntries(e.map((t)=>[t,!0]))}}));for(let s of e){if(this.accountRevocations.set(s,(this.accountRevocations.get(s)??0)+1),!this.holds(s))continue;this.publishSession({...this.session(s),attached:!1,readOnly:this.session(s).readOnly})}}async resumeModel(e,s){let t=this.session(e);if(!this.state.modelRecovery[e]&&(t.attached||!ne(t.error?.error)))throw Error("Model recovery is not required");if(!s)throw Error("Select a model before continuing");let i=this.accountRevocations.get(e)??0,n=await this.resolveModel(s);if(!n)throw Error("The selected provider connection or model is unavailable");if((this.accountRevocations.get(e)??0)!==i)throw Error("ALwith account changed during model selection");this.accountRecoveries.set(e,i);try{await this.replay(e,t.cwd,{meta:{alwith:{model:n,accountModelSelection:!0}}})}catch(a){if(this.holds(e)&&this.state.modelRecovery[e])this.publishSession({...this.session(e),attached:!1,restoring:!1});throw a}finally{this.accountRecoveries.delete(e)}if((this.accountRevocations.get(e)??0)!==i&&this.state.modelRecovery[e])throw Error("ALwith account changed during model selection");let o=this.session(e);if(!o.attached||o.readOnly)throw Error(o.error?.error?.message??"Cannot resume this conversation");this.accountRevocations.delete(e),this.setApp((a)=>{let{[e]:r,...l}=a.modelRecovery;return{modelRecovery:l}}),this.confirmModel(this.state.sessionWindows[e]??"main",o)}setConfig(e,s,t,i="main"){this.configOwners.set(`${e}:${s}`,i),this.schedulingConfig.add(e);try{return super.setConfig(e,s,t)}finally{this.schedulingConfig.delete(e)}}onConfigChanged(e,s,t){super.onConfigChanged(e,s,t),this.noteModel(this.session(e));let i=this.configOwners.get(`${e}:${s}`)??"main";if(this.configOwners.delete(`${e}:${s}`),t.configOptions.some((n)=>n.configId===s&&n.category==="model"))this.confirmModel(i,this.session(e))}changeDraft(e,s){let t=Promise.allSettled(e.map((i)=>this.draftOperations.get(i)).filter((i)=>i!==void 0)).then(s);for(let i of e)this.draftOperations.set(i,t);return t}prepareDraft(e,s,t=null,i=!1,n="chat"){if(e==="chat"&&n!=="chat")throw Error("The floating chat only supports chat input");let o=++this.slotVersions[e];return this.changeDraft([e],async()=>{let a=s??(await this.refreshProjectContext(!0)).chatDirectory,r=Object.keys(this.state.draftSessions).find((c)=>this.state.draftSessions[c]===e);if(r)await this.lifecycle.admission.pending(r);let l=t??(r?d(this.session(r).configOptions):this.savedModels[e]??this.slotModels[e]),h=i?null:await this.resolveModel(l,t===null?"draft":"session");if(r&&(this.inputModes.get(r)??"chat")===n&&this.session(r).cwd===a&&(!this.draftDirectoryIntents.has(r)||this.draftDirectoryIntents.get(r)===s)&&!i&&!this.state.modelRecovery[r]&&(h===null?!d(this.session(r).configOptions)?.startsWith("gateway:"):d(this.session(r).configOptions)===h)){if(this.activateSlot(e,r,o),!this.session(r).attached)await this.replayForOwner(r,a,e);if(t!==null)this.confirmModel(e,this.session(r));return r}let p=await this.createNativeSession(s,h,e,n);try{if(r&&this.session(r).cwd===a)for(let c of this.session(r).configOptions){if(c.category==="model")continue;if(c.category==="thought_level"&&d(this.session(r).configOptions)!==d(this.session(p).configOptions)&&st(d(this.session(p).configOptions))!==null)continue;let u=this.session(p).configOptions.find((w)=>w.configId===c.configId);if(!u||u.currentValue===c.currentValue)continue;if(S(c)&&S(u))await this.setConfig(p,c.configId,c.currentValue);else if(f(c)&&f(u)){if((v(u.options)?u.options.flatMap((m)=>m.options):u.options).some((m)=>m.value===c.currentValue))await this.setConfig(p,c.configId,c.currentValue)}}if(r)await this.deleteEmptyDraft(r)}catch(c){throw await this.deleteEmptyDraft(p),c}if(this.activateSlot(e,p,o),t!==null||i||l!==null&&l!==h)this.confirmModel(e,this.session(p));return p})}discardDraft(e){if(e!=="main"&&e!=="chat")return super.discardDraft(e);return this.changeDraft([e],async()=>{for(let[s,t]of Object.entries(this.state.draftSessions))if(t===e)await this.deleteEmptyDraft(s)})}transferDraft(e,s){return this.changeDraft(["main","chat"],async()=>{if(s==="chat"&&this.inputModes.get(e)==="image")throw Error("Image conversations must remain in the main window");if(!this.state.draftSessions[e]||this.state.draftSessions[e]===s)return;for(let[t,i]of Object.entries(this.state.draftSessions))if(i===s)await this.deleteEmptyDraft(t);this.setApp((t)=>t.draftSessions[e]?{draftSessions:{...t.draftSessions,[e]:s}}:{})})}deleteEmptyDraft(e){return this.enqueueSession(e,async()=>{if(!this.state.draftSessions[e])return;await this.delete(e),this.gatewayModels.delete(e)})}onDraftMaterialized(e){super.onDraftMaterialized(e),this.draftDirectoryIntents.delete(e),this.setApp((s)=>{let{[e]:t,...i}=s.draftSessions;return{draftSessions:i}}),this.noteModel(this.session(e))}onSessionDropped(e){this.applicationRegistry.drop(e),super.onSessionDropped(e),this.inputModes.delete(e),this.inputSelections.delete(e),this.draftDirectoryIntents.delete(e),this.gatewayModels.delete(e),this.accountRevocations.delete(e),this.accountRecoveries.delete(e),this.setApp((s)=>{let{[e]:t,...i}=s.draftSessions,{[e]:n,...o}=s.sessionWindows,{[e]:a,...r}=s.modelRecovery;return{draftSessions:i,sessionWindows:o,modelRecovery:r}})}fork(e,s,t){let i=typeof t==="object"?t:t===void 0?{}:{lastTurnId:t};return super.fork(e,s,i)}async forkInternal(e,s,t){let n=[...(await Promise.all([this.indexSessions(),this.indexSessions(void 0,!0)])).flat(),...this.state.sessionList,...this.state.archivedSessions],o=(this.holds(e)?this.session(e).title:null)??n.find((l)=>l.sessionId===e)?.title,a=await super.forkInternal(e,s,{...t,meta:g(y(this.gatewayModels.get(e)??null),t.meta)});await super.enqueueSession(a,async()=>this.normalizeCustomEffort(a,!1,!0),!1);let r=o??this.session(a).title;if(r)await this.renameSession(a,Bn(r,n.flatMap((l)=>l.title?[l.title]:[])));return a}onForked(e,s){super.onForked(e,s),this.noteModel(this.session(e))}onReplayed(e,s){super.onReplayed(e,s);let t=this.accountRevocations.get(e);if(t!==void 0&&this.accountRecoveries.get(e)!==t)this.markAccountModelsUnavailable([e]);if(this.state.modelRecovery[e]&&this.accountRecoveries.get(e)===(this.accountRevocations.get(e)??0)&&this.session(e).attached&&!this.session(e).readOnly)this.accountRevocations.delete(e),this.setApp((i)=>{let{[e]:n,...o}=i.modelRecovery;return{modelRecovery:o}});this.noteModel(this.session(e))}setModelSelections(e){this.savedModels={...e},this.slotModels={...e}}onConfirmedModel(e){return this.confirmedModelListeners.add(e),()=>this.confirmedModelListeners.delete(e)}onSessionChanged(e){super.onSessionChanged(e);let s=this.accountRevocations.get(e.id);if(s!==void 0&&this.accountRecoveries.get(e.id)!==s&&e.attached){this.publishSession({...e,attached:!1});return}this.followModel("main",e),this.followModel("chat",e)}followModel(e,s){if(this.slotTargets[e]!==s.id||!s.attached||s.restoring)return;let t=d(s.configOptions);if(t!==null)this.slotModels[e]=t}activateSlot(e,s,t){if(this.slotVersions[e]!==t)return;this.bindSlot(e,s),this.followModel(e,this.session(s))}bindSlot(e,s){let t=e==="main"?"chat":"main";if(this.slotTargets[t]===s)this.slotTargets[t]=null,++this.slotVersions[t];this.slotTargets[e]=s,this.setApp((i)=>({sessionWindows:{...i.sessionWindows,[s]:e}}))}confirmModel(e,s){let t=d(s.configOptions);if(t===null)throw Error("Model selection did not return the current model");this.followModel(e,s),this.savedModels[e]=t;for(let i of this.confirmedModelListeners)i(e,t)}resolveModel(e,s="session"){return this.resolveModelOption?this.resolveModelOption(e,s):Promise.resolve(e)}onSessionModel(e){return this.modelListeners.add(e),()=>this.modelListeners.delete(e)}noteModel(e){let s=d(e.configOptions);if(s===null)return;let t=e.configOptions.find((n)=>n.category==="model"&&n.type==="select");if(t&&f(t)){let o=(v(t.options)?t.options.find((a)=>a.groupId===b.id)?.options??[]:t.options.filter((a)=>!a.value.startsWith("gateway:"))).map((a)=>({id:a.value,label:a.name}));if(JSON.stringify(o)!==JSON.stringify(this.state.nativeModels))this.setApp({nativeModels:o})}let i=t!==void 0&&f(t)&&t.options.some((n)=>("groupId"in n)&&n.groupId!==b.id&&n.options.some((o)=>o.value===s));if(i)this.gatewayModels.set(e.id,s);else this.gatewayModels.delete(e.id);if(!this.state.draftSessions[e.id])for(let n of this.modelListeners)n(e.id,s,i)}}
|
|
2
|
+
export{b,$i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
async function
|
|
2
|
-
export{
|
|
1
|
+
async function ji(e,t,i){let o=new Map;for(let a=0;a<t.length;a+=100){let r=await e("_codex/apps_read",{appIds:t.slice(a,a+100),...i?{threadId:i}:{},includeTools:!1});if(!r||typeof r!=="object"||!("apps"in r)||!Array.isArray(r.apps))throw Error("Invalid application metadata response");for(let n of r.apps){if(!n||typeof n.id!=="string"||n.iconUrl!==null&&typeof n.iconUrl!=="string"||n.iconUrlDark!==null&&typeof n.iconUrlDark!=="string")throw Error("Invalid application icon metadata");o.set(n.id,{iconUrl:n.iconUrl,iconUrlDark:n.iconUrlDark})}}return o}
|
|
2
|
+
export{ji};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{a}from"./chunk-pxbww0j1.js";import{runStateSource as l}from"@nyssance/codex-acp-v2/client";import{useSyncExternalStore as f}from"react";function Ae(t,n){let e=t.runStates[n];return e!==void 0&&(!e.reusableDraft||t.drafts[n]!==void 0)}function d(t,n,e){let r=t.filter((s)=>Ae(e,s)),S=new Set(r),c=e.runStates!==n.runStates&&l(e.runStates)==="event";for(let[s,i]of Object.entries(e.runStates)){if(S.has(s)||!Ae(e,s))continue;let o=n.runStates[s],g=!o||i.state!==o.state||i.since!==o.since||i.lastActivityAt!==o.lastActivityAt||i.interruption!==o.interruption;if(i.reusableDraft&&e.drafts[s]!==void 0||c&&g&&(!o||i.state!=="idle")&&i.interruption!=="runtime restarted")r.push(s)}return r.length===t.length&&r.every((s,i)=>s===t[i])?t:r}var u=new WeakMap;function v(t){return{view:"sessions",activityOrder:d([],t.state,t.state),activitySeen:new Map,activityCollapsedGroups:new Set}}function io(t){let n=u.get(t);if(n)return n;let e=v(t),r=new Set,S=(i)=>{e={...e,...i};for(let o of r)o()},c=t.state;t.store.subscribe(()=>{let i=t.store.getState(),o=d(e.activityOrder,c,i);if(c=i,o!==e.activityOrder)S({activityOrder:o})});let s={get:()=>e,set:S,subscribe:(i)=>(r.add(i),()=>r.delete(i))};return u.set(t,s),s}function js(t){u.get(t)?.set(v(t))}function J(t){let n=io(a());return f(n.subscribe,()=>t(n.get()),()=>t(n.get()))}function me(){return io(a()).set}function Ks(){let t=J((e)=>e.view),n=me();return[t,(e)=>n({view:e})]}
|
|
2
|
+
export{Ae,io,js,J,me,Ks};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{n}from"./chunk-aj0z9a5r.js";import{e}from"./chunk-qgrd5xre.js";import{y,te}from"./chunk-j2bp0zbe.js";import{hasAccount as D,isGroupedSelect as L}from"@nyssance/codex-acp-v2/client";import{cn as H}from"cn";import{memo as W,useEffect as T,useState as F}from"react";import{HoverCard as z,HoverCardContent as O,HoverCardTrigger as U}from"@nyssance/shadcn/vega/components/ui/hover-card";import{jsx as r,jsxs as u}from"react/jsx-runtime";var d=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),A=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),I=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function f(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function V(a,t){let o=Math.min(100,a/t*100),p=o>=90?"text-destructive":o>=70?"text-foreground":"text-muted-foreground";return{pct:o,className:p}}function G(a){let t=y(a.configOptions,"model");return t===void 0?void 0:te(t)}function it(a,t){let o=a.windowDurationMins;if(o===null)return t("usage.usage");if(o%1440===0)return t("usage.windowDays",{count:o/1440});return t("usage.windowHours",{count:Math.round(o/60)})}function P(a){let{client:t}=e(),o=n((s)=>a&&s.connection==="ready"&&D(s.agent)),[p,c]=F(null);return T(()=>{if(!o){c(null);return}let s=!0;t.readRateLimits().then((m)=>{if(s)c(m)},()=>{return});let l=t.onRateLimits((m)=>{if(s)c(m)});return()=>{s=!1,l()}},[o,t]),o?p:null}function _({session:a}){let{t}=e().host,o=y(a.configOptions,"model"),p=o!==void 0&&(L(o.options)?o.options.some((i)=>i.groupId==="chatgpt"&&i.options.some((v)=>v.value===o.currentValue)):!o.currentValue.startsWith("gateway:")&&o.options.some((i)=>i.value===o.currentValue)),c=P(p),{usage:s,lastTurnUsage:l}=a;if(s===null&&l===null)return null;let m=s&&s.size>0?V(s.used,s.size):null,x=7,b=2*Math.PI*x,h=f(l?.inputTokens),k=f(l?.outputTokens),g=f(l?.cachedReadTokens),w=f(l?.cachedWriteTokens),S=f(l?.totalTokens)||h+k+g+w,R=h+g,C=R>0?A.format(g/R):t("tokens.notAvailable"),M=[[t("tokens.input"),d.format(h)],[t("tokens.output"),d.format(k)],[t("tokens.cachedRead"),d.format(g)],[t("tokens.cachedWrite"),d.format(w)],[t("tokens.cacheHitRate"),C],[t("tokens.total"),d.format(S)]],N=G(a);return u(z,{children:[r(U,{delay:100,closeDelay:100,render:u("button",{type:"button",className:H("hover:text-foreground flex h-7 items-center gap-1.5 rounded-md px-1.5 text-xs tabular-nums",m?.className??"text-muted-foreground"),"aria-label":t("tokens.openDetails"),children:[u("svg",{viewBox:"0 0 18 18",className:"size-4","aria-hidden":"true",children:[r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),m!==null&&r("circle",{cx:"9",cy:"9",r:x,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:b,strokeDashoffset:b*(1-m.pct/100),transform:"rotate(-90 9 9)"})]}),m!==null&&u("span",{children:[Math.round(m.pct),"%"]})]})}),u(O,{align:"end",side:"top",sideOffset:8,className:"w-56 p-0",children:[N!==void 0&&r("div",{className:"border-b px-3 py-2",children:r("p",{className:"text-foreground truncate text-xs font-semibold",title:N,children:N})}),u("div",{className:"flex flex-col gap-3 p-3",children:[l!==null&&u("div",{className:"flex flex-col gap-1.5",children:[r("p",{className:"text-xs font-medium",children:t("tokens.openDetails")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:M.map(([i,v])=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:i}),r("dd",{className:"text-end tabular-nums",children:v})]},i))})]}),s!==null&&s.size>0&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("tokens.context")}),r("p",{className:"text-muted-foreground text-xs tabular-nums",children:t("tokens.contextSummary",{used:d.format(s.used),limit:d.format(s.size),percent:I.format(s.used/s.size*100)})})]}),c!==null&&(c.primary!==null||c.secondary!==null)&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("usage.limits")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:[c.primary,c.secondary].filter((i)=>i!==null).map((i)=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:it(i,t)}),r("dd",{className:"text-end tabular-nums",children:t("usage.used",{percent:Math.round(Math.min(100,Math.max(0,i.usedPercent)))})})]},`${i.windowDurationMins??"window"}`))})]})]})]})]})}var Tn=W(_);
|
|
2
|
+
export{it,Tn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _={ar:{title:"المكونات الإضافية",search:"البحث عن plugins",sections:{installed:"تم التثبيت",showLess:"عرض أقل"},loadError:{retry:"أعد المحاولة"},card:{install:"ثَبَّتَ",uninstall:"إلغاء التثبيت",installTooltip:"تثبيت البرنامج المساعد"},installModal:{about:"عن",includesSkills:"مهارات",includesApps:"تطبيقات",includesMcpServers:"خوادم MCP",connected:"متصل"},detail:{root:"الإضافات",install:"تثبيت البرنامج المساعد",uninstall:"إلغاء التثبيت",loading:"تحميل",skills:"مهارات",apps:"تطبيقات",mcpServers:"خوادم MCP",developer:"المطور",category:"فئة",version:"إصدار",website:"موقع إلكتروني",privacyPolicy:"سياسة الخصوصية"},manageTabs:{plugins:"الإضافات",skills:"مهارات",marketplace:"السوق"},headings:{plugins:"الإضافات",skills:"مهارات",marketplace:"السوق"},skills:{scope:{user:"مستخدم",repo:"المشروع",system:"نظام"},installed:"تم التثبيت",refresh:"تحديث",open:"يفتح",revealInFinder:"كشف في الباحث",details:"تفاصيل"},marketplace:{loadErrorRetry:"أعد المحاولة",partialRetry:"أعد المحاولة",removeConfirm:"يزيل",removeCancel:"يلغي",sourceLabel:"مصدر",addCancel:"يلغي"},previousPage:"سابق",nextPage:"التالي",close:"إغلاق",copy:"نسخ",extensions:"ملحقات"},de:{sections:{installed:"Installiert"},loadError:{retry:"Wiederholen"},card:{install:"Installieren",uninstall:"Deinstallieren",installTooltip:"Plugin installieren"},installModal:{about:"Über",connected:"Verbunden"},detail:{install:"Plugin installieren",uninstall:"Deinstallieren",developer:"Entwickler",category:"Kategorie",privacyPolicy:"Datenschutzrichtlinie"},skills:{scope:{user:"Nutzer",repo:"Projekt"},installed:"Installiert",open:"Öffnen",revealInFinder:"Im Finder anzeigen"},marketplace:{loadErrorRetry:"Wiederholen",partialRetry:"Wiederholen",removeConfirm:"Entfernen",removeCancel:"Abbrechen",sourceLabel:"Quelle",addCancel:"Abbrechen"},previousPage:"Vorherige",nextPage:"Nächste",close:"Schließen",copy:"Kopieren"},en:{catalog:{navigation:"Toolbox navigation",customize:"Toolbox",content:"Plugin and skill content",pluginViews:"Plugin views",personal:"Personal",showMore:"Show {{count}} more",title:"Plugins",description:"Discover plugins and manage skills and tools.",search:"Search plugins and skills",clearSearch:"Clear search",sourceHelp:"Add a GitHub repository, Git URL, or local folder.",scope:"Skill scope",allScopes:"All scopes",skillCount:"{{count}} skills",location:"Location",fromPlugin:"From plugin",toggleNotApplied:"The skill state did not match the requested change."},title:"Plugins",beta:"BETA",subtitle:"Work with Codex across your favorite tools",search:"Search plugins",manage:"Manage",pageActions:"Page actions",addMarketplace:"Add a marketplace",sections:{featured:"Recommended",installed:"Installed",installedEmpty:"No plugins installed",showLess:"Show less",seeMore:"See more",seeMoreDescription:"See {{pluginNames}}, and more"},empty:"No plugins found",loading:"Loading plugins…",loadError:{title:"Failed to load plugins",retry:"Retry"},card:{install:"Install",installing:"Installing",uninstalling:"Uninstalling",manage:"Manage",moreActions:"More actions",uninstall:"Uninstall",tryNow:"Try now",disabledInstallTooltip:"Access is turned off by your admin",disabledByAdmin:"Disabled by admin",installTooltip:"Install plugin",gitMarketplace:"From a Git marketplace",namedGitMarketplace:"From the {{marketplaceName}} Git marketplace",folderMarketplace:"From a folder marketplace",namedFolderMarketplace:"From {{marketplaceName}}",localPlugin:"From your personal marketplace on this machine",enabledStatus:"Plugin enabled",disabledStatus:"Plugin disabled",installedByAdmin:"Installed by admin",enable:"Enable {{pluginName}}",disable:"Disable {{pluginName}}"},disabledReason:{planNotEligible:"Not available on your plan",requiredAppUnavailable:"Required app unavailable",unknown:"Unavailable"},toast:{installed:"{{pluginName}} plugin installed",installError:"Failed to install plugin",refreshError:"Installed {{pluginName}}, but failed to refresh the plugin list",uninstalled:"{{pluginName}} plugin uninstalled",uninstallError:"Failed to uninstall plugin",uninstallNotApplied:"The plugin is still installed after refreshing. Please try again.",skillsReloadError:"Plugin changed, but skills couldn't refresh. Reload skills before starting a new chat",syncError:"The change was saved, but refreshing the list failed: {{message}}",toggleError:"Failed to update plugin",enabled:"{{pluginName}} plugin enabled",disabled:"{{pluginName}} plugin disabled",toggleNotApplied:"The refreshed plugin state does not match the requested change. Please try again."},installModal:{title:"Install {{pluginName}}",install:"Install {{pluginName}}",installing:"Installing {{pluginName}}",developedBy:"Developed by {{developerName}}",category:"Category: {{category}}",about:"About",capabilities:"Capabilities",includes:"Includes",includesSkills:"Skills",includesApps:"Apps",includesMcpServers:"MCP servers",needsAppsTitle:"Connect your apps to {{pluginName}}",needsAppsSubtitle:"Get more relevant help from the apps you already use. You can always do this later.",tryNow:"Try {{pluginName}} now",viewDetails:"View details",connect:"Connect",connected:"Connected",connecting:"Opened link"},detail:{root:"Plugins",install:"Install plugin",installing:"Installing",tryNow:"Try now",moreActions:"More actions",uninstall:"Uninstall",loading:"Loading",errorTitle:"Failed to load plugin",missing:"Plugin not found",missingDescription:"This plugin could not be loaded from its marketplace entry.",skills:"Skills",apps:"Apps",mcpServers:"MCP servers",hooks:"Hooks",information:"Information",developer:"Developer",category:"Category",version:"Version",website:"Website",capabilities:"Capabilities",privacyPolicy:"Privacy Policy",termsOfService:"Terms of Service",unavailable:"Unavailable",disabledByAdmin:"Disabled by admin",fallbackTitle:"Plugin"},breadcrumb:{manage:"Manage"},manageTabs:{aria:"Manage extensions",plugins:"Plugins",skills:"Skills",marketplace:"Marketplace"},headings:{plugins:"Plugins",skills:"Skills",marketplace:"Marketplace"},skills:{document:{open:"Open",reveal:"Show in file manager",copy:"Copy Markdown",content:"Skill instructions",error:"Could not read SKILL.md"},search:"Search skills",scope:{user:"User",repo:"Project",system:"System",admin:"Admin"},empty:"No skills found",installed:"Installed",loading:"Loading skills…",refresh:"Refresh",filteredEmpty:"No skills match your filters",filteredEmptyDescription:"Try adjusting your search or scope filters",enable:"Enable skill",disable:"Disable skill",enabledStatus:"Skill enabled",disabledStatus:"Skill disabled",disabledBadge:"Disabled",enabledToast:"{{skillName}} skill enabled",disabledToast:"{{skillName}} skill disabled",toggleError:"Failed to update skill",moreActions:"More actions",open:"Open",revealInFinder:"Reveal in Finder",revealInFileExplorer:"Reveal in File Explorer",revealInFileManager:"Reveal in File Manager",details:"Details"},marketplace:{subtitle:"Manage available plugin marketplaces",search:"Search marketplaces",empty:"No marketplaces found",loading:"Loading marketplaces…",loadErrorTitle:"Unable to load marketplaces",loadErrorRetry:"Retry",partialTitle:"Some marketplaces could not be loaded",partialRetry:"Retry",upgrade:"Upgrade marketplace",upgradeButton:"Upgrade",upgradeBuiltIn:"Built-in marketplaces update automatically",upgradeLocal:"Only Git marketplaces can be upgraded",upgradeAll:"Upgrade",upgradeAllTooltip:"Upgrade all marketplaces",remove:"Remove marketplace",removeBuiltIn:"Built-in marketplaces cannot be removed",removeConfigured:"Only configured marketplaces can be removed",removeTitle:'Remove "{{marketplaceName}}"?',removeDescription:"This removes the marketplace from your configuration. Its plugins won't appear unless you add it again.",removeConfirm:"Remove",removeCancel:"Cancel",addTitle:"Add plugin marketplace",addSubtitle:"Add from a GitHub repo, Git URL, or local folder. Learn more",sourceLabel:"Source",sourcePlaceholder:"openai/plugins or git@github.com:org/repo.git",sourceRequired:"Enter a marketplace source",refLabel:"Git ref",refPlaceholder:"main",sparseLabel:"Sparse paths",sparsePlaceholder:"plugins/codex",addSubmit:"Add marketplace",addCancel:"Cancel",added:"{{marketplaceName}} marketplace added",alreadyAdded:"{{marketplaceName}} is already added",addFailed:"Failed to add marketplace",refreshFailed:"{{marketplaceName}} marketplace is configured, but failed to refresh the plugin list",removed:"{{marketplaceName}} marketplace removed",removeError:"Failed to remove marketplace",upgraded:"{{marketplaceName}} marketplace upgraded",upgradeError:"Failed to upgrade marketplace",upgradedAll:"Marketplaces upgraded",upgradeAllError:"Some marketplaces failed to upgrade",upgradeAllRequestError:"Failed to upgrade marketplaces",pluginCount_one:"{{count}} plugin",pluginCount_other:"{{count}} plugins",partialMore_one:"{{count}} more marketplace could not be loaded",partialMore_other:"{{count}} more marketplaces could not be loaded"},previousPage:"Previous",nextPage:"Next",close:"Close",copy:"Copy",extensions:"Extensions"},es:{sections:{installed:"Instalado"},loadError:{retry:"Reintentar"},card:{install:"Instalar",uninstall:"Desinstalar",installTooltip:"Instalar plugin"},installModal:{about:"Acerca de",includesSkills:"Habilidades",connected:"Conectado"},detail:{install:"Instalar plugin",uninstall:"Desinstalar",skills:"Habilidades",developer:"Desarrollador",category:"Categoría",version:"Versión",website:"Sitio web",privacyPolicy:"política de privacidad"},manageTabs:{skills:"Habilidades"},headings:{skills:"Habilidades"},skills:{scope:{user:"Usuario",system:"Sistema",repo:"Proyecto"},installed:"Instalado",open:"Abrir",revealInFinder:"Mostrar en Finder",details:"Detalles"},marketplace:{loadErrorRetry:"Reintentar",partialRetry:"Reintentar",removeConfirm:"Quitar",removeCancel:"Cancelar",sourceLabel:"Fuente",addCancel:"Cancelar"},previousPage:"Anterior",nextPage:"Siguiente",close:"Cerrar",copy:"Copiar"},fr:{sections:{installed:"Installé"},loadError:{retry:"Réessayer"},card:{install:"Installer",uninstall:"Désinstaller",installTooltip:"Installer le plugin"},installModal:{about:"À propos",includesSkills:"Compétences",connected:"Connecté"},detail:{install:"Installer le plugin",uninstall:"Désinstaller",skills:"Compétences",developer:"Développeur",category:"Catégorie",website:"Site web",privacyPolicy:"politique de confidentialité"},manageTabs:{skills:"Compétences"},headings:{skills:"Compétences"},skills:{scope:{user:"Utilisateur",system:"Système",repo:"Projet"},installed:"Installé",open:"Ouvrir",revealInFinder:"Afficher dans le Finder",details:"Détails"},marketplace:{loadErrorRetry:"Réessayer",partialRetry:"Réessayer",removeConfirm:"Retirer",removeCancel:"Annuler",addCancel:"Annuler"},previousPage:"Précédent",nextPage:"Suivant",close:"Fermer",copy:"Copier"},hi:{title:"प्लगइन्स",sections:{installed:"इंस्टॉल किया गया"},loadError:{retry:"पुनः प्रयास करें"},card:{install:"इंस्टॉल करें",uninstall:"अनइंस्टॉल करें",installTooltip:"प्लगइन इंस्टॉल करें"},installModal:{about:"के बारे में",includesSkills:"स्किल्स",includesApps:"ऐप्स",connected:"जुड़ा हुआ"},detail:{root:"प्लगइन",install:"प्लगइन इंस्टॉल करें",uninstall:"अनइंस्टॉल करें",skills:"स्किल्स",apps:"ऐप्स",developer:"डेवलपर",category:"श्रेणी",version:"संस्करण",website:"वेबसाइट",privacyPolicy:"गोपनीयता नीति"},manageTabs:{plugins:"प्लगइन",skills:"स्किल्स"},headings:{plugins:"प्लगइन",skills:"स्किल्स"},skills:{scope:{user:"उपयोगकर्ता",system:"सिस्टम",repo:"प्रोजेक्ट"},installed:"इंस्टॉल किया गया",open:"खोलें",revealInFinder:"Finder में दिखाएं",details:"विवरण"},marketplace:{loadErrorRetry:"पुनः प्रयास करें",partialRetry:"पुनः प्रयास करें",removeConfirm:"हटाएँ",removeCancel:"रद्द करें",sourceLabel:"सोर्स",addCancel:"रद्द करें"},previousPage:"पिछला",nextPage:"अगला",close:"बंद करें",copy:"कॉपी करें"},id:{title:"Plugin",sections:{installed:"Terpasang"},loadError:{retry:"Coba lagi"},card:{install:"Instal",uninstall:"Hapus instalasi",installTooltip:"Pasang plugin"},installModal:{about:"Tentang",includesSkills:"Skill",includesApps:"Aplikasi",includesMcpServers:"MCP server",connected:"Terhubung"},detail:{root:"Plugin",install:"Pasang plugin",uninstall:"Hapus instalasi",skills:"Skill",apps:"Aplikasi",mcpServers:"MCP server",developer:"Pengembang",category:"Kategori",version:"Versi",website:"Situs web",privacyPolicy:"kebijakan privasi"},manageTabs:{plugins:"Plugin",skills:"Skill"},headings:{plugins:"Plugin",skills:"Skill"},skills:{scope:{user:"Pengguna",system:"Sistem",repo:"Proyek"},installed:"Terpasang",open:"Buka",revealInFinder:"Tampilkan di Finder",details:"Detail"},marketplace:{loadErrorRetry:"Coba lagi",partialRetry:"Coba lagi",removeConfirm:"Hapus",removeCancel:"Batal",sourceLabel:"Sumber",addCancel:"Batal"},previousPage:"Sebelumnya",nextPage:"Berikutnya",close:"Tutup",copy:"Salin"},it:{title:"Plugin",sections:{installed:"Installato"},loadError:{retry:"Riprova"},card:{install:"Installa",uninstall:"Disinstalla",installTooltip:"Installa plugin"},installModal:{about:"Informazioni",includesSkills:"Skill",includesApps:"App",includesMcpServers:"MCP server",connected:"Connesso"},detail:{root:"Plugin",install:"Installa plugin",uninstall:"Disinstalla",skills:"Skill",apps:"App",mcpServers:"MCP server",developer:"Sviluppatore",category:"Categoria",version:"Versione",website:"Sito web",privacyPolicy:"informativa sulla privacy"},manageTabs:{plugins:"Plugin",skills:"Skill"},headings:{plugins:"Plugin",skills:"Skill"},skills:{scope:{user:"Utente",system:"Sistema",repo:"Progetto"},installed:"Installato",open:"Apri",revealInFinder:"Mostra nel Finder",details:"Dettagli"},marketplace:{loadErrorRetry:"Riprova",partialRetry:"Riprova",removeConfirm:"Rimuovi",removeCancel:"Annulla",sourceLabel:"Sorgente",addCancel:"Annulla"},previousPage:"Precedente",nextPage:"Successivo",close:"Chiudi",copy:"Copia"},ja:{title:"プラグイン",sections:{installed:"インストール済み"},loadError:{retry:"再試行"},card:{install:"インストール",uninstall:"アンインストール",installTooltip:"プラグインをインストール"},installModal:{about:"概要",includesSkills:"スキル",includesApps:"アプリ",connected:"接続済み"},detail:{root:"プラグイン",install:"プラグインをインストール",uninstall:"アンインストール",skills:"スキル",apps:"アプリ",developer:"開発者",category:"カテゴリ",version:"バージョン",website:"Webサイト",privacyPolicy:"プライバシーポリシー"},manageTabs:{plugins:"プラグイン",skills:"スキル",marketplace:"マーケットプレイス"},headings:{plugins:"プラグイン",skills:"スキル",marketplace:"マーケットプレイス"},skills:{scope:{user:"ユーザー",system:"システム",repo:"プロジェクト"},installed:"インストール済み",open:"開く",revealInFinder:"Finderで表示",details:"詳細"},marketplace:{loadErrorRetry:"再試行",partialRetry:"再試行",removeConfirm:"削除",removeCancel:"キャンセル",sourceLabel:"ソース",addCancel:"キャンセル"},previousPage:"前へ",nextPage:"次へ",close:"閉じる",copy:"コピー"},ko:{title:"플러그인",sections:{installed:"설치됨"},loadError:{retry:"다시 시도"},card:{install:"설치",uninstall:"제거",installTooltip:"플러그인 설치"},installModal:{about:"정보",includesSkills:"스킬",includesApps:"앱",includesMcpServers:"MCP 서버",connected:"연결됨"},detail:{root:"플러그인",install:"플러그인 설치",uninstall:"제거",skills:"스킬",apps:"앱",mcpServers:"MCP 서버",developer:"개발자",category:"카테고리",version:"버전",website:"웹사이트",privacyPolicy:"개인정보 보호정책"},manageTabs:{plugins:"플러그인",skills:"스킬",marketplace:"마켓플레이스"},headings:{plugins:"플러그인",skills:"스킬",marketplace:"마켓플레이스"},skills:{scope:{user:"사용자",system:"시스템",repo:"프로젝트"},installed:"설치됨",open:"열기",revealInFinder:"Finder에서 보기",details:"세부 정보"},marketplace:{loadErrorRetry:"다시 시도",partialRetry:"다시 시도",removeConfirm:"제거",removeCancel:"취소",sourceLabel:"소스",addCancel:"취소"},previousPage:"이전",nextPage:"다음",close:"닫기",copy:"복사"},"pt-BR":{sections:{installed:"Instalado"},loadError:{retry:"Tentar novamente"},card:{install:"Instalar",uninstall:"Desinstalar",installTooltip:"Instalar plugin"},installModal:{about:"Sobre",connected:"Conectado"},detail:{install:"Instalar plugin",uninstall:"Desinstalar",developer:"Desenvolvedor",category:"Categoria",version:"Versão",website:"Site",privacyPolicy:"política de privacidade"},skills:{scope:{user:"Usuário",system:"Sistema",repo:"Projeto"},installed:"Instalado",open:"Abrir",revealInFinder:"Mostrar no Finder",details:"Detalhes"},marketplace:{loadErrorRetry:"Tentar novamente",partialRetry:"Tentar novamente",removeConfirm:"Remover",removeCancel:"Cancelar",sourceLabel:"Código-fonte",addCancel:"Cancelar"},previousPage:"Anterior",nextPage:"Próximo",close:"Fechar",copy:"Copiar"},ru:{title:"Плагины",sections:{installed:"Установлено"},loadError:{retry:"Повторить"},card:{install:"Установить",uninstall:"Удалить",installTooltip:"Установить плагин"},installModal:{about:"О программе",includesSkills:"Навыки",includesApps:"Приложения",connected:"Подключено"},detail:{root:"Плагины",install:"Установить плагин",uninstall:"Удалить",skills:"Навыки",apps:"Приложения",developer:"Разработчик",category:"Категория",version:"Версия",website:"Сайт",privacyPolicy:"политику конфиденциальности"},manageTabs:{plugins:"Плагины",skills:"Навыки"},headings:{plugins:"Плагины",skills:"Навыки"},skills:{scope:{user:"Пользователь",system:"Система",repo:"Проект"},installed:"Установлено",open:"Открыть",revealInFinder:"Показать в Finder",details:"Подробности"},marketplace:{loadErrorRetry:"Повторить",partialRetry:"Повторить",removeConfirm:"Удалить",removeCancel:"Отмена",sourceLabel:"Исходник",addCancel:"Отмена"},previousPage:"Предыдущее",nextPage:"Следующее",close:"Закрыть",copy:"Копировать"},"zh-CN":{catalog:{navigation:"工具箱导航",customize:"工具箱",content:"插件与技能内容",pluginViews:"插件视图",personal:"个人",showMore:"查看其余 {{count}} 项",title:"插件",description:"发现插件,管理技能与工具",search:"搜索插件和技能",clearSearch:"清除搜索",sourceHelp:"添加 GitHub 仓库、Git 地址或本地文件夹。",scope:"技能范围",allScopes:"全部范围",skillCount:"{{count}} 个技能",location:"位置",fromPlugin:"来自插件",toggleNotApplied:"技能实际状态与请求不一致。"},title:"插件",beta:"BETA",subtitle:"在你常用的工具中使用 Codex",search:"搜索插件",manage:"管理",pageActions:"页面操作",addMarketplace:"添加插件市场",sections:{featured:"推荐",installed:"已安装",installedEmpty:"尚未安装插件",showLess:"收起",seeMore:"查看更多",seeMoreDescription:"查看{{pluginNames}}等更多"},empty:"未找到插件",loading:"正在加载插件…",loadError:{title:"插件加载失败",retry:"重试"},card:{install:"安装",installing:"正在安装",uninstalling:"正在卸载",manage:"管理",moreActions:"更多操作",uninstall:"卸载",tryNow:"立即试用",disabledInstallTooltip:"你的管理员已关闭访问权限",disabledByAdmin:"已被管理员禁用",installTooltip:"安装插件",gitMarketplace:"来自 Git 市场",namedGitMarketplace:"来自 {{marketplaceName}} Git 市场",folderMarketplace:"来自文件夹插件市场",namedFolderMarketplace:"来自 {{marketplaceName}}",localPlugin:"来自此设备上的个人插件市场",enabledStatus:"插件已启用",disabledStatus:"插件已禁用",installedByAdmin:"由管理员安装",enable:"启用 {{pluginName}}",disable:"禁用 {{pluginName}}"},disabledReason:{planNotEligible:"你的套餐不支持",requiredAppUnavailable:"所需应用不可用",unknown:"不可用"},toast:{installed:"{{pluginName}} 插件已安装",installError:"插件安装失败",refreshError:"已安装 {{pluginName}},但刷新插件列表失败",uninstalled:"{{pluginName}} 插件已卸载",uninstallError:"插件卸载失败",uninstallNotApplied:"刷新后插件仍处于已安装状态,请重试。",skillsReloadError:"插件已更改,但无法刷新技能。请先重新加载技能,再开始新聊天",syncError:"操作已保存,但列表刷新失败:{{message}}",toggleError:"无法更新插件",enabled:"{{pluginName}} 插件已启用",disabled:"{{pluginName}} 插件已禁用",toggleNotApplied:"刷新后的插件状态与请求不一致,请重试。"},installModal:{title:"安装 {{pluginName}}",install:"安装 {{pluginName}}",installing:"正在安装 {{pluginName}}",developedBy:"由 {{developerName}} 开发",category:"类别:{{category}}",about:"关于",capabilities:"功能",includes:"包含内容",includesSkills:"技能",includesApps:"应用",includesMcpServers:"MCP 服务器",needsAppsTitle:"将应用连接到 {{pluginName}}",needsAppsSubtitle:"从你已在使用的应用中获得相关性更强的帮助。你也可以稍后再设置。",tryNow:"立即试用 {{pluginName}}",viewDetails:"查看详情",connect:"连接",connected:"已连接",connecting:"已打开链接"},detail:{root:"插件",install:"安装插件",installing:"正在安装",tryNow:"立即试用",moreActions:"更多操作",uninstall:"卸载",loading:"正在加载",errorTitle:"无法加载插件",missing:"未找到插件",missingDescription:"无法从插件市场详情页加载此插件。",skills:"技能",apps:"应用",mcpServers:"MCP 服务器",hooks:"钩子",information:"信息",developer:"开发者",category:"类别",version:"版本",website:"网站",capabilities:"功能",privacyPolicy:"隐私政策",termsOfService:"服务条款",unavailable:"不可用",disabledByAdmin:"管理员已禁用",fallbackTitle:"插件"},breadcrumb:{manage:"管理"},manageTabs:{aria:"管理扩展程序",plugins:"插件",skills:"技能",marketplace:"市场"},headings:{plugins:"插件",skills:"技能",marketplace:"市场"},skills:{document:{open:"打开",reveal:"在文件夹中显示",copy:"复制 Markdown",content:"技能正文",error:"无法读取 SKILL.md"},search:"搜索技能",scope:{user:"用户",repo:"项目",system:"系统",admin:"管理员"},empty:"找不到技能",installed:"已安装",loading:"正在加载技能…",refresh:"刷新",filteredEmpty:"没有符合筛选条件的技能",filteredEmptyDescription:"尝试调整你的搜索内容或范围筛选条件",enable:"启用技能",disable:"禁用技能",enabledStatus:"技能已启用",disabledStatus:"技能已禁用",disabledBadge:"已禁用",enabledToast:"{{skillName}} 技能已启用",disabledToast:"{{skillName}} 技能已禁用",toggleError:"无法更新技能",moreActions:"更多操作",open:"打开",revealInFinder:"在 Finder 中显示",revealInFileExplorer:"在文件资源管理器中显示",revealInFileManager:"在文件管理器中显示",details:"详情"},marketplace:{subtitle:"管理可用的插件市场",search:"搜索市场",empty:"未找到任何市场",loading:"正在加载市场…",loadErrorTitle:"无法加载插件市场",loadErrorRetry:"重试",partialTitle:"部分插件市场无法加载",partialRetry:"重试",upgrade:"升级市场",upgradeButton:"升级",upgradeBuiltIn:"内置市场会自动更新",upgradeLocal:"只能升级 Git 市场",upgradeAll:"升级",upgradeAllTooltip:"升级所有市场",remove:"移除市场",removeBuiltIn:"无法移除内置市场",removeConfigured:"仅可移除已配置的市场",removeTitle:"是否移除“{{marketplaceName}}”?",removeDescription:"这会从你的配置中移除该市场。除非你重新添加,否则其插件不会显示。",removeConfirm:"移除",removeCancel:"取消",addTitle:"添加插件市场",addSubtitle:"从 GitHub 仓库、Git URL 或本地文件夹添加。了解更多",sourceLabel:"来源",sourcePlaceholder:"openai/plugins 或 git@github.com:org/repo.git",sourceRequired:"请输入市场来源",refLabel:"Git 引用",refPlaceholder:"主分支",sparseLabel:"稀疏路径",sparsePlaceholder:"plugins/codex",addSubmit:"添加市场",addCancel:"取消",added:"已添加 {{marketplaceName}} 市场",alreadyAdded:"{{marketplaceName}} 已添加",addFailed:"添加插件市场失败",refreshFailed:"{{marketplaceName}} 市场已配置,但刷新插件列表失败",removed:"已移除 {{marketplaceName}} 市场",removeError:"移除市场失败",upgraded:"{{marketplaceName}} 市场已升级",upgradeError:"升级市场失败",upgradedAll:"市场已升级",upgradeAllError:"部分市场升级失败",upgradeAllRequestError:"升级市场失败",pluginCount_one:"{{count}} 个插件",pluginCount_other:"{{count}} 个插件",partialMore_one:"还有 {{count}} 个市场无法加载",partialMore_other:"还有 {{count}} 个市场无法加载"},previousPage:"上一页",nextPage:"下一页",close:"关闭",copy:"复制",extensions:"扩展"}};
|
|
2
|
-
export{
|
|
1
|
+
var P={ar:{title:"المكونات الإضافية",search:"البحث عن plugins",sections:{installed:"تم التثبيت",showLess:"عرض أقل"},loadError:{retry:"أعد المحاولة"},card:{install:"ثَبَّتَ",uninstall:"إلغاء التثبيت",installTooltip:"تثبيت البرنامج المساعد"},installModal:{about:"عن",includesSkills:"مهارات",includesApps:"تطبيقات",includesMcpServers:"خوادم MCP",connected:"متصل"},detail:{root:"الإضافات",install:"تثبيت البرنامج المساعد",uninstall:"إلغاء التثبيت",loading:"تحميل",skills:"مهارات",apps:"تطبيقات",mcpServers:"خوادم MCP",developer:"المطور",category:"فئة",version:"إصدار",website:"موقع إلكتروني",privacyPolicy:"سياسة الخصوصية"},manageTabs:{plugins:"الإضافات",skills:"مهارات",marketplace:"السوق"},headings:{plugins:"الإضافات",skills:"مهارات",marketplace:"السوق"},skills:{scope:{user:"مستخدم",repo:"المشروع",system:"نظام"},installed:"تم التثبيت",refresh:"تحديث",open:"يفتح",revealInFinder:"كشف في الباحث",details:"تفاصيل"},marketplace:{loadErrorRetry:"أعد المحاولة",partialRetry:"أعد المحاولة",removeConfirm:"يزيل",removeCancel:"يلغي",sourceLabel:"مصدر",addCancel:"يلغي"},previousPage:"سابق",nextPage:"التالي",close:"إغلاق",copy:"نسخ",extensions:"ملحقات"},de:{sections:{installed:"Installiert"},loadError:{retry:"Wiederholen"},card:{install:"Installieren",uninstall:"Deinstallieren",installTooltip:"Plugin installieren"},installModal:{about:"Über",connected:"Verbunden"},detail:{install:"Plugin installieren",uninstall:"Deinstallieren",developer:"Entwickler",category:"Kategorie",privacyPolicy:"Datenschutzrichtlinie"},skills:{scope:{user:"Nutzer",repo:"Projekt"},installed:"Installiert",open:"Öffnen",revealInFinder:"Im Finder anzeigen"},marketplace:{loadErrorRetry:"Wiederholen",partialRetry:"Wiederholen",removeConfirm:"Entfernen",removeCancel:"Abbrechen",sourceLabel:"Quelle",addCancel:"Abbrechen"},previousPage:"Vorherige",nextPage:"Nächste",close:"Schließen",copy:"Kopieren"},en:{catalog:{navigation:"Toolbox navigation",customize:"Toolbox",content:"Plugin and skill content",pluginViews:"Plugin views",personal:"Personal",showMore:"Show {{count}} more",title:"Plugins",description:"Discover plugins and manage skills and tools.",search:"Search plugins and skills",clearSearch:"Clear search",sourceHelp:"Add a GitHub repository, Git URL, or local folder.",scope:"Skill scope",allScopes:"All scopes",skillCount:"{{count}} skills",location:"Location",fromPlugin:"From plugin",toggleNotApplied:"The skill state did not match the requested change."},title:"Plugins",beta:"BETA",subtitle:"Work with Codex across your favorite tools",search:"Search plugins",manage:"Manage",pageActions:"Page actions",addMarketplace:"Add a marketplace",sections:{featured:"Recommended",installed:"Installed",installedEmpty:"No plugins installed",showLess:"Show less",seeMore:"See more",seeMoreDescription:"See {{pluginNames}}, and more"},empty:"No plugins found",loading:"Loading plugins…",loadError:{title:"Failed to load plugins",retry:"Retry"},card:{install:"Install",installing:"Installing",uninstalling:"Uninstalling",manage:"Manage",moreActions:"More actions",uninstall:"Uninstall",tryNow:"Try now",disabledInstallTooltip:"Access is turned off by your admin",disabledByAdmin:"Disabled by admin",installTooltip:"Install plugin",gitMarketplace:"From a Git marketplace",namedGitMarketplace:"From the {{marketplaceName}} Git marketplace",folderMarketplace:"From a folder marketplace",namedFolderMarketplace:"From {{marketplaceName}}",localPlugin:"From your personal marketplace on this machine",enabledStatus:"Plugin enabled",disabledStatus:"Plugin disabled",installedByAdmin:"Installed by admin",enable:"Enable {{pluginName}}",disable:"Disable {{pluginName}}"},disabledReason:{planNotEligible:"Not available on your plan",requiredAppUnavailable:"Required app unavailable",unknown:"Unavailable"},toast:{installed:"{{pluginName}} plugin installed",installError:"Failed to install plugin",refreshError:"Installed {{pluginName}}, but failed to refresh the plugin list",uninstalled:"{{pluginName}} plugin uninstalled",uninstallError:"Failed to uninstall plugin",uninstallNotApplied:"The plugin is still installed after refreshing. Please try again.",skillsReloadError:"Plugin changed, but skills couldn't refresh. Reload skills before starting a new chat",syncError:"The change was saved, but refreshing the list failed: {{message}}",toggleError:"Failed to update plugin",enabled:"{{pluginName}} plugin enabled",disabled:"{{pluginName}} plugin disabled",toggleNotApplied:"The refreshed plugin state does not match the requested change. Please try again."},installModal:{title:"Install {{pluginName}}",install:"Install {{pluginName}}",installing:"Installing {{pluginName}}",developedBy:"Developed by {{developerName}}",category:"Category: {{category}}",about:"About",capabilities:"Capabilities",includes:"Includes",includesSkills:"Skills",includesApps:"Apps",includesMcpServers:"MCP servers",needsAppsTitle:"Connect your apps to {{pluginName}}",needsAppsSubtitle:"Get more relevant help from the apps you already use. You can always do this later.",tryNow:"Try {{pluginName}} now",viewDetails:"View details",connect:"Connect",connected:"Connected",connecting:"Opened link"},detail:{root:"Plugins",install:"Install plugin",installing:"Installing",tryNow:"Try now",moreActions:"More actions",uninstall:"Uninstall",loading:"Loading",errorTitle:"Failed to load plugin",missing:"Plugin not found",missingDescription:"This plugin could not be loaded from its marketplace entry.",skills:"Skills",apps:"Apps",mcpServers:"MCP servers",hooks:"Hooks",information:"Information",developer:"Developer",category:"Category",version:"Version",website:"Website",capabilities:"Capabilities",privacyPolicy:"Privacy Policy",termsOfService:"Terms of Service",unavailable:"Unavailable",disabledByAdmin:"Disabled by admin",fallbackTitle:"Plugin"},breadcrumb:{manage:"Manage"},manageTabs:{aria:"Manage extensions",plugins:"Plugins",skills:"Skills",marketplace:"Marketplace"},headings:{plugins:"Plugins",skills:"Skills",marketplace:"Marketplace"},skills:{document:{open:"Open",reveal:"Show in file manager",copy:"Copy Markdown",content:"Skill instructions",error:"Could not read SKILL.md"},search:"Search skills",scope:{user:"User",repo:"Project",system:"System",admin:"Admin"},empty:"No skills found",installed:"Installed",loading:"Loading skills…",refresh:"Refresh",filteredEmpty:"No skills match your filters",filteredEmptyDescription:"Try adjusting your search or scope filters",enable:"Enable skill",disable:"Disable skill",enabledStatus:"Skill enabled",disabledStatus:"Skill disabled",disabledBadge:"Disabled",enabledToast:"{{skillName}} skill enabled",disabledToast:"{{skillName}} skill disabled",toggleError:"Failed to update skill",moreActions:"More actions",open:"Open",revealInFinder:"Reveal in Finder",revealInFileExplorer:"Reveal in File Explorer",revealInFileManager:"Reveal in File Manager",details:"Details"},marketplace:{subtitle:"Manage available plugin marketplaces",search:"Search marketplaces",empty:"No marketplaces found",loading:"Loading marketplaces…",loadErrorTitle:"Unable to load marketplaces",loadErrorRetry:"Retry",partialTitle:"Some marketplaces could not be loaded",partialRetry:"Retry",upgrade:"Upgrade marketplace",upgradeButton:"Upgrade",upgradeBuiltIn:"Built-in marketplaces update automatically",upgradeLocal:"Only Git marketplaces can be upgraded",upgradeAll:"Upgrade",upgradeAllTooltip:"Upgrade all marketplaces",remove:"Remove marketplace",removeBuiltIn:"Built-in marketplaces cannot be removed",removeConfigured:"Only configured marketplaces can be removed",removeTitle:'Remove "{{marketplaceName}}"?',removeDescription:"This removes the marketplace from your configuration. Its plugins won't appear unless you add it again.",removeConfirm:"Remove",removeCancel:"Cancel",addTitle:"Add plugin marketplace",addSubtitle:"Add from a GitHub repo, Git URL, or local folder. Learn more",sourceLabel:"Source",sourcePlaceholder:"openai/plugins or git@github.com:org/repo.git",sourceRequired:"Enter a marketplace source",refLabel:"Git ref",refPlaceholder:"main",sparseLabel:"Sparse paths",sparsePlaceholder:"plugins/codex",addSubmit:"Add marketplace",addCancel:"Cancel",added:"{{marketplaceName}} marketplace added",alreadyAdded:"{{marketplaceName}} is already added",addFailed:"Failed to add marketplace",refreshFailed:"{{marketplaceName}} marketplace is configured, but failed to refresh the plugin list",removed:"{{marketplaceName}} marketplace removed",removeError:"Failed to remove marketplace",upgraded:"{{marketplaceName}} marketplace upgraded",upgradeError:"Failed to upgrade marketplace",upgradedAll:"Marketplaces upgraded",upgradeAllError:"Some marketplaces failed to upgrade",upgradeAllRequestError:"Failed to upgrade marketplaces",pluginCount_one:"{{count}} plugin",pluginCount_other:"{{count}} plugins",partialMore_one:"{{count}} more marketplace could not be loaded",partialMore_other:"{{count}} more marketplaces could not be loaded"},previousPage:"Previous",nextPage:"Next",close:"Close",copy:"Copy",extensions:"Extensions"},es:{sections:{installed:"Instalado"},loadError:{retry:"Reintentar"},card:{install:"Instalar",uninstall:"Desinstalar",installTooltip:"Instalar plugin"},installModal:{about:"Acerca de",includesSkills:"Habilidades",connected:"Conectado"},detail:{install:"Instalar plugin",uninstall:"Desinstalar",skills:"Habilidades",developer:"Desarrollador",category:"Categoría",version:"Versión",website:"Sitio web",privacyPolicy:"política de privacidad"},manageTabs:{skills:"Habilidades"},headings:{skills:"Habilidades"},skills:{scope:{user:"Usuario",system:"Sistema",repo:"Proyecto"},installed:"Instalado",open:"Abrir",revealInFinder:"Mostrar en Finder",details:"Detalles"},marketplace:{loadErrorRetry:"Reintentar",partialRetry:"Reintentar",removeConfirm:"Quitar",removeCancel:"Cancelar",sourceLabel:"Fuente",addCancel:"Cancelar"},previousPage:"Anterior",nextPage:"Siguiente",close:"Cerrar",copy:"Copiar"},fr:{sections:{installed:"Installé"},loadError:{retry:"Réessayer"},card:{install:"Installer",uninstall:"Désinstaller",installTooltip:"Installer le plugin"},installModal:{about:"À propos",includesSkills:"Compétences",connected:"Connecté"},detail:{install:"Installer le plugin",uninstall:"Désinstaller",skills:"Compétences",developer:"Développeur",category:"Catégorie",website:"Site web",privacyPolicy:"politique de confidentialité"},manageTabs:{skills:"Compétences"},headings:{skills:"Compétences"},skills:{scope:{user:"Utilisateur",system:"Système",repo:"Projet"},installed:"Installé",open:"Ouvrir",revealInFinder:"Afficher dans le Finder",details:"Détails"},marketplace:{loadErrorRetry:"Réessayer",partialRetry:"Réessayer",removeConfirm:"Retirer",removeCancel:"Annuler",addCancel:"Annuler"},previousPage:"Précédent",nextPage:"Suivant",close:"Fermer",copy:"Copier"},hi:{title:"प्लगइन्स",sections:{installed:"इंस्टॉल किया गया"},loadError:{retry:"पुनः प्रयास करें"},card:{install:"इंस्टॉल करें",uninstall:"अनइंस्टॉल करें",installTooltip:"प्लगइन इंस्टॉल करें"},installModal:{about:"के बारे में",includesSkills:"स्किल्स",includesApps:"ऐप्स",connected:"जुड़ा हुआ"},detail:{root:"प्लगइन",install:"प्लगइन इंस्टॉल करें",uninstall:"अनइंस्टॉल करें",skills:"स्किल्स",apps:"ऐप्स",developer:"डेवलपर",category:"श्रेणी",version:"संस्करण",website:"वेबसाइट",privacyPolicy:"गोपनीयता नीति"},manageTabs:{plugins:"प्लगइन",skills:"स्किल्स"},headings:{plugins:"प्लगइन",skills:"स्किल्स"},skills:{scope:{user:"उपयोगकर्ता",system:"सिस्टम",repo:"प्रोजेक्ट"},installed:"इंस्टॉल किया गया",open:"खोलें",revealInFinder:"Finder में दिखाएं",details:"विवरण"},marketplace:{loadErrorRetry:"पुनः प्रयास करें",partialRetry:"पुनः प्रयास करें",removeConfirm:"हटाएँ",removeCancel:"रद्द करें",sourceLabel:"सोर्स",addCancel:"रद्द करें"},previousPage:"पिछला",nextPage:"अगला",close:"बंद करें",copy:"कॉपी करें"},id:{title:"Plugin",sections:{installed:"Terpasang"},loadError:{retry:"Coba lagi"},card:{install:"Instal",uninstall:"Hapus instalasi",installTooltip:"Pasang plugin"},installModal:{about:"Tentang",includesSkills:"Skill",includesApps:"Aplikasi",includesMcpServers:"MCP server",connected:"Terhubung"},detail:{root:"Plugin",install:"Pasang plugin",uninstall:"Hapus instalasi",skills:"Skill",apps:"Aplikasi",mcpServers:"MCP server",developer:"Pengembang",category:"Kategori",version:"Versi",website:"Situs web",privacyPolicy:"kebijakan privasi"},manageTabs:{plugins:"Plugin",skills:"Skill"},headings:{plugins:"Plugin",skills:"Skill"},skills:{scope:{user:"Pengguna",system:"Sistem",repo:"Proyek"},installed:"Terpasang",open:"Buka",revealInFinder:"Tampilkan di Finder",details:"Detail"},marketplace:{loadErrorRetry:"Coba lagi",partialRetry:"Coba lagi",removeConfirm:"Hapus",removeCancel:"Batal",sourceLabel:"Sumber",addCancel:"Batal"},previousPage:"Sebelumnya",nextPage:"Berikutnya",close:"Tutup",copy:"Salin"},it:{title:"Plugin",sections:{installed:"Installato"},loadError:{retry:"Riprova"},card:{install:"Installa",uninstall:"Disinstalla",installTooltip:"Installa plugin"},installModal:{about:"Informazioni",includesSkills:"Skill",includesApps:"App",includesMcpServers:"MCP server",connected:"Connesso"},detail:{root:"Plugin",install:"Installa plugin",uninstall:"Disinstalla",skills:"Skill",apps:"App",mcpServers:"MCP server",developer:"Sviluppatore",category:"Categoria",version:"Versione",website:"Sito web",privacyPolicy:"informativa sulla privacy"},manageTabs:{plugins:"Plugin",skills:"Skill"},headings:{plugins:"Plugin",skills:"Skill"},skills:{scope:{user:"Utente",system:"Sistema",repo:"Progetto"},installed:"Installato",open:"Apri",revealInFinder:"Mostra nel Finder",details:"Dettagli"},marketplace:{loadErrorRetry:"Riprova",partialRetry:"Riprova",removeConfirm:"Rimuovi",removeCancel:"Annulla",sourceLabel:"Sorgente",addCancel:"Annulla"},previousPage:"Precedente",nextPage:"Successivo",close:"Chiudi",copy:"Copia"},ja:{title:"プラグイン",sections:{installed:"インストール済み"},loadError:{retry:"再試行"},card:{install:"インストール",uninstall:"アンインストール",installTooltip:"プラグインをインストール"},installModal:{about:"概要",includesSkills:"スキル",includesApps:"アプリ",connected:"接続済み"},detail:{root:"プラグイン",install:"プラグインをインストール",uninstall:"アンインストール",skills:"スキル",apps:"アプリ",developer:"開発者",category:"カテゴリ",version:"バージョン",website:"Webサイト",privacyPolicy:"プライバシーポリシー"},manageTabs:{plugins:"プラグイン",skills:"スキル",marketplace:"マーケットプレイス"},headings:{plugins:"プラグイン",skills:"スキル",marketplace:"マーケットプレイス"},skills:{scope:{user:"ユーザー",system:"システム",repo:"プロジェクト"},installed:"インストール済み",open:"開く",revealInFinder:"Finderで表示",details:"詳細"},marketplace:{loadErrorRetry:"再試行",partialRetry:"再試行",removeConfirm:"削除",removeCancel:"キャンセル",sourceLabel:"ソース",addCancel:"キャンセル"},previousPage:"前へ",nextPage:"次へ",close:"閉じる",copy:"コピー"},ko:{title:"플러그인",sections:{installed:"설치됨"},loadError:{retry:"다시 시도"},card:{install:"설치",uninstall:"제거",installTooltip:"플러그인 설치"},installModal:{about:"정보",includesSkills:"스킬",includesApps:"앱",includesMcpServers:"MCP 서버",connected:"연결됨"},detail:{root:"플러그인",install:"플러그인 설치",uninstall:"제거",skills:"스킬",apps:"앱",mcpServers:"MCP 서버",developer:"개발자",category:"카테고리",version:"버전",website:"웹사이트",privacyPolicy:"개인정보 보호정책"},manageTabs:{plugins:"플러그인",skills:"스킬",marketplace:"마켓플레이스"},headings:{plugins:"플러그인",skills:"스킬",marketplace:"마켓플레이스"},skills:{scope:{user:"사용자",system:"시스템",repo:"프로젝트"},installed:"설치됨",open:"열기",revealInFinder:"Finder에서 보기",details:"세부 정보"},marketplace:{loadErrorRetry:"다시 시도",partialRetry:"다시 시도",removeConfirm:"제거",removeCancel:"취소",sourceLabel:"소스",addCancel:"취소"},previousPage:"이전",nextPage:"다음",close:"닫기",copy:"복사"},"pt-BR":{sections:{installed:"Instalado"},loadError:{retry:"Tentar novamente"},card:{install:"Instalar",uninstall:"Desinstalar",installTooltip:"Instalar plugin"},installModal:{about:"Sobre",connected:"Conectado"},detail:{install:"Instalar plugin",uninstall:"Desinstalar",developer:"Desenvolvedor",category:"Categoria",version:"Versão",website:"Site",privacyPolicy:"política de privacidade"},skills:{scope:{user:"Usuário",system:"Sistema",repo:"Projeto"},installed:"Instalado",open:"Abrir",revealInFinder:"Mostrar no Finder",details:"Detalhes"},marketplace:{loadErrorRetry:"Tentar novamente",partialRetry:"Tentar novamente",removeConfirm:"Remover",removeCancel:"Cancelar",sourceLabel:"Código-fonte",addCancel:"Cancelar"},previousPage:"Anterior",nextPage:"Próximo",close:"Fechar",copy:"Copiar"},ru:{title:"Плагины",sections:{installed:"Установлено"},loadError:{retry:"Повторить"},card:{install:"Установить",uninstall:"Удалить",installTooltip:"Установить плагин"},installModal:{about:"О программе",includesSkills:"Навыки",includesApps:"Приложения",connected:"Подключено"},detail:{root:"Плагины",install:"Установить плагин",uninstall:"Удалить",skills:"Навыки",apps:"Приложения",developer:"Разработчик",category:"Категория",version:"Версия",website:"Сайт",privacyPolicy:"политику конфиденциальности"},manageTabs:{plugins:"Плагины",skills:"Навыки"},headings:{plugins:"Плагины",skills:"Навыки"},skills:{scope:{user:"Пользователь",system:"Система",repo:"Проект"},installed:"Установлено",open:"Открыть",revealInFinder:"Показать в Finder",details:"Подробности"},marketplace:{loadErrorRetry:"Повторить",partialRetry:"Повторить",removeConfirm:"Удалить",removeCancel:"Отмена",sourceLabel:"Исходник",addCancel:"Отмена"},previousPage:"Предыдущее",nextPage:"Следующее",close:"Закрыть",copy:"Копировать"},"zh-CN":{catalog:{navigation:"工具箱导航",customize:"工具箱",content:"插件与技能内容",pluginViews:"插件视图",personal:"个人",showMore:"查看其余 {{count}} 项",title:"插件",description:"发现插件,管理技能与工具",search:"搜索插件和技能",clearSearch:"清除搜索",sourceHelp:"添加 GitHub 仓库、Git 地址或本地文件夹。",scope:"技能范围",allScopes:"全部范围",skillCount:"{{count}} 个技能",location:"位置",fromPlugin:"来自插件",toggleNotApplied:"技能实际状态与请求不一致。"},title:"插件",beta:"BETA",subtitle:"在你常用的工具中使用 Codex",search:"搜索插件",manage:"管理",pageActions:"页面操作",addMarketplace:"添加插件市场",sections:{featured:"推荐",installed:"已安装",installedEmpty:"尚未安装插件",showLess:"收起",seeMore:"查看更多",seeMoreDescription:"查看{{pluginNames}}等更多"},empty:"未找到插件",loading:"正在加载插件…",loadError:{title:"插件加载失败",retry:"重试"},card:{install:"安装",installing:"正在安装",uninstalling:"正在卸载",manage:"管理",moreActions:"更多操作",uninstall:"卸载",tryNow:"立即试用",disabledInstallTooltip:"你的管理员已关闭访问权限",disabledByAdmin:"已被管理员禁用",installTooltip:"安装插件",gitMarketplace:"来自 Git 市场",namedGitMarketplace:"来自 {{marketplaceName}} Git 市场",folderMarketplace:"来自文件夹插件市场",namedFolderMarketplace:"来自 {{marketplaceName}}",localPlugin:"来自此设备上的个人插件市场",enabledStatus:"插件已启用",disabledStatus:"插件已禁用",installedByAdmin:"由管理员安装",enable:"启用 {{pluginName}}",disable:"禁用 {{pluginName}}"},disabledReason:{planNotEligible:"你的套餐不支持",requiredAppUnavailable:"所需应用不可用",unknown:"不可用"},toast:{installed:"{{pluginName}} 插件已安装",installError:"插件安装失败",refreshError:"已安装 {{pluginName}},但刷新插件列表失败",uninstalled:"{{pluginName}} 插件已卸载",uninstallError:"插件卸载失败",uninstallNotApplied:"刷新后插件仍处于已安装状态,请重试。",skillsReloadError:"插件已更改,但无法刷新技能。请先重新加载技能,再开始新聊天",syncError:"操作已保存,但列表刷新失败:{{message}}",toggleError:"无法更新插件",enabled:"{{pluginName}} 插件已启用",disabled:"{{pluginName}} 插件已禁用",toggleNotApplied:"刷新后的插件状态与请求不一致,请重试。"},installModal:{title:"安装 {{pluginName}}",install:"安装 {{pluginName}}",installing:"正在安装 {{pluginName}}",developedBy:"由 {{developerName}} 开发",category:"类别:{{category}}",about:"关于",capabilities:"功能",includes:"包含内容",includesSkills:"技能",includesApps:"应用",includesMcpServers:"MCP 服务器",needsAppsTitle:"将应用连接到 {{pluginName}}",needsAppsSubtitle:"从你已在使用的应用中获得相关性更强的帮助。你也可以稍后再设置。",tryNow:"立即试用 {{pluginName}}",viewDetails:"查看详情",connect:"连接",connected:"已连接",connecting:"已打开链接"},detail:{root:"插件",install:"安装插件",installing:"正在安装",tryNow:"立即试用",moreActions:"更多操作",uninstall:"卸载",loading:"正在加载",errorTitle:"无法加载插件",missing:"未找到插件",missingDescription:"无法从插件市场详情页加载此插件。",skills:"技能",apps:"应用",mcpServers:"MCP 服务器",hooks:"钩子",information:"信息",developer:"开发者",category:"类别",version:"版本",website:"网站",capabilities:"功能",privacyPolicy:"隐私政策",termsOfService:"服务条款",unavailable:"不可用",disabledByAdmin:"管理员已禁用",fallbackTitle:"插件"},breadcrumb:{manage:"管理"},manageTabs:{aria:"管理扩展程序",plugins:"插件",skills:"技能",marketplace:"市场"},headings:{plugins:"插件",skills:"技能",marketplace:"市场"},skills:{document:{open:"打开",reveal:"在文件夹中显示",copy:"复制 Markdown",content:"技能正文",error:"无法读取 SKILL.md"},search:"搜索技能",scope:{user:"用户",repo:"项目",system:"系统",admin:"管理员"},empty:"找不到技能",installed:"已安装",loading:"正在加载技能…",refresh:"刷新",filteredEmpty:"没有符合筛选条件的技能",filteredEmptyDescription:"尝试调整你的搜索内容或范围筛选条件",enable:"启用技能",disable:"禁用技能",enabledStatus:"技能已启用",disabledStatus:"技能已禁用",disabledBadge:"已禁用",enabledToast:"{{skillName}} 技能已启用",disabledToast:"{{skillName}} 技能已禁用",toggleError:"无法更新技能",moreActions:"更多操作",open:"打开",revealInFinder:"在 Finder 中显示",revealInFileExplorer:"在文件资源管理器中显示",revealInFileManager:"在文件管理器中显示",details:"详情"},marketplace:{subtitle:"管理可用的插件市场",search:"搜索市场",empty:"未找到任何市场",loading:"正在加载市场…",loadErrorTitle:"无法加载插件市场",loadErrorRetry:"重试",partialTitle:"部分插件市场无法加载",partialRetry:"重试",upgrade:"升级市场",upgradeButton:"升级",upgradeBuiltIn:"内置市场会自动更新",upgradeLocal:"只能升级 Git 市场",upgradeAll:"升级",upgradeAllTooltip:"升级所有市场",remove:"移除市场",removeBuiltIn:"无法移除内置市场",removeConfigured:"仅可移除已配置的市场",removeTitle:"是否移除“{{marketplaceName}}”?",removeDescription:"这会从你的配置中移除该市场。除非你重新添加,否则其插件不会显示。",removeConfirm:"移除",removeCancel:"取消",addTitle:"添加插件市场",addSubtitle:"从 GitHub 仓库、Git URL 或本地文件夹添加。了解更多",sourceLabel:"来源",sourcePlaceholder:"openai/plugins 或 git@github.com:org/repo.git",sourceRequired:"请输入市场来源",refLabel:"Git 引用",refPlaceholder:"主分支",sparseLabel:"稀疏路径",sparsePlaceholder:"plugins/codex",addSubmit:"添加市场",addCancel:"取消",added:"已添加 {{marketplaceName}} 市场",alreadyAdded:"{{marketplaceName}} 已添加",addFailed:"添加插件市场失败",refreshFailed:"{{marketplaceName}} 市场已配置,但刷新插件列表失败",removed:"已移除 {{marketplaceName}} 市场",removeError:"移除市场失败",upgraded:"{{marketplaceName}} 市场已升级",upgradeError:"升级市场失败",upgradedAll:"市场已升级",upgradeAllError:"部分市场升级失败",upgradeAllRequestError:"升级市场失败",pluginCount_one:"{{count}} 个插件",pluginCount_other:"{{count}} 个插件",partialMore_one:"还有 {{count}} 个市场无法加载",partialMore_other:"还有 {{count}} 个市场无法加载"},previousPage:"上一页",nextPage:"下一页",close:"关闭",copy:"复制",extensions:"扩展"}};
|
|
2
|
+
export{P};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{codexMessageError as u,codexTurnError as i}from"@nyssance/codex-acp-v2/client";var a=[10,30,120,300];function
|
|
2
|
-
export{
|
|
1
|
+
import{codexMessageError as u,codexTurnError as i}from"@nyssance/codex-acp-v2/client";var a=[10,30,120,300];function ns(e){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r],t=o.errors.at(-1),l=t===void 0?null:u(t);if(l===null||i(l).kind!=="overloaded")break;if(n++,o.user!==null)break}return a[n-1]??null}
|
|
2
|
+
export{ns};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{ye}from"./chunk-q8c4k6qh.js";import{j,dr}from"./chunk-pvm6d77q.js";import{t}from"./chunk-aj0z9a5r.js";import{cn as d}from"cn";import{SquareIcon as b}from"lucide-react";import{Kbd as f}from"@nyssance/shadcn/vega/components/ui/kbd";import{Tooltip as h,TooltipContent as I,TooltipTrigger as T}from"@nyssance/shadcn/vega/components/ui/tooltip";import{jsx as o,jsxs as n,Fragment as P}from"react/jsx-runtime";var v=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform);function zi({active:a,sending:r,ready:p,hasMentions:m=!1,onStop:c}){let{t:e}=t(),s=ye(),u=m||s.textInput.value.trim().length>0||s.attachments.files.length>0,l=!p||r||!u,i=a?e("composer.steer"):e("composer.send");return n(P,{children:[a&&o(j,{"aria-label":e("composer.stop"),title:e("composer.stop"),className:"border-border size-7 rounded-full border",onClick:c,children:o(b,{className:"size-3 fill-current"})}),o("div",{className:d(l&&"cursor-not-allowed"),children:n(h,{children:[o(T,{render:o(dr,{"aria-label":i,disabled:l,"aria-busy":r,status:r?"submitted":"ready"})}),n(I,{role:"tooltip",children:[o("span",{className:"min-w-0",children:i}),o(f,{className:"shrink-0",children:v?"↩":"Enter"})]})]})})]})}
|
|
2
|
+
export{zi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{br}from"./chunk-86tpa1nn.js";import{jo,je,t,Ke,n,ce}from"./chunk-e4ws15tg.js";import{ls,Gt,Vo,us,ps}from"./chunk-q78ng7mn.js";import{Ot}from"./chunk-0t4fcgge.js";import{_r}from"./chunk-zea1chz7.js";import{Hr}from"./chunk-cef598jy.js";import{Ur,Br}from"./chunk-zb0m2cqy.js";import{es,ts}from"./chunk-965sngjd.js";import{Fr}from"./chunk-64apxzn7.js";import{Or}from"./chunk-84p483n0.js";import{is}from"./chunk-19jwgexv.js";import{codexExtensionCapabilities as ze,codexMessageError as Ve,codexRetryNotice as Be,codexTurnError as Oe,nativeTurnId as ge}from"@nyssance/codex-acp-v2/client";import{ArrowDownIcon as qe}from"lucide-react";import{useCallback as M,useEffect as H,useLayoutEffect as Te,useMemo as K,useRef as b,useState as U}from"react";import{flushSync as ye}from"react-dom";import{Button as Y}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as E}from"react/jsx-runtime";var xe=24;function Fe(e){let f=Math.max(0,e.turnTopPx-xe),v=Math.max(0,e.scrollHeightPx-e.viewportHeightPx),c=f-v;return{scrollTopPx:f,spacerPx:c>0?e.spacerPx+c:e.spacerPx}}function De({viewportRef:e,viewportProps:f,children:v}){return o("div",{ref:e,...f,className:"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain outline-none",children:v})}function Ue({sessionId:e,turnId:f,root:v,error:c,connected:S}){let z=b(null),V=Ke(),{t:w}=t(),k=M(()=>{V.loadHistoryTurn(e,f).catch(()=>{})},[V,e,f]);return H(()=>{if(!v||!z.current||!S||c)return;let R=new IntersectionObserver((_)=>{if(_.some((g)=>g.isIntersecting))R.disconnect(),k()},{root:v,rootMargin:"800px 0px"});return R.observe(z.current),()=>R.disconnect()},[v,S,c,k]),o("div",{ref:z,className:"flex min-h-80 flex-col justify-center gap-3 py-8","data-history-turn":f,"data-markdown-pending":!0,children:c?E("div",{className:"flex flex-col items-center gap-2",children:[o("p",{role:"alert",className:"text-destructive text-xs",children:c}),o(Y,{variant:"outline",size:"sm",onClick:k,disabled:!S,children:w("timeline.navigationRetry")})]}):E("div",{role:"status","aria-label":w("timeline.navigationLoading"),className:"space-y-3",children:[o("div",{className:"bg-muted ml-auto h-5 w-1/3 rounded"}),o("div",{className:"bg-muted h-3 w-4/5 rounded"}),o("div",{className:"bg-muted h-3 w-3/5 rounded"})]})})}function _e(e,f){let v=b([]),c=b(null);if(c.current?.items!==e.items||c.current.state!==e.state||c.current.ended!==e.turnEndedAt||c.current.usage!==e.turnUsage||c.current.historyOrder!==f)c.current={state:e.state,items:e.items,ended:e.turnEndedAt,usage:e.turnUsage,historyOrder:f,turns:ls(e,v.current,f)};let S=c.current.turns;return v.current=S,S}function Lt(e){return o(je,{host:e.host,client:e.client,children:o(jo,{value:e.session.cwd,children:o(We,{...e})})})}function We({session:e,leading:f,afterTurn:v,turnWork:c,answerActions:S,turnFooter:z,renderUserMessage:V,insert:w,navigation:k,anchorNewTurn:R=!1,Viewport:_=De}){let g=Ke(),L=t(),T=n((r)=>r.historyNavigation[e.id]),he=K(()=>e.commands.map((r)=>r.name),[e.commands]),m=_e(e,T?.turns),A=m.at(-1)?.key,be=us(e,m),y=e.state==="running"||e.state==="requires_action",W=K(()=>Hr(m,T),[m,T]),Z=K(()=>W.flatMap((r)=>r.turn===void 0?[]:[{...r.turn,key:r.turnKey}]),[W]),we=K(()=>k===void 0?[]:Ur(m,e.turnUsage,T),[k,m,e.turnUsage,T]),ee=w&&w.afterItemId!==null?m.findIndex((r)=>r.items.some((u)=>u.id===w.afterItemId)):-1,j=b(m);j.current=m;let[l,Re]=U(null),x=n((r)=>r.historyPages[e.id]),P=n((r)=>r.connection==="ready"),Se=n((r)=>ze(r.agent).sessionRetry),te=x!==void 0;H(()=>{if(P&&te&&!e.restoring)g.loadHistoryNavigation(e.id).catch(()=>{})},[g,P,te,e.id,e.restoring]);let[ke,Pe]=U(!1),q=b(null),[Ie,ne]=U(!1),re=b(0),X=b({key:A,running:y});X.current={key:A,running:y};let[ie,F]=U(0),I=b(0),N=b(null);I.current=ie;let Ne=M(()=>{if(N.current!==null)N.current.keepTop=!1},[]),{isFollowing:C,scrollToBottom:G,stopFollowing:B,schedulePin:oe,contentResized:le,beginLocate:ae,cancelLocation:ue}=Or(l,y,Ne),se=M(()=>{if(l===null||!y)return;let r=m.at(-1)?.key;if(r===void 0)return;let u=ae(!0),d=()=>u.isCurrent()&&X.current.running&&X.current.key===r,i=()=>requestAnimationFrame(()=>requestAnimationFrame(()=>{if(!d())return;let a=l.querySelector(`[data-codex-turn="${CSS.escape(r)}"]`);if(a===null)return;let s=l.scrollTop+a.getBoundingClientRect().top-l.getBoundingClientRect().top,p=Fe({turnTopPx:s,scrollHeightPx:l.scrollHeight,viewportHeightPx:l.clientHeight,spacerPx:I.current});N.current=p.spacerPx>0?{element:a,heightPx:a.getBoundingClientRect().height+p.spacerPx,keepTop:!0}:null,ye(()=>F(p.spacerPx)),requestAnimationFrame(()=>{if(d())u.finish(p.scrollTopPx)})})),h=q.current;if(h===null)return;h.scrollToKey(r,void 0,{align:"top"}).then(()=>{if(d())i()})},[ae,y,l,m]);Te(()=>{if(!R||y)return;ue(),N.current=null,I.current=0,F(0)},[R,ue,y]);let J=M(()=>{B(),g.loadOlderHistory(e.id).catch(()=>{})},[g,e.id,B]);H(()=>{if(l===null)return;let r=()=>{let u=l.scrollTop<600;if(Pe(u),u&&!T?.complete&&P&&!e.restoring&&!C&&x?.cursor&&!x.loading&&!x.error)J()};return r(),l.addEventListener("scroll",r,{passive:!0}),()=>l.removeEventListener("scroll",r)},[P,x,C,J,l,e.restoring,T?.complete]),H(()=>{es({sessionId:e.id,turns:Z,api:q.current,beforeReveal:B,terminals:e.terminals})},[e.id,e.terminals,Z,B]),H(()=>()=>ts(e.id),[e.id]);let He=M(async(r,u)=>{let d=++re.current;ne(!0);try{if(r.isLoaded===!1&&r.nativeTurnId!==void 0)await g.loadHistoryTurn(e.id,r.nativeTurnId),await new Promise((s)=>requestAnimationFrame(()=>s()));if(!u())return null;let i=j.current.find((s)=>s.user?.id===(r.messageId??r.id))??j.current.find((s)=>s.user!==null&&r.nativeTurnId!==void 0&&s.items.some((p)=>ge(p)===r.nativeTurnId));if(!i?.user)return null;let h=i.user.id,a=q.current;if(a===null)throw Error("Virtual timeline is not mounted");return await a.scrollToKey(i.key,(s)=>s.querySelector(`[data-content-search-unit-key="${CSS.escape(h)}"]`),{align:"top"}),document.querySelector(`[data-chat-scroll] [data-content-search-unit-key="${CSS.escape(h)}"]`)}finally{if(re.current===d)ne(!1)}},[g,e.id]),Ee=M(async(r)=>{if(r.nativeTurnId!==void 0)await g.previewHistoryTurn(e.id,r.nativeTurnId)},[g,e.id]);H(()=>{if(l===null)return;let r=l.querySelector("[data-codex-timeline]");if(r===null)throw Error("Timeline content element is missing");let u=new ResizeObserver(()=>{let a=N.current,s=null;if(a!==null){let p=Math.max(0,a.heightPx-a.element.getBoundingClientRect().height);if(p!==I.current&&(p<I.current||a.keepTop)){if(I.current=p,ye(()=>F(p)),p===0)N.current=null}if(p>0&&a.keepTop)s=l.scrollTop+a.element.getBoundingClientRect().top-l.getBoundingClientRect().top-xe}le(s)});u.observe(r),u.observe(l);let d=null,i=()=>{let a=A===void 0?null:r.querySelector(`[data-codex-turn="${CSS.escape(A)}"]`);if(a===d)return;if(d!==null)u.unobserve(d);if(d=a,d!==null)u.observe(d)};i();let h=new MutationObserver(i);return h.observe(r,{childList:!0,subtree:!0}),()=>{h.disconnect(),u.disconnect()}},[le,A,l]),H(()=>{if(e.items.length===0)return;oe()},[oe,e.items]);let de=b(null);Te(()=>{if(l===null)return;let r=m.at(-1),u=de.current;if(de.current=r===void 0?null:{key:r.key,running:y},r===void 0||u===null||r.user===null||r.replayed)return;if(R){if(y&&e.turnEndedAt[r.user.id]===void 0&&(r.key!==u.key||!u.running))N.current=null,I.current=0,F(0),se()}else if(r.key!==u.key)G()},[se,R,y,G,l,e.turnEndedAt,m]);let Le=(r,u)=>{let d=r,i=d.turn;if(i===void 0){if(d.nativeTurnId===void 0)throw Error(`Turn is missing at index ${u}`);return o(Ue,{sessionId:e.id,turnId:d.nativeTurnId,root:l,error:T?.turnErrors[d.nativeTurnId],connected:P&&!C&&!Ie})}let h=m.indexOf(i),a=i.key===be,s=ps(e,m,h),p=!a&&s.continued,D=i.key===A,O=i.errors.at(-1),me=O===void 0?null:Ve(O),Q=O===void 0?null:ge(O),Ae=!e.subagent&&D&&!a&&P&&Se&&e.attached&&!e.readOnly&&!e.restoring&&O===e.items.at(-1)&&me!==null&&Oe(me).kind==="overloaded"&&Q!==null&&e.lastStopReason!=="end_turn"&&e.lastStopReason!=="cancelled",fe=z?.(i)??null,pe=c?.(i)??null,Ce=pe!==null||i.work.length>0||i.final.length>0||i.errors.length>0||a||fe!==null||Gt(i)||Vo(i)||D&&(e.error!==null||e.lastStopReason==="cancelled"),ve=i.user===null?null:Ot(i);return E("div",{"data-virtualized-turn-content":!0,"data-codex-turn":i.key,className:"flex flex-col gap-1.5",children:[i.user!==null&&(V===void 0?o(is,{item:i.user,messageTime:ve,skillNames:he}):V(i.user,ve)),Ce&&o(_r,{sessionId:e.id,turn:i,terminals:e.terminals,active:a,blocked:e.state==="requires_action",continued:p,edits:s.edits,activityItems:s.items,workStartedAt:s.startedAt,isLast:D,error:e.error,retrying:a?Be(e._meta)??void 0:void 0,retry:Ae?{turnId:Q,delaySeconds:Fr(m),run:(Me)=>g.retrySession(e.id,Q,Me)}:void 0,interrupted:Vo(i)||!a&&D&&e.lastStopReason==="cancelled",extraWork:pe,answerActions:S?.(i),footer:fe}),u===ee&&w?.node,v?.(i)]})};return E("div",{className:"relative flex min-h-0 flex-1 flex-col","data-stream-style":"codexUI",children:[o(_,{viewportRef:Re,viewportProps:{"data-chat-scroll":"",style:{overflowAnchor:"none"},tabIndex:0,role:"log","aria-label":L.t("timeline.label")},children:o("div",{className:"codex-timeline-content flex min-h-full w-full flex-col",children:E("div",{"data-timeline-user-message-navigation-content":!0,className:"mx-auto flex w-full max-w-3xl shrink-0 flex-col",children:[w&&ee===-1&&w.node,o(br,{ref:q,entries:W,renderTurn:Le,scrollElement:l,sessionKey:e.id,preserveViewport:!C,leadingInsetPx:12,leadingContent:f===void 0?void 0:o("div",{className:"pt-3",children:f})}),R&&o("div",{"aria-hidden":"true","data-turn-anchor-spacer":!0,className:"shrink-0",style:{height:ie}}),o("div",{"aria-hidden":"true",className:"h-6 shrink-0"})]})})}),o("div",{"aria-hidden":"true",className:"codex-timeline-bottom-fade"}),T?.error&&o("div",{className:"absolute inset-x-0 top-2 z-10 flex justify-center",children:o(Y,{variant:"outline",size:"sm",disabled:!P,title:T.error,onClick:()=>{g.loadHistoryNavigation(e.id).catch(()=>{})},children:L.t("timeline.navigationRetry")})}),ke&&x?.cursor&&!T?.complete&&E("div",{className:"absolute inset-x-0 top-2 z-10 flex flex-col items-center gap-1","data-history-loader":!0,children:[o(Y,{variant:"outline",size:"sm",disabled:!P||e.restoring||x.loading,onClick:J,children:x.loading?L.t("timeline.loadingEarlier"):L.t("timeline.loadEarlier")}),x.error&&o("p",{role:"alert",className:"bg-background text-destructive max-w-md rounded px-2 py-1 text-xs",children:x.error})]}),k!==void 0&&o(Br,{items:we,audio:k.audio,scrollRoot:l,beforeReveal:B,ensureItemMounted:He,onPreviewItem:Ee,onRevealError:(r)=>ce(L,r),targetTopMarginPx:16},e.id),o("button",{type:"button",className:C?"codex-scroll-to-bottom codex-scroll-to-bottom-hidden":"codex-scroll-to-bottom",tabIndex:C?-1:void 0,onClick:G,"aria-label":L.t("timeline.scrollToBottom"),children:y?E("span",{className:"codex-scroll-to-bottom-dots","aria-hidden":"true",children:[o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"})]}):o(qe,{})})]})}
|
|
2
|
-
export{
|
|
1
|
+
import{wr}from"./chunk-nvadhyne.js";import{Qo,qe,t,We,n,ue}from"./chunk-aj0z9a5r.js";import{ms,jt,Wo,hs,vs}from"./chunk-d607659a.js";import{$t}from"./chunk-ra52dqfb.js";import{Br}from"./chunk-1b3frq9c.js";import{is}from"./chunk-gy446wcz.js";import{Pr,Tr}from"./chunk-ymdhz3x0.js";import{rs,ss}from"./chunk-qbpy0aqe.js";import{ns}from"./chunk-w2p1g8rp.js";import{os}from"./chunk-6br4568a.js";import{cs}from"./chunk-eyw05qyj.js";import{codexExtensionCapabilities as ze,codexMessageError as Ve,codexRetryNotice as Be,codexTurnError as Oe,nativeTurnId as ge}from"@nyssance/codex-acp-v2/client";import{ArrowDownIcon as Fe}from"lucide-react";import{useCallback as M,useEffect as H,useLayoutEffect as Te,useMemo as K,useRef as b,useState as U}from"react";import{flushSync as ye}from"react-dom";import{Button as Y}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as E}from"react/jsx-runtime";var xe=24;function De(e){let f=Math.max(0,e.turnTopPx-xe),v=Math.max(0,e.scrollHeightPx-e.viewportHeightPx),c=f-v;return{scrollTopPx:f,spacerPx:c>0?e.spacerPx+c:e.spacerPx}}function Ke({viewportRef:e,viewportProps:f,children:v}){return o("div",{ref:e,...f,className:"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain outline-none",children:v})}function Ue({sessionId:e,turnId:f,root:v,error:c,connected:S}){let z=b(null),V=We(),{t:w}=t(),k=M(()=>{V.loadHistoryTurn(e,f).catch(()=>{})},[V,e,f]);return H(()=>{if(!v||!z.current||!S||c)return;let R=new IntersectionObserver((_)=>{if(_.some((g)=>g.isIntersecting))R.disconnect(),k()},{root:v,rootMargin:"800px 0px"});return R.observe(z.current),()=>R.disconnect()},[v,S,c,k]),o("div",{ref:z,className:"flex min-h-80 flex-col justify-center gap-3 py-8","data-history-turn":f,"data-markdown-pending":!0,children:c?E("div",{className:"flex flex-col items-center gap-2",children:[o("p",{role:"alert",className:"text-destructive text-xs",children:c}),o(Y,{variant:"outline",size:"sm",onClick:k,disabled:!S,children:w("timeline.navigationRetry")})]}):E("div",{role:"status","aria-label":w("timeline.navigationLoading"),className:"space-y-3",children:[o("div",{className:"bg-muted ml-auto h-5 w-1/3 rounded"}),o("div",{className:"bg-muted h-3 w-4/5 rounded"}),o("div",{className:"bg-muted h-3 w-3/5 rounded"})]})})}function _e(e,f){let v=b([]),c=b(null);if(c.current?.items!==e.items||c.current.state!==e.state||c.current.ended!==e.turnEndedAt||c.current.usage!==e.turnUsage||c.current.historyOrder!==f)c.current={state:e.state,items:e.items,ended:e.turnEndedAt,usage:e.turnUsage,historyOrder:f,turns:ms(e,v.current,f)};let S=c.current.turns;return v.current=S,S}function Ut(e){return o(qe,{host:e.host,client:e.client,children:o(Qo,{value:e.session.cwd,children:o($e,{...e})})})}function $e({session:e,leading:f,afterTurn:v,turnWork:c,answerActions:S,turnFooter:z,renderUserMessage:V,insert:w,navigation:k,anchorNewTurn:R=!1,Viewport:_=Ke}){let g=We(),L=t(),T=n((r)=>r.historyNavigation[e.id]),he=K(()=>e.commands.map((r)=>r.name),[e.commands]),m=_e(e,T?.turns),A=m.at(-1)?.key,be=hs(e,m),y=e.state==="running"||e.state==="requires_action",W=K(()=>is(m,T),[m,T]),Z=K(()=>W.flatMap((r)=>r.turn===void 0?[]:[{...r.turn,key:r.turnKey}]),[W]),we=K(()=>k===void 0?[]:Pr(m,e.turnUsage,T),[k,m,e.turnUsage,T]),ee=w&&w.afterItemId!==null?m.findIndex((r)=>r.items.some((u)=>u.id===w.afterItemId)):-1,j=b(m);j.current=m;let[l,Re]=U(null),x=n((r)=>r.historyPages[e.id]),P=n((r)=>r.connection==="ready"),Se=n((r)=>ze(r.agent).sessionRetry),te=x!==void 0;H(()=>{if(P&&te&&!e.restoring)g.loadHistoryNavigation(e.id).catch(()=>{})},[g,P,te,e.id,e.restoring]);let[ke,Pe]=U(!1),q=b(null),[Ie,ne]=U(!1),re=b(0),X=b({key:A,running:y});X.current={key:A,running:y};let[ie,F]=U(0),I=b(0),N=b(null);I.current=ie;let Ne=M(()=>{if(N.current!==null)N.current.keepTop=!1},[]),{isFollowing:C,scrollToBottom:G,stopFollowing:B,schedulePin:oe,contentResized:le,beginLocate:ae,cancelLocation:se}=os(l,y,Ne),ce=M(()=>{if(l===null||!y)return;let r=m.at(-1)?.key;if(r===void 0)return;let u=ae(!0),d=()=>u.isCurrent()&&X.current.running&&X.current.key===r,i=()=>requestAnimationFrame(()=>requestAnimationFrame(()=>{if(!d())return;let a=l.querySelector(`[data-codex-turn="${CSS.escape(r)}"]`);if(a===null)return;let s=l.scrollTop+a.getBoundingClientRect().top-l.getBoundingClientRect().top,p=De({turnTopPx:s,scrollHeightPx:l.scrollHeight,viewportHeightPx:l.clientHeight,spacerPx:I.current});N.current=p.spacerPx>0?{element:a,heightPx:a.getBoundingClientRect().height+p.spacerPx,keepTop:!0}:null,ye(()=>F(p.spacerPx)),requestAnimationFrame(()=>{if(d())u.finish(p.scrollTopPx)})})),h=q.current;if(h===null)return;h.scrollToKey(r,void 0,{align:"top"}).then(()=>{if(d())i()})},[ae,y,l,m]);Te(()=>{if(!R||y)return;se(),N.current=null,I.current=0,F(0)},[R,se,y]);let J=M(()=>{B(),g.loadOlderHistory(e.id).catch(()=>{})},[g,e.id,B]);H(()=>{if(l===null)return;let r=()=>{let u=l.scrollTop<600;if(Pe(u),u&&!T?.complete&&P&&!e.restoring&&!C&&x?.cursor&&!x.loading&&!x.error)J()};return r(),l.addEventListener("scroll",r,{passive:!0}),()=>l.removeEventListener("scroll",r)},[P,x,C,J,l,e.restoring,T?.complete]),H(()=>{rs({sessionId:e.id,turns:Z,api:q.current,beforeReveal:B,terminals:e.terminals})},[e.id,e.terminals,Z,B]),H(()=>()=>ss(e.id),[e.id]);let He=M(async(r,u)=>{let d=++re.current;ne(!0);try{if(r.isLoaded===!1&&r.nativeTurnId!==void 0)await g.loadHistoryTurn(e.id,r.nativeTurnId),await new Promise((s)=>requestAnimationFrame(()=>s()));if(!u())return null;let i=j.current.find((s)=>s.user?.id===(r.messageId??r.id))??j.current.find((s)=>s.user!==null&&r.nativeTurnId!==void 0&&s.items.some((p)=>ge(p)===r.nativeTurnId));if(!i?.user)return null;let h=i.user.id,a=q.current;if(a===null)throw Error("Virtual timeline is not mounted");return await a.scrollToKey(i.key,(s)=>s.querySelector(`[data-content-search-unit-key="${CSS.escape(h)}"]`),{align:"top"}),document.querySelector(`[data-chat-scroll] [data-content-search-unit-key="${CSS.escape(h)}"]`)}finally{if(re.current===d)ne(!1)}},[g,e.id]),Ee=M(async(r)=>{if(r.nativeTurnId!==void 0)await g.previewHistoryTurn(e.id,r.nativeTurnId)},[g,e.id]);H(()=>{if(l===null)return;let r=l.querySelector("[data-codex-timeline]");if(r===null)throw Error("Timeline content element is missing");let u=new ResizeObserver(()=>{let a=N.current,s=null;if(a!==null){let p=Math.max(0,a.heightPx-a.element.getBoundingClientRect().height);if(p!==I.current&&(p<I.current||a.keepTop)){if(I.current=p,ye(()=>F(p)),p===0)N.current=null}if(p>0&&a.keepTop)s=l.scrollTop+a.element.getBoundingClientRect().top-l.getBoundingClientRect().top-xe}le(s)});u.observe(r),u.observe(l);let d=null,i=()=>{let a=A===void 0?null:r.querySelector(`[data-codex-turn="${CSS.escape(A)}"]`);if(a===d)return;if(d!==null)u.unobserve(d);if(d=a,d!==null)u.observe(d)};i();let h=new MutationObserver(i);return h.observe(r,{childList:!0,subtree:!0}),()=>{h.disconnect(),u.disconnect()}},[le,A,l]),H(()=>{if(e.items.length===0)return;oe()},[oe,e.items]);let de=b(null);Te(()=>{if(l===null)return;let r=m.at(-1),u=de.current;if(de.current=r===void 0?null:{key:r.key,running:y},r===void 0||u===null||r.user===null||r.replayed)return;if(R){if(y&&e.turnEndedAt[r.user.id]===void 0&&(r.key!==u.key||!u.running))N.current=null,I.current=0,F(0),ce()}else if(r.key!==u.key)G()},[ce,R,y,G,l,e.turnEndedAt,m]);let Le=(r,u)=>{let d=r,i=d.turn;if(i===void 0){if(d.nativeTurnId===void 0)throw Error(`Turn is missing at index ${u}`);return o(Ue,{sessionId:e.id,turnId:d.nativeTurnId,root:l,error:T?.turnErrors[d.nativeTurnId],connected:P&&!C&&!Ie})}let h=m.indexOf(i),a=i.key===be,s=vs(e,m,h),p=!a&&s.continued,D=i.key===A,O=i.errors.at(-1),me=O===void 0?null:Ve(O),Q=O===void 0?null:ge(O),Ae=!e.subagent&&D&&!a&&P&&Se&&e.attached&&!e.readOnly&&!e.restoring&&O===e.items.at(-1)&&me!==null&&Oe(me).kind==="overloaded"&&Q!==null&&e.lastStopReason!=="end_turn"&&e.lastStopReason!=="cancelled",fe=z?.(i)??null,pe=c?.(i)??null,Ce=pe!==null||i.work.length>0||i.final.length>0||i.errors.length>0||a||fe!==null||jt(i)||Wo(i)||D&&(e.error!==null||e.lastStopReason==="cancelled"),ve=i.user===null?null:$t(i);return E("div",{"data-virtualized-turn-content":!0,"data-codex-turn":i.key,className:"flex flex-col gap-1.5",children:[i.user!==null&&(V===void 0?o(cs,{item:i.user,messageTime:ve,skillNames:he}):V(i.user,ve)),Ce&&o(Br,{sessionId:e.id,turn:i,terminals:e.terminals,active:a,blocked:e.state==="requires_action",continued:p,edits:s.edits,activityItems:s.items,workStartedAt:s.startedAt,isLast:D,error:e.error,retrying:a?Be(e._meta)??void 0:void 0,retry:Ae?{turnId:Q,delaySeconds:ns(m),run:(Me)=>g.retrySession(e.id,Q,Me)}:void 0,interrupted:Wo(i)||!a&&D&&e.lastStopReason==="cancelled",extraWork:pe,answerActions:S?.(i),footer:fe}),u===ee&&w?.node,v?.(i)]})};return E("div",{className:"relative flex min-h-0 flex-1 flex-col","data-stream-style":"codexUI",children:[o(_,{viewportRef:Re,viewportProps:{"data-chat-scroll":"",style:{overflowAnchor:"none"},tabIndex:0,role:"log","aria-label":L.t("timeline.label")},children:o("div",{className:"codex-timeline-content flex min-h-full w-full flex-col",children:E("div",{"data-timeline-user-message-navigation-content":!0,className:"mx-auto flex w-full max-w-3xl shrink-0 flex-col",children:[w&&ee===-1&&w.node,o(wr,{ref:q,entries:W,renderTurn:Le,scrollElement:l,sessionKey:e.id,preserveViewport:!C,leadingInsetPx:12,leadingContent:f===void 0?void 0:o("div",{className:"pt-3",children:f})}),R&&o("div",{"aria-hidden":"true","data-turn-anchor-spacer":!0,className:"shrink-0",style:{height:ie}}),o("div",{"aria-hidden":"true",className:"h-6 shrink-0"})]})})}),o("div",{"aria-hidden":"true",className:"codex-timeline-bottom-fade"}),T?.error&&o("div",{className:"absolute inset-x-0 top-2 z-10 flex justify-center",children:o(Y,{variant:"outline",size:"sm",disabled:!P,title:T.error,onClick:()=>{g.loadHistoryNavigation(e.id).catch(()=>{})},children:L.t("timeline.navigationRetry")})}),ke&&x?.cursor&&!T?.complete&&E("div",{className:"absolute inset-x-0 top-2 z-10 flex flex-col items-center gap-1","data-history-loader":!0,children:[o(Y,{variant:"outline",size:"sm",disabled:!P||e.restoring||x.loading,onClick:J,children:x.loading?L.t("timeline.loadingEarlier"):L.t("timeline.loadEarlier")}),x.error&&o("p",{role:"alert",className:"bg-background text-destructive max-w-md rounded px-2 py-1 text-xs",children:x.error})]}),k!==void 0&&o(Tr,{items:we,audio:k.audio,scrollRoot:l,beforeReveal:B,ensureItemMounted:He,onPreviewItem:Ee,onRevealError:(r)=>ue(L,r),targetTopMarginPx:16},e.id),o("button",{type:"button",className:C?"codex-scroll-to-bottom codex-scroll-to-bottom-hidden":"codex-scroll-to-bottom",tabIndex:C?-1:void 0,onClick:G,"aria-label":L.t("timeline.scrollToBottom"),children:y?E("span",{className:"codex-scroll-to-bottom-dots","aria-hidden":"true",children:[o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"})]}):o(Fe,{})})]})}
|
|
2
|
+
export{Ut};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function Kr(r,e){if(!e.running)return{kind:"idle"};if(e.blocked)return{kind:"waiting"};if(e.retrying)return{kind:"retrying"};let t=r.findLast((i)=>i.kind==="tool"&&i.active);if(t)return{kind:"tool",ownerKey:t.key};let n=r.findLast((i)=>i.kind!=="user");if(n?.active){if(n.kind==="answer")return{kind:"speaking",ownerKey:n.key};if(n.kind==="text")return{kind:"speaking",ownerKey:n.key};if(n.kind==="reasoning")return{kind:"reasoning",ownerKey:n.key};if(n.kind==="plan")return{kind:"planning",ownerKey:n.key};if(n.kind==="compaction")return{kind:"tool",ownerKey:n.key}}if(n?.kind==="answer")return{kind:"idle"};return{kind:"working",ownerKey:n?.key}}
|
|
2
|
+
export{Kr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function ne(n){if(typeof n!=="object"||n===null)return!1;let e=n,t=e.reason??e.message;return e.code===-32000&&typeof t==="string"&&/^Authentication required(?:$|:)/.test(t)}function Un(n){if(typeof n!=="object"||n===null)return!1;let e=n,t=typeof e.data==="object"&&e.data!==null?e.data.details:e.data;return[e.message,e.reason,t].some((o)=>typeof o==="string"&&["The selected provider connection or model is unavailable","The selected model connection is unavailable","The selected ALwith account model is unavailable","The ALwith account changed"].some((a)=>o.includes(a)))}function Sa(n,e){if(!(n instanceof Error))return n;let t=n.data,o=typeof t==="string"?t:typeof t==="object"&&t!==null?t.details:void 0;if(typeof o!=="string"||o.trim()==="")return n;return n.message=`${e}: ${o}`,n}
|
|
2
|
+
export{ne,Un,Sa};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{c}from"./chunk-gk7nn747.js";import{Jr}from"./chunk-b0zzq2ky.js";import{de}from"./chunk-aj0z9a5r.js";import{I}from"./chunk-ckft9abb.js";import{isContentEntry as N,isImage as w,isResourceLink as C}from"@nyssance/codex-acp-v2/client";import{ChevronRightIcon as S,ImageIcon as A,LoaderCircleIcon as R,RefreshCwIcon as T}from"lucide-react";import{useEffect as B,useState as v}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";function ct(e){return e.type==="tool_use"&&e.name==="view_image"&&e.status==="completed"}function E(e){let s=[];for(let[n,l]of e.content.entries()){if(!N(l))continue;let i=l.content;if(w(i))s.push({key:`${e.id}:${n}`,src:`data:${i.mimeType};base64,${i.data}`,alt:e.title??""});if(C(i))s.push({key:`${e.id}:${n}`,path:i.uri,alt:i.name})}if(s.length)return s;let a=e.rawInput;if(a!==null&&typeof a==="object"&&"path"in a&&typeof a.path==="string")return[{key:e.id,path:a.path,alt:a.path.split(/[\\/]/).at(-1)??a.path}];throw Error(`Image view ${e.id} has no image source`)}function U({images:e}){let{loadImage:s,openImageGallery:a,openImage:n,t:l}=c(),i=de(),[g,y]=v({}),[x,k]=v(0),h=JSON.stringify(e);B(()=>{let t=!0,m=JSON.parse(h);y({});for(let o of m)(o.src!==void 0?Promise.resolve(o.src):o.path!==void 0&&s?s(Jr(o.path,i)):Promise.reject(Error("Image loading is unavailable"))).then((u)=>{if(t)y((p)=>({...p,[o.key]:{src:u}}))},()=>{if(t)y((u)=>({...u,[o.key]:{error:!0}}))});return()=>{t=!1}},[h,s,i,x]);let b=e.flatMap((t)=>{let m=g[t.key];return m&&"src"in m?[{src:m.src,alt:t.alt}]:[]});return r("div",{className:"codex-image-thumbnails",children:e.map((t,m)=>{let o=g[t.key];if(!o)return r("div",{className:"codex-image-thumbnail",role:"status","aria-label":l("stream.codex.imageLoading"),children:r(R,{className:"motion-safe:animate-spin","aria-hidden":"true"})},t.key);if("error"in o)return r("button",{type:"button",className:"codex-image-thumbnail",title:t.alt,"aria-label":l("stream.codex.imageFailed"),onClick:()=>k((d)=>d+1),children:r(T,{"aria-hidden":"true"})},t.key);return r("button",{type:"button",className:"codex-image-thumbnail",title:t.alt,onClick:()=>{let d=e.slice(0,m).filter((u)=>{let p=g[u.key];return p&&"src"in p}).length;if(a)a(b,d);else n?.(o.src)},children:r("img",{src:o.src,alt:t.alt,draggable:!1})},t.key)})})}function Zr({blocks:e}){let{t:s}=c(),a=e.flatMap(E),[n,l]=I(`image-view:${e[0].id}`,!1);return f("div",{className:"codex-activity-item",children:[f("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":n,onClick:()=>l((i)=>!i),children:[f("span",{className:"codex-activity-label",children:[r(A,{className:"codex-activity-icon","aria-hidden":"true"}),r("span",{className:"codex-activity-leading",children:s("stream.codex.viewedImages",{count:a.length})})]}),r(S,{className:n?"codex-image-chevron codex-image-chevron-open":"codex-image-chevron","aria-hidden":"true"})]}),n&&r(U,{images:a})]})}
|
|
2
|
+
export{ct,Zr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{n}from"./chunk-aj0z9a5r.js";import{Ut}from"./chunk-wf0ytnh9.js";import{e,x}from"./chunk-qgrd5xre.js";import{co}from"./chunk-0xztk729.js";import{Loader2Icon as v}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 o,jsxs as i}from"react/jsx-runtime";function vn({session:t,timeline:s}){let{host:m,client:a}=e(),{t:r}=m,u=n((h)=>h.historyPages[t.id]?.cursor!=null),y=co(t,s?.turnWork),E=()=>x(m,a.open(t.id,t.cwd)),p=o(Ut,{...s,session:t,client:a,host:m,turnWork:y});if(t.restoring)return t.items.length===0?i("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[o(v,{className:"size-4 animate-spin","aria-hidden":"true"}),r("conversation.restoring")]}):p;if(!t.attached&&t.items.length===0)return i(c,{className:"flex-1",children:[i(d,{children:[o(f,{children:r("conversation.reopen")}),o(l,{children:r("conversation.detached")})]}),o(g,{onClick:E,children:r("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!u)return o(c,{className:"flex-1",children:i(d,{children:[o(f,{className:"text-[28px] font-normal",children:r("conversation.welcomeTitle")}),o(l,{className:"truncate font-mono",children:t.cwd})]})});return p}
|
|
2
|
+
export{vn};
|