@sjawhar/claude-envoy 4.16.0 → 4.17.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.
@@ -2,5 +2,5 @@
2
2
  "name": "claude-envoy",
3
3
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
4
4
  "mcpServers": "./.mcp.json",
5
- "version": "4.16.0"
5
+ "version": "4.17.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "4.16.0",
3
+ "version": "4.17.0",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
package/bin/envoy-send.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { isFinalRefusal } from "@legion/broker-client/token-errors"
1
+ import { isFinalRefusal } from "@legion/cipher-client/token-errors"
2
2
  import { holdUrlUserinfo, scrub, scrubProcessStreams } from "@legion/contracts/held-secrets"
3
3
  import { URL_NOT_PRINTED } from "@legion/contracts/log-text"
4
4
  import { messageFor } from "@legion/envoy-client/errors"
@@ -18537,7 +18537,7 @@ function askAnswerText(answer) {
18537
18537
  return `${selected} - ${text}`;
18538
18538
  }
18539
18539
 
18540
- // ../broker-client/src/wire.ts
18540
+ // ../cipher-client/src/wire.ts
18541
18541
  var TOKEN_PATH = "/v1/oauth/token";
18542
18542
  var GRANT_TYPE_TOKEN_EXCHANGE = "urn:ietf:params:oauth:grant-type:token-exchange";
18543
18543
  var EXCHANGE_CLIENT_ID = "dispatch-token-exchange";
@@ -18553,7 +18553,7 @@ var TOKEN_TYPE_DPOP = "DPoP";
18553
18553
  var POD_SESSION_NOT_REGISTERED = "pod_session_not_registered";
18554
18554
  var SESSION_NAME_NOT_THIS_REGISTRARS = "session_name_not_this_registrars";
18555
18555
 
18556
- // ../broker-client/src/refusal-text.ts
18556
+ // ../cipher-client/src/refusal-text.ts
18557
18557
  var KNOWN_BROKER_REFUSALS = new Set([
18558
18558
  "no entry lists the account this token names",
18559
18559
  "too many token requests; try again later",
@@ -18724,7 +18724,7 @@ function shownOAuthCode(code) {
18724
18724
  return KNOWN_OAUTH_ERROR_CODES.has(code) ? code : `unrecognised error code (${code.length} chars)`;
18725
18725
  }
18726
18726
 
18727
- // ../broker-client/src/signins.ts
18727
+ // ../cipher-client/src/signins.ts
18728
18728
  import { readdir, readFile } from "fs/promises";
18729
18729
  import { join } from "path";
18730
18730
 
@@ -18736,7 +18736,7 @@ function withoutTrailingSlashes(url) {
18736
18736
  return url.slice(0, end);
18737
18737
  }
18738
18738
 
18739
- // ../broker-client/src/error-text.ts
18739
+ // ../cipher-client/src/error-text.ts
18740
18740
  function messageOf(error) {
18741
18741
  return error instanceof Error ? error.message : String(error);
18742
18742
  }
@@ -18746,7 +18746,7 @@ function readErrorCode(error) {
18746
18746
  return typeof code === "string" && READ_ERROR_CODE.test(code) ? code : "an error";
18747
18747
  }
18748
18748
 
18749
- // ../broker-client/src/signins.ts
18749
+ // ../cipher-client/src/signins.ts
18750
18750
  var SIGNIN_DIR_VAR = "AGENT_SECRETS_SIGNIN_DIR";
18751
18751
  var PERSON_VAR = "AGENT_SECRETS_PERSON";
18752
18752
  var PERSON_TRADE_VAR = "PERSON_SIGNIN_TRADE";
@@ -18876,7 +18876,7 @@ async function signInFlow(env) {
18876
18876
  };
18877
18877
  }
18878
18878
 
18879
- // ../broker-client/src/token-errors.ts
18879
+ // ../cipher-client/src/token-errors.ts
18880
18880
  var TOO_MANY_REQUESTS = 429;
18881
18881
  var INVALID_DPOP_PROOF = "invalid_dpop_proof";
18882
18882
  var USE_DPOP_NONCE = "use_dpop_nonce";
@@ -26939,7 +26939,7 @@ async function executeDispatchTool(input) {
26939
26939
  return command.origin === "none" ? command.run(session) : command.run(await commandContext(session));
26940
26940
  }
26941
26941
 
26942
- // ../broker-client/src/dpop.ts
26942
+ // ../cipher-client/src/dpop.ts
26943
26943
  import {
26944
26944
  createHash,
26945
26945
  createPrivateKey,
@@ -27013,7 +27013,7 @@ async function importDpopKey(pkcs8Pem, name) {
27013
27013
  return dpopKey(privateKey, publicJwkOf(privateKey, name));
27014
27014
  }
27015
27015
 
27016
- // ../broker-client/src/metadata-identity.ts
27016
+ // ../cipher-client/src/metadata-identity.ts
27017
27017
  import { Agent, request } from "http";
27018
27018
  var METADATA_HOST_VAR = "GCE_METADATA_HOST";
27019
27019
  var DEFAULT_METADATA_HOST = "metadata.google.internal";
@@ -28312,7 +28312,7 @@ async function genericGrantRequest(config, grantType, parameters, options) {
28312
28312
  return result;
28313
28313
  }
28314
28314
 
28315
- // ../broker-client/src/token-client.ts
28315
+ // ../cipher-client/src/token-client.ts
28316
28316
  var DEFAULT_RENEW_BEFORE_MS = 5 * 60000;
28317
28317
  var BROKER_URL_SETTING = "the broker URL";
28318
28318
  var RETRY_FIRST_WAIT_MS = 15000;
@@ -28726,7 +28726,7 @@ function heldUntil(token) {
28726
28726
  }
28727
28727
  }
28728
28728
 
28729
- // ../broker-client/src/person-identity.ts
28729
+ // ../cipher-client/src/person-identity.ts
28730
28730
  var ISSUER_TIMEOUT_SECONDS = 30;
28731
28731
  var INVALID_GRANT2 = "invalid_grant";
28732
28732
  function issuerSaid(error) {
@@ -28804,7 +28804,7 @@ function personIdentity(record, flow, options = {}) {
28804
28804
  };
28805
28805
  }
28806
28806
 
28807
- // ../broker-client/src/pool-identity.ts
28807
+ // ../cipher-client/src/pool-identity.ts
28808
28808
  var DEFAULT_SECURITY_TOKEN_SERVICE_URL = "https://sts.googleapis.com/v1/token";
28809
28809
  var DEFAULT_IAM_CREDENTIALS_URL = "https://iamcredentials.googleapis.com";
28810
28810
  var REQUESTED_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token";
@@ -28938,7 +28938,7 @@ function poolIdentity(options) {
28938
28938
  };
28939
28939
  }
