control-plane/src/{prompt,response_tools,tool_output}.rs (pure text logic: pinned chat template renderer, tool catalog, tool-call
parser) move by git mv to the new leaf crate crates/gateway-text. strata-control re-exports them under the same module paths
(crate::prompt, crate::tool_output keep working for tests and callers); strata-desktop-core replaces its three #[path] includes with
imports. The leleka-runtime GPU proof modules that hash prompt.rs follow the new location. The only text change in the moved files is
the relative include_str path to engine/strata. serde_json features (preserve_order + float_roundtrip) equal what both hosts already
got through unification.
Verified: cargo test strata-control + strata-desktop-core + gateway-text on the host: 504 tests, 0 failed; the 30 tests that vanish
are exactly the duplicate runtime_prompt/runtime_tool_catalog/runtime_tool_parser copies of the same 30 tests (11+2+17), which now run
once. WSL x86_64-linux cargo check --tests leleka-runtime: 62 warnings, unchanged. fmt clean on the new crate.
28 lines
904 B
Rust
28 lines
904 B
Rust
//! Portable desktop contracts. Inventory is not an inference capability claim.
|
|
pub mod gateway;
|
|
pub mod hardware;
|
|
pub mod managed_worker;
|
|
pub mod node;
|
|
pub mod node_connection;
|
|
pub mod node_proxy;
|
|
pub mod planner;
|
|
pub mod pool;
|
|
pub mod remote;
|
|
pub mod runtime_client;
|
|
pub mod runtime_gateway;
|
|
pub mod runtime_rpc;
|
|
mod runtime_sampling;
|
|
pub mod runtime_tool_response;
|
|
pub mod runtime_tools;
|
|
// The verified pure Rust template, tool catalog and tool-call parser come from the leaf crate shared with the gateway (no control-plane
|
|
// crate or C bridge link, and no second compile of the same files). Native text and experimental daemon tools use Effort::None.
|
|
use leleka_gateway_text::prompt as runtime_prompt;
|
|
use leleka_gateway_text::response_tools as runtime_tool_catalog;
|
|
use leleka_gateway_text::tool_output as runtime_tool_parser;
|
|
|
|
mod operation_journal;
|
|
|
|
pub mod ssh_tunnel;
|
|
|
|
pub mod remote_install;
|