# 09-Setup-Heattreat.ps1 - Heattreat pc-type setup
#
# Currently OpenText-only (same as common). Heattreat-specific software
# will be added here when the application catalog is finalized.

$lib = Join-Path $PSScriptRoot '..\Shopfloor\lib\Set-OpenTextAutoStart.ps1'

Write-Host '=== Heattreat Setup ==='
$pxeStatusLib = Join-Path $PSScriptRoot '..\Shopfloor\lib\Send-PxeStatus.ps1'
if (Test-Path $pxeStatusLib) {
    try { . $pxeStatusLib; Send-PxeStatus -Stage '09-Setup-Heattreat: starting' -StageIndex 3 -StageTotal 8 } catch { }
}
if (Test-Path -LiteralPath $lib) {
    & $lib
} else {
    Write-Warning "Set-OpenTextAutoStart.ps1 not found at $lib - OpenText auto-start NOT configured"
}
# TODO: Heattreat-specific apps go here.
if (Get-Command Send-PxeStatus -ErrorAction SilentlyContinue) {
    Send-PxeStatus -Stage '09-Setup-Heattreat: complete' -StageIndex 4 -StageTotal 8
}
Write-Host '=== Heattreat Setup Complete ==='
