n8n-nodes-github-copilot 4.0.2 → 4.1.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.
|
@@ -66,6 +66,23 @@ class GitHubCopilot {
|
|
|
66
66
|
placeholder: 'Example: Show me this week\'s commits and summarize them',
|
|
67
67
|
description: 'Your query or task for GitHub Copilot CLI. Will be executed with: copilot -p "your prompt"',
|
|
68
68
|
},
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Model',
|
|
71
|
+
name: 'model',
|
|
72
|
+
type: 'options',
|
|
73
|
+
options: [
|
|
74
|
+
{ name: 'Default (Claude Sonnet 4.5)', value: '' },
|
|
75
|
+
{ name: 'GPT-4o', value: 'gpt-4o' },
|
|
76
|
+
{ name: 'GPT-4o Mini', value: 'gpt-4o-mini' },
|
|
77
|
+
{ name: 'O1', value: 'o1' },
|
|
78
|
+
{ name: 'O1 Mini', value: 'o1-mini' },
|
|
79
|
+
{ name: 'O1 Preview', value: 'o1-preview' },
|
|
80
|
+
{ name: 'Claude Sonnet 3.5', value: 'claude-3.5-sonnet' },
|
|
81
|
+
{ name: 'Claude Sonnet 4.5', value: 'claude-sonnet-4.5' },
|
|
82
|
+
],
|
|
83
|
+
default: '',
|
|
84
|
+
description: 'Model to use. Default is Claude Sonnet 4.5. Note: Different models have different cost multipliers.',
|
|
85
|
+
},
|
|
69
86
|
{
|
|
70
87
|
displayName: 'Tool Approval',
|
|
71
88
|
name: 'toolApproval',
|
|
@@ -122,6 +139,7 @@ class GitHubCopilot {
|
|
|
122
139
|
try {
|
|
123
140
|
const operation = this.getNodeParameter('operation', i);
|
|
124
141
|
const prompt = this.getNodeParameter('prompt', i);
|
|
142
|
+
const model = this.getNodeParameter('model', i, '');
|
|
125
143
|
const toolApproval = this.getNodeParameter('toolApproval', i);
|
|
126
144
|
const timeout = this.getNodeParameter('timeout', i, 60);
|
|
127
145
|
const useCredential = this.getNodeParameter('useCredential', i, false);
|
|
@@ -160,7 +178,8 @@ class GitHubCopilot {
|
|
|
160
178
|
break;
|
|
161
179
|
}
|
|
162
180
|
const escapedPrompt = prompt.replace(/'/g, "'\"'\"'");
|
|
163
|
-
const
|
|
181
|
+
const modelFlag = model ? `--model ${model}` : '';
|
|
182
|
+
const command = `copilot -p '${escapedPrompt}' ${modelFlag} ${toolFlags}`.trim();
|
|
164
183
|
console.log('Executing command:', command);
|
|
165
184
|
console.log('Auth method:', authMethod);
|
|
166
185
|
let stdout = '';
|
|
@@ -208,6 +227,7 @@ class GitHubCopilot {
|
|
|
208
227
|
json: {
|
|
209
228
|
operation,
|
|
210
229
|
prompt,
|
|
230
|
+
model: model || 'claude-sonnet-4.5',
|
|
211
231
|
toolApproval,
|
|
212
232
|
authMethod,
|
|
213
233
|
copilotVersion: copilotVersionInfo,
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with NEW CLI programmatic mode, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude Sonnet 4.5, Gemini and more using your Copilot subscription",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with NEW CLI programmatic mode, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude Sonnet 4.5, Gemini and more using your Copilot subscription",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
|