@xcraftmind/mastermind 0.28.2 → 0.30.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 CHANGED
@@ -57,7 +57,7 @@ Three pieces — the split is the part that trips people up:
57
57
  | **MCP registration** — `setup claude` | once | `~/.claude.json` (via `claude mcp add`) | once for all projects |
58
58
 
59
59
  - **The index is always per-project.** Run `mastermind init` in *every* repo you want indexed. `doctor` reporting `index database not found` just means you haven't done this in the current directory yet (the exact situation if you run `doctor` from `/tmp` or a fresh shell).
60
- - **The workflow installs globally on `init`** — subagents, skills + slash commands land in `~/.claude/{agents,skills,commands}/`, overwriting Mastermind's own files to keep them current (`--no-global` to skip). Ships with the npm package; cargo installs use the plugin marketplace instead.
60
+ - **The workflow installs globally on `init`** — subagents, skills + slash commands land in `~/.claude/{agents,skills,commands}/`, overwriting Mastermind's own files to keep them current (`--no-global` to skip). Ships with the npm package; a cargo install includes only the mmcg binary, not the workflow bundle.
61
61
  - **The MCP registration is usually once, globally.** The global entry launches `mastermind serve` from whichever project you open in Claude Code, so it picks up *that* project's `.mastermind/mmcg.db` automatically. You do **not** re-run `setup claude` per repo.
62
62
  - Use **per-project registration** only if you want the MCP config committed with the repo and version-pinned: `mastermind setup claude --project . --write-mcp` writes `./.mcp.json` with `command: "./node_modules/.bin/mastermind"` (pair it with a project-local install — see below).
63
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcraftmind/mastermind",
3
- "version": "0.28.2",
3
+ "version": "0.30.0",
4
4
  "description": "Mastermind workflow CLI + mmcg codegraph for AI coding agents — verify-spec / audit-spec gates, MCP server, multi-language tree-sitter indexer (Python, TypeScript, JavaScript, Rust, C#, Go, Java, PHP, C/C++). Prebuilt native binaries via optional platform packages — no Rust toolchain required.",
5
5
  "license": "MIT",
6
6
  "author": "xcraftmind",
@@ -38,12 +38,12 @@
38
38
  "mastermind"
39
39
  ],
40
40
  "optionalDependencies": {
41
- "@xcraftmind/mmcg-darwin-arm64": "0.28.2",
42
- "@xcraftmind/mmcg-darwin-x64": "0.28.2",
43
- "@xcraftmind/mmcg-linux-x64-gnu": "0.28.2",
44
- "@xcraftmind/mmcg-linux-arm64-gnu": "0.28.2",
45
- "@xcraftmind/mmcg-linux-x64-musl": "0.28.2",
46
- "@xcraftmind/mmcg-linux-arm64-musl": "0.28.2",
47
- "@xcraftmind/mmcg-win32-x64-msvc": "0.28.2"
41
+ "@xcraftmind/mmcg-darwin-arm64": "0.30.0",
42
+ "@xcraftmind/mmcg-darwin-x64": "0.30.0",
43
+ "@xcraftmind/mmcg-linux-x64-gnu": "0.30.0",
44
+ "@xcraftmind/mmcg-linux-arm64-gnu": "0.30.0",
45
+ "@xcraftmind/mmcg-linux-x64-musl": "0.30.0",
46
+ "@xcraftmind/mmcg-linux-arm64-musl": "0.30.0",
47
+ "@xcraftmind/mmcg-win32-x64-msvc": "0.30.0"
48
48
  }
49
49
  }
@@ -1,8 +1,11 @@
1
1
  ---
2
2
  name: mastermind-auditor
3
3
  description: Independent post-flight auditor that mechanically verifies an executor's report against the actual repo state — git diff, file contents, VERIFY commands, mmcg_callers counts. Spawn from the planner after the executor returns, BEFORE telling the user "done". Adversarial to the report — verifies, does not trust.
4
+ tools: Read, Grep, Glob, Bash
5
+ model: opus
6
+ mcpServers: [mmcg]
4
7
  metadata:
5
- version: 0.4.0
8
+ version: 0.4.1
6
9
  authors:
