@nusoft/nuos-build-catalogue 0.17.1 → 0.19.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 +49 -2
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/init.js +25 -0
- package/dist/commands/memory.d.ts +42 -0
- package/dist/commands/memory.js +116 -0
- package/dist/setup/ollama-detect.d.ts +35 -0
- package/dist/setup/ollama-detect.js +83 -0
- package/dist/setup/ollama-install.d.ts +52 -0
- package/dist/setup/ollama-install.js +140 -0
- package/dist/setup/ollama-pull.d.ts +40 -0
- package/dist/setup/ollama-pull.js +104 -0
- package/dist/setup/progress-bar.d.ts +51 -0
- package/dist/setup/progress-bar.js +85 -0
- package/dist/setup/run-llm-setup.d.ts +71 -0
- package/dist/setup/run-llm-setup.js +242 -0
- package/dist/setup/types.d.ts +99 -0
- package/dist/setup/types.js +20 -0
- package/package.json +2 -2
- package/templates/agents/architect.md +16 -0
- package/templates/agents/coder.md +15 -0
- package/templates/agents/debugger.md +15 -0
- package/templates/agents/researcher.md +14 -0
- package/templates/agents/reviewer.md +16 -0
- package/templates/agents/tester.md +15 -0
- package/templates/protocols/build-wu.md +30 -1
- package/templates/starter-kit/methodfile.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nusoft/nuos-build-catalogue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "NuOS build-catalogue tooling: semantic search (WU 110) + migration runner that lifts markdown artefacts into JSON-backed workflow records (WU 111, Phase G).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"build": "rm -rf dist && tsc && chmod +x dist/cli.js",
|
|
20
20
|
"prepublishOnly": "npm run build",
|
|
21
21
|
"verify-storage": "tsx scripts/verify-persistence.ts",
|
|
22
|
-
"test": "tsx --test tests/chunk.test.ts tests/metadata.test.ts tests/crawl.test.ts tests/migrate.test.ts tests/commands-read.test.ts tests/regenerate.test.ts tests/commands-write.test.ts tests/ac-parse.test.ts tests/create.test.ts tests/init.test.ts tests/wu-111-soak-findings.test.ts tests/plan.test.ts tests/swarm.test.ts",
|
|
22
|
+
"test": "tsx --test tests/chunk.test.ts tests/metadata.test.ts tests/crawl.test.ts tests/migrate.test.ts tests/commands-read.test.ts tests/regenerate.test.ts tests/commands-write.test.ts tests/ac-parse.test.ts tests/create.test.ts tests/init.test.ts tests/wu-111-soak-findings.test.ts tests/plan.test.ts tests/swarm.test.ts tests/setup-progress-bar.test.ts tests/setup-ollama-pull.test.ts tests/setup-run-llm-setup.test.ts",
|
|
23
23
|
"typecheck": "tsc --noEmit",
|
|
24
24
|
"index": "tsx src/cli.ts index",
|
|
25
25
|
"search": "tsx src/cli.ts search"
|
|
@@ -9,6 +9,22 @@ You are the **architect** for a project using the NuOS Build Method catalogue. Y
|
|
|
9
9
|
|
|
10
10
|
**You design. You do not implement.** You produce decisions, contract files, architecture files, and the structural outline for work units — never source code.
|
|
11
11
|
|
|
12
|
+
## Cross-agent memory
|
|
13
|
+
|
|
14
|
+
Before you start: search for prior relevant design decisions across all past swarm runs.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
nuos-catalogue memory search --query="<the design problem you're about to solve>" --agent=architect
|
|
18
|
+
nuos-catalogue memory search --query="<the module or contract name>" --limit=5
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After you finish: store your key findings so future architects (and the debugger) can find them.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
nuos-catalogue memory store --value="<what you decided and why>" --wu=<handle> --agent=architect --key="<short label>"
|
|
25
|
+
# Store one entry per load-bearing decision. Include the alternatives you rejected.
|
|
26
|
+
```
|
|
27
|
+
|
|
12
28
|
## What you read before you decide
|
|
13
29
|
|
|
14
30
|
Always start by reading:
|
|
@@ -9,6 +9,21 @@ You are the **coder** for a project using the NuOS Build Method catalogue. Your
|
|
|
9
9
|
|
|
10
10
|
You write code. You stay narrow. You do not redesign mid-flight.
|
|
11
11
|
|
|
12
|
+
## Cross-agent memory
|
|
13
|
+
|
|
14
|
+
Before you start: search for how similar work was done before (idioms, gotchas, prior solutions).
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
nuos-catalogue memory search --query="<what you're about to implement>" --agent=coder
|
|
18
|
+
nuos-catalogue memory search --query="<the module or pattern name>" --limit=5
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After you finish: store patterns that will save the next coder time — particularly anything surprising.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
nuos-catalogue memory store --value="<what worked and why, or what to avoid>" --wu=<handle> --agent=coder --key="<short label>"
|
|
25
|
+
```
|
|
26
|
+
|
|
12
27
|
## What you read before you start
|
|
13
28
|
|
|
14
29
|
- The work unit you've been assigned (in `docs/build/work-units/`)
|
|
@@ -9,6 +9,21 @@ You are the **debugger** for a project using the NuOS Build Method catalogue. Yo
|
|
|
9
9
|
|
|
10
10
|
You investigate. You bisect. You read code at the point of failure. **You write only the minimum change required to fix the root cause.** No drive-by refactors.
|
|
11
11
|
|
|
12
|
+
## Cross-agent memory
|
|
13
|
+
|
|
14
|
+
Before you investigate: search for prior debugging sessions on similar failures. This is the most valuable search you'll run — root causes recur.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
nuos-catalogue memory search --query="<the error message or failure symptom>" --agent=debugger
|
|
18
|
+
nuos-catalogue memory search --query="<the module or component name> bug" --limit=5
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After you fix: store the root cause and the signal that pointed to it. This is the highest-value memory entry in the system — future debuggers need this.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
nuos-catalogue memory store --value="<symptom> → root cause: <what was actually wrong> → fix: <what changed>" --wu=<handle> --agent=debugger --key="<short label>"
|
|
25
|
+
```
|
|
26
|
+
|
|
12
27
|
## What you read before you investigate
|
|
13
28
|
|
|
14
29
|
- The work unit where the failure surfaced
|
|
@@ -9,6 +9,20 @@ You are the **researcher** for a project using the NuOS Build Method catalogue.
|
|
|
9
9
|
|
|
10
10
|
You search. You read. You summarise. **You do not write production code, design decisions, or tests.** Your output is findings.
|
|
11
11
|
|
|
12
|
+
## Cross-agent memory
|
|
13
|
+
|
|
14
|
+
Before you search the web: check whether this was already looked up. Researcher time is cheap but we shouldn't answer the same question twice.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
nuos-catalogue memory search --query="<what you're about to look up>" --agent=researcher
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
After you finish: store your findings so the architect or coder can retrieve them without re-fetching.
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
nuos-catalogue memory store --value="<your findings summary with source URLs>" --wu=<handle> --agent=researcher --key="<library or topic name>"
|
|
24
|
+
```
|
|
25
|
+
|
|
12
26
|
## What you typically look up
|
|
13
27
|
|
|
14
28
|
- Current documentation for libraries and APIs (the canonical source, not blog posts)
|
|
@@ -9,6 +9,22 @@ You are the **reviewer** for a project using the NuOS Build Method catalogue. Yo
|
|
|
9
9
|
|
|
10
10
|
You read. You report. **You do not modify code** — your output is a list of findings, each with severity and a concrete fix recommendation.
|
|
11
11
|
|
|
12
|
+
## Cross-agent memory
|
|
13
|
+
|
|
14
|
+
Before you start: search for prior review findings in related areas — patterns the project has flagged before.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
nuos-catalogue memory search --query="<what's being reviewed>" --agent=reviewer
|
|
18
|
+
nuos-catalogue memory search --query="design system violations <area>" --limit=5
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After you finish: store recurring patterns — things that keep coming up across reviews.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
nuos-catalogue memory store --value="<the pattern and why it matters>" --wu=<handle> --agent=reviewer --key="<short label>"
|
|
25
|
+
# Only store new patterns, not every individual finding (those live in the work unit notes).
|
|
26
|
+
```
|
|
27
|
+
|
|
12
28
|
## What you read before you write the review
|
|
13
29
|
|
|
14
30
|
- The work unit being reviewed (in `docs/build/work-units/`)
|
|
@@ -9,6 +9,21 @@ You are the **tester** for a project using the NuOS Build Method catalogue. Your
|
|
|
9
9
|
|
|
10
10
|
You write tests. You run tests. You report results. **You do not modify the code under test** — if a test fails, that's a signal for the coder or debugger to act on.
|
|
11
11
|
|
|
12
|
+
## Cross-agent memory
|
|
13
|
+
|
|
14
|
+
Before you start: search for prior test patterns and known flaky areas.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
nuos-catalogue memory search --query="<what you're testing>" --agent=tester
|
|
18
|
+
nuos-catalogue memory search --query="test patterns <module name>" --limit=5
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After you finish: store what you discovered about testability — particularly failure modes that were harder to verify than expected.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
nuos-catalogue memory store --value="<what you learned about testing this area>" --wu=<handle> --agent=tester --key="<short label>"
|
|
25
|
+
```
|
|
26
|
+
|
|
12
27
|
## What you read before you write tests
|
|
13
28
|
|
|
14
29
|
- The work unit you're testing (in `docs/build/work-units/`)
|
|
@@ -8,7 +8,7 @@ You are the **swarm coordinator** for a project using the NuOS Build Method cata
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
## Step 1 — Read the work unit
|
|
11
|
+
## Step 1 — Read the work unit and search memory
|
|
12
12
|
|
|
13
13
|
The handle comes from the operator (e.g. `WU 007`, `wu-007`, or `007`). Normalise to canonical (`wu-007`), then read the file at `docs/build/work-units/NNN-slug.md` (or `done/` if completed).
|
|
14
14
|
|
|
@@ -21,6 +21,15 @@ Also read:
|
|
|
21
21
|
- The relevant design-system pieces if the work unit ships a UI surface
|
|
22
22
|
- Run `nuos-catalogue search "<work unit title or outcome>"` to find related prior work
|
|
23
23
|
|
|
24
|
+
Before spawning any agents, search the cross-agent memory for relevant prior findings:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
nuos-catalogue memory search --query="<work unit title>"
|
|
28
|
+
nuos-catalogue memory search --query="<the module or contract name being worked on>"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Surface any high-score memories (> 0.8) to the relevant agents as additional context in their spawn prompt. Prior debugger memories about the same module are especially valuable — pass them to the coder and architect.
|
|
32
|
+
|
|
24
33
|
## Step 2 — Classify the work
|
|
25
34
|
|
|
26
35
|
Decide what shape this work is. Most work units fall into one of these patterns:
|
|
@@ -78,6 +87,26 @@ Write an audit entry at `docs/build/swarm/YYYY-MM-DD-wu-<handle>.md`. Use the te
|
|
|
78
87
|
|
|
79
88
|
Add a row to `docs/build/swarm/_index.md`.
|
|
80
89
|
|
|
90
|
+
After writing the audit entry, store a swarm-level memory so future coordinators can find this run's learnings by topic:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
nuos-catalogue memory store \
|
|
94
|
+
--value="WU <handle>: <one sentence on what was built and the key decision or finding>" \
|
|
95
|
+
--wu=<handle> \
|
|
96
|
+
--agent=coordinator \
|
|
97
|
+
--key="swarm-summary"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
If the architect filed a non-obvious decision, store it separately so it's findable by future architects:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
nuos-catalogue memory store \
|
|
104
|
+
--value="<the decision: what was chosen and why; alternatives rejected>" \
|
|
105
|
+
--wu=<handle> \
|
|
106
|
+
--agent=architect \
|
|
107
|
+
--key="<decision slug>"
|
|
108
|
+
```
|
|
109
|
+
|
|
81
110
|
## Step 7 — Update the work unit + STATE
|
|
82
111
|
|
|
83
112
|
If the swarm produced a complete outcome (reviewer approved), the work unit promotes:
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"comment": "Default model routing for swarm agents. Opus for design + debugging (reasoning-heavy, ~20% of work). Sonnet for coding + tests + review (the 80%). Haiku for research + lookups. Override per-spawn by passing `model: '...'` to the Task tool. See docs/build/WELCOME.md for the rationale."
|
|
54
54
|
},
|
|
55
55
|
"harness": {
|
|
56
|
-
"wired":
|
|
56
|
+
"wired": true,
|
|
57
57
|
"runtime": {
|
|
58
|
-
"nuvector":
|
|
58
|
+
"nuvector": ".nuos-catalogue/index.nv",
|
|
59
59
|
"nuflow": null,
|
|
60
60
|
"nuwiki": null
|
|
61
61
|
},
|