@mastra/deployer 0.10.11-alpha.0 → 0.10.11-alpha.2

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.
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkL57D5DQ7_cjs = require('../chunk-L57D5DQ7.cjs');
3
+ var chunkD2DCFCLH_cjs = require('../chunk-D2DCFCLH.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createBundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkL57D5DQ7_cjs.createBundler; }
9
+ get: function () { return chunkD2DCFCLH_cjs.createBundler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getInputOptions", {
12
12
  enumerable: true,
13
- get: function () { return chunkL57D5DQ7_cjs.getInputOptions; }
13
+ get: function () { return chunkD2DCFCLH_cjs.getInputOptions; }
14
14
  });
@@ -1 +1 @@
1
- export { createBundler, getInputOptions } from '../chunk-SRKUJD34.js';
1
+ export { createBundler, getInputOptions } from '../chunk-TIC2KT3M.js';
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunkK3FREUH7_cjs = require('../chunk-K3FREUH7.cjs');
3
+ var chunkFK2WUSEN_cjs = require('../chunk-FK2WUSEN.cjs');
4
4
  var chunkM2VZQFTW_cjs = require('../chunk-M2VZQFTW.cjs');
5
5
  var chunkXKH6F4NE_cjs = require('../chunk-XKH6F4NE.cjs');
6
- var chunkL57D5DQ7_cjs = require('../chunk-L57D5DQ7.cjs');
6
+ var chunkD2DCFCLH_cjs = require('../chunk-D2DCFCLH.cjs');
7
7
  var chunk7ICGDVC3_cjs = require('../chunk-7ICGDVC3.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "createWatcher", {
12
12
  enumerable: true,
13
- get: function () { return chunkK3FREUH7_cjs.createWatcher; }
13
+ get: function () { return chunkFK2WUSEN_cjs.createWatcher; }
14
14
  });
15
15
  Object.defineProperty(exports, "getServerOptions", {
16
16
  enumerable: true,
17
- get: function () { return chunkK3FREUH7_cjs.getServerOptions; }
17
+ get: function () { return chunkFK2WUSEN_cjs.getServerOptions; }
18
18
  });
19
19
  Object.defineProperty(exports, "getWatcherInputOptions", {
20
20
  enumerable: true,
21
- get: function () { return chunkK3FREUH7_cjs.getInputOptions; }
21
+ get: function () { return chunkFK2WUSEN_cjs.getInputOptions; }
22
22
  });
