#Requires -Version 7.4

function Clear-vSEALBaselineContext {
    <#
    .SYNOPSIS
        Clears the baseline context after save or on cleanup.

    .DESCRIPTION
        Sets the baseline context to $null, releasing accumulated entries.
        Should be called after Save-vSEALBaseline completes or on error cleanup.

    .EXAMPLE
        Clear-vSEALBaselineContext

        Clears the baseline context to $null.

    .OUTPUTS
        [void]
    #>
    [CmdletBinding()]
    [OutputType([void])]
    param()

    $script:vSEALBaselineContext = $null
    Write-vSEALLog "Baseline context cleared" -Level VERBOSE
}
