feat(FN-2523): add safe restart restore lifecycle diagnostics
- Add ProjectEngine restore lifecycle core to perform safe restarts and surface detailed restore state transitions - Expose restore diagnostics through remote-access status types and settings/memory route context, including legacy API mapping updates - Add comprehensive regression coverage for restore lifecycle behavior in engine and dashboard headless remote-access tests - Document the restore lifecycle contract in architecture/settings docs and include a patch changeset for @runfusion/fusion
This commit is contained in:
@@ -425,9 +425,17 @@ export interface RemoteSettings {
|
||||
|
||||
export interface RemoteStatus {
|
||||
provider: "tailscale" | "cloudflare" | null;
|
||||
state: "stopped" | "starting" | "running" | "error";
|
||||
state: "stopped" | "starting" | "running" | "stopping" | "failed";
|
||||
url: string | null;
|
||||
lastError: string | null;
|
||||
lastErrorCode?: string | null;
|
||||
restore?: {
|
||||
outcome: "applied" | "skipped" | "failed";
|
||||
reason: string;
|
||||
at: string;
|
||||
provider: "tailscale" | "cloudflare" | null;
|
||||
message?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export function fetchRemoteSettings(projectId?: string): Promise<{ settings: RemoteSettings }> {
|
||||
|
||||
Reference in New Issue
Block a user