@zero2webmaster/starter-kit 0.12.0 → 0.13.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.
- package/README.md +2 -2
- package/dist/standards.d.ts +15 -1
- package/dist/standards.js +59 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# z2w-starter-kit
|
|
2
2
|
|
|
3
|
-
**Version:** 0.
|
|
3
|
+
**Version:** 0.13.0 | **Framework:** 2.13.0
|
|
4
4
|
|
|
5
5
|
> Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
|
|
6
6
|
|
|
@@ -112,4 +112,4 @@ Inquiries: kerry@zero2webmaster.com.
|
|
|
112
112
|
---
|
|
113
113
|
|
|
114
114
|
*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.*
|
|
115
|
-
*Version: 0.
|
|
115
|
+
*Version: 0.13.0 | Last Updated: 2026-08-05*
|
package/dist/standards.d.ts
CHANGED
|
@@ -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" | "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" | "text-size" | "test-count";
|
|
4
4
|
export type StandardDecisionState = "inserted-inline" | "skipped-not-applicable";
|
|
5
5
|
export interface StandardDecision {
|
|
6
6
|
key: StandardKey;
|
|
@@ -69,6 +69,20 @@ export declare const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.19";
|
|
|
69
69
|
* Reported as an ACTION by `z2w-observability-bridge` (2026-07-27); closed here.
|
|
70
70
|
*/
|
|
71
71
|
export declare const CAPTURE_LEARNINGS_BLOCK_VERSION = "v1.1.0";
|
|
72
|
+
/**
|
|
73
|
+
* The literal markdown heading each standard renders, keyed by `StandardKey`.
|
|
74
|
+
*
|
|
75
|
+
* Exists so a test can compare THIS CLI's standard set against the
|
|
76
|
+
* [[instantiate-z2w-project]] skill's `references/standards-block.md` in the
|
|
77
|
+
* skill → CLI direction. That direction had never been checked: OP #2's mirror
|
|
78
|
+
* habit propagates CLI changes INTO the skill, so a standard that existed only
|
|
79
|
+
* in the skill was invisible to every guard here. `temp-files` sat in that blind
|
|
80
|
+
* spot for months (found 2026-08-05) — the skill's Step 6 list named it, the
|
|
81
|
+
* reference file carried a full body for it, and `git log -S` proves this CLI
|
|
82
|
+
* never had it. Derived from `BODIES` rather than restated, so it cannot drift
|
|
83
|
+
* from what actually renders.
|
|
84
|
+
*/
|
|
85
|
+
export declare function standardHeadings(): Record<StandardKey, string>;
|
|
72
86
|
/**
|
|
73
87
|
* Resolve which standards apply to `inputs` and render the standards markdown
|
|
74
88
|
* body suitable for `.replace()`-ing into the `<!-- STANDARDS_BLOCK -->`
|
package/dist/standards.js
CHANGED
|
@@ -51,6 +51,7 @@ const STANDARD_ORDER = [
|
|
|
51
51
|
"uptime-kuma",
|
|
52
52
|
"sentry",
|
|
53
53
|
"neon-careful",
|
|
54
|
+
"temp-files",
|
|
54
55
|
"agent-coordination",
|
|
55
56
|
"seo-baseline",
|
|
56
57
|
"email-service",
|
|
@@ -65,6 +66,7 @@ const TITLES = {
|
|
|
65
66
|
"uptime-kuma": "Uptime Kuma monitor",
|
|
66
67
|
sentry: "Sentry runtime-error tracking (web app)",
|
|
67
68
|
"neon-careful": "Neon-careful (Neon Postgres)",
|
|
69
|
+
"temp-files": "Project-scoped temp files (agent discipline)",
|
|
68
70
|
"agent-coordination": "Agent Coordination (cross-project bulletin)",
|
|
69
71
|
"seo-baseline": "SEO baseline (non-WP web UI)",
|
|
70
72
|
"email-service": "Email service selection",
|
|
@@ -242,6 +244,20 @@ function checkTestCount() {
|
|
|
242
244
|
reason: "Z2W standing org rule (2026-06-20) — every session reports its test count for the portfolio-wide tally",
|
|
243
245
|
};
|
|
244
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Always-on. This is agent working discipline, not a stack choice: any project
|
|
249
|
+
* type can have an agent write a fixture or scratch script, so there is no
|
|
250
|
+
* project shape it fails to apply to (same footing as `text-size` and
|
|
251
|
+
* `test-count`). The scaffold already gitignores `.tmp/` via
|
|
252
|
+
* `GITIGNORE_SECRET_SCRATCH_BLOCK`, so the standard names a directory the
|
|
253
|
+
* emitted repo genuinely has.
|
|
254
|
+
*/
|
|
255
|
+
function checkTempFiles() {
|
|
256
|
+
return {
|
|
257
|
+
applies: true,
|
|
258
|
+
reason: "Agent working discipline — applies to every project type regardless of stack",
|
|
259
|
+
};
|
|
260
|
+
}
|
|
245
261
|
function checkSkillVault() {
|
|
246
262
|
return {
|
|
247
263
|
applies: true,
|
|
@@ -358,6 +374,27 @@ export const CANONICAL_COORDINATION_BLOCK_VERSION = "v0.1.19";
|
|
|
358
374
|
* Reported as an ACTION by `z2w-observability-bridge` (2026-07-27); closed here.
|
|
359
375
|
*/
|
|
360
376
|
export const CAPTURE_LEARNINGS_BLOCK_VERSION = "v1.1.0";
|
|
377
|
+
/**
|
|
378
|
+
* Mirrored from the [[instantiate-z2w-project]] skill's
|
|
379
|
+
* `references/standards-block.md` per OP #2. **The skill had this standard and
|
|
380
|
+
* this CLI never did** — found 2026-08-05 by auditing the reference file against
|
|
381
|
+
* these bodies rather than against `SKILL.md`. `git log -S` confirms it was never
|
|
382
|
+
* here, so every CLI-scaffolded project has been missing it since the skill
|
|
383
|
+
* gained it, while every hand-scaffolded one has it. The gap was invisible
|
|
384
|
+
* because OP #2's mirror habit runs CLI → skill; nothing ever ran skill → CLI.
|
|
385
|
+
*
|
|
386
|
+
* One clause differs from the skill's wording deliberately, and the skill was
|
|
387
|
+
* updated to match: the skill said `.tmp/` is gitignored "by convention", but in
|
|
388
|
+
* a CLI-scaffolded repo it is gitignored by CONSTRUCTION (v0.5.4's
|
|
389
|
+
* `GITIGNORE_SECRET_SCRATCH_BLOCK`), which is a stronger and checkable promise.
|
|
390
|
+
*/
|
|
391
|
+
const TEMP_FILES_BODY = `### Project-scoped temp files (agent discipline)
|
|
392
|
+
|
|
393
|
+
> **Temp files belong in this project's own \`.tmp/\`** — never in \`/tmp/\`, \`/private/tmp/\`, \`~/Desktop/\`, \`~/Downloads/\`, or anywhere else outside the project tree. Applies to any agent-created fixture, smoke-test dataset, scratch script, intermediate export, or scratchpad note. **\`.tmp/\` is already gitignored in this repo** (it ships in the scaffold's \`.gitignore\`), so writing there never accidentally commits. It also survives a reboot — macOS auto-cleans \`/tmp/\` — and it is discoverable in Finder under the project, which is the part that actually matters to a human operator.
|
|
394
|
+
>
|
|
395
|
+
> Acceptable exceptions, used sparingly and announced when taken: cross-project shared fixtures, a file some system process explicitly requires at \`/tmp/\`, and single-command ephemeral roundtrips via \`mktemp\`.
|
|
396
|
+
>
|
|
397
|
+
> **Why this is a standard and not a preference (discovered 2026-06-03):** a \`contest-management\` smoke-test fixture was written to \`/tmp/b22-smoke/\` by an earlier session. The operator could not find it during the browser-side upload step, because Finder hides \`/tmp\` by default and the reasonable place to look was inside the project being tested. Re-running mid-session meant recreating the fixture and moving it to \`<project>/.tmp/b22-smoke/\`. The default already existed; an agent skipping it costs operator time on every dogfood.`;
|
|
361
398
|
const CAPTURE_LEARNINGS_BODY = `## Capture Learnings (session end)
|
|
362
399
|
|
|
363
400
|
<!-- cursor-project-templates capture-learnings-block ${CAPTURE_LEARNINGS_BLOCK_VERSION} -->
|
|
@@ -568,6 +605,7 @@ const BODIES = {
|
|
|
568
605
|
"uptime-kuma": UPTIME_KUMA_BODY,
|
|
569
606
|
sentry: SENTRY_BODY,
|
|
570
607
|
"neon-careful": NEON_CAREFUL_BODY,
|
|
608
|
+
"temp-files": TEMP_FILES_BODY,
|
|
571
609
|
"agent-coordination": AGENT_COORDINATION_BODY,
|
|
572
610
|
"seo-baseline": SEO_BASELINE_BODY,
|
|
573
611
|
"email-service": EMAIL_SERVICE_BODY,
|
|
@@ -582,6 +620,7 @@ const APPLICABILITY = {
|
|
|
582
620
|
"uptime-kuma": checkUptimeKuma,
|
|
583
621
|
sentry: checkSentry,
|
|
584
622
|
"neon-careful": checkNeonCareful,
|
|
623
|
+
"temp-files": checkTempFiles,
|
|
585
624
|
"agent-coordination": checkAgentCoordination,
|
|
586
625
|
"seo-baseline": checkSeoBaseline,
|
|
587
626
|
"email-service": checkEmailService,
|
|
@@ -589,6 +628,26 @@ const APPLICABILITY = {
|
|
|
589
628
|
"text-size": checkTextSize,
|
|
590
629
|
"test-count": checkTestCount,
|
|
591
630
|
};
|
|
631
|
+
/**
|
|
632
|
+
* The literal markdown heading each standard renders, keyed by `StandardKey`.
|
|
633
|
+
*
|
|
634
|
+
* Exists so a test can compare THIS CLI's standard set against the
|
|
635
|
+
* [[instantiate-z2w-project]] skill's `references/standards-block.md` in the
|
|
636
|
+
* skill → CLI direction. That direction had never been checked: OP #2's mirror
|
|
637
|
+
* habit propagates CLI changes INTO the skill, so a standard that existed only
|
|
638
|
+
* in the skill was invisible to every guard here. `temp-files` sat in that blind
|
|
639
|
+
* spot for months (found 2026-08-05) — the skill's Step 6 list named it, the
|
|
640
|
+
* reference file carried a full body for it, and `git log -S` proves this CLI
|
|
641
|
+
* never had it. Derived from `BODIES` rather than restated, so it cannot drift
|
|
642
|
+
* from what actually renders.
|
|
643
|
+
*/
|
|
644
|
+
export function standardHeadings() {
|
|
645
|
+
const out = {};
|
|
646
|
+
for (const key of STANDARD_ORDER) {
|
|
647
|
+
out[key] = BODIES[key].split("\n")[0].trim();
|
|
648
|
+
}
|
|
649
|
+
return out;
|
|
650
|
+
}
|
|
592
651
|
const PREAMBLE = `The following organization standards apply to {{slug}}. Each was selected at instantiation per the conditional rules in the [[instantiate-z2w-project]] skill (Step 6). See each standard's wiki-style link for the full discipline; the inline summaries below are the binding contract for this project.`;
|
|
593
652
|
const NO_APPLICABLE_FALLBACK = `*(No conditional standards apply to this project.)*`;
|
|
594
653
|
/**
|