mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat: add assistant mode, SSE streaming, and OpenCode server integration (#214)
This commit is contained in:
1 parent
3cc24288a6
commit
c3d6549f01
133 files changed
+7284
-6293
No files matched your search
@@ -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 }),
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user