Skip to content

Conversation

@vancelin
Copy link

No description provided.

  Add Python FastAPI bridge service to enable Claude Code CLI subscription
  mode as an alternative to API key authentication.

  ## New Features
  - Python FastAPI service (api/python/) bridging Next.js with Claude Code SDK
  - Startup scripts for Linux/macOS (.sh) and Windows (.bat)
  - Claude Code client library (lib/claude-code-client.ts)
  - Status API endpoint (app/api/claude-code/status/route.ts)
  - Streaming code generation with SSE support

  ## Documentation
  - Add comprehensive setup guide in README.md
  - Add Python API documentation (api/python/README.md)
  - Add CLAUDE.md with project guidelines for UI design workflow

  ## Configuration
  - Update .env.example with Claude Code CLI settings
  - Add .gitignore rules for temporary files (.claude/, .superdesign/, logs/, src/)
  - Update app.config.ts with CLI mode support

  ## Code Quality
  - All code and comments in English
  - Python code follows FastAPI best practices
  - Proper error handling and logging
  - TypeScript type definitions

  ## Testing
  - Add test_sdk.py for SDK validation
  - Manual testing verified for both API and CLI modes

  Files changed: 21 files
  Insertions: ~3,200 lines
  New files: 11
  Modified files: 10
  - Add retry mechanism with exponential backoff for Firecrawl API requests
  - Increase timeout from 30s to 60s to handle queue delays
  - Simplify API request to only essential formats (markdown, screenshot)
  - Add better error handling for SCRAPE_TIMEOUT errors
  - Clean src directory before code generation to ensure fresh starts
  - Update Claude Code adapter to use fresh sessions (continue_conversation=false)
  - Change all status messages from Chinese to English for consistency
  - Simplify CLAUDE.md to only include language preference instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant