{"_id":"@arusasaki/antigravity-bridge","_rev":"2-d43feba1e46588558b05ee350d2295d8","name":"@arusasaki/antigravity-bridge","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@arusasaki/antigravity-bridge","version":"1.0.0","keywords":["telegram","bot","ai","coding-assistant","gemini","cli"],"author":{"name":"Arusasaki"},"license":"MIT","_id":"@arusasaki/antigravity-bridge@1.0.0","maintainers":[{"name":"arusasaki","email":"info@wabiaxis.com"}],"homepage":"https://github.com/Arusasaki/antigravity-bridge#readme","bugs":{"url":"https://github.com/Arusasaki/antigravity-bridge/issues"},"bin":{"antigravity-bridge":"src/index.js"},"dist":{"shasum":"c302f75ef186d0eea006616dcf8414432029b012","tarball":"https://registry.npmjs.org/@arusasaki/antigravity-bridge/-/antigravity-bridge-1.0.0.tgz","fileCount":17,"integrity":"sha512-g21P2Crqies5NQZ1k838iu0bWsAbGwNHeU/usmAZSvj+he8LOAnsxs0BjZ9kpRrh5KyAltBJ9g+hYuiuGlPG3Q==","signatures":[{"sig":"MEUCIHuS/Wu3cuSj9Elvvr2UTVKja8pf64NlYD0XWmuhiMnZAiEAiqJ/jGBT4CgsoULxomkttpL0NEZ7PT3YrjBkboSenek=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96299},"main":"src/index.js","gitHead":"05040e98ff214cff91793ceced09e10667a40163","scripts":{"dev":"node --watch src/index.js","start":"node src/index.js"},"_npmUser":{"name":"arusasaki","email":"info@wabiaxis.com"},"repository":{"url":"git+https://github.com/Arusasaki/antigravity-bridge.git","type":"git"},"_npmVersion":"10.9.4","description":"Antigravity bridge for Telegram - AntiCrow equivalent","directories":{},"_nodeVersion":"22.21.1","dependencies":{"dotenv":"^16.4.5","grammy":"^1.34.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/antigravity-bridge_1.0.0_1771927751483_0.770622802146339","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@arusasaki/antigravity-bridge","version":"1.0.1","description":"A local-first CLI tool to securely control your AI coding assistant from Telegram. Code on your machine from anywhere.","main":"src/index.js","bin":{"antigravity-bridge":"src/index.js"},"scripts":{"start":"node src/index.js","dev":"node --watch src/index.js"},"keywords":["telegram","bot","ai","coding-assistant","gemini","cli","automation","vscode","developer-tools","remote-control","agent"],"author":{"name":"Arusasaki"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Arusasaki/antigravity-bridge.git"},"bugs":{"url":"https://github.com/Arusasaki/antigravity-bridge/issues"},"homepage":"https://github.com/Arusasaki/antigravity-bridge#readme","dependencies":{"dotenv":"^16.4.5","grammy":"^1.34.0"},"_id":"@arusasaki/antigravity-bridge@1.0.1","gitHead":"715f88fd2d7257eecad579eaacd8c3528227551c","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-BUj+yuodfzvu+ELx2uQijwjzUdeBr64h/cgIQkqEEjoylgw7axk57t7SRETVO0fmBDkwZK3mM+QrXpk0aAutqw==","shasum":"a799fab3acdb9db2bd9b570449ed958fbacb2cd1","tarball":"https://registry.npmjs.org/@arusasaki/antigravity-bridge/-/antigravity-bridge-1.0.1.tgz","fileCount":17,"unpackedSize":96468,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFgWom3acO3ft1S5+Dkta2rVjUCj9pcm3XHQCUJ7d4z6AiBtLaRjgnOa587HhXoELED6ZVPMotw1kAep8oK644j/SA=="}]},"_npmUser":{"name":"arusasaki","email":"info@wabiaxis.com"},"directories":{},"maintainers":[{"name":"arusasaki","email":"info@wabiaxis.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/antigravity-bridge_1.0.1_1771943892257_0.9549699223225174"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-24T10:09:11.418Z","modified":"2026-02-24T14:38:12.517Z","1.0.0":"2026-02-24T10:09:11.713Z","1.0.1":"2026-02-24T14:38:12.409Z"},"bugs":{"url":"https://github.com/Arusasaki/antigravity-bridge/issues"},"author":{"name":"Arusasaki"},"license":"MIT","homepage":"https://github.com/Arusasaki/antigravity-bridge#readme","keywords":["telegram","bot","ai","coding-assistant","gemini","cli","automation","vscode","developer-tools","remote-control","agent"],"repository":{"type":"git","url":"git+https://github.com/Arusasaki/antigravity-bridge.git"},"description":"A local-first CLI tool to securely control your AI coding assistant from Telegram. Code on your machine from anywhere.","maintainers":[{"name":"arusasaki","email":"info@wabiaxis.com"}],"readme":"<div align=\"center\">\n\n# 🐦‍⬛ Antigravity Bridge\n\n**Control your local coding environment from your smartphone, via Telegram.**\n\nAntigravity Bridge is a local CLI tool that connects your computer to a Telegram bot. Once running on your machine, you can chat with the bot from anywhere to run commands, generate code, edit files, and control your local Antigravity IDE workspace using Google Gemini.\n\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Node.js](https://img.shields.io/badge/node-22+-green.svg)](https://nodejs.org)\n\n</div>\n\n---\n\n## 🎯 What is this?\nUnlike traditional cloud bots, **Antigravity Bridge runs locally on your PC**. \nWhen you message the bot on Telegram, the instructions are routed directly to your local machine, where the locally-installed Gemini CLI executes them within your file system. \n\nIt's essentially a remote control for your local IDE.\n\n## ✨ Features\n\n- 💻 **Local Execution**: Edits files and runs commands directly on your PC.\n- 🧠 **Conversational Memory**: OpenClaw-style two-layer memory (short-term + persistent facts).\n- 📡 **Streaming Responses**: Real-time typing feed via Telegram.\n- 🎤 **Voice Messages**: Send voice memos on the go — they're auto-transcribed and processed.\n- 📷 **Image/File Analysis**: Send photos or files to your local workspace for analysis.\n- ⚡ **Zero Cloud Cost**: Uses your Google AI Studio Free Tier API Key.\n- 🔒 **Private**: Only you (the authorized user) can control your machine.\n\n---\n\n## 🚀 Quick Start (2 Minutes)\n\n### 1. Requirements\n- Node.js installed on your computer.\n- [Antigravity IDE](https://antigravity.dev) (or just the Gemini CLI) installed locally.\n- A Telegram Bot Token from [@BotFather](https://t.me/BotFather).\n\n### 2. Run the Bridge\n\nOpen a terminal on your computer and run:\n\n```bash\nnpx @arusasaki/antigravity-bridge --token=YOUR_BOT_TOKEN\n```\n\n*Optional arguments:*\n- `--workspace=/path/to/folder` (Set default working directory)\n- `--users=123456789` (Restrict access to your Telegram User ID - recommended for security!)\n\n### 3. Chat!\nOpen Telegram on your phone, find your bot, and send a message like:\n> *\"Create a new React component called Button in the src folder.\"*\n\nWatch your local files update instantly!\n\n## 💤 Running While Your PC is Closed\nIf you want to use the bridge while away from home with your laptop closed, your computer must stay awake to receive messages. Here are the common setups:\n\n1. **Keep Mac Awake (Recommended)**: Plug in your laptop and use a free app like [Amphetamine](https://apps.apple.com/us/app/amphetamine/id937984704) or the built-in `caffeinate` terminal command to prevent it from sleeping when the lid is closed.\n2. **Always-On Mini PC**: Run the bridge on a cheap, always-on machine at home (like a Mac Mini or Raspberry Pi) that syncs your workspace.\n3. **Cloud VPS**: If you code on a remote server (AWS, Linode, etc.), simply run the bridge via `pm2` or `tmux` on the server so it's accessible 24/7.\n\n---\n\n## 🎮 Usage & Commands\n\n| Command | Description |\n|---------|-------------|\n| `/start` | Welcome and status check |\n| `/models` | Switch AI model (Gemini 2.5 Flash / Pro, etc.) |\n| `/mode` | Toggle Planning / Fast mode |\n| `/memory` | View conversation memory |\n| `/remember fact` | Save a persistent fact |\n| `/clear` | Clear conversation context |\n| `/forget` | Clear all memory |\n| `/jobs` | View active parallel jobs |\n| `/cancel` | Cancel a running task |\n\n### Quick Action Buttons\nAfter the bot responds, quick action buttons appear:\n- 📝 **Continue** — Ask the AI to keep going\n- 🔍 **Run Tests** — Request test execution\n- 🔄 **Retry** — Re-run the last prompt\n- 🧹 **Clear Context** — Clear recent conversation history\n\n---\n\n## 🧠 Memory System\n\nAntigravity Bridge uses a two-layer memory system so it remembers your context even if you restart the bridge:\n\n1. **Short-Term Memory**: The last 10 exchanges are injected into every prompt. Persists to disk locally (`~/.antigravity-bridge/sessions/`).\n2. **Long-Term Memory**: Persistent facts stored permanently. The bot **auto-extracts** important decisions, URLs, and errors from its own responses to save them here. You can also manually add facts with `/remember`.\n\n---\n\n## ⚙️ Advanced Configuration (Optional)\n\nInstead of passing CLI flags every time, you can clone the repository and use a `.env` file:\n\n```bash\ngit clone https://github.com/Arusasaki/antigravity-bridge.git\ncd antigravity-bridge\nnpm install\ncp .env.example .env\n```\n\nEdit your `.env`:\n```env\nTELEGRAM_BOT_TOKEN=your_token\nAUTHORIZED_USER_IDS=your_telegram_id\nDEFAULT_WORKSPACE=/path/to/your/project\n```\n\nThen run:\n```bash\nnpm start\n```\n\n## 🤝 Contributing\nContributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) to get started.\n\n## 📄 License\n[MIT](LICENSE)\n\n<div align=\"center\">\nBuilt with ❤️ by Arusasaki\n</div>\n","readmeFilename":"README.md"}