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; list(): readonly AgentCommandInfo[]; run(name: string, args?: string): Promise; } export const IAgentCommandService: ServiceIdentifier = createDecorator('agentCommandService');