chore(desktop): rename Hermes Cloud beta gate env var BETA -> HERMESCLOUD_BETA

Generic BETA is too broad a name for a single-feature gate; scope it to the
Hermes Cloud selector. Parsing semantics unchanged (1/true/yes/on, case-
insensitive).
This commit is contained in:
Teknium 2026-07-07 05:33:31 -07:00
parent 09f96b5f56
commit ef3bf57117
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View file

@ -6712,12 +6712,12 @@ ipcMain.handle('hermes:cloud:status', async () => ({
signedIn: await hasLivePortalSession()
}))
// Whether the Hermes Cloud gateway selector is enabled — gated behind a BETA
// env flag while the feature is in beta. Truthy values: '1', 'true', 'yes',
// 'on' (case-insensitive). Absent, empty, 'false', '0', etc. → disabled, so the
// renderer hides the Cloud ModeCard entirely.
// Whether the Hermes Cloud gateway selector is enabled — gated behind a
// HERMESCLOUD_BETA env flag while the feature is in beta. Truthy values: '1',
// 'true', 'yes', 'on' (case-insensitive). Absent, empty, 'false', '0', etc. →
// disabled, so the renderer hides the Cloud ModeCard entirely.
function betaFeaturesEnabled() {
const raw = String(process.env.BETA ?? '').trim().toLowerCase()
const raw = String(process.env.HERMESCLOUD_BETA ?? '').trim().toLowerCase()
return raw === '1' || raw === 'true' || raw === 'yes' || raw === 'on'
}

View file

@ -142,7 +142,7 @@ export function GatewaySettings() {
}
// Hermes Cloud is beta-gated: the selector ModeCard only appears when the main
// process reports the BETA env flag is enabled. Default hidden until the async
// process reports the HERMESCLOUD_BETA env flag is enabled. Default hidden until the async
// check resolves, so it never flashes in for non-beta users.
const [cloudBetaEnabled, setCloudBetaEnabled] = useState(false)
useEffect(() => {

View file

@ -59,7 +59,7 @@ declare global {
// sign-in (cloud-auto-discovery Phase 3).
cloud: {
status: () => Promise<DesktopCloudStatus>
// Whether the BETA env flag enables the Hermes Cloud gateway selector.
// Whether the HERMESCLOUD_BETA env flag enables the Hermes Cloud gateway selector.
betaEnabled: () => Promise<boolean>
login: () => Promise<DesktopCloudStatus & { ok: boolean }>
logout: () => Promise<DesktopCloudStatus & { ok: boolean }>