agent-afk 5.31.2 → 5.32.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.
@@ -87,6 +87,8 @@ export type ProviderEvent = {
87
87
  truncated?: boolean;
88
88
  sessionId?: string;
89
89
  toolName?: string;
90
+ batchIndex?: number;
91
+ batchSize?: number;
90
92
  } | {
91
93
  type: 'tool.diff';
92
94
  toolUseId: string;
@@ -17,6 +17,8 @@ export interface ToolResult {
17
17
  truncated?: boolean;
18
18
  circuitBreaker?: boolean;
19
19
  failureClass?: ToolFailureClass;
20
+ batchIndex?: number;
21
+ batchSize?: number;
20
22
  render?: RenderHints;
21
23
  testResult?: import('../../tools/handlers/test-runner-detector.js').TestResult;
22
24
  image?: {
@@ -31,6 +31,8 @@ export declare const ToolCallCompletedPayloadSchema: z.ZodObject<{
31
31
  "hook-block": "hook-block";
32
32
  "elicitation-declined": "elicitation-declined";
33
33
  }>>;
34
+ batchIndex: z.ZodOptional<z.ZodNumber>;
35
+ batchSize: z.ZodOptional<z.ZodNumber>;
34
36
  subagentId: z.ZodOptional<z.ZodString>;
35
37
  }, z.core.$strip>;
36
38
  export declare const ToolCallPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -56,6 +58,8 @@ export declare const ToolCallPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject
56
58
  "hook-block": "hook-block";
57
59
  "elicitation-declined": "elicitation-declined";
58
60
  }>>;
61
+ batchIndex: z.ZodOptional<z.ZodNumber>;
62
+ batchSize: z.ZodOptional<z.ZodNumber>;
59
63
  subagentId: z.ZodOptional<z.ZodString>;
60
64
  }, z.core.$strip>], "phase">;
61
65
  export declare const HookEventNameSchema: z.ZodEnum<{
@@ -524,6 +528,8 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
524
528
  "hook-block": "hook-block";
525
529
  "elicitation-declined": "elicitation-declined";
526
530
  }>>;
531
+ batchIndex: z.ZodOptional<z.ZodNumber>;
532
+ batchSize: z.ZodOptional<z.ZodNumber>;
527
533
  subagentId: z.ZodOptional<z.ZodString>;
528
534
  }, z.core.$strip>], "phase">;
529
535
  }, z.core.$strip>, z.ZodObject<{
@@ -813,6 +819,8 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
813
819
  "hook-block": "hook-block";
814
820
  "elicitation-declined": "elicitation-declined";
815
821
  }>>;
822
+ batchIndex: z.ZodOptional<z.ZodNumber>;
823
+ batchSize: z.ZodOptional<z.ZodNumber>;
816
824
  subagentId: z.ZodOptional<z.ZodString>;
817
825
  }, z.core.$strip>], "phase">;
818
826
  }, z.core.$strip>, z.ZodObject<{
@@ -18,6 +18,8 @@ export interface ToolCallCompletedPayload {
18
18
  durationMs: number;
19
19
  circuitBreaker?: boolean;
20
20
  failureClass?: ToolFailureClass;
21
+ batchIndex?: number;
22
+ batchSize?: number;
21
23
  subagentId?: string;
22
24
  }
23
25
  export type ToolCallPayload = ToolCallStartedPayload | ToolCallCompletedPayload;
@@ -54,6 +54,8 @@ export interface ToolResultChunk {
54
54
  sizeLabel?: string;
55
55
  lineCount?: number;
56
56
  display?: string;
57
+ batchIndex?: number;
58
+ batchSize?: number;
57
59
  metadata?: Record<string, unknown>;
58
60
  }
59
61
  export interface ToolDiffChunk {
@@ -11,4 +11,5 @@ export declare const GROUP_THRESHOLD_DISPATCH = 2;
11
11
  export declare const GROUP_THRESHOLD_LEAF = 3;
12
12
  export declare function inProgressVerb(toolName: string): string;
13
13
  export declare function formatOutcome(chunk: ToolResultChunk, homeDir?: string, maxPreview?: number, toolName?: string): string;
14
+ export declare function batchBadge(chunk: ToolResultChunk | undefined): string;
14
15
  export declare function formatToolResultLine(chunk: ToolResultChunk, toolPrefix?: string, homeDir?: string, toolName?: string): string;