@mastra/deployer 0.2.10-alpha.1 → 0.2.10-alpha.3

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,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkP5SATU7G_cjs = require('../chunk-P5SATU7G.cjs');
3
+ var chunkLA6Y6GAB_cjs = require('../chunk-LA6Y6GAB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "analyzeBundle", {
8
8
  enumerable: true,
9
- get: function () { return chunkP5SATU7G_cjs.analyzeBundle; }
9
+ get: function () { return chunkLA6Y6GAB_cjs.analyzeBundle; }
10
10
  });
@@ -1 +1 @@
1
- export { analyzeBundle } from '../chunk-BDTZS3JM.js';
1
+ export { analyzeBundle } from '../chunk-USZDOFES.js';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkI3UVE6EH_cjs = require('../chunk-I3UVE6EH.cjs');
3
+ var chunkYSFP3CY7_cjs = require('../chunk-YSFP3CY7.cjs');
4
4
  var chunk2ZPQX6BX_cjs = require('../chunk-2ZPQX6BX.cjs');
5
- var chunkP5SATU7G_cjs = require('../chunk-P5SATU7G.cjs');
5
+ var chunkLA6Y6GAB_cjs = require('../chunk-LA6Y6GAB.cjs');
6
6
  var chunkAE4CVAPK_cjs = require('../chunk-AE4CVAPK.cjs');
7
7
  var chunkNCROGJGB_cjs = require('../chunk-NCROGJGB.cjs');
8
8
  var chunkTHU6NH7X_cjs = require('../chunk-THU6NH7X.cjs');
@@ -11,15 +11,15 @@ var chunkTHU6NH7X_cjs = require('../chunk-THU6NH7X.cjs');
11
11
 
12
12
  Object.defineProperty(exports, "createWatcher", {
13
13
  enumerable: true,
14
- get: function () { return chunkI3UVE6EH_cjs.createWatcher; }
14
+ get: function () { return chunkYSFP3CY7_cjs.createWatcher; }
15
15
  });
16
16
  Object.defineProperty(exports, "getServerOptions", {
17
17
  enumerable: true,
18
- get: function () { return chunkI3UVE6EH_cjs.getServerOptions; }
18
+ get: function () { return chunkYSFP3CY7_cjs.getServerOptions; }
19
19
  });
20
20
  Object.defineProperty(exports, "getWatcherInputOptions", {
21
21
  enumerable: true,
22
- get: function () { return chunkI3UVE6EH_cjs.getInputOptions; }
22
+ get: function () { return chunkYSFP3CY7_cjs.getInputOptions; }
23
23
  });
