#!/usr/bin/env node /** * Standalone script to sync MQTT configuration * This can be run directly without authentication */ import { syncMosquittoConfig } from '../lib/mosquitto-sync'; async function main() { try { console.log('Starting MQTT configuration sync...'); const result = await syncMosquittoConfig(); if (result.success) { console.log('✓ Success:', result.message); process.exit(0); } else { console.error('✗ Failed:', result.message); process.exit(1); } } catch (error) { console.error('✗ Error:', error instanceof Error ? error.message : String(error)); process.exit(1); } } main();