@podo/skill-validator 0.1.0-canary.0 → 0.1.0
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/README.md +6 -6
- package/dist/cli.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ Offline Node 22+ validator for directories containing `SKILL.md`. Uses the
|
|
|
4
4
|
website's deterministic rules, security heuristics, static package checks, and
|
|
5
5
|
token estimates. No network requests, AI calls, or execution of skill scripts.
|
|
6
6
|
|
|
7
|
-
**Public npm package:** `@podo/skill-validator`.
|
|
8
|
-
`0.1.0
|
|
7
|
+
**Public npm package:** `@podo/skill-validator`. Stable installations should pin
|
|
8
|
+
`0.1.0`; verify its registry publication before installing it.
|
|
9
9
|
The package does not require Cloudsmith or Nexus. Direct npm downloads from the
|
|
10
10
|
target Jenkins agent still need a network/policy check. The source repository
|
|
11
11
|
does not need to move to distribute this package.
|
|
@@ -27,11 +27,11 @@ Both `skill-validator` and `skillval` invoke the same command.
|
|
|
27
27
|
|
|
28
28
|
## Install from public npm
|
|
29
29
|
|
|
30
|
-
**After the
|
|
30
|
+
**After the stable release is published and verified**, pin its exact version:
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
33
|
npm install --save-dev --save-exact --ignore-scripts \
|
|
34
|
-
@podo/skill-validator@0.1.0
|
|
34
|
+
@podo/skill-validator@0.1.0 \
|
|
35
35
|
--registry=https://registry.npmjs.org/
|
|
36
36
|
./node_modules/.bin/skill-validator validate skills
|
|
37
37
|
```
|
|
@@ -212,7 +212,7 @@ stage('Skill Validator (advisory)') {
|
|
|
212
212
|
npm exec --yes --ignore-scripts \
|
|
213
213
|
--registry=https://registry.npmjs.org/ \
|
|
214
214
|
--@podo:registry=https://registry.npmjs.org/ \
|
|
215
|
-
--package=@podo/skill-validator@0.1.0
|
|
215
|
+
--package=@podo/skill-validator@0.1.0 -- \
|
|
216
216
|
skill-validator validate plugins --fail-on none \
|
|
217
217
|
--format junit,json,markdown \
|
|
218
218
|
--report-dir skill-validator-report --quiet
|
|
@@ -281,7 +281,7 @@ only the executable, schema, package metadata, README, license, and dependency
|
|
|
281
281
|
notices. Inspect the artifact for sensitive material before the first upload.
|
|
282
282
|
|
|
283
283
|
CLI tags are independent of web `vX.Y.Z` tags and do not require a Playground
|
|
284
|
-
deploy. After
|
|
284
|
+
deploy. After each release, verify its public access and integrity,
|
|
285
285
|
install it in a clean directory without credentials, and run it on a real Jenkins
|
|
286
286
|
agent before enabling consumer integration. Publication does not establish
|
|
287
287
|
Jenkins compatibility: that remains a separate acceptance check.
|
package/dist/cli.js
CHANGED
|
@@ -8451,7 +8451,7 @@ function render(format, report, quiet = false) {
|
|
|
8451
8451
|
}
|
|
8452
8452
|
|
|
8453
8453
|
// src/bin/cli.ts
|
|
8454
|
-
var HELP = `skill-validator ${"0.1.0
|
|
8454
|
+
var HELP = `skill-validator ${"0.1.0"}
|
|
8455
8455
|
|
|
8456
8456
|
Usage:
|
|
8457
8457
|
skill-validator [validate] [paths...] Validate directories (default: skills/ or .)
|
|
@@ -8511,7 +8511,7 @@ function main(args) {
|
|
|
8511
8511
|
return EXIT_OK;
|
|
8512
8512
|
}
|
|
8513
8513
|
if (values.version) {
|
|
8514
|
-
console.log("0.1.0
|
|
8514
|
+
console.log("0.1.0");
|
|
8515
8515
|
return EXIT_OK;
|
|
8516
8516
|
}
|
|
8517
8517
|
const commands = /* @__PURE__ */ new Set(["validate", "doctor", "rules", "prompt"]);
|
|
@@ -8552,7 +8552,7 @@ ${webOnlyReason(rule.id) ? `Web/live only; not run by the CLI (${webOnlyReason(r
|
|
|
8552
8552
|
const inputs = positionals.length ? positionals.map((path) => resolve4(cwd, path)) : [existsSync2(join4(cwd, "skills")) ? join4(cwd, "skills") : cwd];
|
|
8553
8553
|
const { skills: dirs, unsearched } = discoverSkills(root, inputs, ignoreMatcher(config.ignore));
|
|
8554
8554
|
if (command === "doctor") {
|
|
8555
|
-
console.log(`skill-validator ${"0.1.0
|
|
8555
|
+
console.log(`skill-validator ${"0.1.0"}
|
|
8556
8556
|
node ${process.versions.node}
|
|
8557
8557
|
repository ${printable(root)}
|
|
8558
8558
|
config ${printable(configPath ?? "not found (defaults)")}
|
|
@@ -8573,7 +8573,7 @@ not run ${SKIPPED_CHECKS.join(", ")}`);
|
|
|
8573
8573
|
const skill = validateBundle(bundle, { dir: inside(root, dir), skippedChecks: SKIPPED_CHECKS });
|
|
8574
8574
|
return { bundle, skill };
|
|
8575
8575
|
});
|
|
8576
|
-
const report = createReport(loaded, config, "0.1.0
|
|
8576
|
+
const report = createReport(loaded, config, "0.1.0");
|
|
8577
8577
|
if (command === "prompt") {
|
|
8578
8578
|
const entry = loaded[0];
|
|
8579
8579
|
const findings = entry.skill.findings.map((finding) => scrubEvidence({ ...finding, severity: config.ruleSeverities[finding.id] ?? finding.severity }));
|
|
@@ -8604,7 +8604,7 @@ try {
|
|
|
8604
8604
|
process.exitCode = EXIT_USAGE;
|
|
8605
8605
|
} else {
|
|
8606
8606
|
console.error(`skill-validator: internal error (exit ${EXIT_INTERNAL})`);
|
|
8607
|
-
console.error(`version ${"0.1.0
|
|
8607
|
+
console.error(`version ${"0.1.0"} \xB7 node ${process.versions.node}`);
|
|
8608
8608
|
console.error("package information: https://www.npmjs.com/package/@podo/skill-validator");
|
|
8609
8609
|
if (process.env.SKILL_VALIDATOR_DEBUG === "1") console.error(error);
|
|
8610
8610
|
process.exitCode = EXIT_INTERNAL;
|