From c646872e42cfb1aac107f6b6c72459ed7b99f98c Mon Sep 17 00:00:00 2001 From: w1n5t0n Date: Fri, 3 Apr 2026 17:17:59 +0100 Subject: [PATCH] feat(playground): wire WasmIML methods into debug probe Add evalLoss, inferBatch, and getLayerStats to the window.__nisps debug probe so Playwright tests and dev console can access the new WasmIML capabilities. InputHeatmap (Phase 3) is not yet wired into a-app.js, so batch inference heatmap integration is deferred. --- playground/js/a-app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playground/js/a-app.js b/playground/js/a-app.js index eb1332e..1cd334d 100644 --- a/playground/js/a-app.js +++ b/playground/js/a-app.js @@ -914,6 +914,9 @@ async function init() { updateStatus(); }, saveState: () => saveState(), + evalLoss: () => iml.evalLoss(), + inferBatch: (points) => iml.inferBatch(points), + getLayerStats:() => iml.getLayerStats(), }; }