Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ jobs:
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2

- name: Build the Engine crates at the floor
run: cargo build --locked -p runvil-engine -p runvil-runtime -p runvil-lua -p runvil-prompt -p runvil-types -p runvil-vfs -p runvil-model-client
run: cargo build --locked -p runvil-engine -p runvil-runtime -p runvil-lua -p runvil-prompt -p runvil-types -p runvil-vfs

# The live test that CheapSeek can serve: a Host sends the shipped hello
# prompt through a real Gateway and the run ends with text. CheapSeek is
Expand Down
33 changes: 16 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "3"
members = ["crates/*", "crates/runvil-internal/types", "crates/runvil-internal/runtime", "crates/runvil-internal/lua", "crates/runvil-internal/markdown", "crates/runvil-internal/prompt", "crates/runvil-internal/vfs", "crates/runvil-internal/model-client", "crates/harness-internal/runner", "crates/harness-internal/plugin-loader", "crates/harness-internal/test-plugin"]
members = ["crates/*", "crates/runvil-internal/types", "crates/runvil-internal/runtime", "crates/runvil-internal/lua", "crates/runvil-internal/markdown", "crates/runvil-internal/prompt", "crates/runvil-internal/vfs", "crates/harness-internal/runner", "crates/harness-internal/plugin-loader", "crates/harness-internal/test-plugin"]
# crates/runvil-internal and crates/harness-internal are manifestless
# containers holding their families' private crates. Cargo prunes excluded
# subtrees from member globs, so a "crates/runvil-internal/*" glob beside
Expand All @@ -18,7 +18,6 @@ license = "BSL-1.0"
repository = "https://github.com/cppalliance/runvil-harness"

[workspace.dependencies]
bytes = "1"
runvil-engine = { path = "crates/runvil-engine" }
runvil-runtime = { path = "crates/runvil-internal/runtime" }
runvil-plugin = { path = "crates/runvil-plugin" }
Expand All @@ -33,13 +32,13 @@ runvil = { path = "crates/runvil" }
harness-runner = { path = "crates/harness-internal/runner" }
harness-plugin-loader = { path = "crates/harness-internal/plugin-loader" }
harness-gateway-client = { path = "crates/harness-gateway-client" }
# The chat-completions client, from its own repository, pinned by commit.
# `version` beside `git` keeps cargo-deny's wildcard check quiet. The
# `harness-gateway-client` adapter converts its types to the Engine's.
gateway-client = { version = "0.1.0", git = "https://github.com/cppalliance/gateway-client", rev = "46ead80f5f2f16677a6a4d6530d9e37271bebfff" }
# The chat-completions client and shared model/error/metrics/broker
# vocabulary, from their own repository, pinned by commit. `version`
# beside `git` keeps cargo-deny's wildcard check quiet.
gateway-client = { version = "0.1.0", git = "https://github.com/cppalliance/gateway-client", rev = "5315394ac4e44c00f727e0e69789c34c6dfc86b5", default-features = false }
gateway-types = { version = "0.1.0", git = "https://github.com/cppalliance/gateway-client", rev = "5315394ac4e44c00f727e0e69789c34c6dfc86b5" }
runvil-lua = { path = "crates/runvil-internal/lua" }
runvil-markdown = { path = "crates/runvil-internal/markdown" }
runvil-model-client = { path = "crates/runvil-internal/model-client" }
runvil-prompt = { path = "crates/runvil-internal/prompt" }
runvil-vfs = { path = "crates/runvil-internal/vfs" }
# default-features off: all three users (the Markdown parser, the prompt
Expand All @@ -61,7 +60,6 @@ serde_json = { version = "1", features = ["float_roundtrip"] }
# makes reqwest honor Windows registry and macOS proxies.
reqwest = { version = "0.13", default-features = false, features = ["json", "query", "rustls", "stream", "system-proxy"] }
rand = "0.9"
url = "2"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "net", "time", "sync"] }
# Dev-only: the mock servers that the Gateway client's and the mcp
# Plugin's tests send real requests to.
Expand Down
4 changes: 2 additions & 2 deletions crates/build-xtask/src/api/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub(super) const FACADES: [Facade; 2] = [
package: "runvil-engine",
dir: crate::facade_shape::FACADE_DIR,
containers: &[crate::engine_guards::ENGINE_CONTAINER],
public: &[],
public: &["gateway-types"],
allowed: &[],
},
Facade {
Expand All @@ -64,7 +64,7 @@ pub(super) const FACADES: [Facade; 2] = [
crate::doc_hidden::HARNESS_CONTAINER,
crate::engine_guards::ENGINE_CONTAINER,
],
public: &["runvil-plugin"],
public: &["gateway-types", "runvil-plugin"],
allowed: &["runvil_plugin_sys"],
},
];
Expand Down
2 changes: 1 addition & 1 deletion crates/build-xtask/src/doc_hidden-tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ fn every_rs_file_under_the_facade_and_the_container_is_scanned() {
"crates/runvil-engine/benches/surface.rs",
"crates/runvil-internal/lua/src/nested/deep.rs",
"crates/runvil-internal/lua/build.rs",
"crates/runvil-internal/model-client/src/client/wire.rs",
"crates/runvil-internal/types/src/nested/wire.rs",
"crates/runvil-internal/stray.rs",
];
let mut files = BANNED_DIR_LIBS.to_vec();
Expand Down
6 changes: 3 additions & 3 deletions crates/build-xtask/src/facade_shape-tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ fn workspace_root() -> PathBuf {
}

