aicommits 0.2.7 → 0.2.9
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/README.md +4 -2
- package/bin/aicommits.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,11 +35,13 @@ This CLI tool runs a `git diff` command to grab all the latest changes, sends th
|
|
|
35
35
|
|
|
36
36
|
The next version of the CLI, v2, will address both of these limitations!
|
|
37
37
|
|
|
38
|
-
##
|
|
38
|
+
## Tasks now
|
|
39
39
|
|
|
40
|
-
- Ignore package-lock and yarn.lock files
|
|
41
40
|
- Experiment with openai curie and codex as opposed to dacinvi
|
|
42
41
|
- Figure out the price per commit
|
|
42
|
+
|
|
43
|
+
## Future tasks
|
|
44
|
+
|
|
43
45
|
- Add support for conventional commits as a flag that users can enable
|
|
44
46
|
- Try supporting more than 200 lines by grabbing the diff per file
|
|
45
47
|
- Build landing page for the 2.0 launch
|
package/bin/aicommits.js
CHANGED
|
@@ -37,7 +37,9 @@ function main() {
|
|
|
37
37
|
console.error(chalk_1.default.white("▲ ") + "This is not a git repository");
|
|
38
38
|
process.exit(1);
|
|
39
39
|
}
|
|
40
|
-
const diff = (0, child_process_1.execSync)("git diff --cached", {
|
|
40
|
+
const diff = (0, child_process_1.execSync)("git diff --cached ':!package-lock.json' ':!yarn.lock'", {
|
|
41
|
+
encoding: "utf8",
|
|
42
|
+
});
|
|
41
43
|
if (!diff) {
|
|
42
44
|
console.log(chalk_1.default.white("▲ ") +
|
|
43
45
|
"No staged changes found. Make sure there are changes and run `git add .`");
|
|
@@ -74,7 +76,7 @@ exports.main = main;
|
|
|
74
76
|
function generateCommitMessage(prompt) {
|
|
75
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
78
|
const payload = {
|
|
77
|
-
model: "text-
|
|
79
|
+
model: "text-curie-001",
|
|
78
80
|
prompt,
|
|
79
81
|
temperature: 0.7,
|
|
80
82
|
top_p: 1,
|