mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
chore: bump version to 0.7.4
This commit is contained in:
1 parent
e6156f3c47
commit
af292758c3
11 files changed
+474
-72
No files matched your search
@@ -121,6 +121,29 @@ export const settingsApi = {
|
||||
return data
|
||||
},
|
||||
|
||||
getOpenCodeVersions: async (): Promise<{
|
||||
versions: Array<{
|
||||
version: string
|
||||
tag: string
|
||||
name: string
|
||||
publishedAt: string
|
||||
}>
|
||||
currentVersion: string | null
|
||||
}> => {
|
||||
const { data } = await axios.get(`${API_BASE_URL}/api/settings/opencode-versions`)
|
||||
return data
|
||||
},
|
||||
|
||||
installOpenCodeVersion: async (version: string): Promise<{
|
||||
success: boolean
|
||||
message: string
|
||||
oldVersion?: string
|
||||
newVersion?: string
|
||||
}> => {
|
||||
const { data } = await axios.post(`${API_BASE_URL}/api/settings/opencode-install-version`, { version })
|
||||
return data
|
||||
},
|
||||
|
||||
upgradeOpenCode: async (): Promise<{ success: boolean; message: string; oldVersion?: string; newVersion?: string; upgraded: boolean }> => {
|
||||
const { data } = await axios.post(`${API_BASE_URL}/api/settings/opencode-upgrade`)
|
||||
return data
|
||||
|
||||
Reference in new issue
Block a user