n8n-nodes-github-copilot 4.0.2 → 4.1.1
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,14 @@ 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: 'string',
|
|
73
|
+
default: '',
|
|
74
|
+
placeholder: 'gpt-4o, o1, claude-3.5-sonnet, etc.',
|
|
75
|
+
description: 'Model to use (optional). Leave empty for default (Claude Sonnet 4.5). Examples: gpt-4o, gpt-4o-mini, o1, o1-mini, o1-preview, claude-3.5-sonnet',
|
|
76
|
+
},
|
|
69
77
|
{
|
|
70
78
|
displayName: 'Tool Approval',
|
|
71
79
|
name: 'toolApproval',
|
|
@@ -122,6 +130,7 @@ class GitHubCopilot {
|
|
|
122
130
|
try {
|
|
123
131
|
const operation = this.getNodeParameter('operation', i);
|
|
124
132
|
const prompt = this.getNodeParameter('prompt', i);
|
|
133
|
+
const model = this.getNodeParameter('model', i, '');
|
|
125
134
|
const toolApproval = this.getNodeParameter('toolApproval', i);
|
|
126
135
|
const timeout = this.getNodeParameter('timeout', i, 60);
|
|
127
136
|
const useCredential = this.getNodeParameter('useCredential', i, false);
|
|
@@ -160,7 +169,8 @@ class GitHubCopilot {
|
|
|
160
169
|
break;
|
|
161
170
|
}
|
|
162
171
|
const escapedPrompt = prompt.replace(/'/g, "'\"'\"'");
|
|
163
|
-
const
|
|
172
|
+
const modelFlag = model ? `--model ${model}` : '';
|
|
173
|
+
const command = `copilot -p '${escapedPrompt}' ${modelFlag} ${toolFlags}`.trim();
|
|
164
174
|
console.log('Executing command:', command);
|
|
165
175
|
console.log('Auth method:', authMethod);
|
|
166
176
|
let stdout = '';
|
|
@@ -208,6 +218,7 @@ class GitHubCopilot {
|
|
|
208
218
|
json: {
|
|
209
219
|
operation,
|
|
210
220
|
prompt,
|
|
221
|
+
model: model || 'claude-sonnet-4.5',
|
|
211
222
|
toolApproval,
|
|
212
223
|
authMethod,
|
|
213
224
|
copilotVersion: copilotVersionInfo,
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
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.
|
|
3
|
+
"version": "4.1.1",
|
|
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",
|