@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.
- package/dist/{chunk-H25VJVJ4.js → chunk-DMSRWHOG.js} +5 -3
- package/dist/{chunk-H25VJVJ4.js.map → chunk-DMSRWHOG.js.map} +1 -1
- package/dist/{chunk-PSUZNMLZ.js → chunk-FSA7LAHO.js} +8 -3
- package/dist/{chunk-PSUZNMLZ.js.map → chunk-FSA7LAHO.js.map} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-NVMZYLH5.js → setup-XAILRVQL.js} +2 -2
- package/package.json +1 -1
- /package/dist/{setup-NVMZYLH5.js.map → setup-XAILRVQL.js.map} +0 -0
|
@@ -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
|
-
|
|
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-
|
|
1764
|
+
//# sourceMappingURL=chunk-FSA7LAHO.js.map
|