@mastra/server 2.0.1-alpha.1 → 2.0.1-alpha.2
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/dist/_tsup-dts-rollup.d.cts +2 -2
- package/dist/_tsup-dts-rollup.d.ts +2 -2
- package/dist/{chunk-ZHNKYTNS.cjs → chunk-2PP5GZLP.cjs} +4 -2
- package/dist/{chunk-B66WVPGJ.js → chunk-7LT5EOQ3.js} +4 -2
- package/dist/server/handlers/vNextWorkflows.cjs +11 -11
- package/dist/server/handlers/vNextWorkflows.js +1 -1
- package/dist/server/handlers.cjs +2 -2
- package/dist/server/handlers.js +1 -1
- package/package.json +3 -3
|
@@ -395,7 +395,7 @@ export declare function resumeAsyncVNextWorkflowHandler({ mastra, workflowId, ru
|
|
|
395
395
|
resumeData?: unknown;
|
|
396
396
|
};
|
|
397
397
|
runtimeContext?: RuntimeContext_2;
|
|
398
|
-
}): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, NewStep<string, any, any,
|
|
398
|
+
}): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, NewStep<string, any, any, any, any>[]>>;
|
|
399
399
|
|
|
400
400
|
export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
|
|
401
401
|
body: {
|
|
@@ -436,7 +436,7 @@ declare type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 5
|
|
|
436
436
|
export declare function startAsyncVNextWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<VNextWorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
437
437
|
inputData?: unknown;
|
|
438
438
|
runtimeContext?: RuntimeContext_2;
|
|
439
|
-
}): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, NewStep<string, any, any,
|
|
439
|
+
}): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, NewStep<string, any, any, any, any>[]>>;
|
|
440
440
|
|
|
441
441
|
export declare function startAsyncWorkflowHandler({ mastra, runtimeContext, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
442
442
|
triggerData?: unknown;
|
|
@@ -395,7 +395,7 @@ export declare function resumeAsyncVNextWorkflowHandler({ mastra, workflowId, ru
|
|
|
395
395
|
resumeData?: unknown;
|
|
396
396
|
};
|
|
397
397
|
runtimeContext?: RuntimeContext_2;
|
|
398
|
-
}): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, NewStep<string, any, any,
|
|
398
|
+
}): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, NewStep<string, any, any, any, any>[]>>;
|
|
399
399
|
|
|
400
400
|
export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
|
|
401
401
|
body: {
|
|
@@ -436,7 +436,7 @@ declare type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 5
|
|
|
436
436
|
export declare function startAsyncVNextWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<VNextWorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
437
437
|
inputData?: unknown;
|
|
438
438
|
runtimeContext?: RuntimeContext_2;
|
|
439
|
-
}): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, NewStep<string, any, any,
|
|
439
|
+
}): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, NewStep<string, any, any, any, any>[]>>;
|
|
440
440
|
|
|
441
441
|
export declare function startAsyncWorkflowHandler({ mastra, runtimeContext, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
442
442
|
triggerData?: unknown;
|
|
@@ -29,7 +29,8 @@ async function getVNextWorkflowsHandler({ mastra }) {
|
|
|
29
29
|
acc2[key2] = {
|
|
30
30
|
...step,
|
|
31
31
|
inputSchema: step.inputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(step.inputSchema)) : void 0,
|
|
32
|
-
outputSchema: step.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(step.outputSchema)) : void 0
|
|
32
|
+
outputSchema: step.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(step.outputSchema)) : void 0,
|
|
33
|
+
resumeSchema: step.resumeSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(step.resumeSchema)) : void 0
|
|
33
34
|
};
|
|
34
35
|
return acc2;
|
|
35
36
|
}, {}),
|
|
@@ -58,7 +59,8 @@ async function getVNextWorkflowByIdHandler({ mastra, workflowId }) {
|
|
|
58
59
|
acc[key] = {
|
|
59
60
|
...step,
|
|
60
61
|
inputSchema: step.inputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(step.inputSchema)) : void 0,
|
|
61
|
-
outputSchema: step.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(step.outputSchema)) : void 0
|
|
62
|
+
outputSchema: step.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(step.outputSchema)) : void 0,
|
|
63
|
+
resumeSchema: step.resumeSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(step.resumeSchema)) : void 0
|
|
62
64
|
};
|
|
63
65
|
return acc;
|
|
64
66
|
}, {}),
|
|
@@ -27,7 +27,8 @@ async function getVNextWorkflowsHandler({ mastra }) {
|
|
|
27
27
|
acc2[key2] = {
|
|
28
28
|
...step,
|
|
29
29
|
inputSchema: step.inputSchema ? stringify(esm_default(step.inputSchema)) : void 0,
|
|
30
|
-
outputSchema: step.outputSchema ? stringify(esm_default(step.outputSchema)) : void 0
|
|
30
|
+
outputSchema: step.outputSchema ? stringify(esm_default(step.outputSchema)) : void 0,
|
|
31
|
+
resumeSchema: step.resumeSchema ? stringify(esm_default(step.resumeSchema)) : void 0
|
|
31
32
|
};
|
|
32
33
|
return acc2;
|
|
33
34
|
}, {}),
|
|
@@ -56,7 +57,8 @@ async function getVNextWorkflowByIdHandler({ mastra, workflowId }) {
|
|
|
56
57
|
acc[key] = {
|
|
57
58
|
...step,
|
|
58
59
|
inputSchema: step.inputSchema ? stringify(esm_default(step.inputSchema)) : void 0,
|
|
59
|
-
outputSchema: step.outputSchema ? stringify(esm_default(step.outputSchema)) : void 0
|
|
60
|
+
outputSchema: step.outputSchema ? stringify(esm_default(step.outputSchema)) : void 0,
|
|
61
|
+
resumeSchema: step.resumeSchema ? stringify(esm_default(step.resumeSchema)) : void 0
|
|
60
62
|
};
|
|
61
63
|
return acc;
|
|
62
64
|
}, {}),
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2PP5GZLP_cjs = require('../../chunk-2PP5GZLP.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createVNextWorkflowRunHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk2PP5GZLP_cjs.createVNextWorkflowRunHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getVNextWorkflowByIdHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2PP5GZLP_cjs.getVNextWorkflowByIdHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getVNextWorkflowRunHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2PP5GZLP_cjs.getVNextWorkflowRunHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getVNextWorkflowRunsHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2PP5GZLP_cjs.getVNextWorkflowRunsHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getVNextWorkflowsHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2PP5GZLP_cjs.getVNextWorkflowsHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "resumeAsyncVNextWorkflowHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk2PP5GZLP_cjs.resumeAsyncVNextWorkflowHandler; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "resumeVNextWorkflowHandler", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk2PP5GZLP_cjs.resumeVNextWorkflowHandler; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "startAsyncVNextWorkflowHandler", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk2PP5GZLP_cjs.startAsyncVNextWorkflowHandler; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "startVNextWorkflowRunHandler", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk2PP5GZLP_cjs.startVNextWorkflowRunHandler; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "watchVNextWorkflowHandler", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk2PP5GZLP_cjs.watchVNextWorkflowHandler; }
|
|
46
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createVNextWorkflowRunHandler, getVNextWorkflowByIdHandler, getVNextWorkflowRunHandler, getVNextWorkflowRunsHandler, getVNextWorkflowsHandler, resumeAsyncVNextWorkflowHandler, resumeVNextWorkflowHandler, startAsyncVNextWorkflowHandler, startVNextWorkflowRunHandler, watchVNextWorkflowHandler } from '../../chunk-
|
|
1
|
+
export { createVNextWorkflowRunHandler, getVNextWorkflowByIdHandler, getVNextWorkflowRunHandler, getVNextWorkflowRunsHandler, getVNextWorkflowsHandler, resumeAsyncVNextWorkflowHandler, resumeVNextWorkflowHandler, startAsyncVNextWorkflowHandler, startVNextWorkflowRunHandler, watchVNextWorkflowHandler } from '../../chunk-7LT5EOQ3.js';
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkD3G23FP3_cjs = require('../chunk-D3G23FP3.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk2PP5GZLP_cjs = require('../chunk-2PP5GZLP.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
|
|
22
|
+
get: function () { return chunk2PP5GZLP_cjs.vNextWorkflows_exports; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "vector", {
|
|
25
25
|
enumerable: true,
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { tools_exports as tools } from '../chunk-5JNVY6DU.js';
|
|
2
|
-
export { vNextWorkflows_exports as vNextWorkflows } from '../chunk-
|
|
2
|
+
export { vNextWorkflows_exports as vNextWorkflows } from '../chunk-7LT5EOQ3.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.
|
|
3
|
+
"version": "2.0.1-alpha.2",
|
|
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.
|
|
49
|
+
"@mastra/core": "^0.9.1-alpha.2"
|
|
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.
|
|
62
|
+
"@mastra/core": "0.9.1-alpha.2"
|
|
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",
|