@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
package/dist/respond.d.ts DELETED
@@ -1,24 +0,0 @@
1
- /**
2
- * Core's answer-a-message pipeline.
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.
8
- */
9
- /** The spec a session turn runs. @experimental */
10
- export declare const RESPOND_SPEC_ID = "core:spec/respond";
11
- /** @internal */
12
- export declare const RESPOND_VERSION = "1.21.0";
13
- /**
14
- * Core's answer-a-message pipeline.
15
- *
16
- * All five mechanisms since 1.20.0 — keys, names the scene said, meaning,
17
- * names the scene *described*, and the structural signals that order what they
18
- * find. Three of the five need nothing installed; the two that read embeddings
19
- * need a model and both ship switched off, so a first boot runs exactly the
20
- * zero-cost path it always did.
21
- * @experimental
22
- */
23
- export declare const respondSpec: () => import("@serene-pub/sdk").SpecDocument;
24
- //# sourceMappingURL=respond.d.ts.map
package/dist/sprites.d.ts DELETED
@@ -1,24 +0,0 @@
1
- /** @internal */
2
- export declare const SPRITES_VERSION = "1.0.0";
3
- /** A person's pick from the message menu, run as an action (§6). @experimental */
4
- export declare const SHOW_SPRITE_SPEC_ID = "core:spec/show-sprite";
5
- /** The picker's node key inside the tail — the address a rebind names. @internal */
6
- export declare const SPRITE_PICKER_NODE_KEY = "spriteTail.show.spritePick";
7
- /** Core's pickers. One today; a plugin's pure task publishing `sprite-pick@1` joins it. @internal */
8
- export declare const SPRITE_PICKER_IDS: readonly ['core:task/pick-sprite-similarity@1'];
9
- /**
10
- * Append the sprite tail to a reply spec's builder. The builder must already
11
- * hold an inlet keyed `input` publishing `sessionScope` and an outlet keyed
12
- * `save` publishing `messageId` — every reply spec in the catalog does.
13
- * @experimental
14
- */
15
- export declare function withSpriteTail<B>(builder: B): B;
16
- /**
17
- * A person's pick (§6): the message menu's **Change sprite**, run as an
18
- * action so the write is receipted and emits `sprite-shown` like any other.
19
- * The host records `source: 'person'` for THIS spec and no other, and checks
20
- * the person may act on the line (the `item` rule), as it does for an edit.
21
- * @experimental
22
- */
23
- export declare const showSpriteSpec: () => import("@serene-pub/sdk").SpecDocument;
24
- //# sourceMappingURL=sprites.d.ts.map
package/dist/sprites.js DELETED
@@ -1,102 +0,0 @@
1
- /**
2
- * Sprites in the reply road (DESIGN-sprites §5, 2026-09-24).
3
- *
4
- * ## The tail
5
- *
6
- * `withSpriteTail(builder)` appends the same few nodes to every reply spec,
7
- * after its `save` has committed the line — so choosing a face never delays
8
- * the reply, and one definition serves every genre:
9
- *
10
- * sprites (query sprites-for) what the speaker can show, and the
11
- * line's and labels' vectors
12
- * spriteTail (junction on `has`) nothing to choose → stop quietly
13
- * show.spritePick (task, REBINDABLE) the sprite picker
14
- * show.spriteShow (outlet show-sprite) record it on the line
15
- *
16
- * The vectors come from the install's embedding model inside `sprites-for`
17
- * (as `entity-link` embeds names) — no `embed-text` node is placed, which
18
- * would add a connection control to every reply spec that nothing reads.
19
- * With no embedding model loaded the vectors are null and the default picker
20
- * picks nothing, which leaves the line showing the speaker's last face.
21
- *
22
- * ⚠ **Not free in API mode** (corrected 2026-09-29, genre uplift C3). This
23
- * once said "the local embedding lane … so the one-model-call-per-turn rule
24
- * holds", and that is true only of a local ONNX model. The host embeds
25
- * through the same `batchEmbed` retrieval uses, and with an API embedding
26
- * connection starred that is a **provider call**: one per reply whose
27
- * speaker has sprites, after the reply is saved (so it never delays it). A
28
- * speaker with no sprites costs nothing — `has` is false before anything is
29
- * embedded. Turning sprites off is the picker's `enabled`, which sits after
30
- * `sprites-for`; the host reads that parameter for the run and makes no embed
31
- * when it is off, so "Choose sprites" off costs nothing either.
32
- *
33
- * ## Why a tail and not a spec of its own
34
- *
35
- * The natural home — a spec answering `message-completed` — does not fit:
36
- * dispatch resolves ONE spec per (preset, event), and every genre already
37
- * binds `message-completed` to its turn-order spec. A tail on each reply spec
38
- * keeps the choice in the reply's own run and receipt without changing the
39
- * dispatch rule (§5.1, option A).
40
- *
41
- * ## The picker is a rebind
42
- *
43
- * `SPRITE_PICKER_NODE_KEY` is rebound per session exactly as the Turn order
44
- * control rebinds a turn-order spec's strategy: every picker publishes
45
- * `core:shape/sprite-pick@1` on `main`, so the shape-based swap list offers
46
- * them — core's `pick-sprite-similarity` and any plugin's pure task
47
- * publishing the same shape. Turning sprites off is that picker's `enabled`
48
- * parameter, not a second node.
49
- */
50
- import { compile, spec, slot } from '@serene-pub/sdk';
51
- import * as C from '@serene-pub/contracts';
52
- /** @internal */
53
- export const SPRITES_VERSION = '1.0.0';
54
- /** A person's pick from the message menu, run as an action (§6). @experimental */
55
- export const SHOW_SPRITE_SPEC_ID = 'core:spec/show-sprite';
56
- /** The picker's node key inside the tail — the address a rebind names. @internal */
57
- export const SPRITE_PICKER_NODE_KEY = 'spriteTail.show.spritePick';
58
- /** Core's pickers. One today; a plugin's pure task publishing `sprite-pick@1` joins it. @internal */
59
- export const SPRITE_PICKER_IDS = ['core:task/pick-sprite-similarity@1'];
60
- /**
61
- * Append the sprite tail to a reply spec's builder. The builder must already
62
- * hold an inlet keyed `input` publishing `sessionScope` and an outlet keyed
63
- * `save` publishing `messageId` — every reply spec in the catalog does.
64
- * @experimental
65
- */
66
- export function withSpriteTail(builder) {
67
- return builder
68
- .query('sprites', ($) => C.spritesFor.v1({
69
- scope: $.input.sessionScope,
70
- message: $.save.messageId,
71
- }))
72
- .junction('spriteTail', { on: ($) => $.sprites.main }, (r) => r.when('show', { path: 'has', truthy: true }, (c) => c
73
- .task('spritePick', ($) => C.pickSpriteSimilarity.v1({
74
- choices: $.sprites.choices,
75
- lineVector: $.sprites.lineVector,
76
- labelVectors: $.sprites.labelVectors,
77
- params: slot.params(),
78
- }),
79
- // A declared session setting (§4.11): "Choose sprites",
80
- // stickiness and the floor are the session's to set, in
81
- // session settings beside the turn controls.
82
- { expose: { session: true } })
83
- .outlet('spriteShow', ($) => C.showSprite.v1({
84
- target: $.save.messageId,
85
- pick: $.spriteTail.show.spritePick.main,
86
- }))));
87
- }
88
- /**
89
- * A person's pick (§6): the message menu's **Change sprite**, run as an
90
- * action so the write is receipted and emits `sprite-shown` like any other.
91
- * The host records `source: 'person'` for THIS spec and no other, and checks
92
- * the person may act on the line (the `item` rule), as it does for an edit.
93
- * @experimental
94
- */
95
- export const showSpriteSpec = () => compile(spec(SHOW_SPRITE_SPEC_ID, {
96
- version: SPRITES_VERSION,
97
- taxonomy: { role: 'action' },
98
- })
99
- .inlet('input', C.builtInRequest.v1())
100
- .outlet('write', ($) => C.showSprite.v1({ target: $.input.target, pick: $.input.sprite }))
101
- .build());
102
- //# sourceMappingURL=sprites.js.map
@@ -1,76 +0,0 @@
1
- /**
2
- * The four summarize pipelines: world lore, character lore, scene, history entry.
3
- *
4
- * ## Why four specs and not one with a `loreType` parameter
5
- *
6
- * They are four *namespaces*. Each has its own prompts, its own connection and
7
- * sampling choices per step, and its own configs a user swaps between — which is
8
- * exactly what `world_summarize_configs`, `character_summarize_configs` and
9
- * `scene_summarize_configs` already are. One spec with a discriminator would put
10
- * that difference in a condition somebody has to find, and would give all four a
11
- * single shared prompt set, which is the thing the three tables exist to avoid.
12
- *
13
- * History entry summarization gets the fourth. Today it is a `loreType` the
14
- * summarizer already supports (`"world" | "history" | "character" | "scene"`)
15
- * that falls through to the **scene** config in `sockets/summarize.ts` — so a
16
- * user tuning scene summaries silently retunes history entries. That is a defect
17
- * this split fixes rather than a feature it adds.
18
- *
19
- * ## The two phases, and why the first is a `map`
20
- *
21
- * Messages are cut into token-sized batches and each is drafted *without sight
22
- * of any other*; the ordered drafts are then merged into one narrative. Drafting
23
- * in isolation is what makes a long session summarizable at all — the model never
24
- * holds more than one batch — and the batches genuinely do not depend on each
25
- * other, so `map` states that and lets the connection's own queue decide the
26
- * ordering. A loop would impose a sequence the work does not have.
27
- */
28
- /** @experimental */
29
- export declare const SUMMARIZE_WORLD_SPEC_ID = "core:spec/summarize-world";
30
- /** @experimental */
31
- export declare const SUMMARIZE_CHARACTER_SPEC_ID = "core:spec/summarize-character";
32
- /** @experimental */
33
- export declare const SUMMARIZE_SCENE_SPEC_ID = "core:spec/summarize-scene";
34
- /** @experimental */
35
- export declare const SUMMARIZE_HISTORY_SPEC_ID = "core:spec/summarize-history";
36
- /** @internal */
37
- export declare const SUMMARIZE_VERSION = "1.3.0";
38
- /** @experimental */
39
- export declare const summarizeWorldSpec: () => import("@serene-pub/sdk").SpecDocument;
40
- /** @experimental */
41
- export declare const summarizeCharacterSpec: () => import("@serene-pub/sdk").SpecDocument;
42
- /**
43
- * ⚠ **The cast extraction is ON ICE, not deleted** (plan §2, ruled 2026-09-08).
44
- *
45
- * `extractsCast` is deliberately absent rather than removed: the branch above,
46
- * `core:oracle/extract-cast@1` and its shipped prompt all stay exactly where
47
- * they are, so reviving the step is restoring this one property.
48
- *
49
- * Why it is off. The measured replacement for the *participant* half — the
50
- * roster unioned with speech-gated textual extraction — scored 100% precision
51
- * at 88.5% recall from the sender side and 96.2% recall from the roster side,
52
- * with **zero fabricated people in any configuration**, over 40,000 turns in
53
- * ~661 ms and no model at all. Its failure profile is omission, categorically
54
- * unlike the 24% fabrication that got the acts layer rejected. Until that
55
- * pre-fill has been used in anger the LLM step is disabled rather than dropped.
56
- *
57
- * The *mentioned* half is not coming back at all in this shape: it is derived
58
- * from `message_annotations` now (plan §1) — exactly (scene text × vocabulary),
59
- * invalidated by the freshness triple — rather than asked of a model and stored.
60
- *
61
- * Participants keep coming from where they always did on this path: every
62
- * distinct sender in the scene's span is made a participant by
63
- * `sockets/scenes.ts` and `sockets/summarize.ts` regardless of what any
64
- * extraction said, so turning this off narrows the proposal, it does not empty
65
- * it. The graph build keeps its own Pass 1 extraction for scenes that have no
66
- * stored cast at all.
67
- *
68
- * ⚠ Editing this document does not reach a database that has already seeded —
69
- * publishing is idempotent by `(slug, semver)` — so this ships with a migration
70
- * deleting the `pipeline_spec_versions` row, precedent `0095`/`0100`.
71
- * @experimental
72
- */
73
- export declare const summarizeSceneSpec: () => import("@serene-pub/sdk").SpecDocument;
74
- /** @experimental */
75
- export declare const summarizeHistorySpec: () => import("@serene-pub/sdk").SpecDocument;
76
- //# sourceMappingURL=summarize.d.ts.map
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes