n8n-nodes-github-copilot 1.0.5 → 1.0.6

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.
@@ -188,18 +188,6 @@ class GitHubCopilot {
188
188
  if (stderr && !stdout) {
189
189
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), `GitHub Copilot CLI error: ${stderr}`);
190
190
  }
191
- const result = stdout.trim();
192
- let suggestion = result;
193
- if (operation === 'suggest' || operation === 'shell') {
194
- const lines = result.split('\n');
195
- const suggestionStart = lines.findIndex((line) => line.includes('Suggestion:') ||
196
- line.includes('```') ||
197
- line.trim().startsWith('$') ||
198
- line.trim().startsWith('>'));
199
- if (suggestionStart !== -1) {
200
- suggestion = lines.slice(suggestionStart).join('\n').trim();
201
- }
202
- }
203
191
  returnData.push({
204
192
  json: {
205
193
  operation,
@@ -207,8 +195,7 @@ class GitHubCopilot {
207
195
  context: context || undefined,
208
196
  language: operation === 'suggest' ? this.getNodeParameter('language', i) : undefined,
209
197
  commandType: operation === 'shell' ? this.getNodeParameter('commandType', i) : undefined,
210
- suggestion,
211
- rawOutput: result,
198
+ cliRawOutput: stdout,
212
199
  timestamp: new Date().toISOString(),
213
200
  },
214
201
  pairedItem: { item: i },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "n8n community node for GitHub Copilot CLI integration",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",