Fixed final duplicate imports and exports

This commit is contained in:
mkorwel
2026-04-17 16:19:50 +00:00
parent a1d4604131
commit 57ea3acc85
5 changed files with 18 additions and 22 deletions
@@ -9,7 +9,6 @@ import * as fs from 'node:fs';
import { Writable } from 'node:stream';
import { ProxyAgent } from 'undici';
import type { CommandContext } from '../../ui/commands/types.js';
import {
getGitRepoRoot,
getLatestGitHubRelease,
@@ -21,6 +20,7 @@ import {
CommandKind,
type SlashCommand,
type SlashCommandActionReturn,
type CommandContext,
} from './types.js';
import { getUrlOpenCommand } from '../../ui/utils/commandUtils.js';
import { debugLogger } from '@google/gemini-cli-core';
-1
View File
@@ -17,6 +17,5 @@ export { HookEventHandler } from './hookEventHandler.js';
// Export interfaces and enums
export type { HookRegistryEntry } from './hookRegistry.js';
export { ConfigSource } from './types.js';
export type { AggregatedHookResult } from './hookAggregator.js';
export type { HookEventContext } from './hookPlanner.js';
+2 -13
View File
@@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
/* eslint-disable import/export */
// Export config
export * from './config/config.js';
export * from './config/agent-loop-context.js';
@@ -68,7 +70,6 @@ export * from './core/apiKeyCredentialStorage.js';
// Export utilities
export * from './utils/fetch.js';
export { homedir, tmpdir } from './utils/paths.js';
export * from './utils/paths.js';
export * from './utils/checks.js';
export * from './utils/headless.js';
@@ -94,11 +95,6 @@ export * from './utils/approvalModeUtils.js';
export * from './utils/fileDiffUtils.js';
export * from './utils/retry.js';
export * from './utils/shell-utils.js';
export {
PolicyDecision,
ApprovalMode,
PRIORITY_YOLO_ALLOW_ALL,
} from './policy/types.js';
export * from './utils/tool-utils.js';
export * from './utils/tool-visibility.js';
export * from './utils/terminalSerializer.js';
@@ -122,7 +118,6 @@ export * from './utils/extensionLoader.js';
export * from './utils/package.js';
export * from './utils/version.js';
export * from './utils/checkpointUtils.js';
export * from './utils/secure-browser-launcher.js';
export * from './utils/apiConversionUtils.js';
export * from './utils/channel.js';
export * from './utils/constants.js';
@@ -274,12 +269,6 @@ export { Storage } from './config/storage.js';
// Export hooks system
export * from './hooks/index.js';
// Export hook types
export * from './hooks/types.js';
// Export agent types
export * from './agents/types.js';
// Export stdio utils
export * from './utils/stdio.js';
export * from './utils/terminal.js';
@@ -824,9 +824,9 @@ describe('ClearcutLogger', () => {
// Spy on flushToClearcut to prevent it from clearing the queue
const flushSpy = vi
.spyOn(
(logger as unknown as {
logger as unknown as {
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
}),
},
'flushToClearcut',
)
.mockResolvedValue({ nextRequestWaitMs: 0 });
@@ -1490,9 +1490,9 @@ describe('ClearcutLogger', () => {
const { logger } = setup();
const flushSpy = vi
.spyOn(
(logger as unknown as {
logger as unknown as {
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
}),
},
'flushToClearcut',
)
.mockResolvedValue({ nextRequestWaitMs: 0 });
@@ -1505,9 +1505,9 @@ describe('ClearcutLogger', () => {
const { logger } = setup();
const flushSpy = vi
.spyOn(
(logger as unknown as {
logger as unknown as {
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
}),
},
'flushToClearcut',
)
.mockResolvedValue({ nextRequestWaitMs: 0 });
+9 -1
View File
@@ -8,4 +8,12 @@ export * from './agent.js';
export * from './session.js';
export * from './tool.js';
export * from './skills.js';
export * from './types.js';
export type {
SystemInstructions,
GeminiCliAgentOptions,
AgentFilesystem,
AgentShellOptions,
AgentShellResult,
AgentShell,
SessionContext,
} from './types.js';