@mastra/mcp 1.18.1-alpha.2 → 1.18.1-alpha.3

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/index.js CHANGED
@@ -25887,7 +25887,7 @@ onListChanged: async (serverName, handler) => {
25887
25887
  }
25888
25888
  };
25889
25889
  //#endregion
25890
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/utils/stream.js
25890
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.13.7/16fe89d7a68113ebfa0de2c75556f1b27b82f6d628b070129230d3bbe03cc914/node_modules/hono/dist/utils/stream.js
25891
25891
  var StreamingApi = class {
25892
25892
  writer;
25893
25893
  encoder;
@@ -25942,8 +25942,14 @@ var StreamingApi = class {
25942
25942
  }
25943
25943
  async pipe(body) {
25944
25944
  this.writer.releaseLock();
25945
- await body.pipeTo(this.writable, { preventClose: true });
25946
- this.writer = this.writable.getWriter();
25945
+ try {
25946
+ await body.pipeTo(this.writable, {
25947
+ preventClose: true,
25948
+ preventAbort: true
25949
+ });
25950
+ } finally {
25951
+ this.writer = this.writable.getWriter();
25952
+ }
25947
25953
  }
25948
25954
  onAbort(listener) {
25949
25955
  this.abortSubscribers.push(listener);
@@ -25955,12 +25961,16 @@ var StreamingApi = class {
25955
25961
  abort() {
25956
25962
  if (!this.aborted) {
25957
25963
  this.aborted = true;
25958
- this.abortSubscribers.forEach((subscriber) => subscriber());
25964
+ this.abortSubscribers.forEach((subscriber) => {
25965
+ try {
25966
+ Promise.resolve(subscriber()).catch(() => {});
25967
+ } catch {}
25968
+ });
25959
25969
  }
25960
25970
  }
25961
25971
  };
25962
25972
  //#endregion
25963
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/helper/streaming/utils.js
25973
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.13.7/16fe89d7a68113ebfa0de2c75556f1b27b82f6d628b070129230d3bbe03cc914/node_modules/hono/dist/helper/streaming/utils.js
25964
25974
  var isOldBunVersion = () => {
25965
25975
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
25966
25976
  if (version === void 0) return false;
@@ -25969,7 +25979,7 @@ var isOldBunVersion = () => {
25969
25979
  return result;
25970
25980
  };
25971
25981
  //#endregion
25972
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/utils/html.js
25982
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.13.7/16fe89d7a68113ebfa0de2c75556f1b27b82f6d628b070129230d3bbe03cc914/node_modules/hono/dist/utils/html.js
25973
25983
  var HtmlEscapedCallbackPhase = {
25974
25984
  Stringify: 1,
25975
25985
  BeforeStream: 2,
@@ -25999,7 +26009,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
25999
26009
  else return resStr;
26000
26010
  };
26001
26011
  //#endregion
26002
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/helper/streaming/sse.js
26012
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.13.7/16fe89d7a68113ebfa0de2c75556f1b27b82f6d628b070129230d3bbe03cc914/node_modules/hono/dist/helper/streaming/sse.js
26003
26013
  var SSEStreamingApi = class extends StreamingApi {
26004
26014
  constructor(writable, readable) {
26005
26015
  super(writable, readable);
@@ -26052,7 +26062,7 @@ var streamSSE = (c, cb, onError) => {
26052
26062
  return c.newResponse(stream.responseReadable);
26053
26063
  };
26054
26064
  //#endregion
26055
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-mcp-server-sse-transport/0.0.7/77cb993510b4dd1d9c8bf87f5375b9a3a33086c9f52f5b16d58cb9c95462e6dc/node_modules/hono-mcp-server-sse-transport/build/sse.js
26065
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-mcp-server-sse-transport/0.0.7/4660f50d5d8b8389fdd7f86435f1f6c9bd1587108a3416c91e299269cbb89db4/node_modules/hono-mcp-server-sse-transport/build/sse.js
26056
26066
  const MAXIMUM_MESSAGE_SIZE = 4 * 1024 * 1024;
26057
26067
  var SSETransport = class {
26058
26068
  messageUrl;