hardening: isolate third-party paths and clean external-build metadata (#311)
* hardening: isolate third-party paths and clean external-build metadata * fix: restore external feedback flow and make privacy check portable
This commit is contained in:
@@ -146,15 +146,6 @@ function getEmail(): string | undefined {
|
||||
return oauthAccount.emailAddress
|
||||
}
|
||||
|
||||
// Ant-only fallbacks below (no execSync)
|
||||
if (process.env.USER_TYPE !== 'ant') {
|
||||
return undefined
|
||||
}
|
||||
|
||||
if (process.env.COO_CREATOR) {
|
||||
return `${process.env.COO_CREATOR}@anthropic.com`
|
||||
}
|
||||
|
||||
// If initUser() wasn't called, we return undefined instead of blocking
|
||||
return undefined
|
||||
}
|
||||
@@ -166,15 +157,6 @@ async function getEmailAsync(): Promise<string | undefined> {
|
||||
return oauthAccount.emailAddress
|
||||
}
|
||||
|
||||
// Ant-only fallbacks below
|
||||
if (process.env.USER_TYPE !== 'ant') {
|
||||
return undefined
|
||||
}
|
||||
|
||||
if (process.env.COO_CREATOR) {
|
||||
return `${process.env.COO_CREATOR}@anthropic.com`
|
||||
}
|
||||
|
||||
return getGitEmail()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user