@mastra/server 1.82.0-alpha.2 → 1.82.0-alpha.3
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/dist/index.d.ts +1 -1
- package/dist/_types/@mastra_schema-compat@1.3.17/dist/_types/@internal_ai-v6@0.0.94/dist/index.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/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 +9 -9
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
2
|
import { n as createRoute } from "../../route-builder-BxPrwNog.js";
|
|
3
|
-
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-
|
|
3
|
+
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-Dy_dQTlK.js";
|
|
4
4
|
import { handleError } from "./error.js";
|
|
5
5
|
import { C as storedAgentIdPathParams } from "../../stored-agents-DA8Zx6o9.js";
|
|
6
6
|
import { assertReadAccess, getCallerAuthorId } from "./authorship.js";
|
|
7
|
-
import { a as requireBuilderFeature } from "../../editor-builder-
|
|
7
|
+
import { a as requireBuilderFeature } from "../../editor-builder-Ceen28s8.js";
|
|
8
8
|
import { t as favoriteToggleResponseSchema } from "../../favorites-8aieznq3.js";
|
|
9
9
|
// src/server/handlers/stored-agent-favorites.ts
|
|
10
10
|
/**
|
|
@@ -3,14 +3,14 @@ require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_common = require("../../common-D5XxSuvu.cjs");
|
|
5
5
|
const require_route_builder = require("../../route-builder-CvARmqnA.cjs");
|
|
6
|
-
const require_utils = require("../../utils-
|
|
6
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
7
7
|
const require_server_handlers_error = require("./error.cjs");
|
|
8
8
|
const require_stored_agents = require("../../stored-agents-TQ2lIFbx.cjs");
|
|
9
9
|
const require_server_handlers_authorship = require("./authorship.cjs");
|
|
10
10
|
const require_server_handlers_author_enrichment = require("./author-enrichment.cjs");
|
|
11
11
|
const require_server_handlers_validate_agent_instructions = require("./validate-agent-instructions.cjs");
|
|
12
12
|
const require_server_handlers_version_helpers = require("./version-helpers.cjs");
|
|
13
|
-
const require_editor_builder = require("../../editor-builder-
|
|
13
|
+
const require_editor_builder = require("../../editor-builder-CKfy5eZY.cjs");
|
|
14
14
|
const require_server_handlers_favorites_enrichment = require("./favorites-enrichment.cjs");
|
|
15
15
|
const require_server_handlers_validate_avatar = require("./validate-avatar.cjs");
|
|
16
16
|
// src/server/handlers/stored-agents.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
2
|
import { d as statusQuerySchema } from "../../common-J-yUnHk9.js";
|
|
3
3
|
import { n as createRoute } from "../../route-builder-BxPrwNog.js";
|
|
4
|
-
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-
|
|
4
|
+
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-Dy_dQTlK.js";
|
|
5
5
|
import { handleError } from "./error.js";
|
|
6
6
|
import { C as storedAgentIdPathParams, O as updateStoredAgentBodySchema, a as exportStoredAgentBodySchema, c as getStoredAgentResponseSchema, d as listStoredAgentsResponseSchema, g as previewInstructionsResponseSchema, h as previewInstructionsBodySchema, i as deleteStoredAgentResponseSchema, k as updateStoredAgentResponseSchema, m as openStoredAgentChangeRequestResponseSchema, n as createStoredAgentBodySchema, o as exportStoredAgentResponseSchema, p as openStoredAgentChangeRequestBodySchema, r as createStoredAgentResponseSchema, s as getStoredAgentDependentsResponseSchema, u as listStoredAgentsQuerySchema } from "../../stored-agents-DA8Zx6o9.js";
|
|
7
7
|
import { assertReadAccess, assertWriteAccess, getCallerAuthorId, matchesAuthorFilter, resolveAuthorFilter } from "./authorship.js";
|
|
8
8
|
import { attachAuthor, prepareAuthorEnrichment } from "./author-enrichment.js";
|
|
9
9
|
import { validateAgentInstructionReferences } from "./validate-agent-instructions.js";
|
|
10
10
|
import { handleAutoVersioning } from "./version-helpers.js";
|
|
11
|
-
import { i as isBuilderFeatureEnabled } from "../../editor-builder-
|
|
11
|
+
import { i as isBuilderFeatureEnabled } from "../../editor-builder-Ceen28s8.js";
|
|
12
12
|
import { enrichOrStripFavorites, prepareFavoritesEnrichment, stripFavoriteFields } from "./favorites-enrichment.js";
|
|
13
13
|
import { validateMetadataAvatarUrl } from "./validate-avatar.js";
|
|
14
14
|
// src/server/handlers/stored-agents.ts
|
|
@@ -3,7 +3,7 @@ require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_common = require("../../common-D5XxSuvu.cjs");
|
|
5
5
|
const require_route_builder = require("../../route-builder-CvARmqnA.cjs");
|
|
6
|
-
const require_utils = require("../../utils-
|
|
6
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
7
7
|
const require_server_handlers_error = require("./error.cjs");
|
|
8
8
|
const require_server_handlers_version_helpers = require("./version-helpers.cjs");
|
|
9
9
|
const require_stored_mcp_clients = require("../../stored-mcp-clients-D14ULUvS.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
2
|
import { d as statusQuerySchema } from "../../common-J-yUnHk9.js";
|
|
3
3
|
import { n as createRoute } from "../../route-builder-BxPrwNog.js";
|
|
4
|
-
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-
|
|
4
|
+
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-Dy_dQTlK.js";
|
|
5
5
|
import { handleError } from "./error.js";
|
|
6
6
|
import { MCP_CLIENT_SNAPSHOT_CONFIG_FIELDS, handleAutoVersioning } from "./version-helpers.js";
|
|
7
7
|
import { a as listStoredMCPClientsQuerySchema, i as getStoredMCPClientResponseSchema, l as updateStoredMCPClientBodySchema, n as createStoredMCPClientResponseSchema, o as listStoredMCPClientsResponseSchema, r as deleteStoredMCPClientResponseSchema, s as storedMCPClientIdPathParams, t as createStoredMCPClientBodySchema, u as updateStoredMCPClientResponseSchema } from "../../stored-mcp-clients-d_PaPgGc.js";
|
|
@@ -3,7 +3,7 @@ require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_common = require("../../common-D5XxSuvu.cjs");
|
|
5
5
|
const require_route_builder = require("../../route-builder-CvARmqnA.cjs");
|
|
6
|
-
const require_utils = require("../../utils-
|
|
6
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
7
7
|
const require_server_handlers_error = require("./error.cjs");
|
|
8
8
|
const require_server_handlers_version_helpers = require("./version-helpers.cjs");
|
|
9
9
|
const require_stored_prompt_blocks = require("../../stored-prompt-blocks-CqaOxMZ-.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
2
|
import { d as statusQuerySchema } from "../../common-J-yUnHk9.js";
|
|
3
3
|
import { n as createRoute } from "../../route-builder-BxPrwNog.js";
|
|
4
|
-
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-
|
|
4
|
+
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-Dy_dQTlK.js";
|
|
5
5
|
import { handleError } from "./error.js";
|
|
6
6
|
import { handleAutoVersioning } from "./version-helpers.js";
|
|
7
7
|
import { a as listStoredPromptBlocksQuerySchema, i as getStoredPromptBlockResponseSchema, l as updateStoredPromptBlockBodySchema, n as createStoredPromptBlockResponseSchema, o as listStoredPromptBlocksResponseSchema, r as deleteStoredPromptBlockResponseSchema, s as storedPromptBlockIdPathParams, t as createStoredPromptBlockBodySchema, u as updateStoredPromptBlockResponseSchema } from "../../stored-prompt-blocks-B5yfQnPC.js";
|
|
@@ -3,7 +3,7 @@ require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_common = require("../../common-D5XxSuvu.cjs");
|
|
5
5
|
const require_route_builder = require("../../route-builder-CvARmqnA.cjs");
|
|
6
|
-
const require_utils = require("../../utils-
|
|
6
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
7
7
|
const require_server_handlers_error = require("./error.cjs");
|
|
8
8
|
const require_server_handlers_version_helpers = require("./version-helpers.cjs");
|
|
9
9
|
const require_stored_scorers = require("../../stored-scorers-FJOs5774.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
2
|
import { d as statusQuerySchema } from "../../common-J-yUnHk9.js";
|
|
3
3
|
import { n as createRoute } from "../../route-builder-BxPrwNog.js";
|
|
4
|
-
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-
|
|
4
|
+
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-Dy_dQTlK.js";
|
|
5
5
|
import { handleError } from "./error.js";
|
|
6
6
|
import { handleAutoVersioning } from "./version-helpers.js";
|
|
7
7
|
import { a as listStoredScorersQuerySchema, i as getStoredScorerResponseSchema, l as updateStoredScorerBodySchema, n as createStoredScorerResponseSchema, o as listStoredScorersResponseSchema, r as deleteStoredScorerResponseSchema, s as storedScorerIdPathParams, t as createStoredScorerBodySchema, u as updateStoredScorerResponseSchema } from "../../stored-scorers-DhOq8ZQC.js";
|
|
@@ -2,10 +2,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_route_builder = require("../../route-builder-CvARmqnA.cjs");
|
|
5
|
-
const require_utils = require("../../utils-
|
|
5
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
6
6
|
const require_server_handlers_error = require("./error.cjs");
|
|
7
7
|
const require_server_handlers_authorship = require("./authorship.cjs");
|
|
8
|
-
const require_editor_builder = require("../../editor-builder-
|
|
8
|
+
const require_editor_builder = require("../../editor-builder-CKfy5eZY.cjs");
|
|
9
9
|
const require_favorites = require("../../favorites-D0CoxxQn.cjs");
|
|
10
10
|
const require_stored_skills = require("../../stored-skills-xuecapXy.cjs");
|
|
11
11
|
// src/server/handlers/stored-skill-favorites.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
2
|
import { n as createRoute } from "../../route-builder-BxPrwNog.js";
|
|
3
|
-
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-
|
|
3
|
+
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-Dy_dQTlK.js";
|
|
4
4
|
import { handleError } from "./error.js";
|
|
5
5
|
import { assertReadAccess, getCallerAuthorId } from "./authorship.js";
|
|
6
|
-
import { a as requireBuilderFeature } from "../../editor-builder-
|
|
6
|
+
import { a as requireBuilderFeature } from "../../editor-builder-Ceen28s8.js";
|
|
7
7
|
import { t as favoriteToggleResponseSchema } from "../../favorites-8aieznq3.js";
|
|
8
8
|
import { p as storedSkillIdPathParams } from "../../stored-skills-GNJMp022.js";
|
|
9
9
|
// src/server/handlers/stored-skill-favorites.ts
|
|
@@ -2,10 +2,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_route_builder = require("../../route-builder-CvARmqnA.cjs");
|
|
5
|
-
const require_utils = require("../../utils-
|
|
5
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
6
6
|
const require_server_handlers_error = require("./error.cjs");
|
|
7
7
|
const require_server_handlers_authorship = require("./authorship.cjs");
|
|
8
|
-
const require_editor_builder = require("../../editor-builder-
|
|
8
|
+
const require_editor_builder = require("../../editor-builder-CKfy5eZY.cjs");
|
|
9
9
|
const require_server_handlers_favorites_enrichment = require("./favorites-enrichment.cjs");
|
|
10
10
|
const require_stored_skills = require("../../stored-skills-xuecapXy.cjs");
|
|
11
11
|
let _mastra_core_workspace = require("@mastra/core/workspace");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
2
|
import { n as createRoute } from "../../route-builder-BxPrwNog.js";
|
|
3
|
-
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-
|
|
3
|
+
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-Dy_dQTlK.js";
|
|
4
4
|
import { handleError } from "./error.js";
|
|
5
5
|
import { assertReadAccess, assertWriteAccess, getCallerAuthorId, matchesAuthorFilter, resolveAuthorFilter } from "./authorship.js";
|
|
6
|
-
import { i as isBuilderFeatureEnabled } from "../../editor-builder-
|
|
6
|
+
import { i as isBuilderFeatureEnabled } from "../../editor-builder-Ceen28s8.js";
|
|
7
7
|
import { enrichOrStripFavorites, prepareFavoritesEnrichment, stripFavoriteFields } from "./favorites-enrichment.js";
|
|
8
8
|
import { a as deleteStoredSkillResponseSchema, c as listStoredSkillsResponseSchema, g as updateStoredSkillResponseSchema, h as updateStoredSkillBodySchema, i as createStoredSkillResponseSchema, l as publishStoredSkillBodySchema, o as getStoredSkillResponseSchema, p as storedSkillIdPathParams, r as createStoredSkillBodySchema, s as listStoredSkillsQuerySchema, u as publishStoredSkillResponseSchema } from "../../stored-skills-GNJMp022.js";
|
|
9
9
|
import { LocalSkillSource } from "@mastra/core/workspace";
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_route_builder = require("../../route-builder-CvARmqnA.cjs");
|
|
5
|
-
const require_utils = require("../../utils-
|
|
5
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
6
6
|
const require_server_handlers_error = require("./error.cjs");
|
|
7
7
|
const require_stored_workspaces = require("../../stored-workspaces-g5-GKY38.cjs");
|
|
8
8
|
const require_server_handlers_authorship = require("./authorship.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
2
|
import { n as createRoute } from "../../route-builder-BxPrwNog.js";
|
|
3
|
-
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-
|
|
3
|
+
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-Dy_dQTlK.js";
|
|
4
4
|
import { handleError } from "./error.js";
|
|
5
5
|
import { a as listStoredWorkspacesQuerySchema, c as storedWorkspaceIdPathParams, d as updateStoredWorkspaceResponseSchema, i as getStoredWorkspaceResponseSchema, n as createStoredWorkspaceResponseSchema, o as listStoredWorkspacesResponseSchema, r as deleteStoredWorkspaceResponseSchema, t as createStoredWorkspaceBodySchema, u as updateStoredWorkspaceBodySchema } from "../../stored-workspaces-Bswuz00o.js";
|
|
6
6
|
import { assertReadAccess, assertWriteAccess, getCallerAuthorId, matchesAuthorFilter, resolveAuthorFilter } from "./authorship.js";
|
|
@@ -90,7 +90,7 @@ const GET_API_SCHEMA_ROUTE = require_route_builder.createRoute({
|
|
|
90
90
|
tags: ["System"],
|
|
91
91
|
requiresAuth: true,
|
|
92
92
|
handler: async () => {
|
|
93
|
-
const { buildApiSchemaManifest } = await Promise.resolve().then(() => require("../../api-schema-manifest-
|
|
93
|
+
const { buildApiSchemaManifest } = await Promise.resolve().then(() => require("../../api-schema-manifest-DCHOlOuJ.cjs"));
|
|
94
94
|
return buildApiSchemaManifest();
|
|
95
95
|
}
|
|
96
96
|
});
|
|
@@ -88,7 +88,7 @@ const GET_API_SCHEMA_ROUTE = createRoute({
|
|
|
88
88
|
tags: ["System"],
|
|
89
89
|
requiresAuth: true,
|
|
90
90
|
handler: async () => {
|
|
91
|
-
const { buildApiSchemaManifest } = await import("../../api-schema-manifest-
|
|
91
|
+
const { buildApiSchemaManifest } = await import("../../api-schema-manifest-Ci2qUYHc.js");
|
|
92
92
|
return buildApiSchemaManifest();
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
3
|
-
const require_tools = require("../../tools-
|
|
3
|
+
const require_tools = require("../../tools-CI5oeJWT.cjs");
|
|
4
4
|
exports.EXECUTE_AGENT_TOOL_ROUTE = require_tools.EXECUTE_AGENT_TOOL_ROUTE;
|
|
5
5
|
exports.EXECUTE_TOOL_ROUTE = require_tools.EXECUTE_TOOL_ROUTE;
|
|
6
6
|
exports.GET_AGENT_TOOL_ROUTE = require_tools.GET_AGENT_TOOL_ROUTE;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as EXECUTE_AGENT_TOOL_ROUTE, n as EXECUTE_TOOL_ROUTE, r as GET_AGENT_TOOL_ROUTE, i as GET_TOOL_BY_ID_ROUTE, a as LIST_TOOLS_ROUTE } from "../../tools-
|
|
1
|
+
export { t as EXECUTE_AGENT_TOOL_ROUTE, n as EXECUTE_TOOL_ROUTE, r as GET_AGENT_TOOL_ROUTE, i as GET_TOOL_BY_ID_ROUTE, a as LIST_TOOLS_ROUTE } from "../../tools-BAmCNGM5.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
|
-
const require_utils = require("../../utils-
|
|
4
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
5
5
|
// src/server/handlers/validate-agent-instructions.ts
|
|
6
6
|
const UNPUBLISHED_REFERENCES_MESSAGE = "Unable to use unpublished referenced prompt blocks: {ids}. Publish these prompt blocks and try again.";
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as HTTPException } from "../../http-exception-CzaWkxMl.js";
|
|
2
|
-
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-
|
|
2
|
+
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-Dy_dQTlK.js";
|
|
3
3
|
// src/server/handlers/validate-agent-instructions.ts
|
|
4
4
|
const UNPUBLISHED_REFERENCES_MESSAGE = "Unable to use unpublished referenced prompt blocks: {ids}. Publish these prompt blocks and try again.";
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
3
|
-
const require_workflows = require("../../workflows-
|
|
3
|
+
const require_workflows = require("../../workflows-Cdi6w8JW.cjs");
|
|
4
4
|
exports.CANCEL_WORKFLOW_RUN_ROUTE = require_workflows.CANCEL_WORKFLOW_RUN_ROUTE;
|
|
5
5
|
exports.CREATE_WORKFLOW_RUN_ROUTE = require_workflows.CREATE_WORKFLOW_RUN_ROUTE;
|
|
6
6
|
exports.DELETE_WORKFLOW_RUN_BY_ID_ROUTE = require_workflows.DELETE_WORKFLOW_RUN_BY_ID_ROUTE;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CANCEL_WORKFLOW_RUN_ROUTE, n as CREATE_WORKFLOW_RUN_ROUTE, r as DELETE_WORKFLOW_RUN_BY_ID_ROUTE, i as EXECUTE_WORKFLOW_STEP_ROUTE, a as GET_WORKFLOW_BY_ID_ROUTE, o as GET_WORKFLOW_RUN_BY_ID_ROUTE, s as LIST_WORKFLOWS_ROUTE, c as LIST_WORKFLOW_RUNS_ROUTE, l as LIST_WORKFLOW_RUN_COUNTS_ROUTE, u as OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE, d as OBSERVE_STREAM_WORKFLOW_ROUTE, f as RECEIVE_WORKFLOW_EVENT_ROUTE, p as RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE, m as RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE, h as RESTART_ASYNC_WORKFLOW_ROUTE, g as RESTART_WORKFLOW_ROUTE, _ as RESUME_ASYNC_WORKFLOW_ROUTE, v as RESUME_NO_WAIT_WORKFLOW_ROUTE, y as RESUME_STREAM_WORKFLOW_ROUTE, b as RESUME_WORKFLOW_ROUTE, x as START_ASYNC_WORKFLOW_ROUTE, S as START_WORKFLOW_RUN_ROUTE, C as STREAM_LEGACY_WORKFLOW_ROUTE, w as STREAM_WORKFLOW_ROUTE, T as TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE, E as TIME_TRAVEL_STREAM_WORKFLOW_ROUTE, D as TIME_TRAVEL_WORKFLOW_ROUTE, O as __setWorkflowRunCountsNow } from "../../workflows-
|
|
1
|
+
export { t as CANCEL_WORKFLOW_RUN_ROUTE, n as CREATE_WORKFLOW_RUN_ROUTE, r as DELETE_WORKFLOW_RUN_BY_ID_ROUTE, i as EXECUTE_WORKFLOW_STEP_ROUTE, a as GET_WORKFLOW_BY_ID_ROUTE, o as GET_WORKFLOW_RUN_BY_ID_ROUTE, s as LIST_WORKFLOWS_ROUTE, c as LIST_WORKFLOW_RUNS_ROUTE, l as LIST_WORKFLOW_RUN_COUNTS_ROUTE, u as OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE, d as OBSERVE_STREAM_WORKFLOW_ROUTE, f as RECEIVE_WORKFLOW_EVENT_ROUTE, p as RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE, m as RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE, h as RESTART_ASYNC_WORKFLOW_ROUTE, g as RESTART_WORKFLOW_ROUTE, _ as RESUME_ASYNC_WORKFLOW_ROUTE, v as RESUME_NO_WAIT_WORKFLOW_ROUTE, y as RESUME_STREAM_WORKFLOW_ROUTE, b as RESUME_WORKFLOW_ROUTE, x as START_ASYNC_WORKFLOW_ROUTE, S as START_WORKFLOW_RUN_ROUTE, C as STREAM_LEGACY_WORKFLOW_ROUTE, w as STREAM_WORKFLOW_ROUTE, T as TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE, E as TIME_TRAVEL_STREAM_WORKFLOW_ROUTE, D as TIME_TRAVEL_WORKFLOW_ROUTE, O as __setWorkflowRunCountsNow } from "../../workflows-BxXS5AfE.js";
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../rolldown-runtime-10nMEhjP.cjs");
|
|
3
3
|
const require_server_handlers_error = require("./handlers/error.cjs");
|
|
4
|
-
const require_workflows = require("../workflows-
|
|
5
|
-
const require_agent_builder = require("../agent-builder-
|
|
6
|
-
const require_agents = require("../agents-
|
|
7
|
-
const require_plans = require("../plans-
|
|
8
|
-
const require_a2a = require("../a2a-
|
|
9
|
-
const require_conversations = require("../conversations-
|
|
4
|
+
const require_workflows = require("../workflows-Cdi6w8JW.cjs");
|
|
5
|
+
const require_agent_builder = require("../agent-builder-D0Up9Fw1.cjs");
|
|
6
|
+
const require_agents = require("../agents-DOHGWXDa.cjs");
|
|
7
|
+
const require_plans = require("../plans-Djcp3C0d.cjs");
|
|
8
|
+
const require_a2a = require("../a2a-DvqRdny6.cjs");
|
|
9
|
+
const require_conversations = require("../conversations-Ch_VuVwY.cjs");
|
|
10
10
|
const require_logs = require("../logs-BJN3M88A.cjs");
|
|
11
11
|
const require_mcp = require("../mcp-B9BILfJP.cjs");
|
|
12
12
|
const require_memory = require("../memory-Dqod_AK9.cjs");
|
|
13
13
|
const require_observability = require("../observability-BtdW6mjq.cjs");
|
|
14
|
-
const require_responses = require("../responses-
|
|
15
|
-
const require_scores = require("../scores-
|
|
16
|
-
const require_tools = require("../tools-
|
|
14
|
+
const require_responses = require("../responses-BdOStKtX.cjs");
|
|
15
|
+
const require_scores = require("../scores-Bw6Tuga5.cjs");
|
|
16
|
+
const require_tools = require("../tools-CI5oeJWT.cjs");
|
|
17
17
|
const require_workspace = require("../workspace-BU6sQpbV.cjs");
|
|
18
18
|
const require_vector = require("../vector-BZ1bKtwM.cjs");
|
|
19
19
|
const require_voice = require("../voice-CBbxcsCM.cjs");
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { formatZodError, isZodError } from "./handlers/error.js";
|
|
2
|
-
import { k as workflows_exports } from "../workflows-
|
|
3
|
-
import { _ as agent_builder_exports } from "../agent-builder-
|
|
4
|
-
import { H as agents_exports } from "../agents-
|
|
5
|
-
import { n as plans_exports } from "../plans-
|
|
6
|
-
import { r as a2a_exports } from "../a2a-
|
|
7
|
-
import { a as conversations_exports } from "../conversations-
|
|
2
|
+
import { k as workflows_exports } from "../workflows-BxXS5AfE.js";
|
|
3
|
+
import { _ as agent_builder_exports } from "../agent-builder-C_L1i2eE.js";
|
|
4
|
+
import { H as agents_exports } from "../agents-CgcW6lHt.js";
|
|
5
|
+
import { n as plans_exports } from "../plans-nHOnlGzr.js";
|
|
6
|
+
import { r as a2a_exports } from "../a2a-CoiG3TAj.js";
|
|
7
|
+
import { a as conversations_exports } from "../conversations-xS7yHuG1.js";
|
|
8
8
|
import { i as logs_exports } from "../logs-B57_NKDn.js";
|
|
9
9
|
import { y as mcp_exports } from "../mcp-BkmWZD6M.js";
|
|
10
10
|
import { O as memory_exports } from "../memory-ipOCmg0C.js";
|
|
11
11
|
import { f as observability_exports } from "../observability-DBtyAJnb.js";
|
|
12
|
-
import { i as responses_exports } from "../responses-
|
|
13
|
-
import { s as scores_exports } from "../scores-
|
|
14
|
-
import { o as tools_exports } from "../tools-
|
|
12
|
+
import { i as responses_exports } from "../responses-CEet9y8G.js";
|
|
13
|
+
import { s as scores_exports } from "../scores-BaDFGpmr.js";
|
|
14
|
+
import { o as tools_exports } from "../tools-BAmCNGM5.js";
|
|
15
15
|
import { E as workspace_exports } from "../workspace-CS-GYTve.js";
|
|
16
16
|
import { g as vector_exports } from "../vector-BAs5o6mH.js";
|
|
17
17
|
import { c as voice_exports } from "../voice-CzFWhWPJ.js";
|
|
@@ -24,6 +24,16 @@ export declare const knowledgeSearchQuerySchema: z.ZodObject<{
|
|
|
24
24
|
scopeId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
|
|
25
25
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
|
+
export declare const knowledgeLinkCountsQuerySchema: z.ZodObject<{
|
|
28
|
+
pageId: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const knowledgePageLinksQuerySchema: z.ZodObject<{
|
|
31
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
both: "both";
|
|
33
|
+
in: "in";
|
|
34
|
+
out: "out";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
27
37
|
export declare const knowledgeActivityQuerySchema: z.ZodObject<{
|
|
28
38
|
scopeId: z.ZodOptional<z.ZodString>;
|
|
29
39
|
pageId: z.ZodOptional<z.ZodString>;
|
|
@@ -42,6 +52,25 @@ export declare const knowledgeGraphResponseSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
42
52
|
export declare const knowledgeSearchResponseSchema: z.ZodObject<{
|
|
43
53
|
results: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
44
54
|
}, z.core.$strip>;
|
|
55
|
+
export declare const knowledgeLinkCountsResponseSchema: z.ZodObject<{
|
|
56
|
+
counts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
57
|
+
in: z.ZodNumber;
|
|
58
|
+
out: z.ZodNumber;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export declare const knowledgePageLinksResponseSchema: z.ZodObject<{
|
|
62
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
63
|
+
fromPageId: z.ZodString;
|
|
64
|
+
toPageId: z.ZodString;
|
|
65
|
+
kind: z.ZodEnum<{
|
|
66
|
+
body: "body";
|
|
67
|
+
note: "note";
|
|
68
|
+
}>;
|
|
69
|
+
count: z.ZodNumber;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
pages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
72
|
+
truncated: z.ZodBoolean;
|
|
73
|
+
}, z.core.$strip>;
|
|
45
74
|
export declare const knowledgeActivityResponseSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
75
|
export declare const knowledgeEventsResponseSchema: z.ZodObject<{
|
|
47
76
|
kind: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/knowledge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAElC,CAAC;AAKH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAQH,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AAKH,eAAO,MAAM,2BAA2B;;;;;iBAEtC,CAAC;AACH,eAAO,MAAM,2BAA2B,wCAAU,CAAC;AACnD,eAAO,MAAM,2BAA2B,wCAAU,CAAC;AACnD,eAAO,MAAM,4BAA4B,wCAAU,CAAC;AACpD,eAAO,MAAM,6BAA6B;;iBAA0C,CAAC;AACrF,eAAO,MAAM,+BAA+B,wCAAU,CAAC;AACvD,eAAO,MAAM,6BAA6B;;;;;;;;;;;iBAMxC,CAAC"}
|
|
1
|
+
{"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/knowledge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAElC,CAAC;AAKH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAQH,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAOH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;iBAExC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AAKH,eAAO,MAAM,2BAA2B;;;;;iBAEtC,CAAC;AACH,eAAO,MAAM,2BAA2B,wCAAU,CAAC;AACnD,eAAO,MAAM,2BAA2B,wCAAU,CAAC;AACnD,eAAO,MAAM,4BAA4B,wCAAU,CAAC;AACpD,eAAO,MAAM,6BAA6B;;iBAA0C,CAAC;AACrF,eAAO,MAAM,iCAAiC;;;;;iBAE5C,CAAC;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;iBAM3C,CAAC;AACH,eAAO,MAAM,+BAA+B,wCAAU,CAAC;AACvD,eAAO,MAAM,6BAA6B;;;;;;;;;;;iBAMxC,CAAC"}
|
|
@@ -2,11 +2,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
3
3
|
const require_http_exception = require("../../http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_route_builder = require("../../route-builder-CvARmqnA.cjs");
|
|
5
|
-
const require_utils = require("../../utils-
|
|
5
|
+
const require_utils = require("../../utils-BhBJHsqX.cjs");
|
|
6
6
|
const require_constants = require("../../constants-DMg8hUOR.cjs");
|
|
7
7
|
const require_server_handlers_error = require("../handlers/error.cjs");
|
|
8
8
|
const require_helpers = require("../../helpers-BKtUXhz2.cjs");
|
|
9
|
-
const require_routes = require("../../routes-
|
|
9
|
+
const require_routes = require("../../routes-DU_FlwJP.cjs");
|
|
10
10
|
let zod_v4 = require("zod/v4");
|
|
11
11
|
let stream = require("stream");
|
|
12
12
|
let _mastra_core_request_context = require("@mastra/core/request-context");
|
|
@@ -500,7 +500,7 @@ function serializeStreamChunk(chunk) {
|
|
|
500
500
|
try {
|
|
501
501
|
return {
|
|
502
502
|
ok: true,
|
|
503
|
-
json: (0, _mastra_core_utils.safeStringify)(chunk)
|
|
503
|
+
json: (0, _mastra_core_utils.safeStringify)(withPlainPayloadError(chunk))
|
|
504
504
|
};
|
|
505
505
|
} catch (error) {
|
|
506
506
|
return {
|
|
@@ -509,6 +509,54 @@ function serializeStreamChunk(chunk) {
|
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
* `JSON.stringify(new Error('x'))` keeps only own enumerable fields, so an Error subclass that sets `name`
|
|
514
|
+
* arrives as `{ name }` and clients show `[object Object]`. Send the message too; never the stack. An
|
|
515
|
+
* error whose class curates its JSON (`toJSON`, e.g. MastraError) keeps that shape, so fields it leaves
|
|
516
|
+
* out stay out.
|
|
517
|
+
*/
|
|
518
|
+
function withPlainPayloadError(chunk) {
|
|
519
|
+
if (!chunk || typeof chunk !== "object" || !("payload" in chunk)) return chunk;
|
|
520
|
+
const { payload } = chunk;
|
|
521
|
+
if (!payload || typeof payload !== "object" || !("error" in payload)) return chunk;
|
|
522
|
+
const { error } = payload;
|
|
523
|
+
if (!(error instanceof Error)) return withoutStack(chunk, payload, error);
|
|
524
|
+
const plain = {
|
|
525
|
+
...curatedJson(error) ?? error,
|
|
526
|
+
message: error.message
|
|
527
|
+
};
|
|
528
|
+
delete plain.stack;
|
|
529
|
+
if (!plain.name && error.name !== "Error") plain.name = error.name;
|
|
530
|
+
return {
|
|
531
|
+
...chunk,
|
|
532
|
+
payload: {
|
|
533
|
+
...payload,
|
|
534
|
+
error: plain
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
/** An error that is already a plain object (a replayed one) is kept as is, minus its stack. */
|
|
539
|
+
function withoutStack(chunk, payload, error) {
|
|
540
|
+
if (!error || typeof error !== "object" || Array.isArray(error) || !("stack" in error)) return chunk;
|
|
541
|
+
const { stack: _stack, ...rest } = error;
|
|
542
|
+
return {
|
|
543
|
+
...chunk,
|
|
544
|
+
payload: {
|
|
545
|
+
...payload,
|
|
546
|
+
error: rest
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
function curatedJson(error) {
|
|
551
|
+
const toJSON = error.toJSON;
|
|
552
|
+
if (typeof toJSON !== "function") return void 0;
|
|
553
|
+
try {
|
|
554
|
+
const json = toJSON.call(error);
|
|
555
|
+
return json && typeof json === "object" ? json : void 0;
|
|
556
|
+
} catch {
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
512
560
|
// src/server/server-adapter/index.ts
|
|
513
561
|
function getCustomHTTPExceptionResponse(error) {
|
|
514
562
|
if (!(error instanceof require_http_exception.HTTPException) || !error.res) return;
|