(error: Error | undefined)
| 129 | } |
| 130 | |
| 131 | export function codexProcessErrorCode(error: Error | undefined): string | null { |
| 132 | if (!error || !("code" in error)) return null; |
| 133 | const code = (error as NodeJS.ErrnoException).code; |
| 134 | return typeof code === "string" ? code : null; |
| 135 | } |
| 136 | |
| 137 | function normalizedTailBytes(value: number | undefined): number { |
| 138 | if (value === undefined) return DEFAULT_CODEX_OUTPUT_TAIL_BYTES; |
no outgoing calls
no test coverage detected