diff --git a/Cargo.lock b/Cargo.lock index a217efd..15162f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -941,6 +941,33 @@ dependencies = [ "serde_core", ] +[[package]] +name = "candle-core" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d11c8be87cfbaef9ebb62fb3f850d1fc8e00cc1d11d393fdbe55a4d5c2cdb325" +dependencies = [ + "byteorder", + "float8", + "gemm 0.19.0", + "half", + "libc", + "libm", + "memmap2", + "num-traits", + "num_cpus", + "parking_lot", + "rand 0.9.5", + "rand_distr 0.5.1", + "rayon", + "safetensors 0.8.0", + "thiserror 2.0.21", + "tokenizers 0.23.2", + "yoke 0.8.3", + "zerocopy", + "zip 9.7.3", +] + [[package]] name = "candle-metal-kernels" version = "0.11.0" @@ -957,6 +984,41 @@ dependencies = [ "tracing", ] +[[package]] +name = "candle-nn" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "437fabe77547c2447c7bdf3cc946e19db29a2832440176b419f77c80b0a9a05e" +dependencies = [ + "candle-core", + "half", + "libc", + "num-traits", + "rayon", + "safetensors 0.8.0", + "serde", + "thiserror 2.0.21", +] + +[[package]] +name = "candle-transformers" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b1e1abeac23d7df4f94e8a3852b3dbb661d332e37c3bef479507bac867187b2" +dependencies = [ + "byteorder", + "candle-core", + "candle-nn", + "fancy-regex 0.19.2", + "num-traits", + "rand 0.9.5", + "rayon", + "serde", + "serde_json", + "serde_plain", + "tracing", +] + [[package]] name = "candle-ug" version = "0.11.0" @@ -1236,6 +1298,15 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "constant_time_eq" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eb6feb175df65d0a3ccd3e73484e940d0ac664e8034f0519fd49a93db3071d9" +dependencies = [ + "rustversion", +] + [[package]] name = "convert_case" version = "0.6.0" @@ -1515,6 +1586,12 @@ version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d" +[[package]] +name = "daachorse" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5614204febbc33cc07a2806aa6440b904ac012b68eecc37f4493ea4a76455a3d" + [[package]] name = "darling" version = "0.11.0" @@ -1984,7 +2061,7 @@ checksum = "e1d926b4d407d372f141f93bb444696142c29d32962ccbd3531117cf3aa0bfa9" [[package]] name = "ed-acp" -version = "1.4.1" +version = "1.5.0" dependencies = [ "agent-client-protocol", "anyhow", @@ -2007,7 +2084,7 @@ dependencies = [ [[package]] name = "ed-acp-tauri" -version = "1.4.1" +version = "1.5.0" dependencies = [ "agent-client-protocol", "ed-acp", @@ -2023,7 +2100,7 @@ dependencies = [ [[package]] name = "ed-acp-testkit" -version = "1.4.1" +version = "1.5.0" dependencies = [ "serde_json", "tokio", @@ -2032,7 +2109,7 @@ dependencies = [ [[package]] name = "ed-acp-tui" -version = "1.4.1" +version = "1.5.0" dependencies = [ "agent-client-protocol", "anyhow", @@ -2044,7 +2121,7 @@ dependencies = [ [[package]] name = "ed-agent" -version = "1.4.1" +version = "1.5.0" dependencies = [ "async-trait", "futures-core", @@ -2059,7 +2136,7 @@ dependencies = [ [[package]] name = "ed-agent-ffi" -version = "1.4.1" +version = "1.5.0" dependencies = [ "async-trait", "cc", @@ -2074,7 +2151,7 @@ dependencies = [ [[package]] name = "ed-agent-tauri" -version = "1.4.1" +version = "1.5.0" dependencies = [ "async-trait", "ed-agent", @@ -2088,7 +2165,7 @@ dependencies = [ [[package]] name = "ed-claude" -version = "1.4.1" +version = "1.5.0" dependencies = [ "agent-client-protocol", "anyhow", @@ -2103,7 +2180,7 @@ dependencies = [ [[package]] name = "ed-mcp" -version = "1.4.1" +version = "1.5.0" dependencies = [ "agent-client-protocol", "anyhow", @@ -2122,7 +2199,7 @@ dependencies = [ [[package]] name = "ed-onde-account" -version = "1.4.1" +version = "1.5.0" dependencies = [ "axum", "reqwest 0.13.5", @@ -2366,6 +2443,28 @@ dependencies = [ "regex-syntax", ] +[[package]] +name = "fancy-regex" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72cf461f865c862bb7dc573f643dd6a2b6842f7c30b07882b56bd148cc2761b8" +dependencies = [ + "bit-set 0.8.0", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "fancy-regex" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d301f5bf187b3c295fce6468d3875037a0bccc5f6b151c63cac2f85babf21912" +dependencies = [ + "bit-set 0.8.0", + "regex-automata", + "regex-syntax", +] + [[package]] name = "fastrand" version = "2.5.0" @@ -5154,15 +5253,18 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "onde" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eb18dc9ca66ea6a7e45e06b2fcc83c1f6b58a705641afe320d563a06dab77be" +checksum = "1bdbaf0854cac7ec970691d378f73bfe8d4503159ff27a9fc2629cfae5e92221" dependencies = [ "anyhow", + "candle-core", + "candle-transformers", "cc", "dotenvy", "hf-hub", "home", + "js-sys", "log", "onde-mistralrs", "onde-mistralrs-core", @@ -5171,9 +5273,13 @@ dependencies = [ "serde_json", "smbcloud-gresiq-sdk", "thiserror 2.0.21", + "tokenizers 0.22.2", "tokio", "tsync", "uniffi", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", ] [[package]] @@ -5203,7 +5309,7 @@ dependencies = [ "tokenizers 0.22.2", "yoke 0.8.3", "zerocopy", - "zip", + "zip 8.6.0", ] [[package]] @@ -8705,6 +8811,7 @@ dependencies = [ "dary_heap", "derive_builder", "esaxx-rs", + "fancy-regex 0.14.0", "getrandom 0.3.4", "itertools", "log", @@ -8726,6 +8833,39 @@ dependencies = [ "unicode_categories", ] +[[package]] +name = "tokenizers" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7afbf6e88718afcc138bad01d6ccc3051dbbc3b2ce9793d8b8a3aeb610969cfc" +dependencies = [ + "ahash", + "compact_str", + "daachorse", + "dary_heap", + "derive_builder", + "esaxx-rs", + "fancy-regex 0.17.0", + "getrandom 0.3.4", + "itertools", + "log", + "macro_rules_attribute", + "monostate", + "paste", + "rand 0.9.5", + "rayon", + "rayon-cond", + "regex", + "regex-syntax", + "serde", + "serde_json", + "spm_precompiled", + "thiserror 2.0.21", + "unicode-normalization-alignments", + "unicode-segmentation", + "unicode_categories", +] + [[package]] name = "tokio" version = "1.53.2" @@ -9170,6 +9310,12 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e" +[[package]] +name = "typed-path" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e" + [[package]] name = "typeid" version = "1.0.3" @@ -10768,6 +10914,20 @@ name = "zeroize" version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] [[package]] name = "zerotrie" @@ -10811,7 +10971,25 @@ dependencies = [ "crc32fast", "indexmap 2.14.2", "memchr", - "typed-path", + "typed-path 0.12.3", +] + +[[package]] +name = "zip" +version = "9.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e50f7b2212e4635244be3c363b53273d159f2523eb7db3096c1d2861c1b603" +dependencies = [ + "constant_time_eq", + "crc32fast", + "getrandom 0.4.3", + "indexmap 2.14.2", + "libc", + "memchr", + "nix", + "typed-path 0.13.0", + "windows-sys 0.61.2", + "zeroize", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index df66d2e..51a2d68 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ exclude = ["examples/web-chat"] # Shared across every crate in the workspace so a release moves one number. # `sync-version` tooling (see the Makefile) reads these. [workspace.package] -version = "1.4.1" +version = "1.5.0" edition = "2021" rust-version = "1.94" license = "MIT OR Apache-2.0" @@ -29,11 +29,11 @@ homepage = "https://ondeinference.com" [workspace.dependencies] # The inference engine Ed wraps, resolved from crates.io like any dependency -# (there is no path override to a sibling checkout). 1.4.0 is the first release -# whose wasm32 stub engine matches the real engine's signatures, so ed-agent -# compiles for wasm32-unknown-unknown. ChatEngine::complete, which ed-acp's +# (there is no path override to a sibling checkout). 1.5.0 is the first release +# with a real engine on wasm32-unknown-unknown, so ed-agent runs a model in the +# browser as well as compiling there. ChatEngine::complete, which ed-acp's # local provider calls, arrived in 1.3.2. -onde = { version = "1.4.0" } +onde = { version = "1.5.0" } async-trait = "0.1" serde = { version = "1", features = ["derive"] } serde_json = "1" @@ -64,14 +64,14 @@ directories = "6" base64 = "0.23" # Internal -ed-agent = { version = "1.4.1", path = "crates/ed-agent" } -ed-mcp = { version = "1.4.1", path = "crates/ed-mcp" } -ed-acp = { version = "1.4.1", path = "crates/ed-acp" } -ed-acp-tauri = { version = "1.4.1", path = "crates/ed-acp-tauri" } -ed-acp-tui = { version = "1.4.1", path = "crates/ed-acp-tui" } -ed-acp-testkit = { version = "1.4.1", path = "crates/ed-acp-testkit" } -ed-onde-account = { version = "1.4.1", path = "crates/ed-onde-account" } -ed-claude = { version = "1.4.1", path = "crates/ed-claude" } +ed-agent = { version = "1.5.0", path = "crates/ed-agent" } +ed-mcp = { version = "1.5.0", path = "crates/ed-mcp" } +ed-acp = { version = "1.5.0", path = "crates/ed-acp" } +ed-acp-tauri = { version = "1.5.0", path = "crates/ed-acp-tauri" } +ed-acp-tui = { version = "1.5.0", path = "crates/ed-acp-tui" } +ed-acp-testkit = { version = "1.5.0", path = "crates/ed-acp-testkit" } +ed-onde-account = { version = "1.5.0", path = "crates/ed-onde-account" } +ed-claude = { version = "1.5.0", path = "crates/ed-claude" } # gemm-common (via candle, via onde) depends on sysctl for every # `target_vendor = "apple"`, but sysctl 0.6.0 only has a `sys` module behind diff --git a/examples/web-chat/Cargo.toml b/examples/web-chat/Cargo.toml index 6099b7b..00ce2e3 100644 --- a/examples/web-chat/Cargo.toml +++ b/examples/web-chat/Cargo.toml @@ -13,10 +13,8 @@ crate-type = ["cdylib"] [dependencies] ed-agent = { path = "../../crates/ed-agent" } # Used only for web_store::download_model; ed-agent does not re-export it. The -# browser engine and web_store are in ondeinference/onde#50 and not released -# yet, so this does not build from crates.io until a release has them. Raise -# the requirement to that release when it is out. -onde = "1.4.0" +# browser engine and web_store arrived in onde 1.5.0. +onde = "1.5.0" wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" js-sys = "0.3"