@onlyworlds/sdk 4.53.3 → 4.54.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/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.32.2-dist.42** (canonical 00.32.02).
3
+ **Current as of**: SDK **4.x** · schema-dist **v0.33.0-dist.43** (canonical 00.33.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,16 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.54.0] - 2026-10-22
9
+
10
+ ### Added
11
+
12
+ - **`Zone.shape`** (canonical 00.33.00, a minor step of the standard): a string in Zone's Scope section beside `role`, saying how the zone's markers are joined. `"polygon"` is a closed area (the last marker joins the first), `"line"` an open path drawn in marker order; lowercase. Empty, absent or any other value means not stated, and a reader draws a polygon. Generated as `shape?: string` on `ZoneV2`, `FIELD_SCHEMA.zone.shape` (`{ type: 'text' }`), and in Zone's `Scope` entry of `ELEMENT_SECTIONS`. `ONLYWORLDS_VERSION` is `'00.33.00'`.
13
+
14
+ ### Changed
15
+
16
+ - **Schema repinned to schema-dist v0.33.0-dist.43** (canonical 00.33.00). Only `schema/zone.yaml` and `schema.json` moved, by the one field; `VERSION`, `README.md`, `example/world-export.json` and `MANIFEST.json` carry the new version; nothing else.
17
+
8
18
  ## [4.53.3] - 2026-10-22
9
19
 
10
20
  ### Changed
package/SCHEMA.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OnlyWorlds Schema Reference
2
2
 
3
- **Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.32.2-dist.42** — canonical schema **00.32.02**, published 2026-10-22.
3
+ **Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.33.0-dist.43** — canonical schema **00.33.00**, published 2026-10-22.
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.
@@ -619,6 +619,7 @@ Families (colour semantics; icon carries the type): agents · world · abstract
619
619
  ### Scope
620
620
 
621
621
  - `role` (text) — The operational function or intent of the zone
622
+ - `shape` (text) — How the zone's markers are joined: polygon (a closed area: the last marker joins the first) or line (an open path, drawn in marker order). Lowercase. Empty, absent, or any other value means the shape is not stated, and a reader draws a polygon
622
623
  - `start_date` (integer) — Date when the zone becomes extant or relevant, defined in world TIME units
623
624
  - `end_date` (integer) — Date when the zone ceases to be meaningful or enforced, defined in world TIME units
624
625
  - `phenomena` (multi link → phenomenon) — Phenomena that affect, define, or occur within the zone
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ type ElementType = 'ability' | 'character' | 'collective' | 'construct' | 'creat
42
42
  declare const ELEMENT_TYPES: ElementType[];
43
43
  /** Canonical OnlyWorlds schema version. Source: the `canonical:` value of the pinned
44
44
  * distribution's VERSION file (see the provenance block at the top of this file). */
45
- declare const ONLYWORLDS_VERSION: "00.32.02";
45
+ declare const ONLYWORLDS_VERSION: "00.33.00";
46
46
  /** The four semantic families (colour carries the family; ELEMENT_ICONS carries the type). */
47
47
  type ElementFamily = 'agents' | 'world' | 'abstract' | 'temporal';
48
48
  /** Per-type semantic family. Source: the distribution's `presentation.json` sidecar
@@ -1848,6 +1848,9 @@ declare const FIELD_SCHEMA: {
1848
1848
  readonly role: {
1849
1849
  readonly type: "text";
1850
1850
  };
1851
+ readonly shape: {
1852
+ readonly type: "text";
1853
+ };
1851
1854
  readonly start_date: {
1852
1855
  readonly type: "integer";
1853
1856
  };
package/dist/index.js CHANGED
@@ -1680,7 +1680,7 @@ function buildQuery(params) {
1680
1680
 
1681
1681
  // src/v2/types.generated.ts
1682
1682
  var ELEMENT_TYPES = ["ability", "character", "collective", "construct", "creature", "event", "family", "institution", "language", "law", "location", "map", "marker", "narrative", "object", "phenomenon", "pin", "relation", "species", "title", "trait", "zone"];
1683
- var ONLYWORLDS_VERSION = "00.32.02";
1683
+ var ONLYWORLDS_VERSION = "00.33.00";
1684
1684
  var ELEMENT_FAMILIES = {
1685
1685
  ability: "abstract",
1686
1686
  character: "agents",
@@ -1852,7 +1852,7 @@ var ELEMENT_SECTIONS = {
1852
1852
  { name: "World", order: 3, fields: ["significance", "anti_trait", "empowered_abilities"] }
1853
1853
  ],
1854
1854
  zone: [
1855
- { name: "Scope", order: 1, fields: ["role", "start_date", "end_date", "phenomena", "linked_zones"] },
1855
+ { name: "Scope", order: 1, fields: ["role", "shape", "start_date", "end_date", "phenomena", "linked_zones"] },
1856
1856
  { name: "World", order: 2, fields: ["context", "populations", "titles", "principles"] }
1857
1857
  ]
1858
1858
  };
@@ -2436,6 +2436,7 @@ var FIELD_SCHEMA = {
2436
2436
  image_url: { type: "text", required: false },
2437
2437
  // Scope
2438
2438
  role: { type: "text" },
2439
+ shape: { type: "text" },
2439
2440
  start_date: { type: "integer" },
2440
2441
  end_date: { type: "integer" },
2441
2442
  phenomena: { type: "multi_link", target: "phenomenon" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.53.3",
3
+ "version": "4.54.0",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {