@serene-pub/sdk 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.
Files changed (106) hide show
  1. package/dist/annexFields.d.ts +14 -0
  2. package/dist/annexFields.js +7 -0
  3. package/dist/announce.d.ts +62 -16
  4. package/dist/announce.js +90 -4
  5. package/dist/appletCard.d.ts +17 -0
  6. package/dist/appletCard.js +60 -0
  7. package/dist/attributes.d.ts +3 -3
  8. package/dist/attributes.js +1 -1
  9. package/dist/builder.d.ts +28 -13
  10. package/dist/builder.js +57 -5
  11. package/dist/cadences.d.ts +8 -1
  12. package/dist/cadences.js +27 -2
  13. package/dist/characterProfile.d.ts +137 -0
  14. package/dist/characterProfile.js +24 -0
  15. package/dist/component.d.ts +1 -1
  16. package/dist/componentImports.d.ts +1 -1
  17. package/dist/componentImports.js +2 -0
  18. package/dist/componentWire.js +28 -0
  19. package/dist/conditions.d.ts +5 -1
  20. package/dist/conditions.js +7 -0
  21. package/dist/declarations.d.ts +63 -1
  22. package/dist/declarations.js +176 -7
  23. package/dist/descriptors.d.ts +145 -6
  24. package/dist/descriptors.js +106 -5
  25. package/dist/document.d.ts +9 -1
  26. package/dist/document.js +44 -1
  27. package/dist/events.d.ts +82 -8
  28. package/dist/events.js +42 -5
  29. package/dist/executor.d.ts +27 -0
  30. package/dist/executor.js +32 -8
  31. package/dist/exposure.d.ts +35 -1
  32. package/dist/exposure.js +64 -2
  33. package/dist/extension.d.ts +30 -2
  34. package/dist/extension.js +3 -1
  35. package/dist/fit.d.ts +4 -1
  36. package/dist/fit.js +43 -1
  37. package/dist/functions.d.ts +7 -1
  38. package/dist/functions.js +3 -1
  39. package/dist/genres.d.ts +67 -2
  40. package/dist/genres.js +160 -8
  41. package/dist/hookGrants.js +10 -0
  42. package/dist/hostElements.d.ts +3 -3
  43. package/dist/hostElements.js +12 -4
  44. package/dist/index.d.ts +5 -0
  45. package/dist/index.js +10 -0
  46. package/dist/layout.d.ts +18 -0
  47. package/dist/libraryDraft.d.ts +2 -0
  48. package/dist/libraryDraft.js +5 -1
  49. package/dist/lorebookFile.d.ts +8 -0
  50. package/dist/lorebookFile.js +21 -0
  51. package/dist/participants.d.ts +83 -8
  52. package/dist/participants.js +9 -5
  53. package/dist/pluginPermissions.js +1 -1
  54. package/dist/promptBlocks.d.ts +5 -1
  55. package/dist/promptBlocks.js +23 -8
  56. package/dist/provisos.d.ts +92 -0
  57. package/dist/provisos.js +273 -0
  58. package/dist/receiverRules.js +1 -1
  59. package/dist/registrations.d.ts +154 -14
  60. package/dist/registrations.js +293 -23
  61. package/dist/registry.js +6 -3
  62. package/dist/repertoires.d.ts +13 -1
  63. package/dist/repertoires.js +5 -1
  64. package/dist/rulesetDocument.d.ts +11 -0
  65. package/dist/rulesetDocument.js +17 -0
  66. package/dist/rulesetSections.d.ts +12 -0
  67. package/dist/rulesetSections.js +8 -0
  68. package/dist/rulesets.js +6 -0
  69. package/dist/sceneSettings.d.ts +7 -1
  70. package/dist/sceneSettings.js +10 -5
  71. package/dist/sessionDossier.d.ts +159 -2
  72. package/dist/sessionLayout.d.ts +296 -85
  73. package/dist/sessionLayout.js +397 -133
  74. package/dist/sessionSettings.d.ts +18 -0
  75. package/dist/settings.d.ts +28 -1
  76. package/dist/settings.js +50 -2
  77. package/dist/shapes.d.ts +15 -1
  78. package/dist/shapes.js +15 -1
  79. package/dist/sheetLatitude.d.ts +148 -0
  80. package/dist/sheetLatitude.js +161 -0
  81. package/dist/speech.d.ts +14 -3
  82. package/dist/storyTime.d.ts +77 -1
  83. package/dist/storyTime.js +117 -8
  84. package/dist/surfaces.d.ts +49 -2
  85. package/dist/surfaces.js +3 -0
  86. package/dist/template.d.ts +38 -1
  87. package/dist/templateCheck.d.ts +24 -0
  88. package/dist/templateCheck.js +465 -10
  89. package/dist/templateFit.js +8 -1
  90. package/dist/templateIds.d.ts +6 -0
  91. package/dist/templateIds.js +9 -0
  92. package/dist/turnLock.d.ts +10 -1
  93. package/dist/turnLock.js +6 -1
  94. package/dist/turnOrder.d.ts +37 -4
  95. package/dist/turnOrder.js +49 -11
  96. package/dist/validate.d.ts +4 -2
  97. package/dist/validate.js +84 -11
  98. package/dist/variableLayouts.d.ts +160 -0
  99. package/dist/variableLayouts.js +202 -0
  100. package/dist/variables.d.ts +237 -20
  101. package/dist/variables.js +292 -33
  102. package/dist/widgetDecls.js +12 -0
  103. package/dist/widgets.d.ts +449 -47
  104. package/dist/widgets.js +31 -0
  105. package/host-elements.d.ts +4 -2
  106. package/package.json +1 -1
