@ddlqhd/agent-sdk 0.1.0 → 0.2.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 +4 -2
- package/dist/{chunk-5QMA2YBY.cjs → chunk-6X7EYQLS.cjs} +782 -114
- package/dist/chunk-6X7EYQLS.cjs.map +1 -0
- package/dist/{chunk-NDSL7NPN.js → chunk-D3UZNLZO.js} +769 -71
- package/dist/chunk-D3UZNLZO.js.map +1 -0
- package/dist/{chunk-Q3SOMX26.js → chunk-EQ5CXH44.js} +772 -111
- package/dist/chunk-EQ5CXH44.js.map +1 -0
- package/dist/chunk-LOYIGOBZ.js +54 -0
- package/dist/chunk-LOYIGOBZ.js.map +1 -0
- package/dist/{chunk-OHXW2YM6.js → chunk-MEJHTQJM.js} +289 -166
- package/dist/chunk-MEJHTQJM.js.map +1 -0
- package/dist/chunk-NYZD3THB.cjs +1521 -0
- package/dist/chunk-NYZD3THB.cjs.map +1 -0
- package/dist/chunk-OZO7D77N.cjs +59 -0
- package/dist/chunk-OZO7D77N.cjs.map +1 -0
- package/dist/{chunk-JF5AJQMU.cjs → chunk-Z45DHTDX.cjs} +291 -170
- package/dist/chunk-Z45DHTDX.cjs.map +1 -0
- package/dist/cli/index.cjs +47 -39
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +22 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/{index-DPsZ1zat.d.ts → index-Cw3SfEAB.d.ts} +20 -34
- package/dist/{index-RTPmFjMp.d.cts → index-D2Qntkn_.d.cts} +20 -34
- package/dist/index.cjs +125 -89
- package/dist/index.d.cts +62 -22
- package/dist/index.d.ts +62 -22
- package/dist/index.js +4 -4
- package/dist/models/index.cjs +19 -15
- package/dist/models/index.d.cts +55 -6
- package/dist/models/index.d.ts +55 -6
- package/dist/models/index.js +2 -2
- package/dist/tools/index.cjs +53 -61
- package/dist/tools/index.d.cts +3 -3
- package/dist/tools/index.d.ts +3 -3
- package/dist/tools/index.js +2 -2
- package/dist/{types-C0aX_Qdp.d.cts → types-CWPAYWzr.d.cts} +307 -61
- package/dist/{types-C0aX_Qdp.d.ts → types-CWPAYWzr.d.ts} +307 -61
- package/package.json +25 -14
- package/dist/chunk-5QMA2YBY.cjs.map +0 -1
- package/dist/chunk-CNSGZVRN.cjs +0 -152
- package/dist/chunk-CNSGZVRN.cjs.map +0 -1
- package/dist/chunk-JF5AJQMU.cjs.map +0 -1
- package/dist/chunk-NDSL7NPN.js.map +0 -1
- package/dist/chunk-OHXW2YM6.js.map +0 -1
- package/dist/chunk-Q3SOMX26.js.map +0 -1
- package/dist/chunk-WH3APNQ5.js +0 -147
- package/dist/chunk-WH3APNQ5.js.map +0 -1
- package/dist/chunk-X35MHWXE.cjs +0 -817
- package/dist/chunk-X35MHWXE.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { aq as ToolExecutionPolicy, as as ToolHookObserver, R as HookManager, d as ToolDefinition, T as ToolResult, ax as ToolSchema, ab as SkillDefinition, aa as SkillConfig, W as HooksSettings, ao as ToolExecutionContext, H as CreateAskUserQuestionToolOptions } from './types-CWPAYWzr.cjs';
|
|
1
2
|
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
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Tool 注册中心配置
|
|
@@ -11,6 +11,11 @@ interface ToolRegistryConfig {
|
|
|
11
11
|
enableOutputHandler?: boolean;
|
|
12
12
|
/** 执行前校验(disallowed / allowedTools / canUseTool);未设置则不限制 */
|
|
13
13
|
executionPolicy?: ToolExecutionPolicy;
|
|
14
|
+
/**
|
|
15
|
+
* 观察 {@link HookManager} 管道(不改变 Hook 行为)。
|
|
16
|
+
* 通常由 {@link Agent} 从 `callbacks.lifecycle.hooks` 注入。
|
|
17
|
+
*/
|
|
18
|
+
hookObserver?: ToolHookObserver;
|
|
14
19
|
}
|
|
15
20
|
/** 工具执行选项(Hook 上下文等) */
|
|
16
21
|
interface ToolExecuteOptions {
|
|
@@ -27,6 +32,7 @@ declare class ToolRegistry {
|
|
|
27
32
|
private outputHandler;
|
|
28
33
|
private hookManager;
|
|
29
34
|
private readonly executionPolicy;
|
|
35
|
+
private readonly hookObserver;
|
|
30
36
|
constructor(config?: ToolRegistryConfig);
|
|
31
37
|
/**
|
|
32
38
|
* 工具名是否在 {@link ToolExecutionPolicy.disallowedTools} 中(无策略时为 false)。
|
|
@@ -40,6 +46,7 @@ declare class ToolRegistry {
|
|
|
40
46
|
setHookManager(manager: HookManager | null): void;
|
|
41
47
|
getHookManager(): HookManager | null;
|
|
42
48
|
private buildHookContext;
|
|
49
|
+
private hookObserverCtx;
|
|
43
50
|
/**
|
|
44
51
|
* 注册工具
|
|
45
52
|
*/
|
|
@@ -119,7 +126,7 @@ declare class ToolRegistry {
|
|
|
119
126
|
declare function createTool(config: {
|
|
120
127
|
name: string;
|
|
121
128
|
description: string;
|
|
122
|
-
parameters:
|
|
129
|
+
parameters: ToolDefinition['parameters'];
|
|
123
130
|
handler: ToolDefinition['handler'];
|
|
124
131
|
isDangerous?: boolean;
|
|
125
132
|
category?: string;
|
|
@@ -367,21 +374,13 @@ declare const webSearchTool: ToolDefinition;
|
|
|
367
374
|
declare function getWebTools(): ToolDefinition[];
|
|
368
375
|
|
|
369
376
|
/**
|
|
370
|
-
*
|
|
371
|
-
*/
|
|
372
|
-
declare const taskCreateTool: ToolDefinition;
|
|
373
|
-
/**
|
|
374
|
-
* TaskUpdate 工具 - 更新任务
|
|
375
|
-
*/
|
|
376
|
-
declare const taskUpdateTool: ToolDefinition;
|
|
377
|
-
/**
|
|
378
|
-
* TaskList 工具 - 列出所有任务
|
|
377
|
+
* TodoWrite 工具 - 批量写入任务列表
|
|
379
378
|
*/
|
|
380
|
-
declare const
|
|
379
|
+
declare const todoWriteTool: ToolDefinition;
|
|
381
380
|
/**
|
|
382
|
-
* 获取所有
|
|
381
|
+
* 获取所有 Planning 工具
|
|
383
382
|
*/
|
|
384
|
-
declare function
|
|
383
|
+
declare function getPlanningTools(): ToolDefinition[];
|
|
385
384
|
|
|
386
385
|
/**
|
|
387
386
|
* 创建 Skill 工具
|
|
@@ -395,28 +394,15 @@ declare function getSkillTools(skillRegistry: SkillRegistry): ToolDefinition[];
|
|
|
395
394
|
declare const subagentRequestSchema: z.ZodObject<{
|
|
396
395
|
prompt: z.ZodString;
|
|
397
396
|
description: z.ZodOptional<z.ZodString>;
|
|
398
|
-
subagent_type: z.ZodDefault<z.ZodEnum<
|
|
399
|
-
|
|
397
|
+
subagent_type: z.ZodDefault<z.ZodEnum<{
|
|
398
|
+
"general-purpose": "general-purpose";
|
|
399
|
+
explore: "explore";
|
|
400
|
+
}>>;
|
|
401
|
+
allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
400
402
|
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
401
403
|
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
402
404
|
system_prompt: z.ZodOptional<z.ZodString>;
|
|
403
|
-
},
|
|
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
|
-
}>;
|
|
405
|
+
}, z.core.$strip>;
|
|
420
406
|
type SubagentRequest = z.infer<typeof subagentRequestSchema>;
|
|
421
407
|
interface SubagentRunner {
|
|
422
408
|
(request: SubagentRequest, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
@@ -444,4 +430,4 @@ declare function getAllBuiltinTools(skillRegistry: SkillRegistry, interactionOpt
|
|
|
444
430
|
*/
|
|
445
431
|
declare function getSafeBuiltinTools(skillRegistry: SkillRegistry, interactionOptions?: CreateAskUserQuestionToolOptions): ToolDefinition[];
|
|
446
432
|
|
|
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,
|
|
433
|
+
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, todoWriteTool as H, truncateMatchLineForDisplay as I, webFetchTool as J, webSearchTool as K, writeFileTool as L, MAX_LINE_LENGTH as M, 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, getPlanningTools as s, getSafeBuiltinTools as t, getShellTools as u, getSkillTools as v, getSubagentTools as w, getWebTools as x, globTool as y, grepTool as z };
|
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
require('./chunk-5Y56A64C.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
5
|
+
var chunk6X7EYQLS_cjs = require('./chunk-6X7EYQLS.cjs');
|
|
6
|
+
var chunkNYZD3THB_cjs = require('./chunk-NYZD3THB.cjs');
|
|
7
|
+
var chunkZ45DHTDX_cjs = require('./chunk-Z45DHTDX.cjs');
|
|
8
|
+
require('./chunk-OZO7D77N.cjs');
|
|
9
9
|
|
|
10
10
|
// src/streaming/event-emitter.ts
|
|
11
11
|
var AgentStream = class _AgentStream {
|
|
@@ -203,303 +203,339 @@ function fromAsyncIterable(iterable) {
|
|
|
203
203
|
|
|
204
204
|
Object.defineProperty(exports, "Agent", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk6X7EYQLS_cjs.Agent; }
|
|
207
|
+
});
|
|
208
|
+
Object.defineProperty(exports, "DEFAULT_MAX_ITERATIONS", {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
get: function () { return chunk6X7EYQLS_cjs.DEFAULT_MAX_ITERATIONS; }
|
|
207
211
|
});
|
|
208
212
|
Object.defineProperty(exports, "DEFAULT_SYSTEM_PROMPT", {
|
|
209
213
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk6X7EYQLS_cjs.DEFAULT_SYSTEM_PROMPT; }
|
|
211
215
|
});
|
|
212
216
|
Object.defineProperty(exports, "JsonlStorage", {
|
|
213
217
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunk6X7EYQLS_cjs.JsonlStorage; }
|
|
215
219
|
});
|
|
216
220
|
Object.defineProperty(exports, "MCPAdapter", {
|
|
217
221
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunk6X7EYQLS_cjs.MCPAdapter; }
|
|
219
223
|
});
|
|
220
224
|
Object.defineProperty(exports, "MCPClient", {
|
|
221
225
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk6X7EYQLS_cjs.MCPClient; }
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "MODEL_STREAM_EVENT_TYPES", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () { return chunk6X7EYQLS_cjs.MODEL_STREAM_EVENT_TYPES; }
|
|
223
231
|
});
|
|
224
232
|
Object.defineProperty(exports, "MemoryManager", {
|
|
225
233
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunk6X7EYQLS_cjs.MemoryManager; }
|
|
227
235
|
});
|
|
228
236
|
Object.defineProperty(exports, "MemoryStorage", {
|
|
229
237
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunk6X7EYQLS_cjs.MemoryStorage; }
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "PACKAGE_VERSION", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () { return chunk6X7EYQLS_cjs.PACKAGE_VERSION; }
|
|
231
243
|
});
|
|
232
244
|
Object.defineProperty(exports, "SessionManager", {
|
|
233
245
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunk6X7EYQLS_cjs.SessionManager; }
|
|
235
247
|
});
|
|
236
248
|
Object.defineProperty(exports, "SkillLoader", {
|
|
237
249
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunk6X7EYQLS_cjs.SkillLoader; }
|
|
239
251
|
});
|
|
240
252
|
Object.defineProperty(exports, "SkillRegistry", {
|
|
241
253
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunk6X7EYQLS_cjs.SkillRegistry; }
|
|
243
255
|
});
|
|
244
256
|
Object.defineProperty(exports, "StreamChunkProcessor", {
|
|
245
257
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunk6X7EYQLS_cjs.StreamChunkProcessor; }
|
|
247
259
|
});
|
|
248
260
|
Object.defineProperty(exports, "createAgent", {
|
|
249
261
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunk6X7EYQLS_cjs.createAgent; }
|
|
251
263
|
});
|
|
252
264
|
Object.defineProperty(exports, "createJsonlStorage", {
|
|
253
265
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunk6X7EYQLS_cjs.createJsonlStorage; }
|
|
255
267
|
});
|
|
256
268
|
Object.defineProperty(exports, "createMCPAdapter", {
|
|
257
269
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunk6X7EYQLS_cjs.createMCPAdapter; }
|
|
259
271
|
});
|
|
260
272
|
Object.defineProperty(exports, "createMCPClient", {
|
|
261
273
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunk6X7EYQLS_cjs.createMCPClient; }
|
|
263
275
|
});
|
|
264
276
|
Object.defineProperty(exports, "createMemoryStorage", {
|
|
265
277
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunk6X7EYQLS_cjs.createMemoryStorage; }
|
|
267
279
|
});
|
|
268
280
|
Object.defineProperty(exports, "createSessionManager", {
|
|
269
281
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunk6X7EYQLS_cjs.createSessionManager; }
|
|
271
283
|
});
|
|
272
284
|
Object.defineProperty(exports, "createSkillLoader", {
|
|
273
285
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunk6X7EYQLS_cjs.createSkillLoader; }
|
|
275
287
|
});
|
|
276
288
|
Object.defineProperty(exports, "createSkillRegistry", {
|
|
277
289
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunk6X7EYQLS_cjs.createSkillRegistry; }
|
|
279
291
|
});
|
|
280
292
|
Object.defineProperty(exports, "createStorage", {
|
|
281
293
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunk6X7EYQLS_cjs.createStorage; }
|
|
295
|
+
});
|
|
296
|
+
Object.defineProperty(exports, "formatMcpToolName", {
|
|
297
|
+
enumerable: true,
|
|
298
|
+
get: function () { return chunk6X7EYQLS_cjs.formatMcpToolName; }
|
|
283
299
|
});
|
|
284
300
|
Object.defineProperty(exports, "getLatestSessionId", {
|
|
285
301
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunk6X7EYQLS_cjs.getLatestSessionId; }
|
|
287
303
|
});
|
|
288
304
|
Object.defineProperty(exports, "getSessionStoragePath", {
|
|
289
305
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunk6X7EYQLS_cjs.getSessionStoragePath; }
|
|
307
|
+
});
|
|
308
|
+
Object.defineProperty(exports, "isMcpPrefixedToolName", {
|
|
309
|
+
enumerable: true,
|
|
310
|
+
get: function () { return chunk6X7EYQLS_cjs.isMcpPrefixedToolName; }
|
|
311
|
+
});
|
|
312
|
+
Object.defineProperty(exports, "isModelStreamEventType", {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function () { return chunk6X7EYQLS_cjs.isModelStreamEventType; }
|
|
291
315
|
});
|
|
292
316
|
Object.defineProperty(exports, "loadMCPConfig", {
|
|
293
317
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunk6X7EYQLS_cjs.loadMCPConfig; }
|
|
295
319
|
});
|
|
296
320
|
Object.defineProperty(exports, "parseSkillMd", {
|
|
297
321
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunk6X7EYQLS_cjs.parseSkillMd; }
|
|
299
323
|
});
|
|
300
324
|
Object.defineProperty(exports, "validateMCPConfig", {
|
|
301
325
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunk6X7EYQLS_cjs.validateMCPConfig; }
|
|
303
327
|
});
|
|
304
328
|
Object.defineProperty(exports, "AnthropicAdapter", {
|
|
305
329
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkNYZD3THB_cjs.AnthropicAdapter; }
|
|
331
|
+
});
|
|
332
|
+
Object.defineProperty(exports, "DEFAULT_ADAPTER_CAPABILITIES", {
|
|
333
|
+
enumerable: true,
|
|
334
|
+
get: function () { return chunkNYZD3THB_cjs.DEFAULT_ADAPTER_CAPABILITIES; }
|
|
307
335
|
});
|
|
308
336
|
Object.defineProperty(exports, "OllamaAdapter", {
|
|
309
337
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkNYZD3THB_cjs.OllamaAdapter; }
|
|
311
339
|
});
|
|
312
340
|
Object.defineProperty(exports, "OpenAIAdapter", {
|
|
313
341
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkNYZD3THB_cjs.OpenAIAdapter; }
|
|
315
343
|
});
|
|
316
344
|
Object.defineProperty(exports, "createAnthropic", {
|
|
317
345
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkNYZD3THB_cjs.createAnthropic; }
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(exports, "createConsoleSDKLogger", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () { return chunkNYZD3THB_cjs.createConsoleSDKLogger; }
|
|
319
351
|
});
|
|
320
352
|
Object.defineProperty(exports, "createModel", {
|
|
321
353
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkNYZD3THB_cjs.createModel; }
|
|
323
355
|
});
|
|
324
356
|
Object.defineProperty(exports, "createOllama", {
|
|
325
357
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkNYZD3THB_cjs.createOllama; }
|
|
327
359
|
});
|
|
328
360
|
Object.defineProperty(exports, "createOpenAI", {
|
|
329
361
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkNYZD3THB_cjs.createOpenAI; }
|
|
363
|
+
});
|
|
364
|
+
Object.defineProperty(exports, "formatSDKLog", {
|
|
365
|
+
enumerable: true,
|
|
366
|
+
get: function () { return chunkNYZD3THB_cjs.formatSDKLog; }
|
|
367
|
+
});
|
|
368
|
+
Object.defineProperty(exports, "mergeMcpStdioEnv", {
|
|
369
|
+
enumerable: true,
|
|
370
|
+
get: function () { return chunkNYZD3THB_cjs.mergeMcpStdioEnv; }
|
|
371
|
+
});
|
|
372
|
+
Object.defineProperty(exports, "mergeProcessEnv", {
|
|
373
|
+
enumerable: true,
|
|
374
|
+
get: function () { return chunkNYZD3THB_cjs.mergeProcessEnv; }
|
|
331
375
|
});
|
|
332
376
|
Object.defineProperty(exports, "DEFAULT_GREP_HEAD_LIMIT", {
|
|
333
377
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkZ45DHTDX_cjs.DEFAULT_GREP_HEAD_LIMIT; }
|
|
335
379
|
});
|
|
336
380
|
Object.defineProperty(exports, "HookManager", {
|
|
337
381
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkZ45DHTDX_cjs.HookManager; }
|
|
339
383
|
});
|
|
340
384
|
Object.defineProperty(exports, "MAX_LINE_LENGTH", {
|
|
341
385
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkZ45DHTDX_cjs.MAX_LINE_LENGTH; }
|
|
343
387
|
});
|
|
344
388
|
Object.defineProperty(exports, "ToolRegistry", {
|
|
345
389
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkZ45DHTDX_cjs.ToolRegistry; }
|
|
347
391
|
});
|
|
348
392
|
Object.defineProperty(exports, "agentTool", {
|
|
349
393
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkZ45DHTDX_cjs.agentTool; }
|
|
351
395
|
});
|
|
352
396
|
Object.defineProperty(exports, "bashTool", {
|
|
353
397
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkZ45DHTDX_cjs.bashTool; }
|
|
355
399
|
});
|
|
356
400
|
Object.defineProperty(exports, "buildHookEnv", {
|
|
357
401
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkZ45DHTDX_cjs.buildHookEnv; }
|
|
359
403
|
});
|
|
360
404
|
Object.defineProperty(exports, "createAgentTool", {
|
|
361
405
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkZ45DHTDX_cjs.createAgentTool; }
|
|
363
407
|
});
|
|
364
408
|
Object.defineProperty(exports, "createAskUserQuestionTool", {
|
|
365
409
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkZ45DHTDX_cjs.createAskUserQuestionTool; }
|
|
367
411
|
});
|
|
368
412
|
Object.defineProperty(exports, "createFunctionHook", {
|
|
369
413
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkZ45DHTDX_cjs.createFunctionHook; }
|
|
371
415
|
});
|
|
372
416
|
Object.defineProperty(exports, "createSkillTool", {
|
|
373
417
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkZ45DHTDX_cjs.createSkillTool; }
|
|
375
419
|
});
|
|
376
420
|
Object.defineProperty(exports, "createTool", {
|
|
377
421
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkZ45DHTDX_cjs.createTool; }
|
|
379
423
|
});
|
|
380
424
|
Object.defineProperty(exports, "editTool", {
|
|
381
425
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkZ45DHTDX_cjs.editTool; }
|
|
383
427
|
});
|
|
384
428
|
Object.defineProperty(exports, "formatAnswerSummary", {
|
|
385
429
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkZ45DHTDX_cjs.formatAnswerSummary; }
|
|
387
431
|
});
|
|
388
432
|
Object.defineProperty(exports, "formatAskUserQuestionPrompt", {
|
|
389
433
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkZ45DHTDX_cjs.formatAskUserQuestionPrompt; }
|
|
391
435
|
});
|
|
392
436
|
Object.defineProperty(exports, "getAllBuiltinTools", {
|
|
393
437
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkZ45DHTDX_cjs.getAllBuiltinTools; }
|
|
395
439
|
});
|
|
396
440
|
Object.defineProperty(exports, "getFileSystemTools", {
|
|
397
441
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunkZ45DHTDX_cjs.getFileSystemTools; }
|
|
399
443
|
});
|
|
400
444
|
Object.defineProperty(exports, "getGlobalRegistry", {
|
|
401
445
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunkZ45DHTDX_cjs.getGlobalRegistry; }
|
|
403
447
|
});
|
|
404
448
|
Object.defineProperty(exports, "getGrepTools", {
|
|
405
449
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunkZ45DHTDX_cjs.getGrepTools; }
|
|
407
451
|
});
|
|
408
452
|
Object.defineProperty(exports, "getInteractionTools", {
|
|
409
453
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunkZ45DHTDX_cjs.getInteractionTools; }
|
|
455
|
+
});
|
|
456
|
+
Object.defineProperty(exports, "getPlanningTools", {
|
|
457
|
+
enumerable: true,
|
|
458
|
+
get: function () { return chunkZ45DHTDX_cjs.getPlanningTools; }
|
|
411
459
|
});
|
|
412
460
|
Object.defineProperty(exports, "getSafeBuiltinTools", {
|
|
413
461
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
462
|
+
get: function () { return chunkZ45DHTDX_cjs.getSafeBuiltinTools; }
|
|
415
463
|
});
|
|
416
464
|
Object.defineProperty(exports, "getShellTools", {
|
|
417
465
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunkZ45DHTDX_cjs.getShellTools; }
|
|
419
467
|
});
|
|
420
468
|
Object.defineProperty(exports, "getSkillTools", {
|
|
421
469
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
470
|
+
get: function () { return chunkZ45DHTDX_cjs.getSkillTools; }
|
|
423
471
|
});
|
|
424
472
|
Object.defineProperty(exports, "getSubagentTools", {
|
|
425
473
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
427
|
-
});
|
|
428
|
-
Object.defineProperty(exports, "getTaskTools", {
|
|
429
|
-
enumerable: true,
|
|
430
|
-
get: function () { return chunkJF5AJQMU_cjs.getTaskTools; }
|
|
474
|
+
get: function () { return chunkZ45DHTDX_cjs.getSubagentTools; }
|
|
431
475
|
});
|
|
432
476
|
Object.defineProperty(exports, "getWebTools", {
|
|
433
477
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
478
|
+
get: function () { return chunkZ45DHTDX_cjs.getWebTools; }
|
|
435
479
|
});
|
|
436
480
|
Object.defineProperty(exports, "globTool", {
|
|
437
481
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
482
|
+
get: function () { return chunkZ45DHTDX_cjs.globTool; }
|
|
439
483
|
});
|
|
440
484
|
Object.defineProperty(exports, "grepTool", {
|
|
441
485
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
486
|
+
get: function () { return chunkZ45DHTDX_cjs.grepTool; }
|
|
443
487
|
});
|
|
444
488
|
Object.defineProperty(exports, "loadHooksSettingsFromProject", {
|
|
445
489
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
490
|
+
get: function () { return chunkZ45DHTDX_cjs.loadHooksSettingsFromProject; }
|
|
447
491
|
});
|
|
448
492
|
Object.defineProperty(exports, "loadHooksSettingsFromUser", {
|
|
449
493
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
494
|
+
get: function () { return chunkZ45DHTDX_cjs.loadHooksSettingsFromUser; }
|
|
451
495
|
});
|
|
452
496
|
Object.defineProperty(exports, "matchTool", {
|
|
453
497
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
498
|
+
get: function () { return chunkZ45DHTDX_cjs.matchTool; }
|
|
455
499
|
});
|
|
456
500
|
Object.defineProperty(exports, "mergeCommandHookLayers", {
|
|
457
501
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunkZ45DHTDX_cjs.mergeCommandHookLayers; }
|
|
459
503
|
});
|
|
460
504
|
Object.defineProperty(exports, "parseHooksSettingsFile", {
|
|
461
505
|
enumerable: true,
|
|
462
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunkZ45DHTDX_cjs.parseHooksSettingsFile; }
|
|
463
507
|
});
|
|
464
508
|
Object.defineProperty(exports, "questionTool", {
|
|
465
509
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunkZ45DHTDX_cjs.questionTool; }
|
|
467
511
|
});
|
|
468
512
|
Object.defineProperty(exports, "readFileTool", {
|
|
469
513
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunkZ45DHTDX_cjs.readFileTool; }
|
|
471
515
|
});
|
|
472
516
|
Object.defineProperty(exports, "subagentRequestSchema", {
|
|
473
517
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
475
|
-
});
|
|
476
|
-
Object.defineProperty(exports, "taskCreateTool", {
|
|
477
|
-
enumerable: true,
|
|
478
|
-
get: function () { return chunkJF5AJQMU_cjs.taskCreateTool; }
|
|
479
|
-
});
|
|
480
|
-
Object.defineProperty(exports, "taskListTool", {
|
|
481
|
-
enumerable: true,
|
|
482
|
-
get: function () { return chunkJF5AJQMU_cjs.taskListTool; }
|
|
518
|
+
get: function () { return chunkZ45DHTDX_cjs.subagentRequestSchema; }
|
|
483
519
|
});
|
|
484
|
-
Object.defineProperty(exports, "
|
|
520
|
+
Object.defineProperty(exports, "todoWriteTool", {
|
|
485
521
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
522
|
+
get: function () { return chunkZ45DHTDX_cjs.todoWriteTool; }
|
|
487
523
|
});
|
|
488
524
|
Object.defineProperty(exports, "truncateMatchLineForDisplay", {
|
|
489
525
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
526
|
+
get: function () { return chunkZ45DHTDX_cjs.truncateMatchLineForDisplay; }
|
|
491
527
|
});
|
|
492
528
|
Object.defineProperty(exports, "webFetchTool", {
|
|
493
529
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
530
|
+
get: function () { return chunkZ45DHTDX_cjs.webFetchTool; }
|
|
495
531
|
});
|
|
496
532
|
Object.defineProperty(exports, "webSearchTool", {
|
|
497
533
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
534
|
+
get: function () { return chunkZ45DHTDX_cjs.webSearchTool; }
|
|
499
535
|
});
|
|
500
536
|
Object.defineProperty(exports, "writeFileTool", {
|
|
501
537
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
538
|
+
get: function () { return chunkZ45DHTDX_cjs.writeFileTool; }
|
|
503
539
|
});
|
|
504
540
|
exports.AgentStream = AgentStream;
|
|
505
541
|
exports.createStream = createStream;
|