@sjawhar/claude-envoy 5.16.5 → 5.16.6
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/.omp-plugin/plugin.json
CHANGED
package/dist/envoy-channel.js
CHANGED
|
@@ -62256,7 +62256,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
|
|
|
62256
62256
|
|
|
62257
62257
|
// package.json
|
|
62258
62258
|
var name2 = "@sjawhar/claude-envoy";
|
|
62259
|
-
var version2 = "5.16.
|
|
62259
|
+
var version2 = "5.16.6";
|
|
62260
62260
|
var legion = {
|
|
62261
62261
|
daemonApiVersion: 220
|
|
62262
62262
|
};
|
package/package.json
CHANGED
|
@@ -19,9 +19,10 @@ agent-secrets NAME... [--reason 'TEXT'] [--wait DURATION] [--ttl DURATION] -- <c
|
|
|
19
19
|
- `--reason` is necessary wherever a person or the model judge decides: such a request that carries none is denied whole. A request every name of which is granted at once needs none. Write one sentence the approver can decide on, and name in it the issue you work on.
|
|
20
20
|
- Each key says who decides a request for it: `agent-secrets secret show NAME` prints it on its `decides:` line, beside the `guidance:` a model judge decides by. Meet that guidance in `--reason`. The judge grants a request or refuses it for good (77); one it cannot decide goes to the key's person.
|
|
21
21
|
- A session that must not block passes `--wait 0s` and reads the decision later with `agent-secrets status <request_id>`.
|
|
22
|
-
The same command run again (the same names and `--
|
|
23
|
-
-
|
|
24
|
-
|
|
22
|
+
The same command run again (the same names, `--ttl` and `--target`) uses the live grant or joins the waiting request, and asks nobody again.
|
|
23
|
+
- A GitHub App credential is a profile. `--target ACCOUNT`, or `--target ACCOUNT/REPOSITORY` for each repository of one account, narrows it in a run of that name alone.
|
|
24
|
+
A profile of value `token` puts one token in the name; any other holds the JSON object of installations, which GitHub answers `401`.
|
|
25
|
+
A line `the profile NAME left out …` names permissions the token lacks (calls needing them get `403`).
|
|
25
26
|
|
|
26
27
|
## The command reads the value, your shell does not
|
|
27
28
|
|
|
@@ -33,6 +34,8 @@ agent-secrets LEGION_SLACK_BOT_TOKEN --reason 'check that the Slack token works'
|
|
|
33
34
|
sh -c 'printf "Authorization: Bearer %s" "$LEGION_SLACK_BOT_TOKEN" | curl -sS -H @- https://slack.com/api/auth.test'
|
|
34
35
|
```
|
|
35
36
|
|
|
37
|
+
In a pod, `gh` refuses `GH_TOKEN`, so call GitHub with `curl` that way: `agent-secrets GITHUB_READ --target ACCOUNT -- sh -c '…"$GITHUB_READ" | curl -sS -H @- https://api.github.com/…'`.
|
|
38
|
+
|
|
36
39
|
Read the body, not the exit status alone: Slack and many HTTP APIs answer `200` with `"ok": false`.
|
|
37
40
|
Send the body to `jq` straight from `curl` or through `printf '%s'`, never through `echo`, which can turn a `\n` inside a JSON string into a control character.
|
|
38
41
|
Slack's read methods go through `curl` under this client. Every post to Slack is a `slack_post` call, which holds the reply to one thread, to 4,000 characters and to one send.
|
|
@@ -71,7 +74,6 @@ A deployment can keep a secret's value back. The name then holds `agent-secrets-
|
|
|
71
74
|
|
|
72
75
|
- Make every call inside the `agent-secrets NAME -- <command>` run. A tool that caches a token across runs, or calls outside the run, stops working.
|
|
73
76
|
- A proxy refusal names why it refused the call, and a retry does not fix it: change what the command sent as the refusal says, or report it with the command and its output. `407` means the grant ended: ask again. `503` means the broker could not read the grant: try the call again.
|
|
74
|
-
- A GitHub narrowing and an airlocked name cannot share a run: ask for the GitHub App secret in a run of its own.
|
|
75
77
|
|
|
76
78
|
## What the exit status means
|
|
77
79
|
|
|
@@ -80,8 +82,8 @@ After a grant the client writes `agent-secrets: <names> from <source>` to stderr
|
|
|
80
82
|
- **1**: a refusal or a failure that the message names.
|
|
81
83
|
`UNKNOWN_SECRET` is final: do not ask again, and do not try a name of your own.
|
|
82
84
|
`PENDING_VALUE` means its owner is storing the value now: ask again in a few minutes.
|
|
83
|
-
`REQUEST_PENDING` names a waiting request of this session
|
|
84
|
-
- **2**: a usage error
|
|
85
|
+
`REQUEST_PENDING` names a waiting request of this session for the same name, whatever its target: ask again once it is decided.
|
|
86
|
+
- **2**: a usage error: no `AGENT_SECRETS_URL`, no `--`, a `--target` refused, or a removed GitHub flag (it names its replacement); or a broker too old to confirm `--target`. Nothing ran.
|
|
85
87
|
- **75**: the request is still undecided when `--wait` runs out, and nothing ran. The message gives the `agent-secrets status <request_id>` that reads it.
|
|
86
88
|
- **77**: the request was denied; the message gives the broker's reason when it recorded one. Final: ask for none of it again, and try no name of your own. The exceptions: on a message that says `ask again with --reason`, ask again with `--reason`; on `requester-group-unread`, ask again later.
|
|
87
89
|
|
|
@@ -94,7 +96,7 @@ Request a secret only to use it for the work in front of you: every request is r
|
|
|
94
96
|
|
|
95
97
|
1. Run the call through `agent-secrets`, with the secret your instructions name.
|
|
96
98
|
2. A GitHub `404` under your session's own token is that token's reach, not your access: GitHub answers `404` for a repository a token cannot see.
|
|
97
|
-
Ask for the GitHub
|
|
99
|
+
Ask for the GitHub profile your instructions name, with `--target` for the call's account or repositories, and call again.
|
|
98
100
|
3. Report a service unreachable only with the command you ran and the output you saw.
|
|
99
101
|
4. When no instruction names a secret for that service, report that, with the output of `agent-secrets identity --source` and the instructions you read. Request no name you guessed.
|
|
100
102
|
|