@onlyworlds/sdk 4.180.0 → 4.181.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/README.md +2 -1
- package/SCHEMA.md +1 -1
- package/dist/{chunk-XHCCTVG7.js → chunk-EFH2PAJN.js} +25 -0
- package/dist/index.d.ts +144 -1
- package/dist/index.js +147 -20
- package/dist/waymark.d.ts +2 -1
- package/dist/waymark.js +1 -1
- package/package.json +2 -2
package/AGENTS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# For AI agents using @onlyworlds/sdk
|
|
2
2
|
|
|
3
|
-
**Current as of**: SDK **4.x** · schema-dist **v0.34.1-dist.
|
|
3
|
+
**Current as of**: SDK **4.x** · schema-dist **v0.34.1-dist.136** (canonical 00.34.01).
|
|
4
4
|
This line is asserted by `codegen:check` in CI — if the pin moves and this file is not
|
|
5
5
|
re-read against it, the check fails rather than letting this document rot quietly.
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -426,6 +426,7 @@ A lens is a saved way of reading a world: a Construct with supertype `Lens` (`is
|
|
|
426
426
|
import { isLens, resolveLens } from '@onlyworlds/sdk';
|
|
427
427
|
|
|
428
428
|
const lens = elements.find(isLens);
|
|
429
|
+
if (!lens) throw new Error('this world holds no lens');
|
|
429
430
|
const r = resolveLens({ elements, members, now: 1200 }, lens, { rung: 'contributor', character: me }, { asOf: 1194 });
|
|
430
431
|
r.kept; r.rows; r.cut; // ids in order, rows as show makes them, e.g. { budget: 3, after_as_of: 1 }
|
|
431
432
|
if (r.unreadable) console.warn(`x_lens.${r.unreadable} is outside the profile's table`);
|
|
@@ -496,7 +497,7 @@ A web page can draw the rows above for a person: the OnlyWorlds mark beside a wo
|
|
|
496
497
|
import { mountWaymark } from '@onlyworlds/sdk/waymark';
|
|
497
498
|
import '@onlyworlds/sdk/waymark.css'; // or <link rel="stylesheet"> to the file
|
|
498
499
|
|
|
499
|
-
const dispose = mountWaymark(document.querySelector('h1.name')
|
|
500
|
+
const dispose = mountWaymark(document.querySelector('h1.name')!, {
|
|
500
501
|
world: { id: worldId, name: 'Moppetopia' },
|
|
501
502
|
element, // the element's body as the API serves it; leave it out for the world's own fan-out
|
|
502
503
|
reader: 'member', // 'member', 'guest' or 'public'
|
package/SCHEMA.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OnlyWorlds Schema Reference
|
|
2
2
|
|
|
3
|
-
**Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.34.1-dist.
|
|
3
|
+
**Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.34.1-dist.136** — canonical schema **00.34.01**, published 2026-11-19.
|
|
4
4
|
|
|
5
5
|
GENERATED from the canonical schema YAML — do not hand-edit (regenerate: `python codegen/generate_types.py`).
|
|
6
6
|
Written for both humans and AI agents reading this package locally.
|
|
@@ -1146,6 +1146,29 @@ function isRoomElement(el) {
|
|
|
1146
1146
|
const supertype = fold(el.supertype);
|
|
1147
1147
|
return ROOM_PAIRS.some((p) => fold(p.type) === type && fold(p.supertype) === supertype);
|
|
1148
1148
|
}
|
|
1149
|
+
function namedTalks(el) {
|
|
1150
|
+
const out = [];
|
|
1151
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1152
|
+
for (const [field, type] of [["objects", "object"], ["constructs", "construct"]]) {
|
|
1153
|
+
const list = el[field];
|
|
1154
|
+
if (!Array.isArray(list)) continue;
|
|
1155
|
+
for (const entry of list) {
|
|
1156
|
+
if (typeof entry !== "string" || trimWhiteSpace(entry) === "") continue;
|
|
1157
|
+
const key = `${type}/${entry}`;
|
|
1158
|
+
if (seen.has(key)) continue;
|
|
1159
|
+
seen.add(key);
|
|
1160
|
+
out.push({ type, id: entry });
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
return out;
|
|
1164
|
+
}
|
|
1165
|
+
function talksOf(element) {
|
|
1166
|
+
if (element === null || typeof element !== "object" || Array.isArray(element)) return [];
|
|
1167
|
+
const el = element;
|
|
1168
|
+
if (!isRoomElement(el)) return [];
|
|
1169
|
+
if (fold(el.type) !== fold(MESSAGE_PAIR.type) || fold(el.supertype) !== fold(MESSAGE_PAIR.supertype)) return [];
|
|
1170
|
+
return namedTalks(el);
|
|
1171
|
+
}
|
|
1149
1172
|
var READING_AID_KEYS = new Set(READING_AID_PAIRS.map((p) => `${fold(p.type)}/${fold(p.supertype)}`));
|
|
1150
1173
|
function readingAidKey(element) {
|
|
1151
1174
|
if (element === null || typeof element !== "object" || Array.isArray(element)) return null;
|
|
@@ -1853,6 +1876,8 @@ export {
|
|
|
1853
1876
|
trimAndFold,
|
|
1854
1877
|
hasMark,
|
|
1855
1878
|
isRoomElement,
|
|
1879
|
+
namedTalks,
|
|
1880
|
+
talksOf,
|
|
1856
1881
|
READING_AID_KEYS,
|
|
1857
1882
|
readingAidKey,
|
|
1858
1883
|
isCharterElement,
|
package/dist/index.d.ts
CHANGED
|
@@ -6045,6 +6045,24 @@ declare function isRoomElement(el: {
|
|
|
6045
6045
|
supertype?: string | null;
|
|
6046
6046
|
x_room_of?: unknown;
|
|
6047
6047
|
}): boolean;
|
|
6048
|
+
/** One talk on an element (room.md, serial 135): an Object named in a line's `objects`, or a Construct named in its `constructs`, by its id as written. */
|
|
6049
|
+
interface OwTalk {
|
|
6050
|
+
type: 'object' | 'construct';
|
|
6051
|
+
id: string;
|
|
6052
|
+
}
|
|
6053
|
+
/**
|
|
6054
|
+
* The talks on an element that `element` is in as a line (schema-dist profiles/room.md, serial 135): `{type: 'object', id}`
|
|
6055
|
+
* for each id in its `objects` and `{type: 'construct', id}` for each in its `constructs`. Only a line in the room is in a
|
|
6056
|
+
* talk: a room element (`isRoomElement`, the pair and the mark x_room_of) whose pair is `narrative` + `Message`; any other
|
|
6057
|
+
* element, a Message without the mark, a board entry or a report included, answers `[]`.
|
|
6058
|
+
*
|
|
6059
|
+
* An entry that is not a string, or is empty once trimmed of White_Space (the room profile's set), names nothing, and a
|
|
6060
|
+
* field that is not a list names nothing; every other entry is an id read as written, a space left on it and its case
|
|
6061
|
+
* included, so `ABC` and `abc` are two talks. A line's `characters` are its recipients and make no talk, nor does any other
|
|
6062
|
+
* field. Each `{type, id}` comes once, in the place it is first named, objects before constructs (the page rules no order:
|
|
6063
|
+
* compare as a set when the order does not matter). Pure.
|
|
6064
|
+
*/
|
|
6065
|
+
declare function talksOf(element: unknown): OwTalk[];
|
|
6048
6066
|
/**
|
|
6049
6067
|
* True when the element is a reading aid (schema-dist profiles/room.md, profiles/lens.md rule 4): the
|
|
6050
6068
|
* world's charter (`law`, supertype `Charter`), its guide (`construct`, supertype `Guide`) or one of its
|
|
@@ -6104,6 +6122,27 @@ interface OwCharterWorld extends OwLensWorld {
|
|
|
6104
6122
|
declare function charterOf(world: OwCharterWorld, reader: OwLensReader): OwReadingAids;
|
|
6105
6123
|
/** The marked Domains alone, as `charterOf` lists them for the same reader. */
|
|
6106
6124
|
declare function domainsOf(world: OwCharterWorld, reader: OwLensReader): OwReadingAidsDomain[];
|
|
6125
|
+
/** A design part (charter.md, serial 135): an Object or a Construct whose `subtype` is a design state, and that state. */
|
|
6126
|
+
interface OwDesignPart {
|
|
6127
|
+
/** The type as the packet writes one, whatever spelling the element's type is stored in. */
|
|
6128
|
+
type: 'object' | 'construct';
|
|
6129
|
+
id: string;
|
|
6130
|
+
/** The design state: the subtype trimmed and folded, whatever spelling it is stored in (`In Design ` is `in design`). */
|
|
6131
|
+
state: 'in design' | 'locked';
|
|
6132
|
+
}
|
|
6133
|
+
/**
|
|
6134
|
+
* The design parts `reader` reads in a world (schema-dist profiles/charter.md, serial 135): each Object or Construct the
|
|
6135
|
+
* reader is served whole whose `subtype`, trimmed and compared without regard to case as the room profile defines it, is
|
|
6136
|
+
* `in design` or `locked`, as `{type, id, state}`, in the world's order (the page orders no parts: compare as a set).
|
|
6137
|
+
*
|
|
6138
|
+
* Only where `charterOf` finds a Charter for the same reader: with none (no Charter, only one without the mark, only a
|
|
6139
|
+
* proposed one, or one the hidden mark keeps from the reader), no element has a design state and the answer is `[]`,
|
|
6140
|
+
* even where another reader of the same world reads parts. The state alone makes a part, whatever the supertype; no
|
|
6141
|
+
* other subtype and no other type has one. A known-of stub has none, though it is served its subtype; what the reader
|
|
6142
|
+
* sees (hidden and proposed elements, the rungs) is `charterOf`'s own view. Takes the same world and reader as
|
|
6143
|
+
* `charterOf`. Pure.
|
|
6144
|
+
*/
|
|
6145
|
+
declare function designPartsOf(world: OwCharterWorld, reader: OwLensReader): OwDesignPart[];
|
|
6107
6146
|
|
|
6108
6147
|
/** The Event's field that carries the record's mark. */
|
|
6109
6148
|
declare const RECORD_FIELD = "x_record";
|
|
@@ -6333,6 +6372,18 @@ interface OwReportThreads {
|
|
|
6333
6372
|
* A thread takes nothing away from where a report hangs: its `relations` and `events` still hold it. Pure.
|
|
6334
6373
|
*/
|
|
6335
6374
|
declare function reportThreadsOf(narratives: readonly object[]): OwReportThreads;
|
|
6375
|
+
/**
|
|
6376
|
+
* The talks a reader shows a report with (schema-dist profiles/report.md, serial 135): `{type: 'object', id}` for each id in
|
|
6377
|
+
* the report's `objects` and `{type: 'construct', id}` for each in its `constructs`, its entries read as the room profile reads
|
|
6378
|
+
* a line's (`talksOf`): an entry that is not a string, or is empty once trimmed of White_Space, names nothing, a field that is
|
|
6379
|
+
* not a list names nothing, and every other entry is an id as written, untrimmed and with its case; each once, in first
|
|
6380
|
+
* place, objects before constructs. A report is a Narrative with supertype `Report` and the room's mark `x_room_of`, both;
|
|
6381
|
+
* any other Narrative (a Report without the mark, a line in the room, a board entry) answers `[]`.
|
|
6382
|
+
*
|
|
6383
|
+
* These fields hold every Object and Construct the report touched or changed, so the answer is every talk it is shown with,
|
|
6384
|
+
* old reports included; none of them is named as the talk the report closed, which the report alone cannot tell. Pure.
|
|
6385
|
+
*/
|
|
6386
|
+
declare function reportTalksOf(narrative: unknown): OwTalk[];
|
|
6336
6387
|
/** What `readReportLine` answers for one line of a report's `consequences`. */
|
|
6337
6388
|
interface OwReportLine {
|
|
6338
6389
|
/** The line as read. */
|
|
@@ -6382,6 +6433,97 @@ declare function readReportLine(line: string, options?: OwReportLineOptions): Ow
|
|
|
6382
6433
|
*/
|
|
6383
6434
|
declare function readReportLines(text: string, options?: OwReportLineOptions): OwReportLine[];
|
|
6384
6435
|
|
|
6436
|
+
/** A work item's state (rule 5): one of the four words, as the fold writes them. */
|
|
6437
|
+
type OwWorkState = 'open' | 'taken' | 'done' | 'standing';
|
|
6438
|
+
/** One entry of a work item's `x_packet_elements` (rule 1): the element's type slug, its id as written, and why it is in the packet. */
|
|
6439
|
+
interface OwWorkElement {
|
|
6440
|
+
type: string;
|
|
6441
|
+
id: string;
|
|
6442
|
+
reason: string;
|
|
6443
|
+
}
|
|
6444
|
+
/** A world as `workOf` reads it: its Characters' ids and the ids of every other element of it the reader holds, each as written. */
|
|
6445
|
+
interface OwWorkWorld {
|
|
6446
|
+
id?: string | null;
|
|
6447
|
+
/** The ids of the world's Characters the reader holds. */
|
|
6448
|
+
characters?: readonly string[] | null;
|
|
6449
|
+
/** The ids of every other element of the world the reader holds. */
|
|
6450
|
+
others?: readonly string[] | null;
|
|
6451
|
+
}
|
|
6452
|
+
/** A lint `workOf` reports: `asker` on a work item whose `x_packet_from` is no one id, or names an element the reader holds that is no Character of the world (rule 8). */
|
|
6453
|
+
interface OwWorkLint {
|
|
6454
|
+
kind: 'asker';
|
|
6455
|
+
item: string;
|
|
6456
|
+
}
|
|
6457
|
+
/** `workOf`'s answer. Every map is keyed by an id as written; no list of work items is in a rule order (compare them as sets) except `elements`. */
|
|
6458
|
+
interface OwWork {
|
|
6459
|
+
/** For each work item, its state, or null for no state (rule 5). */
|
|
6460
|
+
states: Record<string, OwWorkState | null>;
|
|
6461
|
+
/** Every work item, in the order given: no item is hidden for its state. */
|
|
6462
|
+
shown: string[];
|
|
6463
|
+
/** For each element any work item names in `x_packet_elements`, the open work that names it (state `open` or `taken`). */
|
|
6464
|
+
openWork: Record<string, string[]>;
|
|
6465
|
+
/** For each work item, its elements in `x_packet_elements`' order (rule 1), each `{type, id, reason}`. */
|
|
6466
|
+
elements: Record<string, OwWorkElement[]>;
|
|
6467
|
+
/** For each work item, the Character of the world that asked for it, or null (rule 8). */
|
|
6468
|
+
askers: Record<string, string | null>;
|
|
6469
|
+
/** One `asker` lint per work item whose key is no one id or names an element the reader holds that is no Character of the world. */
|
|
6470
|
+
lints: OwWorkLint[];
|
|
6471
|
+
/** For each Character of the world, the open work it asked for: what it is waiting on. */
|
|
6472
|
+
waitingOn: Record<string, string[]>;
|
|
6473
|
+
}
|
|
6474
|
+
/**
|
|
6475
|
+
* A work item's state (schema-dist profiles/packet.md, rule 5): its `subtype`, trimmed of White_Space and compared without
|
|
6476
|
+
* regard to case as the room profile defines it, when that is `open`, `taken`, `done` or `standing`; else null, no state
|
|
6477
|
+
* (a subtype that is missing, null, not a string, empty, White_Space alone or any other word). ` Standing` is `standing`,
|
|
6478
|
+
* `OPEN` is `open`; `open` after a byte order mark is no state, since U+FEFF is no White_Space.
|
|
6479
|
+
*
|
|
6480
|
+
* A work item is a Relation with supertype `Work item`, the type and supertype trimmed and folded the same way; the room
|
|
6481
|
+
* mark is not needed. Anything else answers null: its subtype is no work state. Pure.
|
|
6482
|
+
*/
|
|
6483
|
+
declare function workStateOf(item: unknown): OwWorkState | null;
|
|
6484
|
+
/**
|
|
6485
|
+
* True when the work item is open work (packet.md, rules 5 and 7): its state is `open` or `taken`. A `done` item, a
|
|
6486
|
+
* `standing` one (never done, a kept list) and one with no state are never open work, and anything that is no work item
|
|
6487
|
+
* is none. A reader offers to take a work item, or to set it done, only when this is true. Pure.
|
|
6488
|
+
*/
|
|
6489
|
+
declare function isOpenWork(item: unknown): boolean;
|
|
6490
|
+
/**
|
|
6491
|
+
* Who asked for a work item (schema-dist profiles/packet.md, rule 8): the id its `x_packet_from` writes, as written (never
|
|
6492
|
+
* trimmed, never folded), or null. Absent or null names no one; a value that is not a string, or a string empty once
|
|
6493
|
+
* trimmed of White_Space, is no id and names no one. The asker is never the maker (`created_by`, or the tool
|
|
6494
|
+
* `x_packet_producer` names) and never `actor`.
|
|
6495
|
+
*
|
|
6496
|
+
* With `world` (`{characters, others}`, as `workOf` takes it), the id counts only when it is, written exactly so, one of
|
|
6497
|
+
* the world's Characters; any other id is null (`workOf` says which of them is a lint). Without `world`, the answer is the
|
|
6498
|
+
* key's id unchecked: whether it names a Character the reader holds is the caller's to read. Anything that is no work item
|
|
6499
|
+
* answers null. Pure.
|
|
6500
|
+
*/
|
|
6501
|
+
declare function askerOf(item: unknown, world?: OwWorkWorld): string | null;
|
|
6502
|
+
/**
|
|
6503
|
+
* The work items one reader is given, read together (schema-dist profiles/packet.md, rules 1, 5, 7 and 8; the fixture's
|
|
6504
|
+
* parts). `items` are the work items in the order given; anything that is no work item (a Relation with supertype
|
|
6505
|
+
* `Work item`, trimmed and folded) or carries no non-empty string `id` is in no part of the answer, and of two with one
|
|
6506
|
+
* id the first is read. `world` is the world they sit in, `{id, characters, others}`: its Characters' ids and the ids of
|
|
6507
|
+
* every other element of it the reader holds, each as written. `sourceWorld`, in the same shape, is the world packets
|
|
6508
|
+
* about another world name, whose elements the reader holds too; its Characters are no Characters of `world`.
|
|
6509
|
+
*
|
|
6510
|
+
* - `states`: each item's state (`workStateOf`). `shown`: every item, whatever its state.
|
|
6511
|
+
* - `elements`: each item's `x_packet_elements`, in their order, each `{type, id, reason}`; an entry without the three
|
|
6512
|
+
* (strings, the id not blank) is ignored.
|
|
6513
|
+
* - `openWork`: for each element id any item names, the ids of the open work (`isOpenWork`) that names it; a standing
|
|
6514
|
+
* item is counted on none.
|
|
6515
|
+
* - `askers`: each item's asker, the Character of `world` its `x_packet_from` names written exactly so, else null.
|
|
6516
|
+
* - `lints`: `{kind: 'asker', item}` for a key that is no one id (not a string, or empty once trimmed of White_Space), or
|
|
6517
|
+
* that names, written exactly so, an element the reader holds that is no Character of `world` (an id in `others`, in
|
|
6518
|
+
* `sourceWorld`, or one of the items given). A key absent or null, and an id that names no element the reader holds in
|
|
6519
|
+
* any spelling, are no lint.
|
|
6520
|
+
* - `waitingOn`: for each Character of `world`, the open work whose asker it is.
|
|
6521
|
+
*
|
|
6522
|
+
* Only `elements` holds lists in a rule order; `shown`, every list in `openWork` and `waitingOn`, and `lints` are in the
|
|
6523
|
+
* order the items are given, and the page rules none: compare them as sets. Pure.
|
|
6524
|
+
*/
|
|
6525
|
+
declare function workOf(items: readonly object[], world: OwWorkWorld, sourceWorld?: OwWorkWorld | null): OwWork;
|
|
6526
|
+
|
|
6385
6527
|
/**
|
|
6386
6528
|
* The review profile's proposed mark (schema-dist profiles/review.md): an element whose
|
|
6387
6529
|
* `x_review_proposed` is an object was written as proposed (an AI seat's new element on a world
|
|
@@ -8372,4 +8514,5 @@ declare class TokenResource {
|
|
|
8372
8514
|
getEncryptionInfo(): Promise<EncryptionInfo>;
|
|
8373
8515
|
}
|
|
8374
8516
|
|
|
8375
|
-
export { AGENT_DOORS, ASK_LIMITS,
|
|
8517
|
+
export { AGENT_DOORS, ASK_LIMITS, BY_LINKS_3D_REST, BY_LINKS_3D_VERSION, CALENDAR_FIELD, CALENDAR_SUPERTYPE, CHARTER_PAIRS, DATE_FIELD, DECLARED_LINKS, ELEMENT_FAMILIES, ELEMENT_GROUPS, ELEMENT_ICONS, ELEMENT_LABELS, ELEMENT_SECTIONS, ELEMENT_TYPES, FAMILY_COLORS, FAMILY_ORDER, FIELD_ACRONYMS, FIELD_SCHEMA, FILE_EXTENSIONS, GROUP_COLORS, GROUP_ORDER, GameTier, MESSAGE_PAIR, NOTE_PAIR, ONLYWORLDS_VERSION, OwAddressError, OwApiError, OwNetworkError, OwPreconditionFailedError, OwProposedError, OwSignInError, OwStaleProposalError, OwV2Client, OwWorldFileError, PHOTO_MAX_BYTES, PHOTO_TYPES, PROPOSED_MARK, PUBLIC_FIELDS, RECORD_FIELD, REVIEW_PROPOSED_LABEL, ROOM_PAIRS, SPATIAL_TYPES, STRAND_FIELD, TOOLS, TRAIL_TIERS, TokenResource, VIEWS, WORLD_FILE_MAX_BYTES, WORLD_FILE_MAX_ENTRIES, WORLD_FILE_MEDIA_TYPE, absYearForEraYear, absoluteYear, approxYearLength, askerOf, base64url, breakdownStep, buildAskContext, buildWorldIndex, byCodePoint, charterOf, compareInstants, dateOf, degreeOf, designPartsOf, detectKeyKind, displayYear, domainsOf, doorWhere, doorsOf, dragField, draughtText, editedBy, elementAddress, elementColor, eraForStep, errorFromResponse, familyOf, fieldLabel, fileKindOf, findOwLinks, floorDiv, floorMod, formatDuration, formatMidLabel, formatStep, formatYearLabel, getElementIcon, getElementLabel, groupOf, handsOnAsProposed, hasUnseenRecipients, instantOf, intercalaryInYear, isAddressedTo, isAgentDoor, isCharterElement, isDemoKey, isKnownOf, isLeapYear, isLens, isMessage, isNote, isOpenWork, isParseError, isRoomElement, isSentBy, isTemplate, isToEveryone, kindCanWrite, landingOf, layoutAround, layoutByKind, layoutByLinks3d, layoutOf, lensesInUse, lookupWorld, mapSpace, monthStartSteps, nfc, noteOf, openersFor, outDegreeOf, parseDate, parseErrorEnvelope, parseOwLink, pinExpectation, pkceChallenge, planPhoto, preparePhoto, proposedMarkOf, readCalendarConfig, readCalendarValue, readMarkOf, readOwLinkAt, readReportLine, readReportLines, readWorldFile, readingAidOf, recipientsOf, recordMarkOf, recordsOf, renderElement, reportTalksOf, reportThreadsOf, resolveCalendar, resolveCalendarLens, resolveEraDomains, resolveLens, roundHalfEven, senderStatus, simpleCaseFold, strandOf, talksOf, threadOf, trailByPlace, trimAndFold, typeWord, unplacedAround, unplacedByKind, unplacedByLinks3d, unreadFor, validateCalendarConfig, viewOf, weekdayForStep, workOf, workStateOf, worldCalendars, worldGraph, writeWorldFile, yearLength, yearStartStep };
|
|
8518
|
+
export type { AccessKeyResponse, CalendarConfig, CalendarEra, CalendarIntercalary, CalendarMonths, CalendarWeek, ElementFamily, ElementGroup, ElementType, EncryptionInfo, EraDomain, FieldInfo, FieldType, ListParams, OwAccountToken, OwAccountWorld, OwAddress, OwAddressAt, OwAddressForm, OwAddressFound, OwAddressReading, OwAddressReason, OwAddressingOptions, OwAgentJoined, OwAiAskAnswer, OwAiAskBody, OwAiMeter, OwAiRefusal, OwAiSortAnswer, OwAiSortBody, OwAiToken, OwAiUse, OwAllowance, OwAskAnswer, OwAskContext, OwAskContextOptions, OwAskLeftOut, OwAuthErrorCode, OwBulkItem, OwBulkItemResult, OwBulkResponse, OwCalendarElement, OwChange, OwChangeDelete, OwChangeUpsert, OwChangesPage, OwCharterWorld, OwClientConfig, OwCreateAccountWorldInput, OwCreatedAccountWorld, OwCreatedWorldLink, OwDeleteReason, OwDesignPart, OwDoor, OwDragField, OwDraught, OwDraughtCompact, OwDraughtComponent, OwDraughtItem, OwDraughtLens, OwDraughtPolicy, OwEdited, OwElement, OwElementBase, OwElementMark, OwErrorBody, OwFieldsRefusal, OwFileAddedBy, OwFileDownload, OwFileKind, OwFileRow, OwFileTicket, OwFrontDoor, OwFrontDoorCharter, OwFrontDoorSkill, OwGraphCutReason, OwGraphEdge, OwGraphMark, OwGraphNode, OwGraphOptions, OwHiddenRow, OwInstant, OwJoinPreview, OwJoined, OwJoinedMembership, OwKeyKind, OwLanding, OwLandingCluster, OwLandingGap, OwLandingGapKind, OwLandingMember, OwLandingMode, OwLandingOptions, OwLayout3dHow, OwLayout3dPart, OwLayoutAround, OwLayoutAroundOptions, OwLayoutAroundPoint, OwLayoutByKind, OwLayoutByLinks3d, OwLayoutByLinks3dOptions, OwLayoutGraph, OwLayoutOf, OwLayoutPoint, OwLensCutReason, OwLensMail, OwLensOptions, OwLensReader, OwLensReading, OwLensWorld, OwLinkEdit, OwLookupElement, OwLookupHit, OwLookupLink, OwLookupOptions, OwLookupReason, OwMapSpace, OwMapSpaceMap, OwMapSpaceOutReason, OwMapSpaceOutline, OwMapSpacePin, OwMapSpacePoint, OwMe, OwMediaTicket, OwMember, OwMemberLenses, OwMemberRole, OwMessageMember, OwMintedAiToken, OwMintedKey, OwMySeat, OwNamesMap, OwOpener, OwOpenerKind, OwOpenerState, OwOpenerSurface, OwOpenersOptions, OwPage, OwPaidBy, OwPhotoOptions, OwPhotoPlan, OwPlayerJoined, OwPreparedPhoto, OwProposal, OwProposalAccepted, OwProposalConflict, OwProposalList, OwProposalQuery, OwProposalState, OwProposeInput, OwProposed, OwProposedMark, OwProposedNewElement, OwReadWorldFile, OwReadWorldFileOptions, OwReadingAids, OwReadingAidsCharter, OwReadingAidsDomain, OwReadingAidsGuide, OwReadingAidsHub, OwRecord, OwRecordMark, OwRecordStory, OwRemovalTicket, OwRemovedImage, OwRenderOptions, OwReportGroup, OwReportLine, OwReportLineOptions, OwReportLint, OwReportParentKind, OwReportThreads, OwResyncReason, OwReviewInput, OwReviewed, OwSearchResult, OwSearchResults, OwSeat, OwSeatCreated, OwSender, OwSenderStatus, OwServedReadingAids, OwSignInBegin, OwSignInBegun, OwSignInComplete, OwSignInReason, OwSignInResult, OwSignInStorage, OwSignedIn, OwSortAddToRow, OwSortAnswer, OwSortAskRow, OwSortLinkRow, OwSortMakeRow, OwSortNote, OwSortRef, OwSortRow, OwStrand, OwStrandSlot, OwStrandWorld, OwTalk, OwTool, OwToolNeeds, OwToolOpen, OwTrailGround, OwTrailHanger, OwTrailInput, OwTrailLayout, OwTrailPin, OwTrailPlace, OwTrailSettings, OwTrailSpiral, OwTrailTier, OwUploadedFile, OwUploadedImage, OwView, OwViewRow, OwViewsTable, OwWordPair, OwWork, OwWorkElement, OwWorkLint, OwWorkState, OwWorkWorld, OwWorldFileEntry, OwWorldFileReason, OwWorldFileRow, OwWorldFiles, OwWorldGraph, OwWorldIndex, OwWorldKeyMember, OwWorldKeyRow, OwWorldLens, OwWorldLensReading, OwWorldLenses, OwWorldLink, OwWorldMeta, OwWorldOrigin, OwWorldProducer, OwWorldProposalList, OwWorldProposalQuery, OwWorldProposalRow, OwWorldPublicPage, OwWorldSource, OwWriteDoor, OwWriteWorldFileOptions, OwWriteWorldFileReport, ParseError, ParseOptions, ParseResult, RevokeAllSessionsResponse, RevokeSessionResponse, SectionInfo, StepBreakdown, TokenConsumeParams, TokenConsumeResponse, TokenStatus, TokenTransport, WorldCalendar };
|
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
isKnownOf,
|
|
38
38
|
isRoomElement,
|
|
39
39
|
isWhiteSpaceAt,
|
|
40
|
+
namedTalks,
|
|
40
41
|
openersFor,
|
|
41
42
|
parseOwLink,
|
|
42
43
|
proposedMarkOf,
|
|
@@ -45,11 +46,12 @@ import {
|
|
|
45
46
|
readingAidOf,
|
|
46
47
|
refuseUnknownOptions,
|
|
47
48
|
simpleCaseFold,
|
|
49
|
+
talksOf,
|
|
48
50
|
trimAndFold,
|
|
49
51
|
trimWhiteSpace,
|
|
50
52
|
typeWord,
|
|
51
53
|
unknownKey
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-EFH2PAJN.js";
|
|
53
55
|
|
|
54
56
|
// src/v2/keyed-id.ts
|
|
55
57
|
var KEYED_IDS = "0199b6a0-6f0e-7c2a-9d1e-3b5c7a8e4f21";
|
|
@@ -3771,16 +3773,21 @@ function hubsOf(id, r) {
|
|
|
3771
3773
|
return out;
|
|
3772
3774
|
}
|
|
3773
3775
|
var NONE = () => ({ charter: null, guide: null, domains: [] });
|
|
3774
|
-
function
|
|
3776
|
+
function readAids(world, reader, fn) {
|
|
3775
3777
|
if (!isBody2(world) || !Array.isArray(world.elements)) {
|
|
3776
|
-
throw new TypeError(
|
|
3778
|
+
throw new TypeError(`${fn}: world is an object with an elements list.`);
|
|
3777
3779
|
}
|
|
3778
|
-
checkReader(reader,
|
|
3780
|
+
checkReader(reader, `${fn}: reader`);
|
|
3779
3781
|
const r = new Reading(world, reader, null);
|
|
3780
|
-
if (r.seenRung === "public" && world.open !== true) return
|
|
3782
|
+
if (r.seenRung === "public" && world.open !== true) return null;
|
|
3781
3783
|
const seen = (pair) => r.order.filter((id) => r.view.has(id) && r.aid.get(id) === pair);
|
|
3784
|
+
return { r, law: newest(seen("law/charter"), r), seen };
|
|
3785
|
+
}
|
|
3786
|
+
function charterOf(world, reader) {
|
|
3787
|
+
const read = readAids(world, reader, "charterOf");
|
|
3788
|
+
if (read === null) return NONE();
|
|
3789
|
+
const { r, law, seen } = read;
|
|
3782
3790
|
const out = NONE();
|
|
3783
|
-
const law = newest(seen("law/charter"), r);
|
|
3784
3791
|
if (law !== null) {
|
|
3785
3792
|
const el = r.byId.get(law);
|
|
3786
3793
|
const rules = el.x_checks_rules;
|
|
@@ -3821,6 +3828,23 @@ function charterOf(world, reader) {
|
|
|
3821
3828
|
function domainsOf(world, reader) {
|
|
3822
3829
|
return charterOf(world, reader).domains;
|
|
3823
3830
|
}
|
|
3831
|
+
var DESIGN_STATES = /* @__PURE__ */ new Set(["in design", "locked"]);
|
|
3832
|
+
function designPartsOf(world, reader) {
|
|
3833
|
+
const read = readAids(world, reader, "designPartsOf");
|
|
3834
|
+
if (read === null || read.law === null) return [];
|
|
3835
|
+
const { r } = read;
|
|
3836
|
+
const out = [];
|
|
3837
|
+
for (const id of r.order) {
|
|
3838
|
+
if (!r.view.has(id) || r.stubs.has(id)) continue;
|
|
3839
|
+
const type = r.typeOf.get(id);
|
|
3840
|
+
if (type !== "object" && type !== "construct") continue;
|
|
3841
|
+
const subtype = r.body(id).subtype;
|
|
3842
|
+
if (typeof subtype !== "string") continue;
|
|
3843
|
+
const state = fold(subtype);
|
|
3844
|
+
if (DESIGN_STATES.has(state)) out.push({ type, id, state });
|
|
3845
|
+
}
|
|
3846
|
+
return out;
|
|
3847
|
+
}
|
|
3824
3848
|
|
|
3825
3849
|
// src/strand.ts
|
|
3826
3850
|
var STRAND_FIELD = "x_strand";
|
|
@@ -4006,6 +4030,10 @@ function reportThreadsOf(narratives) {
|
|
|
4006
4030
|
}
|
|
4007
4031
|
return { parents, groups, lints };
|
|
4008
4032
|
}
|
|
4033
|
+
function reportTalksOf(narrative) {
|
|
4034
|
+
if (!isBody3(narrative) || roomKindOf(narrative) !== "report") return [];
|
|
4035
|
+
return namedTalks(narrative);
|
|
4036
|
+
}
|
|
4009
4037
|
var REPORT_LINE_KEYS = ["world"];
|
|
4010
4038
|
var CLOSING = /* @__PURE__ */ new Set([".", ",", ";", ":", "!", ")", "]", "}", "'", '"', "\u2019", "\u201D", "\xBB"]);
|
|
4011
4039
|
var PAIRS = /* @__PURE__ */ new Map([["(", ")"], ["[", "]"], ['"', '"'], ["'", "'"], ["\u201C", "\u201D"], ["\u2018", "\u2019"], ["\xAB", "\xBB"]]);
|
|
@@ -4060,6 +4088,98 @@ function readReportLines(text2, options) {
|
|
|
4060
4088
|
return text2.split(/[\r\n]/).map(trimWhiteSpace).filter((l) => l !== "").map((l) => readLine(l, world));
|
|
4061
4089
|
}
|
|
4062
4090
|
|
|
4091
|
+
// src/packet.ts
|
|
4092
|
+
var WORK_ITEM_PAIR = { type: "relation", supertype: "Work item" };
|
|
4093
|
+
var STATES = /* @__PURE__ */ new Set(["open", "taken", "done", "standing"]);
|
|
4094
|
+
var isBody4 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
4095
|
+
function isWorkItem(item) {
|
|
4096
|
+
if (!isBody4(item) || typeof item.type !== "string" || typeof item.supertype !== "string") return false;
|
|
4097
|
+
return fold(item.type) === WORK_ITEM_PAIR.type && fold(item.supertype) === fold(WORK_ITEM_PAIR.supertype);
|
|
4098
|
+
}
|
|
4099
|
+
function put(map, key3, value) {
|
|
4100
|
+
Object.defineProperty(map, key3, { value, enumerable: true, writable: true, configurable: true });
|
|
4101
|
+
}
|
|
4102
|
+
var has = (map, key3) => Object.prototype.hasOwnProperty.call(map, key3);
|
|
4103
|
+
function workStateOf(item) {
|
|
4104
|
+
if (!isWorkItem(item) || typeof item.subtype !== "string") return null;
|
|
4105
|
+
const state = fold(item.subtype);
|
|
4106
|
+
return STATES.has(state) ? state : null;
|
|
4107
|
+
}
|
|
4108
|
+
function isOpenWork(item) {
|
|
4109
|
+
const state = workStateOf(item);
|
|
4110
|
+
return state === "open" || state === "taken";
|
|
4111
|
+
}
|
|
4112
|
+
function askerKey(item) {
|
|
4113
|
+
const v = has(item, "x_packet_from") ? item.x_packet_from : void 0;
|
|
4114
|
+
if (v === void 0 || v === null) return "absent";
|
|
4115
|
+
if (typeof v !== "string" || trimWhiteSpace(v) === "") return "bad";
|
|
4116
|
+
return v;
|
|
4117
|
+
}
|
|
4118
|
+
function idsOf(v) {
|
|
4119
|
+
return new Set(Array.isArray(v) ? v.filter((x) => typeof x === "string") : []);
|
|
4120
|
+
}
|
|
4121
|
+
function askerOf(item, world) {
|
|
4122
|
+
if (!isWorkItem(item)) return null;
|
|
4123
|
+
const key3 = askerKey(item);
|
|
4124
|
+
if (key3 === "absent" || key3 === "bad") return null;
|
|
4125
|
+
if (world === void 0) return key3;
|
|
4126
|
+
if (!isBody4(world)) throw new TypeError("askerOf: world is an object with its characters and others.");
|
|
4127
|
+
return idsOf(world.characters).has(key3) ? key3 : null;
|
|
4128
|
+
}
|
|
4129
|
+
function elementsOf(item) {
|
|
4130
|
+
const list2 = item.x_packet_elements;
|
|
4131
|
+
const out = [];
|
|
4132
|
+
for (const e of Array.isArray(list2) ? list2 : []) {
|
|
4133
|
+
if (!isBody4(e) || typeof e.type !== "string" || typeof e.id !== "string" || typeof e.reason !== "string") continue;
|
|
4134
|
+
if (trimWhiteSpace(e.id) === "") continue;
|
|
4135
|
+
out.push({ type: e.type, id: e.id, reason: e.reason });
|
|
4136
|
+
}
|
|
4137
|
+
return out;
|
|
4138
|
+
}
|
|
4139
|
+
function workOf(items, world, sourceWorld) {
|
|
4140
|
+
if (!Array.isArray(items)) throw new TypeError("workOf: items is a list of work items.");
|
|
4141
|
+
if (!isBody4(world)) throw new TypeError("workOf: world is an object with its characters and others.");
|
|
4142
|
+
if (sourceWorld !== void 0 && sourceWorld !== null && !isBody4(sourceWorld)) {
|
|
4143
|
+
throw new TypeError("workOf: sourceWorld is an object with its characters and others, or left out.");
|
|
4144
|
+
}
|
|
4145
|
+
const characters = idsOf(world.characters);
|
|
4146
|
+
const held = /* @__PURE__ */ new Set([...idsOf(world.others)]);
|
|
4147
|
+
if (isBody4(sourceWorld)) for (const id of [...idsOf(sourceWorld.characters), ...idsOf(sourceWorld.others)]) held.add(id);
|
|
4148
|
+
const read = [];
|
|
4149
|
+
const seen = /* @__PURE__ */ new Set();
|
|
4150
|
+
for (const item of items) {
|
|
4151
|
+
if (!isWorkItem(item) || typeof item.id !== "string" || item.id === "" || seen.has(item.id)) continue;
|
|
4152
|
+
seen.add(item.id);
|
|
4153
|
+
read.push(item);
|
|
4154
|
+
}
|
|
4155
|
+
for (const id of seen) held.add(id);
|
|
4156
|
+
const out = { states: {}, shown: [], openWork: {}, elements: {}, askers: {}, lints: [], waitingOn: {} };
|
|
4157
|
+
for (const id of characters) put(out.waitingOn, id, []);
|
|
4158
|
+
for (const item of read) {
|
|
4159
|
+
const id = item.id;
|
|
4160
|
+
const open = isOpenWork(item);
|
|
4161
|
+
put(out.states, id, workStateOf(item));
|
|
4162
|
+
out.shown.push(id);
|
|
4163
|
+
const elements = elementsOf(item);
|
|
4164
|
+
put(out.elements, id, elements);
|
|
4165
|
+
for (const e of elements) {
|
|
4166
|
+
if (!has(out.openWork, e.id)) put(out.openWork, e.id, []);
|
|
4167
|
+
const list2 = out.openWork[e.id];
|
|
4168
|
+
if (open && !list2.includes(id)) list2.push(id);
|
|
4169
|
+
}
|
|
4170
|
+
const key3 = askerKey(item);
|
|
4171
|
+
let asker = null;
|
|
4172
|
+
if (key3 === "bad") out.lints.push({ kind: "asker", item: id });
|
|
4173
|
+
else if (key3 !== "absent") {
|
|
4174
|
+
if (characters.has(key3)) asker = key3;
|
|
4175
|
+
else if (held.has(key3)) out.lints.push({ kind: "asker", item: id });
|
|
4176
|
+
}
|
|
4177
|
+
put(out.askers, id, asker);
|
|
4178
|
+
if (asker !== null && open) out.waitingOn[asker].push(id);
|
|
4179
|
+
}
|
|
4180
|
+
return out;
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4063
4183
|
// src/graph.ts
|
|
4064
4184
|
var GRAPH_OPTION_KEYS = ["lens", "asOf", "clock", "rooms", "hidden", "proposed", "mapSpace", "readingAids"];
|
|
4065
4185
|
var DECLARED_LINKS = Object.freeze(["x_lens_leads_to", "x_spine_depends_on"]);
|
|
@@ -8552,29 +8672,29 @@ function draughtText(draught) {
|
|
|
8552
8672
|
const moment = (n) => unit === null ? BigInt(n).toString() : `${unit} ${BigInt(n).toString()}`;
|
|
8553
8673
|
const herName = her === null ? "the Character" : text(own3(her, "name")) ?? "(unnamed)";
|
|
8554
8674
|
const out = [];
|
|
8555
|
-
const
|
|
8675
|
+
const put2 = (line, cont = " ") => {
|
|
8556
8676
|
const [first, ...rest] = line.replace(/\r\n/g, "\n").replace(/\r/g, "\n").split("\n");
|
|
8557
8677
|
out.push(first, ...rest.map((l) => cont + l));
|
|
8558
8678
|
};
|
|
8559
|
-
|
|
8679
|
+
put2(`# ${herName}, in ${text(own3(world, "name")) ?? "(unnamed)"}`);
|
|
8560
8680
|
const asOf = own3(d, "as_of");
|
|
8561
8681
|
const now = own3(d, "now");
|
|
8562
8682
|
const mode = own3(d, "mode");
|
|
8563
8683
|
const public_ = own3(d, "reader") === "public";
|
|
8564
|
-
|
|
8684
|
+
put2(
|
|
8565
8685
|
`What the record holds around ${herName}` + (isInt(asOf) ? `, dated up to ${moment(asOf)}` : "") + (isInt(now) ? ` (the world's now: ${moment(now)})` : "") + "." + (public_ ? " Read as the public reader." : mode === "voice" ? " Read as the Character's own view." : mode === "act" ? " Read as the caller's view." : "")
|
|
8566
8686
|
);
|
|
8567
8687
|
if (asked) {
|
|
8568
8688
|
out.push("");
|
|
8569
|
-
|
|
8689
|
+
put2(`## ${herName}`);
|
|
8570
8690
|
}
|
|
8571
8691
|
if (asked && her === null) {
|
|
8572
8692
|
out.push("Hidden from this reader.");
|
|
8573
8693
|
} else if (her !== null) {
|
|
8574
8694
|
const type = own3(her, "type");
|
|
8575
8695
|
const kind = kindOf(her);
|
|
8576
|
-
|
|
8577
|
-
for (const l of descriptionLines(her))
|
|
8696
|
+
put2(typeWordOf(type) + (kind === null ? "" : ` \xB7 ${kind}`) + marks(her));
|
|
8697
|
+
for (const l of descriptionLines(her)) put2(l);
|
|
8578
8698
|
for (const key3 of Object.keys(her)) {
|
|
8579
8699
|
if (UNPRINTED.has(key3) || UNPRINTED_PREFIXES.some((p) => key3.startsWith(p))) continue;
|
|
8580
8700
|
const v = her[key3];
|
|
@@ -8597,7 +8717,7 @@ function draughtText(draught) {
|
|
|
8597
8717
|
} else {
|
|
8598
8718
|
value = text(v);
|
|
8599
8719
|
}
|
|
8600
|
-
if (value !== null)
|
|
8720
|
+
if (value !== null) put2(` ${key3.replace(/_/g, " ")}: ${value}`, " ");
|
|
8601
8721
|
}
|
|
8602
8722
|
}
|
|
8603
8723
|
const roster = own3(d, "roster");
|
|
@@ -8652,9 +8772,9 @@ function draughtText(draught) {
|
|
|
8652
8772
|
out.push("", `## ${heading}`);
|
|
8653
8773
|
for (const row of rowsOf(key3, v)) {
|
|
8654
8774
|
if (!isObj(row)) continue;
|
|
8655
|
-
if (key3 === "recent")
|
|
8656
|
-
else if (key3 === "roster")
|
|
8657
|
-
else for (const l of elementRow(row))
|
|
8775
|
+
if (key3 === "recent") put2(recentRow(row));
|
|
8776
|
+
else if (key3 === "roster") put2(memberRow(row));
|
|
8777
|
+
else for (const l of elementRow(row)) put2(l);
|
|
8658
8778
|
}
|
|
8659
8779
|
if (key3 === "recent" && recentMore) out.push("More changes than these; read on from recent_cursor.");
|
|
8660
8780
|
}
|
|
@@ -8664,15 +8784,15 @@ function draughtText(draught) {
|
|
|
8664
8784
|
const empty = components.filter((c) => typeof c === "string" && c !== "self" && !sectionSet(c));
|
|
8665
8785
|
if (empty.length) {
|
|
8666
8786
|
out.push("");
|
|
8667
|
-
|
|
8787
|
+
put2(`Nothing in: ${empty.join(", ")}.`);
|
|
8668
8788
|
}
|
|
8669
8789
|
}
|
|
8670
8790
|
const cut2 = own3(d, "cut");
|
|
8671
8791
|
const left = isObj(cut2) ? Object.keys(cut2).filter((k) => isInt(cut2[k])).map((k) => `${BigInt(cut2[k]).toString()} ${k}`) : [];
|
|
8672
8792
|
out.push("");
|
|
8673
|
-
if (isInt(asOf) && mode === "voice")
|
|
8674
|
-
else if (isInt(asOf) && mode === "act")
|
|
8675
|
-
|
|
8793
|
+
if (isInt(asOf) && mode === "voice") put2(`Not listed: rows dated after ${moment(asOf)}.`);
|
|
8794
|
+
else if (isInt(asOf) && mode === "act") put2(`Not listed: Events, Knowledge and proposed Events or Narratives dated after ${moment(asOf)}.`);
|
|
8795
|
+
put2(`Left out by the budget: ${left.length ? left.join(", ") : "nothing"}.`);
|
|
8676
8796
|
return out.join("\n") + "\n";
|
|
8677
8797
|
}
|
|
8678
8798
|
|
|
@@ -9511,6 +9631,7 @@ export {
|
|
|
9511
9631
|
absYearForEraYear,
|
|
9512
9632
|
absoluteYear,
|
|
9513
9633
|
approxYearLength,
|
|
9634
|
+
askerOf,
|
|
9514
9635
|
base64url,
|
|
9515
9636
|
breakdownStep,
|
|
9516
9637
|
buildAskContext,
|
|
@@ -9520,6 +9641,7 @@ export {
|
|
|
9520
9641
|
compareInstants,
|
|
9521
9642
|
dateOf,
|
|
9522
9643
|
degreeOf,
|
|
9644
|
+
designPartsOf,
|
|
9523
9645
|
detectKeyKind,
|
|
9524
9646
|
displayYear,
|
|
9525
9647
|
domainsOf,
|
|
@@ -9558,6 +9680,7 @@ export {
|
|
|
9558
9680
|
isLens,
|
|
9559
9681
|
isMessage,
|
|
9560
9682
|
isNote,
|
|
9683
|
+
isOpenWork,
|
|
9561
9684
|
isParseError,
|
|
9562
9685
|
isRoomElement,
|
|
9563
9686
|
isSentBy,
|
|
@@ -9597,6 +9720,7 @@ export {
|
|
|
9597
9720
|
recordMarkOf,
|
|
9598
9721
|
recordsOf,
|
|
9599
9722
|
renderElement,
|
|
9723
|
+
reportTalksOf,
|
|
9600
9724
|
reportThreadsOf,
|
|
9601
9725
|
resolveCalendar,
|
|
9602
9726
|
resolveCalendarLens,
|
|
@@ -9606,6 +9730,7 @@ export {
|
|
|
9606
9730
|
senderStatus,
|
|
9607
9731
|
simpleCaseFold,
|
|
9608
9732
|
strandOf,
|
|
9733
|
+
talksOf,
|
|
9609
9734
|
threadOf,
|
|
9610
9735
|
trailByPlace,
|
|
9611
9736
|
trimAndFold,
|
|
@@ -9617,6 +9742,8 @@ export {
|
|
|
9617
9742
|
validateCalendarConfig,
|
|
9618
9743
|
viewOf,
|
|
9619
9744
|
weekdayForStep,
|
|
9745
|
+
workOf,
|
|
9746
|
+
workStateOf,
|
|
9620
9747
|
worldCalendars,
|
|
9621
9748
|
worldGraph,
|
|
9622
9749
|
writeWorldFile,
|
package/dist/waymark.d.ts
CHANGED
|
@@ -131,4 +131,5 @@ interface OwWaymark {
|
|
|
131
131
|
*/
|
|
132
132
|
declare function mountWaymark(target: Element, options: OwWaymarkOptions): OwWaymark;
|
|
133
133
|
|
|
134
|
-
export {
|
|
134
|
+
export { mountWaymark };
|
|
135
|
+
export type { OwWaymark, OwWaymarkEntry, OwWaymarkLens, OwWaymarkOptions, OwWaymarkReader };
|
package/dist/waymark.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
openersFor,
|
|
7
7
|
refuseUnknownOptions,
|
|
8
8
|
typeWord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EFH2PAJN.js";
|
|
10
10
|
|
|
11
11
|
// src/waymark/glyphs.ts
|
|
12
12
|
var MARK_PATH = "M100 50C100 63.261 94.732 75.979 85.355 85.355C75.979 94.732 63.261 100 50 100C36.739 100 24.021 94.732 14.645 85.355C5.268 75.979 0 63.261 0 50C0 36.739 5.268 24.021 14.645 14.645C24.021 5.268 36.739 0 50 0C63.261 0 75.979 5.268 85.355 14.645C94.732 24.021 100 36.739 100 50ZM20.479 78.74C22.377 77.765 24.322 76.884 26.306 76.102Q25.845 75.042 25.421 73.934Q24.026 70.291 23.069 66.268Q22.121 62.281 21.637 58.063Q21.252 54.707 21.171 51.3L8.82 51.3C9.144 61.572 13.298 71.363 20.479 78.74ZM91.18 51.3L78.829 51.3Q78.748 54.707 78.363 58.063Q77.879 62.281 76.931 66.268Q75.974 70.291 74.579 73.934Q74.155 75.041 73.694 76.102C75.678 76.884 77.623 77.765 79.521 78.74C86.702 71.363 90.856 61.572 91.18 51.3ZM8.82 48.7L21.154 48.7Q21.195 44.785 21.637 40.937Q22.121 36.719 23.069 32.732Q24.026 28.709 25.421 25.066Q25.676 24.401 25.943 23.754C24.085 23.008 22.262 22.176 20.479 21.26C13.298 28.637 9.144 38.428 8.82 48.7ZM79.521 21.26C77.738 22.176 75.915 23.008 74.057 23.754Q74.324 24.401 74.579 25.066Q75.974 28.709 76.931 32.732Q77.879 36.719 78.363 40.937Q78.805 44.785 78.846 48.7L91.18 48.7C90.856 38.428 86.702 28.637 79.521 21.26ZM32.455 48.7L44.2 48.7L44.2 28.139C41.714 27.915 39.253 27.548 36.827 27.043Q36.381 28.044 35.974 29.107Q34.846 32.052 34.063 35.347Q33.27 38.678 32.863 42.226Q32.495 45.432 32.455 48.7ZM63.173 27.043C60.747 27.548 58.286 27.915 55.8 28.139L55.8 48.7L67.545 48.7Q67.505 45.432 67.137 42.226Q66.73 38.678 65.937 35.347Q65.153 32.052 64.026 29.107Q63.619 28.044 63.173 27.043ZM48.7 25.786L48.7 8.82C45.82 8.911 42.977 9.303 40.215 9.979Q39.193 11.05 38.224 12.342Q36.393 14.784 34.829 17.913Q33.574 20.422 32.533 23.289C34.326 23.815 36.144 24.261 37.982 24.624C37.99 24.626 37.998 24.627 38.006 24.629C40.048 25.032 42.115 25.332 44.2 25.528C45.692 25.668 47.193 25.755 48.7 25.786ZM51.3 8.82L51.3 25.786C52.68 25.757 54.054 25.683 55.421 25.563C55.548 25.552 55.674 25.54 55.8 25.528C57.885 25.332 59.952 25.032 61.994 24.629C63.841 24.265 65.667 23.817 67.467 23.289Q66.426 20.422 65.171 17.913Q63.607 14.784 61.776 12.342Q60.807 11.05 59.785 9.979C57.023 9.303 54.18 8.911 51.3 8.82ZM48.7 91.18L48.7 74.214C47.193 74.245 45.692 74.332 44.2 74.472C42.331 74.647 40.476 74.907 38.641 75.249C38.628 75.252 38.616 75.254 38.604 75.256C38.571 75.262 38.539 75.268 38.507 75.274C36.606 75.633 34.726 76.08 32.874 76.612C32.76 76.645 32.646 76.678 32.533 76.711Q33.574 79.578 34.829 82.087Q36.393 85.216 38.224 87.658Q39.193 88.95 40.215 90.021C42.977 90.697 45.82 91.089 48.7 91.18ZM59.785 90.021Q60.807 88.95 61.776 87.658Q63.607 85.216 65.171 82.087Q66.426 79.578 67.467 76.711C65.504 76.135 63.511 75.655 61.493 75.274C59.664 74.929 57.815 74.666 55.951 74.486C55.901 74.481 55.85 74.476 55.8 74.472C54.36 74.336 52.911 74.251 51.457 74.217C51.404 74.216 51.352 74.215 51.3 74.214L51.3 91.18C54.18 91.089 57.023 90.697 59.785 90.021ZM65.602 64.989Q65.777 64.328 65.937 63.653Q66.73 60.322 67.137 56.774Q67.449 54.059 67.525 51.3L55.8 51.3L55.8 63.531C59.11 63.795 62.384 64.284 65.602 64.989ZM44.2 51.3L32.475 51.3Q32.551 54.059 32.863 56.774Q33.27 60.322 34.063 63.653Q34.223 64.328 34.398 64.989C37.615 64.284 40.89 63.795 44.2 63.531L44.2 51.3ZM35.727 88.649Q33.994 86.232 32.503 83.25Q31.159 80.562 30.052 77.497C29.162 77.799 28.279 78.122 27.403 78.464C25.727 79.12 24.08 79.849 22.467 80.649C26.368 84.154 30.875 86.857 35.727 88.649ZM77.533 80.649C75.92 79.849 74.273 79.12 72.597 78.464C71.756 78.136 70.909 77.825 70.055 77.533C70.019 77.521 69.983 77.509 69.948 77.497Q68.841 80.562 67.497 83.25Q66.006 86.232 64.273 88.649C69.125 86.857 73.632 84.154 77.533 80.649ZM64.273 11.351Q66.006 13.768 67.497 16.75Q68.841 19.438 69.948 22.503C70.921 22.173 71.886 21.818 72.841 21.439C72.895 21.418 72.95 21.396 73.004 21.375C74.54 20.761 76.051 20.086 77.533 19.351C73.632 15.846 69.125 13.143 64.273 11.351ZM22.467 19.351C23.949 20.086 25.46 20.761 26.996 21.374C28.005 21.777 29.024 22.154 30.052 22.503Q31.159 19.438 32.503 16.75Q33.994 13.768 35.727 11.351C30.875 13.143 26.368 15.846 22.467 19.351Z";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlyworlds/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.181.0",
|
|
4
4
|
"description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"happy-dom": "^21.0.4",
|
|
70
|
-
"tsup": "^
|
|
70
|
+
"tsup": "^9.0.0",
|
|
71
71
|
"typescript": "^5.3.3"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|