@mastra/server 0.0.0-share-agent-metadata-with-cloud-20250718110128 → 0.0.0-sidebar-window-undefined-fix-20251029233656

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 (274) hide show
  1. package/CHANGELOG.md +4200 -0
  2. package/README.md +0 -5
  3. package/dist/chunk-2P4VRXBT.js +533 -0
  4. package/dist/chunk-2P4VRXBT.js.map +1 -0
  5. package/dist/chunk-2PLXW4ZX.cjs +2777 -0
  6. package/dist/chunk-2PLXW4ZX.cjs.map +1 -0
  7. package/dist/chunk-2S4IMB6E.cjs +130 -0
  8. package/dist/chunk-2S4IMB6E.cjs.map +1 -0
  9. package/dist/chunk-3SNGNFUJ.cjs +128 -0
  10. package/dist/chunk-3SNGNFUJ.cjs.map +1 -0
  11. package/dist/{chunk-RSEO4XPX.js → chunk-4QCXUEAT.js} +11 -2
  12. package/dist/chunk-4QCXUEAT.js.map +1 -0
  13. package/dist/chunk-6VPAV4ZV.js +692 -0
  14. package/dist/chunk-6VPAV4ZV.js.map +1 -0
  15. package/dist/chunk-7HCPO76Z.js +19548 -0
  16. package/dist/chunk-7HCPO76Z.js.map +1 -0
  17. package/dist/{chunk-2KZFMI6P.cjs → chunk-7NADHFD2.cjs} +2 -0
  18. package/dist/chunk-7NADHFD2.cjs.map +1 -0
  19. package/dist/{chunk-4D66QEKC.js → chunk-ABRFV4XP.js} +5 -3
  20. package/dist/chunk-ABRFV4XP.js.map +1 -0
  21. package/dist/{chunk-LRCAAFUA.js → chunk-AHB4JCIQ.js} +50 -12
  22. package/dist/chunk-AHB4JCIQ.js.map +1 -0
  23. package/dist/chunk-AW5BU3RQ.js +192 -0
  24. package/dist/chunk-AW5BU3RQ.js.map +1 -0
  25. package/dist/chunk-B7QWVGQQ.cjs +729 -0
  26. package/dist/chunk-B7QWVGQQ.cjs.map +1 -0
  27. package/dist/chunk-BATEJLED.js +124 -0
  28. package/dist/chunk-BATEJLED.js.map +1 -0
  29. package/dist/chunk-CJFKRVED.cjs +134 -0
  30. package/dist/chunk-CJFKRVED.cjs.map +1 -0
  31. package/dist/{chunk-LF7P5PLR.js → chunk-CY4TP3FK.js} +3 -1
  32. package/dist/chunk-CY4TP3FK.js.map +1 -0
  33. package/dist/{chunk-7TP2LX5L.cjs → chunk-EP3JQDPD.cjs} +20 -18
  34. package/dist/chunk-EP3JQDPD.cjs.map +1 -0
  35. package/dist/chunk-G4PUALCE.cjs +28 -0
  36. package/dist/chunk-G4PUALCE.cjs.map +1 -0
  37. package/dist/chunk-GDUKGVFI.cjs +550 -0
  38. package/dist/chunk-GDUKGVFI.cjs.map +1 -0
  39. package/dist/chunk-GU4EWMZB.cjs +769 -0
  40. package/dist/chunk-GU4EWMZB.cjs.map +1 -0
  41. package/dist/{chunk-JMLYCXMK.cjs → chunk-I3C4ODGV.cjs} +48 -45
  42. package/dist/chunk-I3C4ODGV.cjs.map +1 -0
  43. package/dist/{chunk-SDPGVWQJ.cjs → chunk-K5T5A3AL.cjs} +110 -137
  44. package/dist/chunk-K5T5A3AL.cjs.map +1 -0
  45. package/dist/chunk-KDUHLUK4.cjs +19584 -0
  46. package/dist/chunk-KDUHLUK4.cjs.map +1 -0
  47. package/dist/chunk-KSFLUEWV.js +130 -0
  48. package/dist/chunk-KSFLUEWV.js.map +1 -0
  49. package/dist/chunk-LF2ZLOFP.js +767 -0
  50. package/dist/chunk-LF2ZLOFP.js.map +1 -0
  51. package/dist/{chunk-5PQQ42EZ.js → chunk-LLUOPR3J.js} +13 -10
  52. package/dist/chunk-LLUOPR3J.js.map +1 -0
  53. package/dist/chunk-LPM6BBAX.cjs +1043 -0
  54. package/dist/chunk-LPM6BBAX.cjs.map +1 -0
  55. package/dist/{chunk-LCM566I4.js → chunk-MMROOK5J.js} +2 -0
  56. package/dist/chunk-MMROOK5J.js.map +1 -0
  57. package/dist/{chunk-GHC4YV6R.js → chunk-MN2TZQ7I.js} +109 -136
  58. package/dist/chunk-MN2TZQ7I.js.map +1 -0
  59. package/dist/{chunk-WNVFNNWN.js → chunk-MYR4PVGN.js} +5 -3
  60. package/dist/chunk-MYR4PVGN.js.map +1 -0
  61. package/dist/chunk-O7I5CWRX.cjs +44 -0
  62. package/dist/chunk-O7I5CWRX.cjs.map +1 -0
  63. package/dist/chunk-PR4QN5HX.js +39 -0
  64. package/dist/chunk-PR4QN5HX.js.map +1 -0
  65. package/dist/{chunk-KHZKYUNR.js → chunk-QQXMIP6C.js} +23 -13
  66. package/dist/chunk-QQXMIP6C.js.map +1 -0
  67. package/dist/chunk-QU6N55W6.cjs +256 -0
  68. package/dist/chunk-QU6N55W6.cjs.map +1 -0
  69. package/dist/{chunk-PZQDCRPV.cjs → chunk-RE4RPXT2.cjs} +4 -2
  70. package/dist/chunk-RE4RPXT2.cjs.map +1 -0
  71. package/dist/chunk-RQK4FQUD.js +1012 -0
  72. package/dist/chunk-RQK4FQUD.js.map +1 -0
  73. package/dist/chunk-SHWNNZBL.js +254 -0
  74. package/dist/chunk-SHWNNZBL.js.map +1 -0
  75. package/dist/chunk-SPRRK3P7.cjs +200 -0
  76. package/dist/chunk-SPRRK3P7.cjs.map +1 -0
  77. package/dist/chunk-TOCYBDP2.js +46 -0
  78. package/dist/chunk-TOCYBDP2.js.map +1 -0
  79. package/dist/chunk-TRGAMKHX.cjs +167 -0
  80. package/dist/chunk-TRGAMKHX.cjs.map +1 -0
  81. package/dist/chunk-X6C7BUWN.cjs +48 -0
  82. package/dist/chunk-X6C7BUWN.cjs.map +1 -0
  83. package/dist/{chunk-QGX47B5D.cjs → chunk-XN74I6VW.cjs} +11 -9
  84. package/dist/chunk-XN74I6VW.cjs.map +1 -0
  85. package/dist/chunk-YSHNCC6F.cjs +713 -0
  86. package/dist/chunk-YSHNCC6F.cjs.map +1 -0
  87. package/dist/{chunk-H7DMHBKY.js → chunk-ZLBL4NQC.js} +307 -98
  88. package/dist/chunk-ZLBL4NQC.js.map +1 -0
  89. package/dist/chunk-ZULZ2752.js +2774 -0
  90. package/dist/chunk-ZULZ2752.js.map +1 -0
  91. package/dist/dist-4MVGNSRL.cjs +1150 -0
  92. package/dist/dist-4MVGNSRL.cjs.map +1 -0
  93. package/dist/dist-FZYCV3VB.cjs +940 -0
  94. package/dist/dist-FZYCV3VB.cjs.map +1 -0
  95. package/dist/dist-G2BYZJOC.cjs +928 -0
  96. package/dist/dist-G2BYZJOC.cjs.map +1 -0
  97. package/dist/dist-P4MXBQ3U.cjs +16 -0
  98. package/dist/dist-P4MXBQ3U.cjs.map +1 -0
  99. package/dist/dist-PQZUVLPC.js +937 -0
  100. package/dist/dist-PQZUVLPC.js.map +1 -0
  101. package/dist/dist-R7WYX6LC.js +925 -0
  102. package/dist/dist-R7WYX6LC.js.map +1 -0
  103. package/dist/dist-RFMYFILX.cjs +764 -0
  104. package/dist/dist-RFMYFILX.cjs.map +1 -0
  105. package/dist/dist-X7XR3M3Z.js +1147 -0
  106. package/dist/dist-X7XR3M3Z.js.map +1 -0
  107. package/dist/dist-XVBSOGFK.js +761 -0
  108. package/dist/dist-XVBSOGFK.js.map +1 -0
  109. package/dist/dist-YREX2TJT.js +3 -0
  110. package/dist/dist-YREX2TJT.js.map +1 -0
  111. package/dist/index.cjs +6 -0
  112. package/dist/index.cjs.map +1 -0
  113. package/dist/index.d.ts +1 -0
  114. package/dist/index.d.ts.map +1 -0
  115. package/dist/index.js +5 -0
  116. package/dist/index.js.map +1 -0
  117. package/dist/server/a2a/protocol.d.ts +8 -0
  118. package/dist/server/a2a/protocol.d.ts.map +1 -0
  119. package/dist/server/a2a/store.cjs +25 -0
  120. package/dist/server/a2a/store.cjs.map +1 -0
  121. package/dist/server/a2a/store.d.ts +14 -0
  122. package/dist/server/a2a/store.d.ts.map +1 -0
  123. package/dist/server/a2a/store.js +23 -0
  124. package/dist/server/a2a/store.js.map +1 -0
  125. package/dist/server/a2a/tasks.d.ts +20 -0
  126. package/dist/server/a2a/tasks.d.ts.map +1 -0
  127. package/dist/server/handlers/a2a.cjs +13 -11
  128. package/dist/server/handlers/a2a.cjs.map +1 -0
  129. package/dist/server/handlers/a2a.d.ts +68 -6
  130. package/dist/server/handlers/a2a.d.ts.map +1 -0
  131. package/dist/server/handlers/a2a.js +3 -1
  132. package/dist/server/handlers/a2a.js.map +1 -0
  133. package/dist/server/handlers/agent-builder.cjs +68 -0
  134. package/dist/server/handlers/agent-builder.cjs.map +1 -0
  135. package/dist/server/handlers/agent-builder.d.ts +94 -0
  136. package/dist/server/handlers/agent-builder.d.ts.map +1 -0
  137. package/dist/server/handlers/agent-builder.js +3 -0
  138. package/dist/server/handlers/agent-builder.js.map +1 -0
  139. package/dist/server/handlers/agents.cjs +61 -7
  140. package/dist/server/handlers/agents.cjs.map +1 -0
  141. package/dist/server/handlers/agents.d.ts +208 -6
  142. package/dist/server/handlers/agents.d.ts.map +1 -0
  143. package/dist/server/handlers/agents.js +3 -1
  144. package/dist/server/handlers/agents.js.map +1 -0
  145. package/dist/server/handlers/error.cjs +4 -2
  146. package/dist/server/handlers/error.cjs.map +1 -0
  147. package/dist/server/handlers/error.d.ts +2 -1
  148. package/dist/server/handlers/error.d.ts.map +1 -0
  149. package/dist/server/handlers/error.js +3 -1
  150. package/dist/server/handlers/error.js.map +1 -0
  151. package/dist/server/handlers/legacyWorkflows.cjs +13 -11
  152. package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
  153. package/dist/server/handlers/legacyWorkflows.d.ts +59 -10
  154. package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
  155. package/dist/server/handlers/legacyWorkflows.js +3 -1
  156. package/dist/server/handlers/legacyWorkflows.js.map +1 -0
  157. package/dist/server/handlers/logs.cjs +6 -4
  158. package/dist/server/handlers/logs.cjs.map +1 -0
  159. package/dist/server/handlers/logs.d.ts +34 -3
  160. package/dist/server/handlers/logs.d.ts.map +1 -0
  161. package/dist/server/handlers/logs.js +3 -1
  162. package/dist/server/handlers/logs.js.map +1 -0
  163. package/dist/server/handlers/memory.cjs +33 -11
  164. package/dist/server/handlers/memory.cjs.map +1 -0
  165. package/dist/server/handlers/memory.d.ts +118 -10
  166. package/dist/server/handlers/memory.d.ts.map +1 -0
  167. package/dist/server/handlers/memory.js +3 -1
  168. package/dist/server/handlers/memory.js.map +1 -0
  169. package/dist/server/handlers/observability.cjs +24 -0
  170. package/dist/server/handlers/observability.cjs.map +1 -0
  171. package/dist/server/handlers/observability.d.ts +49 -0
  172. package/dist/server/handlers/observability.d.ts.map +1 -0
  173. package/dist/server/handlers/observability.js +3 -0
  174. package/dist/server/handlers/observability.js.map +1 -0
  175. package/dist/server/handlers/scores.cjs +32 -0
  176. package/dist/server/handlers/scores.cjs.map +1 -0
  177. package/dist/server/handlers/scores.d.ts +152 -0
  178. package/dist/server/handlers/scores.d.ts.map +1 -0
  179. package/dist/server/handlers/scores.js +3 -0
  180. package/dist/server/handlers/scores.js.map +1 -0
  181. package/dist/server/handlers/tools.cjs +11 -5
  182. package/dist/server/handlers/tools.cjs.map +1 -0
  183. package/dist/server/handlers/tools.d.ts +25 -4
  184. package/dist/server/handlers/tools.d.ts.map +1 -0
  185. package/dist/server/handlers/tools.js +3 -1
  186. package/dist/server/handlers/tools.js.map +1 -0
  187. package/dist/server/handlers/utils.cjs +8 -2
  188. package/dist/server/handlers/utils.cjs.map +1 -0
  189. package/dist/server/handlers/utils.d.ts +8 -1
  190. package/dist/server/handlers/utils.d.ts.map +1 -0
  191. package/dist/server/handlers/utils.js +3 -1
  192. package/dist/server/handlers/utils.js.map +1 -0
  193. package/dist/server/handlers/vector.cjs +9 -7
  194. package/dist/server/handlers/vector.cjs.map +1 -0
  195. package/dist/server/handlers/vector.d.ts +51 -6
  196. package/dist/server/handlers/vector.d.ts.map +1 -0
  197. package/dist/server/handlers/vector.js +3 -1
  198. package/dist/server/handlers/vector.js.map +1 -0
  199. package/dist/server/handlers/voice.cjs +7 -5
  200. package/dist/server/handlers/voice.cjs.map +1 -0
  201. package/dist/server/handlers/voice.d.ts +41 -4
  202. package/dist/server/handlers/voice.d.ts.map +1 -0
  203. package/dist/server/handlers/voice.js +3 -1
  204. package/dist/server/handlers/voice.js.map +1 -0
  205. package/dist/server/handlers/workflows.cjs +41 -15
  206. package/dist/server/handlers/workflows.cjs.map +1 -0
  207. package/dist/server/handlers/workflows.d.ts +97 -14
  208. package/dist/server/handlers/workflows.d.ts.map +1 -0
  209. package/dist/server/handlers/workflows.js +3 -1
  210. package/dist/server/handlers/workflows.js.map +1 -0
  211. package/dist/server/handlers.cjs +38 -31
  212. package/dist/server/handlers.cjs.map +1 -0
  213. package/dist/server/handlers.d.ts +13 -11
  214. package/dist/server/handlers.d.ts.map +1 -0
  215. package/dist/server/handlers.js +14 -11
  216. package/dist/server/handlers.js.map +1 -0
  217. package/dist/server/http-exception.d.ts +87 -0
  218. package/dist/server/http-exception.d.ts.map +1 -0
  219. package/dist/server/types.d.ts +10 -0
  220. package/dist/server/types.d.ts.map +1 -0
  221. package/dist/server/utils.d.ts +44 -0
  222. package/dist/server/utils.d.ts.map +1 -0
  223. package/dist/token-375W3LEI.cjs +64 -0
  224. package/dist/token-375W3LEI.cjs.map +1 -0
  225. package/dist/token-C3IMNCC4.js +62 -0
  226. package/dist/token-C3IMNCC4.js.map +1 -0
  227. package/dist/token-util-CV3RRG6K.cjs +9 -0
  228. package/dist/token-util-CV3RRG6K.cjs.map +1 -0
  229. package/dist/token-util-E5QO2RCL.js +7 -0
  230. package/dist/token-util-E5QO2RCL.js.map +1 -0
  231. package/package.json +37 -14
  232. package/dist/_tsup-dts-rollup.d.cts +0 -1107
  233. package/dist/_tsup-dts-rollup.d.ts +0 -1107
  234. package/dist/chunk-2SLFAFTR.cjs +0 -148
  235. package/dist/chunk-3CNDE7QY.cjs +0 -308
  236. package/dist/chunk-75ZPJI57.cjs +0 -9
  237. package/dist/chunk-B2PAS2IB.cjs +0 -514
  238. package/dist/chunk-BK4XT6EG.js +0 -270
  239. package/dist/chunk-CCGRCYWJ.cjs +0 -18
  240. package/dist/chunk-CRCR3ZUK.js +0 -142
  241. package/dist/chunk-FRVBFMO2.cjs +0 -128
  242. package/dist/chunk-G7KH752Y.cjs +0 -145
  243. package/dist/chunk-KOHWJYJT.js +0 -296
  244. package/dist/chunk-LI436ITD.cjs +0 -2042
  245. package/dist/chunk-LZ3VJXSO.cjs +0 -278
  246. package/dist/chunk-MEGCYGBU.js +0 -2039
  247. package/dist/chunk-MLKGABMK.js +0 -7
  248. package/dist/chunk-RG473F6Y.js +0 -141
  249. package/dist/chunk-RHSWAXKB.cjs +0 -118
  250. package/dist/index.d.cts +0 -1
  251. package/dist/server/handlers/a2a.d.cts +0 -6
  252. package/dist/server/handlers/agents.d.cts +0 -6
  253. package/dist/server/handlers/error.d.cts +0 -1
  254. package/dist/server/handlers/legacyWorkflows.d.cts +0 -10
  255. package/dist/server/handlers/logs.d.cts +0 -3
  256. package/dist/server/handlers/memory.d.cts +0 -10
  257. package/dist/server/handlers/network.cjs +0 -22
  258. package/dist/server/handlers/network.d.cts +0 -4
  259. package/dist/server/handlers/network.d.ts +0 -4
  260. package/dist/server/handlers/network.js +0 -1
  261. package/dist/server/handlers/telemetry.cjs +0 -14
  262. package/dist/server/handlers/telemetry.d.cts +0 -2
  263. package/dist/server/handlers/telemetry.d.ts +0 -2
  264. package/dist/server/handlers/telemetry.js +0 -1
  265. package/dist/server/handlers/tools.d.cts +0 -4
  266. package/dist/server/handlers/utils.d.cts +0 -1
  267. package/dist/server/handlers/vNextNetwork.cjs +0 -218
  268. package/dist/server/handlers/vNextNetwork.d.cts +0 -6
  269. package/dist/server/handlers/vNextNetwork.d.ts +0 -6
  270. package/dist/server/handlers/vNextNetwork.js +0 -211
  271. package/dist/server/handlers/vector.d.cts +0 -6
  272. package/dist/server/handlers/voice.d.cts +0 -4
  273. package/dist/server/handlers/workflows.d.cts +0 -14
  274. package/dist/server/handlers.d.cts +0 -11
