DEBUG:    2+  >>>> & $env:CAPTURE_SCRIPT

DEBUG:   16+  >>>> $ErrorActionPreference = "Stop"

DEBUG:   17+  >>>> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

DEBUG:   19+  >>>> $repo = "pingdotgg/t3code"

DEBUG:   20+  >>>> $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) { $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:35171/$repo/releases/download" }

DEBUG:   20+ $baseUrl = if ( >>>> $env:T3CODE_RELEASE_BASE_URL) { $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:35171/$repo/releases/download" }

DEBUG:   20+ $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) {  >>>> $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:35171/$repo/releases/download" }

DEBUG:   21+  >>>> $t3Home = if ($env:T3CODE_HOME) { $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   21+ $t3Home = if ( >>>> $env:T3CODE_HOME) { $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   21+ $t3Home = if ($env:T3CODE_HOME) {  >>>> $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   22+  >>>> $binDir = if ($env:T3CODE_INSTALL_BIN_DIR) { $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   22+ $binDir = if ( >>>> $env:T3CODE_INSTALL_BIN_DIR) { $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   22+ $binDir = if ($env:T3CODE_INSTALL_BIN_DIR) {  >>>> $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   24+  >>>> $binDir = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($binDir)

DEBUG:   31+  >>>> $terminal = -not [Console]::IsErrorRedirected -and $env:TERM -ne "dumb"

DEBUG:   32+  >>>> $interactive = $terminal -and $Host.UI.SupportsVirtualTerminal

DEBUG:   33+ if ( >>>> $interactive) {

DEBUG:   39+  >>>> $esc = [char]27

DEBUG:   40+  >>>> $reset = $bold = $muted = $accent = $green = ""

DEBUG:   40+ $reset =  >>>> $bold = $muted = $accent = $green = ""

DEBUG:   40+ $reset = $bold =  >>>> $muted = $accent = $green = ""

DEBUG:   40+ $reset = $bold = $muted =  >>>> $accent = $green = ""

DEBUG:   40+ $reset = $bold = $muted = $accent =  >>>> $green = ""

DEBUG:   41+ if ( >>>> $interactive -and -not $env:NO_COLOR) {

DEBUG:  120+  >>>> $version="1.2.3"; $arch="x64"; $staging=$env:CAPTURE_STAGING; $archive="t3-1.2.3-win32-x64.zip"

DEBUG:  120+ $version="1.2.3";  >>>> $arch="x64"; $staging=$env:CAPTURE_STAGING; $archive="t3-1.2.3-win32-x64.zip"

DEBUG:  120+ $version="1.2.3"; $arch="x64";  >>>> $staging=$env:CAPTURE_STAGING; $archive="t3-1.2.3-win32-x64.zip"

DEBUG:  120+ $version="1.2.3"; $arch="x64"; $staging=$env:CAPTURE_STAGING;  >>>> $archive="t3-1.2.3-win32-x64.zip"

DEBUG:  121+  >>>> New-Item -ItemType Directory -Force -Path $staging | Out-Null

DEBUG:  123+        >>>> Fetch "$baseUrl/v$version/SHA256SUMS" (Join-Path $staging "SHA256SUMS")

DEBUG:   80+ function Fetch([string] $uri, [string] $destination, [switch] $progress)  >>>> {

DEBUG:   81+   if ( >>>> -not $progress -or -not $interactive) {

DEBUG:   82+      >>>> $ProgressPreference = if ($progress -and $terminal) { "Continue" } else { "SilentlyContinue" }

DEBUG:   82+     $ProgressPreference = if ( >>>> $progress -and $terminal) { "Continue" } else { "SilentlyContinue" }

DEBUG:   82+     $ProgressPreference = if ($progress -and $terminal) { "Continue" } else {  >>>> "SilentlyContinue" }

DEBUG:   83+      >>>> Invoke-Retrying { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   74+ function Invoke-Retrying([scriptblock] $request)  >>>> {

DEBUG:   75+   for ( >>>> $attempt = 1; ; $attempt++) {

DEBUG:   76+     try { return  >>>> & $request }

DEBUG:   83+     Invoke-Retrying  >>>> { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   83+     Invoke-Retrying {  >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   77+     catch { if ( >>>> -not (Wait-Retry ([int]$_.Exception.Response.StatusCode) $attempt)) { throw } }

DEBUG:   69+ function Wait-Retry([int] $status, [int] $attempt)  >>>> {

DEBUG:   70+   if ( >>>> $attempt -ge 4 -or ($status -ge 400 -and $status -lt 500 -and $status -ne 408 -and $status -ne 429)) { return $false }

DEBUG:   71+    >>>> Start-Sleep -Seconds ([Math]::Pow(2, $attempt - 1))

DEBUG:   72+   return  >>>> $true

DEBUG:   73+  >>>> }

DEBUG:   75+   for ($attempt = 1; ;  >>>> $attempt++) {

DEBUG:   76+     try { return  >>>> & $request }

DEBUG:   83+     Invoke-Retrying  >>>> { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   83+     Invoke-Retrying {  >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }

DEBUG:   77+     catch { if ( >>>> -not (Wait-Retry ([int]$_.Exception.Response.StatusCode) $attempt)) { throw } }

DEBUG:   69+ function Wait-Retry([int] $status, [int] $attempt)  >>>> {

DEBUG:   70+   if ( >>>> $attempt -ge 4 -or ($status -ge 400 -and $status -lt 500 -and $status -ne 408 -and $status -ne 429)) { return $false }

DEBUG:   70+   if ($attempt -ge 4 -or ($status -ge 400 -and $status -lt 500 -and $status -ne 408 -and $status -ne 429)) { return  >>>> $false }

DEBUG:   73+  >>>> }

DEBUG:   77+     catch { if (-not (Wait-Retry ([int]$_.Exception.Response.StatusCode) $attempt)) {  >>>> throw } }

DEBUG:  125+        >>>> $status = $_.Exception.Response.StatusCode.value__

DEBUG:  126+       if ( >>>> $status -eq 404) {

DEBUG:  127+          >>>> Fail "t3 $version has no release archive for win32-$arch; releases before the self-contained CLI can only be installed with 'npm install -g t3@$version'"

DEBUG:   26+ function Fail([string] $message)  >>>> {

DEBUG:   27+    >>>> Write-Error "t3 install: $message"

Write-Error: /tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P19-checksum-504-404-caller/after/install.ps1:127
Line |
 127 |          Fail "t3 $version has no release archive for win32-$arch; rel …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | t3 install: t3 1.2.3 has no release archive for win32-x64; releases
     | before the self-contained CLI can only be installed with 'npm install -g
     | t3@1.2.3'
