* Make sandbox creation work without a repository
* Add createRepository function to GitHub client
* Add create-repo API endpoint with git operations
* Add Switch component from radix-ui
* Add CreateRepoDialog component
* Support sandboxes without repos and add create repo flow
* fix: security and validation improvements for create-repo flow
- Fix command injection vulnerability in git config commands by escaping shell args
- Add explicit validation for cloneUrl/owner/repoName after repo creation
- Improve error messages to inform users when repo was created but push failed
- Sanitize taskTitle input (limit length, strip special chars) for AI prompt
- Align UI validation text with server-side rules (include periods)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Update apps/web/app/api/github/create-repo/route.ts
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
* Initialize git repo in empty sandboxes for diff viewer compatibility
Empty sandboxes (no source repo) now get git init + an empty initial commit,
allowing git diff HEAD to work consistently. This fixes the diff viewer
failing with "not a git repository" for tasks created without a clone URL.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>