这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
9 lines
379 B
TypeScript
9 lines
379 B
TypeScript
// Official plugin metadata still uses the upstream product name as the author.
|
|
// Local deployments hide that label and keep other authors visible.
|
|
export function visibleAuthorName(value?: string | null): string {
|
|
const text = value?.trim() ?? ''
|
|
if (!text) return ''
|
|
if (text.toLowerCase() === 'dify' || text.toLowerCase().startsWith('dify ')) return ''
|
|
return text
|
|
}
|