@sjawhar/opencode-legion-envoy 3.19.9 → 4.0.1
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/dist/src/server.js
CHANGED
|
@@ -17411,7 +17411,7 @@ ${followsAsk(askOwner)}`,
|
|
|
17411
17411
|
const unchangedOps = edited.unchanged_ops ?? [];
|
|
17412
17412
|
const unchangedText = unchangedOps.length === 0 ? "" : `; ${unchangedOps.length === 1 ? "operation" : "operations"} ${unchangedOps.join(", ")} changed nothing`;
|
|
17413
17413
|
const lostOps = edited.lost_ops;
|
|
17414
|
-
const lostText = lostOps === undefined || lostOps !== null && lostOps.length === 0 ? "" : lostOps === null ? "; could not confirm this edit survived, because the live document is being reloaded \u2014 re-read it" : `; ${versionText} carries text the live document no longer has: a concurrent change removed what ${lostOps.length === 1 ? "operation" : "operations"} ${lostOps.join(", ")} wrote \u2014 re-read the document`;
|
|
17414
|
+
const lostText = lostOps === undefined || lostOps !== null && lostOps.length === 0 ? "" : lostOps === null ? "; could not confirm this edit survived, because the live document is being reloaded or holds a tree too deep to read \u2014 re-read it" : `; ${versionText} carries text the live document no longer has: a concurrent change removed what ${lostOps.length === 1 ? "operation" : "operations"} ${lostOps.join(", ")} wrote \u2014 re-read the document`;
|
|
17415
17415
|
const applied = `${head}${unchangedText}${lostText}`;
|
|
17416
17416
|
const adviceLines = renderAdvice(input.tool, resolvedTopic(resolved).label, edited.advice, {});
|
|
17417
17417
|
const tokenTrailer = edited.token === undefined ? [] : [`Document token: ${edited.token}`];
|
package/package.json
CHANGED
|
@@ -182,9 +182,10 @@ was written: re-read the document and decide again, as with `PRECONDITION_FAILED
|
|
|
182
182
|
`lost_ops` names operations means the version was written and the live document already lacks what
|
|
183
183
|
those operations wrote, because the deletion landed after the version: re-read before building on
|
|
184
184
|
it. `lost_ops: []` is the ordinary outcome, and a result that says it could not confirm the edit
|
|
185
|
-
survived means the room is reloading — re-read
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
survived means the room is reloading or holds a tree too deep to read — re-read, and a read that
|
|
186
|
+
answers `DOC_SCHEMA` says which. An operation that only removes text (`delete`, `delete_row`,
|
|
187
|
+
`delete_column`, a `replace` that shortens) is never reported lost: a concurrent deletion cannot
|
|
188
|
+
undo a removal.
|
|
188
189
|
|
|
189
190
|
`retype` turns the paragraph or typed block with `block` into the named typed `type` in place. It keeps the
|
|
190
191
|
block id, keeps a typed block's body, and uses `attributes` for client-owned typed attributes. Use it when
|
|
@@ -69,9 +69,8 @@ their own machine, and you are that foreground OMP session. The command fetched
|
|
|
69
69
|
secret from the daemon with the operator's token, wrote it to a 0600 file under `LEGION_STATE_DIR`
|
|
70
70
|
(`~/.local/state/legion/<project>-controller` by default) beside the `gh` shim and the `legion`
|
|
71
71
|
launcher, and started you with `LEGION_CONTROLLER=1` and the same environment a tmux controller pane
|
|
72
|
-
carries, so nothing changes in how you handle wakes.
|
|
73
|
-
|
|
74
|
-
(`LEGION_DAEMON_API=go` in your environment) it registers on `/legion/v1/claims/register` with the
|
|
72
|
+
carries, so nothing changes in how you handle wakes. The extension registers on
|
|
73
|
+
`/legion/v1/claims/register` with the
|
|
75
74
|
secret, claims the role, then subscribes to `notifications.legion.<project>.controller`, where the
|
|
76
75
|
Go daemon publishes the rows marked from the Go daemon in the wake routing table. The daemon records
|
|
77
76
|
you as `controllerLocator: {runtime, external: true, sessionId, registeredAt}`, `runtime` being the
|