diff --git a/scripts/lib/install-targets.ps1 b/scripts/lib/install-targets.ps1 index b3080d9..8d291d9 100644 --- a/scripts/lib/install-targets.ps1 +++ b/scripts/lib/install-targets.ps1 @@ -29,7 +29,7 @@ function Get-InstallDestinations { } function Get-InstallTargets { param([Parameter(Mandatory=$true)][string]$Generated,[Parameter(Mandatory=$true)][string]$HomePath,[Parameter(Mandatory=$true)][string]$Shell,[ValidateSet('Codex','Claude','Both')][Parameter(Mandatory=$true)][string]$Client) - $targets=@(); if($Client -in @('Codex','Both')){$targets+=@{Source=(Join-Path $Generated "codex-$($Shell.ToLowerInvariant())");Destination=(Join-Path $HomePath '.codex')};$targets+=@{Source=(Join-Path $Generated "codex-$($Shell.ToLowerInvariant())/skills");Destination=(Join-Path $HomePath '.agents/skills')}}; if($Client -in @('Claude','Both')){$targets+=@{Source=(Join-Path $Generated "claude-$($Shell.ToLowerInvariant())");Destination=(Join-Path $HomePath '.claude')};}; return $targets + $targets=@(); if($Client -in @('Codex','Both')){$targets+=@{Source=(Join-Path $Generated "codex-$($Shell.ToLowerInvariant())/skills");Destination=(Join-Path $HomePath '.agents/skills')};$targets+=@{Source=(Join-Path $Generated "codex-$($Shell.ToLowerInvariant())");Destination=(Join-Path $HomePath '.codex')}}; if($Client -in @('Claude','Both')){$targets+=@{Source=(Join-Path $Generated "claude-$($Shell.ToLowerInvariant())");Destination=(Join-Path $HomePath '.claude')};}; return $targets } function Test-AnyManifestPresent { param([Parameter(Mandatory=$true)][string[]]$Destinations); return [bool](@($Destinations|Where-Object{Test-Path(Get-ManagedManifestPath $_)}).Count) } function Test-AllManifestsPresent { param([Parameter(Mandatory=$true)][string[]]$Destinations); return [bool](@($Destinations|Where-Object{-not(Test-Path(Get-ManagedManifestPath $_))}).Count -eq 0) } diff --git a/scripts/lib/install-targets.sh b/scripts/lib/install-targets.sh index ecfb7db..3122fd2 100644 --- a/scripts/lib/install-targets.sh +++ b/scripts/lib/install-targets.sh @@ -63,8 +63,8 @@ get_install_targets() { local generated=$1 home_path=$2 shell=$3 client=$4 case "$client" in codex|both) - printf '%s/codex-%s|%s/.codex\n' "$generated" "$shell" "$home_path" printf '%s/codex-%s/skills|%s/.agents/skills\n' "$generated" "$shell" "$home_path" + printf '%s/codex-%s|%s/.codex\n' "$generated" "$shell" "$home_path" ;; esac case "$client" in claude|both) printf '%s/claude-%s|%s/.claude\n' "$generated" "$shell" "$home_path" ;; esac