5 Commits

Author SHA1 Message Date
sakuradairong
c67747c231 fix: Lua 5.1 兼容性 + CI 稳定性
Some checks failed
CI / luacheck (push) Has been cancelled
CI / Test (Lua 5.3) (push) Has been cancelled
CI / Test (LuaJIT) (push) Has been cancelled
CI / Test (Lua 5.1) (push) Has been cancelled
- 修复 rime_context_filter.lua: load() 在 Lua 5.1 上用 loadstring
- 修复 test: load(ser) 在 Lua 5.1 上改用 loadstring
- 修复 CI: luarocks install 添加 continue-on-error
2026-06-10 16:36:40 +08:00
sakuradairong
0196b203ef docs: 更新 README 反映 v5.1 变更
- 修复 Linux 数据路径说明(XDG_DATA_HOME 优先 + fallback)
- UTF-8 安全截取说明
- 新增开发/测试/CI 章节
- 版本历史更新至 v5.1
2026-06-10 16:32:42 +08:00
sakuradairong
a716fab7b1 fix: 修复 Linux 路径、序列化格式、UTF-8 截取等 7 项优化
## 变更

- 🔴 P0: Linux 数据路径修复(XDG_DATA_HOME 优先 + fallback)
- 🟡 P1: save_interval 零值回退修复(显式 nil 判断)
- 🟡 P2: UTF-8 安全截取 utf8_last()(按字符边界而非字节)
- 🟢 P2: scores 表复用减少 GC
- 🟢 P3: Lua 5.1/JIT 降级沙箱警告
- 🟢 P1: 新增 40 个单元测试
- 🟢 P3: 新增 GitHub Actions CI
-   fix: 序列化 [] 括号格式(Lua 5.3 兼容)
2026-06-10 16:31:31 +08:00
RainySY
6829d866e5 feat: v5 — cross-platform, decay, sandbox, GC optimization
- Cross-platform path resolution (auto-detect Windows/macOS/Linux)
- GC reduction in score_candidates (1 table vs 6 per invocation)
- Decay/forgetting mechanism to prevent infinite data growth
- Sandbox for load() to prevent code injection via data file
- Cross-platform ensure_dir for mkdir on all platforms
- New config options: data_path, decay_enabled, decay_rate
- Update README with v5 features and cross-platform documentation
2026-06-10 15:56:31 +08:00
RainySY
f351e18504 feat: initial release of rime-context-filter
Pure learning-based context-aware candidate reordering for RIME.
Automatically learns from user input patterns and persists across sessions.
2026-06-10 15:44:37 +08:00