@agentxjs/runtime 0.1.4 → 0.1.5

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.
package/dist/index.js CHANGED
@@ -1897,7 +1897,6 @@ function buildOptions(context, abortController) {
1897
1897
  env.ANTHROPIC_API_KEY = context.apiKey;
1898
1898
  }
1899
1899
  options.env = env;
1900
- options.executable = process.execPath;
1901
1900
  if (context.model) options.model = context.model;
1902
1901
  if (context.systemPrompt) options.systemPrompt = context.systemPrompt;
1903
1902
  if (context.maxTurns) options.maxTurns = context.maxTurns;
@@ -1905,8 +1904,12 @@ function buildOptions(context, abortController) {
1905
1904
  if (context.resume) options.resume = context.resume;
1906
1905
  if (context.permissionMode) {
1907
1906
  options.permissionMode = context.permissionMode;
1907
+ if (context.permissionMode === "bypassPermissions") {
1908
+ options.allowDangerouslySkipPermissions = true;
1909
+ }
1908
1910
  } else {
1909
1911
  options.permissionMode = "bypassPermissions";
1912
+ options.allowDangerouslySkipPermissions = true;
1910
1913
  }
1911
1914
  return options;
1912
1915
  }