fix(plugin-sdk): share canonical replay hook families

This commit is contained in:
Vincent Koc
2026-04-14 16:33:55 +01:00
parent 20bfa3cce3
commit 4c15f1310b
12 changed files with 53 additions and 44 deletions

View File

@@ -1,13 +1,9 @@
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
import { PASSTHROUGH_GEMINI_REPLAY_HOOKS } from "openclaw/plugin-sdk/provider-model-shared";
import { applyOpencodeGoConfig, OPENCODE_GO_DEFAULT_MODEL_REF } from "./api.js";
const PROVIDER_ID = "opencode-go";
const PASSTHROUGH_GEMINI_REPLAY_HOOKS = buildProviderReplayFamilyHooks({
family: "passthrough-gemini",
});
export default definePluginEntry({
id: PROVIDER_ID,
name: "OpenCode Go Provider",