@misterhuydo/sentinel 1.0.37 → 1.0.38

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-21T21:43:02.298Z",
3
- "checkpoint_at": "2026-03-21T21:43:02.299Z",
2
+ "message": "Auto-checkpoint at 2026-03-21T21:47:03.629Z",
3
+ "checkpoint_at": "2026-03-21T21:47:03.630Z",
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.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -108,9 +108,18 @@ fetch_from_properties() {
108
108
  return 0
109
109
  fi
110
110
 
111
- # Resolve relative KEY path relative to the props file's directory
111
+ # Resolve relative KEY: check config dir first, then ~/.ssh/
112
112
  if [[ "$KEY" != /* ]]; then
113
- KEY="$(dirname "$(realpath "$props_file")")/$KEY"
113
+ local config_key
114
+ config_key="$(dirname "$(realpath "$props_file")")/$KEY"
115
+ if [[ -f "$config_key" ]]; then
116
+ KEY="$config_key"
117
+ elif [[ -f "$HOME/.ssh/$KEY" ]]; then
118
+ KEY="$HOME/.ssh/$KEY"
119
+ else
120
+ echo "ERROR: KEY '$KEY' not found in config dir or ~/.ssh/" >&2
121
+ return 1
122
+ fi
114
123
  fi
115
124
 
116
125
  local SERVICE_NAME