← Files WindowispARCHIVED FILE
skills/game-mode/scripts/game-mode.ps1
930 Bytes · Oct 3, 2026 · 06:30 UTC
param(
[ValidateSet('On', 'Off', 'Toggle', 'Playroom', 'Switch', 'Familiar', 'Exit')]
[string]$Action = 'On',
[string]$PetId = '',
[ValidateSet('P1','P2')]
[string]$Player = 'P1',
[ValidateSet('idle','user-active','codex-working','completed','needs-input','permission-required','succeeded','failed','returning-user','celebrate','wait','sleep','greet')]
[string]$FamiliarEvent = 'idle'
)
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$pluginRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..\..\..')).Path
$launcher = Join-Path $pluginRoot 'game-mode.ps1'
if (-not (Test-Path -LiteralPath $launcher -PathType Leaf)) {
throw "Windowisp launcher not found at $launcher"
}
& powershell.exe -NoProfile -ExecutionPolicy Bypass -File $launcher -Action $Action -PetId $PetId -Player $Player -FamiliarEvent $FamiliarEvent
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
SHA-256: 75f464aa71b42ea12733050daf28fb2f1704a61749bc260fec751ad3b823d56a