@skill-map/cli 0.18.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/README.md +4 -0
- package/dist/cli/tutorial/sm-tutorial.md +9 -10
- package/dist/cli.js +11062 -7069
- 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 +424 -148
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +776 -119
- package/dist/kernel/index.js +424 -148
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +125 -15
- package/dist/ui/chunk-2W62S3FU.js +2638 -0
- package/dist/ui/chunk-C7QWBAYP.js +247 -0
- package/dist/ui/chunk-DLT5AP43.js +237 -0
- 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-W3JLG7BI.js +965 -0
- package/dist/ui/index.html +10 -2
- package/dist/ui/main-QHE47BCM.js +1 -0
- package/dist/ui/{styles-CBPFNGXA.css → styles-VJ5Q6D2X.css} +1 -1
- package/migrations/001_initial.sql +125 -15
- package/package.json +2 -2
- package/dist/migrations/002_sidecar_columns.sql +0 -53
- package/dist/migrations/003_drop_node_author.sql +0 -20
- package/dist/migrations/004_sidecar_root_json.sql +0 -23
- package/dist/migrations/005_node_favorites.sql +0 -20
- package/dist/ui/chunk-JKJGGXCS.js +0 -1025
- package/dist/ui/chunk-SX2A3WBX.js +0 -247
- package/dist/ui/chunk-TWZHUCAT.js +0 -237
- package/dist/ui/chunk-WTAL2RK4.js +0 -1
- package/dist/ui/chunk-Z3UJHHTC.js +0 -3091
- package/dist/ui/main-AAYGMON4.js +0 -1
- package/migrations/002_sidecar_columns.sql +0 -53
- package/migrations/003_drop_node_author.sql +0 -20
- package/migrations/004_sidecar_root_json.sql +0 -23
- package/migrations/005_node_favorites.sql +0 -20
package/README.md
CHANGED
|
@@ -78,6 +78,10 @@ Exit codes follow [`spec/cli-contract.md`](../spec/cli-contract.md):
|
|
|
78
78
|
| `4` | Nonce mismatch |
|
|
79
79
|
| `5` | Resource not found |
|
|
80
80
|
|
|
81
|
+
## Sidecar `.sm` files
|
|
82
|
+
|
|
83
|
+
`sm bump` and `sm sidecar annotate` write a sibling `<basename>.sm` YAML next to each `.md` (same directory). Their purpose is to keep skill-map's bookkeeping — version, stability, supersession, tags, audit trail — **out of the `.md` body and frontmatter**. The `.md` stays vendor-pure (Claude Code, Codex, Cursor, …); the `.sm` is the only file skill-map writes. **`sm scan`, `sm watch`, and the live UI never create `.sm` files** — they only read existing ones; sidecars appear only when you opt in via `bump` or `annotate`. **Commit `.sm` files to git like any other source file** — don't `.gitignore` them; they carry the metadata that drives `sm check`, drift detection, and supersession graphs. Full spec: [`spec/architecture.md` §Annotation system](../spec/architecture.md#annotation-system).
|
|
84
|
+
|
|
81
85
|
## Spec
|
|
82
86
|
|
|
83
87
|
This binary implements the [skill-map spec](https://www.npmjs.com/package/@skill-map/spec). The spec package ships JSON Schemas, conformance cases, and prose contracts; `skill-map` conforms to a declared range via its `specCompat`.
|
|
@@ -405,7 +405,7 @@ long_steps:
|
|
|
405
405
|
- id: "7-issues"
|
|
406
406
|
title: "Issues: broken refs"
|
|
407
407
|
status: "pending"
|
|
408
|
-
verbs: ["sm check", "sm check --
|
|
408
|
+
verbs: ["sm check", "sm check --analyzers broken-ref",
|
|
409
409
|
"sm check --json"]
|
|
410
410
|
- id: "8-plugins"
|
|
411
411
|
title: "Plugins"
|
|
@@ -863,13 +863,12 @@ Mark `2-ui-live: done`.
|
|
|
863
863
|
> UI sees it instantly. In **~10 minutes** you've already seen the
|
|
864
864
|
> full flow.
|
|
865
865
|
>
|
|
866
|
-
>
|
|
867
|
-
>
|
|
868
|
-
>
|
|
869
|
-
>
|
|
870
|
-
>
|
|
871
|
-
>
|
|
872
|
-
> `sm sidecar annotate`.
|
|
866
|
+
> ⚠️ **`.sm` files (heads-up for later)** — when skill-map needs to
|
|
867
|
+
> record metadata on a node, it doesn't modify the `.md` directly;
|
|
868
|
+
> it creates a sibling file with `.sm` extension (e.g. `demo-agent.sm`
|
|
869
|
+
> next to `demo-agent.md`). You won't see any during this demo — they
|
|
870
|
+
> only appear after `sm bump` or `sm sidecar annotate`. Commit them
|
|
871
|
+
> to git like any other source file.
|
|
873
872
|
>
|
|
874
873
|
> If you want, **we can keep going deeper**: I'll walk you through
|
|
875
874
|
> the CLI verbs and flags (`list`, `graph`, `export`, `orphans`,
|
|
@@ -983,13 +982,13 @@ Ask the tester to **append one bullet** to `notes/todo.md`:
|
|
|
983
982
|
|
|
984
983
|
```bash
|
|
985
984
|
sm check
|
|
986
|
-
sm check --
|
|
985
|
+
sm check --analyzers broken-ref
|
|
987
986
|
sm check --json
|
|
988
987
|
```
|
|
989
988
|
|
|
990
989
|
Expected: the warning surfaces the dangling link from
|
|
991
990
|
`notes/todo.md` to the non-existent `missing-page.md`. The
|
|
992
|
-
`--
|
|
991
|
+
`--analyzers` filter lets you focus on a single issue type; `--json`
|
|
993
992
|
emits the structured payload (useful for CI / scripting). When
|
|
994
993
|
done, the tester can leave the bullet in place or delete it — the
|
|
995
994
|
rest of the deep-dive doesn't depend on it.
|