GitNexus/gitnexus/src/server
abhigyanpatwari 989673a624 fix: lazy-import embeddings to avoid onnxruntime crash on unsupported Node versions
Convert static imports of @huggingface/transformers (which triggers
onnxruntime-node native binary loading) to dynamic import() calls.
This prevents crashes on Node versions whose ABI isn't supported by
the prebuilt onnxruntime binaries (e.g. Node v24).

Affected entry points:
- cli/analyze.ts: embedding pipeline only loaded when --embeddings is passed
- mcp/local/local-backend.ts: embedder only loaded on first semantic search
- server/api.ts: embedder only loaded when search endpoint needs embeddings

Fixes #89

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 12:09:17 +05:30
..
api.ts fix: lazy-import embeddings to avoid onnxruntime crash on unsupported Node versions 2026-02-27 12:09:17 +05:30
mcp-http.ts fix(server): harden multi-repo API and MCP safety 2026-02-26 13:01:30 +01:00