7
10
  - mastermind
8
11
  tags:
@@ -10,12 +13,6 @@ metadata:
10
13
  - audit
11
14
  - mmcg
12
15
  - canons
13
- model: opus
14
- tools:
15
- - Read
16
- - Grep
17
- - Glob
18
- - Bash
19
16
  ---
20
17
 
21
18
  # Mastermind Auditor
@@ -304,6 +301,16 @@ On `❌ contract broken`:
304
301
 
305
302
  The `blocking_reason` must be a single sentence naming the concrete discrepancy — not "see audit" or "contract broken". It appears verbatim in `mastermind status` and `mastermind resume` output.
306
303
 
304
+ ## Final output self-check (REQUIRED — complete before ending your response)
305
+
306
+ Before writing your last word, verify all three conditions:
307
+
308
+ 1. Does your response contain `<!-- mastermind:audit-begin -->`? If not, emit the full structured tail now.
309
+ 2. Does your response contain `<!-- mastermind:audit-end -->`? If not, close the block now.
310
+ 3. Is the YAML inside the block valid — `verdict:`, `discrepancies:`, `scope_match:` all present? If malformed, rewrite the block.
311
+
312
+ A response without the sentinel block is **invalid** regardless of reasoning quality. The planner cannot route on prose alone.
313
+
307
314
  ## What you do NOT do
308
315
 
309
316
  - Run commands that modify state (no `git commit`, no `git push`, no destructive ops)
@@ -1,8 +1,11 @@
1
1
  ---
2
2
  name: mastermind-critic
3
3
  description: Independent design-time challenger that stress-tests a proposed approach against 7 explicit engineering dimensions (correctness, performance, observability, non-breaking, YAGNI, AI slop, test/doc coverage) before it becomes a spec. Spawn from the planner during brainstorming — mandatory for sensitive areas. Distinct from `mastermind-auditor` which verifies post-execution.
4
+ tools: Read, Grep, Glob
5
+ model: opus
6
+ mcpServers: [mmcg]
4
7
  metadata:
5
- version: 0.4.0
8
+ version: 0.4.1
6
9
  authors:
7
10
  - mastermind
8
11
  tags:
@@ -10,11 +13,6 @@ metadata:
10
13
  - design
11
14
  - code-review
12
15
  - canons
13
- model: opus
14
- tools:
15
- - Read
16
- - Grep
17
- - Glob
18
16
  ---
19
17
 
20
18
  # Critic — design-time challenger
@@ -1,8 +1,11 @@
1
1
  ---
2
2
  name: mastermind-investigator
3
3
  description: Sonnet-tier debugging subagent that structures root-cause investigations using a Hypothesis Ledger — tracks symptoms, known facts, competing hypotheses, evidence for/against each, and one focused next probe. Spawn from a planner when you have a bug or unexpected behavior with an unknown cause. Prevents premature closure by forcing evidence_against before any hypothesis can be confirmed.
4
+ tools: Read, Grep, Glob, Bash
5
+ model: sonnet
6
+ mcpServers: [mmcg]
4
7
  metadata:
5
- version: 0.1.0
8
+ version: 0.1.1
6
9
  authors:
7
10
  - mastermind
8
11
  tags:
@@ -10,12 +13,6 @@ metadata:
10
13
  - debugging
11
14
  - investigation
12
15
  - mmcg
13
- model: sonnet
14
- tools:
15
- - Read
16
- - Grep
17
- - Glob
18
- - Bash
19
16
  ---
20
17
 
21
18
  # Mastermind Investigator
@@ -1,16 +1,15 @@
1
1
  ---
2
2
  name: mastermind-prompt-refiner
3
3
  description: Intake gate that normalizes raw client prompts before the planner sees them. Converts brain dumps, vague ideas, and multi-intent requests into planner-ready input. Spawn whenever the user's request is rough, client-provided, or bundles multiple intents — skip when the request is already tight.
4
+ tools: Read
5
+ model: sonnet
4
6
  metadata:
5
- version: 0.2.0
7
+ version: 0.2.1
6
8
  authors:
7
9
  - mastermind
8
10
  tags:
9
11
  - prompt-engineering
10
12
  - workflow
