@osfactory/har 0.19.0 → 0.21.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 +17 -1
- package/dist/index.js +24633 -878
- package/dist/templates/agent-skills/har-wt.md +11 -0
- package/dist/templates/agent-skills/setup-har.md +3 -1
- package/dist/templates/har-boilerplate/agent-slot.sh +3 -1
- package/dist/templates/har-boilerplate/gitignore.template +3 -0
- package/dist/templates/har-boilerplate/launch.sh +10 -0
- package/dist/templates/har-boilerplate/stages.json +5 -0
- package/dist/templates/har-boilerplate-cli/agent-slot.sh +3 -1
- package/dist/templates/har-boilerplate-cli/gitignore.template +3 -0
- package/dist/templates/har-boilerplate-cli/launch.sh +10 -0
- package/dist/templates/har-boilerplate-cli/stages.json +5 -0
- package/dist/templates/har-boilerplate-ios/agent-slot.sh +3 -1
- package/dist/templates/har-boilerplate-ios/gitignore.template +3 -0
- package/dist/templates/har-boilerplate-ios/launch.sh +10 -0
- package/dist/templates/har-boilerplate-ios/stages.json +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,10 @@ HAR is an open-source CLI and MCP control plane for project-owned development ha
|
|
|
14
14
|
|
|
15
15
|
HAR does not own the coding LLM and does not replace CI/CD. It gives agents a stable, machine-readable way to use the workflow your team already trusts.
|
|
16
16
|
|
|
17
|
+
Planning tools decide what to build. HAR binds that durable work identity to an
|
|
18
|
+
isolated execution attempt and verifiable evidence: runs, artifacts, telemetry,
|
|
19
|
+
and the exact Git tree that passed.
|
|
20
|
+
|
|
17
21
|
## How It Works
|
|
18
22
|
|
|
19
23
|
1. **Project-owned harness** — `.har/` contains editable scripts, docs, environment metadata, logs, artifacts, and optional stage definitions.
|
|
@@ -22,6 +26,9 @@ HAR does not own the coding LLM and does not replace CI/CD. It gives agents a st
|
|
|
22
26
|
4. **Generic stages** — setup, launch, verify, test, inspect, reset, teardown, and custom stages expose normalized status, logs, durations, artifacts, and URLs.
|
|
23
27
|
5. **Configurable agent slots** — parallel environment limits are defined in `.har/stages.json` (`agentSlots`) and `.har/harness.env`, not by the HAR CLI.
|
|
24
28
|
6. **Optional stage templates** — add workflows like Playwright with `har env add-stage playwright`. They compile to generic stages (`test`, `custom`, etc.), not hardcoded HAR APIs.
|
|
29
|
+
7. **Durable work evidence** — optionally launch with `--work-id` so slot sessions, retries, cost, and exact-tree validations remain attributable after teardown.
|
|
30
|
+
|
|
31
|
+

|
|
25
32
|
|
|
26
33
|
## Install
|
|
27
34
|
|
|
@@ -80,6 +87,13 @@ har env launch 1
|
|
|
80
87
|
har env verify 1
|
|
81
88
|
```
|
|
82
89
|
|
|
90
|
+
To correlate execution with an issue or ticket:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
har env launch 1 --work-id "github:acme/widget#123" --work-source github
|
|
94
|
+
har env complete 1
|
|
95
|
+
```
|
|
96
|
+
|
|
83
97
|
Shell fallback when the CLI is not installed: `./.har/setup-infra.sh`, `./.har/launch.sh 1`, `./.har/verify.sh 1`.
|
|
84
98
|
|
|
85
99
|
See [Harness profiles](#harness-profiles) above if your repo is a CLI/library or iOS app rather than a web app.
|
|
@@ -175,6 +189,7 @@ See `.har/stages/PLAYWRIGHT.md` in the target repo after applying the template.
|
|
|
175
189
|
| `har env teardown 1` | Tear down agent slot 1 |
|
|
176
190
|
| `har agents install` | Scaffold agent skills (`/setup-har`, `/har-wt`, `/har-maintain`) for Claude Code / Cursor / Codex |
|
|
177
191
|
| `har agents remove` | Remove har-managed agent skill files |
|
|
192
|
+
| `har preferences configure` | Select user defaults for rules, skills, and commit-gate onboarding |
|
|
178
193
|
| `har hooks install` | Install the git commit gate (`--claude` for the Claude Code worktree guard) |
|
|
179
194
|
| `har control up` | Start local Mission Control dashboard (Docker Compose) |
|
|
180
195
|
| `har control register` | Register a repo with Mission Control |
|
|
@@ -182,7 +197,8 @@ See `.har/stages/PLAYWRIGHT.md` in the target repo after applying the template.
|
|
|
182
197
|
| `har control watch` | Continuously sync registered repos |
|
|
183
198
|
| `har mcp` | Start the HAR MCP server (stdio) |
|
|
184
199
|
|
|
185
|
-
Options: `--force`, `--auto` (built-in Claude adaptation), `--smoke`, `--yes`
|
|
200
|
+
Options: `--force`, `--auto` (built-in Claude adaptation), `--smoke`, `--yes`
|
|
201
|
+
(accept recommended onboarding actions), `--verbose`, `--profile <default|cli|ios>`
|
|
186
202
|
|
|
187
203
|
## MCP Surface
|
|
188
204
|
|