import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Box, Text } from "ink";
import { truncateCells } from "../../../design/textLayout.js";
export function descriptionStepModel(description, width = 88) {
    const value = description.replace(/\s+/g, " ").trim();
    return {
        ready: value.length >= 8,
        value: value ? truncateCells(value, width) : "No description",
        hint: "Describe when DeepSeekCode should choose this agent.",
    };
}
export function DescriptionStep(props) {
    const model = descriptionStepModel(props.description, props.width);
    return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: "cyan", children: "Description" }), _jsx(Text, { children: model.value }), _jsx(Text, { color: model.ready ? "green" : "yellow", children: model.hint })] }));
}
