@geekbeer/minion 2.43.0 → 2.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/win/minion-cli.ps1 +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbeer/minion",
3
- "version": "2.43.0",
3
+ "version": "2.43.1",
4
4
  "description": "AI Agent runtime for Minion - manages status and skill deployment on VPS",
5
5
  "main": "linux/server.js",
6
6
  "bin": {
@@ -424,6 +424,23 @@ New-Item -Path `$LogDir -ItemType Directory -Force | Out-Null
424
424
  # Write PID of this watchdog process
425
425
  Set-Content -Path `$PidFile -Value `$PID
426
426
 
427
+ # Helper: find websockify executable
428
+ function Get-WebsockifyCommand {
429
+ if (Get-Command websockify -ErrorAction SilentlyContinue) {
430
+ return @((Get-Command websockify).Source)
431
+ }
432
+ if (Get-Command python -ErrorAction SilentlyContinue) {
433
+ `$scriptsDir = & python -c "import sysconfig; print(sysconfig.get_path('scripts'))" 2>`$null
434
+ if (`$scriptsDir) {
435
+ `$wsExe = Join-Path `$scriptsDir 'websockify.exe'
436
+ if (Test-Path `$wsExe) { return @(`$wsExe) }
437
+ }
438
+ `$check = & python -c "import websockify" 2>&1
439
+ if (`$LASTEXITCODE -eq 0) { return @('python', '-m', 'websockify') }
440
+ }
441
+ return `$null
442
+ }
443
+
427
444
  # Start TightVNC + websockify if available
428
445
  `$vncExe = `$null
429
446
  if (Test-Path 'C:\Program Files\TightVNC\tvnserver.exe') {