@productbrain/mcp 0.0.1-beta.13248 → 0.0.1-beta.13263

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.
@@ -1391,6 +1391,10 @@ function sessionTouchHeader(fn, recall = false) {
1391
1391
  const release = () => prior === void 0 ? _lastTouchAtBySession.delete(sessionId) : _lastTouchAtBySession.set(sessionId, prior);
1392
1392
  return { headers: { "x-pb-session": sessionId }, release };
1393
1393
  }
1394
+ function actingSessionHeader() {
1395
+ const id = sessionLifecycle().agentSessionId;
1396
+ return id ? { "x-pb-acting-session": id } : {};
1397
+ }
1394
1398
  function resetTouchThrottle(sessionId) {
1395
1399
  if (sessionId) {
1396
1400
  _lastTouchAtBySession.delete(sessionId);
@@ -1492,8 +1496,9 @@ async function callGateway(fn, args, recall = false) {
1492
1496
  "x-pb-source": MCP_TELEMETRY_SOURCE,
1493
1497
  ...commandHeader(),
1494
1498
  // TASK-893: x-pb-command, the tool call this request serves
1495
- ...touch.headers
1496
- // TASK-894: the heartbeat rides the request
1499
+ ...touch.headers,
1500
+ ...actingSessionHeader()
1501
+ // TASK-894: the heartbeat rides the request; TASK-1352: the session on every call
1497
1502
  },
1498
1503
  body: JSON.stringify(recall ? { fn, args, recall } : { fn, args })
1499
1504
  // TASK-911: a read-back
@@ -1756,4 +1761,4 @@ export {
1756
1761
  appUrl,
1757
1762
  apiKeysUrl
1758
1763
  };
1759
- //# sourceMappingURL=chunk-PSUZNMLZ.js.map
1764
+ //# sourceMappingURL=chunk-FSA7LAHO.js.map