ruvector/examples/decompiler-dashboard/src
rUv 26d485d4dd fix(decompiler): statement-boundary splitting — 14/14 modules now parse (was 2/17)
Complete rewrite of module splitter across 3 files (JS, MJS, TS):

parseTopLevelStatements(): proper parser tracking brace/paren/bracket
depth, skipping strings/regex/comments/template literals. Only splits
at depth 0.

isStatementBoundaryAfterBrace(): prevents splitting destructuring,
import/export, and chained expressions.

classifyStatement(): scores COMPLETE statements against module keywords.
Statements are NEVER split across modules.

isSyntacticallyValid(): validates via new Function() with ESM stripping,
async wrapping, and brace-balance fallback.

Before: 2/17 modules parse (keyword line-grep, cuts mid-expression)
After: 14/14 modules parse (statement-boundary, brace-balanced)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-03 11:50:34 +00:00
..
components feat(training): source map extraction + v2 model (83.67% val accuracy) 2026-04-03 04:57:47 +00:00
lib fix(decompiler): statement-boundary splitting — 14/14 modules now parse (was 2/17) 2026-04-03 11:50:34 +00:00
pages feat(training): source map extraction + v2 model (83.67% val accuracy) 2026-04-03 04:57:47 +00:00
types feat(training): source map extraction + v2 model (83.67% val accuracy) 2026-04-03 04:57:47 +00:00
App.tsx feat(training): source map extraction + v2 model (83.67% val accuracy) 2026-04-03 04:57:47 +00:00
index.css feat(training): source map extraction + v2 model (83.67% val accuracy) 2026-04-03 04:57:47 +00:00
main.tsx feat(training): source map extraction + v2 model (83.67% val accuracy) 2026-04-03 04:57:47 +00:00
vite-env.d.ts feat(training): source map extraction + v2 model (83.67% val accuracy) 2026-04-03 04:57:47 +00:00