n8n-nodes-github-copilot 3.31.26 → 3.31.27
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.
|
@@ -44,7 +44,15 @@ class GitHubCopilotOpenAI {
|
|
|
44
44
|
if (messagesInputMode === "json") {
|
|
45
45
|
const messagesJson = this.getNodeParameter("messagesJson", i, "[]");
|
|
46
46
|
try {
|
|
47
|
-
|
|
47
|
+
let parsed;
|
|
48
|
+
if (typeof messagesJson === 'object') {
|
|
49
|
+
parsed = messagesJson;
|
|
50
|
+
console.log('📥 Received messages as direct object/array (no parsing needed)');
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
parsed = JSON.parse(messagesJson);
|
|
54
|
+
console.log('📥 Parsed messages from JSON string');
|
|
55
|
+
}
|
|
48
56
|
if (Array.isArray(parsed)) {
|
|
49
57
|
messages = parsed;
|
|
50
58
|
}
|
|
@@ -81,9 +89,16 @@ class GitHubCopilotOpenAI {
|
|
|
81
89
|
});
|
|
82
90
|
}
|
|
83
91
|
let parsedTools = [];
|
|
84
|
-
if (tools
|
|
92
|
+
if (tools) {
|
|
85
93
|
try {
|
|
86
|
-
|
|
94
|
+
if (typeof tools === 'object' && Array.isArray(tools)) {
|
|
95
|
+
parsedTools = tools;
|
|
96
|
+
console.log('📥 Received tools as direct array (no parsing needed)');
|
|
97
|
+
}
|
|
98
|
+
else if (typeof tools === 'string' && tools.trim()) {
|
|
99
|
+
parsedTools = JSON.parse(tools);
|
|
100
|
+
console.log('📥 Parsed tools from JSON string');
|
|
101
|
+
}
|
|
87
102
|
}
|
|
88
103
|
catch (error) {
|
|
89
104
|
throw new Error(`Failed to parse tools JSON: ${error instanceof Error ? error.message : "Unknown error"}`);
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.31.
|
|
3
|
+
"version": "3.31.27",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude, 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": "3.31.
|
|
3
|
+
"version": "3.31.27",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude, Gemini and more using your Copilot subscription",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
|