fix: revert dev

This commit is contained in:
Barrett Ruth 2026-03-13 17:58:49 -04:00
parent e8ebe154a1
commit c69f297dd5
4 changed files with 160 additions and 12 deletions

View file

@ -304,8 +304,8 @@ end, {
if #parts == 0 or (#parts == 1 and not trailing) then
local auth_names = {}
for _, b in ipairs(pending.sync_backends()) do
local ok, mod = pcall(require, 'pending.sync.' .. b)
if ok and type(mod.auth) == 'function' then
local mod = pending.resolve_backend(b)
if mod and type(mod.auth) == 'function' then
table.insert(auth_names, b)
end
end
@ -313,8 +313,8 @@ end, {
end
local backend_name = parts[1]
if #parts == 1 or (#parts == 2 and not trailing) then
local ok, mod = pcall(require, 'pending.sync.' .. backend_name)
if ok and type(mod.auth_complete) == 'function' then
local mod = pending.resolve_backend(backend_name)
if mod and type(mod.auth_complete) == 'function' then
return filter_candidates(arg_lead, mod.auth_complete())
end
return {}
@ -328,8 +328,8 @@ end, {
if not after_backend then
return {}
end
local ok, mod = pcall(require, 'pending.sync.' .. matched_backend)
if not ok then
local mod = pending.resolve_backend(matched_backend)
if not mod then
return {}
end
local actions = {}