gityo 1.0.3 → 1.0.5

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 CHANGED
@@ -171,17 +171,3 @@ Priority is simple:
171
171
  - `.gityo.md` for repo-specific instructions
172
172
  - `.gityo.config.json` for project config
173
173
  - `~/.config/gityo.json` for your defaults
174
-
175
- ## Good for
176
-
177
- - quick everyday commits
178
- - cleaner staging and commit flow
179
- - AI-assisted commit messages without losing control
180
-
181
- ## Notes
182
-
183
- - run it inside a git repo
184
- - if there are no changed files, it exits early
185
- - if anything is already staged, the message is generated from staged files only and those are committed as-is
186
- - if nothing is staged, the message is generated from all changes and everything is staged before committing
187
- - `--yolo` is the fastest mode and skips the usual prompts
package/dist/index.js CHANGED
@@ -197973,17 +197973,12 @@ async function mainController(options = {}) {
197973
197973
  let finalCommitMessage = options.message?.trim() ?? "";
197974
197974
  if (typeof options.message === "string" && finalCommitMessage.length === 0) throw new Error("Provided commit message cannot be empty.");
197975
197975
  const files = await getChangedFiles(git);
197976
- if (files.length === 0) {
197977
- console.log("No changed files found.");
197978
- return;
197979
- }
197980
- const branchSummary = await git.branch();
197981
- const branch = branchSummary.detached ? "(detached HEAD)" : branchSummary.current;
197982
- console.log(`${source_default.cyan(" Branch:")} ${source_default.reset.bold(branch)}`);
197976
+ if (files.length === 0) return console.log("No changed files found.");
197983
197977
  const { diff, hasStaged } = await getCommitDiff(git);
197984
197978
  if (finalCommitMessage.length > 0) {
197985
197979
  console.log(source_default.yellow.dim("✓ Using provided commit message"));
197986
197980
  console.log(source_default.magenta.dim(finalCommitMessage));
197981
+ console.log("");
197987
197982
  }
197988
197983
  if (finalCommitMessage.length === 0 && !forceLLMGenerate) finalCommitMessage = await promptForCommitMessageInput(modelConfig.model);
197989
197984
  if (finalCommitMessage.length === 0) while (true) {
@@ -197991,6 +197986,7 @@ async function mainController(options = {}) {
197991
197986
  finalCommitMessage = (await runWithLoading("Generating commit message", () => generateCommitMessage(languageModel, config$4.instructions ?? null, diff))).text.trim();
197992
197987
  if (finalCommitMessage.length === 0) throw new Error("The selected model returned an empty commit message.");
197993
197988
  console.log(source_default.magenta.dim(finalCommitMessage));
197989
+ console.log("");
197994
197990
  if (forceLLMGenerate || config$4.autoAcceptCommitMessage) break;
197995
197991
  const action = await promptForGeneratedCommitAction();
197996
197992
  if (action === "accept" || action === "cancel") break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gityo",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "scripts": {