build(plugins): add bundled provider plugin packages

This commit is contained in:
Peter Steinberger
2026-03-15 16:09:21 -07:00
parent 4adcfa3256
commit 684e5ea249
49 changed files with 1099 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
import { emptyPluginConfigSchema, type OpenClawPluginApi } from "openclaw/plugin-sdk/core";
import {
buildDoubaoCodingProvider,
buildDoubaoProvider,
} from "../../src/agents/models-config.providers.static.js";
const PROVIDER_ID = "volcengine";
const volcenginePlugin = {
id: PROVIDER_ID,
name: "Volcengine Provider",
description: "Bundled Volcengine provider plugin",
configSchema: emptyPluginConfigSchema(),
register(api: OpenClawPluginApi) {
api.registerProvider({
id: PROVIDER_ID,
label: "Volcengine",
docsPath: "/concepts/model-providers#volcano-engine-doubao",
envVars: ["VOLCANO_ENGINE_API_KEY"],
auth: [],
catalog: {
order: "paired",
run: async (ctx) => {
const apiKey = ctx.resolveProviderApiKey(PROVIDER_ID).apiKey;
if (!apiKey) {
return null;
}
return {
providers: {
volcengine: { ...buildDoubaoProvider(), apiKey },
"volcengine-plan": { ...buildDoubaoCodingProvider(), apiKey },
},
};
},
},
});
},
};
export default volcenginePlugin;