@mastra/server 0.0.0-taofeeqInngest-20250603090617 → 0.0.0-transpile-packages-20250724123433

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.
Files changed (80) hide show
  1. package/LICENSE.md +11 -42
  2. package/dist/_tsup-dts-rollup.d.cts +390 -45
  3. package/dist/_tsup-dts-rollup.d.ts +390 -45
  4. package/dist/{chunk-OCWPVYNI.cjs → chunk-2KZFMI6P.cjs} +1 -0
  5. package/dist/{chunk-VPNDC2DI.cjs → chunk-2SLFAFTR.cjs} +12 -12
  6. package/dist/chunk-4D66QEKC.js +81 -0
  7. package/dist/{chunk-W7VCKPAD.js → chunk-5PQQ42EZ.js} +9 -9
  8. package/dist/{chunk-BNEY4P4P.cjs → chunk-7TP2LX5L.cjs} +16 -16
  9. package/dist/chunk-B2PAS2IB.cjs +514 -0
  10. package/dist/{chunk-J3PKLB3A.js → chunk-BK4XT6EG.js} +56 -17
  11. package/dist/chunk-CBFTEHOO.cjs +157 -0
  12. package/dist/{chunk-57CJTIPW.cjs → chunk-CCGRCYWJ.cjs} +2 -2
  13. package/dist/{chunk-C7564HUT.js → chunk-CRCR3ZUK.js} +3 -3
  14. package/dist/{chunk-ZE5AAC4I.cjs → chunk-FRVBFMO2.cjs} +26 -36
  15. package/dist/{chunk-DJJIUEL2.js → chunk-G4L7OMCA.js} +135 -26
  16. package/dist/{chunk-B4MQFJ7G.cjs → chunk-G7KH752Y.cjs} +5 -5
  17. package/dist/{chunk-KUNQFY2W.js → chunk-H7DMHBKY.js} +190 -57
  18. package/dist/{chunk-YIOVBYZH.cjs → chunk-JMLYCXMK.cjs} +43 -43
  19. package/dist/{chunk-CP55EVBK.js → chunk-KHZKYUNR.js} +15 -11
  20. package/dist/{chunk-NYN7KFXL.js → chunk-LCM566I4.js} +1 -0
  21. package/dist/chunk-LF7P5PLR.js +14 -0
  22. package/dist/{chunk-YWLUOY3D.cjs → chunk-LI436ITD.cjs} +107 -69
  23. package/dist/{chunk-TJKLBTFB.js → chunk-LRCAAFUA.js} +10 -20
  24. package/dist/{chunk-A3KDUGS7.cjs → chunk-LZ3VJXSO.cjs} +70 -31
  25. package/dist/{chunk-LIVAK2DM.js → chunk-MEGCYGBU.js} +108 -70
  26. package/dist/chunk-PZQDCRPV.cjs +16 -0
  27. package/dist/chunk-QGX47B5D.cjs +86 -0
  28. package/dist/{chunk-BFOA2QQY.js → chunk-RG473F6Y.js} +2 -2
  29. package/dist/{chunk-CMMOIUFC.cjs → chunk-RHSWAXKB.cjs} +34 -30
  30. package/dist/{chunk-H5PTF3Y4.js → chunk-RSEO4XPX.js} +1 -1
  31. package/dist/chunk-VULESSU5.js +149 -0
  32. package/dist/{chunk-55DOQLP6.js → chunk-WNVFNNWN.js} +2 -2
  33. package/dist/chunk-Z75RYULP.cjs +333 -0
  34. package/dist/server/handlers/agents.cjs +7 -7
  35. package/dist/server/handlers/agents.js +1 -1
  36. package/dist/server/handlers/error.cjs +2 -2
  37. package/dist/server/handlers/error.js +1 -1
  38. package/dist/server/handlers/legacyWorkflows.cjs +11 -11
  39. package/dist/server/handlers/legacyWorkflows.js +1 -1
  40. package/dist/server/handlers/logs.cjs +4 -4
  41. package/dist/server/handlers/logs.js +1 -1
  42. package/dist/server/handlers/memory.cjs +21 -9
  43. package/dist/server/handlers/memory.d.cts +3 -0
  44. package/dist/server/handlers/memory.d.ts +3 -0
  45. package/dist/server/handlers/memory.js +1 -1
  46. package/dist/server/handlers/network.cjs +5 -5
  47. package/dist/server/handlers/network.js +1 -1
  48. package/dist/server/handlers/scores.cjs +30 -0
  49. package/dist/server/handlers/scores.d.cts +6 -0
  50. package/dist/server/handlers/scores.d.ts +6 -0
  51. package/dist/server/handlers/scores.js +1 -0
  52. package/dist/server/handlers/telemetry.cjs +3 -3
  53. package/dist/server/handlers/telemetry.js +1 -1
  54. package/dist/server/handlers/tools.cjs +5 -5
  55. package/dist/server/handlers/tools.js +1 -1
  56. package/dist/server/handlers/utils.cjs +2 -2
  57. package/dist/server/handlers/utils.js +1 -1
  58. package/dist/server/handlers/vNextNetwork.cjs +218 -0
  59. package/dist/server/handlers/vNextNetwork.d.cts +6 -0
  60. package/dist/server/handlers/vNextNetwork.d.ts +6 -0
  61. package/dist/server/handlers/vNextNetwork.js +211 -0
  62. package/dist/server/handlers/vector.cjs +7 -7
  63. package/dist/server/handlers/vector.js +1 -1
  64. package/dist/server/handlers/voice.cjs +5 -5
  65. package/dist/server/handlers/voice.js +1 -1
  66. package/dist/server/handlers/workflows.cjs +24 -12
  67. package/dist/server/handlers/workflows.d.cts +3 -0
  68. package/dist/server/handlers/workflows.d.ts +3 -0
  69. package/dist/server/handlers/workflows.js +1 -1
  70. package/dist/server/handlers.cjs +28 -23
  71. package/dist/server/handlers.d.cts +3 -2
  72. package/dist/server/handlers.d.ts +3 -2
  73. package/dist/server/handlers.js +11 -10
  74. package/package.json +15 -15
  75. package/dist/chunk-64U3UDTH.cjs +0 -13
  76. package/dist/chunk-DQLE3DVM.js +0 -49
  77. package/dist/chunk-M5ABIP7D.js +0 -11
  78. package/dist/chunk-MMO2HDM6.cjs +0 -378
  79. package/dist/chunk-NEOOQUKW.cjs +0 -54
  80. package/dist/chunk-Y7UWRW5X.cjs +0 -221
