@sjawhar/claude-envoy 1.42.0 → 1.42.2
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/.omp-plugin/plugin.json
CHANGED
package/dist/envoy-channel.js
CHANGED
|
@@ -55498,7 +55498,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
|
|
|
55498
55498
|
|
|
55499
55499
|
// package.json
|
|
55500
55500
|
var name = "@sjawhar/claude-envoy";
|
|
55501
|
-
var version2 = "1.42.
|
|
55501
|
+
var version2 = "1.42.2";
|
|
55502
55502
|
var legion = {
|
|
55503
55503
|
daemonApiVersion: 68
|
|
55504
55504
|
};
|
|
@@ -57775,17 +57775,23 @@ var requiredString = (op, field) => {
|
|
|
57775
57775
|
var rfc3339String = (op, field, message) => requiredString(op, field).refine((value) => value.trim() === "" || LegionInstant.safeParse(value).success, { error: message });
|
|
57776
57776
|
var windowStart = rfc3339String("read_release_records", "since", "read_release_records' since is an RFC 3339 time, as 2026-11-02T09:00:00Z is");
|
|
57777
57777
|
var nextLook = rfc3339String("handoff_complete", "wake_at", "handoff_complete's wake_at is an RFC 3339 time, as 2026-11-02T09:00:00Z is");
|
|
57778
|
+
var unknownFieldsRefusal = (op, refused, takes) => [
|
|
57779
|
+
...refused.map((field) => `${op} does not accept field "${field}"`),
|
|
57780
|
+
`it takes ${takes.length === 0 ? "none" : takes.join(", ")}`
|
|
57781
|
+
].join("; ");
|
|
57778
57782
|
var operation = (op, shape) => strictObject({ op: literal(op), ...shape }, {
|
|
57779
|
-
error: (issue) => issue.code === "unrecognized_keys" ? issue.keys.
|
|
57783
|
+
error: (issue) => issue.code === "unrecognized_keys" ? unknownFieldsRefusal(op, issue.keys, Object.keys(shape)) : undefined
|
|
57780
57784
|
});
|
|
57781
57785
|
var PhaseOpArguments = discriminatedUnion("op", [
|
|
57782
|
-
operation("read_record", {
|
|
57786
|
+
operation("read_record", {
|
|
57787
|
+
issue: string2({ error: "read_record's issue is an issue key, as LEGION-208 is" }).optional()
|
|
57788
|
+
}),
|
|
57783
57789
|
operation("read_release_records", {
|
|
57784
57790
|
since: windowStart
|
|
57785
57791
|
}),
|
|
57786
57792
|
operation("handoff_complete", {
|
|
57787
57793
|
summary: requiredString("handoff_complete", "summary"),
|
|
57788
|
-
issue: string2().optional(),
|
|
57794
|
+
issue: string2({ error: "handoff_complete's issue is an issue key, as LEGION-208 is" }).optional(),
|
|
57789
57795
|
verdict: _enum2(["pass", "pending", "fail"], {
|
|
57790
57796
|
error: "handoff_complete's verdict is pass, pending or fail"
|
|
57791
57797
|
}).optional(),
|
|
@@ -57793,7 +57799,7 @@ var PhaseOpArguments = discriminatedUnion("op", [
|
|
|
57793
57799
|
wake_at: nextLook.optional()
|
|
57794
57800
|
}),
|
|
57795
57801
|
operation("request_backward_move", {
|
|
57796
|
-
issue: string2().optional(),
|
|
57802
|
+
issue: string2({ error: "request_backward_move's issue is an issue key, as LEGION-208 is" }).optional(),
|
|
57797
57803
|
to: _enum2(LEGION_PHASE_BACKWARD_TARGETS, {
|
|
57798
57804
|
error: (issue) => typeof issue.input === "string" && issue.input.trim() !== "" ? `request_backward_move's to is one of ${LEGION_PHASE_BACKWARD_TARGETS.join(", ")}` : "request_backward_move requires to"
|
|
57799
57805
|
}),
|
|
@@ -57867,7 +57873,8 @@ async function executePhaseOp(runtime, input) {
|
|
|
57867
57873
|
const args = parsed.data;
|
|
57868
57874
|
switch (args.op) {
|
|
57869
57875
|
case "read_record": {
|
|
57870
|
-
const
|
|
57876
|
+
const named = args.issue?.trim() ?? "";
|
|
57877
|
+
const issue = named !== "" ? named : claim.issue;
|
|
57871
57878
|
return { record: recordFrom(await daemon.state(), issue) };
|
|
57872
57879
|
}
|
|
57873
57880
|
case "read_release_records":
|
|
@@ -57882,12 +57889,16 @@ async function executePhaseOp(runtime, input) {
|
|
|
57882
57889
|
case "request_backward_move": {
|
|
57883
57890
|
let issue;
|
|
57884
57891
|
if (claim.role === "architect") {
|
|
57885
|
-
|
|
57892
|
+
const named = args.issue?.trim() ?? "";
|
|
57893
|
+
if (named === "") {
|
|
57886
57894
|
throw new Error("request_backward_move requires issue");
|
|
57887
57895
|
}
|
|
57888
|
-
issue =
|
|
57889
|
-
} else
|
|
57890
|
-
|
|
57896
|
+
issue = named;
|
|
57897
|
+
} else {
|
|
57898
|
+
const named = args.issue?.trim() ?? "";
|
|
57899
|
+
if (named !== "" && named !== claim.issue) {
|
|
57900
|
+
throw new Error(`a phase worker moves only its own issue ${claim.issue}, not ${named}`);
|
|
57901
|
+
}
|
|
57891
57902
|
}
|
|
57892
57903
|
await daemon.phaseBackward({
|
|
57893
57904
|
grantId: await mintClaimGrant(daemon, claim),
|
|
@@ -36,6 +36,7 @@ Read each by its `skill://` link: a read by path stops at 300 lines.
|
|
|
36
36
|
|
|
37
37
|
| When | Read |
|
|
38
38
|
| --- | --- |
|
|
39
|
+
| Before the turn's first `jj new` or commit, in a workspace you share | `skill://legion-worker/references/foreign-path.md` |
|
|
39
40
|
| You write or edit the PR body, record a result against a check, read another phase's results, or run the simplify pass | `skill://legion-worker/references/pr-body.md` |
|
|
40
41
|
| Before a push, to check your commits' App identity | `skill://legion-worker/references/default-branch-check.md` |
|
|
41
42
|
| You reply on, list or resolve review threads, or judge a bot's finding | `skill://legion-worker/references/review-threads.md` |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# A path you did not write
|
|
2
|
+
|
|
3
|
+
Your workspace is shared with the issue's other roles. Read this before the `jj new` your
|
|
4
|
+
role prompt has you run at the turn's start, and so before your first commit:
|
|
5
|
+
|
|
6
|
+
cd -- "$LEGION_WORKSPACE" && jj -R "$LEGION_WORKSPACE" diff -r @ --name-only
|
|
7
|
+
jj -R "$LEGION_WORKSPACE" diff --from "legion/<issue>@origin" --to @ --name-only
|
|
8
|
+
|
|
9
|
+
(Read the second against your default branch at origin before this branch's first push.)
|
|
10
|
+
Every path yours: commit and push as your role prompt says. A path you did not write that is
|
|
11
|
+
only in the second list, or already inside a commit of yours: split nothing, tell the architect.
|
|
12
|
+
A path you did not write in the first list:
|
|
13
|
+
|
|
14
|
+
cd -- "$LEGION_WORKSPACE" && jj -R "$LEGION_WORKSPACE" split -m '<issue>: <what you did>' <your paths…>
|
|
15
|
+
jj -R "$LEGION_WORKSPACE" metaedit -r @- --update-author
|
|
16
|
+
jj -R "$LEGION_WORKSPACE" bookmark set legion/<issue> -r @-
|
|
17
|
+
jj -R "$LEGION_WORKSPACE" git push --bookmark legion/<issue>
|
|
18
|
+
|
|
19
|
+
No `jj new` first: the push carries that path unless its parent has no description. This split is
|
|
20
|
+
the one exception to "Never `jj describe` or `jj split` the working-copy commit you found at the
|
|
21
|
+
turn's start", and the metaedit is why. Always `-m`, or your commit has no message of yours.
|
|
22
|
+
The remainder keeps that path, and the push above moves the bookmark's commit alone, so it stays
|
|
23
|
+
out of the branch. Never put the bookmark on the remainder, described or not: measured, that
|
|
24
|
+
pushes the other role's file. Read the first list again, then tell the architect what it held.
|
|
25
|
+
Recover forward (`jj new`, `jj restore <paths>`), never `jj undo`, `jj abandon` or `jj op restore`.
|