@mastra/server 1.86.0-alpha.6 → 1.86.0-alpha.8

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 (126) hide show
  1. package/dist/{a2a-BFN2C8f2.js → a2a-BfWMjFe2.js} +1 -1
  2. package/dist/{a2a-DlEIsCZz.cjs → a2a-DQIwTZyo.cjs} +1 -1
  3. package/dist/{agent-builder-Bd6qGrt6.js → agent-builder-DpuK5-6A.js} +2 -2
  4. package/dist/{agent-builder-Bz1beuPE.cjs → agent-builder-NSemjs4B.cjs} +2 -2
  5. package/dist/{agent-controller-BHJDvCaS.cjs → agent-controller-BP-CFfsg.cjs} +9 -9
  6. package/dist/{agent-controller-NRR6SK66.js → agent-controller-CzKnfKkw.js} +9 -9
  7. package/dist/{agent-versions-CwWhEoU5.cjs → agent-versions-0q4KKmLv.cjs} +12 -12
  8. package/dist/{agent-versions-DfcKpYNW.js → agent-versions-Pml6WNbA.js} +12 -12
  9. package/dist/{agents-DiQ_L6BU.cjs → agents-BO1mcMDf.cjs} +31 -9
  10. package/dist/{agents-BMdbohgU.js → agents-YvaBPFiS.js} +31 -9
  11. package/dist/{api-schema-manifest-BuAf53GH.cjs → api-schema-manifest-016lHJO2.cjs} +1 -1
  12. package/dist/{api-schema-manifest-CsefW4Vv.js → api-schema-manifest-CAZsA5Lk.js} +1 -1
  13. package/dist/{catalogue-CAIZ08il.cjs → catalogue-Cf7Zz7zb.cjs} +11 -11
  14. package/dist/{catalogue-BtSLF1p2.js → catalogue-DN4dvU88.js} +11 -11
  15. package/dist/{conversations-Dzpv_Cgt.js → conversations-4ZO0Pjvk.js} +1 -1
  16. package/dist/{conversations-6v0VCbif.cjs → conversations-BaYtooZZ.cjs} +1 -1
  17. package/dist/{datasets-C1XJLHN8.js → datasets-CYdtUF8e.js} +4 -1
  18. package/dist/{datasets-hqDd4IUN.cjs → datasets-CZRqni0N.cjs} +4 -1
  19. package/dist/dist-Bz6gINFc.js +1 -0
  20. package/dist/{dist-C5rwoPuL.cjs → dist-DaRCrkAU.cjs} +514 -238
  21. package/dist/{dist-C0Das1QD.cjs → dist-uiPbWl5E.cjs} +1 -1
  22. package/dist/{dist-Czbww9cr.js → dist-yny1avqv.js} +514 -238
  23. package/dist/docs/SKILL.md +1 -1
  24. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  25. package/dist/docs/references/reference-observability-tracing-advanced-queries.md +20 -0
  26. package/dist/{dynamic-workflows-DPgV6qtS.cjs → dynamic-workflows-CEKdGcSr.cjs} +4 -4
  27. package/dist/{dynamic-workflows-DmkCJ4Lp.js → dynamic-workflows-DF9X_oDG.js} +4 -4
  28. package/dist/{editor-builder-Cx9ZiHBw.cjs → editor-builder-ChYG8YTs.cjs} +1 -1
  29. package/dist/{editor-builder-DpNB1W4s.js → editor-builder-CwsIbd0F.js} +1 -1
  30. package/dist/{observability-zr7LDCQG.js → observability-URaJnI_U.js} +1 -1
  31. package/dist/{observability-Cn4P60P4.cjs → observability-zNA_CVaz.cjs} +1 -1
  32. package/dist/{plans-BoUO4vWD.js → plans-CbR8EDiT.js} +1 -1
  33. package/dist/{plans-DYNE2s8s.cjs → plans-k3UN9Nd1.cjs} +1 -1
  34. package/dist/probe-image-size-DZvSdjzK.js +13297 -0
  35. package/dist/probe-image-size-z8zXmjaH.cjs +13304 -0
  36. package/dist/{responses-ByDnfqlJ.cjs → responses-B-BKx236.cjs} +1 -1
  37. package/dist/{responses-CGv4KFQ3.js → responses-Blzxy0XP.js} +1 -1
  38. package/dist/{routes-C0TLNOPH.js → routes-D-I2voQe.js} +16 -16
  39. package/dist/{routes-BLjObOVE.cjs → routes-jiZyt9kU.cjs} +16 -16
  40. package/dist/{schedules-0ceTSdBB.cjs → schedules-CwL28Eca.cjs} +4 -4
  41. package/dist/{schedules-D_VfFdAH.js → schedules-RWgPeypN.js} +4 -4
  42. package/dist/{scorer-versions-Bhdvt-cX.cjs → scorer-versions-DK-PGj7-.cjs} +1 -1
  43. package/dist/{scorer-versions-DhT7Lj33.js → scorer-versions-oJoK2Exw.js} +1 -1
  44. package/dist/{scores-EVbkxGHy.cjs → scores-BikU9phm.cjs} +1 -1
  45. package/dist/{scores-CqNF-thA.js → scores-DAv6Uisq.js} +1 -1
  46. package/dist/server/handlers/a2a.cjs +1 -1
  47. package/dist/server/handlers/a2a.js +1 -1
  48. package/dist/server/handlers/agent-builder.cjs +1 -1
  49. package/dist/server/handlers/agent-builder.js +1 -1
  50. package/dist/server/handlers/agent-controller.cjs +1 -1
  51. package/dist/server/handlers/agent-controller.js +1 -1
  52. package/dist/server/handlers/agent-versions.cjs +1 -1
  53. package/dist/server/handlers/agent-versions.js +1 -1
  54. package/dist/server/handlers/agents.cjs +1 -1
  55. package/dist/server/handlers/agents.js +1 -1
  56. package/dist/server/handlers/auth.cjs +1 -1
  57. package/dist/server/handlers/auth.js +1 -1
  58. package/dist/server/handlers/conversations.cjs +1 -1
  59. package/dist/server/handlers/conversations.js +1 -1
  60. package/dist/server/handlers/datasets.cjs +16 -11
  61. package/dist/server/handlers/datasets.d.ts +6 -0
  62. package/dist/server/handlers/datasets.js +16 -11
  63. package/dist/server/handlers/dynamic-workflows.cjs +1 -1
  64. package/dist/server/handlers/dynamic-workflows.js +1 -1
  65. package/dist/server/handlers/editor-builder.cjs +1 -1
  66. package/dist/server/handlers/editor-builder.js +1 -1
  67. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  68. package/dist/server/handlers/favorites-enrichment.js +1 -1
  69. package/dist/server/handlers/observability.cjs +1 -1
  70. package/dist/server/handlers/observability.js +1 -1
  71. package/dist/server/handlers/plans.cjs +1 -1
  72. package/dist/server/handlers/plans.js +1 -1
  73. package/dist/server/handlers/responses.cjs +1 -1
  74. package/dist/server/handlers/responses.js +1 -1
  75. package/dist/server/handlers/schedules.cjs +1 -1
  76. package/dist/server/handlers/schedules.js +1 -1
  77. package/dist/server/handlers/scorer-versions.cjs +1 -1
  78. package/dist/server/handlers/scorer-versions.js +1 -1
  79. package/dist/server/handlers/scores.cjs +1 -1
  80. package/dist/server/handlers/scores.js +1 -1
  81. package/dist/server/handlers/stored-agent-favorites.cjs +3 -3
  82. package/dist/server/handlers/stored-agent-favorites.js +3 -3
  83. package/dist/server/handlers/stored-agents.cjs +2 -2
  84. package/dist/server/handlers/stored-agents.js +2 -2
  85. package/dist/server/handlers/stored-scorers.cjs +1 -1
  86. package/dist/server/handlers/stored-scorers.js +1 -1
  87. package/dist/server/handlers/stored-skill-favorites.cjs +2 -2
  88. package/dist/server/handlers/stored-skill-favorites.js +2 -2
  89. package/dist/server/handlers/stored-skills.cjs +1 -1
  90. package/dist/server/handlers/stored-skills.js +1 -1
  91. package/dist/server/handlers/system.cjs +1 -1
  92. package/dist/server/handlers/system.js +1 -1
  93. package/dist/server/handlers/tool-providers.cjs +2 -2
  94. package/dist/server/handlers/tool-providers.js +2 -2
  95. package/dist/server/handlers/tools.cjs +1 -1
  96. package/dist/server/handlers/tools.js +1 -1
  97. package/dist/server/handlers/voice.cjs +1 -1
  98. package/dist/server/handlers/voice.js +1 -1
  99. package/dist/server/handlers/workflows.cjs +1 -1
  100. package/dist/server/handlers/workflows.js +1 -1
  101. package/dist/server/handlers.cjs +12 -12
  102. package/dist/server/handlers.js +12 -12
  103. package/dist/server/schemas/datasets.d.ts +3 -0
  104. package/dist/server/schemas/index.cjs +6 -6
  105. package/dist/server/schemas/index.js +6 -6
  106. package/dist/server/server-adapter/index.cjs +3 -3
  107. package/dist/server/server-adapter/index.js +3 -3
  108. package/dist/server/server-adapter/routes/datasets.d.ts +6 -0
  109. package/dist/{server-adapter-BkAKl970.cjs → server-adapter-BB2Lw2Ig.cjs} +4 -4
  110. package/dist/{server-adapter-CxMHZZAv.js → server-adapter-CMJcvkpD.js} +4 -4
  111. package/dist/{stored-agents-m0Knvv29.cjs → stored-agents-BS4_LGSs.cjs} +32 -32
  112. package/dist/{stored-agents-DmN_pIIl.js → stored-agents-DcyDMKP2.js} +32 -32
  113. package/dist/{stored-scorers-2F2k6XSx.js → stored-scorers-Bdz_5k57.js} +1 -1
  114. package/dist/{stored-scorers-iM2Qq9Nh.cjs → stored-scorers-D8YYszOj.cjs} +1 -1
  115. package/dist/{tool-providers-Cq3vFqgE.js → tool-providers-BN2Ni06Z.js} +2 -2
  116. package/dist/{tool-providers-BVwRJTtB.cjs → tool-providers-BeiSkVHu.cjs} +2 -2
  117. package/dist/{tools-D07qyAT0.cjs → tools-CoamSJif.cjs} +1 -1
  118. package/dist/{tools-CZmeb9MB.js → tools-DsSk01Ti.js} +1 -1
  119. package/dist/{voice-BNwHCtxv.js → voice-BFh2Zx5m.js} +1 -1
  120. package/dist/{voice-DN72TM58.cjs → voice-CquR7YyA.cjs} +1 -1
  121. package/dist/{workflows-gIKukZ1O.cjs → workflows-CHKSHV4f.cjs} +33 -0
  122. package/dist/{workflows-D3QrUMfm.js → workflows-D5bfbang.js} +33 -0
  123. package/package.json +3 -3
  124. package/dist/dist-C_7xKME1.js +0 -1
  125. package/dist/probe-image-size-C0BvSeqt.js +0 -13297
  126. package/dist/probe-image-size-DQsyQSUh.cjs +0 -13304
