@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.cjs CHANGED
@@ -1934,7 +1934,6 @@ function buildOptions(context, abortController) {
1934
1934
  env.ANTHROPIC_API_KEY = context.apiKey;
1935
1935
  }
1936
1936
  options.env = env;
1937
- options.executable = process.execPath;
1938
1937
  if (context.model) options.model = context.model;
1939
1938
  if (context.systemPrompt) options.systemPrompt = context.systemPrompt;
1940
1939
  if (context.maxTurns) options.maxTurns = context.maxTurns;
@@ -1942,8 +1941,12 @@ function buildOptions(context, abortController) {
1942
1941
  if (context.resume) options.resume = context.resume;
1943
1942
  if (context.permissionMode) {
1944
1943
  options.permissionMode = context.permissionMode;
1944
+ if (context.permissionMode === "bypassPermissions") {
1945
+ options.allowDangerouslySkipPermissions = true;
1946
+ }
1945
1947
  } else {
1946
1948
  options.permissionMode = "bypassPermissions";
1949
+ options.allowDangerouslySkipPermissions = true;
1947
1950
  }
1948
1951
  return options;
1949
1952
  }