@mastra/server 0.12.0-alpha.1 → 0.12.0-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.
@@ -49,6 +49,7 @@ import type { TaskIdParams } from '@mastra/core/a2a';
49
49
  import type { TaskQueryParams } from '@mastra/core/a2a';
50
50
  import type { TaskSendParams } from '@mastra/core/a2a';
51
51
  import type { TaskStatus } from '@mastra/core/a2a';
52
+ import type { ThreadSortOptions } from '@mastra/core/storage';
52
53
  import type { ToolAction } from '@mastra/core/tools';
53
54
  import { Trace } from '@mastra/core';
54
55
  import { UIMessageWithMetadata } from '@mastra/core/agent';
@@ -154,6 +155,21 @@ export declare function deleteIndex({ mastra, vectorName, indexName, }: Pick<Vec
154
155
  success: boolean;
155
156
  }>;
156
157
 
158
+ /**
159
+ * Handler to delete one or more messages.
160
+ * @param messageIds - Can be a single ID, array of IDs, or objects with ID property
161
+ */
162
+ export declare function deleteMessagesHandler({ mastra, agentId, messageIds, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
163
+ messageIds: string | string[] | {
164
+ id: string;
165
+ } | {
166
+ id: string;
167
+ }[];
168
+ }): Promise<{
169
+ success: boolean;
170
+ message: string;
171
+ }>;
172
+
157
173
  export declare function deleteThreadHandler({ mastra, agentId, threadId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'>): Promise<{
158
174
  result: string;
159
175
  }>;
@@ -449,7 +465,7 @@ export declare function getTelemetryHandler({ mastra, body }: TelemetryContext):
449
465
 
450
466
  export declare function getThreadByIdHandler({ mastra, agentId, threadId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'>): Promise<StorageThreadType>;
451
467
 
452
- export declare function getThreadsHandler({ mastra, agentId, resourceId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'networkId' | 'runtimeContext'>): Promise<StorageThreadType[]>;
468
+ export declare function getThreadsHandler({ mastra, agentId, resourceId, networkId, runtimeContext, orderBy, sortDirection, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'networkId' | 'runtimeContext'> & ThreadSortOptions): Promise<StorageThreadType[]>;
453
469
 
454
470
  export declare function getToolByIdHandler({ tools, toolId }: Pick<ToolsContext, 'tools' | 'toolId'>): Promise<any>;
455
471
 
@@ -735,18 +751,18 @@ export declare function loopStreamVNextNetworkHandler({ mastra, networkId, body,
735
751
  completionReason: ZodOptional<ZodString>;
736
752
  iteration: ZodNumber;
737
753
  }, "strip", ZodTypeAny, {
754
+ resourceId: string;
738
755
  result: string;
739
756
  prompt: string;
740
- resourceId: string;
741
757
  task: string;
742
758
  resourceType: "none" | "tool" | "workflow" | "agent";
743
759
  iteration: number;
744
760
  isComplete?: boolean | undefined;
745
761
  completionReason?: string | undefined;
746
762
  }, {
763
+ resourceId: string;
747
764
  result: string;
748
765
  prompt: string;
749
- resourceId: string;
750
766
  task: string;
751
767
  resourceType: "none" | "tool" | "workflow" | "agent";
752
768
  iteration: number;
@@ -763,9 +779,9 @@ export declare function loopVNextNetworkHandler({ mastra, networkId, body, runti
763
779
  }): Promise<{
764
780
  status: "success";
765
781
  result: {
782
+ resourceId: string;
766
783
  result: string;
767
784
  prompt: string;
768
- resourceId: string;
769
785
  task: string;
770
786
  resourceType: "none" | "tool" | "workflow" | "agent";
771
787
  iteration: number;
@@ -794,6 +810,7 @@ export declare namespace memory {
794
810
  getMessagesHandler,
795
811
  getWorkingMemoryHandler,
796
812
  updateWorkingMemoryHandler,
813
+ deleteMessagesHandler,
797
814
  searchMemoryHandler
798
815
  }
799
816
  }
@@ -900,13 +917,6 @@ export declare namespace scores {
900
917
  }
901
918
  }
902
919
 
903
- /**
904
- * Handler to search messages in a thread.
905
- * @param searchQuery - the text to search for
906
- * @param resourceId - the resource id (user/org) to validate thread ownership
907
- * @param threadId - the thread id to search within
908
- * @param limit - maximum number of results to return (default: 20)
909
- */
910
920
  export declare function searchMemoryHandler({ mastra, agentId, searchQuery, resourceId, threadId, limit, networkId, runtimeContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
911
921
  searchQuery: string;
912
922
  resourceId: string;
@@ -1041,9 +1051,9 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
1041
1051
  threadResourceId: ZodOptional<ZodString>;
1042
1052
  isOneOff: ZodBoolean;
1043
1053
  }, "strip", ZodTypeAny, {
1054
+ resourceId: string;
1044
1055
  result: string;
1045
1056
  prompt: string;
1046
- resourceId: string;
1047
1057
  task: string;
1048
1058
  resourceType: "none" | "tool" | "workflow" | "agent";
1049
1059
  iteration: number;
@@ -1053,9 +1063,9 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
1053
1063
  isComplete?: boolean | undefined;
1054
1064
  completionReason?: string | undefined;
1055
1065
  }, {
1066
+ resourceId: string;
1056
1067
  result: string;
1057
1068
  prompt: string;
1058
- resourceId: string;
1059
1069
  task: string;
1060
1070
  resourceType: "none" | "tool" | "workflow" | "agent";
1061
1071
  iteration: number;
@@ -49,6 +49,7 @@ import type { TaskIdParams } from '@mastra/core/a2a';
49
49
  import type { TaskQueryParams } from '@mastra/core/a2a';
50
50
  import type { TaskSendParams } from '@mastra/core/a2a';
51
51
  import type { TaskStatus } from '@mastra/core/a2a';
52
+ import type { ThreadSortOptions } from '@mastra/core/storage';
52
53
  import type { ToolAction } from '@mastra/core/tools';
53
54
  import { Trace } from '@mastra/core';
54
55
  import { UIMessageWithMetadata } from '@mastra/core/agent';
@@ -154,6 +155,21 @@ export declare function deleteIndex({ mastra, vectorName, indexName, }: Pick<Vec
154
155
  success: boolean;
155
156
  }>;
156
157
 
158
+ /**
159
+ * Handler to delete one or more messages.
160
+ * @param messageIds - Can be a single ID, array of IDs, or objects with ID property
161
+ */
162
+ export declare function deleteMessagesHandler({ mastra, agentId, messageIds, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
163
+ messageIds: string | string[] | {
164
+ id: string;
165
+ } | {
166
+ id: string;
167
+ }[];
168
+ }): Promise<{
169
+ success: boolean;
170
+ message: string;
171
+ }>;
172
+
157
173
  export declare function deleteThreadHandler({ mastra, agentId, threadId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'>): Promise<{
158
174
  result: string;
159
175
  }>;
@@ -449,7 +465,7 @@ export declare function getTelemetryHandler({ mastra, body }: TelemetryContext):
449
465
 
450
466
  export declare function getThreadByIdHandler({ mastra, agentId, threadId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'>): Promise<StorageThreadType>;
451
467
 
452
- export declare function getThreadsHandler({ mastra, agentId, resourceId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'networkId' | 'runtimeContext'>): Promise<StorageThreadType[]>;
468
+ export declare function getThreadsHandler({ mastra, agentId, resourceId, networkId, runtimeContext, orderBy, sortDirection, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'networkId' | 'runtimeContext'> & ThreadSortOptions): Promise<StorageThreadType[]>;
453
469
 
454
470
  export declare function getToolByIdHandler({ tools, toolId }: Pick<ToolsContext, 'tools' | 'toolId'>): Promise<any>;
455
471
 
@@ -735,18 +751,18 @@ export declare function loopStreamVNextNetworkHandler({ mastra, networkId, body,
735
751
  completionReason: ZodOptional<ZodString>;
736
752
  iteration: ZodNumber;
737
753
  }, "strip", ZodTypeAny, {
754
+ resourceId: string;
738
755
  result: string;
739
756
  prompt: string;
740
- resourceId: string;
741
757
  task: string;
742
758
  resourceType: "none" | "tool" | "workflow" | "agent";
743
759
  iteration: number;
744
760
  isComplete?: boolean | undefined;
745
761
  completionReason?: string | undefined;
746
762
  }, {
763
+ resourceId: string;
747
764
  result: string;
748
765
  prompt: string;
749
- resourceId: string;
750
766
  task: string;
751
767
  resourceType: "none" | "tool" | "workflow" | "agent";
752
768
  iteration: number;
@@ -763,9 +779,9 @@ export declare function loopVNextNetworkHandler({ mastra, networkId, body, runti
763
779
  }): Promise<{
764
780
  status: "success";
765
781
  result: {
782
+ resourceId: string;
766
783
  result: string;
767
784
  prompt: string;
768
- resourceId: string;
769
785
  task: string;
770
786
  resourceType: "none" | "tool" | "workflow" | "agent";
771
787
  iteration: number;
@@ -794,6 +810,7 @@ export declare namespace memory {
794
810
  getMessagesHandler,
795
811
  getWorkingMemoryHandler,
796
812
  updateWorkingMemoryHandler,
813
+ deleteMessagesHandler,
797
814
  searchMemoryHandler
798
815
  }
799
816
  }
@@ -900,13 +917,6 @@ export declare namespace scores {
900
917
  }
901
918
  }
902
919
 
903
- /**
904
- * Handler to search messages in a thread.
905
- * @param searchQuery - the text to search for
906
- * @param resourceId - the resource id (user/org) to validate thread ownership
907
- * @param threadId - the thread id to search within
908
- * @param limit - maximum number of results to return (default: 20)
909
- */
910
920
  export declare function searchMemoryHandler({ mastra, agentId, searchQuery, resourceId, threadId, limit, networkId, runtimeContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
911
921
  searchQuery: string;
912
922
  resourceId: string;
@@ -1041,9 +1051,9 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
1041
1051
  threadResourceId: ZodOptional<ZodString>;
1042
1052
  isOneOff: ZodBoolean;
1043
1053
  }, "strip", ZodTypeAny, {
1054
+ resourceId: string;
1044
1055
  result: string;
1045
1056
  prompt: string;
1046
- resourceId: string;
1047
1057
  task: string;
1048
1058
  resourceType: "none" | "tool" | "workflow" | "agent";
1049
1059
  iteration: number;
@@ -1053,9 +1063,9 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
1053
1063
  isComplete?: boolean | undefined;
1054
1064
  completionReason?: string | undefined;
1055
1065
  }, {
1066
+ resourceId: string;
1056
1067
  result: string;
1057
1068
  prompt: string;
1058
- resourceId: string;
1059
1069
  task: string;
1060
1070
  resourceType: "none" | "tool" | "workflow" | "agent";
1061
1071
  iteration: number;
@@ -8,6 +8,7 @@ import { generateEmptyFromSchema } from '@mastra/core';
8
8
  var memory_exports = {};
9
9
  __export(memory_exports, {
10
10
  createThreadHandler: () => createThreadHandler,
11
+ deleteMessagesHandler: () => deleteMessagesHandler,
11
12
  deleteThreadHandler: () => deleteThreadHandler,
12
13
  getMemoryConfigHandler: () => getMemoryConfigHandler,
13
14
  getMemoryStatusHandler: () => getMemoryStatusHandler,
@@ -81,7 +82,9 @@ async function getThreadsHandler({
81
82
  agentId,
82
83
  resourceId,
83
84
  networkId,
84
- runtimeContext
85
+ runtimeContext,
86
+ orderBy,
87
+ sortDirection
85
88
  }) {
86
89
  try {
87
90
  const memory = await getMemoryFromContext({ mastra, agentId, networkId, runtimeContext });
@@ -89,7 +92,11 @@ async function getThreadsHandler({
89
92
  throw new HTTPException(400, { message: "Memory is not initialized" });
90
93
  }
91
94
  validateBody({ resourceId });
92
- const threads = await memory.getThreadsByResourceId({ resourceId });
95
+ const threads = await memory.getThreadsByResourceId({
96
+ resourceId,
97
+ orderBy,
98
+ sortDirection
99
+ });
93
100
  return threads;
94
101
  } catch (error) {
95
102
  return handleError(error, "Error getting threads");
@@ -341,6 +348,31 @@ async function updateWorkingMemoryHandler({
341
348
  return handleError(error, "Error updating working memory");
342
349
  }
343
350
  }
351
+ async function deleteMessagesHandler({
352
+ mastra,
353
+ agentId,
354
+ messageIds,
355
+ networkId,
356
+ runtimeContext
357
+ }) {
358
+ try {
359
+ if (messageIds === void 0 || messageIds === null) {
360
+ throw new HTTPException(400, { message: "messageIds is required" });
361
+ }
362
+ const memory = await getMemoryFromContext({ mastra, agentId, networkId, runtimeContext });
363
+ if (!memory) {
364
+ throw new HTTPException(400, { message: "Memory is not initialized" });
365
+ }
366
+ await memory.deleteMessages(messageIds);
367
+ let count = 1;
368
+ if (Array.isArray(messageIds)) {
369
+ count = messageIds.length;
370
+ }
371
+ return { success: true, message: `${count} message${count === 1 ? "" : "s"} deleted successfully` };
372
+ } catch (error) {
373
+ return handleError(error, "Error deleting messages");
374
+ }
375
+ }
344
376
  async function searchMemoryHandler({
345
377
  mastra,
346
378
  agentId,
@@ -504,4 +536,4 @@ async function searchMemoryHandler({
504
536
  }
505
537
  }
506
538
 
507
- export { createThreadHandler, deleteThreadHandler, getMemoryConfigHandler, getMemoryStatusHandler, getMessagesHandler, getMessagesPaginatedHandler, getThreadByIdHandler, getThreadsHandler, getWorkingMemoryHandler, memory_exports, saveMessagesHandler, searchMemoryHandler, updateThreadHandler, updateWorkingMemoryHandler };
539
+ export { createThreadHandler, deleteMessagesHandler, deleteThreadHandler, getMemoryConfigHandler, getMemoryStatusHandler, getMessagesHandler, getMessagesPaginatedHandler, getThreadByIdHandler, getThreadsHandler, getWorkingMemoryHandler, memory_exports, saveMessagesHandler, searchMemoryHandler, updateThreadHandler, updateWorkingMemoryHandler };
@@ -10,6 +10,7 @@ var core = require('@mastra/core');
10
10
  var memory_exports = {};
11
11
  chunk75ZPJI57_cjs.__export(memory_exports, {
12
12
  createThreadHandler: () => createThreadHandler,
13
+ deleteMessagesHandler: () => deleteMessagesHandler,
13
14
  deleteThreadHandler: () => deleteThreadHandler,
14
15
  getMemoryConfigHandler: () => getMemoryConfigHandler,
15
16
  getMemoryStatusHandler: () => getMemoryStatusHandler,
@@ -83,7 +84,9 @@ async function getThreadsHandler({
83
84
  agentId,
84
85
  resourceId,
85
86
  networkId,
86
- runtimeContext
87
+ runtimeContext,
88
+ orderBy,
89
+ sortDirection
87
90
  }) {
88
91
  try {
89
92
  const memory = await getMemoryFromContext({ mastra, agentId, networkId, runtimeContext });
@@ -91,7 +94,11 @@ async function getThreadsHandler({
91
94
  throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Memory is not initialized" });
92
95
  }
93
96
  chunkCCGRCYWJ_cjs.validateBody({ resourceId });
94
- const threads = await memory.getThreadsByResourceId({ resourceId });
97
+ const threads = await memory.getThreadsByResourceId({
98
+ resourceId,
99
+ orderBy,
100
+ sortDirection
101
+ });
95
102
  return threads;
96
103
  } catch (error) {
97
104
  return chunkPZQDCRPV_cjs.handleError(error, "Error getting threads");
@@ -343,6 +350,31 @@ async function updateWorkingMemoryHandler({
343
350
  return chunkPZQDCRPV_cjs.handleError(error, "Error updating working memory");
344
351
  }
345
352
  }
353
+ async function deleteMessagesHandler({
354
+ mastra,
355
+ agentId,
356
+ messageIds,
357
+ networkId,
358
+ runtimeContext
359
+ }) {
360
+ try {
361
+ if (messageIds === void 0 || messageIds === null) {
362
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "messageIds is required" });
363
+ }
364
+ const memory = await getMemoryFromContext({ mastra, agentId, networkId, runtimeContext });
365
+ if (!memory) {
366
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Memory is not initialized" });
367
+ }
368
+ await memory.deleteMessages(messageIds);
369
+ let count = 1;
370
+ if (Array.isArray(messageIds)) {
371
+ count = messageIds.length;
372
+ }
373
+ return { success: true, message: `${count} message${count === 1 ? "" : "s"} deleted successfully` };
374
+ } catch (error) {
375
+ return chunkPZQDCRPV_cjs.handleError(error, "Error deleting messages");
376
+ }
377
+ }
346
378
  async function searchMemoryHandler({
347
379
  mastra,
348
380
  agentId,
@@ -507,6 +539,7 @@ async function searchMemoryHandler({
507
539
  }
508
540
 
509
541
  exports.createThreadHandler = createThreadHandler;
542
+ exports.deleteMessagesHandler = deleteMessagesHandler;
510
543
  exports.deleteThreadHandler = deleteThreadHandler;
511
544
  exports.getMemoryConfigHandler = getMemoryConfigHandler;
512
545
  exports.getMemoryStatusHandler = getMemoryStatusHandler;
@@ -1,58 +1,62 @@
1
1
  'use strict';
2
2
 
3
- var chunkTTPJHP42_cjs = require('../../chunk-TTPJHP42.cjs');
3
+ var chunkUEVYOKAH_cjs = require('../../chunk-UEVYOKAH.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createThreadHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkTTPJHP42_cjs.createThreadHandler; }
9
+ get: function () { return chunkUEVYOKAH_cjs.createThreadHandler; }
10
+ });
11
+ Object.defineProperty(exports, "deleteMessagesHandler", {
12
+ enumerable: true,
13
+ get: function () { return chunkUEVYOKAH_cjs.deleteMessagesHandler; }
10
14
  });
11
15
  Object.defineProperty(exports, "deleteThreadHandler", {
12
16
  enumerable: true,
13
- get: function () { return chunkTTPJHP42_cjs.deleteThreadHandler; }
17
+ get: function () { return chunkUEVYOKAH_cjs.deleteThreadHandler; }
14
18
  });
15
19
  Object.defineProperty(exports, "getMemoryConfigHandler", {
16
20
  enumerable: true,
17
- get: function () { return chunkTTPJHP42_cjs.getMemoryConfigHandler; }
21
+ get: function () { return chunkUEVYOKAH_cjs.getMemoryConfigHandler; }
18
22
  });
19
23
  Object.defineProperty(exports, "getMemoryStatusHandler", {
20
24
  enumerable: true,
21
- get: function () { return chunkTTPJHP42_cjs.getMemoryStatusHandler; }
25
+ get: function () { return chunkUEVYOKAH_cjs.getMemoryStatusHandler; }
22
26
  });
23
27
  Object.defineProperty(exports, "getMessagesHandler", {
24
28
  enumerable: true,
25
- get: function () { return chunkTTPJHP42_cjs.getMessagesHandler; }
29
+ get: function () { return chunkUEVYOKAH_cjs.getMessagesHandler; }
26
30
  });
27
31
  Object.defineProperty(exports, "getMessagesPaginatedHandler", {
28
32
  enumerable: true,
29
- get: function () { return chunkTTPJHP42_cjs.getMessagesPaginatedHandler; }
33
+ get: function () { return chunkUEVYOKAH_cjs.getMessagesPaginatedHandler; }
30
34
  });
31
35
  Object.defineProperty(exports, "getThreadByIdHandler", {
32
36
  enumerable: true,
33
- get: function () { return chunkTTPJHP42_cjs.getThreadByIdHandler; }
37
+ get: function () { return chunkUEVYOKAH_cjs.getThreadByIdHandler; }
34
38
  });
35
39
  Object.defineProperty(exports, "getThreadsHandler", {
36
40
  enumerable: true,
37
- get: function () { return chunkTTPJHP42_cjs.getThreadsHandler; }
41
+ get: function () { return chunkUEVYOKAH_cjs.getThreadsHandler; }
38
42
  });
39
43
  Object.defineProperty(exports, "getWorkingMemoryHandler", {
40
44
  enumerable: true,
41
- get: function () { return chunkTTPJHP42_cjs.getWorkingMemoryHandler; }
45
+ get: function () { return chunkUEVYOKAH_cjs.getWorkingMemoryHandler; }
42
46
  });
43
47
  Object.defineProperty(exports, "saveMessagesHandler", {
44
48
  enumerable: true,
45
- get: function () { return chunkTTPJHP42_cjs.saveMessagesHandler; }
49
+ get: function () { return chunkUEVYOKAH_cjs.saveMessagesHandler; }
46
50
  });
47
51
  Object.defineProperty(exports, "searchMemoryHandler", {
48
52
  enumerable: true,
49
- get: function () { return chunkTTPJHP42_cjs.searchMemoryHandler; }
53
+ get: function () { return chunkUEVYOKAH_cjs.searchMemoryHandler; }
50
54
  });
51
55
  Object.defineProperty(exports, "updateThreadHandler", {
52
56
  enumerable: true,
53
- get: function () { return chunkTTPJHP42_cjs.updateThreadHandler; }
57
+ get: function () { return chunkUEVYOKAH_cjs.updateThreadHandler; }
54
58
  });
55
59
  Object.defineProperty(exports, "updateWorkingMemoryHandler", {
56
60
  enumerable: true,
57
- get: function () { return chunkTTPJHP42_cjs.updateWorkingMemoryHandler; }
61
+ get: function () { return chunkUEVYOKAH_cjs.updateWorkingMemoryHandler; }
58
62
  });
@@ -10,4 +10,5 @@ export { getMessagesPaginatedHandler } from '../../_tsup-dts-rollup.cjs';
10
10
  export { getMessagesHandler } from '../../_tsup-dts-rollup.cjs';
11
11
  export { getWorkingMemoryHandler } from '../../_tsup-dts-rollup.cjs';
12
12
  export { updateWorkingMemoryHandler } from '../../_tsup-dts-rollup.cjs';
13
+ export { deleteMessagesHandler } from '../../_tsup-dts-rollup.cjs';
13
14
  export { searchMemoryHandler } from '../../_tsup-dts-rollup.cjs';
@@ -10,4 +10,5 @@ export { getMessagesPaginatedHandler } from '../../_tsup-dts-rollup.js';
10
10
  export { getMessagesHandler } from '../../_tsup-dts-rollup.js';
11
11
  export { getWorkingMemoryHandler } from '../../_tsup-dts-rollup.js';
12
12
  export { updateWorkingMemoryHandler } from '../../_tsup-dts-rollup.js';
13
+ export { deleteMessagesHandler } from '../../_tsup-dts-rollup.js';
13
14
  export { searchMemoryHandler } from '../../_tsup-dts-rollup.js';
@@ -1 +1 @@
1
- export { createThreadHandler, deleteThreadHandler, getMemoryConfigHandler, getMemoryStatusHandler, getMessagesHandler, getMessagesPaginatedHandler, getThreadByIdHandler, getThreadsHandler, getWorkingMemoryHandler, saveMessagesHandler, searchMemoryHandler, updateThreadHandler, updateWorkingMemoryHandler } from '../../chunk-R3I7AJVL.js';
1
+ export { createThreadHandler, deleteMessagesHandler, deleteThreadHandler, getMemoryConfigHandler, getMemoryStatusHandler, getMessagesHandler, getMessagesPaginatedHandler, getThreadByIdHandler, getThreadsHandler, getWorkingMemoryHandler, saveMessagesHandler, searchMemoryHandler, updateThreadHandler, updateWorkingMemoryHandler } from '../../chunk-PIAJQ75M.js';
@@ -11,7 +11,7 @@ var chunkSDPGVWQJ_cjs = require('../chunk-SDPGVWQJ.cjs');
11
11
  var chunkI5JKUCGE_cjs = require('../chunk-I5JKUCGE.cjs');
12
12
  var chunkUCV4247U_cjs = require('../chunk-UCV4247U.cjs');
13
13
  var chunkQGX47B5D_cjs = require('../chunk-QGX47B5D.cjs');
14
- var chunkTTPJHP42_cjs = require('../chunk-TTPJHP42.cjs');
14
+ var chunkUEVYOKAH_cjs = require('../chunk-UEVYOKAH.cjs');
15
15
 
16
16
 
17
17
 
@@ -61,5 +61,5 @@ Object.defineProperty(exports, "logs", {
61
61
  });
62
62
  Object.defineProperty(exports, "memory", {
63
63
  enumerable: true,
64
- get: function () { return chunkTTPJHP42_cjs.memory_exports; }
64
+ get: function () { return chunkUEVYOKAH_cjs.memory_exports; }
65
65
  });
@@ -9,4 +9,4 @@ export { a2a_exports as a2a } from '../chunk-GHC4YV6R.js';
9
9
  export { agents_exports as agents } from '../chunk-VTTN2FW3.js';
10
10
  export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-ZYAFP2AV.js';
11
11
  export { logs_exports as logs } from '../chunk-4D66QEKC.js';
12
- export { memory_exports as memory } from '../chunk-R3I7AJVL.js';
12
+ export { memory_exports as memory } from '../chunk-PIAJQ75M.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.12.0-alpha.1",
3
+ "version": "0.12.0-alpha.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -60,8 +60,8 @@
60
60
  "zod": "^3.25.67",
61
61
  "zod-to-json-schema": "^3.24.5",
62
62
  "@internal/lint": "0.0.23",
63
- "@mastra/core": "0.12.0-alpha.1",
64
- "@internal/storage-test-utils": "0.0.19"
63
+ "@internal/storage-test-utils": "0.0.19",
64
+ "@mastra/core": "0.12.0-alpha.3"
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",