agent-exec transport b00819fbf97351256c6953a271c02e52/a305d1ebb539
governance / governance (pull_request) Successful in 13s
ci / test-and-build (pull_request) Successful in 32s

This commit is contained in:
agent-exec-transport
2026-10-20 11:12:36 +00:00
parent e2a670e2aa
commit f6442cc501
+2 -2
View File
@@ -62,7 +62,7 @@ const CAPABILITY_SOURCE_LABELS: Record<string, string> = {
role: '职位角色', 'system-grant': '明确系统授权', 'bootstrap-admin': '初始管理员', role: '职位角色', 'system-grant': '明确系统授权', 'bootstrap-admin': '初始管理员',
} }
export function capabilitySourceLabel(source: string | undefined): string { function capabilitySourceLabel(source: string | undefined): string {
return (source && CAPABILITY_SOURCE_LABELS[source]) || source || '未知来源' return (source && CAPABILITY_SOURCE_LABELS[source]) || source || '未知来源'
} }
@@ -89,7 +89,7 @@ export function noProjectError(loaded: boolean, canCreate: boolean): string {
return '尚无可用项目,请等待项目负责人邀请你加入' return '尚无可用项目,请等待项目负责人邀请你加入'
} }
export interface MemberDuty { kind: 'creator' | 'owner' | 'member'; label: string; duties: string; source: string } interface MemberDuty { kind: 'creator' | 'owner' | 'member'; label: string; duties: string; source: string }
/** 项目内实际职责:成员管理只随不可变创建者;负责人只是界面身份。 */ /** 项目内实际职责:成员管理只随不可变创建者;负责人只是界面身份。 */
export function memberDuty(member: { owner: string; role: string }, creator: string | undefined): MemberDuty { export function memberDuty(member: { owner: string; role: string }, creator: string | undefined): MemberDuty {