@mastra/server 0.0.0-vnextAgentNetwork-20250602084555 → 0.0.0-vnextAgentNetwork-20250602134426

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.
Files changed (31) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +57 -17
  2. package/dist/_tsup-dts-rollup.d.ts +57 -17
  3. package/dist/{chunk-D4IRYCUI.cjs → chunk-A3KDUGS7.cjs} +6 -2
  4. package/dist/{chunk-MHKNLNAN.cjs → chunk-B4MQFJ7G.cjs} +5 -2
  5. package/dist/{chunk-OR3CIE2H.js → chunk-BFOA2QQY.js} +5 -2
  6. package/dist/{chunk-YBVOQN4M.cjs → chunk-CMMOIUFC.cjs} +20 -0
  7. package/dist/{chunk-HFWCEP5S.js → chunk-CP55EVBK.js} +20 -1
  8. package/dist/{chunk-WFBJJNCK.js → chunk-DQLE3DVM.js} +0 -1
  9. package/dist/{chunk-P6SCPDYW.js → chunk-GHC4YV6R.js} +5 -1
  10. package/dist/{chunk-WUC6LSTW.js → chunk-J3PKLB3A.js} +6 -2
  11. package/dist/{chunk-7DLZLWJV.cjs → chunk-NEOOQUKW.cjs} +0 -1
  12. package/dist/{chunk-5SN4U5AC.cjs → chunk-SDPGVWQJ.cjs} +5 -1
  13. package/dist/server/handlers/a2a.cjs +7 -7
  14. package/dist/server/handlers/a2a.js +1 -1
  15. package/dist/server/handlers/agents.cjs +7 -7
  16. package/dist/server/handlers/agents.js +1 -1
  17. package/dist/server/handlers/logs.cjs +4 -4
  18. package/dist/server/handlers/logs.js +1 -1
  19. package/dist/server/handlers/telemetry.cjs +3 -3
  20. package/dist/server/handlers/telemetry.js +1 -1
  21. package/dist/server/handlers/vNextNetwork.cjs +22 -0
  22. package/dist/server/handlers/vNextNetwork.d.cts +1 -0
  23. package/dist/server/handlers/vNextNetwork.d.ts +1 -0
  24. package/dist/server/handlers/vNextNetwork.js +22 -1
  25. package/dist/server/handlers/voice.cjs +8 -4
  26. package/dist/server/handlers/voice.d.cts +1 -0
  27. package/dist/server/handlers/voice.d.ts +1 -0
  28. package/dist/server/handlers/voice.js +1 -1
  29. package/dist/server/handlers.cjs +10 -10
  30. package/dist/server/handlers.js +5 -5
  31. package/package.json +4 -4
@@ -17,9 +17,8 @@ import { LegacyWorkflowRunResult } from '@mastra/core/workflows/legacy';
17
17
  import type { LegacyWorkflowRuns } from '@mastra/core/storage';
18
18
  import type { Mastra } from '@mastra/core/mastra';
19
19
  import type { MastraMemory } from '@mastra/core/memory';
20
- import { Message } from 'ai';
21
- import type { Message as Message_2 } from '@mastra/core/a2a';
22
- import { MessageType } from '@mastra/core/memory';
20
+ import { MastraMessageV1 } from '@mastra/core/memory';
21
+ import type { Message } from '@mastra/core/a2a';
23
22
  import type { QueryResult } from '@mastra/core/vector';
24
23
  import { ReadableStream as ReadableStream_2 } from 'node:stream/web';
25
24
  import { RuntimeContext } from '@mastra/core/runtime-context';
@@ -28,6 +27,7 @@ import type { SerializedStepFlowEntry } from '@mastra/core/workflows';
28
27
  import { Step } from '@mastra/core/workflows';
29
28
  import { StepExecutionContext } from '@mastra/core/workflows/legacy';
30
29
  import { StepGraph } from '@mastra/core/workflows/legacy';
30
+ import { StepResult } from '@mastra/core/workflows';
31
31
  import { StorageThreadType } from '@mastra/core/memory';
32
32
  import { Task } from '@mastra/core/a2a';
33
33
  import { TaskAndHistory } from '@mastra/core/a2a';
@@ -37,6 +37,7 @@ import type { TaskQueryParams } from '@mastra/core/a2a';
37
37
  import type { TaskSendParams } from '@mastra/core/a2a';
38
38
  import type { TaskStatus } from '@mastra/core/a2a';
39
39
  import type { ToolAction } from '@mastra/core/tools';
40
+ import { UIMessage } from 'ai';
40
41
  import type { VercelTool } from '@mastra/core/tools';
41
42
  import { WatchEvent } from '@mastra/core/workflows';
42
43
  import type { Workflow } from '@mastra/core/workflows';
@@ -45,6 +46,7 @@ import { WorkflowResult } from '@mastra/core/workflows';
45
46
  import type { WorkflowRuns } from '@mastra/core/storage';
46
47
  import { ZodBoolean } from 'zod';
47
48
  import { ZodEnum } from 'zod';
49
+ import { ZodNumber } from 'zod';
48
50
  import { ZodObject } from 'zod';
49
51
  import { ZodOptional } from 'zod';
50
52
  import { ZodString } from 'zod';
@@ -87,7 +89,7 @@ export declare interface Context {
87
89
  mastra: Mastra;
88
90
  }
89
91
 
90
- export declare function convertToCoreMessage(message: Message_2): CoreMessage_2;
92
+ export declare function convertToCoreMessage(message: Message): CoreMessage_2;
91
93
 
92
94
  export declare function createErrorResponse(id: number | string | null, error: JSONRPCError<unknown>): JSONRPCResponse<null, unknown>;
93
95
 
