@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,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEP3JQDPD_cjs = require('../../chunk-EP3JQDPD.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createIndex", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkEP3JQDPD_cjs.createIndex; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "deleteIndex", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkEP3JQDPD_cjs.deleteIndex; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "describeIndex", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkEP3JQDPD_cjs.describeIndex; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "listIndexes", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkEP3JQDPD_cjs.listIndexes; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "queryVectors", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkEP3JQDPD_cjs.queryVectors; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "upsertVectors", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkEP3JQDPD_cjs.upsertVectors; }
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=vector.cjs.map
|
|
32
32
|
//# sourceMappingURL=vector.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-
|
|
1
|
+
export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-MYR4PVGN.js';
|
|
2
2
|
//# sourceMappingURL=vector.js.map
|
|
3
3
|
//# sourceMappingURL=vector.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3SNGNFUJ_cjs = require('../../chunk-3SNGNFUJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "generateSpeechHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk3SNGNFUJ_cjs.generateSpeechHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getListenerHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk3SNGNFUJ_cjs.getListenerHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getSpeakersHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk3SNGNFUJ_cjs.getSpeakersHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "transcribeSpeechHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk3SNGNFUJ_cjs.transcribeSpeechHandler; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=voice.cjs.map
|
|
24
24
|
//# sourceMappingURL=voice.cjs.map
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { Agent } from '@mastra/core/agent';
|
|
2
|
-
import type {
|
|
2
|
+
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
3
|
+
import type { Context } from '../types.js';
|
|
3
4
|
interface VoiceContext extends Context {
|
|
4
5
|
agentId?: string;
|
|
6
|
+
runtimeContext?: RuntimeContext;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Get available speakers for an agent
|
|
8
10
|
*/
|
|
9
|
-
export declare function getSpeakersHandler({ mastra, agentId }: VoiceContext): Promise<{
|
|
11
|
+
export declare function getSpeakersHandler({ mastra, agentId, runtimeContext }: VoiceContext): Promise<{
|
|
10
12
|
voiceId: string;
|
|
11
13
|
}[]>;
|
|
12
14
|
/**
|
|
13
15
|
* Generate speech from text
|
|
14
16
|
*/
|
|
15
|
-
export declare function generateSpeechHandler({ mastra, agentId, body, }: VoiceContext & {
|
|
17
|
+
export declare function generateSpeechHandler({ mastra, agentId, body, runtimeContext, }: VoiceContext & {
|
|
16
18
|
body?: {
|
|
17
19
|
text?: string;
|
|
18
20
|
speakerId?: string;
|
|
@@ -21,7 +23,7 @@ export declare function generateSpeechHandler({ mastra, agentId, body, }: VoiceC
|
|
|
21
23
|
/**
|
|
22
24
|
* Transcribe speech to text
|
|
23
25
|
*/
|
|
24
|
-
export declare function transcribeSpeechHandler({ mastra, agentId, body, }: VoiceContext & {
|
|
26
|
+
export declare function transcribeSpeechHandler({ mastra, agentId, body, runtimeContext, }: VoiceContext & {
|
|
25
27
|
body?: {
|
|
26
28
|
audioData?: Buffer;
|
|
27
29
|
options?: Parameters<NonNullable<Agent['voice']>['listen']>[1];
|
|
@@ -32,7 +34,7 @@ export declare function transcribeSpeechHandler({ mastra, agentId, body, }: Voic
|
|
|
32
34
|
/**
|
|
33
35
|
* Get available listeners for an agent
|
|
34
36
|
*/
|
|
35
|
-
export declare function getListenerHandler({ mastra, agentId }: VoiceContext): Promise<{
|
|
37
|
+
export declare function getListenerHandler({ mastra, agentId, runtimeContext }: VoiceContext): Promise<{
|
|
36
38
|
enabled: boolean;
|
|
37
39
|
}>;
|
|
38
40
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/voice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/voice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,YAAY;;KAuBzF;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,GACf,EAAE,YAAY,GAAG;IAChB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,kCAwCA;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,GACf,EAAE,YAAY,GAAG;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAChE,CAAC;CACH;;GA+BA;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,YAAY;;GAuBzF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-
|
|
1
|
+
export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-QQXMIP6C.js';
|
|
2
2
|
//# sourceMappingURL=voice.js.map
|
|
3
3
|
//# sourceMappingURL=voice.js.map
|
|
@@ -1,68 +1,80 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMQDBNHBT_cjs = require('../../chunk-MQDBNHBT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "cancelWorkflowRunHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkMQDBNHBT_cjs.cancelWorkflowRunHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createWorkflowRunHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkMQDBNHBT_cjs.createWorkflowRunHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getWorkflowByIdHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkMQDBNHBT_cjs.getWorkflowByIdHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getWorkflowRunByIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkMQDBNHBT_cjs.getWorkflowRunByIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getWorkflowRunExecutionResultHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkMQDBNHBT_cjs.getWorkflowRunExecutionResultHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getWorkflowRunsHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkMQDBNHBT_cjs.getWorkflowRunsHandler; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getWorkflowsHandler", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkMQDBNHBT_cjs.getWorkflowsHandler; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "observeStreamVNextWorkflowHandler", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkMQDBNHBT_cjs.observeStreamVNextWorkflowHandler; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "observeStreamWorkflowHandler", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkMQDBNHBT_cjs.observeStreamWorkflowHandler; }
|
|
34
42
|
});
|
|
35
43
|
Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
|
|
36
44
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMQDBNHBT_cjs.resumeAsyncWorkflowHandler; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "resumeStreamWorkflowHandler", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkMQDBNHBT_cjs.resumeStreamWorkflowHandler; }
|
|
38
50
|
});
|
|
39
51
|
Object.defineProperty(exports, "resumeWorkflowHandler", {
|
|
40
52
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMQDBNHBT_cjs.resumeWorkflowHandler; }
|
|
42
54
|
});
|
|
43
55
|
Object.defineProperty(exports, "sendWorkflowRunEventHandler", {
|
|
44
56
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkMQDBNHBT_cjs.sendWorkflowRunEventHandler; }
|
|
46
58
|
});
|
|
47
59
|
Object.defineProperty(exports, "startAsyncWorkflowHandler", {
|
|
48
60
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMQDBNHBT_cjs.startAsyncWorkflowHandler; }
|
|
50
62
|
});
|
|
51
63
|
Object.defineProperty(exports, "startWorkflowRunHandler", {
|
|
52
64
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkMQDBNHBT_cjs.startWorkflowRunHandler; }
|
|
54
66
|
});
|
|
55
67
|
Object.defineProperty(exports, "streamVNextWorkflowHandler", {
|
|
56
68
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkMQDBNHBT_cjs.streamVNextWorkflowHandler; }
|
|
58
70
|
});
|
|
59
71
|
Object.defineProperty(exports, "streamWorkflowHandler", {
|
|
60
72
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMQDBNHBT_cjs.streamWorkflowHandler; }
|
|
62
74
|
});
|
|
63
75
|
Object.defineProperty(exports, "watchWorkflowHandler", {
|
|
64
76
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMQDBNHBT_cjs.watchWorkflowHandler; }
|
|
66
78
|
});
|
|
67
79
|
//# sourceMappingURL=workflows.cjs.map
|
|
68
80
|
//# sourceMappingURL=workflows.cjs.map
|
|
@@ -1,73 +1,77 @@
|
|
|
1
1
|
import { ReadableStream } from 'node:stream/web';
|
|
2
|
+
import type { TracingOptions } from '@mastra/core/ai-tracing';
|
|
2
3
|
import type { RuntimeContext } from '@mastra/core/di';
|
|
3
4
|
import type { WorkflowRuns } from '@mastra/core/storage';
|
|
4
|
-
import type { Workflow,
|
|
5
|
-
import type { Context } from '../types';
|
|
6
|
-
interface WorkflowContext extends Context {
|
|
5
|
+
import type { Workflow, WatchEvent, WorkflowInfo, StreamEvent, ChunkType } from '@mastra/core/workflows';
|
|
6
|
+
import type { Context } from '../types.js';
|
|
7
|
+
export interface WorkflowContext extends Context {
|
|
7
8
|
workflowId?: string;
|
|
8
9
|
runId?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare function getWorkflowsHandler({ mastra }: WorkflowContext): Promise<
|
|
11
|
-
|
|
12
|
-
id: string;
|
|
13
|
-
description: string;
|
|
14
|
-
inputSchema: string | undefined;
|
|
15
|
-
outputSchema: string | undefined;
|
|
16
|
-
resumeSchema: string | undefined;
|
|
17
|
-
suspendSchema: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
export declare function getWorkflowByIdHandler({ mastra, workflowId }: WorkflowContext): Promise<{
|
|
20
|
-
steps: Record<string, SerializedStep>;
|
|
21
|
-
allSteps: Record<string, SerializedStep>;
|
|
22
|
-
name: string | undefined;
|
|
23
|
-
description: string | undefined;
|
|
24
|
-
stepGraph: SerializedStepFlowEntry[];
|
|
25
|
-
inputSchema: string | undefined;
|
|
26
|
-
outputSchema: string | undefined;
|
|
27
|
-
}>;
|
|
11
|
+
export declare function getWorkflowsHandler({ mastra }: WorkflowContext): Promise<Record<string, WorkflowInfo>>;
|
|
12
|
+
export declare function getWorkflowByIdHandler({ mastra, workflowId }: WorkflowContext): Promise<WorkflowInfo>;
|
|
28
13
|
export declare function getWorkflowRunByIdHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReturnType<Workflow['getWorkflowRunById']>>;
|
|
29
14
|
export declare function getWorkflowRunExecutionResultHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<WatchEvent['payload']['workflowState']>;
|
|
30
15
|
export declare function createWorkflowRunHandler({ mastra, workflowId, runId: prevRunId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<{
|
|
31
16
|
runId: string;
|
|
32
17
|
}>;
|
|
33
|
-
export declare function startAsyncWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
18
|
+
export declare function startAsyncWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
34
19
|
inputData?: unknown;
|
|
35
20
|
runtimeContext?: RuntimeContext;
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
tracingOptions?: TracingOptions;
|
|
22
|
+
}): Promise<import("@mastra/core").WorkflowResult<any, any, any, any>>;
|
|
23
|
+
export declare function startWorkflowRunHandler({ mastra, runtimeContext, workflowId, runId, inputData, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
38
24
|
inputData?: unknown;
|
|
39
25
|
runtimeContext?: RuntimeContext;
|
|
26
|
+
tracingOptions?: TracingOptions;
|
|
40
27
|
}): Promise<{
|
|
41
28
|
message: string;
|
|
42
29
|
}>;
|
|
43
|
-
export declare function watchWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>
|
|
44
|
-
|
|
30
|
+
export declare function watchWorkflowHandler({ mastra, workflowId, runId, eventType, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
31
|
+
eventType?: 'watch' | 'watch-v2';
|
|
32
|
+
}): Promise<ReadableStream<string>>;
|
|
33
|
+
export declare function streamWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
45
34
|
inputData?: unknown;
|
|
46
35
|
runtimeContext?: RuntimeContext;
|
|
36
|
+
tracingOptions?: TracingOptions;
|
|
47
37
|
}): Promise<{
|
|
48
|
-
stream: ReadableStream<
|
|
49
|
-
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<
|
|
38
|
+
stream: ReadableStream<StreamEvent>;
|
|
39
|
+
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<any, any, any, any>>;
|
|
50
40
|
}>;
|
|
51
|
-
export declare function
|
|
41
|
+
export declare function observeStreamWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream<StreamEvent>>;
|
|
42
|
+
export declare function streamVNextWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, closeOnSuspend, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
52
43
|
inputData?: unknown;
|
|
53
44
|
runtimeContext?: RuntimeContext;
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
closeOnSuspend?: boolean;
|
|
46
|
+
tracingOptions?: TracingOptions;
|
|
47
|
+
}): Promise<import("@mastra/core").MastraWorkflowStream<any, any, any, any>>;
|
|
48
|
+
export declare function observeStreamVNextWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream<ChunkType>>;
|
|
49
|
+
export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, tracingOptions, }: WorkflowContext & {
|
|
56
50
|
body: {
|
|
57
51
|
step: string | string[];
|
|
58
52
|
resumeData?: unknown;
|
|
59
53
|
};
|
|
60
54
|
runtimeContext?: RuntimeContext;
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
tracingOptions?: TracingOptions;
|
|
56
|
+
}): Promise<import("@mastra/core").WorkflowResult<any, any, any, any>>;
|
|
57
|
+
export declare function resumeWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, tracingOptions, }: WorkflowContext & {
|
|
63
58
|
body: {
|
|
64
59
|
step: string | string[];
|
|
65
60
|
resumeData?: unknown;
|
|
66
61
|
};
|
|
67
62
|
runtimeContext?: RuntimeContext;
|
|
63
|
+
tracingOptions?: TracingOptions;
|
|
68
64
|
}): Promise<{
|
|
69
65
|
message: string;
|
|
70
66
|
}>;
|
|
67
|
+
export declare function resumeStreamWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, tracingOptions, }: WorkflowContext & {
|
|
68
|
+
body: {
|
|
69
|
+
step: string | string[];
|
|
70
|
+
resumeData?: unknown;
|
|
71
|
+
};
|
|
72
|
+
runtimeContext?: RuntimeContext;
|
|
73
|
+
tracingOptions?: TracingOptions;
|
|
74
|
+
}): Promise<import("@mastra/core").MastraWorkflowStream<any, any, any, any>>;
|
|
71
75
|
export declare function getWorkflowRunsHandler({ mastra, workflowId, fromDate, toDate, limit, offset, resourceId, }: WorkflowContext & {
|
|
72
76
|
fromDate?: Date;
|
|
73
77
|
toDate?: Date;
|
|
@@ -84,5 +88,4 @@ export declare function sendWorkflowRunEventHandler({ mastra, workflowId, runId,
|
|
|
84
88
|
}): Promise<{
|
|
85
89
|
message: string;
|
|
86
90
|
}>;
|
|
87
|
-
export {};
|
|
88
91
|
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEzG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,MAAM,WAAW,eAAgB,SAAQ,OAAO;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE,eAAe,yCAWpE;AAkDD,wBAAsB,sBAAsB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC,CAgB3G;AAED,wBAAsB,yBAAyB,CAAC,EAC9C,MAAM,EACN,UAAU,EACV,KAAK,GACN,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,oBAAoB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AK,EACL,KAAK,EACL,IAAI,GACL,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf;;GA8BA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-
|
|
1
|
+
export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, observeStreamVNextWorkflowHandler, observeStreamWorkflowHandler, resumeAsyncWorkflowHandler, resumeStreamWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-DB63UMTV.js';
|
|
2
2
|
//# sourceMappingURL=workflows.js.map
|
|
3
3
|
//# sourceMappingURL=workflows.js.map
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -1,67 +1,72 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
3
|
+
var chunk3SNGNFUJ_cjs = require('../chunk-3SNGNFUJ.cjs');
|
|
4
|
+
var chunkXN74I6VW_cjs = require('../chunk-XN74I6VW.cjs');
|
|
5
|
+
var chunk3LTO44EP_cjs = require('../chunk-3LTO44EP.cjs');
|
|
6
|
+
var chunk2S4IMB6E_cjs = require('../chunk-2S4IMB6E.cjs');
|
|
7
|
+
var chunkSPRRK3P7_cjs = require('../chunk-SPRRK3P7.cjs');
|
|
8
|
+
var chunk6ZR275MD_cjs = require('../chunk-6ZR275MD.cjs');
|
|
9
|
+
var chunkTRGAMKHX_cjs = require('../chunk-TRGAMKHX.cjs');
|
|
10
|
+
var chunkEP3JQDPD_cjs = require('../chunk-EP3JQDPD.cjs');
|
|
11
|
+
var chunkTOP25AIO_cjs = require('../chunk-TOP25AIO.cjs');
|
|
12
|
+
var chunk7HDOBOGG_cjs = require('../chunk-7HDOBOGG.cjs');
|
|
13
|
+
var chunkMQDBNHBT_cjs = require('../chunk-MQDBNHBT.cjs');
|
|
14
|
+
var chunkBZLZFHAT_cjs = require('../chunk-BZLZFHAT.cjs');
|
|
15
|
+
var chunkI3C4ODGV_cjs = require('../chunk-I3C4ODGV.cjs');
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "voice", {
|
|
19
20
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk3SNGNFUJ_cjs.voice_exports; }
|
|
21
22
|
});
|
|
22
|
-
Object.defineProperty(exports, "
|
|
23
|
+
Object.defineProperty(exports, "logs", {
|
|
23
24
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXN74I6VW_cjs.logs_exports; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "memory", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk3LTO44EP_cjs.memory_exports; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "observability", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk2S4IMB6E_cjs.observability_exports; }
|
|
25
34
|
});
|
|
26
35
|
Object.defineProperty(exports, "scores", {
|
|
27
36
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkSPRRK3P7_cjs.scores_exports; }
|
|
29
38
|
});
|
|
30
39
|
Object.defineProperty(exports, "telemetry", {
|
|
31
40
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6ZR275MD_cjs.telemetry_exports; }
|
|
33
42
|
});
|
|
34
43
|
Object.defineProperty(exports, "tools", {
|
|
35
44
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkTRGAMKHX_cjs.tools_exports; }
|
|
37
46
|
});
|
|
38
47
|
Object.defineProperty(exports, "vector", {
|
|
39
48
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "voice", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () { return chunk4US5W7PH_cjs.voice_exports; }
|
|
49
|
+
get: function () { return chunkEP3JQDPD_cjs.vector_exports; }
|
|
45
50
|
});
|
|
46
51
|
Object.defineProperty(exports, "a2a", {
|
|
47
52
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkTOP25AIO_cjs.a2a_exports; }
|
|
49
54
|
});
|
|
50
|
-
Object.defineProperty(exports, "
|
|
55
|
+
Object.defineProperty(exports, "agentBuilder", {
|
|
51
56
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk7HDOBOGG_cjs.agent_builder_exports; }
|
|
53
58
|
});
|
|
54
|
-
Object.defineProperty(exports, "
|
|
59
|
+
Object.defineProperty(exports, "workflows", {
|
|
55
60
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMQDBNHBT_cjs.workflows_exports; }
|
|
57
62
|
});
|
|
58
|
-
Object.defineProperty(exports, "
|
|
63
|
+
Object.defineProperty(exports, "agents", {
|
|
59
64
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkBZLZFHAT_cjs.agents_exports; }
|
|
61
66
|
});
|
|
62
|
-
Object.defineProperty(exports, "
|
|
67
|
+
Object.defineProperty(exports, "legacyWorkflows", {
|
|
63
68
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkI3C4ODGV_cjs.legacyWorkflows_exports; }
|
|
65
70
|
});
|
|
66
71
|
//# sourceMappingURL=handlers.cjs.map
|
|
67
72
|
//# sourceMappingURL=handlers.cjs.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
3
|
-
export * as
|
|
4
|
-
export * as
|
|
5
|
-
export * as
|
|
6
|
-
export * as
|
|
7
|
-
export * as
|
|
8
|
-
export * as
|
|
9
|
-
export * as
|
|
10
|
-
export * as
|
|
11
|
-
export * as
|
|
12
|
-
export * as
|
|
1
|
+
export * as agentBuilder from './handlers/agent-builder.js';
|
|
2
|
+
export * as agents from './handlers/agents.js';
|
|
3
|
+
export * as a2a from './handlers/a2a.js';
|
|
4
|
+
export * as legacyWorkflows from './handlers/legacyWorkflows.js';
|
|
5
|
+
export * as logs from './handlers/logs.js';
|
|
6
|
+
export * as memory from './handlers/memory.js';
|
|
7
|
+
export * as observability from './handlers/observability.js';
|
|
8
|
+
export * as scores from './handlers/scores.js';
|
|
9
|
+
export * as telemetry from './handlers/telemetry.js';
|
|
10
|
+
export * as tools from './handlers/tools.js';
|
|
11
|
+
export * as vector from './handlers/vector.js';
|
|
12
|
+
export * as voice from './handlers/voice.js';
|
|
13
|
+
export * as workflows from './handlers/workflows.js';
|
|
13
14
|
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/server/handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/server/handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
1
|
+
export { voice_exports as voice } from '../chunk-QQXMIP6C.js';
|
|
2
|
+
export { logs_exports as logs } from '../chunk-ABRFV4XP.js';
|
|
3
|
+
export { memory_exports as memory } from '../chunk-OEOGYAQC.js';
|
|
4
|
+
export { observability_exports as observability } from '../chunk-BATEJLED.js';
|
|
5
|
+
export { scores_exports as scores } from '../chunk-AW5BU3RQ.js';
|
|
6
|
+
export { telemetry_exports as telemetry } from '../chunk-67GYDFSB.js';
|
|
7
|
+
export { tools_exports as tools } from '../chunk-AHB4JCIQ.js';
|
|
8
|
+
export { vector_exports as vector } from '../chunk-MYR4PVGN.js';
|
|
9
|
+
export { a2a_exports as a2a } from '../chunk-HPXAM2PG.js';
|
|
10
|
+
export { agent_builder_exports as agentBuilder } from '../chunk-FWO7VQDC.js';
|
|
11
|
+
export { workflows_exports as workflows } from '../chunk-DB63UMTV.js';
|
|
12
|
+
export { agents_exports as agents } from '../chunk-JSLAYFEW.js';
|
|
13
|
+
export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-LLUOPR3J.js';
|
|
13
14
|
//# sourceMappingURL=handlers.js.map
|
|
14
15
|
//# sourceMappingURL=handlers.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { SystemMessage } from '@mastra/core';
|
|
2
|
+
import type { Workflow, WorkflowInfo } from '@mastra/core/workflows';
|
|
3
|
+
export declare function getWorkflowInfo(workflow: Workflow): WorkflowInfo;
|
|
4
|
+
/**
|
|
5
|
+
* Workflow Registry for temporarily registering additional workflows
|
|
6
|
+
* that are not part of the user's Mastra instance (e.g., internal template workflows)
|
|
7
|
+
*/
|
|
8
|
+
export declare class WorkflowRegistry {
|
|
9
|
+
private static additionalWorkflows;
|
|
10
|
+
/**
|
|
11
|
+
* Register a workflow temporarily
|
|
12
|
+
*/
|
|
13
|
+
static registerTemporaryWorkflow(id: string, workflow: Workflow): void;
|
|
14
|
+
/**
|
|
15
|
+
* Register all workflows from map
|
|
16
|
+
*/
|
|
17
|
+
static registerTemporaryWorkflows(workflows: Record<string, Workflow>, mastra?: any): void;
|
|
18
|
+
/**
|
|
19
|
+
* Get a workflow by ID from the registry (returns undefined if not found)
|
|
20
|
+
*/
|
|
21
|
+
static getWorkflow(workflowId: string): Workflow | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Get all workflows from the registry
|
|
24
|
+
*/
|
|
25
|
+
static getAllWorkflows(): Record<string, Workflow>;
|
|
26
|
+
/**
|
|
27
|
+
* Clean up a temporary workflow
|
|
28
|
+
*/
|
|
29
|
+
static cleanupTemporaryWorkflow(workflowId: string): void;
|
|
30
|
+
/**
|
|
31
|
+
* Clean up all registered workflows
|
|
32
|
+
*/
|
|
33
|
+
static cleanup(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Check if a workflow ID is a valid agent-builder workflow
|
|
36
|
+
*/
|
|
37
|
+
static isAgentBuilderWorkflow(workflowId: string): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Get all registered temporary workflow IDs (for debugging)
|
|
40
|
+
*/
|
|
41
|
+
static getRegisteredWorkflowIds(): string[];
|
|
42
|
+
}
|
|
43
|
+
export declare function convertInstructionsToString(message: SystemMessage): string;
|
|
44
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/server/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EAAqB,QAAQ,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AA0BxF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,CAqBhE;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAgC;IAElE;;OAEG;IACH,MAAM,CAAC,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAItE;;OAEG;IACH,MAAM,CAAC,0BAA0B,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI;IAmB1F;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IAI5D;;OAEG;IACH,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;IAIlD;;OAEG;IACH,MAAM,CAAC,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAGzD;;OAEG;IACH,MAAM,CAAC,OAAO,IAAI,IAAI;IAKtB;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAI1D;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,MAAM,EAAE;CAG5C;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAwB1E"}
|