Add new 'model-resolution' check to diagnose model fallback chain health. Validates that configured agents and categories can resolve to available models, surfacing misconfiguration early. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import type { CheckDefinition } from "../types"
|
|
import { getOpenCodeCheckDefinition } from "./opencode"
|
|
import { getPluginCheckDefinition } from "./plugin"
|
|
import { getConfigCheckDefinition } from "./config"
|
|
import { getModelResolutionCheckDefinition } from "./model-resolution"
|
|
import { getAuthCheckDefinitions } from "./auth"
|
|
import { getDependencyCheckDefinitions } from "./dependencies"
|
|
import { getGhCliCheckDefinition } from "./gh"
|
|
import { getLspCheckDefinition } from "./lsp"
|
|
import { getMcpCheckDefinitions } from "./mcp"
|
|
import { getVersionCheckDefinition } from "./version"
|
|
|
|
export * from "./opencode"
|
|
export * from "./plugin"
|
|
export * from "./config"
|
|
export * from "./model-resolution"
|
|
export * from "./auth"
|
|
export * from "./dependencies"
|
|
export * from "./gh"
|
|
export * from "./lsp"
|
|
export * from "./mcp"
|
|
export * from "./version"
|
|
|
|
export function getAllCheckDefinitions(): CheckDefinition[] {
|
|
return [
|
|
getOpenCodeCheckDefinition(),
|
|
getPluginCheckDefinition(),
|
|
getConfigCheckDefinition(),
|
|
getModelResolutionCheckDefinition(),
|
|
...getAuthCheckDefinitions(),
|
|
...getDependencyCheckDefinitions(),
|
|
getGhCliCheckDefinition(),
|
|
getLspCheckDefinition(),
|
|
...getMcpCheckDefinitions(),
|
|
getVersionCheckDefinition(),
|
|
]
|
|
}
|