fix(FN-000): add qmd install button

This commit is contained in:
gsxdsm
2026-04-17 08:23:26 -07:00
parent 75dc5a8c77
commit 0f16bb78e9
8 changed files with 205 additions and 3 deletions

View File

@@ -406,6 +406,12 @@ export interface MemoryRetrievalTestResult {
results: MemorySearchResult[];
}
export interface QmdInstallResult {
success: boolean;
qmdAvailable: boolean;
qmdInstallCommand: string;
}
/**
* Fetch the current memory backend status and capabilities.
* Use this to determine which backend is active and what operations it supports.
@@ -414,6 +420,12 @@ export function fetchMemoryBackendStatus(projectId?: string): Promise<MemoryBack
return api<MemoryBackendStatus>(withProjectId("/memory/backend", projectId));
}
export function installQmd(projectId?: string): Promise<QmdInstallResult> {
return api<QmdInstallResult>(withProjectId("/memory/install-qmd", projectId), {
method: "POST",
});
}
export function testMemoryRetrieval(query: string, projectId?: string): Promise<MemoryRetrievalTestResult> {
return api<MemoryRetrievalTestResult>(withProjectId("/memory/test", projectId), {
method: "POST",