n8n-nodes-agnicwallet 1.0.7 → 1.0.8
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.
|
@@ -5,17 +5,19 @@ const n8n_workflow_1 = require("n8n-workflow");
|
|
|
5
5
|
const index_js_1 = require("@modelcontextprotocol/sdk/client/index.js");
|
|
6
6
|
const streamableHttp_js_1 = require("@modelcontextprotocol/sdk/client/streamableHttp.js");
|
|
7
7
|
const tools_1 = require("@langchain/core/tools");
|
|
8
|
-
const agents_1 = require("langchain/agents");
|
|
9
8
|
const zod_1 = require("zod");
|
|
10
9
|
const json_schema_to_zod_1 = require("@n8n/json-schema-to-zod");
|
|
11
10
|
/**
|
|
12
|
-
* Toolkit
|
|
13
|
-
*
|
|
11
|
+
* Minimal Toolkit interface compatible with n8n AI Agent
|
|
12
|
+
* This replaces the deprecated langchain/agents Toolkit to avoid version conflicts
|
|
14
13
|
*/
|
|
15
|
-
class AgnicMcpToolkit
|
|
14
|
+
class AgnicMcpToolkit {
|
|
16
15
|
constructor(tools) {
|
|
17
|
-
super();
|
|
18
16
|
this.tools = tools;
|
|
17
|
+
this.lc_namespace = ["langchain", "agents", "toolkits"];
|
|
18
|
+
}
|
|
19
|
+
getTools() {
|
|
20
|
+
return this.tools;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
// Pre-configured AgnicPay MCP endpoint (uses HTTP Streamable transport)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-agnicwallet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "n8n community node for AgnicWallet - automated Web3 payments for X402 APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"@langchain/core": "^0.3.68",
|
|
67
67
|
"@langchain/openai": "^0.6.16",
|
|
68
68
|
"@types/node": "^20.10.0",
|
|
69
|
-
"langchain": "^0.3.33",
|
|
70
69
|
"@typescript-eslint/parser": "^6.13.0",
|
|
71
70
|
"eslint": "^8.54.0",
|
|
72
71
|
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
@@ -76,8 +75,7 @@
|
|
|
76
75
|
"typescript": "^5.3.0"
|
|
77
76
|
},
|
|
78
77
|
"peerDependencies": {
|
|
79
|
-
"@langchain/core": "
|
|
80
|
-
"langchain": "*",
|
|
78
|
+
"@langchain/core": ">=0.2.0",
|
|
81
79
|
"n8n-workflow": "*"
|
|
82
80
|
}
|
|
83
81
|
}
|