Files
zesdex/security-sidecar/zesdex_sec_daemon/__main__.py
T

26 lines
640 B
Python
Raw Normal View History

"""Entry point: run the security daemon reading JSON frames from stdin."""
import sys
from .protocol import run_daemon
def main():
if "--install" in sys.argv:
from .installer import TieredInstaller
installer = TieredInstaller()
result = installer.install_all()
print(result.model_dump_json())
return
if "--health" in sys.argv:
from .tools import ToolRegistry
registry = ToolRegistry()
health = registry.health_check()
import json
print(json.dumps(health))
return
run_daemon(sys.stdin, sys.stdout)
if __name__ == "__main__":
main()