@@ -1,46 +1,46 @@
1
1
  'use strict';
2
2
 
3
- var chunkYIOVBYZH_cjs = require('../../chunk-YIOVBYZH.cjs');
3
+ var chunkJMLYCXMK_cjs = require('../../chunk-JMLYCXMK.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createLegacyWorkflowRunHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkYIOVBYZH_cjs.createLegacyWorkflowRunHandler; }
9
+ get: function () { return chunkJMLYCXMK_cjs.createLegacyWorkflowRunHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getLegacyWorkflowByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkYIOVBYZH_cjs.getLegacyWorkflowByIdHandler; }
13
+ get: function () { return chunkJMLYCXMK_cjs.getLegacyWorkflowByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getLegacyWorkflowRunHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkYIOVBYZH_cjs.getLegacyWorkflowRunHandler; }
17
+ get: function () { return chunkJMLYCXMK_cjs.getLegacyWorkflowRunHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getLegacyWorkflowRunsHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkYIOVBYZH_cjs.getLegacyWorkflowRunsHandler; }
21
+ get: function () { return chunkJMLYCXMK_cjs.getLegacyWorkflowRunsHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getLegacyWorkflowsHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunkYIOVBYZH_cjs.getLegacyWorkflowsHandler; }
25
+ get: function () { return chunkJMLYCXMK_cjs.getLegacyWorkflowsHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "resumeAsyncLegacyWorkflowHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunkYIOVBYZH_cjs.resumeAsyncLegacyWorkflowHandler; }
29
+ get: function () { return chunkJMLYCXMK_cjs.resumeAsyncLegacyWorkflowHandler; }
30
30
  });
31
31
  Object.defineProperty(exports, "resumeLegacyWorkflowHandler", {
32
32
  enumerable: true,
33
- get: function () { return chunkYIOVBYZH_cjs.resumeLegacyWorkflowHandler; }
33
+ get: function () { return chunkJMLYCXMK_cjs.resumeLegacyWorkflowHandler; }
34
34
  });
35
35
  Object.defineProperty(exports, "startAsyncLegacyWorkflowHandler", {
36
36
  enumerable: true,
37
- get: function () { return chunkYIOVBYZH_cjs.startAsyncLegacyWorkflowHandler; }
37
+ get: function () { return chunkJMLYCXMK_cjs.startAsyncLegacyWorkflowHandler; }
38
38
  });
39
39
  Object.defineProperty(exports, "startLegacyWorkflowRunHandler", {
40
40
  enumerable: true,
41
- get: function () { return chunkYIOVBYZH_cjs.startLegacyWorkflowRunHandler; }
41
+ get: function () { return chunkJMLYCXMK_cjs.startLegacyWorkflowRunHandler; }
42
42
  });
43
43
  Object.defineProperty(exports, "watchLegacyWorkflowHandler", {
44
44
  enumerable: true,
45
- get: function () { return chunkYIOVBYZH_cjs.watchLegacyWorkflowHandler; }
45
+ get: function () { return chunkJMLYCXMK_cjs.watchLegacyWorkflowHandler; }
46
46
  });
@@ -1 +1 @@
1
- export { createLegacyWorkflowRunHandler, getLegacyWorkflowByIdHandler, getLegacyWorkflowRunHandler, getLegacyWorkflowRunsHandler, getLegacyWorkflowsHandler, resumeAsyncLegacyWorkflowHandler, resumeLegacyWorkflowHandler, startAsyncLegacyWorkflowHandler, startLegacyWorkflowRunHandler, watchLegacyWorkflowHandler } from '../../chunk-W7VCKPAD.js';
1
+ export { createLegacyWorkflowRunHandler, getLegacyWorkflowByIdHandler, getLegacyWorkflowRunHandler, getLegacyWorkflowRunsHandler, getLegacyWorkflowsHandler, resumeAsyncLegacyWorkflowHandler, resumeLegacyWorkflowHandler, startAsyncLegacyWorkflowHandler, startLegacyWorkflowRunHandler, watchLegacyWorkflowHandler } from '../../chunk-5PQQ42EZ.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkNEOOQUKW_cjs = require('../../chunk-NEOOQUKW.cjs');
3
+ var chunkQGX47B5D_cjs = require('../../chunk-QGX47B5D.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "getLogTransports", {
8
8
  enumerable: true,
9
- get: function () { return chunkNEOOQUKW_cjs.getLogTransports; }
9
+ get: function () { return chunkQGX47B5D_cjs.getLogTransports; }
10
10
  });
11
11
  Object.defineProperty(exports, "getLogsByRunIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkNEOOQUKW_cjs.getLogsByRunIdHandler; }
13
+ get: function () { return chunkQGX47B5D_cjs.getLogsByRunIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getLogsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkNEOOQUKW_cjs.getLogsHandler; }
17
+ get: function () { return chunkQGX47B5D_cjs.getLogsHandler; }
18
18
  });
@@ -1 +1 @@
1
- export { getLogTransports, getLogsByRunIdHandler, getLogsHandler } from '../../chunk-DQLE3DVM.js';
1
+ export { getLogTransports, getLogsByRunIdHandler, getLogsHandler } from '../../chunk-4D66QEKC.js';
@@ -1,38 +1,50 @@
1
1
  'use strict';
2
2
 
3
- var chunkY7UWRW5X_cjs = require('../../chunk-Y7UWRW5X.cjs');
3
+ var chunkZ75RYULP_cjs = require('../../chunk-Z75RYULP.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createThreadHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkY7UWRW5X_cjs.createThreadHandler; }
9
+ get: function () { return chunkZ75RYULP_cjs.createThreadHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "deleteThreadHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkY7UWRW5X_cjs.deleteThreadHandler; }
13
+ get: function () { return chunkZ75RYULP_cjs.deleteThreadHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getMemoryStatusHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkY7UWRW5X_cjs.getMemoryStatusHandler; }
17
+ get: function () { return chunkZ75RYULP_cjs.getMemoryStatusHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getMessagesHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkY7UWRW5X_cjs.getMessagesHandler; }
21
+ get: function () { return chunkZ75RYULP_cjs.getMessagesHandler; }
22
+ });
23
+ Object.defineProperty(exports, "getMessagesPaginatedHandler", {
24
+ enumerable: true,
25
+ get: function () { return chunkZ75RYULP_cjs.getMessagesPaginatedHandler; }
22
26
  });
