summaryrefslogtreecommitdiff
path: root/TODOs.md
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-12-05 11:13:09 -0700
committert <t@tjp.lol>2026-12-05 11:13:44 -0700
commit760cb2a9045e0c1cde276a6378841217e655fde3 (patch)
tree7afc2e9874ad47122ed09850cb0ce108dc79faae /TODOs.md
parent0b5892bc31fb576099421ecddfbdc7a7b243d02d (diff)
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.
Diffstat (limited to 'TODOs.md')
-rw-r--r--TODOs.md12
1 files changed, 0 insertions, 12 deletions
diff --git a/TODOs.md b/TODOs.md
deleted file mode 100644
index ba98b6e..0000000
--- a/TODOs.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Project ideas
-
-## Broaden platform support beyond macOS
-
-- Today `panto-antigravity` hard-requires macOS: `acp.lua` asserts `uv.os_uname().sysname == 'Darwin'` in `executable()`, runs `/usr/bin/codesign` against Google's Apple developer signature in `verified()`, preserves `HOME` for the macOS login Keychain, and hardcodes `/usr/bin/nc -U` in `relay()`. `panto-antigravity-0.1.0-1.rockspec` sets `supported_platforms = { "macosx" }`, and `check.lua` runs inside `/usr/bin/sandbox-exec` using `/private/tmp`.
-- Wanted: support Linux (and any other platforms `agy` officially ships on) without weakening the CLI verification or profile-isolation boundary.
-- Open questions and work before expanding `supported_platforms`:
- - Determine how `agy` is distributed and signed/verified on non-macOS platforms, and design the per-OS verification path in `acp.lua` (`verified()` / `executable()`).
- - Replace the hardcoded `/usr/bin/nc -U` bridge in `relay()` with a portable Unix-socket stdio relay or detected platform command (`nc` paths and `-U` flags differ across Linux distros).
- - Verify how `agy` stores and resolves credentials under `--gemini-dir` on Linux (keychain/keyring vs file-backed auth) and confirm `private_profile()` permission checks and `/tmp/panto-antigravity-*` lock/socket paths in `extensions/antigravity-acp.lua` work cleanly there.
- - Add a non-macOS sandbox/runner path in `check.lua` (currently `/usr/bin/sandbox-exec`, `/private/tmp`, and `/usr/bin/codesign` stubbing) so `mise run check` can verify both platforms.
- - Update `panto-antigravity-0.1.0-1.rockspec` (`supported_platforms`) and `README.md` (macOS-only setup and Keychain notes) once verified end to end.