/** * [WHO]: Goal slash command handler - dispatches /goal subcommands (show/clear/edit/pause/resume/set), manages ConfirmIfExists confirmation dialog, and renders the multi-line summary * [FROM]: Depends on core/extensions-host/types, ./goal-controller, ./goal-parser, ./goal-types, ./goal-format * [TO]: Consumed by ./index via registerCommand * [HERE]: extensions/builtin/goal/goal-command.ts - UI + persistence boundary for /goal */ import type { ExtensionCommandContext } from "../../../core/extensions-host/types.js"; import type { GoalController } from "./goal-controller.js"; import { formatGoalElapsedSeconds, formatTokens } from "./goal-format.js"; import type { ThreadGoal } from "./goal-types.js"; export declare function runGoalCommand(args: string, ctx: ExtensionCommandContext, controller: GoalController | null): Promise; declare function summarizeGoal(goal: ThreadGoal): string; export { formatGoalElapsedSeconds, formatTokens, summarizeGoal };