/** Role-like values we should never show as assignee - show Unassigned instead */
const ROLE_PLACEHOLDER_NAMES = ["current"];
function isRolePlaceholder(value) {
    return ROLE_PLACEHOLDER_NAMES.includes(value?.trim().toLowerCase());
}
/**
 * Returns the displayable assignee for a task.
 * Filters out role names and placeholders (e.g. "current") - shows "Unassigned" instead.
 * Only real user/agent names are shown.
 */
export function getDisplayableAssignee(task, options) {
    const raw = task.assigneeDisplayName || task.assigneeId || null;
    if (!raw || isRolePlaceholder(raw)) {
        return task.assigneeType === "Agent" && options?.isPlanTask
            ? "Project Planner"
            : "Unassigned";
    }
    return raw;
}
//# sourceMappingURL=assigneeDisplay.js.map