Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: pin released wallet and channels with compatible HTTP adapter

Steven Enamakel8f7d4e13a1a9
diff --git a/Cargo.lock b/Cargo.lock
index 058dd6ea49..c411456f34 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -173,7 +173,7 @@ version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
dependencies = [
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -184,7 +184,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
dependencies = [
"anstyle",
"once_cell_polyfill",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -287,19 +287,19 @@ dependencies = [
[[package]]
name = "async-imap"
-version = "0.11.3"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a6728e0f7931b36d725ac234fcb02539e9f7888dbeaaa8a18d9ea5792181570"
+checksum = "f97b87216c9f0ccc63c516263169085fa34bba25633f6d96c6a9b9ca1fd5f70a"
dependencies = [
"async-channel 2.5.0",
"async-compression",
- "base64 0.22.1",
+ "base64 0.23.1",
"bytes",
"chrono",
- "futures",
+ "futures-util",
"imap-proto",
"log",
- "nom 7.1.3",
+ "nom 8.0.0",
"pin-project",
"pin-utils",
"self_cell",
@@ -788,7 +788,7 @@ dependencies = [
"cap-primitives",
"cap-std",
"io-lifetimes 3.0.1",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -805,7 +805,7 @@ dependencies = [
"maybe-owned",
"rustix",
"rustix-linux-procfs",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
"winx",
]
@@ -1849,7 +1849,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -2099,7 +2099,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -2930,7 +2930,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.58.0",
+ "windows-core 0.62.2",
]
[[package]]
@@ -3054,11 +3054,11 @@ dependencies = [
[[package]]
name = "imap-proto"
-version = "0.16.7"
+version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25f6af35c6a517aea5c72314abe90134980d2ae6a763809b50c208b3e429d71f"
+checksum = "5ccf963d57074747b455398a1763d174da80bcaba6f51e3671a82252b531a68b"
dependencies = [
- "nom 7.1.3",
+ "nom 8.0.0",
]
[[package]]
@@ -4012,7 +4012,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4508,7 +4508,8 @@ dependencies = [
"proptest",
"rand 0.10.2",
"regex",
- "reqwest",
+ "reqwest 0.12.28",
+ "reqwest 0.13.5",
"rusqlite",
"rustls",
"schemars",
@@ -4592,6 +4593,7 @@ dependencies = [
"urlencoding",
"uuid",
"walkdir",
+ "webpki-roots 1.0.9",
"windows-sys 0.61.2",
"wiremock",
"x25519-dalek 2.0.1",
@@ -4623,7 +4625,7 @@ dependencies = [
"openhuman-rpc",
"openhuman-tinyhumans",
"parking_lot",
- "reqwest",
+ "reqwest 0.12.28",
"rusqlite",
"sentry",
"serde",
@@ -4670,7 +4672,7 @@ dependencies = [
"env_logger",
"log",
"openhuman",
- "reqwest",
+ "reqwest 0.12.28",
"sentry",
"serde",
"serde_json",
@@ -4704,7 +4706,7 @@ dependencies = [
"openhuman-tinyhumans",
"proptest",
"rand 0.10.2",
- "reqwest",
+ "reqwest 0.12.28",
"sentry",
"serde",
"serde_json",
@@ -4736,7 +4738,7 @@ dependencies = [
"chrono",
"log",
"openhuman-embed",
- "reqwest",
+ "reqwest 0.12.28",
"sentry",
"serde",
"serde_json",
@@ -5390,7 +5392,7 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5765,6 +5767,44 @@ dependencies = [
"webpki-roots 1.0.9",
]
+[[package]]
+name = "reqwest"
+version = "0.13.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-core",
+ "h2",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-rustls",
+ "hyper-tls",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "native-tls",
+ "percent-encoding",
+ "pin-project-lite",
+ "rustls",
+ "rustls-pki-types",
+ "rustls-platform-verifier",
+ "sync_wrapper",
+ "tokio",
+ "tokio-native-tls",
+ "tokio-rustls",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
[[package]]
name = "resolv-conf"
version = "0.7.6"
@@ -5879,7 +5919,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5947,7 +5987,7 @@ dependencies = [
"security-framework 3.7.0",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6527,7 +6567,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6838,7 +6878,7 @@ dependencies = [
"getrandom 0.4.3",
"once_cell",
"rustix",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6851,7 +6891,7 @@ dependencies = [
"parking_lot",
"rustix",
"signal-hook",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7049,7 +7089,7 @@ dependencies = [
"flate2",
"futures",
"regex",
- "reqwest",
+ "reqwest 0.12.28",
"rusqlite",
"rustix",
"serde",
@@ -7245,7 +7285,7 @@ dependencies = [
[[package]]
name = "tinychannels"
-version = "0.1.12"
+version = "0.1.13"
dependencies = [
"anyhow",
"async-imap",
@@ -7263,7 +7303,7 @@ dependencies = [
"parking_lot",
"prost",
"rand 0.10.2",
- "reqwest",
+ "reqwest 0.12.28",
"rusqlite",
"rustls",
"rustls-pki-types",
@@ -7291,7 +7331,7 @@ dependencies = [
[[package]]
name = "tinychannels-bus"
-version = "0.1.12"
+version = "0.1.13"
dependencies = [
"anyhow",
"async-trait",
@@ -7312,7 +7352,7 @@ dependencies = [
[[package]]
name = "tinychannels-runtime"
-version = "0.1.12"
+version = "0.1.13"
dependencies = [
"anyhow",
"async-trait",
@@ -7491,7 +7531,7 @@ dependencies = [
"base64 0.23.1",
"hex",
"percent-encoding",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"sha1 0.11.0",
@@ -7507,7 +7547,7 @@ dependencies = [
"base64 0.22.1",
"futures",
"percent-encoding",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7531,7 +7571,7 @@ version = "0.3.1"
dependencies = [
"async-trait",
"httpdate",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7545,7 +7585,7 @@ dependencies = [
"async-trait",
"once_cell",
"regex",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7562,7 +7602,7 @@ dependencies = [
"async-trait",
"base64 0.23.1",
"bytes",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7579,7 +7619,7 @@ dependencies = [
"base64 0.22.1",
"bytes",
"futures",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7598,7 +7638,7 @@ dependencies = [
"log",
"once_cell",
"parking_lot",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7616,7 +7656,7 @@ version = "0.3.1"
dependencies = [
"base64 0.23.1",
"rand 0.10.2",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"sha2 0.11.0",
@@ -7641,7 +7681,7 @@ name = "tinyinference-voice"
version = "0.3.1"
dependencies = [
"base64 0.23.1",
- "reqwest",
+ "reqwest 0.12.28",
"schemars",
"serde",
"serde_json",
@@ -7657,7 +7697,7 @@ version = "0.2.1"
source = "git+https://github.com/tinyhumansai/tinyjevclient?rev=84b3983c7e1e14f7515658ceafabb6c4e7967c94#84b3983c7e1e14f7515658ceafabb6c4e7967c94"
dependencies = [
"httpdate",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7706,7 +7746,7 @@ dependencies = [
"base64 0.22.1",
"bytes",
"futures-util",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7727,7 +7767,7 @@ dependencies = [
"dirs 7.0.0",
"futures-util",
"parking_lot",
- "reqwest",
+ "reqwest 0.12.28",
"rusqlite",
"serde",
"serde_json",
@@ -7758,7 +7798,7 @@ version = "0.1.0"
dependencies = [
"async-trait",
"futures",
- "reqwest",
+ "reqwest 0.12.28",
"serde",
"serde_json",
"thiserror 2.0.20",
@@ -7792,7 +7832,7 @@ dependencies = [
"pdf-extract",
"quick-xml 0.41.0",
"regex",
- "reqwest",
+ "reqwest 0.12.28",
"rusqlite",
"schemars",
"serde",
@@ -7986,7 +8026,7 @@ dependencies = [
"log",
"parking_lot",
"regex",
- "reqwest",
+ "reqwest 0.12.28",
"rustix",
"serde_json",
"sha2 0.11.0",
@@ -8025,7 +8065,7 @@ dependencies = [
[[package]]
name = "tinywallet"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"coins-bip32",
"coins-bip39",
@@ -8043,7 +8083,7 @@ dependencies = [
[[package]]
name = "tinywallet-bus"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"serde",
"tinywallet-crypto",
@@ -8052,7 +8092,7 @@ dependencies = [
[[package]]
name = "tinywallet-crypto"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"async-trait",
"bech32 0.12.0",
@@ -8067,13 +8107,13 @@ dependencies = [
[[package]]
name = "tinywallet-web3"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"anyhow",
"async-trait",
- "base64 0.22.1",
+ "base64 0.23.1",
"bs58",
- "curve25519-dalek 4.1.3",
+ "curve25519-dalek 5.0.0",
"hex",
"log",
"parking_lot",
@@ -8088,17 +8128,17 @@ dependencies = [
[[package]]
name = "tinywallet-x402"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"anyhow",
"async-trait",
- "base64 0.22.1",
+ "base64 0.23.1",
"bs58",
"chrono",
- "curve25519-dalek 4.1.3",
+ "curve25519-dalek 5.0.0",
"hex",
"log",
- "reqwest",
+ "reqwest 0.13.5",
"serde",
"serde_json",
"sha2 0.11.0",
@@ -9276,7 +9316,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index 36e02922d8..79294dac4a 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -135,7 +135,7 @@ dependencies = [
"objc2-foundation 0.3.2",
"parking_lot",
"percent-encoding",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
"x11rb",
]
@@ -235,19 +235,19 @@ dependencies = [
[[package]]
name = "async-imap"
-version = "0.11.3"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a6728e0f7931b36d725ac234fcb02539e9f7888dbeaaa8a18d9ea5792181570"
+checksum = "f97b87216c9f0ccc63c516263169085fa34bba25633f6d96c6a9b9ca1fd5f70a"
dependencies = [
"async-channel 2.5.0",
"async-compression",
- "base64 0.22.1",
+ "base64 0.23.1",
"bytes",
"chrono",
- "futures",
+ "futures-util",
"imap-proto",
"log",
- "nom 7.1.3",
+ "nom",
"pin-project",
"pin-utils",
"self_cell",
@@ -715,7 +715,7 @@ dependencies = [
"cap-primitives",
"cap-std",
"io-lifetimes 3.0.1",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -732,7 +732,7 @@ dependencies = [
"maybe-owned",
"rustix",
"rustix-linux-procfs",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
"winx",
]
@@ -1343,7 +1343,22 @@ dependencies = [
"cfg-if",
"cpufeatures 0.2.17",
"curve25519-dalek-derive",
- "fiat-crypto",
+ "fiat-crypto 0.2.9",
+ "rustc_version",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "curve25519-dalek"
+version = "5.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b5eed333089e2e1c1ac8c6c0398e5e2497b4c9926ca6d0365ed1e099afa5bc23"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.3.1",
+ "curve25519-dalek-derive",
+ "fiat-crypto 0.3.0",
"rustc_version",
"subtle",
"zeroize",
@@ -1580,7 +1595,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.3",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -1896,7 +1911,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -1979,6 +1994,12 @@ version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
+[[package]]
+name = "fiat-crypto"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24"
+
[[package]]
name = "field-offset"
version = "0.3.6"
@@ -2841,7 +2862,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.57.0",
+ "windows-core 0.58.0",
]
[[package]]
@@ -2975,11 +2996,11 @@ dependencies = [
[[package]]
name = "imap-proto"
-version = "0.16.7"
+version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25f6af35c6a517aea5c72314abe90134980d2ae6a763809b50c208b3e429d71f"
+checksum = "5ccf963d57074747b455398a1763d174da80bcaba6f51e3671a82252b531a68b"
dependencies = [
- "nom 7.1.3",
+ "nom",
]
[[package]]
@@ -3031,7 +3052,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20fd6de4ccfcc187e38bc21cfa543cb5a302cb86a8b114eb7f0bf0dc9f8ac00f"
dependencies = [
"io-lifetimes 3.0.1",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -3393,7 +3414,7 @@ dependencies = [
"httpdate",
"idna",
"mime",
- "nom 8.0.0",
+ "nom",
"percent-encoding",
"quoted_printable",
"rustls",
@@ -3540,7 +3561,7 @@ dependencies = [
"itoa",
"log",
"md-5",
- "nom 8.0.0",
+ "nom",
"rand 0.10.2",
"rangemap",
"sha2 0.10.9",
@@ -3682,12 +3703,6 @@ dependencies = [
"unicase",
]
-[[package]]
-name = "minimal-lexical"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
-
[[package]]
name = "minisign-verify"
version = "0.2.5"
@@ -3743,7 +3758,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.20",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -3829,16 +3844,6 @@ dependencies = [
"libc",
]
-[[package]]
-name = "nom"
-version = "7.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
-dependencies = [
- "memchr",
- "minimal-lexical",
-]
-
[[package]]
name = "nom"
version = "8.0.0"
@@ -3877,7 +3882,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -4439,6 +4444,7 @@ dependencies = [
"rand 0.10.2",
"regex",
"reqwest 0.12.28",
+ "reqwest 0.13.5",
"rusqlite",
"rustls",
"schemars 1.2.2",
@@ -4520,6 +4526,7 @@ dependencies = [
"urlencoding",
"uuid",
"walkdir",
+ "webpki-roots 1.0.9",
"windows-sys 0.61.2",
"x25519-dalek",
"zeroize",
@@ -5292,7 +5299,7 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -5577,14 +5584,17 @@ dependencies = [
"bytes",
"futures-core",
"futures-util",
+ "h2",
"http",
"http-body",
"http-body-util",
"hyper",
"hyper-rustls",
+ "hyper-tls",
"hyper-util",
"js-sys",
"log",
+ "native-tls",
"percent-encoding",
"pin-project-lite",
"rustls",
@@ -5594,6 +5604,7 @@ dependencies = [
"serde_json",
"sync_wrapper",
"tokio",
+ "tokio-native-tls",
"tokio-rustls",
"tokio-util",
"tower",
@@ -5711,7 +5722,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -5779,7 +5790,7 @@ dependencies = [
"security-framework 3.7.0",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -6413,7 +6424,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -7184,7 +7195,7 @@ dependencies = [
"getrandom 0.4.3",
"once_cell",
"rustix",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -7540,7 +7551,7 @@ dependencies = [
[[package]]
name = "tinychannels"
-version = "0.1.12"
+version = "0.1.13"
dependencies = [
"anyhow",
"async-imap",
@@ -7582,7 +7593,7 @@ dependencies = [
[[package]]
name = "tinychannels-bus"
-version = "0.1.12"
+version = "0.1.13"
dependencies = [
"anyhow",
"async-trait",
@@ -7603,7 +7614,7 @@ dependencies = [
[[package]]
name = "tinychannels-runtime"
-version = "0.1.12"
+version = "0.1.13"
dependencies = [
"anyhow",
"async-trait",
@@ -8290,7 +8301,7 @@ dependencies = [
[[package]]
name = "tinywallet-bus"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"serde",
"tinywallet-crypto",
@@ -8299,7 +8310,7 @@ dependencies = [
[[package]]
name = "tinywallet-crypto"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"async-trait",
"bech32",
@@ -8314,13 +8325,13 @@ dependencies = [
[[package]]
name = "tinywallet-web3"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"anyhow",
"async-trait",
- "base64 0.22.1",
+ "base64 0.23.1",
"bs58",
- "curve25519-dalek",
+ "curve25519-dalek 5.0.0",
"hex",
"log",
"parking_lot",
@@ -8335,17 +8346,17 @@ dependencies = [
[[package]]
name = "tinywallet-x402"
-version = "0.7.4"
+version = "0.8.0"
dependencies = [
"anyhow",
"async-trait",
- "base64 0.22.1",
+ "base64 0.23.1",
"bs58",
"chrono",
- "curve25519-dalek",
+ "curve25519-dalek 5.0.0",
"hex",
"log",
- "reqwest 0.12.28",
+ "reqwest 0.13.5",
"serde",
"serde_json",
"sha2 0.11.0",
@@ -8734,7 +8745,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.20",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -8845,7 +8856,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -9465,7 +9476,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.48.0",
]
[[package]]
@@ -10256,7 +10267,7 @@ version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277"
dependencies = [
- "curve25519-dalek",
+ "curve25519-dalek 4.1.3",
"rand_core 0.6.4",
"serde",
"zeroize",
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index e45e2eda7b..17dc8bea77 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -352,6 +352,10 @@ serde_path_to_error = "0.1"
# AV root CAs. So the two TLS backends coexist only on Windows, never on
# the RAM-sensitive platforms.
reqwest = { version = "0.12", default-features = false, features = ["json", "blocking", "rustls-tls", "stream", "http2", "multipart", "socks"] }
+# Wallet 0.8 exposes reqwest 0.13 builders; keep its host seam optional and
+# select the same TLS trust policy without changing the shared 0.12 client.
+reqwest13 = { package = "reqwest", version = "0.13", default-features = false, features = ["rustls-no-provider", "http2", "socks"], optional = true }
+webpki-roots = { version = "1", optional = true }
# Already in-tree via reqwest/hyper; named directly so `IntegrationClient::get_bytes`
# can return `bytes::Bytes` without a copy.
bytes = "1"
@@ -616,6 +620,7 @@ tokio-tungstenite = { version = "0.29", default-features = false, features = ["c
# above. Cargo unions these features with the base rustls decl, so on Windows
# reqwest carries both backends; Linux/macOS keep rustls only.
reqwest = { version = "0.12", default-features = false, features = ["native-tls"] }
+reqwest13 = { package = "reqwest", version = "0.13", default-features = false, features = ["native-tls"], optional = true }
# Win32 surface for host code (e.g. atomic file replace in turn_state). The
# AppContainer jail backend lives in `tinybox-jail` with its own windows-sys.
windows-sys = { version = "0.61", features = [
@@ -878,6 +883,8 @@ voice = [
# derives an Associated Token Account is address arithmetic that now lives in
# `tinywallet-web3` (and `tinywallet-x402`), which own their own copy.
web3 = [
+ "dep:reqwest13",
+ "dep:webpki-roots",
"dep:tinywallet-bus",
"dep:tinywallet-x402",
"dep:tinywallet-web3",
diff --git a/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs b/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
index 5e82aacc6e..f1e5564e54 100644
--- a/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
+++ b/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
@@ -108,63 +108,63 @@ pub(crate) const TINYWALLET: ModuleRecord = ModuleRecord {
description: "Transaction building and assembly for Bitcoin, EVM, Solana and Tron",
bus_name: "ai.tinyhumans.tinywallet.Wallet",
object_path: "/ai/tinyhumans/tinywallet/Wallet",
- version: "0.7.4",
- release_url: "https://github.com/tinyhumansai/tinywallet/releases/tag/v0.7.4",
+ version: "0.8.0",
+ release_url: "https://github.com/tinyhumansai/tinywallet/releases/tag/v0.8.0",
assets: &[
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinywallet-module-0.7.4-ubuntu-24.04-x86_64.tar.gz",
- sha256: "e82f4bf8e28792049d14c665296c716d7cddc34b654cfb95ccee2a712ed510ce",
+ archive: "tinywallet-module-0.8.0-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "401d9fb2491030907c58778216bafbc78130fe8a486106faaa86432ff22a2bae",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinywallet-module-0.7.4-ubuntu-24.04-arm64.tar.gz",
- sha256: "edaf46c2cd21acd613f63ca82f3f9ca81f4d4d543932ab4d784fb6d9965cfd8a",
+ archive: "tinywallet-module-0.8.0-ubuntu-24.04-arm64.tar.gz",
+ sha256: "0444ff0cad34ac0aa7e26a18a84737ca48193b7f6a1452930dcba3e413174b4a",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinywallet-module-0.7.4-ubuntu-22.04-x86_64.tar.gz",
- sha256: "1ae71e28268c99901f5cbf9b69e6e0e4d5267e5a9f7b069115e69acb451f8288",
+ archive: "tinywallet-module-0.8.0-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "c16f2fdefe1f032e89d68969ccbde762ae17dde85ee1aa0248f7820852ac1008",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinywallet-module-0.7.4-ubuntu-22.04-arm64.tar.gz",
- sha256: "92d1f84d41cf8345bd0c5f839d2b914244ac3a94077441683ba5ad7b7e597400",
+ archive: "tinywallet-module-0.8.0-ubuntu-22.04-arm64.tar.gz",
+ sha256: "690c99b72655e13aaa1a307e599dff09f77e5470101fbf3331d321d787805885",
},
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinywallet-module-0.7.4-macos-26-arm64.tar.gz",
- sha256: "677acb36e26492063b5a305da016e887a3591e82ecd7e4de585b933494ed7d32",
+ archive: "tinywallet-module-0.8.0-macos-26-arm64.tar.gz",
+ sha256: "206e74e88011a7810c88375d96082f1a85036f3d10194aedbc1513d2fe4a39a7",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinywallet-module-0.7.4-macos-26-x86_64.tar.gz",
- sha256: "ae0d96c69f5bf387bcf097ff165db39e219d3a2d6515ee36da74b15fc29d8821",
+ archive: "tinywallet-module-0.8.0-macos-26-x86_64.tar.gz",
+ sha256: "d4163442c6fdeada5b56a1b08b92d22ff77ec3b21634bff61ac8bf0de1bee1a0",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinywallet-module-0.7.4-macos-15-arm64.tar.gz",
- sha256: "a09c90220defeccd75a1688546b3795119f1506c6bdf87528e6408004fa6439f",
+ archive: "tinywallet-module-0.8.0-macos-15-arm64.tar.gz",
+ sha256: "a27f04db2652b09e4b855cb9ba17c9fda90ea65b0eeda6335f78fb9839a5b681",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinywallet-module-0.7.4-macos-15-x86_64.tar.gz",
- sha256: "76426a0d2f20e1b95756c94523343547af8aa83f39a9ae5339f3ad21216d5424",
+ archive: "tinywallet-module-0.8.0-macos-15-x86_64.tar.gz",
+ sha256: "6778db75763d9f7058228f6beeb75af04b2d2bd74d38b8109e4e310a2dfaca77",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinywallet-module-0.7.4-windows-2025-x86_64.zip",
- sha256: "6cc71bf451c032d27b041c438f3f9a2f75bb619a21df30bb4476b68f98deea01",
+ archive: "tinywallet-module-0.8.0-windows-2025-x86_64.zip",
+ sha256: "48ed01c962dfd4ff35010a858f7663105cce9b24179f7e230c472742b63a3e70",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinywallet-module-0.7.4-windows-2022-x86_64.zip",
- sha256: "73c6aeedeb6fac9d5beddd81f82a589d5e227ca1553e117e365ab58a0ed72765",
+ archive: "tinywallet-module-0.8.0-windows-2022-x86_64.zip",
+ sha256: "8010a390a9b27e28ac0e384f398b101f80980bc477312d5055bbb3edacf36e80",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinywallet-module-0.7.4-windows-11-arm64.zip",
- sha256: "888c7734becffdd660857c2f4d45a8899fb80511312d91a5310b62f9f0dbc422",
+ archive: "tinywallet-module-0.8.0-windows-11-arm64.zip",
+ sha256: "d9e685d709755c52f4ba6d1d852da5b237a19f405de95389d8650ba54e231045",
},
],
load: LoadPolicy::Lazy,
diff --git a/crates/openhuman-core/src/modules/registry/records_extra.rs b/crates/openhuman-core/src/modules/registry/records_extra.rs
index 0f8a55aa35..ef34242287 100644
--- a/crates/openhuman-core/src/modules/registry/records_extra.rs
+++ b/crates/openhuman-core/src/modules/registry/records_extra.rs
@@ -76,63 +76,63 @@ pub(crate) const TINYCHANNELS: ModuleRecord = ModuleRecord {
description: "Channel provider lifecycle and message transport",
bus_name: "ai.tinyhumans.tinychannels.Channels",
object_path: "/ai/tinyhumans/tinychannels/Channels",
- version: "0.1.12",
- release_url: "https://github.com/tinyhumansai/tinychannels/releases/tag/v0.1.12",
+ version: "0.1.13",
+ release_url: "https://github.com/tinyhumansai/tinychannels/releases/tag/v0.1.13",
assets: &[
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinychannels-module-0.1.12-ubuntu-24.04-x86_64.tar.gz",
- sha256: "4d238ccecc5e2ac40006e17dfe51eeae3e9d5504395db852d83037f72aaa296f",
+ archive: "tinychannels-module-0.1.13-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "3fe360f6863a01e2fe48737d9895fd997467121ee1fa9bb30e7f875368c9b5c9",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinychannels-module-0.1.12-ubuntu-24.04-arm64.tar.gz",
- sha256: "9474764c23ed7e3e83ad28611d0e2d403441ee0c8d6f2f643b0e7c190b0065d1",
+ archive: "tinychannels-module-0.1.13-ubuntu-24.04-arm64.tar.gz",
+ sha256: "e636f26b9484b351409f1c1ac0f22ee61435a24961cb0f57e2b7537774b0934a",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinychannels-module-0.1.12-ubuntu-22.04-x86_64.tar.gz",
- sha256: "deb8313e1c5607b83d314b61c2b6305f104a6c0dd5ce19f7ef65018d4d3f78b0",
+ archive: "tinychannels-module-0.1.13-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "f0ca5091e42c1493311db34015d4485a557700100feac4245468c3d0f64eef08",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinychannels-module-0.1.12-ubuntu-22.04-arm64.tar.gz",
- sha256: "3f1a85cce6e19959f9ba29829f82c8bd195f553d4fd2b11d9f4de9fdf7243604",
+ archive: "tinychannels-module-0.1.13-ubuntu-22.04-arm64.tar.gz",
+ sha256: "2824102014b345c21c9d7e16fae8917cdf6fea03529a67de1ee58065f1a694e6",
},
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinychannels-module-0.1.12-macos-26-arm64.tar.gz",
- sha256: "64131eb839e356cb1e3519cd0b10d6ab355ff31330f4b4531523567e3de7c577",
+ archive: "tinychannels-module-0.1.13-macos-26-arm64.tar.gz",
+ sha256: "81e16aa479839a673b03a18bd715ebc1b5efef7e6f223953233688ad08d1bbf2",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinychannels-module-0.1.12-macos-26-x86_64.tar.gz",
- sha256: "c92985145ca92b52a4af2ae7e2a881d4f4fa2aa78bd285bede4399459a8a4153",
+ archive: "tinychannels-module-0.1.13-macos-26-x86_64.tar.gz",
+ sha256: "dc82f10309946132e7837fb97c86203d79741416536b0d944972cb8acaa3f220",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinychannels-module-0.1.12-macos-15-arm64.tar.gz",
- sha256: "bdd48673381b80997a6916d85912fa6fbd6aae477b77ff296524bf9297b6abd8",
+ archive: "tinychannels-module-0.1.13-macos-15-arm64.tar.gz",
+ sha256: "7770a906ac3bb46e89725363d723e32709b45300d234b360c4822666c29f7c51",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinychannels-module-0.1.12-macos-15-x86_64.tar.gz",
- sha256: "8c595292d9ac46d2af0c81c22a2856b0f7fc22f9dcc8bbd567bbc410b5073954",
+ archive: "tinychannels-module-0.1.13-macos-15-x86_64.tar.gz",
+ sha256: "cbd540871efc81822181ddd51502c93f31e2a99a8be58b725d01bc70d7d9ba6d",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinychannels-module-0.1.12-windows-2025-x86_64.zip",
- sha256: "4ccddd11a8057e18a55a924bf46d4670c3a34ba0e1a7fccd95e848504d24d3cf",
+ archive: "tinychannels-module-0.1.13-windows-2025-x86_64.zip",
+ sha256: "a7fee0a4bcbb52b4f7866eab6a1c4eca31fa7de8541c8321c61314c1286f981a",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinychannels-module-0.1.12-windows-2022-x86_64.zip",
- sha256: "e856df1a46c8e966325075320e37d1443671058c23c46ee517c65b6f42912abf",
+ archive: "tinychannels-module-0.1.13-windows-2022-x86_64.zip",
+ sha256: "1a74d967ac4f859d6c210865788fcdb124accc027e75823eb3d9a55a700a0dcd",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinychannels-module-0.1.12-windows-11-arm64.zip",
- sha256: "c9c5167fd8c19581f8b15d68cc2871627ac3006573d0ee40e709ca16bb21f109",
+ archive: "tinychannels-module-0.1.13-windows-11-arm64.zip",
+ sha256: "cbcaaeed4c6e2c3baae1474686e210281c16d8f75024d1a4805f68cbbc8f1f67",
},
],
load: LoadPolicy::Lazy,
diff --git a/crates/openhuman-core/src/web3/x402/mod.rs b/crates/openhuman-core/src/web3/x402/mod.rs
index cad93e48fe..457bcc45d8 100644
--- a/crates/openhuman-core/src/web3/x402/mod.rs
+++ b/crates/openhuman-core/src/web3/x402/mod.rs
@@ -21,8 +21,8 @@
//! ## Compile-time gate (`web3` feature)
//!
//! `pub mod x402;` is ALWAYS compiled — it is a facade. The real payment
-//! machinery is gated behind the default-ON `web3` Cargo feature (shared with
-//! `openhuman::web3::wallet` + `openhuman::web3`). When the feature is off, [`stub`]
+//! machinery is gated behind the optional `web3` Cargo feature (shared with
+//! `openhuman::web3::wallet` + `openhuman::web3` and enabled in the desktop product). When the feature is off, [`stub`]
//! takes its place and exposes the always-on entry points (`init_ledger`,
//! `all_x402_registered_controllers`, `all_x402_controller_schemas`) with
//! no-op / empty bodies. The `X402RequestTool` and the http_request 402-retry
@@ -33,6 +33,8 @@
#[cfg(feature = "web3")]
pub(crate) mod budget;
#[cfg(feature = "web3")]
+mod proxy_compat;
+#[cfg(feature = "web3")]
mod records;
#[cfg(feature = "web3")]
mod schemas;
diff --git a/crates/openhuman-core/src/web3/x402/proxy_compat.rs b/crates/openhuman-core/src/web3/x402/proxy_compat.rs
new file mode 100644
index 0000000000..66b9979c30
--- /dev/null
+++ b/crates/openhuman-core/src/web3/x402/proxy_compat.rs
@@ -0,0 +1,66 @@
+//! The wallet's reqwest 0.13 seam with OpenHuman's existing proxy and TLS policy.
+//! The rest of the host keeps reqwest 0.12; scope and bypass decisions come from
+//! the same ProxyConfig rather than a second policy or environment resolver.
+
+use crate::config::ProxyConfig;
+
+pub(super) fn apply(
+ builder: reqwest13::ClientBuilder,
+ service: &str,
+ config: &ProxyConfig,
+) -> reqwest13::ClientBuilder {
+ let mut builder = platform_tls(builder);
+ if !config.should_apply_to_service(service) {
+ return builder;
+ }
+ let bypass = config.normalized_no_proxy().join(",");
+ let no_proxy = reqwest13::NoProxy::from_string(&bypass);
+ for (kind, url) in [
+ ("all", config.all_proxy.as_deref()),
+ ("http", config.http_proxy.as_deref()),
+ ("https", config.https_proxy.as_deref()),
+ ] {
+ let Some(url) = url.map(str::trim).filter(|url| !url.is_empty()) else {
+ continue;
+ };
+ let proxy = match kind {
+ "all" => reqwest13::Proxy::all(url),
+ "http" => reqwest13::Proxy::http(url),
+ _ => reqwest13::Proxy::https(url),
+ };
+ match proxy {
+ Ok(proxy) => builder = builder.proxy(proxy.no_proxy(no_proxy.clone())),
+ // Proxy URLs can embed credentials, so do not include either the
+ // URL or a parser error that could repeat it in diagnostics.
+ Err(_) => tracing::warn!(service, kind, "[x402] ignoring invalid proxy URL"),
+ }
+ }
+ builder
+}
+
+fn platform_tls(builder: reqwest13::ClientBuilder) -> reqwest13::ClientBuilder {
+ #[cfg(target_os = "windows")]
+ {
+ builder.tls_backend_native()
+ }
+ #[cfg(not(target_os = "windows"))]
+ {
+ // Reqwest 0.13 normally uses the platform verifier. Match the host's
+ // 0.12 client instead: ring, rustls, and Mozilla's webpki roots.
+ let roots = rustls::RootCertStore {
+ roots: webpki_roots::TLS_SERVER_ROOTS.to_vec(),
+ };
+ let tls = rustls::ClientConfig::builder_with_provider(std::sync::Arc::new(
+ rustls::crypto::ring::default_provider(),
+ ))
+ .with_safe_default_protocol_versions()
+ .expect("ring supports the default TLS protocol versions")
+ .with_root_certificates(roots)
+ .with_no_client_auth();
+ builder.tls_backend_preconfigured(tls)
+ }
+}
+
+#[cfg(test)]
+#[path = "proxy_compat_tests.rs"]
+mod tests;
diff --git a/crates/openhuman-core/src/web3/x402/proxy_compat_tests.rs b/crates/openhuman-core/src/web3/x402/proxy_compat_tests.rs
new file mode 100644
index 0000000000..c70a58b9e7
--- /dev/null
+++ b/crates/openhuman-core/src/web3/x402/proxy_compat_tests.rs
@@ -0,0 +1,126 @@
+use super::*;
+
+use crate::config::ProxyScope;
+use tokio::io::{AsyncReadExt, AsyncWriteExt};
+
+async fn responder() -> (std::net::SocketAddr, tokio::task::JoinHandle<String>) {
+ let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
+ let addr = listener.local_addr().unwrap();
+ let task = crate::core::runtime::spawn_scoped(async move {
+ let (mut stream, _) = listener.accept().await.unwrap();
+ let mut request = Vec::new();
+ while !request.windows(4).any(|window| window == b"\r\n\r\n") {
+ let mut bytes = [0; 1024];
+ let read = stream.read(&mut bytes).await.unwrap();
+ assert!(read > 0);
+ request.extend_from_slice(&bytes[..read]);
+ }
+ stream
+ .write_all(b"HTTP/1.1 200 OK\r\nContent-Length: 2\r\nConnection: close\r\n\r\nok")
+ .await
+ .unwrap();
+ String::from_utf8(request).unwrap()
+ });
+ (addr, task)
+}
+
+fn builder() -> reqwest13::ClientBuilder {
+ // Isolate these local fixtures from any operator proxy environment.
+ reqwest13::Client::builder()
+ .no_proxy()
+ .timeout(std::time::Duration::from_secs(2))
+}
+
+#[tokio::test]
+async fn selected_http_proxy_receives_the_request_instead_of_the_destination() {
+ for all in [false, true] {
+ let (proxy, served) = responder().await;
+ let mut config = ProxyConfig {
+ enabled: true,
+ scope: ProxyScope::Services,
+ services: vec!["tool.x402_request".into()],
+ ..Default::default()
+ };
+ if all {
+ config.all_proxy = Some(format!("http://{proxy}"));
+ } else {
+ config.http_proxy = Some(format!("http://{proxy}"));
+ }
+ let client = apply(
+ builder().resolve("destination.invalid", "127.0.0.1:9".parse().unwrap()),
+ "tool.x402_request",
+ &config,
+ )
+ .build()
+ .unwrap();
+ let response = client
+ .get("http://destination.invalid/check")
+ .send()
+ .await
+ .unwrap();
+ assert_eq!(response.text().await.unwrap(), "ok");
+ assert!(served
+ .await
+ .unwrap()
+ .starts_with("GET http://destination.invalid/check HTTP/1.1"));
+ }
+}
+
+#[tokio::test]
+async fn unmatched_service_and_no_proxy_bypass_use_the_pinned_destination() {
+ for bypass in [false, true] {
+ let (destination, served) = responder().await;
+ let config = ProxyConfig {
+ enabled: true,
+ scope: ProxyScope::Services,
+ services: vec![if bypass {
+ "tool.x402_request"
+ } else {
+ "provider.openai"
+ }
+ .into()],
+ all_proxy: Some("http://127.0.0.1:1".into()),
+ no_proxy: if bypass {
+ vec!["destination.invalid".into()]
+ } else {
+ vec![]
+ },
+ ..Default::default()
+ };
+ let client = apply(
+ builder().resolve("destination.invalid", destination),
+ "tool.x402_request",
+ &config,
+ )
+ .build()
+ .unwrap();
+ assert_eq!(
+ client
+ .get("http://destination.invalid/check")
+ .send()
+ .await
+ .unwrap()
+ .text()
+ .await
+ .unwrap(),
+ "ok"
+ );
+ assert!(served.await.unwrap().starts_with("GET /check HTTP/1.1"));
+ }
+}
+
+#[test]
+fn https_proxy_and_invalid_proxy_settings_preserve_build_behavior() {
+ let mut config = ProxyConfig {
+ enabled: true,
+ https_proxy: Some("http://127.0.0.1:1".into()),
+ ..Default::default()
+ };
+ assert!(apply(builder(), "tool.x402_request", &config)
+ .build()
+ .is_ok());
+ config.https_proxy = Some("http://[broken".into());
+ assert!(apply(builder(), "tool.x402_request", &config)
+ .build()
+ .is_ok());
+}
diff --git a/crates/openhuman-core/src/web3/x402/seams.rs b/crates/openhuman-core/src/web3/x402/seams.rs
index 26c309e9d7..5cbe6bccd2 100644
--- a/crates/openhuman-core/src/web3/x402/seams.rs
+++ b/crates/openhuman-core/src/web3/x402/seams.rs
@@ -256,8 +256,8 @@ fn signature_bytes(signature: tinywallet_bus::wire::Signature) -> Result<Vec<u8>
}
impl ProxyPolicy for RuntimeProxyPolicy {
- fn apply(&self, builder: reqwest::ClientBuilder, service: &str) -> reqwest::ClientBuilder {
- crate::config::apply_runtime_proxy_to_builder(builder, service)
+ fn apply(&self, builder: reqwest13::ClientBuilder, service: &str) -> reqwest13::ClientBuilder {
+ super::proxy_compat::apply(builder, service, &crate::config::runtime_proxy_config())
}
fn allows_direct_connection(&self, service: &str) -> bool {
@@ -284,9 +284,9 @@ fn direct_connection_allowed(
"https_proxy",
"all_proxy",
];
- !(config.enabled && config.scope == crate::config::ProxyScope::Environment)
- && !config.should_apply_to_service(service)
- && !PROXY_ENV_KEYS.iter().any(|key| env_has_value(key))
+ !(config.enabled && config.scope == crate::config::ProxyScope::Environment
+ || config.should_apply_to_service(service)
+ || PROXY_ENV_KEYS.iter().any(|key| env_has_value(key)))
}
/// The crypto rail's payment builder, over OpenHuman's wallet and transport.
diff --git a/tests/x402_twit_sh_live.rs b/tests/x402_twit_sh_live.rs
index 049fd133ff..2acefdc4ff 100644
--- a/tests/x402_twit_sh_live.rs
+++ b/tests/x402_twit_sh_live.rs
@@ -1,21 +1,32 @@
//! Live integration test — makes a real x402 payment to twit.sh on Base.
//!
//! Run manually (requires a funded wallet):
-//! GGML_NATIVE=OFF cargo test --test x402_twit_sh_live -- --ignored --nocapture
+//! GGML_NATIVE=OFF cargo test -p openhuman-cli --features web3 --test x402_twit_sh_live -- --ignored --nocapture
+use std::sync::Arc;
+
+use openhuman_core::security::{AutonomyLevel, SecurityPolicy};
use openhuman_core::web3::x402;
use serde_json::json;
use tinytools::Tool;
#[tokio::test]
-#[ignore = "live: makes a real x402 payment to twit.sh on Base; needs a funded wallet and network. Run: GGML_NATIVE=OFF cargo test -p openhuman-cli --test x402_twit_sh_live -- --ignored --nocapture"]
+#[ignore = "live: makes a real x402 payment to twit.sh on Base; needs a funded wallet and network. Run: GGML_NATIVE=OFF cargo test -p openhuman-cli --features web3 --test x402_twit_sh_live -- --ignored --nocapture"]
async fn x402_pay_twit_sh_for_hal_finney_tweet() {
env_logger::init();
let tmp = tempfile::tempdir().unwrap();
x402::init_ledger(tmp.path(), "test-session");
- let tool = x402::request_tool();
+ // This ignored test explicitly opts into a paid request to one endpoint;
+ // use the current host authorization seam rather than bypassing it.
+ let security = Arc::new(SecurityPolicy {
+ autonomy: AutonomyLevel::Full,
+ workspace_dir: tmp.path().to_path_buf(),
+ action_dir: tmp.path().to_path_buf(),
+ ..SecurityPolicy::default()
+ });
+ let tool = x402::request_tool(security, vec!["x402.twit.sh".into()]);
let result = tool
.execute(json!({
"url": "https://x402.twit.sh/tweets/by/id?id=1110302988",
diff --git a/vendor/tinychannels b/vendor/tinychannels
index 5e3b2044b0..642687bb9a 160000
--- a/vendor/tinychannels
+++ b/vendor/tinychannels
@@ -1 +1 @@
-Subproject commit 5e3b2044b02d213bda91f5adcb07d90b7be0ebcb
+Subproject commit 642687bb9a328d6aa1659595a204c80eb2c2bd8c
diff --git a/vendor/tinywallet b/vendor/tinywallet
index accb920a18..6ae706c144 160000
--- a/vendor/tinywallet
+++ b/vendor/tinywallet
@@ -1 +1 @@
-Subproject commit accb920a18ccde6417ed3ef1df5d112ffe3a9cab
+Subproject commit 6ae706c1448b731fbf1cb74ee0ade94f0cde88af