fix(team): narrow opencode readiness models
This commit is contained in:
parent
0bde66b032
commit
9d3e7ef99b
1 changed files with 5 additions and 4 deletions
|
|
@ -7733,13 +7733,14 @@ export class TeamProvisioningService {
|
||||||
typeof adapter.getLastOpenCodeTeamLaunchReadiness === 'function'
|
typeof adapter.getLastOpenCodeTeamLaunchReadiness === 'function'
|
||||||
? adapter.getLastOpenCodeTeamLaunchReadiness(cwd)
|
? adapter.getLastOpenCodeTeamLaunchReadiness(cwd)
|
||||||
: null;
|
: null;
|
||||||
const availableModels = Array.from(
|
const availableModels: string[] = Array.from(
|
||||||
new Set(
|
new Set(
|
||||||
(latestReadiness?.availableModels ?? [])
|
(Array.isArray(latestReadiness?.availableModels) ? latestReadiness.availableModels : [])
|
||||||
|
.filter((modelId: unknown): modelId is string => typeof modelId === 'string')
|
||||||
.map((modelId: string) => modelId.trim())
|
.map((modelId: string) => modelId.trim())
|
||||||
.filter(Boolean)
|
.filter((modelId: string) => modelId.length > 0)
|
||||||
)
|
)
|
||||||
) as string[];
|
);
|
||||||
appendPreflightDebugLog('opencode_compatibility_batch_catalog', {
|
appendPreflightDebugLog('opencode_compatibility_batch_catalog', {
|
||||||
cwd,
|
cwd,
|
||||||
modelIds,
|
modelIds,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue