@skill-map/cli 0.16.6 → 0.17.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/dist/cli.js +301 -123
- package/dist/cli.js.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +28 -5
- package/dist/kernel/index.js +13 -2
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/chunk-5ZGVBIPP.js +1031 -0
- package/dist/ui/chunk-BWUDZKB6.js +247 -0
- package/dist/ui/chunk-LUDNWV6G.js +3091 -0
- package/dist/ui/chunk-WMWULWZX.js +237 -0
- package/dist/ui/index.html +2 -2
- package/dist/ui/main-7LR4JN4M.js +1 -0
- package/dist/ui/skill-map-mark-dark.svg +8 -0
- package/dist/ui/skill-map-mark-light.svg +8 -0
- package/dist/ui/{styles-TCK5JUQE.css → styles-CBPFNGXA.css} +1 -1
- package/package.json +2 -2
- package/dist/ui/chunk-7PFTODKS.js +0 -1031
- package/dist/ui/chunk-A4RBO3TD.js +0 -38
- package/dist/ui/chunk-KPEISNOV.js +0 -819
- package/dist/ui/chunk-NKC42FI7.js +0 -210
- package/dist/ui/chunk-S5C4U3I3.js +0 -2403
- package/dist/ui/chunk-TG6IWVEC.js +0 -54
- package/dist/ui/chunk-TGJQE3TH.js +0 -54
- package/dist/ui/chunk-UGEECDPV.js +0 -1
- package/dist/ui/main-XSGTD7FQ.js +0 -1
package/dist/index.js
CHANGED
|
@@ -102,7 +102,7 @@ import yaml from "js-yaml";
|
|
|
102
102
|
// package.json
|
|
103
103
|
var package_default = {
|
|
104
104
|
name: "@skill-map/cli",
|
|
105
|
-
version: "0.
|
|
105
|
+
version: "0.17.0",
|
|
106
106
|
description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
|
|
107
107
|
license: "MIT",
|
|
108
108
|
type: "module",
|
|
@@ -168,7 +168,7 @@ var package_default = {
|
|
|
168
168
|
},
|
|
169
169
|
dependencies: {
|
|
170
170
|
"@hono/node-server": "2.0.1",
|
|
171
|
-
"@skill-map/spec": "0.
|
|
171
|
+
"@skill-map/spec": "0.17.0",
|
|
172
172
|
ajv: "8.18.0",
|
|
173
173
|
"ajv-formats": "3.0.1",
|
|
174
174
|
chokidar: "5.0.0",
|
|
@@ -384,6 +384,7 @@ function buildProviderFrontmatterValidator(providers) {
|
|
|
384
384
|
const baseFile = resolve2(specRoot, "schemas/frontmatter/base.schema.json");
|
|
385
385
|
const baseSchema = JSON.parse(readFileSync2(baseFile, "utf8"));
|
|
386
386
|
ajv.addSchema(baseSchema);
|
|
387
|
+
registerProviderAuxiliarySchemas(ajv, providers);
|
|
387
388
|
const compiled = /* @__PURE__ */ new Map();
|
|
388
389
|
for (const provider of providers) {
|
|
389
390
|
for (const [kind, entry] of Object.entries(provider.kinds)) {
|
|
@@ -408,6 +409,16 @@ function formatError(err) {
|
|
|
408
409
|
const path = err.instancePath || "(root)";
|
|
409
410
|
return `${path} ${err.message ?? err.keyword}`;
|
|
410
411
|
}
|
|
412
|
+
function registerProviderAuxiliarySchemas(ajv, providers) {
|
|
413
|
+
for (const provider of providers) {
|
|
414
|
+
if (!provider.schemas) continue;
|
|
415
|
+
for (const aux of provider.schemas) {
|
|
416
|
+
const auxJson = aux;
|
|
417
|
+
if (typeof auxJson.$id === "string" && ajv.getSchema(auxJson.$id)) continue;
|
|
418
|
+
ajv.addSchema(aux);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
411
422
|
function resolveSpecRoot() {
|
|
412
423
|
const require2 = createRequire2(import.meta.url);
|
|
413
424
|
try {
|