n8n-nodes-simple 0.2.0

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 (79) hide show
  1. package/README.md +48 -0
  2. package/dist/credentials/SimpleOpenAiApi.credentials.d.ts +13 -0
  3. package/dist/credentials/SimpleOpenAiApi.credentials.js +54 -0
  4. package/dist/credentials/SimpleOpenAiApi.credentials.js.map +1 -0
  5. package/dist/credentials/gradientOpenAi.svg +9 -0
  6. package/dist/nodes/CoreAgent/CoreAgent.node.d.ts +10 -0
  7. package/dist/nodes/CoreAgent/CoreAgent.node.js +31 -0
  8. package/dist/nodes/CoreAgent/CoreAgent.node.js.map +1 -0
  9. package/dist/nodes/Subagent/Subagent.node.d.ts +11 -0
  10. package/dist/nodes/Subagent/Subagent.node.js +36 -0
  11. package/dist/nodes/Subagent/Subagent.node.js.map +1 -0
  12. package/dist/nodes/shared/actions/asTool.d.ts +2 -0
  13. package/dist/nodes/shared/actions/asTool.js +87 -0
  14. package/dist/nodes/shared/actions/asTool.js.map +1 -0
  15. package/dist/nodes/shared/actions/message.operation.d.ts +2 -0
  16. package/dist/nodes/shared/actions/message.operation.js +200 -0
  17. package/dist/nodes/shared/actions/message.operation.js.map +1 -0
  18. package/dist/nodes/shared/actions/router.d.ts +2 -0
  19. package/dist/nodes/shared/actions/router.js +76 -0
  20. package/dist/nodes/shared/actions/router.js.map +1 -0
  21. package/dist/nodes/shared/createNodeTypeDescription.d.ts +2 -0
  22. package/dist/nodes/shared/createNodeTypeDescription.js +83 -0
  23. package/dist/nodes/shared/createNodeTypeDescription.js.map +1 -0
  24. package/dist/nodes/shared/gradientRobot.svg +11 -0
  25. package/dist/nodes/shared/gradientRobotRed.svg +11 -0
  26. package/dist/nodes/shared/helpers/api/apiRequest.d.ts +10 -0
  27. package/dist/nodes/shared/helpers/api/apiRequest.js +23 -0
  28. package/dist/nodes/shared/helpers/api/apiRequest.js.map +1 -0
  29. package/dist/nodes/shared/helpers/api/errorHandling.d.ts +4 -0
  30. package/dist/nodes/shared/helpers/api/errorHandling.js +31 -0
  31. package/dist/nodes/shared/helpers/api/errorHandling.js.map +1 -0
  32. package/dist/nodes/shared/helpers/api/interfaces.d.ts +37 -0
  33. package/dist/nodes/shared/helpers/api/interfaces.js +3 -0
  34. package/dist/nodes/shared/helpers/api/interfaces.js.map +1 -0
  35. package/dist/nodes/shared/helpers/api/utils.d.ts +5 -0
  36. package/dist/nodes/shared/helpers/api/utils.js +42 -0
  37. package/dist/nodes/shared/helpers/api/utils.js.map +1 -0
  38. package/dist/nodes/shared/helpers/asCoreNode/chatHistoryUnpacker.d.ts +6 -0
  39. package/dist/nodes/shared/helpers/asCoreNode/chatHistoryUnpacker.js +64 -0
  40. package/dist/nodes/shared/helpers/asCoreNode/chatHistoryUnpacker.js.map +1 -0
  41. package/dist/nodes/shared/helpers/asCoreNode/chatUnpacker.d.ts +6 -0
  42. package/dist/nodes/shared/helpers/asCoreNode/chatUnpacker.js +62 -0
  43. package/dist/nodes/shared/helpers/asCoreNode/chatUnpacker.js.map +1 -0
  44. package/dist/nodes/shared/helpers/asCoreNode/constants.d.ts +1 -0
  45. package/dist/nodes/shared/helpers/asCoreNode/constants.js +26 -0
  46. package/dist/nodes/shared/helpers/asCoreNode/constants.js.map +1 -0
  47. package/dist/nodes/shared/helpers/asCoreNode/messageModel.d.ts +43 -0
  48. package/dist/nodes/shared/helpers/asCoreNode/messageModel.js +12 -0
  49. package/dist/nodes/shared/helpers/asCoreNode/messageModel.js.map +1 -0
  50. package/dist/nodes/shared/helpers/asCoreNode/stepsExtractor.d.ts +6 -0
  51. package/dist/nodes/shared/helpers/asCoreNode/stepsExtractor.js +27 -0
  52. package/dist/nodes/shared/helpers/asCoreNode/stepsExtractor.js.map +1 -0
  53. package/dist/nodes/shared/helpers/asTool/customFields.d.ts +18 -0
  54. package/dist/nodes/shared/helpers/asTool/customFields.js +24 -0
  55. package/dist/nodes/shared/helpers/asTool/customFields.js.map +1 -0
  56. package/dist/nodes/shared/helpers/asTool/subagentTool.d.ts +11 -0
  57. package/dist/nodes/shared/helpers/asTool/subagentTool.js +56 -0
  58. package/dist/nodes/shared/helpers/asTool/subagentTool.js.map +1 -0
  59. package/dist/nodes/shared/helpers/asTool/toolSchemaParsing.d.ts +6 -0
  60. package/dist/nodes/shared/helpers/asTool/toolSchemaParsing.js +23 -0
  61. package/dist/nodes/shared/helpers/asTool/toolSchemaParsing.js.map +1 -0
  62. package/dist/nodes/shared/helpers/asToolUser/N8nTool.d.ts +9 -0
  63. package/dist/nodes/shared/helpers/asToolUser/N8nTool.js +91 -0
  64. package/dist/nodes/shared/helpers/asToolUser/N8nTool.js.map +1 -0
  65. package/dist/nodes/shared/helpers/asToolUser/langchainHelpers.d.ts +3 -0
  66. package/dist/nodes/shared/helpers/asToolUser/langchainHelpers.js +28 -0
  67. package/dist/nodes/shared/helpers/asToolUser/langchainHelpers.js.map +1 -0
  68. package/dist/nodes/shared/methods/index.d.ts +1 -0
  69. package/dist/nodes/shared/methods/index.js +38 -0
  70. package/dist/nodes/shared/methods/index.js.map +1 -0
  71. package/dist/nodes/shared/methods/listSearch.d.ts +2 -0
  72. package/dist/nodes/shared/methods/listSearch.js +34 -0
  73. package/dist/nodes/shared/methods/listSearch.js.map +1 -0
  74. package/dist/nodes/shared/properties.d.ts +2 -0
  75. package/dist/nodes/shared/properties.js +480 -0
  76. package/dist/nodes/shared/properties.js.map +1 -0
  77. package/dist/package.json +74 -0
  78. package/dist/tsconfig.tsbuildinfo +1 -0
  79. package/package.json +74 -0
