@hustle-together/api-dev-tools 3.6.1 → 3.6.3

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
@@ -1,4 +1,4 @@
1
- # API Development Tools for Claude Code v3.6.1
1
+ # API Development Tools for Claude Code v3.6.3
2
2
 
3
3
  **Interview-driven, research-first API development with 100% phase enforcement**
4
4
 
@@ -7,7 +7,7 @@
7
7
  │ ❯ npx @hustle-together/api-dev-tools │
8
8
  │ --scope=project │
9
9
  │ │
10
- │ 🚀 Installing v3.6.1... │
10
+ │ 🚀 Installing v3.6.3... │
11
11
  │ │
12
12
  │ ✅ Python 3.12.0 │
13
13
  │ 📦 24 slash commands │
@@ -17,9 +17,9 @@
17
17
  │ 📚 research cache ready │
18
18
  │ 🔌 MCP: context7, github │
19
19
  │ │
20
- ═════════════════════════════════════
20
+ ════════════════════════════════════════════
21
21
  │ 🎉 Installation complete! │
22
- ═════════════════════════════════════
22
+ ════════════════════════════════════════════
23
23
  │ │
24
24
  │ Quick Start: /api-create my-endpoint │
25
25
  └──────────────────────────────────────────────┘
@@ -49,7 +49,7 @@ When developers use Claude (or any LLM) to build APIs, five predictable failure
49
49
 
50
50
  ### Our Solution
51
51
 
52
- **A 12-phase workflow enforced by Python hooks that BLOCK progress** until each phase is complete with explicit user approval. Not suggestions. Not guidelines. **Hard stops using Exit Code 2.**
52
+ **A 13-phase workflow enforced by Python hooks that BLOCK progress** until each phase is complete with explicit user approval. Not suggestions. Not guidelines. **Hard stops using Exit Code 2.**
53
53
 
54
54
  This means:
55
55
  - Claude cannot skip research
@@ -62,9 +62,9 @@ Every decision is tracked. Every phase is verified. Every step is enforced.
62
62
 
63
63
  ---
64
64
 
65
- ## The 12-Phase Workflow
65
+ ## The 13-Phase Workflow
66
66
 
67
- When you run `/api-create brandfetch`, Claude is guided through 12 enforced phases. Each phase has three components:
67
+ When you run `/api-create brandfetch`, Claude is guided through 13 enforced phases. Each phase has three components:
68
68
 
69
69
  1. **The Problem** - What goes wrong without enforcement
70
70
  2. **The Solution** - How the phase prevents the problem
@@ -1582,13 +1582,13 @@ Research shows context dilution accelerates after 7-10 messages. Re-grounding ev
1582
1582
  ## File Structure
1583
1583
 
