@mastra/deployer 1.50.2-alpha.1 → 1.51.0-alpha.11

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/dist/build/analyze.cjs +2 -2
  3. package/dist/build/analyze.js +1 -1
  4. package/dist/build/bundler.cjs +5 -5
  5. package/dist/build/bundler.js +1 -1
  6. package/dist/build/fs-routing/codegen.d.ts +3 -2
  7. package/dist/build/fs-routing/codegen.d.ts.map +1 -1
  8. package/dist/build/fs-routing/discover.d.ts +5 -0
  9. package/dist/build/fs-routing/discover.d.ts.map +1 -1
  10. package/dist/build/fs-routing/prepare.d.ts +5 -2
  11. package/dist/build/fs-routing/prepare.d.ts.map +1 -1
  12. package/dist/build/index.cjs +19 -19
  13. package/dist/build/index.js +4 -4
  14. package/dist/build/plugins/local-storage-detector.d.ts +34 -6
  15. package/dist/build/plugins/local-storage-detector.d.ts.map +1 -1
  16. package/dist/bundler/index.cjs +3 -3
  17. package/dist/bundler/index.js +1 -1
  18. package/dist/{chunk-WIOL4WMZ.js → chunk-2P62SP4K.js} +3 -3
  19. package/dist/{chunk-WIOL4WMZ.js.map → chunk-2P62SP4K.js.map} +1 -1
  20. package/dist/{chunk-6ARGMWNC.js → chunk-B3NI3FBK.js} +116 -10
  21. package/dist/chunk-B3NI3FBK.js.map +1 -0
  22. package/dist/{chunk-R7M4BT5P.cjs → chunk-ETXDK7YK.cjs} +21 -21
  23. package/dist/{chunk-R7M4BT5P.cjs.map → chunk-ETXDK7YK.cjs.map} +1 -1
  24. package/dist/{chunk-ILNCPWNL.cjs → chunk-ICEWJMSM.cjs} +7 -7
  25. package/dist/{chunk-ILNCPWNL.cjs.map → chunk-ICEWJMSM.cjs.map} +1 -1
  26. package/dist/{chunk-JODIXW4D.js → chunk-RJWPICH3.js} +5 -5
  27. package/dist/{chunk-JODIXW4D.js.map → chunk-RJWPICH3.js.map} +1 -1
  28. package/dist/{chunk-2GJY6H6M.cjs → chunk-RVRIXED5.cjs} +116 -10
  29. package/dist/chunk-RVRIXED5.cjs.map +1 -0
  30. package/dist/{chunk-YODVBOD3.cjs → chunk-TF7ILBTX.cjs} +51 -21
  31. package/dist/chunk-TF7ILBTX.cjs.map +1 -0
  32. package/dist/{chunk-VQGZXTOJ.cjs → chunk-TPS3GZO7.cjs} +11 -11
  33. package/dist/{chunk-VQGZXTOJ.cjs.map → chunk-TPS3GZO7.cjs.map} +1 -1
  34. package/dist/{chunk-GGNUZ2A6.js → chunk-TUA7MQC5.js} +44 -14
  35. package/dist/chunk-TUA7MQC5.js.map +1 -0
  36. package/dist/{chunk-UA2DJWFT.js → chunk-WCHVXVD5.js} +3 -3
  37. package/dist/{chunk-UA2DJWFT.js.map → chunk-WCHVXVD5.js.map} +1 -1
  38. package/dist/docs/SKILL.md +1 -1
  39. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  40. package/dist/docs/references/docs-deployment-mastra-server.md +2 -4
  41. package/dist/index.cjs +4 -4
  42. package/dist/index.js +2 -2
  43. package/dist/server/handlers/restart-active-runs.d.ts.map +1 -1
  44. package/dist/server/index.cjs +10 -1
  45. package/dist/server/index.cjs.map +1 -1
  46. package/dist/server/index.d.ts.map +1 -1
  47. package/dist/server/index.js +10 -1
  48. package/dist/server/index.js.map +1 -1
  49. package/package.json +12 -12
  50. package/dist/chunk-2GJY6H6M.cjs.map +0 -1
  51. package/dist/chunk-6ARGMWNC.js.map +0 -1
  52. package/dist/chunk-GGNUZ2A6.js.map +0 -1
  53. package/dist/chunk-YODVBOD3.cjs.map +0 -1
@@ -3,7 +3,7 @@ name: mastra-deployer
3
3
  description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/deployer"
