improve: support to customize the avanterules directories for project/global (#2392)

This commit is contained in:
guanghechen
2025-07-02 12:17:13 +08:00
committed by GitHub
parent d4f3224bf6
commit 30604304ba
4 changed files with 63 additions and 12 deletions

View File

@@ -40,6 +40,10 @@ M._defaults = {
tokenizer = "tiktoken",
---@type string | (fun(): string) | nil
system_prompt = nil,
rules = {
project_dir = nil, ---@type string | nil (could be relative dirpath)
global_dir = nil, ---@type string | nil (absolute dirpath)
},
rag_service = { -- RAG service configuration
enabled = false, -- Enables the RAG service
host_mount = os.getenv("HOME"), -- Host mount path for the RAG service (Docker will mount this path)