/** * Admin command — P6 M6.5 governance policy surface for Auto routing. * * The M2.4 admin schema (routing.governance.*) is enforced inside the * auto-router's hard-constraint slot on every pick — violating providers are * ELIMINATED, never just scored lower. This command promotes that raw config * surface into a first-class admin API: * * buff admin — Show the current policy (alias for `policy`) * buff admin policy [--json] — Current allow/deny policy + enforcement status * buff admin allow — Add providers to governance.allowProviders * buff admin deny — Add providers to governance.denyProviders * buff admin allow-model — Add models to governance.allowModels * buff admin deny-model — Add models to governance.denyModels * buff admin max-cost — Admin hard max cost per call (joins routing.maxCostUsd) * buff admin pii-min <0..1> — Min privacy score for PII-matching tasks (default 1.0) * buff admin unblock on|off — May `buff models unblock` override registry blocks? * buff admin clear — Remove one governance field (policy becomes permissive on it) * * All writes go through ConfigManager.save() — the same file/path the config * CLI writes — so `buff config get routing.governance.` agrees with the * admin surface. Everything is additive: an empty policy is fully permissive. */ import { Command } from 'commander'; import { BaseCommand } from './commands.js'; export declare class AdminCommand extends BaseCommand { /** P6 M6.1 RBAC — local role file + OIDC adapter seam (see enterprise/rbac.ts). */ private rbac; /** * Enforce an RBAC action for the current identity; returns false (after * logging) when denied. Legacy single-user mode (no role file) stays fully * permissive — enabling RBAC never locks you out; once roles are assigned, * policy writes require `admin`. Callers abort on false. */ private guard; create(): Command; private policyCommand; private showPolicy; private describeEnforcement; private allowCommand; private denyCommand; private allowModelCommand; private denyModelCommand; private setListField; private maxCostCommand; private piiMinCommand; private unblockCommand; private clearCommand; private roleCommand; private whoamiCommand; private cronCommand; private parseCronArgs; private cronAdd; private cronList; private cronRemove; private cronRun; } //# sourceMappingURL=admin.d.ts.map