@mastra/server 1.75.0-alpha.5 → 1.75.0-alpha.8
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/{agents-kOz1lr_e.js → agents-BuKPiseS.js} +4 -2
- package/dist/agents-BuKPiseS.js.map +1 -0
- package/dist/{agents-DwJE1tsB.cjs → agents-COAEoXsc.cjs} +4 -2
- package/dist/agents-COAEoXsc.cjs.map +1 -0
- package/dist/{api-schema-manifest-BKsEMyEs.cjs → api-schema-manifest-D_esmkjG.cjs} +2 -2
- package/dist/{api-schema-manifest-BKsEMyEs.cjs.map → api-schema-manifest-D_esmkjG.cjs.map} +1 -1
- package/dist/{api-schema-manifest-KsETdHDS.js → api-schema-manifest-I5zotQbd.js} +2 -2
- package/dist/{api-schema-manifest-KsETdHDS.js.map → api-schema-manifest-I5zotQbd.js.map} +1 -1
- package/dist/{dist-DWXEVDmb.js → dist-DMtuYRLk.js} +176 -87
- package/dist/dist-DMtuYRLk.js.map +1 -0
- package/dist/{dist-DRLe8Sd-.cjs → dist-DpUNsgQx.cjs} +176 -87
- package/dist/dist-DpUNsgQx.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{editor-builder-BLi1jvZd.js → editor-builder-CdLGv1Ka.js} +2 -2
- package/dist/{editor-builder-BLi1jvZd.js.map → editor-builder-CdLGv1Ka.js.map} +1 -1
- package/dist/{editor-builder-Dm6jviKJ.cjs → editor-builder-DJl5x_Kj.cjs} +2 -2
- package/dist/{editor-builder-Dm6jviKJ.cjs.map → editor-builder-DJl5x_Kj.cjs.map} +1 -1
- package/dist/{editor-builder-DrDs-t9i.cjs → editor-builder-DRlsFCN0.cjs} +2 -2
- package/dist/{editor-builder-DrDs-t9i.cjs.map → editor-builder-DRlsFCN0.cjs.map} +1 -1
- package/dist/{editor-builder-DJMAKDR5.js → editor-builder-DU3y5Ant.js} +2 -2
- package/dist/{editor-builder-DJMAKDR5.js.map → editor-builder-DU3y5Ant.js.map} +1 -1
- package/dist/{mcp-CzeJPT9B.js → mcp-BK6cmwww.js} +4 -2
- package/dist/{mcp-CzeJPT9B.js.map → mcp-BK6cmwww.js.map} +1 -1
- package/dist/{mcp-PvdJ7pkd.cjs → mcp-Jus386Vq.cjs} +4 -2
- package/dist/mcp-Jus386Vq.cjs.map +1 -0
- package/dist/{observability-new-endpoints-Kphyk3do.cjs → observability-new-endpoints-DBmaTpap.cjs} +2 -2
- package/dist/{observability-new-endpoints-Kphyk3do.cjs.map → observability-new-endpoints-DBmaTpap.cjs.map} +1 -1
- package/dist/{observability-new-endpoints-DQuhr8aL.js → observability-new-endpoints-wd_fs1mo.js} +2 -2
- package/dist/{observability-new-endpoints-DQuhr8aL.js.map → observability-new-endpoints-wd_fs1mo.js.map} +1 -1
- package/dist/{probe-image-size-CDCRrXNo.cjs → probe-image-size-DBGjhUtJ.cjs} +111 -161
- package/dist/probe-image-size-DBGjhUtJ.cjs.map +1 -0
- package/dist/{probe-image-size-Tf8sNZhU.js → probe-image-size-Dmoxv93t.js} +111 -161
- package/dist/probe-image-size-Dmoxv93t.js.map +1 -0
- package/dist/{routes-B_ehFjzs.js → routes-CdEBhq8U.js} +4 -4
- package/dist/{routes-B_ehFjzs.js.map → routes-CdEBhq8U.js.map} +1 -1
- package/dist/{routes-Op7uJGai.cjs → routes-CjpyDJjY.cjs} +4 -4
- package/dist/{routes-Op7uJGai.cjs.map → routes-CjpyDJjY.cjs.map} +1 -1
- package/dist/server/handlers/agent-builder.cjs +2 -2
- package/dist/server/handlers/agent-builder.js +2 -2
- package/dist/server/handlers/agent-controller.cjs +12 -9
- package/dist/server/handlers/agent-controller.cjs.map +1 -1
- package/dist/server/handlers/agent-controller.d.ts +8 -6
- package/dist/server/handlers/agent-controller.d.ts.map +1 -1
- package/dist/server/handlers/agent-controller.js +12 -9
- package/dist/server/handlers/agent-controller.js.map +1 -1
- package/dist/server/handlers/agents.cjs +1 -1
- package/dist/server/handlers/agents.d.ts +448 -0
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/editor-builder.cjs +1 -1
- package/dist/server/handlers/editor-builder.js +1 -1
- package/dist/server/handlers/favorites-enrichment.cjs +1 -1
- package/dist/server/handlers/favorites-enrichment.js +1 -1
- package/dist/server/handlers/mcp.cjs +1 -1
- package/dist/server/handlers/mcp.d.ts +4 -0
- package/dist/server/handlers/mcp.d.ts.map +1 -1
- package/dist/server/handlers/mcp.js +1 -1
- package/dist/server/handlers/observability-new-endpoints.cjs +1 -1
- package/dist/server/handlers/observability-new-endpoints.js +1 -1
- package/dist/server/handlers/observability.cjs +1 -1
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/plans.cjs +1 -1
- package/dist/server/handlers/plans.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 +5 -2
- package/dist/server/handlers/system.cjs.map +1 -1
- package/dist/server/handlers/system.d.ts +2 -0
- package/dist/server/handlers/system.d.ts.map +1 -1
- package/dist/server/handlers/system.js +5 -2
- package/dist/server/handlers/system.js.map +1 -1
- package/dist/server/handlers/tools.cjs +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/workflow-builder.cjs +1 -1
- package/dist/server/handlers/workflow-builder.js +1 -1
- package/dist/server/handlers/workflows.cjs +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/schemas/agents.d.ts +4 -0
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +4 -4
- package/dist/server/schemas/index.js +4 -4
- package/dist/server/schemas/mcp.d.ts +4 -0
- package/dist/server/schemas/mcp.d.ts.map +1 -1
- package/dist/server/schemas/system.d.ts +1 -0
- package/dist/server/schemas/system.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +1 -1
- package/dist/server/server-adapter/index.js +1 -1
- package/dist/server/server-adapter/routes/mcp.d.ts +4 -0
- package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/system.d.ts +2 -0
- package/dist/server/server-adapter/routes/system.d.ts.map +1 -1
- package/dist/{sync-BG15Yae1.js → sync-Ai_ZDz7U.js} +176 -132
- package/dist/sync-Ai_ZDz7U.js.map +1 -0
- package/dist/{sync-C4LbbSKR.cjs → sync-BrO5MtSe.cjs} +181 -131
- package/dist/sync-BrO5MtSe.cjs.map +1 -0
- package/dist/{system-Be5n6H_z.cjs → system-CycnKGR3.cjs} +3 -1
- package/dist/system-CycnKGR3.cjs.map +1 -0
- package/dist/{system-BtGAJr9R.js → system-Di2kpGTC.js} +3 -1
- package/dist/system-Di2kpGTC.js.map +1 -0
- package/dist/{workflow-builder-BSjQJCVD.cjs → workflow-builder-DYfgyaeB.cjs} +3 -3
- package/dist/{workflow-builder-BSjQJCVD.cjs.map → workflow-builder-DYfgyaeB.cjs.map} +1 -1
- package/dist/{workflow-builder-DJ48IzXQ.js → workflow-builder-DxQMzsT9.js} +3 -3
- package/dist/{workflow-builder-DJ48IzXQ.js.map → workflow-builder-DxQMzsT9.js.map} +1 -1
- package/package.json +6 -6
- package/dist/agents-DwJE1tsB.cjs.map +0 -1
- package/dist/agents-kOz1lr_e.js.map +0 -1
- package/dist/dist-DRLe8Sd-.cjs.map +0 -1
- package/dist/dist-DWXEVDmb.js.map +0 -1
- package/dist/mcp-PvdJ7pkd.cjs.map +0 -1
- package/dist/probe-image-size-CDCRrXNo.cjs.map +0 -1
- package/dist/probe-image-size-Tf8sNZhU.js.map +0 -1
- package/dist/sync-BG15Yae1.js.map +0 -1
- package/dist/sync-C4LbbSKR.cjs.map +0 -1
- package/dist/system-Be5n6H_z.cjs.map +0 -1
- package/dist/system-BtGAJr9R.js.map +0 -1
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_rolldown_runtime = require("../../rolldown-runtime-Bd6kNlEP.cjs");
|
|
3
3
|
const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
|
|
4
4
|
const require_route_builder = require("../../route-builder-2yrD15TL.cjs");
|
|
5
|
-
const require_mcp = require("../../mcp-
|
|
5
|
+
const require_mcp = require("../../mcp-Jus386Vq.cjs");
|
|
6
6
|
let _mastra_core_error = require("@mastra/core/error");
|
|
7
7
|
//#region src/server/handlers/mcp.ts
|
|
8
8
|
var mcp_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
@@ -315,6 +315,8 @@ export declare const READ_MCP_SERVER_RESOURCE_ROUTE: Omit<import("@mastra/core/s
|
|
|
315
315
|
uri: string;
|
|
316
316
|
text?: string | undefined;
|
|
317
317
|
blob?: string | undefined;
|
|
318
|
+
mimeType?: string | undefined;
|
|
319
|
+
_meta?: Record<string, unknown> | undefined;
|
|
318
320
|
}[];
|
|
319
321
|
}>;
|
|
320
322
|
pathParamSchema?: import("zod").ZodSchema;
|
|
@@ -336,6 +338,8 @@ export declare const READ_MCP_SERVER_RESOURCE_ROUTE: Omit<import("@mastra/core/s
|
|
|
336
338
|
uri: import("zod").ZodString;
|
|
337
339
|
text: import("zod").ZodOptional<import("zod").ZodString>;
|
|
338
340
|
blob: import("zod").ZodOptional<import("zod").ZodString>;
|
|
341
|
+
mimeType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
|
+
_meta: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
339
343
|
}, import("zod/v4/core").$strip>>;
|
|
340
344
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
341
345
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/mcp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,IAAI,6BAA6B,EAE9C,UAAU,EACX,MAAM,kBAAkB,CAAC;AAmB1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAepE,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,8FAA8F;IAC9F,UAAU,EAAE,kBAAkB,EAAE,CAAC;CAClC;AAMD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFjC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC3C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkExC,CAAC;AAMH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B1C,CAAC;AAEH,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/mcp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,IAAI,6BAA6B,EAE9C,UAAU,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EAAE,6BAA6B,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,4FAA4F;IAC5F,MAAM,EAAE,6BAA6B,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;CAyBnC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;CA8BlC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;CAUjC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "../../rolldown-runtime-maW3aOIk.js";
|
|
2
2
|
import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
|
|
3
3
|
import { n as createRoute } from "../../route-builder-lBil8Cvo.js";
|
|
4
|
-
import { a as listMcpServerToolsResponseSchema, c as listResourcesResponseSchema, d as mcpServerResourcePathParams, f as mcpServerToolPathParams, g as serverDetailSchema, h as readResourceResponseSchema, l as mcpServerDetailPathParams, m as readResourceBodySchema, n as executeToolResponseSchema, o as listMcpServersQuerySchema, p as mcpToolInfoSchema, r as getMcpServerDetailQuerySchema, s as listMcpServersResponseSchema, t as executeToolBodySchema, u as mcpServerIdPathParams } from "../../mcp-
|
|
4
|
+
import { a as listMcpServerToolsResponseSchema, c as listResourcesResponseSchema, d as mcpServerResourcePathParams, f as mcpServerToolPathParams, g as serverDetailSchema, h as readResourceResponseSchema, l as mcpServerDetailPathParams, m as readResourceBodySchema, n as executeToolResponseSchema, o as listMcpServersQuerySchema, p as mcpToolInfoSchema, r as getMcpServerDetailQuerySchema, s as listMcpServersResponseSchema, t as executeToolBodySchema, u as mcpServerIdPathParams } from "../../mcp-BK6cmwww.js";
|
|
5
5
|
import { MastraError } from "@mastra/core/error";
|
|
6
6
|
//#region src/server/handlers/mcp.ts
|
|
7
7
|
var mcp_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../rolldown-runtime-Bd6kNlEP.cjs");
|
|
3
|
-
const require_observability_new_endpoints = require("../../observability-new-endpoints-
|
|
3
|
+
const require_observability_new_endpoints = require("../../observability-new-endpoints-DBmaTpap.cjs");
|
|
4
4
|
exports.AGGREGATE_TRACES = require_observability_new_endpoints.AGGREGATE_TRACES;
|
|
5
5
|
exports.CREATE_FEEDBACK = require_observability_new_endpoints.CREATE_FEEDBACK;
|
|
6
6
|
exports.CREATE_SCORE = require_observability_new_endpoints.CREATE_SCORE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LIST_FEEDBACK, C as GET_SCORE_BREAKDOWN, D as GET_TAGS, E as GET_SERVICE_NAMES, F as QUERY_SPANS, I as QUERY_THREADS, L as QUERY_TRACES, M as LIST_METRICS, N as LIST_SCORES, O as GET_TRACE_QUERY_FIELDS, P as NEW_ROUTES, R as UPDATE_FEEDBACK_REVIEW_STATUS, S as GET_SCORE_AGGREGATE, T as GET_SCORE_TIME_SERIES, _ as GET_METRIC_LABEL_VALUES, a as DELETE_SCORES, b as GET_METRIC_TIME_SERIES, c as GET_ENTITY_TYPES, d as GET_FEEDBACK_BREAKDOWN, f as GET_FEEDBACK_PERCENTILES, g as GET_METRIC_LABEL_KEYS, h as GET_METRIC_BREAKDOWN, i as DELETE_FEEDBACK, j as LIST_LOGS, k as GET_TRACE_QUERY_VALUES, l as GET_ENVIRONMENTS, m as GET_METRIC_AGGREGATE, n as CREATE_FEEDBACK, o as GET_CAPABILITIES, p as GET_FEEDBACK_TIME_SERIES, r as CREATE_SCORE, s as GET_ENTITY_NAMES, t as AGGREGATE_TRACES, u as GET_FEEDBACK_AGGREGATE, v as GET_METRIC_NAMES, w as GET_SCORE_PERCENTILES, x as GET_SCORE, y as GET_METRIC_PERCENTILES } from "../../observability-new-endpoints-
|
|
1
|
+
import { A as LIST_FEEDBACK, C as GET_SCORE_BREAKDOWN, D as GET_TAGS, E as GET_SERVICE_NAMES, F as QUERY_SPANS, I as QUERY_THREADS, L as QUERY_TRACES, M as LIST_METRICS, N as LIST_SCORES, O as GET_TRACE_QUERY_FIELDS, P as NEW_ROUTES, R as UPDATE_FEEDBACK_REVIEW_STATUS, S as GET_SCORE_AGGREGATE, T as GET_SCORE_TIME_SERIES, _ as GET_METRIC_LABEL_VALUES, a as DELETE_SCORES, b as GET_METRIC_TIME_SERIES, c as GET_ENTITY_TYPES, d as GET_FEEDBACK_BREAKDOWN, f as GET_FEEDBACK_PERCENTILES, g as GET_METRIC_LABEL_KEYS, h as GET_METRIC_BREAKDOWN, i as DELETE_FEEDBACK, j as LIST_LOGS, k as GET_TRACE_QUERY_VALUES, l as GET_ENVIRONMENTS, m as GET_METRIC_AGGREGATE, n as CREATE_FEEDBACK, o as GET_CAPABILITIES, p as GET_FEEDBACK_TIME_SERIES, r as CREATE_SCORE, s as GET_ENTITY_NAMES, t as AGGREGATE_TRACES, u as GET_FEEDBACK_AGGREGATE, v as GET_METRIC_NAMES, w as GET_SCORE_PERCENTILES, x as GET_SCORE, y as GET_METRIC_PERCENTILES } from "../../observability-new-endpoints-wd_fs1mo.js";
|
|
2
2
|
export { AGGREGATE_TRACES, CREATE_FEEDBACK, CREATE_SCORE, DELETE_FEEDBACK, DELETE_SCORES, GET_CAPABILITIES, GET_ENTITY_NAMES, GET_ENTITY_TYPES, GET_ENVIRONMENTS, GET_FEEDBACK_AGGREGATE, GET_FEEDBACK_BREAKDOWN, GET_FEEDBACK_PERCENTILES, GET_FEEDBACK_TIME_SERIES, GET_METRIC_AGGREGATE, GET_METRIC_BREAKDOWN, GET_METRIC_LABEL_KEYS, GET_METRIC_LABEL_VALUES, GET_METRIC_NAMES, GET_METRIC_PERCENTILES, GET_METRIC_TIME_SERIES, GET_SCORE, GET_SCORE_AGGREGATE, GET_SCORE_BREAKDOWN, GET_SCORE_PERCENTILES, GET_SCORE_TIME_SERIES, GET_SERVICE_NAMES, GET_TAGS, GET_TRACE_QUERY_FIELDS, GET_TRACE_QUERY_VALUES, LIST_FEEDBACK, LIST_LOGS, LIST_METRICS, LIST_SCORES, NEW_ROUTES, QUERY_SPANS, QUERY_THREADS, QUERY_TRACES, UPDATE_FEEDBACK_REVIEW_STATUS };
|
|
@@ -6,7 +6,7 @@ const require_server_handlers_error = require("./error.cjs");
|
|
|
6
6
|
const require_server_handlers_observability_list_query_schemas = require("./observability-list-query-schemas.cjs");
|
|
7
7
|
const require_server_handlers_observability_shared = require("./observability-shared.cjs");
|
|
8
8
|
const require_server_handlers_observability_storage_schemas = require("./observability-storage-schemas.cjs");
|
|
9
|
-
const require_observability_new_endpoints = require("../../observability-new-endpoints-
|
|
9
|
+
const require_observability_new_endpoints = require("../../observability-new-endpoints-DBmaTpap.cjs");
|
|
10
10
|
let zod_v4 = require("zod/v4");
|
|
11
11
|
let _mastra_core_evals = require("@mastra/core/evals");
|
|
12
12
|
let _mastra_core_evals_scoreTraces = require("@mastra/core/evals/scoreTraces");
|
|
@@ -5,7 +5,7 @@ import { handleError } from "./error.js";
|
|
|
5
5
|
import { paginationArgsSchema } from "./observability-list-query-schemas.js";
|
|
6
6
|
import { OBSERVABILITY_LIST_ENDPOINTS, assertObservabilityDeltaSupported, createObservabilityListQuerySchema, getObservabilityStore, getScoresStore, getStorage } from "./observability-shared.js";
|
|
7
7
|
import { batchDeleteTracesArgsSchema, batchDeleteTracesResponseSchema, branchesFilterSchema, branchesOrderBySchema, getBranchArgsSchema, getBranchResponseSchema, listBranchesResponseSchema, listTracesLightResponseSchema } from "./observability-storage-schemas.js";
|
|
8
|
-
import { A as LIST_FEEDBACK, C as GET_SCORE_BREAKDOWN, D as GET_TAGS, E as GET_SERVICE_NAMES, F as QUERY_SPANS, I as QUERY_THREADS, L as QUERY_TRACES, M as LIST_METRICS, N as LIST_SCORES, O as GET_TRACE_QUERY_FIELDS, P as NEW_ROUTES, R as UPDATE_FEEDBACK_REVIEW_STATUS, S as GET_SCORE_AGGREGATE, T as GET_SCORE_TIME_SERIES, _ as GET_METRIC_LABEL_VALUES, a as DELETE_SCORES, b as GET_METRIC_TIME_SERIES, c as GET_ENTITY_TYPES, d as GET_FEEDBACK_BREAKDOWN, f as GET_FEEDBACK_PERCENTILES, g as GET_METRIC_LABEL_KEYS, h as GET_METRIC_BREAKDOWN, i as DELETE_FEEDBACK, j as LIST_LOGS, k as GET_TRACE_QUERY_VALUES, l as GET_ENVIRONMENTS, m as GET_METRIC_AGGREGATE, n as CREATE_FEEDBACK, o as GET_CAPABILITIES, p as GET_FEEDBACK_TIME_SERIES, r as CREATE_SCORE, s as GET_ENTITY_NAMES, t as AGGREGATE_TRACES, u as GET_FEEDBACK_AGGREGATE, v as GET_METRIC_NAMES, w as GET_SCORE_PERCENTILES, x as GET_SCORE, y as GET_METRIC_PERCENTILES } from "../../observability-new-endpoints-
|
|
8
|
+
import { A as LIST_FEEDBACK, C as GET_SCORE_BREAKDOWN, D as GET_TAGS, E as GET_SERVICE_NAMES, F as QUERY_SPANS, I as QUERY_THREADS, L as QUERY_TRACES, M as LIST_METRICS, N as LIST_SCORES, O as GET_TRACE_QUERY_FIELDS, P as NEW_ROUTES, R as UPDATE_FEEDBACK_REVIEW_STATUS, S as GET_SCORE_AGGREGATE, T as GET_SCORE_TIME_SERIES, _ as GET_METRIC_LABEL_VALUES, a as DELETE_SCORES, b as GET_METRIC_TIME_SERIES, c as GET_ENTITY_TYPES, d as GET_FEEDBACK_BREAKDOWN, f as GET_FEEDBACK_PERCENTILES, g as GET_METRIC_LABEL_KEYS, h as GET_METRIC_BREAKDOWN, i as DELETE_FEEDBACK, j as LIST_LOGS, k as GET_TRACE_QUERY_VALUES, l as GET_ENVIRONMENTS, m as GET_METRIC_AGGREGATE, n as CREATE_FEEDBACK, o as GET_CAPABILITIES, p as GET_FEEDBACK_TIME_SERIES, r as CREATE_SCORE, s as GET_ENTITY_NAMES, t as AGGREGATE_TRACES, u as GET_FEEDBACK_AGGREGATE, v as GET_METRIC_NAMES, w as GET_SCORE_PERCENTILES, x as GET_SCORE, y as GET_METRIC_PERCENTILES } from "../../observability-new-endpoints-wd_fs1mo.js";
|
|
9
9
|
import { z } from "zod/v4";
|
|
10
10
|
import { extractTrajectoryFromTrace, listScoresResponseSchema } from "@mastra/core/evals";
|
|
11
11
|
import { scoreTraces } from "@mastra/core/evals/scoreTraces";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("../../rolldown-runtime-Bd6kNlEP.cjs");
|
|
3
3
|
const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
|
|
4
|
-
const require_agents = require("../../agents-
|
|
4
|
+
const require_agents = require("../../agents-COAEoXsc.cjs");
|
|
5
5
|
const require_route_builder = require("../../route-builder-2yrD15TL.cjs");
|
|
6
6
|
const require_server_handlers_error = require("./error.cjs");
|
|
7
7
|
const require_utils = require("../../utils-HqDZJwRc.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __exportAll } from "../../rolldown-runtime-maW3aOIk.js";
|
|
2
2
|
import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
|
|
3
|
-
import { a as agentIdPathParams, o as agentPlanQuerySchema, s as agentPlanResponseSchema } from "../../agents-
|
|
3
|
+
import { a as agentIdPathParams, o as agentPlanQuerySchema, s as agentPlanResponseSchema } from "../../agents-BuKPiseS.js";
|
|
4
4
|
import { n as createRoute } from "../../route-builder-lBil8Cvo.js";
|
|
5
5
|
import { handleError } from "./error.js";
|
|
6
6
|
import { m as MastraFGAPermissions } from "../../utils-KcHk7C0D.js";
|
|
@@ -6,7 +6,7 @@ const require_utils = require("../../utils-DFQixxkO.cjs");
|
|
|
6
6
|
const require_server_handlers_error = require("./error.cjs");
|
|
7
7
|
const require_stored_agents = require("../../stored-agents-DpY3ssfx.cjs");
|
|
8
8
|
const require_server_handlers_authorship = require("./authorship.cjs");
|
|
9
|
-
const require_editor_builder = require("../../editor-builder-
|
|
9
|
+
const require_editor_builder = require("../../editor-builder-DRlsFCN0.cjs");
|
|
10
10
|
const require_favorites = require("../../favorites-D1-AzGsK.cjs");
|
|
11
11
|
//#region src/server/handlers/stored-agent-favorites.ts
|
|
12
12
|
/**
|
|
@@ -4,7 +4,7 @@ import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../
|
|
|
4
4
|
import { handleError } from "./error.js";
|
|
5
5
|
import { C as storedAgentIdPathParams } from "../../stored-agents-BzIvRgtz.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-DU3y5Ant.js";
|
|
8
8
|
import { t as favoriteToggleResponseSchema } from "../../favorites-DWDyKxts.js";
|
|
9
9
|
//#region src/server/handlers/stored-agent-favorites.ts
|
|
10
10
|
/**
|
|
@@ -10,7 +10,7 @@ const require_server_handlers_author_enrichment = require("./author-enrichment.c
|
|
|
10
10
|
const require_server_handlers_authorship = require("./authorship.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-DRlsFCN0.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
|
//#region src/server/handlers/stored-agents.ts
|
|
@@ -8,7 +8,7 @@ import { attachAuthor, prepareAuthorEnrichment } from "./author-enrichment.js";
|
|
|
8
8
|
import { assertReadAccess, assertWriteAccess, getCallerAuthorId, matchesAuthorFilter, resolveAuthorFilter } from "./authorship.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-DU3y5Ant.js";
|
|
12
12
|
import { enrichOrStripFavorites, prepareFavoritesEnrichment, stripFavoriteFields } from "./favorites-enrichment.js";
|
|
13
13
|
import { validateMetadataAvatarUrl } from "./validate-avatar.js";
|
|
14
14
|
//#region src/server/handlers/stored-agents.ts
|
|
@@ -5,7 +5,7 @@ const require_route_builder = require("../../route-builder-2yrD15TL.cjs");
|
|
|
5
5
|
const require_utils = require("../../utils-DFQixxkO.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-DRlsFCN0.cjs");
|
|
9
9
|
const require_favorites = require("../../favorites-D1-AzGsK.cjs");
|
|
10
10
|
const require_stored_skills = require("../../stored-skills-DizSy0Pb.cjs");
|
|
11
11
|
//#region src/server/handlers/stored-skill-favorites.ts
|
|
@@ -3,7 +3,7 @@ import { n as createRoute } from "../../route-builder-lBil8Cvo.js";
|
|
|
3
3
|
import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-BJm0ZYnM.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-DU3y5Ant.js";
|
|
7
7
|
import { t as favoriteToggleResponseSchema } from "../../favorites-DWDyKxts.js";
|
|
8
8
|
import { p as storedSkillIdPathParams } from "../../stored-skills-BSwEeGJ9.js";
|
|
9
9
|
//#region src/server/handlers/stored-skill-favorites.ts
|
|
@@ -5,7 +5,7 @@ const require_route_builder = require("../../route-builder-2yrD15TL.cjs");
|
|
|
5
5
|
const require_utils = require("../../utils-DFQixxkO.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-DRlsFCN0.cjs");
|
|
9
9
|
const require_server_handlers_favorites_enrichment = require("./favorites-enrichment.cjs");
|
|
10
10
|
const require_stored_skills = require("../../stored-skills-DizSy0Pb.cjs");
|
|
11
11
|
let _mastra_core_workspace = require("@mastra/core/workspace");
|
|
@@ -3,7 +3,7 @@ import { n as createRoute } from "../../route-builder-lBil8Cvo.js";
|
|
|
3
3
|
import { c as toSlug, i as getStoredResourceScope, n as assertStoredResourceScope, s as scopeStoredResourceMetadata } from "../../utils-BJm0ZYnM.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-DU3y5Ant.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-BSwEeGJ9.js";
|
|
9
9
|
import { LocalSkillSource } from "@mastra/core/workspace";
|
|
@@ -3,11 +3,12 @@ require("../../rolldown-runtime-Bd6kNlEP.cjs");
|
|
|
3
3
|
const require_route_builder = require("../../route-builder-2yrD15TL.cjs");
|
|
4
4
|
const require_server_handlers_error = require("./error.cjs");
|
|
5
5
|
const require_server_handlers_observability_shared = require("./observability-shared.cjs");
|
|
6
|
-
const require_system = require("../../system-
|
|
6
|
+
const require_system = require("../../system-CycnKGR3.cjs");
|
|
7
7
|
let fs = require("fs");
|
|
8
8
|
//#region src/server/handlers/system.ts
|
|
9
9
|
const SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS = 3e3;
|
|
10
10
|
const LIVEKIT_CONNECTION_DETAILS_PATH = "/voice/livekit/connection-details";
|
|
11
|
+
const LIVEKIT_RECORDING_PATH = "/voice/livekit/recordings/:traceId";
|
|
11
12
|
async function getSourceProviderCapabilities(getCapabilities) {
|
|
12
13
|
let timeout;
|
|
13
14
|
try {
|
|
@@ -89,7 +90,7 @@ const GET_API_SCHEMA_ROUTE = require_route_builder.createRoute({
|
|
|
89
90
|
tags: ["System"],
|
|
90
91
|
requiresAuth: true,
|
|
91
92
|
handler: async () => {
|
|
92
|
-
const { buildApiSchemaManifest } = await Promise.resolve().then(() => require("../../api-schema-manifest-
|
|
93
|
+
const { buildApiSchemaManifest } = await Promise.resolve().then(() => require("../../api-schema-manifest-D_esmkjG.cjs"));
|
|
93
94
|
return buildApiSchemaManifest();
|
|
94
95
|
}
|
|
95
96
|
});
|
|
@@ -123,11 +124,13 @@ const GET_SYSTEM_PACKAGES_ROUTE = require_route_builder.createRoute({
|
|
|
123
124
|
const editorSource = editor?.getSource?.();
|
|
124
125
|
const editorSourceCapabilities = editor ? await getEditorSourceCapabilities(editor) : void 0;
|
|
125
126
|
const liveKitConnectionRouteEnabled = mastra.getServer()?.apiRoutes?.some((route) => route.method === "POST" && route.path === LIVEKIT_CONNECTION_DETAILS_PATH) ?? false;
|
|
127
|
+
const liveKitRecordingRouteEnabled = mastra.getServer()?.apiRoutes?.some((route) => route.method === "GET" && route.path === LIVEKIT_RECORDING_PATH);
|
|
126
128
|
return {
|
|
127
129
|
packages,
|
|
128
130
|
isDev: process.env.MASTRA_DEV === "true",
|
|
129
131
|
cmsEnabled: !!editor,
|
|
130
132
|
liveKitConnectionRouteEnabled,
|
|
133
|
+
...liveKitRecordingRouteEnabled ? { liveKitRecordingRouteEnabled: true } : {},
|
|
131
134
|
editorSource,
|
|
132
135
|
editorSourceCapabilities,
|
|
133
136
|
observabilityEnabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.cjs","names":["createRoute","apiSchemaManifestResponseSchema","systemPackagesResponseSchema","getObservabilityStorageCapabilities","handleError"],"sources":["../../../src/server/handlers/system.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\n\nimport type { MastraPackage } from '../schemas/system';\nimport { apiSchemaManifestResponseSchema, systemPackagesResponseSchema } from '../schemas/system';\nimport { createRoute } from '../server-adapter/routes/route-builder';\nimport { handleError } from './error';\nimport { getObservabilityStorageCapabilities } from './observability-shared';\n\nconst SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS = 3000;\n\n// Default path of liveKitConnectionRoute() from @mastra/livekit — the exact route Studio posts to.\nconst LIVEKIT_CONNECTION_DETAILS_PATH = '/voice/livekit/connection-details';\n\nasync function getSourceProviderCapabilities(\n getCapabilities: () => Promise<{\n canWrite: boolean;\n canOpenChangeRequest: boolean;\n reason?: string;\n }>,\n) {\n let timeout: ReturnType<typeof setTimeout> | undefined;\n try {\n return await Promise.race([\n getCapabilities(),\n new Promise<never>((_, reject) => {\n timeout = setTimeout(\n () => reject(new Error('Source provider capabilities timed out')),\n SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS,\n );\n }),\n ]);\n } finally {\n if (timeout) clearTimeout(timeout);\n }\n}\n\nasync function getEditorSourceCapabilities(editor: {\n getSource?: () => 'code' | 'db' | undefined;\n getSourceControlProvider?: () =>\n | {\n id: string;\n displayName: string;\n getCapabilities: () => Promise<{\n canWrite: boolean;\n canOpenChangeRequest: boolean;\n reason?: string;\n }>;\n }\n | undefined;\n}) {\n const editorSource = editor.getSource?.();\n if (!editorSource) return undefined;\n\n if (editorSource === 'db') {\n return {\n source: editorSource,\n storage: 'database' as const,\n canSave: true,\n canOpenChangeRequest: false,\n };\n }\n\n const configuredProvider = editor.getSourceControlProvider?.();\n if (configuredProvider) {\n const provider = {\n id: configuredProvider.id,\n displayName: configuredProvider.displayName,\n };\n try {\n const capabilities = await getSourceProviderCapabilities(() => configuredProvider.getCapabilities());\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider,\n canSave: capabilities.canWrite,\n canOpenChangeRequest: capabilities.canOpenChangeRequest,\n unavailableReason: capabilities.canWrite ? undefined : capabilities.reason,\n };\n } catch {\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider,\n canSave: false,\n canOpenChangeRequest: false,\n unavailableReason: 'Unable to load source provider capabilities.',\n };\n }\n }\n\n const sourceProvider = process.env.MASTRA_SOURCE_PROVIDER;\n\n if (sourceProvider) {\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider: {\n id: sourceProvider,\n displayName: process.env.MASTRA_SOURCE_PROVIDER_NAME || sourceProvider,\n },\n canSave: process.env.MASTRA_SOURCE_STORAGE_CAN_WRITE !== 'false',\n canOpenChangeRequest: process.env.MASTRA_SOURCE_STORAGE_CAN_OPEN_CHANGE_REQUEST === 'true',\n };\n }\n\n const isHosted =\n process.env.MASTRA_DEPLOYMENT_ID || process.env.MASTRA_CLOUD_API_ENDPOINT || process.env.MASTRA_PLATFORM_PROJECT_ID;\n\n if (isHosted) {\n return {\n source: editorSource,\n storage: 'unavailable' as const,\n canSave: false,\n canOpenChangeRequest: false,\n unavailableReason: 'Code-source editing requires a source provider in hosted Studio.',\n };\n }\n\n return {\n source: editorSource,\n storage: 'filesystem' as const,\n canSave: true,\n canOpenChangeRequest: false,\n };\n}\n\nexport const GET_API_SCHEMA_ROUTE = createRoute({\n method: 'GET',\n path: '/system/api-schema',\n responseType: 'json',\n responseSchema: apiSchemaManifestResponseSchema,\n summary: 'Get API schema manifest',\n description: 'Returns the route-contract-derived API schema manifest for the machine-readable CLI',\n tags: ['System'],\n requiresAuth: true,\n handler: async () => {\n // Dynamic import to avoid circular dependency issues\n const { buildApiSchemaManifest } = await import('../server-adapter/api-schema-manifest');\n return buildApiSchemaManifest();\n },\n});\n\nexport const GET_SYSTEM_PACKAGES_ROUTE = createRoute({\n method: 'GET',\n path: '/system/packages',\n responseType: 'json',\n responseSchema: systemPackagesResponseSchema,\n summary: 'Get installed Mastra packages and Studio capabilities',\n description: 'Returns installed Mastra packages and runtime capabilities used by Studio',\n tags: ['System'],\n requiresAuth: true,\n handler: async ({ mastra }) => {\n try {\n const packagesFilePath = process.env.MASTRA_PACKAGES_FILE;\n\n let packages: MastraPackage[] = [];\n\n if (packagesFilePath) {\n try {\n const fileContent = readFileSync(packagesFilePath, 'utf-8');\n packages = JSON.parse(fileContent);\n } catch {\n packages = [];\n }\n }\n\n const storage = mastra.getStorage();\n const storageType = storage?.name;\n const observabilityStorage = storage?.stores?.observability;\n const observabilityStorageType = observabilityStorage?.constructor.name;\n const observabilityStorageCapabilities = observabilityStorage\n ? getObservabilityStorageCapabilities(observabilityStorage)\n : undefined;\n const observabilityRuntimeStrategy = observabilityStorage?.runtimeTracingStrategy;\n const observabilityEnabled = !!mastra.observability.getDefaultInstance();\n\n const editor = mastra.getEditor();\n const editorSource = editor?.getSource?.();\n const editorSourceCapabilities = editor ? await getEditorSourceCapabilities(editor) : undefined;\n const liveKitConnectionRouteEnabled =\n mastra\n .getServer()\n ?.apiRoutes?.some(route => route.method === 'POST' && route.path === LIVEKIT_CONNECTION_DETAILS_PATH) ??\n false;\n\n return {\n packages,\n isDev: process.env.MASTRA_DEV === 'true',\n cmsEnabled: !!editor,\n liveKitConnectionRouteEnabled,\n editorSource,\n editorSourceCapabilities,\n observabilityEnabled,\n storageType,\n observabilityStorageType,\n ...(observabilityStorageCapabilities ? { observabilityStorageCapabilities } : {}),\n observabilityRuntimeStrategy,\n };\n } catch (error) {\n return handleError(error, 'Error getting system packages');\n }\n },\n});\n"],"mappings":";;;;;;;;AAQA,MAAM,0CAA0C;AAGhD,MAAM,kCAAkC;
|
|
1
|
+
{"version":3,"file":"system.cjs","names":["createRoute","apiSchemaManifestResponseSchema","systemPackagesResponseSchema","getObservabilityStorageCapabilities","handleError"],"sources":["../../../src/server/handlers/system.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\n\nimport type { MastraPackage } from '../schemas/system';\nimport { apiSchemaManifestResponseSchema, systemPackagesResponseSchema } from '../schemas/system';\nimport { createRoute } from '../server-adapter/routes/route-builder';\nimport { handleError } from './error';\nimport { getObservabilityStorageCapabilities } from './observability-shared';\n\nconst SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS = 3000;\n\n// Default path of liveKitConnectionRoute() from @mastra/livekit — the exact route Studio posts to.\nconst LIVEKIT_CONNECTION_DETAILS_PATH = '/voice/livekit/connection-details';\nconst LIVEKIT_RECORDING_PATH = '/voice/livekit/recordings/:traceId';\n\nasync function getSourceProviderCapabilities(\n getCapabilities: () => Promise<{\n canWrite: boolean;\n canOpenChangeRequest: boolean;\n reason?: string;\n }>,\n) {\n let timeout: ReturnType<typeof setTimeout> | undefined;\n try {\n return await Promise.race([\n getCapabilities(),\n new Promise<never>((_, reject) => {\n timeout = setTimeout(\n () => reject(new Error('Source provider capabilities timed out')),\n SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS,\n );\n }),\n ]);\n } finally {\n if (timeout) clearTimeout(timeout);\n }\n}\n\nasync function getEditorSourceCapabilities(editor: {\n getSource?: () => 'code' | 'db' | undefined;\n getSourceControlProvider?: () =>\n | {\n id: string;\n displayName: string;\n getCapabilities: () => Promise<{\n canWrite: boolean;\n canOpenChangeRequest: boolean;\n reason?: string;\n }>;\n }\n | undefined;\n}) {\n const editorSource = editor.getSource?.();\n if (!editorSource) return undefined;\n\n if (editorSource === 'db') {\n return {\n source: editorSource,\n storage: 'database' as const,\n canSave: true,\n canOpenChangeRequest: false,\n };\n }\n\n const configuredProvider = editor.getSourceControlProvider?.();\n if (configuredProvider) {\n const provider = {\n id: configuredProvider.id,\n displayName: configuredProvider.displayName,\n };\n try {\n const capabilities = await getSourceProviderCapabilities(() => configuredProvider.getCapabilities());\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider,\n canSave: capabilities.canWrite,\n canOpenChangeRequest: capabilities.canOpenChangeRequest,\n unavailableReason: capabilities.canWrite ? undefined : capabilities.reason,\n };\n } catch {\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider,\n canSave: false,\n canOpenChangeRequest: false,\n unavailableReason: 'Unable to load source provider capabilities.',\n };\n }\n }\n\n const sourceProvider = process.env.MASTRA_SOURCE_PROVIDER;\n\n if (sourceProvider) {\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider: {\n id: sourceProvider,\n displayName: process.env.MASTRA_SOURCE_PROVIDER_NAME || sourceProvider,\n },\n canSave: process.env.MASTRA_SOURCE_STORAGE_CAN_WRITE !== 'false',\n canOpenChangeRequest: process.env.MASTRA_SOURCE_STORAGE_CAN_OPEN_CHANGE_REQUEST === 'true',\n };\n }\n\n const isHosted =\n process.env.MASTRA_DEPLOYMENT_ID || process.env.MASTRA_CLOUD_API_ENDPOINT || process.env.MASTRA_PLATFORM_PROJECT_ID;\n\n if (isHosted) {\n return {\n source: editorSource,\n storage: 'unavailable' as const,\n canSave: false,\n canOpenChangeRequest: false,\n unavailableReason: 'Code-source editing requires a source provider in hosted Studio.',\n };\n }\n\n return {\n source: editorSource,\n storage: 'filesystem' as const,\n canSave: true,\n canOpenChangeRequest: false,\n };\n}\n\nexport const GET_API_SCHEMA_ROUTE = createRoute({\n method: 'GET',\n path: '/system/api-schema',\n responseType: 'json',\n responseSchema: apiSchemaManifestResponseSchema,\n summary: 'Get API schema manifest',\n description: 'Returns the route-contract-derived API schema manifest for the machine-readable CLI',\n tags: ['System'],\n requiresAuth: true,\n handler: async () => {\n // Dynamic import to avoid circular dependency issues\n const { buildApiSchemaManifest } = await import('../server-adapter/api-schema-manifest');\n return buildApiSchemaManifest();\n },\n});\n\nexport const GET_SYSTEM_PACKAGES_ROUTE = createRoute({\n method: 'GET',\n path: '/system/packages',\n responseType: 'json',\n responseSchema: systemPackagesResponseSchema,\n summary: 'Get installed Mastra packages and Studio capabilities',\n description: 'Returns installed Mastra packages and runtime capabilities used by Studio',\n tags: ['System'],\n requiresAuth: true,\n handler: async ({ mastra }) => {\n try {\n const packagesFilePath = process.env.MASTRA_PACKAGES_FILE;\n\n let packages: MastraPackage[] = [];\n\n if (packagesFilePath) {\n try {\n const fileContent = readFileSync(packagesFilePath, 'utf-8');\n packages = JSON.parse(fileContent);\n } catch {\n packages = [];\n }\n }\n\n const storage = mastra.getStorage();\n const storageType = storage?.name;\n const observabilityStorage = storage?.stores?.observability;\n const observabilityStorageType = observabilityStorage?.constructor.name;\n const observabilityStorageCapabilities = observabilityStorage\n ? getObservabilityStorageCapabilities(observabilityStorage)\n : undefined;\n const observabilityRuntimeStrategy = observabilityStorage?.runtimeTracingStrategy;\n const observabilityEnabled = !!mastra.observability.getDefaultInstance();\n\n const editor = mastra.getEditor();\n const editorSource = editor?.getSource?.();\n const editorSourceCapabilities = editor ? await getEditorSourceCapabilities(editor) : undefined;\n const liveKitConnectionRouteEnabled =\n mastra\n .getServer()\n ?.apiRoutes?.some(route => route.method === 'POST' && route.path === LIVEKIT_CONNECTION_DETAILS_PATH) ??\n false;\n const liveKitRecordingRouteEnabled = mastra\n .getServer()\n ?.apiRoutes?.some(route => route.method === 'GET' && route.path === LIVEKIT_RECORDING_PATH);\n\n return {\n packages,\n isDev: process.env.MASTRA_DEV === 'true',\n cmsEnabled: !!editor,\n liveKitConnectionRouteEnabled,\n ...(liveKitRecordingRouteEnabled ? { liveKitRecordingRouteEnabled: true } : {}),\n editorSource,\n editorSourceCapabilities,\n observabilityEnabled,\n storageType,\n observabilityStorageType,\n ...(observabilityStorageCapabilities ? { observabilityStorageCapabilities } : {}),\n observabilityRuntimeStrategy,\n };\n } catch (error) {\n return handleError(error, 'Error getting system packages');\n }\n },\n});\n"],"mappings":";;;;;;;;AAQA,MAAM,0CAA0C;AAGhD,MAAM,kCAAkC;AACxC,MAAM,yBAAyB;AAE/B,eAAe,8BACb,iBAKA;CACA,IAAI;CACJ,IAAI;EACF,OAAO,MAAM,QAAQ,KAAK,CACxB,gBAAgB,GAChB,IAAI,SAAgB,GAAG,WAAW;GAChC,UAAU,iBACF,uBAAO,IAAI,MAAM,wCAAwC,CAAC,GAChE,uCACF;EACF,CAAC,CACH,CAAC;CACH,UAAU;EACR,IAAI,SAAS,aAAa,OAAO;CACnC;AACF;AAEA,eAAe,4BAA4B,QAaxC;CACD,MAAM,eAAe,OAAO,YAAY;CACxC,IAAI,CAAC,cAAc,OAAO,KAAA;CAE1B,IAAI,iBAAiB,MACnB,OAAO;EACL,QAAQ;EACR,SAAS;EACT,SAAS;EACT,sBAAsB;CACxB;CAGF,MAAM,qBAAqB,OAAO,2BAA2B;CAC7D,IAAI,oBAAoB;EACtB,MAAM,WAAW;GACf,IAAI,mBAAmB;GACvB,aAAa,mBAAmB;EAClC;EACA,IAAI;GACF,MAAM,eAAe,MAAM,oCAAoC,mBAAmB,gBAAgB,CAAC;GACnG,OAAO;IACL,QAAQ;IACR,SAAS;IACT;IACA,SAAS,aAAa;IACtB,sBAAsB,aAAa;IACnC,mBAAmB,aAAa,WAAW,KAAA,IAAY,aAAa;GACtE;EACF,QAAQ;GACN,OAAO;IACL,QAAQ;IACR,SAAS;IACT;IACA,SAAS;IACT,sBAAsB;IACtB,mBAAmB;GACrB;EACF;CACF;CAEA,MAAM,iBAAiB,QAAQ,IAAI;CAEnC,IAAI,gBACF,OAAO;EACL,QAAQ;EACR,SAAS;EACT,UAAU;GACR,IAAI;GACJ,aAAa,QAAQ,IAAI,+BAA+B;EAC1D;EACA,S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O,cAAc,mBAAmB;GAEvE,MAAM,SAAS,OAAO,UAAU;GAChC,MAAM,eAAe,QAAQ,YAAY;GACzC,MAAM,2BAA2B,SAAS,MAAM,4BAA4B,MAAM,IAAI,KAAA;GACtF,MAAM,gCACJ,OACG,UAAU,CAAC,EACV,WAAW,MAAK,UAAS,MAAM,WAAW,UAAU,MAAM,SAAS,+BAA+B,KACtG;GACF,MAAM,+BAA+B,OAClC,UAAU,CAAC,EACV,WAAW,MAAK,UAAS,MAAM,WAAW,SAAS,MAAM,SAAS,sBAAsB;GAE5F,OAAO;IACL;IACA,OAAO,QAAQ,IAAI,eAAe;IAClC,YAAY,CAAC,CAAC;IACd;IACA,GAAI,+BAA+B,EAAE,8BAA8B,KAAK,IAAI,CAAC;IAC7E;IACA;IACA;IACA;IACA;IACA,GAAI,mCAAmC,EAAE,iCAAiC,IAAI,CAAC;IAC/E;GACF;EACF,SAAS,OAAO;GACd,OAAOC,8BAAAA,YAAY,OAAO,+BAA+B;EAC3D;CACF;AACF,CAAC"}
|
|
@@ -71,6 +71,7 @@ export declare const GET_SYSTEM_PACKAGES_ROUTE: Omit<import("@mastra/core/server
|
|
|
71
71
|
isDev: boolean;
|
|
72
72
|
cmsEnabled: boolean;
|
|
73
73
|
liveKitConnectionRouteEnabled: boolean;
|
|
74
|
+
liveKitRecordingRouteEnabled?: boolean | undefined;
|
|
74
75
|
editorSource?: "code" | "db" | undefined;
|
|
75
76
|
editorSourceCapabilities?: {
|
|
76
77
|
source: "code" | "db";
|
|
@@ -127,6 +128,7 @@ export declare const GET_SYSTEM_PACKAGES_ROUTE: Omit<import("@mastra/core/server
|
|
|
127
128
|
isDev: import("zod").ZodBoolean;
|
|
128
129
|
cmsEnabled: import("zod").ZodBoolean;
|
|
129
130
|
liveKitConnectionRouteEnabled: import("zod").ZodBoolean;
|
|
131
|
+
liveKitRecordingRouteEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
130
132
|
editorSource: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
131
133
|
code: "code";
|
|
132
134
|
db: "db";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/system.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/system.ts"],"names":[],"mappings":"AA+HA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc/B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEpC,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { n as createRoute } from "../../route-builder-lBil8Cvo.js";
|
|
2
2
|
import { handleError } from "./error.js";
|
|
3
3
|
import { getObservabilityStorageCapabilities } from "./observability-shared.js";
|
|
4
|
-
import { t as apiSchemaManifestResponseSchema, u as systemPackagesResponseSchema } from "../../system-
|
|
4
|
+
import { t as apiSchemaManifestResponseSchema, u as systemPackagesResponseSchema } from "../../system-Di2kpGTC.js";
|
|
5
5
|
import { readFileSync } from "fs";
|
|
6
6
|
//#region src/server/handlers/system.ts
|
|
7
7
|
const SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS = 3e3;
|
|
8
8
|
const LIVEKIT_CONNECTION_DETAILS_PATH = "/voice/livekit/connection-details";
|
|
9
|
+
const LIVEKIT_RECORDING_PATH = "/voice/livekit/recordings/:traceId";
|
|
9
10
|
async function getSourceProviderCapabilities(getCapabilities) {
|
|
10
11
|
let timeout;
|
|
11
12
|
try {
|
|
@@ -87,7 +88,7 @@ const GET_API_SCHEMA_ROUTE = createRoute({
|
|
|
87
88
|
tags: ["System"],
|
|
88
89
|
requiresAuth: true,
|
|
89
90
|
handler: async () => {
|
|
90
|
-
const { buildApiSchemaManifest } = await import("../../api-schema-manifest-
|
|
91
|
+
const { buildApiSchemaManifest } = await import("../../api-schema-manifest-I5zotQbd.js");
|
|
91
92
|
return buildApiSchemaManifest();
|
|
92
93
|
}
|
|
93
94
|
});
|
|
@@ -121,11 +122,13 @@ const GET_SYSTEM_PACKAGES_ROUTE = createRoute({
|
|
|
121
122
|
const editorSource = editor?.getSource?.();
|
|
122
123
|
const editorSourceCapabilities = editor ? await getEditorSourceCapabilities(editor) : void 0;
|
|
123
124
|
const liveKitConnectionRouteEnabled = mastra.getServer()?.apiRoutes?.some((route) => route.method === "POST" && route.path === LIVEKIT_CONNECTION_DETAILS_PATH) ?? false;
|
|
125
|
+
const liveKitRecordingRouteEnabled = mastra.getServer()?.apiRoutes?.some((route) => route.method === "GET" && route.path === LIVEKIT_RECORDING_PATH);
|
|
124
126
|
return {
|
|
125
127
|
packages,
|
|
126
128
|
isDev: process.env.MASTRA_DEV === "true",
|
|
127
129
|
cmsEnabled: !!editor,
|
|
128
130
|
liveKitConnectionRouteEnabled,
|
|
131
|
+
...liveKitRecordingRouteEnabled ? { liveKitRecordingRouteEnabled: true } : {},
|
|
129
132
|
editorSource,
|
|
130
133
|
editorSourceCapabilities,
|
|
131
134
|
observabilityEnabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","names":[],"sources":["../../../src/server/handlers/system.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\n\nimport type { MastraPackage } from '../schemas/system';\nimport { apiSchemaManifestResponseSchema, systemPackagesResponseSchema } from '../schemas/system';\nimport { createRoute } from '../server-adapter/routes/route-builder';\nimport { handleError } from './error';\nimport { getObservabilityStorageCapabilities } from './observability-shared';\n\nconst SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS = 3000;\n\n// Default path of liveKitConnectionRoute() from @mastra/livekit — the exact route Studio posts to.\nconst LIVEKIT_CONNECTION_DETAILS_PATH = '/voice/livekit/connection-details';\n\nasync function getSourceProviderCapabilities(\n getCapabilities: () => Promise<{\n canWrite: boolean;\n canOpenChangeRequest: boolean;\n reason?: string;\n }>,\n) {\n let timeout: ReturnType<typeof setTimeout> | undefined;\n try {\n return await Promise.race([\n getCapabilities(),\n new Promise<never>((_, reject) => {\n timeout = setTimeout(\n () => reject(new Error('Source provider capabilities timed out')),\n SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS,\n );\n }),\n ]);\n } finally {\n if (timeout) clearTimeout(timeout);\n }\n}\n\nasync function getEditorSourceCapabilities(editor: {\n getSource?: () => 'code' | 'db' | undefined;\n getSourceControlProvider?: () =>\n | {\n id: string;\n displayName: string;\n getCapabilities: () => Promise<{\n canWrite: boolean;\n canOpenChangeRequest: boolean;\n reason?: string;\n }>;\n }\n | undefined;\n}) {\n const editorSource = editor.getSource?.();\n if (!editorSource) return undefined;\n\n if (editorSource === 'db') {\n return {\n source: editorSource,\n storage: 'database' as const,\n canSave: true,\n canOpenChangeRequest: false,\n };\n }\n\n const configuredProvider = editor.getSourceControlProvider?.();\n if (configuredProvider) {\n const provider = {\n id: configuredProvider.id,\n displayName: configuredProvider.displayName,\n };\n try {\n const capabilities = await getSourceProviderCapabilities(() => configuredProvider.getCapabilities());\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider,\n canSave: capabilities.canWrite,\n canOpenChangeRequest: capabilities.canOpenChangeRequest,\n unavailableReason: capabilities.canWrite ? undefined : capabilities.reason,\n };\n } catch {\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider,\n canSave: false,\n canOpenChangeRequest: false,\n unavailableReason: 'Unable to load source provider capabilities.',\n };\n }\n }\n\n const sourceProvider = process.env.MASTRA_SOURCE_PROVIDER;\n\n if (sourceProvider) {\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider: {\n id: sourceProvider,\n displayName: process.env.MASTRA_SOURCE_PROVIDER_NAME || sourceProvider,\n },\n canSave: process.env.MASTRA_SOURCE_STORAGE_CAN_WRITE !== 'false',\n canOpenChangeRequest: process.env.MASTRA_SOURCE_STORAGE_CAN_OPEN_CHANGE_REQUEST === 'true',\n };\n }\n\n const isHosted =\n process.env.MASTRA_DEPLOYMENT_ID || process.env.MASTRA_CLOUD_API_ENDPOINT || process.env.MASTRA_PLATFORM_PROJECT_ID;\n\n if (isHosted) {\n return {\n source: editorSource,\n storage: 'unavailable' as const,\n canSave: false,\n canOpenChangeRequest: false,\n unavailableReason: 'Code-source editing requires a source provider in hosted Studio.',\n };\n }\n\n return {\n source: editorSource,\n storage: 'filesystem' as const,\n canSave: true,\n canOpenChangeRequest: false,\n };\n}\n\nexport const GET_API_SCHEMA_ROUTE = createRoute({\n method: 'GET',\n path: '/system/api-schema',\n responseType: 'json',\n responseSchema: apiSchemaManifestResponseSchema,\n summary: 'Get API schema manifest',\n description: 'Returns the route-contract-derived API schema manifest for the machine-readable CLI',\n tags: ['System'],\n requiresAuth: true,\n handler: async () => {\n // Dynamic import to avoid circular dependency issues\n const { buildApiSchemaManifest } = await import('../server-adapter/api-schema-manifest');\n return buildApiSchemaManifest();\n },\n});\n\nexport const GET_SYSTEM_PACKAGES_ROUTE = createRoute({\n method: 'GET',\n path: '/system/packages',\n responseType: 'json',\n responseSchema: systemPackagesResponseSchema,\n summary: 'Get installed Mastra packages and Studio capabilities',\n description: 'Returns installed Mastra packages and runtime capabilities used by Studio',\n tags: ['System'],\n requiresAuth: true,\n handler: async ({ mastra }) => {\n try {\n const packagesFilePath = process.env.MASTRA_PACKAGES_FILE;\n\n let packages: MastraPackage[] = [];\n\n if (packagesFilePath) {\n try {\n const fileContent = readFileSync(packagesFilePath, 'utf-8');\n packages = JSON.parse(fileContent);\n } catch {\n packages = [];\n }\n }\n\n const storage = mastra.getStorage();\n const storageType = storage?.name;\n const observabilityStorage = storage?.stores?.observability;\n const observabilityStorageType = observabilityStorage?.constructor.name;\n const observabilityStorageCapabilities = observabilityStorage\n ? getObservabilityStorageCapabilities(observabilityStorage)\n : undefined;\n const observabilityRuntimeStrategy = observabilityStorage?.runtimeTracingStrategy;\n const observabilityEnabled = !!mastra.observability.getDefaultInstance();\n\n const editor = mastra.getEditor();\n const editorSource = editor?.getSource?.();\n const editorSourceCapabilities = editor ? await getEditorSourceCapabilities(editor) : undefined;\n const liveKitConnectionRouteEnabled =\n mastra\n .getServer()\n ?.apiRoutes?.some(route => route.method === 'POST' && route.path === LIVEKIT_CONNECTION_DETAILS_PATH) ??\n false;\n\n return {\n packages,\n isDev: process.env.MASTRA_DEV === 'true',\n cmsEnabled: !!editor,\n liveKitConnectionRouteEnabled,\n editorSource,\n editorSourceCapabilities,\n observabilityEnabled,\n storageType,\n observabilityStorageType,\n ...(observabilityStorageCapabilities ? { observabilityStorageCapabilities } : {}),\n observabilityRuntimeStrategy,\n };\n } catch (error) {\n return handleError(error, 'Error getting system packages');\n }\n },\n});\n"],"mappings":";;;;;;AAQA,MAAM,0CAA0C;AAGhD,MAAM,kCAAkC;
|
|
1
|
+
{"version":3,"file":"system.js","names":[],"sources":["../../../src/server/handlers/system.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\n\nimport type { MastraPackage } from '../schemas/system';\nimport { apiSchemaManifestResponseSchema, systemPackagesResponseSchema } from '../schemas/system';\nimport { createRoute } from '../server-adapter/routes/route-builder';\nimport { handleError } from './error';\nimport { getObservabilityStorageCapabilities } from './observability-shared';\n\nconst SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS = 3000;\n\n// Default path of liveKitConnectionRoute() from @mastra/livekit — the exact route Studio posts to.\nconst LIVEKIT_CONNECTION_DETAILS_PATH = '/voice/livekit/connection-details';\nconst LIVEKIT_RECORDING_PATH = '/voice/livekit/recordings/:traceId';\n\nasync function getSourceProviderCapabilities(\n getCapabilities: () => Promise<{\n canWrite: boolean;\n canOpenChangeRequest: boolean;\n reason?: string;\n }>,\n) {\n let timeout: ReturnType<typeof setTimeout> | undefined;\n try {\n return await Promise.race([\n getCapabilities(),\n new Promise<never>((_, reject) => {\n timeout = setTimeout(\n () => reject(new Error('Source provider capabilities timed out')),\n SOURCE_PROVIDER_CAPABILITIES_TIMEOUT_MS,\n );\n }),\n ]);\n } finally {\n if (timeout) clearTimeout(timeout);\n }\n}\n\nasync function getEditorSourceCapabilities(editor: {\n getSource?: () => 'code' | 'db' | undefined;\n getSourceControlProvider?: () =>\n | {\n id: string;\n displayName: string;\n getCapabilities: () => Promise<{\n canWrite: boolean;\n canOpenChangeRequest: boolean;\n reason?: string;\n }>;\n }\n | undefined;\n}) {\n const editorSource = editor.getSource?.();\n if (!editorSource) return undefined;\n\n if (editorSource === 'db') {\n return {\n source: editorSource,\n storage: 'database' as const,\n canSave: true,\n canOpenChangeRequest: false,\n };\n }\n\n const configuredProvider = editor.getSourceControlProvider?.();\n if (configuredProvider) {\n const provider = {\n id: configuredProvider.id,\n displayName: configuredProvider.displayName,\n };\n try {\n const capabilities = await getSourceProviderCapabilities(() => configuredProvider.getCapabilities());\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider,\n canSave: capabilities.canWrite,\n canOpenChangeRequest: capabilities.canOpenChangeRequest,\n unavailableReason: capabilities.canWrite ? undefined : capabilities.reason,\n };\n } catch {\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider,\n canSave: false,\n canOpenChangeRequest: false,\n unavailableReason: 'Unable to load source provider capabilities.',\n };\n }\n }\n\n const sourceProvider = process.env.MASTRA_SOURCE_PROVIDER;\n\n if (sourceProvider) {\n return {\n source: editorSource,\n storage: 'source-provider' as const,\n provider: {\n id: sourceProvider,\n displayName: process.env.MASTRA_SOURCE_PROVIDER_NAME || sourceProvider,\n },\n canSave: process.env.MASTRA_SOURCE_STORAGE_CAN_WRITE !== 'false',\n canOpenChangeRequest: process.env.MASTRA_SOURCE_STORAGE_CAN_OPEN_CHANGE_REQUEST === 'true',\n };\n }\n\n const isHosted =\n process.env.MASTRA_DEPLOYMENT_ID || process.env.MASTRA_CLOUD_API_ENDPOINT || process.env.MASTRA_PLATFORM_PROJECT_ID;\n\n if (isHosted) {\n return {\n source: editorSource,\n storage: 'unavailable' as const,\n canSave: false,\n canOpenChangeRequest: false,\n unavailableReason: 'Code-source editing requires a source provider in hosted Studio.',\n };\n }\n\n return {\n source: editorSource,\n storage: 'filesystem' as const,\n canSave: true,\n canOpenChangeRequest: false,\n };\n}\n\nexport const GET_API_SCHEMA_ROUTE = createRoute({\n method: 'GET',\n path: '/system/api-schema',\n responseType: 'json',\n responseSchema: apiSchemaManifestResponseSchema,\n summary: 'Get API schema manifest',\n description: 'Returns the route-contract-derived API schema manifest for the machine-readable CLI',\n tags: ['System'],\n requiresAuth: true,\n handler: async () => {\n // Dynamic import to avoid circular dependency issues\n const { buildApiSchemaManifest } = await import('../server-adapter/api-schema-manifest');\n return buildApiSchemaManifest();\n },\n});\n\nexport const GET_SYSTEM_PACKAGES_ROUTE = createRoute({\n method: 'GET',\n path: '/system/packages',\n responseType: 'json',\n responseSchema: systemPackagesResponseSchema,\n summary: 'Get installed Mastra packages and Studio capabilities',\n description: 'Returns installed Mastra packages and runtime capabilities used by Studio',\n tags: ['System'],\n requiresAuth: true,\n handler: async ({ mastra }) => {\n try {\n const packagesFilePath = process.env.MASTRA_PACKAGES_FILE;\n\n let packages: MastraPackage[] = [];\n\n if (packagesFilePath) {\n try {\n const fileContent = readFileSync(packagesFilePath, 'utf-8');\n packages = JSON.parse(fileContent);\n } catch {\n packages = [];\n }\n }\n\n const storage = mastra.getStorage();\n const storageType = storage?.name;\n const observabilityStorage = storage?.stores?.observability;\n const observabilityStorageType = observabilityStorage?.constructor.name;\n const observabilityStorageCapabilities = observabilityStorage\n ? getObservabilityStorageCapabilities(observabilityStorage)\n : undefined;\n const observabilityRuntimeStrategy = observabilityStorage?.runtimeTracingStrategy;\n const observabilityEnabled = !!mastra.observability.getDefaultInstance();\n\n const editor = mastra.getEditor();\n const editorSource = editor?.getSource?.();\n const editorSourceCapabilities = editor ? await getEditorSourceCapabilities(editor) : undefined;\n const liveKitConnectionRouteEnabled =\n mastra\n .getServer()\n ?.apiRoutes?.some(route => route.method === 'POST' && route.path === LIVEKIT_CONNECTION_DETAILS_PATH) ??\n false;\n const liveKitRecordingRouteEnabled = mastra\n .getServer()\n ?.apiRoutes?.some(route => route.method === 'GET' && route.path === LIVEKIT_RECORDING_PATH);\n\n return {\n packages,\n isDev: process.env.MASTRA_DEV === 'true',\n cmsEnabled: !!editor,\n liveKitConnectionRouteEnabled,\n ...(liveKitRecordingRouteEnabled ? { liveKitRecordingRouteEnabled: true } : {}),\n editorSource,\n editorSourceCapabilities,\n observabilityEnabled,\n storageType,\n observabilityStorageType,\n ...(observabilityStorageCapabilities ? { observabilityStorageCapabilities } : {}),\n observabilityRuntimeStrategy,\n };\n } catch (error) {\n return handleError(error, 'Error getting system packages');\n }\n },\n});\n"],"mappings":";;;;;;AAQA,MAAM,0CAA0C;AAGhD,MAAM,kCAAkC;AACxC,MAAM,yBAAyB;AAE/B,eAAe,8BACb,iBAKA;CACA,IAAI;CACJ,IAAI;EACF,OAAO,MAAM,QAAQ,KAAK,CACxB,gBAAgB,GAChB,IAAI,SAAgB,GAAG,WAAW;GAChC,UAAU,iBACF,uBAAO,IAAI,MAAM,wCAAwC,CAAC,GAChE,uCACF;EACF,CAAC,CACH,CAAC;CACH,UAAU;EACR,IAAI,SAAS,aAAa,OAAO;CACnC;AACF;AAEA,eAAe,4BAA4B,QAaxC;CACD,MAAM,eAAe,OAAO,YAAY;CACxC,IAAI,CAAC,cAAc,OAAO,KAAA;CAE1B,IAAI,iBAAiB,MACnB,OAAO;EACL,QAAQ;EACR,SAAS;EACT,SAAS;EACT,sBAAsB;CACxB;CAGF,MAAM,qBAAqB,OAAO,2BAA2B;CAC7D,IAAI,oBAAoB;EACtB,MAAM,WAAW;GACf,IAAI,mBAAmB;GACvB,aAAa,mBAAmB;EAClC;EACA,IAAI;GACF,MAAM,eAAe,MAAM,oCAAoC,mBAAmB,gBAAgB,CAAC;GACnG,OAAO;IACL,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AAC;GACd;GAGF,MAAM,UAAU,OAAO,WAAW;GAClC,MAAM,cAAc,SAAS;GAC7B,MAAM,uBAAuB,SAAS,QAAQ;GAC9C,MAAM,2BAA2B,sBAAsB,YAAY;GACnE,MAAM,mCAAmC,uBACrC,oCAAoC,oBAAoB,IACxD,KAAA;GACJ,MAAM,+BAA+B,sBAAsB;GAC3D,MAAM,uBAAuB,CAAC,CAAC,OAAO,cAAc,mBAAmB;GAEvE,MAAM,SAAS,OAAO,UAAU;GAChC,MAAM,eAAe,QAAQ,YAAY;GACzC,MAAM,2BAA2B,SAAS,MAAM,4BAA4B,MAAM,IAAI,KAAA;GACtF,MAAM,gCACJ,OACG,UAAU,CAAC,EACV,WAAW,MAAK,UAAS,MAAM,WAAW,UAAU,MAAM,SAAS,+BAA+B,KACtG;GACF,MAAM,+BAA+B,OAClC,UAAU,CAAC,EACV,WAAW,MAAK,UAAS,MAAM,WAAW,SAAS,MAAM,SAAS,sBAAsB;GAE5F,OAAO;IACL;IACA,OAAO,QAAQ,IAAI,eAAe;IAClC,YAAY,CAAC,CAAC;IACd;IACA,GAAI,+BAA+B,EAAE,8BAA8B,KAAK,IAAI,CAAC;IAC7E;IACA;IACA;IACA;IACA;IACA,GAAI,mCAAmC,EAAE,iCAAiC,IAAI,CAAC;IAC/E;GACF;EACF,SAAS,OAAO;GACd,OAAO,YAAY,OAAO,+BAA+B;EAC3D;CACF;AACF,CAAC"}
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_rolldown_runtime = require("../../rolldown-runtime-Bd6kNlEP.cjs");
|
|
3
3
|
const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
|
|
4
4
|
const require_common = require("../../common-BkgcoK-2.cjs");
|
|
5
|
-
const require_agents = require("../../agents-
|
|
5
|
+
const require_agents = require("../../agents-COAEoXsc.cjs");
|
|
6
6
|
const require_schema_e0VHpMt0 = require("../../schema-e0VHpMt0-BS9KHnuT.cjs");
|
|
7
7
|
const require_route_builder = require("../../route-builder-2yrD15TL.cjs");
|
|
8
8
|
require("../../schema-BVcoNfni.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __exportAll } from "../../rolldown-runtime-maW3aOIk.js";
|
|
2
2
|
import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
|
|
3
3
|
import { o as optionalRunIdSchema } from "../../common-tSamNYpt.js";
|
|
4
|
-
import { E as listToolsResponseSchema, K as serializedToolSchema, Q as toolIdPathParams, b as executeToolContextBodySchema, l as agentToolPathParams, x as executeToolResponseSchema, y as executeToolBodySchema } from "../../agents-
|
|
4
|
+
import { E as listToolsResponseSchema, K as serializedToolSchema, Q as toolIdPathParams, b as executeToolContextBodySchema, l as agentToolPathParams, x as executeToolResponseSchema, y as executeToolBodySchema } from "../../agents-BuKPiseS.js";
|
|
5
5
|
import { n as standardSchemaToJSONSchema, r as toStandardSchema } from "../../schema-e0VHpMt0-CvPvLS06.js";
|
|
6
6
|
import { n as createRoute } from "../../route-builder-lBil8Cvo.js";
|
|
7
7
|
import "../../schema-Xxr5X5Je.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../rolldown-runtime-Bd6kNlEP.cjs");
|
|
3
|
-
const require_workflow_builder = require("../../workflow-builder-
|
|
3
|
+
const require_workflow_builder = require("../../workflow-builder-DYfgyaeB.cjs");
|
|
4
4
|
exports.GET_WORKFLOW_BUILDER_SETTINGS_ROUTE = require_workflow_builder.GET_WORKFLOW_BUILDER_SETTINGS_ROUTE;
|
|
5
5
|
exports.STREAM_WORKFLOW_BUILDER_ROUTE = require_workflow_builder.STREAM_WORKFLOW_BUILDER_ROUTE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as STREAM_WORKFLOW_BUILDER_ROUTE, t as GET_WORKFLOW_BUILDER_SETTINGS_ROUTE } from "../../workflow-builder-
|
|
1
|
+
import { n as STREAM_WORKFLOW_BUILDER_ROUTE, t as GET_WORKFLOW_BUILDER_SETTINGS_ROUTE } from "../../workflow-builder-DxQMzsT9.js";
|
|
2
2
|
export { GET_WORKFLOW_BUILDER_SETTINGS_ROUTE, STREAM_WORKFLOW_BUILDER_ROUTE };
|
|
@@ -3,7 +3,7 @@ const require_rolldown_runtime = require("../../rolldown-runtime-Bd6kNlEP.cjs");
|
|
|
3
3
|
const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
|
|
4
4
|
const require_common = require("../../common-BkgcoK-2.cjs");
|
|
5
5
|
const require_workflows = require("../../workflows-BdoErlkd.cjs");
|
|
6
|
-
const require_agents = require("../../agents-
|
|
6
|
+
const require_agents = require("../../agents-COAEoXsc.cjs");
|
|
7
7
|
const require_route_builder = require("../../route-builder-2yrD15TL.cjs");
|
|
8
8
|
const require_utils = require("../../utils-DFQixxkO.cjs");
|
|
9
9
|
const require_server_handlers_error = require("./error.cjs");
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "../../rolldown-runtime-maW3aOIk.js";
|
|
|
2
2
|
import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
|
|
3
3
|
import { o as optionalRunIdSchema, u as runIdSchema } from "../../common-tSamNYpt.js";
|
|
4
4
|
import { _ as workflowRunCountsResponseSchema, a as observeWorkflowQuerySchema, b as workflowRunResultSchema, d as streamWorkflowBodySchema, f as timeTravelBodySchema, g as workflowInfoSchema, h as workflowIdPathParams, i as listWorkflowsResponseSchema, l as startAsyncWorkflowBodySchema, m as workflowExecutionResultSchema, n as createWorkflowRunResponseSchema, o as restartBodySchema, p as workflowControlResponseSchema, r as listWorkflowRunsQuerySchema, s as resumeBodySchema, t as createWorkflowRunBodySchema, v as workflowRunPathParams, x as workflowRunsResponseSchema, y as workflowRunResultQuerySchema } from "../../workflows-BEdLrZQZ.js";
|
|
5
|
-
import { J as streamResponseSchema } from "../../agents-
|
|
5
|
+
import { J as streamResponseSchema } from "../../agents-BuKPiseS.js";
|
|
6
6
|
import { n as createRoute } from "../../route-builder-lBil8Cvo.js";
|
|
7
7
|
import { a as getWorkflowInfo, t as WorkflowRegistry } from "../../utils-BJm0ZYnM.js";
|
|
8
8
|
import { handleError } from "./error.js";
|
|
@@ -841,6 +841,8 @@ export declare const approveToolCallBodySchema: z.ZodObject<{
|
|
|
841
841
|
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
842
842
|
toolCallId: z.ZodString;
|
|
843
843
|
format: z.ZodOptional<z.ZodString>;
|
|
844
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>>;
|
|
845
|
+
modelSettings: z.ZodOptional<z.ZodType<ModelSettings, unknown, z.core.$ZodTypeInternals<ModelSettings, unknown>>>;
|
|
844
846
|
}, z.core.$strip>;
|
|
845
847
|
/**
|
|
846
848
|
* Body schema for declining tool call
|
|
@@ -851,6 +853,8 @@ export declare const declineToolCallBodySchema: z.ZodObject<{
|
|
|
851
853
|
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
852
854
|
toolCallId: z.ZodString;
|
|
853
855
|
format: z.ZodOptional<z.ZodString>;
|
|
856
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>>;
|
|
857
|
+
modelSettings: z.ZodOptional<z.ZodType<ModelSettings, unknown, z.core.$ZodTypeInternals<ModelSettings, unknown>>>;
|
|
854
858
|
reason: z.ZodOptional<z.ZodString>;
|
|
855
859
|
}, z.core.$strip>;
|
|
856
860
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAzVe,MAAM;2BAAa,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA4V5F,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA9Vc,MAAM;2BAAa,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8VzB,CAAC;AAOtE,eAAO,MAAM,8BAA8B;;;;;;iBAKzC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;iBAG9C,CAAC;AAEH,eAAO,MAAM,uCAAuC;;iBAElD,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAUrC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B,cAAc,CAAC"}
|
|
@@ -5,7 +5,7 @@ const require_workflows = require("../../workflows-BdoErlkd.cjs");
|
|
|
5
5
|
const require_agent_builder = require("../../agent-builder-CvwtAD7k.cjs");
|
|
6
6
|
const require_default_options = require("../../default-options-C7tykjLq.cjs");
|
|
7
7
|
const require_routes = require("../../routes-BKUF5ZHA.cjs");
|
|
8
|
-
const require_agents = require("../../agents-
|
|
8
|
+
const require_agents = require("../../agents-COAEoXsc.cjs");
|
|
9
9
|
const require_stored_agents = require("../../stored-agents-DpY3ssfx.cjs");
|
|
10
10
|
const require_rule_group = require("../../rule-group-Hyn4rN52.cjs");
|
|
11
11
|
const require_stored_workspaces = require("../../stored-workspaces-CAWowZ9Q.cjs");
|
|
@@ -17,14 +17,14 @@ const require_memory = require("../../memory-C3j3i6iS.cjs");
|
|
|
17
17
|
const require_responses = require("../../responses-CKNdSRkS.cjs");
|
|
18
18
|
const require_conversations = require("../../conversations-DX7ATgEB.cjs");
|
|
19
19
|
const require_logs = require("../../logs-B0037Tlj.cjs");
|
|
20
|
-
const require_mcp = require("../../mcp-
|
|
21
|
-
const require_system = require("../../system-
|
|
20
|
+
const require_mcp = require("../../mcp-Jus386Vq.cjs");
|
|
21
|
+
const require_system = require("../../system-CycnKGR3.cjs");
|
|
22
22
|
const require_scores = require("../../scores-COSdG-wz.cjs");
|
|
23
23
|
const require_vectors = require("../../vectors-D7DfmbS1.cjs");
|
|
24
24
|
const require_version_common = require("../../version-common-Bu42Y2QN.cjs");
|
|
25
25
|
const require_agent_versions = require("../../agent-versions-CivkX9fT.cjs");
|
|
26
26
|
const require_datasets = require("../../datasets-Bz7SKu-q.cjs");
|
|
27
|
-
const require_editor_builder = require("../../editor-builder-
|
|
27
|
+
const require_editor_builder = require("../../editor-builder-DJl5x_Kj.cjs");
|
|
28
28
|
const require_mcp_client_versions = require("../../mcp-client-versions-Zkez3ruO.cjs");
|
|
29
29
|
const require_processor_providers = require("../../processor-providers-DHvTA9AL.cjs");
|
|
30
30
|
const require_processors = require("../../processors-80HWq8nr.cjs");
|
|
@@ -3,7 +3,7 @@ import { b as workflowRunResultSchema, c as sendWorkflowRunEventBodySchema, g as
|
|
|
3
3
|
import { a as streamAgentBuilderBodySchema, i as startAsyncAgentBuilderBodySchema, n as actionRunPathParams, o as streamLegacyAgentBuilderBodySchema, r as resumeAgentBuilderBodySchema, t as actionIdPathParams } from "../../agent-builder-BlD120ac.js";
|
|
4
4
|
import { t as defaultOptionsSchema } from "../../default-options-oSlrqpuP.js";
|
|
5
5
|
import { c as generateSpeechBodySchema, d as transcribeSpeechBodySchema, f as transcribeSpeechResponseSchema, l as getListenerResponseSchema, p as voiceSpeakersResponseSchema, u as speakResponseSchema } from "../../routes-zHhMx-9S.js";
|
|
6
|
-
import { $ as updateAgentModelBodySchema, A as observeAgentResponseSchema, B as sendToolApprovalBodySchema, C as listAgentsResponseSchema, D as modelConfigIdPathParams, E as listToolsResponseSchema, F as reorderAgentModelListBodySchema, G as serializedProcessorSchema$1, H as serializedAgentDefinitionSchema, I as resumeStreamBodySchema, J as streamResponseSchema, K as serializedToolSchema, L as resumeStreamUntilIdleBodySchema, M as providersResponseSchema, N as queueAgentMessageBodySchema, O as modelManagementResponseSchema, P as recoverBodySchema, Q as toolIdPathParams, R as sendAgentMessageBodySchema, S as generateResponseSchema, T as listSuspendedRunsResponseSchema, U as serializedAgentSchema, V as sendToolApprovalResponseSchema, W as serializedAgentWithIdSchema, X as subscribeAgentThreadBodySchema, Y as streamUntilIdleBodySchema, Z as toolCallResponseSchema, _ as enhanceInstructionsBodySchema, a as agentIdPathParams, b as executeToolContextBodySchema, c as agentSkillPathParams, d as approveNetworkToolCallBodySchema, et as updateAgentModelInModelListBodySchema, f as approveToolCallBodySchema, g as declineToolCallBodySchema, h as declineNetworkToolCallBodySchema, i as agentExecutionLegacyBodySchema, j as providerSchema, k as observeAgentBodySchema, l as agentToolPathParams, m as cancelPendingAgentSignalsResponseSchema, n as abortAgentThreadResponseSchema, o as agentPlanQuerySchema, p as cancelPendingAgentSignalsBodySchema, q as serializedWorkflowSchema, r as agentExecutionBodySchema$1, s as agentPlanResponseSchema, t as abortAgentThreadBodySchema, u as agentVersionQuerySchema, v as enhanceInstructionsResponseSchema, w as listSuspendedRunsQuerySchema, x as executeToolResponseSchema, y as executeToolBodySchema, z as sendAgentSignalBodySchema } from "../../agents-
|
|
6
|
+
import { $ as updateAgentModelBodySchema, A as observeAgentResponseSchema, B as sendToolApprovalBodySchema, C as listAgentsResponseSchema, D as modelConfigIdPathParams, E as listToolsResponseSchema, F as reorderAgentModelListBodySchema, G as serializedProcessorSchema$1, H as serializedAgentDefinitionSchema, I as resumeStreamBodySchema, J as streamResponseSchema, K as serializedToolSchema, L as resumeStreamUntilIdleBodySchema, M as providersResponseSchema, N as queueAgentMessageBodySchema, O as modelManagementResponseSchema, P as recoverBodySchema, Q as toolIdPathParams, R as sendAgentMessageBodySchema, S as generateResponseSchema, T as listSuspendedRunsResponseSchema, U as serializedAgentSchema, V as sendToolApprovalResponseSchema, W as serializedAgentWithIdSchema, X as subscribeAgentThreadBodySchema, Y as streamUntilIdleBodySchema, Z as toolCallResponseSchema, _ as enhanceInstructionsBodySchema, a as agentIdPathParams, b as executeToolContextBodySchema, c as agentSkillPathParams, d as approveNetworkToolCallBodySchema, et as updateAgentModelInModelListBodySchema, f as approveToolCallBodySchema, g as declineToolCallBodySchema, h as declineNetworkToolCallBodySchema, i as agentExecutionLegacyBodySchema, j as providerSchema, k as observeAgentBodySchema, l as agentToolPathParams, m as cancelPendingAgentSignalsResponseSchema, n as abortAgentThreadResponseSchema, o as agentPlanQuerySchema, p as cancelPendingAgentSignalsBodySchema, q as serializedWorkflowSchema, r as agentExecutionBodySchema$1, s as agentPlanResponseSchema, t as abortAgentThreadBodySchema, u as agentVersionQuerySchema, v as enhanceInstructionsResponseSchema, w as listSuspendedRunsQuerySchema, x as executeToolResponseSchema, y as executeToolBodySchema, z as sendAgentSignalBodySchema } from "../../agents-BuKPiseS.js";
|
|
7
7
|
import { A as semanticRecallSchema, C as storedAgentIdPathParams, D as toolsConfigSchema, E as toolConfigSchema, F as serializedReflectionConfigSchema, I as storedMemoryRefSchema, L as titleGenerationSchema, M as serializedObservationConfigSchema, N as serializedObservationalMemoryConfigObjectSchema, O as updateStoredAgentBodySchema, P as serializedObservationalMemoryConfigSchema, S as snapshotConfigSchema, T as storedProcessorGraphSchema, _ as processorGraphEntrySchema, a as exportStoredAgentBodySchema, b as resolvedAuthorSchema, c as getStoredAgentResponseSchema, d as listStoredAgentsResponseSchema, f as modelConfigSchema, g as previewInstructionsResponseSchema, h as previewInstructionsBodySchema, i as deleteStoredAgentResponseSchema, j as serializedMemoryConfigSchema, k as updateStoredAgentResponseSchema, l as instructionsSchema, m as openStoredAgentChangeRequestResponseSchema, n as createStoredAgentBodySchema, o as exportStoredAgentResponseSchema, p as openStoredAgentChangeRequestBodySchema, r as createStoredAgentResponseSchema, s as getStoredAgentDependentsResponseSchema, t as conditionalFieldSchema, u as listStoredAgentsQuerySchema, v as processorGraphStepSchema, w as storedAgentSchema, x as scorerConfigSchema, y as processorPhaseSchema } from "../../stored-agents-BzIvRgtz.js";
|
|
8
8
|
import { n as ruleSchema, t as ruleGroupSchema } from "../../rule-group-C5eydl98.js";
|
|
9
9
|
import { a as listStoredWorkspacesQuerySchema, c as storedWorkspaceIdPathParams, d as updateStoredWorkspaceResponseSchema, i as getStoredWorkspaceResponseSchema, l as storedWorkspaceSchema, n as createStoredWorkspaceResponseSchema, o as listStoredWorkspacesResponseSchema, r as deleteStoredWorkspaceResponseSchema, s as snapshotConfigSchema$1, t as createStoredWorkspaceBodySchema, u as updateStoredWorkspaceBodySchema } from "../../stored-workspaces-egfwpAQ-.js";
|
|
@@ -15,14 +15,14 @@ import { A as listThreadsNetworkQuerySchema, B as searchMemoryQuerySchema, C as
|
|
|
15
15
|
import { _ as responseToolSchema, a as deleteResponseSchema, c as responseInputTextContentSchema, d as responseOutputFunctionCallOutputSchema, f as responseOutputFunctionCallSchema, g as responseTextFormatSchema, h as responseOutputTextSchema, i as createResponseBodySchema, l as responseInputTextPartSchema, m as responseOutputMessageSchema, n as conversationItemSchema, o as responseIdPathParams, p as responseOutputItemSchema, r as conversationMessageContentSchema, s as responseInputMessageSchema, t as conversationItemMessageSchema, u as responseObjectSchema, v as responseUsageSchema } from "../../responses-DJNJgCTg.js";
|
|
16
16
|
import { a as createConversationBodySchema, i as conversationObjectSchema, n as conversationIdPathParams, r as conversationItemsListSchema, t as conversationDeletedSchema } from "../../conversations-U3fod5tw.js";
|
|
17
17
|
import { n as listLogsQuerySchema, r as listLogsResponseSchema, t as listLogTransportsResponseSchema } from "../../logs-B2Nd15Oe.js";
|
|
18
|
-
import { _ as serverInfoSchema, a as listMcpServerToolsResponseSchema, f as mcpServerToolPathParams, g as serverDetailSchema, i as jsonRpcErrorSchema, l as mcpServerDetailPathParams, n as executeToolResponseSchema$1, o as listMcpServersQuerySchema, p as mcpToolInfoSchema, r as getMcpServerDetailQuerySchema, s as listMcpServersResponseSchema, t as executeToolBodySchema$1, u as mcpServerIdPathParams, v as versionDetailSchema } from "../../mcp-
|
|
19
|
-
import { a as editorSourceSchema, c as observabilityRuntimeStrategySchema, i as editorSourceCapabilitiesSchema, l as observabilityStorageCapabilitiesSchema, n as apiSchemaManifestRouteSchema, o as mastraPackageSchema, r as apiSchemaResponseShapeSchema, s as observabilityDiscoveryCapabilitiesSchema, t as apiSchemaManifestResponseSchema, u as systemPackagesResponseSchema } from "../../system-
|
|
18
|
+
import { _ as serverInfoSchema, a as listMcpServerToolsResponseSchema, f as mcpServerToolPathParams, g as serverDetailSchema, i as jsonRpcErrorSchema, l as mcpServerDetailPathParams, n as executeToolResponseSchema$1, o as listMcpServersQuerySchema, p as mcpToolInfoSchema, r as getMcpServerDetailQuerySchema, s as listMcpServersResponseSchema, t as executeToolBodySchema$1, u as mcpServerIdPathParams, v as versionDetailSchema } from "../../mcp-BK6cmwww.js";
|
|
19
|
+
import { a as editorSourceSchema, c as observabilityRuntimeStrategySchema, i as editorSourceCapabilitiesSchema, l as observabilityStorageCapabilitiesSchema, n as apiSchemaManifestRouteSchema, o as mastraPackageSchema, r as apiSchemaResponseShapeSchema, s as observabilityDiscoveryCapabilitiesSchema, t as apiSchemaManifestResponseSchema, u as systemPackagesResponseSchema } from "../../system-Di2kpGTC.js";
|
|
20
20
|
import { a as listScoresByScorerIdQuerySchema, c as scorerEntrySchema, i as listScoresByRunIdQuerySchema, l as scorerIdPathParams, n as listScorersResponseSchema, o as saveScoreBodySchema, r as listScoresByEntityIdQuerySchema, s as saveScoreResponseSchema, t as entityPathParams, u as scoresWithPaginationResponseSchema } from "../../scores-BQ9vlUSU.js";
|
|
21
21
|
import { a as listEmbeddersResponseSchema, c as queryVectorsBodySchema, d as upsertVectorsResponseSchema, f as vectorIndexPathParams, i as describeIndexResponseSchema, l as queryVectorsResponseSchema, n as createIndexResponseSchema, o as listIndexesResponseSchema, p as vectorNamePathParams, r as deleteIndexResponseSchema, s as listVectorsResponseSchema, t as createIndexBodySchema, u as upsertVectorsBodySchema } from "../../vectors-CwJAkyIh.js";
|
|
22
22
|
import { a as createVersionBodySchema, c as versionDiffEntrySchema, i as createListVersionsResponseSchema, l as versionOrderBySchema, n as compareVersionsQuerySchema, o as deleteVersionResponseSchema, r as createCompareVersionsResponseSchema, s as listVersionsQuerySchema, t as activateVersionResponseSchema } from "../../version-common-Co-USxDX.js";
|
|
23
23
|
import { a as getVersionResponseSchema, c as versionIdPathParams, i as createVersionResponseSchema, n as agentVersionSchema, o as listVersionsResponseSchema, r as compareVersionsResponseSchema, s as restoreVersionResponseSchema, t as agentVersionPathParams } from "../../agent-versions-oCebJ7rc.js";
|
|
24
24
|
import { A as listDatasetsQuerySchema, B as reviewSummaryResponseSchema, C as experimentReviewCountsSchema, D as itemIdPathParams, E as generateItemsResponseSchema, F as listExperimentsResponseSchema, G as tenancyQuerySchema, H as runExperimentItemResponseSchema, I as listItemVersionsResponseSchema, J as updateExperimentBodySchema, K as triggerExperimentBodySchema, L as listItemsQuerySchema, M as listExperimentResultsQuerySchema, N as listExperimentResultsResponseSchema, O as itemVersionResponseSchema, P as listExperimentsQuerySchema, R as listItemsResponseSchema, S as experimentResultResponseSchema, T as generateItemsBodySchema, U as scorerResultSchema, V as runExperimentItemBodySchema, W as submitExperimentResultBodySchema, X as updateItemBodySchema, Y as updateExperimentResultBodySchema, _ as datasetResponseSchema, a as batchInsertItemsResponseSchema, b as experimentResponseSchema, c as compareExperimentsBodySchema, d as datasetAndExperimentIdPathParams, f as datasetAndItemIdPathParams, g as datasetItemVersionPathParams, h as datasetItemResponseSchema, i as batchInsertItemsBodySchema, j as listDatasetsResponseSchema, k as listDatasetVersionsResponseSchema, l as comparisonResponseSchema, m as datasetIdPathParams, n as batchDeleteItemsBodySchema, o as clusterFailuresBodySchema, p as datasetExperimentAndItemIdPathParams, q as updateDatasetBodySchema, r as batchDeleteItemsResponseSchema, s as clusterFailuresResponseSchema, t as addItemBodySchema, u as createDatasetBodySchema, v as datasetVersionResponseSchema, w as experimentSummaryResponseSchema, x as experimentResultIdPathParams, y as experimentIdPathParams, z as paginationQuerySchema } from "../../datasets-CgNMo16l.js";
|
|
25
|
-
import { a as builderModelPolicySchema, c as defaultModelEntrySchema, d as providerModelEntrySchema, i as builderAvailableModelsResponseSchema, l as infrastructureStatusResponseSchema, n as agentFeaturesSchema, o as builderPickerSchema, r as agentModelsSchema, s as builderSettingsResponseSchema, t as agentConfigurationSchema, u as pickerAllowlistSchema } from "../../editor-builder-
|
|
25
|
+
import { a as builderModelPolicySchema, c as defaultModelEntrySchema, d as providerModelEntrySchema, i as builderAvailableModelsResponseSchema, l as infrastructureStatusResponseSchema, n as agentFeaturesSchema, o as builderPickerSchema, r as agentModelsSchema, s as builderSettingsResponseSchema, t as agentConfigurationSchema, u as pickerAllowlistSchema } from "../../editor-builder-CdLGv1Ka.js";
|
|
26
26
|
import { a as createMCPClientVersionResponseSchema, c as listMCPClientVersionsQuerySchema, d as mcpClientVersionPathParams, f as mcpClientVersionSchema, i as createMCPClientVersionBodySchema, l as listMCPClientVersionsResponseSchema, n as compareMCPClientVersionsQuerySchema, o as deleteMCPClientVersionResponseSchema, p as restoreMCPClientVersionResponseSchema, r as compareMCPClientVersionsResponseSchema, s as getMCPClientVersionResponseSchema, t as activateMCPClientVersionResponseSchema, u as mcpClientVersionIdPathParams } from "../../mcp-client-versions-Df5bgWm1.js";
|
|
27
27
|
import { n as getProcessorProvidersResponseSchema, r as processorProviderIdPathParams, t as getProcessorProviderResponseSchema } from "../../processor-providers-DBhZC6-4.js";
|
|
28
28
|
import { a as processorIdPathParams, i as processorConfigurationSchema, n as executeProcessorResponseSchema, o as serializedProcessorDetailSchema, r as listProcessorsResponseSchema, s as serializedProcessorSchema, t as executeProcessorBodySchema } from "../../processors-33IULT8X.js";
|