/** * @fileoverview Check resolution for fitness recipes. * * Resolves recipe check selectors (explicit / pattern / tags / all) into * concrete check-key lists. The selection algorithm itself lives once in * `@opensip-cli/core` (`resolveSelector`); this module wires fitness's * registry, `minimatch`, and namespaced-slug reverse-lookup into it. The * per-arm semantics are unchanged from the previous hand-rolled switch. */ import type { CheckSelector } from './types.js'; import type { CheckRegistry } from '../framework/registry.js'; /** * Resolve a CheckSelector to a list of check keys from the registry. * * Delegates to core's generic `resolveSelector`, supplying fitness's * registry-backed hooks: * - the universe is `registry.listSlugs()` (each key becomes a Registerable item); * - `keysOf` is `buildMatchTargets` (key + bare slug + tag/slug targets); * - the `pattern` / `all` matcher is `minimatch` (kept a fitness dependency); * - `resolveExplicit` is the bare-slug → namespaced-key reverse lookup via * `registry.resolveBareSlug`, which **fails closed** on an ambiguous bare * slug (emits a diagnostic and returns undefined) rather than picking the * first `endsWith(':'+id)` match (ADR-0106 / P1-F2); * - the `tags` arm routes through core's built-in tag-set intersection over * `check.config.tags` (`tagsOf` reads the registry), matching the previous * `resolveTagsSelector` exactly. */ export declare function resolveChecks(selector: CheckSelector, registry: CheckRegistry): readonly string[]; /** Result of validating check references against the registry */ interface CheckReferenceValidation { valid: string[]; missing: string[]; } /** Validate a list of check IDs against known IDs, returning valid and missing sets */ export declare function validateCheckReferences(checkIds: readonly string[], allCheckIds: readonly string[]): CheckReferenceValidation; export {}; //# sourceMappingURL=check-resolution.d.ts.map