n8n-nodes-github-copilot 1.0.1 → 1.0.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.
|
@@ -157,10 +157,10 @@ class GitHubCopilot {
|
|
|
157
157
|
if (language !== 'other') {
|
|
158
158
|
fullPrompt = `[${language}] ${fullPrompt}`;
|
|
159
159
|
}
|
|
160
|
-
command =
|
|
160
|
+
command = `/usr/bin/gh copilot suggest "${fullPrompt}"`;
|
|
161
161
|
break;
|
|
162
162
|
case 'explain':
|
|
163
|
-
command =
|
|
163
|
+
command = `/usr/bin/gh copilot explain "${fullPrompt}"`;
|
|
164
164
|
break;
|
|
165
165
|
case 'shell':
|
|
166
166
|
const commandType = this.getNodeParameter('commandType', i);
|
|
@@ -181,7 +181,7 @@ class GitHubCopilot {
|
|
|
181
181
|
default:
|
|
182
182
|
shellPrompt = fullPrompt;
|
|
183
183
|
}
|
|
184
|
-
command =
|
|
184
|
+
command = `/usr/bin/gh copilot suggest "${shellPrompt}" --type shell`;
|
|
185
185
|
break;
|
|
186
186
|
default:
|
|
187
187
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}`);
|
package/package.json
CHANGED