@sjawhar/claude-envoy 5.2.1 → 5.4.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 +39 -2
- package/dist/dispatch.js +39 -2
- package/dist/envoy-channel.js +42 -5
- package/dist/session-hook.js +39 -2
- package/package.json +2 -2
package/.omp-plugin/plugin.json
CHANGED
package/dist/codex-hook.js
CHANGED
|
@@ -17346,6 +17346,16 @@ function natsFailureReason(error) {
|
|
|
17346
17346
|
}
|
|
17347
17347
|
|
|
17348
17348
|
// ../envoy-client/src/dispatch-command.ts
|
|
17349
|
+
var PREFIXED_FLAGS = [
|
|
17350
|
+
{
|
|
17351
|
+
tool: "dispatch_comment",
|
|
17352
|
+
field: "mentions",
|
|
17353
|
+
flag: "--mention-role",
|
|
17354
|
+
prefix: "role:",
|
|
17355
|
+
names: "a role's name",
|
|
17356
|
+
text: "A role the comment mentions, by its name alone, with no role: before it: sends " + "role:<name> in mentions, in the order given among the --mention values. Dispatch " + "delivers the comment to the session that holds the role, whichever session that is, " + "retries a send that does not go through, and records every attempt on the comment. One " + "role per flag, repeated; an empty name is refused before anything is sent."
|
|
17357
|
+
}
|
|
17358
|
+
];
|
|
17349
17359
|
var STDIN = "-";
|
|
17350
17360
|
var BARE_WORD = /^[A-Za-z0-9_./:@%+=,-]+$/;
|
|
17351
17361
|
var OPTION_SEPARATOR = ": ";
|
|
@@ -17570,6 +17580,20 @@ function flagTable(tool, fields) {
|
|
|
17570
17580
|
value: placeholder(info),
|
|
17571
17581
|
text: `${about} One item per flag, repeated.${none}`.trim()
|
|
17572
17582
|
});
|
|
17583
|
+
for (const prefixed of PREFIXED_FLAGS) {
|
|
17584
|
+
if (prefixed.tool !== tool || prefixed.field !== field)
|
|
17585
|
+
continue;
|
|
17586
|
+
if (kind.array !== "string") {
|
|
17587
|
+
throw new Error(`${tool}: ${prefixed.flag} needs ${field} to be a list of text`);
|
|
17588
|
+
}
|
|
17589
|
+
add(prefixed.flag, {
|
|
17590
|
+
field,
|
|
17591
|
+
action: "append",
|
|
17592
|
+
value: "<name>",
|
|
17593
|
+
text: prefixed.text,
|
|
17594
|
+
prefix: { text: prefixed.prefix, names: prefixed.names }
|
|
17595
|
+
});
|
|
17596
|
+
}
|
|
17573
17597
|
}
|
|
17574
17598
|
if (info.nullable || typeof kind === "object" || kind === "options") {
|
|
17575
17599
|
add(`--clear-${name}`, {
|
|
@@ -17623,7 +17647,8 @@ function parseCommand(argv, io) {
|
|
|
17623
17647
|
};
|
|
17624
17648
|
const claim = (field, flag, repeatable) => {
|
|
17625
17649
|
const earlier = setBy.get(field);
|
|
17626
|
-
|
|
17650
|
+
const earlierAppends = earlier !== undefined && surface.flags.get(earlier)?.action === "append";
|
|
17651
|
+
if (earlier === undefined || repeatable && earlierAppends) {
|
|
17627
17652
|
setBy.set(field, flag);
|
|
17628
17653
|
return true;
|
|
17629
17654
|
}
|
|
@@ -17742,7 +17767,19 @@ function parseCommand(argv, io) {
|
|
|
17742
17767
|
case "append": {
|
|
17743
17768
|
if (!claim(field, flag, true))
|
|
17744
17769
|
break;
|
|
17745
|
-
const
|
|
17770
|
+
const { prefix } = entry;
|
|
17771
|
+
if (prefix !== undefined && value.trim() === "") {
|
|
17772
|
+
problems.push(`${flag} needs ${prefix.names}, not an empty value`);
|
|
17773
|
+
break;
|
|
17774
|
+
}
|
|
17775
|
+
if (prefix !== undefined && value.startsWith(prefix.text)) {
|
|
17776
|
+
const name = value.slice(prefix.text.length);
|
|
17777
|
+
const own = `--${singular(flagName(field))}`;
|
|
17778
|
+
problems.push(`${flag} takes ${prefix.names} alone, so ${flag} ${quoteWord(value)} would send ${prefix.text}${value}: write ${flag} ${quoteWord(name)}, or ${own} ${quoteWord(value)}`);
|
|
17779
|
+
break;
|
|
17780
|
+
}
|
|
17781
|
+
const text = prefix === undefined ? value : `${prefix.text}${value}`;
|
|
17782
|
+
const item = appendedItem(info.kind, flag, text, number);
|
|
17746
17783
|
if (item === undefined)
|
|
17747
17784
|
break;
|
|
17748
17785
|
const list = args[field] ?? [];
|
package/dist/dispatch.js
CHANGED
|
@@ -18379,6 +18379,16 @@ function zodSchemaApi(zod) {
|
|
|
18379
18379
|
};
|
|
18380
18380
|
}
|
|
18381
18381
|
// ../envoy-client/src/dispatch-command.ts
|
|
18382
|
+
var PREFIXED_FLAGS = [
|
|
18383
|
+
{
|
|
18384
|
+
tool: "dispatch_comment",
|
|
18385
|
+
field: "mentions",
|
|
18386
|
+
flag: "--mention-role",
|
|
18387
|
+
prefix: "role:",
|
|
18388
|
+
names: "a role's name",
|
|
18389
|
+
text: "A role the comment mentions, by its name alone, with no role: before it: sends " + "role:<name> in mentions, in the order given among the --mention values. Dispatch " + "delivers the comment to the session that holds the role, whichever session that is, " + "retries a send that does not go through, and records every attempt on the comment. One " + "role per flag, repeated; an empty name is refused before anything is sent."
|
|
18390
|
+
}
|
|
18391
|
+
];
|
|
18382
18392
|
var STDIN = "-";
|
|
18383
18393
|
var BARE_WORD = /^[A-Za-z0-9_./:@%+=,-]+$/;
|
|
18384
18394
|
var OPTION_SEPARATOR = ": ";
|
|
@@ -18603,6 +18613,20 @@ function flagTable(tool, fields) {
|
|
|
18603
18613
|
value: placeholder(info),
|
|
18604
18614
|
text: `${about} One item per flag, repeated.${none}`.trim()
|
|
18605
18615
|
});
|
|
18616
|
+
for (const prefixed of PREFIXED_FLAGS) {
|
|
18617
|
+
if (prefixed.tool !== tool || prefixed.field !== field)
|
|
18618
|
+
continue;
|
|
18619
|
+
if (kind.array !== "string") {
|
|
18620
|
+
throw new Error(`${tool}: ${prefixed.flag} needs ${field} to be a list of text`);
|
|
18621
|
+
}
|
|
18622
|
+
add(prefixed.flag, {
|
|
18623
|
+
field,
|
|
18624
|
+
action: "append",
|
|
18625
|
+
value: "<name>",
|
|
18626
|
+
text: prefixed.text,
|
|
18627
|
+
prefix: { text: prefixed.prefix, names: prefixed.names }
|
|
18628
|
+
});
|
|
18629
|
+
}
|
|
18606
18630
|
}
|
|
18607
18631
|
if (info.nullable || typeof kind === "object" || kind === "options") {
|
|
18608
18632
|
add(`--clear-${name}`, {
|
|
@@ -18656,7 +18680,8 @@ function parseCommand(argv, io) {
|
|
|
18656
18680
|
};
|
|
18657
18681
|
const claim = (field, flag, repeatable) => {
|
|
18658
18682
|
const earlier = setBy.get(field);
|
|
18659
|
-
|
|
18683
|
+
const earlierAppends = earlier !== undefined && surface.flags.get(earlier)?.action === "append";
|
|
18684
|
+
if (earlier === undefined || repeatable && earlierAppends) {
|
|
18660
18685
|
setBy.set(field, flag);
|
|
18661
18686
|
return true;
|
|
18662
18687
|
}
|
|
@@ -18775,7 +18800,19 @@ function parseCommand(argv, io) {
|
|
|
18775
18800
|
case "append": {
|
|
18776
18801
|
if (!claim(field, flag, true))
|
|
18777
18802
|
break;
|
|
18778
|
-
const
|
|
18803
|
+
const { prefix } = entry;
|
|
18804
|
+
if (prefix !== undefined && value.trim() === "") {
|
|
18805
|
+
problems.push(`${flag} needs ${prefix.names}, not an empty value`);
|
|
18806
|
+
break;
|
|
18807
|
+
}
|
|
18808
|
+
if (prefix !== undefined && value.startsWith(prefix.text)) {
|
|
18809
|
+
const name = value.slice(prefix.text.length);
|
|
18810
|
+
const own = `--${singular(flagName(field))}`;
|
|
18811
|
+
problems.push(`${flag} takes ${prefix.names} alone, so ${flag} ${quoteWord(value)} would send ${prefix.text}${value}: write ${flag} ${quoteWord(name)}, or ${own} ${quoteWord(value)}`);
|
|
18812
|
+
break;
|
|
18813
|
+
}
|
|
18814
|
+
const text = prefix === undefined ? value : `${prefix.text}${value}`;
|
|
18815
|
+
const item = appendedItem(info.kind, flag, text, number);
|
|
18779
18816
|
if (item === undefined)
|
|
18780
18817
|
break;
|
|
18781
18818
|
const list = args[field] ?? [];
|
package/dist/envoy-channel.js
CHANGED
|
@@ -46841,6 +46841,16 @@ function consumeMarker(stores, argv, args, files, now) {
|
|
|
46841
46841
|
}
|
|
46842
46842
|
|
|
46843
46843
|
// ../envoy-client/src/dispatch-command.ts
|
|
46844
|
+
var PREFIXED_FLAGS = [
|
|
46845
|
+
{
|
|
46846
|
+
tool: "dispatch_comment",
|
|
46847
|
+
field: "mentions",
|
|
46848
|
+
flag: "--mention-role",
|
|
46849
|
+
prefix: "role:",
|
|
46850
|
+
names: "a role's name",
|
|
46851
|
+
text: "A role the comment mentions, by its name alone, with no role: before it: sends " + "role:<name> in mentions, in the order given among the --mention values. Dispatch " + "delivers the comment to the session that holds the role, whichever session that is, " + "retries a send that does not go through, and records every attempt on the comment. One " + "role per flag, repeated; an empty name is refused before anything is sent."
|
|
46852
|
+
}
|
|
46853
|
+
];
|
|
46844
46854
|
var STDIN = "-";
|
|
46845
46855
|
var BARE_WORD = /^[A-Za-z0-9_./:@%+=,-]+$/;
|
|
46846
46856
|
var OPTION_SEPARATOR = ": ";
|
|
@@ -47065,6 +47075,20 @@ function flagTable(tool, fields) {
|
|
|
47065
47075
|
value: placeholder(info),
|
|
47066
47076
|
text: `${about} One item per flag, repeated.${none}`.trim()
|
|
47067
47077
|
});
|
|
47078
|
+
for (const prefixed of PREFIXED_FLAGS) {
|
|
47079
|
+
if (prefixed.tool !== tool || prefixed.field !== field)
|
|
47080
|
+
continue;
|
|
47081
|
+
if (kind.array !== "string") {
|
|
47082
|
+
throw new Error(`${tool}: ${prefixed.flag} needs ${field} to be a list of text`);
|
|
47083
|
+
}
|
|
47084
|
+
add(prefixed.flag, {
|
|
47085
|
+
field,
|
|
47086
|
+
action: "append",
|
|
47087
|
+
value: "<name>",
|
|
47088
|
+
text: prefixed.text,
|
|
47089
|
+
prefix: { text: prefixed.prefix, names: prefixed.names }
|
|
47090
|
+
});
|
|
47091
|
+
}
|
|
47068
47092
|
}
|
|
47069
47093
|
if (info.nullable || typeof kind === "object" || kind === "options") {
|
|
47070
47094
|
add(`--clear-${name}`, {
|
|
@@ -47118,7 +47142,8 @@ function parseCommand(argv, io) {
|
|
|
47118
47142
|
};
|
|
47119
47143
|
const claim = (field, flag, repeatable) => {
|
|
47120
47144
|
const earlier = setBy.get(field);
|
|
47121
|
-
|
|
47145
|
+
const earlierAppends = earlier !== undefined && surface.flags.get(earlier)?.action === "append";
|
|
47146
|
+
if (earlier === undefined || repeatable && earlierAppends) {
|
|
47122
47147
|
setBy.set(field, flag);
|
|
47123
47148
|
return true;
|
|
47124
47149
|
}
|
|
@@ -47237,7 +47262,19 @@ function parseCommand(argv, io) {
|
|
|
47237
47262
|
case "append": {
|
|
47238
47263
|
if (!claim(field, flag, true))
|
|
47239
47264
|
break;
|
|
47240
|
-
const
|
|
47265
|
+
const { prefix } = entry;
|
|
47266
|
+
if (prefix !== undefined && value.trim() === "") {
|
|
47267
|
+
problems.push(`${flag} needs ${prefix.names}, not an empty value`);
|
|
47268
|
+
break;
|
|
47269
|
+
}
|
|
47270
|
+
if (prefix !== undefined && value.startsWith(prefix.text)) {
|
|
47271
|
+
const name = value.slice(prefix.text.length);
|
|
47272
|
+
const own = `--${singular(flagName(field))}`;
|
|
47273
|
+
problems.push(`${flag} takes ${prefix.names} alone, so ${flag} ${quoteWord(value)} would send ${prefix.text}${value}: write ${flag} ${quoteWord(name)}, or ${own} ${quoteWord(value)}`);
|
|
47274
|
+
break;
|
|
47275
|
+
}
|
|
47276
|
+
const text = prefix === undefined ? value : `${prefix.text}${value}`;
|
|
47277
|
+
const item = appendedItem(info.kind, flag, text, number);
|
|
47241
47278
|
if (item === undefined)
|
|
47242
47279
|
break;
|
|
47243
47280
|
const list = args[field] ?? [];
|
|
@@ -60510,9 +60547,9 @@ var import_nats5 = __toESM(require_mod4(), 1);
|
|
|
60510
60547
|
|
|
60511
60548
|
// package.json
|
|
60512
60549
|
var name2 = "@sjawhar/claude-envoy";
|
|
60513
|
-
var version2 = "5.
|
|
60550
|
+
var version2 = "5.4.0";
|
|
60514
60551
|
var legion = {
|
|
60515
|
-
daemonApiVersion:
|
|
60552
|
+
daemonApiVersion: 213
|
|
60516
60553
|
};
|
|
60517
60554
|
var package_default = {
|
|
60518
60555
|
name: name2,
|
|
@@ -62249,7 +62286,7 @@ var legionCapabilityState = object({
|
|
|
62249
62286
|
detail: nonEmptyString2.optional(),
|
|
62250
62287
|
decision: nonEmptyString2.optional(),
|
|
62251
62288
|
configLine: nonEmptyString2.optional(),
|
|
62252
|
-
source: _enum2(["configuration", "boot"]).optional()
|
|
62289
|
+
source: _enum2(["configuration", "boot", "caches"]).optional()
|
|
62253
62290
|
});
|
|
62254
62291
|
var legionSettings = looseObject({
|
|
62255
62292
|
review_round_cap: number2().int().positive().optional(),
|
package/dist/session-hook.js
CHANGED
|
@@ -17347,6 +17347,16 @@ function natsFailureReason(error) {
|
|
|
17347
17347
|
}
|
|
17348
17348
|
|
|
17349
17349
|
// ../envoy-client/src/dispatch-command.ts
|
|
17350
|
+
var PREFIXED_FLAGS = [
|
|
17351
|
+
{
|
|
17352
|
+
tool: "dispatch_comment",
|
|
17353
|
+
field: "mentions",
|
|
17354
|
+
flag: "--mention-role",
|
|
17355
|
+
prefix: "role:",
|
|
17356
|
+
names: "a role's name",
|
|
17357
|
+
text: "A role the comment mentions, by its name alone, with no role: before it: sends " + "role:<name> in mentions, in the order given among the --mention values. Dispatch " + "delivers the comment to the session that holds the role, whichever session that is, " + "retries a send that does not go through, and records every attempt on the comment. One " + "role per flag, repeated; an empty name is refused before anything is sent."
|
|
17358
|
+
}
|
|
17359
|
+
];
|
|
17350
17360
|
var STDIN = "-";
|
|
17351
17361
|
var BARE_WORD = /^[A-Za-z0-9_./:@%+=,-]+$/;
|
|
17352
17362
|
var OPTION_SEPARATOR = ": ";
|
|
@@ -17571,6 +17581,20 @@ function flagTable(tool, fields) {
|
|
|
17571
17581
|
value: placeholder(info),
|
|
17572
17582
|
text: `${about} One item per flag, repeated.${none}`.trim()
|
|
17573
17583
|
});
|
|
17584
|
+
for (const prefixed of PREFIXED_FLAGS) {
|
|
17585
|
+
if (prefixed.tool !== tool || prefixed.field !== field)
|
|
17586
|
+
continue;
|
|
17587
|
+
if (kind.array !== "string") {
|
|
17588
|
+
throw new Error(`${tool}: ${prefixed.flag} needs ${field} to be a list of text`);
|
|
17589
|
+
}
|
|
17590
|
+
add(prefixed.flag, {
|
|
17591
|
+
field,
|
|
17592
|
+
action: "append",
|
|
17593
|
+
value: "<name>",
|
|
17594
|
+
text: prefixed.text,
|
|
17595
|
+
prefix: { text: prefixed.prefix, names: prefixed.names }
|
|
17596
|
+
});
|
|
17597
|
+
}
|
|
17574
17598
|
}
|
|
17575
17599
|
if (info.nullable || typeof kind === "object" || kind === "options") {
|
|
17576
17600
|
add(`--clear-${name}`, {
|
|
@@ -17624,7 +17648,8 @@ function parseCommand(argv, io) {
|
|
|
17624
17648
|
};
|
|
17625
17649
|
const claim = (field, flag, repeatable) => {
|
|
17626
17650
|
const earlier = setBy.get(field);
|
|
17627
|
-
|
|
17651
|
+
const earlierAppends = earlier !== undefined && surface.flags.get(earlier)?.action === "append";
|
|
17652
|
+
if (earlier === undefined || repeatable && earlierAppends) {
|
|
17628
17653
|
setBy.set(field, flag);
|
|
17629
17654
|
return true;
|
|
17630
17655
|
}
|
|
@@ -17743,7 +17768,19 @@ function parseCommand(argv, io) {
|
|
|
17743
17768
|
case "append": {
|
|
17744
17769
|
if (!claim(field, flag, true))
|
|
17745
17770
|
break;
|
|
17746
|
-
const
|
|
17771
|
+
const { prefix } = entry;
|
|
17772
|
+
if (prefix !== undefined && value.trim() === "") {
|
|
17773
|
+
problems.push(`${flag} needs ${prefix.names}, not an empty value`);
|
|
17774
|
+
break;
|
|
17775
|
+
}
|
|
17776
|
+
if (prefix !== undefined && value.startsWith(prefix.text)) {
|
|
17777
|
+
const name = value.slice(prefix.text.length);
|
|
17778
|
+
const own = `--${singular(flagName(field))}`;
|
|
17779
|
+
problems.push(`${flag} takes ${prefix.names} alone, so ${flag} ${quoteWord(value)} would send ${prefix.text}${value}: write ${flag} ${quoteWord(name)}, or ${own} ${quoteWord(value)}`);
|
|
17780
|
+
break;
|
|
17781
|
+
}
|
|
17782
|
+
const text = prefix === undefined ? value : `${prefix.text}${value}`;
|
|
17783
|
+
const item = appendedItem(info.kind, flag, text, number);
|
|
17747
17784
|
if (item === undefined)
|
|
17748
17785
|
break;
|
|
17749
17786
|
const list = args[field] ?? [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjawhar/claude-envoy",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.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":
|
|
22
|
+
"daemonApiVersion": 213
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|