proteum 2.5.4 → 2.5.6

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.
@@ -130,6 +130,7 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
130
130
  'This command is interactive. It asks whether the current Proteum app belongs to a monorepo and, if so, which ancestor path should receive the reusable root instruction files.',
131
131
  'Standalone mode writes tracked instruction files into the current Proteum app root and creates `CLAUDE.md` symlinks beside each `AGENTS.md`.',
132
132
  'Monorepo mode writes reusable root documents such as `AGENTS.md`, `DOCUMENTATION.md`, `CODING_STYLE.md`, `diagnostics.md`, and `optimizations.md` into the chosen monorepo root, then writes only app-root and area instruction files into the current Proteum app root.',
133
+ 'When run from a monorepo wrapper root that contains Proteum apps, configure writes the shared root documents once and app-root instruction files for every discovered app.',
133
134
  'Every generated `CLAUDE.md` is a sibling symlink pointing to `AGENTS.md`.',
134
135
  'Every managed instruction file contains a `# Proteum Instructions` section with the full embedded Proteum project instruction corpus.',
135
136
  'Existing content outside `# Proteum Instructions` is preserved. Directories and foreign symlinks are replaced only after confirmation.',
@@ -167,6 +168,8 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
167
168
  'Bootstrap writes `.proteum/worktree-bootstrap.json` with hashes, step timestamps, dependency status, runtime status, and Proteum version.',
168
169
  'When `.env` is missing, `--source` is required and must point to an app root with a readable `.env`.',
169
170
  'For monorepos with root tooling, bootstrap also ensures the workspace-root `.env` exists from the source root or source app env.',
171
+ 'When `worktree init` runs from a monorepo wrapper root, Proteum bootstraps every discovered app, matches source apps by relative path, and deduplicates dependency install by shared package-lock root.',
172
+ 'When `worktree create` runs from a source monorepo wrapper root, Proteum creates the Git worktree once and then bootstraps every matching target app.',
170
173
  'Guarded commands block inside `/.codex/worktrees/` until bootstrap is complete or explicitly bypassed with `PROTEUM_ALLOW_UNBOOTSTRAPPED_WORKTREE=1`.',
171
174
  '`worktree create` preserves the source app root path relative to the source repository root, so monorepo app roots are bootstrapped in the matching target location.',
172
175
  ],
@@ -207,13 +210,14 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
207
210
  },
208
211
  ],
209
212
  notes: [
210
- 'Use `--cwd` when the target Proteum app lives in another worktree or checkout and you do not want to `cd` first.',
213
+ 'From a monorepo wrapper root, eligible app-scoped commands run for every discovered Proteum app. Use an app root or `--cwd` when supported to target exactly one app.',
214
+ 'From a monorepo wrapper root, bare `proteum dev` supervises all discovered apps with app-local session files and unique router/HMR port pairs; `dev list` and `dev stop` aggregate every app.',
211
215
  'Proteum writes a machine-readable dev session file under `var/run/proteum/dev/<port>.json` by default; override it with `--session-file` when an agent needs a stable path.',
212
216
  'Before registering a new session, Proteum removes stale same-worktree session files and fails fast if another live tracked session remains.',
213
217
  'Before the dev loop starts, Proteum ensures tracked instruction files contain the current managed `# Proteum Instructions` section.',
214
218
  'Use `--replace-existing` only when retrying the exact requested session file.',
215
- '`proteum dev list` inspects tracked sessions for the current app root. Add `--stale` to show only orphaned or dead sessions.',
216
- '`proteum dev stop` targets the current session file by default. Add `--all` to stop every tracked session for the current app root.',
219
+ '`proteum dev list` inspects tracked sessions for the current app root, or every discovered app from a monorepo wrapper root. Add `--stale` to show only orphaned or dead sessions.',
220
+ '`proteum dev stop` targets the current session file by default. Add `--all` to stop every tracked session for the current app root, or run from a monorepo wrapper root to apply the stop command to every app.',
217
221
  '`proteum dev` clears the interactive terminal once at startup, then shows `CTRL+R` reload and `CTRL+C` shutdown hotkeys in the session banner.',
218
222
  'Legacy single-dash long options remain supported, for example `proteum dev -port 3001`.',
219
223
  ],
