gennady 0.2.1 → 0.2.2
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.
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gennady",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"author": "Konstantin Lebedev <ibnrubaxa@gmail.com>",
|
|
5
|
-
"description": "Gennady — Generate Next-level Automated Description
|
|
5
|
+
"description": "Gennady — Generate Next-level Automated Description Yntelligence",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"git",
|
|
8
8
|
"ai",
|
|
9
9
|
"llm",
|
|
10
|
+
"local",
|
|
10
11
|
"commit",
|
|
11
|
-
"generator"
|
|
12
|
+
"generator",
|
|
13
|
+
"gennady"
|
|
12
14
|
],
|
|
13
15
|
"license": "MIT",
|
|
14
|
-
"repository": "https://github.com/rubaxa/
|
|
16
|
+
"repository": "https://github.com/rubaxa/gennady",
|
|
15
17
|
"type": "module",
|
|
16
18
|
"bin": "./cli/gennady.js",
|
|
17
19
|
"main": "index.js",
|
|
@@ -106,16 +106,15 @@ export class CommitGen {
|
|
|
106
106
|
|
|
107
107
|
const batches = codeChanged.reduce((acc, file) => {
|
|
108
108
|
if (!acc[0] || acc[0].tokens + file.tokens > maxInputTokens) {
|
|
109
|
-
if (acc[0]) {
|
|
110
|
-
acc[0].languages = [...new Set(acc[0].languages)];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
109
|
acc.unshift({tokens: 0, diff: '', languages: []});
|
|
114
110
|
}
|
|
115
111
|
|
|
116
112
|
acc[0].tokens += file.tokens;
|
|
117
113
|
acc[0].diff += `File: ${file.filename}\n${file.diff.hunks.flatMap(h => h.changes).join('\n')}\n\n`;
|
|
118
|
-
|
|
114
|
+
|
|
115
|
+
if (!acc[0].languages.includes(file.programmingLanguage)) {
|
|
116
|
+
acc[0].languages.push(file.programmingLanguage);
|
|
117
|
+
}
|
|
119
118
|
|
|
120
119
|
return acc;
|
|
121
120
|
}, []);
|