fix: add missing session-ctx (#2393)

This commit is contained in:
yetone
2025-07-02 16:58:15 +08:00
committed by GitHub
parent 4329ed79f4
commit 66c3b6665c
4 changed files with 32 additions and 23 deletions

View File

@@ -69,7 +69,7 @@ M.returns = {
}
---@type AvanteLLMToolFunc<{ path: string, query: string, case_sensitive?: boolean, include_pattern?: string, exclude_pattern?: string }>
function M.func(opts, on_log)
function M.func(opts, on_log, on_complete, session_ctx)
local abs_path = Helpers.get_abs_path(opts.path)
if not Helpers.has_permission_to_access(abs_path) then return "", "No permission to access path: " .. abs_path end
if not Path:new(abs_path):exists() then return "", "No such file or directory: " .. abs_path end