Go to file
Sam 6ddc17fd61
DEV: port directory structure to Zeitwerk (#319)
Previous to this change we relied on explicit loading for a files in Discourse AI.

This had a few downsides:

- Busywork whenever you add a file (an extra require relative)
- We were not keeping to conventions internally ... some places were OpenAI others are OpenAi
- Autoloader did not work which lead to lots of full application broken reloads when developing.

This moves all of DiscourseAI into a Zeitwerk compatible structure.

It also leaves some minimal amount of manual loading (automation - which is loading into an existing namespace that may or may not be there)

To avoid needing /lib/discourse_ai/... we mount a namespace thus we are able to keep /lib pointed at ::DiscourseAi

Various files were renamed to get around zeitwerk rules and minimize usage of custom inflections

Though we can get custom inflections to work it is not worth it, will require a Discourse core patch which means we create a hard dependency.
2023-11-29 15:17:46 +11:00
.github/workflows Initial commit 2023-02-17 11:33:47 -03:00
app DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
assets FIX: adjust tag composer input to avoid wrapping (#324) 2023-11-28 17:38:29 -05:00
config DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
db FIX: Use XML tags in generate_titles prompt. (#322) 2023-11-28 12:52:22 -03:00
discourse_automation DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
lib DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
spec DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
test/javascripts Initial commit 2023-02-17 11:33:47 -03:00
tokenizers FEATURE: Bge-large-en embeddings via Cloudflare Workers AI API (#241) 2023-10-04 13:47:51 -03:00
.discourse-compatibility DEV: Updates to the summarization strategy API (#301) 2023-11-21 13:27:35 -03:00
.eslintrc.cjs DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
.gitignore Initial commit 2023-02-17 11:33:47 -03:00
.prettierignore FEATURE: UI to update ai personas on admin page (#290) 2023-11-21 16:56:43 +11:00
.prettierrc.cjs DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
.rubocop.yml DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
.streerc DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
.template-lintrc.js DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
Gemfile DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
Gemfile.lock DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
LICENSE Initial commit 2023-02-17 11:33:47 -03:00
README.md CHORE: Update Readme (#185) 2023-09-04 15:46:35 -03:00
package.json DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00
plugin.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
translator.yml DEV: Add Crowdin support (#108) 2023-07-15 00:56:15 +02:00
yarn.lock DEV: Update linting configs (#280) 2023-11-03 11:30:09 +00:00

README.md

Discourse AI Plugin

Plugin Summary

For more information, please see: https://meta.discourse.org/t/discourse-ai/259214?u=falco