Repository navigation
feat(cli): expose read view profiles (#1997) - #2022
Conversation
Problem: #1997 needs view profiles to be inspectable by callers, not only consumed internally by read --view and shell completion. Without a profile listing surface, API/web/MCP work still has to rediscover the metadata from code. What changed: add polylogue read-views with plain and JSON output over the shared SessionViewProfile registry, register it as a root command, test both output forms and root registration, and refresh generated CLI/topology docs. Verification: nix develop --command devtools test tests/unit/cli/test_click_app.py -k 'read_views or all_subcommands_registered' (3 passed, 62 deselected); nix develop --command devtools verify --quick (exit_code 0).
📝 WalkthroughWalkthroughA new Changesread-views CLI subcommand
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@codex review |
Problem: CI showcase-verify caught the new read-views command as committed baseline drift. The PR added root command help, but did not commit the tier-0 showcase snapshots. What changed: update help-main and add help-read-views through devtools lab-scenario verify-baselines --update. Verification: nix develop --command devtools lab-scenario verify-baselines (All baselines match); nix develop --command devtools test tests/unit/cli/test_click_app.py -k 'read_views or all_subcommands_registered' (3 passed, 62 deselected); nix develop --command devtools verify --quick (exit_code 0).
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e119920a8
ℹ️ 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
- 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 address that feedback".
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Expose the shared
SessionViewProfileregistry through a rootpolylogue read-viewscommand with plain and JSON output.Problem
#1997 needs read-view profiles to be inspectable by callers, not only consumed internally by
read --viewand shell completion. Without a profile listing surface, API/web/MCP work still has to rediscover view metadata from code.Solution
polylogue read-viewsover the existingREAD_VIEW_PROFILESregistry.Verification
nix develop --command devtools test tests/unit/cli/test_click_app.py -k 'read_views or all_subcommands_registered'->3 passed, 62 deselectednix develop --command devtools lab-scenario verify-baselines->All baselines matchnix develop --command devtools verify --quick->exit_code 0devtools verify --quick->exit_code 0Ref #1997