gityo 1.0.2 → 1.0.4

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
@@ -197984,6 +197984,7 @@ async function mainController(options = {}) {
197984
197984
  if (finalCommitMessage.length > 0) {
197985
197985
  console.log(source_default.yellow.dim("✓ Using provided commit message"));
197986
197986
  console.log(source_default.magenta.dim(finalCommitMessage));
197987
+ console.log("");
197987
197988
  }
197988
197989
  if (finalCommitMessage.length === 0 && !forceLLMGenerate) finalCommitMessage = await promptForCommitMessageInput(modelConfig.model);
197989
197990
  if (finalCommitMessage.length === 0) while (true) {
@@ -197991,19 +197992,17 @@ async function mainController(options = {}) {
197991
197992
  finalCommitMessage = (await runWithLoading("Generating commit message", () => generateCommitMessage(languageModel, config$4.instructions ?? null, diff))).text.trim();
197992
197993
  if (finalCommitMessage.length === 0) throw new Error("The selected model returned an empty commit message.");
197993
197994
  console.log(source_default.magenta.dim(finalCommitMessage));
197995
+ console.log("");
197994
197996
  if (forceLLMGenerate || config$4.autoAcceptCommitMessage) break;
197995
197997
  const action = await promptForGeneratedCommitAction();
197996
197998
  if (action === "accept" || action === "cancel") break;
197997
197999
  }
197998
198000
  if (finalCommitMessage.length === 0) throw new Error("Commit message cannot be empty.");
197999
198001
  console.log("");
198000
- if (!hasStaged) {
198001
- console.log(source_default.yellow.dim("✓ Staging all files.."));
198002
- await git.add(["-A"]);
198003
- }
198002
+ console.log(source_default.yellow.dim("✓ Committing changes"));
198003
+ if (!hasStaged) await git.add(["-A"]);
198004
198004
  console.log(files.join("\n"));
198005
198005
  console.log("");
198006
- console.log(source_default.yellow.dim("✓ Committing staged changes"));
198007
198006
  await liveGit.commit(finalCommitMessage);
198008
198007
  console.log("");
198009
198008
  if (!config$4.postCommand) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gityo",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "scripts": {