Dashboard › opencode-lore › Distillation
6ac0dd38-c8d6-45be-9cab-2f459b8274b1["lore_tm_v1_GyrmYZEBVC_oz0xjDbmoHqhjQLACc8YIZ1kdijNouYY","lore_tm_v1_q-MWnnRGAcYxCeqySETaHmZ4BQlT-qzUh1wGOJufYdA","lore_tm_v1_dL4NpRupGDhC2nTaM9G--P3kC6lsWUlr2QAJVIH-YAc","lore_tm_v1_9G8HHtV-8b9g-2nsQ3psER7zUQ2bcMMTJdbEa7eei4A","lore_tm_v1_2kxNqcDpCNh9Uxy7PHULr-Jl_M-baouCjuxIA6wtJaY","lore_tm_v1_yLaFOVoadxpo_e2UmNlbGm33bCVsfDMySUuUQLwEIiw","lore_tm_v1_hwoP5eGO597APo3eT0DAi8VCx4HlxJCBPXfpRnY9zuA","lore_tm_v1_V7We4R2tV-3ZpVgc5mUDwdm9s1doGFiCRtXwUmq1U7Q","lore_tm_v1_O4kjJgYzbiB1B8toprQJdtXe3SbRBZ8EtTU_ewq0ly4","lore_tm_v1_1s3KRbx0C0dvlibqEGCVNd750wiHwmuHItCF5OOI_pE","lore_tm_v1_4x-s83Z3ULCLvrAgOcr6Bpa08mVXa_8Mof39hhrsXO0","lore_tm_v1_O5mlIw40QF83XibAgUhmhbxATlnp_pukjpKg8gW-8Ns","lore_tm_v1_hITqYkSPmsC8Gx4zp1mTDBRwXTMSudgsUXbA86P6Vj8","lore_tm_v1_VK_2q7bJl-9Fn_t9UYXZDO27sT_pXo3EjETV1NHT-OI","lore_tm_v1_IBt8jwebPTgKC7ZB7zA6mLZMoXRp06TXaEriZ1_B-Mg","lore_tm_v1_h_JLwZggyV8zRUUUVmvdOr48FYKF7OD9xoVMobDxKms","lore_tm_v1_A2SJ2zvO25lJjTKmiZl_TQ-SinoBrfH4V3UA8BAAVxw"]
Date: September 16, 2026
packages/gateway/dist/index.cjs timestamp 2026-09-16 12:16:59.667703248 +0000, hash e3287ccf1edac222c5fade64a7420551aaaac06c1d14087022e4017c770cde2e; packages/gateway/dist/index.bun.js timestamp 2026-09-16 12:16:50.760765826 +0000, hash 498d2e325388f604ac6e225ffea8318aec8a42193057916bf6f5f32d18b593b5; packages/gateway/dist/embedding-worker.cjs timestamp 2026-09-16 12:16:51.522760473 +0000, hash eb0ccfc5ef503b0351675b9e5d86579f8152fbfae7c1786aa909f3bbb2f93915; packages/gateway/dist/embedding-worker.js timestamp 2026-09-16 12:16:52.004757087 +0000, hash e02912f98b6bf4c74f539311093ad08fcb3c2e152f86170d580d6dddf7902025; packages/gateway/dist/ort-wasm-simd-threaded.mjs hash 43c25054b6b9ac000f786c65545ff83a45f871e0e310e8c2f4d48a363bb66db4; packages/gateway/dist/ort-wasm-simd-threaded.wasm hash f061472c6e77d6d50d079aacdc0ff9b63fee287ddd2cbf46cf62438d3891de2b.2026-09-16 09:29:20.242828474 +0000 for packages/core/src/ort-native.ts, 2026-09-16 09:47:45.134255901 +0000 for packages/core/src/embedding-worker.ts, 2026-09-15 17:19:16.469808146 +0000 for packages/gateway/script/bundle.ts, and 2026-09-15 15:47:01.337117096 +0000 for packages/gateway/package.json.packages/core/src/embedding/local.ts that exceptions from a host logger or sink must never interrupt embedding-worker stdout/stderr consumption or allow the worker to block on a full pipe; structured worker messages continue carrying actionable failures to normal parent handlers.packages/core/src/embedding/local.ts: _setTestWorkerFactory() installs or clears the worker factory seam; WORKER_DIAGNOSTIC_MAX_CHARS = 2_000, WORKER_DIAGNOSTIC_WINDOW_MS = 60_000, and WORKER_DIAGNOSTIC_LINES_PER_WINDOW = 20; drainEmbeddingWorkerStream() strips control characters, trims trailing \r, truncates oversized buffered lines with β¦, rate-limits logs, reports suppressed line counts, handles data, end, close, and error, calls stream.resume(), and tolerates missing streams from test doubles created before the owned-stdio contract.drainEmbeddingWorkerOutput() drains both worker.stdout and worker.stderr, while localProviderKnownUnavailable() returns whether localEmbeddingState.failureCause !== null./home/byk/.volta/bin/bun, version 1.3.14; runtime report support is present with process.report.getReport as a function, runtime glibc 2.39, platform linux, and architecture x64.onnxruntime-node@1.27.0 installed at /home/byk/Code/opencode-lore-embedding-runtime/node_modules/.pnpm/onnxruntime-node@1.27.0/node_modules/onnxruntime-node/package.json, with a single bin/ entry: napi-v6/./home/byk/Code/opencode-lore-embedding-runtime/node_modules/.pnpm/onnxruntime-node@1.27.0/node_modules/onnxruntime-node/bin/napi-v6/linux/x64 contains exactly 5 files: libonnxruntime_providers_cuda.so, libonnxruntime_providers_shared.so, libonnxruntime_providers_tensorrt.so, libonnxruntime.so.1, and onnxruntime_binding.node./usr/bin/bash: line 1: python: command not found when invoking python.onnxruntime_binding.node has maximum required version 2.14 and references ["2.2","2.4","2.14"]; libonnxruntime.so.1 has maximum required version 2.27 and references ["2.2","2.3","2.4","2.6","2.14","2.16","2.17","2.26","2.27"].packages/core/src/embedding/local.ts: imported readLinuxCgroupMemoryHeadroomBytes from ../cgroup-memory and resolveMemoryHeadroom from ../embedding-cap; added testAvailableMemoryBytes plus _setAvailableMemoryForTest(bytes: number | null); added exported availableMemoryHeadroom(): number | undefined; and changed containerFreeBytes() to call clampFreeToContainerLimit(raw, constrainedMemoryLimit(), availableMemoryHeadroom()).availableMemoryHeadroom() behavior: a finite nonnegative testAvailableMemoryBytes is returned directly; invalid test values return undefined; when testConstrainedMemoryBytes != null, it returns undefined; Linux additionally reads cgroup headroom via readLinuxCgroupMemoryHeadroomBytes(); Bun avoids process.availableMemory() because Bun currently aliases host freemem() inside constrained cgroups; Node uses process.availableMemory() when available and falls back safely if it is absent or throws; all runtime values are reconciled through resolveMemoryHeadroom().packages/gateway/script/ort-npm-plugin.ts that the npm gateway ships both ONNX Runtime backends and selects at runtime: native onnxruntime-node when a per-platform @loreai/onnxruntime-<os>-<arch> package is installed, otherwise bundled WASM onnxruntime-web."cpu" device is registered, while replacing ONNX_NODE with a runtime-switchable native-or-web shim controlled by globalThis.__LORE_ORT_BINDING_PATH__.onnxruntime-node must be loaded lazily only when the native addon path is set; its binding.js must never run or crash on the WASM fallback path.ortNpmDualPlugin() process in packages/gateway/script/ort-npm-plugin.ts: 1. stub sharp with module.exports = {};; 2. redirect onnxruntime-node to a native-or-web runtime shim; 3. redirect onnxruntime-web to its Node WASM/package entry; 4. patch the real onnxruntime-node binding.js addon require to use the runtime path gracefully; 5. patch transformers.jsβs CDN wasmPaths assignment to read the supplied runtime expression.ORT_BINDING_REQUIRE matches N-API paths generically with napi-v\d+, while ORT_BINDING_GRACEFUL resolves to require(globalThis.__LORE_ORT_BINDING_PATH__) when set and otherwise supplies { listSupportedBackends: () => [] }; the build throws a descriptive error if the expected native-addon require shape changes.ortNpmDualPlugin() resolves the real onnxruntime-node entry from packages/core/ via createRequire, uses plugin name "ort-npm-dual", and throws a descriptive build error if transformers.js no longer contains the expected jsDelivr CDN ONNX_ENV.wasm.wasmPaths assignment.packages/gateway/dist/embedding-worker.cjs at 581816 bytes and packages/gateway/dist/embedding-worker.js at 581495 bytes; both reported unresolvedDefine:false, manifestField:true, glibc:true, version:true, loadClassifier:true, and wasmMessage:true.