internal/

directory
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT

Directories

Path Synopsis
Package cli maps loupe's commands onto cobra and turns domain results and refusals into the output contract.
Package cli maps loupe's commands onto cobra and turns domain results and refusals into the output contract.
Package diff is the parsed pr.diff that both location validation and the review interface read.
Package diff is the parsed pr.diff that both location validation and the review interface read.
Package draft holds the review draft: findings, human decisions, send-back notes and replies.
Package draft holds the review draft: findings, human decisions, send-back notes and replies.
Package findingid orders ids like f-001 so that f-999 sorts before f-1000.
Package findingid orders ids like f-001 so that f-999 sorts before f-1000.
Package gitenv filters the environment handed to git, shared by gitx and the test repositories.
Package gitenv filters the environment handed to git, shared by gitx and the test repositories.
Package github is loupe's narrow view of the GitHub REST API, behind an interface so tests can fake it.
Package github is loupe's narrow view of the GitHub REST API, behind an interface so tests can fake it.
Package gitx runs the few git commands loupe needs against the user's clone.
Package gitx runs the few git commands loupe needs against the user's clone.
Package local captures local work for apply mode: the changed files of a Git worktree, named files, or no file.
Package local captures local work for apply mode: the changed files of a Git worktree, named files, or no file.
Package markdown checks authored Markdown against the allowlist in docs/comment-format.md, so a body or summary cannot restructure the <details> wrapper the renderer puts around it.
Package markdown checks authored Markdown against the allowlist in docs/comment-format.md, so a body or summary cannot restructure the <details> wrapper the renderer puts around it.
Package mode is the one switch on a run's kind.
Package mode is the one switch on a run's kind.
Package pane opens loupe review for the human in a new terminal pane beside the agent's, in Herdr, tmux, Orca, iTerm2 or Ghostty.
Package pane opens loupe review for the human in a new terminal pane beside the agent's, in Herdr, tmux, Orca, iTerm2 or Ghostty.
Package publish runs the publication state machine: gates, envelope, confirmation, one review request, receipt.
Package publish runs the publication state machine: gates, envelope, confirmation, one review request, receipt.
Package refusal is a leaf so every domain package can return refusals without importing internal/cli.
Package refusal is a leaf so every domain package can return refusals without importing internal/cli.
Package render composes what loupe shows and sends.
Package render composes what loupe shows and sends.
Package run owns the on-disk layout of review runs: paths, references, atomic writes and locking.
Package run owns the on-disk layout of review runs: paths, references, atomic writes and locking.
Package section places a finding in the review body's sections, so that every surface presents findings in the order the published review will.
Package section places a finding in the review body's sections, so that every surface presents findings in the order the published review will.
Package severity orders loupe's four severity words so that every surface ranks findings the same way.
Package severity orders loupe's four severity words so that every surface ranks findings the same way.
Package stats rolls the human gate up across runs: what the agent filed, what was published, what the human rejected and what the agent cut itself, counted the way the published loupe-meta marker counts them.
Package stats rolls the human gate up across runs: what the agent filed, what was published, what the human rejected and what the agent cut itself, counted the way the published loupe-meta marker counts them.
Package style is the one place terminal appearance is decided: colors, glyphs and the small layout helpers every human-facing surface shares, so the review interface and the one-shot commands look like one program.
Package style is the one place terminal appearance is decided: colors, glyphs and the small layout helpers every human-facing surface shares, so the review interface and the one-shot commands look like one program.
testutil
fakegh
Package fakegh is an in-memory GitHub REST and GraphQL server for the endpoints loupe calls, reached through the production client so request encoding is exercised end to end.
Package fakegh is an in-memory GitHub REST and GraphQL server for the endpoints loupe calls, reached through the production client so request encoding is exercised end to end.
gitfail
Package gitfail puts a git on PATH that runs the real git except where a test wants a call to fail or print nothing.
Package gitfail puts a git on PATH that runs the real git except where a test wants a call to fail or print nothing.
gitrepo
Package gitrepo builds a local stand-in for a GitHub repository: a bare remote, a user's clone of it, and a pull request head published at refs/pull/<number>/head.
Package gitrepo builds a local stand-in for a GitHub repository: a bare remote, a user's clone of it, and a pull request head published at refs/pull/<number>/head.
golden
Package golden compares output with the files under testdata/golden at the repository root, and owns the one -update flag that rewrites them.
Package golden compares output with the files under testdata/golden at the repository root, and owns the one -update flag that rewrites them.
herdrstub
Package herdrstub writes a stand-in for the Herdr command line, which loupe handoff drives to open review in a pane beside the agent.
Package herdrstub writes a stand-in for the Herdr command line, which loupe handoff drives to open review in a pane beside the agent.
refusaltest
Package refusaltest checks that an error is a loupe refusal of the expected code.
Package refusaltest checks that an error is a loupe refusal of the expected code.
screen
Package screen drives loupe's full-screen programs the way a human at a terminal does: keys go in through a pipe, and each step waits for the screen to show its result rather than for time to pass, so a test never races the program, however slowly a step such as publishing runs.
Package screen drives loupe's full-screen programs the way a human at a terminal does: keys go in through a pipe, and each step waits for the screen to show its result rather than for time to pass, so a test never races the program, however slowly a step such as publishing runs.
sgrtest
Package sgrtest reads the SGR escape sequences that styled terminal text carries.
Package sgrtest reads the SGR escape sequences that styled terminal text carries.
Package tui is the human review interface: a full-screen Bubble Tea program.
Package tui is the human review interface: a full-screen Bubble Tea program.
Package updatecheck tells a person running an old release that a newer one exists.
Package updatecheck tells a person running an old release that a newer one exists.

Jump to

Keyboard shortcuts

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