agent-afk 5.85.6 → 5.85.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/subagent/stream-cut-retry.d.ts +16 -0
- package/dist/agent/tool-category.d.ts +1 -0
- package/dist/agent/tools/subagent/child-config.d.ts +1 -0
- package/dist/agent/tools/subagent/retry-safety.d.ts +11 -0
- package/dist/agent/tools/subagent-executor.d.ts +2 -0
- package/dist/cli/_lib/child-activity-select.d.ts +1 -1
- package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +2 -1
- package/dist/cli.mjs +508 -508
- package/dist/index.mjs +164 -164
- package/dist/telegram.mjs +225 -225
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ToolResult } from '../tools/types.js';
|
|
2
|
+
export declare const STREAM_CUT_MAX_REDISPATCH = 1;
|
|
3
|
+
export declare const STREAM_CUT_REDISPATCH_DELAY_MS = 1000;
|
|
4
|
+
export declare function isZeroOutputStreamCut(result: ToolResult): boolean;
|
|
5
|
+
export interface StreamCutProbe {
|
|
6
|
+
sideEffectFree: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface StreamCutRetryOptions {
|
|
9
|
+
dispatch: (attempt: number) => Promise<ToolResult>;
|
|
10
|
+
signal: AbortSignal;
|
|
11
|
+
maxRedispatch?: number;
|
|
12
|
+
delayMs?: number;
|
|
13
|
+
canRedispatch?: () => boolean;
|
|
14
|
+
onRedispatch?: (attempt: number) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function runWithStreamCutRetry(opts: StreamCutRetryOptions): Promise<ToolResult>;
|
|
@@ -5,5 +5,6 @@ export declare const SKILL_TOOLS: Set<string>;
|
|
|
5
5
|
export declare const DAG_TOOLS: Set<string>;
|
|
6
6
|
export declare const NESTING_TOOLS: Set<string>;
|
|
7
7
|
export declare const READ_ONLY_PHASE_TOOLS: readonly string[];
|
|
8
|
+
export declare const STREAM_CUT_RETRY_SAFE_TOOLS: readonly string[];
|
|
8
9
|
export declare function categorizeTool(name: string): ToolCategory;
|
|
9
10
|
export declare function dispatchTagForCategory(cat: ToolCategory): string | undefined;
|
|
@@ -40,5 +40,6 @@ export interface BuildChildConfigResult {
|
|
|
40
40
|
childParentSession: ChildParentSession | undefined;
|
|
41
41
|
childManager: SubagentManager | undefined;
|
|
42
42
|
childWriteCapable: boolean;
|
|
43
|
+
childSideEffectFree: boolean;
|
|
43
44
|
}
|
|
44
45
|
export declare function buildChildConfig(args: BuildChildConfigArgs): BuildChildConfigResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface NestedAgentSurface {
|
|
2
|
+
allowedTools: readonly string[] | undefined;
|
|
3
|
+
bashReadOnly: boolean;
|
|
4
|
+
nestedAgentTypes: readonly string[] | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface ReplaySafetyInput {
|
|
7
|
+
effectiveAllowedTools: readonly string[] | undefined;
|
|
8
|
+
nestedAgentTypes: readonly string[] | undefined;
|
|
9
|
+
resolveNestedAgent?: (name: string) => NestedAgentSurface | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function isChildReplaySafe(input: ReplaySafetyInput): boolean;
|
|
@@ -54,6 +54,7 @@ export declare class SubagentExecutor implements SubagentControl {
|
|
|
54
54
|
private readonly activeForegroundHandles;
|
|
55
55
|
hasPromotableForeground(): boolean;
|
|
56
56
|
hasActiveForeground(): boolean;
|
|
57
|
+
private cancelGeneration;
|
|
57
58
|
cancelActiveForeground(): Promise<number>;
|
|
58
59
|
promoteActiveForeground(): Promise<PromotedSubagentInfo[]>;
|
|
59
60
|
getSubagentsLite(): {
|
|
@@ -69,4 +70,5 @@ export declare class SubagentExecutor implements SubagentControl {
|
|
|
69
70
|
}>;
|
|
70
71
|
};
|
|
71
72
|
execute(call: ToolCall): Promise<ToolResult>;
|
|
73
|
+
private executeOnce;
|
|
72
74
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type SourceState } from './stream-renderer-source.js';
|
|
2
2
|
import type { ProgressEvent } from '../../agent/types.js';
|
|
3
3
|
export declare const STICKY_HOLD_MS = 3000;
|
|
4
|
-
export declare const CHILD_QUIET_MS =
|
|
4
|
+
export declare const CHILD_QUIET_MS = 8000;
|
|
5
5
|
export interface ChildActivity {
|
|
6
6
|
sourceId: string;
|
|
7
7
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TerminalCompositor } from '../terminal-compositor.js';
|
|
2
2
|
import { OverlayComposer } from './overlay-composer.js';
|
|
3
3
|
import { createStageTracker } from '../commands/interactive/loop-stage.js';
|
|
4
|
-
import type
|
|
4
|
+
import { type SourceState } from './stream-renderer-source.js';
|
|
5
5
|
import { type ChildActivityTracker } from './child-activity-select.js';
|
|
6
6
|
import type { ToolLane } from '../commands/interactive/tool-lane.js';
|
|
7
7
|
import type { ThinkingLane } from '../commands/interactive/thinking-lane.js';
|
|
@@ -35,3 +35,4 @@ export declare function registerOverlaySlots(overlayComposer: OverlayComposer, c
|
|
|
35
35
|
export declare function formatInterruptAffordance(interrupting: boolean): string;
|
|
36
36
|
export declare function subscribeToResize(overlayComposer: OverlayComposer, disposed: boolean): () => void;
|
|
37
37
|
export declare function checkPauseAnnotations(ctx: LifecycleContext): boolean;
|
|
38
|
+
export declare function checkProgressBannerStaleness(ctx: LifecycleContext): boolean;
|