fix: register google vertex setup provider

This commit is contained in:
Shakker
2026-04-29 19:09:54 +01:00
parent 78f3470368
commit 68aedf3908
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { describe, expect, it } from "vitest";
import setupEntry from "./setup-api.js";
describe("google setup entry", () => {
it("registers setup runtime providers declared by the manifest", () => {
const providerIds: string[] = [];
const cliBackendIds: string[] = [];
setupEntry.register({
registerProvider(provider) {
providerIds.push(provider.id);
},
registerCliBackend(backend) {
cliBackendIds.push(backend.id);
},
} as never);
expect(providerIds).toContain("google-vertex");
expect(cliBackendIds).toContain("google-gemini-cli");
});
});

View File

@@ -1,11 +1,13 @@
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
import { buildGoogleGeminiCliBackend } from "./cli-backend.js";
import { createGoogleVertexProvider } from "./provider-contract-api.js";
export default definePluginEntry({
id: "google",
name: "Google Setup",
description: "Lightweight Google setup hooks",
register(api) {
api.registerProvider(createGoogleVertexProvider());
api.registerCliBackend(buildGoogleGeminiCliBackend());
},
});