diff options
| author | Brandon Keiji <[email protected]> | 2025-06-25 05:41:11 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-25 12:41:11 +0000 |
| commit | f6c36f75e37a9fb6e53480981c2ca1b9267763a0 (patch) | |
| tree | 49f7c66c5db08c5440c86d534c89cb5bcb1664f7 /packages/cli/src/ui/hooks | |
| parent | a3c46c0d316eab5c17ecd9a00cab961edd24c2a4 (diff) | |
fix: prepublish changes to package names (#1420)
Diffstat (limited to 'packages/cli/src/ui/hooks')
20 files changed, 33 insertions, 33 deletions
diff --git a/packages/cli/src/ui/hooks/atCommandProcessor.test.ts b/packages/cli/src/ui/hooks/atCommandProcessor.test.ts index 572131af..08631634 100644 --- a/packages/cli/src/ui/hooks/atCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/atCommandProcessor.test.ts @@ -7,7 +7,7 @@ import { describe, it, expect, vi, beforeEach, afterEach, Mock } from 'vitest'; import type { Mocked } from 'vitest'; import { handleAtCommand } from './atCommandProcessor.js'; -import { Config, FileDiscoveryService } from '@gemini-cli/core'; +import { Config, FileDiscoveryService } from '@google/gemini-cli-core'; import { ToolCallStatus } from '../types.js'; import { UseHistoryManagerReturn } from './useHistoryManager.js'; import * as fsPromises from 'fs/promises'; @@ -52,8 +52,8 @@ vi.mock('fs/promises', async () => { }; }); -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(), diff --git a/packages/cli/src/ui/hooks/atCommandProcessor.ts b/packages/cli/src/ui/hooks/atCommandProcessor.ts index 3bbdce0d..80393ef2 100644 --- a/packages/cli/src/ui/hooks/atCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/atCommandProcessor.ts @@ -12,7 +12,7 @@ import { getErrorMessage, isNodeError, unescapePath, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; import { HistoryItem, IndividualToolCallDisplay, diff --git a/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts b/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts index 847ce054..4549f929 100644 --- a/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts @@ -7,7 +7,7 @@ import { act, renderHook } from '@testing-library/react'; import { vi } from 'vitest'; import { useShellCommandProcessor } from './shellCommandProcessor'; -import { Config, GeminiClient } from '@gemini-cli/core'; +import { Config, GeminiClient } from '@google/gemini-cli-core'; import * as fs from 'fs'; import EventEmitter from 'events'; @@ -22,7 +22,7 @@ vi.mock('os', () => ({ platform: () => 'linux', tmpdir: () => '/tmp', })); -vi.mock('@gemini-cli/core'); +vi.mock('@google/gemini-cli-core'); vi.mock('../utils/textUtils.js', () => ({ isBinary: vi.fn(), })); diff --git a/packages/cli/src/ui/hooks/shellCommandProcessor.ts b/packages/cli/src/ui/hooks/shellCommandProcessor.ts index fbd62d0c..c6b89515 100644 --- a/packages/cli/src/ui/hooks/shellCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/shellCommandProcessor.ts @@ -8,7 +8,7 @@ import { spawn } from 'child_process'; import { StringDecoder } from 'string_decoder'; import type { HistoryItemWithoutId } from '../types.js'; import { useCallback } from 'react'; -import { Config, GeminiClient } from '@gemini-cli/core'; +import { Config, GeminiClient } from '@google/gemini-cli-core'; import { type PartListUnion } from '@google/genai'; import { formatMemoryUsage } from '../utils/formatters.js'; import { isBinary } from '../utils/textUtils.js'; diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts index d411a2da..dd3e7c4f 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts @@ -68,7 +68,7 @@ import { getMCPDiscoveryState, getMCPServerStatus, GeminiClient, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; import { useSessionStats } from '../contexts/SessionContext.js'; import { LoadedSettings } from '../../config/settings.js'; @@ -712,7 +712,7 @@ Add any other context about the problem here. describe('/mcp command', () => { beforeEach(() => { // Mock the core module with getMCPServerStatus and getMCPDiscoveryState - vi.mock('@gemini-cli/core', async (importOriginal) => { + vi.mock('@google/gemini-cli-core', async (importOriginal) => { const actual = await importOriginal(); return { ...actual, diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index f76580b7..8a34ddfe 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -18,7 +18,7 @@ import { MCPServerStatus, getMCPDiscoveryState, getMCPServerStatus, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; import { useSessionStats } from '../contexts/SessionContext.js'; import { Message, diff --git a/packages/cli/src/ui/hooks/useAuthCommand.ts b/packages/cli/src/ui/hooks/useAuthCommand.ts index fe890706..bccb285e 100644 --- a/packages/cli/src/ui/hooks/useAuthCommand.ts +++ b/packages/cli/src/ui/hooks/useAuthCommand.ts @@ -11,7 +11,7 @@ import { Config, clearCachedCredentialFile, getErrorMessage, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; async function performAuthFlow(authMethod: AuthType, config: Config) { await config.refreshAuth(authMethod); diff --git a/packages/cli/src/ui/hooks/useAutoAcceptIndicator.test.ts b/packages/cli/src/ui/hooks/useAutoAcceptIndicator.test.ts index 834039ea..bda6c259 100644 --- a/packages/cli/src/ui/hooks/useAutoAcceptIndicator.test.ts +++ b/packages/cli/src/ui/hooks/useAutoAcceptIndicator.test.ts @@ -20,14 +20,14 @@ import { Config, Config as ActualConfigType, ApprovalMode, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; import { useInput, type Key as InkKey } from 'ink'; vi.mock('ink'); -vi.mock('@gemini-cli/core', async () => { +vi.mock('@google/gemini-cli-core', async () => { const actualServerModule = (await vi.importActual( - '@gemini-cli/core', + '@google/gemini-cli-core', )) as Record<string, unknown>; return { ...actualServerModule, diff --git a/packages/cli/src/ui/hooks/useAutoAcceptIndicator.ts b/packages/cli/src/ui/hooks/useAutoAcceptIndicator.ts index b6e722a3..8af3cea1 100644 --- a/packages/cli/src/ui/hooks/useAutoAcceptIndicator.ts +++ b/packages/cli/src/ui/hooks/useAutoAcceptIndicator.ts @@ -6,7 +6,7 @@ import { useState, useEffect } from 'react'; import { useInput } from 'ink'; -import { ApprovalMode, type Config } from '@gemini-cli/core'; +import { ApprovalMode, type Config } from '@google/gemini-cli-core'; export interface UseAutoAcceptIndicatorArgs { config: Config; diff --git a/packages/cli/src/ui/hooks/useCompletion.integration.test.ts b/packages/cli/src/ui/hooks/useCompletion.integration.test.ts index 237b6aae..6a178fb1 100644 --- a/packages/cli/src/ui/hooks/useCompletion.integration.test.ts +++ b/packages/cli/src/ui/hooks/useCompletion.integration.test.ts @@ -9,13 +9,13 @@ import type { Mocked } from 'vitest'; import { renderHook, act } from '@testing-library/react'; import { useCompletion } from './useCompletion.js'; import * as fs from 'fs/promises'; -import { FileDiscoveryService } from '@gemini-cli/core'; +import { FileDiscoveryService } from '@google/gemini-cli-core'; import { glob } from 'glob'; // Mock dependencies vi.mock('fs/promises'); -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(), diff --git a/packages/cli/src/ui/hooks/useCompletion.ts b/packages/cli/src/ui/hooks/useCompletion.ts index eef54fc8..8e18e32f 100644 --- a/packages/cli/src/ui/hooks/useCompletion.ts +++ b/packages/cli/src/ui/hooks/useCompletion.ts @@ -15,7 +15,7 @@ import { getErrorMessage, Config, FileDiscoveryService, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; import { MAX_SUGGESTIONS_TO_SHOW, Suggestion, diff --git a/packages/cli/src/ui/hooks/useEditorSettings.test.ts b/packages/cli/src/ui/hooks/useEditorSettings.test.ts index c69c2a31..7b056c2a 100644 --- a/packages/cli/src/ui/hooks/useEditorSettings.test.ts +++ b/packages/cli/src/ui/hooks/useEditorSettings.test.ts @@ -22,10 +22,10 @@ import { type EditorType, checkHasEditorType, allowEditorTypeInSandbox, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; -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, checkHasEditorType: vi.fn(() => true), diff --git a/packages/cli/src/ui/hooks/useEditorSettings.ts b/packages/cli/src/ui/hooks/useEditorSettings.ts index 1fe3983e..60c16798 100644 --- a/packages/cli/src/ui/hooks/useEditorSettings.ts +++ b/packages/cli/src/ui/hooks/useEditorSettings.ts @@ -11,7 +11,7 @@ import { allowEditorTypeInSandbox, checkHasEditorType, EditorType, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; interface UseEditorSettingsReturn { isEditorDialogOpen: boolean; diff --git a/packages/cli/src/ui/hooks/useGeminiStream.test.tsx b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx index ed1eea4d..3da95ffd 100644 --- a/packages/cli/src/ui/hooks/useGeminiStream.test.tsx +++ b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx @@ -16,7 +16,7 @@ import { TrackedExecutingToolCall, TrackedCancelledToolCall, } from './useReactToolScheduler.js'; -import { Config, EditorType, AuthType } from '@gemini-cli/core'; +import { Config, EditorType, AuthType } from '@google/gemini-cli-core'; import { Part, PartListUnion } from '@google/genai'; import { UseHistoryManagerReturn } from './useHistoryManager.js'; import { HistoryItem, MessageType, StreamingState } from '../types.js'; @@ -42,7 +42,7 @@ const MockedUserPromptEvent = vi.hoisted(() => vi.fn().mockImplementation(() => {}), ); -vi.mock('@gemini-cli/core', async (importOriginal) => { +vi.mock('@google/gemini-cli-core', async (importOriginal) => { const actualCoreModule = (await importOriginal()) as any; return { ...actualCoreModule, diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts index a8816f98..ddd7c185 100644 --- a/packages/cli/src/ui/hooks/useGeminiStream.ts +++ b/packages/cli/src/ui/hooks/useGeminiStream.ts @@ -24,7 +24,7 @@ import { ThoughtSummary, UnauthorizedError, UserPromptEvent, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; import { type Part, type PartListUnion } from '@google/genai'; import { StreamingState, diff --git a/packages/cli/src/ui/hooks/useLogger.ts b/packages/cli/src/ui/hooks/useLogger.ts index eda14187..879e9dd7 100644 --- a/packages/cli/src/ui/hooks/useLogger.ts +++ b/packages/cli/src/ui/hooks/useLogger.ts @@ -5,7 +5,7 @@ */ import { useState, useEffect } from 'react'; -import { sessionId, Logger } from '@gemini-cli/core'; +import { sessionId, Logger } from '@google/gemini-cli-core'; /** * Hook to manage the logger instance. diff --git a/packages/cli/src/ui/hooks/useReactToolScheduler.ts b/packages/cli/src/ui/hooks/useReactToolScheduler.ts index 7f08c81f..5e1bbd25 100644 --- a/packages/cli/src/ui/hooks/useReactToolScheduler.ts +++ b/packages/cli/src/ui/hooks/useReactToolScheduler.ts @@ -21,7 +21,7 @@ import { ToolCall, Status as CoreStatus, EditorType, -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; import { useCallback, useState, useMemo } from 'react'; import { HistoryItemToolGroup, diff --git a/packages/cli/src/ui/hooks/useShellHistory.ts b/packages/cli/src/ui/hooks/useShellHistory.ts index 507a18de..90248cc0 100644 --- a/packages/cli/src/ui/hooks/useShellHistory.ts +++ b/packages/cli/src/ui/hooks/useShellHistory.ts @@ -7,7 +7,7 @@ import { useState, useEffect, useCallback } from 'react'; import * as fs from 'fs/promises'; import * as path from 'path'; -import { isNodeError, getProjectTempDir } from '@gemini-cli/core'; +import { isNodeError, getProjectTempDir } from '@google/gemini-cli-core'; const HISTORY_FILE = 'shell_history'; const MAX_HISTORY_LENGTH = 100; diff --git a/packages/cli/src/ui/hooks/useShowMemoryCommand.ts b/packages/cli/src/ui/hooks/useShowMemoryCommand.ts index 341298ba..c1811507 100644 --- a/packages/cli/src/ui/hooks/useShowMemoryCommand.ts +++ b/packages/cli/src/ui/hooks/useShowMemoryCommand.ts @@ -5,7 +5,7 @@ */ import { Message, MessageType } from '../types.js'; -import { Config } from '@gemini-cli/core'; +import { Config } from '@google/gemini-cli-core'; import { LoadedSettings } from '../../config/settings.js'; export function createShowMemoryAction( diff --git a/packages/cli/src/ui/hooks/useToolScheduler.test.ts b/packages/cli/src/ui/hooks/useToolScheduler.test.ts index 1bc9e6be..4b88adaa 100644 --- a/packages/cli/src/ui/hooks/useToolScheduler.test.ts +++ b/packages/cli/src/ui/hooks/useToolScheduler.test.ts @@ -24,7 +24,7 @@ import { ToolCall, // Import from core Status as ToolCallStatusType, ApprovalMode, // Import from core -} from '@gemini-cli/core'; +} from '@google/gemini-cli-core'; import { HistoryItemWithoutId, ToolCallStatus, @@ -32,8 +32,8 @@ import { } from '../types.js'; // Mocks -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, ToolRegistry: vi.fn(), |
