agent-afk 5.268.1 → 5.270.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.
- package/dist/cli.mjs +313 -304
- package/dist/index.mjs +125 -125
- package/dist/telegram.mjs +143 -143
- package/dist/whatif/probe-signflip.d.ts +17 -0
- package/dist/whatif/report.predictions.d.ts +3 -0
- package/dist/whatif/report.signflip.d.ts +4 -0
- package/dist/whatif/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const ZERO_TOLERANCE = 1e-9;
|
|
2
|
+
export interface ProbeSignFlipResult {
|
|
3
|
+
nPaired: number;
|
|
4
|
+
nUnpaired: number;
|
|
5
|
+
nNonzero: number;
|
|
6
|
+
meanDelta: number;
|
|
7
|
+
probeDiffs: number[];
|
|
8
|
+
p: number | null;
|
|
9
|
+
minAchievableP: number | null;
|
|
10
|
+
underpoweredForSig: boolean;
|
|
11
|
+
method: 'exact' | 'montecarlo';
|
|
12
|
+
}
|
|
13
|
+
export interface ArmSamples {
|
|
14
|
+
baseline: number[];
|
|
15
|
+
candidate: number[];
|
|
16
|
+
}
|
|
17
|
+
export declare function computeProbeSignFlip(pairedEpisodeData: Map<string, ArmSamples>, episodeOrder: string[]): ProbeSignFlipResult;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ArmImbalance } from './run.failures.js';
|
|
2
|
+
import type { VerifiedPrediction } from './types.js';
|
|
3
|
+
export declare function fmtP(p: number): string;
|
|
4
|
+
export declare function renderProbeSignFlipSection(verified: VerifiedPrediction[], armImbalance?: ArmImbalance): string[];
|
package/dist/whatif/types.d.ts
CHANGED
|
@@ -196,6 +196,7 @@ export interface VerifiedPrediction {
|
|
|
196
196
|
crossCheckAgreement?: number;
|
|
197
197
|
crossCheckTooFew?: boolean;
|
|
198
198
|
verdictReason?: 'judges disagree';
|
|
199
|
+
probeSignFlip?: import('./probe-signflip.js').ProbeSignFlipResult;
|
|
199
200
|
}
|
|
200
201
|
export interface DiscoveredDifference {
|
|
201
202
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-afk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.270.0",
|
|
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",
|