Showing the changes to apps/server/src/provider/opencodeRuntime.ts (1 of 71 files). Show all
Unified · Split
| @@ -1,4 +1,4 @@ | ||
| 1 | −import { pathToFileURL } from "node:url"; | |
| 1 | +import * as NodeURL from "node:url"; | |
| 2 | 2 | |
| 3 | 3 | import type { ChatAttachment, ProviderApprovalDecision, RuntimeMode } from "@t3tools/contracts"; |
| 4 | 4 | import { |
| @@ -206,7 +206,7 @@ export function toOpenCodeFileParts(input: { · 201 unmodified lines | ||
| 206 | 206 | type: "file", |
| 207 | 207 | mime: attachment.mimeType, |
| 208 | 208 | filename: attachment.name, |
| 209 | − url: pathToFileURL(attachmentPath).href, | |
| 209 | + url: NodeURL.pathToFileURL(attachmentPath).href, | |
| 210 | 210 | }); |
| 211 | 211 | } |
| 212 | 212 | |