agent-afk 5.78.2 → 5.79.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.
- package/dist/agent/bg-job-log.d.ts +1 -0
- package/dist/agent/hooks.d.ts +2 -0
- package/dist/agent/provider.d.ts +2 -0
- package/dist/agent/providers/anthropic-direct/types.d.ts +2 -0
- package/dist/agent/routing-telemetry.d.ts +1 -0
- package/dist/agent/subagent/result.d.ts +4 -0
- package/dist/agent/trace/events.d.ts +8 -0
- package/dist/agent/trace/types.d.ts +2 -0
- package/dist/cli.mjs +492 -492
- package/dist/index.mjs +135 -135
- package/dist/telegram.mjs +210 -210
- package/package.json +1 -1
package/dist/agent/hooks.d.ts
CHANGED
package/dist/agent/provider.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface RoutingDecisionEntry {
|
|
|
10
10
|
status?: string | undefined;
|
|
11
11
|
duration_ms?: number | undefined;
|
|
12
12
|
content_chars?: number | undefined;
|
|
13
|
+
stop_reason?: string | undefined;
|
|
13
14
|
error_message?: string | undefined;
|
|
14
15
|
schema_error?: string | undefined;
|
|
15
16
|
partial_output_chars?: number | undefined;
|
|
@@ -5,6 +5,10 @@ export type SubagentStatus = 'idle' | 'running' | 'succeeded' | 'failed' | 'canc
|
|
|
5
5
|
export declare const STREAM_INCOMPLETE = "stream_incomplete";
|
|
6
6
|
export declare function isIncompleteStopReason(stopReason: string | undefined): boolean;
|
|
7
7
|
export declare function annotateIfIncomplete(content: string, stopReason: string | undefined): string;
|
|
8
|
+
export declare function incompleteToolResultFields(stopReason: string | undefined): {
|
|
9
|
+
incomplete?: true;
|
|
10
|
+
incompleteReason?: string;
|
|
11
|
+
};
|
|
8
12
|
export interface SubagentToolCall {
|
|
9
13
|
id: string;
|
|
10
14
|
name: string;
|
|
@@ -23,6 +23,8 @@ export declare const ToolCallCompletedPayloadSchema: z.ZodObject<{
|
|
|
23
23
|
isError: z.ZodBoolean;
|
|
24
24
|
truncated: z.ZodBoolean;
|
|
25
25
|
durationMs: z.ZodNumber;
|
|
26
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
incompleteReason: z.ZodOptional<z.ZodString>;
|
|
26
28
|
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
27
29
|
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
28
30
|
abort: "abort";
|
|
@@ -51,6 +53,8 @@ export declare const ToolCallPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
51
53
|
isError: z.ZodBoolean;
|
|
52
54
|
truncated: z.ZodBoolean;
|
|
53
55
|
durationMs: z.ZodNumber;
|
|
56
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
incompleteReason: z.ZodOptional<z.ZodString>;
|
|
54
58
|
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
55
59
|
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
56
60
|
abort: "abort";
|
|
@@ -562,6 +566,8 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
562
566
|
isError: z.ZodBoolean;
|
|
563
567
|
truncated: z.ZodBoolean;
|
|
564
568
|
durationMs: z.ZodNumber;
|
|
569
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
570
|
+
incompleteReason: z.ZodOptional<z.ZodString>;
|
|
565
571
|
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
566
572
|
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
567
573
|
abort: "abort";
|
|
@@ -875,6 +881,8 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
875
881
|
isError: z.ZodBoolean;
|
|
876
882
|
truncated: z.ZodBoolean;
|
|
877
883
|
durationMs: z.ZodNumber;
|
|
884
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
885
|
+
incompleteReason: z.ZodOptional<z.ZodString>;
|
|
878
886
|
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
879
887
|
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
880
888
|
abort: "abort";
|