Dashboard › opencode-lore › Distillation
5807c080-bbbd-4808-80dd-3d36abfb798b["lore_tm_v1_UG3tlGSe3odQTqCj9afOGP-nFHnyS3Js4KFGcAX-1cI","lore_tm_v1_DWlKo45XucyV-jBvOPwaAZeNAOJrF0vhvttWnJeaCj0","lore_tm_v1_9M-nh6L7znse0T65GW0ArWADJuP8bFiBgLS0gbzFZ8c","lore_tm_v1_CIw_2-2bpL5nfp8pNrVERlF7DT_AYLp-VeB8LtmjHJs","lore_tm_v1_-eIiryADVa-vHq93ONNL548-ZuYoL1jlplwngrG6_dE","lore_tm_v1_xsQfe-EIjoimIMR15AuRe07uqOaDQrBdzm5EpGUJpDU"]
Date: Sep 16, 2026
undici@7 because it hangs on streaming response reads under Bun; the Bun path 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.ort-wasm-simd-threaded.mjs is safe only because embedding-worker.ts forces numThreads=1, causing ort-web to use the single-thread path and never call its pthread new Worker(...).numThreads changes, the copied ort-wasm-simd-threaded.mjs must be patched as build-binary-sea does; otherwise Node has a latent crash because the worker lacks a global Worker./home/byk/Code/opencode-lore-responses-accumulation/packages/gateway/script/bundle.ts, the worker bundles redirect onnxruntime-node to onnxruntime-web WASM; embedding-worker.ts sets __LORE_NPM_WASM_PATHS__ to local sibling files rather than the jsDelivr CDN, and the shipped files are ort-wasm-simd-threaded.mjs and ort-wasm-simd-threaded.wasm./home/byk/Code/opencode-lore-responses-accumulation/packages/gateway/script/bundle.ts injects a Sentry debug ID with injectDebugId(jsPath, mapPath, { skipSnippet: true }); skipSnippet: true avoids breaking mixed ESM/CJS output, while instrument.ts registers the ID through __SENTRY_DEBUG_ID__. It replaces PLACEHOLDER_DEBUG_ID only after successful injection, relying on both UUIDs being 36 characters so sourcemap positions remain valid.SENTRY_AUTH_TOKEN exists, using npx sentry sourcemap upload dist/ --release ${pkg.version} --org byk --project loreai-gateway --url-prefix ~/; successful upload sets uploaded = true and deletes mapPath, while upload failure retains .map files for retry and missing auth skips upload.dist/bin.cjs requires Node.js 22.15 or later, suggests curl -fsSL https://lore.dev/install | bash when the version is too old, suppresses process warning events, and invokes require("./index.cjs").runCli().port defaults to 3207 via LORE_LISTEN_PORT; hosts defaults to ["127.0.0.1"] via comma-separated LORE_LISTEN_HOST; upstreamAnthropic defaults to https://api.anthropic.com via LORE_UPSTREAM_ANTHROPIC; upstreamOpenAI defaults to https://api.openai.com via LORE_UPSTREAM_OPENAI; idleTimeoutSeconds defaults to 60; and debug defaults to false via LORE_DEBUG.DEFAULT_PORTS as readonly [3207, 5673], DEFAULT_PORT as 3207, and functions loadConfig(), startServer(), startGateway(), probeGateway(), readPortFile(), resetPipelineState(), and _cli().dist/index.cjs (Node.js CJS using node:sqlite), dist/index.bun.js (Bun ESM using bun:sqlite), dist/embedding-worker.cjs (Node.js embedding worker), dist/embedding-worker.js (Bun embedding worker), dist/vector-worker.cjs (Node.js vector-search worker), dist/vector-worker.js (Bun vector-search worker), dist/ort-wasm-simd-threaded.{mjs,wasm} (ONNX WASM runtime), dist/bin.cjs (CLI wrapper), and dist/index.d.cts (type declarations).LORE_DB_PATH under os.tmpdir() and removes it in afterAll; the aggregate command’s pretest performs the production gateway bundle with Sentry upload disabled by the requested environment.