From 761abf57777fa655d78612ccf6e571d656201d04 Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Tue, 18 Aug 2026 16:19:04 -0400 Subject: [PATCH] style: biome safe-fixes for model-resolver import order and formatting organizeImports sorts the type GeneratedProvider specifier ahead of the named imports, and the formatter collapses the preferred-match arrow chain to one line. Both are biome safe fixes; no behavior change. Resolves the two biome errors that were leaving the 8833 branch's check gate red. --- packages/coding-agent/src/config/model-resolver.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/coding-agent/src/config/model-resolver.ts b/packages/coding-agent/src/config/model-resolver.ts index 103b12fdc..6963269d7 100644 --- a/packages/coding-agent/src/config/model-resolver.ts +++ b/packages/coding-agent/src/config/model-resolver.ts @@ -22,7 +22,7 @@ import { modelMatchesHost } from "@oh-my-pi/pi-catalog/hosts"; import { buildModelProviderPriorityRank } from "@oh-my-pi/pi-catalog/identity"; import { stripThinkingVariantToken } from "@oh-my-pi/pi-catalog/identity/family"; import { clampThinkingLevelForModel } from "@oh-my-pi/pi-catalog/model-thinking"; -import { getBundledModel, modelsAreEqual, type GeneratedProvider } from "@oh-my-pi/pi-catalog/models"; +import { type GeneratedProvider, getBundledModel, modelsAreEqual } from "@oh-my-pi/pi-catalog/models"; import { DEFAULT_MODEL_PER_PROVIDER } from "@oh-my-pi/pi-catalog/provider-models"; import { resolveBareVariantAlias, resolveVariantAlias } from "@oh-my-pi/pi-catalog/variant-collapse"; import { fuzzyMatch } from "@oh-my-pi/pi-tui"; @@ -1755,9 +1755,7 @@ function findExactCliModel( const lower = selector.toLowerCase(); const isFlatMatch = (model: Model) => model.id.toLowerCase() === lower || formatModelString(model).toLowerCase() === lower; - const preferred = availableModels.find( - m => isFlatMatch(m) && !isProviderLockedCrossMatch(selector, m), - ); + const preferred = availableModels.find(m => isFlatMatch(m) && !isProviderLockedCrossMatch(selector, m)); if (preferred) return preferred; // The unauthenticated catalog fallback is a weak match: a bare id like // `default` collides with the bundled `cursor/default` model, which must not