agent-afk 5.16.0 → 5.18.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/subagent/handle.d.ts +9 -2
- package/dist/cli/commands/interactive/progress-banner.d.ts +2 -1
- package/dist/cli.mjs +446 -440
- package/dist/index.mjs +192 -192
- package/dist/telegram.mjs +232 -226
- package/package.json +1 -1
|
@@ -13,7 +13,10 @@ export interface SubagentHandle<T = unknown> {
|
|
|
13
13
|
runToResult(prompt: string): Promise<SubagentResult<T>>;
|
|
14
14
|
runInBackground(prompt: string, onResult?: (result: SubagentResult<T>) => void, onProgress?: (event: OutputEvent) => void): void;
|
|
15
15
|
cancel(): Promise<void>;
|
|
16
|
-
teardown(
|
|
16
|
+
teardown(options?: {
|
|
17
|
+
deferInjectContextToCaller?: boolean;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
getLastStopInjectContext(): string | undefined;
|
|
17
20
|
}
|
|
18
21
|
export declare class SubagentHandleImpl<T> implements SubagentHandle<T> {
|
|
19
22
|
readonly id: string;
|
|
@@ -35,6 +38,7 @@ export declare class SubagentHandleImpl<T> implements SubagentHandle<T> {
|
|
|
35
38
|
private lastDurationMs;
|
|
36
39
|
private latestTerminalStatus;
|
|
37
40
|
private stopDispatched;
|
|
41
|
+
private lastStopInjectContext;
|
|
38
42
|
private readonly progressSink;
|
|
39
43
|
private parentId;
|
|
40
44
|
private currentTrace;
|
|
@@ -46,6 +50,9 @@ export declare class SubagentHandleImpl<T> implements SubagentHandle<T> {
|
|
|
46
50
|
runToResult(prompt: string, sinkOverride?: SubagentProgressSink): Promise<SubagentResult<T>>;
|
|
47
51
|
runInBackground(prompt: string, onResult?: (result: SubagentResult<T>) => void, onProgress?: (event: OutputEvent) => void): void;
|
|
48
52
|
cancel(): Promise<void>;
|
|
49
|
-
teardown(
|
|
53
|
+
teardown(options?: {
|
|
54
|
+
deferInjectContextToCaller?: boolean;
|
|
55
|
+
}): Promise<void>;
|
|
56
|
+
getLastStopInjectContext(): string | undefined;
|
|
50
57
|
private dispatchStopAndRelease;
|
|
51
58
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SubagentCompleteInfo } from '../../../agent/default-hook-registry.js';
|
|
2
2
|
import type { ProgressEvent } from '../../../agent/types.js';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function deriveProgressActivity(thinkingBuffer: string, columns?: number): string | undefined;
|
|
4
|
+
export declare function formatProgressBanner(event: ProgressEvent, columns?: number, activity?: string): string[];
|
|
4
5
|
export declare function formatProgressSummary(event: ProgressEvent, columns?: number): string;
|
|
5
6
|
export declare function formatSubagentCompletion(info: SubagentCompleteInfo, columns?: number): string;
|