@alwith/module-chat 0.5.18 → 0.5.20
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/README.md +240 -1
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/assets/catalogs/alwith/models.json +72 -0
- package/assets/catalogs/custom/models.json +604 -0
- package/assets/catalogs/custom/sources.json +168 -0
- package/assets/catalogs/deepseek/models.json +139 -0
- package/assets/catalogs/openrouter/models.json +231 -0
- package/assets/catalogs/qwen/models.json +253 -0
- package/assets/catalogs/xai/models.json +129 -0
- package/assets/provider-catalog.json +127 -0
- 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-0643swd4.js +2 -0
- package/dist/chunk-06zh85wp.js +3 -0
- package/dist/chunk-0p6y2t9b.js +2 -0
- package/dist/{chunk-fexvhys2.js → chunk-0wa9yjg3.js} +2 -2
- package/dist/chunk-0whxm2f0.js +2 -0
- package/dist/chunk-11484wvv.js +2 -0
- package/dist/{chunk-s55n9cby.js → chunk-1fggcrvs.js} +2 -2
- package/dist/chunk-1k21j77z.js +2 -0
- package/dist/chunk-1k697ncv.js +2 -0
- package/dist/chunk-1mn2t6ga.js +2 -0
- package/dist/{chunk-kzq1797a.js → chunk-1qyxrh0n.js} +3 -3
- package/dist/chunk-1r25anvg.js +2 -0
- package/dist/chunk-1rg3nab3.js +2 -0
- package/dist/chunk-20k9syde.js +1 -0
- package/dist/chunk-28f3zv6v.js +2 -0
- package/dist/{chunk-djmnmbm2.js → chunk-2f9vjmxz.js} +2 -2
- package/dist/chunk-2t9j90mw.js +2 -0
- package/dist/{chunk-qp7aywgn.js → chunk-36m8zstj.js} +2 -2
- package/dist/chunk-3gk86w24.js +2 -0
- package/dist/chunk-3ka3bt0t.js +2 -0
- package/dist/{chunk-65m4bm74.js → chunk-3s94ekrs.js} +2 -2
- package/dist/chunk-3vsc49pt.js +2 -0
- package/dist/{chunk-mzh48e09.js → chunk-3yxjh7b1.js} +2 -2
- package/dist/{chunk-2pj3pcc7.js → chunk-42atrgm1.js} +2 -2
- package/dist/{chunk-as1cvbzm.js → chunk-48fj5m0p.js} +2 -2
- package/dist/chunk-4bb6dzzs.js +2 -0
- package/dist/chunk-4d853988.js +2 -0
- package/dist/chunk-4gyd9hx9.js +2 -0
- package/dist/chunk-4p6svs37.js +2 -0
- package/dist/chunk-4ygyb91q.js +2 -0
- package/dist/chunk-581e33tz.js +2 -0
- package/dist/{chunk-hfaarm10.js → chunk-5a6xc345.js} +2 -2
- package/dist/chunk-5ap6fvrp.js +2 -0
- package/dist/chunk-5m7vc4s6.js +2 -0
- package/dist/chunk-615a0yhh.js +2 -0
- package/dist/chunk-62jm1gct.js +2 -0
- package/dist/{chunk-ykp85wc1.js → chunk-667z0pac.js} +2 -2
- package/dist/chunk-6syhjege.js +2 -0
- package/dist/{chunk-m9en74e3.js → chunk-6t5war9h.js} +2 -2
- package/dist/chunk-7z4gtfkd.js +2 -0
- package/dist/{chunk-4z4tec0p.js → chunk-855w49k0.js} +2 -2
- package/dist/chunk-8akwfgkq.js +2 -0
- package/dist/chunk-8c8ncw1m.js +2 -0
- package/dist/chunk-8mgypdap.js +2 -0
- package/dist/chunk-95mynf7q.js +1289 -0
- package/dist/{chunk-01denvg2.js → chunk-9jp5t3qq.js} +5 -5
- package/dist/chunk-9mky3b7v.js +2 -0
- package/dist/chunk-a63k8tht.js +2 -0
- package/dist/chunk-acb8t4jt.js +2 -0
- package/dist/chunk-adk7aeyt.js +2 -0
- package/dist/{chunk-rvr6zj7p.js → chunk-agqnt7xq.js} +2 -2
- package/dist/chunk-annzfgfq.js +4 -0
- package/dist/{chunk-qz8gpb9j.js → chunk-azfmr99x.js} +2 -2
- package/dist/chunk-b12v22de.js +2 -0
- package/dist/{chunk-w390ewja.js → chunk-b18zr059.js} +2 -2
- package/dist/chunk-bbyscgdd.js +2 -0
- package/dist/chunk-bfhfbrzt.js +2 -0
- package/dist/{chunk-5x4an3fb.js → chunk-bg03czcx.js} +2 -2
- package/dist/chunk-bvgqsaey.js +2 -0
- package/dist/chunk-c32z3wjq.js +2 -0
- package/dist/chunk-ckyat78p.js +2 -0
- package/dist/chunk-cvz3k5gk.js +2 -0
- package/dist/chunk-d0vhdr07.js +2 -0
- package/dist/chunk-d257n8gj.js +2 -0
- package/dist/chunk-dfgak1md.js +2 -0
- package/dist/{chunk-d7gjvz8z.js → chunk-drhzcs6e.js} +2 -2
- package/dist/{chunk-2qhbm5y9.js → chunk-dte0n4kf.js} +2 -2
- package/dist/chunk-erjscd1r.js +4 -0
- package/dist/chunk-f1x483c9.js +2 -0
- package/dist/chunk-f2w2sct6.js +2 -0
- package/dist/{chunk-6nnwmqqp.js → chunk-f5gsffbv.js} +2 -2
- package/dist/chunk-feg5rp9g.js +2 -0
- package/dist/chunk-ffspd86m.js +2 -0
- package/dist/chunk-fh3pjhe6.js +2 -0
- package/dist/chunk-fnpf84rf.js +4 -0
- package/dist/chunk-g2qcyqc6.js +2 -0
- package/dist/chunk-g44hhdha.js +2 -0
- package/dist/chunk-g9t2d8hg.js +2 -0
- package/dist/chunk-g9yg36dh.js +3 -0
- package/dist/{chunk-m4dgha79.js → chunk-gha517v4.js} +2 -2
- package/dist/chunk-grr1k5zn.js +2 -0
- package/dist/{chunk-4zzhckab.js → chunk-gsfgdnfp.js} +2 -2
- package/dist/chunk-h491shsg.js +2 -0
- package/dist/chunk-ha46rhzj.js +2 -0
- package/dist/{chunk-39sbgvd3.js → chunk-hd7bk591.js} +2 -2
- package/dist/chunk-heyqzkxq.js +2 -0
- package/dist/chunk-hp4a0e8c.js +2 -0
- package/dist/chunk-j69t1f4a.js +2 -0
- package/dist/chunk-j8v3sfpv.js +2 -0
- package/dist/{chunk-1wpdb17m.js → chunk-jgd6dcgy.js} +2 -2
- package/dist/chunk-jmb8r6aj.js +2 -0
- package/dist/chunk-jwt7q6yx.js +4 -0
- package/dist/chunk-jxntqarp.js +2 -0
- package/dist/chunk-k64wvbbc.js +2 -0
- package/dist/{chunk-n56csv51.js → chunk-k7ye738q.js} +2 -2
- package/dist/chunk-kbeme4w0.js +3 -0
- package/dist/{chunk-wrkwz65x.js → chunk-kc56dhwd.js} +2 -2
- package/dist/{chunk-2g8targj.js → chunk-kmdag4vy.js} +2 -2
- package/dist/chunk-kq48hbd5.js +2 -0
- package/dist/chunk-ktvh4yb5.js +2 -0
- package/dist/chunk-kz1kjzmq.js +2 -0
- package/dist/chunk-m271yxxm.js +2 -0
- package/dist/chunk-mj7094yh.js +2 -0
- package/dist/chunk-mr6k70s4.js +2 -0
- package/dist/chunk-mv51zgj1.js +2 -0
- package/dist/{chunk-dnsmr5nf.js → chunk-mvs2dzyt.js} +2 -2
- package/dist/chunk-mz8a6292.js +2 -0
- package/dist/chunk-n5v1h0sk.js +2 -0
- package/dist/{chunk-w38vbf7h.js → chunk-n66yy1m1.js} +2 -2
- package/dist/chunk-n9gq2wbz.js +3 -0
- package/dist/chunk-nxyrrmz8.js +2 -0
- package/dist/chunk-p7dd93e5.js +2 -0
- package/dist/chunk-p8g927x6.js +2 -0
- package/dist/chunk-pk2rvqd0.js +2 -0
- package/dist/{chunk-c2bkhrcc.js → chunk-pprt7ntb.js} +4 -4
- package/dist/{chunk-kv0tnq8g.js → chunk-pwjz3yxb.js} +2 -2
- package/dist/{chunk-yy4tw3nj.js → chunk-px1ehzwc.js} +2 -2
- package/dist/chunk-pzjag1mt.js +4 -0
- package/dist/chunk-q2gfd4jk.js +2 -0
- package/dist/{chunk-jp73gpbp.js → chunk-q9ef9n7b.js} +2 -2
- package/dist/chunk-q9zawfn1.js +2 -0
- package/dist/chunk-qd1z91fm.js +2 -0
- package/dist/chunk-qdg5zphd.js +2 -0
- package/dist/chunk-qn6ppn0r.js +2 -0
- package/dist/{chunk-ahtyazfy.js → chunk-qwfw4xpn.js} +2 -2
- package/dist/chunk-r7s7kx38.js +3 -0
- package/dist/chunk-r9sweaq4.js +2 -0
- package/dist/{chunk-cazdmcwd.js → chunk-rbv1scqm.js} +2 -2
- package/dist/{chunk-fydcbjsx.js → chunk-rjkpe1fw.js} +3 -3
- package/dist/{chunk-yh9qdb2k.js → chunk-rjw63t34.js} +3 -3
- package/dist/chunk-rkfq0c0p.js +2 -0
- package/dist/chunk-rq5e0922.js +2 -0
- package/dist/chunk-s4wjckd1.js +7 -0
- package/dist/chunk-s8s65pj2.js +2 -0
- package/dist/chunk-ssxbxanb.js +2 -0
- package/dist/{chunk-d5w1nvrz.js → chunk-swpy2b9a.js} +2 -2
- package/dist/{chunk-2r3sfmyf.js → chunk-t7drk9ja.js} +2 -2
- package/dist/chunk-tpbqg729.js +2 -0
- package/dist/chunk-ttn8ss6b.js +2 -0
- package/dist/chunk-tv0fwt2g.js +2 -0
- package/dist/chunk-v5pbaf9x.js +2 -0
- package/dist/chunk-vbab9hc4.js +2 -0
- package/dist/{chunk-nxk65z2e.js → chunk-vfhxerxt.js} +2 -2
- package/dist/chunk-vnsgjnp3.js +2 -0
- package/dist/{chunk-0mze2qnw.js → chunk-vt6cyes7.js} +2 -2
- package/dist/chunk-vzgv360q.js +2 -0
- package/dist/{chunk-01dqjas2.js → chunk-wccx911q.js} +2 -2
- package/dist/{chunk-rf9yxbes.js → chunk-wgrmjfyp.js} +2 -2
- package/dist/chunk-wvry7t79.js +2 -0
- package/dist/chunk-x2nemdjf.js +2 -0
- package/dist/{chunk-7g79m27w.js → chunk-x99fyd88.js} +2 -2
- package/dist/chunk-xdm2are3.js +2 -0
- package/dist/chunk-xft0s40a.js +3 -0
- package/dist/chunk-y0q6jwq4.js +2 -0
- package/dist/chunk-y6kzbbya.js +2 -0
- package/dist/{chunk-2swp3nfs.js → chunk-y97ne5kj.js} +2 -2
- package/dist/chunk-yakar0e2.js +2 -0
- package/dist/chunk-yg3xhn5m.js +2 -0
- package/dist/{chunk-txn8v2yc.js → chunk-z3nybrbb.js} +2 -2
- 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/styles.css +2 -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.d.ts +4 -0
- package/dist/collections/collection-emoji.js +1 -0
- package/dist/collections/collection-menu.d.ts +15 -0
- package/dist/collections/collection-menu.js +1 -0
- package/dist/collections/collection-panel.d.ts +11 -0
- package/dist/collections/collection-panel.js +1 -0
- package/dist/collections/collections.d.ts +6 -0
- package/dist/collections/collections.js +1 -0
- package/dist/collections/host.d.ts +19 -0
- package/dist/collections/host.js +1 -0
- package/dist/collections/locales.d.ts +71 -0
- package/dist/collections/locales.js +1 -0
- package/dist/collections/model.d.ts +95 -0
- package/dist/collections/model.js +1 -0
- package/dist/collections/store.d.ts +30 -0
- package/dist/collections/store.js +1 -0
- 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.d.ts +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.d.ts +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.d.ts +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.d.ts +8 -0
- package/dist/conversation/connection-notice.js +1 -0
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-search.d.ts +8 -0
- package/dist/conversation/conversation-search.js +1 -0
- package/dist/conversation/conversation-view.d.ts +1 -0
- package/dist/conversation/conversation-view.js +1 -1
- package/dist/conversation/conversation.d.ts +3 -0
- package/dist/conversation/conversation.js +1 -1
- package/dist/conversation/diff-modal.js +1 -1
- package/dist/conversation/draft-project-picker.d.ts +7 -0
- package/dist/conversation/draft-project-picker.js +1 -0
- package/dist/conversation/session-actions.js +1 -1
- package/dist/conversation/subagent-sessions.js +1 -1
- package/dist/conversation/types.d.ts +6 -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.d.ts +1914 -0
- package/dist/locales.js +1 -1
- package/dist/plugins/catalog-header.d.ts +6 -0
- package/dist/plugins/catalog-header.js +1 -0
- package/dist/plugins/catalog-skeleton.d.ts +3 -0
- package/dist/plugins/catalog-skeleton.js +1 -0
- package/dist/plugins/host.d.ts +49 -0
- package/dist/plugins/host.js +1 -0
- package/dist/plugins/locales.d.ts +1136 -0
- package/dist/plugins/locales.js +1 -0
- package/dist/plugins/new-chat-directory.d.ts +2 -0
- package/dist/plugins/new-chat-directory.js +1 -0
- package/dist/plugins/pane.d.ts +12 -0
- package/dist/plugins/pane.js +1 -0
- package/dist/plugins/panel-item.d.ts +8 -0
- package/dist/plugins/panel-item.js +1 -0
- package/dist/plugins/plugin-detail-page.d.ts +5 -0
- package/dist/plugins/plugin-detail-page.js +1 -0
- package/dist/plugins/plugin-icon.d.ts +7 -0
- package/dist/plugins/plugin-icon.js +1 -0
- package/dist/plugins/plugin-icons.d.ts +1 -0
- package/dist/plugins/plugin-icons.js +1 -0
- package/dist/plugins/plugins-page.d.ts +12 -0
- package/dist/plugins/plugins-page.js +1 -0
- package/dist/plugins/plugins.css +199 -0
- package/dist/plugins/plugins.d.ts +14 -0
- package/dist/plugins/plugins.js +1 -0
- package/dist/plugins/read-skill-document.d.ts +2 -0
- package/dist/plugins/read-skill-document.js +1 -0
- package/dist/plugins/skill-document.d.ts +7 -0
- package/dist/plugins/skill-document.js +1 -0
- package/dist/plugins/skills-tab.d.ts +6 -0
- package/dist/plugins/skills-tab.js +1 -0
- package/dist/plugins/store.d.ts +62 -0
- package/dist/plugins/store.js +1 -0
- package/dist/plugins/toolbox-layout.d.ts +7 -0
- package/dist/plugins/toolbox-layout.js +1 -0
- package/dist/search/chat-search.css +9 -0
- package/dist/search/chat-search.d.ts +1 -0
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.d.ts +4 -0
- package/dist/search/codex-source-matches.js +1 -0
- 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.d.ts +26 -0
- package/dist/session-list/account-menu.js +1 -0
- package/dist/session-list/activity-list.d.ts +11 -0
- package/dist/session-list/activity-list.js +1 -0
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.d.ts +5 -0
- package/dist/session-list/help-menu.js +1 -0
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.d.ts +2 -0
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/locales.d.ts +91 -0
- package/dist/session-list/locales.js +1 -1
- package/dist/session-list/navigation-header.d.ts +14 -0
- package/dist/session-list/navigation-header.js +1 -0
- package/dist/session-list/navigation-store.d.ts +19 -0
- package/dist/session-list/navigation-store.js +1 -0
- package/dist/session-list/navigation-tabs.d.ts +20 -0
- package/dist/session-list/navigation-tabs.js +1 -0
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/overflow-marquee.js +1 -1
- package/dist/session-list/platform.d.ts +2 -0
- package/dist/session-list/platform.js +1 -0
- 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.d.ts +10 -0
- 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.d.ts +14 -0
- package/dist/session-list/shortcut-hint.js +1 -0
- package/dist/session-list/shortcut.d.ts +2 -0
- package/dist/session-list/shortcut.js +1 -0
- 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.d.ts +1 -0
- package/dist/session-list/use-activity-notification.js +1 -0
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-cmd-held.d.ts +1 -0
- package/dist/session-list/use-cmd-held.js +1 -0
- 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.d.ts +18 -0
- package/dist/settings/codex-account-card.js +1 -0
- package/dist/settings/login-card.d.ts +6 -0
- package/dist/settings/login-card.js +1 -0
- package/dist/settings/model-alias-settings.d.ts +6 -0
- package/dist/settings/model-alias-settings.js +1 -0
- package/dist/settings/model-aliases.d.ts +17 -0
- package/dist/settings/model-aliases.js +1 -0
- package/dist/settings/provider-logos.d.ts +5 -0
- package/dist/settings/provider-logos.js +1 -0
- package/dist/settings/provider-section.d.ts +52 -0
- package/dist/settings/provider-section.js +1 -0
- package/dist/settings/providers-port.d.ts +32 -0
- package/dist/settings/providers-port.js +1 -0
- package/dist/settings/providers.d.ts +92 -0
- package/dist/settings/providers.js +1 -0
- package/dist/settings/settings-bridge.d.ts +39 -0
- package/dist/settings/settings-bridge.js +1 -0
- package/dist/settings/settings.d.ts +9 -0
- package/dist/settings/settings.js +1 -0
- package/dist/stage.d.ts +1 -0
- package/dist/stage.js +1 -1
- package/emojibase/LICENSE +21 -0
- package/emojibase/en/data.json +51183 -0
- package/emojibase/en/messages.json +124 -0
- package/emojibase/zh/data.json +48992 -0
- package/emojibase/zh/messages.json +124 -0
- package/licenses/_dnd-kit_core-LICENSE +21 -0
- package/licenses/_dnd-kit_sortable-LICENSE +21 -0
- package/licenses/_dnd-kit_utilities-LICENSE +21 -0
- package/licenses/_solar-icons_react-LICENSE +11 -0
- package/licenses/_solar-icons_react-LICENSE-THIRD-PARTY +14 -0
- package/licenses/frimousse-LICENSE +21 -0
- package/package.json +41 -7
- package/rust/Cargo.lock +3844 -0
- package/rust/Cargo.toml +29 -0
- package/rust/build.rs +16 -0
- package/rust/permissions/autogenerated/reference.md +296 -0
- package/rust/permissions/default.toml +20 -0
- package/rust/permissions/schemas/schema.json +292 -0
- package/rust/src/lib.rs +79 -0
- package/rust/src/providers/managed.rs +801 -0
- package/rust/src/providers/tests.rs +681 -0
- package/rust/src/providers.rs +984 -0
- package/rust/src/skills.rs +130 -0
- package/dist/chunk-074x98ak.js +0 -2
- package/dist/chunk-0c8fy456.js +0 -4
- package/dist/chunk-0dnwqm94.js +0 -2
- package/dist/chunk-0nkvfecf.js +0 -1
- package/dist/chunk-0ss92kxr.js +0 -2
- package/dist/chunk-12fcr66z.js +0 -2
- package/dist/chunk-14r2ktqe.js +0 -3
- package/dist/chunk-180zvfd6.js +0 -2
- package/dist/chunk-1fm5vx1n.js +0 -1
- package/dist/chunk-2a3tezgr.js +0 -1
- package/dist/chunk-2rperg04.js +0 -1
- package/dist/chunk-3919sqde.js +0 -2
- package/dist/chunk-3dckftt6.js +0 -2
- package/dist/chunk-3k5n3809.js +0 -2
- package/dist/chunk-3z6rx5qv.js +0 -4
- package/dist/chunk-4s1rhts0.js +0 -1
- package/dist/chunk-58wt406v.js +0 -1
- package/dist/chunk-59g9h4v1.js +0 -2
- package/dist/chunk-59j0p8hy.js +0 -2
- package/dist/chunk-6s7z09b0.js +0 -2
- package/dist/chunk-6t3tgzps.js +0 -2
- package/dist/chunk-6wqbetcx.js +0 -1
- package/dist/chunk-75zcgcqm.js +0 -2
- package/dist/chunk-7ap638hx.js +0 -2
- package/dist/chunk-7jdjdnh6.js +0 -2
- package/dist/chunk-7wyrcphh.js +0 -1
- package/dist/chunk-83sz9mv9.js +0 -3
- package/dist/chunk-88cfz41t.js +0 -2
- package/dist/chunk-8bfnjqkg.js +0 -2
- package/dist/chunk-8g09jrj1.js +0 -2
- package/dist/chunk-8v1bjdgv.js +0 -2
- package/dist/chunk-90wm9rxz.js +0 -2
- package/dist/chunk-91h14q3y.js +0 -2
- package/dist/chunk-96x0d2vd.js +0 -1
- package/dist/chunk-9gv1zffv.js +0 -1
- package/dist/chunk-9j609g4n.js +0 -1
- package/dist/chunk-afd3bq7v.js +0 -2
- package/dist/chunk-bew4srqj.js +0 -2
- package/dist/chunk-bj5ma2sv.js +0 -2
- package/dist/chunk-bv4adcrd.js +0 -2
- package/dist/chunk-c1vavp0q.js +0 -2
- package/dist/chunk-c26vy827.js +0 -2
- package/dist/chunk-cc0tan75.js +0 -2
- package/dist/chunk-d5ga13n0.js +0 -1
- package/dist/chunk-d94rmh12.js +0 -2
- package/dist/chunk-da4m33bg.js +0 -2
- package/dist/chunk-da6d6wze.js +0 -1
- package/dist/chunk-e99sdapw.js +0 -2
- package/dist/chunk-ea3582qy.js +0 -1
- package/dist/chunk-ebmbz9tg.js +0 -2
- package/dist/chunk-frbeen15.js +0 -2
- package/dist/chunk-ftcydsbs.js +0 -2
- package/dist/chunk-gdpa9dp5.js +0 -1
- package/dist/chunk-gz7adphb.js +0 -2
- package/dist/chunk-gzeg6bqp.js +0 -2
- package/dist/chunk-h68f23r0.js +0 -1
- package/dist/chunk-h99fy0g3.js +0 -4
- package/dist/chunk-jdjk6tf4.js +0 -1
- package/dist/chunk-jjnmq2zj.js +0 -3
- package/dist/chunk-khj3ye94.js +0 -7
- package/dist/chunk-kjtd3wc3.js +0 -1
- package/dist/chunk-kmhwwzga.js +0 -2
- package/dist/chunk-mr1azhef.js +0 -1
- package/dist/chunk-n0xzhjdg.js +0 -2
- package/dist/chunk-n1tjf64a.js +0 -2
- package/dist/chunk-n5xqjct2.js +0 -1
- package/dist/chunk-nqv69z6n.js +0 -2
- package/dist/chunk-pv35kspb.js +0 -1
- package/dist/chunk-pw6p654f.js +0 -3
- package/dist/chunk-q6km9nha.js +0 -2
- package/dist/chunk-qca5mhqd.js +0 -2
- package/dist/chunk-qxabrz98.js +0 -2
- package/dist/chunk-r1988zpy.js +0 -2
- package/dist/chunk-s0ef3h7b.js +0 -2
- package/dist/chunk-sespfp7t.js +0 -4
- package/dist/chunk-sf6ze845.js +0 -2
- package/dist/chunk-sxgc25gz.js +0 -2
- package/dist/chunk-tq6ekz3s.js +0 -2
- package/dist/chunk-vp8fb7r8.js +0 -2
- package/dist/chunk-w1awbykg.js +0 -2
- package/dist/chunk-wpdn3rx8.js +0 -1
- package/dist/chunk-x1xh8y2s.js +0 -2
- package/dist/chunk-x8kxqtva.js +0 -2
- package/dist/chunk-xfx689xm.js +0 -3
- package/dist/chunk-y6afvrnv.js +0 -2
- package/dist/chunk-zb4mqy8f.js +0 -2
- package/dist/ui/alert.d.ts +0 -10
- package/dist/ui/alert.js +0 -1
- package/dist/ui/badge.d.ts +0 -7
- package/dist/ui/badge.js +0 -1
- package/dist/ui/button.d.ts +0 -8
- package/dist/ui/button.js +0 -1
- package/dist/ui/card.d.ts +0 -11
- package/dist/ui/card.js +0 -1
- package/dist/ui/checkbox.d.ts +0 -3
- package/dist/ui/checkbox.js +0 -1
- package/dist/ui/dialog.d.ts +0 -17
- package/dist/ui/dialog.js +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -29
- package/dist/ui/dropdown-menu.js +0 -1
- package/dist/ui/empty.d.ts +0 -11
- package/dist/ui/empty.js +0 -1
- package/dist/ui/field.d.ts +0 -24
- package/dist/ui/field.js +0 -1
- package/dist/ui/hover-card.d.ts +0 -5
- package/dist/ui/hover-card.js +0 -1
- package/dist/ui/input-group.d.ts +0 -18
- package/dist/ui/input-group.js +0 -1
- package/dist/ui/input.d.ts +0 -3
- package/dist/ui/input.js +0 -1
- package/dist/ui/kbd.d.ts +0 -3
- package/dist/ui/kbd.js +0 -1
- package/dist/ui/label.d.ts +0 -3
- package/dist/ui/label.js +0 -1
- package/dist/ui/radio-group.d.ts +0 -5
- package/dist/ui/radio-group.js +0 -1
- package/dist/ui/select.d.ts +0 -15
- package/dist/ui/select.js +0 -1
- package/dist/ui/separator.d.ts +0 -3
- package/dist/ui/separator.js +0 -1
- package/dist/ui/skeleton.d.ts +0 -2
- package/dist/ui/skeleton.js +0 -1
- package/dist/ui/spinner.d.ts +0 -2
- package/dist/ui/spinner.js +0 -1
- package/dist/ui/switch.d.ts +0 -5
- package/dist/ui/switch.js +0 -1
- package/dist/ui/textarea.d.ts +0 -3
- package/dist/ui/textarea.js +0 -1
- package/dist/ui/tooltip.d.ts +0 -6
- package/dist/ui/tooltip.js +0 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
//! Read-only access to Codex skill documents (SKILL.md and their sibling files) for the toolbox.
|
|
2
|
+
//! Only files whose canonical path lies under a Codex skill root are readable, so a symlink inside a
|
|
3
|
+
//! root cannot reach a file outside it.
|
|
4
|
+
use std::path::{Path, PathBuf};
|
|
5
|
+
use tauri::{AppHandle, Manager};
|
|
6
|
+
|
|
7
|
+
/// Skill documents are short Markdown; anything larger is not one.
|
|
8
|
+
const MAX_BYTES: u64 = 1024 * 1024;
|
|
9
|
+
|
|
10
|
+
/// `$CODEX_HOME` (or `~/.codex`), `~/.agents`, and `.codex` / `.agents` of each project directory.
|
|
11
|
+
fn skill_roots(codex_home: Option<PathBuf>, home: Option<PathBuf>, projects: &[String]) -> Vec<PathBuf> {
|
|
12
|
+
let mut roots = Vec::new();
|
|
13
|
+
match (codex_home, &home) {
|
|
14
|
+
(Some(codex), _) => roots.push(codex),
|
|
15
|
+
(None, Some(home)) => roots.push(home.join(".codex")),
|
|
16
|
+
(None, None) => {}
|
|
17
|
+
}
|
|
18
|
+
if let Some(home) = &home {
|
|
19
|
+
roots.push(home.join(".agents"));
|
|
20
|
+
}
|
|
21
|
+
for project in projects.iter().filter(|project| !project.trim().is_empty()) {
|
|
22
|
+
let project = PathBuf::from(project);
|
|
23
|
+
roots.push(project.join(".codex"));
|
|
24
|
+
roots.push(project.join(".agents"));
|
|
25
|
+
}
|
|
26
|
+
roots
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
fn read_under(path: &Path, roots: &[PathBuf]) -> Result<String, String> {
|
|
30
|
+
if !path.is_absolute() {
|
|
31
|
+
return Err("Skill document path must be absolute".into());
|
|
32
|
+
}
|
|
33
|
+
let file = path.canonicalize().map_err(|error| format!("Cannot read skill document: {error}"))?;
|
|
34
|
+
// Roots are canonicalized too, so a root that is itself a link (a synced ~/.codex) still matches.
|
|
35
|
+
if !roots.iter().filter_map(|root| root.canonicalize().ok()).any(|root| file.starts_with(&root)) {
|
|
36
|
+
return Err("Path is outside the Codex skill directories".into());
|
|
37
|
+
}
|
|
38
|
+
let metadata = std::fs::metadata(&file).map_err(|error| format!("Cannot read skill document: {error}"))?;
|
|
39
|
+
if !metadata.is_file() {
|
|
40
|
+
return Err("Skill document is not a file".into());
|
|
41
|
+
}
|
|
42
|
+
if metadata.len() > MAX_BYTES {
|
|
43
|
+
return Err("Skill document is too large".into());
|
|
44
|
+
}
|
|
45
|
+
let bytes = std::fs::read(&file).map_err(|error| format!("Cannot read skill document: {error}"))?;
|
|
46
|
+
String::from_utf8(bytes).map_err(|_| "Skill document is not UTF-8 text".into())
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#[tauri::command]
|
|
50
|
+
pub(crate) async fn read_skill_document(
|
|
51
|
+
app: AppHandle, path: String, roots: Option<Vec<String>>,
|
|
52
|
+
) -> Result<String, String> {
|
|
53
|
+
let codex_home = std::env::var_os("CODEX_HOME").filter(|value| !value.is_empty()).map(PathBuf::from);
|
|
54
|
+
let home = app.path().home_dir().ok();
|
|
55
|
+
let roots = skill_roots(codex_home, home, roots.as_deref().unwrap_or_default());
|
|
56
|
+
tauri::async_runtime::spawn_blocking(move || read_under(Path::new(&path), &roots))
|
|
57
|
+
.await
|
|
58
|
+
.map_err(|error| error.to_string())?
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#[cfg(test)]
|
|
62
|
+
mod tests {
|
|
63
|
+
use super::*;
|
|
64
|
+
|
|
65
|
+
#[test]
|
|
66
|
+
fn only_files_under_skill_roots_are_readable() {
|
|
67
|
+
let temp = tempfile::tempdir().unwrap();
|
|
68
|
+
let home = temp.path().join("home");
|
|
69
|
+
let project = temp.path().join("project");
|
|
70
|
+
let outside = temp.path().join("outside");
|
|
71
|
+
for directory in [
|
|
72
|
+
home.join(".codex/skills/review"),
|
|
73
|
+
home.join(".agents/skills/plan"),
|
|
74
|
+
project.join(".agents/skills/local"),
|
|
75
|
+
project.join("src"),
|
|
76
|
+
outside.clone(),
|
|
77
|
+
] {
|
|
78
|
+
std::fs::create_dir_all(directory).unwrap();
|
|
79
|
+
}
|
|
80
|
+
std::fs::write(home.join(".codex/skills/review/SKILL.md"), "# Review").unwrap();
|
|
81
|
+
std::fs::write(home.join(".agents/skills/plan/SKILL.md"), "# Plan").unwrap();
|
|
82
|
+
std::fs::write(project.join(".agents/skills/local/SKILL.md"), "# Local").unwrap();
|
|
83
|
+
std::fs::write(project.join("src/secret.txt"), "secret").unwrap();
|
|
84
|
+
std::fs::write(outside.join("secret.txt"), "secret").unwrap();
|
|
85
|
+
let roots = skill_roots(None, Some(home.clone()), &[project.to_string_lossy().into_owned()]);
|
|
86
|
+
|
|
87
|
+
assert_eq!(read_under(&home.join(".codex/skills/review/SKILL.md"), &roots).unwrap(), "# Review");
|
|
88
|
+
assert_eq!(read_under(&home.join(".agents/skills/plan/SKILL.md"), &roots).unwrap(), "# Plan");
|
|
89
|
+
assert_eq!(read_under(&project.join(".agents/skills/local/SKILL.md"), &roots).unwrap(), "# Local");
|
|
90
|
+
// Project files outside its skill directories, other directories and traversal are refused.
|
|
91
|
+
assert!(read_under(&project.join("src/secret.txt"), &roots).is_err());
|
|
92
|
+
assert!(read_under(&outside.join("secret.txt"), &roots).is_err());
|
|
93
|
+
assert!(read_under(&home.join(".codex/skills/../../../outside/secret.txt"), &roots).is_err());
|
|
94
|
+
assert!(read_under(Path::new("relative/SKILL.md"), &roots).is_err());
|
|
95
|
+
assert!(read_under(&home.join(".codex/skills"), &roots).is_err());
|
|
96
|
+
// Without the project root its skills are not readable.
|
|
97
|
+
let home_only = skill_roots(None, Some(home.clone()), &[]);
|
|
98
|
+
assert!(read_under(&project.join(".agents/skills/local/SKILL.md"), &home_only).is_err());
|
|
99
|
+
// CODEX_HOME replaces ~/.codex.
|
|
100
|
+
let codex_home = skill_roots(Some(outside.clone()), Some(home.clone()), &[]);
|
|
101
|
+
assert!(read_under(&outside.join("secret.txt"), &codex_home).is_ok());
|
|
102
|
+
assert!(read_under(&home.join(".codex/skills/review/SKILL.md"), &codex_home).is_err());
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#[cfg(unix)]
|
|
106
|
+
#[test]
|
|
107
|
+
fn symlinks_cannot_escape_a_skill_root_and_binary_files_are_refused() {
|
|
108
|
+
let temp = tempfile::tempdir().unwrap();
|
|
109
|
+
let home = temp.path().join("home");
|
|
110
|
+
let skill = home.join(".codex/skills/escape");
|
|
111
|
+
std::fs::create_dir_all(&skill).unwrap();
|
|
112
|
+
std::fs::write(temp.path().join("secret.txt"), "secret").unwrap();
|
|
113
|
+
std::os::unix::fs::symlink(temp.path().join("secret.txt"), skill.join("SKILL.md")).unwrap();
|
|
114
|
+
std::os::unix::fs::symlink(temp.path(), skill.join("parent")).unwrap();
|
|
115
|
+
std::fs::write(skill.join("binary.md"), [0xff, 0xfe, 0x00]).unwrap();
|
|
116
|
+
let roots = skill_roots(None, Some(home.clone()), &[]);
|
|
117
|
+
assert!(read_under(&skill.join("SKILL.md"), &roots).is_err());
|
|
118
|
+
assert!(read_under(&skill.join("parent/secret.txt"), &roots).is_err());
|
|
119
|
+
assert_eq!(read_under(&skill.join("binary.md"), &roots).unwrap_err(), "Skill document is not UTF-8 text");
|
|
120
|
+
// A root that is itself a link still matches the files inside it.
|
|
121
|
+
let real = temp.path().join("synced-codex");
|
|
122
|
+
std::fs::create_dir_all(real.join("skills/s")).unwrap();
|
|
123
|
+
std::fs::write(real.join("skills/s/SKILL.md"), "# Synced").unwrap();
|
|
124
|
+
let linked_home = temp.path().join("linked-home");
|
|
125
|
+
std::fs::create_dir_all(&linked_home).unwrap();
|
|
126
|
+
std::os::unix::fs::symlink(&real, linked_home.join(".codex")).unwrap();
|
|
127
|
+
let roots = skill_roots(None, Some(linked_home.clone()), &[]);
|
|
128
|
+
assert_eq!(read_under(&linked_home.join(".codex/skills/s/SKILL.md"), &roots).unwrap(), "# Synced");
|
|
129
|
+
}
|
|
130
|
+
}
|
package/dist/chunk-074x98ak.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{Nn}from"./chunk-gz7adphb.js";import{Pe,Ne,Me}from"./chunk-6wqbetcx.js";import{y}from"./chunk-cazdmcwd.js";import{cn as f}from"cn";import{PaperclipIcon as k,XIcon as T}from"lucide-react";import{Fragment as M,useEffect as L,useRef as z,useState as N}from"react";import{jsx as t,jsxs as o,Fragment as R}from"react/jsx-runtime";function E(n){return t(Me,{align:"start",...n})}function In({data:n,t:r,className:u,...c}){let p=y(),[d,h]=N(!1),[I,v]=N(1),C=z(null),s=n.filename||"",i=(n.mediaType?.startsWith("image/")&&n.url?"image":"file")==="image",A=s||(i?r("input.image"):r("input.attachment"));return L(()=>{if(!d)return;let l=0.1,g=(a)=>Math.min(10,Math.max(0.1,a)),x=(a)=>{if(!(a.ctrlKey||a.metaKey))return;let m=a.key,w=m==="+"||m==="=",H=m==="-"||m==="_",b=m==="0";if(!w&&!H&&!b)return;a.preventDefault(),v((P)=>{if(b)return 1;if(w)return g(P+l);return g(P-l)})};return window.addEventListener("keydown",x,{passive:!1}),()=>window.removeEventListener("keydown",x)},[d]),o(R,{children:[o(Pe,{children:[t(Ne,{render:o("div",{className:f("group border-border hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent relative flex h-8 cursor-pointer items-center gap-1.5 rounded-md border px-1.5 text-sm font-medium transition-all select-none",u),...c,children:[o("div",{className:"relative size-5 shrink-0",children:[i?t(e,{type:"button",variant:"ghost",size:"icon-xs","aria-label":r("input.image"),className:"bg-background absolute inset-0 size-5 overflow-hidden rounded p-0 transition-opacity group-hover:opacity-0",onClick:()=>{v(1),h(!0)},children:t("img",{alt:s||"attachment",className:"size-5 object-cover",height:20,src:n.url,width:20})}):t("div",{className:"bg-background text-muted-foreground absolute inset-0 flex size-5 items-center justify-center overflow-hidden rounded transition-opacity group-hover:opacity-0",children:t(k,{className:"size-3"})}),o(e,{"aria-label":r("input.removeAttachment"),className:f("absolute -top-1 -right-1 size-4 rounded-full p-0 opacity-0 transition-opacity [&>svg]:size-3","pointer-events-none group-hover:pointer-events-auto group-hover:opacity-100"),onClick:(l)=>{l.stopPropagation(),p.remove(n.id)},type:"button",variant:"ghost",children:[t(T,{}),t("span",{className:"sr-only",children:r("input.removeAttachment")})]})]}),!i&&t("span",{className:"max-w-40 flex-1 truncate text-xs",children:A})]})}),t(E,{className:"w-auto p-2",children:o("div",{className:"w-auto space-y-3",children:[i&&t("div",{className:"flex max-h-96 w-96 items-center justify-center overflow-hidden rounded-md border",children:t("img",{alt:s||"attachment preview",className:"max-h-full max-w-full object-contain",height:384,src:n.url,width:448})}),t("div",{className:"flex items-center gap-2.5",children:o("div",{className:"min-w-0 flex-1 space-y-1 px-0.5",children:[t("h4",{className:"truncate text-sm leading-none font-semibold",children:s||(i?"Image":"Attachment")}),n.mediaType&&t("p",{className:"text-muted-foreground truncate font-mono text-xs",children:n.mediaType})]})})]})})]}),i&&n.url&&t(Nn,{containerRef:C,filename:s||r("input.image"),onOpenChange:h,onScaleChange:v,open:d,scale:I,url:n.url})]})}function Pn({children:n,className:r,...u}){let c=y();if(!c.files.length)return null;return t("div",{className:f("flex w-full flex-wrap items-center gap-1",r),...u,children:c.files.map((p)=>t(M,{children:n(p)},p.id))})}
|
|
2
|
-
export{In,Pn};
|
package/dist/chunk-0c8fy456.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Ko}from"./chunk-0mze2qnw.js";import{t}from"./chunk-q6km9nha.js";import{To,So}from"./chunk-1wpdb17m.js";import{B}from"./chunk-y6afvrnv.js";import{Q}from"./chunk-e99sdapw.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 Co=p(function({item:s,messageTime:c}){let l=t(),o=So(s._meta),m=o?o.map((e)=>e.question===void 0?e.text:`${e.question}
|
|
2
|
-
${e.text}`).join(`
|
|
3
|
-
`):Q(s),a=s.content.filter(d),i=s.content.filter((e)=>f(e)||g(e)),u=o??s.content.filter(x).map((e)=>{let n=To(e._meta);return n?{question:n.question,text:n.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":s.id,children:[i.length>0&&r("div",{className:"codex-user-mentions",children:i.map((e,n)=>r(B,{block:e},`${s.id}:${n}`))}),r(Ko,{host:l,message:s,text:m,textParts:u.some((e)=>("question"in e))?u:void 0,images:a,mentions:[],messageTime:c})]})});
|
|
4
|
-
export{Co};
|
package/dist/chunk-0dnwqm94.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-q6km9nha.js";import{o}from"./chunk-0ss92kxr.js";import{codexExtensionCapabilities as T,codexTurnId as w,composerPrediction as j,isBooleanOption as B,isSelectOption as F}from"@nyssance/codex-acp-v2/client";import{useEffect as b,useRef as C,useState as P}from"react";function mt(t,g,c,y){let{client:S}=o(),R=n((e)=>T(e.agent).composerPredictions),k=t.items.findLast((e)=>e.kind==="user"),i=w(k?._meta),O=t.configOptions.flatMap((e)=>F(e)||B(e)?[[e.configId,e.currentValue]]:[]).sort(([e],[u])=>String(e).localeCompare(String(u))),r=JSON.stringify([t.id,i,O]),s=j(t._meta),d=t._meta?.codex,m=typeof d==="object"&&d!==null&&"prediction"in d?d.prediction:null,l=C(null),f=C(!1);b(()=>(f.current=!0,()=>{f.current=!1}),[]);let[a,_]=P(null),[v,x]=P(null),p=y&&R&&g&&t.state==="idle"&&t.lastStopReason==="end_turn"&&!k?.replayed&&i!==null;b(()=>{if(!p||c||a===r||l.current?.key===r||i===null)return;let e={key:r,previousResult:m};l.current=e,x(null),S.requestPrediction(t.id,i).catch((u)=>{if(f.current&&l.current===e)x({key:r,message:u instanceof Error?u.message:String(u)})})},[S,p,c,a,r,m,t.id,i]);let I=p&&!c&&a!==r&&l.current?.key===r&&l.current.previousResult!==m&&s?.sourceTurnId===i,q=I&&s.result.type==="completed"?s.result.text:null,E=y&&g&&t.state==="idle"&&!c&&a!==r?v?.key===r?v.message:I&&s.result.type==="failed"?"Prediction failed":null:null;return{text:q,error:E,invalidate:()=>{if(p)_(r)}}}
|
|
2
|
-
export{mt};
|
package/dist/chunk-0nkvfecf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Radio as e}from"@base-ui/react/radio";import{RadioGroup as t}from"@base-ui/react/radio-group";import{cn as o}from"cn";import{jsx as r}from"react/jsx-runtime";function Y({className:i,...a}){return r(t,{"data-slot":"radio-group",className:o("grid w-full gap-3",i),...a})}function A({className:i,...a}){return r(e.Root,{"data-slot":"radio-group-item",className:o("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary",i),...a,children:r(e.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:r("span",{className:"absolute top-1/2 start-1/2 size-2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})})})}export{Y,A};
|
package/dist/chunk-0ss92kxr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{re}from"./chunk-q6km9nha.js";import{createContext as v,useContext as a,useMemo as l}from"react";import{jsx as r}from"react/jsx-runtime";var i=v(null);function yt({host:n,client:e,children:t}){let s=l(()=>({host:n,client:e}),[n,e]);return r(re,{host:n,client:e,children:r(i,{value:s,children:t})})}function o(){let n=a(i);if(n===null)throw Error("Conversation host is missing");return n}function C(n,e){e.catch((t)=>{if(n.reportError)n.reportError(t);else console.error(t)})}
|
|
2
|
-
export{yt,o,C};
|
package/dist/chunk-12fcr66z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l,r}from"./chunk-da4m33bg.js";import{latestAssistantReply as v}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useState as g}from"react";function pr(e,o){let s=l(),a=r((t)=>t.connection),i=r((t)=>Boolean(t.sessions[e]?.attached)&&!t.sessions[e]?.restoring),c=r((t)=>v(t.sessions[e]?.items)),u=r((t)=>Boolean(t.runStates[e]?.reusableDraft)),[p,y]=g();return S(()=>{if(a!=="ready"||u||i)return;let t=!1,f,n=0,m=async()=>{try{let d=await s.activityReply(e);if(n=0,!t)y(d??void 0)}catch{n++}finally{if(!t&&(o==="running"||n>0&&n<3))f=setTimeout(()=>void m(),5000)}};return m(),()=>{t=!0,clearTimeout(f)}},[s,e,a,u,i,o]),i?c:p??c}
|
|
2
|
-
export{pr};
|
package/dist/chunk-14r2ktqe.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{V,W}from"./chunk-jdjk6tf4.js";import{e}from"./chunk-wpdn3rx8.js";import{u,m,b,K,p,w}from"./chunk-n5xqjct2.js";import{s}from"./chunk-96x0d2vd.js";import{Mt,Rt,Et,hn,Z}from"./chunk-gdpa9dp5.js";import{le}from"./chunk-pv35kspb.js";import{g,l,r}from"./chunk-da4m33bg.js";import{se,z,D}from"./chunk-x8kxqtva.js";import{sessionGroup as F}from"@nyssance/codex-acp-v2/client";import{cn as fe}from"cn";import{ArchiveIcon as ve,FolderIcon as Y,ListFilterIcon as ge,SearchIcon as xe,Trash2Icon as ee}from"lucide-react";import{useEffect as Se,useRef as ye,useState as h}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";function te({className:f,...n}){return i(hn,{align:"start",alignItemWithTrigger:!1,sideOffset:6,...n,className:fe("max-w-(--available-width) min-w-0 p-1",f)})}function H(f){return f instanceof Error?f.message:String(f)}function Le({children:f}){return i("div",{className:"min-h-0 flex-1 overflow-y-auto",children:i("div",{className:"flex flex-col gap-8",children:f})})}function dr({Scroll:f=Le}){let{t:n,i18n:B}=g(),v=l(),N=r((t)=>t.archivedSessions),A=r((t)=>t.connection),[O,ie]=h(""),[C,ne]=h("all"),[x,ae]=h("all"),[re,oe]=h(0),[G,Q]=h(!0),[q,U]=h(null),[_,R]=h(null),[I,j]=h(!1),S=ye(!1),[P,y]=h(null),[J,T]=h(null),[ce,M]=h(!1);Se(()=>{if(A!=="ready")return;let t=!1;Q(!0),U(null);async function d(){try{await v.listArchived({reset:!0});let o=new Set;while(!t&&v.state.archivedCursor!==null){let L=v.state.archivedCursor;if(o.has(L))throw Error("Archive pagination returned a repeated cursor");o.add(L),await v.listArchived()}}catch(o){if(!t)U(H(o))}finally{if(!t)Q(!1)}}return d(),()=>{t=!0}},[v,A,re]);let c=r((t)=>t.projectContext),E=!(c!==null&&A==="ready"&&!G&&q===null)||I,k=(t)=>t.title??n("sessionList.untitled"),de=[...new Set(N.filter((t)=>c&&F(c,t).id!==D).map((t)=>c?F(c,t).id:t.cwd))].toSorted(),ue=O.trim().toLocaleLowerCase(B.language),X=N.filter((t)=>{let d=c?F(c,t).id:null,o=d===D;return k(t).toLocaleLowerCase(B.language).includes(ue)&&(C==="all"||(C==="quick"?o:!o))&&(x==="all"||(x==="quick"?o:d===x))}),me=new Intl.DateTimeFormat(B.language,{dateStyle:"medium",timeStyle:"short"});async function pe(t){if(S.current)return;S.current=!0,j(!0),R(null);try{await v.unarchive(t.sessionId)}catch(d){R(H(d))}finally{S.current=!1,j(!1)}}async function he(){if(S.current||!P)return;S.current=!0,j(!0),T(null);let t=[],d=[];try{for(let o of P){if(!v.state.archivedSessions.some((L)=>L.sessionId===o.sessionId))continue;try{await v.delete(o.sessionId)}catch(L){t.push(o),d.push(`${k(o)}: ${H(L)}`)}}if(t.length)y(t),T(d.join(`
|
|
2
|
-
`));else y(null)}finally{S.current=!1,j(!1)}}return a("section",{className:"flex min-h-0 flex-1 flex-col overflow-hidden","aria-label":n("sessionList.archives.title"),children:[a("div",{className:"mx-auto flex min-h-0 w-full max-w-5xl flex-1 flex-col gap-8 px-6 pt-8 pb-10 lg:pb-14",children:[a("header",{className:"flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3",children:[i("h1",{className:"text-2xl leading-9 font-semibold tracking-tight",children:n("sessionList.archives.title")}),a(e,{size:"sm",variant:"destructive",className:"h-[30px] text-sm font-normal",disabled:E||N.length===0,onClick:()=>{T(null),M(!0),y([...N])},children:[i(ee,{className:"size-4","aria-hidden":"true"}),n("sessionList.archives.deleteAll")]})]}),a("div",{className:"flex shrink-0 flex-wrap gap-3",children:[a("div",{className:"relative min-w-48 flex-1",children:[i(xe,{"aria-hidden":"true",className:"text-muted-foreground pointer-events-none absolute start-3 top-2.5 size-4"}),i(s,{"aria-label":n("sessionList.archives.search"),placeholder:n("sessionList.archives.search"),value:O,onChange:(t)=>ie(t.target.value),className:"rounded-md ps-9"})]}),a(Mt,{value:C,onValueChange:(t)=>{if(t===null)throw Error("Archive chat type cannot be empty");ne(t)},children:[a(Et,{"aria-label":n("sessionList.archives.chatType"),className:"w-40 rounded-md",children:[i(ge,{"aria-hidden":"true"}),i(Rt,{children:n(`sessionList.archives.${C==="all"?"allChats":C==="quick"?"quickChats":"projectChats"}`)})]}),a(te,{children:[i(Z,{value:"all",children:n("sessionList.archives.allChats")}),i(Z,{value:"quick",children:n("sessionList.archives.quickChats")}),i(Z,{value:"project",children:n("sessionList.archives.projectChats")})]})]}),a(Mt,{value:x,onValueChange:(t)=>{if(t===null)throw Error("Archive project filter cannot be empty");ae(t)},children:[a(Et,{"aria-label":n("sessionList.archives.project"),className:"w-48 rounded-md",children:[i(Y,{"aria-hidden":"true"}),i(Rt,{className:"truncate",children:x==="all"?n("sessionList.archives.allProjects"):x==="quick"?n("sessionList.archives.noProject"):z(x,c??void 0)})]}),a(te,{children:[i(Z,{value:"all",children:n("sessionList.archives.allProjects")}),i(Z,{value:"quick",children:n("sessionList.archives.noProject")}),de.map((t)=>i(Z,{value:t,title:t,children:z(t,c??void 0)},t))]})]})]}),a(f,{children:[A!=="ready"?i("p",{role:"status",className:"text-muted-foreground",children:n("sessionList.archives.connecting")}):G?a("div",{role:"status",className:"text-muted-foreground flex items-center gap-2",children:[i(le,{}),n("sessionList.archives.loading")]}):q?i(V,{variant:"destructive",children:a(W,{className:"flex items-center justify-between gap-4",children:[i("span",{children:q}),i(e,{variant:"outline",onClick:()=>oe((t)=>t+1),children:n("sessionList.archives.retry")})]})}):N.length===0?a("div",{className:"text-muted-foreground flex flex-col items-center gap-3 py-16",children:[i(ve,{"aria-hidden":"true",className:"size-8"}),i("p",{children:n("sessionList.archives.empty")})]}):X.length===0?i("p",{className:"text-muted-foreground py-12 text-center",children:n("sessionList.archives.noResults")}):(c?se(X,c):[]).filter(([,t])=>t.length>0).map(([t,d])=>a("section",{className:"flex flex-col gap-3",children:[a("div",{className:"flex items-center justify-between gap-3",children:[a("h2",{className:"flex min-w-0 items-center gap-2 text-sm font-medium",title:t===D?void 0:t,children:[i(Y,{"aria-hidden":"true",className:"size-4 shrink-0"}),i("span",{className:"truncate",children:t===D?n("sessionList.archives.noProject"):z(t,c??void 0)})]}),i("span",{className:"text-muted-foreground shrink-0 text-sm",children:n("sessionList.archives.count",{count:d.length})})]}),i("div",{className:"divide-border divide-y overflow-hidden rounded-lg border",children:d.map((o)=>a("article",{"aria-label":k(o),className:"flex flex-wrap items-center gap-4 px-4 py-3",children:[a("div",{className:"min-w-0 flex-1 basis-40",children:[i("h3",{className:"truncate text-sm font-medium",title:k(o),children:k(o)}),o.updatedAt!==null&&i("time",{dateTime:o.updatedAt,title:n("sessionList.archives.updatedAt"),className:"text-muted-foreground text-xs",children:me.format(new Date(o.updatedAt))})]}),a("div",{className:"flex shrink-0 items-center gap-2",children:[i(e,{variant:"ghost",size:"icon-sm","aria-label":n("sessionList.delete"),title:n("sessionList.delete"),disabled:E,className:"text-muted-foreground hover:text-destructive",onClick:()=>{T(null),M(!1),y([o])},children:i(ee,{"aria-hidden":"true"})}),i(e,{variant:"secondary",size:"sm",disabled:E,onClick:()=>void pe(o),children:n("sessionList.archives.unarchive")})]})]},o.sessionId))})]},t)),_&&i(V,{variant:"destructive",children:i(W,{children:_})})]})]}),i(u,{open:P!==null,onOpenChange:(t)=>{if(!t&&!S.current)y(null)},children:a(m,{showCloseButton:!I,children:[a(b,{children:[i(p,{children:n("sessionList.archives.deleteTitle")}),i(w,{children:n(ce?"sessionList.archives.deleteAllDescription":"sessionList.archives.deleteDescription",{count:P?.length??0})})]}),J&&i(V,{variant:"destructive",children:i(W,{className:"max-h-40 overflow-auto whitespace-pre-wrap",children:J})}),a(K,{children:[i(e,{variant:"outline",disabled:I,onClick:()=>y(null),children:n("sessionList.cancel")}),a(e,{variant:"destructive",className:"text-sm font-normal",disabled:E,onClick:()=>void he(),children:[I&&i(le,{}),n("sessionList.archives.confirmDelete")]})]})]})})]})}
|
|
3
|
-
export{dr};
|
package/dist/chunk-180zvfd6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-q6km9nha.js";import{o}from"./chunk-0ss92kxr.js";import{ge,Oe,ft}from"./chunk-83sz9mv9.js";import{Fe}from"./chunk-sxgc25gz.js";import{inSessionTree as d}from"@nyssance/codex-acp-v2/client";import{jsx as t,jsxs as c,Fragment as p}from"react/jsx-runtime";var u=[];function at({sessionId:e}){let l=n((s)=>s.sessions),{host:f}=o(),a=n((s)=>s.actions),r=a.some((s)=>d(l,e,s.sessionId))?a.filter((s)=>d(l,e,s.sessionId)):u,i=r.filter(ge),m=r.filter((s)=>!ge(s));return c(p,{children:[t("div",{className:"mx-auto max-h-[50vh] w-full max-w-3xl shrink-0 overflow-y-auto px-3","data-subagent-shelf":!0,children:t(Fe,{sessionId:e})}),m.length>0&&t("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:m.map((s)=>c("div",{children:[s.sessionId!==e&&t("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:s.sessionId===null?"":l[s.sessionId]?.title??f.t("subagents.untitled")}),t(ft,{action:s})]},s.id))}),i[0]!==void 0&&t(Oe,{action:i[0],total:i.length},i[0].id)]})}
|
|
2
|
-
export{at};
|
package/dist/chunk-1fm5vx1n.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Separator as o}from"@base-ui/react/separator";import{cn as i}from"cn";import{jsx as e}from"react/jsx-runtime";function j({className:a,orientation:r="horizontal",...t}){return e(o,{"data-slot":"separator",orientation:r,className:i("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",a),...t})}export{j};
|
package/dist/chunk-2a3tezgr.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Checkbox as e}from"@base-ui/react/checkbox";import{cn as o}from"cn";import{CheckIcon as t}from"lucide-react";import{jsx as i}from"react/jsx-runtime";function fe({className:r,...a}){return i(e.Root,{"data-slot":"checkbox",className:o("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary",r),...a,children:i(e.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:i(t,{})})})}export{fe};
|
package/dist/chunk-2rperg04.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{s}from"./chunk-96x0d2vd.js";import{k}from"./chunk-da6d6wze.js";import{cva as u}from"class-variance-authority";import{cn as n}from"cn";import{jsx as r}from"react/jsx-runtime";function Xn({className:a,...t}){return r("div",{"data-slot":"input-group",role:"group",className:n("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5",a),...t})}var d=u("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first ps-2 has-[>button]:-ms-1 has-[>kbd]:ms-[-0.15rem]","inline-end":"order-last pe-2 has-[>button]:-me-1 has-[>kbd]:me-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function Ut({className:a,align:t="inline-start",...i}){return r("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:n(d({align:t}),a),onClick:(o)=>{if(o.target.closest("button"))return;o.currentTarget.parentElement?.querySelector("input")?.focus()},...i})}var l=u("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function $t({className:a,type:t="button",variant:i="ghost",size:o="xs",...p}){return r(e,{type:t,"data-size":o,variant:i,className:n(l({size:o}),a),...p})}function ai({className:a,...t}){return r("span",{className:n("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",a),...t})}function si({className:a,...t}){return r(s,{"data-slot":"input-group-control",className:n("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent",a),...t})}function Yn({className:a,...t}){return r(k,{"data-slot":"input-group-control",className:n("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent",a),...t})}export{Xn,Ut,$t,ai,si,Yn};
|
package/dist/chunk-3919sqde.js
DELETED
package/dist/chunk-3dckftt6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-q6km9nha.js";import{e}from"./chunk-wpdn3rx8.js";import{Ue}from"./chunk-zb4mqy8f.js";import{he,ve,xe,ye}from"./chunk-d5ga13n0.js";import{o,C}from"./chunk-0ss92kxr.js";import{Loader2Icon as f}from"lucide-react";import{jsx as i,jsxs as m}from"react/jsx-runtime";function vt({session:t,timeline:c}){let{host:s,client:a}=o(),{t:r}=s,l=n((y)=>y.historyPages[t.id]?.cursor!=null),d=()=>C(s,a.open(t.id,t.cwd)),p=i(Ue,{...c,session:t,client:a,host:s});if(t.restoring)return t.items.length===0?m("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[i(f,{className:"size-4 animate-spin","aria-hidden":"true"}),r("conversation.restoring")]}):p;if(!t.attached&&t.items.length===0)return m(he,{className:"flex-1",children:[m(ve,{children:[i(xe,{children:r("conversation.reopen")}),i(ye,{children:r("conversation.detached")})]}),i(e,{onClick:d,children:r("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!l)return i(he,{className:"flex-1",children:m(ve,{children:[i(xe,{className:"text-[28px] font-normal",children:r("conversation.welcomeTitle")}),i(ye,{className:"truncate font-mono",children:t.cwd})]})});return p}
|
|
2
|
-
export{vt};
|
package/dist/chunk-3k5n3809.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hn,Fn}from"./chunk-h68f23r0.js";import{cn as l}from"cn";import{jsx as t,jsxs as a}from"react/jsx-runtime";function f({value:i,onValueChange:n,options:o,itemClassName:d}){return t(Hn,{value:i,onValueChange:(e)=>n(String(e)),children:o.map((e)=>a(Fn,{value:e.value,disabled:e.disabled,title:e.title,closeOnClick:!0,className:l("gap-2",e.description?"items-start":"items-center",d),children:[e.icon,e.description?a("div",{className:"min-w-0 flex-1",children:[t("div",{className:"text-xs font-medium",children:e.label}),t("div",{className:"text-muted-foreground text-[11px] font-normal",children:e.description})]}):t("span",{className:"min-w-0 flex-1 truncate text-start",children:e.label})]},e.value))})}
|
|
2
|
-
export{f};
|
package/dist/chunk-3z6rx5qv.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{v}from"./chunk-kjtd3wc3.js";import{Y,A}from"./chunk-0nkvfecf.js";import{k}from"./chunk-da6d6wze.js";import{useEffect as R,useId as N,useRef as w}from"react";import{jsx as l,jsxs as p,Fragment as _}from"react/jsx-runtime";function u(n){return n!==null&&typeof n==="object"&&!Array.isArray(n)}function h(n){if(!u(n)||!u(n.codex))return[];let r=n.codex,i=r.questions;if(r.delivery!=="async"||!Array.isArray(i))return[];if(!i.every((t)=>u(t)&&typeof t.title==="string"&&t.title.trim().length>0&&(t.options===null||Array.isArray(t.options)&&t.options.every((c)=>typeof c==="string"))))return[];return i}function dn(n,r){return JSON.stringify(["request_user_input_async",n,r])}function nr(n){return{selected:n.options?.length?0:null,text:""}}function xt(n,r){return r.selected===null?r.text:n.options?.[r.selected]??""}function or(n){return`<send_user_message_question_reply>
|
|
2
|
-
${JSON.stringify([n])}
|
|
3
|
-
</send_user_message_question_reply>`}function un(n){if(!u(n)||!u(n.codex))return[];let r=n.codex;return(Array.isArray(r.questionReplyParts)?r.questionReplyParts.map((t)=>u(t)?{...t,answer:t.text}:t):[r.questionReply]).filter((t)=>u(t)&&typeof t.questionItemId==="string"&&typeof t.question==="string"&&typeof t.answer==="string").map(({questionItemId:t,question:c,answer:m})=>({questionItemId:t,question:c,answer:m}))}function rr({question:n,draft:r,status:i,answer:t,error:c,onChange:m,onSubmit:f,onSkip:b,t:a}){let y=N(),g=w(!1),o=w(null);R(()=>()=>{if(o.current!==null)cancelAnimationFrame(o.current)},[]);let d=i==="pending",Q=i==="answered"||i==="skipped";return p("section",{"aria-labelledby":`${y}-title`,className:"flex min-w-0 flex-col gap-3 rounded-xl border border-border bg-card p-4 text-card-foreground",children:[l("h3",{id:`${y}-title`,className:"text-sm font-medium whitespace-pre-wrap",children:n.title}),Q?l("p",{className:"text-sm whitespace-pre-wrap",children:i==="answered"?t:a("asyncQuestion.skipped")}):p(_,{children:[(n.options?.length??0)>0&&p(Y,{"aria-labelledby":`${y}-title`,disabled:!d,value:r.selected===null?"other":String(r.selected),onValueChange:(s)=>m({...r,selected:s==="other"?null:Number(s)}),children:[n.options?.map((s,x)=>p(v,{className:"flex items-start gap-2 text-sm",children:[l(A,{value:String(x)}),l("span",{className:"whitespace-pre-wrap",children:s})]},x)),p(v,{className:"flex items-center gap-2 text-sm",children:[l(A,{value:"other"}),a("asyncQuestion.other")]})]}),l(k,{rows:1,className:"min-h-0 resize-none",onCompositionStart:()=>{if(o.current!==null)cancelAnimationFrame(o.current);o.current=null,g.current=!0},onCompositionEnd:()=>{if(g.current=!1,o.current!==null)cancelAnimationFrame(o.current);o.current=requestAnimationFrame(()=>{o.current=null})},onKeyDown:(s)=>{if(s.key!=="Enter"||s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||g.current||o.current!==null||s.nativeEvent.isComposing||s.nativeEvent.keyCode===229)return;if(s.preventDefault(),d&&xt(n,{...r,text:s.currentTarget.value}).trim().length>0)f()},"aria-label":a("asyncQuestion.answer"),placeholder:a("asyncQuestion.answer"),value:r.text,readOnly:!d,onChange:(s)=>m({selected:null,text:s.target.value})}),c&&l("p",{role:"alert",className:"text-sm text-destructive",children:c}),p("div",{className:"flex flex-wrap items-center gap-2",children:[l(e,{size:"sm",disabled:!d||xt(n,r).trim().length===0,onClick:f,children:a(i==="submitting"?"asyncQuestion.submitting":"asyncQuestion.submit")}),l(e,{size:"sm",variant:"ghost",disabled:!d,onClick:b,children:a("asyncQuestion.skip")}),(i==="closed"||i==="unavailable")&&l("span",{role:"status",className:"text-xs text-muted-foreground",children:a(`asyncQuestion.${i}`)})]})]})]})}
|
|
4
|
-
export{h,dn,nr,xt,or,un,rr};
|
package/dist/chunk-4s1rhts0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Switch as a}from"@base-ui/react/switch";import{cn as d}from"cn";import{jsx as t}from"react/jsx-runtime";function ze({className:e,size:i="default",...r}){return t(a.Root,{"data-slot":"switch","data-size":i,className:d("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none group-has-[:focus-visible]/field-label:border-transparent group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",e),...r,children:t(a.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] rtl:group-data-[size=default]/switch:data-checked:-translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] rtl:group-data-[size=sm]/switch:data-checked:-translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 rtl:group-data-[size=default]/switch:data-unchecked:-translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 rtl:group-data-[size=sm]/switch:data-unchecked:-translate-x-0 dark:data-unchecked:bg-foreground"})})}export{ze};
|
package/dist/chunk-58wt406v.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{v}from"./chunk-kjtd3wc3.js";import{j}from"./chunk-1fm5vx1n.js";import{useMemo as f}from"react";import{cva as p}from"class-variance-authority";import{cn as l}from"cn";import{jsx as t,jsxs as c}from"react/jsx-runtime";function Gt({className:a,...e}){return t("fieldset",{"data-slot":"field-set",className:l("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",a),...e})}function jt({className:a,variant:e="legend",...o}){return t("legend",{"data-slot":"field-legend","data-variant":e,className:l("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",a),...o})}function co({className:a,...e}){return t("div",{"data-slot":"field-group",className:l("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",a),...e})}var u=p("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function uo({className:a,orientation:e="vertical",...o}){return t("div",{role:"group","data-slot":"field","data-orientation":e,className:l(u({orientation:e}),a),...o})}function fi({className:a,...e}){return t("div",{"data-slot":"field-content",className:l("group/field-content flex flex-1 flex-col gap-1 leading-snug",a),...e})}function mo({className:a,...e}){return t(v,{"data-slot":"field-label",className:l("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",a),...e})}function hi({className:a,...e}){return t("div",{"data-slot":"field-label",className:l("flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",a),...e})}function ht({className:a,...e}){return t("p",{"data-slot":"field-description",className:l("text-start text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5","last:mt-0 nth-last-2:-mt-1","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",a),...e})}function vi({children:a,className:e,...o}){return c("div",{"data-slot":"field-separator","data-content":!!a,className:l("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",e),...o,children:[t(j,{className:"absolute inset-0 top-1/2"}),a&&t("span",{className:"relative mx-auto block w-fit bg-background px-2 text-muted-foreground","data-slot":"field-separator-content",children:a})]})}function xi({className:a,children:e,errors:o,...s}){let i=f(()=>{if(e)return e;if(!o?.length)return null;let r=[...new Map(o.map((d)=>[d?.message,d])).values()];if(r?.length==1)return r[0]?.message;return t("ul",{className:"ms-4 flex list-disc flex-col gap-1",children:r.map((d,n)=>d?.message&&t("li",{children:d.message},n))})},[e,o]);if(!i)return null;return t("div",{role:"alert","data-slot":"field-error",className:l("text-sm font-normal text-destructive",a),...s,children:i})}export{Gt,jt,co,uo,fi,mo,hi,ht,vi,xi};
|
package/dist/chunk-59g9h4v1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l,r}from"./chunk-da4m33bg.js";import{QUICK_CHATS_GROUP as m,sessionGroup as a}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useMemo as L}from"react";function gr(i){let t=l(),e=r((s)=>s.projectContext),c=i===null?m:e?a(e,{cwd:t.projectPath(i)}).id:null,u=r((s)=>s.sessionList),d=r((s)=>s.connection),n=r((s)=>s.sessionListLoaded),o=r((s)=>s.sessionListError),f=()=>t.listSessions({reset:!0}).catch(()=>{return});return S(()=>{if(d==="ready"&&!n&&o===null)t.listSessions().catch(()=>{return})},[t,d,n,o]),{result:L(()=>{if(n&&e)return{status:"ready",sessionRows:u.filter((s)=>a(e,{...s,cwd:t.projectPath(s.cwd)}).id===c).toSorted((s,p)=>(p.updatedAt??"").localeCompare(s.updatedAt??""))};if(o!==null)return{status:"failed",error:o};return{status:"loading"}},[t,u,n,o,c,e]),retry:f}}
|
|
2
|
-
export{gr};
|
package/dist/chunk-59j0p8hy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i,L,bt}from"./chunk-2swp3nfs.js";var On=5000;function de(t){return"pastedText"in t}function Er(t){return`file://${encodeURI(t).replaceAll("#","%23").replaceAll("?","%3F")}`}function Le(t,e,o){let n=(r,s)=>{for(let[a,x]of i){if(!x.attachments.some((p)=>p.id===e.id))continue;L(a,(p)=>p.map((d)=>d.id===e.id?{...e,url:s===void 0?"":Er(s),pastedText:{text:e.pastedText.text,status:r}}:d))}};if(!i.get(t)?.attachments.some((r)=>r.id===e.id))return;n("pending"),bt(e.id,o("pasted-text.txt",e.pastedText.text).then((r)=>n("ready",r)).catch(()=>n("error")))}function gt(t,e,o,n){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<On)return;t.preventDefault(),t.stopPropagation();let s={id:crypto.randomUUID(),type:"file",mediaType:"text/plain",filename:o,url:"",pastedText:{text:r,status:"pending"}};L(e,(a)=>[...a,s]),Le(e,s,n)}
|
|
2
|
-
export{On,de,Er,Le,gt};
|
package/dist/chunk-6s7z09b0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{s}from"./chunk-96x0d2vd.js";import{cn as h}from"cn";import{ChevronDownIcon as g,ChevronUpIcon as b,XIcon as z}from"lucide-react";import{useEffect as B,useImperativeHandle as N,useRef as E}from"react";import{jsx as n,jsxs as k}from"react/jsx-runtime";function gn({ref:p,value:o,onChange:d,onFind:i,onClose:a,placeholder:m,autoFocusOpen:l=!0,prevTitle:c,nextTitle:u,className:v}){let r=E(null);N(p,()=>{if(r.current===null)throw Error("FindBar input is not mounted");return r.current},[]),B(()=>{if(!l)return;let t=r.current;if(t===null)throw Error("FindBar input is not mounted");t.focus({preventScroll:!0}),t.select()},[l]);let f=!o;return k("div",{className:h("border-border flex h-9 shrink-0 items-center gap-1 border-b px-2",v),children:[n(s,{ref:r,value:o,onChange:(t)=>d(t.target.value),placeholder:m,className:"h-7 text-xs",onKeyDown:(t)=>{if(t.key==="Escape"){t.preventDefault(),a();return}if(t.key==="Enter"){if(t.preventDefault(),o)i(t.shiftKey)}}}),n(e,{size:"icon",variant:"ghost",className:"size-6",disabled:f,onClick:()=>i(!0),title:c?`${c} (⇧↵)`:"⇧↵",children:n(b,{className:"size-3.5"})}),n(e,{size:"icon",variant:"ghost",className:"size-6",disabled:f,onClick:()=>i(!1),title:u?`${u} (↵)`:"↵",children:n(g,{className:"size-3.5"})}),n(e,{size:"icon",variant:"ghost",className:"size-6",onClick:a,title:"Esc",children:n(z,{className:"size-3.5"})})]})}
|
|
2
|
-
export{gn};
|
package/dist/chunk-6t3tgzps.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var d={ar:{untitled:"دردشة جديدة",quickChats:"دردشات سريعة",retry:"إعادة المحاولة",stop:"إيقاف",rename:"إعادة تسمية",fork:"إنشاء فرع",archive:"أرشفة",unarchive:"استعادة",delete:"حذف",deleteTitle:"حذف هذه الدردشة؟",deleteDescription:"ستُحذف هذه الدردشة نهائيًا. لا يمكن التراجع عن هذا الإجراء.",cancel:"إلغاء",archived:"مؤرشفة"},de:{untitled:"Neuer Chat",quickChats:"Schnelle Chats",retry:"Wiederholen",stop:"Stopp",rename:"Umbenennen",fork:"Verzweigen",archive:"Archivieren",unarchive:"Wiederherstellen",delete:"Löschen",deleteTitle:"Diesen Chat löschen?",deleteDescription:"Dieser Chat wird dauerhaft gelöscht. Dies kann nicht rückgängig gemacht werden.",cancel:"Abbrechen",archived:"Archiviert"},en:{states:{title:"Session status",requires_action:"Needs attention",running:"Running",done:"Unread",idle:"Idle",empty:"No sessions"},untitled:"New chat",quickChats:"Quick chats",showAll:"Show all",retry:"Retry",stop:"Stop",rename:"Rename",fork:"Fork",archive:"Archive",unarchive:"Restore",delete:"Delete",deleteTitle:"Delete this chat?",deleteDescription:"This chat will be permanently deleted. This cannot be undone.",cancel:"Cancel",archived:"Archived",archives:{title:"Archived chats",deleteAll:"Delete all",search:"Search archived chats",chatType:"Chat type",allChats:"All chats",quickChats:"Quick chats",projectChats:"Project chats",project:"Project",allProjects:"All projects",noProject:"No project",count:"{{count}} chats",updatedAt:"Last updated",connecting:"Connect to Codex to view archived chats.",loading:"Loading archived chats…",retry:"Retry",empty:"No archived chats",noResults:"No matching archived chats",deleteTitle:"Delete archived chats?",deleteAllDescription:"Permanently delete these {{count}} archived chats? This cannot be undone. Deleting all includes chats hidden by the current filters.",deleteDescription:"Permanently delete this archived chat? This cannot be undone.",unarchive:"Unarchive",confirmDelete:"Delete permanently"}},es:{untitled:"Nuevo chat",quickChats:"Chats rápidos",retry:"Reintentar",stop:"Detener",rename:"Renombrar",fork:"Crear rama",archive:"Archivar",unarchive:"Restaurar",delete:"Eliminar",deleteTitle:"¿Eliminar este chat?",deleteDescription:"Este chat se eliminará permanentemente. Esta acción no se puede deshacer.",cancel:"Cancelar",archived:"Archivados"},fr:{untitled:"Nouveau chat",quickChats:"Discussions rapides",retry:"Réessayer",stop:"Arrêter",rename:"Renommer",fork:"Créer une branche",archive:"Archiver",unarchive:"Restaurer",delete:"Supprimer",deleteTitle:"Supprimer cette discussion ?",deleteDescription:"Cette discussion sera définitivement supprimée. Cette action est irréversible.",cancel:"Annuler",archived:"Archivées"},hi:{untitled:"नई चैट",quickChats:"त्वरित चैट",retry:"फिर से कोशिश करें",stop:"रोकें",rename:"नाम बदलें",fork:"शाखा बनाएँ",archive:"संग्रहित करें",unarchive:"रीस्टोर करें",delete:"हटाएं",deleteTitle:"यह चैट हटाएँ?",deleteDescription:"यह चैट स्थायी रूप से हटा दी जाएगी। इसे पूर्ववत नहीं किया जा सकता।",cancel:"रद्द करें",archived:"संग्रहीत"},id:{untitled:"Obrolan baru",quickChats:"Chat cepat",retry:"Coba lagi",stop:"Hentikan",rename:"Ganti nama",fork:"Buat cabang",archive:"Arsipkan",unarchive:"Pulihkan",delete:"Hapus",deleteTitle:"Hapus obrolan ini?",deleteDescription:"Obrolan ini akan dihapus permanen. Tindakan ini tidak dapat dibatalkan.",cancel:"Batal",archived:"Diarsipkan"},it:{untitled:"Nuova chat",quickChats:"Chat rapide",retry:"Riprova",stop:"Interrompi",rename:"Rinomina",fork:"Crea un ramo",archive:"Archivia",unarchive:"Ripristina",delete:"Elimina",deleteTitle:"Eliminare questa chat?",deleteDescription:"Questa chat verrà eliminata definitivamente. L’azione non può essere annullata.",cancel:"Annulla",archived:"Archiviate"},ja:{untitled:"新しいチャット",quickChats:"クイックチャット",retry:"再試行",stop:"停止",rename:"名前を変更",fork:"分岐を作成",archive:"アーカイブ",unarchive:"復元",delete:"削除",deleteTitle:"このチャットを削除しますか?",deleteDescription:"このチャットは完全に削除されます。この操作は取り消せません。",cancel:"キャンセル",archived:"アーカイブ済み"},ko:{untitled:"새 채팅",quickChats:"빠른 채팅",retry:"다시 시도",stop:"중지",rename:"이름 바꾸기",fork:"분기 만들기",archive:"보관",unarchive:"복원",delete:"삭제",deleteTitle:"이 채팅을 삭제할까요?",deleteDescription:"이 채팅은 영구적으로 삭제됩니다. 이 작업은 되돌릴 수 없습니다.",cancel:"취소",archived:"보관됨"},"pt-BR":{untitled:"Novo chat",quickChats:"Chats rápidos",retry:"Tentar novamente",stop:"Parar",rename:"Renomear",fork:"Criar ramificação",archive:"Arquivar",unarchive:"Restaurar",delete:"Excluir",deleteTitle:"Excluir esta conversa?",deleteDescription:"Esta conversa será excluída permanentemente. Esta ação não pode ser desfeita.",cancel:"Cancelar",archived:"Arquivadas"},ru:{untitled:"Новый чат",quickChats:"Быстрые чаты",retry:"Повторить",stop:"Остановить",rename:"Переименовать",fork:"Создать ветку",archive:"Архивировать",unarchive:"Восстановить",delete:"Удалить",deleteTitle:"Удалить этот чат?",deleteDescription:"Этот чат будет удалён навсегда. Это действие нельзя отменить.",cancel:"Отмена",archived:"В архиве"},"zh-CN":{states:{title:"会话状态",requires_action:"待处理",running:"运行中",done:"完成未读",idle:"空闲",empty:"暂无会话"},untitled:"新聊天",quickChats:"随聊",showAll:"展开显示",retry:"重试",stop:"停止",rename:"重命名",fork:"分叉",archive:"归档",unarchive:"恢复",delete:"删除",deleteTitle:"删除这个聊天?",deleteDescription:"该聊天将被永久删除。此操作不可撤销。",cancel:"取消",archived:"已归档",archives:{title:"已归档的聊天",deleteAll:"全部删除",search:"搜索已归档的聊天",chatType:"聊天类型",allChats:"全部聊天",quickChats:"快捷聊天",projectChats:"项目聊天",project:"项目",allProjects:"所有项目",noProject:"无项目",count:"{{count}} 个聊天",updatedAt:"最后更新时间",connecting:"连接 Codex 后查看已归档的聊天。",loading:"正在加载已归档的聊天…",retry:"重试",empty:"暂无已归档的聊天",noResults:"没有符合条件的已归档聊天",deleteTitle:"删除已归档的聊天?",deleteAllDescription:"永久删除这 {{count}} 个已归档的聊天?此操作无法撤销。全部删除包含被当前筛选条件隐藏的聊天。",deleteDescription:"永久删除这个已归档的聊天?此操作无法撤销。",unarchive:"取消归档",confirmDelete:"永久删除"}}};
|
|
2
|
-
export{d};
|
package/dist/chunk-6wqbetcx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{PreviewCard as i}from"@base-ui/react/preview-card";import{cn as s}from"cn";import{jsx as r}from"react/jsx-runtime";function Pe({...e}){return r(i.Root,{"data-slot":"hover-card",...e})}function Ne({...e}){return r(i.Trigger,{"data-slot":"hover-card-trigger",...e})}function Me({className:e,side:o="bottom",sideOffset:t=4,align:a="center",alignOffset:d=4,...n}){return r(i.Portal,{"data-slot":"hover-card-portal",children:r(i.Positioner,{align:a,alignOffset:d,side:o,sideOffset:t,className:"isolate z-50",children:r(i.Popup,{"data-slot":"hover-card-content",className:s("z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...n})})})}export{Pe,Ne,Me};
|
package/dist/chunk-75zcgcqm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{No}from"./chunk-c2bkhrcc.js";import{Eo,Ao,Lo}from"./chunk-6nnwmqqp.js";import{Mo}from"./chunk-fexvhys2.js";import{t}from"./chunk-q6km9nha.js";import{Q}from"./chunk-e99sdapw.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 Hr(i,n){return{installUnlock:n==="none"?()=>()=>{}:Ao,preload:()=>{if(n!=="none")Eo(i)},playSequence:(a,d,l)=>Lo(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:Q(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(No,{text:i.response,host:a})})]})}function Po(i){return r(Mo,{...i,renderPreview:(n)=>r(T,{item:n})})}
|
|
2
|
-
export{Hr,Io,Po};
|
package/dist/chunk-7ap638hx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{G}from"./chunk-kmhwwzga.js";import{t}from"./chunk-q6km9nha.js";import{SquareSlashIcon as s}from"lucide-react";import{useRef as l}from"react";import{jsx as r}from"react/jsx-runtime";function En({textareaRef:a,onOpenChange:p,menuOpen:e,disabled:m}){let{t:o}=t(),n=l(!1);return r(G,{"aria-label":o("composer.commands"),title:o("composer.commands"),disabled:m,"aria-pressed":e,onPointerDown:()=>{n.current=e},onClick:()=>{p(!n.current),a.current?.getTextarea()?.focus()},children:r(s,{className:"size-4"})})}
|
|
2
|
-
export{En};
|
package/dist/chunk-7jdjdnh6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Dn}from"./chunk-sf6ze845.js";import{o,C}from"./chunk-0ss92kxr.js";import{N,c}from"./chunk-n1tjf64a.js";import{createLucideIcon as w,HandIcon as y,ShieldAlertIcon as S,ShieldCheckIcon as r}from"lucide-react";import{jsx as t}from"react/jsx-runtime";var O=w("ApprovalShield",[["path",{d:"M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11",key:"shield"}],["path",{d:"m8 8 3 3-3 3M13 15h3",key:"terminal"}]]),u={"read-only":y,"workspace-write":r,agent:O,"agent-full-access":S},b={"read-only":"readOnly","workspace-write":"workspaceAccess",agent:"agent","agent-full-access":"fullAccess"};function ut({sessionId:g,options:m,disabled:f,onConfigChange:l}){let{host:p,client:h}=o(),{t:a}=p,s=c(m,"mode");if(!s)return null;let n=s.currentValue,d=N(s).map((e)=>{let i=b[e.value];return i?{...e,name:a(`permissionModes.${i}.name`),description:a(`permissionModes.${i}.description`)}:e}),I=d.find((e)=>e.value===n),M=u[n]??r,v=(e)=>{if(e===n)return;C(p,l?l(s.configId,e):h.setConfig(g,s.configId,e))};return t(Dn,{value:n,warning:n==="agent-full-access",currentName:I?.name??n,icon:t(M,{className:"size-3.5 shrink-0"}),header:a("permissionModes.heading"),disabled:f,label:a("composer.switchPermissionMode"),onValueChange:v,options:d.map((e)=>{let i=u[e.value]??r,k=e.value==="agent-full-access";return{value:e.value,label:t("span",{"data-permission-warning":k?"":void 0,children:e.name}),description:e.description?t("span",{className:"whitespace-normal",children:e.description}):void 0,icon:t(i,{className:"size-3.5 shrink-0"})}})})}
|
|
2
|
-
export{ut};
|
package/dist/chunk-7wyrcphh.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as t}from"cn";import{jsx as n}from"react/jsx-runtime";function Pt({className:e,...o}){return n("div",{"data-slot":"skeleton",className:t("animate-pulse rounded-md bg-muted",e),...o})}export{Pt};
|
package/dist/chunk-83sz9mv9.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Jn}from"./chunk-2g8targj.js";import{to}from"./chunk-gzeg6bqp.js";import{no}from"./chunk-90wm9rxz.js";import{Be}from"./chunk-yh9qdb2k.js";import{n}from"./chunk-q6km9nha.js";import{o}from"./chunk-0ss92kxr.js";import{isContentEntry as f,isDiffEntry as g,isFormElicitation as x,isText as h,isToolCallSubject as b,isUrlElicitation as w}from"@nyssance/codex-acp-v2/client";import{jsx as a,jsxs as m}from"react/jsx-runtime";function ge(t){return t.kind==="elicitation"&&x(t.params)}function y(t){let e=t._meta?.codex;if(typeof e!=="object"||e===null)return null;let s=e.description;return typeof s==="string"?s:null}function A(t){let e=t.rawInput;if(typeof e!=="object"||e===null)return null;let s=e.command;if(typeof s==="string")return s;if(Array.isArray(s))return s.map(String).join(" ");return null}function v(t){for(let e of t.content??[])if(g(e)&&e.patch&&e.patch.text.length>0)return e.patch.text;return null}function R(t){return(t.content??[]).filter(f).map((e)=>h(e.content)?e.content.text:"").filter((e)=>e.length>0).join(`
|
|
2
|
-
`)}function T({subject:t,requestTitle:e}){let{host:s}=o();if(!b(t))return null;let r=t.toolCall,l=A(r),i=v(r),c=R(r),p=s.toolTitle?.(r)??r.title;return m("div",{className:"flex flex-col gap-2",children:[p&&p!==e&&l===null&&a("div",{className:"text-sm font-medium",children:p}),l!==null&&m("pre",{className:"bg-muted overflow-x-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:[a("span",{className:"text-muted-foreground select-none",children:"$ "}),l]}),i!==null&&a("div",{className:"max-h-80 overflow-auto rounded-lg border","data-stream-style":"codexUI",children:a(Be,{patch:i,theme:s.theme})}),i===null&&l===null&&c.length>0&&a("pre",{className:"bg-muted max-h-60 overflow-auto rounded-lg p-3 font-mono text-xs whitespace-pre-wrap",children:c}),(r.locations??[]).length>0&&a("ul",{className:"text-muted-foreground flex flex-col gap-0.5 text-xs",children:(r.locations??[]).map((u)=>a("li",{className:"truncate font-mono",children:u.path},`${u.path}:${u.line??""}`))})]})}function d(t,e){let{host:s,client:r}=o();return(l)=>{try{if(e)e(t.id,l);else r.respond(t.id,l)}catch(i){if(s.reportError)s.reportError(i);else console.error(i)}}}function C({action:t,total:e,onRespond:s}){let{host:r}=o(),l=d(t,s),i=t.params,c=r.permissionTitle?.(i)??i.title;return m(Jn,{requestId:t.id,title:c,alwaysLabel:r.t("approval.always"),autoFocus:"if-idle",total:e,options:i.options.map((p)=>({...p,description:y(p)??void 0})),onRespond:(p)=>l({outcome:p===null?{outcome:"cancelled"}:{outcome:"selected",optionId:p}}),children:[i.description&&a("div",{className:"text-muted-foreground mt-0.5 text-xs",children:i.description}),i.subject&&a(T,{subject:i.subject,requestTitle:c})]})}function Oe({action:t,total:e,onRespond:s}){let{host:r}=o(),l=d(t,s),i=n((c)=>t.sessionId===null?void 0:c.sessions[t.sessionId]);return a(to,{requestId:t.id,schema:t.params.requestedSchema,message:i?.subagent?`${i.title??r.t("subagents.untitled")}: ${t.params.message}`:t.params.message,total:e,t:r.t,onRespond:l})}function ft({action:t,total:e,onRespond:s}){let{host:r}=o(),l=d(t,s);if(t.kind==="permission")return a(C,{action:t,total:e,onRespond:s});if(ge(t))return a(Oe,{action:t,total:e??1,onRespond:s});let i=t.params;if(!w(i))throw Error("Unsupported elicitation mode");return a(no,{message:i.message,url:i.url,t:r.t,onOpen:r.openLink,onRespond:(c)=>l(c==="cancel"?{action:"cancel"}:{action:"decline"})})}
|
|
3
|
-
export{ge,Oe,ft};
|
package/dist/chunk-88cfz41t.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function fn(t){return Object.entries(t.properties??{}).map(([n,e])=>({key:n,property:e}))}function It(t){let{title:n,description:e}=t;return{title:n??void 0,description:e??void 0}}function ae(t){return t.type==="array"}function Ke(t){return(ae(t)?t.items?.oneOf??[]:t.oneOf??[]).map((e)=>{let i=e,r=i.const??i.title??"";return{value:r,label:i.title??r,...i.description?{description:i.description}:{},...i._meta?.alwith?.preview?{preview:i._meta.alwith.preview}:{}}})}
|
|
2
|
-
export{fn,It,ae,Ke};
|
package/dist/chunk-8bfnjqkg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_e}from"./chunk-cazdmcwd.js";import{G,Gn}from"./chunk-kmhwwzga.js";import{t}from"./chunk-q6km9nha.js";import{zn}from"./chunk-9j609g4n.js";import{ue,me,pe}from"./chunk-ea3582qy.js";import{cn as d}from"cn";import{SquareIcon as b}from"lucide-react";import{jsx as o,jsxs as n,Fragment as h}from"react/jsx-runtime";var f=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform);function Bn({active:a,sending:r,ready:p,hasMentions:m=!1,onStop:c}){let{t:e}=t(),s=_e(),u=m||s.textInput.value.trim().length>0||s.attachments.files.length>0,l=!p||r||!u,i=a?e("composer.steer"):e("composer.send");return n(h,{children:[a&&o(G,{"aria-label":e("composer.stop"),title:e("composer.stop"),className:"border-border size-7 rounded-full border",onClick:c,children:o(b,{className:"size-3 fill-current"})}),o("div",{className:d(l&&"cursor-not-allowed"),children:n(ue,{children:[o(me,{render:o(Gn,{"aria-label":i,disabled:l,"aria-busy":r,status:r?"submitted":"ready"})}),n(pe,{role:"tooltip",children:[o("span",{className:"min-w-0",children:i}),o(zn,{className:"shrink-0",children:f?"↩":"Enter"})]})]})})]})}
|
|
2
|
-
export{Bn};
|
package/dist/chunk-8g09jrj1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{nt,J}from"./chunk-tq6ekz3s.js";import{_}from"./chunk-2pj3pcc7.js";import{q}from"./chunk-djmnmbm2.js";import{ee}from"./chunk-3919sqde.js";import{Se,ce,Ie}from"./chunk-2r3sfmyf.js";import{PreviewCard as x}from"@base-ui/react/preview-card";import{cn as p}from"cn";import{LockIcon as I}from"lucide-react";import{createContext as S,useContext as k,useLayoutEffect as T,useState as R}from"react";import"@alwith/module-chat/session-list.css";import{jsx as e,jsxs as d,Fragment as G}from"react/jsx-runtime";function vn(o){if(o.as==="ul"){let{as:i,className:r,...a}=o;return e("ul",{className:p("flex w-full min-w-0 flex-col gap-0.5",r),...a})}let{as:t,className:n,...s}=o;return e("div",{className:p("flex w-full min-w-0 flex-col gap-0.5",n),...s})}function Te({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 Ze({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-[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 Lt({open:o,onOpenChange:t,tooltip:n,leading:s,label:i,count:r,countLabel:a,active:l=!1,actions:N,headerChildren:f,wrapHeader:u,onHeaderClick:w,children:C}){let b=()=>{w?.(),t(!o)},m=p(Se,"relative flex h-[30px] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-start [corner-shape:superellipse(1.5)]"),h=d(G,{children:[s!=null&&e(Te,{children:s}),f??e(_,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(Ie,{content:r!==void 0?e(ce,{className:p("text-muted-foreground justify-end text-xs opacity-70",a&&"w-auto"),children:e("span",{dir:"ltr",children:a??r})}):void 0,actions:N})})]}),P=f==null?d("div",{"data-active":l?"":void 0,title:n,className:p(m,J),onClick:b,onKeyDown:(c)=>{if(c.target!==c.currentTarget)return;if(c.key!=="Enter"&&c.key!==" ")return;c.preventDefault(),b()},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]"}),h]}):e("div",{"data-active":l?"":void 0,className:m,children:h});return d("div",{className:"text-[#1a1c1f] dark:text-white",children:[u===void 0?P:u(P),o&&e(vn,{className:"mt-0.5",children:C})]})}var H=S(()=>{}),O=S(()=>{});function Je(){return k(O)}function et(){return k(H)}function tt({active:o=!1,state:t,interruption:n=null,leased:s=!1,media:i,title:r,hoverCard:a,onHoverCardOpenChange:l,subtitle:N,preview:f,listeningPorts:u,onOpenPort:w,accessory:C,meta:b,hint:m,actions:h,className:P,...c}){let y=d("div",{"data-slot":"navigation-session-item","data-active":o,className:p(Se,nt,"group/navigation-row focus-visible:outline-ring flex h-[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]",(f||u!=null&&u.length>0)&&"h-auto min-h-[30px] py-2.5",P),...c,children:[e(Te,{children:t!=null?e(q,{state:t,title:n??void 0}):i}),d("span",{className:"flex min-w-0 flex-1 flex-col",children:[e(_,{className:p("leading-none",t==="done"&&"font-semibold"),children:r}),N!=null&&e(_,{className:"text-muted-foreground text-xs",children:N}),f&&e("span",{className:"text-muted-foreground mt-1.5 line-clamp-2 text-xs leading-[18px] [overflow-wrap:anywhere] break-words",children:f}),u!=null&&u.length>0&&e("span",{className:"text-muted-foreground mt-1.5 flex flex-wrap items-center gap-2 font-mono text-xs",children:u.map((v)=>w?d("button",{type:"button",className:"underline",onPointerDown:(g)=>g.stopPropagation(),onKeyDown:(g)=>g.stopPropagation(),onClick:(g)=>{g.stopPropagation(),w(v)},children:[":",v]},v):d("span",{children:[":",v]},v))})]}),d("span",{className:"relative ms-auto flex shrink-0 items-center gap-1",children:[s&&e(I,{className:"text-muted-foreground size-3"}),e(Ie,{content:C!=null?e(ce,{children:C}):b??e(ce,{}),actions:h}),m!=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:m})]})]});if(a==null)return y;return e(L,{row:y,onOpenChange:l,children:a})}function L({row:o,children:t,onOpenChange:n}){let[s,i]=R(!1),[r,a]=R(!1),l=s||r;return T(()=>(n?.(l),()=>n?.(!1)),[l,n]),e(H.Provider,{value:a,children:e(O.Provider,{value:()=>{i(!1),a(!1)},children:e(E,{open:l,onOpenChange:i,trigger:o,children:t})})})}function E({open:o,onOpenChange:t,trigger:n,children:s,side:i="inline-end",sideOffset:r=2,align:a="start",alignOffset:l}){return ee(o),d(x.Root,{open:o,onOpenChange:t,children:[e(x.Trigger,{render:n,delay:700,closeDelay:100}),e(x.Portal,{children:e(x.Positioner,{side:i,sideOffset:r,align:a,alignOffset:l,className:"isolate z-50",children:e(x.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:s})})})})]})}
|
|
2
|
-
export{vn,Te,Ze,Lt,Je,et,tt};
|
package/dist/chunk-8v1bjdgv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zn,y}from"./chunk-cazdmcwd.js";import{kn}from"./chunk-sespfp7t.js";import{ne}from"./chunk-bj5ma2sv.js";import{Un,$n,qn,Vn,Wn,G}from"./chunk-kmhwwzga.js";import{In,Pn}from"./chunk-074x98ak.js";import{_t}from"./chunk-h99fy0g3.js";import{t,n}from"./chunk-q6km9nha.js";import{o}from"./chunk-0ss92kxr.js";import{Ot}from"./chunk-afd3bq7v.js";import{i,sr,L,wt}from"./chunk-2swp3nfs.js";import{dt}from"./chunk-mzh48e09.js";import{de,gt}from"./chunk-59j0p8hy.js";import{kt,Tt}from"./chunk-w1awbykg.js";import{lr}from"./chunk-c1vavp0q.js";import{pt}from"./chunk-bew4srqj.js";import{Ln}from"./chunk-qca5mhqd.js";import{ut}from"./chunk-7jdjdnh6.js";import{mt}from"./chunk-0dnwqm94.js";import{En}from"./chunk-7ap638hx.js";import{Bn}from"./chunk-8bfnjqkg.js";import{ct}from"./chunk-d94rmh12.js";import{hasFuzzyFileSearch as Lt}from"@nyssance/codex-acp-v2/client";import{PlusIcon as zt}from"lucide-react";import{useCallback as O,useEffect as Ut,useLayoutEffect as Q,useMemo as Z,useRef as V,useState as S}from"react";import{jsx as c,jsxs as I}from"react/jsx-runtime";var Wt=["image/png","image/jpeg","image/webp","image/gif"],tt=[];async function jt(e){let d=await(await fetch(e.url)).blob();return new Promise((l,E)=>{let T=new FileReader;T.onerror=()=>E(T.error),T.onload=()=>{let _=T.result;l(_.slice(_.indexOf(",")+1))},T.readAsDataURL(d)})}function Ht(e){let{t:d}=t(),l=y();return c(G,{"aria-label":d("composer.attachImage"),title:d("composer.attachImage"),onClick:()=>l.openFileDialog(),...e,children:c(zt,{className:"size-4"})})}function st({session:e,onSubmit:d,onShellCommand:l,onHandOff:E,modelSelector:T,modelMenu:_,inputHeader:et,actions:bt,children:vt,attachmentPolicy:It,predictions:At=!0,disabled:Mt=!1,preparing:rt=!1,allowPendingInput:Ct=!1}){let{host:F,client:R}=o(),{t:p}=F,k=O((r)=>{if(F.reportError)F.reportError(r);else console.error(r)},[F]),[nt,D]=S(()=>({text:i.get(e.id)?.text??"",revision:0})),{text:b}=nt,[A,Et]=S(()=>i.get(e.id)?.attachments??tt),[u,z]=S(()=>i.get(e.id)?.mentions??[]),X=A.some((r)=>de(r)&&r.pastedText.status!=="ready"),[M,ot]=S(!1),[U,Rt]=S(!1),[q,at]=S(!1),f=V(null),it=V(null),a=V(nt),W=O((r)=>{it.current?.(),a.current={text:r,revision:a.current.revision+1},D(a.current)},[]),lt=Z(()=>({read:()=>{let s=f.current?.getTextarea(),g=s===null||s===void 0?[a.current.text.length,a.current.text.length]:[s.selectionStart,s.selectionEnd];return{target:e.id,...a.current,selection:g}},compareAndSet(s,g,C){if(s.target!==e.id||s.revision!==a.current.revision)return null;a.current={text:g,revision:a.current.revision+1},D(a.current);let x=f.current?.getTextarea();if(x!==null&&x!==void 0)x.value=g,x.setSelectionRange(C[0],C[1]);return{target:e.id,...a.current,selection:C}}}),[e.id]),B=V(null),ft=O((r)=>(B.current=r,()=>{if(B.current===r)B.current=null}),[]),j=e.state!=="idle",v=l!==void 0&&b.startsWith("!"),h=!Mt&&!rt&&e.attached&&!e.restoring&&!e.readOnly,N=!e.readOnly&&(Ct||h),H=mt(e,h&&!M&&!U&&!X&&!q,b.length>0||A.length>0||u.length>0,At&&!v),ht=H.invalidate;Q(()=>{i.set(e.id,{text:b,attachments:A,mentions:u,modelId:i.get(e.id)?.modelId??null})},[e.id,b,A,u]),Q(()=>sr(e.id,Et),[e.id]),Q(()=>wt(e.id,(r)=>{if(!N||M)throw Error("The composer cannot take text now; try again later");if(b.length||A.length||u.length)throw Error("The composer already has a draft; send or clear it first");W(r)}),[e.id,N,M,b,A,u,W]);let xt=n((r)=>Lt(r.agent)),Nt=Z(()=>xt&&h?async(r)=>dt((await R.fuzzyFileSearch({query:r,roots:[e.cwd]})).files):void 0,[R,xt,h,e.cwd]),J=O((r)=>{z((s)=>s.includes(r)?s:[...s,r])},[]);Ut(()=>{f.current?.focus()},[]);let yt=O(async({text:r,files:s})=>{let g=l!==void 0&&r.startsWith("!")?r.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(e.state!=="idle")throw Error("Wait for the current turn before running a shell command")}let C=r.trim();if(C.length===0&&s.length===0&&u.length===0)return;let x=B.current;ot(!0);let w=i.get(e.id),Bt=a.current.revision,K=null;try{let P=[];for(let m of u){let Y={kind:"file",absPath:m};P.push({type:"resource_link",uri:kt(Y),name:Tt(Y)})}if(C.length>0)P.push({type:"text",text:C});for(let m of s)if(de(m)){if(m.pastedText.status!=="ready")throw Error("Text attachment is not ready");P.push({type:"resource_link",uri:m.url,name:m.filename??"pasted-text.txt"})}else P.push({type:"image",data:await jt(m),mimeType:m.mediaType});if(a.current.revision===Bt&&i.get(e.id)===w)a.current={text:"",revision:a.current.revision+1},K=a.current.revision,D(a.current),z([]),L(e.id,()=>tt),i.set(e.id,{text:"",attachments:tt,mentions:[],modelId:w?.modelId??null}),f.current?.resetHeight();if(g!==null&&l)await l(g);else if(d)if(x===null)await d(P);else await d(P,(m)=>{if(x.signal.aborted||B.current!==x)return;x.accept(m),E?.(e.id,m)});else if(x===null)await R.prompt(e.id,P);else{let m=await R.prompt(e.id,P);x.accept(m)}ht();for(let m of w?.attachments??[])if(m.url.startsWith("blob:")&&!i.get(e.id)?.attachments.some((Y)=>Y.id===m.id))URL.revokeObjectURL(m.url)}catch(P){if(w&&K!==null&&a.current.revision===K&&i.get(e.id)?.attachments.length===0&&i.get(e.id)?.mentions.length===0)a.current={text:w.text,revision:K+1},D(a.current),z(w.mentions),i.set(e.id,w),L(e.id,()=>w.attachments);throw P}finally{ot(!1),f.current?.focus()}},[R,e.id,e.state,u,d,l,E,ht]),St=()=>{R.cancel(e.id).catch(k)},Ft=O((r)=>{let s=r.code==="max_total_size"?Object.assign(Error(p("composer.imageTooLargeTitle")),{description:p("composer.imageTooLargeDescription",{mb:ne})}):Object.assign(Error(p("composer.unsupportedAttachmentTitle")),{description:p("composer.unsupportedAttachmentDescription")});k(s)},[k,p]),Dt=Z(()=>({session:e,ready:h,inputReady:N,sending:M,textareaRef:f,draft:lt,interruptRef:it,observeReceipts:ft,addMention:J,setAdding:Rt,shellMode:v,handsFree:!v&&(d===void 0||E!==void 0)}),[e,h,N,M,lt,ft,J,d,E,v]),Pt=F.writeTextAttachment;return c(Ot,{value:Dt,children:c("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:I("div",{className:"relative",children:[et&&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:et}),I(Zn,{attachmentPolicy:It,value:b,revision:a.current.revision,onValueChange:W,onSubmittedClear:()=>{a.current={text:"",revision:a.current.revision+1},D(a.current)},attachments:A,onAttachmentsChange:(r)=>L(e.id,()=>r),children:[c(kn,{bashMode:l!==void 0,handleRef:f,commands:e.commands,searchFiles:Nt,onMention:J,onSearchError:k,forcedOpen:q,onForcedOpenChange:at,emptyLabel:p("composer.noCommands"),fileStatusLabels:{loading:p("composer.searchingFiles"),empty:p("composer.noMatchingFiles")}}),I(Un,{"data-shell-mode":v||void 0,bashMode:l!==void 0,globalDrop:!0,multiple:!0,accept:Wt.join(","),onError:Ft,onSubmit:yt,onSubmitAsync:yt,onSubmitError:k,canSubmit:()=>h&&!M&&!U&&!X&&(!v||!j&&b.slice(1).trim().length>0)?!0:"chat_not_ready",className:"relative z-10",children:[vt,I(qn,{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(lr,{mentions:u,onRemove:(r)=>z((s)=>s.filter((g)=>g!==r))}),c(Pn,{children:(r)=>de(r)?c(Ln,{data:r,sessionId:e.id}):c(In,{data:r,t:p})})]}),I($n,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(r)=>{if(!H.text||f.current?.isComposing()||r.nativeEvent.isComposing||r.nativeEvent.keyCode===229||r.shiftKey||r.ctrlKey||r.altKey||r.metaKey||r.target!==f.current?.getTextarea())return;if(r.key==="Tab")r.preventDefault(),r.stopPropagation(),W(H.text)},children:[v&&c("span",{"data-shell-prefix":!0,"aria-hidden":"true",className:"text-destructive self-start pt-0.5 text-sm",children:"❗"}),c(_t,{className:"min-h-10 bg-transparent text-sm font-normal",ref:f,rows:2,bashMode:l!==void 0,disabled:!N,onPasteCapture:Pt?(r)=>gt(r,e.id,p("composer.pastedTextFilename"),Pt):void 0,placeholder:v?"! command":H.text||(j?p("composer.steerPlaceholder"):p("composer.placeholder")),"aria-label":p("composer.placeholder")})]}),c(Vn,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:I("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[I("div",{className:"flex min-w-0 items-center gap-[5px]",children:[c(Ht,{className:"text-foreground",disabled:!N}),c(En,{textareaRef:f,menuOpen:q,onOpenChange:at,disabled:!h||e.commands.length===0}),c(ut,{sessionId:e.id,options:e.configOptions,disabled:!h})]}),I(Wn,{className:"w-full min-w-0 items-center justify-end gap-1",children:[c(ct,{session:e}),T??c(pt,{..._,sessionId:e.id,options:e.configOptions,disabled:!h}),bt,c(Bn,{active:j,sending:M||rt||U,ready:h&&!X&&(!v||!j&&b.slice(1).trim().length>0),hasMentions:u.length>0,onStop:St})]})]})})]})]})]})})})}
|
|
2
|
-
export{st};
|
package/dist/chunk-90wm9rxz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{oo,ro,io,ao,so,lo}from"./chunk-mr1azhef.js";import{ExternalLinkIcon as d}from"lucide-react";import{jsx as a,jsxs as n}from"react/jsx-runtime";function no({message:r,url:t,t:i,onOpen:l,onRespond:o}){return n(oo,{size:"sm",children:[n(ro,{children:[a(ao,{children:i("approval.needed")}),a(io,{children:r})]}),a(so,{children:n("div",{className:"flex flex-col gap-3",children:[n(e,{variant:"outline",size:"sm",className:"w-fit",onClick:()=>void l(t),children:[a(d,{"data-icon":"inline-start"}),i("approval.openLink")]}),a("p",{className:"text-muted-foreground text-sm",children:i("approval.waitingForLink")})]})}),n(lo,{className:"flex flex-wrap gap-2",children:[a(e,{variant:"outline",size:"sm",onClick:()=>o("decline"),children:i("actions.decline")}),a(e,{variant:"ghost",size:"sm",onClick:()=>o("cancel"),children:i("actions.cancel")})]})]})}
|
|
2
|
-
export{no};
|
package/dist/chunk-91h14q3y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{t}from"./chunk-q6km9nha.js";import{codexTurnError as h}from"@nyssance/codex-acp-v2/client";import{AlertCircleIcon as R}from"lucide-react";import{useEffect as C,useRef as u,useState as i}from"react";import{jsx as o,jsxs as m}from"react/jsx-runtime";function sn({children:c}){return m("div",{className:"codex-error-message",role:"alert",children:[o(R,{"aria-hidden":"true"}),o("div",{className:"min-w-0 flex-1",children:c})]})}function ln({error:c,retry:r}){let{t:f}=t(),p=h(c),[l]=i(()=>r?.delaySeconds==null?null:Date.now()+r.delaySeconds*1000),[v,y]=i(r?.delaySeconds??null),[T,x]=i(!1),[g,w]=i(null),a=u(!1),E=u(!1),S=u(r?.run);S.current=r?.run;let b=u((N)=>{let s=S.current;if(a.current||s===void 0)return;a.current=!0,x(!0),w(null),s(N).catch((n)=>{E.current=!0,a.current=!1,y(null),x(!1),w(n instanceof Error?n.message:String(n))})}),d=r!==void 0&&p.retryable;return C(()=>{if(!d||l===null)return;let s=setInterval(()=>{if(E.current||a.current)return;let n=Math.max(0,Math.ceil((l-Date.now())/1000));if(y(n),n===0)b.current("automatic")},1000);return()=>clearInterval(s)},[l,d]),m(sn,{children:[m("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[o("div",{className:"min-w-0 flex-1 whitespace-pre-wrap",children:p.message}),d&&o(e,{variant:"outline",size:"sm",disabled:T,onClick:()=>b.current("manual"),children:v===null?f("timeline.retry"):f("timeline.retryCountdown",{seconds:v})})]}),g!==null&&o("div",{className:"text-muted-foreground mt-2 text-sm",children:g})]})}
|
|
2
|
-
export{sn,ln};
|
package/dist/chunk-96x0d2vd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Input as t}from"@base-ui/react/input";import{cn as n}from"cn";import{jsx as o}from"react/jsx-runtime";function s({className:i,type:e,...r}){return o(t,{type:e,"data-slot":"input",className:n("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",i),...r})}export{s};
|
package/dist/chunk-9gv1zffv.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{mergeProps as a}from"@base-ui/react/merge-props";import{useRender as n}from"@base-ui/react/use-render";import{cva as o}from"class-variance-authority";import{cn as s}from"cn";var Gr=o("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function We({className:r,variant:e="default",render:t,...i}){return n({defaultTagName:"span",props:a({className:s(Gr({variant:e}),r)},i),render:t,state:{slot:"badge",variant:e}})}export{Gr,We};
|
package/dist/chunk-9j609g4n.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as e}from"cn";import{jsx as o}from"react/jsx-runtime";function zn({className:t,...n}){return o("kbd",{"data-slot":"kbd",className:e("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3",t),...n})}function ni({className:t,...n}){return o("kbd",{"data-slot":"kbd-group",className:e("inline-flex items-center gap-1",t),...n})}export{zn,ni};
|
package/dist/chunk-afd3bq7v.js
DELETED
package/dist/chunk-bew4srqj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_n}from"./chunk-ebmbz9tg.js";import{n}from"./chunk-q6km9nha.js";import{o,C}from"./chunk-0ss92kxr.js";import{N,c,M}from"./chunk-n1tjf64a.js";import{isBooleanOption as A,isGroupedSelect as Z,isSelectOption as D}from"@nyssance/codex-acp-v2/client";import{Zap as F}from"lucide-react";import{useRef as H}from"react";import{jsx as G}from"react/jsx-runtime";function pt({sessionId:l,options:p,disabled:I,onModelChange:O,onConfigChange:_,defaultGroup:x={id:"models",name:"Models"},catalog:L=(f)=>f,headerAction:P}){let{host:f,client:k}=o(),{t:i}=f,z=n((e)=>Boolean(e.configPending[l])),g=H({sessionId:l,model:!0}),v=z&&(g.current.sessionId!==l||g.current.model),R=n((e)=>{let r=e.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),t=c(p,"model"),a=c(p,"thought_level"),S=p.filter((e)=>e.configId!=="collaboration_mode"&&(e.category==="model_config"||e.category!=="mode"&&e!==t&&e!==a)),V=S.filter(D),m=S.filter(A);if(!t&&!a&&V.length===0&&m.length===0)return null;let u=(e,r)=>{if(r===e.currentValue)return Promise.resolve();g.current={sessionId:l,model:e===t};let d=_?_(e.configId,r):k.setConfig(l,e.configId,r);return C(f,d),d},h=a?N(a):[],E=h.reduce((e,r)=>r.name.length>=e.length?r.name:e,""),U=t?M(t):i("composer.model"),y=(e)=>({api_id:e.value,label:e.name}),w=L(t&&Z(t.options)?t.options.map((e)=>({id:e.groupId,name:e.name,models:e.options.map(y)})):[{...x,models:t?N(t).map(y):[]}]),B=w.flatMap((e)=>e.models),b=B.find((e)=>e.api_id===t?.currentValue)??{api_id:t?.currentValue??"",label:U},s=m.find((e)=>e.configId==="fast_mode"||e.configId==="fast-mode");return G(_n,{disabled:I||v||R,switching:v,value:{...b,label:b.shortLabel??b.label},compactCatalog:!0,models:B,showModelList:Boolean(t),onChange:(e)=>{if(e.api_id===t?.currentValue)return;if(O)O(e.api_id);else if(t)u(t,e.api_id)},header:{name:t?.name??i("composer.model"),action:P},modelGroups:w,t:i,effortConfig:a&&h.length>0?{name:"Effort",value:a.currentValue,levels:h,sizer:E,onChange:(e)=>u(a,e)}:void 0,selectOptions:V.map((e)=>({id:e.configId,name:e.name,value:e.currentValue,options:N(e).map((r)=>({value:r.value,label:r.name})),onChange:(r)=>u(e,r)})),booleanOptions:[{id:"fast_mode",name:i("composer.fastMode"),currentValue:s?.currentValue??!1,disabled:!s,title:!s?i("composer.fastModeUnsupported"):void 0,icon:G(F,{className:"size-4","aria-hidden":"true"})},...m.filter((e)=>e!==s).map((e)=>({id:e.configId,name:e.name,currentValue:e.currentValue}))],onBooleanChange:(e,r)=>{let d=e==="fast_mode"?s:m.find((q)=>q.configId===e);if(!d)throw Error(`Unknown boolean config: ${e}`);u(d,r)}})}
|
|
2
|
-
export{pt};
|
package/dist/chunk-bj5ma2sv.js
DELETED
package/dist/chunk-bv4adcrd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{H,F,S,O,te,I}from"./chunk-h68f23r0.js";import{q}from"./chunk-djmnmbm2.js";import{jsx as t,jsxs as r}from"react/jsx-runtime";var u=["requires_action","running","done","idle"];function mr({sessions:l,onSelect:p,t:o}){return t("div",{className:"flex shrink-0 items-center gap-0.5",role:"group","aria-label":o("sessionList.states.title"),children:u.map((s)=>{let a=l.filter((n)=>n.state===s),i=o(`sessionList.states.${s}`);return r(H,{children:[r(F,{render:t(e,{variant:"ghost",size:"xs"}),"aria-label":`${i}: ${a.length}`,children:[t(q,{state:s,pulse:!1}),t("span",{className:"tabular-nums",children:a.length})]}),t(S,{"aria-label":i,className:"w-72 max-w-[calc(100vw-1rem)]",children:r(O,{children:[t(te,{children:i}),a.length===0?t(I,{disabled:!0,children:o("sessionList.states.empty")}):a.map((n)=>r(I,{onClick:()=>p(n),children:[t(q,{state:n.state,pulse:!1}),t("span",{className:"min-w-0 flex-1 truncate",children:n.title||o("sessionList.untitled")})]},n.sessionId))]})})]},s)})})}
|
|
2
|
-
export{mr};
|
package/dist/chunk-c1vavp0q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t}from"./chunk-q6km9nha.js";import{We}from"./chunk-9gv1zffv.js";import{e}from"./chunk-wpdn3rx8.js";import{Ct}from"./chunk-w1awbykg.js";import{FileIcon as m,XIcon as r}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function lr({mentions:n,onRemove:s}){let{t:i}=t();if(n.length===0)return null;return a("div",{className:"mb-1.5 flex flex-wrap items-center gap-1.5",children:n.map((o)=>l(We,{variant:"secondary",className:"gap-1 pe-0.5",title:o,children:[a(m,{className:"size-3"}),a("span",{className:"max-w-40 truncate",children:Ct(o)}),a(e,{type:"button",variant:"ghost",size:"icon-xs",className:"size-4","aria-label":i("composer.removeMention",{name:Ct(o)}),onClick:()=>s(o),children:a(r,{className:"size-3"})})]},o))})}
|
|
2
|
-
export{lr};
|
package/dist/chunk-c26vy827.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{g,l,ot,r,T}from"./chunk-da4m33bg.js";import{U}from"./chunk-ykp85wc1.js";import{tt}from"./chunk-8g09jrj1.js";import{Ye}from"./chunk-frbeen15.js";import{Ce,Qe}from"./chunk-vp8fb7r8.js";import{hasRename as L}from"@nyssance/codex-acp-v2/client";import{ArchiveIcon as F,ArchiveRestoreIcon as D,GitForkIcon as x,PencilIcon as A,Trash2Icon as H}from"lucide-react";import{useRef as N,useState as I}from"react";import{jsx as n,jsxs as C,Fragment as y}from"react/jsx-runtime";function At({sessionRow:e,active:f,onSelect:u,onForked:p=u,onHoverCardOpenChange:i,actions:a}){let t=g(),{t:m,i18n:v}=t,S=l(),c=r((o)=>o.runStates[e.sessionId]),k=ot(),d=()=>u(e);return n(tt,{"data-session-id":e.sessionId,role:"button",tabIndex:0,active:f,onClick:d,onKeyDown:(o)=>{if(o.key==="Enter"||o.key===" ")o.preventDefault(),d()},state:c?.state,interruption:c?.interruption??null,title:e.title??m("sessionList.untitled"),onHoverCardOpenChange:i,hoverCard:n(R,{sessionRow:e,onDelete:()=>k(e),onForked:p,actions:a}),meta:e.updatedAt!==null?n("span",{className:"text-muted-foreground shrink-0 text-xs",children:Ce(e.updatedAt,v.language)}):void 0,actions:c!=null?n(Ye,{title:m("sessionList.stop"),onStop:()=>T(t,S.stopSession(e.sessionId))}):void 0})}function R({sessionRow:e,onDelete:f,onForked:u,actions:p}){let i=g(),{t:a}=i,t=l(),m=r((s)=>L(s.agent)),v=r((s)=>s.connection==="ready"&&s.agent?.capabilities?.session?.fork!=null),[S,c]=I(!1),[k,d]=I(!1),o=N(!1);return n(Qe,{sessionRow:e,renaming:S,onRename:(s)=>{if(c(!1),s!==null)T(i,t.renameSession(e.sessionId,s))},actions:C(y,{children:[m&&n(U,{icon:n(A,{}),label:a("sessionList.rename"),onClick:()=>c(!0)}),p,e.archived?n(U,{icon:n(D,{}),label:a("sessionList.unarchive"),onClick:()=>void T(i,t.unarchive(e.sessionId))}):C(y,{children:[n(U,{icon:n(x,{}),label:a("sessionList.fork"),disabled:!v||k,onClick:()=>{if(o.current)return;o.current=!0,d(!0),T(i,t.fork(e.sessionId,e.cwd).then((s)=>{let h=t.state.sessionList.find((b)=>b.sessionId===s);if(!h)throw Error("Forked chat is missing from the session list");u(h)}).finally(()=>{o.current=!1,d(!1)}))}}),n(U,{icon:n(F,{}),label:a("sessionList.archive"),onClick:()=>void T(i,t.archive(e.sessionId))})]}),n(U,{variant:"destructive",icon:n(H,{}),label:a("sessionList.delete"),onClick:f})]})})}
|
|
2
|
-
export{At};
|
package/dist/chunk-cc0tan75.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{x}from"./chunk-qxabrz98.js";import{X}from"./chunk-s0ef3h7b.js";import{isPlanItems as n,isPlanMarkdown as r}from"@nyssance/codex-acp-v2/client";import{jsx as e}from"react/jsx-runtime";function ar({plan:t}){if(r(t))return e("div",{className:"codex-reasoning-details",children:e(x,{text:t.content,streaming:!1})});if(!n(t))return null;return e(X,{entries:t.entries})}
|
|
2
|
-
export{ar};
|
package/dist/chunk-d5ga13n0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cva as o}from"class-variance-authority";import{cn as n}from"cn";import{jsx as a}from"react/jsx-runtime";function he({className:e,...t}){return a("div",{"data-slot":"empty",className:n("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-lg border-dashed p-12 text-center text-balance",e),...t})}function ve({className:e,...t}){return a("div",{"data-slot":"empty-header",className:n("flex max-w-sm flex-col items-center gap-2",e),...t})}var i=o("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function bi({className:e,variant:t="default",...r}){return a("div",{"data-slot":"empty-icon","data-variant":t,className:n(i({variant:t,className:e})),...r})}function xe({className:e,...t}){return a("div",{"data-slot":"empty-title",className:n("text-lg font-medium tracking-tight",e),...t})}function ye({className:e,...t}){return a("div",{"data-slot":"empty-description",className:n("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function wi({className:e,...t}){return a("div",{"data-slot":"empty-content",className:n("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),...t})}export{he,ve,bi,xe,ye,wi};
|
package/dist/chunk-d94rmh12.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n}from"./chunk-q6km9nha.js";import{Pe,Ne,Me}from"./chunk-6wqbetcx.js";import{o}from"./chunk-0ss92kxr.js";import{c,M}from"./chunk-n1tjf64a.js";import{hasAccount as L,isGroupedSelect as H}from"@nyssance/codex-acp-v2/client";import{cn as W}from"cn";import{useEffect as T,useState as F}from"react";import{jsx as r,jsxs as u}from"react/jsx-runtime";var p=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),z=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),O=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function g(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function A(a,t){let e=Math.min(100,a/t*100),f=e>=90?"text-destructive":e>=70?"text-foreground":"text-muted-foreground";return{pct:e,className:f}}function I(a){let t=c(a.configOptions,"model");return t===void 0?void 0:M(t)}function An(a,t){let e=a.windowDurationMins;if(e===null)return t("usage.usage");if(e%1440===0)return t("usage.windowDays",{count:e/1440});return t("usage.windowHours",{count:Math.round(e/60)})}function U(a){let{client:t}=o(),e=n((s)=>a&&s.connection==="ready"&&L(s.agent)),[f,l]=F(null);return T(()=>{if(!e){l(null);return}let s=!0;t.readRateLimits().then((m)=>{if(s)l(m)},()=>{return});let d=t.onRateLimits((m)=>{if(s)l(m)});return()=>{s=!1,d()}},[e,t]),e?f:null}function ct({session:a}){let{t}=o().host,e=c(a.configOptions,"model"),f=e!==void 0&&(H(e.options)?e.options.some((i)=>i.groupId==="chatgpt"&&i.options.some((y)=>y.value===e.currentValue)):!e.currentValue.startsWith("gateway:")&&e.options.some((i)=>i.value===e.currentValue)),l=U(f),{usage:s,lastTurnUsage:d}=a;if(s===null&&d===null)return null;let m=s&&s.size>0?A(s.used,s.size):null,h=7,b=2*Math.PI*h,N=g(d?.inputTokens),k=g(d?.outputTokens),x=g(d?.cachedReadTokens),w=g(d?.cachedWriteTokens),S=g(d?.totalTokens)||N+k+x+w,R=N+x,C=R>0?z.format(x/R):t("tokens.notAvailable"),D=[[t("tokens.input"),p.format(N)],[t("tokens.output"),p.format(k)],[t("tokens.cachedRead"),p.format(x)],[t("tokens.cachedWrite"),p.format(w)],[t("tokens.cacheHitRate"),C],[t("tokens.total"),p.format(S)]],v=I(a);return u(Pe,{children:[r(Ne,{delay:100,closeDelay:100,render:u("button",{type:"button",className:W("hover:text-foreground flex h-7 items-center gap-1.5 rounded-md px-1.5 text-xs tabular-nums",m?.className??"text-muted-foreground"),"aria-label":t("tokens.openDetails"),children:[u("svg",{viewBox:"0 0 18 18",className:"size-4","aria-hidden":"true",children:[r("circle",{cx:"9",cy:"9",r:h,fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),m!==null&&r("circle",{cx:"9",cy:"9",r:h,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:b,strokeDashoffset:b*(1-m.pct/100),transform:"rotate(-90 9 9)"})]}),m!==null&&u("span",{children:[Math.round(m.pct),"%"]})]})}),u(Me,{align:"end",side:"top",sideOffset:8,className:"w-56 p-0",children:[v!==void 0&&r("div",{className:"border-b px-3 py-2",children:r("p",{className:"text-foreground truncate text-xs font-semibold",title:v,children:v})}),u("div",{className:"flex flex-col gap-3 p-3",children:[d!==null&&u("div",{className:"flex flex-col gap-1.5",children:[r("p",{className:"text-xs font-medium",children:t("tokens.openDetails")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:D.map(([i,y])=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:i}),r("dd",{className:"text-end tabular-nums",children:y})]},i))})]}),s!==null&&s.size>0&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("tokens.context")}),r("p",{className:"text-muted-foreground text-xs tabular-nums",children:t("tokens.contextSummary",{used:p.format(s.used),limit:p.format(s.size),percent:O.format(s.used/s.size*100)})})]}),l!==null&&(l.primary!==null||l.secondary!==null)&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("usage.limits")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:[l.primary,l.secondary].filter((i)=>i!==null).map((i)=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:An(i,t)}),r("dd",{className:"text-end tabular-nums",children:t("usage.used",{percent:Math.round(Math.min(100,Math.max(0,i.usedPercent)))})})]},`${i.windowDurationMins??"window"}`))})]})]})]})]})}
|
|
2
|
-
export{An,ct};
|
package/dist/chunk-da4m33bg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-wpdn3rx8.js";import{u,m,b,K,p,w}from"./chunk-n5xqjct2.js";import{ee}from"./chunk-3919sqde.js";import{createContext as S,useContext as C,useState as y,useSyncExternalStore as L}from"react";import{jsx as i,jsxs as c}from"react/jsx-runtime";var v=S(null),f=S(null),x=S(null);function fr({host:t,client:o,children:n}){let[s,a]=y(null);ee(s!==null);let{t:d}=t;return i(v,{value:t,children:i(f,{value:o,children:c(x,{value:a,children:[n,i(u,{open:s!==null,onOpenChange:(D)=>!D&&a(null),children:c(m,{children:[c(b,{children:[i(p,{children:d("sessionList.deleteTitle")}),i(w,{children:d("sessionList.deleteDescription")})]}),c(K,{children:[i(e,{variant:"outline",onClick:()=>a(null),children:d("sessionList.cancel")}),i(e,{onClick:()=>{if(s)T(t,o.delete(s.sessionId));a(null)},children:d("sessionList.delete")})]})]})})]})})})}function g(){let t=C(v);if(t===null)throw Error("Session list host is missing");return t}function l(){let t=C(f);if(t===null)throw Error("Session list client is missing");return t}function ot(){let t=C(x);if(t===null)throw Error("Session list provider is missing");return t}function r(t){let o=l();return L((n)=>o.store.subscribe(n),()=>t(o.store.getState()),()=>t(o.store.getState()))}function T(t,o){return o.then(()=>{},(n)=>{if(t.reportError)t.reportError(n);else console.error(n)})}
|
|
2
|
-
export{fr,g,l,ot,r,T};
|
package/dist/chunk-da6d6wze.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as i}from"cn";import{jsx as a}from"react/jsx-runtime";function k({className:r,...e}){return a("textarea",{"data-slot":"textarea",className:i("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",r),...e})}export{k};
|
package/dist/chunk-e99sdapw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{h}from"./chunk-3z6rx5qv.js";import{codexMessageError as A,nativeTurnId as m,textOf as S,turns as _}from"@nyssance/codex-acp-v2/client";function Wr(t){return t.kind==="tool"&&t.name==="mcp_startup"}function E(t){let e=t._meta?.codex;if(typeof e!=="object"||e===null)return null;let n=e.phase;return typeof n==="string"?n:null}function w(t){let e=t._meta?.codex;return typeof e==="object"&&e!==null&&e.notice===!0}function Xo(t){return t.user===null&&t.items.length>0&&t.items.every((e)=>e.kind==="assistant"&&w(e))}function T(t,e,n){let o=t.work.at(-1);if(o?.kind==="activity"&&o.items.at(-1)===n){o.items.push(e);return}t.work.push({kind:"activity",key:`activity:${e.kind}:${e.id}`,items:[e]})}function M(t,e,n){if(t.kind!=="tool"){e.push(t);return}let o=n.get(t.id);if(o===void 0)throw Error(`Grouped tool is missing from the session: ${t.id}`);e.push(o);for(let s of t.children)M(s,e,n)}function j(t,e,n,o){switch(e.kind){case"user":break;case"assistant":{if(A(e)!==null){let u=m(e),f=t.errors.findIndex((p)=>u!==null&&m(p)===u);if(f===-1)t.errors.push(e);else t.errors[f]=e;break}let s=E(e),i=e._meta?.codex,d=h(e._meta).length>0||typeof i==="object"&&i!==null&&"delivery"in i&&i.delivery==="async";if(h(e._meta).length>0)t.final.push(e);else if(d)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else if(s==="final_answer")t.final.push(e);else if(s==="commentary"||w(e)||s===null&&n)t.work.push({kind:"text",key:`text:${e.id}`,item:e});else t.final.push(e);break}case"thought":T(t,e,o);break;case"tool":if(T(t,e,o),e.toolKind==="edit")t.edits.push(e);break;case"plan":t.work.push({kind:"plan",key:`plan:${e.id}`,item:e});break;case"compaction":t.work.push({kind:"compaction",key:`compaction:${e.id}`,item:e});break}}function Yo(t,e=[],n=[]){let o=new Map(e.map((r)=>[r.key,r])),s=new Map(t.items.filter((r)=>r.kind==="tool").map((r)=>[r.id,r])),i={...t,items:t.items.filter((r)=>!Wr(r))},d=new Map(n.map((r,a)=>[r.turnId,a])),u=[],f=[u],p,k=null;for(let r of i.items){let a=m(r),l=d.get(a??"");if(a!==null&&k!==null&&a!==k||l!==void 0&&p!==void 0&&l>p+1)u=[],f.push(u);if(u.push(r),a!==null||r.kind==="user")k=a;if(l!==void 0)p=l}return f.flatMap((r)=>_({...i,items:r})).map((r)=>{let a=r.prompt===null?[]:[r.prompt];for(let c of r.entries)M(c,a,s);let l=a[0];if(l===void 0)throw Error("A turn without items");let I=`turn:${l.kind}:${l.id}`,x=r.endedAt??Math.max(...a.map((c)=>c.at)),y=o.get(I);if(y!==void 0&&K(y.items,a)&&y.endedAt===x)return y;let b={key:I,user:r.prompt,work:[],final:[],errors:[],edits:[],startedAt:r.startedAt??l.at,endedAt:x,replayed:a.every(rn),items:a},v=a.findLastIndex((c)=>c.kind!=="user"&&c.kind!=="compaction");return a.forEach((c,g)=>j(b,c,g<v,a[g-1])),b})}function K(t,e){return t.length===e.length&&t.every((n,o)=>n===e[o])}function rn(t){let e=t._meta?.codex;return t.replayed||typeof e==="object"&&e!==null&&"historyReplay"in e&&e.historyReplay===!0}function Q(t){return S(t.content)}function qe(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"historyInterrupted"in n&&n.historyInterrupted===!0})}function an(t){return t.items.some((e)=>{let n=e._meta?.codex;return typeof n==="object"&&n!==null&&"turnInterrupted"in n&&n.turnInterrupted===!0})}function Zo(t){let e=(s)=>{for(let i of t.items){let d=i._meta?.codex;if(typeof d!=="object"||d===null)continue;let u=d[s];if(typeof u==="number"&&Number.isFinite(u)&&u>=0)return u}return},n=e("workDurationMs"),o=e("turnDurationMs");return{durationMs:n??o,durationKind:n===void 0&&o!==void 0?"total":"work",startedAt:e("workStartedAt")}}function Jo(t,e,n){if(n?.user==null)return!1;let o=e.items.map(m).find((i)=>i!==null),s=m(n.user);if(o!==void 0&&s!==null)return o===s;return!e.items.some((i)=>{let d=i._meta?.codex;return typeof d==="object"&&d!==null&&"turnCompletedAt"in d&&typeof d.turnCompletedAt==="number"})&&t.state!=="idle"&&(n.user.echo==="pending"||n.user.echo==="acknowledged")&&e.user!==null&&t.turnEndedAt[e.user.id]===void 0&&e.errors.length===0}function er(t,e){if(t.state==="idle")return;let n=e.length-1;while(n>0){let o=e[n];if(o.items.some((s)=>s.kind!=="user"))break;if(!Jo(t,e[n-1],o))break;n--}return e[n]?.key}function tr(t,e,n){let o=n,s=n;while(o>0&&Jo(t,e[o-1],e[o]))o--;while(s+1<e.length&&Jo(t,e[s],e[s+1]))s++;let i=e.slice(o,s+1),d=i.findLast((u)=>u.items.some((f)=>f.kind!=="user"))??i[0];return{continued:e[n]!==d,items:i.flatMap((u)=>u.items),edits:i.flatMap((u)=>u.edits),startedAt:i[0].startedAt}}
|
|
2
|
-
export{Wr,Xo,Yo,rn,Q,qe,an,Zo,Jo,er,tr};
|
package/dist/chunk-ea3582qy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Tooltip as i}from"@base-ui/react/tooltip";import{cn as l}from"cn";import{jsx as o,jsxs as p}from"react/jsx-runtime";function ui({delay:t=0,...e}){return o(i.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}function ue({...t}){return o(i.Root,{"data-slot":"tooltip",...t})}function me({...t}){return o(i.Trigger,{"data-slot":"tooltip-trigger",...t})}function pe({className:t,side:e="top",sideOffset:a=4,align:d="center",alignOffset:r=0,children:n,...s}){return o(i.Portal,{children:o(i.Positioner,{align:d,alignOffset:r,side:e,sideOffset:a,className:"isolate z-50",children:p(i.Popup,{"data-slot":"tooltip-content",className:l("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...s,children:[n,o(i.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}export{ui,ue,me,pe};
|