@zero2webmaster/starter-kit 0.5.0 → 0.5.2
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/node-service.js +9 -0
- package/dist/standards.d.ts +1 -1
- package/dist/standards.js +2 -1
- 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.2 | **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.2 | 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.2";
|
|
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.2";
|
|
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
|
|
@@ -186,9 +186,17 @@ const DOCKERFILE_TEMPLATE = `# {{slug}} — Cloud Run container.
|
|
|
186
186
|
# Cloud Run injects the PORT environment variable at runtime (default 8080);
|
|
187
187
|
# src/index.ts listens on it. Multi-stage build keeps the runtime image small
|
|
188
188
|
# (no dev dependencies, no TypeScript sources).
|
|
189
|
+
#
|
|
190
|
+
# The \`npm install -g npm@11.12.1\` line before each \`npm ci\` is deliberate: the
|
|
191
|
+
# npm bundled in node:20-slim errors on a non-matching OPTIONAL platform dep
|
|
192
|
+
# (e.g. @esbuild/aix-ppc64, pulled in transitively by the vitest/tsx devDeps)
|
|
193
|
+
# with \`EBADPLATFORM\` instead of skipping it, which breaks the build on Cloud
|
|
194
|
+
# Build (linux/x64). Pinning a newer npm that correctly skips non-matching
|
|
195
|
+
# optional deps fixes it. Bump the pin when you next refresh the toolchain.
|
|
189
196
|
|
|
190
197
|
FROM node:20-slim AS build
|
|
191
198
|
WORKDIR /app
|
|
199
|
+
RUN npm install -g npm@11.12.1
|
|
192
200
|
COPY package*.json ./
|
|
193
201
|
RUN npm ci
|
|
194
202
|
COPY tsconfig.json ./
|
|
@@ -198,6 +206,7 @@ RUN npm run build
|
|
|
198
206
|
FROM node:20-slim AS runtime
|
|
199
207
|
WORKDIR /app
|
|
200
208
|
ENV NODE_ENV=production
|
|
209
|
+
RUN npm install -g npm@11.12.1
|
|
201
210
|
COPY package*.json ./
|
|
202
211
|
RUN npm ci --omit=dev
|
|
203
212
|
COPY --from=build /app/dist ./dist
|
package/dist/standards.d.ts
CHANGED
|
@@ -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.
|
|
54
|
+
export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.14";
|
|
55
55
|
/**
|
|
56
56
|
* Resolve which standards apply to `inputs` and render the standards markdown
|
|
57
57
|
* body suitable for `.replace()`-ing into the `<!-- STANDARDS_BLOCK -->`
|
package/dist/standards.js
CHANGED
|
@@ -311,7 +311,7 @@ const NEON_CAREFUL_BODY = `### Neon-careful (Neon Postgres)
|
|
|
311
311
|
// `zero2webmaster/z2w-agent-coordination`'s AGENT_PROTOCOL.md when the embedded
|
|
312
312
|
// block's mechanics change (drift-detection Signal A greps for this exact token).
|
|
313
313
|
// When you sync a newer canonical block below, bump this to match its comment.
|
|
314
|
-
export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.
|
|
314
|
+
export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.14";
|
|
315
315
|
/**
|
|
316
316
|
* The Agent Coordination section, emitted as its own TOP-LEVEL `## Agent
|
|
317
317
|
* Coordination` section (NOT a `###` standards subsection). The bulk is the
|
|
@@ -359,6 +359,7 @@ This project participates in the Z2W cross-project coordination bulletin.
|
|
|
359
359
|
- **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.)
|
|
360
360
|
- **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. It is the field the \`agents.z2w.us\` dashboard reads: a stale timestamp signals "agent ran but said nothing."
|
|
361
361
|
- **Tier 2 — ADDITIONALLY, only if the session shipped code or changed project state:** add a \`## Recent commits\` entry and append any new heads-ups / \`[→ {project}]\` / \`[→ Kerry]\` items.
|
|
362
|
+
- **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.
|
|
362
363
|
- **Size discipline (v0.1.11):** before appending, if \`projects/{this-project}.md\` is approaching ~200 KB, 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). \`## Current focus\` is rewritten in place (never appended).
|
|
363
364
|
- \`git commit -m "{this-project}: {summary}"\` (see §8.2 for agent-identifier format) and \`git push\`.
|
|
364
365
|
- If push fails due to concurrent write from another session: \`git pull --rebase\`, resolve any conflicts, retry push.
|