@serene-pub/sdk 0.6.0-pr-4 → 0.6.0-pr-6
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/README.md +23 -19
- package/dist/actions.d.ts +178 -69
- package/dist/actions.js +109 -40
- package/dist/annexFields.d.ts +12 -5
- package/dist/annexFields.js +6 -2
- package/dist/announce.d.ts +220 -30
- package/dist/announce.js +212 -7
- package/dist/attributes.d.ts +290 -11
- package/dist/attributes.js +317 -32
- package/dist/bands.d.ts +41 -6
- package/dist/bands.js +83 -33
- package/dist/bridges.d.ts +61 -0
- package/dist/bridges.js +112 -0
- package/dist/builder.d.ts +436 -106
- package/dist/builder.js +389 -46
- package/dist/cadences.d.ts +578 -0
- package/dist/cadences.js +1111 -0
- package/dist/candidates.d.ts +5 -3
- package/dist/candidates.js +3 -2
- package/dist/capabilities.d.ts +93 -15
- package/dist/capabilities.js +57 -6
- package/dist/checkMethods.d.ts +240 -0
- package/dist/checkMethods.js +362 -0
- package/dist/clauses.d.ts +2 -1
- package/dist/clauses.js +2 -1
- package/dist/component.d.ts +24 -7
- package/dist/component.js +16 -6
- package/dist/componentBuild.d.ts +16 -5
- package/dist/componentBuild.js +14 -5
- package/dist/componentClient.d.ts +61 -30
- package/dist/componentClient.js +11 -1
- package/dist/componentImports.d.ts +8 -5
- package/dist/componentImports.js +23 -4
- package/dist/componentModule.js +2 -1
- package/dist/componentWire.d.ts +2 -1
- package/dist/componentWire.js +34 -2
- package/dist/composerStates.d.ts +96 -0
- package/dist/composerStates.js +190 -0
- package/dist/conditions.d.ts +424 -0
- package/dist/conditions.js +521 -0
- package/dist/config.d.ts +69 -19
- package/dist/config.js +64 -26
- package/dist/connections.d.ts +9 -4
- package/dist/connections.js +7 -4
- package/dist/conversions.d.ts +41 -0
- package/dist/conversions.js +50 -0
- package/dist/declarations.d.ts +70 -18
- package/dist/declarations.js +194 -24
- package/dist/descriptors.d.ts +427 -100
- package/dist/descriptors.js +344 -59
- package/dist/dev.d.ts +6 -5
- package/dist/dev.js +6 -5
- package/dist/document.d.ts +121 -27
- package/dist/document.js +77 -24
- package/dist/dowry.d.ts +241 -0
- package/dist/dowry.js +315 -0
- package/dist/engines.d.ts +16 -7
- package/dist/engines.js +6 -4
- package/dist/entities.d.ts +156 -0
- package/dist/entities.js +259 -0
- package/dist/eventMapLaws.d.ts +19 -8
- package/dist/eventMapLaws.js +9 -6
- package/dist/events.d.ts +648 -40
- package/dist/events.js +451 -34
- package/dist/executor.d.ts +123 -41
- package/dist/executor.js +210 -103
- package/dist/exposure.d.ts +128 -0
- package/dist/exposure.js +168 -0
- package/dist/extension.d.ts +99 -35
- package/dist/extension.js +43 -9
- package/dist/facets.d.ts +2 -1
- package/dist/facets.js +4 -2
- package/dist/fit.d.ts +198 -0
- package/dist/fit.js +351 -0
- package/dist/foldedSections.d.ts +4 -2
- package/dist/foldedSections.js +2 -1
- package/dist/functions.d.ts +554 -0
- package/dist/functions.js +712 -0
- package/dist/genres.d.ts +408 -130
- package/dist/genres.js +412 -108
- package/dist/guardedConnection.d.ts +4 -3
- package/dist/guardedConnection.js +4 -3
- package/dist/handlebarsReach.d.ts +1 -1
- package/dist/handlebarsReach.js +1 -1
- package/dist/hash.d.ts +16 -5
- package/dist/hash.js +14 -4
- package/dist/hookGrants.d.ts +4 -3
- package/dist/hookGrants.js +7 -5
- package/dist/hooks.d.ts +42 -21
- package/dist/hooks.js +17 -12
- package/dist/hostElements.d.ts +47 -17
- package/dist/hostElements.js +62 -17
- package/dist/hostState.d.ts +110 -0
- package/dist/hostState.js +140 -0
- package/dist/i18n.d.ts +5 -3
- package/dist/i18n.js +5 -3
- package/dist/identity.d.ts +5 -4
- package/dist/identity.js +5 -4
- package/dist/index.d.ts +26 -0
- package/dist/index.js +55 -0
- package/dist/jsonSchema.d.ts +178 -0
- package/dist/jsonSchema.js +558 -0
- package/dist/layout.d.ts +36 -15
- package/dist/layout.js +2 -2
- package/dist/loadouts.d.ts +97 -0
- package/dist/loadouts.js +81 -0
- package/dist/media.d.ts +153 -16
- package/dist/media.js +47 -2
- package/dist/messageBlocks.d.ts +223 -37
- package/dist/messageBlocks.js +231 -24
- package/dist/migration.d.ts +16 -8
- package/dist/migration.js +14 -8
- package/dist/names.d.ts +2 -1
- package/dist/names.js +2 -1
- package/dist/nodeInput.d.ts +2 -1
- package/dist/nodeInput.js +2 -1
- package/dist/participants.d.ts +54 -24
- package/dist/participants.js +27 -14
- package/dist/personGate.d.ts +2 -1
- package/dist/personGate.js +2 -1
- package/dist/pluginHarness.d.ts +22 -35
- package/dist/pluginHarness.js +18 -143
- package/dist/pluginPermissions.d.ts +2 -1
- package/dist/pluginPermissions.js +13 -2
- package/dist/pluginRuleRef.d.ts +2 -2
- package/dist/pluginRuleRef.js +1 -1
- package/dist/predicates.d.ts +16 -11
- package/dist/predicates.js +7 -6
- package/dist/preview.d.ts +53 -7
- package/dist/preview.js +54 -13
- package/dist/primers.d.ts +177 -0
- package/dist/primers.js +265 -0
- package/dist/promptBlocks.d.ts +5 -3
- package/dist/promptBlocks.js +5 -3
- package/dist/rankingDecisions.d.ts +2 -1
- package/dist/rankingDecisions.js +2 -1
- package/dist/receipt.d.ts +76 -29
- package/dist/receipt.js +9 -4
- package/dist/receiverRules.js +3 -2
- package/dist/refs.d.ts +42 -9
- package/dist/refs.js +45 -13
- package/dist/registrations.d.ts +384 -0
- package/dist/registrations.js +625 -0
- package/dist/registry.d.ts +42 -23
- package/dist/registry.js +7 -5
- package/dist/repertoires.d.ts +502 -0
- package/dist/repertoires.js +666 -0
- package/dist/review.d.ts +16 -5
- package/dist/review.js +11 -4
- package/dist/rulesetDocument.d.ts +95 -0
- package/dist/rulesetDocument.js +190 -0
- package/dist/rulesetSections.d.ts +597 -0
- package/dist/rulesetSections.js +1249 -0
- package/dist/rulesetTemplates.d.ts +161 -0
- package/dist/rulesetTemplates.js +242 -0
- package/dist/rulesets.d.ts +899 -0
- package/dist/rulesets.js +1378 -0
- package/dist/sampling.d.ts +54 -0
- package/dist/sampling.js +95 -3
- package/dist/sceneSettings.d.ts +320 -0
- package/dist/sceneSettings.js +433 -0
- package/dist/scope.d.ts +50 -7
- package/dist/scope.js +22 -3
- package/dist/scripts.d.ts +112 -22
- package/dist/scripts.js +135 -19
- package/dist/sessionDossier.d.ts +638 -0
- package/dist/sessionDossier.js +33 -0
- package/dist/sessionLayout.d.ts +492 -55
- package/dist/sessionLayout.js +697 -90
- package/dist/sessionSettings.d.ts +32 -5
- package/dist/settings.d.ts +66 -20
- package/dist/settings.js +19 -12
- package/dist/settingsSlot.d.ts +11 -8
- package/dist/settingsSlot.js +11 -8
- package/dist/shapes.d.ts +139 -37
- package/dist/shapes.js +152 -38
- package/dist/sheets.d.ts +4 -2
- package/dist/sheets.js +6 -3
- package/dist/statShapes.d.ts +10 -2
- package/dist/statShapes.js +10 -2
- package/dist/status.d.ts +27 -9
- package/dist/status.js +20 -6
- package/dist/storage.d.ts +11 -67
- package/dist/storage.js +9 -13
- package/dist/storyTime.d.ts +13 -7
- package/dist/storyTime.js +11 -6
- package/dist/strokes.d.ts +176 -0
- package/dist/strokes.js +281 -0
- package/dist/surfaces.d.ts +54 -25
- package/dist/surfaces.js +3 -3
- package/dist/template.d.ts +9 -5
- package/dist/template.js +5 -3
- package/dist/templateCheck.d.ts +2 -2
- package/dist/templateCheck.js +2 -2
- package/dist/templateFit.d.ts +37 -8
- package/dist/templateFit.js +92 -8
- package/dist/templateIds.d.ts +3 -3
- package/dist/templateIds.js +3 -3
- package/dist/templateScopeAt.d.ts +22 -12
- package/dist/templateScopeAt.js +32 -19
- package/dist/testing.d.ts +11 -4
- package/dist/testing.js +13 -5
- package/dist/ties.d.ts +210 -0
- package/dist/ties.js +300 -0
- package/dist/tokenizers.d.ts +2 -2
- package/dist/tokenizers.js +2 -2
- package/dist/turnLock.d.ts +4 -2
- package/dist/turnLock.js +2 -1
- package/dist/turnOrder.d.ts +39 -22
- package/dist/turnOrder.js +30 -13
- package/dist/validate.d.ts +11 -8
- package/dist/validate.js +195 -29
- package/dist/values.d.ts +17 -8
- package/dist/values.js +11 -6
- package/dist/variables.d.ts +46 -7
- package/dist/variables.js +87 -6
- package/dist/verdicts.d.ts +20 -13
- package/dist/verdicts.js +17 -11
- package/dist/vocabularies.d.ts +192 -0
- package/dist/vocabularies.js +326 -0
- package/dist/widgetDecls.d.ts +20 -4
- package/dist/widgetDecls.js +6 -2
- package/dist/widgets.d.ts +1580 -111
- package/dist/widgets.js +113 -18
- package/dist/wire.d.ts +13 -6
- package/dist/wire.js +3 -3
- package/dist/worldinfo.d.ts +11 -6
- package/dist/worldinfo.js +8 -4
- package/host-elements.d.ts +101 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
A working draft of the SDK described in `/docs/pipeline` (00–17). **Preview: breaking
|
|
4
4
|
changes are expected before 0.7.0.**
|
|
5
5
|
|
|
6
|
+
New here? Read the [vocabulary](../guides/vocabulary.md) before the API reference. There, 🚧
|
|
7
|
+
marks a shape that may still change before 1.0, and ⏳ marks one that is going away, with the
|
|
8
|
+
version named.
|
|
9
|
+
|
|
6
10
|
```bash
|
|
7
11
|
npm install
|
|
8
12
|
npm test # tsc --noEmit, then 310 assertions across 109 use cases
|
|
@@ -336,25 +340,25 @@ tags belonging to an inner scope must not be stripped by an outer pass.
|
|
|
336
340
|
entries have no `depth` field.** An entry-schema addition in the lorebook model, not pipeline
|
|
337
341
|
work.
|
|
338
342
|
|
|
339
|
-
## Known gaps
|
|
340
|
-
|
|
341
|
-
Unimplemented, not undecided
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
- **
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
-
|
|
356
|
-
|
|
357
|
-
|
|
343
|
+
## Known gaps
|
|
344
|
+
|
|
345
|
+
What the SDK still does not do, as of 2026-10-13. Unimplemented, not undecided; the
|
|
346
|
+
2026-08 draft's list is gone because most of it has since been built (real tokenizers are
|
|
347
|
+
registered by the host, `recursionDepth` and inclusion groups run in `worldinfo.ts`, a scope
|
|
348
|
+
chain lets a map's iterations run concurrently, and a `secret` setting is ciphertext at rest
|
|
349
|
+
and a handle in a hook's code).
|
|
350
|
+
|
|
351
|
+
- **An in-process timeout cuts the result off, not the code.** When a node's clock runs out
|
|
352
|
+
its own `signal` aborts and the executor moves on; a handler that never reads its signal
|
|
353
|
+
keeps running until it returns. Only the host's sandboxes bound CPU.
|
|
354
|
+
- **No MCP client in the SDK.** `mcp-tool` and `mcp-resource` are provisional node
|
|
355
|
+
definitions: the `mcp` connection shape and the ports exist, and the host supplies the
|
|
356
|
+
client. The app does not ship one yet.
|
|
357
|
+
- **The template engine in `template.ts` is minimal by design** — `{{ a.b }}`, `{% for %}`
|
|
358
|
+
and `{% if %}`, enough for variable awareness in an editor. Rendering a real template is
|
|
359
|
+
the host's; `/template-check` parses Handlebars and Liquid for the same checks.
|
|
360
|
+
- **Depth positioning of a lore entry** is expressed in a task because lorebook entries
|
|
361
|
+
carry no `depth` field. The gap is in the lorebook model, not the pipeline.
|
|
358
362
|
|
|
359
363
|
## Two bugs the tests caught while writing this
|
|
360
364
|
|