@productbrain/mcp 0.0.1-beta.10959 → 0.0.1-beta.10962

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,7 +46,7 @@ import {
46
46
  trackQualityVerdict,
47
47
  trackSessionCaptureRate,
48
48
  trackZeroCaptureAuditFired
49
- } from "./chunk-SLTPYOQE.js";
49
+ } from "./chunk-JHI5IP57.js";
50
50
 
51
51
  // src/server.ts
52
52
  import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -2304,7 +2304,8 @@ async function handleGetHistory({ entryId }) {
2304
2304
  const date = new Date(h.timestamp).toISOString();
2305
2305
  const changes = h.changes ? ` \u2014 ${JSON.stringify(h.changes)}` : "";
2306
2306
  const qualifier = h.legacyQualifier ? ` [${h.legacyQualifier}]` : "";
2307
- return `- **${date}** ${h.event} _(${sanitizeSingleLineField(h.displayAuthor)})_${changes}${qualifier}`;
2307
+ const actingAs = h.actingAs ? `, ${sanitizeSingleLineField(h.actingAs)}` : "";
2308
+ return `- **${date}** ${h.event} _(${sanitizeSingleLineField(h.displayAuthor)}${actingAs})_${changes}${qualifier}`;
2308
2309
  }).join("\n");
2309
2310
  const cut = truncated ? `Older history left out: only the newest ${history.length} events were read.
2310
2311
 
@@ -3505,7 +3506,7 @@ async function handleGet(entryId) {
3505
3506
  for (const h of e.history.slice(-10)) {
3506
3507
  const date = new Date(h.timestamp).toISOString().split("T")[0];
3507
3508
  const qualifier = h.legacyQualifier ? ` [${h.legacyQualifier}]` : "";
3508
- lines.push(`- ${date}: ${h.event} _(${sanitizeSingleLineField(h.displayAuthor)})_${qualifier}`);
3509
+ lines.push(`- ${date}: ${h.event} _(${sanitizeSingleLineField(h.actingAs ? `${h.displayAuthor}, ${h.actingAs}` : h.displayAuthor)})_${qualifier}`);
3509
3510
  }
3510
3511
  }
3511
3512
  const entryData = {
@@ -12876,4 +12877,4 @@ export {
12876
12877
  createProductBrainServer,
12877
12878
  initFeatureFlags
12878
12879
  };
12879
- //# sourceMappingURL=chunk-TNDJJ4XG.js.map
12880
+ //# sourceMappingURL=chunk-WJLEAORU.js.map