@mastra/core 0.1.27-alpha.14 → 0.1.27-alpha.15

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.
@@ -18,7 +18,7 @@ var ai = require('ai');
18
18
  var zod = require('zod');
19
19
  var sift = require('sift');
20
20
  var xstate = require('xstate');
21
- var get = require('lodash-es/get');
21
+ var radash = require('radash');
22
22
 
23
23
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
24
24
  try {
@@ -2766,7 +2766,7 @@ function _resolveVariables2(stepConfig, context) {
2766
2766
  throw new Error("Cannot resolve variable: Step " + variable.stepId + " has not been executed yet");
2767
2767
  }
2768
2768
  // If path is empty or '.', return the entire source data
2769
- var value = variable.path === '' || variable.path === '.' ? sourceData[key] : get(sourceData, variable.path);
2769
+ var value = variable.path === '' || variable.path === '.' ? sourceData[key] : radash.get(sourceData, variable.path);
2770
2770
  if (value === undefined) {
2771
2771
  throw new Error("Cannot resolve path \"" + variable.path + "\" from " + variable.stepId);
2772
2772
  }
@@ -2793,7 +2793,7 @@ function _evaluateCondition2(condition, context) {
2793
2793
  if (!sourceData) {
2794
2794
  throw new Error("Cannot evaluate condition: Step " + ref.stepId + " has not been executed yet");
2795
2795
  }
2796
- var value = get(sourceData, ref.path);
2796
+ var value = radash.get(sourceData, ref.path);
2797
2797
  baseResult = sift(query)(value);
2798
2798
  }
2799
2799
  // AND condition