@mastra/deployer 0.2.6-alpha.6 → 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.
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-QOC5C7OC.cjs → chunk-3WUUJPZW.cjs} +4 -1
- package/dist/{chunk-Y7P5PFN5.js → chunk-P4LQ4S7A.js} +3 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +2 -2
- package/package.json +3 -3
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
9
|
+
get: function () { return chunk3WUUJPZW_cjs.Bundler; }
|
|
10
10
|
});
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
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-
|
|
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
|
|
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
|
|
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-
|
|
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';
|
package/dist/server/index.cjs
CHANGED
|
@@ -1214,8 +1214,8 @@ async function generateSystemPromptHandler(c2) {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
let evalSummary = "";
|
|
1216
1216
|
try {
|
|
1217
|
-
const testEvals = await mastra.storage?.
|
|
1218
|
-
const liveEvals = await mastra.storage?.
|
|
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
|
);
|
package/dist/server/index.js
CHANGED
|
@@ -1208,8 +1208,8 @@ async function generateSystemPromptHandler(c2) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
let evalSummary = "";
|
|
1210
1210
|
try {
|
|
1211
|
-
const testEvals = await mastra.storage?.
|
|
1212
|
-
const liveEvals = await mastra.storage?.
|
|
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.
|
|
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/
|
|
109
|
-
"@mastra/
|
|
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",
|