nimai-mcp 0.3.6 → 0.3.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-review.d.ts","sourceRoot":"","sources":["../../src/tools/spec-review.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,wBAAsB,cAAc,CAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,GAC1C,OAAO,CAAC,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"spec-review.d.ts","sourceRoot":"","sources":["../../src/tools/spec-review.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,wBAAsB,cAAc,CAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,GAC1C,OAAO,CAAC,qBAAqB,CAAC,CAqDhC"}
|
|
@@ -53,16 +53,37 @@ async function toolSpecReview(input) {
|
|
|
53
53
|
'The spec-quality review must be done by an independent reviewer —',
|
|
54
54
|
'NOT the agent that created or edited the spec.',
|
|
55
55
|
'',
|
|
56
|
-
'
|
|
56
|
+
'── STEP 1: Send to independent reviewer ──────────────────────────',
|
|
57
57
|
'1. Copy the specReviewerPrompt string from this response.',
|
|
58
|
-
'2. Open a FRESH SESSION with a different model or agent
|
|
59
|
-
'
|
|
58
|
+
'2. Open a FRESH SESSION with a different model or agent',
|
|
59
|
+
' (e.g. paste into Claude, a new Codex thread, or any LLM).',
|
|
60
|
+
'3. Paste the prompt and let the reviewer evaluate the spec.',
|
|
60
61
|
'4. The reviewer will end their response with a JSON verdict block:',
|
|
61
62
|
' {"passed": true/false, "schema_version": "2", "issues": [...]}',
|
|
62
63
|
'',
|
|
63
|
-
'Return the verdict
|
|
64
|
-
'
|
|
65
|
-
'
|
|
64
|
+
'── STEP 2: Return the verdict ────────────────────────────────────',
|
|
65
|
+
'Bring the full verdict back to THIS session.',
|
|
66
|
+
'',
|
|
67
|
+
' If passed: true',
|
|
68
|
+
' → The spec is approved. Proceed to implementation.',
|
|
69
|
+
'',
|
|
70
|
+
' If passed: false',
|
|
71
|
+
' → Do NOT re-run nimai_spec (that would discard all spec work).',
|
|
72
|
+
` → Give the builder this message (fill in the verdict):`,
|
|
73
|
+
'',
|
|
74
|
+
` ┌─ BUILDER FIX BRIEF ──────────────────────────────────────────`,
|
|
75
|
+
` │ The independent spec review found issues in: ${specPath}`,
|
|
76
|
+
` │`,
|
|
77
|
+
` │ Fix each HARD_FAIL and SOFT_FAIL in the verdict below by`,
|
|
78
|
+
` │ editing the spec directly. Do not regenerate from scratch.`,
|
|
79
|
+
` │`,
|
|
80
|
+
` │ [PASTE VERDICT HERE]`,
|
|
81
|
+
` │`,
|
|
82
|
+
` │ After fixing:`,
|
|
83
|
+
` │ 1. Run nimai_validate — must return passed: true`,
|
|
84
|
+
` │ 2. Run nimai_spec_review — get new reviewer_instructions`,
|
|
85
|
+
` │ 3. Send to an independent reviewer again (do not self-review)`,
|
|
86
|
+
` └──────────────────────────────────────────────────────────────`,
|
|
66
87
|
].join('\n');
|
|
67
88
|
return { specReviewerPrompt, reviewer_instructions };
|
|
68
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-review.js","sourceRoot":"","sources":["../../src/tools/spec-review.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,
|
|
1
|
+
{"version":3,"file":"spec-review.js","sourceRoot":"","sources":["../../src/tools/spec-review.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wCAuDC;AA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": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Nimai MCP server — exposes nimai_spec, nimai_review, nimai_validate, nimai_new as tools. No internal LLM calls.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nimai",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
38
38
|
"zod": "^3.23.8",
|
|
39
|
-
"nimai-core": "0.3.
|
|
39
|
+
"nimai-core": "0.3.7"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsc",
|