ENG-10963 refactor(log): hosting CLI shares the reflex-base console and logging (4/5)

Merged
FA
3mo ago
+1045-899

reflex-hosting-cli now depends on reflex-base: its forked console module and LogLevel enum become shims over the shared ones, and its logging goes through standard python logging.

  • The base console.ask gains the same str-typed overloads the forked console had (the flat str | None signature broke typing at the hosting call sites).
  • Intentional behavior deltas: debug output renders purple (was blue), errors go to stderr (was stdout), success messages are hidden at --loglevel warning.
  • The temporary LogLevel conversion mapper in reflex/reflex.py is removed.
  • The hosting-cli dev pin (reflex-base >= 0.9.8.post19.dev0) must be re-pinned at the 0.9.9 release.

Stack (ENG-10963)

#6863 → #6864 → #6865 → this → deprecate.
Merge in order; each PR is based on the previous branch.