Skip to content

onlyworlds 0.74.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 09:29
· 304 commits to main since this release
  • The lens profile's reader (schema-dist v0.33.0-dist.78, profiles/lens.md; the schema repinned from dist.77, the same canonical 00.33.00, so SCHEMA_VERSION stays 00.33.00 and no element field moved), the npm SDK's under snake_case names. is_lens(element), is_template(element) (a lens with subtype Template, which resolves to nothing), resolve_lens(world, lens, reader, as_of=None, clock=None) returning LensReading (kept, rows, cut by reason, notes_ignored, mail, unreadable): the profile's ten rules over a world snapshot, pure, for one reader (owner, contributor, guest with whole and known_of, public, and an owner reading as another). A value outside the profile's table names the key in unreadable and resolves nothing. The reading's date is as_of, else the world's now (now, else the World's time_current); with none, nothing is fenced and the window cuts nothing. clock is the wall-clock time the mail rule's thirty days count back from, never the world's now. The mail rule reads the message profile's own readers. lenses_in_use(membership, x_lens_uses): the membership's choice wins. The fixture's 84 cases run as tests/test_lens.py, beside ten shared edge cases (tests/fixtures/lens-edges.json, the same bytes as the npm SDK's) for what the fixture leaves open; the answers equal the npm SDK's resolveLens on thousands of random worlds.