// health.el — Health check and status handlers. fn health_response() -> String { let mode: String = state_get("neuron_mode") if str_eq(mode, "") { return "{\"status\":\"ok\",\"version\":\"1.0.0-engram\"}" } return "{\"status\":\"ok\",\"version\":\"1.0.0-engram\",\"mode\":\"" + mode + "\"}" } fn not_found_response(path: String) -> String { return "{\"error\":\"not found\",\"path\":\"" + path + "\"}" }