@mastra/server 0.10.9-alpha.0 → 0.10.10-alpha.0

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 (57) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +2 -0
  2. package/dist/_tsup-dts-rollup.d.ts +2 -0
  3. package/dist/{chunk-OCWPVYNI.cjs → chunk-2KZFMI6P.cjs} +1 -0
  4. package/dist/{chunk-DPRB3R7Y.cjs → chunk-2SLFAFTR.cjs} +12 -12
  5. package/dist/{chunk-BOXE6WSV.js → chunk-4D66QEKC.js} +2 -2
  6. package/dist/{chunk-7GQJAMTA.js → chunk-5PQQ42EZ.js} +2 -2
  7. package/dist/{chunk-TVBPFPTN.cjs → chunk-7TP2LX5L.cjs} +16 -16
  8. package/dist/{chunk-4QBIUKVY.js → chunk-BK4XT6EG.js} +3 -3
  9. package/dist/{chunk-57CJTIPW.cjs → chunk-CCGRCYWJ.cjs} +2 -2
  10. package/dist/{chunk-VMXLEF54.js → chunk-CRCR3ZUK.js} +3 -3
  11. package/dist/{chunk-3DKDT264.cjs → chunk-DN7K6FJK.cjs} +34 -34
  12. package/dist/{chunk-FGGMQCPP.cjs → chunk-FRVBFMO2.cjs} +15 -15
  13. package/dist/{chunk-ULFULEW4.cjs → chunk-G7KH752Y.cjs} +5 -5
  14. package/dist/{chunk-Z5TH5F35.js → chunk-I2PBVVNV.js} +2 -2
  15. package/dist/{chunk-TGZIR6AK.cjs → chunk-JMLYCXMK.cjs} +36 -36
  16. package/dist/{chunk-G37NVEDX.js → chunk-KHZKYUNR.js} +3 -3
  17. package/dist/{chunk-NYN7KFXL.js → chunk-LCM566I4.js} +1 -0
  18. package/dist/{chunk-QDOJJCS4.js → chunk-LF7P5PLR.js} +4 -2
  19. package/dist/{chunk-DFJUGWNU.js → chunk-LRCAAFUA.js} +3 -3
  20. package/dist/{chunk-BWHGBV3K.cjs → chunk-LZ3VJXSO.cjs} +14 -14
  21. package/dist/{chunk-LTJNMM2Y.js → chunk-MKLYEKEF.js} +3 -3
  22. package/dist/{chunk-MTR2B27E.cjs → chunk-PZQDCRPV.cjs} +5 -3
  23. package/dist/{chunk-CNVDCLSY.cjs → chunk-QGX47B5D.cjs} +7 -7
  24. package/dist/{chunk-BP24Z4WG.js → chunk-RG473F6Y.js} +2 -2
  25. package/dist/{chunk-L3N7ST2Z.cjs → chunk-RHSWAXKB.cjs} +22 -22
  26. package/dist/{chunk-H5PTF3Y4.js → chunk-RSEO4XPX.js} +1 -1
  27. package/dist/{chunk-7524QH7G.cjs → chunk-SAI3WQ7Z.cjs} +58 -58
  28. package/dist/{chunk-FVMGZKFD.js → chunk-WNVFNNWN.js} +2 -2
  29. package/dist/server/handlers/agents.cjs +7 -7
  30. package/dist/server/handlers/agents.js +1 -1
  31. package/dist/server/handlers/error.cjs +2 -2
  32. package/dist/server/handlers/error.js +1 -1
  33. package/dist/server/handlers/legacyWorkflows.cjs +11 -11
  34. package/dist/server/handlers/legacyWorkflows.js +1 -1
  35. package/dist/server/handlers/logs.cjs +4 -4
  36. package/dist/server/handlers/logs.js +1 -1
  37. package/dist/server/handlers/memory.cjs +9 -9
  38. package/dist/server/handlers/memory.js +1 -1
  39. package/dist/server/handlers/network.cjs +5 -5
  40. package/dist/server/handlers/network.js +1 -1
  41. package/dist/server/handlers/telemetry.cjs +3 -3
  42. package/dist/server/handlers/telemetry.js +1 -1
  43. package/dist/server/handlers/tools.cjs +5 -5
  44. package/dist/server/handlers/tools.js +1 -1
  45. package/dist/server/handlers/utils.cjs +2 -2
  46. package/dist/server/handlers/utils.js +1 -1
  47. package/dist/server/handlers/vNextNetwork.cjs +18 -18
  48. package/dist/server/handlers/vNextNetwork.js +3 -3
  49. package/dist/server/handlers/vector.cjs +7 -7
  50. package/dist/server/handlers/vector.js +1 -1
  51. package/dist/server/handlers/voice.cjs +5 -5
  52. package/dist/server/handlers/voice.js +1 -1
  53. package/dist/server/handlers/workflows.cjs +14 -14
  54. package/dist/server/handlers/workflows.js +1 -1
  55. package/dist/server/handlers.cjs +20 -20
  56. package/dist/server/handlers.js +10 -10
  57. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkLI436ITD_cjs = require('./chunk-LI436ITD.cjs');