1584
1584
  ```
1585
- @hustle-together/api-dev-tools v3.6.1
1585
+ @hustle-together/api-dev-tools v3.6.3
1586
1586
 
1587
1587
  ├── bin/
1588
1588
  │ └── cli.js # NPX installer
1589
1589
 
1590
1590
  ├── commands/ # 24 slash commands
1591
- │ ├── api-create.md # Main 12-phase workflow
1591
+ │ ├── api-create.md # Main 13-phase workflow
1592
1592
  │ ├── api-interview.md # Structured interview
1593
1593
  │ ├── api-research.md # Adaptive research
1594
1594
  │ ├── api-verify.md # Manual verification
@@ -1644,7 +1644,7 @@ Research shows context dilution accelerates after 7-10 messages. Re-grounding ev
1644
1644
  │ └── api-workflow-check.py # Phase 12 (block if incomplete)
1645
1645
 
1646
1646
  ├── templates/
1647
- │ ├── api-dev-state.json # 12 phases + phase_exit_confirmed
1647
+ │ ├── api-dev-state.json # 13 phases + phase_exit_confirmed
1648
1648
  │ ├── settings.json # Hook registrations
1649
1649
  │ ├── research-index.json # 7-day freshness tracking
1650
1650
  │ └── CLAUDE-SECTION.md # CLAUDE.md injection
@@ -1804,11 +1804,18 @@ npx @hustle-together/api-dev-tools --scope=project
1804
1804
 
1805
1805
  ---
1806
1806
 
1807
+ ## What's New in v3.6.3
1808
+
1809
+ ### Phase Numbering Fix
1810
+ - Fixed inconsistency: "12-phase workflow" → "13-phase workflow"
1811
+ - Added missing Phase 12 (Completion) to state file template
1812
+ - Phases are now numbered 0-12 (13 total), not 0-11
1813
+
1807
1814
  ## What's New in v3.6.1
1808
1815
 
1809
1816
  ### README Improvements
1810
1817
  - Removed verbose ASCII workflow simulations (was 798 lines)
1811
- - Added comprehensive explanations for all 12 phases
1818
+ - Added comprehensive explanations for all 13 phases
1812
1819
  - Detailed sections on Exit Code 2, Context7, phase_exit_confirmed
1813
1820
  - Better mobile/narrow display formatting (50-char width ASCII)
1814
1821
  - Collapsible sections for easier scanning
package/bin/cli.js CHANGED
@@ -482,7 +482,7 @@ function main() {
482
482
  log(' Test UI: /api-test page + /api/test-structure API (if Next.js)', 'blue');
483
483
 
484
484
  log('\n🆕 New in v3.0:', 'bright');
485
- log(' • 12 phases, each with mandatory user checkpoint', 'cyan');
485
+ log(' • 13 phases, each with mandatory user checkpoint', 'cyan');
486
486
  log(' • AskUserQuestion required at EVERY phase transition', 'cyan');
487
487
  log(' • Loop-back support when user wants changes', 'cyan');
488
488
  log(' • Adaptive research (propose-approve, not shotgun)', 'cyan');
@@ -502,12 +502,12 @@ function main() {
502
502
  log(' • Phase 11: "Documentation complete?" (final checklist)', 'cyan');
503
503
 
504
504
  log('\n📚 Available Commands:', 'bright');
505
- log(' /api-create [endpoint] - Complete 12-phase workflow', 'blue');
505
+ log(' /api-create [endpoint] - Complete 13-phase workflow', 'blue');
506
506
  log(' /api-interview [endpoint] - Questions FROM research', 'blue');
507
507
  log(' /api-research [library] - Adaptive propose-approve research', 'blue');
508
508
  log(' /api-verify [endpoint] - Manual Phase 9 verification', 'blue');
509
509
  log(' /api-env [endpoint] - Check API keys and environment', 'blue');
510
- log(' /api-status [endpoint] - Track 12-phase progress', 'blue');
510
+ log(' /api-status [endpoint] - Track 13-phase progress', 'blue');
511
511
 
512
512
  log('\n🚀 Quick Start:', 'bright');
513
513
  log(' /api-create my-endpoint', 'blue');
@@ -30,7 +30,7 @@
30
30
  ### Complete Workflow
31
31
 
32
32
  **`/api-create [endpoint-name]`**
33
- - Runs all 12 phases automatically
33
+ - Runs all 13 phases automatically
34
34
  - Loop-back architecture at every checkpoint
35
35
  - See [api-create.md](api-create.md) for full flow
36
36
 
@@ -57,7 +57,7 @@
57
57
  - See [api-env.md](api-env.md)
58
58
 
59
59
  **`/api-status [endpoint-name]`**
60
- - Track progress through 12 phases
60
+ - Track progress through 13 phases
61
61
  - See [api-status.md](api-status.md)
62
62
 
63
63
  ### TDD Commands
@@ -68,7 +68,7 @@ From [@wbern/claude-instructions](https://github.com/wbern/claude-instructions):
68
68
  - `/refactor` - Clean up while tests pass
69
69
  - `/cycle [description]` - Full Red → Green → Refactor
70
70
 
71
- ## 12-Phase Flow
71
+ ## 13-Phase Flow
72
72
 
73
73
  ```
74
74
  Phase 0: DISAMBIGUATION - Clarify ambiguous terms
