@mastra/deployer 1.33.0 → 1.33.1-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.
Files changed (55) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/build/analyze.cjs +2 -2
  3. package/dist/build/analyze.js +1 -1
  4. package/dist/build/bundler.cjs +3 -3
  5. package/dist/build/bundler.js +1 -1
  6. package/dist/build/index.cjs +15 -15
  7. package/dist/build/index.js +5 -5
  8. package/dist/build/utils.d.ts +1 -0
  9. package/dist/build/utils.d.ts.map +1 -1
  10. package/dist/bundler/index.cjs +3 -3
  11. package/dist/bundler/index.js +1 -1
  12. package/dist/{chunk-QTRSKNOJ.cjs → chunk-3T7FP546.cjs} +3 -2
  13. package/dist/chunk-3T7FP546.cjs.map +1 -0
  14. package/dist/{chunk-623NUWWK.js → chunk-4SSB2KSK.js} +3 -2
  15. package/dist/chunk-4SSB2KSK.js.map +1 -0
  16. package/dist/{chunk-D5QDTUSF.cjs → chunk-5TILMGJA.cjs} +49 -49
  17. package/dist/{chunk-D5QDTUSF.cjs.map → chunk-5TILMGJA.cjs.map} +1 -1
  18. package/dist/{chunk-BGHYAAUQ.cjs → chunk-AQL6MQFJ.cjs} +18 -18
  19. package/dist/{chunk-BGHYAAUQ.cjs.map → chunk-AQL6MQFJ.cjs.map} +1 -1
  20. package/dist/{chunk-R45J7TDH.js → chunk-FXJXKXAV.js} +3 -3
  21. package/dist/{chunk-R45J7TDH.js.map → chunk-FXJXKXAV.js.map} +1 -1
  22. package/dist/{chunk-4KIRQ3MQ.js → chunk-ISGGMBYN.js} +7 -7
  23. package/dist/{chunk-4KIRQ3MQ.js.map → chunk-ISGGMBYN.js.map} +1 -1
  24. package/dist/{chunk-5CIZPQD7.js → chunk-KAY3R5QX.js} +3 -3
  25. package/dist/{chunk-5CIZPQD7.js.map → chunk-KAY3R5QX.js.map} +1 -1
  26. package/dist/{chunk-7OOWEFCB.cjs → chunk-KBVOYAAL.cjs} +7 -7
  27. package/dist/{chunk-7OOWEFCB.cjs.map → chunk-KBVOYAAL.cjs.map} +1 -1
  28. package/dist/{chunk-AEFF4KNF.js → chunk-KTL22PW6.js} +7 -7
  29. package/dist/{chunk-AEFF4KNF.js.map → chunk-KTL22PW6.js.map} +1 -1
  30. package/dist/{chunk-36O25PW6.cjs → chunk-RJXYP6DA.cjs} +17 -17
  31. package/dist/{chunk-36O25PW6.cjs.map → chunk-RJXYP6DA.cjs.map} +1 -1
  32. package/dist/{chunk-QJIDGPHH.cjs → chunk-XABHWJ5U.cjs} +16 -16
  33. package/dist/{chunk-QJIDGPHH.cjs.map → chunk-XABHWJ5U.cjs.map} +1 -1
  34. package/dist/{chunk-WRKEX2X3.js → chunk-YHEVEEDG.js} +4 -4
  35. package/dist/{chunk-WRKEX2X3.js.map → chunk-YHEVEEDG.js.map} +1 -1
  36. package/dist/{chunk-4WS47OHX.cjs → chunk-YW7AIVNG.cjs} +5 -5
  37. package/dist/{chunk-4WS47OHX.cjs.map → chunk-YW7AIVNG.cjs.map} +1 -1
  38. package/dist/{chunk-MLMAPMI3.js → chunk-ZUJ4DO5D.js} +4 -4
  39. package/dist/{chunk-MLMAPMI3.js.map → chunk-ZUJ4DO5D.js.map} +1 -1
  40. package/dist/docs/SKILL.md +1 -1
  41. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  42. package/dist/docs/references/docs-deployment-cloud-providers.md +1 -1
  43. package/dist/docs/references/docs-deployment-overview.md +6 -5
  44. package/dist/index.cjs +4 -4
  45. package/dist/index.js +2 -2
  46. package/dist/server/index.cjs +6 -4
  47. package/dist/server/index.cjs.map +1 -1
  48. package/dist/server/index.d.ts.map +1 -1
  49. package/dist/server/index.js +3 -1
  50. package/dist/server/index.js.map +1 -1
  51. package/dist/validator/custom-resolver.cjs +3 -3
  52. package/dist/validator/custom-resolver.js +1 -1
  53. package/package.json +6 -6
  54. package/dist/chunk-623NUWWK.js.map +0 -1
  55. package/dist/chunk-QTRSKNOJ.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.33.0"
