@orkestrel/capture 0.0.8 → 0.0.10

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/README.md CHANGED
@@ -16,18 +16,19 @@ npm install -D @orkestrel/capture
16
16
 
17
17
  The manifest declares these peer ranges; install the browser peers when you run browser journeys:
18
18
 
19
- | Peer | Range | Required by the manifest |
20
- | ---------------------------- | --------------------- | ------------------------ |
21
- | `vitest` | `^4.1.12 \|\| ^5.0.5` | Yes |
22
- | `vite` | `^8.3.5` | Yes |
23
- | `@vitest/browser-playwright` | `^4.1.12 \|\| ^5.0.5` | Optional |
24
- | `playwright` | `^1.61.0` | Optional |
19
+ | Peer | Range | Required by the manifest |
20
+ | ---------------------------- | --------- | ------------------------ |
21
+ | `vitest` | `^5.1.0` | Yes |
22
+ | `vite` | `^8.3.8` | Yes |
23
+ | `@vitest/browser-playwright` | `^5.0.5` | Optional |
24
+ | `playwright` | `^1.65.0` | Optional |
25
+ | `@orkestrel/test` | `~0.0.41` | Yes |
25
26
 
26
27
  ## Requirements
27
28
 
28
29
  The CLI workflow requires the following host setup:
29
30
 
30
- - Node.js >= 22.18.0.
31
+ - Node.js `^22.18.0 || >=24.4.0`.
31
32
  - A Git workspace with a commit and locally installed Vitest.
32
33
  - A Vitest browser provider and its browser runtime for execution stages. The integration proof uses
33
34
  `@vitest/browser-playwright` and Chromium.
@@ -60,25 +61,28 @@ contact sheets. Preflight and sheets report `acceptance: false`; they provide it
60
61
 
61
62
  ## Commands
62
63
 
63
- Every command accepts `--config <file>`. The principal selection and output flags are as follows:
64
+ Every command but `progress` accepts `--config <file>`. The principal selection and output flags are as follows:
64
65
 
65
- | Command | Flags and behavior |
66
- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
67
- | `capture registry` | `--variant <name>` repeats to refresh selected producing variants; `--mode <name>` selects the wrapper's mode. Takes no selector. |
68
- | `capture journey <selector>` | `--variant <name>` repeats; `--case <full name>` selects an exact case; `--mode <name>` selects the wrapper mode. Use `--changed <ref>` instead of the selector, with optional `--plan`. |
69
- | `capture frames <selector>` | Journey flags plus `--state <name>` to resolve a state through fresh passing lookup evidence; `--mode <name>` selects the wrapper mode. |
70
- | `capture stale <selector>` | `--variant <name>` repeats; `--case <full name>`, `--state <name>`, `--portfolio <name>`, and `--mode <name>` narrow the freshness reading. |
71
- | `capture preflight <selector>` | Stale flags plus `--mode <name>`, `--journeys <directory>` for artifacts, and `--checks <module>` for the host's `CAPTURE_CHECKS` export. |
72
- | `capture sheets <selector> --output <directory>` | Preflight flags, including `--mode <name>`, plus required `--output <directory>` for a new contained directory outside selected captures. |
66
+ | Command | Flags and behavior |
67
+ | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
68
+ | `capture registry` | `--variant <name>` repeats to refresh selected producing variants; `--no-bail` runs every case after a failure; `--mode <name>` selects the wrapper's mode. Takes no selector. |
69
+ | `capture journey <selector>` | `--variant <name>` repeats; `--case <full name>` selects an exact case; `--no-bail` runs every selected case after a failure; `--mode <name>` selects the wrapper mode. Use `--changed <ref>` instead of the selector, with optional `--plan`. |
70
+ | `capture frames <selector>` | Journey flags plus `--state <name>` to resolve a state through fresh passing lookup evidence; `--mode <name>` selects the wrapper mode. |
71
+ | `capture stale <selector>` | `--variant <name>` repeats; `--case <full name>`, `--state <name>`, `--portfolio <name>`, and `--mode <name>` narrow the freshness reading. |
72
+ | `capture preflight <selector>` | Stale flags plus `--mode <name>`, `--journeys <directory>` for artifacts, and `--checks <module>` for the host's `CAPTURE_CHECKS` export. |
73
+ | `capture sheets <selector> --output <directory>` | Preflight flags, including `--mode <name>`, plus required `--output <directory>` for a new contained directory outside selected captures. |
74
+ | `capture progress` | Takes no argument. Prints the cases done against the cases known, the failures, the case running, and the time elapsed, from the progress file of the stage that is running or that ran last. |
73
75
 
