gityo 1.0.5 → 1.0.6
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/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -197976,16 +197976,16 @@ async function mainController(options = {}) {
|
|
|
197976
197976
|
if (files.length === 0) return console.log("No changed files found.");
|
|
197977
197977
|
const { diff, hasStaged } = await getCommitDiff(git);
|
|
197978
197978
|
if (finalCommitMessage.length > 0) {
|
|
197979
|
-
console.log(source_default.yellow
|
|
197980
|
-
console.log(source_default.
|
|
197979
|
+
console.log(source_default.yellow("✓ Using direct commit message"));
|
|
197980
|
+
console.log(source_default.cyan.dim(finalCommitMessage));
|
|
197981
197981
|
console.log("");
|
|
197982
197982
|
}
|
|
197983
197983
|
if (finalCommitMessage.length === 0 && !forceLLMGenerate) finalCommitMessage = await promptForCommitMessageInput(modelConfig.model);
|
|
197984
197984
|
if (finalCommitMessage.length === 0) while (true) {
|
|
197985
|
-
if (forceLLMGenerate) console.log(source_default.yellow
|
|
197985
|
+
if (forceLLMGenerate) console.log(source_default.yellow("• Using LLM to generate message"));
|
|
197986
197986
|
finalCommitMessage = (await runWithLoading("Generating commit message", () => generateCommitMessage(languageModel, config$4.instructions ?? null, diff))).text.trim();
|
|
197987
197987
|
if (finalCommitMessage.length === 0) throw new Error("The selected model returned an empty commit message.");
|
|
197988
|
-
console.log(source_default.
|
|
197988
|
+
console.log(source_default.cyan.dim(finalCommitMessage));
|
|
197989
197989
|
console.log("");
|
|
197990
197990
|
if (forceLLMGenerate || config$4.autoAcceptCommitMessage) break;
|
|
197991
197991
|
const action = await promptForGeneratedCommitAction();
|
|
@@ -197993,7 +197993,7 @@ async function mainController(options = {}) {
|
|
|
197993
197993
|
}
|
|
197994
197994
|
if (finalCommitMessage.length === 0) throw new Error("Commit message cannot be empty.");
|
|
197995
197995
|
console.log("");
|
|
197996
|
-
console.log(source_default.
|
|
197996
|
+
console.log(source_default.green("✓ Committing changes"));
|
|
197997
197997
|
if (!hasStaged) await git.add(["-A"]);
|
|
197998
197998
|
console.log(files.join("\n"));
|
|
197999
197999
|
console.log("");
|