@onlyworlds/sdk 4.86.0 → 4.87.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.87.0] - 2026-10-26
9
+
10
+ ### Changed
11
+
12
+ - **`draughtText` names what the date horizon left out.** When the draught has an `as_of`, a line above the budget line says it: `Not listed: rows dated after Year 300.` when the read was the Character's own view (`mode: voice`, where the horizon fences every section), and `Not listed: Events, Knowledge and proposed Events or Narratives dated after Year 300.` when it was the caller's (`act`, where it fences only those). The packet carries no count of those rows, so the line gives none. Before, only the title said the horizon, and `Left out by the budget: nothing.` could be read as a complete record when the text was pasted alone.
13
+ - **A removed member reads `removed from the world`**, not `removed`, so the word cannot be read as part of the member's name. The shared fixture's expected texts are regenerated (45 of 47 cases change; the two with no `as_of` are unchanged), and the Python package's `draught_text` gives the same bytes from 0.71.0.
14
+
8
15
  ## [4.86.0] - 2026-10-26
9
16
 
10
17
  ### Added
package/dist/index.d.ts CHANGED
@@ -5113,8 +5113,9 @@ declare function buildAskContext<T extends OwLookupElement>(items: Array<OwLooku
5113
5113
  * The frame says what the packet does: the horizon (`as_of`), the world's now, and whose view it
5114
5114
  * was read through (`mode`). Her own element prints whole; every other row prints its name, type
5115
5115
  * and kind, how it reached her (`via`), its grade or date, the marks `hidden` and `proposed`, and
5116
- * its description. The sections that hold nothing are named on one line, and what the budget left
5117
- * out (`cut`) is always said.
5116
+ * its description. The sections that hold nothing are named on one line; what the date horizon left
5117
+ * out is named (never counted: the packet carries no count), and what the budget left out (`cut`) is
5118
+ * always said.
5118
5119
  *
5119
5120
  * A draught that is not an object, or has no `world` object, is a TypeError. Takes no options.
5120
5121
  */
package/dist/index.js CHANGED
@@ -4592,7 +4592,7 @@ function draughtText(draught) {
4592
4592
  const n = typeof plays === "string" ? names.get(plays) : void 0;
4593
4593
  line += n === void 0 ? " \xB7 plays a Character not in this draught" : ` \xB7 plays ${n}`;
4594
4594
  }
4595
- if (own(row, "status") === "removed") line += " \xB7 removed";
4595
+ if (own(row, "status") === "removed") line += " \xB7 removed from the world";
4596
4596
  return line;
4597
4597
  };
4598
4598
  const recentMore = own(d, "recent_more") === true;
@@ -4621,6 +4621,8 @@ function draughtText(draught) {
4621
4621
  const cut2 = own(d, "cut");
4622
4622
  const left = isObj(cut2) ? Object.keys(cut2).filter((k) => isInt(cut2[k])).map((k) => `${BigInt(cut2[k]).toString()} ${k}`) : [];
4623
4623
  out.push("");
4624
+ if (isInt(asOf) && mode === "voice") put(`Not listed: rows dated after ${moment(asOf)}.`);
4625
+ else if (isInt(asOf) && mode === "act") put(`Not listed: Events, Knowledge and proposed Events or Narratives dated after ${moment(asOf)}.`);
4624
4626
  put(`Left out by the budget: ${left.length ? left.join(", ") : "nothing"}.`);
4625
4627
  return out.join("\n") + "\n";
4626
4628
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.86.0",
3
+ "version": "4.87.0",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {