@skill-map/cli 0.15.0 → 0.16.1
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 +16 -0
- package/dist/cli/tutorial/sm-tutorial.md +235 -50
- package/dist/cli.js +133 -42
- package/dist/cli.js.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +23 -7
- package/dist/kernel/index.js +8 -5
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/{chunk-E2ZFWQW6.js → chunk-3NHGIRPN.js} +3 -3
- package/dist/ui/index.html +1 -1
- package/dist/ui/{main-JI2DDER5.js → main-ZNVY5M44.js} +1 -1
- package/package.json +2 -2
- /package/dist/config/defaults/{skill-mapignore → skillmapignore} +0 -0
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.16.1",
|
|
106
106
|
description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
|
|
107
107
|
license: "MIT",
|
|
108
108
|
type: "module",
|
|
@@ -161,7 +161,7 @@ var package_default = {
|
|
|
161
161
|
},
|
|
162
162
|
dependencies: {
|
|
163
163
|
"@hono/node-server": "2.0.1",
|
|
164
|
-
"@skill-map/spec": "0.
|
|
164
|
+
"@skill-map/spec": "0.16.0",
|
|
165
165
|
ajv: "8.18.0",
|
|
166
166
|
"ajv-formats": "3.0.1",
|
|
167
167
|
chokidar: "5.0.0",
|
|
@@ -1326,11 +1326,14 @@ import { resolve as resolve3, relative as relative2, sep } from "path";
|
|
|
1326
1326
|
import chokidar from "chokidar";
|
|
1327
1327
|
function createChokidarWatcher(opts) {
|
|
1328
1328
|
const absRoots = opts.roots.map((r) => resolve3(opts.cwd, r));
|
|
1329
|
-
const
|
|
1330
|
-
const
|
|
1329
|
+
const ignoreFilterOpt = opts.ignoreFilter;
|
|
1330
|
+
const getFilter = ignoreFilterOpt === void 0 ? void 0 : typeof ignoreFilterOpt === "function" ? ignoreFilterOpt : () => ignoreFilterOpt;
|
|
1331
|
+
const ignored = getFilter ? (path) => {
|
|
1332
|
+
const filter = getFilter();
|
|
1333
|
+
if (!filter) return false;
|
|
1331
1334
|
const rel = relativePathFromRoots(path, absRoots);
|
|
1332
1335
|
if (rel === null) return false;
|
|
1333
|
-
return
|
|
1336
|
+
return filter.ignores(rel);
|
|
1334
1337
|
} : void 0;
|
|
1335
1338
|
const watcher = chokidar.watch(absRoots, {
|
|
1336
1339
|
ignoreInitial: true,
|