package/dist/widgets.js CHANGED
@@ -124,6 +124,14 @@ const BASE_SECTIONS = {
124
124
  * @ruling R75
125
125
  */
126
126
  export const WIDGET_BASE_SECTIONS = Object.freeze(Object.keys(BASE_SECTIONS));
127
+ /** 🚧 (M3b) The longest `persona.name` a `create-session` request may carry, in characters after trimming; the host refuses longer in words.
128
+ * @experimental
129
+ */
130
+ export const CREATE_SESSION_PERSONA_NAME_MAX = 80;
131
+ /** 🚧 (M3b) The longest `persona.description` a `create-session` request may carry, in characters after trimming; the host refuses longer in words.
132
+ * @experimental
133
+ */
134
+ export const CREATE_SESSION_PERSONA_DESCRIPTION_MAX = 2000;
127
135
  /**
128
136
  * The askers of every request kind β€” the marking a host enforces
129
137
  * ({@link widgetRequestRefusal}). Typed off {@link WidgetRequests}, so a kind
@@ -158,10 +166,12 @@ export const WIDGET_REQUEST_ASKERS = Object.freeze({
158
166
  // 🚧 The gentler send: prefill the composer, on a channel the widget may write.
159
167
  draft: Object.freeze({ scope: 'channel', write: true }),
160
168
  'switch-persona': 'core',
169
+ 'write-as': 'core',
161
170
  'add-persona': 'core',
162
171
  // 🚧 A guest's seat, opened by name (Lair rewrite D5) β€” core's composer only.
163
172
  'take-seat': 'core',
164
173
  'fire-turn': 'core',
174
+ 'stop-run': 'core',
165
175
  // 🚧 Back Β· Forward (RF fix 5): the session's history β€” core's conversation only.
166
176
  'rewind-turn': 'core',
167
177
  'forward-turn': 'core',
@@ -184,6 +194,12 @@ export const WIDGET_REQUEST_ASKERS = Object.freeze({
184
194
  'set-entry-marks': 'core',
185
195
  'authors-note': 'core',
186
196
  'set-authors-note': 'core',
197
+ 'session-scenario': 'core',
198
+ 'set-session-scenario': 'core',
199
+ // 🚧 The Messages widget's shown channel, for the Composer and Turn line beside it.
200
+ 'show-channel': 'core',
201
+ // 🚧 A reading widget's place, for the scene beside it.
202
+ 'show-line': 'core',
187
203
  // 🚧 Chronicle (W3): reading the session's history is reading its lore;
188
204
  // moving its clock, starting an entry and the graph review act as the viewer.
189
205
  'history-entries': Object.freeze({ scope: 'lore' }),
@@ -191,6 +207,7 @@ export const WIDGET_REQUEST_ASKERS = Object.freeze({
191
207
  'start-history-entry': 'core',
192
208
  'extend-graph': 'core',
193
209
  'summarize-scenes': 'core',
210
+ 'compile-history-entry': 'core',
194
211
  'decide-scene-cue': 'core',
195
212
  // 🚧 Places (W4): reading the session's places is reading its lore.
196
213
  'session-places': Object.freeze({ scope: 'lore' }),
@@ -204,10 +221,13 @@ export const WIDGET_REQUEST_ASKERS = Object.freeze({
204
221
  'set-backdrop': 'core',
205
222
  // 🚧 Stats (2026-10-17): a seat's portrait is session state β€” core's only.
206
223
  'set-owner-face': 'core',
224
+ 'show-hidden-stats': 'core',
207
225
  // 🚧 Backdrop (D3, 2026-10-12): the session's generated pictures, for its chooser β€” core's only.
208
226
  'session-images': 'core',
209
227
  // 🚧 While you were away (A7, R23; lane 7): what the session's routines did β€” core's only for now.
210
228
  'routine-log': 'core',
229
+ 'session-runs': 'core',
230
+ 'session-run-steps': 'core',
211
231
  // 🚧 M0 (SHAPES L12 Seams): a file in, to the plugin's handler; a file out, as a download.
212
232
  'file-pick': 'any',
213
233
  'file-save': 'any',
@@ -261,9 +281,11 @@ export const WIDGET_REQUEST_APIS = Object.freeze({
261
281
  'remove-attachment': 'session',
262
282
  draft: 'session',
263
283
  'switch-persona': 'session',
284
+ 'write-as': 'session',
264
285
  'add-persona': 'session',
265
286
  'take-seat': 'session',
266
287
  'fire-turn': 'session',
288
+ 'stop-run': 'session',
267
289
  'rewind-turn': 'session',
268
290
  'forward-turn': 'session',
269
291
  'decide-proposal': 'session',
@@ -279,11 +301,17 @@ export const WIDGET_REQUEST_APIS = Object.freeze({
279
301
  'set-entry-marks': 'session',
280
302
  'authors-note': 'session',
281
303
  'set-authors-note': 'session',
304
+ 'session-scenario': 'session',
305
+ 'set-session-scenario': 'session',
306
+ 'show-channel': 'session',
307
+ // 🚧 A reading widget's place, for the scene beside it.
308
+ 'show-line': 'session',
282
309
  'history-entries': 'session',
283
310
  'set-story-clock': 'session',
284
311
  'start-history-entry': 'session',
285
312
  'extend-graph': 'session',
286
313
  'summarize-scenes': 'session',
314
+ 'compile-history-entry': 'session',
287
315
  'decide-scene-cue': 'session',
288
316
  'session-places': 'session',
289
317
  'channel-lanes': 'session',
@@ -291,8 +319,11 @@ export const WIDGET_REQUEST_APIS = Object.freeze({
291
319
  'set-chosen-image': 'session',
292
320
  'set-backdrop': 'session',
293
321
  'set-owner-face': 'session',
322
+ 'show-hidden-stats': 'session',
294
323
  'session-images': 'session',
295
324
  'routine-log': 'session',
325
+ 'session-runs': 'session',
326
+ 'session-run-steps': 'session',
296
327
  'file-pick': 'ui',
297
328
  'file-save': 'ui',
298
329
  'session-fullscreen': 'ui',
@@ -620,7 +620,7 @@ export interface SpHostElements {
620
620
  slot?: string
621
621
  }
622
622
  /**
623
- * 🚧 A sound player (1.3, O11). `src` is an app media URL (`/media/…`) β€” never another host, as `img`; `controls` draws the browser's own; `preload` is `none` Β· `metadata` Β· `auto`. Name it (`aria-label`). `error` (nothing carried) is the file failing to load. 🚧 `autoplay` (core's alone; speech build 2026-10-28) plays it once it loads, as far as the browser allows β€” the newest spoken line under Read aloud: Make and play. 🚧 `loadedmetadata`, `play`, `pause`, `ended` and `timeupdate` (1.7; speech polish 2026-10-29) carry `{ currentTime, duration, paused }` β€” seconds, seconds (0 until known), and whether it is paused; `timeupdate` arrives about four times a second. 🚧 `playing` (1.8; heading audio control 2026-10-29; core's alone) β€” present, the page plays it; absent after present, the page pauses it. An element that lands without it is left alone, so `autoplay` still plays. A play the browser refuses is answered with a `pause` event. The page plays one sound at a time: another player starting pauses this one, and its `pause` arrives. The element's own `play` / `pause` / `ended` events stay the truth; to start over, draw a fresh element.
623
+ * 🚧 A sound player (1.3, O11). `src` is an app media URL (`/media/…`) β€” never another host, as `img`; `controls` draws the browser's own; `preload` is `none` Β· `metadata` Β· `auto`. Name it (`aria-label`). `error` (nothing carried) is the file failing to load. 🚧 `autoplay` (core's alone; speech build 2026-10-28) plays it once it loads, as far as the browser allows β€” the newest spoken line under Read aloud: Make and play. 🚧 `loadedmetadata`, `play`, `pause`, `ended` and `timeupdate` (1.7; speech polish 2026-10-29) carry `{ currentTime, duration, paused }` β€” seconds, seconds (0 until known), and whether it is paused; `timeupdate` arrives about four times a second. 🚧 `playing` (1.8; heading audio control 2026-10-29; core's alone) β€” present, the page plays it; absent after present, the page pauses it. An element that lands without it is left alone, so `autoplay` still plays. A play the browser refuses is answered with a `pause` event. The page plays one sound at a time: another player starting pauses this one, and its `pause` arrives. The element's own `play` / `pause` / `ended` events stay the truth; to start over, draw a fresh element. 🚧 `playlist` (1.10, spoken audio as an ordered list of files) β€” space-separated app media URLs, each judged as `src`; with it the PAGE owns `src`: it plays the files in order on the same element, moving to the next in its own `ended` handler, skipping one that fails to load, and putting the first back after the last. On a playlist element the events' detail adds `playlistIndex` (0-based) and `playlistLength`, and `pause` Β· `ended` Β· `timeupdate` Β· `loadedmetadata` of a move between files are not delivered, so `ended` arrives once, after the last file; `error` carries `{ playlistIndex, playlistLength }` for the file that failed.
624
624
  * Events: `error`, `play`, `pause`, `ended`, `timeupdate`, `loadedmetadata`.
625
625
  */
626
626
  'audio': {
@@ -638,6 +638,7 @@ export interface SpHostElements {
638
638
  'preload'?: SpAttr
639
639
  'autoplay'?: SpAttr
640
640
  'playing'?: SpAttr
641
+ 'playlist'?: SpAttr
641
642
  'class'?: SpAttr
642
643
  slot?: string
643
644
  }
@@ -859,7 +860,7 @@ export interface SpHostElements {
859
860
  slot?: string
860
861
  }
861
862
  /**
862
- * A host-owned searchable select. `input` carries `{ query }` as the person types; `change` carries `{ value }`.
863
+ * A host-owned searchable select. `input` carries `{ query }` as the person types; `change` carries `{ value }`. `trigger-label` names the button that opens the list for a screen reader (absent: "Show options for β€Ήlabelβ€Ί" when `label` is set).
863
864
  * Children: `<sp-option>`.
864
865
  * Parts: `.sp-combobox`.
865
866
  * Events: `input`, `change`.
@@ -869,6 +870,7 @@ export interface SpHostElements {
869
870
  'placeholder'?: SpAttr
870
871
  'disabled'?: SpAttr
871
872
  'label'?: SpAttr
873
+ 'trigger-label'?: SpAttr
872
874
  'class'?: SpAttr
873
875
  slot?: string
874
876
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serene-pub/sdk",
3
- "version": "0.6.0-pr-7",
3
+ "version": "0.6.0-pr-9",
4
4
  "description": "Author Serene Pub pipelines and plugins: nodes, specs, the executor, and the author-side test harness.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/SerenePub/serene-pub-sdk/tree/main/sdk#readme",