Dashboardopencode-loreCore optional embedding stack

Core optional embedding stack

Category: decision
Confidence: 1.00
ID: 01a0ab1d-5f58-7332-9925-463c17cd4c14
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 0JFLntcV1I9vh4rM4
Created: 2026-09-16 16:47:04
Updated: 2026-09-16 16:47:04

Content

Chose direct optional declarations for @huggingface/transformers, onnxruntime-node, and sharp over relying on transformer transitive dependencies because pnpm may nest them where packages/core/dist/** cannot resolve them, silently degrading recall to FTS-only. Keep them out of regular dependencies so --omit=optional remains supported, and align versions with transformers so pnpm deduplicates to one stack. Validate resolution from a real subprocess rooted at the built worker; Vitest’s resolver can walk .pnpm and create a vacuous pass.

Move to: