@mastra/server 1.86.0-alpha.8 → 1.86.0-alpha.9
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-BfWMjFe2.js → a2a-CY7rgzPe.js} +1 -1
- package/dist/{a2a-DQIwTZyo.cjs → a2a-DwjvHqcb.cjs} +1 -1
- package/dist/{agent-builder-DpuK5-6A.js → agent-builder-DHnNRROR.js} +1 -1
- package/dist/{agent-builder-NSemjs4B.cjs → agent-builder-anRH1X35.cjs} +1 -1
- package/dist/{agents-YvaBPFiS.js → agents-CAXsXenf.js} +18 -0
- package/dist/{agents-BO1mcMDf.cjs → agents-GHhuyz5x.cjs} +18 -0
- package/dist/{api-schema-manifest-CAZsA5Lk.js → api-schema-manifest-4PK1dBWt.js} +1 -1
- package/dist/{api-schema-manifest-016lHJO2.cjs → api-schema-manifest-CX16hC7V.cjs} +1 -1
- package/dist/{auth-CM5AgF9l.cjs → auth-BR7vRIrY.cjs} +5 -3
- package/dist/{auth-CjT_a76k.js → auth-ChZ3dUvo.js} +5 -3
- package/dist/{catalogue-DN4dvU88.js → catalogue-BOzHZ1xt.js} +5 -5
- package/dist/{catalogue-Cf7Zz7zb.cjs → catalogue-DNy7Fog6.cjs} +5 -5
- package/dist/{conversations-4ZO0Pjvk.js → conversations-BjD8wOc3.js} +1 -1
- package/dist/{conversations-BaYtooZZ.cjs → conversations-CgogBOHO.cjs} +1 -1
- package/dist/dist-BWVxgpEw.js +1 -0
- package/dist/{dist-DaRCrkAU.cjs → dist-Brw_H26B.cjs} +296 -72
- package/dist/{dist-uiPbWl5E.cjs → dist-C5_WGwU1.cjs} +1 -1
- package/dist/{dist-yny1avqv.js → dist-NBGkHBIE.js} +296 -72
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-knowledge-overview.md +1 -1
- package/dist/{editor-builder-CwsIbd0F.js → editor-builder-BRzXnsRW.js} +1 -1
- package/dist/{editor-builder-ChYG8YTs.cjs → editor-builder-G1ub9j0s.cjs} +1 -1
- package/dist/{knowledge-DL03nbSW.cjs → knowledge-B3768ERP.cjs} +1 -0
- package/dist/{knowledge-DAqUHFK5.js → knowledge-wqC0nrmu.js} +1 -0
- package/dist/{plans-CbR8EDiT.js → plans-DGC1grMp.js} +1 -1
- package/dist/{plans-k3UN9Nd1.cjs → plans-kA8E3Auv.cjs} +1 -1
- package/dist/{probe-image-size-z8zXmjaH.cjs → probe-image-size-ntJyQKKB.cjs} +1 -1
- package/dist/{probe-image-size-DZvSdjzK.js → probe-image-size-zXQBlFaQ.js} +1 -1
- package/dist/{responses-Blzxy0XP.js → responses--nGf7l3O.js} +1 -1
- package/dist/{responses-B-BKx236.cjs → responses-B4GDz-Nm.cjs} +1 -1
- package/dist/{routes-D-I2voQe.js → routes-BZVlqLly.js} +12 -12
- package/dist/{routes-jiZyt9kU.cjs → routes-vuZLexcc.cjs} +12 -12
- package/dist/{scores-DAv6Uisq.js → scores-Biv7XGW_.js} +1 -1
- package/dist/{scores-BikU9phm.cjs → scores-D0Qq7TfU.cjs} +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/auth.cjs +6 -2
- package/dist/server/handlers/auth.d.ts +12 -4
- package/dist/server/handlers/auth.js +6 -2
- 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/error.cjs +1 -1
- package/dist/server/handlers/error.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 +1 -1
- package/dist/server/handlers/knowledge.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/schemas/auth.d.ts +3 -1
- package/dist/server/schemas/index.cjs +1 -1
- package/dist/server/schemas/index.js +1 -1
- package/dist/server/server-adapter/index.cjs +2 -2
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/server/server-adapter/routes/conversations.d.ts +3 -3
- package/dist/{server-adapter-BB2Lw2Ig.cjs → server-adapter-CurME3ch.cjs} +1 -1
- package/dist/{server-adapter-CMJcvkpD.js → server-adapter-h8YRQXAC.js} +1 -1
- package/dist/{tools-CoamSJif.cjs → tools-By0RVh_O.cjs} +1 -1
- package/dist/{tools-DsSk01Ti.js → tools-C3KBdlil.js} +1 -1
- package/dist/{voice-CquR7YyA.cjs → voice-CESew8Fc.cjs} +1 -1
- package/dist/{voice-BFh2Zx5m.js → voice-PfxY_vQg.js} +1 -1
- package/package.json +3 -3
- package/dist/dist-Bz6gINFc.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-CAXsXenf.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-GHhuyz5x.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-NBGkHBIE.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-Brw_H26B.cjs")).then((mod) => mod.createAgentBuilderWorkflows);
|
|
34
34
|
const create = await createAgentBuilderWorkflowsPromise;
|
|
35
35
|
let agentBuilderWorkflows = agentBuilderWorkflowsByMastra.get(mastra);
|
|
36
36
|
if (!agentBuilderWorkflows) {
|
|
@@ -1631,6 +1631,22 @@ const sendAgentSignalResponseSchema = z.object({
|
|
|
1631
1631
|
signal: z.unknown().optional()
|
|
1632
1632
|
});
|
|
1633
1633
|
/**
|
|
1634
|
+
* A `runId` target sends input to the thread that run is on, not the caller's, so the caller
|
|
1635
|
+
* must be allowed to act on that run under `validateRunOwnership`: with
|
|
1636
|
+
* `mapUserToResourceId`, a resource-scoped caller may only name its own runs and an unscoped
|
|
1637
|
+
* caller needs an FGA provider. A `runId` this process doesn't track can only reach the
|
|
1638
|
+
* caller's own thread, which `threadId` names and the thread check covers. Without a
|
|
1639
|
+
* `threadId`, a scoped caller gets the same denial whether or not the run exists, so the route
|
|
1640
|
+
* doesn't confirm live run ids.
|
|
1641
|
+
*/
|
|
1642
|
+
async function validateSignalRunOwnership(mastra, agent, runId, threadId, requestContext) {
|
|
1643
|
+
const contextResourceId = getContextResourceId(requestContext);
|
|
1644
|
+
const runtimeAgent = agent;
|
|
1645
|
+
const runTarget = typeof runtimeAgent.getThreadRunTarget === "function" ? runtimeAgent.getThreadRunTarget(runId) : runtimeAgent.listActiveThreadRuns?.().find((run) => run.runId === runId);
|
|
1646
|
+
if (runTarget) await validateRunOwnership(runTarget, contextResourceId, mastra, requestContext);
|
|
1647
|
+
else if (contextResourceId && !threadId) throw new HTTPException(403, { message: "Access denied: workflow run belongs to a different resource" });
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1634
1650
|
* Maps a rejected `result.accepted` (signal/message routing) to an HTTP error.
|
|
1635
1651
|
*
|
|
1636
1652
|
* `accepted` only rejects on a setup/misconfig failure surfaced before the run
|
|
@@ -1693,6 +1709,7 @@ const SEND_AGENT_SIGNAL_ROUTE = createRoute({
|
|
|
1693
1709
|
if (typeof agent.sendSignal !== "function") throw new HTTPException(501, { message: "agent signals are not supported by this Mastra core version" });
|
|
1694
1710
|
const agentSignal = signal;
|
|
1695
1711
|
if (runId) {
|
|
1712
|
+
await validateSignalRunOwnership(mastra, agent, runId, effectiveThreadId, serverRequestContext);
|
|
1696
1713
|
const result = await agent.sendSignal(agentSignal, {
|
|
1697
1714
|
runId,
|
|
1698
1715
|
...effectiveResourceId ? { resourceId: effectiveResourceId } : {},
|
|
@@ -1763,6 +1780,7 @@ async function handleAgentMessageRoute({ mastra, agentId, requestContext: server
|
|
|
1763
1780
|
}
|
|
1764
1781
|
if (typeof agent[methodName] !== "function") throw new HTTPException(501, { message: `agent ${methodName} is not supported by this Mastra core version` });
|
|
1765
1782
|
if (runId) {
|
|
1783
|
+
await validateSignalRunOwnership(mastra, agent, runId, effectiveThreadId, serverRequestContext);
|
|
1766
1784
|
const result = await invoke(agent, {
|
|
1767
1785
|
runId,
|
|
1768
1786
|
...effectiveResourceId ? { resourceId: effectiveResourceId } : {},
|
|
@@ -1631,6 +1631,22 @@ const sendAgentSignalResponseSchema = zod_v4.z.object({
|
|
|
1631
1631
|
signal: zod_v4.z.unknown().optional()
|
|
1632
1632
|
});
|
|
1633
1633
|
/**
|
|
1634
|
+
* A `runId` target sends input to the thread that run is on, not the caller's, so the caller
|
|
1635
|
+
* must be allowed to act on that run under `validateRunOwnership`: with
|
|
1636
|
+
* `mapUserToResourceId`, a resource-scoped caller may only name its own runs and an unscoped
|
|
1637
|
+
* caller needs an FGA provider. A `runId` this process doesn't track can only reach the
|
|
1638
|
+
* caller's own thread, which `threadId` names and the thread check covers. Without a
|
|
1639
|
+
* `threadId`, a scoped caller gets the same denial whether or not the run exists, so the route
|
|
1640
|
+
* doesn't confirm live run ids.
|
|
1641
|
+
*/
|
|
1642
|
+
async function validateSignalRunOwnership(mastra, agent, runId, threadId, requestContext) {
|
|
1643
|
+
const contextResourceId = require_utils$1.getContextResourceId(requestContext);
|
|
1644
|
+
const runtimeAgent = agent;
|
|
1645
|
+
const runTarget = typeof runtimeAgent.getThreadRunTarget === "function" ? runtimeAgent.getThreadRunTarget(runId) : runtimeAgent.listActiveThreadRuns?.().find((run) => run.runId === runId);
|
|
1646
|
+
if (runTarget) await require_utils$1.validateRunOwnership(runTarget, contextResourceId, mastra, requestContext);
|
|
1647
|
+
else if (contextResourceId && !threadId) throw new require_http_exception.HTTPException(403, { message: "Access denied: workflow run belongs to a different resource" });
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1634
1650
|
* Maps a rejected `result.accepted` (signal/message routing) to an HTTP error.
|
|
1635
1651
|
*
|
|
1636
1652
|
* `accepted` only rejects on a setup/misconfig failure surfaced before the run
|
|
@@ -1693,6 +1709,7 @@ const SEND_AGENT_SIGNAL_ROUTE = require_route_builder.createRoute({
|
|
|
1693
1709
|
if (typeof agent.sendSignal !== "function") throw new require_http_exception.HTTPException(501, { message: "agent signals are not supported by this Mastra core version" });
|
|
1694
1710
|
const agentSignal = signal;
|
|
1695
1711
|
if (runId) {
|
|
1712
|
+
await validateSignalRunOwnership(mastra, agent, runId, effectiveThreadId, serverRequestContext);
|
|
1696
1713
|
const result = await agent.sendSignal(agentSignal, {
|
|
1697
1714
|
runId,
|
|
1698
1715
|
...effectiveResourceId ? { resourceId: effectiveResourceId } : {},
|
|
@@ -1763,6 +1780,7 @@ async function handleAgentMessageRoute({ mastra, agentId, requestContext: server
|
|
|
1763
1780
|
}
|
|
1764
1781
|
if (typeof agent[methodName] !== "function") throw new require_http_exception.HTTPException(501, { message: `agent ${methodName} is not supported by this Mastra core version` });
|
|
1765
1782
|
if (runId) {
|
|
1783
|
+
await validateSignalRunOwnership(mastra, agent, runId, effectiveThreadId, serverRequestContext);
|
|
1766
1784
|
const result = await invoke(agent, {
|
|
1767
1785
|
runId,
|
|
1768
1786
|
...effectiveResourceId ? { resourceId: effectiveResourceId } : {},
|
|
@@ -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-BZVlqLly.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-vuZLexcc.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;
|
|
@@ -46,9 +46,11 @@ const authenticatedCapabilitiesSchema = publicCapabilitiesSchema.extend({
|
|
|
46
46
|
const capabilitiesResponseSchema = zod_v4.z.union([authenticatedCapabilitiesSchema, publicCapabilitiesSchema]);
|
|
47
47
|
const ssoLoginQuerySchema = zod_v4.z.object({ redirect_uri: zod_v4.z.string().optional() });
|
|
48
48
|
const ssoCallbackQuerySchema = zod_v4.z.object({
|
|
49
|
-
code: zod_v4.z.string(),
|
|
50
|
-
state: zod_v4.z.string().optional()
|
|
51
|
-
|
|
49
|
+
code: zod_v4.z.string().min(1).optional(),
|
|
50
|
+
state: zod_v4.z.string().optional(),
|
|
51
|
+
error: zod_v4.z.string().min(1).max(64).optional(),
|
|
52
|
+
error_description: zod_v4.z.string().max(256).optional()
|
|
53
|
+
}).refine((query) => Boolean(query.code) !== Boolean(query.error), { message: "Expected either an authorization code or an OAuth error, but not both" });
|
|
52
54
|
const ssoLoginResponseSchema = zod_v4.z.object({ url: zod_v4.z.string() });
|
|
53
55
|
const ssoCallbackResponseSchema = zod_v4.z.object({
|
|
54
56
|
success: zod_v4.z.boolean(),
|
|
@@ -46,9 +46,11 @@ const authenticatedCapabilitiesSchema = publicCapabilitiesSchema.extend({
|
|
|
46
46
|
const capabilitiesResponseSchema = z.union([authenticatedCapabilitiesSchema, publicCapabilitiesSchema]);
|
|
47
47
|
const ssoLoginQuerySchema = z.object({ redirect_uri: z.string().optional() });
|
|
48
48
|
const ssoCallbackQuerySchema = z.object({
|
|
49
|
-
code: z.string(),
|
|
50
|
-
state: z.string().optional()
|
|
51
|
-
|
|
49
|
+
code: z.string().min(1).optional(),
|
|
50
|
+
state: z.string().optional(),
|
|
51
|
+
error: z.string().min(1).max(64).optional(),
|
|
52
|
+
error_description: z.string().max(256).optional()
|
|
53
|
+
}).refine((query) => Boolean(query.code) !== Boolean(query.error), { message: "Expected either an authorization code or an OAuth error, but not both" });
|
|
52
54
|
const ssoLoginResponseSchema = z.object({ url: z.string() });
|
|
53
55
|
const ssoCallbackResponseSchema = z.object({
|
|
54
56
|
success: z.boolean(),
|
|
@@ -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-CAXsXenf.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-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-D5bfbang.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-h8YRQXAC.js";
|
|
7
|
+
import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-BZVlqLly.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";
|
|
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-BRzXnsRW.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-DcyDMKP2.js";
|
|
15
15
|
import { ErrorCategory, ErrorDomain, MastraError } from "@mastra/core/error";
|
|
@@ -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-GHhuyz5x.cjs");
|
|
5
|
+
const require_tools = require("./tools-By0RVh_O.cjs");
|
|
6
6
|
const require_workflows = require("./workflows-CHKSHV4f.cjs");
|
|
7
|
-
const require_server_adapter = require("./server-adapter-
|
|
8
|
-
const require_routes = require("./routes-
|
|
7
|
+
const require_server_adapter = require("./server-adapter-CurME3ch.cjs");
|
|
8
|
+
const require_routes = require("./routes-vuZLexcc.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");
|
|
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-G1ub9j0s.cjs");
|
|
14
14
|
const require_server_handlers_stored_agents = require("./server/handlers/stored-agents.cjs");
|
|
15
15
|
const require_stored_agents = require("./stored-agents-BS4_LGSs.cjs");
|
|
16
16
|
let _mastra_core_error = require("@mastra/core/error");
|
|
@@ -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-CAXsXenf.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";
|
|
@@ -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-GHhuyz5x.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");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as openai } from "./dist-NBGkHBIE.js";
|