n8n-nodes-simple 2.5.5 → 2.5.7

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.
Files changed (60) hide show
  1. package/dist/nodes/shared/api/types.d.ts +4 -0
  2. package/dist/nodes/shared/config/parameters.d.ts +3 -1
  3. package/dist/nodes/shared/config/parameters.js +5 -1
  4. package/dist/nodes/shared/config/parameters.js.map +1 -1
  5. package/dist/nodes/shared/config/properties/options.js +45 -0
  6. package/dist/nodes/shared/config/properties/options.js.map +1 -1
  7. package/dist/nodes/shared/config/properties/output.js +22 -5
  8. package/dist/nodes/shared/config/properties/output.js.map +1 -1
  9. package/dist/nodes/shared/core/execution/errors.js +7 -2
  10. package/dist/nodes/shared/core/execution/errors.js.map +1 -1
  11. package/dist/nodes/shared/core/execution/executionSetup.d.ts +12 -0
  12. package/dist/nodes/shared/core/execution/executionSetup.js +35 -0
  13. package/dist/nodes/shared/core/execution/executionSetup.js.map +1 -0
  14. package/dist/nodes/shared/core/execution/executor.d.ts +1 -1
  15. package/dist/nodes/shared/core/execution/executor.js +87 -104
  16. package/dist/nodes/shared/core/execution/executor.js.map +1 -1
  17. package/dist/nodes/shared/core/execution/messageOperation.js +1 -1
  18. package/dist/nodes/shared/core/execution/messageOperation.js.map +1 -1
  19. package/dist/nodes/shared/core/execution/modelConfig.d.ts +5 -0
  20. package/dist/nodes/shared/core/execution/modelConfig.js +16 -0
  21. package/dist/nodes/shared/core/execution/modelConfig.js.map +1 -0
  22. package/dist/nodes/shared/core/execution/responseParser.d.ts +6 -0
  23. package/dist/nodes/shared/core/execution/responseParser.js +24 -0
  24. package/dist/nodes/shared/core/execution/responseParser.js.map +1 -0
  25. package/dist/nodes/shared/core/execution/retryHandler.d.ts +2 -2
  26. package/dist/nodes/shared/core/execution/retryHandler.js +6 -6
  27. package/dist/nodes/shared/core/execution/retryHandler.js.map +1 -1
  28. package/dist/nodes/shared/core/execution/usageTracking.d.ts +16 -0
  29. package/dist/nodes/shared/core/execution/usageTracking.js +43 -0
  30. package/dist/nodes/shared/core/execution/usageTracking.js.map +1 -0
  31. package/dist/nodes/shared/core/request/body.js +3 -1
  32. package/dist/nodes/shared/core/request/body.js.map +1 -1
  33. package/dist/nodes/shared/core/request/validation.d.ts +1 -1
  34. package/dist/nodes/shared/core/request/validation.js +2 -2
  35. package/dist/nodes/shared/core/request/validation.js.map +1 -1
  36. package/dist/nodes/shared/core/tools/executor.js +44 -18
  37. package/dist/nodes/shared/core/tools/executor.js.map +1 -1
  38. package/dist/nodes/shared/core/tools/setup.d.ts +1 -1
  39. package/dist/nodes/shared/core/tools/setup.js +2 -2
  40. package/dist/nodes/shared/core/tools/setup.js.map +1 -1
  41. package/dist/package.json +1 -1
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +1 -1
  44. package/dist/credentials/GlobalConstantsApi.credentials.d.ts +0 -11
  45. package/dist/credentials/GlobalConstantsApi.credentials.js +0 -83
  46. package/dist/credentials/GlobalConstantsApi.credentials.js.map +0 -1
  47. package/dist/credentials/globalConstants.svg +0 -31
  48. package/dist/nodes/GlobalConstants/GlobalConstants.node.d.ts +0 -5
  49. package/dist/nodes/GlobalConstants/GlobalConstants.node.js +0 -212
  50. package/dist/nodes/GlobalConstants/GlobalConstants.node.js.map +0 -1
  51. package/dist/nodes/GlobalConstants/globalConstants.svg +0 -31
  52. package/dist/nodes/shared/api/errors.d.ts +0 -45
  53. package/dist/nodes/shared/api/errors.js +0 -134
  54. package/dist/nodes/shared/api/errors.js.map +0 -1
  55. package/dist/nodes/shared/core/tools/manager.d.ts +0 -0
  56. package/dist/nodes/shared/core/tools/manager.js +0 -2
  57. package/dist/nodes/shared/core/tools/manager.js.map +0 -1
  58. package/dist/nodes/shared/core/tools/subagentTool.d.ts +0 -0
  59. package/dist/nodes/shared/core/tools/subagentTool.js +0 -2
  60. package/dist/nodes/shared/core/tools/subagentTool.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-simple",
