@piercebarney/whs-eleventy 2026.9.26 → 2026.9.28
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/lib/compliance.js +7 -0
- package/package.json +1 -1
- package/standard/CHANGELOG.md +45 -0
- package/standard/core.md +2 -2
package/lib/compliance.js
CHANGED
|
@@ -186,6 +186,13 @@ const CHECKS = {
|
|
|
186
186
|
const toml = read("netlify.toml") || "";
|
|
187
187
|
if (!/for = "\/site\.webmanifest"[\s\S]*?application\/manifest\+json/.test(toml))
|
|
188
188
|
return { status: FAIL, note: "site.webmanifest not served as application/manifest+json" };
|
|
189
|
+
if (!has("_site/site.webmanifest"))
|
|
190
|
+
return {
|
|
191
|
+
status: FAIL,
|
|
192
|
+
note:
|
|
193
|
+
"netlify.toml declares site.webmanifest's header, but the file " +
|
|
194
|
+
"doesn't exist in the built output",
|
|
195
|
+
};
|
|
189
196
|
const fontFiles = walk(path.join(ROOT, "static")).filter((f) => /\.(woff2?|ttf|otf)$/.test(f));
|
|
190
197
|
if (fontFiles.length && !grepSrc(/@font-face/, [".css"]).length)
|
|
191
198
|
return { status: FAIL, note: `${fontFiles.length} font file(s) but no @font-face` };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piercebarney/whs-eleventy",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.28",
|
|
4
4
|
"description": "The web house style's Eleventy + Netlify tooling — the compliance sweep, the infra doctor, the link/CSP integrity check, and the a11y scan, shared by every project on the stack.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"whs": "cli.js"
|
package/standard/CHANGELOG.md
CHANGED
|
@@ -21,6 +21,51 @@ enforced, new *opt-in* chapters/capabilities, tooling-only changes — is
|
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
+
## 2026-09-28 [non-breaking]
|
|
25
|
+
|
|
26
|
+
### packages/whs-eleventy
|
|
27
|
+
|
|
28
|
+
`assets` in `lib/compliance.js` reported `PASS` for `site.webmanifest` based
|
|
29
|
+
solely on `netlify.toml` declaring a header rule for it — never checking
|
|
30
|
+
whether the file itself existed in the built output. A project could pass
|
|
31
|
+
having only declared the rule, never having actually generated the file (it's
|
|
32
|
+
produced at build time by `scripts/icons.js`), and the `PASS` message gave no
|
|
33
|
+
sign anything was missing — the same silent-pass class as the
|
|
34
|
+
`styling`/`brand-source`/`domain-tests` fix documented under 2026-09-23. No
|
|
35
|
+
`feedback/` file this time: found and fixed live in this conversation while
|
|
36
|
+
reviewing a real project's `/audit/` page work, not filed by an adopting
|
|
37
|
+
session. Fixed in `8773e26`: now also checks `_site/site.webmanifest` exists,
|
|
38
|
+
the same way `sitemap-robots` and `privacy` already check their own built-output
|
|
39
|
+
files in this file.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 2026-09-27 [non-breaking]
|
|
44
|
+
|
|
45
|
+
### templates/eleventy-netlify
|
|
46
|
+
|
|
47
|
+
`.claude/hooks/agent-only.js` gated every main-session `Edit`/`Write`/
|
|
48
|
+
`MultiEdit` regardless of the target file's location — including a
|
|
49
|
+
plan-mode plan file outside the project entirely, which no agent is
|
|
50
|
+
allowed to write (plan mode's own contract requires the main session to
|
|
51
|
+
write it directly). Now scoped to only gate files inside
|
|
52
|
+
`$CLAUDE_PROJECT_DIR`; anything outside it is allowed through
|
|
53
|
+
unconditionally, and an unset `$CLAUDE_PROJECT_DIR` still fails toward the
|
|
54
|
+
original, stricter behavior. Found by a real adopting session using the
|
|
55
|
+
agent-delegation setup for the first time.
|
|
56
|
+
|
|
57
|
+
### templates/commands
|
|
58
|
+
|
|
59
|
+
`templates/commands/whs/adopt.md` now tells the adopting session, at the
|
|
60
|
+
point it wires in the Eleventy agent-delegation set, that a fresh Claude
|
|
61
|
+
Code session is required before the newly-added agents
|
|
62
|
+
(`brand`/`content`/`infra`/`layout`/`pack`) become selectable via the
|
|
63
|
+
Agent tool — the subagent roster is fixed at session start, so the
|
|
64
|
+
current session still needs `general-purpose` for anything it delegates
|
|
65
|
+
itself. The command's final report now repeats this if step 5 wired the
|
|
66
|
+
agent set in. Previously the command said nothing, and a real adopting
|
|
67
|
+
session had to rediscover the restart requirement the hard way.
|
|
68
|
+
|
|
24
69
|
## 2026-09-26 [non-breaking]
|
|
25
70
|
|
|
26
71
|
### stacks/eleventy-netlify.md
|
package/standard/core.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Web project house style — CORE (stack-agnostic)
|
|
2
2
|
|
|
3
|
-
**Version:** 2026-09-
|
|
3
|
+
**Version:** 2026-09-28 · **Status:** active
|
|
4
4
|
|
|
5
5
|
This is the stack-agnostic contract every web project follows, regardless of
|
|
6
6
|
framework, host, or CSS system. It says **what** must be true, with concrete
|
|
@@ -1467,7 +1467,7 @@ governs it and follow that chapter — the slugs are the index (a `<script>` →
|
|
|
1467
1467
|
- production-url: https://example.com
|
|
1468
1468
|
- content-type: tool # tool | article (article => feeds)
|
|
1469
1469
|
- publishing-rate: ~5 pages/week
|
|
1470
|
-
- standard-version: 2026-09-
|
|
1470
|
+
- standard-version: 2026-09-28 # recommended — enables standard-version drift tracking (#compliance)
|
|
1471
1471
|
```
|
|
1472
1472
|
|
|
1473
1473
|
If the section is absent, the assistant's first action is to run the flow above
|