/**
 * Module-scoped singletons for the agent system.
 *
 * The MCP server and the settings HTTP server run in the same Node
 * process, so they can share these instances directly. The instances
 * are populated by the bootstrap path in index.ts and read from the
 * settings server's route handlers. Access is synchronous and returns
 * undefined when the bootstrap hasn't run yet (e.g. unit tests that
 * instantiate the settings server in isolation).
 */
let _grants = null;
let _audit = null;
let _serviceAccounts = null;
export function registerAgentServices(grants, audit, serviceAccounts) {
    _grants = grants;
    _audit = audit;
    _serviceAccounts = serviceAccounts ?? null;
}
export function getAgentGrantStore() {
    return _grants;
}
export function getAgentAuditLog() {
    return _audit;
}
export function getServiceAccountStore() {
    return _serviceAccounts;
}
//# sourceMappingURL=registry.js.map