MCPcopy Create free account

hub / github.com/arsenyinfo/nitpicker / functions

Functions451 in github.com/arsenyinfo/nitpicker

↓ 16 callersFunctionwrapped_provider_error
Reproduce how a provider 401 actually reaches the retry layer: rig surfaces the raw response body as `ProviderError`, and the per-provider `completion
crates/nitpicker-agent/src/llm.rs:1039
↓ 14 callersFunctionbar_message
(message: impl AsRef<str>)
src/progress.rs:73
↓ 13 callersMethodtext
(&self)
crates/nitpicker-agent/src/llm.rs:180
↓ 12 callersMethodadd
fold one completion's token usage (and any subagents it spawned) into the totals.
src/output.rs:65
↓ 11 callersMethodbuild
(self)
crates/nitpicker-agent/src/lib.rs:148
↓ 11 callersMethodsend
Build the Responses body, POST it over SSE, and parse the result. Reuses rig's request lowering and response parsing; the DIY HTTP exists only to sati
crates/nitpicker-agent/src/codex.rs:369
↓ 10 callersMethodinto_arc
(self)
crates/nitpicker-agent/src/llm.rs:255
↓ 8 callersMethodbase_url
(&self)
src/gemini_proxy/client.rs:56
↓ 8 callersMethodload
(&self)
src/gemini_proxy/token.rs:28
↓ 7 callersFunctionwrapped_provider_error
Mirror how a Foundry 401 reaches `completion`: rig returns the raw body as `ProviderError`, wrapped by `llm.rs` via `.wrap_err_with(...)`. The status
crates/nitpicker-agent/src/azure.rs:347
↓ 6 callersMethodis_subagent
(self)
crates/nitpicker-agent/src/agent.rs:73
↓ 6 callersFunctionjwt
Build an unsigned JWT (`alg: none`) with the given claims — enough to exercise our claims-reading code, which never verifies the signature.
crates/nitpicker-agent/src/codex.rs:706
↓ 6 callersFunctionlog_tool_call
( config: &AgentConfig, turn: usize, tool_name: &str, args: &Value, status: &'static str,
crates/nitpicker-agent/src/agent.rs:973
↓ 6 callersFunctionmentions_http_status
True if `status` (an HTTP status code) appears in `msg` as a genuine status reference: a standalone number (not part of a longer digit run) that is *a
crates/nitpicker-agent/src/llm.rs:459
↓ 6 callersFunctionrun_git
(repo: &Path, args: &[&str])
src/main.rs:756
↓ 6 callersFunctionvalidate_auth
( label: &str, provider: &ProviderType, auth: &Option<String>, base_url: Option<&str>, api
crates/nitpicker-agent/src/config.rs:229
↓ 6 callersMethodwith_retry
(self)
crates/nitpicker-agent/src/llm.rs:290
↓ 5 callersFunctionall_tools
()
crates/nitpicker-agent/src/tools.rs:153
↓ 5 callersFunctionbuild_reviewer_client
( reviewer: &ReviewerConfig, proxy_url: Option<&str>, )
crates/nitpicker-agent/src/provider.rs:80
↓ 5 callersFunctionprint_cast_line
(role: &str, info: &str)
src/debate.rs:284
↓ 5 callersMethodreviewer_compact_threshold
(&self, reviewer: &ReviewerConfig)
crates/nitpicker-agent/src/config.rs:214
↓ 5 callersFunctionrun_agent
( config: AgentConfig, initial_message: &str, tools_map: &HashMap<String, Arc<dyn Tool>>, work
crates/nitpicker-agent/src/agent.rs:189
↓ 4 callersFunctionbuild_body
Lower a nitpicker [`Completion`] to the Codex Responses body, applying the backend quirks.
crates/nitpicker-agent/src/codex.rs:447
↓ 4 callersMethodcompletion
( &self, completion: Completion, )
crates/nitpicker-agent/src/llm.rs:271
↓ 4 callersMethoddefault_alloy
(&self)
crates/nitpicker-agent/src/config.rs:175
↓ 4 callersFunctionexit_if_degraded
Exit-code contract for the default-review and `ask` arms: 0 = clean verdict, 1 = hard failure (no verdict), 3 = degraded verdict (report printed, but
src/main.rs:314
↓ 4 callersFunctionis_azure_ad_auth
Canonical check shared with `provider.rs` (the client-build path), kept here next to the config types so validation and construction can't drift apart
crates/nitpicker-agent/src/config.rs:408
↓ 4 callersFunctionis_codex_auth
Codex/ChatGPT subscription auth. Canonical check shared with `provider.rs`.
crates/nitpicker-agent/src/config.rs:413
↓ 4 callersFunctionload_resolved_config
( explicit_path: Option<&Path>, repo: &Path, )
src/main.rs:359
↓ 4 callersMethodmax_turns
(mut self, max_turns: usize)
crates/nitpicker-agent/src/lib.rs:113
↓ 4 callersFunctionmissing_or_local
Resolve the API key when its env var is unset: a local base_url needs no real key, otherwise it is a hard error naming the missing var.
crates/nitpicker-agent/src/llm.rs:666
↓ 4 callersFunctionneeds_auto_model
(provider: &ProviderType, model: &str)
crates/nitpicker-agent/src/openrouter.rs:438
↓ 4 callersFunctionnormalize_codex_function_call_item
(item: &mut Value)
crates/nitpicker-agent/src/codex.rs:513
↓ 4 callersFunctionparse_sse
Parse the Codex SSE stream into rig's response type. The terminal event is `response.completed` or `response.incomplete` (the latter when the model st
crates/nitpicker-agent/src/codex.rs:588
↓ 4 callersFunctionreport_progress
( config: &AgentConfig, turns: usize, tool_calls: usize, initial_subagent_count: usize, la
crates/nitpicker-agent/src/agent.rs:593
↓ 4 callersFunctionresolve_auth_path
Pure resolution split from env/dirs lookup so it can be unit-tested.
crates/nitpicker-agent/src/codex.rs:145
↓ 4 callersFunctionstdout_is_terminal
()
src/debate.rs:263
↓ 4 callersFunctionthrottled_completion
Run a single completion under a concurrency permit. The permit is held only for the duration of this one call and released immediately after — never a
crates/nitpicker-agent/src/llm.rs:385
↓ 4 callersFunctionto_completion_response
(raw: ResponsesResp, model: String)
crates/nitpicker-agent/src/codex.rs:646
↓ 4 callersMethodvalidate_alloy
(&self, alloy: bool)
crates/nitpicker-agent/src/config.rs:168
↓ 3 callersFunctionactive_progress
()
src/progress.rs:57
↓ 3 callersFunctionadd_spawn_subagent_tool
(tools_map: &mut HashMap<String, Arc<dyn Tool>>)
crates/nitpicker-agent/src/agent.rs:611
↓ 3 callersFunctionbuild_body_value
(completion: &Completion)
crates/nitpicker-agent/src/codex.rs:487
↓ 3 callersFunctionbuild_client
( reviewer: &ReviewerConfig, proxy_url: Option<&str>, )
src/debate.rs:305
↓ 3 callersFunctionbuild_gemini_additional_params
Overlay the computed generation config onto any caller-supplied `additional_params` instead of replacing them, mirroring the OpenAI path's `merge_json
crates/nitpicker-agent/src/llm.rs:1004
↓ 3 callersMethodchild
(&self, relative_path: impl AsRef<Path>)
crates/nitpicker-agent/src/session.rs:69
↓ 3 callersMethodclient_from_env
(&self)
crates/nitpicker-agent/src/llm.rs:693
↓ 3 callersFunctioncolored_role_stderr
(role: &str)
src/debate.rs:276
↓ 3 callersMethoddefault_debate
(&self)
crates/nitpicker-agent/src/config.rs:161
↓ 3 callersFunctiondetail_message
(prefix: &str, detail: Option<&str>)
src/progress.rs:77
↓ 3 callersFunctionexpiry_from_access_token
Expiry from the access token's `exp` claim. Missing/unparseable → `UNIX_EPOCH` (already expired), forcing a refresh on first use; that's not a thrash
crates/nitpicker-agent/src/codex.rs:109
↓ 3 callersFunctionfetch_pr_meta
(url: Option<&str>, repo: &Path)
src/pr.rs:155
↓ 3 callersFunctionfloor_char_boundary
Find a valid UTF-8 character boundary at or before the given position. This is a polyfill for `str::floor_char_boundary` which requires Rust 1.91.
crates/nitpicker-agent/src/tools.rs:15
↓ 3 callersMethodis_expired
(&self)
src/gemini_proxy/token.rs:15
↓ 3 callersFunctionkey_word_present
Whether `key` appears as a whole word within `lower[lo..hi]`. The left edge must be the string start or a non-`[a-z0-9_]` byte; the right edge must be
crates/nitpicker-agent/src/llm.rs:509
↓ 3 callersMethodlevel
(self)
crates/nitpicker-agent/src/agent.rs:66
↓ 3 callersFunctionload_tokens
(path: &Path)
crates/nitpicker-agent/src/codex.rs:161
↓ 3 callersFunctionmake_reviewer
(d: &detect::Detected, prefer_openrouter_free: bool)
src/main.rs:536
↓ 3 callersFunctionmake_spinner
(mp: &MultiProgress)
src/debate.rs:289
↓ 3 callersFunctionmerge_json
Deep-merge `extra` over `base`: nested objects are merged recursively; on a scalar/type conflict `extra` wins. Used to overlay computed request params
crates/nitpicker-agent/src/llm.rs:918
↓ 3 callersMethodmessage
(&self)
crates/nitpicker-agent/src/llm.rs:158
↓ 3 callersFunctionparse_tokens
Parse a Codex `auth.json` payload. Split from IO so it is unit-testable without a real file.
crates/nitpicker-agent/src/codex.rs:179
↓ 3 callersFunctionprovider_from_config
( provider: &ProviderType, base_url: Option<&str>, api_key_env: Option<&str>, )
crates/nitpicker-agent/src/provider.rs:56
↓ 3 callersFunctionrun_debate
( repo: &Path, prompt: &str, config: &Config, opts: DebateOptions, )
src/debate.rs:330
↓ 3 callersFunctionrun_review
( repo: &Path, user_prompt: &str, config: &Config, max_turns: usize, verbose: bool, mo
src/review.rs:35
↓ 3 callersFunctionstderr_is_terminal
()
src/progress.rs:33
↓ 3 callersMethodtool_calls
(&self)
crates/nitpicker-agent/src/llm.rs:165
↓ 3 callersFunctiontruncate
(s: &str, max: usize)
src/reflect.rs:61
↓ 3 callersFunctionvalidate_azure_credentials_mode
Reject an unknown Azure credential-chain selector. Empty/whitespace is allowed: the runtime (`build_credential_chain`) treats it as unset and falls ba
crates/nitpicker-agent/src/config.rs:337
↓ 3 callersMethodwrite
(&mut self, buf: &[u8])
src/progress.rs:48
↓ 2 callersFunctionaccount_id_from_tokens
(id_token: Option<&str>, access_token: &str)
crates/nitpicker-agent/src/codex.rs:94
↓ 2 callersMethodacquire
(repo: &Path)
src/pr.rs:28
↓ 2 callersFunctionaggregator_needs_gemini_proxy
(agg: &AggregatorConfig)
crates/nitpicker-agent/src/provider.rs:23
↓ 2 callersFunctionassert_clean_working_tree
(repo: &Path)
src/pr.rs:332
↓ 2 callersFunctionauth_path
`$CODEX_HOME/auth.json` (when CODEX_HOME is set, non-empty, absolute) else `~/.codex/auth.json`.
crates/nitpicker-agent/src/codex.rs:137
↓ 2 callersFunctionbuild_aggregator_client
( agg: &AggregatorConfig, proxy_url: Option<&str>, )
crates/nitpicker-agent/src/provider.rs:116
↓ 2 callersFunctionbuild_azure_ad_client
Build a refreshing Azure AD client (feature `azure`). The config validator already rejects `auth = "azure-ad"` when the feature is absent, so the disa
crates/nitpicker-agent/src/provider.rs:35
↓ 2 callersFunctionbuild_context
(repo: &Path)
src/review.rs:250
↓ 2 callersMethodbuild_fresh
Fetch a token and rebuild the client, returning the client plus the cache entry to store. Does not touch the cache mutex, so the caller controls locki
crates/nitpicker-agent/src/azure.rs:107
↓ 2 callersFunctionbuild_gemini_user_agent
build an antigravity-cli User-Agent. the CloudCode backend cross-checks the UA prefix against the OAuth client_id, so this must stay paired with the A
src/gemini_proxy/mod.rs:32
↓ 2 callersFunctionbuild_turn_message
( topic: &str, verdicts: &[(String, usize, String)], round: usize, role: &str, )
src/debate.rs:225
↓ 2 callersMethodcan_spawn_subagent
(self)
crates/nitpicker-agent/src/agent.rs:77
↓ 2 callersFunctioncheck_env_var
(name: &str)
crates/nitpicker-agent/src/config.rs:347
↓ 2 callersFunctioncheckout_pr_branch
Fetches the PR head and checks it out as a local branch `nitpicker/pr-{pr_number}`. Uses a namespaced name to avoid colliding with or deleting any use
src/pr.rs:373
↓ 2 callersFunctioncolor_env_allows
()
src/progress.rs:41
↓ 2 callersFunctioncompact_history
( semaphore: &Semaphore, client: Arc<dyn LLMClientDyn>, model: &str, system_prompt: &str,
crates/nitpicker-agent/src/compact.rs:53
↓ 2 callersFunctioncompaction_completion
( model: &str, system_prompt: &str, history: Vec<Message>, prompt: Message, )
crates/nitpicker-agent/src/compact.rs:234
↓ 2 callersFunctionconfig_needs_gemini_proxy
(config: &Config)
crates/nitpicker-agent/src/provider.rs:28
↓ 2 callersFunctioncreate_gemini_client_with_proxy
( proxy_url: &str, )
crates/nitpicker-agent/src/llm.rs:820
↓ 2 callersFunctiondecode_jwt_claims
(token: &str)
crates/nitpicker-agent/src/codex.rs:72
↓ 2 callersMethoddefault_compact_threshold
(&self)
crates/nitpicker-agent/src/config.rs:203
↓ 2 callersFunctiondefault_env_var
(provider: &ProviderType)
crates/nitpicker-agent/src/config.rs:417
↓ 2 callersFunctiondetect_diff_context
(repo: &Path)
src/main.rs:663
↓ 2 callersFunctionemit_json
serialize `value` as one line on stdout and flush before returning. flushing explicitly matters because callers exit via `std::process::exit`, which
src/output.rs:121
↓ 2 callersFunctionensure_readonly_git
Reject git invocations that aren't genuinely read-only or that escape the repository. The subcommand allowlist alone is not enough — `read_file`/`grep
crates/nitpicker-agent/src/tools.rs:73
↓ 2 callersFunctionextract_summary
(response: &CompletionResponse)
crates/nitpicker-agent/src/compact.rs:301
↓ 2 callersFunctionfirst_line
(s: &str)
crates/nitpicker-agent/src/agent.rs:748
↓ 2 callersFunctionfloor_display_width_boundary
(message: &str, max_columns: usize)
src/progress.rs:129
↓ 2 callersFunctionflush_sse_event
(events: &mut Vec<Value>, data: &mut String)
src/gemini_proxy/transform.rs:282
↓ 2 callersFunctionformat_session
(session: &SessionData)
src/reflect.rs:69
next →1–100 of 451, ranked by callers