Add local repository support and permission request handling

This commit is contained in:
Chris Scott committed 2025-11-28 10:26:03 -05:00
1 parent 9a2ebc9652
commit 83834e7ed7
22 files changed
+685 -120

No files matched your search

+3 -2
View File
@@ -2,7 +2,8 @@ import type { Repo } from './types'
import { API_BASE_URL } from '@/config'
export async function createRepo(
repoUrl: string,
repoUrl?: string,
localPath?: string,
branch?: string,
openCodeConfigName?: string,
useWorktree?: boolean
@@ -10,7 +11,7 @@ export async function createRepo(
const response = await fetch(`${API_BASE_URL}/api/repos`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ repoUrl, branch, openCodeConfigName, useWorktree }),
body: JSON.stringify({ repoUrl, localPath, branch, openCodeConfigName, useWorktree }),
})
if (!response.ok) {