buroventures-harald-code
Version:
Harald Code - AI-powered coding assistant CLI
18 lines (17 loc) • 916 B
TypeScript
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { HistoryItemWithoutId } from '../types.js';
import { Config, GeminiClient } from 'buroventures-harald-code-core';
import { type PartListUnion } from '@google/genai';
import { UseHistoryManagerReturn } from './useHistoryManager.js';
export declare const OUTPUT_UPDATE_INTERVAL_MS = 1000;
/**
* Hook to process shell commands.
* Orchestrates command execution and updates history and agent context.
*/
export declare const useShellCommandProcessor: (addItemToHistory: UseHistoryManagerReturn["addItem"], setPendingHistoryItem: React.Dispatch<React.SetStateAction<HistoryItemWithoutId | null>>, onExec: (command: Promise<void>) => void, onDebugMessage: (message: string) => void, config: Config, geminiClient: GeminiClient) => {
handleShellCommand: (rawQuery: PartListUnion, abortSignal: AbortSignal) => boolean;
};