@serene-pub/core-catalog 0.6.0-pr-2 → 0.6.0-pr-4

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.
Files changed (243) hide show
  1. package/README.md +21 -1
  2. package/components/{sessions → genres/chat}/authors-note/AuthorsNote.svelte +1 -1
  3. package/components/{sessions → genres/chat}/authors-note/AuthorsNoteWidget.svelte +1 -1
  4. package/components/{sessions → shared}/lore-entries/LoreEntries.svelte +1 -1
  5. package/components/{sessions → shared}/lore-entries/LoreEntriesWidget.svelte +1 -1
  6. package/components/{sessions → shared}/messages/MessageComposer.svelte +1 -1
  7. package/components/{sessions → shared}/messages/Messages.svelte +1 -1
  8. package/components/{sessions → shared}/messages/MessagesWidget.svelte +1 -1
  9. package/components/{sessions → shared}/messages/SessionComposer.svelte +1 -1
  10. package/components/{sessions → shared}/messages/SessionMessage.svelte +1 -1
  11. package/components/{sessions → shared}/messages/conversation.svelte.ts +1 -1
  12. package/components/{sessions → shared}/scene-portraits/ScenePortraits.svelte +1 -1
  13. package/components/{sessions → shared}/scene-portraits/ScenePortraitsWidget.svelte +1 -1
  14. package/components/{sessions → shared}/stats/Stats.svelte +1 -1
  15. package/components/{sessions → shared}/stats/StatsWidget.svelte +1 -1
  16. package/components/{sessions → shared}/world-state/WorldState.svelte +1 -1
  17. package/components/{sessions → shared}/world-state/WorldStateWidget.svelte +1 -1
  18. package/dist/components/authors-note.js +5 -5
  19. package/dist/components/authors-note.source.json +1 -1
  20. package/dist/components/core-ui.json +1 -1
  21. package/dist/components/lore-entries.js +5 -5
  22. package/dist/components/lore-entries.source.json +1 -1
  23. package/dist/components/messages.js +26 -26
  24. package/dist/components/messages.source.json +1 -1
  25. package/dist/components/scene-portraits.js +7 -7
  26. package/dist/components/scene-portraits.source.json +1 -1
  27. package/dist/components/{shared-TCQZXBE3.js → shared-3FGURYVS.js} +2 -2
  28. package/dist/components/{shared-AINANAIA.js → shared-FXYLABGF.js} +6 -6
  29. package/dist/components/{shared-UAQVMZZK.js → shared-U3UU5V7L.js} +3 -3
  30. package/dist/components/stats.js +6 -6
  31. package/dist/components/stats.source.json +1 -1
  32. package/dist/components/world-state.js +6 -6
  33. package/dist/components/world-state.source.json +1 -1
  34. package/dist/{answerForm.d.ts → factories/answerForm.d.ts} +4 -30
  35. package/dist/{answerForm.js → factories/answerForm.js} +4 -37
  36. package/dist/factories/once.d.ts +7 -0
  37. package/dist/factories/once.js +9 -0
  38. package/dist/{turnOrder.d.ts → factories/turnOrder.d.ts} +0 -22
  39. package/dist/{turnOrder.js → factories/turnOrder.js} +4 -104
  40. package/dist/genres/adventure/advanceTime.d.ts +11 -0
  41. package/dist/genres/adventure/advanceTime.js +17 -0
  42. package/dist/genres/adventure/answer.d.ts +23 -0
  43. package/dist/genres/adventure/answer.js +59 -0
  44. package/dist/genres/adventure/answerForm.d.ts +9 -0
  45. package/dist/genres/adventure/answerForm.js +11 -0
  46. package/dist/genres/adventure/ask.d.ts +73 -0
  47. package/dist/genres/adventure/ask.js +157 -0
  48. package/dist/genres/adventure/create.d.ts +36 -0
  49. package/dist/genres/adventure/create.js +62 -0
  50. package/dist/genres/adventure/index.d.ts +43 -0
  51. package/dist/genres/adventure/index.js +43 -0
  52. package/dist/genres/adventure/keeperAction.d.ts +24 -0
  53. package/dist/genres/adventure/keeperAction.js +150 -0
  54. package/dist/genres/adventure/look.d.ts +45 -0
  55. package/dist/genres/adventure/look.js +209 -0
  56. package/dist/{adventure.d.ts → genres/adventure/respond.d.ts} +10 -34
  57. package/dist/{adventure.js → genres/adventure/respond.js} +34 -60
  58. package/dist/genres/adventure/rest.d.ts +10 -0
  59. package/dist/genres/adventure/rest.js +16 -0
  60. package/dist/genres/adventure/turnOrder.d.ts +10 -0
  61. package/dist/genres/adventure/turnOrder.js +27 -0
  62. package/dist/genres/chat/answerForm.d.ts +9 -0
  63. package/dist/genres/chat/answerForm.js +11 -0
  64. package/dist/genres/chat/create.d.ts +7 -0
  65. package/dist/{createChat.js → genres/chat/create.js} +6 -6
  66. package/dist/genres/chat/generateImage.d.ts +7 -0
  67. package/dist/{generateImage.js → genres/chat/generateImage.js} +5 -5
  68. package/dist/genres/chat/index.d.ts +15 -0
  69. package/dist/genres/chat/index.js +15 -0
  70. package/dist/{narrate.d.ts → genres/chat/narrate.d.ts} +3 -3
  71. package/dist/{narrate.js → genres/chat/narrate.js} +34 -12
  72. package/dist/{narrateCharacter.d.ts → genres/chat/narrateCharacter.d.ts} +2 -2
  73. package/dist/{narrateCharacter.js → genres/chat/narrateCharacter.js} +35 -16
  74. package/dist/genres/chat/respond.d.ts +25 -0
  75. package/dist/{respond.js → genres/chat/respond.js} +48 -22
  76. package/dist/genres/chat/turnOrder.d.ts +9 -0
  77. package/dist/genres/chat/turnOrder.js +28 -0
  78. package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.d.ts +1 -1
  79. package/dist/genres/guide/answerForm.d.ts +9 -0
  80. package/dist/genres/guide/answerForm.js +11 -0
  81. package/dist/genres/guide/create.d.ts +24 -0
  82. package/dist/genres/guide/create.js +58 -0
  83. package/dist/genres/guide/index.d.ts +9 -0
  84. package/dist/genres/guide/index.js +9 -0
  85. package/dist/{guide.d.ts → genres/guide/respond.d.ts} +1 -20
  86. package/dist/{guide.js → genres/guide/respond.js} +29 -60
  87. package/dist/genres/guide/turnOrder.d.ts +10 -0
  88. package/dist/genres/guide/turnOrder.js +27 -0
  89. package/dist/genres/index.d.ts +14 -0
  90. package/dist/genres/index.js +41 -0
  91. package/dist/genres/lair/answerForm.d.ts +17 -0
  92. package/dist/genres/lair/answerForm.js +19 -0
  93. package/dist/genres/lair/buildRoom.d.ts +64 -0
  94. package/dist/genres/lair/buildRoom.js +244 -0
  95. package/dist/genres/lair/castellanAction.d.ts +27 -0
  96. package/dist/genres/lair/castellanAction.js +177 -0
  97. package/dist/genres/lair/create.d.ts +28 -0
  98. package/dist/genres/lair/create.js +69 -0
  99. package/dist/genres/lair/fileRoom.d.ts +53 -0
  100. package/dist/genres/lair/fileRoom.js +288 -0
  101. package/dist/genres/lair/index.d.ts +60 -0
  102. package/dist/genres/lair/index.js +60 -0
  103. package/dist/genres/lair/nudge.d.ts +25 -0
  104. package/dist/genres/lair/nudge.js +78 -0
  105. package/dist/{lair.d.ts → genres/lair/respond.d.ts} +15 -28
  106. package/dist/{lair.js → genres/lair/respond.js} +45 -76
  107. package/dist/genres/lair/reveal.d.ts +10 -0
  108. package/dist/genres/lair/reveal.js +18 -0
  109. package/dist/genres/lair/roomAnswer.d.ts +86 -0
  110. package/dist/genres/lair/roomAnswer.js +378 -0
  111. package/dist/genres/lair/trap.d.ts +11 -0
  112. package/dist/genres/lair/trap.js +24 -0
  113. package/dist/genres/lair/turnOrder.d.ts +9 -0
  114. package/dist/genres/lair/turnOrder.js +36 -0
  115. package/dist/genres/lair/whisper.d.ts +35 -0
  116. package/dist/genres/lair/whisper.js +90 -0
  117. package/dist/index.d.ts +47 -29
  118. package/dist/index.js +117 -88
  119. package/dist/{genres.js → registry/genres.js} +4 -4
  120. package/dist/{ui/sessions → registry}/widgets.js +6 -6
  121. package/dist/{presets.js → seed/presets.js} +28 -13
  122. package/dist/{prompts.js → seed/prompts.js} +27 -56
  123. package/dist/{annexField.d.ts → shared/annexField.d.ts} +3 -2
  124. package/dist/{annexField.js → shared/annexField.js} +6 -8
  125. package/dist/shared/builtins/branch.d.ts +8 -0
  126. package/dist/shared/builtins/branch.js +13 -0
  127. package/dist/{builtins.d.ts → shared/builtins/builtIn.d.ts} +16 -21
  128. package/dist/{builtins.js → shared/builtins/builtIn.js} +3 -37
  129. package/dist/shared/builtins/delete.d.ts +8 -0
  130. package/dist/shared/builtins/delete.js +13 -0
  131. package/dist/shared/builtins/edit.d.ts +8 -0
  132. package/dist/shared/builtins/edit.js +13 -0
  133. package/dist/shared/builtins/hide.d.ts +8 -0
  134. package/dist/shared/builtins/hide.js +13 -0
  135. package/dist/shared/builtins/index.d.ts +11 -0
  136. package/dist/shared/builtins/index.js +11 -0
  137. package/dist/shared/builtins/swipe.d.ts +8 -0
  138. package/dist/shared/builtins/swipe.js +17 -0
  139. package/dist/shared/sprites.d.ts +34 -0
  140. package/dist/shared/sprites.js +98 -0
  141. package/dist/shared/summarize/character.d.ts +9 -0
  142. package/dist/shared/summarize/character.js +10 -0
  143. package/dist/shared/summarize/history.d.ts +9 -0
  144. package/dist/shared/summarize/history.js +10 -0
  145. package/dist/shared/summarize/index.d.ts +10 -0
  146. package/dist/shared/summarize/index.js +10 -0
  147. package/dist/shared/summarize/scene.d.ts +38 -0
  148. package/dist/shared/summarize/scene.js +42 -0
  149. package/dist/shared/summarize/summarizeSpec.d.ts +54 -0
  150. package/dist/{summarize.js → shared/summarize/summarizeSpec.js} +8 -53
  151. package/dist/shared/summarize/world.d.ts +8 -0
  152. package/dist/shared/summarize/world.js +9 -0
  153. package/dist/{toolLoop.d.ts → shared/toolLoop.d.ts} +25 -3
  154. package/dist/{toolLoop.js → shared/toolLoop.js} +67 -14
  155. package/dist/{ui/sessions → shared/ui}/conversation/index.d.ts +1 -1
  156. package/dist/{ui/sessions → shared/ui}/conversation/index.js +1 -1
  157. package/dist/{ui/sessions → shared/ui}/coreWidgetsEntry.d.ts +1 -1
  158. package/dist/{ui/sessions → shared/ui}/coreWidgetsEntry.js +1 -1
  159. package/dist/{ui/sessions → shared/ui}/lore-entries/index.d.ts +1 -1
  160. package/dist/{ui/sessions → shared/ui}/scene-portraits/index.d.ts +1 -1
  161. package/dist/{ui/sessions → shared/ui}/scene-portraits/index.js +1 -1
  162. package/dist/{ui/sessions → shared/ui}/session-state/index.d.ts +1 -1
  163. package/dist/{ui/sessions → shared/ui}/session-state/index.js +1 -1
  164. package/package.json +28 -28
  165. package/dist/adventureActions.d.ts +0 -169
  166. package/dist/adventureActions.js +0 -599
  167. package/dist/createChat.d.ts +0 -7
  168. package/dist/generateImage.d.ts +0 -7
  169. package/dist/lairActions.d.ts +0 -296
  170. package/dist/lairActions.js +0 -1287
  171. package/dist/respond.d.ts +0 -24
  172. package/dist/sprites.d.ts +0 -24
  173. package/dist/sprites.js +0 -102
  174. package/dist/summarize.d.ts +0 -76
  175. /package/components/{sessions → genres/chat}/authors-note/authors-note.ts +0 -0
  176. /package/components/{sessions/shared → shared}/context.ts +0 -0
  177. /package/components/{sessions → shared}/lore-entries/lore-entries.ts +0 -0
  178. /package/components/{sessions → shared}/messages/MessageBlocksView.svelte +0 -0
  179. /package/components/{sessions → shared}/messages/MessageControls.svelte +0 -0
  180. /package/components/{sessions → shared}/messages/MessageMediaStrip.svelte +0 -0
  181. /package/components/{sessions → shared}/messages/MessagePartsView.svelte +0 -0
  182. /package/components/{sessions → shared}/messages/MessageStateLedger.svelte +0 -0
  183. /package/components/{sessions → shared}/messages/NextCharacterBlock.svelte +0 -0
  184. /package/components/{sessions → shared}/messages/SessionContainer.svelte +0 -0
  185. /package/components/{sessions → shared}/messages/StateProposalList.svelte +0 -0
  186. /package/components/{sessions → shared}/messages/mediaStrip.ts +0 -0
  187. /package/components/{sessions → shared}/messages/messages.ts +0 -0
  188. /package/components/{sessions → shared}/scene-portraits/StatBars.svelte +0 -0
  189. /package/components/{sessions → shared}/scene-portraits/scene-portraits.ts +0 -0
  190. /package/components/{sessions → shared}/state/SlotControl.svelte +0 -0
  191. /package/components/{sessions → shared}/state/entryFinder.ts +0 -0
  192. /package/components/{sessions → shared}/state/slotWriter.svelte.ts +0 -0
  193. /package/components/{sessions → shared}/stats/stats.ts +0 -0
  194. /package/components/{sessions/shared → shared}/widgetRef.svelte.ts +0 -0
  195. /package/components/{sessions → shared}/world-state/world-state.ts +0 -0
  196. /package/dist/{ui/sessions → genres/chat/ui}/authors-note/index.js +0 -0
  197. /package/dist/{entries.d.ts → registry/entries.d.ts} +0 -0
  198. /package/dist/{entries.js → registry/entries.js} +0 -0
  199. /package/dist/{genres.d.ts → registry/genres.d.ts} +0 -0
  200. /package/dist/{ui/sessions → registry}/layouts.d.ts +0 -0
  201. /package/dist/{ui/sessions → registry}/layouts.js +0 -0
  202. /package/dist/{slots.d.ts → registry/slots.d.ts} +0 -0
  203. /package/dist/{slots.js → registry/slots.js} +0 -0
  204. /package/dist/{statShapes.d.ts → registry/statShapes.d.ts} +0 -0
  205. /package/dist/{statShapes.js → registry/statShapes.js} +0 -0
  206. /package/dist/{ui/sessions → registry}/widgets.d.ts +0 -0
  207. /package/dist/{guideMascotImage.d.ts → seed/guideMascotImage.d.ts} +0 -0
  208. /package/dist/{guideMascotImage.js → seed/guideMascotImage.js} +0 -0
  209. /package/dist/{presets.d.ts → seed/presets.d.ts} +0 -0
  210. /package/dist/{prompts.d.ts → seed/prompts.d.ts} +0 -0
  211. /package/dist/{graphBuild.d.ts → shared/graphBuild.d.ts} +0 -0
  212. /package/dist/{graphBuild.js → shared/graphBuild.js} +0 -0
  213. /package/dist/{ui/sessions → shared/ui}/conversation/actionsDisclosure.d.ts +0 -0
  214. /package/dist/{ui/sessions → shared/ui}/conversation/actionsDisclosure.js +0 -0
  215. /package/dist/{ui/sessions → shared/ui}/conversation/composerTray.d.ts +0 -0
  216. /package/dist/{ui/sessions → shared/ui}/conversation/composerTray.js +0 -0
  217. /package/dist/{ui/sessions → shared/ui}/conversation/dossier.d.ts +0 -0
  218. /package/dist/{ui/sessions → shared/ui}/conversation/dossier.js +0 -0
  219. /package/dist/{ui/sessions → shared/ui}/conversation/formAnswer.d.ts +0 -0
  220. /package/dist/{ui/sessions → shared/ui}/conversation/formAnswer.js +0 -0
  221. /package/dist/{ui/sessions → shared/ui}/conversation/itemValues.d.ts +0 -0
  222. /package/dist/{ui/sessions → shared/ui}/conversation/itemValues.js +0 -0
  223. /package/dist/{ui/sessions → shared/ui}/conversation/messageOrder.d.ts +0 -0
  224. /package/dist/{ui/sessions → shared/ui}/conversation/messageOrder.js +0 -0
  225. /package/dist/{ui/sessions → shared/ui}/conversation/messageSpeaker.d.ts +0 -0
  226. /package/dist/{ui/sessions → shared/ui}/conversation/messageSpeaker.js +0 -0
  227. /package/dist/{ui/sessions → shared/ui}/conversation/messageVerbState.d.ts +0 -0
  228. /package/dist/{ui/sessions → shared/ui}/conversation/messageVerbState.js +0 -0
  229. /package/dist/{ui/sessions → shared/ui}/conversation/slashPalette.d.ts +0 -0
  230. /package/dist/{ui/sessions → shared/ui}/conversation/slashPalette.js +0 -0
  231. /package/dist/{ui/sessions → shared/ui}/conversation/text.d.ts +0 -0
  232. /package/dist/{ui/sessions → shared/ui}/conversation/text.js +0 -0
  233. /package/dist/{ui/sessions → shared/ui}/lore-entries/index.js +0 -0
  234. /package/dist/{ui/sessions → shared/ui}/scene-portraits/portraits.d.ts +0 -0
  235. /package/dist/{ui/sessions → shared/ui}/scene-portraits/portraits.js +0 -0
  236. /package/dist/{ui/sessions → shared/ui}/session-state/barMath.d.ts +0 -0
  237. /package/dist/{ui/sessions → shared/ui}/session-state/barMath.js +0 -0
  238. /package/dist/{ui/sessions → shared/ui}/session-state/shapes.d.ts +0 -0
  239. /package/dist/{ui/sessions → shared/ui}/session-state/shapes.js +0 -0
  240. /package/dist/{ui/sessions → shared/ui}/session-state/stateView.d.ts +0 -0
  241. /package/dist/{ui/sessions → shared/ui}/session-state/stateView.js +0 -0
  242. /package/dist/{ui/sessions → shared/ui}/widgetContext.d.ts +0 -0
  243. /package/dist/{ui/sessions → shared/ui}/widgetContext.js +0 -0
