@misterhuydo/sentinel 1.4.34 → 1.4.36

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-25T06:03:05.073Z
1
+ 2026-03-25T06:47:22.703Z
@@ -1,6 +1,6 @@
1
1
  {
2
- "message": "Auto-checkpoint at 2026-03-25T05:23:02.308Z",
3
- "checkpoint_at": "2026-03-25T05:23:02.309Z",
2
+ "message": "Auto-checkpoint at 2026-03-25T07:07:44.746Z",
3
+ "checkpoint_at": "2026-03-25T07:07:44.747Z",
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.34",
3
+ "version": "1.4.36",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -141,9 +141,12 @@ def _claude_cmd(bin_path: str, prompt: str) -> list[str]:
141
141
  skip = _os.getuid() != 0
142
142
  except AttributeError:
143
143
  skip = True # Windows — always pass flag
144
+ # --bare: forces ANTHROPIC_API_KEY-only auth, skips keychain/OAuth/hooks.
145
+ # Required on headless servers (EC2) where Claude Code 2.x silently returns
146
+ # empty output when keychain auth fails.
144
147
  if skip:
145
- return [bin_path, "--dangerously-skip-permissions", "--print", prompt]
146
- return [bin_path, "--print", prompt]
148
+ return [bin_path, "--bare", "--dangerously-skip-permissions", "--print", prompt]
149
+ return [bin_path, "--bare", "--print", prompt]
147
150
 
148
151
 
149
152
  def _run_claude_attempt(
@@ -1164,10 +1164,10 @@ async def _run_tool(name: str, inputs: dict, cfg_loader, store, slack_client=Non
1164
1164
  submitter_name = store.get_user_name(user_id) if user_id else ""
1165
1165
  submitter_line = f"SUBMITTED_BY: {submitter_name} ({user_id})" if user_id else ""
1166
1166
  lines = []
1167
- if submitter_line:
1168
- lines.append(submitter_line)
1169
1167
  if target_repo:
1170
1168
  lines.append(f"TARGET_REPO: {target_repo}")
1169
+ if submitter_line:
1170
+ lines.append(submitter_line)
1171
1171
  if support_url:
1172
1172
  lines.append(f"SUPPORT_URL: {support_url}")
1173
1173
  lines.append(f"SUBMITTED_AT: {datetime.now(timezone.utc).isoformat()}")