oc-harness-setup 0.4.0 → 0.4.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 +16 -0
- package/README.md +6 -5
- package/bin/cli.js +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- README uses the house centered header, public “agents” wording, and Releases/Issues links; no shipped behavior change.
|
|
13
|
+
|
|
14
|
+
## [0.4.1] - 2026-10-20
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Explicit Node >=22 startup guard in `bin/cli.js`: older runtimes now
|
|
19
|
+
fail with a clear message instead of a cryptic `import.meta.dirname`
|
|
20
|
+
TypeError.
|
|
21
|
+
- Note: `engines` was already `>=22` in 0.4.0; the floor is unchanged
|
|
22
|
+
and `>=18` was rejected because the CLI requires `import.meta.dirname`.
|
|
23
|
+
|
|
8
24
|
## [0.4.0] - 2026-10-20
|
|
9
25
|
|
|
10
26
|
### Added
|
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
**A compact OpenCode starter that runs a real loop, researches before it claims, keeps a ledger, cleans up after itself, and grows the next skill you need.**
|
|
1
|
+
<h1 align="center">oc-harness-setup</h1>
|
|
2
|
+
<p align="center"><strong>A compact OpenCode starter that runs a real loop, researches before it claims, keeps a ledger, cleans up after itself, and grows the next skill you need.</strong></p>
|
|
4
3
|
|
|
5
4
|
## Install
|
|
6
5
|
|
|
@@ -12,7 +11,7 @@ First run prints a manifest of everything it will touch and waits for you to typ
|
|
|
12
11
|
|
|
13
12
|
## Why this starter
|
|
14
13
|
|
|
15
|
-
- Small on purpose: 9
|
|
14
|
+
- Small on purpose: 9 agents, 6 skills, 12 on-demand references; the primary loads one, the rest wait for a trigger.
|
|
16
15
|
- A loop that closes: goal -> worker -> verifier -> historian -> cleaner -> close; no self-verdicts.
|
|
17
16
|
- Research that cites: researcher + search + canon; claims arrive sourced or `UNVERIFIED`.
|
|
18
17
|
- Memory that survives: historian writes session state; `state/` is seeded and preserved on upgrade.
|
|
@@ -22,7 +21,7 @@ First run prints a manifest of everything it will touch and waits for you to typ
|
|
|
22
21
|
|
|
23
22
|
## What you get
|
|
24
23
|
|
|
25
|
-
- 9
|
|
24
|
+
- 9 agents with bounded reach: one coordinator, one verdict, and seven specialists that each own exactly one surface.
|
|
26
25
|
- 6 skills behind 6 commands: close, evolve, fast, goal, search, and swarm.
|
|
27
26
|
- 12 on-demand references behind a single index; load only the file a rule names.
|
|
28
27
|
- 18-law doctor gate: every setup run ends on it, and failures name the check and the fix.
|
|
@@ -67,6 +66,8 @@ This starter grows through `evolve`: the smallest deliberate extension — one s
|
|
|
67
66
|
- [Source](https://github.com/nathwn12/oc-harness-setup)
|
|
68
67
|
- [Published package](https://www.npmjs.com/package/oc-harness-setup)
|
|
69
68
|
- [Changelog](https://github.com/nathwn12/oc-harness-setup/blob/main/CHANGELOG.md)
|
|
69
|
+
- [Releases](https://github.com/nathwn12/oc-harness-setup/releases/latest)
|
|
70
|
+
- [Issues](https://github.com/nathwn12/oc-harness-setup/issues)
|
|
70
71
|
- [License](LICENSE)
|
|
71
72
|
|
|
72
73
|
<!-- nathwn12 house footer: identical in every repo. Do not edit. -->
|
package/bin/cli.js
CHANGED
|
@@ -22,6 +22,17 @@ import { homedir } from 'node:os';
|
|
|
22
22
|
import path from 'node:path';
|
|
23
23
|
import { createInterface } from 'node:readline/promises';
|
|
24
24
|
|
|
25
|
+
// Node floor: import.meta.dirname needs Node 20.11+; the supported floor is
|
|
26
|
+
// 22 (package.json engines + README + CI). Fail fast with a clear message
|
|
27
|
+
// instead of a cryptic TypeError on older runtimes.
|
|
28
|
+
const NODE_MAJOR = Number(String(process.versions?.node ?? '').split('.')[0]);
|
|
29
|
+
if (!Number.isInteger(NODE_MAJOR) || NODE_MAJOR < 22) {
|
|
30
|
+
console.error(
|
|
31
|
+
`oc-harness-setup requires Node.js 22 or newer (found ${process.versions?.node ?? 'unknown'}). Install Node 22+ and retry.`
|
|
32
|
+
);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
|
|
25
36
|
const PKG_NAME = 'oc-harness-setup';
|
|
26
37
|
const PKG_ROOT = path.resolve(import.meta.dirname, '..');
|
|
27
38
|
const MANIFEST_FILE = 'oc-harness-setup.manifest.json';
|