agent-afk 5.270.1 → 5.270.2

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.
@@ -1,3 +1,4 @@
1
+ import type { Prediction, PredictionDirection } from './types.js';
1
2
  export declare const MDE_GATE_THRESHOLD = 0.2;
2
3
  export declare const Z_ALPHA = 1.96;
3
4
  export declare const Z_POWER = 0.8416;
@@ -7,3 +8,9 @@ export declare function mdePreflightLine(probesPerPrediction: number, targetMde?
7
8
  export declare function mdeLimitLine(n: number, label: string): string | undefined;
8
9
  export declare function isUnderpowered(minProbesPerPrediction: number): boolean;
9
10
  export declare function mdeGateRefusedMessage(minProbesPerPrediction: number): string;
11
+ export declare function headroomForPrediction(baselineEstimate: number | undefined, direction: PredictionDirection): number | undefined;
12
+ export declare function isHeadroomUnderpowered(prediction: Prediction, probesPerPrediction: number): boolean;
13
+ export declare function headroomPreflightLine(prediction: Prediction & {
14
+ baselineEstimate: number;
15
+ }, probesPerPrediction: number): string;
16
+ export declare function headroomLimitLine(observedBaseline: number, direction: PredictionDirection, n: number, label: string): string | undefined;
@@ -6,7 +6,12 @@ export declare class WhatifBudgetError extends Error {
6
6
  }
7
7
  export declare class WhatifMdeError extends Error {
8
8
  readonly episodesPerArm: number;
9
- constructor(minProbesPerPrediction: number);
9
+ readonly kind: 'mde' | 'headroom';
10
+ readonly predictionId?: string;
11
+ constructor(minProbesPerPrediction: number, message?: string, opts?: {
12
+ kind?: 'mde' | 'headroom';
13
+ predictionId?: string;
14
+ });
10
15
  }
11
16
  export declare function runWhatif(options: WhatifOptions & {
12
17
  sessionsDir?: string;
@@ -106,6 +106,7 @@ export interface Prediction {
106
106
  probes: string[];
107
107
  observable?: PredictionObservable;
108
108
  observabilityReason?: string;
109
+ baselineEstimate?: number;
109
110
  }
110
111
  export interface Episode {
111
112
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-afk",
3
- "version": "5.270.1",
3
+ "version": "5.270.2",
4
4
  "description": "Open-source coding-agent harness you can actually change — own the loop (prompts, gates, routing, skills, terminal states), use any model, run long tasks while you're away.",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",