oc-harness-setup 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +41 -14
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1,17 +1,24 @@
1
1
  <div align="center">
2
2
 
3
- # :rocket: oc-harness-setup
3
+ # 🚀 oc-harness-setup
4
4
 
5
5
  **The whole harness in one command.**
6
6
  *Orchestrator primary . 7 agents . 14 commands . 20 skills . a doctor that proves it.*
7
7
 
8
- ![npm](https://img.shields.io/npm/v/oc-harness-setup) ![license](https://img.shields.io/badge/license-MIT-blue) ![opencode](https://img.shields.io/badge/opencode-v2-blueviolet) ![node](https://img.shields.io/badge/node-%E2%89%A522-green) ![downloads](https://img.shields.io/npm/dm/oc-harness-setup)
8
+ [![npm version](https://img.shields.io/npm/v/oc-harness-setup)](https://www.npmjs.com/package/oc-harness-setup) [![license: MIT](https://img.shields.io/badge/license-MIT-blue)](./LICENSE) [![node >= 22](https://img.shields.io/badge/node-%E2%89%A522-green)](https://nodejs.org) [![opencode v2](https://img.shields.io/badge/opencode-v2-blueviolet)](https://opencode.ai) [![npm weekly downloads](https://img.shields.io/npm/dw/oc-harness-setup)](https://www.npmjs.com/package/oc-harness-setup) [![ci](https://github.com/nathwn12/oc-harness-setup/actions/workflows/ci.yml/badge.svg)](https://github.com/nathwn12/oc-harness-setup/actions/workflows/ci.yml)
9
9
 
10
10
  </div>
11
11
 
12
12
  ---
13
13
 
14
- ## :zap: Quick start
14
+ ## ⚡ Quick start
15
+
16
+ ```text
17
+ Install oc-harness-setup:
18
+ 1. Run: npx --yes oc-harness-setup setup
19
+ 2. Restart OpenCode.
20
+ 3. Verify: pwsh -File ~/.config/opencode/scripts/harness-doctor.ps1
21
+ ```
15
22
 
16
23
  ```bash
17
24
  npx --yes oc-harness-setup setup
@@ -21,24 +28,19 @@ npx --yes oc-harness-setup setup
21
28
 
22
29
  ---
23
30
 
24
- ## :wrench: What setup does
31
+ ## 🔧 What setup does
25
32
 
26
33
  ```text
27
34
  preflight -> locate config -> consent gate -> backup -> install -> verify
28
35
  ```
29
36
 
30
37
  - **Consent first** - the full manifest prints before anything moves; `--dry-run` shows it without touching a file
31
- - **Your config survives** - the installer owns runtime policy (`$schema`, `default_agent`, `formatter`, `compaction`, `tool_output`, `media`, `watcher`), unions your `plugins` and `references` with the harness's, and preserves every other top-level key, known or unknown - `provider`, `model`, `agents`, `commands`, `skills`, `mcp`, or a key of your own
32
- - **Your `permissions` still apply** - your rules are placed after the harness's allow/ask rules and ahead of its hard denies, so a rule of yours beats a harness allow while the hard denies stay last
33
- - **Reversible** - a SHA-256 journal records every touched file; `--uninstall` removes the files the installer created and restores any file it overwrote from the pre-install backup (its path is printed before anything moves). Post-install edits to a restored file are copied aside first as `<name>.replaced-<ts>` - never destroyed
34
38
  - **Idempotent** - re-run anytime; identical files are skipped
35
39
  - **Verified** - ends on the harness's own 16-law doctor; red = nonzero exit, with every failing law naming the check, the detail, and a proposed fix. The doctor needs PowerShell 7: if it is missing, the laws are **skipped** and reported as skipped - not passed
36
40
 
37
41
  > *Installation never modifies your config by itself - setup is always an explicit command you run. **No postinstall, ever.***
38
42
 
39
- ---
40
-
41
- ## :package: What you get
43
+ ### 📦 What you get
42
44
 
43
45
  | Component | What it gives you |
44
46
  |:---|:---|
@@ -50,7 +52,14 @@ preflight -> locate config -> consent gate -> backup -> install -> verify
50
52
 
51
53
  ---
52
54
 
53
- ## 🛡️ Safety by design
55
+ ## ⚙️ Configure
56
+
57
+ - **Your config survives** - the installer owns runtime policy (`$schema`, `default_agent`, `formatter`, `compaction`, `tool_output`, `media`, `watcher`), unions your `plugins` and `references` with the harness's, and preserves every other top-level key, known or unknown - `provider`, `model`, `agents`, `commands`, `skills`, `mcp`, or a key of your own
58
+ - **Your `permissions` still apply** - your rules are placed after the harness's allow/ask rules and ahead of its hard denies, so a rule of yours beats a harness allow while the hard denies stay last
59
+
60
+ ---
61
+
62
+ ## 🛡️ Safety
54
63
 
55
64
  > Strict deny-set permissions that survive `--auto` . skills fail closed on unknown IDs . credentials stay by pointer . backup before any change.
56
65
 
@@ -60,10 +69,28 @@ This package ships a **fail-closed permission set**: the disk-destroy and creden
60
69
 
61
70
  ---
62
71
 
63
- <div align="center">
72
+ ## 🗑️ Uninstall
73
+
74
+ ```bash
75
+ npx --yes oc-harness-setup setup --uninstall
76
+ ```
77
+
78
+ - **Reversible** - a SHA-256 journal records every touched file; `--uninstall` removes the files the installer created and restores any file it overwrote from the pre-install backup (its path is printed before anything moves). Post-install edits to a restored file are copied aside first as `<name>.replaced-<ts>` - never destroyed
79
+
80
+ ---
81
+
82
+ ## 🧰 Development
83
+
84
+ Node >= 22, no build step (pure Node ESM, stdlib only, zero runtime dependencies). `npm test` syntax-checks `bin/cli.js`; `npm run check` (`npm pack --dry-run`) runs on `prepublishOnly` before any publish.
85
+
86
+ ---
87
+
88
+ ## 🧩 Compatibility
64
89
 
65
90
  OpenCode V2 . Node >= 22 . Windows / macOS / Linux (config path auto-resolved)
66
91
 
67
- **MIT © 2026 nathwn12** . For OpenCode. Free.
92
+ ---
93
+
94
+ ## 📄 License
68
95
 
69
- </div>
96
+ MIT © 2026 nathwn12 . For OpenCode. Free. See [LICENSE](./LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-harness-setup",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "oc-harness-setup": "bin/cli.js"
@@ -24,7 +24,8 @@
24
24
  },
25
25
  "scripts": {
26
26
  "check": "npm pack --dry-run",
27
- "test": "node --check bin/cli.js"
27
+ "test": "node --check bin/cli.js && bun test",
28
+ "prepublishOnly": "npm run check"
28
29
  },
29
30
  "publishConfig": {
30
31
  "access": "public"