/** * Slash-command parsing for chat control. Commands run without waking the * agent, so they stay fast and side-effect-free for the model. * @module dsh-connect/commands */ import type { Messages } from "./i18n.js"; export type Command = { readonly kind: "new"; } | { readonly kind: "clear"; } | { readonly kind: "stop"; } | { readonly kind: "status"; } | { readonly kind: "task"; } | { readonly kind: "dir"; readonly path?: string; } | { readonly kind: "chat"; } | { readonly kind: "menu"; } | { readonly kind: "settings"; } | { readonly kind: "plugins"; } | { readonly kind: "workspace"; readonly path?: string; } | { readonly kind: "compact"; } | { readonly kind: "history"; readonly limit?: number; } | { readonly kind: "goals"; } | { readonly kind: "schedule"; } | { readonly kind: "model"; } | { readonly kind: "notify"; } | { readonly kind: "progress"; } | { readonly kind: "autocompact"; readonly arg?: string; } | { readonly kind: "workspaces"; } | { readonly kind: "mirror"; readonly timeoutMin?: number; } | { readonly kind: "unlock"; } | { readonly kind: "renew"; } | { readonly kind: "export"; readonly format?: "markdown"; } | { readonly kind: "ps"; readonly text: string; } | { readonly kind: "remind"; readonly text: string; } | { readonly kind: "send"; readonly path: string; } | { readonly kind: "broadcast"; readonly text: string; } | { readonly kind: "help"; } | { readonly kind: "message"; readonly text: string; }; export declare function parseCommand(raw: string): Command; export declare function helpText(t: Messages): string; //# sourceMappingURL=commands.d.ts.map