nuke/lib/policy
Corry Haines de7dbfe6d6
Split up AI filtering files (#592)
* Split up AI filtering files

Create aggressive/moderate/permissive policies to allow administrators to choose their AI/LLM stance.

Aggressive policy matches existing default in Anubis.

Removes `Google-Extended` flag from `ai-robots-txt.yaml` as it doesn't exist in requests.

Rename `ai-robots-txt.yaml` to `ai-catchall.yaml` as the file is no longer a copy of the source repo/file.

* chore: spelling

* chore: fix embeds

* chore: fix data includes

* chore: fix file name typo

* chore: Ignore READMEs in configs

* chore(lib/policy/config): go tool goimports -w

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
Co-authored-by: Xe Iaso <me@xeiaso.net>
2025-06-01 20:21:18 +00:00
..
config Split up AI filtering files (#592) 2025-06-01 20:21:18 +00:00
expressions feat(expressions): add randInt function to allow making rules nondeterministic (#578) 2025-05-28 16:36:27 -04:00
testdata feat: enable loading config fragments (#321) 2025-04-23 07:01:28 -04:00
bot.go style: apply structpack & goimport (#469) 2025-05-09 12:54:15 -04:00
celchecker.go style: apply structpack & goimport (#469) 2025-05-09 12:54:15 -04:00
checker.go fix(config): remove trailing newlines in regexes (#373) 2025-04-26 14:01:15 +00:00
checker_test.go style: apply structpack & goimport (#469) 2025-05-09 12:54:15 -04:00
checkresult.go feat(lib): use Checker type instead of ad-hoc logic (#318) 2025-04-22 07:49:41 -04:00
policy.go feat(checker): add CEL for matching complicated expressions (#421) 2025-05-03 14:26:54 -04:00
policy_test.go Refactor and split out things into cmd and lib (#77) 2025-03-22 18:44:49 -04:00