@mastra/server 1.82.0-alpha.2 → 1.82.0
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.
- package/dist/_types/@mastra_schema-compat@1.3.17/dist/_types/{@internal_ai-sdk-v5@0.0.94 → @internal_ai-sdk-v5@0.0.95}/dist/index.d.ts +1 -1
- package/dist/_types/@mastra_schema-compat@1.3.17/dist/_types/{@internal_ai-v6@0.0.94 → @internal_ai-v6@0.0.95}/dist/index.d.ts +3 -3
- package/dist/_types/@mastra_schema-compat@1.3.17/dist/provider-compats/anthropic.d.ts +1 -1
- package/dist/_types/@mastra_schema-compat@1.3.17/dist/provider-compats/deepseek.d.ts +1 -1
- package/dist/_types/@mastra_schema-compat@1.3.17/dist/provider-compats/meta.d.ts +1 -1
- package/dist/_types/@mastra_schema-compat@1.3.17/dist/schema.types.d.ts +3 -3
- package/dist/{a2a-C_2w6OWn.js → a2a-CoiG3TAj.js} +3 -3
- package/dist/{a2a-C_2w6OWn.js.map → a2a-CoiG3TAj.js.map} +1 -1
- package/dist/{a2a-CNfj0wRr.cjs → a2a-DvqRdny6.cjs} +3 -3
- package/dist/{a2a-CNfj0wRr.cjs.map → a2a-DvqRdny6.cjs.map} +1 -1
- package/dist/{agent-builder-CrFZJ1mg.js → agent-builder-C_L1i2eE.js} +43 -40
- package/dist/agent-builder-C_L1i2eE.js.map +1 -0
- package/dist/{agent-builder-B7B1DSP9.cjs → agent-builder-D0Up9Fw1.cjs} +43 -40
- package/dist/agent-builder-D0Up9Fw1.cjs.map +1 -0
- package/dist/{agents-DPvMjiDf.js → agents-CgcW6lHt.js} +5 -4
- package/dist/agents-CgcW6lHt.js.map +1 -0
- package/dist/{agents-Cp4FBxQB.cjs → agents-DOHGWXDa.cjs} +5 -4
- package/dist/agents-DOHGWXDa.cjs.map +1 -0
- package/dist/{api-schema-manifest-BTfM-0md.js → api-schema-manifest-Ci2qUYHc.js} +2 -2
- package/dist/{api-schema-manifest-BTfM-0md.js.map → api-schema-manifest-Ci2qUYHc.js.map} +1 -1
- package/dist/{api-schema-manifest-C55f0tmn.cjs → api-schema-manifest-DCHOlOuJ.cjs} +2 -2
- package/dist/{api-schema-manifest-C55f0tmn.cjs.map → api-schema-manifest-DCHOlOuJ.cjs.map} +1 -1
- package/dist/{builder-registry-CkPRx_vx.cjs → builder-registry-D1_hGKCJ.cjs} +2 -2
- package/dist/{builder-registry-CkPRx_vx.cjs.map → builder-registry-D1_hGKCJ.cjs.map} +1 -1
- package/dist/{builder-registry-6TFaV4oT.js → builder-registry-m_gHCe12.js} +2 -2
- package/dist/{builder-registry-6TFaV4oT.js.map → builder-registry-m_gHCe12.js.map} +1 -1
- package/dist/{conversations-6DxLemUg.cjs → conversations-Ch_VuVwY.cjs} +2 -2
- package/dist/{conversations-6DxLemUg.cjs.map → conversations-Ch_VuVwY.cjs.map} +1 -1
- package/dist/{conversations-DDMCe7th.js → conversations-xS7yHuG1.js} +2 -2
- package/dist/{conversations-DDMCe7th.js.map → conversations-xS7yHuG1.js.map} +1 -1
- package/dist/{dist-CzWU4AmA.cjs → dist-BKNKucT9.cjs} +422 -286
- package/dist/dist-BKNKucT9.cjs.map +1 -0
- package/dist/{dist-DDo4vt34.js → dist-CIYZuix4.js} +422 -286
- package/dist/dist-CIYZuix4.js.map +1 -0
- package/dist/{dist-CjEJaGGe.cjs → dist-DgKeISkr.cjs} +1 -1
- package/dist/dist-mNQb9_wX.js +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{editor-builder-BO0Pebws.cjs → editor-builder-CKfy5eZY.cjs} +2 -2
- package/dist/{editor-builder-BO0Pebws.cjs.map → editor-builder-CKfy5eZY.cjs.map} +1 -1
- package/dist/{editor-builder-CuT_ltBK.js → editor-builder-Ceen28s8.js} +2 -2
- package/dist/{editor-builder-CuT_ltBK.js.map → editor-builder-Ceen28s8.js.map} +1 -1
- package/dist/{knowledge-DykIi0wH.js → knowledge-Ba74qr0v.js} +89 -2
- package/dist/knowledge-Ba74qr0v.js.map +1 -0
- package/dist/{knowledge-qu0om3W7.cjs → knowledge-urR7FFG8.cjs} +100 -1
- package/dist/knowledge-urR7FFG8.cjs.map +1 -0
- package/dist/{plans-UPUTbvxx.cjs → plans-Djcp3C0d.cjs} +2 -2
- package/dist/{plans-UPUTbvxx.cjs.map → plans-Djcp3C0d.cjs.map} +1 -1
- package/dist/{plans-k4FuteiT.js → plans-nHOnlGzr.js} +2 -2
- package/dist/{plans-k4FuteiT.js.map → plans-nHOnlGzr.js.map} +1 -1
- package/dist/{probe-image-size-BRHrC0Va.cjs → probe-image-size-BAwk1h6w.cjs} +2 -2
- package/dist/{probe-image-size-BRHrC0Va.cjs.map → probe-image-size-BAwk1h6w.cjs.map} +1 -1
- package/dist/{probe-image-size-BmIt3CH4.js → probe-image-size-DGTRKrgq.js} +2 -2
- package/dist/{probe-image-size-BmIt3CH4.js.map → probe-image-size-DGTRKrgq.js.map} +1 -1
- package/dist/{responses-opDOcZYI.cjs → responses-BdOStKtX.cjs} +2 -2
- package/dist/{responses-opDOcZYI.cjs.map → responses-BdOStKtX.cjs.map} +1 -1
- package/dist/{responses-C8HCkptA.js → responses-CEet9y8G.js} +2 -2
- package/dist/{responses-C8HCkptA.js.map → responses-CEet9y8G.js.map} +1 -1
- package/dist/{routes-BCoCimCB.js → routes-5FpkkzND.js} +15 -13
- package/dist/routes-5FpkkzND.js.map +1 -0
- package/dist/{routes-FKc6a2N0.cjs → routes-DU_FlwJP.cjs} +15 -13
- package/dist/routes-DU_FlwJP.cjs.map +1 -0
- package/dist/{scores-CrpJomkR.js → scores-BaDFGpmr.js} +2 -2
- package/dist/{scores-CrpJomkR.js.map → scores-BaDFGpmr.js.map} +1 -1
- package/dist/{scores-CNMXAquK.cjs → scores-Bw6Tuga5.cjs} +2 -2
- package/dist/{scores-CNMXAquK.cjs.map → scores-Bw6Tuga5.cjs.map} +1 -1
- package/dist/server/handlers/a2a.cjs +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +1 -1
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agent-versions.cjs +1 -1
- package/dist/server/handlers/agent-versions.js +1 -1
- package/dist/server/handlers/agents.cjs +1 -1
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/builder-registry.cjs +1 -1
- package/dist/server/handlers/builder-registry.js +1 -1
- package/dist/server/handlers/conversations.cjs +1 -1
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/editor-builder.cjs +1 -1
- package/dist/server/handlers/editor-builder.js +1 -1
- package/dist/server/handlers/favorites-enrichment.cjs +1 -1
- package/dist/server/handlers/favorites-enrichment.js +1 -1
- package/dist/server/handlers/knowledge.cjs +3 -1
- package/dist/server/handlers/knowledge.d.ts +95 -0
- package/dist/server/handlers/knowledge.d.ts.map +1 -1
- package/dist/server/handlers/knowledge.js +1 -1
- package/dist/server/handlers/mcp-client-versions.cjs +1 -1
- package/dist/server/handlers/mcp-client-versions.js +1 -1
- package/dist/server/handlers/plans.cjs +1 -1
- package/dist/server/handlers/plans.js +1 -1
- package/dist/server/handlers/prompt-block-versions.cjs +1 -1
- package/dist/server/handlers/prompt-block-versions.js +1 -1
- package/dist/server/handlers/responses.cjs +1 -1
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/scorer-versions.cjs +1 -1
- package/dist/server/handlers/scorer-versions.js +1 -1
- package/dist/server/handlers/scores.cjs +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agent-favorites.cjs +2 -2
- package/dist/server/handlers/stored-agent-favorites.js +2 -2
- package/dist/server/handlers/stored-agents.cjs +2 -2
- package/dist/server/handlers/stored-agents.js +2 -2
- package/dist/server/handlers/stored-mcp-clients.cjs +1 -1
- package/dist/server/handlers/stored-mcp-clients.js +1 -1
- package/dist/server/handlers/stored-prompt-blocks.cjs +1 -1
- package/dist/server/handlers/stored-prompt-blocks.js +1 -1
- package/dist/server/handlers/stored-scorers.cjs +1 -1
- package/dist/server/handlers/stored-scorers.js +1 -1
- package/dist/server/handlers/stored-skill-favorites.cjs +2 -2
- package/dist/server/handlers/stored-skill-favorites.js +2 -2
- package/dist/server/handlers/stored-skills.cjs +2 -2
- package/dist/server/handlers/stored-skills.js +2 -2
- package/dist/server/handlers/stored-workspaces.cjs +1 -1
- package/dist/server/handlers/stored-workspaces.js +1 -1
- package/dist/server/handlers/system.cjs +1 -1
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers/tools.cjs +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/validate-agent-instructions.cjs +1 -1
- package/dist/server/handlers/validate-agent-instructions.js +1 -1
- package/dist/server/handlers/workflows.cjs +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +9 -9
- package/dist/server/handlers.js +9 -9
- package/dist/server/schemas/agents.d.ts +1 -1
- package/dist/server/schemas/knowledge.d.ts +29 -0
- package/dist/server/schemas/knowledge.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +51 -3
- package/dist/server/server-adapter/index.cjs.map +1 -1
- package/dist/server/server-adapter/index.js +51 -3
- package/dist/server/server-adapter/index.js.map +1 -1
- package/dist/server/server-adapter/routes/knowledge.d.ts +93 -0
- package/dist/server/server-adapter/routes/knowledge.d.ts.map +1 -1
- package/dist/server/utils.d.ts +13 -7
- package/dist/server/utils.d.ts.map +1 -1
- package/dist/{tools-DP3yJsX7.js → tools-BAmCNGM5.js} +3 -3
- package/dist/{tools-DP3yJsX7.js.map → tools-BAmCNGM5.js.map} +1 -1
- package/dist/{tools-C6TLcPmD.cjs → tools-CI5oeJWT.cjs} +3 -3
- package/dist/{tools-C6TLcPmD.cjs.map → tools-CI5oeJWT.cjs.map} +1 -1
- package/dist/{utils-bQ6Jhog6.cjs → utils-BhBJHsqX.cjs} +45 -24
- package/dist/{utils-bQ6Jhog6.cjs.map → utils-BhBJHsqX.cjs.map} +1 -1
- package/dist/{utils-qaBKOShQ.js → utils-Dy_dQTlK.js} +45 -24
- package/dist/{utils-qaBKOShQ.js.map → utils-Dy_dQTlK.js.map} +1 -1
- package/dist/{workflows-DrDssVnE.js → workflows-BxXS5AfE.js} +3 -3
- package/dist/workflows-BxXS5AfE.js.map +1 -0
- package/dist/{workflows-CJxQkruy.cjs → workflows-Cdi6w8JW.cjs} +3 -3
- package/dist/workflows-Cdi6w8JW.cjs.map +1 -0
- package/package.json +13 -13
- package/dist/agent-builder-B7B1DSP9.cjs.map +0 -1
- package/dist/agent-builder-CrFZJ1mg.js.map +0 -1
- package/dist/agents-Cp4FBxQB.cjs.map +0 -1
- package/dist/agents-DPvMjiDf.js.map +0 -1
- package/dist/dist-CzWU4AmA.cjs.map +0 -1
- package/dist/dist-DDo4vt34.js.map +0 -1
- package/dist/dist-FafoYsHK.js +0 -1
- package/dist/knowledge-DykIi0wH.js.map +0 -1
- package/dist/knowledge-qu0om3W7.cjs.map +0 -1
- package/dist/routes-BCoCimCB.js.map +0 -1
- package/dist/routes-FKc6a2N0.cjs.map +0 -1
- package/dist/workflows-CJxQkruy.cjs.map +0 -1
- package/dist/workflows-DrDssVnE.js.map +0 -1
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/@internal_core@0.1.4/dist/request-context/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/@internal_core@0.1.4/dist/routes/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/@internal_core@0.1.4/dist/types/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/checks.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/coerce.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/compat.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/deep-partial.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/errors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/external.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/from-json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/in-out.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/iso.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/parse.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/classic/schemas.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/api.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/checks.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/compile.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/core.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/doc.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/errors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/json-schema-generator.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/json-schema-processors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/memoizer.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/parse.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/regexes.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/registries.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/schemas.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/standard-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/to-json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/util.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/core/versions.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/index.d.cts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ar.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/az.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/be.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/bg.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/bn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ca.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ckb.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/cs.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/da.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/de.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/el.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/en.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/eo.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/es.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/fa.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/fi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/fr-CA.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/fr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/gu.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/he.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/hi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/hr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/hu.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/hy.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/id.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/is.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/it.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ja.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ka.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/kh.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/km.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/kn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ko.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/lt.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/mk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ms.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ne.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/nl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/nn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/no.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ota.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/pl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ps.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/pt-BR.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/pt.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ro.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ru.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/sk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/sl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/sv.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ta.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/tg.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/th.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/tk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/tr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ua.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/uk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/ur.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/uz.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/vi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/yo.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/zh-CN.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/_types/zod@4.6.7/v4/locales/zh-TW.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/dist/routes/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.44}/package.json +0 -0
- /package/dist/_types/@mastra_schema-compat@1.3.17/dist/_types/{@internal_ai-sdk-v4@0.0.94 → @internal_ai-sdk-v4@0.0.95}/dist/index.d.ts +0 -0
|
@@ -5,9 +5,9 @@ import { b as workflowRunResultSchema, g as workflowInfoSchema, i as listWorkflo
|
|
|
5
5
|
import { a as streamAgentBuilderBodySchema, i as startAsyncAgentBuilderBodySchema, n as actionRunPathParams, o as streamLegacyAgentBuilderBodySchema, r as resumeAgentBuilderBodySchema, t as actionIdPathParams } from "./agent-builder-CSnA_l6K.js";
|
|
6
6
|
import { X as streamResponseSchema } from "./agents-BXqMKoOz.js";
|
|
7
7
|
import { n as createRoute } from "./route-builder-BxPrwNog.js";
|
|
8
|
-
import { t as WorkflowRegistry } from "./utils-
|
|
8
|
+
import { t as WorkflowRegistry } from "./utils-Dy_dQTlK.js";
|
|
9
9
|
import { handleError } from "./server/handlers/error.js";
|
|
10
|
-
import { C as STREAM_LEGACY_WORKFLOW_ROUTE, S as START_WORKFLOW_RUN_ROUTE, _ as RESUME_ASYNC_WORKFLOW_ROUTE, a as GET_WORKFLOW_BY_ID_ROUTE, b as RESUME_WORKFLOW_ROUTE, c as LIST_WORKFLOW_RUNS_ROUTE, d as OBSERVE_STREAM_WORKFLOW_ROUTE, n as CREATE_WORKFLOW_RUN_ROUTE, o as GET_WORKFLOW_RUN_BY_ID_ROUTE, s as LIST_WORKFLOWS_ROUTE, t as CANCEL_WORKFLOW_RUN_ROUTE, u as OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE, v as RESUME_NO_WAIT_WORKFLOW_ROUTE, w as STREAM_WORKFLOW_ROUTE, x as START_ASYNC_WORKFLOW_ROUTE, y as RESUME_STREAM_WORKFLOW_ROUTE } from "./workflows-
|
|
10
|
+
import { C as STREAM_LEGACY_WORKFLOW_ROUTE, S as START_WORKFLOW_RUN_ROUTE, _ as RESUME_ASYNC_WORKFLOW_ROUTE, a as GET_WORKFLOW_BY_ID_ROUTE, b as RESUME_WORKFLOW_ROUTE, c as LIST_WORKFLOW_RUNS_ROUTE, d as OBSERVE_STREAM_WORKFLOW_ROUTE, n as CREATE_WORKFLOW_RUN_ROUTE, o as GET_WORKFLOW_RUN_BY_ID_ROUTE, s as LIST_WORKFLOWS_ROUTE, t as CANCEL_WORKFLOW_RUN_ROUTE, u as OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE, v as RESUME_NO_WAIT_WORKFLOW_ROUTE, w as STREAM_WORKFLOW_ROUTE, x as START_ASYNC_WORKFLOW_ROUTE, y as RESUME_STREAM_WORKFLOW_ROUTE } from "./workflows-BxXS5AfE.js";
|
|
11
11
|
// src/server/handlers/agent-builder.ts
|
|
12
12
|
var agent_builder_exports = /* @__PURE__ */ __exportAll({
|
|
13
13
|
CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE: () => CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE,
|
|
@@ -27,13 +27,16 @@ var agent_builder_exports = /* @__PURE__ */ __exportAll({
|
|
|
27
27
|
STREAM_AGENT_BUILDER_ACTION_ROUTE: () => STREAM_AGENT_BUILDER_ACTION_ROUTE,
|
|
28
28
|
STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: () => STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE
|
|
29
29
|
});
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
agentBuilderWorkflowsPromise ??= import("./dist-DDo4vt34.js").then((mod) => mod.agentBuilderWorkflows);
|
|
33
|
-
return agentBuilderWorkflowsPromise;
|
|
34
|
-
}
|
|
30
|
+
let createAgentBuilderWorkflowsPromise;
|
|
31
|
+
const agentBuilderWorkflowsByMastra = /* @__PURE__ */ new WeakMap();
|
|
35
32
|
async function registerAgentBuilderWorkflows(mastra) {
|
|
36
|
-
|
|
33
|
+
createAgentBuilderWorkflowsPromise ??= import("./dist-CIYZuix4.js").then((mod) => mod.createAgentBuilderWorkflows);
|
|
34
|
+
const create = await createAgentBuilderWorkflowsPromise;
|
|
35
|
+
let agentBuilderWorkflows = agentBuilderWorkflowsByMastra.get(mastra);
|
|
36
|
+
if (!agentBuilderWorkflows) {
|
|
37
|
+
agentBuilderWorkflows = create();
|
|
38
|
+
agentBuilderWorkflowsByMastra.set(mastra, agentBuilderWorkflows);
|
|
39
|
+
}
|
|
37
40
|
WorkflowRegistry.registerTemporaryWorkflows(agentBuilderWorkflows, mastra);
|
|
38
41
|
return agentBuilderWorkflows;
|
|
39
42
|
}
|
|
@@ -57,7 +60,7 @@ const LIST_AGENT_BUILDER_ACTIONS_ROUTE = createRoute({
|
|
|
57
60
|
logger.error("Error listing agent builder actions", { error });
|
|
58
61
|
return handleError(error, "Error getting agent builder workflows");
|
|
59
62
|
} finally {
|
|
60
|
-
WorkflowRegistry.cleanup();
|
|
63
|
+
WorkflowRegistry.cleanup(mastra);
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
});
|
|
@@ -76,7 +79,7 @@ const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE = createRoute({
|
|
|
76
79
|
const logger = mastra.getLogger();
|
|
77
80
|
try {
|
|
78
81
|
const agentBuilderWorkflows = await registerAgentBuilderWorkflows(mastra);
|
|
79
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}. Valid actions are: ${Object.keys(agentBuilderWorkflows).join(", ")}` });
|
|
82
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}. Valid actions are: ${Object.keys(agentBuilderWorkflows).join(", ")}` });
|
|
80
83
|
logger.info("Getting agent builder action by ID", { actionId });
|
|
81
84
|
return await GET_WORKFLOW_BY_ID_ROUTE.handler({
|
|
82
85
|
...ctx,
|
|
@@ -89,7 +92,7 @@ const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE = createRoute({
|
|
|
89
92
|
});
|
|
90
93
|
return handleError(error, "Error getting agent builder action");
|
|
91
94
|
} finally {
|
|
92
|
-
WorkflowRegistry.cleanup();
|
|
95
|
+
WorkflowRegistry.cleanup(mastra);
|
|
93
96
|
}
|
|
94
97
|
}
|
|
95
98
|
});
|
|
@@ -109,7 +112,7 @@ const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE = createRoute({
|
|
|
109
112
|
const logger = mastra.getLogger();
|
|
110
113
|
try {
|
|
111
114
|
await registerAgentBuilderWorkflows(mastra);
|
|
112
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
115
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
113
116
|
logger.info("Listing agent builder action runs", { actionId });
|
|
114
117
|
return await LIST_WORKFLOW_RUNS_ROUTE.handler({
|
|
115
118
|
...ctx,
|
|
@@ -122,7 +125,7 @@ const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE = createRoute({
|
|
|
122
125
|
});
|
|
123
126
|
return handleError(error, "Error getting agent builder action runs");
|
|
124
127
|
} finally {
|
|
125
|
-
WorkflowRegistry.cleanup();
|
|
128
|
+
WorkflowRegistry.cleanup(mastra);
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
131
|
});
|
|
@@ -142,7 +145,7 @@ const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE = createRoute({
|
|
|
142
145
|
const logger = mastra.getLogger();
|
|
143
146
|
try {
|
|
144
147
|
await registerAgentBuilderWorkflows(mastra);
|
|
145
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
148
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
146
149
|
logger.info("Getting agent builder action run by ID", {
|
|
147
150
|
actionId,
|
|
148
151
|
runId
|
|
@@ -159,7 +162,7 @@ const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE = createRoute({
|
|
|
159
162
|
});
|
|
160
163
|
return handleError(error, "Error getting agent builder action run");
|
|
161
164
|
} finally {
|
|
162
|
-
WorkflowRegistry.cleanup();
|
|
165
|
+
WorkflowRegistry.cleanup(mastra);
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
});
|
|
@@ -179,7 +182,7 @@ const CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
|
|
|
179
182
|
const logger = mastra.getLogger();
|
|
180
183
|
try {
|
|
181
184
|
await registerAgentBuilderWorkflows(mastra);
|
|
182
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
185
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
183
186
|
logger.info("Creating agent builder action run", {
|
|
184
187
|
actionId,
|
|
185
188
|
runId
|
|
@@ -195,7 +198,7 @@ const CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
|
|
|
195
198
|
});
|
|
196
199
|
return handleError(error, "Error creating agent builder action run");
|
|
197
200
|
} finally {
|
|
198
|
-
WorkflowRegistry.cleanup();
|
|
201
|
+
WorkflowRegistry.cleanup(mastra);
|
|
199
202
|
}
|
|
200
203
|
}
|
|
201
204
|
});
|
|
@@ -216,7 +219,7 @@ const STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
216
219
|
const logger = mastra.getLogger();
|
|
217
220
|
try {
|
|
218
221
|
await registerAgentBuilderWorkflows(mastra);
|
|
219
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
222
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
220
223
|
logger.info("Streaming agent builder action", {
|
|
221
224
|
actionId,
|
|
222
225
|
runId
|
|
@@ -233,7 +236,7 @@ const STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
233
236
|
});
|
|
234
237
|
return handleError(error, "Error streaming agent builder action");
|
|
235
238
|
} finally {
|
|
236
|
-
WorkflowRegistry.cleanup();
|
|
239
|
+
WorkflowRegistry.cleanup(mastra);
|
|
237
240
|
}
|
|
238
241
|
}
|
|
239
242
|
});
|
|
@@ -254,7 +257,7 @@ const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
254
257
|
const logger = mastra.getLogger();
|
|
255
258
|
try {
|
|
256
259
|
await registerAgentBuilderWorkflows(mastra);
|
|
257
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
260
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
258
261
|
logger.info("Starting agent builder action asynchronously", {
|
|
259
262
|
actionId,
|
|
260
263
|
runId
|
|
@@ -271,7 +274,7 @@ const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
271
274
|
});
|
|
272
275
|
return handleError(error, "Error starting agent builder action");
|
|
273
276
|
} finally {
|
|
274
|
-
WorkflowRegistry.cleanup();
|
|
277
|
+
WorkflowRegistry.cleanup(mastra);
|
|
275
278
|
}
|
|
276
279
|
}
|
|
277
280
|
});
|
|
@@ -292,7 +295,7 @@ const START_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
|
|
|
292
295
|
const logger = mastra.getLogger();
|
|
293
296
|
try {
|
|
294
297
|
await registerAgentBuilderWorkflows(mastra);
|
|
295
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
298
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
296
299
|
logger.info("Starting specific agent builder action run", {
|
|
297
300
|
actionId,
|
|
298
301
|
runId
|
|
@@ -309,7 +312,7 @@ const START_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
|
|
|
309
312
|
});
|
|
310
313
|
return handleError(error, "Error starting agent builder action run");
|
|
311
314
|
} finally {
|
|
312
|
-
WorkflowRegistry.cleanup();
|
|
315
|
+
WorkflowRegistry.cleanup(mastra);
|
|
313
316
|
}
|
|
314
317
|
}
|
|
315
318
|
});
|
|
@@ -329,7 +332,7 @@ const OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
329
332
|
const logger = mastra.getLogger();
|
|
330
333
|
try {
|
|
331
334
|
await registerAgentBuilderWorkflows(mastra);
|
|
332
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
335
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
333
336
|
logger.info("Observing agent builder action stream", {
|
|
334
337
|
actionId,
|
|
335
338
|
runId
|
|
@@ -345,7 +348,7 @@ const OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
345
348
|
});
|
|
346
349
|
return handleError(error, "Error observing agent builder action stream");
|
|
347
350
|
} finally {
|
|
348
|
-
WorkflowRegistry.cleanup();
|
|
351
|
+
WorkflowRegistry.cleanup(mastra);
|
|
349
352
|
}
|
|
350
353
|
}
|
|
351
354
|
});
|
|
@@ -366,7 +369,7 @@ const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
366
369
|
const logger = mastra.getLogger();
|
|
367
370
|
try {
|
|
368
371
|
await registerAgentBuilderWorkflows(mastra);
|
|
369
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
372
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
370
373
|
logger.info("Resuming agent builder action asynchronously", {
|
|
371
374
|
actionId,
|
|
372
375
|
runId,
|
|
@@ -384,7 +387,7 @@ const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
384
387
|
});
|
|
385
388
|
return handleError(error, "Error resuming agent builder action");
|
|
386
389
|
} finally {
|
|
387
|
-
WorkflowRegistry.cleanup();
|
|
390
|
+
WorkflowRegistry.cleanup(mastra);
|
|
388
391
|
}
|
|
389
392
|
}
|
|
390
393
|
});
|
|
@@ -412,7 +415,7 @@ const RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
412
415
|
const logger = mastra.getLogger();
|
|
413
416
|
try {
|
|
414
417
|
await registerAgentBuilderWorkflows(mastra);
|
|
415
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
418
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
416
419
|
logger.info("Resuming agent builder action without waiting", {
|
|
417
420
|
actionId,
|
|
418
421
|
runId,
|
|
@@ -430,7 +433,7 @@ const RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
430
433
|
});
|
|
431
434
|
return handleError(error, "Error resuming agent builder action");
|
|
432
435
|
} finally {
|
|
433
|
-
WorkflowRegistry.cleanup();
|
|
436
|
+
WorkflowRegistry.cleanup(mastra);
|
|
434
437
|
}
|
|
435
438
|
}
|
|
436
439
|
});
|
|
@@ -451,7 +454,7 @@ const RESUME_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
451
454
|
const logger = mastra.getLogger();
|
|
452
455
|
try {
|
|
453
456
|
await registerAgentBuilderWorkflows(mastra);
|
|
454
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
457
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
455
458
|
logger.info("Resuming agent builder action", {
|
|
456
459
|
actionId,
|
|
457
460
|
runId,
|
|
@@ -469,7 +472,7 @@ const RESUME_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
469
472
|
});
|
|
470
473
|
return handleError(error, "Error resuming agent builder action");
|
|
471
474
|
} finally {
|
|
472
|
-
WorkflowRegistry.cleanup();
|
|
475
|
+
WorkflowRegistry.cleanup(mastra);
|
|
473
476
|
}
|
|
474
477
|
}
|
|
475
478
|
});
|
|
@@ -490,7 +493,7 @@ const RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
490
493
|
const logger = mastra.getLogger();
|
|
491
494
|
try {
|
|
492
495
|
await registerAgentBuilderWorkflows(mastra);
|
|
493
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
496
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
494
497
|
logger.info("Resuming agent builder action stream", {
|
|
495
498
|
actionId,
|
|
496
499
|
runId,
|
|
@@ -508,7 +511,7 @@ const RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
508
511
|
});
|
|
509
512
|
return handleError(error, "Error resuming agent builder action stream");
|
|
510
513
|
} finally {
|
|
511
|
-
WorkflowRegistry.cleanup();
|
|
514
|
+
WorkflowRegistry.cleanup(mastra);
|
|
512
515
|
}
|
|
513
516
|
}
|
|
514
517
|
});
|
|
@@ -527,7 +530,7 @@ const CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
|
|
|
527
530
|
const logger = mastra.getLogger();
|
|
528
531
|
try {
|
|
529
532
|
await registerAgentBuilderWorkflows(mastra);
|
|
530
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
533
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
531
534
|
logger.info("Cancelling agent builder action run", {
|
|
532
535
|
actionId,
|
|
533
536
|
runId
|
|
@@ -543,7 +546,7 @@ const CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
|
|
|
543
546
|
});
|
|
544
547
|
return handleError(error, "Error cancelling agent builder action run");
|
|
545
548
|
} finally {
|
|
546
|
-
WorkflowRegistry.cleanup();
|
|
549
|
+
WorkflowRegistry.cleanup(mastra);
|
|
547
550
|
}
|
|
548
551
|
}
|
|
549
552
|
});
|
|
@@ -564,7 +567,7 @@ const STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
564
567
|
const logger = mastra.getLogger();
|
|
565
568
|
try {
|
|
566
569
|
await registerAgentBuilderWorkflows(mastra);
|
|
567
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
570
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
568
571
|
logger.info("Streaming agent builder action (legacy)", {
|
|
569
572
|
actionId,
|
|
570
573
|
runId
|
|
@@ -581,7 +584,7 @@ const STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
581
584
|
});
|
|
582
585
|
return handleError(error, "Error streaming agent builder action");
|
|
583
586
|
} finally {
|
|
584
|
-
WorkflowRegistry.cleanup();
|
|
587
|
+
WorkflowRegistry.cleanup(mastra);
|
|
585
588
|
}
|
|
586
589
|
}
|
|
587
590
|
});
|
|
@@ -601,7 +604,7 @@ const OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
601
604
|
const logger = mastra.getLogger();
|
|
602
605
|
try {
|
|
603
606
|
await registerAgentBuilderWorkflows(mastra);
|
|
604
|
-
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
607
|
+
if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
605
608
|
logger.info("Observing agent builder action stream (legacy)", {
|
|
606
609
|
actionId,
|
|
607
610
|
runId
|
|
@@ -617,10 +620,10 @@ const OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
|
|
|
617
620
|
});
|
|
618
621
|
return handleError(error, "Error observing agent builder action stream");
|
|
619
622
|
} finally {
|
|
620
|
-
WorkflowRegistry.cleanup();
|
|
623
|
+
WorkflowRegistry.cleanup(mastra);
|
|
621
624
|
}
|
|
622
625
|
}
|
|
623
626
|
});
|
|
624
627
|
export { agent_builder_exports as _, LIST_AGENT_BUILDER_ACTIONS_ROUTE as a, OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE as c, RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE as d, RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE as f, STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE as g, STREAM_AGENT_BUILDER_ACTION_ROUTE as h, GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE as i, RESUME_AGENT_BUILDER_ACTION_ROUTE as l, START_ASYNC_AGENT_BUILDER_ACTION_ROUTE as m, CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE as n, LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE as o, START_AGENT_BUILDER_ACTION_RUN_ROUTE as p, GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE as r, OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE as s, CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE as t, RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE as u };
|
|
625
628
|
|
|
626
|
-
//# sourceMappingURL=agent-builder-
|
|
629
|
+
//# sourceMappingURL=agent-builder-C_L1i2eE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-builder-C_L1i2eE.js","names":[],"sources":["../src/server/handlers/agent-builder.ts"],"sourcesContent":["import type { createAgentBuilderWorkflows } from '@mastra/agent-builder';\nimport type { Mastra } from '@mastra/core';\nimport { HTTPException } from '../http-exception';\nimport {\n actionIdPathParams,\n actionRunPathParams,\n createWorkflowRunResponseSchema,\n listWorkflowRunsQuerySchema,\n resumeAgentBuilderBodySchema,\n streamAgentBuilderBodySchema,\n startAsyncAgentBuilderBodySchema,\n workflowExecutionResultSchema,\n workflowControlResponseSchema,\n workflowRunsResponseSchema,\n workflowInfoSchema,\n listWorkflowsResponseSchema,\n streamLegacyAgentBuilderBodySchema,\n workflowRunResultSchema,\n workflowRunResultQuerySchema,\n} from '../schemas/agent-builder';\nimport { streamResponseSchema } from '../schemas/agents';\nimport { optionalRunIdSchema, runIdSchema } from '../schemas/common';\nimport { createRoute } from '../server-adapter/routes/route-builder';\nimport { WorkflowRegistry } from '../utils';\nimport { handleError } from './error';\nimport * as workflows from './workflows';\n\nlet createAgentBuilderWorkflowsPromise: Promise<typeof createAgentBuilderWorkflows> | undefined;\n\n// One set per Mastra instance. createAgentBuilderWorkflows documents why a shared set breaks.\nconst agentBuilderWorkflowsByMastra = new WeakMap<Mastra, ReturnType<typeof createAgentBuilderWorkflows>>();\n\nasync function registerAgentBuilderWorkflows(mastra: Mastra) {\n createAgentBuilderWorkflowsPromise ??= import('@mastra/agent-builder').then(mod => mod.createAgentBuilderWorkflows);\n const create = await createAgentBuilderWorkflowsPromise;\n\n let agentBuilderWorkflows = agentBuilderWorkflowsByMastra.get(mastra);\n if (!agentBuilderWorkflows) {\n agentBuilderWorkflows = create();\n agentBuilderWorkflowsByMastra.set(mastra, agentBuilderWorkflows);\n }\n\n WorkflowRegistry.registerTemporaryWorkflows(agentBuilderWorkflows, mastra);\n return agentBuilderWorkflows;\n}\n\n// ============================================================================\n// Route Definitions (handlers call workflow route handlers with transformed parameters)\n// ============================================================================\n\nexport const LIST_AGENT_BUILDER_ACTIONS_ROUTE = createRoute({\n method: 'GET',\n path: '/agent-builder',\n responseType: 'json',\n responseSchema: listWorkflowsResponseSchema,\n summary: 'List agent-builder actions',\n description: 'Returns a list of all available agent-builder actions',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n logger.info('Listing agent builder actions');\n\n // Call workflow list handler\n return await workflows.LIST_WORKFLOWS_ROUTE.handler(ctx);\n } catch (error) {\n logger.error('Error listing agent builder actions', { error });\n return handleError(error, 'Error getting agent builder workflows');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE = createRoute({\n method: 'GET',\n path: '/agent-builder/:actionId',\n responseType: 'json',\n pathParamSchema: actionIdPathParams,\n responseSchema: workflowInfoSchema,\n summary: 'Get action by ID',\n description: 'Returns details for a specific agent-builder action',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId } = ctx;\n const logger = mastra.getLogger();\n try {\n const agentBuilderWorkflows = await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, {\n message: `Invalid agent-builder action: ${actionId}. Valid actions are: ${Object.keys(agentBuilderWorkflows).join(', ')}`,\n });\n }\n\n logger.info('Getting agent builder action by ID', { actionId });\n\n return await workflows.GET_WORKFLOW_BY_ID_ROUTE.handler({ ...ctx, workflowId: actionId });\n } catch (error) {\n logger.error('Error getting agent builder action by ID', { error, actionId });\n return handleError(error, 'Error getting agent builder action');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE = createRoute({\n method: 'GET',\n path: '/agent-builder/:actionId/runs',\n responseType: 'json',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: listWorkflowRunsQuerySchema,\n responseSchema: workflowRunsResponseSchema,\n summary: 'List action runs',\n description: 'Returns a paginated list of execution runs for the specified action',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Listing agent builder action runs', { actionId });\n\n return await workflows.LIST_WORKFLOW_RUNS_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n });\n } catch (error) {\n logger.error('Error listing agent builder action runs', { error, actionId });\n return handleError(error, 'Error getting agent builder action runs');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE = createRoute({\n method: 'GET',\n path: '/agent-builder/:actionId/runs/:runId',\n responseType: 'json',\n pathParamSchema: actionRunPathParams,\n queryParamSchema: workflowRunResultQuerySchema,\n responseSchema: workflowRunResultSchema,\n summary: 'Get action run by ID',\n description:\n 'Returns details for a specific action run with metadata and processed execution state. Use the fields query parameter to reduce payload size.',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Getting agent builder action run by ID', { actionId, runId });\n\n return await workflows.GET_WORKFLOW_RUN_BY_ID_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n });\n } catch (error) {\n logger.error('Error getting agent builder action run', { error, actionId, runId });\n return handleError(error, 'Error getting agent builder action run');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/create-run',\n responseType: 'json',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: optionalRunIdSchema,\n responseSchema: createWorkflowRunResponseSchema,\n summary: 'Create action run',\n description: 'Creates a new action execution instance with an optional custom run ID',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Creating agent builder action run', { actionId, runId });\n\n return await workflows.CREATE_WORKFLOW_RUN_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n });\n } catch (error) {\n logger.error('Error creating agent builder action run', { error, actionId });\n return handleError(error, 'Error creating agent builder action run');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/stream',\n responseType: 'stream',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n bodySchema: streamAgentBuilderBodySchema,\n responseSchema: streamResponseSchema,\n summary: 'Stream action execution',\n description: 'Executes an action and streams the results in real-time',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId, requestContext } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Streaming agent builder action', { actionId, runId });\n\n return await workflows.STREAM_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n requestContext,\n });\n } catch (error) {\n logger.error('Error streaming agent builder action', { error, actionId });\n return handleError(error, 'Error streaming agent builder action');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/start-async',\n responseType: 'json',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: optionalRunIdSchema,\n bodySchema: startAsyncAgentBuilderBodySchema,\n responseSchema: workflowExecutionResultSchema,\n summary: 'Start action asynchronously',\n description: 'Starts an action execution asynchronously without streaming results',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId, requestContext } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Starting agent builder action asynchronously', { actionId, runId });\n\n return await workflows.START_ASYNC_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n requestContext,\n });\n } catch (error) {\n logger.error('Error starting agent builder action asynchronously', { error, actionId });\n return handleError(error, 'Error starting agent builder action');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const START_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/start',\n responseType: 'json',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n bodySchema: startAsyncAgentBuilderBodySchema,\n responseSchema: workflowControlResponseSchema,\n summary: 'Start specific action run',\n description: 'Starts execution of a specific action run by ID',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId, requestContext } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Starting specific agent builder action run', { actionId, runId });\n\n return await workflows.START_WORKFLOW_RUN_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n requestContext,\n });\n } catch (error) {\n logger.error('Error starting agent builder action run', { error, actionId });\n return handleError(error, 'Error starting agent builder action run');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/observe',\n responseType: 'stream',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n responseSchema: streamResponseSchema,\n summary: 'Observe action stream',\n description: 'Observes and streams updates from an already running action execution',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Observing agent builder action stream', { actionId, runId });\n\n return await workflows.OBSERVE_STREAM_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n });\n } catch (error) {\n logger.error('Error observing agent builder action stream', { error, actionId });\n return handleError(error, 'Error observing agent builder action stream');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/resume-async',\n responseType: 'json',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n bodySchema: resumeAgentBuilderBodySchema,\n responseSchema: workflowExecutionResultSchema,\n summary: 'Resume action asynchronously',\n description: 'Resumes a suspended action execution asynchronously without streaming',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId, step, requestContext } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Resuming agent builder action asynchronously', { actionId, runId, step });\n\n return await workflows.RESUME_ASYNC_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n requestContext,\n });\n } catch (error) {\n logger.error('Error resuming agent builder action asynchronously', { error, actionId });\n return handleError(error, 'Error resuming agent builder action');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\n/**\n * Fire-and-forget resume for agent-builder actions: returns immediately with the runId without\n * waiting for completion. Delegates to the workflows `resume-no-wait` route.\n *\n * TODO(v2): fold this behavior into the `resume-async` route in Mastra v2 and remove this route.\n * Kept separate in v1 to avoid breaking the existing `resume-async` response contract.\n */\nexport const RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/resume-no-wait',\n responseType: 'json',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n bodySchema: resumeAgentBuilderBodySchema,\n responseSchema: createWorkflowRunResponseSchema,\n summary: 'Resume action without waiting',\n description:\n 'Resumes a suspended action execution without waiting (fire-and-forget) and returns immediately with the runId. The action continues executing in the background.',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId, step, requestContext } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Resuming agent builder action without waiting', { actionId, runId, step });\n\n return await workflows.RESUME_NO_WAIT_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n requestContext,\n });\n } catch (error) {\n logger.error('Error resuming agent builder action without waiting', { error, actionId });\n return handleError(error, 'Error resuming agent builder action');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const RESUME_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/resume',\n responseType: 'json',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n bodySchema: resumeAgentBuilderBodySchema,\n responseSchema: workflowControlResponseSchema,\n summary: 'Resume action',\n description: 'Resumes a suspended action execution from a specific step',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId, step, requestContext } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Resuming agent builder action', { actionId, runId, step });\n\n return await workflows.RESUME_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n requestContext,\n });\n } catch (error) {\n logger.error('Error resuming agent builder action', { error, actionId });\n return handleError(error, 'Error resuming agent builder action');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/resume-stream',\n responseType: 'stream',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n bodySchema: resumeAgentBuilderBodySchema,\n responseSchema: streamResponseSchema,\n summary: 'Resume action stream',\n description: 'Resumes a suspended action execution and continues streaming results',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId, step, requestContext } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Resuming agent builder action stream', { actionId, runId, step });\n\n return await workflows.RESUME_STREAM_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n requestContext,\n });\n } catch (error) {\n logger.error('Error resuming agent builder action stream', { error, actionId });\n return handleError(error, 'Error resuming agent builder action stream');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/runs/:runId/cancel',\n responseType: 'json',\n pathParamSchema: actionRunPathParams,\n responseSchema: workflowControlResponseSchema,\n summary: 'Cancel action run',\n description: 'Cancels an in-progress action execution',\n tags: ['Agent Builder'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Cancelling agent builder action run', { actionId, runId });\n\n return await workflows.CANCEL_WORKFLOW_RUN_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n });\n } catch (error) {\n logger.error('Error cancelling agent builder action run', { error, actionId });\n return handleError(error, 'Error cancelling agent builder action run');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\n// Legacy routes (deprecated)\nexport const STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/stream-legacy',\n responseType: 'stream',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n bodySchema: streamLegacyAgentBuilderBodySchema,\n responseSchema: streamResponseSchema,\n summary: '[DEPRECATED] Stream agent-builder action with legacy format',\n description:\n 'Legacy endpoint for streaming agent-builder action execution. Use /agent-builder/:actionId/stream instead.',\n tags: ['Agent Builder', 'Legacy'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId, requestContext } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Streaming agent builder action (legacy)', { actionId, runId });\n\n return await workflows.STREAM_LEGACY_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n requestContext,\n });\n } catch (error) {\n logger.error('Error streaming agent builder action (legacy)', { error, actionId });\n return handleError(error, 'Error streaming agent builder action');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n\nexport const OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({\n method: 'POST',\n path: '/agent-builder/:actionId/observe-stream-legacy',\n responseType: 'stream',\n pathParamSchema: actionIdPathParams,\n queryParamSchema: runIdSchema,\n responseSchema: streamResponseSchema,\n summary: '[DEPRECATED] Observe agent-builder action stream with legacy format',\n description:\n 'Legacy endpoint for observing agent-builder action stream. Use /agent-builder/:actionId/observe instead.',\n tags: ['Agent Builder', 'Legacy'],\n requiresAuth: true,\n handler: async ctx => {\n const { mastra, actionId, runId } = ctx;\n const logger = mastra.getLogger();\n try {\n await registerAgentBuilderWorkflows(mastra);\n\n if (actionId && !WorkflowRegistry.isAgentBuilderWorkflow(actionId, mastra)) {\n throw new HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });\n }\n\n logger.info('Observing agent builder action stream (legacy)', { actionId, runId });\n\n return await workflows.OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE.handler({\n ...ctx,\n workflowId: actionId,\n });\n } catch (error) {\n logger.error('Error observing agent builder action stream (legacy)', { error, actionId });\n return handleError(error, 'Error observing agent builder action stream');\n } finally {\n WorkflowRegistry.cleanup(mastra);\n }\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAI;AAGJ,MAAM,gDAAgC,IAAI,QAAgE;AAE1G,eAAe,8BAA8B,QAAgB;CAC3D,uCAAuC,OAAO,qBAAwB,CAAC,MAAK,QAAO,IAAI,2BAA2B;CAClH,MAAM,SAAS,MAAM;CAErB,IAAI,wBAAwB,8BAA8B,IAAI,MAAM;CACpE,IAAI,CAAC,uBAAuB;EAC1B,wBAAwB,OAAO;EAC/B,8BAA8B,IAAI,QAAQ,qBAAqB;CACjE;CAEA,iBAAiB,2BAA2B,uBAAuB,MAAM;CACzE,OAAO;AACT;AAMA,MAAa,mCAAmC,YAAY;CAC1D,QAAQ;CACR,MAAM;CACN,cAAc;CACd,gBAAgB;CAChB,SAAS;CACT,aAAa;CACb,MAAM,CAAC,eAAe;CACtB,cAAc;CACd,SAAS,OAAM,QAAO;EACpB,MAAM,EAAE,WAAW;EACnB,MAAM,SAAS,OAAO,UAAU;EAChC,IAAI;GACF,MAAM,8BAA8B,MAAM;GAC1C,OAAO,KAAK,+BAA+B;GAG3C,OAAO,MAAA,qBAAqC,QAAQ,GAAG;EACzD,SAAS,OAAO;GACd,OAAO,MAAM,uCAAuC,EAAE,MAAM,CAAC;GAC7D,OAAO,YAAY,OAAO,uCAAuC;EACnE,UAAU;GACR,iBAAiB,QAAQ,MAAM;EACjC;CACF;AACF,CAAC;AAED,MAAa,uCAAuC,YAAY;CAC9D,QAAQ;CACR,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