n8n-nodes-github-copilot 3.27.1 → 3.27.3
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.
|
@@ -9,15 +9,77 @@ class GitHubCopilotOAuth2Api {
|
|
|
9
9
|
this.documentationUrl = 'https://docs.github.com/en/copilot/github-copilot-chat/copilot-chat-in-ides/using-github-copilot-chat-in-your-ide';
|
|
10
10
|
this.properties = [
|
|
11
11
|
{
|
|
12
|
-
displayName: '
|
|
13
|
-
name: '
|
|
12
|
+
displayName: '🎯 Como obter seu token',
|
|
13
|
+
name: 'authMethod',
|
|
14
|
+
type: 'options',
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: '🚀 Script Automático (RECOMENDADO)',
|
|
18
|
+
value: 'script',
|
|
19
|
+
description: 'Execute: node get-copilot-token.js no terminal',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: '🔧 OAuth Manual no GitHub',
|
|
23
|
+
value: 'manual',
|
|
24
|
+
description: 'Processo manual no site do GitHub',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: '📋 Já tenho o token',
|
|
28
|
+
value: 'have_token',
|
|
29
|
+
description: 'Pular instruções e inserir token',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
default: 'script',
|
|
33
|
+
description: 'Escolha como quer obter seu token GitHub Copilot',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: '🚀 Execute o Script Automático',
|
|
37
|
+
name: 'scriptInstructions',
|
|
38
|
+
type: 'notice',
|
|
39
|
+
default: '',
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
authMethod: ['script'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
description: `<div style="background: #e8f5e8; padding: 15px; border: 2px solid #4CAF50; border-radius: 8px;">
|
|
46
|
+
<strong style="color: #2E7D32; font-size: 16px;">📋 SCRIPT AUTOMÁTICO (MAIS FÁCIL)</strong><br/><br/>
|
|
47
|
+
<strong>1. Abra o terminal:</strong><br/>
|
|
48
|
+
<code style="background: #f0f0f0; padding: 8px; border-radius: 4px; display: block; margin: 8px 0;">cd z:\\Desenvolvimento\\n8n-nodes-copilot</code><br/>
|
|
49
|
+
<strong>2. Execute o script:</strong><br/>
|
|
50
|
+
<code style="background: #f0f0f0; padding: 8px; border-radius: 4px; display: block; margin: 8px 0;">node get-copilot-token.js</code><br/>
|
|
51
|
+
<strong>3. Siga as instruções:</strong><br/>
|
|
52
|
+
• O script abre o navegador automaticamente<br/>
|
|
53
|
+
• Faça login no GitHub se necessário<br/>
|
|
54
|
+
• Autorize a aplicação<br/>
|
|
55
|
+
• O token será exibido no terminal<br/><br/>
|
|
56
|
+
<strong>4. Copie o token e cole no campo abaixo</strong>
|
|
57
|
+
</div>`,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: '🔧 OAuth Manual no GitHub',
|
|
61
|
+
name: 'manualInstructions',
|
|
14
62
|
type: 'notice',
|
|
15
63
|
default: '',
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
authMethod: ['manual'],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
description: `<div style="background: #fff3e0; padding: 15px; border: 2px solid #FF9800; border-radius: 8px;">
|
|
70
|
+
<strong style="color: #E65100; font-size: 16px;">📋 PROCESSO MANUAL</strong><br/><br/>
|
|
71
|
+
<strong>1. Abra esta URL:</strong><br/>
|
|
72
|
+
<a href="https://github.com/login/device" target="_blank" style="background: #2196F3; color: white; padding: 10px 15px; text-decoration: none; border-radius: 5px; display: inline-block; margin: 8px 0;">🌐 CLIQUE AQUI - GitHub Device Flow</a><br/><br/>
|
|
73
|
+
<strong>2. Cole este Client ID:</strong><br/>
|
|
74
|
+
<code style="background: #f0f0f0; padding: 8px; border-radius: 4px; display: block; margin: 8px 0; font-size: 14px;">01ab8ac9400c4e429b23</code><br/>
|
|
75
|
+
<strong>3. Cole estes Scopes:</strong><br/>
|
|
76
|
+
<code style="background: #f0f0f0; padding: 8px; border-radius: 4px; display: block; margin: 8px 0;">repo user:email</code><br/>
|
|
77
|
+
<strong>4. Processo:</strong><br/>
|
|
78
|
+
• GitHub gera código de 8 caracteres<br/>
|
|
79
|
+
• Autorize a aplicação<br/>
|
|
80
|
+
• Copie o token final<br/><br/>
|
|
81
|
+
<strong>5. Cole o token no campo abaixo</strong>
|
|
82
|
+
</div>`,
|
|
21
83
|
},
|
|
22
84
|
{
|
|
23
85
|
displayName: 'GitHub Copilot Token',
|
|
@@ -28,50 +90,9 @@ class GitHubCopilotOAuth2Api {
|
|
|
28
90
|
},
|
|
29
91
|
default: '',
|
|
30
92
|
required: true,
|
|
31
|
-
description: '🔑
|
|
93
|
+
description: '🔑 Cole aqui seu token GitHub Copilot (formato: gho_*)',
|
|
32
94
|
placeholder: 'gho_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
|
33
95
|
},
|
|
34
|
-
{
|
|
35
|
-
displayName: '🔧 Manual OAuth Steps (Alternative)',
|
|
36
|
-
name: 'manualSteps',
|
|
37
|
-
type: 'collection',
|
|
38
|
-
placeholder: 'Expand for Manual Setup',
|
|
39
|
-
default: {},
|
|
40
|
-
options: [
|
|
41
|
-
{
|
|
42
|
-
displayName: 'Step-by-Step Instructions',
|
|
43
|
-
name: 'instructions',
|
|
44
|
-
type: 'notice',
|
|
45
|
-
default: '',
|
|
46
|
-
description: `<strong>Manual Device Flow Process:</strong><br/><br/>
|
|
47
|
-
<strong>1. Generate Device Code:</strong><br/>
|
|
48
|
-
🌐 Visit: <a href="https://github.com/login/device" target="_blank">https://github.com/login/device</a><br/><br/>
|
|
49
|
-
<strong>2. Enter Client ID:</strong><br/>
|
|
50
|
-
🔑 Use: <code>01ab8ac9400c4e429b23</code><br/><br/>
|
|
51
|
-
<strong>3. Get 8-Character Code:</strong><br/>
|
|
52
|
-
📱 GitHub will provide code like: ABCD-1234<br/><br/>
|
|
53
|
-
<strong>4. Complete Authorization:</strong><br/>
|
|
54
|
-
✅ Enter code and authorize application<br/><br/>
|
|
55
|
-
<strong>5. Obtain Token:</strong><br/>
|
|
56
|
-
🎯 Copy final token and paste above`,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
displayName: 'Client ID (Fixed)',
|
|
60
|
-
name: 'clientId',
|
|
61
|
-
type: 'string',
|
|
62
|
-
default: '01ab8ac9400c4e429b23',
|
|
63
|
-
description: 'GitHub OAuth Client ID - VS Code application',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
displayName: 'Required Scopes',
|
|
67
|
-
name: 'scopes',
|
|
68
|
-
type: 'string',
|
|
69
|
-
default: 'repo user:email',
|
|
70
|
-
description: 'OAuth permissions needed for Copilot access',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
description: 'Manual configuration for advanced users',
|
|
74
|
-
},
|
|
75
96
|
];
|
|
76
97
|
this.authenticate = {
|
|
77
98
|
type: 'generic',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.27.
|
|
3
|
+
"version": "3.27.3",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude, Gemini and more using your Copilot subscription",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
|