@zero2webmaster/starter-kit 0.13.0 → 0.15.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.
@@ -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" | "neon-careful" | "temp-files" | "agent-coordination" | "seo-baseline" | "email-service" | "moderation" | "text-size" | "test-count";
3
+ export type StandardKey = "skill-vault" | "portable-stack" | "fathom" | "uptime-kuma" | "sentry" | "neon-careful" | "temp-files" | "agent-coordination" | "seo-baseline" | "email-service" | "moderation" | "card-path-bot-protection" | "text-size" | "test-count";
4
4
  export type StandardDecisionState = "inserted-inline" | "skipped-not-applicable";
5
5
  export interface StandardDecision {
6
6
  key: StandardKey;
@@ -51,7 +51,7 @@ export interface StandardsResolution {
51
51
  * family — the safe default for anything else with `has_web_ui=true`.
52
52
  */
53
53
  export declare function fathomEnvVarFor(projectType: ProjectType): string;
54
- export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.19";
54
+ export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.24";
55
55
  /**
56
56
  * The canonical **Capture Learnings** block, emitted VERBATIM into every
57
57
  * scaffolded `CLAUDE.md`.
package/dist/standards.js CHANGED
@@ -56,6 +56,7 @@ const STANDARD_ORDER = [
56
56
  "seo-baseline",
57
57
  "email-service",
58
58
  "moderation",
59
+ "card-path-bot-protection",
59
60
  "text-size",
60
61
  "test-count",
61
62
  ];
@@ -71,6 +72,7 @@ const TITLES = {
71
72
  "seo-baseline": "SEO baseline (non-WP web UI)",
72
73
  "email-service": "Email service selection",
73
74
  moderation: "Moderation baseline (user-generated content)",
75
+ "card-path-bot-protection": "Card-path bot protection (accepts credit cards)",
74
76
  "text-size": "Text size (readability)",
75
77
  "test-count": "Test-count reporting (session end)",
76
78
  };
@@ -99,6 +101,12 @@ const NO_MODERATION_TYPES = [
99
101
  "library",
100
102
  "protocol-repo",
101
103
  ];
104
+ // Types with no runtime request surface, so no card-accepting endpoint can
105
+ // exist. Deliberately much SMALLER than the sets above: wp-plugin, cf-worker,
106
+ // cf-pages, node-service and python-service can all take a card, and the whole
107
+ // point of the standard is to reach the projects whose agents have not yet
108
+ // thought about payments. Only a CLI library and a spec repo are exempt.
109
+ const NO_CARD_PATH_TYPES = ["library", "protocol-repo"];
102
110
  function checkPortableStack(inputs) {
103
111
  if (inputs.projectType === "wp-plugin") {
104
112
  return {
@@ -235,6 +243,39 @@ function checkModeration(inputs) {
235
243
  reason: `hasUserContent=true on ${inputs.projectType} — two-layer moderation baseline per [[moderation-system]]`,
236
244
  };
237
245
  }
246
+ /**
247
+ * The card-path bot-protection standard applies on `acceptsCards`, and applies
248
+ * to EVERY project type — deliberately wider than the set this CLI can emit
249
+ * code for.
250
+ *
251
+ * A WordPress gateway and a Cloudflare Worker take cards too; `z2w-seller-suite`
252
+ * is the WP plugin whose retrofit produced the 2-of-3 measurement the body
253
+ * cites. Restricting the standard to `nextjs` (the only type whose protected
254
+ * shape we can scaffold) would mean the projects that most need to be told the
255
+ * rule are the ones never told it. The prose is the standard; the emitted code
256
+ * is a convenience `nextjs` happens to get.
257
+ *
258
+ * `library` and `protocol-repo` are excluded — no runtime request surface, so
259
+ * there is no endpoint to protect.
260
+ */
261
+ function checkCardPathBotProtection(inputs) {
262
+ if (!inputs.acceptsCards) {
263
+ return {
264
+ applies: false,
265
+ reason: "acceptsCards=false — no card-accepting endpoint to protect",
266
+ };
267
+ }
268
+ if (NO_CARD_PATH_TYPES.includes(inputs.projectType)) {
269
+ return {
270
+ applies: false,
271
+ reason: `${inputs.projectType} has no runtime request surface — no card path to protect`,
272
+ };
273
+ }
274
+ return {
275
+ applies: true,
276
+ reason: `acceptsCards=true on ${inputs.projectType} — bot check + own rate limit on every card path per [[stripe-elements-confirm-path]] §8`,
277
+ };
278
+ }
238
279
  function checkTextSize() {
239
280
  return { applies: true, reason: "Z2W standing org rule — applies to every project" };
240
281
  }
@@ -352,11 +393,17 @@ const NEON_CAREFUL_BODY = `### Neon-careful (Neon Postgres)
352
393
  > **Queue/outbox drain — inline, never a frequent poll:** if a queue or outbox is fed by this app's OWN writes, drain it INLINE on the compute the write already woke (Cloudflare Workers: \`ctx.waitUntil(drain())\` after the response is sent; a Node/long-running service: a fire-and-forget drain after the write commits) — a DB-touching cron's cost is its WAKE-UPS, not its row volume, so riding an existing wake costs zero extra CU-hours and ships the row in seconds. Any cron drainer stays a LOW-frequency backstop (daily, not minutes) that only sweeps rows whose send failed; keep per-row claims under \`FOR UPDATE SKIP LOCKED\` so an inline drain and a backstop tick can't double-send. (financial-engine cut an outbox from ~15 → ~0.6 CU-hr/mo/tenant — ~25× — this way.)
353
394
  >
354
395
  > See [[neon-postgres]] for the full discipline (§4.4 covers the inline-drain pattern).`;
355
- // The current canonical-block fingerprint version. Bumped in lockstep with
356
- // `zero2webmaster/z2w-agent-coordination`'s AGENT_PROTOCOL.md when the embedded
357
- // block's mechanics change (drift-detection Signal A greps for this exact token).
358
- // When you sync a newer canonical block below, bump this to match its comment.
359
- export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.19";
396
+ // The current canonical-block fingerprint version, as published in
397
+ // `zero2webmaster/z2w-agent-coordination`'s AGENT_PROTOCOL.md (drift-detection
398
+ // Signal A greps for this exact token).
399
+ //
400
+ // 🔴 This is the BLOCK FINGERPRINT, not `AGENT_PROTOCOL.md`'s document version.
401
+ // They are independent counters and the protocol decouples them on purpose: on
402
+ // 2026-08-08 the document was at 0.1.35 while the fingerprint was at v0.1.24.
403
+ // Two consecutive handoffs compared this constant against the DOCUMENT version
404
+ // and reported a "15-version gap" that did not exist — the real gap was 4. Read
405
+ // the `<!-- ... canonical-block vX.Y.Z -->` comment, never the `**Version:**` line.
406
+ export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.24";
360
407
  /**
361
408
  * The canonical **Capture Learnings** block, emitted VERBATIM into every
362
409
  * scaffolded `CLAUDE.md`.
@@ -421,107 +468,60 @@ Full routing rubric, worked examples, and the Skill Vault's own commit conventio
421
468
  `;
422
469
  /**
423
470
  * The Agent Coordination section, emitted as its own TOP-LEVEL `## Agent
424
- * Coordination` section (NOT a `###` standards subsection). The bulk is the
425
- * VERBATIM canonical block from `AGENT_PROTOCOL.md` — heading, the
426
- * `<!-- ... canonical-block vX.Y.Z -->` fingerprint comment, and the exact
427
- * protocol body — so a freshly scaffolded project passes cross-project
428
- * drift-detection (Signal A) with no manual first-session re-sync, AND carries
429
- * the MANDATORY/never-ask session-end rule verbatim (the paraphrase this
430
- * replaced silently dropped it — filed 2026-07-15 after two independent
431
- * projects reported hand-fixing it; root cause of Kerry's 2026-07-18 "agents
432
- * still ask" inbox item). Single-brace placeholders (`{this-project-slug}`,
433
- * `{their-project}`, `{summary}`) are LITERAL canonical template syntax and
434
- * pass through substitution untouched; only the `{{slug}}` tokens in the
435
- * project-specific notes below are substituted at scaffold time.
471
+ * Coordination` section (NOT a `###` standards subsection).
472
+ *
473
+ * 🔴 **This is a POINTER, and it must stay one. Do not re-embed the canonical
474
+ * block here** (changed 2026-08-08, taking `z2w-agent-coordination`'s own
475
+ * PREFERRED option from its 2026-08-07 ask).
476
+ *
477
+ * It used to be a verbatim 27 KB mirror of `AGENT_PROTOCOL.md`'s block, on the
478
+ * theory that a fresh scaffold should pass drift-detection Signal A with no
479
+ * first-session re-sync. That theory failed in the only way that matters here:
480
+ * **this file is an EMITTER, so a stale copy is not a local documentation nit —
481
+ * it is minted into every new Z2W project forever.** When upstream measured
482
+ * currency on 2026-08-07 it was 0 of 37 projects, because the canonical block
483
+ * grew 4,274 B → 34,515 B in ten weeks and nothing in the protocol ever told a
484
+ * stale agent that a newer version existed. Upstream's fix is session-start
485
+ * step 1b (read the live block; it wins), which repairs READERS — but an
486
+ * emitter that still ships an old copy keeps manufacturing new stale readers.
487
+ * Pointing at the live block is the only version of this that converges.
488
+ *
489
+ * What deliberately STAYS embedded below step 1b: the Hard rules and the
490
+ * project-specific notes. Those are the irreversible-on-violation rules (no
491
+ * secrets, private repo only, never edit another project's file) and they must
492
+ * hold even when the clone is unreachable or a session never coordinates.
493
+ *
494
+ * Placeholder policy, and it CHANGED when this became a pointer. While the
495
+ * block was a byte-identical mirror, `{this-project-slug}` had to stay literal
496
+ * or the diff failed. Now that this is our own text, the two shell commands in
497
+ * step 1 use `{{slug}}` so they are substituted into RUNNABLE form — an agent is
498
+ * meant to paste them, and handing someone a command with a blank to fill in is
499
+ * the same friction the URL/terminal rules exist to remove. `{summary}` stays
500
+ * literal because it is genuinely per-session and cannot be known here.
436
501
  */
437
502
  const AGENT_COORDINATION_BODY = `## Agent Coordination
438
503
 
439
- <!-- z2w-agent-coordination canonical-block v0.1.19 -->
504
+ <!-- z2w-agent-coordination canonical-block ${CANONICAL_COORDINATION_BLOCK_VERSION} -->
505
+
506
+ **This section is a POINTER, not a copy of the canonical block.** The canonical Agent Coordination protocol lives in \`zero2webmaster/z2w-agent-coordination\` → \`AGENT_PROTOCOL.md\`, section \`## Agent Coordination\`, and **the live block always wins over anything written in this file.**
440
507
 
441
- *(↓ copy this section, including this heading AND the HTML fingerprint comment above, into each participating project's \`CLAUDE.md\` and \`AGENTS.md\`. The fingerprint lets \`grep\` detect drift across projects.)*
508
+ **Do not paste the full block in here.** It grew from 4,274 B to 34,515 B in ten weeks, so every version bump re-asked ~21 projects for an ever-bigger paste — and when currency was finally measured on 2026-08-07 the result was **0 of 37 projects current** (34 stale, 15 of them eleven versions back; 3 frozen paraphrases). A cache with no invalidation step is not a cache, it is a fork. Reading the live block at session start costs one command and makes every future bump self-delivering.
442
509
 
443
510
  This project participates in the Z2W cross-project coordination bulletin.
444
511
 
445
512
  **At session start:**
446
- 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; otherwise \`git clone --depth 1 git@github.com:zero2webmaster/z2w-agent-coordination.git ~/.cache/z2w-coordination\` (see §8.3). Then, from that clone, take a workspace of your own — \`WS="$(bash scripts/agent-workspace.sh {this-project-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. 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.
447
- 2. Read \`projects/{this-project-slug}.md\` IN THIS ORDER:
448
- a0. **\`## 📥 Needs attention\`** — the triage index, if the section exists (v0.1.15). It is pinned at the very top of the file and carries **one line per still-unhandled item addressed to this project**, each pointing at the section the full item lives in. Read it first as your routing table: it tells you *what* is waiting and *where*, so you don't have to scan several long sections hoping to spot an ask aimed at you. Handle \`ACTION\` items before \`Q\` before \`FYI\`. **As you handle each item, delete its line** — the block is a queue, not a log (the full item + your \`↳\` reply stay in their own section; git keeps the history). Absent or empty section = nothing addressed to you is outstanding. Schema in §8.11. *(An open incident in \`## Incidents\` still outranks everything here — see a. next.)*
449
- a. **\`## Incidents\`** — if the section exists (v0.1.13). Any incident whose latest status line is \`open\` (i.e. no \`↳ resolved\` under it) means something is broken in production RIGHT NOW. Surface every open incident to Kerry before anything else, and prefer triaging it over new feature work — **a production incident outranks Kerry's inbox.** If the section is absent, there are no incidents; move on. (Incidents are written by the observability bridge or by an agent that spots a live problem — see §8.8 for the schema, dedup key, status lifecycle, and PII-strip rule.)
450
- b. Then **\`## Inbox from Kerry\`**. Any entry without a \`↳ received\` line is unread. For each unread entry: surface it to Kerry, ACK by appending \`↳ received {YYYY-MM-DD HH:MM}, session {id}\` immediately, and move the work into \`## Open follow-ups owned by this project\` so it survives this session.
451
- c. Then \`## Open questions\` — surface any \`[→ this-project]\` asks AND your OWN un-replied \`[→ Kerry]\` items. **Proactively open the session WITH your pending \`[→ Kerry]\` decisions, in plain English** (v0.1.9): e.g. *"I'm up to speed. Pending your input: (1) {one-line ask}, (2) {one-line ask}. Want to handle any now?"* A \`[→ Kerry]\` item is a genuine "blocked on you" flag — don't let it sit silently on the dashboard while Kerry is right here in the session.
452
- d. Then \`## Heads-ups for other agents\` (un-ACK'd) and other-session entries in \`## Active sessions\`.
453
- 3. Read \`global.md\` — surface cross-project heads-ups (and any \`## Inbox from Kerry\` entries in \`global.md\` addressed to all agents).
454
-
455
- **During session:**
456
- - If a coordination need surfaces (cross-project question, important heads-up), append to the relevant section in memory and persist on session end.
457
- - If a question to another project's agent surfaces, append to THEIR project file's \`## Open questions\` section with \`[→ {their-project}]\` prefix.
458
- - **Whenever you write ANYTHING addressed to another project, also append one line to THEIR \`## 📥 Needs attention\` block (v0.1.15).** This is the send-side half of the triage index above, and it costs you one line. Create the section (directly under the file's header block, above \`## Inbox from Kerry\`) if it isn't there yet. Tag the item's disposition so the recipient — and the \`agents.z2w.us\` renderer — can sort it without reading the body:
459
- - **\`ACTION\`** — you need them to *do* something (a change, a trim, a build, a re-sync).
460
- - **\`Q\`** — you need an answer/decision, but no work.
461
- - **\`FYI\`** — informational; nothing is expected back.
462
-
463
- Fixed field order, \` · \` (middot) delimiter, closed uppercase vocabulary — the renderer parses on position, so don't reorder or invent tags:
464
- \`\`\`
465
- - 2026-07-25 · z2w-starter-kit · ACTION · Trim your bulletin file — it's over the 256 KB read-cap · §Open questions
466
- \`\`\`
467
- Applies to every inbound form: a \`[→ {them}]\` question, a heads-up you filed in their file, or a maintainer directive. **The recipient deletes the line when they handle it**, so leaving it un-deleted is the signal that the item is still live. **Two send-side rules (v0.1.22, both detailed in §8.11):** (1) **grep their file for an existing thread on your topic before you file** — you already have the file open to append, so the check is free; if a thread exists, \`↳\` co-sign it (saying what's *different* about your instance) rather than opening a second one; (2) **if you later WITHDRAW an item, delete your own triage line yourself** — post the \`↳ retracted\` reply first, then remove the line. Retraction is the only case where a sender deletes; \`ACTION\` outranks everything in the recipient's queue, so a withdrawn ACTION is not clutter, it is real work being pushed down the list. *(Adopted 2026-07-25 from \`z2w-starter-kit\`'s 2026-07-15 proposal on Kerry's observation that finding messages addressed to a project was too hard — one session had to grep a 705 KB file across three sections to find a directive aimed at it — and \`z2w-agent-command-center\`'s independent endorsement after the same failure bit it. The Command Center renders this block as the phone-first "addressed to you" queue.)*
468
- - **ANSWERING a \`[→ you]\` question counts as "writing something addressed to another project" — so the reply ALSO needs a \`## 📥 Needs attention\` line, in the ASKER's file (v0.1.21).** This is the case the rule above always covered in principle and that everyone (including the maintainer) reads past in practice, because replying *feels* like closing an item rather than sending one. It isn't. Per §8.2 the thread lives in **your** file, which means **the asker has nothing in their own file to tell them an answer arrived** — they filed into your file and then never look at it again. Posting the \`↳\` is not delivering it.
469
- \`\`\`
470
- - 2026-07-27 · z2w-agent-coordination · FYI · RULING on your \`## Integrations\` question — answered in full on the thread in my file · projects/z2w-agent-coordination.md §Open questions
471
- \`\`\`
472
- Tag it \`FYI\` when the answer closes the thread and needs nothing back; \`ACTION\` when your answer asks them to change something. **Point at the file AND the section** — the thread is in your file, not theirs, so a bare \`§Open questions\` sends them to the wrong place. The asker deletes the line once they've read the reply, exactly as with any other inbound item.
473
-
474
- *(Added 2026-07-27 after this exact failure, committed by the maintainer against \`audit-engine\`. A ruling it had been waiting on since 2026-07-26 was posted as a \`↳\` at 14:07 and broadcast to \`global.md\` at 14:13; \`audit-engine\` then wrote to the bulletin three times over the next six hours — 15:22, 15:23, 20:48 — still believing it had no answer, and eventually asked **Kerry** to relay it by hand. Its \`## 📥 Needs attention\` block was checked and carried two other lines and not this one, so the queue it correctly consulted told it, accurately, that no reply had arrived. Note that the \`global.md\` broadcast did NOT save it: a broadcast is a session-**start** read aimed at everyone, and the one agent with a specific stake in the answer is exactly the one who needs a routed line rather than a bulletin notice. Cost: ~7 hours of a held finding-set and a human relay hop, in the ecosystem's own coordination repo, under a rule that repo wrote.)*
475
- - If a decision is genuinely waiting on Kerry, append a \`[→ Kerry]\` entry to your OWN file's \`## Open questions\` section — same syntax as cross-agent asks. Do NOT bury "waiting on Kerry" items in Heads-ups; the dashboard reads \`[→ Kerry]\` entries to show Kerry what's blocked on him.
476
- - **\`[→ Kerry]\` entries MUST be human-readable to Kerry, not agent jargon (v0.1.9).** Lead every \`[→ Kerry]\` entry with a short **bold plain-English title** + a one-sentence "what Kerry needs to decide or do," then any detail below (a \`<details>\` block is fine for depth). The dashboard at \`agents.z2w.us\` surfaces these to Kerry directly; if the title buries the ask, the dashboard has to guess. Optionally add a machine-readable \`<!-- ask: {one-line ask} -->\` marker (the dashboard prefers it over derived text) and a blocking/non-blocking hint. Example:
477
- \`\`\`
478
- - **[→ Kerry]** (2026-06-13, by \`file-server\`) — **Create the STF Backblaze bucket so I can onboard the tenant.** Non-blocking for other work; blocks STF tenant go-live. <!-- ask: create STF Backblaze bucket -->
479
- <details>… full context …</details>
480
- \`\`\`
481
- Scope: \`[→ Kerry]\` items specifically. Cross-agent \`[→ {project}]\` asks and Open follow-ups MAY adopt the same lead-with-a-title shape but are not required to.
482
- - **Optionally qualify a \`[→ Kerry]\` item as \`decide\` or \`do\` (v0.1.15).** Kerry answers these from two different places: some are a judgment call he can settle from his phone in one line; others need him at a workstation (mint a token, run a migration, upload a plugin, click through a provider console). When you *know* which kind yours is, say so — \`[→ Kerry: decide]\` or \`[→ Kerry: do]\`:
483
- - **\`decide\`** — answerable in a sentence, from anywhere. A preference, a go/no-go, a pick-one-of-two.
484
- - **\`do\`** — requires hands on a machine or a third-party console. Even a one-minute task counts if it can't be done from a phone.
485
-
486
- **Closed vocabulary (\`decide\` | \`do\` only), fixed position immediately after \`Kerry\`.** The bare \`[→ Kerry]\` form stays fully valid — omit the qualifier when it's genuinely mixed or you're unsure, and the Command Center's classifier infers it as it does today. Purely additive: every parser matching \`Kerry\` inside the arrow already reads \`[→ Kerry: do]\` as Kerry-targeted. *(Adopted 2026-07-25 from \`z2w-agent-command-center\`'s 2026-07-18 proposal — its \`/decisions\` view already splits "Decide" from "Do — needs Kerry at a workstation" using a Haiku classifier; a durable tag makes that split exact and free.)*
487
- - **A cross-agent question AND all its replies live in the askee's (target's) project file** — the same file you just filed the \`[→ {their-project}]\` question in. Do NOT mirror-and-reply in your own file, and do NOT park the question in your own file first (that fragments discovery, surfaced as a Step 7 gap on 2026-05-28). The asker may keep a lightweight pointer in their own file if they want one, but the canonical thread (question + every \`↳\` reply) stays in the askee's file. *(v0.1.11 clarification: the prior wording said "the asker's project file," which contradicted the rule one line up that files the question in the askee's file.)*
488
- - **"Posted to the bulletin" is ambiguous — name the FILE + SECTION, and route to a specific agent if a specific agent must see it (v0.1.12).** The bulletin is many files with different audiences, so "I sent it to the bulletin" tells neither Kerry nor another agent where to look — and worse, it can imply broadcast when the write was actually local. Know the visibility model and state it:
489
- - **\`global.md\`** is the ONLY file every agent reads at session start → the one place to put something *all* agents must see.
490
- - A reply/entry **under a project's \`## Open questions\` (or any section) in \`projects/{x}.md\`** is seen by **that project's agent + anyone who opens that file** — it is NOT seen automatically by other agents. Posting your own analysis as a reply in your *own* project file does NOT notify anyone else.
491
- - To **guarantee a specific other agent sees something**, append a \`[→ {their-project}]\` entry to **their** file's \`## Open questions\` (the sanctioned cross-project signal) — a plain mention in your own file won't reach them.
492
-
493
- So when you tell Kerry (or another agent) you "sent" / "posted" / "shared" something, **say which file and section** (e.g. "posted the verdict under its Open question in \`projects/z2w-ai-suite.md\`" — not "sent it to the bulletin"), and if a named agent needs it, confirm you routed a \`[→ {them}]\` entry into *their* file. (Surfaced by Kerry 2026-06-22 after a code-audit verdict posted only in the author's own project file was assumed to be visible to the partner agent it concerned.)
494
-
495
- **At session end (or when the end is near):**
496
- - **Re-read \`## Inbox from Kerry\` (v0.1.9).** A dispatch from Kerry can land *mid-session* — invisible to an agent that only checked at boot. Re-read the inbox; ACK (append \`↳ received {YYYY-MM-DD HH:MM}, session {id}\`) and handle any entry that arrived since session start. Near-zero cost; catches late dispatches before they sit unread until this project's next session.
497
- - **Re-check your OWN un-replied \`[→ Kerry]\` items (v0.1.9).** If any are still pending and Kerry is reachable, raise them one more time before closing — same plain-English framing as session start.
498
- - **Re-check \`## Open questions\` for new \`[→ this-project]\` entries that arrived since session start (v0.1.10).** A *dedicated message from another agent* lands here — the cross-agent analogue of Kerry's inbox dispatch. It's in your OWN already-loaded project file, so the cost is near-zero. Reply (\`↳\` under the question) and, if the ask needs more than this session has room for, move it into \`## Open follow-ups owned by this project\` so it survives. (You do NOT need to re-read \`global.md\` at session end — broadcast heads-ups are a session-*start* read; this end-of-session check is deliberately scoped to your own lean project file, not the large shared \`global.md\`.)
499
- - **Updating the bulletin at session end is a MANDATORY standing wrap step — never a question you put to Kerry (v0.1.11).** It ranks with committing your code, not with optional extras. Do NOT end a session by asking *"want me to update the bulletin too?"* or *"that wasn't in your wrap list — say the word"* — decide with the two tiers below and just do it. The one and only time you skip is a purely read-only / conversational session that changed no files and no project state — and even then you **skip silently, you do not ask**. (Kerry, 2026-07-05: *"they should know to either do it or not do it"* — this rule is that decision, made once, so no agent defers it back to him.)
500
- - **Tier 1 — ALWAYS (any session that did real work on this project):** rewrite \`## Current focus\` in place — one short paragraph (or 1–3 bullets) of what this project is working on right now, stamped with the current date + session id — and add/close your \`## Active sessions\` entry. Cheap, and it is the field the \`agents.z2w.us\` dashboard reads: a stale timestamp signals "agent ran but said nothing," which reads differently from "no agent ran," and an empty/stale Current focus erodes Kerry's trust in the dashboard.
501
- > ⚠️ **Anchor the rewrite on the heading as a whole LINE (\`^## Current focus$\`), never on the bare substring.** Section names are quoted inline in prose all the time — a substring match will find a neighbouring bullet's mention of \`## Current focus\`, which sits above the real heading, and replacing from there silently deletes the heading and truncates that bullet. The fingerprint of this having happened is a **pair**: a missing H2 and a sentence cut mid-clause just above where it should be.
502
- >
503
- > *Filed by \`site-control\` 2026-07-30, after this silently emptied their card on \`agents.z2w.us\` while the file itself still parsed and read fine — then reproduced it once more while fixing it, with the mechanism already in front of them. \`## Current focus\` is simultaneously the most-quoted section name and the only one written by full replacement, which makes it the most exposed section in the schema. **Now asserted:** \`scripts/check-file-sizes.sh\` fails the push if any participating \`projects/*.md\` is missing a required H2 as a line-anchored heading.*
504
-
505
- - **Tier 2 — ADDITIONALLY, whenever the session produced anything another agent or Kerry would act on:** add a \`## Recent commits\` entry (if you shipped) and append any new heads-ups / \`[→ {project}]\` / \`[→ Kerry]\` items — plus the \`## 📥 Needs attention\` line in each recipient's file.
506
- **The trigger is "carries cross-project signal," NOT "committed code" (v0.1.15).** A decision, a heads-up, a capability→home mapping, a naming or scope change, a new build-target, an answered question, a discovered gotcha — all qualify, and **synthesis, audit, and planning sessions routinely commit zero code yet carry the highest cross-project value.** An agent that gates Tier 2 on \`git log\` says nothing exactly when it has the most to say. Skip Tier 2 only when the session genuinely produced nothing anyone else would act on (pure local exploration with no outcome) — and Tier 1 still runs even then. *(Adopted 2026-07-25 from \`z2w-starter-kit\`'s 2026-07-11 ask on Kerry's instruction, after a zero-commit \`z2w-forms\` extraction audit generated a new build-target, a Kerry decision, a delivery model, a naming fix, and heads-ups landing on three other projects — none of which a code-gated wrap-up would have published.)*
507
- - **Keep \`## Integrations\` + your Live status current — a never-ask standing step, exactly like \`## Current focus\` (v0.1.14).** If this session changed how this project relates to another Z2W app — it started consuming an engine/service, stopped using one, or became a provider another app now depends on — update your file's \`## Integrations\` edges. If the project's lifecycle changed — scaffolded → live in prod, went dormant, retired — update the **Live status** line and its date. This is the capture mechanism behind the ecosystem dependency map + live-status badges on \`agents.z2w.us\`; a stale edge or status silently misleads every other agent (real 2026-07-20 miss: an audit called a LIVE engine "unbuilt" because no single place recorded its status). Decide and do it — do not ask. Absent section = nothing to report yet; create it lazily the first time you have an edge or a status to record. Schema + conventions in §8.10.
508
- - **Size discipline (v0.1.11):** before appending, if \`projects/{this-project}.md\` is approaching ~200 KB (the point where agents can no longer \`Read\` it in one call), trim FIRST — archive old \`## Active sessions\` and \`## Recent commits\` entries and resolved \`## Open questions\` threads into \`projects/{this-project}-archive.md\` (a separate, commit-flagged operation). Keep your live file readable whole. \`## Current focus\` is rewritten in place (never appended), which is the main thing that keeps a project file from growing without bound — never let a single field accumulate a multi-session history.
509
- - **Your project file is a COORDINATION SURFACE, not a log (v0.1.22).** The test, and it is a good one: **"would another agent load this file to answer a question?"** Session recaps, npm publish state, test counts, defect post-mortems and build narrative all fail it — that is \`STATUS.md\` / \`CHANGELOG.md\` content in your own repo, and duplicating it here makes ~40 other agents pay for it on every read while approximately none of them need it. Two bright lines:
510
- 1. **\`## Current focus\` and \`## Active sessions\` answer "what is this project doing, and is it alive" — nothing more.** Current focus ≲1.5 KB (it renders on Kerry's phone); each Active-sessions entry ≲400 bytes — one line: what shipped, the test count, a commit SHA. The narrative goes in your own repo, where you are already writing it.
511
- 2. **Archive a thread in the same commit that resolves it.** Not in a later sweep. If you post a closing \`↳\`, you move the thread. This is the only self-enforcing rule of the set, because the agent that knows a thread is done is the agent closing it. *(Do NOT auto-archive on "reply older than N days" — a reply is not a resolution, and several of the longest-running live threads in this bulletin have replies. Resolution is a judgment, so the action belongs at the moment of judgment.)* **"Resolved" means BOTH parties are done. The test is mechanical: never archive a thread that has a live \`## 📥 Needs attention\` line pointing at it — in your file or in anyone else's.** A live queue line *is* the definition of an unresolved item, so if one references the section, the thread stays. Note what this asks of you: **check the queue, not your memory of the conversation.** An agent mid-trim is optimising for bytes and reading thread bodies for signs of resolution, and the evidence of live-ness is usually hundreds of lines away in a queue block — or in a file you cannot see at all. *(Two findings, three days apart, from the same project. 2026-07-29: \`z2w-starter-kit\`'s careful trim — which explicitly spared every thread with a live queue line — archived the very thread carrying its own unanswered proposal, because the waiting line was in the maintainer's queue. 2026-07-30, three days after proposing the original asker-side rule: the same trim archived \`z2w-observability-bridge\`'s open question, where starter-kit was the **askee**. That direction is quieter, not louder — **the asker cannot read your file at all**, so nothing anywhere signals it; the bridge would have waited indefinitely, and the only reason it did not is that someone went looking for the body in order to answer it. The role-free wording is \`z2w-starter-kit\`'s, adopted verbatim.)* **Corollary — the missing line is the symmetric failure.** This rule makes the queue block load-bearing for archiving, which raises the cost of a thread that has **no** queue line: \`event-engine\`'s 2026-07-14 registry ask carried none and sat 16 days. A line without a body and a body without a line are the same defect seen from two sides, so file the line when you file the thread.
512
-
513
- **Enforced at push, not by good intentions:** \`.github/workflows/file-size-check.yml\` runs \`scripts/check-file-sizes.sh\` on every push touching \`projects/**.md\` or \`global.md\` — hard-fail over 256 KB, warning over 200 KB, \`*-archive.md\` exempt by design. *(Adopted 2026-07-29 from \`z2w-starter-kit\`'s 2026-07-27 proposal, made after it trimmed its own file three times in one month and re-grew it ~70 KB in a single session. Its rule 3 — a per-session soft byte budget — is deliberately NOT adopted: it fails for exactly the reason the v0.1.11 rule above fails, namely that it asks an agent to measure mid-task, and agents do not measure mid-task. Push is the one moment measurement is automatic and free. The check belongs to the repo it guards, so the maintainer wrote it rather than handing the offer back.)*
514
- - \`git commit -m "{this-project}: {summary}"\` (see §8.2 for agent-identifier format in commit messages and session entries) and \`git push\`.
515
- - If push fails due to concurrent write from another session: \`git pull --rebase\`, resolve any conflicts (they should be rare — append-only within sections), retry push.
516
- - **Local auto-push hooks:** if your project has a post-commit hook that auto-pushes, expect it to race your explicit \`git push\` and grab the ref lock first. The commit still lands — verify with \`git log origin/main\` rather than re-pushing.
517
- - **A background sync can DISCARD your uncommitted work — commit in tight increments (v0.1.15).** Separately from the ref-lock race above, a background sync may run \`git pull --rebase\` + \`reset\` on the shared clone **mid-session** and **wipe your uncommitted edits to tracked files** (untracked new files survive; only working-tree changes to already-tracked files are lost). There is no commit to recover from, so the natural flow of "edit several bulletin files, commit at the end" can silently lose all of it. **Therefore: make each edit + \`git add\` + commit one tight sequence, and stage only your own files** — a concurrent sync can leave other projects' \`M\` files in the tree, so \`git commit -a\` would sweep up work that isn't yours. *(Reported by \`backup-engine\` 2026-07-22 after a mid-session sync — confirmed in the clone's reflog — discarded its edits to two tracked files and cost real rework. The clone has no git hooks and nothing in crontab/LaunchAgents, so the sync is driven out-of-band by the harness or a concurrent session: no single project owns it, and it can bite any agent writing to the bulletin.)*
518
-
519
- **Inbox-section authority (v0.1.8):** Only the orchestrator identity \`kerry-phone\` (the phone-first command center hosted at \`agents.z2w.us\`) writes to \`## Inbox from Kerry\`. Project agents only READ and ACK there — never write. Never edit another project's \`## Inbox from Kerry\` section. This is a clarification of Hard Rule #3, not an exception — same principle, applied to a new section dedicated to human-to-agent dispatch.
520
-
521
- **Conflict resolution:**
522
- - Append-only writes within distinct sections rarely conflict.
523
- - Two agents writing the same section: rebase merges both appends. Markdown order may differ from intent; the timestamps disambiguate.
524
- - Two agents trimming the same expired entry: rebase keeps either, no harm done.
513
+
514
+ 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.
515
+
516
+ 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:
517
+
518
+ \`\`\`
519
+ python3 scripts/bulletin_sections.py locate AGENT_PROTOCOL.md 'Agent Coordination'
520
+ \`\`\`
521
+
522
+ Read exactly those lines and follow them for the rest of the session. That block — not this one — carries the session-start read order (\`## 📥 Needs attention\` → \`## Incidents\` → \`## Inbox from Kerry\` → \`## Open questions\` → \`## Heads-ups\`), the triage-queue schema, the cross-project \`[→ {their-project}]\` signalling rules, the \`[→ Kerry]\` plain-English conventions, the \`## Integrations\` / Live-status upkeep step, and the **MANDATORY never-ask session-end wrap**. **Where the live block and this file disagree, THE LIVE BLOCK WINS.**
523
+
524
+ **The rules below are deliberately NOT delegated to step 1b.** They are the ones whose violation is irreversible — a leaked secret, a public bulletin, an overwritten neighbour — so they must hold even if the clone is unreachable, step 1b is skipped, or the agent never coordinates at all.
525
525
 
526
526
  **Hard rules (read first):**
527
527
  - **No secrets, ever.** Operational metadata only. Detect-and-redact on \`sk_*\`, \`pk_*\`, \`rk_*\`, \`whsec_*\`, \`xoxb-*\`, \`tbl[A-Za-z0-9]{14}\`, \`pat_*\`, etc.
@@ -529,7 +529,7 @@ This project participates in the Z2W cross-project coordination bulletin.
529
529
  - **Never edit another project's file directly.** Cross-project signaling goes through \`[→ {their-project}]\` prefixes in the target's \`## Open questions\` section.
530
530
  - **Append-only within sections.** Trimming expired entries is a separate operation flagged in the commit message.
531
531
 
532
- See \`~/Desktop/Zero2Webmaster/AI/Cursor Projects/z2w-agent-coordination/AGENT_PROTOCOL.md\` for the canonical protocol body — read it at session start for the current version and section list. Reference conventions by NAME; the §-numbers above are parenthetical breadcrumbs that may renumber upstream.
532
+ Reference the protocol's conventions by NAME, never by §-number — the numbering renumbers upstream, and step 1b gives you the live text anyway.
533
533
 
534
534
  ### Project-specific notes for {{slug}}
535
535
 
@@ -586,6 +586,36 @@ const MODERATION_BODY = `### Moderation baseline (user-generated content)
586
586
  > 5. **Optional pre-publish gate.** For content with a \`draft → published\` lifecycle, an unresolved flag blocks publish — turning the AI scan into a mandatory pre-publication gate.
587
587
  >
588
588
  > **Cross-app note:** for a future shared moderation package, map the tenant key at the boundary (event-engine keys on \`org_id\`, z2w-social on \`tenant_id\` — same idea, rename where they meet). See [[moderation-system]] for the data model, the coalescing pattern, the entity-resolver seam, and the verification checklist. Companion skills: [[async-action-feedback]] (the Report button + dashboard feedback), [[neon-postgres]] (run the scan out-of-band so it doesn't pin compute), [[per-tenant-credential-vault]] (where the scan API key lives long-term).`;
589
+ const CARD_PATH_BOT_PROTECTION_BODY = `### Card-path bot protection (accepts credit cards)
590
+
591
+ > **This project will accept credit cards, so every card-accepting endpoint carries a bot check AND its own rate limit — from the first one, not from the first incident.** Load [[stripe-elements-confirm-path]] §8 before writing any payment code. Cloudflare Turnstile is the sanctioned bot mitigation for the Z2W stack; never Akismet. Kerry's directive, 2026-08-06: *"let's ensure that anywhere credit cards are accepted in our system we have turnstile enabled"* — explicitly widened by him beyond any one project.
592
+ >
593
+ > **First, ENUMERATE the card paths by grep — never by eye.** This is the step that gets skipped, and skipping it is what a passing review looks like:
594
+ >
595
+ > \`\`\`
596
+ > paymentIntents.create setupIntents.create
597
+ > confirmSetup( confirmPayment(
598
+ > /payment_intents /setup_intents
599
+ > \`\`\`
600
+ >
601
+ > For each hit, assert that **both** a bot check and a rate limit exist **in that handler**. Measured 2026-08-06: a Z2W WooCommerce gateway had \`verify_turnstile()\` and \`is_rate_limited()\` implemented and called in **exactly one of three** card-accepting paths. The two bare ones were authenticated, nonce'd and ownership-checked — **none of which limits volume.** Authentication answers *who*, not *how many*. And the save-a-card path is the one that gets forgotten: \`setupIntents.create\` validates a card **without charging it**, which is precisely the primitive card-testing wants, and it leaves no failed-charge trail to notice.
602
+ >
603
+ > **On Next.js, a page-level gate does not cover a Server Action.** A Server Action is a publicly addressable POST endpoint, invocable without ever loading its page, and a route-shaped scan cannot even see an actions file. Each exported action re-takes its own checks — [[server-actions-are-public-endpoints]].
604
+ >
605
+ > **The pass condition is NOT "has a captcha".** A visible challenge on a checkout or donation form costs real conversions, so an audit that rewards mere presence makes things worse. Require all four:
606
+ >
607
+ > 1. **Invisible unless needed** — \`appearance: "interaction-only"\`. A bare \`<div class="cf-turnstile">\` renders a visible widget to every buyer. (The standalone "Invisible" widget *type* is deprecated; Managed vs Non-interactive is a Cloudflare dashboard setting, not markup.)
608
+ > 2. **Legible failure** — wire the \`error\` / \`timeout\` / \`expired\` callbacks. Left unwired, the widget silently never mints a token and the user gets a baffling refusal at submit with nothing to act on. Report them where someone will see them (Sentry on a non-WP app; an admin-visible counter on a WordPress checkout — do not load a third-party SDK onto the page where card details are entered).
609
+ > 3. **A limit SIZED for card entry, and no global cap.** Do not copy the checkout's limit: a budget tuned for order submission blocks a customer legitimately retrying a mistyped card. The reference default is **30 per 10 minutes per source** — because thirty people giving over one wifi NAT at a fundraising dinner is a good night, not an attack, and a per-minute limit turns the moment the campaign works into a wall of 429s. **No site-wide ceiling on a giving path**: it converts going viral into an outage. (Opposite call to a magic-link limiter, where a global cap *is* right — every send costs money and no burst of them is ever good news.)
610
+ > 4. **🔴 Fail OPEN, with a verdict that is not a boolean.** A captcha-provider outage must never stop payments. Keep \`pass\` / \`fail\` / \`degraded\` / \`no-token\` / \`unconfigured\` distinct: a boolean silently collapses *"Cloudflare rejected this"* into *"we could not reach Cloudflare"*, and only the first is evidence of a bot ([[zero-is-not-a-pass]]). Pair a non-\`pass\` verdict with a **tighter budget**, not a refusal — a **missing** token throttles harder than a failed one, because "no token → allow" makes the check optional at the attacker's discretion while "no token → refuse" hands a Cloudflare outage the power to stop your checkout. Your own rotated or typo'd secret must degrade too: that is the most tempting place to fail closed and the most wrong, since your mistake would refuse every payment with a message blaming the customer.
611
+ >
612
+ > **🔴 Point 4 is the deliberate OPPOSITE of [[webhook-fail-closed]], and the two get conflated because they share the word "verify".** A webhook signature governs **inbound authenticity** — an unsigned request is provably not from Stripe, so fail **closed**. A bot check governs **friction on a human** — an unreachable third party is not evidence of abuse, so fail **open**. Same word, opposite correct answer. Write that reasoning next to the code, or someone will "fix" one into the other, and a payment path that fails closed on a Cloudflare blip is an outage you inflicted on yourself.
613
+ >
614
+ > **An in-memory rate limiter's real ceiling is \`limit × instances\`.** On a serverless host that is not good enough for a money path — card-testing fans out, which is exactly what defeats per-instance state. Back the limit with a shared store ([[z2w-magic-link-auth]] §8.6.1). The shared store must **also** fail open and loudly: a limiter outage must not become a payment outage, but the caller has to be able to tell "checked, under the limit" from "could not check."
615
+ >
616
+ > **Turnstile tokens are SINGLE-USE** — siteverify consumes them — so reset the widget after every attempt, or the customer's second try comes back \`timeout-or-duplicate\` and reads as a bot. Tokens also expire after ~5 minutes, which any customer reading a page before paying will cross: refresh on \`expired\`, don't fail at submit.
617
+ >
618
+ > *Reference implementation: \`z2w-crowdcommerce\` v0.7.0 (2026-08-06), which has the reasoning written next to the code. Standard settled 2026-08-07 with \`z2w-seller-suite\`, whose own retrofit supplied the 2-of-3 measurement above.*`;
589
619
  const TEXT_SIZE_BODY = `### Text size (always)
590
620
 
591
621
  > **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.`;
@@ -610,6 +640,7 @@ const BODIES = {
610
640
  "seo-baseline": SEO_BASELINE_BODY,
611
641
  "email-service": EMAIL_SERVICE_BODY,
612
642
  moderation: MODERATION_BODY,
643
+ "card-path-bot-protection": CARD_PATH_BOT_PROTECTION_BODY,
613
644
  "text-size": TEXT_SIZE_BODY,
614
645
  "test-count": TEST_COUNT_BODY,
615
646
  };
@@ -625,6 +656,7 @@ const APPLICABILITY = {
625
656
  "seo-baseline": checkSeoBaseline,
626
657
  "email-service": checkEmailService,
627
658
  moderation: checkModeration,
659
+ "card-path-bot-protection": checkCardPathBotProtection,
628
660
  "text-size": checkTextSize,
629
661
  "test-count": checkTestCount,
630
662
  };
package/dist/wizard.js CHANGED
@@ -156,6 +156,12 @@ export async function runWizard(opts) {
156
156
  ? "yes"
157
157
  : "no";
158
158
  const hasObservability = await askValidated(prompter, "8f. Wire Sentry runtime-error tracking (yes/no):", parseYesNo, observabilityDefault, out);
159
+ // Default NO. Unlike Sentry there is no type-based smart default worth
160
+ // guessing: "will this take a card" is a product decision the operator knows
161
+ // and the project type does not predict. Answering yes emits the protected
162
+ // card-path shape rather than leaving the first payment route bare — which is
163
+ // only cheap BEFORE the code exists ([[stripe-elements-confirm-path]] §8).
164
+ const acceptsCards = await askValidated(prompter, "8g. Will this project accept credit cards — checkout, donations, save-a-card (yes/no):", parseYesNo, "no", out);
159
165
  const result = {
160
166
  slug,
161
167
  description,
@@ -170,6 +176,7 @@ export async function runWizard(opts) {
170
176
  sendsEmail,
171
177
  hasUserContent,
172
178
  hasObservability,
179
+ acceptsCards,
173
180
  };
174
181
  if (customBrand) {
175
182
  result.customBrand = customBrand;
package/dist/writer.js CHANGED
@@ -427,6 +427,19 @@ export function parseScaffoldInputs(json) {
427
427
  }
428
428
  inputs.hostRoutedTenancy = obj["hostRoutedTenancy"];
429
429
  }
430
+ // Optional: whether this project will accept credit cards. Defaults to false.
431
+ // When true, the nextjs scaffolder emits the protected card-path shape
432
+ // (Turnstile verifier + an abuse policy sized for card entry + the widget +
433
+ // an enforcement test) instead of leaving the first payment route bare, and
434
+ // the standards resolver inserts the card-path bot-protection standard.
435
+ // Kerry's 2026-08-06 directive; four design decisions settled with
436
+ // z2w-seller-suite on 2026-08-07. See [[stripe-elements-confirm-path]] §8.
437
+ if (obj["acceptsCards"] !== undefined) {
438
+ if (typeof obj["acceptsCards"] !== "boolean") {
439
+ throw new WriterError(`--input field "acceptsCards" must be a boolean, got ${typeof obj["acceptsCards"]}.`);
440
+ }
441
+ inputs.acceptsCards = obj["acceptsCards"];
442
+ }
430
443
  // Optional: the verbatim instantiation prompt, recorded on the Airtable row.
431
444
  // The --input path has no brief to capture, so callers may supply it here;
432
445
  // when omitted, the Airtable write reminds the agent to add it by hand.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.13.0",
3
+ "version": "0.15.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",