fix: prepublish changes to package names (#1420)

This commit is contained in:
Brandon Keiji
2025-06-25 05:41:11 -07:00
committed by GitHub
parent a3c46c0d31
commit f6c36f75e3
67 changed files with 129 additions and 122 deletions

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { AuthType } from '@gemini-cli/core';
import { AuthType } from '@google/gemini-cli-core';
import { loadEnvironment } from './config.js';
export const validateAuthMethod = (authMethod: string): string | null => {

View File

@@ -12,7 +12,7 @@ import {
Config,
ConfigParameters,
ContentGeneratorConfig,
} from '@gemini-cli/core';
} from '@google/gemini-cli-core';
const TEST_CONTENT_GENERATOR_CONFIG: ContentGeneratorConfig = {
apiKey: 'test-key',
@@ -21,8 +21,8 @@ const TEST_CONTENT_GENERATOR_CONFIG: ContentGeneratorConfig = {
};
// Mock file discovery service and tool registry
vi.mock('@gemini-cli/core', async () => {
const actual = await vi.importActual('@gemini-cli/core');
vi.mock('@google/gemini-cli-core', async () => {
const actual = await vi.importActual('@google/gemini-cli-core');
return {
...actual,
FileDiscoveryService: vi.fn().mockImplementation(() => ({

View File

@@ -9,7 +9,7 @@ import * as os from 'os';
import { loadCliConfig } from './config.js';
import { Settings } from './settings.js';
import { Extension } from './extension.js';
import * as ServerConfig from '@gemini-cli/core';
import * as ServerConfig from '@google/gemini-cli-core';
vi.mock('os', async (importOriginal) => {
const actualOs = await importOriginal<typeof os>();
@@ -29,9 +29,10 @@ vi.mock('read-package-up', () => ({
),
}));
vi.mock('@gemini-cli/core', async () => {
const actualServer =
await vi.importActual<typeof ServerConfig>('@gemini-cli/core');
vi.mock('@google/gemini-cli-core', async () => {
const actualServer = await vi.importActual<typeof ServerConfig>(
'@google/gemini-cli-core',
);
return {
...actualServer,
loadEnvironment: vi.fn(),

View File

@@ -18,7 +18,7 @@ import {
DEFAULT_GEMINI_EMBEDDING_MODEL,
FileDiscoveryService,
TelemetryTarget,
} from '@gemini-cli/core';
} from '@google/gemini-cli-core';
import { Settings } from './settings.js';
import { Extension } from './extension.js';

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { MCPServerConfig } from '@gemini-cli/core';
import { MCPServerConfig } from '@google/gemini-cli-core';
import * as fs from 'fs';
import * as path from 'path';
import * as os from 'os';

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { SandboxConfig } from '@gemini-cli/core';
import { SandboxConfig } from '@google/gemini-cli-core';
import commandExists from 'command-exists';
import * as os from 'node:os';
import { getPackageJson } from '../utils/package.js';

View File

@@ -13,7 +13,7 @@ import {
BugCommandSettings,
TelemetrySettings,
AuthType,
} from '@gemini-cli/core';
} from '@google/gemini-cli-core';
import stripJsonComments from 'strip-json-comments';
import { DefaultLight } from '../ui/themes/default-light.js';
import { DefaultDark } from '../ui/themes/default.js';