History

[codex] Enforce canonical Node namespace imports (#3238)

Julius Marminge committed 4 months ago

Commit 2fa37ec1 parent db2750271 files · +1205 −952Browse files

Showing the changes to apps/server/src/provider/opencodeRuntime.ts (1 of 71 files). Show all

Unified · Split

apps/server/src/provider/opencodeRuntime.ts+2−2
@@ -1,4 +1,4 @@
1−import { pathToFileURL } from "node:url";
1+import * as NodeURL from "node:url";
22
33 import type { ChatAttachment, ProviderApprovalDecision, RuntimeMode } from "@t3tools/contracts";
44 import {
@@ -206,7 +206,7 @@ export function toOpenCodeFileParts(input: { · 201 unmodified lines
206206 type: "file",
207207 mime: attachment.mimeType,
208208 filename: attachment.name,
209− url: pathToFileURL(attachmentPath).href,
209+ url: NodeURL.pathToFileURL(attachmentPath).href,
210210 });
211211 }
212212