Commit Graph

9 Commits

Author SHA1 Message Date
李冠辰 49788fc085 fix(plugin): add OpenClaw state dir fallback 2026-05-25 00:10:57 +08:00
honchow bfddda6d3e Merge pull request #31 from akhilesharora/fix/sanitize-text-preserve-non-bmp
fix(offload): preserve non-BMP characters in sanitizeText
2026-05-21 14:46:19 +08:00
chrishuan 0d462e0b63 chore: release v0.3.5 2026-05-20 22:58:05 +08:00
Akhilesh Arora bf58853343 fix(offload): preserve non-BMP characters in sanitizeText
UNSAFE_CHAR_RE included the surrogate range [\uD800-\uDFFF] without the `u`
flag, so JS treated strings as UTF-16 code units and stripped each half of
every well-formed non-BMP code point. sanitizeText and sanitizeJsonLine
therefore destroyed emoji, CJK Extension B, math bold, etc. in tool params,
tool results, and ref-md archives.

Adding the `u` flag makes paired surrogates combine into a single code point
before matching, so the [\uD800-\uDFFF] entry now matches only lone (malformed)
surrogates, which is the original intent. All other entries (replacement char,
C0/C1 controls, zero-width chars, line separators, BOM) keep their behavior.

Added a vitest suite covering the preserved and stripped cases.

Closes #30
2026-05-16 22:23:45 +02:00
chrishuan d377b09fbc feat: release v0.3.4 — offload local LLM, CLI restore, bugfix scripts 2026-05-13 14:56:56 +08:00
chrishuan db8f3e516a feat: release v0.3.3 — Hermes adapter, context offload, core refactor 2026-05-13 01:58:18 +08:00
chrishuan a74b0b3e43 feat: release v0.2.2 — TCVDB backend, BM25 hybrid retrieval, pipeline refactor 2026-05-13 01:23:05 +08:00
chrishuan 76451838b8 feat: release v0.1.4 2026-04-23 10:59:54 +08:00
chrishuan 7a5fce9f12 feat: init Agent-Memory 2026-04-09 18:23:46 +08:00