@zero2webmaster/starter-kit 0.27.0 → 0.29.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.27.0 | **Framework:** 2.19.0
3
+ **Version:** 0.29.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.27.0 | Last Updated: 2026-08-25*
138
+ *Version: 0.29.0 | Last Updated: 2026-09-08*
@@ -4,15 +4,26 @@ export declare const INVENTORY_TABLE = "projects";
4
4
  /** The conflict key — the `projects/{slug}.md` filename the cron keys on. */
5
5
  export declare const INVENTORY_CONFLICT_KEY = "slug";
6
6
  /**
7
- * The 8 projects Kerry ruled `ecosystem_role = 'ecosystem'` on 2026-08-02, when
8
- * he CLOSED the set. Mirrored here from the registry's
7
+ * The projects holding `ecosystem_role = 'ecosystem'`. Kerry ruled and CLOSED
8
+ * this set at 8 on 2026-08-02. Mirrored here from the registry's
9
9
  * `projects_ecosystem_set_closed_chk` so this CLI can assert it never scaffolds
10
- * a 9th member; the database is the enforcement point, this is the local copy.
10
+ * an unlisted member; the database is the enforcement point, this is the local
11
+ * copy. **Both must move together** — see `ecosystemRoleFor` for why a stale
12
+ * copy here silently DEMOTES a real `ecosystem` row rather than erroring.
11
13
  *
12
14
  * An `ecosystem` project's subject matter IS the other projects — it has no
13
15
  * purpose outside the portfolio. Everything else, including the shared
14
16
  * capability engines Kerry explicitly ruled on (`z2w-ai-engine`,
15
17
  * `crawl-engine`, `backup-engine`, `dashboard-engine`), is `domain`.
18
+ *
19
+ * **`z2w-templates` added 2026-09-08 as the 9th, and that is an APPLICATION of
20
+ * Kerry's rule rather than a reopening of his ruling.** Its registry row (id
21
+ * 104) was not created until 2026-08-29, so it could not have been classified
22
+ * when he closed the set three weeks earlier — it was the only one of 100 rows
23
+ * left `NULL`. It holds the canonical AGENTS/Resources bodies that every other
24
+ * project is scaffolded FROM, which is the criterion above stated almost
25
+ * literally, and its authoring sibling `cursor-project-templates` was already
26
+ * in the set. Reversible in one `UPDATE` plus this line if Kerry disagrees.
16
27
  */
17
28
  export declare const ECOSYSTEM_PROJECTS: readonly string[];
18
29
  /**
package/dist/inventory.js CHANGED
@@ -34,15 +34,26 @@ export const INVENTORY_TABLE = "projects";
34
34
  /** The conflict key — the `projects/{slug}.md` filename the cron keys on. */
35
35
  export const INVENTORY_CONFLICT_KEY = "slug";
36
36
  /**
37
- * The 8 projects Kerry ruled `ecosystem_role = 'ecosystem'` on 2026-08-02, when
38
- * he CLOSED the set. Mirrored here from the registry's
37
+ * The projects holding `ecosystem_role = 'ecosystem'`. Kerry ruled and CLOSED
38
+ * this set at 8 on 2026-08-02. Mirrored here from the registry's
39
39
  * `projects_ecosystem_set_closed_chk` so this CLI can assert it never scaffolds
40
- * a 9th member; the database is the enforcement point, this is the local copy.
40
+ * an unlisted member; the database is the enforcement point, this is the local
41
+ * copy. **Both must move together** — see `ecosystemRoleFor` for why a stale
42
+ * copy here silently DEMOTES a real `ecosystem` row rather than erroring.
41
43
  *
42
44
  * An `ecosystem` project's subject matter IS the other projects — it has no
43
45
  * purpose outside the portfolio. Everything else, including the shared
44
46
  * capability engines Kerry explicitly ruled on (`z2w-ai-engine`,
45
47
  * `crawl-engine`, `backup-engine`, `dashboard-engine`), is `domain`.
48
+ *
49
+ * **`z2w-templates` added 2026-09-08 as the 9th, and that is an APPLICATION of
50
+ * Kerry's rule rather than a reopening of his ruling.** Its registry row (id
51
+ * 104) was not created until 2026-08-29, so it could not have been classified
52
+ * when he closed the set three weeks earlier — it was the only one of 100 rows
53
+ * left `NULL`. It holds the canonical AGENTS/Resources bodies that every other
54
+ * project is scaffolded FROM, which is the criterion above stated almost
55
+ * literally, and its authoring sibling `cursor-project-templates` was already
56
+ * in the set. Reversible in one `UPDATE` plus this line if Kerry disagrees.
46
57
  */
