@mastra/deployer 1.11.0-alpha.0 → 1.11.0-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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.11.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`1d0a8a8`](https://github.com/mastra-ai/mastra/commit/1d0a8a8acf33203d5744fc429b090ad8598aa8ed)]:
8
+ - @mastra/core@1.11.0-alpha.2
9
+
10
+ ## 1.11.0-alpha.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`866cc2c`](https://github.com/mastra-ai/mastra/commit/866cc2cb1f0e3b314afab5194f69477fada745d1), [`6bcbf8a`](https://github.com/mastra-ai/mastra/commit/6bcbf8a6774d5a53b21d61db8a45ce2593ca1616), [`18c3a90`](https://github.com/mastra-ai/mastra/commit/18c3a90c9e48cf69500e308affeb8eba5860b2af), [`f35487b`](https://github.com/mastra-ai/mastra/commit/f35487bb2d46c636e22aa71d90025613ae38235a), [`6dc2192`](https://github.com/mastra-ai/mastra/commit/6dc21921aef0f0efab15cd0805fa3d18f277a76f), [`eeb3a3f`](https://github.com/mastra-ai/mastra/commit/eeb3a3f43aca10cf49479eed2a84b7d9ecea02ba), [`05f8d90`](https://github.com/mastra-ai/mastra/commit/05f8d9009290ce6aa03428b3add635268615db85), [`4b8da97`](https://github.com/mastra-ai/mastra/commit/4b8da97a5ce306e97869df6c39535d9069e563db), [`256df35`](https://github.com/mastra-ai/mastra/commit/256df3571d62beb3ad4971faa432927cc140e603)]:
15
+ - @mastra/core@1.11.0-alpha.1
16
+
3
17
  ## 1.11.0-alpha.0
4
18
 
5
19
  ### Patch Changes
@@ -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.11.0-alpha.0"
6
+ version: "1.11.0-alpha.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -16,12 +16,12 @@ Read the individual reference documents for detailed explanations and code examp
16
16
 
17
17
  ### Docs
18
18
 
19
- - [Deploy to Cloud Providers](references/docs-deployment-cloud-providers.md) - Deploy your Mastra applications to cloud providers
20
- - [Deploy a Mastra Server](references/docs-deployment-mastra-server.md) - Learn how to build and deploy a Mastra server.
21
- - [Deploy in a Monorepo](references/docs-deployment-monorepo.md) - Learn how to deploy Mastra applications that are part of a monorepo setup
22
- - [Deployment Overview](references/docs-deployment-overview.md) - Learn about different deployment options for your Mastra applications
23
- - [Deploy with a Web Framework](references/docs-deployment-web-framework.md) - Learn how Mastra can be deployed when integrated with a Web Framework
24
- - [Workflow Runners](references/docs-deployment-workflow-runners.md) - Deploy Mastra workflows to specialized workflow execution platforms
19
+ - [Deploy to cloud providers](references/docs-deployment-cloud-providers.md) - Deploy your Mastra applications to cloud providers
20
+ - [Deploy a Mastra server](references/docs-deployment-mastra-server.md) - Learn how to build and deploy a Mastra server.
21
+ - [Deploy in a monorepo](references/docs-deployment-monorepo.md) - Learn how to deploy Mastra applications that are part of a monorepo setup
22
+ - [Deployment overview](references/docs-deployment-overview.md) - Learn about different deployment options for your Mastra applications
23
+ - [Deploy with a web framework](references/docs-deployment-web-framework.md) - Learn how Mastra can be deployed when integrated with a Web Framework
24
+ - [Workflow runners](references/docs-deployment-workflow-runners.md) - Deploy Mastra workflows to specialized workflow execution platforms
25
25
 
26
26
  ### Reference
27
27
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.0-alpha.0",
2
+ "version": "1.11.0-alpha.2",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {
5
5
  "Deps": {
@@ -1,8 +1,8 @@
1
- # Deploy to Cloud Providers
1
+ # Deploy to cloud providers
2
2
 
3
3
  Mastra applications can be deployed to cloud providers and serverless platforms. Mastra includes optional built-in deployers for Vercel, Netlify, and Cloudflare to automate the deployment process.
4
4
 
5
- ## Supported Cloud Providers
5
+ ## Supported cloud providers
6
6
 
7
7
  The following guides show how to deploy Mastra to specific cloud providers:
8
8
 
@@ -1,4 +1,4 @@
1
- # Deploy a Mastra Server
1
+ # Deploy a Mastra server
2
2
 
3
3
  Mastra compiles your application into a standalone Node.js server that can run on any platform supporting Node.js, Bun, or Deno.
4
4
 
@@ -1,4 +1,4 @@
1
- # Deploy in a Monorepo
1
+ # Deploy in a monorepo
2
2
 
3
3
  Deploying Mastra in a monorepo follows the same process as a standalone application. This guide covers monorepo-specific considerations. For the core build and deployment steps, see [Deploy a Mastra Server](https://mastra.ai/docs/deployment/mastra-server).
4
4
 
@@ -1,4 +1,4 @@
1
- # Deployment Overview
1
+ # Deployment overview
2
2
 
3
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 Cloud for managed hosting.
4
4
 
@@ -11,7 +11,7 @@ Mastra can run against any of these runtime environments:
11
11
  - Deno
12
12
  - Cloudflare
13
13
 
14
- ## Deployment Options
14
+ ## Deployment options
15
15
 
16
16
  ### Mastra Server
17
17
 
@@ -55,7 +55,7 @@ We're building Mastra Cloud to be the easiest place to deploy and observe your M
55
55
 
56
56
  Learn more in the [Mastra Cloud docs](https://mastra.ai/docs/mastra-cloud/overview).
57
57
 
58
- ## Workflow Runners
58
+ ## Workflow runners
59
59
 
60
60
  Mastra workflows run using the built-in execution engine by default. For production workloads requiring managed infrastructure, workflows can also be deployed to specialized platforms like [Inngest](https://www.inngest.com) that provide step memoization, automatic retries, and real-time monitoring.
61
61
 
@@ -1,4 +1,4 @@
1
- # Deploy with a Web Framework
1
+ # Deploy with a web framework
2
2
 
3
3
  When Mastra is integrated with a web framework, it deploys alongside your application using the framework's standard deployment process. Follow the instructions below to ensure your Mastra integration deploys correctly.
4
4
 
@@ -1,4 +1,4 @@
1
- # Workflow Runners
1
+ # Workflow runners
2
2
 
3
3
  Mastra [workflows](https://mastra.ai/docs/workflows/overview) can be executed using the built-in workflow runner or deployed to specialized workflow execution platforms that handle orchestration, monitoring, and reliability.
4
4
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  The Deployer handles the deployment of standalone Mastra applications by packaging code, managing environment files, and serving applications using the Hono framework. Concrete implementations must define the deploy method for specific deployment targets.
4
4
 
5
- ## Usage Example
5
+ ## Usage example
6
6
 
7
7
  If you want to create a custom deployer, you can extend the abstract `Deployer` class and implement the `deploy` method with your specific deployment logic. Here's an example:
8
8
 
@@ -28,7 +28,7 @@ class CustomDeployer extends Deployer {
28
28
 
29
29
  ## Parameters
30
30
 
31
- ### Constructor Parameters
31
+ ### Constructor parameters
32
32
 
33
33
  **args** (`object`): Configuration options for the Deployer.
34
34
 
@@ -44,7 +44,7 @@ class CustomDeployer extends Deployer {
44
44
 
45
45
  **deploy** (`(outputDirectory: string) => Promise<void>`): Abstract method that must be implemented by subclasses. Handles the deployment process to the specified output directory.
46
46
 
47
- ## Inherited Methods from Bundler
47
+ ## Inherited methods from bundler
48
48
 
49
49
  The Deployer class inherits the following key methods from the Bundler class:
50
50
 
@@ -54,7 +54,7 @@ The Deployer class inherits the following key methods from the Bundler class:
54
54
 
55
55
  **\_bundle** (`(serverFile: string, mastraEntryFile: string, outputDirectory: string, bundleLocation?: string) => Promise<void>`): Bundles the application using the specified server and Mastra entry files.
56
56
 
57
- ## Core Concepts
57
+ ## Core concepts
58
58
 
59
59
  ### Deployment Lifecycle
60
60
 
@@ -17641,6 +17641,8 @@ function getHttpStatusForMastraError(errorId) {
17641
17641
  case "DATASET_NOT_FOUND":
17642
17642
  case "EXPERIMENT_NOT_FOUND":
17643
17643
  return 404;
17644
+ case "EXPERIMENT_NO_ITEMS":
17645
+ return 400;
17644
17646
  default:
17645
17647
  return 500;
17646
17648
  }
@@ -18004,7 +18006,7 @@ var TRIGGER_EXPERIMENT_ROUTE = createRoute({
18004
18006
  return {
18005
18007
  experimentId: result.experimentId,
18006
18008
  status: result.status,
18007
- totalItems: 0,
18009
+ totalItems: result.totalItems ?? 0,
18008
18010
  succeededCount: 0,
18009
18011
  failedCount: 0,
18010
18012
  startedAt: /* @__PURE__ */ new Date(),