mastracode 0.22.2-alpha.0 → 0.22.2

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.
@@ -9,7 +9,6 @@ var openaiCompatible = require('@ai-sdk/openai-compatible');
9
9
  var schemaCompat = require('@mastra/schema-compat');
10
10
  var openai = require('@ai-sdk/openai');
11
11
  var llm = require('@mastra/core/llm');
12
- var child_process = require('child_process');
13
12
  var crypto = require('crypto');
14
13
  var promises = require('fs/promises');
15
14
  var os = require('os');
@@ -1285,7 +1284,14 @@ function getDynamicModel({ requestContext }) {
1285
1284
  const thinkingLevel = harnessContext?.state?.thinkingLevel;
1286
1285
  return resolveModel(modelId, { thinkingLevel, requestContext });
1287
1286
  }
1288
- var execFileAsync = util.promisify(child_process.execFile);
1287
+ var _execFileAsync;
1288
+ async function execFileAsync(file, args, options) {
1289
+ if (!_execFileAsync) {
1290
+ const cp = await import('child_process');
1291
+ _execFileAsync = util.promisify(cp.execFile);
1292
+ }
1293
+ return _execFileAsync(file, args, options);
1294
+ }
1289
1295
  var GITHUB_SUBSCRIBE_PR_TAG = "github-subscribe-pr";
1290
1296
  var GITHUB_UNSUBSCRIBE_PR_TAG = "github-unsubscribe-pr";
1291
1297
  var GITHUB_SYNC_STATUS_TAG = "github-sync-status";
@@ -3053,5 +3059,5 @@ exports.setProfileProvider = setProfileProvider;
3053
3059
  exports.theme = theme;
3054
3060
  exports.tintHex = tintHex;
3055
3061
  exports.toCustomProviderModelId = toCustomProviderModelId;
3056
- //# sourceMappingURL=chunk-EAUXUMEB.cjs.map
3057
- //# sourceMappingURL=chunk-EAUXUMEB.cjs.map
3062
+ //# sourceMappingURL=chunk-NFF7IH5X.cjs.map
3063
+ //# sourceMappingURL=chunk-NFF7IH5X.cjs.map