6
+ version: "1.33.1-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.33.0",
2
+ "version": "1.33.1-alpha.1",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {
5
5
  "Deps": {
@@ -4,7 +4,7 @@ Mastra applications can be deployed to cloud providers and serverless platforms.
4
4
 
5
5
  ## Mastra platform
6
6
 
7
- Mastra provides a platform to deploy your server to the cloud. Read the [Mastra platform deployment guide](https://mastra.ai/guides/deployment/mastra-platform) to learn more.
7
+ Mastra provides a platform to deploy your server to the cloud. Read the [Mastra platform deployment guide](https://mastra.ai/docs/mastra-platform/overview) to learn more.
8
8
 
9
9
  ## Cloud providers
10
10
 
@@ -1,6 +1,6 @@
1
1
  # Deployment overview
2
2
 
3
- Mastra applications can be deployed to any Node.js-compatible environment. You can deploy a Mastra server, integrate with an existing web framework, deploy to cloud providers, or use [Mastra platform](https://mastra.ai/docs/mastra-platform/overview) for Studio and server deployment.
3
+ Mastra applications can be deployed to any Node.js-compatible environment. You can deploy a Mastra server, integrate with an existing web framework, deploy to cloud providers, or use [Mastra platform](https://mastra.ai/docs/mastra-platform/overview) for observability, Studio, and server deployment.
4
4
 
5
5
  ## Runtime support
6
6
 
@@ -27,12 +27,13 @@ Read about [monorepo deployment](https://mastra.ai/docs/deployment/monorepo).
27
27
 
28
28
  ### Mastra platform
29
29
 
30
- The [Mastra platform](https://mastra.ai/docs/mastra-platform/overview) provides two products for deploying and managing AI applications built with the Mastra framework:
30
+ The [Mastra platform](https://mastra.ai/docs/mastra-platform/overview) provides three products for deploying, monitoring, and managing AI applications built with the Mastra framework:
31
31
 
32
- - **Studio**: A hosted visual environment for testing agents, running workflows, and inspecting traces
33
- - **Server**: A production deployment target that runs your Mastra application as an API server
32
+ - [**Observability**](https://mastra.ai/docs/mastra-platform/observability): A standalone hosted product for searchable traces, logs, and metrics across Mastra projects and deploys
33
+ - [**Studio**](https://mastra.ai/docs/mastra-platform/studio): A hosted visual environment for testing agents, running workflows, and inspecting traces
34
+ - [**Server**](https://mastra.ai/docs/mastra-platform/server): A production deployment target that runs your Mastra application as an API server
34
35
 
35
- Learn more in the [Studio deployment guide](https://mastra.ai/docs/studio/deployment) and [Server deployment guide](https://mastra.ai/guides/deployment/mastra-platform).
36
+ Learn more in the [Mastra platform overview](https://mastra.ai/docs/mastra-platform/overview).
36
37
 
37
38
  ### Cloud Providers
38
39
 
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk36O25PW6_cjs = require('./chunk-36O25PW6.cjs');
4
- var chunk7OOWEFCB_cjs = require('./chunk-7OOWEFCB.cjs');
3
+ var chunkRJXYP6DA_cjs = require('./chunk-RJXYP6DA.cjs');
4
+ var chunkKBVOYAAL_cjs = require('./chunk-KBVOYAAL.cjs');
5
5
  var chunkQJGW77MV_cjs = require('./chunk-QJGW77MV.cjs');
6
6
 
7
7
  // src/deploy/base.ts
8
- var Deployer = class extends chunk36O25PW6_cjs.Bundler {
8
+ var Deployer = class extends chunkRJXYP6DA_cjs.Bundler {
9
9
  deps = new chunkQJGW77MV_cjs.DepsService();
10
10
  constructor(args) {
11
11
  super(args.name, "DEPLOYER");
@@ -25,7 +25,7 @@ var Deployer = class extends chunk36O25PW6_cjs.Bundler {
25
25
 
26
26
  // src/build/deployer.ts
27
27
  async function getDeployer(entryFile, outputDir, logger) {
28
- const result = await chunk7OOWEFCB_cjs.extractMastraOption("deployer", entryFile, outputDir, logger);
28
+ const result = await chunkKBVOYAAL_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-4KIRQ3MQ.js';
2
- import { extractMastraOption } from './chunk-R45J7TDH.js';
1
+ import { Bundler } from './chunk-ISGGMBYN.js';
2
+ import { extractMastraOption } from './chunk-FXJXKXAV.js';
3
3
  import { DepsService, FileService } from './chunk-I7JM5EHU.js';
4
4
  export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-I7JM5EHU.js';
5
5
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQTRSKNOJ_cjs = require('../chunk-QTRSKNOJ.cjs');
3
+ var chunk3T7FP546_cjs = require('../chunk-3T7FP546.cjs');
4
4
  var promises = require('fs/promises');
5
5
  var https = require('https');
6
6
  var path = require('path');
@@ -4640,7 +4640,7 @@ async function createHonoServer(mastra, options = {
4640
4640
  );
4641
4641
  }
4642
4642
  const serverOptions = mastra.getServer();
4643
- const studioBasePath = chunkQTRSKNOJ_cjs.normalizeStudioBase(serverOptions?.studioBase ?? "/");
4643
+ const studioBasePath = chunk3T7FP546_cjs.normalizeStudioBase(serverOptions?.studioBase ?? "/");
4644
4644
  if (options?.studio) {
4645
4645
  app.get(
4646
4646
  `${studioBasePath}/refresh-events`,
@@ -4713,12 +4713,13 @@ async function createHonoServer(mastra, options = {
4713
4713
  const experimentalFeatures = process.env.EXPERIMENTAL_FEATURES === "true" ? "true" : "false";
4714
4714
  const experimentalUI = process.env.MASTRA_EXPERIMENTAL_UI === "true" ? "true" : "false";
4715
4715
  const templatesEnabled = process.env.MASTRA_TEMPLATES === "true" ? "true" : "false";
4716
+ const agentSignals = process.env.MASTRA_AGENT_SIGNALS === "true" ? "true" : "false";
4716
4717
  const requestContextPresets = process.env.MASTRA_REQUEST_CONTEXT_PRESETS || "";
4717
4718
  const escapeForHtml = (json) => {
4718
4719
  return json.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/</g, "\\u003c").replace(/>/g, "\\u003e").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
4719
4720
  };
4720
4721
  const autoDetectUrl = process.env.MASTRA_AUTO_DETECT_URL === "true";
4721
- indexHtml = chunkQTRSKNOJ_cjs.injectStudioHtmlConfig(indexHtml, {
4722
+ indexHtml = chunk3T7FP546_cjs.injectStudioHtmlConfig(indexHtml, {
4722
4723
  host: `'${studioHost}'`,
4723
4724
  port: `'${studioPort}'`,
4724
4725
  protocol: `'${studioProtocol}'`,
@@ -4731,6 +4732,7 @@ async function createHonoServer(mastra, options = {
4731
4732
  telemetryDisabled: `''`,
4732
4733
  requestContextPresets: `'${escapeForHtml(requestContextPresets)}'`,
4733
4734
  experimentalUI: `'${experimentalUI}'`,
4735
+ agentSignals: `'${agentSignals}'`,
4734
4736
  autoDetectUrl: `'${autoDetectUrl}'`
4735
4737
  });
4736
4738
  return c.newResponse(indexHtml, 200, { "Content-Type": "text/html" });
@@ -4788,7 +4790,7 @@ async function createNodeServer(mastra, options = { tools: {} }) {
4788
4790
  const logger2 = mastra.getLogger();
4789
4791
  logger2.info("Mastra API running", { url: `${protocol}://${host}:${port}${apiPrefix}` });
4790
4792
  if (options?.studio) {
4791
- const studioBasePath = chunkQTRSKNOJ_cjs.normalizeStudioBase(serverOptions?.studioBase ?? "/");
4793
+ const studioBasePath = chunk3T7FP546_cjs.normalizeStudioBase(serverOptions?.studioBase ?? "/");
4792
4794
  const studioUrl = `${studioProtocol}://${studioHost}:${studioPort}${studioBasePath}`;
4793
4795
  logger2.info("Studio available", { url: studioUrl });
4794
4796
  }