feat: add assistant mode, SSE streaming, and OpenCode server integration (#214)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-05-02 21:51:37 -04:00
1 parent 3cc24288a6
commit c3d6549f01
133 files changed
+7284 -6293

No files matched your search

+17 -4
View File
@@ -229,10 +229,6 @@ export const settingsApi = {
return fetchWrapper(`${API_BASE_URL}/api/health/version`)
},
getMemoryPluginStatus: async (): Promise<{ memoryPluginEnabled: boolean }> => {
return fetchWrapper(`${API_BASE_URL}/api/settings/memory-plugin-status`)
},
listManagedSkills: async (repoId?: number): Promise<SkillFileInfo[]> => {
const params = repoId ? `?repoId=${repoId}` : ''
return fetchWrapper(`${API_BASE_URL}/api/settings/skills${params}`)
@@ -278,3 +274,20 @@ export interface VersionInfo {
releaseUrl: string | null
releaseName: string | null
}
export interface OpenCodeServerAuthStatus {
isSet: boolean
source: 'db' | 'env' | 'none'
}
export async function getOpenCodeServerAuth(): Promise<OpenCodeServerAuthStatus> {
return fetchWrapper(`${API_BASE_URL}/api/settings/opencode-server-auth`)
}
export async function updateOpenCodeServerAuth(password: string | null): Promise<OpenCodeServerAuthStatus> {
return fetchWrapper(`${API_BASE_URL}/api/settings/opencode-server-auth`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ password }),
})
}