@mastra/deployer 1.86.0-alpha.5 → 1.86.0-alpha.7
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-nF1WWQyX.js → analyze-BjEzp-Bs.js} +5 -4
- package/dist/{analyze-D2rLrvfs.cjs → analyze-NnCa8kOb.cjs} +5 -4
- package/dist/arktype-aI7TBD0R-CA70n59_.cjs +0 -2
- package/dist/arktype-aI7TBD0R-cDMJgbIj.js +0 -2
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/index.cjs +3 -3
- package/dist/build/index.js +3 -3
- package/dist/{build-Df3yvOA7.cjs → build-OLJdK6FY.cjs} +2 -4
- package/dist/{build-DOrefH60.js → build-cBprMNoP.js} +2 -4
- package/dist/bundler/index.cjs +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/bundler-BX2HMBEc.js +0 -2
- package/dist/{bundler-BLVFCaU7.js → bundler-Cr8qMPp1.js} +8 -6
- package/dist/bundler-N6zbYjHG.cjs +0 -2
- package/dist/{bundler-CpVrkklZ.cjs → bundler-_xHFGvEr.cjs} +8 -6
- package/dist/bundlerOptions-CNcBNp_E.cjs +0 -2
- package/dist/bundlerOptions-c8B4wLqe.js +0 -2
- package/dist/core-DM6JYCRs.js +0 -2
- package/dist/core-Dw6oRE58.cjs +0 -2
- package/dist/deploy/log.d.ts +7 -1
- package/dist/dist-4VwpGp6C.cjs +0 -2
- package/dist/dist-CId9bb_J.js +0 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +18 -8
- package/dist/effect-QlVUlMFu-AhgmGdMj.cjs +0 -2
- package/dist/effect-QlVUlMFu-BUdj03Tb.js +0 -2
- package/dist/error-BVvc5jcw.js +0 -2
- package/dist/error-CR4whExy.cjs +0 -2
- package/dist/esm-CTYQPwZr.js +0 -2
- package/dist/esm-DCHnJS63.cjs +0 -2
- package/dist/index-CLddUTqr-CeV0aeBL.cjs +0 -2
- package/dist/index-CLddUTqr-FaVhUOQu.js +0 -2
- package/dist/index.cjs +5 -5
- package/dist/index.js +4 -6
- package/dist/server/index.cjs +0 -2
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +0 -2
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-BKh9M2E5.js → services-C4uFF7g6.js} +51 -18
- package/dist/{services-B8neClCI.cjs → services-DgfLvRCc.cjs} +62 -17
- package/dist/sury-CWZTCd75-CEZXDAeW.cjs +0 -2
- package/dist/sury-CWZTCd75-DOXpSi96.js +0 -2
- package/dist/typebox-Dei93FPO-BOIkUnIO.js +0 -2
- package/dist/typebox-Dei93FPO-Br8qsfny.cjs +0 -2
- package/dist/utils-C8gwr-ur.js +0 -2
- package/dist/utils-CDNA_ewa.cjs +0 -2
- package/dist/valibot--1zFm7rT-B84p7SXG.cjs +0 -2
- package/dist/valibot--1zFm7rT-BD4syL2V.js +0 -2
- package/dist/validator/custom-resolver.cjs +0 -2
- package/dist/validator/custom-resolver.js +0 -2
- package/dist/validator/loader.cjs +0 -2
- package/dist/validator/loader.js +0 -2
- package/dist/zod-Bwrt9trS-0iZO7FLc.js +0 -2
- package/dist/zod-Bwrt9trS-BoI5Bg-K.cjs +0 -2
- package/package.json +8 -7
- package/dist/analyze-D2rLrvfs.cjs.map +0 -1
- package/dist/analyze-nF1WWQyX.js.map +0 -1
- package/dist/arktype-aI7TBD0R-CA70n59_.cjs.map +0 -1
- package/dist/arktype-aI7TBD0R-cDMJgbIj.js.map +0 -1
- package/dist/build/analyze/analyzeEntry.d.ts.map +0 -1
- package/dist/build/analyze/bundleExternals.d.ts.map +0 -1
- package/dist/build/analyze/constants.d.ts.map +0 -1
- package/dist/build/analyze/externals.d.ts.map +0 -1
- package/dist/build/analyze.d.ts.map +0 -1
- package/dist/build/analyzeEntryProjectType.d.ts.map +0 -1
- package/dist/build/babel/check-config-export.d.ts.map +0 -1
- package/dist/build/babel/detect-pino-transports.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-except.d.ts.map +0 -1
- package/dist/build/babel/remove-deployer.d.ts.map +0 -1
- package/dist/build/babel/remove-non-referenced-nodes.d.ts.map +0 -1
- package/dist/build/bundler.d.ts.map +0 -1
- package/dist/build/bundlerOptions.d.ts.map +0 -1
- package/dist/build/deployer.d.ts.map +0 -1
- package/dist/build/fs-routing/codegen.d.ts.map +0 -1
- package/dist/build/fs-routing/discover.d.ts.map +0 -1
- package/dist/build/fs-routing/mirror.d.ts.map +0 -1
- package/dist/build/fs-routing/prepare.d.ts.map +0 -1
- package/dist/build/index.d.ts.map +0 -1
- package/dist/build/isNodeBuiltin.d.ts.map +0 -1
- package/dist/build/package-info.d.ts.map +0 -1
- package/dist/build/plugins/esbuild.d.ts.map +0 -1
- package/dist/build/plugins/esm-shim.d.ts.map +0 -1
- package/dist/build/plugins/hono-alias.d.ts.map +0 -1
- package/dist/build/plugins/local-storage-detector.d.ts.map +0 -1
- package/dist/build/plugins/module-alias.d.ts.map +0 -1
- package/dist/build/plugins/module-resolve-map.d.ts.map +0 -1
- package/dist/build/plugins/node-gyp-detector.d.ts.map +0 -1
- package/dist/build/plugins/node-modules-extension-resolver.d.ts.map +0 -1
- package/dist/build/plugins/pino.d.ts.map +0 -1
- package/dist/build/plugins/protocol-external-resolver.d.ts.map +0 -1
- package/dist/build/plugins/remove-all-except.d.ts.map +0 -1
- package/dist/build/plugins/remove-deployer.d.ts.map +0 -1
- package/dist/build/plugins/remove-unused-references.d.ts.map +0 -1
- package/dist/build/plugins/subpath-externals-resolver.d.ts.map +0 -1
- package/dist/build/plugins/tsconfig-paths.d.ts.map +0 -1
- package/dist/build/plugins/workspace-deps-watcher.d.ts.map +0 -1
- package/dist/build/serverOptions.d.ts.map +0 -1
- package/dist/build/shared/extract-mastra-option.d.ts.map +0 -1
- package/dist/build/types.d.ts.map +0 -1
- package/dist/build/utils.d.ts.map +0 -1
- package/dist/build/watcher.d.ts.map +0 -1
- package/dist/build-DOrefH60.js.map +0 -1
- package/dist/build-Df3yvOA7.cjs.map +0 -1
- package/dist/bundler/index.d.ts.map +0 -1
- package/dist/bundler/workspaceDependencies.d.ts.map +0 -1
- package/dist/bundler-BLVFCaU7.js.map +0 -1
- package/dist/bundler-BX2HMBEc.js.map +0 -1
- package/dist/bundler-CpVrkklZ.cjs.map +0 -1
- package/dist/bundler-N6zbYjHG.cjs.map +0 -1
- package/dist/bundlerOptions-CNcBNp_E.cjs.map +0 -1
- package/dist/bundlerOptions-c8B4wLqe.js.map +0 -1
- package/dist/core-DM6JYCRs.js.map +0 -1
- package/dist/core-Dw6oRE58.cjs.map +0 -1
- package/dist/deploy/base.d.ts.map +0 -1
- package/dist/deploy/index.d.ts.map +0 -1
- package/dist/deploy/log.d.ts.map +0 -1
- package/dist/dist-4VwpGp6C.cjs.map +0 -1
- package/dist/dist-CId9bb_J.js.map +0 -1
- package/dist/effect-QlVUlMFu-AhgmGdMj.cjs.map +0 -1
- package/dist/effect-QlVUlMFu-BUdj03Tb.js.map +0 -1
- package/dist/error-BVvc5jcw.js.map +0 -1
- package/dist/error-CR4whExy.cjs.map +0 -1
- package/dist/esm-CTYQPwZr.js.map +0 -1
- package/dist/esm-DCHnJS63.cjs.map +0 -1
- package/dist/index-CLddUTqr-CeV0aeBL.cjs.map +0 -1
- package/dist/index-CLddUTqr-FaVhUOQu.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/server/handlers/a2a.d.ts.map +0 -1
- package/dist/server/handlers/agent-learning.d.ts.map +0 -1
- package/dist/server/handlers/client.d.ts.map +0 -1
- package/dist/server/handlers/error.d.ts.map +0 -1
- package/dist/server/handlers/health.d.ts.map +0 -1
- package/dist/server/handlers/restart-active-runs.d.ts.map +0 -1
- package/dist/server/handlers/root.d.ts.map +0 -1
- package/dist/server/handlers/utils/query-parsers.d.ts.map +0 -1
- package/dist/server/handlers/utils.d.ts.map +0 -1
- package/dist/server/index.cjs.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/openapi.script.d.ts.map +0 -1
- package/dist/server/types.d.ts.map +0 -1
- package/dist/server/welcome.d.ts.map +0 -1
- package/dist/services/deps.d.ts.map +0 -1
- package/dist/services/env.d.ts.map +0 -1
- package/dist/services/fs.d.ts.map +0 -1
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services-B8neClCI.cjs.map +0 -1
- package/dist/services-BKh9M2E5.js.map +0 -1
- package/dist/sury-CWZTCd75-CEZXDAeW.cjs.map +0 -1
- package/dist/sury-CWZTCd75-DOXpSi96.js.map +0 -1
- package/dist/typebox-Dei93FPO-BOIkUnIO.js.map +0 -1
- package/dist/typebox-Dei93FPO-Br8qsfny.cjs.map +0 -1
- package/dist/utils-C8gwr-ur.js.map +0 -1
- package/dist/utils-CDNA_ewa.cjs.map +0 -1
- package/dist/valibot--1zFm7rT-B84p7SXG.cjs.map +0 -1
- package/dist/valibot--1zFm7rT-BD4syL2V.js.map +0 -1
- package/dist/validator/custom-resolver.cjs.map +0 -1
- package/dist/validator/custom-resolver.d.ts.map +0 -1
- package/dist/validator/custom-resolver.js.map +0 -1
- package/dist/validator/loader.cjs.map +0 -1
- package/dist/validator/loader.d.ts.map +0 -1
- package/dist/validator/loader.js.map +0 -1
- package/dist/validator/validate.d.ts.map +0 -1
- package/dist/zod-Bwrt9trS-0iZO7FLc.js.map +0 -1
- package/dist/zod-Bwrt9trS-BoI5Bg-K.cjs.map +0 -1
- /package/dist/_types/{@mastra_hono@1.7.28-alpha.5 → @mastra_hono@1.7.28-alpha.7}/dist/auth-middleware.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.28-alpha.5 → @mastra_hono@1.7.28-alpha.7}/dist/browser-stream/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.28-alpha.5 → @mastra_hono@1.7.28-alpha.7}/dist/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.28-alpha.5 → @mastra_hono@1.7.28-alpha.7}/package.json +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
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 { i as DepsService, o as withPlaceholderVersions } from "./services-
|
|
4
|
+
import { i as DepsService, o as withPlaceholderVersions } from "./services-C4uFF7g6.js";
|
|
5
5
|
import { _ as esbuild, a as mastraToolsAliasPlugin, c as removeDeployer, d as moduleAlias, f as getPackageInfo$1, g as esmShim, h as isOptionalPeerOfImporter, i as mastraInternalAliasPlugin, l as protocolExternalResolver, m as getPackageRootPath, o as tsConfigPaths, p as getPackageMetadata, s as subpathExternalsResolver } from "./bundler-BX2HMBEc.js";
|
|
6
6
|
import { existsSync, readFileSync } from "fs";
|
|
7
7
|
import { readFile, writeFile } from "fs/promises";
|
|
@@ -197,7 +197,10 @@ async function findWorkspaces(dirname$1, options = {}) {
|
|
|
197
197
|
function toManifestGlobs(globs) {
|
|
198
198
|
return globs.map((pattern) => {
|
|
199
199
|
const negated = pattern.startsWith("!");
|
|
200
|
-
const
|
|
200
|
+
const body = negated ? pattern.slice(1) : pattern;
|
|
201
|
+
let end = body.length;
|
|
202
|
+
while (end > 0 && (body[end - 1] === "/" || body[end - 1] === "\\")) end--;
|
|
203
|
+
const base = body.slice(0, end);
|
|
201
204
|
return `${negated ? "!" : ""}${base}/package.json`;
|
|
202
205
|
});
|
|
203
206
|
}
|
|
@@ -1684,5 +1687,3 @@ async function analyzeBundle(entries, mastraEntry, { outputDir, projectRoot, pla
|
|
|
1684
1687
|
};
|
|
1685
1688
|
}
|
|
1686
1689
|
export { normalizeExternals as a, packWorkspaceDependencies as c, aliasHono as i, checkConfigExport as n, collectTransitiveWorkspaceDependencies as o, bundleExternals as r, getWorkspaceInformation as s, analyzeBundle as t };
|
|
1687
|
-
|
|
1688
|
-
//# sourceMappingURL=analyze-nF1WWQyX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Bc0pwXKd.cjs");
|
|
2
2
|
const require_error = require("./error-CR4whExy.cjs");
|
|
3
3
|
const require_utils = require("./utils-CDNA_ewa.cjs");
|
|
4
|
-
const require_services = require("./services-
|
|
4
|
+
const require_services = require("./services-DgfLvRCc.cjs");
|
|
5
5
|
const require_bundler = require("./bundler-N6zbYjHG.cjs");
|
|
6
6
|
let fs = require("fs");
|
|
7
7
|
let fs_promises = require("fs/promises");
|
|
@@ -205,7 +205,10 @@ async function findWorkspaces(dirname$1, options = {}) {
|
|
|
205
205
|
function toManifestGlobs(globs) {
|
|
206
206
|
return globs.map((pattern) => {
|
|
207
207
|
const negated = pattern.startsWith("!");
|
|
208
|
-
const
|
|
208
|
+
const body = negated ? pattern.slice(1) : pattern;
|
|
209
|
+
let end = body.length;
|
|
210
|
+
while (end > 0 && (body[end - 1] === "/" || body[end - 1] === "\\")) end--;
|
|
211
|
+
const base = body.slice(0, end);
|
|
209
212
|
return `${negated ? "!" : ""}${base}/package.json`;
|
|
210
213
|
});
|
|
211
214
|
}
|
|
@@ -1739,5 +1742,3 @@ Object.defineProperty(exports, "packWorkspaceDependencies", {
|
|
|
1739
1742
|
return packWorkspaceDependencies;
|
|
1740
1743
|
}
|
|
1741
1744
|
});
|
|
1742
|
-
|
|
1743
|
-
//# sourceMappingURL=analyze-D2rLrvfs.cjs.map
|
package/dist/build/analyze.cjs
CHANGED
package/dist/build/analyze.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as analyzeBundle } from "../analyze-
|
|
1
|
+
export { t as analyzeBundle } from "../analyze-BjEzp-Bs.js";
|
package/dist/build/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_services = require("../services-
|
|
3
|
-
const require_analyze = require("../analyze-
|
|
2
|
+
const require_services = require("../services-DgfLvRCc.cjs");
|
|
3
|
+
const require_analyze = require("../analyze-NnCa8kOb.cjs");
|
|
4
4
|
const require_utils = require("../utils-CDNA_ewa.cjs");
|
|
5
5
|
const require_bundler = require("../bundler-N6zbYjHG.cjs");
|
|
6
6
|
const require_bundlerOptions = require("../bundlerOptions-CNcBNp_E.cjs");
|
|
7
|
-
const require_build = require("../build-
|
|
7
|
+
const require_build = require("../build-OLJdK6FY.cjs");
|
|
8
8
|
exports.Deps = require_services.Deps;
|
|
9
9
|
exports.FileService = require_services.FileService;
|
|
10
10
|
exports.analyzeBundle = require_analyze.analyzeBundle;
|
package/dist/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as Deps, t as FileService } from "../services-
|
|
2
|
-
import { t as analyzeBundle } from "../analyze-
|
|
1
|
+
import { r as Deps, t as FileService } from "../services-C4uFF7g6.js";
|
|
2
|
+
import { t as analyzeBundle } from "../analyze-BjEzp-Bs.js";
|
|
3
3
|
import { d as normalizeStudioBase, n as escapeStudioHtmlValue, o as injectStudioHtmlConfig, t as detectRuntime } from "../utils-C8gwr-ur.js";
|
|
4
4
|
import { n as getInputOptions, t as createBundler } from "../bundler-BX2HMBEc.js";
|
|
5
5
|
import { n as extractMastraOption, t as getBundlerOptions } from "../bundlerOptions-c8B4wLqe.js";
|
|
6
|
-
import { a as generateFsWorkflowsCodegen, c as discoverFsWorkflows, d as createWatcher, f as getInputOptions$1, i as generateFsAgentsModule, l as getServerOptions, n as prepareFsAgentsEntry, o as discoverFsAgents, r as writeFsAgentsEntry, s as discoverFsSingleton, t as mirrorFsAgentWorkspaces, u as analyzeEntryProjectType } from "../build-
|
|
6
|
+
import { a as generateFsWorkflowsCodegen, c as discoverFsWorkflows, d as createWatcher, f as getInputOptions$1, i as generateFsAgentsModule, l as getServerOptions, n as prepareFsAgentsEntry, o as discoverFsAgents, r as writeFsAgentsEntry, s as discoverFsSingleton, t as mirrorFsAgentWorkspaces, u as analyzeEntryProjectType } from "../build-cBprMNoP.js";
|
|
7
7
|
export { Deps, FileService, analyzeBundle, analyzeEntryProjectType, createBundler, createWatcher, detectRuntime, discoverFsAgents, discoverFsSingleton, discoverFsWorkflows, escapeStudioHtmlValue, extractMastraOption, generateFsAgentsModule, generateFsWorkflowsCodegen, getInputOptions as getBundlerInputOptions, getBundlerOptions, getServerOptions, getInputOptions$1 as getWatcherInputOptions, injectStudioHtmlConfig, mirrorFsAgentWorkspaces, normalizeStudioBase, prepareFsAgentsEntry, writeFsAgentsEntry };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Bc0pwXKd.cjs");
|
|
2
2
|
const require_bundler = require("./bundler-N6zbYjHG.cjs");
|
|
3
|
-
const require_services = require("./services-
|
|
4
|
-
const require_analyze = require("./analyze-
|
|
3
|
+
const require_services = require("./services-DgfLvRCc.cjs");
|
|
4
|
+
const require_analyze = require("./analyze-NnCa8kOb.cjs");
|
|
5
5
|
const require_utils = require("./utils-CDNA_ewa.cjs");
|
|
6
6
|
const require_bundlerOptions = require("./bundlerOptions-CNcBNp_E.cjs");
|
|
7
7
|
let fs = require("fs");
|
|
@@ -1218,5 +1218,3 @@ Object.defineProperty(exports, "writeFsAgentsEntry", {
|
|
|
1218
1218
|
return writeFsAgentsEntry;
|
|
1219
1219
|
}
|
|
1220
1220
|
});
|
|
1221
|
-
|
|
1222
|
-
//# sourceMappingURL=build-Df3yvOA7.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as getInputOptions$1, o as tsConfigPaths, u as nodeModulesExtensionResolver } from "./bundler-BX2HMBEc.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as normalizeExternals, i as aliasHono, n as checkConfigExport, r as bundleExternals, s as getWorkspaceInformation, t as analyzeBundle } from "./analyze-
|
|
2
|
+
import { f as noopLogger } from "./services-C4uFF7g6.js";
|
|
3
|
+
import { a as normalizeExternals, i as aliasHono, n as checkConfigExport, r as bundleExternals, s as getWorkspaceInformation, t as analyzeBundle } from "./analyze-BjEzp-Bs.js";
|
|
4
4
|
import { a as getPackageName, m as slash } from "./utils-C8gwr-ur.js";
|
|
5
5
|
import { n as extractMastraOption } from "./bundlerOptions-c8B4wLqe.js";
|
|
6
6
|
import { existsSync } from "fs";
|
|
@@ -1145,5 +1145,3 @@ async function mirrorFsAgentWorkspaces(mastraDir, bundleDir) {
|
|
|
1145
1145
|
return mirrored;
|
|
1146
1146
|
}
|
|
1147
1147
|
export { generateFsWorkflowsCodegen as a, discoverFsWorkflows as c, createWatcher as d, getInputOptions as f, generateFsAgentsModule as i, getServerOptions as l, prepareFsAgentsEntry as n, discoverFsAgents as o, writeFsAgentsEntry as r, discoverFsSingleton as s, mirrorFsAgentWorkspaces as t, analyzeEntryProjectType as u };
|
|
1148
|
-
|
|
1149
|
-
//# sourceMappingURL=build-DOrefH60.js.map
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_bundler = require("../bundler-
|
|
2
|
+
const require_bundler = require("../bundler-_xHFGvEr.cjs");
|
|
3
3
|
exports.Bundler = require_bundler.Bundler;
|
|
4
4
|
exports.IS_DEFAULT = require_bundler.IS_DEFAULT;
|
|
5
5
|
exports.applySourceDependencyRange = require_bundler.applySourceDependencyRange;
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Bundler, n as IS_DEFAULT, r as applySourceDependencyRange, i as getSourceDependencyConstraints, a as isRegistryVersionSpec } from "../bundler-
|
|
1
|
+
export { t as Bundler, n as IS_DEFAULT, r as applySourceDependencyRange, i as getSourceDependencyConstraints, a as isRegistryVersionSpec } from "../bundler-Cr8qMPp1.js";
|
package/dist/bundler-BX2HMBEc.js
CHANGED
|
@@ -1095,5 +1095,3 @@ function getUnresolvedWorkspaceImport(warning, workspaceMap) {
|
|
|
1095
1095
|
if (pkgName && workspaceMap.has(pkgName)) return src;
|
|
1096
1096
|
}
|
|
1097
1097
|
export { esbuild as _, mastraToolsAliasPlugin as a, removeDeployer as c, moduleAlias as d, getPackageInfo$1 as f, esmShim as g, isOptionalPeerOfImporter as h, mastraInternalAliasPlugin as i, protocolExternalResolver as l, getPackageRootPath as m, getInputOptions as n, tsConfigPaths as o, getPackageMetadata as p, getUnresolvedWorkspaceImport as r, subpathExternalsResolver as s, createBundler as t, nodeModulesExtensionResolver as u };
|
|
1098
|
-
|
|
1099
|
-
//# sourceMappingURL=bundler-BX2HMBEc.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as MastraBase, i as DepsService, t as FileService } from "./services-C4uFF7g6.js";
|
|
2
2
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "./error-BVvc5jcw.js";
|
|
3
|
-
import { c as packWorkspaceDependencies, o as collectTransitiveWorkspaceDependencies, s as getWorkspaceInformation, t as analyzeBundle } from "./analyze-
|
|
3
|
+
import { c as packWorkspaceDependencies, o as collectTransitiveWorkspaceDependencies, s as getWorkspaceInformation, t as analyzeBundle } from "./analyze-BjEzp-Bs.js";
|
|
4
4
|
import { n as getInputOptions, r as getUnresolvedWorkspaceImport, t as createBundler } from "./bundler-BX2HMBEc.js";
|
|
5
5
|
import { t as getBundlerOptions } from "./bundlerOptions-c8B4wLqe.js";
|
|
6
6
|
import { a as getPackageName, m as slash, p as shouldSkipInstall, s as isBareModuleSpecifier } from "./utils-C8gwr-ur.js";
|
|
@@ -36,8 +36,12 @@ const PACKAGE_NAME_PATTERN = /^(?:@[A-Za-z0-9._-]+\/)?[A-Za-z0-9._-]+$/;
|
|
|
36
36
|
const TARBALL_SUFFIX_PATTERN = /\.(?:tgz|tar\.gz|tar)$/i;
|
|
37
37
|
/** npm reads a value starting like this as a path, whatever follows. A bare `~` is a semver range. */
|
|
38
38
|
const FILE_SPEC_PREFIX_PATTERN = /^(?:\.|~[/\\]|[/\\]|[A-Za-z]:[/\\])/;
|
|
39
|
-
/**
|
|
40
|
-
|
|
39
|
+
/**
|
|
40
|
+
* A range admitting any published version: `*`, `x`, `>=0`, and any union containing one.
|
|
41
|
+
* The leading `\s` alternative already absorbs padding; an extra `\s*` there kept the
|
|
42
|
+
* pattern quadratic on long whitespace runs.
|
|
43
|
+
*/
|
|
44
|
+
const UNBOUNDED_RANGE_PATTERN = /(?:^|\|\||\s)(?:[*xX]|>=?\s*0(?:\.0)*)\s*(?:$|\|\|)/;
|
|
41
45
|
const toStringRecord = (value) => {
|
|
42
46
|
if (!value || typeof value !== "object" || Array.isArray(value)) return {};
|
|
43
47
|
return Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === "string"));
|
|
@@ -529,5 +533,3 @@ export const tools = [${toolsExports.join(", ")}]`);
|
|
|
529
533
|
}
|
|
530
534
|
};
|
|
531
535
|
export { isRegistryVersionSpec as a, getSourceDependencyConstraints as i, IS_DEFAULT as n, applySourceDependencyRange as r, Bundler as t };
|
|
532
|
-
|
|
533
|
-
//# sourceMappingURL=bundler-BLVFCaU7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Bc0pwXKd.cjs");
|
|
2
|
-
const require_services = require("./services-
|
|
2
|
+
const require_services = require("./services-DgfLvRCc.cjs");
|
|
3
3
|
const require_error = require("./error-CR4whExy.cjs");
|
|
4
|
-
const require_analyze = require("./analyze-
|
|
4
|
+
const require_analyze = require("./analyze-NnCa8kOb.cjs");
|
|
5
5
|
const require_bundler = require("./bundler-N6zbYjHG.cjs");
|
|
6
6
|
const require_bundlerOptions = require("./bundlerOptions-CNcBNp_E.cjs");
|
|
7
7
|
const require_utils = require("./utils-CDNA_ewa.cjs");
|
|
@@ -40,8 +40,12 @@ const PACKAGE_NAME_PATTERN = /^(?:@[A-Za-z0-9._-]+\/)?[A-Za-z0-9._-]+$/;
|
|
|
40
40
|
const TARBALL_SUFFIX_PATTERN = /\.(?:tgz|tar\.gz|tar)$/i;
|
|
41
41
|
/** npm reads a value starting like this as a path, whatever follows. A bare `~` is a semver range. */
|
|
42
42
|
const FILE_SPEC_PREFIX_PATTERN = /^(?:\.|~[/\\]|[/\\]|[A-Za-z]:[/\\])/;
|
|
43
|
-
/**
|
|
44
|
-
|
|
43
|
+
/**
|
|
44
|
+
* A range admitting any published version: `*`, `x`, `>=0`, and any union containing one.
|
|
45
|
+
* The leading `\s` alternative already absorbs padding; an extra `\s*` there kept the
|
|
46
|
+
* pattern quadratic on long whitespace runs.
|
|
47
|
+
*/
|
|
48
|
+
const UNBOUNDED_RANGE_PATTERN = /(?:^|\|\||\s)(?:[*xX]|>=?\s*0(?:\.0)*)\s*(?:$|\|\|)/;
|
|
45
49
|
const toStringRecord = (value) => {
|
|
46
50
|
if (!value || typeof value !== "object" || Array.isArray(value)) return {};
|
|
47
51
|
return Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === "string"));
|
|
@@ -562,5 +566,3 @@ Object.defineProperty(exports, "isRegistryVersionSpec", {
|
|
|
562
566
|
return isRegistryVersionSpec;
|
|
563
567
|
}
|
|
564
568
|
});
|
|
565
|
-
|
|
566
|
-
//# sourceMappingURL=bundler-CpVrkklZ.cjs.map
|
package/dist/core-DM6JYCRs.js
CHANGED
package/dist/core-Dw6oRE58.cjs
CHANGED
package/dist/deploy/log.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { Writable } from 'node:stream';
|
|
2
2
|
import type { IMastraLogger } from '../_types/@internal_core@0.1.4/dist/logger/index.js';
|
|
3
3
|
export declare const createPinoStream: (logger: IMastraLogger) => Writable;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function toWindowsShellArg(arg: string): string;
|
|
5
|
+
export declare function toWindowsShellArgs(bin: string, args: string[]): string[];
|
|
6
|
+
export declare function createChildProcessLogger({ logger, root, platform, windowsShell, }: {
|
|
5
7
|
logger: IMastraLogger;
|
|
6
8
|
root: string;
|
|
9
|
+
/** Override for tests that replay the Windows `.cmd` path on another OS. */
|
|
10
|
+
platform?: NodeJS.Platform;
|
|
11
|
+
/** cmd.exe stand-in. Production uses `ComSpec` or `cmd.exe`. */
|
|
12
|
+
windowsShell?: string;
|
|
7
13
|
}): ({ cmd, args, env }: {
|
|
8
14
|
cmd: string;
|
|
9
15
|
args: string[];
|
package/dist/dist-4VwpGp6C.cjs
CHANGED
package/dist/dist-CId9bb_J.js
CHANGED
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-deployer
|
|
|
3
3
|
description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/deployer"
|
|
6
|
-
version: "1.86.0-alpha.
|
|
6
|
+
version: "1.86.0-alpha.7"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.86.0-alpha.
|
|
2
|
+
"version": "1.86.0-alpha.7",
|
|
3
3
|
"package": "@mastra/deployer",
|
|
4
4
|
"exports": {
|
|
5
5
|
"Deployer": {
|
|
@@ -9,28 +9,38 @@
|
|
|
9
9
|
},
|
|
10
10
|
"Deps": {
|
|
11
11
|
"types": "dist/services/deps.d.ts",
|
|
12
|
-
"implementation": "dist/services-
|
|
13
|
-
"line":
|
|
12
|
+
"implementation": "dist/services-C4uFF7g6.js",
|
|
13
|
+
"line": 859
|
|
14
14
|
},
|
|
15
15
|
"FileService": {
|
|
16
16
|
"types": "dist/services/fs.d.ts",
|
|
17
|
-
"implementation": "dist/services-
|
|
18
|
-
"line":
|
|
17
|
+
"implementation": "dist/services-C4uFF7g6.js",
|
|
18
|
+
"line": 1290
|
|
19
19
|
},
|
|
20
20
|
"createChildProcessLogger": {
|
|
21
21
|
"types": "dist/deploy/log.d.ts",
|
|
22
|
-
"implementation": "dist/services-
|
|
23
|
-
"line":
|
|
22
|
+
"implementation": "dist/services-C4uFF7g6.js",
|
|
23
|
+
"line": 339
|
|
24
24
|
},
|
|
25
25
|
"createPinoStream": {
|
|
26
26
|
"types": "dist/deploy/log.d.ts",
|
|
27
|
-
"implementation": "dist/services-
|
|
27
|
+
"implementation": "dist/services-C4uFF7g6.js",
|
|
28
28
|
"line": 303
|
|
29
29
|
},
|
|
30
30
|
"getDeployer": {
|
|
31
31
|
"types": "dist/build/deployer.d.ts",
|
|
32
32
|
"implementation": "dist/index.js",
|
|
33
33
|
"line": 21
|
|
34
|
+
},
|
|
35
|
+
"toWindowsShellArg": {
|
|
36
|
+
"types": "dist/deploy/log.d.ts",
|
|
37
|
+
"implementation": "dist/services-C4uFF7g6.js",
|
|
38
|
+
"line": 326
|
|
39
|
+
},
|
|
40
|
+
"toWindowsShellArgs": {
|
|
41
|
+
"types": "dist/deploy/log.d.ts",
|
|
42
|
+
"implementation": "dist/services-C4uFF7g6.js",
|
|
43
|
+
"line": 333
|
|
34
44
|
}
|
|
35
45
|
},
|
|
36
46
|
"modules": {}
|
package/dist/error-BVvc5jcw.js
CHANGED
package/dist/error-CR4whExy.cjs
CHANGED
package/dist/esm-CTYQPwZr.js
CHANGED
package/dist/esm-DCHnJS63.cjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_bundler = require("./bundler-
|
|
3
|
-
const require_services = require("./services-
|
|
4
|
-
require("./build-
|
|
2
|
+
const require_bundler = require("./bundler-_xHFGvEr.cjs");
|
|
3
|
+
const require_services = require("./services-DgfLvRCc.cjs");
|
|
4
|
+
require("./build-OLJdK6FY.cjs");
|
|
5
5
|
const require_bundlerOptions = require("./bundlerOptions-CNcBNp_E.cjs");
|
|
6
6
|
// src/deploy/base.ts
|
|
7
7
|
var Deployer = class extends require_bundler.Bundler {
|
|
@@ -30,5 +30,5 @@ exports.FileService = require_services.FileService;
|
|
|
30
30
|
exports.createChildProcessLogger = require_services.createChildProcessLogger;
|
|
31
31
|
exports.createPinoStream = require_services.createPinoStream;
|
|
32
32
|
exports.getDeployer = getDeployer;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
exports.toWindowsShellArg = require_services.toWindowsShellArg;
|
|
34
|
+
exports.toWindowsShellArgs = require_services.toWindowsShellArgs;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Bundler } from "./bundler-
|
|
2
|
-
import { c as createPinoStream, i as DepsService, r as Deps, s as createChildProcessLogger, t as FileService } from "./services-
|
|
3
|
-
import "./build-
|
|
1
|
+
import { t as Bundler } from "./bundler-Cr8qMPp1.js";
|
|
2
|
+
import { c as createPinoStream, i as DepsService, l as toWindowsShellArg, r as Deps, s as createChildProcessLogger, t as FileService, u as toWindowsShellArgs } from "./services-C4uFF7g6.js";
|
|
3
|
+
import "./build-cBprMNoP.js";
|
|
4
4
|
import { n as extractMastraOption } from "./bundlerOptions-c8B4wLqe.js";
|
|
5
5
|
// src/deploy/base.ts
|
|
6
6
|
var Deployer = class extends Bundler {
|
|
@@ -23,6 +23,4 @@ async function getDeployer(entryFile, outputDir, logger) {
|
|
|
23
23
|
if (!result) return null;
|
|
24
24
|
return result.getConfig();
|
|
25
25
|
}
|
|
26
|
-
export { Deployer, Deps, FileService, createChildProcessLogger, createPinoStream, getDeployer };
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
26
|
+
export { Deployer, Deps, FileService, createChildProcessLogger, createPinoStream, getDeployer, toWindowsShellArg, toWindowsShellArgs };
|
package/dist/server/index.cjs
CHANGED
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mastra } from '@mastra/core/mastra';
|
|
2
|
-
import type { HonoBindings, HonoVariables } from '../_types/@mastra_hono@1.7.28-alpha.
|
|
2
|
+
import type { HonoBindings, HonoVariables } from '../_types/@mastra_hono@1.7.28-alpha.7/dist/index.js';
|
|
3
3
|
import { Hono } from 'hono';
|
|
4
4
|
import type { ServerBundleOptions } from './types.js';
|
|
5
5
|
type Bindings = HonoBindings;
|
package/dist/server/index.js
CHANGED
package/dist/services/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_services = require("../services-
|
|
2
|
+
const require_services = require("../services-DgfLvRCc.cjs");
|
|
3
3
|
exports.DepsService = require_services.DepsService;
|
|
4
4
|
exports.EnvService = require_services.EnvService;
|
|
5
5
|
exports.FileService = require_services.FileService;
|
package/dist/services/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as DepsService, n as EnvService, t as FileService } from "../services-
|
|
1
|
+
export { i as DepsService, n as EnvService, t as FileService } from "../services-C4uFF7g6.js";
|
|
@@ -311,20 +311,55 @@ const createPinoStream = (logger) => {
|
|
|
311
311
|
} });
|
|
312
312
|
};
|
|
313
313
|
/**
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
314
|
+
* Windows needs a shell to run package manager `.cmd` shims, and cmd.exe joins
|
|
315
|
+
* every token into one command line. Plain tokens pass through as-is; anything
|
|
316
|
+
* else (spaces, apostrophes, emoji, `&`, `^`…) is wrapped in double quotes, where
|
|
317
|
+
* cmd.exe treats it literally. Characters cmd.exe still interprets inside quotes
|
|
318
|
+
* (`"`, `!`, line breaks) are refused; `"` can never appear in a Windows path.
|
|
319
|
+
* A quoted argument that ends in a backslash would make the C runtime treat that
|
|
320
|
+
* backslash as escaping the closing quote, so trailing backslashes are doubled.
|
|
321
|
+
* `%` only expands as a `%name%` pair, so one `%` per command line is allowed
|
|
322
|
+
* (Yarn Berry's `--out …%v.tgz` needs it) and a second one is refused.
|
|
318
323
|
*/
|
|
319
|
-
const
|
|
320
|
-
|
|
324
|
+
const PLAIN_WINDOWS_ARG = /^[\p{L}\p{M}\p{N}_@+=:,./\\~-]+$/u;
|
|
325
|
+
const UNQUOTABLE_WINDOWS_ARG = /["!\r\n\0]/;
|
|
326
|
+
function toWindowsShellArg(arg) {
|
|
327
|
+
if (UNQUOTABLE_WINDOWS_ARG.test(arg)) throw new Error(`Refusing to pass unsafe argument to shell command: ${JSON.stringify(arg)}`);
|
|
328
|
+
if (PLAIN_WINDOWS_ARG.test(arg)) return arg;
|
|
329
|
+
let end = arg.length;
|
|
330
|
+
while (end > 0 && arg[end - 1] === "\\") end--;
|
|
331
|
+
return `"${arg}${arg.slice(end)}"`;
|
|
332
|
+
}
|
|
333
|
+
function toWindowsShellArgs(bin, args) {
|
|
334
|
+
if (!PLAIN_WINDOWS_ARG.test(bin)) throw new Error(`Refusing to spawn unsafe command: ${JSON.stringify(bin)}`);
|
|
335
|
+
const quoted = args.map(toWindowsShellArg);
|
|
336
|
+
if ([bin, ...quoted].join(" ").split("%").length > 2) throw new Error("Refusing to pass more than one \"%\" to a shell command");
|
|
337
|
+
return quoted;
|
|
338
|
+
}
|
|
339
|
+
function createChildProcessLogger({ logger, root, platform = process.platform, windowsShell }) {
|
|
321
340
|
const pinoStream = createPinoStream(logger);
|
|
322
341
|
return async ({ cmd, args, env }) => {
|
|
323
342
|
try {
|
|
324
|
-
|
|
325
|
-
|
|
343
|
+
const [bin, ...cmdArgs] = cmd.split(" ").filter(Boolean);
|
|
344
|
+
if (!bin) throw new Error("Refusing to spawn an empty command");
|
|
345
|
+
const allArgs = [...cmdArgs, ...args.filter(Boolean)];
|
|
346
|
+
const subprocess = platform === "win32" ? spawn(windowsShell ?? process.env.ComSpec ?? "cmd.exe", [
|
|
347
|
+
"/d",
|
|
348
|
+
"/s",
|
|
349
|
+
"/c",
|
|
350
|
+
`"${[bin, ...toWindowsShellArgs(bin, allArgs)].join(" ")}"`
|
|
351
|
+
], {
|
|
352
|
+
cwd: root,
|
|
353
|
+
env,
|
|
354
|
+
windowsVerbatimArguments: true,
|
|
355
|
+
stdio: [
|
|
356
|
+
"ignore",
|
|
357
|
+
"pipe",
|
|
358
|
+
"pipe"
|
|
359
|
+
]
|
|
360
|
+
}) : spawn(bin, allArgs, {
|
|
326
361
|
cwd: root,
|
|
327
|
-
shell:
|
|
362
|
+
shell: false,
|
|
328
363
|
env,
|
|
329
364
|
stdio: [
|
|
330
365
|
"ignore",
|
|
@@ -872,7 +907,7 @@ var Deps = class extends MastraBase {
|
|
|
872
907
|
root: dir
|
|
873
908
|
});
|
|
874
909
|
let packCmd = "pack";
|
|
875
|
-
let
|
|
910
|
+
let destinationArgs = ["--pack-destination", destination];
|
|
876
911
|
if (this.packageManager === "yarn") {
|
|
877
912
|
if (this.lockFile && await isYarnClassicLockfile(this.lockFile.path)) {
|
|
878
913
|
if (!SAFE_PACKAGE_VERSION.test(version)) throw new MastraError({
|
|
@@ -885,16 +920,16 @@ var Deps = class extends MastraBase {
|
|
|
885
920
|
},
|
|
886
921
|
text: `Invalid version ${JSON.stringify(version)} in workspace package at ${dir}`
|
|
887
922
|
});
|
|
888
|
-
|
|
889
|
-
} else
|
|
923
|
+
destinationArgs = ["--filename", `${destination}/${sanitizedName}-${version}.tgz`];
|
|
924
|
+
} else destinationArgs = ["--out", `${destination}/${sanitizedName}-%v.tgz`];
|
|
890
925
|
}
|
|
891
926
|
if (this.packageManager === "bun") {
|
|
892
927
|
packCmd = "pm pack";
|
|
893
|
-
|
|
928
|
+
destinationArgs = ["--destination", destination];
|
|
894
929
|
}
|
|
895
930
|
return cpLogger({
|
|
896
|
-
cmd: `${this.packageManager} ${packCmd}
|
|
897
|
-
args:
|
|
931
|
+
cmd: `${this.packageManager} ${packCmd}`,
|
|
932
|
+
args: destinationArgs,
|
|
898
933
|
env: { PATH: process.env.PATH }
|
|
899
934
|
});
|
|
900
935
|
}
|
|
@@ -1305,6 +1340,4 @@ var FileService = class {
|
|
|
1305
1340
|
fs.writeFileSync(filePath, fileContent);
|
|
1306
1341
|
}
|
|
1307
1342
|
};
|
|
1308
|
-
export { WORKSPACE_PLACEHOLDER_VERSION as a, createPinoStream as c, DepsService as i,
|
|
1309
|
-
|
|
1310
|
-
//# sourceMappingURL=services-BKh9M2E5.js.map
|
|
1343
|
+
export { WORKSPACE_PLACEHOLDER_VERSION as a, createPinoStream as c, MastraBase as d, noopLogger as f, DepsService as i, toWindowsShellArg as l, EnvService as n, withPlaceholderVersions as o, Deps as r, createChildProcessLogger as s, FileService as t, toWindowsShellArgs as u };
|