@mastra/server 1.84.0-alpha.3 → 1.84.0-alpha.5

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 (153) hide show
  1. package/dist/_types/@mastra_schema-compat@1.4.0/dist/_types/@internal_ai-sdk-v5@0.0.96/dist/index.d.ts +61 -2
  2. package/dist/_types/@mastra_schema-compat@1.4.0/dist/_types/@internal_ai-v6@0.0.96/dist/index.d.ts +9 -1
  3. package/dist/{a2a-CY85JalK.js → a2a-By6Kef65.js} +2 -2
  4. package/dist/{a2a-CY85JalK.js.map → a2a-By6Kef65.js.map} +1 -1
  5. package/dist/{a2a-Bz7vRGfF.cjs → a2a-CCYYdrZ1.cjs} +2 -2
  6. package/dist/{a2a-Bz7vRGfF.cjs.map → a2a-CCYYdrZ1.cjs.map} +1 -1
  7. package/dist/{agent-builder-DHqHFO5d.cjs → agent-builder-2Ogqa9-3.cjs} +3 -3
  8. package/dist/{agent-builder-DHqHFO5d.cjs.map → agent-builder-2Ogqa9-3.cjs.map} +1 -1
  9. package/dist/{agent-builder-D9rubwk0.js → agent-builder-Dc6cRAxh.js} +3 -3
  10. package/dist/{agent-builder-D9rubwk0.js.map → agent-builder-Dc6cRAxh.js.map} +1 -1
  11. package/dist/agent-controller-DHzp0yHo.js +1910 -0
  12. package/dist/agent-controller-DHzp0yHo.js.map +1 -0
  13. package/dist/agent-controller-Dwtk-Oi1.cjs +2131 -0
  14. package/dist/agent-controller-Dwtk-Oi1.cjs.map +1 -0
  15. package/dist/{agents-BgaBbcwb.cjs → agents-2HNpgTlJ.cjs} +7 -2
  16. package/dist/agents-2HNpgTlJ.cjs.map +1 -0
  17. package/dist/{agents-BjlUjmb1.js → agents-CEgQ1Sj5.js} +7 -2
  18. package/dist/agents-CEgQ1Sj5.js.map +1 -0
  19. package/dist/{api-schema-manifest-D1A2zfm3.js → api-schema-manifest-C889XFn5.js} +2 -2
  20. package/dist/{api-schema-manifest-D1A2zfm3.js.map → api-schema-manifest-C889XFn5.js.map} +1 -1
  21. package/dist/{api-schema-manifest-AltoM-cn.cjs → api-schema-manifest-Cn9tPyZh.cjs} +2 -2
  22. package/dist/{api-schema-manifest-AltoM-cn.cjs.map → api-schema-manifest-Cn9tPyZh.cjs.map} +1 -1
  23. package/dist/{catalogue-DPLsw3zE.js → catalogue-C2Frc4-i.js} +8 -8
  24. package/dist/{catalogue-DPLsw3zE.js.map → catalogue-C2Frc4-i.js.map} +1 -1
  25. package/dist/{catalogue-BW2a1gu4.cjs → catalogue-COgS_54R.cjs} +8 -8
  26. package/dist/{catalogue-BW2a1gu4.cjs.map → catalogue-COgS_54R.cjs.map} +1 -1
  27. package/dist/{conversations-DYqwqCWH.js → conversations-C9yLrQnn.js} +2 -2
  28. package/dist/{conversations-DYqwqCWH.js.map → conversations-C9yLrQnn.js.map} +1 -1
  29. package/dist/{conversations-Bvk5VVVJ.cjs → conversations-Cqyw1vjS.cjs} +2 -2
  30. package/dist/{conversations-Bvk5VVVJ.cjs.map → conversations-Cqyw1vjS.cjs.map} +1 -1
  31. package/dist/{dist-D2zyg15_.cjs → dist-BgMRdBmR.cjs} +759 -265
  32. package/dist/dist-BgMRdBmR.cjs.map +1 -0
  33. package/dist/{dist-CMgUx8hS.js → dist-BoE65ceB.js} +759 -266
  34. package/dist/dist-BoE65ceB.js.map +1 -0
  35. package/dist/{dist-ToffHjwd.cjs → dist-D4zWd2g_.cjs} +1 -1
  36. package/dist/dist-DLdEfrDl.js +1 -0
  37. package/dist/docs/SKILL.md +1 -1
  38. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  39. package/dist/docs/references/docs-server-mcp.md +2 -2
  40. package/dist/docs/references/reference-server-builtin-mcp-tools.md +13 -13
  41. package/dist/{editor-builder-CGM0scw2.js → editor-builder-Dd10fik0.js} +2 -2
  42. package/dist/{editor-builder-CGM0scw2.js.map → editor-builder-Dd10fik0.js.map} +1 -1
  43. package/dist/{editor-builder-SP_ledm3.cjs → editor-builder-apReuKyj.cjs} +2 -2
  44. package/dist/{editor-builder-SP_ledm3.cjs.map → editor-builder-apReuKyj.cjs.map} +1 -1
  45. package/dist/{memory-0jB2EOKx.js → memory-DS2tEXzG.js} +29 -23
  46. package/dist/memory-DS2tEXzG.js.map +1 -0
  47. package/dist/{memory-Dd7TpDfi.cjs → memory-HiP-vUvS.cjs} +28 -22
  48. package/dist/memory-HiP-vUvS.cjs.map +1 -0
  49. package/dist/{plans-BemJO4-7.js → plans-ByaTWRem.js} +2 -2
  50. package/dist/{plans-BemJO4-7.js.map → plans-ByaTWRem.js.map} +1 -1
  51. package/dist/{plans-CffjV2_6.cjs → plans-CE83TVnK.cjs} +2 -2
  52. package/dist/{plans-CffjV2_6.cjs.map → plans-CE83TVnK.cjs.map} +1 -1
  53. package/dist/{probe-image-size-CxVMV0gk.js → probe-image-size-Bu_nsmG7.js} +2 -2
  54. package/dist/{probe-image-size-CxVMV0gk.js.map → probe-image-size-Bu_nsmG7.js.map} +1 -1
  55. package/dist/{probe-image-size--ACsCqf-.cjs → probe-image-size-CIvA48eX.cjs} +2 -2
  56. package/dist/{probe-image-size--ACsCqf-.cjs.map → probe-image-size-CIvA48eX.cjs.map} +1 -1
  57. package/dist/{responses-D0mb5ubj.cjs → responses-3F7qAgFF.cjs} +2 -2
  58. package/dist/{responses-D0mb5ubj.cjs.map → responses-3F7qAgFF.cjs.map} +1 -1
  59. package/dist/{responses-BofWEQYg.js → responses-kWHiEbrl.js} +2 -2
  60. package/dist/{responses-BofWEQYg.js.map → responses-kWHiEbrl.js.map} +1 -1
  61. package/dist/{routes-CH5SQLu2.js → routes-DGoYe50m.js} +15 -15
  62. package/dist/{routes-CH5SQLu2.js.map → routes-DGoYe50m.js.map} +1 -1
  63. package/dist/{routes-bWCQflz5.cjs → routes-pkh0aVDt.cjs} +51 -51
  64. package/dist/{routes-bWCQflz5.cjs.map → routes-pkh0aVDt.cjs.map} +1 -1
  65. package/dist/{scores-CVssMyoQ.js → scores-B6h7rEBJ.js} +2 -2
  66. package/dist/{scores-CVssMyoQ.js.map → scores-B6h7rEBJ.js.map} +1 -1
  67. package/dist/{scores-0MyV08tL.cjs → scores-BuAYv1Gi.cjs} +2 -2
  68. package/dist/{scores-0MyV08tL.cjs.map → scores-BuAYv1Gi.cjs.map} +1 -1
  69. package/dist/server/handlers/a2a.cjs +1 -1
  70. package/dist/server/handlers/a2a.js +1 -1
  71. package/dist/server/handlers/agent-builder.cjs +1 -1
  72. package/dist/server/handlers/agent-builder.js +1 -1
  73. package/dist/server/handlers/agent-controller.cjs +37 -1793
  74. package/dist/server/handlers/agent-controller.d.ts.map +1 -1
  75. package/dist/server/handlers/agent-controller.js +1 -1758
  76. package/dist/server/handlers/agents.cjs +1 -1
  77. package/dist/server/handlers/agents.d.ts.map +1 -1
  78. package/dist/server/handlers/agents.js +1 -1
  79. package/dist/server/handlers/conversations.cjs +1 -1
  80. package/dist/server/handlers/conversations.js +1 -1
  81. package/dist/server/handlers/editor-builder.cjs +1 -1
  82. package/dist/server/handlers/editor-builder.js +1 -1
  83. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  84. package/dist/server/handlers/favorites-enrichment.js +1 -1
  85. package/dist/server/handlers/gateway-memory-client.cjs +26 -4
  86. package/dist/server/handlers/gateway-memory-client.cjs.map +1 -1
  87. package/dist/server/handlers/gateway-memory-client.d.ts +14 -2
  88. package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
  89. package/dist/server/handlers/gateway-memory-client.js +26 -5
  90. package/dist/server/handlers/gateway-memory-client.js.map +1 -1
  91. package/dist/server/handlers/memory.cjs +1 -1
  92. package/dist/server/handlers/memory.d.ts.map +1 -1
  93. package/dist/server/handlers/memory.js +1 -1
  94. package/dist/server/handlers/plans.cjs +1 -1
  95. package/dist/server/handlers/plans.js +1 -1
  96. package/dist/server/handlers/responses.cjs +1 -1
  97. package/dist/server/handlers/responses.js +1 -1
  98. package/dist/server/handlers/scores.cjs +1 -1
  99. package/dist/server/handlers/scores.js +1 -1
  100. package/dist/server/handlers/stored-agent-favorites.cjs +1 -1
  101. package/dist/server/handlers/stored-agent-favorites.js +1 -1
  102. package/dist/server/handlers/stored-agents.cjs +1 -1
  103. package/dist/server/handlers/stored-agents.js +1 -1
  104. package/dist/server/handlers/stored-skill-favorites.cjs +1 -1
  105. package/dist/server/handlers/stored-skill-favorites.js +1 -1
  106. package/dist/server/handlers/stored-skills.cjs +1 -1
  107. package/dist/server/handlers/stored-skills.js +1 -1
  108. package/dist/server/handlers/system.cjs +1 -1
  109. package/dist/server/handlers/system.js +1 -1
  110. package/dist/server/handlers/tools.cjs +1 -1
  111. package/dist/server/handlers/tools.js +1 -1
  112. package/dist/server/handlers/voice.cjs +1 -1
  113. package/dist/server/handlers/voice.js +1 -1
  114. package/dist/server/handlers/workflows.cjs +1 -1
  115. package/dist/server/handlers/workflows.d.ts +2 -0
  116. package/dist/server/handlers/workflows.d.ts.map +1 -1
  117. package/dist/server/handlers/workflows.js +1 -1
  118. package/dist/server/handlers.cjs +11 -11
  119. package/dist/server/handlers.js +11 -11
  120. package/dist/server/server-adapter/index.cjs +4 -3
  121. package/dist/server/server-adapter/index.js +3 -2
  122. package/dist/server/server-adapter/routes/workflows.d.ts +2 -0
  123. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -1
  124. package/dist/server/server-adapter/serialize.d.ts +6 -0
  125. package/dist/server/server-adapter/serialize.d.ts.map +1 -1
  126. package/dist/{server-adapter-SLljXCyr.cjs → server-adapter-9QWRzNZI.cjs} +3 -84
  127. package/dist/server-adapter-9QWRzNZI.cjs.map +1 -0
  128. package/dist/{server-adapter-B3kR1OJs.js → server-adapter-CB8qI6YQ.js} +4 -79
  129. package/dist/server-adapter-CB8qI6YQ.js.map +1 -0
  130. package/dist/{tools-oHRh4msa.js → tools-BuFpB7Lk.js} +2 -2
  131. package/dist/{tools-oHRh4msa.js.map → tools-BuFpB7Lk.js.map} +1 -1
  132. package/dist/{tools-CawMeeZg.cjs → tools-C_6yXAww.cjs} +2 -2
  133. package/dist/{tools-CawMeeZg.cjs.map → tools-C_6yXAww.cjs.map} +1 -1
  134. package/dist/{voice-Dk0O5mVD.cjs → voice-ByiFiTmK.cjs} +2 -2
  135. package/dist/{voice-Dk0O5mVD.cjs.map → voice-ByiFiTmK.cjs.map} +1 -1
  136. package/dist/{voice-C6bAqs79.js → voice-DOV0tU_V.js} +2 -2
  137. package/dist/{voice-C6bAqs79.js.map → voice-DOV0tU_V.js.map} +1 -1
  138. package/dist/{workflows-B-QJ0Tnv.js → workflows-9Q28sHTz.js} +5 -3
  139. package/dist/{workflows-B-QJ0Tnv.js.map → workflows-9Q28sHTz.js.map} +1 -1
  140. package/dist/{workflows-CwkEHIKW.cjs → workflows-DhmriYvN.cjs} +5 -3
  141. package/dist/{workflows-CwkEHIKW.cjs.map → workflows-DhmriYvN.cjs.map} +1 -1
  142. package/package.json +5 -5
  143. package/dist/agents-BgaBbcwb.cjs.map +0 -1
  144. package/dist/agents-BjlUjmb1.js.map +0 -1
  145. package/dist/dist-CMgUx8hS.js.map +0 -1
  146. package/dist/dist-D2zyg15_.cjs.map +0 -1
  147. package/dist/dist-HNpJc8bT.js +0 -1
  148. package/dist/memory-0jB2EOKx.js.map +0 -1
  149. package/dist/memory-Dd7TpDfi.cjs.map +0 -1
  150. package/dist/server/handlers/agent-controller.cjs.map +0 -1
  151. package/dist/server/handlers/agent-controller.js.map +0 -1
  152. package/dist/server-adapter-B3kR1OJs.js.map +0 -1
  153. package/dist/server-adapter-SLljXCyr.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { c as schemaToJsonSchema } from "./route-builder-Dz18c3qm.js";