28940
28940
 
28941
- // ../broker-client/src/projected-token.ts
28941
+ // ../cipher-client/src/projected-token.ts
28942
28942
  import { readFile as readFile2 } from "fs/promises";
28943
28943
  function projectedToken(path, variable) {
28944
28944
  const named = `the projected service-account token ${variable} names`;
@@ -28962,7 +28962,7 @@ function projectedToken(path, variable) {
28962
28962
  };
28963
28963
  }
28964
28964
 
28965
- // ../broker-client/src/environment.ts
28965
+ // ../cipher-client/src/environment.ts
28966
28966
  var BROKER_URL_VAR = "AGENT_SECRETS_URL";
28967
28967
  var IDENTITY_VAR = "AGENT_SECRETS_MACHINE_IDENTITY";
28968
28968
  var MACHINE_TOKEN_FILE_VAR = "AGENT_SECRETS_MACHINE_TOKEN_FILE";
package/dist/dispatch.js CHANGED
@@ -18790,7 +18790,7 @@ function commandsHelp() {
18790
18790
  `);
18791
18791
  }
18792
18792
 
18793
- // ../broker-client/src/wire.ts
18793
+ // ../cipher-client/src/wire.ts
18794
18794
  var TOKEN_PATH = "/v1/oauth/token";
18795
18795
  var GRANT_TYPE_TOKEN_EXCHANGE = "urn:ietf:params:oauth:grant-type:token-exchange";
18796
18796
  var EXCHANGE_CLIENT_ID = "dispatch-token-exchange";
@@ -18806,7 +18806,7 @@ var TOKEN_TYPE_DPOP = "DPoP";
18806
18806
  var POD_SESSION_NOT_REGISTERED = "pod_session_not_registered";
18807
18807
  var SESSION_NAME_NOT_THIS_REGISTRARS = "session_name_not_this_registrars";
18808
18808
 
18809
- // ../broker-client/src/refusal-text.ts
18809
+ // ../cipher-client/src/refusal-text.ts
18810
18810
  var KNOWN_BROKER_REFUSALS = new Set([
18811
18811
  "no entry lists the account this token names",
18812
18812
  "too many token requests; try again later",
@@ -18977,7 +18977,7 @@ function shownOAuthCode(code) {
18977
18977
  return KNOWN_OAUTH_ERROR_CODES.has(code) ? code : `unrecognised error code (${code.length} chars)`;
18978
18978
  }
18979
18979
 
18980
- // ../broker-client/src/signins.ts
18980
+ // ../cipher-client/src/signins.ts
18981
18981
  import { readdir, readFile } from "fs/promises";
18982
18982
  import { join as join2 } from "path";
18983
18983
 
@@ -18989,7 +18989,7 @@ function withoutTrailingSlashes(url) {
18989
18989
  return url.slice(0, end);
18990
18990
  }
18991
18991
 
18992
- // ../broker-client/src/error-text.ts
18992
+ // ../cipher-client/src/error-text.ts
18993
18993
  function messageOf(error) {
18994
18994
  return error instanceof Error ? error.message : String(error);
18995
18995
  }
@@ -18999,7 +18999,7 @@ function readErrorCode(error) {
18999
18999
  return typeof code === "string" && READ_ERROR_CODE.test(code) ? code : "an error";
19000
19000
  }
19001
19001
 
19002
- // ../broker-client/src/signins.ts
19002
+ // ../cipher-client/src/signins.ts
19003
19003
  var SIGNIN_DIR_VAR = "AGENT_SECRETS_SIGNIN_DIR";
19004
19004
  var PERSON_VAR = "AGENT_SECRETS_PERSON";
19005
19005
  var PERSON_TRADE_VAR = "PERSON_SIGNIN_TRADE";
@@ -19129,7 +19129,7 @@ async function signInFlow(env) {
19129
19129
  };
19130
19130
  }
19131
19131
 
19132
- // ../broker-client/src/token-errors.ts
19132
+ // ../cipher-client/src/token-errors.ts
19133
19133
  var TOO_MANY_REQUESTS = 429;
19134
19134
  var INVALID_DPOP_PROOF = "invalid_dpop_proof";
19135
19135
  var USE_DPOP_NONCE = "use_dpop_nonce";
@@ -28190,7 +28190,7 @@ function nearestAncestorNamed(names, pid = process.pid, reader = PROC_READER) {
28190
28190
  return;
28191
28191
  }
28192
28192
 
28193
- // ../broker-client/src/dpop.ts
28193
+ // ../cipher-client/src/dpop.ts
28194
28194
  import {
28195
28195
  createHash as createHash3,
28196
28196
  createPrivateKey,
@@ -28264,7 +28264,7 @@ async function importDpopKey(pkcs8Pem, name) {
28264
28264
  return dpopKey(privateKey, publicJwkOf(privateKey, name));
28265
28265
  }
28266
28266
 
28267
- // ../broker-client/src/metadata-identity.ts
28267
+ // ../cipher-client/src/metadata-identity.ts
28268
28268
  import { Agent, request } from "http";
28269
28269
  var METADATA_HOST_VAR = "GCE_METADATA_HOST";
28270
28270
  var DEFAULT_METADATA_HOST = "metadata.google.internal";
@@ -29563,7 +29563,7 @@ async function genericGrantRequest(config, grantType, parameters, options) {
29563
29563
  return result;
29564
29564
  }
29565
29565
 
29566
- // ../broker-client/src/token-client.ts
29566
+ // ../cipher-client/src/token-client.ts
29567
29567
  var DEFAULT_RENEW_BEFORE_MS = 5 * 60000;
29568
29568
  var BROKER_URL_SETTING = "the broker URL";
29569
29569
  var RETRY_FIRST_WAIT_MS = 15000;
@@ -29977,7 +29977,7 @@ function heldUntil(token) {
29977
29977
  }
29978
29978
  }
29979
29979
 
29980
- // ../broker-client/src/person-identity.ts
29980
+ // ../cipher-client/src/person-identity.ts
29981
29981
  var ISSUER_TIMEOUT_SECONDS = 30;
29982
29982
  var INVALID_GRANT2 = "invalid_grant";
29983
29983
  function issuerSaid(error) {
@@ -30055,7 +30055,7 @@ function personIdentity(record, flow, options = {}) {
30055
30055
  };
30056
30056
  }
30057
30057
 
30058
- // ../broker-client/src/pool-identity.ts
30058
+ // ../cipher-client/src/pool-identity.ts
30059
30059
  var DEFAULT_SECURITY_TOKEN_SERVICE_URL = "https://sts.googleapis.com/v1/token";
30060
30060
  var DEFAULT_IAM_CREDENTIALS_URL = "https://iamcredentials.googleapis.com";
30061
30061
  var REQUESTED_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token";
@@ -30189,7 +30189,7 @@ function poolIdentity(options) {
30189
30189
  };
30190
30190
  }
30191
30191
 
30192
- // ../broker-client/src/projected-token.ts
30192
+ // ../cipher-client/src/projected-token.ts
30193
30193
  import { readFile as readFile2 } from "fs/promises";
30194
30194
  function projectedToken(path, variable) {
30195
30195
  const named = `the projected service-account token ${variable} names`;
@@ -30213,7 +30213,7 @@ function projectedToken(path, variable) {
30213
30213
  };
30214
30214
  }
30215
30215
 
30216
- // ../broker-client/src/environment.ts
30216
+ // ../cipher-client/src/environment.ts
30217
30217
  var BROKER_URL_VAR = "AGENT_SECRETS_URL";
30218
30218
  var IDENTITY_VAR = "AGENT_SECRETS_MACHINE_IDENTITY";
30219
30219
  var MACHINE_TOKEN_FILE_VAR = "AGENT_SECRETS_MACHINE_TOKEN_FILE";
@@ -40030,7 +40030,7 @@ function jsonErrorPosition(text) {
40030
40030
  // ../envoy-client/src/secret-file.ts
40031
40031
  import { readFileSync } from "fs";
40032
40032
 
40033
- // ../broker-client/src/error-text.ts
40033
+ // ../cipher-client/src/error-text.ts
40034
40034
  function messageOf(error) {
40035
40035
  return error instanceof Error ? error.message : String(error);
40036
40036
  }
@@ -40426,7 +40426,7 @@ function fileBearer(bearer, url, section, env, commands = "run") {
40426
40426
  return fileValue(bearer.token, bearer.field, bearer.path, env, commands);
40427
40427
  }
40428
40428
 
40429
- // ../broker-client/src/dpop.ts
40429
+ // ../cipher-client/src/dpop.ts
40430
40430
  import {
40431
40431
  createHash,
40432
40432
  createPrivateKey,
@@ -40500,10 +40500,10 @@ async function importDpopKey(pkcs8Pem, name) {
40500
40500
  return dpopKey(privateKey, publicJwkOf(privateKey, name));
40501
40501
  }
40502
40502
 
40503
- // ../broker-client/src/metadata-identity.ts
40503
+ // ../cipher-client/src/metadata-identity.ts
40504
40504
  import { Agent, request } from "http";
40505
40505
 
40506
- // ../broker-client/src/wire.ts
40506
+ // ../cipher-client/src/wire.ts
40507
40507
  var TOKEN_PATH = "/v1/oauth/token";
40508
40508
  var GRANT_TYPE_TOKEN_EXCHANGE = "urn:ietf:params:oauth:grant-type:token-exchange";
40509
40509
  var EXCHANGE_CLIENT_ID = "dispatch-token-exchange";
@@ -40519,7 +40519,7 @@ var TOKEN_TYPE_DPOP = "DPoP";
40519
40519
  var POD_SESSION_NOT_REGISTERED = "pod_session_not_registered";
40520
40520
  var SESSION_NAME_NOT_THIS_REGISTRARS = "session_name_not_this_registrars";
40521
40521
 
40522
- // ../broker-client/src/metadata-identity.ts
40522
+ // ../cipher-client/src/metadata-identity.ts
40523
40523
  var METADATA_HOST_VAR = "GCE_METADATA_HOST";
40524
40524
  var DEFAULT_METADATA_HOST = "metadata.google.internal";
40525
40525
  var IDENTITY_PATH = "/computeMetadata/v1/instance/service-accounts/default/identity";
@@ -41817,7 +41817,7 @@ async function genericGrantRequest(config, grantType, parameters, options) {
41817
41817
  return result;
41818
41818
  }
41819
41819
 
41820
- // ../broker-client/src/refusal-text.ts
41820
+ // ../cipher-client/src/refusal-text.ts
41821
41821
  var KNOWN_BROKER_REFUSALS = new Set([
41822
41822
  "no entry lists the account this token names",
41823
41823
  "too many token requests; try again later",
@@ -41988,7 +41988,7 @@ function shownOAuthCode(code) {
41988
41988
  return KNOWN_OAUTH_ERROR_CODES.has(code) ? code : `unrecognised error code (${code.length} chars)`;
41989
41989
  }
41990
41990
 
41991
- // ../broker-client/src/signins.ts
41991
+ // ../cipher-client/src/signins.ts
41992
41992
  import { readdir, readFile } from "fs/promises";
41993
41993
  import { join as join2 } from "path";
41994
41994
  var SIGNIN_DIR_VAR = "AGENT_SECRETS_SIGNIN_DIR";
@@ -42120,7 +42120,7 @@ async function signInFlow(env) {
42120
42120
  };
42121
42121
  }
42122
42122
 
42123
- // ../broker-client/src/token-errors.ts
42123
+ // ../cipher-client/src/token-errors.ts
42124
42124
  var TOO_MANY_REQUESTS = 429;
42125
42125
  var INVALID_DPOP_PROOF = "invalid_dpop_proof";
42126
42126
  var USE_DPOP_NONCE = "use_dpop_nonce";
@@ -42200,7 +42200,7 @@ function isFinalRefusal(error) {
42200
42200
  return error instanceof BrokerRefusedError && error.permanent || error instanceof SignInEndedError;
42201
42201
  }
42202
42202
 
42203
- // ../broker-client/src/token-client.ts
42203
+ // ../cipher-client/src/token-client.ts
42204
42204
  var DEFAULT_RENEW_BEFORE_MS = 5 * 60000;
42205
42205
  var BROKER_URL_SETTING = "the broker URL";
42206
42206
  var RETRY_FIRST_WAIT_MS = 15000;
@@ -42614,7 +42614,7 @@ function heldUntil(token) {
42614
42614
  }
42615
42615
  }
42616
42616
 
42617
- // ../broker-client/src/person-identity.ts
42617
+ // ../cipher-client/src/person-identity.ts
42618
42618
  var ISSUER_TIMEOUT_SECONDS = 30;
42619
42619
  var INVALID_GRANT2 = "invalid_grant";
42620
42620
  function issuerSaid(error) {
@@ -42692,7 +42692,7 @@ function personIdentity(record, flow, options = {}) {
42692
42692
  };
42693
42693
  }
42694
42694
 
42695
- // ../broker-client/src/pool-identity.ts
42695
+ // ../cipher-client/src/pool-identity.ts
42696
42696
  var DEFAULT_SECURITY_TOKEN_SERVICE_URL = "https://sts.googleapis.com/v1/token";
42697
42697
  var DEFAULT_IAM_CREDENTIALS_URL = "https://iamcredentials.googleapis.com";
42698
42698
  var REQUESTED_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token";
@@ -42826,7 +42826,7 @@ function poolIdentity(options) {
42826
42826
  };
42827
42827
  }
42828
42828
 
42829
- // ../broker-client/src/projected-token.ts
42829
+ // ../cipher-client/src/projected-token.ts
42830
42830
  import { readFile as readFile2 } from "fs/promises";
42831
42831
  function projectedToken(path, variable) {
42832
42832
  const named = `the projected service-account token ${variable} names`;
@@ -42850,7 +42850,7 @@ function projectedToken(path, variable) {
42850
42850
  };
42851
42851
  }
42852
42852
 
42853
- // ../broker-client/src/environment.ts
42853
+ // ../cipher-client/src/environment.ts
42854
42854
  var BROKER_URL_VAR = "AGENT_SECRETS_URL";
42855
42855
  var IDENTITY_VAR = "AGENT_SECRETS_MACHINE_IDENTITY";
42856
42856
  var MACHINE_TOKEN_FILE_VAR = "AGENT_SECRETS_MACHINE_TOKEN_FILE";
@@ -57834,9 +57834,9 @@ var import_nats5 = __toESM(require_mod4(), 1);
57834
57834
 
57835
57835
  // package.json
57836
57836
  var name2 = "@sjawhar/claude-envoy";
57837
- var version2 = "4.16.0";
57837
+ var version2 = "4.17.0";
57838
57838
  var legion = {
57839
- daemonApiVersion: 193
57839
+ daemonApiVersion: 199
57840
57840
  };
57841
57841
  var package_default = {
57842
57842
  name: name2,
@@ -57874,7 +57874,7 @@ var package_default = {
57874
57874
  },
57875
57875
  devDependencies: {
57876
57876
  "@biomejs/biome": "^2.3.14",
57877
- "@legion/broker-client": "workspace:*",
57877
+ "@legion/cipher-client": "workspace:*",
57878
57878
  "@legion/contracts": "workspace:*",
57879
57879
  "@legion/envoy-client": "workspace:*",
57880
57880
  "@legion/pi-shared": "workspace:*",
@@ -18538,7 +18538,7 @@ function askAnswerText(answer) {
18538
18538
  return `${selected} - ${text}`;
18539
18539
  }
18540
18540
 
18541
- // ../broker-client/src/wire.ts
18541
+ // ../cipher-client/src/wire.ts
18542
18542
  var TOKEN_PATH = "/v1/oauth/token";
18543
18543
  var GRANT_TYPE_TOKEN_EXCHANGE = "urn:ietf:params:oauth:grant-type:token-exchange";
18544
18544
  var EXCHANGE_CLIENT_ID = "dispatch-token-exchange";
@@ -18554,7 +18554,7 @@ var TOKEN_TYPE_DPOP = "DPoP";
18554
18554
  var POD_SESSION_NOT_REGISTERED = "pod_session_not_registered";
18555
18555
  var SESSION_NAME_NOT_THIS_REGISTRARS = "session_name_not_this_registrars";
18556
18556
 
18557
- // ../broker-client/src/refusal-text.ts
18557
+ // ../cipher-client/src/refusal-text.ts
18558
18558
  var KNOWN_BROKER_REFUSALS = new Set([
18559
18559
  "no entry lists the account this token names",
18560
18560
  "too many token requests; try again later",
@@ -18725,7 +18725,7 @@ function shownOAuthCode(code) {
18725
18725
  return KNOWN_OAUTH_ERROR_CODES.has(code) ? code : `unrecognised error code (${code.length} chars)`;
18726
18726
  }
18727
18727
 
18728
- // ../broker-client/src/signins.ts
18728
+ // ../cipher-client/src/signins.ts
18729
18729
  import { readdir, readFile } from "fs/promises";
18730
18730
  import { join } from "path";
18731
18731
 
@@ -18737,7 +18737,7 @@ function withoutTrailingSlashes(url) {
18737
18737
  return url.slice(0, end);
18738
18738
  }
18739
18739
 
18740
- // ../broker-client/src/error-text.ts
18740
+ // ../cipher-client/src/error-text.ts
18741
18741
  function messageOf(error) {
18742
18742
  return error instanceof Error ? error.message : String(error);
18743
18743
  }
@@ -18747,7 +18747,7 @@ function readErrorCode(error) {
18747
18747
  return typeof code === "string" && READ_ERROR_CODE.test(code) ? code : "an error";
18748
18748
  }
18749
18749
 
18750
- // ../broker-client/src/signins.ts
18750
+ // ../cipher-client/src/signins.ts
18751
18751
  var SIGNIN_DIR_VAR = "AGENT_SECRETS_SIGNIN_DIR";
18752
18752
  var PERSON_VAR = "AGENT_SECRETS_PERSON";
18753
18753
  var PERSON_TRADE_VAR = "PERSON_SIGNIN_TRADE";
@@ -18877,7 +18877,7 @@ async function signInFlow(env) {
18877
18877
  };
18878
18878
  }
18879
18879
 
18880
- // ../broker-client/src/token-errors.ts
18880
+ // ../cipher-client/src/token-errors.ts
18881
18881
  var TOO_MANY_REQUESTS = 429;
18882
18882
  var INVALID_DPOP_PROOF = "invalid_dpop_proof";
18883
18883
  var USE_DPOP_NONCE = "use_dpop_nonce";
@@ -26965,7 +26965,7 @@ function readDispatchFirstContext(skillFile) {
26965
26965
  `);
