/** * Zod schema for the runtime.yaml provider configuration (issue #1136). * * Shapes are the literal ones from order.md:41-103 / 206-217 / 221-223. The schema is * intentionally strict: it rejects any indirection key (e.g. `runtime_file`) and any * `provider.targets` map other than the documented ones. Cross-reference checks * (extends chains, profile/pool references) are enforced later at compile time by * `validateRuntimeProviderSection`, not here. */ import { z } from 'zod'; /** A named provider/model/options definition. `extends` inherits from another profile. */ declare const ProfileSchema: z.ZodObject<{ provider: z.ZodOptional>; model: z.ZodOptional; options: z.ZodOptional>; capabilities: z.ZodOptional]>>; permission_mode: z.ZodOptional>; extends: z.ZodOptional; }, z.core.$strict>; /** * Target entries pick exactly one assignment form: a fixed `profile`, an auto-routing `pool`, * or (issue #1208) an ordered `ladder` of profiles. The ladder's first profile is the initial * assignment; a step `promotion` request advances to the next stage. */ declare const AssignmentSchema: z.ZodObject<{ profile: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>; declare const CompanionAssignmentSchema: z.ZodObject<{ profile: z.ZodString; }, z.core.$strict>; declare const AutoRoutingSchema: z.ZodObject<{ strategy: z.ZodOptional>; router_profile: z.ZodOptional; pools: z.ZodOptional>; }, z.core.$strict>>; fallback_profile: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>; declare const ProviderAssignmentSetSchema: z.ZodObject<{ defaults: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>; targets: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; tags: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; steps: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; internal_agents: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; companions: z.ZodOptional>>; }, z.core.$strict>>; }, z.core.$strict>; declare const ProviderSectionSchema: z.ZodObject<{ defaults: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>; profiles: z.ZodOptional>; model: z.ZodOptional; options: z.ZodOptional>; capabilities: z.ZodOptional]>>; permission_mode: z.ZodOptional>; extends: z.ZodOptional; }, z.core.$strict>>>; targets: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; tags: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; steps: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; internal_agents: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; companions: z.ZodOptional>>; }, z.core.$strict>>; assignments: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>; targets: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; tags: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; steps: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; internal_agents: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; companions: z.ZodOptional>>; }, z.core.$strict>>; }, z.core.$strict>>>; directories: z.ZodOptional>; auto_routing: z.ZodOptional>; router_profile: z.ZodOptional; pools: z.ZodOptional>; }, z.core.$strict>>; fallback_profile: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>>; }, z.core.$strict>; type RuntimeProviderSectionShape = z.infer; /** Determine whether a provider section has active runtime configuration. */ export declare function hasActiveProviderContent(section: RuntimeProviderSectionShape | undefined, companionEnabled?: boolean): boolean; export declare const RuntimeProviderFileSchema: z.ZodObject<{ version: z.ZodLiteral<1>; companion: z.ZodOptional; review_mode: z.ZodOptional>; fix_policy: z.ZodOptional>; }, z.core.$strict>>; loop_analysis: z.ZodOptional>; }, z.core.$strict>>; provider: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>; profiles: z.ZodOptional>; model: z.ZodOptional; options: z.ZodOptional>; capabilities: z.ZodOptional]>>; permission_mode: z.ZodOptional>; extends: z.ZodOptional; }, z.core.$strict>>>; targets: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; tags: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; steps: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; internal_agents: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; companions: z.ZodOptional>>; }, z.core.$strict>>; assignments: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>; targets: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; tags: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; steps: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; internal_agents: z.ZodOptional; pool: z.ZodOptional; ladder: z.ZodOptional>; }, z.core.$strict>>>; companions: z.ZodOptional>>; }, z.core.$strict>>; }, z.core.$strict>>>; directories: z.ZodOptional>; auto_routing: z.ZodOptional>; router_profile: z.ZodOptional; pools: z.ZodOptional>; }, z.core.$strict>>; fallback_profile: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>>; }, z.core.$strict>>; mcp: z.ZodOptional>; command: z.ZodString; args: z.ZodOptional>; env: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"sse">; url: z.ZodString; headers: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"http">; url: z.ZodString; headers: z.ZodOptional>; }, z.core.$strict>]>>>; defaults: z.ZodOptional; }, z.core.$strict>>; targets: z.ZodOptional>; exclude: z.ZodOptional>; }, z.core.$strict>>>; tags: z.ZodOptional>; exclude: z.ZodOptional>; }, z.core.$strict>>>; steps: z.ZodOptional>; exclude: z.ZodOptional>; }, z.core.$strict>>>; internal_agents: z.ZodOptional>; }, z.core.$strict>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; export type RuntimeProviderFile = z.infer; export type RuntimeProviderSection = z.infer; export type RuntimeProviderProfile = z.infer; export type RuntimeProviderAssignment = z.infer; export type RuntimeProviderAssignmentSet = z.infer; export type RuntimeCompanionProviderAssignment = z.infer; export type RuntimeProviderAutoRouting = z.infer; export type { McpSection } from './mcp-schema.js'; /** Remove disabled companion-only targets before mode detection and provider compilation. */ export declare function getEffectiveRuntimeProviderFile(file: RuntimeProviderFile | undefined): RuntimeProviderFile | undefined; //# sourceMappingURL=schema.d.ts.map