mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-10-19 07:23:51 +00:00
refactor: add file system watchdog support for API handlers, extensions, and plugins
- Add `watchdog` dependency to requirements.txt - Implement cache entry timestamps with `CacheEntry` dataclass for LRU-style tracking - Add `trim_cache` function to remove stale entries based on age - Update cache operations to track and update entry timestamps on access - Add `_get_matching_areas` helper for wildcard pattern matching in cache clearing - Register watchdogs for API handlers, extensions, and plugins to
This commit is contained in:
parent
976d188f46
commit
e4f974b80d
11 changed files with 627 additions and 32 deletions
|
|
@ -51,6 +51,7 @@ exchangelib>=5.4.3
|
|||
pywinpty==3.0.2; sys_platform == "win32"
|
||||
python-socketio>=5.14.2
|
||||
uvicorn>=0.38.0
|
||||
watchdog==6.0.0
|
||||
wsproto>=1.2.0
|
||||
# Security floor pins for transitive dependencies
|
||||
# These packages are pulled transitively — floor pins prevent resolver regressions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue