@mastra/server 1.86.0-alpha.7 → 1.86.0-alpha.9

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 (137) hide show
  1. package/dist/{a2a-WPGF38fX.js → a2a-CY7rgzPe.js} +1 -1
  2. package/dist/{a2a-vSZkdSRE.cjs → a2a-DwjvHqcb.cjs} +1 -1
  3. package/dist/{agent-builder-C4AIqOxt.js → agent-builder-DHnNRROR.js} +2 -2
  4. package/dist/{agent-builder-dZlRNj1k.cjs → agent-builder-anRH1X35.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-272TP94y.js → agents-CAXsXenf.js} +32 -3
  10. package/dist/{agents-mjQZV5tv.cjs → agents-GHhuyz5x.cjs} +32 -3
  11. package/dist/{api-schema-manifest-BjhiTdNv.js → api-schema-manifest-4PK1dBWt.js} +1 -1
  12. package/dist/{api-schema-manifest-DVkepK_s.cjs → api-schema-manifest-CX16hC7V.cjs} +1 -1
  13. package/dist/{auth-CM5AgF9l.cjs → auth-BR7vRIrY.cjs} +5 -3
  14. package/dist/{auth-CjT_a76k.js → auth-ChZ3dUvo.js} +5 -3
  15. package/dist/{catalogue-DH64Duv-.js → catalogue-BOzHZ1xt.js} +11 -11
  16. package/dist/{catalogue-BTE9b_mr.cjs → catalogue-DNy7Fog6.cjs} +11 -11
  17. package/dist/{conversations-CXyaNjLR.js → conversations-BjD8wOc3.js} +1 -1
  18. package/dist/{conversations-BWA_---j.cjs → conversations-CgogBOHO.cjs} +1 -1
  19. package/dist/{datasets-C1XJLHN8.js → datasets-CYdtUF8e.js} +4 -1
  20. package/dist/{datasets-hqDd4IUN.cjs → datasets-CZRqni0N.cjs} +4 -1
  21. package/dist/dist-BWVxgpEw.js +1 -0
  22. package/dist/{dist-DGwsCtT4.cjs → dist-Brw_H26B.cjs} +521 -286
  23. package/dist/{dist-CSffo32A.cjs → dist-C5_WGwU1.cjs} +1 -1
  24. package/dist/{dist-Bp1bObAq.js → dist-NBGkHBIE.js} +521 -286
  25. package/dist/docs/SKILL.md +1 -1
  26. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  27. package/dist/docs/references/docs-knowledge-overview.md +1 -1
  28. package/dist/docs/references/reference-observability-tracing-advanced-queries.md +20 -0
  29. package/dist/{dynamic-workflows-DPgV6qtS.cjs → dynamic-workflows-CEKdGcSr.cjs} +4 -4
  30. package/dist/{dynamic-workflows-DmkCJ4Lp.js → dynamic-workflows-DF9X_oDG.js} +4 -4
  31. package/dist/{editor-builder-BayzCprJ.js → editor-builder-BRzXnsRW.js} +1 -1
  32. package/dist/{editor-builder-BS2xogE_.cjs → editor-builder-G1ub9j0s.cjs} +1 -1
  33. package/dist/{knowledge-DL03nbSW.cjs → knowledge-B3768ERP.cjs} +1 -0
  34. package/dist/{knowledge-DAqUHFK5.js → knowledge-wqC0nrmu.js} +1 -0
  35. package/dist/{observability-zr7LDCQG.js → observability-URaJnI_U.js} +1 -1
  36. package/dist/{observability-Cn4P60P4.cjs → observability-zNA_CVaz.cjs} +1 -1
  37. package/dist/{plans-xGwuiZUd.js → plans-DGC1grMp.js} +1 -1
  38. package/dist/{plans-Bes_LVgv.cjs → plans-kA8E3Auv.cjs} +1 -1
  39. package/dist/probe-image-size-ntJyQKKB.cjs +13304 -0
  40. package/dist/probe-image-size-zXQBlFaQ.js +13297 -0
  41. package/dist/{responses-CwQO5y2X.js → responses--nGf7l3O.js} +1 -1
  42. package/dist/{responses-BH567IZf.cjs → responses-B4GDz-Nm.cjs} +1 -1
  43. package/dist/{routes-CrBCJmjc.js → routes-BZVlqLly.js} +17 -17
  44. package/dist/{routes-6p-xrUIq.cjs → routes-vuZLexcc.cjs} +17 -17
  45. package/dist/{schedules-0ceTSdBB.cjs → schedules-CwL28Eca.cjs} +4 -4
  46. package/dist/{schedules-D_VfFdAH.js → schedules-RWgPeypN.js} +4 -4
  47. package/dist/{scorer-versions-Bhdvt-cX.cjs → scorer-versions-DK-PGj7-.cjs} +1 -1
  48. package/dist/{scorer-versions-DhT7Lj33.js → scorer-versions-oJoK2Exw.js} +1 -1
  49. package/dist/{scores-ksmJiJnJ.js → scores-Biv7XGW_.js} +1 -1
  50. package/dist/{scores-CXNkN7Bn.cjs → scores-D0Qq7TfU.cjs} +1 -1
  51. package/dist/server/handlers/a2a.cjs +1 -1
  52. package/dist/server/handlers/a2a.js +1 -1
  53. package/dist/server/handlers/agent-builder.cjs +1 -1
  54. package/dist/server/handlers/agent-builder.js +1 -1
  55. package/dist/server/handlers/agent-controller.cjs +1 -1
  56. package/dist/server/handlers/agent-controller.js +1 -1
  57. package/dist/server/handlers/agent-versions.cjs +1 -1
  58. package/dist/server/handlers/agent-versions.js +1 -1
  59. package/dist/server/handlers/agents.cjs +1 -1
  60. package/dist/server/handlers/agents.js +1 -1
  61. package/dist/server/handlers/auth.cjs +7 -3
  62. package/dist/server/handlers/auth.d.ts +12 -4
  63. package/dist/server/handlers/auth.js +7 -3
  64. package/dist/server/handlers/conversations.cjs +1 -1
  65. package/dist/server/handlers/conversations.js +1 -1
  66. package/dist/server/handlers/datasets.cjs +16 -11
  67. package/dist/server/handlers/datasets.d.ts +6 -0
  68. package/dist/server/handlers/datasets.js +16 -11
  69. package/dist/server/handlers/dynamic-workflows.cjs +1 -1
  70. package/dist/server/handlers/dynamic-workflows.js +1 -1
  71. package/dist/server/handlers/editor-builder.cjs +1 -1
  72. package/dist/server/handlers/editor-builder.js +1 -1
  73. package/dist/server/handlers/error.cjs +1 -1
  74. package/dist/server/handlers/error.js +1 -1
  75. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  76. package/dist/server/handlers/favorites-enrichment.js +1 -1
  77. package/dist/server/handlers/knowledge.cjs +1 -1
  78. package/dist/server/handlers/knowledge.js +1 -1
  79. package/dist/server/handlers/observability.cjs +1 -1
  80. package/dist/server/handlers/observability.js +1 -1
  81. package/dist/server/handlers/plans.cjs +1 -1
  82. package/dist/server/handlers/plans.js +1 -1
  83. package/dist/server/handlers/responses.cjs +1 -1
  84. package/dist/server/handlers/responses.js +1 -1
  85. package/dist/server/handlers/schedules.cjs +1 -1
  86. package/dist/server/handlers/schedules.js +1 -1
  87. package/dist/server/handlers/scorer-versions.cjs +1 -1
  88. package/dist/server/handlers/scorer-versions.js +1 -1
  89. package/dist/server/handlers/scores.cjs +1 -1
  90. package/dist/server/handlers/scores.js +1 -1
  91. package/dist/server/handlers/stored-agent-favorites.cjs +3 -3
  92. package/dist/server/handlers/stored-agent-favorites.js +3 -3
  93. package/dist/server/handlers/stored-agents.cjs +2 -2
  94. package/dist/server/handlers/stored-agents.js +2 -2
  95. package/dist/server/handlers/stored-scorers.cjs +1 -1
  96. package/dist/server/handlers/stored-scorers.js +1 -1
  97. package/dist/server/handlers/stored-skill-favorites.cjs +2 -2
  98. package/dist/server/handlers/stored-skill-favorites.js +2 -2
  99. package/dist/server/handlers/stored-skills.cjs +1 -1
  100. package/dist/server/handlers/stored-skills.js +1 -1
  101. package/dist/server/handlers/system.cjs +1 -1
  102. package/dist/server/handlers/system.js +1 -1
  103. package/dist/server/handlers/tool-providers.cjs +2 -2
  104. package/dist/server/handlers/tool-providers.js +2 -2
  105. package/dist/server/handlers/tools.cjs +1 -1
  106. package/dist/server/handlers/tools.js +1 -1
  107. package/dist/server/handlers/voice.cjs +1 -1
  108. package/dist/server/handlers/voice.js +1 -1
  109. package/dist/server/handlers/workflows.cjs +1 -1
  110. package/dist/server/handlers/workflows.js +1 -1
  111. package/dist/server/handlers.cjs +12 -12
  112. package/dist/server/handlers.js +12 -12
  113. package/dist/server/schemas/auth.d.ts +3 -1
  114. package/dist/server/schemas/datasets.d.ts +3 -0
  115. package/dist/server/schemas/index.cjs +7 -7
  116. package/dist/server/schemas/index.js +7 -7
  117. package/dist/server/server-adapter/index.cjs +3 -3
  118. package/dist/server/server-adapter/index.js +3 -3
  119. package/dist/server/server-adapter/routes/datasets.d.ts +6 -0
  120. package/dist/{server-adapter-Ceag3til.cjs → server-adapter-CurME3ch.cjs} +4 -4
  121. package/dist/{server-adapter-BGOi-s7x.js → server-adapter-h8YRQXAC.js} +4 -4
  122. package/dist/{stored-agents-m0Knvv29.cjs → stored-agents-BS4_LGSs.cjs} +32 -32
  123. package/dist/{stored-agents-DmN_pIIl.js → stored-agents-DcyDMKP2.js} +32 -32
  124. package/dist/{stored-scorers-2F2k6XSx.js → stored-scorers-Bdz_5k57.js} +1 -1
  125. package/dist/{stored-scorers-iM2Qq9Nh.cjs → stored-scorers-D8YYszOj.cjs} +1 -1
  126. package/dist/{tool-providers-Cq3vFqgE.js → tool-providers-BN2Ni06Z.js} +2 -2
  127. package/dist/{tool-providers-BVwRJTtB.cjs → tool-providers-BeiSkVHu.cjs} +2 -2
  128. package/dist/{tools-DLZ7go-n.cjs → tools-By0RVh_O.cjs} +1 -1
  129. package/dist/{tools-CY44YtDW.js → tools-C3KBdlil.js} +1 -1
  130. package/dist/{voice-NaerSeVQ.cjs → voice-CESew8Fc.cjs} +1 -1
  131. package/dist/{voice-DTjrAgqg.js → voice-PfxY_vQg.js} +1 -1
  132. package/dist/{workflows-gIKukZ1O.cjs → workflows-CHKSHV4f.cjs} +33 -0
  133. package/dist/{workflows-D3QrUMfm.js → workflows-D5bfbang.js} +33 -0
  134. package/package.json +3 -3
  135. package/dist/dist-Bn0zFASI.js +0 -1
  136. package/dist/probe-image-size-BR5MlnnJ.cjs +0 -13304
  137. package/dist/probe-image-size-DBCcUUw_.js +0 -13297
@@ -3,7 +3,7 @@ require("../../rolldown-runtime-10nMEhjP.cjs");
3
3
  const require_constants = require("../../constants-CyNbINin.cjs");
4
4
  const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
5
5
  const require_common = require("../../common-D5XxSuvu.cjs");
6
- const require_datasets = require("../../datasets-hqDd4IUN.cjs");
6
+ const require_datasets = require("../../datasets-CZRqni0N.cjs");
7
7
  const require_route_builder = require("../../route-builder-DjTBxSZN.cjs");
8
8
  const require_server_handlers_error = require("./error.cjs");
9
9
  let zod = require("zod");
@@ -74,7 +74,8 @@ function getHttpStatusForMastraError(errorId) {
74
74
  case "DATASET_ITEM_NOT_FOUND": return 404;
75
75
  case "EXPERIMENT_HAS_TARGET":
76
76
  case "EXPERIMENT_HAS_NO_TARGET":
77
- case "EXPERIMENT_INVALID_TARGET": return 400;
77
+ case "EXPERIMENT_INVALID_TARGET":
78
+ case "EXPERIMENT_NOT_DURABLE": return 400;
78
79
  case "EXPERIMENT_TARGET_NOT_FOUND": return 404;
79
80
  case "DATASET_ITEM_IDENTITY_CONFLICT":
80
81
  case "EXPERIMENT_ID_CONFLICT":
@@ -632,13 +633,13 @@ const TRIGGER_EXPERIMENT_ROUTE = require_route_builder.createRoute({
632
633
  bodySchema: require_datasets.triggerExperimentBodySchema,
633
634
  responseSchema: require_datasets.experimentSummaryResponseSchema,
634
635
  summary: "Trigger or create an experiment",
635
- description: "By default triggers a new experiment on the dataset against the specified target: returns immediately with pending status and execution happens in background. With start: false, creates the experiment without running it so the caller can drive the loop (run-item for targeted experiments, result submission for target-less ones). Create-only requests are idempotent on a caller-supplied id.",
636
+ description: "By default triggers a new experiment on the dataset against the specified target: returns immediately with pending status and execution happens in background. With durable: true it starts as a durable evented workflow instead, which runs wherever the Mastra pubsub events are handled. With start: false, creates the experiment without running it so the caller can drive the loop (run-item for targeted experiments, result submission for target-less ones). Create-only requests are idempotent on a caller-supplied id.",
636
637
  tags: ["Datasets"],
637
638
  requiresAuth: true,
638
639
  handler: async ({ mastra, datasetId, ...params }) => {
639
640
  assertDatasetsAvailable();
640
641
  try {
641
- const { start, id, targetType, targetId, name, description, metadata, scorerIds, version, agentVersion, agentModel, maxConcurrency, provenance, grouping, requestContext: rawRequestContext, versions } = params;
642
+ const { start, id, targetType, targetId, name, description, metadata, scorerIds, version, agentVersion, agentModel, maxConcurrency, itemTimeout, maxRetries, durable, provenance, grouping, requestContext: rawRequestContext, versions } = params;
642
643
  const requestContext = rawRequestContext instanceof _mastra_core_request_context.RequestContext ? rawRequestContext.all : rawRequestContext;
643
644
  const ds = await mastra.datasets.get({ id: datasetId });
644
645
  if (start === false) {
@@ -667,6 +668,7 @@ const TRIGGER_EXPERIMENT_ROUTE = require_route_builder.createRoute({
667
668
  };
668
669
  }
669
670
  if (!targetType || !targetId) throw new require_http_exception.HTTPException(400, { message: "targetType and targetId are required to start an experiment" });
671
+ if (durable && typeof mastra.__ensureExperimentWorkflow !== "function") throw new require_http_exception.HTTPException(400, { message: "durable experiments need a newer @mastra/core; upgrade it together with @mastra/server" });
670
672
  const result = await ds.startExperimentAsync({
671
673
  targetType,
672
674
  targetId,
@@ -678,10 +680,13 @@ const TRIGGER_EXPERIMENT_ROUTE = require_route_builder.createRoute({
678
680
  agentVersion,
679
681
  agentModel: agentModel ? `${agentModel.provider}/${agentModel.modelId}` : void 0,
680
682
  maxConcurrency,
683
+ itemTimeout,
684
+ maxRetries,
681
685
  provenance,
682
686
  grouping,
683
687
  requestContext,
684
- versions
688
+ versions,
689
+ durable
685
690
  });
686
691
  return {
687
692
  experimentId: result.experimentId,
@@ -689,7 +694,7 @@ const TRIGGER_EXPERIMENT_ROUTE = require_route_builder.createRoute({
689
694
  totalItems: result.totalItems ?? 0,
690
695
  succeededCount: 0,
691
696
  failedCount: 0,
692
- startedAt: /* @__PURE__ */ new Date(),
697
+ startedAt: durable ? null : /* @__PURE__ */ new Date(),
693
698
  completedAt: null,
694
699
  results: []
695
700
  };
@@ -1121,10 +1126,10 @@ const BATCH_DELETE_ITEMS_ROUTE = require_route_builder.createRoute({
1121
1126
  });
1122
1127
  const GENERATE_ITEMS_SYSTEM_PROMPT = `You are a test data generation expert. Your job is to generate realistic, diverse test data items for an AI agent evaluation dataset.
1123
1128
 
1124
- You will be given context about the agent being tested — its purpose, system prompt, and available tools. Use this to generate inputs that thoroughly exercise the agent's capabilities.
1129
+ You will be given context about the agent being tested \u2014 its purpose, system prompt, and available tools. Use this to generate inputs that thoroughly exercise the agent's capabilities.
1125
1130
 
1126
1131
  Generate test items that:
1127
- 1. Are realistic and diverse — cover edge cases, different complexities, and various scenarios
1132
+ 1. Are realistic and diverse \u2014 cover edge cases, different complexities, and various scenarios
1128
1133
  2. Match the provided schemas exactly
1129
1134
  3. Include ground truth values when a ground truth schema is provided
1130
1135
  4. Vary in difficulty (easy, medium, hard cases)
@@ -1140,7 +1145,7 @@ const GENERATE_ITEMS_ROUTE = require_route_builder.createRoute({
1140
1145
  bodySchema: require_datasets.generateItemsBodySchema,
1141
1146
  responseSchema: require_datasets.generateItemsResponseSchema,
1142
1147
  summary: "Generate dataset items using AI",
1143
- description: "Uses an LLM to generate synthetic dataset items based on the dataset schema and a user prompt. Returns generated items for review — they are NOT automatically added to the dataset.",
1148
+ description: "Uses an LLM to generate synthetic dataset items based on the dataset schema and a user prompt. Returns generated items for review \u2014 they are NOT automatically added to the dataset.",
1144
1149
  tags: ["Datasets"],
1145
1150
  requiresAuth: true,
1146
1151
  handler: async ({ mastra, datasetId, modelId, prompt, count, agentContext }) => {
@@ -1209,7 +1214,7 @@ Guidelines:
1209
1214
  - If items have scores, use low scores as signals for the failure type
1210
1215
  - Be specific about what went wrong
1211
1216
  - IMPORTANT: If existing tags are provided, PREFER reusing them over creating new ones. Only create new tags when no existing tag fits.
1212
- - Items may already have tags — consider those when assigning new ones and avoid duplicating existing tags on an item.
1217
+ - Items may already have tags \u2014 consider those when assigning new ones and avoid duplicating existing tags on an item.
1213
1218
  - The "reason" field should be 1-2 sentences explaining the specific evidence for each tag assignment.`;
1214
1219
  const CLUSTER_FAILURES_ROUTE = require_route_builder.createRoute({
1215
1220
  method: "POST",
@@ -1256,7 +1261,7 @@ const CLUSTER_FAILURES_ROUTE = require_route_builder.createRoute({
1256
1261
  let userMessage = `Analyze these ${items.length} failure items and group them into clusters of common failure patterns:\n\n${itemSummaries.join("\n\n")}`;
1257
1262
  if (availableTags && availableTags.length > 0) userMessage += `\n\nExisting tag vocabulary (prefer reusing these): ${availableTags.join(", ")}`;
1258
1263
  if (prompt) userMessage += `\n\nAdditional instructions from the reviewer: ${prompt}`;
1259
- userMessage += `\n\nReturn both "clusters" (grouping items by pattern) and "proposedTags" (a list mapping each item ID to the tag labels you recommend, with a "reason" explaining why). For proposedTags, only include NEW tags to add — do not repeat tags the item already has.`;
1264
+ userMessage += `\n\nReturn both "clusters" (grouping items by pattern) and "proposedTags" (a list mapping each item ID to the tag labels you recommend, with a "reason" explaining why). For proposedTags, only include NEW tags to add \u2014 do not repeat tags the item already has.`;
1260
1265
  const generated = await (await clusterAgent.generate(userMessage, { structuredOutput: { schema: outputSchema } })).object;
1261
1266
  return {
1262
1267
  clusters: generated.clusters,
@@ -2141,6 +2141,9 @@ export declare const TRIGGER_EXPERIMENT_ROUTE: Omit<import("@mastra/core/server"
2141
2141
  modelId: string;
2142
2142
  } | undefined;
2143
2143
  maxConcurrency?: number | undefined;
2144
+ itemTimeout?: number | undefined;
2145
+ maxRetries?: number | undefined;
2146
+ durable?: boolean | undefined;
2144
2147
  provenance?: {
2145
2148
  source?: string | undefined;
2146
2149
  sourceId?: string | undefined;
@@ -2246,6 +2249,9 @@ export declare const TRIGGER_EXPERIMENT_ROUTE: Omit<import("@mastra/core/server"
2246
2249
  modelId: z.ZodString;
2247
2250
  }, z.core.$strip>>;
2248
2251
  maxConcurrency: z.ZodOptional<z.ZodNumber>;
2252
+ itemTimeout: z.ZodOptional<z.ZodNumber>;
2253
+ maxRetries: z.ZodOptional<z.ZodNumber>;
2254
+ durable: z.ZodOptional<z.ZodBoolean>;
2249
2255
  provenance: z.ZodOptional<z.ZodObject<{
2250
2256
  source: z.ZodOptional<z.ZodString>;
2251
2257
  sourceId: z.ZodOptional<z.ZodString>;
@@ -1,7 +1,7 @@
1
1
  import { g as isReservedRequestContextKey } from "../../constants-C1ASuP4t.js";
2
2
  import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
3
3
  import { f as successResponseSchema } from "../../common-J-yUnHk9.js";
4
- import { A as listDatasetVersionsResponseSchema, B as paginationQuerySchema, C as experimentResultResponseSchema, D as generateItemsResponseSchema, E as generateItemsBodySchema, F as listExperimentsQuerySchema, H as runExperimentItemBodySchema, I as listExperimentsResponseSchema, J as triggerExperimentBodySchema, K as submitExperimentResultBodySchema, L as listItemVersionsResponseSchema, M as listDatasetsResponseSchema, N as listExperimentResultsQuerySchema, P as listExperimentResultsResponseSchema, Q as updateItemBodySchema, R as listItemsQuerySchema, S as experimentResultIdPathParams, T as experimentSummaryResponseSchema, U as runExperimentItemResponseSchema, V as reviewSummaryResponseSchema, X as updateExperimentBodySchema, Y as updateDatasetBodySchema, Z as updateExperimentResultBodySchema, _ as datasetItemVersionPathParams, a as batchInsertItemsBodySchema, b as experimentIdPathParams, c as clusterFailuresResponseSchema, d as createDatasetBodySchema, f as datasetAndExperimentIdPathParams, g as datasetItemResponseSchema, h as datasetIdPathParams, i as batchDeleteItemsResponseSchema, j as listDatasetsQuerySchema, l as compareExperimentsBodySchema, m as datasetExperimentAndItemIdPathParams, o as batchInsertItemsResponseSchema, p as datasetAndItemIdPathParams, q as tenancyQuerySchema, r as batchDeleteItemsBodySchema, s as clusterFailuresBodySchema, t as addItemBodySchema, u as comparisonResponseSchema, v as datasetResponseSchema, x as experimentResponseSchema, z as listItemsResponseSchema } from "../../datasets-C1XJLHN8.js";
4
+ import { A as listDatasetVersionsResponseSchema, B as paginationQuerySchema, C as experimentResultResponseSchema, D as generateItemsResponseSchema, E as generateItemsBodySchema, F as listExperimentsQuerySchema, H as runExperimentItemBodySchema, I as listExperimentsResponseSchema, J as triggerExperimentBodySchema, K as submitExperimentResultBodySchema, L as listItemVersionsResponseSchema, M as listDatasetsResponseSchema, N as listExperimentResultsQuerySchema, P as listExperimentResultsResponseSchema, Q as updateItemBodySchema, R as listItemsQuerySchema, S as experimentResultIdPathParams, T as experimentSummaryResponseSchema, U as runExperimentItemResponseSchema, V as reviewSummaryResponseSchema, X as updateExperimentBodySchema, Y as updateDatasetBodySchema, Z as updateExperimentResultBodySchema, _ as datasetItemVersionPathParams, a as batchInsertItemsBodySchema, b as experimentIdPathParams, c as clusterFailuresResponseSchema, d as createDatasetBodySchema, f as datasetAndExperimentIdPathParams, g as datasetItemResponseSchema, h as datasetIdPathParams, i as batchDeleteItemsResponseSchema, j as listDatasetsQuerySchema, l as compareExperimentsBodySchema, m as datasetExperimentAndItemIdPathParams, o as batchInsertItemsResponseSchema, p as datasetAndItemIdPathParams, q as tenancyQuerySchema, r as batchDeleteItemsBodySchema, s as clusterFailuresBodySchema, t as addItemBodySchema, u as comparisonResponseSchema, v as datasetResponseSchema, x as experimentResponseSchema, z as listItemsResponseSchema } from "../../datasets-CYdtUF8e.js";
5
5
  import { n as createRoute } from "../../route-builder-Dz18c3qm.js";
6
6
  import { handleError } from "./error.js";
7
7
  import { z as z$1 } from "zod";
@@ -72,7 +72,8 @@ function getHttpStatusForMastraError(errorId) {
72
72
  case "DATASET_ITEM_NOT_FOUND": return 404;
73
73
  case "EXPERIMENT_HAS_TARGET":
74
74
  case "EXPERIMENT_HAS_NO_TARGET":
75
- case "EXPERIMENT_INVALID_TARGET": return 400;
75
+ case "EXPERIMENT_INVALID_TARGET":
76
+ case "EXPERIMENT_NOT_DURABLE": return 400;
76
77
  case "EXPERIMENT_TARGET_NOT_FOUND": return 404;
77
78
  case "DATASET_ITEM_IDENTITY_CONFLICT":
78
79
  case "EXPERIMENT_ID_CONFLICT":
@@ -630,13 +631,13 @@ const TRIGGER_EXPERIMENT_ROUTE = createRoute({
630
631
  bodySchema: triggerExperimentBodySchema,
631
632
  responseSchema: experimentSummaryResponseSchema,
632
633
  summary: "Trigger or create an experiment",
633
- description: "By default triggers a new experiment on the dataset against the specified target: returns immediately with pending status and execution happens in background. With start: false, creates the experiment without running it so the caller can drive the loop (run-item for targeted experiments, result submission for target-less ones). Create-only requests are idempotent on a caller-supplied id.",
634
+ description: "By default triggers a new experiment on the dataset against the specified target: returns immediately with pending status and execution happens in background. With durable: true it starts as a durable evented workflow instead, which runs wherever the Mastra pubsub events are handled. With start: false, creates the experiment without running it so the caller can drive the loop (run-item for targeted experiments, result submission for target-less ones). Create-only requests are idempotent on a caller-supplied id.",
634
635
  tags: ["Datasets"],
635
636
  requiresAuth: true,
636
637
  handler: async ({ mastra, datasetId, ...params }) => {
637
638
  assertDatasetsAvailable();
638
639
  try {
639
- const { start, id, targetType, targetId, name, description, metadata, scorerIds, version, agentVersion, agentModel, maxConcurrency, provenance, grouping, requestContext: rawRequestContext, versions } = params;
640
+ const { start, id, targetType, targetId, name, description, metadata, scorerIds, version, agentVersion, agentModel, maxConcurrency, itemTimeout, maxRetries, durable, provenance, grouping, requestContext: rawRequestContext, versions } = params;
640
641
  const requestContext = rawRequestContext instanceof RequestContext ? rawRequestContext.all : rawRequestContext;
641
642
  const ds = await mastra.datasets.get({ id: datasetId });
642
643
  if (start === false) {
@@ -665,6 +666,7 @@ const TRIGGER_EXPERIMENT_ROUTE = createRoute({
665
666
  };
666
667
  }
667
668
  if (!targetType || !targetId) throw new HTTPException(400, { message: "targetType and targetId are required to start an experiment" });
669
+ if (durable && typeof mastra.__ensureExperimentWorkflow !== "function") throw new HTTPException(400, { message: "durable experiments need a newer @mastra/core; upgrade it together with @mastra/server" });
668
670
  const result = await ds.startExperimentAsync({
669
671
  targetType,
670
672
  targetId,
@@ -676,10 +678,13 @@ const TRIGGER_EXPERIMENT_ROUTE = createRoute({
676
678
  agentVersion,
677
679
  agentModel: agentModel ? `${agentModel.provider}/${agentModel.modelId}` : void 0,
678
680
  maxConcurrency,
681
+ itemTimeout,
682
+ maxRetries,
679
683
  provenance,
680
684
  grouping,
681
685
  requestContext,
682
- versions
686
+ versions,
687
+ durable
683
688
  });
684
689
  return {
685
690
  experimentId: result.experimentId,
@@ -687,7 +692,7 @@ const TRIGGER_EXPERIMENT_ROUTE = createRoute({
687
692
  totalItems: result.totalItems ?? 0,
688
693
  succeededCount: 0,
689
694
  failedCount: 0,
690
- startedAt: /* @__PURE__ */ new Date(),
695
+ startedAt: durable ? null : /* @__PURE__ */ new Date(),
691
696
  completedAt: null,
692
697
  results: []
693
698
  };
@@ -1119,10 +1124,10 @@ const BATCH_DELETE_ITEMS_ROUTE = createRoute({
1119
1124
  });
1120
1125
  const GENERATE_ITEMS_SYSTEM_PROMPT = `You are a test data generation expert. Your job is to generate realistic, diverse test data items for an AI agent evaluation dataset.
1121
1126
 
1122
- You will be given context about the agent being tested — its purpose, system prompt, and available tools. Use this to generate inputs that thoroughly exercise the agent's capabilities.
1127
+ You will be given context about the agent being tested \u2014 its purpose, system prompt, and available tools. Use this to generate inputs that thoroughly exercise the agent's capabilities.
1123
1128
 
1124
1129
  Generate test items that:
1125
- 1. Are realistic and diverse — cover edge cases, different complexities, and various scenarios
1130
+ 1. Are realistic and diverse \u2014 cover edge cases, different complexities, and various scenarios
1126
1131
  2. Match the provided schemas exactly
1127
1132
  3. Include ground truth values when a ground truth schema is provided
1128
1133
  4. Vary in difficulty (easy, medium, hard cases)
@@ -1138,7 +1143,7 @@ const GENERATE_ITEMS_ROUTE = createRoute({
1138
1143
  bodySchema: generateItemsBodySchema,
1139
1144
  responseSchema: generateItemsResponseSchema,
1140
1145
  summary: "Generate dataset items using AI",
1141
- description: "Uses an LLM to generate synthetic dataset items based on the dataset schema and a user prompt. Returns generated items for review — they are NOT automatically added to the dataset.",
1146
+ description: "Uses an LLM to generate synthetic dataset items based on the dataset schema and a user prompt. Returns generated items for review \u2014 they are NOT automatically added to the dataset.",
1142
1147
  tags: ["Datasets"],
1143
1148
  requiresAuth: true,
1144
1149
  handler: async ({ mastra, datasetId, modelId, prompt, count, agentContext }) => {
@@ -1207,7 +1212,7 @@ Guidelines:
1207
1212
  - If items have scores, use low scores as signals for the failure type
1208
1213
  - Be specific about what went wrong
1209
1214
  - IMPORTANT: If existing tags are provided, PREFER reusing them over creating new ones. Only create new tags when no existing tag fits.
1210
- - Items may already have tags — consider those when assigning new ones and avoid duplicating existing tags on an item.
1215
+ - Items may already have tags \u2014 consider those when assigning new ones and avoid duplicating existing tags on an item.
1211
1216
  - The "reason" field should be 1-2 sentences explaining the specific evidence for each tag assignment.`;
1212
1217
  const CLUSTER_FAILURES_ROUTE = createRoute({
1213
1218
  method: "POST",
@@ -1254,7 +1259,7 @@ const CLUSTER_FAILURES_ROUTE = createRoute({
1254
1259
  let userMessage = `Analyze these ${items.length} failure items and group them into clusters of common failure patterns:\n\n${itemSummaries.join("\n\n")}`;
1255
1260
  if (availableTags && availableTags.length > 0) userMessage += `\n\nExisting tag vocabulary (prefer reusing these): ${availableTags.join(", ")}`;
1256
1261
  if (prompt) userMessage += `\n\nAdditional instructions from the reviewer: ${prompt}`;
1257
- userMessage += `\n\nReturn both "clusters" (grouping items by pattern) and "proposedTags" (a list mapping each item ID to the tag labels you recommend, with a "reason" explaining why). For proposedTags, only include NEW tags to add — do not repeat tags the item already has.`;
1262
+ userMessage += `\n\nReturn both "clusters" (grouping items by pattern) and "proposedTags" (a list mapping each item ID to the tag labels you recommend, with a "reason" explaining why). For proposedTags, only include NEW tags to add \u2014 do not repeat tags the item already has.`;
1258
1263
  const generated = await (await clusterAgent.generate(userMessage, { structuredOutput: { schema: outputSchema } })).object;
1259
1264
  return {
1260
1265
  clusters: generated.clusters,
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
- const require_dynamic_workflows = require("../../dynamic-workflows-DPgV6qtS.cjs");
3
+ const require_dynamic_workflows = require("../../dynamic-workflows-CEKdGcSr.cjs");
4
4
  exports.DELETE_DYNAMIC_WORKFLOW_ROUTE = require_dynamic_workflows.DELETE_DYNAMIC_WORKFLOW_ROUTE;
5
5
  exports.GET_DYNAMIC_WORKFLOW_ROUTE = require_dynamic_workflows.GET_DYNAMIC_WORKFLOW_ROUTE;
6
6
  exports.LIST_DYNAMIC_WORKFLOWS_ROUTE = require_dynamic_workflows.LIST_DYNAMIC_WORKFLOWS_ROUTE;
@@ -1 +1 @@
1
- export { t as DELETE_DYNAMIC_WORKFLOW_ROUTE, n as GET_DYNAMIC_WORKFLOW_ROUTE, r as LIST_DYNAMIC_WORKFLOWS_ROUTE, i as UPSERT_DYNAMIC_WORKFLOW_ROUTE } from "../../dynamic-workflows-DmkCJ4Lp.js";
1
+ export { t as DELETE_DYNAMIC_WORKFLOW_ROUTE, n as GET_DYNAMIC_WORKFLOW_ROUTE, r as LIST_DYNAMIC_WORKFLOWS_ROUTE, i as UPSERT_DYNAMIC_WORKFLOW_ROUTE } from "../../dynamic-workflows-DF9X_oDG.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
- const require_editor_builder = require("../../editor-builder-BS2xogE_.cjs");
3
+ const require_editor_builder = require("../../editor-builder-G1ub9j0s.cjs");
4
4
  exports.GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE = require_editor_builder.GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE;
5
5
  exports.GET_EDITOR_BUILDER_SETTINGS_ROUTE = require_editor_builder.GET_EDITOR_BUILDER_SETTINGS_ROUTE;
6
6
  exports.GET_INFRASTRUCTURE_STATUS_ROUTE = require_editor_builder.GET_INFRASTRUCTURE_STATUS_ROUTE;
@@ -1 +1 @@
1
- export { t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE, n as GET_EDITOR_BUILDER_SETTINGS_ROUTE, r as GET_INFRASTRUCTURE_STATUS_ROUTE, i as isBuilderFeatureEnabled, a as requireBuilderFeature } from "../../editor-builder-BayzCprJ.js";
1
+ export { t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE, n as GET_EDITOR_BUILDER_SETTINGS_ROUTE, r as GET_INFRASTRUCTURE_STATUS_ROUTE, i as isBuilderFeatureEnabled, a as requireBuilderFeature } from "../../editor-builder-BRzXnsRW.js";
@@ -132,7 +132,7 @@ function handleError(error, defaultMessage) {
132
132
  stack: error.stack,
133
133
  cause: error
134
134
  });
135
- if (isSchemaValidationError(error)) throw new require_http_exception.HTTPException(400, {
135
+ if (isSchemaValidationError(error) || error instanceof Error && error.name === "KnowledgeInvalidCursorError") throw new require_http_exception.HTTPException(400, {
136
136
  message: error.message,
137
137
  stack: error.stack,
138
138
  cause: error
@@ -130,7 +130,7 @@ function handleError(error, defaultMessage) {
130
130
  stack: error.stack,
131
131
  cause: error
132
132
  });
133
- if (isSchemaValidationError(error)) throw new HTTPException(400, {
133
+ if (isSchemaValidationError(error) || error instanceof Error && error.name === "KnowledgeInvalidCursorError") throw new HTTPException(400, {
134
134
  message: error.message,
135
135
  stack: error.stack,
136
136
  cause: error
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
3
  const require_server_handlers_authorship = require("./authorship.cjs");
4
- const require_editor_builder = require("../../editor-builder-BS2xogE_.cjs");
4
+ const require_editor_builder = require("../../editor-builder-G1ub9j0s.cjs");
5
5
  // src/server/handlers/favorites-enrichment.ts
6
6
  /**
7
7
  * Resolve the EE feature flag plus the caller's favorited set for a list of
@@ -1,5 +1,5 @@
1
1
  import { getCallerAuthorId } from "./authorship.js";
2
- import { i as isBuilderFeatureEnabled } from "../../editor-builder-BayzCprJ.js";
2
+ import { i as isBuilderFeatureEnabled } from "../../editor-builder-BRzXnsRW.js";
3
3
  // src/server/handlers/favorites-enrichment.ts
4
4
  /**
5
5
  * Resolve the EE feature flag plus the caller's favorited set for a list of
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
- const require_knowledge = require("../../knowledge-DL03nbSW.cjs");
3
+ const require_knowledge = require("../../knowledge-B3768ERP.cjs");
4
4
  exports.GET_KNOWLEDGE_ACTIVITY_ROUTE = require_knowledge.GET_KNOWLEDGE_ACTIVITY_ROUTE;
5
5
  exports.GET_KNOWLEDGE_GRAPH_ROUTE = require_knowledge.GET_KNOWLEDGE_GRAPH_ROUTE;
6
6
  exports.GET_KNOWLEDGE_LINK_COUNTS_ROUTE = require_knowledge.GET_KNOWLEDGE_LINK_COUNTS_ROUTE;
@@ -1 +1 @@
1
- export { t as GET_KNOWLEDGE_ACTIVITY_ROUTE, n as GET_KNOWLEDGE_GRAPH_ROUTE, r as GET_KNOWLEDGE_LINK_COUNTS_ROUTE, i as GET_KNOWLEDGE_PAGE_LINKS_ROUTE, a as GET_KNOWLEDGE_PAGE_ROUTE, o as GET_KNOWLEDGE_TREE_ROUTE, s as LIST_KNOWLEDGE_ROUTE, c as SEARCH_KNOWLEDGE_ROUTE, l as STREAM_KNOWLEDGE_EVENTS_ROUTE } from "../../knowledge-DAqUHFK5.js";
1
+ export { t as GET_KNOWLEDGE_ACTIVITY_ROUTE, n as GET_KNOWLEDGE_GRAPH_ROUTE, r as GET_KNOWLEDGE_LINK_COUNTS_ROUTE, i as GET_KNOWLEDGE_PAGE_LINKS_ROUTE, a as GET_KNOWLEDGE_PAGE_ROUTE, o as GET_KNOWLEDGE_TREE_ROUTE, s as LIST_KNOWLEDGE_ROUTE, c as SEARCH_KNOWLEDGE_ROUTE, l as STREAM_KNOWLEDGE_EVENTS_ROUTE } from "../../knowledge-wqC0nrmu.js";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
3
  const require_observability_new_endpoints = require("../../observability-new-endpoints-iRwQxqwY.cjs");
4
- const require_observability = require("../../observability-Cn4P60P4.cjs");
4
+ const require_observability = require("../../observability-zNA_CVaz.cjs");
5
5
  exports.AGGREGATE_SPANS = require_observability_new_endpoints.AGGREGATE_SPANS;
6
6
  exports.AGGREGATE_TRACES = require_observability_new_endpoints.AGGREGATE_TRACES;
7
7
  exports.CREATE_FEEDBACK = require_observability_new_endpoints.CREATE_FEEDBACK;
@@ -1,3 +1,3 @@
1
1
  import { A as GET_TRACE_QUERY_FIELDS, B as REPLACE_FEEDBACK, C as GET_SCORE, D as GET_SCORE_TIME_SERIES, E as GET_SCORE_PERCENTILES, F as LIST_SCORES, I as NEW_ROUTES, L as QUERY_SPANS, M as LIST_FEEDBACK, N as LIST_LOGS, O as GET_SERVICE_NAMES, P as LIST_METRICS, R as QUERY_THREADS, S as GET_METRIC_TIME_SERIES, T as GET_SCORE_BREAKDOWN, V as UPDATE_FEEDBACK_REVIEW_STATUS, _ as GET_METRIC_BREAKDOWN, a as DELETE_FEEDBACK, b as GET_METRIC_NAMES, c as GET_ENTITY_NAMES, d as GET_FEEDBACK, f as GET_FEEDBACK_AGGREGATE, g as GET_METRIC_AGGREGATE, h as GET_FEEDBACK_TIME_SERIES, i as CREATE_SCORE, j as GET_TRACE_QUERY_VALUES, k as GET_TAGS, l as GET_ENTITY_TYPES, m as GET_FEEDBACK_PERCENTILES, n as AGGREGATE_TRACES, o as DELETE_SCORES, p as GET_FEEDBACK_BREAKDOWN, r as CREATE_FEEDBACK, 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";
2
- import { a as GET_TRACE_ROUTE, c as LIST_SCORES_BY_SPAN_ROUTE, d as SCORE_TRACES_ROUTE, i as GET_TRACE_LIGHT_ROUTE, l as LIST_TRACES_LIGHT_ROUTE, n as GET_BRANCH_ROUTE, o as GET_TRACE_TRAJECTORY_ROUTE, r as GET_SPAN_ROUTE, s as LIST_BRANCHES_ROUTE, t as DELETE_TRACES_ROUTE, u as LIST_TRACES_ROUTE } from "../../observability-zr7LDCQG.js";
2
+ import { a as GET_TRACE_ROUTE, c as LIST_SCORES_BY_SPAN_ROUTE, d as SCORE_TRACES_ROUTE, i as GET_TRACE_LIGHT_ROUTE, l as LIST_TRACES_LIGHT_ROUTE, n as GET_BRANCH_ROUTE, o as GET_TRACE_TRAJECTORY_ROUTE, r as GET_SPAN_ROUTE, s as LIST_BRANCHES_ROUTE, t as DELETE_TRACES_ROUTE, u as LIST_TRACES_ROUTE } from "../../observability-URaJnI_U.js";
3
3
  export { AGGREGATE_SPANS, AGGREGATE_TRACES, CREATE_FEEDBACK, CREATE_SCORE, DELETE_FEEDBACK, DELETE_SCORES, DELETE_TRACES_ROUTE, GET_BRANCH_ROUTE, GET_CAPABILITIES, GET_ENTITY_NAMES, GET_ENTITY_TYPES, GET_ENVIRONMENTS, GET_FEEDBACK, GET_FEEDBACK_AGGREGATE, GET_FEEDBACK_BREAKDOWN, GET_FEEDBACK_PERCENTILES, GET_FEEDBACK_TIME_SERIES, GET_METRIC_AGGREGATE, GET_METRIC_BREAKDOWN, GET_METRIC_LABEL_KEYS, GET_METRIC_LABEL_VALUES, GET_METRIC_NAMES, GET_METRIC_PERCENTILES, GET_METRIC_TIME_SERIES, GET_SCORE, GET_SCORE_AGGREGATE, GET_SCORE_BREAKDOWN, GET_SCORE_PERCENTILES, GET_SCORE_TIME_SERIES, GET_SERVICE_NAMES, GET_SPAN_ROUTE, GET_TAGS, GET_TRACE_LIGHT_ROUTE, GET_TRACE_QUERY_FIELDS, GET_TRACE_QUERY_VALUES, GET_TRACE_ROUTE, GET_TRACE_TRAJECTORY_ROUTE, LIST_BRANCHES_ROUTE, LIST_FEEDBACK, LIST_LOGS, LIST_METRICS, LIST_SCORES, LIST_SCORES_BY_SPAN_ROUTE, LIST_TRACES_LIGHT_ROUTE, LIST_TRACES_ROUTE, NEW_ROUTES, QUERY_SPANS, QUERY_THREADS, QUERY_TRACES, REPLACE_FEEDBACK, SCORE_TRACES_ROUTE, UPDATE_FEEDBACK_REVIEW_STATUS };
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
- const require_plans = require("../../plans-Bes_LVgv.cjs");
3
+ const require_plans = require("../../plans-kA8E3Auv.cjs");
4
4
  exports.READ_AGENT_PLAN_ROUTE = require_plans.READ_AGENT_PLAN_ROUTE;
@@ -1 +1 @@
1
- export { t as READ_AGENT_PLAN_ROUTE } from "../../plans-xGwuiZUd.js";
1
+ export { t as READ_AGENT_PLAN_ROUTE } from "../../plans-DGC1grMp.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
- const require_responses = require("../../responses-BH567IZf.cjs");
3
+ const require_responses = require("../../responses-B4GDz-Nm.cjs");
4
4
  exports.CREATE_RESPONSE_ROUTE = require_responses.CREATE_RESPONSE_ROUTE;
5
5
  exports.DELETE_RESPONSE_ROUTE = require_responses.DELETE_RESPONSE_ROUTE;
6
6
  exports.GET_RESPONSE_ROUTE = require_responses.GET_RESPONSE_ROUTE;
@@ -1 +1 @@
1
- export { t as CREATE_RESPONSE_ROUTE, n as DELETE_RESPONSE_ROUTE, r as GET_RESPONSE_ROUTE } from "../../responses-CwQO5y2X.js";
1
+ export { t as CREATE_RESPONSE_ROUTE, n as DELETE_RESPONSE_ROUTE, r as GET_RESPONSE_ROUTE } from "../../responses--nGf7l3O.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
- const require_schedules = require("../../schedules-0ceTSdBB.cjs");
3
+ const require_schedules = require("../../schedules-CwL28Eca.cjs");
4
4
  exports.CREATE_SCHEDULE_ROUTE = require_schedules.CREATE_SCHEDULE_ROUTE;
5
5
  exports.DELETE_SCHEDULE_ROUTE = require_schedules.DELETE_SCHEDULE_ROUTE;
6
6
  exports.GET_SCHEDULE_ROUTE = require_schedules.GET_SCHEDULE_ROUTE;
@@ -1 +1 @@
1
- export { t as CREATE_SCHEDULE_ROUTE, n as DELETE_SCHEDULE_ROUTE, r as GET_SCHEDULE_ROUTE, i as LIST_SCHEDULES_ROUTE, a as LIST_SCHEDULE_TRIGGERS_ROUTE, o as PAUSE_SCHEDULE_ROUTE, s as RESUME_SCHEDULE_ROUTE, c as RUN_SCHEDULE_ROUTE, l as UPDATE_SCHEDULE_ROUTE } from "../../schedules-D_VfFdAH.js";
1
+ export { t as CREATE_SCHEDULE_ROUTE, n as DELETE_SCHEDULE_ROUTE, r as GET_SCHEDULE_ROUTE, i as LIST_SCHEDULES_ROUTE, a as LIST_SCHEDULE_TRIGGERS_ROUTE, o as PAUSE_SCHEDULE_ROUTE, s as RESUME_SCHEDULE_ROUTE, c as RUN_SCHEDULE_ROUTE, l as UPDATE_SCHEDULE_ROUTE } from "../../schedules-RWgPeypN.js";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
3
  const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
4
- const require_scorer_versions = require("../../scorer-versions-Bhdvt-cX.cjs");
4
+ const require_scorer_versions = require("../../scorer-versions-DK-PGj7-.cjs");
5
5
  const require_route_builder = require("../../route-builder-DjTBxSZN.cjs");
6
6
  const require_utils = require("../../utils-DQJOBnMo.cjs");
7
7
  const require_server_handlers_error = require("./error.cjs");
@@ -1,5 +1,5 @@
1
1
  import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
2
- import { a as createScorerVersionResponseSchema, c as listScorerVersionsQuerySchema, d as scorerVersionIdPathParams, f as scorerVersionPathParams, i as createScorerVersionBodySchema, l as listScorerVersionsResponseSchema, n as compareScorerVersionsQuerySchema, o as deleteScorerVersionResponseSchema, r as compareScorerVersionsResponseSchema, s as getScorerVersionResponseSchema, t as activateScorerVersionResponseSchema, u as restoreScorerVersionResponseSchema } from "../../scorer-versions-DhT7Lj33.js";
2
+ import { a as createScorerVersionResponseSchema, c as listScorerVersionsQuerySchema, d as scorerVersionIdPathParams, f as scorerVersionPathParams, i as createScorerVersionBodySchema, l as listScorerVersionsResponseSchema, n as compareScorerVersionsQuerySchema, o as deleteScorerVersionResponseSchema, r as compareScorerVersionsResponseSchema, s as getScorerVersionResponseSchema, t as activateScorerVersionResponseSchema, u as restoreScorerVersionResponseSchema } from "../../scorer-versions-oJoK2Exw.js";
3
3
  import { n as createRoute } from "../../route-builder-Dz18c3qm.js";
4
4
  import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-C2VRtQjI.js";
5
5
  import { handleError } from "./error.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
- const require_scores = require("../../scores-CXNkN7Bn.cjs");
3
+ const require_scores = require("../../scores-D0Qq7TfU.cjs");
4
4
  exports.GET_SCORER_ROUTE = require_scores.GET_SCORER_ROUTE;
5
5
  exports.LIST_SCORERS_ROUTE = require_scores.LIST_SCORERS_ROUTE;
6
6
  exports.LIST_SCORES_BY_ENTITY_ID_ROUTE = require_scores.LIST_SCORES_BY_ENTITY_ID_ROUTE;
@@ -1 +1 @@
1
- export { t as GET_SCORER_ROUTE, n as LIST_SCORERS_ROUTE, r as LIST_SCORES_BY_ENTITY_ID_ROUTE, i as LIST_SCORES_BY_RUN_ID_ROUTE, a as LIST_SCORES_BY_SCORER_ID_ROUTE, o as SAVE_SCORE_ROUTE } from "../../scores-ksmJiJnJ.js";
1
+ export { t as GET_SCORER_ROUTE, n as LIST_SCORERS_ROUTE, r as LIST_SCORES_BY_ENTITY_ID_ROUTE, i as LIST_SCORES_BY_RUN_ID_ROUTE, a as LIST_SCORES_BY_SCORER_ID_ROUTE, o as SAVE_SCORE_ROUTE } from "../../scores-Biv7XGW_.js";
@@ -2,11 +2,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
3
  const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
4
4
  const require_favorites = require("../../favorites-D0CoxxQn.cjs");
5
- const require_stored_agents = require("../../stored-agents-m0Knvv29.cjs");
5
+ const require_stored_agents = require("../../stored-agents-BS4_LGSs.cjs");
6
6
  const require_route_builder = require("../../route-builder-DjTBxSZN.cjs");
7
7
  const require_utils = require("../../utils-DQJOBnMo.cjs");
8
8
  const require_server_handlers_authorship = require("./authorship.cjs");
9
- const require_editor_builder = require("../../editor-builder-BS2xogE_.cjs");
9
+ const require_editor_builder = require("../../editor-builder-G1ub9j0s.cjs");
10
10
  const require_server_handlers_error = require("./error.cjs");
11
11
  // src/server/handlers/stored-agent-favorites.ts
12
12
  /**
@@ -73,7 +73,7 @@ const UNFAVORITE_STORED_AGENT_ROUTE = require_route_builder.createRoute({
73
73
  pathParamSchema: require_stored_agents.storedAgentIdPathParams,
74
74
  responseSchema: require_favorites.favoriteToggleResponseSchema,
75
75
  summary: "Unfavorite a stored agent",
76
- description: "Removes the caller’s favorite from the stored agent. Idempotent.",
76
+ description: "Removes the caller\u2019s favorite from the stored agent. Idempotent.",
77
77
  tags: ["Stored Agents"],
78
78
  requiresAuth: true,
79
79
  requiresPermission: "stored-agents:read",
@@ -1,10 +1,10 @@
1
1
  import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
2
2
  import { t as favoriteToggleResponseSchema } from "../../favorites-8aieznq3.js";
3
- import { C as storedAgentIdPathParams } from "../../stored-agents-DmN_pIIl.js";
3
+ import { C as storedAgentIdPathParams } from "../../stored-agents-DcyDMKP2.js";
4
4
  import { n as createRoute } from "../../route-builder-Dz18c3qm.js";
5
5
  import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-C2VRtQjI.js";
6
6
  import { assertReadAccess, getCallerAuthorId } from "./authorship.js";
7
- import { a as requireBuilderFeature } from "../../editor-builder-BayzCprJ.js";
7
+ import { a as requireBuilderFeature } from "../../editor-builder-BRzXnsRW.js";
8
8
  import { handleError } from "./error.js";
9
9
  // src/server/handlers/stored-agent-favorites.ts
10
10
  /**
@@ -71,7 +71,7 @@ const UNFAVORITE_STORED_AGENT_ROUTE = createRoute({
71
71
  pathParamSchema: storedAgentIdPathParams,
72
72
  responseSchema: favoriteToggleResponseSchema,
73
73
  summary: "Unfavorite a stored agent",
74
- description: "Removes the caller’s favorite from the stored agent. Idempotent.",
74
+ description: "Removes the caller\u2019s favorite from the stored agent. Idempotent.",
75
75
  tags: ["Stored Agents"],
76
76
  requiresAuth: true,
77
77
  requiresPermission: "stored-agents:read",
@@ -2,12 +2,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
3
  const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
4
4
  const require_common = require("../../common-D5XxSuvu.cjs");
5
- const require_stored_agents = require("../../stored-agents-m0Knvv29.cjs");
5
+ const require_stored_agents = require("../../stored-agents-BS4_LGSs.cjs");
6
6
  const require_route_builder = require("../../route-builder-DjTBxSZN.cjs");
7
7
  const require_utils = require("../../utils-DQJOBnMo.cjs");
8
8
  const require_server_handlers_author_enrichment = require("./author-enrichment.cjs");
9
9
  const require_server_handlers_authorship = require("./authorship.cjs");
10
- const require_editor_builder = require("../../editor-builder-BS2xogE_.cjs");
10
+ const require_editor_builder = require("../../editor-builder-G1ub9j0s.cjs");
11
11
  const require_server_handlers_error = require("./error.cjs");
12
12
  const require_server_handlers_favorites_enrichment = require("./favorites-enrichment.cjs");
13
13
  const require_server_handlers_validate_agent_instructions = require("./validate-agent-instructions.cjs");
@@ -1,11 +1,11 @@
1
1
  import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
2
2
  import { d as statusQuerySchema } from "../../common-J-yUnHk9.js";
3
- import { C as storedAgentIdPathParams, O as updateStoredAgentBodySchema, a as exportStoredAgentBodySchema, c as getStoredAgentResponseSchema, d as listStoredAgentsResponseSchema, g as previewInstructionsResponseSchema, h as previewInstructionsBodySchema, i as deleteStoredAgentResponseSchema, k as updateStoredAgentResponseSchema, m as openStoredAgentChangeRequestResponseSchema, n as createStoredAgentBodySchema, o as exportStoredAgentResponseSchema, p as openStoredAgentChangeRequestBodySchema, r as createStoredAgentResponseSchema, s as getStoredAgentDependentsResponseSchema, u as listStoredAgentsQuerySchema } from "../../stored-agents-DmN_pIIl.js";
3
+ import { C as storedAgentIdPathParams, O as updateStoredAgentBodySchema, a as exportStoredAgentBodySchema, c as getStoredAgentResponseSchema, d as listStoredAgentsResponseSchema, g as previewInstructionsResponseSchema, h as previewInstructionsBodySchema, i as deleteStoredAgentResponseSchema, k as updateStoredAgentResponseSchema, m as openStoredAgentChangeRequestResponseSchema, n as createStoredAgentBodySchema, o as exportStoredAgentResponseSchema, p as openStoredAgentChangeRequestBodySchema, r as createStoredAgentResponseSchema, s as getStoredAgentDependentsResponseSchema, u as listStoredAgentsQuerySchema } from "../../stored-agents-DcyDMKP2.js";
4
4
  import { n as createRoute } from "../../route-builder-Dz18c3qm.js";
5
5
  import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-C2VRtQjI.js";
6
6
  import { attachAuthor, prepareAuthorEnrichment } from "./author-enrichment.js";
7
7
  import { assertReadAccess, assertWriteAccess, getCallerAuthorId, matchesAuthorFilter, resolveAuthorFilter } from "./authorship.js";
8
- import { i as isBuilderFeatureEnabled } from "../../editor-builder-BayzCprJ.js";
8
+ import { i as isBuilderFeatureEnabled } from "../../editor-builder-BRzXnsRW.js";
9
9
  import { handleError } from "./error.js";
10
10
  import { enrichOrStripFavorites, prepareFavoritesEnrichment, stripFavoriteFields } from "./favorites-enrichment.js";
11
11
  import { validateAgentInstructionReferences } from "./validate-agent-instructions.js";
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-10nMEhjP.cjs");
3
3
  const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
4
4
  const require_common = require("../../common-D5XxSuvu.cjs");
5
- const require_stored_scorers = require("../../stored-scorers-iM2Qq9Nh.cjs");
5
+ const require_stored_scorers = require("../../stored-scorers-D8YYszOj.cjs");
6
6
  const require_route_builder = require("../../route-builder-DjTBxSZN.cjs");
7
7
  const require_utils = require("../../utils-DQJOBnMo.cjs");
8
8
  const require_server_handlers_error = require("./error.cjs");
@@ -1,6 +1,6 @@
1
1
  import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
2
2
  import { d as statusQuerySchema } from "../../common-J-yUnHk9.js";
3
- import { a as listStoredScorersQuerySchema, i as getStoredScorerResponseSchema, l as updateStoredScorerBodySchema, n as createStoredScorerResponseSchema, o as listStoredScorersResponseSchema, r as deleteStoredScorerResponseSchema, s as storedScorerIdPathParams, t as createStoredScorerBodySchema, u as updateStoredScorerResponseSchema } from "../../stored-scorers-2F2k6XSx.js";
3
+ import { a as listStoredScorersQuerySchema, i as getStoredScorerResponseSchema, l as updateStoredScorerBodySchema, n as createStoredScorerResponseSchema, o as listStoredScorersResponseSchema, r as deleteStoredScorerResponseSchema, s as storedScorerIdPathParams, t as createStoredScorerBodySchema, u as updateStoredScorerResponseSchema } from "../../stored-scorers-Bdz_5k57.js";
4
4
  import { n as createRoute } from "../../route-builder-Dz18c3qm.js";
5
5
  import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-C2VRtQjI.js";
6
6
  import { handleError } from "./error.js";
@@ -6,7 +6,7 @@ const require_stored_skills = require("../../stored-skills-xuecapXy.cjs");
6
6
  const require_route_builder = require("../../route-builder-DjTBxSZN.cjs");
7
7
  const require_utils = require("../../utils-DQJOBnMo.cjs");
8
8
  const require_server_handlers_authorship = require("./authorship.cjs");
9
- const require_editor_builder = require("../../editor-builder-BS2xogE_.cjs");
9
+ const require_editor_builder = require("../../editor-builder-G1ub9j0s.cjs");
10
10
  const require_server_handlers_error = require("./error.cjs");
11
11
  // src/server/handlers/stored-skill-favorites.ts
12
12
  /**
@@ -73,7 +73,7 @@ const UNFAVORITE_STORED_SKILL_ROUTE = require_route_builder.createRoute({
73
73
  pathParamSchema: require_stored_skills.storedSkillIdPathParams,
74
74
  responseSchema: require_favorites.favoriteToggleResponseSchema,
75
75
  summary: "Unfavorite a stored skill",
76
- description: "Removes the caller’s favorite from the stored skill. Idempotent.",
76
+ description: "Removes the caller\u2019s favorite from the stored skill. Idempotent.",
77
77
  tags: ["Stored Skills"],
78
78
  requiresAuth: true,
79
79
  requiresPermission: "stored-skills:read",
@@ -4,7 +4,7 @@ import { p as storedSkillIdPathParams } from "../../stored-skills-GNJMp022.js";
4
4
  import { n as createRoute } from "../../route-builder-Dz18c3qm.js";
5
5
  import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-C2VRtQjI.js";
6
6
  import { assertReadAccess, getCallerAuthorId } from "./authorship.js";
7
- import { a as requireBuilderFeature } from "../../editor-builder-BayzCprJ.js";
7
+ import { a as requireBuilderFeature } from "../../editor-builder-BRzXnsRW.js";
8
8
  import { handleError } from "./error.js";
9
9
  // src/server/handlers/stored-skill-favorites.ts
10
10
  /**
@@ -71,7 +71,7 @@ const UNFAVORITE_STORED_SKILL_ROUTE = createRoute({
71
71
  pathParamSchema: storedSkillIdPathParams,
72
72
  responseSchema: favoriteToggleResponseSchema,
73
73
  summary: "Unfavorite a stored skill",
74
- description: "Removes the caller’s favorite from the stored skill. Idempotent.",
74
+ description: "Removes the caller\u2019s favorite from the stored skill. Idempotent.",
75
75
  tags: ["Stored Skills"],
76
76
  requiresAuth: true,
77
77
  requiresPermission: "stored-skills:read",
@@ -5,7 +5,7 @@ const require_stored_skills = require("../../stored-skills-xuecapXy.cjs");
5
5
  const require_route_builder = require("../../route-builder-DjTBxSZN.cjs");
6
6
  const require_utils = require("../../utils-DQJOBnMo.cjs");
7
7
  const require_server_handlers_authorship = require("./authorship.cjs");
8
- const require_editor_builder = require("../../editor-builder-BS2xogE_.cjs");
8
+ const require_editor_builder = require("../../editor-builder-G1ub9j0s.cjs");
9
9
  const require_server_handlers_error = require("./error.cjs");
10
10
  const require_server_handlers_favorites_enrichment = require("./favorites-enrichment.cjs");
11
11
  let _mastra_core_workspace = require("@mastra/core/workspace");
@@ -3,7 +3,7 @@ import { a as deleteStoredSkillResponseSchema, c as listStoredSkillsResponseSche
3
3
  import { n as createRoute } from "../../route-builder-Dz18c3qm.js";
4
4
  import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-C2VRtQjI.js";
5
5
  import { assertReadAccess, assertWriteAccess, getCallerAuthorId, matchesAuthorFilter, resolveAuthorFilter } from "./authorship.js";
6
- import { i as isBuilderFeatureEnabled } from "../../editor-builder-BayzCprJ.js";
6
+ import { i as isBuilderFeatureEnabled } from "../../editor-builder-BRzXnsRW.js";
7
7
  import { handleError } from "./error.js";
8
8
  import { enrichOrStripFavorites, prepareFavoritesEnrichment, stripFavoriteFields } from "./favorites-enrichment.js";
9
9
  import { LocalSkillSource } from "@mastra/core/workspace";
@@ -90,7 +90,7 @@ const GET_API_SCHEMA_ROUTE = require_route_builder.createRoute({
90
90
  tags: ["System"],
91
91
  requiresAuth: true,
92
92
  handler: async () => {
93
- const { buildApiSchemaManifest } = await Promise.resolve().then(() => require("../../api-schema-manifest-DVkepK_s.cjs"));
93
+ const { buildApiSchemaManifest } = await Promise.resolve().then(() => require("../../api-schema-manifest-CX16hC7V.cjs"));
94
94
  return buildApiSchemaManifest();
95
95
  }
96
96
  });
@@ -88,7 +88,7 @@ const GET_API_SCHEMA_ROUTE = createRoute({
88
88
  tags: ["System"],
89
89
  requiresAuth: true,
90
90
  handler: async () => {
91
- const { buildApiSchemaManifest } = await import("../../api-schema-manifest-BjhiTdNv.js");
91
+ const { buildApiSchemaManifest } = await import("../../api-schema-manifest-4PK1dBWt.js");
92
92
  return buildApiSchemaManifest();
93
93
  }
94
94
  });