@misterhuydo/sentinel 1.0.35 → 1.0.37

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:19:42.497Z",
3
- "checkpoint_at": "2026-03-21T21:19:42.498Z",
2
+ "message": "Auto-checkpoint at 2026-03-21T21:43:02.298Z",
3
+ "checkpoint_at": "2026-03-21T21:43:02.299Z",
4
4
  "active_files": [],
5
5
  "notes": [],
6
6
  "mtime_snapshot": {}
package/lib/upgrade.js CHANGED
@@ -44,6 +44,15 @@ module.exports = async function upgrade() {
44
44
  // Hot-deploy: copy Python source to code dir
45
45
  info('Deploying Python source...');
46
46
  fs.copySync(src, codeDir, { overwrite: true });
47
+
48
+ // Restore executable bit on shell scripts (npm strips it)
49
+ const scriptsDir = path.join(codeDir, 'scripts');
50
+ if (fs.existsSync(scriptsDir)) {
51
+ const shFiles = fs.readdirSync(scriptsDir)
52
+ .filter(f => f.endsWith('.sh'))
53
+ .map(f => path.join(scriptsDir, f));
54
+ if (shFiles.length) spawnSync('chmod', ['+x', ...shFiles], { stdio: 'inherit' });
55
+ }
47
56
  ok('Python source updated');
48
57
 
49
58
  // Print new version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -108,6 +108,11 @@ fetch_from_properties() {
108
108
  return 0
109
109
  fi
110
110
 
111
+ # Resolve relative KEY path relative to the props file's directory
112
+ if [[ "$KEY" != /* ]]; then
113
+ KEY="$(dirname "$(realpath "$props_file")")/$KEY"
114
+ fi
115
+
111
116
  local SERVICE_NAME
112
117
  SERVICE_NAME="$(basename "$props_file" .properties)"
113
118
  REMOTE_SERVICE_USER="${REMOTE_SERVICE_USER:-$SERVICE_NAME}"
@@ -33,6 +33,42 @@ Your job:
33
33
  - Control Sentinel (pause/resume) when asked
34
34
  - Give honest, concise answers — you know this system inside out
35
35
 
36
+ What you can do (tools available):
37
+
38
+ 1. get_status — Show recent errors detected, fixes applied/pending, open PRs.
39
+ e.g. "what happened today?", "any issues?", "show open PRs"
40
+
41
+ 2. create_issue — Queue a manual fix request for Sentinel to investigate next poll.
42
+ e.g. "look into this bug: ...", "investigate order creation failures"
43
+
44
+ 3. pause_sentinel — Create SENTINEL_PAUSE file to halt all auto-fix activity.
45
+ e.g. "pause sentinel", "stop auto-fixing"
46
+
47
+ 4. resume_sentinel — Remove SENTINEL_PAUSE file to resume normal operation.
48
+ e.g. "resume sentinel", "unpause"
49
+
50
+ 5. list_projects — List all configured repos and log sources in this Sentinel instance.
51
+ e.g. "what projects are you watching?", "list all repos"
52
+
53
+ 6. search_logs — Search fetched log files for a pattern or keyword.
54
+ e.g. "search logs for X", "find entries for user Y", "grep logs for Z"
55
+
56
+ 7. trigger_poll — Trigger an immediate poll cycle without waiting for the schedule.
57
+ e.g. "check now", "poll immediately", "don't wait, run now"
58
+
59
+ 8. get_repo_status — Show the current git branch, last commit, and recent fix branches
60
+ for a specific repository.
61
+ e.g. "status of repo X", "what branch is cairn on?"
62
+
63
+ 9. list_recent_commits — List the most recent commits in a repo (including Sentinel's auto-fixes).
64
+ e.g. "show me recent commits in elprint-sales", "what did sentinel commit?"
65
+
66
+ 10. get_fix_detail — Get full details of a specific fix: error, patch path, PR URL, status.
67
+ e.g. "show fix abc123", "details on that fix"
68
+
69
+ 11. list_errors — List recent errors from the state store, optionally filtered by repo or source.
70
+ e.g. "show all errors today", "what errors hit elprint this week?"
71
+
36
72
  Tone: direct, professional, like a senior engineer who owns the system.
37
73
  Don't pad responses. Don't say "Great question!" or "Certainly!".
38
74
  If you don't know something, use a tool to find out before saying you don't know.