Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/reference/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/guides/orchestrate/jobs-steps/#jobs-overview & https://circleci.com/docs/reference/configuration-reference/#jobs
jobs:
say-hello:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/guides/execution-managed/executor-intro/ & https://circleci.com/docs/reference/configuration-reference/#executor-job
docker:
# Specify the version you desire here
# See: https://circleci.com/developer/images/image/cimg/base
- image: cimg/base:current

# Add steps to the job
# See: https://circleci.com/docs/guides/orchestrate/jobs-steps/#steps-overview & https://circleci.com/docs/reference/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
- run:
name: "Say hello"
command: "echo Hello, World!"

# Orchestrate jobs using workflows
# See: https://circleci.com/docs/guides/orchestrate/workflows/ & https://circleci.com/docs/reference/configuration-reference/#workflows
workflows:
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
jobs:
- say-hello
78 changes: 78 additions & 0 deletions .env.codegen
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Claude Code UI Environment Configuration for Codegen
# Optimized settings for Codegen integration

# =============================================================================
# SERVER CONFIGURATION
# =============================================================================

# Backend server port (Express API + WebSocket server)
# Using 3001 for API server (compatible with sandbox)
PORT=3001

# Frontend port (Vite dev server)
# Using 5173 for frontend (Vite default)
VITE_PORT=5173

# =============================================================================
# CODEGEN SPECIFIC CONFIGURATION
# =============================================================================

# Codegen API settings
CODEGEN_API_URL=https://api.codegen.com
CODEGEN_WS_URL=wss://ws.codegen.com

# Codegen CLI path (will be auto-detected if not specified)
CODEGEN_CLI_PATH=codegen

# Session management
CODEGEN_SESSION_TIMEOUT=3600000
CODEGEN_MAX_SESSIONS=10

# Performance optimization for sandbox environment
CODEGEN_MEMORY_LIMIT=512
CODEGEN_CPU_LIMIT=2

# =============================================================================
# SECURITY CONFIGURATION
# =============================================================================

# JWT settings for authentication
JWT_SECRET=your-jwt-secret-key-here
JWT_EXPIRES_IN=24h

# CORS settings
CORS_ORIGIN=http://localhost:5173,http://127.0.0.1:5173

# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================

# SQLite database path
DATABASE_PATH=./data/codegen.db

# Database connection pool settings
DB_MAX_CONNECTIONS=10
DB_IDLE_TIMEOUT=30000

# =============================================================================
# LOGGING AND MONITORING
# =============================================================================

# Log level (error, warn, info, debug)
LOG_LEVEL=info

# Enable performance monitoring
ENABLE_MONITORING=true

# =============================================================================
# DEVELOPMENT SETTINGS
# =============================================================================

# Enable hot reload for development
HOT_RELOAD=true

# Enable debug mode
DEBUG_MODE=false

# Enable verbose logging
VERBOSE_LOGGING=false
34 changes: 34 additions & 0 deletions .github/workflows/summary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Summarize new issues

on:
issues:
types: [opened]

jobs:
summary:
runs-on: ubuntu-latest
permissions:
issues: write
models: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run AI inference
id: inference
uses: actions/ai-inference@v1
with:
prompt: |
Summarize the following GitHub issue in one paragraph:
Title: ${{ github.event.issue.title }}
Body: ${{ github.event.issue.body }}

- name: Comment with AI summary
run: |
gh issue comment $ISSUE_NUMBER --body '${{ steps.inference.outputs.response }}'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
RESPONSE: ${{ steps.inference.outputs.response }}
Loading