feat: rebrand to ZeroGravity, replace proxyctl with zg Rust binary
Phase 1 - Rename: - Crate: antigravity-proxy -> zerogravity - Env: ANTIGRAVITY_OAUTH_TOKEN -> ZEROGRAVITY_TOKEN - Paths: ~/.config/antigravity-proxy -> ~/.config/zerogravity - Paths: /tmp/antigravity-* -> /tmp/zerogravity-* - User: antigravity-ls -> zerogravity-ls - Service: antigravity-proxy -> zerogravity Phase 2 - zg daemon manager: - New Rust binary src/bin/zg.rs replaces scripts/proxyctl bash - Commands: start, stop, restart, rebuild, status, logs, test, health - Auto-resolves project dir from binary location - All commands exit immediately (safe for agent fast-bash)
This commit is contained in:
@@ -132,11 +132,11 @@ Events dispatched through `tokio::sync::mpsc` channels from MITM → API handler
|
||||
### UID-Scoped iptables (Classic Mode)
|
||||
|
||||
```bash
|
||||
# One-time setup — creates antigravity-ls user + iptables rule
|
||||
# One-time setup — creates zerogravity-ls user + iptables rule
|
||||
sudo ./scripts/mitm-redirect.sh install
|
||||
|
||||
# Run proxy (standalone LS + MITM both enabled by default)
|
||||
RUST_LOG=info ./target/release/antigravity-proxy
|
||||
RUST_LOG=info ./target/release/zerogravity
|
||||
|
||||
# Check intercepted usage
|
||||
curl -s http://localhost:8741/v1/usage | jq .
|
||||
@@ -150,7 +150,7 @@ sudo ./scripts/mitm-redirect.sh uninstall
|
||||
No iptables or sudo needed. The LS connects through `HTTPS_PROXY` instead:
|
||||
|
||||
```bash
|
||||
RUST_LOG=info ./target/release/antigravity-proxy --headless
|
||||
RUST_LOG=info ./target/release/zerogravity --headless
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -5,7 +5,7 @@ Per-call debug traces for inspecting request/response flow. Every API call write
|
||||
## Location
|
||||
|
||||
```
|
||||
~/.config/antigravity-proxy/traces/{YYYY-MM-DD}/{HH-MM-SS.sss}_{cascade_short}/
|
||||
~/.config/zerogravity/traces/{YYYY-MM-DD}/{HH-MM-SS.sss}_{cascade_short}/
|
||||
```
|
||||
|
||||
Disable with `--no-trace`.
|
||||
@@ -108,11 +108,11 @@ Traces are designed for LLM consumption. To inspect the last trace:
|
||||
|
||||
```bash
|
||||
# Find latest trace
|
||||
ls -t ~/.config/antigravity-proxy/traces/$(date +%Y-%m-%d)/ | head -1
|
||||
ls -t ~/.config/zerogravity/traces/$(date +%Y-%m-%d)/ | head -1
|
||||
|
||||
# Read the summary
|
||||
cat ~/.config/antigravity-proxy/traces/$(date +%Y-%m-%d)/$(ls -t ~/.config/antigravity-proxy/traces/$(date +%Y-%m-%d)/ | head -1)/summary.md
|
||||
cat ~/.config/zerogravity/traces/$(date +%Y-%m-%d)/$(ls -t ~/.config/zerogravity/traces/$(date +%Y-%m-%d)/ | head -1)/summary.md
|
||||
|
||||
# Grep for failures
|
||||
grep 'outcome=.*error\|outcome=.*timeout' ~/.config/antigravity-proxy/traces/$(date +%Y-%m-%d)/*/meta.txt
|
||||
grep 'outcome=.*error\|outcome=.*timeout' ~/.config/zerogravity/traces/$(date +%Y-%m-%d)/*/meta.txt
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user