@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,801 +0,0 @@
|
|
|
1
|
-
//! Account-owned gateway configuration and revocation. Secrets never cross the webview boundary.
|
|
2
|
-
//! The host owns the account: it binds the signed-in identity and passes a fresh access token for
|
|
3
|
-
//! each refresh. An application without an ALwith account never calls these commands.
|
|
4
|
-
use super::*;
|
|
5
|
-
use std::sync::Mutex;
|
|
6
|
-
use std::time::Duration;
|
|
7
|
-
|
|
8
|
-
pub const ID: &str = "litellm";
|
|
9
|
-
const MODEL_PREFIX: &str = "gateway:litellm:";
|
|
10
|
-
|
|
11
|
-
/// Sessions whose account model is no longer available; the payload is a [`RevokedSessions`].
|
|
12
|
-
pub const REVOKED_EVENT: &str = "providers:managed-revoked";
|
|
13
|
-
|
|
14
|
-
#[derive(Clone, Serialize)]
|
|
15
|
-
#[serde(rename_all = "camelCase")]
|
|
16
|
-
pub struct RevokedSessions {
|
|
17
|
-
session_ids: Vec<String>,
|
|
18
|
-
}
|
|
19
|
-
impl RevokedSessions {
|
|
20
|
-
fn emit(&self, app: &AppHandle) {
|
|
21
|
-
if let Err(error) = app.emit(REVOKED_EVENT, self) {
|
|
22
|
-
log::warn!("Provider catalog: cannot emit {REVOKED_EVENT}: {error}");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
#[derive(Clone, Debug, Deserialize, Serialize)]
|
|
28
|
-
pub(super) struct Cache {
|
|
29
|
-
pub account: Account,
|
|
30
|
-
pub provider: Option<CustomProvider>,
|
|
31
|
-
}
|
|
32
|
-
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]
|
|
33
|
-
#[serde(rename_all = "camelCase", deny_unknown_fields)]
|
|
34
|
-
pub struct Account {
|
|
35
|
-
pub api_base_url: String,
|
|
36
|
-
pub user_uuid: String,
|
|
37
|
-
}
|
|
38
|
-
#[derive(Default)]
|
|
39
|
-
pub(super) struct Gate {
|
|
40
|
-
pub generation: u64,
|
|
41
|
-
pub account: Option<Account>,
|
|
42
|
-
pub targets: BTreeSet<String>,
|
|
43
|
-
pub routes: BTreeMap<String, Route>,
|
|
44
|
-
pub models: BTreeSet<String>,
|
|
45
|
-
pub realtime: BTreeMap<String, String>,
|
|
46
|
-
}
|
|
47
|
-
#[derive(Clone)]
|
|
48
|
-
pub(super) struct Route {
|
|
49
|
-
pub model: String,
|
|
50
|
-
pub agent: String,
|
|
51
|
-
pub generation: u64,
|
|
52
|
-
}
|
|
53
|
-
impl Gate {
|
|
54
|
-
fn invalidate(&mut self) -> Result<(), String> {
|
|
55
|
-
self.generation = self.generation.checked_add(1).ok_or("Account generation exhausted")?;
|
|
56
|
-
self.account = None;
|
|
57
|
-
self.models.clear();
|
|
58
|
-
Ok(())
|
|
59
|
-
}
|
|
60
|
-
fn check_selection(&self, requested: Option<&str>, session: Option<&str>) -> Result<(), String> {
|
|
61
|
-
if let Some(model) = requested
|
|
62
|
-
&& model.starts_with(MODEL_PREFIX)
|
|
63
|
-
&& (self.account.is_none() || !self.models.contains(model))
|
|
64
|
-
{
|
|
65
|
-
return Err("The selected ALwith account model is unavailable".into());
|
|
66
|
-
}
|
|
67
|
-
if let Some(route) = session.and_then(|session| self.routes.get(session))
|
|
68
|
-
&& (self.account.is_none() || route.generation != self.generation || !self.models.contains(&route.model))
|
|
69
|
-
{
|
|
70
|
-
return Err("The ALwith account changed. Select a model before sending".into());
|
|
71
|
-
}
|
|
72
|
-
Ok(())
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
fn model_ids(provider: Option<&CustomProvider>) -> BTreeSet<String> {
|
|
76
|
-
provider
|
|
77
|
-
.into_iter()
|
|
78
|
-
.flat_map(|provider| provider.models.iter())
|
|
79
|
-
.map(|model| {
|
|
80
|
-
let encoded: String = url_model_id(&model.api_id);
|
|
81
|
-
format!("{MODEL_PREFIX}{encoded}")
|
|
82
|
-
})
|
|
83
|
-
.collect()
|
|
84
|
-
}
|
|
85
|
-
fn url_model_id(id: &str) -> String {
|
|
86
|
-
// encodeURIComponent's unescaped bytes, matching gatewayModelId in the adapter.
|
|
87
|
-
id.as_bytes()
|
|
88
|
-
.iter()
|
|
89
|
-
.map(|byte| {
|
|
90
|
-
if byte.is_ascii_alphanumeric() || b"-_.!~*'()".contains(byte) {
|
|
91
|
-
(*byte as char).to_string()
|
|
92
|
-
} else {
|
|
93
|
-
format!("%{byte:02X}")
|
|
94
|
-
}
|
|
95
|
-
})
|
|
96
|
-
.collect()
|
|
97
|
-
}
|
|
98
|
-
#[derive(Default)]
|
|
99
|
-
pub(super) struct State {
|
|
100
|
-
pub gate: Mutex<Gate>,
|
|
101
|
-
pub transition: tokio::sync::Mutex<()>,
|
|
102
|
-
pub refresh: tokio::sync::Mutex<()>,
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
#[derive(Deserialize)]
|
|
106
|
-
struct IssuedProvider {
|
|
107
|
-
name: String,
|
|
108
|
-
base_url: String,
|
|
109
|
-
api_key: String,
|
|
110
|
-
#[serde(default)]
|
|
111
|
-
hidden: bool,
|
|
112
|
-
models: Vec<IssuedModel>,
|
|
113
|
-
}
|
|
114
|
-
#[derive(Deserialize)]
|
|
115
|
-
struct IssuedModel {
|
|
116
|
-
api_id: String,
|
|
117
|
-
label: String,
|
|
118
|
-
context_window: Option<u64>,
|
|
119
|
-
description: Option<String>,
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
pub(super) fn parse_catalog(body: &str) -> Result<Option<CustomProvider>, String> {
|
|
123
|
-
let rows: Vec<Value> = serde_json::from_str(body).map_err(|_| "Invalid ALwith provider response")?;
|
|
124
|
-
let mut selected = rows.into_iter().filter(|row| row["provider_id"] == ID);
|
|
125
|
-
let Some(value) = selected.next() else { return Ok(None) };
|
|
126
|
-
if selected.next().is_some() {
|
|
127
|
-
return Err("Duplicate ALwith provider".into());
|
|
128
|
-
}
|
|
129
|
-
if value["api_key"].as_str().is_none_or(|key| key.trim().is_empty()) {
|
|
130
|
-
return Ok(None);
|
|
131
|
-
}
|
|
132
|
-
let provider: IssuedProvider = serde_json::from_value(value).map_err(|_| "Invalid ALwith provider metadata")?;
|
|
133
|
-
if provider.hidden {
|
|
134
|
-
return Ok(None);
|
|
135
|
-
}
|
|
136
|
-
let mut ids = BTreeSet::new();
|
|
137
|
-
let models = provider
|
|
138
|
-
.models
|
|
139
|
-
.into_iter()
|
|
140
|
-
.map(|model| {
|
|
141
|
-
if model.api_id.trim().is_empty()
|
|
142
|
-
|| model.label.trim().is_empty()
|
|
143
|
-
|| model.context_window == Some(0)
|
|
144
|
-
|| !ids.insert(model.api_id.clone())
|
|
145
|
-
{
|
|
146
|
-
return Err("Invalid or duplicate ALwith model metadata".to_string());
|
|
147
|
-
}
|
|
148
|
-
Ok(CustomModel {
|
|
149
|
-
api_id: model.api_id,
|
|
150
|
-
label: model.label,
|
|
151
|
-
context_window: model.context_window,
|
|
152
|
-
description: model.description,
|
|
153
|
-
})
|
|
154
|
-
})
|
|
155
|
-
.collect::<Result<Vec<_>, _>>()?;
|
|
156
|
-
if models.is_empty() {
|
|
157
|
-
return Ok(None);
|
|
158
|
-
}
|
|
159
|
-
if provider.name.trim().is_empty() {
|
|
160
|
-
return Err("Missing ALwith provider name".into());
|
|
161
|
-
}
|
|
162
|
-
Ok(Some(CustomProvider {
|
|
163
|
-
id: ID.into(),
|
|
164
|
-
name: provider.name,
|
|
165
|
-
base_url: responses_base_url(&provider.base_url)?,
|
|
166
|
-
models,
|
|
167
|
-
api_key: provider.api_key,
|
|
168
|
-
}))
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
fn responses_base_url(raw: &str) -> Result<String, String> {
|
|
172
|
-
// Account-issued gateways may use internal HTTP, as in the supported /v1/responses contract.
|
|
173
|
-
let url = reqwest::Url::parse(raw.trim()).map_err(|_| "Invalid ALwith gateway URL")?;
|
|
174
|
-
if !matches!(url.scheme(), "http" | "https")
|
|
175
|
-
|| url.host_str().is_none()
|
|
176
|
-
|| url.query().is_some()
|
|
177
|
-
|| url.fragment().is_some()
|
|
178
|
-
|| !url.username().is_empty()
|
|
179
|
-
|| url.password().is_some()
|
|
180
|
-
{
|
|
181
|
-
return Err("Invalid ALwith gateway URL".into());
|
|
182
|
-
}
|
|
183
|
-
let base = url.as_str().trim_end_matches('/').to_string();
|
|
184
|
-
match url.path().trim_end_matches('/') {
|
|
185
|
-
"" => Ok(format!("{base}/v1")),
|
|
186
|
-
path if path.ends_with("/v1") => Ok(base),
|
|
187
|
-
_ => Err("ALwith gateway must supply a root URL or an API base ending in /v1".into()),
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
fn main_window(window: &tauri::WebviewWindow) -> Result<(), String> {
|
|
192
|
-
if window.label() != "main" {
|
|
193
|
-
return Err("ALwith account changes belong to the main window".into());
|
|
194
|
-
}
|
|
195
|
-
Ok(())
|
|
196
|
-
}
|
|
197
|
-
fn validate_account(account: &Account) -> Result<(), String> {
|
|
198
|
-
if !matches!(account.api_base_url.as_str(), "https://api.alwith.ai/service" | "https://api-dev.alwith.ai/service")
|
|
199
|
-
|| account.user_uuid.trim().is_empty()
|
|
200
|
-
{
|
|
201
|
-
return Err("Invalid ALwith account identity".into());
|
|
202
|
-
}
|
|
203
|
-
Ok(())
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
#[tauri::command]
|
|
207
|
-
pub(crate) async fn providers_account_bind(window: tauri::WebviewWindow, account: Account) -> Result<u64, String> {
|
|
208
|
-
main_window(&window)?;
|
|
209
|
-
validate_account(&account)?;
|
|
210
|
-
let app = window.app_handle();
|
|
211
|
-
let state = app.state::<Providers>();
|
|
212
|
-
let _transition = state.managed.transition.lock().await;
|
|
213
|
-
let mut inner = state.inner.lock().await;
|
|
214
|
-
let generation = {
|
|
215
|
-
let mut gate = state.managed.gate.lock().unwrap();
|
|
216
|
-
if gate.account.as_ref() == Some(&account) {
|
|
217
|
-
return Ok(gate.generation);
|
|
218
|
-
}
|
|
219
|
-
if !gate.targets.is_empty() {
|
|
220
|
-
return Err("Previous ALwith provider cleanup is incomplete; retry logout".into());
|
|
221
|
-
}
|
|
222
|
-
gate.generation = gate.generation.checked_add(1).ok_or("Account generation exhausted")?;
|
|
223
|
-
gate.account = Some(account.clone());
|
|
224
|
-
gate.generation
|
|
225
|
-
};
|
|
226
|
-
inner.managed_active = inner.saved.managed.as_ref().is_some_and(|cache| cache.account == account);
|
|
227
|
-
state.managed.gate.lock().unwrap().models = if inner.managed_active {
|
|
228
|
-
model_ids(inner.saved.managed.as_ref().and_then(|cache| cache.provider.as_ref()))
|
|
229
|
-
} else {
|
|
230
|
-
BTreeSet::new()
|
|
231
|
-
};
|
|
232
|
-
inner.applied_revision = None;
|
|
233
|
-
emit(app, &inner.snapshot());
|
|
234
|
-
Ok(generation)
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
#[tauri::command]
|
|
238
|
-
pub(crate) async fn providers_refresh_managed(
|
|
239
|
-
window: tauri::WebviewWindow, generation: u64, access_token: String,
|
|
240
|
-
) -> Result<Snapshot, Value> {
|
|
241
|
-
main_window(&window).map_err(|message| json!({"message":message}))?;
|
|
242
|
-
let app = window.app_handle();
|
|
243
|
-
let state = app.state::<Providers>();
|
|
244
|
-
let _refresh = state.managed.refresh.lock().await;
|
|
245
|
-
let account = {
|
|
246
|
-
let gate = state.managed.gate.lock().unwrap();
|
|
247
|
-
if gate.generation != generation {
|
|
248
|
-
return Err(json!({"message":"ALwith account changed"}));
|
|
249
|
-
}
|
|
250
|
-
gate.account.clone().ok_or_else(|| json!({"message":"Sign in before loading ALwith models"}))?
|
|
251
|
-
};
|
|
252
|
-
if access_token.trim().is_empty() {
|
|
253
|
-
return Err(json!({"message":"Missing ALwith access token"}));
|
|
254
|
-
}
|
|
255
|
-
let result = fetch_catalog(&account.api_base_url, &access_token).await;
|
|
256
|
-
let mut inner = state.inner.lock().await;
|
|
257
|
-
{
|
|
258
|
-
let mut gate = state.managed.gate.lock().unwrap();
|
|
259
|
-
if gate.generation != generation || gate.account.as_ref() != Some(&account) {
|
|
260
|
-
return Err(json!({"message":"ALwith account changed during refresh"}));
|
|
261
|
-
}
|
|
262
|
-
let provider = match result {
|
|
263
|
-
Ok(provider) => provider,
|
|
264
|
-
Err(error) => {
|
|
265
|
-
inner.error = Some("ALwith model configuration refresh failed".into());
|
|
266
|
-
emit(app, &inner.snapshot());
|
|
267
|
-
return Err(error);
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
let mut next = inner.saved.clone();
|
|
271
|
-
next.managed = Some(Cache { account, provider });
|
|
272
|
-
next.revision = next.revision.checked_add(1).ok_or_else(|| json!({"message":"Provider revision exhausted"}))?;
|
|
273
|
-
persist(&state.path, &next).map_err(|_| json!({"message":"Cannot save ALwith model configuration"}))?;
|
|
274
|
-
gate.models = model_ids(next.managed.as_ref().and_then(|cache| cache.provider.as_ref()));
|
|
275
|
-
RevokedSessions {
|
|
276
|
-
session_ids: gate
|
|
277
|
-
.routes
|
|
278
|
-
.iter()
|
|
279
|
-
.filter(|(_, route)| !gate.models.contains(&route.model))
|
|
280
|
-
.map(|(id, _)| id.clone())
|
|
281
|
-
.collect(),
|
|
282
|
-
}
|
|
283
|
-
.emit(app);
|
|
284
|
-
inner.saved = next;
|
|
285
|
-
inner.managed_active = true;
|
|
286
|
-
inner.error = None;
|
|
287
|
-
}
|
|
288
|
-
let snapshot = inner.snapshot();
|
|
289
|
-
emit(app, &snapshot);
|
|
290
|
-
drop(inner);
|
|
291
|
-
schedule_apply(app);
|
|
292
|
-
Ok(snapshot)
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
async fn fetch_catalog(base: &str, token: &str) -> Result<Option<CustomProvider>, Value> {
|
|
296
|
-
let client = reqwest::Client::builder()
|
|
297
|
-
.timeout(Duration::from_secs(20))
|
|
298
|
-
.redirect(reqwest::redirect::Policy::none())
|
|
299
|
-
.build()
|
|
300
|
-
.map_err(|_| json!({"message":"Cannot create ALwith configuration client"}))?;
|
|
301
|
-
let response = client
|
|
302
|
-
.get(format!("{base}/api/v1/providers"))
|
|
303
|
-
.bearer_auth(token)
|
|
304
|
-
.send()
|
|
305
|
-
.await
|
|
306
|
-
.map_err(|_| json!({"message":"ALwith configuration request failed"}))?;
|
|
307
|
-
if !response.status().is_success() {
|
|
308
|
-
return Err(json!({"status":response.status().as_u16(),"message":"ALwith configuration request rejected"}));
|
|
309
|
-
}
|
|
310
|
-
let body = response.text().await.map_err(|_| json!({"message":"Cannot read ALwith configuration response"}))?;
|
|
311
|
-
parse_catalog(&body).map_err(|message| json!({"message":message}))
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
#[tauri::command]
|
|
315
|
-
pub(crate) async fn providers_clear_managed(window: tauri::WebviewWindow) -> Result<(), String> {
|
|
316
|
-
main_window(&window)?;
|
|
317
|
-
clear(window.app_handle()).await
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
pub(super) async fn clear(app: &AppHandle) -> Result<(), String> {
|
|
321
|
-
let state = app.state::<Providers>();
|
|
322
|
-
// Invalidate before waiting for any network operation or admission lock.
|
|
323
|
-
{
|
|
324
|
-
let mut gate = state.managed.gate.lock().unwrap();
|
|
325
|
-
gate.invalidate()?;
|
|
326
|
-
RevokedSessions { session_ids: gate.routes.keys().cloned().collect() }.emit(app);
|
|
327
|
-
}
|
|
328
|
-
let _transition = tokio::time::timeout(Duration::from_secs(10), state.managed.transition.lock())
|
|
329
|
-
.await
|
|
330
|
-
.map_err(|_| "ALwith account transition did not settle; cleanup is incomplete")?;
|
|
331
|
-
state.managed.gate.lock().unwrap().invalidate()?;
|
|
332
|
-
let saved_error = {
|
|
333
|
-
let mut inner = tokio::time::timeout(Duration::from_secs(10), state.inner.lock())
|
|
334
|
-
.await
|
|
335
|
-
.map_err(|_| "ALwith provider configuration did not settle; cleanup is incomplete")?;
|
|
336
|
-
inner.managed_active = false;
|
|
337
|
-
inner.applied_revision = None;
|
|
338
|
-
inner.saved.managed = None;
|
|
339
|
-
inner.saved.revision = inner.saved.revision.checked_add(1).ok_or("Provider revision exhausted")?;
|
|
340
|
-
let error = persist(&state.path, &inner.saved).err();
|
|
341
|
-
emit(app, &inner.snapshot());
|
|
342
|
-
error
|
|
343
|
-
};
|
|
344
|
-
let cleanup = cleanup(app).await;
|
|
345
|
-
if let Some(error) = saved_error {
|
|
346
|
-
return Err(error);
|
|
347
|
-
}
|
|
348
|
-
cleanup
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
pub(super) async fn cleanup(app: &AppHandle) -> Result<(), String> {
|
|
352
|
-
tokio::time::timeout(Duration::from_secs(30), cleanup_inner(app))
|
|
353
|
-
.await
|
|
354
|
-
.map_err(|_| "ALwith provider cleanup timed out; execution remains blocked")?
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
async fn cleanup_inner(app: &AppHandle) -> Result<(), String> {
|
|
358
|
-
let state = app.state::<Providers>();
|
|
359
|
-
{
|
|
360
|
-
let gate = state.managed.gate.lock().unwrap();
|
|
361
|
-
if gate.account.is_some() || gate.targets.is_empty() {
|
|
362
|
-
return Ok(());
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
let runtime = &state.runtime;
|
|
366
|
-
let client = runtime.current(app).map_err(|_| "Runtime unavailable; ALwith cleanup is unconfirmed")?;
|
|
367
|
-
// Drain accepted lifecycle/configuration operations before taking the cancellation snapshot.
|
|
368
|
-
// New requests see the invalid gate. Never hold admission while waiting for turn termination.
|
|
369
|
-
let admission = tokio::time::timeout(Duration::from_secs(10), runtime.admission(app).lock())
|
|
370
|
-
.await
|
|
371
|
-
.map_err(|_| "ALwith request admission did not settle")?;
|
|
372
|
-
let (targets, routes, realtime) = {
|
|
373
|
-
let gate = state.managed.gate.lock().unwrap();
|
|
374
|
-
(gate.targets.clone(), gate.routes.clone(), gate.realtime.clone())
|
|
375
|
-
};
|
|
376
|
-
drop(admission);
|
|
377
|
-
let result = tokio::time::timeout(Duration::from_secs(10), async {
|
|
378
|
-
for (session, agent) in &realtime {
|
|
379
|
-
client
|
|
380
|
-
.acp_request(agent, "_codex/realtime/stop", json!({"sessionId":session}), None, None)
|
|
381
|
-
.await
|
|
382
|
-
.map_err(|error| format!("ALwith Runtime cleanup failed ({})", error.code))?;
|
|
383
|
-
state.managed.gate.lock().unwrap().realtime.remove(session);
|
|
384
|
-
}
|
|
385
|
-
for session in
|
|
386
|
-
client.run_states().await.map_err(|error| format!("ALwith Runtime cleanup failed ({})", error.code))?
|
|
387
|
-
{
|
|
388
|
-
if matches!(session.state, alwith_api::RunState::Running | alwith_api::RunState::RequiresAction)
|
|
389
|
-
&& let Some(route) = routes.get(&session.session_id)
|
|
390
|
-
{
|
|
391
|
-
client
|
|
392
|
-
.cancel(&route.agent, &session.session_id, None)
|
|
393
|
-
.await
|
|
394
|
-
.map_err(|error| format!("ALwith Runtime cleanup failed ({})", error.code))?;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
loop {
|
|
398
|
-
let active =
|
|
399
|
-
client.run_states().await.map_err(|error| format!("ALwith Runtime cleanup failed ({})", error.code))?;
|
|
400
|
-
if !active.iter().any(|session| {
|
|
401
|
-
routes.contains_key(&session.session_id)
|
|
402
|
-
&& matches!(session.state, alwith_api::RunState::Running | alwith_api::RunState::RequiresAction)
|
|
403
|
-
}) {
|
|
404
|
-
break;
|
|
405
|
-
}
|
|
406
|
-
tokio::time::sleep(Duration::from_millis(50)).await;
|
|
407
|
-
}
|
|
408
|
-
Ok::<(), String>(())
|
|
409
|
-
})
|
|
410
|
-
.await
|
|
411
|
-
.map_err(|_| "ALwith turn cancellation timed out".to_string())
|
|
412
|
-
.and_then(|result| result);
|
|
413
|
-
if let Err(error) = result {
|
|
414
|
-
// Dedicated auxiliary agents can be stopped without interrupting unrelated main conversations.
|
|
415
|
-
for target in targets.iter().filter(|target| target.as_str() != MAIN_AGENT) {
|
|
416
|
-
if stop_dedicated(&client, target).await
|
|
417
|
-
&& runtime.current(app).is_ok_and(|current| Arc::ptr_eq(¤t, &client))
|
|
418
|
-
{
|
|
419
|
-
state.managed.gate.lock().unwrap().targets.remove(target);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
return Err(error);
|
|
423
|
-
}
|
|
424
|
-
for target in targets {
|
|
425
|
-
let live = client.agents().await.map_err(|error| format!("ALwith Runtime cleanup failed ({})", error.code))?;
|
|
426
|
-
if live.iter().any(|agent| agent["agentId"] == target) {
|
|
427
|
-
let removed = tokio::time::timeout(
|
|
428
|
-
Duration::from_secs(10),
|
|
429
|
-
client.acp_request(
|
|
430
|
-
&target,
|
|
431
|
-
"providers/disable",
|
|
432
|
-
json!({"providerId":"openai","_meta":{"codex":{"id":ID}}}),
|
|
433
|
-
None,
|
|
434
|
-
None,
|
|
435
|
-
),
|
|
436
|
-
)
|
|
437
|
-
.await;
|
|
438
|
-
if !matches!(removed, Ok(Ok(_))) && !stop_dedicated(&client, &target).await {
|
|
439
|
-
return Err("ALwith provider cleanup is incomplete; wait for active sessions and retry".into());
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
// A stale Runtime cannot acknowledge cleanup for its replacement.
|
|
443
|
-
if !runtime.current(app).is_ok_and(|current| Arc::ptr_eq(¤t, &client)) {
|
|
444
|
-
return Err("Runtime changed during ALwith cleanup".into());
|
|
445
|
-
}
|
|
446
|
-
state.managed.gate.lock().unwrap().targets.remove(&target);
|
|
447
|
-
if target == MAIN_AGENT {
|
|
448
|
-
let mut inner = state.inner.lock().await;
|
|
449
|
-
inner.applied.remove(ID);
|
|
450
|
-
inner.applied_revision = None;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
Ok(())
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
async fn stop_dedicated(client: &RuntimeClient, target: &str) -> bool {
|
|
457
|
-
if target == MAIN_AGENT {
|
|
458
|
-
return false;
|
|
459
|
-
}
|
|
460
|
-
matches!(
|
|
461
|
-
tokio::time::timeout(Duration::from_secs(5), async {
|
|
462
|
-
client.stop(target, None).await?;
|
|
463
|
-
let live = client.agents().await?;
|
|
464
|
-
Ok::<bool, ResponseError>(!live.iter().any(|agent| agent["agentId"] == target))
|
|
465
|
-
})
|
|
466
|
-
.await,
|
|
467
|
-
Ok(Ok(true))
|
|
468
|
-
)
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
pub(super) fn selected_model(value: &Value) -> Option<&str> {
|
|
472
|
-
value
|
|
473
|
-
.get("configOptions")?
|
|
474
|
-
.as_array()?
|
|
475
|
-
.iter()
|
|
476
|
-
.find(|option| option["category"] == "model" || option["configId"] == "model")?
|
|
477
|
-
.get("currentValue")?
|
|
478
|
-
.as_str()
|
|
479
|
-
}
|
|
480
|
-
pub fn observe(app: &AppHandle, agent: &str, session: &str, value: &Value, admitted_generation: Option<u64>) {
|
|
481
|
-
let Some(model) = selected_model(value) else { return };
|
|
482
|
-
let state = app.state::<Providers>();
|
|
483
|
-
let mut gate = state.managed.gate.lock().unwrap();
|
|
484
|
-
if model.starts_with(MODEL_PREFIX) {
|
|
485
|
-
let generation = admitted_generation.unwrap_or(gate.generation);
|
|
486
|
-
if admitted_generation.is_some() || !gate.routes.contains_key(session) {
|
|
487
|
-
gate.routes.insert(session.into(), Route { agent: agent.into(), generation, model: model.into() });
|
|
488
|
-
if gate.account.is_none() || generation != gate.generation || !gate.models.contains(model) {
|
|
489
|
-
RevokedSessions { session_ids: vec![session.into()] }.emit(app);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
} else if admitted_generation == Some(gate.generation) {
|
|
493
|
-
gate.routes.remove(session);
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
pub fn observe_event(app: &AppHandle, event: &alwith_api::RuntimeEvent) {
|
|
498
|
-
match event {
|
|
499
|
-
alwith_api::RuntimeEvent::AcpNotification { method, params, .. }
|
|
500
|
-
if method == "_codex/realtime/update" && params["event"] == "closed" =>
|
|
501
|
-
{
|
|
502
|
-
if let Some(session) = params["sessionId"].as_str() {
|
|
503
|
-
app.state::<Providers>().managed.gate.lock().unwrap().realtime.remove(session);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
alwith_api::RuntimeEvent::AcpNotification { agent_id, method, params, .. } if method == "session/update" => {
|
|
507
|
-
if let Some(session) = params["sessionId"].as_str() {
|
|
508
|
-
observe(app, agent_id, session, ¶ms["update"], None);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
alwith_api::RuntimeEvent::Inbound { agent_id, lines } => {
|
|
512
|
-
for line in lines {
|
|
513
|
-
if let Ok(frame) = serde_json::from_str::<Value>(line)
|
|
514
|
-
&& frame["method"] == "session/update"
|
|
515
|
-
&& let Some(session) = frame["params"]["sessionId"].as_str()
|
|
516
|
-
{
|
|
517
|
-
observe(app, agent_id, session, &frame["params"]["update"], None);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
alwith_api::RuntimeEvent::Exit { agent_id } => {
|
|
522
|
-
let state = app.state::<Providers>();
|
|
523
|
-
let mut gate = state.managed.gate.lock().unwrap();
|
|
524
|
-
gate.targets.remove(agent_id);
|
|
525
|
-
gate.realtime.retain(|_, agent| agent != agent_id);
|
|
526
|
-
// Keep revoked selections across adapter restarts until explicit reselection.
|
|
527
|
-
}
|
|
528
|
-
_ => {}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/// All webview request shapes pass here, including drafts and raw ACP configuration changes.
|
|
533
|
-
pub fn check(app: &AppHandle, method: &str, params: Option<&Value>) -> Result<u64, String> {
|
|
534
|
-
let state = app.state::<Providers>();
|
|
535
|
-
let gate = state.managed.gate.lock().unwrap();
|
|
536
|
-
if method == "send" {
|
|
537
|
-
return Err("Use structured Runtime requests for session operations".into());
|
|
538
|
-
}
|
|
539
|
-
let Some(params) = params else { return Ok(gate.generation) };
|
|
540
|
-
let (method, body) = if matches!(method, "acpRequest" | "acpNotify") {
|
|
541
|
-
(params["method"].as_str().unwrap_or(""), ¶ms["params"])
|
|
542
|
-
} else {
|
|
543
|
-
(method, params)
|
|
544
|
-
};
|
|
545
|
-
check_request(&gate, method, body)?;
|
|
546
|
-
Ok(gate.generation)
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
pub fn requires_admission(method: &str, params: Option<&Value>) -> bool {
|
|
550
|
-
let Some(params) = params else { return false };
|
|
551
|
-
matches!(method, "acpRequest" | "acpNotify")
|
|
552
|
-
&& matches!(
|
|
553
|
-
params["method"].as_str(),
|
|
554
|
-
Some(
|
|
555
|
-
"_session/steering"
|
|
556
|
-
| "_session/goal"
|
|
557
|
-
| "_codex/session/goal_control"
|
|
558
|
-
| "_codex/session_retry"
|
|
559
|
-
| "_codex/session_prediction_request"
|
|
560
|
-
| "_codex/realtime/start"
|
|
561
|
-
| "_codex/realtime/appendAudio"
|
|
562
|
-
| "_codex/realtime/appendText"
|
|
563
|
-
| "_codex/realtime/appendSpeech"
|
|
564
|
-
)
|
|
565
|
-
)
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
pub fn observe_realtime(app: &AppHandle, method: &str, params: &Value) {
|
|
569
|
-
if method != "acpRequest" {
|
|
570
|
-
return;
|
|
571
|
-
}
|
|
572
|
-
let Some(session) = params["params"]["sessionId"].as_str() else {
|
|
573
|
-
return;
|
|
574
|
-
};
|
|
575
|
-
let state = app.state::<Providers>();
|
|
576
|
-
let mut gate = state.managed.gate.lock().unwrap();
|
|
577
|
-
match params["method"].as_str() {
|
|
578
|
-
Some("_codex/realtime/start") => {
|
|
579
|
-
if let Some(route) = gate.routes.get(session) {
|
|
580
|
-
let agent = route.agent.clone();
|
|
581
|
-
gate.realtime.insert(session.into(), agent);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
Some("_codex/realtime/stop") => {
|
|
585
|
-
gate.realtime.remove(session);
|
|
586
|
-
}
|
|
587
|
-
_ => {}
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
pub fn confirms_model(method: &str, params: &Value) -> bool {
|
|
592
|
-
let (method, body) = if matches!(method, "acpRequest" | "acpNotify") {
|
|
593
|
-
(params["method"].as_str().unwrap_or(""), ¶ms["params"])
|
|
594
|
-
} else {
|
|
595
|
-
(method, params)
|
|
596
|
-
};
|
|
597
|
-
matches!(
|
|
598
|
-
method,
|
|
599
|
-
"sessionNew"
|
|
600
|
-
| "session/new"
|
|
601
|
-
| "sessionResume"
|
|
602
|
-
| "session/resume"
|
|
603
|
-
| "sessionLoad"
|
|
604
|
-
| "session/load"
|
|
605
|
-
| "sessionFork"
|
|
606
|
-
| "session/fork"
|
|
607
|
-
) || (method == "session/set_config_option" && body["configId"] == "model")
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
fn check_request(gate: &Gate, method: &str, body: &Value) -> Result<(), String> {
|
|
611
|
-
let selection = method == "session/set_config_option" && body["configId"] == "model";
|
|
612
|
-
let lifecycle = matches!(
|
|
613
|
-
method,
|
|
614
|
-
"sessionNew"
|
|
615
|
-
| "session/new"
|
|
616
|
-
| "sessionResume"
|
|
617
|
-
| "session/resume"
|
|
618
|
-
| "sessionLoad"
|
|
619
|
-
| "session/load"
|
|
620
|
-
| "sessionFork"
|
|
621
|
-
| "session/fork"
|
|
622
|
-
);
|
|
623
|
-
let execution = matches!(
|
|
624
|
-
method,
|
|
625
|
-
"prompt"
|
|
626
|
-
| "session/prompt"
|
|
627
|
-
| "_session/steering"
|
|
628
|
-
| "_session/goal"
|
|
629
|
-
| "_codex/session/goal_control"
|
|
630
|
-
| "_codex/session_retry"
|
|
631
|
-
| "_codex/session_prediction_request"
|
|
632
|
-
| "_codex/realtime/start"
|
|
633
|
-
| "_codex/realtime/appendAudio"
|
|
634
|
-
| "_codex/realtime/appendText"
|
|
635
|
-
| "_codex/realtime/appendSpeech"
|
|
636
|
-
);
|
|
637
|
-
if !(method == "session/set_config_option" || lifecycle || execution) {
|
|
638
|
-
return Ok(());
|
|
639
|
-
}
|
|
640
|
-
let explicit_resume = matches!(method, "sessionResume" | "session/resume")
|
|
641
|
-
&& (body
|
|
642
|
-
.pointer("/_meta/alwith/accountModelSelection")
|
|
643
|
-
.or_else(|| body.pointer("/meta/alwith/accountModelSelection"))
|
|
644
|
-
== Some(&Value::Bool(true)));
|
|
645
|
-
let requested = if selection {
|
|
646
|
-
body["value"].as_str()
|
|
647
|
-
} else if lifecycle {
|
|
648
|
-
body.pointer("/_meta/alwith/model").or_else(|| body.pointer("/meta/alwith/model")).and_then(Value::as_str)
|
|
649
|
-
} else {
|
|
650
|
-
None
|
|
651
|
-
};
|
|
652
|
-
// Prompt metadata is not a model selection. Only the adapter's explicit model option
|
|
653
|
-
// can authorize an old session under a new account.
|
|
654
|
-
if explicit_resume && requested.is_none() {
|
|
655
|
-
return Err("Explicit model recovery requires a model".into());
|
|
656
|
-
}
|
|
657
|
-
gate.check_selection(requested, if selection || explicit_resume { None } else { body["sessionId"].as_str() })
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
#[cfg(test)]
|
|
661
|
-
mod tests {
|
|
662
|
-
use super::*;
|
|
663
|
-
|
|
664
|
-
#[test]
|
|
665
|
-
fn revoked_route_cannot_send_under_a_replacement_account() {
|
|
666
|
-
let mut gate = Gate {
|
|
667
|
-
account: Some(Account { api_base_url: "https://api.alwith.ai/service".into(), user_uuid: "a".into() }),
|
|
668
|
-
generation: 1,
|
|
669
|
-
..Gate::default()
|
|
670
|
-
};
|
|
671
|
-
gate.models.insert("gateway:litellm:m".into());
|
|
672
|
-
gate.routes.insert(
|
|
673
|
-
"session".into(),
|
|
674
|
-
Route { agent: "codex".into(), generation: 1, model: "gateway:litellm:m".into() },
|
|
675
|
-
);
|
|
676
|
-
assert!(gate.check_selection(None, Some("session")).is_ok());
|
|
677
|
-
gate.invalidate().unwrap();
|
|
678
|
-
assert!(gate.check_selection(Some("gateway:litellm:m"), None).is_err());
|
|
679
|
-
gate.account = Some(Account { api_base_url: "https://api.alwith.ai/service".into(), user_uuid: "b".into() });
|
|
680
|
-
gate.models.insert("gateway:litellm:m".into());
|
|
681
|
-
assert!(gate.check_selection(None, Some("session")).is_err());
|
|
682
|
-
assert!(gate.check_selection(Some("gpt-native"), Some("session")).is_err());
|
|
683
|
-
// Only an explicit model selection validates the new model without inheriting the old route.
|
|
684
|
-
assert!(gate.check_selection(Some("gpt-native"), None).is_ok());
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
#[test]
|
|
688
|
-
fn automatic_model_hints_do_not_authorize_a_replacement_account() {
|
|
689
|
-
let mut gate = Gate {
|
|
690
|
-
account: Some(Account { api_base_url: "https://api.alwith.ai/service".into(), user_uuid: "b".into() }),
|
|
691
|
-
generation: 2,
|
|
692
|
-
..Gate::default()
|
|
693
|
-
};
|
|
694
|
-
let model = "gateway:litellm:m";
|
|
695
|
-
gate.models.insert(model.into());
|
|
696
|
-
gate.routes.insert("old".into(), Route { agent: "codex".into(), generation: 1, model: model.into() });
|
|
697
|
-
assert!(gate.check_selection(Some(model), Some("old")).is_err());
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
#[test]
|
|
701
|
-
fn execution_hints_cannot_bypass_revocation_and_explicit_selection_can_recover() {
|
|
702
|
-
let mut gate = Gate::default();
|
|
703
|
-
gate.routes
|
|
704
|
-
.insert("old".into(), Route { agent: "codex".into(), generation: 0, model: "gateway:litellm:m".into() });
|
|
705
|
-
let body = json!({"sessionId":"old", "_meta":{"alwith":{"model":"gpt-native"}}});
|
|
706
|
-
for method in [
|
|
707
|
-
"prompt",
|
|
708
|
-
"session/prompt",
|
|
709
|
-
"_session/steering",
|
|
710
|
-
"_session/goal",
|
|
711
|
-
"_codex/session/goal_control",
|
|
712
|
-
"_codex/session_retry",
|
|
713
|
-
"_codex/session_prediction_request",
|
|
714
|
-
"_codex/realtime/start",
|
|
715
|
-
"_codex/realtime/appendAudio",
|
|
716
|
-
"_codex/realtime/appendText",
|
|
717
|
-
"_codex/realtime/appendSpeech",
|
|
718
|
-
"sessionResume",
|
|
719
|
-
"session/resume",
|
|
720
|
-
"sessionFork",
|
|
721
|
-
"session/fork",
|
|
722
|
-
] {
|
|
723
|
-
assert!(check_request(&gate, method, &body).is_err(), "{method}");
|
|
724
|
-
}
|
|
725
|
-
assert!(
|
|
726
|
-
check_request(
|
|
727
|
-
&gate,
|
|
728
|
-
"session/set_config_option",
|
|
729
|
-
&json!({"sessionId":"old", "configId":"model", "value":"gpt-native"})
|
|
730
|
-
)
|
|
731
|
-
.is_ok()
|
|
732
|
-
);
|
|
733
|
-
assert!(
|
|
734
|
-
check_request(
|
|
735
|
-
&gate,
|
|
736
|
-
"session/set_config_option",
|
|
737
|
-
&json!({"sessionId":"old", "configId":"model", "value":"gateway:litellm:m"})
|
|
738
|
-
)
|
|
739
|
-
.is_err()
|
|
740
|
-
);
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
#[test]
|
|
744
|
-
fn explicit_resume_authorizes_only_a_valid_model_and_never_authorizes_prompt_metadata() {
|
|
745
|
-
let mut gate = Gate::default();
|
|
746
|
-
gate.routes
|
|
747
|
-
.insert("old".into(), Route { agent: "codex".into(), generation: 0, model: "gateway:litellm:m".into() });
|
|
748
|
-
let body = json!({"sessionId":"old", "_meta":{"alwith":{"model":"gpt-native", "accountModelSelection":true}}});
|
|
749
|
-
assert!(check_request(&gate, "session/resume", &body).is_ok());
|
|
750
|
-
assert!(check_request(&gate, "session/prompt", &body).is_err());
|
|
751
|
-
assert!(
|
|
752
|
-
check_request(
|
|
753
|
-
&gate,
|
|
754
|
-
"session/resume",
|
|
755
|
-
&json!({"sessionId":"old", "_meta":{"alwith":{"accountModelSelection":true}}})
|
|
756
|
-
)
|
|
757
|
-
.is_err()
|
|
758
|
-
);
|
|
759
|
-
assert!(check_request(&gate, "session/resume", &json!({"sessionId":"old", "_meta":{"alwith":{"accountModelSelection":true,"model":"gateway:litellm:m"}}})).is_err());
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
#[test]
|
|
763
|
-
fn changing_effort_is_not_an_account_model_selection() {
|
|
764
|
-
let mut gate = Gate::default();
|
|
765
|
-
gate.routes
|
|
766
|
-
.insert("old".into(), Route { agent: "codex".into(), generation: 0, model: "gateway:litellm:m".into() });
|
|
767
|
-
let body = json!({"sessionId":"old", "configId":"reasoning_effort", "value":"high"});
|
|
768
|
-
assert!(check_request(&gate, "session/set_config_option", &body).is_err());
|
|
769
|
-
assert!(!confirms_model("acpRequest", &json!({"method":"session/set_config_option", "params":body})));
|
|
770
|
-
assert!(confirms_model(
|
|
771
|
-
"acpRequest",
|
|
772
|
-
&json!({"method":"session/set_config_option", "params":{"configId":"model"}})
|
|
773
|
-
));
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
#[test]
|
|
777
|
-
fn responses_endpoint_accepts_root_or_versioned_base_without_guessing_other_paths() {
|
|
778
|
-
assert_eq!(responses_base_url("http://localhost:8080").unwrap(), "http://localhost:8080/v1");
|
|
779
|
-
assert_eq!(responses_base_url("http://gateway.internal:8080").unwrap(), "http://gateway.internal:8080/v1");
|
|
780
|
-
for invalid in ["file:///v1", "https://key@gateway.test/v1", "https://gateway.test/v1?key=secret"] {
|
|
781
|
-
assert!(responses_base_url(invalid).is_err());
|
|
782
|
-
}
|
|
783
|
-
assert_eq!(responses_base_url("https://gateway.test/v1/").unwrap(), "https://gateway.test/v1");
|
|
784
|
-
assert_eq!(responses_base_url("https://gateway.test/proxy/v1").unwrap(), "https://gateway.test/proxy/v1");
|
|
785
|
-
assert!(responses_base_url("https://gateway.test/proxy").is_err());
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
#[test]
|
|
789
|
-
fn removing_a_model_blocks_new_requests_on_its_existing_route() {
|
|
790
|
-
let mut gate = Gate {
|
|
791
|
-
account: Some(Account { api_base_url: "https://api.alwith.ai/service".into(), user_uuid: "a".into() }),
|
|
792
|
-
..Gate::default()
|
|
793
|
-
};
|
|
794
|
-
gate.routes.insert(
|
|
795
|
-
"session".into(),
|
|
796
|
-
Route { agent: "codex".into(), generation: 0, model: "gateway:litellm:removed".into() },
|
|
797
|
-
);
|
|
798
|
-
assert!(gate.check_selection(None, Some("session")).is_err());
|
|
799
|
-
assert!(gate.check_selection(Some("gateway:litellm:removed"), None).is_err());
|
|
800
|
-
}
|
|
801
|
-
}
|