feat(cli): add interactive payload explorer#471
Conversation
There was a problem hiding this comment.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
| from pydantic import BaseModel | ||
| from rich.console import Console | ||
| from rich.pretty import Pretty | ||
| from rich.tree import Tree | ||
| from rich.text import Text | ||
| import termios |
There was a problem hiding this comment.
[P1] Guard POSIX-only termios imports to keep CLI usable on Windows
The new interactive explorer pulls in termios/tty at module import time. Those modules are only present on Unix, so importing werk24.cli.commands.techread now raises ModuleNotFoundError on Windows before the CLI can even parse arguments, even when the interactive view is never used. This makes python -m werk24.cli.werk24 --help fail on Windows, whereas the previous implementation printed payloads fine. Consider importing these modules lazily inside the explorer logic and falling back to a non-interactive display when they are unavailable.
Useful? React with 👍 / 👎.
Summary
Testing
python -m werk24.cli.werk24 --helppytesthttps://chatgpt.com/codex/tasks/task_e_68b98c00c4e48332a257c0e05b972e24