mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
feat(ocm): let the assistant clone repos through POST /repos
This commit is contained in:
1 parent
33be4afeb7
commit
c9be507f4e
16 files changed
+127
-20
No files matched your search
@@ -24,6 +24,12 @@ export const InternalRepoListResponseSchema = z.object({
|
||||
repos: z.array(RepoSchema),
|
||||
})
|
||||
|
||||
export const InternalCloneRepoRequestSchema = z.object({
|
||||
repoUrl: z.string().trim().min(1),
|
||||
branch: z.string().trim().min(1).optional(),
|
||||
directoryName: z.string().trim().min(1).optional(),
|
||||
}).strict()
|
||||
|
||||
export const CreateRepoRequestSchema = z.object({
|
||||
repoUrl: z.string().url().optional(),
|
||||
localPath: z.string().optional(),
|
||||
|
||||
Reference in new issue
Block a user