Files
shinyobjectz 3a98e0a52d raea run prints its console, its answer and a throw's message (#168)
raea run's program said nothing: its console went to the log, and raea run's headless App has no log, so every
console line was dropped. The default export's return value was dropped too. A throw printed its stack alone, which on
JavaScriptCore is only the frames, so the message was missing.

- runtime/calls: CONSOLE. While it's on (and ECHO), a script's console goes to the terminal as node's does: log and
  info to stdout, warn and error to stderr (raea-runtime-react's __raea_log). print takes err for a line meant for
  stderr.
- raea-runtime-export: run_bundle_to_terminal turns it on for raea run, raea test and raea blender run. raea check's
  asks and a spec's read keep run_bundle, whose stdout is their answer.
- raea-runtime-bundle: bundle_script's entry (script_entry.ts) prints what the default export returns, a string as it
  is and anything else as indented JSON. A throw prints as error: Name: message, then the stack, on stderr, exit 1.

Checked with the issue's cases on this build: console lines before and after an await, both streams, a returned object
and a returned string, a throw (exit 1, message and stack on stderr), a script with no default export. raea test's
output is unchanged (random-colors.test.ts, 9 pass). The manual's raea run page says all of it, with an example.
2026-11-21 19:11:44 -08:00
..
BL36, BL37, BL38, BL39, GD11, GD12, GD13: Blender and Godot in a raea project: shots drawn by them, the scene sent to them and its changes read back. raea scene export EDIT.tsx -o DIR [--frame N | --at A-B] writes the composition's 3D as scene.json (each part's id, kind, name, TSX line from the bundle's source stamps, placement, material, primitive sizes; other meshes as .glb, models copied with their sidecars; lights, camera, ambient, background; what doesn't cross listed in left) (new crate apps/interchange). raea blender open builds it in Blender through raea/blender (sdk/blender scene.ts: Blender's own meshes, Principled BSDFs, lights and camera keyed on --at, raea_id on each object) and opens the .blend; raea blender back and raea godot back read the file back and say each move, colour, light, camera and deletion as an edit at its TSX line, and write objects made there as media/NAME.glb. raea godot export writes a Godot project that runs (native meshes, StandardMaterial3D, an AnimationPlayer for --at, still channels left out, nodes named for their parts); raea godot run takes --scene with no script (host/none.ts). <BlenderShot> and <GodotShot> (raea/blender/shot, raea/godot/shot) render their frames once per bundle, file, props, size, fps and length, sized from their Sequence's end, kept in the asset store (native calls blender.shot, godot.shot; raea blender shot, raea godot shot). register_natives() gathers every native call a composition's thread answers, so raea types lists them all. Tests: apps/interchange (9), apps/engines
2026-11-11 09:35:16 -08:00