mastra 0.10.7-alpha.0 → 0.10.7-alpha.2

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.
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,4 @@
1
+ import { register } from 'module';
2
+
3
+ // src/commands/dev/telemetry-loader.ts
4
+ register("./telemetry-resolver.js", import.meta.url);
@@ -0,0 +1,9 @@
1
+ import { ResolveHookContext } from 'node:module';
2
+
3
+ declare function resolve(specifier: string, context: ResolveHookContext, nextResolve: (specifier: string, context: ResolveHookContext) => Promise<{
4
+ url: string;
5
+ }>): Promise<{
6
+ url: string;
7
+ }>;
8
+
9
+ export { resolve };
@@ -0,0 +1,15 @@
1
+ // src/commands/dev/telemetry-resolver.ts
2
+ async function resolve(specifier, context, nextResolve) {
3
+ if (!specifier.startsWith("@opentelemetry")) {
4
+ return nextResolve(specifier, context);
5
+ }
6
+ if (!context.parentURL?.endsWith("instrumentation.mjs")) {
7
+ return nextResolve(specifier, context);
8
+ }
9
+ return nextResolve(specifier, {
10
+ ...context,
11
+ parentURL: import.meta.url
12
+ });
13
+ }
14
+
15
+ export { resolve };
package/dist/index.js CHANGED
@@ -213,9 +213,6 @@ var DevBundler = class extends Bundler {
213
213
  await writeTelemetryConfig(entryFile, outputDir);
214
214
  await this.writeInstrumentationFile(outputDir);
215
215
  await this.writePackageJson(outputDir, /* @__PURE__ */ new Map(), {});
216
- this.logger.info("Installing dependencies");
217
- await this.installDependencies(outputDirectory);
218
- this.logger.info("Done installing dependencies");
219
216
  const copyPublic = this.copyPublic.bind(this);
220
217
  const watcher = await createWatcher(
221
218
  {
@@ -302,7 +299,11 @@ var startServer = async (dotMastraPath, port, env, errorRestartCount = 0) => {
302
299
  const commands = [];
303
300
  if (!isWebContainer()) {
304
301
  const instrumentation = import.meta.resolve("@opentelemetry/instrumentation/hook.mjs");
305
- commands.push("--import=./instrumentation.mjs", `--import=${instrumentation}`);
302
+ commands.push(
303
+ `--import=${import.meta.resolve("mastra/telemetry-loader")}`,
304
+ "--import=./instrumentation.mjs",
305
+ `--import=${instrumentation}`
306
+ );
306
307
  }
307
308
  commands.push("index.mjs");
308
309
  currentServerProcess = execa("node", commands, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mastra",
3
- "version": "0.10.7-alpha.0",
3
+ "version": "0.10.7-alpha.2",
4
4
  "license": "Elastic-2.0",
5
5
  "description": "cli for mastra",
6
6
  "type": "module",
@@ -9,6 +9,15 @@
9
9
  "bin": {
10
10
  "mastra": "./dist/index.js"
11
11
  },
12
+ "exports": {
13
+ ".": "./dist/index.js",
14
+ "./package.json": "./package.json",
15
+ "./telemetry-loader": "./dist/commands/dev/telemetry-loader.js",
16
+ "./dist/*": [
17
+ "./dist/*",
18
+ "./dist/*.js"
19
+ ]
20
+ },
12
21
  "files": [
13
22
  "dist",
14
23
  "src/scripts",
@@ -36,7 +45,15 @@
36
45
  "dependencies": {
37
46
  "@clack/prompts": "^0.11.0",
38
47
  "@lukeed/uuid": "^2.0.1",
48
+ "@opentelemetry/core": "^2.0.1",
39
49
  "@opentelemetry/instrumentation": "^0.202.0",
50
+ "@opentelemetry/auto-instrumentations-node": "^0.60.1",
51
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.202.0",
52
+ "@opentelemetry/exporter-trace-otlp-http": "^0.202.0",
53
+ "@opentelemetry/resources": "^2.0.1",
54
+ "@opentelemetry/sdk-node": "^0.202.0",
55
+ "@opentelemetry/sdk-trace-base": "^2.0.1",
56
+ "@opentelemetry/semantic-conventions": "^1.34.0",
40
57
  "@webcontainer/env": "^1.1.1",
41
58
  "commander": "^12.1.0",
42
59
  "dotenv": "^16.5.0",
@@ -56,11 +73,11 @@
56
73
  "swr": "^2.3.3",
57
74
  "tcp-port-used": "^1.0.2",
58
75
  "yocto-spinner": "^0.2.3",
59
- "zod": "^3.25.57",
76
+ "zod": "^3.25.67",
60
77
  "zod-to-json-schema": "^3.24.5",
61
- "@mastra/deployer": "^0.10.7-alpha.0",
78
+ "@mastra/deployer": "^0.10.7-alpha.2",
62
79
  "@mastra/loggers": "^0.10.2",
63
- "@mastra/mcp": "^0.10.4"
80
+ "@mastra/mcp": "^0.10.5-alpha.1"
64
81
  },
65
82
  "devDependencies": {
66
83
  "@microsoft/api-extractor": "^7.52.8",
@@ -70,7 +87,7 @@
70
87
  "@types/shell-quote": "^1.7.5",
71
88
  "@types/tcp-port-used": "^1.0.4",
72
89
  "cpy-cli": "^5.0.0",
73
- "eslint": "^9.28.0",
90
+ "eslint": "^9.29.0",
74
91
  "memfs": "^4.17.2",
75
92
  "npm-run-all2": "^7.0.2",
76
93
  "rollup": "^4.42.0",
@@ -79,9 +96,9 @@
79
96
  "typescript": "^5.8.3",
80
97
  "vitest": "^3.2.3",
81
98
  "@internal/lint": "0.0.13",
82
- "@mastra/core": "0.10.7-alpha.0",
83
- "@mastra/playground-ui": "5.1.7-alpha.0",
84
- "@mastra/client-js": "0.10.6-alpha.0"
99
+ "@mastra/client-js": "0.10.6-alpha.2",
100
+ "@mastra/playground-ui": "5.1.7-alpha.2",
101
+ "@mastra/core": "0.10.7-alpha.2"
85
102
  },
86
103
  "peerDependencies": {
87
104
  "@mastra/core": "^0.10.2-alpha.0"