n8n-nodes-github-copilot 3.31.21 → 3.31.23
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.
|
@@ -120,11 +120,18 @@ class GitHubCopilotOpenAI {
|
|
|
120
120
|
const cleanJsonContent = (content) => {
|
|
121
121
|
if (!content)
|
|
122
122
|
return content;
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
const trimmed = content.trim();
|
|
124
|
+
console.log('🔍 cleanJsonContent - Original length:', content.length);
|
|
125
|
+
console.log('🔍 cleanJsonContent - Starts with:', trimmed.substring(0, 20));
|
|
126
|
+
console.log('🔍 cleanJsonContent - Ends with:', trimmed.substring(trimmed.length - 20));
|
|
127
|
+
const jsonBlockRegex = /^```(?:json)?\s*\n([\s\S]*?)\n```\s*$/;
|
|
128
|
+
const match = trimmed.match(jsonBlockRegex);
|
|
129
|
+
if (match && match[1]) {
|
|
130
|
+
const cleaned = match[1].trim();
|
|
131
|
+
console.log('✅ cleanJsonContent - Cleaned JSON (first 100 chars):', cleaned.substring(0, 100));
|
|
132
|
+
return cleaned;
|
|
127
133
|
}
|
|
134
|
+
console.log('⚠️ cleanJsonContent - No markdown block found, returning original');
|
|
128
135
|
return content;
|
|
129
136
|
};
|
|
130
137
|
const openAIResponse = {
|
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.23",
|
|
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.23",
|
|
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",
|