@rely-ai/caliber 1.32.0 → 1.33.1
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 +23 -0
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -12517,6 +12517,29 @@ Restarting: caliber ${args.join(" ")}
|
|
|
12517
12517
|
|
|
12518
12518
|
// src/bin.ts
|
|
12519
12519
|
init_lock();
|
|
12520
|
+
|
|
12521
|
+
// src/lib/terminal.ts
|
|
12522
|
+
function restoreTerminal() {
|
|
12523
|
+
try {
|
|
12524
|
+
if (process.stdin.isTTY && process.stdin.isRaw) {
|
|
12525
|
+
process.stdin.setRawMode(false);
|
|
12526
|
+
}
|
|
12527
|
+
} catch {
|
|
12528
|
+
}
|
|
12529
|
+
}
|
|
12530
|
+
|
|
12531
|
+
// src/bin.ts
|
|
12532
|
+
var signalCleanupDone = false;
|
|
12533
|
+
function signalCleanup(code) {
|
|
12534
|
+
if (signalCleanupDone) return;
|
|
12535
|
+
signalCleanupDone = true;
|
|
12536
|
+
restoreTerminal();
|
|
12537
|
+
releaseLock();
|
|
12538
|
+
process.exit(code);
|
|
12539
|
+
}
|
|
12540
|
+
process.on("exit", restoreTerminal);
|
|
12541
|
+
process.on("SIGINT", () => signalCleanup(130));
|
|
12542
|
+
process.on("SIGTERM", () => signalCleanup(143));
|
|
12520
12543
|
acquireLock();
|
|
12521
12544
|
if (process.env.CALIBER_LOCAL) {
|
|
12522
12545
|
process.env.CALIBER_SKIP_UPDATE_CHECK = "1";
|
package/package.json
CHANGED