24
24
  Object.defineProperty(exports, "writeTelemetryConfig", {
25
25
  enumerable: true,
@@ -27,7 +27,7 @@ Object.defineProperty(exports, "writeTelemetryConfig", {
27
27
  });
28
28
  Object.defineProperty(exports, "analyzeBundle", {
29
29
  enumerable: true,
30
- get: function () { return chunkP5SATU7G_cjs.analyzeBundle; }
30
+ get: function () { return chunkLA6Y6GAB_cjs.analyzeBundle; }
31
31
  });
32
32
  Object.defineProperty(exports, "createBundler", {
33
33
  enumerable: true,
@@ -1,6 +1,6 @@
1
- export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-WB3T6NKI.js';
1
+ export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-C3ZISWS3.js';
2
2
  export { writeTelemetryConfig } from '../chunk-4AYFLP6G.js';
3
- export { analyzeBundle } from '../chunk-BDTZS3JM.js';
3
+ export { analyzeBundle } from '../chunk-USZDOFES.js';
4
4
  export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-IKPL4RGG.js';
5
5
  export { FileService } from '../chunk-DYQ225MJ.js';
6
6
  export { Deps } from '../chunk-P7ZN2KUE.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkEUFD4MGO_cjs = require('../chunk-EUFD4MGO.cjs');
3
+ var chunkBDAX7X52_cjs = require('../chunk-BDAX7X52.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkEUFD4MGO_cjs.Bundler; }
9
+ get: function () { return chunkBDAX7X52_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-KHNXH7BY.js';
1
+ export { Bundler } from '../chunk-UUEHIAGW.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
4
- var chunkP5SATU7G_cjs = require('./chunk-P5SATU7G.cjs');
4
+ var chunkLA6Y6GAB_cjs = require('./chunk-LA6Y6GAB.cjs');
5
5
  var chunkAE4CVAPK_cjs = require('./chunk-AE4CVAPK.cjs');
6
6
  var chunkTHU6NH7X_cjs = require('./chunk-THU6NH7X.cjs');
7
7
  var fs = require('fs');
@@ -32,7 +32,7 @@ var Bundler = class extends bundler.MastraBundler {
32
32
  }
33
33
  async writeInstrumentationFile(outputDirectory) {
34
34
  const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
35
- 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-EUFD4MGO.cjs', document.baseURI).href))));
35
+ 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-BDAX7X52.cjs', document.baseURI).href))));
36
36
  await esm.copy(path.join(__dirname, "templates", "instrumentation-template.js"), instrumentationFile);
37
37
  }
38
38
  async writePackageJson(outputDirectory, dependencies) {
@@ -74,7 +74,7 @@ var Bundler = class extends bundler.MastraBundler {
74
74
  return chunkAE4CVAPK_cjs.createBundler(inputOptions, outputOptions);
75
75
  }
76
76
  async analyze(entry, mastraFile, outputDirectory) {
77
- return await chunkP5SATU7G_cjs.analyzeBundle(entry, mastraFile, path.join(outputDirectory, this.analyzeOutputDir), "node", this.logger);
77
+ return await chunkLA6Y6GAB_cjs.analyzeBundle(entry, mastraFile, path.join(outputDirectory, this.analyzeOutputDir), "node", this.logger);
78
78
  }
79
79
  async installDependencies(outputDirectory, rootDir = process.cwd()) {
80
80
  const deps = new chunkTHU6NH7X_cjs.DepsService(rootDir);
@@ -107,7 +107,7 @@ var Bundler = class extends bundler.MastraBundler {
107
107
  }
108
108
  async _bundle(serverFile, mastraEntryFile, outputDirectory, bundleLocation = path.join(outputDirectory, this.outputDir)) {
109
109
  this.logger.info("Start bundling Mastra");
110
- const analyzedBundleInfo = await chunkP5SATU7G_cjs.analyzeBundle(
110
+ const analyzedBundleInfo = await chunkLA6Y6GAB_cjs.analyzeBundle(
111
111
  serverFile,
112
112
  mastraEntryFile,
113
113
  path.join(outputDirectory, this.analyzeOutputDir),
@@ -1,5 +1,5 @@
1
1
  import { recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastraExcept } from './chunk-4AYFLP6G.js';
2
- import { aliasHono } from './chunk-BDTZS3JM.js';
2
+ import { aliasHono } from './chunk-USZDOFES.js';
3
3
  import { getInputOptions } from './chunk-IKPL4RGG.js';
4
4
  import { watch, rollup } from 'rollup';
5
5
  import * as babel from '@babel/core';
@@ -288,7 +288,9 @@ async function validateOutput({
288
288
  } catch (err) {
289
289
  result.invalidChunks.add(file.fileName);
290
290
  if (file.isEntry && reverseVirtualReferenceMap.has(file.name)) {
291
- result.externalDependencies.add(reverseVirtualReferenceMap.get(file.name));
291
+ const reference = reverseVirtualReferenceMap.get(file.name);
292
+ const dep = reference.startsWith("@") ? reference.split("/").slice(0, 2).join("/") : reference.split("/")[0];
293
+ result.externalDependencies.add(dep);
292
294
  }
293
295
  }
294
296
  }
@@ -278,7 +278,9 @@ async function validateOutput({
278
278
  } catch (err) {
279
279
  result.invalidChunks.add(file.fileName);
280
280
  if (file.isEntry && reverseVirtualReferenceMap.has(file.name)) {
281
- result.externalDependencies.add(reverseVirtualReferenceMap.get(file.name));
281
+ const reference = reverseVirtualReferenceMap.get(file.name);
282
+ const dep = reference.startsWith("@") ? reference.split("/").slice(0, 2).join("/") : reference.split("/")[0];
283
+ result.externalDependencies.add(dep);
282
284
  }
283
285
  }
284
286
  }
@@ -1,5 +1,5 @@
1
1
  import { writeTelemetryConfig } from './chunk-4AYFLP6G.js';
2
- import { analyzeBundle } from './chunk-BDTZS3JM.js';
2
+ import { analyzeBundle } from './chunk-USZDOFES.js';
3
3
  import { createBundler, getInputOptions } from './chunk-IKPL4RGG.js';
4
4
  import { DepsService } from './chunk-P7ZN2KUE.js';
5
5
  import { existsSync } from 'node:fs';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
4
- var chunkP5SATU7G_cjs = require('./chunk-P5SATU7G.cjs');
4
+ var chunkLA6Y6GAB_cjs = require('./chunk-LA6Y6GAB.cjs');
5
5
  var chunkAE4CVAPK_cjs = require('./chunk-AE4CVAPK.cjs');
6
6
  var rollup = require('rollup');
7
7
  var babel = require('@babel/core');
@@ -47,7 +47,7 @@ async function getInputOptions2(entryFile, platform) {
47
47
  // @ts-ignore
48
48
  (plugin) => !plugin || !plugin?.name || plugin.name !== "node-resolve"
49
49
  );
50
- inputOptions.plugins.push(chunkP5SATU7G_cjs.aliasHono());
50
+ inputOptions.plugins.push(chunkLA6Y6GAB_cjs.aliasHono());
51
51
  }
52
52
  return inputOptions;
53
53
  }
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkEUFD4MGO_cjs = require('./chunk-EUFD4MGO.cjs');
3
+ var chunkBDAX7X52_cjs = require('./chunk-BDAX7X52.cjs');
4
4
  var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
5
5
  var chunkNCROGJGB_cjs = require('./chunk-NCROGJGB.cjs');
6
6
  var chunkTHU6NH7X_cjs = require('./chunk-THU6NH7X.cjs');
@@ -34,7 +34,7 @@ var esbuild__default = /*#__PURE__*/_interopDefault(esbuild);
34
34
  var commonjs__default = /*#__PURE__*/_interopDefault(commonjs);
35
35
 
36
36
  // src/deploy/base.ts
37
- var Deployer = class extends chunkEUFD4MGO_cjs.Bundler {
37
+ var Deployer = class extends chunkBDAX7X52_cjs.Bundler {
38
38
  deps = new chunkTHU6NH7X_cjs.DepsService();
39
39
  constructor(args) {
40
40
  super(args.name, "DEPLOYER");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Bundler } from './chunk-KHNXH7BY.js';
1
+ import { Bundler } from './chunk-UUEHIAGW.js';
2
2
  import { recursiveRemoveNonReferencedNodes } from './chunk-4AYFLP6G.js';
3
3
  import { FileService } from './chunk-DYQ225MJ.js';
4
4
  export { FileService } from './chunk-DYQ225MJ.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.2.10-alpha.1",
3
+ "version": "0.2.10-alpha.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -105,8 +105,8 @@
105
105
  "rollup-plugin-node-externals": "^8.0.0",
106
106
  "typescript-paths": "^1.5.1",
107
107
  "zod": "^3.24.2",
108
- "@mastra/core": "^0.8.4-alpha.1",
109
- "@mastra/server": "^1.0.4-alpha.1"
108
+ "@mastra/core": "^0.8.4-alpha.2",
109
+ "@mastra/server": "^1.0.4-alpha.2"
110
110
  },
111
111
  "devDependencies": {
112
112
  "@hono/node-server": "^1.13.8",