@@ -1,17 +1,17 @@
1
1
  import { n as standardSchemaToJSONSchema, r as toStandardSchema } from "./schema-TQPB_dl2-CCzMcdDx.js";
2
2
  import "./constants-C1ASuP4t.js";
3
- import { G as getAgentFromSystem, f as GENERATE_AGENT_ROUTE, h as GET_AGENT_BY_ID_ROUTE, v as LIST_AGENTS_ROUTE } from "./agents-BMdbohgU.js";
4
- import { a as LIST_TOOLS_ROUTE, i as GET_TOOL_BY_ID_ROUTE, n as EXECUTE_TOOL_ROUTE, o as findTool } from "./tools-CZmeb9MB.js";
5
- import { _ as RESUME_ASYNC_WORKFLOW_ROUTE, a as GET_WORKFLOW_BY_ID_ROUTE, k as listWorkflowsFromSystem, o as GET_WORKFLOW_RUN_BY_ID_ROUTE, s as LIST_WORKFLOWS_ROUTE, t as CANCEL_WORKFLOW_RUN_ROUTE, x as START_ASYNC_WORKFLOW_ROUTE } from "./workflows-D3QrUMfm.js";
6
- import { o as checkRouteRBAC, r as authorizeRoute, s as dispatchRoute } from "./server-adapter-CxMHZZAv.js";
7
- import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-C0TLNOPH.js";
3
+ import { G as getAgentFromSystem, f as GENERATE_AGENT_ROUTE, h as GET_AGENT_BY_ID_ROUTE, v as LIST_AGENTS_ROUTE } from "./agents-YvaBPFiS.js";
4
+ import { a as LIST_TOOLS_ROUTE, i as GET_TOOL_BY_ID_ROUTE, n as EXECUTE_TOOL_ROUTE, o as findTool } from "./tools-DsSk01Ti.js";
5
+ import { _ as RESUME_ASYNC_WORKFLOW_ROUTE, a as GET_WORKFLOW_BY_ID_ROUTE, k as listWorkflowsFromSystem, o as GET_WORKFLOW_RUN_BY_ID_ROUTE, s as LIST_WORKFLOWS_ROUTE, t as CANCEL_WORKFLOW_RUN_ROUTE, x as START_ASYNC_WORKFLOW_ROUTE } from "./workflows-D5bfbang.js";
6
+ import { o as checkRouteRBAC, r as authorizeRoute, s as dispatchRoute } from "./server-adapter-CMJcvkpD.js";
7
+ import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-D-I2voQe.js";
8
8
  import "./utils-C2VRtQjI.js";
