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
4 changes: 2 additions & 2 deletions crates/workshop/desktop/src/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ mod tests {
"drop with files",
Some(DROP_MESSAGE),
&[
Some(r"C:\Users\Vinnie\Documents\project"),
Some(r"C:\Users\alice\Documents\project"),
Some(r"D:\src\notes.md"),
],
&[r"C:\Users\Vinnie\Documents\project", r"D:\src\notes.md"],
&[r"C:\Users\alice\Documents\project", r"D:\src\notes.md"],
true,
),
(
Expand Down
16 changes: 6 additions & 10 deletions crates/workshop/desktop/src/drops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,20 @@ mod tests {

// `None` means the path passes through unchanged.
const CASES: &[(&str, &str, Option<&str>)] = &[
("plain", r"C:\Users\Vinnie\Documents\project", None),
(
"spaces",
r"C:\Users\Vinnie\My Documents\file name.txt",
None,
),
("plain", r"C:\Users\alice\Documents\project", None),
("spaces", r"C:\Users\alice\My Documents\file name.txt", None),
(
"unicode",
"C:\\Users\\Vinnie\\caf\u{e9} \u{4e2d}\u{6587}.txt",
"C:\\Users\\alice\\caf\u{e9} \u{4e2d}\u{6587}.txt",
None,
),
("drive dir", r"D:\src\runvil\crates", None),
("plain unc", r"\\server\share\file.txt", None),
("posix", "/home/vinnie/project/file.txt", None),
("posix", "/home/alice/project/file.txt", None),
(
"verbatim",
r"\\?\C:\Users\Vinnie\file.txt",
Some(r"C:\Users\Vinnie\file.txt"),
r"\\?\C:\Users\alice\file.txt",
Some(r"C:\Users\alice\file.txt"),
),
(
"verbatim unicode",
Expand Down
7 changes: 5 additions & 2 deletions crates/workshop/server/src/agents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ const HARNESS_STATE_DIR: &str = "harness";
/// The switch: `true` mounts the guide in every run.
const LANGUAGE_GUIDE_ENABLED: bool = false;

/// The directory on this machine that holds the guide's pages.
const LANGUAGE_GUIDE_SOURCE: &str = r"C:\Users\Vinnie\cursor\runvil-docs\src\language";
/// The sibling `runvil-docs` directory that holds the guide's pages.
const LANGUAGE_GUIDE_SOURCE: &str = concat!(
env!("CARGO_MANIFEST_DIR"),
"/../../../../runvil-docs/src/language"
);

/// The virtual path a run sees the guide at.
const LANGUAGE_GUIDE_MOUNT: &str = "/_runvil/language-guide";
Expand Down
6 changes: 3 additions & 3 deletions crates/workshop/ui/test/workspace-drops.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function scenario({ desktop, responder }) {
const { window, calls } = scenario({ desktop: false });
window.dispatchEvent(
new window.CustomEvent("runvil:file-drop", {
detail: { paths: ["C:\\Users\\Vinnie\\project"] },
detail: { paths: ["C:\\Users\\alice\\project"] },
}),
);
await flush();
Expand All @@ -90,8 +90,8 @@ function scenario({ desktop, responder }) {
changed += 1;
});
const paths = [
"C:\\Users\\Vinnie\\My Documents\\project",
"C:\\Users\\Vinnie\\café 中文.txt",
"C:\\Users\\alice\\My Documents\\project",
"C:\\Users\\alice\\café 中文.txt",
];
window.dispatchEvent(
new window.CustomEvent("runvil:file-drop", { detail: { paths } }),
Expand Down
2 changes: 1 addition & 1 deletion plan/2026-11-07-1-host-runsetup-harness.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ flowchart LR

## Notes

- **Repository:** `runvil/` in the workspace, at `c:\Users\Vinnie\cursor\runvil`. Every path in this plan is relative to it.
- **Repository:** `runvil/` in the workspace. Every path in this plan is relative to the repository root.
- **Build:** `cargo build` builds the default members, which are the Engine and its facades. The Workshop builds with `cargo build --locked -p workshop`. Source: `Cargo.toml:10-14`, `.github/workflows/ci.yml`.
- **Package tests:** `cargo nextest run --locked -p <package>`. Source: `AGENTS.md:46-50`.
- **Full suite:** run both of these. Source: `AGENTS.md:46-50`, `.github/workflows/ci.yml`.
Expand Down
2 changes: 1 addition & 1 deletion plan/2026-11-08-1-per-run-packs.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runvil moves from one Pack object per process, shared by every run, to one Pack

## Notes

- **Repository:** `c:\Users\Vinnie\cursor\runvil`, a Rust workspace on Windows (PowerShell), at `master` `56925dd41` when this plan was written. Every path in this plan is relative to that root, except paths in the sibling repository `runvil-plugin-api`, which say so.
- **Repository:** `runvil`, a Rust workspace on Windows (PowerShell), at `master` `56925dd41` when this plan was written. Every path in this plan is relative to the repository root, except paths in the sibling repository `runvil-plugin-api`, which say so.
- **Conventions:** `AGENTS.md` and the `AGENTS.md` of every crate a step touches define the terms and layout conventions.
- **Build:** `cargo build --locked -p workshop`. The two lint commands compile every other target, so there is no standalone workspace build or `cargo check` (`AGENTS.md` lines 45 to 51, `.github/workflows/ci.yml`).
- **Package tests:** `cargo nextest run --locked -p <package>`, for example `-p harness-runner`, `-p plugin-mcp`, or `-p workshop-agents`. For runvil-plugin use `cargo nextest run --locked -p runvil-plugin --all-features`: its `tests/it` binary needs the `test-support` feature and runs no tests without it, which the first full-suite command's `--all-features` covers.
Expand Down
4 changes: 2 additions & 2 deletions plan/2026-11-08-2-run-inbox-user-pack.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Every chain of a run gets an inbox in the Engine. The Host sends the operator's

## Notes

- Repository: `c:\Users\Vinnie\cursor\runvil`, a Rust workspace on Windows (PowerShell). Every path in this plan is relative to its root, except the guide paths in steps 5 and 6 (see Docs).
- Repository: `runvil`, a Rust workspace on Windows (PowerShell). Every path in this plan is relative to its root, except the guide paths in steps 5 and 6 (see Docs).
- Setup: `npm ci --prefix crates/workshop` (Node 22) before cargo commands that build the Workshop (`.github/workflows/ci.yml`).
- Build: `cargo build --locked -p workshop` (`.github/workflows/ci.yml` line 198).
- Package tests: `cargo nextest run --locked -p <package>`, for example `-p runvil-engine`, `-p runvil-lua`, `-p harness-runner`, `-p workshop-agents` (`plan/2026-11-08-1-per-run-packs.plan.md`, Notes).
Expand All @@ -29,7 +29,7 @@ Every chain of a run gets an inbox in the Engine. The Host sends the operator's
- Wording: `node --test crates/workshop/ui/test/docs-claims.mjs`, from any directory.
- Rustdoc: run `$env:RUSTDOCFLAGS = '-D warnings'` first, then `cargo doc --workspace --no-deps --all-features --exclude workshop --exclude workshop-server --exclude workshop-server-api`, `cargo doc -p runvil --no-deps`, `cargo doc -p harness --no-deps`, `cargo doc --locked --no-deps --all-features -p runvil-engine --document-private-items`, and `cargo doc --locked --no-deps -p workshop-server --document-private-items` (`.github/workflows/ci.yml` lines 97 to 108 and 154). A doc link to an item a step removes fails these.
- API surface: run `Remove-Item Env:CARGO_BUILD_WARNINGS -ErrorAction SilentlyContinue`, then `cargo +nightly-2026-09-05 xtask api --check` (toolchain pinned in `crates/build-xtask/src/api/toolchain.rs` line 19). A step that changes the `runvil` facade regenerates `crates/runvil/public-api.txt` with `cargo +nightly-2026-09-05 xtask api --bless`; a plain `xtask api` only prints the difference (`crates/build-xtask/src/api.rs` lines 31 to 35).
- Docs: the language guide is the sibling repository `runvil-docs` (`c:\Users\Vinnie\cursor\runvil-docs`), and the `src/language/` paths in steps 5 and 6 are relative to its root. Build it from the `runvil` root: run `$env:RUNVIL_DOCS = 'c:\Users\Vinnie\cursor\runvil-docs'`, put `$env:USERPROFILE\.cargo\bin` on `PATH` (or set `$env:MDBOOK`), run `cargo xtask site --books-only`, which stages the chapters, builds them with mdbook, and checks links, then run `cargo test -p build-user-guide` (`runvil-docs` files `CONTRIBUTING.md` line 7 and `plans/build-language-guide.md` line 149). House rules: no em dash and no double dash, every code fence opens with four backticks, and each paragraph stays on one line (`runvil-docs` file `CONTRIBUTING.md` lines 14 to 18). Write each rule as steps 1 to 4 built it, checked against their tests. Steps 5 and 6 come before step 7 so that the final step builds and tests `runvil` as a whole. The guide therefore drops the `user-input` Pack, `input.ask`, the input broker, and host services, and describes the chat agent's new loop, before step 7 changes the code to match.
- Docs: the language guide is the sibling repository `runvil-docs` (`../runvil-docs`), and the `src/language/` paths in steps 5 and 6 are relative to its root. Build it from the `runvil` root: run `$env:RUNVIL_DOCS = '../runvil-docs'`, put `$env:USERPROFILE\.cargo\bin` on `PATH` (or set `$env:MDBOOK`), run `cargo xtask site --books-only`, which stages the chapters, builds them with mdbook, and checks links, then run `cargo test -p build-user-guide` (`runvil-docs` files `CONTRIBUTING.md` line 7 and `plans/build-language-guide.md` line 149). House rules: no em dash and no double dash, every code fence opens with four backticks, and each paragraph stays on one line (`runvil-docs` file `CONTRIBUTING.md` lines 14 to 18). Write each rule as steps 1 to 4 built it, checked against their tests. Steps 5 and 6 come before step 7 so that the final step builds and tests `runvil` as a whole. The guide therefore drops the `user-input` Pack, `input.ask`, the input broker, and host services, and describes the chat agent's new loop, before step 7 changes the code to match.
- Guide steps: steps 5 and 6 change files only in `runvil-docs`, so for those two steps `runvil-docs` is the repository: run their git commands there and take their commit hashes from it. The plan copy stays in `runvil`, outside `runvil-docs`, so commit it apart from the guide: right after a guide step's first commit in `runvil-docs`, commit the plan copy alone in `runvil` with the same message. From then on, an amend that stages the plan copy amends that `runvil` commit, and an amend of guide files amends the `runvil-docs` commit. On resume, take a guide step's commit from `runvil-docs`'s HEAD. Before step 5 makes its first change, check that `runvil-docs` has a clean worktree; when it does not, stop and ask the user.
- Unrelated, unfixed: `runvil-docs` chapter 04's `### Unavailable Packs` quotes the log `Pack construct failed; it is built as unavailable`, which no longer exists, and omits a factory refusing one run; `crates/harness-internal/runner/src/packs.rs` logs `Pack was inserted unavailable` (line 123) and the per-run refusal and panic (lines 310 and 319).
- Unrelated, unfixed: `runvil-docs` chapter 16's `### Run codes` still says `requirements_unmet` covers a required Pack that needs a service the run lacks, though the guide no longer describes host services and `requirements.rs` checks none.
Expand Down
6 changes: 3 additions & 3 deletions plan/2026-11-08-3-run-inbox-fixes.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The language guide and the Rust docs say what the code does.

## Notes

- Repository: `c:\Users\Vinnie\cursor\runvil`, a Rust workspace on Windows (PowerShell) with a TypeScript UI under `crates/workshop`. Every path in this plan is relative to its root, except the guide paths in step 4 (see Docs).
- Repository: `runvil`, a Rust workspace on Windows (PowerShell) with a TypeScript UI under `crates/workshop`. Every path in this plan is relative to its root, except the guide paths in step 4 (see Docs).
- Setup: `npm ci --prefix crates/workshop` (Node 22) before cargo commands that build the Workshop (`.github/workflows/ci.yml`).
- Build: `cargo build --locked -p workshop` (`.github/workflows/ci.yml` line 198).
- Package tests: `cargo nextest run --locked -p <package>`, for example `-p runvil-engine`, `-p runvil-lua`, `-p harness-runner`, `-p workshop-server`, `-p workshop-agents` (`plan/2026-11-08-1-per-run-packs.plan.md`, Notes). UI tests: one file with `node --test test/<file>.mjs` from `crates/workshop/ui`, which is how the `test` script in `crates/workshop/ui/package.json` runs the suite.
Expand All @@ -51,8 +51,8 @@ The language guide and the Rust docs say what the code does.

These come from `.github/workflows/ci.yml` lines 97 to 108 and 154.
- API surface: run `Remove-Item Env:CARGO_BUILD_WARNINGS -ErrorAction SilentlyContinue`, then `cargo +nightly-2026-09-05 xtask api --check` (toolchain pinned in `crates/build-xtask/src/api/toolchain.rs` line 19). A step that changes the `runvil` facade regenerates `crates/runvil/public-api.txt` with `cargo +nightly-2026-09-05 xtask api --bless`; a plain `xtask api` only prints the difference (`crates/build-xtask/src/api.rs` lines 31 to 35).
- Docs: the language guide is the sibling repository `runvil-docs` (`c:\Users\Vinnie\cursor\runvil-docs`), and the `src/language/` paths in step 4 are relative to its root, with line numbers as they stand at its HEAD `1b19d20`.
- Build it from the `runvil` root: run `$env:RUNVIL_DOCS = 'c:\Users\Vinnie\cursor\runvil-docs'` and put `$env:USERPROFILE\.cargo\bin` on `PATH` (or set `$env:MDBOOK`).
- Docs: the language guide is the sibling repository `runvil-docs` (`../runvil-docs`), and the `src/language/` paths in step 4 are relative to its root, with line numbers as they stand at its HEAD `1b19d20`.
- Build it from the `runvil` root: run `$env:RUNVIL_DOCS = '../runvil-docs'` and put `$env:USERPROFILE\.cargo\bin` on `PATH` (or set `$env:MDBOOK`).
- Then run `cargo xtask site --books-only`, which stages the chapters, builds them with mdbook, and checks links, and then `cargo test -p build-user-guide`. Sources: `runvil-docs` files `CONTRIBUTING.md` line 7 and `plans/build-language-guide.md` line 149.
- House rules: no em dash and no double dash, every code fence opens with four backticks, and each paragraph stays on one line (`runvil-docs` file `CONTRIBUTING.md` lines 14 to 18).
- Write each rule as steps 1 to 3 built it, checked against their tests.
Expand Down
4 changes: 2 additions & 2 deletions plan/2026-11-24-1-streaming-callback.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ The conversation behind this plan is the chat [Streaming design and plan](9f59b3

### Where things are

- **The repos** are checkouts in the workspace root, `c:\Users\Vinnie\cursor`. In the Harness and in Workshop, `origin` is the fork under `vinniefalco` and `upstream` is the repo under `cppalliance`. In the design repo, `origin` is the repo under `cppalliance`, and it is the one remote. Your fork of it is `vinniefalco/runvil-design`, whose `master` is an ancestor of the local one, and I push to it by its URL, `git push git@github.com:vinniefalco/runvil-design.git master`. The one branch of each repo is `master`, and the work stays on it.
- **This plan** is the file `C:\Users\Vinnie\.cursor\plans\streaming_callback_refactor_93d3a6c9.plan.md`. Each repo's copy is made from it, under one file name in all three repos.
- **The repos** are sibling checkouts in the workspace root. In the Harness and in Workshop, `origin` is the fork under `vinniefalco` and `upstream` is the repo under `cppalliance`. In the design repo, `origin` is the repo under `cppalliance`, and it is the one remote. Your fork of it is `vinniefalco/runvil-design`, whose `master` is an ancestor of the local one, and I push to it by its URL, `git push git@github.com:vinniefalco/runvil-design.git master`. The one branch of each repo is `master`, and the work stays on it.
- **This plan** is stored at `plan/2026-11-24-1-streaming-callback.plan.md`. Each repo's copy is made from it, under one file name in all three repos.
- **The scratch folder of this run** is `cabinet/_scratch/streaming-callback/`. It holds the three scripts, `notes.md`, each commit message, and the patch file of the dry run. The notes hold the three heads from prep, each test count, and each result on the way.

### Rules of this work
Expand Down
2 changes: 1 addition & 1 deletion vibe/2026-08/2026-08-24-1-stage-1-the-window.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ isProject: false

# Stage 1: The Window

Build the first deliverable of the Runvil Workbench per the design notes at `c:\Users\Vinnie\.cursor\plans\runvil_workbench_notes_8491f808.plan.md` (read its "Running this plan" section first; it governs). Stage 1 is defined there as: server crate plus shell crate plus a chat panel - streaming conversation with Claude through the gateway, local models too, and push-to-talk voice from day one - with a raw append-only JSONL tape recording every request and response from the first commit.
Build the first deliverable of the Runvil Workbench per the design notes in the untracked external Cursor plan draft `runvil_workbench_notes_8491f808.plan.md` outside this repository (read its "Running this plan" section first; it governs). Stage 1 is defined there as: server crate plus shell crate plus a chat panel - streaming conversation with Claude through the gateway, local models too, and push-to-talk voice from day one - with a raw append-only JSONL tape recording every request and response from the first commit.

## What is being built

Expand Down
8 changes: 4 additions & 4 deletions vibe/2026-08/2026-08-24-2-autogen-config-first-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ isProject: false

# Auto-generate config, gateway cache API, status bar, and skinning

This plan touches both the runvil-gateway and the runvil workbench crates. It assumes the stage-1 build is complete (commits through `cb00dee` on master in the runvil repo at `c:\Users\Vinnie\cursor\runvil`).
This plan touches both the runvil-gateway and the runvil workbench crates. It assumes the stage-1 build is complete (commits through `cb00dee` on master in the runvil repo at `runvil`).

## Context for a fresh reader

The runvil workspace (`c:\Users\Vinnie\cursor\runvil`) contains:
The runvil workspace (`runvil`) contains:
- `crates/runvil-gateway` - a local model gateway serving OpenAI-compatible chat completions, with local GGUF provisioning via hf-hub
- `crates/runvil-wb-server` - an axum HTTP server: chat proxy to the gateway via WebSocket, append-only tape, push-to-talk voice with whisper-rs transcription, dark Cursor-like UI served as embedded static assets
- `crates/runvil-wb` - a desktop shell (wry/tao window) that spawns the server in-process
Expand Down Expand Up @@ -313,13 +313,13 @@ At startup, after the gateway heartbeat reports connected:

## Key paths

- Workspace root: `c:\Users\Vinnie\cursor\runvil`
- Workspace root: `runvil`
- Gateway crate: `crates/runvil-gateway/`
- Workbench server: `crates/runvil-wb-server/`
- Workbench shell: `crates/runvil-wb/`
- UI assets: `crates/runvil-wb-server/ui/`
- Decision log: `design/design-runvil-wb-1.md`
- Rulebooks: `c:\Users\Vinnie\cursor\tools-public\rulebooks/` (vibe-rulebook.md, rust-rulebook.md, html-css-rulebook.md)
- Rulebooks: `../tools-public/rulebooks/` (vibe-rulebook.md, rust-rulebook.md, html-css-rulebook.md)


---
Expand Down
2 changes: 1 addition & 1 deletion vibe/2026-08/2026-08-26-1-remove-voice-status-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ isProject: false

# Runvil Workshop UI overhaul

All paths below are relative to `runvil/` (the repo at `c:\Users\Vinnie\cursor\runvil`). The UI lives in `crates/runvil-ws-server/ui/`; the desktop shell is `crates/runvil-ws/`; the in-process server is `crates/runvil-ws-server/src/`.
All paths below are relative to `runvil/` (the repo at `runvil`). The UI lives in `crates/runvil-ws-server/ui/`; the desktop shell is `crates/runvil-ws/`; the in-process server is `crates/runvil-ws-server/src/`.

## House rules (binding on every step)

Expand Down
Loading
Loading