From f48620c2e1aaf68dd867dde4e231808adb881c25 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Nov 2025 03:13:47 +0000 Subject: [PATCH 1/2] Initial plan From a5aa605eb72570688edbf858abaa93c8850bd00e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Nov 2025 03:19:33 +0000 Subject: [PATCH 2/2] Fix unsafe globalThis.Deno access in parser.ts Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com> --- src/parser.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parser.ts b/src/parser.ts index 17f169e..467df5a 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -92,7 +92,8 @@ async function extractMachinesFromFile(filePath: string, _adapters: Adapters): P // Make it absolute if it's not already if (!importPath.startsWith('/')) { if (isDeno) { - importPath = `${(globalThis as any).Deno.cwd()}/${importPath}`; + // Safe to access Deno directly after checking isDeno + importPath = `${Deno.cwd()}/${importPath}`; } else { const process = await import("node:process"); importPath = `${process.cwd()}/${importPath}`;