Module runner

Source
Expand description

This module is the orchestrator of the plugin execution.

  1. Initiates connection to shared socket service - shared_socket.rs
  2. Executes the plugin script - script_executor.rs OR pool_executor.rs
  3. Collects traces via ExecutionGuard - shared_socket.rs
  4. Returns the output of the script - script_executor.rs

§Execution Modes

  • Pool mode (default): Uses persistent Piscina worker pool. Faster execution with precompilation and worker reuse.
  • ts-node mode (PLUGIN_USE_POOL=false): Spawns ts-node per request. Simple but slower. Uses the shared socket for bidirectional communication.

Structs§

PluginRunner

Traits§

PluginRunnerTrait