@serene-pub/contracts 0.6.0-pr-5 โ 0.6.0-pr-7
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/dist/inlets.d.ts +183 -0
- package/dist/inlets.js +350 -2
- package/dist/oracles.d.ts +317 -4
- package/dist/oracles.js +235 -10
- package/dist/outlets.d.ts +618 -2
- package/dist/outlets.js +667 -11
- package/dist/queries.d.ts +278 -1
- package/dist/queries.js +301 -4
- package/dist/tasks.d.ts +736 -7
- package/dist/tasks.js +527 -7
- package/package.json +3 -3
package/dist/outlets.d.ts
CHANGED
|
@@ -206,6 +206,45 @@ export declare const createMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
206
206
|
* every row but a planner's.
|
|
207
207
|
*/
|
|
208
208
|
turnPlan: string;
|
|
209
|
+
/**
|
|
210
|
+
* ๐ง A folio line's **kind** (2026-10-17): one word stored as
|
|
211
|
+
* `metadata.kind` โ the Dungeon Crawler's journal writes `did`
|
|
212
|
+
* ยท `found` ยท `met` ยท `changed` ยท `time` ยท `lead` โ which a
|
|
213
|
+
* Messages copy filters on (`rowKinds`) and groups under. A
|
|
214
|
+
* literal in the node's config or a wired port; absent writes
|
|
215
|
+
* no kind, and a row with none always shows.
|
|
216
|
+
*/
|
|
217
|
+
kind: string;
|
|
218
|
+
/**
|
|
219
|
+
* ๐ง `'user'`: the row is a **person's own message** โ the run
|
|
220
|
+
* owner's, through `speaker` (`character:<id>` their persona,
|
|
221
|
+
* `player-seat:<id>` their card-less seat, `user:<id>` or
|
|
222
|
+
* nothing for themselves). A literal, on `generating`'s terms;
|
|
223
|
+
* absent is a reply. The host writes a person's row only for the
|
|
224
|
+
* run's own person on a root run, refuses a persona or seat that
|
|
225
|
+
* is not theirs, and fires the row's `message-completed` under
|
|
226
|
+
* the person's cause, so turn order and auto-advance answer it
|
|
227
|
+
* as a send. `core:spec/save-message` sets it.
|
|
228
|
+
* @ruling owner 2026-10-15
|
|
229
|
+
*/
|
|
230
|
+
role: string;
|
|
231
|
+
/**
|
|
232
|
+
* ๐ง The person's ready **tray items** to post as the row's
|
|
233
|
+
* attachments (`core:image` / `core:file` parts), in one
|
|
234
|
+
* transaction with the row โ or the write is refused whole and
|
|
235
|
+
* the tray stays. Only on a person's row (`role: 'user'`).
|
|
236
|
+
*/
|
|
237
|
+
trayItems: string;
|
|
238
|
+
/**
|
|
239
|
+
* ๐ง `true`: the row is a **table line** โ the table's own
|
|
240
|
+
* line, said in no voice (a Dungeon Crawler roll line,
|
|
241
|
+
* 2026-10-15). A literal, on `generating`'s terms. Stored as
|
|
242
|
+
* `metadata.tableLine`; the log draws it without a speaker's
|
|
243
|
+
* face or name, and a history read that asks for no table lines
|
|
244
|
+
* (`session-history@1`'s `tableLines: false`) leaves it out, so
|
|
245
|
+
* a model never takes it for its own speech and imitates it.
|
|
246
|
+
*/
|
|
247
|
+
tableLine: string;
|
|
209
248
|
}, "core:outlet/create-message@1"> & {
|
|
210
249
|
kind: 'outlet';
|
|
211
250
|
slots?: {
|
|
@@ -281,6 +320,15 @@ export declare const updateMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
281
320
|
* only when given. Like `reasoning`, never re-sent to the model.
|
|
282
321
|
*/
|
|
283
322
|
sections: string;
|
|
323
|
+
/**
|
|
324
|
+
* ๐ง The reply's PARTS, in order (O5, 2026-10-21; additive) โ
|
|
325
|
+
* `generate-text@1`'s `parts`. Every media part (a spoken
|
|
326
|
+
* reply's audio, a drawn image) lands on the row as a message
|
|
327
|
+
* part in the order the model gave it, after the text. Text and
|
|
328
|
+
* reasoning parts are not written from here: `text` and
|
|
329
|
+
* `reasoning` carry them.
|
|
330
|
+
*/
|
|
331
|
+
parts: string;
|
|
284
332
|
}, "core:outlet/update-message@1"> & {
|
|
285
333
|
kind: 'outlet';
|
|
286
334
|
slots?: {
|
|
@@ -299,14 +347,42 @@ export declare const updateMessage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
299
347
|
* Delete a message. Publishes `lost` โ the content, role, speaker, channel
|
|
300
348
|
* and metadata the row held โ beside the write result, so a listener (a
|
|
301
349
|
* plugin cleaning its rows, the next reply's inlet) knows what went.
|
|
350
|
+
*
|
|
351
|
+
* ๐ง **The deletion outlet** (RF fix 5, owner ruling 2026-10-23: deletion
|
|
352
|
+
* requires a pipeline, so the genre manages it). Placed by the built-in's
|
|
353
|
+
* own spec (โณ retired as a person's verb), which names its row on `target`,
|
|
354
|
+
* and by a **deletion pipeline** โ a document entered through
|
|
355
|
+
* `core:inlet/message-deletion-asked@1`, the only other place it may stand
|
|
356
|
+
* (`deletionPipelinePlaces`) โ which hands it the deletion the event carried
|
|
357
|
+
* on `asked`, wired from the inlet's `main`
|
|
358
|
+
* (`C.deleteMessage.v1({ asked: $.input.main })`), and deletes that message
|
|
359
|
+
* and no other. One transaction: the row goes and everything the message
|
|
360
|
+
* changed goes with it by the one retraction rule (RF fix 4) โ and `taken`
|
|
361
|
+
* says what that was.
|
|
302
362
|
* @experimental
|
|
303
363
|
*/
|
|
304
364
|
export declare const deleteMessage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
305
365
|
main: string;
|
|
306
366
|
messageId: string;
|
|
307
367
|
lost: string;
|
|
368
|
+
/**
|
|
369
|
+
* ๐ง What went with it (RF fix 5): the one retraction rule's
|
|
370
|
+
* count of what the message changed and was taken back โ
|
|
371
|
+
* values, configurations, proposals, zone snapshots, lore
|
|
372
|
+
* writes by what became of each, the notes' entries, and
|
|
373
|
+
* whether the clock moved back.
|
|
374
|
+
*/
|
|
375
|
+
taken: string;
|
|
308
376
|
}, {
|
|
377
|
+
/** The row to delete โ the built-in's own spec's port. */
|
|
309
378
|
target: string;
|
|
379
|
+
/**
|
|
380
|
+
* ๐ง The deletion a person asked for, whole (RF fix 5): a
|
|
381
|
+
* deletion pipeline's port, wired from
|
|
382
|
+
* `core:inlet/message-deletion-asked@1.main` and nothing else
|
|
383
|
+
* (`validate()`). The message deleted is the one it names.
|
|
384
|
+
*/
|
|
385
|
+
asked: string;
|
|
310
386
|
}, "core:outlet/delete-message@1"> & {
|
|
311
387
|
kind: 'outlet';
|
|
312
388
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
@@ -357,13 +433,31 @@ export declare const setTurnOrder: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
357
433
|
* ruling, reversing the original "no causesEvent"): a package's state is the annex, and a
|
|
358
434
|
* genre that wants its turn order to answer that state binds the event in
|
|
359
435
|
* the open, where the event map draws it โ not through a back door.
|
|
436
|
+
*
|
|
437
|
+
* ๐ง Every write that moves the document moves the owner's **annex document
|
|
438
|
+
* version** (a count, 0 before the first): `base` makes the write a
|
|
439
|
+
* compare-and-set on it, so a run that read the document before another run
|
|
440
|
+
* wrote it is refused rather than overwriting that run's write.
|
|
360
441
|
* @experimental
|
|
361
442
|
*/
|
|
362
443
|
export declare const setSessionAnnex: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
363
444
|
main: string;
|
|
445
|
+
/** The owner's document as written โ or, when `base` was stale, as it stands now. Never core's runtime keys. */
|
|
364
446
|
annex: string;
|
|
447
|
+
/** ๐ง The owner's annex document version after this write (unchanged when nothing was written). */
|
|
448
|
+
version: string;
|
|
365
449
|
}, {
|
|
366
450
|
value: string;
|
|
451
|
+
/**
|
|
452
|
+
* ๐ง Compare-and-set (M2a a8): the owner's **annex document
|
|
453
|
+
* version** this run read โ `session-annex`'s `version`. When the
|
|
454
|
+
* stored version is another, nothing is written: the write result
|
|
455
|
+
* says `stale: true` (`written: false`, with a receipt note), and
|
|
456
|
+
* `annex` and `version` carry the document as it stands now, to
|
|
457
|
+
* build on again. Absent, the write lands as it always did (the
|
|
458
|
+
* last writer's value wins).
|
|
459
|
+
*/
|
|
460
|
+
base: string;
|
|
367
461
|
}, "core:outlet/set-session-annex@1"> & {
|
|
368
462
|
kind: 'outlet';
|
|
369
463
|
slots?: {
|
|
@@ -405,6 +499,211 @@ export declare const setSessionAnnex: import("@serene-pub/sdk").Pinned<import("@
|
|
|
405
499
|
};
|
|
406
500
|
} | undefined;
|
|
407
501
|
}>;
|
|
502
|
+
/**
|
|
503
|
+
* ๐ง Name a person's **player seat** in this session (Dungeon Crawler's
|
|
504
|
+
* interview, 2026-10-15): the pipeline door to the seat name a person sets
|
|
505
|
+
* by hand in session settings (`sessions:update` `seatName`). The seat is
|
|
506
|
+
* `user`'s โ a `user:<id>` reference, the addressee of the form the name
|
|
507
|
+
* answered โ their card-less seat first, else their first seat; with none,
|
|
508
|
+
* a name opens a card-less seat for them, as the hand-set name does. The
|
|
509
|
+
* host refuses a seat for somebody who is neither the owner nor a playing
|
|
510
|
+
* guest, and a blank name (this outlet never clears one).
|
|
511
|
+
*
|
|
512
|
+
* `seat` is the seat as a participant reference โ `player-seat:<id>` for a
|
|
513
|
+
* card-less seat, `character:<id>` for a seat with a card โ and `seats` the
|
|
514
|
+
* same as a one-item list, the shape `resolve-state-changes@1`'s `owners`
|
|
515
|
+
* takes, so the seat's own stats can be written in the same run.
|
|
516
|
+
*
|
|
517
|
+
* ๐ง `retire` (Dungeon Crawler's new character after a death, owner ruling
|
|
518
|
+
* 2026-10-18): one of `user`'s own seats, by reference. That seat leaves the
|
|
519
|
+
* table โ its lines keep its name, its state stays where it was filed โ and
|
|
520
|
+
* the name opens a NEW card-less seat for them, which `seat` then names. A
|
|
521
|
+
* seat that is not theirs, or not live, is refused. `@1` evolves in place.
|
|
522
|
+
* @experimental
|
|
523
|
+
*/
|
|
524
|
+
export declare const setSeatName: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
525
|
+
main: string;
|
|
526
|
+
seat: string;
|
|
527
|
+
seats: string;
|
|
528
|
+
}, {
|
|
529
|
+
/** Whose seat: `user:<id>`. */
|
|
530
|
+
user: string;
|
|
531
|
+
/** The character's name in this session. */
|
|
532
|
+
name: string;
|
|
533
|
+
/**
|
|
534
|
+
* ๐ง A seat of theirs this name replaces (`player-seat:<id>` or
|
|
535
|
+
* `character:<id>`): retired, and a new seat opened. JSON, so a
|
|
536
|
+
* script's part may name it (absent or null: none).
|
|
537
|
+
*/
|
|
538
|
+
retire: string;
|
|
539
|
+
}, "core:outlet/set-seat-name@1"> & {
|
|
540
|
+
kind: 'outlet';
|
|
541
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
542
|
+
}>;
|
|
543
|
+
/**
|
|
544
|
+
* ๐ง **Open or close the composer** on a channel lane (owner ruling
|
|
545
|
+
* 2026-10-15): the genre's switch for whether a person may write there. The
|
|
546
|
+
* state is the session row's (`sessions.composer_states`, SDK
|
|
547
|
+
* `ComposerStatesV1`); core opens and closes nothing on its own, so a
|
|
548
|
+
* composer a genre closed stays closed until a pipeline opens it.
|
|
549
|
+
*
|
|
550
|
+
* - `channel` โ a slug, a canonical lane (`parley:2`; the bare slug is lane
|
|
551
|
+
* 1 alone), or `*` for every channel;
|
|
552
|
+
* - `open` โ `true` to open, `false` to close;
|
|
553
|
+
* - `reason` โ optional: what the composer is waiting on, as a sentence
|
|
554
|
+
* the person reads ("Make your character on the Planner tab first.").
|
|
555
|
+
* Shown in place of the placeholder and repeated in the refusal of a send
|
|
556
|
+
* the widget let through. Named `reason`, never `message`: a message is a
|
|
557
|
+
* session's row;
|
|
558
|
+
* - `person` โ optional: whose composer, `user:<id>`; absent is everyone,
|
|
559
|
+
* the session's owner included.
|
|
560
|
+
*
|
|
561
|
+
* Opening for everyone clears the lane's every closure; opening for one
|
|
562
|
+
* person clears theirs, and never overrides a close for everyone. The send
|
|
563
|
+
* door (`sessionMessages:sendPersonaMessage`, and `message-offered`'s offer)
|
|
564
|
+
* refuses a line on a closed composer; turn controls (Continue) are the
|
|
565
|
+
* round's, not the composer's, and are not touched. Every member's page is
|
|
566
|
+
* told at once.
|
|
567
|
+
*
|
|
568
|
+
* `main` is the write; `states` the whole document after it.
|
|
569
|
+
* @experimental
|
|
570
|
+
*/
|
|
571
|
+
export declare const setComposerState: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
572
|
+
main: string;
|
|
573
|
+
states: string;
|
|
574
|
+
}, {
|
|
575
|
+
/** A slug, a canonical lane (`parley:2`), or `*`. */
|
|
576
|
+
channel: string;
|
|
577
|
+
/** `true` opens, `false` closes. */
|
|
578
|
+
open: string;
|
|
579
|
+
/** What the composer waits on โ a sentence. Optional. */
|
|
580
|
+
reason: string;
|
|
581
|
+
/**
|
|
582
|
+
* Whose composer: `user:<id>`, a participant reference as text.
|
|
583
|
+
* Optional; absent is everyone. `json`, as `set-stat-config@1`'s
|
|
584
|
+
* `owner` is: a genre wires it from a script's text, and the
|
|
585
|
+
* host parses the reference (a typed port refused that wire,
|
|
586
|
+
* 2026-10-18).
|
|
587
|
+
*/
|
|
588
|
+
person: string;
|
|
589
|
+
}, "core:outlet/set-composer-state@1"> & {
|
|
590
|
+
kind: 'outlet';
|
|
591
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
592
|
+
}>;
|
|
593
|
+
/**
|
|
594
|
+
* ๐ง What `propose-scene-cue@1` did โ its `cue` out-port, the host's commit's answer
|
|
595
|
+
* (`proposeJudgedSceneCue`, sprint 2, pass 7). @experimental
|
|
596
|
+
*/
|
|
597
|
+
export interface ProposedSceneCue {
|
|
598
|
+
/** `suggested` โ waiting as the *New scene?* chip; `placed` โ Automatic opened the scene; `refused` โ refused, or Automatic could not place it and the cue waits; `skipped` โ nothing recorded. */
|
|
599
|
+
outcome: 'suggested' | 'placed' | 'refused' | 'skipped';
|
|
600
|
+
/** The receipt's note for `refused` / `skipped`, a sentence. */
|
|
601
|
+
note?: string;
|
|
602
|
+
/** The `scene_cues` row, when one was written. */
|
|
603
|
+
cueId?: number;
|
|
604
|
+
openedSceneId?: number;
|
|
605
|
+
closedSceneId?: number;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* ๐ง **Suggest a new scene** (pass 7, R-i, sprint 2, 2026-10-25): the judged scene check's
|
|
609
|
+
* answer โ "the story moved on; the next scene begins at this line, because โฆ" โ recorded as a
|
|
610
|
+
* **scene cue** with trigger `judged` (`JUDGED_SCENE_TRIGGER`) and the model's words as its
|
|
611
|
+
* reason. From there the session's scene mode decides, as for any boundary trigger: Suggested โ
|
|
612
|
+
* the *New scene?* chip; Automatic โ the boundary is placed (unless `ask`); Manual โ nothing.
|
|
613
|
+
* The host re-checks the judged check's conditions at commit and skips, with a note, when they
|
|
614
|
+
* no longer hold or `at` is not one of its lines. Never held at the review gate: a cue's review
|
|
615
|
+
* is the chip.
|
|
616
|
+
*
|
|
617
|
+
* โ Not a scene write (a person's *Start scene here*) and not a state proposal.
|
|
618
|
+
* @experimental
|
|
619
|
+
* @ruling R-i (2026-10-24)
|
|
620
|
+
*/
|
|
621
|
+
export declare const proposeSceneCue: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
622
|
+
main: string;
|
|
623
|
+
/** A `ProposedSceneCue`. */
|
|
624
|
+
cue: string;
|
|
625
|
+
}, {
|
|
626
|
+
/**
|
|
627
|
+
* The line the next scene would open at โ a message id, as the
|
|
628
|
+
* sweep's sort gives it. `json`, as `set-composer-state@1`'s
|
|
629
|
+
* `person` is: wired from a script's output.
|
|
630
|
+
*/
|
|
631
|
+
at: string;
|
|
632
|
+
/** The channel lane `at` is on, any spelling (canonicalised); absent or blank: `main`. */
|
|
633
|
+
channel: string;
|
|
634
|
+
/** Why, in the model's few words โ the chip's reason ("the party left the inn"). */
|
|
635
|
+
reason: string;
|
|
636
|
+
}, "core:outlet/propose-scene-cue@1"> & {
|
|
637
|
+
kind: 'outlet';
|
|
638
|
+
slots?: {
|
|
639
|
+
readonly params: {
|
|
640
|
+
readonly kind: "parameters";
|
|
641
|
+
readonly facet: "behavior";
|
|
642
|
+
readonly schema: {
|
|
643
|
+
readonly ask: {
|
|
644
|
+
readonly type: "boolean";
|
|
645
|
+
readonly default: false;
|
|
646
|
+
readonly label: {
|
|
647
|
+
readonly en: "Always ask";
|
|
648
|
+
};
|
|
649
|
+
readonly description: {
|
|
650
|
+
readonly en: "Offer the new scene as a suggestion even when this session starts scenes on its own (Automatic). Off: the scene setting decides.";
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
} | undefined;
|
|
656
|
+
}>;
|
|
657
|
+
/**
|
|
658
|
+
* ๐ง **Configure a stat** for one owner in this session (owner ruling
|
|
659
|
+
* 2026-10-15): the pipeline door to an owner's **stat configuration** โ the
|
|
660
|
+
* deviations from an attribute slot's own config that one owner carries,
|
|
661
|
+
* `{ max: 26 }` on a seat's health. Stored as an `attribute_configs` row
|
|
662
|
+
* through the same writer a person's `state:configure` takes, so the bar,
|
|
663
|
+
* the write's bound and every prompt read the same maximum.
|
|
664
|
+
*
|
|
665
|
+
* The three in-ports are one `StatConfigDocument` (SDK `attributes.ts`) โ
|
|
666
|
+
* the format a card or session editor sends too:
|
|
667
|
+
*
|
|
668
|
+
* - `owner` โ whose: `player-seat:<id>`, `character:<id>` (that card's
|
|
669
|
+
* session layer) or `world`;
|
|
670
|
+
* - `slot` โ the attribute slot id, `core:slot/hp@1`;
|
|
671
|
+
* - `config` โ only the keys the slot's stat shape bounds
|
|
672
|
+
* (`statConfigKeys`): a number's `min`/`max`, a choice's `of`, a list's
|
|
673
|
+
* `maxItems` and `of`/`maxLength`, a line's `maxLength`, and every
|
|
674
|
+
* slot's `descriptor`.
|
|
675
|
+
*
|
|
676
|
+
* Refused, halting the run with the sentence: a slot nothing declares or
|
|
677
|
+
* the session does not track, a key the shape does not bound or a value it
|
|
678
|
+
* cannot be, a `min` above the `max` once merged, an owner that is not this
|
|
679
|
+
* session's. Anchored like a value โ the owner's open anchor, or `worldRow`
|
|
680
|
+
* for a seat or the world โ so a retake or a swipe takes it back.
|
|
681
|
+
*
|
|
682
|
+
* `main` is `{ configId, owner, slot, before, config }`: the row, and the
|
|
683
|
+
* configuration in force before and after it.
|
|
684
|
+
* @experimental
|
|
685
|
+
*/
|
|
686
|
+
export declare const setStatConfig: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
687
|
+
main: string;
|
|
688
|
+
}, {
|
|
689
|
+
/** Whose: a participant reference, `world`, or `location:<id>` (a place's lore entry). */
|
|
690
|
+
owner: string;
|
|
691
|
+
/** The attribute slot: `core:slot/hp@1`. */
|
|
692
|
+
slot: string;
|
|
693
|
+
/**
|
|
694
|
+
* The deviations: `{ max: 26 }`. ๐ง One universal key
|
|
695
|
+
* (2026-10-17): `lock` โ `none` ยท `people` (no hand edit; the
|
|
696
|
+
* dice and the session's owner still write) ยท `all` (nothing
|
|
697
|
+
* writes until unlocked). The host refuses a locked write with
|
|
698
|
+
* its own sentence; widgets draw the slot without edit controls.
|
|
699
|
+
*/
|
|
700
|
+
config: string;
|
|
701
|
+
/** The row a seat's or the world's configuration is filed at โ `set-state@1`'s `worldRow`. Optional. */
|
|
702
|
+
worldRow: string;
|
|
703
|
+
}, "core:outlet/set-stat-config@1"> & {
|
|
704
|
+
kind: 'outlet';
|
|
705
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
706
|
+
}>;
|
|
408
707
|
/**
|
|
409
708
|
* Set one **annex field** (2026-09-26): the write behind every
|
|
410
709
|
* `annexField()` a package declares โ core's one pipeline for them all,
|
|
@@ -430,6 +729,65 @@ export declare const setAnnexField: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
430
729
|
kind: 'outlet';
|
|
431
730
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
432
731
|
}>;
|
|
732
|
+
/**
|
|
733
|
+
* ๐ง Write one owner's document into the **lorebook annex** (M0,
|
|
734
|
+
* SHAPES L9): the `set-session-annex` write at book scope. A write from a
|
|
735
|
+
* session is a change โ anchored to the turn, filed as a `lore_imprints` row
|
|
736
|
+
* (subject `annex`), retractable, settled with the stretch โ routed like
|
|
737
|
+
* every lore write; a write from a book-level run is lasting at once.
|
|
738
|
+
* @experimental
|
|
739
|
+
*/
|
|
740
|
+
export declare const setLorebookAnnex: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
741
|
+
main: string;
|
|
742
|
+
/** The owner's document as written โ or, when `base` was stale, as it stands now. */
|
|
743
|
+
annex: string;
|
|
744
|
+
/** ๐ง (M2b) The owner's annex document version on the book after this write (unchanged when nothing was written). */
|
|
745
|
+
version: string;
|
|
746
|
+
}, {
|
|
747
|
+
value: string;
|
|
748
|
+
/**
|
|
749
|
+
* ๐ง Compare-and-set (M2b), as `set-session-annex`'s `base`: the
|
|
750
|
+
* owner's annex document version this run read โ `lorebook-annex`'s
|
|
751
|
+
* `version`. Another stored version writes nothing (`written: false`,
|
|
752
|
+
* `stale: true`, a receipt note), and `annex` and `version` carry the
|
|
753
|
+
* document as it stands now. Absent, the last write wins.
|
|
754
|
+
*/
|
|
755
|
+
base: string;
|
|
756
|
+
}, "core:outlet/set-lorebook-annex@1"> & {
|
|
757
|
+
kind: 'outlet';
|
|
758
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
759
|
+
}>;
|
|
760
|
+
/**
|
|
761
|
+
* ๐ง Set one annex field declared `annexField({ scope: 'lorebook' })`
|
|
762
|
+
* (M0, SHAPES L9): the `set-annex-field` write at book scope, under the
|
|
763
|
+
* same rules as {@link setLorebookAnnex}.
|
|
764
|
+
* @experimental
|
|
765
|
+
*/
|
|
766
|
+
export declare const setLorebookAnnexField: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
767
|
+
main: string;
|
|
768
|
+
}, {
|
|
769
|
+
payload: string;
|
|
770
|
+
}, "core:outlet/set-lorebook-annex-field@1"> & {
|
|
771
|
+
kind: 'outlet';
|
|
772
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
773
|
+
}>;
|
|
774
|
+
/**
|
|
775
|
+
* ๐ง Move the session's rules to another version of their ruleset (M0,
|
|
776
|
+
* SHAPES L4 Conversion): built-in and owner-only, also the socket
|
|
777
|
+
* `sessions:convertRuleset`. Per session it re-keys renamed slots, retracts
|
|
778
|
+
* removed ones and inserts defaults for added ones โ each an anchored change,
|
|
779
|
+
* retractable โ then sets the session's ruleset version to `to`.
|
|
780
|
+
* @experimental
|
|
781
|
+
*/
|
|
782
|
+
export declare const convertRuleset: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
783
|
+
main: string;
|
|
784
|
+
}, {
|
|
785
|
+
/** The ruleset version to move to (semver). */
|
|
786
|
+
to: string;
|
|
787
|
+
}, "core:outlet/convert-ruleset@1"> & {
|
|
788
|
+
kind: 'outlet';
|
|
789
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
790
|
+
}>;
|
|
433
791
|
/**
|
|
434
792
|
* Record an event your package declared: something happened, and
|
|
435
793
|
* pipelines bound to it โ plugin listeners, and widgets when the event is
|
|
@@ -682,6 +1040,25 @@ export declare const offerMedia: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
682
1040
|
kind: 'outlet';
|
|
683
1041
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
684
1042
|
}>;
|
|
1043
|
+
/**
|
|
1044
|
+
* ๐ง **A clock target** โ the value of `core:shape/clock-target@1`
|
|
1045
|
+
* (`S.clockTarget`; M0, SHAPES L3): an hour and, optionally, a minute
|
|
1046
|
+
* within a story day. `day` says which day: `next` (the default) โ today when
|
|
1047
|
+
* the moment is still ahead, tomorrow when it is not ("sleep until 07:00");
|
|
1048
|
+
* `today` โ refused when the moment is not ahead; `tomorrow`. A clock target
|
|
1049
|
+
* never moves the clock back. What `advance-story-clock@1` moves `to` and
|
|
1050
|
+
* (once ruled) the hour `cast-presences@1` reads. โ Not a `StoryTime`: it names a moment of a
|
|
1051
|
+
* day, never a date.
|
|
1052
|
+
* @experimental
|
|
1053
|
+
*/
|
|
1054
|
+
export interface ClockTargetV1 {
|
|
1055
|
+
/** 0โ23. */
|
|
1056
|
+
hour: number;
|
|
1057
|
+
/** 0โ59; absent is 0. */
|
|
1058
|
+
minute?: number;
|
|
1059
|
+
/** Absent is `next`. */
|
|
1060
|
+
day?: 'today' | 'tomorrow' | 'next';
|
|
1061
|
+
}
|
|
685
1062
|
/**
|
|
686
1063
|
* Move a session's **story clock** โ the session's own story now โ by `by` of
|
|
687
1064
|
* `unit`, through its lorebook's calendar (`advanceStoryTime`): carried by a
|
|
@@ -719,11 +1096,27 @@ export declare const advanceStoryClock: import("@serene-pub/sdk").Pinned<import(
|
|
|
719
1096
|
skipped: string;
|
|
720
1097
|
/** It spelled through the book's calendar. */
|
|
721
1098
|
label: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* ๐ง The minutes a `to` move moved the clock (M0, T1) โ 0
|
|
1101
|
+
* when it stood where it was or was refused under `skip`, with
|
|
1102
|
+
* no ledger row. Absent on a `by` move.
|
|
1103
|
+
*/
|
|
1104
|
+
moved: string;
|
|
722
1105
|
}, {
|
|
723
1106
|
/** A whole number; wins over the `by` parameter when wired. */
|
|
724
1107
|
by: string;
|
|
725
1108
|
/** One of the units; wins over the `unit` parameter when wired. */
|
|
726
1109
|
unit: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* ๐ง **Where the clock moves to** (M0, SHAPES L3), a
|
|
1112
|
+
* `ClockTargetV1` โ the second input shape: an absolute moment
|
|
1113
|
+
* within the day ("sleep until 07:00") instead of a relative
|
|
1114
|
+
* `by`. Exactly one of the `by` and `to` in-ports may be wired;
|
|
1115
|
+
* both is refused with a sentence naming both. Wired, the `by`
|
|
1116
|
+
* and `unit` parameters are not read. One ledger move either
|
|
1117
|
+
* way, retractable as every move is.
|
|
1118
|
+
*/
|
|
1119
|
+
to: string;
|
|
727
1120
|
/**
|
|
728
1121
|
* ๐ง **Why the clock moves** (live scenes ยง15 G4, 2026-10-13),
|
|
729
1122
|
* a literal: `'action'` โ a person's press (*Time passesโฆ*);
|
|
@@ -852,15 +1245,42 @@ export declare const answerForm: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
852
1245
|
kind: 'outlet';
|
|
853
1246
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
854
1247
|
}>;
|
|
855
|
-
/**
|
|
1248
|
+
/**
|
|
1249
|
+
* The audio twin of `attach-image` โ same `target`, same commit, bound the same day.
|
|
1250
|
+
*
|
|
1251
|
+
* ๐ง Speech (seam S3, 2026-10-28): `meta` is the `SpokenMeta` record
|
|
1252
|
+
* `core:oracle/speak@1` publishes, kept in the line's metadata for the swipe
|
|
1253
|
+
* (`spoken`) beside the audio part; `replace` swaps the line's earlier spoken
|
|
1254
|
+
* audio rather than adding a second part โ what re-speaking a line does.
|
|
1255
|
+
* @experimental
|
|
1256
|
+
*/
|
|
856
1257
|
export declare const attachAudio: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
857
1258
|
main: string;
|
|
858
1259
|
}, {
|
|
859
1260
|
target: string;
|
|
860
1261
|
audio: string;
|
|
1262
|
+
/** ๐ง `SpokenMeta` โ absent writes the audio part alone. */
|
|
1263
|
+
meta: string;
|
|
861
1264
|
}, "core:outlet/attach-audio@1"> & {
|
|
862
1265
|
kind: 'outlet';
|
|
863
|
-
slots?:
|
|
1266
|
+
slots?: {
|
|
1267
|
+
readonly params: {
|
|
1268
|
+
readonly kind: "parameters";
|
|
1269
|
+
readonly facet: "behavior";
|
|
1270
|
+
readonly schema: {
|
|
1271
|
+
readonly replace: {
|
|
1272
|
+
readonly type: "boolean";
|
|
1273
|
+
readonly default: false;
|
|
1274
|
+
readonly label: {
|
|
1275
|
+
readonly en: "Replace earlier speech";
|
|
1276
|
+
};
|
|
1277
|
+
readonly description: {
|
|
1278
|
+
readonly en: "Swap the line's spoken audio for this one instead of adding a second part.";
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
} | undefined;
|
|
864
1284
|
}>;
|
|
865
1285
|
/**
|
|
866
1286
|
* Write the finished entry. Gate-eligible, so it publishes a write result.
|
|
@@ -907,6 +1327,20 @@ export declare const attachAudio: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
907
1327
|
* says more (2026-09-29). Absent on nearly every write, and an
|
|
908
1328
|
* empty list is the same as none. A link the list states twice, or one the
|
|
909
1329
|
* session already reads, is written once: see `linkLoreEntries` on idempotence.
|
|
1330
|
+
*
|
|
1331
|
+
* ## `fields` โ the entry type's own half (๐ง 2026-10-21, Lair rewrite D2)
|
|
1332
|
+
*
|
|
1333
|
+
* The typed fields the entry type declares (`EntryShape.fields` โ a place's
|
|
1334
|
+
* category; a derived entry type's piece fields, a weapon's damage), as one
|
|
1335
|
+
* object keyed by field. Its title-role field is not among them: that is the
|
|
1336
|
+
* `name` port. Checked against the type named by `entryType` with the SDK's
|
|
1337
|
+
* one checker (`fieldsFindings`) at the review gate and again at the commit:
|
|
1338
|
+
* a misfit โ an undeclared key, a value of the wrong kind, a required field
|
|
1339
|
+
* missing โ is refused with the field named, never trimmed to fit. A pipeline
|
|
1340
|
+
* asks a model for them with `jsonSchemaOf(entryType)` into
|
|
1341
|
+
* `generate-json@1`'s `schema`, so what is asked and what is checked are one
|
|
1342
|
+
* declaration. Absent: the type's declared defaults, as before. `@1` evolves
|
|
1343
|
+
* in place (pre-release).
|
|
910
1344
|
* @internal
|
|
911
1345
|
*/
|
|
912
1346
|
export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
@@ -920,6 +1354,25 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
|
|
|
920
1354
|
* note above on the live row. Names, entry ids, or `LoreLinkInput`s.
|
|
921
1355
|
*/
|
|
922
1356
|
links: string;
|
|
1357
|
+
/**
|
|
1358
|
+
* ๐ง The entry type's typed fields, one object keyed by field
|
|
1359
|
+
* (the title's field excepted) โ checked whole against the
|
|
1360
|
+
* type (`fieldsFindings`); see the note above.
|
|
1361
|
+
*/
|
|
1362
|
+
fields: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* ๐ง The messages this write was written from. Pass it when the write is a
|
|
1365
|
+
* summary of the story; leave it off when it is a change in it (pass 6). Present, the write is committed: the
|
|
1366
|
+
* session's settle line moves to the newest of them.
|
|
1367
|
+
*/
|
|
1368
|
+
sources: string;
|
|
1369
|
+
/** ๐ง A `LoreMatch` โ how to find the entry this would otherwise create. */
|
|
1370
|
+
match: string;
|
|
1371
|
+
/**
|
|
1372
|
+
* ๐ง The cast member this entry is filed under โ a `character:<id>` reference, resolved to that
|
|
1373
|
+
* character's cast member in the book the entry lands in (the entry type's `anchor` role).
|
|
1374
|
+
*/
|
|
1375
|
+
bind: string;
|
|
923
1376
|
}, "core:outlet/create-lore-entry@1"> & {
|
|
924
1377
|
kind: 'outlet';
|
|
925
1378
|
slots?: {
|
|
@@ -939,6 +1392,52 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
|
|
|
939
1392
|
};
|
|
940
1393
|
} | undefined;
|
|
941
1394
|
}>;
|
|
1395
|
+
/**
|
|
1396
|
+
* ๐ง Change an entry of the session's lorebook โ its name, its content, its
|
|
1397
|
+
* typed fields (2026-10-21, Lair rewrite D2: *File as a room* on a room that
|
|
1398
|
+
* already exists, a draft's fields laid onto an entry a person wrote).
|
|
1399
|
+
*
|
|
1400
|
+
* `entry` names it as `link-lore-entries@1`'s `to` does: an entry id, the
|
|
1401
|
+
* write result of the write that made it, or a **name** resolved within the
|
|
1402
|
+
* session's own lorebook (case and surrounding space ignored; a name nothing
|
|
1403
|
+
* answers to, or two entries answer to, is refused with a sentence).
|
|
1404
|
+
*
|
|
1405
|
+
* Every in-port but `entry` is optional, and an absent one leaves that part
|
|
1406
|
+
* as it is. `fields` is a **patch**: the keys it names are laid over the
|
|
1407
|
+
* entry's stored fields and the rest kept, `null` clears one; it is checked
|
|
1408
|
+
* against the entry's own type as a patch (`fieldsFindings(type, fields,
|
|
1409
|
+
* { partial: true })`) at the review gate and at the commit, and a misfit is
|
|
1410
|
+
* refused with the field named. The type itself never changes โ a room stays
|
|
1411
|
+
* a place.
|
|
1412
|
+
*
|
|
1413
|
+
* How the change lands is the host's: on the session's line, the way the
|
|
1414
|
+
* lorebook's own editor writes an edit there (an amendment where the line
|
|
1415
|
+
* amends). โ It causes no event yet (๐ง): `lore-entry-created` means a new
|
|
1416
|
+
* row, and a subscriber that needs edits waits for one of its own.
|
|
1417
|
+
* @internal
|
|
1418
|
+
*/
|
|
1419
|
+
export declare const updateLoreEntry: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1420
|
+
main: string;
|
|
1421
|
+
entryId: string;
|
|
1422
|
+
}, {
|
|
1423
|
+
/** The entry to change: an id, a write result, or a name in the session's lorebook. */
|
|
1424
|
+
entry: string;
|
|
1425
|
+
/** Its new name. Absent: kept. */
|
|
1426
|
+
name: string;
|
|
1427
|
+
/** Its new content. Absent: kept. */
|
|
1428
|
+
content: string;
|
|
1429
|
+
/** Typed fields laid over the stored ones, key by key; `null` clears one. Absent: kept. */
|
|
1430
|
+
fields: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* ๐ง The messages this write was written from. Pass it when the write is a
|
|
1433
|
+
* summary of the story; leave it off when it is a change in it (pass 6). Present, the write is committed: the
|
|
1434
|
+
* session's settle line moves to the newest of them.
|
|
1435
|
+
*/
|
|
1436
|
+
sources: string;
|
|
1437
|
+
}, "core:outlet/update-lore-entry@1"> & {
|
|
1438
|
+
kind: 'outlet';
|
|
1439
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
1440
|
+
}>;
|
|
942
1441
|
/**
|
|
943
1442
|
* Link two lore entries (2026-09-17).
|
|
944
1443
|
*
|
|
@@ -1035,6 +1534,12 @@ export declare const linkLoreEntries: import("@serene-pub/sdk").Pinned<import("@
|
|
|
1035
1534
|
name: string;
|
|
1036
1535
|
/** Its description. Optional. */
|
|
1037
1536
|
description: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* ๐ง The messages this write was written from. Pass it when the write is a
|
|
1539
|
+
* summary of the story; leave it off when it is a change in it (pass 6). Present, the write is committed: the
|
|
1540
|
+
* session's settle line moves to the newest of them.
|
|
1541
|
+
*/
|
|
1542
|
+
sources: string;
|
|
1038
1543
|
}, "core:outlet/link-lore-entries@1"> & {
|
|
1039
1544
|
kind: 'outlet';
|
|
1040
1545
|
slots?: {
|
|
@@ -1062,6 +1567,23 @@ export declare const linkLoreEntries: import("@serene-pub/sdk").Pinned<import("@
|
|
|
1062
1567
|
};
|
|
1063
1568
|
} | undefined;
|
|
1064
1569
|
}>;
|
|
1570
|
+
/**
|
|
1571
|
+
* ๐ง How `create-lore-entry@1` finds the entry it would otherwise create (pass 8, R-h).
|
|
1572
|
+
* The host looks in the book it writes to, on the session's line, under the book's lock:
|
|
1573
|
+
* none โ create; one โ update it (as `update-lore-entry@1` would, fields as a patch); two or
|
|
1574
|
+
* more โ REFUSED, the refusal naming every candidate (`'<name>' (entry <id>)`), retry with `entryId`.
|
|
1575
|
+
* `name` and `key` match within this write's own `entryType` (R-h's `{ type, name }` is that pair);
|
|
1576
|
+
* case and surrounding space ignored. `key` matches an entry whose trigger keys include it.
|
|
1577
|
+
* โ Not an entry's `matchMode` (how its keys are matched in retrieval).
|
|
1578
|
+
* @experimental
|
|
1579
|
+
*/
|
|
1580
|
+
export type LoreMatch = {
|
|
1581
|
+
readonly entryId: number;
|
|
1582
|
+
} | {
|
|
1583
|
+
readonly name: string;
|
|
1584
|
+
} | {
|
|
1585
|
+
readonly key: string;
|
|
1586
|
+
};
|
|
1065
1587
|
/**
|
|
1066
1588
|
* One lore link a spec asks for โ an element of
|
|
1067
1589
|
* `core:outlet/create-lore-entry@1`'s `links` (2026-09-29).
|
|
@@ -1133,8 +1655,102 @@ export declare const graphProposal: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
1133
1655
|
proposalId: string;
|
|
1134
1656
|
}, {
|
|
1135
1657
|
proposal: string;
|
|
1658
|
+
/**
|
|
1659
|
+
* ๐ง The messages this write was written from. Pass it when the write is a
|
|
1660
|
+
* summary of the story; leave it off when it is a change in it (pass 6). Present, the write is committed: the
|
|
1661
|
+
* session's settle line moves to the newest of them.
|
|
1662
|
+
*/
|
|
1663
|
+
sources: string;
|
|
1136
1664
|
}, "core:outlet/graph-proposal@1"> & {
|
|
1137
1665
|
kind: 'outlet';
|
|
1138
1666
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
1139
1667
|
}>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Make a character: write one character card into the acting person's library.
|
|
1670
|
+
*
|
|
1671
|
+
* Takes `card` โ a V3 card `{ spec: 'chara_card_v3', data }`, its `data`, or a
|
|
1672
|
+
* plain `{ name, description, personality?, scenario?, first_mes?,
|
|
1673
|
+
* mes_example?, creator_notes?, tags? }`, exactly what the app's card reader
|
|
1674
|
+
* takes. Writes one character row (or, under the person's library write mode,
|
|
1675
|
+
* a proposal for it); `characterId` is the new row's id, or absent while the
|
|
1676
|
+
* write waits.
|
|
1677
|
+
*
|
|
1678
|
+
* โ The app, not the pipeline, judges the write: it finds the person acting
|
|
1679
|
+
* for the run, and their **library write mode** decides whether the card lands
|
|
1680
|
+
* now (Full), waits for them to accept it in the session (Review, the
|
|
1681
|
+
* default), or is refused (Off). A genre must also declare
|
|
1682
|
+
* `writes.library.characters`, or the host refuses the write.
|
|
1683
|
+
* @internal
|
|
1684
|
+
*/
|
|
1685
|
+
export declare const createCharacter: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1686
|
+
main: string;
|
|
1687
|
+
characterId: string;
|
|
1688
|
+
}, {
|
|
1689
|
+
card: string;
|
|
1690
|
+
}, "core:outlet/create-character@1"> & {
|
|
1691
|
+
kind: 'outlet';
|
|
1692
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
1693
|
+
}>;
|
|
1694
|
+
/**
|
|
1695
|
+
* Change a character: edit the text fields of a character the acting person
|
|
1696
|
+
* may write to.
|
|
1697
|
+
*
|
|
1698
|
+
* Takes `characterId` and `changes` โ an object of the card's text fields
|
|
1699
|
+
* (name, description, personality, scenario, first_mes, mes_example). Writes
|
|
1700
|
+
* those fields on that character, and nothing else; the fields it replaced are
|
|
1701
|
+
* kept so Back can restore them. The app judges the person (write rights on
|
|
1702
|
+
* the character) and their library write mode (Full, Review or Off); a genre
|
|
1703
|
+
* must declare `writes.library.characters`.
|
|
1704
|
+
* @internal
|
|
1705
|
+
*/
|
|
1706
|
+
export declare const updateCharacter: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1707
|
+
main: string;
|
|
1708
|
+
characterId: string;
|
|
1709
|
+
}, {
|
|
1710
|
+
characterId: string;
|
|
1711
|
+
changes: string;
|
|
1712
|
+
}, "core:outlet/update-character@1"> & {
|
|
1713
|
+
kind: 'outlet';
|
|
1714
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
1715
|
+
}>;
|
|
1716
|
+
/**
|
|
1717
|
+
* Make a lorebook: write one lorebook into the acting person's library.
|
|
1718
|
+
*
|
|
1719
|
+
* Takes `lorebook` โ a lorebook document as Lorebooks โบ Import reads it (a
|
|
1720
|
+
* SillyTavern world-info JSON is the safe shape: `{ name, description?,
|
|
1721
|
+
* entries }`). Writes a lorebook and its entries (or, under the person's
|
|
1722
|
+
* library write mode, a proposal for them); `lorebookId` is the new book's id.
|
|
1723
|
+
* The app judges the person and their library write mode (Full, Review or
|
|
1724
|
+
* Off); a genre must declare `writes.library.lorebooks`.
|
|
1725
|
+
* @internal
|
|
1726
|
+
*/
|
|
1727
|
+
export declare const createLorebook: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1728
|
+
main: string;
|
|
1729
|
+
lorebookId: string;
|
|
1730
|
+
}, {
|
|
1731
|
+
lorebook: string;
|
|
1732
|
+
}, "core:outlet/create-lorebook@1"> & {
|
|
1733
|
+
kind: 'outlet';
|
|
1734
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
1735
|
+
}>;
|
|
1736
|
+
/**
|
|
1737
|
+
* Read a lorebook into a session: attach an existing lorebook to a session.
|
|
1738
|
+
*
|
|
1739
|
+
* Takes `lorebookId` and, optionally, `sessionId` (absent: the run's own
|
|
1740
|
+
* session). Writes the session's lorebook; what it replaced is kept so Back
|
|
1741
|
+
* can restore it. The app judges the person (read rights on the book and write
|
|
1742
|
+
* rights on the session) and their library write mode (Full, Review or Off).
|
|
1743
|
+
* A genre must declare `writes.library.lorebooks`, and
|
|
1744
|
+
* `writes.library.sessions` to name a session other than the run's.
|
|
1745
|
+
* @internal
|
|
1746
|
+
*/
|
|
1747
|
+
export declare const attachLorebook: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1748
|
+
main: string;
|
|
1749
|
+
}, {
|
|
1750
|
+
lorebookId: string;
|
|
1751
|
+
sessionId: string;
|
|
1752
|
+
}, "core:outlet/attach-lorebook@1"> & {
|
|
1753
|
+
kind: 'outlet';
|
|
1754
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
1755
|
+
}>;
|
|
1140
1756
|
//# sourceMappingURL=outlets.d.ts.map
|