@alwith/module-chat 0.5.21 → 0.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activity-host.js +1 -1
- package/dist/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.d.ts +1 -1
- package/dist/approval/schema-elicitation-form.js +1 -1
- package/dist/approval/url-elicitation-card.js +1 -1
- package/dist/{chunk-1tkzxktd.js → chunk-0mmcy6k7.js} +2 -2
- package/dist/chunk-0p6y2t9b.js +2 -0
- package/dist/{chunk-xgjkj9j8.js → chunk-0wa9yjg3.js} +2 -2
- package/dist/{chunk-dya74vts.js → chunk-0whxm2f0.js} +2 -2
- package/dist/{chunk-s55n9cby.js → chunk-1fggcrvs.js} +2 -2
- package/dist/{chunk-r9dt4bs3.js → chunk-1k21j77z.js} +2 -2
- package/dist/chunk-1k697ncv.js +2 -0
- package/dist/chunk-1mn2t6ga.js +2 -0
- package/dist/{chunk-2tce3pc5.js → chunk-1qyxrh0n.js} +3 -3
- package/dist/{chunk-2f1qx13s.js → chunk-1rg3nab3.js} +2 -2
- package/dist/{chunk-63kxepkh.js → chunk-2388yq9z.js} +2 -2
- package/dist/{chunk-2tkeevm0.js → chunk-28f3zv6v.js} +2 -2
- package/dist/{chunk-1ppfn0e1.js → chunk-2f9vjmxz.js} +2 -2
- package/dist/{chunk-8hte6dh7.js → chunk-36m8zstj.js} +2 -2
- package/dist/chunk-3bzqcxq2.js +2 -0
- package/dist/{chunk-9sq2etjk.js → chunk-3e6wcamp.js} +2 -2
- package/dist/{chunk-8t36vprh.js → chunk-3ka3bt0t.js} +2 -2
- package/dist/{chunk-xmstt6hh.js → chunk-3s94ekrs.js} +2 -2
- package/dist/{chunk-23rjsm3a.js → chunk-3yxjh7b1.js} +2 -2
- package/dist/{chunk-8jxcdap5.js → chunk-42atrgm1.js} +2 -2
- package/dist/{chunk-mg2mkzkk.js → chunk-48fj5m0p.js} +2 -2
- package/dist/{chunk-1e6x0018.js → chunk-4bb6dzzs.js} +2 -2
- package/dist/{chunk-dv65h7z5.js → chunk-4ddkzbm0.js} +2 -2
- package/dist/chunk-4fk0vjh5.js +2 -0
- package/dist/{chunk-n0khj68q.js → chunk-4gyd9hx9.js} +2 -2
- package/dist/chunk-4jfynrgh.js +2 -0
- package/dist/chunk-4p6svs37.js +2 -0
- package/dist/chunk-4wa7tehh.js +3 -0
- package/dist/{chunk-m2b8kzpk.js → chunk-5a6xc345.js} +2 -2
- package/dist/chunk-5ap6fvrp.js +2 -0
- package/dist/chunk-6179zrn1.js +3 -0
- package/dist/chunk-658njfx1.js +4 -0
- package/dist/{chunk-nxp1b8ny.js → chunk-667z0pac.js} +2 -2
- package/dist/chunk-6cmttr4w.js +1 -0
- package/dist/{chunk-3jcmv5qf.js → chunk-6t5war9h.js} +2 -2
- package/dist/chunk-6trv0snh.js +2 -0
- package/dist/{chunk-jm6zja6h.js → chunk-76a04a6j.js} +2 -2
- package/dist/{chunk-k7k6qsqh.js → chunk-7z4gtfkd.js} +2 -2
- package/dist/{chunk-nq7gg9vg.js → chunk-855w49k0.js} +2 -2
- package/dist/chunk-8c8ncw1m.js +2 -0
- package/dist/{chunk-0fs2k5fe.js → chunk-95mynf7q.js} +2 -2
- package/dist/chunk-9tp0z23q.js +2 -0
- package/dist/{chunk-v4t0p6pp.js → chunk-9wasxr1v.js} +2 -2
- package/dist/{chunk-0gy6ngda.js → chunk-a42211a1.js} +2 -2
- package/dist/{chunk-77j8n5k5.js → chunk-a63k8tht.js} +2 -2
- package/dist/{chunk-ap0vmczf.js → chunk-acb8t4jt.js} +2 -2
- package/dist/{chunk-2nvsvw67.js → chunk-agqnt7xq.js} +2 -2
- package/dist/chunk-ah4pgmqr.js +2 -0
- package/dist/{chunk-vyk4zh1m.js → chunk-asyfpv8n.js} +7 -7
- package/dist/chunk-awmra30d.js +2 -0
- package/dist/{chunk-aza82m2p.js → chunk-azfmr99x.js} +2 -2
- package/dist/{chunk-0vhkv9ax.js → chunk-b12v22de.js} +2 -2
- package/dist/chunk-bbnhytn3.js +2 -0
- package/dist/{chunk-mcjwwxa1.js → chunk-bfhfbrzt.js} +2 -2
- package/dist/{chunk-w9dh298r.js → chunk-bg03czcx.js} +2 -2
- package/dist/chunk-bmey8et5.js +2 -0
- package/dist/{chunk-67hrx4kg.js → chunk-bvgqsaey.js} +2 -2
- package/dist/chunk-c32z3wjq.js +2 -0
- package/dist/{chunk-33620ca6.js → chunk-c723sswh.js} +2 -2
- package/dist/{chunk-x6nz6eyb.js → chunk-ce1qr37c.js} +2 -2
- package/dist/chunk-cgk9mtky.js +2 -0
- package/dist/{chunk-1q2cykp4.js → chunk-ckyat78p.js} +2 -2
- package/dist/chunk-cvz3k5gk.js +2 -0
- package/dist/{chunk-aqvy57zs.js → chunk-cw76pj9b.js} +2 -2
- package/dist/{chunk-b2wczqtd.js → chunk-cz4k8aad.js} +2 -2
- package/dist/{chunk-xyvqcpjx.js → chunk-d257n8gj.js} +2 -2
- package/dist/{chunk-sy5tq3y6.js → chunk-d8ytdk0x.js} +2 -2
- package/dist/{chunk-m7wn4z9x.js → chunk-drhzcs6e.js} +2 -2
- package/dist/{chunk-nqw4deag.js → chunk-dte0n4kf.js} +2 -2
- package/dist/{chunk-4s6gx750.js → chunk-e3pfvwhd.js} +2 -2
- package/dist/chunk-e5qk8b1f.js +2 -0
- package/dist/{chunk-dyqvhn6y.js → chunk-eg9hemqa.js} +5 -5
- package/dist/chunk-f1gj3yzt.js +2 -0
- package/dist/{chunk-0gersbj0.js → chunk-f1x483c9.js} +2 -2
- package/dist/chunk-f2rq6nj6.js +3 -0
- package/dist/{chunk-dyrgfdxz.js → chunk-f2w2sct6.js} +2 -2
- package/dist/{chunk-mgm1x3de.js → chunk-f5gsffbv.js} +2 -2
- package/dist/chunk-fh3pjhe6.js +2 -0
- package/dist/{chunk-vcy5vyp7.js → chunk-fnpf84rf.js} +2 -2
- package/dist/{chunk-3aq5c12k.js → chunk-g2qcyqc6.js} +2 -2
- package/dist/{chunk-hv1ejvhg.js → chunk-g44hhdha.js} +2 -2
- package/dist/chunk-g8w3emvn.js +2 -0
- package/dist/{chunk-xrs7x5ah.js → chunk-g9t2d8hg.js} +2 -2
- package/dist/{chunk-z2v008kc.js → chunk-gha517v4.js} +2 -2
- package/dist/{chunk-fke98cj0.js → chunk-gsfgdnfp.js} +2 -2
- package/dist/{chunk-memvzzc6.js → chunk-hac9xtfv.js} +2 -2
- package/dist/{chunk-8w22ck92.js → chunk-heyqzkxq.js} +2 -2
- package/dist/{chunk-k5rkpqbh.js → chunk-jgd6dcgy.js} +2 -2
- package/dist/chunk-jmb8r6aj.js +2 -0
- package/dist/{chunk-42nhwnbe.js → chunk-jwt7q6yx.js} +4 -4
- package/dist/{chunk-983gkw32.js → chunk-jxntqarp.js} +2 -2
- package/dist/chunk-k2k5tt5x.js +2 -0
- package/dist/{chunk-6dn3j8a2.js → chunk-k7ye738q.js} +2 -2
- package/dist/{chunk-72x7rae0.js → chunk-kc56dhwd.js} +2 -2
- package/dist/chunk-kfy7yvke.js +2 -0
- package/dist/{chunk-j86x2rn0.js → chunk-kg5hcf28.js} +2 -2
- package/dist/{chunk-42hkbpey.js → chunk-kmdag4vy.js} +2 -2
- package/dist/{chunk-n929wkw7.js → chunk-kz1kjzmq.js} +2 -2
- package/dist/{chunk-qwfwxfhn.js → chunk-m271yxxm.js} +2 -2
- package/dist/chunk-m8hb96f5.js +2 -0
- package/dist/{chunk-zxkvvecz.js → chunk-mj7094yh.js} +2 -2
- package/dist/{chunk-nn25kjm4.js → chunk-mvs2dzyt.js} +2 -2
- package/dist/{chunk-xktybk48.js → chunk-mxfvakya.js} +2 -2
- package/dist/chunk-mz8a6292.js +2 -0
- package/dist/chunk-mztwft71.js +2 -0
- package/dist/chunk-n0acc2tb.js +2 -0
- package/dist/{chunk-p4bb313p.js → chunk-n45a05jx.js} +3 -3
- package/dist/{chunk-e9ntencj.js → chunk-n5v1h0sk.js} +2 -2
- package/dist/{chunk-1f628zap.js → chunk-n66yy1m1.js} +2 -2
- package/dist/{chunk-0mp7tyea.js → chunk-nn2hmwzd.js} +2 -2
- package/dist/{chunk-a8p82wp7.js → chunk-nsf0e6gj.js} +2 -2
- package/dist/chunk-nv6s8x9f.js +2 -0
- package/dist/{chunk-82xjggwn.js → chunk-p7dd93e5.js} +2 -2
- package/dist/chunk-p8g927x6.js +2 -0
- package/dist/chunk-pk2rvqd0.js +2 -0
- package/dist/{chunk-7wk3d01c.js → chunk-pprt7ntb.js} +4 -4
- package/dist/{chunk-rcbb4ke2.js → chunk-pqa37epj.js} +2 -2
- package/dist/{chunk-t97yjy4f.js → chunk-pw8b9brz.js} +2 -2
- package/dist/{chunk-ns5rnxdj.js → chunk-pwjz3yxb.js} +2 -2
- package/dist/{chunk-z71pp1mb.js → chunk-pzjag1mt.js} +3 -3
- package/dist/chunk-pzyradqt.js +2 -0
- package/dist/chunk-q9zawfn1.js +2 -0
- package/dist/{chunk-141kppzb.js → chunk-qd1z91fm.js} +1 -1
- package/dist/{chunk-k5wgf59a.js → chunk-qdg5zphd.js} +2 -2
- package/dist/chunk-qn6ppn0r.js +2 -0
- package/dist/{chunk-8ch9444t.js → chunk-qwfw4xpn.js} +2 -2
- package/dist/chunk-r5z08bp6.js +2 -0
- package/dist/{chunk-mwpchd85.js → chunk-raye7hnk.js} +3 -3
- package/dist/{chunk-x2yc5748.js → chunk-rbv1scqm.js} +2 -2
- package/dist/{chunk-156m3888.js → chunk-rjkpe1fw.js} +3 -3
- package/dist/{chunk-xf36kt74.js → chunk-rjw63t34.js} +3 -3
- package/dist/chunk-rq5e0922.js +2 -0
- package/dist/{chunk-x334e7wb.js → chunk-sjs9484n.js} +3 -3
- package/dist/{chunk-b614gnnv.js → chunk-swpy2b9a.js} +2 -2
- package/dist/chunk-sz3vcbp5.js +2 -0
- package/dist/{chunk-c38t8809.js → chunk-t6vcdf4j.js} +2 -2
- package/dist/{chunk-7p1r1ha9.js → chunk-t7drk9ja.js} +2 -2
- package/dist/{chunk-5cdr7q6f.js → chunk-t9f2cw75.js} +3 -3
- package/dist/chunk-tpbqg729.js +2 -0
- package/dist/chunk-ttn8ss6b.js +2 -0
- package/dist/{chunk-w6rwngm3.js → chunk-tv0fwt2g.js} +2 -2
- package/dist/{chunk-vs02ry2r.js → chunk-tz1kzpzp.js} +2 -2
- package/dist/{chunk-8c042xya.js → chunk-vbab9hc4.js} +2 -2
- package/dist/{chunk-w0hpztj7.js → chunk-vfhxerxt.js} +2 -2
- package/dist/chunk-vnsgjnp3.js +2 -0
- package/dist/{chunk-59957gfy.js → chunk-vt6cyes7.js} +2 -2
- package/dist/chunk-vvtbtx09.js +2 -0
- package/dist/{chunk-z2fjwkmt.js → chunk-wccx911q.js} +2 -2
- package/dist/{chunk-g73f62qm.js → chunk-wgrmjfyp.js} +2 -2
- package/dist/chunk-wm0jty6e.js +2 -0
- package/dist/{chunk-h5m2fpp4.js → chunk-wvry7t79.js} +2 -2
- package/dist/{chunk-00eytt1z.js → chunk-y0q6jwq4.js} +2 -2
- package/dist/chunk-y97ne5kj.js +2 -0
- package/dist/{chunk-cbwya2ss.js → chunk-yakar0e2.js} +2 -2
- package/dist/{chunk-3yvd77ph.js → chunk-yg3xhn5m.js} +2 -2
- package/dist/{chunk-et8rcxw6.js → chunk-z3nybrbb.js} +2 -2
- package/dist/chunk-zheyzqcq.js +2 -0
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/disclosure-state.js +1 -1
- package/dist/codex/edited-files-card.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/codex/navigation-audio.js +1 -1
- package/dist/codex/navigation-preview.js +1 -1
- package/dist/codex/navigation-rail.js +1 -1
- package/dist/codex/patch-view.js +1 -1
- package/dist/codex/plan.js +1 -1
- package/dist/codex/timeline-virtualizer.js +1 -1
- package/dist/codex/turn-activity.js +1 -1
- package/dist/codex/user-message.js +1 -1
- package/dist/codex/virtualized-turn-list.js +1 -1
- package/dist/collections/collection-emoji.js +1 -1
- package/dist/collections/collection-menu.js +1 -1
- package/dist/collections/collection-panel.js +1 -1
- package/dist/collections/collections.js +1 -1
- package/dist/collections/host.js +1 -1
- package/dist/collections/locales.js +1 -1
- package/dist/collections/model.js +1 -1
- package/dist/collections/store.js +1 -1
- package/dist/composer/completion-filter.js +1 -1
- package/dist/composer/completion-menu.js +1 -1
- package/dist/composer/completion-trigger.js +1 -1
- package/dist/composer/effort-slider.js +1 -1
- package/dist/composer/menu-radio.js +1 -1
- package/dist/composer/model-select.js +1 -1
- package/dist/composer/permission-mode-select.js +1 -1
- package/dist/composer/prompt-input-attachments.js +1 -1
- package/dist/composer/prompt-input-clipboard.js +1 -1
- package/dist/composer/prompt-input-context.js +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.js +1 -1
- package/dist/conversation/action-card.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/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/image-lightbox.js +1 -1
- package/dist/image-preview-dialog.js +1 -1
- package/dist/lib/code-highlighter.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/stream-style.js +1 -1
- package/dist/lib/streaming-markdown.js +1 -1
- package/dist/locales.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/new-chat-directory.js +1 -1
- package/dist/plugins/pane.js +1 -1
- package/dist/plugins/panel-item.js +1 -1
- package/dist/plugins/plugin-detail-page.js +1 -1
- package/dist/plugins/plugin-icon.js +1 -1
- package/dist/plugins/plugin-icons.js +1 -1
- package/dist/plugins/plugins-page.js +1 -1
- package/dist/plugins/plugins.js +1 -1
- package/dist/plugins/read-skill-document.js +1 -1
- package/dist/plugins/skill-document.js +1 -1
- package/dist/plugins/skills-tab.js +1 -1
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/account-menu.js +1 -1
- package/dist/session-list/activity-list.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/navigation-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-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/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.d.ts +3 -3
- package/dist/settings/providers-port.js +1 -1
- package/dist/settings/providers.js +1 -1
- package/dist/settings/settings-bridge.d.ts +3 -3
- package/dist/settings/settings-bridge.js +1 -1
- package/dist/settings/settings.js +1 -1
- package/package.json +3 -3
- package/rust/Cargo.lock +484 -10
- package/rust/Cargo.toml +16 -1
- package/rust/src/__tests__/native_network.rs +406 -0
- package/rust/src/lib.rs +3 -0
- package/rust/src/native_network.rs +302 -0
- package/rust/src/native_network_diagnostics.rs +220 -0
- package/rust/src/providers/tests.rs +4 -1
- package/rust/src/system_proxy.rs +257 -0
- package/dist/chunk-14exd146.js +0 -2
- package/dist/chunk-2ce8gd89.js +0 -2
- package/dist/chunk-3n47hknp.js +0 -2
- package/dist/chunk-3nr5qe41.js +0 -2
- package/dist/chunk-40bcp4pa.js +0 -2
- package/dist/chunk-4w3g7d6w.js +0 -2
- package/dist/chunk-52p7kyam.js +0 -2
- package/dist/chunk-59exzf5n.js +0 -2
- package/dist/chunk-5nc3dtyt.js +0 -2
- package/dist/chunk-78s6h7r4.js +0 -2
- package/dist/chunk-80ckz04b.js +0 -2
- package/dist/chunk-85ffkcch.js +0 -2
- package/dist/chunk-8qw8erv6.js +0 -2
- package/dist/chunk-908ndb9r.js +0 -2
- package/dist/chunk-9g67z1b4.js +0 -2
- package/dist/chunk-9n79tr1q.js +0 -2
- package/dist/chunk-ajpxjj5m.js +0 -2
- package/dist/chunk-b3jg6nzv.js +0 -3
- package/dist/chunk-c1b8z8pa.js +0 -2
- package/dist/chunk-c9nbavk0.js +0 -2
- package/dist/chunk-cg8ekwka.js +0 -2
- package/dist/chunk-ec9rgnt3.js +0 -2
- package/dist/chunk-efrn25h9.js +0 -2
- package/dist/chunk-emcefs0g.js +0 -2
- package/dist/chunk-f28hhbf4.js +0 -2
- package/dist/chunk-f3924gdb.js +0 -2
- package/dist/chunk-f8zy35gz.js +0 -2
- package/dist/chunk-f98at4r5.js +0 -2
- package/dist/chunk-g242n3dt.js +0 -2
- package/dist/chunk-h1bhhqtq.js +0 -2
- package/dist/chunk-kc5k5e59.js +0 -3
- package/dist/chunk-kvc6ewkt.js +0 -4
- package/dist/chunk-kxmajv0m.js +0 -3
- package/dist/chunk-myrdfa3s.js +0 -2
- package/dist/chunk-nacjea1s.js +0 -2
- package/dist/chunk-py837qjk.js +0 -1
- package/dist/chunk-q7nn5xe5.js +0 -2
- package/dist/chunk-qjhkzdhm.js +0 -2
- package/dist/chunk-qxcnyvps.js +0 -2
- package/dist/chunk-r3qrftds.js +0 -2
- package/dist/chunk-rbqn4725.js +0 -2
- package/dist/chunk-rekc1q3m.js +0 -2
- package/dist/chunk-rwkkqdcv.js +0 -2
- package/dist/chunk-rwnz06kr.js +0 -2
- package/dist/chunk-sxh0pd3y.js +0 -2
- package/dist/chunk-t0cr21e3.js +0 -2
- package/dist/chunk-vkrgdqnm.js +0 -2
- package/dist/chunk-wvdncbrt.js +0 -2
- package/dist/chunk-y7xcync7.js +0 -2
- package/dist/chunk-ye9tsdhn.js +0 -2
package/dist/chunk-qxcnyvps.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l,i}from"./chunk-t0cr21e3.js";import{D,H,ne,O,U,pe}from"./chunk-py837qjk.js";import{ue}from"./chunk-j86x2rn0.js";import{v}from"./chunk-r9dt4bs3.js";import{le}from"./chunk-mcjwwxa1.js";import{F,ce}from"./chunk-w6rwngm3.js";import{CheckIcon as V,SparklesIcon as X,XIcon as _}from"lucide-react";import{useDeferredValue as J,useState as y}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as K,DialogClose as Q,DialogContent as R,DialogDescription as W,DialogHeader as Y,DialogTitle as Z}from"@nyssance/shadcn/vega/components/ui/dialog";import{ItemTitle as ee}from"@nyssance/shadcn/vega/components/ui/item";import{Spinner as te}from"@nyssance/shadcn/vega/components/ui/spinner";import{Switch as ae}from"@nyssance/shadcn/vega/components/ui/switch";import{Tabs as se,TabsContent as ie,TabsList as oe,TabsTrigger as re}from"@nyssance/shadcn/vega/components/ui/tabs";import{jsx as t,jsxs as n,Fragment as S}from"react/jsx-runtime";function P({skill:c}){let{assetUrl:m}=l(),[u,s]=y(!1),o=c.interface?.iconSmall,h=o&&m?m(o):c.interface?.iconSmallUrl;return t("div",{className:"bg-muted flex size-10 shrink-0 items-center justify-center rounded-xl",children:h&&!u?t("img",{src:h,alt:"",onError:()=>s(!0),className:"size-6 rounded object-contain"}):t(X,{className:"text-muted-foreground size-6"})})}function me({skill:c}){let{t:m}=l(),u=i((o)=>o.setSkillEnabled),s=i((o)=>(c.path in o.busySkills));return n("div",{className:"flex items-center gap-2",children:[s&&t(te,{className:"text-muted-foreground size-3.5"}),t(ae,{checked:c.enabled,disabled:s,"aria-label":`${m(c.enabled?"plugins.skills.disable":"plugins.skills.enable")}: ${c.interface?.displayName??c.name}`,onCheckedChange:(o)=>void u(c,o)})]})}function Pt({query:c,ready:m,onOpenPlugin:u}){let{t:s}=l(),o=i((e)=>e.skills),h=i((e)=>e.skillErrors),j=i((e)=>e.loading)||!m,z=i((e)=>e.installed),M=i((e)=>e.skillProjects),[E,L]=y(null),[k,B]=y(!1),[G,C]=y(null),b=J(c.trim().toLowerCase()),r=o.find((e)=>e.path===G),x=z.find(({plugin:e})=>e.id===r?.pluginId),p=o.filter((e)=>[e.name,e.interface?.displayName,e.description,e.shortDescription,e.interface?.shortDescription,e.pluginId].filter(Boolean).join(" ").toLowerCase().includes(b)).toSorted((e,a)=>(e.interface?.displayName??e.name).localeCompare(a.interface?.displayName??a.name)),d=[...["user","system","admin"].flatMap((e)=>{let a=o.filter((f)=>f.scope===e);return a.length?[{id:e,label:s(e==="user"?"plugins.catalog.personal":`plugins.skills.scope.${e}`),paths:new Set(a.map((f)=>f.path)),path:null}]:[]}),...Object.entries(M).flatMap(([e,a])=>{if(!o.some((T)=>T.scope==="repo"&&a.includes(T.path)))return[];let f=e.replace(/[\\/]+$/,"").split(/[\\/]/).at(-1)||e;return[{id:`project:${e}`,label:f,paths:new Set(a),path:e}]})],q=d.map((e)=>e.label);for(let e of d)if(e.path&&q.filter((a)=>a===e.label).length>1)e.label=e.path;let g=d.find((e)=>e.id===E)??d[0],w=g?p.filter((e)=>g.paths.has(e.path)):[],A=k||b?p:p.slice(0,6),I=(e)=>t(U,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2",children:e.map((a)=>n(pe,{className:"toolbox-row relative [contain-intrinsic-size:auto_80px] [content-visibility:auto]",children:[t(N,{variant:"ghost",className:"absolute inset-0 z-0 size-full","aria-label":a.interface?.displayName??a.name,onClick:()=>C(a.path)}),t(O,{className:"pointer-events-none relative translate-none! self-center!",children:t(P,{skill:a})}),n(H,{className:"pointer-events-none relative min-w-0",children:[t(ee,{className:"block truncate",children:a.interface?.displayName??a.name}),t(ne,{className:"line-clamp-1",title:a.interface?.shortDescription??a.shortDescription??a.description,children:a.interface?.shortDescription??a.shortDescription??a.description})]}),t(D,{className:"text-muted-foreground pointer-events-none relative",children:a.enabled?t(V,{className:"size-4","aria-label":s("plugins.skills.enabledStatus")}):t("span",{className:"text-xs",children:s("plugins.skills.disabledBadge")})})]},a.path))});return n("div",{className:"flex min-h-0 flex-1 flex-col gap-4",children:[t(v,{className:"pe-0",viewportClassName:"pe-0",children:n("div",{className:`${F} space-y-8 pt-6`,children:[h.map((e)=>n("p",{role:"alert",className:"text-destructive text-xs break-words",children:[e.path,": ",e.message]},e.path)),j?t(ue,{skills:!0}):n(S,{children:[n("section",{"aria-label":s("plugins.skills.installed"),children:[n("div",{className:"mb-4 flex items-center justify-between gap-3",children:[t("h2",{className:"text-base font-medium",children:s("plugins.skills.installed")}),t("span",{role:"status",className:"text-muted-foreground text-xs",children:s("plugins.catalog.skillCount",{count:p.length})})]}),p.length?I(A):t("p",{className:"text-muted-foreground px-2 py-8 text-sm",children:s(b?"plugins.skills.filteredEmpty":"plugins.skills.empty")}),!b&&p.length>6&&t(N,{variant:"ghost",className:"text-muted-foreground mt-3 max-w-full justify-start","aria-expanded":k,onClick:()=>B((e)=>!e),children:k?s("plugins.sections.showLess"):s("plugins.catalog.showMore",{count:p.length-6})})]}),g&&n(se,{value:g.id,onValueChange:(e)=>{if(typeof e==="string")L(e)},className:"gap-6",children:[t(oe,{"aria-label":s("plugins.catalog.scope"),className:"h-auto max-w-full flex-wrap justify-start gap-2 bg-transparent",children:d.map((e)=>t(re,{value:e.id,title:e.path??e.label,className:"data-active:bg-muted! h-8 flex-none rounded-lg px-3 text-[13px] font-medium shadow-none! after:hidden dark:data-active:border-transparent",children:e.label},e.id))}),d.map((e)=>t(ie,{value:e.id,children:e.id===g.id&&(w.length?I(w):t("p",{className:"text-muted-foreground px-2 py-8 text-sm",children:s("plugins.skills.filteredEmpty")}))},e.id))]})]})]})}),t(K,{open:!!r,onOpenChange:(e)=>{if(!e)C(null)},children:t(R,{showCloseButton:!1,className:ce,children:r&&n(S,{children:[t(le,{path:r.path,renderHeader:(e)=>n(S,{children:[n("div",{className:"flex items-center justify-between gap-4",children:[t(P,{skill:r}),n("div",{className:"flex shrink-0 items-center gap-2",children:[t(me,{skill:r}),e,t(Q,{render:t(N,{variant:"ghost",size:"icon-sm","aria-label":s("plugins.close")}),children:t(_,{})})]})]}),n(Y,{className:"gap-3",children:[t(Z,{className:"text-2xl leading-8 font-semibold break-words",children:r.interface?.displayName??r.name}),t(W,{className:"text-sm leading-6 break-words whitespace-pre-wrap",children:r.description})]})]})},r.path),r.pluginId&&n("div",{className:"text-sm",children:[n("span",{className:"text-muted-foreground",children:[s("plugins.catalog.fromPlugin")," "]}),x?t(N,{variant:"link",className:"h-auto p-0",onClick:()=>{C(null),u(x)},children:x.plugin.interface?.displayName??x.plugin.name}):r.pluginId]})]})})})]})}
|
|
2
|
-
export{Pt};
|
package/dist/chunk-r3qrftds.js
DELETED
package/dist/chunk-rbqn4725.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-80ckz04b.js";import{useSyncExternalStore as d}from"react";function De(t,i){let e=t.runStates[i];return e!==void 0&&(!e.reusableDraft||t.drafts[i]!==void 0)}function c(t,i){let e=new Set(Object.keys(i.runStates).filter((s)=>De(i,s))),n=t.filter((s)=>e.delete(s));return n.push(...e),n.length===t.length&&n.every((s,r)=>s===t[r])?t:n}var S=new WeakMap;function g(t){return{view:"sessions",activityOrder:c([],t.state),activitySeen:new Map,activityCollapsedGroups:new Set}}function Mn(t){let i=S.get(t);if(i)return i;let e=g(t),n=new Set,s=(o)=>{e={...e,...o};for(let v of n)v()};t.store.subscribe(()=>{let o=c(e.activityOrder,t.store.getState());if(o!==e.activityOrder)s({activityOrder:o})});let r={get:()=>e,set:s,subscribe:(o)=>(n.add(o),()=>n.delete(o))};return S.set(t,r),r}function Er(t){S.get(t)?.set(g(t))}function Z(t){let i=Mn(a());return d(i.subscribe,()=>t(i.get()),()=>t(i.get()))}function ie(){return Mn(a()).set}function Lr(){let t=Z((e)=>e.view),i=ie();return[t,(e)=>i({view:e})]}
|
|
2
|
-
export{De,Mn,Er,Z,ie,Lr};
|
package/dist/chunk-rekc1q3m.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ni,_}from"./chunk-x2yc5748.js";import{Bo}from"./chunk-vcy5vyp7.js";import{se}from"./chunk-3n47hknp.js";import{jo,$o,Ko,qo,Wo,te}from"./chunk-4s6gx750.js";import{ei,ti}from"./chunk-k5wgf59a.js";import{Cn}from"./chunk-42nhwnbe.js";import{t,n}from"./chunk-ye9tsdhn.js";import{e}from"./chunk-f3924gdb.js";import{Xt}from"./chunk-c9nbavk0.js";import{r,Hn,E,yt}from"./chunk-78s6h7r4.js";import{pt}from"./chunk-23rjsm3a.js";import{ke,ht}from"./chunk-g242n3dt.js";import{xt,Ct}from"./chunk-cg8ekwka.js";import{Rn}from"./chunk-33620ca6.js";import{gt}from"./chunk-40bcp4pa.js";import{Fn}from"./chunk-memvzzc6.js";import{mt}from"./chunk-xktybk48.js";import{ft}from"./chunk-h1bhhqtq.js";import{On}from"./chunk-qjhkzdhm.js";import{Ln}from"./chunk-0gy6ngda.js";import{Dt}from"./chunk-rcbb4ke2.js";import{hasFuzzyFileSearch as kt}from"@nyssance/codex-acp-v2/client";import{PlusIcon as Bt}from"lucide-react";import{useCallback as O,useEffect as _t,useLayoutEffect as J,useMemo as Q,useRef as Y,useState as S}from"react";import{jsx as c,jsxs as w}from"react/jsx-runtime";var Lt=["image/png","image/jpeg","image/webp","image/gif"],Z=[];async function zt(o){let d=await(await fetch(o.url)).blob();return new Promise((l,C)=>{let I=new FileReader;I.onerror=()=>C(I.error),I.onload=()=>{let L=I.result;l(L.slice(L.indexOf(",")+1))},I.readAsDataURL(d)})}function Ut(o){let{t:d}=t(),l=_();return c(te,{"aria-label":d("composer.attachImage"),title:d("composer.attachImage"),onClick:()=>l.openFileDialog(),...o,children:c(Bt,{className:"size-4"})})}function ut({session:o,onSubmit:d,onShellCommand:l,onHandOff:C,modelSelector:I,modelMenu:L,inputHeader:tt,actions:bt,children:vt,attachmentPolicy:wt,predictions:It=!0,disabled:Tt=!1,preparing:et=!1,allowPendingInput:At=!1}){let{host:F,client:R}=e(),{t:p}=F,k=O((a)=>{if(F.reportError)F.reportError(a);else console.error(a)},[F]),[rt,D]=S(()=>({text:r.get(o.id)?.text??"",revision:0})),{text:P}=rt,[T,Mt]=S(()=>r.get(o.id)?.attachments??Z),[u,z]=S(()=>r.get(o.id)?.mentions??[]),V=T.some((a)=>ke(a)&&a.pastedText.status!=="ready"),[A,nt]=S(!1),[U,Et]=S(!1),[X,ot]=S(!1),f=Y(null),at=Y(null),i=Y(rt),W=O((a)=>{at.current?.(),i.current={text:a,revision:i.current.revision+1},D(i.current)},[]),it=Q(()=>({read:()=>{let s=f.current?.getTextarea(),g=s===null||s===void 0?[i.current.text.length,i.current.text.length]:[s.selectionStart,s.selectionEnd];return{target:o.id,...i.current,selection:g}},compareAndSet(s,g,M){if(s.target!==o.id||s.revision!==i.current.revision)return null;i.current={text:g,revision:i.current.revision+1},D(i.current);let x=f.current?.getTextarea();if(x!==null&&x!==void 0)x.value=g,x.setSelectionRange(M[0],M[1]);return{target:o.id,...i.current,selection:M}}}),[o.id]),B=Y(null),ct=O((a)=>(B.current=a,()=>{if(B.current===a)B.current=null}),[]),j=o.state!=="idle",b=l!==void 0&&P.startsWith("!"),h=!Tt&&!et&&o.attached&&!o.restoring&&!o.readOnly,N=!o.readOnly&&(At||h),H=ft(o,h&&!A&&!U&&!V&&!X,P.length>0||T.length>0||u.length>0,It&&!b),st=H.invalidate;J(()=>{r.set(o.id,{text:P,attachments:T,mentions:u,modelId:r.get(o.id)?.modelId??null})},[o.id,P,T,u]),J(()=>Hn(o.id,Mt),[o.id]),J(()=>yt(o.id,(a)=>{if(!N||A)throw Error("The composer cannot take text now; try again later");if(P.length||T.length||u.length)throw Error("The composer already has a draft; send or clear it first");W(a)}),[o.id,N,A,P,T,u,W]);let lt=n((a)=>kt(a.agent)),Rt=Q(()=>lt&&h?async(a)=>pt((await R.fuzzyFileSearch({query:a,roots:[o.cwd]})).files):void 0,[R,lt,h,o.cwd]),q=O((a)=>{z((s)=>s.includes(a)?s:[...s,a])},[]);_t(()=>{f.current?.focus()},[]);let dt=O(async({text:a,files:s})=>{let g=l!==void 0&&a.startsWith("!")?a.slice(1):null;if(g!==null){if(g.trim().length===0)return;if(s.length||u.length)throw Error("Shell commands cannot include file references or attachments");if(o.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let M=a.trim();if(M.length===0&&s.length===0&&u.length===0)return;let x=B.current;nt(!0);let v=r.get(o.id),Ft=i.current.revision,K=null;try{let y=[];for(let m of u){let G={kind:"file",absPath:m};y.push({type:"resource_link",uri:xt(G),name:Ct(G)})}if(M.length>0)y.push({type:"text",text:M});for(let m of s)if(ke(m)){if(m.pastedText.status!=="ready")throw Error("Text attachment is not ready");y.push({type:"resource_link",uri:m.url,name:m.filename??"pasted-text.txt"})}else y.push({type:"image",data:await zt(m),mimeType:m.mediaType});if(i.current.revision===Ft&&r.get(o.id)===v)i.current={text:"",revision:i.current.revision+1},K=i.current.revision,D(i.current),z([]),E(o.id,()=>Z),r.set(o.id,{text:"",attachments:Z,mentions:[],modelId:v?.modelId??null}),f.current?.resetHeight();if(g!==null&&l)await l(g);else if(d)if(x===null)await d(y);else await d(y,(m)=>{if(x.signal.aborted||B.current!==x)return;x.accept(m),C?.(o.id,m)});else if(x===null)await R.prompt(o.id,y);else{let m=await R.prompt(o.id,y);x.accept(m)}st();for(let m of v?.attachments??[])if(m.url.startsWith("blob:")&&!r.get(o.id)?.attachments.some((G)=>G.id===m.id))URL.revokeObjectURL(m.url)}catch(y){if(v&&K!==null&&i.current.revision===K&&r.get(o.id)?.attachments.length===0&&r.get(o.id)?.mentions.length===0)i.current={text:v.text,revision:K+1},D(i.current),z(v.mentions),r.set(o.id,v),E(o.id,()=>v.attachments);throw y}finally{nt(!1),f.current?.focus()}},[R,o.id,o.state,u,d,l,C,st]),Nt=()=>{R.cancel(o.id).catch(k)},Ot=O((a)=>{let s=a.code==="max_total_size"?Object.assign(Error(p("composer.imageTooLargeTitle")),{description:p("composer.imageTooLargeDescription",{mb:se})}):Object.assign(Error(p("composer.unsupportedAttachmentTitle")),{description:p("composer.unsupportedAttachmentDescription")});k(s)},[k,p]),St=Q(()=>({session:o,ready:h,inputReady:N,sending:A,textareaRef:f,draft:it,interruptRef:at,observeReceipts:ct,addMention:q,setAdding:Et,shellMode:b,handsFree:!b&&(d===void 0||C!==void 0)}),[o,h,N,A,it,ct,q,d,C,b]),Pt=F.writeTextAttachment;return c(Xt,{value:St,children:c("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:w("div",{className:"relative",children:[tt&&c("div",{"data-chat-input-header":!0,className:"bg-sidebar dark:bg-foreground/3 relative top-1 z-0 mx-[13px] -mb-[18px] flex min-w-0 items-center gap-2 overflow-hidden rounded-t-2xl px-1.5 pt-1.5 pb-[27px]",children:tt}),w(ni,{attachmentPolicy:wt,value:P,revision:i.current.revision,onValueChange:W,onSubmittedClear:()=>{i.current={text:"",revision:i.current.revision+1},D(i.current)},attachments:T,onAttachmentsChange:(a)=>E(o.id,()=>a),children:[c(Bo,{bashMode:l!==void 0,handleRef:f,commands:o.commands,searchFiles:Rt,onMention:q,onSearchError:k,forcedOpen:X,onForcedOpenChange:ot,emptyLabel:p("composer.noCommands"),fileStatusLabels:{loading:p("composer.searchingFiles"),empty:p("composer.noMatchingFiles")}}),w(jo,{"data-shell-mode":b||void 0,bashMode:l!==void 0,globalDrop:!0,multiple:!0,accept:Lt.join(","),onError:Ot,onSubmit:dt,onSubmitAsync:dt,onSubmitError:k,canSubmit:()=>h&&!A&&!U&&!V&&(!b||!j&&P.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[vt,w(Ko,{className:"px-3 pt-3 pb-0 empty:hidden",children:[U&&c("span",{role:"status",className:"text-muted-foreground text-xs",children:p("composer.addingFiles")}),c(Rn,{mentions:u,onRemove:(a)=>z((s)=>s.filter((g)=>g!==a))}),c(ti,{children:(a)=>ke(a)?c(Fn,{data:a,sessionId:o.id}):c(ei,{data:a,t:p})})]}),w($o,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(a)=>{if(!H.text||f.current?.isComposing()||a.nativeEvent.isComposing||a.nativeEvent.keyCode===229||a.shiftKey||a.ctrlKey||a.altKey||a.metaKey||a.target!==f.current?.getTextarea())return;if(a.key==="Tab")a.preventDefault(),a.stopPropagation(),W(H.text)},children:[b&&c("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),c(Cn,{className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,bashMode:l!==void 0,disabled:!N,onPasteCapture:Pt?(a)=>ht(a,o.id,p("composer.pastedTextFilename"),Pt):void 0,placeholder:b?"! command":H.text||(j?p("composer.steerPlaceholder"):p("composer.placeholder")),"aria-label":p("composer.placeholder")})]}),c(qo,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:w("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[w("div",{className:"flex min-w-0 items-center gap-[5px]",children:[c(Ut,{className:"text-foreground",disabled:!N}),c(On,{textareaRef:f,menuOpen:X,onOpenChange:ot,disabled:!h||o.commands.length===0}),c(mt,{sessionId:o.id,options:o.configOptions,disabled:!h})]}),w(Wo,{className:"w-full min-w-0 items-center justify-end gap-1",children:[c(Dt,{session:o}),I??c(gt,{...L,sessionId:o.id,options:o.configOptions,disabled:!h}),bt,c(Ln,{active:j,sending:A||et||U,ready:h&&!V&&(!b||!j&&P.slice(1).trim().length>0),hasMentions:u.length>0,onStop:Nt})]})]})})]})]})]})})})}
|
|
2
|
-
export{ut};
|
package/dist/chunk-rwkkqdcv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createStore as r}from"@alwith/api/client";var X=r({sessionId:null,turns:[],api:null,beforeReveal:null,terminals:{}});function Qn(e){X.setState({...e,terminals:e.terminals??{}})}function Yn(e){if(X.getState().sessionId===e)X.setState({sessionId:null,turns:[],api:null,beforeReveal:null,terminals:{}})}async function Xn(e,n,t){let i=X.getState();if(t.aborted||e===null||i.sessionId!==e||i.api===null)return;if(i.beforeReveal===null)throw Error("Mounted timeline has no navigation lifecycle");i.beforeReveal(),await i.api.scrollToKey(n,void 0,{align:"top"})}
|
|
2
|
-
export{X,Qn,Yn,Xn};
|
package/dist/chunk-rwnz06kr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{dn}from"./chunk-85ffkcch.js";async function yo(i,c){let s=new WeakSet;while(!c.aborted){let r=Array.from(i.querySelectorAll('[data-codex-disclosure][aria-expanded="false"]')).filter((e)=>!s.has(e)&&!e.matches(":disabled"));for(let e of r)s.add(e),e.click();if(r.length===0&&i.querySelector("[data-markdown-pending]")===null)return;await new Promise((e)=>requestAnimationFrame(()=>e()))}}function Ve(i,c){if(!c)return[];let s=[],r="",e=[],o=()=>{let t=0,n=0;for(let{start:a,end:l}of dn(r,c)){while(t<e.length&&e[t].end<=a)t++;n=Math.max(n,t);while(n<e.length&&e[n].end<l)n++;let d=e[t],f=e[n];if(!d||!f)throw Error("Search text offset has no DOM node");let h=document.createRange();h.setStart(d.node,a-d.start),h.setEnd(f.node,l-f.start),s.push(h)}r="",e=[]},m=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DIV","DL","DT","DD","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","TABLE","TD","TH","TR","UL"]),u=(t)=>{if(t.nodeType===Node.TEXT_NODE){let a=t.parentElement;if(!a||a.offsetParent===null&&a.tagName!=="BODY")return;let l=t.nodeValue??"";e.push({node:t,start:r.length,end:r.length+l.length}),r+=l;return}if(!(t instanceof Element))return;if(t.matches("script, style, [hidden], [aria-hidden='true']")){o();return}if(t.tagName==="BR"){o();return}let n=m.has(t.tagName);if(n)o();for(let a of t.childNodes)u(a);if(n)o()};return u(i),o(),s}
|
|
2
|
-
export{yo,Ve};
|
package/dist/chunk-sxh0pd3y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d}from"./chunk-xyvqcpjx.js";import{a,o}from"./chunk-80ckz04b.js";import{k,P,g,W}from"./chunk-5nc3dtyt.js";import{x,Y,Vn}from"./chunk-52p7kyam.js";import{Ue}from"./chunk-c38t8809.js";import{I,V}from"./chunk-00eytt1z.js";import{re,Q}from"./chunk-vs02ry2r.js";import{closestCorners as fe,DndContext as Ce,KeyboardSensor as ye,PointerSensor as Se,useSensor as Z,useSensors as De}from"@dnd-kit/core";import{SortableContext as ee,sortableKeyboardCoordinates as we,useSortable as ce,verticalListSortingStrategy as oe}from"@dnd-kit/sortable";import{CSS as de}from"@dnd-kit/utilities";import{cn as F}from"cn";import{BrushCleaningIcon as ve,MessageSquareIcon as Ne,MoreHorizontalIcon as Ie,PencilIcon as he,PlusIcon as me,StarIcon as be,Trash2Icon as pe}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 te,DialogContent as ne,DialogDescription as ie,DialogFooter as le,DialogHeader as se,DialogTitle as ae}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:v,setNodeRef:i,transform:p,transition:u,isDragging:M}=ce({id:JSON.stringify([l,C]),data:{type:"session",collectionId:l,sessionId:C}});return e("div",{ref:i,style:{transform:de.Transform.toString(p),transition:u},className:F("w-full min-w-0",M&&"opacity-50"),...w,...v,role:"group",children:b})}function Be({collection:l,children:C,onEdit:b,onConfirm:w,onNewChat:v}){let{t:i}=x(),p=Q(),u=Y(),{attributes:M,listeners:m,setNodeRef:N,transform:T,transition:B,isDragging:K}=ce({id:l.id,disabled:{draggable:l.id===I,droppable:!1},data:{type:"collection"}});return e("div",{ref:N,style:{transform:de.Transform.toString(T),transition:B},className:F("w-full min-w-0",K&&"opacity-50"),children:e(W,{open:!l.collapsed,onOpenChange:(c)=>u(p({type:"collapse",id:l.id,collapsed:!c})),label:V(l,i),count:l.sessionIds.length,leading:l.id===I?e(be,{className:"size-3.5"}):e(Ue,{emoji:l.emoji,onChange:(c)=>u(p({type:"emoji",id:l.id,emoji:c}))}),wrapHeader:(c)=>e("div",{...M,...m,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:V(l,i)}),children:e(Ie,{className:"size-3.5"})})}),e(ke,{children:s(Le,{children:[l.id!==I&&s(z,{onClick:b,children:[e(he,{}),i("collection.rename")]}),s(z,{onClick:v,children:[e(me,{}),i("collection.newChat")]}),s(z,{onClick:()=>w("clear"),children:[e(ve,{}),i("collection.clearCollection")]}),l.id!==I&&s(z,{variant:"destructive",onClick:()=>w("delete"),children:[e(pe,{}),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 qi({renderRow:l,onSelect:C,onNewChat:b,Scroll:w=He}){let v=x(),{t:i}=v,p=Q(),u=Y(),M=a(),{collections:m,order:N}=re(),T=o((t)=>t.sessionList),B=o((t)=>t.archivedSessions),K=o((t)=>t.sessionListLoaded),c=o((t)=>t.sessionListError),U=Me(()=>new Map([...B,...T].map((t)=>[t.sessionId,t])),[B,T]),_=v.isMac??Vn(),[y,E]=R(null),[L,O]=R(""),[q,j]=R(""),[S,H]=R(null),[f,J]=R(!1),ue=De(Z(Se,{activationConstraint:{distance:5}}),Z(ye,{coordinateGetter:we})),G=N.flatMap((t)=>m[t].collapsed?[]:m[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 ge=({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 X=h.type==="session"?String(h.collectionId):String(n.id);u(p({type:"move",sourceCollectionId:String(r.collectionId),collectionId:X,sessionId:String(r.sessionId),index:h.type==="session"?m[X].sessionIds.indexOf(String(h.sessionId)):void 0}))}else if(r?.type==="collection"&&h?.type==="collection"&&String(n.id)!==I)u(p({type:"reorder",id:String(t.id),index:N.indexOf(String(n.id))}))},A=(t,n)=>{J(!0),u(t.then(n).finally(()=>J(!1)))};return s(ze,{children:[e(w,{children:s(k,{children:[s(g,{className:F(d,"font-normal"),onClick:()=>{E("new"),O(""),j("")},children:[e(P,{children:e(me,{})}),e("span",{children:i("collection.newCollection")})]}),c&&s("div",{className:"text-muted-foreground px-2 text-sm",children:[e("p",{role:"alert",children:c}),e(D,{variant:"ghost",onClick:()=>u(M.listSessions({reset:!0})),children:i("collection.retry")})]}),e(Ce,{sensors:ue,collisionDetection:fe,onDragEnd:ge,children:e(ee,{items:N,strategy:oe,children:e(k,{children:N.map((t)=>e(Be,{collection:m[t],onNewChat:()=>b(t),onEdit:()=>{E(t),O(m[t].name),j(m[t].emoji??"")},onConfirm:(n)=>H({id:t,type:n}),children:e(ee,{items:m[t].sessionIds.map((n)=>JSON.stringify([t,n])),strategy:oe,children:m[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(P,{children:e(Ne,{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(pe,{})})]},n):null;return e(Te,{collectionId:t,sessionId:n,children:l(r,()=>{},t)},n)})})},t))})})})]})}),e(te,{open:y!==null,onOpenChange:(t)=>{if(!t&&!f)E(null)},children:s(ne,{children:[s(se,{children:[e(ae,{children:i(y==="new"?"collection.newCollection":"collection.rename")}),e(ie,{children:i("collection.collectionName")})]}),s("form",{onSubmit:(t)=>{if(t.preventDefault(),y===null||!L.trim()||f)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}]),()=>E(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:f}),y!=="new"&&e(Ue,{emoji:q,onChange:j}),s(le,{children:[e(D,{type:"button",variant:"outline",disabled:f,onClick:()=>E(null),children:i("collection.cancel")}),e(D,{type:"submit",disabled:f||!L.trim(),children:i("collection.confirm")})]})]})]})}),e(te,{open:S!==null,onOpenChange:(t)=>{if(!t&&!f)H(null)},children:s(ne,{children:[s(se,{children:[e(ae,{children:i(S?.type==="delete"?"collection.deleteCollection":"collection.clearCollection")}),e(ie,{children:i("collection.confirmCollectionChange",{name:S===null?"":V(m[S.id],i)})})]}),s(le,{children:[e(D,{variant:"outline",disabled:f,onClick:()=>H(null),children:i("collection.cancel")}),e(D,{disabled:f,onClick:()=>{if(S!==null)A(p({type:S.type,id:S.id}),()=>H(null))},children:i("collection.confirm")})]})]})})]})}
|
|
2
|
-
export{qi};
|
package/dist/chunk-t0cr21e3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{At}from"./chunk-hv1ejvhg.js";import{createContext as a,useContext as u,useEffect as d,useSyncExternalStore as g}from"react";import{jsx as o}from"react/jsx-runtime";var P=a(null),p=a(null),r=new WeakMap;function Ie(e){let t=r.get(e);if(!t)t=At(e),r.set(e,t);return t}function ar({host:e,client:t,children:n}){let s=Ie(t);return s.bindHost(e),d(()=>s.bindHost(e),[s,e]),o(P,{value:e,children:o(p,{value:t,children:n})})}function l(){let e=u(P);if(e===null)throw Error("Plugins host is missing");return e}function Ne(){let e=u(p);if(e===null)throw Error("Plugins client is missing");return e}function Qe(e){let t=Ne();return g((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function i(e){let t=Ie(Ne());return g((n)=>t.subscribe(n),()=>e(t.getState()),()=>e(t.getState()))}function Me(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
|
|
2
|
-
export{Ie,ar,l,Ne,Qe,i,Me};
|
package/dist/chunk-vkrgdqnm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b,pn,Po,St,To,mn,Io}from"./chunk-z71pp1mb.js";import{t,fe,Le,n}from"./chunk-ye9tsdhn.js";import{ae}from"./chunk-sy5tq3y6.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 v=E({entries:{}});function p(r,e){v.setState((s)=>({entries:{...s.entries,[r]:e}}))}function x(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[...mn(s._meta),...s.content.filter(k).flatMap((i)=>mn(i._meta))])if(a.questionItemId===e)return a.answer}return}function O({sessionId:r,item:e,question:s,index:a}){let i=fe(),{t:l}=t(),m=pn(e.id,a),c=JSON.stringify([r,m]),u=Le(v,(o)=>o.entries[c]),d=n((o)=>o.sessions[r]),A=n((o)=>o.connection==="ready"),f=u?.draft??Po(s),q=d===void 0?u?.accepted:M(d,m)??u?.accepted,h=d!==void 0&&x(d,e),D=!d?.subagent&&A&&d?.attached&&!d.restoring&&!d.readOnly,g=q!==void 0?"answered":u?.skipped?"skipped":u?.pending?"submitting":!h?"closed":!D?"unavailable":"pending",C=async()=>{if(v.getState().entries[c]?.pending||g!=="pending")return;let o=i.state.sessions[r];if(o===void 0||!x(o,e)||!o.attached||o.readOnly||o.restoring)return;let S=St(s,f);if(!S.trim())return;let w={questionItemId:m,question:s.title,answer:S};p(c,{draft:f,pending:!0});try{await i.prompt(r,[{type:"text",text:To(w),_meta:{codex:{questionReply:w}}}]),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(Io,{question:s,draft:f,status:g,answer:q,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 tn({sessionId:r,item:e}){let s=n((i)=>i.sessions[r]),a=b(e._meta);if(s===void 0||s.subagent!==void 0||s.readOnly||!x(s,e))return y(ae,{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},pn(e.id,l)))})}
|
|
2
|
-
export{tn};
|
package/dist/chunk-wvdncbrt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ze}from"./chunk-7wk3d01c.js";import{go,fo,ho}from"./chunk-mgm1x3de.js";import{Do}from"./chunk-xgjkj9j8.js";import{t}from"./chunk-ye9tsdhn.js";import{J}from"./chunk-q7nn5xe5.js";import{nativeTurnId as f,textOf as I}from"@nyssance/codex-acp-v2/client";import{useMemo as N}from"react";import{jsx as r,jsxs as v,Fragment as y}from"react/jsx-runtime";function Ur(i,n){return{installUnlock:n==="none"?()=>()=>{}:fo,preload:()=>{if(n!=="none")go(i)},playSequence:(a,d,l)=>ho(a,d,l,i,n)}}function io(i,n={},a){let d=[];for(let e of i){if(e.user===null)continue;let o="";for(let m of e.final){let p=I(m.content).trim();if(p.length===0)continue;o=p}let u=n[e.user.id],s=e.items.map(f).find((m)=>m!==null);d.push({id:e.user.id,turnKey:e.key,label:J(e.user),response:o,inputTokens:u?.inputTokens??0,outputTokens:u?.outputTokens??0,...s===void 0?{}:{nativeTurnId:s}})}if(!a?.complete)return d;let l=new Map;for(let e of d){if(e.nativeTurnId===void 0)continue;let o=l.get(e.nativeTurnId)??[];o.push(e),l.set(e.nativeTurnId,o)}let c=new Set(a.turns.map((e)=>e.turnId)),g=new Set(a.loadedTurnIds);return[...a.turns.flatMap((e)=>{let o=l.get(e.turnId);if(o)return o;if(g.has(e.turnId))return[];let u=a.previews[e.turnId];return((u?.messages.length)?u.messages:[{id:"",label:"",response:""}]).map((s,m)=>({id:`history:${e.turnId}:${m===0?"0":s.id}`,messageId:s.id||void 0,turnKey:`history:${e.turnId}`,nativeTurnId:e.turnId,isLoaded:!1,previewState:u?.state??"loading",label:s.label,response:s.response,inputTokens:0,outputTokens:0}))}),...d.filter((e)=>e.nativeTurnId===void 0||!c.has(e.nativeTurnId))]}function T({item:i}){let n=t(),a=N(()=>({theme:n.theme,copyLabel:n.t("actions.copy"),openLink:()=>{},preview:!0}),[n]);if(i.previewState==="loading")return v("div",{role:"status",className:"animate-pulse space-y-2 py-1","aria-label":n.t("timeline.navigationLoading"),children:[r("div",{className:"bg-muted h-3 w-3/5 rounded"}),r("div",{className:"bg-muted h-3 rounded"}),r("div",{className:"bg-muted h-3 w-4/5 rounded"})]});return v(y,{children:[r("div",{className:"min-w-0 truncate font-medium",children:i.previewState==="unavailable"?n.t("timeline.navigationUnavailable"):i.label||n.t("timeline.navigationEmpty")}),i.response&&r("div",{className:"text-muted-foreground pointer-events-none mt-1 line-clamp-3 [&_img]:hidden [&_pre]:max-h-20 [&_table]:table-fixed","data-navigation-response":!0,children:r(Ze,{text:i.response,host:a})})]})}function ro(i){return r(Do,{...i,renderPreview:(n)=>r(T,{item:n})})}
|
|
2
|
-
export{Ur,io,ro};
|
package/dist/chunk-y7xcync7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function B(e){return i(e.options)?e.options.flatMap((t)=>t.options):e.options}function p(e,t){return e.find((n)=>n.category===t&&o(n))}function G(e){return B(e).find((t)=>t.value===e.currentValue)?.name??e.currentValue}
|
|
2
|
-
export{B,p,G};
|
package/dist/chunk-ye9tsdhn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ti}from"./chunk-zxkvvecz.js";import{createContext as s,useContext as l,useSyncExternalStore as m}from"react";import{jsx as r}from"react/jsx-runtime";var c=s(null),u=s(null);function ge({host:e,client:i,children:o}){return r(Ti,{host:e,children:r(c,{value:e,children:r(u,{value:i,children:o})})})}function t(){let e=l(c);if(e===null)throw Error("Timeline host is missing");return e}function fe(){let e=l(u);if(e===null)throw Error("Timeline client is missing");return e}function Le(e,i){return m((o)=>e.subscribe(o),()=>i(e.getState()),()=>i(e.getState()))}function n(e){let i=fe();return Le(i.store,e)}function nt(e,i){if(e.reportError)e.reportError(i);else console.error(i)}
|
|
2
|
-
export{ge,t,fe,Le,n,nt};
|