chore(scraper): add LuaCATS types for env helper

Add LuaCATS annotations to the env conversion helper and drop the table.sort call since ordering is not required by uv.spawn.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Harivansh Rathi 2026-02-22 12:01:37 -05:00 committed by Barrett Ruth
parent 484a4a56d0
commit 9fc34cb6fd

View file

@ -20,12 +20,13 @@ local function syshandle(result)
return { success = true, data = data }
end
---@param env_map table<string, string>
---@return string[]
local function spawn_env_list(env_map)
local out = {}
for key, value in pairs(env_map) do
out[#out + 1] = tostring(key) .. '=' .. tostring(value)
end
table.sort(out)
return out
end