red64-cli 0.1.0 → 0.2.0

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 (103) hide show
  1. package/dist/cli/parseArgs.d.ts.map +1 -1
  2. package/dist/cli/parseArgs.js +5 -0
  3. package/dist/cli/parseArgs.js.map +1 -1
  4. package/dist/components/init/CompleteStep.d.ts.map +1 -1
  5. package/dist/components/init/CompleteStep.js +2 -2
  6. package/dist/components/init/CompleteStep.js.map +1 -1
  7. package/dist/components/init/TestCheckStep.d.ts +16 -0
  8. package/dist/components/init/TestCheckStep.d.ts.map +1 -0
  9. package/dist/components/init/TestCheckStep.js +120 -0
  10. package/dist/components/init/TestCheckStep.js.map +1 -0
  11. package/dist/components/init/index.d.ts +1 -0
  12. package/dist/components/init/index.d.ts.map +1 -1
  13. package/dist/components/init/index.js +1 -0
  14. package/dist/components/init/index.js.map +1 -1
  15. package/dist/components/init/types.d.ts +9 -0
  16. package/dist/components/init/types.d.ts.map +1 -1
  17. package/dist/components/screens/InitScreen.d.ts.map +1 -1
  18. package/dist/components/screens/InitScreen.js +69 -6
  19. package/dist/components/screens/InitScreen.js.map +1 -1
  20. package/dist/components/screens/StartScreen.d.ts.map +1 -1
  21. package/dist/components/screens/StartScreen.js +89 -3
  22. package/dist/components/screens/StartScreen.js.map +1 -1
  23. package/dist/services/ConfigService.d.ts +1 -0
  24. package/dist/services/ConfigService.d.ts.map +1 -1
  25. package/dist/services/ConfigService.js.map +1 -1
  26. package/dist/services/ProjectDetector.d.ts +28 -0
  27. package/dist/services/ProjectDetector.d.ts.map +1 -0
  28. package/dist/services/ProjectDetector.js +236 -0
  29. package/dist/services/ProjectDetector.js.map +1 -0
  30. package/dist/services/TestRunner.d.ts +46 -0
  31. package/dist/services/TestRunner.d.ts.map +1 -0
  32. package/dist/services/TestRunner.js +85 -0
  33. package/dist/services/TestRunner.js.map +1 -0
  34. package/dist/services/index.d.ts +2 -0
  35. package/dist/services/index.d.ts.map +1 -1
  36. package/dist/services/index.js +2 -0
  37. package/dist/services/index.js.map +1 -1
  38. package/dist/types/index.d.ts +1 -0
  39. package/dist/types/index.d.ts.map +1 -1
  40. package/dist/types/index.js.map +1 -1
  41. package/framework/agents/claude/.claude/agents/red64/spec-impl.md +131 -2
  42. package/framework/agents/claude/.claude/commands/red64/spec-impl.md +24 -0
  43. package/framework/agents/codex/.codex/agents/red64/spec-impl.md +131 -2
  44. package/framework/agents/codex/.codex/commands/red64/spec-impl.md +24 -0
  45. package/framework/stacks/generic/feedback.md +80 -0
  46. package/framework/stacks/nextjs/accessibility.md +437 -0
  47. package/framework/stacks/nextjs/api.md +431 -0
  48. package/framework/stacks/nextjs/coding-style.md +282 -0
  49. package/framework/stacks/nextjs/commenting.md +226 -0
  50. package/framework/stacks/nextjs/components.md +411 -0
  51. package/framework/stacks/nextjs/conventions.md +333 -0
  52. package/framework/stacks/nextjs/css.md +310 -0
  53. package/framework/stacks/nextjs/error-handling.md +442 -0
  54. package/framework/stacks/nextjs/feedback.md +124 -0
  55. package/framework/stacks/nextjs/migrations.md +332 -0
  56. package/framework/stacks/nextjs/models.md +362 -0
  57. package/framework/stacks/nextjs/queries.md +410 -0
  58. package/framework/stacks/nextjs/responsive.md +338 -0
  59. package/framework/stacks/nextjs/tech-stack.md +177 -0
  60. package/framework/stacks/nextjs/test-writing.md +475 -0
  61. package/framework/stacks/nextjs/validation.md +467 -0
  62. package/framework/stacks/python/api.md +468 -0
  63. package/framework/stacks/python/authentication.md +342 -0
  64. package/framework/stacks/python/code-quality.md +283 -0
  65. package/framework/stacks/python/code-refactoring.md +315 -0
  66. package/framework/stacks/python/coding-style.md +462 -0
  67. package/framework/stacks/python/conventions.md +399 -0
  68. package/framework/stacks/python/error-handling.md +512 -0
  69. package/framework/stacks/python/feedback.md +92 -0
  70. package/framework/stacks/python/implement-ai-llm.md +468 -0
  71. package/framework/stacks/python/migrations.md +388 -0
  72. package/framework/stacks/python/models.md +399 -0
  73. package/framework/stacks/python/python.md +232 -0
  74. package/framework/stacks/python/queries.md +451 -0
  75. package/framework/stacks/python/structure.md +245 -58
  76. package/framework/stacks/python/tech.md +92 -35
  77. package/framework/stacks/python/testing.md +380 -0
  78. package/framework/stacks/python/validation.md +471 -0
  79. package/framework/stacks/rails/authentication.md +176 -0
  80. package/framework/stacks/rails/code-quality.md +287 -0
  81. package/framework/stacks/rails/code-refactoring.md +299 -0
  82. package/framework/stacks/rails/feedback.md +130 -0
  83. package/framework/stacks/rails/implement-ai-llm-with-rubyllm.md +342 -0
  84. package/framework/stacks/rails/rails.md +301 -0
  85. package/framework/stacks/rails/rails8-best-practices.md +498 -0
  86. package/framework/stacks/rails/rails8-css.md +573 -0
  87. package/framework/stacks/rails/structure.md +140 -0
  88. package/framework/stacks/rails/tech.md +108 -0
  89. package/framework/stacks/react/code-quality.md +521 -0
  90. package/framework/stacks/react/components.md +625 -0
  91. package/framework/stacks/react/data-fetching.md +586 -0
  92. package/framework/stacks/react/feedback.md +110 -0
  93. package/framework/stacks/react/forms.md +694 -0
  94. package/framework/stacks/react/performance.md +640 -0
  95. package/framework/stacks/react/product.md +22 -9
  96. package/framework/stacks/react/state-management.md +472 -0
  97. package/framework/stacks/react/structure.md +351 -44
  98. package/framework/stacks/react/tech.md +219 -30
  99. package/framework/stacks/react/testing.md +690 -0
  100. package/package.json +1 -1
  101. package/framework/stacks/node/product.md +0 -27
  102. package/framework/stacks/node/structure.md +0 -82
  103. package/framework/stacks/node/tech.md +0 -63
