From 35cc237996564814a14ffa82e1fcbe36e300380c Mon Sep 17 00:00:00 2001 From: chenry-me <94736489+chenry-me@users.noreply.github.com> Date: Wed, 25 Mar 2026 13:41:52 +0800 Subject: [PATCH] fix(scripts): honor PowerShell agent and script filters 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 --- .github/workflows/scripts/create-release-packages.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/scripts/create-release-packages.ps1 b/.github/workflows/scripts/create-release-packages.ps1 index 8f3cfec36..6fea7e540 100644 --- a/.github/workflows/scripts/create-release-packages.ps1 +++ b/.github/workflows/scripts/create-release-packages.ps1 @@ -498,13 +498,13 @@ $AllAgents = @('claude', 'gemini', 'copilot', 'cursor-agent', 'qwen', 'opencode' $AllScripts = @('sh', 'ps') function Normalize-List { - param([string]$Input) + param([string]$Value) - if ([string]::IsNullOrEmpty($Input)) { + if ([string]::IsNullOrEmpty($Value)) { return @() } - $items = $Input -split '[,\s]+' | Where-Object { $_ } | Select-Object -Unique + $items = $Value -split '[,\s]+' | Where-Object { $_ } | Select-Object -Unique return $items } @@ -527,7 +527,7 @@ function Validate-Subset { # Determine agent list if (-not [string]::IsNullOrEmpty($Agents)) { - $AgentList = Normalize-List -Input $Agents + $AgentList = Normalize-List -Value $Agents if (-not (Validate-Subset -Type 'agent' -Allowed $AllAgents -Items $AgentList)) { exit 1 } @@ -537,7 +537,7 @@ if (-not [string]::IsNullOrEmpty($Agents)) { # Determine script list if (-not [string]::IsNullOrEmpty($Scripts)) { - $ScriptList = Normalize-List -Input $Scripts + $ScriptList = Normalize-List -Value $Scripts if (-not (Validate-Subset -Type 'script' -Allowed $AllScripts -Items $ScriptList)) { exit 1 }