@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 +20 -9
- package/dist/index.js +1469 -460
- package/dist/templates/agent-skills/har-maintain.md +2 -0
- package/dist/templates/agent-skills/setup-har.md +13 -2
- package/dist/templates/har-boilerplate/CLAUDE.agent.md +4 -2
- package/dist/templates/har-boilerplate/STAGES.md +91 -0
- package/dist/templates/har-boilerplate/agent-slot.sh +46 -6
- package/dist/templates/har-boilerplate/launch.sh +2 -1
- package/dist/templates/har-boilerplate/stages/README.sh +7 -5
- package/dist/templates/har-boilerplate/verify.sh +9 -2
- package/dist/templates/har-boilerplate-cli/CLAUDE.agent.md +3 -1
- package/dist/templates/har-boilerplate-cli/STAGES.md +91 -0
- package/dist/templates/har-boilerplate-cli/agent-slot.sh +49 -9
- package/dist/templates/har-boilerplate-cli/stages/README.sh +7 -5
- package/dist/templates/har-boilerplate-cli/verify.sh +9 -2
- package/dist/templates/har-boilerplate-ios/CLAUDE.agent.md +2 -0
- package/dist/templates/har-boilerplate-ios/STAGES.md +91 -0
- package/dist/templates/har-boilerplate-ios/agent-slot.sh +35 -6
- package/dist/templates/har-boilerplate-ios/stages/README.sh +6 -7
- package/dist/templates/har-boilerplate-ios/verify.sh +9 -3
- package/dist/templates/stage-templates/custom-stage-skeleton.sh +65 -0
- package/dist/templates/stage-templates/playwright/template.manifest.json +9 -1
- package/dist/templates/stage-templates/rocketsim/template.manifest.json +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
# har — Your AI harness orchestrator
|
|
6
6
|
|
|
7
|
-
[](https://github.com/os-factory/har/releases)
|
|
8
|
+
[](https://github.com/os-factory/har/actions/workflows/test.yml)
|
|
9
|
+
[](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
|
|
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
|
|
34
|
+
**From source:**
|
|
34
35
|
|
|
35
36
|
```bash
|
|
36
|
-
git clone https://github.com/
|
|
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
|
|
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 |
|