mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-19 09:41:17 -07:00
21 lines
697 B
TypeScript
21 lines
697 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2026 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { GceCosProvider } from './GceCosProvider.ts';
|
|
import { WorkerProvider } from './BaseProvider.ts';
|
|
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
const REPO_ROOT = path.resolve(__dirname, '../../../../..');
|
|
|
|
export class ProviderFactory {
|
|
static getProvider(config: { projectId: string; zone: string; instanceName: string }): WorkerProvider {
|
|
// Currently we only have GceCosProvider, but this is where we'd branch
|
|
return new GceCosProvider(config.projectId, config.zone, config.instanceName, REPO_ROOT);
|
|
}
|
|
}
|