@sjawhar/claude-envoy 6.15.0 → 6.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.
- package/.claude-plugin/plugin.json +1 -1
- package/.omp-plugin/plugin.json +1 -1
- package/dist/codex-hook.js +45 -0
- package/dist/dispatch.js +45 -0
- package/dist/envoy-channel.js +134 -3
- package/dist/session-hook.js +45 -0
- package/package.json +2 -2
package/.omp-plugin/plugin.json
CHANGED
package/dist/codex-hook.js
CHANGED
|
@@ -17431,6 +17431,14 @@ var DISPATCH_READING_SURFACES = [
|
|
|
17431
17431
|
rendered: false,
|
|
17432
17432
|
surface: "issue-page-title"
|
|
17433
17433
|
},
|
|
17434
|
+
{
|
|
17435
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueOutlinePage.tsx"],
|
|
17436
|
+
reach: "/issues/<ISSUE> with the new issue page, the browser's title bar",
|
|
17437
|
+
reason: `${NO_MARKUP_REASON} The title bar holds an issue's key and title.`,
|
|
17438
|
+
record: false,
|
|
17439
|
+
rendered: false,
|
|
17440
|
+
surface: "issue-outline-page-title"
|
|
17441
|
+
},
|
|
17434
17442
|
{
|
|
17435
17443
|
files: ["packages/dispatch/web/src/features/document/DocumentPage.tsx"],
|
|
17436
17444
|
reach: "/projects/<PROJECT>/documents/<SLUG>, the browser's title bar",
|
|
@@ -18842,6 +18850,43 @@ var WRITING_BOXES = [
|
|
|
18842
18850
|
reason: "No reader reaches it: a message's Reply on a phone is answered by the docked conversation composer, and this box opens over a comment thread alone.",
|
|
18843
18851
|
write: "message-reply"
|
|
18844
18852
|
},
|
|
18853
|
+
{
|
|
18854
|
+
box: "issue-page-composer",
|
|
18855
|
+
covered: true,
|
|
18856
|
+
delivers: true,
|
|
18857
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
18858
|
+
issueRows: true,
|
|
18859
|
+
reach: "[data-issue-composer]",
|
|
18860
|
+
write: "comment"
|
|
18861
|
+
},
|
|
18862
|
+
{
|
|
18863
|
+
box: "issue-page-composer",
|
|
18864
|
+
covered: true,
|
|
18865
|
+
delivers: false,
|
|
18866
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
18867
|
+
issueRows: true,
|
|
18868
|
+
reach: "[data-issue-composer]",
|
|
18869
|
+
write: "ask"
|
|
18870
|
+
},
|
|
18871
|
+
{
|
|
18872
|
+
box: "issue-page-composer",
|
|
18873
|
+
covered: true,
|
|
18874
|
+
delivers: false,
|
|
18875
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
18876
|
+
issueRows: true,
|
|
18877
|
+
reach: "[data-issue-composer]",
|
|
18878
|
+
write: "message-reply"
|
|
18879
|
+
},
|
|
18880
|
+
{
|
|
18881
|
+
box: "issue-page-composer",
|
|
18882
|
+
covered: false,
|
|
18883
|
+
delivers: false,
|
|
18884
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
18885
|
+
issueRows: true,
|
|
18886
|
+
reach: "[data-issue-composer]",
|
|
18887
|
+
reason: "No reader reaches it yet: only an Edit opens the box's edit line - part M's in the facts, or part T's on the row of the reader's own comment - and the row is covered, with a driver step through that Edit, once the first of them is under the box.",
|
|
18888
|
+
write: "comment-edit"
|
|
18889
|
+
},
|
|
18845
18890
|
{
|
|
18846
18891
|
box: "inbox-thread-reply",
|
|
18847
18892
|
covered: true,
|
package/dist/dispatch.js
CHANGED
|
@@ -18031,6 +18031,14 @@ var DISPATCH_READING_SURFACES = [
|
|
|
18031
18031
|
rendered: false,
|
|
18032
18032
|
surface: "issue-page-title"
|
|
18033
18033
|
},
|
|
18034
|
+
{
|
|
18035
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueOutlinePage.tsx"],
|
|
18036
|
+
reach: "/issues/<ISSUE> with the new issue page, the browser's title bar",
|
|
18037
|
+
reason: `${NO_MARKUP_REASON} The title bar holds an issue's key and title.`,
|
|
18038
|
+
record: false,
|
|
18039
|
+
rendered: false,
|
|
18040
|
+
surface: "issue-outline-page-title"
|
|
18041
|
+
},
|
|
18034
18042
|
{
|
|
18035
18043
|
files: ["packages/dispatch/web/src/features/document/DocumentPage.tsx"],
|
|
18036
18044
|
reach: "/projects/<PROJECT>/documents/<SLUG>, the browser's title bar",
|
|
@@ -19442,6 +19450,43 @@ var WRITING_BOXES = [
|
|
|
19442
19450
|
reason: "No reader reaches it: a message's Reply on a phone is answered by the docked conversation composer, and this box opens over a comment thread alone.",
|
|
19443
19451
|
write: "message-reply"
|
|
19444
19452
|
},
|
|
19453
|
+
{
|
|
19454
|
+
box: "issue-page-composer",
|
|
19455
|
+
covered: true,
|
|
19456
|
+
delivers: true,
|
|
19457
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
19458
|
+
issueRows: true,
|
|
19459
|
+
reach: "[data-issue-composer]",
|
|
19460
|
+
write: "comment"
|
|
19461
|
+
},
|
|
19462
|
+
{
|
|
19463
|
+
box: "issue-page-composer",
|
|
19464
|
+
covered: true,
|
|
19465
|
+
delivers: false,
|
|
19466
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
19467
|
+
issueRows: true,
|
|
19468
|
+
reach: "[data-issue-composer]",
|
|
19469
|
+
write: "ask"
|
|
19470
|
+
},
|
|
19471
|
+
{
|
|
19472
|
+
box: "issue-page-composer",
|
|
19473
|
+
covered: true,
|
|
19474
|
+
delivers: false,
|
|
19475
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
19476
|
+
issueRows: true,
|
|
19477
|
+
reach: "[data-issue-composer]",
|
|
19478
|
+
write: "message-reply"
|
|
19479
|
+
},
|
|
19480
|
+
{
|
|
19481
|
+
box: "issue-page-composer",
|
|
19482
|
+
covered: false,
|
|
19483
|
+
delivers: false,
|
|
19484
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
19485
|
+
issueRows: true,
|
|
19486
|
+
reach: "[data-issue-composer]",
|
|
19487
|
+
reason: "No reader reaches it yet: only an Edit opens the box's edit line - part M's in the facts, or part T's on the row of the reader's own comment - and the row is covered, with a driver step through that Edit, once the first of them is under the box.",
|
|
19488
|
+
write: "comment-edit"
|
|
19489
|
+
},
|
|
19445
19490
|
{
|
|
19446
19491
|
box: "inbox-thread-reply",
|
|
19447
19492
|
covered: true,
|
package/dist/envoy-channel.js
CHANGED
|
@@ -40231,6 +40231,14 @@ var DISPATCH_READING_SURFACES = [
|
|
|
40231
40231
|
rendered: false,
|
|
40232
40232
|
surface: "issue-page-title"
|
|
40233
40233
|
},
|
|
40234
|
+
{
|
|
40235
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueOutlinePage.tsx"],
|
|
40236
|
+
reach: "/issues/<ISSUE> with the new issue page, the browser's title bar",
|
|
40237
|
+
reason: `${NO_MARKUP_REASON} The title bar holds an issue's key and title.`,
|
|
40238
|
+
record: false,
|
|
40239
|
+
rendered: false,
|
|
40240
|
+
surface: "issue-outline-page-title"
|
|
40241
|
+
},
|
|
40234
40242
|
{
|
|
40235
40243
|
files: ["packages/dispatch/web/src/features/document/DocumentPage.tsx"],
|
|
40236
40244
|
reach: "/projects/<PROJECT>/documents/<SLUG>, the browser's title bar",
|
|
@@ -41642,6 +41650,43 @@ var WRITING_BOXES = [
|
|
|
41642
41650
|
reason: "No reader reaches it: a message's Reply on a phone is answered by the docked conversation composer, and this box opens over a comment thread alone.",
|
|
41643
41651
|
write: "message-reply"
|
|
41644
41652
|
},
|
|
41653
|
+
{
|
|
41654
|
+
box: "issue-page-composer",
|
|
41655
|
+
covered: true,
|
|
41656
|
+
delivers: true,
|
|
41657
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
41658
|
+
issueRows: true,
|
|
41659
|
+
reach: "[data-issue-composer]",
|
|
41660
|
+
write: "comment"
|
|
41661
|
+
},
|
|
41662
|
+
{
|
|
41663
|
+
box: "issue-page-composer",
|
|
41664
|
+
covered: true,
|
|
41665
|
+
delivers: false,
|
|
41666
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
41667
|
+
issueRows: true,
|
|
41668
|
+
reach: "[data-issue-composer]",
|
|
41669
|
+
write: "ask"
|
|
41670
|
+
},
|
|
41671
|
+
{
|
|
41672
|
+
box: "issue-page-composer",
|
|
41673
|
+
covered: true,
|
|
41674
|
+
delivers: false,
|
|
41675
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
41676
|
+
issueRows: true,
|
|
41677
|
+
reach: "[data-issue-composer]",
|
|
41678
|
+
write: "message-reply"
|
|
41679
|
+
},
|
|
41680
|
+
{
|
|
41681
|
+
box: "issue-page-composer",
|
|
41682
|
+
covered: false,
|
|
41683
|
+
delivers: false,
|
|
41684
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
41685
|
+
issueRows: true,
|
|
41686
|
+
reach: "[data-issue-composer]",
|
|
41687
|
+
reason: "No reader reaches it yet: only an Edit opens the box's edit line - part M's in the facts, or part T's on the row of the reader's own comment - and the row is covered, with a driver step through that Edit, once the first of them is under the box.",
|
|
41688
|
+
write: "comment-edit"
|
|
41689
|
+
},
|
|
41645
41690
|
{
|
|
41646
41691
|
box: "inbox-thread-reply",
|
|
41647
41692
|
covered: true,
|
|
@@ -67041,7 +67086,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
|
|
|
67041
67086
|
|
|
67042
67087
|
// package.json
|
|
67043
67088
|
var name2 = "@sjawhar/claude-envoy";
|
|
67044
|
-
var version2 = "6.
|
|
67089
|
+
var version2 = "6.17.0";
|
|
67045
67090
|
var package_default = {
|
|
67046
67091
|
name: name2,
|
|
67047
67092
|
version: version2,
|
|
@@ -67052,7 +67097,7 @@ var package_default = {
|
|
|
67052
67097
|
repository: { type: "git", url: "https://github.com/cybermonklabs/legion" },
|
|
67053
67098
|
scripts: { channel: "bun bin/envoy-channel.ts", "verify-build": "bash scripts/verify-build.sh", prepack: "bash scripts/pack-skills.sh", postpack: "bash scripts/pack-skills.sh --restore", typecheck: "bun ../contracts/scripts/gen-api.ts && bunx tsc --noEmit", test: "bun test --timeout=60000", lint: "bunx biome check src/ hooks/ scripts/" },
|
|
67054
67099
|
devDependencies: { "@biomejs/biome": "^2.3.14", "@legion/cipher-client": "workspace:*", "@legion/contracts": "workspace:*", "@legion/envoy-client": "workspace:*", "@legion/pi-shared": "workspace:*", "@legion/test-fixtures": "workspace:*", "@modelcontextprotocol/sdk": "^1.30.0", "bun-types": "latest", nats: "^2.29.2", typescript: "^5.3.0", zod: "4.3.6" },
|
|
67055
|
-
legion: { daemonApiVersion:
|
|
67100
|
+
legion: { daemonApiVersion: 287 }
|
|
67056
67101
|
};
|
|
67057
67102
|
|
|
67058
67103
|
// ../pi-shared/src/agent-stream.ts
|
|
@@ -68993,7 +69038,10 @@ var daemonInfo = object({
|
|
|
68993
69038
|
schemaVersion: number2().int().nonnegative().optional(),
|
|
68994
69039
|
boots: number2().int().nonnegative().optional(),
|
|
68995
69040
|
firstBootAt: timestamp.optional(),
|
|
68996
|
-
startedAt: timestamp.optional()
|
|
69041
|
+
startedAt: timestamp.optional(),
|
|
69042
|
+
stateSeq: number2().int().nonnegative().optional(),
|
|
69043
|
+
stateId: uuid2().optional(),
|
|
69044
|
+
stateRun: uuid2().optional()
|
|
68997
69045
|
});
|
|
68998
69046
|
var legionContract = object({
|
|
68999
69047
|
daemon: number2().int().positive().optional(),
|
|
@@ -69203,6 +69251,89 @@ var LegionStateResponse = object({
|
|
|
69203
69251
|
lowestPluginContract: number2().int().positive().optional(),
|
|
69204
69252
|
intakeGiveUps: legionIntakeGiveUps.optional()
|
|
69205
69253
|
});
|
|
69254
|
+
var legionObservedClaim = object({
|
|
69255
|
+
state: _enum2(LEGION_CLAIM_STATES)
|
|
69256
|
+
});
|
|
69257
|
+
var legionObservedIssue = object({
|
|
69258
|
+
key: nonEmptyString2,
|
|
69259
|
+
phase: _enum2(LEGION_PHASES),
|
|
69260
|
+
tree: issueKey.optional(),
|
|
69261
|
+
slot: object({ index: number2().int().nonnegative() }).optional(),
|
|
69262
|
+
waitingOn: legionWaitingOn.optional(),
|
|
69263
|
+
architect: legionObservedClaim.optional(),
|
|
69264
|
+
workers: partialRecord(string2(), object({ claim: legionObservedClaim })).optional()
|
|
69265
|
+
});
|
|
69266
|
+
var LegionObservedStateResponse = object({
|
|
69267
|
+
daemon: daemonInfo,
|
|
69268
|
+
settings: legionSettings,
|
|
69269
|
+
admission: legionAdmission,
|
|
69270
|
+
issues: record(string2(), legionObservedIssue)
|
|
69271
|
+
});
|
|
69272
|
+
var LEGION_STATE_FIELDS = ["phase", "tree", "slot", "waitingOn", "claim"];
|
|
69273
|
+
var legionStateFieldValues = {
|
|
69274
|
+
phase: _enum2(LEGION_PHASES),
|
|
69275
|
+
tree: issueKey,
|
|
69276
|
+
slot: number2().int().nonnegative(),
|
|
69277
|
+
waitingOn: legionWaitingOn,
|
|
69278
|
+
claim: _enum2(LEGION_CLAIM_STATES)
|
|
69279
|
+
};
|
|
69280
|
+
var legionStateValue = union([
|
|
69281
|
+
legionStateFieldValues.phase,
|
|
69282
|
+
legionStateFieldValues.tree,
|
|
69283
|
+
legionStateFieldValues.slot,
|
|
69284
|
+
legionStateFieldValues.waitingOn,
|
|
69285
|
+
legionStateFieldValues.claim
|
|
69286
|
+
]).nullable();
|
|
69287
|
+
var legionStateChange = object({
|
|
69288
|
+
field: _enum2(LEGION_STATE_FIELDS),
|
|
69289
|
+
role: _enum2(LEGION_ROLES).optional(),
|
|
69290
|
+
old: legionStateValue,
|
|
69291
|
+
new: legionStateValue
|
|
69292
|
+
}).superRefine((change, ctx) => {
|
|
69293
|
+
if (change.role !== undefined !== (change.field === "claim")) {
|
|
69294
|
+
ctx.addIssue({
|
|
69295
|
+
code: "custom",
|
|
69296
|
+
path: ["role"],
|
|
69297
|
+
message: "a claim change names its role, and a change of any other field names none"
|
|
69298
|
+
});
|
|
69299
|
+
}
|
|
69300
|
+
for (const side of ["old", "new"]) {
|
|
69301
|
+
const value = change[side];
|
|
69302
|
+
if (value !== null && !legionStateFieldValues[change.field].safeParse(value).success) {
|
|
69303
|
+
ctx.addIssue({
|
|
69304
|
+
code: "custom",
|
|
69305
|
+
path: [side],
|
|
69306
|
+
message: `${side} is no ${change.field} value`
|
|
69307
|
+
});
|
|
69308
|
+
}
|
|
69309
|
+
}
|
|
69310
|
+
});
|
|
69311
|
+
var legionStateSeq = number2().int().positive();
|
|
69312
|
+
var legionStateEvent = discriminatedUnion("kind", [
|
|
69313
|
+
object({
|
|
69314
|
+
seq: legionStateSeq,
|
|
69315
|
+
kind: literal("change"),
|
|
69316
|
+
issue: issueKey,
|
|
69317
|
+
changes: array(legionStateChange).min(1)
|
|
69318
|
+
}),
|
|
69319
|
+
object({ seq: legionStateSeq, kind: literal("admission"), admission: legionAdmission }),
|
|
69320
|
+
object({
|
|
69321
|
+
seq: legionStateSeq,
|
|
69322
|
+
kind: literal("boot"),
|
|
69323
|
+
settings: legionSettings,
|
|
69324
|
+
schemaVersion: number2().int().nonnegative()
|
|
69325
|
+
})
|
|
69326
|
+
]);
|
|
69327
|
+
var legionStateMessage = object({
|
|
69328
|
+
project: string2().regex(PROJECT_KEY_PATTERN),
|
|
69329
|
+
run: uuid2(),
|
|
69330
|
+
stateId: uuid2(),
|
|
69331
|
+
firstSeq: legionStateSeq,
|
|
69332
|
+
seq: legionStateSeq,
|
|
69333
|
+
at: timestamp,
|
|
69334
|
+
more: literal(true).optional(),
|
|
69335
|
+
events: array(legionStateEvent).min(1)
|
|
69336
|
+
}).refine((message) => message.events.length === message.seq - message.firstSeq + 1 && message.events.every((event, index) => event.seq === message.firstSeq + index), { path: ["events"], message: "the events run from firstSeq to seq, one sequence each" });
|
|
69206
69337
|
var LegionIssueRecordResponse = legionIssue;
|
|
69207
69338
|
var LegionHealthResponse = object({
|
|
69208
69339
|
status: nonEmptyString2.optional(),
|
package/dist/session-hook.js
CHANGED
|
@@ -21018,6 +21018,14 @@ var DISPATCH_READING_SURFACES = [
|
|
|
21018
21018
|
rendered: false,
|
|
21019
21019
|
surface: "issue-page-title"
|
|
21020
21020
|
},
|
|
21021
|
+
{
|
|
21022
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueOutlinePage.tsx"],
|
|
21023
|
+
reach: "/issues/<ISSUE> with the new issue page, the browser's title bar",
|
|
21024
|
+
reason: `${NO_MARKUP_REASON} The title bar holds an issue's key and title.`,
|
|
21025
|
+
record: false,
|
|
21026
|
+
rendered: false,
|
|
21027
|
+
surface: "issue-outline-page-title"
|
|
21028
|
+
},
|
|
21021
21029
|
{
|
|
21022
21030
|
files: ["packages/dispatch/web/src/features/document/DocumentPage.tsx"],
|
|
21023
21031
|
reach: "/projects/<PROJECT>/documents/<SLUG>, the browser's title bar",
|
|
@@ -22429,6 +22437,43 @@ var WRITING_BOXES = [
|
|
|
22429
22437
|
reason: "No reader reaches it: a message's Reply on a phone is answered by the docked conversation composer, and this box opens over a comment thread alone.",
|
|
22430
22438
|
write: "message-reply"
|
|
22431
22439
|
},
|
|
22440
|
+
{
|
|
22441
|
+
box: "issue-page-composer",
|
|
22442
|
+
covered: true,
|
|
22443
|
+
delivers: true,
|
|
22444
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
22445
|
+
issueRows: true,
|
|
22446
|
+
reach: "[data-issue-composer]",
|
|
22447
|
+
write: "comment"
|
|
22448
|
+
},
|
|
22449
|
+
{
|
|
22450
|
+
box: "issue-page-composer",
|
|
22451
|
+
covered: true,
|
|
22452
|
+
delivers: false,
|
|
22453
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
22454
|
+
issueRows: true,
|
|
22455
|
+
reach: "[data-issue-composer]",
|
|
22456
|
+
write: "ask"
|
|
22457
|
+
},
|
|
22458
|
+
{
|
|
22459
|
+
box: "issue-page-composer",
|
|
22460
|
+
covered: true,
|
|
22461
|
+
delivers: false,
|
|
22462
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
22463
|
+
issueRows: true,
|
|
22464
|
+
reach: "[data-issue-composer]",
|
|
22465
|
+
write: "message-reply"
|
|
22466
|
+
},
|
|
22467
|
+
{
|
|
22468
|
+
box: "issue-page-composer",
|
|
22469
|
+
covered: false,
|
|
22470
|
+
delivers: false,
|
|
22471
|
+
files: ["packages/dispatch/web/src/features/issue-page/IssueComposer.tsx"],
|
|
22472
|
+
issueRows: true,
|
|
22473
|
+
reach: "[data-issue-composer]",
|
|
22474
|
+
reason: "No reader reaches it yet: only an Edit opens the box's edit line - part M's in the facts, or part T's on the row of the reader's own comment - and the row is covered, with a driver step through that Edit, once the first of them is under the box.",
|
|
22475
|
+
write: "comment-edit"
|
|
22476
|
+
},
|
|
22432
22477
|
{
|
|
22433
22478
|
box: "inbox-thread-reply",
|
|
22434
22479
|
covered: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjawhar/claude-envoy",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Claude Code plugin for Legion's Envoy bus",
|
|
6
6
|
"type": "module",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"zod": "4.3.6"
|
|
46
46
|
},
|
|
47
47
|
"legion": {
|
|
48
|
-
"daemonApiVersion":
|
|
48
|
+
"daemonApiVersion": 287
|
|
49
49
|
}
|
|
50
50
|
}
|