@hustle-together/api-dev-tools 3.12.3 → 3.12.16

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.
Files changed (96) hide show
  1. package/.claude/commands/hustle-build.md +259 -0
  2. package/.claude/commands/hustle-combine.md +1089 -0
  3. package/.claude/commands/hustle-ui-create-page.md +1078 -0
  4. package/.claude/commands/hustle-ui-create.md +1058 -0
  5. package/.claude/hooks/auto-answer.py +305 -0
  6. package/.claude/hooks/cache-research.py +337 -0
  7. package/.claude/hooks/check-api-routes.py +168 -0
  8. package/.claude/hooks/check-playwright-setup.py +103 -0
  9. package/.claude/hooks/check-storybook-setup.py +81 -0
  10. package/.claude/hooks/check-update.py +132 -0
  11. package/.claude/hooks/completion-promise-detector.py +293 -0
  12. package/.claude/hooks/context-capacity-warning.py +171 -0
  13. package/.claude/hooks/detect-interruption.py +165 -0
  14. package/.claude/hooks/docs-update-check.py +120 -0
  15. package/.claude/hooks/enforce-a11y-audit.py +202 -0
  16. package/.claude/hooks/enforce-brand-guide.py +241 -0
  17. package/.claude/hooks/enforce-component-type-confirm.py +97 -0
  18. package/.claude/hooks/enforce-dry-run.py +134 -0
  19. package/.claude/hooks/enforce-freshness.py +184 -0
  20. package/.claude/hooks/enforce-page-components.py +186 -0
  21. package/.claude/hooks/enforce-page-data-schema.py +155 -0
  22. package/.claude/hooks/enforce-questions-sourced.py +146 -0
  23. package/.claude/hooks/enforce-schema-from-interview.py +248 -0
  24. package/.claude/hooks/enforce-ui-disambiguation.py +108 -0
  25. package/.claude/hooks/enforce-ui-interview.py +130 -0
  26. package/.claude/hooks/generate-adr-options.py +282 -0
  27. package/.claude/hooks/generate-manifest-entry.py +1161 -0
  28. package/.claude/hooks/hook_utils.py +609 -0
  29. package/.claude/hooks/lib/__init__.py +1 -0
  30. package/.claude/hooks/lib/__pycache__/__init__.cpython-314.pyc +0 -0
  31. package/.claude/hooks/lib/__pycache__/greptile.cpython-314.pyc +0 -0
  32. package/.claude/hooks/lib/__pycache__/ntfy.cpython-314.pyc +0 -0
  33. package/.claude/hooks/lib/greptile.py +355 -0
  34. package/.claude/hooks/lib/ntfy.py +209 -0
  35. package/.claude/hooks/notify-input-needed.py +73 -0
  36. package/.claude/hooks/notify-phase-complete.py +90 -0
  37. package/.claude/hooks/ntfy-on-question.py +240 -0
  38. package/.claude/hooks/orchestrator-completion.py +313 -0
  39. package/.claude/hooks/orchestrator-handoff.py +267 -0
  40. package/.claude/hooks/orchestrator-session-startup.py +146 -0
  41. package/.claude/hooks/parallel-orchestrator.py +451 -0
  42. package/.claude/hooks/project-document-prompt.py +302 -0
  43. package/.claude/hooks/remote-question-proxy.py +284 -0
  44. package/.claude/hooks/remote-question-server.py +1224 -0
  45. package/.claude/hooks/run-code-review.py +393 -0
  46. package/.claude/hooks/run-visual-qa.py +338 -0
  47. package/.claude/hooks/session-logger.py +323 -0
  48. package/.claude/hooks/test-orchestrator-reground.py +248 -0
  49. package/.claude/hooks/track-scope-coverage.py +220 -0
  50. package/.claude/hooks/track-token-usage.py +121 -0
  51. package/.claude/hooks/update-adr-decision.py +236 -0
  52. package/.claude/hooks/update-api-showcase.py +161 -0
  53. package/.claude/hooks/update-registry.py +352 -0
  54. package/.claude/hooks/update-testing-checklist.py +195 -0
  55. package/.claude/hooks/update-ui-showcase.py +224 -0
  56. package/.claude/settings.local.json +7 -1
  57. package/.claude/test-auto-answer-bot.py +183 -0
  58. package/.claude/test-completion-detector.py +263 -0
  59. package/.claude/test-orchestrator-state.json +20 -0
  60. package/.claude/test-orchestrator.sh +271 -0
  61. package/.skills/api-create/SKILL.md +88 -3
  62. package/.skills/docs-sync/SKILL.md +260 -0
  63. package/.skills/hustle-build/SKILL.md +459 -0
  64. package/.skills/hustle-build-review/SKILL.md +518 -0
  65. package/CHANGELOG.md +87 -0
  66. package/README.md +86 -9
  67. package/bin/cli.js +1302 -88
  68. package/commands/hustle-api-create.md +22 -0
  69. package/commands/hustle-combine.md +81 -2
  70. package/commands/hustle-ui-create-page.md +84 -2
  71. package/commands/hustle-ui-create.md +82 -2
  72. package/hooks/auto-answer.py +228 -0
  73. package/hooks/check-update.py +132 -0
  74. package/hooks/ntfy-on-question.py +227 -0
  75. package/hooks/orchestrator-completion.py +313 -0
  76. package/hooks/orchestrator-handoff.py +189 -0
  77. package/hooks/orchestrator-session-startup.py +146 -0
  78. package/hooks/periodic-reground.py +230 -67
  79. package/hooks/update-api-showcase.py +13 -1
  80. package/hooks/update-ui-showcase.py +13 -1
  81. package/package.json +7 -3
  82. package/scripts/extract-schema-docs.cjs +322 -0
  83. package/templates/CLAUDE-SECTION.md +89 -64
  84. package/templates/api-showcase/_components/APIModal.tsx +100 -8
  85. package/templates/api-showcase/_components/APIShowcase.tsx +36 -4
  86. package/templates/api-showcase/_components/APITester.tsx +367 -58
  87. package/templates/docs/page.tsx +230 -0
  88. package/templates/hustle-build-defaults.json +84 -0
  89. package/templates/hustle-dev-dashboard/page.tsx +365 -0
  90. package/templates/playwright-report/page.tsx +258 -0
  91. package/templates/settings.json +88 -7
  92. package/templates/test-results/page.tsx +237 -0
  93. package/templates/typedoc.json +19 -0
  94. package/templates/ui-showcase/_components/UIShowcase.tsx +1 -1
  95. package/templates/ui-showcase/page.tsx +1 -1
  96. package/.claude/api-dev-state.json +0 -466
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # API Development Tools v1.0.0
1
+ # API Development Tools v3.12.12
2
2
 
