easegit-cli 1.0.3 → 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.
@@ -13,8 +13,11 @@ function createCheckpoint(operation) {
13
13
  (0, plumbing_1.createCheckpointRef)(treeSha, operation);
14
14
  }
15
15
  catch (error) {
16
- // Silently fail - checkpoints are best-effort
17
- // We never want to block the user's Git operation
16
+ // Log errors to help debug, but don't block the operation
17
+ // Checkpoints are best-effort and should never fail a git operation
18
+ if (process.env.EASEGIT_DEBUG) {
19
+ console.error('[EaseGit Debug] Checkpoint creation failed:', error.message);
20
+ }
18
21
  }
19
22
  }
20
23
  // CommonJS export for hook scripts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easegit-cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Automatic checkpoints before Git can hurt you",
5
5
  "main": "dist/index.js",
6
6
  "bin": {