superagent-claude 0.1.0-rc.1 → 0.1.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.
- package/README.md +7 -3
- package/lib/cli.js +1 -1
- package/lib/{main-B7a_g0IO.js → main-Br6CBO2s.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,16 +9,20 @@ Take as little human attention as possible, and give as much value as possible.
|
|
|
9
9
|
## Quick start
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
|
|
12
|
+
npm i -g superagent-claude
|
|
13
13
|
export SUPERAGENT_CLAUDE_GITHUB_TOKEN=<agent account token>
|
|
14
14
|
export ANTHROPIC_API_KEY=<API key> # either: API key
|
|
15
15
|
export CLAUDE_CODE_OAUTH_TOKEN=<token> # or: Claude subscription (token from `claude setup-token`)
|
|
16
|
-
|
|
16
|
+
superagent-claude start --config superagent-claude.json
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
It needs Node.js 22.19 or later. `npx superagent-claude start --config superagent-claude.json` runs it without a global install.
|
|
20
|
+
|
|
19
21
|
`auth.mode` picks which one (`api-key` or `subscription`); Bedrock and Vertex also work. See [docs/authentication.md](docs/authentication.md) for both modes and the subscription terms warning.
|
|
20
22
|
|
|
21
|
-
The config needs `repositories`, `policy.allowed` and `auth.mode`. See [docs/getting-started.md](docs/getting-started.md).
|
|
23
|
+
The config needs `repositories`, `policy.allowed` and `auth.mode`. See [docs/getting-started.md](docs/getting-started.md), which also covers building from source.
|
|
24
|
+
|
|
25
|
+
A container image is published as `ghcr.io/ok0/superagent-claude`. See [Docker](docs/deploy.md#docker) to run it.
|
|
22
26
|
|
|
23
27
|
## Documentation
|
|
24
28
|
|
package/lib/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import { DatabaseSync } from "node:sqlite";
|
|
|
13
13
|
import { checkSync, lockSync } from "proper-lockfile";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
// package.json
|
|
16
|
-
var version = "0.1.0
|
|
16
|
+
var version = "0.1.0";
|
|
17
17
|
// src/infra/env.ts
|
|
18
18
|
/** Environment for subprocesses: only the inherited whitelist (PATH, HOME, LANG) plus explicitly named variables; the daemon environment is never passed whole. */
|
|
19
19
|
const INHERITED_ENV = [
|