agent-afk 5.59.2 → 5.59.3
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 +4 -0
- package/dist/agent/types/config-types.d.ts +1 -0
- package/dist/cli.mjs +419 -421
- package/dist/index.mjs +149 -151
- package/dist/telegram.mjs +189 -191
- package/package.json +1 -1
|
@@ -35,6 +35,7 @@ export interface SessionToolDispatcherOptions {
|
|
|
35
35
|
sessionGrantManager?: GrantManager;
|
|
36
36
|
traceWriter?: TraceWriter;
|
|
37
37
|
readOnlyBash?: boolean;
|
|
38
|
+
maxOutputBytes?: number;
|
|
38
39
|
}
|
|
39
40
|
export declare class SessionToolDispatcher implements ToolDispatcher {
|
|
40
41
|
private readonly handlers;
|
|
@@ -57,6 +58,7 @@ export declare class SessionToolDispatcher implements ToolDispatcher {
|
|
|
57
58
|
private readonly sessionGrantManager;
|
|
58
59
|
private readonly traceWriter;
|
|
59
60
|
private readonly readOnlyBash;
|
|
61
|
+
private readonly maxOutputBytes;
|
|
60
62
|
private repeatBreaker;
|
|
61
63
|
private denialBreaker;
|
|
62
64
|
private readonly grantManager;
|
|
@@ -78,6 +80,8 @@ export declare class SessionToolDispatcher implements ToolDispatcher {
|
|
|
78
80
|
execute(call: ToolCall): Promise<ToolResult>;
|
|
79
81
|
executeBatch(calls: ToolCall[]): Promise<ToolResult[]>;
|
|
80
82
|
private executeCore;
|
|
83
|
+
private applyOutputCap;
|
|
84
|
+
private executeCoreInner;
|
|
81
85
|
private executeCompose;
|
|
82
86
|
private firePostToolUse;
|
|
83
87
|
private firePostToolUseFailure;
|