@mastra/deployer 1.50.0-alpha.5 → 1.50.0

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,102 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.50.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Auto-construct a Mastra instance when no `index.ts` exists. If your `src/mastra` ([#18893](https://github.com/mastra-ai/mastra/pull/18893))
8
+ directory has file-based primitives but no entry file, `mastra dev` and
9
+ `mastra build` now build and run the project without any boilerplate — no
10
+ `new Mastra({...})` required.
11
+
12
+ ```
13
+ src/mastra/
14
+ storage.ts // export default new LibSQLStore({ url: 'file:./mastra.db' })
15
+ observability.ts // export default new Observability({ ... })
16
+ server.ts // export default { port: 4111 }
17
+ studio.ts // export default { ... }
18
+ agents/weather/ // file-based agent
19
+ workflows/report.ts // export default createWorkflow({ ... })
20
+ ```
21
+
22
+ ```sh
23
+ # No src/mastra/index.ts needed:
24
+ mastra dev
25
+ ```
26
+
27
+ Projects that already export a `mastra` instance from `index.ts` are unaffected.
28
+
29
+ - Added file-system-routed observability singleton. Place an `observability.ts` file in your mastra directory that default-exports an `ObservabilityEntrypoint`, and it will be auto-discovered and registered when running `mastra dev` or `mastra build`. Code-registered observability takes precedence if both are present. ([#18887](https://github.com/mastra-ai/mastra/pull/18887))
30
+
31
+ ```ts
32
+ // src/mastra/observability.ts
33
+ import { Observability, MastraStorageExporter } from '@mastra/observability';
34
+
35
+ export default new Observability({
36
+ configs: { default: { serviceName: 'mastra', exporters: [new MastraStorageExporter()] } },
37
+ });
38
+ ```
39
+
40
+ - Added file-system routed storage support. A `storage.ts` file under the mastra directory is now auto-discovered and registered during `mastra dev` / `mastra build`. The default export replaces the InMemoryStore fallback. Code-registered storage (passed to `new Mastra({storage})`) wins on collision. ([#18885](https://github.com/mastra-ai/mastra/pull/18885))
41
+
42
+ ```ts
43
+ // src/mastra/storage.ts
44
+ import { LibSQLStore } from '@mastra/libsql';
45
+
46
+ export default new LibSQLStore({ url: 'file:local.db' });
47
+ ```
48
+
49
+ - Added file-system-routed workflows support. Workflows placed in `workflows/*.ts` under the mastra directory are now auto-discovered and registered during `mastra dev` / `mastra build`, matching the existing file-based agents convention. Code-registered workflows win on name collisions. ([#18883](https://github.com/mastra-ai/mastra/pull/18883))
50
+
51
+ ```ts
52
+ // src/mastra/workflows/onboarding.ts
53
+ import { createWorkflow } from '@mastra/core/workflows';
54
+
55
+ export default createWorkflow({ id: 'onboarding' /* ...steps */ });
56
+ ```
57
+
58
+ - Added file-system routed server config singleton. Place a server.ts file in your mastra directory that default-exports a ServerConfig object, and it will be auto-discovered and registered when running mastra dev or mastra build. Code-registered server config takes precedence if both are present. ([#18888](https://github.com/mastra-ai/mastra/pull/18888))
59
+
60
+ - Added file-system-routed agent processors. Place input and output processor files under `agents/<name>/processors/input/` and `agents/<name>/processors/output/`. Each file default-exports a processor, and they are auto-discovered and merged with config-defined processors when running `mastra dev` or `mastra build`. Config-defined processors run first, and a dynamic (function) `inputProcessors`/`outputProcessors` in `config.ts` takes precedence over discovered files. ([#18890](https://github.com/mastra-ai/mastra/pull/18890))
61
+
62
+ ```
63
+ src/mastra/agents/support/
64
+ ├── config.ts
65
+ ├── instructions.md
66
+ └── processors/
67
+ ├── input/
68
+ │ └── moderation.ts
69
+ └── output/
70
+ └── redact-pii.ts
71
+ ```
72
+
73
+ ```ts
74
+ // src/mastra/agents/support/processors/input/moderation.ts
75
+ import { ModerationProcessor } from '@mastra/core/processors';
76
+
77
+ export default new ModerationProcessor({ model: 'openai/gpt-5-nano' });
78
+ ```
79
+
80
+ - Added file-system routed studio config singleton. Place a studio.ts file in your mastra directory that default-exports a StudioConfig object, and it will be auto-discovered and registered when running mastra dev or mastra build. Code-registered studio config takes precedence if both are present. ([#18889](https://github.com/mastra-ai/mastra/pull/18889))
81
+
82
+ ### Patch Changes
83
+
84
+ - Fixed production builds so transitive workspace packages are bundled instead of being left as runtime imports. ([#18879](https://github.com/mastra-ai/mastra/pull/18879))
85
+
86
+ - Fixed flat markdown skills crashing at runtime when missing a description in frontmatter. Discovery now fails early with a clear error pointing to the file and the Agent Skills spec. ([#18935](https://github.com/mastra-ai/mastra/pull/18935))
87
+
88
+ - Fixed deployer output dependency versions for packages that do not export package.json. ([#18930](https://github.com/mastra-ai/mastra/pull/18930))
89
+
90
+ - Fixed Studio HTML config injection so platform environment values are escaped before they are embedded in served or deployed `index.html` files. This keeps organization IDs, project IDs, observability endpoints and telemetry flags intact when they contain quotes, angle brackets, newlines or `$` sequences, and exposes `escapeStudioHtmlValue` from `@mastra/deployer/build` for the shared injection paths. ([#18812](https://github.com/mastra-ai/mastra/pull/18812))
91
+
92
+ - Update `@mastra/core` peer dependency for the unified schedules API ([#18874](https://github.com/mastra-ai/mastra/pull/18874))
93
+
94
+ - Hardened several string-parsing code paths against regular-expression denial of service (ReDoS). Path normalization, URL trimming, LLM token stripping, and observation parsing now use linear-time string scanning instead of regexes that could back-track polynomially on adversarial input. No behavior changes. ([#18801](https://github.com/mastra-ai/mastra/pull/18801))
95
+
96
+ - Updated dependencies [[`b291760`](https://github.com/mastra-ai/mastra/commit/b291760df9d6c7e4fc72606c8f0a4af2cf6e946c), [`3ffb8b7`](https://github.com/mastra-ai/mastra/commit/3ffb8b720e90f5e6977129ec1f6707d43c2bebe0), [`6ef59fe`](https://github.com/mastra-ai/mastra/commit/6ef59fef1da52ed8da5fbb2a892c71cf4fb6c739), [`4039488`](https://github.com/mastra-ai/mastra/commit/403948898af7293198d9e8b3e7fb47f623c78b94), [`29b7ea6`](https://github.com/mastra-ai/mastra/commit/29b7ea64e72b5523d5bdcbd34ee03d2b854d54e1), [`b2c9d70`](https://github.com/mastra-ai/mastra/commit/b2c9d70757207fb01a9069549e69b6f0d73a6636), [`a51c63d`](https://github.com/mastra-ai/mastra/commit/a51c63d8ee639e4daeba2a0be093efa6a1b5e52f), [`252f63d`](https://github.com/mastra-ai/mastra/commit/252f63d8fec723955adb2202be2f01a75ad0e69c), [`5ea76a7`](https://github.com/mastra-ai/mastra/commit/5ea76a723d966c72da9aa3ab30ae20276e049765), [`6445560`](https://github.com/mastra-ai/mastra/commit/6445560327045d20b239585fc63fed72e9ce36ec), [`e2b9f33`](https://github.com/mastra-ai/mastra/commit/e2b9f33456fd638eca555f9466c6519d8d049666), [`10959d5`](https://github.com/mastra-ai/mastra/commit/10959d509d824f682d40ff96e05ee044aec3b0e5), [`c547a77`](https://github.com/mastra-ai/mastra/commit/c547a7729bdf64dfc2df29c965046c0712a18f10), [`a0085fa`](https://github.com/mastra-ai/mastra/commit/a0085fa0934e52c37c8c8b3d75a6bb5cd199af36), [`a2ba369`](https://github.com/mastra-ai/mastra/commit/a2ba369e796dfab610f41c6875965b488272fa55), [`d889c04`](https://github.com/mastra-ai/mastra/commit/d889c046468a97ba9e90007dbca729b4fecf5db0), [`ffc3c17`](https://github.com/mastra-ai/mastra/commit/ffc3c17274ea17c11aa6f73d3140649cd7fc8abc), [`81542c1`](https://github.com/mastra-ai/mastra/commit/81542c1835c35bc32f2ce4fa9136ee11993cd299), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee), [`cb24ce7`](https://github.com/mastra-ai/mastra/commit/cb24ce76bd16ca88eb6a963f6277f8780e703029), [`02705fd`](https://github.com/mastra-ai/mastra/commit/02705fd2f5a9062210d64ea061adeeb10dc9452e), [`ae51e81`](https://github.com/mastra-ai/mastra/commit/ae51e818825582d42500338dfc1929a082eff0ba), [`6f304ef`](https://github.com/mastra-ai/mastra/commit/6f304ef319e99725e884bdb8d3193c001b6e5964), [`5f9858f`](https://github.com/mastra-ai/mastra/commit/5f9858f791f1137ca7d52d23559fb4568f7a9026)]:
97
+ - @mastra/core@1.50.0
98
+ - @mastra/server@1.50.0
99
+
3
100
  ## 1.50.0-alpha.5
4
101
 
5
102
  ### Minor 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.50.0-alpha.5"
6
+ version: "1.50.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.50.0-alpha.5",
2
+ "version": "1.50.0",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {
5
5
  "Deps": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "1.50.0-alpha.5",
3
+ "version": "1.50.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -113,7 +113,7 @@
113
113
  "tinyglobby": "^0.2.17",
114
114
  "typescript-paths": "^1.5.2",
115
115
  "ws": "^8.21.0",
116
- "@mastra/server": "1.50.0-alpha.5"
116
+ "@mastra/server": "1.50.0"
117
117
  },
118
118
  "devDependencies": {
119
119
  "@hono/node-server": "^1.19.11",
@@ -134,13 +134,13 @@
134
134
  "typescript": "^6.0.3",
135
135
  "vitest": "4.1.8",
136
136
  "zod": "^4.4.3",
137
- "@internal/lint": "0.0.111",
138
- "@internal/types-builder": "0.0.86",
139
- "@mastra/hono": "1.5.5-alpha.5",
140
- "@mastra/agent-browser": "0.4.1-alpha.0",
141
- "@mastra/mcp": "^1.13.1-alpha.0",
142
- "@mastra/server": "1.50.0-alpha.5",
143
- "@mastra/core": "1.50.0-alpha.5"
137
+ "@internal/types-builder": "0.0.87",
138
+ "@mastra/agent-browser": "0.4.1",
139
+ "@mastra/core": "1.50.0",
140
+ "@internal/lint": "0.0.112",
141
+ "@mastra/hono": "1.5.5",
142
+ "@mastra/mcp": "^1.13.1",
143
+ "@mastra/server": "1.50.0"
144
144
  },
145
145
  "peerDependencies": {
146
146
  "@mastra/core": ">=1.50.0-0 <2.0.0-0"