@sourcegraph/amp 0.0.1749528382-g7cbb6a → 0.0.1749547696-g09fbd0
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.
- package/README.md +35 -13
- package/dist/amp.js +3 -3
- package/dist/{client-CVhur12l.js → client-BuGLbCu1.js} +1 -1
- package/dist/{console-DYNXAhuM.js → console-Cx8l59nN.js} +17692 -17694
- package/dist/{create_file.node-DbnEvgoc.js → create_file.node-DlHzZW4R.js} +1 -1
- package/dist/{edit_file.node-CaI13u86.js → edit_file.node-P5pJKnHg.js} +2 -2
- package/dist/{executable-Bu3vnhAl.js → executable-om4Ksp8H.js} +1 -1
- package/dist/{files-CkQSL46L.js → files-CsZ0HVHo.js} +1 -1
- package/dist/{glob.node-BLHdXTAN.js → glob.node-BSoohY0b.js} +3 -3
- package/dist/{index-DbwKirCH.js → index-BlPqgTTf.js} +1 -1
- package/dist/{list_directory.node-Cgi54quk.js → list_directory.node-B5epLeSX.js} +1 -1
- package/dist/{load-profile-B4oOvvSi.js → load-profile-ETpIGZq-.js} +1 -1
- package/dist/{main-BqC4AhvX.js → main-DXoQkxrD.js} +1337 -1351
- package/dist/{node-BtXyYHZ4.js → node--f-b5mrX.js} +1 -1
- package/dist/{node-Cd8RO6WR.js → node-BZUpEcDB.js} +3 -3
- package/dist/{node-pVKNsUGR.js → node-BvoaWaZo.js} +3 -3
- package/dist/{node-DV4EOcve.js → node-C1lMLG-T.js} +2 -2
- package/dist/{node-BI94Hp4Q.js → node-CPXxAJ8V.js} +2 -2
- package/dist/{node-melUkE2F.js → node-ChO0NLsP.js} +2 -2
- package/dist/{read_file.node-ANVmmO1m.js → read_file.node-CmzlH3Dv.js} +1 -1
- package/dist/{stdio-bGtSGugT.js → stdio-BGqoRhAL.js} +2 -2
- package/dist/storybook.js +1 -1
- package/dist/{undo_edit.node-BTA5X7-u.js → undo_edit.node-7LgjTILd.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,18 +1,28 @@
|
|
1
1
|
# Amp CLI
|
2
2
|
|
3
|
-
[Amp](https://ampcode.com) is an agentic coding tool
|
3
|
+
[Amp](https://ampcode.com) is an agentic coding tool built by [Sourcegraph](https://sourcegraph.com). It runs in VS Code (and compatible forks like Cursor, Windsurf, and VSCodium) and as a command-line tool. It's also multiplayer — you can share threads and collaborate with your team.
|
4
4
|
|
5
|
-
##
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install globally with your preferred package manager:
|
6
8
|
|
7
9
|
```bash
|
8
|
-
|
10
|
+
pnpm add -g @sourcegraph/amp
|
9
11
|
# or
|
10
12
|
yarn global add @sourcegraph/amp
|
11
13
|
# or
|
12
|
-
|
14
|
+
npm install -g @sourcegraph/amp
|
13
15
|
```
|
14
16
|
|
15
|
-
|
17
|
+
Alternatively, run without installing:
|
18
|
+
|
19
|
+
```bash
|
20
|
+
npx @sourcegraph/amp
|
21
|
+
```
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
After installation, run:
|
16
26
|
|
17
27
|
```bash
|
18
28
|
amp
|
@@ -22,19 +32,31 @@ See [**Amp Owner's Manual**](https://ampcode.com/manual) for more information ab
|
|
22
32
|
|
23
33
|
## Authentication
|
24
34
|
|
25
|
-
|
35
|
+
**Option 1: Interactive Login (Recommended)**
|
36
|
+
|
37
|
+
The first time you run `amp`, use the login command to authenticate via [ampcode.com](https://ampcode.com):
|
38
|
+
|
39
|
+
```bash
|
40
|
+
amp login
|
41
|
+
```
|
42
|
+
|
43
|
+
This opens your browser to complete authentication. Your threads will be synced and shareable across all clients.
|
44
|
+
|
45
|
+
**Option 2: API Key Environment Variable**
|
26
46
|
|
27
|
-
If you can't
|
47
|
+
If you can't use the interactive flow, set your API key as an environment variable:
|
28
48
|
|
29
|
-
1. Go to [ampcode.com/settings](https://ampcode.com/settings) to get your
|
30
|
-
2. Set it
|
49
|
+
1. Go to [ampcode.com/settings](https://ampcode.com/settings) to get your API key
|
50
|
+
2. Set it in your environment:
|
31
51
|
|
32
52
|
```bash
|
33
|
-
export AMP_API_KEY=
|
53
|
+
export AMP_API_KEY=your-api-key-here
|
34
54
|
```
|
35
55
|
|
36
|
-
##
|
56
|
+
## Corporate Networks
|
37
57
|
|
38
|
-
|
58
|
+
The Amp CLI supports proxy servers and custom certificates for corporate environments. See the [Corporate Networks section](https://ampcode.com/manual#corporate-networks) in the Amp Owner's Manual for configuration details.
|
59
|
+
|
60
|
+
## Configuration
|
39
61
|
|
40
|
-
|
62
|
+
For advanced settings and configuration file locations, see the [Configuration section](https://ampcode.com/manual#configuration) in the Amp Owner's Manual.
|
package/dist/amp.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import "./console-
|
3
|
-
import "./main-
|
2
|
+
import "./console-Cx8l59nN.js";
|
3
|
+
import "./main-DXoQkxrD.js";
|
4
4
|
import "node:crypto";
|
5
5
|
import "node:fs/promises";
|
6
6
|
import "node:path";
|
7
7
|
import "node:process";
|
8
|
-
import "./client-
|
8
|
+
import "./client-BuGLbCu1.js";
|