import type { StepContext } from '../types.js';

/** The flow's subject (question / focus / target / feature / plan path). */
export const q = (ctx: StepContext): string => String(ctx.input.question);

/** A trailing " Repo: <path>." clause when a repo was supplied, else "". */
export const repoLine = (ctx: StepContext): string =>
  ctx.input.repoPath ? ` Repo: ${String(ctx.input.repoPath)}.` : '';