@@ -1,27 +0,0 @@
1
- # Product Overview
2
-
3
- ## Project: {{projectName}}
4
-
5
- {{description}}
6
-
7
- ## Core Capabilities
8
-
9
- [3-5 key capabilities of your Node.js application]
10
-
11
- - [API/Service capability]
12
- - [Data processing capability]
13
- - [Integration capability]
14
-
15
- ## Target Use Cases
16
-
17
- [Primary scenarios this Node.js application addresses]
18
-
19
- 1. [Backend service scenario]
20
- 2. [CLI tool scenario]
21
-
22
- ## Value Proposition
23
-
24
- [What makes this Node.js application unique or valuable]
25
-
26
- ---
27
- _Focus on patterns and purpose, not exhaustive feature lists_
@@ -1,82 +0,0 @@
1
- # Project Structure
2
-
3
- ## Project: {{projectName}}
4
-
5
- ## Organization Philosophy
6
-
7
- Layered architecture with clear separation of concerns. Routes handle HTTP, controllers orchestrate, services contain business logic, and repositories handle data access.
8
-
9
- ## Directory Patterns
10
-
11
- ### Routes
12
- **Location**: `/src/routes/`
13
- **Purpose**: HTTP route definitions and middleware
14
- **Example**: users.routes.ts, auth.routes.ts
15
-
16
- ### Controllers
17
- **Location**: `/src/controllers/`
18
- **Purpose**: Request handling and response formatting
19
- **Example**: users.controller.ts, auth.controller.ts
20
-
21
- ### Services
22
- **Location**: `/src/services/`
23
- **Purpose**: Business logic and domain operations
24
- **Example**: user.service.ts, email.service.ts
25
-
26
- ### Repositories
27
- **Location**: `/src/repositories/`
28
- **Purpose**: Data access and database queries
29
- **Example**: user.repository.ts
30
-
31
- ### Middleware
32
- **Location**: `/src/middleware/`
33
- **Purpose**: Express/Fastify middleware
34
- **Example**: auth.middleware.ts, validation.middleware.ts
35
-
36
- ### Types
37
- **Location**: `/src/types/`
38
- **Purpose**: TypeScript interfaces and types
39
- **Example**: User.ts, Request.ts
40
-
41
- ### Utils
42
- **Location**: `/src/utils/`
43
- **Purpose**: Pure utility functions
44
- **Example**: logger.ts, crypto.ts, validators.ts
45
-
46
- ## Naming Conventions
47
-
48
- - **Files**: kebab-case.ts (user-service.ts, auth-controller.ts)
49
- - **Classes**: PascalCase (UserService, AuthController)
50
- - **Functions**: camelCase (getUser, validateToken)
51
- - **Constants**: UPPER_SNAKE_CASE
52
-
53
- ## Import Organization
54
-
55
- ```typescript
56
- // 1. Node.js built-ins
57
- import { readFile } from 'node:fs/promises';
58
-
59
- // 2. External packages
60
- import express from 'express';
61
- import { z } from 'zod';
62
-
63
- // 3. Internal absolute imports
64
- import { UserService } from '@/services/user.service';
65
- import { logger } from '@/utils/logger';
66
-
67
- // 4. Relative imports
68
- import { validateUser } from './validators';
69
- ```
70
-
71
- **Path Aliases**:
72
- - `@/`: Maps to `src/`
73
-
74
- ## Code Organization Principles
75
-
76
- - **Dependency Injection**: Services receive dependencies as constructor parameters
77
- - **Single Responsibility**: Each file/class has one primary purpose
78
- - **Clean Architecture**: Dependencies point inward (routes → controllers → services → repositories)
79
- - **Error Boundaries**: Centralized error handling middleware
80
-
81
- ---
82
- _Document patterns, not file trees. New files following patterns shouldn't require updates_
@@ -1,63 +0,0 @@
1
- # Technology Stack
2
-
3
- ## Project: {{projectName}}
4
-
5
- ## Architecture
6
-
7
- Service-oriented architecture with clear separation between routes, controllers, services, and data access layers.
8
-
9
- ## Core Technologies
10
-
11
- - **Language**: TypeScript 5.x (strict mode)
12
- - **Runtime**: Node.js 20+
13
- - **Framework**: Express / Fastify / Hono / NestJS
14
-
15
- ## Key Libraries
16
-
17
- - **Validation**: Zod / Joi / class-validator
18
- - **Database**: Prisma / Drizzle / TypeORM / Mongoose
19
- - **Authentication**: Passport / JWT
20
- - **Testing**: Vitest / Jest
21
-
22
- ## Development Standards
23
-
24
- ### Type Safety
25
- - TypeScript strict mode enabled
26
- - No `any` types
27
- - Zod schemas for runtime validation
28
- - Explicit return types for all exports
29
-
30
- ### Code Quality
31
- - ESLint with Node.js rules
32
- - Prettier for formatting
33
- - Consistent error handling patterns
34
-
35
- ### Testing
36
- - Unit tests for services and utilities
37
- - Integration tests for API endpoints
38
- - Minimum 80% coverage for business logic
39
-
40
- ## Development Environment
41
-
42
- ### Required Tools
43
- - Node.js 20+
44
- - npm / yarn / pnpm
45
- - Docker (for databases)
46
-
47
- ### Common Commands
48
- ```bash
49
- # Dev: npm run dev
50
- # Build: npm run build
51
- # Test: npm test
52
- # Start: npm start
53
- ```
54
-
55
- ## Key Technical Decisions
56
-
57
- - **Async/Await**: Always use async/await over callbacks
58
- - **Error Handling**: Custom error classes with proper HTTP status codes
59
- - **Environment**: Use dotenv for configuration
60
- - **Logging**: Structured JSON logging (pino/winston)
61
-
62
- ---
63
- _Document standards and patterns, not every dependency_