@sjawhar/opencode-legion-envoy 4.0.0 → 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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {
@@ -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. An operation that only removes text (`delete`,
186
- `delete_row`, `delete_column`, a `replace` that shortens) is never reported lost: a concurrent
187
- deletion cannot undo a removal.
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