feat: discover codex app-server capabilities
This commit is contained in:
@@ -610,6 +610,7 @@ export interface DeviceCapabilityState {
|
||||
connected: boolean;
|
||||
lastSeenAt?: string;
|
||||
lastActiveProjectId?: string;
|
||||
metadata?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface DeviceCapabilities {
|
||||
@@ -2297,6 +2298,7 @@ function normalizeDeviceCapabilityState(
|
||||
connected: Boolean(raw?.connected),
|
||||
lastSeenAt: trimToDefined(raw?.lastSeenAt) ?? fallbackLastSeenAt,
|
||||
lastActiveProjectId: trimToDefined(raw?.lastActiveProjectId) ?? "",
|
||||
metadata: raw?.metadata && typeof raw.metadata === "object" ? JSON.parse(JSON.stringify(raw.metadata)) : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user