fix: remove circular references in core package (#1271) (#1272)

This commit is contained in:
Brandon Keiji 2025-06-20 16:21:09 -07:00 committed by GitHub
parent 4acb870959
commit 1d32313a30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 11 deletions

View File

@ -7,7 +7,7 @@
import {
DEFAULT_GEMINI_MODEL,
DEFAULT_GEMINI_FLASH_MODEL,
} from '@gemini-cli/core';
} from '../config/models.js';
/**
* Checks if the default "pro" model is rate-limited and returns a fallback "flash"

View File

@ -4,7 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { AuthType, ToolConfirmationOutcome } from '../index.js';
import { ToolConfirmationOutcome } from '../tools/tools.js';
import { AuthType } from '../core/contentGenerator.js';
import { logs } from '@opentelemetry/api-logs';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { Config } from '../config/config.js';
@ -27,14 +28,6 @@ import * as sdk from './sdk.js';
import { vi, describe, beforeEach, it, expect } from 'vitest';
import { GenerateContentResponse } from '@google/genai';
vi.mock('@gemini-cli/cli/dist/src/utils/version', () => ({
getCliVersion: () => 'test-version',
}));
vi.mock('@gemini-cli/cli/dist/src/config/settings', () => ({
getTheme: () => 'test-theme',
}));
describe('loggers', () => {
const mockLogger = {
emit: vi.fn(),

View File

@ -30,7 +30,7 @@ import {
recordToolCallMetrics,
} from './metrics.js';
import { isTelemetrySdkInitialized } from './sdk.js';
import { ToolConfirmationOutcome } from '../index.js';
import { ToolConfirmationOutcome } from '../tools/tools.js';
import {
GenerateContentResponse,
GenerateContentResponseUsageMetadata,