Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3f3ccd4
feat(notion-api): add reusable modules for Notion operations
luandro Feb 6, 2026
3422333
test(notion-fetch): add module purity documentation test suite
luandro Feb 6, 2026
0762519
feat(api-server): add Bun API server for Notion job management
luandro Feb 6, 2026
522ff3c
test(api-server): add API routes validation test suite
luandro Feb 6, 2026
cd3d7a8
feat(api-server): add job queue with concurrency limits and cancellation
luandro Feb 6, 2026
57be6a9
test(api-server): add concurrent request behavior tests for job queue
luandro Feb 6, 2026
ad72eb8
feat(api-server): add job status persistence and log capture for obse…
luandro Feb 6, 2026
6ec1f7b
feat(api-server): add job filtering and cancellation endpoints
luandro Feb 6, 2026
c775631
test(api-server): add endpoint minimality and sufficiency validation
luandro Feb 6, 2026
a31aecb
docs(prd): add api-driven notion ops plan
luandro Feb 6, 2026
ae4a52d
feat(api-server): add input validation and error handling
luandro Feb 6, 2026
b1d18a2
feat(errors): add unified error handling with actionable messages
luandro Feb 6, 2026
18578d2
feat(api-server): add API key authentication and request auditing
luandro Feb 6, 2026
87333fd
feat(api-server): add GitHub status reporting callbacks for job compl…
luandro Feb 6, 2026
c3bf108
test(api-server): add GitHub status idempotency and integration tests
luandro Feb 6, 2026
770f3bb
docs(developer-tools): add API and CLI reference documentation
luandro Feb 6, 2026
c1560b6
feat(api-server): add /docs endpoint with OpenAPI specification
luandro Feb 6, 2026
c8f14ef
feat(api-server): add standardized response schemas for automation
luandro Feb 6, 2026
97e968b
refactor(api-server): remove unused response schema interfaces
luandro Feb 6, 2026
ed840ff
test(api-server): add unit tests for module extraction and core job l…
luandro Feb 6, 2026
4c1bb57
test(api-server): add integration tests for API endpoints and job queue
luandro Feb 7, 2026
3590a62
test(api-server): add comprehensive tests for auth middleware and aud…
luandro Feb 7, 2026
f77395c
test(api-server): add validation functions for auth failures and audi…
luandro Feb 7, 2026
667cb2e
feat(api-server): add Docker deployment configuration
luandro Feb 7, 2026
b0e4b32
feat(docker): optimize container size and add configurability
luandro Feb 7, 2026
9c028be
feat(workflow): add GitHub Action to call API for Notion fetch operat…
luandro Feb 7, 2026
399d367
test(api-server): add VPS deployment documentation tests
luandro Feb 7, 2026
86c9bb9
docs(scripts): add comprehensive scripts inventory document
luandro Feb 7, 2026
3400f75
chore(api): add reviewer prd and deployment validation docs
luandro Feb 7, 2026
0f2010c
chore(api): move reviewer prd to branch path
luandro Feb 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .beads/CACHE.db
Binary file not shown.

Large diffs are not rendered by default.

142 changes: 142 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# ============================================
# .dockerignore for Comapeo Docs API Server
# Minimizes Docker context size by excluding unnecessary files
# ============================================

# Dependencies (installed in container via package.json)
node_modules
npm-debug.log*
yarn-error.log*
package-lock.json
yarn.lock
pnpm-lock.yaml

# Build outputs and caches
build/
dist/
.out/
.docusaurus/
.cache-loader/
*.tsbuildinfo

# ============================================
# Content Generation (not needed for API server)
# ============================================
# Generated content from Notion (synced from content branch)
docs/
i18n/
static/images/

# ============================================
# Development & Testing (not needed in production)
# ============================================
# Test files and coverage
coverage/
test-results*.json
test-results*.html
*.test.ts
*.test.tsx
*.spec.ts
vitest.config.ts
__tests__/

# Development configuration
.eslintrc*
.prettierrc*
.prettierignore
lefthook.yml

# CI/CD
.github/
.gitlab-ci.yml
.azure-pipelines.yml
.circleci/

# ============================================
# Documentation & Assets (not needed for API)
# ============================================
# Project documentation
README.md
CONTRIBUTING.md
CHANGELOG.md
LICENSE
context/
NOTION_FETCH_ARCHITECTURE.md

# Assets not needed for API server
assets/
favicon.*
robots.txt

# ============================================
# Development Directories (not needed in container)
# ============================================
# Git
.git/
.gitignore
.gitattributes
.gitattributes

# IDE
.vscode/
.idea/
*.swp
*.swo
*~
.marscode/
.eclipse/

# Worktrees and development directories
worktrees/
.dev-docs/

# ============================================
# Environment & Secrets (use env vars or mounted secrets)
# ============================================
.env
.env.*
!.env.example

# ============================================
# Temporary & Generated Files
# ============================================
# Temporary files
*.tmp
*.temp
*-preview-*.md
.cache/
screenshots/

# Notion exports and emoji files (not needed for API)
notion_*.json

# Runtime metrics and cache files
retry-metrics.json
image-cache.json
image-failures.json

# Job persistence data (mounted as volume)
.jobs-data/

# Audit data (development only)
.audit-data/

# Development planning
TASK.md
NEXT_STEPS.md
PRD.md
TODO.md

# ============================================
# Docker Files (don't include Docker files in image)
# ============================================
Dockerfile*
docker-compose*
.dockerignore

# ============================================
# Misc (OS files, logs)
# ============================================
.DS_Store
Thumbs.db
*.log
13 changes: 13 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@ ENABLE_RETRY_IMAGE_PROCESSING=true
# Default: "3"
# Recommendation: 3 attempts is optimal balance between recovery and performance
MAX_IMAGE_RETRIES=3

# OpenAI Configuration (Required for translation jobs)
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-4o-mini

# API Server Configuration (for Docker deployment)
NODE_ENV=production
API_HOST=0.0.0.0
API_PORT=3001

# API Authentication (Optional - generate secure keys with: openssl rand -base64 32)
# API_KEY_DEPLOYMENT=your_secure_api_key_here
# API_KEY_GITHUB_ACTIONS=your_github_actions_key_here
Loading
Loading