SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
68d7816 verified
Raw
History Blame Contribute Delete
700 Bytes
import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation';
export interface RunShellCommandInput {
readonly command: string;
readonly commandId?: string;
}
export interface RunShellCommandResult {
readonly stdout: string;
readonly stderr: string;
readonly isError?: boolean;
readonly backgrounded?: boolean;
}
export interface IAgentShellCommandService {
readonly _serviceBrand: undefined;
run(input: RunShellCommandInput): Promise<RunShellCommandResult>;
cancel(commandId: string): void;
}
export const IAgentShellCommandService: ServiceIdentifier<IAgentShellCommandService> =
createDecorator<IAgentShellCommandService>('agentShellCommandService');