#!/usr/bin/env node
// Simple postinstall script - displays PATH fix for Windows

const isGlobal = process.env.npm_config_global === 'true';
const isWindows = process.platform === 'win32';

if (isGlobal && isWindows) {
  const prefix = process.env.npm_config_prefix || '';
  console.log(`
\x1b[32m✅ SmartStack CLI installed!\x1b[0m

\x1b[33mIf 'ss' command is not found, run this in PowerShell:\x1b[0m

  \x1b[36m$env:PATH += ";${prefix || '$(npm config get prefix)'}"\x1b[0m

Then: \x1b[36mss --version\x1b[0m
`);
}
