|
| 1 | +# Kolosal for Zed |
| 2 | + |
| 3 | +This directory contains the Zed editor extension for Kolosal AI. |
| 4 | + |
| 5 | +## Structure |
| 6 | + |
| 7 | +``` |
| 8 | +distributions/zed/ |
| 9 | +├── extension.toml # Zed extension manifest |
| 10 | +├── icons/ |
| 11 | +│ └── kolosal.svg # Extension icon |
| 12 | +├── LICENSE # Apache 2.0 (symlink to root) |
| 13 | +└── README.md # This file |
| 14 | +``` |
| 15 | + |
| 16 | +## Building ACP Binaries |
| 17 | + |
| 18 | +The Zed extension requires ACP (Agent Control Protocol) binaries for each platform. |
| 19 | + |
| 20 | +### Build for Current Platform |
| 21 | + |
| 22 | +```bash |
| 23 | +node scripts/build-zed-acp.js |
| 24 | +``` |
| 25 | + |
| 26 | +### Build for All Platforms |
| 27 | + |
| 28 | +```bash |
| 29 | +node scripts/build-zed-acp.js --all |
| 30 | +``` |
| 31 | + |
| 32 | +Output will be in `dist/zed/`: |
| 33 | +- `kolosal-acp-darwin-aarch64-{version}.zip` |
| 34 | +- `kolosal-acp-darwin-x86_64-{version}.zip` |
| 35 | +- `kolosal-acp-linux-aarch64-{version}.zip` |
| 36 | +- `kolosal-acp-linux-x86_64-{version}.zip` |
| 37 | +- `kolosal-acp-windows-aarch64-{version}.zip` |
| 38 | +- `kolosal-acp-windows-x86_64-{version}.zip` |
| 39 | + |
| 40 | +## Publishing |
| 41 | + |
| 42 | +1. Build ACP binaries for all platforms |
| 43 | +2. Create a GitHub release with the version tag (e.g., `v0.1.3`) |
| 44 | +3. Upload all zip files to the release |
| 45 | +4. Update `extension.toml` with the correct version and URLs |
| 46 | +5. Submit the extension to the [Zed Extension Gallery](https://zed.dev/extensions) |
| 47 | + |
| 48 | +## Local Development |
| 49 | + |
| 50 | +To test the extension locally with Zed: |
| 51 | + |
| 52 | +1. Build the ACP binary for your platform: |
| 53 | + ```bash |
| 54 | + node scripts/build-zed-acp.js |
| 55 | + ``` |
| 56 | + |
| 57 | +2. Run Kolosal in ACP mode manually: |
| 58 | + ```bash |
| 59 | + kolosal --experimental-acp |
| 60 | + ``` |
| 61 | + |
| 62 | +## How It Works |
| 63 | + |
| 64 | +The Kolosal ACP binary communicates with Zed using JSON-RPC over stdin/stdout. The ACP protocol enables: |
| 65 | + |
| 66 | +- Session management |
| 67 | +- Tool execution with permission requests |
| 68 | +- File operations |
| 69 | +- Streaming responses |
| 70 | + |
| 71 | +See `packages/cli/src/zed-integration/` for implementation details. |
0 commit comments