6
- version: "1.50.2-alpha.1"
6
+ version: "1.51.0-alpha.11"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.50.2-alpha.1",
2
+ "version": "1.51.0-alpha.11",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {
5
5
  "Deps": {
@@ -14,9 +14,7 @@ Run the build command from your project root:
14
14
  mastra build
15
15
  ```
16
16
 
17
- This creates a `.mastra` directory containing your production-ready server.
18
-
19
- > **Info:** Read the [`mastra build`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
17
+ This creates a `.mastra` directory containing your production-ready server. Read the [`mastra build`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
20
18
 
21
19
  ## Build output
22
20
 
@@ -59,7 +57,7 @@ The `mastra start` command provides additional features:
59
57
  - Provides helpful error messages for missing modules
60
58
  - Handles process signals for graceful shutdown
61
59
 
62
- > **Info:** Read the [`mastra start`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
60
+ Read the [`mastra start`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
63
61
 
64
62
  ## Build configuration
65
63
 
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkVQGZXTOJ_cjs = require('./chunk-VQGZXTOJ.cjs');
4
- var chunkILNCPWNL_cjs = require('./chunk-ILNCPWNL.cjs');
3
+ var chunkTPS3GZO7_cjs = require('./chunk-TPS3GZO7.cjs');
4
+ var chunkICEWJMSM_cjs = require('./chunk-ICEWJMSM.cjs');
5
5
  var chunkVKAFARW6_cjs = require('./chunk-VKAFARW6.cjs');
6
6
 
7
7
  // src/deploy/base.ts
8
- var Deployer = class extends chunkVQGZXTOJ_cjs.Bundler {
8
+ var Deployer = class extends chunkTPS3GZO7_cjs.Bundler {
9
9
  deps = new chunkVKAFARW6_cjs.DepsService();
10
10
  constructor(args) {
11
11
  super(args.name, "DEPLOYER");
@@ -25,7 +25,7 @@ var Deployer = class extends chunkVQGZXTOJ_cjs.Bundler {
25
25
 
26
26
  // src/build/deployer.ts
27
27
  async function getDeployer(entryFile, outputDir, logger) {
28
- const result = await chunkILNCPWNL_cjs.extractMastraOption("deployer", entryFile, outputDir, logger);
28
+ const result = await chunkICEWJMSM_cjs.extractMastraOption("deployer", entryFile, outputDir, logger);
29
29
  if (!result) {
30
30
  return null;
31
31
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Bundler } from './chunk-JODIXW4D.js';
2
- import { extractMastraOption } from './chunk-UA2DJWFT.js';
1
+ import { Bundler } from './chunk-RJWPICH3.js';
2
+ import { extractMastraOption } from './chunk-WCHVXVD5.js';
3
3
  import { DepsService, FileService } from './chunk-ZL66GDLP.js';
4
4
  export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-ZL66GDLP.js';
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"restart-active-runs.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/restart-active-runs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,wBAAsB,mCAAmC,CAAC,CAAC,EAAE,OAAO,qBASnE"}
1
+ {"version":3,"file":"restart-active-runs.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/restart-active-runs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,wBAAsB,mCAAmC,CAAC,CAAC,EAAE,OAAO,qBAgBnE"}
@@ -3476,12 +3476,16 @@ var MastraServer = class extends serverAdapter.MastraServer {
3476
3476
  }
3477
3477
  };
3478
3478
 
3479
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.0/45ace4f12872d622c60648be245a42d9401745b4cfb7d3b258ed58143d85fa07/node_modules/hono-openapi/dist/index.js
3479
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.1/ce6c58900688fcc93c665450db9a31c9db55f3c4d38190a91fde66e0a7118f81/node_modules/hono-openapi/dist/index.js
3480
3480
  var uniqueSymbol = /* @__PURE__ */ Symbol("openapi");
3481
3481
  function describeRoute(spec) {
3482
3482
  const middleware2 = async (_c, next) => {
3483
3483
  await next();
3484
3484
  };
3485
+ Object.defineProperty(middleware2, "name", {
3486
+ value: "describeRoute",
3487
+ configurable: true
3488
+ });
3485
3489
  return Object.assign(middleware2, {
3486
3490
  [uniqueSymbol]: {
3487
3491
  spec
@@ -3552,6 +3556,9 @@ async function restartAllActiveWorkflowRunsHandler(c) {
3552
3556
  try {
3553
3557
  const mastra = c.get("mastra");
3554
3558
  void mastra.restartAllActiveWorkflowRuns();
3559
+ if (mastra.recoveryConfig?.durableAgents === "auto") {
3560
+ void mastra.recoverAllDurableAgents();
3561
+ }
3555
3562
  return c.json({ message: "Restarting all active workflow runs..." });
3556
3563
  } catch (error) {
3557
3564
  return handleError(error, "Error restarting active workflow runs");
@@ -4513,6 +4520,8 @@ async function createNodeServer(mastra, options = { tools: {} }) {
4513
4520
  }
4514
4521
  void import('@mastra/core/telemetry').then(({ syncUsageTelemetry }) => syncUsageTelemetry(mastra)).catch(() => {
4515
4522
  });
4523
+ void import('@mastra/core/telemetry').then(({ syncFeatureUsageTelemetry }) => syncFeatureUsageTelemetry(mastra)).catch(() => {
4524
+ });
4516
4525
  const SHUTDOWN_TIMEOUT_MS = 5e3;
4517
4526
  let shuttingDown = false;
4518
4527
  const shutdown = async (signal) => {