From 47ee49128c1a2320b5c6ba3020cf893acbc76fff Mon Sep 17 00:00:00 2001 From: d fei Date: Sat, 29 Aug 2026 23:49:04 -0700 Subject: [PATCH] style: match the prettier version the lockfile pins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Format check failed twice, on different files each time, because three prettier versions were in play: package.json says ^3.4.0, package-lock pins 3.8.3 (CI runs npm ci, so that is the one CI uses), and the local node_modules had 3.9.6. Files formatted with 3.9.6 were then "fixed" with 3.4.2, pushing session-routes and system-routes onto a third style — every version change moved the failure to a different set of files. Line-break placement in `await import` and a union type only; no logic changes. --- src/web/routes/session-routes.ts | 15 ++++++--------- src/web/routes/system-routes.ts | 5 ++--- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/web/routes/session-routes.ts b/src/web/routes/session-routes.ts index c50ddcb3..3fc80c94 100644 --- a/src/web/routes/session-routes.ts +++ b/src/web/routes/session-routes.ts @@ -944,9 +944,8 @@ export function registerSessionRoutes( } } if (body.mode === 'antigravity') { - const { isAntigravityAvailable, getAntigravityNotFoundMessage } = await import( - '../../utils/antigravity-cli-resolver.js' - ); + const { isAntigravityAvailable, getAntigravityNotFoundMessage } = + await import('../../utils/antigravity-cli-resolver.js'); if (!isAntigravityAvailable()) { return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getAntigravityNotFoundMessage()); } @@ -3026,9 +3025,8 @@ export function registerSessionRoutes( // Check OpenCode availability if requested. Error text comes from the // resolver so it carries the resolution diagnostics; same for the modes below. if (mode === 'opencode') { - const { isOpenCodeAvailable, getOpenCodeNotFoundMessage } = await import( - '../../utils/opencode-cli-resolver.js' - ); + const { isOpenCodeAvailable, getOpenCodeNotFoundMessage } = + await import('../../utils/opencode-cli-resolver.js'); if (!isOpenCodeAvailable()) { return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getOpenCodeNotFoundMessage()); } @@ -3052,9 +3050,8 @@ export function registerSessionRoutes( // Check Antigravity availability if requested if (mode === 'antigravity') { - const { isAntigravityAvailable, getAntigravityNotFoundMessage } = await import( - '../../utils/antigravity-cli-resolver.js' - ); + const { isAntigravityAvailable, getAntigravityNotFoundMessage } = + await import('../../utils/antigravity-cli-resolver.js'); if (!isAntigravityAvailable()) { return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getAntigravityNotFoundMessage()); } diff --git a/src/web/routes/system-routes.ts b/src/web/routes/system-routes.ts index a23fb286..4929e977 100644 --- a/src/web/routes/system-routes.ts +++ b/src/web/routes/system-routes.ts @@ -683,9 +683,8 @@ export function registerSystemRoutes( `Installing ${pkg} into profile "${profile}" failed: ${detail}` ); } - const { listDeepSeekProfiles, resolveDefaultDeepSeekProfile, isDeepSeekRunnable } = await import( - '../../utils/deepseek-cli-resolver.js' - ); + const { listDeepSeekProfiles, resolveDefaultDeepSeekProfile, isDeepSeekRunnable } = + await import('../../utils/deepseek-cli-resolver.js'); return { profile, package: pkg,