9
9
  import { E as UPDATE_THREAD_ROUTE, b as LIST_THREADS_ROUTE, d as GET_MEMORY_STATUS_ROUTE, f as GET_OBSERVATIONAL_MEMORY_ROUTE, g as GET_WORKING_MEMORY_ROUTE, h as GET_THREAD_BY_ID_ROUTE, i as CREATE_THREAD_ROUTE, l as GET_MEMORY_CONFIG_ROUTE, n as CLONE_THREAD_ROUTE, p as GET_RESOURCE_WORKING_MEMORY_ROUTE, t as AWAIT_BUFFER_STATUS_ROUTE, v as LIST_MESSAGES_ROUTE } from "./memory-03B4pe3w.js";
10
- import { a as GET_TRACE_ROUTE, i as GET_TRACE_LIGHT_ROUTE, o as GET_TRACE_TRAJECTORY_ROUTE, r as GET_SPAN_ROUTE, u as LIST_TRACES_ROUTE } from "./observability-zr7LDCQG.js";
10
+ import { a as GET_TRACE_ROUTE, i as GET_TRACE_LIGHT_ROUTE, o as GET_TRACE_TRAJECTORY_ROUTE, r as GET_SPAN_ROUTE, u as LIST_TRACES_ROUTE } from "./observability-URaJnI_U.js";
11
11
  import { A as GET_TRACE_QUERY_FIELDS, D as GET_SCORE_TIME_SERIES, E as GET_SCORE_PERCENTILES, F as LIST_SCORES, L as QUERY_SPANS, M as LIST_FEEDBACK, N as LIST_LOGS, O as GET_SERVICE_NAMES, R as QUERY_THREADS, S as GET_METRIC_TIME_SERIES, T as GET_SCORE_BREAKDOWN, _ as GET_METRIC_BREAKDOWN, b as GET_METRIC_NAMES, c as GET_ENTITY_NAMES, f as GET_FEEDBACK_AGGREGATE, g as GET_METRIC_AGGREGATE, h as GET_FEEDBACK_TIME_SERIES, j as GET_TRACE_QUERY_VALUES, k as GET_TAGS, l as GET_ENTITY_TYPES, m as GET_FEEDBACK_PERCENTILES, n as AGGREGATE_TRACES, p as GET_FEEDBACK_BREAKDOWN, s as GET_CAPABILITIES, t as AGGREGATE_SPANS, u as GET_ENVIRONMENTS, v as GET_METRIC_LABEL_KEYS, w as GET_SCORE_AGGREGATE, x as GET_METRIC_PERCENTILES, y as GET_METRIC_LABEL_VALUES, z as QUERY_TRACES } from "./observability-new-endpoints-vj6FaEcm.js";
