3.3 API Route Generator (api-routes.ts): - Two modes: 'direct' (Cosmos DB CRUD) and 'proxy' (backend fetch) - Generates route.ts + [id]/route.ts (Next.js App Router named exports) - Direct mode also generates lib/schemas/ + lib/repositories/ files - withErrorHandler HOF wrapper, Zod validation, auth check - Dry-run preview, configurable methods, skip existing files 3.4 AGENTS.md Auto-Generator (agents-md.ts): - Reads shared/product.json for identity, port, domain - Scans repo for backend modules, lib files, test counts - Generates full AGENTS.md with identity, layout, stack, conventions - --update preserves CUSTOM sections - Creates CLAUDE.md, .cursorrules, .windsurfrules symlinks
10 lines
262 B
TypeScript
10 lines
262 B
TypeScript
/**
|
|
* @bytelyst/create-app — CLI tools for scaffolding ByteLyst product repos.
|
|
*
|
|
* Generators:
|
|
* - api-routes.ts — Next.js App Router API route generator
|
|
* - agents-md.ts — AGENTS.md auto-generator from product.json + repo scan
|
|
*/
|
|
|
|
export {};
|