@botbuddy/cli 1.76.0 → 1.77.0
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/claude-plugin/.claude-plugin/marketplace.json +1 -1
- package/claude-plugin/bb-status/.claude-plugin/plugin.json +1 -1
- package/claude-plugin/bb-status/hooks/register.js +32 -3
- 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 +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.77.0
|
|
4
|
+
|
|
5
|
+
- The bb-status band's project row shows BB's Must + unsure progress (BOT-3259). The badge is the percent alone, for example `88%`, followed by `22 done · 3 left · 3 unsure`: done and left count Must tickets and tickets with no Must/Could milestone, and unsure counts the open ones with no milestone. Could, canceled and duplicate tickets no longer count. Each number links to the project drawer filtered to those tickets (`/kanban?card=project:<id>&progress=done|left|unsure`). The figure comes from BB (`v_project_progress`, through `get_session_status` and `get_epic_health`), so it matches the drawer exactly; against an older MCP the row keeps its previous `done/total`. bb-status plugin 1.5.0.
|
|
6
|
+
|
|
3
7
|
## 1.76.0
|
|
4
8
|
|
|
5
9
|
- A stored credential is bound to the BotBuddy server that issued it and is never sent to another (BOT-3257). Before, with `BOTBUDDY_SERVER_URL` pointing at staging, every owner-authenticated command (`bb mcp setup` included) sent the machine's production client key to staging, and a staging `bb login` overwrote the production one. Production keeps `~/.botbuddy/config.json` and the Keychain service `BOTBUDDY_CLIENT_KEY`; any other server gets `~/.botbuddy/servers/<origin>/config.json` and `BOTBUDDY_CLIENT_KEY@<origin>`. A login written before this release has no `server_origin` and counts as production-only, so it keeps working. With no login for the target server while another server's exists, a command stops before any request with `credential_origin_mismatch`, naming both origins and the `bb login` to run. The worktree session cache records `server_origin` and is never presented to another server; the default `BOTBUDDY_MCP_KEY` binding is production-only; `bb mcp setup` against another server refuses the default variable (`mcp_env_required_for_server`). `bb logout` clears only the current server's slot. Explicit credentials (a session-token flag or export, or a binding naming another variable) are unchanged.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"name": "bb-status",
|
|
12
12
|
"source": "./bb-status",
|
|
13
13
|
"description": "BB session status above the prompt: tickets, PRs with review counts, epic, staging, context use and active waits, for BotBuddy and Supply Guard sessions",
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.5.0"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "bb-session",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bb-status",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "BB session status above the prompt: tickets, PRs with review counts, epic, staging, context use and active waits, live only while the session is on screen.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "BotBuddy"
|
|
@@ -131,6 +131,19 @@ function validCounts(c) {
|
|
|
131
131
|
COUNT_KEYS.reduce((n, k) => n + c[k], 0) === c.total
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
+
// BOT-3259: BB's Must + unsure figure; unsure is a subset of remaining.
|
|
135
|
+
const PROGRESS_KINDS = [
|
|
136
|
+
["complete", "done", "done"],
|
|
137
|
+
["remaining", "left", "left"],
|
|
138
|
+
["unsure", "unsure", "unsure"],
|
|
139
|
+
];
|
|
140
|
+
function validProgress(p) {
|
|
141
|
+
return (
|
|
142
|
+
!!p &&
|
|
143
|
+
PROGRESS_KINDS.every(([k]) => Number.isSafeInteger(p[k]) && p[k] >= 0 && p[k] <= 100000) &&
|
|
144
|
+
p.unsure <= p.remaining
|
|
145
|
+
);
|
|
146
|
+
}
|
|
134
147
|
function countsText(c) {
|
|
135
148
|
return [c.done + " done", c.in_progress + " in progress", c.blocked + " blocked", c.todo + " todo"].join(" · ");
|
|
136
149
|
}
|
|
@@ -196,7 +209,8 @@ function validSnapshot(value, harness, now) {
|
|
|
196
209
|
(value.epic.total === undefined ||
|
|
197
210
|
(Number.isSafeInteger(value.epic.total) && Number.isSafeInteger(value.epic.done) && value.epic.done >= 0 && value.epic.done <= value.epic.total)) &&
|
|
198
211
|
(value.epic.role === undefined || value.epic.role === "coordinator") &&
|
|
199
|
-
(value.epic.counts === undefined || validCounts(value.epic.counts))
|
|
212
|
+
(value.epic.counts === undefined || validCounts(value.epic.counts)) &&
|
|
213
|
+
(value.epic.progress === undefined || validProgress(value.epic.progress))
|
|
200
214
|
)) ||
|
|
201
215
|
(value.blockers !== null &&
|
|
202
216
|
!(value.tenant === "botbuddy" && Array.isArray(value.blockers) && value.blockers.length <= 100)) ||
|
|
@@ -252,6 +266,8 @@ const APP = "https://app.bot-buddy.ai";
|
|
|
252
266
|
const LINKS = {
|
|
253
267
|
ticket: (key) => APP + "/kanban?card=ticket:" + key,
|
|
254
268
|
project: (id) => APP + "/kanban?card=project:" + id,
|
|
269
|
+
// BOT-3259: the project drawer, filtered to one progress set (done|left|unsure).
|
|
270
|
+
projectProgress: (id, kind) => APP + "/kanban?card=project:" + id + "&progress=" + kind,
|
|
255
271
|
pr: (repo, n) => APP + "/kanban?card=pr:" + repo + "%23" + n,
|
|
256
272
|
// BOT-3223 AC-1: a wait badge opens that wait on BB's Waits page.
|
|
257
273
|
wait: (id) => APP + "/waits?wait=" + id,
|
|
@@ -909,7 +925,12 @@ function bandLine(el, spec, widths, right) {
|
|
|
909
925
|
if (id.label) ids.push(el.Link({ href: id.href, label: id.label }));
|
|
910
926
|
if (id.out) ids.push(el.Text({ children: [" "] }), el.Link({ href: id.out, label: "↗" }));
|
|
911
927
|
});
|
|
912
|
-
const title = [
|
|
928
|
+
const title = [];
|
|
929
|
+
// BOT-3259: the project's counts, each opening the drawer filtered to that set.
|
|
930
|
+
for (const link of spec.links || []) {
|
|
931
|
+
title.push(el.Link({ href: link.href, label: link.label }), dim(el, " · "));
|
|
932
|
+
}
|
|
933
|
+
title.push(el.Text({ wrap: "wrap", dimColor: spec.dim || undefined, children: [spec.title] }));
|
|
913
934
|
if (spec.note) title.push(dim(el, " " + spec.note));
|
|
914
935
|
const children = [
|
|
915
936
|
el.Box({ key: spec.key + "-ids", flexDirection: "row", width: widths.ids, flexShrink: 0, children: ids }),
|
|
@@ -1162,7 +1183,15 @@ function bandLines(el, $, inPane) {
|
|
|
1162
1183
|
iconSource: inked(epicIcon(s.epic.state, s.epic.percent), badgeColors(epicHex(s.epic.state)).bg),
|
|
1163
1184
|
iconAlt: "project " + s.epic.state + " " + s.epic.percent + "%",
|
|
1164
1185
|
hex: epicHex(s.epic.state),
|
|
1165
|
-
|
|
1186
|
+
// BOT-3259: with BB's Must + unsure figure the badge is the percent alone and
|
|
1187
|
+
// the counts follow as links; an older snapshot keeps its done/total.
|
|
1188
|
+
status: [
|
|
1189
|
+
{ text: s.epic.percent + "%" },
|
|
1190
|
+
...(!s.epic.progress && Number.isSafeInteger(s.epic.total) && s.epic.total > 0 ? [{ text: s.epic.done + "/" + s.epic.total, muted: true }] : []),
|
|
1191
|
+
],
|
|
1192
|
+
links: s.epic.progress
|
|
1193
|
+
? PROGRESS_KINDS.map(([k, label, kind]) => ({ label: s.epic.progress[k] + " " + label, href: LINKS.projectProgress(s.epic.id, kind) }))
|
|
1194
|
+
: [],
|
|
1166
1195
|
// BOT-3213: the project a coordinator session runs, with its tickets by state.
|
|
1167
1196
|
title: s.epic.role === "coordinator"
|
|
1168
1197
|
? "Coordinating · " + (s.epic.counts ? countsText(s.epic.counts) + " · " : "") + s.epic.name
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.77.0",
|
|
3
|
+
"source_commit": "08cb1b1f5270e4ee981f6b525b15af0441d06e2e",
|
|
4
|
+
"source_sha256": "81ec69696b1ee15b6210102383e8e799659bcba7b3c0bde2911ce51e51b2aa84",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "5f535e56d83f0112fc4ac9c3fa968f022df2d8cb8bf1fdf31892faa4a2000527"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.77.0",
|
|
3
|
+
"source_commit": "08cb1b1f5270e4ee981f6b525b15af0441d06e2e",
|
|
4
|
+
"source_sha256": "81ec69696b1ee15b6210102383e8e799659bcba7b3c0bde2911ce51e51b2aa84",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "58d108a786afd745ddf1994ac8f2efe0c682bc72078b033c5876622a7163d595"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.77.0",
|
|
4
|
+
"source_commit": "08cb1b1f5270e4ee981f6b525b15af0441d06e2e",
|
|
5
|
+
"source_sha256": "81ec69696b1ee15b6210102383e8e799659bcba7b3c0bde2911ce51e51b2aa84",
|
|
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": "5f535e56d83f0112fc4ac9c3fa968f022df2d8cb8bf1fdf31892faa4a2000527",
|
|
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": "58d108a786afd745ddf1994ac8f2efe0c682bc72078b033c5876622a7163d595",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/status-band-read.mjs
CHANGED
|
@@ -6,6 +6,19 @@ import { promisify } from "node:util";
|
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { homedir } from "node:os";
|
|
8
8
|
import { findAgentStateRoot } from "./agent-state.mjs";
|
|
9
|
+
// BOT-3259: BB's one project figure (v_project_progress): Must + unsure members
|
|
10
|
+
// only, complete / remaining / unsure, with BB's percent. Null unless all four
|
|
11
|
+
// are sane, so an older MCP keeps the legacy done/total.
|
|
12
|
+
function mustUnsureProgress(src) {
|
|
13
|
+
const n = (v) => (Number.isSafeInteger(v) && v >= 0 ? v : null);
|
|
14
|
+
const c = n(src?.progress_complete);
|
|
15
|
+
const r = n(src?.progress_remaining);
|
|
16
|
+
const u = n(src?.progress_unsure);
|
|
17
|
+
const p = n(src?.progress_percent);
|
|
18
|
+
if (c === null || r === null || u === null || p === null || p > 100 || u > r) return null;
|
|
19
|
+
return { progress: { complete: c, remaining: r, unsure: u }, done: c, total: c + r, percent: p };
|
|
20
|
+
}
|
|
21
|
+
|
|
9
22
|
const execFileAsync = promisify(execFile);
|
|
10
23
|
const UUID =
|
|
11
24
|
/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
@@ -498,6 +511,8 @@ export async function readStatus({
|
|
|
498
511
|
}
|
|
499
512
|
if (!epic.identifier && PROJECT_IDENTIFIER.test(coordinator.identifier || "")) epic.identifier = coordinator.identifier;
|
|
500
513
|
}
|
|
514
|
+
// BOT-3259: BB's Must + unsure figure wins over every older count.
|
|
515
|
+
Object.assign(epic, mustUnsureProgress(se) || {});
|
|
501
516
|
}
|
|
502
517
|
if (owner) {
|
|
503
518
|
const total = Math.max(0, (owner.children_total ?? 0) - (owner.children_canceled ?? 0));
|
|
@@ -515,6 +530,7 @@ export async function readStatus({
|
|
|
515
530
|
done,
|
|
516
531
|
total,
|
|
517
532
|
percent: total ? Math.round((100 * done) / total) : 0,
|
|
533
|
+
...(mustUnsureProgress(owner) || {}),
|
|
518
534
|
};
|
|
519
535
|
}
|
|
520
536
|
// A bootstrap/session switch during either network request invalidates this snapshot.
|