agent-afk 5.265.0 → 5.265.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,4 +1,5 @@
1
1
  import type { CompleteFn, Prediction, StructuralImpact } from './types.js';
2
+ import type { RepoManifest } from './repo-manifest.js';
2
3
  export interface PredictInput {
3
4
  spec: {
4
5
  title: string;
@@ -7,5 +8,6 @@ export interface PredictInput {
7
8
  changeDescriptions: string[];
8
9
  structural: StructuralImpact;
9
10
  trackRecord?: string;
11
+ repoManifest?: RepoManifest;
10
12
  }
11
13
  export declare function predictChanges(input: PredictInput, complete: CompleteFn, model: string): Promise<Prediction[]>;
@@ -0,0 +1,17 @@
1
+ export interface DroppedProbe {
2
+ predictionId: string;
3
+ probe: string;
4
+ reason: string;
5
+ }
6
+ export interface GroundedPrediction {
7
+ id: string;
8
+ probes: string[];
9
+ }
10
+ export interface GroundProbesResult<T extends GroundedPrediction> {
11
+ predictions: T[];
12
+ droppedProbes: DroppedProbe[];
13
+ }
14
+ export declare function extractPathTokens(probe: string): string[];
15
+ export type ExistenceChecker = (relPath: string) => boolean;
16
+ export declare function makeSetChecker(allPaths: Set<string>): ExistenceChecker;
17
+ export declare function groundProbes<T extends GroundedPrediction>(predictions: T[], existenceChecker: ExistenceChecker): GroundProbesResult<T>;
@@ -0,0 +1,8 @@
1
+ export interface RepoManifest {
2
+ languages: string[];
3
+ paths: string[];
4
+ allPaths: Set<string>;
5
+ }
6
+ export declare function buildRepoManifest(cwd: string): RepoManifest;
7
+ export declare function formatRepoManifest(manifest: RepoManifest): string;
8
+ export declare function pathExistsInCwd(cwd: string, relPath: string): boolean;
@@ -228,6 +228,7 @@ export interface WhatifReport {
228
228
  runDir: string;
229
229
  limits: string[];
230
230
  headline: string;
231
+ droppedProbes?: import('./probe-grounding.js').DroppedProbe[];
231
232
  corpusExclusions?: import('./episodes.js').CorpusExclusions;
232
233
  }
233
234
  export type { WhatifStage, WhatifProgress, CompleteFn, WhatifOptions, WhatifDeps, } from './types.orchestration.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-afk",
3
- "version": "5.265.0",
3
+ "version": "5.265.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",