singularity-forge/packages/native/src
Lex Christopherson bd8380315c feat: per-platform optional dependencies for native binary distribution
Add the esbuild/swc pattern for distributing platform-specific native
binaries via npm optional dependencies. Each supported platform gets its
own @gsd/engine-{platform} package containing just the .node binary.

- 5 platform package stubs (darwin-arm64, darwin-x64, linux-x64-gnu,
  linux-arm64-gnu, win32-x64-msvc) with os/cpu filters
- Rewritten native loader: tries npm package first, then local build
- Version sync script keeps platform packages in lock-step with root
- GitHub Actions workflow for cross-platform build + publish on tag push

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 14:36:18 -06:00
..
__tests__ feat: add native Rust diff engine for edit tool 2026-03-13 14:11:40 -06:00
ast feat: add native ast module with ast-grep structural search and rewrite 2026-03-13 13:02:29 -06:00
clipboard feat: add native clipboard module with arboard backend (#228) 2026-03-13 12:48:27 -06:00
diff feat: add native Rust diff engine for edit tool 2026-03-13 14:11:40 -06:00
fd merge: integrate native fd module (#231) 2026-03-13 13:13:43 -06:00
glob fix: resolve TypeScript build errors in glob callback type and hashline test import 2026-03-13 13:47:33 -06:00
grep feat: Rust native engine scaffold with grep module 2026-03-13 12:21:09 -06:00
gsd-parser feat: add native Rust GSD file parser for .gsd/ directory parsing 2026-03-13 14:12:17 -06:00
highlight feat: add syntect-based syntax highlighting module to native engine (#227) 2026-03-13 12:47:02 -06:00
html feat: add html-to-markdown native module 2026-03-13 12:40:42 -06:00
image feat: add native image module — decode, encode, and resize via Rust image crate 2026-03-13 12:51:49 -06:00
ps feat: add cross-platform process tree kill module (ps) (#225) 2026-03-13 12:43:50 -06:00
text feat: add ANSI-aware text measurement and slicing native module 2026-03-13 12:42:42 -06:00
ttsr feat: add native Rust TTSR regex engine via RegexSet 2026-03-13 13:57:12 -06:00
index.ts feat: add native Rust GSD file parser for .gsd/ directory parsing 2026-03-13 14:12:17 -06:00
native.ts feat: per-platform optional dependencies for native binary distribution 2026-03-13 14:36:18 -06:00