@qvac/skills 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +18 -27
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,13 @@
1
- # qvac-skills
1
+ # @qvac/skills
2
2
 
3
- Skills for the QV.AC app.
3
+ Skills for QV.AC.
4
4
 
5
- A skill is a directory under `skills/` holding a `SKILL.md` YAML front matter
6
- plus a `metadata` JSON block the harness parses into a catalog entry — and
7
- whatever it needs beside it: `references/*.md`, `scripts/*.py`,
8
- `*.applescript`, `cli.schema.json`.
5
+ A skill is a directory under `skills/` with a `SKILL.md` in it, plus whatever
6
+ else it needs alongside reference notes, scripts, a schema. The `SKILL.md`
7
+ front matter is what the harness reads to build its catalog.
9
8
 
10
- This package ships that tree **and** a content-addressed bundle of it, so a
11
- consumer without a filesystem (a Bare worklet) gets the same bytes as one that
12
- reads `node_modules` directly.
9
+ The package ships the tree itself and a bundled copy of it, so consumers that
10
+ can't read a filesystem still get the same bytes.
13
11
 
14
12
  ## Entry points
15
13
 
@@ -20,29 +18,22 @@ reads `node_modules` directly.
20
18
  | `@qvac/skills/hash` | `SKILLS_HASH` alone | no |
21
19
  | `@qvac/skills/skills/*` | a single file by path | no |
22
20
 
23
- Every entry loads under Node and Bare alike, but `skillsDir` only points at
24
- something real where this package was installed to disk. A Bare worklet ships no
25
- `node_modules`, so it imports `./bundled` and materializes a tree instead.
21
+ All of them work on Node and Bare. `skillsDir` only points at anything real
22
+ where the package was installed to disk, though — a Bare worklet ships no
23
+ `node_modules`, so it imports `./bundled` and writes the tree out itself.
26
24
 
27
- `bundled.js` and `hash.js` are generated from `skills/` by `scripts/build.mjs`
28
- on `prepack`. They are gitignored: the published artifact is always built from
29
- the tree beside it, so the bundle and the tree cannot disagree.
30
-
31
- `SKILLS_HASH` is sha256 over the sorted `path\0content\0` stream, truncated to
32
- 16 hex chars. It is the content address consumers key a materialized directory
33
- on, so it must match `hashBundledSkills` in the harness byte for byte.
34
-
35
- ## Release
25
+ `SKILLS_HASH` is a sha256 over the sorted `path\0content\0` stream, truncated
26
+ to 16 hex chars. Consumers key a materialized directory on it, so it has to
27
+ match `hashBundledSkills` in the harness byte for byte.
36
28
 
37
- Bump `version`, tag `v<version>`, push the tag. `.github/workflows/publish.yml`
38
- publishes to npmjs through OIDC trusted publishing, so there is no token to
39
- rotate.
29
+ ## Development
40
30
 
41
- ```
42
- npm version patch && git push --follow-tags
31
+ ```sh
32
+ npm test # node + bare
33
+ npm run lint
43
34
  ```
44
35
 
45
- Consumers pin a version; nothing resolves a moving ref.
36
+ `bundled.js` and `hash.js` are generated from `skills/` by `scripts/build.mjs`
46
37
 
47
38
  ## License
48
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/skills",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Skills for the QV.AC app — the SKILL.md tree plus a content-addressed bundle of it.",
5
5
  "type": "module",
6
6
  "main": "index.js",