n8n-nodes-github-copilot 3.29.5 → 3.29.8
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.
|
@@ -79,10 +79,7 @@ class GitHubCopilotOAuth2Api {
|
|
|
79
79
|
name: "generateCode",
|
|
80
80
|
type: "button",
|
|
81
81
|
typeOptions: {
|
|
82
|
-
action:
|
|
83
|
-
type: "generateDeviceCode",
|
|
84
|
-
displayName: "🎲 Generate 8-Character Code",
|
|
85
|
-
},
|
|
82
|
+
action: "generateDeviceCode",
|
|
86
83
|
},
|
|
87
84
|
default: "",
|
|
88
85
|
displayOptions: {
|
|
@@ -309,7 +309,7 @@ class GitHubCopilot {
|
|
|
309
309
|
authMethod = `GitHub Copilot ${credentialType === "githubCopilotOAuth2Api" ? "OAuth2" : "API"} Credential`;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
catch
|
|
312
|
+
catch {
|
|
313
313
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), "GitHub Copilot credential is not configured. Please configure it or use Local CLI authentication.");
|
|
314
314
|
}
|
|
315
315
|
}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.29.
|
|
3
|
+
"version": "3.29.8",
|
|
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",
|
|
@@ -55,24 +55,34 @@
|
|
|
55
55
|
"automation"
|
|
56
56
|
],
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=
|
|
58
|
+
"node": ">=18.19",
|
|
59
59
|
"pnpm": ">=7.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@langchain/openai": "^0.6.14"
|
|
62
|
+
"@langchain/openai": "^0.6.14",
|
|
63
|
+
"n8n-workflow": "^1.110.0"
|
|
63
64
|
},
|
|
64
|
-
"peerDependencies": {
|
|
65
|
-
|
|
65
|
+
"peerDependencies": {},
|
|
66
|
+
"overrides": {
|
|
67
|
+
"form-data": "^4.0.4",
|
|
68
|
+
"mysql2": "^3.15.0",
|
|
69
|
+
"axios": "^1.12.0",
|
|
70
|
+
"pdfjs-dist": "^4.1.393",
|
|
71
|
+
"semver": "^7.5.4",
|
|
72
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
|
73
|
+
"@azure/identity": "^4.2.1",
|
|
74
|
+
"pg-promise": "^11.5.5",
|
|
75
|
+
"snowflake-sdk": "^2.0.4"
|
|
66
76
|
},
|
|
67
77
|
"devDependencies": {
|
|
68
|
-
"@types/node": "^
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
70
|
-
"@typescript-eslint/parser": "^
|
|
71
|
-
"eslint": "^8.
|
|
72
|
-
"gulp": "^
|
|
73
|
-
"n8n-core": "^1.
|
|
74
|
-
"n8n-workflow": "^1.
|
|
75
|
-
"prettier": "^
|
|
76
|
-
"typescript": "^5.
|
|
78
|
+
"@types/node": "^22.7.0",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
|
80
|
+
"@typescript-eslint/parser": "^8.7.0",
|
|
81
|
+
"eslint": "^8.57.0",
|
|
82
|
+
"gulp": "^5.0.1",
|
|
83
|
+
"n8n-core": "^1.112.1",
|
|
84
|
+
"n8n-workflow": "^1.110.0",
|
|
85
|
+
"prettier": "^3.3.0",
|
|
86
|
+
"typescript": "^5.6.2"
|
|
77
87
|
}
|
|
78
88
|
}
|
|
@@ -16,7 +16,7 @@ async function makeGitHubCopilotRequest(context, endpoint, body, hasMedia = fals
|
|
|
16
16
|
try {
|
|
17
17
|
credentialType = context.getNodeParameter("credentialType", 0, "githubCopilotApi");
|
|
18
18
|
}
|
|
19
|
-
catch
|
|
19
|
+
catch {
|
|
20
20
|
console.log("🔍 No credentialType parameter found, using default: githubCopilotApi");
|
|
21
21
|
}
|
|
22
22
|
const credentials = await context.getCredentials(credentialType);
|
|
@@ -37,9 +37,7 @@ async function makeGitHubCopilotRequest(context, endpoint, body, hasMedia = fals
|
|
|
37
37
|
console.warn(`⚠️ Unexpected token format: ${tokenPrefix}...${tokenSuffix}. Trying API call anyway.`);
|
|
38
38
|
}
|
|
39
39
|
const headers = {
|
|
40
|
-
|
|
41
|
-
"Accept": "application/json",
|
|
42
|
-
"Content-Type": "application/json",
|
|
40
|
+
...GitHubCopilotEndpoints_1.GITHUB_COPILOT_API.HEADERS.WITH_AUTH(token),
|
|
43
41
|
};
|
|
44
42
|
if (hasMedia) {
|
|
45
43
|
headers["Copilot-Vision-Request"] = "true";
|
|
@@ -50,7 +48,8 @@ async function makeGitHubCopilotRequest(context, endpoint, body, hasMedia = fals
|
|
|
50
48
|
headers,
|
|
51
49
|
body: JSON.stringify(body),
|
|
52
50
|
};
|
|
53
|
-
const
|
|
51
|
+
const fullUrl = `${GitHubCopilotEndpoints_1.GITHUB_COPILOT_API.BASE_URL}${endpoint}`;
|
|
52
|
+
const response = await fetch(fullUrl, options);
|
|
54
53
|
if (!response.ok) {
|
|
55
54
|
const errorText = await response.text();
|
|
56
55
|
const tokenPrefix = token.substring(0, 4);
|
package/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { GitHubCopilot } = require('./dist/nodes/GitHubCopilot/GitHubCopilot.node.js');
|
|
2
|
+
const { GitHubCopilotChatAPI } = require('./dist/nodes/GitHubCopilotChatAPI/GitHubCopilotChatAPI.node.js');
|
|
3
|
+
const { GitHubCopilotChatModel } = require('./dist/nodes/GitHubCopilotChatModel/GitHubCopilotChatModel.node.js');
|
|
4
|
+
const { GitHubCopilotOpenAI } = require('./dist/nodes/GitHubCopilotOpenAI/GitHubCopilotOpenAI.node.js');
|
|
5
|
+
const { GitHubCopilotTest } = require('./dist/nodes/GitHubCopilotTest/GitHubCopilotTest.node.js');
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
GitHubCopilot,
|
|
9
|
+
GitHubCopilotChatAPI,
|
|
10
|
+
GitHubCopilotChatModel,
|
|
11
|
+
GitHubCopilotOpenAI,
|
|
12
|
+
GitHubCopilotTest,
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.29.
|
|
3
|
+
"version": "3.29.8",
|
|
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",
|
|
@@ -55,24 +55,35 @@
|
|
|
55
55
|
"automation"
|
|
56
56
|
],
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=
|
|
58
|
+
"node": ">=18.19",
|
|
59
59
|
"pnpm": ">=7.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@langchain/openai": "^0.6.14"
|
|
62
|
+
"@langchain/openai": "^0.6.14",
|
|
63
|
+
"n8n-workflow": "^1.110.0"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
|
-
|
|
66
|
+
},
|
|
67
|
+
"overrides": {
|
|
68
|
+
"form-data": "^4.0.4",
|
|
69
|
+
"mysql2": "^3.15.0",
|
|
70
|
+
"axios": "^1.12.0",
|
|
71
|
+
"pdfjs-dist": "^4.1.393",
|
|
72
|
+
"semver": "^7.5.4",
|
|
73
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
|
74
|
+
"@azure/identity": "^4.2.1",
|
|
75
|
+
"pg-promise": "^11.5.5",
|
|
76
|
+
"snowflake-sdk": "^2.0.4"
|
|
66
77
|
},
|
|
67
78
|
"devDependencies": {
|
|
68
|
-
"@types/node": "^
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
70
|
-
"@typescript-eslint/parser": "^
|
|
71
|
-
"eslint": "^8.
|
|
72
|
-
"gulp": "^
|
|
73
|
-
"n8n-core": "^1.
|
|
74
|
-
"n8n-workflow": "^1.
|
|
75
|
-
"prettier": "^
|
|
76
|
-
"typescript": "^5.
|
|
79
|
+
"@types/node": "^22.7.0",
|
|
80
|
+
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
|
81
|
+
"@typescript-eslint/parser": "^8.7.0",
|
|
82
|
+
"eslint": "^8.57.0",
|
|
83
|
+
"gulp": "^5.0.1",
|
|
84
|
+
"n8n-core": "^1.112.1",
|
|
85
|
+
"n8n-workflow": "^1.110.0",
|
|
86
|
+
"prettier": "^3.3.0",
|
|
87
|
+
"typescript": "^5.6.2"
|
|
77
88
|
}
|
|
78
89
|
}
|