@botbuddy/cli 1.75.1 → 1.75.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/CHANGELOG.md +4 -0
- 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/status-band-read.mjs +10 -7
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.
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.75.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.75.2",
|
|
3
|
+
"source_commit": "ccd86f542412dac79337afbcdcb3e80fc323366b",
|
|
4
|
+
"source_sha256": "2695260c9fea9c4b011c3da9148c1da79b775a048490ca66f2e4497fc6222ad0",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "b54bce075fd7a877a6547ffd7971d62afb73cfea09509c5529c09baed97de2b4"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.75.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.75.2",
|
|
3
|
+
"source_commit": "ccd86f542412dac79337afbcdcb3e80fc323366b",
|
|
4
|
+
"source_sha256": "2695260c9fea9c4b011c3da9148c1da79b775a048490ca66f2e4497fc6222ad0",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "092310979a23f3c2f072975190af2899c6fe4cca213ffe3a1853092f007639cd"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.75.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.75.2",
|
|
4
|
+
"source_commit": "ccd86f542412dac79337afbcdcb3e80fc323366b",
|
|
5
|
+
"source_sha256": "2695260c9fea9c4b011c3da9148c1da79b775a048490ca66f2e4497fc6222ad0",
|
|
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": "b54bce075fd7a877a6547ffd7971d62afb73cfea09509c5529c09baed97de2b4",
|
|
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": "092310979a23f3c2f072975190af2899c6fe4cca213ffe3a1853092f007639cd",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/status-band-read.mjs
CHANGED
|
@@ -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 } —
|
|
635
|
-
// holder's cache
|
|
636
|
-
//
|
|
637
|
-
// live
|
|
638
|
-
//
|
|
639
|
-
//
|
|
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
|
|
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`),
|