Hub stage 2: install, update and uninstall apps on several servers

Writes use only <ID>_ADMIN_TOKEN and need the apps.write capability.
Store URLs are resolved from each server's own listing. The config is saved
to history before an uninstall. Zip uploads are fanned out to the servers.
Every target's result is audited. The console gets a row menu on the
matrix, a target picker, a results dialog with Retry failed, the store and
install from file in All servers mode, and single-server actions for writers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DenozordecandClaude Opus 5.5 committed 2026-10-31 16:11:40 +07:00
1 parent 3d8df08fa0
commit 6acd2d656d
27 files changed
+1991 -71

No files matched your search

+4 -2
View File
@@ -29,7 +29,7 @@ export interface MatrixApp {
}
export interface Matrix {
servers: { id: string; ok: boolean; error?: string }[]
servers: { id: string; ok: boolean; writable: boolean; error?: string }[]
apps: MatrixApp[]
}
@@ -128,7 +128,9 @@ export async function buildMatrix(config: HubConfig, upstream: Upstream): Promis
}),
)
const servers = perServer.map((p) => (p.error === undefined ? { id: p.server.id, ok: true } : { id: p.server.id, ok: false, error: p.error }))
const servers = perServer.map((p) => (p.error === undefined
? { id: p.server.id, ok: true, writable: p.server.adminToken !== undefined }
: { id: p.server.id, ok: false, writable: p.server.adminToken !== undefined, error: p.error }))
const warnings = perServer.filter((p) => p.error !== undefined).map((p) => `${p.server.id}: ${p.error}`)
if (warnings.length === perServer.length) throw new Error(`No server answered. ${warnings.join('; ')}`.trim())