@skill-map/cli 0.3.1 → 0.3.2

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/bin/sm.mjs CHANGED
@@ -1,4 +1,9 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env -S node --disable-warning=ExperimentalWarning
2
+ // Shebang note: `env -S` lets us pass `--disable-warning=ExperimentalWarning`
3
+ // to node so end users don't see the `node:sqlite` experimental notice on
4
+ // every invocation. The flag scopes to ExperimentalWarning only — other
5
+ // warning classes (DeprecationWarning, etc.) still surface.
6
+ //
2
7
  // Runtime guard — fail fast with a human message before importing anything
3
8
  // that uses Node 24 APIs (node:sqlite stable, built-in WebSocket, modern
4
9
  // ESM loader). Without this, a user on Node 20/22 gets an obscure
@@ -0,0 +1,22 @@
1
+ -- Step 5.1 — Persist scan-result metadata so `loadScanResult` returns real
2
+ -- values for `scope`, `roots`, `scannedAt`, `scannedBy`, `adapters`, and the
3
+ -- non-derivable `stats` fields (filesWalked / filesSkipped / durationMs)
4
+ -- instead of the synthetic envelope it has been returning since Step 0c.
5
+ -- Single-row table (CHECK id = 1); replaced atomically with the rest of
6
+ -- the scan_* zone on every `sm scan` via `persistScanResult`.
7
+
8
+ CREATE TABLE scan_meta (
9
+ id INTEGER PRIMARY KEY,
10
+ scope TEXT NOT NULL,
11
+ roots_json TEXT NOT NULL,
12
+ scanned_at INTEGER NOT NULL,
13
+ scanned_by_name TEXT NOT NULL,
14
+ scanned_by_version TEXT NOT NULL,
15
+ scanned_by_spec_version TEXT NOT NULL,
16
+ adapters_json TEXT NOT NULL,
17
+ stats_files_walked INTEGER NOT NULL,
18
+ stats_files_skipped INTEGER NOT NULL,
19
+ stats_duration_ms INTEGER NOT NULL,
20
+ CONSTRAINT ck_scan_meta_singleton CHECK (id = 1),
21
+ CONSTRAINT ck_scan_meta_scope CHECK (scope IN ('project','global'))
22
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skill-map/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "skill-map reference implementation — kernel + CLI + adapters.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -57,6 +57,7 @@
57
57
  "ajv": "8.18.0",
58
58
  "ajv-formats": "3.0.1",
59
59
  "clipanion": "4.0.0-rc.4",
60
+ "js-tiktoken": "1.0.21",
60
61
  "js-yaml": "4.1.1",
61
62
  "kysely": "0.28.16",
62
63
  "semver": "7.7.4",