@dzhechkov/harness-cli 0.3.239 → 0.3.241
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 +7 -7
- package/README.md +21 -4
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +17 -1
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
- package/sbom.json +6 -6
- package/src/cli.ts +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzhechkov/harness-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.241",
|
|
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.132"
|
|
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": "5b07e06ab04301ad1edfa9207b705266b57f3288f474f19ef7f22747237b6e67"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
},
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"hashes": [
|
|
106
106
|
{
|
|
107
107
|
"alg": "SHA-256",
|
|
108
|
-
"content": "
|
|
108
|
+
"content": "eb431a9aaed2c853b19a797cd49668bed9fe1e700880a8d18d9a1a4cfe243f55"
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
111
|
},
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"hashes": [
|
|
116
116
|
{
|
|
117
117
|
"alg": "SHA-256",
|
|
118
|
-
"content": "
|
|
118
|
+
"content": "9a46ece09ee1ac72ca3d7715ae86c1b5dc3747b18287c6f558a3c5d6569de7da"
|
|
119
119
|
}
|
|
120
120
|
]
|
|
121
121
|
},
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"hashes": [
|
|
126
126
|
{
|
|
127
127
|
"alg": "SHA-256",
|
|
128
|
-
"content": "
|
|
128
|
+
"content": "02dcf19b1e616487f3840482e9af6f9028749b5a8c9d8da143126be5d7ee5779"
|
|
129
129
|
}
|
|
130
130
|
]
|
|
131
131
|
},
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"hashes": [
|
|
186
186
|
{
|
|
187
187
|
"alg": "SHA-256",
|
|
188
|
-
"content": "
|
|
188
|
+
"content": "dc78329bbed8510db61dc597124a455a1ce367f4ce1f0258a171ee6207ebb1e6"
|
|
189
189
|
}
|
|
190
190
|
]
|
|
191
191
|
},
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"hashes": [
|
|
206
206
|
{
|
|
207
207
|
"alg": "SHA-256",
|
|
208
|
-
"content": "
|
|
208
|
+
"content": "8477517b028f8258d5f11a2197167210de2db0acefa901f0f393579dc14bd409"
|
|
209
209
|
}
|
|
210
210
|
]
|
|
211
211
|
},
|
package/src/cli.ts
CHANGED
|
@@ -195,6 +195,7 @@ import {
|
|
|
195
195
|
scanSkillsLayout,
|
|
196
196
|
parseInitFacts,
|
|
197
197
|
verifyRegistration,
|
|
198
|
+
findNonRegistrableSkillDirs,
|
|
198
199
|
registrationExitCode,
|
|
199
200
|
renderRegistrationReport,
|
|
200
201
|
} from '@dzhechkov/harness-core';
|
|
@@ -4808,6 +4809,21 @@ function gatherGuardFacts(op: string, root: string, text: string | undefined, st
|
|
|
4808
4809
|
}
|
|
4809
4810
|
facts['readmeFirst'] = [...perPack.entries()].map(([name, e]) => ({ name: '@dzhechkov/' + name, versionBumped: e.pkgJson, readmeChanged: e.readme }));
|
|
4810
4811
|
} catch { /* not a git repo — rule skips */ }
|
|
4812
|
+
|
|
4813
|
+
// skills-registrable: every skill dir in a skill pack must carry a depth-1 SKILL.md, or it ships
|
|
4814
|
+
// registering nowhere (the health-advisor 1.2.0 class). Pure-toolkit packages yield nothing.
|
|
4815
|
+
try {
|
|
4816
|
+
const packsDir = join(root, 'packages', '@dzhechkov');
|
|
4817
|
+
const packs = readdirSync(packsDir, { withFileTypes: true })
|
|
4818
|
+
.filter((e) => e.isDirectory())
|
|
4819
|
+
.map((e) => e.name);
|
|
4820
|
+
const skillPacks: { name: string; nonRegistrable: string[] }[] = [];
|
|
4821
|
+
for (const pack of packs) {
|
|
4822
|
+
const nonRegistrable = findNonRegistrableSkillDirs(join(packsDir, pack));
|
|
4823
|
+
if (nonRegistrable.length > 0) skillPacks.push({ name: '@dzhechkov/' + pack, nonRegistrable });
|
|
4824
|
+
}
|
|
4825
|
+
facts['skillPacks'] = skillPacks;
|
|
4826
|
+
} catch { /* unreadable packages dir — rule reports nothing rather than inventing a violation */ }
|
|
4811
4827
|
}
|
|
4812
4828
|
if (op === 'consolidate') {
|
|
4813
4829
|
try { facts['drift'] = sweepSkillDrift(root, { scope: 'packages', allowlist: readDriftAllowlist(root) }).drifted.map((d) => d.name); } catch { /* skip */ }
|