MCPcopy Create free account

hub / github.com/arsenyinfo/nitpicker / functions

Functions451 in github.com/arsenyinfo/nitpicker

↓ 2 callersFunctionfrom_def
(def: &'static ProviderDef, source: &'static str)
src/detect.rs:124
↓ 2 callersFunctiongemini_completion
(max_tokens: Option<u64>, additional_params: Option<Value>)
crates/nitpicker-agent/src/llm.rs:1046
↓ 2 callersFunctionget_exponential_delay_with_jitter
(attempt: u32)
src/gemini_proxy/retry.rs:221
↓ 2 callersFunctionget_head_commit
(repo: &Path)
src/pr.rs:251
↓ 2 callersFunctionget_valid_token
(state: &ProxyState)
src/gemini_proxy/proxy.rs:566
↓ 2 callersFunctionhandle_request
( state: Arc<ProxyState>, path: String, _headers: HeaderMap, body: Bytes, _version: &str,
src/gemini_proxy/proxy.rs:310
↓ 2 callersFunctionhistory_for_initial_request
(input: &CompactionInput<'_>)
crates/nitpicker-agent/src/compact.rs:252
↓ 2 callersFunctioninit_model_for_detected
(d: &detect::Detected, prefer_openrouter_free: bool)
src/main.rs:570
↓ 2 callersFunctioninit_project
(state: &ProxyState, token: &TokenData)
src/gemini_proxy/proxy.rs:101
↓ 2 callersMethodis_complete
(&self)
src/reflect.rs:42
↓ 2 callersFunctionis_gemini_proxy_auth
(auth: &Option<String>)
crates/nitpicker-agent/src/config.rs:402
↓ 2 callersFunctionis_local_server
(base_url: Option<&str>)
crates/nitpicker-agent/src/config.rs:358
↓ 2 callersFunctionis_retryable_status
(status: reqwest::StatusCode)
src/gemini_proxy/retry.rs:204
↓ 2 callersFunctionjittered_backoff
(attempt: usize, base_backoff_ms: u64, max_backoff_ms: u64)
crates/nitpicker-agent/src/llm.rs:597
↓ 2 callersFunctionlmstudio_detected
(model: String, source: &'static str)
src/detect.rs:379
↓ 2 callersFunctionlock_path
(repo: &Path)
src/pr.rs:10
↓ 2 callersFunctionlog_compaction
( config: &AgentConfig, turn: usize, reason: &'static str, outcome: Option<&CompactionOutcome>
crates/nitpicker-agent/src/agent.rs:1002
↓ 2 callersMethodlog_trajectories
(&self)
crates/nitpicker-agent/src/config.rs:207
↓ 2 callersFunctionlong_flag_matches
True if `token` is a long option `--<stem>` (optionally `--<stem>=value`) whose stem is a non-empty prefix of `name`. git accepts unambiguous long-opt
crates/nitpicker-agent/src/tools.rs:49
↓ 2 callersFunctionlong_flag_stem
(token: &str)
crates/nitpicker-agent/src/tools.rs:53
↓ 2 callersFunctionmake_sub_spinner
(mp: &MultiProgress, pb: &ProgressBar)
src/debate.rs:299
↓ 2 callersFunctionmatch_think_tag
match `<think` (or `</think` when `close`) + optional whitespace + `>` at the start of `s`, case-insensitively; return the matched byte length. `<thin
crates/nitpicker-agent/src/llm.rs:212
↓ 2 callersFunctionneeds_gemini_proxy
(provider: &ProviderType, auth: Option<&str>)
crates/nitpicker-agent/src/provider.rs:13
↓ 2 callersFunctionnow_unix
()
crates/nitpicker-agent/src/azure.rs:311
↓ 2 callersFunctionnow_unix_ms
()
crates/nitpicker-agent/src/session.rs:117
↓ 2 callersFunctionollama_detected
(model: String, source: &'static str)
src/detect.rs:326
↓ 2 callersFunctionopenrouter_headers
()
crates/nitpicker-agent/src/llm.rs:761
↓ 2 callersMethodoutput_format
(&self)
src/pr.rs:116
↓ 2 callersFunctionparse_provider_type
(s: &str)
src/main.rs:578
↓ 2 callersFunctionpost_comment
(url: Option<&str>, repo: &Path, body: &str)
src/pr.rs:444
↓ 2 callersFunctionprobe_candidates
Probes candidates in batches of SMOKE_TEST_BATCH_SIZE, returning indices of the first `needed` passing models. Stops as soon as enough are found.
crates/nitpicker-agent/src/openrouter.rs:328
↓ 2 callersFunctionpush_env_service_principal
Add a service-principal credential built from `AZURE_TENANT_ID` / `AZURE_CLIENT_ID` / `AZURE_CLIENT_SECRET` if all three are set (the Azure SDK's "env
crates/nitpicker-agent/src/azure.rs:298
↓ 2 callersFunctionreflect_tools
()
crates/nitpicker-agent/src/tools.rs:163
↓ 2 callersMethodrefresh
Refresh after a 401 and replace the cache. Unlike `ensure_client`, this can't gate on expiry — the token was rejected *despite* our clock thinking it
crates/nitpicker-agent/src/azure.rs:92
↓ 2 callersMethodrefresh_locked
Refresh under the held lock. If the refresh token was rejected (4xx) the Codex CLI may have rotated it on disk concurrently — reload `auth.json` once
crates/nitpicker-agent/src/codex.rs:311
↓ 2 callersFunctionrefresh_remote_branches
Refreshes remote-tracking branches so `detect_base_branch` doesn't operate on stale state. Fatal: if origin can't be fetched, the diff base would be s
src/pr.rs:354
↓ 2 callersFunctionrefresh_tokens
Exchange a refresh token for a fresh access token. Expiry comes from the response's `expires_in` (authoritative — a token without an `exp` claim never
crates/nitpicker-agent/src/codex.rs:229
↓ 2 callersMethodreset
(&mut self)
crates/nitpicker-agent/src/llm.rs:152
↓ 2 callersFunctionresolve_base_branch
(repo: &Path, branch: &str)
src/main.rs:736
↓ 2 callersFunctionrestore_head
(repo: &Path, head: &HeadState)
src/pr.rs:296
↓ 2 callersFunctionrun_compaction
( semaphore: &Semaphore, client: &Arc<dyn LLMClientDyn>, model: &str, system_prompt: &str,
crates/nitpicker-agent/src/compact.rs:131
↓ 2 callersFunctionrun_debate_turn
(request: DebateTurnRequest<'_>)
src/debate.rs:145
↓ 2 callersFunctionsearch_file
( path: &PathBuf, regex: &Regex, work_dir: &Path, results: &mut Vec<String>, )
crates/nitpicker-agent/src/tools.rs:487
↓ 2 callersFunctionset_active_progress
(progress: &Arc<MultiProgress>)
src/progress.rs:16
↓ 2 callersFunctionset_retry_cooldown
( cooldowns: &Arc<Mutex<HashMap<String, Instant>>>, key: &str, delay_ms: u64, )
src/gemini_proxy/retry.rs:188
↓ 2 callersFunctionshared_client
Process-wide shared Codex client (retry-wrapped), built once on first use. The token store is inherently process-global — there is a single `~/.codex
crates/nitpicker-agent/src/codex.rs:414
↓ 2 callersMethodsource
(&self)
crates/nitpicker-agent/src/azure.rs:453
↓ 2 callersFunctionstderr_supports_color
()
src/progress.rs:37
↓ 2 callersFunctionterminal_columns
()
src/progress.rs:106
↓ 2 callersFunctiontruncate_single_line
(message: &str, max_columns: usize)
src/progress.rs:114
↓ 2 callersMethodusage
the agent's accumulated token usage (preserving its reported `total_tokens` verbatim rather than recomputing from input+output).
crates/nitpicker-agent/src/agent.rs:43
↓ 2 callersMethodusage
(&self)
crates/nitpicker-agent/src/llm.rs:141
↓ 2 callersFunctionvalidate_free_model
(label: &str, provider: &ProviderType, model: &str)
crates/nitpicker-agent/src/config.rs:221
↓ 2 callersFunctionwith_active_progress
(f: impl FnOnce() -> io::Result<T>)
src/progress.rs:61
↓ 2 callersMethodwrite_aggregation
(&self, record: &AggregationRecord)
crates/nitpicker-agent/src/session.rs:77
↓ 1 callersMethodactor_role
(&self)
src/prompts.rs:173
↓ 1 callersMethodactor_system
(&self)
src/prompts.rs:187
↓ 1 callersMethodaggregator_preamble
(&self)
src/prompts.rs:123
↓ 1 callersFunctionanalyze_session
( session_md: String, model: String, client: Arc<dyn LLMClientDyn>, semaphore: Arc<Semaphore>,
src/reflect.rs:198
↓ 1 callersFunctionantigravity_platform
antigravity platform enum. must be one of {DARWIN,LINUX,WINDOWS}_{AMD64,ARM64}.
src/gemini_proxy/mod.rs:50
↓ 1 callersMethodappend_tool_call
(&self, record: &ToolCallRecord)
crates/nitpicker-agent/src/session.rs:95
↓ 1 callersFunctionauth_available
True when a usable Codex CLI OAuth token file is present (CODEX_HOME or `~/.codex/auth.json`). Used by `init` detection; reuses the same parse the cli
crates/nitpicker-agent/src/codex.rs:174
↓ 1 callersFunctionbar_message_for_columns
(message: &str, columns: usize)
src/progress.rs:81
↓ 1 callersFunctionblocked_fs_reading_flag_matches
(token: &str, name: &str)
crates/nitpicker-agent/src/tools.rs:60
↓ 1 callersFunctionbuild_agent_config
( config: &Config, reviewer: &ReviewerConfig, system_prompt: &str, max_turns: usize, proxy
src/review.rs:323
↓ 1 callersFunctionbuild_analysis_prompt
(path: Option<&Path>, custom_prompt: Option<&str>)
src/main.rs:639
↓ 1 callersFunctionbuild_azure_client
Build a refreshing Azure AD client for an OpenAI- or Anthropic-shaped Foundry endpoint. `base_url` is the Foundry endpoint (e.g. `https://<resource>.
crates/nitpicker-agent/src/azure.rs:140
↓ 1 callersFunctionbuild_compaction_prompt
(input: &CompactionInput<'_>, turn: usize, usage: TokenUsage)
crates/nitpicker-agent/src/compact.rs:284
↓ 1 callersFunctionbuild_credential_chain
Build the ordered credential chain for the requested mode. Mirrors the Azure SDK's `AZURE_TOKEN_CREDENTIALS` convention: explicit config wins, then th
crates/nitpicker-agent/src/azure.rs:246
↓ 1 callersFunctionbuild_http_client
Shared reqwest client for the Codex endpoints, configured so a hung connection can't pin a shared concurrency permit forever (`reqwest::Client::new()`
crates/nitpicker-agent/src/codex.rs:51
↓ 1 callersFunctionbuild_init_config
( detected: &[&detect::Detected], prefer_openrouter_free: bool, )
src/main.rs:456
↓ 1 callersFunctionbuild_openrouter_client
(api_key: &str)
crates/nitpicker-agent/src/openrouter.rs:248
↓ 1 callersFunctionbuild_pr_prompt
( meta: &PrMeta, comments: &[PrComment], diff_context: &str, extra: Option<&str>, )
src/pr.rs:459
↓ 1 callersFunctionbuild_retry_throttle_key
(url: &str, project: Option<&str>, model: Option<&str>)
src/gemini_proxy/retry.rs:160
↓ 1 callersMethodcall
( &self, args: Value, work_dir: PathBuf, )
crates/nitpicker-agent/src/tools.rs:211
↓ 1 callersMethodcall
( &self, args: Value, _work_dir: PathBuf, )
crates/nitpicker-agent/src/agent.rs:171
↓ 1 callersFunctioncheck_gh
()
src/pr.rs:145
↓ 1 callersFunctionclassify_quota_response_from_status
Classify from headers + status when we can't consume the response body. Uses Retry-After header as a fallback for delay.
src/gemini_proxy/retry.rs:256
↓ 1 callersFunctionclient_from_env
Build a retry-wrapped client for a provider, reading its API key from the environment.
crates/nitpicker-agent/src/lib.rs:67
↓ 1 callersFunctionclone_pr
(repo_slug: &str, pr_number: u32, dir: &Path)
src/pr.rs:428
↓ 1 callersFunctioncorrection_history
( input: &CompactionInput<'_>, original_prompt: String, assistant_message: Message, )
crates/nitpicker-agent/src/compact.rs:259
↓ 1 callersFunctioncorrection_mode
(input: &CompactionInput<'_>)
crates/nitpicker-agent/src/compact.rs:270
↓ 1 callersFunctioncorrection_prompt
(mode: &CorrectionMode)
crates/nitpicker-agent/src/compact.rs:277
↓ 1 callersFunctioncreate_activity_request_id
create a short request-scoped activity id for backend tracing. mirrors Gemini CLI behavior (short random string, not full UUID).
src/gemini_proxy/mod.rs:67
↓ 1 callersMethodcritic_role
(&self)
src/prompts.rs:180
↓ 1 callersMethodcritic_system
(&self)
src/prompts.rs:241
↓ 1 callersMethodcurrent_access
Current access token + account id, refreshing first if within the expiry skew. Double-checked under the lock so a concurrent wave of subagents trigger
crates/nitpicker-agent/src/codex.rs:344
↓ 1 callersMethoddefault_max_turns
(&self)
crates/nitpicker-agent/src/config.rs:189
↓ 1 callersMethoddefinition
(&self)
crates/nitpicker-agent/src/tools.rs:181
↓ 1 callersFunctiondetail_message_for_columns
(prefix: &str, detail: Option<&str>, columns: usize)
src/progress.rs:90
↓ 1 callersFunctiondetect_agy_keyring
()
src/detect.rs:225
↓ 1 callersFunctiondetect_all
()
src/detect.rs:144
↓ 1 callersFunctiondetect_base_branch
(repo: &Path)
src/main.rs:720
↓ 1 callersFunctiondetect_codex
()
src/detect.rs:242
↓ 1 callersFunctiondetect_databricks
()
src/detect.rs:402
↓ 1 callersFunctiondetect_lmstudio
()
src/detect.rs:349
↓ 1 callersFunctiondetect_ollama
()
src/detect.rs:291
↓ 1 callersFunctiondetect_opencode
()
src/detect.rs:264
↓ 1 callersFunctiondetect_tool_call_cycle
Returns the cycle period (1, 2, or 3) if the tail of `history` forms a repeated cycle, or 0 if no cycle is detected. Period-1 maps to the existing con
crates/nitpicker-agent/src/agent.rs:754
↓ 1 callersFunctiondiscover_sessions
(dir: &Path, n: usize)
src/reflect.rs:175
← previousnext →101–200 of 451, ranked by callers