hermes-agent/ui-tui-opentui-v2
alt-glitch 51031ec655 opentui(ts): shared envFlag parser
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).
2026-06-09 08:26:43 +00:00
..
scripts opentui(ts): enforce prettier in the gate 2026-06-09 08:03:38 +00:00
src opentui(ts): shared envFlag parser 2026-06-09 08:26:43 +00:00
.gitignore opentui(test): track the test harness (test/lib/) swallowed by global lib/ ignore 2026-06-09 06:25:55 +00:00
.prettierrc feat(opentui-v2): Phase 0 scaffold — Solid + Effect-at-boundary native TUI 2026-06-08 13:36:54 +00:00
bun.lock feat(opentui-v2): Phase 0 scaffold — Solid + Effect-at-boundary native TUI 2026-06-08 13:36:54 +00:00
bunfig.toml feat(opentui-v2): Phase 0 scaffold — Solid + Effect-at-boundary native TUI 2026-06-08 13:36:54 +00:00
eslint.config.mjs opentui(ts): enforce no-unsafe-* + require-await as errors (prod .ts), exempt JSX views + tests 2026-06-09 08:21:13 +00:00
package.json feat(opentui-v2): Phase 0 scaffold — Solid + Effect-at-boundary native TUI 2026-06-08 13:36:54 +00:00
tsconfig.json opentui(ts): no-non-null-assertion + noUnusedLocals + noImplicitReturns 2026-06-09 08:02:25 +00:00