@mastra/deployer 1.80.0 → 1.81.0-alpha.1
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/@internal_core/dist/base/index.d.ts +28 -0
- package/dist/_types/@internal_core/dist/index-Diz1p9N7.d.ts +316 -0
- package/dist/_types/@internal_core/dist/logger/index.d.ts +2 -0
- package/dist/_types/@internal_core/package.json +1 -0
- package/dist/_types/@internal_deployer/dist/_types/@internal_core/dist/index-Diz1p9N7.d.ts +316 -0
- package/dist/_types/@internal_deployer/dist/_types/@internal_core/dist/logger/index.d.ts +2 -0
- package/dist/_types/@internal_deployer/dist/bundler.d.ts +79 -0
- package/dist/_types/@internal_deployer/dist/deployer.d.ts +11 -0
- package/dist/_types/@internal_deployer/dist/index.d.ts +4 -0
- package/dist/_types/@internal_deployer/package.json +1 -0
- package/dist/{analyze-CQH2CQM9.js → analyze-BZGcfVSL.js} +4 -4
- package/dist/analyze-BZGcfVSL.js.map +1 -0
- package/dist/{analyze-SxVgkEcB.cjs → analyze-CtWBhASF.cjs} +13 -13
- package/dist/analyze-CtWBhASF.cjs.map +1 -0
- package/dist/build/analyze/analyzeEntry.d.ts +1 -1
- package/dist/build/analyze/analyzeEntry.d.ts.map +1 -1
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.d.ts +4 -4
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/babel/remove-all-options-except.d.ts +1 -1
- package/dist/build/babel/remove-all-options-except.d.ts.map +1 -1
- package/dist/build/bundler.cjs +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/bundlerOptions.d.ts +3 -3
- package/dist/build/bundlerOptions.d.ts.map +1 -1
- package/dist/build/deployer.d.ts +3 -3
- package/dist/build/deployer.d.ts.map +1 -1
- package/dist/build/index.cjs +5 -5
- package/dist/build/index.js +5 -5
- package/dist/build/plugins/esm-shim.d.ts.map +1 -1
- package/dist/build/plugins/remove-all-except.d.ts +1 -1
- package/dist/build/plugins/remove-all-except.d.ts.map +1 -1
- package/dist/build/serverOptions.d.ts +1 -1
- package/dist/build/serverOptions.d.ts.map +1 -1
- package/dist/build/shared/extract-mastra-option.d.ts +1 -1
- package/dist/build/shared/extract-mastra-option.d.ts.map +1 -1
- package/dist/{build-BlmomwDs.js → build-CkZ0xUid.js} +7 -9
- package/dist/build-CkZ0xUid.js.map +1 -0
- package/dist/{build-CXMVTo1j.cjs → build-D0eiANsp.cjs} +8 -10
- package/dist/build-D0eiANsp.cjs.map +1 -0
- package/dist/bundler/index.cjs +6 -506
- package/dist/bundler/index.d.ts +14 -8
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +1 -498
- package/dist/bundler/workspaceDependencies.d.ts +1 -1
- package/dist/bundler/workspaceDependencies.d.ts.map +1 -1
- package/dist/bundler-BBi45M7f.cjs +549 -0
- package/dist/bundler-BBi45M7f.cjs.map +1 -0
- package/dist/bundler-CNgW1Vui.js +516 -0
- package/dist/bundler-CNgW1Vui.js.map +1 -0
- package/dist/{bundler-D3Ky7WCf.js → bundler-C_LpvgiH.js} +2 -2
- package/dist/bundler-C_LpvgiH.js.map +1 -0
- package/dist/{bundler-D_3GyN0N.cjs → bundler-Cb7pRVvA.cjs} +5 -5
- package/dist/bundler-Cb7pRVvA.cjs.map +1 -0
- package/dist/{bundlerOptions-Dgt4ZEo1.cjs → bundlerOptions-BBvSNHFj.cjs} +2 -2
- package/dist/bundlerOptions-BBvSNHFj.cjs.map +1 -0
- package/dist/{bundlerOptions-BtDsaIgs.js → bundlerOptions-BlUHmPBE.js} +2 -2
- package/dist/bundlerOptions-BlUHmPBE.js.map +1 -0
- package/dist/deploy/base.d.ts +1 -1
- package/dist/deploy/base.d.ts.map +1 -1
- package/dist/deploy/log.d.ts +1 -1
- package/dist/deploy/log.d.ts.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 +3 -1
- package/dist/error-BVvc5jcw.js +172 -0
- package/dist/error-BVvc5jcw.js.map +1 -0
- package/dist/error-CR4whExy.cjs +195 -0
- package/dist/error-CR4whExy.cjs.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/server/handlers/a2a.d.ts +31 -31
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/client.d.ts.map +1 -1
- package/dist/server/index.cjs +9 -8
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +9 -8
- package/dist/server/index.js.map +1 -1
- package/dist/services/deps.d.ts +2 -2
- package/dist/services/deps.d.ts.map +1 -1
- package/dist/services/env.d.ts.map +1 -1
- package/dist/services/fs.d.ts.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-BJQJLQs9.js → services-CXZJN9er.js} +294 -5
- package/dist/services-CXZJN9er.js.map +1 -0
- package/dist/{services-Dqx1iouv.cjs → services-CtVt5CJq.cjs} +321 -20
- package/dist/services-CtVt5CJq.cjs.map +1 -0
- package/dist/validator/validate.d.ts.map +1 -1
- package/package.json +10 -8
- package/dist/analyze-CQH2CQM9.js.map +0 -1
- package/dist/analyze-SxVgkEcB.cjs.map +0 -1
- package/dist/build-BlmomwDs.js.map +0 -1
- package/dist/build-CXMVTo1j.cjs.map +0 -1
- package/dist/bundler/index.cjs.map +0 -1
- package/dist/bundler/index.js.map +0 -1
- package/dist/bundler-D3Ky7WCf.js.map +0 -1
- package/dist/bundler-D_3GyN0N.cjs.map +0 -1
- package/dist/bundlerOptions-BtDsaIgs.js.map +0 -1
- package/dist/bundlerOptions-Dgt4ZEo1.cjs.map +0 -1
- package/dist/services-BJQJLQs9.js.map +0 -1
- package/dist/services-Dqx1iouv.cjs.map +0 -1
package/dist/server/index.js
CHANGED
|
@@ -3,8 +3,8 @@ 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";
|
|
6
|
-
import { fileURLToPath } from "url";
|
|
7
6
|
import { Readable, Writable } from "stream";
|
|
7
|
+
import { fileURLToPath } from "url";
|
|
8
8
|
import * as https from "https";
|
|
9
9
|
import { STATUS_CODES, ServerResponse, createServer } from "http";
|
|
10
10
|
import { Http2ServerRequest, constants } from "http2";
|
|
@@ -31,7 +31,7 @@ import "hono/utils/handler";
|
|
|
31
31
|
import "hono/utils/url";
|
|
32
32
|
import "hono/validator";
|
|
33
33
|
import { HTTPException } from "hono/http-exception";
|
|
34
|
-
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.
|
|
34
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.5/c64acaa22e289f28d8358ed7eb315e04e16f012a2b67390803ba774efd774a1e/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);
|
|
@@ -853,7 +853,7 @@ const makeCloseHandler = (req, incoming, outgoing, needsBodyCleanup) => () => {
|
|
|
853
853
|
if (incoming.errored) {
|
|
854
854
|
recordBodyBufferedBeforeDisconnect(incoming);
|
|
855
855
|
req[abortRequest](incoming.errored.toString());
|
|
856
|
-
} else if (!outgoing.writableFinished) {
|
|
856
|
+
} else if (!outgoing.writableFinished || incoming instanceof Http2ServerRequest && incoming.aborted) {
|
|
857
857
|
recordBodyBufferedBeforeDisconnect(incoming);
|
|
858
858
|
req[abortRequest]("Client connection prematurely closed.");
|
|
859
859
|
}
|
|
@@ -1332,7 +1332,7 @@ const serve = (options, listeningListener) => {
|
|
|
1332
1332
|
});
|
|
1333
1333
|
return server;
|
|
1334
1334
|
};
|
|
1335
|
-
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.
|
|
1335
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.5/c64acaa22e289f28d8358ed7eb315e04e16f012a2b67390803ba774efd774a1e/node_modules/@hono/node-server/dist/utils/stream.mjs
|
|
1336
1336
|
const pr54206Applied = () => {
|
|
1337
1337
|
const [major, minor] = versions.node.split(".").map((component) => parseInt(component));
|
|
1338
1338
|
return major >= 23 || major === 22 && minor >= 7 || major === 20 && minor >= 18;
|
|
@@ -1390,7 +1390,7 @@ const createStreamBody = (stream, useNativeReadableToWeb = useReadableToWeb) =>
|
|
|
1390
1390
|
}
|
|
1391
1391
|
});
|
|
1392
1392
|
};
|
|
1393
|
-
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.
|
|
1393
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.5/c64acaa22e289f28d8358ed7eb315e04e16f012a2b67390803ba774efd774a1e/node_modules/@hono/node-server/dist/serve-static.mjs
|
|
1394
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;
|
|
1395
1395
|
const ENCODINGS = {
|
|
1396
1396
|
br: ".br",
|
|
@@ -1460,6 +1460,7 @@ const serveStatic = (options = { root: "" }) => {
|
|
|
1460
1460
|
if (root !== "" && !existsSync(root)) console.error(`serveStatic: root path '${root}' is not found, are you sure it's correct?`);
|
|
1461
1461
|
return async (c, next) => {
|
|
1462
1462
|
if (c.finalized) return next();
|
|
1463
|
+
if (c.req.method !== "GET" && c.req.method !== "HEAD") return next();
|
|
1463
1464
|
let filename;
|
|
1464
1465
|
if (optionPath) filename = optionPath;
|
|
1465
1466
|
else try {
|
|
@@ -1501,7 +1502,7 @@ const serveStatic = (options = { root: "" }) => {
|
|
|
1501
1502
|
const size = stats.size;
|
|
1502
1503
|
const range = c.req.header("range") || "";
|
|
1503
1504
|
c.header("Last-Modified", stats.mtime.toUTCString());
|
|
1504
|
-
if (c.req.method
|
|
1505
|
+
if (c.req.method === "HEAD") {
|
|
1505
1506
|
c.header("Content-Length", size.toString());
|
|
1506
1507
|
c.status(200);
|
|
1507
1508
|
result = c.body(null);
|
|
@@ -1533,7 +1534,7 @@ const serveStatic = (options = { root: "" }) => {
|
|
|
1533
1534
|
return result;
|
|
1534
1535
|
};
|
|
1535
1536
|
};
|
|
1536
|
-
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/
|
|
1537
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/fe1b4a78fef400a9bb4ccec4e91cddbbd9b43706afe50dd3266b2297c015e5bf/node_modules/@hono/swagger-ui/dist/index.js
|
|
1537
1538
|
const RENDER_TYPE = {
|
|
1538
1539
|
STRING_ARRAY: "string_array",
|
|
1539
1540
|
STRING: "string",
|
|
@@ -4108,7 +4109,7 @@ var MastraServer$2 = class extends MastraServer {
|
|
|
4108
4109
|
});
|
|
4109
4110
|
}
|
|
4110
4111
|
};
|
|
4111
|
-
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.5.0/
|
|
4112
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.5.0/aba075f9c000905a9976a3be5624e02cbca659679195a7801fa8cc48a73fcf35/node_modules/hono-openapi/dist/index.js
|
|
4112
4113
|
const uniqueSymbol = Symbol.for("hono-openapi");
|
|
4113
4114
|
function describeRoute(spec) {
|
|
4114
4115
|
const middleware = async (_c, next) => {
|