repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/commands/privacyCommand.test.ts
packages/cli/src/ui/commands/privacyCommand.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, beforeEach } from 'vitest'; import { privacyCommand } from './privacyCommand.js'; import { type CommandContext } from './types.js'; import { createMockCommandContext } from '../../test-utils/mockComma...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/commands/mcpCommand.test.ts
packages/cli/src/ui/commands/mcpCommand.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi, describe, it, expect, beforeEach } from 'vitest'; import { mcpCommand } from './mcpCommand.js'; import { createMockCommandContext } from '../../test-utils/mockCommandContext.js'; import { MCPServerStatus, MCPDiscov...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/commands/directoryCommand.tsx
packages/cli/src/ui/commands/directoryCommand.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { isFolderTrustEnabled, isWorkspaceTrusted, loadTrustedFolders, } from '../../config/trustedFolders.js'; import { MultiFolderTrustDialog } from '../components/MultiFolderTrustDialog.js'; import type { SlashCommand, Com...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/commands/quitCommand.test.ts
packages/cli/src/ui/commands/quitCommand.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi, describe, it, expect, beforeEach, afterEach } from 'vitest'; import { quitCommand } from './quitCommand.js'; import { createMockCommandContext } from '../../test-utils/mockCommandContext.js'; import { formatDuration } ...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/commands/statsCommand.test.ts
packages/cli/src/ui/commands/statsCommand.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi, describe, it, expect, beforeEach } from 'vitest'; import { statsCommand } from './statsCommand.js'; import { type CommandContext } from './types.js'; import { createMockCommandContext } from '../../test-utils/mockComma...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/usePrivacySettings.ts
packages/cli/src/ui/hooks/usePrivacySettings.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useCallback } from 'react'; import { type Config, type CodeAssistServer, UserTierId, getCodeAssistServer, } from '@google/gemini-cli-core'; export interface PrivacyState { isLoading: boolean...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useExtensionUpdates.ts
packages/cli/src/ui/hooks/useExtensionUpdates.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { debugLogger, type GeminiCLIExtension } from '@google/gemini-cli-core'; import { getErrorMessage } from '../../utils/errors.js'; import { ExtensionUpdateState, extensionUpdatesReducer, initialExtensionUpdatesState, } ...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useMouseClick.ts
packages/cli/src/ui/hooks/useMouseClick.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { getBoundingBox, type DOMElement } from 'ink'; import type React from 'react'; import { useMouse, type MouseEvent } from '../contexts/MouseContext.js'; export const useMouseClick = ( containerRef: React.RefObject<DOMElem...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSlashCompletion.ts
packages/cli/src/ui/hooks/useSlashCompletion.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useMemo } from 'react'; import { AsyncFzf } from 'fzf'; import type { Suggestion } from '../components/SuggestionsDisplay.js'; import { CommandKind, type CommandContext, type SlashCommand, } from...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useReactToolScheduler.ts
packages/cli/src/ui/hooks/useReactToolScheduler.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Config, ToolCallRequestInfo, ExecutingToolCall, ScheduledToolCall, ValidatingToolCall, WaitingToolCall, CompletedToolCall, CancelledToolCall, OutputUpdateHandler, AllToolCallsCompleteHandler, Too...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useMouse.ts
packages/cli/src/ui/hooks/useMouse.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect } from 'react'; import type { MouseHandler, MouseEvent } from '../contexts/MouseContext.js'; import { useMouseContext } from '../contexts/MouseContext.js'; export type { MouseEvent }; /** * A hook that listens...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSnowfall.test.tsx
packages/cli/src/ui/hooks/useSnowfall.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { useSnowfall } from './useSnowfall.js'; import { themeManager } from '../themes/theme-manager.js'; import { renderHookWithProviders } from '../../tes...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
packages/cli/src/ui/hooks/useGeminiStream.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { Mock, MockInstance } from 'vitest'; import { describe, it, expect, vi, beforeEach } from 'vitest'; import { act } from 'react'; import { renderHook } from '../.....
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
true
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/usePermissionsModifyTrust.test.ts
packages/cli/src/ui/hooks/usePermissionsModifyTrust.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach, type Mock, } from 'vitest'; import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { usePermissionsModifyTrust } from './...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useIdeTrustListener.test.tsx
packages/cli/src/ui/hooks/useIdeTrustListener.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { render } from '../../test-utils/render.js'; import { act } from 'react'; import { vi, describe, it, expect, beforeEach } from 'vitest'; import { IdeClient, IDEConnectionStatus, ideContextStore, type IDEConnectionSt...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useRefreshMemoryCommand.ts
packages/cli/src/ui/hooks/useRefreshMemoryCommand.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ export const REFRESH_MEMORY_COMMAND_NAME = '/refreshmemory';
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useBatchedScroll.test.ts
packages/cli/src/ui/hooks/useBatchedScroll.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { renderHook } from '../../test-utils/render.js'; import { useBatchedScroll } from './useBatchedScroll.js'; describe('useBatchedScroll', () => { it('returns initial scrollTop...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useStateAndRef.ts
packages/cli/src/ui/hooks/useStateAndRef.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; // Hook to return state, state setter, and ref to most up-to-date value of state. // We need this in order to setState and reference the updated state multiple // times in the same function. export const...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useInputHistoryStore.ts
packages/cli/src/ui/hooks/useInputHistoryStore.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { debugLogger } from '@google/gemini-cli-core'; import { useState, useCallback } from 'react'; interface Logger { getPreviousUserMessages(): Promise<string[]>; } export interface UseInputHistoryStoreReturn { inputHisto...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSettingsCommand.ts
packages/cli/src/ui/hooks/useSettingsCommand.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; export function useSettingsCommand() { const [isSettingsDialogOpen, setIsSettingsDialogOpen] = useState(false); const openSettingsDialog = useCallback(() => { setIsSettingsDi...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useInputHistory.ts
packages/cli/src/ui/hooks/useInputHistory.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; interface UseInputHistoryProps { userMessages: readonly string[]; onSubmit: (value: string) => void; isActive: boolean; currentQuery: string; // Renamed from query to avoid co...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useEditorSettings.ts
packages/cli/src/ui/hooks/useEditorSettings.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; import type { LoadableSettingScope, LoadedSettings, } from '../../config/settings.js'; import { MessageType } from '../types.js'; import type { EditorType } from '@google/gemini-cl...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSessionBrowser.ts
packages/cli/src/ui/hooks/useSessionBrowser.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; import type { HistoryItemWithoutId } from '../types.js'; import * as fs from 'node:fs/promises'; import path from 'node:path'; import type { Config, ConversationRecord, ResumedSe...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/vim.test.tsx
packages/cli/src/ui/hooks/vim.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, type Mock } from 'vitest'; import type React from 'react'; import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { waitFor } from '../../test-uti...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
true
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSnowfall.ts
packages/cli/src/ui/hooks/useSnowfall.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useMemo } from 'react'; import { getAsciiArtWidth } from '../utils/textUtils.js'; import { debugState } from '../debug.js'; import { themeManager } from '../themes/theme-manager.js'; import { Holiday }...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useMessageQueue.ts
packages/cli/src/ui/hooks/useMessageQueue.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useCallback, useEffect, useState } from 'react'; import { StreamingState } from '../types.js'; export interface UseMessageQueueOptions { isConfigInitialized: boolean; streamingState: StreamingState; submitQuery: (qu...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useLogger.ts
packages/cli/src/ui/hooks/useLogger.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect } from 'react'; import type { Storage } from '@google/gemini-cli-core'; import { sessionId, Logger } from '@google/gemini-cli-core'; /** * Hook to manage the logger instance. */ export const useLogge...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useReactToolScheduler.test.ts
packages/cli/src/ui/hooks/useReactToolScheduler.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { CoreToolScheduler } from '@google/gemini-cli-core'; import type { Config } from '@google/gemini-cli-core'; import { renderHook } from '../../test-utils/render.js'; import { vi, describe, it, expect, beforeEach } from 'vite...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/usePermissionsModifyTrust.ts
packages/cli/src/ui/hooks/usePermissionsModifyTrust.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; import * as process from 'node:process'; import * as path from 'node:path'; import { loadTrustedFolders, TrustLevel, isWorkspaceTrusted, } from '../../config/trustedFolders.js'; ...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useTimer.test.tsx
packages/cli/src/ui/hooks/useTimer.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { useTimer } from './useTimer.js'; describe('useTimer', () => { b...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useLoadingIndicator.test.tsx
packages/cli/src/ui/hooks/useLoadingIndicator.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { useLoadingIndicator } from './useLoadingIndicator.js'; import { St...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useKittyKeyboardProtocol.ts
packages/cli/src/ui/hooks/useKittyKeyboardProtocol.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState } from 'react'; import { terminalCapabilityManager } from '../utils/terminalCapabilityManager.js'; export interface KittyProtocolStatus { enabled: boolean; checking: boolean; } /** * Hook that returns the c...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useToolScheduler.test.ts
packages/cli/src/ui/hooks/useToolScheduler.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { Mock } from 'vitest'; import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { act } from 'react'; import { renderHook } from '../../te...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
true
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useFolderTrust.test.ts
packages/cli/src/ui/hooks/useFolderTrust.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi, type Mock, type MockInstance } from 'vitest'; import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { useFolderTrust } from '....
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useCommandCompletion.tsx
packages/cli/src/ui/hooks/useCommandCompletion.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useCallback, useMemo, useEffect } from 'react'; import type { Suggestion } from '../components/SuggestionsDisplay.js'; import type { CommandContext, SlashCommand } from '../commands/types.js'; import type { TextBuffer } fr...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/atCommandProcessor.ts
packages/cli/src/ui/hooks/atCommandProcessor.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import * as fs from 'node:fs/promises'; import * as path from 'node:path'; import type { PartListUnion, PartUnion } from '@google/genai'; import type { AnyToolInvocation, Config, DiscoveredMCPResource, } from '@google/gemini-...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useReverseSearchCompletion.test.tsx
packages/cli/src/ui/hooks/useReverseSearchCompletion.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { act } from 'react'; import { renderHookWithProviders } from '../../test-utils/render.js'; import { useReverseSearchCompletion } from './useReverseSe...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSelectionList.test.tsx
packages/cli/src/ui/hooks/useSelectionList.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { useSelectio...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useCompletion.ts
packages/cli/src/ui/hooks/useCompletion.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; import type { Suggestion } from '../components/SuggestionsDisplay.js'; import { MAX_SUGGESTIONS_TO_SHOW } from '../components/SuggestionsDisplay.js'; export interface UseCompletionRe...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/usePromptCompletion.ts
packages/cli/src/ui/hooks/usePromptCompletion.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback, useRef, useEffect, useMemo } from 'react'; import type { Config } from '@google/gemini-cli-core'; import { debugLogger, getResponseText } from '@google/gemini-cli-core'; import type { Content } from ...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSessionResume.test.ts
packages/cli/src/ui/hooks/useSessionResume.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { useSessionResume } from './useSessionResume.js'; import type { Config, ResumedS...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useBatchedScroll.ts
packages/cli/src/ui/hooks/useBatchedScroll.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useRef, useEffect, useCallback } from 'react'; /** * A hook to manage batched scroll state updates. * It allows multiple scroll operations within the same tick to accumulate * by keeping track of a 'pending' state that...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSessionResume.ts
packages/cli/src/ui/hooks/useSessionResume.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useCallback, useEffect, useRef } from 'react'; import type { Config, ResumedSessionData } from '@google/gemini-cli-core'; import type { Part } from '@google/genai'; import type { HistoryItemWithoutId } from '../types.js'; ...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useConsoleMessages.ts
packages/cli/src/ui/hooks/useConsoleMessages.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useCallback, useEffect, useReducer, useRef, useTransition, } from 'react'; import type { ConsoleMessageItem } from '../types.js'; import { coreEvents, CoreEvent, type ConsoleLogPayload, } from '@google/gemi...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useBanner.ts
packages/cli/src/ui/hooks/useBanner.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useRef } from 'react'; import { persistentState } from '../../utils/persistentState.js'; import type { Config } from '@google/gemini-cli-core'; import crypto from 'node:crypto'; const DEFAULT_MAX_BANN...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useModelCommand.test.tsx
packages/cli/src/ui/hooks/useModelCommand.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { useModelCommand } from './useModelCommand.js'; describe('useModelCommand', () => { let res...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useGitBranchName.test.tsx
packages/cli/src/ui/hooks/useGitBranchName.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { MockedFunction } from 'vitest'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { waitFor } from '../....
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useLoadingIndicator.ts
packages/cli/src/ui/hooks/useLoadingIndicator.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { StreamingState } from '../types.js'; import { useTimer } from './useTimer.js'; import { usePhraseCycler } from './usePhraseCycler.js'; import { useState, useEffect, useRef } from 'react'; // Added useRef export const useL...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSlashCompletion.test.ts
packages/cli/src/ui/hooks/useSlashCompletion.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi } from 'vitest'; import { act, useState } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { useSlashCompletion } f...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
true
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useAutoAcceptIndicator.ts
packages/cli/src/ui/hooks/useAutoAcceptIndicator.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect } from 'react'; import { ApprovalMode, type Config } from '@google/gemini-cli-core'; import { useKeypress } from './useKeypress.js'; import type { HistoryItemWithoutId } from '../types.js'; import { Mes...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useGitBranchName.ts
packages/cli/src/ui/hooks/useGitBranchName.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useCallback } from 'react'; import { spawnAsync } from '@google/gemini-cli-core'; import fs from 'node:fs'; import fsPromises from 'node:fs/promises'; import path from 'node:path'; export function use...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useFolderTrust.ts
packages/cli/src/ui/hooks/useFolderTrust.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback, useEffect, useRef } from 'react'; import type { LoadedSettings } from '../../config/settings.js'; import { FolderTrustChoice } from '../components/FolderTrustDialog.js'; import { loadTrustedFolders...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useGeminiStream.ts
packages/cli/src/ui/hooks/useGeminiStream.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useRef, useCallback, useEffect, useMemo } from 'react'; import type { Config, EditorType, GeminiClient, ServerGeminiChatCompressedEvent, ServerGeminiContentEvent as ContentEvent, ServerGeminiFinishedE...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
true
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/shellCommandProcessor.ts
packages/cli/src/ui/hooks/shellCommandProcessor.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { HistoryItemWithoutId, IndividualToolCallDisplay, } from '../types.js'; import { ToolCallStatus } from '../types.js'; import { useCallback, useState } from 'react'; import type { AnsiOutput, Config, GeminiCli...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useFocus.ts
packages/cli/src/ui/hooks/useFocus.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useStdin, useStdout } from 'ink'; import { useEffect, useState } from 'react'; import { useKeypress } from './useKeypress.js'; // ANSI escape codes to enable/disable terminal focus reporting export const ENABLE_FOCUS_REPO...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
packages/cli/src/ui/hooks/slashCommandProcessor.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useCallback, useMemo, useEffect, useState, createElement, } from 'react'; import { type PartListUnion } from '@google/genai'; import process from 'node:process'; import type { UseHistoryManagerReturn } from './us...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useMemoryMonitor.test.tsx
packages/cli/src/ui/hooks/useMemoryMonitor.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { render } from '../../test-utils/render.js'; import { vi } from 'vitest'; import { useMemoryMonitor, MEMORY_CHECK_INTERVAL, MEMORY_WARNING_THRESHOLD, } from './useMemoryMonitor.js'; import process from 'node:process';...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useAnimatedScrollbar.test.tsx
packages/cli/src/ui/hooks/useAnimatedScrollbar.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { useAnimatedScrollbar } from './useAnimatedScrollbar.js'; import { debugState } from '../debug.js'; import { describe, it, expect, beforeEach...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useIncludeDirsTrust.tsx
packages/cli/src/ui/hooks/useIncludeDirsTrust.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect } from 'react'; import type { Config } from '@google/gemini-cli-core'; import { loadTrustedFolders } from '../../config/trustedFolders.js'; import { expandHomeDir } from '../utils/directoryUtils.js'; import { d...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useTerminalSize.ts
packages/cli/src/ui/hooks/useTerminalSize.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect, useState } from 'react'; export function useTerminalSize(): { columns: number; rows: number } { const [size, setSize] = useState({ columns: process.stdout.columns || 60, rows: process.stdout.rows || 2...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useThemeCommand.ts
packages/cli/src/ui/hooks/useThemeCommand.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; import { themeManager } from '../themes/theme-manager.js'; import type { LoadableSettingScope, LoadedSettings, } from '../../config/settings.js'; // Import LoadedSettings, AppSetti...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useInputHistory.test.ts
packages/cli/src/ui/hooks/useInputHistory.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { useInputHistory } from './useInputHistory.js'; describe('useInputHistory', () => { const mockOnSubmit = vi.fn(); const mockOnChange...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/keyToAnsi.ts
packages/cli/src/ui/hooks/keyToAnsi.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Key } from '../contexts/KeypressContext.js'; export type { Key }; /** * Translates a Key object into its corresponding ANSI escape sequence. * This is useful for sending control characters to a pseudo-terminal. *...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useAnimatedScrollbar.ts
packages/cli/src/ui/hooks/useAnimatedScrollbar.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useRef, useCallback } from 'react'; import { theme } from '../semantic-colors.js'; import { interpolateColor } from '../themes/color-utils.js'; import { debugState } from '../debug.js'; export functio...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useInputHistoryStore.test.ts
packages/cli/src/ui/hooks/useInputHistoryStore.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { vi, describe, it, expect, beforeEach } from 'vitest'; import { useInputHistoryStore } from './useInputHistoryStore.js'; import { debugLo...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useAlternateBuffer.ts
packages/cli/src/ui/hooks/useAlternateBuffer.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useSettings } from '../contexts/SettingsContext.js'; import type { LoadedSettings } from '../../config/settings.js'; export const isAlternateBufferEnabled = (settings: LoadedSettings): boolean => settings.merged.ui?.use...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useBracketedPaste.ts
packages/cli/src/ui/hooks/useBracketedPaste.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect } from 'react'; import { disableBracketedPaste, enableBracketedPaste, } from '../utils/bracketedPaste.js'; /** * Enables and disables bracketed paste mode in the terminal. * * This hook ensures that brack...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/vim.ts
packages/cli/src/ui/hooks/vim.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useCallback, useReducer, useEffect } from 'react'; import type { Key } from './useKeypress.js'; import type { TextBuffer } from '../components/shared/text-buffer.js'; import { useVimMode } from '../contexts/VimModeContext....
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useHistoryManager.test.ts
packages/cli/src/ui/hooks/useHistoryManager.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { useHistory } from './useHistoryManager.js'; import type { HistoryItem } from '../types.js...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useCommandCompletion.test.tsx
packages/cli/src/ui/hooks/useCommandCompletion.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, beforeEach, vi, afterEach, type Mock, } from 'vitest'; import { act, useEffect } from 'react'; import { renderWithProviders } from '../../test-utils/render.js'; import { waitFor } from '...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useMouseClick.test.ts
packages/cli/src/ui/hooks/useMouseClick.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi, describe, it, expect, beforeEach, type Mock } from 'vitest'; import { renderHook } from '../../test-utils/render.js'; import { useMouseClick } from './useMouseClick.js'; import { getBoundingBox, type DOMElement } from ...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useReverseSearchCompletion.tsx
packages/cli/src/ui/hooks/useReverseSearchCompletion.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useMemo, useCallback, useRef } from 'react'; import { useCompletion } from './useCompletion.js'; import type { TextBuffer } from '../components/shared/text-buffer.js'; import type { Suggestion } from '...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useMessageQueue.test.tsx
packages/cli/src/ui/hooks/useMessageQueue.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { useMessageQue...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useExtensionUpdates.test.tsx
packages/cli/src/ui/hooks/useExtensionUpdates.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi } from 'vitest'; import * as fs from 'node:fs'; import * as os from 'node:os'; import * as path from 'node:path'; import { createExtension } from '../../test-utils/createExtension.js'; import { useExtensionUpdates } fro...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useShellHistory.test.ts
packages/cli/src/ui/hooks/useShellHistory.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, beforeEach, vi } from 'vitest'; import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { useShellHistory } fr...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useConsoleMessages.test.tsx
packages/cli/src/ui/hooks/useConsoleMessages.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { act, useCallback } from 'react'; import { vi } from 'vitest'; import { render } from '../../test-utils/render.js'; import { useConsoleMessages } from './useConsoleMessages.js'; import { CoreEvent, type ConsoleLogPayload } ...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useQuotaAndFallback.ts
packages/cli/src/ui/hooks/useQuotaAndFallback.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { AuthType, type Config, type FallbackModelHandler, type FallbackIntent, TerminalQuotaError, ModelNotFoundError, type UserTierId, PREVIEW_GEMINI_MODEL, DEFAULT_GEMINI_MODEL, VALID_GEMINI_MODELS, } from '@...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/usePhraseCycler.ts
packages/cli/src/ui/hooks/usePhraseCycler.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useRef } from 'react'; import { SHELL_FOCUS_HINT_DELAY_MS } from '../constants.js'; import { INFORMATIVE_TIPS } from '../constants/tips.js'; import { WITTY_LOADING_PHRASES } from '../constants/wittyPhr...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useQuotaAndFallback.test.ts
packages/cli/src/ui/hooks/useQuotaAndFallback.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi, describe, it, expect, beforeEach, afterEach, type Mock, } from 'vitest'; import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { type Config, type FallbackModelH...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useAtCompletion.test.ts
packages/cli/src/ui/hooks/useAtCompletion.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, beforeEach, vi, afterEach } from 'vitest'; import { act, useState } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import {...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useFlickerDetector.test.ts
packages/cli/src/ui/hooks/useFlickerDetector.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { renderHook } from '../../test-utils/render.js'; import { vi, type Mock } from 'vitest'; import { useFlickerDetector } from './useFlickerDetector.js'; import { useConfig } from '../contexts/ConfigContext.js'; import { recor...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useMouse.test.ts
packages/cli/src/ui/hooks/useMouse.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi } from 'vitest'; import { renderHook } from '../../test-utils/render.js'; import { useMouse } from './useMouse.js'; import { MouseProvider, useMouseContext } from '../contexts/MouseContext.js'; vi.mock('../contexts/Mou...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useIncludeDirsTrust.test.tsx
packages/cli/src/ui/hooks/useIncludeDirsTrust.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi, describe, it, expect, beforeEach } from 'vitest'; import type { Mock } from 'vitest'; import { renderHook } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { useIncludeDir...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/usePhraseCycler.test.tsx
packages/cli/src/ui/hooks/usePhraseCycler.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { Text } from 'ink'; import { usePhraseCycler, PHRASE_CHANGE_INT...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useMemoryMonitor.ts
packages/cli/src/ui/hooks/useMemoryMonitor.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect } from 'react'; import process from 'node:process'; import { type HistoryItemWithoutId, MessageType } from '../types.js'; export const MEMORY_WARNING_THRESHOLD = 7 * 1024 * 1024 * 1024; // 7GB in bytes export co...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useShellHistory.ts
packages/cli/src/ui/hooks/useShellHistory.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useCallback } from 'react'; import * as fs from 'node:fs/promises'; import * as path from 'node:path'; import { debugLogger, isNodeError, Storage } from '@google/gemini-cli-core'; const MAX_HISTORY_LE...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/usePrivacySettings.test.tsx
packages/cli/src/ui/hooks/usePrivacySettings.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, beforeEach, vi } from 'vitest'; import { act } from 'react'; import { render } from '../../test-utils/render.js'; import type { Config, CodeAssistServer } from '@google/gemini-cli-core'; import { User...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useKeypress.ts
packages/cli/src/ui/hooks/useKeypress.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect } from 'react'; import type { KeypressHandler, Key } from '../contexts/KeypressContext.js'; import { useKeypressContext } from '../contexts/KeypressContext.js'; export type { Key }; /** * A hook that listens f...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useModelCommand.ts
packages/cli/src/ui/hooks/useModelCommand.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; interface UseModelCommandReturn { isModelDialogOpen: boolean; openModelDialog: () => void; closeModelDialog: () => void; } export const useModelCommand = (): UseModelCommandRet...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useTimer.ts
packages/cli/src/ui/hooks/useTimer.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useRef } from 'react'; /** * Custom hook to manage a timer that increments every second. * @param isActive Whether the timer should be running. * @param resetKey A key that, when changed, will rese...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useKeypress.test.tsx
packages/cli/src/ui/hooks/useKeypress.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { useKeypress } from './useKeypress.js'; import { KeypressProvider } from '../contexts/KeypressContext.js'; import { useStdin } from 'ink'; im...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useAutoAcceptIndicator.test.ts
packages/cli/src/ui/hooks/useAutoAcceptIndicator.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, type MockedFunction, type Mock, } from 'vitest'; import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { useAutoAcceptIndicator } f...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useFlickerDetector.ts
packages/cli/src/ui/hooks/useFlickerDetector.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { type DOMElement, measureElement } from 'ink'; import { useEffect } from 'react'; import { useConfig } from '../contexts/ConfigContext.js'; import { recordFlickerFrame } from '@google/gemini-cli-core'; import { appEvents, A...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSelectionList.ts
packages/cli/src/ui/hooks/useSelectionList.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useReducer, useRef, useEffect, useCallback } from 'react'; import { useKeypress, type Key } from './useKeypress.js'; import { keyMatchers, Command } from '../keyMatchers.js'; import { debugLogger } from '@google/gemini-cli...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/shellCommandProcessor.test.tsx
packages/cli/src/ui/hooks/shellCommandProcessor.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { vi, describe, it, expect, beforeEach, afterEach, type Mock, } from 'vites...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/slashCommandProcessor.test.tsx
packages/cli/src/ui/hooks/slashCommandProcessor.test.tsx
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { vi, describe, it, expect, beforeEach, afterEach } from 'vitest'; import { act } from 'react'; import { renderHook } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { useSlashC...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
true
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useSessionBrowser.test.ts
packages/cli/src/ui/hooks/useSessionBrowser.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach } from 'vitest'; import { renderHook } from '../../test-utils/render.js'; import { act } from 'react'; import { useSessionBrowser, convertSessionToHistoryFormats, } from './useSessi...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useAtCompletion.ts
packages/cli/src/ui/hooks/useAtCompletion.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect, useReducer, useRef } from 'react'; import type { Config, FileSearch } from '@google/gemini-cli-core'; import { FileSearchFactory, escapePath } from '@google/gemini-cli-core'; import type { Suggestion } from '../...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/atCommandProcessor.test.ts
packages/cli/src/ui/hooks/atCommandProcessor.test.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Mock } from 'vitest'; import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { handleAtCommand } from './atCommandProcessor.js'; import type { Config, DiscoveredMCPResource } from '@google/ge...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
true
google-gemini/gemini-cli
https://github.com/google-gemini/gemini-cli/blob/d3c206c6770d320953dff80c01d555ad64df5b8b/packages/cli/src/ui/hooks/useHistoryManager.ts
packages/cli/src/ui/hooks/useHistoryManager.ts
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useRef, useCallback, useMemo } from 'react'; import type { HistoryItem } from '../types.js'; import type { ChatRecordingService } from '@google/gemini-cli-core/src/services/chatRecordingService.js'; // Type for ...
typescript
Apache-2.0
d3c206c6770d320953dff80c01d555ad64df5b8b
2026-01-04T15:25:31.833747Z
false