agent-afk 5.25.5 → 5.25.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.
@@ -2,6 +2,9 @@ import type { ZodError, ZodType } from 'zod';
2
2
  import type { Message } from '../types.js';
3
3
  import { type Signal } from '../signal-block.js';
4
4
  export type SubagentStatus = 'idle' | 'running' | 'succeeded' | 'failed' | 'cancelled';
5
+ export declare const STREAM_INCOMPLETE = "stream_incomplete";
6
+ export declare function isIncompleteStopReason(stopReason: string | undefined): boolean;
7
+ export declare function annotateIfIncomplete(content: string, stopReason: string | undefined): string;
5
8
  export interface SubagentToolCall {
6
9
  id: string;
7
10
  name: string;
@@ -106,6 +106,7 @@ export declare const SubagentSucceededPayloadSchema: z.ZodObject<{
106
106
  turnCount: z.ZodNumber;
107
107
  totalCostUsd: z.ZodOptional<z.ZodNumber>;
108
108
  outputBytes: z.ZodNumber;
109
+ stopReason: z.ZodOptional<z.ZodString>;
109
110
  }, z.core.$strip>;
110
111
  export declare const SubagentFailedPayloadSchema: z.ZodObject<{
111
112
  transition: z.ZodLiteral<"failed">;
@@ -136,6 +137,7 @@ export declare const SubagentLifecyclePayloadSchema: z.ZodDiscriminatedUnion<[z.
136
137
  turnCount: z.ZodNumber;
137
138
  totalCostUsd: z.ZodOptional<z.ZodNumber>;
138
139
  outputBytes: z.ZodNumber;
140
+ stopReason: z.ZodOptional<z.ZodString>;
139
141
  }, z.core.$strip>, z.ZodObject<{
140
142
  transition: z.ZodLiteral<"failed">;
141
143
  subagentId: z.ZodString;
@@ -566,6 +568,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
566
568
  turnCount: z.ZodNumber;
567
569
  totalCostUsd: z.ZodOptional<z.ZodNumber>;
568
570
  outputBytes: z.ZodNumber;
571
+ stopReason: z.ZodOptional<z.ZodString>;
569
572
  }, z.core.$strip>, z.ZodObject<{
570
573
  transition: z.ZodLiteral<"failed">;
571
574
  subagentId: z.ZodString;
@@ -858,6 +861,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
858
861
  turnCount: z.ZodNumber;
859
862
  totalCostUsd: z.ZodOptional<z.ZodNumber>;
860
863
  outputBytes: z.ZodNumber;
864
+ stopReason: z.ZodOptional<z.ZodString>;
861
865
  }, z.core.$strip>, z.ZodObject<{
862
866
  transition: z.ZodLiteral<"failed">;
863
867
  subagentId: z.ZodString;
@@ -47,6 +47,7 @@ export interface SubagentSucceededPayload {
47
47
  turnCount: number;
48
48
  totalCostUsd?: number;
49
49
  outputBytes: number;
50
+ stopReason?: string;
50
51
  }
51
52
  export interface SubagentFailedPayload {
52
53
  transition: 'failed';