Download web/src/lib/dashboard-flags.ts from SaylorTwift/hermes-agent: direct link, hf CLI and curl.
- Browser
- Download file 906 Bytes
-
https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/web/src/lib/dashboard-flags.ts
- Command line
-
hf download hf://SaylorTwift/hermes-agent/web/src/lib/dashboard-flags.ts
-
curl -L -o dashboard-flags.ts https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/web/src/lib/dashboard-flags.ts
906 Bytes
| declare global { | |
| interface Window { | |
| /** | |
| * Injected by the server as `true`. The embedded TUI Chat surface | |
| * (`/chat`, `/api/ws`, `/api/pty`) is always enabled, so this is | |
| * effectively a constant; kept on `window` for any consumer that reads | |
| * it directly and for parity with the server's bootstrap script. | |
| */ | |
| __HERMES_DASHBOARD_EMBEDDED_CHAT__?: boolean; | |
| } | |
| } | |
| /** | |
| * Whether the dashboard's embedded TUI Chat surface is available. | |
| * | |
| * The embedded chat (`/chat` tab, `/api/ws` + `/api/pty` WebSockets) is now | |
| * an unconditional part of the dashboard — the desktop app and the in-browser | |
| * Chat tab both depend on it — so this always returns `true`. The function is | |
| * retained as a stable seam so call sites don't need to change if the surface | |
| * ever becomes conditional again. | |
| */ | |
| export function isDashboardEmbeddedChatEnabled(): boolean { | |
| return true; | |
| } | |