Fixes
- Prevent OpenCode/Bun plugin loader bundling from eagerly traversing
@huggingface/transformersinternals during plugin startup. - Keep local embedding backend lazy-loaded so
@huggingface/transformersis only imported when local embeddings are actually used. - Pin
@huggingface/transformersto the tested4.0.1version instead of floating to newer package layouts.
Verification
bun run typecheckbun run buildbun test ./tests/package-dependencies.test.ts ./tests/plugin-bundle-boundary.test.ts ./tests/plugin-loader-contract.test.ts ./tests/opencode-provider.test.tsnpm pack+ fresh install smoke test confirmedopencode-mem@2.14.1,@huggingface/transformers@4.0.1, no static HF import indist/services/embedding.js, anddist/plugin.jsimports successfully.
Full Changelog: v2.14.0...v2.14.1