/** * daemon/commands.ts — Unified slash-command router for the AIBroker hub. * * Handles all slash commands (/s, /ss, /c, /cc, /n, etc.) and message * delivery to iTerm2 sessions. Transport-agnostic — uses CommandContext * for all replies instead of calling adapter-specific send functions. * * This module was extracted from Whazaa's commands.ts to make it the * single command handler shared by all adapters. */ import type { CommandContext } from "./command-context.js"; /** * Create the hub command handler. * * Returns a function that processes incoming messages (slash commands or * plain text) and routes them to iTerm2 sessions or API backends. * * The `ctx` parameter is provided per-message by the hub routing engine, * so the command handler knows how to reply to the originating adapter. */ export declare function createHubCommandHandler(): (text: string, timestamp: number, ctx: CommandContext) => void | Promise; //# sourceMappingURL=commands.d.ts.map