import {
  resolveAgentWorkspaceFileVisualKind
} from "./chunk-PJP5BUU6.js";

// agent-gui/shared/mentionFilePresentation.ts
function resolveAgentMentionFileVisualKind(input) {
  if (input.mentionNavigation === "agent-generated-folder-back") {
    return "back";
  }
  if (input.entryKind === "directory") {
    return "folder";
  }
  const pathOrName = input.path?.trim() || input.name?.trim() || input.href?.trim() || "";
  const kind = resolveAgentWorkspaceFileVisualKind(pathOrName, {
    refType: "file"
  });
  return kind === "binary" ? "document" : kind;
}
function resolveAgentMentionFileThumbnailUrl(input) {
  if (resolveAgentMentionFileVisualKind(input) !== "image") {
    return void 0;
  }
  const thumbnailUrl = input.thumbnailUrl?.trim() ?? "";
  return thumbnailUrl || void 0;
}

export {
  resolveAgentMentionFileVisualKind,
  resolveAgentMentionFileThumbnailUrl
};
//# sourceMappingURL=chunk-LUGELG5V.js.map