mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-17 13:30:53 -07:00
Fixed final duplicate imports and exports
This commit is contained in:
@@ -9,7 +9,6 @@ import * as fs from 'node:fs';
|
|||||||
import { Writable } from 'node:stream';
|
import { Writable } from 'node:stream';
|
||||||
import { ProxyAgent } from 'undici';
|
import { ProxyAgent } from 'undici';
|
||||||
|
|
||||||
import type { CommandContext } from '../../ui/commands/types.js';
|
|
||||||
import {
|
import {
|
||||||
getGitRepoRoot,
|
getGitRepoRoot,
|
||||||
getLatestGitHubRelease,
|
getLatestGitHubRelease,
|
||||||
@@ -21,6 +20,7 @@ import {
|
|||||||
CommandKind,
|
CommandKind,
|
||||||
type SlashCommand,
|
type SlashCommand,
|
||||||
type SlashCommandActionReturn,
|
type SlashCommandActionReturn,
|
||||||
|
type CommandContext,
|
||||||
} from './types.js';
|
} from './types.js';
|
||||||
import { getUrlOpenCommand } from '../../ui/utils/commandUtils.js';
|
import { getUrlOpenCommand } from '../../ui/utils/commandUtils.js';
|
||||||
import { debugLogger } from '@google/gemini-cli-core';
|
import { debugLogger } from '@google/gemini-cli-core';
|
||||||
|
|||||||
@@ -17,6 +17,5 @@ export { HookEventHandler } from './hookEventHandler.js';
|
|||||||
|
|
||||||
// Export interfaces and enums
|
// Export interfaces and enums
|
||||||
export type { HookRegistryEntry } from './hookRegistry.js';
|
export type { HookRegistryEntry } from './hookRegistry.js';
|
||||||
export { ConfigSource } from './types.js';
|
|
||||||
export type { AggregatedHookResult } from './hookAggregator.js';
|
export type { AggregatedHookResult } from './hookAggregator.js';
|
||||||
export type { HookEventContext } from './hookPlanner.js';
|
export type { HookEventContext } from './hookPlanner.js';
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-disable import/export */
|
||||||
|
|
||||||
// Export config
|
// Export config
|
||||||
export * from './config/config.js';
|
export * from './config/config.js';
|
||||||
export * from './config/agent-loop-context.js';
|
export * from './config/agent-loop-context.js';
|
||||||
@@ -68,7 +70,6 @@ export * from './core/apiKeyCredentialStorage.js';
|
|||||||
|
|
||||||
// Export utilities
|
// Export utilities
|
||||||
export * from './utils/fetch.js';
|
export * from './utils/fetch.js';
|
||||||
export { homedir, tmpdir } from './utils/paths.js';
|
|
||||||
export * from './utils/paths.js';
|
export * from './utils/paths.js';
|
||||||
export * from './utils/checks.js';
|
export * from './utils/checks.js';
|
||||||
export * from './utils/headless.js';
|
export * from './utils/headless.js';
|
||||||
@@ -94,11 +95,6 @@ export * from './utils/approvalModeUtils.js';
|
|||||||
export * from './utils/fileDiffUtils.js';
|
export * from './utils/fileDiffUtils.js';
|
||||||
export * from './utils/retry.js';
|
export * from './utils/retry.js';
|
||||||
export * from './utils/shell-utils.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-utils.js';
|
||||||
export * from './utils/tool-visibility.js';
|
export * from './utils/tool-visibility.js';
|
||||||
export * from './utils/terminalSerializer.js';
|
export * from './utils/terminalSerializer.js';
|
||||||
@@ -122,7 +118,6 @@ export * from './utils/extensionLoader.js';
|
|||||||
export * from './utils/package.js';
|
export * from './utils/package.js';
|
||||||
export * from './utils/version.js';
|
export * from './utils/version.js';
|
||||||
export * from './utils/checkpointUtils.js';
|
export * from './utils/checkpointUtils.js';
|
||||||
export * from './utils/secure-browser-launcher.js';
|
|
||||||
export * from './utils/apiConversionUtils.js';
|
export * from './utils/apiConversionUtils.js';
|
||||||
export * from './utils/channel.js';
|
export * from './utils/channel.js';
|
||||||
export * from './utils/constants.js';
|
export * from './utils/constants.js';
|
||||||
@@ -274,12 +269,6 @@ export { Storage } from './config/storage.js';
|
|||||||
// Export hooks system
|
// Export hooks system
|
||||||
export * from './hooks/index.js';
|
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 stdio utils
|
||||||
export * from './utils/stdio.js';
|
export * from './utils/stdio.js';
|
||||||
export * from './utils/terminal.js';
|
export * from './utils/terminal.js';
|
||||||
|
|||||||
@@ -824,9 +824,9 @@ describe('ClearcutLogger', () => {
|
|||||||
// Spy on flushToClearcut to prevent it from clearing the queue
|
// Spy on flushToClearcut to prevent it from clearing the queue
|
||||||
const flushSpy = vi
|
const flushSpy = vi
|
||||||
.spyOn(
|
.spyOn(
|
||||||
(logger as unknown as {
|
logger as unknown as {
|
||||||
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
|
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
|
||||||
}),
|
},
|
||||||
'flushToClearcut',
|
'flushToClearcut',
|
||||||
)
|
)
|
||||||
.mockResolvedValue({ nextRequestWaitMs: 0 });
|
.mockResolvedValue({ nextRequestWaitMs: 0 });
|
||||||
@@ -1490,9 +1490,9 @@ describe('ClearcutLogger', () => {
|
|||||||
const { logger } = setup();
|
const { logger } = setup();
|
||||||
const flushSpy = vi
|
const flushSpy = vi
|
||||||
.spyOn(
|
.spyOn(
|
||||||
(logger as unknown as {
|
logger as unknown as {
|
||||||
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
|
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
|
||||||
}),
|
},
|
||||||
'flushToClearcut',
|
'flushToClearcut',
|
||||||
)
|
)
|
||||||
.mockResolvedValue({ nextRequestWaitMs: 0 });
|
.mockResolvedValue({ nextRequestWaitMs: 0 });
|
||||||
@@ -1505,9 +1505,9 @@ describe('ClearcutLogger', () => {
|
|||||||
const { logger } = setup();
|
const { logger } = setup();
|
||||||
const flushSpy = vi
|
const flushSpy = vi
|
||||||
.spyOn(
|
.spyOn(
|
||||||
(logger as unknown as {
|
logger as unknown as {
|
||||||
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
|
flushToClearcut: () => Promise<{ nextRequestWaitMs: number }>;
|
||||||
}),
|
},
|
||||||
'flushToClearcut',
|
'flushToClearcut',
|
||||||
)
|
)
|
||||||
.mockResolvedValue({ nextRequestWaitMs: 0 });
|
.mockResolvedValue({ nextRequestWaitMs: 0 });
|
||||||
|
|||||||
@@ -8,4 +8,12 @@ export * from './agent.js';
|
|||||||
export * from './session.js';
|
export * from './session.js';
|
||||||
export * from './tool.js';
|
export * from './tool.js';
|
||||||
export * from './skills.js';
|
export * from './skills.js';
|
||||||
export * from './types.js';
|
export type {
|
||||||
|
SystemInstructions,
|
||||||
|
GeminiCliAgentOptions,
|
||||||
|
AgentFilesystem,
|
||||||
|
AgentShellOptions,
|
||||||
|
AgentShellResult,
|
||||||
|
AgentShell,
|
||||||
|
SessionContext,
|
||||||
|
} from './types.js';
|
||||||
|
|||||||
Reference in New Issue
Block a user