23
27
  Object.defineProperty(exports, "getThreadByIdHandler", {
24
28
  enumerable: true,
25
- get: function () { return chunkY7UWRW5X_cjs.getThreadByIdHandler; }
29
+ get: function () { return chunkZ75RYULP_cjs.getThreadByIdHandler; }
26
30
  });
27
31
  Object.defineProperty(exports, "getThreadsHandler", {
28
32
  enumerable: true,
29
- get: function () { return chunkY7UWRW5X_cjs.getThreadsHandler; }
33
+ get: function () { return chunkZ75RYULP_cjs.getThreadsHandler; }
34
+ });
35
+ Object.defineProperty(exports, "getWorkingMemoryHandler", {
36
+ enumerable: true,
37
+ get: function () { return chunkZ75RYULP_cjs.getWorkingMemoryHandler; }
30
38
  });
31
39
  Object.defineProperty(exports, "saveMessagesHandler", {
32
40
  enumerable: true,
33
- get: function () { return chunkY7UWRW5X_cjs.saveMessagesHandler; }
41
+ get: function () { return chunkZ75RYULP_cjs.saveMessagesHandler; }
34
42
  });
35
43
  Object.defineProperty(exports, "updateThreadHandler", {
36
44
  enumerable: true,
37
- get: function () { return chunkY7UWRW5X_cjs.updateThreadHandler; }
45
+ get: function () { return chunkZ75RYULP_cjs.updateThreadHandler; }
46
+ });
47
+ Object.defineProperty(exports, "updateWorkingMemoryHandler", {
48
+ enumerable: true,
49
+ get: function () { return chunkZ75RYULP_cjs.updateWorkingMemoryHandler; }
38
50
  });
@@ -5,4 +5,7 @@ export { saveMessagesHandler } from '../../_tsup-dts-rollup.cjs';
5
5
  export { createThreadHandler } from '../../_tsup-dts-rollup.cjs';
6
6
  export { updateThreadHandler } from '../../_tsup-dts-rollup.cjs';
7
7
  export { deleteThreadHandler } from '../../_tsup-dts-rollup.cjs';
8
+ export { getMessagesPaginatedHandler } from '../../_tsup-dts-rollup.cjs';
8
9
  export { getMessagesHandler } from '../../_tsup-dts-rollup.cjs';
10
+ export { getWorkingMemoryHandler } from '../../_tsup-dts-rollup.cjs';
11
+ export { updateWorkingMemoryHandler } from '../../_tsup-dts-rollup.cjs';
@@ -5,4 +5,7 @@ export { saveMessagesHandler } from '../../_tsup-dts-rollup.js';
5
5
  export { createThreadHandler } from '../../_tsup-dts-rollup.js';
6
6
  export { updateThreadHandler } from '../../_tsup-dts-rollup.js';
7
7
  export { deleteThreadHandler } from '../../_tsup-dts-rollup.js';
8
+ export { getMessagesPaginatedHandler } from '../../_tsup-dts-rollup.js';
8
9
  export { getMessagesHandler } from '../../_tsup-dts-rollup.js';
