Repository navigation
refactor(daemon): move browser capture under polylogued - #681
Conversation
Problem: browser-capture serving and status were still root polylogue commands, keeping long-running receiver service mode in the query-first archive CLI.\n\nWhat changed: move the browser-capture Click group to the daemon entrypoint as polylogued browser-capture, remove root CLI registration, refresh generated help/proof/topology/showcase surfaces, and update docs/tests to use the daemon service surface.\n\nVerification: ruff format polylogue tests devtools; ruff check polylogue tests devtools --fix; pytest -q tests/unit/daemon/test_daemon_cli.py tests/unit/browser_capture/test_receiver.py tests/unit/cli/test_click_app.py tests/unit/cli/test_terminal_snapshots.py tests/unit/proof/test_witnesses.py tests/unit/showcase/test_exercise_catalog.py; devtools render-all --check; devtools verify-topology; devtools verify-layering; devtools verify-test-ownership; mypy polylogue/; devtools verify --quick; devtools build-package; .local/result/bin/polylogued browser-capture --help; .local/result/bin/polylogued browser-capture status --format json; .local/result/bin/polylogue --plain --help.\n\nRef #635\nRef #593
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (19)
✨ Finishing Touches🧪 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. Review rate limit: 0/1 reviews remaining, refill in 22 minutes and 13 seconds.Comment |
Polylogue Proof PackRefs: Affected Domains
Required Gates
Known Gaps
Oracle / Cost
|
There was a problem hiding this comment.
Pull request overview
Moves the long-running browser-capture receiver CLI surface off the query-first polylogue CLI and under the daemon-focused polylogued entrypoint, aligning CLI responsibilities with the project’s service vs. query separation.
Changes:
- Registered
browser-captureunderpolyloguedand removed it frompolylogueroot command registration. - Updated unit tests and CLI surface witnesses/snapshots to reflect the new command location.
- Updated docs (README + browser-capture docs + generated CLI reference/catalog artifacts) to reference
polylogued browser-capture ....
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/daemon/test_daemon_cli.py | Adds coverage asserting polylogued advertises browser-capture and its subcommands. |
| tests/unit/cli/test_click_app.py | Ensures polylogue no longer registers browser-capture. |
| tests/unit/cli/snapshots/test_terminal_snapshots.ambr | Updates polylogue --help snapshots to remove browser-capture. |
| tests/unit/browser_capture/test_receiver.py | Switches CLI invocation from polylogue to polylogued for status JSON. |
| tests/data/witnesses/cli-command-surface.json | Removes browser-capture from required polylogue root commands. |
| tests/baselines/showcase/help-main.txt | Updates baseline help output to match polylogue command list sans browser-capture. |
| tests/baselines/showcase/help-browser-capture*.txt | Removes obsolete polylogue browser-capture help baselines. |
| polylogue/daemon/cli.py | Registers browser-capture group under the daemon CLI (polylogued). |
| polylogue/daemon/browser_capture.py | Hosts the click group/commands for receiver serve and status. |
| polylogue/cli/click_command_registration.py | Drops browser-capture from polylogue root command registration. |
| docs/verification-catalog.md | Regenerates verification catalog after CLI surface change. |
| docs/test-quality-workflows.md | Regenerates workflow snapshot counts after CLI surface change. |
| docs/plans/topology-target.yaml | Updates topology plan to reflect file move/removal and LOC shifts. |
| docs/cli-reference.md | Updates CLI reference help excerpt for polylogue without browser-capture. |
| docs/browser-capture.md | Updates usage to polylogued browser-capture serve. |
| README.md | Updates examples to use polylogued browser-capture. |
| CHANGELOG.md | Notes the command move for users. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
## Summary Moves browser-capture receiver serving and status out of the interactive `polylogue` CLI and under `polylogued browser-capture`. ## Problem The root CLI is query-first and should not carry long-running receiver/server modes. `polylogue browser-capture serve/status` kept a daemon-like browser receiver beside archive query verbs. ## Solution - Moved the browser-capture Click group from `polylogue.cli.commands` to `polylogue.daemon.browser_capture`. - Registered it under `polylogued browser-capture`. - Removed root `polylogue browser-capture` registration and required CLI-surface witness coverage. - Updated README and browser-capture docs to use the daemon command. - Refreshed generated CLI help, proof catalog, topology, quality, snapshots, and showcase baselines. ## Verification - `ruff format polylogue tests devtools` - `ruff check polylogue tests devtools --fix` - `pytest -q tests/unit/daemon/test_daemon_cli.py tests/unit/browser_capture/test_receiver.py tests/unit/cli/test_click_app.py tests/unit/cli/test_terminal_snapshots.py tests/unit/proof/test_witnesses.py tests/unit/showcase/test_exercise_catalog.py` → `100 passed` - `devtools render-all --check` - `devtools verify-topology` - `devtools verify-layering` - `devtools verify-test-ownership` - `mypy polylogue/` - `devtools verify --quick` - `devtools build-package` - `.local/result/bin/polylogued browser-capture --help` - `.local/result/bin/polylogued browser-capture status --format json` - `.local/result/bin/polylogue --plain --help` - push hook reran `devtools verify --quick` successfully Ref #635 Ref #593
Summary
Moves browser-capture receiver serving and status out of the interactive
polylogueCLI and underpolylogued browser-capture.Problem
The root CLI is query-first and should not carry long-running receiver/server modes.
polylogue browser-capture serve/statuskept a daemon-like browser receiver beside archive query verbs.Solution
polylogue.cli.commandstopolylogue.daemon.browser_capture.polylogued browser-capture.polylogue browser-captureregistration and required CLI-surface witness coverage.Verification
ruff format polylogue tests devtoolsruff check polylogue tests devtools --fixpytest -q tests/unit/daemon/test_daemon_cli.py tests/unit/browser_capture/test_receiver.py tests/unit/cli/test_click_app.py tests/unit/cli/test_terminal_snapshots.py tests/unit/proof/test_witnesses.py tests/unit/showcase/test_exercise_catalog.py→100 passeddevtools render-all --checkdevtools verify-topologydevtools verify-layeringdevtools verify-test-ownershipmypy polylogue/devtools verify --quickdevtools build-package.local/result/bin/polylogued browser-capture --help.local/result/bin/polylogued browser-capture status --format json.local/result/bin/polylogue --plain --helpdevtools verify --quicksuccessfullyRef #635
Ref #593