Skip to main content

Module watcher

Module watcher 

Source
Expand description

Filesystem watcher for skill hot-reload.

Monitors a skills directory for file changes and triggers a full SkillService::refresh() only from retained filesystem events.

Structs§

SkillFileWatcher
Watches a skills directory and owns the event-processing task that refreshes its skill service. The task belongs to scope; dropping a caller only asks it to stop, while Self::close retains and awaits its acknowledgement.

Functions§

start_skill_watcher
Start watching the given skills directory with compatibility standalone ownership. Trusted hosts should call SkillFileWatcher::new_in_scope.