agent-afk 5.235.0 → 5.236.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,6 +86,14 @@ export declare const ENV_REGISTRY: readonly [{
86
86
  readonly required: false;
87
87
  readonly example: "medium";
88
88
  readonly category: "model";
89
+ }, {
90
+ readonly name: "AFK_EVAL_STALENESS_DAYS";
91
+ readonly description: string;
92
+ readonly type: "number";
93
+ readonly required: false;
94
+ readonly default: "7";
95
+ readonly example: "14";
96
+ readonly category: "misc";
89
97
  }, {
90
98
  readonly name: "AFK_MAX_BUDGET_USD";
91
99
  readonly description: "Cumulative USD budget ceiling for the session. Aborts the turn when the running cost crosses this.";
@@ -0,0 +1,16 @@
1
+ export declare const DEFAULT_STALENESS_DAYS = 7;
2
+ export type PipelineRecencyStatus = 'fresh' | 'stale' | 'never-run' | 'error' | 'disabled';
3
+ export interface PipelineRecencyResult {
4
+ status: PipelineRecencyStatus;
5
+ lastRunAt: string | null;
6
+ ageInDays: number | null;
7
+ thresholdDays: number | null;
8
+ message: string;
9
+ }
10
+ export interface PipelineRecencyContext {
11
+ now?: () => Date;
12
+ readIndex?: () => string | null;
13
+ }
14
+ export declare function resolveStalenessThreshold(): number;
15
+ export declare function parseLatestTimestamp(raw: string): string | null;
16
+ export declare function checkEvalPipelineRecency(ctx?: PipelineRecencyContext): PipelineRecencyResult;