@onlyworlds/sdk 4.111.0 → 4.113.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 +1 -1
- package/CHANGELOG.md +27 -1
- package/README.md +30 -0
- package/SCHEMA.md +1 -1
- package/dist/chunk-PVVXKLWE.js +1982 -0
- package/dist/index.d.ts +14 -6
- package/dist/index.js +112 -1977
- package/dist/waymark.css +364 -0
- package/dist/waymark.d.ts +100 -0
- package/dist/waymark.js +468 -0
- package/package.json +14 -5
package/dist/index.d.ts
CHANGED
|
@@ -2977,7 +2977,10 @@ interface OwDraught {
|
|
|
2977
2977
|
calendar: Record<string, unknown>;
|
|
2978
2978
|
as_of: number | null;
|
|
2979
2979
|
now: number | null;
|
|
2980
|
+
/** The mode asked for (`voice` or `act`); `reader` says what the packet was read as. */
|
|
2980
2981
|
mode: 'voice' | 'act';
|
|
2982
|
+
/** The rung the packet was built through: `public` reads as itself in either mode; otherwise the owner, a member's role, or a seat. Kept under `compact`. */
|
|
2983
|
+
reader?: 'public' | 'owner' | 'co_builder' | 'contributor' | 'guest' | 'seat' | 'player';
|
|
2981
2984
|
/** The policy served under, every key resolved. */
|
|
2982
2985
|
policy: Record<string, unknown>;
|
|
2983
2986
|
/** {section: items the budget dropped}; empty when whole. `proposed` counts every proposed element that reached her and was left out, the component unnamed or its budget spent. */
|
|
@@ -5177,7 +5180,7 @@ interface OwLensReader {
|
|
|
5177
5180
|
character?: string | null;
|
|
5178
5181
|
/** A guest's whole elements. */
|
|
5179
5182
|
whole?: readonly string[] | null;
|
|
5180
|
-
/** A guest's known-of elements, served as stubs (no links, no date). */
|
|
5183
|
+
/** A guest's known-of elements, served as stubs (the base and public fields, every other field unset: no links, no date). */
|
|
5181
5184
|
known_of?: readonly string[] | null;
|
|
5182
5185
|
/** On an owner: the reader it reads as. The view is that reader's; the owner's two counts stay. */
|
|
5183
5186
|
as?: OwLensReader | null;
|
|
@@ -5283,11 +5286,13 @@ declare function lensesInUse(membership: readonly string[] | null | undefined, x
|
|
|
5283
5286
|
*
|
|
5284
5287
|
* The rules, in short: visibility first (a hidden or proposed element is not there to hop through; a
|
|
5285
5288
|
* known-of stub is kept as served and nothing hops out of it); a hop reaches both ways, and on through
|
|
5286
|
-
* a Relation to its parties
|
|
5289
|
+
* a Relation to its parties, only to an element of the link's target type (a generic pair's type key
|
|
5290
|
+
* compared exact against the 22 slugs); an umbrella enters each child lens once, each child keeping its own budget and mail rule, the rows made by the umbrella's `show`; a hop never crosses a room
|
|
5287
5291
|
* element; a reading aid (the charter, its guide, a domain: `isCharterElement`) a hop reaches is kept, and
|
|
5288
5292
|
* hopped on from, only when `types` names its pair, while one the lens names as an anchor is kept and
|
|
5289
5293
|
* followed; anchors first in link order, then by type in the schema's order, newest first, then by id;
|
|
5290
|
-
* an anchor the reader cannot see
|
|
5294
|
+
* an anchor the reader cannot see (an id naming no element, or one of another type than its field's, too)
|
|
5295
|
+
* is skipped and counted for the owner (`anchor_not_visible`); a template resolves to nothing; the fence is `as_of` on
|
|
5291
5296
|
* each element's own date; `changed_within` cuts what a hop or a filter reaches that changed longer ago
|
|
5292
5297
|
* than that many days before `clock` (`stale`), never an anchor. A value outside the profile's table makes
|
|
5293
5298
|
* the lens unreadable: `unreadable` names the key and nothing is resolved.
|
|
@@ -5396,7 +5401,7 @@ interface OwGraphNode {
|
|
|
5396
5401
|
id: string;
|
|
5397
5402
|
/** The element's type, as its slug (`character`). */
|
|
5398
5403
|
type: string;
|
|
5399
|
-
/** The element's name, or null when it has none. */
|
|
5404
|
+
/** The element's name as stored, or null when it has none; nothing invented. */
|
|
5400
5405
|
name: string | null;
|
|
5401
5406
|
/** The type's colour group, its colour word (`blue`, `green`, `pink` or `amber`), from the distribution's
|
|
5402
5407
|
* presentation defaults: a key for drawing the 22 types, never a classification and never shown as a label. */
|
|
@@ -5442,8 +5447,11 @@ interface OwWorldGraph {
|
|
|
5442
5447
|
*
|
|
5443
5448
|
* Each schema link field, and each extension field a profile declares a link (`x_lens_leads_to`,
|
|
5444
5449
|
* `x_spine_depends_on`), gives one edge per target that is a node, with the target's place in the list as
|
|
5445
|
-
* the reader is served it
|
|
5446
|
-
*
|
|
5450
|
+
* the reader is served it (the owner's list as stored; any other reader's leaves out what it does not see
|
|
5451
|
+
* and keeps a proposed id its rung sees); a link held on both ends is two edges. A Pin's generic pair
|
|
5452
|
+
* (`element_type`, `element_id`) is its placement, never an edge; its `map` link is. A guest's known-of
|
|
5453
|
+
* element has no edges out. A link to an element of another type than its field's target draws no edge and
|
|
5454
|
+
* is not counted. A link to an element that is not a node is counted in `edgesCut` by that element's reason: the
|
|
5447
5455
|
* lens's cut reason, else, with a lens, `outside_lens` for one the reader sees that the lens neither kept
|
|
5448
5456
|
* nor cut (counted for every rung); one of the kinds out by default without a lens; and `not_visible` for one the
|
|
5449
5457
|
* reader does not see. A link to an id that is not in the world is left out and not counted.
|