n8n-nodes-github-copilot 3.3.0 → 3.5.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.
- package/dist/credentials/GitHubApi.credentials.d.ts +8 -8
- package/dist/credentials/GitHubApi.credentials.js +50 -50
- package/dist/credentials/GitHubApiManual.credentials.d.ts +7 -7
- package/dist/credentials/GitHubApiManual.credentials.js +33 -33
- package/dist/nodes/GitHubCopilot/GitHubCopilot.node.d.ts +5 -5
- package/dist/nodes/GitHubCopilot/GitHubCopilot.node.js +324 -324
- package/dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.d.ts +5 -5
- package/dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.js +141 -146
- package/dist/nodes/GitHubCopilotChatAPI/nodeProperties.d.ts +2 -2
- package/dist/nodes/GitHubCopilotChatAPI/nodeProperties.js +172 -202
- package/dist/nodes/GitHubCopilotChatAPI/utils/helpers.d.ts +19 -21
- package/dist/nodes/GitHubCopilotChatAPI/utils/helpers.js +130 -131
- package/dist/nodes/GitHubCopilotChatAPI/utils/imageProcessor.d.ts +8 -8
- package/dist/nodes/GitHubCopilotChatAPI/utils/imageProcessor.js +100 -101
- package/dist/nodes/GitHubCopilotChatAPI/utils/index.d.ts +3 -3
- package/dist/nodes/GitHubCopilotChatAPI/utils/index.js +19 -19
- package/dist/nodes/GitHubCopilotChatAPI/utils/mediaDetection.d.ts +14 -14
- package/dist/nodes/GitHubCopilotChatAPI/utils/mediaDetection.js +70 -71
- package/dist/nodes/GitHubCopilotChatAPI/utils/modelCapabilities.d.ts +5 -5
- package/dist/nodes/GitHubCopilotChatAPI/utils/modelCapabilities.js +113 -113
- package/dist/nodes/GitHubCopilotChatAPI/utils/types.d.ts +57 -57
- package/dist/nodes/GitHubCopilotChatAPI/utils/types.js +2 -2
- package/dist/nodes/GitHubCopilotChatModel/GitHubCopilotChatModel.node.d.ts +5 -0
- package/dist/nodes/GitHubCopilotChatModel/GitHubCopilotChatModel.node.js +140 -0
- package/dist/nodes/GitHubCopilotChatModel/copilot.svg +34 -0
- package/dist/shared/models/GitHubCopilotModels.d.ts +43 -0
- package/dist/shared/models/GitHubCopilotModels.js +218 -0
- package/package.json +7 -6
- package/dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.backup.d.ts +0 -5
- package/dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.backup.js +0 -651
- package/dist/nodes/GitHubCopilotChatAPI/utils/audioProcessor.d.ts +0 -11
- package/dist/nodes/GitHubCopilotChatAPI/utils/audioProcessor.js +0 -86
- package/dist/nodes/N8nAiAgent/N8nAiAgent.node.d.ts +0 -5
- package/dist/nodes/N8nAiAgent/N8nAiAgent.node.js +0 -214
- package/dist/nodes/N8nAiAgent/n8n-ai.svg +0 -35
- package/dist/nodes/N8nAiAgent/nodeProperties.d.ts +0 -2
- package/dist/nodes/N8nAiAgent/nodeProperties.js +0 -432
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nodeProperties = void 0;
|
|
4
|
-
exports.nodeProperties = [
|
|
5
|
-
{
|
|
6
|
-
displayName: 'Operation',
|
|
7
|
-
name: 'operation',
|
|
8
|
-
type: 'options',
|
|
9
|
-
noDataExpression: true,
|
|
10
|
-
options: [
|
|
11
|
-
{
|
|
12
|
-
name: 'Chat',
|
|
13
|
-
value: 'chat',
|
|
14
|
-
description: 'Send a chat message to N8N AI Agent',
|
|
15
|
-
action: 'Send a chat message',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: 'Use Tools',
|
|
19
|
-
value: 'tools',
|
|
20
|
-
description: 'Execute specific tools through AI Agent',
|
|
21
|
-
action: 'Execute tools',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: 'Memory',
|
|
25
|
-
value: 'memory',
|
|
26
|
-
description: 'Manage AI Agent memory/context',
|
|
27
|
-
action: 'Manage memory',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
default: 'chat',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
displayName: 'AI Model',
|
|
34
|
-
name: 'model',
|
|
35
|
-
type: 'options',
|
|
36
|
-
options: [
|
|
37
|
-
{
|
|
38
|
-
name: 'GPT-4 Turbo',
|
|
39
|
-
value: 'gpt-4-turbo',
|
|
40
|
-
description: 'OpenAI GPT-4 Turbo - Latest and most capable',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'GPT-4',
|
|
44
|
-
value: 'gpt-4',
|
|
45
|
-
description: 'OpenAI GPT-4 - High quality reasoning',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: 'GPT-3.5 Turbo',
|
|
49
|
-
value: 'gpt-3.5-turbo',
|
|
50
|
-
description: 'OpenAI GPT-3.5 Turbo - Fast and efficient',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'Claude 3 Opus',
|
|
54
|
-
value: 'claude-3-opus',
|
|
55
|
-
description: 'Anthropic Claude 3 Opus - Superior reasoning',
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'Claude 3 Sonnet',
|
|
59
|
-
value: 'claude-3-sonnet',
|
|
60
|
-
description: 'Anthropic Claude 3 Sonnet - Balanced performance',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'Claude 3 Haiku',
|
|
64
|
-
value: 'claude-3-haiku',
|
|
65
|
-
description: 'Anthropic Claude 3 Haiku - Fast responses',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'Gemini Pro',
|
|
69
|
-
value: 'gemini-pro',
|
|
70
|
-
description: 'Google Gemini Pro - Multimodal capabilities',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
default: 'gpt-4-turbo',
|
|
74
|
-
description: 'Select the AI model to use',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
displayName: 'Message',
|
|
78
|
-
name: 'message',
|
|
79
|
-
type: 'string',
|
|
80
|
-
typeOptions: {
|
|
81
|
-
rows: 3,
|
|
82
|
-
},
|
|
83
|
-
displayOptions: {
|
|
84
|
-
show: {
|
|
85
|
-
operation: ['chat'],
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
default: '',
|
|
89
|
-
placeholder: 'Enter your message here...',
|
|
90
|
-
description: 'The message to send to the AI Agent',
|
|
91
|
-
required: true,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
displayName: 'System Message',
|
|
95
|
-
name: 'systemMessage',
|
|
96
|
-
type: 'string',
|
|
97
|
-
typeOptions: {
|
|
98
|
-
rows: 2,
|
|
99
|
-
},
|
|
100
|
-
displayOptions: {
|
|
101
|
-
show: {
|
|
102
|
-
operation: ['chat'],
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
default: '',
|
|
106
|
-
placeholder: 'You are a helpful AI assistant...',
|
|
107
|
-
description: 'System prompt to set the AI behavior and context',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
displayName: 'Include Media',
|
|
111
|
-
name: 'includeMedia',
|
|
112
|
-
type: 'boolean',
|
|
113
|
-
displayOptions: {
|
|
114
|
-
show: {
|
|
115
|
-
operation: ['chat'],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
default: false,
|
|
119
|
-
description: 'Whether to include images in the chat message',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
displayName: 'Media Source',
|
|
123
|
-
name: 'mediaSource',
|
|
124
|
-
type: 'options',
|
|
125
|
-
options: [
|
|
126
|
-
{
|
|
127
|
-
name: 'Upload File',
|
|
128
|
-
value: 'manual',
|
|
129
|
-
description: 'Upload an image file directly',
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: 'From URL',
|
|
133
|
-
value: 'url',
|
|
134
|
-
description: 'Use an image from URL',
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
name: 'From Binary Data',
|
|
138
|
-
value: 'binary',
|
|
139
|
-
description: 'Use image from previous node binary data',
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
displayOptions: {
|
|
143
|
-
show: {
|
|
144
|
-
operation: ['chat'],
|
|
145
|
-
includeMedia: [true],
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
default: 'manual',
|
|
149
|
-
description: 'Source of the media file',
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
displayName: 'Image File',
|
|
153
|
-
name: 'mediaFile',
|
|
154
|
-
type: 'string',
|
|
155
|
-
displayOptions: {
|
|
156
|
-
show: {
|
|
157
|
-
operation: ['chat'],
|
|
158
|
-
includeMedia: [true],
|
|
159
|
-
mediaSource: ['manual'],
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
default: '',
|
|
163
|
-
placeholder: 'Paste base64 image data...',
|
|
164
|
-
description: 'Base64 encoded image data',
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
displayName: 'Image URL',
|
|
168
|
-
name: 'mediaUrl',
|
|
169
|
-
type: 'string',
|
|
170
|
-
displayOptions: {
|
|
171
|
-
show: {
|
|
172
|
-
operation: ['chat'],
|
|
173
|
-
includeMedia: [true],
|
|
174
|
-
mediaSource: ['url'],
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
default: '',
|
|
178
|
-
placeholder: 'https://example.com/image.jpg',
|
|
179
|
-
description: 'URL of the image to analyze',
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
displayName: 'Binary Property',
|
|
183
|
-
name: 'mediaProperty',
|
|
184
|
-
type: 'string',
|
|
185
|
-
displayOptions: {
|
|
186
|
-
show: {
|
|
187
|
-
operation: ['chat'],
|
|
188
|
-
includeMedia: [true],
|
|
189
|
-
mediaSource: ['binary'],
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
default: 'data',
|
|
193
|
-
placeholder: 'data',
|
|
194
|
-
description: 'Name of the binary property containing the image',
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
displayName: 'Include Conversation History',
|
|
198
|
-
name: 'includeHistory',
|
|
199
|
-
type: 'boolean',
|
|
200
|
-
displayOptions: {
|
|
201
|
-
show: {
|
|
202
|
-
operation: ['chat'],
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
default: false,
|
|
206
|
-
description: 'Include previous messages for context',
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
displayName: 'Conversation History',
|
|
210
|
-
name: 'conversationHistory',
|
|
211
|
-
type: 'json',
|
|
212
|
-
typeOptions: {
|
|
213
|
-
rows: 4,
|
|
214
|
-
},
|
|
215
|
-
displayOptions: {
|
|
216
|
-
show: {
|
|
217
|
-
operation: ['chat'],
|
|
218
|
-
includeHistory: [true],
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
default: '[]',
|
|
222
|
-
placeholder: '[{"role": "user", "content": "Hello"}, {"role": "assistant", "content": "Hi there!"}]',
|
|
223
|
-
description: 'Previous messages in OpenAI chat format',
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
displayName: 'Enable Tools',
|
|
227
|
-
name: 'enableTools',
|
|
228
|
-
type: 'boolean',
|
|
229
|
-
displayOptions: {
|
|
230
|
-
show: {
|
|
231
|
-
operation: ['chat'],
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
default: false,
|
|
235
|
-
description: 'Allow AI to use tools and function calling',
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
displayName: 'Tools Configuration',
|
|
239
|
-
name: 'toolsConfig',
|
|
240
|
-
type: 'json',
|
|
241
|
-
typeOptions: {
|
|
242
|
-
rows: 6,
|
|
243
|
-
},
|
|
244
|
-
displayOptions: {
|
|
245
|
-
show: {
|
|
246
|
-
operation: ['chat'],
|
|
247
|
-
enableTools: [true],
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
default: '{"tools": []}',
|
|
251
|
-
placeholder: '{"tools": [{"type": "function", "function": {"name": "get_weather", "description": "Get weather info"}}]}',
|
|
252
|
-
description: 'Tools available to the AI Agent',
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
displayName: 'Tool Name',
|
|
256
|
-
name: 'toolName',
|
|
257
|
-
type: 'string',
|
|
258
|
-
displayOptions: {
|
|
259
|
-
show: {
|
|
260
|
-
operation: ['tools'],
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
default: '',
|
|
264
|
-
placeholder: 'get_weather',
|
|
265
|
-
description: 'Name of the tool to execute',
|
|
266
|
-
required: true,
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
displayName: 'Tool Arguments',
|
|
270
|
-
name: 'toolArguments',
|
|
271
|
-
type: 'json',
|
|
272
|
-
typeOptions: {
|
|
273
|
-
rows: 3,
|
|
274
|
-
},
|
|
275
|
-
displayOptions: {
|
|
276
|
-
show: {
|
|
277
|
-
operation: ['tools'],
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
default: '{}',
|
|
281
|
-
placeholder: '{"location": "São Paulo", "units": "celsius"}',
|
|
282
|
-
description: 'Arguments to pass to the tool',
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
displayName: 'Context',
|
|
286
|
-
name: 'context',
|
|
287
|
-
type: 'string',
|
|
288
|
-
typeOptions: {
|
|
289
|
-
rows: 2,
|
|
290
|
-
},
|
|
291
|
-
displayOptions: {
|
|
292
|
-
show: {
|
|
293
|
-
operation: ['tools'],
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
default: '',
|
|
297
|
-
placeholder: 'User is asking about weather in their city...',
|
|
298
|
-
description: 'Context for tool execution',
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
displayName: 'Memory Action',
|
|
302
|
-
name: 'memoryAction',
|
|
303
|
-
type: 'options',
|
|
304
|
-
options: [
|
|
305
|
-
{
|
|
306
|
-
name: 'Store',
|
|
307
|
-
value: 'store',
|
|
308
|
-
description: 'Store data in AI Agent memory',
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
name: 'Retrieve',
|
|
312
|
-
value: 'retrieve',
|
|
313
|
-
description: 'Retrieve data from AI Agent memory',
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
name: 'Clear',
|
|
317
|
-
value: 'clear',
|
|
318
|
-
description: 'Clear AI Agent memory',
|
|
319
|
-
},
|
|
320
|
-
],
|
|
321
|
-
displayOptions: {
|
|
322
|
-
show: {
|
|
323
|
-
operation: ['memory'],
|
|
324
|
-
},
|
|
325
|
-
},
|
|
326
|
-
default: 'retrieve',
|
|
327
|
-
description: 'Action to perform on AI Agent memory',
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
displayName: 'Session ID',
|
|
331
|
-
name: 'sessionId',
|
|
332
|
-
type: 'string',
|
|
333
|
-
displayOptions: {
|
|
334
|
-
show: {
|
|
335
|
-
operation: ['memory'],
|
|
336
|
-
},
|
|
337
|
-
},
|
|
338
|
-
default: '',
|
|
339
|
-
placeholder: 'user-123',
|
|
340
|
-
description: 'Unique session identifier for memory isolation',
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
displayName: 'Memory Data',
|
|
344
|
-
name: 'memoryData',
|
|
345
|
-
type: 'json',
|
|
346
|
-
typeOptions: {
|
|
347
|
-
rows: 3,
|
|
348
|
-
},
|
|
349
|
-
displayOptions: {
|
|
350
|
-
show: {
|
|
351
|
-
operation: ['memory'],
|
|
352
|
-
memoryAction: ['store'],
|
|
353
|
-
},
|
|
354
|
-
},
|
|
355
|
-
default: '{}',
|
|
356
|
-
placeholder: '{"user_preferences": {"language": "pt-BR", "timezone": "America/Sao_Paulo"}}',
|
|
357
|
-
description: 'Data to store in memory',
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
displayName: 'Advanced Options',
|
|
361
|
-
name: 'advancedOptions',
|
|
362
|
-
type: 'collection',
|
|
363
|
-
placeholder: 'Add Option',
|
|
364
|
-
default: {},
|
|
365
|
-
displayOptions: {
|
|
366
|
-
show: {
|
|
367
|
-
operation: ['chat'],
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
options: [
|
|
371
|
-
{
|
|
372
|
-
displayName: 'Max Tokens',
|
|
373
|
-
name: 'maxTokens',
|
|
374
|
-
type: 'number',
|
|
375
|
-
default: 1000,
|
|
376
|
-
description: 'Maximum number of tokens to generate (0 for model default)',
|
|
377
|
-
typeOptions: {
|
|
378
|
-
minValue: 0,
|
|
379
|
-
maxValue: 4000,
|
|
380
|
-
},
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
displayName: 'Temperature',
|
|
384
|
-
name: 'temperature',
|
|
385
|
-
type: 'number',
|
|
386
|
-
default: 0.7,
|
|
387
|
-
description: 'Controls randomness (0.0 = deterministic, 1.0 = very random)',
|
|
388
|
-
typeOptions: {
|
|
389
|
-
minValue: 0,
|
|
390
|
-
maxValue: 1,
|
|
391
|
-
numberPrecision: 2,
|
|
392
|
-
},
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
displayName: 'Top P',
|
|
396
|
-
name: 'topP',
|
|
397
|
-
type: 'number',
|
|
398
|
-
default: 1,
|
|
399
|
-
description: 'Controls diversity via nucleus sampling',
|
|
400
|
-
typeOptions: {
|
|
401
|
-
minValue: 0.01,
|
|
402
|
-
maxValue: 1,
|
|
403
|
-
numberPrecision: 2,
|
|
404
|
-
},
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
displayName: 'Frequency Penalty',
|
|
408
|
-
name: 'frequencyPenalty',
|
|
409
|
-
type: 'number',
|
|
410
|
-
default: 0,
|
|
411
|
-
description: 'Reduces repetition of words',
|
|
412
|
-
typeOptions: {
|
|
413
|
-
minValue: -2,
|
|
414
|
-
maxValue: 2,
|
|
415
|
-
numberPrecision: 2,
|
|
416
|
-
},
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
displayName: 'Presence Penalty',
|
|
420
|
-
name: 'presencePenalty',
|
|
421
|
-
type: 'number',
|
|
422
|
-
default: 0,
|
|
423
|
-
description: 'Encourages new topics',
|
|
424
|
-
typeOptions: {
|
|
425
|
-
minValue: -2,
|
|
426
|
-
maxValue: 2,
|
|
427
|
-
numberPrecision: 2,
|
|
428
|
-
},
|
|
429
|
-
},
|
|
430
|
-
],
|
|
431
|
-
},
|
|
432
|
-
];
|