@@ -0,0 +1,729 @@
1
+ 'use strict';
2
+
3
+ var chunkCJFKRVED_cjs = require('./chunk-CJFKRVED.cjs');
4
+ var chunkRE4RPXT2_cjs = require('./chunk-RE4RPXT2.cjs');
5
+ var chunk7NADHFD2_cjs = require('./chunk-7NADHFD2.cjs');
6
+ var chunkO7I5CWRX_cjs = require('./chunk-O7I5CWRX.cjs');
7
+ var web = require('stream/web');
8
+
9
+ // src/server/handlers/workflows.ts
10
+ var workflows_exports = {};
11
+ chunkO7I5CWRX_cjs.__export(workflows_exports, {
12
+ cancelWorkflowRunHandler: () => cancelWorkflowRunHandler,
13
+ createWorkflowRunHandler: () => createWorkflowRunHandler,
14
+ getWorkflowByIdHandler: () => getWorkflowByIdHandler,
15
+ getWorkflowRunByIdHandler: () => getWorkflowRunByIdHandler,
16
+ getWorkflowRunExecutionResultHandler: () => getWorkflowRunExecutionResultHandler,
17
+ getWorkflowRunsHandler: () => getWorkflowRunsHandler,
18
+ getWorkflowsHandler: () => getWorkflowsHandler,
19
+ observeStreamLegacyWorkflowHandler: () => observeStreamLegacyWorkflowHandler,
20
+ observeStreamVNextWorkflowHandler: () => observeStreamVNextWorkflowHandler,
21
+ observeStreamWorkflowHandler: () => observeStreamWorkflowHandler,
22
+ resumeAsyncWorkflowHandler: () => resumeAsyncWorkflowHandler,
23
+ resumeStreamWorkflowHandler: () => resumeStreamWorkflowHandler,
24
+ resumeWorkflowHandler: () => resumeWorkflowHandler,
25
+ sendWorkflowRunEventHandler: () => sendWorkflowRunEventHandler,
26
+ startAsyncWorkflowHandler: () => startAsyncWorkflowHandler,
27
+ startWorkflowRunHandler: () => startWorkflowRunHandler,
28
+ streamLegacyWorkflowHandler: () => streamLegacyWorkflowHandler,
29
+ streamVNextWorkflowHandler: () => streamVNextWorkflowHandler,
30
+ streamWorkflowHandler: () => streamWorkflowHandler,
31
+ watchWorkflowHandler: () => watchWorkflowHandler
32
+ });
33
+ async function getWorkflowsHandler({ mastra }) {
34
+ try {
35
+ const workflows = mastra.getWorkflows({ serialized: false });
36
+ const _workflows = Object.entries(workflows).reduce((acc, [key, workflow]) => {
37
+ acc[key] = chunkCJFKRVED_cjs.getWorkflowInfo(workflow);
38
+ return acc;
39
+ }, {});
40
+ return _workflows;
41
+ } catch (error) {
42
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting workflows");
43
+ }
44
+ }
45
+ async function getWorkflowsFromSystem({ mastra, workflowId }) {
46
+ const logger = mastra.getLogger();
47
+ if (!workflowId) {
48
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
49
+ }
50
+ let workflow;
51
+ workflow = chunkCJFKRVED_cjs.WorkflowRegistry.getWorkflow(workflowId);
52
+ if (!workflow) {
53
+ try {
54
+ workflow = mastra.getWorkflow(workflowId);
55
+ } catch (error) {
56
+ logger.debug("Error getting workflow, searching agents for workflow", error);
57
+ }
58
+ }
59
+ if (!workflow) {
60
+ logger.debug("Workflow not found, searching agents for workflow", { workflowId });
61
+ const agents = mastra.getAgents();
62
+ if (Object.keys(agents || {}).length) {
63
+ for (const [_, agent] of Object.entries(agents)) {
64
+ try {
65
+ const workflows = await agent.getWorkflows();
66
+ if (workflows[workflowId]) {
67
+ workflow = workflows[workflowId];
68
+ break;
69
+ }
70
+ break;
71
+ } catch (error) {
72
+ logger.debug("Error getting workflow from agent", error);
73
+ }
74
+ }
75
+ }
76
+ }
77
+ if (!workflow) {
78
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
79
+ }
80
+ return { workflow };
81
+ }
82
+ async function getWorkflowByIdHandler({ mastra, workflowId }) {
83
+ try {
84
+ if (!workflowId) {
85
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
86
+ }
87
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
88
+ if (!workflow) {
89
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
90
+ }
91
+ return chunkCJFKRVED_cjs.getWorkflowInfo(workflow);
92
+ } catch (error) {
93
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting workflow");
94
+ }
95
+ }
96
+ async function getWorkflowRunByIdHandler({
97
+ mastra,
98
+ workflowId,
99
+ runId
100
+ }) {
101
+ try {
102
+ if (!workflowId) {
103
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
104
+ }
105
+ if (!runId) {
106
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Run ID is required" });
107
+ }
108
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
109
+ if (!workflow) {
110
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
111
+ }
112
+ const run = await workflow.getWorkflowRunById(runId);
113
+ if (!run) {
114
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
115
+ }
116
+ return run;
117
+ } catch (error) {
118
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting workflow run");
119
+ }
120
+ }
121
+ async function getWorkflowRunExecutionResultHandler({
122
+ mastra,
123
+ workflowId,
124
+ runId
125
+ }) {
126
+ try {
127
+ if (!workflowId) {
128
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
129
+ }
130
+ if (!runId) {
131
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Run ID is required" });
132
+ }
133
+ const workflow = mastra.getWorkflow(workflowId);
134
+ if (!workflow) {
135
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
136
+ }
137
+ const executionResult = await workflow.getWorkflowRunExecutionResult(runId);
138
+ if (!executionResult) {
139
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run execution result not found" });
140
+ }
141
+ return executionResult;
142
+ } catch (error) {
143
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting workflow run execution result");
144
+ }
145
+ }
146
+ async function createWorkflowRunHandler({
147
+ mastra,
148
+ workflowId,
149
+ runId: prevRunId
150
+ }) {
151
+ try {
152
+ if (!workflowId) {
153
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
154
+ }
155
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
156
+ if (!workflow) {
157
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
158
+ }
159
+ const run = await workflow.createRunAsync({ runId: prevRunId });
160
+ return { runId: run.runId };
161
+ } catch (error) {
162
+ return chunkRE4RPXT2_cjs.handleError(error, "Error creating workflow run");
163
+ }
164
+ }
165
+ async function startAsyncWorkflowHandler({
166
+ mastra,
167
+ runtimeContext,
168
+ workflowId,
169
+ runId,
170
+ inputData,
171
+ tracingOptions
172
+ }) {
173
+ try {
174
+ if (!workflowId) {
175
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
176
+ }
177
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
178
+ if (!workflow) {
179
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
180
+ }
181
+ const _run = await workflow.createRunAsync({ runId });
182
+ const result = await _run.start({
183
+ inputData,
184
+ runtimeContext,
185
+ tracingOptions
186
+ });
187
+ return result;
188
+ } catch (error) {
189
+ return chunkRE4RPXT2_cjs.handleError(error, "Error starting async workflow");
190
+ }
191
+ }
192
+ async function startWorkflowRunHandler({
193
+ mastra,
194
+ runtimeContext,
195
+ workflowId,
196
+ runId,
197
+ inputData,
198
+ tracingOptions
199
+ }) {
200
+ try {
201
+ if (!workflowId) {
202
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
203
+ }
204
+ if (!runId) {
205
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to start run" });
206
+ }
207
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
208
+ if (!workflow) {
209
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
210
+ }
211
+ const run = await workflow.getWorkflowRunById(runId);
212
+ if (!run) {
213
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
214
+ }
215
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
216
+ void _run.start({
217
+ inputData,
218
+ runtimeContext,
219
+ tracingOptions
220
+ });
221
+ return { message: "Workflow run started" };
222
+ } catch (e) {
223
+ return chunkRE4RPXT2_cjs.handleError(e, "Error starting workflow run");
224
+ }
225
+ }
226
+ async function watchWorkflowHandler({
227
+ mastra,
228
+ workflowId,
229
+ runId,
230
+ eventType = "watch"
231
+ }) {
232
+ try {
233
+ if (!workflowId) {
234
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
235
+ }
236
+ if (!runId) {
237
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to watch workflow" });
238
+ }
239
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
240
+ if (!workflow) {
241
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
242
+ }
243
+ const run = await workflow.getWorkflowRunById(runId);
244
+ if (!run) {
245
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
246
+ }
247
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
248
+ let unwatch;
249
+ let asyncRef = null;
250
+ const stream = new web.ReadableStream({
251
+ start(controller) {
252
+ if (eventType === "watch") {
253
+ unwatch = _run.watch((event) => {
254
+ const { type, payload, eventTimestamp } = event;
255
+ controller.enqueue(JSON.stringify({ type, payload, eventTimestamp, runId }));
256
+ if (asyncRef) {
257
+ clearImmediate(asyncRef);
258
+ asyncRef = null;
259
+ }
260
+ asyncRef = setImmediate(async () => {
261
+ const runDone = payload.workflowState?.status !== "running";
262
+ if (runDone) {
263
+ controller.close();
264
+ unwatch?.();
265
+ }
266
+ });
267
+ }, eventType);
268
+ } else {
269
+ unwatch = _run.watch((event) => {
270
+ const { type, payload } = event;
271
+ controller.enqueue(JSON.stringify({ type, payload, runId }));
272
+ if (asyncRef) {
273
+ clearImmediate(asyncRef);
274
+ asyncRef = null;
275
+ }
276
+ asyncRef = setImmediate(async () => {
277
+ const runDone = type === "workflow-finish";
278
+ if (runDone) {
279
+ controller.close();
280
+ unwatch?.();
281
+ }
282
+ });
283
+ }, eventType);
284
+ }
285
+ },
286
+ cancel() {
287
+ if (asyncRef) {
288
+ clearImmediate(asyncRef);
289
+ asyncRef = null;
290
+ }
291
+ unwatch?.();
292
+ }
293
+ });
294
+ return stream;
295
+ } catch (error) {
296
+ return chunkRE4RPXT2_cjs.handleError(error, "Error watching workflow");
297
+ }
298
+ }
299
+ async function streamWorkflowHandler({
300
+ mastra,
301
+ runtimeContext,
302
+ workflowId,
303
+ runId,
304
+ inputData,
305
+ tracingOptions
306
+ }) {
307
+ return streamVNextWorkflowHandler({ mastra, workflowId, runId, inputData, runtimeContext, tracingOptions });
308
+ }
309
+ async function streamLegacyWorkflowHandler({
310
+ mastra,
311
+ runtimeContext,
312
+ workflowId,
313
+ runId,
314
+ inputData,
315
+ tracingOptions
316
+ }) {
317
+ try {
318
+ if (!workflowId) {
319
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
320
+ }
321
+ if (!runId) {
322
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to resume workflow" });
323
+ }
324
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
325
+ if (!workflow) {
326
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
327
+ }
328
+ const serverCache = mastra.getServerCache();
329
+ const run = await workflow.createRunAsync({ runId });
330
+ const result = run.streamLegacy({
331
+ inputData,
332
+ runtimeContext,
333
+ onChunk: async (chunk) => {
334
+ if (serverCache) {
335
+ const cacheKey = runId;
336
+ await serverCache.listPush(cacheKey, chunk);
337
+ }
338
+ },
339
+ tracingOptions
340
+ });
341
+ return result;
342
+ } catch (error) {
343
+ return chunkRE4RPXT2_cjs.handleError(error, "Error executing workflow");
344
+ }
345
+ }
346
+ async function observeStreamLegacyWorkflowHandler({
347
+ mastra,
348
+ workflowId,
349
+ runId
350
+ }) {
351
+ try {
352
+ if (!workflowId) {
353
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
354
+ }
355
+ if (!runId) {
356
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to observe workflow stream" });
357
+ }
358
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
359
+ if (!workflow) {
360
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
361
+ }
362
+ const run = await workflow.getWorkflowRunById(runId);
363
+ if (!run) {
364
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
365
+ }
366
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
367
+ const serverCache = mastra.getServerCache();
368
+ if (!serverCache) {
369
+ throw new chunk7NADHFD2_cjs.HTTPException(500, { message: "Server cache not found" });
370
+ }
371
+ const transformStream = new web.TransformStream();
372
+ const writer = transformStream.writable.getWriter();
373
+ const cachedRunChunks = await serverCache.listFromTo(runId, 0);
374
+ for (const chunk of cachedRunChunks) {
375
+ await writer.write(chunk);
376
+ }
377
+ writer.releaseLock();
378
+ const result = _run.observeStreamLegacy();
379
+ return result.stream?.pipeThrough(transformStream);
380
+ } catch (error) {
381
+ return chunkRE4RPXT2_cjs.handleError(error, "Error observing workflow stream");
382
+ }
383
+ }
384
+ async function observeStreamWorkflowHandler({
385
+ mastra,
386
+ workflowId,
387
+ runId
388
+ }) {
389
+ return observeStreamVNextWorkflowHandler({ mastra, workflowId, runId });
390
+ }
391
+ async function streamVNextWorkflowHandler({
392
+ mastra,
393
+ runtimeContext,
394
+ workflowId,
395
+ runId,
396
+ inputData,
397
+ closeOnSuspend,
398
+ tracingOptions
399
+ }) {
400
+ try {
401
+ if (!workflowId) {
402
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
403
+ }
404
+ if (!runId) {
405
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to stream workflow" });
406
+ }
407
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
408
+ if (!workflow) {
409
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
410
+ }
411
+ const serverCache = mastra.getServerCache();
412
+ const run = await workflow.createRunAsync({ runId });
413
+ const result = run.stream({
414
+ inputData,
415
+ runtimeContext,
416
+ closeOnSuspend,
417
+ tracingOptions
418
+ });
419
+ return result.fullStream.pipeThrough(
420
+ new web.TransformStream({
421
+ transform(chunk, controller) {
422
+ if (serverCache) {
423
+ const cacheKey = runId;
424
+ serverCache.listPush(cacheKey, chunk).catch(() => {
425
+ });
426
+ }
427
+ controller.enqueue(chunk);
428
+ }
429
+ })
430
+ );
431
+ } catch (error) {
432
+ return chunkRE4RPXT2_cjs.handleError(error, "Error streaming workflow");
433
+ }
434
+ }
435
+ async function observeStreamVNextWorkflowHandler({
436
+ mastra,
437
+ workflowId,
438
+ runId
439
+ }) {
440
+ try {
441
+ if (!workflowId) {
442
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
443
+ }
444
+ if (!runId) {
445
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to observe workflow stream" });
446
+ }
447
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
448
+ if (!workflow) {
449
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
450
+ }
451
+ const run = await workflow.getWorkflowRunById(runId);
452
+ if (!run) {
453
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
454
+ }
455
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
456
+ const serverCache = mastra.getServerCache();
457
+ if (!serverCache) {
458
+ throw new chunk7NADHFD2_cjs.HTTPException(500, { message: "Server cache not found" });
459
+ }
460
+ const cachedRunChunks = await serverCache.listFromTo(runId, 0);
461
+ const combinedStream = new web.ReadableStream({
462
+ start(controller) {
463
+ const emitCachedChunks = async () => {
464
+ for (const chunk of cachedRunChunks) {
465
+ controller.enqueue(chunk);
466
+ }
467
+ };
468
+ const liveStream = _run.observeStream();
469
+ const reader = liveStream.getReader();
470
+ const pump = async () => {
471
+ try {
472
+ while (true) {
473
+ const { done, value } = await reader.read();
474
+ if (done) {
475
+ controller.close();
476
+ break;
477
+ }
478
+ controller.enqueue(value);
479
+ }
480
+ } catch (error) {
481
+ controller.error(error);
482
+ } finally {
483
+ reader.releaseLock();
484
+ }
485
+ };
486
+ void emitCachedChunks().then(() => {
487
+ void pump();
488
+ }).catch((error) => {
489
+ controller.error(error);
490
+ });
491
+ }
492
+ });
493
+ return combinedStream;
494
+ } catch (error) {
495
+ return chunkRE4RPXT2_cjs.handleError(error, "Error observing workflow stream");
496
+ }
497
+ }
498
+ async function resumeAsyncWorkflowHandler({
499
+ mastra,
500
+ workflowId,
501
+ runId,
502
+ body,
503
+ runtimeContext,
504
+ tracingOptions
505
+ }) {
506
+ try {
507
+ if (!workflowId) {
508
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
509
+ }
510
+ if (!runId) {
511
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to resume workflow" });
512
+ }
513
+ if (!body.step) {
514
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "step required to resume workflow" });
515
+ }
516
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
517
+ if (!workflow) {
518
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
519
+ }
520
+ const run = await workflow.getWorkflowRunById(runId);
521
+ if (!run) {
522
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
523
+ }
524
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
525
+ const result = await _run.resume({
526
+ step: body.step,
527
+ resumeData: body.resumeData,
528
+ runtimeContext,
529
+ tracingOptions
530
+ });
531
+ return result;
532
+ } catch (error) {
533
+ return chunkRE4RPXT2_cjs.handleError(error, "Error resuming workflow step");
534
+ }
535
+ }
536
+ async function resumeWorkflowHandler({
537
+ mastra,
538
+ workflowId,
539
+ runId,
540
+ body,
541
+ runtimeContext,
542
+ tracingOptions
543
+ }) {
544
+ try {
545
+ if (!workflowId) {
546
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
547
+ }
548
+ if (!runId) {
549
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to resume workflow" });
550
+ }
551
+ if (!body.step) {
552
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "step required to resume workflow" });
553
+ }
554
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
555
+ if (!workflow) {
556
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
557
+ }
558
+ const run = await workflow.getWorkflowRunById(runId);
559
+ if (!run) {
560
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
561
+ }
562
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
563
+ void _run.resume({
564
+ step: body.step,
565
+ resumeData: body.resumeData,
566
+ runtimeContext,
567
+ tracingOptions
568
+ });
569
+ return { message: "Workflow run resumed" };
570
+ } catch (error) {
571
+ return chunkRE4RPXT2_cjs.handleError(error, "Error resuming workflow");
572
+ }
573
+ }
574
+ async function resumeStreamWorkflowHandler({
575
+ mastra,
576
+ workflowId,
577
+ runId,
578
+ body,
579
+ runtimeContext,
580
+ tracingOptions
581
+ }) {
582
+ try {
583
+ if (!workflowId) {
584
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
585
+ }
586
+ if (!runId) {
587
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to resume workflow" });
588
+ }
589
+ if (!body.step) {
590
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "step required to resume workflow" });
591
+ }
592
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
593
+ if (!workflow) {
594
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
595
+ }
596
+ const run = await workflow.getWorkflowRunById(runId);
597
+ if (!run) {
598
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
599
+ }
600
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
601
+ const serverCache = mastra.getServerCache();
602
+ const stream = _run.resumeStream({
603
+ step: body.step,
604
+ resumeData: body.resumeData,
605
+ runtimeContext,
606
+ tracingOptions
607
+ }).fullStream.pipeThrough(
608
+ new web.TransformStream({
609
+ transform(chunk, controller) {
610
+ if (serverCache) {
611
+ const cacheKey = runId;
612
+ serverCache.listPush(cacheKey, chunk).catch(() => {
613
+ });
614
+ }
615
+ controller.enqueue(chunk);
616
+ }
617
+ })
618
+ );
619
+ return stream;
620
+ } catch (error) {
621
+ return chunkRE4RPXT2_cjs.handleError(error, "Error resuming workflow");
622
+ }
623
+ }
624
+ async function getWorkflowRunsHandler({
625
+ mastra,
626
+ workflowId,
627
+ fromDate,
628
+ toDate,
629
+ limit,
630
+ offset,
631
+ resourceId
632
+ }) {
633
+ try {
634
+ if (!workflowId) {
635
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
636
+ }
637
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
638
+ if (!workflow) {
639
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
640
+ }
641
+ const workflowRuns = await workflow.getWorkflowRuns({ fromDate, toDate, limit, offset, resourceId }) || {
642
+ runs: [],
643
+ total: 0
644
+ };
645
+ return workflowRuns;
646
+ } catch (error) {
647
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting workflow runs");
648
+ }
649
+ }
650
+ async function cancelWorkflowRunHandler({
651
+ mastra,
652
+ workflowId,
653
+ runId
654
+ }) {
655
+ try {
656
+ if (!workflowId) {
657
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
658
+ }
659
+ if (!runId) {
660
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to cancel workflow run" });
661
+ }
662
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
663
+ if (!workflow) {
664
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
665
+ }
666
+ const run = await workflow.getWorkflowRunById(runId);
667
+ if (!run) {
668
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
669
+ }
670
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
671
+ await _run.cancel();
672
+ return { message: "Workflow run cancelled" };
673
+ } catch (error) {
674
+ return chunkRE4RPXT2_cjs.handleError(error, "Error canceling workflow run");
675
+ }
676
+ }
677
+ async function sendWorkflowRunEventHandler({
678
+ mastra,
679
+ workflowId,
680
+ runId,
681
+ event,
682
+ data
683
+ }) {
684
+ try {
685
+ if (!workflowId) {
686
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Workflow ID is required" });
687
+ }
688
+ if (!runId) {
689
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "runId required to send workflow run event" });
690
+ }
691
+ const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
692
+ if (!workflow) {
693
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow not found" });
694
+ }
695
+ const run = await workflow.getWorkflowRunById(runId);
696
+ if (!run) {
697
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Workflow run not found" });
698
+ }
699
+ const _run = await workflow.createRunAsync({ runId, resourceId: run.resourceId });
700
+ await _run.sendEvent(event, data);
701
+ return { message: "Workflow run event sent" };
702
+ } catch (error) {
703
+ return chunkRE4RPXT2_cjs.handleError(error, "Error sending workflow run event");
704
+ }
705
+ }
706
+
707
+ exports.cancelWorkflowRunHandler = cancelWorkflowRunHandler;
708
+ exports.createWorkflowRunHandler = createWorkflowRunHandler;
709
+ exports.getWorkflowByIdHandler = getWorkflowByIdHandler;
710
+ exports.getWorkflowRunByIdHandler = getWorkflowRunByIdHandler;
711
+ exports.getWorkflowRunExecutionResultHandler = getWorkflowRunExecutionResultHandler;
712
+ exports.getWorkflowRunsHandler = getWorkflowRunsHandler;
713
+ exports.getWorkflowsHandler = getWorkflowsHandler;
714
+ exports.observeStreamLegacyWorkflowHandler = observeStreamLegacyWorkflowHandler;
715
+ exports.observeStreamVNextWorkflowHandler = observeStreamVNextWorkflowHandler;
716
+ exports.observeStreamWorkflowHandler = observeStreamWorkflowHandler;
717
+ exports.resumeAsyncWorkflowHandler = resumeAsyncWorkflowHandler;
718
+ exports.resumeStreamWorkflowHandler = resumeStreamWorkflowHandler;
719
+ exports.resumeWorkflowHandler = resumeWorkflowHandler;
720
+ exports.sendWorkflowRunEventHandler = sendWorkflowRunEventHandler;
721
+ exports.startAsyncWorkflowHandler = startAsyncWorkflowHandler;
722
+ exports.startWorkflowRunHandler = startWorkflowRunHandler;
723
+ exports.streamLegacyWorkflowHandler = streamLegacyWorkflowHandler;
724
+ exports.streamVNextWorkflowHandler = streamVNextWorkflowHandler;
725
+ exports.streamWorkflowHandler = streamWorkflowHandler;
726
+ exports.watchWorkflowHandler = watchWorkflowHandler;
727
+ exports.workflows_exports = workflows_exports;
728
+ //# sourceMappingURL=chunk-B7QWVGQQ.cjs.map
729
+ //# sourceMappingURL=chunk-B7QWVGQQ.cjs.map