@mastra/server 0.0.0-switch-to-core-20250424015131 → 0.0.0-vector-query-sources-20250516172905

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 (74) hide show
  1. package/README.md +48 -135
  2. package/dist/_tsup-dts-rollup.d.cts +258 -13
  3. package/dist/_tsup-dts-rollup.d.ts +258 -13
  4. package/dist/{chunk-4JINXASC.js → chunk-55DOQLP6.js} +5 -4
  5. package/dist/{chunk-QN4KF3BH.cjs → chunk-57CJTIPW.cjs} +2 -2
  6. package/dist/chunk-5SN4U5AC.cjs +508 -0
  7. package/dist/{chunk-ZLBRQFDD.cjs → chunk-64U3UDTH.cjs} +2 -2
  8. package/dist/chunk-75ZPJI57.cjs +9 -0
  9. package/dist/{chunk-M56ECCHK.cjs → chunk-BNEY4P4P.cjs} +20 -19
  10. package/dist/{chunk-RE6YL32K.js → chunk-C7564HUT.js} +52 -30
  11. package/dist/chunk-D4IRYCUI.cjs +235 -0
  12. package/dist/{chunk-RBQASTUP.js → chunk-DJJIUEL2.js} +13 -5
  13. package/dist/{chunk-LFOBHRFO.js → chunk-EJO45KYT.js} +35 -20
  14. package/dist/{chunk-L7XE5QTW.js → chunk-H5PTF3Y4.js} +1 -1
  15. package/dist/{chunk-Q6SHQECN.js → chunk-HFWCEP5S.js} +4 -3
  16. package/dist/{chunk-3EJZQ6TQ.js → chunk-HWZVAG3H.js} +3 -3
  17. package/dist/{chunk-TZK63M5N.cjs → chunk-I2B73Y4I.cjs} +76 -61
  18. package/dist/chunk-LIVAK2DM.js +2001 -0
  19. package/dist/{chunk-3AHQ5RGN.js → chunk-M5ABIP7D.js} +1 -1
  20. package/dist/{chunk-7IWQE76Z.cjs → chunk-MHKNLNAN.cjs} +13 -10
  21. package/dist/chunk-MIQYDLLM.js +329 -0
  22. package/dist/chunk-MLKGABMK.js +7 -0
  23. package/dist/{chunk-TRDNDNGQ.js → chunk-NYN7KFXL.js} +1 -7
  24. package/dist/{chunk-FV45V6WC.cjs → chunk-OCWPVYNI.cjs} +0 -7
  25. package/dist/{chunk-SKBVVI24.cjs → chunk-OGCNNUHF.cjs} +9 -9
  26. package/dist/{chunk-WTHDCRMY.js → chunk-OR3CIE2H.js} +7 -4
  27. package/dist/chunk-P6SCPDYW.js +500 -0
  28. package/dist/{chunk-5JNVY6DU.js → chunk-TJKLBTFB.js} +20 -8
  29. package/dist/chunk-UCTEMO2Q.cjs +341 -0
  30. package/dist/{chunk-FPIWDH5Y.cjs → chunk-VPNDC2DI.cjs} +62 -40
  31. package/dist/chunk-WUC6LSTW.js +227 -0
  32. package/dist/{chunk-2FJURXCL.cjs → chunk-Y7UWRW5X.cjs} +43 -35
  33. package/dist/{chunk-55HTWX4C.cjs → chunk-YBVOQN4M.cjs} +20 -19
  34. package/dist/chunk-YWLUOY3D.cjs +2004 -0
  35. package/dist/{chunk-D3G23FP3.cjs → chunk-ZE5AAC4I.cjs} +37 -25
  36. package/dist/server/handlers/a2a.cjs +30 -0
  37. package/dist/server/handlers/a2a.d.cts +6 -0
  38. package/dist/server/handlers/a2a.d.ts +6 -0
  39. package/dist/server/handlers/a2a.js +1 -0
  40. package/dist/server/handlers/agents.cjs +7 -7
  41. package/dist/server/handlers/agents.js +1 -1
  42. package/dist/server/handlers/error.cjs +2 -2
  43. package/dist/server/handlers/error.js +1 -1
  44. package/dist/server/handlers/logs.cjs +4 -4
  45. package/dist/server/handlers/logs.js +1 -1
  46. package/dist/server/handlers/memory.cjs +9 -9
  47. package/dist/server/handlers/memory.js +1 -1
  48. package/dist/server/handlers/network.cjs +5 -5
  49. package/dist/server/handlers/network.js +1 -1
  50. package/dist/server/handlers/telemetry.cjs +3 -3
  51. package/dist/server/handlers/telemetry.js +1 -1
  52. package/dist/server/handlers/tools.cjs +5 -5
  53. package/dist/server/handlers/tools.js +1 -1
  54. package/dist/server/handlers/utils.cjs +2 -2
  55. package/dist/server/handlers/utils.js +1 -1
  56. package/dist/server/handlers/vNextWorkflows.cjs +46 -0
  57. package/dist/server/handlers/vNextWorkflows.d.cts +10 -0
  58. package/dist/server/handlers/vNextWorkflows.d.ts +10 -0
  59. package/dist/server/handlers/vNextWorkflows.js +1 -0
  60. package/dist/server/handlers/vector.cjs +7 -7
  61. package/dist/server/handlers/vector.js +1 -1
  62. package/dist/server/handlers/voice.cjs +4 -4
  63. package/dist/server/handlers/voice.js +1 -1
  64. package/dist/server/handlers/workflows.cjs +11 -11
  65. package/dist/server/handlers/workflows.js +1 -1
  66. package/dist/server/handlers.cjs +31 -21
  67. package/dist/server/handlers.d.cts +2 -0
  68. package/dist/server/handlers.d.ts +2 -0
  69. package/dist/server/handlers.js +11 -9
  70. package/package.json +8 -6
  71. package/dist/chunk-5SWCVTNL.cjs +0 -5579
  72. package/dist/chunk-HCOPJZ4A.cjs +0 -164
  73. package/dist/chunk-OMN3UI6X.js +0 -5576
  74. package/dist/chunk-R4J7XQYU.js +0 -156
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunk5SWCVTNL_cjs = require('./chunk-5SWCVTNL.cjs');
4
- var chunkZLBRQFDD_cjs = require('./chunk-ZLBRQFDD.cjs');
5
- var chunkFV45V6WC_cjs = require('./chunk-FV45V6WC.cjs');
3
+ var chunkYWLUOY3D_cjs = require('./chunk-YWLUOY3D.cjs');
4
+ var chunk64U3UDTH_cjs = require('./chunk-64U3UDTH.cjs');
5
+ var chunkOCWPVYNI_cjs = require('./chunk-OCWPVYNI.cjs');
6
+ var chunk75ZPJI57_cjs = require('./chunk-75ZPJI57.cjs');
6
7
  var web = require('stream/web');
