refactor: share machine runner schemas

This commit is contained in:
weishu
2026-05-21 14:29:42 +08:00
parent 7d5a5ee919
commit 9704227ce2
8 changed files with 48 additions and 126 deletions
+2 -16
View File
@@ -1,6 +1,7 @@
import type {
DecryptedMessage as ProtocolDecryptedMessage,
Machine,
RunnerState,
Session,
SessionSummary,
SyncEvent as ProtocolSyncEvent,
@@ -33,6 +34,7 @@ export type {
CodexCollaborationMode,
PermissionMode,
Machine,
RunnerState,
Session,
SessionPatch,
SessionSummary,
@@ -71,22 +73,6 @@ export type DecryptedMessage = ProtocolDecryptedMessage & {
invokedAt?: number | null
}
export type RunnerState = {
status?: string
pid?: number
httpPort?: number
startedAt?: number
shutdownRequestedAt?: number
shutdownSource?: string
lastSpawnError?: {
message: string
pid?: number
exitCode?: number | null
signal?: string | null
at: number
} | null
}
export type AuthResponse = {
token: string
user: {