superagent-claude 0.3.0 → 0.3.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 +1 -1
- package/lib/cli.js +1 -1
- package/lib/{main-CX62QQM7.js → main-CingWi3i.js} +2 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ It needs Node.js 22.19 or later. `npx superagent-claude start --config superagen
|
|
|
20
20
|
|
|
21
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.
|
|
22
22
|
|
|
23
|
-
The config needs `repositories
|
|
23
|
+
The config needs `repositories` and `policy.allowed`; `auth.mode` defaults to `api-key` and needs its credential. See [docs/getting-started.md](docs/getting-started.md), which also covers building from source.
|
|
24
24
|
|
|
25
25
|
A container image is published as `ghcr.io/ok0/superagent-claude`. See [Docker](docs/deploy.md#docker) to run it.
|
|
26
26
|
|
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.3.
|
|
16
|
+
var version = "0.3.1";
|
|
17
17
|
// src/infra/env.ts
|
|
18
18
|
/**
|
|
19
19
|
* Environment for subprocesses: only the inherited whitelist (PATH, HOME, LANG) plus explicitly named variables.
|
|
@@ -3066,18 +3066,8 @@ const SUBSCRIPTION_POLICY_WARNING = "auth.mode subscription runs the agent on a
|
|
|
3066
3066
|
const SHARED_USE_WARNING = "ToS risk: with auth.mode subscription, people other than the subscription owner (policy.allowed is not exactly [auth.owner]) can make the agent work on the owner's subscription; this shared use may violate the subscription terms.";
|
|
3067
3067
|
const SANDBOX_DOC = "docs/deploy.md#sandbox-in-containers";
|
|
3068
3068
|
const UNSANDBOXED_WARNING = `security.allowUnsandboxed is true and the runtime sandbox is unavailable here: sessions run without the sandbox, network.allow is not enforced and commands can read the agent's tokens from other processes; restrict egress outside the agent (see ${SANDBOX_DOC})`;
|
|
3069
|
-
const RULE_NUMBER = {
|
|
3070
|
-
credential: 1,
|
|
3071
|
-
"allowed-empty": 2,
|
|
3072
|
-
"repositories-empty": 3,
|
|
3073
|
-
"agent-allowed": 4,
|
|
3074
|
-
"subscription-shared": 6,
|
|
3075
|
-
unsandboxed: 7,
|
|
3076
|
-
"no-repository": 8
|
|
3077
|
-
};
|
|
3078
3069
|
function refused(rule, text) {
|
|
3079
|
-
|
|
3080
|
-
return new StartupRefused(rule, number ? `Startup refused (rule ${number}, ${rule}): ${text}` : `Startup refused (${rule}): ${text}`);
|
|
3070
|
+
return new StartupRefused(rule, `Startup refused (${rule}): ${text}`);
|
|
3081
3071
|
}
|
|
3082
3072
|
const present = (value) => typeof value === "string" && value.trim() !== "";
|
|
3083
3073
|
function resolveCredential(mode, env) {
|