Dashboard › opencode-lore › Distillation
c51e035c-a567-49be-826e-cf4ca96e2681["lore_tm_v1_tuoVbi7kFNSuTJGJJnYGShrx8erGBfhtlWbQJeYrNLA","lore_tm_v1_5Jf2ECrBqSoPsQJqKhFqKUPTFv3jW-_kBXQU0XP8eqE","lore_tm_v1_sFQ_6GRVgV4WZ7m8sX-2X1P09RjnxrSyYNc-J1FE8s0","lore_tm_v1_Tev6d5TykqJp0GuiQ5zJOPWBOc9IoZzQ7WpDF6dCYtI","lore_tm_v1___jcIG7nTlR8sa8LM108HLT6p5KapGV00IOTYKZqK-Q","lore_tm_v1_e-Xw7DgXMGYfepGcYI-n7aO-_e7nYq0IA8EnVeer1Co","lore_tm_v1_jGIciMNh3wgl5GT-_JS6KXOYGhO8tHCb2lOOEfAJrdI","lore_tm_v1_XjvZzr0vikdJCP4gvTtAo973E_MYxNtyWeIKy_qQo2Y","lore_tm_v1_sJ9BpMBpztIYMEBRwmL3mkGIGyzEc6ul9Ec4LK8Yh3M","lore_tm_v1_0zPKZWTuHabAMHqgxqVKFObbxBi17AEd1jJsbMdmTtA","lore_tm_v1_yVAwfQU6v1-89esOnl9COBfOrRNxH4LJN5hWoUjh_DY","lore_tm_v1_8WN_ypw5weC5sKXc0lDpKkA-kJJ8r-vTwWWiNhnj2Bo","lore_tm_v1_8T_B-MWrPKIACHeA_STXvjqYsKeqdQ6fWubfzOqsOa4"]
Date: Sep 16, 2026
undici remains external and is imported lazily only on the Node path in fetch.ts, so it is never bundled or evaluated under Bun; real undici@7 hangs on streaming response reads under Bun.fetch and never touches undici; keeping undici as a devDependency is safe only because the Bun path never imports it, and it must become a runtime dependency if that changes.packages/gateway/dist/embedding-worker.cjs, while the Bun ESM worker is emitted as packages/gateway/dist/embedding-worker.js; both use ortNpmDualPlugin() to prefer native ONNX Runtime and fall back to shipped WASM.dlopen the ONNX Runtime .node addon and preserves the dist-only WASM fallback through globalThis.__LORE_NPM_WASM_PATHS__ || ONNX_ENV.wasm.wasmPaths.ort-wasm-simd-threaded.mjs is unpatched, unlike the SEA binaryβs copy, and is safe only because embedding-worker.ts forces numThreads=1; therefore ort-web takes its single-thread path and never calls its pthread new Worker(...), which would crash under Node because that worker has no global Worker.numThreads changes, the copied ort-wasm-simd-threaded.mjs must be patched like build-binary-sea to avoid a latent Node crash.packages/gateway/test/bundle-exports.test.ts now tests both embedding-worker.cjs and embedding-worker.js for an emitted native ORT compatibility resolver: artifacts must omit LORE_ORT_NODE_VERSION and contain loreOrtNodeVersion, glibcVersionRuntime, and the gatewayβs declared onnxruntime-node version.packages/gateway/test/bundle-exports.test.ts runs on supported targets linux-x64, linux-arm64, darwin-arm64, win32-x64, and win32-arm64; a preload intercepts process.dlopen, marks selection of onnxruntime_binding.node, throws onnxruntime_binding.node: file too short, blocks network through a throwing globalThis.fetch, posts an embed request using model lore-test/no-network-model, dimensions 64, maxTokens: 32, text ["probe"], inputType: "query", and priority: "high", then expects type: "init-needs-wasm" containing file too short. The probe timeout is 10_000 ms and test timeout is 30_000 ms.packages/gateway/test/bundle-exports.test.ts creates a temporary dist-only @loreai/gateway installation and matching @loreai/onnxruntime-${target} optional dependency at version 9.9.9, copies embedding-worker.cjs/embedding-worker.js, ort-wasm-simd-threaded.mjs, and ort-wasm-simd-threaded.wasm, writes onnxruntime_binding.node as "not a native addon", and verifies the malformed file is rejected before process.dlopen; the worker then reaches WASM fallback and emits type: "init-error" containing lore-wasm-probe-stop, while the native-load marker remains absent.tmzmtlss e6d0f1ed on fix/embedding-runtime-admission, description fix(core): correct embedding runtime selection and admission, with parent pxrvwsvv 2cbf4006 main | feat(cch): add seeds for Claude Code up to 2.1.272 (#1780).fix/responses-private-references; suggested inspection with jj bookmark list and resolution with jj bookmark set <name> -r <rev>.packages/core/src/cgroup-memory.ts implements live Linux cgroup memory discovery: parses /proc/self/cgroup and /proc/self/mountinfo, decodes octal procfs path escapes, rejects nonabsolute paths, NULs, and .. segments, prefers an explicit cgroup v1 memory controller over v2 on hybrid hosts, chooses the most-specific direct mount root, and accepts a namespaced interpretation only when exactly one matching mount exists.readLinuxCgroupMemoryHeadroomBytes() in packages/core/src/cgroup-memory.ts rereads procfs on every call so live cgroup moves and cached discovery misses cannot admit a worker from stale data; v2 uses memory.current against both memory.high and memory.max, v1 uses memory.usage_in_bytes against memory.limit_in_bytes, and inherited limits are traversed through parent directories with the tightest finite headroom selected.undefined for malformed or unsafe numeric values, unreadable constrained boundaries, invalid traversal, ambiguous discovery, or other read errors; "max" and limits above Number.MAX_SAFE_INTEGER are treated as infinite. A cgroup v2 mount root with root / may omit memory files, but every descendant boundary must remain readable.packages/core/src/cgroup-memory.ts (+205, new), packages/core/src/embedding/local.ts, packages/core/src/embedding/pool.ts, packages/core/src/embedding-cap.ts, packages/core/src/embedding-worker-types.ts, packages/core/src/embedding-worker.ts, packages/core/src/embedding.ts, packages/core/src/ort-native.ts, packages/core/test/cgroup-memory.test.ts (+297, new), packages/core/test/embedding-cap.test.ts, packages/core/test/embedding-pool-memory.test.ts, packages/core/test/embedding-pool.test.ts, packages/core/test/embedding-worker-types.test.ts, packages/core/test/ort-native.test.ts, packages/gateway/script/bundle.ts, packages/gateway/script/ort-platform-package.ts, packages/gateway/test/bundle-exports.test.ts, and packages/gateway/test/ort-platform-package.test.ts.