mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
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
This commit is contained in:
1 parent
da283a82cf
commit
3461f86556
132 files changed
+11448
-2834
No files matched your search
@@ -1,14 +1,15 @@
|
||||
import { API_BASE_URL } from '@/config'
|
||||
import { fetchWrapper } from './fetchWrapper'
|
||||
import { API_BASE_URL } from '@/config'
|
||||
|
||||
export function respondSSHHostKey(requestId: string, approved: boolean): Promise<{ success: boolean; error?: string }> {
|
||||
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' }),
|
||||
})
|
||||
}
|
||||
|
||||
export function getSSHHostKeyStatus(): Promise<{ success: boolean; pendingCount?: number; error?: string }> {
|
||||
return fetchWrapper(`${API_BASE_URL}/api/ssh/host-key/status`)
|
||||
}
|
||||
Reference in new issue
Block a user