gateway-text: prompt, response_tools and tool_output become one crate; desktop-core no longer compiles them twice (STRA-338 S8)

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.
This commit is contained in:
Pavlo Ratushnyi
2026-11-05 13:32:35 +01:00
parent 0aab895444
commit 7b1922d116
25 changed files with 94 additions and 46 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ product_path() {
local host_tests=(dry_run_prints_the_plan_and_changes_nothing a_failing_preflight_stops_before_any_change_and_says_how_to_fix_it)
PATH="${smi_path}" gate cargo test "${manifest[@]}" --no-fail-fast -p leleka-deploy --features test-fakes -- --skip "${host_tests[0]}" --skip "${host_tests[1]}"
PATH="${smi_path}" gate debt cargo test "${manifest[@]}" -p leleka-deploy --features test-fakes --test e2e -- "${host_tests[@]}"
gate cargo test "${manifest[@]}" --no-fail-fast -p leleka-memory -p leleka-runtime-client -p strata-control -p strata-desktop-core
gate cargo test "${manifest[@]}" --no-fail-fast -p leleka-memory -p leleka-runtime-client -p leleka-gateway-text -p strata-control -p strata-desktop-core
gate cargo test "${manifest[@]}" --no-fail-fast -p leleka-cuda-driver --features cuda-driver
gate cargo test "${manifest[@]}" --no-fail-fast -p leleka-runtime -p leleka-native-cpu-expert
# the remaining default-members (CPU, iGPU and NPU runtime, formats); the strict crates and experimental-ref run in the fast path
+1
View File
@@ -13,6 +13,7 @@
"leleka-deploy",
"leleka-memory",
"leleka-runtime-client",
"leleka-gateway-text",
"strata-control",
"strata-desktop-core",
"leleka-cuda-driver",