26966
26966
  }
26967
26967
 
26968
- // ../broker-client/src/dpop.ts
26968
+ // ../cipher-client/src/dpop.ts
26969
26969
  import {
26970
26970
  createHash,
26971
26971
  createPrivateKey,
@@ -27039,7 +27039,7 @@ async function importDpopKey(pkcs8Pem, name) {
27039
27039
  return dpopKey(privateKey, publicJwkOf(privateKey, name));
27040
27040
  }
27041
27041
 
27042
- // ../broker-client/src/metadata-identity.ts
27042
+ // ../cipher-client/src/metadata-identity.ts
27043
27043
  import { Agent, request } from "http";
27044
27044
  var METADATA_HOST_VAR = "GCE_METADATA_HOST";
27045
27045
  var DEFAULT_METADATA_HOST = "metadata.google.internal";
@@ -28338,7 +28338,7 @@ async function genericGrantRequest(config, grantType, parameters, options) {
28338
28338
  return result;
28339
28339
  }
28340
28340
 
28341
- // ../broker-client/src/token-client.ts
28341
+ // ../cipher-client/src/token-client.ts
28342
28342
  var DEFAULT_RENEW_BEFORE_MS = 5 * 60000;
28343
28343
  var BROKER_URL_SETTING = "the broker URL";
28344
28344
  var RETRY_FIRST_WAIT_MS = 15000;
@@ -28752,7 +28752,7 @@ function heldUntil(token) {
28752
28752
  }
28753
28753
  }
