Workspace ownership

The parent retains /work across runs. Children have independent state and files; module grants are explicit. Reset replaces the parent filesystem and both child policies.

Loading worker…

Observed output

Events, files and structured errors


Runtime API

final runtime = await MontyRuntime.start(pool: pool, os: files.call,
  externalModules: {'tools': tools});
final value = await runtime.execute('import tools\ntools.add(2, 3)').result;
await runtime.dispose();
await pool.close();

Runtime code lives in lib/src/runtime/, bridge/, extensions/, host/ and os_call/. Core owns the engine, process pool and worker assets.

Engine examples and compatibility → dart_monty_core