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.
@@ -12,4 +12,5 @@ export interface BackgroundJob {
12
12
  readonly result?: SubagentResult;
13
13
  readonly endedAt?: number;
14
14
  readonly parentSessionId?: string;
15
+ readonly lastActivityAt?: number;
15
16
  }
@@ -0,0 +1,2 @@
1
+ import type { AnthropicToolDef } from './types.js';
2
+ export declare const getBackgroundJobHealthTool: AnthropicToolDef;
@@ -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;