Dashboard › opencode-lore › Distillation
3cc1cfa0-e190-42e0-b619-97bf33002f48["lore_tm_v1_Y83yh7fr4o2JMjnHJ2UB0VBi9qAR9R3MZ8mqITG20fs","lore_tm_v1_sBYjmTs7Hy3hAZhpn1e29lWZ-r3fpDb04P89QsFWoR0"]
Date: Sep 16, 2026
beforeAll, so it always runs against a bundle built for the current checkout.node_modules / ORT WASM are intentionally excluded from staleness detection.@loreai/core at runtime.devDependencies are never installed for a transitively installed consumer; every internal @loreai/* package consumed at runtime must be a declared runtime dependency, and no internal @loreai/* package may be hidden in devDependencies.packages/gateway/script/ort-platform-package.ts generates version-locked per-platform native ONNX Runtime npm packages modeled on esbuild’s platform-package approach: @loreai/onnxruntime-<os>-<arch>.linux-x64 (linux/x64), linux-arm64 (linux/arm64), darwin-arm64 (darwin/arm64), win32-x64 (win32/x64), and win32-arm64 (win32/arm64). darwin-x64 is absent because onnxruntime-node 1.27.0 dropped the Intel macOS prebuilt; Intel Macs fall back to WASM through null binding-path resolution.os/cpu gating as optionalDependencies, set preferUnplugged: true for Yarn PnP, contain no install script, and intentionally omit an exports map so runtime code can deep-resolve @loreai/onnxruntime-<target>/onnxruntime_binding.node.onnxruntime-node postinstall downloads, which may not run automatically under npm 12 and can fail in offline, air-gapped, or proxied environments; when no platform package resolves, the gateway falls back to its bundled single-threaded WASM runtime.buildOrtPlatformPackages(outDir, version, platforms) in packages/gateway/script/ort-platform-package.ts recreates outDir/onnxruntime-<target>/, copies the target’s native addon and shared libraries flat into the package root, and writes package.json plus README.md; package metadata includes loreOrtNodeVersion, license FSL-1.1-Apache-2.0, public publish access, repository git+https://github.com/BYK/loreai.git, and repository directory packages/gateway.packages/gateway/script/ort-platform-package.ts CLI is tsx script/ort-platform-package.ts --out <dir> [--version x.y.z]; --out is required and exits with status 1 when absent, while version defaults to the gateway’s package.json version.