/** * state/settings — typed resolver for `.pi/settings.json` fields owned by * pi-swarm. * * #133: project policies (e.g. retention period for completed runs) live * in the project settings file rather than source code, so operators can * adjust them per-project without rebuilding. The resolver falls back to * documented defaults when the file is missing or malformed, and logs a * console.error explaining why so misconfiguration is visible. * #147: switched to the shared `readPiSettings` helper. The helper * returns `{ value, error }` so ENOENT is silent and other failures * are surfaced for logging. */ /** * Resolve the retention period (in ms) for completed/failed/abandoned runs. * * Priority: * 1. `/.pi/settings.json` → `pi-swarm.runRetentionMs` * 2. `DEFAULT_RUN_RETENTION_MS` (7 days) when absent or invalid. * * The value must be a positive integer (ms). Anything else falls back to * the default and logs a console.error. Missing files are silent (the * common case for any fresh project); other I/O faults and malformed * JSON are logged. */ export declare function resolveRunRetentionMs(cwd: string): number; //# sourceMappingURL=settings.d.ts.map