n8n-nodes-github-copilot
Advanced tools
@@ -131,13 +131,8 @@ "use strict"; | ||
| else { | ||
| if (mimeType === 'application/pdf') { | ||
| throw new n8n_workflow_1.NodeOperationError(this.getNode(), `โ Unsupported File Type: PDF files are not supported by the GitHub Copilot Vision API. Please convert the PDF to an image (JPEG, PNG, WEBP) or extract the text content before sending.`, { itemIndex: i }); | ||
| console.warn(`โ ๏ธ Could not detect image type for '${keyToUse}', defaulting to 'image/jpeg' or keeping original '${mimeType}'`); | ||
| if (mimeType === 'application/octet-stream') { | ||
| mimeType = 'image/jpeg'; | ||
| } | ||
| mimeType = 'image/jpeg'; | ||
| console.warn(`โ ๏ธ Could not detect image type for '${keyToUse}', defaulting to image/jpeg`); | ||
| } | ||
| } | ||
| const allowedMimeTypes = ['image/png', 'image/jpeg', 'image/gif', 'image/webp']; | ||
| if (!allowedMimeTypes.includes(mimeType)) { | ||
| throw new n8n_workflow_1.NodeOperationError(this.getNode(), `โ Unsupported Image Format: '${mimeType}'. The API only supports: ${allowedMimeTypes.map(t => t.replace('image/', '')).join(', ')}.`, { itemIndex: i }); | ||
| } | ||
| const base64 = buffer.toString('base64'); | ||
@@ -172,2 +167,5 @@ const dataUrl = `data:${mimeType};base64,${base64}`; | ||
| catch (err) { | ||
| if (err instanceof n8n_workflow_1.NodeOperationError) { | ||
| throw err; | ||
| } | ||
| console.error(`โ Failed to read binary data for '${keyToUse}':`, err); | ||
@@ -174,0 +172,0 @@ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to read binary file '${keyToUse}'. Ensure the binary data exists.`, { itemIndex: i }); |
| { | ||
| "name": "n8n-nodes-github-copilot", | ||
| "version": "4.4.11", | ||
| "version": "4.4.12", | ||
| "description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows with full tools and function calling support - access GPT-5, Claude, Gemini and more using your Copilot subscription", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+1
-1
| { | ||
| "name": "n8n-nodes-github-copilot", | ||
| "version": "4.4.11", | ||
| "version": "4.4.12", | ||
| "description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows with full tools and function calling support - access GPT-5, Claude, Gemini and more using your Copilot subscription", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
389135
-0.15%8608
-0.02%