internal/

directory
v0.2.0-rc.3 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package agentcli finds the coding-agent CLIs baum runs (Claude Code and Codex), checks their versions against the oldest each backend supports, and keeps the record `baum desktop-setup` writes from the user's terminal.
Package agentcli finds the coding-agent CLIs baum runs (Claude Code and Codex), checks their versions against the oldest each backend supports, and keeps the record `baum desktop-setup` writes from the user's terminal.
Package agenthookdefs defines baum's local coding-agent plugin events.
Package agenthookdefs defines baum's local coding-agent plugin events.
Package agentmatrix holds the agent version matrix: checks of baum against one installed release of Claude Code or Codex.
Package agentmatrix holds the agent version matrix: checks of baum against one installed release of Claude Code or Codex.
Package agentplugins installs baum's user-scoped marketplace plugins through the coding agents' native CLIs.
Package agentplugins installs baum's user-scoped marketplace plugins through the coding agents' native CLIs.
Package agentrequests lets the desktop app answer what a coding agent asks its user, and send a running session a message.
Package agentrequests lets the desktop app answer what a coding agent asks its user, and send a running session a message.
Package analytics reports what the person's coding agents did in their registered clones, what it cost and what was delivered, for the app's Analytics page.
Package analytics reports what the person's coding agents did in their registered clones, what it cost and what was delivered, for the app's Analytics page.
Package appdb owns the desktop application's private per-user SQLite file.
Package appdb owns the desktop application's private per-user SQLite file.
appdbtest
Package appdbtest provides private directories for application database tests.
Package appdbtest provides private directories for application database tests.
Package assemble builds a review evidence bundle and optional checkout and description-image archives for the local generation pipeline.
Package assemble builds a review evidence bundle and optional checkout and description-image archives for the local generation pipeline.
assembletest
Package assembletest builds the synthetic inputs of bundle assembly tests: a git clone whose pull request exercises every kind of change, a fake GitHub that returns evidence for it, and a fake session source.
Package assembletest builds the synthetic inputs of bundle assembly tests: a git clone whose pull request exercises every kind of change, a fake GitHub that returns evidence for it, and a fake session source.
Package automatic is the daemon's scheduler for reviews nobody asked for: it turns new pull request heads and new review requests, seen after automatic generation was enabled, into jobs on the existing queue.
Package automatic is the daemon's scheduler for reviews nobody asked for: it turns new pull request heads and new review requests, seen after automatic generation was enabled, into jobs on the existing queue.
Package background keeps local GitHub metadata fresh without a generation queue, model backend, checkout export or hosted baum service.
Package background keeps local GitHub metadata fresh without a generation queue, model backend, checkout export or hosted baum service.
Package benchcorpus supplies the review store that index benchmarks read: a copy of a real store named by BAUM_BENCH_STORE, or a deterministic synthetic one shaped like real stores.
Package benchcorpus supplies the review store that index benchmarks read: a copy of a real store named by BAUM_BENCH_STORE, or a deterministic synthetic one shaped like real stores.
Package chat answers a reviewer's questions about a pull request with the agent that wrote its review.
Package chat answers a reviewer's questions about a pull request with the agent that wrote its review.
chattest
Package chattest builds a registered clone with a saved review whose agent session was kept, and a scripted agent, for tests of chats.
Package chattest builds a registered clone with a saved review whose agent session was kept, and a scripted agent, for tests of chats.
Package cli implements the baum command-line interface.
Package cli implements the baum command-line interface.
Package clonefind finds the local clones of GitHub repositories without asking: in the folders coding agents worked in and in the usual code folders.
Package clonefind finds the local clones of GitHub repositories without asking: in the folders coding agents worked in and in the usual code folders.
Package codexconfig configures the terminal title baum needs to focus Codex.
Package codexconfig configures the terminal title baum needs to focus Codex.
Package commitattribution retains session-owned Git hook observations beyond the lifetime of the live session tracker.
Package commitattribution retains session-owned Git hook observations beyond the lifetime of the live session tracker.
Package config resolves baum settings from flags, the environment, the XDG config file and defaults, in that order of precedence.
Package config resolves baum settings from flags, the environment, the XDG config file and defaults, in that order of precedence.
Package daemon runs baum's one long-lived local server per user, which the desktop app and coding-agent hooks share, and the client that finds, starts and stops it.
Package daemon runs baum's one long-lived local server per user, which the desktop app and coding-agent hooks share, and the client that finds, starts and stops it.
Package decisionlog captures the decisions of the coding-agent sessions on this machine and keeps them in a private local store.
Package decisionlog captures the decisions of the coding-agent sessions on this machine and keeps them in a private local store.
Package discovery maintains a private GitHub inbox cache.
Package discovery maintains a private GitHub inbox cache.
Package doctor reports why baum can or cannot find its tools, backend and GitHub token, with a fix for each problem.
Package doctor reports why baum can or cannot find its tools, backend and GitHub token, with a fix for each problem.
Package etagjson serves JSON that is encoded once and tagged with a strong ETag, so an unchanged snapshot costs neither an encode nor a body.
Package etagjson serves JSON that is encoded once and tagged with a strong ETag, so an unchanged snapshot costs neither an encode nor a body.
Package facts serves a pull request's facts (review.Facts) to the desktop app's PR page while the pull request has no saved review: its change size, checks, sessions, commits, conversation and the agent reviews posted on it, read the way generation reads them and with no model.
Package facts serves a pull request's facts (review.Facts) to the desktop app's PR page while the pull request has no saved review: its change size, checks, sessions, commits, conversation and the agent reviews posted on it, read the way generation reads them and with no model.
Package filelock is an exclusive inter-process lock on a private file: an SQLite write transaction, which the operating system releases however the holding process exits, so a lock is never stale.
Package filelock is an exclusive inter-process lock on a private file: an SQLite write transaction, which the operating system releases however the holding process exits, so a lock is never stale.
Package fix runs a fix a person asked for on one of their pull requests: an agent resolves its merge conflicts, fixes its failing checks or addresses its unresolved review comments in a temporary checkout of its branch, and baum commits the result and pushes it.
Package fix runs a fix a person asked for on one of their pull requests: an agent resolves its merge conflicts, fixes its failing checks or addresses its unresolved review comments in a temporary checkout of its branch, and baum commits the result and pushes it.
Package focus brings a coding-agent session forward: the window it runs in, and where it can tell, its tab, its tmux pane or its Claude desktop conversation.
Package focus brings a coding-agent session forward: the window it runs in, and where it can tell, its tab, its tmux pane or its Claude desktop conversation.
Package generate is the pipeline behind "the generation pipeline": it assembles the generation bundle for a pull request, unpacks the checkout into a private run directory, runs the shared generate-and-repair loop (agent.Generator) with a model backend, and finishes the document the way the hosted worker does: output redaction, secret rejection, derived fields, the generator block and a strict check of the stored form.
Package generate is the pipeline behind "the generation pipeline": it assembles the generation bundle for a pull request, unpacks the checkout into a private run directory, runs the shared generate-and-repair loop (agent.Generator) with a model backend, and finishes the document the way the hosted worker does: output redaction, secret rejection, derived fields, the generator block and a strict check of the stored form.
generatetest
Package generatetest is a stub model backend for tests of "the generation pipeline": it returns canned documents without calling a model, and records the run directories it was given.
Package generatetest is a stub model backend for tests of "the generation pipeline": it returns canned documents without calling a model, and records the run directories it was given.
Package githooks installs baum's Git hook dispatchers into a clone, so Git reports the commits made there to the daemon without parsing anything.
Package githooks installs baum's Git hook dispatchers into a clone, so Git reports the commits made there to the daemon without parsing anything.
Package github reads one pull request's metadata, commits, checks and conversation from GitHub's GraphQL API with the user's own token, and maps them onto the generation bundle the way every baum host does.
Package github reads one pull request's metadata, commits, checks and conversation from GitHub's GraphQL API with the user's own token, and maps them onto the generation bundle the way every baum host does.
Package githubauth owns GitHub.com device authorization and credentials.
Package githubauth owns GitHub.com device authorization and credentials.
Package githubrepos lists the signed-in account's GitHub repositories for picking and clones a picked repository with the same sign-in.
Package githubrepos lists the signed-in account's GitHub repositories for picking and clones a picked repository with the same sign-in.
Package gitlocal reads a pull request out of a local clone with git, for a run on the user's machine.
Package gitlocal reads a pull request out of a local clone with git, for a run on the user's machine.
Package goldentest compares test output with committed golden files.
Package goldentest compares test output with committed golden files.
Package hookcli implements the desktop app's local coding-agent hooks.
Package hookcli implements the desktop app's local coding-agent hooks.
Package hookevents carries what coding-agent and Git hooks report to the user's baum daemon: the event a hook sends over the daemon's control socket, the private spool a hook falls back to when the daemon cannot take it, and the bounded local record the daemon keeps of every event it received, which code inside the daemon reads and subscribes to.
Package hookevents carries what coding-agent and Git hooks report to the user's baum daemon: the event a hook sends over the daemon's control socket, the private spool a hook falls back to when the daemon cannot take it, and the bounded local record the daemon keeps of every event it received, which code inside the daemon reads and subscribes to.
Package hookrefresh refreshes pull requests as soon as a hook reports they may have changed: a coding-agent session ending in a registered clone, or a push from one.
Package hookrefresh refreshes pull requests as soon as a hook reports they may have changed: a coding-agent session ending in a registered clone, or a push from one.
Package inboxqueue builds the app's Inbox from the daemon's own state: the open pull requests with what each waits for, which saved inboxes hold each, and how many wait on the person.
Package inboxqueue builds the app's Inbox from the daemon's own state: the open pull requests with what each waits for, which saved inboxes hold each, and how many wait on the person.
Package jobs owns the persistent local generation queue.
Package jobs owns the persistent local generation queue.
Package livesessions tracks the coding-agent sessions running on this machine from the hook events the daemon records, and serves them to the local application so a pull request page and the inbox can show work in progress before any session file is complete.
Package livesessions tracks the coding-agent sessions running on this machine from the hook events the daemon records, and serves them to the local application so a pull request page and the inbox can show work in progress before any session file is complete.
Package localapp embeds the local application.
Package localapp embeds the local application.
Package locallink links the coding-agent sessions recorded on this machine to the commits of a pull request, using only this machine: the clone containing a directory supplies the commits and the home-directory and checkpoint stores supply the sessions.
Package locallink links the coding-agent sessions recorded on this machine to the commits of a pull request, using only this machine: the clone containing a directory supplies the commits and the home-directory and checkpoint stores supply the sessions.
linktest
Package linktest builds the fixture the local linkage tests share: a real clone with a pull request's worth of commits, and a Claude Code store with one session that created the first of them.
Package linktest builds the fixture the local linkage tests share: a real clone with a pull request's worth of commits, and a Claude Code store with one session that created the first of them.
Package notices turns what the daemon already knows into the "notice" events the desktop app shows as operating system notifications: a review finished or failed, a review requested from the user, a change in the state of the user's own pull request (checks failing, a conflict, changes requested, ready to merge), a fix that pushed or failed, and an agent session that began waiting for its user's permission or answer.
Package notices turns what the daemon already knows into the "notice" events the desktop app shows as operating system notifications: a review finished or failed, a review requested from the user, a change in the state of the user's own pull request (checks failing, a conflict, changes requested, ready to merge), a fix that pushed or failed, and an agent session that began waiting for its user's permission or answer.
Package openurl opens a URL in the user's default browser.
Package openurl opens a URL in the user's default browser.
Package planusage reports how much of the Claude and Codex plans the person has left, for the app's settings.
Package planusage reports how much of the Claude and Codex plans the person has left, for the app's settings.
Package prfilter reads and applies the pull-request filter language, such as `repo=acme/app is!=draft (review=approved OR risk>=4) flaky`.
Package prfilter reads and applies the pull-request filter language, such as `repo=acme/app is!=draft (review=approved OR risk>=4) flaky`.
Package pricing exposes the shared price list to local application code.
Package pricing exposes the shared price list to local application code.
Package privatefs creates and checks files and directories only the current user may use: mode 0600/0700 and owned by the user on Unix, a protected current-user DACL on Windows.
Package privatefs creates and checks files and directories only the current user may use: mode 0600/0700 and owned by the user on Unix, a protected current-user DACL on Windows.
Package prlink finds the open pull request that holds the work checked out in a local working tree, from the discovery cache.
Package prlink finds the open pull request that holds the work checked out in a local working tree, from the discovery cache.
Package proc makes cancelling a command stop its descendants where the platform allows.
Package proc makes cancelling a command stop its descendants where the platform allows.
Package prupdate makes the GitHub writes that unblock a pull request without changing its code: merging its base branch into it (update branch), re-running its failed GitHub Actions workflow runs, and resolving a review thread.
Package prupdate makes the GitHub writes that unblock a pull request without changing its code: merging its base branch into it (update branch), re-running its failed GitHub Actions workflow runs, and resolving a review thread.
Package refresh updates the evidence of a saved local review without generation.
Package refresh updates the evidence of a saved local review without generation.
Package repos stores explicitly registered local clones and repository settings.
Package repos stores explicitly registered local clones and repository settings.
Package reviewgroups keeps review groups: named sets of open pull requests of one repository that a person reviews together, and the versions of their combined review.
Package reviewgroups keeps review groups: named sets of open pull requests of one repository that a person reviews together, and the versions of their combined review.
Package reviewindex joins GitHub discovery with local immutable version stores.
Package reviewindex joins GitHub discovery with local immutable version stores.
Package reviewrefs keeps the commits saved review versions record (head, base and merge base) in the clone for as long as the versions exist, so a git gc in the clone cannot prune what a version's lazy patches are read from.
Package reviewrefs keeps the commits saved review versions record (head, base and merge base) in the clone for as long as the versions exist, so a git gc in the clone cannot prune what a version's lazy patches are read from.
Package reviewruns manages the run directories that local reviews keep so a chat can continue their agent session in the same working directory.
Package reviewruns manages the run directories that local reviews keep so a chat can continue their agent session in the same working directory.
Package sampleapp serves the sample project the local app's tour shows when the person has no data of their own yet.
Package sampleapp serves the sample project the local app's tour shows when the person has no data of their own yet.
Package scanskip lists the folders a search for checkouts never enters.
Package scanskip lists the folders a search for checkouts never enters.
Package shellenv reads the environment a user's login shell sets up, so a background process started from a desktop launcher (with a bare PATH) or from a coding agent (with the agent's environment) sees the same tools and settings as the user's terminal.
Package shellenv reads the environment a user's login shell sets up, so a background process started from a desktop launcher (with a bare PATH) or from a coding agent (with the agent's environment) sees the same tools and settings as the user's terminal.
Package sqlitepool keeps one database handle per SQLite file and access mode for the life of a process, for callers that open the file for each operation.
Package sqlitepool keeps one database handle per SQLite file and access mode for the life of a process, for callers that open the file for each operation.
Package store keeps local review versions with immutable generation provenance.
Package store keeps local review versions with immutable generation provenance.
Package textclean makes text captured from agents safe to store and print: tool output is captured verbatim from processes that emit binary, so it can carry NUL bytes and invalid UTF-8.
Package textclean makes text captured from agents safe to store and print: tool output is captured verbatim from processes that emit binary, so it can carry NUL bytes and invalid UTF-8.
Package transcript shapes one session graph into the transcript the viewer's session card draws as a conversation: the session's human prompts in order, what each of them caused and the agent's text replies to it, and per prompt the agent activity (its messages, model calls and tool calls with their input and output) that the hosted service serves one prompt at a time and the reference viewer host serves in the same answer.
Package transcript shapes one session graph into the transcript the viewer's session card draws as a conversation: the session's human prompts in order, what each of them caused and the agent's text replies to it, and per prompt the agent activity (its messages, model calls and tool calls with their input and output) that the hosted service serves one prompt at a time and the reference viewer host serves in the same answer.
Package uibuild lets tests of an embedded app skip when it is not built.
Package uibuild lets tests of an embedded app skip when it is not built.
Package uiserver hosts the authenticated local application.
Package uiserver hosts the authenticated local application.
Package uistate keeps the person's inbox bookkeeping and review drafts in the application database, independently of a browser's loopback origin.
Package uistate keeps the person's inbox bookkeeping and review drafts in the application database, independently of a browser's loopback origin.
Package viewer embeds the built standalone review viewer, the single-page app that the viewer package builds from its app directory.
Package viewer embeds the built standalone review viewer, the single-page app that the viewer package builds from its app directory.
Package viewserver serves the embedded review viewer and one review document on a loopback address.
Package viewserver serves the embedded review viewer and one review document on a loopback address.
Package workstats counts the work this process does, such as transcripts decoded, git processes run and refresh passes, so a profile of the daemon can say what its CPU time went to and how often each kind of work ran.
Package workstats counts the work this process does, such as transcripts decoded, git processes run and refresh passes, so a profile of the daemon can say what its CPU time went to and how often each kind of work ran.

Jump to

Keyboard shortcuts

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