@easynet/agent-tool 1.0.42 → 1.0.44
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/main.cjs +14 -14
- package/dist/api/main.js +3 -3
- package/dist/api/runtimeFromConfig.d.ts +2 -0
- package/dist/api/runtimeFromConfig.d.ts.map +1 -1
- package/dist/{chunk-CTB3RP4C.cjs → chunk-E6KWBXZC.cjs} +15 -15
- package/dist/{chunk-CTB3RP4C.cjs.map → chunk-E6KWBXZC.cjs.map} +1 -1
- package/dist/{chunk-TXZITBLR.js → chunk-GYO7ZNFJ.js} +2 -2
- package/dist/{chunk-TXZITBLR.js.map → chunk-GYO7ZNFJ.js.map} +1 -1
- package/dist/{chunk-UFV5ZRAX.js → chunk-H2FRG24O.js} +3 -3
- package/dist/{chunk-UFV5ZRAX.js.map → chunk-H2FRG24O.js.map} +1 -1
- package/dist/{chunk-NE3PKHM7.js → chunk-KCA5RPPX.js} +3 -3
- package/dist/{chunk-NE3PKHM7.js.map → chunk-KCA5RPPX.js.map} +1 -1
- package/dist/{chunk-LO5Y3D4O.cjs → chunk-N4PVR66J.cjs} +9 -9
- package/dist/{chunk-LO5Y3D4O.cjs.map → chunk-N4PVR66J.cjs.map} +1 -1
- package/dist/{chunk-4MAR5XDN.js → chunk-OVMBDOKU.js} +3 -3
- package/dist/{chunk-4MAR5XDN.js.map → chunk-OVMBDOKU.js.map} +1 -1
- package/dist/{chunk-PAXUM4QS.cjs → chunk-TRTPE426.cjs} +3 -3
- package/dist/{chunk-PAXUM4QS.cjs.map → chunk-TRTPE426.cjs.map} +1 -1
- package/dist/{chunk-GVYVTQUB.cjs → chunk-ZRNYEFY3.cjs} +7 -7
- package/dist/{chunk-GVYVTQUB.cjs.map → chunk-ZRNYEFY3.cjs.map} +1 -1
- package/dist/index.cjs +52 -52
- package/dist/index.js +5 -5
- package/dist/utils/cli/index.cjs +17 -17
- package/dist/utils/cli/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTRTPE426_cjs = require('./chunk-TRTPE426.cjs');
|
|
4
4
|
var chunkDYDNPIV2_cjs = require('./chunk-DYDNPIV2.cjs');
|
|
5
5
|
var fs3 = require('fs/promises');
|
|
6
6
|
var path9 = require('path');
|
|
@@ -1017,7 +1017,7 @@ async function scan4(projectPath, options = {}) {
|
|
|
1017
1017
|
});
|
|
1018
1018
|
return { specs: [], errors };
|
|
1019
1019
|
}
|
|
1020
|
-
const filtered = specs.filter((s) => s.kind ===
|
|
1020
|
+
const filtered = specs.filter((s) => s.kind === chunkTRTPE426_cjs.MCP_KIND);
|
|
1021
1021
|
return { specs: filtered, errors };
|
|
1022
1022
|
}
|
|
1023
1023
|
async function scan5(projectPath, options = {}) {
|
|
@@ -1043,7 +1043,7 @@ async function scan5(projectPath, options = {}) {
|
|
|
1043
1043
|
});
|
|
1044
1044
|
return { specs: [], errors };
|
|
1045
1045
|
}
|
|
1046
|
-
const filtered = specs.filter((s) => s.kind ===
|
|
1046
|
+
const filtered = specs.filter((s) => s.kind === chunkTRTPE426_cjs.LANGCHAIN_KIND);
|
|
1047
1047
|
return { specs: filtered, errors };
|
|
1048
1048
|
}
|
|
1049
1049
|
async function loadLangChainTool(dirPath, manifest, extensions) {
|
|
@@ -1460,7 +1460,7 @@ var DirectoryScanner = class {
|
|
|
1460
1460
|
false,
|
|
1461
1461
|
namespace,
|
|
1462
1462
|
this.extensions,
|
|
1463
|
-
|
|
1463
|
+
chunkTRTPE426_cjs.LANGCHAIN_DIR_NAME,
|
|
1464
1464
|
(loaded3, nameHint, dp, ns) => this.toToolSpec(loaded3, nameHint, dp, ns),
|
|
1465
1465
|
this.onError
|
|
1466
1466
|
);
|
|
@@ -1496,7 +1496,7 @@ var DirectoryScanner = class {
|
|
|
1496
1496
|
true,
|
|
1497
1497
|
namespace,
|
|
1498
1498
|
this.extensions,
|
|
1499
|
-
|
|
1499
|
+
chunkTRTPE426_cjs.LANGCHAIN_DIR_NAME,
|
|
1500
1500
|
(loaded2, nameHint, dp, ns) => this.toToolSpec(loaded2, nameHint, dp, ns),
|
|
1501
1501
|
this.onError
|
|
1502
1502
|
);
|
|
@@ -1515,7 +1515,7 @@ var DirectoryScanner = class {
|
|
|
1515
1515
|
for (const m of DIRECTORY_KIND_MARKERS) {
|
|
1516
1516
|
if (await this.fileExists(path9.join(dirPath, m.markerFile))) kinds.push(m.kind);
|
|
1517
1517
|
}
|
|
1518
|
-
const isLangchainDir = dirName ===
|
|
1518
|
+
const isLangchainDir = dirName === chunkTRTPE426_cjs.LANGCHAIN_DIR_NAME;
|
|
1519
1519
|
const hasLangchain = isLangchainDir ? (await listLangchainEntryFiles(dirPath, this.extensions)).length > 0 : dirName !== SKILL_DIR_NAME && await this.hasEntryPoint(dirPath, "index");
|
|
1520
1520
|
if (hasLangchain) kinds.push("langchain");
|
|
1521
1521
|
if (kinds.length === 0) return null;
|
|
@@ -1654,7 +1654,7 @@ async function scanForAllTools(projectPath, options = {}) {
|
|
|
1654
1654
|
const warnings = results.flatMap((r) => r.warnings ?? []);
|
|
1655
1655
|
return { specs, errors, warnings };
|
|
1656
1656
|
}
|
|
1657
|
-
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-
|
|
1657
|
+
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-N4PVR66J.cjs', document.baseURI).href))));
|
|
1658
1658
|
async function loadTemplate(name) {
|
|
1659
1659
|
for (const dir of [
|
|
1660
1660
|
path9__namespace.join(__dirname$1, "templates"),
|
|
@@ -1868,5 +1868,5 @@ exports.scan = scan;
|
|
|
1868
1868
|
exports.scanForTools = scanForTools;
|
|
1869
1869
|
exports.scanSkillResources = scanSkillResources;
|
|
1870
1870
|
exports.validateFrontmatter = validateFrontmatter;
|
|
1871
|
-
//# sourceMappingURL=chunk-
|
|
1872
|
-
//# sourceMappingURL=chunk-
|
|
1871
|
+
//# sourceMappingURL=chunk-N4PVR66J.cjs.map
|
|
1872
|
+
//# sourceMappingURL=chunk-N4PVR66J.cjs.map
|