@mastra/deployer 0.10.3 → 0.10.4-alpha.1
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.js +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.js +4 -4
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-TDWDSZWX.js → chunk-77XOUHT3.js} +17 -9
- package/dist/{chunk-KWJ2766I.js → chunk-EXHFPVZH.js} +1 -1
- package/dist/{chunk-AOSWYZKN.js → chunk-HHOCIHND.js} +2 -2
- package/dist/{chunk-2LZRVR53.js → chunk-WGJTOVLL.js} +7 -7
- package/dist/{chunk-UJR423U5.js → chunk-WM2GT75J.js} +3 -3
- package/dist/{chunk-WVBUOQT6.js → chunk-Z544XXXK.js} +2 -2
- package/dist/{chunk-3W43JESU.cjs → chunk-ZEUV45KC.cjs} +11 -3
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +378 -280
- package/dist/server/index.js +382 -285
- package/dist/templates/instrumentation-template.js +52 -8
- package/dist/validator/custom-resolver.js +4 -4
- package/dist/validator/loader.js +1 -1
- package/package.json +20 -20
package/dist/build/analyze.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { analyzeBundle } from '../chunk-
|
|
1
|
+
export { analyzeBundle } from '../chunk-WGJTOVLL.js';
|
package/dist/build/bundler.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createBundler, getInputOptions } from '../chunk-
|
|
1
|
+
export { createBundler, getInputOptions } from '../chunk-HHOCIHND.js';
|
package/dist/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-
|
|
2
|
-
export { writeTelemetryConfig } from '../chunk-
|
|
3
|
-
export { analyzeBundle, getBundlerOptions } from '../chunk-
|
|
4
|
-
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-
|
|
1
|
+
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-WM2GT75J.js';
|
|
2
|
+
export { writeTelemetryConfig } from '../chunk-EXHFPVZH.js';
|
|
3
|
+
export { analyzeBundle, getBundlerOptions } from '../chunk-WGJTOVLL.js';
|
|
4
|
+
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-HHOCIHND.js';
|
|
5
5
|
export { Deps, FileService } from '../chunk-UV4RQQ3R.js';
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZEUV45KC_cjs = require('../chunk-ZEUV45KC.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 chunkZEUV45KC_cjs.Bundler; }
|
|
10
10
|
});
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
1
|
+
export { Bundler } from '../chunk-77XOUHT3.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { writeTelemetryConfig } from './chunk-
|
|
2
|
-
import { analyzeBundle } from './chunk-
|
|
3
|
-
import { createBundler, getInputOptions } from './chunk-
|
|
1
|
+
import { writeTelemetryConfig } from './chunk-EXHFPVZH.js';
|
|
2
|
+
import { analyzeBundle } from './chunk-WGJTOVLL.js';
|
|
3
|
+
import { createBundler, getInputOptions } from './chunk-HHOCIHND.js';
|
|
4
4
|
import { DepsService, FileService } from './chunk-UV4RQQ3R.js';
|
|
5
|
-
import { existsSync } from '
|
|
6
|
-
import { writeFile, stat } from '
|
|
7
|
-
import { join, dirname } from '
|
|
8
|
-
import { fileURLToPath } from '
|
|
5
|
+
import { existsSync } from 'fs';
|
|
6
|
+
import { writeFile, stat } from 'fs/promises';
|
|
7
|
+
import { join, dirname } from 'path';
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
9
9
|
import { MastraBundler } from '@mastra/core/bundler';
|
|
10
10
|
import virtual from '@rollup/plugin-virtual';
|
|
11
11
|
import fsExtra, { emptyDir, ensureDir, copy, readJSON } from 'fs-extra/esm';
|
|
@@ -138,7 +138,15 @@ var Bundler = class extends MastraBundler {
|
|
|
138
138
|
dependenciesMap.set(pkgName, value);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
dependenciesMap.set("@opentelemetry/
|
|
141
|
+
dependenciesMap.set("@opentelemetry/core", "^2.0.1");
|
|
142
|
+
dependenciesMap.set("@opentelemetry/auto-instrumentations-node", "^0.59.0");
|
|
143
|
+
dependenciesMap.set("@opentelemetry/exporter-trace-otlp-grpc", "^0.201.0");
|
|
144
|
+
dependenciesMap.set("@opentelemetry/exporter-trace-otlp-http", "^0.201.0");
|
|
145
|
+
dependenciesMap.set("@opentelemetry/resources", "^2.0.1");
|
|
146
|
+
dependenciesMap.set("@opentelemetry/sdk-node", "^0.201.0");
|
|
147
|
+
dependenciesMap.set("@opentelemetry/sdk-trace-base", "^2.0.1");
|
|
148
|
+
dependenciesMap.set("@opentelemetry/semantic-conventions", "^1.33.0");
|
|
149
|
+
dependenciesMap.set("@opentelemetry/instrumentation", "^0.202.0");
|
|
142
150
|
await writeFile(
|
|
143
151
|
pkgPath,
|
|
144
152
|
JSON.stringify(
|
|
@@ -149,7 +157,7 @@ var Bundler = class extends MastraBundler {
|
|
|
149
157
|
type: "module",
|
|
150
158
|
main: "index.mjs",
|
|
151
159
|
scripts: {
|
|
152
|
-
start: "node ./index.mjs"
|
|
160
|
+
start: "node --import=./instrumentation.mjs --import=@opentelemetry/instrumentation/hook.mjs ./index.mjs"
|
|
153
161
|
},
|
|
154
162
|
author: "Mastra",
|
|
155
163
|
license: "ISC",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastraExcept } from './chunk-
|
|
1
|
+
import { recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastraExcept } from './chunk-WGJTOVLL.js';
|
|
2
2
|
import * as babel from '@babel/core';
|
|
3
3
|
import { rollup } from 'rollup';
|
|
4
4
|
import esbuild from 'rollup-plugin-esbuild';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { tsConfigPaths, removeDeployer } from './chunk-
|
|
1
|
+
import { tsConfigPaths, removeDeployer } from './chunk-Z544XXXK.js';
|
|
2
2
|
import alias from '@rollup/plugin-alias';
|
|
3
3
|
import commonjs from '@rollup/plugin-commonjs';
|
|
4
4
|
import json from '@rollup/plugin-json';
|
|
5
5
|
import nodeResolve from '@rollup/plugin-node-resolve';
|
|
6
|
-
import { fileURLToPath } from '
|
|
6
|
+
import { fileURLToPath } from 'url';
|
|
7
7
|
import { rollup } from 'rollup';
|
|
8
8
|
import esbuild from 'rollup-plugin-esbuild';
|
|
9
9
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { tsConfigPaths, removeDeployer } from './chunk-
|
|
1
|
+
import { tsConfigPaths, removeDeployer } from './chunk-Z544XXXK.js';
|
|
2
2
|
import commonjs2 from '@rollup/plugin-commonjs';
|
|
3
3
|
import json from '@rollup/plugin-json';
|
|
4
4
|
import nodeResolve from '@rollup/plugin-node-resolve';
|
|
5
5
|
import virtual from '@rollup/plugin-virtual';
|
|
6
|
-
import { existsSync } from '
|
|
7
|
-
import { fileURLToPath } from '
|
|
6
|
+
import { existsSync } from 'fs';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
8
8
|
import { rollup } from 'rollup';
|
|
9
9
|
import esbuild from 'rollup-plugin-esbuild';
|
|
10
|
-
import { builtinModules } from '
|
|
11
|
-
import { join, dirname } from '
|
|
12
|
-
import { spawn as spawn$1 } from '
|
|
13
|
-
import { writeFile } from '
|
|
10
|
+
import { builtinModules } from 'module';
|
|
11
|
+
import { join, dirname } from 'path';
|
|
12
|
+
import { spawn as spawn$1 } from 'child_process';
|
|
13
|
+
import { writeFile } from 'fs/promises';
|
|
14
14
|
import * as babel from '@babel/core';
|
|
15
15
|
import babel__default from '@babel/core';
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aliasHono, recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastraExcept } from './chunk-
|
|
2
|
-
import { getInputOptions } from './chunk-
|
|
3
|
-
import { tsConfigPaths } from './chunk-
|
|
1
|
+
import { aliasHono, recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastraExcept } from './chunk-WGJTOVLL.js';
|
|
2
|
+
import { getInputOptions } from './chunk-HHOCIHND.js';
|
|
3
|
+
import { tsConfigPaths } from './chunk-Z544XXXK.js';
|
|
4
4
|
import { watch, rollup } from 'rollup';
|
|
5
5
|
import * as babel from '@babel/core';
|
|
6
6
|
import esbuild from 'rollup-plugin-esbuild';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as babel from '@babel/core';
|
|
2
2
|
import babel__default from '@babel/core';
|
|
3
|
-
import fs from '
|
|
4
|
-
import path, { normalize } from '
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import path, { normalize } from 'path';
|
|
5
5
|
import { createHandler } from 'typescript-paths';
|
|
6
6
|
|
|
7
7
|
// src/build/plugins/remove-deployer.ts
|
|
@@ -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-ZEUV45KC.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) {
|
|
@@ -148,7 +148,15 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
148
148
|
dependenciesMap.set(pkgName, value);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
dependenciesMap.set("@opentelemetry/
|
|
151
|
+
dependenciesMap.set("@opentelemetry/core", "^2.0.1");
|
|
152
|
+
dependenciesMap.set("@opentelemetry/auto-instrumentations-node", "^0.59.0");
|
|
153
|
+
dependenciesMap.set("@opentelemetry/exporter-trace-otlp-grpc", "^0.201.0");
|
|
154
|
+
dependenciesMap.set("@opentelemetry/exporter-trace-otlp-http", "^0.201.0");
|
|
155
|
+
dependenciesMap.set("@opentelemetry/resources", "^2.0.1");
|
|
156
|
+
dependenciesMap.set("@opentelemetry/sdk-node", "^0.201.0");
|
|
157
|
+
dependenciesMap.set("@opentelemetry/sdk-trace-base", "^2.0.1");
|
|
158
|
+
dependenciesMap.set("@opentelemetry/semantic-conventions", "^1.33.0");
|
|
159
|
+
dependenciesMap.set("@opentelemetry/instrumentation", "^0.202.0");
|
|
152
160
|
await promises.writeFile(
|
|
153
161
|
pkgPath,
|
|
154
162
|
JSON.stringify(
|
|
@@ -159,7 +167,7 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
159
167
|
type: "module",
|
|
160
168
|
main: "index.mjs",
|
|
161
169
|
scripts: {
|
|
162
|
-
start: "node ./index.mjs"
|
|
170
|
+
start: "node --import=./instrumentation.mjs --import=@opentelemetry/instrumentation/hook.mjs ./index.mjs"
|
|
163
171
|
},
|
|
164
172
|
author: "Mastra",
|
|
165
173
|
license: "ISC",
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZEUV45KC_cjs = require('./chunk-ZEUV45KC.cjs');
|
|
4
4
|
var chunkTSG63RGL_cjs = require('./chunk-TSG63RGL.cjs');
|
|
5
5
|
var chunk4VC5Z4YR_cjs = require('./chunk-4VC5Z4YR.cjs');
|
|
6
6
|
var babel = require('@babel/core');
|
|
@@ -33,7 +33,7 @@ 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
|
|
36
|
+
var Deployer = class extends chunkZEUV45KC_cjs.Bundler {
|
|
37
37
|
deps = new chunk4VC5Z4YR_cjs.DepsService();
|
|
38
38
|
constructor(args) {
|
|
39
39
|
super(args.name, "DEPLOYER");
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bundler } from './chunk-
|
|
2
|
-
import { recursiveRemoveNonReferencedNodes } from './chunk-
|
|
1
|
+
import { Bundler } from './chunk-77XOUHT3.js';
|
|
2
|
+
import { recursiveRemoveNonReferencedNodes } from './chunk-WGJTOVLL.js';
|
|
3
3
|
import { DepsService, FileService } from './chunk-UV4RQQ3R.js';
|
|
4
4
|
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-UV4RQQ3R.js';
|
|
5
5
|
import * as babel from '@babel/core';
|