28754
28754
 
28755
- // ../broker-client/src/person-identity.ts
28755
+ // ../cipher-client/src/person-identity.ts
28756
28756
  var ISSUER_TIMEOUT_SECONDS = 30;
28757
28757
  var INVALID_GRANT2 = "invalid_grant";
28758
28758
  function issuerSaid(error) {
@@ -28830,7 +28830,7 @@ function personIdentity(record, flow, options = {}) {
28830
28830
  };
28831
28831
  }
28832
28832
 
28833
- // ../broker-client/src/pool-identity.ts
28833
+ // ../cipher-client/src/pool-identity.ts
28834
28834
  var DEFAULT_SECURITY_TOKEN_SERVICE_URL = "https://sts.googleapis.com/v1/token";
28835
28835
  var DEFAULT_IAM_CREDENTIALS_URL = "https://iamcredentials.googleapis.com";
28836
28836
  var REQUESTED_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token";
@@ -28964,7 +28964,7 @@ function poolIdentity(options) {
28964
28964
  };
28965
28965
  }
28966
28966
 
28967
- // ../broker-client/src/projected-token.ts
28967
+ // ../cipher-client/src/projected-token.ts
28968
28968
  import { readFile as readFile2 } from "fs/promises";
28969
28969
  function projectedToken(path, variable) {
28970
28970
  const named = `the projected service-account token ${variable} names`;
@@ -28988,7 +28988,7 @@ function projectedToken(path, variable) {
28988
28988
  };
28989
28989
  }
