The engine's Lua sandbox rejects require() for non-declared-dep module names like 'src.state'. Multi-file modules in this codebase either inline everything (spine-prototype, vagrant-skeleton) or use dofile (lib-sporel.launcher). For three modules that share a state singleton, dofile would cause state divergence. Cleanest fix is to inline all three into init.lua via IIFE-wrapped local module tables, preserving the file-internal namespacing while satisfying the sandbox. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 KiB
22 KiB