fix(k1): stabilize repeated acquisition and live viewer recovery

This commit is contained in:
DCCONSTRUCTIONS
2026-07-29 01:55:12 +03:00
parent 37b8930527
commit 2a97cf28c0
28 changed files with 2776 additions and 286 deletions
+44
View File
@@ -58,6 +58,30 @@ export interface XgridsDeviceSession {
connectivity?: "unknown" | "offline" | "connecting" | "connected" | "degraded";
}
export interface XgridsConnectionVerification {
status?:
| "not-probed"
| "configured"
| "live-address-observed"
| "reachable"
| "recovered"
| "unreachable";
lease_state?: "disconnected" | "configured" | "reachable";
lease_generation?: number;
endpoint_validation?: string | null;
network_reachability?:
| "unknown"
| "not-probed"
| "reachable"
| "degraded"
| "unreachable";
address_changed?: boolean;
previous_address_present?: boolean;
write_performed?: boolean;
observed_at?: string | null;
reason_code?: string | null;
}
export interface XgridsCompatibilityState {
profile_id?: string | null;
decision?: "compatible" | "limited" | "unknown" | "incompatible";
@@ -167,6 +191,23 @@ export interface XgridsApplicationControlSession {
expected?: Record<string, unknown>;
observed?: Record<string, unknown>;
} | null;
status_reconciliation?: {
device_session_state?: string;
device_project_bound?: boolean;
system_error_code?: number | null;
decision?: "safe-explicit-prestart-retry";
automatic_retry?: false;
} | null;
network_change_admissible?: boolean;
network_change_reconciliation?: {
device_session_state?: "scan_stopping";
device_project_bound?: true;
system_error_code?: null;
stop_complete?: true;
standby_confirmed?: false;
decision?: "explicit-network-change-only-after-acknowledged-stop";
automatic_retry?: false;
} | null;
safe_to_retry?: boolean;
} | null;
dialogue?: Record<string, unknown> | null;
@@ -220,6 +261,8 @@ export interface XgridsOperation {
}
export interface XgridsK1Metrics {
pcl_frames?: number | null;
pose_frames?: number | null;
mqtt_to_decode_ms?: number | null;
decode_ms?: number | null;
publish_ms?: number | null;
@@ -308,6 +351,7 @@ export interface XgridsK1State {
application_control_session?: XgridsApplicationControlSession | null;
device_ref?: XgridsDeviceRef | null;
device_session?: XgridsDeviceSession | null;
connection_verification?: XgridsConnectionVerification | null;
acquisition?: XgridsAcquisition | null;
operations?: XgridsOperation[];
last_operation?: XgridsOperation | null;