# Synopsis: Synchronizes operational branch orchestrators.
# Description: Ensures AgentOS.ps1 and AgentOSX.ps1 remain structurally identical.

$BaseDir = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
$Src = Join-Path $BaseDir "Scripts\AgentOS.ps1"
$Dst = Join-Path $BaseDir "Scripts\AgentOSX.ps1"

if (Test-Path $Src) {
    Copy-Item -Path $Src -Destination $Dst -Force
    Write-Output "SUCCESS: AgentOSX.ps1 synchronized cleanly with AgentOS.ps1."
} else {
    Write-Output "ERROR: Source file $Src not found."
}
