mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
refactor: share machine runner schemas
This commit is contained in:
+2
-16
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user