agent-afk 5.242.0 → 5.242.1
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/background-registry.types.d.ts +1 -0
- package/dist/agent/tools/schemas.background-health.d.ts +2 -0
- package/dist/agent/tools/schemas.orchestration.d.ts +1 -0
- package/dist/agent/tools/subagent/background-health.d.ts +3 -0
- package/dist/agent/tools/subagent-executor.d.ts +1 -0
- package/dist/agent/tools/subagent-executor.lite-snapshot.d.ts +2 -0
- package/dist/cli.mjs +243 -243
- package/dist/index.mjs +110 -110
- package/dist/telegram.mjs +128 -128
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { cancelBackgroundJobTool } from './schemas.background-cancel.js';
|
|
2
2
|
export { patchApplyTool } from './schemas.patch-apply.js';
|
|
3
3
|
export { sendMessageToAgentTool } from './schemas.background-steer.js';
|
|
4
|
+
export { getBackgroundJobHealthTool } from './schemas.background-health.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { BackgroundAgentRegistry } from '../../background-registry.js';
|
|
2
|
+
import type { ToolCall, ToolResult } from '../types.js';
|
|
3
|
+
export declare function getBackgroundJobHealth(registry: BackgroundAgentRegistry | undefined, call: ToolCall, callerSessionId?: string): ToolResult;
|
|
@@ -27,6 +27,7 @@ export declare class SubagentExecutor implements SubagentControl {
|
|
|
27
27
|
hasPromotableForeground(): boolean;
|
|
28
28
|
cancelBackgroundJob(call: ToolCall): Promise<ToolResult>;
|
|
29
29
|
sendMessageToAgent(call: ToolCall): Promise<ToolResult>;
|
|
30
|
+
getBackgroundJobHealth(call: ToolCall): ToolResult;
|
|
30
31
|
hasActiveForeground(): boolean;
|
|
31
32
|
private cancelGeneration;
|
|
32
33
|
cancelActiveForeground(): Promise<number>;
|
|
@@ -11,6 +11,8 @@ export interface SubagentsLite {
|
|
|
11
11
|
startedAt: string;
|
|
12
12
|
label: string | null;
|
|
13
13
|
recentActivity?: string;
|
|
14
|
+
lastActivityAt?: string;
|
|
15
|
+
idleSinceMs?: number;
|
|
14
16
|
}>;
|
|
15
17
|
}
|
|
16
18
|
export declare function buildSubagentsLite(subagentManager: SubagentManager, backgroundRegistry: BackgroundAgentRegistry | undefined, callerSessionId?: string): SubagentsLite;
|