@easynet/agent-tool 1.0.33 → 1.0.35

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.
Files changed (49) hide show
  1. package/dist/api/adapters/LangChainToolsHub.d.ts.map +1 -1
  2. package/dist/api/createAgentTools.d.ts.map +1 -1
  3. package/dist/api/extension/dynamicImportAdapter.d.ts +6 -2
  4. package/dist/api/extension/dynamicImportAdapter.d.ts.map +1 -1
  5. package/dist/api/extension/generateExtensionManifest.d.ts +3 -3
  6. package/dist/api/extension/generateExtensionManifest.d.ts.map +1 -1
  7. package/dist/api/extension/loadToolYaml.d.ts +1 -0
  8. package/dist/api/extension/loadToolYaml.d.ts.map +1 -1
  9. package/dist/api/extension/registerExtension.d.ts.map +1 -1
  10. package/dist/api/extension/registerFromManifest.d.ts.map +1 -1
  11. package/dist/api/main.cjs +14 -14
  12. package/dist/api/main.js +3 -3
  13. package/dist/api/runtimeFromConfig.d.ts +8 -0
  14. package/dist/api/runtimeFromConfig.d.ts.map +1 -1
  15. package/dist/{chunk-PKUSCCS6.cjs → chunk-2WDDJYR7.cjs} +243 -135
  16. package/dist/chunk-2WDDJYR7.cjs.map +1 -0
  17. package/dist/{chunk-GYUELFVR.js → chunk-DDIGAOYI.js} +3 -3
  18. package/dist/{chunk-GYUELFVR.js.map → chunk-DDIGAOYI.js.map} +1 -1
  19. package/dist/{chunk-ETZKGTTF.cjs → chunk-P25NBSPT.cjs} +7 -7
  20. package/dist/{chunk-ETZKGTTF.cjs.map → chunk-P25NBSPT.cjs.map} +1 -1
  21. package/dist/{chunk-UUQGKFSG.js → chunk-PSVSVTHY.js} +241 -136
  22. package/dist/chunk-PSVSVTHY.js.map +1 -0
  23. package/dist/{chunk-6UOHURU4.js → chunk-RRVM6JBA.js} +42 -5
  24. package/dist/chunk-RRVM6JBA.js.map +1 -0
  25. package/dist/{chunk-YP6GRCQG.cjs → chunk-S27O27OH.cjs} +53 -16
  26. package/dist/chunk-S27O27OH.cjs.map +1 -0
  27. package/dist/{chunk-FHHD4FSI.js → chunk-U3CAAURW.js} +3 -3
  28. package/dist/{chunk-FHHD4FSI.js.map → chunk-U3CAAURW.js.map} +1 -1
  29. package/dist/{chunk-LOGUQGCL.cjs → chunk-Z5STQ2JO.cjs} +9 -9
  30. package/dist/{chunk-LOGUQGCL.cjs.map → chunk-Z5STQ2JO.cjs.map} +1 -1
  31. package/dist/index.cjs +111 -72
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +63 -28
  36. package/dist/index.js.map +1 -1
  37. package/dist/tools/util/toolConfig.d.ts +11 -3
  38. package/dist/tools/util/toolConfig.d.ts.map +1 -1
  39. package/dist/tools/util/toolDescriptor.d.ts +29 -5
  40. package/dist/tools/util/toolDescriptor.d.ts.map +1 -1
  41. package/dist/utils/cli/index.cjs +17 -17
  42. package/dist/utils/cli/index.js +3 -3
  43. package/dist/utils/npmCache.d.ts +14 -0
  44. package/dist/utils/npmCache.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/chunk-6UOHURU4.js.map +0 -1
  47. package/dist/chunk-PKUSCCS6.cjs.map +0 -1
  48. package/dist/chunk-UUQGKFSG.js.map +0 -1
  49. package/dist/chunk-YP6GRCQG.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkPKUSCCS6_cjs = require('./chunk-PKUSCCS6.cjs');
3
+ var chunk2WDDJYR7_cjs = require('./chunk-2WDDJYR7.cjs');
4
4
  var chunkDYDNPIV2_cjs = require('./chunk-DYDNPIV2.cjs');
5
5
  var fs3 = require('fs/promises');
6
6
  var path9 = require('path');
@@ -1008,7 +1008,7 @@ async function scan4(projectPath, options = {}) {
1008
1008
  });
