From 0348b3a283d3dda0daa438b34c7ee3b9a0019a3e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 23 Oct 2026 12:06:38 +0200 Subject: [PATCH] Delete the Raven launchers and the /smoke client Raven scheduled-task installer, launchers, restart shims and the smoke client (GET /smoke on 10.77.0.4) leave main under the Loud Rebuild Contract (motion-pipeline:ruling:vili-moves-to-yggdrasil-now). Co-Authored-By: Claude Opus 5.5 --- scripts/health-vili-daemon.cmd | 2 -- scripts/install-vili-task.ps1 | 19 -------------- scripts/restart-vili-daemon.cmd | 2 -- scripts/restart-vili-daemon.ps1 | 38 ---------------------------- scripts/run-hidden-powershell.vbs | 20 --------------- scripts/run-vili-daemon.ps1 | 17 ------------- scripts/smoke-vili.mjs | 36 -------------------------- scripts/start-vili-daemon.ps1 | 42 ------------------------------- 8 files changed, 176 deletions(-) delete mode 100644 scripts/health-vili-daemon.cmd delete mode 100644 scripts/install-vili-task.ps1 delete mode 100644 scripts/restart-vili-daemon.cmd delete mode 100644 scripts/restart-vili-daemon.ps1 delete mode 100644 scripts/run-hidden-powershell.vbs delete mode 100644 scripts/run-vili-daemon.ps1 delete mode 100644 scripts/smoke-vili.mjs delete mode 100644 scripts/start-vili-daemon.ps1 diff --git a/scripts/health-vili-daemon.cmd b/scripts/health-vili-daemon.cmd deleted file mode 100644 index 25d8362..0000000 --- a/scripts/health-vili-daemon.cmd +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -node "%~dp0vili-daemon.mjs" --health --host 127.0.0.1 --port 8824 --state-root "%~dp0..\.vili" diff --git a/scripts/install-vili-task.ps1 b/scripts/install-vili-task.ps1 deleted file mode 100644 index f00b14a..0000000 --- a/scripts/install-vili-task.ps1 +++ /dev/null @@ -1,19 +0,0 @@ -param( - [string]$TaskName = "GameCult\Vili", - [int]$Port = 8824, - [string]$HostName = "0.0.0.0", - [string]$StateRoot = "E:\Projects\Vili\.vili" -) - -$ErrorActionPreference = "Stop" -$ProgressPreference = "SilentlyContinue" -$HiddenLauncher = Join-Path $PSScriptRoot "run-hidden-powershell.vbs" -$RunScript = Join-Path $PSScriptRoot "start-vili-daemon.ps1" -$Action = New-ScheduledTaskAction -Execute "wscript.exe" -Argument "//B //nologo `"$HiddenLauncher`" -NoProfile -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$RunScript`" -Port $Port -HostName `"$HostName`" -StateRoot `"$StateRoot`"" -$Trigger = New-ScheduledTaskTrigger -AtStartup -$UserId = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name -$Principal = New-ScheduledTaskPrincipal -UserId $UserId -LogonType Interactive -RunLevel Limited -$Settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -ExecutionTimeLimit ([TimeSpan]::Zero) -MultipleInstances IgnoreNew -Hidden - -Register-ScheduledTask -TaskName $TaskName -Action $Action -Trigger $Trigger -Principal $Principal -Settings $Settings -Force | Out-Null -Write-Host "Installed scheduled task $TaskName" diff --git a/scripts/restart-vili-daemon.cmd b/scripts/restart-vili-daemon.cmd deleted file mode 100644 index 3c9c694..0000000 --- a/scripts/restart-vili-daemon.cmd +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "%~dp0restart-vili-daemon.ps1" %* diff --git a/scripts/restart-vili-daemon.ps1 b/scripts/restart-vili-daemon.ps1 deleted file mode 100644 index e935d12..0000000 --- a/scripts/restart-vili-daemon.ps1 +++ /dev/null @@ -1,38 +0,0 @@ -param( - [int]$Port = 8824, - [string]$HostName = "0.0.0.0", - [string]$StateRoot = "E:\Projects\Vili\.vili" -) - -$ErrorActionPreference = "Stop" -$ProgressPreference = "SilentlyContinue" -$PidPath = Join-Path $StateRoot "vili-daemon.pid" -$TaskName = "GameCult\Vili" - -if (Test-Path $PidPath) { - $existingPid = (Get-Content $PidPath -ErrorAction SilentlyContinue | Select-Object -First 1) - if ($existingPid) { - $process = Get-Process -Id ([int]$existingPid) -ErrorAction SilentlyContinue - if ($process) { - Stop-Process -Id $process.Id -Force - Start-Sleep -Seconds 1 - } - } -} - -if (Get-ScheduledTask -TaskName "Vili" -TaskPath "\GameCult\" -ErrorAction SilentlyContinue) { - Stop-ScheduledTask -TaskName "Vili" -TaskPath "\GameCult\" -ErrorAction SilentlyContinue - Start-Sleep -Seconds 1 - Start-ScheduledTask -TaskName "Vili" -TaskPath "\GameCult\" - Start-Sleep -Seconds 3 - node (Join-Path (Split-Path -Parent $PSScriptRoot) "scripts\vili-daemon.mjs") --health --host 127.0.0.1 --port $Port --state-root $StateRoot - if ($LASTEXITCODE -ne 0) { - throw "Vili scheduled task started but health check failed." - } - Write-Host "Vili restarted through scheduled task $TaskName" -} else { - & (Join-Path $PSScriptRoot "start-vili-daemon.ps1") ` - -Port $Port ` - -HostName $HostName ` - -StateRoot $StateRoot -} diff --git a/scripts/run-hidden-powershell.vbs b/scripts/run-hidden-powershell.vbs deleted file mode 100644 index 2a4d85b..0000000 --- a/scripts/run-hidden-powershell.vbs +++ /dev/null @@ -1,20 +0,0 @@ -Option Explicit - -Dim shell -Dim command -Dim i -Dim exitCode - -Set shell = CreateObject("WScript.Shell") -command = QuoteArg(shell.ExpandEnvironmentStrings("%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe")) - -For i = 0 To WScript.Arguments.Count - 1 - command = command & " " & QuoteArg(CStr(WScript.Arguments(i))) -Next - -exitCode = shell.Run(command, 0, True) -WScript.Quit exitCode - -Function QuoteArg(value) - QuoteArg = """" & Replace(value, """", """""") & """" -End Function diff --git a/scripts/run-vili-daemon.ps1 b/scripts/run-vili-daemon.ps1 deleted file mode 100644 index 0e10cba..0000000 --- a/scripts/run-vili-daemon.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -param( - [int]$Port = 8824, - [string]$HostName = "0.0.0.0", - [string]$StateRoot = "E:\Projects\Vili\.vili" -) - -$ErrorActionPreference = "Stop" -$Root = Split-Path -Parent $PSScriptRoot -$Node = (Get-Command node -ErrorAction Stop).Source -$LogDir = Join-Path $StateRoot "logs" -$OutLog = Join-Path $LogDir "vili-daemon.out.log" -$ErrLog = Join-Path $LogDir "vili-daemon.err.log" - -New-Item -ItemType Directory -Force -Path $LogDir | Out-Null - -Set-Location $Root -& $Node (Join-Path $Root "scripts\vili-daemon.mjs") --host $HostName --port $Port --state-root $StateRoot 1>> $OutLog 2>> $ErrLog diff --git a/scripts/smoke-vili.mjs b/scripts/smoke-vili.mjs deleted file mode 100644 index 30cc401..0000000 --- a/scripts/smoke-vili.mjs +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env node -const baseUrl = process.env.VILI_URL || process.argv[2] || "http://10.77.0.4:8824"; - -async function get(path) { - const response = await fetch(`${baseUrl}${path}`); - const text = await response.text(); - let body; - try { - body = JSON.parse(text); - } catch { - body = text; - } - if (!response.ok) { - throw new Error(`${path} returned ${response.status}: ${text.slice(0, 500)}`); - } - return body; -} - -const health = await get("/health"); -const providers = await get("/eve/deck/providers"); -const smoke = await get("/smoke"); - -console.log(JSON.stringify({ - ok: true, - baseUrl, - health: { - service: health.service, - providerId: health.providerId, - backend: health.state?.backend, - }, - providers, - smoke: { - ok: smoke.ok, - backend: smoke.backendStatus, - }, -}, null, 2)); diff --git a/scripts/start-vili-daemon.ps1 b/scripts/start-vili-daemon.ps1 deleted file mode 100644 index 3d49de7..0000000 --- a/scripts/start-vili-daemon.ps1 +++ /dev/null @@ -1,42 +0,0 @@ -param( - [int]$Port = 8824, - [string]$HostName = "0.0.0.0", - [string]$StateRoot = "E:\Projects\Vili\.vili" -) - -$ErrorActionPreference = "Stop" -$Root = Split-Path -Parent $PSScriptRoot -$Node = (Get-Command node -ErrorAction Stop).Source -$LogDir = Join-Path $StateRoot "logs" -$PidPath = Join-Path $StateRoot "vili-daemon.pid" -$OutLog = Join-Path $LogDir "vili-daemon.out.log" -$ErrLog = Join-Path $LogDir "vili-daemon.err.log" - -New-Item -ItemType Directory -Force -Path $LogDir | Out-Null - -if (Test-Path $PidPath) { - $existingPid = (Get-Content $PidPath -ErrorAction SilentlyContinue | Select-Object -First 1) - if ($existingPid -and (Get-Process -Id ([int]$existingPid) -ErrorAction SilentlyContinue)) { - & $Node (Join-Path $Root "scripts\vili-daemon.mjs") --health --host 127.0.0.1 --port $Port --state-root $StateRoot - if ($LASTEXITCODE -eq 0) { - Write-Host "Vili already healthy on port $Port with PID $existingPid" - exit 0 - } - } -} - -$args = @( - (Join-Path $Root "scripts\vili-daemon.mjs"), - "--host", $HostName, - "--port", "$Port", - "--state-root", $StateRoot -) - -$process = Start-Process -FilePath $Node -ArgumentList $args -WorkingDirectory $Root -WindowStyle Hidden -RedirectStandardOutput $OutLog -RedirectStandardError $ErrLog -PassThru -Set-Content -Path $PidPath -Value $process.Id -Start-Sleep -Seconds 2 -& $Node (Join-Path $Root "scripts\vili-daemon.mjs") --health --host 127.0.0.1 --port $Port --state-root $StateRoot -if ($LASTEXITCODE -ne 0) { - throw "Vili did not become healthy. See $ErrLog" -} -Write-Host "Vili started on $HostName`:$Port with PID $($process.Id)"