mirror of
https://github.com/stablyai/orca.git
synced 2026-11-02 01:57:57 +00:00
27 lines
937 B
TypeScript
27 lines
937 B
TypeScript
import type { WriteSettlement } from './pty-write-settlement'
|
|
|
|
export type RuntimeTerminalSend = {
|
|
handle: string
|
|
accepted: boolean
|
|
bytesWritten: number
|
|
refusedReason?: 'no-agent' | 'permission'
|
|
prompt?: RuntimeTerminalPromptDelivery
|
|
writeSettlement?: WriteSettlement
|
|
}
|
|
|
|
export type RuntimeTerminalPromptStage = 'input_accepted' | 'turn_started'
|
|
|
|
export type RuntimeTerminalPromptDelivery = {
|
|
requestId: string
|
|
stages: RuntimeTerminalPromptStage[]
|
|
provider: 'antigravity' | 'claude' | 'codex' | 'unsupported' | 'old-host'
|
|
observation: 'supported' | 'unsupported' | 'incarnation_replaced' | 'permission'
|
|
processIncarnation: string
|
|
generation: number
|
|
baselineWorkingSequence: number
|
|
/** Hook turn-start timestamp before this prompt was accepted. */
|
|
baselineExplicitWorkingStartedAt?: number | null
|
|
/** Permission observations seen before this prompt was accepted. */
|
|
baselinePermissionSequence?: number
|
|
}
|