From 8f1c249d78127969b74bf58141f08df76cdcc27d Mon Sep 17 00:00:00 2001 From: Titus Date: Tue, 1 Dec 2026 08:56:25 +0100 Subject: [PATCH 1/2] me()'s docstring names front_door.charter_text and charter_text_more The server's front door is to carry the Charter's own text. Staged until it serves the two keys: the wire test holds this docstring to the document's front_door keys in order. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 ++ src/onlyworlds/http.py | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8b98a4..5604623 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ The package version runs on its own semver; the schema it is generated from is ` ## Unreleased +- **`me()`'s docstring names `front_door.charter_text` and `charter_text_more`.** The server's front door now carries the world's Charter's own text, its first 20,000 code points, and whether it was cut; both None where `charter` is. `me()` returned them already, as it returns the whole answer; only its description moved. + ## 0.160.1 (2026-11-30) - **Fixed: a name that holds half of a surrogate pair is refused.** The world file's name check, and so `write_folder`, `export_world` and the import doors through its id check, and `world_file_bytes` and `write_world_file`, now refuse a name or an id that is not well-formed Unicode, in the words "is not well-formed Unicode: it holds half of a surrogate pair" (folder format, ruled after serial 150), as the npm SDK does from 4.227.1. No archive name can carry such a name. Before, `write_folder` wrote it to an NTFS disk, and on a disk whose names are UTF-8 it could not encode the name at all. diff --git a/src/onlyworlds/http.py b/src/onlyworlds/http.py index 82de88e..f010024 100644 --- a/src/onlyworlds/http.py +++ b/src/onlyworlds/http.py @@ -605,9 +605,12 @@ def me(self) -> dict[str, Any]: ``character`` is the member's Character id, or None; ``lenses`` the lens ids its holder chose (``set_my_lenses``), in order, empty for none. ``front_door`` is ``{sponsor, sponsor_character, my_character, my_seats, charter, charter_skill, - charter_element, charter_skill_elements}``: who answers for a seat, its Character, the seats - you answer for, and the world's Charter (every member's to read; an agent reads it first) - with up to five Objects it names; anything hidden from the key is None or left out. + charter_element, charter_skill_elements, charter_text, charter_text_more}``: who answers for + a seat, its Character, the seats you answer for, and the world's Charter (every member's to + read) with up to five Objects it names; anything hidden from the key is None or left out. + ``charter_text`` is the Charter's description as reading the Law serves it to this key, its + first 20,000 code points, and ``charter_text_more`` True when it was cut; both None where + ``charter`` is, ``""`` and False for a Charter with an empty description. ``charter_element`` and ``charter_skill_elements`` are the same two, typed as ``{type, id}`` (``law`` for the Charter, ``object`` for each skill), None and an empty list where ``charter`` and ``charter_skill`` are. ``my_seats`` lists the live AI and player seats you answer for, From bf3f62097172848b558e953555fd8c438f08bf67 Mon Sep 17 00:00:00 2001 From: Titus Date: Tue, 1 Dec 2026 10:07:07 +0100 Subject: [PATCH 2/2] 0.160.2: me()'s docstring names the front door's Charter text Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 ++ src/onlyworlds/_version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5604623..4845195 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ The package version runs on its own semver; the schema it is generated from is ` ## Unreleased +## 0.160.2 (2026-12-01) + - **`me()`'s docstring names `front_door.charter_text` and `charter_text_more`.** The server's front door now carries the world's Charter's own text, its first 20,000 code points, and whether it was cut; both None where `charter` is. `me()` returned them already, as it returns the whole answer; only its description moved. ## 0.160.1 (2026-11-30) diff --git a/src/onlyworlds/_version.py b/src/onlyworlds/_version.py index dc85b91..7937fa1 100644 --- a/src/onlyworlds/_version.py +++ b/src/onlyworlds/_version.py @@ -1 +1 @@ -__version__ = "0.160.1" +__version__ = "0.160.2"