@zero2webmaster/starter-kit 0.48.0 → 0.48.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.48.
|
|
3
|
+
**Version:** 0.48.1 | **Framework:** 2.19.0
|
|
4
4
|
|
|
5
5
|
> Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
|
|
6
6
|
|
|
@@ -83,7 +83,8 @@ The Claude Code skill at `~/.claude/skills/instantiate-z2w-project/SKILL.md` and
|
|
|
83
83
|
|
|
84
84
|
## Status
|
|
85
85
|
|
|
86
|
-
- **v0.48.
|
|
86
|
+
- **v0.48.1 (current)** 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.
|
|
87
|
+
- **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.
|
|
87
88
|
- **v0.47.2** records a newly scaffolded project as `Scaffolded` in the Project Registry. An existing `Planning` row is promoted; a later stage such as `Live` is never changed.
|
|
88
89
|
- **v0.47.1** reads pasted briefs more accurately. A multi-tenant product now reads as Zero2Webmaster even when it names SAVE THE FROGS! as a tenant. Card payments are no longer switched on by a sentence about another app's checkout, or by a "donate" button. The slug is read from the `# slug — Project Brief` title line.
|
|
89
90
|
|
|
@@ -147,4 +148,4 @@ Inquiries: kerry@zero2webmaster.com.
|
|
|
147
148
|
---
|
|
148
149
|
|
|
149
150
|
*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.*
|
|
150
|
-
*Version: 0.48.
|
|
151
|
+
*Version: 0.48.1 | Last Updated: 2026-10-31*
|
|
@@ -231,7 +231,9 @@ function quickStartFor(inputs) {
|
|
|
231
231
|
"```bash",
|
|
232
232
|
"python3 -m venv .venv",
|
|
233
233
|
"source .venv/bin/activate",
|
|
234
|
-
|
|
234
|
+
// Quoted, and no trailing `# …`: zsh globs an unquoted `[` and does not treat
|
|
235
|
+
// `#` as a comment on an interactive line, so either one breaks a paste.
|
|
236
|
+
"pip install -e '.[dev]'",
|
|
235
237
|
`uvicorn ${slugUnder}.main:app --reload`,
|
|
236
238
|
"```",
|
|
237
239
|
].join("\n");
|
package/dist/standards.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export interface StandardsResolution {
|
|
|
78
78
|
* family — the safe default for anything else with `has_web_ui=true`.
|
|
79
79
|
*/
|
|
80
80
|
export declare function fathomEnvVarFor(projectType: ProjectType): string;
|
|
81
|
-
export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.
|
|
81
|
+
export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.36";
|
|
82
82
|
/**
|
|
83
83
|
* The canonical **Capture Learnings** block, emitted VERBATIM into every
|
|
84
84
|
* scaffolded `CLAUDE.md`.
|
package/dist/standards.js
CHANGED
|
@@ -486,7 +486,7 @@ const NEON_CAREFUL_BODY = `### Neon-careful (Neon Postgres)
|
|
|
486
486
|
// Two consecutive handoffs compared this constant against the DOCUMENT version
|
|
487
487
|
// and reported a "15-version gap" that did not exist — the real gap was 4. Read
|
|
488
488
|
// the `<!-- ... canonical-block vX.Y.Z -->` comment, never the `**Version:**` line.
|
|
489
|
-
export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.
|
|
489
|
+
export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.36";
|
|
490
490
|
/**
|
|
491
491
|
* The canonical **Capture Learnings** block, emitted VERBATIM into every
|
|
492
492
|
* scaffolded `CLAUDE.md`.
|
package/dist/summary.js
CHANGED
|
@@ -71,7 +71,10 @@ function installCommandFor(projectType) {
|
|
|
71
71
|
case "library":
|
|
72
72
|
return "npm install";
|
|
73
73
|
case "python-service":
|
|
74
|
-
|
|
74
|
+
// `[dev]`, quoted: the scaffold's own test (`test_health.py`) needs the dev extras
|
|
75
|
+
// (httpx), and a plain `-e .` fails with a misleading Starlette error. Quoted because
|
|
76
|
+
// zsh treats unquoted `[...]` as a glob and refuses the line ("no matches found").
|
|
77
|
+
return "python -m venv .venv && source .venv/bin/activate && pip install -e '.[dev]'";
|
|
75
78
|
case "protocol-repo":
|
|
76
79
|
return null;
|
|
77
80
|
}
|
|
@@ -126,8 +129,8 @@ function buildNextActions(inputs, result, repoAutoCreated) {
|
|
|
126
129
|
}
|
|
127
130
|
if (isDecisionInserted(result.decisions, "neon-careful")) {
|
|
128
131
|
actions.push({
|
|
129
|
-
label: `Create the Neon project, then set DATABASE_URL in the production environment`,
|
|
130
|
-
note: "see [[neon-postgres]] — keep /health DB-free, pool size 1 in monitoring contexts",
|
|
132
|
+
label: `Create the Neon project with AUTOSCALING compute (minimum 0.25 CU, maximum 2 to 8 CU, never a fixed size), then set DATABASE_URL in the production environment`,
|
|
133
|
+
note: "see [[neon-postgres]] new-project checklist — a fixed 1 CU bills 1 CU for every awake second (up to 4x a 0.25 floor); keep /health DB-free, pool size 1 in monitoring contexts",
|
|
131
134
|
});
|
|
132
135
|
}
|
|
133
136
|
if (isDecisionInserted(result.decisions, "uptime-kuma")) {
|
package/package.json
CHANGED
|
@@ -182,6 +182,24 @@ export function strictExitReasons({ strict, statusOnly, unreadableStatus = [], z
|
|
|
182
182
|
// The buckets are DISJOINT and CONSERVING: every input entry lands in exactly one, so the
|
|
183
183
|
// four lengths always sum to the input length. That is what makes the report auditable —
|
|
184
184
|
// an entry cannot go missing without changing a number somebody prints.
|
|
185
|
+
// The older `status` column is the Airtable-era select list (Active, Not Yet Started,
|
|
186
|
+
// Preparing Now, Ready To Go!, Deprecated - Successful, No Longer Needed!, Retired). It is
|
|
187
|
+
// not authoritative — `production_status` is — but it still has a reader that matters:
|
|
188
|
+
// `z2w-agent-coordination`'s drift-detection.yml filters on `status = 'Active'`, so a project
|
|
189
|
+
// retired only in `production_status` kept being drift-checked as if it were running.
|
|
190
|
+
// (`z2w-science-suite`, 2026-10-30: `Retired` / `Active`.)
|
|
191
|
+
//
|
|
192
|
+
// So: a row whose production status is Retired and whose legacy status still says Active
|
|
193
|
+
// gets `Retired`. Every OTHER legacy value is left alone — "Deprecated - Successful" and
|
|
194
|
+
// "No Longer Needed!" are richer than `Retired`, and they are already non-Active, which is
|
|
195
|
+
// all the reader needs. Nothing is ever moved back to Active: un-retiring a project is a
|
|
196
|
+
// decision for a human, not an inference from a bulletin line.
|
|
197
|
+
// Returns the value to write, or null for "leave it".
|
|
198
|
+
export function legacyStatusFor(productionStatus, legacyStatus) {
|
|
199
|
+
if (productionStatus === "Retired" && legacyStatus === "Active") return "Retired";
|
|
200
|
+
return null;
|
|
201
|
+
}
|
|
202
|
+
|
|
185
203
|
export function selectBulletinFiles(entries) {
|
|
186
204
|
const md = entries.filter((f) => f.endsWith(".md"));
|
|
187
205
|
const project = md.filter((f) => !f.startsWith("_"));
|
|
@@ -811,7 +829,7 @@ async function main() {
|
|
|
811
829
|
declaredEmpty.push(slug);
|
|
812
830
|
}
|
|
813
831
|
|
|
814
|
-
const [current] = await sql`SELECT production_status, status_qualifier, consumes FROM projects WHERE slug = ${slug}`;
|
|
832
|
+
const [current] = await sql`SELECT production_status, status, status_qualifier, consumes FROM projects WHERE slug = ${slug}`;
|
|
815
833
|
const curConsumes = current?.consumes ?? [];
|
|
816
834
|
|
|
817
835
|
// ADDITIVE BY DEFAULT. Prose parsing is best-effort, so a miss must never DELETE a
|
|
@@ -849,7 +867,13 @@ async function main() {
|
|
|
849
867
|
const consumesChanged = !args.statusOnly
|
|
850
868
|
&& (nextConsumes.length > 0 || retracted.length > 0)
|
|
851
869
|
&& JSON.stringify([...nextConsumes].sort()) !== JSON.stringify([...curConsumes].sort());
|
|
852
|
-
|
|
870
|
+
// Judged against the status the row WILL have, so a project retired in this same run
|
|
871
|
+
// is caught, and so is one retired in an earlier run before this check existed.
|
|
872
|
+
const nextLegacyStatus = current
|
|
873
|
+
? legacyStatusFor(liveStatus || current.production_status, current.status)
|
|
874
|
+
: null;
|
|
875
|
+
const legacyChanged = nextLegacyStatus !== null;
|
|
876
|
+
if (!statusChanged && !qualifierChanged && !consumesChanged && !legacyChanged) continue;
|
|
853
877
|
|
|
854
878
|
// Surface edges we can't match to a registry row: valid (external backends render as
|
|
855
879
|
// "external" on the graph) but also how a stray non-app string sneaks in from prose.
|
|
@@ -859,6 +883,7 @@ async function main() {
|
|
|
859
883
|
plan.push({ slug, liveStatus, statusQualifier, asOf, consumes: nextConsumes, statusChanged, qualifierChanged, consumesChanged, current });
|
|
860
884
|
console.log(` • ${slug}: ` +
|
|
861
885
|
(statusChanged ? `status ${current?.production_status ?? "∅"} → ${liveStatus} ` : "") +
|
|
886
|
+
(legacyChanged ? `legacy status "${current.status}" → "${nextLegacyStatus}" ` : "") +
|
|
862
887
|
(qualifierChanged ? `qualifier ${current?.status_qualifier ? `"${current.status_qualifier}"` : "∅"} → ${statusQualifier ? `"${statusQualifier}"` : "∅"} ` : "") +
|
|
863
888
|
(consumesChanged ? `consumes [${curConsumes.join(", ") || "∅"}] → [${nextConsumes.join(", ")}]` : ""));
|
|
864
889
|
if (retracted.length) console.log(` ↩ RETRACTED (struck out in the bulletin): ${retracted.join(", ")}`);
|
|
@@ -881,6 +906,22 @@ async function main() {
|
|
|
881
906
|
updated_at = now()
|
|
882
907
|
WHERE slug = ${slug}`;
|
|
883
908
|
}
|
|
909
|
+
if (legacyChanged) {
|
|
910
|
+
// `AND status = 'Active'` re-checks at write time, so a human who set a richer
|
|
911
|
+
// value between the read and this write is not overwritten.
|
|
912
|
+
//
|
|
913
|
+
// A permission error here WARNS instead of failing the run. The scheduled job runs
|
|
914
|
+
// as `registry_reconciler`, whose UPDATE on `status` is a separate grant (see
|
|
915
|
+
// directives/project-registry-write-path.md); this column is not authoritative, so
|
|
916
|
+
// a missing grant must not turn the whole reconciliation red.
|
|
917
|
+
try {
|
|
918
|
+
await sql`UPDATE projects SET status = ${nextLegacyStatus}, updated_at = now()
|
|
919
|
+
WHERE slug = ${slug} AND status = 'Active'`;
|
|
920
|
+
} catch (err) {
|
|
921
|
+
if (err?.code !== "42501") throw err;
|
|
922
|
+
console.warn(` ⚠ ${slug}: legacy status NOT written: this role lacks UPDATE on projects.status (grant it; see directives/project-registry-write-path.md).`);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
884
925
|
if (consumesChanged) {
|
|
885
926
|
// MUST write nextConsumes, not consumes. `consumes` is the raw parse of THIS
|
|
886
927
|
// bulletin file; `nextConsumes` is the additive union with what's already in
|