/** * active-skill-resolver — utility for hook enforcers. * * Resolves the active peak skill name for the current session, so hook * enforcers (e.g. solo-code-ban) can decide whether to fire. * * Per `src/services/session/caller-id-types.ts`: the active-skill file is * at `.peaks/_runtime//active-skill-.json`. * * Resolution order (graceful degradation — never throws): * 1. PEAKS_ACTIVE_SKILL env var (explicit override, used by tests) * 2. .peaks/_runtime//active-skill-.json for each caller * bound to the current peak session * 3. null (caller did not set a skill; enforcers can decide to skip) */ export interface ActiveSkillResolution { readonly skill: string | null; readonly callerId: string | null; readonly sessionId: string | null; readonly source: 'env' | 'file' | 'none'; } /** * Resolve the active peak skill for the current hook invocation. * * Reads PEAKS_ACTIVE_SKILL first (test override), then walks * `.peaks/_runtime//` for any `active-skill-*.json` file. Returns * the first match. */ export declare function resolveActiveSkillForCaller(projectRoot: string): ActiveSkillResolution;