Commit Graph

763 Commits

Author SHA1 Message Date
Lukas May
2f3df1d529 feat(01-03): create process manager with spawn/stop
- ProcessManager class with execa for child process spawning
- spawn() starts detached background processes
- stop() graceful shutdown with SIGTERM then SIGKILL after 5s timeout
- stopAll() terminates all managed processes
- restart() stops and respawns with same config
- isRunning() probes actual process state
- Proper promise handling for killed processes
2026-01-30 13:15:31 +01:00
Lukas May
57a4d938fa docs(01-02): complete CLI entry point plan
Tasks completed: 2/2
- Create CLI with commander
- Enable global installation via npm link

SUMMARY: .planning/phases/01-core-infrastructure/01-02-SUMMARY.md
2026-01-30 13:14:28 +01:00
Lukas May
fc410e212a feat(01-04): create per-process log writer
- ProcessLogWriter class for stdout/stderr capture
- Timestamps each line with [YYYY-MM-DD HH:mm:ss.SSS] format
- Backpressure handling via drain events
- getStdoutStream/getStderrStream for direct piping
- Module index exports types, classes, and createLogger helper
- createLogger convenience function for default config
2026-01-30 13:13:37 +01:00
Lukas May
40a66175a2 feat(01-03): create process types and registry
- ProcessInfo interface for tracking process metadata
- SpawnOptions interface for spawn configuration
- ProcessRegistry class with Map-based storage
- CRUD operations: register, unregister, get, getAll, getByPid, clear
- Additional helpers: updateStatus, size getter
2026-01-30 13:13:06 +01:00
Lukas May
e64e243407 feat(01-04): create log directory management
- LogLevel, LogEntry, LogConfig types in types.ts
- LogManager class with directory management
- Cross-platform paths using node:os and node:path
- ensureLogDir/ensureProcessDir for directory creation
- getLogPath returns ~/.cw/logs/{processId}/{stream}.log
- cleanOldLogs removes directories older than N days
- listLogs enumerates all process log directories
2026-01-30 13:12:55 +01:00
Lukas May
bf7ba668b1 feat(01-02): create CLI with commander
- Add createCli() function with commander configuration
- Register placeholder commands: status, agent, task
- Add graceful error handling for uncaught exceptions
- Read version from package.json via index.ts export
2026-01-30 13:12:54 +01:00
Lukas May
5329349878 docs(01-01): complete project foundation plan
Tasks completed: 2/2
- Initialize Node.js project with TypeScript and ESM
- Create source structure and entry point

SUMMARY: .planning/phases/01-core-infrastructure/01-01-SUMMARY.md
2026-01-30 13:11:19 +01:00
Lukas May
d284603694 chore(01-01): initialize TypeScript project with ESM
- Configure package.json with type: module, ESM-compatible setup
- Add dependencies: commander, execa
- Add devDependencies: typescript, tsx, rimraf, @types/node
- Configure tsconfig.json for ES2022/NodeNext
- Add .gitignore with node_modules and dist
- Create src/index.ts and src/bin/cw.ts placeholders
2026-01-30 13:09:43 +01:00
Lukas May
074f79b855 docs(01): create phase 1 plan
Phase 01: Core Infrastructure
- 5 plans in 3 waves
- Wave 1: Project foundation (01-01)
- Wave 2: CLI, process mgmt, logging (01-02, 01-03, 01-04) [parallel]
- Wave 3: Server mode & shutdown (01-05)
- Ready for execution
2026-01-30 13:06:38 +01:00
Lukas May
a315b286fd docs: create roadmap (7 phases, 27 requirements)
Multi-agent workspace for orchestrating Claude Code agents.

Phases:
1. Core Infrastructure: INFRA-01 through INFRA-05
2. Data Layer: TASK-02, TASK-03
3. Git Integration: GIT-01 through GIT-04
4. Agent Lifecycle: AGENT-01 through AGENT-07 (except AGENT-06)
5. Task Dispatch: AGENT-06, TASK-01, TASK-04, TASK-05
6. Coordination: COORD-01, COORD-02
7. File System UI: FSUI-01 through FSUI-04

All v1 requirements mapped to phases.
2026-01-30 12:55:55 +01:00
Lukas May
5ff63c1991 docs: define v1 requirements
27 requirements across 6 categories.
8 requirements deferred to v2.

Core value: Coordinate multiple Claude Code agents without losing track or stepping on each other.
2026-01-30 12:52:06 +01:00
Lukas May
777d1c5043 docs: research multi-agent orchestration ecosystem
Researched stack, features, architecture, and pitfalls for Codewalk District.

Key findings:
- Stack: Commander.js + tRPC + Drizzle/better-sqlite3 + execa
- Architecture: Hexagonal monolith with SQLite task queue
- Critical pitfall: Process tree cleanup, SQLite WAL handling

Ready for roadmap creation.
2026-01-30 12:39:28 +01:00
Lukas May
e98e2a03f1 docs: initialize Codewalk District
Multi-agent workspace for orchestrating Claude Code agents with task breakdown, worktree management, and fsui.

Creates PROJECT.md with requirements and constraints.
2026-01-30 12:31:16 +01:00