2
- import { r as SERVER_ROUTES } from "./routes-CH5SQLu2.js";
2
+ import { r as SERVER_ROUTES } from "./routes-DGoYe50m.js";
3
3
  // src/server/server-adapter/api-schema-manifest.ts
4
4
  function convertSchema(schema, io) {
5
5
  return schema ? schemaToJsonSchema(schema, io) : void 0;
@@ -57,4 +57,4 @@ function buildApiSchemaManifest(routes = SERVER_ROUTES) {
57
57
  }
58
58
  export { buildApiSchemaManifest };
59
59
 
60
- //# sourceMappingURL=api-schema-manifest-D1A2zfm3.js.map
60
+ //# sourceMappingURL=api-schema-manifest-C889XFn5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-schema-manifest-D1A2zfm3.js","names":[],"sources":["../src/server/server-adapter/api-schema-manifest.ts"],"sourcesContent":["import type { JSONSchema7 } from '@mastra/schema-compat';\nimport { schemaToJsonSchema } from './openapi-utils';\nimport { SERVER_ROUTES } from './routes/index';\nimport type { ServerRoute } from './routes/index';\n\nexport interface ApiSchemaResponseShape {\n kind: 'array' | 'record' | 'object-property' | 'single' | 'unknown';\n listProperty?: string;\n paginationProperty?: string;\n}\n\nexport interface ApiSchemaManifestRoute {\n method: string;\n path: string;\n responseType: string;\n pathParamSchema?: JSONSchema7;\n queryParamSchema?: JSONSchema7;\n bodySchema?: JSONSchema7;\n responseSchema?: JSONSchema7;\n responseShape: ApiSchemaResponseShape;\n}\n\nexport interface ApiSchemaManifest {\n version: 1;\n routes: ApiSchemaManifestRoute[];\n}\n\nfunction convertSchema(schema: ServerRoute['bodySchema'], io: 'input' | 'output'): JSONSchema7 | undefined {\n return schema ? schemaToJsonSchema(schema, io) : undefined;\n}\n\nfunction asJsonSchema(value: unknown): JSONSchema7 | undefined {\n return value && typeof value === 'object' && !Array.isArray(value) ? (value as JSONSchema7) : undefined;\n}\n\nfunction schemaType(schema: JSONSchema7 | undefined): JSONSchema7['type'] | undefined {\n const type = schema?.type;\n return Array.isArray(type) ? type.find(Boolean) : type;\n}\n\nfunction inferResponseShape(responseSchema: JSONSchema7 | undefined): ApiSchemaResponseShape {\n if (!responseSchema) return { kind: 'unknown' };\n\n const alternatives: unknown[] | undefined = responseSchema.anyOf ?? responseSchema.oneOf;\n if (alternatives?.length) {\n const shapes = alternatives.map(schema => inferResponseShape(asJsonSchema(schema)));\n const first = shapes[0]!;\n return shapes.every(\n shape =>\n shape.kind === first.kind &&\n shape.listProperty === first.listProperty &&\n shape.paginationProperty === first.paginationProperty,\n )\n ? first\n : { kind: 'single' };\n }\n\n const type = schemaType(responseSchema);\n if (type === 'array') return { kind: 'array' };\n if (type !== 'object') return { kind: 'single' };\n\n const properties =\n responseSchema.properties && !Array.isArray(responseSchema.properties) ? responseSchema.properties : {};\n const propertyNames = Object.keys(properties);\n const paginationProperty = 'page' in properties ? 'page' : 'pagination' in properties ? 'pagination' : undefined;\n const listProperty = Object.entries(properties).find(\n ([, property]) => schemaType(asJsonSchema(property)) === 'array',\n )?.[0];\n\n if (listProperty && (paginationProperty || propertyNames.length <= 2)) {\n return { kind: 'object-property', listProperty, paginationProperty };\n }\n if (responseSchema.additionalProperties && propertyNames.length === 0) return { kind: 'record' };\n return { kind: 'single' };\n}\n\n/** CLI flags cover all request variants; the endpoint still validates the selected variant. */\nexport function getApiSchemaPropertyNames(schema: JSONSchema7 | undefined): string[] {\n if (!schema) return [];\n const names = Object.keys(schema.properties ?? {});\n for (const branch of schema.anyOf ?? schema.oneOf ?? [])\n names.push(...getApiSchemaPropertyNames(asJsonSchema(branch)));\n return [...new Set(names)].sort();\n}\n\nfunction isManifestRoute(route: ServerRoute): boolean {\n return route.responseType === 'json' && !route.deprecated;\n}\n\nexport function buildApiSchemaManifest(routes: readonly ServerRoute[] = SERVER_ROUTES): ApiSchemaManifest {\n return {\n version: 1,\n routes: routes.filter(isManifestRoute).map(route => {\n const responseSchema = convertSchema(route.responseSchema, 'output');\n return {\n method: route.method,\n path: route.path,\n responseType: route.responseType,\n pathParamSchema: convertSchema(route.pathParamSchema, 'input'),\n queryParamSchema: convertSchema(route.queryParamSchema, 'input'),\n bodySchema: convertSchema(route.bodySchema, 'input'),\n responseSchema,\n responseShape: inferResponseShape(responseSchema),\n };\n }),\n };\n}\n"],"mappings":";;;AA2BA,SAAS,cAAc,QAAmC,IAAiD;CACzG,OAAO,SAAS,mBAAmB,QAAQ,EAAE,IAAI,KAAA;AACnD;AAEA,SAAS,aAAa,OAAyC;CAC7D,OAAO,SAAS,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK,IAAK,QAAwB,KAAA;AAChG;AAEA,SAAS,WAAW,QAAkE;CACpF,MAAM,OAAO,QAAQ;CACrB,OAAO,MAAM,QAAQ,IAAI,IAAI,KAAK,KAAK,OAAO,IAAI;AACpD;AAEA,SAAS,mBAAmB,gBAAiE;CAC3F,IAAI,CAAC,gBAAgB,OAAO,EAAE,MAAM,UAAU;CAE9C,MAAM,eAAsC,eAAe,SAAS,eAAe;CACnF,IAAI,cAAc,QAAQ;EACxB,MAAM,SAAS,aAAa,KAAI,WAAU,mBAAmB,aAAa,MAAM,CAAC,CAAC;EAClF,MAAM,QAAQ,OAAO;EACrB,OAAO,OAAO,OACZ,UACE,MAAM,SAAS,MAAM,QACrB,MAAM,iBAAiB,MAAM,gBAC7B,MAAM,uBAAuB,MAAM,kBACvC,IACI,QACA,EAAE,MAAM,SAAS;CACvB;CAEA,MAAM,OAAO,WAAW,cAAc;CACtC,IAAI,SAAS,SAAS,OAAO,EAAE,MAAM,QAAQ;CAC7C,IAAI,SAAS,UAAU,OAAO,EAAE,MAAM,SAAS;CAE/C,MAAM,aACJ,eAAe,cAAc,CAAC,MAAM,QAAQ,eAAe,UAAU,IAAI,eAAe,aAAa,CAAC;CACxG,MAAM,gBAAgB,OAAO,KAAK,UAAU;CAC5C,MAAM,qBAAqB,UAAU,aAAa,SAAS,gBAAgB,aAAa,eAAe,KAAA;CACvG,MAAM,eAAe,OAAO,QAAQ,UAAU,CAAC,CAAC,MAC7C,GAAG,cAAc,WAAW,aAAa,QAAQ,CAAC,MAAM,OAC3D,CAAC,GAAG;CAEJ,IAAI,iBAAiB,sBAAsB,cAAc,UAAU,IACjE,OAAO;EAAE,MAAM;EAAmB;EAAc;CAAmB;CAErE,IAAI,eAAe,wBAAwB,cAAc,WAAW,GAAG,OAAO,EAAE,MAAM,SAAS;CAC/F,OAAO,EAAE,MAAM,SAAS;AAC1B;AAWA,SAAS,gBAAgB,OAA6B;CACpD,OAAO,MAAM,iBAAiB,UAAU,CAAC,MAAM;AACjD;AAEA,SAAgB,uBAAuB,SAAiC,eAAkC;CACxG,OAAO;EACL,SAAS;EACT,QAAQ,OAAO,OAAO,eAAe,CAAC,CAAC,KAAI,UAAS;GAClD,MAAM,iBAAiB,cAAc,MAAM,gBAAgB,QAAQ;GACnE,OAAO;IACL,QAAQ,MAAM;IACd,MAAM,MAAM;IACZ,cAAc,MAAM;IACpB,iBAAiB,cAAc,MAAM,iBAAiB,OAAO;IAC7D,kBAAkB,cAAc,MAAM,kBAAkB,OAAO;IAC/D,YAAY,cAAc,MAAM,YAAY,OAAO;IACnD;IACA,eAAe,mBAAmB,cAAc;GAClD;EACF,CAAC;CACH;AACF"}
1
+ {"version":3,"file":"api-schema-manifest-C889XFn5.js","names":[],"sources":["../src/server/server-adapter/api-schema-manifest.ts"],"sourcesContent":["import type { JSONSchema7 } from '@mastra/schema-compat';\nimport { schemaToJsonSchema } from './openapi-utils';\nimport { SERVER_ROUTES } from './routes/index';\nimport type { ServerRoute } from './routes/index';\n\nexport interface ApiSchemaResponseShape {\n kind: 'array' | 'record' | 'object-property' | 'single' | 'unknown';\n listProperty?: string;\n paginationProperty?: string;\n}\n\nexport interface ApiSchemaManifestRoute {\n method: string;\n path: string;\n responseType: string;\n pathParamSchema?: JSONSchema7;\n queryParamSchema?: JSONSchema7;\n bodySchema?: JSONSchema7;\n responseSchema?: JSONSchema7;\n responseShape: ApiSchemaResponseShape;\n}\n\nexport interface ApiSchemaManifest {\n version: 1;\n routes: ApiSchemaManifestRoute[];\n}\n\nfunction convertSchema(schema: ServerRoute['bodySchema'], io: 'input' | 'output'): JSONSchema7 | undefined {\n return schema ? schemaToJsonSchema(schema, io) : undefined;\n}\n\nfunction asJsonSchema(value: unknown): JSONSchema7 | undefined {\n return value && typeof value === 'object' && !Array.isArray(value) ? (value as JSONSchema7) : undefined;\n}\n\nfunction schemaType(schema: JSONSchema7 | undefined): JSONSchema7['type'] | undefined {\n const type = schema?.type;\n return Array.isArray(type) ? type.find(Boolean) : type;\n}\n\nfunction inferResponseShape(responseSchema: JSONSchema7 | undefined): ApiSchemaResponseShape {\n if (!responseSchema) return { kind: 'unknown' };\n\n const alternatives: unknown[] | undefined = responseSchema.anyOf ?? responseSchema.oneOf;\n if (alternatives?.length) {\n const shapes = alternatives.map(schema => inferResponseShape(asJsonSchema(schema)));\n const first = shapes[0]!;\n return shapes.every(\n shape =>\n shape.kind === first.kind &&\n shape.listProperty === first.listProperty &&\n shape.paginationProperty === first.paginationProperty,\n )\n ? first\n : { kind: 'single' };\n }\n\n const type = schemaType(responseSchema);\n if (type === 'array') return { kind: 'array' };\n if (type !== 'object') return { kind: 'single' };\n\n const properties =\n responseSchema.properties && !Array.isArray(responseSchema.properties) ? responseSchema.properties : {};\n const propertyNames = Object.keys(properties);\n const paginationProperty = 'page' in properties ? 'page' : 'pagination' in properties ? 'pagination' : undefined;\n const listProperty = Object.entries(properties).find(\n ([, property]) => schemaType(asJsonSchema(property)) === 'array',\n )?.[0];\n\n if (listProperty && (paginationProperty || propertyNames.length <= 2)) {\n return { kind: 'object-property', listProperty, paginationProperty };\n }\n if (responseSchema.additionalProperties && propertyNames.length === 0) return { kind: 'record' };\n return { kind: 'single' };\n}\n\n/** CLI flags cover all request variants; the endpoint still validates the selected variant. */\nexport function getApiSchemaPropertyNames(schema: JSONSchema7 | undefined): string[] {\n if (!schema) return [];\n const names = Object.keys(schema.properties ?? {});\n for (const branch of schema.anyOf ?? schema.oneOf ?? [])\n names.push(...getApiSchemaPropertyNames(asJsonSchema(branch)));\n return [...new Set(names)].sort();\n}\n\nfunction isManifestRoute(route: ServerRoute): boolean {\n return route.responseType === 'json' && !route.deprecated;\n}\n\nexport function buildApiSchemaManifest(routes: readonly ServerRoute[] = SERVER_ROUTES): ApiSchemaManifest {\n return {\n version: 1,\n routes: routes.filter(isManifestRoute).map(route => {\n const responseSchema = convertSchema(route.responseSchema, 'output');\n return {\n method: route.method,\n path: route.path,\n responseType: route.responseType,\n pathParamSchema: convertSchema(route.pathParamSchema, 'input'),\n queryParamSchema: convertSchema(route.queryParamSchema, 'input'),\n bodySchema: convertSchema(route.bodySchema, 'input'),\n responseSchema,\n responseShape: inferResponseShape(responseSchema),\n };\n }),\n };\n}\n"],"mappings":";;;AA2BA,SAAS,cAAc,QAAmC,IAAiD;CACzG,OAAO,SAAS,mBAAmB,QAAQ,EAAE,IAAI,KAAA;AACnD;AAEA,SAAS,aAAa,OAAyC;CAC7D,OAAO,SAAS,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK,IAAK,QAAwB,KAAA;AAChG;AAEA,SAAS,WAAW,QAAkE;CACpF,MAAM,OAAO,QAAQ;CACrB,OAAO,MAAM,QAAQ,IAAI,IAAI,KAAK,KAAK,OAAO,IAAI;AACpD;AAEA,SAAS,mBAAmB,gBAAiE;CAC3F,IAAI,CAAC,gBAAgB,OAAO,EAAE,MAAM,UAAU;CAE9C,MAAM,eAAsC,eAAe,SAAS,eAAe;CACnF,IAAI,cAAc,QAAQ;EACxB,MAAM,SAAS,aAAa,KAAI,WAAU,mBAAmB,aAAa,MAAM,CAAC,CAAC;EAClF,MAAM,QAAQ,OAAO;EACrB,OAAO,OAAO,OACZ,UACE,MAAM,SAAS,MAAM,QACrB,MAAM,iBAAiB,MAAM,gBAC7B,MAAM,uBAAuB,MAAM,kBACvC,IACI,QACA,EAAE,MAAM,SAAS;CACvB;CAEA,MAAM,OAAO,WAAW,cAAc;CACtC,IAAI,SAAS,SAAS,OAAO,EAAE,MAAM,QAAQ;CAC7C,IAAI,SAAS,UAAU,OAAO,EAAE,MAAM,SAAS;CAE/C,MAAM,aACJ,eAAe,cAAc,CAAC,MAAM,QAAQ,eAAe,UAAU,IAAI,eAAe,aAAa,CAAC;CACxG,MAAM,gBAAgB,OAAO,KAAK,UAAU;CAC5C,MAAM,qBAAqB,UAAU,aAAa,SAAS,gBAAgB,aAAa,eAAe,KAAA;CACvG,MAAM,eAAe,OAAO,QAAQ,UAAU,CAAC,CAAC,MAC7C,GAAG,cAAc,WAAW,aAAa,QAAQ,CAAC,MAAM,OAC3D,CAAC,GAAG;CAEJ,IAAI,iBAAiB,sBAAsB,cAAc,UAAU,IACjE,OAAO;EAAE,MAAM;EAAmB;EAAc;CAAmB;CAErE,IAAI,eAAe,wBAAwB,cAAc,WAAW,GAAG,OAAO,EAAE,MAAM,SAAS;CAC/F,OAAO,EAAE,MAAM,SAAS;AAC1B;AAWA,SAAS,gBAAgB,OAA6B;CACpD,OAAO,MAAM,iBAAiB,UAAU,CAAC,MAAM;AACjD;AAEA,SAAgB,uBAAuB,SAAiC,eAAkC;CACxG,OAAO;EACL,SAAS;EACT,QAAQ,OAAO,OAAO,eAAe,CAAC,CAAC,KAAI,UAAS;GAClD,MAAM,iBAAiB,cAAc,MAAM,gBAAgB,QAAQ;GACnE,OAAO;IACL,QAAQ,MAAM;IACd,MAAM,MAAM;IACZ,cAAc,MAAM;IACpB,iBAAiB,cAAc,MAAM,iBAAiB,OAAO;IAC7D,kBAAkB,cAAc,MAAM,kBAAkB,OAAO;IAC/D,YAAY,cAAc,MAAM,YAAY,OAAO;IACnD;IACA,eAAe,mBAAmB,cAAc;GAClD;EACF,CAAC;CACH;AACF"}
@@ -1,6 +1,6 @@
1
1
  require("./rolldown-runtime-10nMEhjP.cjs");
2
2
  const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
3
- const require_routes = require("./routes-bWCQflz5.cjs");
3
+ const require_routes = require("./routes-pkh0aVDt.cjs");
4
4
  // src/server/server-adapter/api-schema-manifest.ts
5
5
  function convertSchema(schema, io) {
6
6
  return schema ? require_route_builder.schemaToJsonSchema(schema, io) : void 0;
@@ -58,4 +58,4 @@ function buildApiSchemaManifest(routes = require_routes.SERVER_ROUTES) {
58
58
  }
59
59
  exports.buildApiSchemaManifest = buildApiSchemaManifest;
60
60
 
61
- //# sourceMappingURL=api-schema-manifest-AltoM-cn.cjs.map
61
+ //# sourceMappingURL=api-schema-manifest-Cn9tPyZh.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-schema-manifest-AltoM-cn.cjs","names":["schemaToJsonSchema","SERVER_ROUTES"],"sources":["../src/server/server-adapter/api-schema-manifest.ts"],"sourcesContent":["import type { JSONSchema7 } from '@mastra/schema-compat';\nimport { schemaToJsonSchema } from './openapi-utils';\nimport { SERVER_ROUTES } from './routes/index';\nimport type { ServerRoute } from './routes/index';\n\nexport interface ApiSchemaResponseShape {\n kind: 'array' | 'record' | 'object-property' | 'single' | 'unknown';\n listProperty?: string;\n paginationProperty?: string;\n}\n\nexport interface ApiSchemaManifestRoute {\n method: string;\n path: string;\n responseType: string;\n pathParamSchema?: JSONSchema7;\n queryParamSchema?: JSONSchema7;\n bodySchema?: JSONSchema7;\n responseSchema?: JSONSchema7;\n responseShape: ApiSchemaResponseShape;\n}\n\nexport interface ApiSchemaManifest {\n version: 1;\n routes: ApiSchemaManifestRoute[];\n}\n\nfunction convertSchema(schema: ServerRoute['bodySchema'], io: 'input' | 'output'): JSONSchema7 | undefined {\n return schema ? schemaToJsonSchema(schema, io) : undefined;\n}\n\nfunction asJsonSchema(value: unknown): JSONSchema7 | undefined {\n return value && typeof value === 'object' && !Array.isArray(value) ? (value as JSONSchema7) : undefined;\n}\n\nfunction schemaType(schema: JSONSchema7 | undefined): JSONSchema7['type'] | undefined {\n const type = schema?.type;\n return Array.isArray(type) ? type.find(Boolean) : type;\n}\n\nfunction inferResponseShape(responseSchema: JSONSchema7 | undefined): ApiSchemaResponseShape {\n if (!responseSchema) return { kind: 'unknown' };\n\n const alternatives: unknown[] | undefined = responseSchema.anyOf ?? responseSchema.oneOf;\n if (alternatives?.length) {\n const shapes = alternatives.map(schema => inferResponseShape(asJsonSchema(schema)));\n const first = shapes[0]!;\n return shapes.every(\n shape =>\n shape.kind === first.kind &&\n shape.listProperty === first.listProperty &&\n shape.paginationProperty === first.paginationProperty,\n )\n ? first\n : { kind: 'single' };\n }\n\n const type = schemaType(responseSchema);\n if (type === 'array') return { kind: 'array' };\n if (type !== 'object') return { kind: 'single' };\n\n const properties =\n responseSchema.properties && !Array.isArray(responseSchema.properties) ? responseSchema.properties : {};\n const propertyNames = Object.keys(properties);\n const paginationProperty = 'page' in properties ? 'page' : 'pagination' in properties ? 'pagination' : undefined;\n const listProperty = Object.entries(properties).find(\n ([, property]) => schemaType(asJsonSchema(property)) === 'array',\n )?.[0];\n\n if (listProperty && (paginationProperty || propertyNames.length <= 2)) {\n return { kind: 'object-property', listProperty, paginationProperty };\n }\n if (responseSchema.additionalProperties && propertyNames.length === 0) return { kind: 'record' };\n return { kind: 'single' };\n}\n\n/** CLI flags cover all request variants; the endpoint still validates the selected variant. */\nexport function getApiSchemaPropertyNames(schema: JSONSchema7 | undefined): string[] {\n if (!schema) return [];\n const names = Object.keys(schema.properties ?? {});\n for (const branch of schema.anyOf ?? schema.oneOf ?? [])\n names.push(...getApiSchemaPropertyNames(asJsonSchema(branch)));\n return [...new Set(names)].sort();\n}\n\nfunction isManifestRoute(route: ServerRoute): boolean {\n return route.responseType === 'json' && !route.deprecated;\n}\n\nexport function buildApiSchemaManifest(routes: readonly ServerRoute[] = SERVER_ROUTES): ApiSchemaManifest {\n return {\n version: 1,\n routes: routes.filter(isManifestRoute).map(route => {\n const responseSchema = convertSchema(route.responseSchema, 'output');\n return {\n method: route.method,\n path: route.path,\n responseType: route.responseType,\n pathParamSchema: convertSchema(route.pathParamSchema, 'input'),\n queryParamSchema: convertSchema(route.queryParamSchema, 'input'),\n bodySchema: convertSchema(route.bodySchema, 'input'),\n responseSchema,\n responseShape: inferResponseShape(responseSchema),\n };\n }),\n };\n}\n"],"mappings":";;;;AA2BA,SAAS,cAAc,QAAmC,IAAiD;CACzG,OAAO,SAASA,sBAAAA,mBAAmB,QAAQ,EAAE,IAAI,KAAA;AACnD;AAEA,SAAS,aAAa,OAAyC;CAC7D,OAAO,SAAS,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK,IAAK,QAAwB,KAAA;AAChG;AAEA,SAAS,WAAW,QAAkE;CACpF,MAAM,OAAO,QAAQ;CACrB,OAAO,MAAM,QAAQ,IAAI,IAAI,KAAK,KAAK,OAAO,IAAI;AACpD;AAEA,SAAS,mBAAmB,gBAAiE;CAC3F,IAAI,CAAC,gBAAgB,OAAO,EAAE,MAAM,UAAU;CAE9C,MAAM,eAAsC,eAAe,SAAS,eAAe;CACnF,IAAI,cAAc,QAAQ;EACxB,MAAM,SAAS,aAAa,KAAI,WAAU,mBAAmB,aAAa,MAAM,CAAC,CAAC;EAClF,MAAM,QAAQ,OAAO;EACrB,OAAO,OAAO,OACZ,UACE,MAAM,SAAS,MAAM,QACrB,MAAM,iBAAiB,MAAM,gBAC7B,MAAM,uBAAuB,MAAM,kBACvC,IACI,QACA,EAAE,MAAM,SAAS;CACvB;CAEA,MAAM,OAAO,WAAW,cAAc;CACtC,IAAI,SAAS,SAAS,OAAO,EAAE,MAAM,QAAQ;CAC7C,IAAI,SAAS,UAAU,OAAO,EAAE,MAAM,SAAS;CAE/C,MAAM,aACJ,eAAe,cAAc,CAAC,MAAM,QAAQ,eAAe,UAAU,IAAI,eAAe,aAAa,CAAC;CACxG,MAAM,gBAAgB,OAAO,KAAK,UAAU;CAC5C,MAAM,qBAAqB,UAAU,aAAa,SAAS,gBAAgB,aAAa,eAAe,KAAA;CACvG,MAAM,eAAe,OAAO,QAAQ,UAAU,CAAC,CAAC,MAC7C,GAAG,cAAc,WAAW,aAAa,QAAQ,CAAC,MAAM,OAC3D,CAAC,GAAG;CAEJ,IAAI,iBAAiB,sBAAsB,cAAc,UAAU,IACjE,OAAO;EAAE,MAAM;EAAmB;EAAc;CAAmB;CAErE,IAAI,eAAe,wBAAwB,cAAc,WAAW,GAAG,OAAO,EAAE,MAAM,SAAS;CAC/F,OAAO,EAAE,MAAM,SAAS;AAC1B;AAWA,SAAS,gBAAgB,OAA6B;CACpD,OAAO,MAAM,iBAAiB,UAAU,CAAC,MAAM;AACjD;AAEA,SAAgB,uBAAuB,SAAiCC,eAAAA,eAAkC;CACxG,OAAO;EACL,SAAS;EACT,QAAQ,OAAO,OAAO,eAAe,CAAC,CAAC,KAAI,UAAS;GAClD,MAAM,iBAAiB,cAAc,MAAM,gBAAgB,QAAQ;GACnE,OAAO;IACL,QAAQ,MAAM;IACd,MAAM,MAAM;IACZ,cAAc,MAAM;IACpB,iBAAiB,cAAc,MAAM,iBAAiB,OAAO;IAC7D,kBAAkB,cAAc,MAAM,kBAAkB,OAAO;IAC/D,YAAY,cAAc,MAAM,YAAY,OAAO;IACnD;IACA,eAAe,mBAAmB,cAAc;GAClD;EACF,CAAC;CACH;AACF"}
1
+ {"version":3,"file":"api-schema-manifest-Cn9tPyZh.cjs","names":["schemaToJsonSchema","SERVER_ROUTES"],"sources":["../src/server/server-adapter/api-schema-manifest.ts"],"sourcesContent":["import type { JSONSchema7 } from '@mastra/schema-compat';\nimport { schemaToJsonSchema } from './openapi-utils';\nimport { SERVER_ROUTES } from './routes/index';\nimport type { ServerRoute } from './routes/index';\n\nexport interface ApiSchemaResponseShape {\n kind: 'array' | 'record' | 'object-property' | 'single' | 'unknown';\n listProperty?: string;\n paginationProperty?: string;\n}\n\nexport interface ApiSchemaManifestRoute {\n method: string;\n path: string;\n responseType: string;\n pathParamSchema?: JSONSchema7;\n queryParamSchema?: JSONSchema7;\n bodySchema?: JSONSchema7;\n responseSchema?: JSONSchema7;\n responseShape: ApiSchemaResponseShape;\n}\n\nexport interface ApiSchemaManifest {\n version: 1;\n routes: ApiSchemaManifestRoute[];\n}\n\nfunction convertSchema(schema: ServerRoute['bodySchema'], io: 'input' | 'output'): JSONSchema7 | undefined {\n return schema ? schemaToJsonSchema(schema, io) : undefined;\n}\n\nfunction asJsonSchema(value: unknown): JSONSchema7 | undefined {\n return value && typeof value === 'object' && !Array.isArray(value) ? (value as JSONSchema7) : undefined;\n}\n\nfunction schemaType(schema: JSONSchema7 | undefined): JSONSchema7['type'] | undefined {\n const type = schema?.type;\n return Array.isArray(type) ? type.find(Boolean) : type;\n}\n\nfunction inferResponseShape(responseSchema: JSONSchema7 | undefined): ApiSchemaResponseShape {\n if (!responseSchema) return { kind: 'unknown' };\n\n const alternatives: unknown[] | undefined = responseSchema.anyOf ?? responseSchema.oneOf;\n if (alternatives?.length) {\n const shapes = alternatives.map(schema => inferResponseShape(asJsonSchema(schema)));\n const first = shapes[0]!;\n return shapes.every(\n shape =>\n shape.kind === first.kind &&\n shape.listProperty === first.listProperty &&\n shape.paginationProperty === first.paginationProperty,\n )\n ? first\n : { kind: 'single' };\n }\n\n const type = schemaType(responseSchema);\n if (type === 'array') return { kind: 'array' };\n if (type !== 'object') return { kind: 'single' };\n\n const properties =\n responseSchema.properties && !Array.isArray(responseSchema.properties) ? responseSchema.properties : {};\n const propertyNames = Object.keys(properties);\n const paginationProperty = 'page' in properties ? 'page' : 'pagination' in properties ? 'pagination' : undefined;\n const listProperty = Object.entries(properties).find(\n ([, property]) => schemaType(asJsonSchema(property)) === 'array',\n )?.[0];\n\n if (listProperty && (paginationProperty || propertyNames.length <= 2)) {\n return { kind: 'object-property', listProperty, paginationProperty };\n }\n if (responseSchema.additionalProperties && propertyNames.length === 0) return { kind: 'record' };\n return { kind: 'single' };\n}\n\n/** CLI flags cover all request variants; the endpoint still validates the selected variant. */\nexport function getApiSchemaPropertyNames(schema: JSONSchema7 | undefined): string[] {\n if (!schema) return [];\n const names = Object.keys(schema.properties ?? {});\n for (const branch of schema.anyOf ?? schema.oneOf ?? [])\n names.push(...getApiSchemaPropertyNames(asJsonSchema(branch)));\n return [...new Set(names)].sort();\n}\n\nfunction isManifestRoute(route: ServerRoute): boolean {\n return route.responseType === 'json' && !route.deprecated;\n}\n\nexport function buildApiSchemaManifest(routes: readonly ServerRoute[] = SERVER_ROUTES): ApiSchemaManifest {\n return {\n version: 1,\n routes: routes.filter(isManifestRoute).map(route => {\n const responseSchema = convertSchema(route.responseSchema, 'output');\n return {\n method: route.method,\n path: route.path,\n responseType: route.responseType,\n pathParamSchema: convertSchema(route.pathParamSchema, 'input'),\n queryParamSchema: convertSchema(route.queryParamSchema, 'input'),\n bodySchema: convertSchema(route.bodySchema, 'input'),\n responseSchema,\n responseShape: inferResponseShape(responseSchema),\n };\n }),\n };\n}\n"],"mappings":";;;;AA2BA,SAAS,cAAc,QAAmC,IAAiD;CACzG,OAAO,SAASA,sBAAAA,mBAAmB,QAAQ,EAAE,IAAI,KAAA;AACnD;AAEA,SAAS,aAAa,OAAyC;CAC7D,OAAO,SAAS,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK,IAAK,QAAwB,KAAA;AAChG;AAEA,SAAS,WAAW,QAAkE;CACpF,MAAM,OAAO,QAAQ;CACrB,OAAO,MAAM,QAAQ,IAAI,IAAI,KAAK,KAAK,OAAO,IAAI;AACpD;AAEA,SAAS,mBAAmB,gBAAiE;CAC3F,IAAI,CAAC,gBAAgB,OAAO,EAAE,MAAM,UAAU;CAE9C,MAAM,eAAsC,eAAe,SAAS,eAAe;CACnF,IAAI,cAAc,QAAQ;EACxB,MAAM,SAAS,aAAa,KAAI,WAAU,mBAAmB,aAAa,MAAM,CAAC,CAAC;EAClF,MAAM,QAAQ,OAAO;EACrB,OAAO,OAAO,OACZ,UACE,MAAM,SAAS,MAAM,QACrB,MAAM,iBAAiB,MAAM,gBAC7B,MAAM,uBAAuB,MAAM,kBACvC,IACI,QACA,EAAE,MAAM,SAAS;CACvB;CAEA,MAAM,OAAO,WAAW,cAAc;CACtC,IAAI,SAAS,SAAS,OAAO,EAAE,MAAM,QAAQ;CAC7C,IAAI,SAAS,UAAU,OAAO,EAAE,MAAM,SAAS;CAE/C,MAAM,aACJ,eAAe,cAAc,CAAC,MAAM,QAAQ,eAAe,UAAU,IAAI,eAAe,aAAa,CAAC;CACxG,MAAM,gBAAgB,OAAO,KAAK,UAAU;CAC5C,MAAM,qBAAqB,UAAU,aAAa,SAAS,gBAAgB,aAAa,eAAe,KAAA;CACvG,MAAM,eAAe,OAAO,QAAQ,UAAU,CAAC,CAAC,MAC7C,GAAG,cAAc,WAAW,aAAa,QAAQ,CAAC,MAAM,OAC3D,CAAC,GAAG;CAEJ,IAAI,iBAAiB,sBAAsB,cAAc,UAAU,IACjE,OAAO;EAAE,MAAM;EAAmB;EAAc;CAAmB;CAErE,IAAI,eAAe,wBAAwB,cAAc,WAAW,GAAG,OAAO,EAAE,MAAM,SAAS;CAC/F,OAAO,EAAE,MAAM,SAAS;AAC1B;AAWA,SAAS,gBAAgB,OAA6B;CACpD,OAAO,MAAM,iBAAiB,UAAU,CAAC,MAAM;AACjD;AAEA,SAAgB,uBAAuB,SAAiCC,eAAAA,eAAkC;CACxG,OAAO;EACL,SAAS;EACT,QAAQ,OAAO,OAAO,eAAe,CAAC,CAAC,KAAI,UAAS;GAClD,MAAM,iBAAiB,cAAc,MAAM,gBAAgB,QAAQ;GACnE,OAAO;IACL,QAAQ,MAAM;IACd,MAAM,MAAM;IACZ,cAAc,MAAM;IACpB,iBAAiB,cAAc,MAAM,iBAAiB,OAAO;IAC7D,kBAAkB,cAAc,MAAM,kBAAkB,OAAO;IAC/D,YAAY,cAAc,MAAM,YAAY,OAAO;IACnD;IACA,eAAe,mBAAmB,cAAc;GAClD;EACF,CAAC;CACH;AACF"}
@@ -1,15 +1,15 @@
1
1
  import { n as standardSchemaToJSONSchema, r as toStandardSchema } from "./schema-TQPB_dl2-CCzMcdDx.js";
2
2
  import "./constants-0xZU_h4R.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-BjlUjmb1.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-oHRh4msa.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-B-QJ0Tnv.js";
6
- import { o as checkRouteRBAC, r as authorizeRoute, s as dispatchRoute } from "./server-adapter-B3kR1OJs.js";
7
- import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-CH5SQLu2.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-CEgQ1Sj5.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-BuFpB7Lk.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-9Q28sHTz.js";
6
+ import { o as checkRouteRBAC, r as authorizeRoute, s as dispatchRoute } from "./server-adapter-CB8qI6YQ.js";
7
+ import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-DGoYe50m.js";
8
8
  import "./utils-BfySxdfF.js";
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-0jB2EOKx.js";
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-DS2tEXzG.js";
10
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-Z2tDxHS1.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, R as QUERY_THREADS, S as GET_METRIC_TIME_SERIES, T as GET_SCORE_BREAKDOWN, _ as GET_METRIC_BREAKDOWN, b as GET_METRIC_NAMES, f as GET_FEEDBACK_AGGREGATE, g as GET_METRIC_AGGREGATE, h as GET_FEEDBACK_TIME_SERIES, j as GET_TRACE_QUERY_VALUES, m as GET_FEEDBACK_PERCENTILES, n as AGGREGATE_TRACES, p as GET_FEEDBACK_BREAKDOWN, t as AGGREGATE_SPANS, 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-dr0XcNkP.js";
12
- import { t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE } from "./editor-builder-CGM0scw2.js";
12
+ import { t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE } from "./editor-builder-Dd10fik0.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
14
  import { O as updateStoredAgentBodySchema, n as createStoredAgentBodySchema } from "./stored-agents-DmN_pIIl.js";
15
15
  import { ErrorCategory, ErrorDomain, MastraError } from "@mastra/core/error";
@@ -1366,4 +1366,4 @@ async function buildBuiltinMCPTools(ctx, config) {
1366
1366
  }
1367
1367
  export { buildBuiltinMCPTools };
1368
1368
 
1369
- //# sourceMappingURL=catalogue-DPLsw3zE.js.map
1369
+ //# sourceMappingURL=catalogue-C2Frc4-i.js.map