Class: CanonicalModelResolver
Makaio Framework / services-core / CanonicalModelResolver
Class: CanonicalModelResolver
Section titled “Class: CanonicalModelResolver”Defined in: ../../../packages/services/core/src/canonical-model/resolver.ts:19
Resolves a framework-resolvable canonical model to a concrete adapter selection.
Uses the dependency interface for all lookups - bus wiring lives in the service, not here.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CanonicalModelResolver(
deps):CanonicalModelResolver
Defined in: ../../../packages/services/core/src/canonical-model/resolver.ts:24
Creates a new resolver with the given dependency implementations.
Parameters
Section titled “Parameters”Lookup functions wired to bus RPCs or test stubs
Returns
Section titled “Returns”CanonicalModelResolver
Methods
Section titled “Methods”resolve()
Section titled “resolve()”resolve(
parsed,_context?):Promise<{[key:string]:unknown;adapterId?:string;adapterName:string;allowedDirectories?:string[];allowedTools?:string[];cwd?:string;disallowedTools?:string[];kind:"adapter";model:string;providerConfigId:string;reasoningEffort?:"none"|"low"|"medium"|"high"|"extra-high";systemPrompt?:string| {content:string;mode:"append"; }; }>
Defined in: ../../../packages/services/core/src/canonical-model/resolver.ts:33
Resolve a parsed canonical model to a concrete adapter selection.
Parameters
Section titled “Parameters”parsed
Section titled “parsed”The parsed canonical model ref
_context?
Section titled “_context?”Optional resolution context reserved for future framework seams
projectId?
Section titled “projectId?”string = ...
Project scope for persona/profile/virtualModel entity resolution.
promptText?
Section titled “promptText?”string = ...
User prompt text for VirtualModel intent classification.
sessionContext?
Section titled “sessionContext?”unknown = ...
Session context with history, injected context, etc.
sessionId?
Section titled “sessionId?”string = ...
Session ID for correlation and VirtualModel resolution.
Returns
Section titled “Returns”Promise<{[key: string]: unknown; adapterId?: string; adapterName: string; allowedDirectories?: string[]; allowedTools?: string[]; cwd?: string; disallowedTools?: string[]; kind: "adapter"; model: string; providerConfigId: string; reasoningEffort?: "none" | "low" | "medium" | "high" | "extra-high"; systemPrompt?: string | { content: string; mode: "append"; }; }>
Resolved adapter selection
Throws
Section titled “Throws”CanonicalModelResolutionError when resolution fails