@@ -1117,7 +1117,7 @@
1117
1117
  }
1118
1118
 
1119
1119
  /* ============================================
1120
- SECTION 5: THE 12 PHASES
1120
+ SECTION 5: THE 13 PHASES
1121
1121
  ============================================ */
1122
1122
  #phases .section-header {
1123
1123
  text-align: center;
@@ -3036,11 +3036,11 @@ Required actions:
3036
3036
  </div>
3037
3037
  </section>
3038
3038
 
3039
- <!-- Section 5: The 12 Phases -->
3039
+ <!-- Section 5: The 13 Phases -->
3040
3040
  <section id="phases">
3041
3041
  <div class="section-inner">
3042
3042
  <div class="section-header">
3043
- <h2>The 12 Phases</h2>
3043
+ <h2>The 13 Phases</h2>
3044
3044
  <p class="text-muted">Each phase must complete before proceeding. Click EXPAND for details.</p>
3045
3045
  </div>
3046
3046
 
@@ -3560,7 +3560,7 @@ Required actions:
3560
3560
  <div class="terminal-title">~/project</div>
3561
3561
  <pre><span class="prompt">Final check...</span>
3562
3562
 
3563
- <span class="success"><i class="fa-solid fa-check"></i></span> <span class="output">All 12 phases complete</span>
3563
+ <span class="success"><i class="fa-solid fa-check"></i></span> <span class="output">All 13 phases complete</span>
3564
3564
  <span class="success"><i class="fa-solid fa-check"></i></span> <span class="output">Tests passing</span>
3565
3565
  <span class="success"><i class="fa-solid fa-check"></i></span> <span class="output">Docs updated</span>
3566
3566
  <span class="success"><i class="fa-solid fa-check"></i></span> <span class="output">Research cached</span>
@@ -3598,7 +3598,7 @@ Required actions:
3598
3598
  <div class="section-inner">
3599
3599
  <div class="section-header">
3600
3600
  <h2>See It In Action</h2>
3601
- <p class="text-muted">Watch the complete 12-phase workflow: /api-create brandfetch</p>
3601
+ <p class="text-muted">Watch the complete 13-phase workflow: /api-create brandfetch</p>
3602
3602
  </div>
3603
3603
 
3604
3604
  <div class="demo-controls-bar">
@@ -3767,7 +3767,7 @@ Required actions:
3767
3767
  <div class="state-explanation">
3768
3768
  <div class="state-field">
3769
3769
  <h4><i class="fa-solid fa-database"></i> phases.*</h4>
3770
- <p>Tracks completion status for all 12 phases. Hooks check this before allowing operations.</p>
3770
+ <p>Tracks completion status for all 13 phases. Hooks check this before allowing operations.</p>
3771
3771
  </div>
3772
3772
 
3773
3773
  <div class="state-field">
@@ -4169,7 +4169,7 @@ Required actions:
4169
4169
  }
4170
4170
 
4171
4171
  // ============================================
4172
- // TERMINAL DEMO - Scene-based system (All 12 phases)
4172
+ // TERMINAL DEMO - Scene-based system (All 13 phases)
4173
4173
  // ============================================
4174
4174
 
