feat: profile presets; NoopVerifer, NoopPathExtractor - #55
Conversation
3fc408b to
402627e
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (7)
📝 WalkthroughWalkthroughThe PR adds runtime profiles, per-turn ChangesRuntime request options
Runtime profiles and middleware
Sequence Diagram(s)sequenceDiagram
participant BareLoop
participant StreamHandler
participant ApiClient
participant Provider
BareLoop->>StreamHandler: configure per-turn RequestOptions
StreamHandler->>ApiClient: stream_messages_with_options(request_options)
ApiClient->>Provider: provider request with options
Provider-->>ApiClient: stream events
ApiClient-->>StreamHandler: stream result
Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/middleware/verify.rs (1)
111-131: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueCorrect the expected output format in the documentation and fix the example indentation.
The documentation mentions that the middleware appends a
[verify] passed: trueblock, but according toappend_verify_result, it actually appends[verify] passed:(without thetrue). Additionally, the builder example indentation is slightly off.📝 Proposed fix
-/// pipeline that has no real build/lint step to run — the middleware still -/// registers and appends a `[verify] passed: true` block, but no actual -/// check happens. Swap in a real verifier (`cargo check`, `tsc`) when one is -/// available. -/// -/// Zero-sized; cheap to construct and `Arc`-share. -/// -/// # Example -/// -/// ```rust,ignore -/// use std::sync::Arc; -/// use loopctl::middleware::{NoopVerifier, Verifier, VerifyMiddleware}; -/// -/// let pipeline = ToolPipeline::builder() -/// .with(VerifyMiddleware::new(Arc::new(NoopVerifier), vec!["Write".into()])) -/// .core(registry) -/// .build()?; -/// ``` +/// pipeline that has no real build/lint step to run — the middleware still +/// registers and appends a `[verify] passed: ` block, but no actual +/// check happens. Swap in a real verifier (`cargo check`, `tsc`) when one is +/// available. +/// +/// Zero-sized; cheap to construct and `Arc`-share. +/// +/// # Example +/// +/// ```rust,ignore +/// use std::sync::Arc; +/// use loopctl::middleware::{NoopVerifier, Verifier, VerifyMiddleware}; +/// +/// let pipeline = ToolPipeline::builder() +/// .with(VerifyMiddleware::new(Arc::new(NoopVerifier), vec!["Write".into()])) +/// .core(registry) +/// .build()?; +/// ```🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/middleware/verify.rs` around lines 111 - 131, Update the NoopVerifier documentation to describe the actual `[verify] passed: ` output produced by append_verify_result, removing the incorrect `true`. Correct the ToolPipeline builder example indentation so the with, core, and build calls align consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/middleware/verify.rs`:
- Around line 111-131: Update the NoopVerifier documentation to describe the
actual `[verify] passed: ` output produced by append_verify_result, removing the
incorrect `true`. Correct the ToolPipeline builder example indentation so the
with, core, and build calls align consistently.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0dffc586-5740-4026-b225-540f1c186b80
📒 Files selected for processing (8)
CHANGELOG.mdsrc/engine/bare.rssrc/engine/bare/stream.rssrc/lib.rssrc/middleware.rssrc/middleware/memoize.rssrc/middleware/verify.rssrc/stream/handler.rs
No description provided.