Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
3cc14fa
feat: initialize Pulumi infrastructure for Pathfinder app
claudfuen Jul 22, 2025
133e98c
refactor: update application configuration in index.ts
claudfuen Jul 22, 2025
ddffce3
chore: update dependencies and add new Pulumi infrastructure for ECS …
claudfuen Jul 22, 2025
f1b25a8
chore: add linting and type checking scripts to package.json for @com…
claudfuen Jul 22, 2025
b8939f9
chore: clean up documentation and remove deprecated files
claudfuen Jul 22, 2025
28d5cc3
chore: reorganize package.json structure for @comp/infra
claudfuen Jul 22, 2025
945ecec
refactor: simplify configuration and role naming in GitHub OIDC module
claudfuen Jul 22, 2025
9212589
feat: enhance GitHub OIDC module to support existing provider usage
claudfuen Jul 22, 2025
1722e2e
feat: add buildspec and deployment scripts for application
Marfuen Jul 22, 2025
3d847b5
chore: update yarn.lock to reflect package path changes
Marfuen Jul 22, 2025
b8f4fae
refactor: streamline Dockerfile generation in buildspec.yml
Marfuen Jul 22, 2025
a458015
fix: resolve YAML syntax error in buildspec.yml
Marfuen Jul 22, 2025
04b1555
fix: resolve CodeBuild database connectivity issues
Marfuen Jul 22, 2025
804bcb3
feat: add TCP connectivity debugging to buildspec
Marfuen Jul 22, 2025
50c9a7e
fix: add robust database connectivity rules for CodeBuild
Marfuen Jul 22, 2025
951f462
fix: prevent build failure when metadata service is inaccessible
Marfuen Jul 22, 2025
29fed1e
feat: use PULUMI_PROJECT_NAME as environment identifier
Marfuen Jul 22, 2025
3d10913
feat: add required Next.js environment variables with proper validation
Marfuen Jul 22, 2025
55aa5d6
fix: properly separate app env vars from infra env vars
Marfuen Jul 22, 2025
b49fb1c
feat: read app environment variables from apps/app/.env
Marfuen Jul 22, 2025
d9c64e5
refactor: remove unused uploadSchema from schema actions
Marfuen Jul 22, 2025
4e11649
fix: improve Docker entry point detection for Next.js standalone build
Marfuen Jul 22, 2025
bb3aecb
fix: correct Docker entry point for monorepo structure
Marfuen Jul 22, 2025
e2fcd7b
refactor: move to static Dockerfile from dynamic generation
Marfuen Jul 22, 2025
d44cfa3
feat: enhance Prisma client generation and application secrets manage…
claudfuen Jul 22, 2025
7276586
feat: optimize build process with parallel processing and enhanced ca…
claudfuen Jul 22, 2025
588af1f
chore: update yarn.lock for workspace dependency resolution
claudfuen Jul 22, 2025
72925e1
chore: update bun.lock and yarn.lock for dependency versioning
claudfuen Jul 22, 2025
c4019e1
chore: enhance buildspec.yml with improved logging and directory navi…
claudfuen Jul 22, 2025
2bcbacc
chore: enhance buildspec.yml with additional checks for Prisma client…
claudfuen Jul 22, 2025
7b7050c
chore: enhance buildspec.yml with additional build artifact checks
claudfuen Jul 22, 2025
c71e88a
chore: streamline buildspec.yml for improved clarity and efficiency
claudfuen Jul 22, 2025
02a64a9
chore: enhance buildspec.yml with additional debug logging and file v…
claudfuen Jul 22, 2025
4b5b184
chore: enhance buildspec.yml with improved debug logging and final ve…
claudfuen Jul 22, 2025
12adfa6
fix: correct static file paths for next.js standalone monorepo structure
claudfuen Jul 22, 2025
02b7df5
feat: add debug scripts for ECS and CodeBuild log retrieval
claudfuen Jul 22, 2025
55442ab
fix: correct static file paths for next.js standalone monorepo structure
claudfuen Jul 23, 2025
b8e2064
fix: add verification for public directory in buildspec.yml
claudfuen Jul 23, 2025
eee55f6
feat: add deployment verification script for ECS
claudfuen Jul 23, 2025
bafbb27
fix: add missing port number to database connection string
claudfuen Jul 23, 2025
f1f6030
fix: use dynamic port variable for database connection strings
claudfuen Jul 23, 2025
a34f367
refactor: clean up and standardize pulumi stack outputs
claudfuen Jul 23, 2025
d47e9b5
fix(deploy): ensure pulumi update completes before starting build
claudfuen Jul 23, 2025
093bcb3
fix(infra): correctly resolve database connection string for codebuild
claudfuen Jul 23, 2025
302c4e2
refactor(infra): unify database secret handling for codebuild and ecs
claudfuen Jul 23, 2025
7ada508
fix(infra): correct secrets manager syntax for codebuild and container
claudfuen Jul 23, 2025
2aebda3
refactor(infra): streamline build system and environment variable han…
claudfuen Jul 23, 2025
01c832d
refactor(infra): update CodeBuild project naming for clarity
claudfuen Jul 23, 2025
1a33522
refactor(infra): simplify database connection string format
claudfuen Jul 23, 2025
d455bb4
refactor(infra): revert CodeBuild project name to improve clarity
claudfuen Jul 23, 2025
24dd15b
refactor(infra): update secrets manager syntax for container environm…
claudfuen Jul 23, 2025
7c8b8ed
refactor(infra): correct secrets manager syntax for container environ…
claudfuen Jul 23, 2025
5f3f4a2
fix(infra): update health check endpoint in container configuration
claudfuen Jul 23, 2025
c9b41a6
fix(infra): update health check configuration in container module
claudfuen Jul 23, 2025
a0aea63
refactor(infra): enhance application secrets management and configura…
Marfuen Jul 23, 2025
67fc172
feat(infra): enhance build and deployment configurations for applicat…
claudfuen Jul 23, 2025
2ddfda6
refactor(infra): update deploy script and infrastructure modules for …
claudfuen Jul 23, 2025
424f6ad
feat(infra): add source version to build system configuration
claudfuen Jul 23, 2025
1140eba
fix(infra): correct echo command syntax in buildspec for database URL…
claudfuen Jul 23, 2025
bdd5f5f
feat(infra): add NEXT_PUBLIC_PORTAL_URL to applications configuration
claudfuen Jul 23, 2025
7de1d6c
feat(infra): enhance build system to include required secrets from AW…
claudfuen Jul 23, 2025
72b00d4
feat(infra): refactor application secrets management to support indiv…
claudfuen Jul 23, 2025
b5a7ee7
feat(infra): enhance application container to support dynamic secret …
claudfuen Jul 23, 2025
cc53704
feat(infra): refactor build system to improve environment variable ha…
claudfuen Jul 23, 2025
b5a70c4
feat(infra): add STS VPC endpoint for IAM role assumption
claudfuen Jul 23, 2025
eb0ec6b
refactor(env): update AWS environment variable names for consistency
claudfuen Jul 23, 2025
39f3710
fix(config): update Vercel environment check for standalone output
claudfuen Jul 23, 2025
82f6124
refactor(deploy): streamline deployment script and enhance error hand…
claudfuen Jul 23, 2025
f151692
fix(buildspec): enhance type checking step with optional script handling
claudfuen Jul 23, 2025
4294465
refactor(infra): implement individual load balancers for applications
claudfuen Jul 23, 2025
70c931a
refactor(infra): update target group naming for load balancer
claudfuen Jul 23, 2025
0774214
fix(buildspec): adjust working directory for dependency installation
claudfuen Jul 23, 2025
0127697
refactor(deploy): update deployment script to retrieve individual app…
claudfuen Jul 24, 2025
2d677d0
fix(buildspec, Dockerfile): update Node.js version and adjust Prisma …
claudfuen Jul 24, 2025
f59dae6
chore: update package configurations and enhance email utilities
Marfuen Jul 24, 2025
c8c4b99
Merge branch 'claudio/infra-code' of https://github.com/trycompai/com…
Marfuen Jul 24, 2025
5431202
chore: rename packages to reflect new organization name
Marfuen Jul 24, 2025
d6c9b21
chore: update .prettierignore to exclude additional build artifacts
Marfuen Jul 24, 2025
a7f6e5e
chore: update .prettierignore to include additional dist directories
Marfuen Jul 24, 2025
2e0686b
chore: update package.json files for db, email, kv, and ui packages
Marfuen Jul 24, 2025
9b38734
chore: update typecheck CI script and build commands for new package …
Marfuen Jul 24, 2025
8c4847b
chore: update package names and build commands for consistency
Marfuen Jul 24, 2025
089cf1a
chore: update package dependencies and paths for improved module reso…
Marfuen Jul 24, 2025
95bb6c9
fix(auth): rename email parameter for invite function to improve clarity
Marfuen Jul 24, 2025
da41e90
feat(infra): implement SSL certificate management and DNS validation
claudfuen Jul 24, 2025
9da460d
Merge branch 'claudio/infra-code' of https://github.com/trycompai/com…
claudfuen Jul 24, 2025
c69f7e5
chore(infra): remove obsolete infrastructure files and scripts
claudfuen Jul 24, 2025
6e0fd38
chore: build passing
Marfuen Jul 24, 2025
d418d5e
chore: deleted private packages
claudfuen Jul 24, 2025
3427c05
chore: cool
Marfuen Jul 24, 2025
a67373f
Merge branch 'claudio/infra-code' of https://github.com/trycompai/com…
Marfuen Jul 24, 2025
e9477ae
chore: remove .windsurfrules file
claudfuen Jul 24, 2025
beac7c6
Merge pull request #1130 from trycompai/claudio/cleanup-private-packages
claudfuen Jul 24, 2025
1f18e79
Merge branch 'main' of https://github.com/trycompai/comp into claudio…
Marfuen Jul 24, 2025
b5ab5ae
chore: fix locks
Marfuen Jul 24, 2025
cbc7749
chore: ad more ignores
Marfuen Jul 24, 2025
e2fbc0c
chore: update package dependencies and fix formatting issues
Marfuen Jul 24, 2025
dc8f93b
fix: update typecheck:ci filters to correct package names
Marfuen Jul 24, 2025
32d2bb7
chore: update tsconfig extends paths for multiple packages to use rel…
Marfuen Jul 24, 2025
9fc12b5
chore: update tsconfig paths for UI components to point to the correc…
Marfuen Jul 24, 2025
140d642
chore: correct tsconfig paths for UI components in app and portal to …
Marfuen Jul 24, 2025
8bb39ff
chore: update tailwind.config and tsconfig paths for app and portal t…
Marfuen Jul 24, 2025
b55ce96
chore: add integration paths to tsconfig for app and portal to suppor…
Marfuen Jul 24, 2025
a3908ca
refactor: update import paths for UI components to use relative refer…
Marfuen Jul 24, 2025
2affe54
Merge pull request #1127 from trycompai/claudio/infra-code
Marfuen Jul 24, 2025
82a6839
refactor: reorder and correct import statements in UI components for …
Marfuen Jul 24, 2025
ae9e544
Merge pull request #1132 from trycompai/claudio/infra-code
Marfuen Jul 24, 2025
c015920
chore: update dependencies and remove unused docker-compose file
claudfuen Jul 25, 2025
26ad1a7
Merge branch 'main' of https://github.com/trycompai/comp into claudio…
claudfuen Jul 25, 2025
0422cc8
chore: update Next.js and ESLint configuration to latest stable versions
claudfuen Jul 25, 2025
0efd38e
chore: downgrade Next.js and ESLint configuration to canary version 1…
claudfuen Jul 25, 2025
2fdd4c3
chore: update package dependencies in app and portal
claudfuen Jul 25, 2025
c377677
chore: update fsevents version and clean up Next.js configuration
claudfuen Jul 25, 2025
0b4053c
Merge pull request #1133 from trycompai/claudio/cleanup-private-packages
claudfuen Jul 25, 2025
a68feec
Merge branch 'release' of https://github.com/trycompai/comp into clau…
claudfuen Jul 25, 2025
3a9a51f
Merge pull request #1134 from trycompai/claudio/cleanup-private-packages
claudfuen Jul 25, 2025
457a4f1
refactor: update AWS environment variable naming conventions
claudfuen Jul 25, 2025
585473c
Merge pull request #1135 from trycompai/claudio/cleanup-private-packages
claudfuen Jul 25, 2025
e1f0f7b
feat: add E2E and unit testing workflows
claudfuen Jul 25, 2025
f2cf5fb
Merge pull request #1136 from trycompai/claudio/cleanup-private-packages
claudfuen Jul 25, 2025
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
177 changes: 177 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# Dependencies
node_modules
*/node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
bun.lockb*