7
8
 
8
9
  // src/server/handlers/workflows.ts
9
10
  var workflows_exports = {};
10
- chunkFV45V6WC_cjs.__export(workflows_exports, {
11
+ chunk75ZPJI57_cjs.__export(workflows_exports, {
11
12
  createRunHandler: () => createRunHandler,
12
13
  getWorkflowByIdHandler: () => getWorkflowByIdHandler,
13
14
  getWorkflowRunHandler: () => getWorkflowRunHandler,
@@ -30,13 +31,15 @@ async function getWorkflowsHandler({ mastra }) {
30
31
  serializedStepGraph: workflow.serializedStepGraph,
31
32
  serializedStepSubscriberGraph: workflow.serializedStepSubscriberGraph,
32
33
  name: workflow.name,
33
- triggerSchema: workflow.triggerSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(workflow.triggerSchema)) : void 0,
34
+ triggerSchema: workflow.triggerSchema ? chunkYWLUOY3D_cjs.stringify(chunkYWLUOY3D_cjs.esm_default(workflow.triggerSchema)) : void 0,
34
35
  steps: Object.entries(workflow.steps).reduce((acc2, [key2, step]) => {
35
36
  const _step = step;
36
37
  acc2[key2] = {
37
- ..._step,
38
- inputSchema: _step.inputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(_step.inputSchema)) : void 0,
39
- outputSchema: _step.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(_step.outputSchema)) : void 0
38
+ id: _step.id,
39
+ description: _step.description,
40
+ workflowId: _step.workflowId,
41
+ inputSchema: _step.inputSchema ? chunkYWLUOY3D_cjs.stringify(chunkYWLUOY3D_cjs.esm_default(_step.inputSchema)) : void 0,
42
+ outputSchema: _step.outputSchema ? chunkYWLUOY3D_cjs.stringify(chunkYWLUOY3D_cjs.esm_default(_step.outputSchema)) : void 0
40
43
  };
41
44
  return acc2;
42
45
  }, {})
@@ -45,17 +48,17 @@ async function getWorkflowsHandler({ mastra }) {
45
48
  }, {});
46
49
  return _workflows;
47
50
  } catch (error) {
48
- throw new chunkFV45V6WC_cjs.HTTPException(500, { message: error?.message || "Error getting workflows" });
51
+ throw new chunkOCWPVYNI_cjs.HTTPException(500, { message: error?.message || "Error getting workflows" });
49
52
  }
