Metadata-Version: 2.4
Name: antimatter-ag2
Version: 2.0.0
Summary: Antimatter AG2 Adapter — companion daemon for Google AntiGravity IDE
Project-URL: Homepage, https://saifmukhtar.dev
Project-URL: Repository, https://github.com/saifmukhtar/antimatter
Project-URL: Issues, https://github.com/saifmukhtar/antimatter/issues
Project-URL: Documentation, https://saifmukhtar.dev/docs/antimatter
Project-URL: Changelog, https://github.com/saifmukhtar/antimatter/releases
Author-email: Saif Mukhtar <saifmukhtar@saifmukhtar.dev>
License: MIT License
        
        Copyright (c) 2026 Saif Mukhtar
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: ai,android,antigravity,bridge,ide,mobile,websocket
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Communications
Classifier: Topic :: Software Development
Requires-Python: >=3.11
Requires-Dist: google-antigravity==0.1.2
Requires-Dist: websockets==15.0.1
Provides-Extra: test
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'test'
Requires-Dist: pytest>=7.0.0; extra == 'test'
Description-Content-Type: text/markdown

# Antimatter: Antigravity 2.0 Adapter (AG2)

This directory contains the Antimatter IPC adapter for the Antigravity 2.0 SDK CLI.

## Architecture

This adapter follows the **Independent Adapter Model**. It does NOT contain any complex networking, Cloudflare tunnels, or cryptographic pairing logic. Instead, it acts purely as a "dumb" IPC client that connects to the central Antimatter Gateway.

1. **Connection**: The daemon connects locally to the Gateway via WebSocket at `ws://127.0.0.1:8765`.
2. **Registration**: Upon connection, it sends `{"type": "REGISTER_ADAPTER", "name": "ag2"}`.
3. **Execution**: When you send a message from the Antimatter Android app targeting AG2, the Gateway securely routes that payload to this adapter. This adapter interfaces with the Antigravity 2.0 SDK by monitoring the `.system_generated/logs/transcript.jsonl` files and submitting local Python subprocess commands.

## Building

```bash
uv build
uv tool install .
```

For full system documentation, please see the `docs/` folder in the repository root.
