@bli-cockpit/cli 0.2.162 → 0.2.163

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.
@@ -21,7 +21,7 @@ export async function runCockpitCli(argv, io) {
21
21
  }
22
22
 
23
23
  if (command === "--version" || command === "-V" || command === "version") {
24
- writeLine(io?.stdout ?? process.stdout, "0.2.162");
24
+ writeLine(io?.stdout ?? process.stdout, "0.2.163");
25
25
  return 0;
26
26
  }
27
27
 
@@ -226,6 +226,13 @@ function writeReadReply(command, io, payload, read, messages) {
226
226
  const styled = colorEnabled(io);
227
227
  const summary = typeof read["summary"] === "string" ? read["summary"] : "";
228
228
  const header = summary.split("\n")[0] ?? "";
229
+ // BLI-12381: an unknown, uncovered or empty read leads with its reason
230
+ // label on stdout (not only the stderr receipt), so a zero never reads as
231
+ // "nobody said anything".
232
+ const status = typeof read["status"] === "string" ? read["status"] : null;
233
+ if (status && (status !== "ok" || messages.length === 0)) {
234
+ writeLine(io.stdout, `slack read: status=${status} reason=${String(read["reason"] ?? "?")}`);
235
+ }
229
236
  if (header)
230
237
  writeLine(io.stdout, header);
231
238
  if (command.format === "compact") {
@@ -243,7 +250,8 @@ function writeReadReply(command, io, payload, read, messages) {
243
250
  }
244
251
  }
245
252
  }
246
- if (typeof read["note"] === "string" && read["note"]) {
253
+ // A refusal's summary IS its note (tools-slack.ts `boundary`); print it once.
254
+ if (typeof read["note"] === "string" && read["note"] && read["note"] !== header) {
247
255
  writeLine(io.stdout, "");
248
256
  writeLine(io.stdout, dim(read["note"], styled));
249
257
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/cli",
3
- "version": "0.2.162",
3
+ "version": "0.2.163",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@bli-cockpit/memory-mcp": "0.1.45",
31
- "@bli-cockpit/mcp": "0.1.80",
31
+ "@bli-cockpit/mcp": "0.1.81",
32
32
  "@bli-cockpit/telemetry-core": "0.1.57"
33
33
  },
34
34
  "repository": {