feat(natives): migrated native bindings from WASM to Node.js N-API with ripgrep-backed grep module
- Migrated native bindings from WebAssembly (wasm-bindgen) to Node.js N-API architecture for improved performance and platform support. - Replaced worker pool-based async architecture with synchronous native addon calls, eliminating thread overhead and simplifying the API. - Added new grep module with ripgrep-backed filesystem search supporting parallel processing, glob filtering, and context line extraction. - Updated build system to compile Rust crates to platform-specific .node binaries instead of WASM modules. - Removed WASI implementation and worker pool infrastructure no longer needed with N-API native bindings. - Updated CI/CD pipeline to build native addons for multiple platforms (Linux x64/arm64, macOS x64/arm64, Windows x64) and include them in releases.
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@
|
||||
"fix": "bun run fix:ts && bun run fix:rs",
|
||||
"fix:ts": "biome check --write --unsafe . && bun --cwd=packages/coding-agent run format-prompts",
|
||||
"fix:rs": "cargo clippy --fix --allow-dirty --all-targets --no-deps --allow-staged --broken-code --allow-no-vcs && cargo fmt --all",
|
||||
"build:wasm": "bun --cwd=packages/natives run build:wasm",
|
||||
"build:native": "bun --cwd=packages/natives run build:native",
|
||||
"bench:gen-fixtures": "bun run packages/react-edit-benchmark/generate.ts --react-dir /tmp/react-source --count-per-type 3",
|
||||
"bench:edit": "bun --cwd=packages/react-edit-benchmark run start",
|
||||
"version:patch": "npm version patch -ws --no-git-tag-version && bun scripts/sync-versions.ts && rm -rf node_modules packages/*/node_modules bun.lock && bun install",
|
||||
|
||||
Reference in New Issue
Block a user