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

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
@@ -659,7 +659,8 @@ export declare const generateJson: import("@serene-pub/sdk").Pinned<import("@ser
659
659
  * that share a voice and an inflection, renders each group through the line
660
660
  * `template`, and makes one call per group — `speaker` cues in the speaker's
661
661
  * voice, `narrator` cues in the session's narrator voice, `silent` cues never
662
- * sent — joining the audio with a fixed `gapMs` gap. Publishes the audio, the
662
+ * sent — one file per group, `gapMs` of silence baked into the end of each but
663
+ * the last. Publishes the files, the
663
664
  * `cueMap` (where each cue sits in it), `spokenAs` (voice, model, applied,
664
665
  * ignored) and `meta`, the three assembled as the `SpokenMeta` record
665
666
  * `core:outlet/attach-audio@1` keeps on the line. Deterministic: the same line,
@@ -671,8 +672,17 @@ export declare const generateJson: import("@serene-pub/sdk").Pinned<import("@ser
671
672
  * @experimental
672
673
  */
673
674
  export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
675
+ /** The first of `media` — wire `media` to keep every file. */
674
676
  main: string;
677
+ /** The first of `media` — wire `media` to keep every file. */
675
678
  audio: string;
679
+ /**
680
+ * 🚧 Every file of the line, in play order: one per voice/inflection
681
+ * group, the group's pieces joined inside it, `gapMs` of silence at
682
+ * the end of each but the last (WAV); a group whose pieces cannot be
683
+ * joined is one file per piece.
684
+ */
685
+ media: string;
676
686
  cueMap: string;
677
687
  spokenAs: string;
678
688
  /** 🚧 `SpokenMeta` — the record attach-audio keeps on the line. */
@@ -1315,6 +1325,10 @@ export declare const pickSprite: import("@serene-pub/sdk").Pinned<import("@seren
1315
1325
  /**
1316
1326
  * What the speaker could show, and how the set was decided
1317
1327
  * (`decidedBy`, `missing`) — for the receipt, never for the line.
1328
+ * 🚧 `castMemberId` names the speaker; the card the art comes
1329
+ * from cascades (the member's own sets per its configuration,
1330
+ * else the card active on the timeline), ⏳ `characterId`
1331
+ * (removed in S5) null when the member's own sets draw.
1318
1332
  */
1319
1333
  choices: string;
1320
1334
  }, {
@@ -1344,7 +1358,9 @@ export declare const pickSprite: import("@serene-pub/sdk").Pinned<import("@seren
1344
1358
  * The sprite set to choose within, when the spec knows it.
1345
1359
  * Absent — every core spec — the set is decided from the
1346
1360
  * 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
1361
+ * member's set, then the card's default set — the card being
1362
+ * the cascade's (the member's own sets per its configuration,
1363
+ * else the card active on the timeline). A name the card
1348
1364
  * has no set by falls to the default set and says so on
1349
1365
  * `choices`, never silently.
1350
1366
  */
package/dist/oracles.js CHANGED
@@ -857,7 +857,8 @@ export const generateJson = pin(describeOracleDefinition({
857
857
  * that share a voice and an inflection, renders each group through the line
858
858
  * `template`, and makes one call per group — `speaker` cues in the speaker's
859
859
  * voice, `narrator` cues in the session's narrator voice, `silent` cues never
860
- * sent — joining the audio with a fixed `gapMs` gap. Publishes the audio, the
860
+ * sent — one file per group, `gapMs` of silence baked into the end of each but
861
+ * the last. Publishes the files, the
861
862
  * `cueMap` (where each cue sits in it), `spokenAs` (voice, model, applied,
862
863
  * ignored) and `meta`, the three assembled as the `SpokenMeta` record
863
864
  * `core:outlet/attach-audio@1` keeps on the line. Deterministic: the same line,
@@ -962,8 +963,17 @@ export const speak = pin(describeOracleDefinition({
962
963
  text: S.text,
963
964
  },
964
965
  out: {
966
+ /** The first of `media` — wire `media` to keep every file. */
965
967
  main: S.audio,
968
+ /** The first of `media` — wire `media` to keep every file. */
966
969
  audio: S.audio,
970
+ /**
971
+ * 🚧 Every file of the line, in play order: one per voice/inflection
972
+ * group, the group's pieces joined inside it, `gapMs` of silence at
973
+ * the end of each but the last (WAV); a group whose pieces cannot be
974
+ * joined is one file per piece.
975
+ */
976
+ media: S.mediaList,
967
977
  cueMap: S.cueMap,
968
978
  spokenAs: S.spokenAs,
969
979
  /** 🚧 `SpokenMeta` — the record attach-audio keeps on the line. */
@@ -1468,7 +1478,9 @@ export const pickSprite = pin(describeOracleDefinition({
1468
1478
  * The sprite set to choose within, when the spec knows it.
1469
1479
  * Absent — every core spec — the set is decided from the
1470
1480
  * 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
1481
+ * member's set, then the card's default set — the card being
1482
+ * the cascade's (the member's own sets per its configuration,
1483
+ * else the card active on the timeline). A name the card
1472
1484
  * has no set by falls to the default set and says so on
1473
1485
  * `choices`, never silently.
1474
1486
  */
@@ -1481,6 +1493,10 @@ export const pickSprite = pin(describeOracleDefinition({
1481
1493
  /**
1482
1494
  * What the speaker could show, and how the set was decided
1483
1495
  * (`decidedBy`, `missing`) — for the receipt, never for the line.
1496
+ * 🚧 `castMemberId` names the speaker; the card the art comes
1497
+ * from cascades (the member's own sets per its configuration,
1498
+ * else the card active on the timeline), ⏳ `characterId`
1499
+ * (removed in S5) null when the member's own sets draw.
1484
1500
  */
1485
1501
  choices: S.spriteChoices,
1486
1502
  },