@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.
@@ -1 +1 @@
1
- export { analyzeBundle } from '../chunk-2LZRVR53.js';
1
+ export { analyzeBundle } from '../chunk-WGJTOVLL.js';
@@ -1 +1 @@
1
- export { createBundler, getInputOptions } from '../chunk-AOSWYZKN.js';
1
+ export { createBundler, getInputOptions } from '../chunk-HHOCIHND.js';
@@ -1,5 +1,5 @@
1
- export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-UJR423U5.js';
2
- export { writeTelemetryConfig } from '../chunk-KWJ2766I.js';
3
- export { analyzeBundle, getBundlerOptions } from '../chunk-2LZRVR53.js';
4
- export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-AOSWYZKN.js';
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';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk3W43JESU_cjs = require('../chunk-3W43JESU.cjs');
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 chunk3W43JESU_cjs.Bundler; }
9
+ get: function () { return chunkZEUV45KC_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-TDWDSZWX.js';
1
+ export { Bundler } from '../chunk-77XOUHT3.js';
@@ -1,11 +1,11 @@
1
- import { writeTelemetryConfig } from './chunk-KWJ2766I.js';
2
- import { analyzeBundle } from './chunk-2LZRVR53.js';
3
- import { createBundler, getInputOptions } from './chunk-AOSWYZKN.js';
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 'node:fs';
6
- import { writeFile, stat } from 'node:fs/promises';
7
- import { join, dirname } from 'node:path';
8
- import { fileURLToPath } from 'node:url';
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/instrumentation", "latest");
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-2LZRVR53.js';
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-WVBUOQT6.js';
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 'node:url';
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-WVBUOQT6.js';
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 'node:fs';
7
- import { fileURLToPath } from 'node:url';
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 'node:module';
11
- import { join, dirname } from 'node:path';
12
- import { spawn as spawn$1 } from 'node:child_process';
13
- import { writeFile } from 'node:fs/promises';
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-2LZRVR53.js';
2
- import { getInputOptions } from './chunk-AOSWYZKN.js';
3
- import { tsConfigPaths } from './chunk-WVBUOQT6.js';
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 'node:fs';
4
- import path, { normalize } from 'node:path';
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-3W43JESU.cjs', document.baseURI).href))));
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/instrumentation", "latest");
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 chunk3W43JESU_cjs = require('./chunk-3W43JESU.cjs');
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 chunk3W43JESU_cjs.Bundler {
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-TDWDSZWX.js';
2
- import { recursiveRemoveNonReferencedNodes } from './chunk-2LZRVR53.js';
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';