From 3b2dfda62c8ec79456fd1ec6f13fffc0e2270e0a Mon Sep 17 00:00:00 2001 From: Chris Scott <> Date: Sun, 11 Oct 2026 21:48:34 +0000 Subject: [PATCH] docs: correct developer test commands and CLI requirements --- AGENTS.md | 7 ++++--- CONTRIBUTING.md | 3 ++- ocm-cli/README.md | 21 +++++++++++++-------- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f8a321ef..aae1d66f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,9 +7,10 @@ - `pnpm dev:frontend` - Frontend only: `pnpm --filter frontend dev` - `pnpm build` - Build CLI, backend, and frontend - `pnpm test` - Run CLI, backend, and frontend tests -- `cd backend && vitest ` - Run single test file -- `cd backend && vitest --ui` - Test UI with coverage -- `cd backend && vitest --coverage` - Coverage report (80% threshold) +- `cd backend && pnpm exec vitest run ` - Run single test file +- `cd backend && pnpm exec vitest --ui` - Interactive test UI +- `cd backend && pnpm exec vitest run --coverage` - Coverage report (80% threshold) +- `cd backend && bun test ` - Run a Bun-only suite, excluded from Vitest (`test/routes/internal-sandbox.test.ts`, `src/routes/repos.test.ts`) - `pnpm lint` - Lint CLI, frontend, and backend - `pnpm lint:backend` - Backend linting - `pnpm lint:frontend` - Frontend linting diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a4ee3b04..492335c7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -73,7 +73,8 @@ Each item is tagged with a theme to help you find work in your area of interest: ```bash pnpm test # Run CLI, backend, and frontend tests -cd backend && vitest # Run single test file +cd backend && pnpm exec vitest run # Run single test file +cd backend && bun test # Run a Bun-only suite (test/routes/internal-sandbox.test.ts, src/routes/repos.test.ts) ``` ### Linting and Type Checking diff --git a/ocm-cli/README.md b/ocm-cli/README.md index 3a02ceba..e02b1894 100644 --- a/ocm-cli/README.md +++ b/ocm-cli/README.md @@ -10,21 +10,24 @@ to the local working tree. | ocm | OpenCode Manager | Local OpenCode | |---|---|---| +| 0.4.x | >= 0.19.0 | >= 2.0.15, < 3 | | 0.3.x | >= 0.19.0 | >= 2.0.15, < 3 | -ocm 0.3.0 attaches through the repo-scoped Manager proxy -(`/api/opencode-proxy/repos/:repoId`), loads its plugin from the OpenCode 2 -`cli.json` `plugins` list, and moves sessions with OpenCode 2 session +ocm 0.4.x and 0.3.x attach through the repo-scoped Manager proxy +(`/api/opencode-proxy/repos/:repoId`), load the plugin from the OpenCode 2 +`cli.json` `plugins` list, and move sessions with OpenCode 2 session export/import. Older Managers lack that route; `ocm` then fails with -`OpenCode Manager at is too old for ocm 0.3.0; upgrade the Manager to >= 0.19.0`. +`OpenCode Manager at is too old for ocm ; upgrade the Manager to >= 0.19.0`. Use ocm 0.2.x with OpenCode Manager < 0.19.0 and OpenCode 1.x, installed pinned (`pnpm add -g @opencode-manager/ocm-cli@0.2`) with the OpenCode 1.x plugin entry pinned to `@opencode-manager/ocm-cli@0.2`. ocm is published together with each OpenCode Manager release. -`/ocm-move` requires ocm 0.4.0+ and a Manager that supports worktree moves; an -older CLI is told to upgrade, and an older Manager is reported as needing an -upgrade. +Attachment works with OpenCode Manager >= 0.19.0. The sync worktree targeting of +`ocm push` / `ocm pull` and `/ocm-move` worktree moves need ocm 0.4.0+ and +OpenCode Manager 1.0.0+; an older CLI is told to upgrade, and an older Manager is +reported as needing an upgrade (push and pull fall back to the main checkout +instead). ## Install @@ -39,7 +42,8 @@ also create a best-effort `~/.local/bin/ocm` symlink. The package is also self-contained for a vendored install with no package manager. `ocm install` copies the package into `/plugin/ocm-cli`, registers `./plugin/ocm-cli/dist` in `/cli.json`, and links `ocm` at -`~/.local/bin/ocm`. `` is `$OPENCODE_CONFIG_DIR`, else +`~/.local/bin/ocm`. The vendored `ocm` binary runs under Node, so Node must be +on `PATH`. `` is `$OPENCODE_CONFIG_DIR`, else `$XDG_CONFIG_HOME/opencode`, else `~/.config/opencode`; `--dir ` overrides it. `--no-link` skips the symlink, and `--force` replaces a non-symlink `ocm` already at the link path. Run it without an existing @@ -261,6 +265,7 @@ global installs); the plugin surface is TUI-only. - macOS or Linux (Windows is unsupported) - OpenCode >= 2.0.15 (same major, 2.x) available on `PATH` +- Node available on `PATH` (runs the `ocm` binary) - OpenCode Manager >= 0.19.0 - `git` and `tar` (with gzip support, i.e. the `-z` flag) available on `PATH` - `bash`, used for hidden token entry and interactive confirmations