@mastra/deployer 1.80.0-alpha.3 → 1.80.0-alpha.5
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/{analyze-DhTwbIGn.js → analyze-CaR5az9N.js} +20 -34
- package/dist/analyze-CaR5az9N.js.map +1 -0
- package/dist/{analyze-jJAydlIl.cjs → analyze-CcZ2AWV3.cjs} +21 -35
- package/dist/analyze-CcZ2AWV3.cjs.map +1 -0
- package/dist/arktype-aI7TBD0R-CA70n59_.cjs +7 -0
- package/dist/{arktype-aI7TBD0R-LEyxmA2b.cjs.map → arktype-aI7TBD0R-CA70n59_.cjs.map} +1 -1
- package/dist/arktype-aI7TBD0R-cDMJgbIj.js +7 -0
- package/dist/{arktype-aI7TBD0R-CrIkuKY8.js.map → arktype-aI7TBD0R-cDMJgbIj.js.map} +1 -1
- package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/bundler.cjs +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.cjs +6 -6
- package/dist/build/index.js +6 -6
- package/dist/build/plugins/pino.d.ts.map +1 -1
- package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
- package/dist/{build-ClcuWPJW.cjs → build-BLhyMvzA.cjs} +16 -25
- package/dist/build-BLhyMvzA.cjs.map +1 -0
- package/dist/{build-Ch38BMkf.js → build-CwIzWB-q.js} +15 -24
- package/dist/build-CwIzWB-q.js.map +1 -0
- package/dist/bundler/index.cjs +8 -11
- package/dist/bundler/index.cjs.map +1 -1
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +7 -10
- package/dist/bundler/index.js.map +1 -1
- package/dist/{bundler-Xbu98oe6.js → bundler-D3Ky7WCf.js} +15 -27
- package/dist/{bundler-Xbu98oe6.js.map → bundler-D3Ky7WCf.js.map} +1 -1
- package/dist/{bundler-3xwX-u2Y.cjs → bundler-D_3GyN0N.cjs} +16 -28
- package/dist/{bundler-3xwX-u2Y.cjs.map → bundler-D_3GyN0N.cjs.map} +1 -1
- package/dist/{bundlerOptions-lxkzE0Jg.js → bundlerOptions-BtDsaIgs.js} +9 -15
- package/dist/{bundlerOptions-lxkzE0Jg.js.map → bundlerOptions-BtDsaIgs.js.map} +1 -1
- package/dist/{bundlerOptions-DVHKdYsv.cjs → bundlerOptions-Dgt4ZEo1.cjs} +10 -16
- package/dist/{bundlerOptions-DVHKdYsv.cjs.map → bundlerOptions-Dgt4ZEo1.cjs.map} +1 -1
- package/dist/{core-75DLMtZL.js → core-DM6JYCRs.js} +7 -13
- package/dist/{core-75DLMtZL.js.map → core-DM6JYCRs.js.map} +1 -1
- package/dist/{core-XnTfh3E_.cjs → core-Dw6oRE58.cjs} +7 -13
- package/dist/{core-XnTfh3E_.cjs.map → core-Dw6oRE58.cjs.map} +1 -1
- package/dist/{dist-IbfljCaD.cjs → dist-4VwpGp6C.cjs} +2 -3
- package/dist/{dist-IbfljCaD.cjs.map → dist-4VwpGp6C.cjs.map} +1 -1
- package/dist/{dist-CQdaZ_Cj.js → dist-CId9bb_J.js} +2 -3
- package/dist/{dist-CQdaZ_Cj.js.map → dist-CId9bb_J.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-mastra-server.md +2 -0
- package/dist/docs/references/docs-deployment-monorepo.md +2 -0
- package/dist/docs/references/reference-deployer.md +6 -3
- package/dist/effect-QlVUlMFu-AhgmGdMj.cjs +13 -0
- package/dist/{effect-QlVUlMFu-D_Bo06-a.cjs.map → effect-QlVUlMFu-AhgmGdMj.cjs.map} +1 -1
- package/dist/effect-QlVUlMFu-BUdj03Tb.js +13 -0
- package/dist/{effect-QlVUlMFu-CgfR_0ad.js.map → effect-QlVUlMFu-BUdj03Tb.js.map} +1 -1
- package/dist/{esm-ClsnEB2d.js → esm-CTYQPwZr.js} +45 -89
- package/dist/{esm-ClsnEB2d.js.map → esm-CTYQPwZr.js.map} +1 -1
- package/dist/{esm-D74qc_jV.cjs → esm-DCHnJS63.cjs} +45 -89
- package/dist/{esm-D74qc_jV.cjs.map → esm-DCHnJS63.cjs.map} +1 -1
- package/dist/{index-CLddUTqr-CgjYL5XV.cjs → index-CLddUTqr-CeV0aeBL.cjs} +9 -11
- package/dist/{index-CLddUTqr-CgjYL5XV.cjs.map → index-CLddUTqr-CeV0aeBL.cjs.map} +1 -1
- package/dist/{index-CLddUTqr-73bY0Z8P.js → index-CLddUTqr-FaVhUOQu.js} +9 -11
- package/dist/{index-CLddUTqr-73bY0Z8P.js.map → index-CLddUTqr-FaVhUOQu.js.map} +1 -1
- package/dist/index.cjs +5 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/{rolldown-runtime-Gi87jfEt.cjs → rolldown-runtime-Bc0pwXKd.cjs} +1 -2
- package/dist/server/index.cjs +27 -49
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +26 -48
- package/dist/server/index.js.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-DahfG_xq.js → services-BJQJLQs9.js} +5 -9
- package/dist/{services-DahfG_xq.js.map → services-BJQJLQs9.js.map} +1 -1
- package/dist/{services-CCa8HFrE.cjs → services-Dqx1iouv.cjs} +6 -10
- package/dist/{services-CCa8HFrE.cjs.map → services-Dqx1iouv.cjs.map} +1 -1
- package/dist/sury-CWZTCd75-CEZXDAeW.cjs +13 -0
- package/dist/{sury-CWZTCd75-BmWsp9y9.cjs.map → sury-CWZTCd75-CEZXDAeW.cjs.map} +1 -1
- package/dist/sury-CWZTCd75-DOXpSi96.js +13 -0
- package/dist/{sury-CWZTCd75-DiZVb8bZ.js.map → sury-CWZTCd75-DOXpSi96.js.map} +1 -1
- package/dist/typebox-Dei93FPO-BOIkUnIO.js +7 -0
- package/dist/{typebox-Dei93FPO-CwpAqpd5.js.map → typebox-Dei93FPO-BOIkUnIO.js.map} +1 -1
- package/dist/typebox-Dei93FPO-Br8qsfny.cjs +7 -0
- package/dist/{typebox-Dei93FPO-Dv_TSG2I.cjs.map → typebox-Dei93FPO-Br8qsfny.cjs.map} +1 -1
- package/dist/{utils-Bl3Lm7SI.js → utils-C8gwr-ur.js} +2 -3
- package/dist/{utils-Bl3Lm7SI.js.map → utils-C8gwr-ur.js.map} +1 -1
- package/dist/{utils-C-gJcJAo.cjs → utils-CDNA_ewa.cjs} +2 -3
- package/dist/{utils-C-gJcJAo.cjs.map → utils-CDNA_ewa.cjs.map} +1 -1
- package/dist/valibot--1zFm7rT-B84p7SXG.cjs +13 -0
- package/dist/{valibot--1zFm7rT-YckVXzoz.cjs.map → valibot--1zFm7rT-B84p7SXG.cjs.map} +1 -1
- package/dist/valibot--1zFm7rT-BD4syL2V.js +13 -0
- package/dist/{valibot--1zFm7rT-BfSX2bry.js.map → valibot--1zFm7rT-BD4syL2V.js.map} +1 -1
- package/dist/validator/custom-resolver.cjs +2 -3
- package/dist/validator/custom-resolver.js +2 -3
- package/dist/validator/loader.cjs +1 -2
- package/dist/validator/loader.js +1 -2
- package/dist/validator/validate.d.ts.map +1 -1
- package/dist/zod-Bwrt9trS-0iZO7FLc.js +22 -0
- package/dist/{zod-Bwrt9trS-CO1V3tYt.js.map → zod-Bwrt9trS-0iZO7FLc.js.map} +1 -1
- package/dist/{zod-Bwrt9trS-CdR6J7TM.cjs → zod-Bwrt9trS-BoI5Bg-K.cjs} +5 -6
- package/dist/{zod-Bwrt9trS-CdR6J7TM.cjs.map → zod-Bwrt9trS-BoI5Bg-K.cjs.map} +1 -1
- package/package.json +27 -27
- package/dist/analyze-DhTwbIGn.js.map +0 -1
- package/dist/analyze-jJAydlIl.cjs.map +0 -1
- package/dist/arktype-aI7TBD0R-CrIkuKY8.js +0 -8
- package/dist/arktype-aI7TBD0R-LEyxmA2b.cjs +0 -8
- package/dist/build-Ch38BMkf.js.map +0 -1
- package/dist/build-ClcuWPJW.cjs.map +0 -1
- package/dist/effect-QlVUlMFu-CgfR_0ad.js +0 -14
- package/dist/effect-QlVUlMFu-D_Bo06-a.cjs +0 -14
- package/dist/sury-CWZTCd75-BmWsp9y9.cjs +0 -14
- package/dist/sury-CWZTCd75-DiZVb8bZ.js +0 -14
- package/dist/typebox-Dei93FPO-CwpAqpd5.js +0 -8
- package/dist/typebox-Dei93FPO-Dv_TSG2I.cjs +0 -8
- package/dist/valibot--1zFm7rT-BfSX2bry.js +0 -14
- package/dist/valibot--1zFm7rT-YckVXzoz.cjs +0 -14
- package/dist/zod-Bwrt9trS-CO1V3tYt.js +0 -23
package/dist/server/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as normalizeStudioBase, n as escapeStudioHtmlValue, o as injectStudioHtmlConfig } from "../utils-
|
|
2
|
-
import "../index-CLddUTqr-
|
|
1
|
+
import { d as normalizeStudioBase, n as escapeStudioHtmlValue, o as injectStudioHtmlConfig } from "../utils-C8gwr-ur.js";
|
|
2
|
+
import "../index-CLddUTqr-FaVhUOQu.js";
|
|
3
3
|
import { createReadStream, existsSync, statSync } from "fs";
|
|
4
4
|
import { readFile } from "fs/promises";
|
|
5
5
|
import { dirname, join } from "path";
|
|
@@ -28,10 +28,10 @@ import { cors } from "hono/cors";
|
|
|
28
28
|
import { logger } from "hono/logger";
|
|
29
29
|
import { timeout } from "hono/timeout";
|
|
30
30
|
import "hono/utils/handler";
|
|
31
|
+
import "hono/utils/url";
|
|
31
32
|
import "hono/validator";
|
|
32
33
|
import { HTTPException } from "hono/http-exception";
|
|
33
|
-
|
|
34
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/index.mjs
|
|
34
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/index.mjs
|
|
35
35
|
var RequestError = class extends Error {
|
|
36
36
|
constructor(message, options) {
|
|
37
37
|
super(message, options);
|
|
@@ -1332,8 +1332,7 @@ const serve = (options, listeningListener) => {
|
|
|
1332
1332
|
});
|
|
1333
1333
|
return server;
|
|
1334
1334
|
};
|
|
1335
|
-
|
|
1336
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/utils/stream.mjs
|
|
1335
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/utils/stream.mjs
|
|
1337
1336
|
const pr54206Applied = () => {
|
|
1338
1337
|
const [major, minor] = versions.node.split(".").map((component) => parseInt(component));
|
|
1339
1338
|
return major >= 23 || major === 22 && minor >= 7 || major === 20 && minor >= 18;
|
|
@@ -1391,8 +1390,7 @@ const createStreamBody = (stream, useNativeReadableToWeb = useReadableToWeb) =>
|
|
|
1391
1390
|
}
|
|
1392
1391
|
});
|
|
1393
1392
|
};
|
|
1394
|
-
|
|
1395
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/serve-static.mjs
|
|
1393
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/serve-static.mjs
|
|
1396
1394
|
const COMPRESSIBLE_CONTENT_TYPE_REGEX = /^\s*(?:text\/[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i;
|
|
1397
1395
|
const ENCODINGS = {
|
|
1398
1396
|
br: ".br",
|
|
@@ -1535,8 +1533,7 @@ const serveStatic = (options = { root: "" }) => {
|
|
|
1535
1533
|
return result;
|
|
1536
1534
|
};
|
|
1537
1535
|
};
|
|
1538
|
-
|
|
1539
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/7b19cbfa9f0684e68bc398d56564591a4cdbcb67a12950a659184a25749b2d30/node_modules/@hono/swagger-ui/dist/index.js
|
|
1536
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/7b19cbfa9f0684e68bc398d56564591a4cdbcb67a12950a659184a25749b2d30/node_modules/@hono/swagger-ui/dist/index.js
|
|
1540
1537
|
const RENDER_TYPE = {
|
|
1541
1538
|
STRING_ARRAY: "string_array",
|
|
1542
1539
|
STRING: "string",
|
|
@@ -1641,8 +1638,7 @@ const middleware = (options) => async (c) => {
|
|
|
1641
1638
|
</html>
|
|
1642
1639
|
`);
|
|
1643
1640
|
};
|
|
1644
|
-
|
|
1645
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/utils/errors.js
|
|
1641
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/utils/errors.js
|
|
1646
1642
|
const classRegExp = /^([A-Z][a-z0-9]*)+$/;
|
|
1647
1643
|
const kTypes = [
|
|
1648
1644
|
"string",
|
|
@@ -1808,8 +1804,7 @@ var ERR_STREAM_WRITE_AFTER_END = class extends Error {
|
|
|
1808
1804
|
super(`write after end`);
|
|
1809
1805
|
}
|
|
1810
1806
|
};
|
|
1811
|
-
|
|
1812
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/http-incoming.js
|
|
1807
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/http-incoming.js
|
|
1813
1808
|
const kHeaders = Symbol("kHeaders");
|
|
1814
1809
|
const kHeadersDistinct = Symbol("kHeadersDistinct");
|
|
1815
1810
|
const kHeadersCount = Symbol("kHeadersCount");
|
|
@@ -2063,8 +2058,7 @@ function onError$1(self, error, cb) {
|
|
|
2063
2058
|
if (self.listenerCount("error") === 0) cb();
|
|
2064
2059
|
else cb(error);
|
|
2065
2060
|
}
|
|
2066
|
-
|
|
2067
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/utils/types.js
|
|
2061
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/utils/types.js
|
|
2068
2062
|
function validateString(value, name) {
|
|
2069
2063
|
if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE(name, "string", value);
|
|
2070
2064
|
}
|
|
@@ -2093,20 +2087,17 @@ function validateLinkHeaderValue(hints) {
|
|
|
2093
2087
|
function isUint8Array(value) {
|
|
2094
2088
|
return value != null && value[Symbol.toStringTag] === "Uint8Array";
|
|
2095
2089
|
}
|
|
2096
|
-
|
|
2097
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/internal-http.js
|
|
2090
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/internal-http.js
|
|
2098
2091
|
const kNeedDrain = Symbol("kNeedDrain");
|
|
2099
2092
|
const kOutHeaders = Symbol("kOutHeaders");
|
|
2100
2093
|
function utcDate() {
|
|
2101
2094
|
return (/* @__PURE__ */ new Date()).toUTCString();
|
|
2102
2095
|
}
|
|
2103
|
-
|
|
2104
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/internal-streams-state.js
|
|
2096
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/internal-streams-state.js
|
|
2105
2097
|
function getDefaultHighWaterMark(objectMode) {
|
|
2106
2098
|
return objectMode ? 16 : 65536;
|
|
2107
2099
|
}
|
|
2108
|
-
|
|
2109
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/http-common.js
|
|
2100
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/http-common.js
|
|
2110
2101
|
const tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;
|
|
2111
2102
|
/**
|
|
2112
2103
|
* Verifies that the given val is a valid HTTP token
|
|
@@ -2127,8 +2118,7 @@ function checkInvalidHeaderChar$1(val) {
|
|
|
2127
2118
|
return headerCharRegex$1.test(val);
|
|
2128
2119
|
}
|
|
2129
2120
|
const chunkExpression = /(?:^|\W)chunked(?:$|\W)/i;
|
|
2130
|
-
|
|
2131
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/http-outgoing.js
|
|
2121
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/http-outgoing.js
|
|
2132
2122
|
const kCorked = Symbol("corked");
|
|
2133
2123
|
const kChunkedBuffer = Symbol("kChunkedBuffer");
|
|
2134
2124
|
const kChunkedLength = Symbol("kChunkedLength");
|
|
@@ -2878,8 +2868,7 @@ Object.defineProperties(FetchOutgoingMessage.prototype, {
|
|
|
2878
2868
|
return !this.destroyed && !this.finished && this[kNeedDrain];
|
|
2879
2869
|
} }
|
|
2880
2870
|
});
|
|
2881
|
-
|
|
2882
|
-
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/http-server.js
|
|
2871
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fetch-to-node/2.1.0/75a085586b95f3a18a440f8655a7cb5c851846ab2c5e6ad2c4ae036e3bbaa05c/node_modules/fetch-to-node/dist/fetch-to-node/http-server.js
|
|
2883
2872
|
const headerCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
|
|
2884
2873
|
/**
|
|
2885
2874
|
* True if val contains an invalid field-vchar
|
|
@@ -3156,8 +3145,7 @@ function toFetchResponse(res) {
|
|
|
3156
3145
|
if (!(res instanceof FetchServerResponse)) throw new Error("toFetchResponse must be called on a ServerResponse generated by toReqRes");
|
|
3157
3146
|
return res.fetchResponse;
|
|
3158
3147
|
}
|
|
3159
|
-
|
|
3160
|
-
//#region ../../server-adapters/hono/dist/index.js
|
|
3148
|
+
// ../../server-adapters/hono/dist/index.js
|
|
3161
3149
|
/**
|
|
3162
3150
|
* Propagates a client disconnect to the simulated Node response produced by `toReqRes`.
|
|
3163
3151
|
*
|
|
@@ -4120,9 +4108,8 @@ var MastraServer$2 = class extends MastraServer {
|
|
|
4120
4108
|
});
|
|
4121
4109
|
}
|
|
4122
4110
|
};
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
const uniqueSymbol = Symbol("openapi");
|
|
4111
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.5.0/06e8c618625d16517754fcb9c7d6b15c4c6038a9b9a38e84754db6476b16f4a3/node_modules/hono-openapi/dist/index.js
|
|
4112
|
+
const uniqueSymbol = Symbol.for("hono-openapi");
|
|
4126
4113
|
function describeRoute(spec) {
|
|
4127
4114
|
const middleware = async (_c, next) => {
|
|
4128
4115
|
await next();
|
|
@@ -4133,8 +4120,7 @@ function describeRoute(spec) {
|
|
|
4133
4120
|
});
|
|
4134
4121
|
return Object.assign(middleware, { [uniqueSymbol]: { spec } });
|
|
4135
4122
|
}
|
|
4136
|
-
|
|
4137
|
-
//#region src/server/handlers/agent-learning.ts
|
|
4123
|
+
// src/server/handlers/agent-learning.ts
|
|
4138
4124
|
const DEFAULT_AGENT_LEARNING_ENDPOINT = "https://output.signals.mastra.ai";
|
|
4139
4125
|
const AGENT_LEARNING_TIMEOUT_MS = 8e3;
|
|
4140
4126
|
const LOOPBACK_HOSTS = /* @__PURE__ */ new Set([
|
|
@@ -4181,8 +4167,7 @@ async function agentLearningProxyHandler(c) {
|
|
|
4181
4167
|
return c.json({ error: "Agent Learning upstream unavailable" }, 502);
|
|
4182
4168
|
}
|
|
4183
4169
|
}
|
|
4184
|
-
|
|
4185
|
-
//#region src/server/handlers/client.ts
|
|
4170
|
+
// src/server/handlers/client.ts
|
|
4186
4171
|
const clients = /* @__PURE__ */ new Set();
|
|
4187
4172
|
let hotReloadDisabled = false;
|
|
4188
4173
|
function handleClientsRefreshRequest(abortSignal, devServerInstanceId) {
|
|
@@ -4229,8 +4214,7 @@ function getTriggerClientsRefreshPayload() {
|
|
|
4229
4214
|
function isHotReloadDisabled() {
|
|
4230
4215
|
return hotReloadDisabled;
|
|
4231
4216
|
}
|
|
4232
|
-
|
|
4233
|
-
//#region src/server/handlers/error.ts
|
|
4217
|
+
// src/server/handlers/error.ts
|
|
4234
4218
|
function handleError(error, defaultMessage) {
|
|
4235
4219
|
const apiError = error;
|
|
4236
4220
|
throw new HTTPException(apiError.status || 500, {
|
|
@@ -4250,13 +4234,11 @@ function errorHandler(err, c, isDev) {
|
|
|
4250
4234
|
c.get("mastra").getLogger().error(err);
|
|
4251
4235
|
return c.json({ error: "Internal Server Error" }, 500);
|
|
4252
4236
|
}
|
|
4253
|
-
|
|
4254
|
-
//#region src/server/handlers/health.ts
|
|
4237
|
+
// src/server/handlers/health.ts
|
|
4255
4238
|
async function healthHandler(c) {
|
|
4256
4239
|
return c.json({ success: true }, 200);
|
|
4257
4240
|
}
|
|
4258
|
-
|
|
4259
|
-
//#region src/server/handlers/restart-active-runs.ts
|
|
4241
|
+
// src/server/handlers/restart-active-runs.ts
|
|
4260
4242
|
async function restartAllActiveWorkflowRunsHandler(c) {
|
|
4261
4243
|
try {
|
|
4262
4244
|
const mastra = c.get("mastra");
|
|
@@ -4271,8 +4253,7 @@ async function restartAllActiveWorkflowRunsHandler(c) {
|
|
|
4271
4253
|
return handleError(error, "Error restarting active workflow runs");
|
|
4272
4254
|
}
|
|
4273
4255
|
}
|
|
4274
|
-
|
|
4275
|
-
//#region src/server/handlers/root.ts
|
|
4256
|
+
// src/server/handlers/root.ts
|
|
4276
4257
|
async function rootHandler(c) {
|
|
4277
4258
|
const baseUrl = new URL(c.req.url).origin;
|
|
4278
4259
|
return c.html(`
|
|
@@ -4388,8 +4369,7 @@ async function rootHandler(c) {
|
|
|
4388
4369
|
</html>
|
|
4389
4370
|
`);
|
|
4390
4371
|
}
|
|
4391
|
-
|
|
4392
|
-
//#region src/server/welcome.ts
|
|
4372
|
+
// src/server/welcome.ts
|
|
4393
4373
|
/**
|
|
4394
4374
|
* Trim leading and trailing slashes. Index scan instead of regex to avoid
|
|
4395
4375
|
* backtracking (CodeQL js/polynomial-redos).
|
|
@@ -4817,8 +4797,7 @@ function welcomeHtml(apiPrefix = "/api") {
|
|
|
4817
4797
|
</html>
|
|
4818
4798
|
`;
|
|
4819
4799
|
}
|
|
4820
|
-
|
|
4821
|
-
//#region src/server/index.ts
|
|
4800
|
+
// src/server/index.ts
|
|
4822
4801
|
const getStudioPath = () => {
|
|
4823
4802
|
if (process.env.MASTRA_STUDIO_PATH) return process.env.MASTRA_STUDIO_PATH;
|
|
4824
4803
|
let __dirname = ".";
|
|
@@ -5220,7 +5199,6 @@ async function createNodeServer(mastra, options = { tools: {} }) {
|
|
|
5220
5199
|
}
|
|
5221
5200
|
return server;
|
|
5222
5201
|
}
|
|
5223
|
-
//#endregion
|
|
5224
5202
|
export { createHonoServer, createNodeServer, getToolExports };
|
|
5225
5203
|
|
|
5226
5204
|
//# sourceMappingURL=index.js.map
|