@ondeinference / ed Mirror · read-only / commits / 3439e9a
Fork 0

Read-only mirror of github.com/ondeinference/ed.

Mirrored from https://github.com/ondeinference/ed.git

Synced Nov 23, 01:00 UTC

ed-agent: require onde 1.4.0 and check wasm32 in CI

onde 1.4.0 has a wasm32 stub engine whose signatures match the real engine, so ed-agent builds for wasm32-unknown-unknown against the published crate. Bump the workspace dependency to it and refresh the lockfile (uniffi stays at =0.31.0). Add a check-wasm32 job that runs cargo check and clippy -D warnings for ed-agent on that target, and make the CI status job wait on it. Update the Platforms crate doc to say wasm32-unknown-unknown builds against onde's web target. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si> Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>

Seto Elkahfi committed Nov 16, 2026 at 11:58 UTC 3439e9a7e45e7f4d4b10e28daf119d668427145e
4 files changed +103 -57
.github/workflows/ci.yml
+30 -1
@@ -98,9 +98,38 @@ jobs:
98 - run: cargo clippy --locked --workspace --all-targets -- -D warnings
99 - run: cargo test --locked --workspace
100
101 + check-wasm32:
102 + name: Check wasm32
103 + needs: changes
104 + if: needs.changes.outputs.rust == 'true'
105 + runs-on: ubuntu-latest
106 + defaults:
107 + run:
108 + working-directory: ed
109 + steps:
110 + - uses: actions/checkout@v6
111 + with:
112 + path: ed
113 + - name: Read Rust toolchain
114 + run: |
115 + rust_toolchain="$(sed -n 's/^channel = "\(.*\)"/\1/p' rust-toolchain.toml | head -n 1)"
116 + test -n "$rust_toolchain"
117 + echo "RUST_TOOLCHAIN=$rust_toolchain" >> "$GITHUB_ENV"
118 + - uses: dtolnay/rust-toolchain@stable
119 + with:
120 + toolchain: ${{ env.RUST_TOOLCHAIN }}
121 + targets: wasm32-unknown-unknown
122 + components: clippy
123 + - uses: Swatinem/rust-cache@v2
124 + with:
125 + workspaces: ed
126 + key: wasm32
127 + - run: cargo check --locked --target wasm32-unknown-unknown -p ed-agent
128 + - run: cargo clippy --locked --target wasm32-unknown-unknown -p ed-agent -- -D warnings
129 +
130 ci:
131 name: CI status
103 - needs: [changes, actionlint, check]
132 + needs: [changes, actionlint, check, check-wasm32]
133 if: always()
134 runs-on: ubuntu-latest
135 steps:
Cargo.lock
+64 -48
@@ -1725,17 +1725,6 @@ dependencies = [
1725 "serde_core",
1726 ]
1727
1728 -[[package]]
1729 -name = "derive-new"
1730 -version = "0.7.0"
1731 -source = "registry+https://github.com/rust-lang/crates.io-index"
1732 -checksum = "2cdc8d50f426189eef89dac62fabfa0abb27d5cc008f25bf4156a0203325becc"
1733 -dependencies = [
1734 - "proc-macro2",
1735 - "quote",
1736 - "syn 2.0.119",
1737 -]
1738 -
1728 [[package]]
1729 name = "derive_builder"
1730 version = "0.20.2"
@@ -4489,6 +4478,16 @@ dependencies = [
4478 "paste",
4479 ]
4480
4481 +[[package]]
4482 +name = "metrics"
4483 +version = "0.24.6"
4484 +source = "registry+https://github.com/rust-lang/crates.io-index"
4485 +checksum = "89550ee9f79e88fef3119de263694973a8adb26c21d75322164fb8c493039fe2"
4486 +dependencies = [
4487 + "portable-atomic",
4488 + "rapidhash",
4489 +]
4490 +
4491 [[package]]
4492 name = "mime"
4493 version = "0.3.17"
@@ -4511,6 +4510,7 @@ version = "2.24.0"
4510 source = "registry+https://github.com/rust-lang/crates.io-index"
4511 checksum = "86886cf6dbf4e614b19c9a1eec9775f021869d7eadde0fc73921a81b90c9b4c9"
4512 dependencies = [
4513 + "indexmap 2.14.2",
4514 "memo-map",
4515 "serde",
4516 "serde_json",
@@ -5154,9 +5154,9 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
5154
5155 [[package]]
5156 name = "onde"
5157 -version = "1.3.2"
5157 +version = "1.4.0"
5158 source = "registry+https://github.com/rust-lang/crates.io-index"
5159 -checksum = "cc87dc77609c5ed63840b263bc548acf50c1a6992a0a0834c032482e3cddc63b"
5159 +checksum = "8eb18dc9ca66ea6a7e45e06b2fcc83c1f6b58a705641afe320d563a06dab77be"
5160 dependencies = [
5161 "anyhow",
5162 "cc",
@@ -5226,9 +5226,9 @@ dependencies = [
5226
5227 [[package]]
5228 name = "onde-mistralrs"
5229 -version = "0.9.3"
5229 +version = "0.9.5"
5230 source = "registry+https://github.com/rust-lang/crates.io-index"
5231 -checksum = "689f038ebc5d6d11e4880a24e50d62f91bbf21358b92c9b5cf7bf5e65af232bd"
5231 +checksum = "0d9f41269feaffb3e452022f04a9cfb95859ed950889b6c1d010391531847260"
5232 dependencies = [
5233 "anyhow",
5234 "clap 4.6.7",
@@ -5254,9 +5254,9 @@ dependencies = [
5254
5255 [[package]]
5256 name = "onde-mistralrs-audio"
5257 -version = "0.9.3"
5257 +version = "0.9.5"
5258 source = "registry+https://github.com/rust-lang/crates.io-index"
5259 -checksum = "71b9a72504697c5b91e1d0448d67883e8d3046ad060200610c0484aef5dfaee5"
5259 +checksum = "787f40176eda80bdef527227ba43a7d4dac3287a3d7e28af5b4072b92abee042"
5260 dependencies = [
5261 "anyhow",
5262 "apodize",
@@ -5266,9 +5266,9 @@ dependencies = [
5266
5267 [[package]]
5268 name = "onde-mistralrs-code-exec"
5269 -version = "0.9.3"
5269 +version = "0.9.5"
5270 source = "registry+https://github.com/rust-lang/crates.io-index"
5271 -checksum = "4016265a19fa51ad973e99a6746904e432d3140b5c2ca14a41077edc6b8648c2"
5271 +checksum = "b3851924d7b5dfceaa8309ada9d04d983a4b6cf8761117145e1a035011e4078f"
5272 dependencies = [
5273 "anyhow",
5274 "base64 0.22.1",
@@ -5286,9 +5286,9 @@ dependencies = [
5286
5287 [[package]]
5288 name = "onde-mistralrs-core"
5289 -version = "0.9.3"
5289 +version = "0.9.6"
5290 source = "registry+https://github.com/rust-lang/crates.io-index"
5291 -checksum = "3e9266eb62ceb5a9cf8fb5342e6a9b78e286f47b670762559ee800a5a2db5132"
5291 +checksum = "40fc05573a7a15f901856e1b0c6341282693156cffbc05c6dfa9b9d49c0570eb"
5292 dependencies = [
5293 "ahash",
5294 "akin",
@@ -5305,9 +5305,9 @@ dependencies = [
5305 "chrono",
5306 "clap 4.6.7",
5307 "csv",
5308 - "derive-new",
5308 "derive_more",
5309 "dirs 6.0.0",
5310 + "dispatch2",
5311 "either",
5312 "float8",
5313 "futures",
@@ -5326,6 +5326,7 @@ dependencies = [
5326 "libc",
5327 "llguidance",
5328 "lrtable",
5329 + "metrics",
5330 "mime_guess",
5331 "minijinja",
5332 "minijinja-contrib",
@@ -5337,11 +5338,11 @@ dependencies = [
5338 "onde-mistralrs-audio",
5339 "onde-mistralrs-code-exec",
5340 "onde-mistralrs-mcp",
5341 + "onde-mistralrs-metal-compile",
5342 "onde-mistralrs-paged-attn",
5343 "onde-mistralrs-quant",
5344 "onde-mistralrs-sandbox",
5345 "onde-mistralrs-vision",
5344 - "onde-tqdm",
5346 "openai-harmony",
5347 "ordered-float",
5348 "parking_lot",
@@ -5365,10 +5366,12 @@ dependencies = [
5366 "serde-saphyr",
5367 "serde_json",
5368 "serde_plain",
5369 + "sha2",
5370 "statrs",
5371 "strum 0.27.2",
5372 "symphonia",
5373 "sysinfo",
5374 + "tempfile",
5375 "thiserror 2.0.21",
5376 "tokenizers 0.21.4",
5377 "tokio",
@@ -5377,6 +5380,7 @@ dependencies = [
5380 "toktrie",
5381 "toktrie_hf_tokenizers",
5382 "toml 0.9.12+spec-1.1.0",
5383 + "tqdm",
5384 "tracing",
5385 "tracing-subscriber",
5386 "urlencoding",
@@ -5387,9 +5391,9 @@ dependencies = [
5391
5392 [[package]]
5393 name = "onde-mistralrs-macros"
5390 -version = "0.9.3"
5394 +version = "0.9.5"
5395 source = "registry+https://github.com/rust-lang/crates.io-index"
5392 -checksum = "6e624ab1f0896a07ff437f4c49050c891918c0f01a008113c788b64e5f76c1d9"
5396 +checksum = "8dd60c4cb0dc37105b335451643d075af0d293b8203df9bb038e88d83df8e475"
5397 dependencies = [
5398 "darling 0.23.0",
5399 "proc-macro2",
@@ -5399,9 +5403,9 @@ dependencies = [
5403
5404 [[package]]
5405 name = "onde-mistralrs-mcp"
5402 -version = "0.9.3"
5406 +version = "0.9.5"
5407 source = "registry+https://github.com/rust-lang/crates.io-index"
5404 -checksum = "c8bcb140ed84c4dd2683f1533fc58905f959e7394843bc02a315bfdd3ffcbc25"
5408 +checksum = "f5b5bf129c896c975a98575b9752291bb47b38a5bd3170944a8c171cc491af1b"
5409 dependencies = [
5410 "anyhow",
5411 "async-trait",
@@ -5421,9 +5425,9 @@ dependencies = [
5425
5426 [[package]]
5427 name = "onde-mistralrs-metal-compile"
5424 -version = "0.9.3"
5428 +version = "0.9.5"
5429 source = "registry+https://github.com/rust-lang/crates.io-index"
5426 -checksum = "44109415be2971d311b403095d3c278443210d0ccc1c383a84ad44da5f5b1abf"
5430 +checksum = "02e15b1154394bc9750f69c52b55de0295e6f7d3a3f3151f9ad8d88e066629af"
5431 dependencies = [
5432 "candle-metal-kernels",
5433 "objc2-metal",
@@ -5431,9 +5435,9 @@ dependencies = [
5435
5436 [[package]]
5437 name = "onde-mistralrs-paged-attn"
5434 -version = "0.9.3"
5438 +version = "0.9.5"
5439 source = "registry+https://github.com/rust-lang/crates.io-index"
5436 -checksum = "6f93c8c04d15ebce014e80675387d269bcead85be063bf9afce8b353d64e61b8"
5440 +checksum = "9ba6ae15cc8ce43c949fd038a8df0858e41dca38e4b4b77925aa04e6dc4aee84"
5441 dependencies = [
5442 "anyhow",
5443 "candle-metal-kernels",
@@ -5449,17 +5453,20 @@ dependencies = [
5453
5454 [[package]]
5455 name = "onde-mistralrs-quant"
5452 -version = "0.9.3"
5456 +version = "0.9.5"
5457 source = "registry+https://github.com/rust-lang/crates.io-index"
5454 -checksum = "1d4ed48af14e3e5ff318a6ea6cefbc1e50ee753f143bd1ae6c0f188c33033d5a"
5458 +checksum = "a25f0259f21cf04d86f18b3b0f48b072bcc4a989cadae513ca142ab1ccb0c60a"
5459 dependencies = [
5460 + "bytemuck",
5461 "byteorder",
5462 "candle-metal-kernels",
5463 "dispatch2",
5464 + "fancy-regex 0.14.0",
5465 "float8",
5466 "futures",
5467 "half",
5468 "hf-hub",
5469 + "indexmap 2.14.2",
5470 "indicatif 0.18.6",
5471 "lazy_static",
5472 "libc",
@@ -5484,9 +5491,9 @@ dependencies = [
5491
5492 [[package]]
5493 name = "onde-mistralrs-sandbox"
5487 -version = "0.9.3"
5494 +version = "0.9.5"
5495 source = "registry+https://github.com/rust-lang/crates.io-index"
5489 -checksum = "77845cc6e16e3b1eebed11d3ba6a3a56785f0031421bf46d1deefbe281aaa19e"
5496 +checksum = "93b8ba017e502f2b7f2da67ced422ae73a7ea2494759b8c7a8e5fa38b341b3f5"
5497 dependencies = [
5498 "anyhow",
5499 "itoa",
@@ -5502,26 +5509,15 @@ dependencies = [
5509
5510 [[package]]
5511 name = "onde-mistralrs-vision"
5505 -version = "0.9.3"
5512 +version = "0.9.5"
5513 source = "registry+https://github.com/rust-lang/crates.io-index"
5507 -checksum = "8cdc7ae244c416860838e9cb3ff5cd8ae8acf474f48f2fe15d45bc5491215760"
5514 +checksum = "f231953141403eb6a825d6c247dffd7aa2e99b01b7a70d075bb72533c8dc10e8"
5515 dependencies = [
5516 "image",
5517 "onde-candle-core",
5518 "rayon",
5519 ]
5520
5514 -[[package]]
5515 -name = "onde-tqdm"
5516 -version = "0.8.2"
5517 -source = "registry+https://github.com/rust-lang/crates.io-index"
5518 -checksum = "2d96f4fcb4af06959bf9c9b81ace0502e2be2d11d7e037c94f3f7851bde720ea"
5519 -dependencies = [
5520 - "anyhow",
5521 - "crossterm",
5522 - "once_cell",
5523 -]
5524 -
5521 [[package]]
5522 name = "onig"
5523 version = "6.5.3"
@@ -6340,6 +6336,15 @@ dependencies = [
6336 "rand_core 0.10.1",
6337 ]
6338
6339 +[[package]]
6340 +name = "rapidhash"
6341 +version = "4.5.1"
6342 +source = "registry+https://github.com/rust-lang/crates.io-index"
6343 +checksum = "5da7e78a036ce858e8d55b7e7dc8ba3a88b78350fd2155d3591bbd966b58589e"
6344 +dependencies = [
6345 + "rustversion",
6346 +]
6347 +
6348 [[package]]
6349 name = "ratatui"
6350 version = "0.30.2"
@@ -9009,6 +9014,17 @@ version = "0.3.3"
9014 source = "registry+https://github.com/rust-lang/crates.io-index"
9015 checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
9016
9017 +[[package]]
9018 +name = "tqdm"
9019 +version = "0.8.1"
9020 +source = "registry+https://github.com/rust-lang/crates.io-index"
9021 +checksum = "a882329b482cea1d2762e9b9ff1ed0f0327a1ec3a9ba7b8e8c4e3635908a4ae5"
9022 +dependencies = [
9023 + "anyhow",
9024 + "crossterm",
9025 + "once_cell",
9026 +]
9027 +
9028 [[package]]
9029 name = "tracing"
9030 version = "0.1.44"
Cargo.toml
+5 -3
@@ -27,9 +27,11 @@ homepage = "https://ondeinference.com"
27
28 [workspace.dependencies]
29 # The inference engine Ed wraps, resolved from crates.io like any dependency
30 -# (there is no path override to a sibling checkout). 1.3.2 is the first release
31 -# with ChatEngine::complete, which ed-acp's local provider calls.
32 -onde = { version = "1.3.2" }
30 +# (there is no path override to a sibling checkout). 1.4.0 is the first release
31 +# whose wasm32 stub engine matches the real engine's signatures, so ed-agent
32 +# compiles for wasm32-unknown-unknown. ChatEngine::complete, which ed-acp's
33 +# local provider calls, arrived in 1.3.2.
34 +onde = { version = "1.4.0" }
35 async-trait = "0.1"
36 serde = { version = "1", features = ["derive"] }
37 serde_json = "1"
crates/ed-agent/src/lib.rs
+4 -5
@@ -23,11 +23,10 @@
23 //! Ed has no `cfg(target_os)` gates. `onde` already splits real and fallback
24 //! implementations internally, so this crate compiles on every platform `onde`
25 //! supports (macOS, iOS, tvOS, visionOS, watchOS, Windows, Linux, Android) and
26 -//! simply surfaces `onde`'s error where it can't run inference. Outside that
27 -//! list (wasm32, for one) `onde` falls back to a stub engine with the same
28 -//! signatures, whose calls all return an "unsupported" error. Releases of
29 -//! `onde` up to 1.3.5 have a stub that drifted from the real engine, so Ed
30 -//! only builds on those targets against a newer release.
26 +//! simply surfaces `onde`'s error where it can't run inference. On
27 +//! `wasm32-unknown-unknown` it builds against `onde`'s web target. Other
28 +//! targets outside that list get a stub engine with the same signatures,
29 +//! whose calls all return an "unsupported" error.
30 //!
31 //! Do not add platform gates here, and be careful about adding them in a host:
32 //! a gate narrower than `onde`'s own support list silently disables chat on a