@serene-pub/contracts 0.6.0-pr-7 → 0.6.0-pr-8

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 CHANGED
@@ -666,18 +666,20 @@ export declare const summarizeRequest: import("@serene-pub/sdk").Pinned<import("
666
666
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
667
667
  }>;
668
668
  /**
669
- * 🚧 A person pressed an action on a **card** — the Characters view, not a
670
- * session: *Fill empty sprites* on the
671
- * Sprites tab, and *Generate portrait* on the Gallery tab (`count`, widened
672
- * in place 2026-10-12).
669
+ * 🚧 A person pressed an action on a **card** or a **cast member** — the
670
+ * Characters view or the member page, not a session: *Fill empty sprites* on
671
+ * the Sprites tab, and *Generate portrait* on the Gallery tab (`count`,
672
+ * widened in place 2026-10-12).
673
673
  *
674
674
  * ## No session
675
675
  *
676
676
  * A card action runs with no session in scope: nothing here is a session's,
677
677
  * no live row is filled, no session event is written. The host checks the
678
- * person may act on the card (its owner, or an admin) before the run starts,
679
- * and resolves the card ONCE, here — its likeness as text and as the
680
- * reference image — so no node re-reads the character for a setting.
678
+ * person may act on it before the run starts (a card: its owner, or an
679
+ * admin; a cast member: whoever may edit the member's lorebook), and
680
+ * resolves its likeness ONCE, here — as text and as the reference image (a
681
+ * member's from the member as the story reads it) — so no node re-reads the
682
+ * character for a setting. `main` is `{ characterId, castMemberId, fields }`.
681
683
  *
682
684
  * ## The form's answers
683
685
  *
@@ -692,8 +694,14 @@ export declare const summarizeRequest: import("@serene-pub/sdk").Pinned<import("
692
694
  */
693
695
  export declare const cardAction: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
694
696
  main: string;
695
- /** The card the action was pressed on. */
697
+ /** The card the action was pressed on; null when it was pressed on a cast member. */
696
698
  characterId: string;
699
+ /**
700
+ * 🚧 The cast member the action was pressed on (host-filled); then
701
+ * `characterId` is null and the action's writes go to the member's
702
+ * own sprite sets / gallery.
703
+ */
704
+ castMemberId: string;
697
705
  /** The card's likeness prompt — its look as a tag line; empty when unset. */
698
706
  likeness: string;
699
707
  /** The card's likeness negative; empty when unset. */
package/dist/inlets.js CHANGED
@@ -897,18 +897,20 @@ export const summarizeRequest = pin(describeInletDefinition({
897
897
  }));
898
898
  // ── A card's own action (image generation I5, 2026-10-12) ──────────────────
899
899
  /**
900
- * 🚧 A person pressed an action on a **card** — the Characters view, not a
901
- * session: *Fill empty sprites* on the
902
- * Sprites tab, and *Generate portrait* on the Gallery tab (`count`, widened
903
- * in place 2026-10-12).
900
+ * 🚧 A person pressed an action on a **card** or a **cast member** — the
901
+ * Characters view or the member page, not a session: *Fill empty sprites* on
902
+ * the Sprites tab, and *Generate portrait* on the Gallery tab (`count`,
903
+ * widened in place 2026-10-12).
904
904
  *
905
905
  * ## No session
906
906
  *
907
907
  * A card action runs with no session in scope: nothing here is a session's,
908
908
  * no live row is filled, no session event is written. The host checks the
909
- * person may act on the card (its owner, or an admin) before the run starts,
910
- * and resolves the card ONCE, here — its likeness as text and as the
911
- * reference image — so no node re-reads the character for a setting.
909
+ * person may act on it before the run starts (a card: its owner, or an
910
+ * admin; a cast member: whoever may edit the member's lorebook), and
911
+ * resolves its likeness ONCE, here — as text and as the reference image (a
912
+ * member's from the member as the story reads it) — so no node re-reads the
913
+ * character for a setting. `main` is `{ characterId, castMemberId, fields }`.
912
914
  *
913
915
  * ## The form's answers
914
916
  *
@@ -929,12 +931,19 @@ export const cardAction = pin(describeInletDefinition({
929
931
  */
930
932
  entities: {
931
933
  characterId: 'subject',
934
+ castMemberId: 'cast-member',
932
935
  },
933
936
  ports: {
934
937
  out: {
935
938
  main: S.json,
936
- /** The card the action was pressed on. */
939
+ /** The card the action was pressed on; null when it was pressed on a cast member. */
937
940
  characterId: S.rowIds,
941
+ /**
942
+ * 🚧 The cast member the action was pressed on (host-filled); then
943
+ * `characterId` is null and the action's writes go to the member's
944
+ * own sprite sets / gallery.
945
+ */
946
+ castMemberId: S.rowIds,
938
947
  /** The card's likeness prompt — its look as a tag line; empty when unset. */
939
948
  likeness: S.text,
940
949
  /** The card's likeness negative; empty when unset. */
package/dist/oracles.d.ts CHANGED
@@ -1315,6 +1315,10 @@ export declare const pickSprite: import("@serene-pub/sdk").Pinned<import("@seren
1315
1315
  /**
1316
1316
  * What the speaker could show, and how the set was decided
1317
1317
  * (`decidedBy`, `missing`) — for the receipt, never for the line.
1318
+ * 🚧 `castMemberId` names the speaker; the card the art comes
1319
+ * from cascades (the member's own sets per its configuration,
1320
+ * else the card active on the timeline), ⏳ `characterId`
1321
+ * (removed in S5) null when the member's own sets draw.
1318
1322
  */
1319
1323
  choices: string;
1320
1324
  }, {
@@ -1344,7 +1348,9 @@ export declare const pickSprite: import("@serene-pub/sdk").Pinned<import("@seren
1344
1348
  * The sprite set to choose within, when the spec knows it.
1345
1349
  * Absent — every core spec — the set is decided from the
1346
1350
  * speaker, in one order: the session's override, then the cast
1347
- * member's set, then the card's default set. A name the card
1351
+ * member's set, then the card's default set — the card being
1352
+ * the cascade's (the member's own sets per its configuration,
1353
+ * else the card active on the timeline). A name the card
1348
1354
  * has no set by falls to the default set and says so on
1349
1355
  * `choices`, never silently.
1350
1356
  */
package/dist/oracles.js CHANGED
@@ -1468,7 +1468,9 @@ export const pickSprite = pin(describeOracleDefinition({
1468
1468
  * The sprite set to choose within, when the spec knows it.
1469
1469
  * Absent — every core spec — the set is decided from the
1470
1470
  * speaker, in one order: the session's override, then the cast
1471
- * member's set, then the card's default set. A name the card
1471
+ * member's set, then the card's default set — the card being
1472
+ * the cascade's (the member's own sets per its configuration,
1473
+ * else the card active on the timeline). A name the card
1472
1474
  * has no set by falls to the default set and says so on
1473
1475
  * `choices`, never silently.
1474
1476
  */
@@ -1481,6 +1483,10 @@ export const pickSprite = pin(describeOracleDefinition({
1481
1483
  /**
1482
1484
  * What the speaker could show, and how the set was decided
1483
1485
  * (`decidedBy`, `missing`) — for the receipt, never for the line.
1486
+ * 🚧 `castMemberId` names the speaker; the card the art comes
1487
+ * from cascades (the member's own sets per its configuration,
1488
+ * else the card active on the timeline), ⏳ `characterId`
1489
+ * (removed in S5) null when the member's own sets draw.
1484
1490
  */
1485
1491
  choices: S.spriteChoices,
1486
1492
  },
package/dist/outlets.d.ts CHANGED
@@ -540,6 +540,43 @@ export declare const setSeatName: import("@serene-pub/sdk").Pinned<import("@sere
540
540
  kind: 'outlet';
541
541
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
542
542
  }>;
543
+ /**
544
+ * 🚧 **Bench a seat, or bring it back** (owner ruling 2026-11-10: a seat's
545
+ * status is managed by the genre, never by core on its own). Benched, a seat
546
+ * stays in the session and leaves the turns; brought back, it takes its turns
547
+ * again.
548
+ *
549
+ * Opt-in: a genre declares `writes.seats: true` (absent is off). Without it
550
+ * the host refuses, in words.
551
+ *
552
+ * Tied to the turn: the bench is recorded against the run's turn message.
553
+ * Back and a retake put the seat back as it was, Forward does it again, and a
554
+ * person's later bench or drag wins (the undo only puts back a seat still as
555
+ * this port left it). With no turn message (a person's action) the write is
556
+ * not tied to a turn.
557
+ *
558
+ * A seat already in the asked state is a no-op. Envoys and removed seats are
559
+ * refused. `seat` / `seats` give the seat's reference, as `set-seat-name@1`
560
+ * does.
561
+ *
562
+ * `seat` is `seated-member:<id>`, `player-seat:<id>` or `character:<id>`, and
563
+ * `benched` is `true` to bench or `false` to bring back; both are JSON, as
564
+ * `setSeatName.retire` and `setComposerState.open` are. `@1` evolves in place.
565
+ * @experimental
566
+ */
567
+ export declare const setSeatBench: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
568
+ main: string;
569
+ seat: string;
570
+ seats: string;
571
+ }, {
572
+ /** The seat: `seated-member:<id>`, `player-seat:<id>` or `character:<id>`. */
573
+ seat: string;
574
+ /** `true` benches the seat, `false` brings it back. */
575
+ benched: string;
576
+ }, "core:outlet/set-seat-bench@1"> & {
577
+ kind: 'outlet';
578
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
579
+ }>;
543
580
  /**
544
581
  * 🚧 **Open or close the composer** on a channel lane (owner ruling
545
582
  * 2026-10-15): the genre's switch for whether a person may write there. The
@@ -614,6 +651,8 @@ export interface ProposedSceneCue {
614
651
  * no longer hold or `at` is not one of its lines. Never held at the review gate: a cue's review
615
652
  * is the chip.
616
653
  *
654
+ * 🚧 An optional `trigger` in-port names the boundary trigger the scene cue is for (absent or blank: `judged`); the scenes routine passes the one that fired at `at`.
655
+ *
617
656
  * ⚠ Not a scene write (a person's *Start scene here*) and not a state proposal.
618
657
  * @experimental
619
658
  * @ruling R-i (2026-10-24)
@@ -633,6 +672,12 @@ export declare const proposeSceneCue: import("@serene-pub/sdk").Pinned<import("@
633
672
  channel: string;
634
673
  /** Why, in the model's few words — the chip's reason ("the party left the inn"). */
635
674
  reason: string;
675
+ /**
676
+ * 🚧 The boundary trigger the scene cue is for. Absent or blank: `judged` (the judged scene check's, as before).
677
+ * The scenes routine (`core:spec/scene-boundaries`) passes the boundary trigger that fired at `at`; a scene cue already at
678
+ * that line for that boundary trigger (a time action's marker) is the one offered or placed.
679
+ */
680
+ trigger: string;
636
681
  }, "core:outlet/propose-scene-cue@1"> & {
637
682
  kind: 'outlet';
638
683
  slots?: {
@@ -654,6 +699,64 @@ export declare const proposeSceneCue: import("@serene-pub/sdk").Pinned<import("@
654
699
  };
655
700
  } | undefined;
656
701
  }>;
702
+ /**
703
+ * 🚧 **Summarize a finished scene** — the scene summaries routine's outlet
704
+ * (every name here is provisional): starts the session genre's **own** scene
705
+ * summarizer (its summarize-scene pipeline, never a second prompt) for one
706
+ * finished scene, in the background, and returns at once: the summary's model
707
+ * calls are never awaited by the routine's run.
708
+ *
709
+ * Under the routine's **Full** the result is saved by itself (the summary, and
710
+ * the model's name only while the scene still has its automatic name; the known
711
+ * cast stored at the scene's close is left as it is) and marked as saved by the
712
+ * routine; a summary saved this way never settles the story. Under **Review**
713
+ * it waits for a person in the review window, as a pressed *Summarize* does.
714
+ * Its model calls queue as a routine's, after people's replies. The host half
715
+ * is the app's.
716
+ *
717
+ * ⚠ Not `scenes:process` (a person's press) and not *Compile to Entry*.
718
+ * @experimental
719
+ */
720
+ export declare const summarizeFinishedScene: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
721
+ main: string;
722
+ }, {
723
+ /** The scene to summarize: a scene id, as `core:query/scene-summary-due@1` names it. Absent or null: nothing is due, and nothing starts. */
724
+ scene: string;
725
+ /** The routine inlet's `routine` port (the firing): its `mode` decides what the summary becomes. */
726
+ routine: string;
727
+ }, "core:outlet/summarize-finished-scene@1"> & {
728
+ kind: 'outlet';
729
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
730
+ }>;
731
+ /**
732
+ * 🚧 **Note it in the scene** (★S4, owner 2026-11-10): adds a note to a scene — a fact that
733
+ * isn't a story line (a death, a treaty, a clock jump). Notes reach the scene's summary and
734
+ * Compile. Never writes history or messages. Refused when the genre writes no scenes, when the
735
+ * scene is another session's, or when no scene is open.
736
+ *
737
+ * Scenes first: a pipeline puts story events into scenes — this outlet, or a story line through
738
+ * `create-message@1` — and a person's Compile files a day's scenes under that day's one history
739
+ * entry. A history write through `create-lore-entry@1` is the second choice.
740
+ *
741
+ * `text` is required. `scene` names a scene by id; absent, the note goes to the run's lane's open
742
+ * scene. `sources` (optional) are the messages the note was written from, the shape the lore
743
+ * writes take. "The genre writes no scenes" is `writes.scenes: false`. The host half is the app's.
744
+ * @experimental
745
+ * @ruling ★S4 (2026-11-10)
746
+ */
747
+ export declare const noteScene: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
748
+ main: string;
749
+ }, {
750
+ /** The note, a sentence or two. Required. */
751
+ text: string;
752
+ /** A scene id. Optional; absent, the run's lane's open scene. `json`, as `propose-scene-cue@1`'s `at` is. */
753
+ scene: string;
754
+ /** 🚧 The messages the note was written from — as the lore writes take them. Optional. */
755
+ sources: string;
756
+ }, "core:outlet/note-scene@1"> & {
757
+ kind: 'outlet';
758
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
759
+ }>;
657
760
  /**
658
761
  * 🚧 **Configure a stat** for one owner in this session (owner ruling
659
762
  * 2026-10-15): the pipeline door to an owner's **stat configuration** — the
@@ -986,6 +1089,12 @@ export declare const showSprite: import("@serene-pub/sdk").Pinned<import("@seren
986
1089
  * it carries the card's visibility and stays out of the card's gallery like
987
1090
  * every sprite. Refused unless the run's person owns the card or is an admin.
988
1091
  *
1092
+ * On a run pressed on a **cast member** the host files the pictures as the
1093
+ * member's own sprites (the files become the member's lorebook owner's, the
1094
+ * lorebook as provenance) and ignores nothing silently: a wired `characterId`
1095
+ * must be empty on such a run. Refused unless the run's person may edit the
1096
+ * member's lorebook. The card rule above stays as written.
1097
+ *
989
1098
  * Causes `core:event/sprites-attached@1` when at least one row was written.
990
1099
  * About a card, not a session: it writes no session row.
991
1100
  * @experimental
@@ -1025,6 +1134,12 @@ export declare const attachSprite: import("@serene-pub/sdk").Pinned<import("@ser
1025
1134
  * key it was drawn for (`null` for surplus the host kept unkeyed). Refused
1026
1135
  * unless the run's person owns the card or is an admin.
1027
1136
  *
1137
+ * On a run pressed on a **cast member** the host files the pictures as the
1138
+ * member's own gallery pictures (the files become the member's lorebook
1139
+ * owner's, the lorebook as provenance) and ignores nothing silently: a wired
1140
+ * `characterId` must be empty on such a run. Refused unless the run's person
1141
+ * may edit the member's lorebook. The card rule above stays as written.
1142
+ *
1028
1143
  * Causes `core:event/media-offered@1` when at least one picture was placed.
1029
1144
  * About a card, not a session: it writes no session row.
1030
1145
  * @experimental
@@ -1121,7 +1236,7 @@ export declare const advanceStoryClock: import("@serene-pub/sdk").Pinned<import(
1121
1236
  * 🚧 **Why the clock moves** (live scenes §15 G4, 2026-10-13),
1122
1237
  * a literal: `'action'` — a person's press (*Time passes…*);
1123
1238
  * `'keeper'` — the state-keeper's move under Trust the
1124
- * narrator; `'tick'` — a reply's fixed tick. An action's and
1239
+ * narrator; `'tick'` — a fixed step, a round's. An action's and
1125
1240
  * the keeper's move are **time actions** the boundary watcher
1126
1241
  * may begin a new scene at; a tick never is. Unwired reads as
1127
1242
  * `'action'`.
@@ -1291,14 +1406,12 @@ export declare const attachAudio: import("@serene-pub/sdk").Pinned<import("@sere
1291
1406
  * written that *which kind of entry comes from the pipeline that ran*. It did
1292
1407
  * not: it wrote world lore whatever ran, because nothing on this declaration
1293
1408
  * could say otherwise. `entryType` is that sentence made true — a declared
1294
- * entry type id (`core:entry/world-lore`, `core:entry/history`,
1295
- * `core:entry/location`), bare, the way `core:query/lorebook-entries@1` spells
1409
+ * entry type id (`core:entry/world-lore`, `core:entry/location`), bare, the way `core:query/lorebook-entries@1` spells
1296
1410
  * them; the version is the row's own column.
1297
1411
  *
1298
1412
  * A **param** and not an in-port, because the kind of thing a pipeline writes
1299
- * is a fact about the pipeline rather than about the turn — a summarizer
1300
- * writes history every time it runs, a room-builder writes locations every
1301
- * time — and a param is what a preset can set per session without the spec
1413
+ * is a fact about the pipeline rather than about the turn — a room-builder
1414
+ * writes locations every time it runs — and a param is what a preset can set per session without the spec
1302
1415
  * being rewired. An unknown id is refused at the commit with a sentence
1303
1416
  * naming the declared types, never coerced to world lore: a typo that silently
1304
1417
  * files rooms as world lore is the defect this replaces.
@@ -1306,6 +1419,14 @@ export declare const attachAudio: import("@serene-pub/sdk").Pinned<import("@sere
1306
1419
  * Default world lore, the agnostic shape, so every spec written before this
1307
1420
  * keeps doing exactly what it did.
1308
1421
  *
1422
+ * ## History is compiled, not written (2026-11-10)
1423
+ *
1424
+ * History is compiled, not written. Put events into scenes (`note-scene@1`, or a story line); a person's Compile files them under the day's one entry. A history write here is the second choice: it files onto its day's entry (the session's story day when no date is given), appending a paragraph. The packager warns `W_WRITES_HISTORY` on such a write; a `summarize-request@1` spec is exempt, its save being previewed.
1425
+ *
1426
+ * ## Where the write lands
1427
+ *
1428
+ * For a session whose scenes end by themselves (it runs the *Find where scenes begin* routine, not switched Off, and its scene mode is Automatic) a new entry, a room or a history day is written to the session's own book **whatever the lorebook's write mode (Full too)**, and the result carries `route: "own-book"` and the own book's `lorebookId`. A history write there files onto the day's one entry of the own book, merged onto the lorebook's day at Apply. Any other session writes as before: to the lorebook under Full, to its own book under Review changes, Off or a book someone else owns.
1429
+ *
1309
1430
  * ## `links`, or a second write
1310
1431
  *
1311
1432
  * Linking a new entry takes one of two shapes, and both exist on purpose.
@@ -1363,7 +1484,7 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
1363
1484
  /**
1364
1485
  * 🚧 The messages this write was written from. Pass it when the write is a
1365
1486
  * 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.
1487
+ * session's settle line moves to the newest of them (not for a session whose scenes end by themselves: its write waits in the own book and Apply settles).
1367
1488
  */
1368
1489
  sources: string;
1369
1490
  /** 🚧 A `LoreMatch` — how to find the entry this would otherwise create. */
@@ -1386,7 +1507,7 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
1386
1507
  readonly label: {
1387
1508
  readonly en: "Kind of entry";
1388
1509
  };
1389
- readonly description: "Which kind of lorebook entry this pipeline writes — world lore, history, a location. Leave it as world lore for anything that is simply about the world.";
1510
+ readonly description: "Which kind of lorebook entry this pipeline writes — world lore or a location. Leave it as world lore for anything that is simply about the world.";
1390
1511
  };
1391
1512
  };
1392
1513
  };
