Commit Graph

5 Commits

Author SHA1 Message Date
Vectry
734823d3f6 fix: compile database package to JS for worker Docker stage
Worker was crashing with MODULE_NOT_FOUND for @codeboard/database
because the package only had TypeScript source and no build step.
Added tsconfig.json, changed build script to compile TS, and updated
Dockerfile to copy compiled dist into worker stage.
2026-02-09 20:34:46 +00:00
Vectry
30bfd88075 feat: add PostgreSQL persistence for permanent shareable links
- Add PostgreSQL service to docker-compose with health checks
- Add migrate service that runs prisma migrate deploy on startup
- Integrate Prisma client in worker: checks for existing generations
  (same repo+commit) before regenerating, writes to Postgres on completion
- Update /api/docs/[id] with Redis → PostgreSQL fallback + cache repopulation
- Update Dockerfile: prisma generate in build, copy Prisma engine to worker/web
- Add @codeboard/database dependency to web and worker packages
- Add initial SQL migration for Generation and User tables
- Change removeOnComplete to { age: 3600 } for job retention
2026-02-09 20:23:41 +00:00
Vectry
cbe52f32b3 fix: doc rendering — markdown prose styling, code blocks with copy button, proper step parsing
- Add @tailwindcss/typography plugin for prose styling
- Create CodeBlock component with copy button and language labels
- Create Md wrapper component using ReactMarkdown with custom renderers
- Replace all plain text renders with Md for proper markdown formatting
- Fix parseSteps() in pipeline to group numbered steps with code blocks
- Add First Task subtitle explaining its purpose
- Add conditional file.purpose render in module key files
2026-02-09 18:18:24 +00:00
Vectry
d0c4b1ae28 test: add integration tests for clone/parse/pipeline, fix chunker edge case
- tests/integration-test.ts: clones p-limit repo, parses, generates diagrams (11/11 pass)
- tests/pipeline-test.ts: mock LLM provider pipeline test (29/29 pass)
- Fix chunkCode to handle single lines exceeding maxChars limit
- Add tsx devDependency for test execution
2026-02-09 16:21:21 +00:00
Vectry
79dad6124f feat: initial CodeBoard monorepo scaffold
Turborepo monorepo with npm workspaces:
- apps/web: Next.js 14 frontend with Tailwind v4, SSE progress, doc viewer
- apps/worker: BullMQ job processor (clone → parse → LLM generate)
- packages/shared: TypeScript types
- packages/parser: Babel-based AST parser (JS/TS) + regex (Python)
- packages/llm: OpenAI/Anthropic provider abstraction + prompt pipeline
- packages/diagrams: Mermaid architecture & dependency graph generators
- packages/database: Prisma schema (PostgreSQL)
- Docker multi-stage build (web + worker targets)

All packages compile successfully with tsc and next build.
2026-02-09 15:22:50 +00:00