12
- import { t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE } from "./editor-builder-DpNB1W4s.js";
12
+ import { t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE } from "./editor-builder-CwsIbd0F.js";
13
13
  import { CREATE_STORED_AGENT_ROUTE, GET_STORED_AGENT_ROUTE, LIST_STORED_AGENTS_ROUTE, UPDATE_STORED_AGENT_ROUTE } from "./server/handlers/stored-agents.js";
14
- import { O as updateStoredAgentBodySchema, n as createStoredAgentBodySchema } from "./stored-agents-DmN_pIIl.js";
14
+ import { O as updateStoredAgentBodySchema, n as createStoredAgentBodySchema } from "./stored-agents-DcyDMKP2.js";
15
15
  import { ErrorCategory, ErrorDomain, MastraError } from "@mastra/core/error";
16
16
  import { createTool } from "@mastra/core/tools";
17
17
  import * as coreStorage from "@mastra/core/storage";
@@ -367,13 +367,13 @@ async function addMemoryTools(kit) {
367
367
  }, signal));
368
368
  }
369
369
  // src/server/mcp/toolsets/observability-summary.ts
370
- const DETAILS = "Call get_trace with a traceId for its span tree, and get_span for a span’s full input and output.";
370
+ const DETAILS = "Call get_trace with a traceId for its span tree, and get_span for a span\u2019s full input and output.";
371
371
  const isRow = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