3
- "version": "2.5.5",
3
+ "version": "2.5.7",
4
4
  "description": "Simple",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"
@@ -1,11 +0,0 @@
1
- import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2
- export declare class GlobalConstantsApi implements ICredentialType {
3
- name: string;
4
- displayName: string;
5
- documentationUrl: string;
6
- icon: {
7
- readonly light: "file:globalConstants.svg";
8
- readonly dark: "file:globalConstants.svg";
9
- };
10
- properties: INodeProperties[];
11
- }
@@ -1,83 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GlobalConstantsApi = void 0;
4
- class GlobalConstantsApi {
5
- constructor() {
6
- this.name = 'globalConstantsApi';
7
- this.displayName = 'Global Constants API';
8
- this.documentationUrl = 'https://docs.n8n.io/integrations/creating-nodes/';
9
- this.icon = { light: 'file:globalConstants.svg', dark: 'file:globalConstants.svg' };
10
- this.properties = [
11
- {
12
- displayName: 'Constants Format',
13
- name: 'constantsFormat',
14
- type: 'options',
15
- default: 'keyValue',
16
- description: 'Choose how to define your global constants',
17
- options: [
18
- {
19
- name: 'Key-Value Pairs',
20
- value: 'keyValue',
21
- description: 'Define constants as key=value pairs (one per line)',
22
- },
23
- {
24
- name: 'JSON Object',
25
- value: 'json',
26
- description: 'Define constants as a JSON object',
27
- },
28
- ],
29
- },
30
- {
31
- displayName: 'Constants (Key-Value)',
32
- name: 'keyValueConstants',
33
- type: 'string',
34
- typeOptions: {
35
- password: true,
36
- rows: 10,
37
- alwaysOpenEditWindow: true,
38
- },
39
- default: 'API_URL=https://api.example.com\nDEFAULT_TIMEOUT=30000\nAPP_NAME=My Application',
40
- placeholder: 'KEY1=value1\nKEY2=value2\nKEY3=value3',
41
- description: 'Define constants as key=value pairs, one per line',
42
- displayOptions: {
43
- show: {
44
- constantsFormat: ['keyValue'],
45
- },
46
- },
47
- },
48
- {
49
- displayName: 'Constants (JSON)',
50
- name: 'jsonConstants',
51
- type: 'json',
52
- typeOptions: {
53
- alwaysOpenEditWindow: true,
54
- },
55
- default: '{\n "API_URL": "https://api.example.com",\n "DEFAULT_TIMEOUT": 30000,\n "APP_NAME": "My Application"\n}',
56
- description: 'Define constants as a JSON object',
57
- displayOptions: {
58
- show: {
59
- constantsFormat: ['json'],
60
- },
61
- },
62
- },
63
- {
64
- displayName: 'Description (Optional)',
65
- name: 'description',
66
- type: 'string',
67
- default: '',
68
- placeholder: 'Production API configuration',
69
- description: 'Optional description for this set of global constants',
70
- },
71
- {
72
- displayName: 'Access Key (Optional)',
73
- name: 'accessKey',
74
- type: 'string',
75
- typeOptions: { password: true },
76
- default: '',
77
- description: 'Optional access key for secured constant sets',
78
- },
79
- ];
80
- }
81
- }
82
- exports.GlobalConstantsApi = GlobalConstantsApi;
83
- //# sourceMappingURL=GlobalConstantsApi.credentials.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GlobalConstantsApi.credentials.js","sourceRoot":"","sources":["../../credentials/GlobalConstantsApi.credentials.ts"],"names":[],"mappings":";;;AAKA,MAAa,kBAAkB;IAA/B;QACC,SAAI,GAAG,oBAAoB,CAAC;QAE5B,gBAAW,GAAG,sBAAsB,CAAC;QAErC,qBAAgB,GAAG,kDAAkD,CAAC;QAEtE,SAAI,GAAG,EAAE,KAAK,EAAE,0BAA0B,EAAE,IAAI,EAAE,0BAA0B,EAAW,CAAC;QAExF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,UAAU;gBACnB,WAAW,EAAE,4CAA4C;gBACzD,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,iBAAiB;wBACvB,KAAK,EAAE,UAAU;wBACjB,WAAW,EAAE,oDAAoD;qBACjE;oBACD;wBACC,IAAI,EAAE,aAAa;wBACnB,KAAK,EAAE,MAAM;wBACb,WAAW,EAAE,mCAAmC;qBAChD;iBACD;aACD;YACD;gBACC,WAAW,EAAE,uBAAuB;gBACpC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;oBACd,IAAI,EAAE,EAAE;oBACR,oBAAoB,EAAE,IAAI;iBAC1B;gBACD,OAAO,EAAE,iFAAiF;gBAC1F,WAAW,EAAE,uCAAuC;gBACpD,WAAW,EAAE,mDAAmD;gBAChE,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,eAAe,EAAE,CAAC,UAAU,CAAC;qBAC7B;iBACD;aACD;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE;oBACZ,oBAAoB,EAAE,IAAI;iBAC1B;gBACD,OAAO,EAAE,4GAA4G;gBACrH,WAAW,EAAE,mCAAmC;gBAChD,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,eAAe,EAAE,CAAC,MAAM,CAAC;qBACzB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,8BAA8B;gBAC3C,WAAW,EAAE,uDAAuD;aACpE;YACD;gBACC,WAAW,EAAE,uBAAuB;gBACpC,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+CAA+C;aAC5D;SACD,CAAC;IACH,CAAC;CAAA;AA/ED,gDA+EC"}
@@ -1,31 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" preserveAspectRatio="xMidYMid" viewBox="0 0 256 256">
2
- <defs>
3
- <linearGradient id="gradient-bl-tr" x1="0%" y1="100%" x2="100%" y2="0%">
4
- <stop offset="0%" stop-color="#a857fd" />
5
- <stop offset="100%" stop-color="#60c5d1" />
6
- </linearGradient>
7
- </defs>
8
- <!-- Globe/Circle -->
9
- <circle cx="128" cy="128" r="100" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="8"/>
10
-
11
- <!-- Meridian lines -->
12
- <ellipse cx="128" cy="128" rx="40" ry="100" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="4" opacity="0.7"/>
13
- <ellipse cx="128" cy="128" rx="70" ry="100" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="3" opacity="0.5"/>
14
-
15
- <!-- Equator and parallels -->
16
- <line x1="28" y1="128" x2="228" y2="128" stroke="url(#gradient-bl-tr)" stroke-width="4" opacity="0.7"/>
17
- <ellipse cx="128" cy="128" rx="100" ry="30" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="3" opacity="0.5"/>
18
- <ellipse cx="128" cy="128" rx="100" ry="60" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="3" opacity="0.5"/>
19
-
20
- <!-- Constants symbols -->
21
- <g fill="url(#gradient-bl-tr)" font-family="Arial, sans-serif" font-weight="bold">
22
- <!-- Key-value pairs representation -->
23
- <text x="80" y="90" font-size="16" opacity="0.9">K=V</text>
24
- <text x="160" y="110" font-size="14" opacity="0.8">X=Y</text>
25
- <text x="100" y="170" font-size="14" opacity="0.8">A=B</text>
26
-
27
- <!-- JSON-like braces -->
28
- <text x="60" y="140" font-size="24" opacity="0.7">{</text>
29
- <text x="180" y="140" font-size="24" opacity="0.7">}</text>
30
- </g>
31
- </svg>
@@ -1,5 +0,0 @@
1
- import { type IExecuteFunctions, type INodeType, type INodeTypeDescription, type INodeExecutionData } from 'n8n-workflow';
2
- export declare class GlobalConstants implements INodeType {
3
- description: INodeTypeDescription;
4
- execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
- }
@@ -1,212 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GlobalConstants = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- function parseKeyValueConstants(constantsString) {
6
- const constants = {};
7
- const lines = constantsString.split('\n');
8
- for (const line of lines) {
9
- const trimmedLine = line.trim();
10
- if (!trimmedLine || trimmedLine.startsWith('#') || trimmedLine.startsWith('//')) {
11
- continue;
12
- }
13
- const equalIndex = trimmedLine.indexOf('=');
14
- if (equalIndex === -1) {
15
- continue;
16
- }
17
- const key = trimmedLine.substring(0, equalIndex).trim();
18
- const value = trimmedLine.substring(equalIndex + 1).trim();
19
- if (key) {
20
- let parsedValue = value;
21
- if ((value.startsWith('"') && value.endsWith('"')) ||
22
- (value.startsWith("'") && value.endsWith("'"))) {
23
- parsedValue = value.slice(1, -1);
24
- }
25
- else if (value.toLowerCase() === 'true') {
26
- parsedValue = true;
27
- }
28
- else if (value.toLowerCase() === 'false') {
29
- parsedValue = false;
30
- }
31
- else if (!isNaN(Number(value)) && !isNaN(parseFloat(value))) {
32
- parsedValue = value.includes('.') ? parseFloat(value) : parseInt(value, 10);
33
- }
34
- constants[key] = parsedValue;
35
- }
36
- }
37
- return constants;
38
- }
39
- const globalConstantsDescription = {
40
- displayName: 'Global Constants',
41
- name: 'globalConstants',
42
- group: ['transform'],
43
- version: 1,
44
- description: 'Access global constants defined in credentials. Create reusable constants for your workflows.',
45
- defaults: { name: 'Global Constants' },
46
- icon: 'file:globalConstants.svg',
47
- inputs: ['main'],
48
- outputs: ['main'],
49
- properties: [
50
- {
51
- displayName: 'Credential ID',
52
- name: 'credentialId',
53
- type: 'string',
54
- required: true,
55
- default: '',
56
- placeholder: '={{$json.credentialId}}',
57
- description: 'ID of the Global Constants credential to use. Supports expressions.',
58
- hint: 'Use expressions like ={{$json.credentialId}} to select credentials dynamically',
59
- },
60
- {
61
- displayName: 'Output Format',
62
- name: 'outputFormat',
63
- type: 'options',
64
- default: 'constants',
65
- description: 'How to output the constants',
66
- options: [
67
- {
68
- name: 'Constants Only',
69
- value: 'constants',
70
- description: 'Output only the constants object',
71
- },
72
- {
73
- name: 'With Metadata',
74
- value: 'withMetadata',
75
- description: 'Output constants with credential metadata',
76
- },
77
- {
78
- name: 'Merge with Input',
79
- value: 'merge',
80
- description: 'Merge constants with input data',
81
- },
82
- ],
83
- },
84
- {
85
- displayName: 'Constant Prefix',
86
- name: 'constantPrefix',
87
- type: 'string',
88
- default: '',
89
- placeholder: 'GLOBAL_',
90
- description: 'Optional prefix to add to all constant keys',
91
- displayOptions: {
92
- show: {
93
- outputFormat: ['constants', 'withMetadata'],
94
- },
95
- },
96
- },
97
- ],
98
- codex: {
99
- alias: ['Global', 'Constants', 'Variables', 'Config', 'Settings'],
100
- categories: ['Core Nodes'],
101
- subcategories: {
102
- 'Core Nodes': ['Data'],
103
- },
104
- },
105
- };
106
- class GlobalConstants {
107
- constructor() {
108
- this.description = globalConstantsDescription;
109
- }
110
- async execute() {
111
- const items = this.getInputData();
112
- const returnData = [];
113
- for (let i = 0; i < items.length; i++) {
114
- try {
115
- const credentialId = this.getNodeParameter('credentialId', i);
116
- const outputFormat = this.getNodeParameter('outputFormat', i);
117
- const constantPrefix = this.getNodeParameter('constantPrefix', i, '');
118
- if (!credentialId) {
119
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Credential ID is required', { itemIndex: i });
120
- }
121
- let credentials;
122
- try {
123
- const baseUrl = process.env.N8N_HOST || 'http://localhost:5678';
124
- const requestOptions = {
125
- method: 'GET',
126
- url: `${baseUrl}/api/v1/credentials/${credentialId}`,
127
- headers: {
128
- 'Content-Type': 'application/json',
129
- },
130
- auth: {
131
- username: process.env.N8N_BASIC_AUTH_USER || '',
132
- password: process.env.N8N_BASIC_AUTH_PASSWORD || '',
133
- },
134
- };
135
- const credentialData = await this.helpers.httpRequest(requestOptions);
136
- credentials = credentialData.data;
137
- }
138
- catch (error) {
139
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to access credential '${credentialId}': ${error.message}. Make sure the credential exists and is accessible.`, { itemIndex: i });
140
- }
141
- if (!credentials) {
142
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Global Constants credential not found or access denied', { itemIndex: i });
143
- }
144
- let constants = {};
145
- const constantsFormat = credentials.constantsFormat;
146
- if (constantsFormat === 'json') {
147
- try {
148
- const jsonConstants = credentials.jsonConstants;
149
- constants = JSON.parse(jsonConstants);
150
- }
151
- catch (error) {
152
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Invalid JSON in credential: ${error.message}`, { itemIndex: i });
153
- }
154
- }
155
- else {
156
- const keyValueConstants = credentials.keyValueConstants;
157
- constants = parseKeyValueConstants(keyValueConstants);
158
- }
159
- if (constantPrefix) {
160
- const prefixedConstants = {};
161
- for (const [key, value] of Object.entries(constants)) {
162
- prefixedConstants[`${constantPrefix}${key}`] = value;
163
- }
164
- constants = prefixedConstants;
165
- }
166
- let outputData;
167
- switch (outputFormat) {
168
- case 'withMetadata':
169
- outputData = {
170
- constants,
171
- metadata: {
172
- constantsFormat,
173
- description: credentials.description || '',
174
- constantCount: Object.keys(constants).length,
175
- prefix: constantPrefix || null,
176
- },
177
- };
178
- break;
179
- case 'merge':
180
- outputData = {
181
- ...items[i].json,
182
- ...constants,
183
- };
184
- break;
185
- default:
186
- outputData = constants;
187
- break;
188
- }
189
- returnData.push({
190
- json: outputData,
191
- pairedItem: { item: i },
192
- });
193
- }
194
- catch (error) {
195
- if (this.continueOnFail()) {
196
- returnData.push({
197
- json: {
198
- error: error.message,
199
- credentialId: this.getNodeParameter('credentialId', i, ''),
200
- },
201
- pairedItem: { item: i },
202
- });
203
- continue;
204
- }
205
- throw error;
206
- }
207
- }
208
- return [returnData];
209
- }
210
- }
211
- exports.GlobalConstants = GlobalConstants;
212
- //# sourceMappingURL=GlobalConstants.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GlobalConstants.node.js","sourceRoot":"","sources":["../../../nodes/GlobalConstants/GlobalConstants.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAKtB,SAAS,sBAA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,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;4BAChB,GAAG,SAAS;yBACZ,CAAC;wBACF,MAAM;oBAEP;wBACC,UAAU,GAAG,SAAS,CAAC;wBACvB,MAAM;gBACR,CAAC;gBAED,UAAU,CAAC,IAAI,CAAC;oBACf,IAAI,EAAE,UAAU;oBAChB,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;iBACvB,CAAC,CAAC;YAEJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE;4BACL,KAAK,EAAE,KAAK,CAAC,OAAO;4BACpB,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,EAAE,EAAE,CAAC;yBAC1D;wBACD,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,KAAK,CAAC;YACb,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA3HD,0CA2HC"}
@@ -1,31 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" preserveAspectRatio="xMidYMid" viewBox="0 0 256 256">
2
- <defs>
3
- <linearGradient id="gradient-bl-tr" x1="0%" y1="100%" x2="100%" y2="0%">
4
- <stop offset="0%" stop-color="#a857fd" />
5
- <stop offset="100%" stop-color="#60c5d1" />
6
- </linearGradient>
7
- </defs>
8
- <!-- Globe/Circle -->
9
- <circle cx="128" cy="128" r="100" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="8"/>
10
-
11
- <!-- Meridian lines -->
12
- <ellipse cx="128" cy="128" rx="40" ry="100" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="4" opacity="0.7"/>
13
- <ellipse cx="128" cy="128" rx="70" ry="100" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="3" opacity="0.5"/>
14
-
15
- <!-- Equator and parallels -->
16
- <line x1="28" y1="128" x2="228" y2="128" stroke="url(#gradient-bl-tr)" stroke-width="4" opacity="0.7"/>
17
- <ellipse cx="128" cy="128" rx="100" ry="30" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="3" opacity="0.5"/>
18
- <ellipse cx="128" cy="128" rx="100" ry="60" fill="none" stroke="url(#gradient-bl-tr)" stroke-width="3" opacity="0.5"/>
19
-
20
- <!-- Constants symbols -->
21
- <g fill="url(#gradient-bl-tr)" font-family="Arial, sans-serif" font-weight="bold">
22
- <!-- Key-value pairs representation -->
23
- <text x="80" y="90" font-size="16" opacity="0.9">K=V</text>
24
- <text x="160" y="110" font-size="14" opacity="0.8">X=Y</text>
25
- <text x="100" y="170" font-size="14" opacity="0.8">A=B</text>
26
-
27
- <!-- JSON-like braces -->
28
- <text x="60" y="140" font-size="24" opacity="0.7">{</text>
29
- <text x="180" y="140" font-size="24" opacity="0.7">}</text>
30
- </g>
31
- </svg>
@@ -1,45 +0,0 @@
1
- import { NodeOperationError, type INode } from 'n8n-workflow';
2
- export declare enum ErrorCode {
3
- AGENT_EXECUTION_ERROR = "AGENT_EXECUTION_ERROR",
4
- TOOL_EXECUTION_ERROR = "TOOL_EXECUTION_ERROR",
5
- API_REQUEST_ERROR = "API_REQUEST_ERROR",
6
- JSON_PARSE_ERROR = "JSON_PARSE_ERROR",
7
- VALIDATION_ERROR = "VALIDATION_ERROR",
8
- MEMORY_OPERATION_ERROR = "MEMORY_OPERATION_ERROR"
9
- }
10
- export declare class AgentError extends Error {
11
- code: ErrorCode;
12
- context?: Record<string, any> | undefined;
13
- originalError?: Error | undefined;
14
- constructor(code: ErrorCode, message: string, context?: Record<string, any> | undefined, originalError?: Error | undefined);
15
- toNodeError(node: INode, itemIndex?: number): NodeOperationError;
16
- protected formatDescription(): string;
17
- protected formatValue(value: any, maxLength?: number): string;
18
- }
19
- export declare class AgentExecutionError extends AgentError {
20
- constructor(message: string, context?: Record<string, any>, originalError?: Error);
21
- }
22
- export declare class ToolExecutionError extends AgentError {
23
- toolName: string;
24
- constructor(toolName: string, message: string, context?: Record<string, any>, originalError?: Error);
25
- }
26
- export declare class ApiRequestError extends AgentError {
27
- endpoint: string;
28
- constructor(endpoint: string, message: string, context?: Record<string, any>, originalError?: Error);
29
- }
30
- export declare class JsonParseError extends AgentError {
31
- parseSource: string;
32
- rawContent: any;
33
- constructor(message: string, parseSource: string, rawContent: any, context?: Record<string, any>, originalError?: Error);
34
- protected formatDescription(): string;
35
- }
36
- export declare class ValidationError extends AgentError {
37
- fieldName: string;
38
- constructor(fieldName: string, message: string, context?: Record<string, any>, originalError?: Error);
39
- }
40
- export declare class MemoryOperationError extends AgentError {
41
- operation: string;
42
- constructor(operation: string, message: string, context?: Record<string, any>, originalError?: Error);
43
- }
44
- export declare function isAgentError(error: any): error is AgentError;
45
- export declare function wrapError(error: unknown, context?: Record<string, any>): AgentExecutionError;
@@ -1,134 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MemoryOperationError = exports.ValidationError = exports.JsonParseError = exports.ApiRequestError = exports.ToolExecutionError = exports.AgentExecutionError = exports.AgentError = exports.ErrorCode = void 0;
4
- exports.isAgentError = isAgentError;
5
- exports.wrapError = wrapError;
6
- const n8n_workflow_1 = require("n8n-workflow");
7
- var ErrorCode;
8
- (function (ErrorCode) {
9
- ErrorCode["AGENT_EXECUTION_ERROR"] = "AGENT_EXECUTION_ERROR";
10
- ErrorCode["TOOL_EXECUTION_ERROR"] = "TOOL_EXECUTION_ERROR";
11
- ErrorCode["API_REQUEST_ERROR"] = "API_REQUEST_ERROR";
12
- ErrorCode["JSON_PARSE_ERROR"] = "JSON_PARSE_ERROR";
13
- ErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR";
14
- ErrorCode["MEMORY_OPERATION_ERROR"] = "MEMORY_OPERATION_ERROR";
15
- })(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
16
- class AgentError extends Error {
17
- constructor(code, message, context, originalError) {
18
- super(message);
19
- this.code = code;
20
- this.context = context;
21
- this.originalError = originalError;
22
- this.name = this.constructor.name;
23
- if (originalError === null || originalError === void 0 ? void 0 : originalError.stack) {
24
- this.stack = `${this.stack}\nCaused by: ${originalError.stack}`;
25
- }
26
- }
27
- toNodeError(node, itemIndex) {
28
- return new n8n_workflow_1.NodeOperationError(node, this.message, {
29
- itemIndex,
30
- description: this.formatDescription(),
31
- });
32
- }
33
- formatDescription() {
34
- const parts = [];
35
- if (this.context) {
36
- for (const [key, value] of Object.entries(this.context)) {
37
- const formattedValue = this.formatValue(value);
38
- parts.push(`${key}: ${formattedValue}`);
39
- }
40
- }
41
- if (this.originalError) {
42
- parts.push(`Original error: ${this.originalError.message}`);
43
- }
44
- return parts.length > 0 ? parts.join('\n | ') : '';
45
- }
46
- formatValue(value, maxLength = 200) {
47
- if (value === null)
48
- return 'null';
49
- if (value === undefined)
50
- return 'undefined';
51
- if (value === '')
52
- return '<empty string>';
53
- const stringValue = typeof value === 'string' ? value : JSON.stringify(value);
54
- if (stringValue.length > maxLength) {
55
- return `${stringValue.substring(0, maxLength)}... (truncated, ${stringValue.length} total chars)`;
56
- }
57
- return stringValue;
58
- }
59
- }
60
- exports.AgentError = AgentError;
61
- class AgentExecutionError extends AgentError {
62
- constructor(message, context, originalError) {
63
- super(ErrorCode.AGENT_EXECUTION_ERROR, message, context, originalError);
64
- }
65
- }
66
- exports.AgentExecutionError = AgentExecutionError;
67
- class ToolExecutionError extends AgentError {
68
- constructor(toolName, message, context, originalError) {
69
- super(ErrorCode.TOOL_EXECUTION_ERROR, `Tool '${toolName}' execution failed: ${message}`, context, originalError);
70
- this.toolName = toolName;
71
- }
72
- }
73
- exports.ToolExecutionError = ToolExecutionError;
74
- class ApiRequestError extends AgentError {
75
- constructor(endpoint, message, context, originalError) {
76
- super(ErrorCode.API_REQUEST_ERROR, `API request to '${endpoint}' failed: ${message}`, context, originalError);
77
- this.endpoint = endpoint;
78
- }
79
- }
80
- exports.ApiRequestError = ApiRequestError;
81
- class JsonParseError extends AgentError {
82
- constructor(message, parseSource, rawContent, context, originalError) {
83
- super(ErrorCode.JSON_PARSE_ERROR, `JSON parse error (${parseSource}): ${message}`, {
84
- ...context,
85
- parseSource,
86
- rawContent: rawContent,
87
- }, originalError);
88
- this.parseSource = parseSource;
89
- this.rawContent = rawContent;
90
- }
91
- formatDescription() {
92
- const parts = [];
93
- if (this.context) {
94
- for (const [key, value] of Object.entries(this.context)) {
95
- if (key === 'rawContent') {
96
- parts.push(`${key}: ${this.formatValue(value, 300)}`);
97
- }
98
- else if (key !== 'parseSource') {
99
- parts.push(`${key}: ${this.formatValue(value)}`);
100
- }
101
- }
102
- }
103
- if (this.originalError) {
104
- parts.push(`Parse error: ${this.originalError.message}`);
105
- }
106
- return parts.length > 0 ? parts.join('\n | ') : '';
107
- }
108
- }
109
- exports.JsonParseError = JsonParseError;
110
- class ValidationError extends AgentError {
111
- constructor(fieldName, message, context, originalError) {
112
- super(ErrorCode.VALIDATION_ERROR, `Validation error for '${fieldName}': ${message}`, context, originalError);
113
- this.fieldName = fieldName;
114
- }
115
- }
116
- exports.ValidationError = ValidationError;
117
- class MemoryOperationError extends AgentError {
118
- constructor(operation, message, context, originalError) {
119
- super(ErrorCode.MEMORY_OPERATION_ERROR, `Memory operation '${operation}' failed: ${message}`, context, originalError);
120
- this.operation = operation;
121
- }
122
- }
123
- exports.MemoryOperationError = MemoryOperationError;
124
- function isAgentError(error) {
125
- return error instanceof AgentError;
126
- }
127
- function wrapError(error, context) {
128
- if (error instanceof AgentError) {
129
- return error;
130
- }
131
- const originalError = error instanceof Error ? error : new Error(String(error));
132
- return new AgentExecutionError(originalError.message, context, originalError);
133
- }
134
- //# sourceMappingURL=errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../nodes/shared/api/errors.ts"],"names":[],"mappings":";;;AA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AAC,CAAC,CAAC;IAChF,OAAO,IAAI,mBAAmB,CAC7B,aAAa,CAAC,OAAO,EACrB,OAAO,EACP,aAAa,CACb,CAAC;AACH,CAAC"}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manager.js","sourceRoot":"","sources":["../../../../../nodes/shared/core/tools/manager.ts"],"names":[],"mappings":""}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=subagentTool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subagentTool.js","sourceRoot":"","sources":["../../../../../nodes/shared/core/tools/subagentTool.ts"],"names":[],"mappings":""}