Skip to content

onlyworlds 0.11.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 21:24
· 527 commits to main since this release
  • The doctor (onlyworlds.doctor): a read-only check over a world, from a folder (python -m onlyworlds.doctor PATH, doctor_folder) or through the API (--api with OW_API_KEY and OW_API_PIN, or the toolkit's ONLYWORLDS_API_KEY and ONLYWORLDS_API_PIN, doctor_api). It runs the eight universal flags: a link to an element that is not there, a Title whose holders changed with no dated Relation, an Event ending before it starts, an element with no links in or out, two elements of one type whose names collide once folded (a name shared across types is the format's own convention, a Location and its Pin or Zone, and is not counted), a stub never filled in two readings (a known-of stub older than --days, 6a; an element with no text in any of its type's text fields from the schema, never description alone, 6b; it skips the types with fewer than two prose fields beside description, map, marker, pin and relation, named in compared["6b"].skipped_types), a message unread after N days, a charter untouched after --changes changes; and on the folder door two file-side ones, a format_version older than FORMAT_VERSION and an api_key in a git-tracked world.json. Each flag that ran says how much it compared (compared: n of m); one it cannot evaluate is listed in not_run with its reason, never as clean. Flag 7 never runs (no read mark exists in the folder, the API or this package), and flag 2 does not run on keel's feed today: each element's upsert comes from its row at its latest change_seq, so a walk holds current bodies only. A finding on a parlor- or message-shaped element (supertype Message, Board, Work item, Spec, Heart, Vote or Sitting) carries "kind": "message" (other findings have no kind); the prose lists those last, under "Messages and room things", outside the count of things to look at, and they still make the exit code 1. Prose or --json (world, ran, not_run, findings, compared, written: 0); exit 0 clean, 1 findings, 2 nothing could be read. It never writes: no file, no API write, no fix.