@misterhuydo/sentinel 1.0.36 → 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:41:56.832Z",
3
- "checkpoint_at": "2026-03-21T21:41:56.833Z",
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.36",
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,6 +108,20 @@ fetch_from_properties() {
108
108
  return 0
109
109
  fi
110
110
 
111
+ # Resolve relative KEY: check config dir first, then ~/.ssh/
112
+ if [[ "$KEY" != /* ]]; then
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
123
+ fi
124
+
111
125
  local SERVICE_NAME
112
126
  SERVICE_NAME="$(basename "$props_file" .properties)"
113
127
  REMOTE_SERVICE_USER="${REMOTE_SERVICE_USER:-$SERVICE_NAME}"