@misterhuydo/sentinel 1.4.75 → 1.4.76

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.4.75",
3
+ "version": "1.4.76",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -12,6 +12,7 @@ import asyncio
12
12
  import json
13
13
  import logging
14
14
  import os
15
+ import re
15
16
  import shutil
16
17
  import signal
17
18
  import subprocess
@@ -643,7 +644,7 @@ def _config_repo_git_env(project_dir: Path | None = None) -> dict:
643
644
  )
644
645
  remote = r.stdout.strip()
645
646
  # Extract slug: git@github.com:org/repo.git or https://github.com/org/repo.git
646
- slug = remote.rstrip(".git").rsplit("/", 1)[-1].rsplit(":", 1)[-1].rsplit("/", 1)[-1]
647
+ slug = re.sub(r"\.git$", "", remote).rsplit("/", 1)[-1].rsplit(":", 1)[-1].rsplit("/", 1)[-1].lower()
647
648
  key = Path.home() / ".ssh" / f"{slug}.key"
648
649
  if key.exists():
649
650
  env["GIT_SSH_COMMAND"] = f"ssh -i {key} -o StrictHostKeyChecking=no -o BatchMode=yes"