@misterhuydo/sentinel 1.4.42 → 1.4.43

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "message": "Auto-checkpoint at 2026-03-25T08:23:06.186Z",
3
- "checkpoint_at": "2026-03-25T08:23:06.187Z",
2
+ "message": "Auto-checkpoint at 2026-03-25T08:25:36.640Z",
3
+ "checkpoint_at": "2026-03-25T08:25:36.642Z",
4
4
  "active_files": [],
5
5
  "notes": [],
6
6
  "mtime_snapshot": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.4.42",
3
+ "version": "1.4.43",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -74,6 +74,9 @@ def apply_and_commit(
74
74
  if _check_protected_paths(patch_path):
75
75
  return "failed", ""
76
76
 
77
+ # Discard any leftover changes from a previous failed fix attempt
78
+ _git(["checkout", "."], cwd=local_path, env=env)
79
+
77
80
  r = _git(["pull", "--rebase", "origin", repo.branch], cwd=local_path, env=env)
78
81
  if r.returncode != 0:
79
82
  logger.error("git pull failed for %s:\n%s", repo.repo_name, r.stderr)