@alwith/module-chat 0.6.28 → 0.6.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/catalogs/qwen/models.json +40 -0
- package/assets/provider-catalog.json +4 -0
- package/dist/activity-host.js +1 -1
- package/dist/agent/client.d.ts +1 -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.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/request-error.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-6tj5e7fc.js → chunk-06aaghwq.js} +2 -2
- package/dist/{chunk-gvqvw7ms.js → chunk-0c956xc0.js} +2 -2
- package/dist/chunk-0f00j53n.js +2 -0
- package/dist/{chunk-5dtpfpq5.js → chunk-12bfnfbk.js} +2 -2
- package/dist/chunk-12pd4nxy.js +2 -0
- package/dist/{chunk-rt1c2p25.js → chunk-188q5xn8.js} +2 -2
- package/dist/{chunk-sgbn37kz.js → chunk-189aq7st.js} +2 -2
- package/dist/{chunk-8v53bkyr.js → chunk-19jh646d.js} +2 -2
- package/dist/{chunk-rb4p3h5b.js → chunk-1bvgs2t1.js} +2 -2
- package/dist/{chunk-p83pk7ff.js → chunk-1dpk9zrb.js} +2 -2
- package/dist/{chunk-9kz3pxt9.js → chunk-239gtn3z.js} +2 -2
- package/dist/chunk-2c4hqv8f.js +2 -0
- package/dist/{chunk-ndfyste3.js → chunk-2c7a0zdc.js} +2 -2
- package/dist/chunk-2rk59ngw.js +2 -0
- package/dist/{chunk-cpe6vtpe.js → chunk-32zzqeyf.js} +2 -2
- package/dist/{chunk-tzczzqde.js → chunk-36j9fer8.js} +2 -2
- package/dist/{chunk-ztm4agfw.js → chunk-36rxa8k7.js} +3 -3
- package/dist/{chunk-jf2bxzee.js → chunk-37x36kph.js} +3 -3
- package/dist/{chunk-2cfhvb3k.js → chunk-3btheq4v.js} +2 -2
- package/dist/{chunk-zr8yk5np.js → chunk-3cwbxnxr.js} +3 -3
- package/dist/{chunk-2e1tg69n.js → chunk-3gkb117f.js} +3 -3
- package/dist/{chunk-38psn07c.js → chunk-3kxerrsh.js} +2 -2
- package/dist/{chunk-k7h34p5z.js → chunk-42dfq7ze.js} +1 -1
- package/dist/{chunk-tmec4by7.js → chunk-46j8adkj.js} +2 -2
- package/dist/{chunk-fqdtx7tp.js → chunk-483jakc1.js} +2 -2
- package/dist/chunk-48zgp33j.js +2 -0
- package/dist/{chunk-dnh1e01b.js → chunk-4fghmx57.js} +2 -2
- package/dist/chunk-4npg9v6h.js +2 -0
- package/dist/{chunk-c4awmmwt.js → chunk-4sj3t6mk.js} +2 -2
- package/dist/{chunk-k44dkkpg.js → chunk-4y07ykv2.js} +2 -2
- package/dist/chunk-52hvpdxw.js +2 -0
- package/dist/{chunk-2zy75522.js → chunk-54awxpw2.js} +2 -2
- package/dist/{chunk-jggts370.js → chunk-5arfhz6m.js} +2 -2
- package/dist/{chunk-n0q8e6sq.js → chunk-5cas0xvp.js} +2 -2
- package/dist/chunk-5dxzfdd1.js +2 -0
- package/dist/{chunk-tnzz1j83.js → chunk-5dygcexv.js} +2 -2
- package/dist/{chunk-3a3ecayr.js → chunk-5h8h4sas.js} +2 -2
- package/dist/{chunk-cpy7x31t.js → chunk-5n2304a1.js} +2 -2
- package/dist/chunk-5wed639g.js +2 -0
- package/dist/{chunk-a73hd95m.js → chunk-621g2ntr.js} +3 -3
- package/dist/{chunk-81hv0s07.js → chunk-6eebeq0f.js} +2 -2
- package/dist/chunk-6g5qmjph.js +2 -0
- package/dist/{chunk-r06hycq5.js → chunk-6gejqbns.js} +2 -2
- package/dist/{chunk-xsn2g4kk.js → chunk-6hxz5cpc.js} +2 -2
- package/dist/{chunk-kj3t4mqf.js → chunk-6ja6pt5x.js} +2 -2
- package/dist/{chunk-b2vtrd8n.js → chunk-6kyq5zxt.js} +1 -1
- package/dist/{chunk-2c2a1wvg.js → chunk-6m9frvzj.js} +2 -2
- package/dist/{chunk-vbk36ptt.js → chunk-6r1e3y4e.js} +3 -3
- package/dist/{chunk-sjqhtpzr.js → chunk-6wkcqhkk.js} +2 -2
- package/dist/{chunk-42ebtw00.js → chunk-6yzknjee.js} +2 -2
- package/dist/{chunk-ga265p00.js → chunk-717437bm.js} +2 -2
- package/dist/chunk-7ckdhz5y.js +2 -0
- package/dist/chunk-7egc2x4q.js +1 -0
- package/dist/{chunk-ayhxrzsq.js → chunk-7g0cbkbp.js} +2 -2
- package/dist/{chunk-kj3a1k2q.js → chunk-7hfd7hnm.js} +2 -2
- package/dist/{chunk-2sc2z6g5.js → chunk-7jk8s061.js} +2 -2
- package/dist/{chunk-7rgcj1w2.js → chunk-7n1v87h0.js} +2 -2
- package/dist/{chunk-tghj342y.js → chunk-7rqryntm.js} +2 -2
- package/dist/{chunk-gds55pjg.js → chunk-7sf2wz1n.js} +2 -2
- package/dist/{chunk-3nbpd0jt.js → chunk-7vby3f2v.js} +2 -2
- package/dist/{chunk-kk9dbwd1.js → chunk-84zzf0ys.js} +2 -2
- package/dist/{chunk-1gtmvxdr.js → chunk-8ktb3g8c.js} +2 -2
- package/dist/{chunk-17gs9pbn.js → chunk-8p861ztc.js} +2 -2
- package/dist/{chunk-w1yrsbw1.js → chunk-8w5bt0nc.js} +2 -2
- package/dist/{chunk-0q22f9vw.js → chunk-9162ez1n.js} +2 -2
- package/dist/{chunk-ty2cd00p.js → chunk-91jmmkd3.js} +2 -2
- package/dist/{chunk-78vckhxt.js → chunk-964fwwsg.js} +2 -2
- package/dist/{chunk-xk6f2raz.js → chunk-9xdne4k4.js} +2 -2
- package/dist/{chunk-t9xkg3pk.js → chunk-aa2xhwh2.js} +1 -1
- package/dist/{chunk-ms0h8x63.js → chunk-abxsr9d1.js} +2 -2
- package/dist/{chunk-nh56sb8e.js → chunk-afnnrn6z.js} +2 -2
- package/dist/{chunk-kfgy61cg.js → chunk-agz11n1h.js} +3 -3
- package/dist/{chunk-rkejggyx.js → chunk-ahzjy61p.js} +2 -2
- package/dist/{chunk-1ffpsz44.js → chunk-ansfap1a.js} +2 -2
- package/dist/{chunk-b6p0y68h.js → chunk-aq22zye1.js} +1 -1
- package/dist/{chunk-cvn9zbbc.js → chunk-azak3tb5.js} +2 -2
- package/dist/{chunk-gnd32zkx.js → chunk-b4qe4xnp.js} +2 -2
- package/dist/{chunk-9q6hz47j.js → chunk-b4wh6k5s.js} +2 -2
- package/dist/{chunk-q5qqhqw4.js → chunk-b64hyshj.js} +2 -2
- package/dist/{chunk-n8mexbh4.js → chunk-bajn7ssf.js} +2 -2
- package/dist/{chunk-trxf8c70.js → chunk-bbvhgh27.js} +2 -2
- package/dist/{chunk-38bpmgjd.js → chunk-bnf6pmgc.js} +2 -2
- package/dist/{chunk-evsyhxz1.js → chunk-bsqe29dh.js} +2 -2
- package/dist/chunk-cp3qcgdv.js +4 -0
- package/dist/{chunk-tky568fy.js → chunk-cttsbjr0.js} +2 -2
- package/dist/{chunk-ffs5nkt0.js → chunk-cxhyh0w9.js} +2 -2
- package/dist/{chunk-f4h84pav.js → chunk-d336k00a.js} +2 -2
- package/dist/{chunk-jg4c3zg4.js → chunk-d5pn8932.js} +2 -2
- package/dist/{chunk-3qqd9x6x.js → chunk-d8bjsf1d.js} +2 -2
- package/dist/{chunk-6xap6hvz.js → chunk-darm80tf.js} +2 -2
- package/dist/{chunk-s81m6yx7.js → chunk-dbrrbwb8.js} +2 -2
- package/dist/chunk-dfzhma2x.js +2 -0
- package/dist/{chunk-064vpdm9.js → chunk-ds6bqmdr.js} +2 -2
- package/dist/{chunk-dzpbbys1.js → chunk-dwf38vyq.js} +2 -2
- package/dist/chunk-dxfhy8gr.js +2 -0
- package/dist/{chunk-pk931bpm.js → chunk-dzw6vqqf.js} +2 -2
- package/dist/{chunk-v9v1v41p.js → chunk-e8mxwqxy.js} +2 -2
- package/dist/chunk-eedgav4q.js +2 -0
- package/dist/{chunk-r4nz54dh.js → chunk-eexn5mmk.js} +2 -2
- package/dist/{chunk-rncvy5pp.js → chunk-efkfzgs9.js} +2 -2
- package/dist/chunk-ehcnfvaz.js +2 -0
- package/dist/{chunk-rkks48gw.js → chunk-epdnafa1.js} +2 -2
- package/dist/{chunk-6yaxjcnj.js → chunk-esxjnj1y.js} +3 -3
- package/dist/{chunk-jz7dnk88.js → chunk-ezaypwps.js} +2 -2
- package/dist/{chunk-q46z21zs.js → chunk-f9zpep12.js} +2 -2
- package/dist/{chunk-mdf155e1.js → chunk-fednb216.js} +2 -2
- package/dist/{chunk-pxv38ttf.js → chunk-fpsn6fmf.js} +2 -2
- package/dist/{chunk-nzgjcp8w.js → chunk-fvf1et2s.js} +2 -2
- package/dist/{chunk-5hk14ksr.js → chunk-fvw65b49.js} +2 -2
- package/dist/{chunk-hyr8yww9.js → chunk-fz9y067h.js} +2 -2
- package/dist/{chunk-djd3sjp9.js → chunk-g9426ns9.js} +2 -2
- package/dist/chunk-gdn4vvks.js +2 -0
- package/dist/chunk-ge0anaww.js +4 -0
- package/dist/chunk-gjj5wbms.js +4 -0
- package/dist/{chunk-tj4b0s68.js → chunk-gt50nb3j.js} +2 -2
- package/dist/chunk-h1t76wws.js +2 -0
- package/dist/chunk-hc9bcwpa.js +2 -0
- package/dist/{chunk-26w51q10.js → chunk-hpv8x22r.js} +2 -2
- package/dist/chunk-hqfhb4ng.js +2 -0
- package/dist/{chunk-62kt6f1d.js → chunk-htsbt68m.js} +2 -2
- package/dist/{chunk-tftfggte.js → chunk-hz8yrg2t.js} +2 -2
- package/dist/{chunk-0xshzqb6.js → chunk-hzhcajx1.js} +2 -2
- package/dist/chunk-j1khvg9s.js +2 -0
- package/dist/{chunk-0aeq7qy7.js → chunk-jbnbx285.js} +2 -2
- package/dist/{chunk-heqa4swe.js → chunk-jkqh03w4.js} +2 -2
- package/dist/{chunk-s89p3zgn.js → chunk-k0rfgjm6.js} +2 -2
- package/dist/{chunk-7sr8weqn.js → chunk-k1atcess.js} +2 -2
- package/dist/{chunk-cf7cw2tj.js → chunk-kk5acm1s.js} +5 -5
- package/dist/{chunk-7zafb413.js → chunk-kq8jv5tf.js} +2 -2
- package/dist/{chunk-8hygfx41.js → chunk-kv1v7kgn.js} +2 -2
- package/dist/chunk-kzh7w9c0.js +2 -0
- package/dist/chunk-m76tgtge.js +3 -0
- package/dist/{chunk-kvnbmt00.js → chunk-m7t9asrq.js} +2 -2
- package/dist/{chunk-ccxsf02q.js → chunk-m7tj6194.js} +2 -2
- package/dist/{chunk-z4jv8svx.js → chunk-me230xjh.js} +3 -3
- package/dist/{chunk-ykz0h1r0.js → chunk-mtcxr3ns.js} +2 -2
- package/dist/{chunk-6pwssh9v.js → chunk-n7f38k3f.js} +2 -2
- package/dist/chunk-n7pyzjq1.js +2 -0
- package/dist/{chunk-6bhfdsyz.js → chunk-n9e1v175.js} +2 -2
- package/dist/{chunk-ypgvt8ky.js → chunk-nabyjzn5.js} +2 -2
- package/dist/{chunk-gea1q14z.js → chunk-nn8pmwqz.js} +2 -2
- package/dist/{chunk-rerm6x2f.js → chunk-nq2tqdb2.js} +2 -2
- package/dist/chunk-nravn5bk.js +2 -0
- package/dist/{chunk-p8cm3xw1.js → chunk-p781sb6h.js} +2 -2
- package/dist/chunk-pbx1417n.js +2 -0
- package/dist/{chunk-5vajeawb.js → chunk-pqw5qz4e.js} +2 -2
- package/dist/{chunk-e04g26qm.js → chunk-pqz2471h.js} +2 -2
- package/dist/chunk-pv7t4hw8.js +2 -0
- package/dist/{chunk-aq1j5vqn.js → chunk-q98s7d94.js} +2 -2
- package/dist/{chunk-evethx5n.js → chunk-qc49fm8e.js} +2 -2
- package/dist/{chunk-t50b1s7h.js → chunk-qd8j2d63.js} +3 -3
- package/dist/{chunk-jra2q5cx.js → chunk-qdbyn3xv.js} +2 -2
- package/dist/chunk-qecs9e31.js +2 -0
- package/dist/{chunk-dyks7e24.js → chunk-qz9q0g2b.js} +2 -2
- package/dist/{chunk-q01vmp9m.js → chunk-r013w7yb.js} +2 -2
- package/dist/{chunk-pccwq2dd.js → chunk-r3s28905.js} +3 -3
- package/dist/{chunk-zpcd9w2t.js → chunk-r51vcbf0.js} +2 -2
- package/dist/{chunk-qqphgn9b.js → chunk-r7z3mvej.js} +2 -2
- package/dist/chunk-rak4mkgh.js +2 -0
- package/dist/{chunk-snxpc6yr.js → chunk-rhyw89ap.js} +2 -2
- package/dist/{chunk-a4y4bsve.js → chunk-sb2694hc.js} +2 -2
- package/dist/{chunk-jfrj2qg1.js → chunk-sdhkpkbs.js} +2 -2
- package/dist/{chunk-y8fmawc6.js → chunk-smd9rszw.js} +3 -3
- package/dist/{chunk-kqekfj3v.js → chunk-sx1gjwb6.js} +3 -3
- package/dist/chunk-sykf5jnc.js +2 -0
- package/dist/{chunk-0fs2k5fe.js → chunk-t56ncd8f.js} +2 -2
- package/dist/{chunk-eavqh5fb.js → chunk-tbz64dbd.js} +3 -3
- package/dist/{chunk-tpdyjp90.js → chunk-tdaznr5w.js} +2 -2
- package/dist/{chunk-ckja1ppp.js → chunk-tjc0ntnh.js} +2 -2
- package/dist/chunk-ts7h148j.js +2 -0
- package/dist/{chunk-v042t2he.js → chunk-v0xy25sh.js} +2 -2
- package/dist/{chunk-gzc704c3.js → chunk-v6f6s828.js} +2 -2
- package/dist/{chunk-ec4q4rw7.js → chunk-vazspetj.js} +2 -2
- package/dist/{chunk-m8tt5bf9.js → chunk-vhxr0c4c.js} +2 -2
- package/dist/{chunk-tm5w5srq.js → chunk-vjgze5n7.js} +2 -2
- package/dist/{chunk-hygvdjq6.js → chunk-vvmmzcms.js} +2 -2
- package/dist/{chunk-phsvgv0f.js → chunk-vvy4ke91.js} +2 -2
- package/dist/{chunk-vzm88w2r.js → chunk-w5rg8wk8.js} +2 -2
- package/dist/{chunk-pqs039wv.js → chunk-w7vcd8d1.js} +4 -4
- package/dist/{chunk-at75m9hq.js → chunk-wf4z9w5x.js} +2 -2
- package/dist/chunk-wfk50eh6.js +2 -0
- package/dist/{chunk-smf7c649.js → chunk-wxafew32.js} +2 -2
- package/dist/chunk-wxjm3mq8.js +2 -0
- package/dist/chunk-x0m4ctqf.js +2 -0
- package/dist/{chunk-2v531sbv.js → chunk-x9rppnkq.js} +2 -2
- package/dist/{chunk-r7paw6ba.js → chunk-xca0vnvk.js} +2 -2
- package/dist/chunk-xk41ehy8.js +2 -0
- package/dist/{chunk-6cxvfwpe.js → chunk-xmy7ebed.js} +2 -2
- package/dist/{chunk-jca8s47n.js → chunk-xpj8gb9a.js} +1 -1
- package/dist/chunk-xpts50f0.js +2 -0
- package/dist/{chunk-36ttr22w.js → chunk-xqsfaaae.js} +2 -2
- package/dist/{chunk-kfm1sz3q.js → chunk-y5xjf5sb.js} +2 -2
- package/dist/chunk-y780cd4m.js +2 -0
- package/dist/{chunk-p79keq5q.js → chunk-ybwevt5n.js} +2 -2
- package/dist/{chunk-r1sj7c91.js → chunk-yc7w1en3.js} +2 -2
- package/dist/{chunk-m8pkmbtf.js → chunk-yfb5hj4w.js} +2 -2
- package/dist/{chunk-2fck5sy2.js → chunk-yn3d949k.js} +2 -2
- package/dist/chunk-ynp45k84.js +2 -0
- package/dist/chunk-yqhvxm9m.js +2 -0
- package/dist/{chunk-r8pm74zf.js → chunk-z930082m.js} +2 -2
- package/dist/chunk-zcfsbgvw.js +2 -0
- package/dist/chunk-zewseva6.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/markdown.css +4 -0
- 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 +2 -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.d.ts +1 -0
- package/dist/conversation/subagent-tasks.js +1 -1
- package/dist/desktop/desktop-composer.d.ts +3 -2
- 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.d.ts +2 -2
- 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.js +1 -1
- package/dist/image-lightbox.js +1 -1
- package/dist/image-preview-dialog.js +1 -1
- package/dist/image.js +1 -1
- package/dist/lib/app-reference.js +1 -1
- package/dist/lib/application-metadata.js +1 -1
- package/dist/lib/chat-path.js +1 -1
- package/dist/lib/code-highlighter.js +1 -1
- package/dist/lib/file-url.js +1 -1
- package/dist/lib/fuzzy.js +1 -1
- package/dist/lib/group-blocks.js +1 -1
- package/dist/lib/image-encode.js +1 -1
- package/dist/lib/limits.js +1 -1
- package/dist/lib/markdown-parser.js +1 -1
- package/dist/lib/markdown-rules.js +1 -1
- package/dist/lib/model-name.js +1 -1
- package/dist/lib/pointer-centered-zoom.js +1 -1
- package/dist/lib/prepare-prompt-files.js +1 -1
- package/dist/lib/reference-presentation.js +1 -1
- package/dist/lib/stream-style.js +1 -1
- package/dist/lib/streaming-markdown.js +1 -1
- package/dist/lib/tool-artifacts.js +1 -1
- package/dist/locales.js +1 -1
- package/dist/mermaid/diagram.js +1 -1
- package/dist/mermaid/export.js +1 -1
- package/dist/mermaid/index.js +1 -1
- package/dist/mermaid/preview.js +1 -1
- package/dist/oauth/claude-login.js +1 -1
- package/dist/oauth.js +1 -1
- package/dist/plugins/catalog-header.js +1 -1
- package/dist/plugins/catalog-skeleton.js +1 -1
- package/dist/plugins/host.js +1 -1
- package/dist/plugins/locales.js +1 -1
- package/dist/plugins/new-chat-directory.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/overflow-marquee.js +1 -1
- package/dist/session-list/platform.js +1 -1
- package/dist/session-list/row-stop-button.js +1 -1
- package/dist/session-list/session-groups.js +1 -1
- package/dist/session-list/session-info-card.js +1 -1
- package/dist/session-list/session-list.js +1 -1
- package/dist/session-list/session-row.js +1 -1
- package/dist/session-list/session-state-dot.js +1 -1
- package/dist/session-list/session-state-menu.js +1 -1
- package/dist/session-list/shortcut-hint.js +1 -1
- package/dist/session-list/shortcut.js +1 -1
- package/dist/session-list/sidebar-overlay.js +1 -1
- package/dist/session-list/trailing-swap.js +1 -1
- package/dist/session-list/use-activity-notification.js +1 -1
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-cmd-held.js +1 -1
- package/dist/session-list/use-project-sessions.js +1 -1
- package/dist/session-list/virtual-session-rows.js +1 -1
- package/dist/session-timeline/activity-group.js +1 -1
- package/dist/session-timeline/activity-projection.js +1 -1
- package/dist/session-timeline/assistant-content.js +1 -1
- package/dist/session-timeline/assistant-image-references.js +1 -1
- package/dist/session-timeline/assistant-turn.d.ts +4 -0
- 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 +2 -2
- package/dist/chunk-0fqp48tv.js +0 -2
- package/dist/chunk-1a56svgj.js +0 -2
- package/dist/chunk-1fda3013.js +0 -2
- package/dist/chunk-3kn94cpp.js +0 -2
- package/dist/chunk-3r57tgvf.js +0 -2
- package/dist/chunk-4cbfgsg7.js +0 -2
- package/dist/chunk-5d138vq3.js +0 -1
- package/dist/chunk-5k4ec37x.js +0 -2
- package/dist/chunk-5mnjkjjr.js +0 -2
- package/dist/chunk-6tr1bch8.js +0 -4
- package/dist/chunk-8qzq9yq1.js +0 -2
- package/dist/chunk-8y838se4.js +0 -2
- package/dist/chunk-aepfqfad.js +0 -2
- package/dist/chunk-agx111cv.js +0 -2
- package/dist/chunk-b30n56t8.js +0 -2
- package/dist/chunk-b42vv8f2.js +0 -2
- package/dist/chunk-b8x98hyd.js +0 -2
- package/dist/chunk-bx11qvn9.js +0 -2
- package/dist/chunk-dd0f44xb.js +0 -2
- package/dist/chunk-dmq2fx7g.js +0 -2
- package/dist/chunk-dpfjxym1.js +0 -2
- package/dist/chunk-e27d47yd.js +0 -2
- package/dist/chunk-ep9vq47f.js +0 -2
- package/dist/chunk-fjrghy92.js +0 -2
- package/dist/chunk-gya560n0.js +0 -2
- package/dist/chunk-gyw21vnb.js +0 -2
- package/dist/chunk-j8ehajmt.js +0 -2
- package/dist/chunk-mhzqhd85.js +0 -2
- package/dist/chunk-mz90kcyd.js +0 -2
- package/dist/chunk-mzd9qfmj.js +0 -2
- package/dist/chunk-ngvdcqmt.js +0 -3
- package/dist/chunk-q73jne25.js +0 -2
- package/dist/chunk-sy1rf5m0.js +0 -4
- package/dist/chunk-t7xbh36h.js +0 -2
- package/dist/chunk-tk66t919.js +0 -4
- package/dist/chunk-ty9sa6we.js +0 -2
- package/dist/chunk-vnh0jnr4.js +0 -2
- package/dist/chunk-w368gk92.js +0 -2
- package/dist/chunk-x1mzrhtd.js +0 -2
- package/dist/chunk-xhbxpk0z.js +0 -2
- package/dist/chunk-y6p8xspr.js +0 -2
- package/dist/chunk-y85askf9.js +0 -2
- package/dist/chunk-yc47rq4m.js +0 -2
- package/dist/chunk-z6zsmpyz.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{os}from"./chunk-ybwevt5n.js";import{xe}from"./chunk-vvy4ke91.js";import{Ho}from"./chunk-2c7a0zdc.js";import{C}from"./chunk-x0m4ctqf.js";import{$o,Ut}from"./chunk-fvw65b49.js";import{le,Ko}from"./chunk-dxfhy8gr.js";import{Do}from"./chunk-k0rfgjm6.js";import{Yr,es}from"./chunk-2rk59ngw.js";import{Zr}from"./chunk-yfb5hj4w.js";import{Lo,Qr}from"./chunk-4sj3t6mk.js";import{decodeHTMLAttribute as N,decodeHTMLStrict as y}from"entities";import de from"katex";import{CheckIcon as B,ChevronLeftIcon as ue,ChevronRightIcon as me,CopyIcon as ge,DownloadIcon as fe,FileIcon as he,LinkIcon as pe,MailIcon as ke,XIcon as we}from"lucide-react";import"katex/dist/katex.min.css";import{createContext as D,createElement as X,memo as G,startTransition as be,useContext as J,useEffect as k,useLayoutEffect as V,useMemo as Z,useRef as w,useState as h}from"react";import{jsx as a,jsxs as g,Fragment as ie}from"react/jsx-runtime";var Y=D(!1),Q=D(null);function T(){let e=J(Q);if(e===null)throw Error("Markdown host is missing");return e}var Te=80,H=/\[([^\]\n]+)\]\(([^)\n]+)$/,ve=/(^|\n)[^\S\n]*!\[[^\]\n]*(?:\](?:\([^\n]*)?)?\s*$/,ye=/\uE200[^\uE201]*$/,Ce=4,Me=new Set("7zipx.accdb.asarpack.asciidoc.backup.backupdb.bundle.ccproj.cdrdao.code-workspace.config.debugin.deploy.design.docbook.dockerfile.dockerignore.editorconfig.eslintignore.gitattributes.gitignore.gitignore.gitkeep.gradle.graphqls.ignore.ipynb.keychain.keynote.licensee.lockfile.lockfile.markdown.markup.matlab.mkdocs.models.module.msstyle.notebook.npmignore.output.packageinfo.parquet.pickle.plistx.policy.postcssrc.prettierignore.projectfile.python.readme.review.robots.schema.search.series.settingsjson.shader.sqlite.sqlite3.storyboard.styles.system.target.terraform.update.vertex.webapp.webdoc.webpackrc.widget.workspace.xcodeproj.yarnlock".split("."));function L(e,n){let t=0;for(let r=n-1;r>=0&&e[r]==="\\";r-=1)t+=1;return t%2===1}function ee(e,n,t){if(t.length!==1)return!1;return e[n-1]===t||e[n+1]===t}function Ne(e,n){let t=0;for(let r=0;r<=e.length-n.length;){if(e.startsWith(n,r)&&!L(e,r)&&!ee(e,r,n)){t+=1,r+=n.length;continue}r+=1}return t}function Le(e,n){for(let t=e.length-n.length;t>=0;t-=1)if(e.startsWith(n,t)&&!L(e,t)&&!ee(e,t,n))return t;return-1}function Ee(e,n){let t=0;for(let r=0;r<=e.length-n.length;){if(e.startsWith(n,r)&&!L(e,r)){t+=1,r+=n.length;continue}r+=1}return t}function Ie(e){return Ee(e,"```")%2===1}function ne(e){let n=0;for(let t=0;t<e.length;){if(e.startsWith("```",t)){for(t+=3;t<e.length&&!e.startsWith("```",t);)t+=1;if(t<e.length)t+=3;continue}if(e[t]==="`"&&!L(e,t))n+=1;t+=1}return n%2===1}function Re(e){return e.endsWith(`
|
|
2
2
|
`)?`${e}\`\`\``:`${e}
|
|
3
3
|
\`\`\``}function _(e,n){if(!e.includes(n)||Ne(e,n)%2===0)return e;let t=Le(e,n);if(t<0)return e;let r=e.slice(t+n.length);if(r.length===0||/^\s/.test(r)||r.includes(`
|
|
4
4
|
`)||ne(r))return e;return`${e}${n}`}function $e(e){return e.startsWith("/")&&!e.startsWith("//")||/^[A-Za-z]:[\\/]/.test(e)||/^\\\\[^\\]+\\[^\\]+/.test(e)||/^\/\/[^/]+\/[^/]+/.test(e)}function te(e){let n=e.replaceAll("`","").trim(),t=n.match(/^(.*?):(\d+)(?::(\d+))?(?:[-–](\d+)(?::(\d+))?)?$/);if(t!==null){let[,o,s,i,c,d]=t;if(o===void 0||s===void 0)throw Error("Codex file location is incomplete");return{path:o,line:Number.parseInt(s,10),column:i===void 0?void 0:Number.parseInt(i,10),endLine:c===void 0?void 0:Number.parseInt(c,10),endColumn:d===void 0?void 0:Number.parseInt(d,10)}}let r=n.match(/^(.*?)#L(\d+)(?:C(\d+))?(?:-L(\d+)(?:C(\d+))?)?$/);if(r!==null){let[,o,s,i,c,d]=r;if(o===void 0||s===void 0)throw Error("Codex hash file location is incomplete");return{path:o,line:Number.parseInt(s,10),column:i===void 0?void 0:Number.parseInt(i,10),endLine:c===void 0?void 0:Number.parseInt(c,10),endColumn:d===void 0?void 0:Number.parseInt(d,10)}}return{path:n}}function Pe(e){let{path:n,line:t,column:r,endLine:o,endColumn:s}=te(e);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n)||/^www\./i.test(n)||/^(mailto|tel):/i.test(n))return!1;if(t!==void 0||r!==void 0||o!==void 0||s!==void 0)return!0;if(!/(?:^|[\\/])[^\\/]+\.(?!\d+$)[^\\/.]+$/i.test(n))return!1;let i=/[\\/]/.test(n),c=n.split(/[\\/]/).at(-1);if(c===void 0)throw Error("Codex streaming link target has no file name");let d=c.split(".").at(-1);if(d===void 0||d.length===0)return!1;if(!i&&/[a-z]/.test(d)&&/[A-Z]/.test(d.slice(1)))return!1;if(!i){let l=d.toLowerCase();if(l.length>Ce&&!Me.has(l))return!1}return!0}function Se(e){let{path:n}=te(e);if($e(n))return!0;try{return new URL(n).protocol==="file:"}catch{return!1}}function Ae(e){let n=e.match(H);if(n===null)return e;let t=n[2];if(t===void 0)throw Error("Codex streaming link target is missing");return Pe(t)||Se(t)?e.replace(H,"$1"):`${e})`}function Fe(e){let n=e.replace(ye,"");if(n.length===0||n.includes("`")&&ne(n))return{isCodeFenceOpen:!1,markdown:n};if(n.includes("```")&&Ie(n))return{isCodeFenceOpen:!0,markdown:Re(n)};if(n.includes(")n=Ae(n);return n=_(n,"**"),n=_(n,"*"),{isCodeFenceOpen:!1,markdown:n}}function He(e){return e?.type==="paragraph"&&"tokens"in e&&Array.isArray(e.tokens)}function O(e){return He(e)&&e.tokens.length===1&&e.tokens[0]?.type==="image"}function re(e){for(let n=0;n<e.length;n+=1){let t=e[n];if(t===void 0)throw Error(`Codex Markdown token is missing at index ${n}`);if("tokens"in t&&Array.isArray(t.tokens))re(t.tokens);if(!O(t))continue;let r=[...t.tokens],o=n+1,s=o;for(;;){while(e[o]?.type==="space")o+=1;let i=e[o];if(!O(i))break;r.push(...i.tokens),o+=1,s=o}if(s===n+1)continue;t.tokens=r,t.text=r.map((i)=>i.raw).join(`
|
|
5
|
-
`),t.raw=e.slice(n,s).map((i)=>i.raw).join(""),e.splice(n+1,s-n-1)}}function j(e){return{type:"text",raw:e,text:e}}function _e(e){return{type:"paragraph",raw:e.raw,text:e.text,tokens:e.tokens??[e]}}function P(e){for(let n of e){if(n.type==="list")for(let t of n.items){let r=t.tokens[0];if(r?.type==="heading"){let o=r,s=o.raw.trimEnd(),i=s.match(/^#{1,6}\s+/)?.[0];if(i!==void 0)t.tokens[0]={type:"paragraph",raw:o.raw,text:s,tokens:o.tokens===void 0?[j(s)]:[j(i),...o.tokens]}}if(t.loose)t.tokens=t.tokens.map((o)=>o.type==="text"?_e(o):o);P(t.tokens)}if("tokens"in n&&Array.isArray(n.tokens))P(n.tokens)}}function Oe(e,n){let t;try{t
|
|
6
|
-
`,1)[0];if(t===void 0)throw Error("Codex Markdown token has no first line");return(t.match(/\S+/)?.[0]??t).slice(0,Te)}function en(e){switch(e.type){case"code":return e.raw.trimStart().match(/^(```|~~~)/)?.[1]??"";case"link":return e.href;case"image":{let n=e;return`${n.href}:${z(n.text)}`}case"html":case"space":case"br":case"hr":case"def":return e.raw;case"math":return z(e.text);default:return""}}function
|
|
7
|
-
export{
|
|
5
|
+
`),t.raw=e.slice(n,s).map((i)=>i.raw).join(""),e.splice(n+1,s-n-1)}}function j(e){return{type:"text",raw:e,text:e}}function _e(e){return{type:"paragraph",raw:e.raw,text:e.text,tokens:e.tokens??[e]}}function P(e){for(let n of e){if(n.type==="list")for(let t of n.items){let r=t.tokens[0];if(r?.type==="heading"){let o=r,s=o.raw.trimEnd(),i=s.match(/^#{1,6}\s+/)?.[0];if(i!==void 0)t.tokens[0]={type:"paragraph",raw:o.raw,text:s,tokens:o.tokens===void 0?[j(s)]:[j(i),...o.tokens]}}if(t.loose)t.tokens=t.tokens.map((o)=>o.type==="text"?_e(o):o);P(t.tokens)}if("tokens"in n&&Array.isArray(n.tokens))P(n.tokens)}}function Oe(e,n){let t;try{t=$o(e,n)}catch{return}try{return decodeURIComponent(t)}catch(r){if(r instanceof URIError)return t;throw r}}function je({links:e,children:n}){let t=T(),r=Ko();if(t.preview||!r)return a("p",{className:"codex-markdown-paragraph",children:n});return a(es,{links:e})}function We(e,n,t){e.preventDefault(),e.stopPropagation(),t.openLink(n)}function qe(e){try{let n=new URL(e);return n.protocol!=="http:"&&n.protocol!=="https:"?null:`${n.origin}/favicon.ico`}catch{return null}}function ze(e){let n=qe(e);return n===null?[]:[n,`https://www.google.com/s2/favicons?domain=${new URL(e).origin}&sz=32`]}function Ue({href:e}){let n=Z(()=>ze(e),[e]),[t,r]=h(),o=n.length===0&&!/^[a-z][a-z0-9+.-]*:/i.test(e),s=e.toLowerCase().startsWith("mailto:")?ke:o?he:pe;return g("span",{className:"codex-markdown-favicon",children:[t===void 0?a("span",{className:"codex-markdown-favicon-fallback",children:a(s,{"aria-hidden":!0})}):null,n.map((i)=>a("img",{alt:"",className:t===i?"codex-markdown-favicon-image-loaded":void 0,decoding:"async",draggable:!1,referrerPolicy:"no-referrer",src:i,onLoad:()=>r((c)=>c!==void 0&&n.includes(c)?c:i)},i))]})}function Ke({children:e,href:n,title:t}){let r=T(),o=le();if(r.preview)return a("span",{children:e});return a("a",{className:"codex-markdown-link","data-inline-mention-interactive":"",href:n,title:Oe(n,o)??t,onClick:(s)=>We(s,n,r),children:g("span",{className:"codex-markdown-link-mention","data-layout":"inline-flow","data-interactive":"","data-underline-on-hover":"",children:[a("span",{className:"codex-markdown-link-icon-container","data-markdown-copy":"exclude",children:a(Ue,{href:n})}),a("span",{className:"codex-markdown-link-label",children:e})]})})}function Be({code:e,language:n}){let{theme:t,copyLabel:r,copyText:o,onCopyError:s}=T(),i=w(null),[c,d]=h(null),[l,p]=h(null),[E,b]=h(!1);if(k(()=>{let f=Zr(d,p);return i.current=f,()=>{f.dispose(),i.current=null}},[]),k(()=>{let f=i.current;if(f===null)throw Error("Code highlighter is not mounted");f.update(e,n)},[e,n]),l!==null)throw l;let x=c!==null&&c.code===e&&c.language===n?c.html:null,u=async()=>{b(!1);try{await(o?o(e):navigator.clipboard.writeText(e)),b(!0),window.setTimeout(()=>b(!1),2000)}catch(f){s?.(f)}};return g("div",{className:"codex-markdown-code-block","data-markdown-copy":"code-block","data-markdown-copy-text":e,"data-theme":t==="dark"?"dark":"light",children:[g("div",{className:"codex-markdown-code-header","data-markdown-copy":"exclude",children:[a("div",{className:"codex-markdown-code-title",children:n}),a("div",{className:"codex-markdown-code-actions",children:a("button",{type:"button",className:"codex-markdown-code-copy",title:r,onClick:()=>void u(),children:E?a(B,{}):a(ge,{})})})]}),a("div",{className:"codex-markdown-code-container",dir:"ltr",children:a("code",{className:"codex-markdown-code-content hljs",...x===null?{children:e}:{dangerouslySetInnerHTML:{__html:x}}})})]})}function De({code:e,language:n}){let t=T(),r=J(Y),o=Ko();if(t.preview)return a("span",{children:e});if(!r&&o&&n?.toLowerCase()==="mermaid")return a(Do,{source:e});return a(Xe,{code:e,language:n})}function Xe({code:e,language:n}){let t=w(null),[r,o]=h(!1);if(k(()=>{if(r)return;let s=t.current;if(s===null)throw Error("Codex code block placeholder is not mounted");if(typeof IntersectionObserver>"u"){let c=window.setTimeout(()=>o(!0),0);return()=>window.clearTimeout(c)}let i=new IntersectionObserver((c)=>{if(!c.some((d)=>d.isIntersecting))return;o(!0),i.disconnect()},{rootMargin:"600px 0px"});return i.observe(s),()=>i.disconnect()},[r]),r)return a(Be,{code:e,language:n});return a("div",{ref:t,className:"codex-markdown-code-block",children:a("pre",{className:"codex-markdown-code-placeholder",children:a("code",{children:e})})})}function Ge(e){let n=[...document.body.querySelectorAll('[data-markdown-image-preview-trigger="true"]')],t=n.map((o)=>{let s=o.querySelector("img");if(s===null)throw Error("Codex image preview trigger has no image");return{src:s.currentSrc||s.src,alt:s.alt}}),r=n.indexOf(e);if(r===-1)throw Error("Codex image preview trigger is outside the document");return{images:t,index:r}}function Je({preview:e,setPreview:n}){let t=e.images[e.index];if(t===void 0)throw Error(`Codex image preview index is out of range: ${e.index}`);return g("div",{className:"codex-markdown-image-preview",children:[a("img",{src:t.src,alt:t.alt}),g("div",{className:"codex-markdown-image-preview-actions",children:[a("button",{type:"button","aria-label":"Previous image",disabled:e.index===0,onClick:()=>n({...e,index:e.index-1}),children:a(ue,{})}),a("a",{href:t.src,download:!0,"aria-label":"Download image",children:a(fe,{})}),a("button",{type:"button","aria-label":"Next image",disabled:e.index===e.images.length-1,onClick:()=>n({...e,index:e.index+1}),children:a(me,{})}),a("button",{type:"button","aria-label":"Close image preview",onClick:()=>n(void 0),children:a(we,{})})]})]})}function Ve(e){return T().preview?a(ie,{children:e.alt}):a(Ze,{...e})}function Ze(e){let{loadImage:n}=T(),t=le(),{src:r}=e,s=!r.startsWith("//")&&(!/^[a-z][a-z\d+.-]*:/i.test(r)||/^file:/i.test(r)||/^[a-z]:[\\/]/i.test(r))&&n!==void 0,[i,c]=h();if(k(()=>{if(!s)return;let d=!0;return(async()=>{let l=Ut(r,t);if(l===null)throw Error("The image does not name a local file");return n(l)})().then((l)=>{if(d)c({source:r,directory:t,url:l})},(l)=>{if(d)c({source:r,directory:t,error:l instanceof Error?l.message:String(l)})}),()=>{d=!1}},[s,n,r,t]),!s)return a(W,{...e});if(i?.source!==r||i.directory!==t)return a("span",{role:"status",children:e.alt});if(i.error!==void 0)return g("span",{role:"alert",title:i.error,children:[e.alt,": ",i.error]});if(i.url===void 0)throw Error("The local image result has no URL");return a(W,{...e,src:i.url})}function W({src:e,alt:n,title:t,allowWide:r}){let o=w(null),[s,i]=h();k(()=>{let d=o.current;if(d===null)throw Error("Codex image preview dialog is not mounted");if(s===void 0){if(d.open)d.close();return}if(!d.open)d.showModal()},[s]);let c=n.length===0?"Open image preview":n;return g(ie,{children:[a("button",{type:"button",className:`codex-markdown-image-trigger${r?"codex-markdown-image-trigger-wide":""}`,"aria-label":c,"data-markdown-image-preview-trigger":"true",onClick:(d)=>i(Ge(d.currentTarget)),children:a("img",{className:`codex-markdown-image${r?"codex-markdown-image-wide":""}`,src:e,alt:n,title:t,loading:"lazy"})}),a("dialog",{ref:o,className:"codex-markdown-image-dialog","aria-label":c,onClose:()=>i(void 0),children:s===void 0?null:a(Je,{preview:s,setPreview:i})})]})}function Ye({value:e,display:n}){let t=w(null);return V(()=>{if(t.current===null)throw Error("Codex math root is not mounted");de.render(e,t.current,{displayMode:n,throwOnError:!1})},[n,e]),a("span",{ref:t,className:n?"codex-markdown-math-block":"codex-markdown-inline-math"})}var Qe=150,M=null;function q(e,n){let t=M;if(t===null)return e;let r=t.cursor,o=r+e.length;t.cursor=o;let s=[],i=r;for(let c of t.runs){if(c.end<=r)continue;if(c.start>=o)break;let d=Math.max(r,c.start),l=Math.min(o,c.end);if(i<d)s.push(e.slice(i-r,d-r));s.push(a("span",{className:"codex-markdown-fade",children:e.slice(d-r,l-r)},`${n}:${t.generation}:${c.start}`)),i=l}if(i<o)s.push(e.slice(i-r));return s}function oe(e){let n=5381;for(let t=0;t<e.length;t+=1)n=(n*33+e.charCodeAt(t))%4294967296;return n.toString(36)}function z(e){let n=e.trim();if(n.length===0)return"";let t=n.split(`
|
|
6
|
+
`,1)[0];if(t===void 0)throw Error("Codex Markdown token has no first line");return(t.match(/\S+/)?.[0]??t).slice(0,Te)}function en(e){switch(e.type){case"code":return e.raw.trimStart().match(/^(```|~~~)/)?.[1]??"";case"link":return e.href;case"image":{let n=e;return`${n.href}:${z(n.text)}`}case"html":case"space":case"br":case"hr":case"def":return e.raw;case"math":return z(e.text);default:return""}}function ae(e){return`${e.type==="math"?`math-${e.display?"block":"inline"}`:e.type}-${oe(en(e))}`}function m(e,n){let t=new Map;return e.map((r)=>{let o=ae(r),s=t.get(o)??0;return t.set(o,s+1),se(r,`${n}-${o}-${s}`)})}function nn(e,n){let t=e.task?e.tokens.filter((r)=>r.type!=="checkbox"):e.tokens;return g("li",{className:`codex-markdown-list-item${e.task?"codex-markdown-task-list-item":""}`,children:[e.task?g("div",{className:"codex-markdown-task-checkbox",children:[a("input",{type:"checkbox",className:"codex-markdown-checkbox",checked:e.checked,"data-state":e.checked?"checked":"unchecked",readOnly:!0,disabled:!0}),e.checked?a(B,{}):null]}):null,m(t,n)]},n)}function tn(e,n){let r=`codex-markdown-list ${e.items.some((s)=>s.task)?"codex-markdown-task-list":e.ordered?"codex-markdown-ordered-list":"codex-markdown-unordered-list"}`,o=m(e.items,n);return e.ordered?a("ol",{className:r,start:e.start===""?void 0:e.start,children:o},n):a("ul",{className:r,children:o},n)}function U(e,n,t){let r=t?"th":"td",o=/^\d+$/.test(e.text);return X(r,{key:n,className:`${t?"codex-markdown-table-header":"codex-markdown-table-cell"}${o?" codex-markdown-numeric-table-cell":""}`,align:e.align??void 0},...m(e.tokens,n))}function rn(e,n){let t=new Map;return a("div",{className:"codex-markdown-table-container","data-markdown-table":!0,tabIndex:-1,children:a("div",{className:"codex-markdown-table-scroller",children:a("div",{className:"codex-markdown-table-wrapper",children:g("table",{className:"codex-markdown-table",children:[a("thead",{children:a("tr",{className:"codex-markdown-table-row",children:e.header.map((r,o)=>U(r,`${n}-header-${o}`,!0))})}),a("tbody",{className:"codex-markdown-table-body",children:e.rows.map((r)=>{let o=oe(r.map((c)=>c.text).join("\x00")),s=t.get(o)??0;t.set(o,s+1);let i=`${n}-row-${o}-${s}`;return a("tr",{className:"codex-markdown-table-row",children:r.map((c,d)=>U(c,`${i}-cell-${d}`,!1))},i)})})]})})})},n)}function K(e,n,t){let r=N(e.href);if(!Ho(r))return null;return a(Ve,{src:r,alt:y(e.text),title:e.title==null?void 0:N(e.title),allowWide:t},n)}function se(e,n){switch(e.type){case"space":case"def":case"internalMessage":return null;case"hr":return a("hr",{className:"codex-markdown-horizontal-rule"},n);case"heading":{let t=e,o={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"}[t.depth];if(o===void 0)throw Error(`Unsupported Codex Markdown heading depth: ${t.depth}`);return X(o,{key:n,className:`codex-markdown-heading codex-markdown-heading-${t.depth}`},...m(t.tokens,n))}case"paragraph":{let t=e,r=t.tokens.filter((c)=>c.type!=="space"&&c.type!=="br"),o=t.tokens.filter((c)=>c.type!=="text"||c.raw.trim().length>0);if(o.length>0&&o.every(Yr))return a(je,{links:o,children:m(t.tokens,n)},n);let s=r.length>0&&r.every((c)=>c.type==="image"),i=s&&r.length>1;return a("p",{className:`codex-markdown-paragraph${s?"codex-markdown-media-paragraph codex-markdown-media-wide-block":""}${i?"codex-markdown-media-grid-paragraph":""}`,"data-markdown-image-grid":i?"true":void 0,"data-wide-markdown-block":s?"true":void 0,"data-wide-markdown-block-kind":s?"image":void 0,children:s?r.map((c,d)=>K(c,`${n}-image-${d}`,!0)):m(t.tokens,n)},n)}case"text":{let t=e;return t.tokens===void 0?a(os,{text:y(t.text),children:q(y(t.text),n)},n):m(t.tokens,n)}case"escape":return q(e.text,n);case"strong":return a("strong",{className:"codex-markdown-strong",children:m(e.tokens,n)},n);case"em":return a("em",{children:m(e.tokens,n)},n);case"del":return a("del",{children:m(e.tokens,n)},n);case"codespan":return a("span",{className:"codex-markdown-inline-code",dir:"ltr","data-markdown-copy":"inline-code",children:e.text},n);case"br":return a("br",{},n);case"link":{let t=e,r=m(t.tokens,n),o=N(t.href),s=C(o);if(s!==null)return a(xe,{app:{id:s,name:y(t.text).replace(/^\$/,"")}},n);return Ho(o)?a(Ke,{href:o,title:t.title==null?void 0:N(t.title),children:r},n):a("span",{children:r},n)}case"image":return K(e,n,!1);case"code":{let t=e;return a(De,{code:t.text,language:t.lang},n)}case"blockquote":return a("blockquote",{className:"codex-markdown-blockquote",children:m(e.tokens,n)},n);case"list":return tn(e,n);case"list_item":return nn(e,n);case"table":return rn(e,n);case"html":{let t=e;return/^<br\s*\/?>$/i.test(t.raw.trim())?a("br",{},n):t.raw}case"math":{let t=e;return a(Ye,{value:t.text,display:t.display},n)}default:throw Error(`Unsupported Codex Markdown token: ${JSON.stringify(e)}`)}}function v(e){switch(e.type){case"text":{let n=e;return n.tokens===void 0?y(n.text):n.tokens.map(v).join("")}case"escape":return e.text;case"paragraph":case"heading":case"strong":case"em":case"del":case"link":case"blockquote":case"list_item":return e.tokens.map(v).join("");case"list":return e.items.map(v).join("");case"table":{let n=e;return[n.header,...n.rows].map((t)=>t.map((r)=>r.tokens.map(v).join("")).join("")).join("")}default:return""}}function on({token:e,tokenKey:n,offset:t,runs:r,generation:o}){let s=M;try{return M={cursor:t,runs:r,generation:o},se(e,n)}finally{M=s}}var an=G(function({result:n}){let{text:t,isStreaming:r}=n,o=Z(()=>{let u=n.tokens;if(n.source.includes("!["))re(u);P(u);let f=new Map,S=0;return u.map((I)=>{let R=ae(I),A=f.get(R)??0;f.set(R,A+1);let F=v(I),ce={token:I,tokenKey:`root-${R}-${A}`,offset:S,visibleText:F};return S+=F.length,ce})},[n]),s=o.map((u)=>u.visibleText).join(""),i=w({text:"",visibleText:"",runs:[],generation:0}),c=i.current,d=t.startsWith(c.text)||s.startsWith(c.visibleText),l=d?c.visibleText.length:0,p=performance.now(),E=r&&d?c.runs.filter((u)=>p-u.firstSeenAtMs<Qe):[],b=c.generation+(d?0:1),x={text:t,visibleText:s,runs:E.filter((u)=>u.start<s.length).map((u)=>({...u,end:Math.min(u.end,s.length)})),generation:b};if(r&&s.length>l)x.runs.push({start:l,end:s.length,firstSeenAtMs:p});return V(()=>{i.current=x}),a("div",{dir:"auto",className:"codex-markdown-content codex-markdown-root","data-streaming":r?"true":void 0,children:o.map((u)=>a(on,{token:u.token,tokenKey:u.tokenKey,offset:u.offset,runs:x.runs,generation:b},u.tokenKey))})}),sn=G(function({text:n,isStreaming:t}){let r=w(null),[o,s]=h(()=>Lo(n,t)),i=w(o!==null),[c,d]=h(null);if(k(()=>{let l=Qr((p)=>{if(!i.current)i.current=!0,s(p);else be(()=>s(p))},d);return r.current=l,()=>{l.dispose(),r.current=null}},[]),k(()=>{let l=r.current;if(l===null)throw Error("Markdown parser is not mounted");let p=t?Fe(n).markdown:n;l.update({source:p,text:n,isStreaming:t})},[t,n]),c!==null)throw c;return o===null?a("div",{"data-markdown-pending":!0}):a(an,{result:o})});function Lt({text:e,streaming:n,host:t}){let r=n===!0,[o,s]=h(e);return k(()=>{if(o===e)return;if(!r){s(e);return}let i=requestAnimationFrame(()=>s(e));return()=>cancelAnimationFrame(i)},[o,r,e]),a(Q.Provider,{value:t,children:a(Y.Provider,{value:r,children:a(sn,{text:r?o:e,isStreaming:r})})})}
|
|
7
|
+
export{Lt};
|
|
@@ -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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{m}from"./chunk-189aq7st.js";import{a,o}from"./chunk-r7z3mvej.js";import{E,v,f,ae}from"./chunk-06aaghwq.js";import{M,me,$i}from"./chunk-gdn4vvks.js";import{gt}from"./chunk-bbvhgh27.js";import{B,ie}from"./chunk-yc7w1en3.js";import{Ie,pe}from"./chunk-fednb216.js";import{closestCorners as ge,DndContext as fe,KeyboardSensor as Ce,PointerSensor as ye,useSensor as V,useSensors as Se}from"@dnd-kit/core";import{SortableContext as W,sortableKeyboardCoordinates as De,useSortable as le,verticalListSortingStrategy as X}from"@dnd-kit/sortable";import{CSS as re}from"@dnd-kit/utilities";import{cn as F}from"cn";import{BrushCleaningIcon as we,MessageSquareIcon as ve,MoreHorizontalIcon as Ne,PencilIcon as he,PlusIcon as se,StarIcon as be,Trash2Icon as ce}from"lucide-react";import{useEffect as xe,useMemo as Me,useState as R}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 Ee,DropdownMenuContent as ke,DropdownMenuGroup as Le,DropdownMenuItem as z,DropdownMenuTrigger as Re}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{Input as Pe}from"@nyssance/shadcn/vega/components/ui/input";import{jsx as e,jsxs as s,Fragment as ze}from"react/jsx-runtime";function Te({collectionId:l,sessionId:C,children:b}){let{attributes:w,listeners:N,setNodeRef:i,transform:p,transition:u,isDragging:x}=le({id:JSON.stringify([l,C]),data:{type:"session",collectionId:l,sessionId:C}});return e("div",{ref:i,style:{transform:re.Transform.toString(p),transition:u},className:F("w-full min-w-0",x&&"opacity-50"),...w,...N,role:"group",children:b})}function Be({collection:l,children:C,onEdit:b,onConfirm:w,onNewChat:N}){let{t:i}=M(),p=pe(),u=me(),{attributes:x,listeners:d,setNodeRef:I,transform:P,transition:T,isDragging:K}=le({id:l.id,disabled:{draggable:l.id===B,droppable:!1},data:{type:"collection"}});return e("div",{ref:I,style:{transform:re.Transform.toString(P),transition:T},className:F("w-full min-w-0",K&&"opacity-50"),children:e(ae,{open:!l.collapsed,onOpenChange:(c)=>u(p({type:"collapse",id:l.id,collapsed:!c})),label:ie(l,i),count:l.sessionIds.length,leading:l.id===B?e(be,{className:"size-3.5"}):e(gt,{emoji:l.emoji,onChange:(c)=>u(p({type:"emoji",id:l.id,emoji:c}))}),wrapHeader:(c)=>e("div",{...x,...d,role:"group",children:c}),actions:s(Ee,{children:[e(Re,{onClick:(c)=>c.stopPropagation(),onPointerDown:(c)=>c.stopPropagation(),render:e(D,{variant:"ghost",size:"icon",className:"size-5","aria-label":i("collection.more",{name:ie(l,i)}),children:e(Ne,{className:"size-3.5"})})}),e(ke,{children:s(Le,{children:[l.id!==B&&s(z,{onClick:b,children:[e(he,{}),i("collection.rename")]}),s(z,{onClick:N,children:[e(se,{}),i("collection.newChat")]}),s(z,{onClick:()=>w("clear"),children:[e(we,{}),i("collection.clearCollection")]}),l.id!==B&&s(z,{variant:"destructive",onClick:()=>w("delete"),children:[e(ce,{}),i("collection.deleteCollection")]})]})})]}),children:C})})}function He({children:l}){return e("div",{className:"min-h-0 flex-1 overflow-y-auto ps-2 pe-0 pb-1",children:l})}function Ds({renderRow:l,onSelect:C,onNewChat:b,Scroll:w=He}){let N=M(),{t:i}=N,p=pe(),u=me(),x=a(),{collections:d,order:I}=Ie(),P=o((t)=>t.sessionList),T=o((t)=>t.archivedSessions),K=o((t)=>t.sessionListLoaded),c=o((t)=>t.sessionListError),U=Me(()=>new Map([...T,...P].map((t)=>[t.sessionId,t])),[T,P]),_=N.isMac??$i(),[y,k]=R(null),[L,O]=R(""),[q,j]=R(""),[S,H]=R(null),[g,J]=R(!1),de=Se(V(ye,{activationConstraint:{distance:5}}),V(Ce,{coordinateGetter:De})),G=I.flatMap((t)=>d[t].collapsed?[]:d[t].sessionIds.flatMap((n)=>{let r=U.get(n);return r&&!r.archived?[r]:[]}));xe(()=>{let t=(n)=>{if(n.defaultPrevented||n.isComposing||n.repeat||n.shiftKey||n.altKey)return;if(_?!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||!G[r])return;n.preventDefault(),C(G[r])};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[G,_,C]);let ue=({active:t,over:n})=>{if(n===null)return;let r=t.data.current,h=n.data.current;if(r?.type==="session"&&h!==void 0){let Q=h.type==="session"?String(h.collectionId):String(n.id);u(p({type:"move",sourceCollectionId:String(r.collectionId),collectionId:Q,sessionId:String(r.sessionId),index:h.type==="session"?d[Q].sessionIds.indexOf(String(h.sessionId)):void 0}))}else if(r?.type==="collection"&&h?.type==="collection"&&String(n.id)!==B)u(p({type:"reorder",id:String(t.id),index:I.indexOf(String(n.id))}))},A=(t,n)=>{J(!0),u(t.then(n).finally(()=>J(!1)))};return s(ze,{children:[e(w,{children:s(E,{children:[s(f,{className:F(m,"font-normal"),onClick:()=>{k("new"),O(""),j("")},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(x.listSessions({reset:!0})),children:i("collection.retry")})]}),e(fe,{sensors:de,collisionDetection:ge,onDragEnd:ue,children:e(W,{items:I,strategy:X,children:e(E,{children:I.map((t)=>e(Be,{collection:d[t],onNewChat:()=>b(t),onEdit:()=>{k(t),O(d[t].name),j(d[t].emoji??"")},onConfirm:(n)=>H({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=U.get(n);if(r?.archived)return null;if(!r)return K?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(ve,{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(p({type:"remove",sessionId:n,collectionId:t})),children:e(ce,{})})]},n):null;return e(Te,{collectionId:t,sessionId:n,children:l(r,()=>{},t)},n)})})},t))})})})]})}),e(Y,{open:y!==null,onOpenChange:(t)=>{if(!t&&!g)k(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||!L.trim()||g)return;let n=y==="new"?`collection-${crypto.randomUUID()}`:y;A(p([y==="new"?{type:"create",id:n,name:L}:{type:"rename",id:n,name:L},{type:"emoji",id:n,emoji:q}]),()=>k(null))},className:"flex flex-col gap-3",children:[e(Pe,{autoFocus:!0,"aria-label":i("collection.collectionName"),value:L,onChange:(t)=>O(t.target.value),disabled:g}),y!=="new"&&e(gt,{emoji:q,onChange:j}),s(oe,{children:[e(D,{type:"button",variant:"outline",disabled:g,onClick:()=>k(null),children:i("collection.cancel")}),e(D,{type:"submit",disabled:g||!L.trim(),children:i("collection.confirm")})]})]})]})}),e(Y,{open:S!==null,onOpenChange:(t)=>{if(!t&&!g)H(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?"":ie(d[S.id],i)})})]}),s(oe,{children:[e(D,{variant:"outline",disabled:g,onClick:()=>H(null),children:i("collection.cancel")}),e(D,{disabled:g,onClick:()=>{if(S!==null)A(p({type:S.type,id:S.id}),()=>H(null))},children:i("collection.confirm")})]})]})})]})}
|
|
2
|
+
export{Ds};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,o}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{a,o}from"./chunk-r7z3mvej.js";import{latestAssistantReply as v}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useState as g}from"react";function Vn(e,r){let s=a(),c=o((t)=>t.connection),i=o((t)=>Boolean(t.sessions[e]?.attached)&&!t.sessions[e]?.restoring),u=o((t)=>v(t.sessions[e]?.items)),f=o((t)=>Boolean(t.runStates[e]?.reusableDraft)),[p,y]=g();return S(()=>{if(c!=="ready"||f||i)return;let t=!1,l,n=0,m=async()=>{try{let d=await s.activityReply(e);if(n=0,!t)y(d??void 0)}catch{n++}finally{if(!t&&(r==="running"||n>0&&n<3))l=setTimeout(()=>void m(),5000)}};return m(),()=>{t=!0,clearTimeout(l)}},[s,e,c,f,i,r]),i?u:p??u}
|
|
2
|
+
export{Vn};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s,a,o,h}from"./chunk-r7z3mvej.js";import{V}from"./chunk-mtcxr3ns.js";import{E,ae,Ue}from"./chunk-06aaghwq.js";import{ze,ne,ve}from"./chunk-ezaypwps.js";import{Fr}from"./chunk-qecs9e31.js";import{Ge}from"./chunk-jkqh03w4.js";import{Oe}from"./chunk-j1khvg9s.js";import{De}from"./chunk-z930082m.js";import{Vn}from"./chunk-wxafew32.js";import{Lr}from"./chunk-7g0cbkbp.js";import{ActivityIcon as D}from"lucide-react";import{useEffect as O,useMemo as A}from"react";import{Kbd as G}from"@nyssance/shadcn/vega/components/ui/kbd";import{jsx as c,jsxs as C,Fragment as H}from"react/jsx-runtime";function K(i,d){return i.find((l)=>l.sessionId===d.sessionId)??{sessionId:d.sessionId,cwd:d.cwd,title:d.title||null,updatedAt:null,archived:!1}}function ba({selectedId:i,onSelect:d,isForeground:l,onOpen:b,accessory:w,rowActions:k}){let R=s(),{t:N}=R,m=o((t)=>t.runStates),S=o((t)=>t.drafts),u=o((t)=>t.sessionList),v=ne((t)=>t.activityOrder),p=A(()=>v.flatMap((t)=>{let e=m[t];return e&&ze({runStates:m,drafts:S},t)?[{sid:t,record:e,sessionRow:K(u,e)}]:[]}),[v,m,S,u]),g=A(()=>{let t=new Map;for(let e of p){let r=e.sid===i||l?.(e.sid)?"foreground":"background",y=t.get(r)??[];y.push(e),t.set(r,y)}return["foreground","background"].filter((e)=>t.has(e)||e==="background").map((e)=>({key:e,rows:t.get(e)??[]}))},[p,i,l]),f=ne((t)=>t.activityCollapsedGroups),n=ve(),L=g.flatMap((t)=>t.key==="foreground"||!f.has(t.key)?t.rows:[]),x=(t)=>{if(b?.(t))return;d(t)},P=Lr();O(()=>{let t=(e)=>{if(e.defaultPrevented||e.isComposing||e.repeat||!Fr(e))return;if(document.querySelector('[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"]'))return;let r=Number(e.key);if(!Number.isInteger(r)||r<1||r>9)return;let y=L[r-1];if(!y)return;e.preventDefault(),x(y.sessionRow)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)});let I=(t)=>{let e=L.indexOf(t);return c(M,{sessionRow:t.sessionRow,state:t.record.state,interruption:t.record.interruption,active:t.sid===i,tasks:t.record.tasks,listeningPorts:t.record.listeningPorts,onOpen:()=>x(t.sessionRow),accessory:w?.(t.sid),actions:k?.(t.sessionRow),hint:e<9&&P?c(G,{children:De(`CommandOrControl+${e+1}`)}):void 0},t.sid)};return c(E,{children:g.map((t)=>t.key==="foreground"?c(E,{children:t.rows.map(I)},t.key):c(ae,{open:!f.has(t.key),onOpenChange:(e)=>{let r=new Set(f);if(e)r.delete(t.key);else r.add(t.key);n({activityCollapsedGroups:r})},leading:c(D,{className:"text-muted-foreground size-3.5 shrink-0"}),label:N("sessionList.background"),count:t.rows.length,children:t.rows.map(I)},t.key))})}function M({sessionRow:i,state:d,interruption:l,active:b,tasks:w,listeningPorts:k,accessory:R,actions:N,onOpen:m,hint:S}){let u=s(),v=a(),{t:p}=u,g=i.title??p("sessionList.untitled"),f=Vn(i.sessionId,d);return C(H,{children:[c(Ue,{"data-session-id":i.sessionId,active:b,role:"button",tabIndex:0,hoverCard:c(Oe,{sessionRow:i,actions:N}),onClick:m,onKeyDown:(n)=>{if(n.target!==n.currentTarget)return;if(n.key==="Enter"||n.key===" ")n.preventDefault(),m()},state:d,interruption:l,title:g,preview:f,listeningPorts:k,onOpenPort:u.openLink&&((n)=>u.openLink?.(`http://localhost:${n}`)),accessory:R,hint:S,actions:c(Ge,{title:p("sessionList.stop"),onStop:()=>h(u,v.stopSession(i.sessionId))})}),w.map((n)=>C("div",{className:"border-border/60 before:border-border/60 relative ms-4 flex min-h-7 items-center gap-2 border-s py-1 ps-4 pe-2 text-xs before:absolute before:start-0 before:top-3.5 before:w-2 before:border-t",children:[c(V,{state:"running"}),c("span",{className:"text-muted-foreground min-w-0 flex-1 truncate leading-5",title:n.title,children:n.title})]},n.id))]})}
|
|
2
|
+
export{ba};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ye}from"./chunk-2c7a0zdc.js";function C(e){return/^app:\/\/([^/?#\s)]+)$/.exec(e)?.[1]??null}function Ft(e){if(!e.includes("app://"))return[];let n=ye(),r=new Map;return n.walkTokens(n.lexer(e),(i)=>{if(i.type!=="link")return;let p=i,t=C(p.href);if(t!==null)r.set(t,{id:t,name:p.text.replace(/^\$/,"")})}),[...r.values()]}function Pa(e){return[...new Map(e.map((n)=>[n.id,n])).values()].map((n)=>`[$${n.name.replace(/[\\`*_[\]<>]/g,"\\$&")}](app://${n.id})`).join(" ")}function ts(e,n){return[Pa(n),e.trim()].filter(Boolean).join(" ")}function ns(e,n){let r=Pa(n);if(!r)return e;if(e===r)return"";return e.startsWith(`${r} `)?e.slice(r.length+1):e}
|
|
2
|
+
export{C,Ft,Pa,ts,ns};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Hn}from"./chunk-7jk8s061.js";function wo(t){let n=t?.match(/^gateway:custom-[^:]+:(.+)$/);if(!n)return null;let l=decodeURIComponent(n[1]),e=Hn.models.find((o)=>o.slug===l);return e?{value:e.default_reasoning_level,hidden:e.supported_reasoning_levels.length===0}:null}
|
|
2
|
+
export{wo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function ee(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 Dn(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 oa(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{ee,Dn,oa};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{t}from"./chunk-dxfhy8gr.js";import{Ht}from"./chunk-kk5acm1s.js";import{vi}from"./chunk-7sf2wz1n.js";import{D}from"./chunk-epdnafa1.js";import{io}from"./chunk-azak3tb5.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 C}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(D,{block:e.content},`${n.id}:${l}`))]})}var Yn=I(function({sessionId:r,items:e,terminals:l,streamingThoughtId:a}){let b=t(),i=e.every(io),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={...vi(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(C,{children:[s(Ht,{blocks:v,defaultExpanded:!i}),e.map((o)=>o.kind==="tool"&&s(R,{item:o},o.id))]})});
|
|
2
|
+
export{Yn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Bn}from"./chunk-sykf5jnc.js";import{Button as n}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as a,jsxs as o,Fragment as l}from"react/jsx-runtime";function sa({title:i,actions:r=[],children:t}){return o(l,{children:[o("div",{className:"flex h-[var(--navigation-row-height,30px)] items-center gap-0.5","data-tauri-drag-region":!0,children:[a("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold","data-tauri-drag-region":!0,children:i}),r.map((e)=>a(Bn,{label:e.label,shortcut:e.shortcut,children:a(n,{variant:"ghost",size:"icon-sm",className:"size-[var(--navigation-row-height,30px)] p-0","aria-label":e.label,onClick:e.onClick,children:e.icon})},e.key))]}),t!=null&&a("div",{className:"flex flex-col gap-0.5",children:t})]})}
|
|
2
2
|
export{sa};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function Fa(e,n){if(e.type||!n.type)return e;let i=n.type.split("/")[1],o=i!==void 0&&i!==""?`pasted-${Date.now()}.${i==="jpeg"?"jpg":i}`:"";return new File([e],e.name||o||`pasted-${Date.now()}`,{type:n.type})}function
|
|
2
|
-
export{Fa,kt,
|
|
1
|
+
function Fa(e,n){if(e.type||!n.type)return e;let i=n.type.split("/")[1],o=i!==void 0&&i!==""?`pasted-${Date.now()}.${i==="jpeg"?"jpg":i}`:"";return new File([e],e.name||o||`pasted-${Date.now()}`,{type:n.type})}function wt(e){let n=[],i=!1;for(let o of e){if(o.kind!=="file")continue;let t=o.getAsFile();if(!t)continue;if(!(t.type||o.type).startsWith("image/")){i=!0;continue}n.push(Fa(t,o))}return{imageFiles:n,sawNonImageFile:i}}function kt(e){return[...e].some((n)=>n.kind==="string")}var s=/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g;function Rn(e){return e.replace(s,"")}function ea(e,n){let i=0;for(let o=0;o<n;o++){let t=e.charCodeAt(o);if(t>=0&&t<=8||t===11||t===12||t>=14&&t<=31||t===127)i++}return i}function Ln(e){let{value:n,selectionStart:i,selectionEnd:o}=e,t=Rn(n);if(t===n)return t;if(e.value=t,i!==null&&o!==null){let a=Math.max(0,i-ea(n,i)),r=Math.max(0,o-ea(n,o));requestAnimationFrame(()=>{e.setSelectionRange(a,r)})}return t}
|
|
2
|
+
export{Fa,wt,kt,Rn,ea,Ln};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{n}from"./chunk-dxfhy8gr.js";import{e,x}from"./chunk-2c4hqv8f.js";import{QUICK_CHATS_GROUP as I,sessionGroup as z}from"@nyssance/codex-acp-v2/client";import{cn as P}from"cn";import{FolderClosedIcon as m,FolderPlusIcon as G,XIcon as j}from"lucide-react";import{useEffect as O,useMemo as R,useState as S}from"react";import{Button as C}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as A,DropdownMenuContent as F,DropdownMenuGroup as T,DropdownMenuItem as k,DropdownMenuRadioGroup as B,DropdownMenuRadioItem as E,DropdownMenuSeparator as U,DropdownMenuTrigger as _}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as r,jsxs as s,Fragment as H}from"react/jsx-runtime";function M(t){return t.replaceAll("\\","/").replace(/\/+$/,"").split("/").pop()||t}function ws({cwd:t,onChange:u,preparing:b=!1,recentProjects:g}){let{host:i,client:p}=e(),{t:l}=i,w=n((o)=>o.projectContext),v=n((o)=>o.sessionList),y=R(()=>g??[...new Set([...v].toSorted((o,f)=>(f.updatedAt??"").localeCompare(o.updatedAt??"")).map((o)=>o.cwd))],[g,v]),[c,N]=S(null);O(()=>{if(!p.refreshProjectContext)return;let o=!0;return x(i,p.refreshProjectContext(!0).then((f)=>{if(o)N(f.chatDirectory)})),()=>{o=!1}},[i,p]);let h=[...t!==null?[t]:[],...y.filter((o)=>o!==t)].filter((o)=>o!==c&&(!w||z(w,{cwd:o}).id!==I)),a=t!==null&&t!==c,D=()=>{if(c===null)throw Error("The default draft directory is not ready");u(null)},d=i.chooseFolder;return s(A,{children:[s("div",{"aria-busy":b,className:P("chat-project-picker group/project inline-flex h-7 max-w-full min-w-0 items-center gap-1.5 rounded-full",a?"text-foreground ps-2":"text-foreground/65"),children:[a&&s(C,{variant:"ghost",size:"icon-xs",className:"relative size-4 rounded-full p-0 hover:bg-transparent dark:hover:bg-transparent","aria-label":l("conversation.draft.workOutsideProject"),title:l("conversation.draft.workOutsideProject"),disabled:c===null,onClick:D,children:[r(m,{className:"size-4 group-hover/project:opacity-0"}),r("span",{className:"bg-muted-foreground text-background absolute inset-0 flex items-center justify-center rounded-full opacity-0 group-hover/project:opacity-100",children:r(j,{className:"size-3"})})]}),s(_,{render:r(C,{variant:"ghost",size:"sm",className:P("h-7 min-w-0 shrink gap-1.5 rounded-full py-0 text-sm font-normal text-inherit hover:bg-transparent aria-expanded:bg-transparent dark:hover:bg-transparent",a?"ps-0 pe-2":"px-2")}),children:[!a&&r(m,{className:"size-4"}),r("span",{className:"truncate",children:a?M(t):l("conversation.draft.selectProject")})]})]}),s(F,{side:"top",align:"start",className:"w-72 overflow-hidden",children:[h.length>0&&s(H,{children:[r("div",{className:"max-h-64 overflow-y-auto",children:r(B,{value:t??"",onValueChange:u,children:h.map((o)=>s(E,{value:o,title:o,closeOnClick:!0,children:[r(m,{}),r("span",{className:"truncate",children:M(o)})]},o))})}),(d!==void 0||a)&&r(U,{})]}),(d!==void 0||a)&&s(T,{children:[d&&s(k,{onClick:()=>{x(i,d(t).then((o)=>{if(o!==null)u(o)}))},children:[r(G,{}),l("conversation.draft.newProject")]}),c!==null&&a&&s(k,{onClick:D,children:[r(j,{}),l("conversation.draft.workOutsideProject")]})]})]})]})}
|
|
2
|
+
export{ws};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b}from"./chunk-52hvpdxw.js";import{Ct}from"./chunk-dzw6vqqf.js";import{e}from"./chunk-2c4hqv8f.js";import{yt,G}from"./chunk-nravn5bk.js";import{wn,Ee}from"./chunk-7ckdhz5y.js";import{Ae}from"./chunk-q98s7d94.js";import{Zap as g}from"lucide-react";import{jsx as n}from"react/jsx-runtime";function Qs({snapshot:s,model:l,onChange:r,nativeModels:t,catalog:c}){let{host:u}=e(),{t:a}=u,f=[{id:b.id,name:b.name,models:t===void 0?[{api_id:"",label:b.name}]:t.map((o)=>({api_id:o.id,label:o.label??o.id}))},...(s===null?[]:yt(s)).map((o)=>({id:o.id,name:o.name,models:o.models.map((i)=>({api_id:G(o.id,i.id),label:i.label??i.id}))}))],p=Ee(f,c),d=p.flatMap((o)=>o.models),m=l===null?t===void 0?d[0]:{api_id:"",label:a("composer.model")}:d.find((o)=>o.api_id===l)??{api_id:l,label:l};return n(Ct,{value:{...m,label:wn(m)},models:d,modelGroups:p,header:{name:a("composer.model"),action:n(Ae,{})},compactCatalog:!0,booleanOptions:[{id:"fast_mode",name:a("composer.fastMode"),currentValue:!1,disabled:!0,title:a("composer.fastModeUnsupported"),icon:n(g,{className:"size-4","aria-hidden":"true"})}],showModelList:!0,onChange:(o)=>r(o.api_id),t:(o)=>a(o)})}
|
|
2
|
+
export{Qs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{H,Ot}from"./chunk-3btheq4v.js";import{BlocksIcon as l,BookOpenIcon as m,SquareSlashIcon as d}from"lucide-react";import{createContext as p,useContext as i}from"react";import{jsx as o,jsxs as f}from"react/jsx-runtime";var Kn=p({names:[]});function Uo({kind:n,name:r}){let{icon:c}=i(Kn),s=n==="skill"?c?.(r):void 0;return f("span",{className:Ot,children:[s?o("img",{src:s,alt:"","aria-hidden":"true",className:"size-3.5 shrink-0 self-center object-contain"}):o(n==="skill"?m:n==="command"?d:l,{className:"size-3.5 shrink-0 self-center","aria-hidden":"true"}),o("span",{children:r})]})}function os({text:n,children:r}){let{names:c}=i(Kn),s=H(n,c);if(!s.length)return r;let t=[],a=0;for(let e of s)t.push(n.slice(a,e.start)),t.push(o("span",{"data-skill-reference":e.kind==="skill"?e.name:void 0,"data-command-reference":e.kind==="command"?e.name:void 0,children:o(Uo,{kind:e.kind,name:e.name.slice(1)})},e.start)),a=e.end;return t.push(n.slice(a)),t}
|
|
2
|
+
export{Kn,Uo,os};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
export{
|
|
1
|
+
var B="collection-default";function ie(o,e){return o.id==="collection-default"?e("collection.defaultFavorites"):o.name}function Qe(){return{collections:{["collection-default"]:{id:"collection-default",name:"",nameIsCustom:!1,collapsed:!1,sessionIds:[]}},order:["collection-default"],sessionMeta:{}}}function nn(o,e){let i={...o.collections},l=(s,n)=>{if(!i[s])throw Error(`Collection missing: ${s}`);i[s]={...i[s],...n}},r=(s,n)=>l(s,{sessionIds:i[s].sessionIds.filter((d)=>d!==n)}),t=(s,n)=>{let d=i[s];if(!d)throw Error(`Collection missing: ${s}`);for(let c of o.order)if(c!==s&&i[c].sessionIds.includes(n))r(c,n);if(!d.sessionIds.includes(n))l(s,{sessionIds:[...d.sessionIds,n],collapsed:!1})};switch(e.type){case"create":{if(!e.name.trim())throw Error("Collection name is empty");if(i[e.id]={id:e.id,name:e.name.trim(),...e.emoji===void 0?{}:{emoji:e.emoji},collapsed:!1,sessionIds:[]},e.sessionId!==void 0){if(e.sourceCollectionId!==void 0)r(e.sourceCollectionId,e.sessionId);t(e.id,e.sessionId)}return{...o,collections:i,order:[...o.order,e.id]}}case"rename":if(e.id==="collection-default")throw Error("Default collection cannot be renamed");if(!e.name.trim())throw Error("Collection name is empty");l(e.id,{name:e.name.trim(),nameIsCustom:!0,...e.emoji===void 0?{}:{emoji:e.emoji}});break;case"collapse":l(e.id,{collapsed:e.collapsed});break;case"emoji":l(e.id,{emoji:e.emoji});break;case"clear":l(e.id,{sessionIds:[]});break;case"delete":if(e.id==="collection-default")throw Error("Default collection cannot be deleted");return delete i[e.id],{...o,collections:i,order:o.order.filter((s)=>s!==e.id)};case"add":t(e.collectionId,e.sessionId);break;case"materialize":return t(e.collectionId,e.sessionId),{...o,collections:i,sessionMeta:{...o.sessionMeta,[e.sessionId]:{...o.sessionMeta[e.sessionId],cwd:e.cwd}}};case"move":{r(e.sourceCollectionId,e.sessionId),t(e.collectionId,e.sessionId);let n=i[e.collectionId].sessionIds.filter((d)=>d!==e.sessionId);n.splice(e.index??n.length,0,e.sessionId),l(e.collectionId,{sessionIds:n,collapsed:!1});break}case"reorder":{if(e.id==="collection-default")throw Error("Default collection cannot be reordered");let s=o.order.filter((n)=>n!==e.id);return s.splice(e.index,0,e.id),{...o,order:s}}case"forget":{for(let n of o.order)r(n,e.sessionId);let s={...o.sessionMeta};return delete s[e.sessionId],{...o,collections:i,sessionMeta:s}}case"remove":for(let s of e.collectionId===void 0?o.order:[e.collectionId])r(s,e.sessionId);break;case"favorite":if(o.order.some((s)=>i[s].sessionIds.includes(e.sessionId)))for(let s of o.order)r(s,e.sessionId);else t("collection-default",e.sessionId);break;case"meta":{let s=o.sessionMeta[e.sessionId],n={...s};if(e.meta.cwd!==void 0)n.cwd=e.meta.cwd;if(e.meta.title!==void 0&&!s?.titleOverride)n.title=e.meta.title;if(s?.cwd===n.cwd&&s?.title===n.title)return o;return{...o,sessionMeta:{...o.sessionMeta,[e.sessionId]:n}}}case"renameSession":{let s=e.title.trim();return{...o,sessionMeta:{...o.sessionMeta,[e.sessionId]:{...o.sessionMeta[e.sessionId],title:s||void 0,titleOverride:s.length>0}}}}}return{...o,collections:i}}function Us(o,e=Qe()){let i={collections:{...e.collections},order:[...e.order],sessionMeta:{...e.sessionMeta}};for(let l of o){for(let[r,t]of Object.entries(l.sessionMeta??{})){let s=i.sessionMeta[r];i.sessionMeta[r]=s?.titleOverride?{...t,...s}:{...s,...t}}for(let r of l.order){if(r==="collection-default")continue;let t=l.collections[r];if(!t)throw Error(`Persisted collection missing: ${r}`);let s=i.collections[r];if(i.collections[r]={...t,...e.collections[r],sessionIds:[...new Set([...s?.sessionIds??[],...t.sessionIds??[]])]},!i.order.includes(r))i.order.push(r)}}return i}
|
|
2
|
+
export{B,ie,Qe,nn,Us};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
class s{worker=new Worker(new URL("@alwith/module-chat/code-highlighter.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(i)=>{let e=this.active,t=i.data;if(t.clientId!==e?.clientId||t.revision!==e.revision){this.fail(Error("Code highlighting worker returned an unexpected request"));return}if(this.active=null,!t.ok){this.fail(Error(t.error));return}let r=this.clients.get(e.clientId);if(r?.revision===e.revision)r.onResult({code:e.code,language:e.language,html:t.html});this.dispatch()},this.worker.onerror=(i)=>this.fail(Error(i.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize code highlighting result"))}fail(i){this.failure=i,this.worker.terminate(),this.pending.clear(),this.active=null;for(let e of this.clients.values())e.onError(i)}dispatch(){if(this.active!==null||this.pending.size===0)return;let i=this.pending.values().next().value;this.pending.delete(i.clientId),this.active=i;try{this.worker.postMessage(i)}catch(e){this.fail(e instanceof Error?e:Error(String(e)))}}connect(i,e){if(this.failure!==null)throw this.failure;let t=++this.nextClientId,r={revision:0,onResult:i,onError:e};return this.clients.set(t,r),{update:(o,l)=>{if(this.failure!==null)throw this.failure;r.revision+=1,this.pending.set(t,{clientId:t,revision:r.revision,code:o,language:l}),this.dispatch()},dispose:()=>{if(this.clients.delete(t),this.pending.delete(t),this.clients.size===0)this.worker.terminate(),n=void 0}}}}var n;function
|
|
2
|
-
export{
|
|
1
|
+
class s{worker=new Worker(new URL("@alwith/module-chat/code-highlighter.worker",import.meta.url),{type:"module"});clients=new Map;pending=new Map;active=null;failure=null;nextClientId=0;constructor(){this.worker.onmessage=(i)=>{let e=this.active,t=i.data;if(t.clientId!==e?.clientId||t.revision!==e.revision){this.fail(Error("Code highlighting worker returned an unexpected request"));return}if(this.active=null,!t.ok){this.fail(Error(t.error));return}let r=this.clients.get(e.clientId);if(r?.revision===e.revision)r.onResult({code:e.code,language:e.language,html:t.html});this.dispatch()},this.worker.onerror=(i)=>this.fail(Error(i.message)),this.worker.onmessageerror=()=>this.fail(Error("Cannot deserialize code highlighting result"))}fail(i){this.failure=i,this.worker.terminate(),this.pending.clear(),this.active=null;for(let e of this.clients.values())e.onError(i)}dispatch(){if(this.active!==null||this.pending.size===0)return;let i=this.pending.values().next().value;this.pending.delete(i.clientId),this.active=i;try{this.worker.postMessage(i)}catch(e){this.fail(e instanceof Error?e:Error(String(e)))}}connect(i,e){if(this.failure!==null)throw this.failure;let t=++this.nextClientId,r={revision:0,onResult:i,onError:e};return this.clients.set(t,r),{update:(o,l)=>{if(this.failure!==null)throw this.failure;r.revision+=1,this.pending.set(t,{clientId:t,revision:r.revision,code:o,language:l}),this.dispatch()},dispose:()=>{if(this.clients.delete(t),this.pending.delete(t),this.clients.size===0)this.worker.terminate(),n=void 0}}}}var n;function Zr(i,e){return n??=new s,n.connect(i,e)}
|
|
2
|
+
export{Zr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{n}from"./chunk-dxfhy8gr.js";import{e}from"./chunk-2c4hqv8f.js";import{$e,lt,Ce}from"./chunk-tbz64dbd.js";import{inSessionTree as m}from"@nyssance/codex-acp-v2/client";import{jsx as l,jsxs as f,Fragment as x}from"react/jsx-runtime";var p=[];function Vt({sessionId:s}){let o=n((t)=>t.sessions),{host:u}=e(),d=n((t)=>t.actions),a=d.some((t)=>m(o,s,t.sessionId))?d.filter((t)=>m(o,s,t.sessionId)):p,i=a.filter($e).filter((t)=>{if(t.sessionId!==s||o[s]?.subagent!==void 0)return!0;let r=t.params._meta?.codex;return!(typeof r==="object"&&r!==null&&("delivery"in r)&&r.delivery==="async")}),c=a.filter((t)=>!$e(t));return f(x,{children:[c.length>0&&l("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:c.map((t)=>f("div",{children:[t.sessionId!==s&&l("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:t.sessionId===null?"":o[t.sessionId]?.title??u.t("subagents.untitled")}),l(Ce,{action:t})]},t.id))}),i[0]!==void 0&&l(lt,{action:i[0],total:i.length},i[0].id)]})}
|
|
2
|
+
export{Vt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{L,Eo,jr,$n,$r,Ro,qr}from"./chunk-37x36kph.js";import{t,je,w,n}from"./chunk-dxfhy8gr.js";import{Te}from"./chunk-tdaznr5w.js";import{createStore as E}from"@alwith/api/client";import{isText as k,nativeTurnId as Q}from"@nyssance/codex-acp-v2/client";import{jsx as y}from"react/jsx-runtime";var b=E({entries:{}});function p(r,e){b.setState((s)=>({entries:{...s.entries,[r]:e}}))}function v(r,e){let s=Q(e),a=r.items.findLast((i)=>Q(i)!==null);return!e.replayed&&s!==null&&a!==void 0&&Q(a)===s}function M(r,e){for(let s of r.items){if(s.kind!=="user"||s.echo==="pending")continue;for(let a of[...Ro(s._meta),...s.content.filter(k).flatMap((i)=>Ro(i._meta))])if(a.questionItemId===e)return a.answer}return}function O({sessionId:r,item:e,question:s,index:a}){let i=je(),{t:l}=t(),m=Eo(e.id,a),c=JSON.stringify([r,m]),u=w(b,(o)=>o.entries[c]),d=n((o)=>o.sessions[r]),A=n((o)=>o.connection==="ready"),f=u?.draft??jr(s),x=d===void 0?u?.accepted:M(d,m)??u?.accepted,h=d!==void 0&&v(d,e),D=!d?.subagent&&A&&d?.attached&&!d.restoring&&!d.readOnly,g=x!==void 0?"answered":u?.skipped?"skipped":u?.pending?"submitting":!h?"closed":!D?"unavailable":"pending",C=async()=>{if(b.getState().entries[c]?.pending||g!=="pending")return;let o=i.state.sessions[r];if(o===void 0||!v(o,e)||!o.attached||o.readOnly||o.restoring)return;let S=$n(s,f);if(!S.trim())return;let q={questionItemId:m,question:s.title,answer:S};p(c,{draft:f,pending:!0});try{await i.prompt(r,[{type:"text",text:$r(q),_meta:{codex:{questionReply:q}}}]),p(c,{draft:f,accepted:S})}catch(I){p(c,{draft:f,error:I instanceof Error?I.message:String(I)})}};if(g==="closed")return null;return y(qr,{question:s,draft:f,status:g,answer:x,error:g==="pending"?u?.error:void 0,t:l,onChange:(o)=>p(c,{draft:o}),onSkip:()=>p(c,{draft:f,skipped:!0}),onSubmit:()=>{C()}})}function so({sessionId:r,item:e}){let s=n((i)=>i.sessions[r]),a=L(e._meta);if(s===void 0||s.subagent!==void 0||s.readOnly||!v(s,e))return y(Te,{content:e.content.some((i)=>!k(i)||i.text.trim().length>0)?e.content:a.map((i)=>({type:"text",text:i.title})),messageId:e.id,streaming:!1});return y("div",{className:"flex min-w-0 flex-col gap-3","data-async-questions":e.id,children:a.map((i,l)=>y(O,{sessionId:r,item:e,question:i,index:l},Eo(e.id,l)))})}
|
|
2
|
+
export{so};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n}from"./chunk-dxfhy8gr.js";import{Nn,e,x}from"./chunk-2c4hqv8f.js";import{Me}from"./chunk-gjj5wbms.js";import{Bt}from"./chunk-d8bjsf1d.js";import{jt}from"./chunk-jbnbx285.js";import{Gt,zt}from"./chunk-6r1e3y4e.js";import{Vt}from"./chunk-yn3d949k.js";import{LockIcon as k,UnplugIcon as O}from"lucide-react";import{useMemo as S,useRef as M}from"react";import{Alert as C,AlertDescription as N,AlertTitle as h}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as w}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as P,EmptyDescription as z,EmptyHeader as B,EmptyTitle as I}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as o,jsxs as r}from"react/jsx-runtime";function ks({host:t,client:c,...s}){let m=S(()=>t.openDiff?t:{...t,openDiff:Gt},[t]);return r(Nn,{host:m,client:c,children:[o(L,{...s}),!t.openDiff&&o(zt,{})]})}function L({session:t,header:c,overlay:s,timeline:m,composer:D,readOnlyActions:g,recovery:E,welcome:R,children:T,rootRef:l,search:A=!0}){let{host:d,client:b}=e(),p=M(null),H=(a)=>{if(p.current=a,typeof l==="function")l(a);else if(l)l.current=a},{t:i}=d,f=n((a)=>a.connection==="ready"),v=n((a)=>a.historyPages[t.id]?.error),y=()=>x(d,b.open(t.id,t.cwd)),u=t.items.length===0&&t.attached&&!t.restoring&&t.state==="idle";return r("div",{"data-chat-drop-zone":!0,ref:H,className:"flex h-full min-h-0 flex-col",children:[c,r("div",{className:"relative flex min-h-0 flex-1 flex-col","data-chat-content":!0,children:[A&&!u&&o(jt,{sessionId:t.id,rootRef:p}),s,f&&!t.attached&&!t.restoring&&!t.readOnly&&o("div",{className:"mx-auto my-3 w-full max-w-4xl px-4",children:r(C,{children:[o(O,{}),o(h,{children:i("conversation.stopped")}),o(N,{children:o(w,{size:"sm",variant:"outline",onClick:y,children:i("conversation.reconnect")})})]})}),u?R??o(P,{className:"flex-1",children:r(B,{children:[o(I,{className:"text-[28px] font-normal",children:i("conversation.welcomeTitle")}),o(z,{children:i("conversation.welcomeDescription")})]})}):o(Bt,{session:t,timeline:m}),o(Vt,{sessionId:t.id}),E??(t.readOnly?o("div",{className:"mx-auto w-full max-w-3xl shrink-0 px-6 pb-5","data-readonly-composer":!0,children:r(C,{className:"flex items-center justify-between gap-4 rounded-3xl px-5 py-4",children:[r("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[o(k,{"aria-hidden":"true",className:"size-4 shrink-0"}),r("div",{className:"min-w-0 space-y-1",children:[o(h,{children:i("conversation.readOnlyTitle")}),o(N,{children:i("conversation.readOnlyDescription")}),v&&o("p",{role:"alert",className:"text-destructive break-words",children:v})]})]}),r("div",{className:"border-border flex shrink-0 items-center gap-1 border-s ps-3","data-readonly-actions":!0,children:[o(w,{size:"sm",variant:"outline",className:"text-foreground cursor-pointer disabled:cursor-not-allowed",onClick:y,disabled:!f||t.restoring,children:i(t.restoring?"conversation.restoring":"conversation.readOnlyRetry")}),g]})]})}):D??o(Me,{session:t}))]}),T]})}
|
|
2
|
+
export{ks};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Fe}from"./chunk-qecs9e31.js";function Dr(r){let s=Fe(),c=r.split("|").map((e)=>e.trim()).filter(Boolean),o=c.reduce((e,t)=>t.split("+").length>e.split("+").length?t:e,c[0]??r),a=[];for(let e of o.split("+").map((t)=>t.trim()))switch(e.toLowerCase()){case"commandorcontrol":case"cmdorctrl":a.push(s?"⌘":"Ctrl");break;case"command":case"meta":case"cmd":a.push(s?"⌘":"Win");break;case"control":case"ctrl":a.push(s?"⌃":"Ctrl");break;case"shift":a.push(s?"⇧":"Shift");break;case"alt":case"option":a.push(s?"⌥":"Alt");break;case"enter":case"return":a.push(s?"↩":"Enter");break;case"tab":a.push(s?"⇥":"Tab");break;case"backspace":case"delete":a.push(s?"⌫":"Backspace");break;case"escape":case"esc":a.push(s?"⎋":"Esc");break;case"space":a.push(s?"␣":"Space");break;case"fn":a.push("fn");break;case"arrowleft":a.push("←");break;case"arrowright":a.push("→");break;case"arrowup":a.push("↑");break;case"arrowdown":a.push("↓");break;default:a.push(e.toUpperCase())}return a}function De(r){return Dr(r).join(Fe()?"":"+")}
|
|
2
|
+
export{Dr,De};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function rr(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function mo(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function Ye(t){return t.type==="array"}function An(t){return(Ye(t)?t.items?.oneOf??[]:t.oneOf??[]).map((e)=>{let i=e,r=i.const??i.title??"";return{value:r,label:i.title??r,...i.description?{description:i.description}:{},...i._meta?.alwith?.preview?{preview:i._meta.alwith.preview}:{}}})}
|
|
2
|
+
export{rr,mo,Ye,An};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g}from"./chunk-32zzqeyf.js";import{e}from"./chunk-2c4hqv8f.js";import{u}from"./chunk-6ja6pt5x.js";import{isTauri as R}from"@tauri-apps/api/core";import{getCurrentWebview as M}from"@tauri-apps/api/webview";import{useEffect as j,useLayoutEffect as k,useRef as q}from"react";import{flushSync as v}from"react-dom";var z=33554432,x=new WeakMap;function U(s){return s.split(/[/\\]/).findLast((m)=>m!=="")??s}var xn={sourcePath:(s)=>x.get(s),uniqueFiles(s,m){let l=new Set(m.map((d)=>d.sourcePath));return s.filter((d)=>{let h=x.get(d);if(h===void 0)return!0;if(l.has(h))return!1;return l.add(h),!0})}};function bn({sessionId:s,imagesOnly:m=!1,picker:l,enabled:d,onMention:h,onBusyChange:C}){let D=g(),{host:T}=e(),o=q({sessionId:s,attachments:D,enabled:d,onMention:h,onBusyChange:C,host:T,imagesOnly:m});return k(()=>{o.current={sessionId:s,attachments:D,enabled:d,onMention:h,onBusyChange:C,host:T,imagesOnly:m}}),j(()=>{if(!R())return;let f=!1,W,S=Promise.resolve(),b=0,y=()=>!f&&o.current.sessionId===s&&o.current.enabled,w=(r)=>{let{host:i}=o.current;if(i.reportError)i.reportError(r);else console.error(r)},E=()=>w(Error(o.current.host.t("composer.dropUnavailable")));o.current.onBusyChange(!1);let F=(r)=>{b++,v(()=>o.current.onBusyChange(!0)),S=S.then(async()=>{try{let i=new Set(o.current.attachments.files.map((t)=>t.sourcePath));for(let t of new Set(await r())){let a=typeof t==="string"?t:t.name;if(!y())return;try{if(typeof t!=="string"&&t.type.startsWith("image/")){v(()=>o.current.attachments.add([t]));continue}if(typeof t!=="string"&&t.size>z)throw Error("Pasted file exceeds the 32 MiB limit");let p=typeof t==="string"?t:await u.writePastedFile({name:t.name,data:[...new Uint8Array(await t.arrayBuffer())]});if(!y())return;let c=await u.readDroppedFile({path:p});if(!y())return;if(c.image===null){if(o.current.imagesOnly)throw Error(o.current.host.t("composer.unsupportedAttachmentTitle"));v(()=>o.current.onMention(c.path))}else if(!i.has(c.path)){let A=Uint8Array.from(atob(c.image.data),(P)=>P.charCodeAt(0)),n=new File([A],c.name,{type:c.image.mimeType});x.set(n,c.path),i.add(c.path),v(()=>o.current.attachments.add([n]))}}catch(p){if(!f)w(Object.assign(Error(o.current.host.t("composer.dropFailed",{name:U(a)})),{description:p instanceof Error?p.message:String(p)}))}}}finally{if(b--,!f)v(()=>o.current.onBusyChange(b>0))}}).catch((i)=>{if(!f)w(i)})},B=(r)=>{if(!y()){E();return}if(o.current.imagesOnly&&r.some((i)=>!i.type.startsWith("image/"))){w(Error(o.current.host.t("composer.unsupportedAttachmentTitle")));return}F(()=>Promise.resolve(r))};if(l)l.current=B;let O=M().onDragDropEvent((r)=>{if(f||r.payload.type!=="drop")return;let{paths:i,position:t}=r.payload,a=document.elementFromPoint(t.x/window.devicePixelRatio,t.y/window.devicePixelRatio);if(!a?.closest("[data-chat-drop-zone]")||a.closest('[role="dialog"]'))return;if(!y()){E();return}F(()=>Promise.resolve(i))}),L=(r)=>{let i=r.target;if(!(i instanceof Element)||!i.matches("[data-chat-input]"))return;if(!i.closest("[data-chat-drop-zone]")||i.closest('[role="dialog"]'))return;let t=r.clipboardData;if(!t)return;let a=[...t.files??[]],p=[...t.items??[]];if(!(t.types.includes("Files")&&!a.length&&!p.some((n)=>n.type.startsWith("image/")))&&!a.some((n)=>!n.type.startsWith("image/"))&&!p.some((n)=>n.kind==="file"&&!n.type.startsWith("image/"))&&!["text/uri-list","x-special/gnome-copied-files"].some((n)=>t.types.includes(n)&&/^file:\/\//m.test(t.getData(n))))return;if(r.preventDefault(),r.stopPropagation(),!y()){E();return}let A=u.clipboardFilePaths().then((n)=>({value:n}),(n)=>({error:n}));F(async()=>{let n=await A;if("error"in n)throw n.error;let P=n.value;if(P.length)return P;if(a.length)return a;throw Error("The clipboard contains no readable local files")})};return document.addEventListener("paste",L,!0),O.then((r)=>{if(f)r();else W=r}).catch((r)=>{if(!f)w(r)}),()=>{if(f=!0,l?.current===B)l.current=null;document.removeEventListener("paste",L,!0),W?.()}},[s,l]),null}
|
|
2
|
+
export{xn,bn};
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Un,ko}from"./chunk-4y07ykv2.js";import"./chunk-h1t76wws.js";import"./chunk-46j8adkj.js";import"./chunk-b4qe4xnp.js";import"./chunk-x9rppnkq.js";import{Fn}from"./chunk-6wkcqhkk.js";import"./chunk-me230xjh.js";import"./chunk-qz9q0g2b.js";import{cr,On}from"./chunk-3kxerrsh.js";import"./chunk-afnnrn6z.js";import"./chunk-hqfhb4ng.js";import{ge}from"./chunk-pv7t4hw8.js";import{et,Re,ia}from"./chunk-ts7h148j.js";import"./chunk-5dygcexv.js";import{ee,Dn,oa}from"./chunk-xca0vnvk.js";import{b,lr}from"./chunk-52hvpdxw.js";import{ta}from"./chunk-vbbndjfd.js";import{na}from"./chunk-ymgc4317.js";export*from"@nyssance/codex-acp-v2/client";export{ko as APPLICATION_SERVER_NAME,lr as CodexClient,b as NATIVE_MODEL_GROUP,Un as defineApplicationTool,oa as explainRequestError,Fn as forkTitle,ge as imageInputMode,Re as inputModeDefinition,ee as isAuthenticationRequired,et as isInputMode,Dn as isModelSelectionRequired,ta as macProjectPaths,cr as parseInputConfig,On as parseInputSnapshot,ia as resolveInputMode,na as watchSessionList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{us,Ht}from"../chunk-kk5acm1s.js";import"../chunk-w5rg8wk8.js";import"../chunk-vvmmzcms.js";import"../chunk-v6f6s828.js";import"../chunk-fpsn6fmf.js";import"../chunk-vhxr0c4c.js";import"../chunk-fvw65b49.js";import"../chunk-dxfhy8gr.js";import"../chunk-hz8yrg2t.js";export{Ht as CodexActivityGroup,us as CodexWorkSection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{es
|
|
1
|
+
import{Yr,es}from"../chunk-2rk59ngw.js";import"../chunk-epdnafa1.js";import"../chunk-x0m4ctqf.js";import"../chunk-2c7a0zdc.js";import"../chunk-vvy4ke91.js";import"../chunk-ybwevt5n.js";import"../chunk-3btheq4v.js";import"../chunk-fvw65b49.js";import"../chunk-dxfhy8gr.js";import"../chunk-hz8yrg2t.js";export{es as ArtifactLinks,Yr as isArtifactLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cl,Go
|
|
1
|
+
import{cl,Bo,Go}from"../chunk-sx1gjwb6.js";import"../chunk-bnf6pmgc.js";import"../chunk-esxjnj1y.js";import"../chunk-6hxz5cpc.js";import"../chunk-gt50nb3j.js";import"../chunk-kk5acm1s.js";import"../chunk-w5rg8wk8.js";import"../chunk-vvmmzcms.js";import"../chunk-v6f6s828.js";import"../chunk-fpsn6fmf.js";import"../chunk-vhxr0c4c.js";import"../chunk-fvw65b49.js";import"../chunk-dxfhy8gr.js";import"../chunk-hz8yrg2t.js";export{cl as CodexAssistantMessage,Go as CodexAssistantTurn,Bo as CodexMessageActions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{L,Eo,jr,$n,$r,Ro,qr}from"../chunk-37x36kph.js";export{qr as AsyncQuestionCard,Eo as asyncQuestionId,L as asyncQuestions,jr as initialQuestionDraft,$n as questionAnswer,Ro as questionReplies,$r as questionReplyEnvelope};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{T}from"../chunk-fpsn6fmf.js";export{T as useCodexDisclosureState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Va,
|
|
1
|
+
import{Va,ls,zo}from"../chunk-esxjnj1y.js";import"../chunk-hz8yrg2t.js";export{ls as CodexEditedFilesCard,zo as EditedFilesCard,Va as fileChanges};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{it,ms}from"../chunk-v6f6s828.js";import"../chunk-fpsn6fmf.js";import"../chunk-fvw65b49.js";import"../chunk-dxfhy8gr.js";import"../chunk-hz8yrg2t.js";export{ms as ImageViewActivity,it as isImageView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Lt}from"../chunk-w7vcd8d1.js";import"../chunk-yfb5hj4w.js";import"../chunk-4sj3t6mk.js";import"../chunk-mhv75thj.js";import"../chunk-k0rfgjm6.js";import"../chunk-7vby3f2v.js";import"../chunk-g9426ns9.js";import"../chunk-hpv8x22r.js";import"../chunk-2rk59ngw.js";import"../chunk-epdnafa1.js";import"../chunk-x0m4ctqf.js";import"../chunk-2c7a0zdc.js";import"../chunk-vvy4ke91.js";import"../chunk-ybwevt5n.js";import"../chunk-3btheq4v.js";import"../chunk-fvw65b49.js";import"../chunk-dxfhy8gr.js";import"../chunk-hz8yrg2t.js";export{Lt as CodexMarkdownRenderer};
|
package/dist/codex/markdown.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Gr,il,zr,Vr,rl,Sa,Ua,_a,sl,Ba,Ga,al,ll}from"../chunk-54awxpw2.js";export{il as armTimelineUserMessageNavigationAudio,Ua as automaticNavigationMidiNote,al as getNavigationAudioContextState,ll as getNavigationInstrumentReady,zr as installTimelineUserMessageNavigationAudioUnlock,Ba as itemPianoKeyIndex,Sa as navigationMidiNote,Ga as navigationPianoKeyIndexes,sl as pianoKeyFrequency,_a as pianoKeyMidiNote,rl as playTimelineUserMessageNavigationNote,Vr as playTimelineUserMessageNavigationSequence,Gr as preloadTimelineUserMessageNavigationInstrument};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ss}from"../chunk-f9zpep12.js";export{ss as NavigationPreview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{rs}from"../chunk-36j9fer8.js";import"../chunk-f9zpep12.js";export{rs as TimelineUserMessageNavigationRail};
|
package/dist/codex/patch-view.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Wr,Rt}from"../chunk-smd9rszw.js";export{Rt as PatchView,Wr as patchStats};
|
package/dist/codex/plan.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{be}from"../chunk-vhxr0c4c.js";export{be as CodexPlan};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{pl,
|
|
1
|
+
import{pl,ys,rt,Wo,xs,bs,Cs}from"../chunk-tjc0ntnh.js";export{pl as CODEX_UNKNOWN_TURN_HEIGHT,rt as calculateCodexThreadVirtualRange,bs as calculateCodexTurnCenterDistanceFromBottom,Cs as calculateCodexTurnTargetDistanceFromBottom,ys as createCodexThreadVirtualLayout,xs as preserveCodexThreadDistanceFromBottom,Wo as preserveCodexThreadRenderedWindow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Kr}from"../chunk-wf4z9w5x.js";export{Kr as selectTurnActivity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Vo,cs}from"../chunk-6hxz5cpc.js";import"../chunk-gt50nb3j.js";export{cs as CodexUserMessage,Vo as CopyAction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{vs}from"../chunk-e8mxwqxy.js";import"../chunk-tjc0ntnh.js";export{vs as VirtualizedTurnList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{gt}from"../chunk-bbvhgh27.js";import"../chunk-gdn4vvks.js";import"../chunk-r7z3mvej.js";import"../chunk-d336k00a.js";export{gt as CollectionEmoji};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ei,Fs}from"../chunk-717437bm.js";import"../chunk-fednb216.js";import"../chunk-yc7w1en3.js";import"../chunk-gdn4vvks.js";import"../chunk-06aaghwq.js";import"../chunk-kv1v7kgn.js";import"../chunk-189aq7st.js";import"../chunk-r013w7yb.js";import"../chunk-mtcxr3ns.js";import"../chunk-0c956xc0.js";import"../chunk-r7z3mvej.js";import"../chunk-d336k00a.js";export{Fs as AddToCollectionAction,Ei as CollectionPicker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ds}from"../chunk-wfk50eh6.js";import"../chunk-bbvhgh27.js";import"../chunk-fednb216.js";import"../chunk-yc7w1en3.js";import"../chunk-gdn4vvks.js";import"../chunk-06aaghwq.js";import"../chunk-kv1v7kgn.js";import"../chunk-189aq7st.js";import"../chunk-r013w7yb.js";import"../chunk-mtcxr3ns.js";import"../chunk-r7z3mvej.js";import"../chunk-d336k00a.js";export{Ds as CollectionPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-
|
|
1
|
+
import"../chunk-0c956xc0.js";import"../chunk-189aq7st.js";import"../chunk-kv1v7kgn.js";import"../chunk-mtcxr3ns.js";import"../chunk-d336k00a.js";import"../chunk-r013w7yb.js";import"../chunk-06aaghwq.js";import"../chunk-r7z3mvej.js";import{qs,M,ji,me}from"../chunk-gdn4vvks.js";import{B,ie,Qe,nn,Us}from"../chunk-yc7w1en3.js";import{Ri,Os,Hs,ao,Ie,pe}from"../chunk-fednb216.js";import{Ei,Fs}from"../chunk-717437bm.js";import{gt}from"../chunk-bbvhgh27.js";import{Ds}from"../chunk-wfk50eh6.js";export{Fs as AddToCollectionAction,gt as CollectionEmoji,qs as CollectionHostProvider,Ds as CollectionPanel,Ei as CollectionPicker,Hs as CollectionProvider,B as DEFAULT_COLLECTION_ID,nn as applyCollectionAction,Os as createCollectionStore,ie as getCollectionName,Qe as initialCollectionData,Us as migrateCollections,Ri as parsePersistedCollections,ji as reportCollection,M as useCollectionHost,Ie as useCollectionStore,ao as useCollectionStoreApi,pe as useDispatchCollection,me as useReportCollection};
|
package/dist/collections/host.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{qs,M,ji,me,$i}from"../chunk-gdn4vvks.js";import"../chunk-r7z3mvej.js";import"../chunk-d336k00a.js";export{qs as CollectionHostProvider,$i as detectMac,ji as reportCollection,M as useCollectionHost,me as useReportCollection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{P}from"../chunk-7hfd7hnm.js";export{P as collectionLocales};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{B,ie,Qe,nn,Us}from"../chunk-yc7w1en3.js";export{B as DEFAULT_COLLECTION_ID,nn as applyCollectionAction,ie as getCollectionName,Qe as initialCollectionData,Us as migrateCollections};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ri,Os,Hs,ao,Ie,pe}from"../chunk-fednb216.js";import"../chunk-yc7w1en3.js";export{Hs as CollectionProvider,Os as createCollectionStore,Ri as parsePersistedCollections,Ie as useCollectionStore,ao as useCollectionStoreApi,pe as useDispatchCollection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tt,el}from"../chunk-fz9y067h.js";import"../chunk-7rqryntm.js";export{el as filterFiles,tt as filterSlashCommands};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Tr}from"../chunk-3gkb117f.js";import"../chunk-fz9y067h.js";import"../chunk-7rqryntm.js";import"../chunk-b4wh6k5s.js";import"../chunk-6283nzqs.js";import"../chunk-32zzqeyf.js";export{Tr as CompletionMenu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Mr}from"../chunk-b4wh6k5s.js";export{Mr as detectTrigger};
|