agent-zero/python/helpers
frdel 4e243a996c Refactor API routing, add cache and security
Centralize API routing and security: moved loopback/API-key/auth/CSRF decorators into python/helpers/api.py and added register_api_route to dynamically dispatch handlers from built-in python/api and plugin api folders. Added a simple thread-safe in-memory cache (python/helpers/cache.py) to store wrapped handlers. register_api_route resolves handler classes, enforces allowed methods, composes required security wrappers, caches the resulting callables, and registers a single /api/<path> rule. Also updated runtime RFC URL to use /api/rfc. Removed the duplicate handler registration and security helper code from run_ui.py and replaced it with the new register_api_route import.
2026-02-20 09:43:21 +01:00
..
api.py Refactor API routing, add cache and security 2026-02-20 09:43:21 +01:00
attachment_manager.py better filename check 2026-01-24 21:54:21 +03:00
backup.py workdir outside project, gitkeeps 2026-02-08 14:54:49 +01:00
browser.py playwright headless fix 2025-06-11 13:58:08 +02:00
browser_use.py v0.8.1 release 2025-01-17 22:50:17 +01:00
browser_use_monkeypatch.py fix (browser-use): monkeypatch for browser-use and Gemini schemas 2025-08-29 23:41:28 +02:00
cache.py Refactor API routing, add cache and security 2026-02-20 09:43:21 +01:00
call_llm.py UI and settings merge 2024-11-04 22:55:56 +01:00
cloudflare_tunnel._py Better initialization 2025-06-07 22:28:47 +02:00
context.py projects continued 2025-11-03 16:17:12 +01:00
crypto.py RFC & SSH exchange for development 2024-12-03 14:22:18 +01:00
defer.py offload memory to deferred tasks 2026-02-01 20:26:36 +01:00
dirty_json.py fix: add missing error handling (#405) 2025-05-30 22:01:20 +02:00
docker.py continued log+rendering refactor 2026-01-23 22:08:19 +01:00
document_query.py caching and ctx window optimizations 2026-02-11 23:04:32 +01:00
dotenv.py refactor: migrate user data to usr/ + update frontend paths 2025-12-12 10:11:12 +08:00
duckduckgo_search.py duckduckgo search prototype 2024-07-14 23:48:10 +02:00
email_client.py refactor: migrate user data to usr/ + update frontend paths 2025-12-12 10:11:12 +08:00
errors.py message rendering polishing 2026-02-04 08:47:06 +01:00
extension.py Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
extract_tools.py agents rework, memory improvements and params 2025-07-25 21:47:19 +02:00
faiss_monkey_patch.py supress warnings, test connectivity on start 2026-02-10 12:00:22 +01:00
fasta2a_client.py a2a polishing 2025-07-31 21:49:50 +02:00
fasta2a_server.py continued log+rendering refactor 2026-01-23 22:08:19 +01:00
file_browser.py Merge branch 'pr/956' into development 2026-01-30 12:42:03 +01:00
file_tree.py workdir outside project, gitkeeps 2026-02-08 14:54:49 +01:00
files.py Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
git.py Git Clone Authentication for Private Repositories 2026-02-03 06:10:30 -08:00
guids.py short memory ids 2025-08-30 00:52:34 +02:00
history.py fix deadlock in ctx compression 2026-02-12 11:54:53 +01:00
images.py vision prototype, terminal sessions 2025-04-01 13:55:50 +02:00
job_loop.py fix: synchronize job loop with development instance 2025-05-27 17:32:57 +02:00
kokoro_tts.py code exec interface + preload 2025-08-12 20:04:38 +02:00
localization.py fix: timezone switching spam bug (#664) 2025-08-15 11:35:15 +02:00
log.py WebSocket merge 2026-02-01 16:07:45 +01:00
login.py bugfix: settings delta clearing auth 2026-02-10 17:13:52 +01:00
mcp_handler.py parallel mcp initialization 2026-02-10 17:31:01 +01:00
mcp_server.py cleanup 2026-02-02 14:53:11 +01:00
message_queue.py WebSocket merge 2026-02-01 16:07:45 +01:00
messages.py RFC & SSH exchange for development 2024-12-03 14:22:18 +01:00
migration.py skills cleanup, minor fixes 2026-02-02 19:03:58 +01:00
notification.py WebSocket merge 2026-02-01 16:07:45 +01:00
perplexity_search.py New models, hints, bugfixes, prompt adjustments 2024-08-04 19:06:34 +02:00
persist_chat.py WebSocket merge 2026-02-01 16:07:45 +01:00
playwright.py frontend file browsers, css colors, litellm update, reqs split 2025-11-09 20:56:31 +01:00
plugins.py Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
print_catch.py Browser-use prototype 2025-01-03 23:01:21 +01:00
print_style.py WebSocket merge 2026-02-01 16:07:45 +01:00
process.py console print edits for docker 2024-12-07 21:51:14 +01:00
projects.py Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
providers.py setting refactor - backend conversions 2025-12-22 13:47:50 +01:00
rate_limiter.py rate limiter polishing, file download polishing 2025-07-31 14:46:23 +02:00
rfc.py RFC & SSH exchange for development 2024-12-03 14:22:18 +01:00
rfc_exchange.py RFC & SSH exchange for development 2024-12-03 14:22:18 +01:00
rfc_files.py RAG tool merge 2025-06-14 09:45:04 +02:00
runtime.py Refactor API routing, add cache and security 2026-02-20 09:43:21 +01:00
searxng.py The Merge - initial changes 2025-05-27 18:48:22 +02:00
secrets.py Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
security.py better filename check 2026-01-24 21:54:21 +03:00
settings.py Merge branch 'pr/998' into development 2026-02-19 10:23:52 +01:00
shell_local.py windows tty 2025-11-13 19:09:02 +01:00
shell_ssh.py continued log+rendering refactor 2026-01-23 22:08:19 +01:00
skills.py plugins - frontend PoC 2026-02-16 20:01:25 +01:00
skills_cli.py rename skills dirs for consistency 2026-02-02 15:28:46 +01:00
skills_import.py Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
state_monitor.py less debug prints in state monitor 2026-02-05 19:23:02 +01:00
state_monitor_integration.py WebSocket merge 2026-02-01 16:07:45 +01:00
state_snapshot.py WebSocket merge 2026-02-01 16:07:45 +01:00
strings.py project finalizing, openrouter embeddings 2025-11-13 08:52:45 +01:00
subagents.py Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
task_scheduler.py WebSocket merge 2026-02-01 16:07:45 +01:00
timed_input.py threading, readline fixes 2024-09-05 01:00:22 +02:00
tokens.py projects preps 2025-10-23 13:08:27 +02:00
tool.py skills polishing and fixing 2026-02-02 21:53:02 +01:00
tty_session.py tty queue loop mismatch fix 2026-02-12 14:08:10 +01:00
tunnel_manager.py chore: replace print with PrintStyle 2026-01-02 09:49:37 +08:00
update_check.py update checker 2025-11-17 11:32:15 +01:00
vector_db.py document query QA fix 2026-01-10 13:17:27 +00:00
wait.py Add "wait" tool 2025-10-16 13:39:22 +08:00
websocket.py WebSocket merge 2026-02-01 16:07:45 +01:00
websocket_manager.py better logging in websockets 2026-02-10 10:12:03 +01:00
websocket_namespace_discovery.py WebSocket merge 2026-02-01 16:07:45 +01:00
whisper.py code exec interface + preload 2025-08-12 20:04:38 +02:00