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 @@
1import { pathToFileURL } from "node:url";1import * as NodeURL from "node:url";
2 2
3import type { ChatAttachment, ProviderApprovalDecision, RuntimeMode } from "@t3tools/contracts";3import type { ChatAttachment, ProviderApprovalDecision, RuntimeMode } from "@t3tools/contracts";
4import {4import {
@@ -206,7 +206,7 @@ export function toOpenCodeFileParts(input: { · 201 unmodified lines
206 type: "file",206 type: "file",
207 mime: attachment.mimeType,207 mime: attachment.mimeType,
208 filename: attachment.name,208 filename: attachment.name,
209 url: pathToFileURL(attachmentPath).href,209 url: NodeURL.pathToFileURL(attachmentPath).href,
210 });210 });
211 }211 }
212 212