@sjawhar/claude-envoy 1.28.2 → 1.29.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.
@@ -2,5 +2,5 @@
2
2
  "name": "claude-envoy",
3
3
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
4
4
  "mcpServers": "./.mcp.json",
5
- "version": "1.28.2"
5
+ "version": "1.29.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "1.28.2",
3
+ "version": "1.29.0",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
@@ -55391,7 +55391,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
55391
55391
 
55392
55392
  // package.json
55393
55393
  var name = "@sjawhar/claude-envoy";
55394
- var version2 = "1.28.2";
55394
+ var version2 = "1.29.0";
55395
55395
  var legion = {
55396
55396
  daemonApiVersion: 59
55397
55397
  };
@@ -11,7 +11,7 @@ You work one phase of one issue in a jj workspace every role of the issue shares
11
11
 
12
12
  ## Every phase, in this order
13
13
 
14
- 1. **Read first.** Read the issue, then each handoff before your phase with `dispatch handoff-read --issue <issue> --phase <word>`, in order: `plan`, `implement`, `test`, `review` (a phase with no handoff answers `HANDOFF_NOT_FOUND`). Read the handoff your task's `Handoff:` line names at its version, with the command that line quotes (`dispatch handoff-read --issue <issue> --phase <word> --version <n>`): that is the record the daemon accepted, and a record written to the phase since does not replace it. Where one disagrees with your memory or a transcript, the record wins: it is the copy that survived. At each later assignment read them again, your own included, since other phases may have recorded since. After a `Your workspace was recreated…` message, anything unpushed is gone, and no file in the workspace says so; the handoffs on the Dispatch issue are kept. A release of an idle pod is the one exception for the workspace: the daemon saves the unpushed tracked work and the next pod restores it, and a message names whatever the restore could not bring back.
14
+ 1. **Read first.** Read the issue, then each handoff before your phase with `dispatch handoff-read --issue <issue> --phase <word>`, in order: `plan`, `implement`, `test`, `review` (a phase with no handoff answers `HANDOFF_NOT_FOUND`). Read the handoff your task's `Handoff:` line names at its version, with the command that line quotes (`dispatch handoff-read --issue <issue> --phase <word> --version <n>`): that is the record the daemon accepted, and a record written to the phase since does not replace it. Where a record disagrees with your memory or a transcript, the record wins: it is the copy that survived. At each later assignment read them again, your own included, since other phases may have recorded since. After a `Your workspace was recreated…` message, anything unpushed is gone, and no file in the workspace says so; the handoffs on the Dispatch issue are kept. A release of an idle pod is the one exception for the workspace: the daemon saves the unpushed tracked work and the next pod restores it, and a message names whatever the restore could not bring back. That version rule holds for the `implement`, `test` and `review` records, which are one round's own and must not move under a reader. The plan is the exception to it, and the rest of this item is for the roles that work from the plan: the implementer, the tester and the reviewer. The plan is the issue's `plan.md` document, and its planner goes on writing that document after the planning phase ends, so your task's `Handoff: plan version <n>` line is the receipt for the record the daemon accepted rather than the plan. The plan you build from is `plan.md` at the newest version the plan review approved: the version that the `Approval:` line of `dispatch read --issue <issue> --artifact plan-md` names (`approved v<n>`, and `approved v<n> … changed since` names that same version). `dispatch doc-read --issue <issue> --artifact plan-md --version <n>` prints the text of one version, and with no `--version` the newest. A newer version that the `Approval:` line does not name is a revision the plan review has not approved: build from the approved version and not from that one, and tell the planner what the newer version means for your work with `envoy_publish` to its role topic (your own topic with the trailing `-<role>` replaced by `-planner`), going on with the approved version while you wait. Read `plan.md` again before each task of the plan you begin and before you write your handoff, because a version approved while you work is the plan now. When the issue has no `plan.md`, or `dispatch read` prints no `Approval:` line for it, the plan is the `plan` record the daemon accepted: the `legion` tool's `read_record` gives its version as `workers.planner.handoffRecord.version`, and `dispatch handoff-read --issue <issue> --phase plan --version <n>` reads it. When that line reads `changes requested on v<n>`, it is the newest review alone and an older approval may still stand, which no command lists: ask the planner on that same topic which approved version stands, build from the accepted `plan` record until it answers, and build from the version it names once it has.
15
15
  2. **Commit only your phase's work**, with `jj -R "$LEGION_WORKSPACE" split -m "<message>" <paths…>`, each commit holding only your phase's paths, so the next phase sees what you changed.
16
16
  3. **Put back what you copied in.** Before you write the handoff, run `jj -R "$LEGION_WORKSPACE" status` and remove or restore every file you copied or fetched in that is not your phase's work, such as another branch's test rig. With jj the working copy is the commit: the next role's first commit builds on what you left, and its push ships it.
17
17
  4. **Write the handoff** your role prompt names, with the `write` tool to `$TMPDIR/<issue>-<word>.json`, outside the workspace (jj snapshots every file in the workspace into the working-copy commit), then record it with `dispatch handoff-write --issue <issue> --phase <word> --body-file "$TMPDIR/<issue>-<word>.json"`. A handoff is never a commit, and no handoff carries the evidence: what you ran is a result you record against one of the issue's checks with `dispatch result`, and `skill://legion-worker/references/pr-body.md#what-a-result-is` defines a check and a result. To change a handoff already recorded, read it with `dispatch handoff-read`, edit the body, and record it whole again: each `dispatch handoff-write` adds a version, and `handoff_complete` reports the newest.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "1.28.2",
3
+ "version": "1.29.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",