Remove unused code (#15290)

This commit is contained in:
Tommaso Sciortino
2025-12-18 15:04:29 -08:00
committed by GitHub
parent 2515b89e2b
commit edab97997a
6 changed files with 4 additions and 22 deletions

View File

@@ -797,7 +797,7 @@ function validateName(name: string) {
}
}
export function getExtensionId(
function getExtensionId(
config: ExtensionConfig,
installMetadata?: ExtensionInstallMetadata,
): string {

View File

@@ -1938,9 +1938,3 @@ type InferSettings<T extends SettingsSchema> = {
};
export type Settings = InferSettings<SettingsSchemaType>;
export interface FooterSettings {
hideCWD?: boolean;
hideSandboxStatus?: boolean;
hideModelInfo?: boolean;
}

View File

@@ -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';

View File

@@ -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',

View File

@@ -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;

View File

@@ -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 =