Skip to content

Commit 8778c26

Browse files
fix(scripts): honor PowerShell agent and script filters (#1969)
Rename the Normalize-List parameter in create-release-packages.ps1 to avoid conflicting with PowerShell's automatic $input variable. This fixes Windows offline scaffolding when -Agents and -Scripts are passed. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent 41d1f4b commit 8778c26

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/scripts/create-release-packages.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,13 @@ $AllAgents = @('claude', 'gemini', 'copilot', 'cursor-agent', 'qwen', 'opencode'
497497
$AllScripts = @('sh', 'ps')
498498

499499
function Normalize-List {
500-
param([string]$Input)
500+
param([string]$Value)
501501

502-
if ([string]::IsNullOrEmpty($Input)) {
502+
if ([string]::IsNullOrEmpty($Value)) {
503503
return @()
504504
}
505505

506-
$items = $Input -split '[,\s]+' | Where-Object { $_ } | Select-Object -Unique
506+
$items = $Value -split '[,\s]+' | Where-Object { $_ } | Select-Object -Unique
507507
return $items
508508
}
509509

@@ -526,7 +526,7 @@ function Validate-Subset {
526526

527527
# Determine agent list
528528
if (-not [string]::IsNullOrEmpty($Agents)) {
529-
$AgentList = Normalize-List -Input $Agents
529+
$AgentList = Normalize-List -Value $Agents
530530
if (-not (Validate-Subset -Type 'agent' -Allowed $AllAgents -Items $AgentList)) {
531531
exit 1
532532
}
@@ -536,7 +536,7 @@ if (-not [string]::IsNullOrEmpty($Agents)) {
536536

537537
# Determine script list
538538
if (-not [string]::IsNullOrEmpty($Scripts)) {
539-
$ScriptList = Normalize-List -Input $Scripts
539+
$ScriptList = Normalize-List -Value $Scripts
540540
if (-not (Validate-Subset -Type 'script' -Allowed $AllScripts -Items $ScriptList)) {
541541
exit 1
542542
}

0 commit comments

Comments
 (0)