Skip to content

feat(embedding): make local ONNX stack optional for remote-only installs - #532

Merged
EyJunge1 merged 1 commit into
mainfrom
feat/optional-local-embedding-deps
Nov 29, 2026
Merged

EyJunge1 merged 1 commit into
mainfrom
feat/optional-local-embedding-deps

Conversation

@EyJunge1

Copy link
Copy Markdown
Collaborator

Summary

  • Move @huggingface/transformers and onnxruntime-node to optionalDependencies (still installed by default for local embeddings).
  • Document post-install prune for Docker/remote-only images (~740MB); warn against install --omit=optional alone because it also drops Turso platform bindings.
  • Clearer missing-stack errors and a platform smoke that prunes HF/ORT, keeps Turso, and loads the plugin.

Fixes #525

Test plan

  • bun test for package-dependencies, optional-embedding-stack, onnxruntime-resolve, transformers-resolve
  • bun run typecheck
  • Local pack + prune smoke (scripts/prune-local-embedding-smoke.mjs)
  • Platform Package Smoke CI on the PR

Move @huggingface/transformers and onnxruntime-node to optionalDependencies
so Docker users with remote embeddings can prune ~740MB after install without
breaking Turso platform bindings. Add clear missing-stack errors, docs, and
a platform smoke that verifies prune-safe plugin load.

Fixes #525
@EyJunge1
EyJunge1 merged commit 8988bce into main Nov 29, 2026
9 of 14 checks passed
@EyJunge1
EyJunge1 deleted the feat/optional-local-embedding-deps branch November 29, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make local-embedding deps (onnxruntime-node, @huggingface/transformers) optional

1 participant