@skill-map/cli 0.35.0 → 0.37.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/README.md +1 -1
- package/dist/cli/tutorial/sm-master/SKILL.md +12 -14
- package/dist/cli/tutorial/sm-master/references/fixture-templates.md +10 -9
- package/dist/cli/tutorial/sm-master/references/tour-plugins.md +3 -3
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +109 -46
- package/dist/cli.js +2559 -913
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +357 -71
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +266 -10
- package/dist/kernel/index.js +357 -71
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +26 -0
- package/dist/ui/chunk-DGXHJVQN.js +317 -0
- package/dist/ui/{chunk-TKV6TXTI.js → chunk-GX2V3PSZ.js} +1 -1
- package/dist/ui/{chunk-P25ABCQU.js → chunk-O2N4CRRW.js} +4 -4
- package/dist/ui/{chunk-FQOZBFJ5.js → chunk-S2NIJM7Z.js} +2 -2
- package/dist/ui/{chunk-KJQEO6P3.js → chunk-VFYNKTSB.js} +1 -1
- package/dist/ui/index.html +1 -1
- package/dist/ui/{main-MNZ7YAUE.js → main-YSELA4XD.js} +2 -2
- package/migrations/001_initial.sql +26 -0
- package/package.json +3 -3
- package/dist/ui/chunk-L3OLNVKI.js +0 -317
|
@@ -29,6 +29,14 @@ CREATE TABLE scan_nodes (
|
|
|
29
29
|
links_out_count INTEGER NOT NULL DEFAULT 0,
|
|
30
30
|
links_in_count INTEGER NOT NULL DEFAULT 0,
|
|
31
31
|
external_refs_count INTEGER NOT NULL DEFAULT 0,
|
|
32
|
+
-- JSON array of `IExternalRef` objects (every http(s) URL the body
|
|
33
|
+
-- references, in extractor-order, deduped by normalised URL). NULL /
|
|
34
|
+
-- unset when the body has no external URLs. The denormalised
|
|
35
|
+
-- `external_refs_count` rides alongside and MUST equal the array
|
|
36
|
+
-- length when both are present. Populated by
|
|
37
|
+
-- `recomputeExternalRefsCount`, surfaced via `/api/nodes` so the
|
|
38
|
+
-- inspector can list every external URL without a second round-trip.
|
|
39
|
+
external_refs_json TEXT,
|
|
32
40
|
scanned_at INTEGER NOT NULL,
|
|
33
41
|
-- Sidecar denormalisation (Step 9.6.2 — Decision #3, option (a)):
|
|
34
42
|
-- - `sidecar_present` — 1 when a co-located `.sm` file accompanies
|
|
@@ -73,6 +81,23 @@ CREATE TABLE scan_links (
|
|
|
73
81
|
location_line INTEGER,
|
|
74
82
|
location_column INTEGER,
|
|
75
83
|
location_offset INTEGER,
|
|
84
|
+
-- JSON array of `LinkOccurrence` objects (every syntactic site in
|
|
85
|
+
-- the source body that contributed to this edge). NULL when the
|
|
86
|
+
-- link has no body-level evidence (frontmatter / sidecar-derived).
|
|
87
|
+
-- Populated by extractors at emit time, accumulated by
|
|
88
|
+
-- `dedupeLinks` across extractor merges. Read by
|
|
89
|
+
-- `core/redundant-target-reference` and surfaced via `/api/links`
|
|
90
|
+
-- so the UI can list per-row sites.
|
|
91
|
+
occurrences_json TEXT,
|
|
92
|
+
-- Node path the link resolved to per the post-walk lift transform.
|
|
93
|
+
-- NULL when the link is unresolved (broken). Equal to `target_path`
|
|
94
|
+
-- for path-style links; differs for trigger-style links (`@foo`,
|
|
95
|
+
-- `/cmd`) where `target_path` keeps the authored trigger and
|
|
96
|
+
-- `resolved_target` carries the resolved node path. The BFF's
|
|
97
|
+
-- `?to=<path>` filter matches on EITHER column so an `@real-agent`
|
|
98
|
+
-- mention surfaces in the incoming list of
|
|
99
|
+
-- `.claude/agents/real-agent.md`.
|
|
100
|
+
resolved_target TEXT,
|
|
76
101
|
raw TEXT,
|
|
77
102
|
CONSTRAINT ck_scan_links_kind CHECK (kind IN ('invokes','references','mentions','supersedes')),
|
|
78
103
|
CONSTRAINT ck_scan_links_confidence CHECK (confidence >= 0.0 AND confidence <= 1.0)
|
|
@@ -80,6 +105,7 @@ CREATE TABLE scan_links (
|
|
|
80
105
|
CREATE INDEX ix_scan_links_source_path ON scan_links(source_path);
|
|
81
106
|
CREATE INDEX ix_scan_links_target_path ON scan_links(target_path);
|
|
82
107
|
CREATE INDEX ix_scan_links_normalized_trigger ON scan_links(normalized_trigger);
|
|
108
|
+
CREATE INDEX ix_scan_links_resolved_target ON scan_links(resolved_target);
|
|
83
109
|
|
|
84
110
|
CREATE TABLE scan_issues (
|
|
85
111
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|