10
+ export { getWorkingMemoryHandler } from '../../_tsup-dts-rollup.js';
11
+ export { updateWorkingMemoryHandler } from '../../_tsup-dts-rollup.js';
@@ -1 +1 @@
1
- export { createThreadHandler, deleteThreadHandler, getMemoryStatusHandler, getMessagesHandler, getThreadByIdHandler, getThreadsHandler, saveMessagesHandler, updateThreadHandler } from '../../chunk-DJJIUEL2.js';
1
+ export { createThreadHandler, deleteThreadHandler, getMemoryStatusHandler, getMessagesHandler, getMessagesPaginatedHandler, getThreadByIdHandler, getThreadsHandler, getWorkingMemoryHandler, saveMessagesHandler, updateThreadHandler, updateWorkingMemoryHandler } from '../../chunk-G4L7OMCA.js';
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkVPNDC2DI_cjs = require('../../chunk-VPNDC2DI.cjs');
3
+ var chunk2SLFAFTR_cjs = require('../../chunk-2SLFAFTR.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkVPNDC2DI_cjs.generateHandler; }
9
+ get: function () { return chunk2SLFAFTR_cjs.generateHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getNetworkByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkVPNDC2DI_cjs.getNetworkByIdHandler; }
13
+ get: function () { return chunk2SLFAFTR_cjs.getNetworkByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getNetworksHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkVPNDC2DI_cjs.getNetworksHandler; }
17
+ get: function () { return chunk2SLFAFTR_cjs.getNetworksHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "streamGenerateHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkVPNDC2DI_cjs.streamGenerateHandler; }
21
+ get: function () { return chunk2SLFAFTR_cjs.streamGenerateHandler; }
22
22
  });
@@ -1 +1 @@
1
- export { generateHandler, getNetworkByIdHandler, getNetworksHandler, streamGenerateHandler } from '../../chunk-C7564HUT.js';
1
+ export { generateHandler, getNetworkByIdHandler, getNetworksHandler, streamGenerateHandler } from '../../chunk-CRCR3ZUK.js';
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var chunkCBFTEHOO_cjs = require('../../chunk-CBFTEHOO.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "getScorerHandler", {
8
+ enumerable: true,
9
+ get: function () { return chunkCBFTEHOO_cjs.getScorerHandler; }
10
+ });
11
+ Object.defineProperty(exports, "getScorersHandler", {
12
+ enumerable: true,
13
+ get: function () { return chunkCBFTEHOO_cjs.getScorersHandler; }
14
+ });
15
+ Object.defineProperty(exports, "getScoresByEntityIdHandler", {
16
+ enumerable: true,
17
+ get: function () { return chunkCBFTEHOO_cjs.getScoresByEntityIdHandler; }
18
+ });
19
+ Object.defineProperty(exports, "getScoresByRunIdHandler", {
20
+ enumerable: true,
21
+ get: function () { return chunkCBFTEHOO_cjs.getScoresByRunIdHandler; }
22
+ });
23
+ Object.defineProperty(exports, "getScoresByScorerIdHandler", {
24
+ enumerable: true,
25
+ get: function () { return chunkCBFTEHOO_cjs.getScoresByScorerIdHandler; }
26
+ });
27
+ Object.defineProperty(exports, "saveScoreHandler", {
28
+ enumerable: true,
29
+ get: function () { return chunkCBFTEHOO_cjs.saveScoreHandler; }
30
+ });
@@ -0,0 +1,6 @@
1
+ export { getScorersHandler } from '../../_tsup-dts-rollup.cjs';
2
+ export { getScorerHandler } from '../../_tsup-dts-rollup.cjs';
3
+ export { getScoresByRunIdHandler } from '../../_tsup-dts-rollup.cjs';
4
+ export { getScoresByScorerIdHandler } from '../../_tsup-dts-rollup.cjs';
5
+ export { getScoresByEntityIdHandler } from '../../_tsup-dts-rollup.cjs';
6
+ export { saveScoreHandler } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,6 @@
1
+ export { getScorersHandler } from '../../_tsup-dts-rollup.js';
2
+ export { getScorerHandler } from '../../_tsup-dts-rollup.js';
3
+ export { getScoresByRunIdHandler } from '../../_tsup-dts-rollup.js';
4
+ export { getScoresByScorerIdHandler } from '../../_tsup-dts-rollup.js';
5
+ export { getScoresByEntityIdHandler } from '../../_tsup-dts-rollup.js';
6
+ export { saveScoreHandler } from '../../_tsup-dts-rollup.js';
@@ -0,0 +1 @@
1
+ export { getScorerHandler, getScorersHandler, getScoresByEntityIdHandler, getScoresByRunIdHandler, getScoresByScorerIdHandler, saveScoreHandler } from '../../chunk-VULESSU5.js';
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkB4MQFJ7G_cjs = require('../../chunk-B4MQFJ7G.cjs');
3
+ var chunkG7KH752Y_cjs = require('../../chunk-G7KH752Y.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "getTelemetryHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkB4MQFJ7G_cjs.getTelemetryHandler; }
9
+ get: function () { return chunkG7KH752Y_cjs.getTelemetryHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "storeTelemetryHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkB4MQFJ7G_cjs.storeTelemetryHandler; }
13
+ get: function () { return chunkG7KH752Y_cjs.storeTelemetryHandler; }
14
14
  });