@@ -26,7 +26,7 @@
26
26
  *
27
27
  * ## Its sibling (ruling 2026-09-07)
28
28
  *
29
- * `core:spec/narrate-character` is the other half of the split: a turn spoken
29
+ * `core:spec/chat-side-character` is the other half of the split: a turn spoken
30
30
  * by somebody who is not in the cast. This one narrates the **world** and
31
31
  * speaks as nobody; that one speaks **as a person** and is written from their
32
32
  * perspective. Both read world lore, and neither is inserted into the
@@ -42,9 +42,9 @@
42
42
  */
43
43
  import { compile, spec, slot, sessionEvents } from '@serene-pub/sdk';
44
44
  import * as C from '@serene-pub/contracts';
45
- import { chatGenre } from './genres.js';
45
+ import { chatGenre } from '../../registry/genres.js';
46
46
  /** @experimental */
47
- export const NARRATE_SPEC_ID = 'core:spec/narrate';
47
+ export const CHAT_NARRATE_SPEC_ID = 'core:spec/chat-narrate';
48
48
  // 1.1.0: shared prompts slot, exactly as the respond spec (13 §12 finding i).
49
49
  // 1.2.0: the `variables` slot, also exactly as the respond spec — and the
50
50
  // layouts it selects are the *same rows*, since a layout is keyed by the
