mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
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:
parent
09f96b5f56
commit
ef3bf57117
3 changed files with 7 additions and 7 deletions
|
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
2
apps/desktop/src/global.d.ts
vendored
2
apps/desktop/src/global.d.ts
vendored
|
|
@ -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 }>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue