From 7093b6f4b09719e0fad242ed0855f60b419eccbd Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 20 Nov 2026 01:28:07 -0800 Subject: [PATCH 1/3] Require the web Plugin in the install cells The install cells require the library of the web Plugin when a selection has Workshop, and `--plugins` must list `web` with `std` and `bashkit`. The Workshop that `rev` names already holds the web Plugin, so `rev` stays as upstream has it. - With Workshop selected, a cell fails when the library of the web Plugin is absent or when `--plugins` does not list `web`. On Linux it looks for the library in the AppImage. - Without Workshop selected, a Windows or macOS cell fails when that library is present. - `Cargo.toml` does not change in this commit. - No test changes. The two scripts are the install cells of the Installers workflow. --- .github/installers/cell.ps1 | 12 +++++++----- .github/installers/cell.sh | 15 ++++++++------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/installers/cell.ps1 b/.github/installers/cell.ps1 index ae81435b8..e020abcd4 100644 --- a/.github/installers/cell.ps1 +++ b/.github/installers/cell.ps1 @@ -57,12 +57,13 @@ if ($want -and $want.Gateway) { $root = Join-Path $env:LOCALAPPDATA 'Runvil' $profileDir = Join-Path $env:USERPROFILE '.runvil' $workshopExe = Join-Path $root 'runvil-workshop.exe' -# The libraries of the std Plugin and the bashkit Plugin install with -# Workshop, in its Plugin directory. Each is listed with the name its -# Plugin reports. +# The libraries of the std Plugin, the bashkit Plugin, and the web Plugin +# install with Workshop, in its Plugin directory. Each is listed with the +# name its Plugin reports. $plugins = @( @{ Name = 'std'; Library = Join-Path $root 'plugins\plugin_std.dll' }, - @{ Name = 'bashkit'; Library = Join-Path $root 'plugins\plugin_bashkit.dll' }) + @{ Name = 'bashkit'; Library = Join-Path $root 'plugins\plugin_bashkit.dll' }, + @{ Name = 'web'; Library = Join-Path $root 'plugins\plugin_web.dll' }) $gatewayExe = Join-Path $root 'runvil-gateway.exe' $config = Join-Path $profileDir 'gateway.toml' $discovery = Join-Path $profileDir 'run\gateway.json' @@ -298,7 +299,8 @@ function Test-Selection($Want) { } # Workshop loads the Plugins it installed: std, which holds the file - # tools, and bashkit, which holds the shell. + # tools, bashkit, which holds the shell, and web, which holds the web + # tools. # The pipe matters: Workshop is a windowed program, and PowerShell waits # for one, and reads its output, only when that output is piped. if ($Want.Workshop) { diff --git a/.github/installers/cell.sh b/.github/installers/cell.sh index 329944c68..fd7829e50 100644 --- a/.github/installers/cell.sh +++ b/.github/installers/cell.sh @@ -71,9 +71,9 @@ case "$system" in root=${CELL_ROOT:-/Applications/Runvil} workshop_item="$root/Runvil.app" workshop_exe="$workshop_item/Contents/MacOS/runvil-workshop" - # The libraries of the std Plugin and the bashkit Plugin ride inside - # Workshop's bundle, so the updater, which replaces the bundle, - # replaces them too. + # The libraries of the std Plugin, the bashkit Plugin, and the web + # Plugin ride inside Workshop's bundle, so the updater, which replaces + # the bundle, replaces them too. plugin_dir="$workshop_item/Contents/Resources/plugins" plugin_suffix=dylib gateway_item="$root/Runvil Gateway.app" @@ -200,7 +200,7 @@ check_presence() { check_presence Workshop "$want_workshop" "$workshop_item" # The Plugins' libraries install with Workshop, inside its bundle, and # nothing installs a Plugin directory beside it. -for plugin in std bashkit; do +for plugin in std bashkit web; do [ -z "$plugin_dir" ] || check_presence "Workshop's $plugin Plugin" "$want_workshop" "$plugin_dir/libplugin_$plugin.$plugin_suffix" done @@ -238,14 +238,15 @@ check_version() { [ "$want_gateway" = 0 ] || check_version "$gateway_exe" "runvil-gateway $gateway_version" # Workshop loads the Plugins it ships with: std, which holds the file -# tools, and bashkit, which holds the shell. +# tools, bashkit, which holds the shell, and web, which holds the web +# tools. check_plugins() { local output plugin if ! output=$("$workshop_exe" --plugins 2>"$logs/plugins.stderr.log"); then tail -n 20 "$logs/plugins.stderr.log" >&2 fail "$workshop_exe --plugins failed; full output in $logs/plugins.stderr.log" fi - for plugin in std bashkit; do + for plugin in std bashkit web; do if ! echo "$output" | grep -Eq "^$plugin [0-9]"; then tail -n 20 "$logs/plugins.stderr.log" >&2 fail "$workshop_exe --plugins must list the $plugin Plugin; it printed '$output'" @@ -388,7 +389,7 @@ if [ "$system" = Linux ] && [ "$want_workshop" = 1 ]; then # Workshop looks for its Plugin directory from usr/bin, where it runs. [ -f "$extracted/squashfs-root/usr/bin/runvil-workshop" ] || fail "the AppImage lacks usr/bin/runvil-workshop, which the Plugin directory lookup starts from" - for plugin in std bashkit; do + for plugin in std bashkit web; do [ -f "$extracted/squashfs-root/usr/lib/runvil/plugins/libplugin_$plugin.$plugin_suffix" ] || fail "the AppImage lacks usr/lib/runvil/plugins/libplugin_$plugin.$plugin_suffix" done From c17624e66eef1a8c8c58888da36f04b30c255570 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 25 Nov 2026 11:56:27 -0800 Subject: [PATCH 2/3] Add the plan for the Workshop pin and the client site Add the part of the extraction plan that concerns this repository. It lists the new Workshop `rev` and the rustdoc site for `gateway-client`. Plan: /plan/2026-11-25-1-gateway-client-site-and-workshop-pin.plan.md --- ...teway-client-site-and-workshop-pin.plan.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plan/2026-11-25-1-gateway-client-site-and-workshop-pin.plan.md diff --git a/plan/2026-11-25-1-gateway-client-site-and-workshop-pin.plan.md b/plan/2026-11-25-1-gateway-client-site-and-workshop-pin.plan.md new file mode 100644 index 000000000..9dd847075 --- /dev/null +++ b/plan/2026-11-25-1-gateway-client-site-and-workshop-pin.plan.md @@ -0,0 +1,19 @@ +--- +name: Move the Workshop pin and document gateway-client +overview: Move the Workshop commit that the installers are built from to the Workshop commit that pins the Gateway client adapter, and add gateway-client as a fifth rustdoc site, so the adapter's documentation page links to a page that exists. The workspace version and the toolchain already match Workshop's. +todos: + - id: runvil-pr + content: "Move the Workshop rev, add gateway-client to the rustdoc sites; pull request from the fork, CI, fast-forward merge" + status: pending +isProject: false +--- + +# Move the Workshop pin and document gateway-client + +This is the part of the extraction plan that concerns this repository. `harness-gateway-client` is now an adapter over `gateway-client`, a repository of its own. Workshop pins the Harness commit that holds the adapter, and this repository builds its installers from that Workshop commit. This change moves the Workshop `rev` and adds the rustdoc site for `gateway-client`. + +### runvil (step D2) + +- **`Cargo.toml`.** `rev` in `[workspace.metadata.workshop]` moves to W. The workspace version and the toolchain channel change only if Workshop's did, because `cargo installer` refuses a checkout whose version or toolchain differs. Compare them with Workshop's at W. +- **`crates/build-xtask/src/site.rs` and `site-tests.rs`.** Add `gateway-client` as a fifth rustdoc site (the array type goes from 4 to 5 entries) with a few words for the landing row, such as "Chat completions for any server, and finding a Gateway". The adapter's docs page links the client's types, and without a site of its own those links lead nowhere. `cargo doc -p gateway-client` must select a git dependency from the Harness checkout. I expect it does, and the `site` workflow in CI is the check. Confidence: medium. If CI shows otherwise, this edit comes out and the pull request keeps only the pin. +- **The local commit.** `runvil` has one local commit, "Require the web Plugin in the install cells", that is not on upstream. It changes the two install scripts and not `Cargo.toml`, and it rides along in this pull request. From 2bd5f8b6e666640f5a4e87192a39353466da558a Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 25 Nov 2026 11:56:28 -0800 Subject: [PATCH 3/3] Pin Workshop at 2894471d and document gateway-client Move the Workshop commit that the installers are built from to `2894471d13252d6d940c8fc1819d360e59bf2175`, where Workshop pins the Harness adapter over `gateway-client`. Add `gateway-client` as a fifth entry in `RUSTDOC_SITES`, so the links from the adapter's page to the client's types lead to a page that exists. - The workspace version, 0.3.1, and the toolchain channel, 1.99, match Workshop's at that commit, so neither changes. - `RUSTDOC_SITES` goes from 4 entries to 5, and the landing page gets one more row. `the_rustdoc_sites_document_the_gateway_client` pins the entry. - `cargo doc -p gateway-client --no-deps` selects the git dependency from a Harness checkout. The `cargo xtask site` build needs the docs checkout and did not run here. Plan: /plan/2026-11-25-1-gateway-client-site-and-workshop-pin.plan.md --- Cargo.toml | 2 +- crates/build-xtask/src/site-tests.rs | 10 ++++++++++ crates/build-xtask/src/site.rs | 10 ++++++++-- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3eaa182b3..b2c10161b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ libraries = [{ git = "https://github.com/cppalliance/dylints", rev = "982b297ede # differs from this workspace's. [workspace.metadata.workshop] git = "https://github.com/cppalliance/runvil-workshop" -rev = "3c12833c83aa4953463137a65c21dc2f6220acbb" +rev = "2894471d13252d6d940c8fc1819d360e59bf2175" [workspace.lints.rust] unsafe_code = "deny" diff --git a/crates/build-xtask/src/site-tests.rs b/crates/build-xtask/src/site-tests.rs index 700d54c03..afe2d809c 100644 --- a/crates/build-xtask/src/site-tests.rs +++ b/crates/build-xtask/src/site-tests.rs @@ -353,6 +353,16 @@ fn the_rustdoc_sites_document_each_public_harness_crate() { } } +#[test] +fn the_rustdoc_sites_document_the_gateway_client() { + assert!( + RUSTDOC_SITES + .iter() + .any(|(dir, documented, _)| *dir == "gateway-client" && *documented == "gateway-client"), + "the gateway-client/ folder documents the crate gateway-client: {RUSTDOC_SITES:?}" + ); +} + /// A stage output holding, per `(book, title, description)`, the book's /// folder with a `book.toml` giving that title and description. fn staged_with(books: &[(&str, &str, &str)]) -> tempfile::TempDir { diff --git a/crates/build-xtask/src/site.rs b/crates/build-xtask/src/site.rs index a99b48938..c671bbb5f 100644 --- a/crates/build-xtask/src/site.rs +++ b/crates/build-xtask/src/site.rs @@ -58,8 +58,9 @@ pub(crate) const HARNESS_VAR: &str = "RUNVIL_HARNESS"; /// documents, with default features, the facade as dependents read it, and /// the few broad words its landing row shows under Covers. The crates come /// from runvil-harness, so each site documents the commit of the checkout -/// `RUNVIL_HARNESS` names. -const RUSTDOC_SITES: [(&str, &str, &str); 4] = [ +/// `RUNVIL_HARNESS` names. The `gateway-client` crate is a git dependency of +/// that checkout, so its site documents the commit the checkout pins. +const RUSTDOC_SITES: [(&str, &str, &str); 5] = [ ( "runvil-engine", "runvil-engine", @@ -75,6 +76,11 @@ const RUSTDOC_SITES: [(&str, &str, &str); 4] = [ "harness-gateway-client", "Model calls through the Gateway", ), + ( + "gateway-client", + "gateway-client", + "Chat completions for any server, and finding a Gateway", + ), ("plugin-mcp", "plugin-mcp", "Tools from remote MCP servers"), ];