@zero2webmaster/starter-kit 0.51.0 → 0.51.1

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.51.0 | **Framework:** 2.19.0
3
+ **Version:** 0.51.1 | **Framework:** 2.19.0
4
4
 
5
5
  > Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
6
6
 
@@ -84,7 +84,8 @@ The Claude Code skill at `~/.claude/skills/instantiate-z2w-project/SKILL.md` and
84
84
 
85
85
  ## Status
86
86
 
87
- - **v0.51.0 (current)** gets ready for the portfolio folder `~/Desktop/Zero2Webmaster/AI/Cursor Projects/` to be renamed `~/Desktop/Zero2Webmaster/AI/Projects/`. It looks for the Templates folder at `AI/Projects/agent-framework/` first, then at `AI/Cursor Projects/agent-framework/`, then at the old `AI/Templates/`. The portfolio sweeps and the bulletin lookups follow the rename too, and never count the same folder twice once the old name is a symlink.
87
+ - **v0.51.1 (current)** stops outside customers' scaffolds from naming us in four `nextjs` database comments, drops comment lines that only pointed at a private skill, and credits only `@zero2webmaster/starter-kit` in the footer. Its coordination pointer names the bulletin clone's new `AI/Projects` path.
88
+ - **v0.51.0** gets ready for the portfolio folder `~/Desktop/Zero2Webmaster/AI/Cursor Projects/` to be renamed `~/Desktop/Zero2Webmaster/AI/Projects/`. It looks for the Templates folder at `AI/Projects/agent-framework/` first, then at `AI/Cursor Projects/agent-framework/`, then at the old `AI/Templates/`. The portfolio sweeps and the bulletin lookups follow the rename too, and never count the same folder twice once the old name is a symlink.
88
89
  - **v0.50.0** looks for the Templates folder at `~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework/` first and falls back to the old `~/Desktop/Zero2Webmaster/AI/Templates/`, so the folder can move without breaking project creation. If neither folder is usable, the error names both.
89
90
  - **v0.49.0** gives the Uptime Kuma next-action the project's own keyword (it still said `"status":"ok"`), tells bulletin projects to report each new monitor to `kuma-watchdog` and to notify `audit-engine` when a project is scaffolded, and extends the American English rule to internal labels such as form and database names.
90
91
  - **v0.48.1** fixes the Python install line in `python-service` scaffolds (it failed in zsh), tells you to create Neon projects with autoscaling compute, and keeps the Project Registry's older `status` column from calling a retired project Active.
@@ -152,4 +153,4 @@ Inquiries: kerry@zero2webmaster.com.
152
153
  ---
153
154
 
154
155
  *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.*
