@ddlqhd/agent-sdk 0.1.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/README.md +53 -0
- package/dist/chunk-5QMA2YBY.cjs +2880 -0
- package/dist/chunk-5QMA2YBY.cjs.map +1 -0
- package/dist/chunk-5Y56A64C.cjs +5 -0
- package/dist/chunk-5Y56A64C.cjs.map +1 -0
- package/dist/chunk-A3S3AGE3.js +3 -0
- package/dist/chunk-A3S3AGE3.js.map +1 -0
- package/dist/chunk-CNSGZVRN.cjs +152 -0
- package/dist/chunk-CNSGZVRN.cjs.map +1 -0
- package/dist/chunk-JF5AJQMU.cjs +2788 -0
- package/dist/chunk-JF5AJQMU.cjs.map +1 -0
- package/dist/chunk-NDSL7NPN.js +807 -0
- package/dist/chunk-NDSL7NPN.js.map +1 -0
- package/dist/chunk-OHXW2YM6.js +2708 -0
- package/dist/chunk-OHXW2YM6.js.map +1 -0
- package/dist/chunk-Q3SOMX26.js +2854 -0
- package/dist/chunk-Q3SOMX26.js.map +1 -0
- package/dist/chunk-WH3APNQ5.js +147 -0
- package/dist/chunk-WH3APNQ5.js.map +1 -0
- package/dist/chunk-X35MHWXE.cjs +817 -0
- package/dist/chunk-X35MHWXE.cjs.map +1 -0
- package/dist/cli/index.cjs +926 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +24 -0
- package/dist/cli/index.d.ts +24 -0
- package/dist/cli/index.js +916 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index-DPsZ1zat.d.ts +447 -0
- package/dist/index-RTPmFjMp.d.cts +447 -0
- package/dist/index.cjs +508 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +664 -0
- package/dist/index.d.ts +664 -0
- package/dist/index.js +204 -0
- package/dist/index.js.map +1 -0
- package/dist/models/index.cjs +62 -0
- package/dist/models/index.cjs.map +1 -0
- package/dist/models/index.d.cts +165 -0
- package/dist/models/index.d.ts +165 -0
- package/dist/models/index.js +5 -0
- package/dist/models/index.js.map +1 -0
- package/dist/tools/index.cjs +207 -0
- package/dist/tools/index.cjs.map +1 -0
- package/dist/tools/index.d.cts +108 -0
- package/dist/tools/index.d.ts +108 -0
- package/dist/tools/index.js +6 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/types-C0aX_Qdp.d.cts +917 -0
- package/dist/types-C0aX_Qdp.d.ts +917 -0
- package/package.json +80 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a7 as ToolExecutionPolicy, B as HookManager, c as ToolDefinition, T as ToolResult, ac as ToolSchema, X as SkillDefinition, W as SkillConfig, E as HooksSettings, a6 as ToolExecutionContext, w as CreateAskUserQuestionToolOptions } from './types-C0aX_Qdp.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Tool 注册中心配置
|
|
6
|
+
*/
|
|
7
|
+
interface ToolRegistryConfig {
|
|
8
|
+
/** 用户基础路径,用于存储超长输出 */
|
|
9
|
+
userBasePath?: string;
|
|
10
|
+
/** 是否启用输出处理(默认 true) */
|
|
11
|
+
enableOutputHandler?: boolean;
|
|
12
|
+
/** 执行前校验(disallowed / allowedTools / canUseTool);未设置则不限制 */
|
|
13
|
+
executionPolicy?: ToolExecutionPolicy;
|
|
14
|
+
}
|
|
15
|
+
/** 工具执行选项(Hook 上下文等) */
|
|
16
|
+
interface ToolExecuteOptions {
|
|
17
|
+
toolCallId?: string;
|
|
18
|
+
projectDir?: string;
|
|
19
|
+
agentDepth?: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Tool 注册中心
|
|
23
|
+
*/
|
|
24
|
+
declare class ToolRegistry {
|
|
25
|
+
private tools;
|
|
26
|
+
private categories;
|
|
27
|
+
private outputHandler;
|
|
28
|
+
private hookManager;
|
|
29
|
+
private readonly executionPolicy;
|
|
30
|
+
constructor(config?: ToolRegistryConfig);
|
|
31
|
+
/**
|
|
32
|
+
* 工具名是否在 {@link ToolExecutionPolicy.disallowedTools} 中(无策略时为 false)。
|
|
33
|
+
*/
|
|
34
|
+
isDisallowed(name: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* `allowedTools` 未设置时视为全部自动批准;已设置时仅列表内自动批准。
|
|
37
|
+
*/
|
|
38
|
+
private isAutoApproved;
|
|
39
|
+
private checkExecutionPolicy;
|
|
40
|
+
setHookManager(manager: HookManager | null): void;
|
|
41
|
+
getHookManager(): HookManager | null;
|
|
42
|
+
private buildHookContext;
|
|
43
|
+
/**
|
|
44
|
+
* 注册工具
|
|
45
|
+
*/
|
|
46
|
+
register(tool: ToolDefinition): void;
|
|
47
|
+
/**
|
|
48
|
+
* 注册多个工具
|
|
49
|
+
*/
|
|
50
|
+
registerMany(tools: ToolDefinition[]): void;
|
|
51
|
+
/**
|
|
52
|
+
* 注销工具
|
|
53
|
+
*/
|
|
54
|
+
unregister(name: string): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 获取工具定义
|
|
57
|
+
*/
|
|
58
|
+
get(name: string): ToolDefinition | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* 获取所有工具定义
|
|
61
|
+
*/
|
|
62
|
+
getAll(): ToolDefinition[];
|
|
63
|
+
/**
|
|
64
|
+
* 获取工具名称列表
|
|
65
|
+
*/
|
|
66
|
+
getNames(): string[];
|
|
67
|
+
/**
|
|
68
|
+
* 检查工具是否存在
|
|
69
|
+
*/
|
|
70
|
+
has(name: string): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* 获取工具数量
|
|
73
|
+
*/
|
|
74
|
+
get size(): number;
|
|
75
|
+
/**
|
|
76
|
+
* 执行工具
|
|
77
|
+
*/
|
|
78
|
+
execute(name: string, args: unknown, options?: ToolExecuteOptions): Promise<ToolResult>;
|
|
79
|
+
/**
|
|
80
|
+
* 获取工具 Schema (用于模型调用)
|
|
81
|
+
*/
|
|
82
|
+
toSchema(): ToolSchema[];
|
|
83
|
+
/**
|
|
84
|
+
* 清空所有工具
|
|
85
|
+
*/
|
|
86
|
+
clear(): void;
|
|
87
|
+
/**
|
|
88
|
+
* 按类别注册工具
|
|
89
|
+
*/
|
|
90
|
+
registerWithCategory(category: string, tool: ToolDefinition): void;
|
|
91
|
+
/**
|
|
92
|
+
* 获取类别下的工具
|
|
93
|
+
*/
|
|
94
|
+
getByCategory(category: string): ToolDefinition[];
|
|
95
|
+
/**
|
|
96
|
+
* 获取所有类别
|
|
97
|
+
*/
|
|
98
|
+
getCategories(): string[];
|
|
99
|
+
/**
|
|
100
|
+
* 过滤工具
|
|
101
|
+
*/
|
|
102
|
+
filter(predicate: (tool: ToolDefinition) => boolean): ToolDefinition[];
|
|
103
|
+
/**
|
|
104
|
+
* 搜索工具
|
|
105
|
+
*/
|
|
106
|
+
search(query: string): ToolDefinition[];
|
|
107
|
+
/**
|
|
108
|
+
* 导出工具配置
|
|
109
|
+
*/
|
|
110
|
+
export(): Array<{
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
parameters: unknown;
|
|
114
|
+
}>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 创建工具定义
|
|
118
|
+
*/
|
|
119
|
+
declare function createTool(config: {
|
|
120
|
+
name: string;
|
|
121
|
+
description: string;
|
|
122
|
+
parameters: z.ZodSchema;
|
|
123
|
+
handler: ToolDefinition['handler'];
|
|
124
|
+
isDangerous?: boolean;
|
|
125
|
+
category?: string;
|
|
126
|
+
}): ToolDefinition;
|
|
127
|
+
declare function getGlobalRegistry(): ToolRegistry;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Skill 加载器配置
|
|
131
|
+
*/
|
|
132
|
+
interface SkillLoaderConfig {
|
|
133
|
+
/** 工作目录 */
|
|
134
|
+
cwd?: string;
|
|
135
|
+
/** 用户级基础路径 */
|
|
136
|
+
userBasePath?: string;
|
|
137
|
+
/** 文件过滤 */
|
|
138
|
+
filter?: (path: string) => boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Skill 加载器
|
|
142
|
+
* Skill 只是一个指导书,不加载工具脚本
|
|
143
|
+
*/
|
|
144
|
+
declare class SkillLoader {
|
|
145
|
+
private config;
|
|
146
|
+
constructor(config?: SkillLoaderConfig);
|
|
147
|
+
/**
|
|
148
|
+
* 加载单个 Skill
|
|
149
|
+
*/
|
|
150
|
+
load(skillPath: string): Promise<SkillDefinition>;
|
|
151
|
+
/**
|
|
152
|
+
* 从文件加载 Skill
|
|
153
|
+
*/
|
|
154
|
+
private loadFromFile;
|
|
155
|
+
/**
|
|
156
|
+
* 从目录加载 Skill
|
|
157
|
+
*/
|
|
158
|
+
private loadFromDirectory;
|
|
159
|
+
/**
|
|
160
|
+
* 加载目录下的所有 Skills
|
|
161
|
+
*/
|
|
162
|
+
loadAll(dirPath: string): Promise<SkillDefinition[]>;
|
|
163
|
+
/**
|
|
164
|
+
* 检查文件是否存在
|
|
165
|
+
*/
|
|
166
|
+
private hasFile;
|
|
167
|
+
/**
|
|
168
|
+
* 获取路径类型
|
|
169
|
+
*/
|
|
170
|
+
private getPathType;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* 创建 Skill 加载器
|
|
174
|
+
*/
|
|
175
|
+
declare function createSkillLoader(config?: SkillLoaderConfig): SkillLoader;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Skill 注册中心
|
|
179
|
+
* Skill 只是一个指导书,不提供工具
|
|
180
|
+
*/
|
|
181
|
+
declare class SkillRegistry {
|
|
182
|
+
private skills;
|
|
183
|
+
private loader;
|
|
184
|
+
private workspaceRoot;
|
|
185
|
+
private userBasePath;
|
|
186
|
+
private skillConfig?;
|
|
187
|
+
constructor(config?: SkillLoaderConfig & {
|
|
188
|
+
userBasePath?: string;
|
|
189
|
+
});
|
|
190
|
+
/**
|
|
191
|
+
* 注册 Skill
|
|
192
|
+
*/
|
|
193
|
+
register(skill: SkillDefinition): void;
|
|
194
|
+
/**
|
|
195
|
+
* 加载并注册 Skill
|
|
196
|
+
*/
|
|
197
|
+
load(path: string): Promise<void>;
|
|
198
|
+
/**
|
|
199
|
+
* 加载目录下的所有 Skills
|
|
200
|
+
*/
|
|
201
|
+
loadAll(dirPath: string): Promise<void>;
|
|
202
|
+
/**
|
|
203
|
+
* 注销 Skill
|
|
204
|
+
*/
|
|
205
|
+
unregister(name: string): boolean;
|
|
206
|
+
/**
|
|
207
|
+
* 获取 Skill
|
|
208
|
+
*/
|
|
209
|
+
get(name: string): SkillDefinition | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* 获取所有 Skill
|
|
212
|
+
*/
|
|
213
|
+
getAll(): SkillDefinition[];
|
|
214
|
+
/**
|
|
215
|
+
* 获取 Skill 名称列表
|
|
216
|
+
*/
|
|
217
|
+
getNames(): string[];
|
|
218
|
+
/**
|
|
219
|
+
* 检查 Skill 是否存在
|
|
220
|
+
*/
|
|
221
|
+
has(name: string): boolean;
|
|
222
|
+
/**
|
|
223
|
+
* 搜索 Skill
|
|
224
|
+
*/
|
|
225
|
+
search(query: string): SkillDefinition[];
|
|
226
|
+
/**
|
|
227
|
+
* 按标签过滤
|
|
228
|
+
*/
|
|
229
|
+
filterByTag(tag: string): SkillDefinition[];
|
|
230
|
+
/**
|
|
231
|
+
* 获取 Skill 数量
|
|
232
|
+
*/
|
|
233
|
+
get size(): number;
|
|
234
|
+
/**
|
|
235
|
+
* 清空所有 Skill
|
|
236
|
+
*/
|
|
237
|
+
clear(): void;
|
|
238
|
+
/**
|
|
239
|
+
* 导出 Skill 信息
|
|
240
|
+
*/
|
|
241
|
+
export(): Array<{
|
|
242
|
+
name: string;
|
|
243
|
+
description: string;
|
|
244
|
+
version?: string;
|
|
245
|
+
path: string;
|
|
246
|
+
}>;
|
|
247
|
+
/**
|
|
248
|
+
* 获取所有 Skill 的元数据列表(用于 System Prompt)
|
|
249
|
+
*/
|
|
250
|
+
getMetadataList(): Array<{
|
|
251
|
+
name: string;
|
|
252
|
+
description: string;
|
|
253
|
+
argumentHint?: string;
|
|
254
|
+
}>;
|
|
255
|
+
/**
|
|
256
|
+
* 获取用户可调用的 Skills
|
|
257
|
+
*/
|
|
258
|
+
getUserInvocableSkills(): Array<{
|
|
259
|
+
name: string;
|
|
260
|
+
description: string;
|
|
261
|
+
argumentHint?: string;
|
|
262
|
+
}>;
|
|
263
|
+
/**
|
|
264
|
+
* 获取模型可自动调用的 Skills(用于注入到 system prompt)
|
|
265
|
+
*/
|
|
266
|
+
getModelInvocableSkills(): Array<{
|
|
267
|
+
name: string;
|
|
268
|
+
description: string;
|
|
269
|
+
}>;
|
|
270
|
+
/**
|
|
271
|
+
* 获取格式化的 Skill 列表文本(用于 System Prompt)
|
|
272
|
+
*/
|
|
273
|
+
getFormattedList(): string;
|
|
274
|
+
/**
|
|
275
|
+
* 根据名称获取 Skill 路径
|
|
276
|
+
*/
|
|
277
|
+
getSkillPath(name: string): string | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* 加载 Skill 全量内容
|
|
280
|
+
*/
|
|
281
|
+
loadFullContent(name: string): Promise<string>;
|
|
282
|
+
/**
|
|
283
|
+
* 获取默认 skill 路径
|
|
284
|
+
*/
|
|
285
|
+
private getDefaultPaths;
|
|
286
|
+
/**
|
|
287
|
+
* 初始化加载所有 Skills
|
|
288
|
+
* @param config Skill 配置
|
|
289
|
+
* @param additionalPaths 额外的 skill 路径(来自 AgentConfig.skills)
|
|
290
|
+
*/
|
|
291
|
+
initialize(config?: SkillConfig, additionalPaths?: string[]): Promise<void>;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* 创建 Skill 注册中心
|
|
295
|
+
*/
|
|
296
|
+
declare function createSkillRegistry(config?: SkillLoaderConfig): SkillRegistry;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* 将磁盘 settings.json 转为内部 HooksSettings(PascalCase → HookEventType)
|
|
300
|
+
*/
|
|
301
|
+
declare function parseHooksSettingsFile(raw: unknown): HooksSettings;
|
|
302
|
+
/**
|
|
303
|
+
* 读取并解析项目级 `.claude/settings.json`
|
|
304
|
+
*/
|
|
305
|
+
declare function loadHooksSettingsFromProject(projectDir: string): Promise<HooksSettings>;
|
|
306
|
+
/**
|
|
307
|
+
* 读取并解析用户级 `~/.claude/settings.json`
|
|
308
|
+
*/
|
|
309
|
+
declare function loadHooksSettingsFromUser(): Promise<HooksSettings>;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Read 工具 - 读取文件内容
|
|
313
|
+
*/
|
|
314
|
+
declare const readFileTool: ToolDefinition;
|
|
315
|
+
/**
|
|
316
|
+
* Write 工具 - 写入文件
|
|
317
|
+
*/
|
|
318
|
+
declare const writeFileTool: ToolDefinition;
|
|
319
|
+
/**
|
|
320
|
+
* Edit 工具 - 精确编辑文件
|
|
321
|
+
*/
|
|
322
|
+
declare const editTool: ToolDefinition;
|
|
323
|
+
/**
|
|
324
|
+
* Glob 工具 - 文件模式匹配
|
|
325
|
+
*/
|
|
326
|
+
declare const globTool: ToolDefinition;
|
|
327
|
+
/**
|
|
328
|
+
* 获取所有文件系统工具
|
|
329
|
+
*/
|
|
330
|
+
declare function getFileSystemTools(): ToolDefinition[];
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Bash 工具 - 执行 shell 命令
|
|
334
|
+
*/
|
|
335
|
+
declare const bashTool: ToolDefinition;
|
|
336
|
+
/**
|
|
337
|
+
* 获取所有 Shell 工具
|
|
338
|
+
*/
|
|
339
|
+
declare function getShellTools(): ToolDefinition[];
|
|
340
|
+
|
|
341
|
+
/** Default cap on number of matching lines returned (each line counts as one match). */
|
|
342
|
+
declare const DEFAULT_GREP_HEAD_LIMIT = 250;
|
|
343
|
+
/** Max characters for a single match line in output (match-aware window, see {@link truncateMatchLineForDisplay}). */
|
|
344
|
+
declare const MAX_LINE_LENGTH = 2000;
|
|
345
|
+
/**
|
|
346
|
+
* Shorten a long line for Grep output while keeping the first regex match visible (not a fixed [0, MAX) slice).
|
|
347
|
+
* Context lines (when using `context` > 0) are not passed through this function.
|
|
348
|
+
*/
|
|
349
|
+
declare function truncateMatchLineForDisplay(line: string, regex: RegExp): string;
|
|
350
|
+
declare const grepTool: ToolDefinition;
|
|
351
|
+
/**
|
|
352
|
+
* 获取 Grep 工具
|
|
353
|
+
*/
|
|
354
|
+
declare function getGrepTools(): ToolDefinition[];
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* WebFetch 工具 - 获取网页内容
|
|
358
|
+
*/
|
|
359
|
+
declare const webFetchTool: ToolDefinition;
|
|
360
|
+
/**
|
|
361
|
+
* WebSearch 工具 - 网络搜索
|
|
362
|
+
*/
|
|
363
|
+
declare const webSearchTool: ToolDefinition;
|
|
364
|
+
/**
|
|
365
|
+
* 获取所有 Web 工具
|
|
366
|
+
*/
|
|
367
|
+
declare function getWebTools(): ToolDefinition[];
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* TaskCreate 工具 - 创建任务
|
|
371
|
+
*/
|
|
372
|
+
declare const taskCreateTool: ToolDefinition;
|
|
373
|
+
/**
|
|
374
|
+
* TaskUpdate 工具 - 更新任务
|
|
375
|
+
*/
|
|
376
|
+
declare const taskUpdateTool: ToolDefinition;
|
|
377
|
+
/**
|
|
378
|
+
* TaskList 工具 - 列出所有任务
|
|
379
|
+
*/
|
|
380
|
+
declare const taskListTool: ToolDefinition;
|
|
381
|
+
/**
|
|
382
|
+
* 获取所有 Task 工具
|
|
383
|
+
*/
|
|
384
|
+
declare function getTaskTools(): ToolDefinition[];
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* 创建 Skill 工具
|
|
388
|
+
*/
|
|
389
|
+
declare function createSkillTool(skillRegistry: SkillRegistry): ToolDefinition;
|
|
390
|
+
/**
|
|
391
|
+
* 获取 Skill 相关工具
|
|
392
|
+
*/
|
|
393
|
+
declare function getSkillTools(skillRegistry: SkillRegistry): ToolDefinition[];
|
|
394
|
+
|
|
395
|
+
declare const subagentRequestSchema: z.ZodObject<{
|
|
396
|
+
prompt: z.ZodString;
|
|
397
|
+
description: z.ZodOptional<z.ZodString>;
|
|
398
|
+
subagent_type: z.ZodDefault<z.ZodEnum<["general-purpose", "explore"]>>;
|
|
399
|
+
allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
400
|
+
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
401
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
system_prompt: z.ZodOptional<z.ZodString>;
|
|
403
|
+
}, "strip", z.ZodTypeAny, {
|
|
404
|
+
prompt: string;
|
|
405
|
+
subagent_type: "general-purpose" | "explore";
|
|
406
|
+
description?: string | undefined;
|
|
407
|
+
allowed_tools?: string[] | undefined;
|
|
408
|
+
max_iterations?: number | undefined;
|
|
409
|
+
timeout_ms?: number | undefined;
|
|
410
|
+
system_prompt?: string | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
prompt: string;
|
|
413
|
+
description?: string | undefined;
|
|
414
|
+
subagent_type?: "general-purpose" | "explore" | undefined;
|
|
415
|
+
allowed_tools?: string[] | undefined;
|
|
416
|
+
max_iterations?: number | undefined;
|
|
417
|
+
timeout_ms?: number | undefined;
|
|
418
|
+
system_prompt?: string | undefined;
|
|
419
|
+
}>;
|
|
420
|
+
type SubagentRequest = z.infer<typeof subagentRequestSchema>;
|
|
421
|
+
interface SubagentRunner {
|
|
422
|
+
(request: SubagentRequest, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
423
|
+
}
|
|
424
|
+
interface CreateAgentToolOptions {
|
|
425
|
+
runner: SubagentRunner;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Agent tool - delegates a task to a dedicated subagent run.
|
|
429
|
+
*/
|
|
430
|
+
declare function createAgentTool(options: CreateAgentToolOptions): ToolDefinition;
|
|
431
|
+
declare const agentTool: ToolDefinition;
|
|
432
|
+
declare function getSubagentTools(): ToolDefinition[];
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* 获取所有内置工具
|
|
436
|
+
* @param skillRegistry - Skill注册中心,用于激活skill工具
|
|
437
|
+
* @param interactionOptions - 可选:AskUserQuestion 的 {@link CreateAskUserQuestionToolOptions}
|
|
438
|
+
*/
|
|
439
|
+
declare function getAllBuiltinTools(skillRegistry: SkillRegistry, interactionOptions?: CreateAskUserQuestionToolOptions): ToolDefinition[];
|
|
440
|
+
/**
|
|
441
|
+
* 获取安全的内置工具 (不含危险操作)
|
|
442
|
+
* @param skillRegistry - Skill注册中心,用于激活skill工具
|
|
443
|
+
* @param interactionOptions - 可选:AskUserQuestion 的 {@link CreateAskUserQuestionToolOptions}
|
|
444
|
+
*/
|
|
445
|
+
declare function getSafeBuiltinTools(skillRegistry: SkillRegistry, interactionOptions?: CreateAskUserQuestionToolOptions): ToolDefinition[];
|
|
446
|
+
|
|
447
|
+
export { loadHooksSettingsFromProject as A, loadHooksSettingsFromUser as B, type CreateAgentToolOptions as C, DEFAULT_GREP_HEAD_LIMIT as D, parseHooksSettingsFile as E, readFileTool as F, subagentRequestSchema as G, taskCreateTool as H, taskListTool as I, taskUpdateTool as J, truncateMatchLineForDisplay as K, webFetchTool as L, MAX_LINE_LENGTH as M, webSearchTool as N, writeFileTool as O, SkillRegistry as S, ToolRegistry as T, SkillLoader as a, type SkillLoaderConfig as b, type SubagentRequest as c, type SubagentRunner as d, type ToolExecuteOptions as e, type ToolRegistryConfig as f, agentTool as g, bashTool as h, createAgentTool as i, createSkillLoader as j, createSkillRegistry as k, createSkillTool as l, createTool as m, editTool as n, getAllBuiltinTools as o, getFileSystemTools as p, getGlobalRegistry as q, getGrepTools as r, getSafeBuiltinTools as s, getShellTools as t, getSkillTools as u, getSubagentTools as v, getTaskTools as w, getWebTools as x, globTool as y, grepTool as z };
|