mastra 1.26.0-alpha.3 → 1.26.0-alpha.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # mastra
2
2
 
3
+ ## 1.26.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`034d353`](https://github.com/mastra-ai/mastra/commit/034d3534130ae6f17d1e81a1dcf956bac0a820ee)]:
8
+ - @mastra/deployer@1.61.0-alpha.4
9
+ - @mastra/core@1.61.0-alpha.4
10
+
3
11
  ## 1.26.0-alpha.3
4
12
 
5
13
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../src/commands/start/start.ts"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAQD,eAAO,MAAM,iBAAiB,UAAY,CAAC;AAI3C,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAA0B,GAAG,MAAM,CAElG;AAED,wBAAsB,KAAK,CAAC,OAAO,GAAE,YAAiB,iBA8ErD"}
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../src/commands/start/start.ts"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAQD,eAAO,MAAM,iBAAiB,UAAY,CAAC;AAI3C,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAA0B,GAAG,MAAM,CAElG;AAED,wBAAsB,KAAK,CAAC,OAAO,GAAE,YAAiB,iBAgFrD"}
@@ -3,7 +3,7 @@ name: mastra
3
3
  description: Documentation for mastra. Use when working with mastra APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "mastra"
6
- version: "1.26.0-alpha.3"
6
+ version: "1.26.0-alpha.4"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.26.0-alpha.3",
2
+ "version": "1.26.0-alpha.4",
3
3
  "package": "mastra",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ import handler from "serve-handler";
42
42
  //#region package.json
43
43
  var package_default = {
44
44
  name: "mastra",
45
- version: "1.26.0-alpha.3",
45
+ version: "1.26.0-alpha.4",
46
46
  license: "Apache-2.0",
47
47
  description: "cli for mastra",
48
48
  type: "module",
@@ -3949,15 +3949,15 @@ async function start(options = {}) {
3949
3949
  stderrBuffer = boundStderr$1(stderrBuffer, data.toString());
3950
3950
  process.stderr.write(data);
3951
3951
  });
3952
- server.on("exit", (code) => {
3953
- if (code !== 0) {
3952
+ server.on("exit", (code, signal) => {
3953
+ if (code !== 0 && code !== null) {
3954
3954
  if (stderrBuffer.includes("ERR_MODULE_NOT_FOUND")) {
3955
3955
  const packageNameMatch = stderrBuffer.match(/Cannot find package '([^']+)'/);
3956
3956
  const packageName = packageNameMatch ? packageNameMatch[1] : null;
3957
3957
  if (packageName) logger.error("Module not found while starting Mastra server", { package: packageName });
3958
3958
  }
3959
- process.exit(code);
3960
3959
  }
3960
+ process.exit(code ?? (signal ? 1 : 0));
3961
3961
  });
3962
3962
  server.on("error", (err) => {
3963
3963
  logger.error("Failed to start server", { error: err.message });
@@ -3965,11 +3965,9 @@ async function start(options = {}) {
3965
3965
  });
3966
3966
  process.on("SIGINT", () => {
3967
3967
  server.kill("SIGINT");
3968
- process.exit(0);
3969
3968
  });
3970
3969
  process.on("SIGTERM", () => {
3971
3970
  server.kill("SIGTERM");
3972
- process.exit(0);
3973
3971
  });
3974
3972
  } catch (error) {
3975
3973
  logger.error("Failed to start Mastra server", { error: error.message });