You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extract StorageProtocol and JSON storage implementation #2
Replace duplicated _load_* / _save_* helpers across tools with a shared storage abstraction so the hosted product can plug in Postgres later without forking agent code.
Scope
Add storage/base.py with a StorageProtocol (or ABC) covering:
complaints (load/save/list)
leads
posts
emails
Add storage/json_storage.py — current JSON file behavior from config.py paths
Refactor these modules to use the abstraction:
tools/complaint_tools.py
tools/funnel_tools.py
tools/social_tools.py
tools/email_tools.py
tools/publisher_tools.py
Acceptance criteria
No behavior change for local JSON usage
All existing tests pass (pytest)
Default storage remains JSON (zero config for OSS users)
Tools do not import Postgres or cloud-specific code
Notes
Keep the interface minimal — only what tools actually need today.
Activity