internal/

directory
v0.10.257 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT

Directories

Path Synopsis
Package agents loads trusted review agent definitions.
Package agents loads trusted review agent definitions.
Package app assembles command-independent review runtime dependencies.
Package app assembles command-independent review runtime dependencies.
Package approvaloverride classifies explicit author override requests.
Package approvaloverride classifies explicit author override requests.
Package appruntime contains command-independent application runtime helpers.
Package appruntime contains command-independent application runtime helpers.
Package benchmark parses and validates code-review benchmark suites.
Package benchmark parses and validates code-review benchmark suites.
cmd
agentscmd
Package agentscmd wires the `cr agents` command surface.
Package agentscmd wires the `cr agents` command surface.
benchmarkcmd
Package benchmarkcmd wires the `cr benchmark` command surface.
Package benchmarkcmd wires the `cr benchmark` command surface.
cmderr
Package cmderr maps domain errors onto cr's command exit taxonomy.
Package cmderr maps domain errors onto cr's command exit taxonomy.
cmdruntime
Package cmdruntime contains shared command runtime helpers.
Package cmdruntime contains shared command runtime helpers.
cmdtest
Package cmdtest provides shared command test setup.
Package cmdtest provides shared command test setup.
configcmd
Package configcmd wires the `cr config` command surface.
Package configcmd wires the `cr config` command surface.
credentialcmd
Package credentialcmd wires credential ingress commands.
Package credentialcmd wires credential ingress commands.
datacmd
Package datacmd wires the `cr data` command surface.
Package datacmd wires the `cr data` command surface.
exitcode
Package exitcode centralizes cr's command-layer process exit taxonomy.
Package exitcode centralizes cr's command-layer process exit taxonomy.
initcmd
Package initcmd wires the init command.
Package initcmd wires the init command.
mecmd
Package mecmd wires the `cr me` command surface.
Package mecmd wires the `cr me` command surface.
respondcmd
Package respondcmd wires the `cr respond` command surface.
Package respondcmd wires the `cr respond` command surface.
reviewcmd
Package reviewcmd wires the `cr review` command surface.
Package reviewcmd wires the `cr review` command surface.
root
Package root builds the cr root command and owns root-level command wiring.
Package root builds the cr root command and owns root-level command wiring.
sessionscmd
Package sessionscmd wires the `cr sessions` command surface.
Package sessionscmd wires the `cr sessions` command surface.
Package config loads and validates cr's non-secret configuration.
Package config loads and validates cr's non-secret configuration.
configtest
Package configtest provides shared configuration fixtures.
Package configtest provides shared configuration fixtures.
Package configedit provides reusable config mutation helpers.
Package configedit provides reusable config mutation helpers.
Package credentials adapts cli-common/credstore to cr's command surface.
Package credentials adapts cli-common/credstore to cr's command surface.
Package datalifecycle manages cr's durable local data retention.
Package datalifecycle manages cr's durable local data retention.
Package dbmig applies forward-only SQLite schema migrations.
Package dbmig applies forward-only SQLite schema migrations.
Package dossier owns reviewer-facing dossier artifacts and discussion summarization.
Package dossier owns reviewer-facing dossier artifacts and discussion summarization.
Package fsatomic provides atomic file writes and JSON file IO.
Package fsatomic provides atomic file writes and JSON file IO.
Package gate decides whether a codereview run should resume, repair, exit, retry posts, abort stale state, or run fresh from summarized state.
Package gate decides whether a codereview run should resume, repair, exit, retry posts, abort stale state, or run fresh from summarized state.
Package gateio maps provider/ledger state into the pure gate kernel.
Package gateio maps provider/ledger state into the pure gate kernel.
Package gitexec runs authenticated, non-interactive Git commands.
Package gitexec runs authenticated, non-interactive Git commands.
Package gitprovider defines the provider-neutral git host seam.
Package gitprovider defines the provider-neutral git host seam.
github
Package github adapts GitHub REST and GraphQL APIs to gitprovider read models.
Package github adapts GitHub REST and GraphQL APIs to gitprovider read models.
Package hooks dispatches observe-only lifecycle commands.
Package hooks dispatches observe-only lifecycle commands.
Package identity resolves live git-host identities and refreshes config caches.
Package identity resolves live git-host identities and refreshes config caches.
Package ledger stores cr review runs in SQLite.
Package ledger stores cr review runs in SQLite.
Package llm defines provider-neutral LLM adapter contracts and structured output validation for review planning.
Package llm defines provider-neutral LLM adapter contracts and structured output validation for review planning.
Package llmadapters contains the concrete LLM HTTP and subprocess adapters.
Package llmadapters contains the concrete LLM HTTP and subprocess adapters.
Package llmlifecycle owns durable structured LLM task execution.
Package llmlifecycle owns durable structured LLM task execution.
Package marker renders and parses codereview PR comment markers.
Package marker renders and parses codereview PR comment markers.
Package modelprefs defines provider-neutral model preference values.
Package modelprefs defines provider-neutral model preference values.
Package outbox posts planned review actions through the host-agnostic provider seam.
Package outbox posts planned review actions through the host-agnostic provider seam.
Package pipeline orchestrates review pipeline phases without owning command IO.
Package pipeline orchestrates review pipeline phases without owning command IO.
Package plannedactions defines the canonical planned-action vocabulary.
Package plannedactions defines the canonical planned-action vocabulary.
Package pricing derives an approximate USD cost for a model's token usage at public list prices.
Package pricing derives an approximate USD cost for a model's token usage at public list prices.
Package progress writes structured progress breadcrumbs to stderr for long-running CLI work.
Package progress writes structured progress breadcrumbs to stderr for long-running CLI work.
Package prref parses and normalizes pull-request references.
Package prref parses and normalizes pull-request references.
Package reporoot resolves the current Git worktree root for review safety checks.
Package reporoot resolves the current Git worktree root for review safety checks.
Package review defines provider-neutral review-domain values.
Package review defines provider-neutral review-domain values.
Package reviewplan builds the pure PR review action plan.
Package reviewplan builds the pure PR review action plan.
Package reviewrun wires live review orchestration around gate, pipeline, and outbox.
Package reviewrun wires live review orchestration around gate, pipeline, and outbox.
Package runartifact owns per-run artifact paths and run-kind markers shared by review lifecycle commands.
Package runartifact owns per-run artifact paths and run-kind markers shared by review lifecycle commands.
Package runlifecycle owns pure decisions shared by review run lifecycles.
Package runlifecycle owns pure decisions shared by review run lifecycles.
Package runlock provides fail-fast advisory file locks for live review runs.
Package runlock provides fail-fast advisory file locks for live review runs.
Package sessionreuse validates default and named LLM session reuse scope.
Package sessionreuse validates default and named LLM session reuse scope.
Package stagemodel resolves stage-specific LLM model choices from profile preferences and explicit runtime overrides.
Package stagemodel resolves stage-specific LLM model choices from profile preferences and explicit runtime overrides.
Package statepaths composes cr-specific data and cache paths.
Package statepaths composes cr-specific data and cache paths.
Package threadanalysis turns normalized inline thread context into reusable lifecycle decisions through the durable LLM execution boundary.
Package threadanalysis turns normalized inline thread context into reusable lifecycle decisions through the durable LLM execution boundary.
Package threadcontext normalizes inline review threads into prompt-safe domain context.
Package threadcontext normalizes inline review threads into prompt-safe domain context.
Package threadrespond plans and posts responses to existing inline review threads through the shared LLM, reviewplan, ledger, and outbox boundaries.
Package threadrespond plans and posts responses to existing inline review threads through the shared LLM, reviewplan, ledger, and outbox boundaries.
Package version holds the build-stamped version metadata for the cr binary.
Package version holds the build-stamped version metadata for the cr binary.
Package view renders user-facing command output from typed values.
Package view renders user-facing command output from typed values.
Package workbench prepares isolated repository workspaces for reviews.
Package workbench prepares isolated repository workspaces for reviews.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL