@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/_types/hono/dist/types/client/types.d.ts +1 -1
- package/dist/_types/hono/dist/types/context.d.ts +6 -2
- package/dist/_types/hono/dist/types/hono-base.d.ts +4 -3
- package/dist/_types/hono/dist/types/router.d.ts +1 -1
- package/dist/_types/hono/dist/types/utils/headers.d.ts +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +18 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -8
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
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.
|
|
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
|
-
|
|
25946
|
-
|
|
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) =>
|
|
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.
|
|
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.
|
|
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.
|
|
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/
|
|
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;
|