Conversation
Reviewer's GuideEnables OPSIN verification by default in the CLI, introduces an explicit token_debug mode that gates emission of verbose token metadata, enriches trace segments with clearer parent/substituent parent information and attached parent selection/numbering decisions, wires these options through public, CLI, and web APIs, updates tests, and refreshes README docs (removing outdated refactor/debug sections and adding CLI/human-description docs). Sequence diagram for CLI naming with default OPSIN verification and token_debugsequenceDiagram
actor User
participant CLI as cli__cmd_name
participant API as name
participant Engine as NamingEngine_run
User->>CLI: bluenamer name SMILES [no --verify]
CLI->>API: name(smiles, include_trace, verify_opsin=True, token_debug)
API->>Engine: run(NamingRequest)
Engine-->>API: NamingResult
API-->>CLI: NamingResult
CLI-->>User: print name / JSON
alt [--no-verify]
User->>CLI: bluenamer name SMILES --no-verify
CLI->>API: name(smiles, include_trace, verify_opsin=False, token_debug)
end
alt [--token-debug]
User->>CLI: bluenamer name SMILES --token-debug
CLI->>API: name(smiles, include_trace, verify_opsin, token_debug=True)
API->>Engine: run(NamingRequest token_debug=True)
Engine-->>API: NamingResult with verbose token metadata
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reached
Next review available in: 47 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe PR renames token_debug flag, trace enrichment, and API surface changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="README.md" line_range="94" />
<code_context>
+bluenamer name "CC(=O)Nc1ccccc1" --json # JSON with trace + rules
+bluenamer batch smiles.txt --output names.jsonl --processes auto
+```
+The CLI tool has a OPSIN verification turned on by default. It can be turned-off with
+
+```bash
</code_context>
<issue_to_address>
**suggestion (typo):** Fix minor grammatical issues in the CLI verification sentence.
Consider rephrasing to: `The CLI tool has OPSIN verification turned on by default. It can be turned off with` (using `OPSIN` without an article and `turned off` without the hyphen) for clearer grammar.
```suggestion
The CLI tool has OPSIN verification turned on by default. It can be turned off with
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
PR enables OPSIN verification by default in the CLI, improves trace segment metadata for parent/substituent parents, attaches parent selection/numbering decisions to trace output, updates tests, and cleans up outdated README/refactor documentation.
Summary by Sourcery
Enable OPSIN verification by default in the CLI and enrich trace metadata and debugging hooks across the naming, analysis, describe, and web APIs.
New Features:
Enhancements:
Tests:
Summary by CodeRabbit
New Features
--token-debugoption across the CLI and web API, plus support in Python calls, for viewing token-level debug details.Bug Fixes