agent-afk 5.270.1 → 5.270.3
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/README.md +1 -1
- package/dist/agent/daemon/gates.d.ts +1 -1
- package/dist/agent/daemon/scheduler.d.ts +1 -1
- package/dist/agent/daemon/scheduler.overlap-guard.d.ts +5 -0
- package/dist/agent/facets/derive.d.ts +4 -1
- package/dist/agent/facets/index.d.ts +1 -1
- package/dist/agent/facets/journal-adapter.d.ts +7 -0
- package/dist/agent/facets/parallel-dispatch.d.ts +4 -0
- package/dist/agent/facets/schema.d.ts +14 -1
- package/dist/agent/providers/openai-compatible/messages.d.ts +9 -0
- package/dist/agent/providers/openai-compatible/query/repair-orphan-tool-calls.d.ts +2 -0
- package/dist/cli.mjs +357 -341
- package/dist/index.mjs +144 -144
- package/dist/telegram.mjs +169 -169
- package/dist/whatif/mde.d.ts +7 -0
- package/dist/whatif/run.d.ts +6 -1
- package/dist/whatif/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/whatif/mde.d.ts
CHANGED
|
@@ -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;
|
package/dist/whatif/run.d.ts
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/dist/whatif/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-afk",
|
|
3
|
-
"version": "5.270.
|
|
3
|
+
"version": "5.270.3",
|
|
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",
|