werkmeister 0.27.0 → 0.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CONVENTIONS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Code conventions — `src/`
2
2
 
3
3
  Conventions this CLI holds itself to. They exist because the runtime data in
4
- `infra/` and `docs/standards/` is consumed as-is and much of the output is
4
+ `infra/` is consumed as-is and much of the output is
5
5
  contract-shaped: generated files, exit codes, and printed text are depended on
6
6
  by other tooling, so they are not free to drift.
7
7
 
@@ -13,9 +13,11 @@ by other tooling, so they are not free to drift.
13
13
  | `src/commands/<name>.ts` | one module per CLI command |
14
14
  | `src/lib/<name>.ts` | shared library modules |
15
15
 
16
- Runtime data dirs live alongside the source: `infra/`, `docs/standards/`, `bin/`.
17
- Path resolution: repo root = `SANDBOX_ROOT` env, else two levels up from
18
- `dist/lib/` (`src/lib/config.ts` owns `getSandboxRoot()` / `getInfraRoot()`).
16
+ Runtime data dirs live alongside the source: `infra/`, `bin/`.
17
+ Path resolution: package root = `WERKMEISTER_ROOT` / `SANDBOX_ROOT` env, else the first
18
+ ancestor holding `apps/cli` (`sandboxRoot()` / `infraRoot()` in
19
+ `packages/sandbox-core/src/config.ts`, re-exported by `src/lib/config.ts` as
20
+ `getSandboxRoot()` / `getInfraRoot()`).
19
21
 
20
22
  ## Language
21
23
 
@@ -32,13 +34,13 @@ Path resolution: repo root = `SANDBOX_ROOT` env, else two levels up from
32
34
  verbatim with other consumers, so the environment options in `generate.ts`
33
35
  (autoescape, trim/lstrip) are load-bearing — see the notes there before
34
36
  touching them.
35
- - Subprocesses go through `src/lib/proc.ts` (spawnSync-based, synchronous):
37
+ - Subprocesses go through `packages/sandbox-core/src/proc.ts` (spawnSync-based, synchronous):
36
38
  - `run(cmd: string[], opts)` → `{ status, stdout, stderr }`; `check: true` throws `ProcError`.
37
39
  - `capture(cmd)` → trimmed stdout, throws on failure.
38
40
  - Streaming/inherit-stdio cases: pass `stdio: "inherit"`.
39
41
  - `timeout` is in **seconds**, not milliseconds.
40
42
  - Filesystem work uses the sync `node:fs` API (`readFileSync` etc.) plus `node:path`.
41
- - ANSI colors come from `src/lib/colors.ts` — the single definition site.
43
+ - ANSI colors come from `packages/sandbox-core/src/colors.ts` — the single definition site.
42
44
  - `console.error` for stderr, `console.log` for stdout.
43
45
  - `process.exit(n)` for exit codes. Thrown errors reach `main`, which prints
44
46
  `Error: <msg>` in red and exits 1; `SANDBOX_DEBUG` re-raises with a stack.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # sandbox
1
+ # werkmeister
2
2
 
3
3
  A multi-feature concurrent development orchestrator: run up to 12 isolated
4
4
  feature environments side by side, each with its own containers, ports, and
@@ -9,10 +9,11 @@ ingress hostnames.
9
9
  ```sh
10
10
  pnpm install
11
11
  pnpm run build
12
- ./sandbox --help
12
+ ./werkmeister --help
13
13
  ```
14
14
 
15
- `./sandbox` resolves a node runtime (SANDBOX_NODE → PATH → newest nvm) and execs
15
+ `./werkmeister` (alias `./w9r`; `./sandbox` is deprecated) resolves a node runtime
16
+ (WERKMEISTER_NODE → SANDBOX_NODE → PATH → newest nvm) and execs
16
17
  `dist/main.js`. `sandbox hooks gate` bypasses the CLI import chain via
17
18
  `dist/lib/gate.js` for a fast PreToolUse cold start.
18
19
 
@@ -41,9 +42,8 @@ feature name (`infra` plus the workspaces under the workspaces root).
41
42
  - `src/main.ts` — commander program (subcommand registry + dispatch)
42
43
  - `src/commands/` — one module per subcommand (`run(args)` entrypoints)
43
44
  - `src/lib/` — shared logic
44
- - `infra/`, `docs/standards/`, `bin/` — runtime data the CLI consumes as-is
45
+ - `infra/`, `bin/` — runtime data the CLI consumes as-is
45
46
  - `CONVENTIONS.md` — the code conventions used throughout
46
- - `docs/design.md` — scope and decisions
47
47
 
48
48
  ## Notes
49
49