@osfactory/har 0.10.0 → 0.12.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
@@ -4,8 +4,9 @@
4
4
 
5
5
  # har — Your AI harness orchestrator
6
6
 
7
- [![Release](https://img.shields.io/github/v/release/antoineFrau/har)](https://github.com/antoineFrau/har/releases)
8
- [![CI](https://github.com/antoineFrau/har/actions/workflows/test.yml/badge.svg)](https://github.com/antoineFrau/har/actions/workflows/test.yml)
7
+ [![Release](https://img.shields.io/github/v/release/os-factory/har)](https://github.com/os-factory/har/releases)
8
+ [![CI](https://github.com/os-factory/har/actions/workflows/test.yml/badge.svg)](https://github.com/os-factory/har/actions/workflows/test.yml)
9
+ [![Documentation](https://img.shields.io/badge/docs-harproject.cloud-38c976)](https://harproject.cloud/)
9
10
 
10
11
  **Make any repository agent-ready without binding it to one coding agent, test runner, or hosted platform.**
11
12
 
@@ -24,20 +25,20 @@ HAR does not own the coding LLM and does not replace CI/CD. It gives agents a st
24
25
 
25
26
  ## Install
26
27
 
27
- **From npm** (after the first GitHub Release — `@osfactory/har` is not on npm yet):
28
+ **From npm:**
28
29
 
29
30
  ```bash
30
- npm install -g @osfactory/har
31
+ npm install -g @osfactory/har@latest
31
32
  ```
32
33
 
33
- **From source** (recommended until the first release):
34
+ **From source:**
34
35
 
35
36
  ```bash
36
- git clone https://github.com/antoineFrau/har har-project && cd har-project
37
+ git clone https://github.com/os-factory/har har-project && cd har-project
37
38
  npm install && npm run build && npm link
38
39
  ```
39
40
 
40
- See [AGENT.md](./AGENT.md) for architecture and coding-agent guidance, and [CONTRIBUTING.md](./CONTRIBUTING.md) for the full development workflow, testing on sample projects, and project layout. To report security issues, see [SECURITY.md](./SECURITY.md).
41
+ Read the [full documentation](https://harproject.cloud/). See [AGENT.md](./AGENT.md) for architecture and coding-agent guidance, and [CONTRIBUTING.md](./CONTRIBUTING.md) for the full development workflow, testing on sample projects, and project layout. To report security issues, see [SECURITY.md](./SECURITY.md).
41
42
 
42
43
  ## Harness profiles
43
44
 
@@ -135,7 +136,16 @@ my-app/
135
136
 
136
137
  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
138
 
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.
139
+ 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`.
140
+
141
+ ### Custom stages
142
+
143
+ Register the project's real checks so they run in `verify --full` and surface to every agent:
144
+
145
+ ```bash
146
+ har env add-stage unit-tests --custom --kind test --command "npm test" --verification
147
+ har env add-stage db-integrity --custom --script # scaffolds .har/stages/db-integrity.sh
148
+ ```
139
149
 
140
150
  ### Playwright (optional)
141
151
 
@@ -154,7 +164,8 @@ See `.har/stages/PLAYWRIGHT.md` in the target repo after applying the template.
154
164
  | Command | Description |
155
165
  |---------|-------------|
156
166
  | `har env init` | Scaffold `.har/` + print coding-agent adaptation prompt |
157
- | `har env add-stage playwright` | Add Playwright `browser-e2e` stage + test scaffold |
167
+ | `har env add-stage playwright` | Add a stage template (`playwright`, `rocketsim`; `--list` shows all) |
168
+ | `har env add-stage <id> --custom` | Register a project-specific stage (`--command "npm test"` or `--script`) |
158
169
  | `har env maintain` | Validate harness + print maintenance prompt |
159
170
  | `har env launch 1` | Launch agent slot 1 |
160
171
  | `har env verify 1` | Run verification |