b05858b40d
Introduce ConfigService and /api/v1/config endpoints for system portability. - Export: emits a versioned JSON document covering credentials (encrypted secrets preserved), connections, schedules, rules (with nested condition groups, conditions, and actions), and non-sensitive app settings. - Import: validates the format version and upserts each entity by ID. Supports a dryRun mode that plans the import without writing, and emits per-entity warnings for secrets that need re-entry. - Audit: Export and Import actions emit ConfigChange audit events with entity counts. - Wiring: add ConfigService to server.Dependencies and instantiate it in cli.RunForeground.