[Feature] Phase 2: Expose File System Tree API for Web IDE #32
purvanshjoshi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[Feature] Phase 2: Expose File System Tree API for Web IDE
Objective
To support a rich, VSCode-like file explorer on the Next.js dashboard, the Python backend must securely expose the structure and contents of the cloned repository.
Requirements
GET /repo/{repo_name}/tree):backend/main.py./tmp/volume..git,node_modules,__pycache__, and other standard ignored directories to prevent massive payload sizes.GET /repo/{repo_name}/file):Acceptance Criteria
/treereturns a properly nested JSON directory tree./filereturns the correct raw text file, and properly errors out if the file is binary or outside the directory scope.All reactions