@mastra/server 0.0.0-update-scorers-api-20250801170445 → 0.0.0-usechat-duplicate-20251016110554
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 +4048 -0
- package/README.md +0 -5
- package/dist/chunk-2PLXW4ZX.cjs +2777 -0
- package/dist/chunk-2PLXW4ZX.cjs.map +1 -0
- package/dist/chunk-2S4IMB6E.cjs +130 -0
- package/dist/chunk-2S4IMB6E.cjs.map +1 -0
- package/dist/{chunk-X5SDJOY6.cjs → chunk-3LTO44EP.cjs} +66 -53
- package/dist/chunk-3LTO44EP.cjs.map +1 -0
- package/dist/{chunk-4US5W7PH.cjs → chunk-3SNGNFUJ.cjs} +23 -15
- package/dist/chunk-3SNGNFUJ.cjs.map +1 -0
- package/dist/{chunk-OW4FX5TS.js → chunk-4QCXUEAT.js} +10 -3
- package/dist/chunk-4QCXUEAT.js.map +1 -0
- package/dist/{chunk-SQ7KKIH3.js → chunk-67GYDFSB.js} +22 -5
- package/dist/chunk-67GYDFSB.js.map +1 -0
- package/dist/{chunk-ILCWPBYQ.cjs → chunk-6ZR275MD.cjs} +23 -5
- package/dist/chunk-6ZR275MD.cjs.map +1 -0
- package/dist/chunk-7HDOBOGG.cjs +17517 -0
- package/dist/chunk-7HDOBOGG.cjs.map +1 -0
- package/dist/{chunk-4MQU6AJN.js → chunk-ABRFV4XP.js} +4 -4
- package/dist/{chunk-4MQU6AJN.js.map → chunk-ABRFV4XP.js.map} +1 -1
- package/dist/{chunk-YS66MFDY.js → chunk-AHB4JCIQ.js} +48 -12
- package/dist/chunk-AHB4JCIQ.js.map +1 -0
- package/dist/{chunk-TXAQU2XN.js → chunk-AW5BU3RQ.js} +63 -22
- package/dist/chunk-AW5BU3RQ.js.map +1 -0
- package/dist/chunk-BATEJLED.js +124 -0
- package/dist/chunk-BATEJLED.js.map +1 -0
- package/dist/chunk-BZLZFHAT.cjs +682 -0
- package/dist/chunk-BZLZFHAT.cjs.map +1 -0
- package/dist/{chunk-BUOJL3MN.js → chunk-DB63UMTV.js} +220 -89
- package/dist/chunk-DB63UMTV.js.map +1 -0
- package/dist/{chunk-NCS2OXX6.cjs → chunk-EP3JQDPD.cjs} +4 -4
- package/dist/{chunk-NCS2OXX6.cjs.map → chunk-EP3JQDPD.cjs.map} +1 -1
- package/dist/chunk-FWO7VQDC.js +17481 -0
- package/dist/chunk-FWO7VQDC.js.map +1 -0
- package/dist/chunk-FZNS32WJ.js +46 -0
- package/dist/chunk-FZNS32WJ.js.map +1 -0
- package/dist/{chunk-4QSNRCOT.cjs → chunk-G4PUALCE.cjs} +10 -2
- package/dist/chunk-G4PUALCE.cjs.map +1 -0
- package/dist/chunk-GU4EWMZB.cjs +769 -0
- package/dist/chunk-GU4EWMZB.cjs.map +1 -0
- package/dist/{chunk-TRWPUPGD.js → chunk-HPXAM2PG.js} +109 -138
- package/dist/chunk-HPXAM2PG.js.map +1 -0
- package/dist/{chunk-JGVY3KWV.cjs → chunk-I3C4ODGV.cjs} +12 -11
- package/dist/chunk-I3C4ODGV.cjs.map +1 -0
- package/dist/chunk-JSLAYFEW.js +662 -0
- package/dist/chunk-JSLAYFEW.js.map +1 -0
- package/dist/chunk-LF2ZLOFP.js +767 -0
- package/dist/chunk-LF2ZLOFP.js.map +1 -0
- package/dist/{chunk-UVOSITKU.js → chunk-LLUOPR3J.js} +11 -10
- package/dist/chunk-LLUOPR3J.js.map +1 -0
- package/dist/chunk-LPM6BBAX.cjs +1043 -0
- package/dist/chunk-LPM6BBAX.cjs.map +1 -0
- package/dist/{chunk-S37KCGOR.cjs → chunk-MQDBNHBT.cjs} +222 -88
- package/dist/chunk-MQDBNHBT.cjs.map +1 -0
- package/dist/{chunk-G7NVCO5M.js → chunk-MYR4PVGN.js} +3 -3
- package/dist/{chunk-G7NVCO5M.js.map → chunk-MYR4PVGN.js.map} +1 -1
- package/dist/chunk-O7I5CWRX.cjs +44 -0
- package/dist/{chunk-Q7SFCCGT.cjs.map → chunk-O7I5CWRX.cjs.map} +1 -1
- package/dist/{chunk-HXIOPAHT.js → chunk-OEOGYAQC.js} +54 -42
- package/dist/chunk-OEOGYAQC.js.map +1 -0
- package/dist/chunk-OYL5TBJW.cjs +48 -0
- package/dist/chunk-OYL5TBJW.cjs.map +1 -0
- package/dist/chunk-PR4QN5HX.js +39 -0
- package/dist/{chunk-PZ5AY32C.js.map → chunk-PR4QN5HX.js.map} +1 -1
- package/dist/{chunk-HWHKM67I.js → chunk-QQXMIP6C.js} +21 -13
- package/dist/chunk-QQXMIP6C.js.map +1 -0
- package/dist/chunk-RQK4FQUD.js +1012 -0
- package/dist/chunk-RQK4FQUD.js.map +1 -0
- package/dist/chunk-SIW6CYO3.js +254 -0
- package/dist/chunk-SIW6CYO3.js.map +1 -0
- package/dist/{chunk-VIGPWTDA.cjs → chunk-SPRRK3P7.cjs} +64 -23
- package/dist/chunk-SPRRK3P7.cjs.map +1 -0
- package/dist/{chunk-GASWM5HJ.cjs → chunk-TOP25AIO.cjs} +110 -139
- package/dist/chunk-TOP25AIO.cjs.map +1 -0
- package/dist/{chunk-O4I563YW.cjs → chunk-TRGAMKHX.cjs} +50 -13
- package/dist/chunk-TRGAMKHX.cjs.map +1 -0
- package/dist/chunk-VY4ENABS.cjs +135 -0
- package/dist/chunk-VY4ENABS.cjs.map +1 -0
- package/dist/{chunk-BED2O446.cjs → chunk-XN74I6VW.cjs} +7 -7
- package/dist/{chunk-BED2O446.cjs.map → chunk-XN74I6VW.cjs.map} +1 -1
- package/dist/chunk-XVPBGW6Y.cjs +256 -0
- package/dist/chunk-XVPBGW6Y.cjs.map +1 -0
- package/dist/chunk-YWOK4F5A.js +131 -0
- package/dist/chunk-YWOK4F5A.js.map +1 -0
- package/dist/chunk-ZULZ2752.js +2774 -0
- package/dist/chunk-ZULZ2752.js.map +1 -0
- package/dist/dist-4MVGNSRL.cjs +1150 -0
- package/dist/dist-4MVGNSRL.cjs.map +1 -0
- package/dist/dist-FZYCV3VB.cjs +940 -0
- package/dist/dist-FZYCV3VB.cjs.map +1 -0
- package/dist/dist-G2BYZJOC.cjs +928 -0
- package/dist/dist-G2BYZJOC.cjs.map +1 -0
- package/dist/dist-P4MXBQ3U.cjs +16 -0
- package/dist/dist-P4MXBQ3U.cjs.map +1 -0
- package/dist/dist-PQZUVLPC.js +937 -0
- package/dist/dist-PQZUVLPC.js.map +1 -0
- package/dist/dist-R7WYX6LC.js +925 -0
- package/dist/dist-R7WYX6LC.js.map +1 -0
- package/dist/dist-RFMYFILX.cjs +764 -0
- package/dist/dist-RFMYFILX.cjs.map +1 -0
- package/dist/dist-X7XR3M3Z.js +1147 -0
- package/dist/dist-X7XR3M3Z.js.map +1 -0
- package/dist/dist-XVBSOGFK.js +761 -0
- package/dist/dist-XVBSOGFK.js.map +1 -0
- package/dist/dist-YREX2TJT.js +3 -0
- package/dist/dist-YREX2TJT.js.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/server/a2a/store.cjs +25 -0
- package/dist/server/a2a/store.cjs.map +1 -0
- package/dist/server/a2a/store.d.ts +3 -3
- package/dist/server/a2a/store.d.ts.map +1 -1
- package/dist/server/a2a/store.js +23 -0
- package/dist/server/a2a/store.js.map +1 -0
- package/dist/server/a2a/tasks.d.ts +7 -7
- package/dist/server/a2a/tasks.d.ts.map +1 -1
- package/dist/server/handlers/a2a.cjs +11 -11
- package/dist/server/handlers/a2a.d.ts +17 -15
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +68 -0
- package/dist/server/handlers/agent-builder.cjs.map +1 -0
- package/dist/server/handlers/agent-builder.d.ts +94 -0
- package/dist/server/handlers/agent-builder.d.ts.map +1 -0
- package/dist/server/handlers/agent-builder.js +3 -0
- package/dist/server/handlers/agent-builder.js.map +1 -0
- package/dist/server/handlers/agents.cjs +53 -9
- package/dist/server/handlers/agents.d.ts +156 -33
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/legacyWorkflows.cjs +11 -11
- package/dist/server/handlers/legacyWorkflows.d.ts +1 -1
- package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -1
- package/dist/server/handlers/legacyWorkflows.js +1 -1
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/memory.cjs +19 -15
- package/dist/server/handlers/memory.d.ts +24 -19
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +24 -0
- package/dist/server/handlers/observability.cjs.map +1 -0
- package/dist/server/handlers/observability.d.ts +49 -0
- package/dist/server/handlers/observability.d.ts.map +1 -0
- package/dist/server/handlers/observability.js +3 -0
- package/dist/server/handlers/observability.js.map +1 -0
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.d.ts +110 -7
- package/dist/server/handlers/scores.d.ts.map +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/telemetry.cjs +7 -3
- package/dist/server/handlers/telemetry.d.ts +2 -1
- package/dist/server/handlers/telemetry.d.ts.map +1 -1
- package/dist/server/handlers/telemetry.js +1 -1
- package/dist/server/handlers/tools.cjs +9 -5
- package/dist/server/handlers/tools.d.ts +5 -1
- package/dist/server/handlers/tools.d.ts.map +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/utils.cjs +6 -2
- package/dist/server/handlers/utils.d.ts +6 -0
- package/dist/server/handlers/utils.d.ts.map +1 -1
- package/dist/server/handlers/utils.js +1 -1
- package/dist/server/handlers/vector.cjs +7 -7
- package/dist/server/handlers/vector.d.ts +1 -1
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/voice.cjs +5 -5
- package/dist/server/handlers/voice.d.ts +7 -5
- package/dist/server/handlers/voice.d.ts.map +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +28 -16
- package/dist/server/handlers/workflows.d.ts +37 -34
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +38 -33
- package/dist/server/handlers.d.ts +13 -12
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +13 -12
- package/dist/server/utils.d.ts +44 -0
- package/dist/server/utils.d.ts.map +1 -0
- package/dist/token-53CFGXUO.cjs +64 -0
- package/dist/token-53CFGXUO.cjs.map +1 -0
- package/dist/token-WAEKDUVY.js +62 -0
- package/dist/token-WAEKDUVY.js.map +1 -0
- package/dist/token-util-LY37VCIN.js +7 -0
- package/dist/token-util-LY37VCIN.js.map +1 -0
- package/dist/token-util-S4A355II.cjs +9 -0
- package/dist/token-util-S4A355II.cjs.map +1 -0
- package/package.json +36 -14
- package/dist/chunk-2XIJW7SV.cjs +0 -310
- package/dist/chunk-2XIJW7SV.cjs.map +0 -1
- package/dist/chunk-4CEZIJWJ.cjs +0 -150
- package/dist/chunk-4CEZIJWJ.cjs.map +0 -1
- package/dist/chunk-4QSNRCOT.cjs.map +0 -1
- package/dist/chunk-4US5W7PH.cjs.map +0 -1
- package/dist/chunk-7FHF55WA.js +0 -2041
- package/dist/chunk-7FHF55WA.js.map +0 -1
- package/dist/chunk-BUOJL3MN.js.map +0 -1
- package/dist/chunk-GASWM5HJ.cjs.map +0 -1
- package/dist/chunk-HWHKM67I.js.map +0 -1
- package/dist/chunk-HXIOPAHT.js.map +0 -1
- package/dist/chunk-ILCWPBYQ.cjs.map +0 -1
- package/dist/chunk-JGVY3KWV.cjs.map +0 -1
- package/dist/chunk-LRUH33B4.cjs +0 -2044
- package/dist/chunk-LRUH33B4.cjs.map +0 -1
- package/dist/chunk-O4I563YW.cjs.map +0 -1
- package/dist/chunk-OW4FX5TS.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -9
- package/dist/chunk-Q7SFCCGT.cjs +0 -11
- package/dist/chunk-S37KCGOR.cjs.map +0 -1
- package/dist/chunk-SQ7KKIH3.js.map +0 -1
- package/dist/chunk-TRWPUPGD.js.map +0 -1
- package/dist/chunk-TXAQU2XN.js.map +0 -1
- package/dist/chunk-UVOSITKU.js.map +0 -1
- package/dist/chunk-VIGPWTDA.cjs.map +0 -1
- package/dist/chunk-VOY6MGKA.js +0 -301
- package/dist/chunk-VOY6MGKA.js.map +0 -1
- package/dist/chunk-X5SDJOY6.cjs.map +0 -1
- package/dist/chunk-Y3J45CVZ.js +0 -144
- package/dist/chunk-Y3J45CVZ.js.map +0 -1
- package/dist/chunk-YS66MFDY.js.map +0 -1
- package/dist/server/handlers/network.cjs +0 -24
- package/dist/server/handlers/network.cjs.map +0 -1
- package/dist/server/handlers/network.d.ts +0 -50
- package/dist/server/handlers/network.d.ts.map +0 -1
- package/dist/server/handlers/network.js +0 -3
- package/dist/server/handlers/network.js.map +0 -1
- package/dist/server/handlers/vNextNetwork.cjs +0 -220
- package/dist/server/handlers/vNextNetwork.cjs.map +0 -1
- package/dist/server/handlers/vNextNetwork.d.ts +0 -179
- package/dist/server/handlers/vNextNetwork.d.ts.map +0 -1
- package/dist/server/handlers/vNextNetwork.js +0 -213
- package/dist/server/handlers/vNextNetwork.js.map +0 -1
|
@@ -1,55 +1,60 @@
|
|
|
1
|
-
import type { StorageGetMessagesArg } from '@mastra/core';
|
|
2
1
|
import type { RuntimeContext } from '@mastra/core/di';
|
|
3
2
|
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';
|
|
3
|
+
import type { StorageGetMessagesArg, ThreadSortOptions } from '@mastra/core/storage';
|
|
4
|
+
import type { Context } from '../types.js';
|
|
5
|
+
import { handleError } from './error.js';
|
|
7
6
|
interface MemoryContext extends Context {
|
|
8
7
|
agentId?: string;
|
|
9
8
|
resourceId?: string;
|
|
10
9
|
threadId?: string;
|
|
11
|
-
networkId?: string;
|
|
12
10
|
runtimeContext?: RuntimeContext;
|
|
13
11
|
}
|
|
14
|
-
export declare function getMemoryStatusHandler({ mastra, agentId,
|
|
12
|
+
export declare function getMemoryStatusHandler({ mastra, agentId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'runtimeContext'>): Promise<{
|
|
15
13
|
result: boolean;
|
|
16
14
|
}>;
|
|
17
|
-
export declare function getMemoryConfigHandler({ mastra, agentId,
|
|
15
|
+
export declare function getMemoryConfigHandler({ mastra, agentId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'runtimeContext'>): Promise<{
|
|
18
16
|
config: import("@mastra/core").MemoryConfig;
|
|
19
17
|
}>;
|
|
20
|
-
export declare function getThreadsHandler({ mastra, agentId, resourceId,
|
|
21
|
-
export declare function
|
|
22
|
-
|
|
18
|
+
export declare function getThreadsHandler({ mastra, agentId, resourceId, runtimeContext, orderBy, sortDirection, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'runtimeContext'> & ThreadSortOptions): Promise<import("@mastra/core").StorageThreadType[]>;
|
|
19
|
+
export declare function getThreadsPaginatedHandler({ mastra, agentId, resourceId, runtimeContext, page, perPage, orderBy, sortDirection, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'runtimeContext'> & {
|
|
20
|
+
page: number;
|
|
21
|
+
perPage: number;
|
|
22
|
+
} & ThreadSortOptions): Promise<import("@mastra/core").PaginationInfo & {
|
|
23
|
+
threads: import("@mastra/core").StorageThreadType[];
|
|
24
|
+
}>;
|
|
25
|
+
export declare function getThreadByIdHandler({ mastra, agentId, threadId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'runtimeContext'>): Promise<import("@mastra/core").StorageThreadType>;
|
|
26
|
+
export declare function saveMessagesHandler({ mastra, agentId, body, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'runtimeContext'> & {
|
|
23
27
|
body: {
|
|
24
28
|
messages: Parameters<MastraMemory['saveMessages']>[0]['messages'];
|
|
25
29
|
};
|
|
26
30
|
}): Promise<import("@mastra/core").MastraMessageV1[]>;
|
|
27
|
-
export declare function createThreadHandler({ mastra, agentId, body,
|
|
31
|
+
export declare function createThreadHandler({ mastra, agentId, body, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'runtimeContext'> & {
|
|
28
32
|
body?: Omit<Parameters<MastraMemory['createThread']>[0], 'resourceId'> & {
|
|
29
33
|
resourceId?: string;
|
|
30
34
|
};
|
|
31
35
|
}): Promise<import("@mastra/core").StorageThreadType>;
|
|
32
|
-
export declare function updateThreadHandler({ mastra, agentId, threadId, body,
|
|
36
|
+
export declare function updateThreadHandler({ mastra, agentId, threadId, body, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'runtimeContext'> & {
|
|
33
37
|
body?: Parameters<MastraMemory['saveThread']>[0]['thread'];
|
|
34
38
|
}): Promise<import("@mastra/core").StorageThreadType>;
|
|
35
|
-
export declare function deleteThreadHandler({ mastra, agentId, threadId,
|
|
39
|
+
export declare function deleteThreadHandler({ mastra, agentId, threadId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'runtimeContext'>): Promise<{
|
|
36
40
|
result: string;
|
|
37
41
|
}>;
|
|
38
42
|
export declare function getMessagesPaginatedHandler({ mastra, threadId, resourceId, selectBy, format, }: StorageGetMessagesArg & Pick<MemoryContext, 'mastra'>): Promise<import("@mastra/core").PaginationInfo & {
|
|
39
43
|
messages: import("@mastra/core").MastraMessageV1[] | import("@mastra/core").MastraMessageV2[];
|
|
40
44
|
}>;
|
|
41
|
-
export declare function getMessagesHandler({ mastra, agentId, threadId, limit,
|
|
45
|
+
export declare function getMessagesHandler({ mastra, agentId, threadId, limit, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'runtimeContext'> & {
|
|
42
46
|
limit?: number;
|
|
43
47
|
}): Promise<{
|
|
44
48
|
messages: import("ai").CoreMessage[];
|
|
45
|
-
uiMessages: import("
|
|
49
|
+
uiMessages: import("ai-v5").UIMessage<unknown, import("ai-v5").UIDataTypes, import("ai-v5").UITools>[];
|
|
50
|
+
legacyMessages: import("@mastra/core/agent").UIMessageWithMetadata[];
|
|
46
51
|
}>;
|
|
47
52
|
/**
|
|
48
53
|
* Handler to get the working memory for a thread (optionally resource-scoped).
|
|
49
54
|
* @returns workingMemory - the working memory for the thread
|
|
50
55
|
* @returns source - thread or resource
|
|
51
56
|
*/
|
|
52
|
-
export declare function getWorkingMemoryHandler({ mastra, agentId, threadId, resourceId,
|
|
57
|
+
export declare function getWorkingMemoryHandler({ mastra, agentId, threadId, resourceId, runtimeContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'runtimeContext'> & {
|
|
53
58
|
resourceId?: Parameters<MastraMemory['getWorkingMemory']>[0]['resourceId'];
|
|
54
59
|
memoryConfig?: Parameters<MastraMemory['getWorkingMemory']>[0]['memoryConfig'];
|
|
55
60
|
}): Promise<{
|
|
@@ -63,7 +68,7 @@ export declare function getWorkingMemoryHandler({ mastra, agentId, threadId, res
|
|
|
63
68
|
* @param threadId - the thread id
|
|
64
69
|
* @param body - the body containing the working memory to update and the resource id (optional)
|
|
65
70
|
*/
|
|
66
|
-
export declare function updateWorkingMemoryHandler({ mastra, agentId, threadId, body,
|
|
71
|
+
export declare function updateWorkingMemoryHandler({ mastra, agentId, threadId, body, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'runtimeContext'> & {
|
|
67
72
|
body: Omit<Parameters<MastraMemory['updateWorkingMemory']>[0], 'threadId'>;
|
|
68
73
|
}): Promise<{
|
|
69
74
|
success: boolean;
|
|
@@ -92,7 +97,7 @@ interface SearchResponse {
|
|
|
92
97
|
* Handler to delete one or more messages.
|
|
93
98
|
* @param messageIds - Can be a single ID, array of IDs, or objects with ID property
|
|
94
99
|
*/
|
|
95
|
-
export declare function deleteMessagesHandler({ mastra, agentId, messageIds,
|
|
100
|
+
export declare function deleteMessagesHandler({ mastra, agentId, messageIds, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'runtimeContext'> & {
|
|
96
101
|
messageIds: string | string[] | {
|
|
97
102
|
id: string;
|
|
98
103
|
} | {
|
|
@@ -102,7 +107,7 @@ export declare function deleteMessagesHandler({ mastra, agentId, messageIds, net
|
|
|
102
107
|
success: boolean;
|
|
103
108
|
message: string;
|
|
104
109
|
}>;
|
|
105
|
-
export declare function searchMemoryHandler({ mastra, agentId, searchQuery, resourceId, threadId, limit,
|
|
110
|
+
export declare function searchMemoryHandler({ mastra, agentId, searchQuery, resourceId, threadId, limit, runtimeContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'runtimeContext'> & {
|
|
106
111
|
searchQuery: string;
|
|
107
112
|
resourceId: string;
|
|
108
113
|
threadId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/memory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/memory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGrF,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,C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UAAU,cAAc;IACtB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,MAAM,EACN,OAAO,EACP,UAAU,EACV,cAAc,GACf,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,SAAS,GAAG,gBAAgB,CAAC,GAAG;IAChE,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,cAAc,EACd,YAAY,GACb,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,SAAS,GAAG,gBAAgB,CAAC,GAAG;IAChE,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,CAwM3D"}
|
|
@@ -1,3 +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-OEOGYAQC.js';
|
|
2
2
|
//# sourceMappingURL=memory.js.map
|
|
3
3
|
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2S4IMB6E_cjs = require('../../chunk-2S4IMB6E.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "getAITraceHandler", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk2S4IMB6E_cjs.getAITraceHandler; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "getAITracesPaginatedHandler", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk2S4IMB6E_cjs.getAITracesPaginatedHandler; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "getScoresBySpan", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunk2S4IMB6E_cjs.getScoresBySpan; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "scoreTracesHandler", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunk2S4IMB6E_cjs.scoreTracesHandler; }
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=observability.cjs.map
|
|
24
|
+
//# sourceMappingURL=observability.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"observability.cjs"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { AITracesPaginatedArg, StoragePagination } from '@mastra/core';
|
|
2
|
+
import type { Context } from '../types.js';
|
|
3
|
+
interface ObservabilityContext extends Context {
|
|
4
|
+
traceId?: string;
|
|
5
|
+
body?: AITracesPaginatedArg;
|
|
6
|
+
}
|
|
7
|
+
interface ScoreTracesContext extends Context {
|
|
8
|
+
body?: {
|
|
9
|
+
scorerName: string;
|
|
10
|
+
targets: Array<{
|
|
11
|
+
traceId: string;
|
|
12
|
+
spanId?: string;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get a complete AI trace by trace ID
|
|
18
|
+
* Returns all spans in the trace with their parent-child relationships
|
|
19
|
+
*/
|
|
20
|
+
export declare function getAITraceHandler({ mastra, traceId }: ObservabilityContext & {
|
|
21
|
+
traceId: string;
|
|
22
|
+
}): Promise<import("@mastra/core").AITraceRecord>;
|
|
23
|
+
/**
|
|
24
|
+
* Get paginated AI traces with filtering and pagination
|
|
25
|
+
* Returns only root spans (parent spans) for pagination, not child spans
|
|
26
|
+
*/
|
|
27
|
+
export declare function getAITracesPaginatedHandler({ mastra, body }: ObservabilityContext): Promise<{
|
|
28
|
+
pagination: import("@mastra/core").PaginationInfo;
|
|
29
|
+
spans: import("@mastra/core").AISpanRecord[];
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Score traces using a specified scorer
|
|
33
|
+
* Fire-and-forget approach - returns immediately while scoring runs in background
|
|
34
|
+
*/
|
|
35
|
+
export declare function scoreTracesHandler({ mastra, body }: ScoreTracesContext): Promise<{
|
|
36
|
+
status: string;
|
|
37
|
+
message: string;
|
|
38
|
+
traceCount: number;
|
|
39
|
+
}>;
|
|
40
|
+
export declare function getScoresBySpan({ mastra, traceId, spanId, pagination, }: Context & {
|
|
41
|
+
traceId: string;
|
|
42
|
+
spanId: string;
|
|
43
|
+
pagination: StoragePagination;
|
|
44
|
+
}): Promise<{
|
|
45
|
+
pagination: import("@mastra/core").PaginationInfo;
|
|
46
|
+
scores: import("@mastra/core/scores").ScoreRowData[];
|
|
47
|
+
}>;
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=observability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/observability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAG5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGxC,UAAU,oBAAqB,SAAQ,OAAO;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,UAAU,kBAAmB,SAAQ,OAAO;IAC1C,IAAI,CAAC,EAAE;QACL,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,KAAK,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;YAChB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC,CAAC;KACJ,CAAC;CACH;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,oBAAoB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,iDAqBtG;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,oBAAoB;;;GAwCvF;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,kBAAkB;;;;GA4C5E;AAED,wBAAsB,eAAe,CAAC,EACpC,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,GACX,EAAE,OAAO,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE;;;GAe9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"observability.js"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSPRRK3P7_cjs = require('../../chunk-SPRRK3P7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "getScorerHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkSPRRK3P7_cjs.getScorerHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getScorersHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkSPRRK3P7_cjs.getScorersHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getScoresByEntityIdHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSPRRK3P7_cjs.getScoresByEntityIdHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getScoresByRunIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkSPRRK3P7_cjs.getScoresByRunIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getScoresByScorerIdHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkSPRRK3P7_cjs.getScoresByScorerIdHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "saveScoreHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkSPRRK3P7_cjs.saveScoreHandler; }
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=scores.cjs.map
|
|
32
32
|
//# sourceMappingURL=scores.cjs.map
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
2
2
|
import type { MastraScorerEntry, ScoreRowData } from '@mastra/core/scores';
|
|
3
3
|
import type { StoragePagination } from '@mastra/core/storage';
|
|
4
|
-
import type { Context } from '../types';
|
|
4
|
+
import type { Context } from '../types.js';
|
|
5
5
|
export declare function getScorersHandler({ mastra, runtimeContext }: Context & {
|
|
6
6
|
runtimeContext: RuntimeContext;
|
|
7
7
|
}): Promise<{
|
|
8
8
|
[k: string]: MastraScorerEntry & {
|
|
9
9
|
agentIds: string[];
|
|
10
|
+
agentNames: string[];
|
|
10
11
|
workflowIds: string[];
|
|
12
|
+
isRegistered: boolean;
|
|
11
13
|
};
|
|
12
14
|
}>;
|
|
13
15
|
export declare function getScorerHandler({ mastra, scorerId, runtimeContext, }: Context & {
|
|
@@ -15,31 +17,132 @@ export declare function getScorerHandler({ mastra, scorerId, runtimeContext, }:
|
|
|
15
17
|
runtimeContext: RuntimeContext;
|
|
16
18
|
}): Promise<(MastraScorerEntry & {
|
|
17
19
|
agentIds: string[];
|
|
20
|
+
agentNames: string[];
|
|
18
21
|
workflowIds: string[];
|
|
22
|
+
isRegistered: boolean;
|
|
19
23
|
}) | null>;
|
|
20
24
|
export declare function getScoresByRunIdHandler({ mastra, runId, pagination, }: Context & {
|
|
21
25
|
runId: string;
|
|
22
26
|
pagination: StoragePagination;
|
|
23
|
-
}): Promise<
|
|
27
|
+
}): Promise<{
|
|
24
28
|
pagination: import("@mastra/core").PaginationInfo;
|
|
25
|
-
scores:
|
|
29
|
+
scores: {
|
|
30
|
+
spanId?: string;
|
|
31
|
+
traceId?: string;
|
|
32
|
+
runId: string;
|
|
33
|
+
input: any;
|
|
34
|
+
output: any;
|
|
35
|
+
additionalContext?: Record<string, any>;
|
|
36
|
+
runtimeContext?: Record<string, any>;
|
|
37
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
38
|
+
extractStepResult?: any;
|
|
39
|
+
extractPrompt?: string;
|
|
40
|
+
score: number;
|
|
41
|
+
analyzeStepResult?: any;
|
|
42
|
+
analyzePrompt?: string;
|
|
43
|
+
reason?: string;
|
|
44
|
+
reasonPrompt?: string;
|
|
45
|
+
scorer: Record<string, any>;
|
|
46
|
+
metadata?: Record<string, any>;
|
|
47
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
48
|
+
entity: Record<string, any>;
|
|
49
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
50
|
+
structuredOutput?: boolean;
|
|
51
|
+
resourceId?: string;
|
|
52
|
+
threadId?: string;
|
|
53
|
+
id: string;
|
|
54
|
+
entityId: string;
|
|
55
|
+
scorerId: string;
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
preprocessStepResult?: Record<string, any>;
|
|
59
|
+
preprocessPrompt?: string;
|
|
60
|
+
generateScorePrompt?: string;
|
|
61
|
+
generateReasonPrompt?: string;
|
|
62
|
+
}[];
|
|
26
63
|
}>;
|
|
27
64
|
export declare function getScoresByScorerIdHandler({ mastra, scorerId, pagination, entityId, entityType, }: Context & {
|
|
28
65
|
scorerId: string;
|
|
29
66
|
pagination: StoragePagination;
|
|
30
67
|
entityId?: string;
|
|
31
68
|
entityType?: string;
|
|
32
|
-
}): Promise<
|
|
69
|
+
}): Promise<{
|
|
33
70
|
pagination: import("@mastra/core").PaginationInfo;
|
|
34
|
-
scores:
|
|
71
|
+
scores: {
|
|
72
|
+
spanId?: string;
|
|
73
|
+
traceId?: string;
|
|
74
|
+
runId: string;
|
|
75
|
+
input: any;
|
|
76
|
+
output: any;
|
|
77
|
+
additionalContext?: Record<string, any>;
|
|
78
|
+
runtimeContext?: Record<string, any>;
|
|
79
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
80
|
+
extractStepResult?: any;
|
|
81
|
+
extractPrompt?: string;
|
|
82
|
+
score: number;
|
|
83
|
+
analyzeStepResult?: any;
|
|
84
|
+
analyzePrompt?: string;
|
|
85
|
+
reason?: string;
|
|
86
|
+
reasonPrompt?: string;
|
|
87
|
+
scorer: Record<string, any>;
|
|
88
|
+
metadata?: Record<string, any>;
|
|
89
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
90
|
+
entity: Record<string, any>;
|
|
91
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
92
|
+
structuredOutput?: boolean;
|
|
93
|
+
resourceId?: string;
|
|
94
|
+
threadId?: string;
|
|
95
|
+
id: string;
|
|
96
|
+
entityId: string;
|
|
97
|
+
scorerId: string;
|
|
98
|
+
createdAt: Date;
|
|
99
|
+
updatedAt: Date;
|
|
100
|
+
preprocessStepResult?: Record<string, any>;
|
|
101
|
+
preprocessPrompt?: string;
|
|
102
|
+
generateScorePrompt?: string;
|
|
103
|
+
generateReasonPrompt?: string;
|
|
104
|
+
}[];
|
|
35
105
|
}>;
|
|
36
106
|
export declare function getScoresByEntityIdHandler({ mastra, entityId, entityType, pagination, }: Context & {
|
|
37
107
|
entityId: string;
|
|
38
108
|
entityType: string;
|
|
39
109
|
pagination: StoragePagination;
|
|
40
|
-
}): Promise<
|
|
110
|
+
}): Promise<{
|
|
41
111
|
pagination: import("@mastra/core").PaginationInfo;
|
|
42
|
-
scores:
|
|
112
|
+
scores: {
|
|
113
|
+
spanId?: string;
|
|
114
|
+
traceId?: string;
|
|
115
|
+
runId: string;
|
|
116
|
+
input: any;
|
|
117
|
+
output: any;
|
|
118
|
+
additionalContext?: Record<string, any>;
|
|
119
|
+
runtimeContext?: Record<string, any>;
|
|
120
|
+
tracingContext?: import("@mastra/core/ai-tracing").TracingContext;
|
|
121
|
+
extractStepResult?: any;
|
|
122
|
+
extractPrompt?: string;
|
|
123
|
+
score: number;
|
|
124
|
+
analyzeStepResult?: any;
|
|
125
|
+
analyzePrompt?: string;
|
|
126
|
+
reason?: string;
|
|
127
|
+
reasonPrompt?: string;
|
|
128
|
+
scorer: Record<string, any>;
|
|
129
|
+
metadata?: Record<string, any>;
|
|
130
|
+
source: import("@mastra/core/scores").ScoringSource;
|
|
131
|
+
entity: Record<string, any>;
|
|
132
|
+
entityType: import("@mastra/core/scores").ScoringEntityType;
|
|
133
|
+
structuredOutput?: boolean;
|
|
134
|
+
resourceId?: string;
|
|
135
|
+
threadId?: string;
|
|
136
|
+
id: string;
|
|
137
|
+
entityId: string;
|
|
138
|
+
scorerId: string;
|
|
139
|
+
createdAt: Date;
|
|
140
|
+
updatedAt: Date;
|
|
141
|
+
preprocessStepResult?: Record<string, any>;
|
|
142
|
+
preprocessPrompt?: string;
|
|
143
|
+
generateScorePrompt?: string;
|
|
144
|
+
generateReasonPrompt?: string;
|
|
145
|
+
}[];
|
|
43
146
|
}>;
|
|
44
147
|
export declare function saveScoreHandler({ mastra, score }: Context & {
|
|
45
148
|
score: ScoreRowData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scores.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/scores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"scores.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/scores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAqFxC,wBAAsB,iBAAiB,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,OAAO,GAAG;IAAE,cAAc,EAAE,cAAc,CAAA;CAAE;;kBAvE5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erHandler, getScorersHandler, getScoresByEntityIdHandler, getScoresByRunIdHandler, getScoresByScorerIdHandler, saveScoreHandler } from '../../chunk-
|
|
1
|
+
export { getScorerHandler, getScorersHandler, getScoresByEntityIdHandler, getScoresByRunIdHandler, getScoresByScorerIdHandler, saveScoreHandler } from '../../chunk-AW5BU3RQ.js';
|
|
2
2
|
//# sourceMappingURL=scores.js.map
|
|
3
3
|
//# sourceMappingURL=scores.js.map
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6ZR275MD_cjs = require('../../chunk-6ZR275MD.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.defineProperty(exports, "collectParentSpanIds", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk6ZR275MD_cjs.collectParentSpanIds; }
|
|
10
|
+
});
|
|
7
11
|
Object.defineProperty(exports, "getTelemetryHandler", {
|
|
8
12
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6ZR275MD_cjs.getTelemetryHandler; }
|
|
10
14
|
});
|
|
11
15
|
Object.defineProperty(exports, "storeTelemetryHandler", {
|
|
12
16
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6ZR275MD_cjs.storeTelemetryHandler; }
|
|
14
18
|
});
|
|
15
19
|
//# sourceMappingURL=telemetry.cjs.map
|
|
16
20
|
//# sourceMappingURL=telemetry.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Context } from '../types';
|
|
1
|
+
import type { Context } from '../types.js';
|
|
2
2
|
interface TelemetryContext extends Context {
|
|
3
3
|
body?: {
|
|
4
4
|
name?: string;
|
|
@@ -28,5 +28,6 @@ export declare function storeTelemetryHandler({ mastra, body }: Context & {
|
|
|
28
28
|
message: string;
|
|
29
29
|
traceCount: number;
|
|
30
30
|
}>;
|
|
31
|
+
export declare const collectParentSpanIds: (items: any[]) => Set<string>;
|
|
31
32
|
export {};
|
|
32
33
|
//# sourceMappingURL=telemetry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/telemetry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,UAAU,gBAAiB,SAAQ,OAAO;IACxC,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC9B,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,MAAM,CAAC,EAAE,IAAI,CAAC;KACf,CAAC;CACH;AAED,wBAAsB,mBAAmB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CA2C3E;AAED,wBAAsB,qBAAqB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,OAAO,GAAG;IAAE,IAAI,EAAE;QAAE,aAAa,EAAE,GAAG,EAAE,CAAA;KAAE,CAAA;CAAE;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/telemetry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,UAAU,gBAAiB,SAAQ,OAAO;IACxC,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC9B,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,MAAM,CAAC,EAAE,IAAI,CAAC;KACf,CAAC;CACH;AAED,wBAAsB,mBAAmB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CA2C3E;AAED,wBAAsB,qBAAqB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,OAAO,GAAG;IAAE,IAAI,EAAE;QAAE,aAAa,EAAE,GAAG,EAAE,CAAA;KAAE,CAAA;CAAE;;;;;;;;;;;;GAkHzG;AAED,eAAO,MAAM,oBAAoB,GAAI,OAAO,GAAG,EAAE,gBAahD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-
|
|
1
|
+
export { collectParentSpanIds, getTelemetryHandler, storeTelemetryHandler } from '../../chunk-67GYDFSB.js';
|
|
2
2
|
//# sourceMappingURL=telemetry.js.map
|
|
3
3
|
//# sourceMappingURL=telemetry.js.map
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTRGAMKHX_cjs = require('../../chunk-TRGAMKHX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "executeAgentToolHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkTRGAMKHX_cjs.executeAgentToolHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "executeToolHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkTRGAMKHX_cjs.executeToolHandler; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "getAgentToolHandler", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkTRGAMKHX_cjs.getAgentToolHandler; }
|
|
14
18
|
});
|
|
15
19
|
Object.defineProperty(exports, "getToolByIdHandler", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkTRGAMKHX_cjs.getToolByIdHandler; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "getToolsHandler", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkTRGAMKHX_cjs.getToolsHandler; }
|
|
22
26
|
});
|
|
23
27
|
//# sourceMappingURL=tools.cjs.map
|
|
24
28
|
//# sourceMappingURL=tools.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RuntimeContext } from '@mastra/core/di';
|
|
2
2
|
import type { ToolAction, VercelTool } from '@mastra/core/tools';
|
|
3
|
-
import type { Context } from '../types';
|
|
3
|
+
import type { Context } from '../types.js';
|
|
4
4
|
interface ToolsContext extends Context {
|
|
5
5
|
tools?: Record<string, ToolAction | VercelTool>;
|
|
6
6
|
toolId?: string;
|
|
@@ -12,6 +12,10 @@ export declare function executeToolHandler(tools: ToolsContext['tools']): ({ mas
|
|
|
12
12
|
data?: unknown;
|
|
13
13
|
runtimeContext: RuntimeContext;
|
|
14
14
|
}) => Promise<any>;
|
|
15
|
+
export declare function getAgentToolHandler({ mastra, agentId, toolId, runtimeContext, }: Pick<ToolsContext, 'mastra' | 'toolId'> & {
|
|
16
|
+
agentId?: string;
|
|
17
|
+
runtimeContext: RuntimeContext;
|
|
18
|
+
}): Promise<any>;
|
|
15
19
|
export declare function executeAgentToolHandler({ mastra, agentId, toolId, data, runtimeContext, }: Pick<ToolsContext, 'mastra' | 'toolId'> & {
|
|
16
20
|
agentId?: string;
|
|
17
21
|
data: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACt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,KAAK,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,gCAuB3E;AAED,wBAAsB,kBAAkB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC,gBAkBjG;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,IAC/C,kDAMX,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;CAChC,kBAqCF;AAED,wBAAsB,mBAAmB,CAAC,EACxC,MAAM,EACN,OAAO,EACP,MAAM,EACN,cAAc,GACf,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;CAChC,gBAyBA;AAED,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,OAAO,EACP,MAAM,EACN,IAAI,EACJ,cAAc,GACf,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,EAAE,cAAc,CAAC;CAChC,gBAsCA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { executeAgentToolHandler, executeToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-
|
|
1
|
+
export { executeAgentToolHandler, executeToolHandler, getAgentToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-AHB4JCIQ.js';
|
|
2
2
|
//# sourceMappingURL=tools.js.map
|
|
3
3
|
//# sourceMappingURL=tools.js.map
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkG4PUALCE_cjs = require('../../chunk-G4PUALCE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.defineProperty(exports, "sanitizeBody", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkG4PUALCE_cjs.sanitizeBody; }
|
|
10
|
+
});
|
|
7
11
|
Object.defineProperty(exports, "validateBody", {
|
|
8
12
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkG4PUALCE_cjs.validateBody; }
|
|
10
14
|
});
|
|
11
15
|
//# sourceMappingURL=utils.cjs.map
|
|
12
16
|
//# sourceMappingURL=utils.cjs.map
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export declare function validateBody(body: Record<string, unknown>): void;
|
|
2
|
+
/**
|
|
3
|
+
* sanitizes the body by removing disallowed keys.
|
|
4
|
+
* @param body body to sanitize
|
|
5
|
+
* @param disallowedKeys keys to remove from the body
|
|
6
|
+
*/
|
|
7
|
+
export declare function sanitizeBody(body: Record<string, unknown>, disallowedKeys: string[]): void;
|
|
2
8
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAWzD"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAWzD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,QAMnF"}
|