From 760cb2a9045e0c1cde276a6378841217e655fde3 Mon Sep 17 00:00:00 2001 From: t Date: Sat, 5 Dec 2026 11:13:09 -0700 Subject: Broaden platform support to Unix beyond macOS Replace macOS-only underpinnings with portable Unix equivalents so the provider runs on macOS, Linux, and FreeBSD: - Replace /usr/bin/nc -U with an embedded panto lua + luv stdio-to-socket relay everywhere. - Conditionalize /usr/bin/codesign to macOS; validate binary ownership and permissions on other Unix platforms. - Forward D-Bus/XDG keyring session variables on non-macOS while keeping API keys stripped. - Use uv.os_tmpdir() (with /tmp fallback for Unix socket sun_path limits) instead of hardcoded /tmp and /private/tmp. - Drop --sandbox from agy invocations to match Panto's permissions model and avoid container/Linuxulator sandbox breakage. - Update check.lua for non-macOS runners (unshare / direct) and broaden supported_platforms to unix. --- _quota_selfcheck.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_quota_selfcheck.lua') diff --git a/_quota_selfcheck.lua b/_quota_selfcheck.lua index 488f1d2..9e03f2a 100644 --- a/_quota_selfcheck.lua +++ b/_quota_selfcheck.lua @@ -40,7 +40,7 @@ local advance = 0 uv.hrtime = function() return hrtime() + advance end uv.spawn = function(bin, opts, callback) assert(bin == '/fake-agy' and opts.cwd == profile and opts.env == env and opts.detached) - assert(table.concat(opts.args, '|') == '--gemini_dir|/fake-profile|--sandbox|-p|/usage') + assert(table.concat(opts.args, '|') == '--gemini_dir|/fake-profile|-p|/usage') assert(opts.stdio[1] == nil and opts.stdio[2] and opts.stdio[3] == nil) spawns = spawns + 1 opts.cwd = '/' -- cgit v1.3