Files
openclaw/extensions/opencode-go/provider-discovery.ts
kumaxs 356385045f fix(opencode-go): warm context metadata from provider catalog (#92913)
Register OpenCode Go's provider-owned static catalog so lifecycle cache warmup supplies the correct context window to memory flush and compaction without persisting catalog rows in user config.

Fixes #92912.

Co-authored-by: kumaxs <45620232+kumaxs@users.noreply.github.com>
2026-06-14 12:08:49 -07:00

19 lines
566 B
TypeScript

// Opencode Go provider module exposes offline catalog metadata to core discovery.
import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared";
import { buildStaticOpencodeGoProviderConfig } from "./provider-catalog.js";
const opencodeGoProviderDiscovery: ProviderPlugin = {
id: "opencode-go",
label: "OpenCode Go",
docsPath: "/providers/models",
auth: [],
staticCatalog: {
order: "simple",
run: async () => ({
provider: buildStaticOpencodeGoProviderConfig(),
}),
},
};
export default opencodeGoProviderDiscovery;