@mastra/server 1.57.0-alpha.1 → 1.57.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/CHANGELOG.md +48 -0
- package/dist/_types/@internal_core/dist/storage/index.d.ts +2 -0
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +4 -1
- package/dist/_types/@mastra_schema-compat/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +16 -217
- package/dist/_types/@mastra_schema-compat/dist/_types/@internal_ai-v6/dist/index.d.ts +31 -378
- package/dist/{a2a-CE7HKP5V.cjs → a2a-DKnwIgiw.cjs} +2 -2
- package/dist/{a2a-CE7HKP5V.cjs.map → a2a-DKnwIgiw.cjs.map} +1 -1
- package/dist/{a2a-_3LYIc9y.js → a2a-uPi5sPwb.js} +2 -2
- package/dist/{a2a-_3LYIc9y.js.map → a2a-uPi5sPwb.js.map} +1 -1
- package/dist/{agent-versions-DC1Rp5EP.js → agent-versions-Bsrpa_zb.js} +2 -2
- package/dist/{agent-versions-DC1Rp5EP.js.map → agent-versions-Bsrpa_zb.js.map} +1 -1
- package/dist/{agent-versions-DhkWMz0z.cjs → agent-versions-CdQGF-3e.cjs} +2 -2
- package/dist/{agent-versions-DhkWMz0z.cjs.map → agent-versions-CdQGF-3e.cjs.map} +1 -1
- package/dist/{agents-DD4PJgsF.js → agents-CYvun9iI.js} +12 -7
- package/dist/agents-CYvun9iI.js.map +1 -0
- package/dist/{agents-B9ofSVSn.cjs → agents-Dk2qoJi_.cjs} +12 -7
- package/dist/agents-Dk2qoJi_.cjs.map +1 -0
- package/dist/{api-schema-manifest-Ba-Ssw4H.cjs → api-schema-manifest-7-NC9Dyc.cjs} +2 -2
- package/dist/{api-schema-manifest-Ba-Ssw4H.cjs.map → api-schema-manifest-7-NC9Dyc.cjs.map} +1 -1
- package/dist/{api-schema-manifest-DbTP-DpV.js → api-schema-manifest-C5hpdIE_.js} +2 -2
- package/dist/{api-schema-manifest-DbTP-DpV.js.map → api-schema-manifest-C5hpdIE_.js.map} +1 -1
- package/dist/{builder-registry-C_PysvMI.cjs → builder-registry-BoaXBdm_.cjs} +2 -2
- package/dist/{builder-registry-C_PysvMI.cjs.map → builder-registry-BoaXBdm_.cjs.map} +1 -1
- package/dist/{builder-registry-DaPvPspl.js → builder-registry-DE5w7bNk.js} +2 -2
- package/dist/{builder-registry-DaPvPspl.js.map → builder-registry-DE5w7bNk.js.map} +1 -1
- package/dist/{dist-DhFw0bEW.cjs → dist-COHIL6fR.cjs} +156 -46
- package/dist/dist-COHIL6fR.cjs.map +1 -0
- package/dist/{dist-DRyzA92e.js → dist-DGqlUp0b.js} +156 -46
- package/dist/dist-DGqlUp0b.js.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-server-routes.md +13 -0
- package/dist/{editor-builder-ByNr3nc9.cjs → editor-builder-BW4nlDcX.cjs} +2 -2
- package/dist/{editor-builder-ByNr3nc9.cjs.map → editor-builder-BW4nlDcX.cjs.map} +1 -1
- package/dist/{editor-builder-DZRQf2UD.cjs → editor-builder-CWTGCtNu.cjs} +2 -2
- package/dist/{editor-builder-DZRQf2UD.cjs.map → editor-builder-CWTGCtNu.cjs.map} +1 -1
- package/dist/{editor-builder-CW9Tcqg1.js → editor-builder-Ct2nIbum.js} +2 -2
- package/dist/{editor-builder-CW9Tcqg1.js.map → editor-builder-Ct2nIbum.js.map} +1 -1
- package/dist/{editor-builder-XFcH8gX0.js → editor-builder-fKbRRlK_.js} +2 -2
- package/dist/{editor-builder-XFcH8gX0.js.map → editor-builder-fKbRRlK_.js.map} +1 -1
- package/dist/{observability-new-endpoints-DFBDedGH.cjs → observability-new-endpoints-Dk3oatL8.cjs} +3 -1
- package/dist/observability-new-endpoints-Dk3oatL8.cjs.map +1 -0
- package/dist/{observability-new-endpoints-CCyqX1Ra.js → observability-new-endpoints-YK2DjZto.js} +3 -1
- package/dist/observability-new-endpoints-YK2DjZto.js.map +1 -0
- package/dist/{processor-providers-BmOA_jeU.js → processor-providers-DBhZC6-4.js} +3 -2
- package/dist/processor-providers-DBhZC6-4.js.map +1 -0
- package/dist/{processor-providers-DGBNerTY.cjs → processor-providers-DHvTA9AL.cjs} +3 -2
- package/dist/processor-providers-DHvTA9AL.cjs.map +1 -0
- package/dist/{processors-05Z4P9eW.js → processors-88oJ_4J-.js} +7 -4
- package/dist/processors-88oJ_4J-.js.map +1 -0
- package/dist/{processors-BirBp7z3.cjs → processors-D6lRjS0e.cjs} +7 -4
- package/dist/processors-D6lRjS0e.cjs.map +1 -0
- package/dist/route-builder-CIk5k35M.js.map +1 -1
- package/dist/route-builder-CgLVYL1c.cjs.map +1 -1
- package/dist/{routes-CN8wYsyr.js → routes-CRoTKPvQ.js} +5 -5
- package/dist/{routes-CN8wYsyr.js.map → routes-CRoTKPvQ.js.map} +1 -1
- package/dist/{routes-2WgTU1wN.cjs → routes-hSY4wTeS.cjs} +5 -5
- package/dist/{routes-2WgTU1wN.cjs.map → routes-hSY4wTeS.cjs.map} +1 -1
- package/dist/{scorer-versions-BoAERQxp.js → scorer-versions-BA8N488c.js} +2 -2
- package/dist/{scorer-versions-BoAERQxp.js.map → scorer-versions-BA8N488c.js.map} +1 -1
- package/dist/{scorer-versions-DX81YG5X.cjs → scorer-versions-DpmAJKsY.cjs} +2 -2
- package/dist/{scorer-versions-DX81YG5X.cjs.map → scorer-versions-DpmAJKsY.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 +3 -3
- package/dist/server/handlers/agent-builder.js +3 -3
- package/dist/server/handlers/agent-versions.cjs +2 -2
- package/dist/server/handlers/agent-versions.d.ts +224 -112
- package/dist/server/handlers/agent-versions.d.ts.map +1 -1
- package/dist/server/handlers/agent-versions.js +2 -2
- package/dist/server/handlers/agents.cjs +3 -3
- package/dist/server/handlers/agents.d.ts +56 -28
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +3 -3
- package/dist/server/handlers/builder-registry.cjs +1 -1
- package/dist/server/handlers/builder-registry.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/mcp-client-versions.cjs +1 -1
- package/dist/server/handlers/mcp-client-versions.js +1 -1
- package/dist/server/handlers/observability-new-endpoints.cjs +1 -1
- package/dist/server/handlers/observability-new-endpoints.js +1 -1
- package/dist/server/handlers/observability.cjs +1 -1
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/processor-providers.cjs +1 -1
- package/dist/server/handlers/processor-providers.d.ts +4 -2
- package/dist/server/handlers/processor-providers.d.ts.map +1 -1
- package/dist/server/handlers/processor-providers.js +1 -1
- package/dist/server/handlers/processors.cjs +17 -2
- package/dist/server/handlers/processors.cjs.map +1 -1
- package/dist/server/handlers/processors.d.ts +6 -2
- package/dist/server/handlers/processors.d.ts.map +1 -1
- package/dist/server/handlers/processors.js +17 -2
- package/dist/server/handlers/processors.js.map +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/schedules.d.ts +16 -16
- package/dist/server/handlers/scorer-versions.cjs +2 -2
- package/dist/server/handlers/scorer-versions.js +2 -2
- package/dist/server/handlers/stored-agent-favorites.cjs +3 -3
- package/dist/server/handlers/stored-agent-favorites.js +3 -3
- package/dist/server/handlers/stored-agents.cjs +3 -3
- package/dist/server/handlers/stored-agents.d.ts +224 -56
- package/dist/server/handlers/stored-agents.d.ts.map +1 -1
- package/dist/server/handlers/stored-agents.js +3 -3
- 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 +2 -2
- package/dist/server/handlers/stored-scorers.js +2 -2
- 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 +2 -2
- package/dist/server/handlers/tools.js +2 -2
- package/dist/server/handlers/workflows.cjs +2 -2
- package/dist/server/handlers/workflows.js +2 -2
- package/dist/server/handlers.cjs +1 -1
- package/dist/server/handlers.js +1 -1
- package/dist/server/schemas/agent-versions.d.ts +140 -0
- package/dist/server/schemas/agent-versions.d.ts.map +1 -1
- package/dist/server/schemas/agents.d.ts +60 -20
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +8 -8
- package/dist/server/schemas/index.js +8 -8
- package/dist/server/schemas/processor-providers.d.ts +2 -0
- package/dist/server/schemas/processor-providers.d.ts.map +1 -1
- package/dist/server/schemas/processors.d.ts +4 -0
- package/dist/server/schemas/processors.d.ts.map +1 -1
- package/dist/server/schemas/schedules.d.ts +5 -5
- package/dist/server/schemas/stored-agents.d.ts +296 -0
- package/dist/server/schemas/stored-agents.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +2 -2
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/server/server-adapter/routes/processor-providers.d.ts +4 -2
- package/dist/server/server-adapter/routes/processor-providers.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/processors.d.ts +6 -2
- package/dist/server/server-adapter/routes/processors.d.ts.map +1 -1
- package/dist/{stored-agents-GBSl2bkv.js → stored-agents-D8ar1Pn7.js} +3 -2
- package/dist/stored-agents-D8ar1Pn7.js.map +1 -0
- package/dist/{stored-agents-DR_L2wPJ.cjs → stored-agents-DKd89v5z.cjs} +3 -2
- package/dist/stored-agents-DKd89v5z.cjs.map +1 -0
- package/dist/{stored-scorers-0eeoiKkg.js → stored-scorers-BIKumDRO.js} +2 -2
- package/dist/{stored-scorers-0eeoiKkg.js.map → stored-scorers-BIKumDRO.js.map} +1 -1
- package/dist/{stored-scorers-CMHNFquG.cjs → stored-scorers-_dqFdh-G.cjs} +2 -2
- package/dist/{stored-scorers-CMHNFquG.cjs.map → stored-scorers-_dqFdh-G.cjs.map} +1 -1
- package/dist/{utils-qxLrCsRx.js → utils-BUK03Frl.js} +3 -2
- package/dist/{utils-qxLrCsRx.js.map → utils-BUK03Frl.js.map} +1 -1
- package/dist/{utils-xsPNtHk8.cjs → utils-wESuBh27.cjs} +3 -2
- package/dist/{utils-xsPNtHk8.cjs.map → utils-wESuBh27.cjs.map} +1 -1
- package/package.json +10 -10
- package/dist/agents-B9ofSVSn.cjs.map +0 -1
- package/dist/agents-DD4PJgsF.js.map +0 -1
- package/dist/dist-DRyzA92e.js.map +0 -1
- package/dist/dist-DhFw0bEW.cjs.map +0 -1
- package/dist/observability-new-endpoints-CCyqX1Ra.js.map +0 -1
- package/dist/observability-new-endpoints-DFBDedGH.cjs.map +0 -1
- package/dist/processor-providers-BmOA_jeU.js.map +0 -1
- package/dist/processor-providers-DGBNerTY.cjs.map +0 -1
- package/dist/processors-05Z4P9eW.js.map +0 -1
- package/dist/processors-BirBp7z3.cjs.map +0 -1
- package/dist/stored-agents-DR_L2wPJ.cjs.map +0 -1
- package/dist/stored-agents-GBSl2bkv.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAsB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EACV,iBAAiB,E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;;;;;;;;;;;;;;;;;6EAyBnD,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAc7C,CAAC;AAMH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEA2ChC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as __exportAll } from "../../rolldown-runtime-DuvcJU0W.js";
|
|
2
2
|
import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
|
|
3
|
-
import { A as recoverBodySchema, C as modelConfigIdPathParams, E as observeAgentResponseSchema, F as sendAgentSignalBodySchema, G as streamUntilIdleBodySchema, I as sendToolApprovalBodySchema, K as subscribeAgentThreadBodySchema, L as sendToolApprovalResponseSchema, M as resumeStreamBodySchema, N as resumeStreamUntilIdleBodySchema, O as providersResponseSchema, P as sendAgentMessageBodySchema, T as observeAgentBodySchema, W as streamResponseSchema, X as updateAgentModelInModelListBodySchema, Y as updateAgentModelBodySchema, a as agentIdPathParams, b as listSuspendedRunsQuerySchema, c as agentVersionQuerySchema, d as declineNetworkToolCallBodySchema, f as declineToolCallBodySchema, i as agentExecutionLegacyBodySchema, j as reorderAgentModelListBodySchema, k as queueAgentMessageBodySchema, l as approveNetworkToolCallBodySchema, m as enhanceInstructionsResponseSchema, n as abortAgentThreadResponseSchema, o as agentSkillPathParams, p as enhanceInstructionsBodySchema, q as toolCallResponseSchema, r as agentExecutionBodySchema, t as abortAgentThreadBodySchema, u as approveToolCallBodySchema, v as generateResponseSchema, w as modelManagementResponseSchema, x as listSuspendedRunsResponseSchema, y as listAgentsResponseSchema, z as serializedAgentSchema } from "../../agents-
|
|
3
|
+
import { A as recoverBodySchema, C as modelConfigIdPathParams, E as observeAgentResponseSchema, F as sendAgentSignalBodySchema, G as streamUntilIdleBodySchema, I as sendToolApprovalBodySchema, K as subscribeAgentThreadBodySchema, L as sendToolApprovalResponseSchema, M as resumeStreamBodySchema, N as resumeStreamUntilIdleBodySchema, O as providersResponseSchema, P as sendAgentMessageBodySchema, T as observeAgentBodySchema, W as streamResponseSchema, X as updateAgentModelInModelListBodySchema, Y as updateAgentModelBodySchema, a as agentIdPathParams, b as listSuspendedRunsQuerySchema, c as agentVersionQuerySchema, d as declineNetworkToolCallBodySchema, f as declineToolCallBodySchema, i as agentExecutionLegacyBodySchema, j as reorderAgentModelListBodySchema, k as queueAgentMessageBodySchema, l as approveNetworkToolCallBodySchema, m as enhanceInstructionsResponseSchema, n as abortAgentThreadResponseSchema, o as agentSkillPathParams, p as enhanceInstructionsBodySchema, q as toolCallResponseSchema, r as agentExecutionBodySchema, t as abortAgentThreadBodySchema, u as approveToolCallBodySchema, v as generateResponseSchema, w as modelManagementResponseSchema, x as listSuspendedRunsResponseSchema, y as listAgentsResponseSchema, z as serializedAgentSchema } from "../../agents-CYvun9iI.js";
|
|
4
4
|
import { n as standardSchemaToJSONSchema, r as toStandardSchema } from "../../schema-Bv9OdW1f-CIOfv-3w.js";
|
|
5
5
|
import { n as createRoute } from "../../route-builder-CIk5k35M.js";
|
|
6
6
|
import "../../schema-B8-5YCsA.js";
|
|
7
|
-
import { c as toSlug, l as stringify } from "../../utils-
|
|
7
|
+
import { c as toSlug, l as stringify } from "../../utils-BUK03Frl.js";
|
|
8
8
|
import { a as MASTRA_RESOURCE_ID_KEY, d as WORKSPACE_TOOLS, f as isReservedRequestContextKey, i as MASTRA_IS_STUDIO_KEY, m as resolveToolConfig } from "../../constants-Cp1x-6sJ.js";
|
|
9
9
|
import { handleError } from "./error.js";
|
|
10
10
|
import { c as validateBody, d as MastraFGAPermissions, l as validateRunOwnership, n as getEffectiveResourceId, o as requireEffectiveResourceId, r as getEffectiveThreadId, s as sanitizeBody, t as enforceThreadAccess, u as validateThreadOwnership } from "../../utils-CmHd1Sgh.js";
|
|
11
|
-
import { r as createStoredAgentResponseSchema } from "../../stored-agents-
|
|
11
|
+
import { r as createStoredAgentResponseSchema } from "../../stored-agents-D8ar1Pn7.js";
|
|
12
12
|
import { O as skillDisambiguationQuerySchema, h as getAgentSkillResponseSchema } from "../../workspace-S5GiJ3Nx.js";
|
|
13
13
|
import { z } from "zod/v4";
|
|
14
14
|
import { zodToJsonSchema } from "@mastra/core/utils/zod-to-json";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_builder_registry = require("../../builder-registry-
|
|
2
|
+
const require_builder_registry = require("../../builder-registry-BoaXBdm_.cjs");
|
|
3
3
|
exports.BUILDER_REGISTRY_INSTALL_ROUTE = require_builder_registry.BUILDER_REGISTRY_INSTALL_ROUTE;
|
|
4
4
|
exports.BUILDER_REGISTRY_POPULAR_ROUTE = require_builder_registry.BUILDER_REGISTRY_POPULAR_ROUTE;
|
|
5
5
|
exports.BUILDER_REGISTRY_PREVIEW_ROUTE = require_builder_registry.BUILDER_REGISTRY_PREVIEW_ROUTE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LIST_BUILDER_REGISTRIES_ROUTE, i as BUILDER_REGISTRY_SEARCH_ROUTE, n as BUILDER_REGISTRY_POPULAR_ROUTE, r as BUILDER_REGISTRY_PREVIEW_ROUTE, t as BUILDER_REGISTRY_INSTALL_ROUTE } from "../../builder-registry-
|
|
1
|
+
import { a as LIST_BUILDER_REGISTRIES_ROUTE, i as BUILDER_REGISTRY_SEARCH_ROUTE, n as BUILDER_REGISTRY_POPULAR_ROUTE, r as BUILDER_REGISTRY_PREVIEW_ROUTE, t as BUILDER_REGISTRY_INSTALL_ROUTE } from "../../builder-registry-DE5w7bNk.js";
|
|
2
2
|
export { BUILDER_REGISTRY_INSTALL_ROUTE, BUILDER_REGISTRY_POPULAR_ROUTE, BUILDER_REGISTRY_PREVIEW_ROUTE, BUILDER_REGISTRY_SEARCH_ROUTE, LIST_BUILDER_REGISTRIES_ROUTE };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_editor_builder = require("../../editor-builder-
|
|
2
|
+
const require_editor_builder = require("../../editor-builder-BW4nlDcX.cjs");
|
|
3
3
|
exports.GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE = require_editor_builder.GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE;
|
|
4
4
|
exports.GET_EDITOR_BUILDER_SETTINGS_ROUTE = require_editor_builder.GET_EDITOR_BUILDER_SETTINGS_ROUTE;
|
|
5
5
|
exports.GET_INFRASTRUCTURE_STATUS_ROUTE = require_editor_builder.GET_INFRASTRUCTURE_STATUS_ROUTE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as requireBuilderFeature, i as isBuilderFeatureEnabled, n as GET_EDITOR_BUILDER_SETTINGS_ROUTE, r as GET_INFRASTRUCTURE_STATUS_ROUTE, t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE } from "../../editor-builder-
|
|
1
|
+
import { a as requireBuilderFeature, i as isBuilderFeatureEnabled, n as GET_EDITOR_BUILDER_SETTINGS_ROUTE, r as GET_INFRASTRUCTURE_STATUS_ROUTE, t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE } from "../../editor-builder-Ct2nIbum.js";
|
|
2
2
|
export { GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE, GET_EDITOR_BUILDER_SETTINGS_ROUTE, GET_INFRASTRUCTURE_STATUS_ROUTE, isBuilderFeatureEnabled, requireBuilderFeature };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_server_handlers_authorship = require("./authorship.cjs");
|
|
3
|
-
const require_editor_builder = require("../../editor-builder-
|
|
3
|
+
const require_editor_builder = require("../../editor-builder-BW4nlDcX.cjs");
|
|
4
4
|
//#region src/server/handlers/favorites-enrichment.ts
|
|
5
5
|
/**
|
|
6
6
|
* Resolve the EE feature flag plus the caller's favorited set for a list of
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCallerAuthorId } from "./authorship.js";
|
|
2
|
-
import { i as isBuilderFeatureEnabled } from "../../editor-builder-
|
|
2
|
+
import { i as isBuilderFeatureEnabled } from "../../editor-builder-Ct2nIbum.js";
|
|
3
3
|
//#region src/server/handlers/favorites-enrichment.ts
|
|
4
4
|
/**
|
|
5
5
|
* Resolve the EE feature flag plus the caller's favorited set for a list of
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
|
|
3
3
|
const require_route_builder = require("../../route-builder-CgLVYL1c.cjs");
|
|
4
|
-
const require_utils = require("../../utils-
|
|
4
|
+
const require_utils = require("../../utils-wESuBh27.cjs");
|
|
5
5
|
const require_server_handlers_error = require("./error.cjs");
|
|
6
6
|
const require_server_handlers_version_helpers = require("./version-helpers.cjs");
|
|
7
7
|
const require_mcp_client_versions = require("../../mcp-client-versions-Db71zP8j.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
|
|
2
2
|
import { n as createRoute } from "../../route-builder-CIk5k35M.js";
|
|
3
|
-
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-
|
|
3
|
+
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-BUK03Frl.js";
|
|
4
4
|
import { handleError } from "./error.js";
|
|
5
5
|
import { MCP_CLIENT_SNAPSHOT_CONFIG_FIELDS, calculateChangedFields, computeVersionDiffs, createVersionWithRetry, enforceRetentionLimit, extractConfigFromVersion } from "./version-helpers.js";
|
|
6
6
|
import { a as createMCPClientVersionResponseSchema, c as listMCPClientVersionsQuerySchema, d as mcpClientVersionPathParams, i as createMCPClientVersionBodySchema, l as listMCPClientVersionsResponseSchema, n as compareMCPClientVersionsQuerySchema, o as deleteMCPClientVersionResponseSchema, p as restoreMCPClientVersionResponseSchema, r as compareMCPClientVersionsResponseSchema, s as getMCPClientVersionResponseSchema, t as activateMCPClientVersionResponseSchema, u as mcpClientVersionIdPathParams } from "../../mcp-client-versions-Dwbiav9P.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_observability_new_endpoints = require("../../observability-new-endpoints-
|
|
2
|
+
const require_observability_new_endpoints = require("../../observability-new-endpoints-Dk3oatL8.cjs");
|
|
3
3
|
exports.CREATE_FEEDBACK = require_observability_new_endpoints.CREATE_FEEDBACK;
|
|
4
4
|
exports.CREATE_SCORE = require_observability_new_endpoints.CREATE_SCORE;
|
|
5
5
|
exports.GET_ENTITY_NAMES = require_observability_new_endpoints.GET_ENTITY_NAMES;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as GET_TAGS, D as LIST_SCORES, E as LIST_METRICS, O as NEW_ROUTES, S as GET_SERVICE_NAMES, T as LIST_LOGS, _ as GET_SCORE, a as GET_ENVIRONMENTS, b as GET_SCORE_PERCENTILES, c as GET_FEEDBACK_PERCENTILES, d as GET_METRIC_BREAKDOWN, f as GET_METRIC_LABEL_KEYS, g as GET_METRIC_TIME_SERIES, h as GET_METRIC_PERCENTILES, i as GET_ENTITY_TYPES, l as GET_FEEDBACK_TIME_SERIES, m as GET_METRIC_NAMES, n as CREATE_SCORE, o as GET_FEEDBACK_AGGREGATE, p as GET_METRIC_LABEL_VALUES, r as GET_ENTITY_NAMES, s as GET_FEEDBACK_BREAKDOWN, t as CREATE_FEEDBACK, u as GET_METRIC_AGGREGATE, v as GET_SCORE_AGGREGATE, w as LIST_FEEDBACK, x as GET_SCORE_TIME_SERIES, y as GET_SCORE_BREAKDOWN } from "../../observability-new-endpoints-
|
|
1
|
+
import { C as GET_TAGS, D as LIST_SCORES, E as LIST_METRICS, O as NEW_ROUTES, S as GET_SERVICE_NAMES, T as LIST_LOGS, _ as GET_SCORE, a as GET_ENVIRONMENTS, b as GET_SCORE_PERCENTILES, c as GET_FEEDBACK_PERCENTILES, d as GET_METRIC_BREAKDOWN, f as GET_METRIC_LABEL_KEYS, g as GET_METRIC_TIME_SERIES, h as GET_METRIC_PERCENTILES, i as GET_ENTITY_TYPES, l as GET_FEEDBACK_TIME_SERIES, m as GET_METRIC_NAMES, n as CREATE_SCORE, o as GET_FEEDBACK_AGGREGATE, p as GET_METRIC_LABEL_VALUES, r as GET_ENTITY_NAMES, s as GET_FEEDBACK_BREAKDOWN, t as CREATE_FEEDBACK, u as GET_METRIC_AGGREGATE, v as GET_SCORE_AGGREGATE, w as LIST_FEEDBACK, x as GET_SCORE_TIME_SERIES, y as GET_SCORE_BREAKDOWN } from "../../observability-new-endpoints-YK2DjZto.js";
|
|
2
2
|
export { CREATE_FEEDBACK, CREATE_SCORE, GET_ENTITY_NAMES, GET_ENTITY_TYPES, GET_ENVIRONMENTS, GET_FEEDBACK_AGGREGATE, GET_FEEDBACK_BREAKDOWN, GET_FEEDBACK_PERCENTILES, GET_FEEDBACK_TIME_SERIES, GET_METRIC_AGGREGATE, GET_METRIC_BREAKDOWN, GET_METRIC_LABEL_KEYS, GET_METRIC_LABEL_VALUES, GET_METRIC_NAMES, GET_METRIC_PERCENTILES, GET_METRIC_TIME_SERIES, GET_SCORE, GET_SCORE_AGGREGATE, GET_SCORE_BREAKDOWN, GET_SCORE_PERCENTILES, GET_SCORE_TIME_SERIES, GET_SERVICE_NAMES, GET_TAGS, LIST_FEEDBACK, LIST_LOGS, LIST_METRICS, LIST_SCORES, NEW_ROUTES };
|
|
@@ -6,7 +6,7 @@ const require_server_handlers_error = require("./error.cjs");
|
|
|
6
6
|
const require_server_handlers_observability_list_query_schemas = require("./observability-list-query-schemas.cjs");
|
|
7
7
|
const require_server_handlers_observability_shared = require("./observability-shared.cjs");
|
|
8
8
|
const require_server_handlers_observability_storage_schemas = require("./observability-storage-schemas.cjs");
|
|
9
|
-
const require_observability_new_endpoints = require("../../observability-new-endpoints-
|
|
9
|
+
const require_observability_new_endpoints = require("../../observability-new-endpoints-Dk3oatL8.cjs");
|
|
10
10
|
let zod_v4 = require("zod/v4");
|
|
11
11
|
let _mastra_core_evals = require("@mastra/core/evals");
|
|
12
12
|
let _mastra_core_evals_scoreTraces = require("@mastra/core/evals/scoreTraces");
|
|
@@ -5,7 +5,7 @@ import { handleError } from "./error.js";
|
|
|
5
5
|
import { paginationArgsSchema } from "./observability-list-query-schemas.js";
|
|
6
6
|
import { OBSERVABILITY_LIST_ENDPOINTS, assertObservabilityDeltaSupported, createObservabilityListQuerySchema, getObservabilityStore, getScoresStore, getStorage } from "./observability-shared.js";
|
|
7
7
|
import { branchesFilterSchema, branchesOrderBySchema, getBranchArgsSchema, getBranchResponseSchema, listBranchesResponseSchema, listTracesLightResponseSchema } from "./observability-storage-schemas.js";
|
|
8
|
-
import { C as GET_TAGS, D as LIST_SCORES, E as LIST_METRICS, O as NEW_ROUTES, S as GET_SERVICE_NAMES, T as LIST_LOGS, _ as GET_SCORE, a as GET_ENVIRONMENTS, b as GET_SCORE_PERCENTILES, c as GET_FEEDBACK_PERCENTILES, d as GET_METRIC_BREAKDOWN, f as GET_METRIC_LABEL_KEYS, g as GET_METRIC_TIME_SERIES, h as GET_METRIC_PERCENTILES, i as GET_ENTITY_TYPES, l as GET_FEEDBACK_TIME_SERIES, m as GET_METRIC_NAMES, n as CREATE_SCORE, o as GET_FEEDBACK_AGGREGATE, p as GET_METRIC_LABEL_VALUES, r as GET_ENTITY_NAMES, s as GET_FEEDBACK_BREAKDOWN, t as CREATE_FEEDBACK, u as GET_METRIC_AGGREGATE, v as GET_SCORE_AGGREGATE, w as LIST_FEEDBACK, x as GET_SCORE_TIME_SERIES, y as GET_SCORE_BREAKDOWN } from "../../observability-new-endpoints-
|
|
8
|
+
import { C as GET_TAGS, D as LIST_SCORES, E as LIST_METRICS, O as NEW_ROUTES, S as GET_SERVICE_NAMES, T as LIST_LOGS, _ as GET_SCORE, a as GET_ENVIRONMENTS, b as GET_SCORE_PERCENTILES, c as GET_FEEDBACK_PERCENTILES, d as GET_METRIC_BREAKDOWN, f as GET_METRIC_LABEL_KEYS, g as GET_METRIC_TIME_SERIES, h as GET_METRIC_PERCENTILES, i as GET_ENTITY_TYPES, l as GET_FEEDBACK_TIME_SERIES, m as GET_METRIC_NAMES, n as CREATE_SCORE, o as GET_FEEDBACK_AGGREGATE, p as GET_METRIC_LABEL_VALUES, r as GET_ENTITY_NAMES, s as GET_FEEDBACK_BREAKDOWN, t as CREATE_FEEDBACK, u as GET_METRIC_AGGREGATE, v as GET_SCORE_AGGREGATE, w as LIST_FEEDBACK, x as GET_SCORE_TIME_SERIES, y as GET_SCORE_BREAKDOWN } from "../../observability-new-endpoints-YK2DjZto.js";
|
|
9
9
|
import { z } from "zod/v4";
|
|
10
10
|
import { extractTrajectoryFromTrace, listScoresResponseSchema } from "@mastra/core/evals";
|
|
11
11
|
import { scoreTraces } from "@mastra/core/evals/scoreTraces";
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
|
|
3
3
|
const require_route_builder = require("../../route-builder-CgLVYL1c.cjs");
|
|
4
4
|
const require_server_handlers_error = require("./error.cjs");
|
|
5
|
-
const require_processor_providers = require("../../processor-providers-
|
|
5
|
+
const require_processor_providers = require("../../processor-providers-DHvTA9AL.cjs");
|
|
6
6
|
let _mastra_core_utils_zod_to_json = require("@mastra/core/utils/zod-to-json");
|
|
7
7
|
//#region src/server/handlers/processor-providers.ts
|
|
8
8
|
/**
|
|
@@ -5,7 +5,7 @@ export declare const LIST_PROCESSOR_PROVIDERS_ROUTE: import("../server-adapter")
|
|
|
5
5
|
providers: {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
|
-
availablePhases: ("processInput" | "processInputStep" | "processOutputStream" | "processOutputResult" | "processOutputStep")[];
|
|
8
|
+
availablePhases: ("processInput" | "processInputStep" | "processOutputStream" | "processOutputResult" | "processOutputStep" | "processToolResult")[];
|
|
9
9
|
description?: string | undefined;
|
|
10
10
|
}[];
|
|
11
11
|
}, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, import("zod").ZodObject<{
|
|
@@ -19,6 +19,7 @@ export declare const LIST_PROCESSOR_PROVIDERS_ROUTE: import("../server-adapter")
|
|
|
19
19
|
processOutputStream: "processOutputStream";
|
|
20
20
|
processOutputResult: "processOutputResult";
|
|
21
21
|
processOutputStep: "processOutputStep";
|
|
22
|
+
processToolResult: "processToolResult";
|
|
22
23
|
}>>;
|
|
23
24
|
}, import("zod/v4/core").$strip>>;
|
|
24
25
|
}, import("zod/v4/core").$strip>>, "GET", "/processor-providers">;
|
|
@@ -30,7 +31,7 @@ export declare const GET_PROCESSOR_PROVIDER_ROUTE: import("../server-adapter").S
|
|
|
30
31
|
}, {
|
|
31
32
|
id: string;
|
|
32
33
|
name: string;
|
|
33
|
-
availablePhases: ("processInput" | "processInputStep" | "processOutputStream" | "processOutputResult" | "processOutputStep")[];
|
|
34
|
+
availablePhases: ("processInput" | "processInputStep" | "processOutputStream" | "processOutputResult" | "processOutputStep" | "processToolResult")[];
|
|
34
35
|
configSchema: Record<string, unknown>;
|
|
35
36
|
description?: string | undefined;
|
|
36
37
|
}, "json", import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
|
|
@@ -45,6 +46,7 @@ export declare const GET_PROCESSOR_PROVIDER_ROUTE: import("../server-adapter").S
|
|
|
45
46
|
processOutputStream: "processOutputStream";
|
|
46
47
|
processOutputResult: "processOutputResult";
|
|
47
48
|
processOutputStep: "processOutputStep";
|
|
49
|
+
processToolResult: "processToolResult";
|
|
48
50
|
}>>;
|
|
49
51
|
configSchema: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
50
52
|
}, import("zod/v4/core").$strip>>, "GET", "/processor-providers/:providerId">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processor-providers.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/processor-providers.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"processor-providers.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/processor-providers.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;iEA6BzC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;6EAiCvC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
|
|
2
2
|
import { n as createRoute } from "../../route-builder-CIk5k35M.js";
|
|
3
3
|
import { handleError } from "./error.js";
|
|
4
|
-
import { n as getProcessorProvidersResponseSchema, r as processorProviderIdPathParams, t as getProcessorProviderResponseSchema } from "../../processor-providers-
|
|
4
|
+
import { n as getProcessorProvidersResponseSchema, r as processorProviderIdPathParams, t as getProcessorProviderResponseSchema } from "../../processor-providers-DBhZC6-4.js";
|
|
5
5
|
import { zodToJsonSchema } from "@mastra/core/utils/zod-to-json";
|
|
6
6
|
//#region src/server/handlers/processor-providers.ts
|
|
7
7
|
/**
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
|
|
3
3
|
const require_route_builder = require("../../route-builder-CgLVYL1c.cjs");
|
|
4
4
|
const require_server_handlers_error = require("./error.cjs");
|
|
5
|
-
const require_processors = require("../../processors-
|
|
5
|
+
const require_processors = require("../../processors-D6lRjS0e.cjs");
|
|
6
6
|
let _mastra_core_agent = require("@mastra/core/agent");
|
|
7
7
|
let _mastra_core_processors = require("@mastra/core/processors");
|
|
8
8
|
//#region src/server/handlers/processors.ts
|
|
@@ -28,7 +28,8 @@ function detectProcessorPhases(processor) {
|
|
|
28
28
|
"inputStep",
|
|
29
29
|
"outputStream",
|
|
30
30
|
"outputResult",
|
|
31
|
-
"outputStep"
|
|
31
|
+
"outputStep",
|
|
32
|
+
"toolResult"
|
|
32
33
|
];
|
|
33
34
|
const phases = [];
|
|
34
35
|
if (typeof processor.processInput === "function") phases.push("input");
|
|
@@ -36,6 +37,7 @@ function detectProcessorPhases(processor) {
|
|
|
36
37
|
if (typeof processor.processOutputStream === "function") phases.push("outputStream");
|
|
37
38
|
if (typeof processor.processOutputResult === "function") phases.push("outputResult");
|
|
38
39
|
if (typeof processor.processOutputStep === "function") phases.push("outputStep");
|
|
40
|
+
if (typeof processor.processToolResult === "function") phases.push("toolResult");
|
|
39
41
|
return phases;
|
|
40
42
|
}
|
|
41
43
|
const LIST_PROCESSORS_ROUTE = require_route_builder.createRoute({
|
|
@@ -210,6 +212,19 @@ const EXECUTE_PROCESSOR_ROUTE = require_route_builder.createRoute({
|
|
|
210
212
|
state: {}
|
|
211
213
|
};
|
|
212
214
|
break;
|
|
215
|
+
case "toolResult":
|
|
216
|
+
inputData = {
|
|
217
|
+
...inputData,
|
|
218
|
+
stepNumber: 0,
|
|
219
|
+
toolName: "",
|
|
220
|
+
toolCallId: "",
|
|
221
|
+
args: void 0,
|
|
222
|
+
toolResultValue: void 0,
|
|
223
|
+
providerExecuted: false,
|
|
224
|
+
systemMessages: [],
|
|
225
|
+
steps: []
|
|
226
|
+
};
|
|
227
|
+
break;
|
|
213
228
|
}
|
|
214
229
|
const result = await (await processor.createRun()).start({ inputData });
|
|
215
230
|
if (result.status === "tripwire") return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processors.cjs","names":["createRoute","listProcessorsResponseSchema","handleError","processorIdPathParams","serializedProcessorDetailSchema","HTTPException","executeProcessorBodySchema","executeProcessorResponseSchema","MessageList"],"sources":["../../../src/server/handlers/processors.ts"],"sourcesContent":["import { MessageList } from '@mastra/core/agent';\nimport type { MessageInput } from '@mastra/core/agent/message-list';\nimport { isProcessorWorkflow } from '@mastra/core/processors';\nimport type { Processor, ProcessorWorkflow } from '@mastra/core/processors';\n\nimport { HTTPException } from '../http-exception';\nimport {\n listProcessorsResponseSchema,\n serializedProcessorDetailSchema,\n processorIdPathParams,\n executeProcessorBodySchema,\n executeProcessorResponseSchema,\n} from '../schemas/processors';\nimport { createRoute } from '../server-adapter/routes/route-builder';\nimport { handleError } from './error';\n\n// ============================================================================\n// Route Definitions\n// ============================================================================\n\ntype ProcessorPhase = 'input' | 'inputStep' | 'outputStream' | 'outputResult' | 'outputStep';\n\n/**\n * Helper to extract text from messages for outputStep testing.\n * In real usage, the `text` field contains the assistant's response text.\n */\nfunction extractTextFromMessages(messages: unknown[]): string {\n if (!messages || !Array.isArray(messages) || messages.length === 0) {\n return '';\n }\n const firstMessage = messages[0] as any;\n if (firstMessage?.content?.parts) {\n const textParts = firstMessage.content.parts\n .filter((part: any) => part?.type === 'text')\n .map((part: any) => part?.text || '');\n return textParts.join('');\n }\n return '';\n}\n\n/**\n * Helper to detect phases for a processor.\n * For individual processors, checks which methods are implemented.\n * For workflow processors, returns all phases since createStep handles each phase\n * and it's a no-op if the underlying processor doesn't implement it.\n */\nfunction detectProcessorPhases(processor: any): ProcessorPhase[] {\n // Check if it's a workflow processor\n if (isProcessorWorkflow(processor)) {\n // Workflow processors can potentially handle all phases\n // The createStep in workflows handles each phase and it's a no-op if not implemented\n return ['input', 'inputStep', 'outputStream', 'outputResult', 'outputStep'];\n }\n\n // For individual processors, detect by checking which methods exist\n const phases: ProcessorPhase[] = [];\n if (typeof processor.processInput === 'function') {\n phases.push('input');\n }\n if (typeof processor.processInputStep === 'function') {\n phases.push('inputStep');\n }\n if (typeof processor.processOutputStream === 'function') {\n phases.push('outputStream');\n }\n if (typeof processor.processOutputResult === 'function') {\n phases.push('outputResult');\n }\n if (typeof processor.processOutputStep === 'function') {\n phases.push('outputStep');\n }\n return phases;\n}\n\nexport const LIST_PROCESSORS_ROUTE = createRoute({\n method: 'GET',\n path: '/processors',\n responseType: 'json',\n responseSchema: listProcessorsResponseSchema,\n summary: 'List all processors',\n description: 'Returns a list of all available individual processors',\n tags: ['Processors'],\n requiresAuth: true,\n handler: async ({ mastra }) => {\n try {\n const processors = mastra.listProcessors() || {};\n const processorConfigurations = mastra.listProcessorConfigurations();\n const result: Record<\n string,\n {\n id: string;\n name?: string;\n description?: string;\n phases: ProcessorPhase[];\n agentIds: string[];\n configurations: Array<{ agentId: string; type: 'input' | 'output' }>;\n isWorkflow: boolean;\n }\n > = {};\n\n // Iterate through all individual processors registered with Mastra\n for (const [processorKey, processorEntry] of Object.entries(processors)) {\n const processor = processorEntry as Processor | ProcessorWorkflow;\n const processorId = processor.id || processorKey;\n\n // Check if it's a workflow processor\n const isWorkflow = isProcessorWorkflow(processor);\n\n // Detect phases (handles both individual processors and workflow processors)\n const phases = detectProcessorPhases(processor);\n\n // Get agent configurations for this processor\n const configs = processorConfigurations.get(processorId) || [];\n const agentIds = [...new Set(configs.map(c => c.agentId))];\n const configurations = configs.map(c => ({ agentId: c.agentId, type: c.type }));\n\n result[processorId] = {\n id: processorId,\n name: processor.name || processorId,\n description: processor.description,\n phases,\n agentIds,\n configurations,\n isWorkflow,\n };\n }\n\n return result;\n } catch (error) {\n return handleError(error, 'Error getting processors');\n }\n },\n});\n\nexport const GET_PROCESSOR_BY_ID_ROUTE = createRoute({\n method: 'GET',\n path: '/processors/:processorId',\n responseType: 'json',\n pathParamSchema: processorIdPathParams,\n responseSchema: serializedProcessorDetailSchema,\n summary: 'Get processor by ID',\n description: 'Returns details for a specific processor including its phases and configurations',\n tags: ['Processors'],\n requiresAuth: true,\n handler: async ({ mastra, processorId }) => {\n try {\n // Get the processor from Mastra's registered processors\n let processorEntry: Processor | ProcessorWorkflow | undefined;\n try {\n processorEntry = mastra.getProcessorById(processorId) as Processor | ProcessorWorkflow;\n } catch {\n // getProcessorById throws if not found, try by key\n const processors = mastra.listProcessors() || {};\n processorEntry = processors[processorId as keyof typeof processors] as Processor | ProcessorWorkflow;\n }\n\n if (!processorEntry) {\n throw new HTTPException(404, { message: 'Processor not found' });\n }\n\n // Check if it's a workflow processor\n const isWorkflow = isProcessorWorkflow(processorEntry);\n\n // Detect phases (handles both individual processors and workflow processors)\n const phases = detectProcessorPhases(processorEntry);\n\n // Get agent configurations for this processor\n const configs = mastra.getProcessorConfigurations(processorId);\n const agents = mastra.listAgents() || {};\n const configurations = configs.map(c => ({\n agentId: c.agentId,\n agentName: agents[c.agentId]?.name || c.agentId,\n type: c.type,\n }));\n\n return {\n id: processorEntry.id,\n name: processorEntry.name || processorEntry.id,\n description: processorEntry.description,\n phases,\n configurations,\n isWorkflow,\n };\n } catch (error) {\n return handleError(error, 'Error getting processor');\n }\n },\n});\n\nexport const EXECUTE_PROCESSOR_ROUTE = createRoute({\n method: 'POST',\n path: '/processors/:processorId/execute',\n responseType: 'json',\n pathParamSchema: processorIdPathParams,\n bodySchema: executeProcessorBodySchema,\n responseSchema: executeProcessorResponseSchema,\n summary: 'Execute processor',\n description: 'Executes a specific processor with the provided input data',\n tags: ['Processors'],\n requiresAuth: true,\n handler: async ({ mastra, processorId, ...bodyParams }) => {\n try {\n const { phase, messages } = bodyParams;\n\n if (!processorId) {\n throw new HTTPException(400, { message: 'Processor ID is required' });\n }\n\n if (!phase) {\n throw new HTTPException(400, { message: 'Phase is required' });\n }\n\n if (!messages || !Array.isArray(messages)) {\n throw new HTTPException(400, { message: 'Messages array is required' });\n }\n\n // Get the processor from Mastra's registered processors\n let processor;\n try {\n processor = mastra.getProcessorById(processorId);\n } catch {\n // getProcessorById throws if not found, try by key\n const processors = mastra.listProcessors() || {};\n processor = processors[processorId as keyof typeof processors];\n }\n\n if (!processor) {\n throw new HTTPException(404, { message: 'Processor not found' });\n }\n\n const messageList = new MessageList();\n messageList.add(messages as unknown as MessageInput[], 'input');\n\n // Check if this is a workflow processor\n if (isProcessorWorkflow(processor)) {\n // Execute workflow processor\n try {\n // Build inputData based on phase - each phase has different required fields\n const baseInputData = {\n phase: phase as 'input' | 'inputStep' | 'outputStream' | 'outputResult' | 'outputStep',\n messages: messageList.get.all.db(),\n messageList,\n retryCount: 0,\n };\n let inputData: typeof baseInputData & Record<string, unknown> = baseInputData;\n\n // Add phase-specific fields\n switch (phase) {\n case 'input':\n inputData = {\n ...inputData,\n systemMessages: [],\n };\n break;\n case 'inputStep':\n inputData = {\n ...inputData,\n stepNumber: 0,\n systemMessages: [],\n steps: [],\n model: '',\n tools: {},\n toolChoice: undefined,\n activeTools: [],\n providerOptions: undefined,\n modelSettings: undefined,\n structuredOutput: undefined,\n };\n break;\n case 'outputResult':\n inputData = {\n ...inputData,\n state: {},\n result: {\n text: extractTextFromMessages(messages),\n usage: { inputTokens: 0, outputTokens: 0, totalTokens: 0 },\n finishReason: 'unknown',\n steps: [],\n },\n };\n break;\n case 'outputStep':\n inputData = {\n ...inputData,\n stepNumber: 0,\n systemMessages: [],\n steps: [],\n finishReason: 'stop',\n toolCalls: [],\n text: extractTextFromMessages(messages),\n };\n break;\n case 'outputStream':\n inputData = {\n ...inputData,\n part: null,\n streamParts: [],\n state: {},\n };\n break;\n }\n\n const run = await processor.createRun();\n const result = await run.start({\n inputData,\n });\n\n // Check for tripwire status\n if (result.status === 'tripwire') {\n return {\n success: false,\n phase,\n tripwire: {\n triggered: true,\n reason: result.tripwire.reason || `Tripwire triggered in workflow ${processor.id}`,\n metadata: result.tripwire.metadata,\n },\n messages,\n messageList: {\n messages,\n },\n };\n }\n\n // Check for execution failure\n if (result.status !== 'success') {\n throw new HTTPException(500, {\n message: `Processor workflow ${processor.id} failed with status: ${result.status}`,\n });\n }\n\n // Extract output from workflow result\n const output = result.result;\n let outputMessages = messages;\n\n if (output && typeof output === 'object') {\n if ('messages' in output && Array.isArray(output.messages)) {\n outputMessages = output.messages;\n } else if ('messageList' in output && output.messageList instanceof MessageList) {\n outputMessages = output.messageList.get.all.db();\n }\n }\n\n return {\n success: true,\n phase,\n messages: outputMessages,\n messageList: {\n messages: outputMessages,\n },\n };\n } catch (error: any) {\n // Re-throw HTTP exceptions\n if (error instanceof HTTPException) {\n throw error;\n }\n throw new HTTPException(500, {\n message: `Error executing processor workflow: ${error.message}`,\n });\n }\n }\n\n // Handle individual processor execution\n // Create the abort function for tripwire support\n let tripwireTriggered = false;\n let tripwireReason: string | undefined;\n let tripwireMetadata: unknown;\n\n const abort = (reason?: string, options?: { retry?: boolean; metadata?: unknown }) => {\n tripwireTriggered = true;\n tripwireReason = reason;\n tripwireMetadata = options?.metadata;\n throw new Error(`TRIPWIRE:${reason || 'Processor aborted'}`);\n };\n\n // Build the context based on phase\n const baseContext = {\n abort,\n retryCount: 0,\n messages: messageList.get.all.db(),\n messageList,\n state: {},\n };\n\n try {\n let result: any;\n\n // Execute the specific phase method on the individual processor\n switch (phase) {\n case 'input':\n if (!processor.processInput) {\n throw new HTTPException(400, { message: 'Processor does not support input phase' });\n }\n result = await processor.processInput({\n ...baseContext,\n systemMessages: [],\n });\n break;\n\n case 'inputStep':\n if (!processor.processInputStep) {\n throw new HTTPException(400, { message: 'Processor does not support inputStep phase' });\n }\n result = await processor.processInputStep({\n ...baseContext,\n systemMessages: [],\n stepNumber: 0,\n steps: [],\n // Pass empty/default values for all inputStep fields\n model: '' as any,\n tools: {},\n toolChoice: undefined,\n activeTools: [],\n providerOptions: undefined,\n modelSettings: undefined,\n structuredOutput: undefined,\n });\n break;\n\n case 'outputResult':\n if (!processor.processOutputResult) {\n throw new HTTPException(400, { message: 'Processor does not support outputResult phase' });\n }\n result = await processor.processOutputResult({\n ...baseContext,\n state: {},\n result: {\n text: extractTextFromMessages(messages),\n usage: { inputTokens: 0, outputTokens: 0, totalTokens: 0 },\n finishReason: 'unknown',\n steps: [],\n },\n });\n break;\n\n case 'outputStep':\n if (!processor.processOutputStep) {\n throw new HTTPException(400, { message: 'Processor does not support outputStep phase' });\n }\n result = await processor.processOutputStep({\n ...baseContext,\n systemMessages: [],\n stepNumber: 0,\n steps: [],\n finishReason: 'stop',\n toolCalls: [],\n text: extractTextFromMessages(messages),\n usage: { inputTokens: undefined, outputTokens: undefined, totalTokens: undefined },\n });\n break;\n\n case 'outputStream':\n // outputStream is for streaming chunks, not a simple execute\n throw new HTTPException(400, {\n message: 'outputStream phase cannot be executed directly. Use streaming instead.',\n });\n\n default:\n throw new HTTPException(400, { message: `Unknown phase: ${phase}` });\n }\n\n // Process the result\n let outputMessages = messages;\n if (result) {\n if (Array.isArray(result)) {\n outputMessages = result;\n } else if (result.get && result.get.all && typeof result.get.all.db === 'function') {\n // It's a MessageList\n outputMessages = result.get.all.db();\n } else if (result.messages) {\n outputMessages = result.messages;\n }\n }\n\n return {\n success: true,\n phase,\n messages: outputMessages,\n messageList: {\n messages: outputMessages,\n },\n };\n } catch (error: any) {\n // Check if it's a tripwire\n if (tripwireTriggered || error.message?.startsWith('TRIPWIRE:')) {\n return {\n success: false,\n phase,\n tripwire: {\n triggered: true,\n reason: tripwireReason || error.message?.replace('TRIPWIRE:', ''),\n metadata: tripwireMetadata,\n },\n messages,\n messageList: {\n messages,\n },\n };\n }\n throw error;\n }\n } catch (error) {\n return handleError(error, 'Error executing processor');\n }\n },\n});\n"],"mappings":";;;;;;;;;;;;AA0BA,SAAS,wBAAwB,UAA6B;CAC5D,IAAI,CAAC,YAAY,CAAC,MAAM,QAAQ,QAAQ,KAAK,SAAS,WAAW,GAC/D,OAAO;CAET,MAAM,eAAe,SAAS;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AC;OACV;MACF,CAAC;MACD;KAEF,KAAK;MACH,IAAI,CAAC,UAAU,mBACb,MAAM,IAAIA,uBAAAA,cAAc,KAAK,EAAE,SAAS,8CAA8C,CAAC;MAEzF,SAAS,MAAM,UAAU,kBAAkB;OACzC,GAAG;OACH,gBAAgB,CAAC;OACjB,YAAY;OACZ,OAAO,CAAC;OACR,cAAc;OACd,WAAW,CAAC;OACZ,MAAM,wBAAwB,QAAQ;OACtC,OAAO;QAAE,aAAa,KAAA;QAAW,cAAc,KAAA;QAAW,aAAa,KAAA;OAAU;MACnF,CAAC;MACD;KAEF,KAAK,gBAEH,MAAM,IAAIA,uBAAAA,cAAc,KAAK,EAC3B,SAAS,yEACX,CAAC;KAEH,SACE,MAAM,IAAIA,uBAAAA,cAAc,KAAK,EAAE,SAAS,kBAAkB,QAAQ,CAAC;IACvE;IAGA,IAAI,iBAAiB;IACrB,IAAI,QACE;SAAA,MAAM,QAAQ,MAAM,GACtB,iBAAiB;UACZ,IAAI,OAAO,OAAO,OAAO,IAAI,OAAO,OAAO,OAAO,IAAI,IAAI,OAAO,YAEtE,iBAAiB,OAAO,IAAI,IAAI,GAAG;UAC9B,IAAI,OAAO,UAChB,iBAAiB,OAAO;IAAA;IAI5B,OAAO;KACL,SAAS;KACT;KACA,UAAU;KACV,aAAa,EACX,UAAU,eACZ;IACF;GACF,SAAS,OAAY;IAEnB,IAAI,qBAAqB,MAAM,SAAS,WAAW,WAAW,GAC5D,OAAO;KACL,SAAS;KACT;KACA,UAAU;MACR,WAAW;MACX,QAAQ,kBAAkB,MAAM,SAAS,QAAQ,aAAa,EAAE;MAChE,UAAU;KACZ;KACA;KACA,aAAa,EACX,SACF;IACF;IAEF,MAAM;GACR;EACF,SAAS,OAAO;GACd,OAAOH,8BAAAA,YAAY,OAAO,2BAA2B;EACvD;CACF;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"processors.cjs","names":["createRoute","listProcessorsResponseSchema","handleError","processorIdPathParams","serializedProcessorDetailSchema","HTTPException","executeProcessorBodySchema","executeProcessorResponseSchema","MessageList"],"sources":["../../../src/server/handlers/processors.ts"],"sourcesContent":["import { MessageList } from '@mastra/core/agent';\nimport type { MessageInput } from '@mastra/core/agent/message-list';\nimport { isProcessorWorkflow } from '@mastra/core/processors';\nimport type { Processor, ProcessorWorkflow } from '@mastra/core/processors';\n\nimport { HTTPException } from '../http-exception';\nimport {\n listProcessorsResponseSchema,\n serializedProcessorDetailSchema,\n processorIdPathParams,\n executeProcessorBodySchema,\n executeProcessorResponseSchema,\n} from '../schemas/processors';\nimport { createRoute } from '../server-adapter/routes/route-builder';\nimport { handleError } from './error';\n\n// ============================================================================\n// Route Definitions\n// ============================================================================\n\ntype ProcessorPhase = 'input' | 'inputStep' | 'outputStream' | 'outputResult' | 'outputStep' | 'toolResult';\n\n/**\n * Helper to extract text from messages for outputStep testing.\n * In real usage, the `text` field contains the assistant's response text.\n */\nfunction extractTextFromMessages(messages: unknown[]): string {\n if (!messages || !Array.isArray(messages) || messages.length === 0) {\n return '';\n }\n const firstMessage = messages[0] as any;\n if (firstMessage?.content?.parts) {\n const textParts = firstMessage.content.parts\n .filter((part: any) => part?.type === 'text')\n .map((part: any) => part?.text || '');\n return textParts.join('');\n }\n return '';\n}\n\n/**\n * Helper to detect phases for a processor.\n * For individual processors, checks which methods are implemented.\n * For workflow processors, returns all phases since createStep handles each phase\n * and it's a no-op if the underlying processor doesn't implement it.\n */\nfunction detectProcessorPhases(processor: any): ProcessorPhase[] {\n // Check if it's a workflow processor\n if (isProcessorWorkflow(processor)) {\n // Workflow processors can potentially handle all phases\n // The createStep in workflows handles each phase and it's a no-op if not implemented\n return ['input', 'inputStep', 'outputStream', 'outputResult', 'outputStep', 'toolResult'];\n }\n\n // For individual processors, detect by checking which methods exist\n const phases: ProcessorPhase[] = [];\n if (typeof processor.processInput === 'function') {\n phases.push('input');\n }\n if (typeof processor.processInputStep === 'function') {\n phases.push('inputStep');\n }\n if (typeof processor.processOutputStream === 'function') {\n phases.push('outputStream');\n }\n if (typeof processor.processOutputResult === 'function') {\n phases.push('outputResult');\n }\n if (typeof processor.processOutputStep === 'function') {\n phases.push('outputStep');\n }\n if (typeof processor.processToolResult === 'function') {\n phases.push('toolResult');\n }\n return phases;\n}\n\nexport const LIST_PROCESSORS_ROUTE = createRoute({\n method: 'GET',\n path: '/processors',\n responseType: 'json',\n responseSchema: listProcessorsResponseSchema,\n summary: 'List all processors',\n description: 'Returns a list of all available individual processors',\n tags: ['Processors'],\n requiresAuth: true,\n handler: async ({ mastra }) => {\n try {\n const processors = mastra.listProcessors() || {};\n const processorConfigurations = mastra.listProcessorConfigurations();\n const result: Record<\n string,\n {\n id: string;\n name?: string;\n description?: string;\n phases: ProcessorPhase[];\n agentIds: string[];\n configurations: Array<{ agentId: string; type: 'input' | 'output' }>;\n isWorkflow: boolean;\n }\n > = {};\n\n // Iterate through all individual processors registered with Mastra\n for (const [processorKey, processorEntry] of Object.entries(processors)) {\n const processor = processorEntry as Processor | ProcessorWorkflow;\n const processorId = processor.id || processorKey;\n\n // Check if it's a workflow processor\n const isWorkflow = isProcessorWorkflow(processor);\n\n // Detect phases (handles both individual processors and workflow processors)\n const phases = detectProcessorPhases(processor);\n\n // Get agent configurations for this processor\n const configs = processorConfigurations.get(processorId) || [];\n const agentIds = [...new Set(configs.map(c => c.agentId))];\n const configurations = configs.map(c => ({ agentId: c.agentId, type: c.type }));\n\n result[processorId] = {\n id: processorId,\n name: processor.name || processorId,\n description: processor.description,\n phases,\n agentIds,\n configurations,\n isWorkflow,\n };\n }\n\n return result;\n } catch (error) {\n return handleError(error, 'Error getting processors');\n }\n },\n});\n\nexport const GET_PROCESSOR_BY_ID_ROUTE = createRoute({\n method: 'GET',\n path: '/processors/:processorId',\n responseType: 'json',\n pathParamSchema: processorIdPathParams,\n responseSchema: serializedProcessorDetailSchema,\n summary: 'Get processor by ID',\n description: 'Returns details for a specific processor including its phases and configurations',\n tags: ['Processors'],\n requiresAuth: true,\n handler: async ({ mastra, processorId }) => {\n try {\n // Get the processor from Mastra's registered processors\n let processorEntry: Processor | ProcessorWorkflow | undefined;\n try {\n processorEntry = mastra.getProcessorById(processorId) as Processor | ProcessorWorkflow;\n } catch {\n // getProcessorById throws if not found, try by key\n const processors = mastra.listProcessors() || {};\n processorEntry = processors[processorId as keyof typeof processors] as Processor | ProcessorWorkflow;\n }\n\n if (!processorEntry) {\n throw new HTTPException(404, { message: 'Processor not found' });\n }\n\n // Check if it's a workflow processor\n const isWorkflow = isProcessorWorkflow(processorEntry);\n\n // Detect phases (handles both individual processors and workflow processors)\n const phases = detectProcessorPhases(processorEntry);\n\n // Get agent configurations for this processor\n const configs = mastra.getProcessorConfigurations(processorId);\n const agents = mastra.listAgents() || {};\n const configurations = configs.map(c => ({\n agentId: c.agentId,\n agentName: agents[c.agentId]?.name || c.agentId,\n type: c.type,\n }));\n\n return {\n id: processorEntry.id,\n name: processorEntry.name || processorEntry.id,\n description: processorEntry.description,\n phases,\n configurations,\n isWorkflow,\n };\n } catch (error) {\n return handleError(error, 'Error getting processor');\n }\n },\n});\n\nexport const EXECUTE_PROCESSOR_ROUTE = createRoute({\n method: 'POST',\n path: '/processors/:processorId/execute',\n responseType: 'json',\n pathParamSchema: processorIdPathParams,\n bodySchema: executeProcessorBodySchema,\n responseSchema: executeProcessorResponseSchema,\n summary: 'Execute processor',\n description: 'Executes a specific processor with the provided input data',\n tags: ['Processors'],\n requiresAuth: true,\n handler: async ({ mastra, processorId, ...bodyParams }) => {\n try {\n const { phase, messages } = bodyParams;\n\n if (!processorId) {\n throw new HTTPException(400, { message: 'Processor ID is required' });\n }\n\n if (!phase) {\n throw new HTTPException(400, { message: 'Phase is required' });\n }\n\n if (!messages || !Array.isArray(messages)) {\n throw new HTTPException(400, { message: 'Messages array is required' });\n }\n\n // Get the processor from Mastra's registered processors\n let processor;\n try {\n processor = mastra.getProcessorById(processorId);\n } catch {\n // getProcessorById throws if not found, try by key\n const processors = mastra.listProcessors() || {};\n processor = processors[processorId as keyof typeof processors];\n }\n\n if (!processor) {\n throw new HTTPException(404, { message: 'Processor not found' });\n }\n\n const messageList = new MessageList();\n messageList.add(messages as unknown as MessageInput[], 'input');\n\n // Check if this is a workflow processor\n if (isProcessorWorkflow(processor)) {\n // Execute workflow processor\n try {\n // Build inputData based on phase - each phase has different required fields\n const baseInputData = {\n phase: phase as 'input' | 'inputStep' | 'outputStream' | 'outputResult' | 'outputStep' | 'toolResult',\n messages: messageList.get.all.db(),\n messageList,\n retryCount: 0,\n };\n let inputData: typeof baseInputData & Record<string, unknown> = baseInputData;\n\n // Add phase-specific fields\n switch (phase) {\n case 'input':\n inputData = {\n ...inputData,\n systemMessages: [],\n };\n break;\n case 'inputStep':\n inputData = {\n ...inputData,\n stepNumber: 0,\n systemMessages: [],\n steps: [],\n model: '',\n tools: {},\n toolChoice: undefined,\n activeTools: [],\n providerOptions: undefined,\n modelSettings: undefined,\n structuredOutput: undefined,\n };\n break;\n case 'outputResult':\n inputData = {\n ...inputData,\n state: {},\n result: {\n text: extractTextFromMessages(messages),\n usage: { inputTokens: 0, outputTokens: 0, totalTokens: 0 },\n finishReason: 'unknown',\n steps: [],\n },\n };\n break;\n case 'outputStep':\n inputData = {\n ...inputData,\n stepNumber: 0,\n systemMessages: [],\n steps: [],\n finishReason: 'stop',\n toolCalls: [],\n text: extractTextFromMessages(messages),\n };\n break;\n case 'outputStream':\n inputData = {\n ...inputData,\n part: null,\n streamParts: [],\n state: {},\n };\n break;\n case 'toolResult':\n inputData = {\n ...inputData,\n stepNumber: 0,\n toolName: '',\n toolCallId: '',\n args: undefined,\n toolResultValue: undefined,\n providerExecuted: false,\n systemMessages: [],\n steps: [],\n };\n break;\n }\n\n const run = await processor.createRun();\n const result = await run.start({\n inputData,\n });\n\n // Check for tripwire status\n if (result.status === 'tripwire') {\n return {\n success: false,\n phase,\n tripwire: {\n triggered: true,\n reason: result.tripwire.reason || `Tripwire triggered in workflow ${processor.id}`,\n metadata: result.tripwire.metadata,\n },\n messages,\n messageList: {\n messages,\n },\n };\n }\n\n // Check for execution failure\n if (result.status !== 'success') {\n throw new HTTPException(500, {\n message: `Processor workflow ${processor.id} failed with status: ${result.status}`,\n });\n }\n\n // Extract output from workflow result\n const output = result.result;\n let outputMessages = messages;\n\n if (output && typeof output === 'object') {\n if ('messages' in output && Array.isArray(output.messages)) {\n outputMessages = output.messages;\n } else if ('messageList' in output && output.messageList instanceof MessageList) {\n outputMessages = output.messageList.get.all.db();\n }\n }\n\n return {\n success: true,\n phase,\n messages: outputMessages,\n messageList: {\n messages: outputMessages,\n },\n };\n } catch (error: any) {\n // Re-throw HTTP exceptions\n if (error instanceof HTTPException) {\n throw error;\n }\n throw new HTTPException(500, {\n message: `Error executing processor workflow: ${error.message}`,\n });\n }\n }\n\n // Handle individual processor execution\n // Create the abort function for tripwire support\n let tripwireTriggered = false;\n let tripwireReason: string | undefined;\n let tripwireMetadata: unknown;\n\n const abort = (reason?: string, options?: { retry?: boolean; metadata?: unknown }) => {\n tripwireTriggered = true;\n tripwireReason = reason;\n tripwireMetadata = options?.metadata;\n throw new Error(`TRIPWIRE:${reason || 'Processor aborted'}`);\n };\n\n // Build the context based on phase\n const baseContext = {\n abort,\n retryCount: 0,\n messages: messageList.get.all.db(),\n messageList,\n state: {},\n };\n\n try {\n let result: any;\n\n // Execute the specific phase method on the individual processor\n switch (phase) {\n case 'input':\n if (!processor.processInput) {\n throw new HTTPException(400, { message: 'Processor does not support input phase' });\n }\n result = await processor.processInput({\n ...baseContext,\n systemMessages: [],\n });\n break;\n\n case 'inputStep':\n if (!processor.processInputStep) {\n throw new HTTPException(400, { message: 'Processor does not support inputStep phase' });\n }\n result = await processor.processInputStep({\n ...baseContext,\n systemMessages: [],\n stepNumber: 0,\n steps: [],\n // Pass empty/default values for all inputStep fields\n model: '' as any,\n tools: {},\n toolChoice: undefined,\n activeTools: [],\n providerOptions: undefined,\n modelSettings: undefined,\n structuredOutput: undefined,\n });\n break;\n\n case 'outputResult':\n if (!processor.processOutputResult) {\n throw new HTTPException(400, { message: 'Processor does not support outputResult phase' });\n }\n result = await processor.processOutputResult({\n ...baseContext,\n state: {},\n result: {\n text: extractTextFromMessages(messages),\n usage: { inputTokens: 0, outputTokens: 0, totalTokens: 0 },\n finishReason: 'unknown',\n steps: [],\n },\n });\n break;\n\n case 'outputStep':\n if (!processor.processOutputStep) {\n throw new HTTPException(400, { message: 'Processor does not support outputStep phase' });\n }\n result = await processor.processOutputStep({\n ...baseContext,\n systemMessages: [],\n stepNumber: 0,\n steps: [],\n finishReason: 'stop',\n toolCalls: [],\n text: extractTextFromMessages(messages),\n usage: { inputTokens: undefined, outputTokens: undefined, totalTokens: undefined },\n });\n break;\n\n case 'outputStream':\n // outputStream is for streaming chunks, not a simple execute\n throw new HTTPException(400, {\n message: 'outputStream phase cannot be executed directly. Use streaming instead.',\n });\n\n default:\n throw new HTTPException(400, { message: `Unknown phase: ${phase}` });\n }\n\n // Process the result\n let outputMessages = messages;\n if (result) {\n if (Array.isArray(result)) {\n outputMessages = result;\n } else if (result.get && result.get.all && typeof result.get.all.db === 'function') {\n // It's a MessageList\n outputMessages = result.get.all.db();\n } else if (result.messages) {\n outputMessages = result.messages;\n }\n }\n\n return {\n success: true,\n phase,\n messages: outputMessages,\n messageList: {\n messages: outputMessages,\n },\n };\n } catch (error: any) {\n // Check if it's a tripwire\n if (tripwireTriggered || error.message?.startsWith('TRIPWIRE:')) {\n return {\n success: false,\n phase,\n tripwire: {\n triggered: true,\n reason: tripwireReason || error.message?.replace('TRIPWIRE:', ''),\n metadata: tripwireMetadata,\n },\n messages,\n messageList: {\n messages,\n },\n };\n }\n throw error;\n }\n } catch (error) {\n return handleError(error, 'Error executing processor');\n }\n },\n});\n"],"mappings":";;;;;;;;;;;;AA0BA,SAAS,wBAAwB,UAA6B;CAC5D,IAAI,CAAC,YAAY,CAAC,MAAM,QAAQ,QAAQ,KAAK,SAAS,WAAW,GAC/D,OAAO;CAET,MAAM,eAAe,SAAS;CAC9B,IA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ACZ;KACA;KACA,aAAa,EACX,SACF;IACF;IAEF,MAAM;GACR;EACF,SAAS,OAAO;GACd,OAAOH,8BAAAA,YAAY,OAAO,2BAA2B;EACvD;CACF;AACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const LIST_PROCESSORS_ROUTE: import("../server-adapter").ServerRoute<{}, Record<string, {
|
|
2
2
|
id: string;
|
|
3
|
-
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep")[];
|
|
3
|
+
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep" | "toolResult")[];
|
|
4
4
|
agentIds: string[];
|
|
5
5
|
configurations: {
|
|
6
6
|
agentId: string;
|
|
@@ -19,6 +19,7 @@ export declare const LIST_PROCESSORS_ROUTE: import("../server-adapter").ServerRo
|
|
|
19
19
|
outputStream: "outputStream";
|
|
20
20
|
outputResult: "outputResult";
|
|
21
21
|
outputStep: "outputStep";
|
|
22
|
+
toolResult: "toolResult";
|
|
22
23
|
}>>;
|
|
23
24
|
agentIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
24
25
|
configurations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -34,7 +35,7 @@ export declare const GET_PROCESSOR_BY_ID_ROUTE: import("../server-adapter").Serv
|
|
|
34
35
|
processorId: string;
|
|
35
36
|
}, {
|
|
36
37
|
id: string;
|
|
37
|
-
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep")[];
|
|
38
|
+
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep" | "toolResult")[];
|
|
38
39
|
configurations: {
|
|
39
40
|
agentId: string;
|
|
40
41
|
agentName: string;
|
|
@@ -55,6 +56,7 @@ export declare const GET_PROCESSOR_BY_ID_ROUTE: import("../server-adapter").Serv
|
|
|
55
56
|
outputStream: "outputStream";
|
|
56
57
|
outputResult: "outputResult";
|
|
57
58
|
outputStep: "outputStep";
|
|
59
|
+
toolResult: "toolResult";
|
|
58
60
|
}>>;
|
|
59
61
|
configurations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
60
62
|
agentId: import("zod").ZodString;
|
|
@@ -75,6 +77,7 @@ export declare const EXECUTE_PROCESSOR_ROUTE: import("../server-adapter").Server
|
|
|
75
77
|
outputStream: "outputStream";
|
|
76
78
|
outputResult: "outputResult";
|
|
77
79
|
outputStep: "outputStep";
|
|
80
|
+
toolResult: "toolResult";
|
|
78
81
|
}>;
|
|
79
82
|
messages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
80
83
|
id: import("zod").ZodString;
|
|
@@ -138,6 +141,7 @@ export declare const EXECUTE_PROCESSOR_ROUTE: import("../server-adapter").Server
|
|
|
138
141
|
outputStream: "outputStream";
|
|
139
142
|
outputResult: "outputResult";
|
|
140
143
|
outputStep: "outputStep";
|
|
144
|
+
toolResult: "toolResult";
|
|
141
145
|
}>;
|
|
142
146
|
messages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
143
147
|
id: import("zod").ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processors.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/processors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"processors.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/processors.ts"],"names":[],"mappings":"AA6EA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA0DhC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAqDpC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAyUlC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
|
|
2
2
|
import { n as createRoute } from "../../route-builder-CIk5k35M.js";
|
|
3
3
|
import { handleError } from "./error.js";
|
|
4
|
-
import { a as processorIdPathParams, n as executeProcessorResponseSchema, o as serializedProcessorDetailSchema, r as listProcessorsResponseSchema, t as executeProcessorBodySchema } from "../../processors-
|
|
4
|
+
import { a as processorIdPathParams, n as executeProcessorResponseSchema, o as serializedProcessorDetailSchema, r as listProcessorsResponseSchema, t as executeProcessorBodySchema } from "../../processors-88oJ_4J-.js";
|
|
5
5
|
import { MessageList } from "@mastra/core/agent";
|
|
6
6
|
import { isProcessorWorkflow } from "@mastra/core/processors";
|
|
7
7
|
//#region src/server/handlers/processors.ts
|
|
@@ -27,7 +27,8 @@ function detectProcessorPhases(processor) {
|
|
|
27
27
|
"inputStep",
|
|
28
28
|
"outputStream",
|
|
29
29
|
"outputResult",
|
|
30
|
-
"outputStep"
|
|
30
|
+
"outputStep",
|
|
31
|
+
"toolResult"
|
|
31
32
|
];
|
|
32
33
|
const phases = [];
|
|
33
34
|
if (typeof processor.processInput === "function") phases.push("input");
|
|
@@ -35,6 +36,7 @@ function detectProcessorPhases(processor) {
|
|
|
35
36
|
if (typeof processor.processOutputStream === "function") phases.push("outputStream");
|
|
36
37
|
if (typeof processor.processOutputResult === "function") phases.push("outputResult");
|
|
37
38
|
if (typeof processor.processOutputStep === "function") phases.push("outputStep");
|
|
39
|
+
if (typeof processor.processToolResult === "function") phases.push("toolResult");
|
|
38
40
|
return phases;
|
|
39
41
|
}
|
|
40
42
|
const LIST_PROCESSORS_ROUTE = createRoute({
|
|
@@ -209,6 +211,19 @@ const EXECUTE_PROCESSOR_ROUTE = createRoute({
|
|
|
209
211
|
state: {}
|
|
210
212
|
};
|
|
211
213
|
break;
|
|
214
|
+
case "toolResult":
|
|
215
|
+
inputData = {
|
|
216
|
+
...inputData,
|
|
217
|
+
stepNumber: 0,
|
|
218
|
+
toolName: "",
|
|
219
|
+
toolCallId: "",
|
|
220
|
+
args: void 0,
|
|
221
|
+
toolResultValue: void 0,
|
|
222
|
+
providerExecuted: false,
|
|
223
|
+
systemMessages: [],
|
|
224
|
+
steps: []
|
|
225
|
+
};
|
|
226
|
+
break;
|
|
212
227
|
}
|
|
213
228
|
const result = await (await processor.createRun()).start({ inputData });
|
|
214
229
|
if (result.status === "tripwire") return {
|