@mastra/server 0.0.0-ai-v5-20250729012312 → 0.0.0-ai-v5-20250801192614
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/{chunk-AJRURO6F.cjs → chunk-3UVCRG2A.cjs} +26 -24
- package/dist/chunk-3UVCRG2A.cjs.map +1 -0
- package/dist/{chunk-4D66QEKC.js → chunk-4MQU6AJN.js} +5 -3
- package/dist/chunk-4MQU6AJN.js.map +1 -0
- package/dist/{chunk-CCGRCYWJ.cjs → chunk-4QSNRCOT.cjs} +4 -2
- package/dist/chunk-4QSNRCOT.cjs.map +1 -0
- package/dist/{chunk-RHSWAXKB.cjs → chunk-4US5W7PH.cjs} +26 -24
- package/dist/chunk-4US5W7PH.cjs.map +1 -0
- package/dist/{chunk-36BLNJHS.js → chunk-7FHF55WA.js} +2 -0
- package/dist/chunk-7FHF55WA.js.map +1 -0
- package/dist/{chunk-EZXKTV2W.js → chunk-7MEJQMCS.js} +7 -5
- package/dist/chunk-7MEJQMCS.js.map +1 -0
- package/dist/{chunk-2KZFMI6P.cjs → chunk-7NADHFD2.cjs} +2 -0
- package/dist/chunk-7NADHFD2.cjs.map +1 -0
- package/dist/{chunk-QGX47B5D.cjs → chunk-BED2O446.cjs} +11 -9
- package/dist/chunk-BED2O446.cjs.map +1 -0
- package/dist/{chunk-T7HAZC2E.js → chunk-BUOJL3MN.js} +6 -4
- package/dist/chunk-BUOJL3MN.js.map +1 -0
- package/dist/{chunk-HAGPF7OS.cjs → chunk-CERIVHRO.cjs} +16 -14
- package/dist/chunk-CERIVHRO.cjs.map +1 -0
- package/dist/{chunk-LF7P5PLR.js → chunk-CY4TP3FK.js} +3 -1
- package/dist/chunk-CY4TP3FK.js.map +1 -0
- package/dist/{chunk-WNVFNNWN.js → chunk-G7NVCO5M.js} +5 -3
- package/dist/chunk-G7NVCO5M.js.map +1 -0
- package/dist/{chunk-KHZKYUNR.js → chunk-HWHKM67I.js} +6 -4
- package/dist/chunk-HWHKM67I.js.map +1 -0
- package/dist/{chunk-BYCOGHDE.js → chunk-HXZTRBY4.js} +6 -4
- package/dist/chunk-HXZTRBY4.js.map +1 -0
- package/dist/{chunk-G7KH752Y.cjs → chunk-ILCWPBYQ.cjs} +9 -7
- package/dist/chunk-ILCWPBYQ.cjs.map +1 -0
- package/dist/{chunk-UCV4247U.cjs → chunk-JGVY3KWV.cjs} +47 -45
- package/dist/chunk-JGVY3KWV.cjs.map +1 -0
- package/dist/{chunk-MKHRYD4K.js → chunk-KXXJ7Y4H.js} +37 -5
- package/dist/chunk-KXXJ7Y4H.js.map +1 -0
- package/dist/{chunk-HISYIDYH.cjs → chunk-LRUH33B4.cjs} +2 -0
- package/dist/chunk-LRUH33B4.cjs.map +1 -0
- package/dist/{chunk-FC5QBMOM.cjs → chunk-LZASFI6W.cjs} +91 -58
- package/dist/chunk-LZASFI6W.cjs.map +1 -0
- package/dist/{chunk-LCM566I4.js → chunk-MMROOK5J.js} +2 -0
- package/dist/chunk-MMROOK5J.js.map +1 -0
- package/dist/{chunk-7TP2LX5L.cjs → chunk-NCS2OXX6.cjs} +20 -18
- package/dist/chunk-NCS2OXX6.cjs.map +1 -0
- package/dist/{chunk-HRSAZUIK.cjs → chunk-O4I563YW.cjs} +24 -22
- package/dist/chunk-O4I563YW.cjs.map +1 -0
- package/dist/{chunk-RSEO4XPX.js → chunk-OW4FX5TS.js} +3 -1
- package/dist/chunk-OW4FX5TS.js.map +1 -0
- package/dist/{chunk-T7WA465P.cjs → chunk-OZE3KILQ.cjs} +4 -2
- package/dist/chunk-OZE3KILQ.cjs.map +1 -0
- package/dist/{chunk-MLKGABMK.js → chunk-PZ5AY32C.js} +2 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/{chunk-75ZPJI57.cjs → chunk-Q7SFCCGT.cjs} +2 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/{chunk-PZQDCRPV.cjs → chunk-RE4RPXT2.cjs} +4 -2
- package/dist/chunk-RE4RPXT2.cjs.map +1 -0
- package/dist/{chunk-6KP2OBYA.cjs → chunk-S37KCGOR.cjs} +88 -86
- package/dist/chunk-S37KCGOR.cjs.map +1 -0
- package/dist/{chunk-RG473F6Y.js → chunk-SQ7KKIH3.js} +5 -3
- package/dist/chunk-SQ7KKIH3.js.map +1 -0
- package/dist/{chunk-B36R2PHA.js → chunk-TLOXYMXG.js} +3 -1
- package/dist/chunk-TLOXYMXG.js.map +1 -0
- package/dist/{chunk-6T5JUKOQ.js → chunk-TXAQU2XN.js} +4 -2
- package/dist/chunk-TXAQU2XN.js.map +1 -0
- package/dist/{chunk-ZYAFP2AV.js → chunk-UVOSITKU.js} +6 -4
- package/dist/chunk-UVOSITKU.js.map +1 -0
- package/dist/{chunk-424T5F2J.cjs → chunk-VIGPWTDA.cjs} +9 -7
- package/dist/chunk-VIGPWTDA.cjs.map +1 -0
- package/dist/{chunk-WBRFIHSF.js → chunk-YS66MFDY.js} +7 -5
- package/dist/chunk-YS66MFDY.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/server/a2a/protocol.d.ts +8 -0
- package/dist/server/a2a/protocol.d.ts.map +1 -0
- package/dist/server/a2a/store.d.ts +14 -0
- package/dist/server/a2a/store.d.ts.map +1 -0
- package/dist/server/a2a/tasks.d.ts +20 -0
- package/dist/server/a2a/tasks.d.ts.map +1 -0
- package/dist/server/handlers/a2a.cjs +9 -7
- package/dist/server/handlers/a2a.cjs.map +1 -0
- package/dist/server/handlers/a2a.d.ts +66 -6
- package/dist/server/handlers/a2a.d.ts.map +1 -0
- package/dist/server/handlers/a2a.js +3 -1
- package/dist/server/handlers/a2a.js.map +1 -0
- package/dist/server/handlers/agents.cjs +10 -8
- package/dist/server/handlers/agents.cjs.map +1 -0
- package/dist/server/handlers/agents.d.ts +81 -7
- package/dist/server/handlers/agents.d.ts.map +1 -0
- package/dist/server/handlers/agents.js +3 -1
- package/dist/server/handlers/agents.js.map +1 -0
- package/dist/server/handlers/error.cjs +4 -2
- package/dist/server/handlers/error.cjs.map +1 -0
- package/dist/server/handlers/error.d.ts +2 -1
- package/dist/server/handlers/error.d.ts.map +1 -0
- package/dist/server/handlers/error.js +3 -1
- package/dist/server/handlers/error.js.map +1 -0
- package/dist/server/handlers/legacyWorkflows.cjs +13 -11
- package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
- package/dist/server/handlers/legacyWorkflows.d.ts +59 -10
- package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
- package/dist/server/handlers/legacyWorkflows.js +3 -1
- package/dist/server/handlers/legacyWorkflows.js.map +1 -0
- package/dist/server/handlers/logs.cjs +6 -4
- package/dist/server/handlers/logs.cjs.map +1 -0
- package/dist/server/handlers/logs.d.ts +34 -3
- package/dist/server/handlers/logs.d.ts.map +1 -0
- package/dist/server/handlers/logs.js +3 -1
- package/dist/server/handlers/logs.js.map +1 -0
- package/dist/server/handlers/memory.cjs +21 -15
- package/dist/server/handlers/memory.cjs.map +1 -0
- package/dist/server/handlers/memory.d.ts +121 -14
- package/dist/server/handlers/memory.d.ts.map +1 -0
- package/dist/server/handlers/memory.js +3 -1
- package/dist/server/handlers/memory.js.map +1 -0
- package/dist/server/handlers/network.cjs +7 -5
- package/dist/server/handlers/network.cjs.map +1 -0
- package/dist/server/handlers/network.d.ts +51 -4
- package/dist/server/handlers/network.d.ts.map +1 -0
- package/dist/server/handlers/network.js +3 -1
- package/dist/server/handlers/network.js.map +1 -0
- package/dist/server/handlers/scores.cjs +9 -7
- package/dist/server/handlers/scores.cjs.map +1 -0
- package/dist/server/handlers/scores.d.ts +49 -6
- package/dist/server/handlers/scores.d.ts.map +1 -0
- package/dist/server/handlers/scores.js +3 -1
- package/dist/server/handlers/scores.js.map +1 -0
- package/dist/server/handlers/telemetry.cjs +5 -3
- package/dist/server/handlers/telemetry.cjs.map +1 -0
- package/dist/server/handlers/telemetry.d.ts +32 -2
- package/dist/server/handlers/telemetry.d.ts.map +1 -0
- package/dist/server/handlers/telemetry.js +3 -1
- package/dist/server/handlers/telemetry.js.map +1 -0
- package/dist/server/handlers/tools.cjs +7 -5
- package/dist/server/handlers/tools.cjs.map +1 -0
- package/dist/server/handlers/tools.d.ts +21 -4
- package/dist/server/handlers/tools.d.ts.map +1 -0
- package/dist/server/handlers/tools.js +3 -1
- package/dist/server/handlers/tools.js.map +1 -0
- package/dist/server/handlers/utils.cjs +4 -2
- package/dist/server/handlers/utils.cjs.map +1 -0
- package/dist/server/handlers/utils.d.ts +2 -1
- package/dist/server/handlers/utils.d.ts.map +1 -0
- package/dist/server/handlers/utils.js +3 -1
- package/dist/server/handlers/utils.js.map +1 -0
- package/dist/server/handlers/vNextNetwork.cjs +25 -23
- package/dist/server/handlers/vNextNetwork.cjs.map +1 -0
- package/dist/server/handlers/vNextNetwork.d.ts +179 -6
- package/dist/server/handlers/vNextNetwork.d.ts.map +1 -0
- package/dist/server/handlers/vNextNetwork.js +6 -4
- package/dist/server/handlers/vNextNetwork.js.map +1 -0
- package/dist/server/handlers/vector.cjs +9 -7
- package/dist/server/handlers/vector.cjs.map +1 -0
- package/dist/server/handlers/vector.d.ts +51 -6
- package/dist/server/handlers/vector.d.ts.map +1 -0
- package/dist/server/handlers/vector.js +3 -1
- package/dist/server/handlers/vector.js.map +1 -0
- package/dist/server/handlers/voice.cjs +7 -5
- package/dist/server/handlers/voice.cjs.map +1 -0
- package/dist/server/handlers/voice.d.ts +39 -4
- package/dist/server/handlers/voice.d.ts.map +1 -0
- package/dist/server/handlers/voice.js +3 -1
- package/dist/server/handlers/voice.js.map +1 -0
- package/dist/server/handlers/workflows.cjs +18 -16
- package/dist/server/handlers/workflows.cjs.map +1 -0
- package/dist/server/handlers/workflows.d.ts +88 -15
- package/dist/server/handlers/workflows.d.ts.map +1 -0
- package/dist/server/handlers/workflows.js +3 -1
- package/dist/server/handlers/workflows.js.map +1 -0
- package/dist/server/handlers.cjs +26 -24
- package/dist/server/handlers.cjs.map +1 -0
- package/dist/server/handlers.d.ts +13 -12
- package/dist/server/handlers.d.ts.map +1 -0
- package/dist/server/handlers.js +14 -12
- package/dist/server/handlers.js.map +1 -0
- package/dist/server/http-exception.d.ts +87 -0
- package/dist/server/http-exception.d.ts.map +1 -0
- package/dist/server/types.d.ts +10 -0
- package/dist/server/types.d.ts.map +1 -0
- package/package.json +7 -7
- package/dist/_tsup-dts-rollup.d.cts +0 -1262
- package/dist/_tsup-dts-rollup.d.ts +0 -1262
- package/dist/index.d.cts +0 -1
- package/dist/server/handlers/a2a.d.cts +0 -6
- package/dist/server/handlers/agents.d.cts +0 -7
- package/dist/server/handlers/error.d.cts +0 -1
- package/dist/server/handlers/legacyWorkflows.d.cts +0 -10
- package/dist/server/handlers/logs.d.cts +0 -3
- package/dist/server/handlers/memory.d.cts +0 -14
- package/dist/server/handlers/network.d.cts +0 -4
- package/dist/server/handlers/scores.d.cts +0 -6
- package/dist/server/handlers/telemetry.d.cts +0 -2
- package/dist/server/handlers/tools.d.cts +0 -4
- package/dist/server/handlers/utils.d.cts +0 -1
- package/dist/server/handlers/vNextNetwork.d.cts +0 -6
- package/dist/server/handlers/vector.d.cts +0 -6
- package/dist/server/handlers/voice.d.cts +0 -4
- package/dist/server/handlers/workflows.d.cts +0 -15
- package/dist/server/handlers.d.cts +0 -12
|
@@ -1,7 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { Agent } from '@mastra/core/agent';
|
|
2
|
+
import { RuntimeContext } from '@mastra/core/runtime-context';
|
|
3
|
+
import type { Context } from '../types';
|
|
4
|
+
type GetBody<T extends keyof Agent & {
|
|
5
|
+
[K in keyof Agent]: Agent[K] extends (...args: any) => any ? K : never;
|
|
6
|
+
}[keyof Agent]> = {
|
|
7
|
+
messages: Parameters<Agent[T]>[0];
|
|
8
|
+
} & Parameters<Agent[T]>[1];
|
|
9
|
+
export declare function getAgentsHandler({ mastra, runtimeContext }: Context & {
|
|
10
|
+
runtimeContext: RuntimeContext;
|
|
11
|
+
}): Promise<Record<string, Omit<{
|
|
12
|
+
id: string;
|
|
13
|
+
name: any;
|
|
14
|
+
instructions: string;
|
|
15
|
+
tools: any;
|
|
16
|
+
workflows: {};
|
|
17
|
+
provider: string;
|
|
18
|
+
modelId: string;
|
|
19
|
+
defaultGenerateOptions: any;
|
|
20
|
+
defaultStreamOptions: any;
|
|
21
|
+
}, "id">>>;
|
|
22
|
+
export declare function getAgentByIdHandler({ mastra, runtimeContext, agentId, isPlayground, }: Context & {
|
|
23
|
+
isPlayground?: boolean;
|
|
24
|
+
runtimeContext: RuntimeContext;
|
|
25
|
+
agentId: string;
|
|
26
|
+
}): Promise<{
|
|
27
|
+
name: any;
|
|
28
|
+
instructions: string;
|
|
29
|
+
tools: any;
|
|
30
|
+
workflows: {};
|
|
31
|
+
provider: string;
|
|
32
|
+
modelId: string;
|
|
33
|
+
defaultGenerateOptions: any;
|
|
34
|
+
defaultStreamOptions: any;
|
|
35
|
+
}>;
|
|
36
|
+
export declare function getEvalsByAgentIdHandler({ mastra, runtimeContext, agentId, }: Context & {
|
|
37
|
+
runtimeContext: RuntimeContext;
|
|
38
|
+
agentId: string;
|
|
39
|
+
}): Promise<{
|
|
40
|
+
id: string;
|
|
41
|
+
name: any;
|
|
42
|
+
instructions: string;
|
|
43
|
+
evals: import("@mastra/core").EvalRow[];
|
|
44
|
+
}>;
|
|
45
|
+
export declare function getLiveEvalsByAgentIdHandler({ mastra, runtimeContext, agentId, }: Context & {
|
|
46
|
+
runtimeContext: RuntimeContext;
|
|
47
|
+
agentId: string;
|
|
48
|
+
}): Promise<{
|
|
49
|
+
id: string;
|
|
50
|
+
name: any;
|
|
51
|
+
instructions: string;
|
|
52
|
+
evals: import("@mastra/core").EvalRow[];
|
|
53
|
+
}>;
|
|
54
|
+
export declare function generateHandler({ mastra, runtimeContext, agentId, body, abortSignal, }: Context & {
|
|
55
|
+
runtimeContext: RuntimeContext;
|
|
56
|
+
agentId: string;
|
|
57
|
+
body: GetBody<'generate'> & {
|
|
58
|
+
resourceid?: string;
|
|
59
|
+
runtimeContext?: Record<string, unknown>;
|
|
60
|
+
};
|
|
61
|
+
abortSignal?: AbortSignal;
|
|
62
|
+
}): Promise<import("@mastra/core").GenerateTextResult<any, undefined>>;
|
|
63
|
+
export declare function streamGenerateHandler({ mastra, runtimeContext, agentId, body, clientSdkCompat, abortSignal, }: Context & {
|
|
64
|
+
runtimeContext: RuntimeContext;
|
|
65
|
+
agentId: string;
|
|
66
|
+
body: GetBody<'stream'> & {
|
|
67
|
+
runtimeContext?: string;
|
|
68
|
+
};
|
|
69
|
+
clientSdkCompat?: string;
|
|
70
|
+
abortSignal?: AbortSignal;
|
|
71
|
+
}): Promise<Response | undefined>;
|
|
72
|
+
export declare function streamVNextGenerateHandler({ mastra, runtimeContext, agentId, body, abortSignal, }: Context & {
|
|
73
|
+
runtimeContext: RuntimeContext;
|
|
74
|
+
agentId: string;
|
|
75
|
+
body: GetBody<'streamVNext'> & {
|
|
76
|
+
runtimeContext?: string;
|
|
77
|
+
};
|
|
78
|
+
abortSignal?: AbortSignal;
|
|
79
|
+
}): ReturnType<Agent['streamVNext']>;
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/agents.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,KAAK,OAAO,CACV,CAAC,SAAS,MAAM,KA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C;IAChB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG;QAE1B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1C,CAAC;IACF,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,sEAkCA;AAED,wBAAsB,qBAAqB,CAAC,EAC1C,MAAM,EACN,cAAc,EACd,OAAO,EACP,IAAI,EACJ,eAAe,EACf,WAAW,GACZ,EAAE,OAAO,GAAG;IACX,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;QACxB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAsDhC;AAED,wBAAgB,0BAA0B,CAAC,EACzC,MAAM,EACN,cAAc,EACd,OAAO,EACP,IAAI,EACJ,WAAW,GACZ,EAAE,OAAO,GAAG;IACX,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG;QAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,UAAU,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CA0BnC"}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler, streamVNextGenerateHandler } from '../../chunk-
|
|
1
|
+
export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler, streamVNextGenerateHandler } from '../../chunk-7MEJQMCS.js';
|
|
2
|
+
//# sourceMappingURL=agents.js.map
|
|
3
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agents.js"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRE4RPXT2_cjs = require('../../chunk-RE4RPXT2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "handleError", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkRE4RPXT2_cjs.handleError; }
|
|
10
10
|
});
|
|
11
|
+
//# sourceMappingURL=error.cjs.map
|
|
12
|
+
//# sourceMappingURL=error.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"error.cjs"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function handleError(error: unknown, defaultMessage: string): never;
|
|
2
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/error.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,GAAG,KAAK,CAUzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"error.js"}
|
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJGVY3KWV_cjs = require('../../chunk-JGVY3KWV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createLegacyWorkflowRunHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkJGVY3KWV_cjs.createLegacyWorkflowRunHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getLegacyWorkflowByIdHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkJGVY3KWV_cjs.getLegacyWorkflowByIdHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getLegacyWorkflowRunHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkJGVY3KWV_cjs.getLegacyWorkflowRunHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getLegacyWorkflowRunsHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkJGVY3KWV_cjs.getLegacyWorkflowRunsHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getLegacyWorkflowsHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkJGVY3KWV_cjs.getLegacyWorkflowsHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "resumeAsyncLegacyWorkflowHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkJGVY3KWV_cjs.resumeAsyncLegacyWorkflowHandler; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "resumeLegacyWorkflowHandler", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkJGVY3KWV_cjs.resumeLegacyWorkflowHandler; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "startAsyncLegacyWorkflowHandler", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkJGVY3KWV_cjs.startAsyncLegacyWorkflowHandler; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "startLegacyWorkflowRunHandler", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkJGVY3KWV_cjs.startLegacyWorkflowRunHandler; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "watchLegacyWorkflowHandler", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkJGVY3KWV_cjs.watchLegacyWorkflowHandler; }
|
|
46
46
|
});
|
|
47
|
+
//# sourceMappingURL=legacyWorkflows.cjs.map
|
|
48
|
+
//# sourceMappingURL=legacyWorkflows.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"legacyWorkflows.cjs"}
|
|
@@ -1,10 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export {
|
|
1
|
+
import { ReadableStream } from 'node:stream/web';
|
|
2
|
+
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
3
|
+
import type { LegacyWorkflowRuns } from '@mastra/core/storage';
|
|
4
|
+
import type { LegacyWorkflow } from '@mastra/core/workflows/legacy';
|
|
5
|
+
import type { Context } from '../types';
|
|
6
|
+
interface WorkflowContext extends Context {
|
|
7
|
+
workflowId?: string;
|
|
8
|
+
runId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function getLegacyWorkflowsHandler({ mastra }: WorkflowContext): Promise<any>;
|
|
11
|
+
export declare function getLegacyWorkflowByIdHandler({ mastra, workflowId }: WorkflowContext): Promise<{
|
|
12
|
+
stepGraph: import("@mastra/core/workflows/legacy").StepGraph;
|
|
13
|
+
stepSubscriberGraph: Record<string, import("@mastra/core/workflows/legacy").StepGraph>;
|
|
14
|
+
serializedStepGraph: import("@mastra/core/workflows/legacy").StepGraph;
|
|
15
|
+
serializedStepSubscriberGraph: Record<string, import("@mastra/core/workflows/legacy").StepGraph>;
|
|
16
|
+
name: string;
|
|
17
|
+
triggerSchema: string | undefined;
|
|
18
|
+
steps: any;
|
|
19
|
+
}>;
|
|
20
|
+
export declare function startAsyncLegacyWorkflowHandler({ mastra, runtimeContext, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
21
|
+
triggerData?: unknown;
|
|
22
|
+
runtimeContext: RuntimeContext;
|
|
23
|
+
}): Promise<import("@mastra/core/workflows/legacy").LegacyWorkflowRunResult<any, import("@mastra/core/workflows/legacy").LegacyStep<string, any, any, import("@mastra/core/workflows/legacy").StepExecutionContext<any, import("@mastra/core/workflows/legacy").WorkflowContext<any, import("@mastra/core/workflows/legacy").LegacyStep<string, any, any, any>[], Record<string, any>>>>[], any>>;
|
|
24
|
+
export declare function getLegacyWorkflowRunHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReturnType<LegacyWorkflow['getRun']>>;
|
|
25
|
+
export declare function createLegacyWorkflowRunHandler({ mastra, workflowId, runId: prevRunId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<{
|
|
26
|
+
runId: string;
|
|
27
|
+
}>;
|
|
28
|
+
export declare function startLegacyWorkflowRunHandler({ mastra, runtimeContext, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
29
|
+
triggerData?: unknown;
|
|
30
|
+
runtimeContext: RuntimeContext;
|
|
31
|
+
}): Promise<{
|
|
32
|
+
message: string;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function watchLegacyWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream<string>>;
|
|
35
|
+
export declare function resumeAsyncLegacyWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
|
|
36
|
+
body: {
|
|
37
|
+
stepId: string;
|
|
38
|
+
context: any;
|
|
39
|
+
};
|
|
40
|
+
runtimeContext: RuntimeContext;
|
|
41
|
+
}): Promise<Omit<import("@mastra/core/workflows/legacy").LegacyWorkflowRunResult<any, import("@mastra/core/workflows/legacy").LegacyStep<string, any, any, import("@mastra/core/workflows/legacy").StepExecutionContext<any, import("@mastra/core/workflows/legacy").WorkflowContext<any, import("@mastra/core/workflows/legacy").LegacyStep<string, any, any, any>[], Record<string, any>>>>[], any>, "runId"> | undefined>;
|
|
42
|
+
export declare function resumeLegacyWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
|
|
43
|
+
body: {
|
|
44
|
+
stepId: string;
|
|
45
|
+
context: any;
|
|
46
|
+
};
|
|
47
|
+
runtimeContext: RuntimeContext;
|
|
48
|
+
}): Promise<{
|
|
49
|
+
message: string;
|
|
50
|
+
}>;
|
|
51
|
+
export declare function getLegacyWorkflowRunsHandler({ mastra, workflowId, fromDate, toDate, limit, offset, resourceId, }: WorkflowContext & {
|
|
52
|
+
fromDate?: Date;
|
|
53
|
+
toDate?: Date;
|
|
54
|
+
limit?: number;
|
|
55
|
+
offset?: number;
|
|
56
|
+
resourceId?: string;
|
|
57
|
+
}): Promise<LegacyWorkflowRuns>;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=legacyWorkflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacyWorkflows.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/legacyWorkflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM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C;CAChC;;GA0BA;AAED,wBAAsB,0BAA0B,CAAC,EAC/C,MAAM,EACN,UAAU,EACV,KAAK,GACN,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAiD5F;AAED,wBAAsB,gCAAgC,CAAC,EACrD,MAAM,EACN,UAAU,EACV,KAAK,EACL,IAAI,EACJ,cAAc,GACf,EAAE,eAAe,GAAG;IAAE,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC;IAAC,cAAc,EAAE,cAAc,CAAA;CAAE,4ZA6B9F;AAED,wBAAsB,2BAA2B,CAAC,EAChD,MAAM,EACN,UAAU,EACV,KAAK,EACL,IAAI,EACJ,cAAc,GACf,EAAE,eAAe,GAAG;IAAE,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC;IAAC,cAAc,EAAE,cAAc,CAAA;CAAE;;GA2B9F;AAED,wBAAsB,4BAA4B,CAAC,EACjD,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,KAAK,EACL,MAAM,EACN,UAAU,GACX,EAAE,eAAe,GAAG;IACnB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAe9B"}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export { createLegacyWorkflowRunHandler, getLegacyWorkflowByIdHandler, getLegacyWorkflowRunHandler, getLegacyWorkflowRunsHandler, getLegacyWorkflowsHandler, resumeAsyncLegacyWorkflowHandler, resumeLegacyWorkflowHandler, startAsyncLegacyWorkflowHandler, startLegacyWorkflowRunHandler, watchLegacyWorkflowHandler } from '../../chunk-
|
|
1
|
+
export { createLegacyWorkflowRunHandler, getLegacyWorkflowByIdHandler, getLegacyWorkflowRunHandler, getLegacyWorkflowRunsHandler, getLegacyWorkflowsHandler, resumeAsyncLegacyWorkflowHandler, resumeLegacyWorkflowHandler, startAsyncLegacyWorkflowHandler, startLegacyWorkflowRunHandler, watchLegacyWorkflowHandler } from '../../chunk-UVOSITKU.js';
|
|
2
|
+
//# sourceMappingURL=legacyWorkflows.js.map
|
|
3
|
+
//# sourceMappingURL=legacyWorkflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"legacyWorkflows.js"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBED2O446_cjs = require('../../chunk-BED2O446.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "getLogTransports", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkBED2O446_cjs.getLogTransports; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getLogsByRunIdHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBED2O446_cjs.getLogsByRunIdHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getLogsHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkBED2O446_cjs.getLogsHandler; }
|
|
18
18
|
});
|
|
19
|
+
//# sourceMappingURL=logs.cjs.map
|
|
20
|
+
//# sourceMappingURL=logs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"logs.cjs"}
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { BaseLogMessage, LogLevel } from '@mastra/core/logger';
|
|
2
|
+
import type { Mastra } from '@mastra/core/mastra';
|
|
3
|
+
type LogsContext = {
|
|
4
|
+
mastra: Mastra;
|
|
5
|
+
transportId?: string;
|
|
6
|
+
runId?: string;
|
|
7
|
+
params?: {
|
|
8
|
+
fromDate?: Date;
|
|
9
|
+
toDate?: Date;
|
|
10
|
+
logLevel?: LogLevel;
|
|
11
|
+
filters?: string | string[];
|
|
12
|
+
page?: number;
|
|
13
|
+
perPage?: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare function getLogsHandler({ mastra, transportId, params, }: Pick<LogsContext, 'mastra' | 'transportId' | 'params'>): Promise<{
|
|
17
|
+
logs: BaseLogMessage[];
|
|
18
|
+
total: number;
|
|
19
|
+
page: number;
|
|
20
|
+
perPage: number;
|
|
21
|
+
hasMore: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
export declare function getLogsByRunIdHandler({ mastra, runId, transportId, params, }: Pick<LogsContext, 'mastra' | 'runId' | 'transportId' | 'params'>): Promise<{
|
|
24
|
+
logs: import("@mastra/core/logger").BaseLogMessage[];
|
|
25
|
+
total: number;
|
|
26
|
+
page: number;
|
|
27
|
+
perPage: number;
|
|
28
|
+
hasMore: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function getLogTransports({ mastra }: Pick<LogsContext, 'mastra'>): Promise<{
|
|
31
|
+
transports: string[];
|
|
32
|
+
}>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/logs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,MAAM,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cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createThreadHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkLZASFI6W_cjs.createThreadHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "deleteMessagesHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkLZASFI6W_cjs.deleteMessagesHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deleteThreadHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkLZASFI6W_cjs.deleteThreadHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getMemoryConfigHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkLZASFI6W_cjs.getMemoryConfigHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getMemoryStatusHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkLZASFI6W_cjs.getMemoryStatusHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getMessagesHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkLZASFI6W_cjs.getMessagesHandler; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getMessagesPaginatedHandler", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkLZASFI6W_cjs.getMessagesPaginatedHandler; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getThreadByIdHandler", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkLZASFI6W_cjs.getThreadByIdHandler; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "getThreadsHandler", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkLZASFI6W_cjs.getThreadsHandler; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "getThreadsPaginatedHandler", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkLZASFI6W_cjs.getThreadsPaginatedHandler; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "getWorkingMemoryHandler", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkLZASFI6W_cjs.getWorkingMemoryHandler; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "saveMessagesHandler", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkLZASFI6W_cjs.saveMessagesHandler; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "searchMemoryHandler", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkLZASFI6W_cjs.searchMemoryHandler; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "updateThreadHandler", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkLZASFI6W_cjs.updateThreadHandler; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "updateWorkingMemoryHandler", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkLZASFI6W_cjs.updateWorkingMemoryHandler; }
|
|
62
66
|
});
|
|
67
|
+
//# sourceMappingURL=memory.cjs.map
|
|
68
|
+
//# sourceMappingURL=memory.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"memory.cjs"}
|
|
@@ -1,14 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export {
|
|
1
|
+
import type { StorageGetMessagesArg } from '@mastra/core';
|
|
2
|
+
import type { RuntimeContext } from '@mastra/core/di';
|
|
3
|
+
import type { MastraMemory } from '@mastra/core/memory';
|
|
4
|
+
import type { ThreadSortOptions } from '@mastra/core/storage';
|
|
5
|
+
import type { Context } from '../types';
|
|
6
|
+
import { handleError } from './error';
|
|
7
|
+
interface MemoryContext extends Context {
|
|
8
|
+
agentId?: string;
|
|
9
|
+
resourceId?: string;
|
|
10
|
+
threadId?: string;
|
|
11
|
+
networkId?: string;
|
|
12
|
+
runtimeContext?: RuntimeContext;
|
|
13
|
+
}
|
|
14
|
+
export declare function getMemoryStatusHandler({ mastra, agentId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'>): Promise<{
|
|
15
|
+
result: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function getMemoryConfigHandler({ mastra, agentId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'>): Promise<{
|
|
18
|
+
config: import("@mastra/core").MemoryConfig;
|
|
19
|
+
}>;
|
|
20
|
+
export declare function getThreadsHandler({ mastra, agentId, resourceId, networkId, runtimeContext, orderBy, sortDirection, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'networkId' | 'runtimeContext'> & ThreadSortOptions): Promise<import("@mastra/core").StorageThreadType[]>;
|
|
21
|
+
export declare function getThreadsPaginatedHandler({ mastra, agentId, resourceId, networkId, runtimeContext, page, perPage, orderBy, sortDirection, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'networkId' | 'runtimeContext'> & {
|
|
22
|
+
page: number;
|
|
23
|
+
perPage: number;
|
|
24
|
+
} & ThreadSortOptions): Promise<import("@mastra/core").PaginationInfo & {
|
|
25
|
+
threads: import("@mastra/core").StorageThreadType[];
|
|
26
|
+
}>;
|
|
27
|
+
export declare function getThreadByIdHandler({ mastra, agentId, threadId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'>): Promise<import("@mastra/core").StorageThreadType>;
|
|
28
|
+
export declare function saveMessagesHandler({ mastra, agentId, body, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
|
|
29
|
+
body: {
|
|
30
|
+
messages: Parameters<MastraMemory['saveMessages']>[0]['messages'];
|
|
31
|
+
};
|
|
32
|
+
}): Promise<import("@mastra/core").MastraMessageV1[]>;
|
|
33
|
+
export declare function createThreadHandler({ mastra, agentId, body, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
|
|
34
|
+
body?: Omit<Parameters<MastraMemory['createThread']>[0], 'resourceId'> & {
|
|
35
|
+
resourceId?: string;
|
|
36
|
+
};
|
|
37
|
+
}): Promise<import("@mastra/core").StorageThreadType>;
|
|
38
|
+
export declare function updateThreadHandler({ mastra, agentId, threadId, body, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'> & {
|
|
39
|
+
body?: Parameters<MastraMemory['saveThread']>[0]['thread'];
|
|
40
|
+
}): Promise<import("@mastra/core").StorageThreadType>;
|
|
41
|
+
export declare function deleteThreadHandler({ mastra, agentId, threadId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'>): Promise<{
|
|
42
|
+
result: string;
|
|
43
|
+
}>;
|
|
44
|
+
export declare function getMessagesPaginatedHandler({ mastra, threadId, resourceId, selectBy, format, }: StorageGetMessagesArg & Pick<MemoryContext, 'mastra'>): Promise<import("@mastra/core").PaginationInfo & {
|
|
45
|
+
messages: import("@mastra/core").MastraMessageV1[] | import("@mastra/core").MastraMessageV2[];
|
|
46
|
+
}>;
|
|
47
|
+
export declare function getMessagesHandler({ mastra, agentId, threadId, limit, format, clientSdkCompat, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'> & {
|
|
48
|
+
limit?: number;
|
|
49
|
+
format?: 'aiv4' | 'aiv5';
|
|
50
|
+
clientSdkCompat?: string;
|
|
51
|
+
}): Promise<{
|
|
52
|
+
messages: import("ai").ModelMessage[];
|
|
53
|
+
uiMessages: any[];
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* Handler to get the working memory for a thread (optionally resource-scoped).
|
|
57
|
+
* @returns workingMemory - the working memory for the thread
|
|
58
|
+
* @returns source - thread or resource
|
|
59
|
+
*/
|
|
60
|
+
export declare function getWorkingMemoryHandler({ mastra, agentId, threadId, resourceId, networkId, runtimeContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'> & {
|
|
61
|
+
resourceId?: Parameters<MastraMemory['getWorkingMemory']>[0]['resourceId'];
|
|
62
|
+
memoryConfig?: Parameters<MastraMemory['getWorkingMemory']>[0]['memoryConfig'];
|
|
63
|
+
}): Promise<{
|
|
64
|
+
workingMemory: string | null;
|
|
65
|
+
source: string;
|
|
66
|
+
workingMemoryTemplate: import("@mastra/core").WorkingMemoryTemplate | null;
|
|
67
|
+
threadExists: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* Handler to update the working memory for a thread (optionally resource-scoped).
|
|
71
|
+
* @param threadId - the thread id
|
|
72
|
+
* @param body - the body containing the working memory to update and the resource id (optional)
|
|
73
|
+
*/
|
|
74
|
+
export declare function updateWorkingMemoryHandler({ mastra, agentId, threadId, body, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'> & {
|
|
75
|
+
body: Omit<Parameters<MastraMemory['updateWorkingMemory']>[0], 'threadId'>;
|
|
76
|
+
}): Promise<{
|
|
77
|
+
success: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
interface SearchResult {
|
|
80
|
+
id: string;
|
|
81
|
+
role: string;
|
|
82
|
+
content: any;
|
|
83
|
+
createdAt: Date;
|
|
84
|
+
threadId?: string;
|
|
85
|
+
threadTitle?: string;
|
|
86
|
+
score?: number;
|
|
87
|
+
context?: {
|
|
88
|
+
before?: SearchResult[];
|
|
89
|
+
after?: SearchResult[];
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
interface SearchResponse {
|
|
93
|
+
results: SearchResult[];
|
|
94
|
+
count: number;
|
|
95
|
+
query: string;
|
|
96
|
+
searchScope?: string;
|
|
97
|
+
searchType?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Handler to delete one or more messages.
|
|
101
|
+
* @param messageIds - Can be a single ID, array of IDs, or objects with ID property
|
|
102
|
+
*/
|
|
103
|
+
export declare function deleteMessagesHandler({ mastra, agentId, messageIds, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
|
|
104
|
+
messageIds: string | string[] | {
|
|
105
|
+
id: string;
|
|
106
|
+
} | {
|
|
107
|
+
id: string;
|
|
108
|
+
}[];
|
|
109
|
+
}): Promise<{
|
|
110
|
+
success: boolean;
|
|
111
|
+
message: string;
|
|
112
|
+
}>;
|
|
113
|
+
export declare function searchMemoryHandler({ mastra, agentId, searchQuery, resourceId, threadId, limit, networkId, runtimeContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
|
|
114
|
+
searchQuery: string;
|
|
115
|
+
resourceId: string;
|
|
116
|
+
threadId?: string;
|
|
117
|
+
limit?: number;
|
|
118
|
+
memoryConfig?: any;
|
|
119
|
+
}): Promise<SearchResponse | ReturnType<typeof handleError>>;
|
|
120
|
+
export {};
|
|
121
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/memory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,UAAU,aAAc,SAAQ,OAAO;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAiCD,wBAAsB,sBAAsB,CAAC,EAC3C,MAAM,EACN,OAAO,EACP,SAAS,EACT,cAAc,GACf,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,CAAC;;GAY5E;AAED,wBAAsB,sBAAsB,CAAC,EAC3C,MAAM,EACN,OAAO,EACP,SAAS,EACT,cAAc,GACf,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,CAAC;;GAe5E;AAED,wBAAsB,iBAAiB,CAAC,EACtC,MAAM,EACN,OAAO,EACP,UAAU,EACV,SAAS,EACT,cAAc,EACd,OAAO,EACP,aAAa,GACd,EAAE,IAAI,CAAC,aAAa,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C;CACrB;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,MAAM,EACN,OAAO,EACP,UAAU,EACV,SAAS,EACT,cAAc,GACf,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,CAAC,GAAG;IAC9E,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACnE;;;GAwBA;AAED,wBAAsB,mBAAmB,CAAC,EACxC,MAAM,EACN,OAAO,EACP,WAAW,EACX,UAAU,EACV,QAAQ,EACR,KAAU,EACV,SAAS,EACT,cAAc,EACd,YAAY,GACb,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,CAAC,GAAG;IAC9E,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB,GAAG,OAAO,CAAC,cAAc,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAwN3D"}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export { createThreadHandler, deleteMessagesHandler, deleteThreadHandler, getMemoryConfigHandler, getMemoryStatusHandler, getMessagesHandler, getMessagesPaginatedHandler, getThreadByIdHandler, getThreadsHandler, getWorkingMemoryHandler, saveMessagesHandler, searchMemoryHandler, updateThreadHandler, updateWorkingMemoryHandler } from '../../chunk-
|
|
1
|
+
export { createThreadHandler, deleteMessagesHandler, deleteThreadHandler, getMemoryConfigHandler, getMemoryStatusHandler, getMessagesHandler, getMessagesPaginatedHandler, getThreadByIdHandler, getThreadsHandler, getThreadsPaginatedHandler, getWorkingMemoryHandler, saveMessagesHandler, searchMemoryHandler, updateThreadHandler, updateWorkingMemoryHandler } from '../../chunk-KXXJ7Y4H.js';
|
|
2
|
+
//# sourceMappingURL=memory.js.map
|
|
3
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"memory.js"}
|