@bli-cockpit/mcp 0.1.125 → 0.1.126

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.
@@ -46,8 +46,13 @@ const ACTION_ONLY = ["owners", "due", "meeting_id", "status", "owner", "no_owner
46
46
  const TIMELINE_ONLY = ["kind", "date", "owner_name"];
47
47
  /** The Manager's refusal in the person's words: label, finer label when named, then the sentence. */
48
48
  export function managerFailureText(tool, response) {
49
- if (response.transportError)
50
- return doorFailureText(tool, response);
49
+ if (response.transportError) {
50
+ if (READ_TOOLS_HERE.has(tool))
51
+ return doorFailureText(tool, response);
52
+ // A write whose answer was lost (no reply, a timeout, a body that could not be read) may have landed, as the CLI says.
53
+ // An add's retry line (its request_id) is added by the caller.
54
+ return `No usable answer from Tower for ${tool} (${response.transportError}). ${tool === "manager_add" ? "It may or may not have been saved." : NEXT_STEP["no_answer"]}`;
55
+ }
51
56
  const body = response.body;
52
57
  const str = (key) => (typeof body[key] === "string" && body[key] !== "" ? body[key] : null);
53
58
  const sentence = str("message") ?? (typeof body["reason"] === "string" ? str("error") : null) ?? `Tower answered ${response.status}.`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/mcp",
3
- "version": "0.1.125",
3
+ "version": "0.1.126",
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",