11
- model: sonnet
12
- tools:
13
- - Read
14
13
  ---
15
14
 
16
15
  # Prompt Refiner — Intake Gate
@@ -1,20 +1,17 @@
1
1
  ---
2
2
  name: mastermind-researcher
3
3
  description: Read-only Haiku-tier subagent that explores the codebase, reads documentation, and returns structured fact summaries without making decisions. Spawn from a planner when you need to gather facts before designing — bulk grep/read/glob work that doesn't deserve Opus time. Use when you'd otherwise burn the main agent's context on "find all callsites of X" or "list all configs under Y".
4
+ tools: Read, Grep, Glob, Bash
5
+ model: haiku
6
+ mcpServers: [mmcg]
4
7
  metadata:
5
- version: 0.2.0
8
+ version: 0.2.1
6
9
  authors:
7
10
  - mastermind
8
11
  tags:
9
12
  - workflow
10
13
  - research
11
14
  - mmcg
12
- model: haiku
13
- tools:
14
- - Read
15
- - Grep
16
- - Glob
17
- - Bash
18
15
  ---
19
16
 
20
17
  # Researcher
@@ -1,21 +1,16 @@
1
1
  ---
2
2
  name: mastermind-task-executor
3
3
  description: Subagent that executes a `.mastermind/tasks/<NNN>-<name>/spec.md` file phase-by-phase — applies edits, runs verification, marks the checklist, stops on first failure. Spawn this from a planner agent (using the [[mastermind-task-planning]] skill) to implement a delegated task.
4
+ tools: Read, Edit, Write, Grep, Glob, Bash
5
+ model: sonnet
6
+ mcpServers: [mmcg]
4
7
  metadata:
5
- version: 0.1.0
8
+ version: 0.1.1
6
9
  authors:
7
10
  - mastermind
8
11
  tags:
9
12
  - workflow
10
13
  - delegation
11
- model: sonnet
12
- tools:
13
- - Read
14
- - Edit
15
- - Write
16
- - Grep
17
- - Glob
18
- - Bash
19
14
  ---
20
15
 
21
16
  # Mastermind Task Executor
@@ -29,18 +29,17 @@ file as [`structured-report-schema.md`](structured-report-schema.md).
29
29
 
30
30
  - **What**: Spec's Phase 3 (docs) covers fewer files than
31
31
  `scripts/validate.py::validate_mmcg_tool_drift` enforces. Validator finds tool
32
- names in `mcp.rs` but missing from one or more of: mmcg README, repo README,
33
- `.claude-plugin/marketplace.json`, `plugins/mmcg/.claude-plugin/plugin.json`.
32
+ names in `mcp.rs` but missing from one or more of: mmcg README
33
+ (`mcp/servers/mmcg/README.md`), repo `README.md`.
34
34
  - **Surfaced as**: `python3 scripts/validate.py` exits non-zero with
35
35
  `tool 'mmcg_X' missing — declared in mcp/servers/mmcg/src/mcp.rs but absent
36
36
  from this file` (one error per missing surface).
37
- - **Fix template**: Add the three missing surfaces to `expected_docs[]` in the
38
- spec frontmatter, then add three Phase 3.x sub-steps with FIND/CHANGE TO blocks.
39
- Pattern: `marketplace.json` and `plugin.json` each carry ONE prose `description`
40
- string with the comma-separated tool list and `N tools` count; the repo
41
- `README.md` carries TWO occurrences (table cell + standalone-crate paragraph).
42
- Insert the new tool name before the trailing `status` entry in each list and
43
- bump the count by 1.
37
+ - **Fix template**: Add the missing surface(s) to `expected_docs[]` in the
38
+ spec frontmatter, then add Phase 3.x sub-steps with FIND/CHANGE TO blocks.
39
+ Pattern: the mmcg `README.md` carries ONE comma-separated tool list plus an
40
+ `N tools` count; the repo `README.md` carries TWO occurrences (table cell +
41
+ standalone-crate paragraph). Insert the new tool name before the trailing
42
+ entry in each list and bump the count by 1.
44
43
  - **First observed**: Task 001 Phase 4.
45
44
 
46
45
  ### `zero_filter_verify`