n8n-nodes-github-copilot 3.27.2 → 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.
@@ -8,6 +8,79 @@ class GitHubCopilotOAuth2Api {
8
8
  this.displayName = 'GitHub Copilot OAuth2 (with Helper)';
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
+ {
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',
62
+ type: 'notice',
63
+ default: '',
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>`,
83
+ },
11
84
  {
12
85
  displayName: 'GitHub Copilot Token',
13
86
  name: 'token',
@@ -17,39 +90,9 @@ class GitHubCopilotOAuth2Api {
17
90
  },
18
91
  default: '',
19
92
  required: true,
20
- description: `🔑 <strong>COPIE SEU TOKEN AQUI (formato: gho_*)</strong><br/><br/>
21
- <strong>🚀 MÉTODO FÁCIL (Automático):</strong><br/>
22
- 1. Abra terminal no projeto<br/>
23
- 2. Execute: <code>node get-copilot-token.js</code><br/>
24
- 3. Siga o fluxo OAuth no navegador<br/>
25
- 4. Cole o token gerado aqui<br/><br/>
26
- <strong>🔧 MÉTODO MANUAL:</strong><br/>
27
- 1. Acesse: <a href="https://github.com/login/device" target="_blank">https://github.com/login/device</a><br/>
28
- 2. Client ID: <code>01ab8ac9400c4e429b23</code><br/>
29
- 3. Digite o código de 8 caracteres que será gerado<br/>
30
- 4. Autorize a aplicação<br/>
31
- 5. Copie o token final aqui<br/><br/>
32
- <em>💡 O script automatizado é muito mais fácil!</em>`,
93
+ description: '🔑 Cole aqui seu token GitHub Copilot (formato: gho_*)',
33
94
  placeholder: 'gho_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
34
95
  },
35
- {
36
- displayName: 'Gerar Código Device Flow',
37
- name: 'deviceFlowHelp',
38
- type: 'notice',
39
- default: '',
40
- description: `<strong>🎯 PARA OAUTH MANUAL:</strong><br/><br/>
41
- <strong>1. URL do Device Flow:</strong><br/>
42
- 🌐 <a href="https://github.com/login/device" target="_blank" style="font-size: 16px; color: #0066cc; text-decoration: underline;">CLIQUE AQUI PARA GERAR CÓDIGO</a><br/><br/>
43
- <strong>2. Client ID para usar:</strong><br/>
44
- 📋 <code style="background: #f5f5f5; padding: 4px; border: 1px solid #ddd;">01ab8ac9400c4e429b23</code><br/><br/>
45
- <strong>3. Scopes necessários:</strong><br/>
46
- 🔐 <code>repo user:email</code><br/><br/>
47
- <strong>4. O que vai acontecer:</strong><br/>
48
- • GitHub vai gerar um código de 8 caracteres<br/>
49
- • Você autoriza no navegador<br/>
50
- • Copia o token final no campo acima<br/><br/>
51
- <em>💡 Dica: Use o script <code>get-copilot-token.js</code> que faz tudo isso automaticamente!</em>`,
52
- },
53
96
  ];
54
97
  this.authenticate = {
55
98
  type: 'generic',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.27.2",
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",