Dushnilin
23f3c8c587
feat: AI Agent API — HTTP REST + CLI for external LLM agents
Adds a self-healing infrastructure accessible via HTTP REST and CLI:
## New files
- tachyon/files/usr/lib/service/agent_api.uc
Full REST API handler for /tachyon/agent/v1/* endpoints
READ (no auth): /health /snapshot /diagnose /logs /config /tools
WRITE (Bearer): /heal /restart /reload /config/set /section/toggle /domain/add
- tachyon/files/usr/lib/cgi-bin/tachyon-agent
CGI shell wrapper — installed into /www/cgi-bin by postinst
Exposes agent API via uhttpd at http://<router>/cgi-bin/tachyon-agent/<endpoint>
- AGENT.md
Full documentation: curl examples, SSH usage, Claude/Open-WebUI integration
## Modified files
- tachyon/files/usr/bin/tachyon
+ diagnose_json command -> diagnostics/runtime.uc diagnose-json
+ agent_cgi command -> service/agent_api.uc __cgi
+ agent subcommand with special arg-passing (path method body bearer)
+ show_help() updated
- tachyon/files/usr/lib/diagnostics/runtime.uc
+ diagnose_json() — structured JSON output of doctor checks for LLM agents
+ Registered in CLI dispatch as 'diagnose-json'
Fix: UTF-8 byte offset for arrow character U+2192 (+3 not +2)
- tachyon/Makefile
+ INSTALL_BIN for usr/lib/cgi-bin/tachyon-agent
+ postinst: symlink CGI into /www/cgi-bin on install
2026-08-10 13:14:30 +03:00
..
2026-08-10 13:14:30 +03:00
2026-08-10 05:21:19 +03:00
2026-08-08 22:32:09 +03:00
2026-08-09 20:19:23 +03:00
2026-08-10 13:14:30 +03:00
2026-08-07 11:46:52 +03:00
2026-08-08 22:32:09 +03:00
2026-08-08 22:32:09 +03:00
2026-07-28 21:19:44 +03:00
2026-08-08 22:32:09 +03:00
2026-08-10 13:14:30 +03:00
2026-08-10 05:21:19 +03:00
2026-08-08 23:02:18 +03:00
2026-07-15 17:56:18 +03:00