Conjure.Executor.Local (Conjure v0.1.1-alpha)
View SourceLocal execution backend using System.cmd.
Security Warning
This executor provides NO SANDBOXING. Commands and file operations execute with the same permissions as the BEAM process.
DO NOT USE IN PRODUCTION unless you fully trust all loaded skills and accept the security implications.
For production deployments, use Conjure.Executor.Docker or implement
a custom executor with appropriate isolation.
Usage
context = Conjure.ExecutionContext.new(
working_directory: "/tmp/my-project",
allowed_paths: ["/tmp/my-project"]
)
{:ok, context} = Conjure.Executor.Local.init(context)
{:ok, output} = Conjure.Executor.Local.bash("ls -la", context)