mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-11 03:46:49 -07:00
Fixed final duplicate imports and exports
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user