mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Remove duplicate CLI tools module, remove the global tool registry (#89)
This commit is contained in:
@@ -9,7 +9,7 @@ import { Box, Text } from 'ink';
|
||||
import Spinner from 'ink-spinner';
|
||||
import { IndividualToolCallDisplay, ToolCallStatus } from '../../types.js';
|
||||
import { DiffRenderer } from './DiffRenderer.js';
|
||||
import { FileDiff, ToolResultDisplay } from '../../../tools/tools.js';
|
||||
import { FileDiff, ToolResultDisplay } from '@gemini-code/server';
|
||||
import { Colors } from '../../colors.js';
|
||||
|
||||
export const ToolMessage: React.FC<IndividualToolCallDisplay> = ({
|
||||
|
||||
@@ -35,7 +35,6 @@ import {
|
||||
IndividualToolCallDisplay,
|
||||
ToolCallStatus,
|
||||
} from '../types.js';
|
||||
import { toolRegistry } from '../../tools/tool-registry.js';
|
||||
|
||||
const addHistoryItem = (
|
||||
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
|
||||
@@ -53,6 +52,7 @@ export const useGeminiStream = (
|
||||
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
|
||||
config: Config,
|
||||
) => {
|
||||
const toolRegistry = config.getToolRegistry();
|
||||
const [streamingState, setStreamingState] = useState<StreamingState>(
|
||||
StreamingState.Idle,
|
||||
);
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { ToolCallConfirmationDetails } from '@gemini-code/server';
|
||||
import { ToolResultDisplay } from '../tools/tools.js';
|
||||
import {
|
||||
ToolCallConfirmationDetails,
|
||||
ToolResultDisplay,
|
||||
} from '@gemini-code/server';
|
||||
|
||||
// Only defining the state enum needed by the UI
|
||||
export enum StreamingState {
|
||||
|
||||
Reference in New Issue
Block a user