/// The dependency crates the source fixtures may re-export from.
const FIXTURE_CRATES: [&str; 3] = ["runvil_runtime", "runvil_model_client", "runvil_types"];
const FIXTURE_CRATES: [&str; 3] = ["runvil_runtime", "gateway_types", "runvil_types"];

/// A facade manifest declaring exactly [`FIXTURE_CRATES`].
const FIXTURE_MANIFEST: &str = "[package]\nname = \"runvil-engine\"\n\n[dependencies]\n\
runvil-runtime.workspace = true\n\
runvil-model-client.workspace = true\n\
gateway-types.workspace = true\n\
runvil-types.workspace = true\n";

fn check(text: &str) -> Vec<String> {
Expand Down Expand Up @@ -114,7 +114,7 @@ fn every_allowed_form_passes() {
let text = r#"#![doc = include_str!("lib.md")]

pub use runvil_runtime::Run;
pub use runvil_model_client::model::CompletionOptions as ModelOptions;
pub use gateway_types::CompletionOptions as ModelOptions;
pub use ::runvil_runtime::Step;

/// The effects a run issues.
Expand Down
6 changes: 3 additions & 3 deletions crates/harness-gateway-client/AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# harness-gateway-client

- Conversions between `gateway-client` types and Engine types live in `convert.rs`, through the functions of that file. No code here shapes a request body, because the client's `build_request_body` is the one place that does.
- Every `Completion` and `ToolCall` is built through the Engine's constructors, so the Engine's checks run on each reply.
- `expose_secret` is called in `provide_gateway_resources` only. The broker passes the key to the client as a `SecretString` and never reads it.
- `GatewayBroker`, `GatewayClient`, `GatewayEndpoint`, and `SecretString` are re-exported from `gateway-client`. No code here shapes a request body, because `gateway-types`'s `build_request_body` is the one place that does.
- Every `Completion` and `ToolCall` is built through `gateway-types`'s constructors, so the checks run on each reply.
- `expose_secret` is called in `provide_gateway_resources` only.
19 changes: 6 additions & 13 deletions crates/harness-gateway-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@ repository.workspace = true
publish = false

[dependencies]
# The one crate a Host depends on: the `InferenceBroker` trait the
# Gateway broker implements, with its boxed future, the chat vocabulary
# (Message, ToolSchema, Completion) and the universal error the
# conversions build through the Engine's public constructors, the
# canonical metrics and model catalog vocabulary, and the `HostResources`
# in which a Host offers the Gateway to its Plugins.
runvil.workspace = true
# The HTTP client, from its own repository, pinned by commit. This crate
# converts its plain types to the Engine's.
# The HTTP client and `InferenceBroker` implementation, from its own
# repository, pinned by commit.
gateway-client.workspace = true
# Derives the wire shape of the llama.cpp `timings` section in `metrics.rs`.
serde.workspace = true
# The metrics sections, the error facts, and the entry that offers the
# Gateway to a Host's Plugins are JSON.
# The one crate a Host depends on: `Timer`, `BoxFuture`, `Error`, and the
# `HostResources` in which a Host offers the Gateway to its Plugins.
runvil.workspace = true
# The entry that offers the Gateway to a Host's Plugins is JSON.
serde_json.workspace = true
# The sleeps of `TokioTimer`. Non-test code spawns no task.
tokio = { workspace = true, features = ["time"] }
Expand Down
138 changes: 0 additions & 138 deletions crates/harness-gateway-client/src/broker-tests-catalog.rs

This file was deleted.

Loading
Loading