discourse-ai/lib
Krzysztof Kotlarek 3da4f5eac3
DEV: fix Zeitwerk issue with SpamScanner class (#1183)
When spam scanner is enabled and code is reloaded, developer experience this error:

```
NameError at /posts
===================

uninitialized constant DiscourseAi::AiModeration::EntryPoint::SpamScanner

> To access an interactive console with this error, point your browser to: /__better_errors

plugins/discourse-ai/lib/ai_moderation/entry_point.rb, line 7
```

It is because when we call `SpamScanner` it is searched within parent `DiscourseAi::AiModeration::EntryPoint` namespace.

We can help a bit Zeitwerk by calling SpamScanner more explicitly.
2025-03-11 13:24:27 +11:00
..
ai_bot FEATURE: Add ability to disable search discoveries (#1177) 2025-03-10 14:17:58 -07:00
ai_helper FEATURE: Experimental search results from an AI Persona. (#1139) 2025-02-20 14:37:58 -03:00
ai_moderation DEV: fix Zeitwerk issue with SpamScanner class (#1183) 2025-03-11 13:24:27 +11:00
automation FEATURE: Add persona-based replies and whisper support to LLM triage (#1170) 2025-03-06 17:18:15 +11:00
completions FEATURE: Add persona-based replies and whisper support to LLM triage (#1170) 2025-03-06 17:18:15 +11:00
configuration FEATURE: PDF support for rag pipeline (#1118) 2025-02-14 12:15:07 +11:00
database DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
discord/bot FEATURE: PDF support for rag pipeline (#1118) 2025-02-14 12:15:07 +11:00
embeddings FEATURE: Experimental search results from an AI Persona. (#1139) 2025-02-20 14:37:58 -03:00
inference DEV: Build sentiment clients outside of promises (#1117) 2025-02-06 13:11:10 -03:00
sentiment DEV: Don't classify post sentiments on creation. (#1174) 2025-03-07 14:45:10 -03:00
summarization FEATURE: Changes to summaries' outdated logic. (#1108) 2025-02-04 09:31:11 -03:00
tasks DEV: rake task to populate sentiment in dev env (#1176) 2025-03-10 14:21:00 -03:00
tokenizer FEATURE: Gemini Tokenizer (#1088) 2025-01-23 18:20:35 -03:00
utils DEV: improve artifact editing and eval system (#1130) 2025-02-19 15:44:33 +11:00
automation.rb FEATURE: Add persona-based replies and whisper support to LLM triage (#1170) 2025-03-06 17:18:15 +11:00
embeddings.rb DEV: Robust check for embeddings enabled (#1116) 2025-02-06 12:18:55 -03:00
engine.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
guardian_extensions.rb FEATURE: Calculate gists from non hot topics too (#958) 2024-11-26 13:44:12 -03:00
multisite_hash.rb FIX: properly cache user locale (#593) 2024-04-26 09:28:35 -03:00
post_extensions.rb FEATURE: Backfill posts sentiment. (#982) 2024-12-03 10:27:03 -03:00
summarization.rb FEATURE: Generate topic gists for the hot topics list. (#837) 2024-10-18 18:01:39 -03:00
topic_extensions.rb PERF: Preload only gists when including summaries in topic list (#948) 2024-11-25 12:24:02 -03:00