@mastra/server 1.34.0-alpha.2 → 1.34.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/_types/@internal_core/dist/index.d.ts +2 -2
  3. package/dist/{api-schema-manifest-ARDWBAEX.js → api-schema-manifest-ONJGSFU6.js} +3 -3
  4. package/dist/{api-schema-manifest-ARDWBAEX.js.map → api-schema-manifest-ONJGSFU6.js.map} +1 -1
  5. package/dist/{api-schema-manifest-5NSXA7KL.cjs → api-schema-manifest-RW2XKWHV.cjs} +4 -4
  6. package/dist/{api-schema-manifest-5NSXA7KL.cjs.map → api-schema-manifest-RW2XKWHV.cjs.map} +1 -1
  7. package/dist/{chunk-ESNUQDZF.js → chunk-3LMGA7MG.js} +3 -3
  8. package/dist/{chunk-ESNUQDZF.js.map → chunk-3LMGA7MG.js.map} +1 -1
  9. package/dist/{chunk-X5A2TL4J.js → chunk-3PY3QBC7.js} +19 -3
  10. package/dist/chunk-3PY3QBC7.js.map +1 -0
  11. package/dist/{chunk-2J4KEVXS.cjs → chunk-42NUNMRC.cjs} +4 -2
  12. package/dist/chunk-42NUNMRC.cjs.map +1 -0
  13. package/dist/{chunk-NF5SYJHK.js → chunk-5HICERRG.js} +4 -3
  14. package/dist/chunk-5HICERRG.js.map +1 -0
  15. package/dist/{chunk-ARZYMGWI.js → chunk-6WVLPY55.js} +3 -3
  16. package/dist/{chunk-ARZYMGWI.js.map → chunk-6WVLPY55.js.map} +1 -1
  17. package/dist/{chunk-F6H72YS6.cjs → chunk-AJEJDKPH.cjs} +71 -41
  18. package/dist/chunk-AJEJDKPH.cjs.map +1 -0
  19. package/dist/{chunk-OM7O4X4K.cjs → chunk-EAK4XE4C.cjs} +7 -7
  20. package/dist/{chunk-OM7O4X4K.cjs.map → chunk-EAK4XE4C.cjs.map} +1 -1
  21. package/dist/{chunk-E6XT4Z7T.cjs → chunk-FTU4TI4A.cjs} +106 -90
  22. package/dist/chunk-FTU4TI4A.cjs.map +1 -0
  23. package/dist/{chunk-4ZBKW547.cjs → chunk-FXOO4Y2Q.cjs} +3 -3
  24. package/dist/{chunk-4ZBKW547.cjs.map → chunk-FXOO4Y2Q.cjs.map} +1 -1
  25. package/dist/{chunk-EQUOHUYY.js → chunk-HPSSFPDP.js} +3 -2
  26. package/dist/chunk-HPSSFPDP.js.map +1 -0
  27. package/dist/{chunk-NGPXVSJ7.cjs → chunk-I7TANA3T.cjs} +17 -17
  28. package/dist/{chunk-NGPXVSJ7.cjs.map → chunk-I7TANA3T.cjs.map} +1 -1
  29. package/dist/{chunk-WZZD4CIN.cjs → chunk-IGIN7S7J.cjs} +4 -4
  30. package/dist/{chunk-WZZD4CIN.cjs.map → chunk-IGIN7S7J.cjs.map} +1 -1
  31. package/dist/{chunk-2QWKN424.js → chunk-KVUAUYOV.js} +3 -3
  32. package/dist/{chunk-2QWKN424.js.map → chunk-KVUAUYOV.js.map} +1 -1
  33. package/dist/{chunk-GBOLSZL6.js → chunk-MFNDUYSI.js} +3 -3
  34. package/dist/{chunk-GBOLSZL6.js.map → chunk-MFNDUYSI.js.map} +1 -1
  35. package/dist/{chunk-VAHE45RB.cjs → chunk-NBJTFFVY.cjs} +25 -25
  36. package/dist/{chunk-VAHE45RB.cjs.map → chunk-NBJTFFVY.cjs.map} +1 -1
  37. package/dist/{chunk-JK2VEZXY.js → chunk-NC5OJJ7J.js} +14 -13
  38. package/dist/chunk-NC5OJJ7J.js.map +1 -0
  39. package/dist/{chunk-XHP3PYRC.js → chunk-PQBLAVC3.js} +3 -3
  40. package/dist/{chunk-XHP3PYRC.js.map → chunk-PQBLAVC3.js.map} +1 -1
  41. package/dist/{chunk-4PIY7NPG.cjs → chunk-PSKJOI66.cjs} +4 -4
  42. package/dist/chunk-PSKJOI66.cjs.map +1 -0
  43. package/dist/{chunk-OPPDUZUL.cjs → chunk-Q4UAJHCH.cjs} +4 -4
  44. package/dist/{chunk-OPPDUZUL.cjs.map → chunk-Q4UAJHCH.cjs.map} +1 -1
  45. package/dist/{chunk-5TAWDJH2.js → chunk-Q5GKSNJQ.js} +4 -4
  46. package/dist/chunk-Q5GKSNJQ.js.map +1 -0
  47. package/dist/{chunk-YYOGSRHT.cjs → chunk-QZFOSTJU.cjs} +3 -2
  48. package/dist/chunk-QZFOSTJU.cjs.map +1 -0
  49. package/dist/{chunk-2NXLZIJF.cjs → chunk-SCGVY5IZ.cjs} +4 -4
  50. package/dist/{chunk-2NXLZIJF.cjs.map → chunk-SCGVY5IZ.cjs.map} +1 -1
  51. package/dist/{chunk-ABVH7BW4.js → chunk-USEYAK7Q.js} +39 -10
  52. package/dist/chunk-USEYAK7Q.js.map +1 -0
  53. package/dist/{chunk-LEU5TVX5.js → chunk-XDG66XR6.js} +4 -4
  54. package/dist/{chunk-LEU5TVX5.js.map → chunk-XDG66XR6.js.map} +1 -1
  55. package/dist/{chunk-TANPK7GG.cjs → chunk-XHDRHNLP.cjs} +129 -128
  56. package/dist/chunk-XHDRHNLP.cjs.map +1 -0
  57. package/dist/{chunk-FWN6TFXW.cjs → chunk-XHPHVJYC.cjs} +24 -24
  58. package/dist/{chunk-FWN6TFXW.cjs.map → chunk-XHPHVJYC.cjs.map} +1 -1
  59. package/dist/{chunk-WHOV7Q57.js → chunk-XIK72ACQ.js} +3 -3
  60. package/dist/{chunk-WHOV7Q57.js.map → chunk-XIK72ACQ.js.map} +1 -1
  61. package/dist/{chunk-EOUFX3SP.js → chunk-YUF2UULB.js} +4 -4
  62. package/dist/{chunk-EOUFX3SP.js.map → chunk-YUF2UULB.js.map} +1 -1
  63. package/dist/{chunk-PEDOEIWP.cjs → chunk-ZFWY6K7L.cjs} +5 -5
  64. package/dist/{chunk-PEDOEIWP.cjs.map → chunk-ZFWY6K7L.cjs.map} +1 -1
  65. package/dist/{chunk-ZMH2QD3D.js → chunk-ZGS4PKNB.js} +4 -4
  66. package/dist/{chunk-ZMH2QD3D.js.map → chunk-ZGS4PKNB.js.map} +1 -1
  67. package/dist/docs/SKILL.md +1 -1
  68. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  69. package/dist/server/handlers/a2a.cjs +14 -14
  70. package/dist/server/handlers/a2a.js +1 -1
  71. package/dist/server/handlers/agent-builder.cjs +16 -16
  72. package/dist/server/handlers/agent-builder.js +1 -1
  73. package/dist/server/handlers/agents.cjs +41 -41
  74. package/dist/server/handlers/agents.d.ts +5 -0
  75. package/dist/server/handlers/agents.d.ts.map +1 -1
  76. package/dist/server/handlers/agents.js +1 -1
  77. package/dist/server/handlers/conversations.cjs +5 -5
  78. package/dist/server/handlers/conversations.js +1 -1
  79. package/dist/server/handlers/observability-new-endpoints.cjs +28 -28
  80. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  81. package/dist/server/handlers/observability-storage-schemas.cjs +10 -6
  82. package/dist/server/handlers/observability-storage-schemas.d.ts +1 -0
  83. package/dist/server/handlers/observability-storage-schemas.d.ts.map +1 -1
  84. package/dist/server/handlers/observability-storage-schemas.js +1 -1
  85. package/dist/server/handlers/observability.cjs +42 -38
  86. package/dist/server/handlers/observability.d.ts +4 -0
  87. package/dist/server/handlers/observability.d.ts.map +1 -1
  88. package/dist/server/handlers/observability.js +2 -2
  89. package/dist/server/handlers/responses.cjs +4 -4
  90. package/dist/server/handlers/responses.js +1 -1
  91. package/dist/server/handlers/scores.cjs +7 -7
  92. package/dist/server/handlers/scores.js +1 -1
  93. package/dist/server/handlers/system.cjs +3 -3
  94. package/dist/server/handlers/system.js +1 -1
  95. package/dist/server/handlers/tools.cjs +6 -6
  96. package/dist/server/handlers/tools.js +1 -1
  97. package/dist/server/handlers/voice.cjs +8 -8
  98. package/dist/server/handlers/voice.js +1 -1
  99. package/dist/server/handlers/workflows.cjs +26 -26
  100. package/dist/server/handlers/workflows.js +1 -1
  101. package/dist/server/handlers.cjs +20 -20
  102. package/dist/server/handlers.js +10 -10
  103. package/dist/server/schemas/agents.d.ts +3 -0
  104. package/dist/server/schemas/agents.d.ts.map +1 -1
  105. package/dist/server/schemas/index.cjs +48 -48
  106. package/dist/server/schemas/index.js +1 -1
  107. package/dist/server/server-adapter/index.cjs +10 -10
  108. package/dist/server/server-adapter/index.js +2 -2
  109. package/dist/server/server-adapter/routes/observability.d.ts +2 -0
  110. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  111. package/package.json +4 -4
  112. package/dist/chunk-2J4KEVXS.cjs.map +0 -1
  113. package/dist/chunk-4PIY7NPG.cjs.map +0 -1
  114. package/dist/chunk-5TAWDJH2.js.map +0 -1
  115. package/dist/chunk-ABVH7BW4.js.map +0 -1
  116. package/dist/chunk-E6XT4Z7T.cjs.map +0 -1
  117. package/dist/chunk-EQUOHUYY.js.map +0 -1
  118. package/dist/chunk-F6H72YS6.cjs.map +0 -1
  119. package/dist/chunk-JK2VEZXY.js.map +0 -1
  120. package/dist/chunk-NF5SYJHK.js.map +0 -1
  121. package/dist/chunk-TANPK7GG.cjs.map +0 -1
  122. package/dist/chunk-X5A2TL4J.js.map +0 -1
  123. package/dist/chunk-YYOGSRHT.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkHXICAUTW_cjs = require('./chunk-HXICAUTW.cjs');
