mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 08:03:14 +00:00
fix(skills): stub autoUpdateManaged in the web preload API
The web client has no local skill filesystem, so the background batch resolves to the same empty declined result the desktop returns when auto-update is unavailable.
This commit is contained in:
@@ -2608,6 +2608,10 @@ function createSkillsApi(): NonNullable<Partial<PreloadApi>['skills']> {
|
||||
replace: () => Promise.reject(new Error('Skill management is unavailable in the web client.')),
|
||||
updateManaged: () =>
|
||||
Promise.reject(new Error('Skill management is unavailable in the web client.')),
|
||||
// Why: auto-update is a silent background batch, so the web client
|
||||
// declines with the same empty result the desktop uses when unavailable.
|
||||
autoUpdateManaged: () =>
|
||||
Promise.resolve({ updatedSkillNames: [], failedSkillNames: [], inventory: null }),
|
||||
recordOrcaInstall: () =>
|
||||
Promise.reject(new Error('Skill management is unavailable in the web client.'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user