@ddlqhd/agent-sdk 0.2.0 → 0.2.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 +2 -1
- package/dist/{chunk-6X7EYQLS.cjs → chunk-JXAJQGV5.cjs} +24 -14
- package/dist/chunk-JXAJQGV5.cjs.map +1 -0
- package/dist/{chunk-Z45DHTDX.cjs → chunk-P2X3AMDK.cjs} +34 -4
- package/dist/chunk-P2X3AMDK.cjs.map +1 -0
- package/dist/{chunk-MEJHTQJM.js → chunk-TKUPLTGJ.js} +31 -5
- package/dist/chunk-TKUPLTGJ.js.map +1 -0
- package/dist/{chunk-EQ5CXH44.js → chunk-UHENMHUS.js} +17 -7
- package/dist/chunk-UHENMHUS.js.map +1 -0
- package/dist/cli/index.cjs +28 -28
- package/dist/cli/index.js +2 -2
- package/dist/{index-Cw3SfEAB.d.ts → index-CnrY1ZA2.d.ts} +25 -2
- package/dist/{index-D2Qntkn_.d.cts → index-DzBt4ewK.d.cts} +25 -2
- package/dist/index.cjs +90 -74
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/models/index.d.cts +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/tools/index.cjs +64 -48
- package/dist/tools/index.d.cts +3 -3
- package/dist/tools/index.d.ts +3 -3
- package/dist/tools/index.js +1 -1
- package/dist/{types-CWPAYWzr.d.cts → types-BUwjMwNH.d.cts} +5 -0
- package/dist/{types-CWPAYWzr.d.ts → types-BUwjMwNH.d.ts} +5 -0
- package/package.json +1 -1
- package/dist/chunk-6X7EYQLS.cjs.map +0 -1
- package/dist/chunk-EQ5CXH44.js.map +0 -1
- package/dist/chunk-MEJHTQJM.js.map +0 -1
- package/dist/chunk-Z45DHTDX.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
require('./chunk-5Y56A64C.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkJXAJQGV5_cjs = require('./chunk-JXAJQGV5.cjs');
|
|
6
6
|
var chunkNYZD3THB_cjs = require('./chunk-NYZD3THB.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkP2X3AMDK_cjs = require('./chunk-P2X3AMDK.cjs');
|
|
8
8
|
require('./chunk-OZO7D77N.cjs');
|
|
9
9
|
|
|
10
10
|
// src/streaming/event-emitter.ts
|
|
@@ -203,127 +203,127 @@ function fromAsyncIterable(iterable) {
|
|
|
203
203
|
|
|
204
204
|
Object.defineProperty(exports, "Agent", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkJXAJQGV5_cjs.Agent; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "DEFAULT_MAX_ITERATIONS", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkJXAJQGV5_cjs.DEFAULT_MAX_ITERATIONS; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "DEFAULT_SYSTEM_PROMPT", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkJXAJQGV5_cjs.DEFAULT_SYSTEM_PROMPT; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "JsonlStorage", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkJXAJQGV5_cjs.JsonlStorage; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "MCPAdapter", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkJXAJQGV5_cjs.MCPAdapter; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "MCPClient", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkJXAJQGV5_cjs.MCPClient; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "MODEL_STREAM_EVENT_TYPES", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkJXAJQGV5_cjs.MODEL_STREAM_EVENT_TYPES; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "MemoryManager", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkJXAJQGV5_cjs.MemoryManager; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "MemoryStorage", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkJXAJQGV5_cjs.MemoryStorage; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "PACKAGE_VERSION", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkJXAJQGV5_cjs.PACKAGE_VERSION; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "SessionManager", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkJXAJQGV5_cjs.SessionManager; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "SkillLoader", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkJXAJQGV5_cjs.SkillLoader; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "SkillRegistry", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkJXAJQGV5_cjs.SkillRegistry; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "StreamChunkProcessor", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkJXAJQGV5_cjs.StreamChunkProcessor; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "createAgent", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkJXAJQGV5_cjs.createAgent; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "createJsonlStorage", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkJXAJQGV5_cjs.createJsonlStorage; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "createMCPAdapter", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkJXAJQGV5_cjs.createMCPAdapter; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "createMCPClient", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkJXAJQGV5_cjs.createMCPClient; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "createMemoryStorage", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkJXAJQGV5_cjs.createMemoryStorage; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "createSessionManager", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkJXAJQGV5_cjs.createSessionManager; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "createSkillLoader", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkJXAJQGV5_cjs.createSkillLoader; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "createSkillRegistry", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkJXAJQGV5_cjs.createSkillRegistry; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "createStorage", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkJXAJQGV5_cjs.createStorage; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "formatMcpToolName", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkJXAJQGV5_cjs.formatMcpToolName; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "getLatestSessionId", {
|
|
301
301
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkJXAJQGV5_cjs.getLatestSessionId; }
|
|
303
303
|
});
|
|
304
304
|
Object.defineProperty(exports, "getSessionStoragePath", {
|
|
305
305
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkJXAJQGV5_cjs.getSessionStoragePath; }
|
|
307
307
|
});
|
|
308
308
|
Object.defineProperty(exports, "isMcpPrefixedToolName", {
|
|
309
309
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkJXAJQGV5_cjs.isMcpPrefixedToolName; }
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "isModelStreamEventType", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkJXAJQGV5_cjs.isModelStreamEventType; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "loadMCPConfig", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkJXAJQGV5_cjs.loadMCPConfig; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "parseSkillMd", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkJXAJQGV5_cjs.parseSkillMd; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "validateMCPConfig", {
|
|
325
325
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkJXAJQGV5_cjs.validateMCPConfig; }
|
|
327
327
|
});
|
|
328
328
|
Object.defineProperty(exports, "AnthropicAdapter", {
|
|
329
329
|
enumerable: true,
|
|
@@ -375,167 +375,183 @@ Object.defineProperty(exports, "mergeProcessEnv", {
|
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "DEFAULT_GREP_HEAD_LIMIT", {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkP2X3AMDK_cjs.DEFAULT_GREP_HEAD_LIMIT; }
|
|
379
379
|
});
|
|
380
380
|
Object.defineProperty(exports, "HookManager", {
|
|
381
381
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkP2X3AMDK_cjs.HookManager; }
|
|
383
383
|
});
|
|
384
384
|
Object.defineProperty(exports, "MAX_LINE_LENGTH", {
|
|
385
385
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkP2X3AMDK_cjs.MAX_LINE_LENGTH; }
|
|
387
|
+
});
|
|
388
|
+
Object.defineProperty(exports, "SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES", {
|
|
389
|
+
enumerable: true,
|
|
390
|
+
get: function () { return chunkP2X3AMDK_cjs.SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES; }
|
|
391
|
+
});
|
|
392
|
+
Object.defineProperty(exports, "SUBAGENT_TYPES", {
|
|
393
|
+
enumerable: true,
|
|
394
|
+
get: function () { return chunkP2X3AMDK_cjs.SUBAGENT_TYPES; }
|
|
387
395
|
});
|
|
388
396
|
Object.defineProperty(exports, "ToolRegistry", {
|
|
389
397
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkP2X3AMDK_cjs.ToolRegistry; }
|
|
391
399
|
});
|
|
392
400
|
Object.defineProperty(exports, "agentTool", {
|
|
393
401
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkP2X3AMDK_cjs.agentTool; }
|
|
395
403
|
});
|
|
396
404
|
Object.defineProperty(exports, "bashTool", {
|
|
397
405
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkP2X3AMDK_cjs.bashTool; }
|
|
399
407
|
});
|
|
400
408
|
Object.defineProperty(exports, "buildHookEnv", {
|
|
401
409
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkP2X3AMDK_cjs.buildHookEnv; }
|
|
403
411
|
});
|
|
404
412
|
Object.defineProperty(exports, "createAgentTool", {
|
|
405
413
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkP2X3AMDK_cjs.createAgentTool; }
|
|
407
415
|
});
|
|
408
416
|
Object.defineProperty(exports, "createAskUserQuestionTool", {
|
|
409
417
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkP2X3AMDK_cjs.createAskUserQuestionTool; }
|
|
411
419
|
});
|
|
412
420
|
Object.defineProperty(exports, "createFunctionHook", {
|
|
413
421
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkP2X3AMDK_cjs.createFunctionHook; }
|
|
415
423
|
});
|
|
416
424
|
Object.defineProperty(exports, "createSkillTool", {
|
|
417
425
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkP2X3AMDK_cjs.createSkillTool; }
|
|
419
427
|
});
|
|
420
428
|
Object.defineProperty(exports, "createTool", {
|
|
421
429
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkP2X3AMDK_cjs.createTool; }
|
|
423
431
|
});
|
|
424
432
|
Object.defineProperty(exports, "editTool", {
|
|
425
433
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkP2X3AMDK_cjs.editTool; }
|
|
427
435
|
});
|
|
428
436
|
Object.defineProperty(exports, "formatAnswerSummary", {
|
|
429
437
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkP2X3AMDK_cjs.formatAnswerSummary; }
|
|
431
439
|
});
|
|
432
440
|
Object.defineProperty(exports, "formatAskUserQuestionPrompt", {
|
|
433
441
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunkP2X3AMDK_cjs.formatAskUserQuestionPrompt; }
|
|
435
443
|
});
|
|
436
444
|
Object.defineProperty(exports, "getAllBuiltinTools", {
|
|
437
445
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunkP2X3AMDK_cjs.getAllBuiltinTools; }
|
|
439
447
|
});
|
|
440
448
|
Object.defineProperty(exports, "getFileSystemTools", {
|
|
441
449
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunkP2X3AMDK_cjs.getFileSystemTools; }
|
|
443
451
|
});
|
|
444
452
|
Object.defineProperty(exports, "getGlobalRegistry", {
|
|
445
453
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunkP2X3AMDK_cjs.getGlobalRegistry; }
|
|
447
455
|
});
|
|
448
456
|
Object.defineProperty(exports, "getGrepTools", {
|
|
449
457
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
458
|
+
get: function () { return chunkP2X3AMDK_cjs.getGrepTools; }
|
|
451
459
|
});
|
|
452
460
|
Object.defineProperty(exports, "getInteractionTools", {
|
|
453
461
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
462
|
+
get: function () { return chunkP2X3AMDK_cjs.getInteractionTools; }
|
|
455
463
|
});
|
|
456
464
|
Object.defineProperty(exports, "getPlanningTools", {
|
|
457
465
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunkP2X3AMDK_cjs.getPlanningTools; }
|
|
459
467
|
});
|
|
460
468
|
Object.defineProperty(exports, "getSafeBuiltinTools", {
|
|
461
469
|
enumerable: true,
|
|
462
|
-
get: function () { return
|
|
470
|
+
get: function () { return chunkP2X3AMDK_cjs.getSafeBuiltinTools; }
|
|
463
471
|
});
|
|
464
472
|
Object.defineProperty(exports, "getShellTools", {
|
|
465
473
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
474
|
+
get: function () { return chunkP2X3AMDK_cjs.getShellTools; }
|
|
467
475
|
});
|
|
468
476
|
Object.defineProperty(exports, "getSkillTools", {
|
|
469
477
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
478
|
+
get: function () { return chunkP2X3AMDK_cjs.getSkillTools; }
|
|
471
479
|
});
|
|
472
480
|
Object.defineProperty(exports, "getSubagentTools", {
|
|
473
481
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
482
|
+
get: function () { return chunkP2X3AMDK_cjs.getSubagentTools; }
|
|
475
483
|
});
|
|
476
484
|
Object.defineProperty(exports, "getWebTools", {
|
|
477
485
|
enumerable: true,
|
|
478
|
-
get: function () { return
|
|
486
|
+
get: function () { return chunkP2X3AMDK_cjs.getWebTools; }
|
|
479
487
|
});
|
|
480
488
|
Object.defineProperty(exports, "globTool", {
|
|
481
489
|
enumerable: true,
|
|
482
|
-
get: function () { return
|
|
490
|
+
get: function () { return chunkP2X3AMDK_cjs.globTool; }
|
|
483
491
|
});
|
|
484
492
|
Object.defineProperty(exports, "grepTool", {
|
|
485
493
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
494
|
+
get: function () { return chunkP2X3AMDK_cjs.grepTool; }
|
|
487
495
|
});
|
|
488
496
|
Object.defineProperty(exports, "loadHooksSettingsFromProject", {
|
|
489
497
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
498
|
+
get: function () { return chunkP2X3AMDK_cjs.loadHooksSettingsFromProject; }
|
|
491
499
|
});
|
|
492
500
|
Object.defineProperty(exports, "loadHooksSettingsFromUser", {
|
|
493
501
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunkP2X3AMDK_cjs.loadHooksSettingsFromUser; }
|
|
495
503
|
});
|
|
496
504
|
Object.defineProperty(exports, "matchTool", {
|
|
497
505
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunkP2X3AMDK_cjs.matchTool; }
|
|
499
507
|
});
|
|
500
508
|
Object.defineProperty(exports, "mergeCommandHookLayers", {
|
|
501
509
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunkP2X3AMDK_cjs.mergeCommandHookLayers; }
|
|
503
511
|
});
|
|
504
512
|
Object.defineProperty(exports, "parseHooksSettingsFile", {
|
|
505
513
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunkP2X3AMDK_cjs.parseHooksSettingsFile; }
|
|
507
515
|
});
|
|
508
516
|
Object.defineProperty(exports, "questionTool", {
|
|
509
517
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
518
|
+
get: function () { return chunkP2X3AMDK_cjs.questionTool; }
|
|
511
519
|
});
|
|
512
520
|
Object.defineProperty(exports, "readFileTool", {
|
|
513
521
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
522
|
+
get: function () { return chunkP2X3AMDK_cjs.readFileTool; }
|
|
523
|
+
});
|
|
524
|
+
Object.defineProperty(exports, "resolveSubagentTypeAppend", {
|
|
525
|
+
enumerable: true,
|
|
526
|
+
get: function () { return chunkP2X3AMDK_cjs.resolveSubagentTypeAppend; }
|
|
527
|
+
});
|
|
528
|
+
Object.defineProperty(exports, "subagentExploreDefaultsUnavailableMessage", {
|
|
529
|
+
enumerable: true,
|
|
530
|
+
get: function () { return chunkP2X3AMDK_cjs.subagentExploreDefaultsUnavailableMessage; }
|
|
515
531
|
});
|
|
516
532
|
Object.defineProperty(exports, "subagentRequestSchema", {
|
|
517
533
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
534
|
+
get: function () { return chunkP2X3AMDK_cjs.subagentRequestSchema; }
|
|
519
535
|
});
|
|
520
536
|
Object.defineProperty(exports, "todoWriteTool", {
|
|
521
537
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
538
|
+
get: function () { return chunkP2X3AMDK_cjs.todoWriteTool; }
|
|
523
539
|
});
|
|
524
540
|
Object.defineProperty(exports, "truncateMatchLineForDisplay", {
|
|
525
541
|
enumerable: true,
|
|
526
|
-
get: function () { return
|
|
542
|
+
get: function () { return chunkP2X3AMDK_cjs.truncateMatchLineForDisplay; }
|
|
527
543
|
});
|
|
528
544
|
Object.defineProperty(exports, "webFetchTool", {
|
|
529
545
|
enumerable: true,
|
|
530
|
-
get: function () { return
|
|
546
|
+
get: function () { return chunkP2X3AMDK_cjs.webFetchTool; }
|
|
531
547
|
});
|
|
532
548
|
Object.defineProperty(exports, "webSearchTool", {
|
|
533
549
|
enumerable: true,
|
|
534
|
-
get: function () { return
|
|
550
|
+
get: function () { return chunkP2X3AMDK_cjs.webSearchTool; }
|
|
535
551
|
});
|
|
536
552
|
Object.defineProperty(exports, "writeFileTool", {
|
|
537
553
|
enumerable: true,
|
|
538
|
-
get: function () { return
|
|
554
|
+
get: function () { return chunkP2X3AMDK_cjs.writeFileTool; }
|
|
539
555
|
});
|
|
540
556
|
exports.AgentStream = AgentStream;
|
|
541
557
|
exports.createStream = createStream;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as StorageConfig, M as Message, a as SessionInfo, b as StorageAdapter, c as MCPServerConfig, T as ToolResult, d as ToolDefinition, A as AgentConfig, e as SystemPrompt, f as StreamEvent, g as AgentResult, h as ModelAdapter, i as SessionTokenUsage, j as SDKLogger, L as LogEvent, k as TokenUsage, l as StreamChunk, P as ParsedSkill, m as MemoryConfig } from './types-
|
|
2
|
-
export { n as AgentCallbacks, o as AgentErrorContext, p as AgentLifecycleCallbacks, q as AgentModelConfig, r as AgentRunContext, s as AgentRunEndContext, t as AgentRunEndReason, u as AgentRunStartContext, v as AskUserQuestionAnswer, w as AskUserQuestionItem, x as AskUserQuestionResolver, y as AssistantMessage, C as CLIConfig, z as CanUseToolCallback, B as ChatOptions, D as CommandHookConfig, E as CompletionResult, F as ContentPart, G as ContextManagerConfig, H as CreateAskUserQuestionToolOptions, I as FlatCommandHookEntry, J as FunctionHook, K as HookContext, N as HookDecisionContext, O as HookEventType, Q as HookGroupConfig, R as HookManager, U as HookObservationContext, V as HookResult, W as HooksSettings, X as HooksSettingsFile, Y as ImageContent, Z as LogRedactionConfig, _ as MCPOptions, $ as MCPPromptArgument, a0 as MCPResourceContent, a1 as MODEL_STREAM_EVENT_TYPES, a2 as MessageObservationContext, a3 as MessageRole, a4 as ModelCapabilities, a5 as ModelParams, a6 as ModelRequestStartContext, a7 as RunOptions, a8 as SDKLogLevel, a9 as SessionListOptions, aa as SkillConfig, ab as SkillDefinition, ac as SkillMetadata, ad as SkillOptions, ae as StreamChunkType, af as StreamEventAnnotations, ag as StreamEventType, ah as SystemMessage, ai as SystemMessageSource, aj as SystemPromptConfig, ak as TextContent, al as ThinkingContent, am as ToolCall, an as ToolExecutionBaseContext, ao as ToolExecutionContext, ap as ToolExecutionEndContext, aq as ToolExecutionPolicy, ar as ToolHandler, as as ToolHookObserver, at as ToolListOptions, au as ToolMessage, av as ToolResultMetadata, aw as ToolResultObservationContext, ax as ToolSchema, ay as UserMessage, az as UserMessageSource, aA as buildHookEnv, aB as createAskUserQuestionTool, aC as createFunctionHook, aD as formatAnswerSummary, aE as formatAskUserQuestionPrompt, aF as getInteractionTools, aG as isModelStreamEventType, aH as matchTool, aI as mergeCommandHookLayers, aJ as questionTool } from './types-
|
|
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
|
|
1
|
+
import { S as StorageConfig, M as Message, a as SessionInfo, b as StorageAdapter, c as MCPServerConfig, T as ToolResult, d as ToolDefinition, A as AgentConfig, e as SystemPrompt, f as StreamEvent, g as AgentResult, h as ModelAdapter, i as SessionTokenUsage, j as SDKLogger, L as LogEvent, k as TokenUsage, l as StreamChunk, P as ParsedSkill, m as MemoryConfig } from './types-BUwjMwNH.cjs';
|
|
2
|
+
export { n as AgentCallbacks, o as AgentErrorContext, p as AgentLifecycleCallbacks, q as AgentModelConfig, r as AgentRunContext, s as AgentRunEndContext, t as AgentRunEndReason, u as AgentRunStartContext, v as AskUserQuestionAnswer, w as AskUserQuestionItem, x as AskUserQuestionResolver, y as AssistantMessage, C as CLIConfig, z as CanUseToolCallback, B as ChatOptions, D as CommandHookConfig, E as CompletionResult, F as ContentPart, G as ContextManagerConfig, H as CreateAskUserQuestionToolOptions, I as FlatCommandHookEntry, J as FunctionHook, K as HookContext, N as HookDecisionContext, O as HookEventType, Q as HookGroupConfig, R as HookManager, U as HookObservationContext, V as HookResult, W as HooksSettings, X as HooksSettingsFile, Y as ImageContent, Z as LogRedactionConfig, _ as MCPOptions, $ as MCPPromptArgument, a0 as MCPResourceContent, a1 as MODEL_STREAM_EVENT_TYPES, a2 as MessageObservationContext, a3 as MessageRole, a4 as ModelCapabilities, a5 as ModelParams, a6 as ModelRequestStartContext, a7 as RunOptions, a8 as SDKLogLevel, a9 as SessionListOptions, aa as SkillConfig, ab as SkillDefinition, ac as SkillMetadata, ad as SkillOptions, ae as StreamChunkType, af as StreamEventAnnotations, ag as StreamEventType, ah as SystemMessage, ai as SystemMessageSource, aj as SystemPromptConfig, ak as TextContent, al as ThinkingContent, am as ToolCall, an as ToolExecutionBaseContext, ao as ToolExecutionContext, ap as ToolExecutionEndContext, aq as ToolExecutionPolicy, ar as ToolHandler, as as ToolHookObserver, at as ToolListOptions, au as ToolMessage, av as ToolResultMetadata, aw as ToolResultObservationContext, ax as ToolSchema, ay as UserMessage, az as UserMessageSource, aA as buildHookEnv, aB as createAskUserQuestionTool, aC as createFunctionHook, aD as formatAnswerSummary, aE as formatAskUserQuestionPrompt, aF as getInteractionTools, aG as isModelStreamEventType, aH as matchTool, aI as mergeCommandHookLayers, aJ as questionTool } from './types-BUwjMwNH.cjs';
|
|
3
|
+
import { T as ToolRegistry, S as SkillRegistry } from './index-DzBt4ewK.cjs';
|
|
4
|
+
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH, a as SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES, b as SUBAGENT_TYPES, c as SkillLoader, d as SkillLoaderConfig, e as SubagentRequest, f as SubagentRunner, g as SubagentType, h as ToolExecuteOptions, i as ToolRegistryConfig, j as agentTool, k as bashTool, l as createAgentTool, m as createSkillLoader, n as createSkillRegistry, o as createSkillTool, p as createTool, q as editTool, r as getAllBuiltinTools, s as getFileSystemTools, t as getGlobalRegistry, u as getGrepTools, v as getPlanningTools, w as getSafeBuiltinTools, x as getShellTools, y as getSkillTools, z as getSubagentTools, A as getWebTools, B as globTool, E as grepTool, F as loadHooksSettingsFromProject, G as loadHooksSettingsFromUser, H as parseHooksSettingsFile, I as readFileTool, J as resolveSubagentTypeAppend, K as subagentExploreDefaultsUnavailableMessage, L as subagentRequestSchema, N as todoWriteTool, O as truncateMatchLineForDisplay, P as webFetchTool, Q as webSearchTool, R as writeFileTool } from './index-DzBt4ewK.cjs';
|
|
5
5
|
export { AnthropicAdapter, AnthropicConfig, AnthropicFetchRetryOptions, CreateModelConfig, DEFAULT_ADAPTER_CAPABILITIES, ModelProvider, OllamaAdapter, OllamaConfig, OpenAIAdapter, OpenAIConfig, createAnthropic, createModel, createOllama, createOpenAI } from './models/index.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as StorageConfig, M as Message, a as SessionInfo, b as StorageAdapter, c as MCPServerConfig, T as ToolResult, d as ToolDefinition, A as AgentConfig, e as SystemPrompt, f as StreamEvent, g as AgentResult, h as ModelAdapter, i as SessionTokenUsage, j as SDKLogger, L as LogEvent, k as TokenUsage, l as StreamChunk, P as ParsedSkill, m as MemoryConfig } from './types-
|
|
2
|
-
export { n as AgentCallbacks, o as AgentErrorContext, p as AgentLifecycleCallbacks, q as AgentModelConfig, r as AgentRunContext, s as AgentRunEndContext, t as AgentRunEndReason, u as AgentRunStartContext, v as AskUserQuestionAnswer, w as AskUserQuestionItem, x as AskUserQuestionResolver, y as AssistantMessage, C as CLIConfig, z as CanUseToolCallback, B as ChatOptions, D as CommandHookConfig, E as CompletionResult, F as ContentPart, G as ContextManagerConfig, H as CreateAskUserQuestionToolOptions, I as FlatCommandHookEntry, J as FunctionHook, K as HookContext, N as HookDecisionContext, O as HookEventType, Q as HookGroupConfig, R as HookManager, U as HookObservationContext, V as HookResult, W as HooksSettings, X as HooksSettingsFile, Y as ImageContent, Z as LogRedactionConfig, _ as MCPOptions, $ as MCPPromptArgument, a0 as MCPResourceContent, a1 as MODEL_STREAM_EVENT_TYPES, a2 as MessageObservationContext, a3 as MessageRole, a4 as ModelCapabilities, a5 as ModelParams, a6 as ModelRequestStartContext, a7 as RunOptions, a8 as SDKLogLevel, a9 as SessionListOptions, aa as SkillConfig, ab as SkillDefinition, ac as SkillMetadata, ad as SkillOptions, ae as StreamChunkType, af as StreamEventAnnotations, ag as StreamEventType, ah as SystemMessage, ai as SystemMessageSource, aj as SystemPromptConfig, ak as TextContent, al as ThinkingContent, am as ToolCall, an as ToolExecutionBaseContext, ao as ToolExecutionContext, ap as ToolExecutionEndContext, aq as ToolExecutionPolicy, ar as ToolHandler, as as ToolHookObserver, at as ToolListOptions, au as ToolMessage, av as ToolResultMetadata, aw as ToolResultObservationContext, ax as ToolSchema, ay as UserMessage, az as UserMessageSource, aA as buildHookEnv, aB as createAskUserQuestionTool, aC as createFunctionHook, aD as formatAnswerSummary, aE as formatAskUserQuestionPrompt, aF as getInteractionTools, aG as isModelStreamEventType, aH as matchTool, aI as mergeCommandHookLayers, aJ as questionTool } from './types-
|
|
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
|
|
1
|
+
import { S as StorageConfig, M as Message, a as SessionInfo, b as StorageAdapter, c as MCPServerConfig, T as ToolResult, d as ToolDefinition, A as AgentConfig, e as SystemPrompt, f as StreamEvent, g as AgentResult, h as ModelAdapter, i as SessionTokenUsage, j as SDKLogger, L as LogEvent, k as TokenUsage, l as StreamChunk, P as ParsedSkill, m as MemoryConfig } from './types-BUwjMwNH.js';
|
|
2
|
+
export { n as AgentCallbacks, o as AgentErrorContext, p as AgentLifecycleCallbacks, q as AgentModelConfig, r as AgentRunContext, s as AgentRunEndContext, t as AgentRunEndReason, u as AgentRunStartContext, v as AskUserQuestionAnswer, w as AskUserQuestionItem, x as AskUserQuestionResolver, y as AssistantMessage, C as CLIConfig, z as CanUseToolCallback, B as ChatOptions, D as CommandHookConfig, E as CompletionResult, F as ContentPart, G as ContextManagerConfig, H as CreateAskUserQuestionToolOptions, I as FlatCommandHookEntry, J as FunctionHook, K as HookContext, N as HookDecisionContext, O as HookEventType, Q as HookGroupConfig, R as HookManager, U as HookObservationContext, V as HookResult, W as HooksSettings, X as HooksSettingsFile, Y as ImageContent, Z as LogRedactionConfig, _ as MCPOptions, $ as MCPPromptArgument, a0 as MCPResourceContent, a1 as MODEL_STREAM_EVENT_TYPES, a2 as MessageObservationContext, a3 as MessageRole, a4 as ModelCapabilities, a5 as ModelParams, a6 as ModelRequestStartContext, a7 as RunOptions, a8 as SDKLogLevel, a9 as SessionListOptions, aa as SkillConfig, ab as SkillDefinition, ac as SkillMetadata, ad as SkillOptions, ae as StreamChunkType, af as StreamEventAnnotations, ag as StreamEventType, ah as SystemMessage, ai as SystemMessageSource, aj as SystemPromptConfig, ak as TextContent, al as ThinkingContent, am as ToolCall, an as ToolExecutionBaseContext, ao as ToolExecutionContext, ap as ToolExecutionEndContext, aq as ToolExecutionPolicy, ar as ToolHandler, as as ToolHookObserver, at as ToolListOptions, au as ToolMessage, av as ToolResultMetadata, aw as ToolResultObservationContext, ax as ToolSchema, ay as UserMessage, az as UserMessageSource, aA as buildHookEnv, aB as createAskUserQuestionTool, aC as createFunctionHook, aD as formatAnswerSummary, aE as formatAskUserQuestionPrompt, aF as getInteractionTools, aG as isModelStreamEventType, aH as matchTool, aI as mergeCommandHookLayers, aJ as questionTool } from './types-BUwjMwNH.js';
|
|
3
|
+
import { T as ToolRegistry, S as SkillRegistry } from './index-CnrY1ZA2.js';
|
|
4
|
+
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH, a as SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES, b as SUBAGENT_TYPES, c as SkillLoader, d as SkillLoaderConfig, e as SubagentRequest, f as SubagentRunner, g as SubagentType, h as ToolExecuteOptions, i as ToolRegistryConfig, j as agentTool, k as bashTool, l as createAgentTool, m as createSkillLoader, n as createSkillRegistry, o as createSkillTool, p as createTool, q as editTool, r as getAllBuiltinTools, s as getFileSystemTools, t as getGlobalRegistry, u as getGrepTools, v as getPlanningTools, w as getSafeBuiltinTools, x as getShellTools, y as getSkillTools, z as getSubagentTools, A as getWebTools, B as globTool, E as grepTool, F as loadHooksSettingsFromProject, G as loadHooksSettingsFromUser, H as parseHooksSettingsFile, I as readFileTool, J as resolveSubagentTypeAppend, K as subagentExploreDefaultsUnavailableMessage, L as subagentRequestSchema, N as todoWriteTool, O as truncateMatchLineForDisplay, P as webFetchTool, Q as webSearchTool, R as writeFileTool } from './index-CnrY1ZA2.js';
|
|
5
5
|
export { AnthropicAdapter, AnthropicConfig, AnthropicFetchRetryOptions, CreateModelConfig, DEFAULT_ADAPTER_CAPABILITIES, ModelProvider, OllamaAdapter, OllamaConfig, OpenAIAdapter, OpenAIConfig, createAnthropic, createModel, createOllama, createOpenAI } from './models/index.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import './chunk-A3S3AGE3.js';
|
|
3
|
-
export { Agent, DEFAULT_MAX_ITERATIONS, DEFAULT_SYSTEM_PROMPT, JsonlStorage, MCPAdapter, MCPClient, MODEL_STREAM_EVENT_TYPES, MemoryManager, MemoryStorage, PACKAGE_VERSION, SessionManager, SkillLoader, SkillRegistry, StreamChunkProcessor, createAgent, createJsonlStorage, createMCPAdapter, createMCPClient, createMemoryStorage, createSessionManager, createSkillLoader, createSkillRegistry, createStorage, formatMcpToolName, getLatestSessionId, getSessionStoragePath, isMcpPrefixedToolName, isModelStreamEventType, loadMCPConfig, parseSkillMd, validateMCPConfig } from './chunk-
|
|
3
|
+
export { Agent, DEFAULT_MAX_ITERATIONS, DEFAULT_SYSTEM_PROMPT, JsonlStorage, MCPAdapter, MCPClient, MODEL_STREAM_EVENT_TYPES, MemoryManager, MemoryStorage, PACKAGE_VERSION, SessionManager, SkillLoader, SkillRegistry, StreamChunkProcessor, createAgent, createJsonlStorage, createMCPAdapter, createMCPClient, createMemoryStorage, createSessionManager, createSkillLoader, createSkillRegistry, createStorage, formatMcpToolName, getLatestSessionId, getSessionStoragePath, isMcpPrefixedToolName, isModelStreamEventType, loadMCPConfig, parseSkillMd, validateMCPConfig } from './chunk-UHENMHUS.js';
|
|
4
4
|
export { AnthropicAdapter, DEFAULT_ADAPTER_CAPABILITIES, OllamaAdapter, OpenAIAdapter, createAnthropic, createConsoleSDKLogger, createModel, createOllama, createOpenAI, formatSDKLog, mergeMcpStdioEnv, mergeProcessEnv } from './chunk-D3UZNLZO.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, getPlanningTools, getSafeBuiltinTools, getShellTools, getSkillTools, getSubagentTools, getWebTools, globTool, grepTool, loadHooksSettingsFromProject, loadHooksSettingsFromUser, matchTool, mergeCommandHookLayers, parseHooksSettingsFile, questionTool, readFileTool, subagentRequestSchema, todoWriteTool, truncateMatchLineForDisplay, webFetchTool, webSearchTool, writeFileTool } from './chunk-
|
|
5
|
+
export { DEFAULT_GREP_HEAD_LIMIT, HookManager, MAX_LINE_LENGTH, SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES, SUBAGENT_TYPES, ToolRegistry, agentTool, bashTool, buildHookEnv, createAgentTool, createAskUserQuestionTool, createFunctionHook, createSkillTool, createTool, editTool, formatAnswerSummary, formatAskUserQuestionPrompt, getAllBuiltinTools, getFileSystemTools, getGlobalRegistry, getGrepTools, getInteractionTools, getPlanningTools, getSafeBuiltinTools, getShellTools, getSkillTools, getSubagentTools, getWebTools, globTool, grepTool, loadHooksSettingsFromProject, loadHooksSettingsFromUser, matchTool, mergeCommandHookLayers, parseHooksSettingsFile, questionTool, readFileTool, resolveSubagentTypeAppend, subagentExploreDefaultsUnavailableMessage, subagentRequestSchema, todoWriteTool, truncateMatchLineForDisplay, webFetchTool, webSearchTool, writeFileTool } from './chunk-TKUPLTGJ.js';
|
|
6
6
|
import './chunk-LOYIGOBZ.js';
|
|
7
7
|
|
|
8
8
|
// src/streaming/event-emitter.ts
|
package/dist/models/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a4 as ModelCapabilities, h as ModelAdapter, a5 as ModelParams, l as StreamChunk, E as CompletionResult, k as TokenUsage, d as ToolDefinition, ax as ToolSchema, F as ContentPart } from '../types-
|
|
1
|
+
import { a4 as ModelCapabilities, h as ModelAdapter, a5 as ModelParams, l as StreamChunk, E as CompletionResult, k as TokenUsage, d as ToolDefinition, ax as ToolSchema, F as ContentPart } from '../types-BUwjMwNH.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a4 as ModelCapabilities, h as ModelAdapter, a5 as ModelParams, l as StreamChunk, E as CompletionResult, k as TokenUsage, d as ToolDefinition, ax as ToolSchema, F as ContentPart } from '../types-
|
|
1
|
+
import { a4 as ModelCapabilities, h as ModelAdapter, a5 as ModelParams, l as StreamChunk, E as CompletionResult, k as TokenUsage, d as ToolDefinition, ax as ToolSchema, F as ContentPart } from '../types-BUwjMwNH.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|