@zero2webmaster/starter-kit 0.16.0 → 0.16.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/standards.d.ts +2 -2
- package/dist/standards.js +4 -4
- package/package.json +1 -1
- package/scripts/rollup-integrations.mjs +37 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# z2w-starter-kit
|
|
2
2
|
|
|
3
|
-
**Version:** 0.16.
|
|
3
|
+
**Version:** 0.16.2 | **Framework:** 2.18.0
|
|
4
4
|
|
|
5
5
|
> Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
|
|
6
6
|
|
|
@@ -115,4 +115,4 @@ Inquiries: kerry@zero2webmaster.com.
|
|
|
115
115
|
---
|
|
116
116
|
|
|
117
117
|
*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.*
|
|
118
|
-
*Version: 0.16.
|
|
118
|
+
*Version: 0.16.2 | Last Updated: 2026-08-13*
|
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.25";
|
|
55
55
|
/**
|
|
56
56
|
* The canonical **Capture Learnings** block, emitted VERBATIM into every
|
|
57
57
|
* scaffolded `CLAUDE.md`.
|
|
@@ -68,7 +68,7 @@ export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.24";
|
|
|
68
68
|
* missing it on 2026-07-27 — including every project this CLI has scaffolded.
|
|
69
69
|
* Reported as an ACTION by `z2w-observability-bridge` (2026-07-27); closed here.
|
|
70
70
|
*/
|
|
71
|
-
export declare const CAPTURE_LEARNINGS_BLOCK_VERSION = "v1.
|
|
71
|
+
export declare const CAPTURE_LEARNINGS_BLOCK_VERSION = "v1.2.0";
|
|
72
72
|
/**
|
|
73
73
|
* The literal markdown heading each standard renders, keyed by `StandardKey`.
|
|
74
74
|
*
|
package/dist/standards.js
CHANGED
|
@@ -403,7 +403,7 @@ const NEON_CAREFUL_BODY = `### Neon-careful (Neon Postgres)
|
|
|
403
403
|
// Two consecutive handoffs compared this constant against the DOCUMENT version
|
|
404
404
|
// and reported a "15-version gap" that did not exist — the real gap was 4. Read
|
|
405
405
|
// the `<!-- ... canonical-block vX.Y.Z -->` comment, never the `**Version:**` line.
|
|
406
|
-
export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.
|
|
406
|
+
export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.25";
|
|
407
407
|
/**
|
|
408
408
|
* The canonical **Capture Learnings** block, emitted VERBATIM into every
|
|
409
409
|
* scaffolded `CLAUDE.md`.
|
|
@@ -420,7 +420,7 @@ export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.24";
|
|
|
420
420
|
* missing it on 2026-07-27 — including every project this CLI has scaffolded.
|
|
421
421
|
* Reported as an ACTION by `z2w-observability-bridge` (2026-07-27); closed here.
|
|
422
422
|
*/
|
|
423
|
-
export const CAPTURE_LEARNINGS_BLOCK_VERSION = "v1.
|
|
423
|
+
export const CAPTURE_LEARNINGS_BLOCK_VERSION = "v1.2.0";
|
|
424
424
|
/**
|
|
425
425
|
* Mirrored from the [[instantiate-z2w-project]] skill's
|
|
426
426
|
* `references/standards-block.md` per OP #2. **The skill had this standard and
|
|
@@ -446,7 +446,7 @@ const CAPTURE_LEARNINGS_BODY = `## Capture Learnings (session end)
|
|
|
446
446
|
|
|
447
447
|
<!-- cursor-project-templates capture-learnings-block ${CAPTURE_LEARNINGS_BLOCK_VERSION} -->
|
|
448
448
|
|
|
449
|
-
*(↓ copy this section, including this heading AND the HTML fingerprint comment above, verbatim into each project's \`CLAUDE.md\`, and into \`AGENTS.md\`/\`GEMINI.md\` **where the project already keeps them** — never create those files just to hold this block. The fingerprint lets \`grep\` detect drift across projects. Canonical source: \`Resources/CAPTURE_LEARNINGS_BLOCK.md
|
|
449
|
+
*(↓ copy this section, including this heading AND the HTML fingerprint comment above, verbatim into each project's \`CLAUDE.md\`, and into \`AGENTS.md\`/\`GEMINI.md\` **where the project already keeps them** — never create those files just to hold this block. The fingerprint lets \`grep\` detect drift across projects. Canonical source: \`Resources/CAPTURE_LEARNINGS_BLOCK.md\`, in the framework-templates repo named by the fingerprint comment above.)*
|
|
450
450
|
|
|
451
451
|
**At the end of every session, decide whether anything you learned this session should become a skill — and state the verdict in your recap.** This fires by default, unasked. It is **never** a question you put to the project owner ("want me to make a skill?"); it is a decision you make and report.
|
|
452
452
|
|
|
@@ -462,7 +462,7 @@ const CAPTURE_LEARNINGS_BODY = `## Capture Learnings (session end)
|
|
|
462
462
|
|
|
463
463
|
**Report the verdict even when it's negative.** "Nothing worth capturing this session" is a valid and expected outcome, and saying it out loud is the point: a reflex nobody can see is indistinguishable from a reflex nobody ran.
|
|
464
464
|
|
|
465
|
-
**If you notice this step missing from another project, do not just fix that one file.** Two or more projects missing it means the *enrollment* step is the bug, not the rows. File it with
|
|
465
|
+
**If you notice this step missing from another project, do not just fix that one file.** Two or more projects missing it means the *enrollment* step is the bug, not the rows. File it with the three owners — the repo that owns this canonical block, the repo that owns the scaffold/\`init\` path, and the repo that owns the propagation checker (a fingerprint drift sweep is the only propagation mechanism in this ecosystem that has demonstrably worked) — rather than with whichever project you happened to notice it in. The **\`capture-learning\`** skill names all three for this organization.
|
|
466
466
|
|
|
467
467
|
Full routing rubric, worked examples, and the Skill Vault's own commit conventions: the **\`capture-learning\`** skill.
|
|
468
468
|
`;
|
package/package.json
CHANGED
|
@@ -131,6 +131,35 @@ export function parseArgs(argv) {
|
|
|
131
131
|
return args;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
// Decide whether `--strict` should fail the run, and say WHY.
|
|
135
|
+
//
|
|
136
|
+
// 🔴 `--strict` MUST only judge the dimensions THIS INVOCATION ACTUALLY RECONCILED.
|
|
137
|
+
// `--status-only` deliberately skips the edges half (see `consumesChanged` below), so a
|
|
138
|
+
// zero-edge section is a finding that run has no power to act on and did not look at.
|
|
139
|
+
// The first cut gated on `unreadableStatus || zeroEdges` unconditionally, which meant
|
|
140
|
+
// `--status-only --strict` — the exact pair the Project Registry reconciler cron runs —
|
|
141
|
+
// exited non-zero whenever ANY project file had an unparseable Integrations section,
|
|
142
|
+
// forever, no matter how clean the status lines it was actually reconciling were.
|
|
143
|
+
// `z2w-agent-coordination` reported it 2026-08-13 as the last thing keeping that cron on
|
|
144
|
+
// `workflow_dispatch`.
|
|
145
|
+
//
|
|
146
|
+
// The general rule, and it is why this is a named function rather than an `if`: a strict
|
|
147
|
+
// gate that fails on a signal its own mode ignores is not strict, it is stuck — and it
|
|
148
|
+
// trains the operator to pass `--strict` and disregard the exit code, which costs more
|
|
149
|
+
// than never having had it. Returns the blocking reasons so the caller can print them.
|
|
150
|
+
export function strictExitReasons({ strict, statusOnly, unreadableStatus = [], zeroEdges = [] }) {
|
|
151
|
+
if (!strict) return [];
|
|
152
|
+
const reasons = [];
|
|
153
|
+
if (unreadableStatus.length > 0) {
|
|
154
|
+
reasons.push(`${unreadableStatus.length} unreadable status line(s) (${unreadableStatus.join(", ")})`);
|
|
155
|
+
}
|
|
156
|
+
// Edges are only reconciled when NOT --status-only, so only judge them then.
|
|
157
|
+
if (!statusOnly && zeroEdges.length > 0) {
|
|
158
|
+
reasons.push(`${zeroEdges.length} zero-edge section(s) (${zeroEdges.join(", ")})`);
|
|
159
|
+
}
|
|
160
|
+
return reasons;
|
|
161
|
+
}
|
|
162
|
+
|
|
134
163
|
// Extract the `## Integrations` section body (everything until the next `## ` heading).
|
|
135
164
|
export function extractIntegrationsSection(md) {
|
|
136
165
|
const lines = md.split("\n");
|
|
@@ -559,8 +588,14 @@ async function main() {
|
|
|
559
588
|
|
|
560
589
|
// A scheduled runner needs a non-zero exit to be visible; a human at a terminal reads
|
|
561
590
|
// the warnings. So strictness is opt-in, and any scheduled invocation should pass it.
|
|
562
|
-
|
|
563
|
-
|
|
591
|
+
const blocking = strictExitReasons({
|
|
592
|
+
strict: args.strict,
|
|
593
|
+
statusOnly: args.statusOnly,
|
|
594
|
+
unreadableStatus,
|
|
595
|
+
zeroEdges,
|
|
596
|
+
});
|
|
597
|
+
if (blocking.length > 0) {
|
|
598
|
+
console.error(`\n✗ --strict: ${blocking.join("; ")}. Exiting non-zero so this does not pass unnoticed.`);
|
|
564
599
|
process.exit(1);
|
|
565
600
|
}
|
|
566
601
|
}
|