Feature request: HTTP API for checking and applying extension updates (all or one)
Use case
I use ShardBrowser Launcher 2.1.4 on Linux and want to check and install updates for store-linked extensions in the library over the supported HTTP API, either for the whole library or for one extension.
My current workaround is a local script that drives the launcher's accessibility controls: Extensions -> Check for updates -> Update / Update all. It uses the native updater, but depends on UI state. An ordinary "What's new" dialog can keep the script from reaching those controls. This is a limitation of my workaround, not a report of a launcher crash or a broken native updater.
I'd like to replace that UI-driving step with a supported HTTP interface, without downloading and replacing extension files myself.
Current API and existing backend
In v2.1.4, the extension routes are GET /extensions, POST /extensions (import), and DELETE /extensions/{id}. I couldn't find HTTP operations for checking or applying updates, or for reading update state:
The native update backend already exists. The UI invokes extension_updates, extension_updates_check, and extension_update through Tauri, and the backend has per-extension state and results:
I also checked main at e53324f8390a90f9d66ceef7cd3fd5e2b88f6472; the OpenAPI schema, HTTP router, and UI update calls are unchanged from v2.1.4. The gap is HTTP access to the existing updater, rather than a request for a second update implementation.
Requested behavior
- Check for updates for all store-linked library extensions, or just one extension addressed by its stable library ID from
GET /extensions. - Apply eligible updates for all of them, or apply an update for one library ID. Keep checking and applying as separate actions.
- Return structured per-extension state/results: current, update available, needs approval, waiting/in use, skipped, failed, and needs a newer engine. Include installed/latest versions, check time, progress where available, and actionable reasons such as permission changes, store flags, engine requirements, or an in-use wait.
- For a bulk operation, report each extension's outcome rather than only an aggregate success/failure. Identify unlinked or ineligible entries without treating them as store-linked updates.
- Make completion observable without inspecting launcher files or UI text. A simple operation/status model that I can poll would be enough; I don't have a preferred endpoint naming or job framework.
Safety and compatibility
Could this reuse the native updater and its existing checks under the launcher's normal HTTP authentication and space/permission rules?
In particular, the API should preserve CRX signature and extension-ID verification, permission-growth/identity approval, store-flag checks, engine compatibility, manually skipped versions, and staging/in-use handling. Bulk apply must not silently approve new permissions, override skips, or force-stop running profiles. If an update needs approval or must wait, report that state and leave the existing safeguards in control.
An update should keep the library ID and profile bindings intact, not work as delete-and-reimport.
Validation
I'd expect coverage for both single-extension and bulk calls, including no update available, a normal update, a skipped version, permission growth, a flagged or invalid package, an incompatible engine, an extension held by a running profile, and mixed success/failure in one batch. Repeating a completed request should not reinstall the same version or lose profile bindings.
in v2.1.6