agent-afk 5.78.1 → 5.78.2
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/tools/dispatcher.d.ts +3 -0
- package/dist/agent/trace/events.d.ts +3 -0
- package/dist/agent/trace/types.d.ts +1 -0
- package/dist/cli.mjs +88 -88
- package/dist/index.mjs +76 -76
- package/dist/telegram.mjs +93 -93
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ export interface SessionToolDispatcherOptions {
|
|
|
32
32
|
env?: Record<string, string>;
|
|
33
33
|
sessionId?: string;
|
|
34
34
|
parentSessionId?: string;
|
|
35
|
+
subagentId?: string;
|
|
35
36
|
sessionGrantManager?: GrantManager;
|
|
36
37
|
traceWriter?: TraceWriter;
|
|
37
38
|
readOnlyBash?: boolean;
|
|
@@ -55,6 +56,7 @@ export declare class SessionToolDispatcher implements ToolDispatcher {
|
|
|
55
56
|
private readonly _env;
|
|
56
57
|
private readonly sessionId;
|
|
57
58
|
private readonly parentSessionId;
|
|
59
|
+
private readonly subagentId;
|
|
58
60
|
private readonly sessionGrantManager;
|
|
59
61
|
private readonly traceWriter;
|
|
60
62
|
private readonly readOnlyBash;
|
|
@@ -74,6 +76,7 @@ export declare class SessionToolDispatcher implements ToolDispatcher {
|
|
|
74
76
|
setResolveBase(newCwd: string): void;
|
|
75
77
|
get toolDefs(): readonly AnthropicToolDef[];
|
|
76
78
|
private checkReadOnlyBash;
|
|
79
|
+
private emitPreToolUseBlock;
|
|
77
80
|
private checkRepeatCircuitBreaker;
|
|
78
81
|
private observeSuspectedLoop;
|
|
79
82
|
private recordForkReadDenial;
|
|
@@ -87,6 +87,7 @@ export declare const HookDecisionPayloadSchema: z.ZodObject<{
|
|
|
87
87
|
decision: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"block">, z.ZodLiteral<"approve">]>>;
|
|
88
88
|
reason: z.ZodOptional<z.ZodString>;
|
|
89
89
|
blockedTool: z.ZodOptional<z.ZodString>;
|
|
90
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
90
91
|
injectedContextBytes: z.ZodOptional<z.ZodNumber>;
|
|
91
92
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
92
93
|
approvalOutcome: z.ZodOptional<z.ZodEnum<{
|
|
@@ -590,6 +591,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
590
591
|
decision: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"block">, z.ZodLiteral<"approve">]>>;
|
|
591
592
|
reason: z.ZodOptional<z.ZodString>;
|
|
592
593
|
blockedTool: z.ZodOptional<z.ZodString>;
|
|
594
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
593
595
|
injectedContextBytes: z.ZodOptional<z.ZodNumber>;
|
|
594
596
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
595
597
|
approvalOutcome: z.ZodOptional<z.ZodEnum<{
|
|
@@ -904,6 +906,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
904
906
|
decision: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"block">, z.ZodLiteral<"approve">]>>;
|
|
905
907
|
reason: z.ZodOptional<z.ZodString>;
|
|
906
908
|
blockedTool: z.ZodOptional<z.ZodString>;
|
|
909
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
907
910
|
injectedContextBytes: z.ZodOptional<z.ZodNumber>;
|
|
908
911
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
909
912
|
approvalOutcome: z.ZodOptional<z.ZodEnum<{
|