mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
* Add memory plugin with semantic search and session planning * Clarify Memory Plugin is optional in docs
16 lines
497 B
TypeScript
16 lines
497 B
TypeScript
import { fetchWrapper } from './fetchWrapper'
|
|
import { API_BASE_URL } from '@/config'
|
|
|
|
interface SSHHostKeyResponse {
|
|
success: boolean
|
|
error?: string
|
|
}
|
|
|
|
export async function respondSSHHostKey(requestId: string, approved: boolean): Promise<SSHHostKeyResponse> {
|
|
return fetchWrapper(`${API_BASE_URL}/api/ssh/host-key/respond`, {
|
|
method: 'POST',
|
|
headers: { 'Content-Type': 'application/json' },
|
|
body: JSON.stringify({ requestId, response: approved ? 'accept' : 'reject' }),
|
|
})
|
|
}
|