@productbrain/mcp 0.0.1-beta.8837 → 0.0.1-beta.8843

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.
@@ -42,7 +42,7 @@ import {
42
42
  trackSessionCaptureRate,
43
43
  trackZeroCaptureAuditFired,
44
44
  validateCallerSession
45
- } from "./chunk-JWZBOT54.js";
45
+ } from "./chunk-NT3NE6V5.js";
46
46
 
47
47
  // src/server.ts
48
48
  import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -4550,7 +4550,7 @@ async function handleBatchCreate(relations) {
4550
4550
  for (let i = 0; i < relations.length; i++) {
4551
4551
  const rel = relations[i];
4552
4552
  const res = batchResult.results[i];
4553
- results.push({ ...rel, ok: res?.ok ?? false, error: res?.error });
4553
+ results.push({ ...rel, ok: res?.ok ?? false, error: res?.error, ...res?.advisories ? { advisories: [...res.advisories] } : {} });
4554
4554
  }
4555
4555
  } catch (e) {
4556
4556
  for (const rel of relations) {
@@ -4567,6 +4567,7 @@ async function handleBatchCreate(relations) {
4567
4567
  lines.push("## Created");
4568
4568
  for (const r of created) {
4569
4569
  lines.push(`- **${r.from}** \u2014[${r.type}]\u2192 **${r.to}**`);
4570
+ for (const a of r.advisories ?? []) lines.push(` \u26A0 **${a.ruleId}** (org stage: ${a.stage}): ${a.ruleText}`);
4570
4571
  }
4571
4572
  }
4572
4573
  if (failed.length > 0) {
@@ -13937,4 +13938,4 @@ export {
13937
13938
  createProductBrainServer,
13938
13939
  initFeatureFlags
13939
13940
  };
13940
- //# sourceMappingURL=chunk-ASADQLRX.js.map
13941
+ //# sourceMappingURL=chunk-733I66MG.js.map