Phase 004: remove the desktop shell, website tooling, and bundled hermes CLI

- Drop all desktop/Electron branches, scripts, and UI (title bar, pets,
  desktop bridge); LAN endpoint kind is now web/custom only
- Replace the bundled hermes CLI with user-side installation: add
  GET /api/hermes/cli-status plus a HermesMissingView onboarding guide
- Remove the version-management UI (snapshots handled by git) and prune
  dead website/mcu/claude scripts and lockfile entries
This commit is contained in:
2026-10-16 15:33:56 +08:00
parent 8c1ddf415f
commit 4701bf0ad0
49 changed files with 354 additions and 2403 deletions
+1 -3
View File
@@ -5,7 +5,6 @@ import { shutdownManagedGateways } from './hermes/gateway-runner'
import { stopOutboundRelayClient } from './global-agent/outbound-relay-client'
const DEFAULT_SHUTDOWN_FORCE_EXIT_MS = 15_000
const DEFAULT_DESKTOP_SHUTDOWN_FORCE_EXIT_MS = 15_000
function envPositiveInt(name: string): number | undefined {
const value = Number(process.env[name])
@@ -15,8 +14,7 @@ function envPositiveInt(name: string): number | undefined {
export function getShutdownForceExitMs(): number {
const override = envPositiveInt('HERMES_WEB_UI_SHUTDOWN_FORCE_EXIT_MS')
if (override) return override
const desktop = String(process.env.HERMES_DESKTOP || '').trim().toLowerCase() === 'true'
return desktop ? DEFAULT_DESKTOP_SHUTDOWN_FORCE_EXIT_MS : DEFAULT_SHUTDOWN_FORCE_EXIT_MS
return DEFAULT_SHUTDOWN_FORCE_EXIT_MS
}
export function shouldStopAgentBridgeOnShutdown(_signal: string): boolean {