mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-13 14:02:16 +00:00
Extract one boolean env-flag parser (src/logic/env.ts: envFlag + the shared TRUE_RE/FALSE_RE) instead of per-file regexes. Rewire entry/main.tsx (HERMES_TUI_FAKE → envFlag(…, false); HERMES_TUI_MOUSE → envFlag(…, true)) and logic/theme.ts (detectLightMode's HERMES_TUI_LIGHT tri-state now uses the shared regexes; the lowercased-input + /i regex is behaviorally identical to the prior lowercased-input + non-/i regex). Semantics are byte-identical. Adds src/test/env.test.ts (true/false/unset/garbage→fallback). |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| .gitignore | ||
| .prettierrc | ||
| bun.lock | ||
| bunfig.toml | ||
| eslint.config.mjs | ||
| package.json | ||
| tsconfig.json | ||