agent-afk 5.73.0 → 5.74.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.
@@ -3,6 +3,7 @@ import type { AnthropicToolDef, RunTurnInput, WireToolDef } from './types.js';
3
3
  export { DEFAULT_MAX_TOOL_USE_ITERATIONS } from '../shared/tool-loop-cap.js';
4
4
  export declare function toWireTool(tool: AnthropicToolDef): WireToolDef;
5
5
  export declare const OVERLOAD_MAX_RETRIES = 3;
6
+ export declare const STREAM_INCOMPLETE_MAX_RETRIES = 2;
6
7
  export declare function isTransientServerError(err: Error): boolean;
7
8
  export declare function isOverloadedErrorEvent(err: unknown): boolean;
8
9
  export declare function runTurn(input: RunTurnInput): AsyncGenerator<ProviderEvent, void, void>;
@@ -0,0 +1 @@
1
+ export declare const SUBAGENT_HANDOFF_CONTRACT = "Handoff contract: your final message is the ONLY thing the dispatching session receives \u2014 its intermediate tool calls, file reads, and exploration are invisible to the parent, so everything that matters must be in the reply itself.\n\nKeep that reply compact and lead with the answer: outcome/answer first, then the key evidence (file:line where it applies), risks or caveats, and anything you did not check.\n\nWhen a result is large \u2014 long analysis, generated content, extensive listings, or verbatim excerpts \u2014 do NOT paste it inline. Write it to a file in your working directory and return the file path plus a short summary. A very long final message can be truncated in transit and lost entirely, so hand off bulk output as a file and keep the message itself brief.";