@zero2webmaster/starter-kit 0.5.2 → 0.5.3
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 +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/scaffolders/common.d.ts +8 -0
- package/dist/scaffolders/common.js +70 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# z2w-starter-kit
|
|
2
2
|
|
|
3
|
-
**Version:** 0.5.
|
|
3
|
+
**Version:** 0.5.3 | **Framework:** 2.13.0
|
|
4
4
|
|
|
5
5
|
> Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
|
|
6
6
|
|
|
@@ -99,4 +99,4 @@ For licensing inquiries: kerry@zero2webmaster.com.
|
|
|
99
99
|
---
|
|
100
100
|
|
|
101
101
|
*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.*
|
|
102
|
-
*Version: 0.5.
|
|
102
|
+
*Version: 0.5.3 | Last Updated: 2026-07-22*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { writeScaffold } from "./writer.js";
|
|
2
2
|
import type { ScaffoldFile } from "./scaffolders/common.js";
|
|
3
3
|
import type { StandardDecision } from "./standards.js";
|
|
4
|
-
export declare const version = "0.5.
|
|
4
|
+
export declare const version = "0.5.3";
|
|
5
5
|
export type ProjectType = "wp-plugin" | "cf-worker" | "cf-pages" | "nextjs" | "python-service" | "node-service" | "library" | "protocol-repo";
|
|
6
6
|
export type BrandPreset = "save-the-frogs" | "bansuri-bliss" | "zero2webmaster" | "custom";
|
|
7
7
|
export type DbStrategy = "none" | "neon-postgres" | "supabase" | "sqlite" | "mysql-wp" | "other";
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import * as path from "node:path";
|
|
|
21
21
|
import { Writable } from "node:stream";
|
|
22
22
|
import { isValidSlug } from "./parse-brief.js";
|
|
23
23
|
import { writeScaffold } from "./writer.js";
|
|
24
|
-
export const version = "0.5.
|
|
24
|
+
export const version = "0.5.3";
|
|
25
25
|
// Canonical enum value-arrays. These live here, next to the type unions they
|
|
26
26
|
// enumerate, so both the CLI's confirm/wizard flows (which re-export them) and
|
|
27
27
|
// the programmatic `validateScaffoldInputs` share one source of truth. Keep
|
|
@@ -26,6 +26,14 @@ export declare function commonHandoff(inputs: ScaffoldInputs, opts: ScaffolderOp
|
|
|
26
26
|
* CLAUDE.md is validated for leftover markers — see writer.ts).
|
|
27
27
|
*/
|
|
28
28
|
export declare function commonProjectBrief(inputs: ScaffoldInputs, opts: ScaffolderOptions | undefined, spec: BrandPresetSpec): ScaffoldFile | null;
|
|
29
|
+
/**
|
|
30
|
+
* Emit the short coordination-onboarding pointer — but ONLY for a project that
|
|
31
|
+
* participates in the bulletin. Returns null otherwise (a non-participating
|
|
32
|
+
* project has nothing to onboard onto). Approach (a): the file points at the
|
|
33
|
+
* canonical primer in the bulletin repo rather than embedding it, so there is
|
|
34
|
+
* one source of truth. See {@link COORDINATION_ONBOARDING_TEMPLATE}.
|
|
35
|
+
*/
|
|
36
|
+
export declare function commonCoordinationOnboarding(inputs: ScaffoldInputs, opts: ScaffolderOptions | undefined, spec: BrandPresetSpec): ScaffoldFile | null;
|
|
29
37
|
export declare function commonTroubleshooting(inputs: ScaffoldInputs, opts: ScaffolderOptions | undefined, spec: BrandPresetSpec): ScaffoldFile;
|
|
30
38
|
export declare function commonChangelog(inputs: ScaffoldInputs, opts: ScaffolderOptions | undefined, spec: BrandPresetSpec): ScaffoldFile;
|
|
31
39
|
export declare function commonMarketing(inputs: ScaffoldInputs, opts: ScaffolderOptions | undefined, spec: BrandPresetSpec): ScaffoldFile;
|
|
@@ -659,6 +659,71 @@ export function commonProjectBrief(inputs, opts, spec) {
|
|
|
659
659
|
content: `${header}${brief}\n`,
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
|
+
// Emitted ONLY for projects that participate in the coordination bulletin
|
|
663
|
+
// (`participateInBulletin === true`) — a SHORT pointer at the canonical,
|
|
664
|
+
// project-agnostic onboarding primer owned by the bulletin repo
|
|
665
|
+
// (`COORDINATION_ONBOARDING.md` at the root of zero2webmaster/z2w-agent-coordination,
|
|
666
|
+
// generalized 2026-07-22 from the leaderboard pilot). Approach (a) per the
|
|
667
|
+
// 2026-07-22 z2w-agent-coordination ask: point at the single source of truth
|
|
668
|
+
// rather than freezing a copy in every project — the same reasoning the
|
|
669
|
+
// scaffolder already uses to stamp the Agent Coordination block from the live
|
|
670
|
+
// AGENT_PROTOCOL.md fingerprint rather than a paraphrase. Keep this file to one
|
|
671
|
+
// screen; the depth lives in the canonical primer it links.
|
|
672
|
+
const COORDINATION_ONBOARDING_TEMPLATE = `# Coordination Onboarding — {{slug}}
|
|
673
|
+
|
|
674
|
+
> **Read this first if you're a fresh agent on \`{{slug}}\`.** This is a short
|
|
675
|
+
> pointer, not the full guide. \`{{slug}}\` participates in the Z2W cross-project
|
|
676
|
+
> coordination bulletin, and the canonical, always-current onboarding primer lives
|
|
677
|
+
> in the bulletin repo — **not here** — so there is a single source of truth.
|
|
678
|
+
|
|
679
|
+
## Where the canonical primer lives
|
|
680
|
+
|
|
681
|
+
Read **\`COORDINATION_ONBOARDING.md\`** at the root of the coordination bulletin repo
|
|
682
|
+
(\`zero2webmaster/z2w-agent-coordination\`), cloned locally at one of:
|
|
683
|
+
|
|
684
|
+
- \`~/Desktop/Zero2Webmaster/AI/Cursor Projects/z2w-agent-coordination/COORDINATION_ONBOARDING.md\` (primary), or
|
|
685
|
+
- \`~/.cache/z2w-coordination/COORDINATION_ONBOARDING.md\` (fallback clone)
|
|
686
|
+
|
|
687
|
+
\`git pull --ff-only\` first, then read it. It orients you to the three core Z2W
|
|
688
|
+
systems (the coordination bulletin, the Skill Vault, and the starter-kit + Templates)
|
|
689
|
+
and walks you through joining the bulletin as \`{{slug}}\`.
|
|
690
|
+
|
|
691
|
+
## The one rule that must not drift
|
|
692
|
+
|
|
693
|
+
When you install the \`## Agent Coordination\` participation block into this project's
|
|
694
|
+
\`CLAUDE.md\` / \`AGENTS.md\`, **always copy it verbatim from the live \`AGENT_PROTOCOL.md\`**
|
|
695
|
+
in the bulletin repo — it carries the current
|
|
696
|
+
\`<!-- z2w-agent-coordination canonical-block vX.Y.Z -->\` fingerprint. **Never** copy a
|
|
697
|
+
version-frozen block from another project or from a primer snapshot; that is exactly
|
|
698
|
+
how canonical-block drift happens.
|
|
699
|
+
|
|
700
|
+
## Your bulletin file
|
|
701
|
+
|
|
702
|
+
This project's bulletin file is \`projects/{{slug}}.md\`. Read it in protocol order at
|
|
703
|
+
session start (\`## Incidents\` → \`## Inbox from Kerry\` → \`## Open questions\` →
|
|
704
|
+
\`## Heads-ups\`), then \`global.md\`. Rewrite \`## Current focus\` at session end.
|
|
705
|
+
|
|
706
|
+
---
|
|
707
|
+
|
|
708
|
+
*Pointer emitted at scaffold time by \`@zero2webmaster/starter-kit\` (mirrors
|
|
709
|
+
[[instantiate-z2w-project]]). The canonical primer it links is owned by
|
|
710
|
+
\`z2w-agent-coordination\` — improve it THERE, never fork a per-project copy.*
|
|
711
|
+
`;
|
|
712
|
+
/**
|
|
713
|
+
* Emit the short coordination-onboarding pointer — but ONLY for a project that
|
|
714
|
+
* participates in the bulletin. Returns null otherwise (a non-participating
|
|
715
|
+
* project has nothing to onboard onto). Approach (a): the file points at the
|
|
716
|
+
* canonical primer in the bulletin repo rather than embedding it, so there is
|
|
717
|
+
* one source of truth. See {@link COORDINATION_ONBOARDING_TEMPLATE}.
|
|
718
|
+
*/
|
|
719
|
+
export function commonCoordinationOnboarding(inputs, opts, spec) {
|
|
720
|
+
if (!inputs.participateInBulletin)
|
|
721
|
+
return null;
|
|
722
|
+
return {
|
|
723
|
+
path: "COORDINATION_ONBOARDING.md",
|
|
724
|
+
content: sub(COORDINATION_ONBOARDING_TEMPLATE, inputs, opts, spec),
|
|
725
|
+
};
|
|
726
|
+
}
|
|
662
727
|
export function commonTroubleshooting(inputs, opts, spec) {
|
|
663
728
|
return {
|
|
664
729
|
path: "TROUBLESHOOTING.md",
|
|
@@ -857,6 +922,11 @@ export function commonBaseFiles(inputs, opts, perTypeNarrative) {
|
|
|
857
922
|
const briefFile = commonProjectBrief(inputs, opts, spec);
|
|
858
923
|
if (briefFile)
|
|
859
924
|
files.push(briefFile);
|
|
925
|
+
// Short pointer at the canonical coordination-onboarding primer — only for a
|
|
926
|
+
// project that participates in the bulletin (see commonCoordinationOnboarding).
|
|
927
|
+
const onboardingFile = commonCoordinationOnboarding(inputs, opts, spec);
|
|
928
|
+
if (onboardingFile)
|
|
929
|
+
files.push(onboardingFile);
|
|
860
930
|
return files;
|
|
861
931
|
}
|
|
862
932
|
/* ─────────────────────────── Email wiring (opt-in) ─────────────────────────
|