@zero2webmaster/starter-kit 0.39.0 → 0.40.0

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.39.0 | **Framework:** 2.19.0
3
+ **Version:** 0.40.0 | **Framework:** 2.19.0
4
4
 
5
5
  > Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
6
6
 
@@ -135,4 +135,4 @@ Inquiries: kerry@zero2webmaster.com.
135
135
  ---
136
136
 
137
137
  *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.*
138
- *Version: 0.39.0 | Last Updated: 2026-09-24*
138
+ *Version: 0.40.0 | Last Updated: 2026-09-30*
@@ -32,9 +32,18 @@ export declare const NEXTJS_PWA_PATHS: readonly ["public/manifest.json", "public
32
32
  * `HEAD^` there, which is fine for a long-deployed `main` but wrong for a new
33
33
  * scaffold: a repo with history is linked to Vercel later, and its first
34
34
  * deploy must not be skipped because the newest commit was a STATUS.md edit.
35
+ * - A base EQUAL to the commit being deployed BUILDS. That is a Redeploy of
36
+ * the live commit, and the usual reason to click Redeploy is to pick up a
37
+ * changed env var — the diff is empty by definition, so without this guard
38
+ * the new value never reaches production and only a CANCELED badge says so
39
+ * (`org-hq` measured it 2026-09-23; `audit-engine` filed it here 2026-09-24).
40
+ * A push never deploys the SHA that is already live, so pushes are unaffected.
41
+ * Not covered, because no diff can see an env var: redeploying a NEWER,
42
+ * canceled, prose-only commit. Redeploy the READY deployment instead.
35
43
  * - A base missing from Vercel's shallow clone fails `cat-file` → builds.
36
44
  *
37
- * Must stay ≤ 256 characters (the vercel.json schema's `maxLength`).
45
+ * Must stay ≤ 256 characters (the vercel.json schema's `maxLength`), which is
46
+ * why the empty and redeploy guards share one clause.
38
47
  */
39
48
  export declare const VERCEL_IGNORE_COMMAND: string;
40
49
  export declare function scaffoldNextjs(inputs: ScaffoldInputs, opts?: ScaffolderOptions): ScaffoldFile[];
@@ -5427,13 +5427,22 @@ export default defineConfig({
5427
5427
  * `HEAD^` there, which is fine for a long-deployed `main` but wrong for a new
5428
5428
  * scaffold: a repo with history is linked to Vercel later, and its first
5429
5429
  * deploy must not be skipped because the newest commit was a STATUS.md edit.
5430
+ * - A base EQUAL to the commit being deployed BUILDS. That is a Redeploy of
5431
+ * the live commit, and the usual reason to click Redeploy is to pick up a
5432
+ * changed env var — the diff is empty by definition, so without this guard
5433
+ * the new value never reaches production and only a CANCELED badge says so
5434
+ * (`org-hq` measured it 2026-09-23; `audit-engine` filed it here 2026-09-24).
5435
+ * A push never deploys the SHA that is already live, so pushes are unaffected.
5436
+ * Not covered, because no diff can see an env var: redeploying a NEWER,
5437
+ * canceled, prose-only commit. Redeploy the READY deployment instead.
5430
5438
  * - A base missing from Vercel's shallow clone fails `cat-file` → builds.
5431
5439
  *
5432
- * Must stay ≤ 256 characters (the vercel.json schema's `maxLength`).
5440
+ * Must stay ≤ 256 characters (the vercel.json schema's `maxLength`), which is
5441
+ * why the empty and redeploy guards share one clause.
5433
5442
  */
5434
5443
  export const VERCEL_IGNORE_COMMAND = [
5435
5444
  'B="$VERCEL_GIT_PREVIOUS_SHA"',
5436
- '[ -n "$B" ] || exit 1',
5445
+ '[ -n "$B" ] && [ "$B" != "$VERCEL_GIT_COMMIT_SHA" ] || exit 1',
5437
5446
  'git cat-file -e "$B^{commit}" 2>/dev/null || exit 1',
5438
5447
  `git diff --quiet "$B" HEAD -- . ':(exclude)*.md' ':(exclude)docs/' ':(exclude)drafts/' || exit 1`,
5439
5448
  "exit 0",
@@ -1,6 +1,6 @@
1
1
  import type { ProjectType, ScaffoldInputs } from "./index.js";
2
2
  import { type SubstitutionOptions } from "./substitute.js";
3
- export type StandardKey = "skill-vault" | "portable-stack" | "fathom" | "uptime-kuma" | "sentry" | "service-hosting" | "neon-careful" | "temp-files" | "agent-coordination" | "seo-baseline" | "email-service" | "moderation" | "card-path-bot-protection" | "text-size" | "test-count";
3
+ export type StandardKey = "skill-vault" | "portable-stack" | "fathom" | "uptime-kuma" | "sentry" | "service-hosting" | "neon-careful" | "temp-files" | "agent-coordination" | "seo-baseline" | "email-service" | "moderation" | "card-path-bot-protection" | "text-size" | "language" | "test-count";
4
4
  export type StandardDecisionState = "inserted-inline" | "skipped-not-applicable"
5
5
  /**
6
6
  * Applicable, rendered — and then removed again, because the audience gate
package/dist/standards.js CHANGED
@@ -29,6 +29,9 @@
29
29
  // the two-layer UGC-moderation baseline per [[moderation-system]]
30
30
  // (requested by event-engine on the bulletin 2026-07-08)
31
31
  // - text-size — always (Z2W standing org rule)
32
+ // - language — always (Kerry, 2026-09-30): write in American
33
+ // English (en-US) unless the owner asks otherwise;
34
+ // requested by financial-engine on the bulletin
32
35
  // - test-count — always (Z2W standing org rule, 2026-06-20): every
33
36
  // session reports its test count at session end in a
34
37
  // stable greppable `Tests: {n} passing` line so the
@@ -59,6 +62,7 @@ const STANDARD_ORDER = [
59
62
  "moderation",
60
63
  "card-path-bot-protection",
61
64
  "text-size",
65
+ "language",
62
66
  "test-count",
63
67
  ];
64
68
  const TITLES = {
@@ -76,6 +80,7 @@ const TITLES = {
76
80
  moderation: "Moderation baseline (user-generated content)",
77
81
  "card-path-bot-protection": "Card-path bot protection (accepts credit cards)",
78
82
  "text-size": "Text size (readability)",
83
+ language: "Language (en-US)",
79
84
  "test-count": "Test-count reporting (session end)",
80
85
  };
81
86
  const DEPLOY_TARGETS = [
@@ -307,6 +312,12 @@ function checkCardPathBotProtection(inputs) {
307
312
  function checkTextSize() {
308
313
  return { applies: true, reason: "Z2W standing org rule — applies to every project" };
309
314
  }
315
+ function checkLanguage() {
316
+ return {
317
+ applies: true,
318
+ reason: "Z2W standing org rule (2026-09-30) — every project writes in American English (en-US)",
319
+ };
320
+ }
310
321
  function checkTestCount() {
311
322
  return {
312
323
  applies: true,
@@ -698,6 +709,13 @@ const CARD_PATH_BOT_PROTECTION_BODY = `### Card-path bot protection (accepts cre
698
709
  const TEXT_SIZE_BODY = `### Text size (always)
699
710
 
700
711
  > **Readability:** per Z2W standing org rule, all public-facing pages and documents use large, easy-to-read type. Body text 18px+ baseline; headings proportionally larger; line-height ≥ 1.5.`;
712
+ // Always-on and deliberately short: it has to be read before the first reply,
713
+ // so it lives in the auto-loaded CLAUDE.md rather than in a skill. Says "the
714
+ // project owner", not a name, because an external-audience scaffold belongs to
715
+ // someone other than Kerry.
716
+ const LANGUAGE_BODY = `### Language (always — en-US)
717
+
718
+ > **Write in American English (en-US) everywhere** — replies, docs, code comments, commit messages, emails, UI copy and bulletin entries — unless the project owner asks otherwise. For example: *installment*, *organization*, *color*, *check*, *canceled* (not *instalment*, *organisation*, *colour*, *cheque*, *cancelled*).`;
701
719
  const TEST_COUNT_BODY = `### Test-count reporting (always — at session end)
702
720
 
703
721
  > **Report your test count at session end.** Per Zero2Webmaster standing org rule (2026-06-20), every session that touches code states how many tests pass on a stable, machine-greppable line: \`Tests: {n} passing\` — use the literal word \`Tests:\`, the running total your suite reports, and the word \`passing\`. Put that line in your session-end recap AND, if this project participates in the cross-project bulletin, in the \`## Recent commits\` entry you append (e.g. **\`Tests: 534 passing\`**). The phone-first command center greps this line across every project to display a portfolio-wide tally ("we've run N tests across the portfolio") — a real sales asset, and the uniform one-line format is what makes the total cheap to compute. If this project has no test suite yet, say so explicitly with \`Tests: none yet\` rather than omitting the line.
@@ -724,6 +742,7 @@ const BODIES = {
724
742
  moderation: MODERATION_BODY,
725
743
  "card-path-bot-protection": CARD_PATH_BOT_PROTECTION_BODY,
726
744
  "text-size": TEXT_SIZE_BODY,
745
+ language: LANGUAGE_BODY,
727
746
  "test-count": TEST_COUNT_BODY,
728
747
  };
729
748
  const APPLICABILITY = {
@@ -741,6 +760,7 @@ const APPLICABILITY = {
741
760
  moderation: checkModeration,
742
761
  "card-path-bot-protection": checkCardPathBotProtection,
743
762
  "text-size": checkTextSize,
763
+ language: checkLanguage,
744
764
  "test-count": checkTestCount,
745
765
  };
746
766
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.",
5
5
  "author": {
6
6
  "name": "Dr. Kerry Kriger",