@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.
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.63.6",
3
- "source_commit": "5c72f5b01f85d06bd437e50a6d3515bbf9871230",
4
- "source_sha256": "f96b0407034852d7a2c255176a4dcce9297fe6aaec8311f4b25bb70ffbfa5fa8",
2
+ "release_version": "1.63.7",
3
+ "source_commit": "ad1b7a0a46c938f8dfb3f03f80e97849b879e4a2",
4
+ "source_sha256": "44fb5d94a9794df429bdd315b45b75306e4e25f17e382fdb1f09b40791af2411",
5
5
  "target": "darwin-arm64",
6
- "sha256": "f31b5ae401c2b404d0b321f2ed7864afbeadb45080069daf6fd5a4830b1c0546"
6
+ "sha256": "13b8ac4129fbea660ed56afad579f6634f93e5425caf8038f46c28c586c1f858"
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.63.6",
3
- "source_commit": "5c72f5b01f85d06bd437e50a6d3515bbf9871230",
4
- "source_sha256": "f96b0407034852d7a2c255176a4dcce9297fe6aaec8311f4b25bb70ffbfa5fa8",
2
+ "release_version": "1.63.7",
3
+ "source_commit": "ad1b7a0a46c938f8dfb3f03f80e97849b879e4a2",
4
+ "source_sha256": "44fb5d94a9794df429bdd315b45b75306e4e25f17e382fdb1f09b40791af2411",
5
5
  "target": "linux-x64",
6
- "sha256": "ca5a27989617f81c17b84ef2b160a845b7f65017aada19ec032853d826eaf713"
6
+ "sha256": "71de432f506d59123e5d46961b6e76c550236767786e1d5b8747ab2f11010d5d"
7
7
  }
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "release_version": "1.63.6",
4
- "source_commit": "5c72f5b01f85d06bd437e50a6d3515bbf9871230",
5
- "source_sha256": "f96b0407034852d7a2c255176a4dcce9297fe6aaec8311f4b25bb70ffbfa5fa8",
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": "f31b5ae401c2b404d0b321f2ed7864afbeadb45080069daf6fd5a4830b1c0546",
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": "ca5a27989617f81c17b84ef2b160a845b7f65017aada19ec032853d826eaf713",
18
+ "sha256": "71de432f506d59123e5d46961b6e76c550236767786e1d5b8747ab2f11010d5d",
19
19
  "mode": "0755"
20
20
  }
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbuddy/cli",
3
- "version": "1.63.6",
3
+ "version": "1.63.7",
4
4
  "description": "BotBuddy \u2014 Swarm coordination CLI for multi-agent workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
- const stateAge = Date.now() - (await stat(deliveryStatePath(home))).mtimeMs;
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));