@@ -1412,8 +1533,16 @@ export declare const createLoreEntry: import("@serene-pub/sdk").Pinned<import("@
1412
1533
  *
1413
1534
  * How the change lands is the host's: on the session's line, the way the
1414
1535
  * 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
1536
+ * amends). A change to an entry of the lorebook the session reads is kept in the
1537
+ * session's own book as a held change whatever the lorebook's write mode (**Full**
1538
+ * too), and reaches the lorebook only when it is applied; a change to an entry of the own
1539
+ * book is written there, and the result of a session whose scenes end by themselves
1540
+ * carries `route: "own-book"` and the own book's `lorebookId`. `entry` names an entry the session reads, in the lorebook or
1541
+ * in its own book.
1542
+ * ⚠ It causes no event yet (🚧): `lore-entry-created` means a new
1416
1543
  * row, and a subscriber that needs edits waits for one of its own.
1544
+ *
1545
+ * 🚧 A history entry's re-date (its `year`, `month` or `day` fields) is checked as a person's re-date is: refused, with a sentence, onto a date its line already has a history entry for, or onto a day the line shares with its parent (change that day as an amendment instead).
1417
1546
  * @internal
1418
1547
  */
1419
1548
  export declare const updateLoreEntry: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
@@ -1431,7 +1560,7 @@ export declare const updateLoreEntry: import("@serene-pub/sdk").Pinned<import("@
1431
1560
  /**
1432
1561
  * 🚧 The messages this write was written from. Pass it when the write is a
1433
1562
  * 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.
1563
+ * session's settle line moves to the newest of them (not for a session whose scenes end by themselves: its write waits in the own book and Apply settles).
1435
1564
  */
1436
1565
  sources: string;
1437
1566
  }, "core:outlet/update-lore-entry@1"> & {
@@ -1462,10 +1591,22 @@ export declare const updateLoreEntry: import("@serene-pub/sdk").Pinned<import("@
1462
1591
  * entries answer to — the second never picks one, because picking would link
1463
1592
  * the wrong room silently and a duplicate name is the author's to resolve.
1464
1593
  *
1465
- * One lorebook, both ends. An edge whose ends live in two books belongs to
1466
- * neither and the row carries one `lorebook_id`, so a cross-book link is
1467
- * refused rather than repaired — the same rule the socket handlers hold, held
1468
- * again here because a pipeline does not come through them.
1594
+ * One lorebook, both ends — except on the own-book route. An edge whose ends
1595
+ * live in two books belongs to neither and the row carries one `lorebook_id`, so
1596
+ * where the write lands in the lorebook the session reads (**Full** for a session
1597
+ * whose scenes do not end by themselves, or a session whose lorebook is its own book alone) a cross-book link is refused rather than
1598
+ * repaired — the same rule the socket handlers hold, held again here because a
1599
+ * pipeline does not come through them. A session that reads a lorebook it may not
1600
+ * write (**Review changes**, **Off**, or a book someone else owns), or whose scenes
1601
+ * end by themselves (the result then carries `route: "own-book"` and the own
1602
+ * book's `lorebookId`, whatever the write mode), keeps the row in
1603
+ * its own book, and an end may be an entry of the own book or an entry of the
1604
+ * lorebook as the session reads it (entries only, never a cast member): an id is
1605
+ * found in the own book, else in the lorebook; a name is looked up in the own book
1606
+ * first, and only when none answers there in the lorebook (two answers refuse
1607
+ * within one book, never across). A link either book already holds is not written
1608
+ * again (`written: false`); an id in neither book is refused. The row is the
1609
+ * session's own: it reaches no other session until applied.
1469
1610
  *
1470
1611
  * ## After a create
1471
1612
  *
@@ -1537,7 +1678,7 @@ export declare const linkLoreEntries: import("@serene-pub/sdk").Pinned<import("@
1537
1678
  /**
1538
1679
  * 🚧 The messages this write was written from. Pass it when the write is a
1539
1680
  * 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.
1681
+ * session's settle line moves to the newest of them (not for a session whose scenes end by themselves: its write waits in the own book and Apply settles).
1541
1682
  */
1542
1683
  sources: string;
1543
1684
  }, "core:outlet/link-lore-entries@1"> & {
@@ -1574,6 +1715,11 @@ export declare const linkLoreEntries: import("@serene-pub/sdk").Pinned<import("@
1574
1715
  * more → REFUSED, the refusal naming every candidate (`'<name>' (entry <id>)`), retry with `entryId`.
1575
1716
  * `name` and `key` match within this write's own `entryType` (R-h's `{ type, name }` is that pair);
1576
1717
  * case and surrounding space ignored. `key` matches an entry whose trigger keys include it.
1718
+ * On the own-book route (a session that reads a lorebook it may not write, or whose scenes end
1719
+ * by themselves) the own book is
1720
+ * looked in first, and only with no hit there the lorebook's entries as the session reads
1721
+ * them; a hit there is a held change to that entry, not a duplicate. Two or more refuse
1722
+ * within one book, never across the two.
1577
1723
  * ⚠ Not an entry's `matchMode` (how its keys are matched in retrieval).
1578
1724
  * @experimental
1579
1725
  */
@@ -1658,7 +1804,7 @@ export declare const graphProposal: import("@serene-pub/sdk").Pinned<import("@se
1658
1804
  /**
1659
1805
  * 🚧 The messages this write was written from. Pass it when the write is a
1660
1806
  * 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.
1807
+ * session's settle line moves to the newest of them (not for a session whose scenes end by themselves: its write waits in the own book and Apply settles).
1662
1808
  */
1663
1809
  sources: string;
1664
1810
  }, "core:outlet/graph-proposal@1"> & {
@@ -1695,12 +1841,16 @@ export declare const createCharacter: import("@serene-pub/sdk").Pinned<import("@
1695
1841
  * Change a character: edit the text fields of a character the acting person
1696
1842
  * may write to.
1697
1843
  *
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`.
1844
+ * Takes `characterId` and `changes` — an object of character profile names:
1845
+ * `name`, `description`, `personality`, `scenario`, `greetings` (`{ text,
1846
+ * groupOnly? }[]` — the whole list, replacing the card's) and
1847
+ * `exampleDialogues` (`string[]`). The change writes the card's **current
1848
+ * version**, those fields and nothing else; the fields it replaced are kept so
1849
+ * Back can restore them. `first_mes` and `mes_example` are no longer accepted
1850
+ * (owner 2026-11-05: new names now, old removed); any other key is refused.
1851
+ * The app judges the person (write rights on the character) and their library
1852
+ * write mode (Full, Review or Off); a genre must declare
1853
+ * `writes.library.characters`.
1704
1854
  * @internal
1705
1855
  */
1706
1856
  export declare const updateCharacter: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
@@ -1713,6 +1863,44 @@ export declare const updateCharacter: import("@serene-pub/sdk").Pinned<import("@
1713
1863
  kind: 'outlet';
1714
1864
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
1715
1865
  }>;
1866
+ /**
1867
+ * 🚧 Change a cast member of the session — one or more fields of their
1868
+ * character profile.
1869
+ *
1870
+ * `member` is `seated-member:<castMemberId>`, `player-seat:<seatId>` or a cast
1871
+ * member id, as `core:query/cast-member@1` takes it. `changes` is an object of
1872
+ * character profile fields (`CHARACTER_PROFILE_FIELDS`), each a new value in
1873
+ * the field's own shape or `{ follow: true }` (read that field from the
1874
+ * member's card again; refused for a card-less member). Other keys are
1875
+ * refused, never dropped.
1876
+ *
1877
+ * 🚧 `changes` may also carry `nodeState` — one of `CAST_STATE_WORDS` (`active`, `deceased`, `missing`, `departed`; SDK `ties.ts`) — and `nodeVisibility` — `normal`, `legendary` or `hidden` — beside the profile fields: the member's state and visibility on the graph. Checked against those words (another word is refused, never dropped), and dated at the session's story time and tied to the turn like the profile fields.
1878
+ *
1879
+ * How it lands is the host's: one story write — a cast version dated at the
1880
+ * session's story time and tied to the turn, so Back takes it with the turn; a
1881
+ * second change in the same turn and moment updates that version (coalesces).
1882
+ * The genre's `writes.lore` and the session's lore write mode decide where:
1883
+ * the book's line, or under Review / Off the session's own notes (an overlay
1884
+ * of the member).
1885
+ *
1886
+ * A genre must place it: the Dungeon Crawler places it to mark the fallen
1887
+ * deceased (2026-11-10). ⚠ It causes no event yet
1888
+ * (🚧). `castVersionId` is the cast version written.
1889
+ * @experimental
1890
+ */
1891
+ export declare const updateCastMember: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
1892
+ main: string;
1893
+ /** The cast version written. */
1894
+ castVersionId: string;
1895
+ }, {
1896
+ /** The member to change: `seated-member:<id>`, `player-seat:<id>`, or a cast member id. */
1897
+ member: string;
1898
+ /** `{ [profile field]: value | { follow: true } }`, plus `nodeState` / `nodeVisibility` (see above). */
1899
+ changes: string;
1900
+ }, "core:outlet/update-cast-member@1"> & {
1901
+ kind: 'outlet';
1902
+ slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
1903
+ }>;
1716
1904
  /**
1717
1905
  * Make a lorebook: write one lorebook into the acting person's library.
1718
1906
  *
@@ -1733,24 +1921,4 @@ export declare const createLorebook: import("@serene-pub/sdk").Pinned<import("@s
1733
1921
  kind: 'outlet';
1734
1922
  slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
1735
1923
  }>;
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
- }>;
1756
1924
  //# sourceMappingURL=outlets.d.ts.map