n8n-nodes-smart-browser-automation 1.6.13 → 1.6.14
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.
|
@@ -52,13 +52,8 @@ async function importDynamicStructuredTool() {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
async function importToolkitBase() {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
catch {
|
|
59
|
-
// Fallback: older/newer builds might export Toolkit elsewhere; keep as a last resort.
|
|
60
|
-
return await Promise.resolve().then(() => __importStar(require('langchain/agents')));
|
|
61
|
-
}
|
|
55
|
+
// n8n uses Toolkit from @langchain/classic/agents internally.
|
|
56
|
+
return await Promise.resolve().then(() => __importStar(require('@langchain/classic/agents')));
|
|
62
57
|
}
|
|
63
58
|
class SmartBrowserAutomationTools {
|
|
64
59
|
description = {
|
|
@@ -70,8 +65,9 @@ class SmartBrowserAutomationTools {
|
|
|
70
65
|
defaults: {
|
|
71
66
|
name: 'Browser Automation Tools',
|
|
72
67
|
},
|
|
73
|
-
inputs: [
|
|
74
|
-
outputs: [
|
|
68
|
+
inputs: [],
|
|
69
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.AiTool],
|
|
70
|
+
outputNames: ['Tools'],
|
|
75
71
|
icon: 'file:smartBrowserAutomation.svg',
|
|
76
72
|
credentials: [
|
|
77
73
|
{
|
|
@@ -124,10 +120,13 @@ class SmartBrowserAutomationTools {
|
|
|
124
120
|
});
|
|
125
121
|
}));
|
|
126
122
|
class SmartBrowserAutomationToolkit extends Toolkit {
|
|
127
|
-
|
|
128
|
-
constructor(
|
|
123
|
+
_tools;
|
|
124
|
+
constructor(_tools) {
|
|
129
125
|
super();
|
|
130
|
-
this.
|
|
126
|
+
this._tools = _tools;
|
|
127
|
+
}
|
|
128
|
+
getTools() {
|
|
129
|
+
return this._tools;
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
132
|
return {
|