@ddlqhd/agent-sdk 0.1.0 → 0.1.1
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-NDSL7NPN.js → chunk-742JTNYI.js} +224 -19
- package/dist/chunk-742JTNYI.js.map +1 -0
- package/dist/{chunk-5QMA2YBY.cjs → chunk-AJD3DTL7.cjs} +57 -28
- package/dist/chunk-AJD3DTL7.cjs.map +1 -0
- package/dist/{chunk-X35MHWXE.cjs → chunk-DQFTAD3I.cjs} +231 -24
- package/dist/chunk-DQFTAD3I.cjs.map +1 -0
- package/dist/{chunk-Q3SOMX26.js → chunk-DXMVWGLJ.js} +52 -25
- package/dist/chunk-DXMVWGLJ.js.map +1 -0
- package/dist/chunk-LOYIGOBZ.js +54 -0
- package/dist/chunk-LOYIGOBZ.js.map +1 -0
- package/dist/chunk-OZO7D77N.cjs +59 -0
- package/dist/chunk-OZO7D77N.cjs.map +1 -0
- package/dist/{chunk-JF5AJQMU.cjs → chunk-Q3L4GIBG.cjs} +211 -58
- package/dist/chunk-Q3L4GIBG.cjs.map +1 -0
- package/dist/{chunk-OHXW2YM6.js → chunk-THKEF32L.js} +210 -57
- package/dist/chunk-THKEF32L.js.map +1 -0
- package/dist/cli/index.cjs +36 -37
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +11 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/{index-DPsZ1zat.d.ts → index-DGPDMbW5.d.cts} +8 -21
- package/dist/{index-RTPmFjMp.d.cts → index-nEfayAzD.d.ts} +8 -21
- package/dist/index.cjs +91 -79
- package/dist/index.d.cts +26 -6
- package/dist/index.d.ts +26 -6
- package/dist/index.js +4 -4
- package/dist/models/index.cjs +15 -15
- package/dist/models/index.d.cts +50 -6
- package/dist/models/index.d.ts +50 -6
- package/dist/models/index.js +2 -2
- package/dist/tools/index.cjs +51 -51
- 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-BLf9IqRs.d.cts} +34 -49
- package/dist/{types-C0aX_Qdp.d.ts → types-BLf9IqRs.d.ts} +34 -49
- package/package.json +15 -4
- 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.map +0 -1
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 chunkAJD3DTL7_cjs = require('./chunk-AJD3DTL7.cjs');
|
|
6
|
+
var chunkDQFTAD3I_cjs = require('./chunk-DQFTAD3I.cjs');
|
|
7
|
+
var chunkQ3L4GIBG_cjs = require('./chunk-Q3L4GIBG.cjs');
|
|
8
|
+
require('./chunk-OZO7D77N.cjs');
|
|
9
9
|
|
|
10
10
|
// src/streaming/event-emitter.ts
|
|
11
11
|
var AgentStream = class _AgentStream {
|
|
@@ -203,303 +203,315 @@ function fromAsyncIterable(iterable) {
|
|
|
203
203
|
|
|
204
204
|
Object.defineProperty(exports, "Agent", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkAJD3DTL7_cjs.Agent; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "DEFAULT_SYSTEM_PROMPT", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkAJD3DTL7_cjs.DEFAULT_SYSTEM_PROMPT; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "JsonlStorage", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkAJD3DTL7_cjs.JsonlStorage; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "MCPAdapter", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkAJD3DTL7_cjs.MCPAdapter; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "MCPClient", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkAJD3DTL7_cjs.MCPClient; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "MemoryManager", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkAJD3DTL7_cjs.MemoryManager; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "MemoryStorage", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkAJD3DTL7_cjs.MemoryStorage; }
|
|
231
|
+
});
|
|
232
|
+
Object.defineProperty(exports, "PACKAGE_VERSION", {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: function () { return chunkAJD3DTL7_cjs.PACKAGE_VERSION; }
|
|
231
235
|
});
|
|
232
236
|
Object.defineProperty(exports, "SessionManager", {
|
|
233
237
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkAJD3DTL7_cjs.SessionManager; }
|
|
235
239
|
});
|
|
236
240
|
Object.defineProperty(exports, "SkillLoader", {
|
|
237
241
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkAJD3DTL7_cjs.SkillLoader; }
|
|
239
243
|
});
|
|
240
244
|
Object.defineProperty(exports, "SkillRegistry", {
|
|
241
245
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkAJD3DTL7_cjs.SkillRegistry; }
|
|
243
247
|
});
|
|
244
248
|
Object.defineProperty(exports, "StreamChunkProcessor", {
|
|
245
249
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkAJD3DTL7_cjs.StreamChunkProcessor; }
|
|
247
251
|
});
|
|
248
252
|
Object.defineProperty(exports, "createAgent", {
|
|
249
253
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkAJD3DTL7_cjs.createAgent; }
|
|
251
255
|
});
|
|
252
256
|
Object.defineProperty(exports, "createJsonlStorage", {
|
|
253
257
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkAJD3DTL7_cjs.createJsonlStorage; }
|
|
255
259
|
});
|
|
256
260
|
Object.defineProperty(exports, "createMCPAdapter", {
|
|
257
261
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkAJD3DTL7_cjs.createMCPAdapter; }
|
|
259
263
|
});
|
|
260
264
|
Object.defineProperty(exports, "createMCPClient", {
|
|
261
265
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkAJD3DTL7_cjs.createMCPClient; }
|
|
263
267
|
});
|
|
264
268
|
Object.defineProperty(exports, "createMemoryStorage", {
|
|
265
269
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkAJD3DTL7_cjs.createMemoryStorage; }
|
|
267
271
|
});
|
|
268
272
|
Object.defineProperty(exports, "createSessionManager", {
|
|
269
273
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkAJD3DTL7_cjs.createSessionManager; }
|
|
271
275
|
});
|
|
272
276
|
Object.defineProperty(exports, "createSkillLoader", {
|
|
273
277
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkAJD3DTL7_cjs.createSkillLoader; }
|
|
275
279
|
});
|
|
276
280
|
Object.defineProperty(exports, "createSkillRegistry", {
|
|
277
281
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkAJD3DTL7_cjs.createSkillRegistry; }
|
|
279
283
|
});
|
|
280
284
|
Object.defineProperty(exports, "createStorage", {
|
|
281
285
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkAJD3DTL7_cjs.createStorage; }
|
|
283
287
|
});
|
|
284
288
|
Object.defineProperty(exports, "getLatestSessionId", {
|
|
285
289
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkAJD3DTL7_cjs.getLatestSessionId; }
|
|
287
291
|
});
|
|
288
292
|
Object.defineProperty(exports, "getSessionStoragePath", {
|
|
289
293
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkAJD3DTL7_cjs.getSessionStoragePath; }
|
|
291
295
|
});
|
|
292
296
|
Object.defineProperty(exports, "loadMCPConfig", {
|
|
293
297
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkAJD3DTL7_cjs.loadMCPConfig; }
|
|
295
299
|
});
|
|
296
300
|
Object.defineProperty(exports, "parseSkillMd", {
|
|
297
301
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkAJD3DTL7_cjs.parseSkillMd; }
|
|
299
303
|
});
|
|
300
304
|
Object.defineProperty(exports, "validateMCPConfig", {
|
|
301
305
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkAJD3DTL7_cjs.validateMCPConfig; }
|
|
303
307
|
});
|
|
304
308
|
Object.defineProperty(exports, "AnthropicAdapter", {
|
|
305
309
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkDQFTAD3I_cjs.AnthropicAdapter; }
|
|
307
311
|
});
|
|
308
312
|
Object.defineProperty(exports, "OllamaAdapter", {
|
|
309
313
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkDQFTAD3I_cjs.OllamaAdapter; }
|
|
311
315
|
});
|
|
312
316
|
Object.defineProperty(exports, "OpenAIAdapter", {
|
|
313
317
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkDQFTAD3I_cjs.OpenAIAdapter; }
|
|
315
319
|
});
|
|
316
320
|
Object.defineProperty(exports, "createAnthropic", {
|
|
317
321
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkDQFTAD3I_cjs.createAnthropic; }
|
|
319
323
|
});
|
|
320
324
|
Object.defineProperty(exports, "createModel", {
|
|
321
325
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkDQFTAD3I_cjs.createModel; }
|
|
323
327
|
});
|
|
324
328
|
Object.defineProperty(exports, "createOllama", {
|
|
325
329
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkDQFTAD3I_cjs.createOllama; }
|
|
327
331
|
});
|
|
328
332
|
Object.defineProperty(exports, "createOpenAI", {
|
|
329
333
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkDQFTAD3I_cjs.createOpenAI; }
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, "mergeMcpStdioEnv", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () { return chunkDQFTAD3I_cjs.mergeMcpStdioEnv; }
|
|
339
|
+
});
|
|
340
|
+
Object.defineProperty(exports, "mergeProcessEnv", {
|
|
341
|
+
enumerable: true,
|
|
342
|
+
get: function () { return chunkDQFTAD3I_cjs.mergeProcessEnv; }
|
|
331
343
|
});
|
|
332
344
|
Object.defineProperty(exports, "DEFAULT_GREP_HEAD_LIMIT", {
|
|
333
345
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkQ3L4GIBG_cjs.DEFAULT_GREP_HEAD_LIMIT; }
|
|
335
347
|
});
|
|
336
348
|
Object.defineProperty(exports, "HookManager", {
|
|
337
349
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkQ3L4GIBG_cjs.HookManager; }
|
|
339
351
|
});
|
|
340
352
|
Object.defineProperty(exports, "MAX_LINE_LENGTH", {
|
|
341
353
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkQ3L4GIBG_cjs.MAX_LINE_LENGTH; }
|
|
343
355
|
});
|
|
344
356
|
Object.defineProperty(exports, "ToolRegistry", {
|
|
345
357
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkQ3L4GIBG_cjs.ToolRegistry; }
|
|
347
359
|
});
|
|
348
360
|
Object.defineProperty(exports, "agentTool", {
|
|
349
361
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkQ3L4GIBG_cjs.agentTool; }
|
|
351
363
|
});
|
|
352
364
|
Object.defineProperty(exports, "bashTool", {
|
|
353
365
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkQ3L4GIBG_cjs.bashTool; }
|
|
355
367
|
});
|
|
356
368
|
Object.defineProperty(exports, "buildHookEnv", {
|
|
357
369
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkQ3L4GIBG_cjs.buildHookEnv; }
|
|
359
371
|
});
|
|
360
372
|
Object.defineProperty(exports, "createAgentTool", {
|
|
361
373
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkQ3L4GIBG_cjs.createAgentTool; }
|
|
363
375
|
});
|
|
364
376
|
Object.defineProperty(exports, "createAskUserQuestionTool", {
|
|
365
377
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkQ3L4GIBG_cjs.createAskUserQuestionTool; }
|
|
367
379
|
});
|
|
368
380
|
Object.defineProperty(exports, "createFunctionHook", {
|
|
369
381
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkQ3L4GIBG_cjs.createFunctionHook; }
|
|
371
383
|
});
|
|
372
384
|
Object.defineProperty(exports, "createSkillTool", {
|
|
373
385
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkQ3L4GIBG_cjs.createSkillTool; }
|
|
375
387
|
});
|
|
376
388
|
Object.defineProperty(exports, "createTool", {
|
|
377
389
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkQ3L4GIBG_cjs.createTool; }
|
|
379
391
|
});
|
|
380
392
|
Object.defineProperty(exports, "editTool", {
|
|
381
393
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkQ3L4GIBG_cjs.editTool; }
|
|
383
395
|
});
|
|
384
396
|
Object.defineProperty(exports, "formatAnswerSummary", {
|
|
385
397
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkQ3L4GIBG_cjs.formatAnswerSummary; }
|
|
387
399
|
});
|
|
388
400
|
Object.defineProperty(exports, "formatAskUserQuestionPrompt", {
|
|
389
401
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkQ3L4GIBG_cjs.formatAskUserQuestionPrompt; }
|
|
391
403
|
});
|
|
392
404
|
Object.defineProperty(exports, "getAllBuiltinTools", {
|
|
393
405
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkQ3L4GIBG_cjs.getAllBuiltinTools; }
|
|
395
407
|
});
|
|
396
408
|
Object.defineProperty(exports, "getFileSystemTools", {
|
|
397
409
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkQ3L4GIBG_cjs.getFileSystemTools; }
|
|
399
411
|
});
|
|
400
412
|
Object.defineProperty(exports, "getGlobalRegistry", {
|
|
401
413
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkQ3L4GIBG_cjs.getGlobalRegistry; }
|
|
403
415
|
});
|
|
404
416
|
Object.defineProperty(exports, "getGrepTools", {
|
|
405
417
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkQ3L4GIBG_cjs.getGrepTools; }
|
|
407
419
|
});
|
|
408
420
|
Object.defineProperty(exports, "getInteractionTools", {
|
|
409
421
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkQ3L4GIBG_cjs.getInteractionTools; }
|
|
411
423
|
});
|
|
412
424
|
Object.defineProperty(exports, "getSafeBuiltinTools", {
|
|
413
425
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkQ3L4GIBG_cjs.getSafeBuiltinTools; }
|
|
415
427
|
});
|
|
416
428
|
Object.defineProperty(exports, "getShellTools", {
|
|
417
429
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkQ3L4GIBG_cjs.getShellTools; }
|
|
419
431
|
});
|
|
420
432
|
Object.defineProperty(exports, "getSkillTools", {
|
|
421
433
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkQ3L4GIBG_cjs.getSkillTools; }
|
|
423
435
|
});
|
|
424
436
|
Object.defineProperty(exports, "getSubagentTools", {
|
|
425
437
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkQ3L4GIBG_cjs.getSubagentTools; }
|
|
427
439
|
});
|
|
428
440
|
Object.defineProperty(exports, "getTaskTools", {
|
|
429
441
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunkQ3L4GIBG_cjs.getTaskTools; }
|
|
431
443
|
});
|
|
432
444
|
Object.defineProperty(exports, "getWebTools", {
|
|
433
445
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunkQ3L4GIBG_cjs.getWebTools; }
|
|
435
447
|
});
|
|
436
448
|
Object.defineProperty(exports, "globTool", {
|
|
437
449
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunkQ3L4GIBG_cjs.globTool; }
|
|
439
451
|
});
|
|
440
452
|
Object.defineProperty(exports, "grepTool", {
|
|
441
453
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunkQ3L4GIBG_cjs.grepTool; }
|
|
443
455
|
});
|
|
444
456
|
Object.defineProperty(exports, "loadHooksSettingsFromProject", {
|
|
445
457
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
458
|
+
get: function () { return chunkQ3L4GIBG_cjs.loadHooksSettingsFromProject; }
|
|
447
459
|
});
|
|
448
460
|
Object.defineProperty(exports, "loadHooksSettingsFromUser", {
|
|
449
461
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
462
|
+
get: function () { return chunkQ3L4GIBG_cjs.loadHooksSettingsFromUser; }
|
|
451
463
|
});
|
|
452
464
|
Object.defineProperty(exports, "matchTool", {
|
|
453
465
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunkQ3L4GIBG_cjs.matchTool; }
|
|
455
467
|
});
|
|
456
468
|
Object.defineProperty(exports, "mergeCommandHookLayers", {
|
|
457
469
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
470
|
+
get: function () { return chunkQ3L4GIBG_cjs.mergeCommandHookLayers; }
|
|
459
471
|
});
|
|
460
472
|
Object.defineProperty(exports, "parseHooksSettingsFile", {
|
|
461
473
|
enumerable: true,
|
|
462
|
-
get: function () { return
|
|
474
|
+
get: function () { return chunkQ3L4GIBG_cjs.parseHooksSettingsFile; }
|
|
463
475
|
});
|
|
464
476
|
Object.defineProperty(exports, "questionTool", {
|
|
465
477
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
478
|
+
get: function () { return chunkQ3L4GIBG_cjs.questionTool; }
|
|
467
479
|
});
|
|
468
480
|
Object.defineProperty(exports, "readFileTool", {
|
|
469
481
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
482
|
+
get: function () { return chunkQ3L4GIBG_cjs.readFileTool; }
|
|
471
483
|
});
|
|
472
484
|
Object.defineProperty(exports, "subagentRequestSchema", {
|
|
473
485
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
486
|
+
get: function () { return chunkQ3L4GIBG_cjs.subagentRequestSchema; }
|
|
475
487
|
});
|
|
476
488
|
Object.defineProperty(exports, "taskCreateTool", {
|
|
477
489
|
enumerable: true,
|
|
478
|
-
get: function () { return
|
|
490
|
+
get: function () { return chunkQ3L4GIBG_cjs.taskCreateTool; }
|
|
479
491
|
});
|
|
480
492
|
Object.defineProperty(exports, "taskListTool", {
|
|
481
493
|
enumerable: true,
|
|
482
|
-
get: function () { return
|
|
494
|
+
get: function () { return chunkQ3L4GIBG_cjs.taskListTool; }
|
|
483
495
|
});
|
|
484
496
|
Object.defineProperty(exports, "taskUpdateTool", {
|
|
485
497
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
498
|
+
get: function () { return chunkQ3L4GIBG_cjs.taskUpdateTool; }
|
|
487
499
|
});
|
|
488
500
|
Object.defineProperty(exports, "truncateMatchLineForDisplay", {
|
|
489
501
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunkQ3L4GIBG_cjs.truncateMatchLineForDisplay; }
|
|
491
503
|
});
|
|
492
504
|
Object.defineProperty(exports, "webFetchTool", {
|
|
493
505
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunkQ3L4GIBG_cjs.webFetchTool; }
|
|
495
507
|
});
|
|
496
508
|
Object.defineProperty(exports, "webSearchTool", {
|
|
497
509
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunkQ3L4GIBG_cjs.webSearchTool; }
|
|
499
511
|
});
|
|
500
512
|
Object.defineProperty(exports, "writeFileTool", {
|
|
501
513
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunkQ3L4GIBG_cjs.writeFileTool; }
|
|
503
515
|
});
|
|
504
516
|
exports.AgentStream = AgentStream;
|
|
505
517
|
exports.createStream = createStream;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { S as StorageConfig, M as Message, a as SessionInfo, b as StorageAdapter, T as ToolResult, c as ToolDefinition, A as AgentConfig, d as SystemPrompt, e as StreamEvent, f as AgentResult, g as
|
|
2
|
-
export {
|
|
3
|
-
import { T as ToolRegistry, S as SkillRegistry } from './index-
|
|
4
|
-
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH, a as SkillLoader, b as SkillLoaderConfig, c as SubagentRequest, d as SubagentRunner, e as ToolExecuteOptions, f as ToolRegistryConfig, g as agentTool, h as bashTool, i as createAgentTool, j as createSkillLoader, k as createSkillRegistry, l as createSkillTool, m as createTool, n as editTool, o as getAllBuiltinTools, p as getFileSystemTools, q as getGlobalRegistry, r as getGrepTools, s as getSafeBuiltinTools, t as getShellTools, u as getSkillTools, v as getSubagentTools, w as getTaskTools, x as getWebTools, y as globTool, z as grepTool, A as loadHooksSettingsFromProject, B as loadHooksSettingsFromUser, E as parseHooksSettingsFile, F as readFileTool, G as subagentRequestSchema, H as taskCreateTool, I as taskListTool, J as taskUpdateTool, K as truncateMatchLineForDisplay, L as webFetchTool, N as webSearchTool, O as writeFileTool } from './index-
|
|
5
|
-
export { AnthropicAdapter, AnthropicConfig, CreateModelConfig, ModelProvider, OllamaAdapter, OllamaConfig, OpenAIAdapter, OpenAIConfig, createAnthropic, createModel, createOllama, createOpenAI } from './models/index.cjs';
|
|
1
|
+
import { S as StorageConfig, M as Message, a as SessionInfo, b as StorageAdapter, T as ToolResult, c as ToolDefinition, A as AgentConfig, d as SystemPrompt, e as StreamEvent, f as AgentResult, g as ModelAdapter, h as MCPServerConfig, i as SessionTokenUsage, j as TokenUsage, k as StreamChunk, P as ParsedSkill, l as MemoryConfig } from './types-BLf9IqRs.cjs';
|
|
2
|
+
export { m as AgentCallbacks, n as AgentModelConfig, o as AskUserQuestionAnswer, p as AskUserQuestionItem, q as AskUserQuestionResolver, r as AssistantMessage, C as CLIConfig, s as CanUseToolCallback, t as ChatOptions, u as CommandHookConfig, v as CompletionResult, w as ContentPart, x as ContextManagerConfig, y as CreateAskUserQuestionToolOptions, F as FlatCommandHookEntry, z as FunctionHook, H as HookContext, B as HookEventType, D as HookGroupConfig, E as HookManager, G as HookResult, I as HooksSettings, J as HooksSettingsFile, K as ImageContent, L as MCPOptions, N as MCPPromptArgument, O as MCPResourceContent, Q as MessageRole, R as ModelCapabilities, U as ModelParams, V as RunOptions, W as SessionListOptions, X as SkillConfig, Y as SkillDefinition, Z as SkillMetadata, _ as SkillOptions, $ as StreamChunkType, a0 as StreamEventAnnotations, a1 as StreamEventType, a2 as SystemMessage, a3 as SystemPromptConfig, a4 as TextContent, a5 as ThinkingContent, a6 as ToolCall, a7 as ToolExecutionContext, a8 as ToolExecutionPolicy, a9 as ToolHandler, aa as ToolListOptions, ab as ToolMessage, ac as ToolResultMetadata, ad as ToolSchema, ae as UserMessage, af as buildHookEnv, ag as createAskUserQuestionTool, ah as createFunctionHook, ai as formatAnswerSummary, aj as formatAskUserQuestionPrompt, ak as getInteractionTools, al as matchTool, am as mergeCommandHookLayers, an as questionTool } from './types-BLf9IqRs.cjs';
|
|
3
|
+
import { T as ToolRegistry, S as SkillRegistry } from './index-DGPDMbW5.cjs';
|
|
4
|
+
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH, a as SkillLoader, b as SkillLoaderConfig, c as SubagentRequest, d as SubagentRunner, e as ToolExecuteOptions, f as ToolRegistryConfig, g as agentTool, h as bashTool, i as createAgentTool, j as createSkillLoader, k as createSkillRegistry, l as createSkillTool, m as createTool, n as editTool, o as getAllBuiltinTools, p as getFileSystemTools, q as getGlobalRegistry, r as getGrepTools, s as getSafeBuiltinTools, t as getShellTools, u as getSkillTools, v as getSubagentTools, w as getTaskTools, x as getWebTools, y as globTool, z as grepTool, A as loadHooksSettingsFromProject, B as loadHooksSettingsFromUser, E as parseHooksSettingsFile, F as readFileTool, G as subagentRequestSchema, H as taskCreateTool, I as taskListTool, J as taskUpdateTool, K as truncateMatchLineForDisplay, L as webFetchTool, N as webSearchTool, O as writeFileTool } from './index-DGPDMbW5.cjs';
|
|
5
|
+
export { AnthropicAdapter, AnthropicConfig, AnthropicFetchRetryOptions, CreateModelConfig, ModelProvider, OllamaAdapter, OllamaConfig, OpenAIAdapter, OpenAIConfig, createAnthropic, createModel, createOllama, createOpenAI } from './models/index.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
|
+
/** Published package version, read from package root `package.json`. */
|
|
9
|
+
declare const PACKAGE_VERSION: string;
|
|
10
|
+
|
|
8
11
|
/**
|
|
9
12
|
* 会话管理器配置
|
|
10
13
|
*/
|
|
@@ -185,6 +188,7 @@ declare class Agent {
|
|
|
185
188
|
private agentDepth;
|
|
186
189
|
private activeSubagentRuns;
|
|
187
190
|
private sessionUsage;
|
|
191
|
+
private static resolveModel;
|
|
188
192
|
constructor(config: AgentConfig);
|
|
189
193
|
/**
|
|
190
194
|
* 注册内置 + 自定义工具,或仅 {@link AgentConfig.exclusiveTools}。
|
|
@@ -243,6 +247,10 @@ declare class Agent {
|
|
|
243
247
|
* 获取 Skill 注册中心
|
|
244
248
|
*/
|
|
245
249
|
getSkillRegistry(): SkillRegistry;
|
|
250
|
+
/**
|
|
251
|
+
* 解析后的模型适配器(`modelConfig` 已在构造时合并 `env` 并实例化)。
|
|
252
|
+
*/
|
|
253
|
+
getModel(): ModelAdapter;
|
|
246
254
|
/**
|
|
247
255
|
* 处理用户输入,检测并处理 skill 调用
|
|
248
256
|
* @param input 用户输入
|
|
@@ -353,6 +361,18 @@ declare class Agent {
|
|
|
353
361
|
*/
|
|
354
362
|
declare function createAgent(config: AgentConfig): Agent;
|
|
355
363
|
|
|
364
|
+
/**
|
|
365
|
+
* 当前 `process.env` 中值为 string 的键的快照,再叠 `overrides`(后者覆盖同名键)。
|
|
366
|
+
* 供应用层构造 model(如显式传入 `apiKey`)与 Agent 内部合并 MCP stdio 环境共用。
|
|
367
|
+
*
|
|
368
|
+
* 注意:快照包含当前进程 environ 中的敏感变量;传入 MCP 子进程时由调用方控制 `env` / `overrides`。
|
|
369
|
+
*/
|
|
370
|
+
declare function mergeProcessEnv(overrides?: Record<string, string>): Record<string, string>;
|
|
371
|
+
/**
|
|
372
|
+
* stdio MCP 子进程环境:`process.env` + 可选 Agent 级 `env` + 可选单服务 `MCPServerConfig.env`(优先级递增)。
|
|
373
|
+
*/
|
|
374
|
+
declare function mergeMcpStdioEnv(agentEnv?: Record<string, string>, serverEnv?: Record<string, string>): Record<string, string>;
|
|
375
|
+
|
|
356
376
|
/**
|
|
357
377
|
* Agent SDK 默认系统提示词
|
|
358
378
|
*
|
|
@@ -661,4 +681,4 @@ declare function loadMCPConfig(configPath?: string, startDir?: string, userBaseP
|
|
|
661
681
|
*/
|
|
662
682
|
declare function validateMCPConfig(config: MCPConfigFile): string[];
|
|
663
683
|
|
|
664
|
-
export { Agent, AgentConfig, AgentResult, AgentStream, DEFAULT_SYSTEM_PROMPT, type HttpMCPConfig, JsonlStorage, MCPAdapter, MCPClient, type MCPClientConfig, type MCPConfigFile, type MCPConfigLoadResult, type MCPPrompt, type MCPResource, MCPServerConfig, type MCPTool, MemoryConfig, MemoryManager, MemoryStorage, Message, ParsedSkill, type PromptMessage, SessionInfo, SessionManager, SessionTokenUsage, SkillRegistry, type StdioMCPConfig, StorageAdapter, StorageConfig, StreamChunk, StreamChunkProcessor, type StreamChunkProcessorOptions, StreamEvent, type StreamOptions, SystemPrompt, TokenUsage, ToolDefinition, ToolRegistry, ToolResult, createAgent, createJsonlStorage, createMCPAdapter, createMCPClient, createMemoryStorage, createSessionManager, createStorage, createStream, fromAsyncIterable, getLatestSessionId, getSessionStoragePath, loadMCPConfig, parseSkillMd, validateMCPConfig };
|
|
684
|
+
export { Agent, AgentConfig, AgentResult, AgentStream, DEFAULT_SYSTEM_PROMPT, type HttpMCPConfig, JsonlStorage, MCPAdapter, MCPClient, type MCPClientConfig, type MCPConfigFile, type MCPConfigLoadResult, type MCPPrompt, type MCPResource, MCPServerConfig, type MCPTool, MemoryConfig, MemoryManager, MemoryStorage, Message, ModelAdapter, PACKAGE_VERSION, ParsedSkill, type PromptMessage, SessionInfo, SessionManager, SessionTokenUsage, SkillRegistry, type StdioMCPConfig, StorageAdapter, StorageConfig, StreamChunk, StreamChunkProcessor, type StreamChunkProcessorOptions, StreamEvent, type StreamOptions, SystemPrompt, TokenUsage, ToolDefinition, ToolRegistry, ToolResult, createAgent, createJsonlStorage, createMCPAdapter, createMCPClient, createMemoryStorage, createSessionManager, createStorage, createStream, fromAsyncIterable, getLatestSessionId, getSessionStoragePath, loadMCPConfig, mergeMcpStdioEnv, mergeProcessEnv, parseSkillMd, validateMCPConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { S as StorageConfig, M as Message, a as SessionInfo, b as StorageAdapter, T as ToolResult, c as ToolDefinition, A as AgentConfig, d as SystemPrompt, e as StreamEvent, f as AgentResult, g as
|
|
2
|
-
export {
|
|
3
|
-
import { T as ToolRegistry, S as SkillRegistry } from './index-
|
|
4
|
-
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH, a as SkillLoader, b as SkillLoaderConfig, c as SubagentRequest, d as SubagentRunner, e as ToolExecuteOptions, f as ToolRegistryConfig, g as agentTool, h as bashTool, i as createAgentTool, j as createSkillLoader, k as createSkillRegistry, l as createSkillTool, m as createTool, n as editTool, o as getAllBuiltinTools, p as getFileSystemTools, q as getGlobalRegistry, r as getGrepTools, s as getSafeBuiltinTools, t as getShellTools, u as getSkillTools, v as getSubagentTools, w as getTaskTools, x as getWebTools, y as globTool, z as grepTool, A as loadHooksSettingsFromProject, B as loadHooksSettingsFromUser, E as parseHooksSettingsFile, F as readFileTool, G as subagentRequestSchema, H as taskCreateTool, I as taskListTool, J as taskUpdateTool, K as truncateMatchLineForDisplay, L as webFetchTool, N as webSearchTool, O as writeFileTool } from './index-
|
|
5
|
-
export { AnthropicAdapter, AnthropicConfig, CreateModelConfig, ModelProvider, OllamaAdapter, OllamaConfig, OpenAIAdapter, OpenAIConfig, createAnthropic, createModel, createOllama, createOpenAI } from './models/index.js';
|
|
1
|
+
import { S as StorageConfig, M as Message, a as SessionInfo, b as StorageAdapter, T as ToolResult, c as ToolDefinition, A as AgentConfig, d as SystemPrompt, e as StreamEvent, f as AgentResult, g as ModelAdapter, h as MCPServerConfig, i as SessionTokenUsage, j as TokenUsage, k as StreamChunk, P as ParsedSkill, l as MemoryConfig } from './types-BLf9IqRs.js';
|
|
2
|
+
export { m as AgentCallbacks, n as AgentModelConfig, o as AskUserQuestionAnswer, p as AskUserQuestionItem, q as AskUserQuestionResolver, r as AssistantMessage, C as CLIConfig, s as CanUseToolCallback, t as ChatOptions, u as CommandHookConfig, v as CompletionResult, w as ContentPart, x as ContextManagerConfig, y as CreateAskUserQuestionToolOptions, F as FlatCommandHookEntry, z as FunctionHook, H as HookContext, B as HookEventType, D as HookGroupConfig, E as HookManager, G as HookResult, I as HooksSettings, J as HooksSettingsFile, K as ImageContent, L as MCPOptions, N as MCPPromptArgument, O as MCPResourceContent, Q as MessageRole, R as ModelCapabilities, U as ModelParams, V as RunOptions, W as SessionListOptions, X as SkillConfig, Y as SkillDefinition, Z as SkillMetadata, _ as SkillOptions, $ as StreamChunkType, a0 as StreamEventAnnotations, a1 as StreamEventType, a2 as SystemMessage, a3 as SystemPromptConfig, a4 as TextContent, a5 as ThinkingContent, a6 as ToolCall, a7 as ToolExecutionContext, a8 as ToolExecutionPolicy, a9 as ToolHandler, aa as ToolListOptions, ab as ToolMessage, ac as ToolResultMetadata, ad as ToolSchema, ae as UserMessage, af as buildHookEnv, ag as createAskUserQuestionTool, ah as createFunctionHook, ai as formatAnswerSummary, aj as formatAskUserQuestionPrompt, ak as getInteractionTools, al as matchTool, am as mergeCommandHookLayers, an as questionTool } from './types-BLf9IqRs.js';
|
|
3
|
+
import { T as ToolRegistry, S as SkillRegistry } from './index-nEfayAzD.js';
|
|
4
|
+
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH, a as SkillLoader, b as SkillLoaderConfig, c as SubagentRequest, d as SubagentRunner, e as ToolExecuteOptions, f as ToolRegistryConfig, g as agentTool, h as bashTool, i as createAgentTool, j as createSkillLoader, k as createSkillRegistry, l as createSkillTool, m as createTool, n as editTool, o as getAllBuiltinTools, p as getFileSystemTools, q as getGlobalRegistry, r as getGrepTools, s as getSafeBuiltinTools, t as getShellTools, u as getSkillTools, v as getSubagentTools, w as getTaskTools, x as getWebTools, y as globTool, z as grepTool, A as loadHooksSettingsFromProject, B as loadHooksSettingsFromUser, E as parseHooksSettingsFile, F as readFileTool, G as subagentRequestSchema, H as taskCreateTool, I as taskListTool, J as taskUpdateTool, K as truncateMatchLineForDisplay, L as webFetchTool, N as webSearchTool, O as writeFileTool } from './index-nEfayAzD.js';
|
|
5
|
+
export { AnthropicAdapter, AnthropicConfig, AnthropicFetchRetryOptions, CreateModelConfig, ModelProvider, OllamaAdapter, OllamaConfig, OpenAIAdapter, OpenAIConfig, createAnthropic, createModel, createOllama, createOpenAI } from './models/index.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
|
+
/** Published package version, read from package root `package.json`. */
|
|
9
|
+
declare const PACKAGE_VERSION: string;
|
|
10
|
+
|
|
8
11
|
/**
|
|
9
12
|
* 会话管理器配置
|
|
10
13
|
*/
|
|
@@ -185,6 +188,7 @@ declare class Agent {
|
|
|
185
188
|
private agentDepth;
|
|
186
189
|
private activeSubagentRuns;
|
|
187
190
|
private sessionUsage;
|
|
191
|
+
private static resolveModel;
|
|
188
192
|
constructor(config: AgentConfig);
|
|
189
193
|
/**
|
|
190
194
|
* 注册内置 + 自定义工具,或仅 {@link AgentConfig.exclusiveTools}。
|
|
@@ -243,6 +247,10 @@ declare class Agent {
|
|
|
243
247
|
* 获取 Skill 注册中心
|
|
244
248
|
*/
|
|
245
249
|
getSkillRegistry(): SkillRegistry;
|
|
250
|
+
/**
|
|
251
|
+
* 解析后的模型适配器(`modelConfig` 已在构造时合并 `env` 并实例化)。
|
|
252
|
+
*/
|
|
253
|
+
getModel(): ModelAdapter;
|
|
246
254
|
/**
|
|
247
255
|
* 处理用户输入,检测并处理 skill 调用
|
|
248
256
|
* @param input 用户输入
|
|
@@ -353,6 +361,18 @@ declare class Agent {
|
|
|
353
361
|
*/
|
|
354
362
|
declare function createAgent(config: AgentConfig): Agent;
|
|
355
363
|
|
|
364
|
+
/**
|
|
365
|
+
* 当前 `process.env` 中值为 string 的键的快照,再叠 `overrides`(后者覆盖同名键)。
|
|
366
|
+
* 供应用层构造 model(如显式传入 `apiKey`)与 Agent 内部合并 MCP stdio 环境共用。
|
|
367
|
+
*
|
|
368
|
+
* 注意:快照包含当前进程 environ 中的敏感变量;传入 MCP 子进程时由调用方控制 `env` / `overrides`。
|
|
369
|
+
*/
|
|
370
|
+
declare function mergeProcessEnv(overrides?: Record<string, string>): Record<string, string>;
|
|
371
|
+
/**
|
|
372
|
+
* stdio MCP 子进程环境:`process.env` + 可选 Agent 级 `env` + 可选单服务 `MCPServerConfig.env`(优先级递增)。
|
|
373
|
+
*/
|
|
374
|
+
declare function mergeMcpStdioEnv(agentEnv?: Record<string, string>, serverEnv?: Record<string, string>): Record<string, string>;
|
|
375
|
+
|
|
356
376
|
/**
|
|
357
377
|
* Agent SDK 默认系统提示词
|
|
358
378
|
*
|
|
@@ -661,4 +681,4 @@ declare function loadMCPConfig(configPath?: string, startDir?: string, userBaseP
|
|
|
661
681
|
*/
|
|
662
682
|
declare function validateMCPConfig(config: MCPConfigFile): string[];
|
|
663
683
|
|
|
664
|
-
export { Agent, AgentConfig, AgentResult, AgentStream, DEFAULT_SYSTEM_PROMPT, type HttpMCPConfig, JsonlStorage, MCPAdapter, MCPClient, type MCPClientConfig, type MCPConfigFile, type MCPConfigLoadResult, type MCPPrompt, type MCPResource, MCPServerConfig, type MCPTool, MemoryConfig, MemoryManager, MemoryStorage, Message, ParsedSkill, type PromptMessage, SessionInfo, SessionManager, SessionTokenUsage, SkillRegistry, type StdioMCPConfig, StorageAdapter, StorageConfig, StreamChunk, StreamChunkProcessor, type StreamChunkProcessorOptions, StreamEvent, type StreamOptions, SystemPrompt, TokenUsage, ToolDefinition, ToolRegistry, ToolResult, createAgent, createJsonlStorage, createMCPAdapter, createMCPClient, createMemoryStorage, createSessionManager, createStorage, createStream, fromAsyncIterable, getLatestSessionId, getSessionStoragePath, loadMCPConfig, parseSkillMd, validateMCPConfig };
|
|
684
|
+
export { Agent, AgentConfig, AgentResult, AgentStream, DEFAULT_SYSTEM_PROMPT, type HttpMCPConfig, JsonlStorage, MCPAdapter, MCPClient, type MCPClientConfig, type MCPConfigFile, type MCPConfigLoadResult, type MCPPrompt, type MCPResource, MCPServerConfig, type MCPTool, MemoryConfig, MemoryManager, MemoryStorage, Message, ModelAdapter, PACKAGE_VERSION, ParsedSkill, type PromptMessage, SessionInfo, SessionManager, SessionTokenUsage, SkillRegistry, type StdioMCPConfig, StorageAdapter, StorageConfig, StreamChunk, StreamChunkProcessor, type StreamChunkProcessorOptions, StreamEvent, type StreamOptions, SystemPrompt, TokenUsage, ToolDefinition, ToolRegistry, ToolResult, createAgent, createJsonlStorage, createMCPAdapter, createMCPClient, createMemoryStorage, createSessionManager, createStorage, createStream, fromAsyncIterable, getLatestSessionId, getSessionStoragePath, loadMCPConfig, mergeMcpStdioEnv, mergeProcessEnv, parseSkillMd, validateMCPConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import './chunk-A3S3AGE3.js';
|
|
3
|
-
export { Agent, DEFAULT_SYSTEM_PROMPT, JsonlStorage, MCPAdapter, MCPClient, MemoryManager, MemoryStorage, SessionManager, SkillLoader, SkillRegistry, StreamChunkProcessor, createAgent, createJsonlStorage, createMCPAdapter, createMCPClient, createMemoryStorage, createSessionManager, createSkillLoader, createSkillRegistry, createStorage, getLatestSessionId, getSessionStoragePath, loadMCPConfig, parseSkillMd, validateMCPConfig } from './chunk-
|
|
4
|
-
export { AnthropicAdapter, OllamaAdapter, OpenAIAdapter, createAnthropic, createModel, createOllama, createOpenAI } from './chunk-
|
|
5
|
-
export { DEFAULT_GREP_HEAD_LIMIT, HookManager, MAX_LINE_LENGTH, ToolRegistry, agentTool, bashTool, buildHookEnv, createAgentTool, createAskUserQuestionTool, createFunctionHook, createSkillTool, createTool, editTool, formatAnswerSummary, formatAskUserQuestionPrompt, getAllBuiltinTools, getFileSystemTools, getGlobalRegistry, getGrepTools, getInteractionTools, getSafeBuiltinTools, getShellTools, getSkillTools, getSubagentTools, getTaskTools, getWebTools, globTool, grepTool, loadHooksSettingsFromProject, loadHooksSettingsFromUser, matchTool, mergeCommandHookLayers, parseHooksSettingsFile, questionTool, readFileTool, subagentRequestSchema, taskCreateTool, taskListTool, taskUpdateTool, truncateMatchLineForDisplay, webFetchTool, webSearchTool, writeFileTool } from './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
export { Agent, DEFAULT_SYSTEM_PROMPT, JsonlStorage, MCPAdapter, MCPClient, MemoryManager, MemoryStorage, PACKAGE_VERSION, SessionManager, SkillLoader, SkillRegistry, StreamChunkProcessor, createAgent, createJsonlStorage, createMCPAdapter, createMCPClient, createMemoryStorage, createSessionManager, createSkillLoader, createSkillRegistry, createStorage, getLatestSessionId, getSessionStoragePath, loadMCPConfig, parseSkillMd, validateMCPConfig } from './chunk-DXMVWGLJ.js';
|
|
4
|
+
export { AnthropicAdapter, OllamaAdapter, OpenAIAdapter, createAnthropic, createModel, createOllama, createOpenAI, mergeMcpStdioEnv, mergeProcessEnv } from './chunk-742JTNYI.js';
|
|
5
|
+
export { DEFAULT_GREP_HEAD_LIMIT, HookManager, MAX_LINE_LENGTH, ToolRegistry, agentTool, bashTool, buildHookEnv, createAgentTool, createAskUserQuestionTool, createFunctionHook, createSkillTool, createTool, editTool, formatAnswerSummary, formatAskUserQuestionPrompt, getAllBuiltinTools, getFileSystemTools, getGlobalRegistry, getGrepTools, getInteractionTools, getSafeBuiltinTools, getShellTools, getSkillTools, getSubagentTools, getTaskTools, getWebTools, globTool, grepTool, loadHooksSettingsFromProject, loadHooksSettingsFromUser, matchTool, mergeCommandHookLayers, parseHooksSettingsFile, questionTool, readFileTool, subagentRequestSchema, taskCreateTool, taskListTool, taskUpdateTool, truncateMatchLineForDisplay, webFetchTool, webSearchTool, writeFileTool } from './chunk-THKEF32L.js';
|
|
6
|
+
import './chunk-LOYIGOBZ.js';
|
|
7
7
|
|
|
8
8
|
// src/streaming/event-emitter.ts
|
|
9
9
|
var AgentStream = class _AgentStream {
|