@mastra/deployer 0.2.6-alpha.7 → 0.2.6-alpha.8

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 chunkQOC5C7OC_cjs = require('../chunk-QOC5C7OC.cjs');
3
+ var chunk3WUUJPZW_cjs = require('../chunk-3WUUJPZW.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkQOC5C7OC_cjs.Bundler; }
9
+ get: function () { return chunk3WUUJPZW_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-Y7P5PFN5.js';
1
+ export { Bundler } from '../chunk-P4LQ4S7A.js';
@@ -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-QOC5C7OC.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-3WUUJPZW.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) {
@@ -125,6 +125,9 @@ var Bundler = class extends bundler.MastraBundler {
125
125
  dependenciesToInstall.set(dep, "latest");
126
126
  }
127
127
  }
128
+ if (analyzedBundleInfo.externalDependencies.has("@mastra/memory")) {
129
+ dependenciesToInstall.set("fastembed", "latest");
130
+ }
128
131
  await this.writePackageJson(path.join(outputDirectory, this.outputDir), dependenciesToInstall);
129
132
  await this.writeInstrumentationFile(path.join(outputDirectory, this.outputDir));
130
133
  this.logger.info("Bundling Mastra application");
@@ -117,6 +117,9 @@ var Bundler = class extends MastraBundler {
117
117
  dependenciesToInstall.set(dep, "latest");
118
118
  }
119
119
  }
120
+ if (analyzedBundleInfo.externalDependencies.has("@mastra/memory")) {
121
+ dependenciesToInstall.set("fastembed", "latest");
122
+ }
120
123
  await this.writePackageJson(join(outputDirectory, this.outputDir), dependenciesToInstall);
121
124
  await this.writeInstrumentationFile(join(outputDirectory, this.outputDir));
122
125
  this.logger.info("Bundling Mastra application");
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQOC5C7OC_cjs = require('./chunk-QOC5C7OC.cjs');
3
+ var chunk3WUUJPZW_cjs = require('./chunk-3WUUJPZW.cjs');
4
4
  var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
5
5
  var chunkNCROGJGB_cjs = require('./chunk-NCROGJGB.cjs');
6
6
  var chunkVFZVVUQE_cjs = require('./chunk-VFZVVUQE.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 chunkQOC5C7OC_cjs.Bundler {
37
+ var Deployer = class extends chunk3WUUJPZW_cjs.Bundler {
38
38
  deps = new chunkVFZVVUQE_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-Y7P5PFN5.js';
1
+ import { Bundler } from './chunk-P4LQ4S7A.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';
@@ -1214,8 +1214,8 @@ async function generateSystemPromptHandler(c2) {
1214
1214
  }
1215
1215
  let evalSummary = "";
1216
1216
  try {
1217
- const testEvals = await mastra.storage?.getEvalsByAgentName?.(agent$1.name, "test") || [];
1218
- const liveEvals = await mastra.storage?.getEvalsByAgentName?.(agent$1.name, "live") || [];
1217
+ const testEvals = await mastra.storage?.__getEvalsByAgentName?.(agent$1.name, "test") || [];
1218
+ const liveEvals = await mastra.storage?.__getEvalsByAgentName?.(agent$1.name, "live") || [];
1219
1219
  const evalsMapped = [...testEvals, ...liveEvals].filter(
1220
1220
  ({ instructions: evalInstructions }) => evalInstructions === instructions
1221
1221
  );
@@ -1208,8 +1208,8 @@ async function generateSystemPromptHandler(c2) {
1208
1208
  }
1209
1209
  let evalSummary = "";
1210
1210
  try {
1211
- const testEvals = await mastra.storage?.getEvalsByAgentName?.(agent.name, "test") || [];
1212
- const liveEvals = await mastra.storage?.getEvalsByAgentName?.(agent.name, "live") || [];
1211
+ const testEvals = await mastra.storage?.__getEvalsByAgentName?.(agent.name, "test") || [];
1212
+ const liveEvals = await mastra.storage?.__getEvalsByAgentName?.(agent.name, "live") || [];
1213
1213
  const evalsMapped = [...testEvals, ...liveEvals].filter(
1214
1214
  ({ instructions: evalInstructions }) => evalInstructions === instructions
1215
1215
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.2.6-alpha.7",
3
+ "version": "0.2.6-alpha.8",
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.0-alpha.5",
109
- "@mastra/server": "^0.0.1-alpha.3"
108
+ "@mastra/core": "^0.8.0-alpha.6",
109
+ "@mastra/server": "^0.0.1-alpha.4"
110
110
  },
111
111
  "devDependencies": {
112
112
  "@hono/node-server": "^1.13.8",