4175
4175
  const demoScenes = [
@@ -4513,7 +4513,7 @@ Required actions:
4513
4513
  phase: 12,
4514
4514
  title: 'Phase 12: Completion',
4515
4515
  problem: 'How do you know everything is actually done? Claude might claim finished but skip steps.',
4516
- solution: 'The api-workflow-check hook runs at stop time. Verifies all 12 phases completed. All files created, tests passing, docs updated.',
4516
+ solution: 'The api-workflow-check hook runs at stop time. Verifies all 13 phases completed. All files created, tests passing, docs updated.',
4517
4517
  hook: 'api-workflow-check.py (Stop)',
4518
4518
  lines: [
4519
4519
  { text: '', class: 'output' },
@@ -4521,7 +4521,7 @@ Required actions:
4521
4521
  { text: '║ PHASE 12: COMPLETION ║', class: 'highlight' },
4522
4522
  { text: '╚══════════════════════════════════════════════════════════════╝', class: 'highlight' },
4523
4523
  { text: '', class: 'output' },
4524
- { text: '→ api-workflow-check.py verifying all 12 phases...', class: 'mcp-call' },
4524
+ { text: '→ api-workflow-check.py verifying all 13 phases...', class: 'mcp-call' },
4525
4525
  { text: '', class: 'output' },
4526
4526
  { text: ' ✓ disambiguation: complete', class: 'success' },
4527
4527
  { text: ' ✓ scope: complete', class: 'success' },
@@ -4539,7 +4539,7 @@ Required actions:
4539
4539
  { text: 'Files created: route.ts, brandfetch.test.ts, schema.ts', class: 'output' },
4540
4540
  { text: '', class: 'output' },
4541
4541
  { text: '════════════════════════════════════════════════════════════════', class: 'success' },
4542
- { text: ' ✓ WORKFLOW COMPLETE - All 12 phases verified ', class: 'success' },
4542
+ { text: ' ✓ WORKFLOW COMPLETE - All 13 phases verified ', class: 'success' },
4543
4543
  { text: '════════════════════════════════════════════════════════════════', class: 'success' }
4544
4544
  ]
4545
4545
  }
@@ -5411,7 +5411,7 @@ Required actions:
5411
5411
  solution: 'Six fixes with Python hooks...',
5412
5412
  grounding: 'Research grounding...',
5413
5413
  hooks: 'Workflow enforcement...',
5414
- phases: 'The 12 phases...',
5414
+ phases: 'The 13 phases...',
5415
5415
  demo: 'See it in action...',
5416
5416
  state: 'Persistent memory...',
5417
5417
  install: 'Get started...'
@@ -5659,7 +5659,7 @@ Required actions:
5659
5659
  solution: 'Solution',
5660
5660
  grounding: 'Research',
5661
5661
  hooks: 'Workflow',
5662
- phases: '12 Phases',
5662
+ phases: '13 Phases',
5663
5663
  demo: 'Demo',
5664
5664
  state: 'Memory',
5665
5665
  install: 'Install'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hustle-together/api-dev-tools",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "Interview-driven, research-first API development workflow with continuous verification loops for Claude Code",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {
@@ -6,14 +6,14 @@ This project uses **@hustle-together/api-dev-tools** for interview-driven, resea
6
6
 
7
7
  | Command | Purpose |
8
8
  |---------|---------|
9
- | `/api-create [endpoint]` | Complete 12-phase workflow |
9
+ | `/api-create [endpoint]` | Complete 13-phase workflow |
10
10
  | `/api-interview [endpoint]` | Questions FROM research findings |
11
11
  | `/api-research [library]` | Adaptive propose-approve research |
12
12
  | `/api-verify [endpoint]` | Re-research and verify implementation |
13
13
  | `/api-env [endpoint]` | Check API keys |
14
14
  | `/api-status [endpoint]` | Track progress |
15
15
 
16
- ### 12-Phase Flow
16
+ ### 13-Phase Flow
17
17
 
18
18
  ```
19
19
  Phase 0: DISAMBIGUATION - Clarify ambiguous terms before research
@@ -140,6 +140,19 @@
140
140
  "phase_exit_confirmed": false,
141
141
  "last_question_type": null,
142
142
  "description": "Update manifests, OpenAPI, cache research"
143
+ },
144
+ "completion": {
145
+ "status": "not_started",
146
+ "all_tests_passing": false,
147
+ "coverage_100_percent": false,
148
+ "typescript_compiles": false,
149
+ "docs_updated": false,
150
+ "commit_ready": false,
151
+ "files_created": [],
152
+ "files_modified": [],
153
+ "phase_exit_confirmed": false,
154
+ "last_question_type": null,
155
+ "description": "Final verification - all tests pass, docs complete, ready for commit"
143
156
  }
144
157
  },
145
158
  "manifest_generation": {