@hegemonart/get-design-done 1.58.0 → 1.59.1
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/.claude-plugin/marketplace.json +4 -4
- package/.claude-plugin/plugin.json +17 -3
- package/CHANGELOG.md +70 -5
- package/README.md +1 -1
- package/SKILL.md +1 -0
- package/bin/gdd-mcp +12 -1
- package/bin/gdd-state-mcp +12 -1
- package/connections/gdd-state.md +8 -8
- package/package.json +2 -4
- package/reference/codex-tools.md +1 -1
- package/reference/gemini-tools.md +1 -1
- package/reference/known-failure-modes.md +2 -2
- package/reference/registry.json +1 -1
- package/reference/schemas/generated.d.ts +240 -4
- package/reference/schemas/mcp-gdd-state-tools.schema.json +1 -1
- package/reference/schemas/mcp-gdd-tools.schema.json +1 -1
- package/reference/skill-graph.md +2 -1
- package/scripts/install.cjs +21 -14
- package/scripts/lib/install/mcp-register.cjs +131 -50
- package/scripts/lib/manifest/skills.json +7 -0
- package/sdk/cli/commands/audit.ts +66 -6
- package/sdk/cli/index.js +33 -3
- package/skills/bandit-reset/SKILL.md +91 -0
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
"name": "hegemonart"
|
|
5
5
|
},
|
|
6
6
|
"metadata": {
|
|
7
|
-
"description": "Get Design Done — 5-stage agent-orchestrated design pipeline (Brief → Explore → Plan → Design → Verify) for AI coding agents. 61 agents,
|
|
8
|
-
"version": "1.
|
|
7
|
+
"description": "Get Design Done — 5-stage agent-orchestrated design pipeline (Brief → Explore → Plan → Design → Verify) for AI coding agents. 61 agents, 95 skills, 42 connection integrations, two MCP servers, opt-in SQLite state backbone, bidirectional Figma write-back, and a reflector-driven self-improvement loop. Cross-runtime install for Claude Code, Codex, Cursor, OpenCode, Gemini, and more.",
|
|
8
|
+
"version": "1.59.1"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "get-design-done",
|
|
13
13
|
"source": "./",
|
|
14
|
-
"description": "Agent-orchestrated 5-stage design pipeline (Brief → Explore → Plan → Design → Verify) for AI coding agents. 61 specialized agents,
|
|
15
|
-
"version": "1.
|
|
14
|
+
"description": "Agent-orchestrated 5-stage design pipeline (Brief → Explore → Plan → Design → Verify) for AI coding agents. 61 specialized agents, 95 skills, 42 connection integrations (Figma, Refero, Preview, Storybook, Chromatic, Graphify, Linear, Jira, Notion, …), bidirectional Figma write-back, queryable intel store, opt-in SQLite state backbone, and a reflector-driven self-improvement loop. Two MCP servers (gdd-state for typed STATE mutators, gdd-mcp for 13 read-only project-priming tools), tier-aware routing with cost telemetry, and defense-in-depth hooks (protected paths, MCP circuit breaker, injection scanner, budget enforcer). Cross-runtime install for Claude Code, Codex, Cursor, OpenCode, Gemini, Copilot, and more.",
|
|
15
|
+
"version": "1.59.1",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "hegemonart"
|
|
18
18
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-design-done",
|
|
3
3
|
"short_name": "gdd",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"description": "Agent-orchestrated 5-stage design pipeline (Brief → Explore → Plan → Design → Verify) for AI coding agents. 61 specialized agents,
|
|
4
|
+
"version": "1.59.1",
|
|
5
|
+
"description": "Agent-orchestrated 5-stage design pipeline (Brief → Explore → Plan → Design → Verify) for AI coding agents. 61 specialized agents, 95 skills, 42 connection integrations (Figma, Refero, Preview, Storybook, Chromatic, Graphify, Linear, Jira, Notion, …), bidirectional Figma write-back, queryable intel store for O(1) design-surface lookups, opt-in SQLite state backbone, and a reflector-driven self-improvement loop. Two MCP servers (`gdd-state` for typed STATE mutators, `gdd-mcp` for 13 read-only project-priming tools), tier-aware agent routing with cost telemetry, defense-in-depth hooks (protected paths, MCP circuit breaker, injection scanner, budget enforcer), and a cross-runtime install layer for Claude Code, Codex, Cursor, OpenCode, Gemini, Copilot, and more.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "hegemonart",
|
|
8
8
|
"url": "https://github.com/hegemonart"
|
|
@@ -56,5 +56,19 @@
|
|
|
56
56
|
],
|
|
57
57
|
"skills": [
|
|
58
58
|
"./skills/"
|
|
59
|
-
]
|
|
59
|
+
],
|
|
60
|
+
"mcpServers": {
|
|
61
|
+
"gdd-mcp": {
|
|
62
|
+
"command": "node",
|
|
63
|
+
"args": [
|
|
64
|
+
"${CLAUDE_PLUGIN_ROOT}/bin/gdd-mcp"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"gdd-state": {
|
|
68
|
+
"command": "node",
|
|
69
|
+
"args": [
|
|
70
|
+
"${CLAUDE_PLUGIN_ROOT}/bin/gdd-state-mcp"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
60
74
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,71 @@ All notable changes to get-design-done are documented here. Versions follow [sem
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.59.1] - 2026-06-04
|
|
8
|
+
|
|
9
|
+
First point release of the **v1.59 "Audit Closeout & Honesty Pass"** milestone. The two bundled MCP servers now come up for users automatically, plus the cheapest correctness/honesty fixes.
|
|
10
|
+
|
|
11
|
+
### MCP servers register automatically on Claude Code
|
|
12
|
+
|
|
13
|
+
The two bundled MCP servers - `gdd-state` (typed STATE mutators) and `gdd-mcp` (read-only project-priming tools) - are now declared under `mcpServers` in `.claude-plugin/plugin.json`, so a fresh Claude Code marketplace install exposes both servers' tools with no manual `--register-mcp` step. They launch through the plugin-local `bin/` trampolines via `${CLAUDE_PLUGIN_ROOT}`, so the git-clone install path works without `npm install`.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **`/gdd:bandit-reset`** - a confirm-then-reset maintenance skill for the bandit posterior (`.design/telemetry/posterior.json`): backs the file up to `posterior.json.bak`, then clears it to a fresh envelope. The mutation companion to the read-only `/gdd:bandit-status`. Resolves the previously-dangling `/gdd:bandit-reset` reference. (Skill count 94 → 95.)
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **Installer parity** - `get-design-done --register-mcp` now registers BOTH `gdd-mcp` and `gdd-state` for Claude Code and Codex (previously `gdd-mcp` only). `--no-register-mcp` is unchanged.
|
|
22
|
+
- **MCP launch warning** - the servers no longer print a `MODULE_TYPELESS_PACKAGE_JSON` warning on startup (suppressed in the dev/source launch path; the compiled npm-install path is unaffected).
|
|
23
|
+
- **`gdd-sdk audit`** now degrades gracefully with no active cycle (no `.design/STATE.md`): it prints a "no active cycle" notice, runs the static checks, and exits 0 instead of throwing.
|
|
24
|
+
- **Dead path references** - repointed stale `scripts/mcp-servers/...` and `scripts/lib/{gdd-state,event-stream,gdd-errors}/...` references (relocated to `sdk/...` in v1.33.0) to their live locations, including a broken `claude mcp add` command in the `gdd-state` connection doc.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Removed two dead npm scripts (`typecheck:session-runner`, `validate:skill-surface`) and pointed the `gdd-sdk` script at the Windows-safe `bin/gdd-sdk` trampoline.
|
|
29
|
+
- Regenerated `reference/schemas/generated.d.ts` from source schemas.
|
|
30
|
+
|
|
31
|
+
### Breaking changes
|
|
32
|
+
|
|
33
|
+
None.
|
|
34
|
+
|
|
35
|
+
5,013/5,013 tests pass.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## [1.58.1] - 2026-06-04
|
|
40
|
+
|
|
41
|
+
### Hotfix - restore committed skills/ for Claude Code marketplace install
|
|
42
|
+
|
|
43
|
+
v1.58.0 gitignored `skills/` on the premise that it was a pure build artifact that the `prepare` lifecycle could regenerate on `npm install`. That assumption held for the npm install path (registry tarball already contains pre-built `skills/`) and for dev clones (`npm install` runs `prepare`), but **broke the Claude Code marketplace install path**: Claude Code installs plugins by git-cloning the source repo without running `npm install`, so post-clone `./skills/` was absent and the plugin failed to load any skill.
|
|
44
|
+
|
|
45
|
+
v1.58.1 reverts the gitignore. `skills/` is committed again as a build artifact. The CI drift gate goes back to enforcing `committed skills/ == compile(skill-templates/)`. End users now get a working plugin via either install path (Claude Code marketplace OR `npm install`).
|
|
46
|
+
|
|
47
|
+
### What stays from v1.58.0 (the architectural wins persist)
|
|
48
|
+
|
|
49
|
+
- `skill-templates/` is the canonical editable source (no more `source/` wrapper).
|
|
50
|
+
- `prepare` lifecycle runs `npm run build:skills` on `npm install` so contributor checkouts stay in sync after edits to `skill-templates/`.
|
|
51
|
+
- `prepack` lifecycle chains `build:sdk && build:skills` so the npm tarball still ships a freshly-built `skills/`.
|
|
52
|
+
|
|
53
|
+
### What changed back from v1.58.0
|
|
54
|
+
|
|
55
|
+
- **`.gitignore`** no longer excludes `skills/`. 116 files re-tracked.
|
|
56
|
+
- **`scripts/build-skills.cjs --check`** is back to the original Phase 42 drift-gate semantics ("committed === generated"), instead of the v1.58.0 determinism gate.
|
|
57
|
+
- **`regression-baseline.test.cjs`** reads the skill-list from `skills/` again (was `skill-templates/` in v1.58.0).
|
|
58
|
+
- **CI yml** label restored to "Skill build drift gate".
|
|
59
|
+
|
|
60
|
+
### Migration
|
|
61
|
+
|
|
62
|
+
No action needed. Contributors continue to edit `skill-templates/<slug>/SKILL.md` and run `npm run build:skills` (or just `npm install`) to regenerate the committed `skills/`. End users see no change.
|
|
63
|
+
|
|
64
|
+
5,007/5,007 tests pass.
|
|
65
|
+
|
|
66
|
+
### Breaking changes
|
|
67
|
+
|
|
68
|
+
None.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
7
72
|
## [1.58.0] - 2026-06-04
|
|
8
73
|
|
|
9
74
|
### Architectural cleanup - kill the skills/ <-> source/skills/ duplication
|
|
@@ -1795,7 +1860,7 @@ The `gsd-build/get-shit-done` rug-pull in May 2026 (TÂCHES drained $GSD Solana
|
|
|
1795
1860
|
- **`.design/graph/`** replaces upstream's `.planning/graphs/` location (per D-02 - aligns with the rest of GDD's `.design/` artifact convention).
|
|
1796
1861
|
- **`connections/graphify.md`** rewritten for native CLI (no external `graphifyy` dependency).
|
|
1797
1862
|
- **`reference/start-interview.md`** updated to reference `/gdd:discuss` (our equivalent) instead of `/gsd-discuss-phase`.
|
|
1798
|
-
- **`README.md`** at the `gsd-build/get-shit-done (MIT
|
|
1863
|
+
- **`README.md`** at the `gsd-build/get-shit-done (MIT - see NOTICE)` citation gains the redux-pointer parenthetical "(now archived; community continuation at `open-gsd/get-shit-done-redux`)". Citation preserved verbatim - only annotated for reader clarity.
|
|
1799
1864
|
- **Graphify enable/disable state** (D-09) lives in `.design/config.json` at `{ "graphify": { "enabled": bool } }`. Read directly by `gdd-graph` via fs; no `config-set` / `config-get` CLI subcommand.
|
|
1800
1865
|
|
|
1801
1866
|
### Removed
|
|
@@ -1825,7 +1890,7 @@ The `gsd-build/get-shit-done` rug-pull in May 2026 (TÂCHES drained $GSD Solana
|
|
|
1825
1890
|
|
|
1826
1891
|
### Attribution preservation
|
|
1827
1892
|
|
|
1828
|
-
Phase 27 / Phase 28.5 / Phase 28.7 attribution subsections in `NOTICE` are preserved verbatim per D-06. The architectural ports they describe are historical MIT-licensed code transplants; this release removes a runtime touchpoint, **NOT** a historical port. The `gsd-build/get-shit-done (MIT
|
|
1893
|
+
Phase 27 / Phase 28.5 / Phase 28.7 attribution subsections in `NOTICE` are preserved verbatim per D-06. The architectural ports they describe are historical MIT-licensed code transplants; this release removes a runtime touchpoint, **NOT** a historical port. The `gsd-build/get-shit-done (MIT - see NOTICE)` citation in `README.md` is preserved verbatim; only the redux-pointer parenthetical was added.
|
|
1829
1894
|
|
|
1830
1895
|
---
|
|
1831
1896
|
|
|
@@ -1847,7 +1912,7 @@ Decimal sub-phase building on Phase 30's `/gdd:report-issue` triage gate. Expand
|
|
|
1847
1912
|
### Changed
|
|
1848
1913
|
|
|
1849
1914
|
- **Reflector capability-gap aggregator** (`scripts/lib/reflector-capability-gap-aggregator.cjs`) - adds lazy-loaded `proposeKfmDraftsForClusters(clusters, options)` export that invokes the KFM proposer as an additional pass after Phase 29 aggregation. Phase 29's existing 5 proposal classes are untouched (additive).
|
|
1850
|
-
- **Authority-watcher agent prompt** (`agents/design-authority-watcher.md`) - gains a new `Step 7.5
|
|
1915
|
+
- **Authority-watcher agent prompt** (`agents/design-authority-watcher.md`) - gains a new `Step 7.5 - Emit kfm-candidate events` section documenting the whitelist patterns + payload shape. Phase 13.2's existing fetch/diff/classify/write loop is unchanged.
|
|
1851
1916
|
- **OFF_CADENCE_VERSIONS** (`tests/semver-compare.test.cjs`) - registers `'1.30.5'` per Phase 29/30 precedent.
|
|
1852
1917
|
|
|
1853
1918
|
### Documentation
|
|
@@ -3312,7 +3377,7 @@ Closes two unrelated risks before the Phase 15–19 reference-library expansion
|
|
|
3312
3377
|
**Safety hooks**
|
|
3313
3378
|
- `hooks/gdd-bash-guard.js` - PreToolUse:Bash guard. 45 dangerous-pattern regexes across 10 families (filesystem destruction, permission escalation, pipe-to-shell, git destruction, system mutation, process nuking, credential exfil, shell obfuscation, path traversal, npm/docker/firewall abuse). `scripts/lib/dangerous-patterns.cjs` normalizes Unicode NFKC + strips ANSI escapes + strips zero-width / bidi overrides before matching so obfuscated attacks (`rm\u200B -rf /`, bidi overrides, hex-encoded `\x72\x6d\x20\x2d\x72\x66`) fail closed.
|
|
3314
3379
|
- `hooks/gdd-protected-paths.js` + `reference/protected-paths.default.json` - PreToolUse:Edit|Write|Bash guard blocking mutation of `reference/**`, `skills/**`, `commands/**`, `hooks/**`, `.design/archive/**`, `.design/config.json`, `.design/telemetry/**`, `.git/**`, both plugin manifests. User additions in `.design/config.json.protected_paths` MERGE into the default list - users cannot reduce the default-protected set. `scripts/lib/glob-match.cjs` ships a dependency-free `**` glob matcher.
|
|
3315
|
-
- `scripts/lib/blast-radius.cjs` - `estimate({touchedPaths, diffStats})` + `estimateMCPCalls({toolCalls})` preflight called by `design-executor` before the first Edit/Write of each task. Defaults: `max_files_per_task: 10`, `max_lines_per_task: 400`, `max_mcp_calls_per_task: 30`. Zero-value limits disable that ceiling. `design-executor` gains a new `## Preflight
|
|
3380
|
+
- `scripts/lib/blast-radius.cjs` - `estimate({touchedPaths, diffStats})` + `estimateMCPCalls({toolCalls})` preflight called by `design-executor` before the first Edit/Write of each task. Defaults: `max_files_per_task: 10`, `max_lines_per_task: 400`, `max_mcp_calls_per_task: 30`. Zero-value limits disable that ceiling. `design-executor` gains a new `## Preflight - Blast-Radius Check` section.
|
|
3316
3381
|
|
|
3317
3382
|
**Injection-scanner extension**
|
|
3318
3383
|
- `scripts/injection-patterns.cjs` extended from 7 to 22 patterns: classic prompt-injection verbs (incl. `forget previous`), **invisible-Unicode** (zero-width, BOM, bidi overrides), **HTML-comment instruction hijacks** (`<!-- system: …`, hidden divs/spans, zero-font-size tricks), **secret-exfil triggers** (`curl $OPENAI_API_KEY`, `cat .env`, `tar ~ | nc`, `process.env._KEY fetch`, SSH private-key reads). Single source of truth consumed by `hooks/gdd-read-injection-scanner.js`.
|
|
@@ -3419,7 +3484,7 @@ Cherry-picked from `c11cd7b` on `claude/upbeat-fermi-199627` - the Figma MCP fix
|
|
|
3419
3484
|
|
|
3420
3485
|
- **URL entry point**: detect `https://api.anthropic.com/v1/design/h/<hash>` in agent prompt (native "Send to local coding agent" flow); `WebFetch` with `Content-Type` routing - HTML parsed directly, ZIP downloaded and extracted
|
|
3421
3486
|
- **ZIP bundle**: extract to `.design/handoff/`, find primary HTML + readme, parse normally, clean up after
|
|
3422
|
-
- **PDF format**: `pdftotext` text extraction; grep for token values; all decisions tagged `(tentative
|
|
3487
|
+
- **PDF format**: `pdftotext` text extraction; grep for token values; all decisions tagged `(tentative - text-only)` since no CSS is present
|
|
3423
3488
|
- **PPTX format**: slide XML text extraction (`ppt/slides/*.xml`); same tentative-only tagging as PDF
|
|
3424
3489
|
- Updated synthesizer parsing algorithm step 1 with format dispatch before parsing
|
|
3425
3490
|
- Updated probe pattern: URL detection takes priority over file path lookup
|
package/README.md
CHANGED
|
@@ -307,7 +307,7 @@ Targets 50–70% per-task token-cost reduction with no quality-floor regression.
|
|
|
307
307
|
|
|
308
308
|
## Commands
|
|
309
309
|
|
|
310
|
-
GDD ships
|
|
310
|
+
GDD ships 95 skills. The most common ones are below; for the full reference see [SKILL.md](SKILL.md).
|
|
311
311
|
|
|
312
312
|
### Core Pipeline
|
|
313
313
|
|
package/SKILL.md
CHANGED
|
@@ -99,6 +99,7 @@ Each stage produces artifacts in `.design/` inside the current project.
|
|
|
99
99
|
| `quality-gate` | `get-design-done:quality-gate` | Phase 25 - parallel lint/type/test/visual command runner; classifies failures via quality-gate-runner agent |
|
|
100
100
|
| `turn-closeout` | `get-design-done:turn-closeout` | Phase 25 - Stop-hook mirror skill; finalizes per-turn STATE blocks and emits closeout events |
|
|
101
101
|
| `bandit-status` | `get-design-done:bandit-status` | Phase 27.5 - read-only diagnostic surface for the bandit posterior; per-(agent, bin, delegate, tier) snapshots (alpha, beta, mean, stddev, count, last-used). Use `/gdd:bandit-reset` to mutate. |
|
|
102
|
+
| `bandit-reset [--yes]` | `get-design-done:bandit-reset` | Phase 23.5 - confirm-then-reset mutation companion to `bandit-status`; backs up `.design/telemetry/posterior.json` to `posterior.json.bak`, then clears it to a fresh empty envelope so the next pull rebootstraps from informed priors. |
|
|
102
103
|
| `openrouter-status [--refresh]` | `get-design-done:gdd-openrouter-status` | Phase 33.6 - read-only OpenRouter catalog + tier-mapping diagnostic; surfaces catalog freshness (vs 24h TTL), last-fetch, resolved opus/sonnet/haiku → model mappings, per-tier preview. `--refresh` re-fetches (needs `OPENROUTER_API_KEY`). |
|
|
103
104
|
| `peers` | `get-design-done:peers` | Phase 27 - `/gdd:peers` capability matrix command; shows installed peer-CLIs (codex/gemini/cursor/copilot/qwen), allowlist status, claimed roles, posterior delta vs local |
|
|
104
105
|
| `peer-cli-customize` | `get-design-done:peer-cli-customize` | Phase 27 - rewire role→peer mappings on a per-agent basis (edits frontmatter `delegate_to:` directly) |
|
package/bin/gdd-mcp
CHANGED
|
@@ -49,7 +49,18 @@ const useCompiled = fs.existsSync(compiled);
|
|
|
49
49
|
const entry = useCompiled ? compiled : source;
|
|
50
50
|
const nodeArgs = useCompiled
|
|
51
51
|
? [entry, ...process.argv.slice(2)]
|
|
52
|
-
: [
|
|
52
|
+
: [
|
|
53
|
+
// Dev/source path type-strips the raw .ts. The .ts entry has no sibling
|
|
54
|
+
// package.json "type", so Node would emit a one-time
|
|
55
|
+
// MODULE_TYPELESS_PACKAGE_JSON warning. Adding {"type":"module"} is NOT a
|
|
56
|
+
// fix: it only relocates the warning to transitive .ts imports AND breaks
|
|
57
|
+
// the esbuild-CJS compiled path below. Suppress that one cosmetic warning
|
|
58
|
+
// for the server process; the compiled path needs no flag. (Phase 59.1 A4)
|
|
59
|
+
'--disable-warning=MODULE_TYPELESS_PACKAGE_JSON',
|
|
60
|
+
'--experimental-strip-types',
|
|
61
|
+
entry,
|
|
62
|
+
...process.argv.slice(2),
|
|
63
|
+
];
|
|
53
64
|
|
|
54
65
|
const child = spawn(process.execPath, nodeArgs, {
|
|
55
66
|
stdio: 'inherit',
|
package/bin/gdd-state-mcp
CHANGED
|
@@ -49,7 +49,18 @@ const useCompiled = fs.existsSync(compiled);
|
|
|
49
49
|
const entry = useCompiled ? compiled : source;
|
|
50
50
|
const nodeArgs = useCompiled
|
|
51
51
|
? [entry, ...process.argv.slice(2)]
|
|
52
|
-
: [
|
|
52
|
+
: [
|
|
53
|
+
// Dev/source path type-strips the raw .ts. The .ts entry has no sibling
|
|
54
|
+
// package.json "type", so Node would emit a one-time
|
|
55
|
+
// MODULE_TYPELESS_PACKAGE_JSON warning. Adding {"type":"module"} is NOT a
|
|
56
|
+
// fix: it only relocates the warning to transitive .ts imports AND breaks
|
|
57
|
+
// the esbuild-CJS compiled path below. Suppress that one cosmetic warning
|
|
58
|
+
// for the server process; the compiled path needs no flag. (Phase 59.1 A4)
|
|
59
|
+
'--disable-warning=MODULE_TYPELESS_PACKAGE_JSON',
|
|
60
|
+
'--experimental-strip-types',
|
|
61
|
+
entry,
|
|
62
|
+
...process.argv.slice(2),
|
|
63
|
+
];
|
|
53
64
|
|
|
54
65
|
const child = spawn(process.execPath, nodeArgs, {
|
|
55
66
|
stdio: 'inherit',
|
package/connections/gdd-state.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This file is the connection specification for the `gdd-state` MCP server within the get-design-done pipeline. `gdd-state` is a **local stdio MCP server** that ships with the plugin. It exposes 11 typed tools for reading and mutating `.design/STATE.md` and emits typed telemetry events on every successful mutation. Starting in Phase 20+, `gdd-state` is the **sole mutation surface** for STATE.md — stage SKILLs stop using `Read+regex+Write` and call these tools instead.
|
|
4
4
|
|
|
5
|
-
Unlike the remote/desktop connections (Figma, Refero, Preview, …), `gdd-state` is an **internal** connection: it does not reach out to any external service. It wraps the existing `
|
|
5
|
+
Unlike the remote/desktop connections (Figma, Refero, Preview, …), `gdd-state` is an **internal** connection: it does not reach out to any external service. It wraps the existing `sdk/state/` module (see Plans 20-01, 20-02, 20-04) and emits events via `sdk/event-stream/` (Plan 20-06). Every mutation tool emits a `state.mutation` event; `transition_stage` additionally emits `state.transition` on both pass and gate-veto.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Unlike the remote/desktop connections (Figma, Refero, Preview, …), `gdd-state`
|
|
|
10
10
|
|
|
11
11
|
**Prerequisites:**
|
|
12
12
|
|
|
13
|
-
- The `@hegemonart/get-design-done` plugin installed (the server script ships in `
|
|
13
|
+
- The `@hegemonart/get-design-done` plugin installed (the server script ships in `sdk/mcp/gdd-state/`).
|
|
14
14
|
- Node 22+ with `--experimental-strip-types` (the server is a TypeScript file run directly via strip-types — no build step).
|
|
15
15
|
|
|
16
16
|
### Option A — Project-scoped install (dev repo)
|
|
@@ -18,7 +18,7 @@ Unlike the remote/desktop connections (Figma, Refero, Preview, …), `gdd-state`
|
|
|
18
18
|
For local development against the plugin source tree:
|
|
19
19
|
|
|
20
20
|
```
|
|
21
|
-
claude mcp add gdd-state --transport stdio "node --experimental-strip-types ./
|
|
21
|
+
claude mcp add gdd-state --transport stdio "node --experimental-strip-types ./sdk/mcp/gdd-state/server.ts"
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Option B — Plugin-installed, global resolution
|
|
@@ -26,7 +26,7 @@ claude mcp add gdd-state --transport stdio "node --experimental-strip-types ./sc
|
|
|
26
26
|
When the plugin is installed globally via `npm i -g @hegemonart/get-design-done`:
|
|
27
27
|
|
|
28
28
|
```
|
|
29
|
-
claude mcp add gdd-state --transport stdio "node --experimental-strip-types $(npm root -g)/@hegemonart/get-design-done/
|
|
29
|
+
claude mcp add gdd-state --transport stdio "node --experimental-strip-types $(npm root -g)/@hegemonart/get-design-done/sdk/mcp/gdd-state/server.ts"
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Restart the Claude Code session after install.
|
|
@@ -105,7 +105,7 @@ or
|
|
|
105
105
|
}
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
`kind` is one of `validation`, `state_conflict`, `operation_failed`, `unknown` — matching the GDDError taxonomy in `
|
|
108
|
+
`kind` is one of `validation`, `state_conflict`, `operation_failed`, `unknown` — matching the GDDError taxonomy in `sdk/errors/`. Callers branch on `kind` to decide whether to retry, surface to the operator, or fall back. Full Draft-07 schemas live at `sdk/mcp/gdd-state/schemas/*.schema.json` and the combined manifest is at `reference/schemas/mcp-gdd-state-tools.schema.json`.
|
|
109
109
|
|
|
110
110
|
**Scoped out of Phase 20:**
|
|
111
111
|
|
|
@@ -131,10 +131,10 @@ Stage SKILL rewrites in Plans 20-07 through 20-11 will switch each skill from `R
|
|
|
131
131
|
|
|
132
132
|
## Fallback Behavior
|
|
133
133
|
|
|
134
|
-
If the `gdd-state` MCP is **not_configured** (ToolSearch returned empty), skills fall back to the pre-Phase-20 path by importing the `
|
|
134
|
+
If the `gdd-state` MCP is **not_configured** (ToolSearch returned empty), skills fall back to the pre-Phase-20 path by importing the `sdk/state/` module directly:
|
|
135
135
|
|
|
136
136
|
```ts
|
|
137
|
-
import { read, mutate, transition } from '@hegemonart/get-design-done/
|
|
137
|
+
import { read, mutate, transition } from '@hegemonart/get-design-done/sdk/state/index.js';
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
This path bypasses the event stream (no `state.mutation` or `state.transition` events are emitted) but preserves mutation safety through the same lockfile + atomic-rename protocol. It exists for two reasons:
|
|
@@ -171,7 +171,7 @@ preview: available
|
|
|
171
171
|
|
|
172
172
|
## Caveats and Pitfalls
|
|
173
173
|
|
|
174
|
-
- **Do not run multiple `gdd-state` instances against the same `.design/`.** The module's lockfile (see `
|
|
174
|
+
- **Do not run multiple `gdd-state` instances against the same `.design/`.** The module's lockfile (see `sdk/state/lockfile.ts`) guarantees per-process safety, but spawning two separate MCP servers against the same STATE.md wastes locks and produces duplicate events. One server per Claude Code session is the design contract.
|
|
175
175
|
|
|
176
176
|
- **Event ordering follows successful mutation, not request receipt.** `appendEvent()` is called only after `mutate()` returns successfully. A failed mutation produces a `{success:false, error}` response with no event emitted. The `state.transition` event is a deliberate exception: gate vetoes emit `state.transition` with `pass:false` because gate failures are themselves observable telemetry.
|
|
177
177
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hegemonart/get-design-done",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.59.1",
|
|
4
4
|
"description": "A design-quality pipeline for AI coding agents: brief, explore, plan, design, and verify UI work against your design system.",
|
|
5
5
|
"author": "Hegemon",
|
|
6
6
|
"homepage": "https://github.com/hegemonart/get-design-done",
|
|
@@ -94,11 +94,9 @@
|
|
|
94
94
|
"scan:outbound": "node scripts/scan-outbound-network.cjs",
|
|
95
95
|
"scan:ws-bind": "node scripts/scan-ws-bind.cjs",
|
|
96
96
|
"test:size-budget": "node --test test/suite/agent-size-budget.test.cjs",
|
|
97
|
-
"validate:skill-surface": "node --test test/suite/skill-surface-sync.test.cjs",
|
|
98
97
|
"release:extract-changelog": "node scripts/extract-changelog-section.cjs",
|
|
99
98
|
"verify:version-sync": "node scripts/verify-version-sync.cjs",
|
|
100
|
-
"
|
|
101
|
-
"gdd-sdk": "node --experimental-strip-types sdk/cli/index.ts"
|
|
99
|
+
"gdd-sdk": "node bin/gdd-sdk"
|
|
102
100
|
},
|
|
103
101
|
"devDependencies": {
|
|
104
102
|
"@types/node": "^25.6.0",
|
package/reference/codex-tools.md
CHANGED
|
@@ -29,7 +29,7 @@ it by adding to `~/.codex/config.toml`:
|
|
|
29
29
|
[[mcp_servers]]
|
|
30
30
|
name = "gdd-state"
|
|
31
31
|
command = "node"
|
|
32
|
-
args = ["--experimental-strip-types", "<pkg-root>/
|
|
32
|
+
args = ["--experimental-strip-types", "<pkg-root>/sdk/mcp/gdd-state/server.ts"]
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
All 11 tools exposed by the server appear as `mcp__gdd_state__*` in Codex.
|
|
@@ -30,7 +30,7 @@ it by adding to `~/.gemini/settings.json`:
|
|
|
30
30
|
"mcpServers": {
|
|
31
31
|
"gdd-state": {
|
|
32
32
|
"command": "node",
|
|
33
|
-
"args": ["--experimental-strip-types", "<pkg-root>/
|
|
33
|
+
"args": ["--experimental-strip-types", "<pkg-root>/sdk/mcp/gdd-state/server.ts"]
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -223,12 +223,12 @@ on them fail with a clear connection-refused class of error.
|
|
|
223
223
|
id: KFM-008
|
|
224
224
|
pattern: '(MCP.*(unreachable|ECONNREFUSED|not connected)|mcp.*server.*not.*running|connection refused.*ws://)'
|
|
225
225
|
diagnosis: 'An MCP server (Figma, GDD-state, or GDD-tools) is not reachable; the plugin cannot route tool calls through it.'
|
|
226
|
-
remedy: 'Start the relevant MCP server (see
|
|
226
|
+
remedy: 'Start the relevant MCP server (see sdk/mcp/) and confirm `claude mcp list` shows it as connected.'
|
|
227
227
|
severity: medium
|
|
228
228
|
propose_report: true
|
|
229
229
|
symptom: 'A command depending on an MCP server fails with `MCP unreachable`, `ECONNREFUSED`, `mcp server not running`, or `connection refused ws://...`. Tool calls routed through MCP never reach their target.'
|
|
230
230
|
root_cause: 'The local MCP transport (WebSocket or stdio bridge) is not bound. The MCP server process is either not started, crashed silently, or is listening on a different port than the client expects.'
|
|
231
|
-
fix: '1) Run `claude mcp list` and check the status column for the failing server. 2) If it shows `disconnected`, start it: `
|
|
231
|
+
fix: '1) Run `claude mcp list` and check the status column for the failing server. 2) If it shows `disconnected`, start it: `sdk/mcp/<name>/server.ts` or the launcher script for that server. 3) Confirm the port matches the value in `mcp.json` or `.mcp.json`. 4) Re-run the failing command. If the server crashes on start, this is a maintainer report path (propose_report:true).'
|
|
232
232
|
related_phases: [27.7, 33.6]
|
|
233
233
|
first_observed_cycle: 'pre-30.5'
|
|
234
234
|
```
|
package/reference/registry.json
CHANGED
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
"path": "reference/schemas/mcp-gdd-tools.schema.json",
|
|
503
503
|
"type": "schema",
|
|
504
504
|
"phase": 27.7,
|
|
505
|
-
"description": "Draft-07 input/output schemas for the 12 read-only tools in
|
|
505
|
+
"description": "Draft-07 input/output schemas for the 12 read-only tools in sdk/mcp/gdd-mcp/ (gdd-mcp MCP server)"
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
508
|
"name": "meta-rules",
|