Dashboard › opencode-lore › Distillation
9be9c6bb-39e2-4b73-bae9-d4f068554265["lore_tm_v1_2DzXYXhukBeNHtZFoViSy0fvU2Db9SoyH6OYcc-vaPA","lore_tm_v1_Z_53oDFl2HBF-u-O1eVcL7mvXYR8yrJ2E0OvMKlJ5tQ","lore_tm_v1_WzYXIbO2bwXWvbplB8WdVYFxicFwh5hdgpC7yMSZhIc","lore_tm_v1_Cord6HSXWolhR9F-r8v2r3PCgJf-V05xfELi9bssw-I","lore_tm_v1_wowRYQPyX7M2IeB2YMXRSDKNoZo7szb9xHZHum08Rds","lore_tm_v1_6zw1a_-yce4FBfZ8n0QSS7OZiTLoRcCQtllTv-xx5Z8"]
Date: Sep 16, 2026
v4.1.8: 6 test files passed, exactly 661 tests passed, 0 failed; duration 129.11s (transform 14.37s, setup 3.32s, import 35.47s, tests 153.19s, environment 1ms), started at 22:15:27 in /home/byk/Code/opencode-lore-provider-error.contains a throwing failure log sink were run 10 times; every run passed 2 test files with exactly 3 passed and 442 skipped out of 445, for 30/30 target-test executions passing overall. Sequential run durations were: 1. 9.65s (tests 199ms), 2. 8.02s (166ms), 3. 6.35s (150ms), 4. 6.28s (193ms), 5. 6.97s (234ms), 6. 7.81s (185ms), 7. 6.31s (198ms), 8. 8.51s (209ms), 9. 7.99s (192ms), 10. 7.11s (218ms).packages/gateway/package.json defines @loreai/gateway version 0.40.0, ESM package type, Node engine >=22.15, and exports "bun": "./dist/index.bun.js" plus CJS "require"/"default" entries at ./dist/index.cjs; its files include dist/index.bun.js, dist/index.cjs, dist/bin.cjs, CJS/ESM embedding and vector workers, typings, and ONNX WASM artifacts.packages/gateway/package.json lists undici: "^8.9.0" as a devDependency, alongside @sentry/bun: "^10.52.0", @types/bun: "^1.2.0", onnxruntime-node: "1.27.0", and other build-only packages.undici must remain external and lazily imported only on the Node path in packages/gateway/script/bundle.ts, so it is never bundled or evaluated under Bun.undici@7 hangs on streaming response reads under Bun; the Bun path therefore uses native fetch and never touches undici.undici is safe as a devDependency only because the Bun path never imports it: the undici import is Node-only and lazy. If the Bun path ever imports undici, it must become a runtime dependency.packages/gateway/script/bundle.ts builds the Node gateway from packages/gateway/src/index.ts as a minified CJS node22 bundle at dist/index.cjs, with platform: "node", conditions: ["node"], sourcemaps enabled, and externals node:*, onnxruntime-node, sharp, and sqlite-vec.packages/gateway/script/bundle.ts builds the Bun gateway as minified ESM at dist/index.bun.js, using target: "esnext", platform: "node", conditions: ["bun"], no sourcemap, and externals bun:*, node:*, undici, onnxruntime-node, sharp, and sqlite-vec.packages/gateway/script/bundle.ts: @loreai/core is now inlined into dist/index.bun.js. It was previously externalized so the OpenCode plugin and in-process gateway shared one fetch-interceptor.ts original-fetch handle, preventing duplicate interceptors and an infinite gateway β interceptor β gateway β β¦ loop; externalization was rejected because it forced a runtime dependency tracked by #1024 and pulled roughly 480 MB of ML dependencies into raw npm installs.@loreai/core became safe under #1027 because fetch-interceptor.ts stores the original fetch in the process-global Symbol.for("lore.fetchInterceptor.originalFetch"), causing every bundled or instantiated core copy to share one handle.@sentry/bun to @sentry/node through the sentry-bun-to-node esbuild plugin. Reason: @sentry/node supplies Node-native HTTP instrumentation and works under Bun, while @sentry/bun uses Bun-only APIs such as server.reload and headers.toJSON that the Node polyfill lacks.packages/gateway/script/bundle.ts uses script/import-meta-url.js as an ESM/CJS interop shim for CJS builds, rewriting "import.meta.url" to import_meta_url and avoiding esbuildβs empty-import-meta warning; ESM builds retain real import.meta.oxfmt --check reported all matched files correctly formatted, checking exactly 874 files with 4 threads in 688ms.pnpm -r run typecheck, covering 5 of 6 workspace projects. packages/core passed both tsc --noEmit and tsc --noEmit -p tsconfig.eval.json; packages/gateway, packages/opencode, and packages/pi each passed tsc --noEmit.