mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 07:30:52 -07:00
Remove unused code (#15290)
This commit is contained in:
committed by
GitHub
parent
2515b89e2b
commit
edab97997a
@@ -797,7 +797,7 @@ function validateName(name: string) {
|
||||
}
|
||||
}
|
||||
|
||||
export function getExtensionId(
|
||||
function getExtensionId(
|
||||
config: ExtensionConfig,
|
||||
installMetadata?: ExtensionInstallMetadata,
|
||||
): string {
|
||||
|
||||
@@ -1938,9 +1938,3 @@ type InferSettings<T extends SettingsSchema> = {
|
||||
};
|
||||
|
||||
export type Settings = InferSettings<SettingsSchemaType>;
|
||||
|
||||
export interface FooterSettings {
|
||||
hideCWD?: boolean;
|
||||
hideSandboxStatus?: boolean;
|
||||
hideModelInfo?: boolean;
|
||||
}
|
||||
|
||||
@@ -4,16 +4,6 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
const EstimatedArtWidth = 59;
|
||||
const BoxBorderWidth = 1;
|
||||
export const BOX_PADDING_X = 1;
|
||||
|
||||
// Calculate width based on art, padding, and border
|
||||
export const UI_WIDTH =
|
||||
EstimatedArtWidth + BOX_PADDING_X * 2 + BoxBorderWidth * 2; // ~63
|
||||
|
||||
export const STREAM_DEBOUNCE_MS = 100;
|
||||
|
||||
export const SHELL_COMMAND_NAME = 'Shell Command';
|
||||
|
||||
export const SHELL_NAME = 'Shell';
|
||||
|
||||
@@ -194,9 +194,7 @@ let parentToolRegistry: ToolRegistry;
|
||||
* Type-safe helper to create agent definitions for tests.
|
||||
*/
|
||||
|
||||
export const createTestDefinition = <
|
||||
TOutput extends z.ZodTypeAny = z.ZodUnknown,
|
||||
>(
|
||||
const createTestDefinition = <TOutput extends z.ZodTypeAny = z.ZodUnknown>(
|
||||
tools: Array<string | MockTool> = [LS_TOOL_NAME],
|
||||
runConfigOverrides: Partial<LocalAgentDefinition<TOutput>['runConfig']> = {},
|
||||
outputConfigMode: 'default' | 'none' = 'default',
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
/**
|
||||
* DTO for TOML parsing - represents the raw structure of the TOML file.
|
||||
*/
|
||||
export interface TomlAgentDefinition {
|
||||
interface TomlAgentDefinition {
|
||||
name: string;
|
||||
description: string;
|
||||
display_name?: string;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
export type ModelId = string;
|
||||
|
||||
export type TerminalUnavailabilityReason = 'quota' | 'capacity';
|
||||
type TerminalUnavailabilityReason = 'quota' | 'capacity';
|
||||
export type TurnUnavailabilityReason = 'retry_once_per_turn';
|
||||
|
||||
export type UnavailabilityReason =
|
||||
|
||||
Reference in New Issue
Block a user