Sprint 001 전체 구현: Foundation: - package.json (pnpm + Node 22 + TypeScript strict) - tsconfig.json (strict + noUncheckedIndexedAccess) - .env.example (DATABASE_URL, DISCORD_TOKEN, etc.) - vitest.config.ts Core: - src/env.ts — Zod 환경변수 검증 - src/logger.ts — pino 구조화 로거 - src/orchestrator/events.ts — Zod discriminated union 이벤트 스키마 - src/orchestrator/context.ts — PipelineContext 타입 + 팩토리 - src/orchestrator/machine.ts — XState v5 결정론적 FSM States: idle → planning → implementing → reviewing → deploying → done + retrying (exponential backoff 준비) + escalated + aborted - src/orchestrator/persist.ts — Prisma 기반 상태 영속화 - prisma/schema.prisma — MariaDB 스키마 (pipelines, state_transitions, actor_spawns, contracts) CLI (citty): - rails start <project> — 파이프라인 생성 - rails status [id] — 상태 조회 + 타임라인 - rails serve — 오케스트레이터 서버 (Sprint 004 에서 완성) Tests (9/9 pass): - happy path (idle → done) - REQUEST_CHANGES 재작업 루프 + max review round escalation - retryable/non-retryable 에러 분기 - RESUME / ABORT - context 추적 검증: pnpm tsc --noEmit ✓ | pnpm vitest run 9/9 ✓ | pnpm build ✓ | rails --help ✓ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 lines
385 B
Plaintext
18 lines
385 B
Plaintext
# hanarang-rails environment variables
|
|
# Copy to .env and fill in values.
|
|
|
|
# ── Database (MariaDB / MySQL) ──
|
|
DATABASE_URL="mysql://rails:CHANGE_ME@localhost:3306/hanarang_rails"
|
|
|
|
# ── Discord ──
|
|
DISCORD_TOKEN=""
|
|
DISCORD_GUILD_ID=""
|
|
|
|
# ── Gitea Webhook ──
|
|
GITEA_WEBHOOK_SECRET=""
|
|
|
|
# ── Rails ──
|
|
RAILS_PORT=18800
|
|
RAILS_LOG_LEVEL=info
|
|
NODE_ENV=production
|