@rely-ai/caliber 1.41.0 → 1.41.2
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/dist/bin.js +5 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1118,6 +1118,7 @@ function isCaliberRunning() {
|
|
|
1118
1118
|
if (!fs40.existsSync(lockFile)) return false;
|
|
1119
1119
|
const raw = fs40.readFileSync(lockFile, "utf-8").trim();
|
|
1120
1120
|
const { pid, ts } = JSON.parse(raw);
|
|
1121
|
+
if (pid === process.pid) return false;
|
|
1121
1122
|
if (Date.now() - ts > STALE_MS) return false;
|
|
1122
1123
|
try {
|
|
1123
1124
|
process.kill(pid, 0);
|
|
@@ -2720,7 +2721,8 @@ function isCursorAgentAvailable() {
|
|
|
2720
2721
|
function isCursorLoggedIn() {
|
|
2721
2722
|
try {
|
|
2722
2723
|
const result = execSync5(`${AGENT_BIN} status`, {
|
|
2723
|
-
|
|
2724
|
+
input: "",
|
|
2725
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
2724
2726
|
timeout: 5e3
|
|
2725
2727
|
});
|
|
2726
2728
|
return !result.toString().includes("not logged in");
|
|
@@ -2891,7 +2893,8 @@ function isClaudeCliLoggedIn() {
|
|
|
2891
2893
|
if (cachedLoggedIn !== null) return cachedLoggedIn;
|
|
2892
2894
|
try {
|
|
2893
2895
|
const result = execSync6(`${CLAUDE_CLI_BIN} auth status`, {
|
|
2894
|
-
|
|
2896
|
+
input: "",
|
|
2897
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
2895
2898
|
timeout: 5e3
|
|
2896
2899
|
});
|
|
2897
2900
|
const output = result.toString().trim();
|
package/package.json
CHANGED