@mastra/server 2.0.1-alpha.2 → 2.0.1-alpha.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.
@@ -201,6 +201,7 @@ async function watchVNextWorkflowHandler({
201
201
  const runDone = payload.workflowState.status !== "running";
202
202
  if (runDone) {
203
203
  controller.close();
204
+ unwatch?.();
204
205
  }
205
206
  });
206
207
  });
@@ -203,6 +203,7 @@ async function watchVNextWorkflowHandler({
203
203
  const runDone = payload.workflowState.status !== "running";
204
204
  if (runDone) {
205
205
  controller.close();
206
+ unwatch?.();
206
207
  }
207
208
  });
208
209
  });
@@ -1,46 +1,46 @@
1
1
  'use strict';
2
2
 
3
- var chunk2PP5GZLP_cjs = require('../../chunk-2PP5GZLP.cjs');
3
+ var chunkYN63BKGG_cjs = require('../../chunk-YN63BKGG.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createVNextWorkflowRunHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunk2PP5GZLP_cjs.createVNextWorkflowRunHandler; }
9
+ get: function () { return chunkYN63BKGG_cjs.createVNextWorkflowRunHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getVNextWorkflowByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk2PP5GZLP_cjs.getVNextWorkflowByIdHandler; }
13
+ get: function () { return chunkYN63BKGG_cjs.getVNextWorkflowByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getVNextWorkflowRunHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunk2PP5GZLP_cjs.getVNextWorkflowRunHandler; }
17
+ get: function () { return chunkYN63BKGG_cjs.getVNextWorkflowRunHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getVNextWorkflowRunsHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunk2PP5GZLP_cjs.getVNextWorkflowRunsHandler; }
21
+ get: function () { return chunkYN63BKGG_cjs.getVNextWorkflowRunsHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getVNextWorkflowsHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunk2PP5GZLP_cjs.getVNextWorkflowsHandler; }
25
+ get: function () { return chunkYN63BKGG_cjs.getVNextWorkflowsHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "resumeAsyncVNextWorkflowHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunk2PP5GZLP_cjs.resumeAsyncVNextWorkflowHandler; }
29
+ get: function () { return chunkYN63BKGG_cjs.resumeAsyncVNextWorkflowHandler; }
30
30
  });
31
31
  Object.defineProperty(exports, "resumeVNextWorkflowHandler", {
32
32
  enumerable: true,
33
- get: function () { return chunk2PP5GZLP_cjs.resumeVNextWorkflowHandler; }
33
+ get: function () { return chunkYN63BKGG_cjs.resumeVNextWorkflowHandler; }
34
34
  });
35
35
  Object.defineProperty(exports, "startAsyncVNextWorkflowHandler", {
36
36
  enumerable: true,
37
- get: function () { return chunk2PP5GZLP_cjs.startAsyncVNextWorkflowHandler; }
37
+ get: function () { return chunkYN63BKGG_cjs.startAsyncVNextWorkflowHandler; }
38
38
  });
39
39
  Object.defineProperty(exports, "startVNextWorkflowRunHandler", {
40
40
  enumerable: true,
41
- get: function () { return chunk2PP5GZLP_cjs.startVNextWorkflowRunHandler; }
41
+ get: function () { return chunkYN63BKGG_cjs.startVNextWorkflowRunHandler; }
42
42
  });
43
43
  Object.defineProperty(exports, "watchVNextWorkflowHandler", {
44
44
  enumerable: true,
45
- get: function () { return chunk2PP5GZLP_cjs.watchVNextWorkflowHandler; }
45
+ get: function () { return chunkYN63BKGG_cjs.watchVNextWorkflowHandler; }
46
46
  });
@@ -1 +1 @@
1
- export { createVNextWorkflowRunHandler, getVNextWorkflowByIdHandler, getVNextWorkflowRunHandler, getVNextWorkflowRunsHandler, getVNextWorkflowsHandler, resumeAsyncVNextWorkflowHandler, resumeVNextWorkflowHandler, startAsyncVNextWorkflowHandler, startVNextWorkflowRunHandler, watchVNextWorkflowHandler } from '../../chunk-7LT5EOQ3.js';
1
+ export { createVNextWorkflowRunHandler, getVNextWorkflowByIdHandler, getVNextWorkflowRunHandler, getVNextWorkflowRunsHandler, getVNextWorkflowsHandler, resumeAsyncVNextWorkflowHandler, resumeVNextWorkflowHandler, startAsyncVNextWorkflowHandler, startVNextWorkflowRunHandler, watchVNextWorkflowHandler } from '../../chunk-L5JIIJGO.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkD3G23FP3_cjs = require('../chunk-D3G23FP3.cjs');
4
- var chunk2PP5GZLP_cjs = require('../chunk-2PP5GZLP.cjs');
4
+ var chunkYN63BKGG_cjs = require('../chunk-YN63BKGG.cjs');
5
5
  var chunkM56ECCHK_cjs = require('../chunk-M56ECCHK.cjs');
6
6
  var chunk55HTWX4C_cjs = require('../chunk-55HTWX4C.cjs');
7
7
  var chunkTZK63M5N_cjs = require('../chunk-TZK63M5N.cjs');
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "tools", {
19
19
  });
20
20
  Object.defineProperty(exports, "vNextWorkflows", {
21
21
  enumerable: true,
22
- get: function () { return chunk2PP5GZLP_cjs.vNextWorkflows_exports; }
22
+ get: function () { return chunkYN63BKGG_cjs.vNextWorkflows_exports; }
23
23
  });
24
24
  Object.defineProperty(exports, "vector", {
25
25
  enumerable: true,
@@ -1,5 +1,5 @@
1
1
  export { tools_exports as tools } from '../chunk-5JNVY6DU.js';
2
- export { vNextWorkflows_exports as vNextWorkflows } from '../chunk-7LT5EOQ3.js';
2
+ export { vNextWorkflows_exports as vNextWorkflows } from '../chunk-L5JIIJGO.js';
3
3
  export { vector_exports as vector } from '../chunk-4JINXASC.js';
4
4
  export { voice_exports as voice } from '../chunk-Q6SHQECN.js';
5
5
  export { workflows_exports as workflows } from '../chunk-LFOBHRFO.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "2.0.1-alpha.2",
3
+ "version": "2.0.1-alpha.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -46,7 +46,7 @@
46
46
  "license": "Elastic-2.0",
47
47
  "dependencies": {},
48
48
  "peerDependencies": {
49
- "@mastra/core": "^0.9.1-alpha.2"
49
+ "@mastra/core": "^0.9.1-alpha.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@ai-sdk/openai": "^1.3.2",
@@ -59,7 +59,7 @@
59
59
  "vitest": "^2.1.9",
60
60
  "zod-to-json-schema": "^3.24.3",
61
61
  "@internal/lint": "0.0.2",
62
- "@mastra/core": "0.9.1-alpha.2"
62
+ "@mastra/core": "0.9.1-alpha.3"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsup src/index.ts src/server/handlers.ts src/server/handlers/*.ts !src/server/handlers/*.test.ts --format esm,cjs --clean --experimental-dts --treeshake=smallest --splitting",