1009
1009
  return { specs: [], errors };
1010
1010
  }
1011
- const filtered = specs.filter((s) => s.kind === chunkPKUSCCS6_cjs.MCP_KIND);
1011
+ const filtered = specs.filter((s) => s.kind === chunk2WDDJYR7_cjs.MCP_KIND);
1012
1012
  return { specs: filtered, errors };
1013
1013
  }
1014
1014
  async function scan5(projectPath, options = {}) {
@@ -1034,7 +1034,7 @@ async function scan5(projectPath, options = {}) {
1034
1034
  });
1035
1035
  return { specs: [], errors };
1036
1036
  }
1037
- const filtered = specs.filter((s) => s.kind === chunkPKUSCCS6_cjs.LANGCHAIN_KIND);
1037
+ const filtered = specs.filter((s) => s.kind === chunk2WDDJYR7_cjs.LANGCHAIN_KIND);
1038
1038
  return { specs: filtered, errors };
1039
1039
  }
1040
1040
  async function loadLangChainTool(dirPath, manifest, extensions) {
@@ -1451,7 +1451,7 @@ var DirectoryScanner = class {
1451
1451
  false,
1452
1452
  namespace,
1453
1453
  this.extensions,
1454
- chunkPKUSCCS6_cjs.LANGCHAIN_DIR_NAME,
1454
+ chunk2WDDJYR7_cjs.LANGCHAIN_DIR_NAME,
1455
1455
  (loaded3, nameHint, dp, ns) => this.toToolSpec(loaded3, nameHint, dp, ns),
1456
1456
  this.onError
1457
1457
  );
@@ -1487,7 +1487,7 @@ var DirectoryScanner = class {
1487
1487
  true,
1488
1488
  namespace,
1489
1489
  this.extensions,
1490
- chunkPKUSCCS6_cjs.LANGCHAIN_DIR_NAME,
1490
+ chunk2WDDJYR7_cjs.LANGCHAIN_DIR_NAME,
1491
1491
  (loaded2, nameHint, dp, ns) => this.toToolSpec(loaded2, nameHint, dp, ns),
1492
1492
  this.onError
1493
1493
  );
@@ -1506,7 +1506,7 @@ var DirectoryScanner = class {
1506
1506
  for (const m of DIRECTORY_KIND_MARKERS) {
1507
1507
  if (await this.fileExists(path9.join(dirPath, m.markerFile))) kinds.push(m.kind);
1508
1508
  }
1509
- const isLangchainDir = dirName === chunkPKUSCCS6_cjs.LANGCHAIN_DIR_NAME;
1509
+ const isLangchainDir = dirName === chunk2WDDJYR7_cjs.LANGCHAIN_DIR_NAME;
1510
1510
  const hasLangchain = isLangchainDir ? (await listLangchainEntryFiles(dirPath, this.extensions)).length > 0 : dirName !== SKILL_DIR_NAME && await this.hasEntryPoint(dirPath, "index");
1511
1511
  if (hasLangchain) kinds.push("langchain");
1512
1512
  if (kinds.length === 0) return null;
@@ -1645,7 +1645,7 @@ async function scanForAllTools(projectPath, options = {}) {
1645
1645
  const warnings = results.flatMap((r) => r.warnings ?? []);
1646
1646
  return { specs, errors, warnings };
1647
1647
  }
1648
- var __dirname$1 = path9__namespace.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-LOGUQGCL.cjs', document.baseURI).href))));
1648
+ var __dirname$1 = path9__namespace.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-Z5STQ2JO.cjs', document.baseURI).href))));
1649
1649
  async function loadTemplate(name) {
1650
1650
  for (const dir of [
1651
1651
  path9__namespace.join(__dirname$1, "templates"),
@@ -1859,5 +1859,5 @@ exports.scan = scan;
1859
1859
  exports.scanForTools = scanForTools;
1860
1860
  exports.scanSkillResources = scanSkillResources;
1861
1861
  exports.validateFrontmatter = validateFrontmatter;
1862
- //# sourceMappingURL=chunk-LOGUQGCL.cjs.map
1863
- //# sourceMappingURL=chunk-LOGUQGCL.cjs.map
1862
+ //# sourceMappingURL=chunk-Z5STQ2JO.cjs.map
1863
+ //# sourceMappingURL=chunk-Z5STQ2JO.cjs.map