oc-harness-setup 1.0.2 → 1.1.1
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/CHANGELOG.md +42 -1
- package/README.md +49 -23
- package/assets/signature-glyph.svg +5 -0
- package/bin/cli.js +407 -121
- package/bin/evolve.mjs +320 -0
- package/commands/evolve.md +2 -2
- package/commands/playbook.md +9 -0
- package/docs/GUIDE.md +44 -10
- package/opencode.jsonc +6 -1
- package/package.json +14 -10
- package/playbooks/bug-fix.md +22 -0
- package/playbooks/feature.md +22 -0
- package/playbooks/investigate.md +22 -0
- package/playbooks/refactor.md +22 -0
- package/playbooks/ship.md +21 -0
- package/scripts/harness-doctor.mjs +101 -9
- package/skills/evolve/SKILL.md +33 -52
- package/skills/playbook/SKILL.md +26 -0
- package/stages.yaml +42 -0
- package/templates/agent.md +10 -0
- package/templates/command.md +11 -0
- package/templates/playbook.md +13 -0
- package/templates/skill.md +8 -0
- package/assets/signature.svg +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
-
## [1.
|
|
5
|
+
## [1.1.1] - 2026-11-26
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- npm metadata alignment: README wording and keywords refreshed (cosmetic).
|
|
9
|
+
## [1.1.0] - 2026-11-24
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Setup runs six ordered stages — preflight, resolve, plan, write, verify and
|
|
14
|
+
report — and records its progress in `state/setup-state.yaml`. Plain `setup`
|
|
15
|
+
still runs every stage and stays the upgrade path. `--list-stages` prints the
|
|
16
|
+
order and exits without writing, `--stage <id>` runs up to and including that
|
|
17
|
+
stage, `--from <id>` starts there and runs to the end, and `--ask` asks
|
|
18
|
+
whether to keep existing config values when an install-owned key collides and
|
|
19
|
+
whether to install the playbooks and templates; both default to yes.
|
|
20
|
+
- The pack ships five playbooks — investigate, bug-fix, feature, refactor and
|
|
21
|
+
ship — behind the `/playbook` router. The router matches one playbook to a
|
|
22
|
+
task and copies its numbered steps into the todo before work starts. The
|
|
23
|
+
doctor grades the playbooks and the router.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- `evolve` is now a generator command. It writes a skill, command, agent or
|
|
28
|
+
playbook from its template and adds the companions the doctor requires: a
|
|
29
|
+
skill also gets its paired command and a skill allowlist entry, and a
|
|
30
|
+
playbook also gets a row in the router. It then runs the doctor and reports
|
|
31
|
+
the verdict.
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- V2 plugin objects (`{package, options}`) survive the config merge with their
|
|
36
|
+
options intact. Entries dedupe on the package id, so a string and an object
|
|
37
|
+
naming the same plugin collapse to one, and an adopter entry wins when it
|
|
38
|
+
collides with a shipped one. Entries the host cannot represent are reported,
|
|
39
|
+
not written.
|
|
40
|
+
- The doctor reads a V2 plugin object's `package` as its identity instead of
|
|
41
|
+
stringifying it, and strips the disabled marker from an MCP server name
|
|
42
|
+
before grading it, so a config that agrees with the registry no longer fails
|
|
43
|
+
those two checks.
|
|
44
|
+
- A `--from` start that skipped the plan stage no longer crashes during the
|
|
45
|
+
write; the inputs are now derived the same way for planned and skipped-plan
|
|
46
|
+
starts.
|
|
6
47
|
|
|
7
48
|
## [1.0.0] - 2026-10-31
|
|
8
49
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/nathwn12/oc-collections/main/packages/oc-harness-setup/assets/icon.svg" width="120" height="120" alt="oc-harness-setup icon" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">oc-harness-setup</h1>
|
|
2
6
|
|
|
3
|
-
A
|
|
7
|
+
<p align="center"><strong>A consent-first OpenCode starter for Windows with skills and a doctor gate in one command.</strong></p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://www.npmjs.com/package/oc-harness-setup"><img src="https://img.shields.io/npm/v/oc-harness-setup" alt="npm version" /></a>
|
|
11
|
+
<img src="https://img.shields.io/badge/platform-windows--64bit-2b3137" alt="Windows x64" />
|
|
12
|
+
<a href="https://github.com/nathwn12/oc-collections/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT licence" /></a>
|
|
13
|
+
</p>
|
|
4
14
|
|
|
5
15
|
## Install
|
|
6
16
|
|
|
@@ -8,33 +18,49 @@ A compact OpenCode starter that runs a real loop, researches before it claims, k
|
|
|
8
18
|
npx --yes oc-harness-setup setup
|
|
9
19
|
```
|
|
10
20
|
|
|
11
|
-
|
|
21
|
+
Setup checks your host, finds your config dir, collects the files and prints a plan before it writes anything. It waits for your `y` at the plan, then backs up what it replaces, merges your config, runs the doctor and prints a summary. `--dry-run` changes nothing at all.
|
|
22
|
+
|
|
23
|
+
## Use it
|
|
24
|
+
|
|
25
|
+
Run `setup` to install the starter, then answer `y` at the plan. The pack puts ten agents on one routing table, seven skills behind seven commands, five playbooks behind `/playbook`, and twelve on-demand references loaded one at a time from an index.
|
|
26
|
+
|
|
27
|
+
Every agent gets a trigger, an owned path set and a check, so a verdict never comes from the author. Each run ends on the doctor gate: a 19-law check names the failing law and its fix. The install is reversible by journal: SHA-256 per file, so `--uninstall` restores what was there and removes exactly what it added.
|
|
12
28
|
|
|
13
|
-
|
|
29
|
+
- `/playbook` matches a task to one of five procedures and copies its steps into the todo before work starts.
|
|
30
|
+
- `evolve` turns a repeated workflow into a skill, command, agent or playbook.
|
|
31
|
+
- `--uninstall` restores the pre-install state from the journal.
|
|
32
|
+
- `--dry-run` shows the plan without writing.
|
|
14
33
|
|
|
15
|
-
|
|
34
|
+
### Configure it
|
|
35
|
+
|
|
36
|
+
There is no config file to edit by hand. Your model, provider, keys, plugins and state are kept while the pack owns runtime policy. The command line is the surface:
|
|
37
|
+
|
|
38
|
+
| Command | Effect |
|
|
16
39
|
| --- | --- |
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
40
|
+
| `setup` | Install the starter in six ordered stages, then report the doctor verdict. |
|
|
41
|
+
| `setup --list-stages` | Print the ordered stage list and exit without writing. |
|
|
42
|
+
| `setup --stage <id>` | Run up to and including that stage, then stop. |
|
|
43
|
+
| `setup --from <id>` | Start at that stage and run to the end. |
|
|
44
|
+
| `setup --ask` | Ask whether to keep your existing config values when an install-owned key collides, then ask "Install the playbooks?"; both default to yes. |
|
|
45
|
+
| `evolve <kind> <id>` | Write an artifact from its template, add its required companions, run the doctor and report the verdict. |
|
|
46
|
+
| `--dry-run` | Print the plan without writing. |
|
|
47
|
+
| `--uninstall` | Restore files from the journal. |
|
|
48
|
+
|
|
49
|
+
Setup records progress in `state/setup-state.yaml` in the config dir. Plain `setup` still runs every stage and remains the upgrade path; recorded progress never makes it skip work.
|
|
25
50
|
|
|
26
51
|
## Requirements
|
|
27
52
|
|
|
28
|
-
Windows 10
|
|
53
|
+
- Windows 10 or 11.
|
|
54
|
+
- Node.js 22 or newer.
|
|
55
|
+
- OpenCode 2.2.0 or newer. A 2.0/2.1 host warns before installing; a 1.x host is refused before anything is written.
|
|
29
56
|
|
|
30
|
-
##
|
|
57
|
+
## Status
|
|
31
58
|
|
|
32
|
-
|
|
59
|
+
**Unverified** — as-is, use at your own risk.
|
|
33
60
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</p>
|
|
61
|
+
## Links
|
|
62
|
+
|
|
63
|
+
- [Issues](https://github.com/nathwn12/oc-collections/issues)
|
|
64
|
+
- [Releases](https://github.com/nathwn12/oc-collections/releases)
|
|
65
|
+
- [Guide](https://github.com/nathwn12/oc-collections/blob/main/packages/oc-harness-setup/docs/GUIDE.md)
|
|
66
|
+
- [MIT licence](https://github.com/nathwn12/oc-collections/blob/main/LICENSE)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="120 148 300 252">
|
|
2
|
+
<!-- Glyph variant: strokes identical to the canonical signature.svg; ground tile removed, viewBox tightened to the glyph. Fits any background. -->
|
|
3
|
+
<path d="M136 384 L136 264 C136 196 180 164 234 164 C288 164 328 198 328 264 L328 384 L264 384 L264 270 C264 242 250 230 234 230 C218 230 200 242 200 270 L200 384 Z" fill="#EEF3F6"/>
|
|
4
|
+
<rect x="352" y="312" width="52" height="72" rx="8" fill="#4DD4E8"/>
|
|
5
|
+
</svg>
|