Documentation
¶
Overview ¶
Package app is the composition root: it resolves the repo, paths, and config into the concrete managers (worktree, session backend, agent launcher, forge) that the CLI commands consume.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Cfg config.Config
Log *zerolog.Logger
Paths paths.Paths
Repo domain.Repo
Worktrees worktree.Manager
Sessions session.SessionBackend
Store *session.Store
// contains filtered or unexported fields
}
App holds the wired-up managers for a repository.
func New ¶
New builds the App for the repository containing the working directory. Returns domain.ErrNotGitRepo when not inside a git work tree. The agent and forge are constructed best-effort: errors are deferred to Agent()/Forge() so commands that don't need them (init, status) still work.
Click to show internal directories.
Click to hide internal directories.