mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 20:11:37 +00:00
* fix(google): delegate Gemini OAuth refresh to the CLI * refactor(google): remove retired Gemini OAuth stack * chore(ci): prune retired Google OAuth baseline * fix(google): retire Gemini CLI usage telemetry * fix(google): remove retired usage token parser
16 lines
412 B
TypeScript
16 lines
412 B
TypeScript
type VertexAdcTestApi = {
|
|
reset: () => void;
|
|
};
|
|
|
|
function requireTestApi(key: string): unknown {
|
|
const api = (globalThis as Record<PropertyKey, unknown>)[Symbol.for(key)];
|
|
if (!api) {
|
|
throw new Error(`Google test API is unavailable: ${key}`);
|
|
}
|
|
return api;
|
|
}
|
|
|
|
export function resetGoogleVertexAdcState(): void {
|
|
(requireTestApi("openclaw.google.vertexAdcTestApi") as VertexAdcTestApi).reset();
|
|
}
|