Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /usr/local/lib/node_modules/@google/gemini-cli/dist/src/ui/hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/node_modules/@google/gemini-cli/dist/src/ui/hooks/slashCommandProcessor.d.ts
/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { type PartListUnion } from '@google/genai';
import { UseHistoryManagerReturn } from './useHistoryManager.js';
import { Config } from '@google/gemini-cli-core';
import { HistoryItemWithoutId, HistoryItem } from '../types.js';
import { LoadedSettings } from '../../config/settings.js';
export interface SlashCommandActionReturn {
    shouldScheduleTool?: boolean;
    toolName?: string;
    toolArgs?: Record<string, unknown>;
    message?: string;
}
export interface SlashCommand {
    name: string;
    altName?: string;
    description?: string;
    completion?: () => Promise<string[]>;
    action: (mainCommand: string, subCommand?: string, args?: string) => void | SlashCommandActionReturn | Promise<void | SlashCommandActionReturn>;
}
/**
 * Hook to define and process slash commands (e.g., /help, /clear).
 */
export declare const useSlashCommandProcessor: (config: Config | null, settings: LoadedSettings, history: HistoryItem[], addItem: UseHistoryManagerReturn["addItem"], clearItems: UseHistoryManagerReturn["clearItems"], loadHistory: UseHistoryManagerReturn["loadHistory"], refreshStatic: () => void, setShowHelp: React.Dispatch<React.SetStateAction<boolean>>, onDebugMessage: (message: string) => void, openThemeDialog: () => void, openAuthDialog: () => void, openEditorDialog: () => void, performMemoryRefresh: () => Promise<void>, toggleCorgiMode: () => void, showToolDescriptions: boolean | undefined, setQuittingMessages: (message: HistoryItem[]) => void, openPrivacyNotice: () => void) => {
    handleSlashCommand: (rawQuery: PartListUnion) => Promise<SlashCommandActionReturn | boolean>;
    slashCommands: SlashCommand[];
    pendingHistoryItems: HistoryItemWithoutId[];
};

Hry