@mastra/server 1.87.0-alpha.0 → 1.87.0-alpha.2
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/{agent-builder-QnIH-0LI.cjs → agent-builder-CFlwtwZC.cjs} +1 -1
- package/dist/{agent-builder-B3vJTDHo.js → agent-builder-DawgAfRt.js} +1 -1
- package/dist/{api-schema-manifest-BS3Xfypt.js → api-schema-manifest-BvvlL0TR.js} +1 -1
- package/dist/{api-schema-manifest-DohjGeTI.cjs → api-schema-manifest-D8c0D-Nd.cjs} +1 -1
- package/dist/{catalogue-BTdmOZq6.cjs → catalogue-BjUuotVl.cjs} +2 -2
- package/dist/{catalogue-CS1s8mfe.js → catalogue-CJKwUMII.js} +2 -2
- package/dist/{dist-NBGkHBIE.js → dist-BS3dauvO.js} +5 -5
- package/dist/{dist-Brw_H26B.cjs → dist-DnaUFs3u.cjs} +5 -5
- package/dist/{dist-C5_WGwU1.cjs → dist-DvGuHSAT.cjs} +1 -1
- package/dist/dist-egxWNNJS.js +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{probe-image-size-zXQBlFaQ.js → probe-image-size-B3ETFAcX.js} +1 -1
- package/dist/{probe-image-size-ntJyQKKB.cjs → probe-image-size-D801MyMQ.cjs} +1 -1
- package/dist/{routes-K6oFQRlg.cjs → routes-BTrz1ppE.cjs} +2 -2
- package/dist/{routes-ClPVLnwR.js → routes-Byg1B8Qr.js} +2 -2
- package/dist/server/handlers/agent-builder.cjs +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/datasets.cjs +2 -1
- package/dist/server/handlers/datasets.js +2 -1
- package/dist/server/handlers/system.cjs +1 -1
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers.cjs +1 -1
- package/dist/server/handlers.js +1 -1
- package/dist/server/server-adapter/index.cjs +2 -2
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/{server-adapter-CqgdBTrQ.js → server-adapter-BBWHYl1q.js} +1 -1
- package/dist/{server-adapter-CuGKb03z.cjs → server-adapter-DEOmNkC-.cjs} +1 -1
- package/package.json +2 -2
- package/dist/dist-BWVxgpEw.js +0 -1
|
@@ -30,7 +30,7 @@ var agent_builder_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll
|
|
|
30
30
|
let createAgentBuilderWorkflowsPromise;
|
|
31
31
|
const agentBuilderWorkflowsByMastra = /* @__PURE__ */ new WeakMap();
|
|
32
32
|
async function registerAgentBuilderWorkflows(mastra) {
|
|
33
|
-
createAgentBuilderWorkflowsPromise ??= Promise.resolve().then(() => require("./dist-
|
|
33
|
+
createAgentBuilderWorkflowsPromise ??= Promise.resolve().then(() => require("./dist-DnaUFs3u.cjs")).then((mod) => mod.createAgentBuilderWorkflows);
|
|
34
34
|
const create = await createAgentBuilderWorkflowsPromise;
|
|
35
35
|
let agentBuilderWorkflows = agentBuilderWorkflowsByMastra.get(mastra);
|
|
36
36
|
if (!agentBuilderWorkflows) {
|
|
@@ -30,7 +30,7 @@ var agent_builder_exports = /* @__PURE__ */ __exportAll({
|
|
|
30
30
|
let createAgentBuilderWorkflowsPromise;
|
|
31
31
|
const agentBuilderWorkflowsByMastra = /* @__PURE__ */ new WeakMap();
|
|
32
32
|
async function registerAgentBuilderWorkflows(mastra) {
|
|
33
|
-
createAgentBuilderWorkflowsPromise ??= import("./dist-
|
|
33
|
+
createAgentBuilderWorkflowsPromise ??= import("./dist-BS3dauvO.js").then((mod) => mod.createAgentBuilderWorkflows);
|
|
34
34
|
const create = await createAgentBuilderWorkflowsPromise;
|
|
35
35
|
let agentBuilderWorkflows = agentBuilderWorkflowsByMastra.get(mastra);
|
|
36
36
|
if (!agentBuilderWorkflows) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as schemaToJsonSchema } from "./route-builder-Dz18c3qm.js";
|
|
2
|
-
import { r as SERVER_ROUTES } from "./routes-
|
|
2
|
+
import { r as SERVER_ROUTES } from "./routes-Byg1B8Qr.js";
|
|
3
3
|
// src/server/server-adapter/api-schema-manifest.ts
|
|
4
4
|
function convertSchema(schema, io) {
|
|
5
5
|
return schema ? schemaToJsonSchema(schema, io) : void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require("./rolldown-runtime-10nMEhjP.cjs");
|
|
2
2
|
const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
|
|
3
|
-
const require_routes = require("./routes-
|
|
3
|
+
const require_routes = require("./routes-BTrz1ppE.cjs");
|
|
4
4
|
// src/server/server-adapter/api-schema-manifest.ts
|
|
5
5
|
function convertSchema(schema, io) {
|
|
6
6
|
return schema ? require_route_builder.schemaToJsonSchema(schema, io) : void 0;
|
|
@@ -4,8 +4,8 @@ require("./constants-CyNbINin.cjs");
|
|
|
4
4
|
const require_agents = require("./agents-GHhuyz5x.cjs");
|
|
5
5
|
const require_tools = require("./tools-By0RVh_O.cjs");
|
|
6
6
|
const require_workflows = require("./workflows-PVrj85xM.cjs");
|
|
7
|
-
const require_server_adapter = require("./server-adapter-
|
|
8
|
-
const require_routes = require("./routes-
|
|
7
|
+
const require_server_adapter = require("./server-adapter-DEOmNkC-.cjs");
|
|
8
|
+
const require_routes = require("./routes-BTrz1ppE.cjs");
|
|
9
9
|
require("./utils-DQJOBnMo.cjs");
|
|
10
10
|
const require_memory = require("./memory-4Izw-l6v.cjs");
|
|
11
11
|
const require_observability = require("./observability-zNA_CVaz.cjs");
|
|
@@ -3,8 +3,8 @@ import "./constants-C1ASuP4t.js";
|
|
|
3
3
|
import { G as getAgentFromSystem, f as GENERATE_AGENT_ROUTE, h as GET_AGENT_BY_ID_ROUTE, v as LIST_AGENTS_ROUTE } from "./agents-CAXsXenf.js";
|
|
4
4
|
import { a as LIST_TOOLS_ROUTE, i as GET_TOOL_BY_ID_ROUTE, n as EXECUTE_TOOL_ROUTE, o as findTool } from "./tools-C3KBdlil.js";
|
|
5
5
|
import { _ as RESUME_ASYNC_WORKFLOW_ROUTE, a as GET_WORKFLOW_BY_ID_ROUTE, k as listWorkflowsFromSystem, o as GET_WORKFLOW_RUN_BY_ID_ROUTE, s as LIST_WORKFLOWS_ROUTE, t as CANCEL_WORKFLOW_RUN_ROUTE, x as START_ASYNC_WORKFLOW_ROUTE } from "./workflows-OjUXkjWw.js";
|
|
6
|
-
import { o as checkRouteRBAC, r as authorizeRoute, s as dispatchRoute } from "./server-adapter-
|
|
7
|
-
import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-
|
|
6
|
+
import { o as checkRouteRBAC, r as authorizeRoute, s as dispatchRoute } from "./server-adapter-BBWHYl1q.js";
|
|
7
|
+
import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-Byg1B8Qr.js";
|
|
8
8
|
import "./utils-C2VRtQjI.js";
|
|
9
9
|
import { E as UPDATE_THREAD_ROUTE, b as LIST_THREADS_ROUTE, d as GET_MEMORY_STATUS_ROUTE, f as GET_OBSERVATIONAL_MEMORY_ROUTE, g as GET_WORKING_MEMORY_ROUTE, h as GET_THREAD_BY_ID_ROUTE, i as CREATE_THREAD_ROUTE, l as GET_MEMORY_CONFIG_ROUTE, n as CLONE_THREAD_ROUTE, p as GET_RESOURCE_WORKING_MEMORY_ROUTE, t as AWAIT_BUFFER_STATUS_ROUTE, v as LIST_MESSAGES_ROUTE } from "./memory-03B4pe3w.js";
|
|
10
10
|
import { a as GET_TRACE_ROUTE, i as GET_TRACE_LIGHT_ROUTE, o as GET_TRACE_TRAJECTORY_ROUTE, r as GET_SPAN_ROUTE, u as LIST_TRACES_ROUTE } from "./observability-URaJnI_U.js";
|
|
@@ -8655,7 +8655,7 @@ function splitLines(text) {
|
|
|
8655
8655
|
else result.push(result.pop().slice(0, -1));
|
|
8656
8656
|
return result;
|
|
8657
8657
|
}
|
|
8658
|
-
// ../memory/dist/src-
|
|
8658
|
+
// ../memory/dist/src-CvlxgD5y.js
|
|
8659
8659
|
var __defProp$3 = Object.defineProperty;
|
|
8660
8660
|
var __exportAll = (all, no_symbols) => {
|
|
8661
8661
|
let target = {};
|
|
@@ -18359,7 +18359,7 @@ function withUserAgentSuffix$1(headers, ...userAgentSuffixParts) {
|
|
|
18359
18359
|
normalizedHeaders.set("user-agent", [currentUserAgentHeader, ...userAgentSuffixParts].filter(Boolean).join(" "));
|
|
18360
18360
|
return Object.fromEntries(normalizedHeaders.entries());
|
|
18361
18361
|
}
|
|
18362
|
-
var VERSION$5 = "4.0.
|
|
18362
|
+
var VERSION$5 = "4.0.67";
|
|
18363
18363
|
var getOriginalFetch$1 = () => globalThis.fetch;
|
|
18364
18364
|
var getFromApi$1 = async ({ url, headers = {}, successfulResponseHandler, failedResponseHandler, abortSignal, fetch, validateUrl, credentialedOrigin, trustedOrigin }) => {
|
|
18365
18365
|
try {
|
|
@@ -19394,7 +19394,7 @@ function standardSchema$1(standardSchema2) {
|
|
|
19394
19394
|
return addAdditionalPropertiesToJsonSchema$1(standardSchema2["~standard"].jsonSchema.input({ target: "draft-07" }));
|
|
19395
19395
|
}, { validate: async (value) => {
|
|
19396
19396
|
const result = await standardSchema2["~standard"].validate(value);
|
|
19397
|
-
return "value" in result ? {
|
|
19397
|
+
return result.issues === void 0 && "value" in result ? {
|
|
19398
19398
|
success: true,
|
|
19399
19399
|
value: result.value
|
|
19400
19400
|
} : {
|
|
@@ -37360,7 +37360,7 @@ async function resolveImageDimensionsAsync(part) {
|
|
|
37360
37360
|
const url = resolveHttpAssetUrl(getObjectValue(part, "image") ?? getObjectValue(part, "data"));
|
|
37361
37361
|
if (!url) return existing;
|
|
37362
37362
|
try {
|
|
37363
|
-
const probeImageSize = (await import("./probe-image-size-
|
|
37363
|
+
const probeImageSize = (await import("./probe-image-size-B3ETFAcX.js").then((m) => /* @__PURE__ */ __toESM$1(m.default, 1))).default;
|
|
37364
37364
|
const probed = await probeImageSize(url, {
|
|
37365
37365
|
open_timeout: REMOTE_IMAGE_PROBE_TIMEOUT_MS,
|
|
37366
37366
|
response_timeout: REMOTE_IMAGE_PROBE_TIMEOUT_MS,
|
|
@@ -53293,7 +53293,7 @@ const createModelInstance = async (provider, modelId, version = "v2") => {
|
|
|
53293
53293
|
try {
|
|
53294
53294
|
const providerFn = version === `v1` ? { v1: {
|
|
53295
53295
|
openai: async () => {
|
|
53296
|
-
const { openai } = await import("./dist-
|
|
53296
|
+
const { openai } = await import("./dist-egxWNNJS.js");
|
|
53297
53297
|
return openai(modelId);
|
|
53298
53298
|
},
|
|
53299
53299
|
anthropic: async () => {
|
|
@@ -8656,7 +8656,7 @@ function splitLines(text) {
|
|
|
8656
8656
|
else result.push(result.pop().slice(0, -1));
|
|
8657
8657
|
return result;
|
|
8658
8658
|
}
|
|
8659
|
-
// ../memory/dist/src-
|
|
8659
|
+
// ../memory/dist/src-CvlxgD5y.js
|
|
8660
8660
|
var __defProp$3 = Object.defineProperty;
|
|
8661
8661
|
var __exportAll = (all, no_symbols) => {
|
|
8662
8662
|
let target = {};
|
|
@@ -18360,7 +18360,7 @@ function withUserAgentSuffix$1(headers, ...userAgentSuffixParts) {
|
|
|
18360
18360
|
normalizedHeaders.set("user-agent", [currentUserAgentHeader, ...userAgentSuffixParts].filter(Boolean).join(" "));
|
|
18361
18361
|
return Object.fromEntries(normalizedHeaders.entries());
|
|
18362
18362
|
}
|
|
18363
|
-
var VERSION$5 = "4.0.
|
|
18363
|
+
var VERSION$5 = "4.0.67";
|
|
18364
18364
|
var getOriginalFetch$1 = () => globalThis.fetch;
|
|
18365
18365
|
var getFromApi$1 = async ({ url, headers = {}, successfulResponseHandler, failedResponseHandler, abortSignal, fetch, validateUrl, credentialedOrigin, trustedOrigin }) => {
|
|
18366
18366
|
try {
|
|
@@ -19395,7 +19395,7 @@ function standardSchema$1(standardSchema2) {
|
|
|
19395
19395
|
return addAdditionalPropertiesToJsonSchema$1(standardSchema2["~standard"].jsonSchema.input({ target: "draft-07" }));
|
|
19396
19396
|
}, { validate: async (value) => {
|
|
19397
19397
|
const result = await standardSchema2["~standard"].validate(value);
|
|
19398
|
-
return "value" in result ? {
|
|
19398
|
+
return result.issues === void 0 && "value" in result ? {
|
|
19399
19399
|
success: true,
|
|
19400
19400
|
value: result.value
|
|
19401
19401
|
} : {
|
|
@@ -37361,7 +37361,7 @@ async function resolveImageDimensionsAsync(part) {
|
|
|
37361
37361
|
const url = resolveHttpAssetUrl(getObjectValue(part, "image") ?? getObjectValue(part, "data"));
|
|
37362
37362
|
if (!url) return existing;
|
|
37363
37363
|
try {
|
|
37364
|
-
const probeImageSize = (await Promise.resolve().then(() => /* @__PURE__ */ require_rolldown_runtime.__toESM(require("./probe-image-size-
|
|
37364
|
+
const probeImageSize = (await Promise.resolve().then(() => /* @__PURE__ */ require_rolldown_runtime.__toESM(require("./probe-image-size-D801MyMQ.cjs").default, 1))).default;
|
|
37365
37365
|
const probed = await probeImageSize(url, {
|
|
37366
37366
|
open_timeout: REMOTE_IMAGE_PROBE_TIMEOUT_MS,
|
|
37367
37367
|
response_timeout: REMOTE_IMAGE_PROBE_TIMEOUT_MS,
|
|
@@ -53296,7 +53296,7 @@ const createModelInstance = async (provider, modelId, version = "v2") => {
|
|
|
53296
53296
|
try {
|
|
53297
53297
|
const providerFn = version === `v1` ? { v1: {
|
|
53298
53298
|
openai: async () => {
|
|
53299
|
-
const { openai } = await Promise.resolve().then(() => require("./dist-
|
|
53299
|
+
const { openai } = await Promise.resolve().then(() => require("./dist-DvGuHSAT.cjs"));
|
|
53300
53300
|
return openai(modelId);
|
|
53301
53301
|
},
|
|
53302
53302
|
anthropic: async () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as openai } from "./dist-BS3dauvO.js";
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-CQI-hT2b.js";
|
|
2
|
-
import { a as require_tiff, c as require_png, d as require_gif, f as require_bmp, i as require_webp, l as require_jpeg, m as require_utils, o as require_svg, p as require_avif, r as require_sync, s as require_psd, u as require_ico } from "./dist-
|
|
2
|
+
import { a as require_tiff, c as require_png, d as require_gif, f as require_bmp, i as require_webp, l as require_jpeg, m as require_utils, o as require_svg, p as require_avif, r as require_sync, s as require_psd, u as require_ico } from "./dist-BS3dauvO.js";
|
|
3
3
|
import tty from "tty";
|
|
4
4
|
import process$1 from "process";
|
|
5
5
|
import os from "os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-10nMEhjP.cjs");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-DnaUFs3u.cjs");
|
|
3
3
|
let tty = require("tty");
|
|
4
4
|
tty = require_rolldown_runtime.__toESM(tty, 1);
|
|
5
5
|
let process$1 = require("process");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-10nMEhjP.cjs");
|
|
2
2
|
const require_a2a = require("./a2a-DwjvHqcb.cjs");
|
|
3
|
-
const require_agent_builder = require("./agent-builder-
|
|
3
|
+
const require_agent_builder = require("./agent-builder-CFlwtwZC.cjs");
|
|
4
4
|
const require_agent_controller = require("./agent-controller-BP-CFfsg.cjs");
|
|
5
5
|
const require_agents = require("./agents-GHhuyz5x.cjs");
|
|
6
6
|
const require_plans = require("./plans-kA8E3Auv.cjs");
|
|
@@ -235,7 +235,7 @@ async function loadBuiltinMCP(mastra) {
|
|
|
235
235
|
})
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
const { buildBuiltinMCPTools, modelSummaryOf } = await Promise.resolve().then(() => require("./catalogue-
|
|
238
|
+
const { buildBuiltinMCPTools, modelSummaryOf } = await Promise.resolve().then(() => require("./catalogue-BjUuotVl.cjs"));
|
|
239
239
|
return {
|
|
240
240
|
MCPServer: mcp.MCPServer,
|
|
241
241
|
buildBuiltinMCPTools,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime-CQI-hT2b.js";
|
|
2
2
|
import { n as GET_AGENT_CARD_ROUTE, t as AGENT_EXECUTION_ROUTE } from "./a2a-CY7rgzPe.js";
|
|
3
|
-
import { a as LIST_AGENT_BUILDER_ACTIONS_ROUTE, c as OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE, d as RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE, f as RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE, g as STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE, h as STREAM_AGENT_BUILDER_ACTION_ROUTE, i as GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE, l as RESUME_AGENT_BUILDER_ACTION_ROUTE, m as START_ASYNC_AGENT_BUILDER_ACTION_ROUTE, n as CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE, o as LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE, p as START_AGENT_BUILDER_ACTION_RUN_ROUTE, r as GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE, s as OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE, t as CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE, u as RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE } from "./agent-builder-
|
|
3
|
+
import { a as LIST_AGENT_BUILDER_ACTIONS_ROUTE, c as OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE, d as RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE, f as RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE, g as STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE, h as STREAM_AGENT_BUILDER_ACTION_ROUTE, i as GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE, l as RESUME_AGENT_BUILDER_ACTION_ROUTE, m as START_ASYNC_AGENT_BUILDER_ACTION_ROUTE, n as CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE, o as LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE, p as START_AGENT_BUILDER_ACTION_RUN_ROUTE, r as GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE, s as OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE, t as CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE, u as RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE } from "./agent-builder-DawgAfRt.js";
|
|
4
4
|
import { A as STEER_AGENT_CONTROLLER_SESSION_ROUTE, C as SEND_AGENT_CONTROLLER_MESSAGE_ROUTE, D as SET_AGENT_CONTROLLER_RESOURCE_ID_ROUTE, E as SET_AGENT_CONTROLLER_GOAL_ROUTE, F as TRANSFER_AGENT_CONTROLLER_THREAD_OWNERSHIP_ROUTE, I as UPDATE_AGENT_CONTROLLER_GOAL_ROUTE, M as SWITCH_AGENT_CONTROLLER_MODEL_ROUTE, N as SWITCH_AGENT_CONTROLLER_MODE_ROUTE, O as SET_AGENT_CONTROLLER_SESSION_STATE_ROUTE, P as SWITCH_AGENT_CONTROLLER_THREAD_ROUTE, S as RENAME_AGENT_CONTROLLER_THREAD_ROUTE, T as SET_AGENT_CONTROLLER_CATEGORY_PERMISSION_ROUTE, _ as LIST_AGENT_CONTROLLER_ACTIVE_RUNS_ROUTE, a as CLONE_AGENT_CONTROLLER_THREAD_ROUTE, b as LIST_AGENT_CONTROLLER_THREADS_ROUTE, c as DELETE_AGENT_CONTROLLER_THREAD_ROUTE, d as GET_AGENT_CONTROLLER_OM_RECORD_ROUTE, f as GET_AGENT_CONTROLLER_PERMISSIONS_ROUTE, g as LIST_AGENT_CONTROLLERS_ROUTE, h as GET_AGENT_CONTROLLER_WORKSPACE_STATUS_ROUTE, i as CLEAR_AGENT_CONTROLLER_GOAL_ROUTE, j as STREAM_AGENT_CONTROLLER_SESSION_ROUTE, k as SET_AGENT_CONTROLLER_TOOL_PERMISSION_ROUTE, l as FOLLOW_UP_AGENT_CONTROLLER_SESSION_ROUTE, m as GET_AGENT_CONTROLLER_SESSION_STATE_ROUTE, n as AGENT_CONTROLLER_TOOL_APPROVAL_ROUTE, o as CREATE_AGENT_CONTROLLER_SESSION_ROUTE, p as GET_AGENT_CONTROLLER_RESOURCE_IDS_ROUTE, r as AGENT_CONTROLLER_TOOL_SUSPENSION_ROUTE, s as CREATE_AGENT_CONTROLLER_THREAD_ROUTE, t as ABORT_AGENT_CONTROLLER_SESSION_ROUTE, u as GET_AGENT_CONTROLLER_GOAL_ROUTE, v as LIST_AGENT_CONTROLLER_MODELS_ROUTE, w as SEND_AGENT_CONTROLLER_NOTIFICATION_ROUTE, x as LIST_AGENT_CONTROLLER_THREAD_MESSAGES_ROUTE, y as LIST_AGENT_CONTROLLER_MODES_ROUTE } from "./agent-controller-CzKnfKkw.js";
|
|
5
5
|
import { A as SEND_TOOL_APPROVAL_ROUTE, B as UPDATE_AGENT_MODEL_IN_MODEL_LIST_ROUTE, C as RECOVER_ROUTE, D as RESUME_STREAM_UNTIL_IDLE_ROUTE, E as RESUME_STREAM_ROUTE, F as STREAM_UI_MESSAGE_DEPRECATED_ROUTE, I as STREAM_UI_MESSAGE_VNEXT_DEPRECATED_ROUTE, L as STREAM_UNTIL_IDLE_GENERATE_ROUTE, M as STREAM_GENERATE_ROUTE, N as STREAM_GENERATE_VNEXT_DEPRECATED_ROUTE, O as SEND_AGENT_MESSAGE_ROUTE, P as STREAM_NETWORK_ROUTE, R as STREAM_VNEXT_DEPRECATED_ROUTE, S as QUEUE_AGENT_SIGNAL_ROUTE, T as RESET_AGENT_MODEL_ROUTE, V as UPDATE_AGENT_MODEL_ROUTE, _ as GET_PROVIDERS_ROUTE, a as APPROVE_TOOL_CALL_ROUTE, b as OBSERVE_AGENT_STREAM_ROUTE, c as DECLINE_NETWORK_TOOL_CALL_ROUTE, d as ENHANCE_INSTRUCTIONS_ROUTE, f as GENERATE_AGENT_ROUTE, g as GET_AGENT_SKILL_ROUTE, h as GET_AGENT_BY_ID_ROUTE, i as APPROVE_TOOL_CALL_GENERATE_ROUTE, j as STREAM_GENERATE_LEGACY_ROUTE, k as SEND_AGENT_SIGNAL_ROUTE, l as DECLINE_TOOL_CALL_GENERATE_ROUTE, m as GENERATE_LEGACY_ROUTE, n as ABORT_AGENT_THREAD_ROUTE, o as CANCEL_AGENT_PENDING_SIGNALS_ROUTE, p as GENERATE_AGENT_VNEXT_ROUTE, r as APPROVE_NETWORK_TOOL_CALL_ROUTE, s as CLONE_AGENT_ROUTE, t as ABORT_AGENT_RUN_ROUTE, u as DECLINE_TOOL_CALL_ROUTE, v as LIST_AGENTS_ROUTE, w as REORDER_AGENT_MODEL_LIST_ROUTE, x as QUEUE_AGENT_MESSAGE_ROUTE, y as LIST_SUSPENDED_RUNS_ROUTE, z as SUBSCRIBE_AGENT_THREAD_ROUTE } from "./agents-CAXsXenf.js";
|
|
6
6
|
import { t as READ_AGENT_PLAN_ROUTE } from "./plans-DGC1grMp.js";
|
|
@@ -235,7 +235,7 @@ async function loadBuiltinMCP(mastra) {
|
|
|
235
235
|
})
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
const { buildBuiltinMCPTools, modelSummaryOf } = await import("./catalogue-
|
|
238
|
+
const { buildBuiltinMCPTools, modelSummaryOf } = await import("./catalogue-CJKwUMII.js");
|
|
239
239
|
return {
|
|
240
240
|
MCPServer: mcp.MCPServer,
|
|
241
241
|
buildBuiltinMCPTools,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../rolldown-runtime-10nMEhjP.cjs");
|
|
3
|
-
const require_agent_builder = require("../../agent-builder-
|
|
3
|
+
const require_agent_builder = require("../../agent-builder-CFlwtwZC.cjs");
|
|
4
4
|
exports.CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE = require_agent_builder.CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE;
|
|
5
5
|
exports.CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = require_agent_builder.CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE;
|
|
6
6
|
exports.GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE = require_agent_builder.GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE, n as CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE, r as GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE, i as GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE, a as LIST_AGENT_BUILDER_ACTIONS_ROUTE, o as LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE, s as OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE, c as OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE, l as RESUME_AGENT_BUILDER_ACTION_ROUTE, u as RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE, d as RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE, f as RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE, p as START_AGENT_BUILDER_ACTION_RUN_ROUTE, m as START_ASYNC_AGENT_BUILDER_ACTION_ROUTE, h as STREAM_AGENT_BUILDER_ACTION_ROUTE, g as STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE } from "../../agent-builder-
|
|
1
|
+
export { t as CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE, n as CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE, r as GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE, i as GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE, a as LIST_AGENT_BUILDER_ACTIONS_ROUTE, o as LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE, s as OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE, c as OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE, l as RESUME_AGENT_BUILDER_ACTION_ROUTE, u as RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE, d as RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE, f as RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE, p as START_AGENT_BUILDER_ACTION_RUN_ROUTE, m as START_ASYNC_AGENT_BUILDER_ACTION_ROUTE, h as STREAM_AGENT_BUILDER_ACTION_ROUTE, g as STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE } from "../../agent-builder-DawgAfRt.js";
|
|
@@ -75,7 +75,8 @@ function getHttpStatusForMastraError(errorId) {
|
|
|
75
75
|
case "EXPERIMENT_HAS_TARGET":
|
|
76
76
|
case "EXPERIMENT_HAS_NO_TARGET":
|
|
77
77
|
case "EXPERIMENT_INVALID_TARGET":
|
|
78
|
-
case "EXPERIMENT_NOT_DURABLE":
|
|
78
|
+
case "EXPERIMENT_NOT_DURABLE":
|
|
79
|
+
case "EXPERIMENT_SCORER_NOT_FOUND": return 400;
|
|
79
80
|
case "EXPERIMENT_TARGET_NOT_FOUND": return 404;
|
|
80
81
|
case "DATASET_ITEM_IDENTITY_CONFLICT":
|
|
81
82
|
case "EXPERIMENT_ID_CONFLICT":
|
|
@@ -73,7 +73,8 @@ function getHttpStatusForMastraError(errorId) {
|
|
|
73
73
|
case "EXPERIMENT_HAS_TARGET":
|
|
74
74
|
case "EXPERIMENT_HAS_NO_TARGET":
|
|
75
75
|
case "EXPERIMENT_INVALID_TARGET":
|
|
76
|
-
case "EXPERIMENT_NOT_DURABLE":
|
|
76
|
+
case "EXPERIMENT_NOT_DURABLE":
|
|
77
|
+
case "EXPERIMENT_SCORER_NOT_FOUND": return 400;
|
|
77
78
|
case "EXPERIMENT_TARGET_NOT_FOUND": return 404;
|
|
78
79
|
case "DATASET_ITEM_IDENTITY_CONFLICT":
|
|
79
80
|
case "EXPERIMENT_ID_CONFLICT":
|
|
@@ -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-D8c0D-Nd.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-BvvlL0TR.js");
|
|
92
92
|
return buildApiSchemaManifest();
|
|
93
93
|
}
|
|
94
94
|
});
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../rolldown-runtime-10nMEhjP.cjs");
|
|
3
|
-
const require_agent_builder = require("../agent-builder-
|
|
3
|
+
const require_agent_builder = require("../agent-builder-CFlwtwZC.cjs");
|
|
4
4
|
const require_server_handlers_error = require("./handlers/error.cjs");
|
|
5
5
|
const require_agents = require("../agents-GHhuyz5x.cjs");
|
|
6
6
|
const require_plans = require("../plans-kA8E3Auv.cjs");
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as agent_builder_exports } from "../agent-builder-
|
|
1
|
+
import { _ as agent_builder_exports } from "../agent-builder-DawgAfRt.js";
|
|
2
2
|
import { formatZodError, isZodError } from "./handlers/error.js";
|
|
3
3
|
import { H as agents_exports } from "../agents-CAXsXenf.js";
|
|
4
4
|
import { n as plans_exports } from "../plans-DGC1grMp.js";
|
|
@@ -6,8 +6,8 @@ const require_utils = require("../../utils-DQJOBnMo.cjs");
|
|
|
6
6
|
const require_constants = require("../../constants-CyNbINin.cjs");
|
|
7
7
|
const require_server_handlers_error = require("../handlers/error.cjs");
|
|
8
8
|
const require_agent_controller = require("../../agent-controller-BP-CFfsg.cjs");
|
|
9
|
-
const require_routes = require("../../routes-
|
|
10
|
-
const require_server_adapter = require("../../server-adapter-
|
|
9
|
+
const require_routes = require("../../routes-BTrz1ppE.cjs");
|
|
10
|
+
const require_server_adapter = require("../../server-adapter-DEOmNkC-.cjs");
|
|
11
11
|
exports.ALL_SERVER_ROUTES = require_routes.ALL_SERVER_ROUTES;
|
|
12
12
|
exports.BUILTIN_MCP_HTTP_ROUTE = require_routes.BUILTIN_MCP_HTTP_ROUTE;
|
|
13
13
|
exports.HTTPException = require_http_exception.HTTPException;
|
|
@@ -4,6 +4,6 @@ import { o as normalizeRoutePath, t as WorkflowRegistry } from "../../utils-C2VR
|
|
|
4
4
|
import { _ as isStudioClientTypeHeader, a as MASTRA_KNOWLEDGE_PRINCIPALS_KEY, g as isReservedRequestContextKey, i as MASTRA_IS_STUDIO_KEY, l as MASTRA_STUDIO_CLIENT_TYPE, m as RESERVED_REQUEST_CONTEXT_KEYS, r as MASTRA_CLIENT_TYPE_HEADER, t as MASTRA_AUTH_MODE_KEY } from "../../constants-C1ASuP4t.js";
|
|
5
5
|
import { isZodError } from "../handlers/error.js";
|
|
6
6
|
import { L as serializeStreamChunk } from "../../agent-controller-CzKnfKkw.js";
|
|
7
|
-
import { a as derivePermission, d as resolveServerRoute, i as deriveAction, l as KNOWLEDGE_ROUTES, n as OPT_IN_ROUTES, o as extractResource, r as SERVER_ROUTES, s as getEffectivePermission, t as ALL_SERVER_ROUTES, u as BUILTIN_MCP_HTTP_ROUTE } from "../../routes-
|
|
8
|
-
import { A as isMCPAudienceEnforced, C as writeWithBackpressure, D as buildMcpAuthInfoFromRequestContext, E as applyMcpRequestAuth, M as mcpWWWAuthenticate, O as checkMCPAudience, S as cancelReaderOnResponseClose, T as propagateRequestAbort, _ as parseRouteBody, a as checkRouteFGA, b as registerDispatchAdapter, c as getCustomHTTPExceptionResponse, d as getFGAProvider, f as getHTTPErrorResponse, g as normalizeQueryParams, h as isSafeObjectKey, i as bindDispatchAdapter, j as isMCPOAuthDiscoveryEnabled, k as createMCPOAuthMetadataRoutes, l as getCustomRouteHTTPExceptionResponse, m as invokeRoute, n as MastraServer, o as checkRouteRBAC, p as getRoutePermissionError, r as authorizeRoute, s as dispatchRoute, t as MASTRA_FRAMEWORK_PUBLIC_KEY, u as getEffectiveRBACProvider, v as parseRoutePathParams, w as redactStreamChunk, x as resolveRouteValidationError, y as parseRouteQueryParams } from "../../server-adapter-
|
|
7
|
+
import { a as derivePermission, d as resolveServerRoute, i as deriveAction, l as KNOWLEDGE_ROUTES, n as OPT_IN_ROUTES, o as extractResource, r as SERVER_ROUTES, s as getEffectivePermission, t as ALL_SERVER_ROUTES, u as BUILTIN_MCP_HTTP_ROUTE } from "../../routes-Byg1B8Qr.js";
|
|
8
|
+
import { A as isMCPAudienceEnforced, C as writeWithBackpressure, D as buildMcpAuthInfoFromRequestContext, E as applyMcpRequestAuth, M as mcpWWWAuthenticate, O as checkMCPAudience, S as cancelReaderOnResponseClose, T as propagateRequestAbort, _ as parseRouteBody, a as checkRouteFGA, b as registerDispatchAdapter, c as getCustomHTTPExceptionResponse, d as getFGAProvider, f as getHTTPErrorResponse, g as normalizeQueryParams, h as isSafeObjectKey, i as bindDispatchAdapter, j as isMCPOAuthDiscoveryEnabled, k as createMCPOAuthMetadataRoutes, l as getCustomRouteHTTPExceptionResponse, m as invokeRoute, n as MastraServer, o as checkRouteRBAC, p as getRoutePermissionError, r as authorizeRoute, s as dispatchRoute, t as MASTRA_FRAMEWORK_PUBLIC_KEY, u as getEffectiveRBACProvider, v as parseRoutePathParams, w as redactStreamChunk, x as resolveRouteValidationError, y as parseRouteQueryParams } from "../../server-adapter-BBWHYl1q.js";
|
|
9
9
|
export { ALL_SERVER_ROUTES, BUILTIN_MCP_HTTP_ROUTE, HTTPException, KNOWLEDGE_ROUTES, MASTRA_AUTH_MODE_KEY, MASTRA_CLIENT_TYPE_HEADER, MASTRA_FRAMEWORK_PUBLIC_KEY, MASTRA_IS_STUDIO_KEY, MASTRA_KNOWLEDGE_PRINCIPALS_KEY, MASTRA_STUDIO_CLIENT_TYPE, MastraServer, OPT_IN_ROUTES, RESERVED_REQUEST_CONTEXT_KEYS, SERVER_ROUTES, WorkflowRegistry, applyMcpRequestAuth, authorizeRoute, bindDispatchAdapter, buildMcpAuthInfoFromRequestContext, cancelReaderOnResponseClose, checkMCPAudience, checkRouteFGA, checkRouteRBAC, convertCustomRoutesToOpenAPIPaths, createMCPOAuthMetadataRoutes, createPublicRoute, createRoute, deriveAction, derivePermission, dispatchRoute, extractResource, generateOpenAPIDocument, getCustomHTTPExceptionResponse, getCustomRouteHTTPExceptionResponse, getEffectivePermission, getEffectiveRBACProvider, getFGAProvider, getHTTPErrorResponse, getRoutePermissionError, invokeRoute, isMCPAudienceEnforced, isMCPOAuthDiscoveryEnabled, isReservedRequestContextKey, isSafeObjectKey, isStudioClientTypeHeader, isZodError, jsonQueryParam, mcpWWWAuthenticate, normalizeQueryParams, normalizeRoutePath, parseRouteBody, parseRoutePathParams, parseRouteQueryParams, pickParams, propagateRequestAbort, redactStreamChunk, registerDispatchAdapter, resolveRouteValidationError, resolveServerRoute, serializeStreamChunk, wrapSchemaForQueryParams, writeWithBackpressure };
|
|
@@ -3,7 +3,7 @@ import { _ as isStudioClientTypeHeader, c as MASTRA_RESOURCE_ID_KEY$1, d as MAST
|
|
|
3
3
|
import { formatZodError, isZodError } from "./server/handlers/error.js";
|
|
4
4
|
import { t as HTTPException } from "./http-exception-CzaWkxMl.js";
|
|
5
5
|
import { n as createRoute, o as convertCustomRoutesToOpenAPIPaths, s as generateOpenAPIDocument } from "./route-builder-Dz18c3qm.js";
|
|
6
|
-
import { d as resolveServerRoute, f as isBuiltinMCPEnabled, n as OPT_IN_ROUTES, p as resolveBuiltinMCPPath, r as SERVER_ROUTES, s as getEffectivePermission } from "./routes-
|
|
6
|
+
import { d as resolveServerRoute, f as isBuiltinMCPEnabled, n as OPT_IN_ROUTES, p as resolveBuiltinMCPPath, r as SERVER_ROUTES, s as getEffectivePermission } from "./routes-Byg1B8Qr.js";
|
|
7
7
|
import { o as normalizeRoutePath } from "./utils-C2VRtQjI.js";
|
|
8
8
|
import "./agent-controller-CzKnfKkw.js";
|
|
9
9
|
import { z } from "zod/v4";
|
|
@@ -3,7 +3,7 @@ const require_constants = require("./constants-CyNbINin.cjs");
|
|
|
3
3
|
const require_server_handlers_error = require("./server/handlers/error.cjs");
|
|
4
4
|
const require_http_exception = require("./http-exception-Co3MbFUf.cjs");
|
|
5
5
|
const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
|
|
6
|
-
const require_routes = require("./routes-
|
|
6
|
+
const require_routes = require("./routes-BTrz1ppE.cjs");
|
|
7
7
|
const require_utils = require("./utils-DQJOBnMo.cjs");
|
|
8
8
|
require("./agent-controller-BP-CFfsg.cjs");
|
|
9
9
|
let zod_v4 = require("zod/v4");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "1.87.0-alpha.
|
|
3
|
+
"version": "1.87.0-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"@internal/types-builder": "0.0.127",
|
|
134
134
|
"@internal/voice": "0.0.48",
|
|
135
135
|
"@mastra/agent-builder": "1.2.3",
|
|
136
|
-
"@mastra/core": "1.87.0-alpha.
|
|
136
|
+
"@mastra/core": "1.87.0-alpha.2",
|
|
137
137
|
"@mastra/mcp": "^2.11.0",
|
|
138
138
|
"@mastra/schema-compat": "1.4.1"
|
|
139
139
|
},
|
package/dist/dist-BWVxgpEw.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as openai } from "./dist-NBGkHBIE.js";
|