n8n-nodes-github-copilot 4.1.0 → 4.1.2

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,23 +66,6 @@ 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
- },
86
69
  {
87
70
  displayName: 'Tool Approval',
88
71
  name: 'toolApproval',
@@ -97,6 +80,30 @@ class GitHubCopilot {
97
80
  default: 'manual',
98
81
  description: 'Which tools Copilot can use without asking. WARNING: "Allow All" is dangerous - Copilot can execute ANY command!',
99
82
  },
83
+ {
84
+ displayName: 'Options',
85
+ name: 'options',
86
+ type: 'collection',
87
+ placeholder: 'Add Option',
88
+ default: {},
89
+ options: [
90
+ {
91
+ displayName: 'Model',
92
+ name: 'model',
93
+ type: 'string',
94
+ default: '',
95
+ placeholder: 'gpt-4o, o1, claude-3.5-sonnet, etc.',
96
+ description: 'Model to use. Leave empty for default (Claude Sonnet 4.5). Examples: gpt-4o, gpt-4o-mini, o1, o1-mini, o1-preview, claude-3.5-sonnet',
97
+ },
98
+ {
99
+ displayName: 'Timeout (seconds)',
100
+ name: 'timeout',
101
+ type: 'number',
102
+ default: 60,
103
+ description: 'Maximum execution time in seconds',
104
+ },
105
+ ],
106
+ },
100
107
  {
101
108
  displayName: 'Allowed Tools',
102
109
  name: 'allowedTools',
@@ -110,13 +117,6 @@ class GitHubCopilot {
110
117
  placeholder: '--allow-tool \'shell(git)\' --allow-tool \'write\'',
111
118
  description: 'Custom tool approval flags (space-separated). Example: --allow-tool \'shell(git)\' --deny-tool \'shell(rm)\'',
112
119
  },
113
- {
114
- displayName: 'Timeout (seconds)',
115
- name: 'timeout',
116
- type: 'number',
117
- default: 60,
118
- description: 'Maximum execution time in seconds',
119
- },
120
120
  ],
121
121
  };
122
122
  }
@@ -139,10 +139,11 @@ class GitHubCopilot {
139
139
  try {
140
140
  const operation = this.getNodeParameter('operation', i);
141
141
  const prompt = this.getNodeParameter('prompt', i);
142
- const model = this.getNodeParameter('model', i, '');
143
142
  const toolApproval = this.getNodeParameter('toolApproval', i);
144
- const timeout = this.getNodeParameter('timeout', i, 60);
145
143
  const useCredential = this.getNodeParameter('useCredential', i, false);
144
+ const options = this.getNodeParameter('options', i, {});
145
+ const model = options.model || '';
146
+ const timeout = options.timeout || 60;
146
147
  let githubToken = '';
147
148
  let authMethod = 'Local Copilot CLI';
148
149
  if (useCredential) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
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.1.0",
3
+ "version": "4.1.2",
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",