1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! pr-review-core — reusable engine for an advisory AI PR reviewer.
//!
//! Pulls a pull request's diff, reviews it with a Claude model via OpenRouter,
//! and posts a line-anchored inline review plus an advisory summary comment.
//! Provider-agnostic across GitHub and Bitbucket. Bot identity and any extra
//! prompt are injected through [`config::Config`] so consumers (bot binaries)
//! supply their own branding.
/// This crate's version, for consumers that report which engine they are running.
///
/// A bot binary knows its own version but not its engine's, and "is the deployed
/// image current?" is otherwise answerable only by reading deploy logs — which cost
/// real time three separate times while shipping 0.11.0.
pub const VERSION: &str = env!;
/// Clip a string to at most `n` characters (char-safe — never splits a UTF-8
/// codepoint). Used to keep API error bodies short in messages.