@mastra/server 1.87.0-alpha.1 → 1.87.0-alpha.4
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-CY7rgzPe.js → a2a-BF24ZHHG.js} +1 -1
- package/dist/{a2a-DwjvHqcb.cjs → a2a-DBvkBF5L.cjs} +1 -1
- package/dist/{agent-builder-DawgAfRt.js → agent-builder-C8ugTBfd.js} +1 -1
- package/dist/{agent-builder-CFlwtwZC.cjs → agent-builder-NQyRodXn.cjs} +1 -1
- package/dist/{agents-CAXsXenf.js → agents-fc1FJDvC.js} +3 -2
- package/dist/{agents-GHhuyz5x.cjs → agents-pZbKdbyw.cjs} +3 -2
- package/dist/{api-schema-manifest-BvvlL0TR.js → api-schema-manifest-C2jopWPa.js} +1 -1
- package/dist/{api-schema-manifest-D8c0D-Nd.cjs → api-schema-manifest-NWyRb6Ck.cjs} +1 -1
- package/dist/{catalogue-BjUuotVl.cjs → catalogue-6fUQPgRx.cjs} +5 -5
- package/dist/{catalogue-CJKwUMII.js → catalogue-BGzYIh8i.js} +5 -5
- package/dist/{conversations-BjD8wOc3.js → conversations-C_3CdW9R.js} +1 -1
- package/dist/{conversations-CgogBOHO.cjs → conversations-CmJ313KB.cjs} +1 -1
- package/dist/{dist-DnaUFs3u.cjs → dist-BioCAWZZ.cjs} +52 -14
- package/dist/dist-CblGC7T3.js +1 -0
- package/dist/{dist-BS3dauvO.js → dist-DT4-N7GI.js} +53 -15
- package/dist/{dist-DvGuHSAT.cjs → dist-u1pKW3Zj.cjs} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-server-dispatch-route.md +1 -1
- package/dist/docs/references/reference-server-invoke-route.md +1 -1
- package/dist/{editor-builder-G1ub9j0s.cjs → editor-builder-CC5TMhad.cjs} +1 -1
- package/dist/{editor-builder-BRzXnsRW.js → editor-builder-Dx6h7vbp.js} +1 -1
- package/dist/{plans-DGC1grMp.js → plans-DG71R1_g.js} +1 -1
- package/dist/{plans-kA8E3Auv.cjs → plans-NLQ66Ni4.cjs} +1 -1
- package/dist/{probe-image-size-B3ETFAcX.js → probe-image-size-B2uqI4uZ.js} +1 -1
- package/dist/{probe-image-size-D801MyMQ.cjs → probe-image-size-Bmje219o.cjs} +1 -1
- package/dist/{responses--nGf7l3O.js → responses-8yLEylMP.js} +1 -1
- package/dist/{responses-B4GDz-Nm.cjs → responses-DSZaoF9e.cjs} +1 -1
- package/dist/{routes-BTrz1ppE.cjs → routes-BQwX8qE0.cjs} +11 -11
- package/dist/{routes-Byg1B8Qr.js → routes-BnqbLavV.js} +11 -11
- package/dist/{scores-Biv7XGW_.js → scores-Dvb44a34.js} +1 -1
- package/dist/{scores-D0Qq7TfU.cjs → scores-nXPYzs7N.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/conversations.cjs +1 -1
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/editor-builder.cjs +1 -1
- package/dist/server/handlers/editor-builder.js +1 -1
- package/dist/server/handlers/favorites-enrichment.cjs +1 -1
- package/dist/server/handlers/favorites-enrichment.js +1 -1
- package/dist/server/handlers/plans.cjs +1 -1
- package/dist/server/handlers/plans.js +1 -1
- package/dist/server/handlers/responses.cjs +1 -1
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/scores.cjs +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agent-favorites.cjs +1 -1
- package/dist/server/handlers/stored-agent-favorites.js +1 -1
- package/dist/server/handlers/stored-agents.cjs +1 -1
- package/dist/server/handlers/stored-agents.js +1 -1
- package/dist/server/handlers/stored-skill-favorites.cjs +1 -1
- package/dist/server/handlers/stored-skill-favorites.js +1 -1
- package/dist/server/handlers/stored-skills.cjs +1 -1
- package/dist/server/handlers/stored-skills.js +1 -1
- package/dist/server/handlers/system.cjs +1 -1
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers/tools.cjs +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/voice.cjs +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers.cjs +9 -9
- package/dist/server/handlers.js +9 -9
- package/dist/server/server-adapter/index.cjs +2 -2
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/{server-adapter-BBWHYl1q.js → server-adapter-BcN0WuPX.js} +1 -1
- package/dist/{server-adapter-DEOmNkC-.cjs → server-adapter-DkFj4WVe.cjs} +1 -1
- package/dist/{tools-By0RVh_O.cjs → tools-BrqKvvuw.cjs} +1 -1
- package/dist/{tools-C3KBdlil.js → tools-CNqpCxFY.js} +1 -1
- package/dist/{voice-PfxY_vQg.js → voice-CQyZfwgq.js} +1 -1
- package/dist/{voice-CESew8Fc.cjs → voice-IkGm6Cgo.cjs} +1 -1
- package/package.json +3 -3
- package/dist/dist-egxWNNJS.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-fc1FJDvC.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-pZbKdbyw.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-DT4-N7GI.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-BioCAWZZ.cjs")).then((mod) => mod.createAgentBuilderWorkflows);
|
|
34
34
|
const create = await createAgentBuilderWorkflowsPromise;
|
|
35
35
|
let agentBuilderWorkflows = agentBuilderWorkflowsByMastra.get(mastra);
|
|
36
36
|
if (!agentBuilderWorkflows) {
|
|
@@ -3295,16 +3295,17 @@ Return your response as JSON with exactly these two fields:
|
|
|
3295
3295
|
|
|
3296
3296
|
Remember: A good system prompt should be specific enough to guide behavior but flexible enough to handle edge cases. Focus on creating prompts that are clear, actionable, and aligned with the intended use case.`;
|
|
3297
3297
|
async function findConnectedModel(agent) {
|
|
3298
|
+
const isUsable = (model) => !(model instanceof ModelRouterLanguageModel) || isProviderConnected(model.provider);
|
|
3298
3299
|
const modelList = await agent.getModelList();
|
|
3299
3300
|
if (modelList && modelList.length > 0) {
|
|
3300
3301
|
for (const modelConfig of modelList) if (modelConfig.enabled !== false) {
|
|
3301
3302
|
const model = modelConfig.model;
|
|
3302
|
-
if (
|
|
3303
|
+
if (isUsable(model)) return model;
|
|
3303
3304
|
}
|
|
3304
3305
|
return null;
|
|
3305
3306
|
}
|
|
3306
3307
|
const defaultModel = await agent.getModel();
|
|
3307
|
-
if (
|
|
3308
|
+
if (isUsable(defaultModel)) return defaultModel;
|
|
3308
3309
|
return null;
|
|
3309
3310
|
}
|
|
3310
3311
|
const ENHANCE_INSTRUCTIONS_ROUTE = createRoute({
|
|
@@ -3295,16 +3295,17 @@ Return your response as JSON with exactly these two fields:
|
|
|
3295
3295
|
|
|
3296
3296
|
Remember: A good system prompt should be specific enough to guide behavior but flexible enough to handle edge cases. Focus on creating prompts that are clear, actionable, and aligned with the intended use case.`;
|
|
3297
3297
|
async function findConnectedModel(agent) {
|
|
3298
|
+
const isUsable = (model) => !(model instanceof _mastra_core_llm.ModelRouterLanguageModel) || isProviderConnected(model.provider);
|
|
3298
3299
|
const modelList = await agent.getModelList();
|
|
3299
3300
|
if (modelList && modelList.length > 0) {
|
|
3300
3301
|
for (const modelConfig of modelList) if (modelConfig.enabled !== false) {
|
|
3301
3302
|
const model = modelConfig.model;
|
|
3302
|
-
if (
|
|
3303
|
+
if (isUsable(model)) return model;
|
|
3303
3304
|
}
|
|
3304
3305
|
return null;
|
|
3305
3306
|
}
|
|
3306
3307
|
const defaultModel = await agent.getModel();
|
|
3307
|
-
if (
|
|
3308
|
+
if (isUsable(defaultModel)) return defaultModel;
|
|
3308
3309
|
return null;
|
|
3309
3310
|
}
|
|
3310
3311
|
const ENHANCE_INSTRUCTIONS_ROUTE = require_route_builder.createRoute({
|
|
@@ -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-BnqbLavV.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-BQwX8qE0.cjs");
|
|
4
4
|
// src/server/server-adapter/api-schema-manifest.ts
|
|
5
5
|
function convertSchema(schema, io) {
|
|
6
6
|
return schema ? require_route_builder.schemaToJsonSchema(schema, io) : void 0;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-10nMEhjP.cjs");
|
|
2
2
|
const require_schema_TQPB_dl2 = require("./schema-TQPB_dl2-CJX1q58F.cjs");
|
|
3
3
|
require("./constants-CyNbINin.cjs");
|
|
4
|
-
const require_agents = require("./agents-
|
|
5
|
-
const require_tools = require("./tools-
|
|
4
|
+
const require_agents = require("./agents-pZbKdbyw.cjs");
|
|
5
|
+
const require_tools = require("./tools-BrqKvvuw.cjs");
|
|
6
6
|
const require_workflows = require("./workflows-PVrj85xM.cjs");
|
|
7
|
-
const require_server_adapter = require("./server-adapter-
|
|
8
|
-
const require_routes = require("./routes-
|
|
7
|
+
const require_server_adapter = require("./server-adapter-DkFj4WVe.cjs");
|
|
8
|
+
const require_routes = require("./routes-BQwX8qE0.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-CC5TMhad.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");
|
|
@@ -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-fc1FJDvC.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-CNqpCxFY.js";
|
|
5
5
|
import { _ as RESUME_ASYNC_WORKFLOW_ROUTE, a as GET_WORKFLOW_BY_ID_ROUTE, k as listWorkflowsFromSystem, o as GET_WORKFLOW_RUN_BY_ID_ROUTE, s as LIST_WORKFLOWS_ROUTE, t as CANCEL_WORKFLOW_RUN_ROUTE, x as START_ASYNC_WORKFLOW_ROUTE } from "./workflows-OjUXkjWw.js";
|
|
6
|
-
import { o as checkRouteRBAC, r as authorizeRoute, s as dispatchRoute } from "./server-adapter-
|
|
7
|
-
import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-
|
|
6
|
+
import { o as checkRouteRBAC, r as authorizeRoute, s as dispatchRoute } from "./server-adapter-BcN0WuPX.js";
|
|
7
|
+
import { c as getBuiltinMCPCapabilities, s as getEffectivePermission } from "./routes-BnqbLavV.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-Dx6h7vbp.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";
|
|
@@ -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-fc1FJDvC.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-pZbKdbyw.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");
|
|
@@ -8656,7 +8656,7 @@ function splitLines(text) {
|
|
|
8656
8656
|
else result.push(result.pop().slice(0, -1));
|
|
8657
8657
|
return result;
|
|
8658
8658
|
}
|
|
8659
|
-
// ../memory/dist/src-
|
|
8659
|
+
// ../memory/dist/src-BLtNRhqm.js
|
|
8660
8660
|
var __defProp$3 = Object.defineProperty;
|
|
8661
8661
|
var __exportAll = (all, no_symbols) => {
|
|
8662
8662
|
let target = {};
|
|
@@ -34041,12 +34041,30 @@ function resolveTimeZone(timeZone) {
|
|
|
34041
34041
|
}
|
|
34042
34042
|
return known ? timeZone : void 0;
|
|
34043
34043
|
}
|
|
34044
|
+
const MAX_CACHED_FORMATTERS = 256;
|
|
34045
|
+
const formatters = /* @__PURE__ */ new Map();
|
|
34046
|
+
/**
|
|
34047
|
+
* A shared `en-US` formatter for `options` in `timeZone`, or in the process time zone when unset. Building a formatter
|
|
34048
|
+
* costs far more than formatting with one, and OM formats a date for every message line. `name` identifies `options`.
|
|
34049
|
+
*/
|
|
34050
|
+
function getDateTimeFormat(name, timeZone, options) {
|
|
34051
|
+
const key = `${name}|${timeZone ?? `process:${globalThis.process?.env?.TZ ?? ""}`}`;
|
|
34052
|
+
let formatter = formatters.get(key);
|
|
34053
|
+
if (!formatter) {
|
|
34054
|
+
if (formatters.size >= MAX_CACHED_FORMATTERS) formatters.clear();
|
|
34055
|
+
formatter = new Intl.DateTimeFormat("en-US", {
|
|
34056
|
+
...options,
|
|
34057
|
+
timeZone
|
|
34058
|
+
});
|
|
34059
|
+
formatters.set(key, formatter);
|
|
34060
|
+
}
|
|
34061
|
+
return formatter;
|
|
34062
|
+
}
|
|
34044
34063
|
/** Day number of the calendar date `instant` falls on in `timeZone` (the process time zone when unset). */
|
|
34045
34064
|
function calendarDayIn(instant, timeZone) {
|
|
34046
34065
|
const zone = resolveTimeZone(timeZone);
|
|
34047
34066
|
if (!zone) return calendarDay(instant);
|
|
34048
|
-
const parts =
|
|
34049
|
-
timeZone: zone,
|
|
34067
|
+
const parts = getDateTimeFormat("calendar-day", zone, {
|
|
34050
34068
|
year: "numeric",
|
|
34051
34069
|
month: "numeric",
|
|
34052
34070
|
day: "numeric"
|
|
@@ -34361,7 +34379,8 @@ function formatTemporalGap(diffMs) {
|
|
|
34361
34379
|
return formatTwoUnits(year, "year", month, "month");
|
|
34362
34380
|
}
|
|
34363
34381
|
function formatTemporalTimestamp(date) {
|
|
34364
|
-
|
|
34382
|
+
if (Number.isNaN(date.getTime())) return "Invalid Date";
|
|
34383
|
+
return getDateTimeFormat("temporal-timestamp", void 0, {
|
|
34365
34384
|
year: "numeric",
|
|
34366
34385
|
month: "2-digit",
|
|
34367
34386
|
day: "2-digit",
|
|
@@ -34369,7 +34388,7 @@ function formatTemporalTimestamp(date) {
|
|
|
34369
34388
|
minute: "2-digit",
|
|
34370
34389
|
hour12: true,
|
|
34371
34390
|
timeZoneName: "short"
|
|
34372
|
-
});
|
|
34391
|
+
}).format(date);
|
|
34373
34392
|
}
|
|
34374
34393
|
function getMessagePartTimestamp(msg, position) {
|
|
34375
34394
|
const timestamps = msg.content?.parts?.map((part) => "createdAt" in part ? part.createdAt : void 0).filter((timestamp) => typeof timestamp === "number");
|
|
@@ -35421,8 +35440,7 @@ const OBSERVER_IMAGE_FILE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
|
35421
35440
|
]);
|
|
35422
35441
|
function formatObserverDate(createdAt, timeZone) {
|
|
35423
35442
|
if (!createdAt) return "";
|
|
35424
|
-
const parts =
|
|
35425
|
-
timeZone,
|
|
35443
|
+
const parts = getDateTimeFormat("observer-date", timeZone, {
|
|
35426
35444
|
year: "numeric",
|
|
35427
35445
|
month: "short",
|
|
35428
35446
|
day: "numeric"
|
|
@@ -35431,12 +35449,11 @@ function formatObserverDate(createdAt, timeZone) {
|
|
|
35431
35449
|
return `${part("month")} ${part("day")} ${part("year")}`;
|
|
35432
35450
|
}
|
|
35433
35451
|
function formatObserverTime(createdAt, timeZone) {
|
|
35434
|
-
return createdAt ?
|
|
35435
|
-
timeZone,
|
|
35452
|
+
return createdAt ? getDateTimeFormat("observer-time", timeZone, {
|
|
35436
35453
|
hour: "numeric",
|
|
35437
35454
|
minute: "2-digit",
|
|
35438
35455
|
hour12: true
|
|
35439
|
-
}) : "";
|
|
35456
|
+
}).format(createdAt) : "";
|
|
35440
35457
|
}
|
|
35441
35458
|
function getObserverPathExtension(value) {
|
|
35442
35459
|
return (value.split("#", 1)[0]?.split("?", 1)[0] ?? value).match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase();
|
|
@@ -37361,7 +37378,7 @@ async function resolveImageDimensionsAsync(part) {
|
|
|
37361
37378
|
const url = resolveHttpAssetUrl(getObjectValue(part, "image") ?? getObjectValue(part, "data"));
|
|
37362
37379
|
if (!url) return existing;
|
|
37363
37380
|
try {
|
|
37364
|
-
const probeImageSize = (await Promise.resolve().then(() => /* @__PURE__ */ require_rolldown_runtime.__toESM(require("./probe-image-size-
|
|
37381
|
+
const probeImageSize = (await Promise.resolve().then(() => /* @__PURE__ */ require_rolldown_runtime.__toESM(require("./probe-image-size-Bmje219o.cjs").default, 1))).default;
|
|
37365
37382
|
const probed = await probeImageSize(url, {
|
|
37366
37383
|
open_timeout: REMOTE_IMAGE_PROBE_TIMEOUT_MS,
|
|
37367
37384
|
response_timeout: REMOTE_IMAGE_PROBE_TIMEOUT_MS,
|
|
@@ -49834,6 +49851,27 @@ const invalidMerge = (text) => new _mastra_core_error.MastraError({
|
|
|
49834
49851
|
category: _mastra_core_error.ErrorCategory.USER,
|
|
49835
49852
|
text
|
|
49836
49853
|
});
|
|
49854
|
+
/**
|
|
49855
|
+
* Whether a processor with `id` is configured, either at the top level or as a step
|
|
49856
|
+
* anywhere inside a processor workflow (sequential, branch, parallel, loop, foreach, nested workflow).
|
|
49857
|
+
* Workflow steps built with `createStep(processor)` carry `processorId`, which survives step id
|
|
49858
|
+
* rewrites (the Editor renames graph steps to `processor:<graph step id>`); older core versions
|
|
49859
|
+
* only carry the id `processor:<id>`.
|
|
49860
|
+
* A step inside a branch counts even though it only runs when that branch is taken.
|
|
49861
|
+
*/
|
|
49862
|
+
function hasConfiguredProcessorId(processors, id) {
|
|
49863
|
+
const seen = /* @__PURE__ */ new Set();
|
|
49864
|
+
const matchesStep = (step) => {
|
|
49865
|
+
if (!step || typeof step !== "object" || seen.has(step)) return false;
|
|
49866
|
+
seen.add(step);
|
|
49867
|
+
const { processorId, id: stepId, stepGraph } = step;
|
|
49868
|
+
if (Array.isArray(stepGraph)) return stepGraph.some(matchesEntry);
|
|
49869
|
+
return processorId !== void 0 ? processorId === id : stepId === `processor:${id}`;
|
|
49870
|
+
};
|
|
49871
|
+
const isEntry = (value) => !!value && typeof value === "object" && "type" in value && "step" in value;
|
|
49872
|
+
const matchesEntry = (entry) => (isEntry(entry.step) ? matchesEntry(entry.step) : matchesStep(entry.step)) || (entry.steps ?? []).some(matchesEntry);
|
|
49873
|
+
return processors.some((processor) => (0, _mastra_core_processors.isProcessorWorkflow)(processor) ? matchesStep(processor) : processor.id === id);
|
|
49874
|
+
}
|
|
49837
49875
|
var Memory = class Memory extends _mastra_core_memory.MastraMemory {
|
|
49838
49876
|
createMemoryTokenCounter() {
|
|
49839
49877
|
return new TokenCounter();
|
|
@@ -52123,7 +52161,7 @@ Notes:
|
|
|
52123
52161
|
*/
|
|
52124
52162
|
async getErrorProcessors(configuredProcessors = [], context) {
|
|
52125
52163
|
const processors = await super.getErrorProcessors(configuredProcessors, context);
|
|
52126
|
-
const om = await this.createOMProcessor(configuredProcessors, context);
|
|
52164
|
+
const om = await this.createOMProcessor(configuredProcessors.filter((p) => !(0, _mastra_core_processors.isProcessorWorkflow)(p)), context);
|
|
52127
52165
|
if (om) processors.push(om);
|
|
52128
52166
|
return processors;
|
|
52129
52167
|
}
|
|
@@ -52133,7 +52171,7 @@ Notes:
|
|
|
52133
52171
|
* in the user's configured processors.
|
|
52134
52172
|
*/
|
|
52135
52173
|
async createOMProcessor(configuredProcessors = [], context) {
|
|
52136
|
-
if (configuredProcessors
|
|
52174
|
+
if (hasConfiguredProcessorId(configuredProcessors, "observational-memory")) return null;
|
|
52137
52175
|
const runtimeMemory = context?.get("MastraMemory");
|
|
52138
52176
|
const runtimeObservationalMemory = normalizeObservationalMemoryConfig(runtimeMemory?.memoryConfig?.observationalMemory);
|
|
52139
52177
|
const effectiveConfig = normalizeObservationalMemoryConfig((runtimeMemory?.memoryConfig?.observationalMemory !== void 0 ? this.getMergedThreadConfig({
|
|
@@ -53296,7 +53334,7 @@ const createModelInstance = async (provider, modelId, version = "v2") => {
|
|
|
53296
53334
|
try {
|
|
53297
53335
|
const providerFn = version === `v1` ? { v1: {
|
|
53298
53336
|
openai: async () => {
|
|
53299
|
-
const { openai } = await Promise.resolve().then(() => require("./dist-
|
|
53337
|
+
const { openai } = await Promise.resolve().then(() => require("./dist-u1pKW3Zj.cjs"));
|
|
53300
53338
|
return openai(modelId);
|
|
53301
53339
|
},
|
|
53302
53340
|
anthropic: async () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as openai } from "./dist-DT4-N7GI.js";
|
|
@@ -20,7 +20,7 @@ import { InMemoryStore } from "@mastra/core/storage";
|
|
|
20
20
|
import { coreFeatures } from "@mastra/core/features";
|
|
21
21
|
import * as coreObservability from "@mastra/core/observability";
|
|
22
22
|
import { EntityType, SpanType, createObservabilityContext, getOrCreateSpan } from "@mastra/core/observability";
|
|
23
|
-
import { MessageHistory, TokenLimiterProcessor } from "@mastra/core/processors";
|
|
23
|
+
import { MessageHistory, TokenLimiterProcessor, isProcessorWorkflow } from "@mastra/core/processors";
|
|
24
24
|
import { createStep, createWorkflow } from "@mastra/core/workflows";
|
|
25
25
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
26
26
|
import { tmpdir } from "os";
|
|
@@ -8655,7 +8655,7 @@ function splitLines(text) {
|
|
|
8655
8655
|
else result.push(result.pop().slice(0, -1));
|
|
8656
8656
|
return result;
|
|
8657
8657
|
}
|
|
8658
|
-
// ../memory/dist/src-
|
|
8658
|
+
// ../memory/dist/src-BLtNRhqm.js
|
|
8659
8659
|
var __defProp$3 = Object.defineProperty;
|
|
8660
8660
|
var __exportAll = (all, no_symbols) => {
|
|
8661
8661
|
let target = {};
|
|
@@ -34040,12 +34040,30 @@ function resolveTimeZone(timeZone) {
|
|
|
34040
34040
|
}
|
|
34041
34041
|
return known ? timeZone : void 0;
|
|
34042
34042
|
}
|
|
34043
|
+
const MAX_CACHED_FORMATTERS = 256;
|
|
34044
|
+
const formatters = /* @__PURE__ */ new Map();
|
|
34045
|
+
/**
|
|
34046
|
+
* A shared `en-US` formatter for `options` in `timeZone`, or in the process time zone when unset. Building a formatter
|
|
34047
|
+
* costs far more than formatting with one, and OM formats a date for every message line. `name` identifies `options`.
|
|
34048
|
+
*/
|
|
34049
|
+
function getDateTimeFormat(name, timeZone, options) {
|
|
34050
|
+
const key = `${name}|${timeZone ?? `process:${globalThis.process?.env?.TZ ?? ""}`}`;
|
|
34051
|
+
let formatter = formatters.get(key);
|
|
34052
|
+
if (!formatter) {
|
|
34053
|
+
if (formatters.size >= MAX_CACHED_FORMATTERS) formatters.clear();
|
|
34054
|
+
formatter = new Intl.DateTimeFormat("en-US", {
|
|
34055
|
+
...options,
|
|
34056
|
+
timeZone
|
|
34057
|
+
});
|
|
34058
|
+
formatters.set(key, formatter);
|
|
34059
|
+
}
|
|
34060
|
+
return formatter;
|
|
34061
|
+
}
|
|
34043
34062
|
/** Day number of the calendar date `instant` falls on in `timeZone` (the process time zone when unset). */
|
|
34044
34063
|
function calendarDayIn(instant, timeZone) {
|
|
34045
34064
|
const zone = resolveTimeZone(timeZone);
|
|
34046
34065
|
if (!zone) return calendarDay(instant);
|
|
34047
|
-
const parts =
|
|
34048
|
-
timeZone: zone,
|
|
34066
|
+
const parts = getDateTimeFormat("calendar-day", zone, {
|
|
34049
34067
|
year: "numeric",
|
|
34050
34068
|
month: "numeric",
|
|
34051
34069
|
day: "numeric"
|
|
@@ -34360,7 +34378,8 @@ function formatTemporalGap(diffMs) {
|
|
|
34360
34378
|
return formatTwoUnits(year, "year", month, "month");
|
|
34361
34379
|
}
|
|
34362
34380
|
function formatTemporalTimestamp(date) {
|
|
34363
|
-
|
|
34381
|
+
if (Number.isNaN(date.getTime())) return "Invalid Date";
|
|
34382
|
+
return getDateTimeFormat("temporal-timestamp", void 0, {
|
|
34364
34383
|
year: "numeric",
|
|
34365
34384
|
month: "2-digit",
|
|
34366
34385
|
day: "2-digit",
|
|
@@ -34368,7 +34387,7 @@ function formatTemporalTimestamp(date) {
|
|
|
34368
34387
|
minute: "2-digit",
|
|
34369
34388
|
hour12: true,
|
|
34370
34389
|
timeZoneName: "short"
|
|
34371
|
-
});
|
|
34390
|
+
}).format(date);
|
|
34372
34391
|
}
|
|
34373
34392
|
function getMessagePartTimestamp(msg, position) {
|
|
34374
34393
|
const timestamps = msg.content?.parts?.map((part) => "createdAt" in part ? part.createdAt : void 0).filter((timestamp) => typeof timestamp === "number");
|
|
@@ -35420,8 +35439,7 @@ const OBSERVER_IMAGE_FILE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
|
35420
35439
|
]);
|
|
35421
35440
|
function formatObserverDate(createdAt, timeZone) {
|
|
35422
35441
|
if (!createdAt) return "";
|
|
35423
|
-
const parts =
|
|
35424
|
-
timeZone,
|
|
35442
|
+
const parts = getDateTimeFormat("observer-date", timeZone, {
|
|
35425
35443
|
year: "numeric",
|
|
35426
35444
|
month: "short",
|
|
35427
35445
|
day: "numeric"
|
|
@@ -35430,12 +35448,11 @@ function formatObserverDate(createdAt, timeZone) {
|
|
|
35430
35448
|
return `${part("month")} ${part("day")} ${part("year")}`;
|
|
35431
35449
|
}
|
|
35432
35450
|
function formatObserverTime(createdAt, timeZone) {
|
|
35433
|
-
return createdAt ?
|
|
35434
|
-
timeZone,
|
|
35451
|
+
return createdAt ? getDateTimeFormat("observer-time", timeZone, {
|
|
35435
35452
|
hour: "numeric",
|
|
35436
35453
|
minute: "2-digit",
|
|
35437
35454
|
hour12: true
|
|
35438
|
-
}) : "";
|
|
35455
|
+
}).format(createdAt) : "";
|
|
35439
35456
|
}
|
|
35440
35457
|
function getObserverPathExtension(value) {
|
|
35441
35458
|
return (value.split("#", 1)[0]?.split("?", 1)[0] ?? value).match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase();
|
|
@@ -37360,7 +37377,7 @@ async function resolveImageDimensionsAsync(part) {
|
|
|
37360
37377
|
const url = resolveHttpAssetUrl(getObjectValue(part, "image") ?? getObjectValue(part, "data"));
|
|
37361
37378
|
if (!url) return existing;
|
|
37362
37379
|
try {
|
|
37363
|
-
const probeImageSize = (await import("./probe-image-size-
|
|
37380
|
+
const probeImageSize = (await import("./probe-image-size-B2uqI4uZ.js").then((m) => /* @__PURE__ */ __toESM$1(m.default, 1))).default;
|
|
37364
37381
|
const probed = await probeImageSize(url, {
|
|
37365
37382
|
open_timeout: REMOTE_IMAGE_PROBE_TIMEOUT_MS,
|
|
37366
37383
|
response_timeout: REMOTE_IMAGE_PROBE_TIMEOUT_MS,
|
|
@@ -49833,6 +49850,27 @@ const invalidMerge = (text) => new MastraError({
|
|
|
49833
49850
|
category: ErrorCategory.USER,
|
|
49834
49851
|
text
|
|
49835
49852
|
});
|
|
49853
|
+
/**
|
|
49854
|
+
* Whether a processor with `id` is configured, either at the top level or as a step
|
|
49855
|
+
* anywhere inside a processor workflow (sequential, branch, parallel, loop, foreach, nested workflow).
|
|
49856
|
+
* Workflow steps built with `createStep(processor)` carry `processorId`, which survives step id
|
|
49857
|
+
* rewrites (the Editor renames graph steps to `processor:<graph step id>`); older core versions
|
|
49858
|
+
* only carry the id `processor:<id>`.
|
|
49859
|
+
* A step inside a branch counts even though it only runs when that branch is taken.
|
|
49860
|
+
*/
|
|
49861
|
+
function hasConfiguredProcessorId(processors, id) {
|
|
49862
|
+
const seen = /* @__PURE__ */ new Set();
|
|
49863
|
+
const matchesStep = (step) => {
|
|
49864
|
+
if (!step || typeof step !== "object" || seen.has(step)) return false;
|
|
49865
|
+
seen.add(step);
|
|
49866
|
+
const { processorId, id: stepId, stepGraph } = step;
|
|
49867
|
+
if (Array.isArray(stepGraph)) return stepGraph.some(matchesEntry);
|
|
49868
|
+
return processorId !== void 0 ? processorId === id : stepId === `processor:${id}`;
|
|
49869
|
+
};
|
|
49870
|
+
const isEntry = (value) => !!value && typeof value === "object" && "type" in value && "step" in value;
|
|
49871
|
+
const matchesEntry = (entry) => (isEntry(entry.step) ? matchesEntry(entry.step) : matchesStep(entry.step)) || (entry.steps ?? []).some(matchesEntry);
|
|
49872
|
+
return processors.some((processor) => isProcessorWorkflow(processor) ? matchesStep(processor) : processor.id === id);
|
|
49873
|
+
}
|
|
49836
49874
|
var Memory = class Memory extends MastraMemory {
|
|
49837
49875
|
createMemoryTokenCounter() {
|
|
49838
49876
|
return new TokenCounter();
|
|
@@ -52122,7 +52160,7 @@ Notes:
|
|
|
52122
52160
|
*/
|
|
52123
52161
|
async getErrorProcessors(configuredProcessors = [], context) {
|
|
52124
52162
|
const processors = await super.getErrorProcessors(configuredProcessors, context);
|
|
52125
|
-
const om = await this.createOMProcessor(configuredProcessors, context);
|
|
52163
|
+
const om = await this.createOMProcessor(configuredProcessors.filter((p) => !isProcessorWorkflow(p)), context);
|
|
52126
52164
|
if (om) processors.push(om);
|
|
52127
52165
|
return processors;
|
|
52128
52166
|
}
|
|
@@ -52132,7 +52170,7 @@ Notes:
|
|
|
52132
52170
|
* in the user's configured processors.
|
|
52133
52171
|
*/
|
|
52134
52172
|
async createOMProcessor(configuredProcessors = [], context) {
|
|
52135
|
-
if (configuredProcessors
|
|
52173
|
+
if (hasConfiguredProcessorId(configuredProcessors, "observational-memory")) return null;
|
|
52136
52174
|
const runtimeMemory = context?.get("MastraMemory");
|
|
52137
52175
|
const runtimeObservationalMemory = normalizeObservationalMemoryConfig(runtimeMemory?.memoryConfig?.observationalMemory);
|
|
52138
52176
|
const effectiveConfig = normalizeObservationalMemoryConfig((runtimeMemory?.memoryConfig?.observationalMemory !== void 0 ? this.getMergedThreadConfig({
|
|
@@ -53293,7 +53331,7 @@ const createModelInstance = async (provider, modelId, version = "v2") => {
|
|
|
53293
53331
|
try {
|
|
53294
53332
|
const providerFn = version === `v1` ? { v1: {
|
|
53295
53333
|
openai: async () => {
|
|
53296
|
-
const { openai } = await import("./dist-
|
|
53334
|
+
const { openai } = await import("./dist-CblGC7T3.js");
|
|
53297
53335
|
return openai(modelId);
|
|
53298
53336
|
},
|
|
53299
53337
|
anthropic: async () => {
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -80,7 +80,7 @@ A `DispatchRouteResult`, which is one of two shapes:
|
|
|
80
80
|
|
|
81
81
|
**status** (`number`): When ok is false: the HTTP status an adapter would have answered with, such as 400, 401, or 403.
|
|
82
82
|
|
|
83
|
-
**body** (`unknown`): When ok is false: the
|
|
83
|
+
**body** (`unknown`): When ok is false: the error body an adapter would have sent. Parsed as JSON, or a string when an HTTPException carries a non-JSON response.
|
|
84
84
|
|
|
85
85
|
## Behavior
|
|
86
86
|
|
|
@@ -70,7 +70,7 @@ function invokeRoute(route: ServerRoute, options: InvokeRouteOptions): Promise<I
|
|
|
70
70
|
|
|
71
71
|
**body** (`unknown`): The route's response body, or an error body when a check fails or the handler throws.
|
|
72
72
|
|
|
73
|
-
Failed checks and errors thrown by the handler are returned as a status and body, not thrown.
|
|
73
|
+
Failed checks and errors thrown by the handler are returned as a status and body, not thrown. The exception is a request schema that fails with an error other than a `ZodError`: that error is thrown.
|
|
74
74
|
|
|
75
75
|
## Behavior
|
|
76
76
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_http_exception = require("./http-exception-Co3MbFUf.cjs");
|
|
2
2
|
const require_editor_builder = require("./editor-builder-eF2IetF2.cjs");
|
|
3
3
|
const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
|
|
4
|
-
const require_agents = require("./agents-
|
|
4
|
+
const require_agents = require("./agents-pZbKdbyw.cjs");
|
|
5
5
|
const require_server_handlers_error = require("./server/handlers/error.cjs");
|
|
6
6
|
// src/server/utils/resolve-builder-model-policy.ts
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as HTTPException } from "./http-exception-CzaWkxMl.js";
|
|
2
2
|
import { i as builderAvailableModelsResponseSchema, l as infrastructureStatusResponseSchema, n as agentFeaturesSchema, s as builderSettingsResponseSchema } from "./editor-builder-CXLdplIj.js";
|
|
3
3
|
import { n as createRoute } from "./route-builder-Dz18c3qm.js";
|
|
4
|
-
import { U as buildProvidersList } from "./agents-
|
|
4
|
+
import { U as buildProvidersList } from "./agents-fc1FJDvC.js";
|
|
5
5
|
import { handleError } from "./server/handlers/error.js";
|
|
6
6
|
// src/server/utils/resolve-builder-model-policy.ts
|
|
7
7
|
/**
|
|
@@ -3,7 +3,7 @@ import { _ as MastraFGAPermissions } from "./utils-CvYihOoy.js";
|
|
|
3
3
|
import { t as HTTPException } from "./http-exception-CzaWkxMl.js";
|
|
4
4
|
import { a as agentIdPathParams, o as agentPlanQuerySchema, s as agentPlanResponseSchema } from "./agents-B0OpLdbp.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-fc1FJDvC.js";
|
|
7
7
|
import { handleError } from "./server/handlers/error.js";
|
|
8
8
|
import { submitPlanTool } from "@mastra/core/tools";
|
|
9
9
|
// src/server/handlers/plans.ts
|
|
@@ -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_agents = require("./agents-CH_G37hG.cjs");
|
|
5
5
|
const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
|
|
6
|
-
const require_agents$1 = require("./agents-
|
|
6
|
+
const require_agents$1 = require("./agents-pZbKdbyw.cjs");
|
|
7
7
|
const require_server_handlers_error = require("./server/handlers/error.cjs");
|
|
8
8
|
let _mastra_core_tools = require("@mastra/core/tools");
|
|
9
9
|
// src/server/handlers/plans.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-CQI-hT2b.js";
|
|
2
|
-
import { a as require_tiff, c as require_png, d as require_gif, f as require_bmp, i as require_webp, l as require_jpeg, m as require_utils, o as require_svg, p as require_avif, r as require_sync, s as require_psd, u as require_ico } from "./dist-
|
|
2
|
+
import { a as require_tiff, c as require_png, d as require_gif, f as require_bmp, i as require_webp, l as require_jpeg, m as require_utils, o as require_svg, p as require_avif, r as require_sync, s as require_psd, u as require_ico } from "./dist-DT4-N7GI.js";
|
|
3
3
|
import tty from "tty";
|
|
4
4
|
import process$1 from "process";
|
|
5
5
|
import os from "os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-10nMEhjP.cjs");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-BioCAWZZ.cjs");
|
|
3
3
|
let tty = require("tty");
|
|
4
4
|
tty = require_rolldown_runtime.__toESM(tty, 1);
|
|
5
5
|
let process$1 = require("process");
|
|
@@ -3,7 +3,7 @@ import { _ as MastraFGAPermissions, a as getEffectiveThreadId, i as getEffective
|
|
|
3
3
|
import { t as HTTPException } from "./http-exception-CzaWkxMl.js";
|
|
4
4
|
import { a as deleteResponseSchema, i as createResponseBodySchema, o as responseIdPathParams, u as responseObjectSchema } from "./responses-D-fsDRLd.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-fc1FJDvC.js";
|
|
7
7
|
import { handleError } from "./server/handlers/error.js";
|
|
8
8
|
import { buildCompletedResponse, buildInProgressResponse, createMessageId, createOutputTextPart, createResponseStreamEventTranslator, formatSseEvent, mapMastraToolsToResponseTools, mapResponseInputToExecutionMessages, mapResponseTurnRecordToResponse, toResponseStatus, toResponseUsage } from "./server/handlers/responses.adapter.js";
|
|
9
9
|
import { deleteResponseTurnRecord, findResponseTurnRecord, findResponseTurnRecordAcrossAgents, getAgentMemoryStore, persistResponseTurnRecord, resolveResponseTurnMessagesForStorage } 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_responses = require("./responses-CTiwnWeF.cjs");
|
|
5
5
|
const require_route_builder = require("./route-builder-DjTBxSZN.cjs");
|
|
6
|
-
const require_agents = require("./agents-
|
|
6
|
+
const require_agents = require("./agents-pZbKdbyw.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");
|