MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / setup_environment

Method setup_environment

shared.py:917–938  ·  view source on GitHub ↗

Setup the environment with the necessary directories and files.

(self, clear_console=False)

Source from the content-addressed store, hash-verified

915 "ai_api_style": "auto", # auto | responses | chat
916 "ai_fallback_model": "", # cloud model used if a self-hosted endpoint drops (blank = gpt-5.4-nano)
917 "ai_analysis_enabled": True,
918 "ai_vulnerability_summaries": True,
919 "ai_network_insights": True,
920 "ai_chat_enabled": True,
921 "ai_max_tokens": 500,
922 "ai_temperature": 0.7,
923
924 "__title_pushover__": "Push Notifications",
925 # Master switch for push notifications (key name kept for compat).
926 # Delivered to every configured channel: Pushover and/or Slack
927 # (RAGNAR_SLACK_WEBHOOK_URL in .env).
928 "pushover_enabled": False,
929 "pushover_notify_new_device": True,
930 "pushover_notify_new_vulnerability": True,
931 "pushover_notify_new_credential": True,
932 "pushover_notify_device_lost": False,
933 "pushover_notify_device_back_online": False,
934 "pushover_notify_wardrive_upload": True, # summary after each auto-uploaded wardrive
935 "pushover_notify_adsb_upload": True, # summary after each ADS-B auto-upload to Wardrift
936 "pushover_notify_cellular": True, # uplink failover to / restore from a tethered cellular hotspot
937
938 "__title_rusense_pushover__": "RuSense Sensing Alerts",
939 # Master switch for camera-free (WiFi-CSI) surveillance alerts. Sent
940 # via the same Pushover account/keys as the security alerts above —
941 # these toggles only gate the RuSense events. Requires Pushover keys

Callers 1

__init__Method · 0.95

Calls 9

create_directoriesMethod · 0.95
save_configMethod · 0.95
generate_actions_jsonMethod · 0.95
delete_webconsolelogMethod · 0.95
initialize_csvMethod · 0.95
warningMethod · 0.80

Tested by

no test coverage detected