import { tool } from "@opencode-ai/plugin/tool"; import { executeCommandEngineAction } from "../../routing/command-engine/index.js"; import { CommandEngineToolInputSchema } from "../../schema-kernel/command-engine.schema.js"; /** * Create the command-engine tool (CQRS read-side). * * Provides discovery, contract analysis, context rendering, transforms, * route previews, and command listing for OpenCode slash commands. * This is the read-side companion to `execute-slash-command` (write-side). * * @param projectRoot - Trusted project root used for command discovery. * @returns OpenCode tool exposing discovery, contracts, context rendering, transforms, route previews, and command listing. * * @see src/tools/session/execute-slash-command.ts — write-side companion (deterministic SDK dispatch) */ export declare function createHivemindCommandEngineTool(projectRoot: string): ReturnType; /** * Execute a validated command-engine tool action. * * @param projectRoot - Trusted project root. * @param rawArgs - Untrusted tool input. * @returns Command-engine action result. */ export declare function executeCommandEngineToolAction(projectRoot: string, rawArgs: unknown): ReturnType; export { CommandEngineToolInputSchema }; //# sourceMappingURL=hivemind-command-engine.d.ts.map