Looking inside a running game (neux inspect)

A game started with neux run (or any game given --live DIR) can be watched from outside:

neux inspect [PROJECT]                     the hierarchy: every object, its components, who is whose child
neux inspect [PROJECT] --object player     the values of the objects whose name has "player" in it (or a GUID start)
neux inspect [PROJECT] --stop              stop watching
neux inspect --inbox DIR                   the same for a game sharing a folder (a Simulator, another window)
neux stats [PROJECT]                       frames a second and where the time goes (the profiler)

While a watch is on, the game writes its world as a scene file into its inbox about every second and a half (state.json); nothing is written when nobody asks. It reaches a phone the same way hot reload does (devicectl for an iPhone, adb for Android). Checked end to end on a window of this Mac (a video player's time moved between two looks); the phone routes use the same file reading as neux stats but were not run.

In the editor: Window > Remote Inspector adds a REMOTE tab with the same hierarchy; a click on an object lists its components' values (the world is asked for every 2 seconds on a thread; closing the tab stops the watching; NEUX_REMOTE_INBOX=DIR points it at a folder instead of the last Run's device). Gate remote-inspector.

Not done: changing a value from outside (hot reload already puts scene changes on live objects), following one object as it changes, a live chart of a value.