@alwith/module-chat 0.6.3 → 0.6.4
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.js +1 -1
- package/dist/approval/url-elicitation-card.js +1 -1
- package/dist/{chunk-x1gdzj12.js → chunk-07srtfz3.js} +2 -2
- package/dist/{chunk-wk0w29fc.js → chunk-0ag4ewq9.js} +2 -2
- package/dist/{chunk-g9q3ktfj.js → chunk-0fmepk2y.js} +3 -3
- package/dist/{chunk-a63k8tht.js → chunk-1341xyde.js} +2 -2
- package/dist/{chunk-tp3gzh0b.js → chunk-18j37y1m.js} +2 -2
- package/dist/{chunk-ccn44b81.js → chunk-1b2jsf2v.js} +2 -2
- package/dist/{chunk-wrfxjyt2.js → chunk-2bbspcb4.js} +2 -2
- package/dist/chunk-2z1cpz8a.js +2 -0
- package/dist/{chunk-jtc52w45.js → chunk-31t5ap7s.js} +3 -3
- package/dist/{chunk-n9234ftx.js → chunk-35z0nr4v.js} +2 -2
- package/dist/{chunk-qem8a6w1.js → chunk-3aadhvbj.js} +2 -2
- package/dist/{chunk-v2kz1m1e.js → chunk-3mrdv5yq.js} +2 -2
- package/dist/{chunk-3adsd6wf.js → chunk-3stf1tm2.js} +2 -2
- package/dist/{chunk-ekq4d1bs.js → chunk-41nq4hjc.js} +2 -2
- package/dist/{chunk-dxgha4a2.js → chunk-4jh2wk80.js} +2 -2
- package/dist/{chunk-6j09pkr4.js → chunk-4xjzvwg4.js} +2 -2
- package/dist/{chunk-0neph1kr.js → chunk-4xp0q7vs.js} +3 -3
- package/dist/{chunk-g6k07w9b.js → chunk-53k7yvr8.js} +2 -2
- package/dist/chunk-57p1s7hy.js +2 -0
- package/dist/{chunk-k4kdxztk.js → chunk-5azv8vz6.js} +2 -2
- package/dist/{chunk-ws07yjfe.js → chunk-5vh4z4yp.js} +2 -2
- package/dist/{chunk-spez62xj.js → chunk-601kr76a.js} +3 -3
- package/dist/{chunk-vsney1vb.js → chunk-67x8znmk.js} +2 -2
- package/dist/{chunk-pvx9s60k.js → chunk-6d5c94rn.js} +2 -2
- package/dist/chunk-6hxa1n8n.js +2 -0
- package/dist/{chunk-kf9zjtr3.js → chunk-6pwy0ncf.js} +2 -2
- package/dist/chunk-6wtrmxev.js +3 -0
- package/dist/{chunk-k1wjbbcq.js → chunk-6wv99fdt.js} +2 -2
- package/dist/{chunk-73gtwm77.js → chunk-6zcjn8ra.js} +2 -2
- package/dist/chunk-753z0tkd.js +2 -0
- package/dist/{chunk-67vzyv97.js → chunk-76a04a6j.js} +2 -2
- package/dist/{chunk-p1z376qx.js → chunk-7bcm8mpx.js} +2 -2
- package/dist/chunk-7eq01k20.js +3 -0
- package/dist/chunk-7jx2k96e.js +2 -0
- package/dist/{chunk-fhkmhxks.js → chunk-7nb0qea6.js} +3 -3
- package/dist/{chunk-rh5zgmh5.js → chunk-7xe2v72q.js} +2 -2
- package/dist/{chunk-6vtcbh85.js → chunk-7zcr1wzv.js} +2 -2
- package/dist/{chunk-0qy6n5bv.js → chunk-8fnjpx11.js} +2 -2
- package/dist/{chunk-pzsx1s8z.js → chunk-8hen6y4t.js} +2 -2
- package/dist/chunk-8hgrrycr.js +2 -0
- package/dist/{chunk-0717ykjj.js → chunk-8t3hyxk4.js} +2 -2
- package/dist/{chunk-41t41g5h.js → chunk-8wdkc41j.js} +2 -2
- package/dist/{chunk-yr5y9dp6.js → chunk-9c8cyz7r.js} +2 -2
- package/dist/{chunk-btrg3ywt.js → chunk-9cqpn67f.js} +2 -2
- package/dist/{chunk-8h8zr2s0.js → chunk-9ff3htdp.js} +2 -2
- package/dist/chunk-9g7qvbhx.js +2 -0
- package/dist/{chunk-kxv78gj0.js → chunk-9hskky1n.js} +2 -2
- package/dist/{chunk-wgph2nb9.js → chunk-9k4f13c1.js} +2 -2
- package/dist/{chunk-kj1xdw76.js → chunk-9n028hnr.js} +2 -2
- package/dist/{chunk-ek1c345m.js → chunk-9qvnrc1p.js} +2 -2
- package/dist/chunk-9rgrb198.js +3 -0
- package/dist/{chunk-p73qyyrt.js → chunk-9w4fg6bn.js} +2 -2
- package/dist/{chunk-0n01x7fz.js → chunk-9yrctk84.js} +2 -2
- package/dist/{chunk-xr3sd5r7.js → chunk-a45jg9xv.js} +6 -6
- package/dist/{chunk-f1ha808d.js → chunk-aarpb5np.js} +2 -2
- package/dist/{chunk-e8t49fma.js → chunk-abjr18n6.js} +4 -4
- package/dist/chunk-az434tgy.js +2 -0
- package/dist/chunk-azrmn4x1.js +2 -0
- package/dist/{chunk-w8d5b5ta.js → chunk-b5ywqwnr.js} +2 -2
- package/dist/{chunk-2c6ewztm.js → chunk-bb1y2fy7.js} +2 -2
- package/dist/{chunk-h2sk8xmm.js → chunk-be7ja8gh.js} +3 -3
- package/dist/{chunk-btrhrh42.js → chunk-bjfcyfp5.js} +2 -2
- package/dist/chunk-bk80xpsy.js +2 -0
- package/dist/{chunk-7x2hqdxv.js → chunk-brqgdzhr.js} +2 -2
- package/dist/chunk-bt01an6h.js +2 -0
- package/dist/{chunk-t83h0z1y.js → chunk-bydgccyt.js} +2 -2
- package/dist/{chunk-fnhcyga2.js → chunk-c11c29rv.js} +5 -5
- package/dist/{chunk-njq7f390.js → chunk-c2a0x69n.js} +2 -2
- package/dist/{chunk-x0dn6sdq.js → chunk-c4dk6j2h.js} +2 -2
- package/dist/{chunk-bdt3y6w6.js → chunk-ce3wg766.js} +2 -2
- package/dist/chunk-cm5rcd9q.js +2 -0
- package/dist/{chunk-b3jjd5nv.js → chunk-cn9g220k.js} +2 -2
- package/dist/chunk-d1pc0mrb.js +2 -0
- package/dist/{chunk-npqa1nz9.js → chunk-d67ypca2.js} +2 -2
- package/dist/{chunk-mw9586vr.js → chunk-db0g8rr1.js} +2 -2
- package/dist/{chunk-m2b57yqn.js → chunk-dj8e2ymr.js} +2 -2
- package/dist/chunk-e4h6f6dh.js +2 -0
- package/dist/chunk-e8jfja20.js +2 -0
- package/dist/{chunk-qvbaga5z.js → chunk-eb12xkn0.js} +2 -2
- package/dist/{chunk-arzgbze4.js → chunk-ehcpnhfw.js} +2 -2
- package/dist/chunk-enr3j794.js +2 -0
- package/dist/{chunk-jq1mmpqr.js → chunk-eryds6y3.js} +2 -2
- package/dist/{chunk-9271avsa.js → chunk-ezhzktjg.js} +2 -2
- package/dist/{chunk-dwbc8r1m.js → chunk-fzfmg9pk.js} +2 -2
- package/dist/chunk-g3snk3nb.js +2 -0
- package/dist/{chunk-wyyazt81.js → chunk-g4frp0r0.js} +2 -2
- package/dist/{chunk-cyb27m7n.js → chunk-ggqv2qpg.js} +2 -2
- package/dist/{chunk-z2v008kc.js → chunk-gha517v4.js} +2 -2
- package/dist/chunk-gjg213m6.js +2 -0
- package/dist/chunk-gvwmyxwf.js +2 -0
- package/dist/{chunk-yms6983x.js → chunk-gyps0vc5.js} +4 -4
- package/dist/{chunk-ngmgp7a4.js → chunk-h3hzsg0s.js} +2 -2
- package/dist/{chunk-jyg1gsqg.js → chunk-h4r8cx37.js} +2 -2
- package/dist/{chunk-3fxbypd3.js → chunk-hbtv1mp0.js} +2 -2
- package/dist/{chunk-ewf8fb64.js → chunk-hfzt777k.js} +2 -2
- package/dist/{chunk-aq0reck8.js → chunk-hp1w7xrp.js} +2 -2
- package/dist/{chunk-82xjggwn.js → chunk-hp9h8njw.js} +2 -2
- package/dist/chunk-hrgtpvkw.js +2 -0
- package/dist/{chunk-gan9srhm.js → chunk-j5engcds.js} +2 -2
- package/dist/chunk-j6mkqhey.js +2 -0
- package/dist/{chunk-qafx5yjp.js → chunk-k20e64v3.js} +2 -2
- package/dist/chunk-k7y6dqf2.js +2 -0
- package/dist/chunk-k8xqzrg6.js +2 -0
- package/dist/{chunk-dbc5121m.js → chunk-km20c9ey.js} +2 -2
- package/dist/{chunk-js9y1x0n.js → chunk-ksyb8hyt.js} +2 -2
- package/dist/{chunk-drrram2y.js → chunk-m33eg346.js} +2 -2
- package/dist/chunk-m9mvh1gy.js +2 -0
- package/dist/{chunk-hacpxv1k.js → chunk-maa70rv4.js} +2 -2
- package/dist/{chunk-er0nrf55.js → chunk-mfnq8nnd.js} +3 -3
- package/dist/chunk-mhnhkg65.js +2 -0
- package/dist/{chunk-5w96v6hf.js → chunk-mmm1rq2a.js} +2 -2
- package/dist/chunk-mz18hxbn.js +2 -0
- package/dist/chunk-n50n6k74.js +2 -0
- package/dist/{chunk-j6svz91p.js → chunk-n6dbc0md.js} +2 -2
- package/dist/{chunk-6ra6vmy1.js → chunk-n9fwnebe.js} +2 -2
- package/dist/{chunk-3wxx62gz.js → chunk-nk266xxm.js} +2 -2
- package/dist/{chunk-m66tt5vt.js → chunk-npsgbfh2.js} +2 -2
- package/dist/{chunk-jxcvqmrk.js → chunk-nx701kdw.js} +2 -2
- package/dist/{chunk-152mrdb6.js → chunk-p0egvanw.js} +2 -2
- package/dist/chunk-p5by0hbk.js +2 -0
- package/dist/chunk-p9ra3xxb.js +2 -0
- package/dist/{chunk-wdfh0xr6.js → chunk-pp9fngkx.js} +2 -2
- package/dist/chunk-q92p35wp.js +2 -0
- package/dist/{chunk-0t3g2phv.js → chunk-qcj6f1rq.js} +2 -2
- package/dist/chunk-qexqjw6k.js +2 -0
- package/dist/chunk-qez4ygej.js +2 -0
- package/dist/chunk-qyp7c0j8.js +1 -0
- package/dist/{chunk-cgbjtg32.js → chunk-qznyjv2c.js} +2 -2
- package/dist/{chunk-ar81v2x8.js → chunk-r0v0wxn7.js} +2 -2
- package/dist/chunk-r1sdshyw.js +2 -0
- package/dist/{chunk-wej76mmp.js → chunk-rch4xpj1.js} +2 -2
- package/dist/{chunk-97z2dafr.js → chunk-rg5jhh45.js} +2 -2
- package/dist/{chunk-n7y86xxv.js → chunk-sqwscqfk.js} +2 -2
- package/dist/chunk-stghje2t.js +2 -0
- package/dist/{chunk-egzt0en6.js → chunk-t8n1ny7h.js} +2 -2
- package/dist/chunk-teg61ef5.js +2 -0
- package/dist/chunk-tjjqaf65.js +2 -0
- package/dist/{chunk-8q6wpmar.js → chunk-v3jehrgj.js} +2 -2
- package/dist/{chunk-z0e6twca.js → chunk-v4cf374m.js} +2 -2
- package/dist/{chunk-qdh9z547.js → chunk-v5wqxqrh.js} +2 -2
- package/dist/chunk-v7dyjpv3.js +2 -0
- package/dist/{chunk-rrb47vhw.js → chunk-vkc6mwyb.js} +2 -2
- package/dist/chunk-vpm5ddtt.js +4 -0
- package/dist/{chunk-r03bbt2f.js → chunk-vwzkw97t.js} +2 -2
- package/dist/{chunk-36han2kw.js → chunk-w0dfvr05.js} +2 -2
- package/dist/{chunk-hvm4b6n2.js → chunk-wnsk4tw5.js} +2 -2
- package/dist/chunk-wyjzpncq.js +2 -0
- package/dist/{chunk-xjx9aw6t.js → chunk-x4qnkn8f.js} +2 -2
- package/dist/{chunk-e6r2sx79.js → chunk-xecs5c6a.js} +2 -2
- package/dist/chunk-xhtpqc8p.js +2 -0
- package/dist/{chunk-x9eeb7ns.js → chunk-xvzz0xh6.js} +2 -2
- package/dist/{chunk-8qkhwpmk.js → chunk-y2g8d94r.js} +2 -2
- package/dist/chunk-y7v0ghc9.js +2 -0
- package/dist/{chunk-wg6yp27g.js → chunk-yd6ae6py.js} +2 -2
- package/dist/{chunk-j2zx58ja.js → chunk-yf39xswe.js} +2 -2
- package/dist/{chunk-505zj2bz.js → chunk-yjk5a037.js} +2 -2
- package/dist/{chunk-jsjyrkcq.js → chunk-yq55kqn1.js} +2 -2
- package/dist/{chunk-tpppzcvp.js → chunk-yr6ar090.js} +2 -2
- package/dist/chunk-z49yf5bx.js +2 -0
- package/dist/{chunk-n25773ea.js → chunk-z4nv1j97.js} +2 -2
- package/dist/chunk-zb14ervr.js +2 -0
- package/dist/{chunk-gfx3hvr5.js → chunk-zd40j8qb.js} +2 -2
- package/dist/chunk-zghk9mth.js +3 -0
- package/dist/{chunk-4ae0few5.js → chunk-zn9xn0pj.js} +2 -2
- package/dist/chunk-zr2a9z0m.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/app-mentions.js +1 -1
- package/dist/conversation/composer/apps-menu.js +1 -1
- package/dist/conversation/composer/composer.js +1 -1
- package/dist/conversation/composer/config-options.js +1 -1
- package/dist/conversation/composer/context.js +1 -1
- package/dist/conversation/composer/drafts.js +1 -1
- package/dist/conversation/composer/file-items.js +1 -1
- package/dist/conversation/composer/long-text.js +1 -1
- package/dist/conversation/composer/mention-chips.js +1 -1
- package/dist/conversation/composer/mention-uri.js +1 -1
- package/dist/conversation/composer/model-menu.js +1 -1
- package/dist/conversation/composer/pasted-text-attachment.js +1 -1
- package/dist/conversation/composer/permission-mode-menu.js +1 -1
- package/dist/conversation/composer/prediction.js +1 -1
- package/dist/conversation/composer/prompt-history.js +1 -1
- package/dist/conversation/composer/slash-command-button.js +1 -1
- package/dist/conversation/composer/submit-button.js +1 -1
- package/dist/conversation/composer/usage-meter.js +1 -1
- package/dist/conversation/connection-notice.js +1 -1
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-search.js +1 -1
- package/dist/conversation/conversation-view.js +1 -1
- package/dist/conversation/conversation.js +1 -1
- package/dist/conversation/diff-modal.js +1 -1
- package/dist/conversation/draft-project-picker.js +1 -1
- package/dist/conversation/session-actions.js +1 -1
- package/dist/conversation/subagent-sessions.js +1 -1
- package/dist/conversation/subagent-tasks.js +1 -1
- package/dist/generated/commands.js +1 -1
- package/dist/image-lightbox.js +1 -1
- package/dist/image-preview-dialog.js +1 -1
- package/dist/image.js +1 -1
- package/dist/lib/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/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/lib/tool-artifacts.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/locales.js +1 -1
- package/dist/plugins/new-chat-directory.js +1 -1
- package/dist/plugins/pane.js +1 -1
- package/dist/plugins/panel-item.js +1 -1
- package/dist/plugins/plugin-detail-page.js +1 -1
- package/dist/plugins/plugin-icon.js +1 -1
- package/dist/plugins/plugin-icons.js +1 -1
- package/dist/plugins/plugins-page.js +1 -1
- package/dist/plugins/plugins.js +1 -1
- package/dist/plugins/read-skill-document.js +1 -1
- package/dist/plugins/skill-document.js +1 -1
- package/dist/plugins/skills-tab.js +1 -1
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/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-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/types.d.ts +2 -2
- 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-1qm96wyd.js +0 -2
- package/dist/chunk-1xz7zmz5.js +0 -2
- package/dist/chunk-228cdk3n.js +0 -2
- package/dist/chunk-234jnd72.js +0 -2
- package/dist/chunk-23k0jcxd.js +0 -2
- package/dist/chunk-2gwj90sw.js +0 -2
- package/dist/chunk-2n86qe6v.js +0 -3
- package/dist/chunk-30tynyrt.js +0 -2
- package/dist/chunk-3rvvac37.js +0 -2
- package/dist/chunk-4chswhrw.js +0 -2
- package/dist/chunk-5hp37r8q.js +0 -3
- package/dist/chunk-5k7rhfkh.js +0 -2
- package/dist/chunk-5kv1p9nd.js +0 -2
- package/dist/chunk-7pv05p7j.js +0 -2
- package/dist/chunk-7vpy078b.js +0 -2
- package/dist/chunk-9pcbtreq.js +0 -2
- package/dist/chunk-ambjth0x.js +0 -2
- package/dist/chunk-bptqs82k.js +0 -2
- package/dist/chunk-by0ecrb5.js +0 -2
- package/dist/chunk-c3neqj3h.js +0 -2
- package/dist/chunk-c9d65ta8.js +0 -2
- package/dist/chunk-cg8ekwka.js +0 -2
- package/dist/chunk-cpcfd1a1.js +0 -2
- package/dist/chunk-d499mw7g.js +0 -2
- package/dist/chunk-d7evpw1z.js +0 -2
- package/dist/chunk-etpnhtgg.js +0 -4
- package/dist/chunk-ewctpsb4.js +0 -2
- package/dist/chunk-ff987rah.js +0 -2
- package/dist/chunk-h1z98eg8.js +0 -2
- package/dist/chunk-h51hfb0t.js +0 -2
- package/dist/chunk-jfa9vg5s.js +0 -2
- package/dist/chunk-jqvp4gfc.js +0 -2
- package/dist/chunk-me85j3xg.js +0 -2
- package/dist/chunk-nthrcswc.js +0 -2
- package/dist/chunk-rdx8hc3g.js +0 -2
- package/dist/chunk-rxpytgjq.js +0 -3
- package/dist/chunk-smwn4wrd.js +0 -2
- package/dist/chunk-t67m7g8q.js +0 -2
- package/dist/chunk-w30rf96r.js +0 -2
- package/dist/chunk-xq196p3v.js +0 -2
- package/dist/chunk-xqe0qa9f.js +0 -2
- package/dist/chunk-y4ewhx9t.js +0 -2
- package/dist/chunk-ydqnz0pb.js +0 -2
- package/dist/chunk-yxtr7x25.js +0 -2
- package/dist/chunk-yyzxpnm0.js +0 -2
- package/dist/chunk-z3xg96j6.js +0 -3
- package/dist/chunk-z8bbv8qd.js +0 -2
- package/dist/chunk-zd2c750t.js +0 -2
- package/dist/chunk-zz3wm06f.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{w}from"./chunk-6hxa1n8n.js";import{EmojiPicker as t}from"frimousse";import{BoxIcon as u}from"lucide-react";import{useState as d}from"react";import{Button as g}from"@nyssance/shadcn/vega/components/ui/button";import{Popover as x,PopoverContent as f,PopoverTrigger as b}from"@nyssance/shadcn/vega/components/ui/popover";import{jsx as o,jsxs as n}from"react/jsx-runtime";function Ve({emoji:s,onChange:l}){let[m,r]=d(!1),{t:a,i18n:c,emojibaseUrl:p}=w();return n(x,{open:m,onOpenChange:r,children:[o(b,{onClick:(e)=>e.stopPropagation(),onPointerDown:(e)=>e.stopPropagation(),render:o(g,{variant:"ghost",size:"icon-xs",className:"relative z-10","aria-label":a("collection.emoji"),children:s||o(u,{className:"size-3.5"})})}),o(f,{align:"start",className:"w-auto p-0",children:n(t.Root,{emojibaseUrl:p,locale:c.language==="zh-CN"?"zh":"en",className:"bg-popover flex h-80 w-72 flex-col",onEmojiSelect:({emoji:e})=>{l(e),r(!1)},children:[o(t.Search,{"aria-label":a("collection.emoji"),className:"focus-visible:border-ring mx-2 mt-2 flex h-8 rounded-md border bg-transparent px-2 text-sm outline-none"}),n(t.Viewport,{className:"relative flex-1 outline-none",children:[o(t.Loading,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs",children:"…"}),o(t.Empty,{className:"text-muted-foreground absolute inset-0 flex items-center justify-center text-xs"}),o(t.List,{className:"pb-1.5 select-none",components:{CategoryHeader:({category:e,...i})=>o("div",{className:"bg-popover text-muted-foreground px-3 pt-3 pb-1.5 text-xs",...i,children:e.label}),Row:({children:e,...i})=>o("div",{className:"scroll-my-1.5 px-1.5",...i,children:e}),Emoji:({emoji:e,...i})=>o("button",{type:"button",className:"data-[active]:bg-accent flex size-8 items-center justify-center rounded-md text-lg",...i,children:e.emoji})}})]})]})})]})}
|
|
2
|
+
export{Ve};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s,z,jt}from"./chunk-az434tgy.js";var To=5000;function Le(t){return"pastedText"in t}function Zr(t){return`file://${encodeURI(t).replaceAll("#","%23").replaceAll("?","%3F")}`}function We(t,e,o){let i=(r,n)=>{for(let[a,x]of s){if(!x.attachments.some((p)=>p.id===e.id))continue;z(a,(p)=>p.map((d)=>d.id===e.id?{...e,url:n===void 0?"":Zr(n),pastedText:{text:e.pastedText.text,status:r}}:d))}};if(!s.get(t)?.attachments.some((r)=>r.id===e.id))return;i("pending"),jt(e.id,o("pasted-text.txt",e.pastedText.text).then((r)=>i("ready",r)).catch(()=>i("error")))}function Vt(t,e,o,i){if(t.defaultPrevented||t.currentTarget.disabled)return;if([...t.clipboardData.items].some((a)=>a.kind==="file"&&a.type.startsWith("image/")))return;let r=t.clipboardData.getData("text/plain");if(r.length<To)return;t.preventDefault(),t.stopPropagation();let n={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:o,url:"",pastedText:{text:r,status:"pending"}};z(e,(a)=>[...a,n]),We(e,n,i)}
|
|
2
|
+
export{To,Le,Zr,We,Vt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Fn}from"./chunk-db0g8rr1.js";import{Bi}from"./chunk-p0egvanw.js";import{X}from"./chunk-bt01an6h.js";import{He,Ki}from"./chunk-b5ywqwnr.js";import{e}from"./chunk-xecs5c6a.js";import{useCallback as s}from"react";import"@alwith/module-chat/search.css";import{jsx as m}from"react/jsx-runtime";var h="alwith-chat:find";function jr(t){window.dispatchEvent(new CustomEvent(h,{detail:t}))}function Xt({sessionId:t,rootRef:p}){let{host:v,client:a}=e(),{t:l}=v,u=X(He,(r)=>r),w=s(()=>p.current?.querySelector("[data-chat-scroll]")??null,[p]),y=s((r)=>u.sessionId===t?Fn(u.turns,r,u.terminals):[],[u,t]),S=s((r,i)=>Ki(t,r,i),[t]),b=s(async(r)=>{await a.loadHistoryNavigation(t);let i=a.state.historyNavigation[t];for(let n of i?.turns??[]){if(r.aborted)return;if(!a.state.historyNavigation[t]?.loadedTurnIds.includes(n.turnId))await a.loadHistoryTurn(t,n.turnId)}let c=new Set;while(!r.aborted){let n=a.state.historyPages[t]?.cursor;if(n==null)return;if(c.has(n))throw Error("Chat history pagination returned a repeated cursor");c.add(n),await a.loadOlderHistory(t)}},[a,t]),{subscribeSearch:f,shouldOpenSearch:d}=v,g=s((r)=>{let i=(o)=>{if((o.metaKey||o.ctrlKey)&&!o.altKey&&!o.shiftKey&&o.key.toLowerCase()==="f"){if(d&&!d(o))return;o.preventDefault(),r()}},c=(o)=>{if(o.detail===t)r()};window.addEventListener("keydown",i),window.addEventListener(h,c);let n=f?.(r);return()=>{window.removeEventListener("keydown",i),window.removeEventListener(h,c),n?.()}},[f,d,t]);return m("div",{className:"absolute inset-x-0 top-0 z-30",children:m(Bi,{placement:"body",getViewport:w,findSourceMatches:y,revealTurn:S,prepareSource:b,subscribeOpen:g,labels:{search:l("conversation.search.label"),placeholder:l("conversation.search.placeholder"),previous:l("conversation.search.previous"),next:l("conversation.search.next")}},t)})}
|
|
2
|
+
export{jr,Xt};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{vi}from"./chunk-bjfcyfp5.js";import{n}from"./chunk-bt01an6h.js";import{xi,bi}from"./chunk-yf39xswe.js";import{Y}from"./chunk-y2g8d94r.js";import{re}from"./chunk-8wdkc41j.js";import{isEmbeddedResource as g,isImage as d,isResourceLink as f,isText as x}from"@nyssance/codex-acp-v2/client";import{memo as p}from"react";import{jsx as r,jsxs as h}from"react/jsx-runtime";var hi=p(function({item:t,messageTime:c}){let l=n(),o=bi(t._meta),m=o?o.map((e)=>e.question===void 0?e.text:`${e.question}
|
|
2
|
+
${e.text}`).join(`
|
|
3
|
+
`):re(t),a=t.content.filter(d),i=t.content.filter((e)=>f(e)||g(e)),u=o??t.content.filter(x).map((e)=>{let s=xi(e._meta);return s?{question:s.question,text:s.answer}:{text:e.text}});if(m.length===0&&a.length===0&&i.length===0)return null;return h("div",{className:"group/codex-user flex min-w-0 flex-col items-end gap-2","data-content-search-unit-key":t.id,children:[i.length>0&&r("div",{className:"codex-user-mentions",children:i.map((e,s)=>r(Y,{block:e},`${t.id}:${s}`))}),r(vi,{host:l,message:t,text:m,textParts:u.some((e)=>("question"in e))?u:void 0,images:a,mentions:[],messageTime:c})]})});
|
|
4
|
+
export{hi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{_}from"./chunk-4jh2wk80.js";import{useState as g}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as w,DropdownMenuContent as x,DropdownMenuTrigger as b}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as o}from"react/jsx-runtime";function jo({value:a,currentName:n,icon:r,options:p,label:i,header:t,onValueChange:s,showLabel:d=!1,disabled:l=!1,warning:u=!1}){let[m,c]=g(!1);return o(w,{open:m,onOpenChange:c,children:[e(b,{render:o(f,{disabled:l,"data-permission-warning":u?"":void 0,variant:"ghost","aria-label":`${i}: ${n}`,title:n,className:"text-muted-foreground data-popup-open:hover:bg-muted h-7 gap-1.5 rounded-full bg-transparent px-2 text-xs font-normal whitespace-nowrap data-popup-open:bg-transparent",children:[r,e("span",{className:d?"max-w-40 truncate":"hidden max-w-40 truncate @[40rem]/input-footer:inline-block",children:n})]})}),o(x,{align:"start",sideOffset:4,className:"permission-mode-menu z-100 w-auto max-w-[calc(100vw-2rem)] min-w-72 rounded-xl p-1.5",children:[t&&e("div",{className:"text-muted-foreground flex items-center px-1.5 pt-0.5 pb-1 text-[11px] leading-4",children:e("span",{children:t})}),e(_,{value:a,onValueChange:s,itemClassName:"items-center gap-2 py-1 pr-6 pl-2 whitespace-nowrap",options:p})]})]})}
|
|
2
|
+
export{jo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function
|
|
2
|
-
export{
|
|
1
|
+
import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function j(e){return i(e.options)?e.options.flatMap((t)=>t.options):e.options}function g(e,t){return e.find((n)=>n.category===t&&o(n))}function K(e){return j(e).find((t)=>t.value===e.currentValue)?.name??e.currentValue}
|
|
2
|
+
export{j,g,K};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Co}from"./chunk-aarpb5np.js";import{cn as v}from"cn";import{XIcon as E}from"lucide-react";import{useCallback as p,useEffect as D,useMemo as X,useRef as N,useState as b}from"react";import{Dialog as _,DialogClose as L,DialogContent as j,DialogTitle as A}from"@nyssance/shadcn/vega/components/ui/dialog";import{jsx as i,jsxs as F}from"react/jsx-runtime";function bo({open:l,onOpenChange:y,url:h,filename:M,scale:d,onScaleChange:f,containerRef:z,containerClassName:H,dialogContentClassName:P,imageClassName:T}){let g=p((e)=>Math.min(4,Math.max(0.25,e)),[]),[I,O]=b(1),o=g(d??I),R=N(null),s=z??R,S=N(null),[m,x]=b({width:0,height:0}),[C,W]=b({width:0,height:0}),w=p((e)=>{let n=g(e);if(typeof f==="function"){f(n);return}O(n)},[f,g]);D(()=>{if(!l)return;if(!h)return;if(typeof d==="number")return;O(1)},[l,h,d]),D(()=>{if(!l)return;let e=s.current;if(!e)return;let n=()=>{x({width:e.clientWidth,height:e.clientHeight})};n();let t=new ResizeObserver(n);return t.observe(e),()=>{t.disconnect()}},[s,l]);let Z=p(()=>{w(1)},[w]),r=X(()=>{let{width:e,height:n}=C,{width:t,height:a}=m;if(e===0||n===0)return{width:0,height:0};if(t===0||a===0)return{width:0,height:0};let c=Math.min(t/e,a/n,1),u=e*c,k=n*c;return{width:u*o,height:k*o}},[o,C,m]);if(!h)return null;return i(_,{open:l,onOpenChange:y,children:F(j,{className:v("top-1/2 left-1/2 h-[90vh] max-h-[90vh] w-[90vw]! max-w-[90vw]! -translate-x-1/2 -translate-y-1/2 gap-0 rounded-none bg-transparent p-0 ring-0 sm:w-[90vw]! sm:max-w-[90vw]!",P),showCloseButton:!1,children:[i(A,{className:"sr-only",children:M||"Image preview"}),i(L,{"aria-label":"Close",className:"absolute top-3 right-3 z-10 flex size-10 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur-sm transition-colors hover:bg-black/75",children:i(E,{className:"size-5"})}),i("div",{ref:s,onWheel:(e)=>{if(!e.ctrlKey&&!e.metaKey)return;e.preventDefault();let n=e.deltaY>0?o-0.2:o+0.2,t=g(Number.parseFloat(n.toFixed(2)));if(t===o)return;let a=s.current,c=S.current,u=a&&c?Co({container:a,target:c,clientX:e.clientX,clientY:e.clientY,currentScale:o,nextScale:t}):null;if(w(t),a&&u)requestAnimationFrame(()=>{a.scrollTo(u)})},className:v("h-full w-full scrollbar-thin overflow-auto",H),children:i("div",{className:"grid min-h-full min-w-full place-items-center",style:{width:Math.max(m.width,r.width),height:Math.max(m.height,r.height)},children:i("div",{className:"shrink-0",children:i("img",{alt:M||"image preview",className:v("block object-contain select-none",T),decoding:"async",draggable:!1,ref:S,onDoubleClick:Z,onLoad:(e)=>{let n=e.currentTarget;W({width:n.naturalWidth,height:n.naturalHeight});let t=s.current;if(t&&(t.clientWidth||t.clientHeight))x({width:t.clientWidth,height:t.clientHeight})},style:{imageRendering:"auto",width:r.width||void 0,height:r.height||void 0,maxWidth:r.width?"none":"90vw",maxHeight:r.height?"none":"90vh"},src:h})})})})]})})}
|
|
2
|
+
export{bo};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C,nn}from"./chunk-9ff3htdp.js";import{kt}from"./chunk-07srtfz3.js";import{useEffect as p,useRef as P,useState as u}from"react";var qn="providers:changed",Wn="providers:managed-revoked",i=(e)=>e;function nr(){return{read:()=>i(C.providersRead()),save:(e,r,t)=>i(C.providersSave({providerId:r,input:t,expectedRevision:e})),saveCustom:(e,r)=>i(C.providersSaveCustom({input:r,expectedRevision:e})),removeCustom:(e,r)=>i(C.providersRemoveCustom({providerId:r,expectedRevision:e})),test:(e)=>C.providersTest({providerId:e}),apply:()=>i(C.providersApply()),onChanged:(e)=>nn[qn].listen((r)=>e(r.payload))}}function or(){return{bind:(e)=>C.providersAccountBind({account:e}),refresh:(e,r)=>i(C.providersRefreshManaged({generation:e,accessToken:r})),clear:async()=>{await C.providersClearManaged()},onRevoked:(e)=>nn[Wn].listen((r)=>e(r.payload.sessionIds))}}async function bt(e){try{return await e.apply()}catch(r){if(!kt(r))throw r;return e.read()}}function Ct(e,r=console.error){let[t,d]=u(null),a=P(r);return a.current=r,p(()=>{let n=!0,v=e.onChanged((o)=>{if(n)d((s)=>s&&s.revision>o.revision?s:o)});return v.then(()=>e.read()).then((o)=>{if(n)d((s)=>s&&s.revision>=o.revision?s:o)}).catch((o)=>{if(n)a.current(o)}),()=>{n=!1,v.then((o)=>o())}},[e]),t}
|
|
2
|
+
export{qn,Wn,nr,or,bt,Ct};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useCallback as l,useSyncExternalStore as d}from"react";var
|
|
2
|
-
export{
|
|
1
|
+
import{useCallback as l,useSyncExternalStore as d}from"react";var Be="chat.modelAliases",c={},r="gateway:alwith-managed-litellm:";function o(e){if(e===void 0)return c;if(typeof e!=="object"||e===null||Array.isArray(e)||Object.entries(e).some(([t,n])=>!t.startsWith(r)||t.length===r.length||typeof n!=="string"||!n.trim()||n.length>100))throw Error("Invalid model aliases");return e}function yt(e){let t=l((n)=>e.subscribe((s)=>{if(s.includes(Be))n()}),[e]);return d(t,()=>o(e.get(Be)))}async function xt(e,t,n){if(!t.startsWith(r)||t.length===r.length)throw Error("Invalid ALwith model ID");let s=await e.read(),i={...o(s.values[Be])},a=n.trim();if(a)i[t]=a;else delete i[t];o(i),await e.write({action:"update",expectedRevision:s.revision,changes:{[Be]:i}})}
|
|
2
|
+
export{Be,yt,xt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{ke}from"./chunk-bt01an6h.js";import{createContext as v,useContext as C,useMemo as a}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function Jt({host:o,client:n,children:t}){let s=a(()=>({host:o,client:n}),[o,n]);return r(ke,{host:o,client:n,children:r(i,{value:s,children:t})})}function e(){let o=C(i);if(o===null)throw Error("Conversation host is missing");return o}function f(o,n){n.catch((t)=>{if(o.reportError)o.reportError(t);else console.error(t)})}
|
|
2
|
+
export{Jt,e,f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{xe,c}from"./chunk-k7y6dqf2.js";import{I}from"./chunk-qcj6f1rq.js";import{L}from"./chunk-8hen6y4t.js";import{S}from"./chunk-6zcjn8ra.js";import{$e,Ae,Ke}from"./chunk-9n028hnr.js";import{PreviewCard as h}from"@base-ui/react/preview-card";import{cn as p}from"cn";import{LockIcon as D}from"lucide-react";import{createContext as _,useContext as E,useLayoutEffect as M,useState as T}from"react";import"@alwith/module-chat/session-list.css";import{jsx as e,jsxs as d,Fragment as K}from"react/jsx-runtime";function k(o){if(o.as==="ul"){let{as:i,className:s,...a}=o;return e("ul",{className:p("flex w-full min-w-0 flex-col gap-0.5",s),...a})}let{as:t,className:n,...r}=o;return e("div",{className:p("flex w-full min-w-0 flex-col gap-0.5",n),...r})}function m({className:o,...t}){return e("span",{"data-slot":"navigation-leading",className:p("flex size-6 shrink-0 items-center justify-center [&_.lucide]:size-3.5",o),...t})}function u({active:o,className:t,...n}){return e("button",{type:"button","data-active":o?"":void 0,"aria-current":o?"page":void 0,className:p("group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",t),...n})}function Q({open:o,onOpenChange:t,tooltip:n,leading:r,label:i,count:s,countLabel:a,active:l=!1,actions:C,headerChildren:g,wrapHeader:f,onHeaderClick:b,children:P}){let y=()=>{b?.(),t(!o)},x=p($e,"relative flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-start [corner-shape:superellipse(1.5)]"),R=d(K,{children:[r!=null&&e(m,{children:r}),g??e(I,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(Ke,{content:s!==void 0?e(Ae,{className:p("text-muted-foreground justify-end text-xs opacity-70",a&&"w-auto"),children:e("span",{dir:"ltr",children:a??s})}):void 0,actions:C})})]}),H=g==null?d("div",{"data-active":l?"":void 0,title:n,className:p(x,c),onClick:y,onKeyDown:(v)=>{if(v.target!==v.currentTarget)return;if(v.key!=="Enter"&&v.key!==" ")return;v.preventDefault(),y()},children:[e("button",{type:"button","aria-expanded":o,"aria-label":typeof i==="string"?i:n,className:"focus-visible:outline-ring absolute inset-0 rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]"}),R]}):e("div",{"data-active":l?"":void 0,className:x,children:R});return d("div",{className:"text-[#1a1c1f] dark:text-white",children:[f===void 0?H:f(H),o&&e(k,{className:"mt-0.5",children:P})]})}var G=_(()=>{}),z=_(()=>{});function Et(){return E(z)}function ve(){return E(G)}function ye({active:o=!1,state:t,interruption:n=null,leased:r=!1,media:i,title:s,hoverCard:a,onHoverCardOpenChange:l,subtitle:C,preview:g,listeningPorts:f,onOpenPort:b,accessory:P,meta:y,hint:x,actions:R,className:H,...v}){let O=d("div",{"data-slot":"navigation-session-item","data-active":o,className:p($e,xe,"group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]",(g||f!=null&&f.length>0)&&"h-auto min-h-[var(--navigation-row-height,30px)] py-2.5",H),...v,children:[e(m,{children:t!=null?e(L,{state:t,title:n??void 0}):i}),d("span",{className:"flex min-w-0 flex-1 flex-col",children:[e(I,{className:p("leading-none",t==="done"&&"font-semibold"),children:s}),C!=null&&e(I,{className:"text-muted-foreground text-xs",children:C}),g&&e("span",{className:"text-muted-foreground mt-1.5 line-clamp-2 text-xs leading-[18px] [overflow-wrap:anywhere] break-words",children:g}),f!=null&&f.length>0&&e("span",{className:"text-muted-foreground mt-1.5 flex flex-wrap items-center gap-2 font-mono text-xs",children:f.map((N)=>b?d("button",{type:"button",className:"underline",onPointerDown:(w)=>w.stopPropagation(),onKeyDown:(w)=>w.stopPropagation(),onClick:(w)=>{w.stopPropagation(),b(N)},children:[":",N]},N):d("span",{children:[":",N]},N))})]}),d("span",{className:"relative ms-auto flex shrink-0 items-center gap-1",children:[r&&e(D,{className:"text-muted-foreground size-3"}),e(Ke,{content:P!=null?e(Ae,{children:P}):y??e(Ae,{}),actions:R}),x!=null&&e("span",{className:"pointer-events-none absolute end-1 top-1/2 flex h-5 min-w-5 -translate-y-1/2 items-center justify-center",children:x})]})]});if(a==null)return O;return e(q,{row:O,onOpenChange:l,children:a})}function q({row:o,children:t,onOpenChange:n}){let[r,i]=T(!1),[s,a]=T(!1),l=r||s;return M(()=>(n?.(l),()=>n?.(!1)),[l,n]),e(G.Provider,{value:a,children:e(z.Provider,{value:()=>{i(!1),a(!1)},children:e(j,{open:l,onOpenChange:i,trigger:o,children:t})})})}function j({open:o,onOpenChange:t,trigger:n,children:r,side:i="inline-end",sideOffset:s=2,align:a="start",alignOffset:l}){return S(o),d(h.Root,{open:o,onOpenChange:t,children:[e(h.Trigger,{render:n,delay:700,closeDelay:100}),e(h.Portal,{children:e(h.Positioner,{side:i,sideOffset:s,align:a,alignOffset:l,className:"isolate z-50",children:e(h.Popup,{"data-slot":"codex-hover-card",className:"bg-popover text-popover-foreground ring-foreground/10 m-px flex w-80 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-md text-sm shadow-md ring-1 outline-hidden select-none",children:e("div",{className:"flex w-full min-w-0 flex-col px-0 py-1 break-words whitespace-normal",children:r})})})})]})}
|
|
2
|
+
export{k,m,u,Q,Et,ve,ye};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{terminalOf as u,textOf as p}from"@nyssance/codex-acp-v2/client";function
|
|
2
|
-
export{
|
|
1
|
+
import{terminalOf as u,textOf as p}from"@nyssance/codex-acp-v2/client";function Pn(n){if(n.kind!=="tool")return!1;let t=n._meta?.codex;return typeof t==="object"&&t!==null&&"commandSource"in t&&t.commandSource==="userShell"}function pi(n,t,r){if(n.kind!=="tool"){let o=p(n.content),d=/^\s*\*\*([^\n]*?)\*\*\s*$/.exec(o);return{type:"thinking",id:n.id,thinking:d?d[1]:o,isComplete:!r}}if(n.name==="subagent"){let o=s(n.rawInput,n.id);return{type:"subagent",id:n.id,name:g(o.agentPath,n.id),threadId:f(o.agentThreadId,"agentThreadId",n.id),activity:y(o.activity,n.id),model:l(o.model,"model",n.id),reasoningEffort:l(o.reasoningEffort,"reasoningEffort",n.id),status:n.status??"pending",blocks:[]}}if(n.name==="collab"){let o=s(s(s(n._meta,n.id).codex,n.id).collaboration,n.id);if(typeof o.tool!=="string"||!Array.isArray(o.agents))throw Error(`Collaboration call ${n.id} lacks codex-acp-v2 agent metadata`);return{type:"collab",id:n.id,tool:o.tool,status:n.status??"pending",prompt:l(s(n.rawInput,n.id).prompt,"prompt",n.id),agents:o.agents}}let a=typeof n.rawInput==="object"&&n.rawInput!==null&&!Array.isArray(n.rawInput)?{...n.rawInput}:{},i=u(n,t);if(Array.isArray(a.command))a.command=a.command.map(String).join(" ");if(n.toolKind==="execute"&&n.name!=="mcp"&&n.name!=="dynamic_tool"&&typeof a.command!=="string"){let o=i?.command??n.title;if(o!==null)a.command=o}let e=n.rawOutput;if(typeof e==="object"&&e!==null&&"output"in e&&typeof e.output==="string")e=e.output;if(i!==null&&i.output.length>0)e=i.output;let c=i?.exitStatus?.exitCode;return{type:"tool_use",id:n.id,name:n.name??"",title:n.title??n.name??"",kind:n.toolKind??"other",status:n.status??"pending",content:n.content,locations:n.locations,rawInput:a,rawOutput:e,...Pn(n)?{userShell:!0}:{},...typeof c==="number"?{exitCode:c}:{}}}function s(n,t){if(typeof n!=="object"||n===null||Array.isArray(n))throw Error(`Tool call ${t} is missing an object codex-acp-v2 always sends`);return n}function l(n,t,r){if(n===null||typeof n==="string")return n;throw Error(`Tool call ${r} has a non-string ${t}`)}function g(n,t){let r=typeof n==="string"?n.split("/").findLast(Boolean):void 0;if(r===void 0)throw Error(`Subagent ${t} has no agent path`);return r}function f(n,t,r){if(typeof n==="string")return n;throw Error(`Tool call ${r} has no ${t}`)}function y(n,t){if(n==="started"||n==="interacted"||n==="interrupted"||n==="completed")return n;throw Error(`Subagent ${t} has an unknown activity ${String(n)}`)}
|
|
2
|
+
export{Pn,pi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n,
|
|
2
|
-
export{
|
|
1
|
+
import{n,st}from"./chunk-bt01an6h.js";import{isEmbeddedResource as B,isImage as h,isResourceLink as E}from"@nyssance/codex-acp-v2/client";import{DownloadIcon as T,FileIcon as N,ImageOffIcon as L,LoaderCircleIcon as F}from"lucide-react";import{useState as y}from"react";import{Button as u}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as a,jsxs as o}from"react/jsx-runtime";function Gr(e){let s=e.split(/[\\/]/).at(-1)??e;if(e.startsWith("file:")||/^https?:/.test(e))s=new URL(e).pathname.split("/").at(-1)??"";try{return decodeURIComponent(s)||"attachment"}catch(t){if(t instanceof URIError)return s||"attachment";throw t}}function U(e,s){let t=document.createElement("a");t.href=s,t.download=e,t.click()}function Y({block:e,generated:s=!1}){let t=n(),[p,d]=y(!1),[I,C]=y(null);if(E(e)){if(e.uri==="codex-image:unavailable")return o("span",{className:"text-muted-foreground flex items-center gap-2 rounded-lg border p-3 text-sm",children:[a(L,{className:"size-4"}),t.t("timeline.imageUnavailable")]});let c=Gr(e.uri);return o(u,{variant:"outline",className:"h-auto max-w-full min-w-0 justify-start gap-3 overflow-hidden p-3","aria-label":e.title??e.name,title:e.uri,onClick:()=>t.openLink(e.uri),children:[a(N,{}),o("span",{className:"min-w-0 flex-1 text-start",children:[a("span",{className:"block truncate",children:e.title??e.name}),o("span",{className:"text-muted-foreground block truncate text-xs",children:[(e.title??e.name)!==c&&`${c} · `,e.mimeType??c.split(".").at(-1)?.toUpperCase()]})]})]})}if(!B(e)&&!h(e))return null;let i=h(e)?{uri:e.uri??`image.${e.mimeType.split("/")[1]??"png"}`,mimeType:e.mimeType,blob:e.data}:e.resource,r=Gr(i.uri);if("text"in i)return o("div",{className:"min-w-0",children:[a("pre",{className:"overflow-x-auto whitespace-pre-wrap",children:i.text}),o(u,{variant:"link",size:"sm",className:"max-w-full min-w-0",title:i.uri,onClick:()=>t.openLink(i.uri),children:[a(N,{}),a("span",{className:"truncate",children:r})]})]});let l=`data:${i.mimeType??"application/octet-stream"};base64,${i.blob}`,f=i.mimeType?.toLowerCase().startsWith("image/")&&I!==l,{openImage:g,openImageGallery:w}=t,x=w?()=>w([{src:l,alt:r,uri:i.uri}],0):g&&(()=>g(l)),m=s&&f,R=async()=>{d(!0);try{if(t.saveFile)await t.saveFile(r,i.blob);else U(r,l)}catch(c){st(t,c)}finally{d(!1)}},v=a("img",{src:l,alt:"",className:s?"max-h-[40rem] max-w-full object-contain":"max-h-96 max-w-full rounded object-contain",onError:()=>C(l)});return o("div",{className:m?"codex-generated-image":"flex max-w-full min-w-0 flex-col items-start gap-1",children:[f&&(x===void 0?v:a(u,{variant:"ghost",className:s?"codex-generated-image-preview h-auto max-w-full p-0":"h-auto max-w-full p-0","aria-label":t.t("timeline.viewImage"),onClick:x,children:v})),o(u,{variant:m?"secondary":"link",size:m?"icon":"sm",className:m?"codex-generated-image-download":"max-w-full min-w-0",disabled:p,title:t.t("timeline.download",{name:r}),"aria-label":t.t("timeline.download",{name:r}),onClick:()=>{R()},children:[p?a(F,{className:"motion-safe:animate-spin"}):a(T,{}),!m&&a("span",{className:"truncate",children:r})]})]})}
|
|
2
|
+
export{Gr,Y};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Si}from"./chunk-5azv8vz6.js";import{useCallback as xe,useEffect as P,useLayoutEffect as ye,useMemo as X,useRef as I,useState as E}from"react";import"@alwith/module-chat/navigation-rail.css";import{jsx as T,jsxs as Ne,Fragment as ke}from"react/jsx-runtime";var Se=4,ge=10;function we(h,x){let v=new Map(x.flatMap((c)=>c.itemIds.map((S)=>[S,c.key]))),p=Array(h.length),C;for(let c=h.length-1;c>=0;c--)C=v.get(h[c])??C,p[c]=C;let A=Math.max(-1,...x.map((c)=>c.key))+1,B=new Set,n=[];for(let[c,S]of h.entries()){let w=v.get(S),m=n.at(-1);if(!m||w!==void 0&&w!==m.key||w===void 0&&m.itemIds.length>=64&&p[c]!==m.key){let y=w!==void 0&&!B.has(w)?w:A++;m={key:y,startIndex:c,itemIds:[]},n.push(m),B.add(y)}m.itemIds.push(S)}return n}function fe(h,x){if(h.size!==x.size)return!1;for(let v of h)if(!x.has(v))return!1;return!0}function ki({audio:h,beforeReveal:x,ensureItemMounted:v,items:p,onPreviewItem:C,renderPreview:A,onRevealError:B,scrollRoot:n,targetTopMarginPx:c=16}){let[S,w]=E(()=>{let e=p.at(-1);return new Set(e===void 0?[]:[e.id])}),[m,y]=E(null),[_,O]=E(null),[Z,R]=E(!1),[j,pe]=E(()=>new Set),[ve,be]=E(!0),[Ie,F]=E(null),{installUnlock:ee,preload:te,playSequence:ne}=h,K=I(null),M=I(null),U=I(!1),H=I(null),L=I(0),G=I(null),k=I(null),V=I(new Set),z=X(()=>p.map((e)=>e.id).join("\x00"),[p]),J=I(p);J.current=p;let ie=I(j),re=I(S),se=I({itemIdsKey:z,scrollRoot:n});if(se.current.scrollRoot!==n)L.current+=1,se.current={itemIdsKey:z,scrollRoot:n};let g=X(()=>v===void 0?p.filter((e)=>j.has(e.id)):p,[v,p,j]),ae=X(()=>g.map((e)=>({inputTokens:e.inputTokens,outputTokens:e.outputTokens})),[g]),D=I({ids:"",groups:[]}),oe=g.map((e)=>e.id).join("\x00");if(D.current.ids!==oe)D.current={ids:oe,groups:we(g.map((e)=>e.id),D.current.groups)};P(()=>ee(),[ee]),P(()=>()=>{if(L.current+=1,G.current?.cancel(),k.current!==null)clearTimeout(k.current)},[]),P(()=>{y(null),R(!1),O(null),M.current=null,U.current=!1,H.current=null,F(null),V.current.clear()},[n]),P(()=>{te()},[te]),P(()=>{if(n===null)return;let e=new Set,t=new Map,i=new Set(J.current.map((s)=>s.id)),r=()=>{let s=new Set(t.values()),d=J.current.filter((f)=>s.has(f.id)).map((f)=>f.id),o=d.findIndex((f)=>e.has(f));if(o===-1)return;let b=o;for(let f=o+1;f<d.length;f++)if(e.has(d[f]))b=f;let N=new Set(d.slice(o,b+1));if(fe(re.current,N))return;re.current=N,w(N)},a=new IntersectionObserver((s)=>{for(let d of s){let o=t.get(d.target);if(d.isIntersecting)e.add(o);else e.delete(o)}r()},{root:n,rootMargin:`-${c}px 0px 0px 0px`}),u=()=>{let s=new Set,d=new Set;for(let o of n.querySelectorAll("[data-content-search-unit-key]")){let b=o.dataset.contentSearchUnitKey;if(b===void 0||!i.has(b)||s.has(b))continue;s.add(b);let N=o.closest("[data-turn-key]"),f=N===null||d.has(N)?o:N;if(d.add(f),t.has(f))continue;t.set(f,b),a.observe(f)}for(let o of t.keys()){if(d.has(o))continue;a.unobserve(o),e.delete(t.get(o)),t.delete(o)}if(r(),fe(ie.current,s))return;ie.current=s,pe(s)};u();let l=new MutationObserver((s)=>{if(s.some((o)=>[...o.addedNodes,...o.removedNodes].some((b)=>b instanceof Element&&(b.matches("[data-turn-key], [data-content-search-unit-key]")||b.querySelector("[data-turn-key], [data-content-search-unit-key]")!==null))))u()});return l.observe(n,{childList:!0,subtree:!0}),()=>{l.disconnect(),a.disconnect()}},[z,n,c]);let Y=g.find((e)=>S.has(e.id))?.id??g.at(-1)?.id;ye(()=>{let e=K.current;if(e===null||M.current!==null||Y===void 0)return;let t=e.querySelector(`[data-timeline-user-message-navigation-item-id="${CSS.escape(Y)}"]`);if(t===null)return;let i=e.getBoundingClientRect(),r=t.getBoundingClientRect();if(r.top<i.top)e.scrollTop+=r.top-i.top;else if(r.bottom>i.bottom)e.scrollTop+=r.bottom-i.bottom+1},[Y,z]),P(()=>{let e=n?.querySelector("[data-timeline-user-message-navigation-content]");if(!n||!e)return;let t=()=>{let r=n.getBoundingClientRect(),a=e.getBoundingClientRect();if(r.width===0||a.width===0)return;let u=n.offsetWidth>0?r.width/n.offsetWidth:1;be((a.left-r.left)/u>=48)},i=new ResizeObserver(t);return i.observe(n),i.observe(e),t(),()=>i.disconnect()},[n]);let he=xe(async(e,t="smooth")=>{if(n===null)throw Error("Thread user-message navigation scroll root is missing");let i=L.current+1;L.current=i,x();let r=()=>n.querySelector(`[data-content-search-unit-key="${CSS.escape(e.id)}"]`),a=r(),u=a!==null&&n.clientHeight>0&&a.closest("[data-turn-key]")!==null&&Math.abs(a.getBoundingClientRect().top-n.getBoundingClientRect().top)>n.clientHeight*2;if((a===null||u)&&v!==void 0){if(t==="instant"&&e.isLoaded===!1)return;a=await v(e,()=>L.current===i)??r(),t="instant"}if(L.current!==i)return;if(a===null)return;let l=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;a.scrollIntoView({behavior:l?"instant":t,block:"start"});let s=a.querySelector("[data-user-message-bubble], [data-composer-attachment-pill]");if(G.current?.cancel(),G.current=null,s===null)return;let d=getComputedStyle(s).backgroundColor,o=`color-mix(in srgb, var(--foreground) 14%, ${d})`;G.current=s.animate?.([{backgroundColor:o},{backgroundColor:o,offset:0.35},{backgroundColor:d}],{duration:l?0:1000,easing:"cubic-bezier(0.23, 1, 0.32, 1)"})??null},[x,v,n]);if(g.length<Se||!ve)return null;let Q=()=>{if(k.current!==null)clearTimeout(k.current);k.current=null},ue=(e,t=!1)=>{if(Q(),C===void 0||e.isLoaded!==!1||V.current.has(e.turnKey))return;let i=()=>{k.current=null,V.current.add(e.turnKey),C(e).catch(()=>V.current.delete(e.turnKey))};if(t)i();else k.current=setTimeout(i,150)},q=m===null?null:g.find((e)=>e.id===m.item.id)??g.find((e)=>e.nativeTurnId!==void 0&&e.nativeTurnId===m.item.nativeTurnId)??m.item,le=(e,t="smooth")=>{he(e,t).catch((i)=>{if(B)B(i);else throw i})},de=g.findIndex((e)=>e.id===(_??Ie)),ce=K.current,Te=m===null||!ce?.contains(m.button)?0:Me(ce,m.button),me=(e)=>{let t=e?.closest("[data-timeline-user-message-navigation-item-id]"),i=K.current;if(t===void 0||t===null||!i.contains(t))return null;let r=t.dataset.timelineUserMessageNavigationItemId,a=g.findIndex((u)=>u.id===r);return{button:t,item:g[a],index:a}},W=(e)=>{let t=M.current;if(t?.pointerId!==e.pointerId)return;if(M.current=null,O(null),t.captureTarget.hasPointerCapture(e.pointerId))t.captureTarget.releasePointerCapture(e.pointerId)};return T("nav",{"aria-label":"User messages",className:"timeline-user-message-navigation absolute start-4 top-1/2 z-20 -translate-y-1/2",children:T(Si,{open:Z,onOpenChange:R,side:"inline-end",sideOffset:0,align:"center",alignOffset:Te,trigger:T("div",{ref:K,"data-timeline-user-message-navigation-rail-list":!0,"data-scrubbing":_===null?void 0:"",className:"timeline-user-message-navigation-rail-list",onPointerEnter:()=>{H.current=null},onPointerDown:(e)=>{if(e.button!==0)return;Q();let t=me(e.target instanceof Element?e.target:null);if(t===null)return;U.current=!1,M.current={pointerId:e.pointerId,itemId:t.item.id,itemIndex:t.index,captureTarget:t.button},t.button.setPointerCapture(e.pointerId),O(t.item.id),y(t),R(!0)},onPointerMove:(e)=>{let t=M.current;if(t===null){let l=me(e.target instanceof Element?e.target:null);if(l!==null){F(l.item.id);let s=H.current;if(s!==null&&s!==l.index)ne(s,l.index,ae);H.current=l.index,y((d)=>d?.item.id===l.item.id?d:l),ue(l.item)}return}if(t.pointerId!==e.pointerId)return;if((e.buttons&1)===0){W(e);return}let i=e.currentTarget.getBoundingClientRect(),r=Math.max(0,Math.min(g.length-1,Math.floor((e.clientY-i.top+e.currentTarget.scrollTop)/ge))),u={button:e.currentTarget.querySelectorAll("[data-timeline-user-message-navigation-item-id]")[r],item:g[r],index:r};if(u.item.id===t.itemId)return;ne(t.itemIndex,u.index,ae),H.current=u.index,M.current={...t,itemId:u.item.id,itemIndex:u.index},U.current=!0,O(u.item.id),y(u),le(u.item,"instant")},onPointerUp:W,onPointerCancel:W,onLostPointerCapture:W,onPointerLeave:()=>{if(Q(),F(null),H.current=null,M.current===null&&!Z)y(null)},children:T("div",{className:"flex flex-col",children:D.current.groups.map((e)=>T("div",{className:"flex w-9 shrink-0 flex-col [content-visibility:auto]",style:{height:e.itemIds.length*ge},children:g.slice(e.startIndex,e.startIndex+e.itemIds.length).map((t,i)=>{let r=e.startIndex+i,a=Math.abs(r-de),u=de===-1||a>3?void 0:[1,0.7,0.4,0.2][a];return T("button",{type:"button","data-timeline-user-message-navigation-item-id":t.id,"data-scrub-target":_===t.id?"":void 0,"aria-current":S.has(t.id)?"true":void 0,"aria-label":`Jump to user message ${r+1}`,className:"timeline-user-message-navigation-row",onClick:(l)=>{if(U.current){U.current=!1;return}let s={button:l.currentTarget,item:t,index:r};y(s),R(!0),le(t)},onFocus:(l)=>{ue(t,!0),y({button:l.currentTarget,item:t,index:r}),R(!0)},children:T("span",{className:"flex h-0.5 w-[30px] items-center",children:T("span",{className:"timeline-user-message-navigation-marker",style:u===void 0?void 0:{"--marker-progress":u}})})},t.id)})},e.key))})}),children:q!==null&&T("div",{className:"bg-popover/95 text-popover-foreground ring-border w-80 max-w-[calc(100vw-1rem)] overflow-hidden rounded-xl p-2 text-sm leading-5 shadow-xl ring-[0.5px] backdrop-blur-sm",children:A?A(q):Ne(ke,{children:[T("div",{className:"min-w-0 truncate font-medium",children:q.label}),q.response.length>0&&T("div",{className:"text-muted-foreground mt-1 line-clamp-3",children:q.response})]})})})})}function Me(h,x){let v=h.getBoundingClientRect(),p=x.getBoundingClientRect();return p.top+p.height/2-(v.top+v.height/2)}
|
|
2
|
+
export{ki};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
export{
|
|
1
|
+
function xi(t){if(!t||typeof t!=="object"||!("codex"in t))return null;let o=t.codex;if(!o||typeof o!=="object"||!("questionReply"in o))return null;let n=o.questionReply;if(!n||typeof n!=="object"||!("question"in n)||!("answer"in n))return null;return typeof n.question==="string"&&typeof n.answer==="string"?{question:n.question,answer:n.answer}:null}function bi(t){if(!t||typeof t!=="object"||!("codex"in t))return null;let o=t.codex;if(!o||typeof o!=="object"||!("questionReplyParts"in o))return null;let n=o.questionReplyParts;if(!Array.isArray(n)||n.length===0)return null;let i=n;if(!i.every((e)=>!!e&&typeof e==="object"&&("text"in e)&&typeof e.text==="string"&&(!("question"in e)||e.question===void 0||typeof e.question==="string")))return null;return i.map((e)=>({text:e.text,...e.question===void 0?{}:{question:e.question}}))}
|
|
2
|
+
export{xi,bi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useCallback as f,useEffect as U,useRef as s,useState as X}from"react";var S=24,q=160,z=45,j=()=>{};function
|
|
2
|
-
export{
|
|
1
|
+
import{useCallback as f,useEffect as U,useRef as s,useState as X}from"react";var S=24,q=160,z=45,j=()=>{};function ii(e,Y,u=j){let r=s("following"),[A,b]=X(!0),D=s(Y);D.current=Y;let a=s(null),y=s(0),P=s(0),k=s(0),p=s(0),m=s(0),h=s(0),_=s(!1),g=s(null),o=f(()=>{if(a.current!==null)cancelAnimationFrame(a.current);a.current=null},[]),v=f(()=>{u(),o(),h.current++,g.current=null,m.current=0,r.current="reading",b(!1)},[o,u]),T=f(()=>{if(e===null||r.current!=="following"||a.current!==null)return;if(e.scrollTop>=Math.max(0,e.scrollHeight-e.clientHeight))return;y.current=performance.now(),P.current=e.scrollTop,k.current=0;let l=(c)=>{if(a.current=null,r.current!=="following")return;let i=Math.max(0,e.scrollHeight-e.clientHeight),w=i-e.scrollTop;if(w<=0)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||w<=1)e.scrollTop=i;else{let E=Math.max(0,c-y.current),H=e.scrollTop===P.current?k.current:0,L=e.scrollTop+H+(w-H)*(1-Math.exp(-E/z));e.scrollTop=L,P.current=e.scrollTop,k.current=L-e.scrollTop,a.current=requestAnimationFrame(l)}y.current=c,p.current=e.scrollTop};a.current=requestAnimationFrame(l)},[e]),d=f(()=>{u(),h.current++,g.current=null,m.current=0,r.current="following",b(!0),T()},[u,T]),B=f((l)=>{u(),o();let c=++h.current;return r.current="locating",_.current=l,g.current=null,m.current=0,b(l),{isCurrent:()=>h.current===c,finish:(i)=>{if(h.current!==c||e===null)return;e.scrollTo({top:i,behavior:"instant"}),p.current=e.scrollTop,r.current=l?"following":"reading"}}},[o,u,e]),x=f(()=>{if(h.current++,r.current==="locating")r.current=_.current?"following":"reading"},[]),G=f((l=null)=>{if(e===null)return;let c=g.current;if(c!==null&&e.scrollHeight!==c){if(g.current=null,e.scrollHeight<c&&e.scrollHeight-e.clientHeight-e.scrollTop<=S)d()}if(r.current==="following"&&l!==null)o(),e.scrollTo({top:l,behavior:"instant"}),p.current=e.scrollTop;else T()},[o,e,T,d]);return U(()=>{if(e===null)return;p.current=e.scrollTop,r.current=e.scrollHeight-e.clientHeight-e.scrollTop<=S?"following":"reading",b(r.current==="following");let l=!1,c=!1,i=null,w=e.closest('[data-slot="scroll-area"]'),F=w??e,E=(n)=>{if(g.current=null,(n<0||r.current==="locating")&&e.scrollHeight>e.clientHeight)v();else u();if(m.current=n,r.current==="reading"&&n>0&&e.scrollHeight-e.clientHeight-e.scrollTop<=1)d()},H=()=>{let n=e.scrollTop>p.current;p.current=e.scrollTop;let t=n&&m.current>0;if(m.current=0,l){c=n;return}if(r.current!=="reading"||!t)return;let M=D.current?q:S;if(e.scrollHeight-e.clientHeight-e.scrollTop<=M)d()},L=(n)=>{if(n.ctrlKey||n.deltaY===0)return;let t=n.target instanceof Element?n.target:null;while(t!==null&&t!==e){if(t.scrollHeight>t.clientHeight&&/auto|scroll/.test(getComputedStyle(t).overflowY)){if(n.deltaY<0?t.scrollTop>0:t.scrollTop+t.clientHeight<t.scrollHeight)return}t=t.parentElement}E(Math.sign(n.deltaY))},C=(n)=>{i=n.touches[0].clientY},O=(n)=>{let t=n.touches[0].clientY;if(i!==null&&t!==i)E(Math.sign(i-t));i=t},I=(n)=>{if(n.defaultPrevented||!(n.target instanceof Element))return;if(n.target.closest("input, textarea, select, button, a, [contenteditable='true']"))return;if(["ArrowUp","PageUp","Home"].includes(n.key)||n.key===" "&&n.shiftKey)E(-1);else if(["ArrowDown","PageDown","End"," "].includes(n.key))E(1)},N=(n)=>{let t=n.target instanceof Element?n.target.closest('[data-slot="scroll-area-scrollbar"][data-orientation="vertical"]'):null,M=t!==null&&t.closest('[data-slot="scroll-area"]')===w;if(l=(n.target===e||M)&&n.button===0&&e.scrollHeight>e.clientHeight,c=!1,l)v()},R=()=>{let n=D.current?q:S;if(l&&c&&e.scrollHeight-e.clientHeight-e.scrollTop<=n)d();l=!1},K=()=>{l=!1},W=(n)=>{if(!(n.target instanceof Element)||n.target.closest("[data-codex-disclosure]")===null)return;v(),g.current=e.scrollHeight};return e.addEventListener("scroll",H,{passive:!0}),e.addEventListener("wheel",L,{passive:!0}),e.addEventListener("touchstart",C,{passive:!0}),e.addEventListener("touchmove",O,{passive:!0}),e.addEventListener("keydown",I),F.addEventListener("pointerdown",N,{capture:!0}),window.addEventListener("pointerup",R),window.addEventListener("pointercancel",K),e.addEventListener("click",W,{capture:!0}),()=>{o(),x(),e.removeEventListener("scroll",H),e.removeEventListener("wheel",L),e.removeEventListener("touchstart",C),e.removeEventListener("touchmove",O),e.removeEventListener("keydown",I),F.removeEventListener("pointerdown",N,{capture:!0}),window.removeEventListener("pointerup",R),window.removeEventListener("pointercancel",K),e.removeEventListener("click",W,{capture:!0})}},[e,o,x,u,d,v]),{isFollowing:A,scrollToBottom:d,stopFollowing:v,schedulePin:T,contentResized:G,beginLocate:B,cancelLocation:x}}
|
|
2
|
+
export{ii};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createPortal as n}from"react-dom";import{jsx as t}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{createPortal as n}from"react-dom";import{jsx as t}from"react/jsx-runtime";function yi({src:o,alt:e,onClose:i}){return n(t("button",{type:"button",className:"fixed inset-0 z-[1000] flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.7)"},onClick:i,children:t("img",{src:o,alt:e,style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain",borderRadius:4}})}),document.body)}
|
|
2
|
+
export{yi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{l}from"./chunk-gjg213m6.js";import{D,H,O,U}from"./chunk-qyp7c0j8.js";import{Item as m}from"@nyssance/shadcn/vega/components/ui/item";import{Skeleton as s}from"@nyssance/shadcn/vega/components/ui/skeleton";import{jsx as e,jsxs as a}from"react/jsx-runtime";function ae({skills:o=!1}){let{t}=l();return a("div",{role:"status","aria-label":t(o?"plugins.skills.loading":"plugins.loading"),className:"my-3 flex flex-col gap-4",children:[e(s,{className:"h-4 w-36"}),e(U,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2","aria-hidden":"true",children:[1,2,3,4,5,6,7,8].map((i)=>a(m,{size:"xs",className:"toolbox-row",children:[e(O,{children:e(s,{className:"size-10 rounded-xl"})}),a(H,{className:"min-w-0 group-data-[size=xs]/item:gap-2",children:[e(s,{className:"h-4 w-2/3"}),e(s,{className:"h-3 w-full"}),e(s,{className:"h-3 w-1/3"})]}),e(D,{children:e(s,{className:"size-8 rounded-full"})})]},i))})]})}
|
|
2
|
+
export{ae};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,a,Lt,o,p}from"./chunk-d1pc0mrb.js";import{E}from"./chunk-67x8znmk.js";import{ye}from"./chunk-xhtpqc8p.js";import{me}from"./chunk-h4r8cx37.js";import{je,pe}from"./chunk-gvwmyxwf.js";import{hasRename as F}from"@nyssance/codex-acp-v2/client";import{ArchiveIcon as D,ArchiveRestoreIcon as x,GitForkIcon as A,PencilIcon as H,Trash2Icon as N}from"lucide-react";import{useRef as R,useState as y}from"react";import{jsx as n,jsxs as b,Fragment as C}from"react/jsx-runtime";function rn({sessionRow:e,active:v,onSelect:m,onForked:S=m,onHoverCardOpenChange:c,actions:l}){let i=r(),{t:f,i18n:k}=i,h=a(),d=o((s)=>s.runStates[e.sessionId]),I=Lt(),u=()=>m(e);return n(ye,{"data-session-id":e.sessionId,role:"button",tabIndex:0,active:v,onClick:u,onKeyDown:(s)=>{if(s.key==="Enter"||s.key===" ")s.preventDefault(),u()},state:d?.state,interruption:d?.interruption??null,title:e.title??f("sessionList.untitled"),onHoverCardOpenChange:c,hoverCard:n(B,{sessionRow:e,onDelete:()=>I(e),onForked:S,actions:l}),meta:e.updatedAt!==null?n("span",{className:"text-muted-foreground shrink-0 text-xs",children:je(e.updatedAt,k.language)}):void 0,actions:d!=null?n(me,{title:f("sessionList.stop"),onStop:()=>p(i,h.stopSession(e.sessionId))}):void 0})}function B({sessionRow:e,onDelete:v,onForked:m,actions:S}){let c=r(),{t:l}=c,i=a(),f=o((t)=>F(t.agent)),k=o((t)=>t.connection==="ready"&&t.agent?.capabilities?.session?.fork!=null),[h,d]=y(!1),[I,u]=y(!1),s=R(!1);return n(pe,{sessionRow:e,renaming:h,onRename:(t)=>{if(d(!1),t!==null)p(c,i.renameSession(e.sessionId,t))},actions:b(C,{children:[f&&n(E,{icon:n(H,{}),label:l("sessionList.rename"),onClick:()=>d(!0)}),S,e.archived?n(E,{icon:n(x,{}),label:l("sessionList.unarchive"),onClick:()=>void p(c,i.unarchive(e.sessionId))}):b(C,{children:[n(E,{icon:n(A,{}),label:l("sessionList.fork"),disabled:!k||I,onClick:()=>{if(s.current)return;s.current=!0,u(!0),p(c,i.fork(e.sessionId,e.cwd).then((t)=>{let g=i.state.sessionList.find((L)=>L.sessionId===t);if(!g)throw Error("Forked chat is missing from the session list");m(g)}).finally(()=>{s.current=!1,u(!1)}))}}),n(E,{icon:n(D,{}),label:l("sessionList.archive"),onClick:()=>void p(c,i.archive(e.sessionId))})]}),n(E,{variant:"destructive",icon:n(N,{}),label:l("sessionList.delete"),onClick:v})]})})}
|
|
2
|
+
export{rn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{nt}from"./chunk-a45jg9xv.js";import{pi}from"./chunk-xvzz0xh6.js";import{n}from"./chunk-bt01an6h.js";import{Y}from"./chunk-y2g8d94r.js";import{Mn}from"./chunk-8wdkc41j.js";import{isContentEntry as f,isEmbeddedResource as y,isResourceLink as g}from"@nyssance/codex-acp-v2/client";import{memo as k,useMemo as v}from"react";import{jsx as l,jsxs as u,Fragment as T}from"react/jsx-runtime";function R({item:t}){if(t.name==="view_image"&&t.status==="completed")return null;let r=t.content.filter(f).filter((o)=>y(o.content)||g(o.content));if(r.length===0)return null;return u("fieldset",{className:"mt-1 min-w-0",children:[l("legend",{className:"text-muted-foreground text-xs",children:t.title??t.name}),r.map((o,s)=>l(Y,{block:o.content},`${t.id}:${s}`))]})}var Cn=k(function({sessionId:r,items:o,terminals:s,streamingThoughtId:d}){let p=n(),i=o.every(Mn),c=p.toolBlock,a=v(()=>o.map((e)=>{let m={...pi(e,s,e.kind==="thought"&&e.id===d),id:JSON.stringify([r,i?"history":"live",e.id])};return m.type==="tool_use"&&e.kind==="tool"&&c!==void 0?c(m,e):m}),[r,i,o,s,d,c]);return u(T,{children:[l(nt,{blocks:a,defaultExpanded:!i}),o.map((e)=>e.kind==="tool"&&l(R,{item:e},e.id))]})});
|
|
2
|
+
export{Cn};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,o}from"./chunk-d1pc0mrb.js";import{QUICK_CHATS_GROUP as m,sessionGroup as l}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useMemo as L}from"react";function fr(i){let t=a(),e=o((s)=>s.projectContext),c=i===null?m:e?l(e,{cwd:t.projectPath(i)}).id:null,u=o((s)=>s.sessionList),d=o((s)=>s.connection),r=o((s)=>s.sessionListLoaded),n=o((s)=>s.sessionListError),f=()=>t.listSessions({reset:!0}).catch(()=>{return});return S(()=>{if(d==="ready"&&!r&&n===null)t.listSessions().catch(()=>{return})},[t,d,r,n]),{result:L(()=>{if(r&&e)return{status:"ready",sessionRows:u.filter((s)=>l(e,{...s,cwd:t.projectPath(s.cwd)}).id===c).toSorted((s,p)=>(p.updatedAt??"").localeCompare(s.updatedAt??""))};if(n!==null)return{status:"failed",error:n};return{status:"loading"}},[t,u,r,n,c,e]),retry:f}}
|
|
2
|
+
export{fr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{e}from"./chunk-xecs5c6a.js";import{useState as d}from"react";import{Button as m}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as v,DialogContent as C,DialogDescription as k,DialogFooter as I,DialogHeader as K,DialogTitle as E}from"@nyssance/shadcn/vega/components/ui/dialog";import{Empty as F,EmptyDescription as b,EmptyHeader as T,EmptyTitle as x}from"@nyssance/shadcn/vega/components/ui/empty";import{Field as w,FieldGroup as A,FieldLabel as L}from"@nyssance/shadcn/vega/components/ui/field";import{Input as B}from"@nyssance/shadcn/vega/components/ui/input";import{Spinner as H}from"@nyssance/shadcn/vega/components/ui/spinner";import{jsx as t,jsxs as i}from"react/jsx-runtime";function P(r,a){switch(r.methodId){case"chat-gpt":return a("connection.signIn");case"chat-gpt-device-code":return a("connection.signInDevice");case"api-key":return a("connection.signInApiKey");default:return r.name}}function vt({methods:r,signIn:a}){let{host:g}=e(),{t:o}=g,[p,u]=d(null),[f,l]=d(!1),[c,h]=d(""),y=async(n,s={})=>{u(n);try{await a(n,s)}catch(D){g.reportError?.(D)}finally{u(null)}};return i(F,{children:[i(T,{children:[t(x,{children:o("connection.signIn")}),t(b,{children:o("connection.signInHint")})]}),t("div",{className:"flex flex-wrap justify-center gap-2",children:r.map((n,s)=>i(m,{variant:s===0?"default":"outline",disabled:p!==null,onClick:()=>n.methodId==="api-key"?l(!0):void y(n.methodId),children:[p===n.methodId&&t(H,{"data-icon":"inline-start"}),P(n,o)]},n.methodId))}),t(v,{open:f,onOpenChange:l,children:i(C,{children:[i(K,{children:[t(E,{children:o("connection.apiKeyTitle")}),t(k,{children:o("connection.signInApiKey")})]}),t(A,{children:i(w,{children:[t(L,{htmlFor:"codex-api-key",children:o("connection.apiKeyTitle")}),t(B,{id:"codex-api-key",type:"password",autoComplete:"off",placeholder:o("connection.apiKeyPlaceholder"),value:c,onChange:(n)=>h(n.target.value)})]})}),i(I,{children:[t(m,{variant:"outline",onClick:()=>l(!1),children:o("actions.cancel")}),t(m,{disabled:c.trim().length===0||p!==null,onClick:()=>{l(!1),y("api-key",{"api-key":{apiKey:c.trim()}})},children:o("actions.submit")})]})]})})]})}
|
|
2
|
+
export{vt};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{yn,xn}from"./chunk-6wtrmxev.js";import{P}from"./chunk-be7ja8gh.js";import{tt}from"./chunk-y7v0ghc9.js";import{Pn}from"./chunk-xvzz0xh6.js";import{n}from"./chunk-bt01an6h.js";import{Ai,re,rt,Li}from"./chunk-8wdkc41j.js";import{Cn}from"./chunk-z4nv1j97.js";import{we}from"./chunk-h3hzsg0s.js";import{_n}from"./chunk-8hgrrycr.js";import{si}from"./chunk-c11c29rv.js";import{mi}from"./chunk-hrgtpvkw.js";import{gi}from"./chunk-2bbspcb4.js";import{kn,Sn}from"./chunk-azrmn4x1.js";import{ot}from"./chunk-gha517v4.js";import{codexMessageError as U,codexTurnError as q,isContentEntry as me,isEmbeddedResource as Z,isImage as ee,isResourceLink as de,isText as ce,nativeTurnId as ue}from"@nyssance/codex-acp-v2/client";import{LoaderCircleIcon as ge,SparklesIcon as pe}from"lucide-react";import{Fragment as X,memo as fe,useEffect as ye,useState as he}from"react";import{jsx as i,jsxs as l,Fragment as N}from"react/jsx-runtime";function Y(s){if(ee(s))return`${s.mimeType.toLowerCase()}:${s.data}`;if(Z(s)&&"blob"in s.resource&&s.resource.mimeType?.toLowerCase().startsWith("image/"))return`${s.resource.mimeType.toLowerCase()}:${s.resource.blob}`;return null}function ke({item:s}){let{t}=n(),m=s.status==="in_progress",[o,u]=he(()=>Date.now()-s.at>=1e4);return ye(()=>{if(!m)return;let a=Math.max(0,s.at+1e4-Date.now());if(u(a===0),a===0)return;let y=setTimeout(()=>u(!0),a);return()=>clearTimeout(y)},[s.id,s.at,m]),l("div",{className:"codex-context-compaction",children:[i(pe,{"aria-hidden":"true"}),i("span",{children:s.status==="completed"?t("stream.codex.contextCompacted"):s.status==="cancelled"?t("timeline.interrupted"):t(o?"timeline.compactingWithDelayNotice":"timeline.compacting")})]})}function E({sessionId:s,entry:t,terminals:m,streaming:o,streamingThoughtId:u}){let{t:a}=n();switch(t.kind){case"activity":return i(Cn,{sessionId:s,items:t.items,terminals:m,streamingThoughtId:u});case"text":return P(t.item._meta).length>0?i(_n,{sessionId:s,item:t.item}):i(we,{content:t.item.content,messageId:t.item.id,streaming:o});case"plan":return i(mi,{plan:t.item.plan});case"compaction":if(t.item.status==="failed")return l(kn,{children:[i("div",{children:a("timeline.compactionFailed")}),t.item.error!==null&&i("div",{children:t.item.error})]});return i(ke,{item:t.item})}}function xe({sessionId:s,turn:t,terminals:m,active:o,blocked:u=!1,continued:a=!1,edits:y=t.edits,activityItems:M=t.items,workStartedAt:te=t.startedAt,isLast:F,error:h,interrupted:L,retry:O,retrying:p,extraWork:d=null,answerActions:D,footer:ne}){let{t:c}=n(),A=t.errors.map((e)=>{let r=U(e);if(r===null)throw Error("Turn error item is missing its diagnostics");let v=O?.turnId===ue(e)?O:void 0;return i(Sn,{error:r,retry:v},`${e.id}:${v?.delaySeconds??"manual"}`)});if(F&&h!==null&&!t.errors.some((e)=>{let r=U(e);return r!==null&&r.stopReason===h.stopReason&&q(r).message===q(h).message}))A.push(i(Sn,{error:h},"current-run-error"));let k=A.length>0?i("div",{className:"codex-turn-errors",children:A}):null,b=t.items.filter(Pn);if(d===null&&b.length>0&&b.length===t.items.length)return l(N,{children:[i(Cn,{sessionId:s,items:b,terminals:m,streamingThoughtId:null}),k]});let x=t.work,T=x.length>0&&x.every((e)=>e.kind==="compaction");if(d===null&&(Ai(t)||T&&t.final.length===0))return l(N,{children:[i("div",{role:"status",className:"text-muted-foreground flex min-w-0 flex-col gap-2 py-2 text-sm",children:t.work.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:!1,streamingThoughtId:null},e.key))}),k]});let W=rt(t),B=t.final.filter((e)=>P(e._meta).length===0).map(re).join(`
|
|
2
|
+
`),w=o?null:ot(t,"assistant"),G=t.items.filter((e)=>e.kind==="tool"&&(e.name==="image_generation"||e.name==="alwith_client_generate_image")&&(e.status==="pending"||e.status==="in_progress")),H=new Set(t.final.flatMap((e)=>e.content.map(Y).filter((r)=>r!==null))),C=t.items.flatMap((e)=>{if(!tt(e))return[];return e.content.filter(me).flatMap((r,v)=>{let g=r.content,ae=ee(g),le=de(g)||Z(g)&&"blob"in g.resource;if(!ae&&!le)return[];let S=Y(g);if(S!==null){if(H.has(S))return[];H.add(S)}return[{key:`${e.id}:${v}`,block:g}]})}),K=t.final.some((e)=>P(e._meta).length===0&&e.content.some((r)=>!ce(r)||r.text.trim().length>0)),ie=G.length>0||C.length>0||T||K||t.final.some((e)=>P(e._meta).length>0),I=t.items.findIndex((e)=>t.final.includes(e)),R=(e)=>t.items.indexOf(e.kind==="activity"?e.items[0]:e.item),Q=x.filter((e)=>I===-1||R(e)<I),se=x.filter((e)=>I!==-1&&R(e)>I),oe=[...t.final.map((e)=>({kind:"answer",item:e,index:t.items.indexOf(e)})),...se.map((e)=>({kind:"work",entry:e,index:R(e)}))].toSorted((e,r)=>e.index-r.index),V=!o&&!a&&(B.trim().length>0?i(yn,{text:B,isMostRecentTurn:F,time:w,afterCopy:D}):l("div",{className:"flex items-center gap-0.5",children:[D,w&&i("span",{className:"codex-user-time ms-1",title:w.full,children:w.short})]})),f=gi({...t,items:M},{running:o,blocked:u,retrying:p!==void 0}),j=f.kind==="reasoning"?f.ownerKey??null:null,z=f.kind==="thinking",_=Li({...t,items:M}),J=o&&!K||d?.active===!0;return l(N,{children:[i(xn,{stateKey:JSON.stringify([s,t.replayed?"history":"live",t.key]),active:J,defaultExpanded:J||d?.defaultExpanded===!0||!t.replayed&&(L||W),..._,durationMs:d?.active?void 0:_.durationMs,startedAt:_.startedAt??te,loading:(z||f.kind==="working")&&t.work.length===0&&d===null,loadingLabel:f.kind==="working"?c("stream.codex.working"):void 0,work:[...a||T?[]:Q.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:o,streamingThoughtId:j},e.key)),...d===null?[]:[i(X,{children:d.content},"additional-work")]],answer:ie||a?l("div",{className:"flex min-w-0 flex-col gap-3",children:[(a||T)&&Q.map((e)=>i(E,{sessionId:s,entry:e,terminals:m,streaming:!1,streamingThoughtId:null},e.key)),oe.map((e)=>{if(e.kind==="work")return i(E,{sessionId:s,entry:e.entry,terminals:m,streaming:o,streamingThoughtId:j},e.entry.key);let r=e.item;return l(X,{children:[P(r._meta).length>0?i(_n,{sessionId:s,item:r}):i(we,{content:r.content,messageId:r.id,streaming:o}),r===t.final.at(-1)&&V]},r.id)}),G.map((e)=>l("div",{className:"codex-image-generation",role:"status","aria-label":c(o?"timeline.imageGenerating":"timeline.imageStopped"),"aria-busy":o,children:[i("div",{className:"codex-image-generation-texture","aria-hidden":"true"}),l("span",{className:"codex-image-generation-status",children:[o&&i(ge,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),!o&&c("timeline.imageStopped")]})]},e.id)),C.length>0&&i("div",{className:"codex-reply-artifacts flex min-w-0 flex-col gap-3",children:C.map((e)=>i(we,{content:[e.block],messageId:e.key,streaming:!1},e.key))}),t.final.length===0&&V]}):null,footer:l(N,{children:[z&&t.work.length>0&&i("div",{className:"codex-pending-message py-2",role:"status",children:i("span",{className:"codex-activity-running",children:c("message.thinking")})}),ne,y.length>0&&!o&&!a&&i(si,{items:y}),L&&!W&&i("div",{className:"codex-interrupted-turn",role:"status",children:c("timeline.interrupted")}),!o&&k]})}),o&&p!==void 0&&i("div",{className:"text-muted-foreground py-2 text-sm",role:"status",children:p.capacity?(()=>{let e=/Reconnecting(?:\.\.\.)?\s+(\d+\/\d+)/.exec(p.message)?.[1];return e===void 0?c("timeline.capacityReconnecting"):c("timeline.capacityReconnectingProgress",{progress:e})})():p.message}),o&&k]})}var ri=fe(xe);
|
|
3
|
+
export{ri};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cn}from"./chunk-n9fwnebe.js";import{xo}from"./chunk-hfzt777k.js";import{Qe}from"./chunk-cm5rcd9q.js";import{autoUpdate as ot}from"@floating-ui/dom";import{cn as G}from"cn";import{BookOpenTextIcon as rt,FileIcon as st,StoreIcon as it}from"lucide-react";import{useCallback as lt,useEffect as d,useLayoutEffect as J,useMemo as X,useRef as Y,useState as v}from"react";import{createPortal as ut}from"react-dom";import{Button as Z}from"@nyssance/shadcn/vega/components/ui/button";import{Separator as at}from"@nyssance/shadcn/vega/components/ui/separator";import{jsx as m,jsxs as w,Fragment as ct}from"react/jsx-runtime";function ho({handleRef:l,anchorRef:a,commands:T,searchFiles:u,onMention:_,onSearchError:B,fileSearchDebounceMs:C=0,bashMode:H=!1,forcedOpen:s=!1,onForcedOpenChange:p,emptyLabel:R,fileStatusLabels:E,morePlugins:M}){let A=Qe(),i=A.textInput.value,[j,z]=v(0),[g,D]=v(null),[x,h]=v(0),K=Y(null);d(()=>{let t=l.current?.getTextarea();if(!t)return;let e=()=>z(t.selectionStart??0),n=()=>{if(document.activeElement===t)e()};return t.addEventListener("keyup",e),t.addEventListener("click",e),t.addEventListener("input",e),t.addEventListener("select",e),t.addEventListener("focus",e),document.addEventListener("selectionchange",n),()=>{t.removeEventListener("keyup",e),t.removeEventListener("click",e),t.removeEventListener("input",e),t.removeEventListener("select",e),t.removeEventListener("focus",e),document.removeEventListener("selectionchange",n)}},[l]);let U=X(()=>H&&i.startsWith("!")?null:xo(i,j),[i,j,H]),o=U?.kind==="at"&&!u?null:U,P=`${o?.kind??"forced"}:${o?.query??""}:${s}`,[F,O]=v(P);if(F!==P)O(P),h(0);let L=Y(null);d(()=>{if(!s){L.current=null;return}if(L.current===null)L.current=i;else if(i!==L.current)p?.(!1)},[s,i,p]);let y=o?.kind==="at"?o.query:null;d(()=>{if(y===null||!u){D(null);return}let t=!0,e=()=>{u(y).then((r)=>{if(t)D({query:y,search:u,items:r})},(r)=>{if(t)D({query:y,search:u,items:[]}),B(r)})},n=C>0?window.setTimeout(e,C):null;if(n===null)e();return()=>{if(t=!1,n!==null)window.clearTimeout(n)}},[y,u,C,B]);let f=X(()=>{if(o?.kind==="at")return g?.query===o.query&&g.search===u?g.items:[];if(o)return cn(T,o.query);if(s)return cn(T,"");return[]},[o,s,T,g,u]),[tt,q]=v(!1);d(()=>{let t=l.current?.getTextarea();if(!t)return;let e=()=>q(!0),n=()=>{if(q(!1),s)p?.(!1)};return q(document.activeElement===t),t.addEventListener("focus",e),t.addEventListener("blur",n),()=>{t.removeEventListener("focus",e),t.removeEventListener("blur",n)}},[l,s,p]),d(()=>{if(s)l.current?.getTextarea()?.focus()},[s,l]);let c=tt&&(o!==null?o.kind==="slash"||f.length>0||!!E:s);d(()=>{if(!c)return;K.current?.querySelector(`[data-idx="${x}"]`)?.scrollIntoView({block:"nearest"})},[x,c]);function V(t){let e=l.current?.getTextarea();if(!e)return;let n,r;if(o){let S=o.kind==="slash"?`/${t.payload} `:`@${t.label} `;if(n=i.slice(0,o.start)+S+i.slice(o.end),o.kind==="at")_?.(t.payload);r=o.start+S.length}else if(s)n=`${i.length===0||i.endsWith(`
|
|
2
2
|
`)?i:`${i}
|
|
3
3
|
`}/${t.payload} `,r=n.length,p?.(!1);else return;A.textInput.setInput(n),requestAnimationFrame(()=>{e.focus(),e.setSelectionRange(r,r)})}d(()=>{let t=l.current?.getTextarea();if(!t)return;let e=(n)=>{if(!c)return;if(l.current?.isComposing()||n.isComposing||n.keyCode===229)return;if(n.key==="ArrowDown")n.preventDefault(),n.stopPropagation(),h((r)=>f.length===0?0:Math.min(f.length-1,r+1));else if(n.key==="ArrowUp")n.preventDefault(),n.stopPropagation(),h((r)=>Math.max(0,r-1));else if(n.key==="Enter"||n.key==="Tab"){n.preventDefault(),n.stopPropagation();let r=f[x];if(r)V(r)}else if(n.key==="Escape")if(n.preventDefault(),n.stopPropagation(),o)z(Math.max(0,o.start-1)),t.setSelectionRange(o.start,o.start);else p?.(!1)};return t.addEventListener("keydown",e,!0),()=>t.removeEventListener("keydown",e,!0)});let[b,W]=v(null),[N,et]=v(null),I=lt(()=>{let t=a?.current;if(!t)return;let e=t.getBoundingClientRect();W({left:e.left,width:e.width,bottom:window.innerHeight-e.top+8})},[a]);if(J(()=>{if(!c){W(null);return}I()},[c,I]),J(()=>{let t=a?.current;if(!c||!t||!N)return;return ot(t,N,I,{animationFrame:!0})},[c,N,a,I]),!c||a&&!b)return null;let k=o?o.kind==="slash":s,nt=k?rt:st,Q=m("div",{ref:et,className:a?"fixed z-50":"absolute inset-x-0 bottom-full z-50 mb-2",style:a&&b?{left:b.left,width:b.width,bottom:b.bottom}:void 0,children:w("div",{ref:K,role:"listbox",onMouseDown:(t)=>t.preventDefault(),className:"bg-popover text-popover-foreground ring-foreground/10 pointer-events-auto w-full overflow-hidden rounded-lg p-1 shadow-md ring-1 outline-hidden",children:[w("div",{className:"max-h-72 overflow-y-auto",children:[f.length===0&&k&&m("div",{className:"text-muted-foreground px-2 py-3 text-xs",children:R}),f.length===0&&!k&&E&&m("div",{role:"status",className:"text-muted-foreground px-2 py-3 text-xs",children:g?.query===y&&g.search===u?E.empty:E.loading}),f.map((t,e)=>w(Z,{type:"button",variant:"ghost",role:"option","aria-selected":e===x,"data-idx":e,onMouseDown:(n)=>{n.preventDefault(),V(t)},onMouseEnter:()=>h(e),className:G("flex h-auto w-full items-center justify-start gap-2.5 rounded-md px-2.5 py-2 text-start",e===x&&"bg-muted"),children:[m(nt,{className:G("size-4 shrink-0",k?"text-blue-500":"text-muted-foreground")}),m("span",{className:"text-foreground shrink-0 text-sm font-medium",children:t.label}),t.description&&m("span",{className:"text-muted-foreground min-w-0 flex-1 truncate text-xs",children:t.description})]},t.key))]}),k&&M&&w(ct,{children:[m(at,{}),w(Z,{type:"button",variant:"ghost",onMouseDown:(t)=>{t.preventDefault(),p?.(!1),M.open()},className:"h-auto w-full justify-start px-2.5 py-2",children:[m(it,{"data-icon":"inline-start"}),M.label]})]})]})});return a?ut(Q,document.body):Q}
|
|
4
|
-
export{
|
|
4
|
+
export{ho};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ci,nt}from"../chunk-a45jg9xv.js";import"../chunk-7jx2k96e.js";import"../chunk-57p1s7hy.js";import"../chunk-601kr76a.js";import"../chunk-fkpmrb5t.js";import"../chunk-76a04a6j.js";import"../chunk-teg61ef5.js";export{nt as CodexActivityGroup,ci as CodexWorkSection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{xa,yn,xn}from"../chunk-6wtrmxev.js";import"../chunk-dj8e2ymr.js";import"../chunk-7nb0qea6.js";import"../chunk-a45jg9xv.js";import"../chunk-7jx2k96e.js";import"../chunk-57p1s7hy.js";import"../chunk-601kr76a.js";import"../chunk-fkpmrb5t.js";import"../chunk-76a04a6j.js";import"../chunk-bjfcyfp5.js";import"../chunk-yq55kqn1.js";import"../chunk-teg61ef5.js";export{xa as CodexAssistantMessage,xn as CodexAssistantTurn,yn as CodexMessageActions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{P,En,Hi,Yt,Oi,Ln,Ui}from"../chunk-be7ja8gh.js";export{Ui as AsyncQuestionCard,En as asyncQuestionId,P as asyncQuestions,Hi as initialQuestionDraft,Yt as questionAnswer,Ln as questionReplies,Oi as questionReplyEnvelope};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b}from"../chunk-57p1s7hy.js";export{b as useCodexDisclosureState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ta,li,bn}from"../chunk-7nb0qea6.js";import"../chunk-teg61ef5.js";export{li as CodexEditedFilesCard,bn as EditedFilesCard,ta as fileChanges};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{De,di}from"../chunk-7jx2k96e.js";import"../chunk-57p1s7hy.js";import"../chunk-teg61ef5.js";export{di as ImageViewActivity,De as isImageView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{it}from"../chunk-gyps0vc5.js";import"../chunk-9hskky1n.js";import"../chunk-6wv99fdt.js";import"../chunk-nk266xxm.js";export{it as CodexMarkdownRenderer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_i,wa,Pi,Ti,ka,zr,ia,Vr,Sa,ra,aa,_a,Pa}from"../chunk-ezhzktjg.js";export{wa as armTimelineUserMessageNavigationAudio,ia as automaticNavigationMidiNote,_a as getNavigationAudioContextState,Pa as getNavigationInstrumentReady,Pi as installTimelineUserMessageNavigationAudioUnlock,ra as itemPianoKeyIndex,zr as navigationMidiNote,aa as navigationPianoKeyIndexes,Sa as pianoKeyFrequency,Vr as pianoKeyMidiNote,ka as playTimelineUserMessageNavigationNote,Ti as playTimelineUserMessageNavigationSequence,_i as preloadTimelineUserMessageNavigationInstrument};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Si}from"../chunk-5azv8vz6.js";export{Si as NavigationPreview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ki}from"../chunk-yd6ae6py.js";import"../chunk-5azv8vz6.js";export{ki as TimelineUserMessageNavigationRail};
|
package/dist/codex/patch-view.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Zo,Je}from"../chunk-4xp0q7vs.js";export{Je as PatchView,Zo as patchStats};
|
package/dist/codex/plan.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ie}from"../chunk-76a04a6j.js";export{ie as CodexPlan};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ya,Xo,Fe,vn,Jo,ei,ti}from"../chunk-9yrctk84.js";export{ya as CODEX_UNKNOWN_TURN_HEIGHT,Fe as calculateCodexThreadVirtualRange,ei as calculateCodexTurnCenterDistanceFromBottom,ti as calculateCodexTurnTargetDistanceFromBottom,Xo as createCodexThreadVirtualLayout,Jo as preserveCodexThreadDistanceFromBottom,vn as preserveCodexThreadRenderedWindow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{fi}from"../chunk-mmm1rq2a.js";export{fi as selectTurnActivity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Tn,vi}from"../chunk-bjfcyfp5.js";import"../chunk-yq55kqn1.js";export{vi as CodexUserMessage,Tn as CopyAction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Yo}from"../chunk-9w4fg6bn.js";import"../chunk-9yrctk84.js";export{Yo as VirtualizedTurnList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ve}from"../chunk-v5wqxqrh.js";import"../chunk-6hxa1n8n.js";import"../chunk-d1pc0mrb.js";import"../chunk-6zcjn8ra.js";export{Ve as CollectionEmoji};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Xn,lr}from"../chunk-r1sdshyw.js";import"../chunk-6hxa1n8n.js";import"../chunk-maa70rv4.js";import"../chunk-c2a0x69n.js";import"../chunk-67x8znmk.js";import"../chunk-xhtpqc8p.js";import"../chunk-qcj6f1rq.js";import"../chunk-d1pc0mrb.js";import"../chunk-6zcjn8ra.js";import"../chunk-9n028hnr.js";import"../chunk-8hen6y4t.js";import"../chunk-k7y6dqf2.js";export{lr as AddToCollectionAction,Xn as CollectionPicker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{sr}from"../chunk-e8jfja20.js";import"../chunk-v5wqxqrh.js";import"../chunk-6hxa1n8n.js";import"../chunk-maa70rv4.js";import"../chunk-c2a0x69n.js";import"../chunk-xhtpqc8p.js";import"../chunk-qcj6f1rq.js";import"../chunk-d1pc0mrb.js";import"../chunk-6zcjn8ra.js";import"../chunk-9n028hnr.js";import"../chunk-8hen6y4t.js";import"../chunk-k7y6dqf2.js";export{sr as CollectionPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-
|
|
1
|
+
import"../chunk-67x8znmk.js";import"../chunk-k7y6dqf2.js";import"../chunk-qcj6f1rq.js";import"../chunk-8hen6y4t.js";import"../chunk-6zcjn8ra.js";import"../chunk-9n028hnr.js";import"../chunk-xhtpqc8p.js";import"../chunk-d1pc0mrb.js";import{cr,w,Jn,ee}from"../chunk-6hxa1n8n.js";import{A,W,Ne,It,pr}from"../chunk-c2a0x69n.js";import{to,dr,ur,on,ue,te}from"../chunk-maa70rv4.js";import{Xn,lr}from"../chunk-r1sdshyw.js";import{Ve}from"../chunk-v5wqxqrh.js";import{sr}from"../chunk-e8jfja20.js";export{lr as AddToCollectionAction,Ve as CollectionEmoji,cr as CollectionHostProvider,sr as CollectionPanel,Xn as CollectionPicker,ur as CollectionProvider,A as DEFAULT_COLLECTION_ID,It as applyCollectionAction,dr as createCollectionStore,W as getCollectionName,Ne as initialCollectionData,pr as migrateCollections,to as parsePersistedCollections,Jn as reportCollection,w as useCollectionHost,ue as useCollectionStore,on as useCollectionStoreApi,te as useDispatchCollection,ee as useReportCollection};
|
package/dist/collections/host.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cr,w,Jn,ee,eo}from"../chunk-6hxa1n8n.js";import"../chunk-d1pc0mrb.js";import"../chunk-6zcjn8ra.js";export{cr as CollectionHostProvider,eo as detectMac,Jn as reportCollection,w as useCollectionHost,ee as useReportCollection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{y}from"../chunk-1341xyde.js";export{y as collectionLocales};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{A,W,Ne,It,pr}from"../chunk-c2a0x69n.js";export{A as DEFAULT_COLLECTION_ID,It as applyCollectionAction,W as getCollectionName,Ne as initialCollectionData,pr as migrateCollections};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{to,dr,ur,on,ue,te}from"../chunk-maa70rv4.js";import"../chunk-c2a0x69n.js";export{ur as CollectionProvider,dr as createCollectionStore,to as parsePersistedCollections,ue as useCollectionStore,on as useCollectionStoreApi,te as useDispatchCollection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cn,ca}from"../chunk-n9fwnebe.js";import"../chunk-6d5c94rn.js";export{ca as filterFiles,cn as filterSlashCommands};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ho}from"../chunk-zn9xn0pj.js";import"../chunk-n9fwnebe.js";import"../chunk-hfzt777k.js";import"../chunk-6d5c94rn.js";import"../chunk-cm5rcd9q.js";export{ho as CompletionMenu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{xo}from"../chunk-hfzt777k.js";export{xo as detectTrigger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{un}from"../chunk-m33eg346.js";export{un as EffortSlider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_}from"../chunk-4jh2wk80.js";export{_ as MenuRadioSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Po}from"../chunk-n6dbc0md.js";import"../chunk-m33eg346.js";import"../chunk-4jh2wk80.js";export{Po as ModelSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jo}from"../chunk-vwzkw97t.js";import"../chunk-4jh2wk80.js";export{jo as PermissionModeSelect};
|