# Testing
coverage
test-results
.nyc_output

# Next.js
.next/
*/.next/
out/
*/out/

# Nuxt.js
.nuxt
dist

# Gatsby files
.cache/
public

# Vue.js
dist/

# Storybook build outputs
.out
.storybook-out

# Temporary folders
tmp/
temp/

# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage/
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage
.grunt

# Bower dependency directory
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons
build/Release

# Dependency directories
jspm_packages/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables files
.env
.env.test
.env.local
.env.development.local
.env.test.local
.env.production.local

# Parcel-bundler cache
.cache
.parcel-cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
public

# Vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# VS Code
.vscode

# MacOS
.DS_Store

# Git
.git
.gitignore
README.md

# Docker
Dockerfile*
docker-compose*
.dockerignore

# IDE files
*.swp
*.swo
*~

# OS generated files
Thumbs.db
ehthumbs.db

# E2E test files
apps/app/e2e/
apps/app/test-results/
playwright-report/
test-results/

# Turbo
.turbo
*/.turbo

# Build artifacts and caches
*/dist/
**/dist/
**/build/
**/.cache/
**/coverage/
**/.nyc_output/

# Platform specific binaries
**/bin/
**/*.dylib*
**/*.node
**/*.pack
45 changes: 45 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Database Configuration
DATABASE_URL=postgres://postgres:postgres@db:5432/comp

# Authentication
AUTH_SECRET=your-secret-auth-key-here-min-32-chars
AUTH_GOOGLE_ID=your-google-oauth-client-id
AUTH_GOOGLE_SECRET=your-google-oauth-client-secret
AUTH_GITHUB_ID=your-github-oauth-app-id
AUTH_GITHUB_SECRET=your-github-oauth-app-secret

# Email Service
RESEND_API_KEY=re_your_resend_api_key_here

# Application URLs
NEXT_PUBLIC_PORTAL_URL=http://localhost:3001
NEXT_PUBLIC_VERCEL_URL=http://localhost:3000

# Security
REVALIDATION_SECRET=your-revalidation-secret-here

# Optional - Redis/Upstash (for caching)
UPSTASH_REDIS_REST_URL=your-upstash-redis-url
UPSTASH_REDIS_REST_TOKEN=your-upstash-redis-token

# Optional - AWS S3 (for file uploads)
APP_AWS_ACCESS_KEY_ID=your-aws-access-key
APP_AWS_SECRET_ACCESS_KEY=your-aws-secret-key
APP_AWS_REGION=us-east-1
APP_AWS_BUCKET_NAME=your-s3-bucket-name

# Optional - OpenAI
OPENAI_API_KEY=sk-your-openai-api-key

# Optional - Analytics
NEXT_PUBLIC_POSTHOG_KEY=your-posthog-key
NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com

# Optional - External Services
TRIGGER_SECRET_KEY=your-trigger-secret
TRIGGER_API_KEY=your-trigger-api-key
GROQ_API_KEY=your-groq-api-key
FIRECRAWL_API_KEY=your-firecrawl-key

# Environment
NODE_ENV=production
4 changes: 0 additions & 4 deletions .github/BRANCH_PROTECTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ Go to **Settings → Branches** in your GitHub repository and add a branch prote
### Must Pass Before Merging:

1. **Quick Checks** (Quick Tests)

- Fast smoke tests that run on every PR
- Includes type checking, linting, and critical middleware tests
- Should complete in < 5 minutes

2. **Unit Tests** (Unit Tests / app)

- Vitest unit tests for the main app
- Tests business logic, utilities, and components

Expand Down Expand Up @@ -103,9 +101,7 @@ Protect matching branches:
Status checks that are required:
- Quick Checks
- Unit Tests (app)
- Unit Tests (framework-editor)
- Unit Tests (portal)
- Unit Tests (trust)
- E2E Tests - chromium
- E2E Tests - firefox
- E2E Tests - webkit
Expand Down
1 change: 0 additions & 1 deletion .github/TESTS_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ See [BRANCH_PROTECTION.md](BRANCH_PROTECTION.md) for setup instructions.
## Workflow Files

- **Testing**

- `test-quick.yml` - Type checking, linting, smoke tests
- `unit-tests.yml` - Vitest tests for all apps
- `e2e-tests.yml` - Playwright tests (multi-browser)
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,19 @@ jobs:
- name: Install dependencies
run: bun install --frozen-lockfile # Use --frozen-lockfile in CI

- name: Build packages
run: |
echo "🔨 Building packages before release..."
bun run -F @trycompai/db build
bun run -F @trycompai/email build
bun run -F @trycompai/kv build
bun run -F @trycompai/ui build
bun run -F @trycompai/analytics build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Uncomment if publishing to npm
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Enable npm publishing
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
HUSKY: 0 # Skip husky hooks in CI
run: npx semantic-release
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
app: [app, framework-editor, portal, trust]
app: [app, portal]

steps:
- name: Checkout
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ playwright-report/
playwright/.cache/
debug-setup-page.png

.playground/
.playground/

packages/*/dist
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ coverage/
**/playwright-report/
**/test-results/
**/playwright/.cache/
**/.playwright/
**/.playwright/

# Dist
packages/*/dist
dist/*
Empty file removed .windsurfrules
Empty file.
Loading
Loading