mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 08:29:42 +02:00
docs: add Type Definitions section to CLAUDE.md
Document the centralized TypeScript interfaces in src/types.ts including core state types, configuration types, and API error handling. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -62,6 +62,14 @@ src/
|
|||||||
|
|
||||||
- **WebServer** (`src/web/server.ts`): Fastify server with REST API + SSE. Manages sessions, scheduled runs, respawn controllers, and case directories. Broadcasts all events to connected clients.
|
- **WebServer** (`src/web/server.ts`): Fastify server with REST API + SSE. Manages sessions, scheduled runs, respawn controllers, and case directories. Broadcasts all events to connected clients.
|
||||||
|
|
||||||
|
### Type Definitions
|
||||||
|
|
||||||
|
All TypeScript interfaces are centralized in `src/types.ts`:
|
||||||
|
- `SessionState`, `TaskState`, `RalphLoopState` - Core state types
|
||||||
|
- `RespawnConfig`, `AppConfig` - Configuration types
|
||||||
|
- `ApiErrorCode`, `createErrorResponse()` - Consistent API error handling
|
||||||
|
- Request/Response types for API endpoints (`CreateSessionRequest`, `QuickStartResponse`, etc.)
|
||||||
|
|
||||||
### Session Modes
|
### Session Modes
|
||||||
|
|
||||||
**One-Shot Mode** (`runPrompt(prompt)`):
|
**One-Shot Mode** (`runPrompt(prompt)`):
|
||||||
|
|||||||
Reference in New Issue
Block a user