50
53
  }
51
54
  async function getWorkflowByIdHandler({ mastra, workflowId }) {
52
55
  try {
53
56
  if (!workflowId) {
54
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
57
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
55
58
  }
56
59
  const workflow = mastra.getWorkflow(workflowId);
57
60
  if (!workflow) {
58
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow not found" });
61
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
59
62
  }
60
63
  return {
61
64
  stepGraph: workflow.stepGraph,
@@ -63,19 +66,21 @@ async function getWorkflowByIdHandler({ mastra, workflowId }) {
63
66
  serializedStepGraph: workflow.serializedStepGraph,
64
67
  serializedStepSubscriberGraph: workflow.serializedStepSubscriberGraph,
65
68
  name: workflow.name,
66
- triggerSchema: workflow.triggerSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(workflow.triggerSchema)) : void 0,
69
+ triggerSchema: workflow.triggerSchema ? chunkYWLUOY3D_cjs.stringify(chunkYWLUOY3D_cjs.esm_default(workflow.triggerSchema)) : void 0,
67
70
  steps: Object.entries(workflow.steps).reduce((acc, [key, step]) => {
68
71
  const _step = step;
69
72
  acc[key] = {
70
- ..._step,
71
- inputSchema: _step.inputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(_step.inputSchema)) : void 0,
72
- outputSchema: _step.outputSchema ? chunk5SWCVTNL_cjs.stringify(chunk5SWCVTNL_cjs.esm_default(_step.outputSchema)) : void 0
73
+ id: _step.id,
74
+ description: _step.description,
75
+ workflowId: _step.workflowId,
76
+ inputSchema: _step.inputSchema ? chunkYWLUOY3D_cjs.stringify(chunkYWLUOY3D_cjs.esm_default(_step.inputSchema)) : void 0,
77
+ outputSchema: _step.outputSchema ? chunkYWLUOY3D_cjs.stringify(chunkYWLUOY3D_cjs.esm_default(_step.outputSchema)) : void 0
73
78
  };
74
79
  return acc;
75
80
  }, {})
76
81
  };
77
82
  } catch (error) {
78
- throw new chunkFV45V6WC_cjs.HTTPException(500, { message: error?.message || "Error getting workflow" });
83
+ throw new chunkOCWPVYNI_cjs.HTTPException(500, { message: error?.message || "Error getting workflow" });
79
84
  }
80
85
  }
