diff --git a/Cargo.toml b/Cargo.toml index 5fbbdf347..fd1bd9a3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,10 +52,11 @@ tinycomputer-accessibility = { path = "crates/tinycomputer-accessibility" } # crate of the vendored `vendor/tinyinference` submodule, pinned by its gitlink # so provider validation and retry behavior are reproducible. Only this crate # of TinyInference is linked into the module. -tinyinference-decisions = { path = "vendor/tinyinference/crates/tinyinference-decisions" } +tinyinference-decisions = { git = "https://github.com/tinyhumansai/tinyinference", rev = "02c01b72f70cd3747304b2a5a696b52a49fdd4fd" } # The optional LLM planner's model client (engine `planner` feature) and the -# lab's author. -tinyinference-llm = { path = "vendor/tinyinference/crates/tinyinference-llm" } +# lab's author. Naming the shared source lets a host workspace redirect it to +# its single TinyInference copy; standalone builds use the local patch below. +tinyinference-llm = { git = "https://github.com/tinyhumansai/tinyinference", rev = "02c01b72f70cd3747304b2a5a696b52a49fdd4fd" } # The browser automation engine, linked as a library: `execute_command` over a # `DaemonState`. Vendored from the tinyhumansai fork until # vercel-labs/agent-browser#2008 lands upstream. @@ -121,6 +122,12 @@ tinybus = { path = "vendor/tinybus/crates/tinybus" } tinybus-macros = { path = "vendor/tinybus/crates/tinybus-macros" } tinybus-module = { path = "vendor/tinybus/crates/tinybus-module" } +[patch."https://github.com/tinyhumansai/tinyinference"] +# Keep standalone TinyComputer builds on the pinned submodule while allowing +# an embedding workspace's top-level patch to provide its shared copy. +tinyinference-decisions = { path = "vendor/tinyinference/crates/tinyinference-decisions" } +tinyinference-llm = { path = "vendor/tinyinference/crates/tinyinference-llm" } + [workspace.lints.rust] unsafe_code = "forbid" missing_docs = "warn"