red64-cli 0.1.0 → 0.3.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.
- package/README.md +1 -2
- package/dist/cli/parseArgs.d.ts.map +1 -1
- package/dist/cli/parseArgs.js +5 -0
- package/dist/cli/parseArgs.js.map +1 -1
- package/dist/components/init/CompleteStep.d.ts.map +1 -1
- package/dist/components/init/CompleteStep.js +2 -2
- package/dist/components/init/CompleteStep.js.map +1 -1
- package/dist/components/init/TestCheckStep.d.ts +16 -0
- package/dist/components/init/TestCheckStep.d.ts.map +1 -0
- package/dist/components/init/TestCheckStep.js +120 -0
- package/dist/components/init/TestCheckStep.js.map +1 -0
- package/dist/components/init/index.d.ts +1 -0
- package/dist/components/init/index.d.ts.map +1 -1
- package/dist/components/init/index.js +1 -0
- package/dist/components/init/index.js.map +1 -1
- package/dist/components/init/types.d.ts +9 -0
- package/dist/components/init/types.d.ts.map +1 -1
- package/dist/components/screens/InitScreen.d.ts.map +1 -1
- package/dist/components/screens/InitScreen.js +69 -6
- package/dist/components/screens/InitScreen.js.map +1 -1
- package/dist/components/screens/ListScreen.d.ts.map +1 -1
- package/dist/components/screens/ListScreen.js +28 -3
- package/dist/components/screens/ListScreen.js.map +1 -1
- package/dist/components/screens/StartScreen.d.ts.map +1 -1
- package/dist/components/screens/StartScreen.js +212 -13
- package/dist/components/screens/StartScreen.js.map +1 -1
- package/dist/components/ui/ArtifactsSidebar.d.ts +19 -0
- package/dist/components/ui/ArtifactsSidebar.d.ts.map +1 -0
- package/dist/components/ui/ArtifactsSidebar.js +51 -0
- package/dist/components/ui/ArtifactsSidebar.js.map +1 -0
- package/dist/components/ui/FeatureSidebar.d.ts.map +1 -1
- package/dist/components/ui/FeatureSidebar.js +1 -1
- package/dist/components/ui/FeatureSidebar.js.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/index.js.map +1 -1
- package/dist/services/ClaudeErrorDetector.js +3 -3
- package/dist/services/ClaudeErrorDetector.js.map +1 -1
- package/dist/services/ConfigService.d.ts +1 -0
- package/dist/services/ConfigService.d.ts.map +1 -1
- package/dist/services/ConfigService.js.map +1 -1
- package/dist/services/ProjectDetector.d.ts +28 -0
- package/dist/services/ProjectDetector.d.ts.map +1 -0
- package/dist/services/ProjectDetector.js +236 -0
- package/dist/services/ProjectDetector.js.map +1 -0
- package/dist/services/TestRunner.d.ts +46 -0
- package/dist/services/TestRunner.d.ts.map +1 -0
- package/dist/services/TestRunner.js +85 -0
- package/dist/services/TestRunner.js.map +1 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -1
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/framework/.red64/settings/templates/specs/gap-analysis.md +163 -0
- package/framework/agents/claude/.claude/agents/red64/spec-impl.md +131 -2
- package/framework/agents/claude/.claude/agents/red64/validate-gap.md +13 -7
- package/framework/agents/claude/.claude/commands/red64/spec-impl.md +24 -0
- package/framework/agents/claude/.claude/commands/red64/validate-gap.md +4 -0
- package/framework/agents/codex/.codex/agents/red64/spec-impl.md +131 -2
- package/framework/agents/codex/.codex/agents/red64/validate-gap.md +13 -7
- package/framework/agents/codex/.codex/commands/red64/spec-impl.md +24 -0
- package/framework/agents/codex/.codex/commands/red64/validate-gap.md +4 -0
- package/framework/stacks/generic/feedback.md +80 -0
- package/framework/stacks/nextjs/accessibility.md +437 -0
- package/framework/stacks/nextjs/api.md +431 -0
- package/framework/stacks/nextjs/coding-style.md +282 -0
- package/framework/stacks/nextjs/commenting.md +226 -0
- package/framework/stacks/nextjs/components.md +411 -0
- package/framework/stacks/nextjs/conventions.md +333 -0
- package/framework/stacks/nextjs/css.md +310 -0
- package/framework/stacks/nextjs/error-handling.md +442 -0
- package/framework/stacks/nextjs/feedback.md +124 -0
- package/framework/stacks/nextjs/migrations.md +332 -0
- package/framework/stacks/nextjs/models.md +362 -0
- package/framework/stacks/nextjs/queries.md +410 -0
- package/framework/stacks/nextjs/responsive.md +338 -0
- package/framework/stacks/nextjs/tech-stack.md +177 -0
- package/framework/stacks/nextjs/test-writing.md +475 -0
- package/framework/stacks/nextjs/validation.md +467 -0
- package/framework/stacks/python/api.md +468 -0
- package/framework/stacks/python/authentication.md +342 -0
- package/framework/stacks/python/code-quality.md +283 -0
- package/framework/stacks/python/code-refactoring.md +315 -0
- package/framework/stacks/python/coding-style.md +462 -0
- package/framework/stacks/python/conventions.md +399 -0
- package/framework/stacks/python/error-handling.md +512 -0
- package/framework/stacks/python/feedback.md +92 -0
- package/framework/stacks/python/implement-ai-llm.md +468 -0
- package/framework/stacks/python/migrations.md +388 -0
- package/framework/stacks/python/models.md +399 -0
- package/framework/stacks/python/python.md +232 -0
- package/framework/stacks/python/queries.md +451 -0
- package/framework/stacks/python/structure.md +245 -58
- package/framework/stacks/python/tech.md +92 -35
- package/framework/stacks/python/testing.md +380 -0
- package/framework/stacks/python/validation.md +471 -0
- package/framework/stacks/rails/authentication.md +176 -0
- package/framework/stacks/rails/code-quality.md +287 -0
- package/framework/stacks/rails/code-refactoring.md +299 -0
- package/framework/stacks/rails/feedback.md +130 -0
- package/framework/stacks/rails/implement-ai-llm-with-rubyllm.md +342 -0
- package/framework/stacks/rails/rails.md +301 -0
- package/framework/stacks/rails/rails8-best-practices.md +498 -0
- package/framework/stacks/rails/rails8-css.md +573 -0
- package/framework/stacks/rails/structure.md +140 -0
- package/framework/stacks/rails/tech.md +108 -0
- package/framework/stacks/react/code-quality.md +521 -0
- package/framework/stacks/react/components.md +625 -0
- package/framework/stacks/react/data-fetching.md +586 -0
- package/framework/stacks/react/feedback.md +110 -0
- package/framework/stacks/react/forms.md +694 -0
- package/framework/stacks/react/performance.md +640 -0
- package/framework/stacks/react/product.md +22 -9
- package/framework/stacks/react/state-management.md +472 -0
- package/framework/stacks/react/structure.md +351 -44
- package/framework/stacks/react/tech.md +219 -30
- package/framework/stacks/react/testing.md +690 -0
- package/package.json +1 -1
- package/framework/stacks/node/product.md +0 -27
- package/framework/stacks/node/structure.md +0 -82
- 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_
|