← Files NightshiftARCHIVED FILE
runtime/windows/park-needs.ps1
841 Bytes · Oct 3, 2026 · 06:31 UTC
<#
.SYNOPSIS
Park the items the shift policy will not let the agent finish.
.DESCRIPTION
Mirrors runtime/park-needs.sh. Appends one parking-lot.md entry per item and
missing elevation category so Start parks mechanically instead of asking.
Idempotent: an entry already on file is left alone.
Exit: 0 ok - 1 usage / no .nightshift
#>
param(
[string]$Project = [Environment]::CurrentDirectory
)
Set-StrictMode -Version 2.0
$ErrorActionPreference = 'Stop'
$pluginRoot = Resolve-Path (Join-Path $PSScriptRoot '../..')
Import-Module (Join-Path $pluginRoot 'lib/Nightshift.psm1') -Force -DisableNameChecking
# The parked entry carries an em dash, so pin stdout to UTF-8 whatever the host
# console code page is.
[Console]::OutputEncoding = New-Object Text.UTF8Encoding($false)
exit (Invoke-NSParkNeedsCommand -Project $Project)
SHA-256: ec01898f59968130af5e77502cd38b936e8144172d2b275ea142efc58ea78c3c