n8n-nodes-github-copilot 4.1.1 → 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,14 +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: '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
- },
77
69
  {
78
70
  displayName: 'Tool Approval',
79
71
  name: 'toolApproval',
@@ -88,6 +80,30 @@ class GitHubCopilot {
88
80
  default: 'manual',
89
81
  description: 'Which tools Copilot can use without asking. WARNING: "Allow All" is dangerous - Copilot can execute ANY command!',
90
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
+ },
91
107
  {
92
108
  displayName: 'Allowed Tools',
93
109
  name: 'allowedTools',
@@ -101,13 +117,6 @@ class GitHubCopilot {
101
117
  placeholder: '--allow-tool \'shell(git)\' --allow-tool \'write\'',
102
118
  description: 'Custom tool approval flags (space-separated). Example: --allow-tool \'shell(git)\' --deny-tool \'shell(rm)\'',
103
119
  },
104
- {
105
- displayName: 'Timeout (seconds)',
106
- name: 'timeout',
107
- type: 'number',
108
- default: 60,
109
- description: 'Maximum execution time in seconds',
110
- },
111
120
  ],
112
121
  };
113
122
  }
@@ -130,10 +139,11 @@ class GitHubCopilot {
130
139
  try {
131
140
  const operation = this.getNodeParameter('operation', i);
132
141
  const prompt = this.getNodeParameter('prompt', i);
133
- const model = this.getNodeParameter('model', i, '');
134
142
  const toolApproval = this.getNodeParameter('toolApproval', i);
135
- const timeout = this.getNodeParameter('timeout', i, 60);
136
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;
137
147
  let githubToken = '';
138
148
  let authMethod = 'Local Copilot CLI';
139
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.1",
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.1",
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",