agent-afk 5.31.1 → 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.
- package/dist/agent/provider.d.ts +2 -0
- package/dist/agent/providers/anthropic-direct/types.d.ts +2 -0
- package/dist/agent/tools/handlers/_cwd-utils.d.ts +2 -2
- package/dist/agent/tools/handlers/edit-file.d.ts +1 -0
- package/dist/agent/tools/handlers/list-directory.d.ts +1 -0
- package/dist/agent/tools/handlers/read-file.d.ts +1 -0
- package/dist/agent/tools/handlers/write-file.d.ts +1 -0
- package/dist/agent/trace/events.d.ts +8 -0
- package/dist/agent/trace/types.d.ts +2 -0
- package/dist/agent/types/message-types.d.ts +2 -0
- package/dist/cli/commands/interactive/tool-lane-format.d.ts +1 -0
- package/dist/cli.mjs +403 -403
- package/dist/index.mjs +146 -146
- package/dist/telegram.mjs +186 -186
- package/package.json +1 -1
package/dist/agent/provider.d.ts
CHANGED
|
@@ -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?: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ToolHandlerContext } from '../types.js';
|
|
2
2
|
export declare function realpathSafe(p: string): string;
|
|
3
3
|
export declare function _resetRootRealpathCacheForTests(): void;
|
|
4
|
-
export declare function resolveAndContain(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write'): string;
|
|
5
|
-
export declare function wouldBeRestricted(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write'): {
|
|
4
|
+
export declare function resolveAndContain(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write', fallbackBase?: string): string;
|
|
5
|
+
export declare function wouldBeRestricted(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write', fallbackBase?: string): {
|
|
6
6
|
restricted: boolean;
|
|
7
7
|
resolved: string;
|
|
8
8
|
roots: string[];
|
|
@@ -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;
|
|
@@ -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;
|