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:36343/$repo/releases/download" }

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

DEBUG:   20+ $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) {  >>>> $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:36343/$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+  >>>> $channel = if ($env:T3CODE_CHANNEL) { $env:T3CODE_CHANNEL } else { "stable" }

DEBUG:  120+ $channel = if ( >>>> $env:T3CODE_CHANNEL) { $env:T3CODE_CHANNEL } else { "stable" }

DEBUG:  120+ $channel = if ($env:T3CODE_CHANNEL) {  >>>> $env:T3CODE_CHANNEL } else { "stable" }

DEBUG:  121+  >>>> $version = $env:T3CODE_VERSION

DEBUG:  122+ if ( >>>> -not $version) {

DEBUG:  123+    >>>> $tagPattern = switch ($channel) {

DEBUG:  123+   $tagPattern = switch ( >>>> $channel) {

DEBUG:  124+      >>>> "stable" { '^v\d+\.\d+\.\d+$' }

DEBUG:  124+     "stable" {  >>>> '^v\d+\.\d+\.\d+$' }

DEBUG:  125+      >>>> "nightly" { '^v\d+\.\d+\.\d+-nightly\.\d+\.\d+$' }

DEBUG:  126+      >>>> "preview" { '^v\d+\.\d+\.\d+-preview\.\d+\.\d+$' }

DEBUG:  123+   $tagPattern = switch ( >>>> $channel) {

DEBUG:  129+   if ( >>>> $channel -eq "stable") {

DEBUG:  132+      >>>> $release = Invoke-Retrying { Invoke-RestMethod -Uri "http://127.0.0.1:36343/$repo/releases/latest" -Headers @{ "User-Agent" = "t3-install"; "Accept" = "application/json" } }

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

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

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

DEBUG:  132+     $release = Invoke-Retrying  >>>> { Invoke-RestMethod -Uri "http://127.0.0.1:36343/$repo/releases/latest" -Headers @{ "User-Agent" = "t3-install"; "Accept" = "application/json" } }

DEBUG:  132+     $release = Invoke-Retrying {  >>>> Invoke-RestMethod -Uri "http://127.0.0.1:36343/$repo/releases/latest" -Headers @{ "User-Agent" = "t3-install"; "Accept" = "application/json" } }

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 } }

Invoke-RestMethod: /tmp/lead-32913-r1/evidence-capture-3/runs-20261110T115031.344169Z/P11-status-404-R/after/install.ps1:132
Line |
 132 |  … -Retrying { Invoke-RestMethod -Uri "http://127.0.0.1:36343/$repo/rele …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | synthetic HTTP 404 
