mastra 1.22.0-alpha.2 → 1.22.0-alpha.4

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,48 @@
1
1
  # mastra
2
2
 
3
+ ## 1.22.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Stored workflows can now be managed over HTTP: create or update a declarative workflow definition with `POST /stored/workflows`, list/fetch with `GET`, and remove with `DELETE` — with malformed graphs rejected at the API boundary with actionable errors instead of failing deep inside rehydration. ([#20471](https://github.com/mastra-ai/mastra/pull/20471))
8
+
9
+ ```ts
10
+ await fetch(`${baseUrl}/stored/workflows`, {
11
+ method: 'POST',
12
+ headers: { 'Content-Type': 'application/json' },
13
+ body: JSON.stringify({
14
+ id: 'greeting-workflow',
15
+ inputSchema: { type: 'object', properties: { name: { type: 'string' } }, required: ['name'] },
16
+ outputSchema: { type: 'object', properties: { text: { type: 'string' } }, required: ['text'] },
17
+ graph: [{ type: 'agent', id: 'greet', agentId: 'greeter-agent' }],
18
+ }),
19
+ });
20
+ ```
21
+
22
+ **`DELETE /stored/workflows/:storedWorkflowId` now unregisters the live workflow instance** in addition to removing the stored row. Previously the handler only called `store.delete(id)`, leaving the rehydrated `Workflow` on `Mastra` until the process restarted. The handler now calls `mastra.removeWorkflow(id)` after `store.delete`. Idempotent on missing ids.
23
+
24
+ **`POST /stored/workflows` body schema is now a typed discriminated union.** The `graph` field was previously typed as `z.array(z.any())` and would only surface malformed entries deep inside `rehydrateWorkflow`. It is now a discriminated union over `type: 'step' | 'agent' | 'tool' | 'mapping' | 'parallel' | 'foreach' | 'sleep' | 'sleepUntil'`, matching the serialized graph shape `toStorableGraph` emits. Combined with the new `Mastra.addStoredWorkflow` pre-flight, invalid ids, mis-classified refs, and JSON Schemas that use converter-unsupported keywords (`oneOf` / `anyOf` / …) are rejected at the HTTP boundary with actionable errors before rehydration runs. `inputSchema` / `outputSchema` / `stateSchema` / `requestContextSchema` remain `z.any()` — they're JSON Schema Draft 2020-12 blobs, validated in `addStoredWorkflow` before the row is persisted.
25
+
26
+ **`foreach.opts` is now optional on both sides of the wire.** Previously the Zod schema declared `opts` optional but the underlying `SerializedForeachEntry.opts` was required, forcing a `Parameters<Mastra['addStoredWorkflow']>[0]` cast in the handler that defeated compile-time drift detection. `SerializedForeachEntry.opts` is now optional in core, the Zod schema and the runtime type agree, and the handler cast is gone. Runtime unchanged (engine already read `entry.opts?.concurrency ?? 1`).
27
+
28
+ **`conditional` and `loop` entries now round-trip through `POST /stored/workflows`.** The body schema's discriminated union has been extended with `type: 'conditional'` (`steps: SingleStepEntry[]`, `predicates: Predicate[]`) and `type: 'loop'` (`step: SingleStepEntry`, `loopType: 'dowhile' | 'dountil'`, `predicate: Predicate`), where `Predicate` is the same structural JSON shape now exported from `@mastra/core/workflows`. Legacy closure-based `serializedConditions` payloads are rejected at the HTTP boundary rather than silently reaching the rehydrator.
29
+
30
+ **Nested workflow references now round-trip through `POST /stored/workflows`.** The body schema's `SingleStepEntry` union gains a `type: 'workflow'` variant (`id`, `workflowId`, optional `description`) that can appear at the top level or inside any composite entry. `serializedStepFlowEntrySchema` (returned by `GET /workflows/:id`) mirrors the same variant so clients see nested-workflow steps in code-defined workflows as well — a stored parent workflow can reference a previously stored child and run it end to end through the standard workflow endpoints.
31
+
32
+ **`mastra` CLI:** regenerated API route metadata so the CLI's route table includes the new stored-workflow endpoints.
33
+
34
+ - Updated dependencies [[`4844167`](https://github.com/mastra-ai/mastra/commit/4844167cff2d5ec5004e94edd34970833040fa3f), [`5faf93f`](https://github.com/mastra-ai/mastra/commit/5faf93f03e19daea394b9e2a923f2e4f833407f2), [`80ad891`](https://github.com/mastra-ai/mastra/commit/80ad891f8cd10379aa5b5af7510c763783b2ab56), [`b1abe41`](https://github.com/mastra-ai/mastra/commit/b1abe41fbb5060b864aaa79e0ac3b5afcd414513), [`a1cb98d`](https://github.com/mastra-ai/mastra/commit/a1cb98d11990b560b98482292a1f34aa1a2d9092), [`598ad82`](https://github.com/mastra-ai/mastra/commit/598ad82d41c41389a686338a1d0e50b7400e1938), [`1fd6aad`](https://github.com/mastra-ai/mastra/commit/1fd6aad1ea4a9d32f65efa832307c35e981a4c0a)]:
35
+ - @mastra/core@1.56.0-alpha.4
36
+ - @mastra/deployer@1.56.0-alpha.4
37
+
38
+ ## 1.22.0-alpha.3
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [[`594f7b2`](https://github.com/mastra-ai/mastra/commit/594f7b28f5263fb9982fd50d95c471fb971ea984), [`311f943`](https://github.com/mastra-ai/mastra/commit/311f943bee60e8fdf5c84499ea50e884276c936c), [`0c89896`](https://github.com/mastra-ai/mastra/commit/0c8989673fb7d106837098398131e570c6023b68), [`23b4238`](https://github.com/mastra-ai/mastra/commit/23b423844ad0bcf2a502a68dd62866d6160f9f6d), [`e320a76`](https://github.com/mastra-ai/mastra/commit/e320a763feaf65c6be3cebecf746defcbde161b3), [`03b4918`](https://github.com/mastra-ai/mastra/commit/03b4918c80d188ce375334c393e131c6e94bd7eb), [`14ef73a`](https://github.com/mastra-ai/mastra/commit/14ef73a4bbd73e7808414816eb0628ce1d80b5d7), [`1d677d5`](https://github.com/mastra-ai/mastra/commit/1d677d5f99d7db403f7828585e8c25f299f72628), [`93e28ec`](https://github.com/mastra-ai/mastra/commit/93e28ecce9031c02397e0ae8406593e5c7a95883), [`729dab4`](https://github.com/mastra-ai/mastra/commit/729dab408faccfaef0cbb048e5a4338f9172847e), [`484003d`](https://github.com/mastra-ai/mastra/commit/484003d33ff59330c86b19863e4a38732d7e4155), [`933d291`](https://github.com/mastra-ai/mastra/commit/933d291146b789c19442ad206f94da3e4be90c64)]:
43
+ - @mastra/core@1.56.0-alpha.3
44
+ - @mastra/deployer@1.56.0-alpha.3
45
+
3
46
  ## 1.22.0-alpha.2
4
47
 
5
48
  ### Minor Changes
@@ -2466,6 +2466,55 @@ export declare const CLI_ROUTE_METADATA: {
2466
2466
  readonly kind: "single";
2467
2467
  };
2468
2468
  };
2469
+ readonly "GET /stored/workflows": {
2470
+ readonly method: "GET";
2471
+ readonly path: "/stored/workflows";
2472
+ readonly pathParams: readonly [];
2473
+ readonly queryParams: readonly ["authorId", "status"];
2474
+ readonly bodyParams: readonly [];
2475
+ readonly hasQuery: true;
2476
+ readonly hasBody: false;
2477
+ readonly responseShape: {
2478
+ readonly kind: "object-property";
2479
+ readonly listProperty: "workflows";
2480
+ };
2481
+ };
2482
+ readonly "POST /stored/workflows": {
2483
+ readonly method: "POST";
2484
+ readonly path: "/stored/workflows";
2485
+ readonly pathParams: readonly [];
2486
+ readonly queryParams: readonly [];
2487
+ readonly bodyParams: readonly ["dependencies", "description", "graph", "id", "inputSchema", "metadata", "outputSchema", "requestContextSchema", "stateSchema"];
2488
+ readonly hasQuery: false;
2489
+ readonly hasBody: true;
2490
+ readonly responseShape: {
2491
+ readonly kind: "single";
2492
+ };
2493
+ };
2494
+ readonly "GET /stored/workflows/:storedWorkflowId": {
2495
+ readonly method: "GET";
2496
+ readonly path: "/stored/workflows/:storedWorkflowId";
2497
+ readonly pathParams: readonly ["storedWorkflowId"];
2498
+ readonly queryParams: readonly [];
2499
+ readonly bodyParams: readonly [];
2500
+ readonly hasQuery: false;
2501
+ readonly hasBody: false;
2502
+ readonly responseShape: {
2503
+ readonly kind: "single";
2504
+ };
2505
+ };
2506
+ readonly "DELETE /stored/workflows/:storedWorkflowId": {
2507
+ readonly method: "DELETE";
2508
+ readonly path: "/stored/workflows/:storedWorkflowId";
2509
+ readonly pathParams: readonly ["storedWorkflowId"];
2510
+ readonly queryParams: readonly [];
2511
+ readonly bodyParams: readonly [];
2512
+ readonly hasQuery: false;
2513
+ readonly hasBody: false;
2514
+ readonly responseShape: {
2515
+ readonly kind: "single";
2516
+ };
2517
+ };
2469
2518
  readonly "GET /stored/mcp-clients": {
2470
2519
  readonly method: "GET";
2471
2520
  readonly path: "/stored/mcp-clients";
@@ -1 +1 @@
1
- {"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiE,CAAC;AAEjG,eAAO,MAAM,YAAY,EAAS,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEvE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAsflE;AAsND;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,oBAAoB,EAChC,gBAAgB,EAAE,MAAM,EAAE,EAC1B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,EAAE,gBAAgB,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAChD,OAAO,CAAC,IAAI,CAAC,CAgEf"}
@@ -2334,6 +2334,55 @@ export declare const API_ROUTE_METADATA: {
2334
2334
  readonly kind: "single";
2335
2335
  };
2336
2336
  };
2337
+ readonly "GET /stored/workflows": {
2338
+ readonly method: "GET";
2339
+ readonly path: "/stored/workflows";
2340
+ readonly pathParams: readonly [];
2341
+ readonly queryParams: readonly ["authorId", "status"];
2342
+ readonly bodyParams: readonly [];
2343
+ readonly hasQuery: true;
2344
+ readonly hasBody: false;
2345
+ readonly responseShape: {
2346
+ readonly kind: "object-property";
2347
+ readonly listProperty: "workflows";
2348
+ };
2349
+ };
2350
+ readonly "POST /stored/workflows": {
2351
+ readonly method: "POST";
2352
+ readonly path: "/stored/workflows";
2353
+ readonly pathParams: readonly [];
2354
+ readonly queryParams: readonly [];
2355
+ readonly bodyParams: readonly ["dependencies", "description", "graph", "id", "inputSchema", "metadata", "outputSchema", "requestContextSchema", "stateSchema"];
2356
+ readonly hasQuery: false;
2357
+ readonly hasBody: true;
2358
+ readonly responseShape: {
2359
+ readonly kind: "single";
2360
+ };
2361
+ };
2362
+ readonly "GET /stored/workflows/:storedWorkflowId": {
2363
+ readonly method: "GET";
2364
+ readonly path: "/stored/workflows/:storedWorkflowId";
2365
+ readonly pathParams: readonly ["storedWorkflowId"];
2366
+ readonly queryParams: readonly [];
2367
+ readonly bodyParams: readonly [];
2368
+ readonly hasQuery: false;
2369
+ readonly hasBody: false;
2370
+ readonly responseShape: {
2371
+ readonly kind: "single";
2372
+ };
2373
+ };
2374
+ readonly "DELETE /stored/workflows/:storedWorkflowId": {
2375
+ readonly method: "DELETE";
2376
+ readonly path: "/stored/workflows/:storedWorkflowId";
2377
+ readonly pathParams: readonly ["storedWorkflowId"];
2378
+ readonly queryParams: readonly [];
2379
+ readonly bodyParams: readonly [];
2380
+ readonly hasQuery: false;
2381
+ readonly hasBody: false;
2382
+ readonly responseShape: {
2383
+ readonly kind: "single";
2384
+ };
2385
+ };
2337
2386
  readonly "GET /stored/mcp-clients": {
2338
2387
  readonly method: "GET";
2339
2388
  readonly path: "/stored/mcp-clients";
@@ -1 +1 @@
1
- {"version":3,"file":"route-metadata.generated.d.ts","sourceRoot":"","sources":["../../../src/commands/api/route-metadata.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAk2MrB,CAAC"}
@@ -3,7 +3,7 @@ name: mastra
3
3
  description: Documentation for mastra. Use when working with mastra APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "mastra"
6
- version: "1.22.0-alpha.2"
6
+ version: "1.22.0-alpha.4"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.22.0-alpha.2",
2
+ "version": "1.22.0-alpha.4",
3
3
  "package": "mastra",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -171,7 +171,7 @@ Comma-separated list of custom arguments to pass to the Node.js process, e.g. `-
171
171
 
172
172
  ## `mastra worker build`
173
173
 
174
- Bundles your Mastra application for worker deployment. Produces the same output as `mastra build` — a self-contained `.mastra/output/` directory.
174
+ Bundles your Mastra application for worker deployment. Produces the same output as `mastra build`: a self-contained `.mastra/output/` directory.
175
175
 
176
176
  ```bash
177
177
  mastra worker build [options]
@@ -179,29 +179,45 @@ mastra worker build [options]
179
179
 
180
180
  ### Flags
181
181
 
182
- | Flag | Description |
183
- | --------------------- | ------------------------------------------------------------ |
184
- | `--dir <path>` | Path to your Mastra source directory (default: `src/mastra`) |
185
- | `--root <path>` | Project root directory (default: current directory) |
186
- | `--tools <paths>` | Comma-separated tool paths to include |
187
- | `--output-dir <path>` | Custom output directory (default: `.mastra/output`) |
188
- | `--debug` | Enable debug logging |
182
+ #### `--dir`
183
+
184
+ Path to your Mastra source directory. Defaults to `src/mastra`.
185
+
186
+ #### `--root`
187
+
188
+ Project root directory. Defaults to the current directory.
189
+
190
+ #### `--tools`
191
+
192
+ Comma-separated tool paths to include in the bundle.
193
+
194
+ #### `--output-dir`
195
+
196
+ Custom output directory. Defaults to `.mastra/output`.
197
+
198
+ #### `--debug`
199
+
200
+ Enable debug logging during the build.
189
201
 
190
202
  ## `mastra worker start`
191
203
 
192
204
  > **Info:** You need to run `mastra worker build` or `mastra build` before using `mastra worker start`.
193
205
 
194
- Starts a worker process from a previously built bundle.
206
+ Starts a worker process from a previously built bundle. The optional `name` argument sets `MASTRA_WORKERS` in the spawned process, controlling which worker starts.
195
207
 
196
208
  ```bash
197
209
  mastra worker start [name] [options]
198
210
  ```
199
211
 
200
- | Argument/Flag | Description |
201
- | -------------- | ------------------------------------------------------------------- |
202
- | `name` | Worker name to start. Sets `MASTRA_WORKERS` in the spawned process. |
203
- | `--dir <path>` | Path to the build output (default: `.mastra/output`) |
204
- | `--env <path>` | Path to environment file (default: `.env.production`, then `.env`) |
212
+ ### Flags
213
+
214
+ #### `--dir`
215
+
216
+ Path to the build output directory. Defaults to `.mastra/output`.
217
+
218
+ #### `--env`
219
+
220
+ Path to the environment file. Defaults to `.env.production`, falling back to `.env`.
205
221
 
206
222
  ### Examples
207
223
 
@@ -1 +1 @@
1
- import{J as t}from"./index-CYfgn2CK.js";import{c as p,d as i}from"./index-CYfgn2CK.js";function n(){const e={cache:new Map,regexConstructor:()=>{throw new Error("JavaScriptRawEngine: only support precompiled grammar")}};return{createScanner(r){return new t(r,e)},createString(r){return{content:r}}}}export{t as JavaScriptScanner,n as createJavaScriptRawEngine,p as createJavaScriptRegexEngine,i as defaultJavaScriptRegexConstructor};
1
+ import{J as t}from"./index-DaoPq9sb.js";import{c as p,d as i}from"./index-DaoPq9sb.js";function n(){const e={cache:new Map,regexConstructor:()=>{throw new Error("JavaScriptRawEngine: only support precompiled grammar")}};return{createScanner(r){return new t(r,e)},createString(r){return{content:r}}}}export{t as JavaScriptScanner,n as createJavaScriptRawEngine,p as createJavaScriptRegexEngine,i as defaultJavaScriptRegexConstructor};