Spaces:
Sleeping

E5K7 commited on
Commit
342230a
·
1 Parent(s): 661a588

feat: Next.js frontend with live IDE, URL routing, retry logic, and step tracker

Browse files

- Add Next.js frontend with 3-pane IDE layout (explorer, editor, discovery)
- Implement URL-based routing: /owner/repo auto-loads repository
- Add live file highlighting as agent analyzes codebase
- Add VS Code-style bottom terminal drawer with step progress tracker
- Stream fix code directly into editor during step 4 (fix generation)
- Show fixedFileView in editor after analysis completes
- Add Result Actions panel with PR button and refinement chat
- Add retry with exponential backoff for GLM 429 rate limit errors
- Add inter-step delays to prevent burst rate limiting
- Fix hydration mismatch from browser extensions (suppressHydrationWarning)
- Add /api/file_content endpoint for browsing repo source files
- Make layout fit 100vh with compact top bar

24 files changed +7813 -29
Files changed (24)
backend/agent.py+78-5
backend/api.pyAdded+275
backend/github_client.py+35
backend/llm_client.py+71-24
frontend/.gitignoreAdded+41
frontend/AGENTS.mdAdded+5
frontend/CLAUDE.mdAdded+1
frontend/README.mdAdded+36
frontend/eslint.config.mjsAdded+18
frontend/next.config.tsAdded+7
frontend/package-lock.jsonAdded
The diff for this file is too large to render. See raw diff
frontend/package.jsonAdded+24
frontend/public/file.svgAdded
frontend/public/globe.svgAdded
frontend/public/next.svgAdded
frontend/public/vercel.svgAdded
frontend/public/window.svgAdded
frontend/src/app/[owner]/[repo]/page.tsxAdded+421
frontend/src/app/favicon.icoAdded
frontend/src/app/globals.cssAdded+219
frontend/src/app/layout.tsxAdded+30
frontend/src/app/page.tsxAdded+576
frontend/tsconfig.jsonAdded+34
requirements.txt+3