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 AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Multi-crate Rust workspace for Workshop, a Host, and the tooling that builds it

Seven terms have exactly one meaning each, everywhere in this repository: code comments, docs, rulebooks, and plans. Write them capitalized.

- **Engine**: the `runvil-*` crates. The Engine parses a prompt and steps a run. Whenever a run needs a model reply, a Pack's render of the tools a section offers it, a Pack tool's result, a timer, or a store operation, the Engine emits an effect and waits for its caller to answer it. In production the caller is the Harness.
- **Engine**: the `runvil-*` crates. The Engine parses a prompt and steps a run. Whenever a run needs a model reply, a Pack's render of the tools a section offers it, a Pack tool's result, a timer, or a file operation, the Engine emits an effect and waits for its caller to answer it. In production the caller is the Harness.
- **Harness**: the `runvil` crate, which is the one crate a Host depends on, and the `harness-*` crates. The Harness steps the Engine, performs every effect, returns each answer, and records every run through the recorder the Host supplies. Production code runs prompts only through the Harness.
- **Host**: an application that runs prompts through the Harness, such as Workshop or Papergate. The Host makes every policy decision. It may also use the Engine's parser and types to read prompts and show events.
- **Pack**: code which installs an optional native prelude, an optional Lua prelude, and zero or more tools.
Expand Down
42 changes: 21 additions & 21 deletions Cargo.lock

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

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,29 @@ repository = "https://github.com/cppalliance/runvil-workshop"
# in. All four 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 = "1664eaf363569d629d8ec65f3e0381bded3449bd" }
harness-gateway-client = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "1664eaf363569d629d8ec65f3e0381bded3449bd" }
plugin-web = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "1664eaf363569d629d8ec65f3e0381bded3449bd" }
plugin-mcp = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "1664eaf363569d629d8ec65f3e0381bded3449bd" }
# The safe layer over the C Plugin contract, version 0.4, from its own
runvil = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "4afed45fe5a4198ee9c9617396377d83b88f5e16" }
harness-gateway-client = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "4afed45fe5a4198ee9c9617396377d83b88f5e16" }
plugin-web = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "4afed45fe5a4198ee9c9617396377d83b88f5e16" }
plugin-mcp = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "4afed45fe5a4198ee9c9617396377d83b88f5e16" }
# The safe layer over the C Plugin contract, version 0.5, 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.4.0", git = "https://github.com/cppalliance/runvil-plugin-api", rev = "03a9fa37d2fe690d42ee0aa5c7a8289173e8e0f2" }
runvil-plugin-sdk = { version = "0.5.0", git = "https://github.com/cppalliance/runvil-plugin-api", rev = "52a4905aca0a9c945a93dc4ee7ea815db85612e4" }
# 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 = "782ad23e5dfbe6fbfa5be7145fa73a9ca60ce8a8", default-features = false }
std-plugin = { package = "plugin-std", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-std", rev = "a806bf63e3b0a23c85f3599a1b03fea578c77a2d", 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 = "0864f1ff9cc1f4fad6c96f1e9f6d8a3ab85e9580", default-features = false }
bashkit-plugin = { package = "plugin-bashkit", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-bashkit", rev = "f348f7a67b9087bcbc55ea7cb61c8de3fc409c82", 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" }
Expand Down
2 changes: 1 addition & 1 deletion crates/workshop/agents/src/conversation-run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl Conversation {
/// The agent `name` parsed on `host` on the blocking pool, since finding
/// it reads the agents folder, or the message of why it did not parse: the
/// parse failure's located message, or the blocking task's failure.
async fn parse(host: &Arc<Host>, name: &str) -> Result<Prompt, String> {
async fn parse(host: &Arc<Host>, name: &str) -> Result<Arc<Prompt>, String> {
let host = Arc::clone(host);
let name = name.to_owned();
match tokio::task::spawn_blocking(move || host.parse(&name)).await {
Expand Down
6 changes: 5 additions & 1 deletion crates/workshop/server/src/agents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
//! sends each round to the dropdown's current pick. Each run's filesystem
//! is an in-memory root, with a read-only mount beside it for each of two
//! demos whose switch is on: the language guide, and the machine's C
//! drive (`language_guide`). Both switches are committed as off. The run's
//! drive (`language_guide`). Both switches are committed as off. The
//! filesystem has no policy of its own, so the default one, `AllowAll`,
//! admits every operation: the file tools and the shell change the files
//! of the in-memory root, which end with the run, and a read-only mount
//! refuses each change. The run's
//! setup carries the Host state ([`bindings`]): the menu's pick and the
//! workspace's granted roots, read once the menu's catalog holds a
//! chat-capable model. Status-bar reporting stays in the server
Expand Down
Loading
Loading