agent-afk 5.242.1 → 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.
- package/dist/agent/tools/handlers/image-generate.chatgpt.d.ts +17 -0
- package/dist/agent/tools/handlers/image-generate.d.ts +3 -0
- package/dist/agent/tools/handlers/index.d.ts +2 -1
- package/dist/agent/tools/schemas.d.ts +1 -0
- package/dist/cli.mjs +353 -342
- package/dist/config/env.d.ts +19 -0
- package/dist/index.mjs +150 -139
- package/dist/telegram.mjs +191 -180
- package/package.json +1 -1
|
@@ -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
|
+
}>;
|
|
@@ -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, };
|
|
@@ -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;
|