@@ -186,11 +186,16 @@ export const NARRATE_SPEC_ID = 'core:spec/narrate';
186
186
  // reads and the history read takes its `budget`: about twice the window's
187
187
  // worth of the newest rows (never more than 2000) instead of the newest 100,
188
188
  // so the transcript fit decides where the conversation starts.
189
+ // ⚠ Edited in place (2026-10-05, sprites in-pipeline) — content-addressed;
190
+ // `specHashes.test.ts` records the move. The sprite step after `save`
191
+ // (`spritePick`, `spriteShow`), as on every reply spec (owner ruling D-a);
192
+ // `semantic.arm.queries` wires its own embedding connection, since
193
+ // `embed-text` declares none.
189
194
  /** @internal */
190
- export const NARRATE_VERSION = '1.11.0';
195
+ export const CHAT_NARRATE_VERSION = '1.11.0';
191
196
  /** @experimental */
192
- export const narrateSpec = () => compile(spec(NARRATE_SPEC_ID, {
193
- version: NARRATE_VERSION,
197
+ export const narrateSpec = () => compile(spec(CHAT_NARRATE_SPEC_ID, {
198
+ version: CHAT_NARRATE_VERSION,
194
199
  /** Catalogue claims (23 §2): a person-invoked action on chats. */
195
200
  taxonomy: {
196
201
  role: 'action',
@@ -339,7 +344,7 @@ export const narrateSpec = () => compile(spec(NARRATE_SPEC_ID, {
339
344
  *
340
345
  * ⚠ It ships **Automatic** — `queries`' `searchByMeaning` defaults
341
346
  * to `auto`, on the chain's first node: it searches whenever an
342
- * embedding model is set up (`embed`'s connection resolves), local
347
+ * embedding model is set up (`queries`' connection resolves), local
343
348
  * or a service alike, and otherwise `embed` is handed no texts and
344
349
  * makes no call; `search`'s
345
350
  * `maxEntries` is only a ceiling —
@@ -352,10 +357,10 @@ export const narrateSpec = () => compile(spec(NARRATE_SPEC_ID, {
352
357
  .task('queries', ($) => C.queryWindows.v1({
353
358
  messages: $.history.messages,
354
359
  cast: $.cast.cast,
355
- // The embed step's connection, for whether one is
356
- // set up: `searchByMeaning`'s Automatic searches
357
- // whenever it is, wherever the model runs.
358
- connection: slot.connectionOf('semantic.arm.embed'),
360
+ // The install's embedding connection, for whether
361
+ // one is set up: `searchByMeaning`'s Automatic
362
+ // searches whenever it is, wherever the model runs.
363
+ connection: slot.connection(),
359
364
  params: slot.params(),
360
365
  }))
361
366
  .oracle('embed', ($) => C.embedText.v1({
@@ -545,7 +550,7 @@ export const narrateSpec = () => compile(spec(NARRATE_SPEC_ID, {
545
550
  // `connectionOf("generate")` above — so the pick sized and
546
551
  // wrapped the prompt while `refId(p.connection)` at the host
547
552
  // read `null` and the request went to the instance default.
548
- // See the note above `NARRATE_VERSION`.
553
+ // See the note above `CHAT_NARRATE_VERSION`.
549
554
  connection: slot.connection(),
550
555
  sampling: slot.sampling(),
551
556
  // And the third: `params.stopSequences` has had a reader
@@ -565,6 +570,23 @@ export const narrateSpec = () => compile(spec(NARRATE_SPEC_ID, {
565
570
  target: $.placeholder.messageId,
566
571
  text: $.generate.text,
567
572
  reasoning: $.generate.reasoning,
573
+ }))
574
+ /**
575
+ * The line's face (DESIGN-sprites §5) — see `respond`. ⚠ No
576
+ * `speaker`: the narration is nobody's line (`placeholder` names
577
+ * no character), so the picker is handed none and picks nothing,
578
+ * at no cost. Wiring the inlet's speaker here would dress the
579
+ * narration in whoever's turn it happened to be.
580
+ */
581
+ .oracle('spritePick', ($) => C.pickSprite.v1({
582
+ text: $.generate.text,
583
+ scope: $.input.sessionScope,
584
+ params: slot.params(),
585
+ }), { expose: { session: true } })
586
+ .outlet('spriteShow', ($) => C.showSprite.v1({
587
+ target: $.save.messageId,
588
+ pick: $.spritePick.main,
589
+ source: 'picker',
568
590
  }))
569
591
  .build());
570
592
  //# sourceMappingURL=narrate.js.map
@@ -47,9 +47,9 @@
47
47
  * boot runs the zero-cost path.
48
48
  */
49
49
  /** @experimental */
50
- export declare const NARRATE_CHARACTER_SPEC_ID = "core:spec/narrate-character";
50
+ export declare const CHAT_SIDE_CHARACTER_SPEC_ID = "core:spec/chat-side-character";
51
51
  /** @internal */
52
- export declare const NARRATE_CHARACTER_VERSION = "1.0.0";
52
+ export declare const CHAT_SIDE_CHARACTER_VERSION = "1.0.0";
53
53
  /** @experimental */
54
54
  export declare const narrateCharacterSpec: () => import("@serene-pub/sdk").SpecDocument;
55
55
  //# sourceMappingURL=narrateCharacter.d.ts.map
@@ -48,14 +48,13 @@
48
48
  */
49
49
  import { compile, spec, slot, sessionEvents } from '@serene-pub/sdk';
50
50
  import * as C from '@serene-pub/contracts';
51
- import { withSpriteTail } from './sprites.js';
52
- import { chatGenre, POST_HISTORY_TOKEN_TRIGGER } from './genres.js';
51
+ import { chatGenre, POST_HISTORY_TOKEN_TRIGGER } from '../../registry/genres.js';
53
52
  /** @experimental */
54
- export const NARRATE_CHARACTER_SPEC_ID = 'core:spec/narrate-character';
53
+ export const CHAT_SIDE_CHARACTER_SPEC_ID = 'core:spec/chat-side-character';
55
54
  // 1.0.0: a new declaration, not a bump. The 0.6 version freeze forbids moving
56
55
  // an existing spec's semver; it says nothing about publishing a new spec, and
57
56
  // this is one — its own slug, its own config surface, its own contributed
58
- // trigger. Nothing that pins `core:spec/narrate` is affected.
57
+ // trigger. Nothing that pins `core:spec/chat-narrate` is affected.
59
58
  //
60
59
  // ⚠ **1.0.0, edited in place for the first time — same terms, same pairing.**
61
60
  //
@@ -110,13 +109,16 @@ export const NARRATE_CHARACTER_SPEC_ID = 'core:spec/narrate-character';
110
109
  // reads and the history read takes its `budget`: about twice the window's
111
110
  // worth of the newest rows (never more than 2000) instead of the newest 100,
112
111
  // so the transcript fit decides where the conversation starts.
112
+ // ⚠ Edited in place (2026-10-05, sprites in-pipeline) — content-addressed;
113
+ // `specHashes.test.ts` records the move. The sprite step is written out after
114
+ // `save` (`spritePick`, `spriteShow`) where the retired `withSpriteTail`
115
+ // wrapper appended nodes this source never named; `semantic.arm.queries`
116
+ // wires its own embedding connection, since `embed-text` declares none.
113
117
  /** @internal */
114
- export const NARRATE_CHARACTER_VERSION = '1.0.0';
118
+ export const CHAT_SIDE_CHARACTER_VERSION = '1.0.0';
115
119
  /** @experimental */
116
- export const narrateCharacterSpec = () => compile(
117
- // The sprite tail (DESIGN-sprites §5): after `save`, choose the line's face.
118
- withSpriteTail(spec(NARRATE_CHARACTER_SPEC_ID, {
119
- version: NARRATE_CHARACTER_VERSION,
120
+ export const narrateCharacterSpec = () => compile(spec(CHAT_SIDE_CHARACTER_SPEC_ID, {
121
+ version: CHAT_SIDE_CHARACTER_VERSION,
120
122
  /** Catalogue claims (23 §2): a person-invoked action on chats. */
121
123
  taxonomy: {
122
124
  role: 'action',
@@ -262,7 +264,7 @@ withSpriteTail(spec(NARRATE_CHARACTER_SPEC_ID, {
262
264
  * `embed` there would show a reader a list of query strings instead
263
265
  * of a prompt. Ships Automatic — `queries`' `searchByMeaning` is
264
266
  * `auto`, on the chain's first node: it searches whenever an
265
- * embedding model is set up (`embed`'s connection resolves), local
267
+ * embedding model is set up (`queries`' connection resolves), local
266
268
  * or a service alike, and otherwise cuts no probes and `embed`
267
269
  * makes no call (2026-09-29, corrected 09-30; the switch was
268
270
  * `vector-search.maxEntries = 0`, on the last node, after the embed
@@ -272,10 +274,10 @@ withSpriteTail(spec(NARRATE_CHARACTER_SPEC_ID, {
272
274
  .task('queries', ($) => C.queryWindows.v1({
273
275
  messages: $.history.messages,
274
276
  cast: $.cast.cast,
275
- // The embed step's connection, for whether one is
276
- // set up: `searchByMeaning`'s Automatic searches
277
- // whenever it is, wherever the model runs.
278
- connection: slot.connectionOf('semantic.arm.embed'),
277
+ // The install's embedding connection, for whether
278
+ // one is set up: `searchByMeaning`'s Automatic
279
+ // searches whenever it is, wherever the model runs.
280
+ connection: slot.connection(),
279
281
  params: slot.params(),
280
282
  }))
281
283
  .oracle('embed', ($) => C.embedText.v1({
@@ -425,7 +427,7 @@ withSpriteTail(spec(NARRATE_CHARACTER_SPEC_ID, {
425
427
  // `connectionOf("generate")` above — so the pick sized and
426
428
  // wrapped the prompt while `refId(p.connection)` at the host
427
429
  // read `null` and the request went to the instance default.
428
- // See the note above `NARRATE_CHARACTER_VERSION`.
430
+ // See the note above `CHAT_SIDE_CHARACTER_VERSION`.
429
431
  connection: slot.connection(),
430
432
  sampling: slot.sampling(),
431
433
  // And the third: `params.stopSequences` has had a reader
@@ -443,7 +445,24 @@ withSpriteTail(spec(NARRATE_CHARACTER_SPEC_ID, {
443
445
  target: $.placeholder.messageId,
444
446
  text: $.generate.text,
445
447
  reasoning: $.generate.reasoning,
446
- })))
448
+ }))
449
+ /**
450
+ * The line's face (DESIGN-sprites §5) — see `respond`. The speaker
451
+ * is the one the placeholder wrote: a picked library character
452
+ * (`character:<id>`) has a card and may have sprites; a free-form
453
+ * name has none, and the pick is null.
454
+ */
455
+ .oracle('spritePick', ($) => C.pickSprite.v1({
456
+ text: $.generate.text,
457
+ speaker: $.input.speaker,
458
+ scope: $.input.sessionScope,
459
+ params: slot.params(),
460
+ }), { expose: { session: true } })
461
+ .outlet('spriteShow', ($) => C.showSprite.v1({
462
+ target: $.save.messageId,
463
+ pick: $.spritePick.main,
464
+ source: 'picker',
465
+ }))
447
466
  /**
448
467
  * What this step ships with: the post-history reminder's trigger
449
468
  * (`POST_HISTORY_TOKEN_TRIGGER`), because the prompt renders the
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Core's answer-a-message pipeline: Chat's reply.
3
+ *
4
+ * One file per spec — every pipeline core ships is its own module, under its
5
+ * genre's folder (`genres/<genre>/`) or `shared/` — because a pipeline is
6
+ * content and content grows: the summarize and graph-build specs are several
7
+ * nodes each with their own step prompts, and a single module holding all of
8
+ * them would be a merge conflict waiting for the first person to add a sixth.
9
+ */
10
+ /** The spec a session turn runs. @experimental */
11
+ export declare const CHAT_RESPOND_SPEC_ID = "core:spec/chat-respond";
12
+ /** @internal */
13
+ export declare const CHAT_RESPOND_VERSION = "1.21.0";
14
+ /**
15
+ * Core's answer-a-message pipeline.
16
+ *
17
+ * All five mechanisms since 1.20.0 — keys, names the scene said, meaning,
18
+ * names the scene *described*, and the structural signals that order what they
19
+ * find. Three of the five need nothing installed; the two that read embeddings
20
+ * need a model and both ship switched off, so a first boot runs exactly the
21
+ * zero-cost path it always did.
22
+ * @experimental
23
+ */
24
+ export declare const respondSpec: () => import("@serene-pub/sdk").SpecDocument;
25
+ //# sourceMappingURL=respond.d.ts.map
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Core's answer-a-message pipeline.
2
+ * Core's answer-a-message pipeline: Chat's reply.
3
3
  *
4
- * One file per spec, because a pipeline is content and content grows: the
5
- * summarize and graph-build specs are several nodes each with their own step
6
- * prompts, and a single module holding all of them would be a merge conflict
7
- * waiting for the first person to add a sixth.
4
+ * One file per spec — every pipeline core ships is its own module, under its
5
+ * genre's folder (`genres/<genre>/`) or `shared/` — because a pipeline is
6
+ * content and content grows: the summarize and graph-build specs are several
7
+ * nodes each with their own step prompts, and a single module holding all of
8
+ * them would be a merge conflict waiting for the first person to add a sixth.
8
9
  */
9
10
  import { compile, spec, slot, sessionEvents } from '@serene-pub/sdk';
10
11
  import * as C from '@serene-pub/contracts';
11
- import { withSpriteTail } from './sprites.js';
12
- import { chatGenre, POST_HISTORY_TOKEN_TRIGGER } from './genres.js';
12
+ import { chatGenre, POST_HISTORY_TOKEN_TRIGGER } from '../../registry/genres.js';
13
13
  /** The spec a session turn runs. @experimental */
14
- export const RESPOND_SPEC_ID = 'core:spec/respond';
14
+ export const CHAT_RESPOND_SPEC_ID = 'core:spec/chat-respond';
15
15
  // 1.1.0: one authored prompt, not three. The context builder owns the
16
16
  // `prompts` slot; assemble and generate read it by reference (13 §12 finding
17
17
  // i, closed) — so the panel renders one prompts group and `world.ts` no
@@ -160,9 +160,11 @@ export const RESPOND_SPEC_ID = 'core:spec/respond';
160
160
  // set up — local or a service billed per request, alike — and not when there
161
161
  // is none. (For one day, 2026-09-29, it skipped a service; the owner,
162
162
  // 2026-09-30: "I never said to skip paid services for retrieval, that's what
163
- // they are there for.") `queries` reads whether one is set up off the embed
164
- // step's connection (`slot.connectionOf('semantic.arm.embed')`); when it does
165
- // not search it cuts
163
+ // they are there for.") `queries` reads whether one is set up off its own
164
+ // embedding connection slot (`slot.connection()`, the install's active
165
+ // embedding connection — it was a reference to the embed step's slot until
166
+ // `embed-text` stopped declaring one, 2026-10-05); when it does not search it
167
+ // cuts
166
168
  // no probes and `embed-text` makes no call. One switch, not two — the
167
169
  // `signalSemantic` weight it feeds is *not* zero, and `vector-search.maxEntries`
168
170
  // is a ceiling that ships at 5, so turning the switch on is the whole of
@@ -339,8 +341,16 @@ export const RESPOND_SPEC_ID = 'core:spec/respond';
339
341
  // `budget`: the read is the newest rows up to about twice the window (never
340
342
  // more than 2000) instead of the newest 100, so the transcript fit's held cut
341
343
  // decides the prompt's first line once a session passes 100 messages.
344
+ //
345
+ // ⚠ **1.21.0, edited in place (2026-10-05, sprites in-pipeline) —
346
+ // content-addressed; `specHashes.test.ts` records the move.** The sprite step
347
+ // is written out after `save` — `spritePick` (`core:oracle/pick-sprite@1`,
348
+ // handed the reply's text and speaker) and `spriteShow` — where the retired
349
+ // `withSpriteTail` wrapper appended four nodes this source never named; and
350
+ // `semantic.arm.queries` wires its own embedding connection
351
+ // (`slot.connection()`), since `embed-text` declares none to reference.
342
352
  /** @internal */
343
- export const RESPOND_VERSION = '1.21.0';
353
+ export const CHAT_RESPOND_VERSION = '1.21.0';
344
354
  /**
345
355
  * Core's answer-a-message pipeline.
346
356
  *
@@ -351,10 +361,8 @@ export const RESPOND_VERSION = '1.21.0';
351
361
  * zero-cost path it always did.
352
362
  * @experimental
353
363
  */
354
- export const respondSpec = () => compile(
355
- // The sprite tail (DESIGN-sprites §5): after `save`, choose the line's face.
356
- withSpriteTail(spec(RESPOND_SPEC_ID, {
357
- version: RESPOND_VERSION,
364
+ export const respondSpec = () => compile(spec(CHAT_RESPOND_SPEC_ID, {
365
+ version: CHAT_RESPOND_VERSION,
358
366
  /** Catalogue claims (23 §2): the standard chat's main turn. */
359
367
  taxonomy: {
360
368
  role: 'primary',
@@ -612,7 +620,7 @@ withSpriteTail(spec(RESPOND_SPEC_ID, {
612
620
  *
613
621
  * ⚠ It ships **Automatic** — `queries`' `searchByMeaning` is
614
622
  * `auto`, on the chain's first node: it searches whenever an
615
- * embedding model is set up (`embed`'s connection resolves), local
623
+ * embedding model is set up (`queries`' connection resolves), local
616
624
  * or a service alike, and otherwise `embed` is handed no texts and
617
625
  * makes no call; `search`'s `maxEntries` is only
618
626
  * a ceiling — and an
@@ -634,10 +642,10 @@ withSpriteTail(spec(RESPOND_SPEC_ID, {
634
642
  .task('queries', ($) => C.queryWindows.v1({
635
643
  messages: $.gather.history.read.messages,
636
644
  cast: $.gather.cast.read.cast,
637
- // The embed step's connection, for whether one is
638
- // set up: `searchByMeaning`'s Automatic searches
639
- // whenever it is, wherever the model runs.
640
- connection: slot.connectionOf('semantic.arm.embed'),
645
+ // The install's embedding connection, for whether
646
+ // one is set up: `searchByMeaning`'s Automatic
647
+ // searches whenever it is, wherever the model runs.
648
+ connection: slot.connection(),
641
649
  params: slot.params(),
642
650
  }))
643
651
  .oracle('embed', ($) => C.embedText.v1({
@@ -1026,7 +1034,25 @@ withSpriteTail(spec(RESPOND_SPEC_ID, {
1026
1034
  target: $.placeholder.messageId,
1027
1035
  text: $.generate.text,
1028
1036
  reasoning: $.generate.reasoning,
1029
- })))
1037
+ }))
1038
+ /**
1039
+ * The line's face (DESIGN-sprites §5), after the save so it never
1040
+ * delays the reply: the sprite picker, handed the reply's own text
1041
+ * and whose line it is. A session setting — "Choose sprites",
1042
+ * stickiness and the floor are the session's to set.
1043
+ */
1044
+ .oracle('spritePick', ($) => C.pickSprite.v1({
1045
+ text: $.generate.text,
1046
+ speaker: $.input.speaker,
1047
+ scope: $.input.sessionScope,
1048
+ params: slot.params(),
1049
+ }), { expose: { session: true } })
1050
+ /** … recorded on the line. A picker's null pick writes nothing. */
1051
+ .outlet('spriteShow', ($) => C.showSprite.v1({
1052
+ target: $.save.messageId,
1053
+ pick: $.spritePick.main,
1054
+ source: 'picker',
1055
+ }))
1030
1056
  /** What Chat ships with: the reminder's trigger (`POST_HISTORY_TOKEN_TRIGGER`). */
1031
1057
  .preset('default', { label: 'Default', default: true }, (p) => p.params('prompt', { postHistoryTokenTrigger: POST_HISTORY_TOKEN_TRIGGER }))
1032
1058
  .build());
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Chat's turn order: `turnOrderSpec` (`factories/turnOrder.ts`) for Chat.
3
+ */
4
+ import { type TurnOrderHandle } from '../../factories/turnOrder.js';
5
+ /** @experimental */
6
+ export declare const CHAT_TURN_ORDER_SPEC_ID = "core:spec/chat-turn-order";
7
+ /** Chat's turn order, by value — hand `build()` and `strategyNode` to `swaps` (R26). @experimental */
8
+ export declare const chatTurnOrder: TurnOrderHandle;
9
+ //# sourceMappingURL=turnOrder.d.ts.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Chat's turn order: `turnOrderSpec` (`factories/turnOrder.ts`) for Chat.
3
+ */
4
+ import * as C from '@serene-pub/contracts';
5
+ import { chatGenre } from '../../registry/genres.js';
6
+ import { TURN_ORDER_EVENTS, turnOrderSpec, turnStrategyNode } from '../../factories/turnOrder.js';
7
+ import { once } from '../../factories/once.js';
8
+ /** @experimental */
9
+ export const CHAT_TURN_ORDER_SPEC_ID = 'core:spec/chat-turn-order';
10
+ /** Every core turn strategy but round robin, in the order chat's control lists them. */
11
+ const CHAT_SWAPS = [C.turnUserSplit, C.turnRandom, C.turnScripted, C.turnManual, C.turnNarrator];
12
+ /** Chat's turn order, by value — hand `build()` and `strategyNode` to `swaps` (R26). @experimental */
13
+ export const chatTurnOrder = {
14
+ genre: chatGenre,
15
+ spec: CHAT_TURN_ORDER_SPEC_ID,
16
+ events: TURN_ORDER_EVENTS,
17
+ build: once(() => turnOrderSpec({
18
+ id: CHAT_TURN_ORDER_SPEC_ID,
19
+ genre: chatGenre,
20
+ events: TURN_ORDER_EVENTS,
21
+ strategy: C.turnRoundRobin,
22
+ swaps: CHAT_SWAPS,
23
+ // The optional model path (R41, M4): chat declares `turnMode`.
24
+ advise: C.turnAdvise,
25
+ })),
26
+ strategyNode: turnStrategyNode({ advise: C.turnAdvise }),
27
+ };
28
+ //# sourceMappingURL=turnOrder.js.map
@@ -3,7 +3,7 @@
3
3
  * core's Author's note widget (2026-10-02, AN1): reading a stored note into
4
4
  * the shape the form edits, whether a draft differs from what is saved, and
5
5
  * the line that says what the newest reply did with the note. The widget's
6
- * Svelte source lives in `components/sessions/authors-note/` and ships built
6
+ * Svelte source lives in `components/genres/chat/authors-note/` and ships built
7
7
  * (`dist/components/authors-note.js`); a host imports only this half, which
8
8
  * carries no Svelte runtime.
9
9
  *
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The guide's answer pipeline: `answerFormSpec` (`factories/answerForm.ts`),
3
+ * published for the guide genre.
4
+ */
5
+ /** @internal */
6
+ export declare const GUIDE_ANSWER_FORM_SPEC_ID = "core:spec/guide-answer-form";
7
+ /** @internal */
8
+ export declare const answerFormGuideSpec: () => import("@serene-pub/sdk").SpecDocument;
9
+ //# sourceMappingURL=answerForm.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The guide's answer pipeline: `answerFormSpec` (`factories/answerForm.ts`),
3
+ * published for the guide genre.
4
+ */
5
+ import { guideGenre } from '../../registry/genres.js';
6
+ import { answerFormSpec } from '../../factories/answerForm.js';
7
+ /** @internal */
8
+ export const GUIDE_ANSWER_FORM_SPEC_ID = 'core:spec/guide-answer-form';
9
+ /** @internal */
10
+ export const answerFormGuideSpec = () => answerFormSpec(GUIDE_ANSWER_FORM_SPEC_ID, guideGenre);
11
+ //# sourceMappingURL=answerForm.js.map
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The guide genre's create pipeline — the genre's required member. Its reply,
3
+ * and the notes on both, are `respond.ts`'s.
4
+ */
5
+ /** @internal */
6
+ export declare const GUIDE_CREATE_SPEC_ID = "core:spec/guide-create";
7
+ /** @internal */
8
+ export declare const GUIDE_CREATE_VERSION = "1.1.0";
9
+ /**
10
+ * The guide's create pipeline — the genre's one required member (24 §3).
11
+ *
12
+ * The same two nodes as `chat-create` — which, with no characters to greet
13
+ * with, write nothing — then Serene's declared greeting (`EnvoyDecl.greeting`),
14
+ * read through `core:query/envoy-greeting@1` and interpolated for this
15
+ * session, written on `main` under her name: only when it has text, which it
16
+ * lacks when she is not seated. No model call: a person is waiting on a
17
+ * create, so the welcome is declared, instant and translatable.
18
+ * The genre's declaration — envoys included — rides `meta.genre` on the
19
+ * version row, which is where the host reads "which speakers does this genre
20
+ * bring" from (`listSessionGenres`).
21
+ * @internal
22
+ */
23
+ export declare const createGuideSpec: () => import("@serene-pub/sdk").SpecDocument;
24
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1,58 @@
1
+ /**
2
+ * The guide genre's create pipeline — the genre's required member. Its reply,
3
+ * and the notes on both, are `respond.ts`'s.
4
+ */
5
+ import { compile, slot, spec, sessionEvents } from '@serene-pub/sdk';
6
+ import * as C from '@serene-pub/contracts';
7
+ import { GUIDE_MASCOT_KEY, guideGenre } from '../../registry/genres.js';
8
+ /** Where Serene's greeting lands: the channel her declaration names. */
9
+ const SERENE_GREETING_CHANNEL = guideGenre.envoys?.find((e) => e.key === GUIDE_MASCOT_KEY)?.greeting?.channel ?? 'main';
10
+ /** @internal */
11
+ export const GUIDE_CREATE_SPEC_ID = 'core:spec/guide-create';
12
+ /** @internal */
13
+ export const GUIDE_CREATE_VERSION = '1.1.0';
14
+ /**
15
+ * The guide's create pipeline — the genre's one required member (24 §3).
16
+ *
17
+ * The same two nodes as `chat-create` — which, with no characters to greet
18
+ * with, write nothing — then Serene's declared greeting (`EnvoyDecl.greeting`),
19
+ * read through `core:query/envoy-greeting@1` and interpolated for this
20
+ * session, written on `main` under her name: only when it has text, which it
21
+ * lacks when she is not seated. No model call: a person is waiting on a
22
+ * create, so the welcome is declared, instant and translatable.
23
+ * The genre's declaration — envoys included — rides `meta.genre` on the
24
+ * version row, which is where the host reads "which speakers does this genre
25
+ * bring" from (`listSessionGenres`).
26
+ * @internal
27
+ */
28
+ export const createGuideSpec = () => compile(spec(GUIDE_CREATE_SPEC_ID, {
29
+ version: GUIDE_CREATE_VERSION,
30
+ taxonomy: { role: 'create' },
31
+ genre: {
32
+ name: guideGenre.name,
33
+ family: guideGenre.family,
34
+ description: guideGenre.description,
35
+ shape: guideGenre.shape,
36
+ events: guideGenre.events,
37
+ envoys: guideGenre.envoys,
38
+ },
39
+ })
40
+ .inlet('input', C.sessionCreated.v1(), {
41
+ genre: guideGenre,
42
+ event: sessionEvents.sessionCreated,
43
+ })
44
+ .query('collect', ($) => C.sessionGreetings.v1({ scope: $.input.sessionScope }))
45
+ .outlet('seed', ($) => C.seedGreetings.v1({
46
+ greetings: $.collect.greetings,
47
+ channel: guideGenre.shape?.greeting?.channel ?? 'main',
48
+ }))
49
+ /** Serene's greeting, interpolated — empty when she is not seated. */
50
+ .query('welcome', ($) => C.envoyGreeting.v1({ scope: $.input.sessionScope, params: slot.params() }))
51
+ .junction('greet', { on: ($) => $.welcome.text }, (g) => g.when('greets', { truthy: true }, (c) => c.outlet('write', ($) => C.createMessage.v1({
52
+ text: $.welcome.text,
53
+ channel: SERENE_GREETING_CHANNEL,
54
+ speaker: `envoy:${GUIDE_MASCOT_KEY}`,
55
+ }))))
56
+ .preset('guide', { label: 'Guide', default: true }, (p) => p.params('welcome', { envoy: GUIDE_MASCOT_KEY }))
57
+ .build());
58
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The guide genre's pipelines, one per file: its create pipeline and reply
3
+ * (`create.ts`, `respond.ts`), and its answer form and turn order.
4
+ */
5
+ export * from './create.js';
6
+ export * from './respond.js';
7
+ export * from './answerForm.js';
8
+ export * from './turnOrder.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The guide genre's pipelines, one per file: its create pipeline and reply
3
+ * (`create.ts`, `respond.ts`), and its answer form and turn order.
4
+ */
5
+ export * from './create.js';
6
+ export * from './respond.js';
7
+ export * from './answerForm.js';
8
+ export * from './turnOrder.js';
9
+ //# sourceMappingURL=index.js.map
@@ -1,23 +1,4 @@
1
1
  /** @internal */
2
- export declare const CREATE_GUIDE_SPEC_ID = "core:spec/create-guide";
3
- /** @internal */
4
- export declare const CREATE_GUIDE_VERSION = "1.1.0";
5
- /**
6
- * The guide's create pipeline — the genre's one required member (24 §3).
7
- *
8
- * The same two nodes as `create-chat` — which, with no characters to greet
9
- * with, write nothing — then Serene's declared greeting (`EnvoyDecl.greeting`),
10
- * read through `core:query/envoy-greeting@1` and interpolated for this
11
- * session, written on `main` under her name: only when it has text, which it
12
- * lacks when she is not seated. No model call: a person is waiting on a
13
- * create, so the welcome is declared, instant and translatable.
14
- * The genre's declaration — envoys included — rides `meta.genre` on the
15
- * version row, which is where the host reads "which speakers does this genre
16
- * bring" from (`listSessionGenres`).
17
- * @internal
18
- */
19
- export declare const createGuideSpec: () => import("@serene-pub/sdk").SpecDocument;
20
- /** @internal */
21
2
  export declare const GUIDE_RESPOND_SPEC_ID = "core:spec/guide-respond";
22
3
  /** @internal */
23
4
  export declare const GUIDE_RESPOND_VERSION = "1.2.0";
@@ -47,4 +28,4 @@ export declare const GUIDE_RESPOND_VERSION = "1.2.0";
47
28
  export declare const GUIDE_RESPOND_TEMPLATE = "{{#systemBlock}}\n{{#if instructions}}\n{{{instructions}}}\n{{/if}}\n\n{{#if characters}}\n{{{characters}}}\n{{/if}}\n\n{{#if personas}}\n{{{personas}}}\n{{/if}}\n\n{{#if docsExcerpts}}\nDocumentation excerpts retrieved for the person's latest question. These are the only Serene Pub documentation you have. Each key is the page and section; each value starts with the page's path.\n{{{docsExcerpts}}}\nAnswer only from these excerpts{{#if worldLore}} and the lorebook entries below{{/if}}, and end with the path of the page you used, copied exactly. If they do not answer the question, say \"I couldn't find that in the docs.\"\n{{else if worldLore}}\nNo documentation excerpts matched the person's latest question. Answer only from the lorebook entries below; if they do not answer it either, say \"I couldn't find that in the docs.\" and suggest rephrasing the question or browsing /docs. Do not answer from memory.\n{{else}}\nNo documentation excerpts matched the person's latest question. You have no documentation for it: say \"I couldn't find that in the docs.\" and suggest rephrasing the question or browsing /docs. Do not answer from memory.\n{{/if}}\n{{#if worldLore}}\n\nFrom the lorebook attached to this session: reference notes the person keeps, retrieved for their latest question. Each key is the entry's name. When you answer from one, say which entry you used.\n{{{worldLore}}}\n{{/if}}\n{{/systemBlock}}\n\n{{#each sessionMessages as |sessionMessage msgIndex|}}\n{{#each (lookup ../injectionsByIndex msgIndex)}}\n{{#if (eq this.role \"assistant\")}}\n{{#assistantBlock}}\n{{{this.content}}}\n{{/assistantBlock}}\n{{else if (eq this.role \"user\")}}\n{{#userBlock}}\n{{{this.content}}}\n{{/userBlock}}\n{{else}}\n{{#systemBlock}}\n{{{this.content}}}\n{{/systemBlock}}\n{{/if}}\n{{/each}}\n{{#with ../postHistory}}\n{{#if (and (eq msgIndex targetIndex) hasContent)}}\n{{#systemBlock}}\n{{#if instructions}}\nResponse reminder:\n```text\n{{{instructions}}}\n```\n{{/if}}\n{{#if charInstructions}}\nCharacter reminder:\n```text\n{{{charInstructions}}}\n```\n{{/if}}\n{{/systemBlock}}\n{{/if}}\n{{/with}}\n{{#if (eq role \"assistant\")}}\n{{#assistantBlock}}\n{{{name}}}: {{{message}}}{{{attachments}}}\n{{/assistantBlock}}\n{{/if}}\n{{#if (eq role \"user\")}}\n{{#userBlock}}\n{{{name}}}: {{{message}}}{{{attachments}}}\n{{/userBlock}}\n{{/if}}\n{{/each}}";
48
29
  /** The guide's reply: the envoy answers, grounded in the docs. @internal */
49
30
  export declare const guideRespondSpec: () => import("@serene-pub/sdk").SpecDocument;
50
- //# sourceMappingURL=guide.d.ts.map
31
+ //# sourceMappingURL=respond.d.ts.map