@easynet/agent-tool 1.0.101 → 1.0.103

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.
@@ -48,8 +48,22 @@ function normalizeOpenApiConfig(raw) {
48
48
  }
49
49
  function normalizeToolSources(raw) {
50
50
  if (!raw || typeof raw !== "object" || Array.isArray(raw)) return void 0;
51
+ const source = raw;
51
52
  const out = {};
52
- for (const [sourceKey, sourceValue] of Object.entries(raw)) {
53
+ const customized = source.customized;
54
+ if (customized && typeof customized === "object" && !Array.isArray(customized)) {
55
+ for (const [sourceKey, sourceValue] of Object.entries(customized)) {
56
+ if (!sourceValue || typeof sourceValue !== "object" || Array.isArray(sourceValue)) continue;
57
+ const toolMap = {};
58
+ for (const [toolName, toolValue] of Object.entries(sourceValue)) {
59
+ if (!toolValue || typeof toolValue !== "object" || Array.isArray(toolValue)) continue;
60
+ toolMap[toolName] = toolValue;
61
+ }
62
+ out[sourceKey] = toolMap;
63
+ }
64
+ }
65
+ for (const [sourceKey, sourceValue] of Object.entries(source)) {
66
+ if (sourceKey === "customized" || sourceKey === "deepagents") continue;
53
67
  if (!sourceValue || typeof sourceValue !== "object" || Array.isArray(sourceValue)) continue;
54
68
  const toolMap = {};
55
69
  for (const [toolName, toolValue] of Object.entries(sourceValue)) {
@@ -1886,7 +1900,7 @@ async function importFromCache(packageRoot) {
1886
1900
  fileUrl
1887
1901
  );
1888
1902
  }
1889
- var requireFromPackage = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-YBMF3C6F.cjs', document.baseURI).href)));
1903
+ var requireFromPackage = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-KTPQDVP6.cjs', document.baseURI).href)));
1890
1904
  function getProjectRequire() {
1891
1905
  const cwd = process.cwd();
1892
1906
  if (fs.existsSync(path.join(cwd, "package.json"))) return module$1.createRequire(path.join(cwd, "package.json"));
@@ -2052,7 +2066,7 @@ function parseNpmDescriptor(entry) {
2052
2066
  }
2053
2067
 
2054
2068
  // src/api/runtimeFromConfig.ts
2055
- var requireFromPackage2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-YBMF3C6F.cjs', document.baseURI).href)));
2069
+ var requireFromPackage2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-KTPQDVP6.cjs', document.baseURI).href)));
2056
2070
  var DEFAULT_EXTENSION_PACKAGES = [];
2057
2071
  function resolveEffectiveCoreTools(options) {
2058
2072
  if (options.coreTools) return options.coreTools;
@@ -2967,5 +2981,5 @@ exports.resolveSandboxedPath = resolveSandboxedPath;
2967
2981
  exports.resolveToolDescriptor = resolveToolDescriptor;
2968
2982
  exports.runMCPServerOverStdio = runMCPServerOverStdio;
2969
2983
  exports.toToolObservationText = toToolObservationText;
2970
- //# sourceMappingURL=chunk-YBMF3C6F.cjs.map
2971
- //# sourceMappingURL=chunk-YBMF3C6F.cjs.map
2984
+ //# sourceMappingURL=chunk-KTPQDVP6.cjs.map
2985
+ //# sourceMappingURL=chunk-KTPQDVP6.cjs.map