2026-03-13 12:21:09 -06:00
|
|
|
//! N-API addon for GSD.
|
|
|
|
|
//!
|
|
|
|
|
//! Exposes high-performance Rust modules to Node.js via napi-rs.
|
|
|
|
|
//! Architecture mirrors Oh My Pi's pi-natives crate:
|
|
|
|
|
//! ```text
|
|
|
|
|
//! JS (packages/native) -> N-API -> Rust modules (grep, ...)
|
|
|
|
|
//! ```
|
|
|
|
|
|
|
|
|
|
#![allow(clippy::needless_pass_by_value)]
|
|
|
|
|
|
feat: add native glob and fs_cache modules with gitignore-aware discovery (#226)
Port glob, glob_util, and fs_cache modules from Oh My Pi's pi-natives crate,
adapted for napi-rs v2. Provides gitignore-respecting filesystem discovery
with a TTL-based scan cache, mtime sorting, file-type filtering, and
node_modules exclusion.
Includes a task module for async N-API work scheduling with cooperative
cancellation (timeout-based), TypeScript type declarations and wrapper,
and 12 integration tests covering pattern matching, recursion, gitignore,
maxResults, sortByMtime, fileType filtering, and cache invalidation.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 12:45:56 -06:00
|
|
|
mod fs_cache;
|
|
|
|
|
mod glob;
|
|
|
|
|
mod glob_util;
|
2026-03-13 12:21:09 -06:00
|
|
|
mod grep;
|
2026-03-13 12:43:50 -06:00
|
|
|
mod ps;
|
feat: add native glob and fs_cache modules with gitignore-aware discovery (#226)
Port glob, glob_util, and fs_cache modules from Oh My Pi's pi-natives crate,
adapted for napi-rs v2. Provides gitignore-respecting filesystem discovery
with a TTL-based scan cache, mtime sorting, file-type filtering, and
node_modules exclusion.
Includes a task module for async N-API work scheduling with cooperative
cancellation (timeout-based), TypeScript type declarations and wrapper,
and 12 integration tests covering pattern matching, recursion, gitignore,
maxResults, sortByMtime, fileType filtering, and cache invalidation.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 12:45:56 -06:00
|
|
|
mod task;
|