agent-afk 5.312.8 → 5.313.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.
@@ -1,9 +1,13 @@
1
1
  import type { FactCategory, FactVerification } from './types.js';
2
2
  export declare const CODEBASE_FACT_CATEGORIES: ReadonlySet<FactCategory>;
3
3
  export declare const UNVERIFIED_TAG = "[unverified]";
4
+ export declare const AUTO_REFLECTED_TAG = "[auto-reflected]";
5
+ export declare const AUTO_REFLECTED_CATEGORIES: ReadonlySet<FactCategory>;
4
6
  export declare function isCodebaseFactCategory(category: FactCategory): boolean;
5
7
  export declare function evidenceGateEnabled(): boolean;
6
8
  export declare function requiresEvidence(category: FactCategory): boolean;
7
9
  export declare function normalizeEvidence(evidence: string | null | undefined): string | null;
8
10
  export declare function verificationStatus(category: FactCategory, evidence: string | null | undefined): FactVerification;
9
11
  export declare function applyUnverifiedTag(content: string, status: FactVerification): string;
12
+ export declare function isAutoReflectedCategory(category: FactCategory): boolean;
13
+ export declare function applyAutoReflectedTag(content: string, category: FactCategory): string;
@@ -5,4 +5,5 @@ export declare function capForModel(text: string): {
5
5
  content: string;
6
6
  truncated: boolean;
7
7
  };
8
- export declare const HARD_CAP_KILL_NOTE = "\n[output truncated \u2014 command exceeded the 8000000-byte output cap and was terminated]";
8
+ export declare function isOutputCapKill(content: string): boolean;
9
+ export declare const HARD_CAP_KILL_NOTE: string;
@@ -0,0 +1,20 @@
1
+ import type { ToolHandlerContext } from '../types.js';
2
+ export declare function resolveGenSavePath(outputPath: string | undefined, context: ToolHandlerContext | undefined, cwd: string, imageId: string, ext: string): Promise<{
3
+ savePath: string;
4
+ } | {
5
+ error: string;
6
+ }>;
7
+ export interface ImagesApiResult {
8
+ b64_json: string;
9
+ revised_prompt: string | null;
10
+ }
11
+ export interface ImagesApiParams {
12
+ model: string;
13
+ prompt: string;
14
+ size: string;
15
+ quality: string;
16
+ output_format: string;
17
+ }
18
+ export declare function callImagesApi(fetchFn: typeof globalThis.fetch, apiKey: string, params: ImagesApiParams, extraHeaders: Record<string, string> | undefined, signal: AbortSignal): Promise<ImagesApiResult | {
19
+ error: string;
20
+ }>;
@@ -56,6 +56,7 @@ export interface ToolResultChunk {
56
56
  incompleteReason?: string;
57
57
  partialNodeCount?: number;
58
58
  truncated?: boolean;
59
+ outputCapKilled?: boolean;
59
60
  persistedPath?: string;
60
61
  capturePath?: string;
61
62
  tailPreview?: string[];
@@ -2,7 +2,9 @@ import { type Entry } from './tool-lane-render.js';
2
2
  export interface ToolLaneFlushHost {
3
3
  readonly entries: Map<string, Entry>;
4
4
  order: string[];
5
+ agentIdStack: string[];
5
6
  readonly compactScrollback: boolean;
6
7
  }
7
8
  export declare function flushSource(host: ToolLaneFlushHost, parentId: string, homeDir?: string): string[];
8
9
  export declare function flushCompletedRoots(host: ToolLaneFlushHost, homeDir?: string): string[];
10
+ export declare function flush(host: ToolLaneFlushHost, homeDir?: string): string[];
@@ -5,7 +5,6 @@ import type { WorktreeHandle, DeferredWorktree } from './interactive/worktree.js
5
5
  import { initTranscript } from './interactive/transcript.js';
6
6
  import type { TurnState } from './interactive/repl-loop.js';
7
7
  import type { ExitReasonRef } from './interactive/interactive.signal-handlers.js';
8
- import { env } from '../../config/env.js';
9
8
  export declare function applyInteractiveOptions(cmd: Command): Command;
10
9
  export interface FirstTurnHookParams {
11
10
  deferred: DeferredWorktree;
@@ -64,4 +63,3 @@ export declare function resolveWorktreeSetupArg(branchPrefixOverride: string | u
64
63
  branchPrefix?: string;
65
64
  baseRef?: string;
66
65
  } | undefined;
67
- export { env };