@botbuddy/cli 1.63.6 → 1.63.7
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/daemon/bin/darwin-arm64/botbuddy-daemon +0 -0
- package/daemon/bin/linux-x64/botbuddy-daemon +0 -0
- package/daemon-release/darwin-arm64.json +4 -4
- package/daemon-release/linux-x64.json +4 -4
- package/daemon-release/manifest.json +5 -5
- package/package.json +1 -1
- package/src/run-delivery.mjs +3 -2
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.63.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.63.7",
|
|
3
|
+
"source_commit": "ad1b7a0a46c938f8dfb3f03f80e97849b879e4a2",
|
|
4
|
+
"source_sha256": "44fb5d94a9794df429bdd315b45b75306e4e25f17e382fdb1f09b40791af2411",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "13b8ac4129fbea660ed56afad579f6634f93e5425caf8038f46c28c586c1f858"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.63.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.63.7",
|
|
3
|
+
"source_commit": "ad1b7a0a46c938f8dfb3f03f80e97849b879e4a2",
|
|
4
|
+
"source_sha256": "44fb5d94a9794df429bdd315b45b75306e4e25f17e382fdb1f09b40791af2411",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "71de432f506d59123e5d46961b6e76c550236767786e1d5b8747ab2f11010d5d"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.63.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.63.7",
|
|
4
|
+
"source_commit": "ad1b7a0a46c938f8dfb3f03f80e97849b879e4a2",
|
|
5
|
+
"source_sha256": "44fb5d94a9794df429bdd315b45b75306e4e25f17e382fdb1f09b40791af2411",
|
|
6
6
|
"targets": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"goos": "darwin",
|
|
9
9
|
"goarch": "arm64",
|
|
10
10
|
"binary": "daemon/bin/darwin-arm64/botbuddy-daemon",
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "13b8ac4129fbea660ed56afad579f6634f93e5425caf8038f46c28c586c1f858",
|
|
12
12
|
"mode": "0755"
|
|
13
13
|
},
|
|
14
14
|
"linux-x64": {
|
|
15
15
|
"goos": "linux",
|
|
16
16
|
"goarch": "amd64",
|
|
17
17
|
"binary": "daemon/bin/linux-x64/botbuddy-daemon",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "71de432f506d59123e5d46961b6e76c550236767786e1d5b8747ab2f11010d5d",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/run-delivery.mjs
CHANGED
|
@@ -467,7 +467,7 @@ export async function runDelivery({
|
|
|
467
467
|
* small reads. Never throws into the caller's command.
|
|
468
468
|
*/
|
|
469
469
|
export async function ensureRunDelivery({
|
|
470
|
-
home = homedir(), env = process.env, spawnImpl = spawn, isAlive = pidAlive, force = false, cooldownMs = DELIVERY_RESCAN_COOLDOWN_MS,
|
|
470
|
+
home = homedir(), env = process.env, spawnImpl = spawn, isAlive = pidAlive, force = false, cooldownMs = DELIVERY_RESCAN_COOLDOWN_MS, now = Date.now, stateStat = stat,
|
|
471
471
|
} = {}) {
|
|
472
472
|
try {
|
|
473
473
|
if (env.BOTBUDDY_RUN_DELIVERY === "off") return { started: false, reason: "disabled" };
|
|
@@ -480,7 +480,8 @@ export async function ensureRunDelivery({
|
|
|
480
480
|
// starts us itself (force) when it parks, so otherwise scan at most once
|
|
481
481
|
// per cooldown. Both times are this machine's filesystem clock.
|
|
482
482
|
if (!force && state) {
|
|
483
|
-
|
|
483
|
+
// Date.now() has millisecond precision; APFS mtime may carry fractions.
|
|
484
|
+
const stateAge = now() - Math.floor((await stateStat(deliveryStatePath(home))).mtimeMs);
|
|
484
485
|
if (stateAge >= 0 && stateAge < cooldownMs) return { started: false, reason: "cooldown" };
|
|
485
486
|
}
|
|
486
487
|
const holder = await readJson(deliveryLockPath(home));
|