(value: unknown)
| 228 | } |
| 229 | |
| 230 | function textFromUnknown(value: unknown): string { |
| 231 | if (value === undefined || value === null) return ""; |
| 232 | if (typeof value === "string") return value; |
| 233 | return JSON.stringify(value, null, 2); |
| 234 | } |
| 235 | |
| 236 | function roleFromMessage(row: OpenCodeMessageRow): "user" | "assistant" | undefined { |
| 237 | const data = parseJsonObject<OpenCodeMessageData>(row.data); |
no outgoing calls
no test coverage detected