File size: 1,442 Bytes
4ee35df | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | import type { OutputMode } from '../types'
export interface RenderFailureEventRow {
id: string
created_at: string
job_id: string
attempt: number
output_mode: OutputMode
error_type: string
error_message: string
stderr_preview: string
stdout_preview?: string | null
code_snippet?: string | null
full_code?: string | null
peak_memory_mb?: number | null
exit_code?: number | null
recovered?: boolean | null
model?: string | null
prompt_version?: string | null
prompt_role?: string | null
client_id?: string | null
concept?: string | null
}
export interface CreateRenderFailureEventInput {
job_id: string
attempt: number
output_mode: OutputMode
error_type: string
error_message: string
stderr_preview: string
stdout_preview?: string | null
code_snippet?: string | null
full_code?: string | null
peak_memory_mb?: number | null
exit_code?: number | null
recovered?: boolean | null
model?: string | null
prompt_version?: string | null
prompt_role?: string | null
client_id?: string | null
concept?: string | null
}
export interface RenderFailureQuery {
from?: string
to?: string
errorType?: string
outputMode?: OutputMode
jobId?: string
recovered?: boolean
page?: number
pageSize?: number
limit?: number
}
export interface RenderFailureListResult {
records: RenderFailureEventRow[]
total: number
page: number
pageSize: number
hasMore: boolean
}
|