@@ -229,7 +233,7 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
229
233
  examples: [
230
234
  { description: 'Refresh generated contracts after source edits', command: 'proteum refresh' },
231
235
  ],
232
- notes: ['Use this when you need deterministic regeneration without starting the full dev loop.'],
236
+ notes: ['Use this when you need deterministic regeneration without starting the full dev loop.', 'From a monorepo wrapper root, refresh runs once per discovered Proteum app.'],
233
237
  status: 'stable',
234
238
  },
235
239
  build: {
@@ -257,6 +261,7 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
257
261
  '`--analyze-serve` switches the analyzer to HTTP server mode and keeps the process open until you stop it.',
258
262
  '`--analyze-host` and `--analyze-port` require `--analyze-serve`; use `auto` to let the OS assign a free port.',
259
263
  'Use `--strict` when the build must refresh generated typings and fail on any TypeScript error before compilation starts.',
264
+ 'From a monorepo wrapper root, build runs once per discovered Proteum app. `--analyze-serve` must be run from one app root because the analyzer server stays open.',
260
265
  'The production output is emitted under `bin/`.',
261
266
  ],
262
267
  status: 'stable',
@@ -270,7 +275,7 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
270
275
  examples: [
271
276
  { description: 'Typecheck every discovered client and server app tsconfig', command: 'proteum typecheck' },
272
277
  ],
273
- notes: ['Proteum refreshes generated typings before running TypeScript.'],
278
+ notes: ['Proteum refreshes generated typings before running TypeScript.', 'From a monorepo wrapper root, typecheck runs once per discovered Proteum app.'],
274
279
  status: 'stable',
275
280
  },
276
281
  lint: {
@@ -283,7 +288,7 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
283
288
  { description: 'Run ESLint in check mode', command: 'proteum lint' },
284
289
  { description: 'Apply fixable lint changes', command: 'proteum lint --fix' },
285
290
  ],
286
- notes: ['Legacy positional usage such as `proteum lint fix` remains supported.'],
291
+ notes: ['Legacy positional usage such as `proteum lint fix` remains supported.', 'From a monorepo wrapper root, lint runs once per discovered Proteum app.'],
287
292
  status: 'stable',
288
293
  },
289
294
  check: {
@@ -293,7 +298,7 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
293
298
  usage: 'proteum check',
294
299
  bestFor: 'One command before commits, pushes, or CI when you want the standard local validation path.',
295
300
  examples: [{ description: 'Run the full default validation pipeline', command: 'proteum check' }],
296
- notes: ['This command executes refresh, typecheck, then lint in that order.'],
301
+ notes: ['This command executes refresh, typecheck, then lint in that order.', 'From a monorepo wrapper root, check runs once per discovered Proteum app.'],
297
302
  status: 'stable',
298
303
  },
299
304
  e2e: {
@@ -522,7 +527,7 @@ export const proteumCommands: Record<TProteumCommandName, TProteumCommandDoc> =
522
527
  '`proteum dev` ensures one managed machine MCP daemon is running before the app dev loop starts.',
523
528
  'Terminal `proteum mcp` prints a compact central MCP banner with the Streamable HTTP URL for client setup.',
524
529
  '`proteum mcp` is a router, not an app dev server. It discovers live `proteum dev` sessions from the machine registry and can resolve offline app candidates from `cwd`.',
525
- 'Agents should call MCP `workflow_start` with `cwd` or a known `projectId`; use `project_resolve { cwd }` when routing is ambiguous or no live dev server exists yet.',
530
+ 'Agents should call MCP `workflow_start` with `cwd` or a known `projectId`; use `project_resolve { cwd }` when routing is ambiguous or no live dev server exists yet, then resolve returned `data.readiness` setup actions before starting dev.',
526
531
  'When an offline app candidate is returned, start exactly one `proteum dev` from that app root before runtime diagnose, trace, or perf reads.',
527
532
  'After an MCP read succeeds, agents should not run the equivalent CLI command or broad owner search for the same runtime state.',
528
533
  'App runtime data still comes from the selected dev-hosted `/__proteum/mcp` endpoint.',