@osfactory/har 0.10.0 → 0.11.0

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
@@ -135,7 +135,16 @@ my-app/
135
135
 
136
136
  HAR stages are project-defined operations with stable identifiers and normalized results. A stage can be as simple as `verify` or as specific as `browser-e2e`, `migration-check`, `accessibility`, or `load-smoke`.
137
137
 
138
- The important boundary is that HAR runs and reports stages generically. It does not need a special Playwright, migration, accessibility, or load-test API in the core product.
138
+ The important boundary is that HAR runs and reports stages generically. It does not need a special Playwright, migration, accessibility, or load-test API in the core product. The authoring contract (command vs script stages, the script contract, how `verificationStages` controls `verify --full`) ships into every harness as `.har/STAGES.md`.
139
+
140
+ ### Custom stages
141
+
142
+ Register the project's real checks so they run in `verify --full` and surface to every agent:
143
+
144
+ ```bash
145
+ har env add-stage unit-tests --custom --kind test --command "npm test" --verification
146
+ har env add-stage db-integrity --custom --script # scaffolds .har/stages/db-integrity.sh
147
+ ```
139
148
 
140
149
  ### Playwright (optional)
141
150
 
@@ -154,7 +163,8 @@ See `.har/stages/PLAYWRIGHT.md` in the target repo after applying the template.
154
163
  | Command | Description |
155
164
  |---------|-------------|
156
165
  | `har env init` | Scaffold `.har/` + print coding-agent adaptation prompt |
157
- | `har env add-stage playwright` | Add Playwright `browser-e2e` stage + test scaffold |
166
+ | `har env add-stage playwright` | Add a stage template (`playwright`, `rocketsim`; `--list` shows all) |
167
+ | `har env add-stage <id> --custom` | Register a project-specific stage (`--command "npm test"` or `--script`) |
158
168
  | `har env maintain` | Validate harness + print maintenance prompt |
159
169
  | `har env launch 1` | Launch agent slot 1 |
160
170
  | `har env verify 1` | Run verification |