@skill-map/cli 0.7.0 → 0.8.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/migrations/001_initial.sql +8 -3
- package/package.json +13 -6
|
@@ -25,7 +25,11 @@ CREATE TABLE scan_nodes (
|
|
|
25
25
|
links_in_count INTEGER NOT NULL DEFAULT 0,
|
|
26
26
|
external_refs_count INTEGER NOT NULL DEFAULT 0,
|
|
27
27
|
scanned_at INTEGER NOT NULL,
|
|
28
|
-
|
|
28
|
+
-- `kind` is open-by-design (Provider-declared string; the built-in
|
|
29
|
+
-- Claude Provider emits `skill` / `agent` / `command` / `hook` /
|
|
30
|
+
-- `note`, but external Providers may declare their own — see
|
|
31
|
+
-- `node.schema.json#/properties/kind` and `db-schema.md` § scan_nodes).
|
|
32
|
+
-- A CHECK whitelist would close what the spec keeps open.
|
|
29
33
|
CONSTRAINT ck_scan_nodes_stability CHECK (stability IS NULL OR stability IN ('experimental','stable','deprecated'))
|
|
30
34
|
);
|
|
31
35
|
CREATE INDEX ix_scan_nodes_kind ON scan_nodes(kind);
|
|
@@ -125,14 +129,15 @@ CREATE INDEX ix_state_executions_job_id ON state_executions(job_id);
|
|
|
125
129
|
|
|
126
130
|
CREATE TABLE state_summaries (
|
|
127
131
|
node_id TEXT NOT NULL,
|
|
132
|
+
-- `kind` is open-by-design (mirrors `scan_nodes.kind` — see the
|
|
133
|
+
-- comment there for the spec rationale).
|
|
128
134
|
kind TEXT NOT NULL,
|
|
129
135
|
summarizer_action_id TEXT NOT NULL,
|
|
130
136
|
summarizer_version TEXT NOT NULL,
|
|
131
137
|
body_hash_at_generation TEXT NOT NULL,
|
|
132
138
|
generated_at INTEGER NOT NULL,
|
|
133
139
|
summary_json TEXT NOT NULL,
|
|
134
|
-
PRIMARY KEY (node_id, summarizer_action_id)
|
|
135
|
-
CONSTRAINT ck_state_summaries_kind CHECK (kind IN ('skill','agent','command','hook','note'))
|
|
140
|
+
PRIMARY KEY (node_id, summarizer_action_id)
|
|
136
141
|
);
|
|
137
142
|
CREATE INDEX ix_state_summaries_generated_at ON state_summaries(generated_at);
|
|
138
143
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skill-map/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "skill-map reference implementation — kernel + CLI + adapters.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,10 +48,12 @@
|
|
|
48
48
|
"build": "tsup",
|
|
49
49
|
"dev": "tsup --watch",
|
|
50
50
|
"typecheck": "tsc --noEmit",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"test
|
|
54
|
-
"test:
|
|
51
|
+
"lint": "eslint .",
|
|
52
|
+
"lint:fix": "eslint . --fix",
|
|
53
|
+
"test": "tsc --noEmit && node --import tsx --test --test-reporter=spec 'test/**/*.test.ts' 'built-in-plugins/**/*.test.ts' 'kernel/**/*.test.ts'",
|
|
54
|
+
"test:ci": "tsc --noEmit && node --import tsx --test 'test/**/*.test.ts' 'built-in-plugins/**/*.test.ts' 'kernel/**/*.test.ts'",
|
|
55
|
+
"test:coverage": "tsc --noEmit && SKILL_MAP_SKIP_BENCHMARK=1 node --experimental-default-config-file --import tsx --test --experimental-test-coverage 'test/**/*.test.ts' 'built-in-plugins/**/*.test.ts' 'kernel/**/*.test.ts'",
|
|
56
|
+
"test:coverage:html": "tsc --noEmit && SKILL_MAP_SKIP_BENCHMARK=1 c8 node --import tsx --test 'test/**/*.test.ts' 'built-in-plugins/**/*.test.ts' 'kernel/**/*.test.ts'",
|
|
55
57
|
"clean": "rm -rf dist coverage"
|
|
56
58
|
},
|
|
57
59
|
"dependencies": {
|
|
@@ -68,13 +70,18 @@
|
|
|
68
70
|
"typanion": "3.14.0"
|
|
69
71
|
},
|
|
70
72
|
"devDependencies": {
|
|
73
|
+
"@eslint/js": "10.0.1",
|
|
74
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
71
75
|
"@types/js-yaml": "4.0.9",
|
|
72
76
|
"@types/node": "24.12.2",
|
|
73
77
|
"@types/semver": "7.7.1",
|
|
74
78
|
"c8": "11.0.0",
|
|
79
|
+
"eslint": "10.2.1",
|
|
80
|
+
"eslint-plugin-import-x": "4.16.2",
|
|
75
81
|
"tsup": "8.5.1",
|
|
76
82
|
"tsx": "4.21.0",
|
|
77
|
-
"typescript": "5.9.3"
|
|
83
|
+
"typescript": "5.9.3",
|
|
84
|
+
"typescript-eslint": "8.59.1"
|
|
78
85
|
},
|
|
79
86
|
"engines": {
|
|
80
87
|
"node": ">=24.0"
|