Dashboard › opencode › Distillation
f9937624-9f4a-4287-9197-53815d410b51["lore_tm_v1_YhKpMZh_oygqJ_bqK2EtkOH_tlTqhc82U80NTZxqxww","lore_tm_v1_HpMFk-8t9PlaC0j4LO5_GwoTlW7GxvHJqs7szxKlJHc","lore_tm_v1_bITqJDUngQzR26FUsqmMFHLrB5kDHp_c1AtDC0fcdtU","lore_tm_v1_Hk75BwVBSWk3LIpZTikZSF1xy7fQklOrKZp520lDxCw","lore_tm_v1_ru1uSAmkuTIk6QiZt-2qlI8OaSWWKglxmQX3-uUPJG8","lore_tm_v1_vsDAnyZD9Jj2X5V1oS-e28ON5x_nusLCYWPKoAMUM5E","lore_tm_v1_qbji4RftEyOz4jbZJWguKe-YwbxdrTdHSBJK4QhwFCg","lore_tm_v1_qJlj0v2Mm9pP7bKIzwFXVmr0-KeQQlTptd11TFA7HQQ","lore_tm_v1_wI2Y5t94bypJorv9g08pct_PT6GMLiTUbH4ysfgF6P4"]
packages/gateway/src/compaction.ts defines LORE_AGENT_HEADER = "x-lore-agent" at line 374 and documents the explicit x-lore-agent header from the OpenCode plugin as the authoritative signal at line 434.x-lore-agent value matches in packages/gateway/src/compaction.ts, it is βalways a normal turn.βx-lore-agent value matches in packages/gateway/src/compaction.ts, it is βalways passthrough.βpackages/opencode/src/index.ts: output.headers["x-lore-agent"] = input.agent at line 387 and output.headers["x-lore-provider"] = providerID at line 421.packages/pi/src/internal.ts sets "x-lore-provider": provider at line 315; tests assert this behavior in packages/pi/test/internal.test.ts line 59 and packages/pi/test/extension.e2e.test.ts line 158.packages/opencode/test/routing.e2e.test.ts expect x-lore-agent: build and x-lore-provider: anthropic; packages/opencode/test/session-state.test.ts expects x-lore-agent: coder.x-lore-provider handling concentrated in packages/gateway/src/pipeline.ts, including reads at lines 6206 and 14268, invalid-header handling at line 6246, provider-mismatch commentary at line 12862, and fallback-header restoration/deletion from sessionState.lastUpstream.providerID at lines 13385β13387.packages/gateway/src/config.ts reads headers["x-lore-provider"] at line 978; comments at lines 1045 and 1083 state that requests such as title/summary generation may carry no x-lore-provider, while an explicit x-lore-provider header is authoritative.x-lore-agent/x-lore-provider across session-retention.test.ts, openai-responses.test.ts, upstream-routes.test.ts, recall-exhaustion.test.ts, recall-buffered-transaction.test.ts, pipeline-streaming.test.ts, anthropic-recall-continuation-abort.test.ts, routing-log-redaction.test.ts, responses-upstream-error-relay.test.ts, recall-codex-stream.test.ts, vertex-routing.test.ts, upstream-extra-header-routing.test.ts, and server-node-bridge.test.ts.packages/gateway/test/upstream-routes.test.ts covers provider IDs minimax, minimax-cn, and case-sensitive MiniMax; rejects empty, "mini max!", 65-character, and NUL-containing values; and tests explicit x-lore-provider precedence over the upstream URL.packages/gateway/test/pipeline-streaming.test.ts contains title-agent requests using "x-lore-agent": "title" both with and without provider headers, plus provider migration scenarios involving openai, anthropic, and google.packages/gateway/src/auth.ts comments describe null provider identity as unknown/agnostic for legacy clients that sent no x-lore-provider, preserving single-provider compatibility.@opencode/plugin: root package.json and packages/sdk/package.json, packages/plugin-browser/package.json, packages/latex/package.json, packages/cli/package.json, packages/tui/package.json, packages/simulation/package.json, packages/server/package.json, packages/core/package.json, and packages/merman/package.json; each uses "@opencode/plugin": "workspace:*". The package itself is named @opencode/plugin in packages/plugin/package.json./home/byk/Code/opencode-v2-pilot/packages/plugin/src/promise/index.ts exports types PluginOptions, StorageEntry, StorageScanOptions, and StorageScanResult; namespace Plugin from ./plugin.js; and schema exports Agent, Command, Connection, Credential, Integration, Location, Mcp, Model, PersistentPty, Provider, Reference, Rpc, Skill, Vcs, WebSearch, and Worktree.0.0.0-reserved./home/byk/Code/opencode-lore/packages/opencode/tsconfig.json extends ../../tsconfig.base.json, sets noEmit: true, types: ["bun"], and path mapping "@loreai/core": ["../core/src/index.ts"], and includes src, test, script, scripts, and eval./home/byk/Code/opencode-lore/tsconfig.base.json sets target: "ESNext", module: "ESNext", moduleResolution: "bundler", allowImportingTsExtensions: true, strict: true, esModuleInterop: true, skipLibCheck: true, declaration: true, and types: [].packages/opencode/test/ contains 7 listed test files: index.test.ts, routing.e2e.test.ts, internal.test.ts, gateway-smoke.test.ts, subagent-detection.test.ts, tui-silence.test.ts, and session-state.test.ts.