3
3
  ```
4
4
  ╔═══════════════════════════════════════════════════════════════╗
@@ -141,7 +141,7 @@ Combines multiple existing APIs into orchestrated endpoints:
141
141
 
142
142
  | Component | Count | Purpose |
143
143
  | ----------------- | ----- | --------------------------------------- |
144
- | Agent Skills | 23 | Cross-platform workflow commands |
144
+ | Agent Skills | 24 | Cross-platform workflow commands |
145
145
  | Enforcement Hooks | 22 | Block progress until phases complete |
146
146
  | Subagents | 7 | Parallel research, schemas, tests, docs |
147
147
  | State Tracking | 1 | Track progress across sessions |
@@ -183,6 +183,63 @@ Notifications include:
183
183
 
184
184
  ---
185
185
 
186
+ ## API Showcase
187
+
188
+ Interactive documentation and testing UI for all your APIs:
189
+
190
+ ```bash
191
+ # Access at: http://localhost:3000/api-showcase
192
+ ```
193
+
194
+ **Features:**
195
+ - Grid view of all registered APIs with search and filtering
196
+ - Click any API to open interactive testing modal
197
+ - **Example Requests** - Pre-built, runnable examples that auto-fill query params
198
+ - **Try It** - Live API testing with real responses
199
+ - **Curl Examples** - Copy working curl commands
200
+ - **Documentation** - File locations, schemas, parameters
201
+
202
+ ### How Examples Work
203
+
204
+ Examples are generated from your Zod schema parameters during Phase 13 (Documentation):
205
+
206
+ ```json
207
+ // In registry.json - auto-generated from schema
208
+ "endpoints": {
209
+ "search": {
210
+ "params": [...],
211
+ "examples": {
212
+ "basic": {
213
+ "description": "Basic search request",
214
+ "query": "action=search&query=nature",
215
+ "curl": "curl -X GET 'http://localhost:3000/api/v2/unsplash?action=search&query=nature'"
216
+ }
217
+ }
218
+ }
219
+ }
220
+ ```
221
+
222
+ The showcase reads examples from `registry.json` and displays clickable buttons that auto-fill the request.
223
+
224
+ ---
225
+
226
+ ## TypeDoc Integration
227
+
228
+ Generate API documentation from TSDoc comments:
229
+
230
+ ```bash
231
+ pnpm typedoc # Generate docs to docs/api/
232
+ pnpm typedoc:watch # Watch mode for development
233
+ ```
234
+
235
+ TypeDoc runs during **Phase 13 (Documentation)** and generates Markdown documentation from:
236
+ - `src/lib/schemas/*.ts` - Zod schemas with TSDoc comments
237
+ - `src/app/api/**/*.ts` - API route handlers
238
+
239
+ Configuration: `typedoc.json` (installed by the CLI)
240
+
241
+ ---
242
+
186
243
  ## Additional Commands
187
244
 
188
245
  ### TDD Workflow
@@ -214,13 +271,33 @@ Notifications include:
214
271
 
215
272
  ## Documentation
216
273
 
217
- | Document | Purpose |
218
- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
219
- | **[BEST_PRACTICES_ANALYSIS.md](./BEST_PRACTICES_ANALYSIS.md)** | Complete phase documentation with hook details, enforcement logic, and workflow diagrams. The authoritative reference for understanding how each phase works. |
220
- | **[INSTALLATION_GUIDE.md](./INSTALLATION_GUIDE.md)** | Step-by-step setup instructions including manual installation, MCP configuration, environment variables, and troubleshooting. |
221
- | **[.skills/README.md](./.skills/README.md)** | All 23 agent skills with usage examples, parameters, and cross-platform compatibility notes. |
222
- | **[CHANGELOG.md](./CHANGELOG.md)** | Version history with features and release notes. |
223
- | **[ROADMAP.md](./ROADMAP.md)** | Future features and enhancement plans including Phase 14 code review, async research, and more. |
274
+ ### Core Reference
275
+
276
+ | Document | Purpose |
277
+ | -------- | ------- |
278
+ | **[docs/SKILLS.md](./docs/SKILLS.md)** | Complete slash command reference - all 24+ skills with usage and examples |
279
+ | **[docs/HOOKS.md](./docs/HOOKS.md)** | All 45+ enforcement hooks - what they do and when they run |
280
+ | **[docs/AGENTS.md](./docs/AGENTS.md)** | Specialized subagents - parallel-researcher, schema-generator, etc. |
281
+ | **[docs/ORCHESTRATOR.md](./docs/ORCHESTRATOR.md)** | Master workflow controller - /hustle-build, decomposition, shared decisions |
282
+ | **[docs/REGROUNDING.md](./docs/REGROUNDING.md)** | 7-turn context refresh system - prevents "lost in the middle" problem |
283
+ | **[docs/PLUGIN_ARCHITECTURE.md](./docs/PLUGIN_ARCHITECTURE.md)** | How the plugin system works - installation, state, lifecycle |
284
+ | **[docs/CLAUDE_CODE_BEST_PRACTICES.md](./docs/CLAUDE_CODE_BEST_PRACTICES.md)** | Industry best practices for Claude Code - hooks, subagents, context engineering |
285
+ | **[docs/GAP_ANALYSIS.md](./docs/GAP_ANALYSIS.md)** | How api-dev-tools implements best practices and what gaps remain |
286
+
287
+ ### Guides
288
+
289
+ | Document | Purpose |
290
+ | -------- | ------- |
291
+ | **[INSTALLATION_GUIDE.md](./INSTALLATION_GUIDE.md)** | Step-by-step setup including MCP config, environment variables, troubleshooting |
292
+ | **[BEST_PRACTICES_ANALYSIS.md](./BEST_PRACTICES_ANALYSIS.md)** | Phase documentation with workflow diagrams and enforcement logic |
293
+ | **[.skills/README.md](./.skills/README.md)** | Agent Skills format compatibility and cross-platform notes |
294
+
295
+ ### Project Info
296
+
297
+ | Document | Purpose |
298
+ | -------- | ------- |
299
+ | **[CHANGELOG.md](./CHANGELOG.md)** | Version history with features and release notes |
300
+ | **[ROADMAP.md](./ROADMAP.md)** | Future features and enhancement plans |
224
301
 
225
302
  ---
226
303