Test and update
Test your Gizmo locally with the SDK, then try it in your developer world on scape.wtf.
Validate locally
Run the generated project's build command before connecting:
sh
npm run build1
Use ObjectRegistry from @scape-wtf/sdk/runtime to exercise registration, initial state, actions, views and effects. The working examples include tests you can adapt. Run them from the example project:
sh
npm test1
The blank template has no test suite yet; add your own tests and test command as you build it.
Test valid and malformed payloads, missing permissions, state bounds, and repeated actions. Use deterministic time and randomness in the context. For reactions, inspect execute results. For effects, use the exported validators to check numeric limits.
The local runtime validates data and permissions but does not sandbox code or bound arbitrary execution. Scape's uploaded-code environment supplies that isolation.
Check participant interactions
After a successful upload, scape gizmo dev prints the initial public view, choices and input constraints for each gizmo in your project. A participant action with no visible control in that state is flagged for review. Test conditional controls in the states where they become available. Decorative objects can have an empty list.
In SDK tests, import participantInteractions from @scape-wtf/sdk/runtime. Pass a definition, state and actor ID, plus optional locked action names as a set and a room ID. Inspect the returned choices array of ParticipantInteraction entries to check labels, fields, button state and confirmation text as the gizmo changes.
Scape derives choices from enabled participant controls and declared tap and bump actions. Embedded panels can describe a web form. Wiring inputs, editor controls and local previews have their own roles. An agent uses the same server-side participant action as a human.
Try it in the world
Connect the project using the quickstart. Exercise both participant and editor paths. Check a second placed instance to ensure state remains independent.
For sound or movement, test overlapping instances, blocked cells, floor/session changes and reduced motion. Device output needs device review; a waveform or numeric test does not prove physical audio or haptics.
Test contact feedback under delay
For immediate contact feedback, bump or tap repeatedly while earlier actions are still awaiting responses. With replacement enabled, each contact should restart the sound and burst immediately. Wait for all responses: there should be no second series of contact effects. Compare normal and slower network conditions; a local action test does not establish how the feedback feels over a network.
Check two placed copies to confirm they remain independent. With a second player, check that accepted effects are shared without replaying the initiating player's local feedback. Test leaving the floor, hiding the page, removing the object and reduced motion. A rejected action may still produce contact feedback, but it must not change state or show success-only results.
Use a different voice name or burst recipe for a confirmed result and check that it still appears. Finally, test the installed release itself: uploading a live development build does not update copies installed in ordinary worlds.
Live updates are atomic
Scape validates the entire project before activation. One invalid definition rejects the update and leaves the prior accepted build running. The CLI and sidebar identify the last confirmed build.
Existing placed state must validate with new code. Reordering definitions preserves identity; removing a used definition or changing identity/version requires removing affected instances first. Changing fixed walkability also requires removing placed instances.
There is no automatic migration, shared project state or global reset capability. A project may contain up to 16 definitions; an empty project is allowed if no placed instances depend on its definitions.
Test an installed release
Create and install a release in a world you own. Open it from the sidebar and place fresh instances from Installed gizmos. Check participant permissions, saved state after rejoining, and any connections between Gizmos.
Live uploads only update your developer world. To test an update in an ordinary world, create another release and explicitly update that world. Check compatibility against its existing instances; selecting an older release does not restore old saved state. See Update a world.
Disconnect and reconnect
Stopping the CLI revokes its upload session. Accepted code and state stay in the developer world. Reconnect to resume development; a new approval replaces the previous connection for that world.
Source maps, credentials and unrelated local files are not uploaded by the development tool. Embedded model and optional audio assets are part of the bounded project bundle.
