n8n-nodes-github-copilot 4.0.0 → 4.0.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.
@@ -106,13 +106,17 @@ class GitHubCopilot {
106
106
  async execute() {
107
107
  const items = this.getInputData();
108
108
  const returnData = [];
109
- let copilotVersion = 'unknown';
109
+ let copilotVersionInfo = { version: 'unknown', commit: 'unknown' };
110
110
  try {
111
111
  const versionResult = await execAsync('copilot --version', { timeout: 5000 });
112
- copilotVersion = versionResult.stdout.trim();
112
+ const versionOutput = versionResult.stdout.trim();
113
+ const lines = versionOutput.split('\n');
114
+ copilotVersionInfo.version = lines[0] || 'unknown';
115
+ const commitLine = lines.find(l => l.startsWith('Commit:'));
116
+ copilotVersionInfo.commit = commitLine ? commitLine.replace('Commit:', '').trim() : 'unknown';
113
117
  }
114
118
  catch (error) {
115
- copilotVersion = 'not installed';
119
+ copilotVersionInfo = { version: 'not installed', commit: 'unknown' };
116
120
  }
117
121
  for (let i = 0; i < items.length; i++) {
118
122
  try {
@@ -206,7 +210,7 @@ class GitHubCopilot {
206
210
  prompt,
207
211
  toolApproval,
208
212
  authMethod,
209
- copilotVersion,
213
+ copilotVersion: copilotVersionInfo,
210
214
  output: stdout,
211
215
  stderr: stderr || undefined,
212
216
  timestamp: new Date().toISOString(),
@@ -220,7 +224,7 @@ class GitHubCopilot {
220
224
  json: {
221
225
  error: error instanceof Error ? error.message : String(error),
222
226
  operation: 'query',
223
- copilotVersion,
227
+ copilotVersion: copilotVersionInfo,
224
228
  prompt: this.getNodeParameter('prompt', i, ''),
225
229
  timestamp: new Date().toISOString(),
226
230
  },
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "4.0.0",
3
+ "version": "4.0.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.0.0",
3
+ "version": "4.0.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",