@dzhechkov/harness-cli 0.3.241 → 0.3.242
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/.dz-manifest.json +8 -8
- package/README.md +25 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +53 -1
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
- package/sbom.json +7 -7
- package/src/cli.ts +44 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzhechkov/harness-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.242",
|
|
4
4
|
"description": "The dz CLI — install AI skills for Claude Code, Codex, OpenCode, Hermes, OpenClaude, GitHub Copilot. 35 commands, 13 presets, 6 platform targets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@dzhechkov/skills-reverse-engineering": "^0.1.0",
|
|
58
58
|
"@dzhechkov/skills-presentation-storyteller": "^0.1.0",
|
|
59
59
|
"@dzhechkov/skills-website-cloner": "^0.1.0",
|
|
60
|
-
"@dzhechkov/harness-core": "0.3.
|
|
60
|
+
"@dzhechkov/harness-core": "0.3.133"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "^25.6.0",
|
package/sbom.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"hashes": [
|
|
26
26
|
{
|
|
27
27
|
"alg": "SHA-256",
|
|
28
|
-
"content": "
|
|
28
|
+
"content": "f10f682ab0a6a472d1bb52fb8c861d8b22669d579af8ddbbd392e2fb115cce67"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
},
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"hashes": [
|
|
106
106
|
{
|
|
107
107
|
"alg": "SHA-256",
|
|
108
|
-
"content": "
|
|
108
|
+
"content": "2efde3e98ca7843ac6260881eef51bfd3743e736425ed60fc73bdbebacdb54c6"
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
111
|
},
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"hashes": [
|
|
116
116
|
{
|
|
117
117
|
"alg": "SHA-256",
|
|
118
|
-
"content": "
|
|
118
|
+
"content": "88282ec4122a1e414dfb4c74e8583a49893b7ea0eba18d0cabe9ff50e72b0dec"
|
|
119
119
|
}
|
|
120
120
|
]
|
|
121
121
|
},
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"hashes": [
|
|
126
126
|
{
|
|
127
127
|
"alg": "SHA-256",
|
|
128
|
-
"content": "
|
|
128
|
+
"content": "da8e7d578e7929880f0a87e240dac4a3a25afaf5c4da96442fbcb159f1eb0e07"
|
|
129
129
|
}
|
|
130
130
|
]
|
|
131
131
|
},
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"hashes": [
|
|
186
186
|
{
|
|
187
187
|
"alg": "SHA-256",
|
|
188
|
-
"content": "
|
|
188
|
+
"content": "7c10b138fb5cbb7c8ccba350863c100aea77a5fd2b2bd30fa08a3ea4260a0e4a"
|
|
189
189
|
}
|
|
190
190
|
]
|
|
191
191
|
},
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"hashes": [
|
|
206
206
|
{
|
|
207
207
|
"alg": "SHA-256",
|
|
208
|
-
"content": "
|
|
208
|
+
"content": "79d8ade45869b7a264d54da7fafda72a39953cab0d48f5ad504dd26657a54a1b"
|
|
209
209
|
}
|
|
210
210
|
]
|
|
211
211
|
},
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"hashes": [
|
|
226
226
|
{
|
|
227
227
|
"alg": "SHA-256",
|
|
228
|
-
"content": "
|
|
228
|
+
"content": "a82b15dd9d166764479528e9f9ede45fc39d1b4068a96f19f158aa5a4c03369b"
|
|
229
229
|
}
|
|
230
230
|
]
|
|
231
231
|
},
|
package/src/cli.ts
CHANGED
|
@@ -4367,7 +4367,43 @@ function cmdClaimCheck(
|
|
|
4367
4367
|
paths.push(p);
|
|
4368
4368
|
}
|
|
4369
4369
|
|
|
4370
|
-
|
|
4370
|
+
// A DIRECTORY argument used to hit EISDIR, be counted as "skipped", and still exit 0 — the gate
|
|
4371
|
+
// reported PASS having scanned nothing (MEASURED: `dz claim-check docs` said "1 skipped" and exited
|
|
4372
|
+
// 0 while `dz claim-check docs/*.md` found 7). Expand a directory into its markdown instead.
|
|
4373
|
+
const expandDir = (dir: string, depth = 0): string[] => {
|
|
4374
|
+
if (depth > 6) return [];
|
|
4375
|
+
let entries: string[];
|
|
4376
|
+
try {
|
|
4377
|
+
entries = readdirSync(dir);
|
|
4378
|
+
} catch {
|
|
4379
|
+
return [];
|
|
4380
|
+
}
|
|
4381
|
+
const out: string[] = [];
|
|
4382
|
+
for (const name of entries) {
|
|
4383
|
+
if (name.startsWith('.') || name === 'node_modules' || name === 'dist') continue;
|
|
4384
|
+
const full = join(dir, name);
|
|
4385
|
+
try {
|
|
4386
|
+
const st = statSync(full);
|
|
4387
|
+
if (st.isDirectory()) out.push(...expandDir(full, depth + 1));
|
|
4388
|
+
else if (st.isFile() && name.toLowerCase().endsWith('.md')) out.push(full);
|
|
4389
|
+
} catch {
|
|
4390
|
+
/* unreadable entry — nothing to scan */
|
|
4391
|
+
}
|
|
4392
|
+
}
|
|
4393
|
+
return out;
|
|
4394
|
+
};
|
|
4395
|
+
const requested = paths.length > 0 ? paths.map((p) => resolve(root, p)) : defaultClaimScanSet(root);
|
|
4396
|
+
const scanSet: string[] = [];
|
|
4397
|
+
for (const p of requested) {
|
|
4398
|
+
let isDir = false;
|
|
4399
|
+
try {
|
|
4400
|
+
isDir = statSync(p).isDirectory();
|
|
4401
|
+
} catch {
|
|
4402
|
+
/* missing path stays in the set so it is reported as skipped, never silently dropped */
|
|
4403
|
+
}
|
|
4404
|
+
if (isDir) scanSet.push(...expandDir(p));
|
|
4405
|
+
else scanSet.push(p);
|
|
4406
|
+
}
|
|
4371
4407
|
|
|
4372
4408
|
const findings: (ClaimFinding & { file: string })[] = [];
|
|
4373
4409
|
const scanned: { path: string; status: 'scanned' | 'skipped'; findings?: number; reason?: string }[] = [];
|
|
@@ -4410,6 +4446,13 @@ function cmdClaimCheck(
|
|
|
4410
4446
|
const skipped = scanned.filter((s) => s.status === 'skipped');
|
|
4411
4447
|
write(`\n ${scanned.length} file(s) in scan set, ${skipped.length} skipped.`);
|
|
4412
4448
|
for (const s of skipped) write(` skipped ${s.path} (${s.reason})`);
|
|
4449
|
+
// A gate that examined NOTHING must never report a pass. Previously an unreadable argument was
|
|
4450
|
+
// counted as "skipped" and the command still exited 0 — a clean bill of health over zero evidence.
|
|
4451
|
+
const readCount = scanned.filter((s) => s.status === 'scanned').length;
|
|
4452
|
+
if (readCount === 0 && scanned.length > 0) {
|
|
4453
|
+
write(' NOTHING was read — this is not a pass. Check the paths above.');
|
|
4454
|
+
return 1;
|
|
4455
|
+
}
|
|
4413
4456
|
// Additive per-group rollup (ADR-001 C4): the widened default set can produce thousands of
|
|
4414
4457
|
// findings; this summarizes WHERE they land (root README, packages/…, features/<slug>,
|
|
4415
4458
|
// docs/<subdir>) WITHOUT hiding any — display-only, so `--json` shape and exit codes are
|