Skip to content

findApprovalsRaterProfiles

findApprovalsRaterProfiles(raw): RaterProfileRef[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/schema.ts:1483

CFG-26 — collect every approvals.rater in a raw config (root + each commands.<name>). CFG-27 flattened the key: it is a BARE identity-profile name, not rater.profile.

PURE — it only reads the object; the caller decides whether each name RESOLVES. That split is deliberate: profile resolution needs the filesystem, and schema.ts must stay pure so z.toJSONSchema and every spec that validates a config object stay cwd-independent. The loader pairs this with resolveIdentityProfileConfigPath to enforce the GS2-62 rule that an unresolvable profile is a hard error, never a silent fallback to the main model.

Record<string, unknown>

RaterProfileRef[]