From 69edd2058c90a2a23d024d5d12738b86efc50292 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Tue, 28 Oct 2025 20:16:10 -0600 Subject: [PATCH] DEV: Simplified VSCode Tasks --- .vscode/tasks.json | 108 ++------------------------------------------- 1 file changed, 3 insertions(+), 105 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 53f3754c..20e3808f 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,7 +2,7 @@ "version": "2.0.0", "tasks": [ { - "label": "Borealis - Server (Production)", + "label": "Borealis - Legacy Server (Production)", "type": "shell", "command": "powershell.exe", "args": [ @@ -17,7 +17,7 @@ "problemMatcher": [] }, { - "label": "Borealis - Server (Dev)", + "label": "Borealis - Legacy Server (Dev)", "type": "shell", "command": "powershell.exe", "args": [ @@ -62,7 +62,7 @@ "problemMatcher": [] }, { - "label": "Borealis - Agent - Deploy", + "label": "Borealis - Agent", "type": "shell", "command": "powershell.exe", "args": [ @@ -76,108 +76,6 @@ }, "problemMatcher": [] }, - { - "label": "Borealis - Agent - Stop SYSTEM & CURRENTUSER Agents", - "type": "shell", - "command": "powershell.exe", - "args": [ - "-NoLogo", - "-NoProfile", - "-ExecutionPolicy", "Bypass", - "-Command", - "& {\n $taskNames = @('Borealis Agent','Borealis Agent (UserHelper)');\n foreach ($name in $taskNames) {\n $taskExists = $false;\n try { Get-ScheduledTask -TaskName $name -ErrorAction Stop | Out-Null; $taskExists = $true } catch {\n try { schtasks.exe /Query /TN $name 2>$null | Out-Null; if ($LASTEXITCODE -eq 0) { $taskExists = $true } } catch {}\n };\n if (-not $taskExists) { continue };\n Write-Host ('Stopping scheduled task: {0}' -f $name);\n try { Stop-ScheduledTask -TaskName $name -ErrorAction SilentlyContinue } catch {}\n try { schtasks.exe /End /TN $name /F 2>$null | Out-Null } catch {}\n try {\n for ($i = 0; $i -lt 20; $i++) {\n $info = Get-ScheduledTaskInfo -TaskName $name -ErrorAction Stop;\n if ($info.State -ne 'Running' -and $info.State -ne 'Queued') { break }\n Start-Sleep -Milliseconds 500\n }\n } catch {}\n };\n foreach ($procName in @('python','pythonw')) {\n try { $procs = Get-Process -Name $procName -ErrorAction Stop } catch { continue };\n foreach ($proc in $procs) {\n Write-Host ('Terminating process: {0} (PID {1})' -f $proc.ProcessName, $proc.Id);\n try { if (-not $proc.HasExited) { $null = $proc.CloseMainWindow(); Start-Sleep -Milliseconds 500 } } catch {}\n try { if (-not $proc.HasExited) { $proc.Kill(); $proc.WaitForExit(2000) | Out-Null } } catch {}\n if (-not $proc.HasExited) {\n $taskkillOutput = taskkill.exe /PID $($proc.Id) /F 2>&1;\n if ($LASTEXITCODE -ne 0 -and $taskkillOutput) {\n Write-Host ('taskkill.exe returned exit code {0} for PID {1}: {2}' -f $LASTEXITCODE, $proc.Id, $taskkillOutput)\n }\n }\n }\n }\n}" - ], - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "Borealis - Agent - Start SYSTEM & CURRENTUSER Agents", - "type": "shell", - "command": "powershell.exe", - "args": [ - "-NoLogo", - "-NoProfile", - "-ExecutionPolicy", "Bypass", - "-Command", - "& {\n $taskNames = @('Borealis Agent','Borealis Agent (UserHelper)');\n foreach ($name in $taskNames) {\n Write-Host ('Starting scheduled task: {0}' -f $name);\n $started = $false;\n try {\n Start-ScheduledTask -TaskName $name -ErrorAction Stop | Out-Null\n $started = $true\n } catch {}\n if (-not $started) {\n try { schtasks.exe /Run /TN $name 2>$null | Out-Null; $started = $true } catch {}\n }\n if (-not $started) {\n Write-Host ('Unable to start scheduled task: {0}' -f $name) -ForegroundColor DarkYellow\n }\n }\n}" - ], - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "Borealis - Clear All Logs", - "type": "shell", - "command": "powershell.exe", - "args": [ - "-NoLogo", - "-NoProfile", - "-ExecutionPolicy", "Bypass", - "-Command", - "& {\n $projectRoot = '${workspaceFolder}';\n $logPath = Join-Path $projectRoot 'Logs';\n if (Test-Path $logPath) {\n Remove-Item -Path $logPath -Recurse -Force -ErrorAction SilentlyContinue;\n Write-Host ('Removed log directory: {0}' -f $logPath);\n } else {\n Write-Host ('Log directory not found: {0}' -f $logPath);\n }\n}" - ], - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "Borealis - Delete Runtime Server", - "type": "shell", - "command": "powershell.exe", - "args": [ - "-NoLogo", - "-NoProfile", - "-ExecutionPolicy", "Bypass", - "-Command", - "& {\n $projectRoot = '${workspaceFolder}';\n $target = Join-Path $projectRoot 'Server';\n if (Test-Path $target) {\n Remove-Item -Path $target -Recurse -Force -ErrorAction SilentlyContinue;\n Write-Host ('Removed runtime server directory: {0}' -f $target);\n } else {\n Write-Host ('Runtime server directory not found: {0}' -f $target);\n }\n}" - ], - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "Borealis - Delete Runtime Engine", - "type": "shell", - "command": "powershell.exe", - "args": [ - "-NoLogo", - "-NoProfile", - "-ExecutionPolicy", "Bypass", - "-Command", - "& {\n $projectRoot = '${workspaceFolder}';\n $target = Join-Path $projectRoot 'Engine';\n if (Test-Path $target) {\n Remove-Item -Path $target -Recurse -Force -ErrorAction SilentlyContinue;\n Write-Host ('Removed runtime engine directory: {0}' -f $target);\n } else {\n Write-Host ('Runtime engine directory not found: {0}' -f $target);\n }\n}" - ], - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "Borealis - Delete Runtime Agent", - "type": "shell", - "command": "powershell.exe", - "args": [ - "-NoLogo", - "-NoProfile", - "-ExecutionPolicy", "Bypass", - "-Command", - "& {\n $projectRoot = '${workspaceFolder}';\n $target = Join-Path $projectRoot 'Agent';\n if (Test-Path $target) {\n Remove-Item -Path $target -Recurse -Force -ErrorAction SilentlyContinue;\n Write-Host ('Removed runtime agent directory: {0}' -f $target);\n } else {\n Write-Host ('Runtime agent directory not found: {0}' -f $target);\n }\n}" - ], - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, { "label": "Borealis - Kill All Component Processes", "type": "shell",