const fs = require('fs');
const path = require('path');
const ROOT = path.resolve(__dirname, '..');
const SERVICES_DIR = path.join(ROOT, 'services');
const DEPLOY_DIR = path.join(ROOT, 'deploy');
const CONFIG_FILE = path.join(ROOT, 'config.json');
function readJSONSafe(p, fallback){ try{ return JSON.parse(fs.readFileSync(p,'utf8')); }catch{ return fallback; } }
function listServices(){