@nusoft/nuos-build-catalogue 0.25.0 → 0.27.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/dist/cli.js +24 -0
- package/dist/commands/init.js +10 -32
- package/dist/commands/mode.d.ts +24 -0
- package/dist/commands/mode.js +82 -0
- package/dist/commands/render.d.ts +25 -0
- package/dist/commands/render.js +40 -0
- package/dist/render/architecture.d.ts +18 -0
- package/dist/render/architecture.js +74 -0
- package/dist/render/design-system.d.ts +26 -0
- package/dist/render/design-system.js +308 -0
- package/dist/render/html.d.ts +47 -0
- package/dist/render/html.js +258 -0
- package/dist/render/maps.d.ts +18 -0
- package/dist/render/maps.js +67 -0
- package/dist/render/parser.d.ts +54 -0
- package/dist/render/parser.js +162 -0
- package/dist/render/run.d.ts +29 -0
- package/dist/render/run.js +92 -0
- package/dist/render/surfaces.d.ts +23 -0
- package/dist/render/surfaces.js +144 -0
- package/package.json +2 -2
- package/templates/agents/coder.md +7 -5
- package/templates/agents/reviewer.md +6 -4
- package/templates/protocols/build-wu.md +13 -63
- package/templates/protocols/end-of-session.md +9 -3
- package/templates/protocols/persona-new.md +1 -1
- package/templates/protocols/plan-architecture.md +10 -24
- package/templates/protocols/plan-initial-wu.md +6 -26
- package/templates/protocols/plan-maps.md +5 -17
- package/templates/protocols/plan-orientation.md +13 -29
- package/templates/protocols/plan-review.md +2 -0
- package/templates/protocols/plan-uiux.md +35 -86
- package/templates/protocols/start-of-session.md +13 -1
- package/templates/protocols/wu-new.md +1 -1
- package/templates/starter-kit/CLAUDE.md +9 -37
- package/templates/starter-kit/docs/build/OPERATOR-MODES.md +44 -0
- package/templates/starter-kit/methodfile.json +5 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Operator modes — coaching, standard, developer
|
|
2
|
+
|
|
3
|
+
Every operator-facing protocol reads `operator.mode` from `methodfile.json` and adapts its **tone, explanation depth, and assumed background** accordingly. Set once at first `/start-of-session`; changeable via `nuos-catalogue mode <name>`.
|
|
4
|
+
|
|
5
|
+
**Modes change tone — never artefacts, file paths, phases, or discipline.** A coaching-mode catalogue and a developer-mode catalogue look identical on disk; only the conversation that produced them sounded different. Drift discipline, design-it-twice, verification gates apply regardless.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Coaching
|
|
10
|
+
|
|
11
|
+
Audience: a domain expert with **no software engineering background**, learning the build process while producing real artefacts. Possibly their first software project.
|
|
12
|
+
|
|
13
|
+
- **Explain before doing.** One short paragraph per step on what it is, why it exists, what it produces.
|
|
14
|
+
- **Define every term inline on first use.** Work unit, persona, contract, register, decision, open question, map, swarm, embedder, chunk — all of them. Link to `GLOSSARY.md` after the inline definition.
|
|
15
|
+
- **Reach for non-software analogies.** A persona is "like the patient file a doctor reviews before an appointment"; a contract is "the menu the dining room is allowed to order from". Analogy first, then the technical term.
|
|
16
|
+
- **Offer optional depth.** *"Want to know why we file decisions separately? Just ask — otherwise I'll keep moving."* Don't force it.
|
|
17
|
+
- **Name progress as it happens.** *"That's your first persona filed. P001 now anchors every later decision."*
|
|
18
|
+
- **Invite questions every step.** *"Anything unclear before we keep going?"*
|
|
19
|
+
- **Pace ≈ 1.5× standard.** The goal is learning, not finishing fast.
|
|
20
|
+
|
|
21
|
+
Never drop untranslated jargon (no "upsert" — say "save"). Never assume the operator knows what a CLI, JSON file, or markdown file is.
|
|
22
|
+
|
|
23
|
+
## Standard (default)
|
|
24
|
+
|
|
25
|
+
Audience: a domain expert comfortable enough with tooling to follow plain instructions — has used git or a CLI, has shipped projects, isn't a working software engineer. The catalogue's original assumed reader.
|
|
26
|
+
|
|
27
|
+
- Plain English. Define a load-bearing term ("work unit", "contract") on first session use, then use it freely.
|
|
28
|
+
- Brief rationale where helpful (*"we file personas first because everything downstream references them"*) — not exhaustive.
|
|
29
|
+
- Steady pace. Trust the operator to ask if unclear.
|
|
30
|
+
|
|
31
|
+
This is the existing voice of the catalogue. If a step's mode is ambiguous, fall back to this.
|
|
32
|
+
|
|
33
|
+
## Developer
|
|
34
|
+
|
|
35
|
+
Audience: an **experienced software engineer** who has used a comparable harness before (Nx, Turborepo, ADR repos, agile boards). Wants to produce artefacts and move on.
|
|
36
|
+
|
|
37
|
+
- **Technical vocabulary used directly.** Work unit, contract, register, upsert, embedder, tenant, chunk — no inline definitions; glossary is one link away.
|
|
38
|
+
- **No welcome rituals.** `/start-of-session` opens with status; Phase A opens with *"Project description — paragraph?"*.
|
|
39
|
+
- **No "why this matters" interludes.** Read intent from structure.
|
|
40
|
+
- **Telegraphic prose.** *"P001 filed. Next?"* beats a celebration.
|
|
41
|
+
- **Diff-friendly confirmations.** `personas/P001-jane.md (Jane, Y10 maths teacher; anchors curriculum-fit)` over a paragraph.
|
|
42
|
+
- **No optional-depth offers.** They'll ask if they want context.
|
|
43
|
+
|
|
44
|
+
Never trim the artefacts themselves — all seven persona dimensions still get filed; every decision still gets a D-NNN. Terse means terse *prose*, not skipped files. Drift discipline, design-it-twice, verification gates still apply.
|
|
@@ -60,6 +60,11 @@
|
|
|
60
60
|
"phaseE_initialWorkUnits": "not_started",
|
|
61
61
|
"completedAt": null
|
|
62
62
|
},
|
|
63
|
+
"operator": {
|
|
64
|
+
"mode": null,
|
|
65
|
+
"modeSelectedAt": null,
|
|
66
|
+
"comment": "Tone & explanation depth for every operator-facing protocol (plan-*, start-of-session, end-of-session, wu-new, persona-new, build-wu). One of 'coaching' (no-dev-experience, walks through everything), 'standard' (domain-expert default, plain English), 'developer' (experienced dev, technical vocabulary, terse). Picked at first /start-of-session and persisted here. See docs/build/OPERATOR-MODES.md for the canonical definition of each mode."
|
|
67
|
+
},
|
|
63
68
|
"swarm": {
|
|
64
69
|
"models": {
|
|
65
70
|
"architect": "opus",
|