CH-J Toolsgestione server su SSH
Menu
Sorgente pubblicata

CH-J Tools

Sfoglia directory e file per una specifica release di applicazioni.

Scarica sorgente ZIP
CH-J / Server Manager 1704 file
0.1.2-beta Aggiunto: · Costruito:
updates.ts Aggiunto: Data non registrata 836 B · 13 righe
Codice Scarica file
1/** Core updates: signed release catalog (SHA-512 + OpenPGP), download and installer hand-off. */
2import { call, subscribe } from "../transport";
3import type { Payload } from "../types";
5export const updates = Object.freeze({
6 getState: () => call<Payload>("core_updates_get_state", "updates:getState"),
7 check: () => call<Payload>("core_updates_check", "updates:check"),
8 select: (id: string) => call<Payload>("core_updates_select", "updates:select", { id }),
9 download: () => call<Payload>("core_updates_download", "updates:download"),
10 install: () => call<{ ok: true; installed: boolean; restarting: boolean }>("core_updates_install", "updates:install"),
11 reveal: () => call<{ ok: true }>("core_updates_reveal", "updates:reveal"),
12 onState: (callback: (state: Payload) => void) => subscribe("core:updateState", callback)
13});
SHA-2567778a474dd4aba30f201c6b4dbc63a28f23e5622131c200f6bb6eed54ff4315f

CH-J Proprietary Software License 1.14 · La sorgente è fornita sotto CH-J Proprietary Software License 1.14. La sua disponibilità non modifica i termini di licenza o concede diritti aggiuntivi.

Archivio SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
File