feat(runtime): add syntax highlighting for error stack trace source lines
Add a lightweight JS/TS syntax highlighter for source code lines displayed
in error stack traces. Uses a simple character-scanning lexer (inspired by
Bun's QuickAndDirtyJavaScriptSyntaxHighlighter) that works on arbitrary
single lines without requiring syntactically valid code.
Features:
- Keywords in bright blue, TS type keywords in cyan, strings in green,
numbers/booleans in yellow, comments in gray, null in bold,
undefined in gray (matching console.log inspect colors)
- Template literal interpolation highlighting
- Line number gutter prefix (e.g. "42 | source code here")
- Error class name in red bold, "(in promise)" in gray
- Bold red caret for error position indicator
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>