agent-afk 5.312.8 → 5.312.9

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.
@@ -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
+ }>;
@@ -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 };