mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-23 00:41:36 +00:00
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> |
||
|---|---|---|
| .. | ||
| api.ts | ||
| mcp-http.ts | ||