@sjawhar/pi-legion-envoy 6.0.0 → 6.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/envoy.js CHANGED
@@ -34707,7 +34707,7 @@ ${followsAsk(askOwner)}`,
34707
34707
  const unchangedOps = edited.unchanged_ops ?? [];
34708
34708
  const unchangedText = unchangedOps.length === 0 ? "" : `; ${unchangedOps.length === 1 ? "operation" : "operations"} ${unchangedOps.join(", ")} changed nothing`;
34709
34709
  const lostOps = edited.lost_ops;
34710
- 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`;
34710
+ 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`;
34711
34711
  const applied = `${head}${unchangedText}${lostText}`;
34712
34712
  const adviceLines = renderAdvice(input.tool, resolvedTopic(resolved).label, edited.advice, {});
34713
34713
  const tokenTrailer = edited.token === undefined ? [] : [`Document token: ${edited.token}`];
package/dist/legion.js CHANGED
@@ -17493,7 +17493,7 @@ ${followsAsk(askOwner)}`,
17493
17493
  const unchangedOps = edited.unchanged_ops ?? [];
17494
17494
  const unchangedText = unchangedOps.length === 0 ? "" : `; ${unchangedOps.length === 1 ? "operation" : "operations"} ${unchangedOps.join(", ")} changed nothing`;
17495
17495
  const lostOps = edited.lost_ops;
17496
- 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`;
17496
+ 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`;
17497
17497
  const applied = `${head}${unchangedText}${lostText}`;
17498
17498
  const adviceLines = renderAdvice(input.tool, resolvedTopic(resolved).label, edited.advice, {});
17499
17499
  const tokenTrailer = edited.token === undefined ? [] : [`Document token: ${edited.token}`];
@@ -17835,7 +17835,7 @@ function endInjectedUserTurns(sessionID) {
17835
17835
  // package.json
17836
17836
  var package_default = {
17837
17837
  name: "@sjawhar/pi-legion-envoy",
17838
- version: "6.0.0",
17838
+ version: "6.0.1",
17839
17839
  type: "module",
17840
17840
  omp: {
17841
17841
  extensions: [
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [