AgentSdkServerInstaller constructor

AgentSdkServerInstaller({
  1. required String sourceDir,
  2. required String installDir,
  3. List<String>? npmCommand,
  4. AgentSdkCommandRunner? runCommand,
})

The Node the install runs with is not a property of the installer but of each install: it is the transport's resolution — the one the server will run on, so npm picks the CLI the SDK will look for — and the transport makes it on its first probe, after this installer exists.

Implementation

AgentSdkServerInstaller({
  required this.sourceDir,
  required this.installDir,
  List<String>? npmCommand,
  AgentSdkCommandRunner? runCommand,
}) : _npmCommand = npmCommand,
     _run = runCommand ?? runAgentSdkCommand;