/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { ContentGenerator } from '../core/contentGenerator.js'; import { loginWithOauth } from './oauth2.js'; import { setupUser } from './setup.js'; import { CcpaServer } from './ccpaServer.js'; export async function createCodeAssistContentGenerator(): Promise { const oauth2Client = await loginWithOauth(); const projectId = await setupUser( oauth2Client, process.env.GOOGLE_CLOUD_PROJECT, ); return new CcpaServer(oauth2Client, projectId); }