effectcraft/crates/script/src
bflatastic 3aaa840471 Scripting: script.run reports .jsxbin scripts as unsupported (#176)
`effectcraft-cli script FILE` passes the file's text to script.run, which
ran a compiled .jsxbin script as JavaScript and failed with "SyntaxError:
unexpected '@'" at 1:1, while file.runScript already says .jsxbin isn't
supported.

script.run now refuses a script named `.jsxbin` or whose text starts with
the `@JSXBIN@` header, with file.runScript's message (one shared
constant). The check is in the command, so the CLI with or without
--bridge, MCP run_script and the Script Console all report it.

Tests: engine_entry_points (by header and by name), script_file_and_eval
(the CLI exits 1 with the message and no SyntaxError).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:48:17 +07:00
..
lib.rs Never crash: scripts nested too deeply return an error instead of overflowing the stack 2026-10-04 13:26:05 -04:00
matchnames.rs M13.15: qa essential graphics template via CLI script 2026-10-03 12:30:11 -04:00
model.rs M4.9: Preserve frame rate when nested or in render queue, Preserve resolution when nested 2026-10-05 01:33:14 +07:00
prelude.js Merge pull request #10 from storybored379/pr/spatial-tangent-getter-names 2026-10-05 12:11:18 +07:00
runtime.rs Never crash: scripts nested too deeply return an error instead of overflowing the stack 2026-10-04 13:26:05 -04:00
scriptui.js Merge main into M13.11 2026-10-03 10:29:28 -04:00
socket.rs M13.12: script socket port validation, resource-string trailing commas, parser and socket edge-case tests 2026-10-03 09:48:14 -04:00
tests.rs Scripting: script.run reports .jsxbin scripts as unsupported (#176) 2026-10-07 15:48:17 +07:00
tests_ui.rs M13.7: ScriptUI resource strings, onDraw graphics, live onChanging, Socket 2026-10-03 05:49:05 -04:00
tests_ui_more.rs M13.16: puppet Follow-Through — puppet.follow (Puppet tool bar ▸ Follow-Through…) makes pins trail a leader pin for hair, cloth and overlapping action: each follower's Position adds the leader's displacement from rest delayed by `delay` (the k-th nearest by k × delay with Cascade), scaled by Amount, keeping its own keyframes; leader = the first selected pin, followers = the others; one undo step; reachable over MCP (execute_command) 2026-10-04 00:19:26 +07:00
ui.rs M13.11: scriptui concave fills, real images, wasm cfg gating 2026-10-03 10:28:56 -04:00