@@ -111,8 +113,8 @@ export declare function createSuccessResponse<T>(id: number | string | null, res
111
113
 
112
114
  export declare function createTaskContext({ task, userMessage, history, activeCancellations, }: {
113
115
  task: Task;
114
- userMessage: Message_2;
115
- history: Message_2[];
116
+ userMessage: Message;
117
+ history: Message[];
116
118
  activeCancellations: Set<string>;
117
119
  }): TaskContext;
118
120
 
@@ -194,7 +196,7 @@ export declare function generateVNextNetworkHandler({ mastra, runtimeContext, ne
194
196
  task: string;
195
197
  result: string;
196
198
  resourceId: string;
197
- resourceType: "none" | "tool" | "agent" | "workflow";
199
+ resourceType: "none" | "tool" | "workflow" | "agent";
198
200
  }>;
199
201
 
200
202
  export declare function getAgentByIdHandler({ mastra, runtimeContext, agentId, }: Context & {
@@ -207,6 +209,8 @@ export declare function getAgentByIdHandler({ mastra, runtimeContext, agentId, }
207
209
  workflows: {};
208
210
  provider: string;
209
211
  modelId: string;
212
+ defaultGenerateOptions: any;
213
+ defaultStreamOptions: any;
210
214
  }>;
211
215
 
212
216
  export declare function getAgentCardByIdHandler({ mastra, agentId, executionUrl, provider, version, runtimeContext, }: Context & {
@@ -272,6 +276,13 @@ export declare function getLegacyWorkflowRunsHandler({ mastra, workflowId, fromD
272
276
 
273
277
  export declare function getLegacyWorkflowsHandler({ mastra }: WorkflowContext): Promise<any>;
274
278
 
279
+ /**
280
+ * Get available listeners for an agent
281
+ */
282
+ export declare function getListenerHandler({ mastra, agentId }: VoiceContext): Promise<{
283
+ enabled: boolean;
284
+ }>;
285
+
275
286
  export declare function getLiveEvalsByAgentIdHandler({ mastra, runtimeContext, agentId, }: Context & {
276
287
  runtimeContext: RuntimeContext;
277
288
  agentId: string;
@@ -298,7 +309,7 @@ export declare function getMessagesHandler({ mastra, agentId, threadId, limit, }
298
309
  limit?: number;
299
310
  }): Promise<{
300
311
  messages: CoreMessage[];
301
- uiMessages: Message[];
312
+ uiMessages: UIMessage[];
302
313
  }>;
303
314
 
304
315
  export declare function getNetworkByIdHandler({ mastra, networkId, runtimeContext, }: Pick<NetworkContext, 'mastra' | 'networkId' | 'runtimeContext'>): Promise<{
@@ -428,20 +439,22 @@ export declare function handleTaskGet({ requestId, taskStore, agentId, taskId, }
428
439
  taskId: string;
429
440
  }): Promise<JSONRPCResponse<TaskAndHistory, unknown>>;
430
441
 
431
- export declare function handleTaskSend({ requestId, params, taskStore, agent, logger, runtimeContext, }: {
442
+ export declare function handleTaskSend({ requestId, params, taskStore, agent, agentId, logger, runtimeContext, }: {
432
443
  requestId: string;
433
444
  params: TaskSendParams;
434
445
  taskStore: InMemoryTaskStore;
435
446
  agent: Agent;
447
+ agentId: string;
436
448
  logger?: IMastraLogger;
437
449
  runtimeContext: RuntimeContext;
438
450
  }): Promise<JSONRPCResponse<null, unknown> | JSONRPCResponse<Task, unknown>>;
439
451
 
440
- export declare function handleTaskSendSubscribe({ requestId, params, taskStore, agent, logger, runtimeContext, }: {
452
+ export declare function handleTaskSendSubscribe({ requestId, params, taskStore, agent, agentId, logger, runtimeContext, }: {
441
453
  requestId: string;
442
454
  params: TaskSendParams;
443
455
  taskStore: InMemoryTaskStore;
444
456
  agent: Agent;
457
+ agentId: string;
445
458
  logger?: IMastraLogger;
446
459
  runtimeContext: RuntimeContext;
447
460
  }): AsyncGenerator<JSONRPCResponse<null, unknown> | JSONRPCResponse<Task, unknown> | JSONRPCResponse< {
@@ -550,7 +563,7 @@ export declare function loadOrCreateTaskAndHistory({ agentId, taskId, taskStore,
550
563
  agentId: string;
551
564
  taskId: string;
552
565
  taskStore: InMemoryTaskStore;
553
- message: Message_2;
566
+ message: Message;
554
567
  sessionId?: string | null;
555
568
  metadata?: Record<string, unknown> | null;
556
569
  logger?: IMastraLogger;
@@ -570,6 +583,22 @@ declare type LogsContext = {
570
583
  runId?: string;
571
584
  };
572
585
 
586
+ export declare function loopVNextNetworkHandler({ mastra, networkId, body, runtimeContext, }: NetworkContext_2 & {
587
+ runtimeContext: RuntimeContext;
588
+ body: {
589
+ message: string;
590
+ };
591
+ }): Promise<{
592
+ status: "success";
593
+ result: {
594
+ text: string;
595
+ iteration: number;
596
+ };
597
+ steps: {
598
+ [x: string]: StepResult<any, any, any, any> | StepResult<unknown, unknown, unknown, unknown>;
599
+ };
600
+ }>;
601
+
573
602
  export declare namespace memory {
574
603
  export {
575
604
  getMemoryStatusHandler,
@@ -665,7 +694,7 @@ export declare function saveMessagesHandler({ mastra, agentId, body, }: Pick<Mem
665
694
  body: {
666
695
  messages: Parameters<MastraMemory['saveMessages']>[0]['messages'];
667
696
  };
668
- }): Promise<MessageType[]>;
697
+ }): Promise<MastraMessageV1[]>;
669
698
 
670
699
  declare type SerializedStep = {
671
700
  id: string;
@@ -717,6 +746,10 @@ export declare function storeTelemetryHandler({ mastra, body }: Context & {
717
746
  status: string;
718
747
  message: string;
719
748
  error: any;
749
+ } | {
750
+ status: string;
751
+ message: string;
752
+ traceCount?: undefined;
720
753
  } | {
721
754
  status: string;
722
755
  message: string;
@@ -753,20 +786,26 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
753
786
  prompt: ZodString;
754
787
  result: ZodString;
755
788
  isComplete: ZodOptional<ZodBoolean>;
789
+ completionReason: ZodOptional<ZodString>;
790
+ iteration: ZodNumber;
756
791
  }, "strip", ZodTypeAny, {
757
792
  prompt: string;
758
- resourceId: string;
759
793
  result: string;
794
+ resourceId: string;
760
795
  task: string;
761
- resourceType: "none" | "tool" | "agent" | "workflow";
796
+ resourceType: "none" | "tool" | "workflow" | "agent";
797
+ iteration: number;
762
798
  isComplete?: boolean | undefined;
799
+ completionReason?: string | undefined;
763
800
  }, {
764
801
  prompt: string;
765
- resourceId: string;
766
802
  result: string;
803
+ resourceId: string;
767
804
  task: string;
768
- resourceType: "none" | "tool" | "agent" | "workflow";
805
+ resourceType: "none" | "tool" | "workflow" | "agent";
806
+ iteration: number;
769
807
  isComplete?: boolean | undefined;
808
+ completionReason?: string | undefined;
770
809
  }>, Step<string, any, any, ZodType<any, ZodTypeDef, any>, ZodType<any, ZodTypeDef, any>>[]>>;
771
810
  }>;
772
811
 
@@ -883,7 +922,8 @@ export declare namespace voice {
883
922
  export {
884
923
  getSpeakersHandler,
885
924
  generateSpeechHandler,
886
- transcribeSpeechHandler
925
+ transcribeSpeechHandler,
926
+ getListenerHandler
887
927
  }
888
928
  }
889
929
 
@@ -17,9 +17,8 @@ import { LegacyWorkflowRunResult } from '@mastra/core/workflows/legacy';
17
17
  import type { LegacyWorkflowRuns } from '@mastra/core/storage';
18
18
  import type { Mastra } from '@mastra/core/mastra';
19
19
  import type { MastraMemory } from '@mastra/core/memory';
20
- import { Message } from 'ai';
21
- import type { Message as Message_2 } from '@mastra/core/a2a';
22
- import { MessageType } from '@mastra/core/memory';
20
+ import { MastraMessageV1 } from '@mastra/core/memory';
21
+ import type { Message } from '@mastra/core/a2a';
23
22
  import type { QueryResult } from '@mastra/core/vector';
24
23
  import { ReadableStream as ReadableStream_2 } from 'node:stream/web';
25
24
  import { RuntimeContext } from '@mastra/core/runtime-context';
@@ -28,6 +27,7 @@ import type { SerializedStepFlowEntry } from '@mastra/core/workflows';
28
27
  import { Step } from '@mastra/core/workflows';
29
28
  import { StepExecutionContext } from '@mastra/core/workflows/legacy';
30
29
  import { StepGraph } from '@mastra/core/workflows/legacy';
30
+ import { StepResult } from '@mastra/core/workflows';
31
31
  import { StorageThreadType } from '@mastra/core/memory';
32
32
  import { Task } from '@mastra/core/a2a';
33
33
  import { TaskAndHistory } from '@mastra/core/a2a';
@@ -37,6 +37,7 @@ import type { TaskQueryParams } from '@mastra/core/a2a';
37
37
  import type { TaskSendParams } from '@mastra/core/a2a';
38
38
  import type { TaskStatus } from '@mastra/core/a2a';
39
39
  import type { ToolAction } from '@mastra/core/tools';
40
+ import { UIMessage } from 'ai';
40
41
  import type { VercelTool } from '@mastra/core/tools';
41
42
  import { WatchEvent } from '@mastra/core/workflows';
42
43
  import type { Workflow } from '@mastra/core/workflows';
@@ -45,6 +46,7 @@ import { WorkflowResult } from '@mastra/core/workflows';
45
46
  import type { WorkflowRuns } from '@mastra/core/storage';
46
47
  import { ZodBoolean } from 'zod';
47
48
  import { ZodEnum } from 'zod';
49
+ import { ZodNumber } from 'zod';
48
50
  import { ZodObject } from 'zod';
49
51
  import { ZodOptional } from 'zod';
50
52
  import { ZodString } from 'zod';
@@ -87,7 +89,7 @@ export declare interface Context {
87
89
  mastra: Mastra;
88
90
  }
89
91
 
90
- export declare function convertToCoreMessage(message: Message_2): CoreMessage_2;
92
+ export declare function convertToCoreMessage(message: Message): CoreMessage_2;
91
93
 
92
94
  export declare function createErrorResponse(id: number | string | null, error: JSONRPCError<unknown>): JSONRPCResponse<null, unknown>;
93
95
 
@@ -111,8 +113,8 @@ export declare function createSuccessResponse<T>(id: number | string | null, res
111
113
 
112
114
  export declare function createTaskContext({ task, userMessage, history, activeCancellations, }: {
113
115
  task: Task;
114
- userMessage: Message_2;
115
- history: Message_2[];
116
+ userMessage: Message;
117
+ history: Message[];
116
118
  activeCancellations: Set<string>;
117
119
  }): TaskContext;
118
120
 
@@ -194,7 +196,7 @@ export declare function generateVNextNetworkHandler({ mastra, runtimeContext, ne
194
196
  task: string;
195
197
  result: string;
196
198
  resourceId: string;
197
- resourceType: "none" | "tool" | "agent" | "workflow";
199
+ resourceType: "none" | "tool" | "workflow" | "agent";
198
200
  }>;
199
201
 
200
202
  export declare function getAgentByIdHandler({ mastra, runtimeContext, agentId, }: Context & {
@@ -207,6 +209,8 @@ export declare function getAgentByIdHandler({ mastra, runtimeContext, agentId, }
207
209
  workflows: {};
208
210
  provider: string;
209
211
  modelId: string;
212
+ defaultGenerateOptions: any;
213
+ defaultStreamOptions: any;
210
214
  }>;
211
215
 
212
216
  export declare function getAgentCardByIdHandler({ mastra, agentId, executionUrl, provider, version, runtimeContext, }: Context & {
@@ -272,6 +276,13 @@ export declare function getLegacyWorkflowRunsHandler({ mastra, workflowId, fromD
272
276
 
273
277
  export declare function getLegacyWorkflowsHandler({ mastra }: WorkflowContext): Promise<any>;
274
278
 
279
+ /**
280
+ * Get available listeners for an agent
281
+ */
282
+ export declare function getListenerHandler({ mastra, agentId }: VoiceContext): Promise<{
283
+ enabled: boolean;
284
+ }>;
285
+
275
286
  export declare function getLiveEvalsByAgentIdHandler({ mastra, runtimeContext, agentId, }: Context & {
276
287
  runtimeContext: RuntimeContext;
277
288
  agentId: string;
@@ -298,7 +309,7 @@ export declare function getMessagesHandler({ mastra, agentId, threadId, limit, }
298
309
  limit?: number;
299
310
  }): Promise<{
300
311
  messages: CoreMessage[];
301
- uiMessages: Message[];
312
+ uiMessages: UIMessage[];
302
313
  }>;
303
314
 
304
315
  export declare function getNetworkByIdHandler({ mastra, networkId, runtimeContext, }: Pick<NetworkContext, 'mastra' | 'networkId' | 'runtimeContext'>): Promise<{
@@ -428,20 +439,22 @@ export declare function handleTaskGet({ requestId, taskStore, agentId, taskId, }
428
439
  taskId: string;
429
440
  }): Promise<JSONRPCResponse<TaskAndHistory, unknown>>;
430
441
 
431
- export declare function handleTaskSend({ requestId, params, taskStore, agent, logger, runtimeContext, }: {
442
+ export declare function handleTaskSend({ requestId, params, taskStore, agent, agentId, logger, runtimeContext, }: {
432
443
  requestId: string;
433
444
  params: TaskSendParams;
434
445
  taskStore: InMemoryTaskStore;
435
446
  agent: Agent;
447
+ agentId: string;
436
448
  logger?: IMastraLogger;
437
449
  runtimeContext: RuntimeContext;
438
450
  }): Promise<JSONRPCResponse<null, unknown> | JSONRPCResponse<Task, unknown>>;
439
451
 
440
- export declare function handleTaskSendSubscribe({ requestId, params, taskStore, agent, logger, runtimeContext, }: {
452
+ export declare function handleTaskSendSubscribe({ requestId, params, taskStore, agent, agentId, logger, runtimeContext, }: {
441
453
  requestId: string;
442
454
  params: TaskSendParams;
443
455
  taskStore: InMemoryTaskStore;
444
456
  agent: Agent;
457
+ agentId: string;
445
458
  logger?: IMastraLogger;
446
459
  runtimeContext: RuntimeContext;
447
460
  }): AsyncGenerator<JSONRPCResponse<null, unknown> | JSONRPCResponse<Task, unknown> | JSONRPCResponse< {
@@ -550,7 +563,7 @@ export declare function loadOrCreateTaskAndHistory({ agentId, taskId, taskStore,
550
563
  agentId: string;
551
564
  taskId: string;
552
565
  taskStore: InMemoryTaskStore;
553
- message: Message_2;
566
+ message: Message;
554
567
  sessionId?: string | null;
555
568
  metadata?: Record<string, unknown> | null;
556
569
  logger?: IMastraLogger;
@@ -570,6 +583,22 @@ declare type LogsContext = {
570
583
  runId?: string;
571
584
  };
572
585
 
586
+ export declare function loopVNextNetworkHandler({ mastra, networkId, body, runtimeContext, }: NetworkContext_2 & {
587
+ runtimeContext: RuntimeContext;
588
+ body: {
589
+ message: string;
590
+ };
591
+ }): Promise<{
592
+ status: "success";
593
+ result: {
594
+ text: string;
595
+ iteration: number;
596
+ };
597
+ steps: {
598
+ [x: string]: StepResult<any, any, any, any> | StepResult<unknown, unknown, unknown, unknown>;
599
+ };
600
+ }>;
601
+
573
602
  export declare namespace memory {
574
603
  export {
575
604
  getMemoryStatusHandler,
@@ -665,7 +694,7 @@ export declare function saveMessagesHandler({ mastra, agentId, body, }: Pick<Mem
665
694
  body: {
666
695
  messages: Parameters<MastraMemory['saveMessages']>[0]['messages'];
667
696
  };
668
- }): Promise<MessageType[]>;
697
+ }): Promise<MastraMessageV1[]>;
669
698
 
670
699
  declare type SerializedStep = {
671
700
  id: string;
@@ -717,6 +746,10 @@ export declare function storeTelemetryHandler({ mastra, body }: Context & {
717
746
  status: string;
718
747
  message: string;
719
748
  error: any;
749
+ } | {
750
+ status: string;
751
+ message: string;
752
+ traceCount?: undefined;
720
753
  } | {
721
754
  status: string;
722
755
  message: string;
@@ -753,20 +786,26 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
753
786
  prompt: ZodString;
754
787
  result: ZodString;
755
788
  isComplete: ZodOptional<ZodBoolean>;
789
+ completionReason: ZodOptional<ZodString>;
790
+ iteration: ZodNumber;
756
791
  }, "strip", ZodTypeAny, {
757
792
  prompt: string;
758
- resourceId: string;
759
793
  result: string;
794
+ resourceId: string;
760
795
  task: string;
761
- resourceType: "none" | "tool" | "agent" | "workflow";
796
+ resourceType: "none" | "tool" | "workflow" | "agent";
797
+ iteration: number;
762
798
  isComplete?: boolean | undefined;
799
+ completionReason?: string | undefined;
763
800
  }, {
764
801
  prompt: string;
765
- resourceId: string;
766
802
  result: string;
803
+ resourceId: string;
767
804
  task: string;
768
- resourceType: "none" | "tool" | "agent" | "workflow";
805
+ resourceType: "none" | "tool" | "workflow" | "agent";
806
+ iteration: number;
769
807
  isComplete?: boolean | undefined;
808
+ completionReason?: string | undefined;
770
809
  }>, Step<string, any, any, ZodType<any, ZodTypeDef, any>, ZodType<any, ZodTypeDef, any>>[]>>;
771
810
  }>;
772
811
 
@@ -883,7 +922,8 @@ export declare namespace voice {
883
922
  export {
884
923
  getSpeakersHandler,
885
924
  generateSpeechHandler,
886
- transcribeSpeechHandler
925
+ transcribeSpeechHandler,
926
+ getListenerHandler
887
927
  }
888
928
  }
889
929
 
@@ -58,7 +58,9 @@ async function getAgentsHandler({ mastra, runtimeContext }) {
58
58
  tools: serializedAgentTools,
59
59
  workflows: serializedAgentWorkflows,
60
60
  provider: llm?.getProvider(),
61
- modelId: llm?.getModelId()
61
+ modelId: llm?.getModelId(),
62
+ defaultGenerateOptions: agent.getDefaultGenerateOptions(),
63
+ defaultStreamOptions: agent.getDefaultStreamOptions()
62
64
  };
63
65
  })
64
66
  );
@@ -116,7 +118,9 @@ async function getAgentByIdHandler({
116
118
  tools: serializedAgentTools,
117
119
  workflows: serializedAgentWorkflows,
118
120
  provider: llm?.getProvider(),
119
- modelId: llm?.getModelId()
121
+ modelId: llm?.getModelId(),
122
+ defaultGenerateOptions: agent.getDefaultGenerateOptions(),
123
+ defaultStreamOptions: agent.getDefaultStreamOptions()
120
124
  };
121
125
  } catch (error) {
122
126
  return chunk64U3UDTH_cjs.handleError(error, "Error getting agent");
@@ -18,7 +18,7 @@ async function getTelemetryHandler({ mastra, body }) {
18
18
  throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Telemetry is not initialized" });
19
19
  }
20
20
  if (!storage) {
21
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Storage is not initialized" });
21
+ return [];
22
22
  }
23
23
  if (!body) {
24
24
  throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Body is required" });
@@ -49,7 +49,10 @@ async function storeTelemetryHandler({ mastra, body }) {
49
49
  const storage = mastra.getStorage();
50
50
  const logger = mastra.getLogger();
51
51
  if (!storage) {
52
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Storage is not initialized" });
52
+ return {
53
+ status: "error",
54
+ message: "Storage is not initialized"
55
+ };
53
56
  }
54
57
  const now = /* @__PURE__ */ new Date();
55
58
  const items = body?.resourceSpans?.[0]?.scopeSpans;
@@ -16,7 +16,7 @@ async function getTelemetryHandler({ mastra, body }) {
16
16
  throw new HTTPException(400, { message: "Telemetry is not initialized" });
17
17
  }
18
18
  if (!storage) {
19
- throw new HTTPException(400, { message: "Storage is not initialized" });
19
+ return [];
20
20
  }
21
21
  if (!body) {
22
22
  throw new HTTPException(400, { message: "Body is required" });
@@ -47,7 +47,10 @@ async function storeTelemetryHandler({ mastra, body }) {
47
47
  const storage = mastra.getStorage();
48
48
  const logger = mastra.getLogger();
49
49
  if (!storage) {
50
- throw new HTTPException(400, { message: "Storage is not initialized" });
50
+ return {
51
+ status: "error",
52
+ message: "Storage is not initialized"
53
+ };
51
54
  }
52
55
  const now = /* @__PURE__ */ new Date();
53
56
  const items = body?.resourceSpans?.[0]?.scopeSpans;
@@ -10,6 +10,7 @@ var stream = require('stream');
10
10
  var voice_exports = {};
11
11
  chunk75ZPJI57_cjs.__export(voice_exports, {
12
12
  generateSpeechHandler: () => generateSpeechHandler,
13
+ getListenerHandler: () => getListenerHandler,
13
14
  getSpeakersHandler: () => getSpeakersHandler,
14
15
  transcribeSpeechHandler: () => transcribeSpeechHandler
15
16
  });
@@ -87,8 +88,27 @@ async function transcribeSpeechHandler({
87
88
  return chunk64U3UDTH_cjs.handleError(error, "Error transcribing speech");
88
89
  }
89
90
  }
91
+ async function getListenerHandler({ mastra, agentId }) {
92
+ try {
93
+ if (!agentId) {
94
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Agent ID is required" });
95
+ }
96
+ const agent = mastra.getAgent(agentId);
97
+ if (!agent) {
98
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Agent not found" });
99
+ }
100
+ if (!agent.voice) {
101
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Agent does not have voice capabilities" });
102
+ }
103
+ const listeners = await agent.voice.getListener();
104
+ return listeners;
105
+ } catch (error) {
106
+ return chunk64U3UDTH_cjs.handleError(error, "Error getting listeners");
107
+ }
108
+ }
90
109
 
91
110
  exports.generateSpeechHandler = generateSpeechHandler;
111
+ exports.getListenerHandler = getListenerHandler;
92
112
  exports.getSpeakersHandler = getSpeakersHandler;
93
113
  exports.transcribeSpeechHandler = transcribeSpeechHandler;
94
114
  exports.voice_exports = voice_exports;
@@ -8,6 +8,7 @@ import { Readable } from 'stream';
8
8
  var voice_exports = {};
9
9
  __export(voice_exports, {
10
10
  generateSpeechHandler: () => generateSpeechHandler,
11
+ getListenerHandler: () => getListenerHandler,
11
12
  getSpeakersHandler: () => getSpeakersHandler,
12
13
  transcribeSpeechHandler: () => transcribeSpeechHandler
13
14
  });
@@ -85,5 +86,23 @@ async function transcribeSpeechHandler({
85
86
  return handleError(error, "Error transcribing speech");
86
87
  }
87
88
  }
89
+ async function getListenerHandler({ mastra, agentId }) {
90
+ try {
91
+ if (!agentId) {
92
+ throw new HTTPException(400, { message: "Agent ID is required" });
93
+ }
94
+ const agent = mastra.getAgent(agentId);
95
+ if (!agent) {
96
+ throw new HTTPException(404, { message: "Agent not found" });
97
+ }
98
+ if (!agent.voice) {
99
+ throw new HTTPException(400, { message: "Agent does not have voice capabilities" });
100
+ }
101
+ const listeners = await agent.voice.getListener();
102
+ return listeners;
103
+ } catch (error) {
104
+ return handleError(error, "Error getting listeners");
105
+ }
106
+ }
88
107
 
89
- export { generateSpeechHandler, getSpeakersHandler, transcribeSpeechHandler, voice_exports };
108
+ export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler, voice_exports };
@@ -37,7 +37,6 @@ async function getLogsByRunIdHandler({
37
37
  async function getLogTransports({ mastra }) {
38
38
  try {
39
39
  const logger = mastra.getLogger();
40
- console.log(logger);
41
40
  const transports = logger.getTransports();
42
41
  return {
43
42
  transports: transports ? [...transports.keys()] : []
@@ -296,11 +296,11 @@ async function handleTaskSend({
296
296
  params,
297
297
  taskStore,
298
298
  agent,
299
+ agentId,
299
300
  logger,
300
301
  runtimeContext
301
302
  }) {
302
303
  validateTaskSendParams(params);
303
- const agentId = agent.id;
304
304
  const { id: taskId, message, sessionId, metadata } = params;
305
305
  let currentData = await loadOrCreateTaskAndHistory({
306
306
  taskId,
@@ -374,6 +374,7 @@ async function* handleTaskSendSubscribe({
374
374
  params,
375
375
  taskStore,
376
376
  agent,
377
+ agentId,
377
378
  logger,
378
379
  runtimeContext
379
380
  }) {
@@ -391,6 +392,7 @@ async function* handleTaskSendSubscribe({
391
392
  params,
392
393
  taskStore,
393
394
  agent,
395
+ agentId,
394
396
  runtimeContext,
395
397
  logger
396
398
  });
@@ -455,6 +457,7 @@ async function getAgentExecutionHandler({
455
457
  params,
456
458
  taskStore,
457
459
  agent,
460
+ agentId,
458
461
  runtimeContext
459
462
  });
460
463
  return result2;
@@ -465,6 +468,7 @@ async function getAgentExecutionHandler({
465
468
  taskStore,
466
469
  params,
467
470
  agent,
471
+ agentId,
468
472
  runtimeContext
469
473
  });
470
474
  return result;
@@ -56,7 +56,9 @@ async function getAgentsHandler({ mastra, runtimeContext }) {
56
56
  tools: serializedAgentTools,
57
57
  workflows: serializedAgentWorkflows,
58
58
  provider: llm?.getProvider(),
59
- modelId: llm?.getModelId()
59
+ modelId: llm?.getModelId(),
60
+ defaultGenerateOptions: agent.getDefaultGenerateOptions(),
61
+ defaultStreamOptions: agent.getDefaultStreamOptions()
60
62
  };
61
63
  })
62
64
  );
@@ -114,7 +116,9 @@ async function getAgentByIdHandler({
114
116
  tools: serializedAgentTools,
115
117
  workflows: serializedAgentWorkflows,
116
118
  provider: llm?.getProvider(),
117
- modelId: llm?.getModelId()
119
+ modelId: llm?.getModelId(),
120
+ defaultGenerateOptions: agent.getDefaultGenerateOptions(),
121
+ defaultStreamOptions: agent.getDefaultStreamOptions()
118
122
  };
119
123
  } catch (error) {
120
124
  return handleError(error, "Error getting agent");
@@ -39,7 +39,6 @@ async function getLogsByRunIdHandler({
39
39
  async function getLogTransports({ mastra }) {
40
40
  try {
41
41
  const logger = mastra.getLogger();
42
- console.log(logger);
43
42
  const transports = logger.getTransports();
44
43
  return {
45
44
  transports: transports ? [...transports.keys()] : []
@@ -298,11 +298,11 @@ async function handleTaskSend({
298
298
  params,
299
299
  taskStore,
300
300
  agent,
301
+ agentId,
301
302
  logger,
302
303
  runtimeContext
303
304
  }) {
304
305
  validateTaskSendParams(params);
305
- const agentId = agent.id;
306
306
  const { id: taskId, message, sessionId, metadata } = params;
307
307
  let currentData = await loadOrCreateTaskAndHistory({
308
308
  taskId,
@@ -376,6 +376,7 @@ async function* handleTaskSendSubscribe({
376
376
  params,
377
377
  taskStore,
378
378
  agent,
379
+ agentId,
379
380
  logger,
380
381
  runtimeContext
381
382
  }) {
@@ -393,6 +394,7 @@ async function* handleTaskSendSubscribe({
393
394
  params,
394
395
  taskStore,
395
396
  agent,
397
+ agentId,
396
398
  runtimeContext,
397
399
  logger
398
400
  });
@@ -457,6 +459,7 @@ async function getAgentExecutionHandler({
457
459
  params,
458
460
  taskStore,
459
461
  agent,
462
+ agentId,
460
463
  runtimeContext
461
464
  });
462
465
  return result2;
@@ -467,6 +470,7 @@ async function getAgentExecutionHandler({
467
470
  taskStore,
468
471
  params,
469
472
  agent,
473
+ agentId,
470
474
  runtimeContext
471
475
  });
472
476
  return result;
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunk5SN4U5AC_cjs = require('../../chunk-5SN4U5AC.cjs');
3
+ var chunkSDPGVWQJ_cjs = require('../../chunk-SDPGVWQJ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "getAgentCardByIdHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunk5SN4U5AC_cjs.getAgentCardByIdHandler; }
9
+ get: function () { return chunkSDPGVWQJ_cjs.getAgentCardByIdHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getAgentExecutionHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk5SN4U5AC_cjs.getAgentExecutionHandler; }
13
+ get: function () { return chunkSDPGVWQJ_cjs.getAgentExecutionHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "handleTaskCancel", {
16
16
  enumerable: true,
17
- get: function () { return chunk5SN4U5AC_cjs.handleTaskCancel; }
17
+ get: function () { return chunkSDPGVWQJ_cjs.handleTaskCancel; }
18
18
  });
19
19
  Object.defineProperty(exports, "handleTaskGet", {
20
20
  enumerable: true,
21
- get: function () { return chunk5SN4U5AC_cjs.handleTaskGet; }
21
+ get: function () { return chunkSDPGVWQJ_cjs.handleTaskGet; }
22
22
  });
23
23
  Object.defineProperty(exports, "handleTaskSend", {
24
24
  enumerable: true,
25
- get: function () { return chunk5SN4U5AC_cjs.handleTaskSend; }
25
+ get: function () { return chunkSDPGVWQJ_cjs.handleTaskSend; }
26
26
  });
27
27
  Object.defineProperty(exports, "handleTaskSendSubscribe", {
28
28
  enumerable: true,
29
- get: function () { return chunk5SN4U5AC_cjs.handleTaskSendSubscribe; }
29
+ get: function () { return chunkSDPGVWQJ_cjs.handleTaskSendSubscribe; }
30
30
  });
@@ -1 +1 @@
1
- export { getAgentCardByIdHandler, getAgentExecutionHandler, handleTaskCancel, handleTaskGet, handleTaskSend, handleTaskSendSubscribe } from '../../chunk-P6SCPDYW.js';
1
+ export { getAgentCardByIdHandler, getAgentExecutionHandler, handleTaskCancel, handleTaskGet, handleTaskSend, handleTaskSendSubscribe } from '../../chunk-GHC4YV6R.js';
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunkD4IRYCUI_cjs = require('../../chunk-D4IRYCUI.cjs');
3
+ var chunkA3KDUGS7_cjs = require('../../chunk-A3KDUGS7.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkD4IRYCUI_cjs.generateHandler; }
9
+ get: function () { return chunkA3KDUGS7_cjs.generateHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getAgentByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkD4IRYCUI_cjs.getAgentByIdHandler; }
13
+ get: function () { return chunkA3KDUGS7_cjs.getAgentByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getAgentsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkD4IRYCUI_cjs.getAgentsHandler; }
17
+ get: function () { return chunkA3KDUGS7_cjs.getAgentsHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getEvalsByAgentIdHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkD4IRYCUI_cjs.getEvalsByAgentIdHandler; }
21
+ get: function () { return chunkA3KDUGS7_cjs.getEvalsByAgentIdHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getLiveEvalsByAgentIdHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunkD4IRYCUI_cjs.getLiveEvalsByAgentIdHandler; }
25
+ get: function () { return chunkA3KDUGS7_cjs.getLiveEvalsByAgentIdHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "streamGenerateHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunkD4IRYCUI_cjs.streamGenerateHandler; }
29
+ get: function () { return chunkA3KDUGS7_cjs.streamGenerateHandler; }
30
30
  });
@@ -1 +1 @@
1
- export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-WUC6LSTW.js';
1
+ export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-J3PKLB3A.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunk7DLZLWJV_cjs = require('../../chunk-7DLZLWJV.cjs');
3
+ var chunkNEOOQUKW_cjs = require('../../chunk-NEOOQUKW.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "getLogTransports", {
8
8
  enumerable: true,
9
- get: function () { return chunk7DLZLWJV_cjs.getLogTransports; }
9
+ get: function () { return chunkNEOOQUKW_cjs.getLogTransports; }
10
10
  });
11
11
  Object.defineProperty(exports, "getLogsByRunIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk7DLZLWJV_cjs.getLogsByRunIdHandler; }
13
+ get: function () { return chunkNEOOQUKW_cjs.getLogsByRunIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getLogsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunk7DLZLWJV_cjs.getLogsHandler; }
17
+ get: function () { return chunkNEOOQUKW_cjs.getLogsHandler; }
18
18
  });
@@ -1 +1 @@
1
- export { getLogTransports, getLogsByRunIdHandler, getLogsHandler } from '../../chunk-WFBJJNCK.js';
1
+ export { getLogTransports, getLogsByRunIdHandler, getLogsHandler } from '../../chunk-DQLE3DVM.js';
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkMHKNLNAN_cjs = require('../../chunk-MHKNLNAN.cjs');
3
+ var chunkB4MQFJ7G_cjs = require('../../chunk-B4MQFJ7G.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "getTelemetryHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkMHKNLNAN_cjs.getTelemetryHandler; }
9
+ get: function () { return chunkB4MQFJ7G_cjs.getTelemetryHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "storeTelemetryHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkMHKNLNAN_cjs.storeTelemetryHandler; }
13
+ get: function () { return chunkB4MQFJ7G_cjs.storeTelemetryHandler; }
14
14
  });
@@ -1 +1 @@
1
- export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-OR3CIE2H.js';
1
+ export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-BFOA2QQY.js';
@@ -144,8 +144,30 @@ async function streamGenerateVNextNetworkHandler({
144
144
  return chunk64U3UDTH_cjs.handleError(error, "Error streaming from network");
145
145
  }
146
146
  }
147
+ async function loopVNextNetworkHandler({
148
+ mastra,
149
+ networkId,
150
+ body,
151
+ runtimeContext
152
+ }) {
153
+ try {
154
+ const network = mastra.vnext_getNetwork(networkId);
155
+ if (!network) {
156
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Network not found" });
157
+ }
158
+ chunk57CJTIPW_cjs.validateBody({ message: body.message });
159
+ const { message } = body;
160
+ const result = await network.loop(message, {
161
+ runtimeContext
162
+ });
163
+ return result;
164
+ } catch (error) {
165
+ return chunk64U3UDTH_cjs.handleError(error, "Error streaming from network");
166
+ }
167
+ }
147
168
 
148
169
  exports.generateVNextNetworkHandler = generateVNextNetworkHandler;
149
170
  exports.getVNextNetworkByIdHandler = getVNextNetworkByIdHandler;
150
171
  exports.getVNextNetworksHandler = getVNextNetworksHandler;
172
+ exports.loopVNextNetworkHandler = loopVNextNetworkHandler;
151
173
  exports.streamGenerateVNextNetworkHandler = streamGenerateVNextNetworkHandler;
@@ -2,3 +2,4 @@ export { getVNextNetworksHandler } from '../../_tsup-dts-rollup.cjs';
2
2
  export { getVNextNetworkByIdHandler } from '../../_tsup-dts-rollup.cjs';
3
3
  export { generateVNextNetworkHandler } from '../../_tsup-dts-rollup.cjs';
4
4
  export { streamGenerateVNextNetworkHandler } from '../../_tsup-dts-rollup.cjs';
5
+ export { loopVNextNetworkHandler } from '../../_tsup-dts-rollup.cjs';
@@ -2,3 +2,4 @@ export { getVNextNetworksHandler } from '../../_tsup-dts-rollup.js';
2
2
  export { getVNextNetworkByIdHandler } from '../../_tsup-dts-rollup.js';
3
3
  export { generateVNextNetworkHandler } from '../../_tsup-dts-rollup.js';
4
4
  export { streamGenerateVNextNetworkHandler } from '../../_tsup-dts-rollup.js';
5
+ export { loopVNextNetworkHandler } from '../../_tsup-dts-rollup.js';
@@ -142,5 +142,26 @@ async function streamGenerateVNextNetworkHandler({
142
142
  return handleError(error, "Error streaming from network");
143
143
  }
144
144
  }
145
+ async function loopVNextNetworkHandler({
146
+ mastra,
147
+ networkId,
148
+ body,
149
+ runtimeContext
150
+ }) {
151
+ try {
152
+ const network = mastra.vnext_getNetwork(networkId);
153
+ if (!network) {
154
+ throw new HTTPException(404, { message: "Network not found" });
155
+ }
156
+ validateBody({ message: body.message });
157
+ const { message } = body;
158
+ const result = await network.loop(message, {
159
+ runtimeContext
160
+ });
161
+ return result;
162
+ } catch (error) {
163
+ return handleError(error, "Error streaming from network");
164
+ }
165
+ }
145
166
 
146
- export { generateVNextNetworkHandler, getVNextNetworkByIdHandler, getVNextNetworksHandler, streamGenerateVNextNetworkHandler };
167
+ export { generateVNextNetworkHandler, getVNextNetworkByIdHandler, getVNextNetworksHandler, loopVNextNetworkHandler, streamGenerateVNextNetworkHandler };
@@ -1,18 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkYBVOQN4M_cjs = require('../../chunk-YBVOQN4M.cjs');
3
+ var chunkCMMOIUFC_cjs = require('../../chunk-CMMOIUFC.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateSpeechHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkYBVOQN4M_cjs.generateSpeechHandler; }
9
+ get: function () { return chunkCMMOIUFC_cjs.generateSpeechHandler; }
10
+ });
11
+ Object.defineProperty(exports, "getListenerHandler", {
12
+ enumerable: true,
13
+ get: function () { return chunkCMMOIUFC_cjs.getListenerHandler; }
10
14
  });
11
15
  Object.defineProperty(exports, "getSpeakersHandler", {
12
16
  enumerable: true,
13
- get: function () { return chunkYBVOQN4M_cjs.getSpeakersHandler; }
17
+ get: function () { return chunkCMMOIUFC_cjs.getSpeakersHandler; }
14
18
  });
15
19
  Object.defineProperty(exports, "transcribeSpeechHandler", {
16
20
  enumerable: true,
17
- get: function () { return chunkYBVOQN4M_cjs.transcribeSpeechHandler; }
21
+ get: function () { return chunkCMMOIUFC_cjs.transcribeSpeechHandler; }
18
22
  });
@@ -1,3 +1,4 @@
1
1
  export { getSpeakersHandler } from '../../_tsup-dts-rollup.cjs';
2
2
  export { generateSpeechHandler } from '../../_tsup-dts-rollup.cjs';
3
3
  export { transcribeSpeechHandler } from '../../_tsup-dts-rollup.cjs';
4
+ export { getListenerHandler } from '../../_tsup-dts-rollup.cjs';
@@ -1,3 +1,4 @@
1
1
  export { getSpeakersHandler } from '../../_tsup-dts-rollup.js';
2
2
  export { generateSpeechHandler } from '../../_tsup-dts-rollup.js';
3
3
  export { transcribeSpeechHandler } from '../../_tsup-dts-rollup.js';
4
+ export { getListenerHandler } from '../../_tsup-dts-rollup.js';
@@ -1 +1 @@
1
- export { generateSpeechHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-HFWCEP5S.js';
1
+ export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-CP55EVBK.js';
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkVPNDC2DI_cjs = require('../chunk-VPNDC2DI.cjs');
4
- var chunkMHKNLNAN_cjs = require('../chunk-MHKNLNAN.cjs');
4
+ var chunkB4MQFJ7G_cjs = require('../chunk-B4MQFJ7G.cjs');
5
5
  var chunkZE5AAC4I_cjs = require('../chunk-ZE5AAC4I.cjs');
6
6
  var chunkBNEY4P4P_cjs = require('../chunk-BNEY4P4P.cjs');
7
- var chunkYBVOQN4M_cjs = require('../chunk-YBVOQN4M.cjs');
7
+ var chunkCMMOIUFC_cjs = require('../chunk-CMMOIUFC.cjs');
8
8
  var chunkMMO2HDM6_cjs = require('../chunk-MMO2HDM6.cjs');
9
- var chunk5SN4U5AC_cjs = require('../chunk-5SN4U5AC.cjs');
10
- var chunkD4IRYCUI_cjs = require('../chunk-D4IRYCUI.cjs');
9
+ var chunkSDPGVWQJ_cjs = require('../chunk-SDPGVWQJ.cjs');
10
+ var chunkA3KDUGS7_cjs = require('../chunk-A3KDUGS7.cjs');
11
11
  var chunkYIOVBYZH_cjs = require('../chunk-YIOVBYZH.cjs');
12
- var chunk7DLZLWJV_cjs = require('../chunk-7DLZLWJV.cjs');
12
+ var chunkNEOOQUKW_cjs = require('../chunk-NEOOQUKW.cjs');
13
13
  var chunkY7UWRW5X_cjs = require('../chunk-Y7UWRW5X.cjs');
14
14
 
15
15
 
@@ -20,7 +20,7 @@ Object.defineProperty(exports, "network", {
20
20
  });
21
21
  Object.defineProperty(exports, "telemetry", {
22
22
  enumerable: true,
23
- get: function () { return chunkMHKNLNAN_cjs.telemetry_exports; }
23
+ get: function () { return chunkB4MQFJ7G_cjs.telemetry_exports; }
24
24
  });
25
25
  Object.defineProperty(exports, "tools", {
26
26
  enumerable: true,
@@ -32,7 +32,7 @@ Object.defineProperty(exports, "vector", {
32
32
  });
33
33
  Object.defineProperty(exports, "voice", {
34
34
  enumerable: true,
35
- get: function () { return chunkYBVOQN4M_cjs.voice_exports; }
35
+ get: function () { return chunkCMMOIUFC_cjs.voice_exports; }
36
36
  });
37
37
  Object.defineProperty(exports, "workflows", {
38
38
  enumerable: true,
@@ -40,11 +40,11 @@ Object.defineProperty(exports, "workflows", {
40
40
  });
41
41
  Object.defineProperty(exports, "a2a", {
42
42
  enumerable: true,
43
- get: function () { return chunk5SN4U5AC_cjs.a2a_exports; }
43
+ get: function () { return chunkSDPGVWQJ_cjs.a2a_exports; }
44
44
  });
45
45
  Object.defineProperty(exports, "agents", {
46
46
  enumerable: true,
47
- get: function () { return chunkD4IRYCUI_cjs.agents_exports; }
47
+ get: function () { return chunkA3KDUGS7_cjs.agents_exports; }
48
48
  });
49
49
  Object.defineProperty(exports, "legacyWorkflows", {
50
50
  enumerable: true,
@@ -52,7 +52,7 @@ Object.defineProperty(exports, "legacyWorkflows", {
52
52
  });
53
53
  Object.defineProperty(exports, "logs", {
54
54
  enumerable: true,
55
- get: function () { return chunk7DLZLWJV_cjs.logs_exports; }
55
+ get: function () { return chunkNEOOQUKW_cjs.logs_exports; }
56
56
  });
57
57
  Object.defineProperty(exports, "memory", {
58
58
  enumerable: true,
@@ -1,11 +1,11 @@
1
1
  export { network_exports as network } from '../chunk-C7564HUT.js';
2
- export { telemetry_exports as telemetry } from '../chunk-OR3CIE2H.js';
2
+ export { telemetry_exports as telemetry } from '../chunk-BFOA2QQY.js';
3
3
  export { tools_exports as tools } from '../chunk-TJKLBTFB.js';
4
4
  export { vector_exports as vector } from '../chunk-55DOQLP6.js';
5
- export { voice_exports as voice } from '../chunk-HFWCEP5S.js';
5
+ export { voice_exports as voice } from '../chunk-CP55EVBK.js';
6
6
  export { workflows_exports as workflows } from '../chunk-KUNQFY2W.js';
7
- export { a2a_exports as a2a } from '../chunk-P6SCPDYW.js';
8
- export { agents_exports as agents } from '../chunk-WUC6LSTW.js';
7
+ export { a2a_exports as a2a } from '../chunk-GHC4YV6R.js';
8
+ export { agents_exports as agents } from '../chunk-J3PKLB3A.js';
9
9
  export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-W7VCKPAD.js';
10
- export { logs_exports as logs } from '../chunk-WFBJJNCK.js';
10
+ export { logs_exports as logs } from '../chunk-DQLE3DVM.js';
11
11
  export { memory_exports as memory } from '../chunk-DJJIUEL2.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.0.0-vnextAgentNetwork-20250602084555",
3
+ "version": "0.0.0-vnextAgentNetwork-20250602134426",
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.10.0",
49
+ "@mastra/core": "^0.10.2-alpha.0",
50
50
  "zod": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
@@ -60,8 +60,8 @@
60
60
  "vitest": "^2.1.9",
61
61
  "zod": "^3.24.3",
62
62
  "zod-to-json-schema": "^3.24.5",
63
- "@internal/lint": "0.0.0-vnextAgentNetwork-20250602084555",
64
- "@mastra/core": "0.0.0-vnextAgentNetwork-20250602084555"
63
+ "@internal/lint": "0.0.0-vnextAgentNetwork-20250602134426",
64
+ "@mastra/core": "0.0.0-vnextAgentNetwork-20250602134426"
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",