aien-sovereign-core
Autonomous sovereign intelligence engine and runtime core for NVIDIA DGX Spark
Brought by drakestapleton
aien-sovereign-core / install.ps1
| 1 | # AIEN Sovereign Core Universal Windows Installer |
| 2 | # Free and open-source for humanity. Zero telemetry. Zero subscriptions. |
| 3 | |
| 4 | Write-Host "==================================================================" -ForegroundColor Cyan |
| 5 | Write-Host " ⚡ AIEN Sovereign Core: Windows Universal Installer " -ForegroundColor Cyan |
| 6 | Write-Host "==================================================================" -ForegroundColor Cyan |
| 7 | |
| 8 | $ConfigDir = "$env:USERPROFILE\.config\sovereign" |
| 9 | $ImprintDir = "$ConfigDir\imprints\en2" |
| 10 | $BinDir = "$env:USERPROFILE\.local\bin" |
| 11 | |
| 12 | New-Item -ItemType Directory -Force -Path $ConfigDir | Out-Null |
| 13 | New-Item -ItemType Directory -Force -Path $ImprintDir | Out-Null |
| 14 | New-Item -ItemType Directory -Force -Path $BinDir | Out-Null |
| 15 | |
| 16 | $ConfigFile = "$ConfigDir\operator.toml" |
| 17 | if (-Not (Test-Path $ConfigFile)) { |
| 18 | $GitName = git config user.name 2>$null |
| 19 | if (-not $GitName) { $GitName = "Sovereign Operator" } |
| 20 | $GitEmail = git config user.email 2>$null |
| 21 | if (-not $GitEmail) { $GitEmail = "operator@local" } |
| 22 | |
| 23 | $ConfigContent = @" |
| 24 | [operator] |
| 25 | name = "$GitName" |
| 26 | email = "$GitEmail" |
| 27 | handle = "operator" |
| 28 | sign_commits = false |
| 29 | |
| 30 | [engine] |
| 31 | mode = "api" |
| 32 | api_base_url = "http://127.0.0.1:11434/v1" |
| 33 | api_key = "" |
| 34 | model_id = "default" |
| 35 | max_port = 18006 |
| 36 | context_window = 32768 |
| 37 | temperature = 0.7 |
| 38 | "@ |
| 39 | Set-Content -Path $ConfigFile -Value $ConfigContent |
| 40 | Write-Host "[+] Generated default configuration at $ConfigFile" -ForegroundColor Green |
| 41 | } else { |
| 42 | Write-Host "[+] Existing configuration found at $ConfigFile" -ForegroundColor Green |
| 43 | } |
| 44 | |
| 45 | if (Test-Path "imprints\en2-trinity") { |
| 46 | Copy-Item -Recurse -Force "imprints\en2-trinity\*" $ImprintDir |
| 47 | Write-Host "[+] EN2 Trinity Imprint installed locally to $ImprintDir" -ForegroundColor Green |
| 48 | } |
| 49 | |
| 50 | Write-Host "==================================================================" -ForegroundColor Cyan |
| 51 | Write-Host " ✓ Installation complete. Sovereign computing ready." -ForegroundColor Green |
| 52 | Write-Host " - Configuration: $ConfigFile" |
| 53 | Write-Host " - Binaries: $BinDir" |
| 54 | Write-Host " - EN2 Imprint: $ImprintDir" |
| 55 | Write-Host "==================================================================" -ForegroundColor Cyan |