fix(cli): resolve duplicate validateConfiguredModel and missing getPiDefaultModelAndProvider import
Commit 110c01b8c added an inline `validateConfiguredModel` function in
`src/cli.ts` while leaving the prior import from
`./startup-model-validation.js` in place, producing TS2440 (import
declaration conflicts with local declaration). The same commit added a
call to `getPiDefaultModelAndProvider()` without importing it, producing
TS2304 (cannot find name). Both errors block `npm run build` and every
CI job on main.
Drop the stale import and add `getPiDefaultModelAndProvider` to the
existing `./pi-migration.js` import where the symbol is actually
exported. The local `validateConfiguredModel` function (lines 139-174)
becomes the sole definition in scope. `./startup-model-validation.js`
is still consumed by its dedicated test files so the module stays.
This commit is contained in:
parent
8dab974863
commit
a8123ab558
1 changed files with 1 additions and 2 deletions
|
|
@ -16,8 +16,7 @@ import { agentDir, sessionsDir, authFilePath } from './app-paths.js'
|
|||
import { initResources, buildResourceLoader, getNewerManagedResourceVersion } from './resource-loader.js'
|
||||
import { ensureManagedTools } from './tool-bootstrap.js'
|
||||
import { loadStoredEnvKeys } from './wizard.js'
|
||||
import { migratePiCredentials } from './pi-migration.js'
|
||||
import { validateConfiguredModel } from './startup-model-validation.js'
|
||||
import { migratePiCredentials, getPiDefaultModelAndProvider } from './pi-migration.js'
|
||||
import { shouldMigrateAnthropicToClaudeCode } from './provider-migrations.js'
|
||||
import { shouldRunOnboarding, runOnboarding } from './onboarding.js'
|
||||
import chalk from 'chalk'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue