@zero2webmaster/starter-kit 0.18.3 → 0.18.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # z2w-starter-kit
2
2
 
3
- **Version:** 0.18.3 | **Framework:** 2.18.0
3
+ **Version:** 0.18.4 | **Framework:** 2.18.0
4
4
 
5
5
  > Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
6
6
 
@@ -83,7 +83,8 @@ The Claude Code skill at `~/.claude/skills/instantiate-z2w-project/SKILL.md` and
83
83
 
84
84
  ## Status
85
85
 
86
- - **v0.18.3 (current)** makes every emitted `.gitignore` refuse a downloaded cloud service-account key. The Google Cloud console names a private key `<project-id>-<12 hex>.json`, which matched nothing in the scaffolded ignore file and, unlike a stray `.env.production`, carries no hint in its filename that it is a credential. Found when a live Gmail delegation key for two SAVE THE FROGS! mailboxes landed in a repo this CLI had emitted.
86
+ - **v0.18.4 (current)** points the writer's cross-cutting placeholder check at EVERY emitted file. It had run against `CLAUDE.md` alone since Step 6 — one of the ~42 files a Next.js scaffold emits — so `sentry.shared.ts` shipped a literal `{{project_name}}`, a key that has never existed in the substitution map. Found by dogfooding a real scaffold, not by the suite. A per-project-type sweep now covers all eight types.
87
+ - **v0.18.3** makes every emitted `.gitignore` refuse a downloaded cloud service-account key. The Google Cloud console names a private key `<project-id>-<12 hex>.json`, which matched nothing in the scaffolded ignore file and, unlike a stray `.env.production`, carries no hint in its filename that it is a credential. Found when a live Gmail delegation key for two SAVE THE FROGS! mailboxes landed in a repo this CLI had emitted.
87
88
  - **v0.18.2** bumps the emitted Agent Coordination fingerprint to **v0.1.26**, matching what `z2w-agent-coordination` currently publishes. Every scaffold emitted while the constant said `v0.1.25` carries a stale fingerprint, which is precisely the drift the fingerprint exists to detect.
88
89
  - **v0.18.1** returns the audience gate's findings as **data** (`ScaffoldResult.audienceGate`) rather than only printing them. v0.18.0 wrote its dangling-reference warning to the terminal, but `previewScaffold()` discards its output stream by design — and that is the entry point a web UI uses — so the report had no receiver on the one path where an external audience actually occurs. No emitted file changes by a byte.
89
90
  - **v0.18.0** implements **Kerry's 2026-08-14 ruling — Option A: "ship the artifact, not the doctrine."** A new `audience` input (`internal` | `external`, defaulting to `internal`) gates what an outside customer's scaffold contains. The emitted **code is untouched** — that is the value a customer is buying — but the ~40 KB prose corpus explaining which internal rulings produced it is not emitted: `Standards block`, `Z2W Portfolio Standards`, `Capture Learnings`, `Keeping This Framework Current`, `Common Name & Terminology Glossary` and `Agent Coordination` are dropped as **whole `##` sections**, and surviving `[[skill]]` Vault pointers are unwrapped to plain text. Measured on a real customer scaffold: **CLAUDE.md 85,702 → 44,848 B, a 47.7% reduction, 0 Vault pointers, 0 bulletin-repo mentions**; the internal control is byte-for-byte unchanged. **Whole sections, never edited sentences** — omitting a fingerprinted block makes no identity claim, whereas editing one ships a modified body under an unmodified fingerprint and an emitter mints that lie forever. The gate **refuses to emit** when a section it must drop cannot be found (a renamed heading would otherwise re-leak it silently), and **reports** surviving back-references to dropped sections rather than editing the canonical body to fix them.
@@ -124,4 +125,4 @@ Inquiries: kerry@zero2webmaster.com.
124
125
  ---
125
126
 
126
127
  *Scaffolded 2026-05-28 via the [[instantiate-z2w-project]] Claude Code skill v1; reconciled against the consolidated skill v1.1.0 (brief-first + Agent Coordination block) on 2026-05-29.*
127
- *Version: 0.18.3 | Last Updated: 2026-08-15*
128
+ *Version: 0.18.4 | Last Updated: 2026-08-15*
@@ -2116,7 +2116,7 @@ describe("form standards", () => {
2116
2116
  * is a deliberate act with a comment saying why.
2117
2117
  */
2118
2118
  const SENTRY_SHARED_TEMPLATE = `/**
2119
- * Sentry data-collection policy for {{project_name}} — the single source of truth.
2119
+ * Sentry data-collection policy for {{slug}} — the single source of truth.
2120
2120
  *
2121
2121
  * Every Sentry runtime config (\`sentry.client.config.ts\`,
2122
2122
  * \`sentry.server.config.ts\`, \`sentry.edge.config.ts\`) MUST spread
package/dist/writer.js CHANGED
@@ -286,6 +286,25 @@ export async function writeScaffold(inputs, targetPath, opts = {}) {
286
286
  claudeContent = stripVaultPointers(gate.content, audience);
287
287
  checkNoUnfilledMarkers(claudeContent, "CLAUDE.md");
288
288
  files[claudeIdx] = { path: claudeFile.path, content: claudeContent };
289
+ // 🔴 Run the SAME check over EVERY emitted file, not just CLAUDE.md.
290
+ //
291
+ // The header of this module has advertised a "cross-cutting correctness
292
+ // check" since Step 6, and for that entire time it ran against exactly one
293
+ // of the ~42 files a Next.js scaffold emits. That is the [[zero-is-not-a-pass]]
294
+ // shape in this repo's own writer: a check that examines one specimen and
295
+ // reports like it examined the set.
296
+ //
297
+ // Found 2026-08-15 by dogfooding a real `volunteer-engine` scaffold, which
298
+ // shipped `sentry.shared.ts` carrying a literal `{{project_name}}` — a key
299
+ // that has never existed in `buildSubstitutionMap` (the map says `slug`).
300
+ // `applySubstitutions` leaves an unknown placeholder untouched by design, so
301
+ // nothing upstream objected, and the one guard that would have caught it was
302
+ // pointed at a different file. Consistent with this project's standing note
303
+ // that every scaffold defect to date was found by someone dogfooding the
304
+ // artifact rather than by the suite.
305
+ for (const file of files) {
306
+ checkNoUnfilledMarkers(file.content, file.path);
307
+ }
289
308
  // Append promotions follow-up file if any standard was promoted.
290
309
  if (promotions.some((p) => p.choice === "promote")) {
291
310
  const dateForFile = opts.date ?? new Date().toISOString().slice(0, 10);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.18.3",
3
+ "version": "0.18.4",
4
4
  "description": "Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.",
5
5
  "author": {
6
6
  "name": "Dr. Kerry Kriger",