feat(api): profil machine éditable, sonde, et réglages globaux apt-cacher-ng

- machines : updateMachine (PATCH /machines/:id) + POST /machines/:id/probe
  (sonde synchrone → faits + proposition de correction) ; MachineView expose
  machineKind/virtualization ; CreateMachineInput accepte aptProxyMode persistent
- app_settings (clé/valeur, migration 0006) + service appSettings :
  défaut apt-cacher-ng (mode + url) ; applyProxyToAllMachines
- routes /settings : GET, PUT /apt-proxy, POST /apt-proxy/apply-all

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-06 07:53:47 +02:00
parent 0ab6b1d392
commit 2b684da9cd
10 changed files with 2366 additions and 5 deletions
+3
View File
@@ -251,6 +251,9 @@ export interface MachineView {
aptProxyUrl: string | null;
status: MachineStatus;
lastCheckedAt: string | null;
// Ajouts SJ-7 (optionnels, rétro-compatibles) :
machineKind?: MachineKind;
virtualization?: string | null;
}
/** Client API local/Hermes — ne contient jamais le token brut. */