Skip to main content

Module config_watcher

Module config_watcher 

Source
Expand description

Config Hot Reload — poll-based config watcher with callback support.

The KernelConfigWatcher wraps the underlying [ConfigWatcher] from punch-types and adds a poll-based mtime check, callback registration, and diff logging for the kernel layer. It distinguishes between hot-reloadable fields (rate limits, model defaults, channels, MCP servers, memory settings) and fields that require a restart (API listen address, database path, API key).

Structs§

KernelConfigDiff
Summary of what changed between two configs — used by callbacks to react to specific categories of changes.
KernelConfigWatcher
A poll-based config file watcher that detects changes and applies them without requiring a restart.