@skill-map/cli 0.19.0 → 0.20.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/tutorial/sm-tutorial.md +3 -3
- package/dist/cli.js +7476 -6447
- package/dist/cli.js.map +1 -1
- package/dist/conformance/index.js +1 -1
- package/dist/conformance/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +182 -141
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +268 -109
- package/dist/kernel/index.js +182 -141
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +17 -17
- package/dist/ui/{chunk-7CAK6MVK.js → chunk-2W62S3FU.js} +10 -10
- package/dist/ui/{chunk-BORRASJB.js → chunk-C7QWBAYP.js} +6 -6
- package/dist/ui/{chunk-VWAUXWQX.js → chunk-DLT5AP43.js} +1 -1
- package/dist/ui/chunk-HJSRMZTK.js +450 -0
- package/dist/ui/chunk-HOBQ4G4O.js +125 -0
- package/dist/ui/chunk-IBUV6OG2.js +1 -0
- package/dist/ui/chunk-LQTUSDHD.js +124 -0
- package/dist/ui/chunk-QICH7GU2.js +5 -0
- package/dist/ui/chunk-UJRROL5X.js +1 -0
- package/dist/ui/chunk-VLNLJAUB.js +61 -0
- package/dist/ui/{chunk-LFIE4SCX.js → chunk-W3JLG7BI.js} +13 -13
- package/dist/ui/index.html +2 -2
- package/dist/ui/main-QHE47BCM.js +1 -0
- package/dist/ui/{styles-UAABA7VK.css → styles-VJ5Q6D2X.css} +1 -1
- package/migrations/001_initial.sql +17 -17
- package/package.json +2 -2
- package/dist/ui/chunk-CZSS4D6J.js +0 -454
- package/dist/ui/chunk-EQD7AYYJ.js +0 -227
- package/dist/ui/chunk-ETTRVTFV.js +0 -1
- package/dist/ui/chunk-OKO3QOH6.js +0 -1
- package/dist/ui/chunk-PMIMYHBM.js +0 -61
- package/dist/ui/chunk-UHFGCO24.js +0 -1
- package/dist/ui/chunk-VHIPW3TH.js +0 -1
- package/dist/ui/main-BSYMJKTL.js +0 -1
|
@@ -83,7 +83,7 @@ CREATE INDEX ix_scan_links_normalized_trigger ON scan_links(normalized_trigger);
|
|
|
83
83
|
|
|
84
84
|
CREATE TABLE scan_issues (
|
|
85
85
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
86
|
-
|
|
86
|
+
analyzer_id TEXT NOT NULL,
|
|
87
87
|
severity TEXT NOT NULL,
|
|
88
88
|
node_ids_json TEXT NOT NULL,
|
|
89
89
|
link_indices_json TEXT,
|
|
@@ -93,7 +93,7 @@ CREATE TABLE scan_issues (
|
|
|
93
93
|
data_json TEXT,
|
|
94
94
|
CONSTRAINT ck_scan_issues_severity CHECK (severity IN ('error','warn','info'))
|
|
95
95
|
);
|
|
96
|
-
CREATE INDEX
|
|
96
|
+
CREATE INDEX ix_scan_issues_analyzer_id ON scan_issues(analyzer_id);
|
|
97
97
|
CREATE INDEX ix_scan_issues_severity ON scan_issues(severity);
|
|
98
98
|
|
|
99
99
|
-- --- State zone ------------------------------------------------------------
|
|
@@ -290,7 +290,7 @@ CREATE INDEX ix_scan_extractor_runs_extractor ON scan_extractor_runs(extractor_i
|
|
|
290
290
|
--
|
|
291
291
|
-- Read-side `node.merged` view (helper `mergeNodeWithEnrichments`):
|
|
292
292
|
-- author frontmatter + non-stale enrichments ordered by enriched_at ASC,
|
|
293
|
-
-- last-write-wins per field.
|
|
293
|
+
-- last-write-wins per field. Analyzers / `sm check` / `sm export` consume the
|
|
294
294
|
-- author frontmatter by default (CI-safe deterministic baseline);
|
|
295
295
|
-- enrichment consumption is opt-in.
|
|
296
296
|
|
|
@@ -311,8 +311,8 @@ CREATE INDEX ix_node_enrichments_stale ON node_enrichments(stale);
|
|
|
311
311
|
|
|
312
312
|
-- --- View contribution layer ----------------------------------------------
|
|
313
313
|
-- Phase 3 / View contribution system. Per-node typed data emitted by
|
|
314
|
-
-- extractors via `ctx.emitContribution(id, payload)` (and
|
|
315
|
-
-- `ctx.emitScopeContribution(id, payload)` for scope-level
|
|
314
|
+
-- extractors via `ctx.emitContribution(id, payload)` (and analyzers via
|
|
315
|
+
-- `ctx.emitScopeContribution(id, payload)` for scope-level slots).
|
|
316
316
|
-- Belongs to the `scan_*` family — cleared on every scan and repopulated
|
|
317
317
|
-- by emissions; NOT analogous to the plugin-private `state_plugin_kvs`
|
|
318
318
|
-- (which the plugin manages).
|
|
@@ -320,9 +320,9 @@ CREATE INDEX ix_node_enrichments_stale ON node_enrichments(stale);
|
|
|
320
320
|
-- See `spec/architecture.md` § View contribution system → Persistence
|
|
321
321
|
-- and `ROADMAP.md` § UI contribution system → Persistence for the
|
|
322
322
|
-- normative contract. The kernel publishes the closed catalog of
|
|
323
|
-
--
|
|
324
|
-
-- payloads are AJV-validated at emit time against the per-
|
|
325
|
-
-- schemas in `$defs/payloads/<
|
|
323
|
+
-- slots at `spec/schemas/view-slots.schema.json#/$defs/SlotName`;
|
|
324
|
+
-- payloads are AJV-validated at emit time against the per-slot
|
|
325
|
+
-- schemas in `$defs/payloads/<slot>` before reaching this table.
|
|
326
326
|
--
|
|
327
327
|
-- PK on `(plugin_id, extension_id, node_path, contribution_id)` so
|
|
328
328
|
-- re-emission of the same contribution for the same node REPLACES the
|
|
@@ -341,15 +341,15 @@ CREATE TABLE scan_contributions (
|
|
|
341
341
|
node_path TEXT NOT NULL,
|
|
342
342
|
contribution_id TEXT NOT NULL,
|
|
343
343
|
-- Closed enum surfaced for fast filtering / debugging — the value
|
|
344
|
-
-- mirrors `view-
|
|
345
|
-
--
|
|
346
|
-
-- a kernel + spec change with `sm plugins upgrade` migration; a
|
|
347
|
-
-- CHECK here would force a DDL migration on every catalog
|
|
348
|
-
-- and conflict with the upgrade verb's autonomy.
|
|
349
|
-
|
|
350
|
-
-- JSON-serialized payload, already validated against the
|
|
351
|
-
-- payload schema at emit time. Kept opaque at the SQL layer;
|
|
352
|
-
-- (BFF,
|
|
344
|
+
-- mirrors `view-slots.schema.json#/$defs/SlotName`. Kept open at
|
|
345
|
+
-- the SQL layer (no CHECK) by design: catalog evolution ships as
|
|
346
|
+
-- a kernel + spec change with `sm plugins upgrade` migration; a
|
|
347
|
+
-- hard CHECK here would force a DDL migration on every catalog
|
|
348
|
+
-- rename and conflict with the upgrade verb's autonomy.
|
|
349
|
+
slot TEXT NOT NULL,
|
|
350
|
+
-- JSON-serialized payload, already validated against the slot's
|
|
351
|
+
-- payload schema at emit time. Kept opaque at the SQL layer;
|
|
352
|
+
-- readers (BFF, analyzers) parse on demand.
|
|
353
353
|
payload_json TEXT NOT NULL,
|
|
354
354
|
emitted_at INTEGER NOT NULL,
|
|
355
355
|
PRIMARY KEY (plugin_id, extension_id, node_path, contribution_id)
|