@botbuddy/cli 1.93.1 → 1.94.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/README.md +9 -0
- package/claude-plugin/bb-status/hooks/register.js +23 -1
- 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 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.94.0
|
|
4
|
+
|
|
5
|
+
- BOT-3417: the bb-status band (plugin 1.8.0) shows each ticket's Linear customers as badges on its row, at most three and then `+N`. `bb status-band read` carries them from `get_session_status.tickets[].customers` (MCP 2.135.0), BB's own copy of Linear's customer requests; Linear is not called for them. A ticket BB holds no customers for shows no badge.
|
|
6
|
+
|
|
3
7
|
## 1.93.1
|
|
4
8
|
|
|
5
9
|
- BOT-3362: the `bb push` receipt's `push` field gains `failed_hooks`, which names each lefthook job that refused the push, read from lefthook's summary. A push refused by a job that runs outside lane telemetry (for example `pr-docs`) is now `hooks_failed`, not `push_failed`. A remote rejection, with every hook passed, stays `push_failed`.
|
|
@@ -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.8.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.8.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"
|
|
@@ -235,6 +235,15 @@ going idle, so while the badge is shown each quiet relay timeout (about 9.5
|
|
|
235
235
|
minutes) reads again. BB reads the project's newest 200 coordinator edges; a
|
|
236
236
|
full page is a failed read (no badge), never `No coordinator`.
|
|
237
237
|
|
|
238
|
+
**BOT-3417 customer badges.** Each ticket row shows the ticket's Linear
|
|
239
|
+
customers as badges between its status badge and its title, at most three, then
|
|
240
|
+
`+N`. They come from `get_session_status.tickets[].customers`, BB's own copy of
|
|
241
|
+
Linear's customer requests (BOT-3293), which the Linear webhook keeps current;
|
|
242
|
+
neither the CLI nor the MCP asks Linear for them. A ticket BB holds no customers
|
|
243
|
+
for, or an older CLI or MCP, shows no badge, never "no customers". No wait
|
|
244
|
+
signal carries a customer change yet, so an open band shows it on its next
|
|
245
|
+
read (a relay wake, Refresh or a new session).
|
|
246
|
+
|
|
238
247
|
**BOT-3245 STATUS and WAITS.** The band opens with up to two titled rows on
|
|
239
248
|
the tree's grid: `STATUS` (staging red, its release manager and link, the
|
|
240
249
|
context alarm) and `WAITS` (each active wait, three at most, then `+N more`).
|
|
@@ -189,7 +189,10 @@ function validSnapshot(value, harness, now) {
|
|
|
189
189
|
safeLabel(t.title) &&
|
|
190
190
|
safeLabel(t.status, 40) &&
|
|
191
191
|
// BOT-3223: the ticket's project; absent is unknown, null is none.
|
|
192
|
-
(t.project === undefined || t.project === null || PROJECT.test(t.project))
|
|
192
|
+
(t.project === undefined || t.project === null || PROJECT.test(t.project)) &&
|
|
193
|
+
// BOT-3417: the ticket's Linear customers; absent is "BB did not say".
|
|
194
|
+
(t.customers === undefined ||
|
|
195
|
+
(Array.isArray(t.customers) && t.customers.length <= 20 && t.customers.every((c) => safeLabel(c, 40)))),
|
|
193
196
|
) ||
|
|
194
197
|
// BOT-3213: only a coordinator's project binding may carry no ticket.
|
|
195
198
|
(value.tickets.length === 0
|
|
@@ -968,6 +971,9 @@ function bandLine(el, spec, widths, right) {
|
|
|
968
971
|
for (const link of spec.links || []) {
|
|
969
972
|
title.push(el.Link({ href: link.href, label: link.label }), dim(el, " · "));
|
|
970
973
|
}
|
|
974
|
+
// BOT-3417: the ticket's customers lead the title, after the status badge.
|
|
975
|
+
const customers = customerBadges(el, spec.key + "-customers", spec.customers);
|
|
976
|
+
if (customers) title.push(customers);
|
|
971
977
|
title.push(el.Text({ wrap: "wrap", dimColor: spec.dim || undefined, children: [spec.title] }));
|
|
972
978
|
if (spec.note) title.push(dim(el, " " + spec.note));
|
|
973
979
|
const children = [
|
|
@@ -982,6 +988,21 @@ function bandLine(el, spec, widths, right) {
|
|
|
982
988
|
// Top-aligned: with a wrapped title, the id and status sit on its first line.
|
|
983
989
|
return el.Box({ key: spec.key, flexDirection: "row", alignItems: "flex-start", columnGap: 1, children });
|
|
984
990
|
}
|
|
991
|
+
// BOT-3417: one badge per Linear customer of a ticket, at most
|
|
992
|
+
// MAX_CUSTOMER_BADGES, then "+N". None, or BB did not say: no badge at all.
|
|
993
|
+
const MAX_CUSTOMER_BADGES = 3;
|
|
994
|
+
const CUSTOMER_FILL = "#37474f";
|
|
995
|
+
function customerBadges(el, key, customers) {
|
|
996
|
+
if (!Array.isArray(customers) || !customers.length) return null;
|
|
997
|
+
const svg = pills() && typeof el.Svg === "function";
|
|
998
|
+
const shown = customers.slice(0, MAX_CUSTOMER_BADGES).map((name, i) =>
|
|
999
|
+
svg
|
|
1000
|
+
? el.Box({ key: key + "-" + i, flexDirection: "row", flexShrink: 0, children: [pillSvg(el, { text: name, fill: CUSTOMER_FILL, alt: "customer " + name })] })
|
|
1001
|
+
: el.Box({ key: key + "-" + i, flexDirection: "row", flexShrink: 0, backgroundColor: CUSTOMER_FILL, paddingX: 1, children: [el.Text({ color: "#ffffff", children: [name] })] }),
|
|
1002
|
+
);
|
|
1003
|
+
if (customers.length > shown.length) shown.push(dim(el, "+" + (customers.length - shown.length)));
|
|
1004
|
+
return el.Box({ key, flexDirection: "row", flexShrink: 0, flexWrap: "wrap", columnGap: 1, marginRight: 1, alignItems: "center", children: shown });
|
|
1005
|
+
}
|
|
985
1006
|
// BOT-3211/BOT-3217: "Context 62%", or null when the runtime has no fill
|
|
986
1007
|
// figure (a fresh or just-compacted session): hidden, never "0%".
|
|
987
1008
|
function contextText(c) {
|
|
@@ -1278,6 +1299,7 @@ function bandLines(el, $, inPane) {
|
|
|
1278
1299
|
status: [{ text: t.status }],
|
|
1279
1300
|
title: t.title,
|
|
1280
1301
|
note,
|
|
1302
|
+
customers: t.customers,
|
|
1281
1303
|
});
|
|
1282
1304
|
const prSpec = (p, prefix, note) => {
|
|
1283
1305
|
const hex = p.conflict && p.state !== "merged" && p.state !== "closed" ? ICON.pr.closed : ICON.pr[p.state];
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.94.0",
|
|
3
|
+
"source_commit": "9d0d1710dc3d98dc9c799cad5f04afd1b703c838",
|
|
4
|
+
"source_sha256": "1d61ef38322de190ed2fdf00e651c56cfc5926b70d09272bd275ec69b176fa4b",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "6ddf01a476e4e70b2b17ee69e04bd1758de26323574680f236809850c7f0d5f0"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.94.0",
|
|
3
|
+
"source_commit": "9d0d1710dc3d98dc9c799cad5f04afd1b703c838",
|
|
4
|
+
"source_sha256": "1d61ef38322de190ed2fdf00e651c56cfc5926b70d09272bd275ec69b176fa4b",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "322bb5d8ea0c0289a2f5e2c3dc4a303e92c92029b1f9c8e88c2560c0180ed0c6"
|
|
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.94.0",
|
|
4
|
+
"source_commit": "9d0d1710dc3d98dc9c799cad5f04afd1b703c838",
|
|
5
|
+
"source_sha256": "1d61ef38322de190ed2fdf00e651c56cfc5926b70d09272bd275ec69b176fa4b",
|
|
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": "6ddf01a476e4e70b2b17ee69e04bd1758de26323574680f236809850c7f0d5f0",
|
|
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": "322bb5d8ea0c0289a2f5e2c3dc4a303e92c92029b1f9c8e88c2560c0180ed0c6",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/status-band-read.mjs
CHANGED
|
@@ -457,9 +457,18 @@ export async function readStatus({
|
|
|
457
457
|
const e = epics.find((x) => UUID_LOWER.test(x?.epic_project_id) && (x.children || []).some((c) => c?.external_id === k));
|
|
458
458
|
return e ? e.epic_project_id : Array.isArray(epicHealth?.epics) ? null : undefined;
|
|
459
459
|
};
|
|
460
|
+
// BOT-3417: each ticket's Linear customers, from BB's own mirror (never from
|
|
461
|
+
// Linear here). No key when BB said nothing, so the band shows no badge.
|
|
462
|
+
const customersOf = (k) => {
|
|
463
|
+
if (!ownOk) return {};
|
|
464
|
+
const t = own.tickets.find((x) => String(x?.key || "").toUpperCase() === k);
|
|
465
|
+
if (!Array.isArray(t?.customers)) return {};
|
|
466
|
+
const names = t.customers.map((c) => safeText(c?.name, 40)).filter(Boolean).slice(0, 20);
|
|
467
|
+
return { customers: names };
|
|
468
|
+
};
|
|
460
469
|
const tickets = keys.map((k) => {
|
|
461
470
|
const project = projectOf(k);
|
|
462
|
-
const where = project === undefined ? {} : { project };
|
|
471
|
+
const where = { ...(project === undefined ? {} : { project }), ...customersOf(k) };
|
|
463
472
|
if (linearTicket && k === key)
|
|
464
473
|
return { key: k, title: linearTicket.title, status: linearTicket.status, ...where };
|
|
465
474
|
const found = fromBb(k);
|