@mastra/server 0.0.0-vnext-20251104230439 → 0.0.0-vnext-20251119160359
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/CHANGELOG.md +480 -3
- package/dist/{chunk-BANGX6SC.cjs → chunk-2YZH5PH6.cjs} +5 -5
- package/dist/chunk-2YZH5PH6.cjs.map +1 -0
- package/dist/{chunk-46Z2KDQL.js → chunk-3AMNUUZF.js} +11 -11
- package/dist/chunk-3AMNUUZF.js.map +1 -0
- package/dist/{chunk-IGOWG5V5.js → chunk-3F52QCI4.js} +5 -5
- package/dist/chunk-3F52QCI4.js.map +1 -0
- package/dist/{chunk-JIIVA4BA.cjs → chunk-7HVY3D64.cjs} +61 -193
- package/dist/chunk-7HVY3D64.cjs.map +1 -0
- package/dist/{chunk-GTZOYEAU.cjs → chunk-A24TSVEZ.cjs} +12 -12
- package/dist/chunk-A24TSVEZ.cjs.map +1 -0
- package/dist/{chunk-LPCK5MAF.js → chunk-B3Z6J745.js} +6 -6
- package/dist/{chunk-LPCK5MAF.js.map → chunk-B3Z6J745.js.map} +1 -1
- package/dist/{chunk-DNUO33HF.js → chunk-D7T74TVR.js} +3 -3
- package/dist/chunk-D7T74TVR.js.map +1 -0
- package/dist/{chunk-JZ65BJ6H.cjs → chunk-EHACNWDL.cjs} +12 -9
- package/dist/chunk-EHACNWDL.cjs.map +1 -0
- package/dist/{chunk-ALOLTNSO.js → chunk-FPBYKMIS.js} +3 -3
- package/dist/{chunk-ALOLTNSO.js.map → chunk-FPBYKMIS.js.map} +1 -1
- package/dist/{chunk-B6NK4KI5.cjs → chunk-GLAZTMX3.cjs} +6 -6
- package/dist/{chunk-B6NK4KI5.cjs.map → chunk-GLAZTMX3.cjs.map} +1 -1
- package/dist/{chunk-BHQH5QXD.cjs → chunk-KF3RI45U.cjs} +4 -4
- package/dist/{chunk-BHQH5QXD.cjs.map → chunk-KF3RI45U.cjs.map} +1 -1
- package/dist/{chunk-XXGID4PQ.cjs → chunk-KJIDZQRA.cjs} +4 -4
- package/dist/{chunk-XXGID4PQ.cjs.map → chunk-KJIDZQRA.cjs.map} +1 -1
- package/dist/{chunk-JO2AZFJN.js → chunk-ND5OKOMT.js} +4 -4
- package/dist/{chunk-JO2AZFJN.js.map → chunk-ND5OKOMT.js.map} +1 -1
- package/dist/{chunk-QFGNUBOA.cjs → chunk-U7GLIXYO.cjs} +46 -55
- package/dist/chunk-U7GLIXYO.cjs.map +1 -0
- package/dist/{chunk-FKZVCLOY.js → chunk-V6JYJS7O.js} +46 -55
- package/dist/chunk-V6JYJS7O.js.map +1 -0
- package/dist/{chunk-KCP6I5F3.js → chunk-VEVU6EUO.js} +40 -171
- package/dist/chunk-VEVU6EUO.js.map +1 -0
- package/dist/{chunk-LWLSQ2W4.cjs → chunk-W2KMU354.cjs} +3 -3
- package/dist/chunk-W2KMU354.cjs.map +1 -0
- package/dist/{chunk-AEVI2HIU.cjs → chunk-X3MICMI2.cjs} +7 -38
- package/dist/chunk-X3MICMI2.cjs.map +1 -0
- package/dist/{chunk-VYR3SAFM.js → chunk-Z2O5YVHY.js} +12 -9
- package/dist/chunk-Z2O5YVHY.js.map +1 -0
- package/dist/{chunk-R6OQFR47.js → chunk-ZJ6KEY6H.js} +5 -35
- package/dist/chunk-ZJ6KEY6H.js.map +1 -0
- package/dist/server/handlers/a2a.cjs +7 -7
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +19 -23
- package/dist/server/handlers/agent-builder.d.ts +0 -6
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +19 -19
- package/dist/server/handlers/agents.d.ts +1 -1
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/memory.cjs +16 -16
- package/dist/server/handlers/memory.d.ts +3 -6
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +7 -7
- package/dist/server/handlers/observability.d.ts +8 -8
- package/dist/server/handlers/observability.d.ts.map +1 -1
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/voice.cjs +5 -5
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +19 -23
- package/dist/server/handlers/workflows.d.ts +0 -6
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +18 -18
- package/dist/server/handlers.js +9 -9
- package/dist/server/utils.d.ts +2 -1
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +13 -8
- package/dist/chunk-46Z2KDQL.js.map +0 -1
- package/dist/chunk-AEVI2HIU.cjs.map +0 -1
- package/dist/chunk-BANGX6SC.cjs.map +0 -1
- package/dist/chunk-DNUO33HF.js.map +0 -1
- package/dist/chunk-FKZVCLOY.js.map +0 -1
- package/dist/chunk-GTZOYEAU.cjs.map +0 -1
- package/dist/chunk-IGOWG5V5.js.map +0 -1
- package/dist/chunk-JIIVA4BA.cjs.map +0 -1
- package/dist/chunk-JZ65BJ6H.cjs.map +0 -1
- package/dist/chunk-KCP6I5F3.js.map +0 -1
- package/dist/chunk-LWLSQ2W4.cjs.map +0 -1
- package/dist/chunk-QFGNUBOA.cjs.map +0 -1
- package/dist/chunk-R6OQFR47.js.map +0 -1
- package/dist/chunk-VYR3SAFM.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { require_token_error } from './chunk-TOCYBDP2.js';
|
|
2
2
|
import { openai } from './chunk-ZULZ2752.js';
|
|
3
3
|
import { createIdGenerator, AISDKError, isAbortError, getErrorMessage, APICallError, delay, safeParseJSON, safeValidateTypes, convertAsyncIteratorToReadableStream, validatorSymbol } from './chunk-RQK4FQUD.js';
|
|
4
|
-
import { getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, createWorkflowRunHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamWorkflowHandler, streamLegacyWorkflowHandler, streamVNextWorkflowHandler, observeStreamLegacyWorkflowHandler, observeStreamWorkflowHandler, observeStreamVNextWorkflowHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, resumeStreamWorkflowHandler, listWorkflowRunsHandler, cancelWorkflowRunHandler
|
|
5
|
-
import { WorkflowRegistry, getWorkflowInfo } from './chunk-
|
|
4
|
+
import { getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, createWorkflowRunHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamWorkflowHandler, streamLegacyWorkflowHandler, streamVNextWorkflowHandler, observeStreamLegacyWorkflowHandler, observeStreamWorkflowHandler, observeStreamVNextWorkflowHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, resumeStreamWorkflowHandler, listWorkflowRunsHandler, cancelWorkflowRunHandler } from './chunk-ZJ6KEY6H.js';
|
|
5
|
+
import { WorkflowRegistry, getWorkflowInfo } from './chunk-D7T74TVR.js';
|
|
6
6
|
import { handleError } from './chunk-UXGQZUYZ.js';
|
|
7
7
|
import { HTTPException } from './chunk-6QWQZI4Q.js';
|
|
8
8
|
import { __commonJS, __export, __toESM } from './chunk-PR4QN5HX.js';
|
|
@@ -729,7 +729,6 @@ __export(agent_builder_exports, {
|
|
|
729
729
|
resumeAgentBuilderActionHandler: () => resumeAgentBuilderActionHandler,
|
|
730
730
|
resumeAsyncAgentBuilderActionHandler: () => resumeAsyncAgentBuilderActionHandler,
|
|
731
731
|
resumeStreamAgentBuilderActionHandler: () => resumeStreamAgentBuilderActionHandler,
|
|
732
|
-
sendAgentBuilderActionRunEventHandler: () => sendAgentBuilderActionRunEventHandler,
|
|
733
732
|
startAgentBuilderActionRunHandler: () => startAgentBuilderActionRunHandler,
|
|
734
733
|
startAsyncAgentBuilderActionHandler: () => startAsyncAgentBuilderActionHandler,
|
|
735
734
|
streamAgentBuilderActionHandler: () => streamAgentBuilderActionHandler,
|
|
@@ -13809,11 +13808,19 @@ var updateWorkingMemoryTool = (memoryConfig) => {
|
|
|
13809
13808
|
execute: async (inputData, context) => {
|
|
13810
13809
|
const threadId = context?.agent?.threadId;
|
|
13811
13810
|
const resourceId = context?.agent?.resourceId;
|
|
13812
|
-
const memory = context?.
|
|
13811
|
+
const memory = context?.memory;
|
|
13813
13812
|
if (!threadId || !memory || !resourceId) {
|
|
13814
13813
|
throw new Error("Thread ID, Memory instance, and resourceId are required for working memory updates");
|
|
13815
13814
|
}
|
|
13816
|
-
|
|
13815
|
+
let thread = await memory.getThreadById({ threadId });
|
|
13816
|
+
if (!thread) {
|
|
13817
|
+
thread = await memory.createThread({
|
|
13818
|
+
threadId,
|
|
13819
|
+
resourceId,
|
|
13820
|
+
memoryConfig
|
|
13821
|
+
});
|
|
13822
|
+
}
|
|
13823
|
+
if (thread.resourceId && thread.resourceId !== resourceId) {
|
|
13817
13824
|
throw new Error(`Thread with id ${threadId} resourceId does not match the current resourceId ${resourceId}`);
|
|
13818
13825
|
}
|
|
13819
13826
|
const workingMemory = typeof inputData.memory === "string" ? inputData.memory : JSON.stringify(inputData.memory);
|
|
@@ -13845,7 +13852,7 @@ var __experimental_updateWorkingMemoryToolVNext = (config) => {
|
|
|
13845
13852
|
execute: async (inputData, context) => {
|
|
13846
13853
|
const threadId = context?.agent?.threadId;
|
|
13847
13854
|
const resourceId = context?.agent?.resourceId;
|
|
13848
|
-
const memory = context?.
|
|
13855
|
+
const memory = context?.memory;
|
|
13849
13856
|
if (!threadId || !memory || !resourceId) {
|
|
13850
13857
|
throw new Error("Thread ID, Memory instance, and resourceId are required for working memory updates");
|
|
13851
13858
|
}
|
|
@@ -13932,12 +13939,13 @@ var Memory = class extends MastraMemory {
|
|
|
13932
13939
|
);
|
|
13933
13940
|
}
|
|
13934
13941
|
}
|
|
13935
|
-
async
|
|
13936
|
-
const { threadId, resourceId, perPage, page, orderBy, threadConfig, vectorSearchString, filter: filter3 } = args;
|
|
13942
|
+
async recall(args) {
|
|
13943
|
+
const { threadId, resourceId, perPage: perPageArg, page, orderBy, threadConfig, vectorSearchString, filter: filter3 } = args;
|
|
13937
13944
|
const config = this.getMergedThreadConfig(threadConfig || {});
|
|
13938
13945
|
if (resourceId) await this.validateThreadIsOwnedByResource(threadId, resourceId, config);
|
|
13946
|
+
const perPage = perPageArg !== void 0 ? perPageArg : config.lastMessages;
|
|
13939
13947
|
const vectorResults = [];
|
|
13940
|
-
this.logger.debug(`Memory
|
|
13948
|
+
this.logger.debug(`Memory recall() with:`, {
|
|
13941
13949
|
threadId,
|
|
13942
13950
|
perPage,
|
|
13943
13951
|
page,
|
|
@@ -14006,23 +14014,6 @@ var Memory = class extends MastraMemory {
|
|
|
14006
14014
|
const messages = list.get.all.db();
|
|
14007
14015
|
return { messages };
|
|
14008
14016
|
}
|
|
14009
|
-
async rememberMessages(args) {
|
|
14010
|
-
const { threadId, resourceId, vectorMessageSearch, config } = args;
|
|
14011
|
-
const threadConfig = this.getMergedThreadConfig(config || {});
|
|
14012
|
-
if (resourceId) await this.validateThreadIsOwnedByResource(threadId, resourceId, threadConfig);
|
|
14013
|
-
if (!threadConfig.lastMessages && !threadConfig.semanticRecall) {
|
|
14014
|
-
return { messages: [] };
|
|
14015
|
-
}
|
|
14016
|
-
const messagesResult = await this.query({
|
|
14017
|
-
resourceId,
|
|
14018
|
-
threadId,
|
|
14019
|
-
perPage: threadConfig.lastMessages,
|
|
14020
|
-
vectorSearchString: threadConfig.semanticRecall && vectorMessageSearch ? vectorMessageSearch : void 0,
|
|
14021
|
-
threadConfig: config
|
|
14022
|
-
});
|
|
14023
|
-
this.logger.debug(`Remembered message history includes ${messagesResult.messages.length} messages.`);
|
|
14024
|
-
return messagesResult;
|
|
14025
|
-
}
|
|
14026
14017
|
async getThreadById({ threadId }) {
|
|
14027
14018
|
return this.storage.getThreadById({ threadId });
|
|
14028
14019
|
}
|
|
@@ -14920,7 +14911,11 @@ function filter2(obj) {
|
|
|
14920
14911
|
}
|
|
14921
14912
|
function secureJsonParse2(text5) {
|
|
14922
14913
|
const { stackTraceLimit } = Error;
|
|
14923
|
-
|
|
14914
|
+
try {
|
|
14915
|
+
Error.stackTraceLimit = 0;
|
|
14916
|
+
} catch (e2) {
|
|
14917
|
+
return _parse2(text5);
|
|
14918
|
+
}
|
|
14924
14919
|
try {
|
|
14925
14920
|
return _parse2(text5);
|
|
14926
14921
|
} finally {
|
|
@@ -16149,13 +16144,13 @@ function asSchema4(schema) {
|
|
|
16149
16144
|
}
|
|
16150
16145
|
var __defProp5 = Object.defineProperty;
|
|
16151
16146
|
var __export5 = (target, all) => {
|
|
16152
|
-
for (var
|
|
16153
|
-
__defProp5(target,
|
|
16147
|
+
for (var name163 in all)
|
|
16148
|
+
__defProp5(target, name163, { get: all[name163], enumerable: true });
|
|
16154
16149
|
};
|
|
16155
|
-
var
|
|
16156
|
-
var
|
|
16157
|
-
var
|
|
16158
|
-
var
|
|
16150
|
+
var name66 = "AI_NoObjectGeneratedError";
|
|
16151
|
+
var marker65 = `vercel.ai.error.${name66}`;
|
|
16152
|
+
var symbol65 = Symbol.for(marker65);
|
|
16153
|
+
var _a65;
|
|
16159
16154
|
var NoObjectGeneratedError4 = class extends AISDKError2 {
|
|
16160
16155
|
constructor({
|
|
16161
16156
|
message = "No object generated.",
|
|
@@ -16165,18 +16160,18 @@ var NoObjectGeneratedError4 = class extends AISDKError2 {
|
|
|
16165
16160
|
usage,
|
|
16166
16161
|
finishReason
|
|
16167
16162
|
}) {
|
|
16168
|
-
super({ name:
|
|
16169
|
-
this[
|
|
16163
|
+
super({ name: name66, message, cause });
|
|
16164
|
+
this[_a65] = true;
|
|
16170
16165
|
this.text = text22;
|
|
16171
16166
|
this.response = response;
|
|
16172
16167
|
this.usage = usage;
|
|
16173
16168
|
this.finishReason = finishReason;
|
|
16174
16169
|
}
|
|
16175
16170
|
static isInstance(error) {
|
|
16176
|
-
return AISDKError2.hasMarker(error,
|
|
16171
|
+
return AISDKError2.hasMarker(error, marker65);
|
|
16177
16172
|
}
|
|
16178
16173
|
};
|
|
16179
|
-
|
|
16174
|
+
_a65 = symbol65;
|
|
16180
16175
|
var dataContentSchema4 = z$1.union([
|
|
16181
16176
|
z$1.string(),
|
|
16182
16177
|
z$1.instanceof(Uint8Array),
|
|
@@ -16184,8 +16179,8 @@ var dataContentSchema4 = z$1.union([
|
|
|
16184
16179
|
z$1.custom(
|
|
16185
16180
|
// Buffer might not be available in some environments such as CloudFlare:
|
|
16186
16181
|
(value) => {
|
|
16187
|
-
var
|
|
16188
|
-
return (_b8 = (
|
|
16182
|
+
var _a163, _b8;
|
|
16183
|
+
return (_b8 = (_a163 = globalThis.Buffer) == null ? void 0 : _a163.isBuffer(value)) != null ? _b8 : false;
|
|
16189
16184
|
},
|
|
16190
16185
|
{ message: "Must be a Buffer" }
|
|
16191
16186
|
)
|
|
@@ -16734,130 +16729,6 @@ var object4 = ({
|
|
|
16734
16729
|
}
|
|
16735
16730
|
};
|
|
16736
16731
|
};
|
|
16737
|
-
var ClientOrServerImplementationSchema4 = z$1.looseObject({
|
|
16738
|
-
name: z$1.string(),
|
|
16739
|
-
version: z$1.string()
|
|
16740
|
-
});
|
|
16741
|
-
var BaseParamsSchema4 = z$1.looseObject({
|
|
16742
|
-
_meta: z$1.optional(z$1.object({}).loose())
|
|
16743
|
-
});
|
|
16744
|
-
var ResultSchema4 = BaseParamsSchema4;
|
|
16745
|
-
var RequestSchema4 = z$1.object({
|
|
16746
|
-
method: z$1.string(),
|
|
16747
|
-
params: z$1.optional(BaseParamsSchema4)
|
|
16748
|
-
});
|
|
16749
|
-
var ServerCapabilitiesSchema4 = z$1.looseObject({
|
|
16750
|
-
experimental: z$1.optional(z$1.object({}).loose()),
|
|
16751
|
-
logging: z$1.optional(z$1.object({}).loose()),
|
|
16752
|
-
prompts: z$1.optional(
|
|
16753
|
-
z$1.looseObject({
|
|
16754
|
-
listChanged: z$1.optional(z$1.boolean())
|
|
16755
|
-
})
|
|
16756
|
-
),
|
|
16757
|
-
resources: z$1.optional(
|
|
16758
|
-
z$1.looseObject({
|
|
16759
|
-
subscribe: z$1.optional(z$1.boolean()),
|
|
16760
|
-
listChanged: z$1.optional(z$1.boolean())
|
|
16761
|
-
})
|
|
16762
|
-
),
|
|
16763
|
-
tools: z$1.optional(
|
|
16764
|
-
z$1.looseObject({
|
|
16765
|
-
listChanged: z$1.optional(z$1.boolean())
|
|
16766
|
-
})
|
|
16767
|
-
)
|
|
16768
|
-
});
|
|
16769
|
-
ResultSchema4.extend({
|
|
16770
|
-
protocolVersion: z$1.string(),
|
|
16771
|
-
capabilities: ServerCapabilitiesSchema4,
|
|
16772
|
-
serverInfo: ClientOrServerImplementationSchema4,
|
|
16773
|
-
instructions: z$1.optional(z$1.string())
|
|
16774
|
-
});
|
|
16775
|
-
var PaginatedResultSchema4 = ResultSchema4.extend({
|
|
16776
|
-
nextCursor: z$1.optional(z$1.string())
|
|
16777
|
-
});
|
|
16778
|
-
var ToolSchema4 = z$1.object({
|
|
16779
|
-
name: z$1.string(),
|
|
16780
|
-
description: z$1.optional(z$1.string()),
|
|
16781
|
-
inputSchema: z$1.object({
|
|
16782
|
-
type: z$1.literal("object"),
|
|
16783
|
-
properties: z$1.optional(z$1.object({}).loose())
|
|
16784
|
-
}).loose()
|
|
16785
|
-
}).loose();
|
|
16786
|
-
PaginatedResultSchema4.extend({
|
|
16787
|
-
tools: z$1.array(ToolSchema4)
|
|
16788
|
-
});
|
|
16789
|
-
var TextContentSchema4 = z$1.object({
|
|
16790
|
-
type: z$1.literal("text"),
|
|
16791
|
-
text: z$1.string()
|
|
16792
|
-
}).loose();
|
|
16793
|
-
var ImageContentSchema4 = z$1.object({
|
|
16794
|
-
type: z$1.literal("image"),
|
|
16795
|
-
data: z$1.base64(),
|
|
16796
|
-
mimeType: z$1.string()
|
|
16797
|
-
}).loose();
|
|
16798
|
-
var ResourceContentsSchema4 = z$1.object({
|
|
16799
|
-
/**
|
|
16800
|
-
* The URI of this resource.
|
|
16801
|
-
*/
|
|
16802
|
-
uri: z$1.string(),
|
|
16803
|
-
/**
|
|
16804
|
-
* The MIME type of this resource, if known.
|
|
16805
|
-
*/
|
|
16806
|
-
mimeType: z$1.optional(z$1.string())
|
|
16807
|
-
}).loose();
|
|
16808
|
-
var TextResourceContentsSchema4 = ResourceContentsSchema4.extend({
|
|
16809
|
-
text: z$1.string()
|
|
16810
|
-
});
|
|
16811
|
-
var BlobResourceContentsSchema4 = ResourceContentsSchema4.extend({
|
|
16812
|
-
blob: z$1.base64()
|
|
16813
|
-
});
|
|
16814
|
-
var EmbeddedResourceSchema4 = z$1.object({
|
|
16815
|
-
type: z$1.literal("resource"),
|
|
16816
|
-
resource: z$1.union([TextResourceContentsSchema4, BlobResourceContentsSchema4])
|
|
16817
|
-
}).loose();
|
|
16818
|
-
ResultSchema4.extend({
|
|
16819
|
-
content: z$1.array(
|
|
16820
|
-
z$1.union([TextContentSchema4, ImageContentSchema4, EmbeddedResourceSchema4])
|
|
16821
|
-
),
|
|
16822
|
-
isError: z$1.boolean().default(false).optional()
|
|
16823
|
-
}).or(
|
|
16824
|
-
ResultSchema4.extend({
|
|
16825
|
-
toolResult: z$1.unknown()
|
|
16826
|
-
})
|
|
16827
|
-
);
|
|
16828
|
-
var JSONRPC_VERSION4 = "2.0";
|
|
16829
|
-
var JSONRPCRequestSchema4 = z$1.object({
|
|
16830
|
-
jsonrpc: z$1.literal(JSONRPC_VERSION4),
|
|
16831
|
-
id: z$1.union([z$1.string(), z$1.number().int()])
|
|
16832
|
-
}).merge(RequestSchema4).strict();
|
|
16833
|
-
var JSONRPCResponseSchema4 = z$1.object({
|
|
16834
|
-
jsonrpc: z$1.literal(JSONRPC_VERSION4),
|
|
16835
|
-
id: z$1.union([z$1.string(), z$1.number().int()]),
|
|
16836
|
-
result: ResultSchema4
|
|
16837
|
-
}).strict();
|
|
16838
|
-
var JSONRPCErrorSchema4 = z$1.object({
|
|
16839
|
-
jsonrpc: z$1.literal(JSONRPC_VERSION4),
|
|
16840
|
-
id: z$1.union([z$1.string(), z$1.number().int()]),
|
|
16841
|
-
error: z$1.object({
|
|
16842
|
-
code: z$1.number().int(),
|
|
16843
|
-
message: z$1.string(),
|
|
16844
|
-
data: z$1.optional(z$1.unknown())
|
|
16845
|
-
})
|
|
16846
|
-
}).strict();
|
|
16847
|
-
var JSONRPCNotificationSchema4 = z$1.object({
|
|
16848
|
-
jsonrpc: z$1.literal(JSONRPC_VERSION4)
|
|
16849
|
-
}).merge(
|
|
16850
|
-
z$1.object({
|
|
16851
|
-
method: z$1.string(),
|
|
16852
|
-
params: z$1.optional(BaseParamsSchema4)
|
|
16853
|
-
})
|
|
16854
|
-
).strict();
|
|
16855
|
-
z$1.union([
|
|
16856
|
-
JSONRPCRequestSchema4,
|
|
16857
|
-
JSONRPCNotificationSchema4,
|
|
16858
|
-
JSONRPCResponseSchema4,
|
|
16859
|
-
JSONRPCErrorSchema4
|
|
16860
|
-
]);
|
|
16861
16732
|
|
|
16862
16733
|
// ../agent-builder/dist/index.js
|
|
16863
16734
|
var UNIT_KINDS = ["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"];
|
|
@@ -17734,6 +17605,7 @@ export const weatherAgent = new Agent({
|
|
|
17734
17605
|
tools: { weatherTool },
|
|
17735
17606
|
memory: new Memory({
|
|
17736
17607
|
storage: new LibSQLStore({
|
|
17608
|
+
id: 'mastra-memory-storage',
|
|
17737
17609
|
url: 'file:../mastra.db', // ask user what database to use, use this as the default
|
|
17738
17610
|
}),
|
|
17739
17611
|
}),
|
|
@@ -17901,6 +17773,7 @@ export const mastra = new Mastra({
|
|
|
17901
17773
|
workflows: { weatherWorkflow },
|
|
17902
17774
|
agents: { weatherAgent },
|
|
17903
17775
|
storage: new LibSQLStore({
|
|
17776
|
+
id: 'mastra-storage',
|
|
17904
17777
|
// stores observability, evals, ... into memory storage, if it needs to persist, change to file:../mastra.db
|
|
17905
17778
|
url: ":memory:",
|
|
17906
17779
|
}),
|
|
@@ -22210,7 +22083,7 @@ export const mastra = new Mastra({
|
|
|
22210
22083
|
sendEmailWorkflow, // Use camelCase for keys
|
|
22211
22084
|
dataProcessingWorkflow
|
|
22212
22085
|
},
|
|
22213
|
-
storage: new LibSQLStore({ url: 'file:./mastra.db' }), // Required for suspend/resume
|
|
22086
|
+
storage: new LibSQLStore({ id: 'mastra-storage', url: 'file:./mastra.db' }), // Required for suspend/resume
|
|
22214
22087
|
});
|
|
22215
22088
|
\`\`\`
|
|
22216
22089
|
|
|
@@ -23037,11 +22910,7 @@ var cancelAgentBuilderActionRunHandler = createAgentBuilderWorkflowHandler(
|
|
|
23037
22910
|
cancelWorkflowRunHandler,
|
|
23038
22911
|
"Cancelling agent builder action run"
|
|
23039
22912
|
);
|
|
23040
|
-
var sendAgentBuilderActionRunEventHandler = createAgentBuilderWorkflowHandler(
|
|
23041
|
-
sendWorkflowRunEventHandler,
|
|
23042
|
-
"Sending agent builder action run event"
|
|
23043
|
-
);
|
|
23044
22913
|
|
|
23045
|
-
export { agent_builder_exports, cancelAgentBuilderActionRunHandler, createAgentBuilderActionRunHandler, getAgentBuilderActionByIdHandler, getAgentBuilderActionRunByIdHandler, getAgentBuilderActionRunExecutionResultHandler, getAgentBuilderActionRunsHandler, getAgentBuilderActionsHandler, observeStreamAgentBuilderActionHandler, observeStreamLegacyAgentBuilderActionHandler, observeStreamVNextAgentBuilderActionHandler, resumeAgentBuilderActionHandler, resumeAsyncAgentBuilderActionHandler, resumeStreamAgentBuilderActionHandler,
|
|
23046
|
-
//# sourceMappingURL=chunk-
|
|
23047
|
-
//# sourceMappingURL=chunk-
|
|
22914
|
+
export { agent_builder_exports, cancelAgentBuilderActionRunHandler, createAgentBuilderActionRunHandler, getAgentBuilderActionByIdHandler, getAgentBuilderActionRunByIdHandler, getAgentBuilderActionRunExecutionResultHandler, getAgentBuilderActionRunsHandler, getAgentBuilderActionsHandler, observeStreamAgentBuilderActionHandler, observeStreamLegacyAgentBuilderActionHandler, observeStreamVNextAgentBuilderActionHandler, resumeAgentBuilderActionHandler, resumeAsyncAgentBuilderActionHandler, resumeStreamAgentBuilderActionHandler, startAgentBuilderActionRunHandler, startAsyncAgentBuilderActionHandler, streamAgentBuilderActionHandler, streamLegacyAgentBuilderActionHandler, streamVNextAgentBuilderActionHandler };
|
|
22915
|
+
//# sourceMappingURL=chunk-VEVU6EUO.js.map
|
|
22916
|
+
//# sourceMappingURL=chunk-VEVU6EUO.js.map
|