4
- var chunkMTR2B27E_cjs = require('./chunk-MTR2B27E.cjs');
5
- var chunkOCWPVYNI_cjs = require('./chunk-OCWPVYNI.cjs');
4
+ var chunkPZQDCRPV_cjs = require('./chunk-PZQDCRPV.cjs');
5
+ var chunk2KZFMI6P_cjs = require('./chunk-2KZFMI6P.cjs');
6
6
  var chunk75ZPJI57_cjs = require('./chunk-75ZPJI57.cjs');
7
7
  var web = require('stream/web');
8
8
 
@@ -69,13 +69,13 @@ async function getWorkflowsHandler({ mastra }) {
69
69
  }, {});
70
70
  return _workflows;
71
71
  } catch (error) {
72
- return chunkMTR2B27E_cjs.handleError(error, "Error getting workflows");
72
+ return chunkPZQDCRPV_cjs.handleError(error, "Error getting workflows");
73
73
  }
74
74
  }
75
75
  async function getWorkflowsFromSystem({ mastra, workflowId }) {
76
76
  const logger = mastra.getLogger();
77
77
  if (!workflowId) {
78
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
78
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
79
79
  }
80
80
  let workflow;
81
81
  try {
@@ -102,18 +102,18 @@ async function getWorkflowsFromSystem({ mastra, workflowId }) {
102
102
  }
103
103
  }
104
104
  if (!workflow) {
105
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
105
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
106
106
  }
107
107
  return { workflow };
108
108
  }
