@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/README.md +1649 -588
- package/bin/cli.js +3 -3
- package/commands/README.md +3 -3
- package/demo/workflow-demo.html +12 -12
- package/package.json +1 -1
- package/templates/CLAUDE-SECTION.md +2 -2
- package/templates/api-dev-state.json +13 -0
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(' ā¢
|
|
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
|
|
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
|
|
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');
|
package/commands/README.md
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
### Complete Workflow
|
|
31
31
|
|
|
32
32
|
**`/api-create [endpoint-name]`**
|
|
33
|
-
- Runs all
|
|
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
|
|
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
|
-
##
|
|
71
|
+
## 13-Phase Flow
|
|
72
72
|
|
|
73
73
|
```
|
|
74
74
|
Phase 0: DISAMBIGUATION - Clarify ambiguous terms
|
package/demo/workflow-demo.html
CHANGED
|
@@ -1117,7 +1117,7 @@
|
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
1119
|
/* ============================================
|
|
1120
|
-
SECTION 5: THE
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: '
|
|
5662
|
+
phases: '13 Phases',
|
|
5663
5663
|
demo: 'Demo',
|
|
5664
5664
|
state: 'Memory',
|
|
5665
5665
|
install: 'Install'
|
package/package.json
CHANGED
|
@@ -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
|
|
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
|
-
###
|
|
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": {
|