install.ps1
PowerShell downloads and evaluates remote scriptEmbedded PowerShell fetch-and-evaluate
SHA-256ec01fda4aff95b4a190cdf7a82ff31b4367ff28c8914bdb32368d05995a9dd03
MaleculeO(Xe₂)H₇(Cm₇DbFOs₅Po₃Ti)Md(Pa₂)
Evidence
1# Trayambak one-line installer.
2# Run: irm https://skt.sktailabs.in/install.ps1 | iex
3$ErrorActionPreference = "Stop"
4$esc = [char]27
5$cr = [char]13
6
7function Fail($msg) { Write-Error $msg; exit 1 }
8
9# Node.js bootstrap: when no 'node' is on PATH, install Node 20+ LTS first
10# (winget when present, else the official nodejs.org MSI), refresh this
11# session's PATH from the registry, and hand back control. Only the
12# nodejs.org + winget channels are ever touched — no third-party binaries.
13function Install-NodeLTS {
14 $arch = "x64"
15 if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { $arch = "arm64" }
16 $winget = Get-Command winget -ErrorAction SilentlyContinue
17 if ($winget) {
18 Write-Output "installing Node.js LTS via winget…"
19 winget install --id OpenJS.NodeJS.LTS -e --source winget --silent --accept-package-agreements --accept-source-agreements
20 if ($LASTEXITCODE …
20:54… install Node.js (exit $LASTEXITCODE) — install Node 20+ from https://nodejs.org, then re-run this command." }
21 } else {
22 Write-Output "winget not found — downloading Node.js LTS from nodejs.org…"
23 $wc = New-Object System.Net.WebClient
24 try {
25 $listing = $wc.DownloadString("https://nodejs.org/dist/latest-v22.x/")
26 } catch {
27 Fail "could not reach nodejs.org ($($_.Exception.Message)) — install Node 20+ from https://nodejs.org, then re-run this command."
28 }
29 $m = [regex]::Match($listing, "node-v([0-9]+.[0-9]+.[0-9]+)-win-" + $arch + ".msi")
30 if (-not $m.Success) { Fail "could not find a Node.js installer for win-$arch — install Node 20+ from https://nodejs.org, then re-run this command." }
31 $nodeVer = $m.Groups[1].Value
32 $msi = Join-Path $env:TEMP ("node-v" + $nodeVer + "-win-" + $arch + ".msi")
33 Write-Output ("downloading Node.js " + $nodeVer + "…")
34 $wc.DownloadFile("https://nodejs.org/dist/v" + $nodeVer + "/node-v" + $nodeVer + "-win-" + $arch + ".msi", $msi)
35 Write-Output "installing Node.js (approve the admin prompt if one appears)…"
36 Start-Process -FilePath "msiexec.exe" -ArgumentList @("/i", $msi, "/qn", "/norestart") -Wait
37 Remove-Item $msi -ErrorAction SilentlyContinue
38 }
39 $regPath = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User")
40 $env:PATH = $regPath
41}
42
43# Full-page clear, then the banner shimmers in: a silver-white wave sweeps
44# across the name (steel shadows, bright …
53:50… ]
54 }
55 Write-Host ("$cr " + $line + "$esc[0m ") -NoNewline
56 Start-Sleep -Milliseconds 130
57}
58Write-Host ""
59
60# The third eye opens in stages: shut, stirring, half-open, blazing.
61$eyes = @('( - )', '( o )', '( O )', '( ( …
65:45… eyes[$n] + "$esc[0m opening the third eye… ") -NoNewline
66 Start-Sleep -Milliseconds 300
67}
68Write-Host ""
69Write-Host (" $esc[38;5;196m( ◉ )$esc[0m $esc[3mthree eyes of Shiva is coming$esc[23m")
70Write-Host ""
71Start-Sleep -Milliseconds 500
72
73$nodeV = $null
74try { $nodeV = node --version } catch { $nodeV = $null }
75if (-not $nodeV) {
76 Write-Output "node not found — …
89:24… '◯', '◎')
90$width = 24
91$installDone = $false
92try {
93 $job = Start-Job -ScriptBlock { npm install -g @skt-ai-labs/trayambak-cli }
94 $t0 = Get-Date
95 $i = 0
96 while ($job.State -eq 'Running') {
97 $ …