@hustle-together/api-dev-tools 3.6.0 → 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/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.0",
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": {