/** * Behavioral profile resolution. * * @module behavioral-profile/resolve-behavioral-profile * @description Resolves a unified ResolvedBehavioralProfile for a session by * merging static config values, mode lookup, and runtime profile detection. * * Always reads fresh config from disk so language/governance changes * take effect immediately without a plugin restart. * * Merge strategy: config-first with runtime fallback (D-06). * SR-05: config-defined guardrail_level, delegation_mode, tool_access_pattern, * skill_filter override static BehavioralProfiles[mode] values when set. * * @see D-06, D-07, D-08 in CA-02-CONTEXT.md * @see SR-05 CONTEXT.md Decision 4 (snake_case config, camelCase interface) */ import type { UserExpertLevel } from "../../schema-kernel/hivemind-configs.schema.js"; import type { Expertise } from "../session-entry/profile-resolver.js"; import type { ResolvedBehavioralProfile } from "./types.js"; /** * Maps a UserExpertLevel config value to a profile Expertise level. * Returns undefined if no mapping exists (caller falls back to runtime). * * @param level - The user_expert_level from configs.json * @returns Mapped expertise level, or undefined for fallback */ export declare function mapLevelToExpertise(level: UserExpertLevel): Expertise | undefined; /** * Resolves the behavioral profile for a session. * * Always reads fresh config from disk so language/governance changes * take effect immediately without a plugin restart. * * SR-05: Config-defined behavioral overrides (guardrail_level, delegation_mode, * tool_access_pattern, skill_filter) take precedence over static profile values. * snake_case config fields map to camelCase interface fields at the merge point. * * @param sessionId - Unique session identifier * @param projectRoot - Absolute path to project root (for config read) * @param sessionContext - Optional session context for runtime profile detection * @returns The unified resolved behavioral profile with current config values */ export declare function resolveBehavioralProfile(_sessionId: string, projectRoot: string, sessionContext?: Record): ResolvedBehavioralProfile; //# sourceMappingURL=resolve-behavioral-profile.d.ts.map