81
86
  async function startAsyncWorkflowHandler({
@@ -87,23 +92,23 @@ async function startAsyncWorkflowHandler({
87
92
  }) {
88
93
  try {
89
94
  if (!workflowId) {
90
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
95
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
91
96
  }
92
97
  const workflow = mastra.getWorkflow(workflowId);
93
98
  if (!workflow) {
94
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow not found" });
99
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
95
100
  }
96
101
  if (!runId) {
97
- const { start } = workflow.createRun();
98
- const result2 = await start({
102
+ const newRun = workflow.createRun();
103
+ const result2 = await newRun.start({
99
104
  triggerData,
100
105
  runtimeContext
101
106
  });
102
107
  return result2;
103
108
  }
104
- const run = workflow.getRun(runId);
109
+ const run = workflow.getMemoryRun(runId);
105
110
  if (!run) {
106
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow run not found" });
111
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
107
112
  }
108
113
  const result = await run.start({
109
114
  triggerData,
@@ -111,7 +116,7 @@ async function startAsyncWorkflowHandler({
111
116
  });
112
117
  return result;
113
118
  } catch (error) {
114
- throw new chunkFV45V6WC_cjs.HTTPException(500, { message: error?.message || "Error executing workflow" });
119
+ throw new chunkOCWPVYNI_cjs.HTTPException(500, { message: error?.message || "Error executing workflow" });
115
120
  }
116
121
  }
117
122
  async function getWorkflowRunHandler({
@@ -121,22 +126,22 @@ async function getWorkflowRunHandler({
121
126
  }) {
122
127
  try {
123
128
  if (!workflowId) {
124
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
129
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
125
130
  }
126
131
  if (!runId) {
127
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Run ID is required" });
132
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Run ID is required" });
128
133
  }
129
134
  const workflow = mastra.getWorkflow(workflowId);
130
135
  if (!workflow) {
131
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow not found" });
136
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
132
137
  }
133
- const run = workflow.getRun(runId);
138
+ const run = await workflow.getRun(runId);
134
139
  if (!run) {
135
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow run not found" });
140
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
136
141
  }
137
142
  return run;
138
143
  } catch (error) {
139
- throw new chunkFV45V6WC_cjs.HTTPException(500, { message: error?.message || "Error getting workflow run" });
144
+ throw new chunkOCWPVYNI_cjs.HTTPException(500, { message: error?.message || "Error getting workflow run" });
140
145
  }
141
146
  }
142
147
  async function createRunHandler({
@@ -146,16 +151,16 @@ async function createRunHandler({
146
151
  }) {
147
152
  try {
148
153
  if (!workflowId) {
149
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
154
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
150
155
  }
151
156
  const workflow = mastra.getWorkflow(workflowId);
152
157
  if (!workflow) {
153
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow not found" });
158
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
154
159
  }
155
- const { runId } = workflow.createRun({ runId: prevRunId });
156
- return { runId };
160
+ const newRun = workflow.createRun({ runId: prevRunId });
161
+ return { runId: newRun.runId };
157
162
  } catch (error) {
158
- throw new chunkFV45V6WC_cjs.HTTPException(500, { message: error?.message || "Error creating workflow run" });
163
+ throw new chunkOCWPVYNI_cjs.HTTPException(500, { message: error?.message || "Error creating workflow run" });
159
164
  }
160
165
  }
161
166
  async function startWorkflowRunHandler({
@@ -167,23 +172,23 @@ async function startWorkflowRunHandler({
167
172
  }) {
168
173
  try {
169
174
  if (!workflowId) {
170
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
175
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
171
176
  }
172
177
  if (!runId) {
173
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "runId required to start run" });
178
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to start run" });
174
179
  }
175
180
  const workflow = mastra.getWorkflow(workflowId);
176
- const run = workflow.getRun(runId);
181
+ const run = workflow.getMemoryRun(runId);
177
182
  if (!run) {
178
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow run not found" });
183
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
179
184
  }
180
- await run.start({
185
+ void run.start({
181
186
  triggerData,
182
187
  runtimeContext
183
188
  });
184
189
  return { message: "Workflow run started" };
185
190
  } catch (e) {
186
- return chunkZLBRQFDD_cjs.handleError(e, "Error starting workflow run");
191
+ return chunk64U3UDTH_cjs.handleError(e, "Error starting workflow run");
187
192
  }
188
193
  }
189
194
  async function watchWorkflowHandler({
@@ -193,15 +198,15 @@ async function watchWorkflowHandler({
193
198
  }) {
194
199
  try {
195
200
  if (!workflowId) {
196
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
201
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
197
202
  }
198
203
  if (!runId) {
199
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "runId required to watch workflow" });
204
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to watch workflow" });
200
205
  }
201
206
  const workflow = mastra.getWorkflow(workflowId);
202
- const run = workflow.getRun(runId);
207
+ const run = workflow.getMemoryRun(runId);
203
208
  if (!run) {
204
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow run not found" });
209
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
205
210
  }
206
211
  let unwatch;
207
212
  let asyncRef = null;
@@ -215,8 +220,10 @@ async function watchWorkflowHandler({
215
220
  asyncRef = null;
216
221
  }
217
222
  asyncRef = setImmediate(() => {
218
- if (!workflow.getRun(runId2)) {
223
+ const runDone = Object.values(activePathsObj).every((value) => value.status !== "executing");
224
+ if (runDone) {
219
225
  controller.close();
226
+ unwatch?.();
220
227
  }
221
228
  });
222
229
  });
@@ -227,7 +234,7 @@ async function watchWorkflowHandler({
227
234
  });
228
235
  return stream;
229
236
  } catch (error) {
230
- return chunkZLBRQFDD_cjs.handleError(error, "Error watching workflow");
237
+ return chunk64U3UDTH_cjs.handleError(error, "Error watching workflow");
231
238
  }
232
239
  }
233
240
  async function resumeAsyncWorkflowHandler({
@@ -239,15 +246,15 @@ async function resumeAsyncWorkflowHandler({
239
246
  }) {
240
247
  try {
241
248
  if (!workflowId) {
242
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
249
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
243
250
  }
244
251
  if (!runId) {
245
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "runId required to resume workflow" });
252
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to resume workflow" });
246
253
  }
247
254
  const workflow = mastra.getWorkflow(workflowId);
248
- const run = workflow.getRun(runId);
255
+ const run = workflow.getMemoryRun(runId);
249
256
  if (!run) {
250
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow run not found" });
257
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
251
258
  }
252
259
  const result = await run.resume({
253
260
  stepId: body.stepId,
@@ -256,7 +263,7 @@ async function resumeAsyncWorkflowHandler({
256
263
  });
257
264
  return result;
258
265
  } catch (error) {
259
- return chunkZLBRQFDD_cjs.handleError(error, "Error resuming workflow step");
266
+ return chunk64U3UDTH_cjs.handleError(error, "Error resuming workflow step");
260
267
  }
261
268
  }
262
269
  async function resumeWorkflowHandler({
@@ -268,39 +275,47 @@ async function resumeWorkflowHandler({
268
275
  }) {
269
276
  try {
270
277
  if (!workflowId) {
271
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
278
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
272
279
  }
273
280
  if (!runId) {
274
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "runId required to resume workflow" });
281
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to resume workflow" });
275
282
  }
276
283
  const workflow = mastra.getWorkflow(workflowId);
277
- const run = workflow.getRun(runId);
284
+ const run = workflow.getMemoryRun(runId);
278
285
  if (!run) {
279
- throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow run not found" });
286
+ throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
280
287
  }
281
- await run.resume({
288
+ void run.resume({
282
289
  stepId: body.stepId,
283
290
  context: body.context,
284
291
  runtimeContext
285
292
  });
286
293
  return { message: "Workflow run resumed" };
287
294
  } catch (error) {
288
- return chunkZLBRQFDD_cjs.handleError(error, "Error resuming workflow");
295
+ return chunk64U3UDTH_cjs.handleError(error, "Error resuming workflow");
289
296
  }
290
297
  }
291
- async function getWorkflowRunsHandler({ mastra, workflowId }) {
298
+ async function getWorkflowRunsHandler({
299
+ mastra,
300
+ workflowId,
301
+ fromDate,
302
+ toDate,
303
+ limit,
304
+ offset,
305
+ resourceId
306
+ }) {
292
307
  try {
293
308
  if (!workflowId) {
294
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
309
+ throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
295
310
  }
296
311
  const workflow = mastra.getWorkflow(workflowId);
297
- const workflowRuns = await workflow.getWorkflowRuns() || {
312
+ const workflowRuns = await workflow.getWorkflowRuns({ fromDate, toDate, limit, offset, resourceId }) || {
298
313
  runs: [],
299
314
  total: 0
300
315
  };
301
316
  return workflowRuns;
302
317
  } catch (error) {
303
- return chunkZLBRQFDD_cjs.handleError(error, "Error getting workflow runs");
318
+ return chunk64U3UDTH_cjs.handleError(error, "Error getting workflow runs");
304
319
  }
305
320
  }
306
321