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; cancel(commandId: string): void; } export const IAgentShellCommandService: ServiceIdentifier = createDecorator('agentShellCommandService');