Skip to content

@onlyworlds/sdk 4.182.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 13:07
· 131 commits to main since this release

Changed

  • The schema pin moves to v0.34.1-dist.138 (serials 137 and 138; canonical 00.34.01 unchanged, no schema file moved, no generated type changed). Serial 137 publishes the by-links-3d method on the layout profile's page, with its fixture (116 cases) and directions table, adds four map-space cases (a Map's width or height that is a whole number, 0 and under 0 included, is answered as written; a slot measured on a Map with no placed point of its own is null), three layout-reading cases and two unplaced cases. Serial 138 adds cases to the lens (246), charter (16 design), report (9 talk) and packet (11 state, 14 asker) fixtures. Every case passes as published.
  • The lens readers take serial 138's hidden rule and a co-builder rung. A contributor's view is the world less the hidden, plus the hidden elements it made, listed in whole; a reader with the rung co-builder reads the whole world as the owner does, hidden elements included, without the owner's two counts. A reader with any other rung is still refused.
  • "AI seat" is the name the doc comments, the README and the error classes' descriptions use for a seat an AI holds in a world, as the site does. Field names, routes and values (agent, sponsor, agent_writes_proposed) are unchanged.
  • layoutByLinks3d lays out every piece of the graph, and hands back what it does not place. It follows the layout profile's page as serial 137 publishes it: every other piece of linked elements is laid out by its own links, as the main one is. A piece with a pinned or held element stands where those points put it; every other one stands on a ring round the main shape, the largest first, a ring holding as many as fit before the next opens further out (the ring's angles use the runtime's arcsine, cosine and sine, so those points agree within a billionth of a rest). An element linked to no other and pinned on no map is no longer placed on a shelf under the picture: it is left out of the answer's rows and listed, by id in code point order, in the answer's new unplaced, which is unplacedByLinks3d's answer for the Map the layout makes. OwLayout3dHow loses shelf and OwLayout3dPart loses no-link. The held box (held-box) is now tested per piece on the held points that piece holds (a pinned element's Pin among them in a piece other than the main one), after the shape of held and heldUnit are read, so a box too wide beside a bad heldUnit is refused as held-unit. The answers move, so BY_LINKS_3D_VERSION is 2, and a picture kept under 1 is no longer one to hand back as held. The method's test now reads the published fixture (116 cases) from the schema pin, and the package's own copy is gone; seven cases of that copy are not in the published fixture under their old names: one element, no link at all, two pieces of one size, the shelf with a pinned element that hangs, held: a saved answer, rounded, with heldUnit, held: a saved answer, rounded, with no heldUnit and refused: a box made too wide by an id that is no node. Their answers are pinned no more; scripts/pin-layout-answers.mjs now lets a case go only under a raised version, and names each one it lets go.