Sandboxed gopher-lua with time, memory and call-stack limits from [sandbox], a goquery-backed doc API, price parsing, and the 'check', 'plugin test' and 'fixtures' commands. Sellers are first_party, fulfilled (shipped by the shop) or third_party, and items accept fulfilled by default; used-only offers are not available. Plugin tests run on real pages that 'dibs fixtures' fetches into an untracked directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
501 B
Lua
10 lines
501 B
Lua
-- Nothing that reads files, loads code or reaches the interpreter's
|
|
-- internals may be visible to a plugin.
|
|
local leaked = {}
|
|
for _, name in ipairs({ "os", "io", "debug", "package", "coroutine", "dofile", "loadfile", "load",
|
|
"loadstring", "require", "module", "collectgarbage", "getfenv", "setfenv", "newproxy", "_printregs" }) do
|
|
if _G[name] ~= nil then leaked[#leaked + 1] = name end
|
|
end
|
|
|
|
return { parse = function() return { available = #leaked == 0, title = table.concat(leaked, ",") } end }
|