This commit is contained in:
levxn
2026-03-21 02:35:09 +05:30
parent d568912ba2
commit a89296d397
+5 -3
View File
@@ -319,9 +319,11 @@ def _read_antigravity_secret_from_npm() -> str | None:
candidates: list[_Path] = []
try:
npm_root = subprocess.check_output(
["npm", "root", "-g"], stderr=subprocess.DEVNULL, timeout=5
).decode().strip()
npm_root = (
subprocess.check_output(["npm", "root", "-g"], stderr=subprocess.DEVNULL, timeout=5)
.decode()
.strip()
)
candidates.append(_Path(npm_root) / "opencode-antigravity-auth/dist/src/constants.js")
except Exception:
pass