@skill-map/spec 0.1.0 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Spec changelog
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - f4214fe: Expand `spec/README.md` §Distribution with concrete install and usage snippets now that `@skill-map/spec` is live on npm: install command, loading a schema via `exports`, and a small integrity-verification example using the `index.json` sha256 block.
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - bc0b217: Update `spec/conformance/README.md` wording: drop the "v0.1.0-alpha.0" label (we shipped `0.1.0`), and reflect that the suite now carries two cases (`basic-scan`, `kernel-empty-boot`) with a shared `minimal-claude` fixture.
14
+
3
15
  ## 0.1.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -96,9 +96,44 @@ When spec and reference impl disagree, the spec wins. File an issue; one of them
96
96
 
97
97
  ## Distribution
98
98
 
99
- - This directory is published to npm as `@skill-map/spec`.
100
- - Schemas are also published to JSON Schema Store when the domain is live.
101
- - Canonical URLs (stable across versions) land with Step 13.
99
+ Published to npm as [`@skill-map/spec`](https://www.npmjs.com/package/@skill-map/spec).
100
+
101
+ ### Install
102
+
103
+ ```bash
104
+ npm i @skill-map/spec
105
+ ```
106
+
107
+ ### Use — load a schema
108
+
109
+ ```js
110
+ import specIndex from '@skill-map/spec';
111
+ import nodeSchema from '@skill-map/spec/schemas/node.schema.json' with { type: 'json' };
112
+
113
+ console.log(specIndex.specVersion); // → "0.0.1" (payload version, tracks file shape)
114
+ console.log(specIndex.integrity.algorithm); // → "sha256"
115
+ console.log(nodeSchema.$id); // → "https://skill-map.dev/spec/v0/node.schema.json"
116
+ ```
117
+
118
+ Every JSON Schema is exported individually via `@skill-map/spec/schemas/*.json`. Prose documents ship in the tarball for reference but are not `exports`-surfaced.
119
+
120
+ ### Verify integrity
121
+
122
+ The package ships `index.json` with a sha256 per file. To verify a local installation matches what was published:
123
+
124
+ ```js
125
+ import { readFileSync } from 'node:fs';
126
+ import { createHash } from 'node:crypto';
127
+ import index from '@skill-map/spec';
128
+
129
+ const file = 'schemas/node.schema.json';
130
+ const actual = createHash('sha256').update(readFileSync(`node_modules/@skill-map/spec/${file}`)).digest('hex');
131
+ console.log(actual === index.integrity.files[file] ? 'ok' : 'drift');
132
+ ```
133
+
134
+ ### JSON Schema Store
135
+
136
+ The schemas will be registered on JSON Schema Store once the canonical URLs under `skill-map.dev/spec/v0/` are stable (Step 13).
102
137
 
103
138
  ## License
104
139
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Language-neutral test suite the specification demands. A conforming implementation passes every case; failing any case is a conformance bug.
4
4
 
5
- This directory is **stub-level** as of spec v0.1.0-alpha.0. Exactly one fixture and one case ship. The shape below is normative; the case count expands before spec-v1.0.0 (see `versioning.md`).
5
+ This directory is **stub-level** as of spec v0.1.0. Two cases ship (`basic-scan`, `kernel-empty-boot`) with a single shared fixture (`minimal-claude`). The shape below is normative; the case count expands before spec-v1.0.0 (see `versioning.md`).
6
6
 
7
7
  ---
8
8
 
package/index.json CHANGED
@@ -159,11 +159,11 @@
159
159
  "integrity": {
160
160
  "algorithm": "sha256",
161
161
  "files": {
162
- "CHANGELOG.md": "30d0d0c2e9fe7cf781067b55c37eeacbbb9ea5e83c1acaf4a0e3bdb32c9fbc53",
163
- "README.md": "d2b4c6debb9b7c4fdd34488e237672d8aff7687715744cf2c455977d5bc9813d",
162
+ "CHANGELOG.md": "91c092558c008f1de7394e6ad17554401f60f09951598e946b23cb04db37d9a0",
163
+ "README.md": "0b4301578969ae159f8a43359666744b8e67fd65caf720f270c32e8174cf2a91",
164
164
  "architecture.md": "fdb1ed50f12bf7b7fb89663c651277b7ba5ed729bd3dc02f3963c51e4d480b12",
165
165
  "cli-contract.md": "ddb7d62f45398866dba2f25da544f8376d76582170712cb5a0010bb826ffb46a",
166
- "conformance/README.md": "1f576362cb43a475b104e398ab3f9d2ac7451ac931ac067a5deaebb9e076f596",
166
+ "conformance/README.md": "4e41ff823b55ce3c274a033c5152ae0b2759fc714a714d7815593d8be84c8a4c",
167
167
  "conformance/cases/basic-scan.json": "24623da0cad8c8c54b3ff9b09820ea1276fe8b8f0fc680bf6e8abeb4edb8e424",
168
168
  "conformance/cases/kernel-empty-boot.json": "175524674b14d993d29f10080d7697074b3a2eee25b359ff903344d73c6acc98",
169
169
  "conformance/fixtures/minimal-claude/agents/reviewer.md": "d0dd681ba63838301e480116aa09825329f01832b0116de5c5476fdd8a5dcf54",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skill-map/spec",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "JSON Schemas, prose contracts, and conformance suite for the skill-map specification.",
5
5
  "license": "MIT",
6
6
  "type": "module",