@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.
- package/.claude/commands/hustle-build.md +259 -0
- package/.claude/commands/hustle-combine.md +1089 -0
- package/.claude/commands/hustle-ui-create-page.md +1078 -0
- package/.claude/commands/hustle-ui-create.md +1058 -0
- package/.claude/hooks/auto-answer.py +305 -0
- package/.claude/hooks/cache-research.py +337 -0
- package/.claude/hooks/check-api-routes.py +168 -0
- package/.claude/hooks/check-playwright-setup.py +103 -0
- package/.claude/hooks/check-storybook-setup.py +81 -0
- package/.claude/hooks/check-update.py +132 -0
- package/.claude/hooks/completion-promise-detector.py +293 -0
- package/.claude/hooks/context-capacity-warning.py +171 -0
- package/.claude/hooks/detect-interruption.py +165 -0
- package/.claude/hooks/docs-update-check.py +120 -0
- package/.claude/hooks/enforce-a11y-audit.py +202 -0
- package/.claude/hooks/enforce-brand-guide.py +241 -0
- package/.claude/hooks/enforce-component-type-confirm.py +97 -0
- package/.claude/hooks/enforce-dry-run.py +134 -0
- package/.claude/hooks/enforce-freshness.py +184 -0
- package/.claude/hooks/enforce-page-components.py +186 -0
- package/.claude/hooks/enforce-page-data-schema.py +155 -0
- package/.claude/hooks/enforce-questions-sourced.py +146 -0
- package/.claude/hooks/enforce-schema-from-interview.py +248 -0
- package/.claude/hooks/enforce-ui-disambiguation.py +108 -0
- package/.claude/hooks/enforce-ui-interview.py +130 -0
- package/.claude/hooks/generate-adr-options.py +282 -0
- package/.claude/hooks/generate-manifest-entry.py +1161 -0
- package/.claude/hooks/hook_utils.py +609 -0
- package/.claude/hooks/lib/__init__.py +1 -0
- package/.claude/hooks/lib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/.claude/hooks/lib/__pycache__/greptile.cpython-314.pyc +0 -0
- package/.claude/hooks/lib/__pycache__/ntfy.cpython-314.pyc +0 -0
- package/.claude/hooks/lib/greptile.py +355 -0
- package/.claude/hooks/lib/ntfy.py +209 -0
- package/.claude/hooks/notify-input-needed.py +73 -0
- package/.claude/hooks/notify-phase-complete.py +90 -0
- package/.claude/hooks/ntfy-on-question.py +240 -0
- package/.claude/hooks/orchestrator-completion.py +313 -0
- package/.claude/hooks/orchestrator-handoff.py +267 -0
- package/.claude/hooks/orchestrator-session-startup.py +146 -0
- package/.claude/hooks/parallel-orchestrator.py +451 -0
- package/.claude/hooks/project-document-prompt.py +302 -0
- package/.claude/hooks/remote-question-proxy.py +284 -0
- package/.claude/hooks/remote-question-server.py +1224 -0
- package/.claude/hooks/run-code-review.py +393 -0
- package/.claude/hooks/run-visual-qa.py +338 -0
- package/.claude/hooks/session-logger.py +323 -0
- package/.claude/hooks/test-orchestrator-reground.py +248 -0
- package/.claude/hooks/track-scope-coverage.py +220 -0
- package/.claude/hooks/track-token-usage.py +121 -0
- package/.claude/hooks/update-adr-decision.py +236 -0
- package/.claude/hooks/update-api-showcase.py +161 -0
- package/.claude/hooks/update-registry.py +352 -0
- package/.claude/hooks/update-testing-checklist.py +195 -0
- package/.claude/hooks/update-ui-showcase.py +224 -0
- package/.claude/settings.local.json +7 -1
- package/.claude/test-auto-answer-bot.py +183 -0
- package/.claude/test-completion-detector.py +263 -0
- package/.claude/test-orchestrator-state.json +20 -0
- package/.claude/test-orchestrator.sh +271 -0
- package/.skills/api-create/SKILL.md +88 -3
- package/.skills/docs-sync/SKILL.md +260 -0
- package/.skills/hustle-build/SKILL.md +459 -0
- package/.skills/hustle-build-review/SKILL.md +518 -0
- package/CHANGELOG.md +87 -0
- package/README.md +86 -9
- package/bin/cli.js +1302 -88
- package/commands/hustle-api-create.md +22 -0
- package/commands/hustle-combine.md +81 -2
- package/commands/hustle-ui-create-page.md +84 -2
- package/commands/hustle-ui-create.md +82 -2
- package/hooks/auto-answer.py +228 -0
- package/hooks/check-update.py +132 -0
- package/hooks/ntfy-on-question.py +227 -0
- package/hooks/orchestrator-completion.py +313 -0
- package/hooks/orchestrator-handoff.py +189 -0
- package/hooks/orchestrator-session-startup.py +146 -0
- package/hooks/periodic-reground.py +230 -67
- package/hooks/update-api-showcase.py +13 -1
- package/hooks/update-ui-showcase.py +13 -1
- package/package.json +7 -3
- package/scripts/extract-schema-docs.cjs +322 -0
- package/templates/CLAUDE-SECTION.md +89 -64
- package/templates/api-showcase/_components/APIModal.tsx +100 -8
- package/templates/api-showcase/_components/APIShowcase.tsx +36 -4
- package/templates/api-showcase/_components/APITester.tsx +367 -58
- package/templates/docs/page.tsx +230 -0
- package/templates/hustle-build-defaults.json +84 -0
- package/templates/hustle-dev-dashboard/page.tsx +365 -0
- package/templates/playwright-report/page.tsx +258 -0
- package/templates/settings.json +88 -7
- package/templates/test-results/page.tsx +237 -0
- package/templates/typedoc.json +19 -0
- package/templates/ui-showcase/_components/UIShowcase.tsx +1 -1
- package/templates/ui-showcase/page.tsx +1 -1
- package/.claude/api-dev-state.json +0 -466
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# API Development Tools
|
|
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 |
|
|
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
|
-
|
|
218
|
-
|
|
219
|
-
|
|
|
220
|
-
|
|
|
221
|
-
| **[
|
|
222
|
-
| **[
|
|
223
|
-
| **[
|
|
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
|
|