@misterhuydo/sentinel 1.0.94 → 1.0.95

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.
package/.cairn/.hint-lock CHANGED
@@ -1 +1 @@
1
- 2026-03-23T06:43:35.264Z
1
+ 2026-03-23T07:27:36.554Z
@@ -1,6 +1,6 @@
1
1
  {
2
- "message": "Auto-checkpoint at 2026-03-23T06:44:32.434Z",
3
- "checkpoint_at": "2026-03-23T06:44:32.435Z",
2
+ "message": "Auto-checkpoint at 2026-03-23T07:27:43.568Z",
3
+ "checkpoint_at": "2026-03-23T07:27:43.570Z",
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.94",
3
+ "version": "1.0.95",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -19,12 +19,20 @@ logger = logging.getLogger(__name__)
19
19
  CAIRN_BIN = "cairn"
20
20
 
21
21
 
22
- def ensure_installed() -> bool:
22
+ def get_version() -> str:
23
+ """Return the installed cairn version string, or '' if not found."""
23
24
  try:
24
- subprocess.run([CAIRN_BIN, "--version"], capture_output=True, text=True, timeout=10)
25
- return True
25
+ r = subprocess.run([CAIRN_BIN, "--version"], capture_output=True, text=True, timeout=10)
26
+ return r.stdout.strip() or r.stderr.strip()
26
27
  except FileNotFoundError:
27
- pass
28
+ return ""
29
+
30
+
31
+ def ensure_installed() -> bool:
32
+ version = get_version()
33
+ if version:
34
+ logger.info("cairn-mcp %s", version)
35
+ return True
28
36
  logger.warning("cairn-mcp not found. Run: npm install -g @misterhuydo/cairn-mcp")
29
37
  return False
30
38