SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
68d7816 verified
Raw
History Blame Contribute Delete
601 Bytes
import type { Event } from '#/_base/event';
import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation';
export interface AgentCommandInfo {
readonly name: string;
readonly description?: string;
readonly source: string;
}
export interface IAgentCommandService {
readonly _serviceBrand: undefined;
readonly onDidChange: Event<void>;
list(): readonly AgentCommandInfo[];
run(name: string, args?: string): Promise<void>;
}
export const IAgentCommandService: ServiceIdentifier<IAgentCommandService> =
createDecorator<IAgentCommandService>('agentCommandService');