@mastra/deployer 1.82.0 → 1.83.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/{analyze-DNnGuzqf.cjs → analyze-BMEF7WrY.cjs} +17 -4
- package/dist/{analyze-DNnGuzqf.cjs.map → analyze-BMEF7WrY.cjs.map} +1 -1
- package/dist/{analyze-CW9fEusV.js → analyze-CZjd0SOO.js} +18 -26
- package/dist/{analyze-CW9fEusV.js.map → analyze-CZjd0SOO.js.map} +1 -1
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/babel/detect-pino-transports.d.ts +6 -0
- package/dist/build/babel/detect-pino-transports.d.ts.map +1 -1
- package/dist/build/bundler.cjs +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.cjs +5 -5
- package/dist/build/index.js +5 -5
- package/dist/build/plugins/node-modules-extension-resolver.d.ts.map +1 -1
- package/dist/build/plugins/remove-deployer.d.ts.map +1 -1
- package/dist/build/shared/extract-mastra-option.d.ts.map +1 -1
- package/dist/{build-Cc9X11g7.cjs → build-CefteFGe.cjs} +5 -5
- package/dist/{build-Cc9X11g7.cjs.map → build-CefteFGe.cjs.map} +1 -1
- package/dist/{build-PqRB5M-E.js → build-CrmQBpO1.js} +5 -5
- package/dist/{build-PqRB5M-E.js.map → build-CrmQBpO1.js.map} +1 -1
- package/dist/bundler/index.cjs +1 -1
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/{bundler-DRlNM9-F.js → bundler-CID-r2aS.js} +7 -6
- package/dist/bundler-CID-r2aS.js.map +1 -0
- package/dist/{bundler-CbiKhVps.js → bundler-Cl8WL5zI.js} +5 -3
- package/dist/bundler-Cl8WL5zI.js.map +1 -0
- package/dist/{bundler-UKxJsU8E.cjs → bundler-CoDL07Rb.cjs} +5 -3
- package/dist/bundler-CoDL07Rb.cjs.map +1 -0
- package/dist/{bundler-8GO8sXwa.cjs → bundler-fiF6vsGu.cjs} +7 -6
- package/dist/bundler-fiF6vsGu.cjs.map +1 -0
- package/dist/{bundlerOptions-CPMQkWfY.cjs → bundlerOptions-BICFyOWY.cjs} +6 -4
- package/dist/{bundlerOptions-CPMQkWfY.cjs.map → bundlerOptions-BICFyOWY.cjs.map} +1 -1
- package/dist/{bundlerOptions-ScfCrul-.js → bundlerOptions-XBDvJpe6.js} +6 -4
- package/dist/{bundlerOptions-ScfCrul-.js.map → bundlerOptions-XBDvJpe6.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +33 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/rolldown-runtime-CO0Nlsmt.js +23 -0
- package/dist/server/index.cjs +37 -12
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +37 -12
- package/dist/server/index.js.map +1 -1
- package/dist/services/deps.d.ts.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-DbgqQ_yI.cjs → services-B8neClCI.cjs} +52 -5
- package/dist/services-B8neClCI.cjs.map +1 -0
- package/dist/{services-PA2YqqQJ.js → services-BKh9M2E5.js} +51 -5
- package/dist/services-BKh9M2E5.js.map +1 -0
- package/package.json +9 -6
- package/dist/bundler-8GO8sXwa.cjs.map +0 -1
- package/dist/bundler-CbiKhVps.js.map +0 -1
- package/dist/bundler-DRlNM9-F.js.map +0 -1
- package/dist/bundler-UKxJsU8E.cjs.map +0 -1
- package/dist/services-DbgqQ_yI.cjs.map +0 -1
- package/dist/services-PA2YqqQJ.js.map +0 -1
- /package/dist/_types/{@hono_node-server@2.1.5 → @hono_node-server@2.1.6}/dist/index.d.mts +0 -0
- /package/dist/_types/{@hono_node-server@2.1.5 → @hono_node-server@2.1.6}/package.json +0 -0
- /package/dist/_types/{@mastra_hono@1.7.24 → @mastra_hono@1.7.25-alpha.1}/dist/auth-middleware.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.24 → @mastra_hono@1.7.25-alpha.1}/dist/browser-stream/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.24 → @mastra_hono@1.7.25-alpha.1}/dist/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.24 → @mastra_hono@1.7.25-alpha.1}/package.json +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as __toESM, t as __commonJSMin } from "./rolldown-runtime-CO0Nlsmt.js";
|
|
2
2
|
import { i as MastraError, n as ErrorDomain, r as MastraBaseError, t as ErrorCategory } from "./error-BVvc5jcw.js";
|
|
3
3
|
import { a as getPackageName, c as isBuiltinModule, f as rollupSafeName, i as getNodeResolveOptions, l as isDependencyPartOfPackage, m as slash, r as getCompiledDepCachePath, s as isBareModuleSpecifier, u as isExternalProtocolImport } from "./utils-C8gwr-ur.js";
|
|
4
|
-
import {
|
|
4
|
+
import { i as DepsService, o as withPlaceholderVersions } from "./services-BKh9M2E5.js";
|
|
5
|
+
import { a as mastraToolsAliasPlugin, c as removeDeployer, d as moduleAlias, f as getPackageInfo$1, g as esbuild, h as esmShim, i as mastraInternalAliasPlugin, l as protocolExternalResolver, m as getPackageRootPath, o as tsConfigPaths, p as getPackageMetadata, s as subpathExternalsResolver } from "./bundler-Cl8WL5zI.js";
|
|
5
6
|
import { existsSync, readFileSync } from "fs";
|
|
6
7
|
import { readFile, writeFile } from "fs/promises";
|
|
7
8
|
import * as path$1 from "path";
|
|
@@ -23,28 +24,6 @@ import { optimizeLodashImports } from "@optimize-lodash/rollup-plugin";
|
|
|
23
24
|
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
24
25
|
import * as resolve$1 from "resolve.exports";
|
|
25
26
|
import { basename as basename$1 } from "path/posix";
|
|
26
|
-
// \0rolldown/runtime.js
|
|
27
|
-
var __create = Object.create;
|
|
28
|
-
var __defProp = Object.defineProperty;
|
|
29
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
30
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
31
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
32
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
33
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
34
|
-
var __copyProps = (to, from, except, desc) => {
|
|
35
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
36
|
-
key = keys[i];
|
|
37
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
38
|
-
get: ((k) => from[k]).bind(null, key),
|
|
39
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return to;
|
|
43
|
-
};
|
|
44
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
45
|
-
value: mod,
|
|
46
|
-
enumerable: true
|
|
47
|
-
}) : target, mod));
|
|
48
27
|
// ../_internals/find-workspaces/dist/index.js
|
|
49
28
|
var import_stack_trace_parser_cjs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
50
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1282,6 +1261,19 @@ function extractTransportsFromArg(arg) {
|
|
|
1282
1261
|
}
|
|
1283
1262
|
return targets;
|
|
1284
1263
|
}
|
|
1264
|
+
const TRANSPORT_CALL_RE = /[.[]\s*transport\s*\]?\s*[(<]/;
|
|
1265
|
+
const PINO_SOURCE_RE = /['"]pino['"]/;
|
|
1266
|
+
const GLOBAL_PINO_TRANSPORT_RE = /\bpino\s*(?:\.\s*default\s*)?(?:\.\s*transport\b|\[\s*transport\s*\])/;
|
|
1267
|
+
/**
|
|
1268
|
+
* Cheap text pre-check so callers can skip a full Babel parse of large bundles.
|
|
1269
|
+
* Must stay a superset of what `detectPinoTransports` matches: every match needs a
|
|
1270
|
+
* `.transport(` call and either a `'pino'` import/require source or an unbound `pino` identifier.
|
|
1271
|
+
*/
|
|
1272
|
+
function mayContainPinoTransport(code) {
|
|
1273
|
+
if (!code.includes("pino")) return false;
|
|
1274
|
+
if (!TRANSPORT_CALL_RE.test(code)) return false;
|
|
1275
|
+
return PINO_SOURCE_RE.test(code) || GLOBAL_PINO_TRANSPORT_RE.test(code);
|
|
1276
|
+
}
|
|
1285
1277
|
/**
|
|
1286
1278
|
* Babel plugin to detect pino transport targets in code.
|
|
1287
1279
|
* Matches patterns like:
|
|
@@ -1523,7 +1515,7 @@ async function analyzeBundle(entries, mastraEntry, { outputDir, projectRoot, pla
|
|
|
1523
1515
|
alias: bundlerOptions?.alias,
|
|
1524
1516
|
platform
|
|
1525
1517
|
});
|
|
1526
|
-
transformSync(analyzeResult.output.code, {
|
|
1518
|
+
if (mayContainPinoTransport(analyzeResult.output.code)) transformSync(analyzeResult.output.code, {
|
|
1527
1519
|
filename: "pino-detection.js",
|
|
1528
1520
|
plugins: [() => detectPinoTransports(detectedPinoTransports)],
|
|
1529
1521
|
configFile: false,
|
|
@@ -1639,4 +1631,4 @@ async function analyzeBundle(entries, mastraEntry, { outputDir, projectRoot, pla
|
|
|
1639
1631
|
}
|
|
1640
1632
|
export { aliasHono as a, packWorkspaceDependencies as c, bundleExternals as i, checkConfigExport as n, collectTransitiveWorkspaceDependencies as o, normalizeExternals as r, getWorkspaceInformation as s, analyzeBundle as t };
|
|
1641
1633
|
|
|
1642
|
-
//# sourceMappingURL=analyze-
|
|
1634
|
+
//# sourceMappingURL=analyze-CZjd0SOO.js.map
|