agent-afk 5.25.6 → 5.25.8
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/model-capabilities.d.ts +1 -0
- package/dist/agent/providers/openai-compatible/query/model-params.d.ts +2 -2
- package/dist/agent/subagent/result.d.ts +3 -0
- package/dist/agent/trace/events.d.ts +4 -0
- package/dist/agent/trace/types.d.ts +1 -0
- package/dist/cli.mjs +436 -434
- package/dist/index.mjs +159 -159
- package/dist/telegram.mjs +217 -215
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EffortLevel } from '../../../types/sdk-types.js';
|
|
2
|
-
import { isOSeriesModel } from '../../../model-capabilities.js';
|
|
2
|
+
import { isOSeriesModel, isReasoningModel } from '../../../model-capabilities.js';
|
|
3
3
|
export declare function resolveEffectiveMaxOutputTokens(model: string, configMaxOutput: number | undefined): number;
|
|
4
4
|
export declare function resolveStreamingMaxTokens(model: string, configMaxOutput: number | undefined): Record<string, number>;
|
|
5
5
|
export declare function normalizePermissionMode(mode: string | undefined): string;
|
|
6
|
-
export { isOSeriesModel };
|
|
6
|
+
export { isOSeriesModel, isReasoningModel };
|
|
7
7
|
export declare function mapEffortForOpenAI(effort: EffortLevel): 'low' | 'medium' | 'high';
|
|
8
8
|
export declare function resolveReasoningEffort(effort: EffortLevel | undefined, model: string): 'low' | 'medium' | 'high' | undefined;
|
|
@@ -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;
|