@easynet/agent-tool 1.0.18 → 1.0.19
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/api/expose/mcpServer.d.ts.map +1 -1
- package/dist/api/expose/openapi.d.ts +2 -2
- package/dist/api/expose/openapi.d.ts.map +1 -1
- package/dist/api/main.cjs +17 -16
- package/dist/api/main.js +6 -5
- package/dist/canonicalCoreSchemas-DNBAHSUC.js +4 -0
- package/dist/{canonicalCoreSchemas-YLHVHYJZ.js.map → canonicalCoreSchemas-DNBAHSUC.js.map} +1 -1
- package/dist/canonicalCoreSchemas-IBTSIPJV.cjs +21 -0
- package/dist/{canonicalCoreSchemas-CTW6CCFY.cjs.map → canonicalCoreSchemas-IBTSIPJV.cjs.map} +1 -1
- package/dist/{chunk-FR2CXERF.js → chunk-46XYOB3H.js} +23 -20
- package/dist/chunk-46XYOB3H.js.map +1 -0
- package/dist/{chunk-6F5JHLZ7.cjs → chunk-EAI37B5W.cjs} +23 -20
- package/dist/chunk-EAI37B5W.cjs.map +1 -0
- package/dist/{chunk-SOFUWEZ6.cjs → chunk-FGGTT32N.cjs} +9 -3
- package/dist/chunk-FGGTT32N.cjs.map +1 -0
- package/dist/{chunk-ETWGKCOP.js → chunk-GGKQQR54.js} +9 -8
- package/dist/chunk-GGKQQR54.js.map +1 -0
- package/dist/{chunk-5SWSNVMI.js → chunk-GWBJEGS7.js} +9 -4
- package/dist/chunk-GWBJEGS7.js.map +1 -0
- package/dist/{chunk-OXTQULXH.cjs → chunk-H2UMNHDE.cjs} +14 -13
- package/dist/chunk-H2UMNHDE.cjs.map +1 -0
- package/dist/{chunk-ZIFQWIN3.cjs → chunk-HISF2FEL.cjs} +18 -18
- package/dist/{chunk-ZIFQWIN3.cjs.map → chunk-HISF2FEL.cjs.map} +1 -1
- package/dist/{chunk-AE6FSNGY.js → chunk-IU35EFPK.js} +14 -10
- package/dist/chunk-IU35EFPK.js.map +1 -0
- package/dist/{chunk-EMI67SPN.cjs → chunk-NNOTTUB2.cjs} +23 -20
- package/dist/chunk-NNOTTUB2.cjs.map +1 -0
- package/dist/{chunk-ZNJBRLKN.cjs → chunk-ONIBCU2Y.cjs} +14 -10
- package/dist/chunk-ONIBCU2Y.cjs.map +1 -0
- package/dist/{chunk-7MRBWT2T.js → chunk-QB5ALDM3.js} +4 -4
- package/dist/{chunk-7MRBWT2T.js.map → chunk-QB5ALDM3.js.map} +1 -1
- package/dist/{chunk-YK2MQDNJ.cjs → chunk-TPWEGGKQ.cjs} +11 -11
- package/dist/{chunk-YK2MQDNJ.cjs.map → chunk-TPWEGGKQ.cjs.map} +1 -1
- package/dist/{chunk-RKN4PT7P.js → chunk-TTYAOTOR.js} +9 -6
- package/dist/chunk-TTYAOTOR.js.map +1 -0
- package/dist/{chunk-7WI5VK5G.js → chunk-Y33OLGAJ.js} +3 -3
- package/dist/{chunk-7WI5VK5G.js.map → chunk-Y33OLGAJ.js.map} +1 -1
- package/dist/core/index.cjs +4 -4
- package/dist/core/index.js +1 -1
- package/dist/core/registry/ToolRegistry.d.ts +2 -2
- package/dist/core/registry/ToolRegistry.d.ts.map +1 -1
- package/dist/core/runtime/PTCRuntimePipeline.d.ts +1 -1
- package/dist/core/runtime/PTCRuntimePipeline.d.ts.map +1 -1
- package/dist/core/runtime.cjs +6 -5
- package/dist/core/runtime.js +2 -1
- package/dist/core/types/ToolSpec.d.ts +5 -0
- package/dist/core/types/ToolSpec.d.ts.map +1 -1
- package/dist/index.cjs +77 -73
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/tools/util/canonicalCoreSchemas.d.ts.map +1 -1
- package/dist/tools/util/toolDescriptor.d.ts +2 -13
- package/dist/tools/util/toolDescriptor.d.ts.map +1 -1
- package/dist/utils/cli/index.cjs +23 -23
- package/dist/utils/cli/index.cjs.map +1 -1
- package/dist/utils/cli/index.js +8 -8
- package/dist/utils/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/canonicalCoreSchemas-CTW6CCFY.cjs +0 -20
- package/dist/canonicalCoreSchemas-YLHVHYJZ.js +0 -3
- package/dist/chunk-5SWSNVMI.js.map +0 -1
- package/dist/chunk-6F5JHLZ7.cjs.map +0 -1
- package/dist/chunk-AE6FSNGY.js.map +0 -1
- package/dist/chunk-EMI67SPN.cjs.map +0 -1
- package/dist/chunk-ETWGKCOP.js.map +0 -1
- package/dist/chunk-FR2CXERF.js.map +0 -1
- package/dist/chunk-OXTQULXH.cjs.map +0 -1
- package/dist/chunk-RKN4PT7P.js.map +0 -1
- package/dist/chunk-SOFUWEZ6.cjs.map +0 -1
- package/dist/chunk-ZNJBRLKN.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkNNOTTUB2_cjs = require('./chunk-NNOTTUB2.cjs');
|
|
4
|
+
var chunkFGGTT32N_cjs = require('./chunk-FGGTT32N.cjs');
|
|
5
5
|
var fs3 = require('fs/promises');
|
|
6
6
|
var path9 = require('path');
|
|
7
7
|
var fs2 = require('fs');
|
|
@@ -276,7 +276,7 @@ function mcpSpecToToolSpec(spec, projectPath) {
|
|
|
276
276
|
kind: spec.kind,
|
|
277
277
|
description: spec.description,
|
|
278
278
|
inputSchema: spec.inputSchema ?? DEFAULT_OUTPUT,
|
|
279
|
-
outputSchema: "outputSchema" in spec && spec.outputSchema ? spec.outputSchema :
|
|
279
|
+
outputSchema: "outputSchema" in spec && spec.outputSchema ? spec.outputSchema : chunkFGGTT32N_cjs.DEFAULT_OUTPUT_SCHEMA,
|
|
280
280
|
capabilities: [],
|
|
281
281
|
_meta: spec._meta,
|
|
282
282
|
...spec.kind === N8N_KIND && "webhookUrl" in spec && spec.webhookUrl ? { endpoint: spec.webhookUrl } : {}
|
|
@@ -969,7 +969,7 @@ async function scan4(projectPath, options = {}) {
|
|
|
969
969
|
});
|
|
970
970
|
return { specs: [], errors };
|
|
971
971
|
}
|
|
972
|
-
const filtered = specs.filter((s) => s.kind ===
|
|
972
|
+
const filtered = specs.filter((s) => s.kind === chunkNNOTTUB2_cjs.MCP_KIND);
|
|
973
973
|
return { specs: filtered, errors };
|
|
974
974
|
}
|
|
975
975
|
async function scan5(projectPath, options = {}) {
|
|
@@ -995,7 +995,7 @@ async function scan5(projectPath, options = {}) {
|
|
|
995
995
|
});
|
|
996
996
|
return { specs: [], errors };
|
|
997
997
|
}
|
|
998
|
-
const filtered = specs.filter((s) => s.kind ===
|
|
998
|
+
const filtered = specs.filter((s) => s.kind === chunkNNOTTUB2_cjs.LANGCHAIN_KIND);
|
|
999
999
|
return { specs: filtered, errors };
|
|
1000
1000
|
}
|
|
1001
1001
|
async function loadLangChainTool(dirPath, manifest, extensions) {
|
|
@@ -1412,7 +1412,7 @@ var DirectoryScanner = class {
|
|
|
1412
1412
|
false,
|
|
1413
1413
|
namespace,
|
|
1414
1414
|
this.extensions,
|
|
1415
|
-
|
|
1415
|
+
chunkNNOTTUB2_cjs.LANGCHAIN_DIR_NAME,
|
|
1416
1416
|
(loaded3, nameHint, dp, ns) => this.toToolSpec(loaded3, nameHint, dp, ns),
|
|
1417
1417
|
this.onError
|
|
1418
1418
|
);
|
|
@@ -1448,7 +1448,7 @@ var DirectoryScanner = class {
|
|
|
1448
1448
|
true,
|
|
1449
1449
|
namespace,
|
|
1450
1450
|
this.extensions,
|
|
1451
|
-
|
|
1451
|
+
chunkNNOTTUB2_cjs.LANGCHAIN_DIR_NAME,
|
|
1452
1452
|
(loaded2, nameHint, dp, ns) => this.toToolSpec(loaded2, nameHint, dp, ns),
|
|
1453
1453
|
this.onError
|
|
1454
1454
|
);
|
|
@@ -1467,7 +1467,7 @@ var DirectoryScanner = class {
|
|
|
1467
1467
|
for (const m of DIRECTORY_KIND_MARKERS) {
|
|
1468
1468
|
if (await this.fileExists(path9.join(dirPath, m.markerFile))) kinds.push(m.kind);
|
|
1469
1469
|
}
|
|
1470
|
-
const isLangchainDir = dirName ===
|
|
1470
|
+
const isLangchainDir = dirName === chunkNNOTTUB2_cjs.LANGCHAIN_DIR_NAME;
|
|
1471
1471
|
const hasLangchain = isLangchainDir ? (await listLangchainEntryFiles(dirPath, this.extensions)).length > 0 : dirName !== SKILL_DIR_NAME && await this.hasEntryPoint(dirPath, "index");
|
|
1472
1472
|
if (hasLangchain) kinds.push("langchain");
|
|
1473
1473
|
if (kinds.length === 0) return null;
|
|
@@ -1606,7 +1606,7 @@ async function scanForAllTools(projectPath, options = {}) {
|
|
|
1606
1606
|
const warnings = results.flatMap((r) => r.warnings ?? []);
|
|
1607
1607
|
return { specs, errors, warnings };
|
|
1608
1608
|
}
|
|
1609
|
-
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-
|
|
1609
|
+
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-TPWEGGKQ.cjs', document.baseURI).href))));
|
|
1610
1610
|
async function loadTemplate(name) {
|
|
1611
1611
|
for (const dir of [
|
|
1612
1612
|
path9__namespace.join(__dirname$1, "templates"),
|
|
@@ -1820,5 +1820,5 @@ exports.scan = scan;
|
|
|
1820
1820
|
exports.scanForTools = scanForTools;
|
|
1821
1821
|
exports.scanSkillResources = scanSkillResources;
|
|
1822
1822
|
exports.validateFrontmatter = validateFrontmatter;
|
|
1823
|
-
//# sourceMappingURL=chunk-
|
|
1824
|
-
//# sourceMappingURL=chunk-
|
|
1823
|
+
//# sourceMappingURL=chunk-TPWEGGKQ.cjs.map
|
|
1824
|
+
//# sourceMappingURL=chunk-TPWEGGKQ.cjs.map
|