@mastra/deployer 1.58.0-alpha.13 → 1.58.0-alpha.15
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 +16 -0
- package/dist/build/types.d.ts +0 -6
- package/dist/build/types.d.ts.map +1 -1
- package/dist/bundler/index.cjs +508 -6
- package/dist/bundler/index.cjs.map +1 -0
- package/dist/bundler/index.d.ts +1 -1
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +499 -1
- package/dist/bundler/index.js.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-cloud-providers.md +9 -9
- package/dist/docs/references/docs-deployment-overview.md +9 -9
- package/dist/docs/references/docs-deployment-web-framework.md +6 -6
- package/dist/docs/references/docs-deployment-workflow-runners.md +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/dist/bundler/entries.d.ts +0 -12
- package/dist/bundler/entries.d.ts.map +0 -1
- package/dist/bundler-Ct1ToG6x.js +0 -565
- package/dist/bundler-Ct1ToG6x.js.map +0 -1
- package/dist/bundler-DLXwkS7b.cjs +0 -598
- package/dist/bundler-DLXwkS7b.cjs.map +0 -1
|
@@ -12,12 +12,12 @@ Mastra provides a platform to deploy your server to the cloud. Read the [Mastra
|
|
|
12
12
|
|
|
13
13
|
The following guides show how to deploy Mastra to specific cloud providers:
|
|
14
14
|
|
|
15
|
-
- [Amazon Bedrock AgentCore](https://mastra.ai/
|
|
16
|
-
- [Amazon EC2](https://mastra.ai/
|
|
17
|
-
- [AWS Lambda](https://mastra.ai/
|
|
18
|
-
- [Azure App Services](https://mastra.ai/
|
|
19
|
-
- [Cloudflare](https://mastra.ai/
|
|
20
|
-
- [Digital Ocean](https://mastra.ai/
|
|
21
|
-
- [Kubernetes](https://mastra.ai/
|
|
22
|
-
- [Netlify](https://mastra.ai/
|
|
23
|
-
- [Vercel](https://mastra.ai/
|
|
15
|
+
- [Amazon Bedrock AgentCore](https://mastra.ai/integrations/deploy/aws-bedrock-agentcore)
|
|
16
|
+
- [Amazon EC2](https://mastra.ai/integrations/deploy/amazon-ec2)
|
|
17
|
+
- [AWS Lambda](https://mastra.ai/integrations/deploy/aws-lambda)
|
|
18
|
+
- [Azure App Services](https://mastra.ai/integrations/deploy/azure-app-services)
|
|
19
|
+
- [Cloudflare](https://mastra.ai/integrations/deploy/cloudflare)
|
|
20
|
+
- [Digital Ocean](https://mastra.ai/integrations/deploy/digital-ocean)
|
|
21
|
+
- [Kubernetes](https://mastra.ai/integrations/deploy/kubernetes)
|
|
22
|
+
- [Netlify](https://mastra.ai/integrations/deploy/netlify)
|
|
23
|
+
- [Vercel](https://mastra.ai/integrations/deploy/vercel)
|
|
@@ -43,14 +43,14 @@ Mastra applications can be deployed to cloud providers and serverless platforms.
|
|
|
43
43
|
|
|
44
44
|
Use this option for auto-scaling, minimal infrastructure management, or when you're already using one of these platforms.
|
|
45
45
|
|
|
46
|
-
- [Amazon EC2](https://mastra.ai/
|
|
47
|
-
- [AWS Lambda](https://mastra.ai/
|
|
48
|
-
- [Azure App Services](https://mastra.ai/
|
|
49
|
-
- [Cloudflare](https://mastra.ai/
|
|
50
|
-
- [Digital Ocean](https://mastra.ai/
|
|
51
|
-
- [Kubernetes](https://mastra.ai/
|
|
52
|
-
- [Netlify](https://mastra.ai/
|
|
53
|
-
- [Vercel](https://mastra.ai/
|
|
46
|
+
- [Amazon EC2](https://mastra.ai/integrations/deploy/amazon-ec2)
|
|
47
|
+
- [AWS Lambda](https://mastra.ai/integrations/deploy/aws-lambda)
|
|
48
|
+
- [Azure App Services](https://mastra.ai/integrations/deploy/azure-app-services)
|
|
49
|
+
- [Cloudflare](https://mastra.ai/integrations/deploy/cloudflare)
|
|
50
|
+
- [Digital Ocean](https://mastra.ai/integrations/deploy/digital-ocean)
|
|
51
|
+
- [Kubernetes](https://mastra.ai/integrations/deploy/kubernetes)
|
|
52
|
+
- [Netlify](https://mastra.ai/integrations/deploy/netlify)
|
|
53
|
+
- [Vercel](https://mastra.ai/integrations/deploy/vercel)
|
|
54
54
|
|
|
55
55
|
### Sandbox
|
|
56
56
|
|
|
@@ -72,7 +72,7 @@ Use these guides when adding Mastra to an existing Next.js or Astro application.
|
|
|
72
72
|
|
|
73
73
|
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.
|
|
74
74
|
|
|
75
|
-
Visit the [Workflow Runners guide](https://mastra.ai/docs/deployment/workflow-runners) for execution options and the [Inngest deployment guide](https://mastra.ai/
|
|
75
|
+
Visit the [Workflow Runners guide](https://mastra.ai/docs/deployment/workflow-runners) for execution options and the [Inngest deployment guide](https://mastra.ai/integrations/deploy/inngest) for setup instructions.
|
|
76
76
|
|
|
77
77
|
## Workers
|
|
78
78
|
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
7
|
-
> **Warning:** If you're deploying to a cloud provider, remove any usage of [LibSQLStore](https://mastra.ai/
|
|
7
|
+
> **Warning:** If you're deploying to a cloud provider, remove any usage of [LibSQLStore](https://mastra.ai/integrations/databases/libsql) from your Mastra configuration. LibSQLStore requires filesystem access and isn't compatible with serverless platforms.
|
|
8
8
|
|
|
9
9
|
Integration guides:
|
|
10
10
|
|
|
11
|
-
- [With Next.js](https://mastra.ai/
|
|
12
|
-
- [With Astro](https://mastra.ai/
|
|
11
|
+
- [With Next.js](https://mastra.ai/integrations/frameworks/next-js)
|
|
12
|
+
- [With Astro](https://mastra.ai/integrations/frameworks/astro)
|
|
13
13
|
|
|
14
14
|
## With Next.js on Vercel
|
|
15
15
|
|
|
16
|
-
If you've integrated Mastra with Next.js [by following our guide](https://mastra.ai/
|
|
16
|
+
If you've integrated Mastra with Next.js [by following our guide](https://mastra.ai/integrations/frameworks/next-js) and plan to deploy to Vercel, add `serverExternalPackages: ["@mastra/*"]` to your `next.config.ts`:
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
19
|
import type { NextConfig } from 'next'
|
|
@@ -27,7 +27,7 @@ export default nextConfig
|
|
|
27
27
|
|
|
28
28
|
## With Astro on Vercel
|
|
29
29
|
|
|
30
|
-
If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/
|
|
30
|
+
If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/integrations/frameworks/astro) and plan to deploy to Vercel, add the Vercel adapter and server output to your `astro.config.mjs`:
|
|
31
31
|
|
|
32
32
|
```javascript
|
|
33
33
|
import { defineConfig } from 'astro/config'
|
|
@@ -41,7 +41,7 @@ export default defineConfig({
|
|
|
41
41
|
|
|
42
42
|
## With Astro on Netlify
|
|
43
43
|
|
|
44
|
-
If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/
|
|
44
|
+
If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/integrations/frameworks/astro) and plan to deploy to Netlify, add the Netlify adapter and server output to your `astro.config.mjs`:
|
|
45
45
|
|
|
46
46
|
```javascript
|
|
47
47
|
import { defineConfig } from 'astro/config'
|
|
@@ -8,10 +8,10 @@ Mastra [workflows](https://mastra.ai/docs/workflows/overview) can be executed us
|
|
|
8
8
|
|
|
9
9
|
Inngest is a developer platform for running background workflows without managing infrastructure. Mastra workflows can be deployed to Inngest, which provides step memoization, automatic retries, real-time monitoring, and suspend/resume capabilities.
|
|
10
10
|
|
|
11
|
-
Visit the [Inngest deployment guide](https://mastra.ai/
|
|
11
|
+
Visit the [Inngest deployment guide](https://mastra.ai/integrations/deploy/inngest) for setup instructions and the [Inngest workflow example](https://github.com/mastra-ai/mastra/tree/main/examples/inngest) for a complete implementation.
|
|
12
12
|
|
|
13
13
|
## Temporal
|
|
14
14
|
|
|
15
15
|
Temporal is a durable execution platform for orchestrating long-running workflows. Mastra workflows can run on Temporal workers, with each `createStep` mapped to a Temporal activity for automatic retries and durable state.
|
|
16
16
|
|
|
17
|
-
The `@mastra/temporal` package is experimental and not ready for production use. Visit the [Temporal deployment guide](https://mastra.ai/
|
|
17
|
+
The `@mastra/temporal` package is experimental and not ready for production use. Visit the [Temporal deployment guide](https://mastra.ai/integrations/deploy/temporal) for setup instructions.
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_services = require("./services-_ksvysL5.cjs");
|
|
3
3
|
const require_bundlerOptions = require("./bundlerOptions-CjjAPZYp.cjs");
|
|
4
|
-
const
|
|
4
|
+
const require_bundler_index = require("./bundler/index.cjs");
|
|
5
5
|
require("./build-BERX35Pi.cjs");
|
|
6
6
|
//#region src/deploy/base.ts
|
|
7
|
-
var Deployer = class extends
|
|
7
|
+
var Deployer = class extends require_bundler_index.Bundler {
|
|
8
8
|
deps = new require_services.DepsService();
|
|
9
9
|
constructor(args) {
|
|
10
10
|
super(args.name, "DEPLOYER");
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["Bundler","DepsService","FileService","extractMastraOption"],"sources":["../src/deploy/base.ts","../src/build/deployer.ts"],"sourcesContent":["import type { IDeployer } from '@mastra/core/deployer';\n\nimport { Bundler } from '../bundler';\nimport { DepsService } from '../services/deps.js';\nimport { FileService } from '../services/fs.js';\n\nexport abstract class Deployer extends Bundler implements IDeployer {\n deps: DepsService = new DepsService();\n\n constructor(args: { name: string }) {\n super(args.name, 'DEPLOYER');\n\n this.deps.__setLogger(this.logger);\n }\n\n getEnvFiles(): Promise<string[]> {\n const possibleFiles = ['.env.production', '.env.local', '.env'];\n\n try {\n const fileService = new FileService();\n const envFile = fileService.getFirstExistingFile(possibleFiles);\n\n return Promise.resolve([envFile]);\n } catch {}\n\n return Promise.resolve([]);\n }\n\n abstract deploy(outputDirectory: string): Promise<void>;\n}\n","import type { IMastraLogger } from '@mastra/core/logger';\nimport type { Config } from '@mastra/core/mastra';\nimport { extractMastraOption, extractMastraOptionBundler } from './shared/extract-mastra-option';\n\nexport function getDeployerBundler(\n entryFile: string,\n result: {\n hasCustomConfig: false;\n },\n) {\n return extractMastraOptionBundler('deployer', entryFile, result);\n}\n\nexport async function getDeployer(\n entryFile: string,\n outputDir: string,\n logger?: IMastraLogger,\n): Promise<Config['deployer'] | null> {\n const result = await extractMastraOption('deployer', entryFile, outputDir, logger);\n if (!result) {\n return null;\n }\n\n return result.getConfig();\n}\n"],"mappings":";;;;;;AAMA,IAAsB,WAAtB,cAAuCA,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["Bundler","DepsService","FileService","extractMastraOption"],"sources":["../src/deploy/base.ts","../src/build/deployer.ts"],"sourcesContent":["import type { IDeployer } from '@mastra/core/deployer';\n\nimport { Bundler } from '../bundler';\nimport { DepsService } from '../services/deps.js';\nimport { FileService } from '../services/fs.js';\n\nexport abstract class Deployer extends Bundler implements IDeployer {\n deps: DepsService = new DepsService();\n\n constructor(args: { name: string }) {\n super(args.name, 'DEPLOYER');\n\n this.deps.__setLogger(this.logger);\n }\n\n getEnvFiles(): Promise<string[]> {\n const possibleFiles = ['.env.production', '.env.local', '.env'];\n\n try {\n const fileService = new FileService();\n const envFile = fileService.getFirstExistingFile(possibleFiles);\n\n return Promise.resolve([envFile]);\n } catch {}\n\n return Promise.resolve([]);\n }\n\n abstract deploy(outputDirectory: string): Promise<void>;\n}\n","import type { IMastraLogger } from '@mastra/core/logger';\nimport type { Config } from '@mastra/core/mastra';\nimport { extractMastraOption, extractMastraOptionBundler } from './shared/extract-mastra-option';\n\nexport function getDeployerBundler(\n entryFile: string,\n result: {\n hasCustomConfig: false;\n },\n) {\n return extractMastraOptionBundler('deployer', entryFile, result);\n}\n\nexport async function getDeployer(\n entryFile: string,\n outputDir: string,\n logger?: IMastraLogger,\n): Promise<Config['deployer'] | null> {\n const result = await extractMastraOption('deployer', entryFile, outputDir, logger);\n if (!result) {\n return null;\n }\n\n return result.getConfig();\n}\n"],"mappings":";;;;;;AAMA,IAAsB,WAAtB,cAAuCA,sBAAAA,QAA6B;CAClE,OAAoB,IAAIC,iBAAAA,YAAY;CAEpC,YAAY,MAAwB;EAClC,MAAM,KAAK,MAAM,UAAU;EAE3B,KAAK,KAAK,YAAY,KAAK,MAAM;CACnC;CAEA,cAAiC;EAC/B,MAAM,gBAAgB;GAAC;GAAmB;GAAc;EAAM;EAE9D,IAAI;GAEF,MAAM,UAAU,IADQC,iBAAAA,YACE,CAAC,CAAC,qBAAqB,aAAa;GAE9D,OAAO,QAAQ,QAAQ,CAAC,OAAO,CAAC;EAClC,QAAQ,CAAC;EAET,OAAO,QAAQ,QAAQ,CAAC,CAAC;CAC3B;AAGF;;;AChBA,eAAsB,YACpB,WACA,WACA,QACoC;CACpC,MAAM,SAAS,MAAMC,uBAAAA,oBAAoB,YAAY,WAAW,WAAW,MAAM;CACjF,IAAI,CAAC,QACH,OAAO;CAGT,OAAO,OAAO,UAAU;AAC1B"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as createChildProcessLogger, i as DepsService, o as createPinoStream, r as Deps, t as FileService } from "./services-BRF1RRXB.js";
|
|
2
2
|
import { n as extractMastraOption } from "./bundlerOptions-NMtZPD7p.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Bundler } from "./bundler/index.js";
|
|
4
4
|
import "./build-kZfvpuh9.js";
|
|
5
5
|
//#region src/deploy/base.ts
|
|
6
6
|
var Deployer = class extends Bundler {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "1.58.0-alpha.
|
|
3
|
+
"version": "1.58.0-alpha.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"typescript-paths": "^1.5.2",
|
|
114
114
|
"ws": "^8.21.0",
|
|
115
115
|
"yaml": "^2.9.0",
|
|
116
|
-
"@mastra/server": "1.58.0-alpha.
|
|
116
|
+
"@mastra/server": "1.58.0-alpha.15"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
119
|
"@hono/node-server": "^2.0.0",
|
|
@@ -133,12 +133,12 @@
|
|
|
133
133
|
"typescript": "^6.0.3",
|
|
134
134
|
"vitest": "4.1.10",
|
|
135
135
|
"zod": "^4.4.3",
|
|
136
|
+
"@internal/types-builder": "0.0.96",
|
|
136
137
|
"@internal/lint": "0.0.121",
|
|
137
138
|
"@mastra/agent-browser": "0.5.1-alpha.0",
|
|
138
|
-
"@mastra/core": "1.58.0-alpha.
|
|
139
|
-
"@mastra/hono": "1.6.0-alpha.
|
|
140
|
-
"@
|
|
141
|
-
"@mastra/server": "1.58.0-alpha.13",
|
|
139
|
+
"@mastra/core": "1.58.0-alpha.15",
|
|
140
|
+
"@mastra/hono": "1.6.0-alpha.15",
|
|
141
|
+
"@mastra/server": "1.58.0-alpha.15",
|
|
142
142
|
"@mastra/mcp": "^1.16.0-alpha.2"
|
|
143
143
|
},
|
|
144
144
|
"peerDependencies": {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolves the user's `bundler.entries` config into the absolute source paths the
|
|
3
|
-
* bundler emits beside the server bundle.
|
|
4
|
-
*
|
|
5
|
-
* Names become output filenames (`<name>.mjs` via rollup's `entryFileNames`), so they
|
|
6
|
-
* are rejected when they would collide with the server or tool bundles, or when they
|
|
7
|
-
* would escape the output directory. Paths resolve relative to the Mastra directory —
|
|
8
|
-
* the directory holding the entry file — so they read the same way as the imports
|
|
9
|
-
* already in that file.
|
|
10
|
-
*/
|
|
11
|
-
export declare function resolveExtraEntries(entries: Record<string, string> | undefined, mastraEntryFile: string): Record<string, string>;
|
|
12
|
-
//# sourceMappingURL=entries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../src/bundler/entries.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EAC3C,eAAe,EAAE,MAAM,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAyExB"}
|