@zooid/context-mcp 0.12.0 → 0.13.0

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/bin.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  JSONRPCMessageSchema,
4
4
  buildContextMcpServer,
5
5
  callDaemon
6
- } from "./chunk-ZY2GPHFX.js";
6
+ } from "./chunk-L5USYHTS.js";
7
7
 
8
8
  // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
9
9
  import process2 from "process";
@@ -21084,7 +21084,10 @@ import { unlink } from "fs/promises";
21084
21084
  async function startDaemonSocketServer(opts) {
21085
21085
  await unlink(opts.sockPath).catch(() => {
21086
21086
  });
21087
+ const open = /* @__PURE__ */ new Set();
21087
21088
  const server = createServer((socket) => {
21089
+ open.add(socket);
21090
+ socket.on("close", () => open.delete(socket));
21088
21091
  let buf = "";
21089
21092
  socket.setEncoding("utf8");
21090
21093
  socket.on("data", async (chunk) => {
@@ -21110,6 +21113,8 @@ async function startDaemonSocketServer(opts) {
21110
21113
  return {
21111
21114
  close: () => new Promise((resolve) => {
21112
21115
  server.close(() => resolve());
21116
+ for (const socket of open) socket.destroy();
21117
+ open.clear();
21113
21118
  })
21114
21119
  };
21115
21120
  }
@@ -21205,4 +21210,4 @@ export {
21205
21210
  startDaemonSocketServer,
21206
21211
  callDaemon
21207
21212
  };
21208
- //# sourceMappingURL=chunk-ZY2GPHFX.js.map
21213
+ //# sourceMappingURL=chunk-L5USYHTS.js.map