Files
nono-opencode-tinfoil/Makefile
T
kawaiipunk 391c3265f4 Fix sandbox launch with OpenCode v2 background service
OpenCode v2.2 starts a background service on 127.0.0.1:49374, which nono
blocks unless a localhost port is granted. Give the sandbox its own service
on 49376 with isolated config/state, and clean up its lifecycle.

- Grant localhost ports 49376 (sandboxed service) and 3301 (Tinfoil proxy)
- Add sandbox config/state dirs and XDG_STATE_HOME/OPENCODE_CONFIG_DIR
- Wrapper mirrors real config, pins the sandbox service port, and stops
  stale/orphaned services so they never outlive the nono proxy
- Remove deprecated commands.allow/deny and the redundant SSH key glob deny
- Update installer, uninstall cleanup, and README
2026-11-09 15:33:48 +00:00

22 lines
453 B
Makefile

PREFIX ?= $(HOME)/.local
PROFILE_DIR = $(HOME)/.config/nono/profiles
BIN_DIR = $(PREFIX)/bin
.PHONY: install uninstall validate test
install:
@./scripts/install.sh
uninstall:
rm -f $(PROFILE_DIR)/opencode-tinfoil.json
rm -f $(BIN_DIR)/opencode
rm -rf $(HOME)/.config/opencode-sandbox
rm -rf $(HOME)/.local/state/opencode-sandbox
@echo "Uninstalled."
validate:
nono profile validate opencode-tinfoil
test:
$(BIN_DIR)/opencode --version