@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.
- package/dist/{chunk-34SBJLFZ.js → chunk-3C4VJ4DI.js} +17 -3
- package/dist/chunk-3C4VJ4DI.js.map +1 -0
- package/dist/{chunk-YBMF3C6F.cjs → chunk-KTPQDVP6.cjs} +19 -5
- package/dist/chunk-KTPQDVP6.cjs.map +1 -0
- package/dist/index.cjs +10 -10
- package/dist/index.js +1 -1
- package/dist/tools/util/toolConfig.d.ts.map +1 -1
- package/dist/utils/cli/index.cjs +14 -14
- package/dist/utils/cli/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-34SBJLFZ.js.map +0 -1
- package/dist/chunk-YBMF3C6F.cjs.map +0 -1
|
@@ -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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
2971
|
-
//# sourceMappingURL=chunk-
|
|
2984
|
+
//# sourceMappingURL=chunk-KTPQDVP6.cjs.map
|
|
2985
|
+
//# sourceMappingURL=chunk-KTPQDVP6.cjs.map
|