mirror of
https://github.com/wu736139669/hapi.git
synced 2026-12-05 07:07:04 +00:00
feat(ios): machines panel and app icon badge
Settings gains a Machines screen: health, CLI version, capability and binary skew, rename, and the supervised runner restart the web banner exposes. Skew derivation lives in HapiProtocol so it is testable without a hub. The icon badge counts unread sessions on the active hub, with a notification-settings toggle that clears it immediately. The Japanese app-language option is dropped (no shipped catalog). via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
@@ -22,6 +22,13 @@ extension APIClient {
|
||||
)
|
||||
}
|
||||
|
||||
/// `POST /api/machines/:id/restart-runner` — supervised hosts only. The
|
||||
/// hub asks the running runner to stop; the supervisor brings it back
|
||||
/// with the newly installed CLI.
|
||||
public func restartMachineRunner(id: String) async throws -> MachineRestartResponse {
|
||||
try await request(.post, "/api/machines/\(encodePathComponent(id))/restart-runner")
|
||||
}
|
||||
|
||||
/// `POST /api/machines/:id/spawn`. The response is discriminated on
|
||||
/// `type`, not HTTP status — a failed spawn is still HTTP 200 with
|
||||
/// `.error`.
|
||||
|
||||
Reference in New Issue
Block a user