@productbrain/mcp 0.0.1-beta.8702 → 0.0.1-beta.8719

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/cli/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // src/cli/index.ts
4
4
  var subcommand = process.argv[2];
5
5
  if (subcommand === "setup") {
6
- const { runSetup } = await import("../setup-YCYGYJNK.js");
6
+ const { runSetup } = await import("../setup-SF4Z3IBZ.js");
7
7
  await runSetup();
8
8
  } else {
9
9
  await import("../index.js");
package/dist/http.js CHANGED
@@ -2,17 +2,18 @@ import {
2
2
  SERVER_VERSION,
3
3
  createProductBrainServer,
4
4
  initFeatureFlags
5
- } from "./chunk-RPKS4G3K.js";
5
+ } from "./chunk-ZOYUYCKV.js";
6
6
  import {
7
7
  DEFAULT_CLOUD_URL,
8
8
  bootstrapHttp,
9
+ forgetStreamLifecycle,
9
10
  getKeyState,
10
11
  getPostHogClient,
11
12
  hashKey,
12
13
  initAnalytics,
13
14
  runWithAuth,
14
15
  shutdownAnalytics
15
- } from "./chunk-FZWP45AU.js";
16
+ } from "./chunk-2UJDIWEX.js";
16
17
 
17
18
  // src/http.ts
18
19
  import { createHash, randomUUID as randomUUID2 } from "crypto";
@@ -1379,6 +1380,7 @@ app.post("/mcp", mcpLimiter, async (req, res) => {
1379
1380
  sessions.set(sid, reserved);
1380
1381
  transport.onclose = () => {
1381
1382
  const s = transport.sessionId ?? sid;
1383
+ forgetStreamLifecycle(keyH, s);
1382
1384
  if (sessions.has(s)) {
1383
1385
  sessions.delete(s);
1384
1386
  logSessionLifecycle("session_deleted", s, "onclose");