@mastra/deployer 0.10.6-alpha.1 → 0.10.6-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.
- package/dist/_tsup-dts-rollup.d.cts +2 -0
- package/dist/_tsup-dts-rollup.d.ts +2 -0
- package/dist/build/index.cjs +7 -7
- package/dist/build/index.js +2 -2
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-UV4RQQ3R.js → chunk-4VKGIENI.js} +14 -6
- package/dist/{chunk-4VC5Z4YR.cjs → chunk-7ICGDVC3.cjs} +16 -8
- package/dist/{chunk-PUW6NUPY.cjs → chunk-DBEMB6OV.cjs} +74 -0
- package/dist/{chunk-77XOUHT3.js → chunk-FBZWTLPQ.js} +1 -1
- package/dist/{chunk-WM2GT75J.js → chunk-G7OBNEAD.js} +73 -0
- package/dist/{chunk-ZEUV45KC.cjs → chunk-VZ6L36CW.cjs} +6 -6
- package/dist/index.cjs +9 -9
- package/dist/index.js +3 -3
- package/dist/services/index.cjs +4 -4
- package/dist/services/index.js +1 -1
- package/package.json +5 -5
|
@@ -634,6 +634,8 @@ export declare const listMcpServerToolsHandler: (c: Context) => Promise<Response
|
|
|
634
634
|
|
|
635
635
|
export declare const matchesOrIncludes: (values: string | string[], value: string) => boolean;
|
|
636
636
|
|
|
637
|
+
export declare function nodeModulesExtensionResolver(): Plugin;
|
|
638
|
+
|
|
637
639
|
/**
|
|
638
640
|
* Creates TGZ packages for workspace dependencies in the workspace-module directory
|
|
639
641
|
*/
|
|
@@ -634,6 +634,8 @@ export declare const listMcpServerToolsHandler: (c: Context) => Promise<Response
|
|
|
634
634
|
|
|
635
635
|
export declare const matchesOrIncludes: (values: string | string[], value: string) => boolean;
|
|
636
636
|
|
|
637
|
+
export declare function nodeModulesExtensionResolver(): Plugin;
|
|
638
|
+
|
|
637
639
|
/**
|
|
638
640
|
* Creates TGZ packages for workspace dependencies in the workspace-module directory
|
|
639
641
|
*/
|
package/dist/build/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDBEMB6OV_cjs = require('../chunk-DBEMB6OV.cjs');
|
|
4
4
|
var chunkDTQ7BTPM_cjs = require('../chunk-DTQ7BTPM.cjs');
|
|
5
5
|
var chunkTSG63RGL_cjs = require('../chunk-TSG63RGL.cjs');
|
|
6
6
|
var chunkIMGVLBV7_cjs = require('../chunk-IMGVLBV7.cjs');
|
|
7
|
-
var
|
|
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
|
|
13
|
+
get: function () { return chunkDBEMB6OV_cjs.createWatcher; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getServerOptions", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkDBEMB6OV_cjs.getServerOptions; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getWatcherInputOptions", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkDBEMB6OV_cjs.getInputOptions; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "writeTelemetryConfig", {
|
|
24
24
|
enumerable: true,
|
|
@@ -42,9 +42,9 @@ Object.defineProperty(exports, "getBundlerInputOptions", {
|
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "Deps", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk7ICGDVC3_cjs.Deps; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FileService", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk7ICGDVC3_cjs.FileService; }
|
|
50
50
|
});
|
package/dist/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-
|
|
1
|
+
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-G7OBNEAD.js';
|
|
2
2
|
export { writeTelemetryConfig } from '../chunk-EXHFPVZH.js';
|
|
3
3
|
export { analyzeBundle, getBundlerOptions } from '../chunk-WGJTOVLL.js';
|
|
4
4
|
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-HHOCIHND.js';
|
|
5
|
-
export { Deps, FileService } from '../chunk-
|
|
5
|
+
export { Deps, FileService } from '../chunk-4VKGIENI.js';
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVZ6L36CW_cjs = require('../chunk-VZ6L36CW.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 chunkVZ6L36CW_cjs.Bundler; }
|
|
10
10
|
});
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
1
|
+
export { Bundler } from '../chunk-FBZWTLPQ.js';
|
|
@@ -175,12 +175,16 @@ ${Object.entries(config.supportedArchitectures).map(([key, value]) => ` ${key}:
|
|
|
175
175
|
logger: this.logger,
|
|
176
176
|
root: dir
|
|
177
177
|
});
|
|
178
|
+
const env = {
|
|
179
|
+
PATH: process.env.PATH
|
|
180
|
+
};
|
|
181
|
+
if (process.env.npm_config_registry) {
|
|
182
|
+
env.npm_config_registry = process.env.npm_config_registry;
|
|
183
|
+
}
|
|
178
184
|
return cpLogger({
|
|
179
185
|
cmd: runCommand,
|
|
180
186
|
args,
|
|
181
|
-
env
|
|
182
|
-
PATH: process.env.PATH
|
|
183
|
-
}
|
|
187
|
+
env
|
|
184
188
|
});
|
|
185
189
|
}
|
|
186
190
|
async installPackages(packages) {
|
|
@@ -190,6 +194,12 @@ ${Object.entries(config.supportedArchitectures).map(([key, value]) => ` ${key}:
|
|
|
190
194
|
} else {
|
|
191
195
|
runCommand = `${this.packageManager} add`;
|
|
192
196
|
}
|
|
197
|
+
const env = {
|
|
198
|
+
PATH: process.env.PATH
|
|
199
|
+
};
|
|
200
|
+
if (process.env.npm_config_registry) {
|
|
201
|
+
env.npm_config_registry = process.env.npm_config_registry;
|
|
202
|
+
}
|
|
193
203
|
const cpLogger = createChildProcessLogger({
|
|
194
204
|
logger: this.logger,
|
|
195
205
|
root: ""
|
|
@@ -197,9 +207,7 @@ ${Object.entries(config.supportedArchitectures).map(([key, value]) => ` ${key}:
|
|
|
197
207
|
return cpLogger({
|
|
198
208
|
cmd: `${runCommand}`,
|
|
199
209
|
args: packages,
|
|
200
|
-
env
|
|
201
|
-
PATH: process.env.PATH
|
|
202
|
-
}
|
|
210
|
+
env
|
|
203
211
|
});
|
|
204
212
|
}
|
|
205
213
|
async checkDependencies(dependencies) {
|
|
@@ -202,12 +202,16 @@ ${Object.entries(config.supportedArchitectures).map(([key, value]) => ` ${key}:
|
|
|
202
202
|
logger: this.logger,
|
|
203
203
|
root: dir
|
|
204
204
|
});
|
|
205
|
+
const env = {
|
|
206
|
+
PATH: process.env.PATH
|
|
207
|
+
};
|
|
208
|
+
if (process.env.npm_config_registry) {
|
|
209
|
+
env.npm_config_registry = process.env.npm_config_registry;
|
|
210
|
+
}
|
|
205
211
|
return cpLogger({
|
|
206
212
|
cmd: runCommand,
|
|
207
213
|
args,
|
|
208
|
-
env
|
|
209
|
-
PATH: process.env.PATH
|
|
210
|
-
}
|
|
214
|
+
env
|
|
211
215
|
});
|
|
212
216
|
}
|
|
213
217
|
async installPackages(packages) {
|
|
@@ -217,6 +221,12 @@ ${Object.entries(config.supportedArchitectures).map(([key, value]) => ` ${key}:
|
|
|
217
221
|
} else {
|
|
218
222
|
runCommand = `${this.packageManager} add`;
|
|
219
223
|
}
|
|
224
|
+
const env = {
|
|
225
|
+
PATH: process.env.PATH
|
|
226
|
+
};
|
|
227
|
+
if (process.env.npm_config_registry) {
|
|
228
|
+
env.npm_config_registry = process.env.npm_config_registry;
|
|
229
|
+
}
|
|
220
230
|
const cpLogger = createChildProcessLogger({
|
|
221
231
|
logger: this.logger,
|
|
222
232
|
root: ""
|
|
@@ -224,9 +234,7 @@ ${Object.entries(config.supportedArchitectures).map(([key, value]) => ` ${key}:
|
|
|
224
234
|
return cpLogger({
|
|
225
235
|
cmd: `${runCommand}`,
|
|
226
236
|
args: packages,
|
|
227
|
-
env
|
|
228
|
-
PATH: process.env.PATH
|
|
229
|
-
}
|
|
237
|
+
env
|
|
230
238
|
});
|
|
231
239
|
}
|
|
232
240
|
async checkDependencies(dependencies) {
|
|
@@ -259,7 +267,7 @@ ${Object.entries(config.supportedArchitectures).map(([key, value]) => ` ${key}:
|
|
|
259
267
|
}
|
|
260
268
|
}
|
|
261
269
|
async getPackageVersion() {
|
|
262
|
-
const __filename = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
270
|
+
const __filename = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-7ICGDVC3.cjs', document.baseURI).href)));
|
|
263
271
|
const __dirname = path.dirname(__filename);
|
|
264
272
|
const pkgJsonPath = path__default.default.join(__dirname, "..", "..", "package.json");
|
|
265
273
|
const content = await fsExtra.readJSON(pkgJsonPath);
|
|
@@ -346,7 +354,7 @@ var FileService = class {
|
|
|
346
354
|
* @returns
|
|
347
355
|
*/
|
|
348
356
|
async copyStarterFile(inputFile, outputFilePath, replaceIfExists) {
|
|
349
|
-
const __filename = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
357
|
+
const __filename = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-7ICGDVC3.cjs', document.baseURI).href)));
|
|
350
358
|
const __dirname = path__default.default.dirname(__filename);
|
|
351
359
|
const filePath = path__default.default.resolve(__dirname, "..", "starter-files", inputFile);
|
|
352
360
|
const fileString = fs3__namespace.default.readFileSync(filePath, "utf8");
|
|
@@ -4,6 +4,9 @@ var chunkTSG63RGL_cjs = require('./chunk-TSG63RGL.cjs');
|
|
|
4
4
|
var chunkIMGVLBV7_cjs = require('./chunk-IMGVLBV7.cjs');
|
|
5
5
|
var chunk54KOF3NB_cjs = require('./chunk-54KOF3NB.cjs');
|
|
6
6
|
var rollup = require('rollup');
|
|
7
|
+
var path = require('path');
|
|
8
|
+
var resolveFrom = require('resolve-from');
|
|
9
|
+
var module$1 = require('module');
|
|
7
10
|
var babel = require('@babel/core');
|
|
8
11
|
var esbuild = require('rollup-plugin-esbuild');
|
|
9
12
|
var commonjs = require('@rollup/plugin-commonjs');
|
|
@@ -28,10 +31,80 @@ function _interopNamespace(e) {
|
|
|
28
31
|
return Object.freeze(n);
|
|
29
32
|
}
|
|
30
33
|
|
|
34
|
+
var resolveFrom__default = /*#__PURE__*/_interopDefault(resolveFrom);
|
|
31
35
|
var babel__namespace = /*#__PURE__*/_interopNamespace(babel);
|
|
32
36
|
var esbuild__default = /*#__PURE__*/_interopDefault(esbuild);
|
|
33
37
|
var commonjs__default = /*#__PURE__*/_interopDefault(commonjs);
|
|
34
38
|
|
|
39
|
+
function isBuiltinModule(specifier) {
|
|
40
|
+
return module$1.builtinModules.includes(specifier) || specifier.startsWith("node:") || module$1.builtinModules.includes(specifier.replace(/^node:/, ""));
|
|
41
|
+
}
|
|
42
|
+
function safeResolve(id, importer) {
|
|
43
|
+
try {
|
|
44
|
+
return resolveFrom__default.default(importer, id);
|
|
45
|
+
} catch {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function getPackageName(id) {
|
|
50
|
+
const parts = id.split("/");
|
|
51
|
+
if (id.startsWith("@")) {
|
|
52
|
+
return parts.slice(0, 2).join("/");
|
|
53
|
+
}
|
|
54
|
+
return parts[0];
|
|
55
|
+
}
|
|
56
|
+
function nodeModulesExtensionResolver() {
|
|
57
|
+
return {
|
|
58
|
+
name: "node-modules-extension-resolver",
|
|
59
|
+
resolveId(id, importer) {
|
|
60
|
+
if (id.startsWith(".") || id.startsWith("/") || !importer) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
if (isBuiltinModule(id)) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
if (id.startsWith("@") && id.split("/").length === 2) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
if (!id.startsWith("@") && id.split("/").length === 1) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
const foundExt = path.extname(id);
|
|
73
|
+
if (foundExt) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
const resolved = undefined(id);
|
|
78
|
+
if (!path.extname(resolved)) {
|
|
79
|
+
throw new Error(`Cannot resolve ${id} from ${importer}`);
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
} catch (e) {
|
|
83
|
+
for (const ext of [".mjs", ".js", ".cjs"]) {
|
|
84
|
+
const resolved = safeResolve(id + ext, importer);
|
|
85
|
+
if (resolved) {
|
|
86
|
+
const pkgName = getPackageName(id);
|
|
87
|
+
if (!pkgName) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
const pkgJsonPath = safeResolve(`${pkgName}/package.json`, importer);
|
|
91
|
+
if (!pkgJsonPath) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
const newImportWithExtension = resolved.replace(path.dirname(pkgJsonPath), pkgName);
|
|
95
|
+
return {
|
|
96
|
+
id: newImportWithExtension,
|
|
97
|
+
external: true
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// src/build/watcher.ts
|
|
35
108
|
async function getInputOptions2(entryFile, platform, env) {
|
|
36
109
|
const inputOptions = await chunkIMGVLBV7_cjs.getInputOptions(
|
|
37
110
|
entryFile,
|
|
@@ -49,6 +122,7 @@ async function getInputOptions2(entryFile, platform, env) {
|
|
|
49
122
|
(plugin) => !plugin || !plugin?.name || plugin.name !== "node-resolve"
|
|
50
123
|
);
|
|
51
124
|
inputOptions.plugins.push(chunkTSG63RGL_cjs.aliasHono());
|
|
125
|
+
inputOptions.plugins.push(nodeModulesExtensionResolver());
|
|
52
126
|
}
|
|
53
127
|
return inputOptions;
|
|
54
128
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { writeTelemetryConfig } from './chunk-EXHFPVZH.js';
|
|
2
2
|
import { analyzeBundle } from './chunk-WGJTOVLL.js';
|
|
3
3
|
import { createBundler, getInputOptions } from './chunk-HHOCIHND.js';
|
|
4
|
-
import { DepsService, FileService } from './chunk-
|
|
4
|
+
import { DepsService, FileService } from './chunk-4VKGIENI.js';
|
|
5
5
|
import { existsSync } from 'fs';
|
|
6
6
|
import { writeFile, stat } from 'fs/promises';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
@@ -2,10 +2,82 @@ import { aliasHono, recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastr
|
|
|
2
2
|
import { getInputOptions } from './chunk-HHOCIHND.js';
|
|
3
3
|
import { tsConfigPaths } from './chunk-Z544XXXK.js';
|
|
4
4
|
import { watch, rollup } from 'rollup';
|
|
5
|
+
import { extname, dirname } from 'path';
|
|
6
|
+
import resolveFrom from 'resolve-from';
|
|
7
|
+
import { builtinModules } from 'module';
|
|
5
8
|
import * as babel from '@babel/core';
|
|
6
9
|
import esbuild from 'rollup-plugin-esbuild';
|
|
7
10
|
import commonjs from '@rollup/plugin-commonjs';
|
|
8
11
|
|
|
12
|
+
function isBuiltinModule(specifier) {
|
|
13
|
+
return builtinModules.includes(specifier) || specifier.startsWith("node:") || builtinModules.includes(specifier.replace(/^node:/, ""));
|
|
14
|
+
}
|
|
15
|
+
function safeResolve(id, importer) {
|
|
16
|
+
try {
|
|
17
|
+
return resolveFrom(importer, id);
|
|
18
|
+
} catch {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function getPackageName(id) {
|
|
23
|
+
const parts = id.split("/");
|
|
24
|
+
if (id.startsWith("@")) {
|
|
25
|
+
return parts.slice(0, 2).join("/");
|
|
26
|
+
}
|
|
27
|
+
return parts[0];
|
|
28
|
+
}
|
|
29
|
+
function nodeModulesExtensionResolver() {
|
|
30
|
+
return {
|
|
31
|
+
name: "node-modules-extension-resolver",
|
|
32
|
+
resolveId(id, importer) {
|
|
33
|
+
if (id.startsWith(".") || id.startsWith("/") || !importer) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
if (isBuiltinModule(id)) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
if (id.startsWith("@") && id.split("/").length === 2) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
if (!id.startsWith("@") && id.split("/").length === 1) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const foundExt = extname(id);
|
|
46
|
+
if (foundExt) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
const resolved = import.meta.resolve(id);
|
|
51
|
+
if (!extname(resolved)) {
|
|
52
|
+
throw new Error(`Cannot resolve ${id} from ${importer}`);
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
} catch (e) {
|
|
56
|
+
for (const ext of [".mjs", ".js", ".cjs"]) {
|
|
57
|
+
const resolved = safeResolve(id + ext, importer);
|
|
58
|
+
if (resolved) {
|
|
59
|
+
const pkgName = getPackageName(id);
|
|
60
|
+
if (!pkgName) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
const pkgJsonPath = safeResolve(`${pkgName}/package.json`, importer);
|
|
64
|
+
if (!pkgJsonPath) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
const newImportWithExtension = resolved.replace(dirname(pkgJsonPath), pkgName);
|
|
68
|
+
return {
|
|
69
|
+
id: newImportWithExtension,
|
|
70
|
+
external: true
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// src/build/watcher.ts
|
|
9
81
|
async function getInputOptions2(entryFile, platform, env) {
|
|
10
82
|
const inputOptions = await getInputOptions(
|
|
11
83
|
entryFile,
|
|
@@ -23,6 +95,7 @@ async function getInputOptions2(entryFile, platform, env) {
|
|
|
23
95
|
(plugin) => !plugin || !plugin?.name || plugin.name !== "node-resolve"
|
|
24
96
|
);
|
|
25
97
|
inputOptions.plugins.push(aliasHono());
|
|
98
|
+
inputOptions.plugins.push(nodeModulesExtensionResolver());
|
|
26
99
|
}
|
|
27
100
|
return inputOptions;
|
|
28
101
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkDTQ7BTPM_cjs = require('./chunk-DTQ7BTPM.cjs');
|
|
4
4
|
var chunkTSG63RGL_cjs = require('./chunk-TSG63RGL.cjs');
|
|
5
5
|
var chunkIMGVLBV7_cjs = require('./chunk-IMGVLBV7.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk7ICGDVC3_cjs = require('./chunk-7ICGDVC3.cjs');
|
|
7
7
|
var fs = require('fs');
|
|
8
8
|
var promises = require('fs/promises');
|
|
9
9
|
var path = require('path');
|
|
@@ -60,7 +60,7 @@ var collectTransitiveWorkspaceDependencies = ({
|
|
|
60
60
|
if (!root) {
|
|
61
61
|
throw new Error("Could not find workspace root");
|
|
62
62
|
}
|
|
63
|
-
const depsService = new
|
|
63
|
+
const depsService = new chunk7ICGDVC3_cjs.DepsService(root.location);
|
|
64
64
|
depsService.__setLogger(logger);
|
|
65
65
|
const sanitizedName = slugify__default.default(pkgName);
|
|
66
66
|
const tgzPath = depsService.getWorkspaceDependencyPath({
|
|
@@ -88,7 +88,7 @@ var packWorkspaceDependencies = async ({
|
|
|
88
88
|
if (!root) {
|
|
89
89
|
throw new Error("Could not find workspace root");
|
|
90
90
|
}
|
|
91
|
-
const depsService = new
|
|
91
|
+
const depsService = new chunk7ICGDVC3_cjs.DepsService(root.location);
|
|
92
92
|
depsService.__setLogger(logger);
|
|
93
93
|
if (usedWorkspacePackages.size > 0) {
|
|
94
94
|
const workspaceDirPath = path.join(bundleOutputDir, "workspace-module");
|
|
@@ -131,7 +131,7 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
131
131
|
}
|
|
132
132
|
async writeInstrumentationFile(outputDirectory) {
|
|
133
133
|
const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
|
|
134
|
-
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-
|
|
134
|
+
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-VZ6L36CW.cjs', document.baseURI).href))));
|
|
135
135
|
await fsExtra.copy(path.join(__dirname, "templates", "instrumentation-template.js"), instrumentationFile);
|
|
136
136
|
}
|
|
137
137
|
async writePackageJson(outputDirectory, dependencies, resolutions) {
|
|
@@ -189,7 +189,7 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
189
189
|
return await chunkTSG63RGL_cjs.analyzeBundle(entry, mastraFile, path.join(outputDirectory, this.analyzeOutputDir), "node", this.logger);
|
|
190
190
|
}
|
|
191
191
|
async installDependencies(outputDirectory, rootDir = process.cwd()) {
|
|
192
|
-
const deps = new
|
|
192
|
+
const deps = new chunk7ICGDVC3_cjs.DepsService(rootDir);
|
|
193
193
|
deps.__setLogger(this.logger);
|
|
194
194
|
await deps.install({ dir: path.join(outputDirectory, this.outputDir) });
|
|
195
195
|
}
|
|
@@ -226,7 +226,7 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
226
226
|
const expandedPaths = await globby.globby(toolPath, {});
|
|
227
227
|
for (const path$1 of expandedPaths) {
|
|
228
228
|
if (await fsExtra__default.default.pathExists(path$1)) {
|
|
229
|
-
const fileService = new
|
|
229
|
+
const fileService = new chunk7ICGDVC3_cjs.FileService();
|
|
230
230
|
const entryFile = fileService.getFirstExistingFile([
|
|
231
231
|
path.join(path$1, "index.ts"),
|
|
232
232
|
path.join(path$1, "index.js"),
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVZ6L36CW_cjs = require('./chunk-VZ6L36CW.cjs');
|
|
4
4
|
var chunkTSG63RGL_cjs = require('./chunk-TSG63RGL.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk7ICGDVC3_cjs = require('./chunk-7ICGDVC3.cjs');
|
|
6
6
|
var babel = require('@babel/core');
|
|
7
7
|
var rollup = require('rollup');
|
|
8
8
|
var esbuild = require('rollup-plugin-esbuild');
|
|
@@ -33,8 +33,8 @@ 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
|
|
37
|
-
deps = new
|
|
36
|
+
var Deployer = class extends chunkVZ6L36CW_cjs.Bundler {
|
|
37
|
+
deps = new chunk7ICGDVC3_cjs.DepsService();
|
|
38
38
|
constructor(args) {
|
|
39
39
|
super(args.name, "DEPLOYER");
|
|
40
40
|
this.deps.__setLogger(this.logger);
|
|
@@ -42,7 +42,7 @@ var Deployer = class extends chunkZEUV45KC_cjs.Bundler {
|
|
|
42
42
|
getEnvFiles() {
|
|
43
43
|
const possibleFiles = [".env.production", ".env.local", ".env"];
|
|
44
44
|
try {
|
|
45
|
-
const fileService = new
|
|
45
|
+
const fileService = new chunk7ICGDVC3_cjs.FileService();
|
|
46
46
|
const envFile = fileService.getFirstExistingFile(possibleFiles);
|
|
47
47
|
return Promise.resolve([envFile]);
|
|
48
48
|
} catch {
|
|
@@ -176,19 +176,19 @@ async function getDeployer(entryFile, outputDir) {
|
|
|
176
176
|
|
|
177
177
|
Object.defineProperty(exports, "Deps", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunk7ICGDVC3_cjs.Deps; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "FileService", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunk7ICGDVC3_cjs.FileService; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "createChildProcessLogger", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk7ICGDVC3_cjs.createChildProcessLogger; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "createPinoStream", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk7ICGDVC3_cjs.createPinoStream; }
|
|
192
192
|
});
|
|
193
193
|
exports.Deployer = Deployer;
|
|
194
194
|
exports.getDeployer = getDeployer;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bundler } from './chunk-
|
|
1
|
+
import { Bundler } from './chunk-FBZWTLPQ.js';
|
|
2
2
|
import { recursiveRemoveNonReferencedNodes } from './chunk-WGJTOVLL.js';
|
|
3
|
-
import { DepsService, FileService } from './chunk-
|
|
4
|
-
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-
|
|
3
|
+
import { DepsService, FileService } from './chunk-4VKGIENI.js';
|
|
4
|
+
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-4VKGIENI.js';
|
|
5
5
|
import * as babel from '@babel/core';
|
|
6
6
|
import babel__default from '@babel/core';
|
|
7
7
|
import { rollup } from 'rollup';
|
package/dist/services/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7ICGDVC3_cjs = require('../chunk-7ICGDVC3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "DepsService", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk7ICGDVC3_cjs.DepsService; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "EnvService", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7ICGDVC3_cjs.EnvService; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FileService", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7ICGDVC3_cjs.FileService; }
|
|
18
18
|
});
|
package/dist/services/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DepsService, EnvService, FileService } from '../chunk-
|
|
1
|
+
export { DepsService, EnvService, FileService } from '../chunk-4VKGIENI.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.10.6-alpha.
|
|
3
|
+
"version": "0.10.6-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@babel/helper-module-imports": "^7.27.1",
|
|
90
90
|
"@neon-rs/load": "^0.1.82",
|
|
91
91
|
"@rollup/plugin-alias": "^5.1.1",
|
|
92
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
92
|
+
"@rollup/plugin-commonjs": "^28.0.5",
|
|
93
93
|
"@rollup/plugin-json": "^6.1.0",
|
|
94
94
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
95
95
|
"@rollup/plugin-virtual": "^3.0.2",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
109
109
|
"typescript-paths": "^1.5.1",
|
|
110
110
|
"zod": "^3.25.57",
|
|
111
|
-
"@mastra/server": "^0.10.6-alpha.
|
|
111
|
+
"@mastra/server": "^0.10.6-alpha.3"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@hono/node-server": "^1.14.4",
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
"type-fest": "^4.41.0",
|
|
128
128
|
"typescript": "^5.8.3",
|
|
129
129
|
"vitest": "^2.1.9",
|
|
130
|
-
"@
|
|
130
|
+
"@internal/lint": "0.0.12",
|
|
131
131
|
"@mastra/mcp": "^0.10.4-alpha.0",
|
|
132
|
-
"@
|
|
132
|
+
"@mastra/core": "0.10.6-alpha.3"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
135
|
"@mastra/core": "^0.10.2-alpha.0"
|