Dashboard › opencode › Distillation
f23a7a48-2394-48fa-b057-6324c3a7432e["lore_tm_v1_OvMpUUmg5G3CMisM30RGUzBrlLnECo9czD27GK2EtV4","lore_tm_v1_Lrojr4CJBAz62q1OM-7GCe96cvs6qnImh2a3_5I_PQQ","lore_tm_v1_HSI1Y7ubgbWQTcY5QB_iK5MuWu9hf2HsFU6HCiMkUmY"]
remoteUrl matches in /home/byk/Code/opencode-lore/packages/gateway: /home/byk/Code/opencode-lore/packages/gateway/src/cli/commands/start.ts line 11 documents opts.remoteUrl as an optional remote gateway URL and line 107 sets remoteUrl: flags.remote; /home/byk/Code/opencode-lore/packages/gateway/src/cli/start.ts line 90 declares remoteUrl?: string; and line 451 appends ["--remote", opts.remoteUrl] to args when set./home/byk/Code/opencode-lore/packages/gateway/script/bundle.ts ships unpatched ort-wasm-simd-threaded.mjs and ort-wasm-simd-threaded.wasm beside worker bundles; embedding-worker.ts sets __LORE_NPM_WASM_PATHS__ so transformers.js loads local WASM rather than the jsDelivr CDN.embedding-worker.ts forces numThreads=1, causing ort-web to use the single-thread path and never call its pthread new Worker(...); Node workers lack a global Worker, so changing numThreads would create a latent crash unless the copied .mjs is patched like build-binary-sea./home/byk/Code/opencode-lore/packages/gateway/script/bundle.ts to replace the placeholder UUID with the real debug ID in the JS bundle. The implementation calls injectDebugId(jsPath, mapPath, { skipSnippet: true }), stores result.debugId, and uses content.replaceAll(PLACEHOLDER_DEBUG_ID, debugId); both IDs are 36-character UUIDs so sourcemap character positions remain valid.skipSnippet: true because the IIFE snippet breaks mixed ESM/CJS output; the debug ID is instead registered in instrument.ts through the build-time __SENTRY_DEBUG_ID__ constant./home/byk/Code/opencode-lore/packages/gateway/script/bundle.ts: when SENTRY_AUTH_TOKEN exists, it runs npx sentry sourcemap upload dist/ --release ${pkg.version} --org byk --project loreai-gateway --url-prefix ~/; local development and fork PRs without the token skip upload gracefully.uploaded becomes true only after successful Sentry upload, then unlinkSync(mapPath) deletes the .map; failed uploads retain maps so retries do not require a full rebuild.dist/bin.cjs wrapper requires Node.js 22.15 or later, recommends curl -fsSL https://lore.dev/install | bash when the version is unsupported, suppresses process warning events, and runs require("./index.cjs").runCli().GatewayConfig declarations in /home/byk/Code/opencode-lore/packages/gateway/script/bundle.ts: port defaults to 3207 via LORE_LISTEN_PORT; hosts defaults to ["127.0.0.1"] via comma-separated LORE_LISTEN_HOST; upstream defaults are https://api.anthropic.com via LORE_UPSTREAM_ANTHROPIC and https://api.openai.com via LORE_UPSTREAM_OPENAI; idleTimeoutSeconds defaults to 60; debug defaults to false via LORE_DEBUG.