mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Add skip SSH host key verification and fix self-hosted server support (#121)
* Add SSH host key verification with automatic trust and SCP-style URL support * Fix TypeScript errors for SSH host key schema and test mocks
This commit is contained in:
1 parent
677ce748cd
commit
7341dce1ef
25 files changed
+203
-123
No files matched your search
@@ -23,6 +23,7 @@ export const CreateRepoRequestSchema = z.object({
|
||||
branch: z.string().optional(),
|
||||
openCodeConfigName: z.string().optional(),
|
||||
useWorktree: z.boolean().optional(),
|
||||
skipSSHVerification: z.boolean().optional(),
|
||||
}).refine(
|
||||
(data) => data.repoUrl || data.localPath,
|
||||
{
|
||||
|
||||
@@ -10,7 +10,10 @@ export const SSHHostKeyRequestSchema = z.object({
|
||||
isKeyChanged: z.boolean()
|
||||
})
|
||||
|
||||
export const SSHHostKeyResponseSchema = z.enum(['accept', 'reject'])
|
||||
export const SSHHostKeyResponseSchema = z.object({
|
||||
requestId: z.string(),
|
||||
response: z.enum(['accept', 'reject'])
|
||||
})
|
||||
|
||||
export const TrustedSSHHostSchema = z.object({
|
||||
id: z.number(),
|
||||
|
||||
Reference in new issue
Block a user