@botbuddy/cli 1.75.1 → 1.75.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.75.2
4
+
5
+ - The bb-status band connects a new Claude Code session in a reused worktree whose cache belongs to a Claude session that has gone **and** whose BB session has expired (BOT-3252). Before, the band moved such a cache aside only while the old BB session was still live; for an expired one it bootstrapped with the stale cache in place, the bootstrap's `close_session` on the owner sign-in was refused with `agent_identity_required`, and the band showed "BB identity belongs to another session" forever. It now sets the cache aside to `.botbuddy/agent-state.superseded-<id>.json` in that case too (and for an expired holder with no transcript on this host), under the same state lock, and restores it if the bootstrap fails. A holder whose Claude session is active is still never taken over.
6
+
3
7
  ## 1.75.1
4
8
 
5
9
  - `bb update` (and `bb setup`, `bb status-band install`) now brings every copy of the bb-status band and the bb-session start-up hook up to date, not just the user-scope one (BOT-3216). A copy installed at local or project scope wins over user scope for its project, so stale ones kept old bands in Supply Guard worktrees: a checkout's local install was copied into every new worktree through its `settings.local.json`, and each copy stayed at the version current when that worktree was made. Now an enabled local copy behind the shipped version is uninstalled so the user-scope install applies (this also clears the checkout's `enabledPlugins` line, so new worktrees stop getting copies), a disabled one is updated and stays disabled, a project-scope one is updated in place, and a deleted worktree's entry is removed. If the user-scope install failed, nothing is removed, only updated. The install line ends with a count, e.g. `4 stale project copies removed (user scope now applies), 1 stale project copy updated.` A second run changes nothing.
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.75.1",
3
- "source_commit": "c9b26bd073fb410fe6f6287eb8fed4460a05dc2b",
4
- "source_sha256": "53efdcfde9d976b8b3ef630be679aedc998595399ac7b00a6c6559c334fd8bd1",
2
+ "release_version": "1.75.3",
3
+ "source_commit": "b5af47529a41af38cdcd79b62eedd3c31cbd09e9",
4
+ "source_sha256": "000bf4d0d2feaedf9549481a4d08d0f581c69d3852919e19042d8168c7f93985",
5
5
  "target": "darwin-arm64",
6
- "sha256": "77b42d25b1f0ff1841b0352aad50ef42b49c49eef40c41abd7749d99a419cdc3"
6
+ "sha256": "3e60dd08632c15f55a2c8f25f53c1dded730d773c2502e31ba66864f1d4b5266"
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.75.1",
3
- "source_commit": "c9b26bd073fb410fe6f6287eb8fed4460a05dc2b",
4
- "source_sha256": "53efdcfde9d976b8b3ef630be679aedc998595399ac7b00a6c6559c334fd8bd1",
2
+ "release_version": "1.75.3",
3
+ "source_commit": "b5af47529a41af38cdcd79b62eedd3c31cbd09e9",
4
+ "source_sha256": "000bf4d0d2feaedf9549481a4d08d0f581c69d3852919e19042d8168c7f93985",
5
5
  "target": "linux-x64",
6
- "sha256": "f621ec730416980c7dc41a580f17c278997a1b597050dcfb9cb4db01253fe574"
6
+ "sha256": "1cfebb40878a9af24539cf249549cdb02854b7878c3823294586244b3171410c"
7
7
  }
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "release_version": "1.75.1",
4
- "source_commit": "c9b26bd073fb410fe6f6287eb8fed4460a05dc2b",
5
- "source_sha256": "53efdcfde9d976b8b3ef630be679aedc998595399ac7b00a6c6559c334fd8bd1",
3
+ "release_version": "1.75.3",
4
+ "source_commit": "b5af47529a41af38cdcd79b62eedd3c31cbd09e9",
5
+ "source_sha256": "000bf4d0d2feaedf9549481a4d08d0f581c69d3852919e19042d8168c7f93985",
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": "77b42d25b1f0ff1841b0352aad50ef42b49c49eef40c41abd7749d99a419cdc3",
11
+ "sha256": "3e60dd08632c15f55a2c8f25f53c1dded730d773c2502e31ba66864f1d4b5266",
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": "f621ec730416980c7dc41a580f17c278997a1b597050dcfb9cb4db01253fe574",
18
+ "sha256": "1cfebb40878a9af24539cf249549cdb02854b7878c3823294586244b3171410c",
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.75.1",
3
+ "version": "1.75.3",
4
4
  "description": "BotBuddy — Swarm coordination CLI for multi-agent workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -631,12 +631,15 @@ export async function claudeHolderActive(holder, worktree, { env = process.env,
631
631
  if (at == null) return null;
632
632
  return now() - at < HOLDER_IDLE_MS;
633
633
  }
634
- // Returns false (never bind), true (bootstrap as is), or { aside } — the gone
635
- // holder's cache, still live in BB, to move out of the way first. The bootstrap
636
- // would otherwise try to retire that BB session, which the server refuses for a
637
- // live one (and which would end the waits other sessions still run on its
638
- // token), and discard the new session. Set aside, it expires on its own once
639
- // nothing renews it; the file is kept for recovery.
634
+ // Returns false (never bind), true (bootstrap as is), or { aside } — another
635
+ // holder's cache to move out of the way first. The bootstrap would otherwise
636
+ // try to retire that BB session and discard the new one when it cannot: the
637
+ // server refuses the retirement for a live session (which would end the waits
638
+ // other sessions still run on its token), and refuses it for an EXPIRED one too
639
+ // whenever the durable credential is an owner bearer, since close_session needs
640
+ // an agent identity (BOT-3252: the band then stayed on "belongs to another
641
+ // session" forever in a reused worktree). Set aside, a live session expires on
642
+ // its own once nothing renews it; the file is kept for recovery.
640
643
  async function bindable(cwd, harnessSessionId, now, holderActive) {
641
644
  let state;
642
645
  let root;
@@ -651,7 +654,7 @@ async function bindable(cwd, harnessSessionId, now, holderActive) {
651
654
  const expired = !(Date.parse(state.expires_at) > now());
652
655
  const active = await holderActive(holder, root).catch(() => null);
653
656
  if (active === true) return false;
654
- if (active === false && !expired && UUID_ONLY.test(holder)) {
657
+ if ((active === false || expired) && UUID_ONLY.test(holder)) {
655
658
  return {
656
659
  cache: join(root, ".botbuddy/agent-state.json"),
657
660
  aside: join(root, `.botbuddy/agent-state.superseded-${holder.slice(0, 8)}.json`),