@rallycry/conveyor-skills 1.0.25 → 1.0.26
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/bin/checkout-claim.mjs +6 -6
- package/package.json +1 -1
package/bin/checkout-claim.mjs
CHANGED
|
@@ -27,14 +27,14 @@ import process from "node:process";
|
|
|
27
27
|
|
|
28
28
|
export const CLAIM_FILE = "conveyor-checkout-claim.json";
|
|
29
29
|
export const MUTEX_DIR = "conveyor-checkout-claim.mutex";
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
const SCHEMA = 1;
|
|
31
|
+
const DEFAULT_TTL_SECONDS = 7200;
|
|
32
|
+
const DEFAULT_WAIT_TIMEOUT_SECONDS = 1740;
|
|
33
|
+
const DEFAULT_WAIT_INTERVAL_SECONDS = 5;
|
|
34
34
|
const MUTEX_RETRY_MS = 2000;
|
|
35
35
|
const MUTEX_STALE_MS = 30_000;
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
const EXIT = { ok: 0, error: 1, held: 3, branchMoved: 4, dirty: 5 };
|
|
38
38
|
|
|
39
39
|
const USAGE = `Usage: conveyor-skills checkout <command> [options]
|
|
40
40
|
|
|
@@ -73,7 +73,7 @@ export function resolveIdentity({ session, card, env = process.env } = {}) {
|
|
|
73
73
|
return { session: resolved, pid: Number.isInteger(pid) && pid > 0 ? pid : null };
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
function defaultPidAlive(pid) {
|
|
77
77
|
try {
|
|
78
78
|
process.kill(pid, 0);
|
|
79
79
|
return true;
|
package/package.json
CHANGED