AgentSdkServerInstaller constructor
AgentSdkServerInstaller({
- required String sourceDir,
- required String installDir,
- List<
String> ? npmCommand, - 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;