@thehammer/danx-dashboard-mcp 0.1.296 → 0.1.298

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.
Files changed (2) hide show
  1. package/dist/listen.js +8 -2
  2. package/package.json +2 -2
package/dist/listen.js CHANGED
@@ -126,6 +126,8 @@ export function invalidEventReason(value) {
126
126
  if (value.viaKey !== null && !(isRecord(value.viaKey) && typeof value.viaKey.id === "number" && typeof value.viaKey.name === "string")) {
127
127
  return "viaKey is not null or {id, name}";
128
128
  }
129
+ if (value.release !== undefined && value.release !== true)
130
+ return "release is not true";
129
131
  const d = value.detail;
130
132
  if (!isRecord(d))
131
133
  return "detail is not an object";
@@ -227,6 +229,8 @@ function describe(event) {
227
229
  // listening to the stream can tell which of its open problems just
228
230
  // got a reply.
229
231
  const problem = d.problem;
232
+ if (event.release === true)
233
+ return `${who} notice: ${quoted(d.excerpt)}`;
230
234
  if (problem === undefined)
231
235
  return `${who} commented: ${quoted(d.excerpt)}`;
232
236
  return `${who} commented on problem ${quoted(problem.statement)}: ${quoted(d.excerpt)}`;
@@ -572,10 +576,12 @@ export async function runListener(options, deps) {
572
576
  // origin: a fault worth surfacing at all must never be hidden behind a
573
577
  // 10-minute digest wait just because it happened to come from an agent or
574
578
  // a machine writer.
575
- const origin = invalid === null ? parsed.origin : null;
579
+ const release = invalid === null && parsed.release === true;
580
+ // DX-4951: a pause release is the session's own notice: emitted at once (`origin: null`), and kept across a plan move (`scope: "session"`).
581
+ const origin = invalid === null && !release ? parsed.origin : null;
576
582
  // DX-4721: an unreadable event is a fault line; a readable one is urgent by its kind (none is today).
577
583
  const urgent = isUrgent(invalid === null ? { source: "activity", kind: parsed.kind } : { source: "fault" });
578
- deps.write({ type: "event", id: knownId ? id : null, text, origin, urgent });
584
+ deps.write({ type: "event", id: knownId ? id : null, text, origin, urgent, ...(release ? { scope: "session" } : {}) });
579
585
  if (knownId)
580
586
  remember(id);
581
587
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thehammer/danx-dashboard-mcp",
3
- "version": "0.1.296",
3
+ "version": "0.1.298",
4
4
  "description": "Stdio MCP server fronting danxbot's dashboard API for agents (operator sessions and dispatched workers alike): the generic danxbot_api/danxbot_api_list/danxbot_api_spec tools reach any route the caller's credential may call, plus dedicated agent-specific tools (plan_connect, request_permission, attach_file, and danxbot_slack_reply) (DX-3465, PLN-11 R-25).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@modelcontextprotocol/sdk": "1.29.0",
35
- "@thehammer/danx-session-telemetry": "0.1.50",
35
+ "@thehammer/danx-session-telemetry": "0.1.51",
36
36
  "zod": "^3.25.76"
37
37
  },
38
38
  "devDependencies": {