@zero2webmaster/starter-kit 0.50.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.50.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
 
@@ -70,9 +70,9 @@ For non-WP web apps (`nextjs`, `cf-pages` with `hasWebUi`), the CLI emits the fu
70
70
  The CLI resolves canonical template content (AGENTS bodies + Resources/) from the **local Templates folder only**:
71
71
 
72
72
  1. **`--templates-path <path>`** if set — strict use of that exact location.
73
- 2. **Local Templates folder** at `~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework/` (where it lives after the 2026-11 move).
74
- 3. **The old location**, `~/Desktop/Zero2Webmaster/AI/Templates/`, kept as a fallback. The first folder that holds `Resources/` plus both AGENTS bodies wins, so an empty or half-copied new folder never hides a complete old one.
75
- 4. Otherwise, hard fail with an error that names both locations and the `--templates-path <path>` hint.
73
+ 2. **Local Templates folder** at `~/Desktop/Zero2Webmaster/AI/Projects/agent-framework/` (where it lives once the portfolio folder is renamed from `Cursor Projects` to `Projects`).
74
+ 3. **The two older locations**, `~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework/` and then `~/Desktop/Zero2Webmaster/AI/Templates/`, kept as fallbacks. The first folder that holds `Resources/` plus both AGENTS bodies wins, so an empty or half-copied new folder never hides a complete old one.
75
+ 4. Otherwise, hard fail with an error that names all three locations and the `--templates-path <path>` hint.
76
76
 
77
77
  The CLI reads the folder fresh on every run (nothing is cached or embedded), so an upstream Templates edit is picked up the next time you run `init`.
78
78
 
@@ -84,7 +84,9 @@ The Claude Code skill at `~/.claude/skills/instantiate-z2w-project/SKILL.md` and
84
84
 
85
85
  ## Status
86
86
 
87
- - **v0.50.0 (current)** 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.
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.
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.
88
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.
89
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.
90
92
  - **v0.48.0** stops writing the Airtable inventory mirror by default; the Project Registry in Neon is the only record. Pass `--airtable-row` to write the mirror anyway.
@@ -151,4 +153,4 @@ Inquiries: kerry@zero2webmaster.com.
151
153
  ---
152
154
 
153
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.*
154
- *Version: 0.50.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
  }
package/dist/cli.js CHANGED
@@ -198,7 +198,7 @@ program
198
198
  .option("--show-contents", "in --dry-run mode, also print every file's full content")
199
199
  .option("--input <source>", "load ScaffoldInputs JSON from a file path, or '-' for stdin (bypasses brief/wizard)")
200
200
  .option("--target-path <path>", "absolute path to scaffold into (defaults to inputs.targetPath)")
201
- .option("--templates-path <path>", "absolute path to the Templates folder (default: ~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework, then ~/Desktop/Zero2Webmaster/AI/Templates)")
201
+ .option("--templates-path <path>", "absolute path to the Templates folder (default: ~/Desktop/Zero2Webmaster/AI/Projects/agent-framework, then ~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework, then ~/Desktop/Zero2Webmaster/AI/Templates)")
202
202
  .option("--promote-standards", "run the (a) inline / (b) promote-into-Templates dialog per applicable standard")
203
203
  .option("--allow-non-empty", "allow writes into a non-empty target directory (default: refuse)")
204
204
  .option("--no-color", "disable colored output (default: auto-detect TTY)")
