@alwith/module-chat 0.5.27 → 0.6.0
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/LICENSE +1 -1
- package/README.md +15 -11
- package/assets/provider-catalog.json +2 -2
- 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-h6jkgcw1.js → chunk-05c7f7pa.js} +2 -2
- package/dist/{chunk-htjpckp6.js → chunk-0d5830mq.js} +3 -3
- package/dist/{chunk-shwnd0ta.js → chunk-0e4zew7m.js} +2 -2
- package/dist/{chunk-cpe2b276.js → chunk-0jz7wsbx.js} +2 -2
- package/dist/{chunk-75vtd3ww.js → chunk-0ms8k740.js} +2 -2
- package/dist/{chunk-s3h496tf.js → chunk-1rs9getz.js} +2 -2
- package/dist/chunk-1vmk34zf.js +2 -0
- package/dist/{chunk-7x1qnb20.js → chunk-1wh82w54.js} +2 -2
- package/dist/{chunk-6t5war9h.js → chunk-1z5htskd.js} +2 -2
- package/dist/{chunk-t2q8cxnh.js → chunk-2emf349g.js} +2 -2
- package/dist/{chunk-wc53vqaw.js → chunk-2g7k5pkt.js} +2 -2
- package/dist/{chunk-scxhc46w.js → chunk-3pvs8s3b.js} +2 -2
- package/dist/{chunk-wpn4rdwv.js → chunk-3sqxe0mw.js} +3 -3
- package/dist/{chunk-3jd4dkv4.js → chunk-3tbg92ns.js} +3 -3
- package/dist/{chunk-spfbykq8.js → chunk-4kevwekp.js} +2 -2
- package/dist/{chunk-qqqcqvrv.js → chunk-4s4e7zzx.js} +2 -2
- package/dist/{chunk-6e1bwjtk.js → chunk-50brsmjd.js} +2 -2
- package/dist/{chunk-kd87rt80.js → chunk-55gczv3j.js} +2 -2
- package/dist/{chunk-h2ewgw0x.js → chunk-5c5z2b48.js} +2 -2
- package/dist/{chunk-hcwgc3r7.js → chunk-5fj4ewez.js} +2 -2
- package/dist/{chunk-d0cb9bks.js → chunk-5p1fxq0k.js} +2 -2
- package/dist/{chunk-qxgmjjh2.js → chunk-5vh4z4yp.js} +2 -2
- package/dist/{chunk-z1aqmqgc.js → chunk-5wc30q2q.js} +2 -2
- package/dist/{chunk-fpmspg92.js → chunk-60z20w9q.js} +2 -2
- package/dist/{chunk-2twh547k.js → chunk-6883ebtb.js} +2 -2
- package/dist/chunk-69p0nqws.js +2 -0
- package/dist/{chunk-wcgwtn6h.js → chunk-6cbbnb7a.js} +2 -2
- package/dist/{chunk-2aw4d623.js → chunk-6h2ysmec.js} +2 -2
- package/dist/{chunk-7zryea1b.js → chunk-6r8jsyqk.js} +2 -2
- package/dist/{chunk-jan870w7.js → chunk-7491nfcw.js} +3 -3
- package/dist/chunk-758e6qf7.js +4 -0
- package/dist/{chunk-x2nemdjf.js → chunk-76a04a6j.js} +2 -2
- package/dist/{chunk-e2q5znh5.js → chunk-78qh8049.js} +2 -2
- package/dist/{chunk-tk2471ny.js → chunk-7962trd3.js} +2 -2
- package/dist/{chunk-v7rtfzg4.js → chunk-7g2fjbn8.js} +2 -2
- package/dist/{chunk-br9wsczn.js → chunk-887d80ps.js} +2 -2
- package/dist/{chunk-9x0qmswv.js → chunk-8ht645rn.js} +2 -2
- package/dist/{chunk-n368fh3r.js → chunk-8j39jdxr.js} +3 -3
- package/dist/{chunk-42atrgm1.js → chunk-8jxcdap5.js} +2 -2
- package/dist/{chunk-n66yy1m1.js → chunk-8mc330j2.js} +2 -2
- package/dist/{chunk-hsp0skqs.js → chunk-8nds14dw.js} +2 -2
- package/dist/{chunk-ggehtpkh.js → chunk-8qnrhq54.js} +2 -2
- package/dist/{chunk-4edeen4z.js → chunk-938k294j.js} +3 -3
- package/dist/{chunk-6vntcyv6.js → chunk-93d3a9wy.js} +2 -2
- package/dist/chunk-97yvajhc.js +2 -0
- package/dist/{chunk-k3e8wper.js → chunk-9cqfjpfk.js} +3 -3
- package/dist/chunk-9g0j2ptv.js +2 -0
- package/dist/chunk-9pgh7zjb.js +2 -0
- package/dist/{chunk-k2q7wjp6.js → chunk-9vm0y271.js} +2 -2
- package/dist/{chunk-5yzjwrat.js → chunk-9vxev5r7.js} +3 -3
- package/dist/{chunk-1sxf2rqx.js → chunk-9x48rd50.js} +2 -2
- package/dist/{chunk-az5ayr2d.js → chunk-a1snxcra.js} +2 -2
- package/dist/chunk-axyfaexd.js +2 -0
- package/dist/chunk-b4evrc3r.js +2 -0
- package/dist/{chunk-5ysapftt.js → chunk-cansmt47.js} +3 -3
- package/dist/{chunk-m9rgwr0p.js → chunk-cc33s37q.js} +2 -2
- package/dist/{chunk-5dkj3ntx.js → chunk-cfhg44ce.js} +2 -2
- package/dist/{chunk-074wn2jr.js → chunk-cpvaqbtq.js} +2 -2
- package/dist/{chunk-zx27nf5b.js → chunk-d09kxrbp.js} +2 -2
- package/dist/chunk-d32738zq.js +2 -0
- package/dist/{chunk-dtsybj2a.js → chunk-d39kpmyz.js} +2 -2
- package/dist/{chunk-xz6pb64j.js → chunk-d444rgtm.js} +2 -2
- package/dist/chunk-d4pm6n4q.js +2 -0
- package/dist/{chunk-0v2d2kme.js → chunk-ddj8ag0b.js} +3 -3
- package/dist/{chunk-79jjxyb7.js → chunk-dmsy511f.js} +2 -2
- package/dist/{chunk-x52rbm87.js → chunk-ewjh6s2b.js} +2 -2
- package/dist/{chunk-53qt3tjb.js → chunk-ezscf6qz.js} +2 -2
- package/dist/{chunk-3kk0rxch.js → chunk-f06zyvek.js} +2 -2
- package/dist/{chunk-6whr1y2s.js → chunk-f192h0js.js} +2 -2
- package/dist/{chunk-z3dwf54f.js → chunk-fjwn02v3.js} +2 -2
- package/dist/{chunk-0stda83g.js → chunk-fynzxex7.js} +2 -2
- package/dist/{chunk-qnc6w06c.js → chunk-fyvq1tqw.js} +3 -3
- package/dist/{chunk-dxgha4a2.js → chunk-gdr4245h.js} +2 -2
- package/dist/{chunk-d0w04ydg.js → chunk-gha517v4.js} +2 -2
- package/dist/chunk-gva03q5f.js +2 -0
- package/dist/{chunk-q0z9jq6p.js → chunk-gxjtydsk.js} +2 -2
- package/dist/chunk-haxhf3gd.js +2 -0
- package/dist/{chunk-2fgwkj52.js → chunk-hd879x7s.js} +3 -3
- package/dist/{chunk-t3s1ydnq.js → chunk-hfjvr394.js} +2 -2
- package/dist/{chunk-p7dd93e5.js → chunk-hp9h8njw.js} +2 -2
- package/dist/{chunk-0tzra5rn.js → chunk-ht6p9j86.js} +2 -2
- package/dist/{chunk-e43x30mv.js → chunk-j1f4spe0.js} +2 -2
- package/dist/{chunk-s56e2286.js → chunk-j6e2t91q.js} +2 -2
- package/dist/chunk-jeedg61t.js +2 -0
- package/dist/{chunk-8xb3b71p.js → chunk-js95dpfd.js} +2 -2
- package/dist/{chunk-1mcg9mwq.js → chunk-jsc8qzkj.js} +1 -1
- package/dist/chunk-jwkm2kgd.js +2 -0
- package/dist/{chunk-90r8y97z.js → chunk-k7y6dqf2.js} +2 -2
- package/dist/chunk-kcke05ds.js +2 -0
- package/dist/chunk-ktpg1m74.js +2 -0
- package/dist/{chunk-g7by9ta9.js → chunk-kyjhngd2.js} +2 -2
- package/dist/chunk-kymztvkv.js +2 -0
- package/dist/{chunk-b67h7yss.js → chunk-kyxdpg6a.js} +2 -2
- package/dist/{chunk-ehdqspxk.js → chunk-m0q3bf05.js} +2 -2
- package/dist/{chunk-thzq3tfa.js → chunk-m7e2zvyk.js} +2 -2
- package/dist/{chunk-6w6yy1md.js → chunk-m8s9nw8b.js} +2 -2
- package/dist/{chunk-6k8m2c80.js → chunk-mb99bpqx.js} +2 -2
- package/dist/chunk-n6kdjmh7.js +2 -0
- package/dist/chunk-nvxcys2c.js +2 -0
- package/dist/{chunk-ngqr3n0s.js → chunk-pa354z8g.js} +2 -2
- package/dist/{chunk-qd7jqtqr.js → chunk-pfft1e99.js} +2 -2
- package/dist/{chunk-sp39pqt6.js → chunk-pqw5qz4e.js} +2 -2
- package/dist/{chunk-r7svwjdg.js → chunk-ps74k3c4.js} +2 -2
- package/dist/{chunk-6rgyckw8.js → chunk-pvnc76cr.js} +2 -2
- package/dist/{chunk-gsnqwd84.js → chunk-pvzceygv.js} +2 -2
- package/dist/chunk-pyah1qdm.js +2 -0
- package/dist/{chunk-5t5y5e8n.js → chunk-q005jp78.js} +2 -2
- package/dist/chunk-q3b79z6s.js +2 -0
- package/dist/chunk-qcabefs0.js +2 -0
- package/dist/chunk-qcy0m7c4.js +2 -0
- package/dist/{chunk-jrmygc4p.js → chunk-qf163g6t.js} +2 -2
- package/dist/{chunk-91zvyqnt.js → chunk-qmhnhgc5.js} +2 -2
- package/dist/{chunk-jkvqtwe6.js → chunk-qvadb210.js} +2 -2
- package/dist/{chunk-tk4t9h7r.js → chunk-qx0xeepz.js} +2 -2
- package/dist/{chunk-c26xgmyr.js → chunk-r0bmsz7b.js} +2 -2
- package/dist/{chunk-4saf1qa5.js → chunk-r25wz0yx.js} +2 -2
- package/dist/chunk-r29eygte.js +2 -0
- package/dist/{chunk-wdrzhaxf.js → chunk-rbj9twq1.js} +2 -2
- package/dist/{chunk-02mwhdhw.js → chunk-rz3njmhn.js} +2 -2
- package/dist/{chunk-8gztbvxt.js → chunk-s7fc1rkz.js} +2 -2
- package/dist/{chunk-h09ez7fc.js → chunk-sc7qd3kj.js} +2 -2
- package/dist/chunk-sn5n38j6.js +2 -0
- package/dist/{chunk-ee0krzt0.js → chunk-ss5xzk9q.js} +2 -2
- package/dist/{chunk-8bdeyvy3.js → chunk-t3vcp85z.js} +2 -2
- package/dist/{chunk-2f9vjmxz.js → chunk-t63mwyg0.js} +2 -2
- package/dist/{chunk-epg5w48v.js → chunk-t9djctkk.js} +2 -2
- package/dist/{chunk-pgqsw2sh.js → chunk-tdys88q3.js} +2 -2
- package/dist/{chunk-jgwrjncj.js → chunk-te3mzdae.js} +2 -2
- package/dist/{chunk-eg86g265.js → chunk-tggrc8e5.js} +2 -2
- package/dist/{chunk-99w9jq4v.js → chunk-tm5dbbgp.js} +2 -2
- package/dist/{chunk-secfh4re.js → chunk-twbp4j4c.js} +2 -2
- package/dist/{chunk-m4eqmf0x.js → chunk-v1x1b7cv.js} +5 -5
- package/dist/{chunk-hck587pb.js → chunk-vetfnaz1.js} +2 -2
- package/dist/{chunk-4j2c9r6m.js → chunk-vxk0kgbf.js} +2 -2
- package/dist/{chunk-srpsc10y.js → chunk-w3eddq0g.js} +2 -2
- package/dist/chunk-w49gke0h.js +2 -0
- package/dist/{chunk-95mynf7q.js → chunk-wc48fzq2.js} +2 -2
- package/dist/{chunk-hs91aaaz.js → chunk-wcwgk4bg.js} +2 -2
- package/dist/{chunk-5b19mbh6.js → chunk-wh5dd7mq.js} +2 -2
- package/dist/{chunk-szwq5b69.js → chunk-wkw61zwr.js} +2 -2
- package/dist/{chunk-41z12m3j.js → chunk-wvs6ttt3.js} +4 -4
- package/dist/{chunk-8a61phqa.js → chunk-wxsb337y.js} +3 -3
- package/dist/{chunk-yg6vhdq9.js → chunk-xke4r5kr.js} +2 -2
- package/dist/chunk-xmrsdhtw.js +2 -0
- package/dist/{chunk-frbakxev.js → chunk-y0cxqkzd.js} +2 -2
- package/dist/{chunk-5yb7twvm.js → chunk-y39xsj1f.js} +2 -2
- package/dist/{chunk-4kbkbvjp.js → chunk-y7nq2yre.js} +2 -2
- package/dist/chunk-yamfntjx.js +1 -0
- package/dist/{chunk-s6m0ske7.js → chunk-yd68z08r.js} +2 -2
- package/dist/{chunk-zfxwm1g9.js → chunk-yep82kwy.js} +2 -2
- package/dist/chunk-yht2h676.js +2 -0
- package/dist/chunk-yvkt9ewq.js +2 -0
- package/dist/{chunk-vm2qb3ns.js → chunk-yvr086m7.js} +2 -2
- package/dist/{chunk-q70h5z14.js → chunk-z20ss7qj.js} +2 -2
- package/dist/{chunk-84yjrafh.js → chunk-z32chhqm.js} +2 -2
- package/dist/{chunk-c0b3zze8.js → chunk-zettt6hy.js} +2 -2
- package/dist/{chunk-31s3s58d.js → chunk-zrh4de8p.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/timeline-virtualizer.js +1 -1
- package/dist/codex/turn-activity.js +1 -1
- package/dist/codex/user-message.js +1 -1
- package/dist/codex/virtualized-turn-list.js +1 -1
- package/dist/collections/collection-emoji.js +1 -1
- package/dist/collections/collection-menu.js +1 -1
- package/dist/collections/collection-panel.js +1 -1
- package/dist/collections/collections.js +1 -1
- package/dist/collections/host.js +1 -1
- package/dist/collections/model.js +1 -1
- package/dist/collections/store.js +1 -1
- package/dist/composer/completion-filter.js +1 -1
- package/dist/composer/completion-menu.js +1 -1
- package/dist/composer/completion-trigger.js +1 -1
- package/dist/composer/effort-slider.js +1 -1
- package/dist/composer/menu-radio.js +1 -1
- package/dist/composer/model-select.js +1 -1
- package/dist/composer/permission-mode-select.js +1 -1
- package/dist/composer/prompt-input-attachments.js +1 -1
- package/dist/composer/prompt-input-clipboard.js +1 -1
- package/dist/composer/prompt-input-context.js +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.js +1 -1
- package/dist/conversation/action-card.js +1 -1
- package/dist/conversation/composer/composer.js +1 -1
- package/dist/conversation/composer/config-options.js +1 -1
- package/dist/conversation/composer/context.js +1 -1
- package/dist/conversation/composer/drafts.js +1 -1
- package/dist/conversation/composer/file-items.js +1 -1
- package/dist/conversation/composer/long-text.js +1 -1
- package/dist/conversation/composer/mention-chips.js +1 -1
- package/dist/conversation/composer/mention-uri.js +1 -1
- package/dist/conversation/composer/model-menu.js +1 -1
- package/dist/conversation/composer/pasted-text-attachment.js +1 -1
- package/dist/conversation/composer/permission-mode-menu.js +1 -1
- package/dist/conversation/composer/prediction.js +1 -1
- package/dist/conversation/composer/prompt-history.js +1 -1
- package/dist/conversation/composer/slash-command-button.js +1 -1
- package/dist/conversation/composer/submit-button.js +1 -1
- package/dist/conversation/composer/usage-meter.js +1 -1
- package/dist/conversation/connection-notice.js +1 -1
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-search.js +1 -1
- package/dist/conversation/conversation-view.js +1 -1
- package/dist/conversation/conversation.js +1 -1
- package/dist/conversation/diff-modal.js +1 -1
- package/dist/conversation/draft-project-picker.js +1 -1
- package/dist/conversation/session-actions.js +1 -1
- package/dist/conversation/subagent-sessions.js +1 -1
- package/dist/generated/commands.d.ts +363 -0
- package/dist/generated/commands.js +1 -0
- 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/plugins/catalog-header.js +1 -1
- package/dist/plugins/catalog-skeleton.js +1 -1
- package/dist/plugins/host.js +1 -1
- package/dist/plugins/new-chat-directory.js +1 -1
- package/dist/plugins/panel-item.js +1 -1
- package/dist/plugins/plugin-detail-page.js +1 -1
- package/dist/plugins/plugin-icon.js +1 -1
- package/dist/plugins/plugin-icons.js +1 -1
- package/dist/plugins/plugins-page.js +1 -1
- package/dist/plugins/plugins.d.ts +1 -1
- package/dist/plugins/plugins.js +1 -1
- package/dist/plugins/read-skill-document.d.ts +1 -2
- package/dist/plugins/read-skill-document.js +1 -1
- package/dist/plugins/skill-document.js +1 -1
- package/dist/plugins/skills-tab.js +1 -1
- package/dist/plugins/store.js +1 -1
- package/dist/plugins/toolbox-layout.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/account-menu.js +1 -1
- package/dist/session-list/activity-list.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/help-menu.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/navigation-controls.js +1 -1
- package/dist/session-list/navigation-header.js +1 -1
- package/dist/session-list/navigation-store.js +1 -1
- package/dist/session-list/navigation-tabs.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/overflow-marquee.js +1 -1
- package/dist/session-list/platform.js +1 -1
- package/dist/session-list/row-stop-button.js +1 -1
- package/dist/session-list/session-groups.js +1 -1
- package/dist/session-list/session-info-card.js +1 -1
- package/dist/session-list/session-list.js +1 -1
- package/dist/session-list/session-row.js +1 -1
- package/dist/session-list/session-state-dot.js +1 -1
- package/dist/session-list/session-state-menu.js +1 -1
- package/dist/session-list/shortcut-hint.js +1 -1
- package/dist/session-list/shortcut.js +1 -1
- package/dist/session-list/sidebar-overlay.js +1 -1
- package/dist/session-list/trailing-swap.js +1 -1
- package/dist/session-list/use-activity-notification.js +1 -1
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-cmd-held.js +1 -1
- package/dist/session-list/use-project-sessions.js +1 -1
- package/dist/session-list/virtual-session-rows.js +1 -1
- package/dist/session-timeline/activity-group.js +1 -1
- package/dist/session-timeline/activity-projection.js +1 -1
- package/dist/session-timeline/assistant-content.js +1 -1
- package/dist/session-timeline/assistant-turn.js +1 -1
- package/dist/session-timeline/async-questions.js +1 -1
- package/dist/session-timeline/edited-files-card.js +1 -1
- package/dist/session-timeline/history-timeline.js +1 -1
- package/dist/session-timeline/host.js +1 -1
- package/dist/session-timeline/navigation-rail.js +1 -1
- package/dist/session-timeline/plan.js +1 -1
- package/dist/session-timeline/question-reply.js +1 -1
- package/dist/session-timeline/resource-content.js +1 -1
- package/dist/session-timeline/session-timeline.js +1 -1
- package/dist/session-timeline/timeline-registry.js +1 -1
- package/dist/session-timeline/turn-activity.js +1 -1
- package/dist/session-timeline/turn-error.js +1 -1
- package/dist/session-timeline/turn-retry.js +1 -1
- package/dist/session-timeline/turn-time.js +1 -1
- package/dist/session-timeline/turns.js +1 -1
- package/dist/session-timeline/use-timeline-scroll.js +1 -1
- package/dist/session-timeline/user-message.js +1 -1
- package/dist/settings/codex-account-card.js +1 -1
- package/dist/settings/login-card.js +1 -1
- package/dist/settings/model-alias-settings.js +1 -1
- package/dist/settings/model-aliases.js +1 -1
- package/dist/settings/provider-logos.js +1 -1
- package/dist/settings/provider-section.js +1 -1
- package/dist/settings/providers-port.d.ts +2 -8
- package/dist/settings/providers-port.js +1 -1
- package/dist/settings/providers.js +1 -1
- package/dist/settings/settings-bridge.js +1 -1
- package/dist/settings/settings.d.ts +1 -1
- package/dist/settings/settings.js +1 -1
- package/native/darwin-arm64/THIRD_PARTY_NOTICES.md +210 -0
- package/native/darwin-arm64/artifact.json +8 -0
- package/native/darwin-arm64/libalwith_native_chat.dylib +0 -0
- package/native/darwin-arm64/licenses/Inflector-0.11.4/LICENSE.md +22 -0
- package/native/darwin-arm64/licenses/adler32-1.2.0/LICENSE +43 -0
- package/native/darwin-arm64/licenses/aes-0.9.4/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/aes-0.9.4/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/allocator-api2-0.2.21/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/allocator-api2-0.2.21/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
- package/native/darwin-arm64/licenses/autocfg-1.5.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/autocfg-1.5.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/aws-lc-rs-1.19.0/LICENSE +202 -0
- package/native/darwin-arm64/licenses/aws-lc-sys-0.47.0/LICENSE +316 -0
- package/native/darwin-arm64/licenses/base64-0.23.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/base64-0.23.1/LICENSE-MIT +21 -0
- package/native/darwin-arm64/licenses/bitflags-2.13.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/bitflags-2.13.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/block-buffer-0.12.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/block-buffer-0.12.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/bumpalo-3.20.3/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/bumpalo-3.20.3/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/bytecount-0.6.9/LICENSE.Apache2 +201 -0
- package/native/darwin-arm64/licenses/bytecount-0.6.9/LICENSE.MIT +19 -0
- package/native/darwin-arm64/licenses/bytes-1.12.1/LICENSE +25 -0
- package/native/darwin-arm64/licenses/bzip2-0.6.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/bzip2-0.6.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/cc-1.11.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/cc-1.11.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/cfg-if-1.0.5/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/cfg-if-1.0.5/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/cfg_aliases-0.2.2/LICENSE +9 -0
- package/native/darwin-arm64/licenses/chacha20-0.10.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/chacha20-0.10.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/chrono-0.4.45/LICENSE.txt +240 -0
- package/native/darwin-arm64/licenses/cipher-0.5.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/cipher-0.5.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/cmake-0.1.58/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/cmake-0.1.58/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/cmov-0.5.4/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/cmov-0.5.4/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/const-oid-0.10.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/const-oid-0.10.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-CC0 +121 -0
- package/native/darwin-arm64/licenses/constant_time_eq-0.6.1/LICENSE-MIT0 +14 -0
- package/native/darwin-arm64/licenses/core-foundation-0.10.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/core-foundation-0.10.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/core-foundation-sys-0.8.7/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/core-foundation-sys-0.8.7/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/cpubits-0.1.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/cpubits-0.1.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/cpufeatures-0.3.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/cpufeatures-0.3.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/crc32fast-1.5.4/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/crc32fast-1.5.4/LICENSE-MIT +21 -0
- package/native/darwin-arm64/licenses/crypto-common-0.2.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/crypto-common-0.2.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/ctutils-0.4.8/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/ctutils-0.4.8/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/dary_heap-0.3.9/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/dary_heap-0.3.9/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/deflate64-0.1.12/LICENSE +24 -0
- package/native/darwin-arm64/licenses/deranged-0.5.9/LICENSE-Apache +202 -0
- package/native/darwin-arm64/licenses/deranged-0.5.9/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/digest-0.11.3/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/digest-0.11.3/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/displaydoc-0.2.7/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/displaydoc-0.2.7/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/dunce-1.0.5/LICENSE +121 -0
- package/native/darwin-arm64/licenses/equivalent-1.0.3/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/equivalent-1.0.3/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/errno-0.3.14/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/errno-0.3.14/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/fallible-iterator-0.3.0/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/fallible-iterator-0.3.0/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/fastrand-2.5.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/fastrand-2.5.0/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/find-msvc-tools-0.1.15/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/find-msvc-tools-0.1.15/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/flate2-1.1.10/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/flate2-1.1.10/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/foldhash-0.2.0/LICENSE +19 -0
- package/native/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/fs_extra-1.3.0/LICENSE +21 -0
- package/native/darwin-arm64/licenses/futures-channel-0.3.34/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/futures-channel-0.3.34/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/futures-core-0.3.34/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/futures-core-0.3.34/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/futures-task-0.3.34/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/futures-task-0.3.34/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/futures-util-0.3.34/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/futures-util-0.3.34/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/hashbrown-0.16.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/hashbrown-0.16.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/hashlink-0.12.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/hashlink-0.12.2/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/hmac-0.13.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/hmac-0.13.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/http-1.5.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/http-1.5.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/http-body-1.1.0/LICENSE +25 -0
- package/native/darwin-arm64/licenses/http-body-util-0.1.5/LICENSE +25 -0
- package/native/darwin-arm64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
- package/native/darwin-arm64/licenses/hybrid-array-0.4.15/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/hybrid-array-0.4.15/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/hyper-1.12.0/LICENSE +19 -0
- package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-ISC +15 -0
- package/native/darwin-arm64/licenses/hyper-rustls-0.27.10/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/hyper-util-0.1.21/LICENSE +19 -0
- package/native/darwin-arm64/licenses/iana-time-zone-0.1.65/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/iana-time-zone-0.1.65/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/icu_collections-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_locale_core-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_normalizer-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_normalizer_data-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_properties-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_properties_data-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/icu_provider-2.4.0/LICENSE +46 -0
- package/native/darwin-arm64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/include-flate-0.3.5/LICENSE +202 -0
- package/native/darwin-arm64/licenses/include-flate-codegen-0.3.5/LICENSE +202 -0
- package/native/darwin-arm64/licenses/include-flate-compress-0.3.5/LICENSE +202 -0
- package/native/darwin-arm64/licenses/indexmap-2.14.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/indexmap-2.14.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/inout-0.2.5/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/inout-0.2.5/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/ipnet-2.12.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/ipnet-2.12.2/LICENSE-MIT +7 -0
- package/native/darwin-arm64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/jieba-macros-0.11.0/LICENSE +22 -0
- package/native/darwin-arm64/licenses/jieba-rs-0.11.0/LICENSE +22 -0
- package/native/darwin-arm64/licenses/jobserver-0.1.35/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/jobserver-0.1.35/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/libbz2-rs-sys-0.2.6/LICENSE +48 -0
- package/native/darwin-arm64/licenses/libc-0.2.191/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/libc-0.2.191/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/libflate-2.3.2/LICENSE +21 -0
- package/native/darwin-arm64/licenses/libflate_lz77-2.3.0/LICENSE +21 -0
- package/native/darwin-arm64/licenses/libsqlite3-sys-0.39.1/LICENSE +19 -0
- package/native/darwin-arm64/licenses/litemap-0.8.3/LICENSE +46 -0
- package/native/darwin-arm64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/log-0.4.35/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/log-0.4.35/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-MIT +7 -0
- package/native/darwin-arm64/licenses/lru-slab-0.1.3/LICENSE-ZLIB +19 -0
- package/native/darwin-arm64/licenses/lzma-rust2-0.24.0/LICENSE +201 -0
- package/native/darwin-arm64/licenses/memchr-2.8.3/COPYING +3 -0
- package/native/darwin-arm64/licenses/memchr-2.8.3/LICENSE-MIT +21 -0
- package/native/darwin-arm64/licenses/mio-1.2.4/LICENSE +19 -0
- package/native/darwin-arm64/licenses/nix-0.31.3/LICENSE +21 -0
- package/native/darwin-arm64/licenses/no_std_io2-0.9.4/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/no_std_io2-0.9.4/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
- package/native/darwin-arm64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/num-traits-0.2.19/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/num-traits-0.2.19/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/opencode-ai-models-0.0.124/LICENSE +21 -0
- package/native/darwin-arm64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/pbkdf2-0.13.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/pbkdf2-0.13.0/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
- package/native/darwin-arm64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/pkg-config-0.3.34/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/pkg-config-0.3.34/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/potential_utf-0.1.6/LICENSE +46 -0
- package/native/darwin-arm64/licenses/powerfmt-0.2.1/LICENSE-Apache +202 -0
- package/native/darwin-arm64/licenses/powerfmt-0.2.1/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/ppmd-rust-1.5.2/LICENSE-CC0.md +119 -0
- package/native/darwin-arm64/licenses/ppmd-rust-1.5.2/LICENSE-MIT-0.md +16 -0
- package/native/darwin-arm64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-MIT +21 -0
- package/native/darwin-arm64/licenses/proc-macro-error3-3.1.1/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/proc-macro-error3-3.1.1/LICENSE-MIT +22 -0
- package/native/darwin-arm64/licenses/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/proc-macro2-1.0.107/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/quinn-0.11.12/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/quinn-0.11.12/LICENSE-MIT +7 -0
- package/native/darwin-arm64/licenses/quinn-proto-0.11.19/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/quinn-proto-0.11.19/LICENSE-MIT +7 -0
- package/native/darwin-arm64/licenses/quinn-udp-0.5.16/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/quinn-udp-0.5.16/LICENSE-MIT +7 -0
- package/native/darwin-arm64/licenses/quote-1.0.47/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/quote-1.0.47/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/rand-0.10.3/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/rand-0.10.3/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/rand_core-0.10.1/LICENSE-APACHE +187 -0
- package/native/darwin-arm64/licenses/rand_core-0.10.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/rand_pcg-0.10.2/LICENSE-APACHE +187 -0
- package/native/darwin-arm64/licenses/rand_pcg-0.10.2/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/regex-lite-0.1.9/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/regex-lite-0.1.9/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/reqwest-0.13.5/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/reqwest-0.13.5/LICENSE-MIT +20 -0
- package/native/darwin-arm64/licenses/rev_lines-0.3.0/LICENSE-MIT +21 -0
- package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE +9 -0
- package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
- package/native/darwin-arm64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
- package/native/darwin-arm64/licenses/rle-decode-fast-1.0.3/LICENSE-APACHE +13 -0
- package/native/darwin-arm64/licenses/rle-decode-fast-1.0.3/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/rusqlite-0.41.1/LICENSE +19 -0
- package/native/darwin-arm64/licenses/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/rustc-hash-2.1.3/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/rustc_version-0.4.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/rustc_version-0.4.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/native/darwin-arm64/licenses/rustix-1.1.6/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-ISC +15 -0
- package/native/darwin-arm64/licenses/rustls-0.23.46/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/rustls-platform-verifier-0.7.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/rustls-platform-verifier-0.7.1/LICENSE-MIT +21 -0
- package/native/darwin-arm64/licenses/rustls-webpki-0.103.16/LICENSE +19 -0
- package/native/darwin-arm64/licenses/rustversion-1.0.23/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/rustversion-1.0.23/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/security-framework-3.7.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/security-framework-3.7.0/LICENSE-MIT +20 -0
- package/native/darwin-arm64/licenses/security-framework-sys-2.17.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/security-framework-sys-2.17.0/LICENSE-MIT +20 -0
- package/native/darwin-arm64/licenses/semver-1.0.28/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/semver-1.0.28/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/serde-1.0.229/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/serde-1.0.229/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/serde_core-1.0.229/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/serde_core-1.0.229/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/serde_derive-1.0.229/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/serde_derive-1.0.229/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/serde_json-1.0.154/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/serde_json-1.0.154/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/sha1-0.11.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/sha1-0.11.0/LICENSE-MIT +28 -0
- package/native/darwin-arm64/licenses/sha2-0.11.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/sha2-0.11.1/LICENSE-MIT +28 -0
- package/native/darwin-arm64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
- package/native/darwin-arm64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
- package/native/darwin-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
- package/native/darwin-arm64/licenses/slab-0.4.12/LICENSE +25 -0
- package/native/darwin-arm64/licenses/smallvec-1.16.4/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/smallvec-1.16.4/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/socket2-0.6.5/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/socket2-0.6.5/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/specta-2.0.0-rc.27/LICENSE +21 -0
- package/native/darwin-arm64/licenses/specta-macros-2.0.0-rc.27/LICENSE +21 -0
- package/native/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/stop-words-0.10.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/stop-words-0.10.1/LICENSE.md +21 -0
- package/native/darwin-arm64/licenses/subtle-2.6.1/LICENSE +29 -0
- package/native/darwin-arm64/licenses/syn-2.0.119/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/syn-2.0.119/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/syn-3.0.9/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/syn-3.0.9/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
- package/native/darwin-arm64/licenses/synstructure-0.14.0/LICENSE +7 -0
- package/native/darwin-arm64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/thiserror-2.0.21/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/thiserror-2.0.21/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/thiserror-impl-2.0.21/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/thiserror-impl-2.0.21/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/time-0.3.55/LICENSE-Apache +177 -0
- package/native/darwin-arm64/licenses/time-0.3.55/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
- package/native/darwin-arm64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
- package/native/darwin-arm64/licenses/tinystr-0.8.5/LICENSE +46 -0
- package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-APACHE.md +202 -0
- package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-MIT.md +5 -0
- package/native/darwin-arm64/licenses/tinyvec-1.13.3/LICENSE-ZLIB.md +11 -0
- package/native/darwin-arm64/licenses/tokio-1.54.1/LICENSE +21 -0
- package/native/darwin-arm64/licenses/tokio-macros-2.7.2/LICENSE +22 -0
- package/native/darwin-arm64/licenses/tokio-rustls-0.26.6/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/tokio-rustls-0.26.6/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/tower-0.5.3/LICENSE +25 -0
- package/native/darwin-arm64/licenses/tower-http-0.6.11/LICENSE +25 -0
- package/native/darwin-arm64/licenses/tower-layer-0.3.3/LICENSE +25 -0
- package/native/darwin-arm64/licenses/tower-service-0.3.3/LICENSE +25 -0
- package/native/darwin-arm64/licenses/tracing-0.1.44/LICENSE +25 -0
- package/native/darwin-arm64/licenses/tracing-core-0.1.36/LICENSE +25 -0
- package/native/darwin-arm64/licenses/try-lock-0.2.5/LICENSE +21 -0
- package/native/darwin-arm64/licenses/typed-path-0.13.0/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/typed-path-0.13.0/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE +1 -0
- package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
- package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-APACHE +176 -0
- package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/unicode-ident-1.0.27/LICENSE-UNICODE +39 -0
- package/native/darwin-arm64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
- package/native/darwin-arm64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
- package/native/darwin-arm64/licenses/url-2.5.8/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/utf8_iter-1.1.0/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/utf8_iter-1.1.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/utf_types-1.0.0/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/utf_types-1.0.0/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
- package/native/darwin-arm64/licenses/want-0.3.2/LICENSE +20 -0
- package/native/darwin-arm64/licenses/writeable-0.6.4/LICENSE +46 -0
- package/native/darwin-arm64/licenses/yoke-0.8.4/LICENSE +46 -0
- package/native/darwin-arm64/licenses/yoke-derive-0.8.4/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerofrom-0.1.8/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerofrom-derive-0.1.8/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zeroize-1.9.1/LICENSE-APACHE +202 -0
- package/native/darwin-arm64/licenses/zeroize-1.9.1/LICENSE-MIT +25 -0
- package/native/darwin-arm64/licenses/zerotrie-0.2.5/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerovec-0.11.9/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zerovec-derive-0.11.7/LICENSE +46 -0
- package/native/darwin-arm64/licenses/zip-9.3.0/LICENSE +21 -0
- package/native/darwin-arm64/licenses/zlib-rs-0.6.8/LICENSE +19 -0
- package/native/darwin-arm64/licenses/zmij-1.0.23/LICENSE-MIT +23 -0
- package/native/darwin-arm64/licenses/zopfli-0.8.4/COPYING +201 -0
- package/native/darwin-arm64/licenses/zstd-0.14.3/LICENSE +28 -0
- package/native/darwin-arm64/licenses/zstd-safe-8.2.0/LICENSE +28 -0
- package/native/darwin-arm64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE +28 -0
- package/native/darwin-arm64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE.BSD-3-Clause +32 -0
- package/native/win32-x64/THIRD_PARTY_NOTICES.md +203 -0
- package/native/win32-x64/alwith_native_chat.dll +0 -0
- package/native/win32-x64/artifact.json +8 -0
- package/native/win32-x64/licenses/Inflector-0.11.4/LICENSE.md +22 -0
- package/native/win32-x64/licenses/adler32-1.2.0/LICENSE +43 -0
- package/native/win32-x64/licenses/aes-0.9.4/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/aes-0.9.4/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/allocator-api2-0.2.21/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/allocator-api2-0.2.21/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
- package/native/win32-x64/licenses/autocfg-1.5.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/autocfg-1.5.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/aws-lc-rs-1.19.0/LICENSE +202 -0
- package/native/win32-x64/licenses/aws-lc-sys-0.47.0/LICENSE +316 -0
- package/native/win32-x64/licenses/base64-0.23.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/base64-0.23.1/LICENSE-MIT +21 -0
- package/native/win32-x64/licenses/bitflags-2.13.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/bitflags-2.13.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/block-buffer-0.12.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/block-buffer-0.12.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/bumpalo-3.20.3/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/bumpalo-3.20.3/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/bytecount-0.6.9/LICENSE.Apache2 +201 -0
- package/native/win32-x64/licenses/bytecount-0.6.9/LICENSE.MIT +19 -0
- package/native/win32-x64/licenses/bytes-1.12.1/LICENSE +25 -0
- package/native/win32-x64/licenses/bzip2-0.6.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/bzip2-0.6.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/cc-1.11.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/cc-1.11.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/cfg-if-1.0.5/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/cfg-if-1.0.5/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/cfg_aliases-0.2.2/LICENSE +9 -0
- package/native/win32-x64/licenses/chacha20-0.10.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/chacha20-0.10.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/chrono-0.4.45/LICENSE.txt +240 -0
- package/native/win32-x64/licenses/cipher-0.5.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/cipher-0.5.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/cmake-0.1.58/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/cmake-0.1.58/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/cmov-0.5.4/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/cmov-0.5.4/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/const-oid-0.10.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/const-oid-0.10.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-CC0 +121 -0
- package/native/win32-x64/licenses/constant_time_eq-0.6.1/LICENSE-MIT0 +14 -0
- package/native/win32-x64/licenses/cpubits-0.1.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/cpubits-0.1.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/cpufeatures-0.3.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/cpufeatures-0.3.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/crc32fast-1.5.4/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/crc32fast-1.5.4/LICENSE-MIT +21 -0
- package/native/win32-x64/licenses/crypto-common-0.2.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/crypto-common-0.2.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/ctutils-0.4.8/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/ctutils-0.4.8/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/dary_heap-0.3.9/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/dary_heap-0.3.9/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/deflate64-0.1.12/LICENSE +24 -0
- package/native/win32-x64/licenses/deranged-0.5.9/LICENSE-Apache +202 -0
- package/native/win32-x64/licenses/deranged-0.5.9/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/digest-0.11.3/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/digest-0.11.3/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/displaydoc-0.2.7/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/displaydoc-0.2.7/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/dunce-1.0.5/LICENSE +121 -0
- package/native/win32-x64/licenses/equivalent-1.0.3/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/equivalent-1.0.3/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/fallible-iterator-0.3.0/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/fallible-iterator-0.3.0/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/fallible-streaming-iterator-0.1.9/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/fastrand-2.5.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/fastrand-2.5.0/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/find-msvc-tools-0.1.15/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/find-msvc-tools-0.1.15/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/flate2-1.1.10/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/flate2-1.1.10/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/foldhash-0.2.0/LICENSE +19 -0
- package/native/win32-x64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/fs_extra-1.3.0/LICENSE +21 -0
- package/native/win32-x64/licenses/futures-channel-0.3.34/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/futures-channel-0.3.34/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/futures-core-0.3.34/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/futures-core-0.3.34/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/futures-task-0.3.34/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/futures-task-0.3.34/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/futures-util-0.3.34/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/futures-util-0.3.34/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/hashbrown-0.16.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/hashbrown-0.16.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/hashlink-0.12.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/hashlink-0.12.2/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/hmac-0.13.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/hmac-0.13.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/http-1.5.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/http-1.5.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/http-body-1.1.0/LICENSE +25 -0
- package/native/win32-x64/licenses/http-body-util-0.1.5/LICENSE +25 -0
- package/native/win32-x64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
- package/native/win32-x64/licenses/hybrid-array-0.4.15/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/hybrid-array-0.4.15/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/hyper-1.12.0/LICENSE +19 -0
- package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-ISC +15 -0
- package/native/win32-x64/licenses/hyper-rustls-0.27.10/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/hyper-util-0.1.21/LICENSE +19 -0
- package/native/win32-x64/licenses/icu_collections-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_locale_core-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_normalizer-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_normalizer_data-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_properties-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_properties_data-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/icu_provider-2.4.0/LICENSE +46 -0
- package/native/win32-x64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/include-flate-0.3.5/LICENSE +202 -0
- package/native/win32-x64/licenses/include-flate-codegen-0.3.5/LICENSE +202 -0
- package/native/win32-x64/licenses/include-flate-compress-0.3.5/LICENSE +202 -0
- package/native/win32-x64/licenses/indexmap-2.14.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/indexmap-2.14.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/inout-0.2.5/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/inout-0.2.5/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/ipnet-2.12.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/ipnet-2.12.2/LICENSE-MIT +7 -0
- package/native/win32-x64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/jieba-macros-0.11.0/LICENSE +22 -0
- package/native/win32-x64/licenses/jieba-rs-0.11.0/LICENSE +22 -0
- package/native/win32-x64/licenses/jobserver-0.1.35/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/jobserver-0.1.35/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/libbz2-rs-sys-0.2.6/LICENSE +48 -0
- package/native/win32-x64/licenses/libc-0.2.191/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/libc-0.2.191/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/libflate-2.3.2/LICENSE +21 -0
- package/native/win32-x64/licenses/libflate_lz77-2.3.0/LICENSE +21 -0
- package/native/win32-x64/licenses/libsqlite3-sys-0.39.1/LICENSE +19 -0
- package/native/win32-x64/licenses/litemap-0.8.3/LICENSE +46 -0
- package/native/win32-x64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/log-0.4.35/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/log-0.4.35/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-MIT +7 -0
- package/native/win32-x64/licenses/lru-slab-0.1.3/LICENSE-ZLIB +19 -0
- package/native/win32-x64/licenses/lzma-rust2-0.24.0/LICENSE +201 -0
- package/native/win32-x64/licenses/memchr-2.8.3/COPYING +3 -0
- package/native/win32-x64/licenses/memchr-2.8.3/LICENSE-MIT +21 -0
- package/native/win32-x64/licenses/mio-1.2.4/LICENSE +19 -0
- package/native/win32-x64/licenses/no_std_io2-0.9.4/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/no_std_io2-0.9.4/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
- package/native/win32-x64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/num-traits-0.2.19/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/num-traits-0.2.19/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/opencode-ai-models-0.0.124/LICENSE +21 -0
- package/native/win32-x64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/pbkdf2-0.13.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/pbkdf2-0.13.0/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
- package/native/win32-x64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/pkg-config-0.3.34/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/pkg-config-0.3.34/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/potential_utf-0.1.6/LICENSE +46 -0
- package/native/win32-x64/licenses/powerfmt-0.2.1/LICENSE-Apache +202 -0
- package/native/win32-x64/licenses/powerfmt-0.2.1/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/ppmd-rust-1.5.2/LICENSE-CC0.md +119 -0
- package/native/win32-x64/licenses/ppmd-rust-1.5.2/LICENSE-MIT-0.md +16 -0
- package/native/win32-x64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/proc-macro-error-attr3-3.1.1/LICENSE-MIT +21 -0
- package/native/win32-x64/licenses/proc-macro-error3-3.1.1/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/proc-macro-error3-3.1.1/LICENSE-MIT +22 -0
- package/native/win32-x64/licenses/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/proc-macro2-1.0.107/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/quinn-0.11.12/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/quinn-0.11.12/LICENSE-MIT +7 -0
- package/native/win32-x64/licenses/quinn-proto-0.11.19/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/quinn-proto-0.11.19/LICENSE-MIT +7 -0
- package/native/win32-x64/licenses/quinn-udp-0.5.16/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/quinn-udp-0.5.16/LICENSE-MIT +7 -0
- package/native/win32-x64/licenses/quote-1.0.47/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/quote-1.0.47/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/rand-0.10.3/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/rand-0.10.3/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/rand_core-0.10.1/LICENSE-APACHE +187 -0
- package/native/win32-x64/licenses/rand_core-0.10.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/rand_pcg-0.10.2/LICENSE-APACHE +187 -0
- package/native/win32-x64/licenses/rand_pcg-0.10.2/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/regex-lite-0.1.9/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/regex-lite-0.1.9/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/reqwest-0.13.5/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/reqwest-0.13.5/LICENSE-MIT +20 -0
- package/native/win32-x64/licenses/rev_lines-0.3.0/LICENSE-MIT +21 -0
- package/native/win32-x64/licenses/ring-0.17.14/LICENSE +9 -0
- package/native/win32-x64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
- package/native/win32-x64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
- package/native/win32-x64/licenses/rle-decode-fast-1.0.3/LICENSE-APACHE +13 -0
- package/native/win32-x64/licenses/rle-decode-fast-1.0.3/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/rusqlite-0.41.1/LICENSE +19 -0
- package/native/win32-x64/licenses/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/rustc-hash-2.1.3/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/rustc_version-0.4.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/rustc_version-0.4.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-ISC +15 -0
- package/native/win32-x64/licenses/rustls-0.23.46/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/rustls-platform-verifier-0.7.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/rustls-platform-verifier-0.7.1/LICENSE-MIT +21 -0
- package/native/win32-x64/licenses/rustls-webpki-0.103.16/LICENSE +19 -0
- package/native/win32-x64/licenses/rustversion-1.0.23/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/rustversion-1.0.23/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/semver-1.0.28/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/semver-1.0.28/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/serde-1.0.229/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/serde-1.0.229/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/serde_core-1.0.229/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/serde_core-1.0.229/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/serde_derive-1.0.229/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/serde_derive-1.0.229/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/serde_json-1.0.154/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/serde_json-1.0.154/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/sha1-0.11.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/sha1-0.11.0/LICENSE-MIT +28 -0
- package/native/win32-x64/licenses/sha2-0.11.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/sha2-0.11.1/LICENSE-MIT +28 -0
- package/native/win32-x64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
- package/native/win32-x64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
- package/native/win32-x64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
- package/native/win32-x64/licenses/slab-0.4.12/LICENSE +25 -0
- package/native/win32-x64/licenses/smallvec-1.16.4/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/smallvec-1.16.4/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/socket2-0.6.5/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/socket2-0.6.5/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/specta-2.0.0-rc.27/LICENSE +21 -0
- package/native/win32-x64/licenses/specta-macros-2.0.0-rc.27/LICENSE +21 -0
- package/native/win32-x64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/stop-words-0.10.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/stop-words-0.10.1/LICENSE.md +21 -0
- package/native/win32-x64/licenses/subtle-2.6.1/LICENSE +29 -0
- package/native/win32-x64/licenses/syn-2.0.119/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/syn-2.0.119/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/syn-3.0.9/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/syn-3.0.9/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
- package/native/win32-x64/licenses/synstructure-0.14.0/LICENSE +7 -0
- package/native/win32-x64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/thiserror-2.0.21/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/thiserror-2.0.21/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/thiserror-impl-2.0.21/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/thiserror-impl-2.0.21/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/time-0.3.55/LICENSE-Apache +177 -0
- package/native/win32-x64/licenses/time-0.3.55/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
- package/native/win32-x64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
- package/native/win32-x64/licenses/tinystr-0.8.5/LICENSE +46 -0
- package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-APACHE.md +202 -0
- package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-MIT.md +5 -0
- package/native/win32-x64/licenses/tinyvec-1.13.3/LICENSE-ZLIB.md +11 -0
- package/native/win32-x64/licenses/tokio-1.54.1/LICENSE +21 -0
- package/native/win32-x64/licenses/tokio-macros-2.7.2/LICENSE +22 -0
- package/native/win32-x64/licenses/tokio-rustls-0.26.6/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/tokio-rustls-0.26.6/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/tower-0.5.3/LICENSE +25 -0
- package/native/win32-x64/licenses/tower-http-0.6.11/LICENSE +25 -0
- package/native/win32-x64/licenses/tower-layer-0.3.3/LICENSE +25 -0
- package/native/win32-x64/licenses/tower-service-0.3.3/LICENSE +25 -0
- package/native/win32-x64/licenses/tracing-0.1.44/LICENSE +25 -0
- package/native/win32-x64/licenses/tracing-core-0.1.36/LICENSE +25 -0
- package/native/win32-x64/licenses/try-lock-0.2.5/LICENSE +21 -0
- package/native/win32-x64/licenses/typed-path-0.13.0/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/typed-path-0.13.0/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/typenum-1.20.1/LICENSE +1 -0
- package/native/win32-x64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
- package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-APACHE +176 -0
- package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/unicode-ident-1.0.27/LICENSE-UNICODE +39 -0
- package/native/win32-x64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
- package/native/win32-x64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
- package/native/win32-x64/licenses/url-2.5.8/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/utf8_iter-1.1.0/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/utf8_iter-1.1.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/utf_types-1.0.0/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/utf_types-1.0.0/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
- package/native/win32-x64/licenses/want-0.3.2/LICENSE +20 -0
- package/native/win32-x64/licenses/windows-link-0.2.1/license-apache-2.0 +201 -0
- package/native/win32-x64/licenses/windows-link-0.2.1/license-mit +21 -0
- package/native/win32-x64/licenses/windows-sys-0.61.2/license-apache-2.0 +201 -0
- package/native/win32-x64/licenses/windows-sys-0.61.2/license-mit +21 -0
- package/native/win32-x64/licenses/writeable-0.6.4/LICENSE +46 -0
- package/native/win32-x64/licenses/yoke-0.8.4/LICENSE +46 -0
- package/native/win32-x64/licenses/yoke-derive-0.8.4/LICENSE +46 -0
- package/native/win32-x64/licenses/zerofrom-0.1.8/LICENSE +46 -0
- package/native/win32-x64/licenses/zerofrom-derive-0.1.8/LICENSE +46 -0
- package/native/win32-x64/licenses/zeroize-1.9.1/LICENSE-APACHE +202 -0
- package/native/win32-x64/licenses/zeroize-1.9.1/LICENSE-MIT +25 -0
- package/native/win32-x64/licenses/zerotrie-0.2.5/LICENSE +46 -0
- package/native/win32-x64/licenses/zerovec-0.11.9/LICENSE +46 -0
- package/native/win32-x64/licenses/zerovec-derive-0.11.7/LICENSE +46 -0
- package/native/win32-x64/licenses/zip-9.3.0/LICENSE +21 -0
- package/native/win32-x64/licenses/zlib-rs-0.6.8/LICENSE +19 -0
- package/native/win32-x64/licenses/zmij-1.0.23/LICENSE-MIT +23 -0
- package/native/win32-x64/licenses/zopfli-0.8.4/COPYING +201 -0
- package/native/win32-x64/licenses/zstd-0.14.3/LICENSE +28 -0
- package/native/win32-x64/licenses/zstd-safe-8.2.0/LICENSE +28 -0
- package/native/win32-x64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE +28 -0
- package/native/win32-x64/licenses/zstd-sys-2.1.2+zstd.1.5.7/LICENSE.BSD-3-Clause +32 -0
- package/package.json +23 -15
- package/dist/chunk-0w6g1w1a.js +0 -2
- package/dist/chunk-0wr12bg8.js +0 -2
- package/dist/chunk-3137n54p.js +0 -2
- package/dist/chunk-3jw1yt27.js +0 -2
- package/dist/chunk-45542yk3.js +0 -2
- package/dist/chunk-4phhhm7t.js +0 -2
- package/dist/chunk-546h1tk7.js +0 -2
- package/dist/chunk-8kwxqckk.js +0 -2
- package/dist/chunk-8qyb69g5.js +0 -2
- package/dist/chunk-93y78gn4.js +0 -2
- package/dist/chunk-95qfzbmx.js +0 -2
- package/dist/chunk-98cbjkvk.js +0 -4
- package/dist/chunk-9gt81b51.js +0 -2
- package/dist/chunk-bfqqsv6a.js +0 -2
- package/dist/chunk-cd4v63j8.js +0 -2
- package/dist/chunk-ek4acj2p.js +0 -2
- package/dist/chunk-eqwga6j5.js +0 -2
- package/dist/chunk-famkkndg.js +0 -2
- package/dist/chunk-jrnfqqfc.js +0 -2
- package/dist/chunk-pym8eb5y.js +0 -2
- package/dist/chunk-qy06pvy8.js +0 -2
- package/dist/chunk-rf5g26qv.js +0 -2
- package/dist/chunk-rfn9vecr.js +0 -2
- package/dist/chunk-tjkftq6f.js +0 -2
- package/dist/chunk-v3etjs4w.js +0 -2
- package/dist/chunk-x54538jy.js +0 -1
- package/dist/chunk-x68b6rmk.js +0 -2
- package/dist/chunk-z8njjc2c.js +0 -2
- package/dist/chunk-zk6745qh.js +0 -2
- package/rust/Cargo.lock +0 -4318
- package/rust/Cargo.toml +0 -44
- package/rust/build.rs +0 -16
- package/rust/permissions/autogenerated/reference.md +0 -296
- package/rust/permissions/default.toml +0 -20
- package/rust/permissions/schemas/schema.json +0 -263
- package/rust/src/__tests__/native_network.rs +0 -406
- package/rust/src/lib.rs +0 -82
- package/rust/src/native_network.rs +0 -302
- package/rust/src/native_network_diagnostics.rs +0 -220
- package/rust/src/providers/managed.rs +0 -801
- package/rust/src/providers/tests.rs +0 -684
- package/rust/src/providers.rs +0 -984
- package/rust/src/skills.rs +0 -130
- package/rust/src/system_proxy.rs +0 -257
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{dn,xo}from"./chunk-twbp4j4c.js";function c(t){return{key:t.name,label:t.name,description:t.description??void 0,payload:t.name}}function cn(t,s,o=50){let i=new Set,r=t.filter((n)=>{if(i.has(n.name))return!1;return i.add(n.name),!0});if(!s)return r.slice(0,o).map(c);let l=s.toLowerCase(),e=[];for(let n of r){let a=dn(n.name,s);if(a)e.push({c:n,score:a.score});else if(n.description?.toLowerCase().includes(l))e.push({c:n,score:-1})}return e.sort((n,a)=>a.score-n.score),e.slice(0,o).map((n)=>c(n.c))}function oa(t,s,o,i=50){let r=o?`${o.replace(/\/$/,"")}/`:"",l=t.map((e)=>({abs:e,rel:r&&e.startsWith(r)?e.slice(r.length):e}));return xo(l,s,(e)=>e.rel,i).map(({item:e})=>({key:e.abs,label:e.rel,payload:e.abs}))}
|
|
2
|
+
export{cn,oa};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e}from"./chunk-epg5w48v.js";import{kt}from"./chunk-frbakxev.js";import{H,Ue,j,ht}from"./chunk-v3etjs4w.js";import{gt,ft}from"./chunk-pym8eb5y.js";import{CardSendIcon as pe}from"@solar-icons/react/line-duotone/card-send";import{cn as J}from"cn";import{ChevronDownIcon as se,ExternalLinkIcon as ve,EyeIcon as ne,EyeOffIcon as oe,PlusIcon as ge,ServerIcon as ie,Trash2Icon as fe}from"lucide-react";import{useEffect as V,useRef as ye,useState as y}from"react";import{Button as R}from"@nyssance/shadcn/vega/components/ui/button";import{Collapsible as re,CollapsibleContent as ae,CollapsibleTrigger as le}from"@nyssance/shadcn/vega/components/ui/collapsible";import{Field as D,FieldDescription as de,FieldLabel as O}from"@nyssance/shadcn/vega/components/ui/field";import{Input as ee}from"@nyssance/shadcn/vega/components/ui/input";import{InputGroup as q,InputGroupAddon as ce,InputGroupButton as ue,InputGroupInput as Q}from"@nyssance/shadcn/vega/components/ui/input-group";import{Select as be,SelectContent as he,SelectGroup as xe,SelectItem as Ne,SelectTrigger as Pe,SelectValue as Ce}from"@nyssance/shadcn/vega/components/ui/select";import{Separator as X}from"@nyssance/shadcn/vega/components/ui/separator";import{Spinner as Y}from"@nyssance/shadcn/vega/components/ui/spinner";import{Textarea as we}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as t,jsxs as i,Fragment as Se}from"react/jsx-runtime";function W(s){if(s instanceof Error)return s.message;if(typeof s==="object"&&s!==null&&"message"in s)return String(s.message);return String(s)}function Z(){let{host:s}=e();return(d)=>{let u=d instanceof Error?d:Error(W(d));if(s.reportError)s.reportError(u);else console.error(u)}}function On({refreshAccountProviders:s,openTopUp:d,group:u}){let{t:v}=e().host,C=Z(),[S,N]=y(0),[l,n]=y(null),[h,c]=y(!0),w=ye(s);return w.current=s,V(()=>{let b=()=>N((p)=>p+1);return window.addEventListener("focus",b),()=>window.removeEventListener("focus",b)},[]),V(()=>{let b=!0;return c(!0),w.current().then(()=>{if(b)n(null),c(!1)},(p)=>{if(b)n(W(p)),c(!1)}),()=>{b=!1}},[S]),t(u,{children:i("div",{className:"space-y-3 rounded-xl border p-4",children:[i("div",{className:"flex items-center justify-between gap-3",children:[t("h3",{className:"text-sm font-medium",children:"ALwith"}),d&&t(R,{variant:"ghost",size:"icon-sm",className:"text-primary hover:text-primary/80","aria-label":v("provider.managed.topUp"),title:v("provider.managed.topUp"),onClick:()=>{d().catch(C)},children:t(pe,{className:"size-4","aria-hidden":"true"})})]}),t("p",{className:"text-muted-foreground text-xs",children:v("provider.managed.description")}),l!==null&&i("div",{className:"space-y-2",children:[t("p",{role:"alert",className:"text-destructive text-xs",children:l}),i(R,{variant:"outline",size:"sm",disabled:h,onClick:()=>N((b)=>b+1),children:[h&&t(Y,{"aria-hidden":"true"}),v("provider.retry")]})]})]})})}function qi({port:s,bridge:d,group:u,label:v,refreshAccountProviders:C,openTopUp:S}){let{host:N}=e(),{t:l}=N,n=Z(),h=(o)=>N.notify?.(o),c=ft(s,n),w=c?.providers??{},[b,p]=y(null),[x,k]=y(H[0]?.id??""),[F,B]=y(0),[U,A]=y({}),_=async(o,r,f)=>{p(r.id);try{let a=await s.save(o,r.id,f);if(!a.error)A((M)=>{let L={...M};return delete L[r.id],L});if(a.error)n(a.error);if(!a.error)h(l(a.status==="pending"?"provider.pending":f===null?"provider.removed":"provider.saved",{name:r.name}));return a}catch(a){return n(a),null}finally{p(null)}},I=async(o)=>{p(o);try{let r=await s.test(o);if(A((f)=>({...f,[o]:r})),r.ok)h(l("provider.testSuccess",{latency:r.latencyMs??0}));else n(`${l(`provider.testErrors.${r.code}`)}${r.message?`: ${r.message}`:""}`)}catch(r){n(r)}finally{p(null)}},T=async(o,r)=>{p(r.id);try{let f=await s.saveCustom(o,r);if(f.error)n(f.error);else A((a)=>{let M={...a};return delete M[r.id],M}),h(l(f.status==="pending"?"provider.pending":"provider.saved",{name:r.name}));return!f.error}catch(f){return n(f),!1}finally{p(null)}},z=async(o)=>{if(!c)return;p(o.id);try{let r=await s.removeCustom(c.revision,o.id);if(r.error)n(r.error);else k(H[0]?.id??""),h(l(r.status==="pending"?"provider.pending":"provider.removed",{name:o.name}))}catch(r){n(r)}finally{p(null)}},K=async()=>{p("retry");try{let o=await gt(s);if(o.error)n(o.error);else if(o.status==="pending")h(l("provider.pending"))}catch(o){n(o)}finally{p(null)}},P=H.find((o)=>o.id===x)??null,E=c?.customProviders.find((o)=>o.id===x)??null;return V(()=>{if(!c||x==="new"||P||E)return;k(H[0]?.id??"")},[c,x,P,E]),i("div",{className:"flex flex-col gap-6",children:[i(u,{children:[t(v,{children:"Codex"}),t(kt,{bridge:d})]}),C&&t(On,{refreshAccountProviders:C,openTopUp:S,group:u}),c?.status==="pending"&&t("p",{className:"text-muted-foreground text-sm",children:l("provider.pending")}),c?.error&&t("p",{className:"text-destructive text-sm",children:c.error}),c&&c.status!=="applied"&&t(R,{variant:"outline",className:"self-start",disabled:b!==null,onClick:()=>void K(),children:l("provider.retry")}),t(u,{children:c&&i(Se,{children:[t(Un,{activeId:x,keys:w,customProviders:c.customProviders,onSelect:k,onAdd:()=>k("new"),label:v}),H.map((o)=>t("div",{hidden:x!==o.id,children:t(Gn,{provider:o,saved:w[o.id]??null,revision:c.revision,busy:b!==null,onSave:(r,f)=>_(r,o,f),testResult:U[o.id],onTest:()=>I(o.id)})},o.id)),c.customProviders.map((o)=>t("div",{hidden:x!==o.id,children:t(en,{provider:o,revision:c.revision,busy:b!==null,testResult:U[o.id],onTest:()=>I(o.id),onRemove:()=>z(o),onSaved:k,onSave:T})},o.id)),t("div",{hidden:x!=="new",children:t(en,{provider:null,revision:c.revision,busy:b!==null,onSaved:(o)=>{B((r)=>r+1),k(o)},onSave:T},F)})]})})]})}function Un({activeId:s,keys:d,customProviders:u,onSelect:v,onAdd:C,label:S}){let{t:N}=e().host;return i("div",{children:[t(S,{children:N("provider.label")}),i("div",{className:"grid grid-cols-2 gap-2 py-4 sm:grid-cols-3",children:[H.map((l)=>{let n=l.logo,h=d[l.id]!==void 0;return t(te,{id:l.id,name:l.name,active:s===l.id,configured:h,icon:t(n,{className:"size-5 shrink-0"}),onClick:()=>v(l.id)},l.id)}),u.map((l)=>t(te,{id:l.id,name:l.name,active:s===l.id,configured:!0,icon:t(ie,{className:"size-5 shrink-0"}),onClick:()=>v(l.id)},l.id)),i(R,{type:"button",variant:"outline","aria-pressed":s==="new",onClick:C,className:J("h-9 w-full justify-start gap-2 rounded-full px-4",s==="new"&&"bg-accent"),children:[t(ge,{className:"size-4 shrink-0"}),t("span",{className:"truncate",children:N("provider.customButton")})]})]})]})}function te({id:s,name:d,active:u,configured:v,icon:C,onClick:S}){return i(R,{type:"button",variant:"outline","aria-label":d,"aria-pressed":u,onClick:S,className:J("h-9 w-full gap-2 rounded-full px-4",u&&"bg-accent"),children:[C,t("span",{className:"min-w-0 flex-1 truncate text-center",children:d}),t("span",{"data-testid":`${s}-status`,"data-configured":v,"aria-hidden":"true",className:J("size-2 shrink-0 rounded-full",v?"bg-green-500":"bg-muted-foreground/30")})]})}function Bn({result:s}){let{t:d}=e().host;return t("p",{role:"status",className:s.ok?"text-muted-foreground text-xs":"text-destructive text-xs",children:s.ok?d("provider.testSuccess",{latency:s.latencyMs??0}):`${d(`provider.testErrors.${s.code}`)}${s.status?` (HTTP ${s.status})`:""}`})}function me({busy:s,canTest:d,onTest:u,onRemove:v,result:C,children:S}){let{t:N}=e().host;return i("div",{className:"space-y-3 border-t pt-4",children:[C&&t(Bn,{result:C}),u&&t("p",{className:"text-muted-foreground text-xs leading-relaxed",children:N("provider.testDescription")}),i("div",{className:"flex flex-wrap items-center gap-2",children:[v&&i(R,{size:"sm",variant:"destructive",className:"font-normal",disabled:s,onClick:v,children:[t(fe,{className:"size-4"}),N("provider.remove")]}),i("div",{className:"ms-auto flex flex-wrap items-center gap-2",children:[u&&t(R,{size:"sm",variant:"outline",disabled:s||!d,onClick:u,children:N("provider.testButton")}),S]})]})]})}function Gn({provider:s,saved:d,revision:u,busy:v,onSave:C,testResult:S,onTest:N}){let{host:l}=e(),{t:n}=l,h=Z(),[c,w]=y(""),[b,p]=y(!1),[x,k]=y({saved:d,revision:u}),[F,B]=y(j(s,d?.region)?.id),[U,A]=y(d?.base_url??""),_=s.logo,I=d!==null,T=c.trim(),z=ht(s,F),K=F!==j(s,x.saved?.region)?.id,P=U.trim()!==(x.saved?.base_url??"");V(()=>{if(u>x.revision&&T===""&&!K&&!P)k({saved:d,revision:u}),B(j(s,d?.region)?.id),A(d?.base_url??"")},[u,d,s,x.revision,T,K,P]);let E=!v&&(T!==""||K||P),o=`${s.id}-api-key`,r=async(a)=>{let M=c,L=F,m=await C(x.revision,a);if(!m)return;let G=m.providers[s.id]??null;k({saved:G,revision:m.revision}),w((g)=>g===M?"":g),B((g)=>g===L?j(s,G?.region)?.id:g),A((g)=>g===U?G?.base_url??"":g)},f=()=>{if(T===""&&x.saved===null)return;r({...T===""?{}:{apiKey:T},...F===void 0?{}:{region:F},...P?{baseUrl:U.trim()}:{}})};return i("div",{className:"space-y-5 rounded-xl border p-4",children:[i("div",{className:"flex flex-wrap items-center gap-3",children:[t(_,{className:"size-6 shrink-0"}),i("div",{className:"min-w-0 flex-1",children:[t("h3",{className:"text-sm font-medium",children:s.name}),t("div",{className:"text-muted-foreground mt-0.5 text-xs",children:I?n("provider.active",{name:s.name,count:s.models.length}):n("provider.inactive")})]}),s.regions&&i(be,{value:F,onValueChange:(a)=>B(a??s.regions?.[0]?.id),children:[t(Pe,{className:"w-32","aria-label":n("provider.region"),children:t(Ce,{})}),t(he,{align:"start",alignItemWithTrigger:!1,sideOffset:6,className:"max-w-(--available-width) min-w-0 p-1",children:t(xe,{children:s.regions.map((a)=>t(Ne,{value:a.id,children:n(`provider.regions.${a.id}`)},a.id))})})]})]}),t(X,{}),i("section",{className:"space-y-4","aria-labelledby":`${s.id}-connection`,children:[t("h4",{id:`${s.id}-connection`,className:"text-sm font-medium",children:n("provider.connectionSettings")}),i(D,{className:"gap-2",children:[i("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t(O,{htmlFor:o,children:n("provider.apiKey")}),z!==null&&i(R,{type:"button",variant:"link",size:"sm",className:"text-muted-foreground h-auto p-0 text-xs",onClick:()=>{try{l.openLink(z)}catch(a){h(a)}},children:[n("provider.getKey",{name:s.name}),t(ve,{className:"size-3","aria-hidden":"true"})]})]}),i(q,{children:[t(Q,{id:o,type:b?"text":"password",autoComplete:"off",spellCheck:!1,placeholder:I?n("provider.apiKeyKept"):n("provider.apiKeyPlaceholder"),value:c,onChange:(a)=>w(a.target.value),onKeyDown:(a)=>{if(a.key==="Enter"&&E)f()}}),t(ce,{align:"inline-end",children:t(ue,{size:"icon-xs","aria-label":n(b?"provider.hideKey":"provider.showKey"),onClick:()=>p((a)=>!a),children:b?t(ne,{}):t(oe,{})})})]})]}),i(re,{className:"space-y-2",children:[i(le,{render:t(R,{variant:"ghost",size:"sm",className:"group px-2.5"}),children:[n("provider.baseUrl"),t(se,{className:"size-4 transition-transform group-aria-expanded:rotate-180","aria-hidden":"true"})]}),t(ae,{children:i(D,{className:"gap-2",children:[t(O,{htmlFor:`${s.id}-base-url`,className:"sr-only",children:n("provider.baseUrl")}),t(q,{children:t(Q,{id:`${s.id}-base-url`,type:"url",spellCheck:!1,placeholder:j(s,F)?.baseUrl??s.baseUrl,value:U,onChange:(a)=>A(a.target.value)})}),t(de,{className:"text-xs",children:n("provider.baseUrlDescription")})]})})]})]}),t(me,{busy:v,canTest:!E,onTest:I?N:void 0,onRemove:I?()=>void r(null):void 0,result:!E?S:void 0,children:i(R,{size:"sm",disabled:!E,onClick:f,children:[v&&t(Y,{"data-icon":"inline-start"}),n("provider.saveButton")]})})]})}function en({provider:s,revision:d,busy:u,testResult:v,onTest:C,onRemove:S,onSaved:N,onSave:l}){let{t:n}=e().host,[h,c]=y(s?.name??""),[w,b]=y(s?.baseUrl??""),[p,x]=y(""),[k,F]=y(!1),[B,U]=y(s===null),[A,_]=y(s?.models??[]),[I,T]=y(s?JSON.stringify(s.models,null,2):`[
|
|
1
|
+
import{e}from"./chunk-t9djctkk.js";import{Pt}from"./chunk-y0cxqkzd.js";import{O,Ge,K,xt}from"./chunk-69p0nqws.js";import{vt,yt}from"./chunk-9g0j2ptv.js";import{CardSendIcon as pe}from"@solar-icons/react/line-duotone/card-send";import{cn as V}from"cn";import{ChevronDownIcon as se,ExternalLinkIcon as ve,EyeIcon as ne,EyeOffIcon as oe,PlusIcon as ge,ServerIcon as ie,Trash2Icon as fe}from"lucide-react";import{useEffect as W,useRef as ye,useState as y}from"react";import{Button as R}from"@nyssance/shadcn/vega/components/ui/button";import{Collapsible as re,CollapsibleContent as ae,CollapsibleTrigger as le}from"@nyssance/shadcn/vega/components/ui/collapsible";import{Field as _,FieldDescription as de,FieldLabel as J}from"@nyssance/shadcn/vega/components/ui/field";import{Input as ee}from"@nyssance/shadcn/vega/components/ui/input";import{InputGroup as q,InputGroupAddon as ce,InputGroupButton as ue,InputGroupInput as Q}from"@nyssance/shadcn/vega/components/ui/input-group";import{Select as be,SelectContent as he,SelectGroup as xe,SelectItem as Ne,SelectTrigger as Pe,SelectValue as Ce}from"@nyssance/shadcn/vega/components/ui/select";import{Separator as X}from"@nyssance/shadcn/vega/components/ui/separator";import{Spinner as Y}from"@nyssance/shadcn/vega/components/ui/spinner";import{Textarea as we}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as t,jsxs as i,Fragment as Se}from"react/jsx-runtime";function H(s){if(s instanceof Error)return s.message;if(typeof s==="object"&&s!==null&&"message"in s)return String(s.message);return String(s)}function Z(){let{host:s}=e();return(d)=>{let u=d instanceof Error?d:Error(H(d));if(s.reportError)s.reportError(u);else console.error(u)}}function Bn({refreshAccountProviders:s,openTopUp:d,group:u}){let{t:v}=e().host,C=Z(),[S,N]=y(0),[l,n]=y(null),[h,c]=y(!0),w=ye(s);return w.current=s,W(()=>{let b=()=>N((p)=>p+1);return window.addEventListener("focus",b),()=>window.removeEventListener("focus",b)},[]),W(()=>{let b=!0;return c(!0),w.current().then(()=>{if(b)n(null),c(!1)},(p)=>{if(b)n(H(p)),c(!1)}),()=>{b=!1}},[S]),t(u,{children:i("div",{className:"space-y-3 rounded-xl border p-4",children:[i("div",{className:"flex items-center justify-between gap-3",children:[t("h3",{className:"text-sm font-medium",children:"ALwith"}),d&&t(R,{variant:"ghost",size:"icon-sm",className:"text-primary hover:text-primary/80","aria-label":v("provider.managed.topUp"),title:v("provider.managed.topUp"),onClick:()=>{d().catch(C)},children:t(pe,{className:"size-4","aria-hidden":"true"})})]}),t("p",{className:"text-muted-foreground text-xs",children:v("provider.managed.description")}),l!==null&&i("div",{className:"space-y-2",children:[t("p",{role:"alert",className:"text-destructive text-xs",children:l}),i(R,{variant:"outline",size:"sm",disabled:h,onClick:()=>N((b)=>b+1),children:[h&&t(Y,{"aria-hidden":"true"}),v("provider.retry")]})]})]})})}function Zi({port:s,bridge:d,group:u,label:v,refreshAccountProviders:C,openTopUp:S}){let{host:N}=e(),{t:l}=N,n=Z(),h=(o)=>N.notify?.(o),c=yt(s,n),w=c?.providers??{},[b,p]=y(null),[x,k]=y(O[0]?.id??""),[F,U]=y(0),[z,M]=y({}),j=async(o,r,f)=>{p(r.id);try{let a=await s.save(o,r.id,f);if(!a.error)M((L)=>{let G={...L};return delete G[r.id],G});if(a.error)n(a.error);if(!a.error)h(l(a.status==="pending"?"provider.pending":f===null?"provider.removed":"provider.saved",{name:r.name}));return a}catch(a){return n(a),null}finally{p(null)}},I=async(o)=>{p(o);try{let r=await s.test(o);if(M((f)=>({...f,[o]:r})),r.ok)h(l("provider.testSuccess",{latency:r.latencyMs??0}));else n(`${l(`provider.testErrors.${r.code}`)}${r.message?`: ${r.message}`:""}`)}catch(r){n(r)}finally{p(null)}},T=async(o,r)=>{p(r.id);try{let f=await s.saveCustom(o,r);if(f.error)n(f.error);else M((a)=>{let L={...a};return delete L[r.id],L}),h(l(f.status==="pending"?"provider.pending":"provider.saved",{name:r.name}));return!f.error}catch(f){return n(f),!1}finally{p(null)}},E=async(o)=>{if(!c)return;p(o.id);try{let r=await s.removeCustom(c.revision,o.id);if(r.error)n(r.error);else k(O[0]?.id??""),h(l(r.status==="pending"?"provider.pending":"provider.removed",{name:o.name}))}catch(r){n(r)}finally{p(null)}},B=async()=>{p("retry");try{let o=await vt(s);if(o.error)n(o.error);else if(o.status==="pending")h(l("provider.pending"))}catch(o){n(o)}finally{p(null)}},P=O.find((o)=>o.id===x)??null,A=c?.customProviders.find((o)=>o.id===x)??null;return W(()=>{if(!c||x==="new"||P||A)return;k(O[0]?.id??"")},[c,x,P,A]),i("div",{className:"flex flex-col gap-6",children:[i(u,{children:[t(v,{children:"Codex"}),t(Pt,{bridge:d})]}),C&&t(Bn,{refreshAccountProviders:C,openTopUp:S,group:u}),c?.status==="pending"&&t("p",{className:"text-muted-foreground text-sm",children:l("provider.pending")}),c?.error&&t("p",{className:"text-destructive text-sm",children:c.error}),c&&c.status!=="applied"&&t(R,{variant:"outline",className:"self-start",disabled:b!==null,onClick:()=>void B(),children:l("provider.retry")}),t(u,{children:c&&i(Se,{children:[t(Gn,{activeId:x,keys:w,customProviders:c.customProviders,onSelect:k,onAdd:()=>k("new"),label:v}),O.map((o)=>t("div",{hidden:x!==o.id,children:t(Vn,{provider:o,saved:w[o.id]??null,revision:c.revision,busy:b!==null,onSave:(r,f)=>j(r,o,f),testResult:z[o.id],onTest:()=>I(o.id)})},o.id)),c.customProviders.map((o)=>t("div",{hidden:x!==o.id,children:t(tn,{provider:o,revision:c.revision,busy:b!==null,testResult:z[o.id],onTest:()=>I(o.id),onRemove:()=>E(o),onSaved:k,onSave:T})},o.id)),t("div",{hidden:x!=="new",children:t(tn,{provider:null,revision:c.revision,busy:b!==null,onSaved:(o)=>{U((r)=>r+1),k(o)},onSave:T},F)})]})})]})}function Gn({activeId:s,keys:d,customProviders:u,onSelect:v,onAdd:C,label:S}){let{t:N}=e().host;return i("div",{children:[t(S,{children:N("provider.label")}),i("div",{className:"grid grid-cols-2 gap-2 py-4 sm:grid-cols-3",children:[O.map((l)=>{let n=l.logo,h=d[l.id]!==void 0;return t(te,{id:l.id,name:l.name,active:s===l.id,configured:h,icon:t(n,{className:"size-5 shrink-0"}),onClick:()=>v(l.id)},l.id)}),u.map((l)=>t(te,{id:l.id,name:l.name,active:s===l.id,configured:!0,icon:t(ie,{className:"size-5 shrink-0"}),onClick:()=>v(l.id)},l.id)),i(R,{type:"button",variant:"outline","aria-pressed":s==="new",onClick:C,className:V("h-9 w-full justify-start gap-2 rounded-full px-4",s==="new"&&"bg-accent"),children:[t(ge,{className:"size-4 shrink-0"}),t("span",{className:"truncate",children:N("provider.customButton")})]})]})]})}function te({id:s,name:d,active:u,configured:v,icon:C,onClick:S}){return i(R,{type:"button",variant:"outline","aria-label":d,"aria-pressed":u,onClick:S,className:V("h-9 w-full gap-2 rounded-full px-4",u&&"bg-accent"),children:[C,t("span",{className:"min-w-0 flex-1 truncate text-center",children:d}),t("span",{"data-testid":`${s}-status`,"data-configured":v,"aria-hidden":"true",className:V("size-2 shrink-0 rounded-full",v?"bg-green-500":"bg-muted-foreground/30")})]})}function zn({result:s}){let{t:d}=e().host;return t("p",{role:"status",className:s.ok?"text-muted-foreground text-xs":"text-destructive text-xs",children:s.ok?d("provider.testSuccess",{latency:s.latencyMs??0}):`${d(`provider.testErrors.${s.code}`)}${s.status?` (HTTP ${s.status})`:""}`})}function me({busy:s,canTest:d,onTest:u,onRemove:v,result:C,children:S}){let{t:N}=e().host;return i("div",{className:"space-y-3 border-t pt-4",children:[C&&t(zn,{result:C}),u&&t("p",{className:"text-muted-foreground text-xs leading-relaxed",children:N("provider.testDescription")}),i("div",{className:"flex flex-wrap items-center gap-2",children:[v&&i(R,{size:"sm",variant:"destructive",className:"font-normal",disabled:s,onClick:v,children:[t(fe,{className:"size-4"}),N("provider.remove")]}),i("div",{className:"ms-auto flex flex-wrap items-center gap-2",children:[u&&t(R,{size:"sm",variant:"outline",disabled:s||!d,onClick:u,children:N("provider.testButton")}),S]})]})]})}function Vn({provider:s,saved:d,revision:u,busy:v,onSave:C,testResult:S,onTest:N}){let{host:l}=e(),{t:n}=l,h=Z(),[c,w]=y(""),[b,p]=y(!1),[x,k]=y({saved:d,revision:u}),[F,U]=y(K(s,d?.region)?.id),[z,M]=y(d?.base_url??""),j=s.logo,I=d!==null,T=c.trim(),E=xt(s,F),B=F!==K(s,x.saved?.region)?.id,P=z.trim()!==(x.saved?.base_url??"");W(()=>{if(u>x.revision&&T===""&&!B&&!P)k({saved:d,revision:u}),U(K(s,d?.region)?.id),M(d?.base_url??"")},[u,d,s,x.revision,T,B,P]);let A=!v&&(T!==""||B||P),o=`${s.id}-api-key`,r=async(a)=>{let L=c,G=F,m=await C(x.revision,a);if(!m)return;let D=m.providers[s.id]??null;k({saved:D,revision:m.revision}),w((g)=>g===L?"":g),U((g)=>g===G?K(s,D?.region)?.id:g),M((g)=>g===z?D?.base_url??"":g)},f=()=>{if(T===""&&x.saved===null)return;r({...T===""?{}:{apiKey:T},...F===void 0?{}:{region:F},...P?{baseUrl:z.trim()}:{}})};return i("div",{className:"space-y-5 rounded-xl border p-4",children:[i("div",{className:"flex flex-wrap items-center gap-3",children:[t(j,{className:"size-6 shrink-0"}),i("div",{className:"min-w-0 flex-1",children:[t("h3",{className:"text-sm font-medium",children:s.name}),t("div",{className:"text-muted-foreground mt-0.5 text-xs",children:I?n("provider.active",{name:s.name,count:s.models.length}):n("provider.inactive")})]}),s.regions&&i(be,{value:F,onValueChange:(a)=>U(a??s.regions?.[0]?.id),children:[t(Pe,{className:"w-32","aria-label":n("provider.region"),children:t(Ce,{})}),t(he,{align:"start",alignItemWithTrigger:!1,sideOffset:6,className:"max-w-(--available-width) min-w-0 p-1",children:t(xe,{children:s.regions.map((a)=>t(Ne,{value:a.id,children:n(`provider.regions.${a.id}`)},a.id))})})]})]}),t(X,{}),i("section",{className:"space-y-4","aria-labelledby":`${s.id}-connection`,children:[t("h4",{id:`${s.id}-connection`,className:"text-sm font-medium",children:n("provider.connectionSettings")}),i(_,{className:"gap-2",children:[i("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t(J,{htmlFor:o,children:n("provider.apiKey")}),E!==null&&i(R,{type:"button",variant:"link",size:"sm",className:"text-muted-foreground h-auto p-0 text-xs",onClick:()=>{try{l.openLink(E)}catch(a){h(a)}},children:[n("provider.getKey",{name:s.name}),t(ve,{className:"size-3","aria-hidden":"true"})]})]}),i(q,{children:[t(Q,{id:o,type:b?"text":"password",autoComplete:"off",spellCheck:!1,placeholder:I?n("provider.apiKeyKept"):n("provider.apiKeyPlaceholder"),value:c,onChange:(a)=>w(a.target.value),onKeyDown:(a)=>{if(a.key==="Enter"&&A)f()}}),t(ce,{align:"inline-end",children:t(ue,{size:"icon-xs","aria-label":n(b?"provider.hideKey":"provider.showKey"),onClick:()=>p((a)=>!a),children:b?t(ne,{}):t(oe,{})})})]})]}),i(re,{className:"space-y-2",children:[i(le,{render:t(R,{variant:"ghost",size:"sm",className:"group px-2.5"}),children:[n("provider.baseUrl"),t(se,{className:"size-4 transition-transform group-aria-expanded:rotate-180","aria-hidden":"true"})]}),t(ae,{children:i(_,{className:"gap-2",children:[t(J,{htmlFor:`${s.id}-base-url`,className:"sr-only",children:n("provider.baseUrl")}),t(q,{children:t(Q,{id:`${s.id}-base-url`,type:"url",spellCheck:!1,placeholder:K(s,F)?.baseUrl??s.baseUrl,value:z,onChange:(a)=>M(a.target.value)})}),t(de,{className:"text-xs",children:n("provider.baseUrlDescription")})]})})]})]}),t(me,{busy:v,canTest:!A,onTest:I?N:void 0,onRemove:I?()=>void r(null):void 0,result:!A?S:void 0,children:i(R,{size:"sm",disabled:!A,onClick:f,children:[v&&t(Y,{"data-icon":"inline-start"}),n("provider.saveButton")]})})]})}function tn({provider:s,revision:d,busy:u,testResult:v,onTest:C,onRemove:S,onSaved:N,onSave:l}){let{t:n}=e().host,[h,c]=y(s?.name??""),[w,b]=y(s?.baseUrl??""),[p,x]=y(""),[k,F]=y(!1),[U,z]=y(s===null),[M,j]=y(s?.models??[]),[I,T]=y(s?JSON.stringify(s.models,null,2):`[
|
|
2
2
|
{ "label": "My Model", "api_id": "model-id" }
|
|
3
|
-
]`),[
|
|
4
|
-
export{
|
|
3
|
+
]`),[E,B]=y(null),[P]=y(()=>s?.id??`custom_${crypto.randomUUID().replaceAll("-","")}`),A=`${P}-name`,o=`${P}-base-url`,r=`${P}-api-key`,f=`${P}-models`,a=h.trim()!==s?.name||w.trim()!==s.baseUrl||p.trim()!==""||I!==JSON.stringify(s.models,null,2),L=(m)=>{if(!m)try{j(Ge(I)),B(null)}catch(D){B(H(D));return}z(m)},G=async()=>{let m;try{m=Ge(I),B(null)}catch(g){B(H(g)),z(!0);return}if(await l(d,{id:P,name:h.trim(),baseUrl:w.trim(),models:m,...p.trim()===""?{}:{apiKey:p.trim()}}))c((g)=>g===h?h.trim():g),b((g)=>g===w?w.trim():g),x((g)=>g===p?"":g),T((g)=>g===I?JSON.stringify(m,null,2):g),N(P)};return i("div",{className:"space-y-5 rounded-xl border p-4",children:[i("div",{className:"flex items-center gap-3",children:[t(ie,{className:"size-6 shrink-0"}),i("div",{className:"min-w-0 flex-1",children:[t("h3",{className:"text-sm font-medium break-words",children:s?.name||n("provider.addCustom")}),t("div",{className:"text-muted-foreground mt-0.5 text-xs",children:n("provider.customDescription")})]}),s&&t("span",{className:"text-muted-foreground shrink-0 text-xs",children:n("provider.configured")})]}),t(X,{}),i("section",{className:"space-y-4","aria-labelledby":`${P}-connection`,children:[t("h4",{id:`${P}-connection`,className:"text-sm font-medium",children:n("provider.connectionSettings")}),i(_,{className:"gap-2",children:[t(J,{htmlFor:A,children:n("provider.name")}),t(ee,{id:A,value:h,onChange:(m)=>c(m.target.value)})]}),i(_,{className:"gap-2",children:[t(J,{htmlFor:o,children:n("provider.baseUrl")}),t(ee,{id:o,type:"url",placeholder:"https://.../v1",value:w,onChange:(m)=>b(m.target.value)})]}),i(_,{className:"gap-2",children:[t(J,{htmlFor:r,children:n("provider.apiKey")}),i(q,{children:[t(Q,{id:r,type:k?"text":"password",autoComplete:"off",placeholder:s?n("provider.apiKeyKept"):n("provider.apiKeyPlaceholder"),value:p,onChange:(m)=>x(m.target.value)}),t(ce,{align:"inline-end",children:t(ue,{size:"icon-xs","aria-label":n(k?"provider.hideKey":"provider.showKey"),onClick:()=>F((m)=>!m),children:k?t(ne,{}):t(oe,{})})})]})]})]}),t(X,{}),i(re,{open:U,onOpenChange:L,className:"space-y-3",children:[i("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[t("h4",{className:"text-sm font-medium",children:n("provider.models")}),i(le,{render:t(R,{variant:"ghost",size:"sm"}),children:[n(U?"provider.previewModels":"provider.editModels"),t(se,{className:V("size-4",U&&"rotate-180")})]})]}),!U&&t("ul",{className:"bg-muted/40 divide-y rounded-lg px-3",children:M.map((m)=>i("li",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 py-2.5 text-sm",children:[t("span",{className:"break-all",children:m.label}),t("span",{className:"text-muted-foreground font-mono text-xs break-all",children:m.api_id})]},m.api_id))}),t(ae,{children:i(_,{className:"gap-2","data-invalid":E!==null,children:[t(J,{htmlFor:f,children:n("provider.modelsJson")}),t(we,{id:f,"aria-invalid":E!==null,"aria-describedby":`${f}-description`,spellCheck:!1,className:"min-h-44 font-mono text-xs",value:I,onChange:(m)=>{T(m.target.value),B(null)}}),t(de,{id:`${f}-description`,className:V("text-xs",E&&"text-destructive"),role:E?"alert":void 0,children:E??n("provider.modelsJsonDescription")})]})})]}),t(me,{busy:u,canTest:!a,onTest:s?C:void 0,onRemove:s?S:void 0,result:!a?v:void 0,children:i(R,{size:"sm",disabled:u||!a||h.trim()===""||w.trim()===""||!s&&p.trim()==="",onClick:()=>void G(),children:[u&&t(Y,{"data-icon":"inline-start"}),n("provider.saveButton")]})})]})}
|
|
4
|
+
export{Bn,Zi,Gn,zn,Vn,tn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function
|
|
2
|
-
export{
|
|
1
|
+
import{isGroupedSelect as i,isSelectOption as o}from"@nyssance/codex-acp-v2/client";function G(e){return i(e.options)?e.options.flatMap((t)=>t.options):e.options}function g(e,t){return e.find((n)=>n.category===t&&o(n))}function z(e){return G(e).find((t)=>t.value===e.currentValue)?.name??e.currentValue}
|
|
2
|
+
export{G,g,z};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{xe,c}from"./chunk-k7y6dqf2.js";import{T}from"./chunk-8jxcdap5.js";import{E}from"./chunk-t63mwyg0.js";import{k}from"./chunk-4kevwekp.js";import{Ke,Ae,qe}from"./chunk-55gczv3j.js";import{PreviewCard as C}from"@base-ui/react/preview-card";import{cn as p}from"cn";import{LockIcon as D}from"lucide-react";import{createContext as L,useContext as _,useLayoutEffect as M,useState as I}from"react";import"@alwith/module-chat/session-list.css";import{jsx as e,jsxs as d,Fragment as K}from"react/jsx-runtime";function w(o){if(o.as==="ul"){let{as:i,className:s,...a}=o;return e("ul",{className:p("flex w-full min-w-0 flex-col gap-0.5",s),...a})}let{as:t,className:n,...r}=o;return e("div",{className:p("flex w-full min-w-0 flex-col gap-0.5",n),...r})}function m({className:o,...t}){return e("span",{"data-slot":"navigation-leading",className:p("flex size-6 shrink-0 items-center justify-center [&_.lucide]:size-3.5",o),...t})}function u({active:o,className:t,...n}){return e("button",{type:"button","data-active":o?"":void 0,"aria-current":o?"page":void 0,className:p("group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",t),...n})}function Z({open:o,onOpenChange:t,tooltip:n,leading:r,label:i,count:s,countLabel:a,active:l=!1,actions:b,headerChildren:g,wrapHeader:f,onHeaderClick:P,children:y}){let R=()=>{P?.(),t(!o)},x=p(Ke,"relative flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 text-start [corner-shape:superellipse(1.5)]"),S=d(K,{children:[r!=null&&e(m,{children:r}),g??e(T,{className:"flex-1 text-sm opacity-70",children:i}),e("span",{className:"relative z-10 ms-auto",children:e(qe,{content:s!==void 0?e(Ae,{className:p("text-muted-foreground justify-end text-xs opacity-70",a&&"w-auto"),children:e("span",{dir:"ltr",children:a??s})}):void 0,actions:b})})]}),H=g==null?d("div",{"data-active":l?"":void 0,title:n,className:p(x,c),onClick:R,onKeyDown:(v)=>{if(v.target!==v.currentTarget)return;if(v.key!=="Enter"&&v.key!==" ")return;v.preventDefault(),R()},children:[e("button",{type:"button","aria-expanded":o,"aria-label":typeof i==="string"?i:n,className:"focus-visible:outline-ring absolute inset-0 rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]"}),S]}):e("div",{"data-active":l?"":void 0,className:x,children:S});return d("div",{className:"text-[#1a1c1f] dark:text-white",children:[f===void 0?H:f(H),o&&e(w,{className:"mt-0.5",children:y})]})}var G=L(()=>{}),z=L(()=>{});function Et(){return _(z)}function ve(){return _(G)}function ye({active:o=!1,state:t,interruption:n=null,leased:r=!1,media:i,title:s,hoverCard:a,onHoverCardOpenChange:l,subtitle:b,preview:g,listeningPorts:f,onOpenPort:P,accessory:y,meta:R,hint:x,actions:S,className:H,...v}){let O=d("div",{"data-slot":"navigation-session-item","data-active":o,className:p(Ke,xe,"group/navigation-row focus-visible:outline-ring flex h-[var(--navigation-row-height,30px)] w-full items-center gap-1 overflow-hidden rounded-[10px] ps-1 pe-1.5 text-start text-sm outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-[-2px]",(g||f!=null&&f.length>0)&&"h-auto min-h-[var(--navigation-row-height,30px)] py-2.5",H),...v,children:[e(m,{children:t!=null?e(E,{state:t,title:n??void 0}):i}),d("span",{className:"flex min-w-0 flex-1 flex-col",children:[e(T,{className:p("leading-none",t==="done"&&"font-semibold"),children:s}),b!=null&&e(T,{className:"text-muted-foreground text-xs",children:b}),g&&e("span",{className:"text-muted-foreground mt-1.5 line-clamp-2 text-xs leading-[18px] [overflow-wrap:anywhere] break-words",children:g}),f!=null&&f.length>0&&e("span",{className:"text-muted-foreground mt-1.5 flex flex-wrap items-center gap-2 font-mono text-xs",children:f.map((N)=>P?d("button",{type:"button",className:"underline",onPointerDown:(h)=>h.stopPropagation(),onKeyDown:(h)=>h.stopPropagation(),onClick:(h)=>{h.stopPropagation(),P(N)},children:[":",N]},N):d("span",{children:[":",N]},N))})]}),d("span",{className:"relative ms-auto flex shrink-0 items-center gap-1",children:[r&&e(D,{className:"text-muted-foreground size-3"}),e(qe,{content:y!=null?e(Ae,{children:y}):R??e(Ae,{}),actions:S}),x!=null&&e("span",{className:"pointer-events-none absolute end-1 top-1/2 flex h-5 min-w-5 -translate-y-1/2 items-center justify-center",children:x})]})]});if(a==null)return O;return e(q,{row:O,onOpenChange:l,children:a})}function q({row:o,children:t,onOpenChange:n}){let[r,i]=I(!1),[s,a]=I(!1),l=r||s;return M(()=>(n?.(l),()=>n?.(!1)),[l,n]),e(G.Provider,{value:a,children:e(z.Provider,{value:()=>{i(!1),a(!1)},children:e(j,{open:l,onOpenChange:i,trigger:o,children:t})})})}function j({open:o,onOpenChange:t,trigger:n,children:r,side:i="inline-end",sideOffset:s=2,align:a="start",alignOffset:l}){return k(o),d(C.Root,{open:o,onOpenChange:t,children:[e(C.Trigger,{render:n,delay:700,closeDelay:100}),e(C.Portal,{children:e(C.Positioner,{side:i,sideOffset:s,align:a,alignOffset:l,className:"isolate z-50",children:e(C.Popup,{"data-slot":"codex-hover-card",className:"bg-popover text-popover-foreground ring-foreground/10 m-px flex w-80 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-md text-sm shadow-md ring-1 outline-hidden select-none",children:e("div",{className:"flex w-full min-w-0 flex-col px-0 py-1 break-words whitespace-normal",children:r})})})})]})}
|
|
2
|
+
export{w,m,u,Z,Et,ve,ye};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ho,vo,Ot}from"./chunk-xmrsdhtw.js";import{Ye,I}from"./chunk-w49gke0h.js";import{cn as M}from"cn";import{forwardRef as R,useCallback as F,useEffect as x,useImperativeHandle as K,useRef as d}from"react";import{InputGroupTextarea as z}from"@nyssance/shadcn/vega/components/ui/input-group";import{jsx as q}from"react/jsx-runtime";var L=(c)=>!c.shiftKey,N=()=>!1,ln=R(({onChange:c,onKeyDown:T,onCompositionStart:b,onCompositionEnd:y,className:E,placeholder:C,bashMode:H=!1,isSendShortcut:S=L,isNewlineShortcut:P=N,...h},w)=>{let n=Ye(),p=I(),u=d(!1),i=d(!1),a=d(null),l=d(null),o=F(()=>{if(globalThis.CSS?.supports?.("field-sizing","content")||l.current!==null)return;l.current=requestAnimationFrame(()=>{l.current=null;let e=a.current;if(!e||u.current)return;e.style.height="auto",e.style.height=`${e.scrollHeight}px`})},[]);x(()=>{let e=a.current;if(!e||globalThis.CSS?.supports?.("field-sizing","content"))return;let t,r=new ResizeObserver(([s])=>{if(s&&s.contentRect.width!==t)t=s.contentRect.width,o()});return r.observe(e),o(),()=>{if(r.disconnect(),l.current!==null)cancelAnimationFrame(l.current);l.current=null}},[o]),x(o,[o,n?.textInput.value,h.value]);let f=H&&(n?.textInput.value??"").startsWith("!"),k=(e)=>{if(u.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229||i.current)return;if(T?.(e),e.defaultPrevented)return;if(e.key.length===1&&e.key.charCodeAt(0)<32&&e.key!==`
|
|
2
2
|
`&&e.key!=="\r"&&e.key!=="\t"){e.preventDefault();return}if(f&&n){let t=e.currentTarget.selectionStart===0&&e.currentTarget.selectionEnd===0;if(e.key==="Escape"||(e.key==="Backspace"||e.key==="Delete")&&t){e.preventDefault(),n.textInput.setInput(n.textInput.value.slice(1));return}}if(e.key==="Enter"){if(P(e.nativeEvent)){e.preventDefault();let t=e.currentTarget,{selectionStart:r,selectionEnd:s,value:m}=t,g=`${m.slice(0,r)}
|
|
3
|
-
${m.slice(s)}`;if(n)n.textInput.setInput(g);else t.value=g;let v=r+1;t.setSelectionRange(v,v),o();return}if(S(e.nativeEvent)){e.preventDefault();let t=e.currentTarget.form;if(!t)return;let r=t.querySelector('button[type="submit"]');if(!r||r.disabled)return;t.requestSubmit(r)}}if(e.key==="Backspace"&&e.currentTarget.value===""&&p.files.length>0){e.preventDefault();let t=p.files.at(-1);if(t)p.remove(t.id)}},A=(e)=>{let t=e.clipboardData?.items;if(!t)return;let{imageFiles:r,sawNonImageFile:s}=
|
|
4
|
-
export{
|
|
3
|
+
${m.slice(s)}`;if(n)n.textInput.setInput(g);else t.value=g;let v=r+1;t.setSelectionRange(v,v),o();return}if(S(e.nativeEvent)){e.preventDefault();let t=e.currentTarget.form;if(!t)return;let r=t.querySelector('button[type="submit"]');if(!r||r.disabled)return;t.requestSubmit(r)}}if(e.key==="Backspace"&&e.currentTarget.value===""&&p.files.length>0){e.preventDefault();let t=p.files.at(-1);if(t)p.remove(t.id)}},A=(e)=>{let t=e.clipboardData?.items;if(!t)return;let{imageFiles:r,sawNonImageFile:s}=ho(t),m=vo(t);if(r.length>0)e.preventDefault(),p.add(r);else if(s&&!m)e.preventDefault()},D=n?{value:u.current&&a.current?a.current.value:f?n.textInput.value.slice(1):n.textInput.value,onChange:(e)=>{let t=u.current?e.currentTarget.value:Ot(e.currentTarget);n.textInput.setInput(f?`!${t}`:t),o(),c?.(e)}}:{onChange:(e)=>{if(!u.current)Ot(e.currentTarget);o(),c?.(e)}};return K(w,()=>({resetHeight:()=>{if(a.current)a.current.style.height="auto"},focus:()=>{a.current?.focus()},isComposing:()=>u.current||i.current,getTextarea:()=>a.current}),[]),q(z,{"data-chat-input":!0,ref:a,rows:3,className:M("field-sizing-content max-h-(--chat-input-max-height) min-h-[calc(var(--chat-input-line-height)*3)] min-w-0 flex-1 overflow-x-hidden","leading-(--chat-input-line-height)","placeholder:text-chat-input-placeholder p-0 pe-2.5","bg-chat-input-bg",E),name:"message",onCompositionEnd:(e)=>{u.current=!1;let t=Ot(e.currentTarget);n?.textInput.setInput(f?`!${t}`:t),o(),y?.(e),i.current=!0,requestAnimationFrame(()=>{i.current=!1})},onCompositionStart:(e)=>{i.current=!1,u.current=!0,b?.(e)},onKeyDown:k,onPaste:A,placeholder:C,...h,...D})});ln.displayName="PromptInputTextarea";
|
|
4
|
+
export{ln};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b,on}from"./chunk-kcke05ds.js";import{bt}from"./chunk-69p0nqws.js";import{useEffect as p,useRef as P,useState as u}from"react";var jn="providers:changed",$n="providers:managed-revoked",i=(e)=>e;function Qi(){return{read:()=>i(b.providersRead()),save:(e,r,t)=>i(b.providersSave({providerId:r,input:t,expectedRevision:e})),saveCustom:(e,r)=>i(b.providersSaveCustom({input:r,expectedRevision:e})),removeCustom:(e,r)=>i(b.providersRemoveCustom({providerId:r,expectedRevision:e})),test:(e)=>b.providersTest({providerId:e}),apply:()=>i(b.providersApply()),onChanged:(e)=>on[jn].listen((r)=>e(r.payload))}}function Yi(){return{bind:(e)=>b.providersAccountBind({account:e}),refresh:(e,r)=>i(b.providersRefreshManaged({generation:e,accessToken:r})),clear:async()=>{await b.providersClearManaged()},onRevoked:(e)=>on[$n].listen((r)=>e(r.payload.sessionIds))}}async function vt(e){try{return await e.apply()}catch(r){if(!bt(r))throw r;return e.read()}}function yt(e,r=console.error){let[t,d]=u(null),a=P(r);return a.current=r,p(()=>{let n=!0,v=e.onChanged((o)=>{if(n)d((s)=>s&&s.revision>o.revision?s:o)});return v.then(()=>e.read()).then((o)=>{if(n)d((s)=>s&&s.revision>=o.revision?s:o)}).catch((o)=>{if(n)a.current(o)}),()=>{n=!1,v.then((o)=>o())}},[e]),t}
|
|
2
|
+
export{jn,$n,Qi,Yi,vt,yt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ao}from"./chunk-tggrc8e5.js";import{createContext as r,useContext as i}from"react";import{jsx as s}from"react/jsx-runtime";var n=r(null);function ar({host:o,children:t}){return s(n,{value:o,children:t})}function C(){let o=i(n),e={...ao(),...o};if(e.t===void 0||e.i18n===void 0)throw Error("Collection host is missing; mount collections inside SessionListProvider or CollectionHostProvider");return e}function Xn(o,t){t.catch((e)=>{if(o.reportError)o.reportError(e);else console.error(e)})}function ee(){let o=C();return(t)=>Xn(o,t)}function Jn(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}
|
|
2
|
+
export{ar,C,Xn,ee,Jn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Vo}from"./chunk-53qt3tjb.js";import{we,t,ke,n,at}from"./chunk-z8njjc2c.js";import{wi,it,_n,_i,Pi}from"./chunk-7zryea1b.js";import{nt}from"./chunk-d0w04ydg.js";import{Wo}from"./chunk-3jd4dkv4.js";import{Ti}from"./chunk-91zvyqnt.js";import{ui,pi}from"./chunk-6whr1y2s.js";import{Di,Hi}from"./chunk-qqqcqvrv.js";import{ti}from"./chunk-h09ez7fc.js";import{Ii}from"./chunk-q70h5z14.js";import{ai}from"./chunk-98cbjkvk.js";import{codexExtensionCapabilities as Ce,codexMessageError as Me,codexRetryNotice as ze,codexTurnError as Ve,nativeTurnId as fe}from"@nyssance/codex-acp-v2/client";import{ArrowDownIcon as Be}from"lucide-react";import{useCallback as z,useEffect as E,useLayoutEffect as pe,useMemo as J,useRef as h,useState as U}from"react";import{flushSync as ge}from"react-dom";import{Button as Q}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as A}from"react/jsx-runtime";var ve=24;function qe(e){let d=Math.max(0,e.turnTopPx-ve),g=Math.max(0,e.scrollHeightPx-e.viewportHeightPx),s=d-g;return{scrollTopPx:d,spacerPx:s>0?e.spacerPx+s:e.spacerPx}}function Oe({viewportRef:e,viewportProps:d,children:g}){return o("div",{ref:e,...d,className:"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain outline-none",children:g})}function Fe({sessionId:e,turnId:d,root:g,error:s,connected:R}){let L=h(null),b=ke(),{t:H}=t(),w=z(()=>{b.loadHistoryTurn(e,d).catch(()=>{})},[b,e,d]);return E(()=>{if(!g||!L.current||!R||s)return;let V=new IntersectionObserver((v)=>{if(v.some((S)=>S.isIntersecting))V.disconnect(),w()},{root:g,rootMargin:"800px 0px"});return V.observe(L.current),()=>V.disconnect()},[g,R,s,w]),o("div",{ref:L,className:"flex min-h-80 flex-col justify-center gap-3 py-8","data-history-turn":d,"data-markdown-pending":!0,children:s?A("div",{className:"flex flex-col items-center gap-2",children:[o("p",{role:"alert",className:"text-destructive text-xs",children:s}),o(Q,{variant:"outline",size:"sm",onClick:w,disabled:!R,children:H("timeline.navigationRetry")})]}):A("div",{role:"status","aria-label":H("timeline.navigationLoading"),className:"space-y-3",children:[o("div",{className:"bg-muted ml-auto h-5 w-1/3 rounded"}),o("div",{className:"bg-muted h-3 w-4/5 rounded"}),o("div",{className:"bg-muted h-3 w-3/5 rounded"})]})})}function Ke(e,d){let g=h([]),s=h(null);if(s.current?.items!==e.items||s.current.state!==e.state||s.current.ended!==e.turnEndedAt||s.current.usage!==e.turnUsage||s.current.historyOrder!==d)s.current={state:e.state,items:e.items,ended:e.turnEndedAt,usage:e.turnUsage,historyOrder:d,turns:wi(e,g.current,d)};let R=s.current.turns;return g.current=R,R}function et(e){return o(we,{host:e.host,client:e.client,children:o(Ue,{...e})})}function Ue({session:e,leading:d,afterTurn:g,answerActions:s,turnFooter:R,renderUserMessage:L,insert:b,navigation:H,anchorNewTurn:w=!1,Viewport:V=Oe}){let v=ke(),S=t(),T=n((r)=>r.historyNavigation[e.id]),c=Ke(e,T?.turns),C=c.at(-1)?.key,Te=_i(e,c),y=e.state==="running"||e.state==="requires_action",_=J(()=>Ti(c,T),[c,T]),Y=J(()=>_.flatMap((r)=>r.turn===void 0?[]:[{...r.turn,key:r.turnKey}]),[_]),ye=J(()=>H===void 0?[]:ui(c,e.turnUsage,T),[H,c,e.turnUsage,T]),Z=b&&b.afterItemId!==null?c.findIndex((r)=>r.items.some((l)=>l.id===b.afterItemId)):-1,D=h(c);D.current=c;let[a,xe]=U(null),x=n((r)=>r.historyPages[e.id]),P=n((r)=>r.connection==="ready"),he=n((r)=>Ce(r.agent).sessionRetry),ee=x!==void 0;E(()=>{if(P&&ee&&!e.restoring)v.loadHistoryNavigation(e.id).catch(()=>{})},[v,P,ee,e.id,e.restoring]);let[be,Re]=U(!1),O=h(null),[Se,te]=U(!1),ne=h(0),j=h({key:C,running:y});j.current={key:C,running:y};let[re,F]=U(0),N=h(0),k=h(null);N.current=re;let Pe=z(()=>{if(k.current!==null)k.current.keepTop=!1},[]),{isFollowing:M,scrollToBottom:W,stopFollowing:B,schedulePin:ie,contentResized:oe,beginLocate:ae,cancelLocation:le}=Ii(a,y,Pe),ue=z(()=>{if(a===null||!y)return;let r=c.at(-1)?.key;if(r===void 0)return;let l=ae(!0),u=()=>l.isCurrent()&&j.current.running&&j.current.key===r,i=()=>requestAnimationFrame(()=>requestAnimationFrame(()=>{if(!u())return;let p=a.querySelector(`[data-codex-turn="${CSS.escape(r)}"]`);if(p===null)return;let m=a.scrollTop+p.getBoundingClientRect().top-a.getBoundingClientRect().top,I=qe({turnTopPx:m,scrollHeightPx:a.scrollHeight,viewportHeightPx:a.clientHeight,spacerPx:N.current});k.current=I.spacerPx>0?{element:p,heightPx:p.getBoundingClientRect().height+I.spacerPx,keepTop:!0}:null,ge(()=>F(I.spacerPx)),requestAnimationFrame(()=>{if(u())l.finish(I.scrollTopPx)})})),f=O.current;if(f===null)return;f.scrollToKey(r,void 0,{align:"top"}).then(()=>{if(u())i()})},[ae,y,a,c]);pe(()=>{if(!w||y)return;le(),k.current=null,N.current=0,F(0)},[w,le,y]);let X=z(()=>{B(),v.loadOlderHistory(e.id).catch(()=>{})},[v,e.id,B]);E(()=>{if(a===null)return;let r=()=>{let l=a.scrollTop<600;if(Re(l),l&&!T?.complete&&P&&!e.restoring&&!M&&x?.cursor&&!x.loading&&!x.error)X()};return r(),a.addEventListener("scroll",r,{passive:!0}),()=>a.removeEventListener("scroll",r)},[P,x,M,X,a,e.restoring,T?.complete]),E(()=>{Di({sessionId:e.id,turns:Y,api:O.current,beforeReveal:B,terminals:e.terminals})},[e.id,e.terminals,Y,B]),E(()=>()=>Hi(e.id),[e.id]);let Ie=z(async(r,l)=>{let u=++ne.current;te(!0);try{if(r.isLoaded===!1&&r.nativeTurnId!==void 0)await v.loadHistoryTurn(e.id,r.nativeTurnId),await new Promise((m)=>requestAnimationFrame(()=>m()));if(!l())return null;let i=D.current.find((m)=>m.user?.id===(r.messageId??r.id))??D.current.find((m)=>m.user!==null&&r.nativeTurnId!==void 0&&m.items.some((I)=>fe(I)===r.nativeTurnId));if(!i?.user)return null;let f=i.user.id,p=O.current;if(p===null)throw Error("Virtual timeline is not mounted");return await p.scrollToKey(i.key,(m)=>m.querySelector(`[data-content-search-unit-key="${CSS.escape(f)}"]`),{align:"top"}),document.querySelector(`[data-chat-scroll] [data-content-search-unit-key="${CSS.escape(f)}"]`)}finally{if(ne.current===u)te(!1)}},[v,e.id]),He=z(async(r)=>{if(r.nativeTurnId!==void 0)await v.previewHistoryTurn(e.id,r.nativeTurnId)},[v,e.id]);E(()=>{if(a===null)return;let r=a.querySelector("[data-codex-timeline]");if(r===null)throw Error("Timeline content element is missing");let l=new ResizeObserver(()=>{let u=k.current,i=null;if(u!==null){let f=Math.max(0,u.heightPx-u.element.getBoundingClientRect().height);if(f!==N.current&&(f<N.current||u.keepTop)){if(N.current=f,ge(()=>F(f)),f===0)k.current=null}if(f>0&&u.keepTop)i=a.scrollTop+u.element.getBoundingClientRect().top-a.getBoundingClientRect().top-ve}oe(i)});if(l.observe(r),l.observe(a),C!==void 0){let u=a.querySelector(`[data-codex-turn="${CSS.escape(C)}"]`);if(u===null)throw Error("Latest turn is not mounted");l.observe(u)}return()=>l.disconnect()},[oe,C,a]),E(()=>{if(e.items.length===0)return;ie()},[ie,e.items]);let se=h(null);pe(()=>{if(a===null)return;let r=c.at(-1),l=se.current;if(se.current=r===void 0?null:{key:r.key,running:y},r===void 0||l===null||r.user===null||r.replayed)return;if(w){if(y&&e.turnEndedAt[r.user.id]===void 0&&(r.key!==l.key||!l.running))k.current=null,N.current=0,F(0),ue()}else if(r.key!==l.key)W()},[ue,w,y,W,a,e.turnEndedAt,c]);let Ne=(r,l)=>{let u=r,i=u.turn;if(i===void 0){if(u.nativeTurnId===void 0)throw Error(`Turn is missing at index ${l}`);return o(Fe,{sessionId:e.id,turnId:u.nativeTurnId,root:a,error:T?.turnErrors[u.nativeTurnId],connected:P&&!M&&!Se})}let f=c.indexOf(i),p=i.key===Te,m=Pi(e,c,f),I=!p&&m.continued,K=i.key===C,q=i.errors.at(-1),ce=q===void 0?null:Me(q),G=q===void 0?null:fe(q),Ee=!e.subagent&&K&&!p&&P&&he&&e.attached&&!e.readOnly&&!e.restoring&&q===e.items.at(-1)&&ce!==null&&Ve(ce).category==="overloaded"&&G!==null&&e.lastStopReason!=="end_turn"&&e.lastStopReason!=="cancelled",de=R?.(i)??null,Ae=i.work.length>0||i.final.length>0||i.errors.length>0||p||de!==null||it(i)||_n(i)||K&&(e.error!==null||e.lastStopReason==="cancelled"),me=i.user===null?null:nt(i);return A("div",{"data-virtualized-turn-content":!0,"data-codex-turn":i.key,className:"flex flex-col gap-1.5",children:[i.user!==null&&(L===void 0?o(ai,{item:i.user,messageTime:me}):L(i.user,me)),Ae&&o(Wo,{sessionId:e.id,turn:i,terminals:e.terminals,active:p,blocked:e.state==="requires_action",continued:I,edits:m.edits,activityItems:m.items,workStartedAt:m.startedAt,isLast:K,error:e.error,retrying:p?ze(e._meta)??void 0:void 0,retry:Ee?{turnId:G,delaySeconds:ti(c),run:(Le)=>v.retrySession(e.id,G,Le)}:void 0,interrupted:_n(i)||!p&&K&&e.lastStopReason==="cancelled",answerActions:s?.(i),footer:de}),l===Z&&b?.node,g?.(i)]})};return A("div",{className:"relative flex min-h-0 flex-1 flex-col","data-stream-style":"codexUI",children:[o(V,{viewportRef:xe,viewportProps:{"data-chat-scroll":"",style:{overflowAnchor:"none"},tabIndex:0,role:"log","aria-label":S.t("timeline.label")},children:o("div",{className:"codex-timeline-content flex min-h-full w-full flex-col",children:A("div",{"data-timeline-user-message-navigation-content":!0,className:"mx-auto flex w-full max-w-3xl shrink-0 flex-col",children:[b&&Z===-1&&b.node,o(Vo,{ref:O,entries:_,renderTurn:Ne,scrollElement:a,sessionKey:e.id,preserveViewport:!M,leadingInsetPx:12,leadingContent:d===void 0?void 0:o("div",{className:"pt-3",children:d})}),w&&o("div",{"aria-hidden":"true","data-turn-anchor-spacer":!0,className:"shrink-0",style:{height:re}}),o("div",{"aria-hidden":"true",className:"h-6 shrink-0"})]})})}),o("div",{"aria-hidden":"true",className:"codex-timeline-bottom-fade"}),T?.error&&o("div",{className:"absolute inset-x-0 top-2 z-10 flex justify-center",children:o(Q,{variant:"outline",size:"sm",disabled:!P,title:T.error,onClick:()=>{v.loadHistoryNavigation(e.id).catch(()=>{})},children:S.t("timeline.navigationRetry")})}),be&&x?.cursor&&!T?.complete&&A("div",{className:"absolute inset-x-0 top-2 z-10 flex flex-col items-center gap-1","data-history-loader":!0,children:[o(Q,{variant:"outline",size:"sm",disabled:!P||e.restoring||x.loading,onClick:X,children:x.loading?S.t("timeline.loadingEarlier"):S.t("timeline.loadEarlier")}),x.error&&o("p",{role:"alert",className:"bg-background text-destructive max-w-md rounded px-2 py-1 text-xs",children:x.error})]}),H!==void 0&&o(pi,{items:ye,audio:H.audio,scrollRoot:a,beforeReveal:B,ensureItemMounted:Ie,onPreviewItem:He,onRevealError:(r)=>at(S,r),targetTopMarginPx:16},e.id),o("button",{type:"button",className:M?"codex-scroll-to-bottom codex-scroll-to-bottom-hidden":"codex-scroll-to-bottom",tabIndex:M?-1:void 0,onClick:W,"aria-label":S.t("timeline.scrollToBottom"),children:y?A("span",{className:"codex-scroll-to-bottom-dots","aria-hidden":"true",children:[o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"})]}):o(Be,{})})]})}
|
|
2
|
-
export{
|
|
1
|
+
import{$o}from"./chunk-ezscf6qz.js";import{ke,t,Se,n,st}from"./chunk-1vmk34zf.js";import{Si,rt,Tn,Ti,Ii}from"./chunk-6r8jsyqk.js";import{ot}from"./chunk-gha517v4.js";import{Qo}from"./chunk-3tbg92ns.js";import{Ni}from"./chunk-qmhnhgc5.js";import{mi,gi}from"./chunk-f192h0js.js";import{Oi,Ui}from"./chunk-4s4e7zzx.js";import{oi}from"./chunk-sc7qd3kj.js";import{Mi}from"./chunk-z20ss7qj.js";import{li}from"./chunk-758e6qf7.js";import{codexExtensionCapabilities as Ce,codexMessageError as Me,codexRetryNotice as ze,codexTurnError as Ve,nativeTurnId as fe}from"@nyssance/codex-acp-v2/client";import{ArrowDownIcon as Be}from"lucide-react";import{useCallback as z,useEffect as E,useLayoutEffect as pe,useMemo as J,useRef as h,useState as U}from"react";import{flushSync as ge}from"react-dom";import{Button as Q}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as o,jsxs as A}from"react/jsx-runtime";var ve=24;function qe(e){let d=Math.max(0,e.turnTopPx-ve),g=Math.max(0,e.scrollHeightPx-e.viewportHeightPx),s=d-g;return{scrollTopPx:d,spacerPx:s>0?e.spacerPx+s:e.spacerPx}}function Oe({viewportRef:e,viewportProps:d,children:g}){return o("div",{ref:e,...d,className:"min-h-0 min-w-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain outline-none",children:g})}function Fe({sessionId:e,turnId:d,root:g,error:s,connected:R}){let L=h(null),b=Se(),{t:H}=t(),w=z(()=>{b.loadHistoryTurn(e,d).catch(()=>{})},[b,e,d]);return E(()=>{if(!g||!L.current||!R||s)return;let V=new IntersectionObserver((v)=>{if(v.some((S)=>S.isIntersecting))V.disconnect(),w()},{root:g,rootMargin:"800px 0px"});return V.observe(L.current),()=>V.disconnect()},[g,R,s,w]),o("div",{ref:L,className:"flex min-h-80 flex-col justify-center gap-3 py-8","data-history-turn":d,"data-markdown-pending":!0,children:s?A("div",{className:"flex flex-col items-center gap-2",children:[o("p",{role:"alert",className:"text-destructive text-xs",children:s}),o(Q,{variant:"outline",size:"sm",onClick:w,disabled:!R,children:H("timeline.navigationRetry")})]}):A("div",{role:"status","aria-label":H("timeline.navigationLoading"),className:"space-y-3",children:[o("div",{className:"bg-muted ml-auto h-5 w-1/3 rounded"}),o("div",{className:"bg-muted h-3 w-4/5 rounded"}),o("div",{className:"bg-muted h-3 w-3/5 rounded"})]})})}function Ke(e,d){let g=h([]),s=h(null);if(s.current?.items!==e.items||s.current.state!==e.state||s.current.ended!==e.turnEndedAt||s.current.usage!==e.turnUsage||s.current.historyOrder!==d)s.current={state:e.state,items:e.items,ended:e.turnEndedAt,usage:e.turnUsage,historyOrder:d,turns:Si(e,g.current,d)};let R=s.current.turns;return g.current=R,R}function tt(e){return o(ke,{host:e.host,client:e.client,children:o(Ue,{...e})})}function Ue({session:e,leading:d,afterTurn:g,answerActions:s,turnFooter:R,renderUserMessage:L,insert:b,navigation:H,anchorNewTurn:w=!1,Viewport:V=Oe}){let v=Se(),S=t(),T=n((r)=>r.historyNavigation[e.id]),c=Ke(e,T?.turns),C=c.at(-1)?.key,Te=Ti(e,c),y=e.state==="running"||e.state==="requires_action",_=J(()=>Ni(c,T),[c,T]),Y=J(()=>_.flatMap((r)=>r.turn===void 0?[]:[{...r.turn,key:r.turnKey}]),[_]),ye=J(()=>H===void 0?[]:mi(c,e.turnUsage,T),[H,c,e.turnUsage,T]),Z=b&&b.afterItemId!==null?c.findIndex((r)=>r.items.some((l)=>l.id===b.afterItemId)):-1,D=h(c);D.current=c;let[a,xe]=U(null),x=n((r)=>r.historyPages[e.id]),P=n((r)=>r.connection==="ready"),he=n((r)=>Ce(r.agent).sessionRetry),ee=x!==void 0;E(()=>{if(P&&ee&&!e.restoring)v.loadHistoryNavigation(e.id).catch(()=>{})},[v,P,ee,e.id,e.restoring]);let[be,we]=U(!1),O=h(null),[Re,te]=U(!1),ne=h(0),j=h({key:C,running:y});j.current={key:C,running:y};let[re,F]=U(0),N=h(0),k=h(null);N.current=re;let Pe=z(()=>{if(k.current!==null)k.current.keepTop=!1},[]),{isFollowing:M,scrollToBottom:W,stopFollowing:B,schedulePin:ie,contentResized:oe,beginLocate:ae,cancelLocation:le}=Mi(a,y,Pe),ue=z(()=>{if(a===null||!y)return;let r=c.at(-1)?.key;if(r===void 0)return;let l=ae(!0),u=()=>l.isCurrent()&&j.current.running&&j.current.key===r,i=()=>requestAnimationFrame(()=>requestAnimationFrame(()=>{if(!u())return;let p=a.querySelector(`[data-codex-turn="${CSS.escape(r)}"]`);if(p===null)return;let m=a.scrollTop+p.getBoundingClientRect().top-a.getBoundingClientRect().top,I=qe({turnTopPx:m,scrollHeightPx:a.scrollHeight,viewportHeightPx:a.clientHeight,spacerPx:N.current});k.current=I.spacerPx>0?{element:p,heightPx:p.getBoundingClientRect().height+I.spacerPx,keepTop:!0}:null,ge(()=>F(I.spacerPx)),requestAnimationFrame(()=>{if(u())l.finish(I.scrollTopPx)})})),f=O.current;if(f===null)return;f.scrollToKey(r,void 0,{align:"top"}).then(()=>{if(u())i()})},[ae,y,a,c]);pe(()=>{if(!w||y)return;le(),k.current=null,N.current=0,F(0)},[w,le,y]);let X=z(()=>{B(),v.loadOlderHistory(e.id).catch(()=>{})},[v,e.id,B]);E(()=>{if(a===null)return;let r=()=>{let l=a.scrollTop<600;if(we(l),l&&!T?.complete&&P&&!e.restoring&&!M&&x?.cursor&&!x.loading&&!x.error)X()};return r(),a.addEventListener("scroll",r,{passive:!0}),()=>a.removeEventListener("scroll",r)},[P,x,M,X,a,e.restoring,T?.complete]),E(()=>{Oi({sessionId:e.id,turns:Y,api:O.current,beforeReveal:B,terminals:e.terminals})},[e.id,e.terminals,Y,B]),E(()=>()=>Ui(e.id),[e.id]);let Ie=z(async(r,l)=>{let u=++ne.current;te(!0);try{if(r.isLoaded===!1&&r.nativeTurnId!==void 0)await v.loadHistoryTurn(e.id,r.nativeTurnId),await new Promise((m)=>requestAnimationFrame(()=>m()));if(!l())return null;let i=D.current.find((m)=>m.user?.id===(r.messageId??r.id))??D.current.find((m)=>m.user!==null&&r.nativeTurnId!==void 0&&m.items.some((I)=>fe(I)===r.nativeTurnId));if(!i?.user)return null;let f=i.user.id,p=O.current;if(p===null)throw Error("Virtual timeline is not mounted");return await p.scrollToKey(i.key,(m)=>m.querySelector(`[data-content-search-unit-key="${CSS.escape(f)}"]`),{align:"top"}),document.querySelector(`[data-chat-scroll] [data-content-search-unit-key="${CSS.escape(f)}"]`)}finally{if(ne.current===u)te(!1)}},[v,e.id]),He=z(async(r)=>{if(r.nativeTurnId!==void 0)await v.previewHistoryTurn(e.id,r.nativeTurnId)},[v,e.id]);E(()=>{if(a===null)return;let r=a.querySelector("[data-codex-timeline]");if(r===null)throw Error("Timeline content element is missing");let l=new ResizeObserver(()=>{let u=k.current,i=null;if(u!==null){let f=Math.max(0,u.heightPx-u.element.getBoundingClientRect().height);if(f!==N.current&&(f<N.current||u.keepTop)){if(N.current=f,ge(()=>F(f)),f===0)k.current=null}if(f>0&&u.keepTop)i=a.scrollTop+u.element.getBoundingClientRect().top-a.getBoundingClientRect().top-ve}oe(i)});if(l.observe(r),l.observe(a),C!==void 0){let u=a.querySelector(`[data-codex-turn="${CSS.escape(C)}"]`);if(u===null)throw Error("Latest turn is not mounted");l.observe(u)}return()=>l.disconnect()},[oe,C,a]),E(()=>{if(e.items.length===0)return;ie()},[ie,e.items]);let se=h(null);pe(()=>{if(a===null)return;let r=c.at(-1),l=se.current;if(se.current=r===void 0?null:{key:r.key,running:y},r===void 0||l===null||r.user===null||r.replayed)return;if(w){if(y&&e.turnEndedAt[r.user.id]===void 0&&(r.key!==l.key||!l.running))k.current=null,N.current=0,F(0),ue()}else if(r.key!==l.key)W()},[ue,w,y,W,a,e.turnEndedAt,c]);let Ne=(r,l)=>{let u=r,i=u.turn;if(i===void 0){if(u.nativeTurnId===void 0)throw Error(`Turn is missing at index ${l}`);return o(Fe,{sessionId:e.id,turnId:u.nativeTurnId,root:a,error:T?.turnErrors[u.nativeTurnId],connected:P&&!M&&!Re})}let f=c.indexOf(i),p=i.key===Te,m=Ii(e,c,f),I=!p&&m.continued,K=i.key===C,q=i.errors.at(-1),ce=q===void 0?null:Me(q),G=q===void 0?null:fe(q),Ee=!e.subagent&&K&&!p&&P&&he&&e.attached&&!e.readOnly&&!e.restoring&&q===e.items.at(-1)&&ce!==null&&Ve(ce).category==="overloaded"&&G!==null&&e.lastStopReason!=="end_turn"&&e.lastStopReason!=="cancelled",de=R?.(i)??null,Ae=i.work.length>0||i.final.length>0||i.errors.length>0||p||de!==null||rt(i)||Tn(i)||K&&(e.error!==null||e.lastStopReason==="cancelled"),me=i.user===null?null:ot(i);return A("div",{"data-virtualized-turn-content":!0,"data-codex-turn":i.key,className:"flex flex-col gap-1.5",children:[i.user!==null&&(L===void 0?o(li,{item:i.user,messageTime:me}):L(i.user,me)),Ae&&o(Qo,{sessionId:e.id,turn:i,terminals:e.terminals,active:p,blocked:e.state==="requires_action",continued:I,edits:m.edits,activityItems:m.items,workStartedAt:m.startedAt,isLast:K,error:e.error,retrying:p?ze(e._meta)??void 0:void 0,retry:Ee?{turnId:G,delaySeconds:oi(c),run:(Le)=>v.retrySession(e.id,G,Le)}:void 0,interrupted:Tn(i)||!p&&K&&e.lastStopReason==="cancelled",answerActions:s?.(i),footer:de}),l===Z&&b?.node,g?.(i)]})};return A("div",{className:"relative flex min-h-0 flex-1 flex-col","data-stream-style":"codexUI",children:[o(V,{viewportRef:xe,viewportProps:{"data-chat-scroll":"",style:{overflowAnchor:"none"},tabIndex:0,role:"log","aria-label":S.t("timeline.label")},children:o("div",{className:"codex-timeline-content flex min-h-full w-full flex-col",children:A("div",{"data-timeline-user-message-navigation-content":!0,className:"mx-auto flex w-full max-w-3xl shrink-0 flex-col",children:[b&&Z===-1&&b.node,o($o,{ref:O,entries:_,renderTurn:Ne,scrollElement:a,sessionKey:e.id,preserveViewport:!M,leadingInsetPx:12,leadingContent:d===void 0?void 0:o("div",{className:"pt-3",children:d})}),w&&o("div",{"aria-hidden":"true","data-turn-anchor-spacer":!0,className:"shrink-0",style:{height:re}}),o("div",{"aria-hidden":"true",className:"h-6 shrink-0"})]})})}),o("div",{"aria-hidden":"true",className:"codex-timeline-bottom-fade"}),T?.error&&o("div",{className:"absolute inset-x-0 top-2 z-10 flex justify-center",children:o(Q,{variant:"outline",size:"sm",disabled:!P,title:T.error,onClick:()=>{v.loadHistoryNavigation(e.id).catch(()=>{})},children:S.t("timeline.navigationRetry")})}),be&&x?.cursor&&!T?.complete&&A("div",{className:"absolute inset-x-0 top-2 z-10 flex flex-col items-center gap-1","data-history-loader":!0,children:[o(Q,{variant:"outline",size:"sm",disabled:!P||e.restoring||x.loading,onClick:X,children:x.loading?S.t("timeline.loadingEarlier"):S.t("timeline.loadEarlier")}),x.error&&o("p",{role:"alert",className:"bg-background text-destructive max-w-md rounded px-2 py-1 text-xs",children:x.error})]}),H!==void 0&&o(gi,{items:ye,audio:H.audio,scrollRoot:a,beforeReveal:B,ensureItemMounted:Ie,onPreviewItem:He,onRevealError:(r)=>st(S,r),targetTopMarginPx:16},e.id),o("button",{type:"button",className:M?"codex-scroll-to-bottom codex-scroll-to-bottom-hidden":"codex-scroll-to-bottom",tabIndex:M?-1:void 0,onClick:W,"aria-label":S.t("timeline.scrollToBottom"),children:y?A("span",{className:"codex-scroll-to-bottom-dots","aria-hidden":"true",children:[o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"}),o("span",{className:"codex-wave-dot"})]}):o(Be,{})})]})}
|
|
2
|
+
export{tt};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
2
|
-
`)[0]??e("pattern")??e("url")??e("query")??e("description");return{category:o,...s===void 0?{}:{target:s},...n===void 0?{}:{filePath:n}}}function
|
|
3
|
-
export{
|
|
1
|
+
var ga=["full","compact","codexUI"];function ni(t){return t==="compact"||t==="codexUI"}var Qr=["read","edit","delete","move","search","execute","think","fetch","switch_mode","other"];function c(t){let o=t.split(/[/\\]/).at(-1)??"";return o===""?t:o}function j(t){let o=Qr.includes(t.kind)?t.kind:"other",i=t.rawInput,e=(a)=>{let r=i[a];return typeof r==="string"&&r.length>0?r:void 0},n=t.locations?.[0]?.path??e("file_path")??e("notebook_path"),s=n!==void 0?c(n):e("command")?.split(`
|
|
2
|
+
`)[0]??e("pattern")??e("url")??e("query")??e("description");return{category:o,...s===void 0?{}:{target:s},...n===void 0?{}:{filePath:n}}}function fa(t,o){if(o)return"dot-permission";switch(t){case"completed":return"dot-success";case"failed":return"dot-error";case"in_progress":return"dot-in-progress";case"pending":return"dot-pending";case"interrupted":return"dot-interrupted";default:return console.warn("[acp] unknown tool call status:",t),"dot-pending"}}
|
|
3
|
+
export{ga,ni,Qr,j,fa};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var s=new Map,a=new Map,f=new Map;function
|
|
2
|
-
export{s,
|
|
1
|
+
var s=new Map,a=new Map,f=new Map;function Do(t,r){if(a.has(t))throw Error("An attachment writer is already registered for this session");return a.set(t,r),()=>{if(a.get(t)===r)a.delete(t)}}function B(t,r){let n=s.get(t);if(!n)return;let e=r(n.attachments);s.set(t,{...n,attachments:e}),a.get(t)?.(e)}function Vt(t,r){f.set(t,r),r.finally(()=>{if(f.get(t)===r)f.delete(t)})}async function Tr(t){for(;;){let e=s.get(t)?.attachments.flatMap((c)=>{let m=f.get(c.id);return m?[m]:[]})??[];if(!e.length)break;await Promise.all(e)}let r=s.get(t);if(!r)return null;let n=await Promise.all(r.attachments.map(async(e)=>{if(!e.url.startsWith("blob:"))return e;let c=await fetch(e.url);if(!c.ok)throw Error("Cannot read draft image");let m=await c.blob(),l=await new Promise((g,p)=>{let o=new FileReader;o.onload=()=>g(o.result),o.onerror=()=>p(o.error),o.readAsDataURL(m)});return{...e,url:l}}));return{text:r.text,mentions:[...r.mentions],attachments:n,modelId:r.modelId}}function Ir(t,r){if(r===null)s.delete(t);else s.set(t,r)}var i=new Map;function jt(t,r){if(i.has(t))throw Error("A composer is already registered for this session");return i.set(t,r),()=>{if(i.get(t)===r)i.delete(t)}}function Nr(t,r){if(typeof r!=="string"||!r.trim())throw Error("The draft is empty");let n=i.get(t);if(!n)throw Error("The session's composer is not open; open the session first");let e=s.get(t);if(e&&(e.text.length||e.attachments.length||e.mentions.length))throw Error("The composer already has a draft; send or clear it first");n(r),s.set(t,{text:r,attachments:[],mentions:[],modelId:e?.modelId??null})}
|
|
2
|
+
export{s,Do,B,Vt,Tr,Ir,jt,Nr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,o}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{a,o}from"./chunk-tggrc8e5.js";import{QUICK_CHATS_GROUP as m,sessionGroup as l}from"@nyssance/codex-acp-v2/client";import{useEffect as S,useMemo as L}from"react";function yr(i){let t=a(),e=o((s)=>s.projectContext),c=i===null?m:e?l(e,{cwd:t.projectPath(i)}).id:null,u=o((s)=>s.sessionList),d=o((s)=>s.connection),r=o((s)=>s.sessionListLoaded),n=o((s)=>s.sessionListError),f=()=>t.listSessions({reset:!0}).catch(()=>{return});return S(()=>{if(d==="ready"&&!r&&n===null)t.listSessions().catch(()=>{return})},[t,d,r,n]),{result:L(()=>{if(r&&e)return{status:"ready",sessionRows:u.filter((s)=>l(e,{...s,cwd:t.projectPath(s.cwd)}).id===c).toSorted((s,p)=>(p.updatedAt??"").localeCompare(s.updatedAt??""))};if(n!==null)return{status:"failed",error:n};return{status:"loading"}},[t,u,r,n,c,e]),retry:f}}
|
|
2
|
+
export{yr};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{P}from"./chunk-50brsmjd.js";import{ie}from"./chunk-76a04a6j.js";import{isPlanItems as n,isPlanMarkdown as r}from"@nyssance/codex-acp-v2/client";import{jsx as e}from"react/jsx-runtime";function ri({plan:t}){if(r(t))return e("div",{className:"codex-reasoning-details",children:e(P,{text:t.content,streaming:!1})});if(!n(t))return null;return e(ie,{entries:t.entries})}
|
|
2
|
+
export{ri};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{mt}from"./chunk-7g2fjbn8.js";import{createContext as a,useContext as u,useEffect as d,useSyncExternalStore as g}from"react";import{jsx as o}from"react/jsx-runtime";var P=a(null),p=a(null),r=new WeakMap;function _e(e){let t=r.get(e);if(!t)t=mt(e),r.set(e,t);return t}function Vi({host:e,client:t,children:n}){let s=_e(t);return s.bindHost(e),d(()=>s.bindHost(e),[s,e]),o(P,{value:e,children:o(p,{value:t,children:n})})}function l(){let e=u(P);if(e===null)throw Error("Plugins host is missing");return e}function Pe(){let e=u(p);if(e===null)throw Error("Plugins client is missing");return e}function Ue(e){let t=Pe();return g((n)=>t.store.subscribe(n),()=>e(t.store.getState()),()=>e(t.store.getState()))}function i(e){let t=_e(Pe());return g((n)=>t.subscribe(n),()=>e(t.getState()),()=>e(t.getState()))}function Te(e,t){return t.then(()=>{},(n)=>{if(e.reportError)e.reportError(n);else console.error(n)})}
|
|
2
|
+
export{_e,Vi,l,Pe,Ue,i,Te};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d,
|
|
2
|
-
`),T=!t.streaming&&C.trim().length>0?o(
|
|
3
|
-
export{
|
|
1
|
+
import{d,P}from"./chunk-50brsmjd.js";import{j}from"./chunk-9vxev5r7.js";import{Yo}from"./chunk-ht6p9j86.js";import{ie}from"./chunk-76a04a6j.js";import{ei,nt}from"./chunk-0d5830mq.js";import{Jo}from"./chunk-ddj8ag0b.js";import{kn}from"./chunk-z32chhqm.js";import{cn as B}from"cn";import{jsx as o,jsxs as g}from"react/jsx-runtime";var v=new WeakMap,M=1;function R(t){if(t.type==="tool_use"||t.type==="subagent"||t.type==="collab")return`${t.type}:${t.id}`;let n=v.get(t);if(n!==void 0)return`${t.type}:${n}`;let s=M++;return v.set(t,s),`${t.type}:${s}`}function w({block:t,streaming:n,actions:s}){if(t.isApiError)return o("div",{className:"codex-stream-error",children:t.text});return g("div",{className:"codex-assistant-message",children:[o(P,{text:t.text,streaming:n}),s]})}function I({block:t,streaming:n,actions:s,renderText:i}){switch(t.type){case"text":return i===void 0?o(w,{block:t,streaming:n,actions:s}):i({block:t,streaming:n,actions:s});case"thinking":return t.thinking.length>0?o(P,{text:t.thinking,streaming:!t.isComplete}):null;case"plan":return o(ie,{entries:t.entries});case"image":return o("img",{src:`data:${t.source.media_type};base64,${t.source.data}`,className:"max-h-64 rounded",alt:""});case"tool_use":case"subagent":case"collab":return null}}var E=new Set;function ma({message:t,isMostRecentTurn:n,hiddenTools:s=E,time:i,beforeCopy:r,afterCopy:c,providerIcon:u,renderText:A,renderEditedFiles:y}){if(t.streaming===!0&&t.content.every((e)=>e.type==="text"?e.text.length===0:e.type==="thinking"?e.thinking.length===0:!1))return o(N,{});let C=t.content.filter((e)=>e.type==="text").map((e)=>e.text).join(`
|
|
2
|
+
`),T=!t.streaming&&C.trim().length>0?o(vn,{text:C,isMostRecentTurn:n,beforeCopy:r,afterCopy:c,time:i}):null,l=Yo(t.content,"compact"),x=l.reduce((e,a,p)=>a.kind==="codexActivityGroup"?p:e,-1),h=l.findIndex((e,a)=>a>x&&e.kind==="block"&&e.block.type==="text"),b=[...t.content].toReversed().find((e)=>e.type==="text"),f=t.content.filter((e)=>e.type==="tool_use"&&j(e).category==="edit"),k=(e)=>{if(e.kind==="codexActivityGroup"){let a=e.blocks.filter((p)=>p.type!=="tool_use"||!s.has(p.name));return a.length===0?null:o(nt,{blocks:a},`activity:${R(a[0])}`)}if(e.kind!=="block")throw Error(`Codex received an incompatible grouped entry: ${e.kind}`);return o(I,{block:e.block,streaming:Boolean(t.streaming),actions:e.block===b?T:void 0,renderText:A},R(e.block))},m=x===-1?0:h===-1?l.length:h;return o(yn,{stateKey:t.id,active:Boolean(t.streaming),startedAt:t.startedAt,durationMs:t.durationMs,providerId:t.providerId,providerIcon:u,work:l.slice(0,m).map(k),answer:l.length>m?l.slice(m).map(k):null,footer:x!==-1&&f.length>0&&(y===void 0?o(Jo,{blocks:f}):y(f))})}function vn({text:t,isMostRecentTurn:n=!1,beforeCopy:s,afterCopy:i,time:r}){let c=d(),{t:u}=c;return g("div",{className:B("mt-1.5 flex h-5 w-fit -translate-x-1 items-center justify-start gap-0.5 [&_*]:transition-none",n?"opacity-100":"opacity-0 group-focus-within/am:opacity-100 group-hover/am:opacity-100"),children:[s,o(kn,{text:t,label:u("actions.copy"),host:c}),i,r&&o("span",{className:"codex-user-time ms-1",title:r.full,children:r.short})]})}function N({label:t}){let{t:n}=d();return o("div",{className:"codex-pending-message py-2",role:"status",children:o("span",{className:"codex-activity-running",children:t??n("message.thinking")})})}function yn({work:t,answer:n,footer:s,loading:i=!1,loadingLabel:r,...c}){if(i)return o(N,{label:r});return g("div",{className:"group/am codex-assistant-turn",children:[t.length>0&&o(ei,{...c,children:t}),n!==null&&(t.length===0?n:o("div",{"data-local-conversation-final-assistant":!0,"data-testid":"codex-final-answer",className:"codex-final-answer",children:n})),s]})}
|
|
3
|
+
export{ma,vn,yn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Oo}from"./chunk-qx0xeepz.js";import{e,f}from"./chunk-t9djctkk.js";import{G,g}from"./chunk-93d3a9wy.js";import{createLucideIcon as w,HandIcon as y,ShieldAlertIcon as S,ShieldCheckIcon as a}from"lucide-react";import{memo as O}from"react";import{jsx as t}from"react/jsx-runtime";var b=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"}]]),d={"read-only":y,"workspace-write":a,agent:b,"agent-full-access":S},A={"read-only":"readOnly","workspace-write":"workspaceAccess",agent:"agent","agent-full-access":"fullAccess"};function N({sessionId:u,options:m,disabled:h,onConfigChange:c}){let{host:l,client:M}=e(),{t:r}=l,s=g(m,"mode");if(!s)return null;let o=s.currentValue,p=G(s).map((n)=>{let i=A[n.value];return i?{...n,name:r(`permissionModes.${i}.name`),description:r(`permissionModes.${i}.description`)}:n}),I=p.find((n)=>n.value===o),C=d[o]??a,v=(n)=>{if(n===o)return;f(l,c?c(s.configId,n):M.setConfig(u,s.configId,n))};return t(Oo,{value:o,warning:o==="agent-full-access",currentName:I?.name??o,icon:t(C,{className:"size-3.5 shrink-0"}),header:r("permissionModes.heading"),disabled:h,label:r("composer.switchPermissionMode"),onValueChange:v,options:p.map((n)=>{let i=d[n.value]??a,k=n.value==="agent-full-access";return{value:n.value,label:t("span",{"data-permission-warning":k?"":void 0,children:n.name}),description:n.description?t("span",{className:"whitespace-normal",children:n.description}):void 0,icon:t(i,{className:"size-3.5 shrink-0"})}})})}var Wt=O(N);
|
|
2
|
+
export{Wt};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{isText as f}from"@nyssance/codex-acp-v2/client";import{useRef as p}from"react";function
|
|
1
|
+
import{isText as f}from"@nyssance/codex-acp-v2/client";import{useRef as p}from"react";function Uo(l,c){let i=p(null);return(t)=>{if(t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.nativeEvent.isComposing||t.nativeEvent.keyCode===229||t.key!=="ArrowUp"&&t.key!=="ArrowDown")return;let n=t.currentTarget;if(n.selectionStart!==n.selectionEnd)return;let e=i.current;if(e&&(e.sessionId!==l.id||e.value!==n.value))i.current=null,e=null;let u=t.key==="ArrowUp";if(u?n.value.slice(0,n.selectionStart).includes(`
|
|
2
2
|
`):n.value.slice(n.selectionEnd).includes(`
|
|
3
3
|
`))return;if(!e){if(!u||n.value!=="")return;let s=l.items.flatMap((o)=>{if(o.kind!=="user")return[];let a=o.content.filter(f).map((d)=>d.text).join(`
|
|
4
4
|
`);return a.trim()?[a]:[]});if(!s.length)return;e={sessionId:l.id,entries:s,index:s.length,value:""},i.current=e}t.preventDefault(),e.index=Math.max(0,Math.min(e.entries.length,e.index+(u?-1:1)));let r=e.entries[e.index]??"";if(e.value=r,c(r),n.value=r,n.setSelectionRange(r.length,r.length),e.index===e.entries.length)i.current=null}}
|
|
5
|
-
export{
|
|
5
|
+
export{Uo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Marked as p}from"marked";import k from"marked-linkify-it";var h=/<(task-notification|system-reminder|antml:[\w-]+)\b[^>]*>/,m=/^<(task-notification|system-reminder|antml:[\w-]+)\b[^>]*>[\s\S]*?(?:<\/\1\s*>|$)/,d=/^(?:\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\])/,x={extensions:[{name:"math",level:"block",tokenizer(n){let t=d.exec(n);if(t===null)return;return{type:"math",raw:t[0],text:(t[1]??t[2]).trim(),display:!0}}},{name:"math",level:"inline",start(n){return n.search(/\$|\\[([]/)},tokenizer(n){let t=d.exec(n);if(t!==null)return{type:"math",raw:t[0],text:(t[1]??t[2]).trim(),display:!0};let r=/^\\\(([^\n]+?)\\\)/.exec(n);if(r!==null)return{type:"math",raw:r[0],text:r[1].trim(),display:!1};let i=/^\$(?!\$)((?:\\[^\n]|[^\\$\n])+?)\$(?![\d$])/.exec(n);if(i===null||/^\s|\s$/.test(i[1]))return;return{type:"math",raw:i[0],text:i[1],display:!1}}}]};function
|
|
2
|
-
export{
|
|
1
|
+
import{Marked as p}from"marked";import k from"marked-linkify-it";var h=/<(task-notification|system-reminder|antml:[\w-]+)\b[^>]*>/,m=/^<(task-notification|system-reminder|antml:[\w-]+)\b[^>]*>[\s\S]*?(?:<\/\1\s*>|$)/,d=/^(?:\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\])/,x={extensions:[{name:"math",level:"block",tokenizer(n){let t=d.exec(n);if(t===null)return;return{type:"math",raw:t[0],text:(t[1]??t[2]).trim(),display:!0}}},{name:"math",level:"inline",start(n){return n.search(/\$|\\[([]/)},tokenizer(n){let t=d.exec(n);if(t!==null)return{type:"math",raw:t[0],text:(t[1]??t[2]).trim(),display:!0};let r=/^\\\(([^\n]+?)\\\)/.exec(n);if(r!==null)return{type:"math",raw:r[0],text:r[1].trim(),display:!1};let i=/^\$(?!\$)((?:\\[^\n]|[^\\$\n])+?)\$(?![\d$])/.exec(n);if(i===null||/^\s|\s$/.test(i[1]))return;return{type:"math",raw:i[0],text:i[1],display:!1}}}]};function wi(){let n=new p({gfm:!0}),t=k(),r=t.extensions[0],i=r.tokenizer;r.tokenizer=function(o,a){let e=i.call(this,o,a);if(e===void 0)return;if(e.raw.startsWith("<"))return e;let l=/^(?:[a-z][a-z\d+.-]*:\/\/|www\.)[^/?#]+[/?#]/i.exec(e.raw);if(l===null)return e;let c=l[0].length-1,u=e.raw.slice(c).search(/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u);if(u===-1)return e;let s=e.raw.slice(0,c+u),f=e.href.slice(0,e.href.length-(e.raw.length-s.length));return{...e,raw:s,href:f,text:s,tokens:[{type:"text",raw:s,text:s}]}},n.use(x,t);for(let o of["block","inline"])n.use({extensions:[{name:"internalMessage",level:o,...o==="inline"?{start(a){return h.exec(a)?.index}}:{},tokenizer(a){let e=m.exec(a);if(e===null)return;return{type:"internalMessage",raw:e[0]}},renderer(){return""}}]});return n}function _n(n){let t=n.replaceAll(/[\p{Cc}\s]/gu,"");return!/^(?:data|javascript|vbscript):/i.test(t)}
|
|
2
|
+
export{wi,_n};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
export{
|
|
1
|
+
var pa=280;function Ko({entries:i,gapPx:t,measuredHeightsByKey:o,leadingInsetPx:e=0}){let n=[],r=[],d=new Map,s=[],u=e;for(let[x,a]of i.entries()){d.set(a.turnKey,x);for(let h of a.aliases??[])d.set(h,x);s.push(a.turnKey),r.push(u);let f=a.aliases?.map((h)=>o[h]).find((h)=>h!==void 0),m=o[a.turnKey]??f??a.estimatedHeightPx??280;if(n.push(m),u+=m,x<i.length-1)u+=t}return{bottomOffsetsPx:r.map((x,a)=>{let f=n[a];if(f===void 0)throw Error(`Codex turn height is missing at index ${a}`);return u-x-f}),heightsPx:n,topOffsetsPx:r,totalHeightPx:u,turnIndexByKey:d,turnKeys:s}}function Fe({distanceFromBottomPx:i,layout:t,overscanCount:o,viewportHeightPx:e}){if(t.turnKeys.length===0)return{startIndex:0,endIndex:0};let n=Math.min(Math.max(0,i),t.totalHeightPx),r=Math.min(n+Math.max(0,e),t.totalHeightPx),d=g(t.bottomOffsetsPx,r),s=l(t.bottomOffsetsPx,t.heightsPx,n);return{startIndex:Math.max(0,d-o),endIndex:Math.min(t.turnKeys.length,Math.max(s,d+1)+o)}}function hn({anchorKey:i,layout:t,previousRange:o}){let e=t.turnIndexByKey.get(i);if(e===void 0)return null;return{startIndex:e,endIndex:Math.min(t.turnKeys.length,e+o.endIndex-o.startIndex)}}function qo({anchorKey:i,distanceFromBottomPx:t,nextLayout:o,previousLayout:e}){let n=e.turnIndexByKey.get(i),r=o.turnIndexByKey.get(i);if(n===void 0||r===void 0)return null;let d=e.bottomOffsetsPx[n],s=e.heightsPx[n],u=o.bottomOffsetsPx[r],x=o.heightsPx[r];if(d===void 0||s===void 0||u===void 0||x===void 0)throw Error(`Codex turn geometry is missing: ${i}`);return Math.max(0,t+u+x-d-s)}function Wo({layout:i,turnKey:t,viewportHeightPx:o}){let e=i.turnIndexByKey.get(t);if(e===void 0)return null;let n=i.bottomOffsetsPx[e],r=i.heightsPx[e];if(n===void 0||r===void 0)throw Error(`Codex turn geometry is missing: ${t}`);return Math.max(0,n-o/2+r/2)}function Zo({align:i,layout:t,targetHeightPx:o,targetOffsetPx:e,turnKey:n,viewportHeightPx:r}){let d=t.turnIndexByKey.get(n);if(d===void 0)return null;let s=t.bottomOffsetsPx[d],u=t.heightsPx[d];if(s===void 0||u===void 0)throw Error(`Codex turn geometry is missing: ${n}`);let x=s+u-e;return i==="top"?Math.max(0,x-r+10):Math.max(0,x-o/2-r/2)}function g(i,t){let o=0,e=i.length;while(o<e){let n=Math.floor((o+e)/2),r=i[n];if(r===void 0)throw Error(`Codex bottom offset is missing at index ${n}`);if(r<t)e=n;else o=n+1}return o}function l(i,t,o){let e=0,n=i.length;while(e<n){let r=Math.floor((e+n)/2),d=i[r],s=t[r];if(d===void 0||s===void 0)throw Error(`Codex turn geometry is missing at index ${r}`);if(d+s<=o)n=r;else e=r+1}return e}
|
|
2
|
+
export{pa,Ko,Fe,hn,qo,Wo,Zo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{k}from"./chunk-4kevwekp.js";import{r,p}from"./chunk-tggrc8e5.js";import{m,u}from"./chunk-97yvajhc.js";import{GlobeIcon as I,LogOutIcon as G}from"lucide-react";import{useRef as R,useState as l}from"react";import{Avatar as T,AvatarFallback as B,AvatarImage as E}from"@nyssance/shadcn/vega/components/ui/avatar";import{DropdownMenu as H,DropdownMenuContent as U,DropdownMenuGroup as g,DropdownMenuItem as F,DropdownMenuLabel as j,DropdownMenuRadioGroup as z,DropdownMenuRadioItem as V,DropdownMenuSeparator as f,DropdownMenuSub as W,DropdownMenuSubContent as _,DropdownMenuSubTrigger as q,DropdownMenuTrigger as J}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as n}from"react/jsx-runtime";function xr(e){return o(g,{...e})}function br(e){return o(f,{...e})}function ro({className:e,...a}){return o(F,{className:["h-[var(--navigation-row-height,30px)] py-0 [&_svg]:text-muted-foreground",e].filter(Boolean).join(" "),...a})}function Cr({languages:e,value:a,onChange:c}){let s=r();return n(W,{children:[n(q,{className:"h-[var(--navigation-row-height,30px)] py-0",children:[o(I,{className:"text-muted-foreground"}),s.t("sessionList.language")]}),o(_,{children:o(z,{value:a,onValueChange:(t)=>void p(s,Promise.resolve(c(t))),children:e.map((t)=>o(V,{value:t.code,children:t.label},t.code))})})]})}function wr({user:e,children:a,onSignOut:c,busy:s=!1}){let t=r(),{t:N}=t,[M,C]=l(!1),[L,w]=l(!1),b=R(null),[v,S]=l({width:0,offset:0}),O=(h)=>{if(h){let d=b.current,i=d?.closest("[data-sidebar-footer-row]");if(!d||!i)throw Error("AccountMenu must sit in a [data-sidebar-footer-row] row");let y=i.getBoundingClientRect(),A=d.getBoundingClientRect(),P=getComputedStyle(i).direction==="rtl";S({width:i.clientWidth,offset:P?y.right-A.right:A.left-y.left})}C(h)};k(M);let D=s||L,x=n(T,{className:"size-[18px] after:border-0",children:[o(E,{src:e.avatar??void 0,alt:""}),o(B,{className:"bg-primary text-primary-foreground text-xs",children:[...e.name].slice(0,2).join("").toLocaleUpperCase()})]});return n(H,{open:M,onOpenChange:O,children:[n(J,{ref:b,render:o(u,{disabled:D,className:"text-muted-foreground hover:bg-foreground/8 data-popup-open:bg-foreground/5 font-normal"}),children:[o(m,{children:x}),o("span",{className:"min-w-0 truncate",children:e.name})]}),n(U,{side:"top",align:"start",alignOffset:-v.offset,sideOffset:8,style:{width:v.width},children:[n(g,{children:[n(j,{className:"text-popover-foreground flex items-center gap-2 px-2 py-2 text-sm font-medium",children:[o(m,{children:x}),n("span",{className:"min-w-0 flex-1",children:[o("span",{className:"block truncate",children:e.name}),o("span",{className:"text-muted-foreground mt-0.5 block truncate text-xs font-normal",children:e.email})]})]}),o(f,{})]}),a,a!=null&&o(f,{}),o(g,{children:n(ro,{disabled:D,onClick:()=>{w(!0),p(t,c()).finally(()=>w(!1))},children:[o(G,{}),N("sessionList.signOut")]})})]})]})}
|
|
2
|
+
export{xr,br,ro,Cr,wr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Ne,It}from"./chunk-1wh82w54.js";import{createStore as S}from"@alwith/api/client";import{createContext as y,useContext as h,useSyncExternalStore as x}from"react";import{jsx as w}from"react/jsx-runtime";function u(o){return typeof o==="object"&&o!==null&&!Array.isArray(o)}function Yn(o){if(o===null||o===void 0)return Ne();if(!u(o)||!u(o.collections)||!Array.isArray(o.order))throw Error("Saved collections are not in the expected format");let{collections:t,order:e}=o;for(let r of e)if(typeof r!=="string"||!u(t[r]))throw Error(`Saved collection missing: ${String(r)}`);return{collections:t,order:e,sessionMeta:{}}}function or(o,{reportError:t=console.error}={}){let e=S(Ne()),r=async()=>{e.setState(Yn(await o.load()),!0)},i=r(),l=i.catch(t),C=()=>{let n=l.then(r);return i=n,l=n.catch(()=>{}),n},s=!1,a,c=o.subscribe?.(()=>{if(!s)C().catch(t)});if(typeof c==="function")a=c;else if(c!==void 0)c.then((n)=>{if(s)n();else a=n},t);return{store:e,getState:()=>e.getState(),ready:i,dispatch:(n)=>{let p=l.then(async()=>{await i;let d=(Array.isArray(n)?n:[n]).reduce(It,e.getState());await o.save({collections:d.collections,order:d.order}),e.setState(d,!0)});return l=p.catch(()=>{}),p},reload:C,dispose:()=>{s=!0,a?.()}}}var f=y(null);function ir({store:o,children:t}){return w(f,{value:o,children:t})}function nn(){let o=h(f);if(o===null)throw Error("Collection store is missing; wrap the tree in CollectionProvider");return o}function ue(o){let{store:t}=nn(),e=()=>o?o(t.getState()):t.getState();return x((r)=>t.subscribe(r),e,e)}function J(){return nn().dispatch}
|
|
2
|
+
export{Yn,or,ir,nn,ue,J};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_,An,Ai,Yt,Ei,En,Li}from"./chunk-3sqxe0mw.js";import{t,Se,Y,n}from"./chunk-1vmk34zf.js";import{we}from"./chunk-wkw61zwr.js";import{createStore as C}from"@alwith/api/client";import{isText as w,nativeTurnId as Q}from"@nyssance/codex-acp-v2/client";import{jsx as y}from"react/jsx-runtime";var b=C({entries:{}});function p(r,e){b.setState((s)=>({entries:{...s.entries,[r]:e}}))}function v(r,e){let s=Q(e),a=r.items.findLast((i)=>Q(i)!==null);return!e.replayed&&s!==null&&a!==void 0&&Q(a)===s}function E(r,e){for(let s of r.items){if(s.kind!=="user"||s.echo==="pending")continue;for(let a of[...En(s._meta),...s.content.filter(w).flatMap((i)=>En(i._meta))])if(a.questionItemId===e)return a.answer}return}function M({sessionId:r,item:e,question:s,index:a}){let i=Se(),{t:l}=t(),m=An(e.id,a),c=JSON.stringify([r,m]),u=Y(b,(o)=>o.entries[c]),d=n((o)=>o.sessions[r]),k=n((o)=>o.connection==="ready"),f=u?.draft??Ai(s),x=d===void 0?u?.accepted:E(d,m)??u?.accepted,A=d!==void 0&&v(d,e),h=!d?.subagent&&k&&d?.attached&&!d.restoring&&!d.readOnly,g=x!==void 0?"answered":u?.skipped?"skipped":u?.pending?"submitting":!A?"closed":!h?"unavailable":"pending",D=async()=>{if(b.getState().entries[c]?.pending||g!=="pending")return;let o=i.state.sessions[r];if(o===void 0||!v(o,e)||!o.attached||o.readOnly||o.restoring)return;let S=Yt(s,f);if(!S.trim())return;let q={questionItemId:m,question:s.title,answer:S};p(c,{draft:f,pending:!0});try{await i.prompt(r,[{type:"text",text:Ei(q),_meta:{codex:{questionReply:q}}}]),p(c,{draft:f,accepted:S})}catch(I){p(c,{draft:f,error:I instanceof Error?I.message:String(I)})}};if(g==="closed")return null;return y(Li,{question:s,draft:f,status:g,answer:x,error:g==="pending"?u?.error:void 0,t:l,onChange:(o)=>p(c,{draft:o}),onSkip:()=>p(c,{draft:f,skipped:!0}),onSubmit:()=>{D()}})}function Mn({sessionId:r,item:e}){let s=n((i)=>i.sessions[r]),a=_(e._meta);if(s===void 0||s.subagent!==void 0||s.readOnly||!v(s,e))return y(we,{content:e.content.some((i)=>!w(i)||i.text.trim().length>0)?e.content:a.map((i)=>({type:"text",text:i.title})),messageId:e.id,streaming:!1});return y("div",{className:"flex min-w-0 flex-col gap-3","data-async-questions":e.id,children:a.map((i,l)=>y(M,{sessionId:r,item:e,question:i,index:l},An(e.id,l)))})}
|
|
2
|
+
export{Mn};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d}from"./chunk-
|
|
2
|
-
`).length}function
|
|
3
|
-
export{
|
|
1
|
+
import{d}from"./chunk-50brsmjd.js";import{ChevronDownIcon as b,ChevronUpIcon as C,FileDiffIcon as k}from"lucide-react";import{useState as m}from"react";import{jsx as s,jsxs as o}from"react/jsx-runtime";function x(e){if(e===null||e.length===0)return 0;return e.split(`
|
|
2
|
+
`).length}function Zr(e){let c=new Map;for(let r of e)for(let u of r.content){if(u.type!=="diff")continue;let a=u,f=a._meta?.alwith?.hunks??[],l=f.reduce((n,i)=>n+x(i.newText),0),h=f.reduce((n,i)=>n+x(i.oldText),0);for(let n of a.changes){let i=c.get(n.path);if(i)i.additions+=l,i.deletions+=h;else c.set(n.path,{path:n.path,additions:l,deletions:h})}}return[...c.values()]}function Jo({blocks:e}){return s(xn,{files:Zr(e)})}function xn({files:e,onOpen:c,renderPath:r,actions:u}){let{t:a,openLink:f}=d(),[l,h]=m(!0),[n,i]=m(!1);if(e.length===0)return null;let g=e.reduce((t,p)=>t+p.additions,0),v=e.reduce((t,p)=>t+p.deletions,0);return o("section",{className:"codex-edited-files-card",children:[o("div",{className:"codex-edited-files-header",children:[s("div",{className:"codex-edited-files-icon","aria-hidden":"true",children:s(k,{})}),o("div",{className:"codex-edited-files-summary",children:[s("strong",{children:a("stream.codex.editedFilesCount",{count:e.length})}),s("button",{type:"button","data-codex-disclosure":"",onClick:()=>{h((t)=>!t),i(!1)},"aria-expanded":l,children:a(l?"stream.codex.hideChanges":"stream.codex.viewChanges")})]}),u,o("div",{className:"codex-edited-files-total",title:a("stream.codex.changedLines"),children:[o("span",{className:"codex-diff-additions",children:["+",g]}),o("span",{className:"codex-diff-deletions",children:["-",v]})]})]}),l&&o("div",{className:"codex-edited-files-list",children:[(n?e:e.slice(0,3)).map((t)=>o("div",{className:"codex-edited-file-row",children:[s("button",{type:"button",className:"codex-edited-file-path",title:t.path,onClick:()=>c===void 0?f(t.path):c(t),children:r===void 0?t.path:r(t)}),o("span",{className:"codex-edited-file-counts",children:[o("span",{className:"codex-diff-additions",children:["+",t.additions]}),o("span",{className:"codex-diff-deletions",children:["-",t.deletions]})]})]},t.path)),e.length>3&&o("button",{type:"button",className:"codex-edited-files-more","aria-expanded":n,onClick:()=>i((t)=>!t),children:[a(n?"stream.codex.showFewerFiles":"stream.codex.showMoreFiles",{count:e.length-3}),n?s(C,{size:16,"aria-hidden":"true"}):s(b,{size:16,"aria-hidden":"true"})]})]})]})}
|
|
3
|
+
export{Zr,Jo,xn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l,i}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{l,i}from"./chunk-b4evrc3r.js";import{L,R,X,F,D,se}from"./chunk-yamfntjx.js";import{ae}from"./chunk-y39xsj1f.js";import{h}from"./chunk-9cqpn67f.js";import{de}from"./chunk-0e4zew7m.js";import{H,le}from"./chunk-60z20w9q.js";import{CheckIcon as U,SparklesIcon as V,XIcon as _}from"lucide-react";import{useDeferredValue as J,useState as v}from"react";import{Button as y}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as K,DialogClose as Q,DialogContent as W,DialogDescription as Y,DialogHeader as Z,DialogTitle as ee}from"@nyssance/shadcn/vega/components/ui/dialog";import{ItemTitle as te}from"@nyssance/shadcn/vega/components/ui/item";import{Spinner as ne}from"@nyssance/shadcn/vega/components/ui/spinner";import{Switch as ie}from"@nyssance/shadcn/vega/components/ui/switch";import{Tabs as oe,TabsContent as re,TabsList as ce,TabsTrigger as pe}from"@nyssance/shadcn/vega/components/ui/tabs";import{jsx as t,jsxs as n,Fragment as S}from"react/jsx-runtime";function P({skill:c}){let{assetUrl:m}=l(),[u,s]=v(!1),o=c.interface?.iconSmall,b=o&&m?m(o):c.interface?.iconSmallUrl;return t("div",{className:"bg-muted flex size-10 shrink-0 items-center justify-center rounded-xl",children:b&&!u?t("img",{src:b,alt:"",onError:()=>s(!0),className:"size-6 rounded object-contain"}):t(V,{className:"text-muted-foreground size-6"})})}function me({skill:c}){let{t:m}=l(),u=i((o)=>o.setSkillEnabled),s=i((o)=>(c.path in o.busySkills));return n("div",{className:"flex items-center gap-2",children:[s&&t(ne,{className:"text-muted-foreground size-3.5"}),t(ie,{checked:c.enabled,disabled:s,"aria-label":`${m(c.enabled?"plugins.skills.disable":"plugins.skills.enable")}: ${c.interface?.displayName??c.name}`,onCheckedChange:(o)=>void u(c,o)})]})}function ct({query:c,ready:m,onOpenPlugin:u}){let{t:s}=l(),o=i((e)=>e.skills),b=i((e)=>e.skillErrors),j=i((e)=>e.loading)||!m,z=i((e)=>e.installed),M=i((e)=>e.skillProjects),[E,B]=v(null),[k,G]=v(!1),[O,C]=v(null),x=J(c.trim().toLowerCase()),r=o.find((e)=>e.path===O),N=z.find(({plugin:e})=>e.id===r?.pluginId),p=o.filter((e)=>[e.name,e.interface?.displayName,e.description,e.shortDescription,e.interface?.shortDescription,e.pluginId].filter(Boolean).join(" ").toLowerCase().includes(x)).toSorted((e,a)=>(e.interface?.displayName??e.name).localeCompare(a.interface?.displayName??a.name)),d=[...["user","system","admin"].flatMap((e)=>{let a=o.filter((f)=>f.scope===e);return a.length?[{id:e,label:s(e==="user"?"plugins.catalog.personal":`plugins.skills.scope.${e}`),paths:new Set(a.map((f)=>f.path)),path:null}]:[]}),...Object.entries(M).flatMap(([e,a])=>{if(!o.some((T)=>T.scope==="repo"&&a.includes(T.path)))return[];let f=e.replace(/[\\/]+$/,"").split(/[\\/]/).at(-1)||e;return[{id:`project:${e}`,label:f,paths:new Set(a),path:e}]})],q=d.map((e)=>e.label);for(let e of d)if(e.path&&q.filter((a)=>a===e.label).length>1)e.label=e.path;let g=d.find((e)=>e.id===E)??d[0],w=g?p.filter((e)=>g.paths.has(e.path)):[],A=k||x?p:p.slice(0,6),I=(e)=>t(D,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2",children:e.map((a)=>n(se,{className:"toolbox-row relative [contain-intrinsic-size:auto_80px] [content-visibility:auto]",children:[t(y,{variant:"ghost",className:"absolute inset-0 z-0 size-full","aria-label":a.interface?.displayName??a.name,onClick:()=>C(a.path)}),t(F,{className:"pointer-events-none relative translate-none! self-center!",children:t(P,{skill:a})}),n(R,{className:"pointer-events-none relative min-w-0",children:[t(te,{className:"block truncate",children:a.interface?.displayName??a.name}),t(X,{className:"line-clamp-1",title:a.interface?.shortDescription??a.shortDescription??a.description,children:a.interface?.shortDescription??a.shortDescription??a.description})]}),t(L,{className:"text-muted-foreground pointer-events-none relative",children:a.enabled?t(U,{className:"size-4","aria-label":s("plugins.skills.enabledStatus")}):t("span",{className:"text-xs",children:s("plugins.skills.disabledBadge")})})]},a.path))});return n("div",{className:"flex min-h-0 flex-1 flex-col gap-4",children:[t(h,{className:"pe-0",viewportClassName:"pe-0",children:n("div",{className:`${H} space-y-8 pt-6`,children:[b.map((e)=>n("p",{role:"alert",className:"text-destructive text-xs break-words",children:[e.path,": ",e.message]},e.path)),j?t(ae,{skills:!0}):n(S,{children:[n("section",{"aria-label":s("plugins.skills.installed"),children:[n("div",{className:"mb-4 flex items-center justify-between gap-3",children:[t("h2",{className:"text-base font-medium",children:s("plugins.skills.installed")}),t("span",{role:"status",className:"text-muted-foreground text-xs",children:s("plugins.catalog.skillCount",{count:p.length})})]}),p.length?I(A):t("p",{className:"text-muted-foreground px-2 py-8 text-sm",children:s(x?"plugins.skills.filteredEmpty":"plugins.skills.empty")}),!x&&p.length>6&&t(y,{variant:"ghost",className:"text-muted-foreground mt-3 max-w-full justify-start","aria-expanded":k,onClick:()=>G((e)=>!e),children:k?s("plugins.sections.showLess"):s("plugins.catalog.showMore",{count:p.length-6})})]}),g&&n(oe,{value:g.id,onValueChange:(e)=>{if(typeof e==="string")B(e)},className:"gap-6",children:[t(ce,{"aria-label":s("plugins.catalog.scope"),className:"h-auto max-w-full flex-wrap justify-start gap-2 bg-transparent",children:d.map((e)=>t(pe,{value:e.id,title:e.path??e.label,className:"data-active:bg-muted! h-8 flex-none rounded-lg px-3 text-[13px] font-medium shadow-none! after:hidden dark:data-active:border-transparent",children:e.label},e.id))}),d.map((e)=>t(re,{value:e.id,children:e.id===g.id&&(w.length?I(w):t("p",{className:"text-muted-foreground px-2 py-8 text-sm",children:s("plugins.skills.filteredEmpty")}))},e.id))]})]})]})}),t(K,{open:!!r,onOpenChange:(e)=>{if(!e)C(null)},children:t(W,{showCloseButton:!1,className:le,children:r&&n(S,{children:[t(de,{path:r.path,renderHeader:(e)=>n(S,{children:[n("div",{className:"flex items-center justify-between gap-4",children:[t(P,{skill:r}),n("div",{className:"flex shrink-0 items-center gap-2",children:[t(me,{skill:r}),e,t(Q,{render:t(y,{variant:"ghost",size:"icon-sm","aria-label":s("plugins.close")}),children:t(_,{})})]})]}),n(Z,{className:"gap-3",children:[t(ee,{className:"text-2xl leading-8 font-semibold break-words",children:r.interface?.displayName??r.name}),t(Y,{className:"text-sm leading-6 break-words whitespace-pre-wrap",children:r.description})]})]})},r.path),r.pluginId&&n("div",{className:"text-sm",children:[n("span",{className:"text-muted-foreground",children:[s("plugins.catalog.fromPlugin")," "]}),N?t(y,{variant:"link",className:"h-auto p-0",onClick:()=>{C(null),u(N)},children:N.plugin.interface?.displayName??N.plugin.name}):r.pluginId]})]})})})]})}
|
|
2
|
+
export{ct};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function a(t){if(t.path.startsWith("/")||/^[A-Za-z]:[\\/]/.test(t.path))return t.path;return`${t.root.replace(/[\\/]+$/,"")}/${t.path}`}function
|
|
2
|
-
export{
|
|
1
|
+
function a(t){if(t.path.startsWith("/")||/^[A-Za-z]:[\\/]/.test(t.path))return t.path;return`${t.root.replace(/[\\/]+$/,"")}/${t.path}`}function zt(t,o=50){return t.slice(0,o).map((e)=>{let r=a(e);return{key:r,label:e.path,payload:r,description:e.match_type==="directory"?"/":""}})}
|
|
2
|
+
export{zt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Ko,Fe,hn,qo,Wo,Zo}from"./chunk-d09kxrbp.js";import{forwardRef as ye,useCallback as K,useEffect as ge,useImperativeHandle as ve,useLayoutEffect as w,useMemo as ne,useRef as s,useState as F}from"react";import{jsx as R,jsxs as re}from"react/jsx-runtime";var pe=12,X=2,V=800,he=new Map;function Re({turnKey:q,heightPx:x,placeholder:W=!1,deferUntilReady:n=!1,observe:b,onReady:L,children:z}){let h=s(null),[H,_]=F(!1),U=K((m)=>{h.current=m,b(q,m)},[b,q]);return w(()=>{let m=h.current;if(m===null)throw Error("Codex turn element is missing");let T=()=>{L(m),_(!0)};if(m.querySelector("[data-markdown-pending]")===null){T();return}let d=new MutationObserver(()=>{if(m.querySelector("[data-markdown-pending]")!==null)return;d.disconnect(),T()});return d.observe(m,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-markdown-pending"]}),()=>d.disconnect()},[L]),re("div",{style:H?void 0:{position:"relative",height:x,overflow:"hidden"},children:[R("div",{ref:U,className:"[&_[data-virtualized-turn-content]]:[content-visibility:visible]","data-turn-key":q,"aria-busy":!H||void 0,style:!H&&!W&&n?{visibility:"hidden"}:void 0,"data-turn-ready":H?"":void 0,children:z}),!H&&!W&&n&&R("div",{"aria-hidden":"true",className:"codex-turn-loading",children:re("div",{className:"codex-turn-loading-lines",children:[R("span",{}),R("span",{}),R("span",{})]})})]})}var $o=ye(function({entries:x,renderTurn:W,scrollElement:n,sessionKey:b,leadingContent:L,leadingInsetPx:z=0,preserveViewport:h=!1},H){let _=s(null),[U,m]=F(z),T=L!==void 0&&L!==null;w(()=>{let e=_.current;if(e===null)return;let t=()=>m(e.getBoundingClientRect().height);t();let o=new ResizeObserver(t);return o.observe(e),()=>o.disconnect()},[T]);let d=ne(()=>he.get(b),[b]),[j,J]=F(()=>d?.turnHeightsByKey??{}),i=ne(()=>Ko({entries:x,gapPx:pe,measuredHeightsByKey:j,leadingInsetPx:T?U:z}),[x,j,T,U,z]),me=ne(()=>{let e=Fe({distanceFromBottomPx:d?.distanceFromBottomPx??0,layout:i,overscanCount:X,viewportHeightPx:V}),t=d?.renderedWindow;if(t===void 0||t===null)return e;return hn({anchorKey:t.anchorKey,layout:i,previousRange:{startIndex:0,endIndex:Math.min(t.count,e.endIndex-e.startIndex)}})??e},[d,i]),[M,ie]=F(me),[y,oe]=F(V),[c,ue]=F(null),N=s(d?.distanceFromBottomPx??0),k=s(M),ae=s(i.turnKeys),l=s(j),S=s(i),se=s(i),P=s(new Map),v=s(null),C=s(null),E=s(null),D=s(new Map),Q=s(!1),ce=s(()=>{}),O=s(null),de=K(()=>{if(!h||n===null||v.current!==null||O.current!==null)return;let e=n.getBoundingClientRect();if(e.height<=0)return;let t=[...P.current].filter(([,r])=>r.hasAttribute("data-turn-ready")).map(([r,u])=>{let a=u.getBoundingClientRect(),g=S.current.turnIndexByKey.get(r),B=g===void 0?a.height:S.current.heightsPx[g];return{key:r,element:u,rect:a,bottom:a.top+B}}).filter(({rect:r,bottom:u})=>u>e.top&&r.top<e.bottom).toSorted((r,u)=>r.rect.top-u.rect.top),o=t.flatMap((r)=>[...r.element.querySelectorAll("[data-user-message-bubble], .codex-markdown-root > *")].filter((u)=>!u.closest('[aria-hidden="true"], [inert]')).map((u)=>({key:r.key,element:u,rect:u.getBoundingClientRect()})).filter(({rect:u})=>u.height>0&&u.top>=e.top&&u.top<e.bottom)).toSorted((r,u)=>r.rect.top-u.rect.top)[0]??t[0];if(o)O.current={key:o.key,element:o.element,top:o.rect.top-e.top,scrollTop:n.scrollTop}},[h,n]),Y=s(de);Y.current=de;let p=K((e,t)=>{let o=Math.min(e,i.totalHeightPx),r=Fe({distanceFromBottomPx:o,layout:i,overscanCount:X,viewportHeightPx:t}),u=k.current,a=u.startIndex<=r.startIndex&&u.endIndex>=r.endIndex?u:r;if(N.current=o,k.current=a,ae.current=i.turnKeys,oe(t),a!==u)ie(a)},[i]),A=K((e)=>{let t=Math.max(0,e.scrollHeight-i.totalHeightPx);return Math.max(0,e.scrollHeight-e.clientHeight-e.scrollTop-t)},[i.totalHeightPx]),fe=K((e)=>{let t=e.dataset.turnKey;if(t===void 0)throw Error("Codex measured turn is missing its key");let o=Math.max(1,e.getBoundingClientRect().height);if(l.current[t]===o)return;Y.current();let r={...l.current,[t]:o};l.current=r,J(r)},[]),Z=K(()=>{if(C.current!==null)return C.current;return C.current=new ResizeObserver((e)=>{for(let t of e){let o=t.target;if(!("turnReady"in o.dataset)&&o.querySelector("[data-markdown-pending]")!==null)continue;let r=o.dataset.turnKey;if(r===void 0)throw Error("Codex measured turn is missing its key");let u=Math.max(1,t.borderBoxSize[0]?.blockSize??t.contentRect.height);D.current.set(r,u)}if(E.current!==null||D.current.size===0)return;E.current=requestAnimationFrame(()=>{E.current=null;let t=[...D.current].filter(([r,u])=>l.current[r]!==u);if(D.current.clear(),t.length===0)return;Y.current();let o={...l.current,...Object.fromEntries(t)};l.current=o,J(o)})}),C.current},[]),xe=K((e,t)=>{let o=P.current.get(e);if(o!==void 0)Z().unobserve(o),P.current.delete(e);if(t===null)return;if(t.dataset.turnKey!==e)throw Error(`Codex turn key does not match its element: ${e}`);P.current.set(e,t),Z().observe(t)},[Z]);ge(()=>()=>{if(C.current?.disconnect(),E.current!==null)cancelAnimationFrame(E.current);D.current.clear(),C.current=null,P.current.clear()},[]),w(()=>{ce.current=()=>{if(n===null)return;let e=A(n);if(v.current!==null){N.current=e,oe(n.clientHeight||V);return}p(e,n.clientHeight||V)}},[A,n,p]),w(()=>{if(n===null)return;if(!Q.current){Q.current=!0;let o=d?.distanceFromBottomPx??0;n.scrollTo({behavior:"instant",top:Math.max(0,o>0?S.current.totalHeightPx-n.clientHeight-o:n.scrollHeight-n.clientHeight)})}let e=()=>ce.current();e(),n.addEventListener("scroll",e,{passive:!0});let t=new ResizeObserver(e);return t.observe(n),()=>{n.removeEventListener("scroll",e),t.disconnect()}},[d,n]),w(()=>{if(n===null||c===null)return;let e=P.current.get(c.turnKey);if(e?.querySelector("[data-markdown-pending]")!==null)return;let t=e.offsetHeight;if(t<=0)return;if(l.current[c.turnKey]!==t){let g={...l.current,[c.turnKey]:t};l.current=g,J(g);return}let o=c.getTargetElement(e)??e,r=e.getBoundingClientRect(),u=o.getBoundingClientRect(),a=Zo({align:c.align,layout:i,targetHeightPx:u.height,targetOffsetPx:u.top-r.top,turnKey:c.turnKey,viewportHeightPx:n.clientHeight});if(a===null)throw Error(`Codex virtual turn is missing: ${c.turnKey}`);n.scrollTo({behavior:"instant",top:Math.max(0,i.totalHeightPx-n.clientHeight-a)}),p(a,n.clientHeight||V),queueMicrotask(()=>{if(v.current!==c)return;c.complete(),v.current=null,ue(null)})},[i,c,n,p]),w(()=>{let e=se.current;if(se.current=i,S.current=i,n===null||c!==null){O.current=null;return}let t=O.current;O.current=null;let o=t===null?void 0:n.contains(t.element)?t.element:P.current.get(t.key);if(h&&e!==i&&t!==null&&o!==void 0){let u=o.getBoundingClientRect().top-n.getBoundingClientRect().top,a=n.scrollTop-t.scrollTop;n.scrollTop+=u-t.top+a,p(A(n),n.clientHeight);return}let r=N.current;if(h&&e!==i&&Q.current)r=Math.max(0,e.totalHeightPx-n.clientHeight-n.scrollTop);if((r>24||h)&&e!==i){let u=A(n);if(u<=96&&!h){p(u,y);return}let a=Fe({distanceFromBottomPx:r,layout:e,overscanCount:0,viewportHeightPx:y}),g=e.turnKeys.slice(a.startIndex,a.endIndex).filter((f)=>i.turnIndexByKey.has(f)),B=g.find((f)=>l.current[f]!==void 0)??g[0];if(B!==void 0){let f=qo({anchorKey:B,distanceFromBottomPx:r,nextLayout:i,previousLayout:e});if(f===null)throw Error(`Codex viewport anchor is missing: ${B}`);r=f,n.scrollTo({behavior:"instant",top:Math.max(0,i.totalHeightPx-n.clientHeight-r)})}}p(r,y)},[i,c,A,n,p,y,h]),w(()=>{k.current=M},[M]),ge(()=>()=>{v.current?.complete(),v.current=null;let e=k.current,o=S.current.turnKeys[e.startIndex];he.set(b,{distanceFromBottomPx:N.current,renderedWindow:o===void 0?null:{anchorKey:o,count:e.endIndex-e.startIndex},turnHeightsByKey:l.current})},[b]),ve(H,()=>({scrollToKey(e,t=(r)=>r,o={align:"center"}){v.current?.complete();let r=i.turnIndexByKey.get(e);if(r===void 0)throw Error(`Codex virtual turn is missing: ${e}`);let u=i.turnKeys[r],a=Wo({layout:i,turnKey:e,viewportHeightPx:y});if(a===null)throw Error(`Codex virtual turn is missing: ${e}`);let g=Fe({distanceFromBottomPx:a,layout:i,overscanCount:X,viewportHeightPx:y});return k.current=g,ie(g),new Promise((B)=>{let f={align:o.align,complete:B,getTargetElement:t,turnKey:u};v.current=f,ue(f)})}}),[i,y]);let I=M,G=ae.current;if(!(G===i.turnKeys||G.length===i.turnKeys.length&&G.every((e,t)=>e===i.turnKeys[t]))){let e=G[M.startIndex];I=(e===void 0?null:hn({anchorKey:e,layout:i,previousRange:M}))??Fe({distanceFromBottomPx:N.current,layout:i,overscanCount:X,viewportHeightPx:y})}let ee=x.length-1,le=x[ee],te=x.slice(I.startIndex,Math.min(I.endIndex,ee)).map((e,t)=>({entry:e,index:I.startIndex+t}));if(le!==void 0)te.push({entry:le,index:ee});return re("div",{"data-codex-timeline":!0,"data-codex-virtualized-pending-key":c?.turnKey,"data-codex-virtualized-range":`${I.startIndex}:${I.endIndex}`,"data-codex-virtualized-total-count":x.length,"data-codex-virtualized-turn-count":te.length,className:"relative shrink-0",style:{height:i.totalHeightPx},children:[T&&R("div",{ref:_,"data-codex-timeline-leading":!0,className:"absolute inset-x-0 top-0",children:L}),te.map(({entry:e,index:t})=>R("div",{className:"absolute inset-x-0",style:{top:i.topOffsetsPx[t]??0},children:R(Re,{turnKey:e.turnKey,heightPx:i.heightsPx[t],placeholder:e.placeholder,deferUntilReady:e.deferUntilReady,observe:xe,onReady:fe,children:W(e,t)})},e.turnKey))]})});
|
|
2
|
+
export{$o};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{PreviewCard as e}from"@base-ui/react/preview-card";import{jsx as o,jsxs as d}from"react/jsx-runtime";function
|
|
2
|
-
export{
|
|
1
|
+
import{PreviewCard as e}from"@base-ui/react/preview-card";import{jsx as o,jsxs as d}from"react/jsx-runtime";function hi({open:r,onOpenChange:a,trigger:i,children:t,...n}){return d(e.Root,{open:r,onOpenChange:a,children:[o(e.Trigger,{render:i,delay:700,closeDelay:100}),o(e.Portal,{children:o(e.Positioner,{...n,className:"isolate z-50",children:o(e.Popup,{"data-slot":"codex-hover-card",className:"m-0 outline-hidden",children:t})})})]})}
|
|
2
|
+
export{hi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{it}from"./chunk-wvs6ttt3.js";import{vi,yi,xi}from"./chunk-j6e2t91q.js";import{fi}from"./chunk-5c5z2b48.js";import{t}from"./chunk-1vmk34zf.js";import{re}from"./chunk-6r8jsyqk.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 Yr(i,n){return{installUnlock:n==="none"?()=>()=>{}:yi,preload:()=>{if(n!=="none")vi(i)},playSequence:(a,d,l)=>xi(a,d,l,i,n)}}function mi(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:re(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(it,{text:i.response,host:a})})]})}function gi(i){return r(fi,{...i,renderPreview:(n)=>r(T,{item:n})})}
|
|
2
|
+
export{Yr,mi,gi};
|