/** * execute-slash-command handler — re-routes through delegation pipeline. * * Per SPEC restriction, the sidecar only allows `action: "discover"` * for command engine; execution actions are routed to DelegationManager * rather than calling client.session.prompt directly (re-entrancy hazard). * * @module sidecar/server/tool-proxy/handlers/execute-slash-command */ import type { SidecarDependencyRegistry } from "../../registry.js"; export interface ExecuteSlashCommandArgs { command?: string; arguments?: string; agent?: string; subtask?: boolean; sessionId?: string; } /** * Handle an execute-slash-command tool call. * * @param options.args - Command execution args. * @param options.registry - Sidecar dependency registry. * @returns Ok with command output or INVALID_ARGS error. */ export declare function handleExecuteSlashCommand(options: { args: ExecuteSlashCommandArgs; registry: SidecarDependencyRegistry; }): Promise<{ ok: false; error: { code: string; message: string; }; data?: undefined; } | { ok: true; data: { output: string; }; error?: undefined; }>; //# sourceMappingURL=execute-slash-command.d.ts.map