openclaw/packages/normalization-core
Peter Steinberger 6dbca39af1
fix(text): keep grapheme lookups on cluster boundaries under Bun (#162749)
Fix Bun message chunking and terminal truncation selecting the preceding grapheme when JSC containing() probes an emoji high surrogate. Route all seven lookups through normalization-core, normalize numeric indexes before the offset, and retain the new eager dependency in the native PR wrapper inventory. Upstream engine fix: oven-sh/WebKit#753.

Node 24 and fork Bun each pass 586 tests (one skipped) across the requested 39 files. Node matches native containing() for all 1,236 corpus lookups. Changed-file checks, import-cycle validation, wrapper closure checks, and independent P2 reviews pass.

The remaining CI cron copy-fault and Discord skills-watcher teardown failures reproduce on clean main and use the authorized native pre-existing-failure exception. The original wrapper inventory regression was fixed.
2026-10-01 09:24:26 -07:00
..
src fix(text): keep grapheme lookups on cluster boundaries under Bun (#162749) 2026-10-01 09:24:26 -07:00
package.json perf(gateway): throttle sidebar narration updates (#160002) 2026-09-28 07:11:52 -07:00
tsconfig.json fix(build): scope normalization declarations to package sources (#157174) 2026-09-24 23:40:45 +08:00