@alwith/module-chat 0.6.34 → 0.6.36
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-pr6qwqpj.js → chunk-05n5eyp9.js} +2 -2
- package/dist/{chunk-g7dxg38a.js → chunk-0ck2zpaa.js} +2 -2
- package/dist/chunk-0kpapqak.js +2 -0
- package/dist/{chunk-89gyxwmd.js → chunk-0qrd3jvc.js} +2 -2
- package/dist/{chunk-mq0npf36.js → chunk-0xgnhbn4.js} +2 -2
- package/dist/chunk-13jj645z.js +2 -0
- package/dist/{chunk-54j6xftt.js → chunk-13sxt6bc.js} +2 -2
- package/dist/{chunk-j4ejwthn.js → chunk-1byvdggd.js} +2 -2
- package/dist/{chunk-z8b3nz7t.js → chunk-1dtg361q.js} +2 -2
- package/dist/{chunk-pae2hjvq.js → chunk-1rfxfqek.js} +2 -2
- package/dist/chunk-21mp4gww.js +2 -0
- package/dist/{chunk-cef598jy.js → chunk-22teksk6.js} +2 -2
- package/dist/{chunk-mfkrs2at.js → chunk-268b0xhk.js} +2 -2
- package/dist/{chunk-dcvmc9hn.js → chunk-27s3z9q6.js} +2 -2
- package/dist/{chunk-75xtk0a3.js → chunk-2bsxqh9p.js} +2 -2
- package/dist/{chunk-r8sq654w.js → chunk-2kb4rtw7.js} +2 -2
- package/dist/{chunk-k3fwyr6s.js → chunk-2segzfjp.js} +2 -2
- package/dist/{chunk-n8b9yg4q.js → chunk-3knw8e0x.js} +2 -2
- package/dist/{chunk-ckbqdg1s.js → chunk-3q3n1n1m.js} +2 -2
- package/dist/{chunk-9n8cds8p.js → chunk-3tvq6xr2.js} +2 -2
- package/dist/chunk-41yp708e.js +2 -0
- package/dist/{chunk-eqa6cd7b.js → chunk-467091s6.js} +2 -2
- package/dist/{chunk-19jh646d.js → chunk-4chmr87g.js} +2 -2
- package/dist/chunk-4ezsy9sc.js +2 -0
- package/dist/chunk-4ma6bmcm.js +2 -0
- package/dist/{chunk-bhajnmtf.js → chunk-4t2a903d.js} +2 -2
- package/dist/{chunk-masqfje4.js → chunk-514abcnn.js} +2 -2
- package/dist/{chunk-x6spt0mc.js → chunk-5axg9jdz.js} +2 -2
- package/dist/chunk-5k46n3e8.js +2 -0
- package/dist/{chunk-re4vc51w.js → chunk-5t2e22f6.js} +2 -2
- package/dist/{chunk-68afy8mk.js → chunk-61bnywk9.js} +2 -2
- package/dist/{chunk-q61xz251.js → chunk-62qf6t7x.js} +2 -2
- package/dist/{chunk-sgmh6sa8.js → chunk-67fn9pq0.js} +2 -2
- package/dist/{chunk-ks22p0wq.js → chunk-68w4f5q0.js} +2 -2
- package/dist/{chunk-4jza4wwy.js → chunk-6c7q2rz8.js} +2 -2
- package/dist/{chunk-6nbqbjnb.js → chunk-6e952n0r.js} +3 -3
- package/dist/{chunk-5x2aqmhm.js → chunk-6kvrdgjn.js} +2 -2
- package/dist/{chunk-mrwawq46.js → chunk-6m7bnj0g.js} +2 -2
- package/dist/chunk-6ve41ce0.js +4 -0
- package/dist/chunk-6w7js8qd.js +2 -0
- package/dist/{chunk-965sngjd.js → chunk-6wstx1k6.js} +2 -2
- package/dist/{chunk-b6sb3akb.js → chunk-7a3q5976.js} +2 -2
- package/dist/{chunk-dhn9f10w.js → chunk-7ecymeg2.js} +2 -2
- package/dist/{chunk-y8p2dmw3.js → chunk-7nfbzajq.js} +2 -2
- package/dist/{chunk-zk395v8p.js → chunk-7pfkx9a2.js} +2 -2
- package/dist/{chunk-zv3bm3np.js → chunk-7rdf7eeh.js} +2 -2
- package/dist/{chunk-vb9mn75j.js → chunk-7vhhtb2a.js} +2 -2
- package/dist/{chunk-rd51rvde.js → chunk-80nnn15f.js} +2 -2
- package/dist/{chunk-2dnzdsrv.js → chunk-81ka3rnv.js} +3 -3
- package/dist/{chunk-vgea7ggq.js → chunk-82apcrn6.js} +2 -2
- package/dist/{chunk-xqqk85kd.js → chunk-82ytwr57.js} +2 -2
- package/dist/{chunk-zyn0ys4m.js → chunk-85yqchzc.js} +2 -2
- package/dist/chunk-89jwjv3m.js +2 -0
- package/dist/chunk-8e9h60we.js +2 -0
- package/dist/{chunk-sbyp6k8w.js → chunk-8fzg0pmc.js} +2 -2
- package/dist/chunk-8ncatcr7.js +2 -0
- package/dist/{chunk-jaghs2z5.js → chunk-8p2b77ta.js} +2 -2
- package/dist/{chunk-tj0530fn.js → chunk-8zkn8x2j.js} +2 -2
- package/dist/chunk-94fwccyb.js +2 -0
- package/dist/{chunk-zb0m2cqy.js → chunk-986yknqs.js} +2 -2
- package/dist/chunk-98k8jwbn.js +2 -0
- package/dist/chunk-9v4r1cr6.js +2 -0
- package/dist/{chunk-tz1gzwas.js → chunk-a2tkhes5.js} +2 -2
- package/dist/chunk-a779rnge.js +2 -0
- package/dist/{chunk-9y0fxq8e.js → chunk-a9mbtd12.js} +2 -2
- package/dist/{chunk-erdrx47j.js → chunk-abt670s7.js} +2 -2
- package/dist/{chunk-r7g85s0a.js → chunk-afnnrn6z.js} +2 -2
- package/dist/{chunk-4wm5emgf.js → chunk-b1yfr8gv.js} +2 -2
- package/dist/chunk-bb2s9nb6.js +2 -0
- package/dist/chunk-beraaxpx.js +2 -0
- package/dist/{chunk-z6tw9cf9.js → chunk-bz890a7b.js} +2 -2
- package/dist/{chunk-pr7xj1fn.js → chunk-ca7kgbwx.js} +2 -2
- package/dist/{chunk-kj3a1k2q.js → chunk-chjt1pct.js} +2 -2
- package/dist/{chunk-fpsn6fmf.js → chunk-ckft9abb.js} +2 -2
- package/dist/{chunk-1d29gnb2.js → chunk-ckgww50b.js} +2 -2
- package/dist/{chunk-e84mhse2.js → chunk-cn9hc5xr.js} +3 -3
- package/dist/{chunk-bsb08p49.js → chunk-d564jqyw.js} +3 -3
- package/dist/{chunk-prwzyc7q.js → chunk-dhj0vkek.js} +2 -2
- package/dist/{chunk-q78ng7mn.js → chunk-dqyfe90s.js} +2 -2
- package/dist/{chunk-fwn521m5.js → chunk-dvaxrrss.js} +2 -2
- package/dist/{chunk-r8gnmyb1.js → chunk-dxjwdfra.js} +2 -2
- package/dist/{chunk-9t672hzm.js → chunk-epqzypsa.js} +2 -2
- package/dist/{chunk-103z8myv.js → chunk-etnfpzpv.js} +2 -2
- package/dist/{chunk-0bc7gfq4.js → chunk-evgfpd16.js} +2 -2
- package/dist/{chunk-15m908ph.js → chunk-f2h074g0.js} +2 -2
- package/dist/{chunk-a18avvt2.js → chunk-f4dz7xen.js} +2 -2
- package/dist/{chunk-vab1ysnz.js → chunk-f6wp23k0.js} +2 -2
- package/dist/{chunk-r0dg1bjd.js → chunk-f6y0xqz9.js} +2 -2
- package/dist/{chunk-kbzsn9xw.js → chunk-fe83mqnb.js} +2 -2
- package/dist/chunk-fg7za6sb.js +2 -0
- package/dist/{chunk-28nsjq3w.js → chunk-fkzvbhfw.js} +5 -5
- package/dist/{chunk-9jth6sk7.js → chunk-fm35s6dq.js} +2 -2
- package/dist/{chunk-g1de763m.js → chunk-ft9b1d3f.js} +2 -2
- package/dist/chunk-fwejeh0a.js +2 -0
- package/dist/{chunk-zyyn9t8n.js → chunk-g2pjvjym.js} +3 -3
- package/dist/chunk-g31pwmy2.js +2 -0
- package/dist/{chunk-nhz4egjh.js → chunk-g551brtp.js} +6 -6
- package/dist/{chunk-8gas4q2s.js → chunk-gq2gckvv.js} +2 -2
- package/dist/chunk-gxn9pp4b.js +2 -0
- package/dist/{chunk-7p0d3rz7.js → chunk-gxvkgcs0.js} +2 -2
- package/dist/{chunk-81xwn9e5.js → chunk-h12xxave.js} +3 -3
- package/dist/{chunk-0b50jg23.js → chunk-hd5zm7tc.js} +2 -2
- package/dist/chunk-hdksy68d.js +2 -0
- package/dist/chunk-hqfmwbq5.js +2 -0
- package/dist/{chunk-n8fe2njr.js → chunk-hwccdg3k.js} +2 -2
- package/dist/chunk-hxstf6c4.js +2 -0
- package/dist/{chunk-gfkx1z04.js → chunk-j14fa32z.js} +2 -2
- package/dist/{chunk-x49qjrbk.js → chunk-jfp8yj9p.js} +2 -2
- package/dist/{chunk-0a3tr9ws.js → chunk-jj0bpzkq.js} +2 -2
- package/dist/chunk-jmanx88h.js +2 -0
- package/dist/{chunk-ske5z0gp.js → chunk-jpzjh400.js} +2 -2
- package/dist/{chunk-9x70f7zv.js → chunk-jra95vzv.js} +2 -2
- package/dist/{chunk-84p483n0.js → chunk-jreyzbd6.js} +2 -2
- package/dist/{chunk-vys8kfkp.js → chunk-jsnt49t5.js} +2 -2
- package/dist/chunk-jyrpyjt3.js +2 -0
- package/dist/{chunk-8hm3nkrk.js → chunk-k014w2jg.js} +2 -2
- package/dist/{chunk-y0rnvmrw.js → chunk-k7dp9ead.js} +2 -2
- package/dist/chunk-keh9cbwe.js +2 -0
- package/dist/{chunk-8w08gd0y.js → chunk-keyttjc9.js} +3 -3
- package/dist/chunk-kg363yzh.js +2 -0
- package/dist/{chunk-1gb1vwvy.js → chunk-kk9dbwd1.js} +2 -2
- package/dist/{chunk-gktjkghg.js → chunk-kv22b8h2.js} +2 -2
- package/dist/chunk-kvmd0mhe.js +2 -0
- package/dist/{chunk-45yrj0e1.js → chunk-m31z2z11.js} +5 -5
- package/dist/{chunk-qd9s7wmj.js → chunk-m9b9dzjh.js} +3 -3
- package/dist/{chunk-x2wcwpw3.js → chunk-md3d3pby.js} +2 -2
- package/dist/{chunk-vedvkp9e.js → chunk-mf3dn22w.js} +3 -3
- package/dist/{chunk-qk1yqepm.js → chunk-mhrn3e8j.js} +2 -2
- package/dist/chunk-mnktrf2v.js +2 -0
- package/dist/chunk-mp5f940y.js +1 -0
- package/dist/chunk-mphkyhy8.js +2 -0
- package/dist/chunk-mqdbs8jj.js +2 -0
- package/dist/{chunk-b9v0vew6.js → chunk-mywbsrxq.js} +2 -2
- package/dist/{chunk-v4tznge3.js → chunk-n4rapj4e.js} +3 -3
- package/dist/chunk-nd0d4qr4.js +2 -0
- package/dist/{chunk-5h49mv0e.js → chunk-newkrtrj.js} +2 -2
- package/dist/{chunk-64apxzn7.js → chunk-njrvhvy4.js} +2 -2
- package/dist/{chunk-k5kzw2px.js → chunk-nrt1zx5c.js} +3 -3
- package/dist/{chunk-qwjz3jsz.js → chunk-nxfwgbny.js} +2 -2
- package/dist/{chunk-at25g15n.js → chunk-nypm3ef8.js} +2 -2
- package/dist/chunk-q54ca1am.js +2 -0
- package/dist/chunk-q8mw16nx.js +3 -0
- package/dist/chunk-qa29z7wk.js +4 -0
- package/dist/{chunk-m6sdmcpj.js → chunk-qp4b32gm.js} +2 -2
- package/dist/chunk-qt4gdwcw.js +2 -0
- package/dist/{chunk-2eceheqt.js → chunk-r14byyqy.js} +3 -3
- package/dist/{chunk-tjt1s9qs.js → chunk-r7tpt9zy.js} +2 -2
- package/dist/{chunk-0t4fcgge.js → chunk-ra52dqfb.js} +2 -2
- package/dist/{chunk-f6cexkjm.js → chunk-rcj2df96.js} +3 -3
- package/dist/chunk-re9ryzrv.js +2 -0
- package/dist/chunk-rf8agwdk.js +2 -0
- package/dist/chunk-rgsf9xkw.js +4 -0
- package/dist/{chunk-yq4wz4n8.js → chunk-rmdf5jhd.js} +2 -2
- package/dist/{chunk-1md5vq9g.js → chunk-rp7qt6hm.js} +2 -2
- package/dist/chunk-rp87rhya.js +4 -0
- package/dist/{chunk-rr5ek064.js → chunk-rq4nw301.js} +2 -2
- package/dist/{chunk-r5q65gf3.js → chunk-s15zgqkg.js} +2 -2
- package/dist/{chunk-zg0tv3sj.js → chunk-s7396jw0.js} +3 -3
- package/dist/{chunk-dwxmgsg8.js → chunk-s953r0cw.js} +2 -2
- package/dist/chunk-sbcgvk9a.js +2 -0
- package/dist/{chunk-52wrk1mh.js → chunk-sd6sd4r8.js} +2 -2
- package/dist/{chunk-88ysxbdh.js → chunk-sjh2sz62.js} +2 -2
- package/dist/{chunk-zqpcrtde.js → chunk-ssrhst9t.js} +2 -2
- package/dist/{chunk-vnd6smsp.js → chunk-tdmz20zc.js} +2 -2
- package/dist/{chunk-xqb4thy8.js → chunk-tfkz3bae.js} +2 -2
- package/dist/{chunk-z0q7ghbg.js → chunk-va5f2mdb.js} +2 -2
- package/dist/{chunk-72xm1tz1.js → chunk-vc6yxjs3.js} +2 -2
- package/dist/chunk-vgxvtmja.js +2 -0
- package/dist/{chunk-wpacvdsv.js → chunk-vn7159fh.js} +2 -2
- package/dist/chunk-vnxa4qe2.js +2 -0
- package/dist/chunk-w1ndngnh.js +2 -0
- package/dist/{chunk-8w5bt0nc.js → chunk-w1yrsbw1.js} +2 -2
- package/dist/{chunk-w83nb5a8.js → chunk-w86ckd6d.js} +2 -2
- package/dist/chunk-w9z2zezn.js +2 -0
- package/dist/{chunk-wvm6ppb3.js → chunk-wf5tt5t4.js} +2 -2
- package/dist/{chunk-bq31dzpj.js → chunk-wrqmbvv2.js} +2 -2
- package/dist/{chunk-7m8hw6gh.js → chunk-wv501ppg.js} +2 -2
- package/dist/{chunk-6h10jana.js → chunk-ww4tmz88.js} +2 -2
- package/dist/chunk-wy7rkpqe.js +2 -0
- package/dist/{chunk-p216frcj.js → chunk-x0m0ebq0.js} +2 -2
- package/dist/chunk-x2xwfwcx.js +2 -0
- package/dist/{chunk-rt9dn0b3.js → chunk-x8j184pq.js} +3 -3
- package/dist/chunk-xb28q0sm.js +2 -0
- package/dist/{chunk-zy6qme7n.js → chunk-xkv1qwkh.js} +2 -2
- package/dist/{chunk-11kkxd6v.js → chunk-xvf85xre.js} +2 -2
- package/dist/chunk-xxaj040w.js +2 -0
- package/dist/{chunk-ksq9a3pf.js → chunk-xxwevgqr.js} +2 -2
- package/dist/{chunk-h4xx90s4.js → chunk-y6ac70r7.js} +2 -2
- package/dist/{chunk-mt01qph9.js → chunk-y6b3mjjn.js} +2 -2
- package/dist/{chunk-8sa6xn88.js → chunk-ya8e4rt0.js} +2 -2
- package/dist/{chunk-mhhtcbh9.js → chunk-yde0ncgz.js} +2 -2
- package/dist/{chunk-86tpa1nn.js → chunk-yekcndnq.js} +2 -2
- package/dist/{chunk-x2x9g6vk.js → chunk-yn6pz38m.js} +2 -2
- package/dist/{chunk-ad53zbdb.js → chunk-yqzpxk5y.js} +2 -2
- package/dist/{chunk-arr0hypp.js → chunk-z26j4tt7.js} +2 -2
- package/dist/chunk-z29anjt1.js +2 -0
- package/dist/{chunk-dqjhmzjy.js → chunk-z6swkqb1.js} +2 -2
- package/dist/{chunk-nef7y6mg.js → chunk-zetd8vk4.js} +2 -2
- package/dist/{chunk-mmrwaa9h.js → chunk-zpetyx45.js} +2 -2
- package/dist/{chunk-as2j0yp0.js → chunk-zsd44z1c.js} +2 -2
- package/dist/{chunk-69tgmjdb.js → chunk-zssbsc1f.js} +2 -2
- package/dist/chunk-zxa4jnpe.js +2 -0
- package/dist/{chunk-dxwbgg69.js → chunk-zz582m73.js} +2 -2
- package/dist/client.js +1 -1
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/artifact-links.js +1 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/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/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 +3 -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 +4 -1
- package/dist/desktop/native-file-drop.js +1 -1
- package/dist/generated/commands.d.ts +4 -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-2016dacx.js +0 -4
- 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-g947bnqx.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-ptdx40ae.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
package/dist/activity-host.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ComponentType, type ReactNode } from "react";
|
|
2
|
+
import type { GeneratedImageStorage } from "./generated-image-storage";
|
|
2
3
|
import type { ToolUseBlock } from "./lib/group-blocks";
|
|
3
4
|
export type ChatTranslate = (key: string, values?: Record<string, unknown>) => string;
|
|
4
5
|
export interface ActivityImage {
|
|
@@ -21,6 +22,7 @@ export interface ActivityHost {
|
|
|
21
22
|
patch: string;
|
|
22
23
|
}>;
|
|
23
24
|
openImage?: (url: string) => void;
|
|
25
|
+
loadGeneratedImage?: GeneratedImageStorage["read"];
|
|
24
26
|
loadImage?: (path: string) => Promise<string>;
|
|
25
27
|
openImageGallery?: (images: ActivityImage[], index: number) => void;
|
|
26
28
|
openSession?: (sessionId: string, title: string) => void;
|
package/dist/activity-host.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ts,c,F}from"./chunk-hxstf6c4.js";export{Ts as ActivityHostProvider,F as ActivityMarkdown,c as useActivityHost};
|
package/dist/agent/client.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type * as acp from "@agentclientprotocol/sdk/experimental/v2/unstable";
|
|
|
2
2
|
import { type RuntimeClient, type SessionRunState } from "@alwith/api";
|
|
3
3
|
import { type AppsInstalledParams, type ClientOptions as AdapterOptions, CodexClient as AdapterClient, type CodexClientState, type ForkOptions, type ForkOrigin, type NewSessionOptions, type PendingAction, type PromptOptions, type ReplayScope, type Session, type SessionOperation, type SessionRequestOptions, type SessionSummary } from "@nyssance/codex-acp-v2/client";
|
|
4
4
|
import { type ApplicationSessionOptions, type ApplicationTools } from "../application-tools";
|
|
5
|
+
import type { GeneratedImageStorage } from "../generated-image-storage";
|
|
5
6
|
import { type ImageSelection } from "../image";
|
|
6
7
|
import { type SessionInputConfig, type SessionInputConfigSnapshot } from "./input-config";
|
|
7
8
|
import { type InputMode } from "./input-modes";
|
|
@@ -26,6 +27,7 @@ export type ClientOptions = AdapterOptions & {
|
|
|
26
27
|
imageService?: {
|
|
27
28
|
inputMode: (sessionId: string) => Promise<InputMode>;
|
|
28
29
|
selection: () => ImageSelection;
|
|
30
|
+
storage?: GeneratedImageStorage;
|
|
29
31
|
generateExternal: (selection: ImageSelection, prompt: string, images: string[], signal?: AbortSignal) => Promise<{
|
|
30
32
|
images: {
|
|
31
33
|
mimeType: string;
|
package/dist/agent/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b,ji}from"../chunk-fg7za6sb.js";import"../chunk-yqzpxk5y.js";import"../chunk-4ezsy9sc.js";import"../chunk-keh9cbwe.js";import"../chunk-zxa4jnpe.js";import"../chunk-81ka3rnv.js";import"../chunk-jpzjh400.js";import"../chunk-1byvdggd.js";import"../chunk-k7dp9ead.js";import"../chunk-a779rnge.js";import"../chunk-afnnrn6z.js";import"../chunk-j14fa32z.js";import"../chunk-hwccdg3k.js";import"../chunk-xxwevgqr.js";import"../chunk-8ncatcr7.js";import"../chunk-4ma6bmcm.js";import"../chunk-sbcgvk9a.js";export{ji as CodexClient,b as NATIVE_MODEL_GROUP};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{st}from"../chunk-xxwevgqr.js";export{st as customModelEffort};
|
package/dist/agent/fork-title.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Gn}from"../chunk-k7dp9ead.js";export{Gn as forkTitle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Wi,ho,Zi}from"../chunk-81ka3rnv.js";export{Wi as IMAGE_WORKFLOW_INSTRUCTIONS,Zi as imageGenerationPrompt,ho as imageRequestAspect};
|
|
@@ -3,7 +3,9 @@ import type { ClientOptions } from "./client";
|
|
|
3
3
|
import { type ImageRequestAspect } from "./image-request";
|
|
4
4
|
export type ImageToolRequest = {
|
|
5
5
|
selection: ImageSelection;
|
|
6
|
-
references: Map<string, string
|
|
6
|
+
references: Map<string, string | {
|
|
7
|
+
path: string;
|
|
8
|
+
}>;
|
|
7
9
|
aspect?: ImageRequestAspect;
|
|
8
10
|
};
|
|
9
11
|
export declare function createImageTool(service: NonNullable<ClientOptions["imageService"]>, request: (id: string) => ImageToolRequest | undefined): import("../application-tools").ApplicationTool;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{qi}from"../chunk-zxa4jnpe.js";import"../chunk-81ka3rnv.js";import"../chunk-hwccdg3k.js";import"../chunk-8ncatcr7.js";import"../chunk-4ma6bmcm.js";import"../chunk-sbcgvk9a.js";export{qi as createImageTool};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Qi,Un}from"../chunk-jpzjh400.js";export{Qi as parseInputConfig,Un as parseInputSnapshot};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ji}from"../../chunk-a779rnge.js";import"../../chunk-afnnrn6z.js";export{Ji as chatInputMode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{vo}from"../../chunk-j14fa32z.js";export{vo as executionMeta};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{St}from"../../chunk-afnnrn6z.js";export{St as imageApplicationContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ve}from"../../chunk-keh9cbwe.js";import"../../chunk-afnnrn6z.js";import"../../chunk-8ncatcr7.js";import"../../chunk-4ma6bmcm.js";import"../../chunk-sbcgvk9a.js";export{ve as imageInputMode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{rt,ze,ka}from"../../chunk-4ezsy9sc.js";import"../../chunk-keh9cbwe.js";import"../../chunk-a779rnge.js";import"../../chunk-afnnrn6z.js";import"../../chunk-8ncatcr7.js";import"../../chunk-4ma6bmcm.js";import"../../chunk-sbcgvk9a.js";export{ze as inputModeDefinition,rt as isInputMode,ka as resolveInputMode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ms}from"../chunk-7rdf7eeh.js";export{Ms as macProjectPaths};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ne,Bn,Sa}from"../chunk-1byvdggd.js";export{Sa as explainRequestError,ne as isAuthenticationRequired,Bn as isModelSelectionRequired};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ns}from"../chunk-sd6sd4r8.js";export{Ns as watchSessionList};
|
package/dist/app-reference.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ce}from"./chunk-abt670s7.js";import"./chunk-vc6yxjs3.js";import"./chunk-2segzfjp.js";export{Ce as AppReferenceBadge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{zn,yo,xo}from"./chunk-hwccdg3k.js";export{yo as APPLICATION_SERVER_NAME,xo as ApplicationToolRegistry,zn as defineApplicationTool};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ii,co,tt,pn}from"../chunk-mphkyhy8.js";import{autoUpdate as j}from"@floating-ui/dom";import{cn as A}from"cn";import{useCallback as T,useEffect as I,useLayoutEffect as L,useMemo as q,useRef as G,useState as C}from"react";import{createPortal as V}from"react-dom";import{Badge as W}from"@nyssance/shadcn/vega/components/ui/badge";import{Button as B}from"@nyssance/shadcn/vega/components/ui/button";import{Checkbox as H}from"@nyssance/shadcn/vega/components/ui/checkbox";import{Input as M}from"@nyssance/shadcn/vega/components/ui/input";import{Label as O}from"@nyssance/shadcn/vega/components/ui/label";import{RadioGroup as K,RadioGroupItem as _}from"@nyssance/shadcn/vega/components/ui/radio-group";import{Textarea as X}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as s,jsxs as d}from"react/jsx-runtime";var l="__other__";function de({current:n,total:U,anchorRef:x,t:u,onAccept:P,onDecline:Q}){let p=q(()=>n?Ii(n.requestedSchema):[],[n]),[b,g]=C({}),S=G(null);I(()=>{if(n?.elicitationId===void 0)return;let e={};for(let{key:r,property:i}of p)if(!tt(i)){let c=pn(i)[0];if(c)e[r]={selected:c.value}}g(e)},[n?.elicitationId,p]),I(()=>{if(n?.elicitationId!==void 0&&S.current&&document.activeElement?.tagName!=="INPUT"&&document.activeElement?.tagName!=="TEXTAREA")S.current.focus()},[n?.elicitationId]);let[w,R]=C(null),[k,z]=C(null),N=T(()=>{let e=x.current;if(!e)return;let r=e.getBoundingClientRect();if(r.width===0){let i=Math.min(640,window.innerWidth*0.9);R({left:(window.innerWidth-i)/2,width:i,bottom:24});return}R({left:r.left,width:r.width,bottom:window.innerHeight-r.bottom+20})},[x]);L(()=>{if(!n)return;let e=0,r=()=>{if(x.current){N();return}e=requestAnimationFrame(r)};return r(),()=>cancelAnimationFrame(e)},[n,N,x]),L(()=>{let e=x.current;if(!n||!e||!k)return;return j(e,k,N,{animationFrame:!0})},[n,k,x,N]);let y=q(()=>{if(!n)return!1;for(let{key:e,property:r}of p){let i=b[e];if(!i)return!1;if(tt(r)){if(!i.selectedSet||i.selectedSet.size===0)return!1;if(i.selectedSet.has(l)&&!i.otherText?.trim())return!1}else{if(!i.selected)return!1;if(i.selected===l&&!i.otherText?.trim())return!1}}return!0},[n,p,b]),D=T(async()=>{if(!n)return;if(!y)return;let e={},r={};for(let{key:i,property:c}of p){let a=b[i];if(!a)continue;let f;if(tt(c))e[i]=[...a.selectedSet??[]].map((m)=>m===l?(a.otherText??"").trim():m).filter(Boolean);else{let m=a.selected??"";if(e[i]=m===l?(a.otherText??"").trim():m,m!==l)f=pn(c).find((t)=>t.value===m)?.preview}let v=a.notes?.trim();if(f||v)r[i]={...f&&{preview:f},...v&&{notes:v}}}await P(n.elicitationId,e,r)},[n,p,b,y,P]),F=T(async()=>{if(n)await Q(n.elicitationId)},[n,Q]);if(!n||!w)return null;return V(d("div",{"data-overlay":"ask-user-question",tabIndex:0,onKeyDown:(e)=>{if(e.key==="Escape")e.preventDefault(),F()},className:"bg-card border-border fixed z-50 flex flex-col overflow-hidden rounded-lg border shadow-lg outline-none",style:{left:w.left,width:w.width,bottom:w.bottom,maxHeight:"70vh"},ref:(e)=>{S.current=e,z(e)},children:[d("div",{className:"border-border flex shrink-0 items-center justify-between gap-2 border-b px-3 py-2",children:[s("div",{className:"text-foreground text-sm font-medium",children:u("askUserQuestion.title")}),U>1&&s("span",{className:"text-muted-foreground shrink-0 text-xs",children:`1 / ${U}`})]}),s("div",{className:"min-h-0 flex-1 overflow-y-auto",children:s("div",{className:"space-y-4 px-3 py-3",children:p.map(({key:e,property:r},i)=>{let c=b[e],a=c?.selected,f=c?.selectedSet??new Set,v=pn(r),m=tt(r);return d("div",{className:"space-y-2",children:[d("div",{className:"flex items-center gap-2",children:[s(W,{variant:"secondary",className:"font-mono text-[10px] tracking-wide uppercase",children:co(r).title??e}),s("div",{className:"text-foreground text-sm font-medium",children:co(r).description})]}),m?d("div",{className:"space-y-1.5 ps-1",children:[v.map((t)=>d("label",{className:"hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",children:[s(H,{checked:f.has(t.value),onCheckedChange:(o)=>{g((h)=>{let E=new Set(h[e]?.selectedSet??new Set);if(o)E.add(t.value);else E.delete(t.value);return{...h,[e]:{...h[e],selectedSet:E}}})}}),d("div",{className:"min-w-0 flex-1",children:[s("div",{className:"text-foreground text-sm",children:t.label}),t.description&&s("div",{className:"text-muted-foreground text-xs",children:t.description})]})]},t.value)),d("label",{className:"hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",children:[s(H,{checked:f.has(l),onCheckedChange:(t)=>{g((o)=>{let h=new Set(o[e]?.selectedSet??new Set);if(t)h.add(l);else h.delete(l);return{...o,[e]:{...o[e],selectedSet:h}}})}}),s("div",{className:"text-foreground min-w-0 flex-1 text-sm",children:u("askUserQuestion.other")})]}),f.has(l)&&s("div",{className:"ps-7",children:s(M,{placeholder:u("askUserQuestion.otherPlaceholder"),value:c?.otherText??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],otherText:t.target.value}}))})})]}):d(K,{value:a??"",onValueChange:(t)=>g((o)=>({...o,[e]:{...o[e],selected:t}})),className:"space-y-1.5 ps-1",children:[v.map((t)=>{let o=`${i}:${t.value}`;return d("div",{className:A("hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",a===t.value&&"bg-muted/60"),children:[s(_,{value:t.value,id:o}),d(O,{htmlFor:o,className:"min-w-0 flex-1 cursor-pointer",children:[s("div",{className:"text-foreground text-sm font-normal",children:t.label}),t.description&&s("div",{className:"text-muted-foreground text-xs font-normal",children:t.description})]})]},t.value)}),d("div",{className:A("hover:bg-muted/40 flex items-center gap-2 rounded-sm px-1.5 py-1",a===l&&"bg-muted/60"),children:[s(_,{value:l,id:`${i}:other`,className:"mt-0.5"}),s(O,{htmlFor:`${i}:other`,className:"text-foreground min-w-0 flex-1 cursor-pointer text-sm font-normal",children:u("askUserQuestion.other")})]}),a===l&&s("div",{className:"ps-7",children:s(M,{placeholder:u("askUserQuestion.otherPlaceholder"),value:c?.otherText??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],otherText:t.target.value}}))})})]}),!m&&a&&a!==l&&(()=>{let t=v.find((o)=>o.value===a)?.preview;if(!t)return null;return s("pre",{className:"bg-muted/50 text-muted-foreground ms-1 mt-1 overflow-auto rounded-sm px-2 py-1.5 font-mono text-[11px] whitespace-pre-wrap",children:t})})(),v.some((t)=>t.preview)&&s(X,{placeholder:u("askUserQuestion.notesPlaceholder"),value:c?.notes??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],notes:t.target.value}})),rows:1,className:"min-h-0 resize-none text-xs"})]},e)})})}),d("div",{className:"border-border bg-card flex shrink-0 items-center justify-end gap-2 border-t px-3 py-2",children:[s(B,{variant:"ghost",size:"sm",onClick:()=>void F(),children:u("askUserQuestion.cancel")}),s(B,{size:"sm",disabled:!y,onClick:()=>void D(),children:u("askUserQuestion.submit")})]})]}),document.body)}export{de as ChoiceElicitationForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ii,co,tt,pn}from"../chunk-mphkyhy8.js";export{Ii as elicitationFields,co as elicitationLabels,pn as elicitationOptions,tt as isMultiSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ma,Ai,Qa,Ja}from"../chunk-mnktrf2v.js";export{ma as PERMISSION_KIND_GROUP_ORDER,Qa as isAllowKind,Ja as isAlwaysKind,Ai as sortPermissionOptions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Mi}from"../chunk-fm35s6dq.js";import"../chunk-mnktrf2v.js";export{Mi as PermissionView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ra,ga,La,Ei}from"../chunk-6m7bnj0g.js";export{Ei as SchemaElicitationForm,Ra as elicitationFields,ga as initialValues,La as isAnswered};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ni}from"../chunk-md3d3pby.js";export{Ni as UrlElicitationCard};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{c}from"./chunk-hxstf6c4.js";import{Vt,Jr}from"./chunk-7pfkx9a2.js";import{de}from"./chunk-bb2s9nb6.js";import{eo,C}from"./chunk-beraaxpx.js";import{useEffect as d,useState as g}from"react";import{jsx as o,jsxs as w}from"react/jsx-runtime";var l=/\.(?:png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|csv|tsv|zip|tar|gz|mp[34]|wav|ogg|webm|mov)(?:[?#].*)?$/i,u=/\.(?:png|jpe?g|gif|webp|bmp|svg)(?:[?#].*)?$/i;function Or(e){if(e.type!=="link"&&e.type!=="image"||e.href===void 0)return!1;let r=e.href;return!/^www\.|^\/\//i.test(r)&&!/^[a-z][a-z\d+.-]*:/i.test(r.replace(/^file:/i,""))&&l.test(r)}function h({uri:e,directory:r}){let t=c(),[i,s]=g(),n=Vt(e,r),p=n!==null&&t.loadImage!==void 0&&Jr(r,n);if(d(()=>{if(!p||n===null||t.loadImage===void 0)return;let m=!1;return t.loadImage(n).then((a)=>{let f=/^data:([^;,]+);base64,(.*)$/s.exec(a);if(!f)throw Error("The image preview is not a data URL");if(!m)s({uri:e,mimeType:f[1],data:f[2]})},(a)=>{if(!m)s({uri:e,error:a instanceof Error?a.message:String(a)})}),()=>{m=!0}},[t,n,p,e]),i?.uri!==e)return null;if("error"in i)return o("div",{role:"alert",className:"text-muted-foreground text-xs",children:i.error});return o(C,{block:{type:"image",uri:e,data:i.data,mimeType:i.mimeType}})}function Hr({links:e}){let r=de();return o("div",{className:"codex-markdown-artifacts flex min-w-0 flex-col gap-2","data-wide-markdown-block":"true",children:e.map((t,i)=>{let s=t.text||eo(t.href);return w("div",{className:"min-w-0",children:[r!==null&&u.test(t.href)&&o(h,{uri:t.href,directory:r}),o(C,{block:{type:"resource_link",uri:t.href,name:s}})]},`${i}-${t.href}`)})})}
|
|
2
|
+
export{Or,Hr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Xi,jn,Kn,qn,$e,Mt,Wn,Zn}from"./chunk-4t2a903d.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:Xi,deepseek:jn,doubao:Mt,"doubao-coding":Mt,kimi:Wn,minimax:$e,qwen:qn,xai:Kn,zhipu:Zn};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 Vn(e,n){return ce(e,n)?.keyUrl??e.keyUrl??null}function $n(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,Vn,$n,Tt,Ia};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{o}from"./chunk-hd5zm7tc.js";import{Ae,J,me}from"./chunk-a9mbtd12.js";import{useEffect as S,useMemo as f}from"react";function Ds(s){let c=J((i)=>i.activityOrder),a=o((i)=>{let n=Object.values(i.runStates).filter((t)=>c.includes(t.sessionId)&&(t.state==="done"||t.state==="requires_action")&&Ae(i,t.sessionId)).map((t)=>[t.sessionId,JSON.stringify([t.state,t.since,t.interruption])]);return JSON.stringify(n)}),e=f(()=>new Map(JSON.parse(a)),[a]),u=J((i)=>i.activitySeen),r=me();return S(()=>{if(s==="activity")r({activitySeen:e})},[s,e,r]),s!=="activity"&&[...e].some(([i,n])=>u.get(i)!==n)}
|
|
2
|
+
export{Ds};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{d}from"./chunk-21mp4gww.js";import{K,q,W,Z}from"./chunk-mp5f940y.js";import{Item as i}from"@nyssance/shadcn/vega/components/ui/item";import{Skeleton as s}from"@nyssance/shadcn/vega/components/ui/skeleton";import{jsx as e,jsxs as a}from"react/jsx-runtime";function Se({skills:l=!1}){let{t:o}=d();return a("div",{role:"status","aria-label":o(l?"plugins.skills.loading":"plugins.loading"),className:"my-3 flex flex-col gap-4",children:[e(s,{className:"h-4 w-36"}),e(Z,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2","aria-hidden":"true",children:[1,2,3,4,5,6,7,8].map((t)=>a(i,{size:"xs",className:"toolbox-row",children:[e(W,{children:e(s,{className:"size-10 rounded-xl"})}),a(q,{className:"min-w-0 group-data-[size=xs]/item:gap-2",children:[e(s,{className:"h-4 w-2/3"}),e(s,{className:"h-3 w-full"}),e(s,{className:"h-3 w-1/3"})]}),e(K,{children:e(s,{className:"size-8 rounded-full"})})]},t))})]})}
|
|
2
|
+
export{Se};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{ii}from"./chunk-ckgww50b.js";import{jsx as o}from"react/jsx-runtime";function Xt(){return o("svg",{"aria-hidden":"true",focusable:"false",width:0,height:0,className:"pointer-events-none absolute",dangerouslySetInnerHTML:{__html:ii}})}var n=["agent-mode","application-window","audiowave","bar-chart","block-stack-skills","book-open","briefcase","bubble-on-bubble","checkmark-circle","code","compass","components-window","credit-card","csv","document","docx","exclamationmark-bubble","figma-document","figure-text-document","file-video","flash","folder","game-controller","globe","heart","heart-bubble","heart-text-clipboard","hierarchy","jpg-document","kettlebell","ladybug","lightbulb","lightning-bolt","magnifingglass","map","mappin","microphone","ms-word-document","newspaper","paperclip","pdf-document","pencil","phone","photo","png-document","pointer","ppt-document","pptx","puzzle","radar","shield","shopping-bag","skill-creator","skill-installer","star-app","star-bookmark","template-creator","terminal","text-bubble-figure","text-document","text-document-lock","text-note-pointer","triangle-vercel","xls-document-excel","xlsx"];function oi(t){let e=0;for(let r of t)e=(e*31+r.charCodeAt(0))%997;return`#plugin-${n[e%n.length]}`}function U({name:t,className:e="size-6 shrink-0"}){return o("svg",{"aria-hidden":"true",focusable:"false",width:36,height:36,viewBox:"0 0 36 36",className:e,children:o("use",{href:oi(t)})})}
|
|
2
|
+
export{Xt,oi,U};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Fe,p}from"./chunk-vgxvtmja.js";import{O}from"./chunk-kv1v7kgn.js";import{G}from"./chunk-y6ac70r7.js";import{E}from"./chunk-tdmz20zc.js";import{xt,Ye,bt}from"./chunk-8zkn8x2j.js";import{PreviewCard as C}from"@base-ui/react/preview-card";import{cn as u}from"cn";import{LockIcon as D}from"lucide-react";import{createContext as T,useContext as L,useLayoutEffect as M,useState as I}from"react";import"@alwith/module-chat/session-list.css";import{jsx as e,jsxs as d,Fragment as K}from"react/jsx-runtime";function N(o){if(o.as==="ul"){let{as:i,className:s,...a}=o;return e("ul",{className:u("flex w-full min-w-0 flex-col gap-0.5",s),...a})}let{as:t,className:n,...r}=o;return e("div",{className:u("flex w-full min-w-0 flex-col gap-0.5",n),...r})}function v({className:o,...t}){return e("span",{"data-slot":"navigation-leading",className:u("flex size-6 shrink-0 items-center justify-center [&_.lucide]:size-3.5",o),...t})}function f({active:o,className:t,...n}){return e("button",{type:"button","data-active":o?"":void 0,"aria-current":o?"page":void 0,className:u("group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",t),...n})}function ae({open:o,onOpenChange:t,tooltip:n,leading:r,label:i,count:s,countLabel:a,active:l=!1,actions:b,headerChildren:g,wrapHeader:c,onHeaderClick:P,children:y}){let R=()=>{P?.(),t(!o)},x=u(xt,"relative flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-start [corner-shape:superellipse(1.5)]"),S=d(K,{children:[r!=null&&e(v,{children:r}),g??e(O,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(bt,{content:s!==void 0?e(Ye,{className:u("text-muted-foreground justify-end text-xs opacity-70",a&&"w-auto"),children:e("span",{dir:"ltr",children:a??s})}):void 0,actions:b})})]}),k=g==null?d("div",{"data-active":l?"":void 0,title:n,className:u(x,p),onClick:R,onKeyDown:(m)=>{if(m.target!==m.currentTarget)return;if(m.key!=="Enter"&&m.key!==" ")return;m.preventDefault(),R()},children:[e("button",{type:"button","aria-expanded":o,"aria-label":typeof i==="string"?i:n,className:"focus-visible:outline-ring absolute inset-0 rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]"}),S]}):e("div",{"data-active":l?"":void 0,className:x,children:S});return d("div",{className:"text-[#1a1c1f] dark:text-white",children:[c===void 0?k:c(k),o&&e(N,{className:"mt-0.5",children:y})]})}var _=T(()=>{}),z=T(()=>{});function cn(){return L(z)}function Le(){return L(_)}function De({active:o=!1,state:t,interruption:n=null,leased:r=!1,media:i,title:s,hoverCard:a,onHoverCardOpenChange:l,subtitle:b,preview:g,listeningPorts:c,onOpenPort:P,accessory:y,meta:R,hint:x,actions:S,className:k,...m}){let H=d("div",{"data-slot":"navigation-session-item","data-active":o,className:u(xt,Fe,"group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]",(g||c!=null&&c.length>0)&&"h-auto min-h-[var(--navigation-row-height,30px)] py-2.5",k),...m,children:[e(v,{children:t!=null?e(G,{state:t,title:n??void 0}):i}),d("span",{className:"flex min-w-0 flex-1 flex-col",children:[e(O,{className:u("leading-none",t==="done"&&"font-semibold"),children:s}),b!=null&&e(O,{className:"text-muted-foreground text-xs",children:b}),g&&e("span",{className:"text-muted-foreground mt-1.5 line-clamp-2 text-xs leading-[18px] [overflow-wrap:anywhere] break-words",children:g}),c!=null&&c.length>0&&e("span",{className:"text-muted-foreground mt-1.5 flex flex-wrap items-center gap-2 font-mono text-xs",children:c.map((w)=>P?d("button",{type:"button",className:"underline",onPointerDown:(h)=>h.stopPropagation(),onKeyDown:(h)=>h.stopPropagation(),onClick:(h)=>{h.stopPropagation(),P(w)},children:[":",w]},w):d("span",{children:[":",w]},w))})]}),d("span",{className:"relative ms-auto flex shrink-0 items-center gap-1",children:[r&&e(D,{className:"text-muted-foreground size-3"}),e(bt,{content:y!=null?e(Ye,{children:y}):R??e(Ye,{}),actions:S}),x!=null&&e("span",{className:"pointer-events-none absolute end-1 top-1/2 flex h-5 min-w-5 -translate-y-1/2 items-center justify-center",children:x})]})]});if(a==null)return H;return e(q,{row:H,onOpenChange:l,children:a})}function q({row:o,children:t,onOpenChange:n}){let[r,i]=I(!1),[s,a]=I(!1),l=r||s;return M(()=>(n?.(l),()=>n?.(!1)),[l,n]),e(_.Provider,{value:a,children:e(z.Provider,{value:()=>{i(!1),a(!1)},children:e(j,{open:l,onOpenChange:i,trigger:o,children:t})})})}function j({open:o,onOpenChange:t,trigger:n,children:r,side:i="inline-end",sideOffset:s=2,align:a="start",alignOffset:l}){return E(o),d(C.Root,{open:o,onOpenChange:t,children:[e(C.Trigger,{render:n,delay:700,closeDelay:100}),e(C.Portal,{children:e(C.Positioner,{side:i,sideOffset:s,align:a,alignOffset:l,className:"isolate z-50",children:e(C.Popup,{"data-slot":"codex-hover-card",className:"bg-popover text-popover-foreground ring-foreground/10 m-px flex w-80 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-md text-sm shadow-md ring-1 outline-hidden select-none",children:e("div",{className:"flex w-full min-w-0 flex-col px-0 py-1 break-words whitespace-normal",children:r})})})})]})}
|
|
2
|
+
export{N,v,f,ae,cn,Le,De};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function Vo(r){if(!r.trimStart().toLowerCase().startsWith("gpt"))return r;let a=/^gpt-\d/iu.test(r.trimStart())?" ":"-";return r.split(/(\s+)/).map((i)=>i.trim().length===0?i:i.split("-").map((t,o)=>{if(t.toLowerCase()==="gpt")return"GPT";if(t.toLowerCase()==="oai")return"OAI";return o>0&&t.length>0?`${t[0]?.toUpperCase()}${t.slice(1)}`:t}).join(a).replace(/^GPT (?=\d)/u,"GPT-")).join("")}
|
|
2
|
+
export{Vo};
|
|
@@ -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 Bn(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,Bn,Sa};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Nt}from"./chunk-s953r0cw.js";import{at}from"./chunk-f4dz7xen.js";import{l}from"./chunk-6283nzqs.js";import{g}from"./chunk-hqfmwbq5.js";import{j}from"./chunk-5k46n3e8.js";import{e}from"./chunk-8e9h60we.js";import{BlocksIcon as Q,BookOpenIcon as Y,PaperclipIcon as Z,PlusIcon as q,SquareSlashIcon as ee}from"lucide-react";import{useEffect as z,useLayoutEffect as te,useRef as S,useState as M}from"react";import{createPortal as ne}from"react-dom";import{Button as se}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as I,Fragment as oe}from"react/jsx-runtime";function mo({anchorRef:r,commands:k,disabled:i,agentDisabled:c,open:a,onCommand:E,onApp:h,focusInput:L,includeAttachment:f,query:y="",onClose:p,triggerRef:B}){let{client:v,host:N}=e(),{t:d}=N,G=g(),P=S(null),[D,C]=M(null),x=`${a}:${f}:${y}`,[X,U]=M(x);if(X!==x)U(x),C(null);let[F,K]=M([]),[H,T]=M("loading");z(()=>{if(!a||c||!v.installedApps)return;let t=!0;return T("loading"),K([]),v.installedApps().then(({apps:s})=>{if(!t)return;K(s.filter((u)=>u.enabled&&u.callable)),T("ready")},(s)=>{if(!t)return;T("error"),N.reportError?.(s)}),()=>{t=!1}},[a,c,v,N]);let O=(t)=>{if(t.disabled)return;p(),t.run(),L()},W=at(k,y,Number.MAX_SAFE_INTEGER),_=(t)=>({key:`command:${t.key}`,label:t.payload.startsWith("$")?t.label.slice(1):t.label,description:t.description,skillName:t.payload.startsWith("$")?t.payload.slice(1):void 0,disabled:i||c,run:()=>E(t.payload)}),V=Nt(F,y,(t)=>t.runtimeName||t.id,Number.MAX_SAFE_INTEGER).map(({item:t})=>t),R=[{id:"commands",label:d(f?"composer.attachmentsAndCommands":"composer.commands"),entries:[...f?[{key:"attachment",label:d("composer.addAttachment"),disabled:i,run:()=>G.openFileDialog()}]:[],...W.filter((t)=>!t.payload.startsWith("$")).map(_)],status:void 0},{id:"skills",label:d("composer.skills"),entries:W.filter((t)=>t.payload.startsWith("$")).map(_),status:void 0},{id:"apps",label:d("composer.apps"),entries:V.map((t)=>({key:`app:${t.id}`,label:t.runtimeName||t.id,disabled:i||c,run:()=>h({id:t.id,name:t.runtimeName||t.id})})),status:H==="loading"?d("composer.appsLoading"):H==="error"?d("composer.appsFailed"):F.length===0&&!y.trim()?d("composer.appsEmpty"):void 0}].filter((t)=>(t.id!=="apps"||!c&&Boolean(v.installedApps))&&(!y.trim()||t.entries.length>0||t.status)),m=R.flatMap((t)=>t.entries).filter((t)=>!t.disabled),b=m.some((t)=>t.key===D)?D:m[0]?.key;if(z(()=>{if(!a)return;let t=L();if(!t)throw Error("The composer input is missing");let s=(n)=>{if(n.target instanceof Node&&!P.current?.contains(n.target)&&!B?.current?.contains(n.target)&&!t.contains(n.target))p()},u=(n)=>{if(n.isComposing||n.keyCode===229)return;if(n.key==="Escape")n.preventDefault(),n.stopPropagation(),p();else if(n.key==="ArrowDown"||n.key==="ArrowUp"){n.preventDefault(),n.stopPropagation();let w=m.findIndex((J)=>J.key===b),A=Math.max(0,Math.min(m.length-1,w+(n.key==="ArrowDown"?1:-1)));if(m[A])C(m[A].key)}else if(n.key==="Enter"&&!n.shiftKey&&!n.altKey||n.key==="Tab"){n.preventDefault(),n.stopPropagation();let w=m.find((A)=>A.key===b);if(w)O(w)}};if(t.addEventListener("keydown",u,!0),f)t.addEventListener("input",p);return t.addEventListener("blur",p),document.addEventListener("pointerdown",s,!0),()=>{t.removeEventListener("keydown",u,!0),t.removeEventListener("input",p),t.removeEventListener("blur",p),document.removeEventListener("pointerdown",s,!0)}},[a,b,m,L,p,f,B]),te(()=>{if(a)P.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({block:"nearest"})},[a,b]),!a)return null;if(!r.current)throw Error("The composer menu anchor is missing");return ne(o("div",{className:l.position,children:o("div",{ref:P,role:"listbox","aria-label":d(f?"composer.add":"composer.commands"),onMouseDown:(t)=>t.preventDefault(),className:l.surface,children:I("div",{className:l.list,children:[R.length===0&&o("div",{role:"option","aria-disabled":"true","aria-selected":"false",className:l.notice,children:d("composer.addEmpty")}),R.map((t)=>I("div",{role:"group","aria-label":t.label,children:[o("div",{className:l.group,children:t.label}),t.entries.map((s)=>{let u=s.key==="attachment"?Z:t.id==="skills"?Y:t.id==="apps"?Q:ee,n=s.skillName===void 0?void 0:N.skillIcon?.(s.skillName);return I(se,{type:"button",variant:"ghost",role:"option",disabled:s.disabled,"aria-selected":s.key===b,onMouseEnter:()=>{if(!s.disabled)C(s.key)},onClick:()=>O(s),className:`${l.row}${s.key===b?` ${l.selected}`:""}`,children:[n?o("img",{src:n,alt:"","aria-hidden":"true",className:`${l.icon} object-contain`}):o(u,{className:l.icon}),o("span",{className:l.label,children:s.label}),s.description&&o("span",{"data-slot":"description",className:l.description,children:s.description})]},s.key)}),t.status&&o("div",{role:"option","aria-disabled":"true","aria-selected":"false",className:l.notice,children:t.status})]},t.id))]})})}),r.current)}function Gi({agentControls:r,onOpenChange:k,...i}){let{host:c}=e(),a=g(),E=S(null),h=S(!1);return I(oe,{children:[o(j,{ref:E,disabled:i.disabled,"aria-label":c.t(r?"composer.add":"composer.attachImage"),title:c.t(r?"composer.add":"composer.attachImage"),"aria-haspopup":r?"listbox":void 0,"aria-expanded":r?i.open:void 0,className:"text-foreground",onPointerDown:()=>{h.current=i.open},onClick:()=>{if(r)k(!h.current),i.focusInput();else a.openFileDialog()},children:o(q,{className:"size-4"})}),r&&i.open&&o(mo,{...i,includeAttachment:!0,onClose:()=>k(!1),triggerRef:E})]})}
|
|
2
|
+
export{mo,Gi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{ir}from"./chunk-qp4b32gm.js";import{e,x}from"./chunk-8e9h60we.js";import{Y,y}from"./chunk-rkqptd9w.js";import{createLucideIcon as v,HandIcon as k,ShieldAlertIcon as w,ShieldCheckIcon as a}from"lucide-react";import{memo as S}from"react";import{jsx as t}from"react/jsx-runtime";var O=v("ApprovalShield",[["path",{d:"M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11",key:"shield"}],["path",{d:"m8 8 3 3-3 3M13 15h3",key:"terminal"}]]),d={"read-only":k,"workspace-write":a,agent:O,"agent-full-access":w},b={"read-only":"readOnly","workspace-write":"workspaceAccess",agent:"agent","agent-full-access":"fullAccess"};function A({sessionId:u,options:m,disabled:g,onConfigChange:c}){let{host:l,client:f}=e(),{t:r}=l,s=y(m,"mode");if(!s)return null;let o=s.currentValue,p=Y(s).map((n)=>{let i=b[n.value];return i?{...n,name:r(`permissionModes.${i}.name`),description:r(`permissionModes.${i}.description`)}:n}),h=p.find((n)=>n.value===o),M=d[o]??a,I=(n)=>{if(n===o)return;x(l,c?c(s.configId,n):f.setConfig(u,s.configId,n))};return t(ir,{value:o,warning:o==="agent-full-access",currentName:h?.name??o,icon:t(M,{className:"size-3.5 shrink-0"}),header:r("permissionModes.heading"),disabled:g,label:r("composer.switchPermissionMode"),onValueChange:I,options:p.map((n)=>{let i=d[n.value]??a,C=n.value==="agent-full-access";return{value:n.value,label:t("span",{"data-permission-warning":C?"":void 0,children:n.name}),description:n.description?t("span",{className:"whitespace-normal",children:n.description}):void 0,icon:t(i,{className:"size-3.5 shrink-0"})}})})}var Nn=S(A);
|
|
2
|
+
export{Nn};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yt}from"./chunk-f6y0xqz9.js";import{createContext as l,useContext as a,useEffect as p,useSyncExternalStore as u}from"react";import{jsx as o}from"react/jsx-runtime";var g=l(null),P=l(null),r=new WeakMap;function Ze(e){let t=r.get(e);if(!t)t=Yt(e),r.set(e,t);return t}function Rs({host:e,client:t,children:n}){let s=Ze(t);return s.bindHost(e),p(()=>s.bindHost(e),[s,e]),o(g,{value:e,children:o(P,{value:t,children:n})})}function d(){let e=a(g);if(e===null)throw Error("Plugins host is missing");return e}function Qe(){let e=a(P);if(e===null)throw Error("Plugins client is missing");return e}function gt(e){let t=Qe();return u((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function i(e){let t=Ze(Qe());return u((n)=>t.subscribe(n),()=>e(t.getState()),()=>e(t.getState()))}function Je(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
|
|
2
|
+
export{Ze,Rs,d,Qe,gt,i,Je};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{nativeTurnId as p}from"@nyssance/codex-acp-v2/client";function
|
|
2
|
-
export{
|
|
1
|
+
import{nativeTurnId as p}from"@nyssance/codex-acp-v2/client";function rs(d,u){let f=new Set,i=(e)=>{let t=e.items.map(p).find((o)=>o!==null),r=e.items.every((o)=>o.replayed);if(t===void 0||f.has(t))return{turnKey:e.key,turn:e,deferUntilReady:r};return f.add(t),{turnKey:`history:${t}`,aliases:[e.key],turn:e,deferUntilReady:r}};if(!u?.complete)return d.map(i);let a=new Map;for(let e of d){let t=e.items.map(p).find((o)=>o!==null);if(t===void 0)continue;let r=a.get(t)??[];r.push(e),a.set(t,r)}let c=new Set(u.turns.map((e)=>e.turnId)),T=new Set(u.loadedTurnIds),y=new Map,l=new Map,s,n=[];for(let e of d){if(!e.items.some((t)=>c.has(p(t)??""))){n.push(e);continue}if(n.length>0){if(s)l.set(s,n);else y.set(e,n);n=[]}s=e}if(s&&n.length>0)l.set(s,n),n=[];return[...u.turns.flatMap((e)=>{let t=a.get(e.turnId);if(t)return t.flatMap((r)=>[...(y.get(r)??[]).map(i),i(r),...(l.get(r)??[]).map(i)]);return T.has(e.turnId)?[]:[{turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,estimatedHeightPx:320,placeholder:!0}]}),...n.map(i)]}
|
|
2
|
+
export{rs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{A}from"./chunk-hdksy68d.js";import{EmojiPicker as t}from"frimousse";import{BoxIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Popover as x,PopoverContent as f,PopoverTrigger as b}from"@nyssance/shadcn/vega/components/ui/popover";import{jsx as o,jsxs as n}from"react/jsx-runtime";function yt({emoji:s,onChange:l}){let[m,r]=d(!1),{t:a,i18n:c,emojibaseUrl:p}=A();return n(x,{open:m,onOpenChange:r,children:[o(b,{onClick:(e)=>e.stopPropagation(),onPointerDown:(e)=>e.stopPropagation(),render:o(g,{variant:"ghost",size:"icon-xs",className:"relative z-10","aria-label":a("collection.emoji"),children:s||o(u,{className:"size-3.5"})})}),o(f,{align:"start",className:"w-auto p-0",children:n(t.Root,{emojibaseUrl:p,locale:c.language==="zh-CN"?"zh":"en",className:"bg-popover flex h-80 w-72 flex-col",onEmojiSelect:({emoji:e})=>{l(e),r(!1)},children:[o(t.Search,{"aria-label":a("collection.emoji"),className:"focus-visible:border-ring mx-2 mt-2 flex h-8 rounded-md border bg-transparent px-2 text-sm outline-none"}),n(t.Viewport,{className:"relative flex-1 outline-none",children:[o(t.Loading,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs",children:"…"}),o(t.Empty,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs"}),o(t.List,{className:"pb-1.5 select-none",components:{CategoryHeader:({category:e,...i})=>o("div",{className:"bg-popover text-muted-foreground px-3 pt-3 pb-1.5 text-xs",...i,children:e.label}),Row:({children:e,...i})=>o("div",{className:"scroll-my-1.5 px-1.5",...i,children:e}),Emoji:({emoji:e,...i})=>o("button",{type:"button",className:"data-[active]:bg-accent flex size-8 items-center justify-center rounded-md text-lg",...i,children:e.emoji})}})]})]})})]})}
|
|
2
|
+
export{yt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{t}from"./chunk-bb2s9nb6.js";import{zt}from"./chunk-g551brtp.js";import{Yr}from"./chunk-6kvrdgjn.js";import{C}from"./chunk-beraaxpx.js";import{Yn}from"./chunk-dqyfe90s.js";import{isContentEntry as T,isEmbeddedResource as h,isResourceLink as x,terminalOf as A}from"@nyssance/codex-acp-v2/client";import{memo as I,useMemo as y}from"react";import{jsx as s,jsxs as g,Fragment as E}from"react/jsx-runtime";function R({item:n}){if(n.name==="view_image"&&n.status==="completed")return null;let r=n.content.filter(T).filter((e)=>h(e.content)||x(e.content));if(r.length===0)return null;return g("fieldset",{className:"mt-1 min-w-0",children:[s("legend",{className:"text-muted-foreground text-xs",children:n.title??n.name}),r.map((e,l)=>s(C,{block:e.content},`${n.id}:${l}`))]})}var zo=I(function({sessionId:r,items:e,terminals:l,streamingThoughtId:a}){let b=t(),i=e.every(Yn),c=b.toolBlock,m=y(()=>new WeakMap,[r,i,c]),v=y(()=>e.map((o)=>{let f=o.kind==="tool"?A(o,l):null,u=o.kind==="thought"&&o.id===a,d=m.get(o);if(d?.terminal===f&&d.thinking===u)return d.block;let p={...Yr(o,l,u),id:JSON.stringify([r,i?"history":"live",o.id])},k=p.type==="tool_use"&&o.kind==="tool"&&c!==void 0?c(p,o):p;return m.set(o,{terminal:f,thinking:u,block:k}),k}),[r,i,e,l,a,c,m]);return g(E,{children:[s(zt,{blocks:v,defaultExpanded:!i}),e.map((o)=>o.kind==="tool"&&s(R,{item:o},o.id))]})});
|
|
2
|
+
export{zo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{B}from"./chunk-evgfpd16.js";import{Le}from"./chunk-13jj645z.js";import{A,he}from"./chunk-hdksy68d.js";import{z,le}from"./chunk-r7tpt9zy.js";import{Oe,fe}from"./chunk-gxvkgcs0.js";import{cn as G}from"cn";import{BoxIcon as S,ChevronRightIcon as U,PlusIcon as E,StarIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as M}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as L,DropdownMenuContent as j,DropdownMenuGroup as N,DropdownMenuItem as y,DropdownMenuRadioGroup as _,DropdownMenuRadioItem as K,DropdownMenuSeparator as q,DropdownMenuTrigger as J}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Q}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as a}from"react/jsx-runtime";function yi({sessionId:l,trigger:f,favorite:n=!1,hoverBackground:k=n?"none":void 0,allowRemove:O=!0,submenu:g=!1,className:R,onOpenChange:x}){let{t}=A(),c=fe(),T=he(),H=Le(),{collections:s,order:C}=Oe(),i=C.find((o)=>s[o].sessionIds.includes(l)),[P,F]=d(!1),[w,D]=d(!1),[m,b]=d(""),[r,h]=d(!1),v=(o)=>{if(F(o),H(o),x?.(o),!o)D(!1),b("")},p=(o)=>{h(!0),T(o.then(()=>{v(!1)}).finally(()=>h(!1)))};return a(L,{modal:!1,open:P,onOpenChange:(o,I)=>{if(!o&&w&&I.reason==="trigger-hover"){I.cancel();return}v(o)},children:[e(J,{disabled:r,"data-hover-background":k,openOnHover:n||g,"aria-label":t(n&&i!==void 0?"collection.removeFromAll":"collection.addTo"),onMouseDown:(o)=>{if(n)o.preventBaseUIHandler()},onClick:(o)=>{if(!n)return;o.preventBaseUIHandler(),p(c({type:"favorite",sessionId:l}))},render:f??e(M,{variant:"ghost",size:"icon-sm",className:R,"aria-label":t(n&&i!==void 0?"collection.removeFromAll":"collection.addTo"),children:e(u,{className:G(i!==void 0&&"fill-current")})})}),a(j,{className:"w-56 font-normal",side:g?"inline-end":"bottom",align:g?"start":"end",sideOffset:4,children:[e(N,{children:e(_,{value:i??null,children:C.map((o)=>a(K,{value:o,disabled:r||i===o,closeOnClick:!1,onClick:()=>p(c({type:"add",collectionId:o,sessionId:l})),children:[o===z?e(u,{}):s[o].emoji?e("span",{className:"flex size-4 shrink-0 items-center justify-center text-sm","aria-hidden":"true",children:s[o].emoji}):e(S,{}),e("span",{className:"min-w-0 flex-1 truncate",children:le(s[o],t)})]},o))})}),e(q,{}),a(N,{children:[a(y,{disabled:r,closeOnClick:!1,onClick:()=>D(!0),children:[e(E,{}),t("collection.newCollection")]}),O&&i!==void 0&&a(y,{disabled:r,closeOnClick:!1,onClick:()=>p(c({type:"remove",sessionId:l})),children:[e(u,{}),t("collection.removeFromAll")]})]}),w&&a("form",{className:"flex items-center gap-1 px-2 py-1.5",onSubmit:(o)=>{if(o.preventDefault(),o.stopPropagation(),!m.trim()||r)return;p(c({type:"create",id:`collection-${crypto.randomUUID()}`,name:m,sessionId:l}))},children:[e(Q,{autoFocus:!0,"aria-label":t("collection.collectionName"),placeholder:t("collection.collectionName"),value:m,disabled:r,onChange:(o)=>b(o.target.value),onKeyDown:(o)=>o.stopPropagation(),className:"h-7 min-w-0"}),e(M,{size:"xs",type:"submit",disabled:r||!m.trim(),children:t("collection.confirm")})]})]})]})}function na({sessionId:l,allowRemove:f=!0}){let{t:n}=A();return e(yi,{sessionId:l,allowRemove:f,submenu:!0,trigger:e(B,{icon:e(u,{}),label:n("collection.addTo"),trailing:e(U,{className:"rtl:rotate-180"})})})}
|
|
2
|
+
export{yi,na};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{CacheStorage as I,Soundfont as M}from"smplr";var T=4,y=21,l=88,s=[39,41,43,44,46,48,50],p=0.035,b=0.16,S=88,E=50,h="acoustic_grand_piano",O="MusyngKite",w="FluidR3_GM",f=[0,2,4,5,7,9,11],U=2,C=5,m=globalThis;if(m.__alwithTimelineUserMessageNavigationAudio?.version!==T)m.__alwithTimelineUserMessageNavigationAudio={version:T,context:null,storage:I("alwith-timeline-navigation-instruments"),players:new Map,nextNoteTime:0,unlockConsumerCount:0};var r=m.__alwithTimelineUserMessageNavigationAudio;function d(){return r.context??=new AudioContext,r.context}function c(){let e=d();if(e.state==="running"){r.nextNoteTime=e.currentTime;return}e.resume().then(()=>{r.nextNoteTime=e.currentTime},(n)=>{if(n instanceof DOMException&&n.name==="NotAllowedError")return;console.error("Failed to unlock timeline navigation audio",n)})}function k(e){let n=d();return M(n,{instrument:e,kit:e===h?O:w,storage:r.storage,volume:E})}function g(e){let n=r.players.get(e);if(n!==void 0)return n;let t=k(e),i={player:t,ready:t.ready};return r.players.set(e,i),i}function
|
|
2
|
-
export{
|
|
1
|
+
import{CacheStorage as I,Soundfont as M}from"smplr";var T=4,y=21,l=88,s=[39,41,43,44,46,48,50],p=0.035,b=0.16,S=88,E=50,h="acoustic_grand_piano",O="MusyngKite",w="FluidR3_GM",f=[0,2,4,5,7,9,11],U=2,C=5,m=globalThis;if(m.__alwithTimelineUserMessageNavigationAudio?.version!==T)m.__alwithTimelineUserMessageNavigationAudio={version:T,context:null,storage:I("alwith-timeline-navigation-instruments"),players:new Map,nextNoteTime:0,unlockConsumerCount:0};var r=m.__alwithTimelineUserMessageNavigationAudio;function d(){return r.context??=new AudioContext,r.context}function c(){let e=d();if(e.state==="running"){r.nextNoteTime=e.currentTime;return}e.resume().then(()=>{r.nextNoteTime=e.currentTime},(n)=>{if(n instanceof DOMException&&n.name==="NotAllowedError")return;console.error("Failed to unlock timeline navigation audio",n)})}function k(e){let n=d();return M(n,{instrument:e,kit:e===h?O:w,storage:r.storage,volume:E})}function g(e){let n=r.players.get(e);if(n!==void 0)return n;let t=k(e),i={player:t,ready:t.ready};return r.players.set(e,i),i}function Ar(e){g(e).ready.catch((n)=>{console.error(`Failed to load navigation instrument "${e}"`,n)})}function ll(){c()}function Er(){if(r.unlockConsumerCount===0)window.addEventListener("pointerdown",c,{capture:!0}),window.addEventListener("keydown",c,{capture:!0});return r.unlockConsumerCount++,()=>{if(r.unlockConsumerCount--,r.unlockConsumerCount===0)window.removeEventListener("pointerdown",c,{capture:!0}),window.removeEventListener("keydown",c,{capture:!0})}}function Rr(e,n,t,i,o){if(o==="none")return;let a=Math.sign(n-e),u=Math.abs(n-e),x=Array.from({length:u},(L,A)=>{let N=e+a*(A+1),v=t[N];return Ma(N,t.length,v.inputTokens,v.outputTokens,o)});_(i,x)}function cl(e,n,t,i,o,a){if(a==="none")return;_(o,[Ma(e,n,t,i,a)])}function Ma(e,n,t,i,o){if(o==="none")throw Error("navigationMidiNote: 声音已关闭,不该求音符");if(o==="auto")return Ha(t,i);return Na(e,n)}function Ha(e,n){let t=Math.imul(e,5)+Math.imul(n,3)>>>0,i=(Math.imul(e,11)^Math.imul(n,13))>>>0,o=t%f.length;return 12*(U+i%C+1)+f[o]}function Na(e,n){return y+Ua(e,n)}function dl(e,n){return D(Na(e,n))}function Ua(e,n){if(n<=l)return Ba(n)[n-e-1];return Math.round((n-e-1)/(n-1)*(l-1))}function Ba(e){if(e<=s.length)return s.slice(0,e);let n=new Set(s),t=s[0]-1,i=s.at(-1)+1;while(n.size<e&&(t>=0||i<l)){if(t>=0&&n.size<e)n.add(t--);if(i<l&&n.size<e)n.add(i++)}for(let o=0;n.size<e&&o<l;o++)n.add(o);return[...n].toSorted((o,a)=>o-a)}function D(e){return 440*2**((e-69)/12)}function _(e,n){let t=d();if(t.state!=="running")return;let{player:i,ready:o}=g(e);o.then(()=>{let a=Math.max(t.currentTime,r.nextNoteTime);for(let u=0;u<n.length;u++)i.start({note:n[u],time:a+u*p,duration:b,velocity:S});r.nextNoteTime=a+n.length*p}).catch((a)=>{console.error(`Failed to play navigation instrument "${e}"`,a)})}function ul(){return r.context?.state}function pl(e){return g(e).ready}
|
|
2
|
+
export{Ar,ll,Er,Rr,cl,Ma,Ha,Na,dl,Ua,Ba,ul,pl};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function H(i,t){let e=new Set(t.map((n)=>n.startsWith("$")?n:`/${n}`));return[...i.matchAll(/[$/][^\s]+/g)].flatMap((n)=>e.has(n[0])&&(n.index===0||/[\s\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul},。!?:;((]/u.test(i[n.index-1]))?[{start:n.index,end:n.index+n[0].length,name:n[0],kind:n[0].startsWith("$")?"skill":"command"}]:[])}function
|
|
2
|
-
export{H
|
|
1
|
+
function H(i,t){let e=new Set(t.map((n)=>n.startsWith("$")?n:`/${n}`));return[...i.matchAll(/[$/][^\s]+/g)].flatMap((n)=>e.has(n[0])&&(n.index===0||/[\s\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul},。!?:;((]/u.test(i[n.index-1]))?[{start:n.index,end:n.index+n[0].length,name:n[0],kind:n[0].startsWith("$")?"skill":"command"}]:[])}function Za(i,t){return H(i,t).filter((e)=>e.kind==="skill").map(({start:e,end:n,name:r})=>({start:e,end:n,name:r}))}var qt="inline-flex items-baseline gap-1 align-baseline whitespace-nowrap leading-[inherit] font-normal text-[color:var(--app-reference-foreground,var(--link))] select-all",_s={command:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9"}]],skill:[["path",{d:"M12 5v16"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"}]],app:[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1"}]]};
|
|
2
|
+
export{H,Za,qt,_s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"@alwith/module-chat/plugins.css";import{jsx as o}from"react/jsx-runtime";var Q="toolbox-content pb-8",
|
|
2
|
-
export{Q,
|
|
1
|
+
import"@alwith/module-chat/plugins.css";import{jsx as o}from"react/jsx-runtime";var Q="toolbox-content pb-8",Pe="toolbox-detail flex max-h-[85dvh] flex-col gap-6 overflow-hidden rounded-2xl p-6 sm:max-w-3xl";function Te({children:e}){return o("div",{className:"toolbox-content shrink-0 pt-8",children:o("div",{className:"toolbox-toolbar flex min-h-9 items-center [&>header]:w-full [&>nav]:w-full","data-plugin-page-header":"",children:e})})}
|
|
2
|
+
export{Q,Pe,Te};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{n}from"./chunk-bb2s9nb6.js";import{e}from"./chunk-8e9h60we.js";import{y,ee}from"./chunk-rkqptd9w.js";import{hasAccount as D,isGroupedSelect as L}from"@nyssance/codex-acp-v2/client";import{cn as H}from"cn";import{memo as W,useEffect as T,useState as F}from"react";import{HoverCard as z,HoverCardContent as O,HoverCardTrigger as U}from"@nyssance/shadcn/vega/components/ui/hover-card";import{jsx as r,jsxs as u}from"react/jsx-runtime";var d=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),A=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),I=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function f(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function V(a,t){let 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:ee(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 In=W(_);
|
|
2
|
+
export{it,In};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cn as l}from"cn";import{DropdownMenuRadioGroup as r,DropdownMenuRadioItem as s}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as t,jsxs as a}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{cn as l}from"cn";import{DropdownMenuRadioGroup as r,DropdownMenuRadioItem as s}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as t,jsxs as a}from"react/jsx-runtime";function L({value:i,onValueChange:n,options:o,itemClassName:d}){return t(r,{value:i,onValueChange:(e)=>n(String(e)),children:o.map((e)=>a(s,{value:e.value,disabled:e.disabled,title:e.title,closeOnClick:!0,className:l("gap-2",e.description?"items-start":"items-center",d),children:[e.icon,e.description?a("div",{className:"min-w-0 flex-1",children:[t("div",{className:"text-xs font-medium",children:e.label}),t("div",{className:"text-muted-foreground text-[11px] font-normal",children:e.description})]}):t("span",{className:"min-w-0 flex-1 truncate text-start",children:e.label})]},e.value))})}
|
|
2
|
+
export{L};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ke}from"./chunk-sbcgvk9a.js";import{je,dt}from"./chunk-8ncatcr7.js";import{we}from"./chunk-jsnt49t5.js";import{isContentEntry as u,isImage as d,isResourceLink as p,isText as m}from"@nyssance/codex-acp-v2/client";var g=we();function Ko(c,l){let a=new Set;for(let e of l){if(e.kind!=="tool"||e.status!=="completed")continue;let s=dt(e),n=s?je(e):e.content.filter(u).map((t)=>t.content),f=(t)=>d(t)||s&&ke(t)!==null;if(!n.some(f))continue;n.forEach((t,i)=>{if(f(t)){if(a.add(`${e.id}:${i}`),p(t))a.add(t.uri)}if(!m(t))return;let r;try{r=JSON.parse(t.text)}catch(o){if(o instanceof SyntaxError)return;throw o}if(r===null||typeof r!=="object"||!("kind"in r)||r.kind!=="alwith.image"||!("images"in r)||!Array.isArray(r.images))return;for(let o of r.images)if(o!==null&&typeof o==="object"&&typeof o.reference==="string")a.add(o.reference)})}if(a.size===0)return c;return c.map((e)=>{if(!m(e)||!e.text.includes("!["))return e;let s=g.lexer(e.text).map((n)=>{if(n.type!=="paragraph"||!n.tokens)return n.raw;let f=0;return n.tokens.map((i)=>(f+=i.raw.length,i.type==="image"&&a.has(i.href)?"":i.raw)).join("")+n.raw.slice(f)}).join("");return s===e.text?e:{...e,text:s}}).filter((e)=>!m(e)||e.text.trim().length>0)}
|
|
2
|
+
export{Ko};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{t}from"./chunk-bb2s9nb6.js";import{codexTurnError as R}from"@nyssance/codex-acp-v2/client";import{AlertCircleIcon as C}from"lucide-react";import{useEffect as k,useRef as i,useState as s}from"react";import{Button as I}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as n,jsxs as m}from"react/jsx-runtime";function Uo({children:u}){return m("div",{className:"codex-error-message",role:"alert",children:[n(C,{"aria-hidden":"true"}),n("div",{className:"min-w-0 flex-1",children:u})]})}function Bo({error:u,retry:e}){let{t:f,turnErrorAction:T}=t(),c=R(u),[l]=s(()=>e?.delaySeconds==null?null:Date.now()+e.delaySeconds*1000),[p,v]=s(e?.delaySeconds??null),[h,y]=s(!1),[x,g]=s(null),o=i(!1),w=i(!1),E=i(e?.run);E.current=e?.run;let S=i((N)=>{let a=E.current;if(o.current||a===void 0)return;o.current=!0,y(!0),g(null),a(N).catch((r)=>{w.current=!0,o.current=!1,v(null),y(!1),g(r instanceof Error?r.message:String(r))})}),b=T?.(c),d=b===void 0&&e!==void 0&&c.retryable;return k(()=>{if(!d||l===null)return;let a=setInterval(()=>{if(w.current||o.current)return;let r=Math.max(0,Math.ceil((l-Date.now())/1000));if(v(r),r===0)S.current("automatic")},1000);return()=>clearInterval(a)},[l,d]),m(Uo,{children:[m("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[n("div",{className:"min-w-0 flex-1 whitespace-pre-wrap",children:c.message}),b,d&&n(I,{variant:"outline",size:"sm",disabled:h,onClick:()=>S.current("manual"),children:p===null?f("timeline.retry"):f("timeline.retryCountdown",{seconds:p})})]}),x!==null&&n("div",{className:"text-muted-foreground mt-2 text-sm",children:x})]})}
|
|
2
|
+
export{Uo,Bo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{QUICK_CHATS_GROUP as r,sessionGroup as l}from"@nyssance/codex-acp-v2/client";function
|
|
2
|
-
export{
|
|
1
|
+
import{QUICK_CHATS_GROUP as r,sessionGroup as l}from"@nyssance/codex-acp-v2/client";function mt(n,t){return n!==null&&t&&l(t,{cwd:n}).id===r?null:n}
|
|
2
|
+
export{mt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ji}from"./chunk-a779rnge.js";import{ve}from"./chunk-keh9cbwe.js";var t={chat:Ji,image:ve};function rt(n){return Object.hasOwn(t,n)}function ze(n){if(!rt(n))throw Error(`Unsupported input mode: ${n}`);return t[n]}function ka(n){if(n===null)return"chat";let o=n.mode;if(!rt(o))throw Error(`Unsupported input mode: ${o}`);return t[o].parseConfig(n.config),o}
|
|
2
|
+
export{rt,ze,ka};
|