@mastra/server 1.86.0-alpha.6 → 1.86.0-alpha.7
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/{a2a-BFN2C8f2.js → a2a-WPGF38fX.js} +1 -1
- package/dist/{a2a-DlEIsCZz.cjs → a2a-vSZkdSRE.cjs} +1 -1
- package/dist/{agent-builder-Bd6qGrt6.js → agent-builder-C4AIqOxt.js} +1 -1
- package/dist/{agent-builder-Bz1beuPE.cjs → agent-builder-dZlRNj1k.cjs} +1 -1
- package/dist/{agents-BMdbohgU.js → agents-272TP94y.js} +17 -6
- package/dist/{agents-DiQ_L6BU.cjs → agents-mjQZV5tv.cjs} +17 -6
- package/dist/{api-schema-manifest-CsefW4Vv.js → api-schema-manifest-BjhiTdNv.js} +1 -1
- package/dist/{api-schema-manifest-BuAf53GH.cjs → api-schema-manifest-DVkepK_s.cjs} +1 -1
- package/dist/{catalogue-CAIZ08il.cjs → catalogue-BTE9b_mr.cjs} +5 -5
- package/dist/{catalogue-BtSLF1p2.js → catalogue-DH64Duv-.js} +5 -5
- package/dist/{conversations-6v0VCbif.cjs → conversations-BWA_---j.cjs} +1 -1
- package/dist/{conversations-Dzpv_Cgt.js → conversations-CXyaNjLR.js} +1 -1
- package/dist/dist-Bn0zFASI.js +1 -0
- package/dist/{dist-Czbww9cr.js → dist-Bp1bObAq.js} +290 -25
- package/dist/{dist-C0Das1QD.cjs → dist-CSffo32A.cjs} +1 -1
- package/dist/{dist-C5rwoPuL.cjs → dist-DGwsCtT4.cjs} +290 -25
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{editor-builder-Cx9ZiHBw.cjs → editor-builder-BS2xogE_.cjs} +1 -1
- package/dist/{editor-builder-DpNB1W4s.js → editor-builder-BayzCprJ.js} +1 -1
- package/dist/{plans-DYNE2s8s.cjs → plans-Bes_LVgv.cjs} +1 -1
- package/dist/{plans-BoUO4vWD.js → plans-xGwuiZUd.js} +1 -1
- package/dist/{probe-image-size-DQsyQSUh.cjs → probe-image-size-BR5MlnnJ.cjs} +1 -1
- package/dist/{probe-image-size-C0BvSeqt.js → probe-image-size-DBCcUUw_.js} +1 -1
- package/dist/{responses-ByDnfqlJ.cjs → responses-BH567IZf.cjs} +1 -1
- package/dist/{responses-CGv4KFQ3.js → responses-CwQO5y2X.js} +1 -1
- package/dist/{routes-BLjObOVE.cjs → routes-6p-xrUIq.cjs} +11 -11
- package/dist/{routes-C0TLNOPH.js → routes-CrBCJmjc.js} +11 -11
- package/dist/{scores-EVbkxGHy.cjs → scores-CXNkN7Bn.cjs} +1 -1
- package/dist/{scores-CqNF-thA.js → scores-ksmJiJnJ.js} +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.js +1 -1
- package/dist/server/handlers/agents.cjs +1 -1
- package/dist/server/handlers/agents.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/plans.cjs +1 -1
- package/dist/server/handlers/plans.js +1 -1
- package/dist/server/handlers/responses.cjs +1 -1
- package/dist/server/handlers/responses.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 +1 -1
- package/dist/server/handlers/stored-agent-favorites.js +1 -1
- package/dist/server/handlers/stored-agents.cjs +1 -1
- package/dist/server/handlers/stored-agents.js +1 -1
- package/dist/server/handlers/stored-skill-favorites.cjs +1 -1
- package/dist/server/handlers/stored-skill-favorites.js +1 -1
- package/dist/server/handlers/stored-skills.cjs +1 -1
- package/dist/server/handlers/stored-skills.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/voice.cjs +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers.cjs +9 -9
- package/dist/server/handlers.js +9 -9
- package/dist/server/server-adapter/index.cjs +2 -2
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/server/server-adapter/routes/conversations.d.ts +3 -3
- package/dist/{server-adapter-CxMHZZAv.js → server-adapter-BGOi-s7x.js} +1 -1
- package/dist/{server-adapter-BkAKl970.cjs → server-adapter-Ceag3til.cjs} +1 -1
- package/dist/{tools-CZmeb9MB.js → tools-CY44YtDW.js} +1 -1
- package/dist/{tools-D07qyAT0.cjs → tools-DLZ7go-n.cjs} +1 -1
- package/dist/{voice-BNwHCtxv.js → voice-DTjrAgqg.js} +1 -1
- package/dist/{voice-DN72TM58.cjs → voice-NaerSeVQ.cjs} +1 -1
- package/package.json +3 -3
- package/dist/dist-C_7xKME1.js +0 -1
|
@@ -3,7 +3,7 @@ import { a as agentCardV1ResponseSchema, i as agentCardResponseSchema, o as agen
|
|
|
3
3
|
import { TaskStoreVersionConflictError } from "./server/a2a/store.js";
|
|
4
4
|
import { n as createRoute } from "./route-builder-Dz18c3qm.js";
|
|
5
5
|
import { r as convertInstructionsToString } from "./utils-C2VRtQjI.js";
|
|
6
|
-
import { G as getAgentFromSystem } from "./agents-
|
|
6
|
+
import { G as getAgentFromSystem } from "./agents-272TP94y.js";
|
|
7
7
|
import { getPublicOrigin } from "./server/handlers/auth.js";
|
|
8
8
|
import { z } from "zod/v4";
|
|
9
9
|
import { isDeepStrictEqual } from "util";
|
|
@@ -3,7 +3,7 @@ const require_a2a = require("./a2a-BsBYrosr.cjs");
|
|
|
3
3
|
const require_server_a2a_store = require("./server/a2a/store.cjs");
|
|
4
4
|
const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
|
|
5
5
|
const require_utils = require("./utils-DQJOBnMo.cjs");
|
|
6
|
-
const require_agents = require("./agents-
|
|
6
|
+
const require_agents = require("./agents-mjQZV5tv.cjs");
|
|
7
7
|
const require_server_handlers_auth = require("./server/handlers/auth.cjs");
|
|
8
8
|
let zod_v4 = require("zod/v4");
|
|
9
9
|
let util = require("util");
|
|
@@ -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-Bp1bObAq.js").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__ */ 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-DGwsCtT4.cjs")).then((mod) => mod.createAgentBuilderWorkflows);
|
|
34
34
|
const create = await createAgentBuilderWorkflowsPromise;
|
|
35
35
|
let agentBuilderWorkflows = agentBuilderWorkflowsByMastra.get(mastra);
|
|
36
36
|
if (!agentBuilderWorkflows) {
|
|
@@ -295,8 +295,18 @@ const DURABLE_SNAPSHOT_WAIT_INTERVAL_MS = 25;
|
|
|
295
295
|
function getDurableLoopWorkflowName(agent) {
|
|
296
296
|
return agent.durableLoopWorkflowName ?? DurableStepIds.AGENTIC_LOOP;
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Whether the agent's runs execute on a durable engine and persist durable-loop snapshots:
|
|
300
|
+
* legacy wrappers, or a native Agent whose execution engine is durable/evented. Structural
|
|
301
|
+
* so agents from another `@mastra/core` copy are still recognized.
|
|
302
|
+
*/
|
|
303
|
+
function hasDurableExecution(agent) {
|
|
304
|
+
if (isDurableAgentLike(agent)) return true;
|
|
305
|
+
const native = agent;
|
|
306
|
+
return typeof native.__hasDurableExecution === "function" && native.__hasDurableExecution();
|
|
307
|
+
}
|
|
298
308
|
async function validateDurableToolCallAccess({ mastra, agent, runId, toolCallId, requestContext, threadId, abortSignal }) {
|
|
299
|
-
if (!
|
|
309
|
+
if (!hasDurableExecution(agent)) return;
|
|
300
310
|
const workflowsStore = await mastra.getStorage()?.getStore("workflows");
|
|
301
311
|
if (!workflowsStore) throw new HTTPException(403, { message: "Access denied: durable run belongs to a different resource" });
|
|
302
312
|
const workflowName = getDurableLoopWorkflowName(agent);
|
|
@@ -378,7 +388,7 @@ async function authorizeRunOwner({ mastra, agent, owner, requestContext, permiss
|
|
|
378
388
|
}
|
|
379
389
|
/** Whether the agent publishes its runs, so a closed HTTP reader can detach instead of aborting. */
|
|
380
390
|
function hasResumableStreams(agent) {
|
|
381
|
-
if (
|
|
391
|
+
if (hasDurableExecution(agent)) return true;
|
|
382
392
|
const resumable = agent;
|
|
383
393
|
return typeof resumable.hasResumableStreams === "function" && resumable.hasResumableStreams();
|
|
384
394
|
}
|
|
@@ -1917,7 +1927,7 @@ async function authorizeDurableRun({ mastra, agent, runId, requestContext, permi
|
|
|
1917
1927
|
* Aborts never use them, so a finished run is not reported stopped.
|
|
1918
1928
|
*/
|
|
1919
1929
|
async function authorizeRunAccess({ mastra, agent, runId, requestContext, permission }) {
|
|
1920
|
-
if (!
|
|
1930
|
+
if (!hasDurableExecution(agent)) {
|
|
1921
1931
|
const record = await getPlainRunRecord(agent, runId);
|
|
1922
1932
|
if (!record) return void 0;
|
|
1923
1933
|
await authorizeRunOwner({
|
|
@@ -1986,7 +1996,8 @@ const ABORT_AGENT_RUN_ROUTE = createRoute({
|
|
|
1986
1996
|
agentId,
|
|
1987
1997
|
requestContext
|
|
1988
1998
|
});
|
|
1989
|
-
|
|
1999
|
+
const durable = hasDurableExecution(agent);
|
|
2000
|
+
if (!durable) {
|
|
1990
2001
|
const resumable = agent;
|
|
1991
2002
|
if (typeof resumable.__getRunRecord !== "function" && typeof resumable.__getPublishedRunOwner !== "function" || !hasResumableStreams(agent)) throw new HTTPException(501, { message: "Run-scoped cancellation requires a durable agent or an agent with resumable streams" });
|
|
1992
2003
|
}
|
|
@@ -1997,7 +2008,7 @@ const ABORT_AGENT_RUN_ROUTE = createRoute({
|
|
|
1997
2008
|
requestContext,
|
|
1998
2009
|
permission: MastraFGAPermissions.MEMORY_WRITE
|
|
1999
2010
|
});
|
|
2000
|
-
if (!
|
|
2011
|
+
if (!durable) {
|
|
2001
2012
|
if (!run) throw new HTTPException(404, { message: "Run not found" });
|
|
2002
2013
|
if (run.status === "finished") return { aborted: false };
|
|
2003
2014
|
const resumable = agent;
|
|
@@ -2763,7 +2774,7 @@ const RECOVER_ROUTE = createRoute({
|
|
|
2763
2774
|
versionOptions,
|
|
2764
2775
|
requestContext: serverRequestContext
|
|
2765
2776
|
});
|
|
2766
|
-
if (!
|
|
2777
|
+
if (!hasDurableExecution(agent)) throw new HTTPException(400, { message: "Agent does not support recover. Only agents on a durable or evented execution engine can recover runs." });
|
|
2767
2778
|
const workflowRun = await (await mastra.getStorage()?.getStore("workflows"))?.getWorkflowRunById({
|
|
2768
2779
|
workflowName: getDurableLoopWorkflowName(agent),
|
|
2769
2780
|
runId
|
|
@@ -295,8 +295,18 @@ const DURABLE_SNAPSHOT_WAIT_INTERVAL_MS = 25;
|
|
|
295
295
|
function getDurableLoopWorkflowName(agent) {
|
|
296
296
|
return agent.durableLoopWorkflowName ?? _mastra_core_agent_durable.DurableStepIds.AGENTIC_LOOP;
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Whether the agent's runs execute on a durable engine and persist durable-loop snapshots:
|
|
300
|
+
* legacy wrappers, or a native Agent whose execution engine is durable/evented. Structural
|
|
301
|
+
* so agents from another `@mastra/core` copy are still recognized.
|
|
302
|
+
*/
|
|
303
|
+
function hasDurableExecution(agent) {
|
|
304
|
+
if ((0, _mastra_core_agent.isDurableAgentLike)(agent)) return true;
|
|
305
|
+
const native = agent;
|
|
306
|
+
return typeof native.__hasDurableExecution === "function" && native.__hasDurableExecution();
|
|
307
|
+
}
|
|
298
308
|
async function validateDurableToolCallAccess({ mastra, agent, runId, toolCallId, requestContext, threadId, abortSignal }) {
|
|
299
|
-
if (!(
|
|
309
|
+
if (!hasDurableExecution(agent)) return;
|
|
300
310
|
const workflowsStore = await mastra.getStorage()?.getStore("workflows");
|
|
301
311
|
if (!workflowsStore) throw new require_http_exception.HTTPException(403, { message: "Access denied: durable run belongs to a different resource" });
|
|
302
312
|
const workflowName = getDurableLoopWorkflowName(agent);
|
|
@@ -378,7 +388,7 @@ async function authorizeRunOwner({ mastra, agent, owner, requestContext, permiss
|
|
|
378
388
|
}
|
|
379
389
|
/** Whether the agent publishes its runs, so a closed HTTP reader can detach instead of aborting. */
|
|
380
390
|
function hasResumableStreams(agent) {
|
|
381
|
-
if ((
|
|
391
|
+
if (hasDurableExecution(agent)) return true;
|
|
382
392
|
const resumable = agent;
|
|
383
393
|
return typeof resumable.hasResumableStreams === "function" && resumable.hasResumableStreams();
|
|
384
394
|
}
|
|
@@ -1917,7 +1927,7 @@ async function authorizeDurableRun({ mastra, agent, runId, requestContext, permi
|
|
|
1917
1927
|
* Aborts never use them, so a finished run is not reported stopped.
|
|
1918
1928
|
*/
|
|
1919
1929
|
async function authorizeRunAccess({ mastra, agent, runId, requestContext, permission }) {
|
|
1920
|
-
if (!(
|
|
1930
|
+
if (!hasDurableExecution(agent)) {
|
|
1921
1931
|
const record = await getPlainRunRecord(agent, runId);
|
|
1922
1932
|
if (!record) return void 0;
|
|
1923
1933
|
await authorizeRunOwner({
|
|
@@ -1986,7 +1996,8 @@ const ABORT_AGENT_RUN_ROUTE = require_route_builder.createRoute({
|
|
|
1986
1996
|
agentId,
|
|
1987
1997
|
requestContext
|
|
1988
1998
|
});
|
|
1989
|
-
|
|
1999
|
+
const durable = hasDurableExecution(agent);
|
|
2000
|
+
if (!durable) {
|
|
1990
2001
|
const resumable = agent;
|
|
1991
2002
|
if (typeof resumable.__getRunRecord !== "function" && typeof resumable.__getPublishedRunOwner !== "function" || !hasResumableStreams(agent)) throw new require_http_exception.HTTPException(501, { message: "Run-scoped cancellation requires a durable agent or an agent with resumable streams" });
|
|
1992
2003
|
}
|
|
@@ -1997,7 +2008,7 @@ const ABORT_AGENT_RUN_ROUTE = require_route_builder.createRoute({
|
|
|
1997
2008
|
requestContext,
|
|
1998
2009
|
permission: require_utils$1.MastraFGAPermissions.MEMORY_WRITE
|
|
1999
2010
|
});
|
|
2000
|
-
if (!
|
|
2011
|
+
if (!durable) {
|
|
2001
2012
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Run not found" });
|
|
2002
2013
|
if (run.status === "finished") return { aborted: false };
|
|
2003
2014
|
const resumable = agent;
|
|
@@ -2763,7 +2774,7 @@ const RECOVER_ROUTE = require_route_builder.createRoute({
|
|
|
2763
2774
|
versionOptions,
|
|
2764
2775
|
requestContext: serverRequestContext
|
|
2765
2776
|
});
|
|
2766
|
-
if (!(
|
|
2777
|
+
if (!hasDurableExecution(agent)) throw new require_http_exception.HTTPException(400, { message: "Agent does not support recover. Only agents on a durable or evented execution engine can recover runs." });
|
|
2767
2778
|
const workflowRun = await (await mastra.getStorage()?.getStore("workflows"))?.getWorkflowRunById({
|
|
2768
2779
|
workflowName: getDurableLoopWorkflowName(agent),
|
|
2769
2780
|
runId
|
|
@@ -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-CrBCJmjc.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-6p-xrUIq.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;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-10nMEhjP.cjs");
|
|
2
2
|
const require_schema_TQPB_dl2 = require("./schema-TQPB_dl2-CJX1q58F.cjs");
|
|
3
3
|
require("./constants-CyNbINin.cjs");
|
|
4
|
-
const require_agents = require("./agents-
|
|
5
|
-
const require_tools = require("./tools-
|
|
4
|
+
const require_agents = require("./agents-mjQZV5tv.cjs");
|
|
5
|
+
const require_tools = require("./tools-DLZ7go-n.cjs");
|
|
6
6
|
const require_workflows = require("./workflows-gIKukZ1O.cjs");
|
|
7
|
-
const require_server_adapter = require("./server-adapter-
|
|
8
|
-
const require_routes = require("./routes-
|
|
7
|
+
const require_server_adapter = require("./server-adapter-Ceag3til.cjs");
|
|
8
|
+
const require_routes = require("./routes-6p-xrUIq.cjs");
|
|
9
9
|
require("./utils-DQJOBnMo.cjs");
|
|
10
10
|
const require_memory = require("./memory-4Izw-l6v.cjs");
|
|
11
11
|
const require_observability = require("./observability-Cn4P60P4.cjs");
|
|
12
12
|
const require_observability_new_endpoints = require("./observability-new-endpoints-iRwQxqwY.cjs");
|
|
13
|
-
const require_editor_builder = require("./editor-builder-
|
|
13
|
+
const require_editor_builder = require("./editor-builder-BS2xogE_.cjs");
|
|
14
14
|
const require_server_handlers_stored_agents = require("./server/handlers/stored-agents.cjs");
|
|
15
15
|
const require_stored_agents = require("./stored-agents-m0Knvv29.cjs");
|
|
16
16
|
let _mastra_core_error = require("@mastra/core/error");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { n as standardSchemaToJSONSchema, r as toStandardSchema } from "./schema-TQPB_dl2-CCzMcdDx.js";
|
|
2
2
|
import "./constants-C1ASuP4t.js";
|
|
3
|
-
import { G as getAgentFromSystem, f as GENERATE_AGENT_ROUTE, h as GET_AGENT_BY_ID_ROUTE, v as LIST_AGENTS_ROUTE } from "./agents-
|
|
4
|
-
import { a as LIST_TOOLS_ROUTE, i as GET_TOOL_BY_ID_ROUTE, n as EXECUTE_TOOL_ROUTE, o as findTool } from "./tools-
|
|
3
|
+
import { G as getAgentFromSystem, f as GENERATE_AGENT_ROUTE, h as GET_AGENT_BY_ID_ROUTE, v as LIST_AGENTS_ROUTE } from "./agents-272TP94y.js";
|
|
4
|
+
import { a as LIST_TOOLS_ROUTE, i as GET_TOOL_BY_ID_ROUTE, n as EXECUTE_TOOL_ROUTE, o as findTool } from "./tools-CY44YtDW.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-D3QrUMfm.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-BGOi-s7x.js";
|
|
7
|
+
import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-CrBCJmjc.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-zr7LDCQG.js";
|
|
11
11
|
import { A as GET_TRACE_QUERY_FIELDS, D as GET_SCORE_TIME_SERIES, E as GET_SCORE_PERCENTILES, F as LIST_SCORES, L as QUERY_SPANS, M as LIST_FEEDBACK, N as LIST_LOGS, O as GET_SERVICE_NAMES, R as QUERY_THREADS, S as GET_METRIC_TIME_SERIES, T as GET_SCORE_BREAKDOWN, _ as GET_METRIC_BREAKDOWN, b as GET_METRIC_NAMES, c as GET_ENTITY_NAMES, f as GET_FEEDBACK_AGGREGATE, g as GET_METRIC_AGGREGATE, h as GET_FEEDBACK_TIME_SERIES, j as GET_TRACE_QUERY_VALUES, k as GET_TAGS, l as GET_ENTITY_TYPES, m as GET_FEEDBACK_PERCENTILES, n as AGGREGATE_TRACES, p as GET_FEEDBACK_BREAKDOWN, s as GET_CAPABILITIES, t as AGGREGATE_SPANS, u as GET_ENVIRONMENTS, v as GET_METRIC_LABEL_KEYS, w as GET_SCORE_AGGREGATE, x as GET_METRIC_PERCENTILES, y as GET_METRIC_LABEL_VALUES, z as QUERY_TRACES } from "./observability-new-endpoints-vj6FaEcm.js";
|
|
12
|
-
import { t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE } from "./editor-builder-
|
|
12
|
+
import { t as GET_EDITOR_BUILDER_AVAILABLE_MODELS_ROUTE } from "./editor-builder-BayzCprJ.js";
|
|
13
13
|
import { CREATE_STORED_AGENT_ROUTE, GET_STORED_AGENT_ROUTE, LIST_STORED_AGENTS_ROUTE, UPDATE_STORED_AGENT_ROUTE } from "./server/handlers/stored-agents.js";
|
|
14
14
|
import { O as updateStoredAgentBodySchema, n as createStoredAgentBodySchema } from "./stored-agents-DmN_pIIl.js";
|
|
15
15
|
import { ErrorCategory, ErrorDomain, MastraError } from "@mastra/core/error";
|
|
@@ -3,7 +3,7 @@ const require_utils = require("./utils-j29NB2ZJ.cjs");
|
|
|
3
3
|
const require_http_exception = require("./http-exception-Co3MbFUf.cjs");
|
|
4
4
|
const require_conversations = require("./conversations-BVj0Dk2Q.cjs");
|
|
5
5
|
const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
|
|
6
|
-
const require_agents = require("./agents-
|
|
6
|
+
const require_agents = require("./agents-mjQZV5tv.cjs");
|
|
7
7
|
const require_server_handlers_error = require("./server/handlers/error.cjs");
|
|
8
8
|
const require_server_handlers_responses_adapter = require("./server/handlers/responses.adapter.cjs");
|
|
9
9
|
const require_server_handlers_responses_storage = require("./server/handlers/responses.storage.cjs");
|
|
@@ -3,7 +3,7 @@ import { _ as MastraFGAPermissions, g as validateThreadOwnership, i as getEffect
|
|
|
3
3
|
import { t as HTTPException } from "./http-exception-CzaWkxMl.js";
|
|
4
4
|
import { a as createConversationBodySchema, i as conversationObjectSchema, n as conversationIdPathParams, r as conversationItemsListSchema, t as conversationDeletedSchema } from "./conversations-DHrKTI6x.js";
|
|
5
5
|
import { n as createRoute } from "./route-builder-Dz18c3qm.js";
|
|
6
|
-
import { G as getAgentFromSystem } from "./agents-
|
|
6
|
+
import { G as getAgentFromSystem } from "./agents-272TP94y.js";
|
|
7
7
|
import { handleError } from "./server/handlers/error.js";
|
|
8
8
|
import { mapMastraMessagesToConversationItems } from "./server/handlers/responses.adapter.js";
|
|
9
9
|
import { findConversationThreadAcrossAgents, getAgentMemoryStore } from "./server/handlers/responses.storage.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as openai } from "./dist-Bp1bObAq.js";
|