@sjawhar/claude-envoy 6.6.0 → 6.7.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 +7 -2
- package/dist/dispatch.js +7 -2
- package/dist/envoy-channel.js +8 -3
- package/dist/session-hook.js +7 -2
- package/package.json +1 -1
package/.omp-plugin/plugin.json
CHANGED
package/dist/codex-hook.js
CHANGED
|
@@ -24213,7 +24213,8 @@ var POLICY_SENTINELS = {
|
|
|
24213
24213
|
machineNotAllowed: "exchange: the machine is not one the entry allows",
|
|
24214
24214
|
sessionFixed: "exchange: the entry fixes the session name its tokens carry",
|
|
24215
24215
|
projectsFixed: "exchange: the request names projects other than the one its entry gives",
|
|
24216
|
-
projectsNoPerson: "exchange: a token that names no person names no project"
|
|
24216
|
+
projectsNoPerson: "exchange: a token that names no person names no project",
|
|
24217
|
+
restrictedOneProject: "exchange: a restricted member's machine login names exactly one project"
|
|
24217
24218
|
};
|
|
24218
24219
|
function policy(sentinel, format, ...slots) {
|
|
24219
24220
|
return `${escapeRegExp(`The subject token was refused: ${POLICY_SENTINELS[sentinel]}: `)}${formatPattern(format, slots)}\\.`;
|
|
@@ -24251,20 +24252,23 @@ var POLICY_REFUSAL_PATTERNS = [
|
|
|
24251
24252
|
policy("projectsFixed", "%s's entry names no project, and the request named %s", IDENTITY, PROJECT_LIST),
|
|
24252
24253
|
policy("projectsFixed", "%s writes the project %s that its entry names, and the request named %s", IDENTITY, PROJECT_SLOT, PROJECT_LIST),
|
|
24253
24254
|
policy("projectsFixed", "%s's entry gives its token the projects %s, and the request named %s, which that list does not name", IDENTITY, JOB_LIST, PROJECT_SLOT),
|
|
24255
|
+
policy("restrictedOneProject", "%s is a restricted member, who sees only the projects that name them, and the trade asked for %d; set AGENT_SECRETS_PROJECTS to the one project this session works on", PERSON_SLOT, NUMBER),
|
|
24254
24256
|
`${escapeRegExp("The subject token was refused: ")}${formatPattern("the subject token was not minted for %s, which is the audience this broker accepts from %s", [URI, URI])}\\.`
|
|
24255
24257
|
];
|
|
24256
24258
|
var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
24257
24259
|
`${PERSON_SLOT} revoked this machine's sign-in, so the key this proof was signed with trades nothing\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
24258
24260
|
`${PERSON_SLOT}'s sign-in on this box key was made on another machine, and a sign-in belongs to the machine it was made on\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
24261
|
+
`${PERSON_SLOT}'s sign-in on this box key was made by another Google account, and a sign-in belongs to the account that made it\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
24262
|
+
`The Google account this token was minted for no longer holds ${PERSON_SLOT}: another account holds that address now, and the broker takes no sign-in of the account it replaced\\.`,
|
|
24259
24263
|
"The machine login the subject token belongs to has ended\\.",
|
|
24260
24264
|
"The machine login has ended\\.",
|
|
24261
24265
|
"Another live machine login holds the key this proof was signed with\\. A (?:machine makes a key of its own|sign-in makes a box key of its own)\\.",
|
|
24262
24266
|
"A live read token is bound to the key this proof was signed with\\. Make a new key\\.",
|
|
24263
|
-
`${PERSON_SLOT} is a restricted member, whose token names its projects: set AGENT_SECRETS_PROJECTS to the projects this session works on\\.`,
|
|
24264
24267
|
`The token names a project its person cannot see: ${PROJECT_SLOT}\\.`,
|
|
24265
24268
|
`The subject token was refused: its entry names the project ${PROJECT_SLOT}, which its person ${PERSON_SLOT} cannot see\\.`,
|
|
24266
24269
|
`The subject token was refused: its entry names no project, and its person ${PERSON_SLOT} is a restricted member, who sees only the projects that name them\\.`,
|
|
24267
24270
|
"Dispatch could not be asked whether the token's person sees the projects it names; try again\\.",
|
|
24271
|
+
"Dispatch could not be asked what kind of member the machine login's approver is, so this broker cannot tell whether the token is held to one project; try again\\.",
|
|
24268
24272
|
`The session name '${SESSION_SLOT}' belongs to another identity: one the broker's configuration fixes it for, or one that has written under it within the last [0-9]{1,4} days\\. Ask under a name of your own\\.`,
|
|
24269
24273
|
`No registration says this pod may write under the session name '${SESSION_SLOT}'\\. A pod writes under a session name its deployment registered for it\\.`,
|
|
24270
24274
|
`Refused: this pod's registration for session '${SESSION_SLOT}' is bound to another key; a role trades only for its own session\\.`,
|
|
@@ -24274,6 +24278,7 @@ var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
|
24274
24278
|
"Only a person's sign-in is traded for the approve capability's proxy placeholder, on a broker that serves it\\.",
|
|
24275
24279
|
"A trade for the approve capability's proxy placeholder asks for the scope read, and a trade narrowed to reading approves nothing: trade for the placeholder without the scope, a cut or a DPoP-Holder proof\\.",
|
|
24276
24280
|
`${PERSON_SLOT}'s credentials are held by Dispatch; they work again when \\k<person> signs in to Dispatch, or when Dispatch can confirm \\k<person> with Google again`,
|
|
24281
|
+
`Google's Workspace Directory no longer confirms ${PERSON_SLOT}; their credentials work again once it does`,
|
|
24277
24282
|
"The 'as_of' parameter names a cut, and only a trade that asks for the scope read may name one\\.",
|
|
24278
24283
|
"The 'as_of' parameter is not an RFC 3339 time with at most six fractional digits\\.",
|
|
24279
24284
|
"The 'as_of' parameter names the zero time, which is no cut: a trade that reads the present names no cut\\.",
|
package/dist/dispatch.js
CHANGED
|
@@ -23454,7 +23454,8 @@ var POLICY_SENTINELS = {
|
|
|
23454
23454
|
machineNotAllowed: "exchange: the machine is not one the entry allows",
|
|
23455
23455
|
sessionFixed: "exchange: the entry fixes the session name its tokens carry",
|
|
23456
23456
|
projectsFixed: "exchange: the request names projects other than the one its entry gives",
|
|
23457
|
-
projectsNoPerson: "exchange: a token that names no person names no project"
|
|
23457
|
+
projectsNoPerson: "exchange: a token that names no person names no project",
|
|
23458
|
+
restrictedOneProject: "exchange: a restricted member's machine login names exactly one project"
|
|
23458
23459
|
};
|
|
23459
23460
|
function policy(sentinel, format, ...slots) {
|
|
23460
23461
|
return `${escapeRegExp(`The subject token was refused: ${POLICY_SENTINELS[sentinel]}: `)}${formatPattern(format, slots)}\\.`;
|
|
@@ -23492,20 +23493,23 @@ var POLICY_REFUSAL_PATTERNS = [
|
|
|
23492
23493
|
policy("projectsFixed", "%s's entry names no project, and the request named %s", IDENTITY, PROJECT_LIST),
|
|
23493
23494
|
policy("projectsFixed", "%s writes the project %s that its entry names, and the request named %s", IDENTITY, PROJECT_SLOT, PROJECT_LIST),
|
|
23494
23495
|
policy("projectsFixed", "%s's entry gives its token the projects %s, and the request named %s, which that list does not name", IDENTITY, JOB_LIST, PROJECT_SLOT),
|
|
23496
|
+
policy("restrictedOneProject", "%s is a restricted member, who sees only the projects that name them, and the trade asked for %d; set AGENT_SECRETS_PROJECTS to the one project this session works on", PERSON_SLOT, NUMBER),
|
|
23495
23497
|
`${escapeRegExp("The subject token was refused: ")}${formatPattern("the subject token was not minted for %s, which is the audience this broker accepts from %s", [URI, URI])}\\.`
|
|
23496
23498
|
];
|
|
23497
23499
|
var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
23498
23500
|
`${PERSON_SLOT} revoked this machine's sign-in, so the key this proof was signed with trades nothing\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
23499
23501
|
`${PERSON_SLOT}'s sign-in on this box key was made on another machine, and a sign-in belongs to the machine it was made on\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
23502
|
+
`${PERSON_SLOT}'s sign-in on this box key was made by another Google account, and a sign-in belongs to the account that made it\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
23503
|
+
`The Google account this token was minted for no longer holds ${PERSON_SLOT}: another account holds that address now, and the broker takes no sign-in of the account it replaced\\.`,
|
|
23500
23504
|
"The machine login the subject token belongs to has ended\\.",
|
|
23501
23505
|
"The machine login has ended\\.",
|
|
23502
23506
|
"Another live machine login holds the key this proof was signed with\\. A (?:machine makes a key of its own|sign-in makes a box key of its own)\\.",
|
|
23503
23507
|
"A live read token is bound to the key this proof was signed with\\. Make a new key\\.",
|
|
23504
|
-
`${PERSON_SLOT} is a restricted member, whose token names its projects: set AGENT_SECRETS_PROJECTS to the projects this session works on\\.`,
|
|
23505
23508
|
`The token names a project its person cannot see: ${PROJECT_SLOT}\\.`,
|
|
23506
23509
|
`The subject token was refused: its entry names the project ${PROJECT_SLOT}, which its person ${PERSON_SLOT} cannot see\\.`,
|
|
23507
23510
|
`The subject token was refused: its entry names no project, and its person ${PERSON_SLOT} is a restricted member, who sees only the projects that name them\\.`,
|
|
23508
23511
|
"Dispatch could not be asked whether the token's person sees the projects it names; try again\\.",
|
|
23512
|
+
"Dispatch could not be asked what kind of member the machine login's approver is, so this broker cannot tell whether the token is held to one project; try again\\.",
|
|
23509
23513
|
`The session name '${SESSION_SLOT}' belongs to another identity: one the broker's configuration fixes it for, or one that has written under it within the last [0-9]{1,4} days\\. Ask under a name of your own\\.`,
|
|
23510
23514
|
`No registration says this pod may write under the session name '${SESSION_SLOT}'\\. A pod writes under a session name its deployment registered for it\\.`,
|
|
23511
23515
|
`Refused: this pod's registration for session '${SESSION_SLOT}' is bound to another key; a role trades only for its own session\\.`,
|
|
@@ -23515,6 +23519,7 @@ var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
|
23515
23519
|
"Only a person's sign-in is traded for the approve capability's proxy placeholder, on a broker that serves it\\.",
|
|
23516
23520
|
"A trade for the approve capability's proxy placeholder asks for the scope read, and a trade narrowed to reading approves nothing: trade for the placeholder without the scope, a cut or a DPoP-Holder proof\\.",
|
|
23517
23521
|
`${PERSON_SLOT}'s credentials are held by Dispatch; they work again when \\k<person> signs in to Dispatch, or when Dispatch can confirm \\k<person> with Google again`,
|
|
23522
|
+
`Google's Workspace Directory no longer confirms ${PERSON_SLOT}; their credentials work again once it does`,
|
|
23518
23523
|
"The 'as_of' parameter names a cut, and only a trade that asks for the scope read may name one\\.",
|
|
23519
23524
|
"The 'as_of' parameter is not an RFC 3339 time with at most six fractional digits\\.",
|
|
23520
23525
|
"The 'as_of' parameter names the zero time, which is no cut: a trade that reads the present names no cut\\.",
|
package/dist/envoy-channel.js
CHANGED
|
@@ -44253,7 +44253,8 @@ var POLICY_SENTINELS = {
|
|
|
44253
44253
|
machineNotAllowed: "exchange: the machine is not one the entry allows",
|
|
44254
44254
|
sessionFixed: "exchange: the entry fixes the session name its tokens carry",
|
|
44255
44255
|
projectsFixed: "exchange: the request names projects other than the one its entry gives",
|
|
44256
|
-
projectsNoPerson: "exchange: a token that names no person names no project"
|
|
44256
|
+
projectsNoPerson: "exchange: a token that names no person names no project",
|
|
44257
|
+
restrictedOneProject: "exchange: a restricted member's machine login names exactly one project"
|
|
44257
44258
|
};
|
|
44258
44259
|
function policy(sentinel, format, ...slots) {
|
|
44259
44260
|
return `${escapeRegExp(`The subject token was refused: ${POLICY_SENTINELS[sentinel]}: `)}${formatPattern(format, slots)}\\.`;
|
|
@@ -44291,20 +44292,23 @@ var POLICY_REFUSAL_PATTERNS = [
|
|
|
44291
44292
|
policy("projectsFixed", "%s's entry names no project, and the request named %s", IDENTITY, PROJECT_LIST),
|
|
44292
44293
|
policy("projectsFixed", "%s writes the project %s that its entry names, and the request named %s", IDENTITY, PROJECT_SLOT, PROJECT_LIST),
|
|
44293
44294
|
policy("projectsFixed", "%s's entry gives its token the projects %s, and the request named %s, which that list does not name", IDENTITY, JOB_LIST, PROJECT_SLOT),
|
|
44295
|
+
policy("restrictedOneProject", "%s is a restricted member, who sees only the projects that name them, and the trade asked for %d; set AGENT_SECRETS_PROJECTS to the one project this session works on", PERSON_SLOT, NUMBER),
|
|
44294
44296
|
`${escapeRegExp("The subject token was refused: ")}${formatPattern("the subject token was not minted for %s, which is the audience this broker accepts from %s", [URI, URI])}\\.`
|
|
44295
44297
|
];
|
|
44296
44298
|
var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
44297
44299
|
`${PERSON_SLOT} revoked this machine's sign-in, so the key this proof was signed with trades nothing\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
44298
44300
|
`${PERSON_SLOT}'s sign-in on this box key was made on another machine, and a sign-in belongs to the machine it was made on\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
44301
|
+
`${PERSON_SLOT}'s sign-in on this box key was made by another Google account, and a sign-in belongs to the account that made it\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
44302
|
+
`The Google account this token was minted for no longer holds ${PERSON_SLOT}: another account holds that address now, and the broker takes no sign-in of the account it replaced\\.`,
|
|
44299
44303
|
"The machine login the subject token belongs to has ended\\.",
|
|
44300
44304
|
"The machine login has ended\\.",
|
|
44301
44305
|
"Another live machine login holds the key this proof was signed with\\. A (?:machine makes a key of its own|sign-in makes a box key of its own)\\.",
|
|
44302
44306
|
"A live read token is bound to the key this proof was signed with\\. Make a new key\\.",
|
|
44303
|
-
`${PERSON_SLOT} is a restricted member, whose token names its projects: set AGENT_SECRETS_PROJECTS to the projects this session works on\\.`,
|
|
44304
44307
|
`The token names a project its person cannot see: ${PROJECT_SLOT}\\.`,
|
|
44305
44308
|
`The subject token was refused: its entry names the project ${PROJECT_SLOT}, which its person ${PERSON_SLOT} cannot see\\.`,
|
|
44306
44309
|
`The subject token was refused: its entry names no project, and its person ${PERSON_SLOT} is a restricted member, who sees only the projects that name them\\.`,
|
|
44307
44310
|
"Dispatch could not be asked whether the token's person sees the projects it names; try again\\.",
|
|
44311
|
+
"Dispatch could not be asked what kind of member the machine login's approver is, so this broker cannot tell whether the token is held to one project; try again\\.",
|
|
44308
44312
|
`The session name '${SESSION_SLOT}' belongs to another identity: one the broker's configuration fixes it for, or one that has written under it within the last [0-9]{1,4} days\\. Ask under a name of your own\\.`,
|
|
44309
44313
|
`No registration says this pod may write under the session name '${SESSION_SLOT}'\\. A pod writes under a session name its deployment registered for it\\.`,
|
|
44310
44314
|
`Refused: this pod's registration for session '${SESSION_SLOT}' is bound to another key; a role trades only for its own session\\.`,
|
|
@@ -44314,6 +44318,7 @@ var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
|
44314
44318
|
"Only a person's sign-in is traded for the approve capability's proxy placeholder, on a broker that serves it\\.",
|
|
44315
44319
|
"A trade for the approve capability's proxy placeholder asks for the scope read, and a trade narrowed to reading approves nothing: trade for the placeholder without the scope, a cut or a DPoP-Holder proof\\.",
|
|
44316
44320
|
`${PERSON_SLOT}'s credentials are held by Dispatch; they work again when \\k<person> signs in to Dispatch, or when Dispatch can confirm \\k<person> with Google again`,
|
|
44321
|
+
`Google's Workspace Directory no longer confirms ${PERSON_SLOT}; their credentials work again once it does`,
|
|
44317
44322
|
"The 'as_of' parameter names a cut, and only a trade that asks for the scope read may name one\\.",
|
|
44318
44323
|
"The 'as_of' parameter is not an RFC 3339 time with at most six fractional digits\\.",
|
|
44319
44324
|
"The 'as_of' parameter names the zero time, which is no cut: a trade that reads the present names no cut\\.",
|
|
@@ -66637,7 +66642,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
|
|
|
66637
66642
|
|
|
66638
66643
|
// package.json
|
|
66639
66644
|
var name2 = "@sjawhar/claude-envoy";
|
|
66640
|
-
var version2 = "6.
|
|
66645
|
+
var version2 = "6.7.0";
|
|
66641
66646
|
var package_default = {
|
|
66642
66647
|
name: name2,
|
|
66643
66648
|
version: version2,
|
package/dist/session-hook.js
CHANGED
|
@@ -3028,7 +3028,8 @@ var POLICY_SENTINELS = {
|
|
|
3028
3028
|
machineNotAllowed: "exchange: the machine is not one the entry allows",
|
|
3029
3029
|
sessionFixed: "exchange: the entry fixes the session name its tokens carry",
|
|
3030
3030
|
projectsFixed: "exchange: the request names projects other than the one its entry gives",
|
|
3031
|
-
projectsNoPerson: "exchange: a token that names no person names no project"
|
|
3031
|
+
projectsNoPerson: "exchange: a token that names no person names no project",
|
|
3032
|
+
restrictedOneProject: "exchange: a restricted member's machine login names exactly one project"
|
|
3032
3033
|
};
|
|
3033
3034
|
function policy(sentinel, format, ...slots) {
|
|
3034
3035
|
return `${escapeRegExp(`The subject token was refused: ${POLICY_SENTINELS[sentinel]}: `)}${formatPattern(format, slots)}\\.`;
|
|
@@ -3066,20 +3067,23 @@ var POLICY_REFUSAL_PATTERNS = [
|
|
|
3066
3067
|
policy("projectsFixed", "%s's entry names no project, and the request named %s", IDENTITY, PROJECT_LIST),
|
|
3067
3068
|
policy("projectsFixed", "%s writes the project %s that its entry names, and the request named %s", IDENTITY, PROJECT_SLOT, PROJECT_LIST),
|
|
3068
3069
|
policy("projectsFixed", "%s's entry gives its token the projects %s, and the request named %s, which that list does not name", IDENTITY, JOB_LIST, PROJECT_SLOT),
|
|
3070
|
+
policy("restrictedOneProject", "%s is a restricted member, who sees only the projects that name them, and the trade asked for %d; set AGENT_SECRETS_PROJECTS to the one project this session works on", PERSON_SLOT, NUMBER),
|
|
3069
3071
|
`${escapeRegExp("The subject token was refused: ")}${formatPattern("the subject token was not minted for %s, which is the audience this broker accepts from %s", [URI, URI])}\\.`
|
|
3070
3072
|
];
|
|
3071
3073
|
var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
3072
3074
|
`${PERSON_SLOT} revoked this machine's sign-in, so the key this proof was signed with trades nothing\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
3073
3075
|
`${PERSON_SLOT}'s sign-in on this box key was made on another machine, and a sign-in belongs to the machine it was made on\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
3076
|
+
`${PERSON_SLOT}'s sign-in on this box key was made by another Google account, and a sign-in belongs to the account that made it\\. Sign in again with \`agent-secrets login\`\\.`,
|
|
3077
|
+
`The Google account this token was minted for no longer holds ${PERSON_SLOT}: another account holds that address now, and the broker takes no sign-in of the account it replaced\\.`,
|
|
3074
3078
|
"The machine login the subject token belongs to has ended\\.",
|
|
3075
3079
|
"The machine login has ended\\.",
|
|
3076
3080
|
"Another live machine login holds the key this proof was signed with\\. A (?:machine makes a key of its own|sign-in makes a box key of its own)\\.",
|
|
3077
3081
|
"A live read token is bound to the key this proof was signed with\\. Make a new key\\.",
|
|
3078
|
-
`${PERSON_SLOT} is a restricted member, whose token names its projects: set AGENT_SECRETS_PROJECTS to the projects this session works on\\.`,
|
|
3079
3082
|
`The token names a project its person cannot see: ${PROJECT_SLOT}\\.`,
|
|
3080
3083
|
`The subject token was refused: its entry names the project ${PROJECT_SLOT}, which its person ${PERSON_SLOT} cannot see\\.`,
|
|
3081
3084
|
`The subject token was refused: its entry names no project, and its person ${PERSON_SLOT} is a restricted member, who sees only the projects that name them\\.`,
|
|
3082
3085
|
"Dispatch could not be asked whether the token's person sees the projects it names; try again\\.",
|
|
3086
|
+
"Dispatch could not be asked what kind of member the machine login's approver is, so this broker cannot tell whether the token is held to one project; try again\\.",
|
|
3083
3087
|
`The session name '${SESSION_SLOT}' belongs to another identity: one the broker's configuration fixes it for, or one that has written under it within the last [0-9]{1,4} days\\. Ask under a name of your own\\.`,
|
|
3084
3088
|
`No registration says this pod may write under the session name '${SESSION_SLOT}'\\. A pod writes under a session name its deployment registered for it\\.`,
|
|
3085
3089
|
`Refused: this pod's registration for session '${SESSION_SLOT}' is bound to another key; a role trades only for its own session\\.`,
|
|
@@ -3089,6 +3093,7 @@ var KNOWN_BROKER_REFUSAL_PATTERNS = [
|
|
|
3089
3093
|
"Only a person's sign-in is traded for the approve capability's proxy placeholder, on a broker that serves it\\.",
|
|
3090
3094
|
"A trade for the approve capability's proxy placeholder asks for the scope read, and a trade narrowed to reading approves nothing: trade for the placeholder without the scope, a cut or a DPoP-Holder proof\\.",
|
|
3091
3095
|
`${PERSON_SLOT}'s credentials are held by Dispatch; they work again when \\k<person> signs in to Dispatch, or when Dispatch can confirm \\k<person> with Google again`,
|
|
3096
|
+
`Google's Workspace Directory no longer confirms ${PERSON_SLOT}; their credentials work again once it does`,
|
|
3092
3097
|
"The 'as_of' parameter names a cut, and only a trade that asks for the scope read may name one\\.",
|
|
3093
3098
|
"The 'as_of' parameter is not an RFC 3339 time with at most six fractional digits\\.",
|
|
3094
3099
|
"The 'as_of' parameter names the zero time, which is no cut: a trade that reads the present names no cut\\.",
|