23
23
  Object.defineProperty(exports, "writeTelemetryConfig", {
24
24
  enumerable: true,
@@ -34,11 +34,11 @@ Object.defineProperty(exports, "getBundlerOptions", {
34
34
  });
35
35
  Object.defineProperty(exports, "createBundler", {
36
36
  enumerable: true,
37
- get: function () { return chunkL57D5DQ7_cjs.createBundler; }
37
+ get: function () { return chunkD2DCFCLH_cjs.createBundler; }
38
38
  });
39
39
  Object.defineProperty(exports, "getBundlerInputOptions", {
40
40
  enumerable: true,
41
- get: function () { return chunkL57D5DQ7_cjs.getInputOptions; }
41
+ get: function () { return chunkD2DCFCLH_cjs.getInputOptions; }
42
42
  });
43
43
  Object.defineProperty(exports, "Deps", {
44
44
  enumerable: true,
@@ -1,5 +1,5 @@
1
- export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-IS3ZPPA4.js';
1
+ export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-D6736SJL.js';
2
2
  export { writeTelemetryConfig } from '../chunk-ENT5RDOI.js';
3
3
  export { analyzeBundle, getBundlerOptions } from '../chunk-UYQZMNZL.js';
4
- export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-SRKUJD34.js';
4
+ export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-TIC2KT3M.js';
5
5
  export { Deps, FileService } from '../chunk-4VKGIENI.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkJFHPQX74_cjs = require('../chunk-JFHPQX74.cjs');
3
+ var chunk2AILHSHN_cjs = require('../chunk-2AILHSHN.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkJFHPQX74_cjs.Bundler; }
9
+ get: function () { return chunk2AILHSHN_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-XQ4IV7UB.js';
1
+ export { Bundler } from '../chunk-C2ZZNU67.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkM2VZQFTW_cjs = require('./chunk-M2VZQFTW.cjs');
4
4
  var chunkXKH6F4NE_cjs = require('./chunk-XKH6F4NE.cjs');
5
- var chunkL57D5DQ7_cjs = require('./chunk-L57D5DQ7.cjs');
5
+ var chunkD2DCFCLH_cjs = require('./chunk-D2DCFCLH.cjs');
6
6
  var chunk7ICGDVC3_cjs = require('./chunk-7ICGDVC3.cjs');
7
7
  var fs = require('fs');
8
8
  var promises = require('fs/promises');
@@ -128,7 +128,7 @@ var Bundler = class extends bundler.MastraBundler {
128
128
  }
129
129
  async writeInstrumentationFile(outputDirectory) {
130
130
  const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
131
- const __dirname = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-JFHPQX74.cjs', document.baseURI).href))));
131
+ const __dirname = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-2AILHSHN.cjs', document.baseURI).href))));
132
132
  await fsExtra.copy(path.join(__dirname, "templates", "instrumentation-template.js"), instrumentationFile);
133
133
  }
134
134
  async writePackageJson(outputDirectory, dependencies, resolutions) {
@@ -180,7 +180,7 @@ var Bundler = class extends bundler.MastraBundler {
180
180
  );
181
181
  }
182
182
  createBundler(inputOptions, outputOptions) {
183
- return chunkL57D5DQ7_cjs.createBundler(inputOptions, outputOptions);
183
+ return chunkD2DCFCLH_cjs.createBundler(inputOptions, outputOptions);
184
184
  }
185
185
  async analyze(entry, mastraFile, outputDirectory) {
186
186
  return await chunkXKH6F4NE_cjs.analyzeBundle(
@@ -206,7 +206,7 @@ var Bundler = class extends bundler.MastraBundler {
206
206
  await fsExtra.copy(publicDir, path.join(outputDirectory, this.outputDir));
207
207
  }
208
208
  async getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo, toolsPaths) {
209
- const inputOptions = await chunkL57D5DQ7_cjs.getInputOptions(mastraEntryFile, analyzedBundleInfo, "node", {
209
+ const inputOptions = await chunkD2DCFCLH_cjs.getInputOptions(mastraEntryFile, analyzedBundleInfo, "node", {
210
210
  "process.env.NODE_ENV": JSON.stringify("production")
211
211
  });
212
212
  const isVirtual = serverFile.includes("\n") || fs.existsSync(serverFile);
@@ -1,6 +1,6 @@
1
1
  import { writeTelemetryConfig } from './chunk-ENT5RDOI.js';
2
2
  import { analyzeBundle } from './chunk-UYQZMNZL.js';
3
- import { createBundler, getInputOptions } from './chunk-SRKUJD34.js';
3
+ import { createBundler, getInputOptions } from './chunk-TIC2KT3M.js';
4
4
  import { DepsService, FileService } from './chunk-4VKGIENI.js';
5
5
  import { existsSync } from 'fs';
6
6
  import { writeFile, stat } from 'fs/promises';
@@ -20,12 +20,9 @@ var esbuild__default = /*#__PURE__*/_interopDefault(esbuild);
20
20
  async function getInputOptions(entryFile, analyzedBundleInfo, platform, env = { "process.env.NODE_ENV": JSON.stringify("production") }) {
21
21
  let nodeResolvePlugin = platform === "node" ? nodeResolve__default.default({
22
22
  preferBuiltins: true,
23
- exportConditions: ["node", "import", "require"],
24
- mainFields: ["module", "main"]
23
+ exportConditions: ["node"]
25
24
  }) : nodeResolve__default.default({
26
25
  preferBuiltins: false,
27
- exportConditions: ["browser", "import", "require"],
28
- mainFields: ["module", "main"],
29
26
  browser: true
30
27
  });
31
28
  const externalsCopy = /* @__PURE__ */ new Set();
@@ -1,5 +1,5 @@
1
1
  import { aliasHono, recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastraExcept } from './chunk-UYQZMNZL.js';
2
- import { getInputOptions } from './chunk-SRKUJD34.js';
2
+ import { getInputOptions } from './chunk-TIC2KT3M.js';
3
3
  import { tsConfigPaths } from './chunk-Z544XXXK.js';
4
4
  import { watch, rollup } from 'rollup';
5
5
  import { extname, dirname } from 'path';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkXKH6F4NE_cjs = require('./chunk-XKH6F4NE.cjs');
4
- var chunkL57D5DQ7_cjs = require('./chunk-L57D5DQ7.cjs');
4
+ var chunkD2DCFCLH_cjs = require('./chunk-D2DCFCLH.cjs');
5
5
  var chunk54KOF3NB_cjs = require('./chunk-54KOF3NB.cjs');
6
6
  var rollup = require('rollup');
7
7
  var path = require('path');
@@ -106,7 +106,7 @@ function nodeModulesExtensionResolver() {
106
106
 
107
107
  // src/build/watcher.ts
108
108
  async function getInputOptions2(entryFile, platform, env) {
109
- const inputOptions = await chunkL57D5DQ7_cjs.getInputOptions(
109
+ const inputOptions = await chunkD2DCFCLH_cjs.getInputOptions(
110
110
  entryFile,
111
111
  {
112
112
  dependencies: /* @__PURE__ */ new Map(),
@@ -10,12 +10,9 @@ import esbuild from 'rollup-plugin-esbuild';
10
10
  async function getInputOptions(entryFile, analyzedBundleInfo, platform, env = { "process.env.NODE_ENV": JSON.stringify("production") }) {
11
11
  let nodeResolvePlugin = platform === "node" ? nodeResolve({
12
12
  preferBuiltins: true,
13
- exportConditions: ["node", "import", "require"],
14
- mainFields: ["module", "main"]
13
+ exportConditions: ["node"]
15
14
  }) : nodeResolve({
16
15
  preferBuiltins: false,
17
- exportConditions: ["browser", "import", "require"],
18
- mainFields: ["module", "main"],
19
16
  browser: true
20
17
  });
21
18
  const externalsCopy = /* @__PURE__ */ new Set();
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJFHPQX74_cjs = require('./chunk-JFHPQX74.cjs');
3
+ var chunk2AILHSHN_cjs = require('./chunk-2AILHSHN.cjs');
4
4
  var chunkXKH6F4NE_cjs = require('./chunk-XKH6F4NE.cjs');
5
5
  var chunk7ICGDVC3_cjs = require('./chunk-7ICGDVC3.cjs');
6
6
  var babel = require('@babel/core');
@@ -33,7 +33,7 @@ var esbuild__default = /*#__PURE__*/_interopDefault(esbuild);
33
33
  var commonjs__default = /*#__PURE__*/_interopDefault(commonjs);
34
34
 
35
35
  // src/deploy/base.ts
36
- var Deployer = class extends chunkJFHPQX74_cjs.Bundler {
36
+ var Deployer = class extends chunk2AILHSHN_cjs.Bundler {
37
37
  deps = new chunk7ICGDVC3_cjs.DepsService();
38
38
  constructor(args) {
39
39
  super(args.name, "DEPLOYER");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Bundler } from './chunk-XQ4IV7UB.js';
1
+ import { Bundler } from './chunk-C2ZZNU67.js';
2
2
  import { recursiveRemoveNonReferencedNodes } from './chunk-UYQZMNZL.js';
3
3
  import { DepsService, FileService } from './chunk-4VKGIENI.js';
4
4
  export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-4VKGIENI.js';
@@ -737,7 +737,7 @@ var middleware = (options) => async (c2) => {
737
737
  );
738
738
  };
739
739
 
740
- // ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.8.3_openapi-types@12.1.3_zod@3.25.67/node_modules/hono-openapi/utils.js
740
+ // ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.8.4_openapi-types@12.1.3_zod@3.25.67/node_modules/hono-openapi/utils.js
741
741
  var e = Symbol("openapi");
742
742
  var n = ["GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"];
743
743
  var s2 = (e2) => e2.charAt(0).toUpperCase() + e2.slice(1);
@@ -730,7 +730,7 @@ var middleware = (options) => async (c2) => {
730
730
  );
731
731
  };
732
732
 
733
- // ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.8.3_openapi-types@12.1.3_zod@3.25.67/node_modules/hono-openapi/utils.js
733
+ // ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.8.4_openapi-types@12.1.3_zod@3.25.67/node_modules/hono-openapi/utils.js
734
734
  var e = Symbol("openapi");
735
735
  var n = ["GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"];
736
736
  var s2 = (e2) => e2.charAt(0).toUpperCase() + e2.slice(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.10.11-alpha.0",
3
+ "version": "0.10.11-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -96,19 +96,19 @@
96
96
  "@sindresorhus/slugify": "^2.2.1",
97
97
  "builtins": "^5.1.0",
98
98
  "detect-libc": "^2.0.4",
99
- "dotenv": "^16.5.0",
99
+ "dotenv": "^16.6.1",
100
100
  "esbuild": "^0.25.5",
101
101
  "find-workspaces": "^0.3.1",
102
102
  "fs-extra": "^11.3.0",
103
103
  "globby": "^14.1.0",
104
- "hono": "^4.8.3",
104
+ "hono": "^4.8.4",
105
105
  "resolve-from": "^5.0.0",
106
- "rollup": "^4.43.0",
106
+ "rollup": "^4.44.2",
107
107
  "rollup-plugin-esbuild": "^6.2.1",
108
108
  "rollup-plugin-node-externals": "^8.0.1",
109
109
  "typescript-paths": "^1.5.1",
110
110
  "zod": "^3.25.67",
111
- "@mastra/server": "^0.10.11-alpha.0"
111
+ "@mastra/server": "^0.10.11-alpha.2"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@hono/node-server": "^1.14.4",
@@ -128,8 +128,8 @@
128
128
  "typescript": "^5.8.3",
129
129
  "vitest": "^3.2.4",
130
130
  "@internal/lint": "0.0.17",
131
- "@mastra/core": "0.10.11-alpha.0",
132
- "@mastra/mcp": "^0.10.5"
131
+ "@mastra/core": "0.10.11-alpha.2",
132
+ "@mastra/mcp": "^0.10.6-alpha.0"
133
133
  },
134
134
  "peerDependencies": {
135
135
  "@mastra/core": ">=0.10.9-0 <0.11.0-0"