@pmelab/gtd 1.5.3 → 1.5.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.
@@ -367877,7 +367877,16 @@ var makeGitImpl = (executor, root2) => {
367877
367877
  }),
367878
367878
  commitAllWithPrefix: (prefix) => Effect_exports.gen(function* () {
367879
367879
  yield* exec2("git", "add", "-A");
367880
- yield* exec2("git", "commit", "--allow-empty", "-m", prefix);
367880
+ yield* exec2("git", "commit", "--allow-empty", "-m", prefix).pipe(
367881
+ Effect_exports.catchAll(
367882
+ (error) => (
367883
+ // Hooks like lint-staged block empty commits even with --allow-empty.
367884
+ // gtd's workflow commits have nothing for code-quality hooks to validate,
367885
+ // so retry without the pre-commit hook when that guard fires.
367886
+ error.message.includes("empty git commit") ? exec2("git", "commit", "--allow-empty", "--no-verify", "-m", prefix) : Effect_exports.fail(error)
367887
+ )
367888
+ )
367889
+ );
367881
367890
  }).pipe(Effect_exports.asVoid),
367882
367891
  softResetTo: (ref) => exec2("git", "reset", "--soft", ref).pipe(Effect_exports.asVoid)
367883
367892
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmelab/gtd",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "private": false,
5
5
  "description": "Git-aware CLI that emits the next prompt for an autonomous coding agent based on the current repository state",
6
6
  "bin": {