@@ -57,7 +57,9 @@ const SPECS = {
57
57
  relPath: "AGENT_PROTOCOL.md",
58
58
  localCandidates: () => [
59
59
  // Since 2026-08-29 these are ONE clone (the Desktop path is a symlink),
60
- // but both spellings are kept so a machine that predates that still works.
60
+ // but every spelling is kept so a machine that predates that still works.
61
+ // AI/Projects is the portfolio folder's name after ROADMAP Step 59.
62
+ join(homedir(), "Desktop/Zero2Webmaster/AI/Projects/z2w-agent-coordination/AGENT_PROTOCOL.md"),
61
63
  join(homedir(), "Desktop/Zero2Webmaster/AI/Cursor Projects/z2w-agent-coordination/AGENT_PROTOCOL.md"),
62
64
  join(homedir(), ".cache/z2w-coordination/AGENT_PROTOCOL.md"),
63
65
  ],
@@ -68,8 +70,9 @@ const SPECS = {
68
70
  repo: "agent-framework",
69
71
  relPath: "Resources/CAPTURE_LEARNINGS_BLOCK.md",
70
72
  localCandidates: () => [
71
- // New location first (the folder moves in 2026-11), legacy kept as a
72
- // fallback so the byte-diff test does not quietly start skipping.
73
+ // Newest location first (AI/Projects after ROADMAP Step 59), older ones
74
+ // kept as fallbacks so the byte-diff test does not quietly start skipping.
75
+ join(homedir(), "Desktop/Zero2Webmaster/AI/Projects/agent-framework/Resources/CAPTURE_LEARNINGS_BLOCK.md"),
73
76
  join(homedir(), "Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework/Resources/CAPTURE_LEARNINGS_BLOCK.md"),
74
77
  join(homedir(), "Desktop/Zero2Webmaster/AI/Templates/Resources/CAPTURE_LEARNINGS_BLOCK.md"),
75
78
  ],
package/dist/index.d.ts CHANGED
@@ -344,7 +344,7 @@ export interface ScaffoldOptions {
344
344
  date?: string;
345
345
  /**
346
346
  * Override the canonical Templates folder location. Defaults to the standard
347
- * local resolution (`~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework/`, falling back to `AI/Templates/`). A server
347
+ * local resolution (`~/Desktop/Zero2Webmaster/AI/Projects/agent-framework/`, falling back to `AI/Cursor Projects/agent-framework/` and then `AI/Templates/`). A server
348
348
  * consumer bundles/mounts Templates and points this at it — the folder is
349
349
  * read server-side and never delivered to the client.
350
350
  */
@@ -1,5 +1,13 @@
1
1
  /** Top-level folders that hold Z2W project repos, in scan order. */
2
2
  export declare function portfolioRoots(env?: NodeJS.ProcessEnv): string[];
3
+ /**
4
+ * The Zero2Webmaster root across the `AI/Cursor Projects` -> `AI/Projects`
5
+ * rename. `AI/Projects` when it exists; `AI/Cursor Projects` as well only when
6
+ * it is a SEPARATE real folder (not the symlink the rename leaves behind); and
7
+ * `AI/Projects` alone when neither exists, so the absent root is reported under
8
+ * its current name rather than the retired one.
9
+ */
10
+ export declare function zero2webmasterRoots(desktop: string): string[];
3
11
  export interface PortfolioRepo {
4
12
  /** The path as found under its root (what a caller should pass on). */
5
13
  path: string;
package/dist/portfolio.js CHANGED
@@ -13,8 +13,13 @@
13
13
  //
14
14
  // `z2w-agent-coordination` hit the same thing on 2026-09-18 and fixed its drift
15
15
  // sweep with this same three-root list (`scripts/check-fingerprint-drift.sh`).
16
- // Keep the two in step: when Kerry starts a new top-level Cursor Projects
17
- // folder, add it HERE and THERE. [[zero-is-not-a-pass]]
16
+ // Keep the two in step: when Kerry starts a new top-level projects folder, add
17
+ // it HERE and THERE. [[zero-is-not-a-pass]]
18
+ //
19
+ // v0.51.0 (ROADMAP Step 59): the Zero2Webmaster root is being renamed from
20
+ // `AI/Cursor Projects` to `AI/Projects`, with a symlink left at the old name.
21
+ // `zero2webmasterRoots()` picks whichever is real, so the same folder is never
22
+ // listed twice and the sweep works before, during and after the `mv`.
18
23
  import { existsSync, lstatSync, readdirSync, realpathSync, statSync } from "node:fs";
19
24
  import { homedir } from "node:os";
20
25
  import { join } from "node:path";
@@ -26,11 +31,29 @@ export function portfolioRoots(env = process.env) {
26
31
  return [env.Z2W_PORTFOLIO_DIR];
27
32
  const desktop = join(env.HOME ?? homedir(), "Desktop");
28
33
  return [
29
- join(desktop, "Zero2Webmaster", "AI", "Cursor Projects"),
34
+ ...zero2webmasterRoots(desktop),
30
35
  join(desktop, "VideoMigrator", "Cursor Projects"),
31
36
  join(desktop, "KERRY KRIGER", "Cursor Projects"),
32
37
  ];
33
38
  }
39
+ /**
40
+ * The Zero2Webmaster root across the `AI/Cursor Projects` -> `AI/Projects`
41
+ * rename. `AI/Projects` when it exists; `AI/Cursor Projects` as well only when
42
+ * it is a SEPARATE real folder (not the symlink the rename leaves behind); and
43
+ * `AI/Projects` alone when neither exists, so the absent root is reported under
44
+ * its current name rather than the retired one.
45
+ */
46
+ export function zero2webmasterRoots(desktop) {
47
+ const renamed = join(desktop, "Zero2Webmaster", "AI", "Projects");
48
+ const preRename = join(desktop, "Zero2Webmaster", "AI", "Cursor Projects");
49
+ const roots = [];
50
+ if (isDir(renamed))
51
+ roots.push(renamed);
52
+ if (isDir(preRename) && (!isDir(renamed) || realpathSync(preRename) !== realpathSync(renamed))) {
53
+ roots.push(preRename);
54
+ }
55
+ return roots.length > 0 ? roots : [renamed];
56
+ }
34
57
  /**
35
58
  * Every git repo directly under every present root, deduplicated by real path.
36
59
  * Missing roots are REPORTED in `roots`, never silently dropped — a machine
@@ -75,7 +75,7 @@ export declare function commonHandoff(inputs: ScaffoldInputs, opts: ScaffolderOp
75
75
  * CLAUDE.md is validated for leftover markers — see writer.ts).
76
76
  */
77
77
  export declare function commonProjectBrief(inputs: ScaffoldInputs, opts: ScaffolderOptions | undefined, spec: BrandPresetSpec): ScaffoldFile | null;
78
- export declare const COORDINATION_ONBOARDING_TEMPLATE = "# Coordination Onboarding \u2014 {{slug}}\n\n> **Read this first if you're a fresh agent on `{{slug}}`.** This is a short\n> pointer, not the full guide. `{{slug}}` participates in the Z2W cross-project\n> coordination bulletin, and the canonical, always-current onboarding primer lives\n> in the bulletin repo \u2014 **not here** \u2014 so there is a single source of truth.\n\n## Where the canonical primer lives\n\nRead **`COORDINATION_ONBOARDING.md`** at the root of the coordination bulletin repo\n(`zero2webmaster/z2w-agent-coordination`). There is ONE local clone, at\n`~/.cache/z2w-coordination` \u2014 the Desktop path\n`~/Desktop/Zero2Webmaster/AI/Cursor Projects/z2w-agent-coordination/` is a symlink to it.\n\n\uD83D\uDD34 **Never `git pull` or edit in that shared clone.** Take a private workspace\nfirst \u2014 from the clone, `WS=\"$(bash scripts/agent-workspace.sh {{slug}})\"` then\n`cd \"$WS\"` \u2014 and read and write only there. The `## Agent Coordination` section of\nthis project's `CLAUDE.md` has the exact steps; where it and the primer disagree,\nthe live `AGENT_PROTOCOL.md` wins.\n\nThe primer orients you to the three core Z2W systems (the coordination bulletin,\nthe Skill Vault, and the starter-kit + Templates) and walks you through joining\nthe bulletin as `{{slug}}`.\n\n## The one rule that must not drift\n\nThe `## Agent Coordination` section of this project's `CLAUDE.md` / `AGENTS.md` is\neither a short **pointer** to the live `AGENT_PROTOCOL.md` (preferred) or a\n**verbatim** copy of it carrying the current\n`<!-- z2w-agent-coordination canonical-block vX.Y.Z -->` fingerprint. **Never\nparaphrase it**, and never copy a version-frozen block from another project or\nfrom a primer snapshot \u2014 that is exactly how canonical-block drift happens.\n\n## Your bulletin file\n\nThis project's bulletin file is `projects/{{slug}}.md`. Read it in protocol order at\nsession start (`## Incidents` \u2192 `## Inbox from Kerry` \u2192 `## Open questions` \u2192\n`## Heads-ups`), then `global.md`. Rewrite `## Current focus` at session end.\n\n---\n\n*Pointer emitted at scaffold time by `@zero2webmaster/starter-kit` (mirrors\n[[instantiate-z2w-project]]). The canonical primer it links is owned by\n`z2w-agent-coordination` \u2014 improve it THERE, never fork a per-project copy.*\n";
78
+ export declare const COORDINATION_ONBOARDING_TEMPLATE = "# Coordination Onboarding \u2014 {{slug}}\n\n> **Read this first if you're a fresh agent on `{{slug}}`.** This is a short\n> pointer, not the full guide. `{{slug}}` participates in the Z2W cross-project\n> coordination bulletin, and the canonical, always-current onboarding primer lives\n> in the bulletin repo \u2014 **not here** \u2014 so there is a single source of truth.\n\n## Where the canonical primer lives\n\nRead **`COORDINATION_ONBOARDING.md`** at the root of the coordination bulletin repo\n(`zero2webmaster/z2w-agent-coordination`). There is ONE local clone, at\n`~/.cache/z2w-coordination` \u2014 the Desktop path\n`~/Desktop/Zero2Webmaster/AI/Projects/z2w-agent-coordination/` (formerly\n`AI/Cursor Projects/`) is a symlink to it.\n\n\uD83D\uDD34 **Never `git pull` or edit in that shared clone.** Take a private workspace\nfirst \u2014 from the clone, `WS=\"$(bash scripts/agent-workspace.sh {{slug}})\"` then\n`cd \"$WS\"` \u2014 and read and write only there. The `## Agent Coordination` section of\nthis project's `CLAUDE.md` has the exact steps; where it and the primer disagree,\nthe live `AGENT_PROTOCOL.md` wins.\n\nThe primer orients you to the three core Z2W systems (the coordination bulletin,\nthe Skill Vault, and the starter-kit + Templates) and walks you through joining\nthe bulletin as `{{slug}}`.\n\n## The one rule that must not drift\n\nThe `## Agent Coordination` section of this project's `CLAUDE.md` / `AGENTS.md` is\neither a short **pointer** to the live `AGENT_PROTOCOL.md` (preferred) or a\n**verbatim** copy of it carrying the current\n`<!-- z2w-agent-coordination canonical-block vX.Y.Z -->` fingerprint. **Never\nparaphrase it**, and never copy a version-frozen block from another project or\nfrom a primer snapshot \u2014 that is exactly how canonical-block drift happens.\n\n## Your bulletin file\n\nThis project's bulletin file is `projects/{{slug}}.md`. Read it in protocol order at\nsession start (`## Incidents` \u2192 `## Inbox from Kerry` \u2192 `## Open questions` \u2192\n`## Heads-ups`), then `global.md`. Rewrite `## Current focus` at session end.\n\n---\n\n*Pointer emitted at scaffold time by `@zero2webmaster/starter-kit` (mirrors\n[[instantiate-z2w-project]]). The canonical primer it links is owned by\n`z2w-agent-coordination` \u2014 improve it THERE, never fork a per-project copy.*\n";
79
79
  /**
80
80
  * Emit the short coordination-onboarding pointer — but ONLY for a project that
81
81
  * participates in the bulletin. Returns null otherwise (a non-participating
@@ -8,7 +8,7 @@
8
8
  // CLAUDE.md uses two marker comments for layering by later ROADMAP steps:
9
9
  // - `<!-- STANDARDS_BLOCK -->` is replaced by Step 5 (standards resolver).
10
10
  // - `<!-- AGENTS_BODY -->` is replaced by Step 6 (writer) with the
11
- // canonical AGENTS body read from the Templates folder (`AI/Cursor Projects/agent-framework/`, formerly `AI/Templates/`).
11
+ // canonical AGENTS body read from the Templates folder (`AI/Projects/agent-framework/`, formerly `AI/Cursor Projects/agent-framework/` and `AI/Templates/`).
12
12
  // Step 4 scaffolders emit the markers verbatim so they're easy to grep and
13
13
  // trivially testable without a Templates dependency.
14
14
  import { getBrandSpec, renderBrandBlock } from "../brand.js";
@@ -841,7 +841,8 @@ export const COORDINATION_ONBOARDING_TEMPLATE = `# Coordination Onboarding — {
841
841
  Read **\`COORDINATION_ONBOARDING.md\`** at the root of the coordination bulletin repo
842
842
  (\`zero2webmaster/z2w-agent-coordination\`). There is ONE local clone, at
843
843
  \`~/.cache/z2w-coordination\` — the Desktop path
844
- \`~/Desktop/Zero2Webmaster/AI/Cursor Projects/z2w-agent-coordination/\` is a symlink to it.
844
+ \`~/Desktop/Zero2Webmaster/AI/Projects/z2w-agent-coordination/\` (formerly
845
+ \`AI/Cursor Projects/\`) is a symlink to it.
845
846
 
846
847
  🔴 **Never \`git pull\` or edit in that shared clone.** Take a private workspace
847
848
  first — from the clone, \`WS="$(bash scripts/agent-workspace.sh {{slug}})"\` then
@@ -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
  \`\`\`
@@ -1,6 +1,8 @@
1
- /** Where the Templates folder lives after the 2026-11 move (preferred). */
1
+ /** Where the Templates folder lives once `AI/Cursor Projects` is renamed `AI/Projects` (preferred). */
2
2
  export declare const DEFAULT_TEMPLATES_PATH: string;
3
- /** Where the Templates folder lived before the move. Kept as a fallback. */
3
+ /** Where the Templates folder lived from the 2026-11-02 move until the portfolio-folder rename. */
4
+ export declare const PRE_RENAME_TEMPLATES_PATH: string;
5
+ /** Where the Templates folder lived before 2026-11-02. Kept as a fallback. */
4
6
  export declare const LEGACY_TEMPLATES_PATH: string;
5
7
  /** The default locations, in the order they are tried. */
6
8
  export declare const DEFAULT_TEMPLATES_CANDIDATES: readonly string[];
@@ -25,8 +27,10 @@ export declare class TemplatesError extends Error {
25
27
  * Resolves the Templates folder path and verifies required entries are present.
26
28
  *
27
29
  * Without an override, the default locations are tried in order
28
- * (`DEFAULT_TEMPLATES_CANDIDATES`: the new agent-framework folder, then the
29
- * legacy AI/Templates folder) and the first COMPLETE one wins. A folder that
30
+ * (`DEFAULT_TEMPLATES_CANDIDATES`: `AI/Projects/agent-framework`, then
31
+ * `AI/Cursor Projects/agent-framework`, then the legacy `AI/Templates`) and the
32
+ * first COMPLETE one wins. After the rename, the second path is normally a
33
+ * symlink to the first, so both name the same folder; that is harmless. A folder that
30
34
  * exists but is incomplete never shadows a complete one further down the list.
31
35
  *
32
36
  * @param override - optional explicit Templates path (e.g. from --templates-path).
package/dist/templates.js CHANGED
@@ -11,11 +11,13 @@
11
11
  //
12
12
  // The CLI resolves Templates from the local folder ONLY — the default
13
13
  // location or an explicit --templates-path override. The default is an
14
- // ORDERED list (v0.50.0): the folder is moving from
14
+ // ORDERED list. v0.50.0: the folder moved from
15
15
  // ~/Desktop/Zero2Webmaster/AI/Templates to
16
16
  // ~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework (Kerry approved
17
- // 2026-11-02), so the new path is tried first and the old one is kept as a
18
- // fallback for at least one release after the move. The v0.2.0 hosted-mirror fallback
17
+ // 2026-11-02). v0.51.0: the portfolio folder itself is being renamed from
18
+ // `AI/Cursor Projects` to `AI/Projects` (Kerry confirmed the name 2026-11-02,
19
+ // ROADMAP Step 59), so the newest path is tried first and each older one is
20
+ // kept as a fallback for at least one release after its move. The v0.2.0 hosted-mirror fallback
19
21
  // (templates.z2w.us + a 24h local cache) was RETIRED 2026-06-23 to protect
20
22
  // the framework IP: the public mirror was taken down, so when no local
21
23
  // Templates folder is present the CLI now hard-fails with a --templates-path
@@ -23,13 +25,16 @@
23
25
  import { promises as fs } from "node:fs";
24
26
  import * as path from "node:path";
25
27
  import * as os from "node:os";
26
- /** Where the Templates folder lives after the 2026-11 move (preferred). */
27
- export const DEFAULT_TEMPLATES_PATH = path.join(os.homedir(), "Desktop", "Zero2Webmaster", "AI", "Cursor Projects", "agent-framework");
28
- /** Where the Templates folder lived before the move. Kept as a fallback. */
28
+ /** Where the Templates folder lives once `AI/Cursor Projects` is renamed `AI/Projects` (preferred). */
29
+ export const DEFAULT_TEMPLATES_PATH = path.join(os.homedir(), "Desktop", "Zero2Webmaster", "AI", "Projects", "agent-framework");
30
+ /** Where the Templates folder lived from the 2026-11-02 move until the portfolio-folder rename. */
31
+ export const PRE_RENAME_TEMPLATES_PATH = path.join(os.homedir(), "Desktop", "Zero2Webmaster", "AI", "Cursor Projects", "agent-framework");
32
+ /** Where the Templates folder lived before 2026-11-02. Kept as a fallback. */
29
33
  export const LEGACY_TEMPLATES_PATH = path.join(os.homedir(), "Desktop", "Zero2Webmaster", "AI", "Templates");
30
34
  /** The default locations, in the order they are tried. */
31
35
  export const DEFAULT_TEMPLATES_CANDIDATES = [
32
36
  DEFAULT_TEMPLATES_PATH,
37
+ PRE_RENAME_TEMPLATES_PATH,
33
38
  LEGACY_TEMPLATES_PATH,
34
39
  ];
35
40
  export const REQUIRED_DIRECTORIES = ["Resources"];
@@ -101,8 +106,10 @@ function incompleteError(candidate, missing) {
101
106
  * Resolves the Templates folder path and verifies required entries are present.
102
107
  *
103
108
  * Without an override, the default locations are tried in order
104
- * (`DEFAULT_TEMPLATES_CANDIDATES`: the new agent-framework folder, then the
105
- * legacy AI/Templates folder) and the first COMPLETE one wins. A folder that
109
+ * (`DEFAULT_TEMPLATES_CANDIDATES`: `AI/Projects/agent-framework`, then
110
+ * `AI/Cursor Projects/agent-framework`, then the legacy `AI/Templates`) and the
111
+ * first COMPLETE one wins. After the rename, the second path is normally a
112
+ * symlink to the first, so both name the same folder; that is harmless. A folder that
106
113
  * exists but is incomplete never shadows a complete one further down the list.
107
114
  *
108
115
  * @param override - optional explicit Templates path (e.g. from --templates-path).
package/dist/writer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // z2w-starter-kit writer — composes the Step 4 scaffolder output, the Step 5
2
2
  // standards resolver output, and the canonical AGENTS body read fresh from
3
- // `~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework/` (formerly AI/Templates) into a final file list, then writes
3
+ // `~/Desktop/Zero2Webmaster/AI/Projects/agent-framework/` (formerly AI/Cursor Projects/agent-framework, and before that AI/Templates) into a final file list, then writes
4
4
  // the files atomically into the user's target path.
5
5
  //
6
6
  // Pipeline (in order):
@@ -108,7 +108,7 @@ function buildPromotionsFile(inputs, promotions, date) {
108
108
  `**Generated:** ${date}`,
109
109
  ``,
110
110
  `During scaffold the following standards were marked for promotion into`,
111
- `\`~/Desktop/Zero2Webmaster/AI/Cursor Projects/agent-framework/\` (the Templates`,
111
+ `\`~/Desktop/Zero2Webmaster/AI/Projects/agent-framework/\` (the Templates`,
112
112
  `folder) rather than inlined in CLAUDE.md.`,
113
113
  ``,
114
114
  `v0.1.x of \`@zero2webmaster/starter-kit\` captures the intent only — the`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.50.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",
@@ -110,6 +110,7 @@ import { neon } from "@neondatabase/serverless";
110
110
  const VALID_STATUS = new Set(["Planning", "Scaffolded", "Live", "Dormant", "Retired"]);
111
111
 
112
112
  const DEFAULT_BULLETIN_DIRS = [
113
+ join(process.env.HOME ?? "", "Desktop/Zero2Webmaster/AI/Projects/z2w-agent-coordination"),
113
114
  join(process.env.HOME ?? "", "Desktop/Zero2Webmaster/AI/Cursor Projects/z2w-agent-coordination"),
114
115
  join(process.env.HOME ?? "", ".cache/z2w-coordination"),
115
116
  ];