Skip to content

[codex] Add Studio common events runtime#312

Closed
RSamaium wants to merge 2 commits into
v5from
issue-29-common-events
Closed

[codex] Add Studio common events runtime#312
RSamaium wants to merge 2 commits into
v5from
issue-29-common-events

Conversation

@RSamaium

@RSamaium RSamaium commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the RPGJS Studio runtime side required by rpgjs/studio#29.

  • Adds call_common_event and spawn_common_event runtime block schemas and executors.
  • Extends the block execution context with getCommonEvent, spawnCommonEvent, and recursion state.
  • Indexes commonEvents delivered by Studio map payloads.
  • Uses map.createDynamicEvent(...) for non-persistent spawned common event objects.
  • Updates the RPGJS Studio skill references for database, map payload, and block schema usage.

Impact

Studio-generated maps can execute hydrated common event workflows and spawn visible common event objects at runtime without extra Studio API calls.

Validation

  • pnpm --dir packages/studio build -> exits 0 and generates bundles
  • The build still prints existing declaration errors for package dependencies/types such as json-schema-to-ts, .ce components, and RPGJS type mismatches; these were not introduced by this change.

Companion Studio PR: rpgjs/studio#30.

@RSamaium RSamaium closed this Jun 4, 2026
Repository owner locked and limited conversation to collaborators Jun 4, 2026
@RSamaium RSamaium deleted the issue-29-common-events branch June 4, 2026 08:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant