@easynet/agent-tool-hub 1.0.6 → 1.0.7
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 -7
- package/dist/chunk-CJZ2EWUG.cjs +101 -0
- package/dist/chunk-CJZ2EWUG.cjs.map +1 -0
- package/dist/chunk-MMNUEPKB.js +92 -0
- package/dist/chunk-MMNUEPKB.js.map +1 -0
- package/dist/{chunk-HPDQEW2P.js → chunk-QSBCXLMH.js} +4 -3
- package/dist/chunk-QSBCXLMH.js.map +1 -0
- package/dist/{chunk-TIKHPRMB.cjs → chunk-XHNKPSOO.cjs} +4 -2
- package/dist/chunk-XHNKPSOO.cjs.map +1 -0
- package/dist/cli.cjs +5 -5
- package/dist/cli.js +1 -1
- package/dist/index.cjs +64 -56
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +3 -3
- package/dist/{toolhub-runtime-CQkP4QVW.d.cts → toolhub-runtime-Du3j3gS3.d.cts} +53 -2
- package/dist/{toolhub-runtime-CQkP4QVW.d.ts → toolhub-runtime-Du3j3gS3.d.ts} +53 -2
- package/dist/toolhub-runtime.cjs +11 -7
- package/dist/toolhub-runtime.d.cts +1 -1
- package/dist/toolhub-runtime.d.ts +1 -1
- package/dist/toolhub-runtime.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-57LVNNHL.js +0 -19
- package/dist/chunk-57LVNNHL.js.map +0 -1
- package/dist/chunk-6QTWECRD.cjs +0 -23
- package/dist/chunk-6QTWECRD.cjs.map +0 -1
- package/dist/chunk-HPDQEW2P.js.map +0 -1
- package/dist/chunk-TIKHPRMB.cjs.map +0 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkXHNKPSOO_cjs = require('./chunk-XHNKPSOO.cjs');
|
|
5
5
|
require('./chunk-NTTBDQUF.cjs');
|
|
6
6
|
var path = require('path');
|
|
7
7
|
var url = require('url');
|
|
@@ -67,7 +67,7 @@ async function ensureConfig(configPath) {
|
|
|
67
67
|
}
|
|
68
68
|
async function runWithHub(configPath, collectErrors) {
|
|
69
69
|
const errors = [];
|
|
70
|
-
const { options } = await
|
|
70
|
+
const { options } = await chunkXHNKPSOO_cjs.loadToolHubConfig(configPath);
|
|
71
71
|
const optionsWithErrorHandler = {
|
|
72
72
|
...options,
|
|
73
73
|
...{
|
|
@@ -80,7 +80,7 @@ async function runWithHub(configPath, collectErrors) {
|
|
|
80
80
|
return { hub, errors };
|
|
81
81
|
}
|
|
82
82
|
async function createHubAndInit(options) {
|
|
83
|
-
const hub =
|
|
83
|
+
const hub = chunkXHNKPSOO_cjs.createToolHub(options);
|
|
84
84
|
await hub.initAllTools();
|
|
85
85
|
return hub;
|
|
86
86
|
}
|
|
@@ -89,7 +89,7 @@ function formatRoot(root) {
|
|
|
89
89
|
return root.namespace ? `${root.path} (${root.namespace})` : root.path;
|
|
90
90
|
}
|
|
91
91
|
async function cmdScan(configPath) {
|
|
92
|
-
const { options } = await
|
|
92
|
+
const { options } = await chunkXHNKPSOO_cjs.loadToolHubConfig(configPath);
|
|
93
93
|
const hub = await createHubAndInit(options);
|
|
94
94
|
const specs = hub.getRegistry().snapshot();
|
|
95
95
|
const roots = options.roots ?? [];
|
|
@@ -141,7 +141,7 @@ function formatSpecFull(spec) {
|
|
|
141
141
|
);
|
|
142
142
|
}
|
|
143
143
|
async function cmdList(configPath, detail) {
|
|
144
|
-
const { options } = await
|
|
144
|
+
const { options } = await chunkXHNKPSOO_cjs.loadToolHubConfig(configPath);
|
|
145
145
|
const hub = await createHubAndInit(options);
|
|
146
146
|
const specs = hub.getRegistry().snapshot();
|
|
147
147
|
const formatter = detail === "short" ? formatSpecShort : detail === "full" ? formatSpecFull : formatSpecNormal;
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkCJZ2EWUG_cjs = require('./chunk-CJZ2EWUG.cjs');
|
|
4
|
+
var chunkXHNKPSOO_cjs = require('./chunk-XHNKPSOO.cjs');
|
|
5
5
|
var chunkX53WXBKX_cjs = require('./chunk-X53WXBKX.cjs');
|
|
6
6
|
var chunkNTTBDQUF_cjs = require('./chunk-NTTBDQUF.cjs');
|
|
7
7
|
var uuid = require('uuid');
|
|
@@ -281,7 +281,7 @@ var DirectoryToolAdapter = class {
|
|
|
281
281
|
// Required by ToolAdapter but not used for routing
|
|
282
282
|
scanner;
|
|
283
283
|
constructor(options) {
|
|
284
|
-
this.scanner = new
|
|
284
|
+
this.scanner = new chunkXHNKPSOO_cjs.DirectoryScanner(options);
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
287
287
|
* Scan directories and return discovered tool specs.
|
|
@@ -354,217 +354,225 @@ var MCPProcessManager = class {
|
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
|
|
357
|
+
Object.defineProperty(exports, "AgentToolHub", {
|
|
358
|
+
enumerable: true,
|
|
359
|
+
get: function () { return chunkCJZ2EWUG_cjs.AgentToolHub; }
|
|
360
|
+
});
|
|
357
361
|
Object.defineProperty(exports, "createAgentToolHub", {
|
|
358
362
|
enumerable: true,
|
|
359
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunkCJZ2EWUG_cjs.createAgentToolHub; }
|
|
360
364
|
});
|
|
361
365
|
Object.defineProperty(exports, "createToolHubAndInitFromConfig", {
|
|
362
366
|
enumerable: true,
|
|
363
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunkCJZ2EWUG_cjs.createToolHubAndInitFromConfig; }
|
|
364
368
|
});
|
|
365
369
|
Object.defineProperty(exports, "BudgetManager", {
|
|
366
370
|
enumerable: true,
|
|
367
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunkXHNKPSOO_cjs.BudgetManager; }
|
|
368
372
|
});
|
|
369
373
|
Object.defineProperty(exports, "ComfyUIAdapter", {
|
|
370
374
|
enumerable: true,
|
|
371
|
-
get: function () { return
|
|
375
|
+
get: function () { return chunkXHNKPSOO_cjs.ComfyUIAdapter; }
|
|
372
376
|
});
|
|
373
377
|
Object.defineProperty(exports, "CoreAdapter", {
|
|
374
378
|
enumerable: true,
|
|
375
|
-
get: function () { return
|
|
379
|
+
get: function () { return chunkXHNKPSOO_cjs.CoreAdapter; }
|
|
380
|
+
});
|
|
381
|
+
Object.defineProperty(exports, "DEFAULT_CONFIG_FILE", {
|
|
382
|
+
enumerable: true,
|
|
383
|
+
get: function () { return chunkXHNKPSOO_cjs.DEFAULT_CONFIG_FILE; }
|
|
376
384
|
});
|
|
377
385
|
Object.defineProperty(exports, "DEFAULT_CORE_TOOLS_CONFIG", {
|
|
378
386
|
enumerable: true,
|
|
379
|
-
get: function () { return
|
|
387
|
+
get: function () { return chunkXHNKPSOO_cjs.DEFAULT_CORE_TOOLS_CONFIG; }
|
|
380
388
|
});
|
|
381
389
|
Object.defineProperty(exports, "DirectoryScanner", {
|
|
382
390
|
enumerable: true,
|
|
383
|
-
get: function () { return
|
|
391
|
+
get: function () { return chunkXHNKPSOO_cjs.DirectoryScanner; }
|
|
384
392
|
});
|
|
385
393
|
Object.defineProperty(exports, "DiscoveryError", {
|
|
386
394
|
enumerable: true,
|
|
387
|
-
get: function () { return
|
|
395
|
+
get: function () { return chunkXHNKPSOO_cjs.DiscoveryError; }
|
|
388
396
|
});
|
|
389
397
|
Object.defineProperty(exports, "EventLog", {
|
|
390
398
|
enumerable: true,
|
|
391
|
-
get: function () { return
|
|
399
|
+
get: function () { return chunkXHNKPSOO_cjs.EventLog; }
|
|
392
400
|
});
|
|
393
401
|
Object.defineProperty(exports, "LangChainAdapter", {
|
|
394
402
|
enumerable: true,
|
|
395
|
-
get: function () { return
|
|
403
|
+
get: function () { return chunkXHNKPSOO_cjs.LangChainAdapter; }
|
|
396
404
|
});
|
|
397
405
|
Object.defineProperty(exports, "MCPAdapter", {
|
|
398
406
|
enumerable: true,
|
|
399
|
-
get: function () { return
|
|
407
|
+
get: function () { return chunkXHNKPSOO_cjs.MCPAdapter; }
|
|
400
408
|
});
|
|
401
409
|
Object.defineProperty(exports, "Metrics", {
|
|
402
410
|
enumerable: true,
|
|
403
|
-
get: function () { return
|
|
411
|
+
get: function () { return chunkXHNKPSOO_cjs.Metrics; }
|
|
404
412
|
});
|
|
405
413
|
Object.defineProperty(exports, "N8nAdapter", {
|
|
406
414
|
enumerable: true,
|
|
407
|
-
get: function () { return
|
|
415
|
+
get: function () { return chunkXHNKPSOO_cjs.N8nAdapter; }
|
|
408
416
|
});
|
|
409
417
|
Object.defineProperty(exports, "PTCRuntime", {
|
|
410
418
|
enumerable: true,
|
|
411
|
-
get: function () { return
|
|
419
|
+
get: function () { return chunkXHNKPSOO_cjs.PTCRuntime; }
|
|
412
420
|
});
|
|
413
421
|
Object.defineProperty(exports, "PolicyDeniedError", {
|
|
414
422
|
enumerable: true,
|
|
415
|
-
get: function () { return
|
|
423
|
+
get: function () { return chunkXHNKPSOO_cjs.PolicyDeniedError; }
|
|
416
424
|
});
|
|
417
425
|
Object.defineProperty(exports, "PolicyEngine", {
|
|
418
426
|
enumerable: true,
|
|
419
|
-
get: function () { return
|
|
427
|
+
get: function () { return chunkXHNKPSOO_cjs.PolicyEngine; }
|
|
420
428
|
});
|
|
421
429
|
Object.defineProperty(exports, "SchemaValidationError", {
|
|
422
430
|
enumerable: true,
|
|
423
|
-
get: function () { return
|
|
431
|
+
get: function () { return chunkXHNKPSOO_cjs.SchemaValidationError; }
|
|
424
432
|
});
|
|
425
433
|
Object.defineProperty(exports, "SchemaValidator", {
|
|
426
434
|
enumerable: true,
|
|
427
|
-
get: function () { return
|
|
435
|
+
get: function () { return chunkXHNKPSOO_cjs.SchemaValidator; }
|
|
428
436
|
});
|
|
429
437
|
Object.defineProperty(exports, "SkillAdapter", {
|
|
430
438
|
enumerable: true,
|
|
431
|
-
get: function () { return
|
|
439
|
+
get: function () { return chunkXHNKPSOO_cjs.SkillAdapter; }
|
|
432
440
|
});
|
|
433
441
|
Object.defineProperty(exports, "SkillManifestError", {
|
|
434
442
|
enumerable: true,
|
|
435
|
-
get: function () { return
|
|
443
|
+
get: function () { return chunkXHNKPSOO_cjs.SkillManifestError; }
|
|
436
444
|
});
|
|
437
445
|
Object.defineProperty(exports, "ToolHub", {
|
|
438
446
|
enumerable: true,
|
|
439
|
-
get: function () { return
|
|
447
|
+
get: function () { return chunkXHNKPSOO_cjs.ToolHub; }
|
|
440
448
|
});
|
|
441
449
|
Object.defineProperty(exports, "ToolRegistry", {
|
|
442
450
|
enumerable: true,
|
|
443
|
-
get: function () { return
|
|
451
|
+
get: function () { return chunkXHNKPSOO_cjs.ToolRegistry; }
|
|
444
452
|
});
|
|
445
453
|
Object.defineProperty(exports, "Tracing", {
|
|
446
454
|
enumerable: true,
|
|
447
|
-
get: function () { return
|
|
455
|
+
get: function () { return chunkXHNKPSOO_cjs.Tracing; }
|
|
448
456
|
});
|
|
449
457
|
Object.defineProperty(exports, "buildEvidence", {
|
|
450
458
|
enumerable: true,
|
|
451
|
-
get: function () { return
|
|
459
|
+
get: function () { return chunkXHNKPSOO_cjs.buildEvidence; }
|
|
452
460
|
});
|
|
453
461
|
Object.defineProperty(exports, "createTaggedError", {
|
|
454
462
|
enumerable: true,
|
|
455
|
-
get: function () { return
|
|
463
|
+
get: function () { return chunkXHNKPSOO_cjs.createTaggedError; }
|
|
456
464
|
});
|
|
457
465
|
Object.defineProperty(exports, "createToolHub", {
|
|
458
466
|
enumerable: true,
|
|
459
|
-
get: function () { return
|
|
467
|
+
get: function () { return chunkXHNKPSOO_cjs.createToolHub; }
|
|
460
468
|
});
|
|
461
469
|
Object.defineProperty(exports, "deletePathSpec", {
|
|
462
470
|
enumerable: true,
|
|
463
|
-
get: function () { return
|
|
471
|
+
get: function () { return chunkXHNKPSOO_cjs.deletePathSpec; }
|
|
464
472
|
});
|
|
465
473
|
Object.defineProperty(exports, "downloadFileSpec", {
|
|
466
474
|
enumerable: true,
|
|
467
|
-
get: function () { return
|
|
475
|
+
get: function () { return chunkXHNKPSOO_cjs.downloadFileSpec; }
|
|
468
476
|
});
|
|
469
477
|
Object.defineProperty(exports, "fetchJsonSpec", {
|
|
470
478
|
enumerable: true,
|
|
471
|
-
get: function () { return
|
|
479
|
+
get: function () { return chunkXHNKPSOO_cjs.fetchJsonSpec; }
|
|
472
480
|
});
|
|
473
481
|
Object.defineProperty(exports, "fetchTextSpec", {
|
|
474
482
|
enumerable: true,
|
|
475
|
-
get: function () { return
|
|
483
|
+
get: function () { return chunkXHNKPSOO_cjs.fetchTextSpec; }
|
|
476
484
|
});
|
|
477
485
|
Object.defineProperty(exports, "hashTextSpec", {
|
|
478
486
|
enumerable: true,
|
|
479
|
-
get: function () { return
|
|
487
|
+
get: function () { return chunkXHNKPSOO_cjs.hashTextSpec; }
|
|
480
488
|
});
|
|
481
489
|
Object.defineProperty(exports, "headSpec", {
|
|
482
490
|
enumerable: true,
|
|
483
|
-
get: function () { return
|
|
491
|
+
get: function () { return chunkXHNKPSOO_cjs.headSpec; }
|
|
484
492
|
});
|
|
485
493
|
Object.defineProperty(exports, "isIpInBlockedCidrs", {
|
|
486
494
|
enumerable: true,
|
|
487
|
-
get: function () { return
|
|
495
|
+
get: function () { return chunkXHNKPSOO_cjs.isIpInBlockedCidrs; }
|
|
488
496
|
});
|
|
489
497
|
Object.defineProperty(exports, "isRetryable", {
|
|
490
498
|
enumerable: true,
|
|
491
|
-
get: function () { return
|
|
499
|
+
get: function () { return chunkXHNKPSOO_cjs.isRetryable; }
|
|
492
500
|
});
|
|
493
501
|
Object.defineProperty(exports, "jsonSelectSpec", {
|
|
494
502
|
enumerable: true,
|
|
495
|
-
get: function () { return
|
|
503
|
+
get: function () { return chunkXHNKPSOO_cjs.jsonSelectSpec; }
|
|
496
504
|
});
|
|
497
505
|
Object.defineProperty(exports, "listDirSpec", {
|
|
498
506
|
enumerable: true,
|
|
499
|
-
get: function () { return
|
|
507
|
+
get: function () { return chunkXHNKPSOO_cjs.listDirSpec; }
|
|
500
508
|
});
|
|
501
509
|
Object.defineProperty(exports, "loadSkillDefinition", {
|
|
502
510
|
enumerable: true,
|
|
503
|
-
get: function () { return
|
|
511
|
+
get: function () { return chunkXHNKPSOO_cjs.loadSkillDefinition; }
|
|
504
512
|
});
|
|
505
513
|
Object.defineProperty(exports, "loadToolHubConfig", {
|
|
506
514
|
enumerable: true,
|
|
507
|
-
get: function () { return
|
|
515
|
+
get: function () { return chunkXHNKPSOO_cjs.loadToolHubConfig; }
|
|
508
516
|
});
|
|
509
517
|
Object.defineProperty(exports, "mapToolHubConfig", {
|
|
510
518
|
enumerable: true,
|
|
511
|
-
get: function () { return
|
|
519
|
+
get: function () { return chunkXHNKPSOO_cjs.mapToolHubConfig; }
|
|
512
520
|
});
|
|
513
521
|
Object.defineProperty(exports, "nowSpec", {
|
|
514
522
|
enumerable: true,
|
|
515
|
-
get: function () { return
|
|
523
|
+
get: function () { return chunkXHNKPSOO_cjs.nowSpec; }
|
|
516
524
|
});
|
|
517
525
|
Object.defineProperty(exports, "parseSkillMd", {
|
|
518
526
|
enumerable: true,
|
|
519
|
-
get: function () { return
|
|
527
|
+
get: function () { return chunkXHNKPSOO_cjs.parseSkillMd; }
|
|
520
528
|
});
|
|
521
529
|
Object.defineProperty(exports, "readTextSpec", {
|
|
522
530
|
enumerable: true,
|
|
523
|
-
get: function () { return
|
|
531
|
+
get: function () { return chunkXHNKPSOO_cjs.readTextSpec; }
|
|
524
532
|
});
|
|
525
533
|
Object.defineProperty(exports, "registerCoreTools", {
|
|
526
534
|
enumerable: true,
|
|
527
|
-
get: function () { return
|
|
535
|
+
get: function () { return chunkXHNKPSOO_cjs.registerCoreTools; }
|
|
528
536
|
});
|
|
529
537
|
Object.defineProperty(exports, "resolveSandboxedPath", {
|
|
530
538
|
enumerable: true,
|
|
531
|
-
get: function () { return
|
|
539
|
+
get: function () { return chunkXHNKPSOO_cjs.resolveSandboxedPath; }
|
|
532
540
|
});
|
|
533
541
|
Object.defineProperty(exports, "scanSkillResources", {
|
|
534
542
|
enumerable: true,
|
|
535
|
-
get: function () { return
|
|
543
|
+
get: function () { return chunkXHNKPSOO_cjs.scanSkillResources; }
|
|
536
544
|
});
|
|
537
545
|
Object.defineProperty(exports, "searchTextSpec", {
|
|
538
546
|
enumerable: true,
|
|
539
|
-
get: function () { return
|
|
547
|
+
get: function () { return chunkXHNKPSOO_cjs.searchTextSpec; }
|
|
540
548
|
});
|
|
541
549
|
Object.defineProperty(exports, "sha256Spec", {
|
|
542
550
|
enumerable: true,
|
|
543
|
-
get: function () { return
|
|
551
|
+
get: function () { return chunkXHNKPSOO_cjs.sha256Spec; }
|
|
544
552
|
});
|
|
545
553
|
Object.defineProperty(exports, "templateRenderSpec", {
|
|
546
554
|
enumerable: true,
|
|
547
|
-
get: function () { return
|
|
555
|
+
get: function () { return chunkXHNKPSOO_cjs.templateRenderSpec; }
|
|
548
556
|
});
|
|
549
557
|
Object.defineProperty(exports, "truncateSpec", {
|
|
550
558
|
enumerable: true,
|
|
551
|
-
get: function () { return
|
|
559
|
+
get: function () { return chunkXHNKPSOO_cjs.truncateSpec; }
|
|
552
560
|
});
|
|
553
561
|
Object.defineProperty(exports, "validateFrontmatter", {
|
|
554
562
|
enumerable: true,
|
|
555
|
-
get: function () { return
|
|
563
|
+
get: function () { return chunkXHNKPSOO_cjs.validateFrontmatter; }
|
|
556
564
|
});
|
|
557
565
|
Object.defineProperty(exports, "validateUrl", {
|
|
558
566
|
enumerable: true,
|
|
559
|
-
get: function () { return
|
|
567
|
+
get: function () { return chunkXHNKPSOO_cjs.validateUrl; }
|
|
560
568
|
});
|
|
561
569
|
Object.defineProperty(exports, "withRetry", {
|
|
562
570
|
enumerable: true,
|
|
563
|
-
get: function () { return
|
|
571
|
+
get: function () { return chunkXHNKPSOO_cjs.withRetry; }
|
|
564
572
|
});
|
|
565
573
|
Object.defineProperty(exports, "writeTextSpec", {
|
|
566
574
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
575
|
+
get: function () { return chunkXHNKPSOO_cjs.writeTextSpec; }
|
|
568
576
|
});
|
|
569
577
|
Object.defineProperty(exports, "N8nLocalAdapter", {
|
|
570
578
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolSpec, E as ExecContext, a as Evidence, b as ToolRegistry, c as ToolAdapter, S as SkillDefinition, d as SkillFrontmatter, e as SkillResource, f as ToolKind, C as Capability, g as CostHints, h as ToolHubInitOptions } from './toolhub-runtime-
|
|
2
|
-
export { A as AnyToolEvent, B as BudgetConfig,
|
|
1
|
+
import { T as ToolSpec, E as ExecContext, a as Evidence, b as ToolRegistry, c as ToolAdapter, S as SkillDefinition, d as SkillFrontmatter, e as SkillResource, f as ToolKind, C as Capability, g as CostHints, h as ToolHubInitOptions } from './toolhub-runtime-Du3j3gS3.cjs';
|
|
2
|
+
export { A as AgentToolHub, i as AnyToolEvent, B as BudgetConfig, j as BudgetManager, k as BudgetOptions, l as ComfyUIAdapter, m as ComfyUIAdapterOptions, n as ComfyUIHistoryEntry, o as ComfyUIHttpClient, p as ComfyUIQueueResponse, q as CoreAdapter, r as CoreToolContext, s as CoreToolHandler, t as CoreToolResult, u as CoreToolsConfig, v as CoreToolsUserConfig, w as CounterValue, D as DEFAULT_CORE_TOOLS_CONFIG, x as DebugOptions, y as EventListener, z as EventLog, H as HistogramValue, F as HttpClient, I as InvokeOptions, J as JobCompletedEvent, G as JobFailedEvent, K as JobSubmittedEvent, L as LangChainAdapter, M as LangChainAdapterOptions, N as LangChainToolLike, O as LogEntry, P as LogLevel, Q as Logger, R as MCPAdapter, U as MCPAdapterOptions, V as MCPCallResult, W as MCPClientLike, X as MCPToolDefinition, Y as Metrics, Z as N8nAdapter, _ as N8nAdapterOptions, $ as N8nInvokeMode, a0 as N8nLocalAdapter, a1 as N8nLocalAdapterOptions, a2 as PTCRuntime, a3 as PTCRuntimeConfig, a4 as PolicyCheckResult, a5 as PolicyConfig, a6 as PolicyDeniedError, a7 as PolicyDeniedEvent, a8 as PolicyEngine, a9 as ResolvedDebugOptions, aa as RetryEvent, ab as SchemaValidationError, ac as SchemaValidator, ad as SkillAdapter, ae as SkillAdapterOptions, af as SkillContext, ag as SkillHandler, ah as SkillInstructionResult, ai as SkillInvocationContext, aj as SkillManifestError, ak as SkillOutput, al as Span, am as SpanEvent, an as ToolCalledEvent, ao as ToolDescription, ap as ToolError, aq as ToolEvent, ar as ToolEventType, as as ToolHub, at as ToolIntent, au as ToolMetadata, av as ToolResult, aw as ToolResultEvent, ax as ToolSearchQuery, ay as Tracing, az as ValidationResult, aA as createAgentToolHub, aB as createLogger, aC as createToolHub, aD as createToolHubAndInitFromConfig, aE as registerCoreTools, aF as sanitizeForLog, aG as summarizeForLog, aH as validateFrontmatter } from './toolhub-runtime-Du3j3gS3.cjs';
|
|
3
3
|
import '@easynet/n8n-local';
|
|
4
4
|
import 'ajv';
|
|
5
5
|
import 'cockatiel';
|
|
@@ -541,6 +541,8 @@ declare class DiscoveryError extends Error {
|
|
|
541
541
|
constructor(toolDir: string, phase: "manifest" | "load" | "validate", message: string, cause?: Error);
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
+
/** Default config filename used when no path is given (e.g. AgentToolHub(), CLI). */
|
|
545
|
+
declare const DEFAULT_CONFIG_FILE = "toolhub.yaml";
|
|
544
546
|
interface ToolHubConfigLoadResult {
|
|
545
547
|
configPath: string;
|
|
546
548
|
rawConfig: unknown;
|
|
@@ -549,4 +551,4 @@ interface ToolHubConfigLoadResult {
|
|
|
549
551
|
declare function mapToolHubConfig(raw: unknown, configDir: string): ToolHubInitOptions;
|
|
550
552
|
declare function loadToolHubConfig(configPath: string): Promise<ToolHubConfigLoadResult>;
|
|
551
553
|
|
|
552
|
-
export { AsyncJobManager, type BuildEvidenceOptions, Capability, CostHints, type DirectoryDiscoveryOptions, DirectoryScanner, type DirectoryScannerOptions, DirectoryToolAdapter, type DiscoverableKind, Discovery, DiscoveryError, type DiscoverySource, Evidence, ExecContext, InMemoryJobStore, type Job, type JobStatus, type JobStore, type LoadedTool, type MCPConnectionInfo, MCPProcessManager, type MCPServerConfig, type RetryOptions, SkillDefinition, SkillFrontmatter, SkillResource, type SubmitJobOptions, ToolAdapter, type ToolHubConfigLoadResult, ToolHubInitOptions, ToolKind, type ToolManifest, ToolRegistry, ToolSpec, buildEvidence, createDirectoryDiscoverySource, createTaggedError, deletePathSpec, downloadFileSpec, fetchJsonSpec, fetchTextSpec, hashTextSpec, headSpec, isIpInBlockedCidrs, isRetryable, jsonSelectSpec, listDirSpec, loadSkillDefinition, loadToolHubConfig, mapToolHubConfig, nowSpec, parseSkillMd, readTextSpec, resolveSandboxedPath, scanSkillResources, searchTextSpec, sha256Spec, templateRenderSpec, truncateSpec, validateUrl, withRetry, writeTextSpec };
|
|
554
|
+
export { AsyncJobManager, type BuildEvidenceOptions, Capability, CostHints, DEFAULT_CONFIG_FILE, type DirectoryDiscoveryOptions, DirectoryScanner, type DirectoryScannerOptions, DirectoryToolAdapter, type DiscoverableKind, Discovery, DiscoveryError, type DiscoverySource, Evidence, ExecContext, InMemoryJobStore, type Job, type JobStatus, type JobStore, type LoadedTool, type MCPConnectionInfo, MCPProcessManager, type MCPServerConfig, type RetryOptions, SkillDefinition, SkillFrontmatter, SkillResource, type SubmitJobOptions, ToolAdapter, type ToolHubConfigLoadResult, ToolHubInitOptions, ToolKind, type ToolManifest, ToolRegistry, ToolSpec, buildEvidence, createDirectoryDiscoverySource, createTaggedError, deletePathSpec, downloadFileSpec, fetchJsonSpec, fetchTextSpec, hashTextSpec, headSpec, isIpInBlockedCidrs, isRetryable, jsonSelectSpec, listDirSpec, loadSkillDefinition, loadToolHubConfig, mapToolHubConfig, nowSpec, parseSkillMd, readTextSpec, resolveSandboxedPath, scanSkillResources, searchTextSpec, sha256Spec, templateRenderSpec, truncateSpec, validateUrl, withRetry, writeTextSpec };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolSpec, E as ExecContext, a as Evidence, b as ToolRegistry, c as ToolAdapter, S as SkillDefinition, d as SkillFrontmatter, e as SkillResource, f as ToolKind, C as Capability, g as CostHints, h as ToolHubInitOptions } from './toolhub-runtime-
|
|
2
|
-
export { A as AnyToolEvent, B as BudgetConfig,
|
|
1
|
+
import { T as ToolSpec, E as ExecContext, a as Evidence, b as ToolRegistry, c as ToolAdapter, S as SkillDefinition, d as SkillFrontmatter, e as SkillResource, f as ToolKind, C as Capability, g as CostHints, h as ToolHubInitOptions } from './toolhub-runtime-Du3j3gS3.js';
|
|
2
|
+
export { A as AgentToolHub, i as AnyToolEvent, B as BudgetConfig, j as BudgetManager, k as BudgetOptions, l as ComfyUIAdapter, m as ComfyUIAdapterOptions, n as ComfyUIHistoryEntry, o as ComfyUIHttpClient, p as ComfyUIQueueResponse, q as CoreAdapter, r as CoreToolContext, s as CoreToolHandler, t as CoreToolResult, u as CoreToolsConfig, v as CoreToolsUserConfig, w as CounterValue, D as DEFAULT_CORE_TOOLS_CONFIG, x as DebugOptions, y as EventListener, z as EventLog, H as HistogramValue, F as HttpClient, I as InvokeOptions, J as JobCompletedEvent, G as JobFailedEvent, K as JobSubmittedEvent, L as LangChainAdapter, M as LangChainAdapterOptions, N as LangChainToolLike, O as LogEntry, P as LogLevel, Q as Logger, R as MCPAdapter, U as MCPAdapterOptions, V as MCPCallResult, W as MCPClientLike, X as MCPToolDefinition, Y as Metrics, Z as N8nAdapter, _ as N8nAdapterOptions, $ as N8nInvokeMode, a0 as N8nLocalAdapter, a1 as N8nLocalAdapterOptions, a2 as PTCRuntime, a3 as PTCRuntimeConfig, a4 as PolicyCheckResult, a5 as PolicyConfig, a6 as PolicyDeniedError, a7 as PolicyDeniedEvent, a8 as PolicyEngine, a9 as ResolvedDebugOptions, aa as RetryEvent, ab as SchemaValidationError, ac as SchemaValidator, ad as SkillAdapter, ae as SkillAdapterOptions, af as SkillContext, ag as SkillHandler, ah as SkillInstructionResult, ai as SkillInvocationContext, aj as SkillManifestError, ak as SkillOutput, al as Span, am as SpanEvent, an as ToolCalledEvent, ao as ToolDescription, ap as ToolError, aq as ToolEvent, ar as ToolEventType, as as ToolHub, at as ToolIntent, au as ToolMetadata, av as ToolResult, aw as ToolResultEvent, ax as ToolSearchQuery, ay as Tracing, az as ValidationResult, aA as createAgentToolHub, aB as createLogger, aC as createToolHub, aD as createToolHubAndInitFromConfig, aE as registerCoreTools, aF as sanitizeForLog, aG as summarizeForLog, aH as validateFrontmatter } from './toolhub-runtime-Du3j3gS3.js';
|
|
3
3
|
import '@easynet/n8n-local';
|
|
4
4
|
import 'ajv';
|
|
5
5
|
import 'cockatiel';
|
|
@@ -541,6 +541,8 @@ declare class DiscoveryError extends Error {
|
|
|
541
541
|
constructor(toolDir: string, phase: "manifest" | "load" | "validate", message: string, cause?: Error);
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
+
/** Default config filename used when no path is given (e.g. AgentToolHub(), CLI). */
|
|
545
|
+
declare const DEFAULT_CONFIG_FILE = "toolhub.yaml";
|
|
544
546
|
interface ToolHubConfigLoadResult {
|
|
545
547
|
configPath: string;
|
|
546
548
|
rawConfig: unknown;
|
|
@@ -549,4 +551,4 @@ interface ToolHubConfigLoadResult {
|
|
|
549
551
|
declare function mapToolHubConfig(raw: unknown, configDir: string): ToolHubInitOptions;
|
|
550
552
|
declare function loadToolHubConfig(configPath: string): Promise<ToolHubConfigLoadResult>;
|
|
551
553
|
|
|
552
|
-
export { AsyncJobManager, type BuildEvidenceOptions, Capability, CostHints, type DirectoryDiscoveryOptions, DirectoryScanner, type DirectoryScannerOptions, DirectoryToolAdapter, type DiscoverableKind, Discovery, DiscoveryError, type DiscoverySource, Evidence, ExecContext, InMemoryJobStore, type Job, type JobStatus, type JobStore, type LoadedTool, type MCPConnectionInfo, MCPProcessManager, type MCPServerConfig, type RetryOptions, SkillDefinition, SkillFrontmatter, SkillResource, type SubmitJobOptions, ToolAdapter, type ToolHubConfigLoadResult, ToolHubInitOptions, ToolKind, type ToolManifest, ToolRegistry, ToolSpec, buildEvidence, createDirectoryDiscoverySource, createTaggedError, deletePathSpec, downloadFileSpec, fetchJsonSpec, fetchTextSpec, hashTextSpec, headSpec, isIpInBlockedCidrs, isRetryable, jsonSelectSpec, listDirSpec, loadSkillDefinition, loadToolHubConfig, mapToolHubConfig, nowSpec, parseSkillMd, readTextSpec, resolveSandboxedPath, scanSkillResources, searchTextSpec, sha256Spec, templateRenderSpec, truncateSpec, validateUrl, withRetry, writeTextSpec };
|
|
554
|
+
export { AsyncJobManager, type BuildEvidenceOptions, Capability, CostHints, DEFAULT_CONFIG_FILE, type DirectoryDiscoveryOptions, DirectoryScanner, type DirectoryScannerOptions, DirectoryToolAdapter, type DiscoverableKind, Discovery, DiscoveryError, type DiscoverySource, Evidence, ExecContext, InMemoryJobStore, type Job, type JobStatus, type JobStore, type LoadedTool, type MCPConnectionInfo, MCPProcessManager, type MCPServerConfig, type RetryOptions, SkillDefinition, SkillFrontmatter, SkillResource, type SubmitJobOptions, ToolAdapter, type ToolHubConfigLoadResult, ToolHubInitOptions, ToolKind, type ToolManifest, ToolRegistry, ToolSpec, buildEvidence, createDirectoryDiscoverySource, createTaggedError, deletePathSpec, downloadFileSpec, fetchJsonSpec, fetchTextSpec, hashTextSpec, headSpec, isIpInBlockedCidrs, isRetryable, jsonSelectSpec, listDirSpec, loadSkillDefinition, loadToolHubConfig, mapToolHubConfig, nowSpec, parseSkillMd, readTextSpec, resolveSandboxedPath, scanSkillResources, searchTextSpec, sha256Spec, templateRenderSpec, truncateSpec, validateUrl, withRetry, writeTextSpec };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createAgentToolHub, createToolHubAndInitFromConfig } from './chunk-
|
|
2
|
-
import { DirectoryScanner } from './chunk-
|
|
3
|
-
export { BudgetManager, ComfyUIAdapter, CoreAdapter, DEFAULT_CORE_TOOLS_CONFIG, DirectoryScanner, DiscoveryError, EventLog, LangChainAdapter, MCPAdapter, Metrics, N8nAdapter, PTCRuntime, PolicyDeniedError, PolicyEngine, SchemaValidationError, SchemaValidator, SkillAdapter, SkillManifestError, ToolHub, ToolRegistry, Tracing, buildEvidence, createTaggedError, createToolHub, deletePathSpec, downloadFileSpec, fetchJsonSpec, fetchTextSpec, hashTextSpec, headSpec, isIpInBlockedCidrs, isRetryable, jsonSelectSpec, listDirSpec, loadSkillDefinition, loadToolHubConfig, mapToolHubConfig, nowSpec, parseSkillMd, readTextSpec, registerCoreTools, resolveSandboxedPath, scanSkillResources, searchTextSpec, sha256Spec, templateRenderSpec, truncateSpec, validateFrontmatter, validateUrl, withRetry, writeTextSpec } from './chunk-
|
|
1
|
+
export { AgentToolHub, createAgentToolHub, createToolHubAndInitFromConfig } from './chunk-MMNUEPKB.js';
|
|
2
|
+
import { DirectoryScanner } from './chunk-QSBCXLMH.js';
|
|
3
|
+
export { BudgetManager, ComfyUIAdapter, CoreAdapter, DEFAULT_CONFIG_FILE, DEFAULT_CORE_TOOLS_CONFIG, DirectoryScanner, DiscoveryError, EventLog, LangChainAdapter, MCPAdapter, Metrics, N8nAdapter, PTCRuntime, PolicyDeniedError, PolicyEngine, SchemaValidationError, SchemaValidator, SkillAdapter, SkillManifestError, ToolHub, ToolRegistry, Tracing, buildEvidence, createTaggedError, createToolHub, deletePathSpec, downloadFileSpec, fetchJsonSpec, fetchTextSpec, hashTextSpec, headSpec, isIpInBlockedCidrs, isRetryable, jsonSelectSpec, listDirSpec, loadSkillDefinition, loadToolHubConfig, mapToolHubConfig, nowSpec, parseSkillMd, readTextSpec, registerCoreTools, resolveSandboxedPath, scanSkillResources, searchTextSpec, sha256Spec, templateRenderSpec, truncateSpec, validateFrontmatter, validateUrl, withRetry, writeTextSpec } from './chunk-QSBCXLMH.js';
|
|
4
4
|
export { N8nLocalAdapter } from './chunk-MHEFFZBB.js';
|
|
5
5
|
export { createLogger, sanitizeForLog, summarizeForLog } from './chunk-YSYEED4K.js';
|
|
6
6
|
import { v4 } from 'uuid';
|
|
@@ -1557,8 +1557,59 @@ declare class ToolHub {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
declare function createToolHub(options: ToolHubInitOptions): ToolHub;
|
|
1559
1559
|
|
|
1560
|
+
/**
|
|
1561
|
+
* High-level facade for initializing and using the tool hub from a config file.
|
|
1562
|
+
* Supports two constructor forms:
|
|
1563
|
+
* - `new AgentToolHub()` — uses default config path (toolhub.yaml in cwd).
|
|
1564
|
+
* - `new AgentToolHub(configPath)` — uses the given config file path.
|
|
1565
|
+
*
|
|
1566
|
+
* Call `await toolHub.init()` after construction to load config and discover tools.
|
|
1567
|
+
* Then use the same API as ToolHub (invokeTool, listToolMetadata, etc.).
|
|
1568
|
+
*/
|
|
1569
|
+
declare class AgentToolHub {
|
|
1570
|
+
private readonly configPath;
|
|
1571
|
+
private hub;
|
|
1572
|
+
/**
|
|
1573
|
+
* @param configPath Optional path to toolhub config (YAML). If omitted, uses
|
|
1574
|
+
* default "toolhub.yaml" resolved from process.cwd().
|
|
1575
|
+
*/
|
|
1576
|
+
constructor(configPath?: string);
|
|
1577
|
+
/**
|
|
1578
|
+
* Load config from the path given at construction, create the underlying ToolHub,
|
|
1579
|
+
* and initialize all tools. Must be called before using invokeTool, listToolMetadata, etc.
|
|
1580
|
+
*/
|
|
1581
|
+
init(): Promise<ToolSpec[]>;
|
|
1582
|
+
private requireHub;
|
|
1583
|
+
listToolMetadata(): ToolMetadata[];
|
|
1584
|
+
getToolDescription(toolName: string): ToolDescription;
|
|
1585
|
+
invokeTool(toolName: string, args: unknown, options?: InvokeOptions): Promise<ToolResult>;
|
|
1586
|
+
invokeIntent(intent: ToolIntent, ctx: ExecContext): Promise<ToolResult>;
|
|
1587
|
+
getRegistry(): ToolRegistry;
|
|
1588
|
+
getRuntime(): PTCRuntime;
|
|
1589
|
+
refreshTools(): Promise<ToolSpec[]>;
|
|
1590
|
+
addRoots(roots: Array<string | {
|
|
1591
|
+
path: string;
|
|
1592
|
+
namespace?: string;
|
|
1593
|
+
}>, refresh?: boolean): Promise<ToolSpec[] | void>;
|
|
1594
|
+
setRoots(roots: Array<string | {
|
|
1595
|
+
path: string;
|
|
1596
|
+
namespace?: string;
|
|
1597
|
+
}>, refresh?: boolean): Promise<ToolSpec[] | void>;
|
|
1598
|
+
watchRoots(options?: {
|
|
1599
|
+
debounceMs?: number;
|
|
1600
|
+
persistent?: boolean;
|
|
1601
|
+
}): void;
|
|
1602
|
+
unwatchRoots(): void;
|
|
1603
|
+
shutdown(): Promise<void>;
|
|
1604
|
+
/** Config path used for init (resolved absolute path). */
|
|
1605
|
+
getConfigPath(): string;
|
|
1606
|
+
}
|
|
1560
1607
|
declare function createToolHubAndInit(options: ToolHubInitOptions): Promise<ToolHub>;
|
|
1561
1608
|
declare function createToolHubAndInitFromConfig(configPath: string): Promise<ToolHub>;
|
|
1562
|
-
|
|
1609
|
+
/**
|
|
1610
|
+
* Create an AgentToolHub from a config path, run init(), and return the instance.
|
|
1611
|
+
* Equivalent to: `const hub = new AgentToolHub(configPath); await hub.init(); return hub;`
|
|
1612
|
+
*/
|
|
1613
|
+
declare function createAgentToolHub(configPath: string): Promise<AgentToolHub>;
|
|
1563
1614
|
|
|
1564
|
-
export {
|
|
1615
|
+
export { type N8nInvokeMode as $, AgentToolHub as A, type BudgetConfig as B, type Capability as C, DEFAULT_CORE_TOOLS_CONFIG as D, type ExecContext as E, type HttpClient as F, type JobFailedEvent as G, type HistogramValue as H, type InvokeOptions as I, type JobCompletedEvent as J, type JobSubmittedEvent as K, LangChainAdapter as L, type LangChainAdapterOptions as M, type LangChainToolLike as N, type LogEntry as O, type LogLevel as P, type Logger as Q, MCPAdapter as R, type SkillDefinition as S, type ToolSpec as T, type MCPAdapterOptions as U, type MCPCallResult as V, type MCPClientLike as W, type MCPToolDefinition as X, Metrics as Y, N8nAdapter as Z, type N8nAdapterOptions as _, type Evidence as a, N8nLocalAdapter as a0, type N8nLocalAdapterOptions as a1, PTCRuntime as a2, type PTCRuntimeConfig as a3, type PolicyCheckResult as a4, type PolicyConfig as a5, PolicyDeniedError as a6, type PolicyDeniedEvent as a7, PolicyEngine as a8, type ResolvedDebugOptions as a9, createAgentToolHub as aA, createLogger as aB, createToolHub as aC, createToolHubAndInitFromConfig as aD, registerCoreTools as aE, sanitizeForLog as aF, summarizeForLog as aG, validateFrontmatter as aH, createToolHubAndInit as aI, type RetryEvent as aa, SchemaValidationError as ab, SchemaValidator as ac, SkillAdapter as ad, type SkillAdapterOptions as ae, type SkillContext as af, type SkillHandler as ag, type SkillInstructionResult as ah, type SkillInvocationContext as ai, SkillManifestError as aj, type SkillOutput as ak, type Span as al, type SpanEvent as am, type ToolCalledEvent as an, type ToolDescription as ao, type ToolError as ap, type ToolEvent as aq, type ToolEventType as ar, ToolHub as as, type ToolIntent as at, type ToolMetadata as au, type ToolResult as av, type ToolResultEvent as aw, type ToolSearchQuery as ax, Tracing as ay, type ValidationResult as az, ToolRegistry as b, type ToolAdapter as c, type SkillFrontmatter as d, type SkillResource as e, type ToolKind as f, type CostHints as g, type ToolHubInitOptions as h, type AnyToolEvent as i, BudgetManager as j, type BudgetOptions as k, ComfyUIAdapter as l, type ComfyUIAdapterOptions as m, type ComfyUIHistoryEntry as n, type ComfyUIHttpClient as o, type ComfyUIQueueResponse as p, CoreAdapter as q, type CoreToolContext as r, type CoreToolHandler as s, type CoreToolResult as t, type CoreToolsConfig as u, type CoreToolsUserConfig as v, type CounterValue as w, type DebugOptions as x, type EventListener as y, EventLog as z };
|
|
@@ -1557,8 +1557,59 @@ declare class ToolHub {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
declare function createToolHub(options: ToolHubInitOptions): ToolHub;
|
|
1559
1559
|
|
|
1560
|
+
/**
|
|
1561
|
+
* High-level facade for initializing and using the tool hub from a config file.
|
|
1562
|
+
* Supports two constructor forms:
|
|
1563
|
+
* - `new AgentToolHub()` — uses default config path (toolhub.yaml in cwd).
|
|
1564
|
+
* - `new AgentToolHub(configPath)` — uses the given config file path.
|
|
1565
|
+
*
|
|
1566
|
+
* Call `await toolHub.init()` after construction to load config and discover tools.
|
|
1567
|
+
* Then use the same API as ToolHub (invokeTool, listToolMetadata, etc.).
|
|
1568
|
+
*/
|
|
1569
|
+
declare class AgentToolHub {
|
|
1570
|
+
private readonly configPath;
|
|
1571
|
+
private hub;
|
|
1572
|
+
/**
|
|
1573
|
+
* @param configPath Optional path to toolhub config (YAML). If omitted, uses
|
|
1574
|
+
* default "toolhub.yaml" resolved from process.cwd().
|
|
1575
|
+
*/
|
|
1576
|
+
constructor(configPath?: string);
|
|
1577
|
+
/**
|
|
1578
|
+
* Load config from the path given at construction, create the underlying ToolHub,
|
|
1579
|
+
* and initialize all tools. Must be called before using invokeTool, listToolMetadata, etc.
|
|
1580
|
+
*/
|
|
1581
|
+
init(): Promise<ToolSpec[]>;
|
|
1582
|
+
private requireHub;
|
|
1583
|
+
listToolMetadata(): ToolMetadata[];
|
|
1584
|
+
getToolDescription(toolName: string): ToolDescription;
|
|
1585
|
+
invokeTool(toolName: string, args: unknown, options?: InvokeOptions): Promise<ToolResult>;
|
|
1586
|
+
invokeIntent(intent: ToolIntent, ctx: ExecContext): Promise<ToolResult>;
|
|
1587
|
+
getRegistry(): ToolRegistry;
|
|
1588
|
+
getRuntime(): PTCRuntime;
|
|
1589
|
+
refreshTools(): Promise<ToolSpec[]>;
|
|
1590
|
+
addRoots(roots: Array<string | {
|
|
1591
|
+
path: string;
|
|
1592
|
+
namespace?: string;
|
|
1593
|
+
}>, refresh?: boolean): Promise<ToolSpec[] | void>;
|
|
1594
|
+
setRoots(roots: Array<string | {
|
|
1595
|
+
path: string;
|
|
1596
|
+
namespace?: string;
|
|
1597
|
+
}>, refresh?: boolean): Promise<ToolSpec[] | void>;
|
|
1598
|
+
watchRoots(options?: {
|
|
1599
|
+
debounceMs?: number;
|
|
1600
|
+
persistent?: boolean;
|
|
1601
|
+
}): void;
|
|
1602
|
+
unwatchRoots(): void;
|
|
1603
|
+
shutdown(): Promise<void>;
|
|
1604
|
+
/** Config path used for init (resolved absolute path). */
|
|
1605
|
+
getConfigPath(): string;
|
|
1606
|
+
}
|
|
1560
1607
|
declare function createToolHubAndInit(options: ToolHubInitOptions): Promise<ToolHub>;
|
|
1561
1608
|
declare function createToolHubAndInitFromConfig(configPath: string): Promise<ToolHub>;
|
|
1562
|
-
|
|
1609
|
+
/**
|
|
1610
|
+
* Create an AgentToolHub from a config path, run init(), and return the instance.
|
|
1611
|
+
* Equivalent to: `const hub = new AgentToolHub(configPath); await hub.init(); return hub;`
|
|
1612
|
+
*/
|
|
1613
|
+
declare function createAgentToolHub(configPath: string): Promise<AgentToolHub>;
|
|
1563
1614
|
|
|
1564
|
-
export {
|
|
1615
|
+
export { type N8nInvokeMode as $, AgentToolHub as A, type BudgetConfig as B, type Capability as C, DEFAULT_CORE_TOOLS_CONFIG as D, type ExecContext as E, type HttpClient as F, type JobFailedEvent as G, type HistogramValue as H, type InvokeOptions as I, type JobCompletedEvent as J, type JobSubmittedEvent as K, LangChainAdapter as L, type LangChainAdapterOptions as M, type LangChainToolLike as N, type LogEntry as O, type LogLevel as P, type Logger as Q, MCPAdapter as R, type SkillDefinition as S, type ToolSpec as T, type MCPAdapterOptions as U, type MCPCallResult as V, type MCPClientLike as W, type MCPToolDefinition as X, Metrics as Y, N8nAdapter as Z, type N8nAdapterOptions as _, type Evidence as a, N8nLocalAdapter as a0, type N8nLocalAdapterOptions as a1, PTCRuntime as a2, type PTCRuntimeConfig as a3, type PolicyCheckResult as a4, type PolicyConfig as a5, PolicyDeniedError as a6, type PolicyDeniedEvent as a7, PolicyEngine as a8, type ResolvedDebugOptions as a9, createAgentToolHub as aA, createLogger as aB, createToolHub as aC, createToolHubAndInitFromConfig as aD, registerCoreTools as aE, sanitizeForLog as aF, summarizeForLog as aG, validateFrontmatter as aH, createToolHubAndInit as aI, type RetryEvent as aa, SchemaValidationError as ab, SchemaValidator as ac, SkillAdapter as ad, type SkillAdapterOptions as ae, type SkillContext as af, type SkillHandler as ag, type SkillInstructionResult as ah, type SkillInvocationContext as ai, SkillManifestError as aj, type SkillOutput as ak, type Span as al, type SpanEvent as am, type ToolCalledEvent as an, type ToolDescription as ao, type ToolError as ap, type ToolEvent as aq, type ToolEventType as ar, ToolHub as as, type ToolIntent as at, type ToolMetadata as au, type ToolResult as av, type ToolResultEvent as aw, type ToolSearchQuery as ax, Tracing as ay, type ValidationResult as az, ToolRegistry as b, type ToolAdapter as c, type SkillFrontmatter as d, type SkillResource as e, type ToolKind as f, type CostHints as g, type ToolHubInitOptions as h, type AnyToolEvent as i, BudgetManager as j, type BudgetOptions as k, ComfyUIAdapter as l, type ComfyUIAdapterOptions as m, type ComfyUIHistoryEntry as n, type ComfyUIHttpClient as o, type ComfyUIQueueResponse as p, CoreAdapter as q, type CoreToolContext as r, type CoreToolHandler as s, type CoreToolResult as t, type CoreToolsConfig as u, type CoreToolsUserConfig as v, type CounterValue as w, type DebugOptions as x, type EventListener as y, EventLog as z };
|
package/dist/toolhub-runtime.cjs
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkCJZ2EWUG_cjs = require('./chunk-CJZ2EWUG.cjs');
|
|
4
|
+
var chunkXHNKPSOO_cjs = require('./chunk-XHNKPSOO.cjs');
|
|
5
5
|
require('./chunk-NTTBDQUF.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
Object.defineProperty(exports, "AgentToolHub", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkCJZ2EWUG_cjs.AgentToolHub; }
|
|
12
|
+
});
|
|
9
13
|
Object.defineProperty(exports, "createAgentToolHub", {
|
|
10
14
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkCJZ2EWUG_cjs.createAgentToolHub; }
|
|
12
16
|
});
|
|
13
17
|
Object.defineProperty(exports, "createToolHubAndInit", {
|
|
14
18
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkCJZ2EWUG_cjs.createToolHubAndInit; }
|
|
16
20
|
});
|
|
17
21
|
Object.defineProperty(exports, "createToolHubAndInitFromConfig", {
|
|
18
22
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkCJZ2EWUG_cjs.createToolHubAndInitFromConfig; }
|
|
20
24
|
});
|
|
21
25
|
Object.defineProperty(exports, "ToolHub", {
|
|
22
26
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkXHNKPSOO_cjs.ToolHub; }
|
|
24
28
|
});
|
|
25
29
|
Object.defineProperty(exports, "createToolHub", {
|
|
26
30
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkXHNKPSOO_cjs.createToolHub; }
|
|
28
32
|
});
|
|
29
33
|
//# sourceMappingURL=toolhub-runtime.cjs.map
|
|
30
34
|
//# sourceMappingURL=toolhub-runtime.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InvokeOptions,
|
|
1
|
+
export { A as AgentToolHub, I as InvokeOptions, as as ToolHub, h as ToolHubInitOptions, aA as createAgentToolHub, aC as createToolHub, aI as createToolHubAndInit, aD as createToolHubAndInitFromConfig } from './toolhub-runtime-Du3j3gS3.cjs';
|
|
2
2
|
import '@easynet/n8n-local';
|
|
3
3
|
import 'ajv';
|
|
4
4
|
import 'cockatiel';
|