Files
ChatLab/packages/parser-native/package.json
T
diguaandCursor 1e7aefe08b feat(import): add Rust native parsing kernels for WeFlow and ChatLab JSON
Add @openchatlab/parser-native (napi-rs v3) with a shared byte-level JSON
scanner and two format kernels. Parsing large exports is 4-10x faster in
real-data benchmarks. The native module is an optional local build; the
pure-TS parsers remain as automatic fallback when it is unavailable,
disabled via CHATLAB_DISABLE_NATIVE_PERF=1, or rejects off-spec files.

The ChatLab kernel also parses the members array structurally, fixing the
TS head-regex heuristic that silently dropped avatars/roles for files with
nested arrays or long member lists.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 22:49:38 +08:00

20 lines
478 B
JSON

{
"name": "@openchatlab/parser-native",
"version": "0.0.0",
"private": true,
"description": "ChatLab Rust 原生解析内核(napi-rs,一期覆盖 WeFlow 格式)",
"main": "index.js",
"types": "index.d.ts",
"napi": {
"binaryName": "chatlab-parser-native"
},
"scripts": {
"build": "napi build --platform --release",
"build:debug": "napi build --platform",
"test": "cargo test"
},
"devDependencies": {
"@napi-rs/cli": "^3.0.0"
}
}