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
@@ -6,12 +6,13 @@ export async function createRepo(
|
||||
localPath?: string,
|
||||
branch?: string,
|
||||
openCodeConfigName?: string,
|
||||
useWorktree?: boolean
|
||||
useWorktree?: boolean,
|
||||
skipSSHVerification?: boolean
|
||||
): Promise<Repo> {
|
||||
const response = await fetch(`${API_BASE_URL}/api/repos`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ repoUrl, localPath, branch, openCodeConfigName, useWorktree }),
|
||||
body: JSON.stringify({ repoUrl, localPath, branch, openCodeConfigName, useWorktree, skipSSHVerification }),
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
|
||||
@@ -234,5 +234,3 @@ export interface SSHHostKeyRequest {
|
||||
timestamp: number
|
||||
action: 'verify'
|
||||
}
|
||||
|
||||
export type SSHHostKeyResponse = 'accept' | 'reject'
|
||||
Reference in new issue
Block a user