28990
28990
 
28991
- // ../broker-client/src/environment.ts
28991
+ // ../cipher-client/src/environment.ts
28992
28992
  var BROKER_URL_VAR = "AGENT_SECRETS_URL";
28993
28993
  var IDENTITY_VAR = "AGENT_SECRETS_MACHINE_IDENTITY";
28994
28994
  var MACHINE_TOKEN_FILE_VAR = "AGENT_SECRETS_MACHINE_TOKEN_FILE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "4.16.0",
3
+ "version": "4.17.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "AGENTS.md"
20
20
  ],
21
21
  "legion": {
22
- "daemonApiVersion": 193
22
+ "daemonApiVersion": 199
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@biomejs/biome": "^2.3.14",
39
- "@legion/broker-client": "0.1.0",
39
+ "@legion/cipher-client": "0.1.0",
40
40
  "@legion/contracts": "0.10.0",
41
41
  "@legion/envoy-client": "0.1.0",
42
42
  "@legion/pi-shared": "0.1.0",
@@ -51,7 +51,7 @@ packages/claude-envoy
51
51
  packages/envoy-client
52
52
  packages/contracts
53
53
  packages/pi-shared
54
- packages/broker-client
54
+ packages/cipher-client
55
55
 
56
56
  # The build's outputs themselves, not inputs.
57
57
  :(exclude)packages/claude-envoy/dist