n8n-nodes-github-copilot 3.31.22 → 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.
@@ -121,12 +121,18 @@ class GitHubCopilotOpenAI {
121
121
  if (!content)
122
122
  return content;
123
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));
124
127
  const jsonBlockRegex = /^```(?:json)?\s*\n([\s\S]*?)\n```\s*$/;
125
128
  const match = trimmed.match(jsonBlockRegex);
126
129
  if (match && match[1]) {
127
- return match[1].trim();
130
+ const cleaned = match[1].trim();
131
+ console.log('✅ cleanJsonContent - Cleaned JSON (first 100 chars):', cleaned.substring(0, 100));
132
+ return cleaned;
128
133
  }
129
- return trimmed;
134
+ console.log('⚠️ cleanJsonContent - No markdown block found, returning original');
135
+ return content;
130
136
  };
131
137
  const openAIResponse = {
132
138
  id: response.id || `chatcmpl-${Date.now()}`,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.31.22",
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.22",
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",