agent-afk 5.85.5 → 5.85.7

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,16 @@
1
+ import type { ToolResult } from '../tools/types.js';
2
+ export declare const STREAM_CUT_MAX_REDISPATCH = 1;
3
+ export declare const STREAM_CUT_REDISPATCH_DELAY_MS = 1000;
4
+ export declare function isZeroOutputStreamCut(result: ToolResult): boolean;
5
+ export interface StreamCutProbe {
6
+ sideEffectFree: boolean;
7
+ }
8
+ export interface StreamCutRetryOptions {
9
+ dispatch: (attempt: number) => Promise<ToolResult>;
10
+ signal: AbortSignal;
11
+ maxRedispatch?: number;
12
+ delayMs?: number;
13
+ canRedispatch?: () => boolean;
14
+ onRedispatch?: (attempt: number) => void;
15
+ }
16
+ export declare function runWithStreamCutRetry(opts: StreamCutRetryOptions): Promise<ToolResult>;
@@ -5,5 +5,6 @@ export declare const SKILL_TOOLS: Set<string>;
5
5
  export declare const DAG_TOOLS: Set<string>;
6
6
  export declare const NESTING_TOOLS: Set<string>;
7
7
  export declare const READ_ONLY_PHASE_TOOLS: readonly string[];
8
+ export declare const STREAM_CUT_RETRY_SAFE_TOOLS: readonly string[];
8
9
  export declare function categorizeTool(name: string): ToolCategory;
9
10
  export declare function dispatchTagForCategory(cat: ToolCategory): string | undefined;
@@ -40,5 +40,6 @@ export interface BuildChildConfigResult {
40
40
  childParentSession: ChildParentSession | undefined;
41
41
  childManager: SubagentManager | undefined;
42
42
  childWriteCapable: boolean;
43
+ childSideEffectFree: boolean;
43
44
  }
44
45
  export declare function buildChildConfig(args: BuildChildConfigArgs): BuildChildConfigResult;
@@ -0,0 +1,11 @@
1
+ export interface NestedAgentSurface {
2
+ allowedTools: readonly string[] | undefined;
3
+ bashReadOnly: boolean;
4
+ nestedAgentTypes: readonly string[] | undefined;
5
+ }
6
+ export interface ReplaySafetyInput {
7
+ effectiveAllowedTools: readonly string[] | undefined;
8
+ nestedAgentTypes: readonly string[] | undefined;
9
+ resolveNestedAgent?: (name: string) => NestedAgentSurface | undefined;
10
+ }
11
+ export declare function isChildReplaySafe(input: ReplaySafetyInput): boolean;
@@ -54,6 +54,7 @@ export declare class SubagentExecutor implements SubagentControl {
54
54
  private readonly activeForegroundHandles;
55
55
  hasPromotableForeground(): boolean;
56
56
  hasActiveForeground(): boolean;
57
+ private cancelGeneration;
57
58
  cancelActiveForeground(): Promise<number>;
58
59
  promoteActiveForeground(): Promise<PromotedSubagentInfo[]>;
59
60
  getSubagentsLite(): {
@@ -69,4 +70,5 @@ export declare class SubagentExecutor implements SubagentControl {
69
70
  }>;
70
71
  };
71
72
  execute(call: ToolCall): Promise<ToolResult>;
73
+ private executeOnce;
72
74
  }