MCPcopy Create free account
hub / github.com/cursor/plugins / defaultModelForType

Function defaultModelForType

orchestrate/skills/orchestrate/scripts/models.ts:167–172  ·  view source on GitHub ↗
(type: TaskType)

Source from the content-addressed store, hash-verified

165];
166
167export function defaultModelForType(type: TaskType): string {
168 const match = MODEL_CATALOG.find(m => m.defaultFor?.includes(type));
169 if (!match)
170 throw new Error(`MODEL_CATALOG missing default for TaskType "${type}"`);
171 return match.slug;
172}
173
174export function isKnownModel(slug: string): boolean {
175 return MODEL_CATALOG.some(m => m.slug === slug);

Callers 2

spawnTaskMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected