The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(vendor): remove unused motosan OAuth crate
Steven Enamakel648baa4152a7
diff --git a/.gitignore b/.gitignoreindex 4b775633a7..6595c3ad0b 100644--- a/.gitignore+++ b/.gitignore@@ -156,6 +156,3 @@ diff-coverage.mdci-out/ci-out-ex63/-# Cargo build output inside the in-tree motosan-ai-oauth crate-vendor/motosan-ai-oauth/target/-diff --git a/AGENTS.md b/AGENTS.mdindex e2ae8e2346..55c7e0db1a 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -553,7 +553,6 @@ Direct rendered submodules under `vendor/`:| `tinyskills` | Host-independent skill/workflow bundle parsing, discovery, scope resolution, resource inventory, and safe reads. OpenHuman owns trust and execution policy. || `tinyvoice` | Host-agnostic voice primitives such as audio framing, VAD, wake-word gating, routing, and STT hallucination detection. || `tinywallet` | Multi-chain wallet: `tinywallet-crypto` (address, asset, chain, `rpc::Transport`, tx codec), `tinywallet-x402` (x402 wire, payment, spending ledger, `x402_request` tool), `tinywallet-web3` (wallet engine, per-chain build/sign/broadcast flows, swap/bridge/dapp quotes, agent tools) behind host seams (`WalletSigner`, `PaymentSigner`, `WalletAccounts`, `RpcEndpoints`, `QuoteScope`, `Web3Backend`, `ProxyPolicy`), and the loadable `tinywallet-module` that derives keys and signs. OpenHuman keeps keyring, consent, credentials, config, controllers and the seam impls under `web3/`. |-| `motosan-ai-oauth` | Provider-agnostic PKCE OAuth login and token-refresh primitives. |Some rendered submodules are shared dependencies nested inside those projects,not separate OpenHuman feature implementations. Make changes to them in theirdiff --git a/docs/gitbooks/en/developing/architecture.md b/docs/gitbooks/en/developing/architecture.mdindex fd0eed91f8..caf65b4b42 100644--- a/docs/gitbooks/en/developing/architecture.md+++ b/docs/gitbooks/en/developing/architecture.md@@ -31,7 +31,7 @@ OpenHuman ships for desktop only: Windows, macOS and Linux. Web is not a support| `crates/openhuman-core/src/skills/` | Skill metadata and run orchestration (`ops_create`, `ops_discover`, `ops_install`, `ops_parse`, `catalog/`, `registry`, `runtime/`, `schemas/`, `types`, `bundled/`, `webhooks/`). Skills contribute metadata and tool descriptors that are injected into agent prompts. Tool execution flows through native Rust handlers and Node-backed helpers via `runtime::node` (Cargo feature `runtime-node`). || `gitbooks/` | This book (public product and contributor documentation). || `docs/` | Internal maintainer documentation (test-coverage matrix, release smoke checklist, library benchmarking notes). |-| `vendor/` | Recursive git submodules for the `tiny*` crate family (`tinyagents`, `tinyflows`, `tinychannels`, `tinyjuice`, `tinymemory`, `tinymcp`, `tinybus`, `tinybox`, `tinycomputer`, `tinyruntime`, `tinydocs`, `tinysearch`, `tinyskills`, `tinyvoice`, `tinywallet`, `tinyhosts`, `tinyconnectors`, `tinyhumans-sdk`) plus `motosan-ai-oauth`. |+| `vendor/` | Recursive git submodules for the `tiny*` crate family (`tinyagents`, `tinyflows`, `tinychannels`, `tinyjuice`, `tinymemory`, `tinymcp`, `tinybus`, `tinybox`, `tinycomputer`, `tinyruntime`, `tinydocs`, `tinysearch`, `tinyskills`, `tinyvoice`, `tinywallet`, `tinyhosts`, `tinyconnectors`, `tinyhumans-sdk`). |The desktop app's webview loads the UI from `app/`. RPC, agents and skills run in the `openhuman_core` core, hosted in-process as a tokio task by the Tauri shell (`crates/openhuman-app/src/core_process.rs`, `openhuman_rpc::host::desktop`) and reachable over loopback HTTP. The renderer's `coreRpcClient` `fetch()`es `http://127.0.0.1:<port>/rpc` directly. The `relay_http_rpc` Tauri command (backed by `openhuman_rpc::post_json_rpc`) is only the fallback for non-loopback plain-`http://` runtimes that the webview would block as mixed content. The standalone `openhuman-core serve` binary is the CLI/debug path.diff --git a/docs/gitbooks/en/developing/building-rust-core.md b/docs/gitbooks/en/developing/building-rust-core.mdindex fe6a47d99a..fd78d9d8a0 100644--- a/docs/gitbooks/en/developing/building-rust-core.md+++ b/docs/gitbooks/en/developing/building-rust-core.md@@ -60,7 +60,7 @@ build too, not just the desktop shell. `crates/openhuman-core/Cargo.toml`path-depends on `vendor/tinyagents`, `vendor/tinymemory`, `vendor/tinymcp`,and the rest of the `tiny*` family, and the root `Cargo.toml` `[patch]`tables point into `vendor/tinymemory`, `vendor/tinyflows`,-`vendor/tinychannels`, `vendor/motosan-ai-oauth`, and the `tinyinference`+`vendor/tinychannels`, and the `tinyinference`copy nested under `vendor/tinyagents/`.```bashdiff --git a/gitbooks/developing/architecture.md b/gitbooks/developing/architecture.mdindex d07e9f67a2..b5c3c8cc9a 100644--- a/gitbooks/developing/architecture.md+++ b/gitbooks/developing/architecture.md@@ -31,7 +31,7 @@ OpenHuman ships for desktop only: Windows, macOS and Linux. Web is not a support| `crates/openhuman-core/src/skills/` | Skill metadata and run orchestration (`ops_create`, `ops_discover`, `ops_install`, `ops_parse`, `catalog/`, `registry`, `runtime/`, `schemas/`, `types`, `bundled/`, `webhooks/`). Skills contribute metadata and tool descriptors that are injected into agent prompts. Tool execution flows through native Rust handlers and Node-backed helpers via `runtime::node` (Cargo feature `runtime-node`). || `gitbooks/` | This book (public product and contributor documentation). || `docs/` | Internal maintainer documentation (test-coverage matrix, release smoke checklist, library benchmarking notes). |-| `vendor/` | Recursive git submodules for the `tiny*` crate family (`tinyagents`, `tinyflows`, `tinychannels`, `tinyjuice`, `tinymemory`, `tinymcp`, `tinybus`, `tinybox`, `tinycomputer`, `tinyruntime`, `tinydocs`, `tinysearch`, `tinyskills`, `tinyvoice`, `tinywallet`, `tinyhosts`, `tinyconnectors`, `tinyhumans-sdk`) plus `motosan-ai-oauth`. |+| `vendor/` | Recursive git submodules for the `tiny*` crate family (`tinyagents`, `tinyflows`, `tinychannels`, `tinyjuice`, `tinymemory`, `tinymcp`, `tinybus`, `tinybox`, `tinycomputer`, `tinyruntime`, `tinydocs`, `tinysearch`, `tinyskills`, `tinyvoice`, `tinywallet`, `tinyhosts`, `tinyconnectors`, `tinyhumans-sdk`). |The desktop app's webview loads the UI from `app/`. RPC, agents and skills run in the `openhuman_core` core, hosted in-process as a tokio task by the Tauri shell (`crates/openhuman-app/src/core_process.rs`, `openhuman_rpc::host::desktop`) and reachable over loopback HTTP. The renderer's `coreRpcClient` `fetch()`es `http://127.0.0.1:<port>/rpc` directly. The `relay_http_rpc` Tauri command (backed by `openhuman_rpc::post_json_rpc`) is only the fallback for non-loopback plain-`http://` runtimes that the webview would block as mixed content. The standalone `openhuman-core serve` binary is the CLI/debug path.diff --git a/gitbooks/developing/building-rust-core.md b/gitbooks/developing/building-rust-core.mdindex fe6a47d99a..fd78d9d8a0 100644--- a/gitbooks/developing/building-rust-core.md+++ b/gitbooks/developing/building-rust-core.md@@ -60,7 +60,7 @@ build too, not just the desktop shell. `crates/openhuman-core/Cargo.toml`path-depends on `vendor/tinyagents`, `vendor/tinymemory`, `vendor/tinymcp`,and the rest of the `tiny*` family, and the root `Cargo.toml` `[patch]`tables point into `vendor/tinymemory`, `vendor/tinyflows`,-`vendor/tinychannels`, `vendor/motosan-ai-oauth`, and the `tinyinference`+`vendor/tinychannels`, and the `tinyinference`copy nested under `vendor/tinyagents/`.```bashdiff --git a/scripts/__tests__/check-linux-tls-dependencies.test.mjs b/scripts/__tests__/check-linux-tls-dependencies.test.mjsindex a5ca86499c..66afa8ae11 100644--- a/scripts/__tests__/check-linux-tls-dependencies.test.mjs+++ b/scripts/__tests__/check-linux-tls-dependencies.test.mjs@@ -299,27 +299,6 @@ for (const interpreter of interpreters) {},);- test(- `[${interpreter} ${version}] a motosan-owned Tauri TLS package fails the policy`,- SKIP,- () => {- const tree = makeTree({- tauri: "native-tls v0.2.14",- owners: {- "native-tls":- "native-tls v0.2.14\nmotosan-ai-oauth v0.1.0\nopenhuman-app v0.1.0",- },- });- const result = run(interpreter, tree);- assert.equal(result.status, 1);- assert.match(- result.stderr,- /motosan-ai-oauth owns native-tls in tauri/,- );- assert.match(tree.calls(), /--invert native-tls/);- },- );-test(`[${interpreter} ${version}] an early TLS match in a large tree still checks owners`,SKIP,diff --git a/scripts/check-linux-tls-dependencies.sh b/scripts/check-linux-tls-dependencies.shindex 63c1b5820f..a32ae19022 100755--- a/scripts/check-linux-tls-dependencies.sh+++ b/scripts/check-linux-tls-dependencies.sh@@ -77,12 +77,6 @@ check_world() {"$package" "$label" "$owners" >&2exit 1fi- if [[ "$label" == tauri ]] &&- grep -Eq '^motosan-ai-oauth v' <<< "$owners"; then- printf 'error: motosan-ai-oauth owns %s in %s\n%s\n' \- "$package" "$label" "$owners" >&2- exit 1- fidone}diff --git a/vendor/motosan-ai-oauth/CLAUDE.md b/vendor/motosan-ai-oauth/CLAUDE.mddeleted file mode 100644index 3ccd9f5951..0000000000--- a/vendor/motosan-ai-oauth/CLAUDE.md+++ /dev/null@@ -1,25 +0,0 @@-# CLAUDE.md--Guidance for Claude Code when working in this repository.--## Tests live in `*_tests.rs` files--- Unit tests are never inline. Do not write a `#[cfg(test)] mod tests { ... }`- block in a source file. Put the tests in a sibling `<module>_tests.rs`- (`mod_tests.rs` beside a `mod.rs`, `lib_tests.rs` beside `lib.rs`) and declare- it at the bottom of the module:-- ```rust- #[cfg(test)]- #[path = "foo_tests.rs"]- mod tests;- ```--- The test file starts with `use super::*;` and carries no `#[cfg(test)]` of its- own. It is still a child module, so it reaches private items exactly as an- inline module did.-- Name test files `<module>_tests.rs`; a second group for the same module is- `<module>_<topic>_tests.rs`. Never `test.rs`, `tests.rs` or `<module>_test.rs`.-- Integration tests stay in the crate's `tests/` directory.-- OpenHuman's `scripts/externalize-inline-tests.mjs <repo-root> --write` moves- inline test modules out mechanically; without `--write` it only reports.diff --git a/vendor/motosan-ai-oauth/Cargo.lock b/vendor/motosan-ai-oauth/Cargo.lockdeleted file mode 100644index 025c89e612..0000000000--- a/vendor/motosan-ai-oauth/Cargo.lock+++ /dev/null@@ -1,1652 +0,0 @@-# This file is automatically @generated by Cargo.-# It is not intended for manual editing.-version = 3--[[package]]-name = "aho-corasick"-version = "1.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"-dependencies = [- "memchr",-]--[[package]]-name = "assert-json-diff"-version = "2.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12"-dependencies = [- "serde",- "serde_json",-]--[[package]]-name = "atomic-waker"-version = "1.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"--[[package]]-name = "base64"-version = "0.22.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"--[[package]]-name = "base64"-version = "0.23.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"--[[package]]-name = "bitflags"-version = "2.13.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"--[[package]]-name = "block-buffer"-version = "0.10.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"-dependencies = [- "generic-array",-]--[[package]]-name = "bumpalo"-version = "3.20.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"--[[package]]-name = "bytes"-version = "1.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"--[[package]]-name = "cc"-version = "1.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f360145194ee8e21db5ee7f3fcd4fe52210864c75c985dae33218202c8bbe040"-dependencies = [- "find-msvc-tools",- "shlex",-]--[[package]]-name = "cfg-if"-version = "1.0.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"--[[package]]-name = "cfg_aliases"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"--[[package]]-name = "chacha20"-version = "0.10.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"-dependencies = [- "cfg-if",- "cpufeatures 0.3.1",- "rand_core 0.10.1",-]--[[package]]-name = "colored"-version = "3.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34"-dependencies = [- "windows-sys 0.61.2",-]--[[package]]-name = "cpufeatures"-version = "0.2.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"-dependencies = [- "libc",-]--[[package]]-name = "cpufeatures"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"-dependencies = [- "libc",-]--[[package]]-name = "crypto-common"-version = "0.1.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"-dependencies = [- "generic-array",- "typenum",-]--[[package]]-name = "digest"-version = "0.10.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"-dependencies = [- "block-buffer",- "crypto-common",-]--[[package]]-name = "displaydoc"-version = "0.2.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",-]--[[package]]-name = "equivalent"-version = "1.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"--[[package]]-name = "find-msvc-tools"-version = "0.1.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484"--[[package]]-name = "fnv"-version = "1.0.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"--[[package]]-name = "form_urlencoded"-version = "1.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"-dependencies = [- "percent-encoding",-]--[[package]]-name = "futures-channel"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"-dependencies = [- "futures-core",-]--[[package]]-name = "futures-core"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"--[[package]]-name = "futures-sink"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"--[[package]]-name = "futures-task"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"--[[package]]-name = "futures-util"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"-dependencies = [- "futures-core",- "futures-task",- "pin-project-lite",- "slab",-]--[[package]]-name = "generic-array"-version = "0.14.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"-dependencies = [- "typenum",- "version_check",-]--[[package]]-name = "getrandom"-version = "0.2.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"-dependencies = [- "cfg-if",- "js-sys",- "libc",- "wasi",- "wasm-bindgen",-]--[[package]]-name = "getrandom"-version = "0.3.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"-dependencies = [- "cfg-if",- "libc",- "r-efi 5.3.0",- "wasip2",-]--[[package]]-name = "getrandom"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"-dependencies = [- "cfg-if",- "js-sys",- "libc",- "r-efi 6.0.0",- "rand_core 0.10.1",- "wasm-bindgen",-]--[[package]]-name = "h2"-version = "0.4.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ef8e5e5a340588f4452631496976cf8636d4a7ecf600239fdc27615d2530bc16"-dependencies = [- "atomic-waker",- "bytes",- "fnv",- "futures-core",- "futures-sink",- "http",- "indexmap",- "slab",- "tokio",- "tokio-util",- "tracing",-]--[[package]]-name = "hashbrown"-version = "0.17.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"--[[package]]-name = "http"-version = "1.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"-dependencies = [- "bytes",- "itoa",-]--[[package]]-name = "http-body"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"-dependencies = [- "bytes",- "http",-]--[[package]]-name = "http-body-util"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"-dependencies = [- "bytes",- "futures-core",- "http",- "http-body",- "pin-project-lite",-]--[[package]]-name = "httparse"-version = "1.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"--[[package]]-name = "httpdate"-version = "1.0.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"--[[package]]-name = "hyper"-version = "1.11.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43"-dependencies = [- "atomic-waker",- "bytes",- "futures-channel",- "futures-core",- "h2",- "http",- "http-body",- "httparse",- "httpdate",- "itoa",- "pin-project-lite",- "smallvec",- "tokio",- "want",-]--[[package]]-name = "hyper-rustls"-version = "0.27.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53"-dependencies = [- "http",- "hyper",- "hyper-util",- "rustls",- "tokio",- "tokio-rustls",- "tower-service",- "webpki-roots",-]--[[package]]-name = "hyper-util"-version = "0.1.21"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff"-dependencies = [- "base64 0.23.1",- "bytes",- "futures-channel",- "futures-util",- "http",- "http-body",- "httparse",- "hyper",- "ipnet",- "libc",- "percent-encoding",- "pin-project-lite",- "socket2",- "tokio",- "tower-service",- "tracing",-]--[[package]]-name = "icu_collections"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"-dependencies = [- "displaydoc",- "potential_utf",- "utf8_iter",- "yoke",- "zerofrom",- "zerovec",-]--[[package]]-name = "icu_locale_core"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"-dependencies = [- "displaydoc",- "litemap",- "tinystr",- "writeable",- "zerovec",-]--[[package]]-name = "icu_normalizer"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"-dependencies = [- "icu_collections",- "icu_normalizer_data",- "icu_properties",- "icu_provider",- "smallvec",- "zerovec",-]--[[package]]-name = "icu_normalizer_data"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"--[[package]]-name = "icu_properties"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"-dependencies = [- "displaydoc",- "icu_collections",- "icu_locale_core",- "icu_properties_data",- "icu_provider",- "zerotrie",- "zerovec",-]--[[package]]-name = "icu_properties_data"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"--[[package]]-name = "icu_provider"-version = "2.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"-dependencies = [- "displaydoc",- "icu_locale_core",- "writeable",- "yoke",- "zerofrom",- "zerotrie",- "zerovec",-]--[[package]]-name = "idna"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"-dependencies = [- "idna_adapter",- "smallvec",- "utf8_iter",-]--[[package]]-name = "idna_adapter"-version = "1.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"-dependencies = [- "icu_normalizer",- "icu_properties",-]--[[package]]-name = "indexmap"-version = "2.14.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"-dependencies = [- "equivalent",- "hashbrown",-]--[[package]]-name = "ipnet"-version = "2.12.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0"--[[package]]-name = "itoa"-version = "1.0.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"--[[package]]-name = "js-sys"-version = "0.3.106"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5"-dependencies = [- "cfg-if",- "futures-util",- "wasm-bindgen",-]--[[package]]-name = "libc"-version = "0.2.189"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"--[[package]]-name = "litemap"-version = "0.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"--[[package]]-name = "lock_api"-version = "0.4.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"-dependencies = [- "scopeguard",-]--[[package]]-name = "log"-version = "0.4.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"--[[package]]-name = "lru-slab"-version = "0.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f"--[[package]]-name = "memchr"-version = "2.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"--[[package]]-name = "mio"-version = "1.2.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8"-dependencies = [- "libc",- "wasi",- "windows-sys 0.61.2",-]--[[package]]-name = "mockito"-version = "1.7.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "90820618712cab19cfc46b274c6c22546a82affcb3c3bdf0f29e3db8e1bb92c0"-dependencies = [- "assert-json-diff",- "bytes",- "colored",- "futures-core",- "http",- "http-body",- "http-body-util",- "hyper",- "hyper-util",- "log",- "pin-project-lite",- "rand 0.9.5",- "regex",- "serde_json",- "serde_urlencoded",- "similar",- "tokio",-]--[[package]]-name = "motosan-ai-oauth"-version = "0.2.1"-dependencies = [- "base64 0.22.1",- "mockito",- "percent-encoding",- "rand 0.9.5",- "reqwest",- "serde",- "sha2",- "thiserror",- "tokio",-]--[[package]]-name = "once_cell"-version = "1.21.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"--[[package]]-name = "parking_lot"-version = "0.12.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"-dependencies = [- "lock_api",- "parking_lot_core",-]--[[package]]-name = "parking_lot_core"-version = "0.9.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"-dependencies = [- "cfg-if",- "libc",- "redox_syscall",- "smallvec",- "windows-link",-]--[[package]]-name = "percent-encoding"-version = "2.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"--[[package]]-name = "pin-project-lite"-version = "0.2.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"--[[package]]-name = "potential_utf"-version = "0.1.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"-dependencies = [- "zerovec",-]--[[package]]-name = "ppv-lite86"-version = "0.2.21"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"-dependencies = [- "zerocopy",-]--[[package]]-name = "proc-macro2"-version = "1.0.107"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"-dependencies = [- "unicode-ident",-]--[[package]]-name = "quinn"-version = "0.11.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11"-dependencies = [- "bytes",- "cfg_aliases",- "pin-project-lite",- "quinn-proto",- "quinn-udp",- "rustc-hash",- "rustls",- "socket2",- "thiserror",- "tokio",- "tracing",- "web-time",-]--[[package]]-name = "quinn-proto"-version = "0.11.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe"-dependencies = [- "bytes",- "getrandom 0.4.3",- "lru-slab",- "rand 0.10.3",- "rand_pcg",- "ring",- "rustc-hash",- "rustls",- "rustls-pki-types",- "slab",- "thiserror",- "tinyvec",- "tracing",- "web-time",-]--[[package]]-name = "quinn-udp"-version = "0.5.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016"-dependencies = [- "cfg_aliases",- "libc",- "once_cell",- "socket2",- "tracing",- "windows-sys 0.61.2",-]--[[package]]-name = "quote"-version = "1.0.47"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"-dependencies = [- "proc-macro2",-]--[[package]]-name = "r-efi"-version = "5.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"--[[package]]-name = "r-efi"-version = "6.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"--[[package]]-name = "rand"-version = "0.9.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"-dependencies = [- "rand_chacha",- "rand_core 0.9.5",-]--[[package]]-name = "rand"-version = "0.10.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"-dependencies = [- "chacha20",- "getrandom 0.4.3",- "rand_core 0.10.1",-]--[[package]]-name = "rand_chacha"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"-dependencies = [- "ppv-lite86",- "rand_core 0.9.5",-]--[[package]]-name = "rand_core"-version = "0.9.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"-dependencies = [- "getrandom 0.3.4",-]--[[package]]-name = "rand_core"-version = "0.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"--[[package]]-name = "rand_pcg"-version = "0.10.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"-dependencies = [- "rand_core 0.10.1",-]--[[package]]-name = "redox_syscall"-version = "0.5.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"-dependencies = [- "bitflags",-]--[[package]]-name = "regex"-version = "1.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"-dependencies = [- "aho-corasick",- "memchr",- "regex-automata",- "regex-syntax",-]--[[package]]-name = "regex-automata"-version = "0.4.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"-dependencies = [- "aho-corasick",- "memchr",- "regex-syntax",-]--[[package]]-name = "regex-syntax"-version = "0.8.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"--[[package]]-name = "reqwest"-version = "0.12.28"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"-dependencies = [- "base64 0.22.1",- "bytes",- "futures-core",- "http",- "http-body",- "http-body-util",- "hyper",- "hyper-rustls",- "hyper-util",- "js-sys",- "log",- "percent-encoding",- "pin-project-lite",- "quinn",- "rustls",- "rustls-pki-types",- "serde",- "serde_json",- "serde_urlencoded",- "sync_wrapper",- "tokio",- "tokio-rustls",- "tower",- "tower-http",- "tower-service",- "url",- "wasm-bindgen",- "wasm-bindgen-futures",- "web-sys",- "webpki-roots",-]--[[package]]-name = "ring"-version = "0.17.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"-dependencies = [- "cc",- "cfg-if",- "getrandom 0.2.17",- "libc",- "untrusted",- "windows-sys 0.52.0",-]--[[package]]-name = "rustc-hash"-version = "2.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"--[[package]]-name = "rustls"-version = "0.23.45"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"-dependencies = [- "once_cell",- "ring",- "rustls-pki-types",- "rustls-webpki",- "subtle",- "zeroize",-]--[[package]]-name = "rustls-pki-types"-version = "1.15.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"-dependencies = [- "web-time",- "zeroize",-]--[[package]]-name = "rustls-webpki"-version = "0.103.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"-dependencies = [- "ring",- "rustls-pki-types",- "untrusted",-]--[[package]]-name = "rustversion"-version = "1.0.23"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"--[[package]]-name = "ryu"-version = "1.0.23"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"--[[package]]-name = "scopeguard"-version = "1.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"--[[package]]-name = "serde"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"-dependencies = [- "serde_core",- "serde_derive",-]--[[package]]-name = "serde_core"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"-dependencies = [- "serde_derive",-]--[[package]]-name = "serde_derive"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",-]--[[package]]-name = "serde_json"-version = "1.0.151"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"-dependencies = [- "itoa",- "memchr",- "serde",- "serde_core",- "zmij",-]--[[package]]-name = "serde_urlencoded"-version = "0.7.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"-dependencies = [- "form_urlencoded",- "itoa",- "ryu",- "serde",-]--[[package]]-name = "sha2"-version = "0.10.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"-dependencies = [- "cfg-if",- "cpufeatures 0.2.17",- "digest",-]--[[package]]-name = "shlex"-version = "2.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"--[[package]]-name = "similar"-version = "2.7.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"--[[package]]-name = "slab"-version = "0.4.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"--[[package]]-name = "smallvec"-version = "1.16.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e"--[[package]]-name = "socket2"-version = "0.6.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"-dependencies = [- "libc",- "windows-sys 0.61.2",-]--[[package]]-name = "stable_deref_trait"-version = "1.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"--[[package]]-name = "subtle"-version = "2.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"--[[package]]-name = "syn"-version = "2.0.119"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "syn"-version = "3.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "sync_wrapper"-version = "1.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"-dependencies = [- "futures-core",-]--[[package]]-name = "synstructure"-version = "0.14.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",-]--[[package]]-name = "thiserror"-version = "2.0.21"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"-dependencies = [- "thiserror-impl",-]--[[package]]-name = "thiserror-impl"-version = "2.0.21"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",-]--[[package]]-name = "tinystr"-version = "0.8.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"-dependencies = [- "displaydoc",- "zerovec",-]--[[package]]-name = "tinyvec"-version = "1.13.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"--[[package]]-name = "tokio"-version = "1.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"-dependencies = [- "bytes",- "libc",- "mio",- "parking_lot",- "pin-project-lite",- "socket2",- "tokio-macros",- "windows-sys 0.61.2",-]--[[package]]-name = "tokio-macros"-version = "2.7.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",-]--[[package]]-name = "tokio-rustls"-version = "0.26.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db"-dependencies = [- "rustls",- "tokio",-]--[[package]]-name = "tokio-util"-version = "0.7.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"-dependencies = [- "bytes",- "futures-core",- "futures-sink",- "libc",- "pin-project-lite",- "tokio",-]--[[package]]-name = "tower"-version = "0.5.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"-dependencies = [- "futures-core",- "futures-util",- "pin-project-lite",- "sync_wrapper",- "tokio",- "tower-layer",- "tower-service",-]--[[package]]-name = "tower-http"-version = "0.6.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"-dependencies = [- "bitflags",- "bytes",- "futures-util",- "http",- "http-body",- "pin-project-lite",- "tower",- "tower-layer",- "tower-service",- "url",-]--[[package]]-name = "tower-layer"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"--[[package]]-name = "tower-service"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"--[[package]]-name = "tracing"-version = "0.1.44"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"-dependencies = [- "pin-project-lite",- "tracing-core",-]--[[package]]-name = "tracing-core"-version = "0.1.36"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"-dependencies = [- "once_cell",-]--[[package]]-name = "try-lock"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"--[[package]]-name = "typenum"-version = "1.20.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"--[[package]]-name = "unicode-ident"-version = "1.0.26"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"--[[package]]-name = "untrusted"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"--[[package]]-name = "url"-version = "2.5.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"-dependencies = [- "form_urlencoded",- "idna",- "percent-encoding",- "serde",-]--[[package]]-name = "utf8_iter"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"--[[package]]-name = "version_check"-version = "0.9.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"--[[package]]-name = "want"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"-dependencies = [- "try-lock",-]--[[package]]-name = "wasi"-version = "0.11.1+wasi-snapshot-preview1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"--[[package]]-name = "wasip2"-version = "1.0.4+wasi-0.2.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"-dependencies = [- "wit-bindgen",-]--[[package]]-name = "wasm-bindgen"-version = "0.2.129"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409"-dependencies = [- "cfg-if",- "once_cell",- "rustversion",- "wasm-bindgen-macro",- "wasm-bindgen-shared",-]--[[package]]-name = "wasm-bindgen-futures"-version = "0.4.79"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e"-dependencies = [- "js-sys",- "tokio",- "wasm-bindgen",-]--[[package]]-name = "wasm-bindgen-macro"-version = "0.2.129"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535"-dependencies = [- "quote",- "wasm-bindgen-macro-support",-]--[[package]]-name = "wasm-bindgen-macro-support"-version = "0.2.129"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7"-dependencies = [- "bumpalo",- "proc-macro2",- "quote",- "syn 3.0.6",- "wasm-bindgen-shared",-]--[[package]]-name = "wasm-bindgen-shared"-version = "0.2.129"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6"-dependencies = [- "unicode-ident",-]--[[package]]-name = "web-sys"-version = "0.3.106"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4"-dependencies = [- "js-sys",- "wasm-bindgen",-]--[[package]]-name = "web-time"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"-dependencies = [- "js-sys",- "wasm-bindgen",-]--[[package]]-name = "webpki-roots"-version = "1.0.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"-dependencies = [- "rustls-pki-types",-]--[[package]]-name = "windows-link"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"--[[package]]-name = "windows-sys"-version = "0.52.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"-dependencies = [- "windows-targets",-]--[[package]]-name = "windows-sys"-version = "0.61.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"-dependencies = [- "windows-link",-]--[[package]]-name = "windows-targets"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"-dependencies = [- "windows_aarch64_gnullvm",- "windows_aarch64_msvc",- "windows_i686_gnu",- "windows_i686_gnullvm",- "windows_i686_msvc",- "windows_x86_64_gnu",- "windows_x86_64_gnullvm",- "windows_x86_64_msvc",-]--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"--[[package]]-name = "windows_aarch64_msvc"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"--[[package]]-name = "windows_i686_gnu"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"--[[package]]-name = "windows_i686_gnullvm"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"--[[package]]-name = "windows_i686_msvc"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"--[[package]]-name = "windows_x86_64_gnu"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"--[[package]]-name = "windows_x86_64_msvc"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"--[[package]]-name = "wit-bindgen"-version = "0.57.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"--[[package]]-name = "writeable"-version = "0.6.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"--[[package]]-name = "yoke"-version = "0.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"-dependencies = [- "stable_deref_trait",- "yoke-derive",- "zerofrom",-]--[[package]]-name = "yoke-derive"-version = "0.8.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",- "synstructure",-]--[[package]]-name = "zerocopy"-version = "0.8.59"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6df92bf3d9227be3d53173901ddbffac2babc27ae50f397776ffd6dc33f800cb"-dependencies = [- "zerocopy-derive",-]--[[package]]-name = "zerocopy-derive"-version = "0.8.59"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ac4f328cf2f05d084e496c3e9c3f33ed0a183656a16e1fcec4d464d8373aec82"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "zerofrom"-version = "0.1.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"-dependencies = [- "zerofrom-derive",-]--[[package]]-name = "zerofrom-derive"-version = "0.1.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",- "synstructure",-]--[[package]]-name = "zeroize"-version = "1.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"--[[package]]-name = "zerotrie"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"-dependencies = [- "displaydoc",- "yoke",- "zerofrom",-]--[[package]]-name = "zerovec"-version = "0.11.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"-dependencies = [- "yoke",- "zerofrom",- "zerovec-derive",-]--[[package]]-name = "zerovec-derive"-version = "0.11.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.6",-]--[[package]]-name = "zmij"-version = "1.0.23"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"diff --git a/vendor/motosan-ai-oauth/Cargo.toml b/vendor/motosan-ai-oauth/Cargo.tomldeleted file mode 100644index c4bbaaaa78..0000000000--- a/vendor/motosan-ai-oauth/Cargo.toml+++ /dev/null@@ -1,39 +0,0 @@-[package]-name = "motosan-ai-oauth"-version = "0.2.1"-edition = "2021"-rust-version = "1.82"-license = "MIT"-description = "Provider-agnostic PKCE OAuth login and token refresh"-repository = "https://github.com/motosan-dev/motosan-ai"-homepage = "https://github.com/motosan-dev/motosan-ai"-documentation = "https://docs.rs/motosan-ai-oauth"-keywords = ["oauth", "pkce", "authentication", "openai"]-categories = ["authentication", "api-bindings"]--[features]-default = []-codex = []--[dependencies]-thiserror = "2"-serde = { version = "1", features = ["derive"] }-base64 = "0.22"-sha2 = "0.10"-rand = "0.9"-# Keep this crate transport-neutral beyond its rustls requirement. OpenHuman-# deliberately enables reqwest/native-tls only on Windows; reqwest's defaults-# would otherwise pull OpenSSL into Linux builds as a second TLS stack.-reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }-percent-encoding = "2"-tokio = { version = "1", features = [- "net",- "io-util",- "rt-multi-thread",- "macros",- "time",-] }--[dev-dependencies]-tokio = { version = "1", features = ["macros", "rt"] }-mockito = "1"diff --git a/vendor/motosan-ai-oauth/README.openhuman.md b/vendor/motosan-ai-oauth/README.openhuman.mddeleted file mode 100644index f5c4277288..0000000000--- a/vendor/motosan-ai-oauth/README.openhuman.md+++ /dev/null@@ -1,21 +0,0 @@-# OpenHuman patch--This directory contains the source of the official `motosan-ai-oauth` 0.2.1-crate from crates.io:--- Download: <https://static.crates.io/crates/motosan-ai-oauth/motosan-ai-oauth-0.2.1.crate>-- SHA-256: `244943168db97b6874d3a88f5fff7029ab002d84c9c572e3bfe6e8cd92af0bae`--To reproduce the source verification, download that archive and verify it with-`sha256sum`. This vendored copy deliberately retains only the provider enabled-by OpenHuman (`codex`); the unused Gemini and Anthropic provider modules are-omitted. In particular, the Gemini module distributed public installed-app-OAuth credentials which OpenHuman neither compiles nor uses.--The other source delta is in `Cargo.toml`: unused provider features are removed-and the crate's `reqwest` dependency sets `default-features = false`. The-released manifest enables both reqwest's default native-TLS backend and-`rustls-tls`, which brings OpenSSL into Linux builds. OpenHuman already chooses-its TLS backend by target: rustls on Linux/macOS and native TLS on Windows.--Remove this patch after an upstream release includes the same manifest change.diff --git a/vendor/motosan-ai-oauth/src/error.rs b/vendor/motosan-ai-oauth/src/error.rsdeleted file mode 100644index 8c6888a7ba..0000000000--- a/vendor/motosan-ai-oauth/src/error.rs+++ /dev/null@@ -1,19 +0,0 @@-use thiserror::Error;--#[derive(Debug, Error)]-pub enum Error {- #[error("IO error: {0}")]- Io(#[from] std::io::Error),-- #[error("HTTP error: {0}")]- Http(#[from] reqwest::Error),-- #[error("Callback error: {0}")]- Callback(String),-- #[error("State mismatch (possible CSRF): received unexpected state value")]- StateMismatch,-- #[error("Token exchange failed: {0}")]- TokenExchange(String),-}diff --git a/vendor/motosan-ai-oauth/src/exchange.rs b/vendor/motosan-ai-oauth/src/exchange.rsdeleted file mode 100644index a1c9222bba..0000000000--- a/vendor/motosan-ai-oauth/src/exchange.rs+++ /dev/null@@ -1,113 +0,0 @@-use serde::Deserialize;--use crate::{error::Error, unix_now, OAuthConfig, StateStrategy, Token};--#[derive(Deserialize)]-struct RawTokenResponse {- access_token: String,- /// Servers may omit `refresh_token` on a refresh grant (RFC 6749 §6).- /// Callers must pass their existing refresh token as fallback.- #[serde(default)]- refresh_token: Option<String>,- #[serde(default)]- id_token: Option<String>,- expires_in: u64,-}--impl RawTokenResponse {- fn into_token(self, fallback_refresh: Option<&str>) -> Token {- Token {- access_token: self.access_token,- refresh_token: self- .refresh_token- .or_else(|| fallback_refresh.map(str::to_owned))- .unwrap_or_default(),- id_token: self.id_token,- expires_in: self.expires_in,- issued_at: unix_now(),- }- }-}--async fn post_token(- token_url: &str,- body_format: crate::TokenBodyFormat,- params: Vec<(&str, &str)>,- fallback_refresh: Option<&str>,-) -> Result<Token, Error> {- let client = reqwest::Client::new();- // No custom User-Agent override — reqwest's default is safer than a- // "Mozilla/5.0..." string (which can look like a bot to anti-abuse- // systems). Accept: application/json matches pi-ai's reference impl.- let req = client.post(token_url).header("Accept", "application/json");-- let req = match body_format {- crate::TokenBodyFormat::Form => req.form(¶ms),- crate::TokenBodyFormat::Json => {- let map: std::collections::HashMap<&str, &str> = params.iter().copied().collect();- req.json(&map)- }- };-- let resp = req.send().await?;-- if !resp.status().is_success() {- let status = resp.status();- let body = resp.text().await.unwrap_or_default();- return Err(Error::TokenExchange(format!("HTTP {status}: {body}")));- }-- Ok(resp- .json::<RawTokenResponse>()- .await?- .into_token(fallback_refresh))-}--pub async fn exchange_code(- config: &OAuthConfig,- code: &str,- state: &str,- verifier: &str,- redirect_uri: &str,-) -> Result<Token, Error> {- // Standard OAuth (RFC 6749 §4.1.3) does not require `state` on the- // token endpoint, and some servers reject extra fields. Anthropic's- // endpoint empirically validates it, so only echo `state` for the- // Anthropic-style strategy where state equals the PKCE verifier.- let mut params = vec![- ("grant_type", "authorization_code"),- ("code", code),- ("redirect_uri", redirect_uri),- ("code_verifier", verifier),- ("client_id", config.client_id),- ];- if matches!(config.state_strategy, StateStrategy::EqualsVerifier) {- params.push(("state", state));- }- if let Some(secret) = config.client_secret {- params.push(("client_secret", secret));- }- post_token(config.token_url, config.token_body, params, None).await-}--pub async fn refresh_token(config: &OAuthConfig, refresh_token: &str) -> Result<Token, Error> {- let mut params = vec![- ("grant_type", "refresh_token"),- ("refresh_token", refresh_token),- ("client_id", config.client_id),- ];- if let Some(secret) = config.client_secret {- params.push(("client_secret", secret));- }- post_token(- config.token_url,- config.token_body,- params,- Some(refresh_token),- )- .await-}--#[cfg(test)]-#[path = "exchange_tests.rs"]-mod tests;diff --git a/vendor/motosan-ai-oauth/src/exchange_tests.rs b/vendor/motosan-ai-oauth/src/exchange_tests.rsdeleted file mode 100644index 63a4117e1a..0000000000--- a/vendor/motosan-ai-oauth/src/exchange_tests.rs+++ /dev/null@@ -1,119 +0,0 @@-use super::*;-use crate::TokenBodyFormat;-use mockito::Matcher;--#[tokio::test]-async fn exchange_code_omits_state_for_random_strategy_form_body() {- let mut server = mockito::Server::new_async().await;- let token_url: &'static str = Box::leak(format!("{}/token", server.url()).into_boxed_str());-- let mock = server- .mock("POST", "/token")- .match_header(- "content-type",- Matcher::Regex("application/x-www-form-urlencoded".into()),- )- .match_body(Matcher::Exact(- "grant_type=authorization_code&code=AUTHCODE&redirect_uri=http%3A%2F%2F127.0.0.1%2Fcb&code_verifier=VERIFIER&client_id=test-client"- .into(),- ))- .with_status(200)- .with_body(r#"{"access_token":"AT","refresh_token":"RT","expires_in":3600}"#)- .create_async()- .await;-- let cfg = crate::OAuthConfig {- client_id: "test-client",- client_secret: None,- auth_url: "https://unused/",- token_url,- scopes: &[],- redirect_port: None,- callback_path: "/auth/callback",- redirect_uri_host: "127.0.0.1",- token_body: TokenBodyFormat::Form,- extra_auth_params: &[],- state_strategy: crate::StateStrategy::Random,- };- let token = exchange_code(&cfg, "AUTHCODE", "STATE", "VERIFIER", "http://127.0.0.1/cb")- .await- .expect("ok");- assert_eq!(token.access_token, "AT");- mock.assert_async().await;-}--#[tokio::test]-async fn exchange_code_omits_state_for_random_strategy_json_body() {- let mut server = mockito::Server::new_async().await;- let token_url: &'static str = Box::leak(format!("{}/token", server.url()).into_boxed_str());-- let mock = server- .mock("POST", "/token")- .match_header("content-type", Matcher::Regex("application/json".into()))- // Matcher::JsonString compares parsed JSON, so key order in the- // serialized HashMap does not matter.- .match_body(Matcher::JsonString(- r#"{"grant_type":"authorization_code","code":"AUTHCODE","redirect_uri":"http://127.0.0.1/cb","code_verifier":"VERIFIER","client_id":"test-client"}"#- .into(),- ))- .with_status(200)- .with_body(r#"{"access_token":"AT","refresh_token":"RT","expires_in":3600}"#)- .create_async()- .await;-- let cfg = crate::OAuthConfig {- client_id: "test-client",- client_secret: None,- auth_url: "https://unused/",- token_url,- scopes: &[],- redirect_port: None,- callback_path: "/auth/callback",- redirect_uri_host: "127.0.0.1",- token_body: TokenBodyFormat::Json,- extra_auth_params: &[],- state_strategy: crate::StateStrategy::Random,- };- let token = exchange_code(&cfg, "AUTHCODE", "STATE", "VERIFIER", "http://127.0.0.1/cb")- .await- .expect("ok");- assert_eq!(token.access_token, "AT");- mock.assert_async().await;-}--#[tokio::test]-async fn exchange_code_sends_state_for_equals_verifier_strategy_json_body() {- let mut server = mockito::Server::new_async().await;- let token_url: &'static str = Box::leak(format!("{}/token", server.url()).into_boxed_str());-- let mock = server- .mock("POST", "/token")- .match_header("content-type", Matcher::Regex("application/json".into()))- .match_body(Matcher::JsonString(- r#"{"grant_type":"authorization_code","code":"AUTHCODE","state":"STATE","redirect_uri":"http://127.0.0.1/cb","code_verifier":"VERIFIER","client_id":"test-client"}"#- .into(),- ))- .with_status(200)- .with_body(r#"{"access_token":"AT","refresh_token":"RT","expires_in":3600}"#)- .create_async()- .await;-- let cfg = crate::OAuthConfig {- client_id: "test-client",- client_secret: None,- auth_url: "https://unused/",- token_url,- scopes: &[],- redirect_port: None,- callback_path: "/auth/callback",- redirect_uri_host: "127.0.0.1",- token_body: TokenBodyFormat::Json,- extra_auth_params: &[],- state_strategy: crate::StateStrategy::EqualsVerifier,- };- let token = exchange_code(&cfg, "AUTHCODE", "STATE", "VERIFIER", "http://127.0.0.1/cb")- .await- .expect("ok");- assert_eq!(token.access_token, "AT");- mock.assert_async().await;-}diff --git a/vendor/motosan-ai-oauth/src/lib.rs b/vendor/motosan-ai-oauth/src/lib.rsdeleted file mode 100644index 8751f4ddee..0000000000--- a/vendor/motosan-ai-oauth/src/lib.rs+++ /dev/null@@ -1,156 +0,0 @@-mod error;-mod exchange;-mod pkce;-pub mod providers;-mod server;--pub use error::Error;--use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine as _};-use rand::RngCore as _;--const LOGIN_TIMEOUT_SECS: u64 = 120;--#[derive(Debug, Clone, Copy, PartialEq, Eq)]-pub enum TokenBodyFormat {- Form,- Json,-}--/// How to derive the OAuth `state` CSRF nonce.-///-/// Most servers treat `state` as opaque and echo it back unchanged. Anthropic's-/// `claude.ai/oauth/authorize` endpoint empirically rejects random `state`-/// values with "Invalid request format"; setting `state` equal to the PKCE-/// verifier (as the Claude Code CLI and `@earendil-works/pi-ai` both do) is-/// accepted.-#[derive(Debug, Clone, Copy, PartialEq, Eq)]-pub enum StateStrategy {- /// Generate a fresh random 16-byte base64url value. Standard OAuth.- Random,- /// Reuse the PKCE verifier as the state nonce. Required for Anthropic.- EqualsVerifier,-}--#[derive(Debug, Clone)]-pub struct OAuthConfig {- pub client_id: &'static str,- pub client_secret: Option<&'static str>,- pub auth_url: &'static str,- pub token_url: &'static str,- pub scopes: &'static [&'static str],- pub redirect_port: Option<u16>,- pub callback_path: &'static str,- pub redirect_uri_host: &'static str,- pub token_body: TokenBodyFormat,- pub extra_auth_params: &'static [(&'static str, &'static str)],- pub state_strategy: StateStrategy,-}--#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]-pub struct Token {- pub access_token: String,- pub refresh_token: String,- pub id_token: Option<String>,- pub expires_in: u64,- pub issued_at: u64,-}--impl Token {- pub fn is_expired(&self) -> bool {- unix_now() + 60 >= self.issued_at + self.expires_in- }-}--pub async fn login(config: &OAuthConfig) -> Result<Token, Error> {- let pkce = pkce::Pkce::generate();-- let state = match config.state_strategy {- StateStrategy::Random => {- let mut state_bytes = [0u8; 16];- rand::rng().fill_bytes(&mut state_bytes);- URL_SAFE_NO_PAD.encode(state_bytes)- }- StateStrategy::EqualsVerifier => pkce.verifier.clone(),- };-- let server = server::bind(config.redirect_port).await?;- let redirect_uri =- build_redirect_uri(config.redirect_uri_host, server.port, config.callback_path);-- let auth_url = build_auth_url(config, &pkce.challenge, &state, &redirect_uri);-- println!("Open this URL to log in:\n\n {auth_url}\n");- let _ = open_browser(&auth_url);-- let (code, returned_state) = tokio::time::timeout(- std::time::Duration::from_secs(LOGIN_TIMEOUT_SECS),- server::wait_for_callback(server, config.callback_path),- )- .await- .map_err(|_| {- Error::Callback(format!(- "timed out waiting for browser callback ({LOGIN_TIMEOUT_SECS}s)"- ))- })??;-- if returned_state != state {- return Err(Error::StateMismatch);- }-- exchange::exchange_code(config, &code, &state, &pkce.verifier, &redirect_uri).await-}--pub async fn refresh(config: &OAuthConfig, refresh_token: &str) -> Result<Token, Error> {- exchange::refresh_token(config, refresh_token).await-}--pub(crate) fn build_redirect_uri(host: &str, port: u16, path: &str) -> String {- format!("http://{host}:{port}{path}")-}--pub(crate) fn build_auth_url(- config: &OAuthConfig,- challenge: &str,- state: &str,- redirect_uri: &str,-) -> String {- let mut url = reqwest::Url::parse(config.auth_url).expect("auth_url must be valid");- {- let mut q = url.query_pairs_mut();- q.append_pair("client_id", config.client_id)- .append_pair("response_type", "code")- .append_pair("redirect_uri", redirect_uri)- .append_pair("scope", &config.scopes.join(" "))- .append_pair("state", state)- .append_pair("code_challenge", challenge)- .append_pair("code_challenge_method", "S256");- for (k, v) in config.extra_auth_params {- q.append_pair(k, v);- }- }- url.to_string()-}--pub(crate) fn unix_now() -> u64 {- std::time::SystemTime::now()- .duration_since(std::time::UNIX_EPOCH)- .unwrap_or_default()- .as_secs()-}--fn open_browser(url: &str) -> std::io::Result<()> {- #[cfg(target_os = "macos")]- std::process::Command::new("open").arg(url).spawn()?;- #[cfg(target_os = "linux")]- std::process::Command::new("xdg-open").arg(url).spawn()?;- #[cfg(target_os = "windows")]- std::process::Command::new("cmd")- .args(["/c", "start", "", url])- .spawn()?;- Ok(())-}--#[cfg(test)]-#[path = "lib_tests.rs"]-mod tests;diff --git a/vendor/motosan-ai-oauth/src/lib_tests.rs b/vendor/motosan-ai-oauth/src/lib_tests.rsdeleted file mode 100644index 40af61dd29..0000000000--- a/vendor/motosan-ai-oauth/src/lib_tests.rs+++ /dev/null@@ -1,118 +0,0 @@-use super::*;--fn dummy_config() -> OAuthConfig {- OAuthConfig {- client_id: "test-client",- client_secret: None,- auth_url: "https://auth.example.com/oauth/authorize",- token_url: "https://auth.example.com/oauth/token",- scopes: &["openid", "profile"],- redirect_port: None,- callback_path: "/auth/callback",- redirect_uri_host: "127.0.0.1",- token_body: TokenBodyFormat::Form,- extra_auth_params: &[],- state_strategy: StateStrategy::Random,- }-}--#[test]-fn build_auth_url_contains_required_params() {- let config = dummy_config();- let url = build_auth_url(- &config,- "challenge123",- "state456",- "http://127.0.0.1:9999/auth/callback",- );- assert!(url.contains("client_id=test-client"));- assert!(url.contains("response_type=code"));- assert!(url.contains("code_challenge=challenge123"));- assert!(url.contains("code_challenge_method=S256"));- assert!(url.contains("state=state456"));- assert!(url.contains("redirect_uri="));- assert!(url.contains("scope="));-}--#[test]-fn build_auth_url_includes_scopes_joined() {- let config = dummy_config();- let url = build_auth_url(&config, "c", "s", "http://127.0.0.1:1234/auth/callback");- assert!(url.contains("scope=openid+profile") || url.contains("scope=openid%20profile"));-}--#[test]-fn build_auth_url_parses_as_valid_url() {- let config = dummy_config();- let url = build_auth_url(&config, "c", "s", "http://127.0.0.1:1234/auth/callback");- reqwest::Url::parse(&url).expect("auth URL must be valid");-}--#[test]-fn build_auth_url_appends_extra_auth_params() {- let config = OAuthConfig {- extra_auth_params: &[("foo", "bar"), ("baz", "qux")],- ..dummy_config()- };- let url = build_auth_url(&config, "c", "s", "http://127.0.0.1:1234/auth/callback");- assert!(url.contains("foo=bar"));- assert!(url.contains("baz=qux"));-}--#[test]-fn build_auth_url_no_longer_hardcodes_access_type() {- // Empty extra_auth_params should produce no access_type query pair.- let config = OAuthConfig {- extra_auth_params: &[],- ..dummy_config()- };- let url = build_auth_url(&config, "c", "s", "http://127.0.0.1:1234/auth/callback");- assert!(!url.contains("access_type="));-}--#[test]-fn build_auth_url_uses_redirect_uri_host_in_uri() {- // The redirect_uri is built by login(); we test the helper that constructs it.- // The host substring comes from config.redirect_uri_host, not from the bind addr.- let uri = build_redirect_uri("localhost", 53692, "/callback");- assert_eq!(uri, "http://localhost:53692/callback");-- let uri = build_redirect_uri("127.0.0.1", 1455, "/auth/callback");- assert_eq!(uri, "http://127.0.0.1:1455/auth/callback");-}--#[test]-fn token_is_expired_when_issued_at_zero() {- let token = Token {- access_token: "a".into(),- refresh_token: "r".into(),- id_token: None,- expires_in: 3600,- issued_at: 0,- };- assert!(token.is_expired());-}--#[test]-fn token_not_expired_when_just_issued() {- let token = Token {- access_token: "a".into(),- refresh_token: "r".into(),- id_token: None,- expires_in: 3600,- issued_at: unix_now(),- };- assert!(!token.is_expired());-}--#[test]-fn token_within_buffer_is_considered_expired() {- let token = Token {- access_token: "a".into(),- refresh_token: "r".into(),- id_token: None,- expires_in: 30, // expires in 30s, within the 60s buffer- issued_at: unix_now(),- };- assert!(token.is_expired());-}diff --git a/vendor/motosan-ai-oauth/src/pkce.rs b/vendor/motosan-ai-oauth/src/pkce.rsdeleted file mode 100644index df7fc3469c..0000000000--- a/vendor/motosan-ai-oauth/src/pkce.rs+++ /dev/null@@ -1,28 +0,0 @@-use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine};-use rand::RngCore as _;-use sha2::{Digest, Sha256};--pub struct Pkce {- pub verifier: String,- pub challenge: String,-}--impl Pkce {- pub fn generate() -> Self {- let mut bytes = [0u8; 64];- rand::rng().fill_bytes(&mut bytes);- let verifier = URL_SAFE_NO_PAD.encode(bytes);-- let hash = Sha256::digest(verifier.as_bytes());- let challenge = URL_SAFE_NO_PAD.encode(hash);-- Pkce {- verifier,- challenge,- }- }-}--#[cfg(test)]-#[path = "pkce_tests.rs"]-mod tests;diff --git a/vendor/motosan-ai-oauth/src/pkce_tests.rs b/vendor/motosan-ai-oauth/src/pkce_tests.rsdeleted file mode 100644index 8ce3321949..0000000000--- a/vendor/motosan-ai-oauth/src/pkce_tests.rs+++ /dev/null@@ -1,43 +0,0 @@-use super::*;--#[test]-fn verifier_is_base64url_no_pad() {- let pkce = Pkce::generate();- assert!(- pkce.verifier- .chars()- .all(|c| c.is_ascii_alphanumeric() || c == '-' || c == '_'),- "verifier contains non-base64url chars: {}",- pkce.verifier- );- assert!(- !pkce.verifier.contains('='),- "verifier must not have padding"- );- assert_eq!(pkce.verifier.len(), 86);-}--#[test]-fn challenge_matches_s256_of_verifier() {- let pkce = Pkce::generate();- let hash = Sha256::digest(pkce.verifier.as_bytes());- let expected = URL_SAFE_NO_PAD.encode(hash);- assert_eq!(pkce.challenge, expected);-}--#[test]-fn challenge_is_base64url_no_pad() {- let pkce = Pkce::generate();- assert!(pkce- .challenge- .chars()- .all(|c| c.is_ascii_alphanumeric() || c == '-' || c == '_'));- assert!(!pkce.challenge.contains('='));-}--#[test]-fn each_generate_is_unique() {- let a = Pkce::generate();- let b = Pkce::generate();- assert_ne!(a.verifier, b.verifier);-}diff --git a/vendor/motosan-ai-oauth/src/providers/codex.rs b/vendor/motosan-ai-oauth/src/providers/codex.rsdeleted file mode 100644index 00b6ee4804..0000000000--- a/vendor/motosan-ai-oauth/src/providers/codex.rs+++ /dev/null@@ -1,21 +0,0 @@-use crate::{OAuthConfig, StateStrategy, TokenBodyFormat};--pub fn codex() -> OAuthConfig {- OAuthConfig {- client_id: "app_EMoamEEZ73f0CkXaXp7hrann",- client_secret: None,- auth_url: "https://auth.openai.com/oauth/authorize",- token_url: "https://auth.openai.com/oauth/token",- scopes: &["openid", "profile", "email", "offline_access"],- redirect_port: Some(1455),- callback_path: "/auth/callback",- redirect_uri_host: "127.0.0.1",- token_body: TokenBodyFormat::Form,- extra_auth_params: &[("access_type", "offline")],- state_strategy: StateStrategy::Random,- }-}--#[cfg(test)]-#[path = "codex_tests.rs"]-mod tests;diff --git a/vendor/motosan-ai-oauth/src/providers/codex_tests.rs b/vendor/motosan-ai-oauth/src/providers/codex_tests.rsdeleted file mode 100644index 6889e29e15..0000000000--- a/vendor/motosan-ai-oauth/src/providers/codex_tests.rs+++ /dev/null@@ -1,25 +0,0 @@-use super::*;--#[test]-fn codex_config_has_correct_client_id() {- let c = codex();- assert_eq!(c.client_id, "app_EMoamEEZ73f0CkXaXp7hrann");-}--#[test]-fn codex_config_has_no_client_secret() {- let c = codex();- assert!(c.client_secret.is_none());-}--#[test]-fn codex_config_redirect_port_is_1455() {- let c = codex();- assert_eq!(c.redirect_port, Some(1455));-}--#[test]-fn codex_config_auth_url_is_openai() {- let c = codex();- assert!(c.auth_url.contains("auth.openai.com"));-}diff --git a/vendor/motosan-ai-oauth/src/providers/mod.rs b/vendor/motosan-ai-oauth/src/providers/mod.rsdeleted file mode 100644index a24413a8c4..0000000000--- a/vendor/motosan-ai-oauth/src/providers/mod.rs+++ /dev/null@@ -1,2 +0,0 @@-#[cfg(feature = "codex")]-pub mod codex;diff --git a/vendor/motosan-ai-oauth/src/server.rs b/vendor/motosan-ai-oauth/src/server.rsdeleted file mode 100644index 58c79aed2e..0000000000--- a/vendor/motosan-ai-oauth/src/server.rs+++ /dev/null@@ -1,128 +0,0 @@-use percent_encoding::percent_decode_str;-use tokio::{- io::{AsyncReadExt, AsyncWriteExt},- net::TcpListener,-};--use crate::error::Error;--pub struct BoundServer {- pub port: u16,- listener: TcpListener,-}--/// Bind to 127.0.0.1:{port} (or OS-assigned if port is None).-/// Returns BoundServer with the actual bound port.-pub async fn bind(port: Option<u16>) -> Result<BoundServer, Error> {- let addr = format!("127.0.0.1:{}", port.unwrap_or(0));- let listener = TcpListener::bind(&addr).await.map_err(|e| {- if e.kind() == std::io::ErrorKind::AddrInUse {- Error::Callback(format!(- "port {} is already in use; close other instances and retry",- port.unwrap_or(0)- ))- } else {- Error::Io(e)- }- })?;- let actual_port = listener.local_addr().map_err(Error::Io)?.port();- Ok(BoundServer {- port: actual_port,- listener,- })-}--/// Wait for one /auth/callback?code=...&state=... request.-/// Returns (code, state). Ignores other requests (e.g. favicon).-pub async fn wait_for_callback(- server: BoundServer,- callback_path: &str,-) -> Result<(String, String), Error> {- let BoundServer { listener, .. } = server;- loop {- let (mut stream, _) = listener.accept().await?;- let buf = read_headers(&mut stream).await?;- let request = String::from_utf8_lossy(&buf);-- if !is_callback_request(&request, callback_path) {- let _ = stream- .write_all(b"HTTP/1.1 204 No Content\r\nConnection: close\r\n\r\n")- .await;- continue;- }-- let html = "<html><body>Login successful. You can close this tab.</body></html>";- let response = format!(- "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nContent-Length: {}\r\nConnection: close\r\n\r\n{}",- html.len(),- html- );- let _ = stream.write_all(response.as_bytes()).await;- return parse_callback(&request);- }-}--async fn read_headers(stream: &mut tokio::net::TcpStream) -> Result<Vec<u8>, Error> {- let mut buf = Vec::with_capacity(4096);- let mut chunk = [0u8; 512];- loop {- let n = stream.read(&mut chunk).await?;- if n == 0 {- break;- }- if buf.len() + n >= 16384 {- return Err(Error::Callback("request too large".into()));- }- buf.extend_from_slice(&chunk[..n]);- if buf.windows(4).any(|w| w == b"\r\n\r\n") {- break;- }- }- Ok(buf)-}--fn is_callback_request(request: &str, callback_path: &str) -> bool {- let path = request- .lines()- .next()- .unwrap_or("")- .split_whitespace()- .nth(1)- .unwrap_or("");- path.starts_with(callback_path) && path.contains("code=")-}--fn parse_callback(request: &str) -> Result<(String, String), Error> {- let first_line = request.lines().next().unwrap_or("");- let path = first_line- .split_whitespace()- .nth(1)- .ok_or_else(|| Error::Callback("malformed HTTP request".into()))?;-- let query = path.split_once('?').map(|(_, q)| q).unwrap_or("");-- let mut code = None;- let mut state = None;-- for pair in query.split('&') {- if let Some((k, v)) = pair.split_once('=') {- let decoded = percent_decode_str(v)- .decode_utf8()- .map_err(|_| Error::Callback(format!("param '{k}' is not valid UTF-8")))?- .into_owned();- match k {- "code" => code = Some(decoded),- "state" => state = Some(decoded),- _ => {}- }- }- }-- let code = code.ok_or_else(|| Error::Callback("missing code param".into()))?;- let state = state.ok_or_else(|| Error::Callback("missing state param".into()))?;- Ok((code, state))-}--#[cfg(test)]-#[path = "server_tests.rs"]-mod tests;diff --git a/vendor/motosan-ai-oauth/src/server_tests.rs b/vendor/motosan-ai-oauth/src/server_tests.rsdeleted file mode 100644index 5994440a9a..0000000000--- a/vendor/motosan-ai-oauth/src/server_tests.rs+++ /dev/null@@ -1,86 +0,0 @@-use super::*;--fn get(path: &str) -> String {- format!("GET {path} HTTP/1.1\r\nHost: localhost\r\n\r\n")-}--#[test]-fn parses_normal_callback() {- let (code, state) = parse_callback(&get("/auth/callback?code=abc123&state=xyz")).unwrap();- assert_eq!(code, "abc123");- assert_eq!(state, "xyz");-}--#[test]-fn decodes_percent_encoded_params() {- let (code, state) = parse_callback(&get("/auth/callback?code=ab%2Bcd&state=x%3Dy")).unwrap();- assert_eq!(code, "ab+cd");- assert_eq!(state, "x=y");-}--#[test]-fn extra_params_are_ignored() {- let (code, state) =- parse_callback(&get("/auth/callback?code=c&state=s&session_state=ignored")).unwrap();- assert_eq!(code, "c");- assert_eq!(state, "s");-}--#[test]-fn missing_code_returns_error() {- let err = parse_callback(&get("/auth/callback?state=s")).unwrap_err();- assert!(err.to_string().contains("missing code"));-}--#[test]-fn missing_state_returns_error() {- let err = parse_callback(&get("/auth/callback?code=c")).unwrap_err();- assert!(err.to_string().contains("missing state"));-}--#[test]-fn non_callback_path_is_not_callback() {- assert!(!is_callback_request(&get("/favicon.ico"), "/auth/callback"));- assert!(!is_callback_request(&get("/"), "/auth/callback"));-}--#[test]-fn callback_path_with_code_is_callback() {- assert!(is_callback_request(- &get("/auth/callback?code=abc&state=xyz"),- "/auth/callback"- ));-}--#[test]-fn anthropic_callback_path_is_callback() {- assert!(is_callback_request(- &get("/callback?code=abc&state=xyz"),- "/callback"- ));-}--#[test]-fn auth_callback_path_does_not_match_anthropic_request() {- // A request to /callback must not be accepted when callback_path is /auth/callback.- assert!(!is_callback_request(- &get("/callback?code=abc&state=xyz"),- "/auth/callback"- ));-}--#[tokio::test]-async fn bind_dynamic_port_returns_nonzero_port() {- let server = bind(None).await.expect("bind should succeed");- assert!(server.port > 0, "dynamic port should be nonzero");-}--#[tokio::test]-async fn bind_specific_port_returns_that_port() {- let probe = TcpListener::bind("127.0.0.1:0").await.unwrap();- let free_port = probe.local_addr().unwrap().port();- drop(probe);-- let server = bind(Some(free_port)).await.expect("bind should succeed");- assert_eq!(server.port, free_port);-}