@sjawhar/claude-envoy 2.19.0 → 2.19.2

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.
@@ -42396,6 +42396,7 @@ function hasErrnoCode(error, code) {
42396
42396
  var STDIN = "-";
42397
42397
  var BARE_WORD = /^[A-Za-z0-9_./:@%+=,-]+$/;
42398
42398
  var OPTION_SEPARATOR = ": ";
42399
+ var LOCAL_FILE_FIELD = { tool: "dispatch_artifact", field: "path" };
42399
42400
  function commandName(tool) {
42400
42401
  return tool.replace(/^dispatch_/, "").replaceAll("_", "-");
42401
42402
  }
@@ -42648,6 +42649,7 @@ function parseCommand(argv, io) {
42648
42649
  const args = {};
42649
42650
  const setBy = new Map;
42650
42651
  const problems = [];
42652
+ const bareDashes = new Set;
42651
42653
  let help = false;
42652
42654
  let dryRun = false;
42653
42655
  let stdinFlag;
@@ -42764,6 +42766,10 @@ function parseCommand(argv, io) {
42764
42766
  const parsed = info.kind === "number" ? number(flag, value) : value;
42765
42767
  if (claimed && parsed !== undefined)
42766
42768
  args[field] = parsed;
42769
+ if (info.kind === "string" && value === STDIN && !(tool === LOCAL_FILE_FIELD.tool && field === LOCAL_FILE_FIELD.field) && !bareDashes.has(flag)) {
42770
+ bareDashes.add(flag);
42771
+ problems.push(`${flag} - sends the one character "-". ${flag}-file <path> reads ${flag} from a file, and ${flag}-file - reads it from stdin. One flag of a call may read stdin.`);
42772
+ }
42767
42773
  break;
42768
42774
  }
42769
42775
  case "file": {
@@ -42795,8 +42801,9 @@ function parseCommand(argv, io) {
42795
42801
  }
42796
42802
  if (help)
42797
42803
  return { kind: "help", tool };
42798
- if (problems.length > 0)
42799
- return { kind: "refused", tool, problems };
42804
+ if (problems.length > 0) {
42805
+ return problems.length === bareDashes.size ? { kind: "refused", tool, problems, aboutAFlag: false } : { kind: "refused", tool, problems };
42806
+ }
42800
42807
  return { kind: "call", tool, args, dryRun };
42801
42808
  }
42802
42809
  function appendedItem(kind, flag, value, number) {
@@ -56396,7 +56403,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
56396
56403
 
56397
56404
  // package.json
56398
56405
  var name = "@sjawhar/claude-envoy";
56399
- var version2 = "2.19.0";
56406
+ var version2 = "2.19.2";
56400
56407
  var legion = {
56401
56408
  daemonApiVersion: 123
56402
56409
  };
@@ -16767,6 +16767,7 @@ function hasErrnoCode(error, code) {
16767
16767
  var STDIN = "-";
16768
16768
  var BARE_WORD = /^[A-Za-z0-9_./:@%+=,-]+$/;
16769
16769
  var OPTION_SEPARATOR = ": ";
16770
+ var LOCAL_FILE_FIELD = { tool: "dispatch_artifact", field: "path" };
16770
16771
  function commandName(tool) {
16771
16772
  return tool.replace(/^dispatch_/, "").replaceAll("_", "-");
16772
16773
  }
@@ -17019,6 +17020,7 @@ function parseCommand(argv, io) {
17019
17020
  const args = {};
17020
17021
  const setBy = new Map;
17021
17022
  const problems = [];
17023
+ const bareDashes = new Set;
17022
17024
  let help = false;
17023
17025
  let dryRun = false;
17024
17026
  let stdinFlag;
@@ -17135,6 +17137,10 @@ function parseCommand(argv, io) {
17135
17137
  const parsed = info.kind === "number" ? number(flag, value) : value;
17136
17138
  if (claimed && parsed !== undefined)
17137
17139
  args[field] = parsed;
17140
+ if (info.kind === "string" && value === STDIN && !(tool === LOCAL_FILE_FIELD.tool && field === LOCAL_FILE_FIELD.field) && !bareDashes.has(flag)) {
17141
+ bareDashes.add(flag);
17142
+ problems.push(`${flag} - sends the one character "-". ${flag}-file <path> reads ${flag} from a file, and ${flag}-file - reads it from stdin. One flag of a call may read stdin.`);
17143
+ }
17138
17144
  break;
17139
17145
  }
17140
17146
  case "file": {
@@ -17166,8 +17172,9 @@ function parseCommand(argv, io) {
17166
17172
  }
17167
17173
  if (help)
17168
17174
  return { kind: "help", tool };
17169
- if (problems.length > 0)
17170
- return { kind: "refused", tool, problems };
17175
+ if (problems.length > 0) {
17176
+ return problems.length === bareDashes.size ? { kind: "refused", tool, problems, aboutAFlag: false } : { kind: "refused", tool, problems };
17177
+ }
17171
17178
  return { kind: "call", tool, args, dryRun };
17172
17179
  }
17173
17180
  function appendedItem(kind, flag, value, number) {
@@ -99,8 +99,11 @@ spec; nothing else decides what must be proved.
99
99
 
100
100
  **A result** is one run of one check, recorded with
101
101
  `dispatch result --issue <issue> --check <block id> --role <your role> --verdict pass --commit <sha>`,
102
- with `--surface`, `--run`, `--observed` and `--negative-control` as the check asks for them. The
103
- command prints the pull request body's line for it, and that line goes into the body unchanged.
102
+ with `--surface`, `--run`, `--observed` and `--negative-control` as the check asks for them. Each
103
+ of these flags takes text and refuses a bare `-`. Text from a file or from stdin goes in
104
+ `--run-file`, `--observed-file` or `--negative-control-file`. Only one of them per call may read
105
+ stdin (`-`). The command prints the pull request body's line for it, and that line goes into the
106
+ body unchanged.
104
107
  The surface is **production-like** — the repository's real-process test harness and fixtures, a
105
108
  sandbox repository, a real browser, a devN stack, staging, or a local stack with real migrations,
106
109
  one that has the resource the change touches — and `--run` or `--observed` carries a **link** to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "2.19.0",
3
+ "version": "2.19.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",
@@ -199,7 +199,8 @@ prompt, a skill, or the issue you work on. There is no list to browse and nothin
199
199
  grants a service-owned secret at once when the session's own service is the secret's owner, and
200
200
  denies every other session, with no person asked.
201
201
  - The `agent-secrets secret` forms (`list`, `show`, `create`, `set`, `retag`, `delete`, `restore`)
202
- act under a person's own cloud sign-in. They belong to the secret's owner, not to an agent.
202
+ call the broker's store under whatever cloud credential the environment gives them, and the
203
+ store's IAM decides what each may read and write.
203
204
  - Slack's read methods go through `curl` under this client. Every post to Slack stays a `slack_post`
204
205
  call, which holds the reply to one thread, to 4,000 characters and to one send.
205
206
 
@@ -223,12 +224,17 @@ for two reasons:
223
224
  `agent-secrets register --wait 10 --exec -- <the agent's command>`.
224
225
 
225
226
  On `UNKNOWN_SECRET` you stop, as above. You may tell the secret's owner how to find the cause:
226
- `agent-secrets secret list` and `agent-secrets secret show NAME`, under their own cloud sign-in
227
- (`gcloud auth login` against a broker on Google Cloud, their `AWS_PROFILE` against one on AWS).
227
+ `agent-secrets secret list` and `agent-secrets secret show NAME`, under a cloud sign-in that may
228
+ read the store (`gcloud auth login` against a broker on Google Cloud, an `AWS_PROFILE` against one
229
+ on AWS).
228
230
 
229
- An owner who must store a secret does every write under their own cloud sign-in.
231
+ A write runs under whatever credential the environment gives the command, and the store's IAM
232
+ decides whether it lands. On Google Cloud that is `CLOUDSDK_AUTH_ACCESS_TOKEN` when it is set, else
233
+ the Application Default Credentials, else the gcloud login; on AWS, `--profile`, else `AWS_PROFILE`.
230
234
  `agent-secrets secret set NAME` replaces the value of a secret that exists. A new one is
231
- `agent-secrets secret create NAME --owner me|shared --tier agent|human`. Both read the value from
235
+ `agent-secrets secret create NAME --owner me|shared|<email> --tier agent|human`. `--owner me` is
236
+ the email of the person the credential names, and is refused where it names none, as a token
237
+ minted for `cloud-platform` alone does: give `--owner <email>` there. Both read the value from
232
238
  standard input or from a prompt with echo off, never from an argument. Type it at the prompt, so it
233
239
  reaches no shell history.
234
240
 
@@ -8,7 +8,7 @@ description: "Use before your first dispatch command in a session: a message, co
8
8
  Dispatch is a record for the people who decide, never a log of your work.
9
9
 
10
10
  - Use the `dispatch` command; the HTTP API only for what no command does. `dispatch <command> --help` gives its rules and an example.
11
- - Put long text on stdin: `--<field>-file -` with a quoted here-document (`<<'EOF'`); give object and list fields as JSON.
11
+ - Put long text on stdin, one flag per call: `--<field>-file -` with `<<'EOF'`; objects and lists take JSON.
12
12
  - Exit 1 is a refusal, 2 a usage error. A refusal lists every problem: fix all, call once.
13
13
  - Never work around a hard-to-use command, or one storing or losing something wrongly: open an issue in the owning project and tell its controller. A Legion role tells its architect (`skill://legion-worker/references/findings.md`).
14
14