@@ -0,0 +1,480 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProperties = getProperties;
4
+ const constants_1 = require("./helpers/asCoreNode/constants");
5
+ function getProperties(agentType = 'coreAgent') {
6
+ return [
7
+ {
8
+ displayName: 'Model',
9
+ name: 'modelId',
10
+ type: 'resourceLocator',
11
+ default: { mode: 'list', value: 'gpt-4o-mini' },
12
+ required: true,
13
+ description: 'Read the <a href="https://platform.openai.com/docs/models" target="_blank">models overview</a> and <a href="https://openai.com/api/pricing/" target="_blank">pricing</a>',
14
+ modes: [
15
+ {
16
+ displayName: 'From List',
17
+ name: 'list',
18
+ type: 'list',
19
+ typeOptions: {
20
+ searchListMethod: 'modelSearch',
21
+ searchable: true,
22
+ },
23
+ },
24
+ {
25
+ displayName: 'ID',
26
+ name: 'id',
27
+ type: 'string',
28
+ placeholder: 'e.g. gpt-4o-mini',
29
+ },
30
+ ],
31
+ },
32
+ {
33
+ displayName: `=The model {{ $parameter.modelId }} does not support tools.`,
34
+ name: 'noticeTools',
35
+ type: 'notice',
36
+ default: '',
37
+ displayOptions: {
38
+ show: {
39
+ modelId: constants_1.MODELS_NOT_SUPPORT_FUNCTION_CALLS
40
+ },
41
+ },
42
+ },
43
+ {
44
+ displayName: 'Temperature',
45
+ name: 'temperature',
46
+ default: 1,
47
+ typeOptions: { maxValue: 2, minValue: 0, numberPrecision: 1 },
48
+ description: 'What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Read the <a href="https://platform.openai.com/docs/api-reference/chat/create" target="_blank">API Reference docs</a>',
49
+ type: 'number',
50
+ },
51
+ {
52
+ displayName: 'Type',
53
+ name: 'agentType',
54
+ type: 'options',
55
+ description: "Defines the agent's connector capabilities. All agents can use tools.",
56
+ noDataExpression: true,
57
+ options: [
58
+ {
59
+ name: '🤖 Core Agent',
60
+ value: 'coreAgent',
61
+ description: "Core node with input and output connectors"
62
+ },
63
+ {
64
+ name: '🛠️ Subagent',
65
+ value: 'subAgent',
66
+ description: "Sub-node usable as a tool"
67
+ },
68
+ ],
69
+ default: agentType
70
+ },
71
+ {
72
+ displayName: "Please select an specialized agent type (Core Agent or Subagent)",
73
+ name: 'notice',
74
+ type: 'notice',
75
+ default: '',
76
+ displayOptions: {
77
+ show: {
78
+ agentType: ['flexAgent']
79
+ },
80
+ },
81
+ },
82
+ {
83
+ displayName: 'Messages',
84
+ name: 'messagesToSend',
85
+ type: 'fixedCollection',
86
+ typeOptions: {
87
+ sortable: true,
88
+ multipleValues: true,
89
+ },
90
+ placeholder: 'Add Message',
91
+ default: { values: [{ content: '' }] },
92
+ options: [
93
+ {
94
+ displayName: 'Values',
95
+ name: 'values',
96
+ values: [
97
+ {
98
+ displayName: 'Role',
99
+ name: 'role',
100
+ type: 'options',
101
+ options: [
102
+ {
103
+ name: '🤖 Assistant',
104
+ value: 'assistant',
105
+ },
106
+ {
107
+ name: '🖥️ System',
108
+ value: 'system',
109
+ },
110
+ {
111
+ name: '🙋‍♂️ User',
112
+ value: 'user',
113
+ },
114
+ {
115
+ name: '💬 Chat History',
116
+ value: 'chatHistoryRole',
117
+ },
118
+ {
119
+ name: '💭 Chat Memory',
120
+ value: 'chatMemoryRole',
121
+ },
122
+ ],
123
+ default: 'user',
124
+ },
125
+ {
126
+ displayName: 'Content',
127
+ name: 'content',
128
+ type: 'string',
129
+ default: '',
130
+ description: "The message's content. Supports ={{ $json.chatInput }}",
131
+ typeOptions: {
132
+ rows: 2,
133
+ },
134
+ displayOptions: {
135
+ hide: {
136
+ 'role': ['chatHistoryRole', 'chatMemoryRole']
137
+ }
138
+ }
139
+ },
140
+ {
141
+ displayName: 'JSON Messages',
142
+ name: 'chatHistoryJson',
143
+ type: 'json',
144
+ default: '',
145
+ description: "A JSON array of objects with 'role' and 'content' keys. Invalid syntax defaults to user message content. Supports ={{ $json.chat_history }}",
146
+ typeOptions: {
147
+ rows: 2,
148
+ },
149
+ displayOptions: {
150
+ show: {
151
+ 'role': ['chatHistoryRole']
152
+ }
153
+ }
154
+ }
155
+ ],
156
+ },
157
+ ],
158
+ },
159
+ {
160
+ displayName: 'Name',
161
+ name: 'name',
162
+ type: 'string',
163
+ default: '',
164
+ validateType: 'string-alphanumeric',
165
+ description: `Unique name of the subagent to be called by another agent. Can contain letters, numbers and underscores only. Example: <i>"web_searcher"</i>.`,
166
+ displayOptions: {
167
+ show: {
168
+ agentType: ["subAgent", "flexAgent"],
169
+ },
170
+ },
171
+ },
172
+ {
173
+ displayName: 'Description',
174
+ name: 'description',
175
+ type: 'string',
176
+ default: '',
177
+ description: `The subagent's purpose and expected input. Example: <i>"Call this to search given topics. The input should be a string with comma-separated topics to include"</i>.`,
178
+ typeOptions: {
179
+ rows: 3,
180
+ },
181
+ displayOptions: {
182
+ show: {
183
+ agentType: ["subAgent", "flexAgent"],
184
+ },
185
+ },
186
+ },
187
+ {
188
+ displayName: 'Placeholders Definition',
189
+ name: 'inputSchemaType',
190
+ description: 'Defines the parameters required for function calls to this subagent. These inputs supply replacement values for the Handlebars placeholders in all messages.',
191
+ type: 'options',
192
+ noDataExpression: true,
193
+ options: [
194
+ {
195
+ name: 'From Custom Fields',
196
+ value: 'inputCustomFields',
197
+ },
198
+ {
199
+ name: 'From JSON Example',
200
+ value: 'inputJsonExample',
201
+ },
202
+ {
203
+ name: 'From JSON Schema',
204
+ value: 'inputJsonSchema',
205
+ },
206
+ {
207
+ name: 'None',
208
+ value: 'default',
209
+ description: 'Use placeholder schema {"input": "&lt;content&gt;"}, and add {{input}} as a user message'
210
+ }
211
+ ],
212
+ default: 'default',
213
+ displayOptions: {
214
+ show: {
215
+ agentType: ["subAgent", "flexAgent"],
216
+ },
217
+ },
218
+ },
219
+ {
220
+ displayName: 'JSON Example',
221
+ name: 'inputJsonExampleParameters',
222
+ type: 'json',
223
+ description: 'Example JSON object to use to generate the parameters schema',
224
+ default: `{
225
+ "name": "John Doe",
226
+ "age": 20
227
+ }`,
228
+ noDataExpression: true,
229
+ typeOptions: {
230
+ rows: 10,
231
+ },
232
+ displayOptions: {
233
+ show: {
234
+ agentType: ["subAgent", "flexAgent"],
235
+ inputSchemaType: ['inputJsonExample']
236
+ },
237
+ },
238
+ },
239
+ {
240
+ displayName: 'JSON Schema',
241
+ name: 'inputJsonSchemaParameters',
242
+ type: 'json',
243
+ description: 'Generate a parameters schema <a href="https://platform.openai.com/docs/guides/function-calling" target="_blank">here</a>',
244
+ default: `{
245
+ "type": "object",
246
+ "properties": {
247
+ "size": {
248
+ "type": "string",
249
+ "enum": ["s", "m", "l"],
250
+ "description": "The size of the pizza that the user would like to order."
251
+ }
252
+ },
253
+ "required": ["size"],
254
+ "additionalProperties": false
255
+ }`,
256
+ noDataExpression: true,
257
+ typeOptions: {
258
+ rows: 10,
259
+ },
260
+ displayOptions: {
261
+ show: {
262
+ agentType: ["subAgent", "flexAgent"],
263
+ inputSchemaType: ['inputJsonSchema']
264
+ },
265
+ },
266
+ },
267
+ {
268
+ displayName: 'Custom Fields',
269
+ name: 'inputCustomFieldsParameters',
270
+ type: 'fixedCollection',
271
+ typeOptions: {
272
+ multipleValues: true,
273
+ },
274
+ placeholder: 'Add Definition',
275
+ default: { values: [{ description: '' }] },
276
+ options: [
277
+ {
278
+ name: 'values',
279
+ displayName: 'Values',
280
+ values: [
281
+ {
282
+ displayName: 'Placeholder Name',
283
+ name: 'name',
284
+ type: 'string',
285
+ default: '',
286
+ },
287
+ {
288
+ displayName: 'Type',
289
+ name: 'type',
290
+ type: 'options',
291
+ options: [
292
+ {
293
+ name: 'String',
294
+ value: 'string',
295
+ },
296
+ {
297
+ name: 'Number',
298
+ value: 'number',
299
+ },
300
+ {
301
+ name: 'Boolean',
302
+ value: 'boolean',
303
+ },
304
+ ],
305
+ default: 'string',
306
+ },
307
+ {
308
+ displayName: 'Description',
309
+ name: 'description',
310
+ type: 'string',
311
+ default: '',
312
+ },
313
+ ],
314
+ },
315
+ ],
316
+ displayOptions: {
317
+ show: {
318
+ agentType: ["subAgent", "flexAgent"],
319
+ inputSchemaType: ['inputCustomFields']
320
+ },
321
+ },
322
+ },
323
+ {
324
+ displayName: 'Structured Output',
325
+ name: 'structuredOutput',
326
+ type: 'boolean',
327
+ description: 'Whether to use Structured Output. Compatible with gpt-4o-mini-2024-07-18, gpt-4o-2024-08-06, and later. Read the <a href="https://platform.openai.com/docs/guides/structured-outputs" target="_blank">docs</a>.',
328
+ default: false,
329
+ displayOptions: {
330
+ show: {
331
+ agentType: ["coreAgent", "flexAgent"],
332
+ },
333
+ },
334
+ },
335
+ {
336
+ displayName: 'JSON Schema',
337
+ name: 'outputJsonSchema',
338
+ type: 'json',
339
+ typeOptions: {
340
+ rows: 5,
341
+ },
342
+ default: '',
343
+ validateType: 'object',
344
+ ignoreValidationDuringExecution: true,
345
+ description: 'Generate a schema <a href="https://platform.openai.com/docs/guides/structured-outputs" target="_blank">here</a>',
346
+ displayOptions: {
347
+ show: {
348
+ structuredOutput: [true],
349
+ }
350
+ }
351
+ },
352
+ {
353
+ displayName: 'Add to Output',
354
+ name: 'addToOutput',
355
+ type: 'multiOptions',
356
+ description: 'Extra fields to add to the output',
357
+ options: [
358
+ {
359
+ name: 'Chat History',
360
+ value: 'chatHistory',
361
+ description: 'All messages, including the final assistant message',
362
+ },
363
+ {
364
+ name: 'Full Response',
365
+ value: 'fullResponse',
366
+ description: 'The complete HTTP response, containing token usage details, instead of only the primary content of the response (`choices`)',
367
+ },
368
+ {
369
+ name: 'Request',
370
+ value: 'request',
371
+ description: 'The body of the most recent HTTP request sent to the agent',
372
+ },
373
+ {
374
+ name: 'Steps',
375
+ value: 'steps',
376
+ description: "The agent's streamlined intermediate steps",
377
+ },
378
+ ],
379
+ default: ['request'],
380
+ displayOptions: {
381
+ show: {
382
+ agentType: ["coreAgent", "flexAgent"],
383
+ },
384
+ },
385
+ },
386
+ {
387
+ displayName: 'Include System Messages in Chat History',
388
+ name: 'includeSystemMessagesInChatHistory',
389
+ type: 'boolean',
390
+ default: true,
391
+ description: "Whether to include system messages in the Chat History",
392
+ displayOptions: {
393
+ show: {
394
+ addToOutput: ['chatHistory'],
395
+ },
396
+ },
397
+ },
398
+ {
399
+ displayName: 'Include Steps in Chat History',
400
+ name: 'includeStepsInChatHistory',
401
+ type: 'boolean',
402
+ default: true,
403
+ description: "Whether to include intermediate steps (function-calling assistant messages and tool messages) in the Chat History",
404
+ displayOptions: {
405
+ show: {
406
+ addToOutput: ['chatHistory'],
407
+ },
408
+ },
409
+ },
410
+ {
411
+ displayName: 'Options',
412
+ name: 'options',
413
+ placeholder: 'Add Option',
414
+ type: 'collection',
415
+ default: {},
416
+ options: [
417
+ {
418
+ displayName: 'Custom Parameters',
419
+ name: 'customParameters',
420
+ default: '{}',
421
+ description: 'Updates the request body with any parameter in the <a href="https://platform.openai.com/docs/api-reference/chat/create" target="_blank">API Reference docs</a>',
422
+ type: 'json',
423
+ typeOptions: { rows: 5 },
424
+ validateType: 'object',
425
+ ignoreValidationDuringExecution: true
426
+ },
427
+ {
428
+ displayName: 'Frequency Penalty',
429
+ name: 'frequency_penalty',
430
+ default: 0,
431
+ typeOptions: { maxValue: 2, minValue: -2, numberPrecision: 1 },
432
+ description: "Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim",
433
+ type: 'number',
434
+ },
435
+ {
436
+ displayName: 'Max Tokens',
437
+ name: 'max_token_completions',
438
+ default: 1000,
439
+ description: 'The maximum number of tokens to generate in the completion. Most models have a context length of 2048 tokens (except for the newest models, which support 32,768).',
440
+ type: 'number',
441
+ typeOptions: {
442
+ maxValue: 32768,
443
+ },
444
+ },
445
+ {
446
+ displayName: 'Max Tool Calls Iterations',
447
+ name: 'maxToolsIterations',
448
+ type: 'number',
449
+ default: 15,
450
+ description: 'The maximum number of tool iteration cycles the agent will run before stopping. A single iteration can contain multiple tool calls. Set to 0 for no limit.'
451
+ },
452
+ {
453
+ displayName: 'Number of Completions',
454
+ name: 'n',
455
+ default: 1,
456
+ description: 'How many completions to generate for each prompt. Note: Not recommended when using connected tools or Subagent mode, because extra tool calls and tool outputs are ignored. Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.',
457
+ type: 'number',
458
+ },
459
+ {
460
+ displayName: 'Presence Penalty',
461
+ name: 'presence_penalty',
462
+ default: 0,
463
+ typeOptions: { maxValue: 2, minValue: -2, numberPrecision: 1 },
464
+ description: "Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics",
465
+ type: 'number',
466
+ },
467
+ {
468
+ displayName: 'Top P',
469
+ name: 'top_p',
470
+ default: 1,
471
+ typeOptions: { maxValue: 1, minValue: 0, numberPrecision: 1 },
472
+ description: 'An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.',
473
+ type: 'number',
474
+ }
475
+ ]
476
+ }
477
+ ];
478
+ }
479
+ ;
480
+ //# sourceMappingURL=properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../nodes/shared/properties.ts"],"names":[],"mappings":";;AAKA,sCA4fC;AA/fD,8DAAmF;AAGnF,SAAgB,aAAa,CAAC,YAAoB,WAAW;IAC3D,OAAO;QACR;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE;YAC/C,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,0KAA0K;YACvL,KAAK,EAAE;gBACN;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,MAAM;oBACZ,WAAW,EAAE;wBACZ,gBAAgB,EAAE,aAAa;wBAC/B,UAAU,EAAE,IAAI;qBAChB;iBACD;gBACD;oBACC,WAAW,EAAE,IAAI;oBACjB,IAAI,EAAE,IAAI;oBACV,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,kBAAkB;iBAC/B;aACD;SACD;QACD;YACC,WAAW,EAAE,6DAA6D;YAC1E,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,OAAO,EAAE,6CAAiC;iBAC1C;aACD;SACD;QACD;YACC,WAAW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oBACrK,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;wBACZ,QAAQ,EAAE,KAAK;qBACf;iBACD;gBACD;oBACC,WAAW,EAAE,2BAA2B;oBACxC,IAAI,EAAE,oBAAoB;oBAC1B,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EACV,4JAA4J;iBAC7J;gBACD;oBACC,WAAW,EAAE,uBAAuB;oBACpC,IAAI,EAAE,GAAG;oBACT,OAAO,EAAE,CAAC;oBACV,WAAW,EACV,6VAA6V;oBAC9V,IAAI,EAAE,QAAQ;iBACd;gBACD;oBACC,WAAW,EAAE,kBAAkB;oBAC/B,IAAI,EAAE,kBAAkB;oBACxB,OAAO,EAAE,CAAC;oBACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE;oBAC9D,WAAW,EACV,iJAAiJ;oBAClJ,IAAI,EAAE,QAAQ;iBACd;gBACD;oBACC,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,CAAC;oBACV,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE;oBAC7D,WAAW,EACV,6OAA6O;oBAC9O,IAAI,EAAE,QAAQ;iBACd;aACD;SACD;KACD,CAAA;AACD,CAAC;AAAA,CAAC"}
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "n8n-nodes-simple",
3
+ "version": "0.2.0",
4
+ "description": "Simple",
5
+ "keywords": [
6
+ "n8n-community-node-package"
7
+ ],
8
+ "license": "MIT",
9
+ "homepage": "https://github.com/igor2c/n8n-custom-openai-node#readme",
10
+ "author": { "name": "Igor Couto <igor.couto@simpleagency.co.uk>" },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/igor2c/n8n-custom-openai-node.git"
14
+ },
15
+ "engines": {
16
+ "node": ">=18.10",
17
+ "pnpm": ">=9.1"
18
+ },
19
+ "packageManager": "pnpm@9.1.4",
20
+ "main": "index.js",
21
+ "scripts": {
22
+ "preinstall": "npx only-allow pnpm",
23
+ "build": "tsc && gulp build:icons",
24
+ "dev": "tsc --watch",
25
+ "format": "prettier nodes credentials --write",
26
+ "lint": "eslint nodes credentials package.json",
27
+ "lintfix": "eslint nodes credentials package.json --fix",
28
+ "prepublishOnly": "pnpm build && pnpm lint -c .eslintrc.prepublish.js nodes credentials package.json"
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "n8n": {
34
+ "n8nNodesApiVersion": 1,
35
+ "credentials": [
36
+ "dist/credentials/SimpleOpenAiApi.credentials.js"
37
+ ],
38
+ "nodes": [
39
+ "dist/nodes/CoreAgent/CoreAgent.node.js",
40
+ "dist/nodes/Subagent/Subagent.node.js"
41
+ ]
42
+ },
43
+ "devDependencies": {
44
+ "@typescript-eslint/parser": "^7.15.0",
45
+ "eslint": "^8.56.0",
46
+ "eslint-plugin-n8n-nodes-base": "^1.16.1",
47
+ "generate-schema": "2.6.0",
48
+ "gulp": "^4.0.2",
49
+ "prettier": "^3.3.2",
50
+ "typescript": "^5.5.3"
51
+ },
52
+ "dependencies": {
53
+ "@langchain/core": "0.3.15",
54
+ "@langchain/openai": "0.3.14",
55
+ "langchain": "0.3.15",
56
+ "@n8n/json-schema-to-zod": "1.1.0",
57
+ "@types/json-schema": "^7.0.15",
58
+ "braces": ">=3.0.3",
59
+ "micromatch": ">=4.0.8",
60
+ "n8n-core": "1.69.0",
61
+ "n8n-workflow": "1.68.0",
62
+ "handlebars": "^4.7.8"
63
+ },
64
+ "peerDependencies": {
65
+ "@types/lodash": "^4.17.13",
66
+ "lodash": "^4.17.21",
67
+ "openai": "^4.73.1",
68
+ "zod": "^3.23.8",
69
+ "zod-to-json-schema": "^3.23.5"
70
+ },
71
+ "bugs": {
72
+ "url": "https://github.com/igor2c/n8n-custom-openai-node/issues"
73
+ }
74
+ }