@onlyworlds/sdk 4.129.0 → 4.129.2

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/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # For AI agents using @onlyworlds/sdk
2
2
 
3
- **Current as of**: SDK **4.x** · schema-dist **v0.34.0-dist.105** (canonical 00.34.00).
3
+ **Current as of**: SDK **4.x** · schema-dist **v0.34.0-dist.106** (canonical 00.34.00).
4
4
  This line is asserted by `codegen:check` in CI — if the pin moves and this file is not
5
5
  re-read against it, the check fails rather than letting this document rot quietly.
6
6
 
package/CHANGELOG.md CHANGED
@@ -5,6 +5,22 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.129.2] - 2026-11-02
9
+
10
+ ### Fixed
11
+
12
+ - **`mapSpace` reads a number past 2^53 as not whole** (schema-dist `profiles/map-space.md`, rule 1: a reader holds whole numbers within the range it holds exactly). JavaScript parses a larger integer to the nearest double, so `-9223372036854775809` arrived as -2^63 and was kept as a point at that rounded value. A coordinate, `order`, `width`, `height` or `depth` past 2^53 - 1 now reads as not a whole number, as one with a fraction does: an `x` or `y` leaves the row out (`no_point`), a `z` reads as 0. The profile's fixture keeps every number inside that range, so no fixture answer moves.
13
+
14
+ ## [4.129.1] - 2026-11-02
15
+
16
+ ### Fixed
17
+
18
+ - **`mapSpace` reads two rows of one type with one id as the last one served** (schema-dist `profiles/map-space.md`, serial 106, reading I: an element is its id). Markers and Pins now follow the rule Maps and Zones already did: until now each row of a repeated Marker or Pin id was read as a Marker or Pin of its own. The last row wins even when it reads less (no point, or a map that is not served), and is then counted under its reason.
19
+
20
+ ### Changed
21
+
22
+ - **Schema repinned to schema-dist `v0.34.0-dist.106`** (from dist.105); the standard stays canonical **00.34.00** and no schema field moved. Serial 106 words the map-space page's readings I to K and four sharpened rules (a measured frame from placed points only, a `z` that is not a whole number read as 0, `no_markers` for a Zone with no placed Marker, a Pin with neither a served map nor a point counted once as `no_map`), and its fixture holds 34 cases. Apart from reading I, `mapSpace` already answered every new case as ruled.
23
+
8
24
  ## [4.129.0] - 2026-11-02
9
25
 
10
26
  ### Added
package/SCHEMA.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OnlyWorlds Schema Reference
2
2
 
3
- **Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.34.0-dist.105** — canonical schema **00.34.00**, published 2026-11-02.
3
+ **Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.34.0-dist.106** — canonical schema **00.34.00**, published 2026-11-02.
4
4
 
5
5
  GENERATED from the canonical schema YAML — do not hand-edit (regenerate: `python codegen/generate_types.py`).
6
6
  Written for both humans and AI agents reading this package locally.
package/dist/index.d.ts CHANGED
@@ -5770,7 +5770,8 @@ interface OwMapSpace {
5770
5770
  * `order` sorts after every ordered one, then by id. A Marker whose Zone or Map is not served is counted `dangling`
5771
5771
  * (checked first), one without a whole `x` and `y` `no_point`; a Zone without a placed Marker `no_markers`; a Pin whose
5772
5772
  * Map is not served `no_map`, one without a whole `x` and `y` `no_point`. A `z` past a Map's `depth` is kept as written
5773
- * and reported in the Map's `z_max`. A row without a non-empty string `id` is no element and is not counted.
5773
+ * and reported in the Map's `z_max`. A row without a non-empty string `id` is no element and is not counted; two rows
5774
+ * of one type with one id read as the last one served.
5774
5775
  */
5775
5776
  declare function mapSpace(elements: readonly unknown[]): OwMapSpace;
5776
5777
 
package/dist/index.js CHANGED
@@ -3846,7 +3846,7 @@ function landingOf(graph, options) {
3846
3846
 
3847
3847
  // src/mapspace.ts
3848
3848
  var isRow = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
3849
- var whole3 = (v) => typeof v === "number" && Number.isInteger(v);
3849
+ var whole3 = (v) => typeof v === "number" && Number.isSafeInteger(v);
3850
3850
  var idOf2 = (v) => typeof v === "string" && v !== "" ? v : null;
3851
3851
  var byId = (a, b) => byCodePoint(a, b);
3852
3852
  function point(e) {
@@ -3861,20 +3861,15 @@ function mapSpace(elements) {
3861
3861
  if (!Array.isArray(elements)) throw new TypeError("mapSpace: elements is a list of elements.");
3862
3862
  const byType = /* @__PURE__ */ new Map();
3863
3863
  for (const e of elements) {
3864
- if (!isRow(e) || typeof e.type !== "string" || idOf2(e.id) === null) continue;
3865
- const list2 = byType.get(e.type);
3866
- if (list2) list2.push(e);
3867
- else byType.set(e.type, [e]);
3868
- }
3869
- const rowsOf2 = (type) => byType.get(type) ?? [];
3870
- const indexed = (type) => {
3871
- const m = /* @__PURE__ */ new Map();
3872
- for (const r of rowsOf2(type)) {
3873
- const id = idOf2(r.id);
3874
- if (id !== null) m.set(id, r);
3875
- }
3876
- return m;
3877
- };
3864
+ if (!isRow(e) || typeof e.type !== "string") continue;
3865
+ const id = idOf2(e.id);
3866
+ if (id === null) continue;
3867
+ const rows = byType.get(e.type);
3868
+ if (rows) rows.set(id, e);
3869
+ else byType.set(e.type, /* @__PURE__ */ new Map([[id, e]]));
3870
+ }
3871
+ const indexed = (type) => byType.get(type) ?? /* @__PURE__ */ new Map();
3872
+ const rowsOf2 = (type) => [...indexed(type).values()];
3878
3873
  const maps = indexed("map");
3879
3874
  const zones = indexed("zone");
3880
3875
  const out = { no_point: 0, no_markers: 0, dangling: 0, no_map: 0 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.129.0",
3
+ "version": "4.129.2",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {