superagent-claude 0.1.0-rc.1 → 0.1.1

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 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
- pnpm install && pnpm build
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
- node lib/cli.js start --config superagent-claude.json
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
@@ -29,7 +29,7 @@ function logFormat(argv, env) {
29
29
  return value === "text" || value === "json" ? value : void 0;
30
30
  }
31
31
  // src/cli/bin.ts
32
- /** After main() returns, the process exits on its own; if something still holds the event loop, it is ended this long after. */
32
+ /** After main() returns, the process is force-exited after this grace if something still holds the event loop. */
33
33
  const EXIT_GRACE_MS = 3e3;
34
34
  const argv = process.argv.slice(2);
35
35
  const json = argv[0] === "start" && logFormat(argv.slice(1), process.env) === "json";
@@ -55,7 +55,7 @@ const exitSoon = () => {
55
55
  process.exit();
56
56
  }, EXIT_GRACE_MS).unref();
57
57
  };
58
- import("./main-B7a_g0IO.js").then(({ main }) => main(argv, {
58
+ import("./main-DrCQeHQM.js").then(({ main }) => main(argv, {
59
59
  out: (s) => {
60
60
  process.stdout.write(s);
61
61
  },