@@ -1 +1 @@
1
- export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-BFOA2QQY.js';
1
+ export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-RG473F6Y.js';
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkZE5AAC4I_cjs = require('../../chunk-ZE5AAC4I.cjs');
3
+ var chunkFRVBFMO2_cjs = require('../../chunk-FRVBFMO2.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "executeAgentToolHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkZE5AAC4I_cjs.executeAgentToolHandler; }
9
+ get: function () { return chunkFRVBFMO2_cjs.executeAgentToolHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "executeToolHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkZE5AAC4I_cjs.executeToolHandler; }
13
+ get: function () { return chunkFRVBFMO2_cjs.executeToolHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getToolByIdHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkZE5AAC4I_cjs.getToolByIdHandler; }
17
+ get: function () { return chunkFRVBFMO2_cjs.getToolByIdHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getToolsHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkZE5AAC4I_cjs.getToolsHandler; }
21
+ get: function () { return chunkFRVBFMO2_cjs.getToolsHandler; }
22
22
  });
@@ -1 +1 @@
1
- export { executeAgentToolHandler, executeToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-TJKLBTFB.js';
1
+ export { executeAgentToolHandler, executeToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-LRCAAFUA.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk57CJTIPW_cjs = require('../../chunk-57CJTIPW.cjs');
3
+ var chunkCCGRCYWJ_cjs = require('../../chunk-CCGRCYWJ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "validateBody", {
8
8
  enumerable: true,
9
- get: function () { return chunk57CJTIPW_cjs.validateBody; }
9
+ get: function () { return chunkCCGRCYWJ_cjs.validateBody; }
10
10
  });
@@ -1 +1 @@
1
- export { validateBody } from '../../chunk-H5PTF3Y4.js';
1
+ export { validateBody } from '../../chunk-RSEO4XPX.js';
@@ -0,0 +1,218 @@
1
+ 'use strict';
2
+
3
+ var chunkLI436ITD_cjs = require('../../chunk-LI436ITD.cjs');
4
+ var chunkCCGRCYWJ_cjs = require('../../chunk-CCGRCYWJ.cjs');
5
+ var chunkPZQDCRPV_cjs = require('../../chunk-PZQDCRPV.cjs');
6
+ var chunk2KZFMI6P_cjs = require('../../chunk-2KZFMI6P.cjs');
7
+
8
+ // src/server/handlers/vNextNetwork.ts
9
+ async function getVNextNetworksHandler({
10
+ mastra,
11
+ runtimeContext
12
+ }) {
13
+ try {
14
+ const networks = mastra.vnext_getNetworks();
15
+ const serializedNetworks = await Promise.all(
16
+ networks.map(async (network) => {
17
+ const routingAgent = await network.getRoutingAgent({ runtimeContext });
18
+ const routingLLM = await routingAgent.getLLM({ runtimeContext });
19
+ const agents = await network.getAgents({ runtimeContext });
20
+ const workflows = await network.getWorkflows({ runtimeContext });
21
+ const tools = await network.getTools({ runtimeContext });
22
+ const networkInstruction = await network.getInstructions({ runtimeContext });
23
+ return {
24
+ id: network.id,
25
+ name: network.name,
26
+ instructions: networkInstruction,
27
+ tools: await Promise.all(
28
+ Object.values(tools).map(async (tool) => {
29
+ return {
30
+ id: tool.id,
31
+ description: tool.description
32
+ };
33
+ })
34
+ ),
35
+ agents: await Promise.all(
36
+ Object.values(agents).map(async (agent) => {
37
+ const llm = await agent.getLLM({ runtimeContext });
38
+ return {
39
+ name: agent.name,
40
+ provider: llm?.getProvider(),
41
+ modelId: llm?.getModelId()
42
+ };
43
+ })
44
+ ),
45
+ workflows: await Promise.all(
46
+ Object.values(workflows).map(async (workflow) => {
47
+ return {
48
+ name: workflow.name,
49
+ description: workflow.description,
50
+ inputSchema: workflow.inputSchema ? chunkLI436ITD_cjs.stringify(chunkLI436ITD_cjs.esm_default(workflow.inputSchema)) : void 0,
51
+ outputSchema: workflow.outputSchema ? chunkLI436ITD_cjs.stringify(chunkLI436ITD_cjs.esm_default(workflow.outputSchema)) : void 0
52
+ };
53
+ })
54
+ ),
55
+ routingModel: {
56
+ provider: routingLLM?.getProvider(),
57
+ modelId: routingLLM?.getModelId()
58
+ }
59
+ };
60
+ })
61
+ );
62
+ return serializedNetworks;
63
+ } catch (error) {
64
+ return chunkPZQDCRPV_cjs.handleError(error, "Error getting networks");
65
+ }
66
+ }
67
+ async function getVNextNetworkByIdHandler({
68
+ mastra,
69
+ networkId,
70
+ runtimeContext
71
+ }) {
72
+ try {
73
+ const network = mastra.vnext_getNetwork(networkId);
74
+ if (!network) {
75
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Network not found" });
76
+ }
77
+ const routingAgent = await network.getRoutingAgent({ runtimeContext });
78
+ const routingLLM = await routingAgent.getLLM({ runtimeContext });
79
+ const agents = await network.getAgents({ runtimeContext });
80
+ const workflows = await network.getWorkflows({ runtimeContext });
81
+ const tools = await network.getTools({ runtimeContext });
82
+ const networkInstruction = await network.getInstructions({ runtimeContext });
83
+ const serializedNetwork = {
84
+ id: network.id,
85
+ name: network.name,
86
+ instructions: networkInstruction,
87
+ agents: await Promise.all(
88
+ Object.values(agents).map(async (agent) => {
89
+ const llm = await agent.getLLM({ runtimeContext });
90
+ return {
91
+ name: agent.name,
92
+ provider: llm?.getProvider(),
93
+ modelId: llm?.getModelId()
94
+ };
95
+ })
96
+ ),
97
+ workflows: await Promise.all(
98
+ Object.values(workflows).map(async (workflow) => {
99
+ return {
100
+ name: workflow.name,
101
+ description: workflow.description,
102
+ inputSchema: workflow.inputSchema ? chunkLI436ITD_cjs.stringify(chunkLI436ITD_cjs.esm_default(workflow.inputSchema)) : void 0,
103
+ outputSchema: workflow.outputSchema ? chunkLI436ITD_cjs.stringify(chunkLI436ITD_cjs.esm_default(workflow.outputSchema)) : void 0
104
+ };
105
+ })
106
+ ),
107
+ tools: await Promise.all(
108
+ Object.values(tools).map(async (tool) => {
109
+ return {
110
+ id: tool.id,
111
+ description: tool.description
112
+ };
113
+ })
114
+ ),
115
+ routingModel: {
116
+ provider: routingLLM?.getProvider(),
117
+ modelId: routingLLM?.getModelId()
118
+ }
119
+ };
120
+ return serializedNetwork;
121
+ } catch (error) {
122
+ return chunkPZQDCRPV_cjs.handleError(error, "Error getting network by ID");
123
+ }
124
+ }
125
+ async function generateVNextNetworkHandler({
126
+ mastra,
127
+ runtimeContext,
128
+ networkId,
129
+ body
130
+ }) {
131
+ try {
132
+ const network = mastra.vnext_getNetwork(networkId);
133
+ if (!network) {
134
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Network not found" });
135
+ }
136
+ chunkCCGRCYWJ_cjs.validateBody({ message: body.message });
137
+ const { message, threadId, resourceId } = body;
138
+ const result = await network.generate(message, { runtimeContext, threadId, resourceId });
139
+ return result;
140
+ } catch (error) {
141
+ return chunkPZQDCRPV_cjs.handleError(error, "Error generating from network");
142
+ }
143
+ }
144
+ async function streamGenerateVNextNetworkHandler({
145
+ mastra,
146
+ networkId,
147
+ body,
148
+ runtimeContext
149
+ }) {
150
+ try {
151
+ const network = mastra.vnext_getNetwork(networkId);
152
+ if (!network) {
153
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Network not found" });
154
+ }
155
+ chunkCCGRCYWJ_cjs.validateBody({ message: body.message });
156
+ const { message, threadId, resourceId } = body;
157
+ const streamResult = await network.stream(message, {
158
+ runtimeContext,
159
+ threadId,
160
+ resourceId
161
+ });
162
+ return streamResult;
163
+ } catch (error) {
164
+ return chunkPZQDCRPV_cjs.handleError(error, "Error streaming from network");
165
+ }
166
+ }
167
+ async function loopVNextNetworkHandler({
168
+ mastra,
169
+ networkId,
170
+ body,
171
+ runtimeContext
172
+ }) {
173
+ try {
174
+ const network = mastra.vnext_getNetwork(networkId);
175
+ if (!network) {
176
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Network not found" });
177
+ }
178
+ chunkCCGRCYWJ_cjs.validateBody({ message: body.message });
179
+ const { message } = body;
180
+ const result = await network.loop(message, {
181
+ runtimeContext
182
+ });
183
+ return result;
184
+ } catch (error) {
185
+ return chunkPZQDCRPV_cjs.handleError(error, "Error looping network");
186
+ }
187
+ }
188
+ async function loopStreamVNextNetworkHandler({
189
+ mastra,
190
+ networkId,
191
+ body,
192
+ runtimeContext
193
+ }) {
194
+ try {
195
+ const network = mastra.vnext_getNetwork(networkId);
196
+ if (!network) {
197
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Network not found" });
198
+ }
199
+ chunkCCGRCYWJ_cjs.validateBody({ message: body.message });
200
+ const { message, threadId, resourceId, maxIterations } = body;
201
+ const result = await network.loopStream(message, {
202
+ runtimeContext,
203
+ threadId,
204
+ resourceId,
205
+ maxIterations
206
+ });
207
+ return result;
208
+ } catch (error) {
209
+ return chunkPZQDCRPV_cjs.handleError(error, "Error streaming network loop");
210
+ }
211
+ }
212
+
213
+ exports.generateVNextNetworkHandler = generateVNextNetworkHandler;
214
+ exports.getVNextNetworkByIdHandler = getVNextNetworkByIdHandler;
215
+ exports.getVNextNetworksHandler = getVNextNetworksHandler;
216
+ exports.loopStreamVNextNetworkHandler = loopStreamVNextNetworkHandler;
217
+ exports.loopVNextNetworkHandler = loopVNextNetworkHandler;
218
+ exports.streamGenerateVNextNetworkHandler = streamGenerateVNextNetworkHandler;
@@ -0,0 +1,6 @@
1
+ export { getVNextNetworksHandler } from '../../_tsup-dts-rollup.cjs';
2
+ export { getVNextNetworkByIdHandler } from '../../_tsup-dts-rollup.cjs';
3
+ export { generateVNextNetworkHandler } from '../../_tsup-dts-rollup.cjs';
4
+ export { streamGenerateVNextNetworkHandler } from '../../_tsup-dts-rollup.cjs';
5
+ export { loopVNextNetworkHandler } from '../../_tsup-dts-rollup.cjs';
6
+ export { loopStreamVNextNetworkHandler } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,6 @@
1
+ export { getVNextNetworksHandler } from '../../_tsup-dts-rollup.js';
2
+ export { getVNextNetworkByIdHandler } from '../../_tsup-dts-rollup.js';
3
+ export { generateVNextNetworkHandler } from '../../_tsup-dts-rollup.js';
4
+ export { streamGenerateVNextNetworkHandler } from '../../_tsup-dts-rollup.js';
5
+ export { loopVNextNetworkHandler } from '../../_tsup-dts-rollup.js';
6
+ export { loopStreamVNextNetworkHandler } from '../../_tsup-dts-rollup.js';