Files
ST-Bionic-Memory-Ecology/scripts
youzini c7cc1bc4da fix: repair invalid ESM syntax that broke plugin load
Three syntax errors from earlier refactors broke index.js module load,
removing the wand menu entry and floating panel:
- arrow function pasted into an import block (line 213, cloneRuntimeDebugValue)
- arrow function pasted into an import block (line 451, shouldRunRecallForTransaction)
- missing closing brace on applyGraphLoadState (Phase 5f extraction)

Root cause the guard missed it: package.json has no type:module, so
node --check parsed .js as CommonJS/script and accepted invalid ESM.
check-syntax now pipes each file through node --check --input-type=module
so syntax validation matches how the browser actually loads these modules.
2026-05-31 19:12:30 +00:00
..