oc-harness-setup 1.0.2 → 1.1.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/CHANGELOG.md +1 -1
- package/README.md +53 -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 +5 -2
- 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
package/README.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
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>
|
|
6
|
+
|
|
7
|
+
<p align="center"><strong>A consent-first OpenCode starter for Windows: ten seats, seven skills, five playbooks 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?logo=windows&logoColor=white" alt="platform">
|
|
12
|
+
<a href="https://github.com/nathwn12/oc-collections/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
## Why
|
|
2
16
|
|
|
3
|
-
A
|
|
17
|
+
A starter that writes files is only safe if you can see and undo what it does. `oc-harness-setup` prints a full manifest before anything moves and waits for you to type `y`. It gives every agent 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, and a summary reports the result.
|
|
18
|
+
|
|
19
|
+
The install is reversible by journal: SHA-256 per file, so `--uninstall` restores what was there and removes exactly what it added.
|
|
4
20
|
|
|
5
21
|
## Install
|
|
6
22
|
|
|
@@ -8,33 +24,47 @@ A compact OpenCode starter that runs a real loop, researches before it claims, k
|
|
|
8
24
|
npx --yes oc-harness-setup setup
|
|
9
25
|
```
|
|
10
26
|
|
|
11
|
-
|
|
27
|
+
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.
|
|
28
|
+
|
|
29
|
+
## Use
|
|
12
30
|
|
|
13
|
-
|
|
31
|
+
Run `setup` to install the starter, then answer `y` at the plan. The pack puts ten seats 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.
|
|
14
32
|
|
|
15
|
-
|
|
33
|
+
Afterwards:
|
|
34
|
+
|
|
35
|
+
- `/playbook` matches a task to one of five procedures and copies its steps into the todo before work starts.
|
|
36
|
+
- `evolve` turns a repeated workflow into a skill, command, agent or playbook.
|
|
37
|
+
- `--uninstall` restores the pre-install state from the journal.
|
|
38
|
+
- `--dry-run` shows the plan without writing.
|
|
39
|
+
|
|
40
|
+
## Configure
|
|
41
|
+
|
|
42
|
+
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:
|
|
43
|
+
|
|
44
|
+
| Command | Effect |
|
|
16
45
|
| --- | --- |
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
46
|
+
| `setup` | Install the starter in six ordered stages, then report the doctor verdict. |
|
|
47
|
+
| `setup --list-stages` | Print the ordered stage list and exit without writing. |
|
|
48
|
+
| `setup --stage <id>` | Run up to and including that stage, then stop. |
|
|
49
|
+
| `setup --from <id>` | Start at that stage and run to the end. |
|
|
50
|
+
| `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. |
|
|
51
|
+
| `evolve <kind> <id>` | Write an artifact from its template, add its required companions, run the doctor and report the verdict. |
|
|
52
|
+
| `--dry-run` | Print the plan without writing. |
|
|
53
|
+
| `--uninstall` | Restore files from the journal. |
|
|
54
|
+
|
|
55
|
+
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
56
|
|
|
26
57
|
## Requirements
|
|
27
58
|
|
|
28
|
-
Windows 10
|
|
59
|
+
- Windows 10 or 11.
|
|
60
|
+
- Node.js 22 or newer.
|
|
61
|
+
- 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
62
|
|
|
30
|
-
##
|
|
63
|
+
## Links
|
|
31
64
|
|
|
32
|
-
|
|
65
|
+
- [Issues](https://github.com/nathwn12/oc-collections/issues)
|
|
66
|
+
- [Releases](https://github.com/nathwn12/oc-collections/releases)
|
|
67
|
+
- [Guide](https://github.com/nathwn12/oc-collections/blob/main/packages/oc-harness-setup/docs/GUIDE.md)
|
|
68
|
+
- [MIT licence](https://github.com/nathwn12/oc-collections/blob/main/LICENSE)
|
|
33
69
|
|
|
34
|
-
|
|
35
|
-
<p align="center">
|
|
36
|
-
<a href="https://github.com/nathwn12"><img src="assets/signature.svg" width="96" alt="nathwn12" /></a>
|
|
37
|
-
</p>
|
|
38
|
-
<p align="center">
|
|
39
|
-
<sub>Built by <a href="https://github.com/nathwn12">nathwn12</a> · <a href="https://github.com/nathwn12?tab=repositories">All projects</a></sub>
|
|
40
|
-
</p>
|
|
70
|
+
<p align="center"><sub>Built by nathwn12</sub></p>
|
|
@@ -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>
|