SplitScript reference / Migration / Version-labelled state blocks

Version-labelled state blocks

Migration from ASL

Source pattern

Look for the ASL concept Version-labelled state blocks in the source. The semantic difference below is more important than a token-for-token rewrite.

Canonical SplitScript

Use the canonical language and API symbols linked below.

Semantic difference

Use named layouts in one state block and return the selected layout from onAttach.

Supported hosts

This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.