UNPKG

quantum-cli-core

Version:

Quantum CLI Core - Multi-LLM Collaboration System

19 lines 767 B
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { AuthType } from '../core/contentGenerator.js'; import { getOauthClient } from './oauth2.js'; import { setupUser } from './setup.js'; import { CodeAssistServer } from './server.js'; export async function createCodeAssistContentGenerator(httpOptions, authType, sessionId) { if (authType === AuthType.LOGIN_WITH_GOOGLE || authType === AuthType.CLOUD_SHELL) { const authClient = await getOauthClient(authType); const projectId = await setupUser(authClient); return new CodeAssistServer(authClient, projectId, httpOptions, sessionId); } throw new Error(`Unsupported authType: ${authType}`); } //# sourceMappingURL=codeAssist.js.map