@dzhechkov/harness-cli 0.3.239 → 0.3.240

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzhechkov/harness-cli",
3
- "version": "0.3.239",
3
+ "version": "0.3.240",
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.130"
60
+ "@dzhechkov/harness-core": "0.3.131"
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": "6cdf43e972df9144b6eb93beed515bb216c1545bdd69b696b773a3dbe2d5b679"
28
+ "content": "1356d1ebf22352d0ab57ebe17fb91bb8c4df17da8b6968863a92b92402921bb7"
29
29
  }
30
30
  ]
31
31
  },
@@ -105,7 +105,7 @@
105
105
  "hashes": [
106
106
  {
107
107
  "alg": "SHA-256",
108
- "content": "dfb260e21d46dfc8020eef0bf5ba570f9c335964181cf90446c1c5d761626415"
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": "a5b7d2fc4f582c507dfab54f1cc4754ca6700f7e686a3c72871afa807cceac25"
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": "8fb0c46e092ac7240af9d254f272da649d911b3307b39dc60ac1ef43d349834f"
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": "82a481991b03522d4da62fe49c032c03445928a46a226e8cbb05498eb9321950"
188
+ "content": "b729864fd3fb9fc4cf2fcab96c6aa36f13ed181f3aa2bb37c6b3ca0c893afd76"
189
189
  }
190
190
  ]
191
191
  },
@@ -205,7 +205,7 @@
205
205
  "hashes": [
206
206
  {
207
207
  "alg": "SHA-256",
208
- "content": "ccb1af3966a258b17eed99ce8b830639166ad8a8a5075ca027d8f30077025d19"
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 */ }