superpowers-mcp 6.4.9 → 6.4.10

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.
@@ -296,7 +296,7 @@ disown "$SERVER_PID" 2>/dev/null
296
296
  echo "$SERVER_PID" > "$PID_FILE"
297
297
 
298
298
  # Wait for server-started message (check log file)
299
- for _ in {1..50}; do
299
+ for _ in {1..150}; do
300
300
  if grep -q "server-started" "$LOG_FILE" 2>/dev/null; then
301
301
  # Verify server is still alive after a short window (catches process reapers)
302
302
  alive="true"
@@ -318,5 +318,5 @@ for _ in {1..50}; do
318
318
  done
319
319
 
320
320
  # Timeout - server didn't start
321
- echo '{"error": "Server failed to start within 5 seconds"}'
321
+ echo '{"error": "Server failed to start within 15 seconds"}'
322
322
  exit 1
@@ -67,7 +67,9 @@ function Get-PhysicalDirectoryPath($path) {
67
67
  $orig = Get-Location
68
68
  try {
69
69
  Set-Location -LiteralPath $path
70
- $pwdCmd = (Get-Command -Type Application pwd -ErrorAction SilentlyContinue).Source
70
+ # Some distros ship both /usr/bin/pwd and /bin/pwd; .Source would then be
71
+ # an array that stringifies to a bogus "a b" path. Take the first match.
72
+ $pwdCmd = @(Get-Command -Type Application pwd -ErrorAction SilentlyContinue | Select-Object -First 1 -ExpandProperty Source)[0]
71
73
  if ($pwdCmd) {
72
74
  return (& $pwdCmd -P).Trim()
73
75
  } else {