Files
opencode-manager/frontend/src/api/ssh.ts
T
Chris Scott 3461f86556 Add memory plugin with semantic search and session planning (#145)
* Add memory plugin with semantic search and session planning

* Clarify Memory Plugin is optional in docs
2026-02-23 15:08:56 -05:00

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' }),
})
}