Add Lua plugin host, built-in amazon plugin and dibs check.
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>
This commit is contained in:
1 parent
f90ef18f90
commit
bb010356a0
28 files changed
+2096
-26
No files matched your search
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
-- 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 }
|
||||
Reference in new issue
Block a user