47
58
  export const ECOSYSTEM_PROJECTS = [
48
59
  "audit-engine",
@@ -53,6 +64,7 @@ export const ECOSYSTEM_PROJECTS = [
53
64
  "z2w-observability-bridge",
54
65
  "z2w-skill-vault",
55
66
  "z2w-starter-kit",
67
+ "z2w-templates",
56
68
  ];
57
69
  /**
58
70
  * The `ecosystem_role` a given slug must hold, derived from the closed set.
@@ -78,7 +78,7 @@ export interface StandardsResolution {
78
78
  * family — the safe default for anything else with `has_web_ui=true`.
79
79
  */
80
80
  export declare function fathomEnvVarFor(projectType: ProjectType): string;
81
- export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.27";
81
+ export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.31";
82
82
  /**
83
83
  * The canonical **Capture Learnings** block, emitted VERBATIM into every
84
84
  * scaffolded `CLAUDE.md`.
package/dist/standards.js CHANGED
@@ -475,7 +475,7 @@ const NEON_CAREFUL_BODY = `### Neon-careful (Neon Postgres)
475
475
  // Two consecutive handoffs compared this constant against the DOCUMENT version
476
476
  // and reported a "15-version gap" that did not exist — the real gap was 4. Read
477
477
  // the `<!-- ... canonical-block vX.Y.Z -->` comment, never the `**Version:**` line.
478
- export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.27";
478
+ export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.31";
479
479
  /**
480
480
  * The canonical **Capture Learnings** block, emitted VERBATIM into every
481
481
  * scaffolded `CLAUDE.md`.
@@ -583,7 +583,7 @@ This project participates in the Z2W cross-project coordination bulletin.
583
583
 
584
584
  **At session start:**
585
585
 
586
- 1. **Get a PRIVATE workspace — never do session work in the shared clone.** If a clone exists at \`~/.cache/z2w-coordination\` OR at \`~/Desktop/Zero2Webmaster/AI/Cursor Projects/z2w-agent-coordination/\`, \`cd\` there; otherwise \`git clone --depth 1 git@github.com:zero2webmaster/z2w-agent-coordination.git ~/.cache/z2w-coordination\`. Then take a workspace of your own — \`WS="$(bash scripts/agent-workspace.sh {{slug}})"\` then \`cd "$WS"\` — and do **every read and write of this session inside \`$WS\`**. Publish at session end with \`bash scripts/publish-from-workspace.sh "{{slug}}: {summary}"\` (it commits, prints \`git show --numstat HEAD\`, then pushes \`HEAD:main\`, rebasing and retrying if another agent pushed first). **Why:** two shared working trees serving ~40 agents produced **seven concurrent-write sweeps in six weeks** — work published inside another project's commit, or silently reverted. Staging narrowly does not prevent it; a linked worktree has its own index, so the failure class is gone rather than mitigated. Costs ~0.1 s and ~8 MB. \`agent-workspace.sh\` also sets the bot commit identity and arms a \`pre-commit\` guard that makes the shared tree **refuse** commits — if you see that refusal, follow the commands it prints.
586
+ 1. **Get a PRIVATE workspace — never do session work in the shared clone.** If a clone exists at \`~/.cache/z2w-coordination\` OR at \`~/Desktop/Zero2Webmaster/AI/Cursor Projects/z2w-agent-coordination/\`, \`cd\` there — **since 2026-08-29 those are ONE clone: the Desktop path is a symlink to \`~/.cache/z2w-coordination\`, so \`pwd -P\` from either resolves to the same \`.git\`.** Otherwise \`git clone git@github.com:zero2webmaster/z2w-agent-coordination.git ~/.cache/z2w-coordination\`. 🔴 **NO \`--depth 1\` — that flag makes git LIE about what is published (v0.1.31).** A shallow clone keeps no history, so git cannot compute that its commits are contained in \`origin/main\` and **reports already-pushed commits as unpushed**; the shared clone once read as *"22 commits ahead of origin"* when all 22 were already on origin. Cloning this repo in full costs ~2 s. **If your clone is already shallow, \`git fetch --unshallow origin\` fixes it** — objects only, no working file, branch or commit is touched (\`agent-workspace.sh\` now does this for you). Then take a workspace of your own — \`WS="$(bash scripts/agent-workspace.sh {{slug}})"\` then \`cd "$WS"\` — and do **every read and write of this session inside \`$WS\`**. Publish at session end with \`bash scripts/publish-from-workspace.sh "{{slug}}: {summary}"\` (it commits, prints \`git show --numstat HEAD\`, then pushes \`HEAD:main\`, rebasing and retrying if another agent pushed first). **Why:** two shared working trees serving ~40 agents produced **seven concurrent-write sweeps in six weeks** — work published inside another project's commit, or silently reverted. Staging narrowly does not prevent it; a linked worktree has its own index, so the failure class is gone rather than mitigated. Costs ~0.1 s and ~8 MB. \`agent-workspace.sh\` also sets the bot commit identity and arms a \`pre-commit\` guard that makes the shared tree **refuse** commits — if you see that refusal, follow the commands it prints.
587
587
 
588
588
  1b. **Read the LIVE canonical block, and prefer it over this file.** You are already inside the clone from step 1, so this is one command and needs no network:
589
589
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.27.0",
3
+ "version": "0.29.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",
@@ -300,12 +300,33 @@ export function parseSection(section, knownSlugs = new Set()) {
300
300
  if (statusLine) {
301
301
  result.statusDeclared = true;
302
302
  // Strip the label — tolerating `**Live status:**` and `**Live status**:` — then strip
303
- // any emphasis the agent wrapped the VALUE in before reading the first word. The old
304
- // regex allowed a backtick here and nothing else, so every project that bolded its
305
- // value ("**LIVE IN PRODUCTION since …**") parsed as null and was silently skipped.
303
+ // any DECORATION the agent put in front of the VALUE before reading the first word.
304
+ //
305
+ // This has now been loosened TWICE for the same class, which is why the rule below is
306
+ // stated as a rule rather than as a list of characters:
307
+ // 2026-08-02 — the regex allowed a backtick and nothing else, so every project that
308
+ // bolded its value ("**LIVE IN PRODUCTION since …**") parsed as null
309
+ // and was silently skipped. That is how email-engine's row said
310
+ // `Scaffolded` for ten days while its bulletin said LIVE IN PRODUCTION.
311
+ // 2026-08-29 — an emoji badge in front of the value ("🟢 **Live**") is that same
312
+ // class one step further, and it cost more than a stale row: the
313
+ // `registry-reconciler.yml` cron runs `--strict`, which exits non-zero
314
+ // on any unreadable line, so two consecutive scheduled runs failed and
315
+ // the workflow's `if: success()` Kuma heartbeat went dark. A one-line
316
+ // formatting choice read as "your scheduled job is dead."
317
+ // (Filed by `z2w-agent-coordination`; reproduced here by execution
318
+ // against the live bulletin before the change and after it.)
319
+ //
320
+ // 🔴 THE RULE: strip the leading run of anything that is NOT a letter, a digit, or an
321
+ // opening paren. That is EMPHASIS-class, and loosening emphasis must never loosen
322
+ // VOCABULARY — a value opening on prose ("**Not yet deployed**") still reads "Not",
323
+ // still fails `VALID_STATUS`, and still surfaces as declared-but-unreadable. `(` is
324
+ // kept out of the strip set so a qualifier is never eaten. Enumerating decoration
325
+ // characters is what failed twice; a negated class cannot be outrun by the next
326
+ // badge someone invents. [[zero-is-not-a-pass]]
306
327
  const value = statusLine[0]
307
328
  .replace(/^.*?\*\*Live status\*{0,2}\s*:?\s*\*{0,2}\s*:?\s*/i, "")
308
- .replace(/^[`*_"'\s]+/, "");
329
+ .replace(/^[^\p{L}\p{N}(]+/u, "");
309
330
  const word = value.match(/^[A-Za-z]+/);
310
331
  if (word) {
311
332
  const s = word[0].charAt(0).toUpperCase() + word[0].slice(1).toLowerCase();