@rely-ai/caliber 1.47.1 → 1.47.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 +15 -11
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -4718,7 +4718,7 @@ printf '{"decision":"block","reason":"Caliber agent config sync is not set up on
|
|
|
4718
4718
|
`;
|
|
4719
4719
|
var stopHook = createScriptHook({
|
|
4720
4720
|
eventName: "Stop",
|
|
4721
|
-
scriptPath: path10.join(".claude", "hooks", "caliber-check-sync.sh"),
|
|
4721
|
+
scriptPath: path10.posix.join(".claude", "hooks", "caliber-check-sync.sh"),
|
|
4722
4722
|
scriptContent: STOP_HOOK_SCRIPT_CONTENT,
|
|
4723
4723
|
description: "Caliber: offer setup if not configured"
|
|
4724
4724
|
});
|
|
@@ -4741,7 +4741,7 @@ fi
|
|
|
4741
4741
|
}
|
|
4742
4742
|
var sessionStartHook = createScriptHook({
|
|
4743
4743
|
eventName: "SessionStart",
|
|
4744
|
-
scriptPath: path10.join(".claude", "hooks", "caliber-session-freshness.sh"),
|
|
4744
|
+
scriptPath: path10.posix.join(".claude", "hooks", "caliber-session-freshness.sh"),
|
|
4745
4745
|
scriptContent: getFreshnessScript,
|
|
4746
4746
|
description: "Caliber: check config freshness on session start"
|
|
4747
4747
|
});
|
|
@@ -4750,7 +4750,7 @@ var installSessionStartHook = sessionStartHook.install;
|
|
|
4750
4750
|
var removeSessionStartHook = sessionStartHook.remove;
|
|
4751
4751
|
var notificationHook = createScriptHook({
|
|
4752
4752
|
eventName: "Notification",
|
|
4753
|
-
scriptPath: path10.join(".claude", "hooks", "caliber-freshness-notify.sh"),
|
|
4753
|
+
scriptPath: path10.posix.join(".claude", "hooks", "caliber-freshness-notify.sh"),
|
|
4754
4754
|
scriptContent: getFreshnessScript,
|
|
4755
4755
|
description: "Caliber: warn when agent configs are stale"
|
|
4756
4756
|
});
|
|
@@ -8555,13 +8555,15 @@ function trackEvent(name, properties) {
|
|
|
8555
8555
|
properties: { ...superProperties, ...properties }
|
|
8556
8556
|
});
|
|
8557
8557
|
}
|
|
8558
|
+
var flushPromise = null;
|
|
8558
8559
|
async function flushTelemetry() {
|
|
8559
8560
|
if (!client) return;
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
} catch {
|
|
8563
|
-
}
|
|
8561
|
+
if (flushPromise) return flushPromise;
|
|
8562
|
+
const c = client;
|
|
8564
8563
|
client = null;
|
|
8564
|
+
flushPromise = c.shutdown().catch(() => {
|
|
8565
|
+
});
|
|
8566
|
+
return flushPromise;
|
|
8565
8567
|
}
|
|
8566
8568
|
|
|
8567
8569
|
// src/telemetry/events.ts
|
|
@@ -15383,16 +15385,17 @@ function restoreTerminal() {
|
|
|
15383
15385
|
|
|
15384
15386
|
// src/bin.ts
|
|
15385
15387
|
var signalCleanupDone = false;
|
|
15386
|
-
function signalCleanup(code) {
|
|
15388
|
+
async function signalCleanup(code) {
|
|
15387
15389
|
if (signalCleanupDone) return;
|
|
15388
15390
|
signalCleanupDone = true;
|
|
15389
15391
|
restoreTerminal();
|
|
15390
15392
|
releaseLock();
|
|
15393
|
+
await flushTelemetry();
|
|
15391
15394
|
process.exit(code);
|
|
15392
15395
|
}
|
|
15393
15396
|
process.on("exit", restoreTerminal);
|
|
15394
|
-
process.on("SIGINT", () => signalCleanup(130));
|
|
15395
|
-
process.on("SIGTERM", () => signalCleanup(143));
|
|
15397
|
+
process.on("SIGINT", () => void signalCleanup(130));
|
|
15398
|
+
process.on("SIGTERM", () => void signalCleanup(143));
|
|
15396
15399
|
acquireLock();
|
|
15397
15400
|
if (process.env.CALIBER_LOCAL) {
|
|
15398
15401
|
process.env.CALIBER_SKIP_UPDATE_CHECK = "1";
|
|
@@ -15412,6 +15415,7 @@ program.parseAsync().catch((err) => {
|
|
|
15412
15415
|
}).finally(async () => {
|
|
15413
15416
|
releaseLock();
|
|
15414
15417
|
await flushTelemetry();
|
|
15415
|
-
process.exit(Number(process.exitCode ?? 0));
|
|
15418
|
+
const safetyExit = setTimeout(() => process.exit(Number(process.exitCode ?? 0)), 200);
|
|
15419
|
+
safetyExit.unref();
|
|
15416
15420
|
});
|
|
15417
15421
|
//# sourceMappingURL=bin.js.map
|
package/package.json
CHANGED