From 2dc2bd0d7da07b1d36143d34e3b97c9a76e59ea7 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 2 Dec 2026 20:46:53 -0800 Subject: [PATCH 1/2] Add the plan for native preludes and RvLua Plan: /plan/2026-12-02-3-native-preludes.plan.md --- plan/2026-12-02-3-native-preludes.plan.md | 131 ++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 plan/2026-12-02-3-native-preludes.plan.md diff --git a/plan/2026-12-02-3-native-preludes.plan.md b/plan/2026-12-02-3-native-preludes.plan.md new file mode 100644 index 00000000..e0492b45 --- /dev/null +++ b/plan/2026-12-02-3-native-preludes.plan.md @@ -0,0 +1,131 @@ +--- +name: Native Preludes and RvLua +overview: Add native preludes (RV_PACK_OPEN and the handle-based RvLua C API) and optional Lua source preludes to the C Plugin contract (v0.10.0) and runvil-plugin-sdk, implement the Engine's mlua-backed RvLua host and native Prelude support in runvil-harness, and roll out contract 0.10.0 across the downstream plugin, workshop, and runvil repositories with lean, bloat-free commits, rust-rulebook compliance on every touched file, PRs, CodeRabbit triage, and ordered upstream merges. +todos: + - id: wave1-plugin-api + content: "Wave 1 (runvil-plugin-api v0.10.0 -> SHA P): 3 testable commits (plan copy, bump runvil-plugin-sys to 0.10.0 + runvil_plugin.h + c-layout, add lean LuaPrelude/Pack::open/PackInfo::lua_prelude + fake Host in runvil-plugin-sdk); apply rust-rulebook to all touched files, push to origin, open PR, address worthwhile CodeRabbit feedback, and merge to upstream" + status: pending + - id: wave2a-three-plugins + content: "Wave 2a (runvil-plugin-std, bashkit, web in parallel -> SHAs S, B, W): 2 testable commits per repo (plan copy, pin runvil-plugin-sdk 0.10.0 at SHA P); apply rust-rulebook, push to origin, open PRs, triage CodeRabbit, and merge to upstream" + status: pending + - id: wave2b-harness + content: "Wave 2b (runvil-harness -> SHA H, parallel with Wave 2a): 4 testable commits (plan copy, lean mlua host + Prelude open in runvil-lua/runvil-types/runvil-plugin, pin contract 0.10.0 at SHA P + RV_PACK_OPEN/RvLua in harness-plugin-loader/harness-runner, update harness-test-plugin + decisions/ + public-api.txt); apply rust-rulebook to all touched files, push to origin, open PR, triage CodeRabbit, and merge to upstream" + status: pending + - id: wave3-workshop-and-runvil + content: "Wave 3 (runvil-workshop -> SHA K, then runvil): 2 testable commits in runvil-workshop pinning H/P/S/B/W, PR + CodeRabbit + merge to upstream (SHA K); then 2 testable commits in runvil pinning Workshop SHA K, PR + CodeRabbit + merge to upstream" + status: pending +isProject: false +--- + +# Native Preludes and Handle-Based `RvLua` in the Plugin Contract and Engine + +## Core Discipline: Lean Code, `rust-rulebook.md`, Testable Commits, and Ordered PRs + +1. **Tight, lean code with zero bloat**: + - Do not invent redundant wrapper structs, traits, or helper functions when an existing type or direct function suffices. + - Reuse existing code directly instead of duplicating logic: + - In `runvil-lua`: reuse `order::WalkPlace` / `order::compare_places` for deterministic table walks, `proxy::view_data` for \(O(1)\) Engine view unsealing, `json::json_of_text` and `json::to_json` for `from_json` / `to_json`, and `prelude.rs`'s existing `env` creation, `defined_globals`, collision checks, and `read_only_proxy` sealing. + - In `harness-plugin-loader`: reuse `session::{Field, Shape, RESERVED, field, shape, size_field, rv_str}` and `Plugin`'s `Arc` ownership. + - In `runvil-plugin-sdk`: keep the safe Lua wrapper in one focused `src/lua.rs` module (`Lua<'a>`, `Value<'a>`, `Table<'a>`, `UserDataType`) without mirroring unnecessary `mlua` traits. + - Keep `Prelude` in `crates/runvil-internal/types/src/packs.rs` (or `runvil-lua`) as a single struct rather than introducing parallel prelude types; attach the optional native opener closure directly on `Prelude` with crate-internal constructors so `public-api.txt` gains zero unnecessary surface items. + +2. **Apply `tools-public/rulebooks/rust-rulebook.md` to every touched `.rs` file**: + - Three-block `use` grouping (`std`/`core`/`alloc`, external crates, `crate`/`super`/`self`); import types by name and free functions through their module (`use std::fmt;` then `fmt::Display`). + - `pub(crate)` default visibility; `unreachable_pub` clean; no test-only `#[cfg(test)] use` in parent modules feeding child test globs. + - Guard clauses with `let Some(...) = ... else { return ... };`; no `.unwrap()` in library code; `#[expect(..., reason = "...")]` instead of `#[allow(...)]`. + - Every `unsafe fn` has `# Safety`, every `unsafe` block is preceded immediately by `// SAFETY:`, and edition 2024 inner `unsafe` blocks are explicit inside `unsafe fn`s. + - Every `pub` item has third-person indicative `///` docs (`# Errors`, `# Panics`, `# Safety` where applicable), and module headers start with `//!`. Note: `runvil-harness` enforces `no_doctests` (`crates/build-xtask/src/no_doctests.rs`), so doc code fences in `runvil-harness` use ` ```text `. + - In `runvil-plugin-api`, keep Rust 1.85 compatibility (no `let` chains, which require 1.88). + +3. **Git, Testable Commits, PRs, CodeRabbit, and Upstream Merge Order**: + - Stay on `master` in every repository (no topical branches; `origin` is `vinniefalco/*`, `upstream` is `cppalliance/*`). Sync `master` with `upstream/master` before starting each repo. + - Commit 1 in every touched repository adds `plan/2026-12-02-3-native-preludes.plan.md` so every commit message ends with `Plan: /plan/2026-12-02-3-native-preludes.plan.md`. + - Every commit must compile and pass `cargo fmt --all --check`, `cargo clippy --all-targets --all-features -- -D warnings`, and the repo's test / `xtask` suite before committing. + - At the end of each wave: push `master` to `origin`, open a PR to `cppalliance/:master` with `gh pr create`, monitor CI and CodeRabbit review comments, address worthwhile CodeRabbit feedback in clean testable commits (and reply/resolve noise), merge the PR to `upstream` once green, and `git fetch upstream` + `git merge --ff-only upstream/master` to record the exact merged `upstream` SHA for the next wave. + +```mermaid +flowchart TD + W1["Wave 1: plugin-api 0.10"] -->|"SHA P"| W2Std["Wave 2a: plugin-std"] + W1 -->|"SHA P"| W2Bash["Wave 2a: plugin-bashkit"] + W1 -->|"SHA P"| W2Web["Wave 2a: plugin-web"] + W1 -->|"SHA P"| W2Harness["Wave 2b: runvil-harness"] + W2Std -->|"SHA S"| W3Workshop["Wave 3a: runvil-workshop"] + W2Bash -->|"SHA B"| W3Workshop + W2Web -->|"SHA W"| W3Workshop + W2Harness -->|"SHA H"| W3Workshop + W3Workshop -->|"SHA K"| W3Runvil["Wave 3b: runvil"] +``` + +--- + +## Technical Design + +### 1. C Contract (`runvil-plugin-sys` v0.10.0) +- **Status codes & verb**: + - Fill the reserved status slots `1..3`: `RV_ERR_LUA = 1`, `RV_ERR_FATAL = 2`, `RV_ERR_TYPE = 3`. + - Fill the reserved verb slot `8`: `RV_PACK_OPEN = 8`, sent once per section VM for each declared Pack on `call->pack_run` with `RvPackOpenArgs`. + - A Pack with no native prelude answers `RV_PACK_OPEN` with `RV_ERR_UNSUPPORTED` (matching `RV_PACK_RENDER`), which the loader treats as a no-op. +- **`RvPackInfo` & `RvPackOpenArgs`**: + - Append `pub lua_prelude: RvStr` to `RvPackInfo` (empty `{NULL, 0}` when unset, capped at `RV_MAX_TOOL_TEXT = 65_536` bytes of UTF-8; size grows from 40 to 56 bytes on 64-bit). + - `RvPackOpenArgs { size: u32, reserved: u32, ctx: *mut c_void, pack_id: RvStr, env: RvValue, lua: *const RvLua, refuse: unsafe extern "C" fn(ctx: *mut c_void, reason: RvStr) -> RvStatus }`. +- **Flat 16-byte `RvValue` (zero `union` / zero `unsafe` in `runvil-plugin-sys`)**: + - `#[repr(C)] pub struct RvValue { pub kind: RvKind, pub reserved: u32, pub payload: u64 }`. + - `RvKind`: `RV_NIL = 0`, `RV_BOOLEAN = 1` (`0` or `1`), `RV_INTEGER = 2` (`payload as i64`), `RV_NUMBER = 3` (`f64::from_bits(payload)`), `RV_NULL = 4` (`json.null`), `RV_LIGHTUSERDATA = 5` (`payload as usize as *mut c_void`), `RV_STRING = 6`, `RV_TABLE = 7`, `RV_FUNCTION = 8`, `RV_USERDATA = 9`, `RV_OPAQUE = 10`. +- **Call-scoped tokens, callbacks, and `RvLua`**: + - `RvCx { pub bits: u64 }`, `RvMark { pub bits: u64 }`, `RvIter { pub bits: u64 }`. + - `RvFunction = unsafe extern "C" fn(cx: RvCx, lua: *const RvLua, data: *mut c_void, args: *const RvValue, nargs: usize) -> RvStatus`. + - `RvDrop = unsafe extern "C" fn(data: *mut c_void)`. + - `RvFunctionInfo`, `RvMethod`, `RvUserdataType` (with `user_values` up to `RV_MAX_USER_VALUES = 4`, `methods`, `index`, `newindex`, `tostring`, `eq`, `lt`, `le`, `len`, `call`, `drop`), and `RvLua` (`size`, `reserved`, and the 30 functions from `2026-10-18-mlua-c-wrapper.md`, using `RvStr` for UTF-8 names/messages/JSON and `RvBytes` for arbitrary Lua string bytes). + +### 2. Engine & Loader Architecture (`runvil-harness`) +- **Why no new crates or public facade types are needed**: + - `runvil-lua` implements the safe `mlua` operations in `crates/runvil-internal/lua/src/prelude/native.rs` (table-backed handle arena with generational slots, error states, table/view ops, deterministic iteration, functions, userdata with protected metatables, and JSON conversion) and exposes a lean `LuaHost` API to `runvil-plugin`. + - `Prelude` in `runvil-types` (or moved to `runvil-lua` and re-exported by `runvil-types`, `runvil-engine::packs::Prelude`, and `runvil-plugin`) keeps its exact existing public API (`Prelude::new`, `Prelude::pack`, `Prelude::source`) while gaining crate-internal support for an optional native opener callback and optional Lua source. + - In `crates/runvil-internal/lua/src/prelude.rs` (`install_preludes`), for each declared Pack: build `env` once, run the native opener first (if present), run the Lua source chunk second in the same `env` (if present), and run `defined_globals`, collision checks, and top-level table sealing (`read_only_proxy` for `Value::Table`, unchanged `Value::UserData` / `Value::Function`). + - In `harness-plugin-loader`: `EntryPack` implements `Pack::open` by opening an `RV_PACK_OPEN` session and calling the `PluginEntry` with `RvPackOpenArgs` pointing to the static `RvLua` vtable in `crates/harness-internal/plugin-loader/src/lua.rs`. Every userdata and function wrapper holds an `Arc` field declared **after** its native data drop guard so `(type.drop)(data)` / `(info.drop)(data)` runs during `SectionVm::teardown` (`lua_close`) before the last `Arc` can drop and close the library. + +--- + +## Wave 1: `runvil-plugin-api` v0.10.0 (3 Testable Commits -> Merged Upstream SHA `P`) + +- **Commit 1**: Add `plan/2026-12-02-3-native-preludes.plan.md`. +- **Commit 2 (`runvil-plugin-sys` v0.10.0 + `runvil_plugin.h` + `c-layout`)**: + - Update `crates/runvil-plugin-sys/src/lib.rs` (`RV_API_MINOR = 10`, status codes `1..3`, verb `RV_PACK_OPEN = 8`, `RvPackInfo.lua_prelude`, `RvValue`, `RvCx`, `RvMark`, `RvIter`, `RvFunction`, `RvDrop`, `RvFunctionInfo`, `RvMethod`, `RvUserdataType`, `RvLua`, `RvPackOpenArgs`) and bump `Cargo.toml` versions to `0.10.0`. + - Regenerate `crates/runvil-plugin-sys/include/runvil_plugin.h` with `cargo xtask header` and update `tests/c-layout/src/lib.rs`, `layout.c`, and `layout.cpp`. +- **Commit 3 (`runvil-plugin-sdk` v0.10.0 + `testing`)**: + - Add `PackInfo::lua_prelude` and `Pack::open` in `crates/runvil-plugin-sdk/src/pack.rs` and wire `RV_PACK_OPEN` in `crates/runvil-plugin-sdk/src/entry/pack.rs` and `entry/plugin.rs`. + - Add `crates/runvil-plugin-sdk/src/lua.rs` with lean, safe lifetime-bound wrappers over `RvCx` and `*const RvLua`, panic containment on all callbacks/drops, and fake Host support in `src/testing/`. + - Apply `rust-rulebook.md` to every touched file, verify MSRV `1.85`, `c-layout`, `clippy`, `nextest`/`test`, and `doc`, push to `origin`, open PR, address worthwhile CodeRabbit comments, and merge to `upstream` -> SHA `P`. + +--- + +## Wave 2: Three Plugin Repos + `runvil-harness` (Parallel PRs once `P` Merges) + +### Wave 2a: `runvil-plugin-std`, `runvil-plugin-bashkit`, `runvil-plugin-web` (2 Commits Each -> SHAs `S`, `B`, `W`) +- **Commit 1**: Add `plan/2026-12-02-3-native-preludes.plan.md`. +- **Commit 2**: Pin `runvil-plugin-sdk = "0.10.0"` at SHA `P`, verify `build-checks`, `fmt`, `clippy`, `test`, and `doc`, push to `origin`, open PRs, triage CodeRabbit, and merge to `upstream` -> SHAs `S`, `B`, `W`. + +### Wave 2b: `runvil-harness` (4 Testable Commits -> Merged Upstream SHA `H`) +- **Commit 1**: Add `plan/2026-12-02-3-native-preludes.plan.md`. +- **Commit 2 (Engine `mlua` host + hybrid `Prelude` in `runvil-lua`, `runvil-types`, `runvil-plugin`, `harness-runner`)**: + - Implement `crates/runvil-internal/lua/src/prelude/native.rs` and wire native + Lua source execution in `crates/runvil-internal/lua/src/prelude.rs`. + - Add `Pack::open` in `crates/runvil-plugin/src/pack.rs` and wire `RunPacks::snapshot` in `crates/harness-internal/runner/src/packs.rs` so declared usable Packs contribute native `open`, `info.prelude`, or both. + - Add thorough unit tests in `runvil-lua` covering arena handles, `mark`/`release_to`, error catching vs. sticky fatal errors, guarded `var`/`args`/`sys` table access, deterministic iteration, functions, userdata with `drop` on VM teardown, light userdata, and `from_json`/`to_json`. +- **Commit 3 (Pin contract `0.10.0` at `P` and wire `RV_PACK_OPEN` + `RvLua` in `harness-plugin-loader`)**: + - Pin `runvil-plugin-sys = "0.10.0"` at SHA `P` in `Cargo.toml`. + - Read `info.lua_prelude` in `crates/harness-internal/plugin-loader/src/plugin.rs` (`insert_pack`) and wire `crates/harness-internal/plugin-loader/src/lua.rs` + `pack.rs` (`RV_PACK_OPEN`, `RvLua` vtable, `Arc`-pinned function/userdata drop guards, and loader unit tests). +- **Commit 4 (`harness-test-plugin` 0.10 + end-to-end tests + `decisions/`)**: + - Update `crates/harness-internal/test-plugin/src/lib.rs` to contract `0.10` with a native prelude (installing table functions and a callable userdata whose `drop` increments an atomic counter on VM teardown) plus a `lua_prelude`, and add end-to-end tests in `crates/harness-internal/test-plugin/tests/it/`. + - Update `decisions/tools-and-packs.md` and `decisions/prompt-language.md`. + - Apply `rust-rulebook.md` across all touched files, run full verification (`nextest`, `clippy`, `fmt`, `doc`, `xtask tidy`, `xtask api --check`, `docs-claims.mjs`), push to `origin`, open PR, triage CodeRabbit, and merge to `upstream` -> SHA `H`. + +--- + +## Wave 3: `runvil-workshop` and `runvil` + +- **Wave 3a (`runvil-workshop` -> SHA `K`)**: + - Commit 1: Add `plan/2026-12-02-3-native-preludes.plan.md`. + - Commit 2: Pin `runvil-harness` (`H`), `runvil-plugin-sdk` `0.10.0` (`P`), `std-plugin` (`S`), `bashkit-plugin` (`B`), and `web-plugin` (`W`) in `Cargo.toml`. Verify all checks, push to `origin`, open PR, triage CodeRabbit, and merge to `upstream` -> SHA `K`. +- **Wave 3b (`runvil`)**: + - Commit 1: Add `plan/2026-12-02-3-native-preludes.plan.md`. + - Commit 2: Pin Workshop SHA `K` in `Cargo.toml`, verify `xtask`, push to `origin`, open PR, triage CodeRabbit, and merge to `upstream`. From db71ffec50a1db81bd05217835b074c0ff8e4fe0 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 2 Dec 2026 20:49:02 -0800 Subject: [PATCH 2/2] Pin contract 0.10.0, runvil-harness, and library Plugins Plan: /plan/2026-12-02-3-native-preludes.plan.md --- Cargo.lock | 67 +++++++++++++++++++++++++++--------------------------- Cargo.toml | 16 ++++++------- 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c08241fc..0598ca0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1379,7 +1379,7 @@ dependencies = [ "libc", "option-ext", "redox_users", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -1606,7 +1606,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -2250,7 +2250,7 @@ dependencies = [ [[package]] name = "harness-gateway-client" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "gateway-client", "runvil", @@ -2261,7 +2261,7 @@ dependencies = [ [[package]] name = "harness-plugin-loader" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "libloading 0.8.9", "runvil-plugin", @@ -2272,7 +2272,7 @@ dependencies = [ [[package]] name = "harness-runner" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "futures-util", "gateway-types", @@ -3433,7 +3433,7 @@ dependencies = [ "png 0.18.1", "serde", "thiserror 2.0.19", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -3511,7 +3511,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -4037,7 +4037,7 @@ dependencies = [ [[package]] name = "plugin-bashkit" version = "0.1.0" -source = "git+https://github.com/cppalliance/runvil-plugin-bashkit?rev=f41b5002ae5a1412b04443236483ea6350197199#f41b5002ae5a1412b04443236483ea6350197199" +source = "git+https://github.com/cppalliance/runvil-plugin-bashkit?rev=04e0c869bd7bc7f7234edfa623d112c89cfaff4c#04e0c869bd7bc7f7234edfa623d112c89cfaff4c" dependencies = [ "bashkit", "runvil-plugin-sdk", @@ -4049,7 +4049,7 @@ dependencies = [ [[package]] name = "plugin-mcp" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "futures-util", "reqwest", @@ -4063,7 +4063,7 @@ dependencies = [ [[package]] name = "plugin-std" version = "0.1.0" -source = "git+https://github.com/cppalliance/runvil-plugin-std?rev=d45fa9e1746ed1afa099dee9392925d819c475d6#d45fa9e1746ed1afa099dee9392925d819c475d6" +source = "git+https://github.com/cppalliance/runvil-plugin-std?rev=d7c795f51fd3bfa40d892218367be97c6a2572bc#d7c795f51fd3bfa40d892218367be97c6a2572bc" dependencies = [ "regex", "runvil-plugin-sdk", @@ -4074,7 +4074,7 @@ dependencies = [ [[package]] name = "plugin-web" version = "0.1.0" -source = "git+https://github.com/cppalliance/runvil-plugin-web?rev=0f2189478645a9d5ae892a13ab9b6879438ca794#0f2189478645a9d5ae892a13ab9b6879438ca794" +source = "git+https://github.com/cppalliance/runvil-plugin-web?rev=9409b2c8070fc43883c8b286a56015eb4747fa20#9409b2c8070fc43883c8b286a56015eb4747fa20" dependencies = [ "encoding_rs", "htmd", @@ -4370,7 +4370,7 @@ dependencies = [ "once_cell", "socket2", "tracing", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -4719,7 +4719,7 @@ dependencies = [ [[package]] name = "runvil" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "harness-plugin-loader", "harness-runner", @@ -4730,7 +4730,7 @@ dependencies = [ [[package]] name = "runvil-engine" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "gateway-types", "runvil-lua", @@ -4743,7 +4743,7 @@ dependencies = [ [[package]] name = "runvil-lua" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "gateway-types", "mlua", @@ -4757,7 +4757,7 @@ dependencies = [ [[package]] name = "runvil-markdown" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "pulldown-cmark", "serde", @@ -4768,8 +4768,9 @@ dependencies = [ [[package]] name = "runvil-plugin" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ + "runvil-lua", "runvil-types", "runvil-vfs", "serde_json", @@ -4777,8 +4778,8 @@ dependencies = [ [[package]] name = "runvil-plugin-sdk" -version = "0.9.0" -source = "git+https://github.com/cppalliance/runvil-plugin-api?rev=4c10a7d4d26c11e6a3055c6f6c4b5657f1bf2faa#4c10a7d4d26c11e6a3055c6f6c4b5657f1bf2faa" +version = "0.10.0" +source = "git+https://github.com/cppalliance/runvil-plugin-api?rev=626bd548706a1ab05b4eea5d218a5ad3723642ed#626bd548706a1ab05b4eea5d218a5ad3723642ed" dependencies = [ "runvil-plugin-sys", "serde", @@ -4787,13 +4788,13 @@ dependencies = [ [[package]] name = "runvil-plugin-sys" -version = "0.9.0" -source = "git+https://github.com/cppalliance/runvil-plugin-api?rev=4c10a7d4d26c11e6a3055c6f6c4b5657f1bf2faa#4c10a7d4d26c11e6a3055c6f6c4b5657f1bf2faa" +version = "0.10.0" +source = "git+https://github.com/cppalliance/runvil-plugin-api?rev=626bd548706a1ab05b4eea5d218a5ad3723642ed#626bd548706a1ab05b4eea5d218a5ad3723642ed" [[package]] name = "runvil-prompt" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "pulldown-cmark", "runvil-lua", @@ -4806,7 +4807,7 @@ dependencies = [ [[package]] name = "runvil-runtime" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "gateway-types", "mlua", @@ -4824,7 +4825,7 @@ dependencies = [ [[package]] name = "runvil-types" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" dependencies = [ "gateway-types", "serde", @@ -4835,7 +4836,7 @@ dependencies = [ [[package]] name = "runvil-vfs" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=64b085369f9432073f0baa9e40d9cbdbe0a720cd#64b085369f9432073f0baa9e40d9cbdbe0a720cd" +source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" [[package]] name = "rust-embed" @@ -4927,7 +4928,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys 0.12.1", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -4984,7 +4985,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -5574,7 +5575,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -5666,7 +5667,7 @@ dependencies = [ "cfg-if", "libc", "psm", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -6265,7 +6266,7 @@ dependencies = [ "getrandom 0.4.3", "once_cell", "rustix 1.1.4", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -6730,7 +6731,7 @@ dependencies = [ "png 0.18.1", "serde", "thiserror 2.0.19", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -6981,7 +6982,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" dependencies = [ "memoffset", "tempfile", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -7470,7 +7471,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index bc6c4951..ab2cd95c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,35 +25,35 @@ repository = "https://github.com/cppalliance/runvil-workshop" # Workshop links in. All three name one commit, because two commits would # be two copies of every type the crates share. `version` beside `git` # keeps cargo-deny's wildcard check quiet. -runvil = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "64b085369f9432073f0baa9e40d9cbdbe0a720cd" } -harness-gateway-client = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "64b085369f9432073f0baa9e40d9cbdbe0a720cd" } -plugin-mcp = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "64b085369f9432073f0baa9e40d9cbdbe0a720cd" } -# The safe layer over the C Plugin contract, version 0.9, from its own +runvil = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "ff54bceebe8912009b55961ab1acaabafd85991b" } +harness-gateway-client = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "ff54bceebe8912009b55961ab1acaabafd85991b" } +plugin-mcp = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "ff54bceebe8912009b55961ab1acaabafd85991b" } +# The safe layer over the C Plugin contract, version 0.10, from its own # repository, pinned by commit. Only the library Plugin crates under # `crates/workshop/` name it, for `export_plugin!`. The commit is the one # runvil-harness pins the contract's `runvil-plugin-sys` at: that crate # sets `links`, so Cargo refuses two commits of the contract in one build. -runvil-plugin-sdk = { version = "0.9.0", git = "https://github.com/cppalliance/runvil-plugin-api", rev = "4c10a7d4d26c11e6a3055c6f6c4b5657f1bf2faa" } +runvil-plugin-sdk = { version = "0.10.0", git = "https://github.com/cppalliance/runvil-plugin-api", rev = "626bd548706a1ab05b4eea5d218a5ad3723642ed" } # The std Plugin, from its own repository, pinned by commit, which must be # built against the contract commit above. default-features off drops its # own export of `runvil_plugin`, which `workshop-plugin-std` makes instead. # The key is `std-plugin` because that crate's own library is named # `plugin_std`, the name of the file Workshop ships. -std-plugin = { package = "plugin-std", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-std", rev = "d45fa9e1746ed1afa099dee9392925d819c475d6", default-features = false } +std-plugin = { package = "plugin-std", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-std", rev = "d7c795f51fd3bfa40d892218367be97c6a2572bc", default-features = false } # The bashkit Plugin, from its own repository, pinned by commit and built # against the same contract commit. default-features off drops its own # export of `runvil_plugin`, which `workshop-plugin-bashkit` makes # instead. The key is `bashkit-plugin` for the reason std's is # `std-plugin`: the crate's own library has the name of the file Workshop # ships, `plugin_bashkit`. -bashkit-plugin = { package = "plugin-bashkit", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-bashkit", rev = "f41b5002ae5a1412b04443236483ea6350197199", default-features = false } +bashkit-plugin = { package = "plugin-bashkit", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-bashkit", rev = "04e0c869bd7bc7f7234edfa623d112c89cfaff4c", default-features = false } # The web Plugin, from its own repository, pinned by commit and built # against the same contract commit. default-features off drops its own # export of `runvil_plugin`, which `workshop-plugin-web` makes instead. # The key is `web-plugin` for the reason std's is `std-plugin`: the # crate's own library has the name of the file Workshop ships, # `plugin_web`. -web-plugin = { package = "plugin-web", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-web", rev = "0f2189478645a9d5ae892a13ab9b6879438ca794", default-features = false } +web-plugin = { package = "plugin-web", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-web", rev = "9409b2c8070fc43883c8b286a56015eb4747fa20", default-features = false } workshop-gateway-discovery = { path = "crates/workshop/gateway-discovery" } workshop-server = { path = "crates/workshop/server" } workshop-server-api = { path = "crates/workshop/server-api" }