2 Commits

  • refactor(diff): improve security and stability of config change detection
    Introduce formatProxyURL helper to sanitize proxy addresses before
    logging, stripping credentials and path components while preserving
    host information. Rework model hash computation to sort and deduplicate
    name/alias pairs with case normalization, ensuring consistent output
    regardless of input ordering. Add signature-based identification for
    anonymous OpenAI-compatible provider entries to maintain stable keys
    across configuration reloads. Replace direct stdout prints with
    structured logger calls for file change notifications.
  • refactor(watcher): extract config diff helpers
    Break out config diffing, hashing, and OpenAI compatibility utilities into a dedicated diff package, update watcher to consume them, and add comprehensive tests for diff logic and watcher behavior.