module RabbotMetaAiGuardBypass::GuardHook
Public Instance Methods
Source
# File lib/rabbot_meta_ai_guard_bypass.rb, line 55 def output_leak?(text) return super unless RabbotMetaAiGuardBypass.hook_active? super(RabbotMetaAiGuardBypass.scrub_educational_paths(text)) end
Calls superclass method
Source
# File lib/rabbot_meta_ai_guard_bypass.rb, line 37 def system_request?(text, **) return super unless RabbotMetaAiGuardBypass.hook_active? normalized = text.to_s.strip return false if normalized.empty? ctx = RabbotMetaAiGuardBypass.current_context if ctx && RabbotMetaAiGuardBypass.consume_bypass!(**ctx) return false end blocked = super if blocked && ctx && RabbotMetaAiGuardBypass.should_grant_bypass?(question: normalized) RabbotMetaAiGuardBypass.grant_bypass!(**ctx) end blocked end
Calls superclass method