agent-afk 5.103.2 → 5.103.4

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.
@@ -18,6 +18,7 @@ export interface OpenAICompatibleQueryOptions {
18
18
  config: AgentConfig;
19
19
  toolDispatcher?: ToolDispatcher;
20
20
  onPermissionMode?: (mode: string) => void;
21
+ onCwdChange?: (cwd: string) => void;
21
22
  mcpManager?: import('../../mcp/index.js').McpManager;
22
23
  useResponsesApi?: boolean;
23
24
  traceWriter?: TraceWriter;
@@ -28,6 +29,7 @@ export declare class OpenAICompatibleQuery implements ProviderQuery {
28
29
  private readonly initSessionId;
29
30
  private readonly toolDispatcher;
30
31
  private readonly onPermissionMode?;
32
+ private readonly onCwdChange?;
31
33
  private readonly openAITools;
32
34
  private readonly wireMode;
33
35
  private readonly traceWriter;
@@ -70,6 +72,7 @@ export declare function buildQueryFromConfig(config: AgentConfig, promptStream:
70
72
  baseURL?: string;
71
73
  toolDispatcher?: ToolDispatcher;
72
74
  onPermissionMode?: (mode: string) => void;
75
+ onCwdChange?: (cwd: string) => void;
73
76
  mcpManager?: import('../../mcp/index.js').McpManager;
74
77
  useResponsesApi?: boolean;
75
78
  authDeps?: AuthResolverDeps;
@@ -1,6 +1,7 @@
1
1
  import { appendRoutingDecision } from '../../routing-telemetry.js';
2
2
  export declare function emitTelemetry(entry: Parameters<typeof appendRoutingDecision>[0]): Promise<void>;
3
3
  export declare function truncate(s: string, max?: number): string;
4
+ export declare function boundedStopReason(stopReason: string | undefined): string | undefined;
4
5
  export declare function measurePartial(partial: unknown): number | undefined;
5
6
  export interface StructuredFailurePayload {
6
7
  status: string;