n8n-nodes-agnicwallet 1.0.9 → 1.0.11
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.
|
@@ -9,9 +9,9 @@ const agents_1 = require("langchain/agents");
|
|
|
9
9
|
const zod_1 = require("zod");
|
|
10
10
|
const json_schema_to_zod_1 = require("@n8n/json-schema-to-zod");
|
|
11
11
|
/**
|
|
12
|
-
* Toolkit class that wraps MCP tools for n8n AI Agent
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Toolkit class that wraps MCP tools for n8n AI Agent.
|
|
13
|
+
* MUST extend Toolkit for n8n's instanceof check to pass.
|
|
14
|
+
* Resolves to n8n's bundled langchain@0.3.x at runtime.
|
|
15
15
|
*/
|
|
16
16
|
class AgnicMcpToolkit extends agents_1.Toolkit {
|
|
17
17
|
constructor(tools) {
|
|
@@ -319,7 +319,8 @@ class AgnicMCPTool {
|
|
|
319
319
|
};
|
|
320
320
|
// Convert MCP tools to LangChain DynamicStructuredTools
|
|
321
321
|
const langchainTools = mcpTools.map((tool) => mcpToolToDynamicTool(tool, callTool));
|
|
322
|
-
// Wrap
|
|
322
|
+
// Wrap in Toolkit for n8n AI Agent compatibility
|
|
323
|
+
// n8n checks: toolkit instanceof Toolkit, then calls getTools()
|
|
323
324
|
const toolkit = new AgnicMcpToolkit(langchainTools);
|
|
324
325
|
// Store references for cleanup
|
|
325
326
|
const clientRef = client;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-agnicwallet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "n8n community node for AgnicWallet - automated Web3 payments for X402 APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@langchain/core": ">=0.2.0",
|
|
80
|
-
"langchain": "^0.3.0",
|
|
81
80
|
"n8n-workflow": "*"
|
|
82
81
|
}
|
|
83
82
|
}
|