155
- *Version: 0.51.0 | Last Updated: 2026-11-02*
156
+ *Version: 0.51.1 | Last Updated: 2026-11-02*
package/dist/audience.js CHANGED
@@ -357,5 +357,13 @@ export function applyGateToDecisions(decisions, dropped) {
357
357
  export function stripVaultPointers(content, audience) {
358
358
  if (audience !== "external")
359
359
  return content;
360
- return content.replace(/\[\[([a-z0-9][a-z0-9-]*)\]\]/g, "$1");
360
+ return (content
361
+ // v0.51.1 (`project-creator`, 2026-11-01): a comment line that is NOTHING
362
+ // BUT a pointer ("Copy-paste recipe + …: [[skill]] §0", "Full standard:
363
+ // [[skill]] §8") says nothing once the link is gone, and leaves a private
364
+ // skill's name in the customer's `.env.example`. Drop the whole line.
365
+ .replace(/^[ \t]*(?:#|\/\/|\*)[ \t]*(?:Copy-paste recipe|Full standard)\b[^\n]*\[\[[a-z0-9-]+\]\][^\n]*\n/gm, "")
366
+ // The footer credited the private skill as well as the public tool.
367
+ .replace(/via \[\[instantiate-z2w-project\]\](?: v\d+)? — mirrored by /g, "via ")
368
+ .replace(/\[\[([a-z0-9][a-z0-9-]*)\]\]/g, "$1"));
361
369
  }
@@ -4953,7 +4953,7 @@ function withEmailDeps(pkgJson) {
4953
4953
  const DB_POOL_ERRORS_TEMPLATE = `// Keeping a dead IDLE connection from killing the process.
4954
4954
  //
4955
4955
  // ─────────────────────────────────────────────────────────────────────────────
4956
- // 🔴 THE FAILURE THIS EXISTS FOR — measured across the Z2W portfolio, not argued
4956
+ // 🔴 THE FAILURE THIS EXISTS FOR — measured across real production apps, not argued
4957
4957
  // ─────────────────────────────────────────────────────────────────────────────
4958
4958
  //
4959
4959
  // \`pool\` in \`db/client.ts\` is module-cached and long-lived. An idle pooled
@@ -4998,7 +4998,7 @@ const DB_POOL_ERRORS_TEMPLATE = `// Keeping a dead IDLE connection from killing
4998
4998
  // checked-out is then the NORMAL state of the pool rather than an edge case.
4999
4999
  //
5000
5000
  // Both listeners are attached below and neither is redundant. This is not
5001
- // theoretical: a Z2W project added the pool-level listener alone and watched its
5001
+ // theoretical: a production app added the pool-level listener alone and watched its
5002
5002
  // probe process die with the identical stack.
5003
5003
  //
5004
5004
  // Recovery needs nothing from you: the pool has already discarded the dead
@@ -5026,7 +5026,7 @@ export type PoolErrorSource = {
5026
5026
  * \`config.connectionString\` off the error it raises on a connection failure, so
5027
5027
  * a naive \`console.error(err)\` on a dead socket prints
5028
5028
  * \`postgresql://owner:THE-REAL-PASSWORD@host/db\` into the terminal, the
5029
- * scrollback, and any agent transcript reading it. A Z2W project leaked a live
5029
+ * scrollback, and any agent transcript reading it. A production app leaked a live
5030
5030
  * password exactly this way and had to rotate the role ([[terminal-secret-hygiene]]).
5031
5031
  *
5032
5032
  * A pool 'error' listener receives PRECISELY that class of error object, which
@@ -5364,7 +5364,7 @@ describe("the crash this module prevents is real", () => {
5364
5364
  });
5365
5365
 
5366
5366
  describe("channel 2 — a CHECKED-OUT client, which channel 1 does not cover", () => {
5367
- // The half \`pool.on('error')\` alone leaves open. A Z2W project shipped the
5367
+ // The half \`pool.on('error')\` alone leaves open. A production app shipped the
5368
5368
  // pool-level listener by itself and watched its probe die with the identical
5369
5369
  // stack, so this is a regression test for a real production failure.
5370
5370
  it("an unguarded CLIENT re-throws even when the POOL is guarded", () => {
@@ -79,7 +79,7 @@ export interface StandardsResolution {
79
79
  */
80
80
  export declare function fathomEnvVarFor(projectType: ProjectType): string;
81
81
  export declare const KUMA_WATCHDOG_REPORT = "> \uD83D\uDD34 **After creating any Uptime Kuma monitor** (HTTP keyword or Push), **report it to `kuma-watchdog` in the same session:** a `[\u2192 kuma-watchdog]` item in `projects/kuma-watchdog.md` \u00A7Open questions plus a `## \uD83D\uDCE5 Needs attention` line, carrying `monitor_id,project_slug,mapping_basis,monitor_name,note` (`mapping_basis` is `health_url` or `push_owner`; `note` is the URL and keyword, or the job and its interval). Format and the CRLF trap: [[uptime-kuma-monitor]] \u00A73b. A monitor nobody reported still records heartbeats, but its uptime cannot be credited to this project.";
82
- export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.37";
82
+ export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.38";
83
83
  /**
84
84
  * The canonical **Capture Learnings** block, emitted VERBATIM into every
85
85
  * scaffolded `CLAUDE.md`.
package/dist/standards.js CHANGED
@@ -491,7 +491,7 @@ const NEON_CAREFUL_BODY = `### Neon-careful (Neon Postgres)
491
491
  // Two consecutive handoffs compared this constant against the DOCUMENT version
492
492
  // and reported a "15-version gap" that did not exist — the real gap was 4. Read
493
493
  // the `<!-- ... canonical-block vX.Y.Z -->` comment, never the `**Version:**` line.
494
- export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.37";
494
+ export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.38";
495
495
  /**
496
496
  * The canonical **Capture Learnings** block, emitted VERBATIM into every
497
497
  * scaffolded `CLAUDE.md`.
@@ -599,7 +599,7 @@ This project participates in the Z2W cross-project coordination bulletin.
599
599
 
600
600
  **At session start:**
601
601
 
602
- 1. **Get a PRIVATE workspace — never do session work in the shared clone (v0.1.17).** 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\`** (Kerry could not open his own protocol repo, because Finder hides dotfolders). Otherwise \`git clone git@github.com:zero2webmaster/z2w-agent-coordination.git ~/.cache/z2w-coordination\` (see §8.3). **A dirty shared clone is NOT a reason to make your own clone (v0.1.35, §8.3):** a hand-made clone has no hooks, so every commit gate is silently absent there. Take the workspace from the shared clone anyway; uncommitted edits in it are another session's and are never in your index. 🔴 **NO \`--depth 1\` — that flag was in this step until 2026-08-29 and it made 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 read as *"22 commits ahead of origin"* — understood as ~12 projects' bulletin updates one bad \`git add -A\` from being lost — and **all 22 were already on origin.** It costs ~2 s to clone this repo's ~5,000 commits in full; the depth saved nothing worth that. **If you are in a clone that 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, see below). Then, from that clone, take a workspace of your own — \`WS="$(bash scripts/agent-workspace.sh {{slug}})"\` and \`cd "$WS"\`. **Do every read and write of this session inside \`$WS\`**, and publish at session end with \`bash scripts/publish-from-workspace.sh "{{slug}}: session {id} — {one-line summary}"\` (it commits, prints \`git show --numstat HEAD\` before publishing, then pushes \`HEAD:main\`, rebasing and retrying if another agent pushed first). **Why:** two shared working trees were serving ~40 agents, and one shared git index produced **seven concurrent-write sweeps in six weeks** — an agent's work published inside another project's commit, or silently reverted, with the victim's commit sometimes gone entirely. Staging narrowly does not prevent it and neither does intending to exclude a file (occurrence #7 said so in its own commit message and swept the file anyway); a worktree has its own index, so the failure class is gone rather than mitigated. **The index is the ONLY private thing (v0.1.35).** Config, remotes, refs, hooks and the stash are shared with the clone and every other worktree: \`git remote remove origin\` run inside a worktree removed the remote for everyone. A worktree is a private staging area, not a disposable sandbox. Costs ~0.1 s and ~8 MB, shares the object store, no re-download. \`agent-workspace.sh\` also runs \`set-bulletin-commit-identity.sh\` for you (bot identity, set locally per clone, so bulletin commits don't skew Kerry's personal GitHub contribution graph) and arms a \`pre-commit\` guard that makes the shared tree **refuse** commits — if you see that refusal, follow the three commands it prints. **Inside \`$WS\`, \`git add -A\` is safe** (your index contains nothing but your own edits), which is what \`publish-from-workspace.sh\` uses.
602
+ 1. **Get a PRIVATE workspace — never do session work in the shared clone (v0.1.17).** If a clone exists at \`~/.cache/z2w-coordination\` OR at \`~/Desktop/Zero2Webmaster/AI/Projects/z2w-agent-coordination/\` (named \`AI/Cursor Projects/\` before the 2026-11 rename; the old name is a symlink to the new), \`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\`** (Kerry could not open his own protocol repo, because Finder hides dotfolders). Otherwise \`git clone git@github.com:zero2webmaster/z2w-agent-coordination.git ~/.cache/z2w-coordination\` (see §8.3). **A dirty shared clone is NOT a reason to make your own clone (v0.1.35, §8.3):** a hand-made clone has no hooks, so every commit gate is silently absent there. Take the workspace from the shared clone anyway; uncommitted edits in it are another session's and are never in your index. 🔴 **NO \`--depth 1\` — that flag was in this step until 2026-08-29 and it made 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 read as *"22 commits ahead of origin"* — understood as ~12 projects' bulletin updates one bad \`git add -A\` from being lost — and **all 22 were already on origin.** It costs ~2 s to clone this repo's ~5,000 commits in full; the depth saved nothing worth that. **If you are in a clone that 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, see below). Then, from that clone, take a workspace of your own — \`WS="$(bash scripts/agent-workspace.sh {{slug}})"\` and \`cd "$WS"\`. **Do every read and write of this session inside \`$WS\`**, and publish at session end with \`bash scripts/publish-from-workspace.sh "{{slug}}: session {id} — {one-line summary}"\` (it commits, prints \`git show --numstat HEAD\` before publishing, then pushes \`HEAD:main\`, rebasing and retrying if another agent pushed first). **Why:** two shared working trees were serving ~40 agents, and one shared git index produced **seven concurrent-write sweeps in six weeks** — an agent's work published inside another project's commit, or silently reverted, with the victim's commit sometimes gone entirely. Staging narrowly does not prevent it and neither does intending to exclude a file (occurrence #7 said so in its own commit message and swept the file anyway); a worktree has its own index, so the failure class is gone rather than mitigated. **The index is the ONLY private thing (v0.1.35).** Config, remotes, refs, hooks and the stash are shared with the clone and every other worktree: \`git remote remove origin\` run inside a worktree removed the remote for everyone. A worktree is a private staging area, not a disposable sandbox. Costs ~0.1 s and ~8 MB, shares the object store, no re-download. \`agent-workspace.sh\` also runs \`set-bulletin-commit-identity.sh\` for you (bot identity, set locally per clone, so bulletin commits don't skew Kerry's personal GitHub contribution graph) and arms a \`pre-commit\` guard that makes the shared tree **refuse** commits — if you see that refusal, follow the three commands it prints. **Inside \`$WS\`, \`git add -A\` is safe** (your index contains nothing but your own edits), which is what \`publish-from-workspace.sh\` uses.
603
603
 
604
604
  1b. **🔴 READ THE LIVE BLOCK, AND PREFER IT OVER THE COPY YOU ARE READING NOW (v0.1.23).** Step 1 already put you in the bulletin clone, so this costs one command and no network call:
605
605
  \`\`\`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "description": "Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.",
5
5
  "author": {
6
6
  "name": "Dr. Kerry Kriger",