From 10429028357d63639ec6a05b2faff8498a1fc287 Mon Sep 17 00:00:00 2001 From: Stan Date: Tue, 25 Aug 2026 16:55:55 +0500 Subject: [PATCH] fix: register aimlapi oauth flow as a bundle lazy-chunk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build-coding-agent-bundle.mjs enumerates every OAuth flow module by hand as a separate esbuild entry point (they're reached through variable-specifier imports the main bundle can't follow) — aimlapi.ts was missing from that list, so the bundled CLI failed at runtime with "Cannot find module .../chunks/aimlapi.js" on /login. --- scripts/build-coding-agent-bundle.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build-coding-agent-bundle.mjs b/scripts/build-coding-agent-bundle.mjs index 1b6d233eb81..65d8e756409 100644 --- a/scripts/build-coding-agent-bundle.mjs +++ b/scripts/build-coding-agent-bundle.mjs @@ -156,6 +156,7 @@ const lazyResult = await build({ ...commonBuildOptions(), entryNames: "[name]", entryPoints: { + aimlapi: join(aiDistDir, "auth", "oauth", "aimlapi.js"), anthropic: join(aiDistDir, "auth", "oauth", "anthropic.js"), "bedrock-converse-stream": join(aiDistDir, "api", "bedrock-converse-stream.js"), "github-copilot": join(aiDistDir, "auth", "oauth", "github-copilot.js"),