| 1 | import type { StreamAttemptAction } from "./types"; |
| 2 | |
| 3 | export interface WireStreamAttempt { |
| 4 | id: string; |
| 5 | action: StreamAttemptAction; |
| 6 | attempt?: number; |
| 7 | max?: number; |
| 8 | /** Fixed enum only: connection_reset | premature_eof | idle_timeout */ |
| 9 | reason?: string; |
| 10 | } |
| 11 | export interface WireCompaction { |
| 12 | trigger?: string; // "auto" | "manual" |
| 13 | messages?: number; // done: how many messages were folded into the summary |
| 14 | summary?: string; // done: the briefing (empty on an aborted pass) |
| 15 | archive?: string; // done: archive path, if any |
| 16 | } |
| 17 | export interface WireSessionOperation { |
| 18 | operationId: string; |
| 19 | kind: string; |
| 20 | activity: string; |
| 21 | status: string; |
| 22 | operationRevision?: number; |
| 23 | runtimeEpoch?: string; |
| 24 | errorCode?: string; |
| 25 | detail?: string; |
| 26 | applied?: boolean; |
| 27 | inputTokens?: number; |
| 28 | resultTokens?: number; |
| 29 | messages?: number; |
| 30 | summary?: string; |
| 31 | archive?: string; |
| 32 | } |
| 33 |