Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,31 @@ try {
}
Write-Ok "Checksum verified"

# --- Install ---
Write-Info "Installing Conductor $tagName…"
uv tool install --force "git+https://github.com/$Repo.git@$tagName" -c $constraintsFile
# --- Install (with retry for Windows Defender file locking) ---
$maxRetries = 3
$installed = $false
for ($attempt = 1; $attempt -le $maxRetries; $attempt++) {
if ($attempt -eq 1) {
Write-Info "Installing Conductor $tagName…"
} else {
Write-Info "Retrying install (attempt $attempt/$maxRetries)…"
Start-Sleep -Seconds 2
}
uv tool install --force "git+https://github.com/$Repo.git@$tagName" -c $constraintsFile 2>$null
if ($LASTEXITCODE -eq 0) {
$installed = $true
break
}
}

if ($LASTEXITCODE -ne 0) {
Write-Err "uv tool install failed with exit code $LASTEXITCODE"
if (-not $installed) {
Write-Host ""
Write-Info "Install failed after $maxRetries attempts. This is often caused by"
Write-Info "Windows Defender scanning files during install. Try:"
Write-Info " 1. Add a Defender exclusion: Add-MpExclusion -Path `"$env:LOCALAPPDATA\uv`""
Write-Info " 2. Re-run this installer"
Write-Host ""
Write-Err "uv tool install failed"
}

Write-Ok "Conductor $tagName installed"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "conductor-cli"
version = "0.1.4"
version = "0.1.5"
description = "A CLI tool for defining and running multi-agent workflows with the GitHub Copilot SDK"
readme = "README.md"
requires-python = ">=3.12"
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading