@sjawhar/claude-envoy 5.11.2 → 5.12.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.
- package/.claude-plugin/plugin.json +1 -1
- package/.omp-plugin/plugin.json +1 -1
- package/dist/codex-hook.js +4 -1
- package/dist/dispatch.js +4 -1
- package/dist/envoy-channel.js +5 -2
- package/dist/session-hook.js +4 -1
- package/package.json +1 -1
package/.omp-plugin/plugin.json
CHANGED
package/dist/codex-hook.js
CHANGED
|
@@ -32146,6 +32146,9 @@ function metadataIdentity(audience, env = process.env, options = {}) {
|
|
|
32146
32146
|
// ../cipher-client/src/person-identity.ts
|
|
32147
32147
|
var ISSUER_TIMEOUT_SECONDS = 30;
|
|
32148
32148
|
var INVALID_GRANT2 = "invalid_grant";
|
|
32149
|
+
function grantRefused(error) {
|
|
32150
|
+
return error instanceof ResponseBodyError && error.error === INVALID_GRANT2 && (error.status === 400 || error.status === 401);
|
|
32151
|
+
}
|
|
32149
32152
|
function issuerSaid(error) {
|
|
32150
32153
|
if (error instanceof ResponseBodyError) {
|
|
32151
32154
|
const shown = shownOAuthCode(error.error);
|
|
@@ -32205,7 +32208,7 @@ function personIdentity(record, flow, options = {}) {
|
|
|
32205
32208
|
config[customFetch2] = through(signal);
|
|
32206
32209
|
answered = await refreshTokenGrant(config, refreshToken);
|
|
32207
32210
|
} catch (error) {
|
|
32208
|
-
if (error
|
|
32211
|
+
if (grantRefused(error)) {
|
|
32209
32212
|
throw new SignInEndedError(issuer, person);
|
|
32210
32213
|
}
|
|
32211
32214
|
throw new Error(`renew ${person}'s sign-in at ${issuer}: ${issuerSaid(error)}`);
|
package/dist/dispatch.js
CHANGED
|
@@ -24955,6 +24955,9 @@ function metadataIdentity(audience, env = process.env, options = {}) {
|
|
|
24955
24955
|
// ../cipher-client/src/person-identity.ts
|
|
24956
24956
|
var ISSUER_TIMEOUT_SECONDS = 30;
|
|
24957
24957
|
var INVALID_GRANT2 = "invalid_grant";
|
|
24958
|
+
function grantRefused(error) {
|
|
24959
|
+
return error instanceof ResponseBodyError && error.error === INVALID_GRANT2 && (error.status === 400 || error.status === 401);
|
|
24960
|
+
}
|
|
24958
24961
|
function issuerSaid(error) {
|
|
24959
24962
|
if (error instanceof ResponseBodyError) {
|
|
24960
24963
|
const shown = shownOAuthCode(error.error);
|
|
@@ -25014,7 +25017,7 @@ function personIdentity(record, flow, options = {}) {
|
|
|
25014
25017
|
config[customFetch2] = through(signal);
|
|
25015
25018
|
answered = await refreshTokenGrant(config, refreshToken);
|
|
25016
25019
|
} catch (error) {
|
|
25017
|
-
if (error
|
|
25020
|
+
if (grantRefused(error)) {
|
|
25018
25021
|
throw new SignInEndedError(issuer, person);
|
|
25019
25022
|
}
|
|
25020
25023
|
throw new Error(`renew ${person}'s sign-in at ${issuer}: ${issuerSaid(error)}`);
|
package/dist/envoy-channel.js
CHANGED
|
@@ -44461,6 +44461,9 @@ function metadataIdentity(audience, env = process.env, options = {}) {
|
|
|
44461
44461
|
// ../cipher-client/src/person-identity.ts
|
|
44462
44462
|
var ISSUER_TIMEOUT_SECONDS = 30;
|
|
44463
44463
|
var INVALID_GRANT2 = "invalid_grant";
|
|
44464
|
+
function grantRefused(error) {
|
|
44465
|
+
return error instanceof ResponseBodyError && error.error === INVALID_GRANT2 && (error.status === 400 || error.status === 401);
|
|
44466
|
+
}
|
|
44464
44467
|
function issuerSaid(error) {
|
|
44465
44468
|
if (error instanceof ResponseBodyError) {
|
|
44466
44469
|
const shown = shownOAuthCode(error.error);
|
|
@@ -44520,7 +44523,7 @@ function personIdentity(record, flow, options = {}) {
|
|
|
44520
44523
|
config[customFetch2] = through(signal);
|
|
44521
44524
|
answered = await refreshTokenGrant(config, refreshToken);
|
|
44522
44525
|
} catch (error) {
|
|
44523
|
-
if (error
|
|
44526
|
+
if (grantRefused(error)) {
|
|
44524
44527
|
throw new SignInEndedError(issuer, person);
|
|
44525
44528
|
}
|
|
44526
44529
|
throw new Error(`renew ${person}'s sign-in at ${issuer}: ${issuerSaid(error)}`);
|
|
@@ -62147,7 +62150,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
|
|
|
62147
62150
|
|
|
62148
62151
|
// package.json
|
|
62149
62152
|
var name2 = "@sjawhar/claude-envoy";
|
|
62150
|
-
var version2 = "5.
|
|
62153
|
+
var version2 = "5.12.0";
|
|
62151
62154
|
var legion = {
|
|
62152
62155
|
daemonApiVersion: 217
|
|
62153
62156
|
};
|
package/dist/session-hook.js
CHANGED
|
@@ -32172,6 +32172,9 @@ function metadataIdentity(audience, env = process.env, options = {}) {
|
|
|
32172
32172
|
// ../cipher-client/src/person-identity.ts
|
|
32173
32173
|
var ISSUER_TIMEOUT_SECONDS = 30;
|
|
32174
32174
|
var INVALID_GRANT2 = "invalid_grant";
|
|
32175
|
+
function grantRefused(error) {
|
|
32176
|
+
return error instanceof ResponseBodyError && error.error === INVALID_GRANT2 && (error.status === 400 || error.status === 401);
|
|
32177
|
+
}
|
|
32175
32178
|
function issuerSaid(error) {
|
|
32176
32179
|
if (error instanceof ResponseBodyError) {
|
|
32177
32180
|
const shown = shownOAuthCode(error.error);
|
|
@@ -32231,7 +32234,7 @@ function personIdentity(record, flow, options = {}) {
|
|
|
32231
32234
|
config[customFetch2] = through(signal);
|
|
32232
32235
|
answered = await refreshTokenGrant(config, refreshToken);
|
|
32233
32236
|
} catch (error) {
|
|
32234
|
-
if (error
|
|
32237
|
+
if (grantRefused(error)) {
|
|
32235
32238
|
throw new SignInEndedError(issuer, person);
|
|
32236
32239
|
}
|
|
32237
32240
|
throw new Error(`renew ${person}'s sign-in at ${issuer}: ${issuerSaid(error)}`);
|