amp-acp 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +26 -0
  2. package/dist/index.js +10 -11
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -128,6 +128,32 @@ You can configure multiple MCP servers to extend Amp's capabilities:
128
128
 
129
129
  For more details, see [docs/mcp-passthrough.md](docs/mcp-passthrough.md).
130
130
 
131
+ ## Using Pre-built Binaries
132
+
133
+ Pre-built binaries are available on the [GitHub Releases](https://github.com/tao12345666333/amp-acp/releases) page for:
134
+
135
+ | Platform | Architecture | Binary |
136
+ |----------|-------------|--------|
137
+ | Linux | x64 | `amp-acp-linux-x64` |
138
+ | Linux | arm64 | `amp-acp-linux-arm64` |
139
+ | macOS | x64 (Intel) | `amp-acp-darwin-x64` |
140
+ | macOS | arm64 (Apple Silicon) | `amp-acp-darwin-arm64` |
141
+ | Windows | x64 | `amp-acp-windows-x64.exe` |
142
+
143
+ Download the binary for your platform, make it executable (`chmod +x` on Linux/macOS), and configure Zed to use it:
144
+
145
+ ```json
146
+ {
147
+ "agent_servers": {
148
+ "Amp": {
149
+ "command": "/path/to/amp-acp-darwin-arm64"
150
+ }
151
+ }
152
+ }
153
+ ```
154
+
155
+ These are standalone executables with no runtime dependencies — no Node.js or Bun required.
156
+
131
157
  ## Troubleshooting
132
158
 
133
159
  **Adapter doesn't start**: Make sure you have Node.js 18 or later installed. Run `node --version` to check.
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
- #!/usr/bin/env bun
2
- // @bun
1
+ #!/usr/bin/env node
3
2
  var __defProp = Object.defineProperty;
4
3
  var __export = (target, all) => {
5
4
  for (var name in all)
@@ -5075,7 +5074,7 @@ class RequestError extends Error {
5075
5074
  }
5076
5075
 
5077
5076
  // src/utils.ts
5078
- import { WritableStream as WritableStream2, ReadableStream as ReadableStream2 } from "stream/web";
5077
+ import { WritableStream as WritableStream2, ReadableStream as ReadableStream2 } from "node:stream/web";
5079
5078
  function nodeToWebWritable(nodeStream) {
5080
5079
  return new WritableStream2({
5081
5080
  write(chunk) {
@@ -5101,12 +5100,12 @@ function nodeToWebReadable(nodeStream) {
5101
5100
  }
5102
5101
 
5103
5102
  // node_modules/@sourcegraph/amp-sdk/dist/index.js
5104
- import { spawn } from "child_process";
5105
- import fs from "fs";
5106
- import { mkdir, readFile, rm, writeFile } from "fs/promises";
5107
- import { createRequire } from "module";
5108
- import path from "path";
5109
- import { createInterface } from "readline";
5103
+ import { spawn } from "node:child_process";
5104
+ import fs from "node:fs";
5105
+ import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
5106
+ import { createRequire } from "node:module";
5107
+ import path from "node:path";
5108
+ import { createInterface } from "node:readline";
5110
5109
  var __defProp2 = Object.defineProperty;
5111
5110
  var __export2 = (target, all) => {
5112
5111
  for (var name in all)
@@ -9536,7 +9535,7 @@ function safeJson(x) {
9536
9535
  // package.json
9537
9536
  var package_default = {
9538
9537
  name: "amp-acp",
9539
- version: "0.5.0",
9538
+ version: "0.6.0",
9540
9539
  private: false,
9541
9540
  type: "module",
9542
9541
  main: "dist/index.js",
@@ -9553,7 +9552,7 @@ var package_default = {
9553
9552
  url: "https://github.com/tao12345666333/amp-acp"
9554
9553
  },
9555
9554
  scripts: {
9556
- build: "bun build src/index.ts --target=bun --outdir=dist --entry-naming=[dir]/[name].js",
9555
+ build: "bun build src/index.ts --target=node --outdir=dist --entry-naming=[dir]/[name].js",
9557
9556
  "build:binary": "bun build src/index.ts --compile --outfile dist/amp-acp",
9558
9557
  start: "bun dist/index.js",
9559
9558
  lint: "tsc --noEmit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amp-acp",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -17,7 +17,7 @@
17
17
  "url": "https://github.com/tao12345666333/amp-acp"
18
18
  },
19
19
  "scripts": {
20
- "build": "bun build src/index.ts --target=bun --outdir=dist --entry-naming=[dir]/[name].js",
20
+ "build": "bun build src/index.ts --target=node --outdir=dist --entry-naming=[dir]/[name].js",
21
21
  "build:binary": "bun build src/index.ts --compile --outfile dist/amp-acp",
22
22
  "start": "bun dist/index.js",
23
23
  "lint": "tsc --noEmit",