Skip to content

Commit a96e269

Browse files
committed
feat: add Zed ACP build scripts and cleanup Linux build
- Add build:zed and build:zed:all npm scripts - Add scripts/build-zed-acp.js for Zed extension builds - Remove unused NODE_MAJOR variable in Linux build - Fix empty catch blocks to use proper syntax - Normalize trailing whitespace in build-standalone-linux.js
1 parent cb059e8 commit a96e269

7 files changed

Lines changed: 375 additions & 65 deletions

File tree

distributions/zed/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../LICENSE

distributions/zed/README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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.

distributions/zed/extension.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
id = "kolosal"
2+
name = "Kolosal"
3+
description = "AI-powered command-line workflow tool for developers"
4+
version = "0.1.3"
5+
schema_version = 1
6+
authors = ["Kolosal AI"]
7+
repository = "https://github.com/KolosalAI/kolosal-cli"
8+
9+
[agent_servers.kolosal]
10+
name = "Kolosal"
11+
icon = "./icons/kolosal.svg"
12+
13+
[agent_servers.kolosal.targets.darwin-aarch64]
14+
archive = "https://github.com/KolosalAI/kolosal-cli/releases/download/v0.1.3/kolosal-acp-darwin-aarch64-0.1.3.zip"
15+
cmd = "./kolosal-acp"
16+
17+
[agent_servers.kolosal.targets.darwin-x86_64]
18+
archive = "https://github.com/KolosalAI/kolosal-cli/releases/download/v0.1.3/kolosal-acp-darwin-x86_64-0.1.3.zip"
19+
cmd = "./kolosal-acp"
20+
21+
[agent_servers.kolosal.targets.linux-aarch64]
22+
archive = "https://github.com/KolosalAI/kolosal-cli/releases/download/v0.1.3/kolosal-acp-linux-aarch64-0.1.3.zip"
23+
cmd = "./kolosal-acp"
24+
25+
[agent_servers.kolosal.targets.linux-x86_64]
26+
archive = "https://github.com/KolosalAI/kolosal-cli/releases/download/v0.1.3/kolosal-acp-linux-x86_64-0.1.3.zip"
27+
cmd = "./kolosal-acp"
28+
29+
[agent_servers.kolosal.targets.windows-aarch64]
30+
archive = "https://github.com/KolosalAI/kolosal-cli/releases/download/v0.1.3/kolosal-acp-windows-aarch64-0.1.3.zip"
31+
cmd = "./kolosal-acp.exe"
32+
33+
[agent_servers.kolosal.targets.windows-x86_64]
34+
archive = "https://github.com/KolosalAI/kolosal-cli/releases/download/v0.1.3/kolosal-acp-windows-x86_64-0.1.3.zip"
35+
cmd = "./kolosal-acp.exe"
Lines changed: 4 additions & 0 deletions
Loading

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
"build:linux:deb": "node scripts/build-standalone-linux.js deb",
4444
"build:linux:rpm": "node scripts/build-standalone-linux.js rpm",
4545
"build:linux:tar": "node scripts/build-standalone-linux.js tar",
46+
"build:zed": "node scripts/build-zed-acp.js",
47+
"build:zed:all": "node scripts/build-zed-acp.js --all",
4648
"build:packages": "npm run build --workspaces",
4749
"build:sandbox": "cross-env NODE_OPTIONS=\"--no-deprecation\" node scripts/build_sandbox.js --skip-npm-install-build",
4850
"bundle": "npm run generate && cross-env NODE_OPTIONS=\"--no-deprecation\" node esbuild.config.js && cross-env NODE_OPTIONS=\"--no-deprecation\" node scripts/copy_bundle_assets.js",

0 commit comments

Comments
 (0)