@bli-cockpit/mcp 0.1.80 → 0.1.81

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/dist/ops-tools.js CHANGED
@@ -286,8 +286,15 @@ export function registerOpsTools(server, deps) {
286
286
  // anything" — and the messages/note print exactly once, not twice.
287
287
  const rawSummary = typeof read["summary"] === "string" ? read["summary"] : `${messages.length} message(s).`;
288
288
  const summary = rawSummary.split("\n")[0] ?? rawSummary;
289
- const note = typeof read["note"] === "string" && read["note"] ? `\n\n${read["note"]}` : "";
290
- return textResult(`${summary}${lines ? `\n\n${lines}` : ""}${note}`, {
289
+ // BLI-12381: a refusal's summary IS its note; print it once.
290
+ const noteText = typeof read["note"] === "string" && read["note"] && read["note"] !== summary ? read["note"] : null;
291
+ const note = noteText ? `\n\n${noteText}` : "";
292
+ // BLI-12381: an unknown, uncovered or empty read leads with its reason
293
+ // label, so a zero never reads as "nobody said anything".
294
+ const label = typeof read["status"] === "string" && (read["status"] !== "ok" || messages.length === 0)
295
+ ? `[slack_read status=${read["status"]} reason=${String(read["reason"] ?? "?")}] `
296
+ : "";
297
+ return textResult(`${label}${summary}${lines ? `\n\n${lines}` : ""}${note}`, {
291
298
  status: read["status"] ?? null,
292
299
  reason: read["reason"] ?? null,
293
300
  messages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/mcp",
3
- "version": "0.1.80",
3
+ "version": "0.1.81",
4
4
  "private": false,
5
5
  "description": "bli-tower: an MCP server over BLI Cockpit's agent doors: JARVIS (jarvis_*), documents (docs_*), channels (msg_*), issues (work_*), the daily page (brief_*), meeting notes (notes_*), the ops board (ops_status/slack_*), settings/team/model, Scout and the workbook, plus the legacy event-stream tools (emit_event, get_ticket_timeline, get_active_tickets).",
6
6
  "type": "module",