import type { ConfigManager } from '../config/manager.js'; import type { AgentManager } from '../tools/agent/index.js'; export type AgentManagerLike = Pick; export type WrfcCommitScope = 'off' | 'scoped' | 'all'; export type WrfcConfigLike = { scoreThreshold: number; maxFixAttempts: number; autoCommit: boolean; /** * Scope of files staged on WRFC auto-commit: * - 'off': never commit on gate pass. * - 'scoped' (default): stage only the paths the chain's own completion reports claim * to have touched (see collectChainTouchedPaths in wrfc-controller.ts). * - 'all': legacy full-tree `git add -A` sweep. */ commitScope: WrfcCommitScope; gates: Array<{ name: string; command: string; enabled: boolean; }>; /** * How long (in ms) to wait for an agent event before treating a running agent * as hung/silent and failing the chain. Default: 0 (disabled). */ agentHeartbeatTimeoutMs: number; /** * How many times a chain will auto-retry a transport-classified child-agent * failure (respawning the same role) before failing the chain outright. * Separate from maxFixAttempts, a transport blip is not a fix cycle. Default: 1. */ transportRetryLimit: number; /** * How long (in ms) to wait before respawning after a transport-classified * failure. Default: 5000. */ transportRetryDelayMs: number; }; export type WrfcConfigReader = Pick; export declare function readWrfcConfig(configManager: WrfcConfigReader): WrfcConfigLike; export declare function getWrfcAgentHeartbeatTimeoutMs(configManager: WrfcConfigReader): number; export declare function getWrfcTransportRetryLimit(configManager: WrfcConfigReader): number; export declare function getWrfcTransportRetryDelayMs(configManager: WrfcConfigReader): number; export declare function getWrfcScoreThreshold(configManager: WrfcConfigReader): number; export declare function getWrfcMaxFixAttempts(configManager: WrfcConfigReader): number; export declare function getWrfcAutoCommit(configManager: WrfcConfigReader): boolean; export declare function getWrfcCommitScope(configManager: WrfcConfigReader): WrfcCommitScope; export declare function getEnabledWrfcGates(configManager: WrfcConfigReader): WrfcConfigLike['gates']; //# sourceMappingURL=wrfc-config.d.ts.map