Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lua/vectorcode/integrations/codecompanion/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ local default_options = {
default_num = { chunk = 50, document = 10 },
include_stderr = false,
use_lsp = false,
auto_submit = { ls = false, query = false },
ls_on_start = false,
no_duplicate = true,
chunk_mode = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,6 @@ return check_cli_wrap(function(opts)
)
end
end
if opts.auto_submit[cmd.command] then
agent.chat:submit()
end
end,
},
}
Expand Down
9 changes: 3 additions & 6 deletions lua/vectorcode/integrations/codecompanion/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

local vc_config = require("vectorcode.config")
local check_cli_wrap = vc_config.check_cli_wrap
local logger = vc_config.logger

return {
chat = {
Expand Down Expand Up @@ -36,13 +35,11 @@ return {
}
end),

---@param opts VectorCode.CodeCompanion.ToolOpts
---@return CodeCompanion.Agent.Tool
make_tool = function(opts)
local has = require("codecompanion").has
if has == nil or has("xml-tools") then
logger.debug("Using legacy tool.")
return require("vectorcode.integrations.codecompanion.legacy_tool")(opts)
elseif has("function-calling") then
logger.debug("Using function-calling tool.")
if has ~= nil and has("function-calling") then
return require("vectorcode.integrations.codecompanion.func_calling_tool")(opts)
else
error("Unsupported version of codecompanion!")
Expand Down
340 changes: 0 additions & 340 deletions lua/vectorcode/integrations/codecompanion/legacy_tool.lua

This file was deleted.