4
- var chunkYYOGSRHT_cjs = require('./chunk-YYOGSRHT.cjs');
4
+ var chunkQZFOSTJU_cjs = require('./chunk-QZFOSTJU.cjs');
5
5
  var chunkLTYRUL3Q_cjs = require('./chunk-LTYRUL3Q.cjs');
6
6
  var chunk72W42JL4_cjs = require('./chunk-72W42JL4.cjs');
7
7
  var chunkL4M23OMB_cjs = require('./chunk-L4M23OMB.cjs');
@@ -311,6 +311,13 @@ async function formatAgentList({
311
311
  }) {
312
312
  const logger = mastra.getLogger();
313
313
  const description = agent.getDescription();
314
+ let metadata;
315
+ if (typeof agent.getMetadata === "function") {
316
+ try {
317
+ metadata = await agent.getMetadata({ requestContext });
318
+ } catch {
319
+ }
320
+ }
314
321
  let instructions;
315
322
  try {
316
323
  instructions = await agent.getInstructions({ requestContext });
@@ -412,6 +419,7 @@ async function formatAgentList({
412
419
  id: agent.id || id,
413
420
  name: agent.name,
414
421
  description,
422
+ metadata,
415
423
  instructions,
416
424
  agents: serializedAgentAgents,
417
425
  tools: serializedAgentTools,
@@ -515,6 +523,13 @@ async function formatAgent({
515
523
  isStudio
516
524
  }) {
517
525
  const description = agent.getDescription();
526
+ let metadata;
527
+ if (typeof agent.getMetadata === "function") {
528
+ try {
529
+ metadata = await agent.getMetadata({ requestContext });
530
+ } catch {
531
+ }
532
+ }
518
533
  const tools = await agent.listTools({ requestContext });
519
534
  const serializedAgentTools = await getSerializedAgentTools(tools);
520
535
  let serializedAgentWorkflows = {};
@@ -606,6 +621,7 @@ async function formatAgent({
606
621
  return {
607
622
  name: agent.name,
608
623
  description,
624
+ metadata,
609
625
  instructions,
610
626
  tools: serializedAgentTools,
611
627
  agents: serializedAgentAgents,
@@ -635,7 +651,7 @@ var LIST_AGENTS_ROUTE = chunkQO4NGLIB_cjs.createRoute({
635
651
  queryParamSchema: v4.z.object({
636
652
  partial: v4.z.string().optional()
637
653
  }),
638
- responseSchema: chunkYYOGSRHT_cjs.listAgentsResponseSchema,
654
+ responseSchema: chunkQZFOSTJU_cjs.listAgentsResponseSchema,
639
655
  summary: "List all agents",
640
656
  description: "Returns a list of all available agents in the system (both code-defined and stored)",
641
657
  tags: ["Agents"],
@@ -731,9 +747,9 @@ var GET_AGENT_BY_ID_ROUTE = chunkQO4NGLIB_cjs.createRoute({
731
747
  method: "GET",
732
748
  path: "/agents/:agentId",
733
749
  responseType: "json",
734
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
735
- queryParamSchema: chunkYYOGSRHT_cjs.agentVersionQuerySchema,
736
- responseSchema: chunkYYOGSRHT_cjs.serializedAgentSchema,
750
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
751
+ queryParamSchema: chunkQZFOSTJU_cjs.agentVersionQuerySchema,
752
+ responseSchema: chunkQZFOSTJU_cjs.serializedAgentSchema,
737
753
  summary: "Get agent by ID",
738
754
  description: "Returns details for a specific agent including configuration, tools, and memory settings. Use query params to control which stored config version is used for overrides: ?status=published (active version, default), ?status=draft (latest draft), or ?versionId=<id> (specific version). Use either status or versionId, not both.",
739
755
  tags: ["Agents"],
@@ -761,7 +777,7 @@ var CLONE_AGENT_ROUTE = chunkQO4NGLIB_cjs.createRoute({
761
777
  method: "POST",
762
778
  path: "/agents/:agentId/clone",
763
779
  responseType: "json",
764
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
780
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
765
781
  bodySchema: v4.z.object({
766
782
  newId: v4.z.string().optional().describe("ID for the cloned agent. If not provided, derived from agent ID."),
767
783
  newName: v4.z.string().optional().describe('Name for the cloned agent. Defaults to "{name} (Clone)".'),
@@ -802,9 +818,9 @@ var GENERATE_AGENT_ROUTE = chunkQO4NGLIB_cjs.createRoute({
802
818
  method: "POST",
803
819
  path: "/agents/:agentId/generate",
804
820
  responseType: "json",
805
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
806
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionBodySchema,
807
- responseSchema: chunkYYOGSRHT_cjs.generateResponseSchema,
821
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
822
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionBodySchema,
823
+ responseSchema: chunkQZFOSTJU_cjs.generateResponseSchema,
808
824
  summary: "Generate agent response",
809
825
  description: "Executes an agent with the provided messages and returns the complete response",
810
826
  tags: ["Agents"],
@@ -871,9 +887,9 @@ var GENERATE_LEGACY_ROUTE = chunkQO4NGLIB_cjs.createRoute({
871
887
  method: "POST",
872
888
  path: "/agents/:agentId/generate-legacy",
873
889
  responseType: "json",
874
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
875
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionLegacyBodySchema,
876
- responseSchema: chunkYYOGSRHT_cjs.generateResponseSchema,
890
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
891
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionLegacyBodySchema,
892
+ responseSchema: chunkQZFOSTJU_cjs.generateResponseSchema,
877
893
  summary: "[DEPRECATED] Generate with legacy format",
878
894
  description: "Legacy endpoint for generating agent responses. Use /agents/:agentId/generate instead.",
879
895
  tags: ["Agents", "Legacy"],
@@ -927,9 +943,9 @@ var STREAM_GENERATE_LEGACY_ROUTE = chunkQO4NGLIB_cjs.createRoute({
927
943
  method: "POST",
928
944
  path: "/agents/:agentId/stream-legacy",
929
945
  responseType: "datastream-response",
930
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
931
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionLegacyBodySchema,
932
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
946
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
947
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionLegacyBodySchema,
948
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
933
949
  summary: "[DEPRECATED] Stream with legacy format",
934
950
  description: "Legacy endpoint for streaming agent responses. Use /agents/:agentId/stream instead.",
935
951
  tags: ["Agents", "Legacy"],
@@ -990,7 +1006,7 @@ var GET_PROVIDERS_ROUTE = chunkQO4NGLIB_cjs.createRoute({
990
1006
  method: "GET",
991
1007
  path: "/agents/providers",
992
1008
  responseType: "json",
993
- responseSchema: chunkYYOGSRHT_cjs.providersResponseSchema,
1009
+ responseSchema: chunkQZFOSTJU_cjs.providersResponseSchema,
994
1010
  summary: "List AI providers",
995
1011
  description: "Returns a list of all configured AI model providers",
996
1012
  tags: ["Agents"],
@@ -1040,9 +1056,9 @@ var GENERATE_AGENT_VNEXT_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1040
1056
  method: "POST",
1041
1057
  path: "/agents/:agentId/generate/vnext",
1042
1058
  responseType: "json",
1043
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1044
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionBodySchema,
1045
- responseSchema: chunkYYOGSRHT_cjs.generateResponseSchema,
1059
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1060
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionBodySchema,
1061
+ responseSchema: chunkQZFOSTJU_cjs.generateResponseSchema,
1046
1062
  summary: "Generate a response from an agent",
1047
1063
  description: "Generate a response from an agent",
1048
1064
  tags: ["Agents"],
@@ -1054,9 +1070,9 @@ var STREAM_GENERATE_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1054
1070
  path: "/agents/:agentId/stream",
1055
1071
  responseType: "stream",
1056
1072
  streamFormat: "sse",
1057
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1058
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionBodySchema,
1059
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1073
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1074
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionBodySchema,
1075
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1060
1076
  summary: "Stream agent response",
1061
1077
  description: "Executes an agent with the provided messages and streams the response in real-time",
1062
1078
  tags: ["Agents"],
@@ -1127,8 +1143,8 @@ var SEND_AGENT_SIGNAL_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1127
1143
  method: "POST",
1128
1144
  path: "/agents/:agentId/signals",
1129
1145
  responseType: "json",
1130
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1131
- bodySchema: chunkYYOGSRHT_cjs.sendAgentSignalBodySchema,
1146
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1147
+ bodySchema: chunkQZFOSTJU_cjs.sendAgentSignalBodySchema,
1132
1148
  responseSchema: sendAgentSignalResponseSchema,
1133
1149
  summary: "Send agent signal",
1134
1150
  description: "Sends a signal to an active agent run or starts a memory thread run when the thread is idle",
@@ -1197,9 +1213,9 @@ var SUBSCRIBE_AGENT_THREAD_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1197
1213
  path: "/agents/:agentId/threads/subscribe",
1198
1214
  responseType: "stream",
1199
1215
  streamFormat: "sse",
1200
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1201
- bodySchema: chunkYYOGSRHT_cjs.subscribeAgentThreadBodySchema,
1202
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1216
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1217
+ bodySchema: chunkQZFOSTJU_cjs.subscribeAgentThreadBodySchema,
1218
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1203
1219
  summary: "Subscribe to agent thread runs",
1204
1220
  description: "Subscribes to future and active stream runs for a memory thread",
1205
1221
  tags: ["Agents", "Streaming"],
@@ -1272,9 +1288,9 @@ var STREAM_UNTIL_IDLE_GENERATE_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1272
1288
  path: "/agents/:agentId/stream-until-idle",
1273
1289
  responseType: "stream",
1274
1290
  streamFormat: "sse",
1275
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1276
- bodySchema: chunkYYOGSRHT_cjs.streamUntilIdleBodySchema,
1277
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1291
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1292
+ bodySchema: chunkQZFOSTJU_cjs.streamUntilIdleBodySchema,
1293
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1278
1294
  summary: "Stream agent response until idle",
1279
1295
  description: "Executes an agent with the provided messages and streams the response in real-time, also listens for background task completions and streams them in real-time",
1280
1296
  tags: ["Agents"],
@@ -1331,9 +1347,9 @@ var STREAM_GENERATE_VNEXT_DEPRECATED_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1331
1347
  method: "POST",
1332
1348
  path: "/agents/:agentId/stream/vnext",
1333
1349
  responseType: "stream",
1334
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1335
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionBodySchema,
1336
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1350
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1351
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionBodySchema,
1352
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1337
1353
  summary: "Stream a response from an agent",
1338
1354
  description: "[DEPRECATED] This endpoint is deprecated. Please use /stream instead.",
1339
1355
  tags: ["Agents"],
@@ -1346,9 +1362,9 @@ var OBSERVE_AGENT_STREAM_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1346
1362
  path: "/agents/:agentId/observe",
1347
1363
  responseType: "stream",
1348
1364
  streamFormat: "sse",
1349
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1350
- bodySchema: chunkYYOGSRHT_cjs.observeAgentBodySchema,
1351
- responseSchema: chunkYYOGSRHT_cjs.observeAgentResponseSchema,
1365
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1366
+ bodySchema: chunkQZFOSTJU_cjs.observeAgentBodySchema,
1367
+ responseSchema: chunkQZFOSTJU_cjs.observeAgentResponseSchema,
1352
1368
  summary: "Observe agent stream",
1353
1369
  description: "Reconnect to an existing agent stream to receive missed events. Supports position-based resume with offset for efficient reconnection.",
1354
1370
  tags: ["Agents", "Streaming"],
@@ -1433,9 +1449,9 @@ var APPROVE_TOOL_CALL_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1433
1449
  path: "/agents/:agentId/approve-tool-call",
1434
1450
  responseType: "stream",
1435
1451
  streamFormat: "sse",
1436
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1437
- bodySchema: chunkYYOGSRHT_cjs.approveToolCallBodySchema,
1438
- responseSchema: chunkYYOGSRHT_cjs.toolCallResponseSchema,
1452
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1453
+ bodySchema: chunkQZFOSTJU_cjs.approveToolCallBodySchema,
1454
+ responseSchema: chunkQZFOSTJU_cjs.toolCallResponseSchema,
1439
1455
  summary: "Approve tool call",
1440
1456
  description: "Approves a pending tool call and continues agent execution",
1441
1457
  tags: ["Agents", "Tools"],
@@ -1470,9 +1486,9 @@ var DECLINE_TOOL_CALL_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1470
1486
  path: "/agents/:agentId/decline-tool-call",
1471
1487
  responseType: "stream",
1472
1488
  streamFormat: "sse",
1473
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1474
- bodySchema: chunkYYOGSRHT_cjs.declineToolCallBodySchema,
1475
- responseSchema: chunkYYOGSRHT_cjs.toolCallResponseSchema,
1489
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1490
+ bodySchema: chunkQZFOSTJU_cjs.declineToolCallBodySchema,
1491
+ responseSchema: chunkQZFOSTJU_cjs.toolCallResponseSchema,
1476
1492
  summary: "Decline tool call",
1477
1493
  description: "Declines a pending tool call and continues agent execution without executing the tool",
1478
1494
  tags: ["Agents", "Tools"],
@@ -1507,9 +1523,9 @@ var RESUME_STREAM_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1507
1523
  path: "/agents/:agentId/resume-stream",
1508
1524
  responseType: "stream",
1509
1525
  streamFormat: "sse",
1510
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1511
- bodySchema: chunkYYOGSRHT_cjs.resumeStreamBodySchema,
1512
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1526
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1527
+ bodySchema: chunkQZFOSTJU_cjs.resumeStreamBodySchema,
1528
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1513
1529
  summary: "Resume agent stream",
1514
1530
  description: "Resumes a suspended agent stream with custom resume data",
1515
1531
  tags: ["Agents"],
@@ -1591,9 +1607,9 @@ var RESUME_STREAM_UNTIL_IDLE_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1591
1607
  path: "/agents/:agentId/resume-stream-until-idle",
1592
1608
  responseType: "stream",
1593
1609
  streamFormat: "sse",
1594
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1595
- bodySchema: chunkYYOGSRHT_cjs.resumeStreamUntilIdleBodySchema,
1596
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1610
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1611
+ bodySchema: chunkQZFOSTJU_cjs.resumeStreamUntilIdleBodySchema,
1612
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1597
1613
  summary: "Resume agent stream until idle",
1598
1614
  description: "Resumes a suspended agent stream until idle with custom resume data, also listens for background task completions and streams them in real-time",
1599
1615
  tags: ["Agents"],
@@ -1680,9 +1696,9 @@ var APPROVE_TOOL_CALL_GENERATE_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1680
1696
  method: "POST",
1681
1697
  path: "/agents/:agentId/approve-tool-call-generate",
1682
1698
  responseType: "json",
1683
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1684
- bodySchema: chunkYYOGSRHT_cjs.approveToolCallBodySchema,
1685
- responseSchema: chunkYYOGSRHT_cjs.generateResponseSchema,
1699
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1700
+ bodySchema: chunkQZFOSTJU_cjs.approveToolCallBodySchema,
1701
+ responseSchema: chunkQZFOSTJU_cjs.generateResponseSchema,
1686
1702
  summary: "Approve tool call (non-streaming)",
1687
1703
  description: "Approves a pending tool call and returns the complete response",
1688
1704
  tags: ["Agents", "Tools"],
@@ -1716,9 +1732,9 @@ var DECLINE_TOOL_CALL_GENERATE_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1716
1732
  method: "POST",
1717
1733
  path: "/agents/:agentId/decline-tool-call-generate",
1718
1734
  responseType: "json",
1719
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1720
- bodySchema: chunkYYOGSRHT_cjs.declineToolCallBodySchema,
1721
- responseSchema: chunkYYOGSRHT_cjs.generateResponseSchema,
1735
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1736
+ bodySchema: chunkQZFOSTJU_cjs.declineToolCallBodySchema,
1737
+ responseSchema: chunkQZFOSTJU_cjs.generateResponseSchema,
1722
1738
  summary: "Decline tool call (non-streaming)",
1723
1739
  description: "Declines a pending tool call and returns the complete response",
1724
1740
  tags: ["Agents", "Tools"],
@@ -1753,9 +1769,9 @@ var STREAM_NETWORK_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1753
1769
  path: "/agents/:agentId/network",
1754
1770
  responseType: "stream",
1755
1771
  streamFormat: "sse",
1756
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1757
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionBodySchema,
1758
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1772
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1773
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionBodySchema,
1774
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1759
1775
  summary: "Stream agent network",
1760
1776
  description: "Executes an agent network with multiple agents and streams the response",
1761
1777
  tags: ["Agents"],
@@ -1783,9 +1799,9 @@ var APPROVE_NETWORK_TOOL_CALL_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1783
1799
  path: "/agents/:agentId/approve-network-tool-call",
1784
1800
  responseType: "stream",
1785
1801
  streamFormat: "sse",
1786
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1787
- bodySchema: chunkYYOGSRHT_cjs.approveNetworkToolCallBodySchema,
1788
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1802
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1803
+ bodySchema: chunkQZFOSTJU_cjs.approveNetworkToolCallBodySchema,
1804
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1789
1805
  summary: "Approve network tool call",
1790
1806
  description: "Approves a pending network tool call and continues network agent execution",
1791
1807
  tags: ["Agents", "Tools"],
@@ -1815,9 +1831,9 @@ var DECLINE_NETWORK_TOOL_CALL_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1815
1831
  path: "/agents/:agentId/decline-network-tool-call",
1816
1832
  responseType: "stream",
1817
1833
  streamFormat: "sse",
1818
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1819
- bodySchema: chunkYYOGSRHT_cjs.declineNetworkToolCallBodySchema,
1820
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
1834
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1835
+ bodySchema: chunkQZFOSTJU_cjs.declineNetworkToolCallBodySchema,
1836
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
1821
1837
  summary: "Decline network tool call",
1822
1838
  description: "Declines a pending network tool call and continues network agent execution without executing the tool",
1823
1839
  tags: ["Agents", "Tools"],
@@ -1846,9 +1862,9 @@ var UPDATE_AGENT_MODEL_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1846
1862
  method: "POST",
1847
1863
  path: "/agents/:agentId/model",
1848
1864
  responseType: "json",
1849
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1850
- bodySchema: chunkYYOGSRHT_cjs.updateAgentModelBodySchema,
1851
- responseSchema: chunkYYOGSRHT_cjs.modelManagementResponseSchema,
1865
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1866
+ bodySchema: chunkQZFOSTJU_cjs.updateAgentModelBodySchema,
1867
+ responseSchema: chunkQZFOSTJU_cjs.modelManagementResponseSchema,
1852
1868
  summary: "Update agent model",
1853
1869
  description: "Updates the AI model used by the agent",
1854
1870
  tags: ["Agents", "Models"],
@@ -1868,8 +1884,8 @@ var RESET_AGENT_MODEL_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1868
1884
  method: "POST",
1869
1885
  path: "/agents/:agentId/model/reset",
1870
1886
  responseType: "json",
1871
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1872
- responseSchema: chunkYYOGSRHT_cjs.modelManagementResponseSchema,
1887
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1888
+ responseSchema: chunkQZFOSTJU_cjs.modelManagementResponseSchema,
1873
1889
  summary: "Reset agent model",
1874
1890
  description: "Resets the agent model to its original configuration",
1875
1891
  tags: ["Agents", "Models"],
@@ -1888,9 +1904,9 @@ var REORDER_AGENT_MODEL_LIST_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1888
1904
  method: "POST",
1889
1905
  path: "/agents/:agentId/models/reorder",
1890
1906
  responseType: "json",
1891
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
1892
- bodySchema: chunkYYOGSRHT_cjs.reorderAgentModelListBodySchema,
1893
- responseSchema: chunkYYOGSRHT_cjs.modelManagementResponseSchema,
1907
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
1908
+ bodySchema: chunkQZFOSTJU_cjs.reorderAgentModelListBodySchema,
1909
+ responseSchema: chunkQZFOSTJU_cjs.modelManagementResponseSchema,
1894
1910
  summary: "Reorder agent model list",
1895
1911
  description: "Reorders the model list for agents with multiple model configurations",
1896
1912
  tags: ["Agents", "Models"],
@@ -1913,9 +1929,9 @@ var UPDATE_AGENT_MODEL_IN_MODEL_LIST_ROUTE = chunkQO4NGLIB_cjs.createRoute({
1913
1929
  method: "POST",
1914
1930
  path: "/agents/:agentId/models/:modelConfigId",
1915
1931
  responseType: "json",
1916
- pathParamSchema: chunkYYOGSRHT_cjs.modelConfigIdPathParams,
1917
- bodySchema: chunkYYOGSRHT_cjs.updateAgentModelInModelListBodySchema,
1918
- responseSchema: chunkYYOGSRHT_cjs.modelManagementResponseSchema,
1932
+ pathParamSchema: chunkQZFOSTJU_cjs.modelConfigIdPathParams,
1933
+ bodySchema: chunkQZFOSTJU_cjs.updateAgentModelInModelListBodySchema,
1934
+ responseSchema: chunkQZFOSTJU_cjs.modelManagementResponseSchema,
1919
1935
  summary: "Update model in model list",
1920
1936
  description: "Updates a specific model configuration in the agent model list",
1921
1937
  tags: ["Agents", "Models"],
@@ -2016,9 +2032,9 @@ var ENHANCE_INSTRUCTIONS_ROUTE = chunkQO4NGLIB_cjs.createRoute({
2016
2032
  method: "POST",
2017
2033
  path: "/agents/:agentId/instructions/enhance",
2018
2034
  responseType: "json",
2019
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
2020
- bodySchema: chunkYYOGSRHT_cjs.enhanceInstructionsBodySchema,
2021
- responseSchema: chunkYYOGSRHT_cjs.enhanceInstructionsResponseSchema,
2035
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
2036
+ bodySchema: chunkQZFOSTJU_cjs.enhanceInstructionsBodySchema,
2037
+ responseSchema: chunkQZFOSTJU_cjs.enhanceInstructionsResponseSchema,
2022
2038
  summary: "Enhance agent instructions",
2023
2039
  description: "Uses AI to enhance or modify agent instructions based on user feedback",
2024
2040
  tags: ["Agents"],
@@ -2044,7 +2060,7 @@ Current: ${instructions}
2044
2060
  ${comment ? `User feedback: ${comment}` : ""}`,
2045
2061
  {
2046
2062
  structuredOutput: {
2047
- schema: chunkYYOGSRHT_cjs.enhanceInstructionsResponseSchema
2063
+ schema: chunkQZFOSTJU_cjs.enhanceInstructionsResponseSchema
2048
2064
  }
2049
2065
  }
2050
2066
  );
@@ -2058,9 +2074,9 @@ var STREAM_VNEXT_DEPRECATED_ROUTE = chunkQO4NGLIB_cjs.createRoute({
2058
2074
  method: "POST",
2059
2075
  path: "/agents/:agentId/streamVNext",
2060
2076
  responseType: "stream",
2061
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
2062
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionBodySchema,
2063
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
2077
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
2078
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionBodySchema,
2079
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
2064
2080
  summary: "Stream a response from an agent",
2065
2081
  description: "[DEPRECATED] This endpoint is deprecated. Please use /stream instead.",
2066
2082
  tags: ["Agents"],
@@ -2074,9 +2090,9 @@ var STREAM_UI_MESSAGE_VNEXT_DEPRECATED_ROUTE = chunkQO4NGLIB_cjs.createRoute({
2074
2090
  method: "POST",
2075
2091
  path: "/agents/:agentId/stream/vnext/ui",
2076
2092
  responseType: "stream",
2077
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
2078
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionBodySchema,
2079
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
2093
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
2094
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionBodySchema,
2095
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
2080
2096
  summary: "Stream UI messages from an agent",
2081
2097
  description: "[DEPRECATED] This endpoint is deprecated. Please use the @mastra/ai-sdk package for uiMessage transformations",
2082
2098
  tags: ["Agents"],
@@ -2099,9 +2115,9 @@ var STREAM_UI_MESSAGE_DEPRECATED_ROUTE = chunkQO4NGLIB_cjs.createRoute({
2099
2115
  method: "POST",
2100
2116
  path: "/agents/:agentId/stream/ui",
2101
2117
  responseType: "stream",
2102
- pathParamSchema: chunkYYOGSRHT_cjs.agentIdPathParams,
2103
- bodySchema: chunkYYOGSRHT_cjs.agentExecutionBodySchema,
2104
- responseSchema: chunkYYOGSRHT_cjs.streamResponseSchema,
2118
+ pathParamSchema: chunkQZFOSTJU_cjs.agentIdPathParams,
2119
+ bodySchema: chunkQZFOSTJU_cjs.agentExecutionBodySchema,
2120
+ responseSchema: chunkQZFOSTJU_cjs.streamResponseSchema,
2105
2121
  summary: "Stream UI messages from an agent",
2106
2122
  description: "[DEPRECATED] This endpoint is deprecated. Please use the @mastra/ai-sdk package for uiMessage transformations",
2107
2123
  tags: ["Agents"],
@@ -2113,7 +2129,7 @@ var GET_AGENT_SKILL_ROUTE = chunkQO4NGLIB_cjs.createRoute({
2113
2129
  method: "GET",
2114
2130
  path: "/agents/:agentId/skills/:skillName",
2115
2131
  responseType: "json",
2116
- pathParamSchema: chunkYYOGSRHT_cjs.agentSkillPathParams,
2132
+ pathParamSchema: chunkQZFOSTJU_cjs.agentSkillPathParams,
2117
2133
  queryParamSchema: chunkHXICAUTW_cjs.skillDisambiguationQuerySchema,
2118
2134
  responseSchema: chunkHXICAUTW_cjs.getAgentSkillResponseSchema,
2119
2135
  summary: "Get agent skill",
@@ -2194,5 +2210,5 @@ exports.getSerializedProcessors = getSerializedProcessors;
2194
2210
  exports.getSerializedSkillsFromAgent = getSerializedSkillsFromAgent;
2195
2211
  exports.getWorkspaceToolsFromAgent = getWorkspaceToolsFromAgent;
2196
2212
  exports.isProviderConnected = isProviderConnected;
2197
- //# sourceMappingURL=chunk-E6XT4Z7T.cjs.map
2198
- //# sourceMappingURL=chunk-E6XT4Z7T.cjs.map
2213
+ //# sourceMappingURL=chunk-FTU4TI4A.cjs.map
2214
+ //# sourceMappingURL=chunk-FTU4TI4A.cjs.map