74
76
  `--mode <name>` is available on every command that reads the wrapper. It reaches discovery and execution children and wrapper project factories; omission keeps Vitest's default mode.
75
77
 
76
78
  A selector is `all` or a declared colon-separated owner path. Only `--variant` repeats. Every
77
- flag except `--plan` takes a nonempty value as `--flag value` or `--flag=value`; a value beginning
78
- with a dash needs equals form. The CLI refuses the `--` terminator and repeated single-value flags.
79
+ flag except `--plan` and `--no-bail` takes a nonempty value as `--flag value` or `--flag=value`; a
80
+ value beginning with a dash needs equals form. The CLI refuses the `--` terminator and repeated single-value flags.
79
81
 
80
- Registry refresh checks inherited manifest and lookup journal schemas before starting a stage.
81
- An unreadable or unsupported document refuses the refresh and names the file to inspect and repair.
82
+ Registry refresh checks inherited manifest and lookup journal versions, then schemas, before
83
+ starting a stage. A document of another version refuses the refresh with the files to remove and
84
+ the refresh commands; an unreadable document or an unsupported schema names the file to inspect
85
+ and repair.
82
86
 
83
87
  For changed selection, `HEAD` includes uncommitted work. The plan prints changed paths and commands
84
88
  after discovery and starts no execution child. Shared inputs refuse narrowing and print an explicit
@@ -106,6 +110,9 @@ parent PID, process arguments, wrapper path, and project declarations. When the
106
110
  return `buildCaptureDiscoveryConfig()` so discovery starts no browser or test. For an execution
107
111
  child, read `readCaptureRequest` with the same parent, arguments, and wrapper identity plus the
108
112
  declared owners and variants. The runner passes the request directory through `CAPTURE_REQUESTS`.
113
+ `buildCaptureWrapper` from `@orkestrel/capture/server` performs these steps from the host's
114
+ declarations, provides each project the following values except `standalone`, and mounts the progress plugin the
115
+ `capture progress` command reads.
109
116
 
110
117
  Each project's `test.provide` object supplies the following host declarations:
111
118
 
@@ -116,9 +123,10 @@ Each project's `test.provide` object supplies the following host declarations:
116
123
  | `final` | The exact final case name that persists the run record, including under exact-case selection. |
117
124
  | `directory`, `record` | The primary evidence directory and the project's declared record path. Stage records bind the request's invocation, stage, and variant. |
118
125
  | `inputs` | Bounded native glob patterns for the input snapshot. |
126
+ | `sources` | The `shared` and `tests` source patterns the suite attributes to every destination. |
119
127
  | `portfolios` | Authorized portfolio roots with their `portfolio`, `directory`, and `scoped` declarations. |
120
128
  | `uniform` | Optional owner selectors for mixed-framing checks. Omission checks every scope; an empty list checks none. |
121
- | `standalone` | Optional portfolio roots with no stamping route through this wrapper. |
129
+ | `standalone` | Optional portfolio roots with no stamping route through this wrapper. `buildCaptureWrapper` provides no standalone roots. |
122
130
 
123
131
  Declare `owner:` tags for owners and their ancestors, and capture tags for the scopes and parts
124
132
  that produce frames. Projects must agree on shared host declarations. The final case must retain