109
109
  async function getWorkflowByIdHandler({ mastra, workflowId }) {
110
110
  try {
111
111
  if (!workflowId) {
112
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
112
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
113
113
  }
114
114
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
115
115
  if (!workflow) {
116
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
116
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
117
117
  }
118
118
  return {
119
119
  steps: Object.entries(workflow.steps).reduce((acc, [key, step]) => {
@@ -135,7 +135,7 @@ async function getWorkflowByIdHandler({ mastra, workflowId }) {
135
135
  outputSchema: workflow.outputSchema ? chunkLI436ITD_cjs.stringify(chunkLI436ITD_cjs.esm_default(workflow.outputSchema)) : void 0
136
136
  };
137
137
  } catch (error) {
138
- return chunkMTR2B27E_cjs.handleError(error, "Error getting workflow");
138
+ return chunkPZQDCRPV_cjs.handleError(error, "Error getting workflow");
139
139
  }
140
140
  }
141
141
  async function getWorkflowRunByIdHandler({
@@ -145,22 +145,22 @@ async function getWorkflowRunByIdHandler({
145
145
  }) {
146
146
  try {
147
147
  if (!workflowId) {
148
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
148
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
149
149
  }
150
150
  if (!runId) {
151
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Run ID is required" });
151
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Run ID is required" });
152
152
  }
153
153
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
154
154
  if (!workflow) {
155
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
155
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
156
156
  }
157
157
  const run = await workflow.getWorkflowRunById(runId);
158
158
  if (!run) {
159
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
159
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow run not found" });
160
160
  }
161
161
  return run;
162
162
  } catch (error) {
163
- return chunkMTR2B27E_cjs.handleError(error, "Error getting workflow run");
163
+ return chunkPZQDCRPV_cjs.handleError(error, "Error getting workflow run");
164
164
  }
165
165
  }
166
166
  async function getWorkflowRunExecutionResultHandler({
@@ -170,22 +170,22 @@ async function getWorkflowRunExecutionResultHandler({
170
170
  }) {
171
171
  try {
172
172
  if (!workflowId) {
173
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
173
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
174
174
  }
175
175
  if (!runId) {
176
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Run ID is required" });
176
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Run ID is required" });
177
177
  }
178
178
  const workflow = mastra.getWorkflow(workflowId);
179
179
  if (!workflow) {
180
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
180
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
181
181
  }
182
182
  const executionResult = await workflow.getWorkflowRunExecutionResult(runId);
183
183
  if (!executionResult) {
184
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run execution result not found" });
184
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow run execution result not found" });
185
185
  }
186
186
  return executionResult;
187
187
  } catch (error) {
188
- return chunkMTR2B27E_cjs.handleError(error, "Error getting workflow run execution result");
188
+ return chunkPZQDCRPV_cjs.handleError(error, "Error getting workflow run execution result");
189
189
  }
190
190
  }
191
191
  async function createWorkflowRunHandler({
@@ -195,16 +195,16 @@ async function createWorkflowRunHandler({
195
195
  }) {
196
196
  try {
197
197
  if (!workflowId) {
198
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
198
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
199
199
  }
200
200
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
201
201
  if (!workflow) {
202
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
202
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
203
203
  }
204
204
  const run = await workflow.createRunAsync({ runId: prevRunId });
205
205
  return { runId: run.runId };
206
206
  } catch (error) {
207
- return chunkMTR2B27E_cjs.handleError(error, "Error creating workflow run");
207
+ return chunkPZQDCRPV_cjs.handleError(error, "Error creating workflow run");
208
208
  }
209
209
  }
210
210
  async function startAsyncWorkflowHandler({
@@ -216,11 +216,11 @@ async function startAsyncWorkflowHandler({
216
216
  }) {
217
217
  try {
218
218
  if (!workflowId) {
219
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
219
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
220
220
  }
221
221
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
222
222
  if (!workflow) {
223
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
223
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
224
224
  }
225
225
  const _run = await workflow.createRunAsync({ runId });
226
226
  const result = await _run.start({
@@ -229,7 +229,7 @@ async function startAsyncWorkflowHandler({
229
229
  });
230
230
  return result;
231
231
  } catch (error) {
232
- return chunkMTR2B27E_cjs.handleError(error, "Error starting async workflow");
232
+ return chunkPZQDCRPV_cjs.handleError(error, "Error starting async workflow");
233
233
  }
234
234
  }
235
235
  async function startWorkflowRunHandler({
@@ -241,18 +241,18 @@ async function startWorkflowRunHandler({
241
241
  }) {
242
242
  try {
243
243
  if (!workflowId) {
244
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
244
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
245
245
  }
246
246
  if (!runId) {
247
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to start run" });
247
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "runId required to start run" });
248
248
  }
249
249
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
250
250
  if (!workflow) {
251
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
251
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
252
252
  }
253
253
  const run = await workflow.getWorkflowRunById(runId);
254
254
  if (!run) {
255
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
255
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow run not found" });
256
256
  }
257
257
  const _run = await workflow.createRunAsync({ runId });
258
258
  void _run.start({
@@ -261,7 +261,7 @@ async function startWorkflowRunHandler({
261
261
  });
262
262
  return { message: "Workflow run started" };
263
263
  } catch (e) {
264
- return chunkMTR2B27E_cjs.handleError(e, "Error starting workflow run");
264
+ return chunkPZQDCRPV_cjs.handleError(e, "Error starting workflow run");
265
265
  }
266
266
  }
267
267
  async function watchWorkflowHandler({
@@ -271,18 +271,18 @@ async function watchWorkflowHandler({
271
271
  }) {
272
272
  try {
273
273
  if (!workflowId) {
274
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
274
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
275
275
  }
276
276
  if (!runId) {
277
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to watch workflow" });
277
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "runId required to watch workflow" });
278
278
  }
279
279
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
280
280
  if (!workflow) {
281
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
281
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
282
282
  }
283
283
  const run = await workflow.getWorkflowRunById(runId);
284
284
  if (!run) {
285
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
285
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow run not found" });
286
286
  }
287
287
  const _run = await workflow.createRunAsync({ runId });
288
288
  let unwatch;
@@ -310,7 +310,7 @@ async function watchWorkflowHandler({
310
310
  });
311
311
  return stream;
312
312
  } catch (error) {
313
- return chunkMTR2B27E_cjs.handleError(error, "Error watching workflow");
313
+ return chunkPZQDCRPV_cjs.handleError(error, "Error watching workflow");
314
314
  }
315
315
  }
316
316
  async function streamWorkflowHandler({
@@ -322,14 +322,14 @@ async function streamWorkflowHandler({
322
322
  }) {
323
323
  try {
324
324
  if (!workflowId) {
325
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
325
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
326
326
  }
327
327
  if (!runId) {
328
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to resume workflow" });
328
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "runId required to resume workflow" });
329
329
  }
330
330
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
331
331
  if (!workflow) {
332
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
332
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
333
333
  }
334
334
  const run = await workflow.createRunAsync({ runId });
335
335
  const result = run.stream({
@@ -338,7 +338,7 @@ async function streamWorkflowHandler({
338
338
  });
339
339
  return result;
340
340
  } catch (error) {
341
- return chunkMTR2B27E_cjs.handleError(error, "Error executing workflow");
341
+ return chunkPZQDCRPV_cjs.handleError(error, "Error executing workflow");
342
342
  }
343
343
  }
344
344
  async function resumeAsyncWorkflowHandler({
@@ -350,21 +350,21 @@ async function resumeAsyncWorkflowHandler({
350
350
  }) {
351
351
  try {
352
352
  if (!workflowId) {
353
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
353
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
354
354
  }
355
355
  if (!runId) {
356
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to resume workflow" });
356
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "runId required to resume workflow" });
357
357
  }
358
358
  if (!body.step) {
359
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "step required to resume workflow" });
359
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "step required to resume workflow" });
360
360
  }
361
361
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
362
362
  if (!workflow) {
363
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
363
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
364
364
  }
365
365
  const run = await workflow.getWorkflowRunById(runId);
366
366
  if (!run) {
367
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
367
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow run not found" });
368
368
  }
369
369
  const _run = await workflow.createRunAsync({ runId });
370
370
  const result = await _run.resume({
@@ -374,7 +374,7 @@ async function resumeAsyncWorkflowHandler({
374
374
  });
375
375
  return result;
376
376
  } catch (error) {
377
- return chunkMTR2B27E_cjs.handleError(error, "Error resuming workflow step");
377
+ return chunkPZQDCRPV_cjs.handleError(error, "Error resuming workflow step");
378
378
  }
379
379
  }
380
380
  async function resumeWorkflowHandler({
@@ -386,21 +386,21 @@ async function resumeWorkflowHandler({
386
386
  }) {
387
387
  try {
388
388
  if (!workflowId) {
389
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
389
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
390
390
  }
391
391
  if (!runId) {
392
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to resume workflow" });
392
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "runId required to resume workflow" });
393
393
  }
394
394
  if (!body.step) {
395
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "step required to resume workflow" });
395
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "step required to resume workflow" });
396
396
  }
397
397
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
398
398
  if (!workflow) {
399
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
399
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
400
400
  }
401
401
  const run = await workflow.getWorkflowRunById(runId);
402
402
  if (!run) {
403
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
403
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow run not found" });
404
404
  }
405
405
  const _run = await workflow.createRunAsync({ runId });
406
406
  void _run.resume({
@@ -410,7 +410,7 @@ async function resumeWorkflowHandler({
410
410
  });
411
411
  return { message: "Workflow run resumed" };
412
412
  } catch (error) {
413
- return chunkMTR2B27E_cjs.handleError(error, "Error resuming workflow");
413
+ return chunkPZQDCRPV_cjs.handleError(error, "Error resuming workflow");
414
414
  }
415
415
  }
416
416
  async function getWorkflowRunsHandler({
@@ -424,11 +424,11 @@ async function getWorkflowRunsHandler({
424
424
  }) {
425
425
  try {
426
426
  if (!workflowId) {
427
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
427
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
428
428
  }
429
429
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
430
430
  if (!workflow) {
431
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
431
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
432
432
  }
433
433
  const workflowRuns = await workflow.getWorkflowRuns({ fromDate, toDate, limit, offset, resourceId }) || {
434
434
  runs: [],
@@ -436,7 +436,7 @@ async function getWorkflowRunsHandler({
436
436
  };
437
437
  return workflowRuns;
438
438
  } catch (error) {
439
- return chunkMTR2B27E_cjs.handleError(error, "Error getting workflow runs");
439
+ return chunkPZQDCRPV_cjs.handleError(error, "Error getting workflow runs");
440
440
  }
441
441
  }
442
442
  async function cancelWorkflowRunHandler({
@@ -446,24 +446,24 @@ async function cancelWorkflowRunHandler({
446
446
  }) {
447
447
  try {
448
448
  if (!workflowId) {
449
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Workflow ID is required" });
449
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "Workflow ID is required" });
450
450
  }
451
451
  if (!runId) {
452
- throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "runId required to cancel workflow run" });
452
+ throw new chunk2KZFMI6P_cjs.HTTPException(400, { message: "runId required to cancel workflow run" });
453
453
  }
454
454
  const { workflow } = await getWorkflowsFromSystem({ mastra, workflowId });
455
455
  if (!workflow) {
456
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow not found" });
456
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow not found" });
457
457
  }
458
458
  const run = await workflow.getWorkflowRunById(runId);
459
459
  if (!run) {
460
- throw new chunkOCWPVYNI_cjs.HTTPException(404, { message: "Workflow run not found" });
460
+ throw new chunk2KZFMI6P_cjs.HTTPException(404, { message: "Workflow run not found" });
461
461
  }
462
462
  const _run = await workflow.createRunAsync({ runId });
463
463
  await _run.cancel();
464
464
  return { message: "Workflow run cancelled" };
465
465
  } catch (error) {
466
- return chunkMTR2B27E_cjs.handleError(error, "Error canceling workflow run");
466
+ return chunkPZQDCRPV_cjs.handleError(error, "Error canceling workflow run");
467
467
  }
468
468
  }
469
469
 
@@ -1,5 +1,5 @@
1
- import { handleError } from './chunk-QDOJJCS4.js';
2
- import { HTTPException } from './chunk-NYN7KFXL.js';
1
+ import { handleError } from './chunk-LF7P5PLR.js';
2
+ import { HTTPException } from './chunk-LCM566I4.js';
3
3
  import { __export } from './chunk-MLKGABMK.js';
4
4
 
5
5
  // src/server/handlers/vector.ts
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunkBWHGBV3K_cjs = require('../../chunk-BWHGBV3K.cjs');
3
+ var chunkLZ3VJXSO_cjs = require('../../chunk-LZ3VJXSO.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkBWHGBV3K_cjs.generateHandler; }
9
+ get: function () { return chunkLZ3VJXSO_cjs.generateHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getAgentByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkBWHGBV3K_cjs.getAgentByIdHandler; }
13
+ get: function () { return chunkLZ3VJXSO_cjs.getAgentByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getAgentsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkBWHGBV3K_cjs.getAgentsHandler; }
17
+ get: function () { return chunkLZ3VJXSO_cjs.getAgentsHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getEvalsByAgentIdHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkBWHGBV3K_cjs.getEvalsByAgentIdHandler; }
21
+ get: function () { return chunkLZ3VJXSO_cjs.getEvalsByAgentIdHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getLiveEvalsByAgentIdHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunkBWHGBV3K_cjs.getLiveEvalsByAgentIdHandler; }
25
+ get: function () { return chunkLZ3VJXSO_cjs.getLiveEvalsByAgentIdHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "streamGenerateHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunkBWHGBV3K_cjs.streamGenerateHandler; }
29
+ get: function () { return chunkLZ3VJXSO_cjs.streamGenerateHandler; }
30
30
  });
@@ -1 +1 @@
1
- export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-4QBIUKVY.js';
1
+ export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-BK4XT6EG.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkMTR2B27E_cjs = require('../../chunk-MTR2B27E.cjs');
3
+ var chunkPZQDCRPV_cjs = require('../../chunk-PZQDCRPV.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "handleError", {
8
8
  enumerable: true,
9
- get: function () { return chunkMTR2B27E_cjs.handleError; }
9
+ get: function () { return chunkPZQDCRPV_cjs.handleError; }
10
10
  });
@@ -1 +1 @@
1
- export { handleError } from '../../chunk-QDOJJCS4.js';
1
+ export { handleError } from '../../chunk-LF7P5PLR.js';
@@ -1,46 +1,46 @@
1
1
  'use strict';
2
2
 
3
- var chunkTGZIR6AK_cjs = require('../../chunk-TGZIR6AK.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 chunkTGZIR6AK_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 chunkTGZIR6AK_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 chunkTGZIR6AK_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 chunkTGZIR6AK_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 chunkTGZIR6AK_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 chunkTGZIR6AK_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 chunkTGZIR6AK_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 chunkTGZIR6AK_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 chunkTGZIR6AK_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 chunkTGZIR6AK_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-7GQJAMTA.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 chunkCNVDCLSY_cjs = require('../../chunk-CNVDCLSY.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 chunkCNVDCLSY_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 chunkCNVDCLSY_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 chunkCNVDCLSY_cjs.getLogsHandler; }
17
+ get: function () { return chunkQGX47B5D_cjs.getLogsHandler; }
18
18
  });
@@ -1 +1 @@
1
- export { getLogTransports, getLogsByRunIdHandler, getLogsHandler } from '../../chunk-BOXE6WSV.js';
1
+ export { getLogTransports, getLogsByRunIdHandler, getLogsHandler } from '../../chunk-4D66QEKC.js';
@@ -1,38 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunk3DKDT264_cjs = require('../../chunk-3DKDT264.cjs');
3
+ var chunkDN7K6FJK_cjs = require('../../chunk-DN7K6FJK.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createThreadHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunk3DKDT264_cjs.createThreadHandler; }
9
+ get: function () { return chunkDN7K6FJK_cjs.createThreadHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "deleteThreadHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk3DKDT264_cjs.deleteThreadHandler; }
13
+ get: function () { return chunkDN7K6FJK_cjs.deleteThreadHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getMemoryStatusHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunk3DKDT264_cjs.getMemoryStatusHandler; }
17
+ get: function () { return chunkDN7K6FJK_cjs.getMemoryStatusHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getMessagesHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunk3DKDT264_cjs.getMessagesHandler; }
21
+ get: function () { return chunkDN7K6FJK_cjs.getMessagesHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getThreadByIdHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunk3DKDT264_cjs.getThreadByIdHandler; }
25
+ get: function () { return chunkDN7K6FJK_cjs.getThreadByIdHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "getThreadsHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunk3DKDT264_cjs.getThreadsHandler; }
29
+ get: function () { return chunkDN7K6FJK_cjs.getThreadsHandler; }
30
30
  });
31
31
  Object.defineProperty(exports, "saveMessagesHandler", {
32
32
  enumerable: true,
33
- get: function () { return chunk3DKDT264_cjs.saveMessagesHandler; }
33
+ get: function () { return chunkDN7K6FJK_cjs.saveMessagesHandler; }
34
34
  });
35
35
  Object.defineProperty(exports, "updateThreadHandler", {
36
36
  enumerable: true,
37
- get: function () { return chunk3DKDT264_cjs.updateThreadHandler; }
37
+ get: function () { return chunkDN7K6FJK_cjs.updateThreadHandler; }
38
38
  });
@@ -1 +1 @@
1
- export { createThreadHandler, deleteThreadHandler, getMemoryStatusHandler, getMessagesHandler, getThreadByIdHandler, getThreadsHandler, saveMessagesHandler, updateThreadHandler } from '../../chunk-LTJNMM2Y.js';
1
+ export { createThreadHandler, deleteThreadHandler, getMemoryStatusHandler, getMessagesHandler, getThreadByIdHandler, getThreadsHandler, saveMessagesHandler, updateThreadHandler } from '../../chunk-MKLYEKEF.js';
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkDPRB3R7Y_cjs = require('../../chunk-DPRB3R7Y.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 chunkDPRB3R7Y_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 chunkDPRB3R7Y_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 chunkDPRB3R7Y_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 chunkDPRB3R7Y_cjs.streamGenerateHandler; }
21
+ get: function () { return chunk2SLFAFTR_cjs.streamGenerateHandler; }
22
22
  });
@@ -1 +1 @@
1
- export { generateHandler, getNetworkByIdHandler, getNetworksHandler, streamGenerateHandler } from '../../chunk-VMXLEF54.js';
1
+ export { generateHandler, getNetworkByIdHandler, getNetworksHandler, streamGenerateHandler } from '../../chunk-CRCR3ZUK.js';
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkULFULEW4_cjs = require('../../chunk-ULFULEW4.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 chunkULFULEW4_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 chunkULFULEW4_cjs.storeTelemetryHandler; }
13
+ get: function () { return chunkG7KH752Y_cjs.storeTelemetryHandler; }
14
14
  });
@@ -1 +1 @@
1
- export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-BP24Z4WG.js';
1
+ export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-RG473F6Y.js';