@skill-map/cli 0.9.0 → 0.10.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 +1380 -675
- package/dist/cli.js.map +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.js +15 -7
- package/dist/kernel/index.js.map +1 -1
- package/package.json +7 -2
package/dist/kernel/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.10.0",
|
|
106
106
|
description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
|
|
107
107
|
license: "MIT",
|
|
108
108
|
type: "module",
|
|
@@ -149,6 +149,7 @@ var package_default = {
|
|
|
149
149
|
scripts: {
|
|
150
150
|
build: "tsup",
|
|
151
151
|
dev: "tsup --watch",
|
|
152
|
+
"dev:serve": "node ../scripts/dev-serve.js",
|
|
152
153
|
typecheck: "tsc --noEmit",
|
|
153
154
|
lint: "eslint .",
|
|
154
155
|
"lint:fix": "eslint . --fix",
|
|
@@ -159,17 +160,20 @@ var package_default = {
|
|
|
159
160
|
clean: "rm -rf dist coverage"
|
|
160
161
|
},
|
|
161
162
|
dependencies: {
|
|
163
|
+
"@hono/node-server": "2.0.1",
|
|
162
164
|
"@skill-map/spec": "*",
|
|
163
165
|
ajv: "8.18.0",
|
|
164
166
|
"ajv-formats": "3.0.1",
|
|
165
167
|
chokidar: "5.0.0",
|
|
166
168
|
clipanion: "4.0.0-rc.4",
|
|
169
|
+
hono: "4.12.16",
|
|
167
170
|
ignore: "7.0.5",
|
|
168
171
|
"js-tiktoken": "1.0.21",
|
|
169
172
|
"js-yaml": "4.1.1",
|
|
170
173
|
kysely: "0.28.16",
|
|
171
174
|
semver: "7.7.4",
|
|
172
|
-
typanion: "3.14.0"
|
|
175
|
+
typanion: "3.14.0",
|
|
176
|
+
ws: "8.20.0"
|
|
173
177
|
},
|
|
174
178
|
devDependencies: {
|
|
175
179
|
"@eslint/js": "10.0.1",
|
|
@@ -177,6 +181,7 @@ var package_default = {
|
|
|
177
181
|
"@types/js-yaml": "4.0.9",
|
|
178
182
|
"@types/node": "24.12.2",
|
|
179
183
|
"@types/semver": "7.7.1",
|
|
184
|
+
"@types/ws": "8.18.1",
|
|
180
185
|
c8: "11.0.0",
|
|
181
186
|
eslint: "10.2.1",
|
|
182
187
|
"eslint-plugin-import-x": "4.16.2",
|
|
@@ -246,9 +251,15 @@ import { existsSync, readFileSync, readdirSync } from "fs";
|
|
|
246
251
|
import { isAbsolute, join, relative, resolve } from "path";
|
|
247
252
|
import { pathToFileURL } from "url";
|
|
248
253
|
import { Ajv2020 } from "ajv/dist/2020.js";
|
|
249
|
-
import addFormatsModule from "ajv-formats";
|
|
250
254
|
import semver from "semver";
|
|
251
255
|
|
|
256
|
+
// kernel/util/ajv-interop.ts
|
|
257
|
+
import addFormatsModule from "ajv-formats";
|
|
258
|
+
var addFormats = addFormatsModule.default ?? addFormatsModule;
|
|
259
|
+
function applyAjvFormats(ajv) {
|
|
260
|
+
addFormats(ajv);
|
|
261
|
+
}
|
|
262
|
+
|
|
252
263
|
// kernel/i18n/plugin-store.texts.ts
|
|
253
264
|
var PLUGIN_STORE_TEXTS = {
|
|
254
265
|
kvValidationFailed: "plugin '{{pluginId}}' ctx.store.set('{{key}}', value): value violates declared schema ({{schemaPath}}) \u2014 {{errors}}",
|
|
@@ -339,7 +350,6 @@ var HOOK_TRIGGERS = Object.freeze([
|
|
|
339
350
|
]);
|
|
340
351
|
|
|
341
352
|
// kernel/adapters/plugin-loader.ts
|
|
342
|
-
var addFormats = addFormatsModule.default ?? addFormatsModule;
|
|
343
353
|
var KNOWN_KINDS = /* @__PURE__ */ new Set(["provider", "extractor", "rule", "action", "formatter", "hook"]);
|
|
344
354
|
var KNOWN_KINDS_LIST = [...KNOWN_KINDS].join(" / ");
|
|
345
355
|
var HOOKABLE_TRIGGERS_LIST = HOOK_TRIGGERS.join(", ");
|
|
@@ -356,8 +366,6 @@ import { readFileSync as readFileSync2 } from "fs";
|
|
|
356
366
|
import { dirname, resolve as resolve2 } from "path";
|
|
357
367
|
import { createRequire as createRequire2 } from "module";
|
|
358
368
|
import { Ajv2020 as Ajv20202 } from "ajv/dist/2020.js";
|
|
359
|
-
import addFormatsModule2 from "ajv-formats";
|
|
360
|
-
var addFormats2 = addFormatsModule2.default ?? addFormatsModule2;
|
|
361
369
|
function buildProviderFrontmatterValidator(providers) {
|
|
362
370
|
const specRoot = resolveSpecRoot();
|
|
363
371
|
const ajv = new Ajv20202({
|
|
@@ -365,7 +373,7 @@ function buildProviderFrontmatterValidator(providers) {
|
|
|
365
373
|
allErrors: true,
|
|
366
374
|
allowUnionTypes: true
|
|
367
375
|
});
|
|
368
|
-
|
|
376
|
+
applyAjvFormats(ajv);
|
|
369
377
|
const baseFile = resolve2(specRoot, "schemas/frontmatter/base.schema.json");
|
|
370
378
|
const baseSchema = JSON.parse(readFileSync2(baseFile, "utf8"));
|
|
371
379
|
ajv.addSchema(baseSchema);
|