rules for driving agents

This commit is contained in:
Brian Madison
2025-06-15 01:05:56 -05:00
parent 193ed8f11f
commit 6c661adaff
23 changed files with 192 additions and 192 deletions

View File

@@ -222,7 +222,7 @@ class Installer {
switch (action) {
case "update":
return await this.performUpdate(installDir, state.manifest, spinner);
return await this.performUpdate(config, installDir, state.manifest, spinner);
case "reinstall":
return await this.performReinstall(config, installDir, spinner);
case "cancel":
@@ -312,7 +312,7 @@ class Installer {
}
}
async performUpdate(installDir, manifest, spinner) {
async performUpdate(newConfig, installDir, manifest, spinner) {
spinner.start("Checking for updates...");
try {
@@ -364,7 +364,7 @@ class Installer {
installType: manifest.install_type,
agent: manifest.agent,
directory: installDir,
ide: manifest.ide_setup,
ide: newConfig.ide || manifest.ide_setup, // Use new IDE choice if provided
};
await this.performFreshInstall(config, installDir, spinner);