agent-afk 5.258.0 → 5.258.2
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/hooks/config-loader.d.ts +2 -2
- package/dist/agent/hooks/matcher.d.ts +2 -0
- package/dist/agent/tools/schemas.agent-tools.d.ts +4 -0
- package/dist/agent/tools/schemas.bash.d.ts +2 -0
- package/dist/agent/tools/schemas.browser-tools.d.ts +6 -0
- package/dist/agent/tools/schemas.d.ts +8 -30
- package/dist/agent/tools/schemas.file-tools.d.ts +9 -0
- package/dist/agent/tools/schemas.interaction-tools.d.ts +4 -0
- package/dist/agent/tools/schemas.web-tools.d.ts +5 -0
- package/dist/agent/tools/schemas.worktree-tools.d.ts +5 -0
- package/dist/cli.mjs +278 -278
- package/dist/index.mjs +121 -121
- package/dist/telegram.mjs +141 -141
- package/dist/utils/resolve-shell.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { HarnessHookEvent } from '../hooks.js';
|
|
2
|
+
export { compileMatcher, CLAUDE_CODE_ALIASES } from './matcher.js';
|
|
2
3
|
export interface RawCommandHook {
|
|
3
4
|
type: 'command';
|
|
4
5
|
command: string;
|
|
5
6
|
timeout_ms?: number;
|
|
7
|
+
timeout?: number;
|
|
6
8
|
}
|
|
7
9
|
export type RawHook = RawCommandHook;
|
|
8
10
|
export interface RawMatcherGroup {
|
|
@@ -30,7 +32,6 @@ export interface LoadedHooksConfig {
|
|
|
30
32
|
sources: string[];
|
|
31
33
|
warnings: string[];
|
|
32
34
|
}
|
|
33
|
-
export declare function compileMatcher(matcher: string | undefined): (toolName: string) => boolean;
|
|
34
35
|
interface SingleFileResult {
|
|
35
36
|
hooks: ResolvedHooksConfig;
|
|
36
37
|
enableShellHooks: boolean;
|
|
@@ -49,4 +50,3 @@ export interface LoadHooksConfigOptions {
|
|
|
49
50
|
pluginsDir?: string;
|
|
50
51
|
}
|
|
51
52
|
export declare function loadHooksConfig(opts?: LoadHooksConfigOptions): LoadedHooksConfig;
|
|
52
|
-
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AnthropicToolDef } from './types.js';
|
|
2
|
+
export declare const browserOpenTool: AnthropicToolDef;
|
|
3
|
+
export declare const browserObserveTool: AnthropicToolDef;
|
|
4
|
+
export declare const browserActTool: AnthropicToolDef;
|
|
5
|
+
export declare const browserScreenshotTool: AnthropicToolDef;
|
|
6
|
+
export declare const browserCloseTool: AnthropicToolDef;
|
|
@@ -1,36 +1,14 @@
|
|
|
1
1
|
import type { AnthropicToolDef } from './types.js';
|
|
2
|
+
export { readFileTool, viewImageTool, extractDocumentTool, writeFileTool, editFileTool, globTool, grepTool, listDirectoryTool, } from './schemas.file-tools.js';
|
|
3
|
+
export { bashTool } from './schemas.bash.js';
|
|
4
|
+
export { sendTelegramTool, webScrapeTool, webRequestTool, imageGenerateTool, } from './schemas.web-tools.js';
|
|
5
|
+
export { createScheduleTool, updateScheduleTool, listSchedulesTool, getScheduleHistoryTool, cancelScheduleTool, } from './schemas.schedule.js';
|
|
6
|
+
export { agentTool, skillTool, composeTool } from './schemas.agent-tools.js';
|
|
7
|
+
export { worktreeTool, terminalFontSizeTool, configGetTool, configSetTool, } from './schemas.worktree-tools.js';
|
|
8
|
+
export { askQuestionTool, clipboardWriteTool, clipboardReadTool, } from './schemas.interaction-tools.js';
|
|
9
|
+
export { browserOpenTool, browserObserveTool, browserActTool, browserScreenshotTool, browserCloseTool, } from './schemas.browser-tools.js';
|
|
2
10
|
export { waitForTool } from './schemas.wait-for.js';
|
|
3
11
|
export { jsonQueryTool } from './schemas.json-query.js';
|
|
4
|
-
export declare const bashTool: AnthropicToolDef;
|
|
5
|
-
export declare const readFileTool: AnthropicToolDef;
|
|
6
|
-
export declare const viewImageTool: AnthropicToolDef;
|
|
7
|
-
export declare const extractDocumentTool: AnthropicToolDef;
|
|
8
|
-
export declare const writeFileTool: AnthropicToolDef;
|
|
9
|
-
export declare const editFileTool: AnthropicToolDef;
|
|
10
|
-
export declare const globTool: AnthropicToolDef;
|
|
11
|
-
export declare const grepTool: AnthropicToolDef;
|
|
12
|
-
export declare const listDirectoryTool: AnthropicToolDef;
|
|
13
|
-
export declare const sendTelegramTool: AnthropicToolDef;
|
|
14
|
-
export declare const webScrapeTool: AnthropicToolDef;
|
|
15
|
-
export declare const webRequestTool: AnthropicToolDef;
|
|
16
|
-
export declare const imageGenerateTool: AnthropicToolDef;
|
|
17
|
-
export declare const agentTool: AnthropicToolDef;
|
|
18
|
-
export declare const skillTool: AnthropicToolDef;
|
|
19
|
-
export declare const composeTool: AnthropicToolDef;
|
|
20
|
-
import { createScheduleTool, updateScheduleTool, listSchedulesTool, getScheduleHistoryTool, cancelScheduleTool } from './schemas.schedule.js';
|
|
21
|
-
export { createScheduleTool, updateScheduleTool, listSchedulesTool, getScheduleHistoryTool, cancelScheduleTool, };
|
|
22
|
-
export declare const worktreeTool: AnthropicToolDef;
|
|
23
|
-
export declare const terminalFontSizeTool: AnthropicToolDef;
|
|
24
|
-
export declare const configGetTool: AnthropicToolDef;
|
|
25
|
-
export declare const configSetTool: AnthropicToolDef;
|
|
26
|
-
export declare const askQuestionTool: AnthropicToolDef;
|
|
27
|
-
export declare const browserOpenTool: AnthropicToolDef;
|
|
28
|
-
export declare const browserObserveTool: AnthropicToolDef;
|
|
29
|
-
export declare const browserActTool: AnthropicToolDef;
|
|
30
|
-
export declare const browserScreenshotTool: AnthropicToolDef;
|
|
31
|
-
export declare const browserCloseTool: AnthropicToolDef;
|
|
32
|
-
export declare const clipboardWriteTool: AnthropicToolDef;
|
|
33
|
-
export declare const clipboardReadTool: AnthropicToolDef;
|
|
34
12
|
export declare const builtinToolSchemas: readonly AnthropicToolDef[];
|
|
35
13
|
export declare const BUILTIN_TOOL_NAMES: string[];
|
|
36
14
|
export declare const ALL_TOOL_SCHEMAS: readonly AnthropicToolDef[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AnthropicToolDef } from './types.js';
|
|
2
|
+
export declare const readFileTool: AnthropicToolDef;
|
|
3
|
+
export declare const viewImageTool: AnthropicToolDef;
|
|
4
|
+
export declare const extractDocumentTool: AnthropicToolDef;
|
|
5
|
+
export declare const writeFileTool: AnthropicToolDef;
|
|
6
|
+
export declare const editFileTool: AnthropicToolDef;
|
|
7
|
+
export declare const globTool: AnthropicToolDef;
|
|
8
|
+
export declare const grepTool: AnthropicToolDef;
|
|
9
|
+
export declare const listDirectoryTool: AnthropicToolDef;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AnthropicToolDef } from './types.js';
|
|
2
|
+
export declare const sendTelegramTool: AnthropicToolDef;
|
|
3
|
+
export declare const webScrapeTool: AnthropicToolDef;
|
|
4
|
+
export declare const webRequestTool: AnthropicToolDef;
|
|
5
|
+
export declare const imageGenerateTool: AnthropicToolDef;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AnthropicToolDef } from './types.js';
|
|
2
|
+
export declare const worktreeTool: AnthropicToolDef;
|
|
3
|
+
export declare const terminalFontSizeTool: AnthropicToolDef;
|
|
4
|
+
export declare const configGetTool: AnthropicToolDef;
|
|
5
|
+
export declare const configSetTool: AnthropicToolDef;
|