@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.
Files changed (24) hide show
  1. package/README.md +35 -13
  2. package/dist/amp.js +3 -3
  3. package/dist/{client-CVhur12l.js → client-BuGLbCu1.js} +1 -1
  4. package/dist/{console-DYNXAhuM.js → console-Cx8l59nN.js} +17692 -17694
  5. package/dist/{create_file.node-DbnEvgoc.js → create_file.node-DlHzZW4R.js} +1 -1
  6. package/dist/{edit_file.node-CaI13u86.js → edit_file.node-P5pJKnHg.js} +2 -2
  7. package/dist/{executable-Bu3vnhAl.js → executable-om4Ksp8H.js} +1 -1
  8. package/dist/{files-CkQSL46L.js → files-CsZ0HVHo.js} +1 -1
  9. package/dist/{glob.node-BLHdXTAN.js → glob.node-BSoohY0b.js} +3 -3
  10. package/dist/{index-DbwKirCH.js → index-BlPqgTTf.js} +1 -1
  11. package/dist/{list_directory.node-Cgi54quk.js → list_directory.node-B5epLeSX.js} +1 -1
  12. package/dist/{load-profile-B4oOvvSi.js → load-profile-ETpIGZq-.js} +1 -1
  13. package/dist/{main-BqC4AhvX.js → main-DXoQkxrD.js} +1337 -1351
  14. package/dist/{node-BtXyYHZ4.js → node--f-b5mrX.js} +1 -1
  15. package/dist/{node-Cd8RO6WR.js → node-BZUpEcDB.js} +3 -3
  16. package/dist/{node-pVKNsUGR.js → node-BvoaWaZo.js} +3 -3
  17. package/dist/{node-DV4EOcve.js → node-C1lMLG-T.js} +2 -2
  18. package/dist/{node-BI94Hp4Q.js → node-CPXxAJ8V.js} +2 -2
  19. package/dist/{node-melUkE2F.js → node-ChO0NLsP.js} +2 -2
  20. package/dist/{read_file.node-ANVmmO1m.js → read_file.node-CmzlH3Dv.js} +1 -1
  21. package/dist/{stdio-bGtSGugT.js → stdio-BGqoRhAL.js} +2 -2
  22. package/dist/storybook.js +1 -1
  23. package/dist/{undo_edit.node-BTA5X7-u.js → undo_edit.node-7LgjTILd.js} +1 -1
  24. 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, in research preview from Sourcegraph. This is the CLI for Amp. You can also use [Amp in VS Code](https://marketplace.visualstudio.com/items?itemName=sourcegraph.amp).
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
- ## Usage
5
+ ## Installation
6
+
7
+ Install globally with your preferred package manager:
6
8
 
7
9
  ```bash
8
- npm install -g @sourcegraph/amp
10
+ pnpm add -g @sourcegraph/amp
9
11
  # or
10
12
  yarn global add @sourcegraph/amp
11
13
  # or
12
- pnpm add -g @sourcegraph/amp
14
+ npm install -g @sourcegraph/amp
13
15
  ```
14
16
 
15
- Then run:
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
- The first time you run `amp`, you'll authenticate via [ampcode.com](https://ampcode.com). Your threads will be synced and shareable, and you don't need to provide your own API keys for LLM inference.
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 sign in with the web-based flow, you may also use an Amp API key as an environment variable:
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 Amp API key.
30
- 2. Set it as an environment variable:
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=your_amp_api_key_here
53
+ export AMP_API_KEY=your-api-key-here
34
54
  ```
35
55
 
36
- ## Configuration
56
+ ## Corporate Networks
37
57
 
38
- Settings are read from `~/.config/amp/settings.json` (or `$XDG_CONFIG_HOME/amp/settings.json` if defined). This is a JSON file that uses the same properties as in the [Amp VS Code extension](https://marketplace.visualstudio.com/items?itemName=sourcegraph.amp). See the [Amp Owner's Manual](https://ampcode.com/manual) for more information.
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
- API keys are read from `~/.local/share/amp/secrets.json`
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-DYNXAhuM.js";
3
- import "./main-BqC4AhvX.js";
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-CVhur12l.js";
8
+ import "./client-BuGLbCu1.js";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { f as n, E as i, aV as c, s as p, p as w } from "./console-DYNXAhuM.js";
2
+ import { f as n, E as i, aV as c, s as p, p as w } from "./console-Cx8l59nN.js";
3
3
  const m = !0;
4
4
  function f() {
5
5
  return new Proxy(