MCPcopy Create free account
hub / github.com/arctic-cli/interface / detectCopilotPlanType

Function detectCopilotPlanType

packages/arctic/src/provider/pricing.ts:415–421  ·  view source on GitHub ↗
(copilotPlan: string)

Source from the content-addressed store, hash-verified

413 export type CopilotPlanType = "free" | "paid"
414
415 export function detectCopilotPlanType(copilotPlan: string): CopilotPlanType {
416 const lower = copilotPlan.toLowerCase()
417 if (lower.includes("free") || lower === "copilot_for_free") {
418 return "free"
419 }
420 return "paid"
421 }
422
423 export function getCopilotMultiplier(modelId: string, plan: CopilotPlanType): number | null {
424 const candidates = copilotModelCandidates(modelId)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected