Files
GDevelop-Unlocked/scripts
BillyOutlast bbc3d4c2a5 T02: client debug logging subsystem
- launcher/debug-logger.cjs (new): sync JSONL appender, activates on
  --heretek-debug-log <path> / HERETEK_DEBUG_LOG, schema
  {ts,iso,source,level,event,data}; invalid paths disable gracefully.
- heretek-hook.cjs: init logger in installPreloadHook, log window
  creation/load/navigation, uncaughtException/unhandledRejection, flag
  non-spoofed api.gdevelop.io attempts (filter widens only when active).
- preload-unlock.cjs: expose window.__HERETEK_LOGGER__ (capped ring
  buffer), hook error/unhandledrejection, intercept console.error/warn
  (pass-through); fallback-source embedding extended.
- ai-studio: DebugEvents.js emitter + LoopGuard turn/guard events
  ([AI_REQUEST_START],[TOOL_CALL],[TOOL_RESULT],[GUARD_EVALUATE],
  [REQUEST_STATE_CHANGE]); MANIFEST hashes updated; TIER2_FILES extended.
- scripts/dump-debug-log.mjs (new): filter by event/level/request id.
- tests/launcher/debug-logger.test.cjs (new, 15 tests); inject.test
  3->4 launcher files. npm test 146/146 green.
2026-10-12 00:31:19 -04:00
..