stylegallery 0.1.9 → 0.1.11
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 +22 -0
- package/consumer-reference/agent-native/v2/material-registry.json +1 -1
- package/log.md +46 -0
- package/package.json +12 -2
- package/patterns/media-fit/icon-frame.md +1 -1
- package/patterns/viewport-shell/holy-grail.md +7 -0
- package/quality/claim-records/samples.md +1453 -9
- package/quality/claims.md +14 -7
- package/scripts/compiler/cli.mjs +20 -0
- package/scripts/conservator-exhibits.mjs +768 -0
- package/scripts/conservator.mjs +326 -0
- package/scripts/markdown-structure.mjs +45 -0
- package/scripts/pattern-data.mjs +325 -0
- package/scripts/registrar.mjs +323 -0
package/README.md
CHANGED
|
@@ -46,6 +46,18 @@ sg context sg:profile/editorial-reference-profile --format json
|
|
|
46
46
|
sg ops --format json
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
Check the gallery's own claims with the Registrar and the Conservator:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
sg registrar
|
|
53
|
+
sg registrar --stale
|
|
54
|
+
sg registrar --unverified
|
|
55
|
+
sg conservator
|
|
56
|
+
sg conservator --pattern sidebar,reel --controls
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
`sg registrar` checks every claim record in `quality/claim-records/` against the [claim template and machine-field rules](quality/claims.md). `--stale` lists records whose review date has passed, and `--unverified` lists records whose verdict is not fully automated. `sg conservator` renders every Layout pattern's documented CSS in Chromium at 320, 768, and 1440 CSS pixels and measures the spatial behavior the pattern doc claims. `--controls` also removes a declaration each pattern depends on and requires the matching measurement to fail. Playwright is installed with the package, but its browser is not. If Chromium is missing, the command reports `browser_missing`; run `npx playwright install chromium`, add `--install-browser`, or use an installed Chrome with `--channel chrome`.
|
|
60
|
+
|
|
49
61
|
Every command writes JSON to stdout. Knowledge results retain their deterministic v1 payloads; `discover` and `ops` also report the local compiler installation. Invalid input returns an error object and a nonzero exit status. See [Agent-Native StyleGallery](consumer-reference/agent-native/README.md) for the frozen knowledge contract, StableRef and VersionID model, MCP resources, and trust boundaries.
|
|
50
62
|
|
|
51
63
|
Compile a website directly through SG after [installing the compiler](scripts/compiler/README.md#setup):
|
|
@@ -265,6 +277,16 @@ Every pattern documents its primary problem, structure, constraints, scroll owne
|
|
|
265
277
|
|
|
266
278
|
Pattern verification covers the relevant viewport, container, content, direction, writing-mode, interaction, overflow, focus, and sticky/scroll cases. See the [detailed verification matrix](layout/index.md#verification-matrix).
|
|
267
279
|
|
|
280
|
+
## Releasing
|
|
281
|
+
|
|
282
|
+
The npm package is published from GitHub Actions through [npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers). The repository stores no npm token, and nothing is published from a local machine.
|
|
283
|
+
|
|
284
|
+
1. Open a pull request that bumps `version` in `package.json`, adds the `log.md` entry, and refreshes the material registry and lifecycle hashes that the version change touches. Merge it after CI passes.
|
|
285
|
+
2. Create a GitHub Release from `main` whose tag is `v` plus the new version, for example `v0.1.11`.
|
|
286
|
+
3. Publishing the release runs [`.github/workflows/publish.yml`](.github/workflows/publish.yml). The workflow checks that the tag matches `package.json`, runs the governance, lifecycle, reference-artifact, material, and Registrar checks, and runs `npm publish` with a short-lived OIDC credential. npm attaches provenance automatically.
|
|
287
|
+
|
|
288
|
+
The npm Trusted Publisher entry for `stylegallery` must name owner `changeroa`, repository `StyleGallery`, and workflow `publish.yml`, and must allow `npm publish`. A new entry expires unless its first publish succeeds within two days, so register it in the same sitting as a release.
|
|
289
|
+
|
|
268
290
|
## License
|
|
269
291
|
|
|
270
292
|
Source code is licensed under the MIT License ([LICENSE](LICENSE)). Documentation is licensed under Creative Commons Attribution 4.0 International ([LICENSE-DOCS](LICENSE-DOCS)). Material adapted from external sources keeps its original rights; see [NOTICE](NOTICE) and the [External Adaptation Contract](DOMAINS.md#external-adaptation-contract).
|