@mastra/server 2.0.4 → 2.0.5-alpha.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/dist/_tsup-dts-rollup.d.cts +2 -1
- package/dist/_tsup-dts-rollup.d.ts +2 -1
- package/dist/{chunk-IU5VO2I2.js → chunk-55DOQLP6.js} +2 -2
- package/dist/{chunk-4YZ3U35L.cjs → chunk-BNEY4P4P.cjs} +2 -2
- package/dist/server/handlers/vector.cjs +7 -7
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers.cjs +2 -2
- package/dist/server/handlers.js +1 -1
- package/package.json +3 -3
|
@@ -36,6 +36,7 @@ import type { TaskSendParams } from '@mastra/core/a2a';
|
|
|
36
36
|
import type { TaskStatus } from '@mastra/core/a2a';
|
|
37
37
|
import type { ToolAction } from '@mastra/core/tools';
|
|
38
38
|
import type { VercelTool } from '@mastra/core/tools';
|
|
39
|
+
import type { VNextWorkflowRuns } from '@mastra/core/storage';
|
|
39
40
|
import type { Workflow } from '@mastra/core/workflows';
|
|
40
41
|
import { WorkflowContext as WorkflowContext_2 } from '@mastra/core/workflows';
|
|
41
42
|
import { WorkflowResult } from '@mastra/core/workflows/vNext';
|
|
@@ -322,7 +323,7 @@ export declare function getVNextWorkflowRunsHandler({ mastra, workflowId, fromDa
|
|
|
322
323
|
limit?: number;
|
|
323
324
|
offset?: number;
|
|
324
325
|
resourceId?: string;
|
|
325
|
-
}): Promise<
|
|
326
|
+
}): Promise<VNextWorkflowRuns>;
|
|
326
327
|
|
|
327
328
|
export declare function getVNextWorkflowsHandler({ mastra }: VNextWorkflowContext): Promise<any>;
|
|
328
329
|
|
|
@@ -36,6 +36,7 @@ import type { TaskSendParams } from '@mastra/core/a2a';
|
|
|
36
36
|
import type { TaskStatus } from '@mastra/core/a2a';
|
|
37
37
|
import type { ToolAction } from '@mastra/core/tools';
|
|
38
38
|
import type { VercelTool } from '@mastra/core/tools';
|
|
39
|
+
import type { VNextWorkflowRuns } from '@mastra/core/storage';
|
|
39
40
|
import type { Workflow } from '@mastra/core/workflows';
|
|
40
41
|
import { WorkflowContext as WorkflowContext_2 } from '@mastra/core/workflows';
|
|
41
42
|
import { WorkflowResult } from '@mastra/core/workflows/vNext';
|
|
@@ -322,7 +323,7 @@ export declare function getVNextWorkflowRunsHandler({ mastra, workflowId, fromDa
|
|
|
322
323
|
limit?: number;
|
|
323
324
|
offset?: number;
|
|
324
325
|
resourceId?: string;
|
|
325
|
-
}): Promise<
|
|
326
|
+
}): Promise<VNextWorkflowRuns>;
|
|
326
327
|
|
|
327
328
|
export declare function getVNextWorkflowsHandler({ mastra }: VNextWorkflowContext): Promise<any>;
|
|
328
329
|
|
|
@@ -91,7 +91,7 @@ async function describeIndex({
|
|
|
91
91
|
throw new HTTPException(400, { message: "Index name is required" });
|
|
92
92
|
}
|
|
93
93
|
const vector = getVector(mastra, vectorName);
|
|
94
|
-
const stats = await vector.describeIndex(indexName);
|
|
94
|
+
const stats = await vector.describeIndex({ indexName });
|
|
95
95
|
return {
|
|
96
96
|
dimension: stats.dimension,
|
|
97
97
|
count: stats.count,
|
|
@@ -111,7 +111,7 @@ async function deleteIndex({
|
|
|
111
111
|
throw new HTTPException(400, { message: "Index name is required" });
|
|
112
112
|
}
|
|
113
113
|
const vector = getVector(mastra, vectorName);
|
|
114
|
-
await vector.deleteIndex(indexName);
|
|
114
|
+
await vector.deleteIndex({ indexName });
|
|
115
115
|
return { success: true };
|
|
116
116
|
} catch (error) {
|
|
117
117
|
return handleError(error, "Error deleting index");
|
|
@@ -93,7 +93,7 @@ async function describeIndex({
|
|
|
93
93
|
throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Index name is required" });
|
|
94
94
|
}
|
|
95
95
|
const vector = getVector(mastra, vectorName);
|
|
96
|
-
const stats = await vector.describeIndex(indexName);
|
|
96
|
+
const stats = await vector.describeIndex({ indexName });
|
|
97
97
|
return {
|
|
98
98
|
dimension: stats.dimension,
|
|
99
99
|
count: stats.count,
|
|
@@ -113,7 +113,7 @@ async function deleteIndex({
|
|
|
113
113
|
throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Index name is required" });
|
|
114
114
|
}
|
|
115
115
|
const vector = getVector(mastra, vectorName);
|
|
116
|
-
await vector.deleteIndex(indexName);
|
|
116
|
+
await vector.deleteIndex({ indexName });
|
|
117
117
|
return { success: true };
|
|
118
118
|
} catch (error) {
|
|
119
119
|
return chunk64U3UDTH_cjs.handleError(error, "Error deleting index");
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBNEY4P4P_cjs = require('../../chunk-BNEY4P4P.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createIndex", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkBNEY4P4P_cjs.createIndex; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "deleteIndex", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBNEY4P4P_cjs.deleteIndex; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "describeIndex", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkBNEY4P4P_cjs.describeIndex; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "listIndexes", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkBNEY4P4P_cjs.listIndexes; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "queryVectors", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkBNEY4P4P_cjs.queryVectors; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "upsertVectors", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkBNEY4P4P_cjs.upsertVectors; }
|
|
30
30
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-
|
|
1
|
+
export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-55DOQLP6.js';
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkMHKNLNAN_cjs = require('../chunk-MHKNLNAN.cjs');
|
|
4
4
|
var chunkZE5AAC4I_cjs = require('../chunk-ZE5AAC4I.cjs');
|
|
5
5
|
var chunkUCTEMO2Q_cjs = require('../chunk-UCTEMO2Q.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkBNEY4P4P_cjs = require('../chunk-BNEY4P4P.cjs');
|
|
7
7
|
var chunkYBVOQN4M_cjs = require('../chunk-YBVOQN4M.cjs');
|
|
8
8
|
var chunkI2B73Y4I_cjs = require('../chunk-I2B73Y4I.cjs');
|
|
9
9
|
var chunk5SN4U5AC_cjs = require('../chunk-5SN4U5AC.cjs');
|
|
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "vNextWorkflows", {
|
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "vector", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkBNEY4P4P_cjs.vector_exports; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "voice", {
|
|
34
34
|
enumerable: true,
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { telemetry_exports as telemetry } from '../chunk-OR3CIE2H.js';
|
|
2
2
|
export { tools_exports as tools } from '../chunk-TJKLBTFB.js';
|
|
3
3
|
export { vNextWorkflows_exports as vNextWorkflows } from '../chunk-MIQYDLLM.js';
|
|
4
|
-
export { vector_exports as vector } from '../chunk-
|
|
4
|
+
export { vector_exports as vector } from '../chunk-55DOQLP6.js';
|
|
5
5
|
export { voice_exports as voice } from '../chunk-HFWCEP5S.js';
|
|
6
6
|
export { workflows_exports as workflows } from '../chunk-EJO45KYT.js';
|
|
7
7
|
export { a2a_exports as a2a } from '../chunk-P6SCPDYW.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"zod": "^3.0.0",
|
|
50
|
-
"@mastra/core": "^0.9.
|
|
50
|
+
"@mastra/core": "^0.9.5-alpha.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@ai-sdk/openai": "^1.3.2",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"zod": "^3.24.3",
|
|
62
62
|
"zod-to-json-schema": "^3.24.5",
|
|
63
63
|
"@internal/lint": "0.0.5",
|
|
64
|
-
"@mastra/core": "0.9.
|
|
64
|
+
"@mastra/core": "0.9.5-alpha.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"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",
|