coding-agent-harness 1.0.0 → 1.0.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/package.json +20 -1
- package/scripts/test-harness.mjs +2 -1
package/package.json
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coding-agent-harness",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Document governance kernel for long-running coding agents.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"agent",
|
|
8
|
+
"coding-agent",
|
|
9
|
+
"codex",
|
|
10
|
+
"claude-code",
|
|
11
|
+
"gemini-cli",
|
|
12
|
+
"harness",
|
|
13
|
+
"ai-engineering",
|
|
14
|
+
"workflow",
|
|
15
|
+
"governance"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://github.com/FairladyZ625/coding-agent-harness#readme",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/FairladyZ625/coding-agent-harness.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/FairladyZ625/coding-agent-harness/issues"
|
|
24
|
+
},
|
|
6
25
|
"bin": {
|
|
7
26
|
"harness": "scripts/harness.mjs"
|
|
8
27
|
},
|
package/scripts/test-harness.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import path from "node:path";
|
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
7
|
|
|
8
8
|
const repoRoot = path.resolve(path.dirname(new URL(import.meta.url).pathname), "..");
|
|
9
|
+
const packageVersion = JSON.parse(fs.readFileSync(path.join(repoRoot, "package.json"), "utf8")).version;
|
|
9
10
|
const node = process.execPath;
|
|
10
11
|
const cli = path.join(repoRoot, "scripts/harness.mjs");
|
|
11
12
|
const tmpRoot = fs.mkdtempSync(path.join(os.tmpdir(), "harness-v1-"));
|
|
@@ -300,7 +301,7 @@ const userInstallAgain = expectJson(["install-user", "--agent", "codex", "--home
|
|
|
300
301
|
assert(userInstallAgain.targets?.[0]?.changes?.some((change) => change.action === "skip-existing"), "install-user should not overwrite existing files by default");
|
|
301
302
|
const userDoctor = expectJson(["doctor-user", "--agent", "codex", "--home", userInstallHome]);
|
|
302
303
|
assert(userDoctor.status === "pass", "doctor-user should pass for installed codex skill");
|
|
303
|
-
assert(userDoctor.targets?.[0]?.version ===
|
|
304
|
+
assert(userDoctor.targets?.[0]?.version === packageVersion, "doctor-user should report installed package version");
|
|
304
305
|
const missingDoctor = run(["doctor-user", "--agent", "gemini", "--home", userInstallHome]);
|
|
305
306
|
assert(missingDoctor.status !== 0, "doctor-user should fail for missing agent install");
|
|
306
307
|
|