Delete crates/sleipnir-daemon: Sleipnir lives in the Muninn workspace
Sleipnir moved into Muninn with its history (Muninn f4f1f85, operator ruling Q9); the StreamPixels ship that gated this deletion completed 2026-09-29. Removes the crate, its workspace member, its Cargo.lock entries (including vigem-client), the sleipnir:build/sleipnir:start package scripts, and the deploy/restart/start launcher scripts that shipped Odin's sleipnir.exe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
db041ecb4e
commit
d2e9234d79
8 changed files with 0 additions and 3954 deletions
23
Cargo.lock
generated
23
Cargo.lock
generated
|
|
@ -928,20 +928,6 @@ version = "0.4.12"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
||||
|
||||
[[package]]
|
||||
name = "sleipnir-daemon"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"cultcache-rs",
|
||||
"cultmesh-rs",
|
||||
"cultnet-rs",
|
||||
"odin-core",
|
||||
"rmp-serde",
|
||||
"serde_json",
|
||||
"vigem-client",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "socket2"
|
||||
version = "0.5.10"
|
||||
|
|
@ -1037,15 +1023,6 @@ version = "0.9.5"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
||||
|
||||
[[package]]
|
||||
name = "vigem-client"
|
||||
version = "0.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b857e6f99efe1e1eb1e4dfb035de8ae7ec8ec56bd1928edcbd7c6e4427634d52"
|
||||
dependencies = [
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wasi"
|
||||
version = "0.11.1+wasi-snapshot-preview1"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
[workspace]
|
||||
members = [
|
||||
"crates/sleipnir-daemon",
|
||||
"crates/odin-core",
|
||||
"crates/odin-daemon",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
[package]
|
||||
name = "sleipnir-daemon"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
publish.workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "sleipnir"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
cultmesh-rs = { git = "https://github.com/GameCult/CultLib.git", rev = "a8aeddacab7dd4b9e634b4420867ea3b402cb858", package = "cultmesh-rs" }
|
||||
cultnet-rs = { git = "https://github.com/GameCult/CultLib.git", rev = "a8aeddacab7dd4b9e634b4420867ea3b402cb858", package = "cultnet-rs" }
|
||||
cultcache-rs = { git = "https://github.com/GameCult/CultLib.git", rev = "a8aeddacab7dd4b9e634b4420867ea3b402cb858", package = "cultcache-rs" }
|
||||
odin-core = { path = "../odin-core" }
|
||||
rmp-serde = "1.3"
|
||||
serde_json = "1"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
vigem-client = "0.1.4"
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -7,8 +7,6 @@
|
|||
"scripts": {
|
||||
"gjallar:persona": "node scripts/write-gjallar-persona-cc.mjs inspect",
|
||||
"gjallar:persona:write": "node scripts/write-gjallar-persona-cc.mjs write",
|
||||
"sleipnir:build": "cargo build -p sleipnir-daemon",
|
||||
"sleipnir:start": "cargo run -p sleipnir-daemon --",
|
||||
"muninn:build": "cargo build -p muninn-daemon",
|
||||
"muninn:start": "cargo run -p muninn-daemon --",
|
||||
"rust:test": "cargo test --workspace",
|
||||
|
|
|
|||
|
|
@ -1,92 +0,0 @@
|
|||
param(
|
||||
[string] $LocalSleipnirExe = (Join-Path (Split-Path -Parent $PSScriptRoot) "target\release\sleipnir.exe"),
|
||||
[string] $RavenHost = "raven",
|
||||
[string] $RemoteSleipnirExe = "C:\Meta\Odin\Sleipnir\sleipnir.exe",
|
||||
[string] $SshUser = "madman's lullaby",
|
||||
[string] $IdentityFile = "C:\Users\Meta\.ssh\id_ed25519_192_168_1_84",
|
||||
[int] $ConnectTimeoutSeconds = 10
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
if ($env:IDUNN_ACTUATOR -ne "1" -or $env:IDUNN_COMMAND_AUTHORITY -ne "idunn-daemon") {
|
||||
throw "deploy-raven-sleipnir.ps1 is an Idunn actuator body. Deploy by poking Idunn; direct binary copy is not an owned path."
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $LocalSleipnirExe)) {
|
||||
throw "Local Sleipnir release binary not found at $LocalSleipnirExe"
|
||||
}
|
||||
|
||||
function ConvertTo-PowerShellStringLiteral {
|
||||
param([Parameter(Mandatory = $true)] [string] $Value)
|
||||
return "'" + $Value.Replace("'", "''") + "'"
|
||||
}
|
||||
|
||||
function Get-SshTarget {
|
||||
if ([string]::IsNullOrWhiteSpace($SshUser)) {
|
||||
return $RavenHost
|
||||
}
|
||||
return "${SshUser}@${RavenHost}"
|
||||
}
|
||||
|
||||
$sshArgs = @(
|
||||
"-o", "BatchMode=yes",
|
||||
"-o", "ConnectTimeout=$ConnectTimeoutSeconds",
|
||||
"-o", "ConnectionAttempts=1"
|
||||
)
|
||||
if (-not [string]::IsNullOrWhiteSpace($IdentityFile)) {
|
||||
$sshArgs += @("-i", $IdentityFile)
|
||||
}
|
||||
|
||||
$target = Get-SshTarget
|
||||
$remoteNew = "$RemoteSleipnirExe.new"
|
||||
$remoteDir = Split-Path -Parent $RemoteSleipnirExe
|
||||
$remoteNewSftp = $remoteNew.Replace("\", "/")
|
||||
$prepare = @"
|
||||
`$ErrorActionPreference = "Stop"
|
||||
`$ProgressPreference = "SilentlyContinue"
|
||||
New-Item -ItemType Directory -Force -Path $(ConvertTo-PowerShellStringLiteral $remoteDir) | Out-Null
|
||||
Get-CimInstance Win32_Process |
|
||||
Where-Object { `$_.Name -ieq "sleipnir.exe" } |
|
||||
ForEach-Object { taskkill.exe /PID `$_.ProcessId /T /F | Out-Null }
|
||||
Remove-Item -LiteralPath $(ConvertTo-PowerShellStringLiteral $remoteNew) -Force -ErrorAction SilentlyContinue
|
||||
exit 0
|
||||
"@
|
||||
$encodedPrepare = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($prepare))
|
||||
& ssh.exe @sshArgs $target "powershell.exe -NoProfile -ExecutionPolicy Bypass -EncodedCommand $encodedPrepare"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
$sftpBatch = New-TemporaryFile
|
||||
try {
|
||||
$sftpLines = @(
|
||||
"put `"$LocalSleipnirExe`" `"$remoteNewSftp`""
|
||||
)
|
||||
Set-Content -LiteralPath $sftpBatch.FullName -Value $sftpLines -Encoding ASCII
|
||||
& sftp.exe @sshArgs -b $sftpBatch.FullName $target
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
} finally {
|
||||
Remove-Item -LiteralPath $sftpBatch.FullName -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
$install = @"
|
||||
`$ErrorActionPreference = "Stop"
|
||||
`$ProgressPreference = "SilentlyContinue"
|
||||
if (Test-Path -LiteralPath $(ConvertTo-PowerShellStringLiteral $RemoteSleipnirExe)) {
|
||||
Remove-Item -LiteralPath $(ConvertTo-PowerShellStringLiteral $RemoteSleipnirExe) -Force
|
||||
}
|
||||
Move-Item -LiteralPath $(ConvertTo-PowerShellStringLiteral $remoteNew) -Destination $(ConvertTo-PowerShellStringLiteral $RemoteSleipnirExe) -Force
|
||||
exit 0
|
||||
"@
|
||||
$encodedInstall = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($install))
|
||||
& ssh.exe @sshArgs $target "powershell.exe -NoProfile -ExecutionPolicy Bypass -EncodedCommand $encodedInstall"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
& "$PSScriptRoot\restart-raven-sleipnir.ps1" -RavenHost $RavenHost -SleipnirExe $RemoteSleipnirExe -SshUser $SshUser -IdentityFile $IdentityFile -ConnectTimeoutSeconds $ConnectTimeoutSeconds
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
|
@ -1,155 +0,0 @@
|
|||
param(
|
||||
[string] $RavenHost = "raven",
|
||||
[string] $SleipnirExe = "C:\Meta\Odin\Sleipnir\sleipnir.exe",
|
||||
[string] $StorePath = "C:\Meta\Odin\state\raven.sleipnir.cc",
|
||||
[string] $LogRoot = "C:\Meta\Odin\logs\Sleipnir",
|
||||
[string] $HostId = "raven",
|
||||
[string] $OdinCultMeshUri = $(if ($env:ODIN_CULTMESH_URI) { $env:ODIN_CULTMESH_URI } else { "cultmesh://odin/rendezvous/provider-catalog" }),
|
||||
[string] $RudpBind = "0.0.0.0:17890",
|
||||
[string] $CommandRoute = $(if ($env:SLEIPNIR_COMMAND_ROUTE) { $env:SLEIPNIR_COMMAND_ROUTE } else { "cultmesh://odin/command/sleipnir/input_mapping" }),
|
||||
[string] $IdunnRudpHealth = $env:IDUNN_RUDP_HEALTH,
|
||||
[string] $IdunnDaemon = "raven-sleipnir",
|
||||
[string] $IdunnHealthContract = "sleipnir.cultnet-rudp-input-mirror-health",
|
||||
[string] $IntervalMs = "8",
|
||||
[string] $SshUser = "madman's lullaby",
|
||||
[string] $IdentityFile = "C:\Users\Meta\.ssh\id_ed25519_192_168_1_84",
|
||||
[int] $ConnectTimeoutSeconds = 10
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
if ($env:IDUNN_ACTUATOR -ne "1" -or $env:IDUNN_COMMAND_AUTHORITY -ne "idunn-daemon") {
|
||||
throw "restart-raven-sleipnir.ps1 is an Idunn actuator body. Redeploy by poking Idunn; direct service restart is not an owned path."
|
||||
}
|
||||
if ([string]::IsNullOrWhiteSpace($OdinCultMeshUri) -or -not $OdinCultMeshUri.StartsWith("cultmesh://", [System.StringComparison]::OrdinalIgnoreCase)) {
|
||||
throw "Sleipnir Odin publication requires -OdinCultMeshUri or ODIN_CULTMESH_URI and must be a cultmesh:// URI."
|
||||
}
|
||||
if ([string]::IsNullOrWhiteSpace($CommandRoute) -or -not $CommandRoute.StartsWith("cultmesh://")) {
|
||||
throw "Sleipnir command route must be a cultmesh:// URI supplied by -CommandRoute or SLEIPNIR_COMMAND_ROUTE."
|
||||
}
|
||||
if ([string]::IsNullOrWhiteSpace($IdunnRudpHealth)) {
|
||||
throw "Sleipnir Idunn health endpoint requires -IdunnRudpHealth or IDUNN_RUDP_HEALTH; no Starfire LAN default is allowed."
|
||||
}
|
||||
|
||||
function ConvertTo-PowerShellStringLiteral {
|
||||
param([Parameter(Mandatory = $true)] [string] $Value)
|
||||
return "'" + $Value.Replace("'", "''") + "'"
|
||||
}
|
||||
|
||||
function Get-SshTarget {
|
||||
if ([string]::IsNullOrWhiteSpace($SshUser)) {
|
||||
return $RavenHost
|
||||
}
|
||||
return "${SshUser}@${RavenHost}"
|
||||
}
|
||||
|
||||
$sshArgs = @(
|
||||
"-o", "BatchMode=yes",
|
||||
"-o", "ConnectTimeout=$ConnectTimeoutSeconds",
|
||||
"-o", "ConnectionAttempts=1"
|
||||
)
|
||||
if (-not [string]::IsNullOrWhiteSpace($IdentityFile)) {
|
||||
$sshArgs += @("-i", $IdentityFile)
|
||||
}
|
||||
|
||||
$argPairs = @(
|
||||
@("--store", $StorePath),
|
||||
@("--host", $HostId),
|
||||
@("--odin-cultmesh-uri", $OdinCultMeshUri),
|
||||
@("--rudp-bind", $RudpBind),
|
||||
@("--command-route", $CommandRoute),
|
||||
@("--idunn-rudp-health", $IdunnRudpHealth),
|
||||
@("--idunn-daemon", $IdunnDaemon),
|
||||
@("--idunn-health-contract", $IdunnHealthContract),
|
||||
@("--interval-ms", $IntervalMs)
|
||||
)
|
||||
$flatArgumentLiterals = @()
|
||||
foreach ($pair in $argPairs) {
|
||||
$flatArgumentLiterals += ConvertTo-PowerShellStringLiteral $pair[0]
|
||||
$flatArgumentLiterals += ConvertTo-PowerShellStringLiteral $pair[1]
|
||||
}
|
||||
if ($env:SLEIPNIR_TRACE -eq "1") {
|
||||
$flatArgumentLiterals += ConvertTo-PowerShellStringLiteral "--trace"
|
||||
}
|
||||
$argumentLiteral = "@(" + ($flatArgumentLiterals -join ", ") + ")"
|
||||
|
||||
$remote = @"
|
||||
`$ErrorActionPreference = "Stop"
|
||||
`$ProgressPreference = "SilentlyContinue"
|
||||
`$PSDefaultParameterValues["*:ProgressAction"] = "SilentlyContinue"
|
||||
if (-not (Test-Path -LiteralPath $(ConvertTo-PowerShellStringLiteral $SleipnirExe))) {
|
||||
throw "Sleipnir executable not found at $SleipnirExe"
|
||||
}
|
||||
Get-CimInstance Win32_Process |
|
||||
Where-Object { `$_.Name -ieq "sleipnir.exe" -and `$_.CommandLine -like "*--store*$StorePath*" } |
|
||||
ForEach-Object { taskkill.exe /PID `$_.ProcessId /T /F | Out-Null }
|
||||
New-Item -ItemType Directory -Force -Path $(ConvertTo-PowerShellStringLiteral $LogRoot) | Out-Null
|
||||
`$storeParent = Split-Path -Parent $(ConvertTo-PowerShellStringLiteral $StorePath)
|
||||
if (-not [string]::IsNullOrWhiteSpace(`$storeParent)) {
|
||||
New-Item -ItemType Directory -Force -Path `$storeParent | Out-Null
|
||||
}
|
||||
`$taskName = "Odin-Sleipnir-Raven"
|
||||
`$arguments = $argumentLiteral
|
||||
`$outLog = Join-Path $(ConvertTo-PowerShellStringLiteral $LogRoot) "sleipnir.out.log"
|
||||
`$errLog = Join-Path $(ConvertTo-PowerShellStringLiteral $LogRoot) "sleipnir.err.log"
|
||||
function Quote-RemotePowerShellString([string] `$Value) {
|
||||
return "'" + `$Value.Replace("'", "''") + "'"
|
||||
}
|
||||
`$child = @'
|
||||
`$ErrorActionPreference = "Continue"
|
||||
`$ProgressPreference = "SilentlyContinue"
|
||||
& __SLEIPNIR_EXE__ __SLEIPNIR_ARGS__ 1>> __OUT_LOG__ 2>> __ERR_LOG__
|
||||
'@
|
||||
`$child = `$child.Replace("__SLEIPNIR_EXE__", $(ConvertTo-PowerShellStringLiteral $SleipnirExe))
|
||||
`$child = `$child.Replace("__SLEIPNIR_ARGS__", (`$arguments | ForEach-Object { "'" + `$_.Replace("'", "''") + "'" }) -join " ")
|
||||
`$child = `$child.Replace("__OUT_LOG__", (Quote-RemotePowerShellString `$outLog))
|
||||
`$child = `$child.Replace("__ERR_LOG__", (Quote-RemotePowerShellString `$errLog))
|
||||
`$encodedChild = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes(`$child))
|
||||
`$action = New-ScheduledTaskAction -Execute "`$env:WINDIR\System32\WindowsPowerShell\v1.0\powershell.exe" -Argument "-NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -EncodedCommand `$encodedChild"
|
||||
`$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(5)
|
||||
`$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -ExecutionTimeLimit ([TimeSpan]::Zero)
|
||||
Register-ScheduledTask -TaskName `$taskName -Action `$action -Trigger `$trigger -Settings `$settings -Force | Out-Null
|
||||
Remove-Item -LiteralPath `$outLog -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -LiteralPath `$errLog -Force -ErrorAction SilentlyContinue
|
||||
Start-ScheduledTask -TaskName `$taskName
|
||||
Start-Sleep -Seconds 5
|
||||
`$running = Get-CimInstance Win32_Process | Where-Object { `$_.Name -ieq "sleipnir.exe" -and `$_.CommandLine -like "*--store*$StorePath*" } | Select-Object -First 1
|
||||
if (`$null -eq `$running) {
|
||||
`$errorText = if (Test-Path -LiteralPath `$errLog) { Get-Content -LiteralPath `$errLog -Raw } else { "" }
|
||||
throw "Sleipnir did not stay running. `$errorText"
|
||||
}
|
||||
"Sleipnir Raven restarted under scheduled task `$taskName pid=`$(`$running.ProcessId)"
|
||||
"@
|
||||
|
||||
$target = Get-SshTarget
|
||||
$remoteScript = "$SleipnirExe.idunn-restart.ps1"
|
||||
$remoteScriptSftp = $remoteScript.Replace("\", "/")
|
||||
$localScript = New-TemporaryFile
|
||||
$sftpBatch = New-TemporaryFile
|
||||
try {
|
||||
Set-Content -LiteralPath $localScript.FullName -Value $remote -Encoding ASCII
|
||||
Set-Content -LiteralPath $sftpBatch.FullName -Value @("put `"$($localScript.FullName)`" `"$remoteScriptSftp`"") -Encoding ASCII
|
||||
& sftp.exe @sshArgs -b $sftpBatch.FullName $target
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
$invoke = @"
|
||||
`$ErrorActionPreference = "Stop"
|
||||
try {
|
||||
& $(ConvertTo-PowerShellStringLiteral $remoteScript) 3>`$null
|
||||
`$code = if (`$null -eq `$LASTEXITCODE) { 0 } else { `$LASTEXITCODE }
|
||||
} finally {
|
||||
Remove-Item -LiteralPath $(ConvertTo-PowerShellStringLiteral $remoteScript) -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
exit `$code
|
||||
"@
|
||||
$encodedInvoke = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($invoke))
|
||||
& ssh.exe @sshArgs $target "powershell.exe -NoProfile -ExecutionPolicy Bypass -EncodedCommand $encodedInvoke"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
} finally {
|
||||
Remove-Item -LiteralPath $localScript.FullName -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -LiteralPath $sftpBatch.FullName -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
throw "start-starfire-sleipnir.ps1 archived: Sleipnir lifecycle is Idunn-owned and service discovery is Odin/CultMesh-owned. Add a typed Idunn daemon target and redeploy by poking Idunn; do not start Sleipnir through a direct local launcher."
|
||||
Loading…
Reference in a new issue