372
372
  const rowsOf = (output, key) => Array.isArray(output[key]) ? output[key].filter(isRow) : [];
373
373
  const text = (value, max) => {
374
374
  if (typeof value !== "string" || !value) return void 0;
375
375
  const line = value.replace(/\s+/g, " ").trim();
376
- return line.length > max ? `${line.slice(0, max)}…` : line;
376
+ return line.length > max ? `${line.slice(0, max)}\u2026` : line;
377
377
  };
378
378
  function duration(row) {
379
379
  if (typeof row.durationMs === "number") return `${row.durationMs}ms`;
@@ -750,7 +750,7 @@ function addObservabilityTools(kit) {
750
750
  GET_METRIC_LABEL_KEYS,
751
751
  GET_METRIC_LABEL_VALUES
752
752
  ], object({
753
- metricName: str("List the label keys of this metric (or, with labelKey, one label’s values)."),
753
+ metricName: str("List the label keys of this metric (or, with labelKey, one label\u2019s values)."),
754
754
  labelKey: str("With metricName, list the values of this label."),
755
755
  prefix: str("Only names or values starting with this."),
756
756
  limit: {
@@ -3,7 +3,7 @@ import { _ as MastraFGAPermissions, g as validateThreadOwnership, i as getEffect
3
3
  import { t as HTTPException } from "./http-exception-CzaWkxMl.js";
4
4
  import { a as createConversationBodySchema, i as conversationObjectSchema, n as conversationIdPathParams, r as conversationItemsListSchema, t as conversationDeletedSchema } from "./conversations-DHrKTI6x.js";
5
5
  import { n as createRoute } from "./route-builder-Dz18c3qm.js";
6
- import { G as getAgentFromSystem } from "./agents-BMdbohgU.js";
6
+ import { G as getAgentFromSystem } from "./agents-YvaBPFiS.js";
7
7
  import { handleError } from "./server/handlers/error.js";
8
8
  import { mapMastraMessagesToConversationItems } from "./server/handlers/responses.adapter.js";
9
9
  import { findConversationThreadAcrossAgents, getAgentMemoryStore } from "./server/handlers/responses.storage.js";
@@ -3,7 +3,7 @@ const require_utils = require("./utils-j29NB2ZJ.cjs");
3
3
  const require_http_exception = require("./http-exception-Co3MbFUf.cjs");
4
4
  const require_conversations = require("./conversations-BVj0Dk2Q.cjs");
5
5
  const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
6
- const require_agents = require("./agents-DiQ_L6BU.cjs");
6
+ const require_agents = require("./agents-BO1mcMDf.cjs");
7
7
  const require_server_handlers_error = require("./server/handlers/error.cjs");
8
8
  const require_server_handlers_responses_adapter = require("./server/handlers/responses.adapter.cjs");
9
9
  const require_server_handlers_responses_storage = require("./server/handlers/responses.storage.cjs");
@@ -328,7 +328,10 @@ const triggerExperimentBodySchema = z.object({
328
328
  provider: z.string().min(1),
329
329
  modelId: z.string().min(1)
330
330
  }).optional().describe("Model to run an agent target on for this experiment only, instead of the model the agent is configured with. Passed per call; the agent itself is not changed and the model is not stored on the experiment."),
331
- maxConcurrency: z.number().optional().describe("Maximum concurrent executions"),
331
+ maxConcurrency: z.number().int().positive().optional().describe("Maximum concurrent executions"),
332
+ itemTimeout: z.number().int().positive().optional().describe("Per-item timeout in milliseconds"),
333
+ maxRetries: z.number().int().min(0).optional().describe("Retries per item after a failed attempt (tool-mock and abort errors are never retried)"),
334
+ durable: z.boolean().optional().describe("Start the experiment as a durable evented workflow instead of in this process. Its events go on the Mastra pubsub, so it only runs where something handles them. Only serializable options are allowed."),
332
335
  provenance: z.object({
333
336
  source: z.string().optional(),
334
337
  sourceId: z.string().optional(),
@@ -328,7 +328,10 @@ const triggerExperimentBodySchema = zod_v4.z.object({
328
328
  provider: zod_v4.z.string().min(1),
329
329
  modelId: zod_v4.z.string().min(1)
330
330
  }).optional().describe("Model to run an agent target on for this experiment only, instead of the model the agent is configured with. Passed per call; the agent itself is not changed and the model is not stored on the experiment."),
331
- maxConcurrency: zod_v4.z.number().optional().describe("Maximum concurrent executions"),
331
+ maxConcurrency: zod_v4.z.number().int().positive().optional().describe("Maximum concurrent executions"),
332
+ itemTimeout: zod_v4.z.number().int().positive().optional().describe("Per-item timeout in milliseconds"),
333
+ maxRetries: zod_v4.z.number().int().min(0).optional().describe("Retries per item after a failed attempt (tool-mock and abort errors are never retried)"),
334
+ durable: zod_v4.z.boolean().optional().describe("Start the experiment as a durable evented workflow instead of in this process. Its events go on the Mastra pubsub, so it only runs where something handles them. Only serializable options are allowed."),
332
335
  provenance: zod_v4.z.object({
333
336
  source: zod_v4.z.string().optional(),
334
337
  sourceId: zod_v4.z.string().optional(),
@@ -0,0 +1 @@
1
+ export { n as openai } from "./dist-yny1avqv.js";