@mastra/deployer 1.0.0-beta.1 → 1.0.0-beta.3

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,37 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.0.0-beta.3
4
+
5
+ ### Patch Changes
6
+
7
+ - dependencies updates: ([#10131](https://github.com/mastra-ai/mastra/pull/10131))
8
+ - Updated dependency [`hono@^4.10.5` ↗︎](https://www.npmjs.com/package/hono/v/4.10.5) (from `^4.9.7`, in `dependencies`)
9
+
10
+ - dependencies updates: ([#9779](https://github.com/mastra-ai/mastra/pull/9779))
11
+ - Updated dependency [`@rollup/plugin-alias@6.0.0` ↗︎](https://www.npmjs.com/package/@rollup/plugin-alias/v/6.0.0) (from `5.1.1`, in `dependencies`)
12
+ - Updated dependency [`@rollup/plugin-commonjs@29.0.6` ↗︎](https://www.npmjs.com/package/@rollup/plugin-commonjs/v/29.0.6) (from `29.0.0`, in `dependencies`)
13
+
14
+ - dependencies updates: ([#9780](https://github.com/mastra-ai/mastra/pull/9780))
15
+ - Updated dependency [`@rollup/plugin-commonjs@29.0.0` ↗︎](https://www.npmjs.com/package/@rollup/plugin-commonjs/v/29.0.0) (from `28.0.6`, in `dependencies`)
16
+
17
+ - Add restart method to workflow run that allows restarting an active workflow run ([#9750](https://github.com/mastra-ai/mastra/pull/9750))
18
+ Add status filter to `listWorkflowRuns`
19
+ Add automatic restart to restart active workflow runs when server starts
20
+
21
+ - Remove unused dependencies ([#10019](https://github.com/mastra-ai/mastra/pull/10019))
22
+
23
+ - Updated dependencies [[`2319326`](https://github.com/mastra-ai/mastra/commit/2319326f8c64e503a09bbcf14be2dd65405445e0), [`60937c1`](https://github.com/mastra-ai/mastra/commit/60937c14d7ff287b0acd16deb15f5e96516d7880), [`d629361`](https://github.com/mastra-ai/mastra/commit/d629361a60f6565b5bfb11976fdaf7308af858e2), [`08c31c1`](https://github.com/mastra-ai/mastra/commit/08c31c188ebccd598acaf55e888b6397d01f7eae), [`fd3d338`](https://github.com/mastra-ai/mastra/commit/fd3d338a2c362174ed5b383f1f011ad9fb0302aa), [`c30400a`](https://github.com/mastra-ai/mastra/commit/c30400a49b994b1b97256fe785eb6c906fc2b232), [`69e0a87`](https://github.com/mastra-ai/mastra/commit/69e0a878896a2da9494945d86e056a5f8f05b851), [`01f8878`](https://github.com/mastra-ai/mastra/commit/01f88783de25e4de048c1c8aace43e26373c6ea5), [`4c77209`](https://github.com/mastra-ai/mastra/commit/4c77209e6c11678808b365d545845918c40045c8), [`d827d08`](https://github.com/mastra-ai/mastra/commit/d827d0808ffe1f3553a84e975806cc989b9735dd), [`23c10a1`](https://github.com/mastra-ai/mastra/commit/23c10a1efdd9a693c405511ab2dc8a1236603162), [`676ccc7`](https://github.com/mastra-ai/mastra/commit/676ccc7fe92468d2d45d39c31a87825c89fd1ea0), [`c10398d`](https://github.com/mastra-ai/mastra/commit/c10398d5b88f1d4af556f4267ff06f1d11e89179), [`00c2387`](https://github.com/mastra-ai/mastra/commit/00c2387f5f04a365316f851e58666ac43f8c4edf), [`ad6250d`](https://github.com/mastra-ai/mastra/commit/ad6250dbdaad927e29f74a27b83f6c468b50a705), [`3a73998`](https://github.com/mastra-ai/mastra/commit/3a73998fa4ebeb7f3dc9301afe78095fc63e7999), [`e16d553`](https://github.com/mastra-ai/mastra/commit/e16d55338403c7553531cc568125c63d53653dff), [`4d59f58`](https://github.com/mastra-ai/mastra/commit/4d59f58de2d90d6e2810a19d4518e38ddddb9038), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`351a11f`](https://github.com/mastra-ai/mastra/commit/351a11fcaf2ed1008977fa9b9a489fc422e51cd4)]:
24
+ - @mastra/core@1.0.0-beta.3
25
+ - @mastra/server@1.0.0-beta.3
26
+
27
+ ## 1.0.0-beta.2
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [[`465ac05`](https://github.com/mastra-ai/mastra/commit/465ac0526a91d175542091c675181f1a96c98c46)]:
32
+ - @mastra/core@1.0.0-beta.2
33
+ - @mastra/server@1.0.0-beta.2
34
+
3
35
  ## 1.0.0-beta.1
4
36
 
5
37
  ### Patch Changes
@@ -9,6 +41,7 @@
9
41
  - Updated dependencies [[`910db9e`](https://github.com/mastra-ai/mastra/commit/910db9e0312888495eb5617b567f247d03303814), [`e7266a2`](https://github.com/mastra-ai/mastra/commit/e7266a278db02035c97a5e9cd9d1669a6b7a535d)]:
10
42
  - @mastra/core@1.0.0-beta.1
11
43
  - @mastra/server@1.0.0-beta.1
44
+ - Custom route handling now respects the `requiresAuth` flag emitted directly from `registerApiRoute`, so you can mark endpoints as public without mutating the returned object.
12
45
 
13
46
  ## 1.0.0-beta.0
14
47
 
@@ -0,0 +1,3 @@
1
+ import type { Context } from 'hono';
2
+ export declare function restartAllActiveWorkflowRunsHandler(c: Context): Promise<Response>;
3
+ //# sourceMappingURL=restart-active-runs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restart-active-runs.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/restart-active-runs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,wBAAsB,mCAAmC,CAAC,CAAC,EAAE,OAAO,qBASnE"}
@@ -8,6 +8,31 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
8
8
  description: string;
9
9
  judge?: {
10
10
  model: import("@mastra/core/llm/model").ModelRouterModelId | {
11
+ readonly specificationVersion: "v2";
12
+ readonly provider: string;
13
+ readonly modelId: string;
14
+ supportedUrls: {
15
+ [x: string]: {
16
+ exec: never;
17
+ test: never;
18
+ readonly source: string;
19
+ readonly global: boolean;
20
+ readonly ignoreCase: boolean;
21
+ readonly multiline: boolean;
22
+ lastIndex: number;
23
+ compile: never;
24
+ readonly flags: string;
25
+ readonly sticky: boolean;
26
+ readonly unicode: boolean;
27
+ readonly dotAll: boolean;
28
+ readonly hasIndices: boolean;
29
+ }[];
30
+ } | {
31
+ then: never;
32
+ };
33
+ doGenerate: never;
34
+ doStream: never;
35
+ } | {
11
36
  readonly specificationVersion: "v1";
12
37
  readonly provider: string;
13
38
  readonly modelId: string;
@@ -18,8 +43,8 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
18
43
  doGenerate: never;
19
44
  doStream: never;
20
45
  } | {
21
- readonly specificationVersion: "v2";
22
46
  readonly provider: string;
47
+ readonly specificationVersion: "v2";
23
48
  readonly modelId: string;
24
49
  supportedUrls: {
25
50
  [x: string]: {
@@ -226,6 +251,31 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
226
251
  readonly description: string;
227
252
  readonly judge: {
228
253
  model: import("@mastra/core/llm/model").ModelRouterModelId | {
254
+ readonly specificationVersion: "v2";
255
+ readonly provider: string;
256
+ readonly modelId: string;
257
+ supportedUrls: {
258
+ [x: string]: {
259
+ exec: never;
260
+ test: never;
261
+ readonly source: string;
262
+ readonly global: boolean;
263
+ readonly ignoreCase: boolean;
264
+ readonly multiline: boolean;
265
+ lastIndex: number;
266
+ compile: never;
267
+ readonly flags: string;
268
+ readonly sticky: boolean;
269
+ readonly unicode: boolean;
270
+ readonly dotAll: boolean;
271
+ readonly hasIndices: boolean;
272
+ }[];
273
+ } | {
274
+ then: never;
275
+ };
276
+ doGenerate: never;
277
+ doStream: never;
278
+ } | {
229
279
  readonly specificationVersion: "v1";
230
280
  readonly provider: string;
231
281
  readonly modelId: string;
@@ -236,8 +286,8 @@ export declare function getScorerHandler(c: Context): Promise<Response & import(
236
286
  doGenerate: never;
237
287
  doStream: never;
238
288
  } | {
239
- readonly specificationVersion: "v2";
240
289
  readonly provider: string;
290
+ readonly specificationVersion: "v2";
241
291
  readonly modelId: string;
242
292
  supportedUrls: {
243
293
  [x: string]: {
@@ -1 +1 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/scores/handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,OAAO,qBAUlD;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAYhD;AAED,wBAAsB,wBAAwB,CAAC,CAAC,EAAE,OAAO,qBAkBxD;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EAAE,OAAO,qBAsB3D;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EAAE,OAAO,qBAqB3D;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO,qBAchD"}
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/scores/handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,OAAO,qBAUlD;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAYhD;AAED,wBAAsB,wBAAwB,CAAC,CAAC,EAAE,OAAO,qBAkBxD;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EAAE,OAAO,qBAsB3D;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EAAE,OAAO,qBAqB3D;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO,qBAchD"}
@@ -853,7 +853,7 @@ var middleware = (options) => async (c2) => {
853
853
  );
854
854
  };
855
855
 
856
- // ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.10.3_openapi-types@12.1.3_zod@3.25.76/node_modules/hono-openapi/utils.js
856
+ // ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.10.6_openapi-types@12.1.3_zod@3.25.76/node_modules/hono-openapi/utils.js
857
857
  var e = Symbol("openapi");
858
858
  var n = ["GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"];
859
859
  var s2 = (e2) => e2.charAt(0).toUpperCase() + e2.slice(1);
@@ -1342,6 +1342,17 @@ async function healthHandler(c2) {
1342
1342
  return c2.json({ success: true }, 200);
1343
1343
  }
1344
1344
 
1345
+ // src/server/handlers/restart-active-runs.ts
1346
+ async function restartAllActiveWorkflowRunsHandler(c2) {
1347
+ try {
1348
+ const mastra = c2.get("mastra");
1349
+ void mastra.restartAllActiveWorkflowRuns();
1350
+ return c2.json({ message: "Restarting all active workflow runs..." });
1351
+ } catch (error) {
1352
+ return handleError(error, "Error restarting active workflow runs");
1353
+ }
1354
+ }
1355
+
1345
1356
  // src/server/handlers/root.ts
1346
1357
  async function rootHandler(c2) {
1347
1358
  const baseUrl = new URL(c2.req.url).origin;
@@ -11717,6 +11728,15 @@ async function createHonoServer(mastra, options = {
11717
11728
  middleware({ url: "/openapi.json" })
11718
11729
  );
11719
11730
  }
11731
+ if (options?.isDev) {
11732
+ app.post(
11733
+ "/__restart-active-workflow-runs",
11734
+ w({
11735
+ hide: true
11736
+ }),
11737
+ restartAllActiveWorkflowRunsHandler
11738
+ );
11739
+ }
11720
11740
  if (options?.playground) {
11721
11741
  app.get(
11722
11742
  "/refresh-events",