@mastra/deployer 0.2.6-alpha.9 → 0.2.6
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/build/analyze.cjs +2 -2
- package/dist/build/analyze.js +1 -1
- package/dist/build/index.cjs +6 -6
- package/dist/build/index.js +2 -2
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-SQP5ULJ5.js → chunk-74KZVNKH.js} +1 -1
- package/dist/{chunk-UTZ3434D.js → chunk-BDTZS3JM.js} +3 -0
- package/dist/{chunk-UV237CUO.cjs → chunk-I3UVE6EH.cjs} +2 -2
- package/dist/{chunk-NWERLYTR.cjs → chunk-P5SATU7G.cjs} +3 -0
- package/dist/{chunk-VNNMBMKJ.js → chunk-WB3T6NKI.js} +1 -1
- package/dist/{chunk-XBEPXRKN.cjs → chunk-WFC3CUZ3.cjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/build/analyze.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkP5SATU7G_cjs = require('../chunk-P5SATU7G.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "analyzeBundle", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkP5SATU7G_cjs.analyzeBundle; }
|
|
10
10
|
});
|
package/dist/build/analyze.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { analyzeBundle } from '../chunk-
|
|
1
|
+
export { analyzeBundle } from '../chunk-BDTZS3JM.js';
|
package/dist/build/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkI3UVE6EH_cjs = require('../chunk-I3UVE6EH.cjs');
|
|
4
4
|
var chunk2ZPQX6BX_cjs = require('../chunk-2ZPQX6BX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkP5SATU7G_cjs = require('../chunk-P5SATU7G.cjs');
|
|
6
6
|
var chunkAE4CVAPK_cjs = require('../chunk-AE4CVAPK.cjs');
|
|
7
7
|
var chunkNCROGJGB_cjs = require('../chunk-NCROGJGB.cjs');
|
|
8
8
|
var chunkVFZVVUQE_cjs = require('../chunk-VFZVVUQE.cjs');
|
|
@@ -11,15 +11,15 @@ var chunkVFZVVUQE_cjs = require('../chunk-VFZVVUQE.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "createWatcher", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkI3UVE6EH_cjs.createWatcher; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "getServerOptions", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkI3UVE6EH_cjs.getServerOptions; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "getWatcherInputOptions", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkI3UVE6EH_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
|
|
30
|
+
get: function () { return chunkP5SATU7G_cjs.analyzeBundle; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createBundler", {
|
|
33
33
|
enumerable: true,
|
package/dist/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-
|
|
1
|
+
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-WB3T6NKI.js';
|
|
2
2
|
export { writeTelemetryConfig } from '../chunk-4AYFLP6G.js';
|
|
3
|
-
export { analyzeBundle } from '../chunk-
|
|
3
|
+
export { analyzeBundle } from '../chunk-BDTZS3JM.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-5UBGPRKT.js';
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWFC3CUZ3_cjs = require('../chunk-WFC3CUZ3.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 chunkWFC3CUZ3_cjs.Bundler; }
|
|
10
10
|
});
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
1
|
+
export { Bundler } from '../chunk-74KZVNKH.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { writeTelemetryConfig } from './chunk-4AYFLP6G.js';
|
|
2
|
-
import { analyzeBundle } from './chunk-
|
|
2
|
+
import { analyzeBundle } from './chunk-BDTZS3JM.js';
|
|
3
3
|
import { createBundler, getInputOptions } from './chunk-IKPL4RGG.js';
|
|
4
4
|
import { DepsService } from './chunk-5UBGPRKT.js';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
@@ -115,6 +115,9 @@ async function analyze(entry, mastraEntry, isVirtualFile, platform, logger) {
|
|
|
115
115
|
if (id === "#mastra") {
|
|
116
116
|
return normalizedMastraEntry;
|
|
117
117
|
}
|
|
118
|
+
if (id.startsWith("@mastra/server")) {
|
|
119
|
+
return fileURLToPath(import.meta.resolve(id));
|
|
120
|
+
}
|
|
118
121
|
}
|
|
119
122
|
},
|
|
120
123
|
json(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkP5SATU7G_cjs = require('./chunk-P5SATU7G.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(
|
|
50
|
+
inputOptions.plugins.push(chunkP5SATU7G_cjs.aliasHono());
|
|
51
51
|
}
|
|
52
52
|
return inputOptions;
|
|
53
53
|
}
|
|
@@ -125,6 +125,9 @@ async function analyze(entry, mastraEntry, isVirtualFile, platform, logger) {
|
|
|
125
125
|
if (id === "#mastra") {
|
|
126
126
|
return normalizedMastraEntry;
|
|
127
127
|
}
|
|
128
|
+
if (id.startsWith("@mastra/server")) {
|
|
129
|
+
return url.fileURLToPath(undefined(id));
|
|
130
|
+
}
|
|
128
131
|
}
|
|
129
132
|
},
|
|
130
133
|
json__default.default(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastraExcept } from './chunk-4AYFLP6G.js';
|
|
2
|
-
import { aliasHono } from './chunk-
|
|
2
|
+
import { aliasHono } from './chunk-BDTZS3JM.js';
|
|
3
3
|
import { getInputOptions } from './chunk-IKPL4RGG.js';
|
|
4
4
|
import { watch, rollup } from 'rollup';
|
|
5
5
|
import * as babel from '@babel/core';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkP5SATU7G_cjs = require('./chunk-P5SATU7G.cjs');
|
|
5
5
|
var chunkAE4CVAPK_cjs = require('./chunk-AE4CVAPK.cjs');
|
|
6
6
|
var chunkVFZVVUQE_cjs = require('./chunk-VFZVVUQE.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-
|
|
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-WFC3CUZ3.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
|
|
77
|
+
return await chunkP5SATU7G_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 chunkVFZVVUQE_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
|
|
110
|
+
const analyzedBundleInfo = await chunkP5SATU7G_cjs.analyzeBundle(
|
|
111
111
|
serverFile,
|
|
112
112
|
mastraEntryFile,
|
|
113
113
|
path.join(outputDirectory, this.analyzeOutputDir),
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWFC3CUZ3_cjs = require('./chunk-WFC3CUZ3.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 chunkWFC3CUZ3_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-74KZVNKH.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.6
|
|
3
|
+
"version": "0.2.6",
|
|
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/server": "^1.0.0",
|
|
109
|
+
"@mastra/core": "^0.8.0"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@hono/node-server": "^1.13.8",
|