Dashboard › opencode-lore › Distillation
9d1188b7-fe33-4cf9-8c23-c9ff18664aee["lore_tm_v1_wyKsiZTRbn1ragLrz-KxTx_H-uBlVUTJ5-qQe7d5ZGY","lore_tm_v1_ITK1osgKkYIIFIfeWgMYRNl6XyK2NSGiBG073yeTvKM","lore_tm_v1_q6_g3SBldauoH2YJIJHHW0I6ACcgB3RV3PTSX4uH0EY","lore_tm_v1_YJ-4x2BMU1QkHO4Jlm6GzXWz7th3gjIAAKJbSYXM7uM","lore_tm_v1_UZ85RUVPjJmCbiDAawWKXxRuWSQsM1fK79-AG6SO5Qw","lore_tm_v1_o_45ZnfSvlJR4i6-uxYp1I46qAr23_TE1dwednCy0Ag","lore_tm_v1_Z2esw_cCQtT1tj6-dZbjydggR-dhlfUf3g4j27eKC4s","lore_tm_v1_rmfp26xCL7JP2L7_JaS_q4cTFxtJJROZC9Nqznq02oI","lore_tm_v1_BGwhmewLGiotZzRttQwXVACWaM_pxWSKtDKPmJkTfXs","lore_tm_v1_DgHeKDaQViRTPFFphslrX0FmYwedNsX-MXUYsdJBIBk","lore_tm_v1_YJifJdNSSFpfwMh10e5QDwQUw7GLRz9xyLOChjvVzkE","lore_tm_v1_1m3tKpRoW2ILJtSkLNCE9YYDwDnE03oIzXhqTJJGEzg","lore_tm_v1_B7_KaTmHTnqVnTQJt506I4BxP850oRA7Fxy1kpvpnik","lore_tm_v1_Y6dtcBUsjJT_2RthFdVWXLJJ9YtoM2kvWM-MSpkKAQM"]
Date: September 16, 2026
/home/byk/Code/opencode-lore-embedding-runtime/node_modules/.pnpm/onnxruntime-node@1.27.0/node_modules/onnxruntime-node/bin/napi-v6/linux/arm64/onnxruntime_binding.node failed with ERR_DLOPEN_FAILED: cannot open shared object file: No such file or directory./home/byk/Code/opencode-lore-embedding-runtime/packages/gateway/package.json failed with ERR_DLOPEN_FAILED: invalid ELF header.packages/core/package.json defines @loreai/core version 0.40.0, ESM package, license FSL-1.1-Apache-2.0, Node engine >=22.5, repository git+https://github.com/BYK/loreai.git under packages/core, and author BYK.@loreai/core exports use ./dist/types/index.d.ts for types, ./src/index.ts for development, ./dist/bun/index.js for bun, and ./dist/node/index.js by default; #db/driver resolves to ./src/db/driver.bun.ts under bun and ./src/db/driver.node.ts by default.@loreai/core scripts are typecheck: tsc --noEmit && tsc --noEmit -p tsconfig.eval.json and build: tsx script/build.ts.@loreai/core dependencies include @hpke/core ^1.9.0, @huggingface/hub 2.11.0, @noble/ciphers ^2.2.0, @noble/curves ^2.2.0, @noble/hashes ^2.2.0, micromark ^4.0.0, p-limit 7, pickleparser 0.2.1, remark ^15.0.1, sqlite-vec 0.1.9, unbash ^4.0.4, uuidv7 ^1.1.0, and zod ^4.3.6.@loreai/core optional dependencies are @huggingface/transformers ^3.7.1, onnxruntime-node 1.27.0, and sharp ^0.35.0; dev dependencies are @types/bun ^1.2.0, @types/mdast ^4.0.4, and ai-tokenizer ^1.0.6.packages/core/script/build.ts builds two ESM targets: dist/node/index.js using node:sqlite and dist/bun/index.js using bun:sqlite; both use esbuild with bundle: true, format: "esm", target: "esnext", platform: "node", sourcemaps, logLevel: "info", and legalComments: "inline".packages/core/script/build.ts externalizes exactly ["node:*", "bun:*", "onnxruntime-node", "sharp", "sqlite-vec"]; sqlite-vec must remain external so getLoadablePath() resolves its installed platform-native extension rather than silently degrading vector search.src/index.ts β dist/{node,bun}/index.js, src/embedding-worker.ts β dist/{node,bun}/embedding-worker.js, and src/vector-worker.ts β dist/{node,bun}/vector-worker.js.packages/core/script/build.ts runs Promise.all([buildTarget("node"), buildTarget("bun")]), emits declarations with tsc -p tsconfig.build.json, and recursively copies dist/types into both dist/node and dist/bun.linux/arm64/onnxruntime_binding.node requires GLIBC 2.17, while linux/arm64/libonnxruntime.so.1 requires GLIBC versions 2.17 and 2.27 with maximum requirement 2.27.quality/COMPLETENESS_REPORT.md:43 claims REQ-001 embedding fallback is implemented in packages/core/src/embedding.ts as a WASM backend fallback when native ONNX is unavailable, covered by test_embedding_fallback_recovery and Group 10.packages/core/src/embedding/pool.ts at 1789559359907.697; artifacts were packages/gateway/dist/index.cjs at 1789561019667.7034 and packages/gateway/dist/index.bun.js at 1789561010760.7659; oldestArtifactMs was 1789561010760.7659, and the check reported fresh: true./home/byk/Code/opencode-lore-embedding-runtime passed exactly 4 test files and 125 tests in 4.55s; transform 1.64s, setup 1.89s, import 3.74s, tests 1.60s, environment 1ms.classified:false for all 4 representative messages: /pkg/onnxruntime_binding.node: failed to map segment from shared object; C:\pkg\onnxruntime_binding.node is not a valid Win32 application.; /pkg/libonnxruntime.so.1: version \GLIBC_2.28` not found; and /pkg/onnxruntime_binding.node: wrong ELF class: ELFCLASS32`.packages/core/src/log.ts defines redactSensitiveLogText() at line 175 and routes formatted log arguments and sanitized Error messages/stacks through it before logging or external error capture.redactSensitiveLogText() uses redactCredentialHeaderAssignments(value, "[Filtered]") plus patterns for private-key blocks, Bearer/Basic credentials, sensitive header lines, OpenAI-style sk- keys, GitHub tokens, AWS access keys, and JWTs.packages/core/src/log.ts: LOG_MAX_BYTES = 5 * 1024 * 1024, ROTATION_CHECK_INTERVAL = 1000, LOG_DIRECTORY_MODE = 0o700, LOG_FILE_MODE = 0o600, and NO_FOLLOW = process.platform === "win32" ? 0 : constants.O_NOFOLLOW.No files found.packages/gateway/test/bundle-exports.test.ts, including line 287 case "%s rejects a malformed native addon before loading the WASM fallback", and in packages/gateway/test/ort-platform-package.test.ts, whose line 19 comment says resolver throws should trigger WASM fallback and bind both sides.tmzmtlss / commit e6d0f1edc8504c79ef3a6baacb1d74e4908e116b, bookmark fix/embedding-runtime-admission, description fix(core): correct embedding runtime selection and admission, based on parent pxrvwsvv / 2cbf40060c67df229731cf1b9e34d5bf22ec2145 on main.packages/core/src/cgroup-memory.ts and packages/core/test/cgroup-memory.test.ts; modify 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/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.fix/responses-private-references has conflicts, while the reviewed candidate itself was reported conflict-free.63ee4287e8fa794a661519a52a493edf6dba857a33b5da39b33bc0e40d7950da.packages/gateway/dist/index.cjs β e3287ccf1edac222c5fade64a7420551aaaac06c1d14087022e4017c770cde2e; packages/gateway/dist/index.bun.js β 498d2e325388f604ac6e225ffea8318aec8a42193057916bf6f5f32d18b593b5; packages/gateway/dist/embedding-worker.cjs β eb0ccfc5ef503b0351675b9e5d86579f8152fbfae7c1786aa909f3bbb2f93915; packages/gateway/dist/embedding-worker.js β e02912f98b6bf4c74f539311093ad08fcb3c2e152f86170d580d6dddf7902025; packages/gateway/dist/ort-wasm-simd-threaded.mjs β 43c25054b6b9ac000f786c65545ff83a45f871e0e310e8c2f4d48a363bb66db4; packages/gateway/dist/ort-wasm-simd-threaded.wasm β f061472c6e77d6d50d079aacdc0ff9b63fee287ddd2cbf46cf62438d3891de2b.DO-NOT-MERGE with 4 MUST-FIX findings and 1 CONCERN.packages/core/src/embedding-worker.ts:232-242 discards structured Error.code and classifies only err.message, while packages/core/src/embedding-worker-types.ts:227-235 expects ERR_DLOPEN_FAILED inside the message. Consequently real loader failures such as failed to map segment from shared object, not a valid Win32 application, version 'GLIBC_β¦' not found, and wrong ELF class classify false, produce init-error, and cause native retry instead of the one-shot WASM fallback.packages/core/test/embedding-worker-types.test.ts:82-100 uses a synthetic message containing [ERR_DLOPEN_FAILED] and therefore does not reproduce Nodeβs real error shape; recommended passing the structured error code to the classifier and adding Linux, macOS, Windows, noexec, and version-mismatch cases.packages/gateway/test/bundle-exports.test.ts:60-62,114-123 checks freshness only for dist/index.cjs and dist/index.bun.js, although regressions at lines 185-413 read and execute embedding-worker.cjs and embedding-worker.js. Stale worker artifacts can therefore be tested while index artifacts appear current; recommended including both workers, preferably every asserted generated artifact, in the freshness set.packages/core/src/ort-native.ts:157-160 is not directly protected by the existing escape test at packages/core/test/ort-native.test.ts:422-438, because that test symlinks the entire bin directory and is already rejected at ort-native.ts:271-272. Recommended tests with escaped onnxruntime_binding.node symlinks inside otherwise-contained bin trees for both workspace and published-package routes.packages/core/src/embedding-worker.ts:235-239 emits and forwards raw native-loader messages, and packages/core/src/embedding/local.ts:768-771 interpolates them into a persistent log. Because loader diagnostics can contain absolute installation paths and newlines, assistant recommended fixed categorical diagnostics plus tests proving hostile paths and newlines never reach log sinks.Worker in packages/gateway/test/bundle-exports.test.ts:196-413, with manual injection of __filename and require; this does not test Bunβs loader, globals, or native-error shape. Source/build symmetry exists, but there is no real Bun integration regression.tmzmtlss / e6d0f1edc8504c79ef3a6baacb1d74e4908e116b, parent 2cbf40060c67df229731cf1b9e34d5bf22ec2145, conflict-free candidate with unrelated bookmark conflict, plain diff SHA-256 63ee4287e8fa794a661519a52a493edf6dba857a33b5da39b33bc0e40d7950da, and focused result of 4 files / 125 tests passed.repo-setup skill was replaced by manual review of AGENTS.md, quality/REVIEW.md, and package manifests.