@mastra/mcp 1.0.0-beta.7 → 1.0.0-beta.9

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
@@ -1814,14 +1814,20 @@ To fix this you have three different options:
1814
1814
  }
1815
1815
  };
1816
1816
 
1817
- // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/stream.js
1817
+ // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/utils/stream.js
1818
1818
  var StreamingApi = class {
1819
1819
  writer;
1820
1820
  encoder;
1821
1821
  writable;
1822
1822
  abortSubscribers = [];
1823
1823
  responseReadable;
1824
+ /**
1825
+ * Whether the stream has been aborted.
1826
+ */
1824
1827
  aborted = false;
1828
+ /**
1829
+ * Whether the stream has been closed normally.
1830
+ */
1825
1831
  closed = false;
1826
1832
  constructor(writable, _readable) {
1827
1833
  this.writable = writable;
@@ -1873,6 +1879,10 @@ var StreamingApi = class {
1873
1879
  onAbort(listener) {
1874
1880
  this.abortSubscribers.push(listener);
1875
1881
  }
1882
+ /**
1883
+ * Abort the stream.
1884
+ * You can call this method when stream is aborted by external event.
1885
+ */
1876
1886
  abort() {
1877
1887
  if (!this.aborted) {
1878
1888
  this.aborted = true;
@@ -1881,7 +1891,7 @@ var StreamingApi = class {
1881
1891
  }
1882
1892
  };
1883
1893
 
1884
- // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/helper/streaming/utils.js
1894
+ // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/helper/streaming/utils.js
1885
1895
  var isOldBunVersion = () => {
1886
1896
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
1887
1897
  if (version === void 0) {
@@ -1892,7 +1902,7 @@ var isOldBunVersion = () => {
1892
1902
  return result;
1893
1903
  };
1894
1904
 
1895
- // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/utils/html.js
1905
+ // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/utils/html.js
1896
1906
  var HtmlEscapedCallbackPhase = {
1897
1907
  Stringify: 1};
1898
1908
  var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
@@ -1923,7 +1933,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
1923
1933
  }
1924
1934
  };
1925
1935
 
1926
- // ../../node_modules/.pnpm/hono@4.10.6/node_modules/hono/dist/helper/streaming/sse.js
1936
+ // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/helper/streaming/sse.js
1927
1937
  var SSEStreamingApi = class extends StreamingApi {
1928
1938
  constructor(writable, readable) {
1929
1939
  super(writable, readable);