n8n-nodes-github-copilot 3.31.0 → 3.31.1
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.
|
@@ -64,17 +64,23 @@ class GitHubCopilotAuthHelper {
|
|
|
64
64
|
type: "options",
|
|
65
65
|
options: [
|
|
66
66
|
{
|
|
67
|
-
name: "
|
|
68
|
-
value: "
|
|
69
|
-
description: "
|
|
67
|
+
name: "📄 Binary File (Download Ready)",
|
|
68
|
+
value: "binary",
|
|
69
|
+
description: "HTML as binary data ready to download as .html file",
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
name: "HTML + Instructions",
|
|
72
|
+
name: "📋 HTML Text + Instructions",
|
|
73
73
|
value: "htmlWithInstructions",
|
|
74
|
-
description: "HTML with usage instructions",
|
|
74
|
+
description: "HTML text with usage instructions (copy & paste)",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "📝 HTML Text Only",
|
|
78
|
+
value: "html",
|
|
79
|
+
description: "Just the HTML code as text",
|
|
75
80
|
},
|
|
76
81
|
],
|
|
77
|
-
default: "
|
|
82
|
+
default: "binary",
|
|
83
|
+
description: "How to output the authentication page",
|
|
78
84
|
},
|
|
79
85
|
],
|
|
80
86
|
};
|
|
@@ -87,25 +93,49 @@ class GitHubCopilotAuthHelper {
|
|
|
87
93
|
const scopes = this.getNodeParameter("scopes", i);
|
|
88
94
|
const outputFormat = this.getNodeParameter("outputFormat", i);
|
|
89
95
|
const html = generateAuthPage(clientId, scopes);
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
let output;
|
|
97
|
+
if (outputFormat === "binary") {
|
|
98
|
+
const buffer = Buffer.from(html, "utf-8");
|
|
99
|
+
output = {
|
|
100
|
+
json: {
|
|
101
|
+
success: true,
|
|
102
|
+
message: "✅ Authentication page generated successfully!",
|
|
103
|
+
instructions: "Download the binary file below and open it in your browser",
|
|
104
|
+
fileName: "github-copilot-auth.html",
|
|
105
|
+
fileSize: `${(buffer.length / 1024).toFixed(2)} KB`,
|
|
106
|
+
},
|
|
107
|
+
binary: {
|
|
108
|
+
authPage: {
|
|
109
|
+
data: buffer.toString("base64"),
|
|
110
|
+
mimeType: "text/html",
|
|
111
|
+
fileName: "github-copilot-auth.html",
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
pairedItem: i,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
const jsonOutput = {
|
|
119
|
+
html,
|
|
120
|
+
clientId,
|
|
121
|
+
scopes,
|
|
122
|
+
};
|
|
123
|
+
if (outputFormat === "htmlWithInstructions") {
|
|
124
|
+
jsonOutput.instructions = [
|
|
125
|
+
"1. Copy the HTML content from the 'html' field",
|
|
126
|
+
"2. Save as 'github-copilot-auth.html'",
|
|
127
|
+
"3. Open the file in your browser",
|
|
128
|
+
"4. Follow the on-screen instructions",
|
|
129
|
+
"5. Copy the token when it appears",
|
|
130
|
+
"6. Use the token in your GitHub Copilot API credential in n8n",
|
|
131
|
+
].join("\n");
|
|
132
|
+
}
|
|
133
|
+
output = {
|
|
134
|
+
json: jsonOutput,
|
|
135
|
+
pairedItem: i,
|
|
136
|
+
};
|
|
104
137
|
}
|
|
105
|
-
returnData.push(
|
|
106
|
-
json: output,
|
|
107
|
-
pairedItem: i,
|
|
108
|
-
});
|
|
138
|
+
returnData.push(output);
|
|
109
139
|
}
|
|
110
140
|
return [returnData];
|
|
111
141
|
}
|
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.1",
|
|
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.1",
|
|
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",
|