agent-afk 5.242.0 → 5.243.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.
@@ -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,17 @@
1
+ export interface ChatGptImageResult {
2
+ b64_json: string;
3
+ revised_prompt: string | null;
4
+ }
5
+ export interface ChatGptImageRequest {
6
+ prompt: string;
7
+ size: string;
8
+ quality: string;
9
+ output_format: string;
10
+ apiKey: string;
11
+ accountId: string;
12
+ signal: AbortSignal;
13
+ fetchFn?: typeof globalThis.fetch;
14
+ }
15
+ export declare function generateImageViaChatGpt(req: ChatGptImageRequest): Promise<ChatGptImageResult | {
16
+ error: string;
17
+ }>;
@@ -0,0 +1,3 @@
1
+ import type { ToolHandler } from '../types.js';
2
+ export declare function createImageGenerateHandler(fetchFn?: typeof globalThis.fetch): ToolHandler;
3
+ export declare const imageGenerateHandler: ToolHandler;
@@ -10,6 +10,7 @@ import { listDirectoryHandler } from './list-directory.js';
10
10
  import { sendTelegramHandler } from './send-telegram.js';
11
11
  import { webScrapeHandler } from './web-scrape.js';
12
12
  import { webRequestHandler } from './web-request.js';
13
+ import { imageGenerateHandler } from './image-generate.js';
13
14
  import { createScheduleHandler, updateScheduleHandler, listSchedulesHandler, getScheduleHistoryHandler, cancelScheduleHandler } from './schedules.js';
14
15
  import { terminalFontSizeHandler } from './terminal-font-size.js';
15
16
  import { createWorktreeHandler } from './worktree.js';
@@ -27,4 +28,4 @@ import { getFacetHandler } from './get-facet.js';
27
28
  import { jsonQueryHandler, createJsonQueryHandler } from './json-query.js';
28
29
  import { clipboardWriteHandler, clipboardReadHandler, createClipboardWriteHandler, createClipboardReadHandler } from './clipboard.js';
29
30
  export declare function createBuiltinHandlers(permissionMode?: string, cwd?: string): Map<string, ToolHandler>;
30
- export { bashHandler, readFileHandler, extractDocumentHandler, writeFileHandler, editFileHandler, globHandler, grepHandler, listDirectoryHandler, sendTelegramHandler, webScrapeHandler, webRequestHandler, createScheduleHandler, updateScheduleHandler, listSchedulesHandler, getScheduleHistoryHandler, cancelScheduleHandler, terminalFontSizeHandler, createWorktreeHandler, configGetHandler, configSetHandler, askQuestionHandler, waitForHandler, patchApplyHandler, browserOpenHandler, browserObserveHandler, browserActHandler, browserScreenshotHandler, browserCloseHandler, testRunHandler, getFacetHandler, jsonQueryHandler, createJsonQueryHandler, clipboardWriteHandler, clipboardReadHandler, createClipboardWriteHandler, createClipboardReadHandler, };
31
+ export { bashHandler, readFileHandler, extractDocumentHandler, writeFileHandler, editFileHandler, globHandler, grepHandler, listDirectoryHandler, sendTelegramHandler, webScrapeHandler, webRequestHandler, imageGenerateHandler, createScheduleHandler, updateScheduleHandler, listSchedulesHandler, getScheduleHistoryHandler, cancelScheduleHandler, terminalFontSizeHandler, createWorktreeHandler, configGetHandler, configSetHandler, askQuestionHandler, waitForHandler, patchApplyHandler, browserOpenHandler, browserObserveHandler, browserActHandler, browserScreenshotHandler, browserCloseHandler, testRunHandler, getFacetHandler, jsonQueryHandler, createJsonQueryHandler, clipboardWriteHandler, clipboardReadHandler, createClipboardWriteHandler, createClipboardReadHandler, };
@@ -0,0 +1,2 @@
1
+ import type { AnthropicToolDef } from './types.js';
2
+ export declare const getBackgroundJobHealthTool: AnthropicToolDef;
@@ -12,6 +12,7 @@ export declare const listDirectoryTool: AnthropicToolDef;
12
12
  export declare const sendTelegramTool: AnthropicToolDef;
13
13
  export declare const webScrapeTool: AnthropicToolDef;
14
14
  export declare const webRequestTool: AnthropicToolDef;
15
+ export declare const imageGenerateTool: AnthropicToolDef;
15
16
  export declare const agentTool: AnthropicToolDef;
16
17
  export declare const skillTool: AnthropicToolDef;
17
18
  export declare const composeTool: 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;