File size: 601 Bytes
68d7816 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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');
|